(window.webpackJsonp__wix_chat_widget=window.webpackJsonp__wix_chat_widget||[]).push([[1],[,,,,,,,,,,,function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},,function(e,t,n){"use strict";n.r(t),n.d(t,"Types",(function(){return i})),n.d(t,"IMessageTypes",(function(){return o})),n.d(t,"OfflineChannelId",(function(){return a})),n.d(t,"DomainTypes",(function(){return s})),n.d(t,"Constants",(function(){return c})),n.d(t,"MessageIndicationsService",(function(){return r})),n.d(t,"Message",(function(){return f.a})),n.d(t,"MessagePart",(function(){return h.a})),n.d(t,"StandardTemplateData",(function(){return m.a})),n.d(t,"CustomTemplateData",(function(){return v.a})),n.d(t,"ChatSdkError",(function(){return g.a})),n.d(t,"MessageGroupingService",(function(){return b.a})),n.d(t,"ChatRoom",(function(){return y.a})),n.d(t,"chatSdk",(function(){return E.a})),n.d(t,"chatEventEmitter",(function(){return F.d}));var r={};n.r(r),n.d(r,"getSummarizedIndicationsForPrivateChat",(function(){return d}));var o,a,i=n(254);!function(e){e.message="message",e.template_standard_event="template/standard-event",e.template_minimal="template/minimal",e.template_form="template/form",e.template_custom="template/custom"}(o||(o={})),function(e){e.Email="Email",e.Facebook="Facebook",e.SMS="SMS",e.Whatsapp="Whatsapp",e.Phone="Phone"}(a||(a={}));var s=n(580),c=n(8),u=n(121),l=n(14),d=function(e){if(!e)return null;var t=u(e.details,(function(e,t){return p(t,e)?{event:c.IndicationEvent.SEEN,method:t.method}:e}),{});return l(t)?null:t},p=function(e,t){return e.event===c.IndicationEvent.SEEN&&t.event!==c.IndicationEvent.SEEN},f=n(69),h=n(154),m=n(581),v=n(582),g=n(282),b=n(583),y=n(88),E=n(168),F=n(17)},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return s}));var r=n(1),o={BI_END_POINT:"engage",BI_ENGAGE_SRC:5},a={EXPAND_CHAT:{evid:523},SEND_MESSAGE:{evid:524},REALTIME_ACTIVITY:{evid:530},ADD_ATTACHMENT_CLICK:{evid:563},IMAGE_CLICK:{evid:772},CHAT_DISPLAYED:{evid:701},CALL_TO_ACTION_CLICK:{evid:706},LCF_SUBMISSION:{evid:766},COPY_COUPON_CODE:{evid:767},SOCIAL_CHAT_NEW_CONVERSION:{evid:773},SOCIAL_CHAT_SEARCH_MEMBER:{evid:828},DEBUG:{evid:572},GROUP_CHAT_CREATE_START:{evid:825},GROUP_CHAT_CREATE_MEMBER_PICKER_NEXT:{evid:826},GROUP_CHAT_CREATE_MEMBER_PICKER_BACK:{evid:827},GROUP_CHAT_CREATE_MEMBER_PICKER_FILTER:{evid:828},GROUP_CHAT_CREATE_MEMBER_PICKER_CHECKBOX_CLICKED:{evid:829},GROUP_CHAT_CREATE_MEMBER_PICKER_REMOVE:{evid:830},GROUP_CHAT_CREATE_ROOM_INFO_BACK:{evid:827},GROUP_CHAT_CREATE_ROOM_INFO_CREATE:{evid:826},GROUP_CHAT_CREATE_ROOM_INFO_UPLOAD_AVATAR:{evid:831},GROUP_CHAT_MENU_CLICKED:{evid:832},GROUP_CHAT_MENU_SELECTED:{evid:833},GROUP_CHAT_MEMBERS_CLICK_ADD:{evid:834},GROUP_CHAT_MEMBERS_CLICK_REMOVE:{evid:840},GROUP_CHAT_MEMBERS_CONFIRM_ADD:{evid:826},GROUP_CHAT_MEMBERS_CONFIRM_REMOVE:{evid:841},GROUP_CHAT_MEMBERS_PICKER_CHECKBOX_CLICKED:{evid:829},GROUP_CHAT_MEMBERS_PICKER_REMOVE:{evid:830},GROUP_CHAT_INFO_UPLOAD_AVATAR:{evid:831},GROUP_CHAT_INFO_CONFIRM:{evid:826},GROUP_CHAT_LEAVE_CONFIRM:{evid:837}},i={WIDGET:"widget",MEMBER_AREA:"member area",PROFILE_PAGE:"profile page"},s=Object.keys(a).reduce((function(e,t){var n;return Object(r.__assign)(Object(r.__assign)({},e),((n={})[t]=t,n))}),{})},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return l}));var r=n(416),o=n(58),a=new r.EventEmitter,i={MESSAGES_READ:"crm.events.messagesRead",MESSAGE_SENT:"crm.events.messageSent",NEW_REALTIME_MESSAGE:"crm.events.newRealtimeMessage",BI:"biEvent",BI_ERROR:"biDebugErrorEvent",MONITORING_BI:"monitoringBi",EXTERNAL_HOST:o.a.EXTERNAL_HOST},s={FETCH_ENRICHED_CHATROOM_COMPLETED:"chat.internal.events.fetchEnrichedChatroomCompleted",FETCH_DRILL_IN_MESSAGE_INDICATIONS_COMPLETED:"chat.internal.events.fetchDrillInMessageIndicationsCompleted"},c=function(e,t){a.on(e,t)},u=function(e,t){a.emit(e,t)},l=function(e,t){a.removeListener(e,t)},d={addListener:c,removeListener:l,CHAT_EVENTS:i,emit:u}},,,function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"_3CmLz",srOnly:"_3CmLz",headerDetails:"H6Z27",shouldApplyExpandAnimation:"FPG6O",expandWidgetAnimationFromRounded:"_3K9SQ",clickable:"_281vs",folded:"_2iHoM",shouldApplyFoldAnimation:"_7GC77","fold-header":"_3t2l4",foldHeader:"_3t2l4",unfolded:"DfO59",shouldApplyUnfoldAnimation:"_1Slow","unfold-header":"_3r0jX",unfoldHeader:"_3r0jX",headerCustomImage:"_2deqh",titling:"_3kGiX",headerTitle:"_1OUA5",headerSubtitle:"_3Vv8L",hasBackButton:"_3yD6r",typicallyRepliesText:"_35eKM","availability-text":"_2Z6yL",availabilityText:"_2Z6yL",withPimple:"_20Lae",headerMessage:"_1mtqz",typicallyRepliesMessage:"_9HDLl",noAvatar:"_2tR7o",avatar:"_2N28n",empty:"_1Gj-c","availability-pimple":"_2OUSv",availabilityPimple:"_2OUSv","availability-away":"_3pLX5",availabilityAway:"_3pLX5","availability-available":"eYm8W",availabilityAvailable:"eYm8W",lightningIcon:"_3xRMk","rotate-ltr":"_17ts-",rotateLtr:"_17ts-","rotate-rtl":"_274Qs",rotateRtl:"_274Qs"}},function(e,t,n){"use strict";n.d(t,"o",(function(){return u})),n.d(t,"r",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"q",(function(){return f})),n.d(t,"a",(function(){return h})),n.d(t,"n",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return g})),n.d(t,"p",(function(){return b})),n.d(t,"d",(function(){return y})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return F})),n.d(t,"m",(function(){return C})),n.d(t,"h",(function(){return A})),n.d(t,"j",(function(){return _})),n.d(t,"i",(function(){return D})),n.d(t,"k",(function(){return O})),n.d(t,"l",(function(){return w})),n.d(t,"g",(function(){return x}));var r,o=n(1),a=n(227),i=n.n(a),s=n(16),c=n(3),u=function(e){var t=e.instanceId,n=e.biToken,o=e.visitorId,a=e.viewMode,c=e.isSocial,u=e.isBusiness;r=i.a.factory({endpoint:s.b.BI_END_POINT}).setEvents(s.c).setDefaults({src:s.b.BI_ENGAGE_SRC,app_instance_id:t,bi_token:n,visitor_id:o,is_social:c,is_business:u,mode:a}).logger()},l=function(e){var t=e.chatRoomType,n=void 0===t?"":t,o=e.host,a=c.a.getViewMode();return r.log(s.a.SEND_MESSAGE,{mode:a,chatRoomType:n,widget_sub_type:o})},d=function(e){var t=e.direction,n=e.referrer,o=e.chatRoomType,a=void 0===o?"":o,i=e.host,u=c.a.getViewMode();return r.log(s.a.EXPAND_CHAT,{mode:u,widget_sub_type:i,direction:t,triggerBy:n,chatRoomType:a})},p=function(e){return d(e)},f=function(e){var t=c.a.getViewMode();return r.log(s.a.REALTIME_ACTIVITY,{mode:t,shard_id:e})},h=function(){var e=c.a.getViewMode();return r.log(s.a.ADD_ATTACHMENT_CLICK,{mode:e})},m=function(){var e=c.a.getViewMode();return r.log(s.a.IMAGE_CLICK,{mode:e})},v=function(e,t){var n=c.a.getViewMode(),o=Date.now()-window.startLoadTime,a=/fullRender/.test(window.location.href);return r.log(s.a.CHAT_DISPLAYED,{platform:"mobile"===e?"QAB":"desktop",load_time:o,is_full_render:a,layoutName:t,mode:n})},g=function(e){var t=c.a.getViewMode();return r.log(s.a.CALL_TO_ACTION_CLICK,{url:e,mode:t})},b=function(){var e=c.a.getViewMode();return r.log(s.a.LCF_SUBMISSION,{mode:e})},y=function(){var e=c.a.getViewMode();return r.log(s.a.COPY_COUPON_CODE,{mode:e})},E=function(e){var t=c.a.getViewMode();return r.log(s.a.SOCIAL_CHAT_NEW_CONVERSION,{entry_point:e,mode:t})},F=function(e){var t=c.a.getViewMode();return r.log(s.a.SOCIAL_CHAT_SEARCH_MEMBER,{result_number:e,mode:t})},C=function(){return r.log(s.a.GROUP_CHAT_CREATE_START,{referralInfo:"new chat",chatRoomType:"group chat",origin:"web"})},A=function(e){return r.log(s.a.GROUP_CHAT_CREATE_MEMBER_PICKER_NEXT,{origin:"web",referralInfo:"new group-members picker",member_of_members_selected:e})},_=function(e,t){return r.log(s.a.GROUP_CHAT_CREATE_MEMBER_PICKER_CHECKBOX_CLICKED,{origin:"web",referralInfo:"new group-members picker",chatRoomType:"group chat",memberId:e,numberOfContacts:t})},D=function(e){return r.log(s.a.GROUP_CHAT_CREATE_MEMBER_PICKER_REMOVE,{origin:"web",referralInfo:"new group-members picker",memberId:e})},O=function(e){return r.log(s.a.GROUP_CHAT_CREATE_ROOM_INFO_CREATE,{origin:"web",referralInfo:"new group-info",number_of_members_selected:e})},w=function(){return r.log(s.a.GROUP_CHAT_CREATE_ROOM_INFO_UPLOAD_AVATAR,{origin:"web",referralInfo:"new group-info"})},x=function(e,t){var n=e.createBy===t?"owner":"member",r=e.id;return new B("web",n,r,t)},B=function(e,t,n,a){var i=this;this.logger=function(e,t){return r.log(e,Object(o.__assign)(Object(o.__assign)({},i.chatroomParam),t))},this.groupChatLeaveConfirm=function(){return i.logger(s.a.GROUP_CHAT_LEAVE_CONFIRM,{referralInfo:"group chat leave room"})},this.groupChatMenuSelected=function(e){return i.logger(s.a.GROUP_CHAT_MENU_SELECTED,{referralInfo:"group chat room options",button:e})},this.groupChatMenuClicked=function(){return i.logger(s.a.GROUP_CHAT_MENU_CLICKED,{referralInfo:"group chat room"})},this.groupChatMembersClickAdd=function(){return i.logger(s.a.GROUP_CHAT_MEMBERS_CLICK_ADD,{referralInfo:"group chat info"})},this.groupChatMembersClickRemove=function(){return i.logger(s.a.GROUP_CHAT_MEMBERS_CLICK_REMOVE,{referralInfo:"group chat info"})},this.groupChatMembersConfirmRemove=function(){return i.logger(s.a.GROUP_CHAT_MEMBERS_CONFIRM_REMOVE,{referralInfo:"group chat info"})},this.groupChatMembersPickerCheckboxClicked=function(){return i.logger(s.a.GROUP_CHAT_MEMBERS_PICKER_CHECKBOX_CLICKED,{referralInfo:"group chat info"})},this.groupChatMembersPickerRemove=function(){return i.logger(s.a.GROUP_CHAT_MEMBERS_PICKER_REMOVE,{referralInfo:"group chat info"})},this.groupChatMembersConfirmAdd=function(){return i.logger(s.a.GROUP_CHAT_MEMBERS_CONFIRM_ADD,{referralInfo:"chat group add member"})},this.groupChatInfoConfirm=function(){return i.logger(s.a.GROUP_CHAT_INFO_CONFIRM,{referralInfo:"edit group details"})},this.groupChatInfoUploadAvatar=function(){return i.logger(s.a.GROUP_CHAT_INFO_UPLOAD_AVATAR,{referralInfo:"group chat info"})},this.chatroomParam={origin:e,role:t,chatroomId:n,memberId:a,chatRoomType:"group chat"}}},,function(e,t,n){"use strict";var r=n(1),o=n(0),a=n.n(o),i=n(2),s=n.n(i);t.a=function(e){var t;return(t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(n,t),n.prototype.render=function(){var t=this.context.theme,n=Object(r.__assign)(Object(r.__assign)({},this.props),{theme:t});return a.a.createElement(e,Object(r.__assign)({},n))},n}(a.a.Component)).contextTypes={theme:s.a.object},t}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=function(e){return e+"_FULFILLED"},o=function(e){return e+"_PENDING"},a=function(e){return e+"_REJECTED"}},,function(e,t,n){"use strict";var r,o;n.r(t),n.d(t,"MessageOrientation",(function(){return r})),n.d(t,"KeyboardsAllowedMediaProviders",(function(){return o})),n.d(t,"AvatarConfig",(function(){return a.a})),n.d(t,"AVATAR_TYPE",(function(){return i.a})),n.d(t,"AvatarType",(function(){return i.c})),n.d(t,"AvatarPropType",(function(){return i.b})),n.d(t,"isImageAvatar",(function(){return i.d})),n.d(t,"isNoneAvatar",(function(){return i.e})),n.d(t,"isSvgAvatar",(function(){return i.f})),n.d(t,"AVAILABILITY_STATUS",(function(){return s.a})),n.d(t,"AvailabilityStatus",(function(){return s.b})),n.d(t,"APP_MODE",(function(){return c.a})),n.d(t,"AppMode",(function(){return c.b})),n.d(t,"ChatRoomScreen",(function(){return u.a})),n.d(t,"ChatWidget",(function(){return l.a})),n.d(t,"ControlledChatRoomScreen",(function(){return d.a})),n.d(t,"withCollapseExpand",(function(){return v})),n.d(t,"Header",(function(){return g.a})),n.d(t,"MessageEntry",(function(){return b.a})),n.d(t,"ChatroomList",(function(){return Ge})),n.d(t,"ChatroomListEntry",(function(){return _e})),n.d(t,"MessageNotification",(function(){return Ve.a})),n.d(t,"withChatrooms",(function(){return Re.a})),n.d(t,"withGlobalUnread",(function(){return Ye.a})),n.d(t,"ChatConfigurationProvider",(function(){return qe.a})),n.d(t,"ThemeProvider",(function(){return Ke.a})),n.d(t,"expandCollapseManager",(function(){return m.a})),n.d(t,"titleManagerFactory",(function(){return tt})),n.d(t,"ChatAppsRegistryProvider",(function(){return nt})),n.d(t,"ChatWebTranslationsProvider",(function(){return rt})),n.d(t,"AnimatedPlaceholderChatroomList",(function(){return Me})),n.d(t,"withUnseenCount",(function(){return at})),n.d(t,"AvatarWrapper",(function(){return Ae.a})),function(e){e.Portrait="portrait",e.Landscape="landscape"}(r||(r={})),function(e){e.Giphy="Giphy"}(o||(o={}));var a=n(635),i=n(72),s=n(443),c=n(52),u=n(783),l=n(634),d=n(780),p=n(1),f=n(0),h=n.n(f),m=n(59),v=function(e){return function(t){function n(e){var n=t.call(this,e)||this;return n.handleChatExpand=function(){n.setState({isExpanded:!0})},n.handleChatCollapse=function(){n.setState({isExpanded:!1})},n.state={isExpanded:!1},m.a.registerOnCollapse(n.handleChatCollapse),m.a.registerOnExpand(n.handleChatExpand),n}return Object(p.__extends)(n,t),n.prototype.componentWillUnmount=function(){m.a.unregisterOnExpand(this.handleChatExpand),m.a.unregisterOnCollapse(this.handleChatCollapse)},n.prototype.render=function(){var t=this.state.isExpanded,n=Object(p.__assign)(Object(p.__assign)({},this.props),{isExpanded:t});return h.a.createElement(e,Object(p.__assign)({},n))},n}(h.a.Component)},g=n(284),b=n(529),y=n(811),E=n.n(y),F=n(286),C=n(44),A=n(7),_=n.n(A),D=n(5),O=n.n(D),w=n(24),x=n(168),B=n(786),S=n(56),k=n.n(S),T=n(54),R=n.n(T),I=n(55),P=n.n(I),j=n(20),M=n.n(j),N=n(66),L=n.n(N),H=n(67),U=n.n(H),z=n(29),W=n.n(z),G=n(11),V=n.n(G),Y=n(2),q=n.n(Y),K=n(816),$=n.n(K),Z=n(814),Q=n.n(Z),X=n(813),J=n.n(X),ee=n(773),te=n(441),ne=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)},re=function(){return ne()+ne()+"-"+ne()+"-"+ne()+"-"+ne()+"-"+ne()+ne()+ne()},oe="checked",ae="unchecked",ie="indeterminate",se="checkbox-input",ce="checkbox-label",ue="checkbox-box-tooltip",le="checkbox-box",de="checkbox-children";function pe(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var fe=function(e){L()(r,e);var t,n=(t=r,function(){var e,n=W()(t);if(pe()){var r=W()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return U()(this,e)});function r(){var e;R()(this,r);for(var t=arguments.length,o=new Array(t),a=0;a0&&h.a.createElement("span",{className:E.a.unreadMessagesPimple},h.a.createElement(ye,{skin:"standard",dataHook:"unread-messages-pimple"},o.count<=99?o.count:99))),w&&h.a.createElement("div",{"data-hook":"assignee-row",className:E.a.assigneeRow},h.a.createElement(ee.a,{dataHook:"assignee",size:"tiny",light:!0,secondary:!0,ellipsis:!0,showTooltip:!1},f("list.entry.assigned.to",{name:w.assigneeData.displayName}))),D&&h.a.createElement("div",{className:E.a.quickActions,"data-hook":"quick-actions"},l(o).map((function(t,n){return h.a.createElement(B.a,{key:n,dataHook:"quick-action-tooltip-"+n,content:t.name,theme:"dark",showImmediately:!0},h.a.createElement("div",{className:E.a.quickAction,key:n},h.a.createElement("div",{onClick:function(n){n.preventDefault(),n.stopPropagation(),t.action(e.room)}},t.icon)))})))))}))))),De=n(809),Oe=n.n(De),we=n(585),xe=n.n(we),Be=n(14),Se=n.n(Be),ke=n(629),Te=n.n(ke),Re=n(779),Ie=n(810),Pe=n.n(Ie),je=function(){return h.a.createElement("div",{className:_()(Pe.a.entryV2,Pe.a.animatedBackground)},h.a.createElement("div",{className:_()(Pe.a.circleWrapper)}),h.a.createElement("div",{className:_()(Pe.a.whiteBlock,Pe.a.upperBlockWhiteSpace)}),h.a.createElement("div",{className:_()(Pe.a.whiteBlock,Pe.a.firstBlockWhiteSpace)}),h.a.createElement("div",{className:_()(Pe.a.whiteBlock,Pe.a.betweenBlocksWhiteSpace)}),h.a.createElement("div",{className:_()(Pe.a.whiteBlock,Pe.a.bottomBlockWhiteSpace)}),h.a.createElement("div",{className:_()(Pe.a.whiteBlock,Pe.a.verticalBlockWhiteSpace)}))},Me=function(){return h.a.createElement("div",null,Array(12).fill(void 0).map((function(e,t){return h.a.createElement(je,{key:t})})))},Ne=n(288),Le=n(442),He=n(162),Ue=n(807),ze=n.n(Ue),We=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selectRoomIfNeeded=function(e){var n=t.props.chatrooms;t.isNotFetchingRooms()&&t.isChatroomRemovedFromCurrentList(e,n)&&t.selectNextOrLastRoom(e)},t.isChatroomRemovedFromCurrentList=function(e,n){return t.isSelectedRoomOnList(e)&&!t.isSelectedRoomOnList(n)},t.isNotFetchingRooms=function(){return!t.props.isFetchingChatrooms},t.chatroomSelectHandler=function(e){var n=t.props.onSelect;n&&n(e)},t.chatroomCheckHandler=function(e){var n=t.props,r=n.onChatroomsCheck,o=n.checkedChatrooms,a=void 0===o?[]:o;r&&r(ze()(a,[e]))},t.chatroomClickHandler=function(e){t.props.editMode?t.chatroomCheckHandler(e):t.chatroomSelectHandler(e)},t.isSelectedRoomOnList=function(e){return xe()(e,(function(e){return e.id===t.props.selectedChatroomId}))},t.selectFirstRoom=function(){return t.chatroomSelectHandler(t.props.chatrooms[0].id)},t.selectNextOrLastRoom=function(e){var n=t.props,r=n.chatrooms,o=n.selectedChatroomId,a=Te()(e,(function(e){return e.id===o})),i=e.slice(a+1).find((function(e){var t=e.id;return r.some((function(e){var n=e.id;return t===n}))}));return i&&t.chatroomSelectHandler(i.id),t.chatroomSelectHandler(r[Math.min(r.length-1,a)].id)},t}return Object(p.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.chatrooms,n=e.onChatroomListChange,r=e.isFetchingChatrooms;null==n||n({chatrooms:t,isFetchingChatrooms:r})},t.prototype.componentDidUpdate=function(e){var t=e.chatrooms,n=e.isFetchingChatrooms,r=this.props,o=r.chatrooms,a=r.isFetchingChatrooms,i=r.selectedChatroomId,s=r.onChatroomListChange,c=t!==o;(c||n!==a)&&(null==s||s({chatrooms:o,isFetchingChatrooms:a})),Se()(o)||(i?c&&this.selectRoomIfNeeded(t):this.selectFirstRoom())},t.prototype.render=function(){var e=this,t=this.props,n=t.emptyState,r=t.chatrooms,o=t.isFirstLoading,a=t.quickActionsStrategy,i=t.getChatroomBadgeClassName,s=t.appMode,c=t.onChatroomNameClickCallback,u=t.locale,l=t.editMode,d=t.checkedChatrooms,p=void 0===d?[]:d,f=t.labelsList;return h.a.createElement(Ee.a,{i18n:Object(He.a)({locale:u})},h.a.createElement(Le.a,{appMode:s},o?h.a.createElement("div",{"data-hook":"chatroom-list",className:Oe.a.chatroomList},h.a.createElement(Me,null)):r&&r.length?h.a.createElement("div",{"data-hook":"chatroom-list",className:Oe.a.chatroomList},r.map((function(t){return h.a.createElement(_e,{labelsList:f,selected:t.id===e.props.selectedChatroomId,checked:p.includes(t.id),key:t.id,room:t,onClick:e.chatroomClickHandler,onChatroomNameClickCallback:c,quickActionsStrategy:a,getChatroomBadgeClassName:i,editMode:l})}))):n))},t.isActive=function(){return!document.hidden},t}(h.a.Component),Ge=Object(Re.a)(Object(Ne.a)({isChatActivePredicate:We.isActive})(We)),Ve=n(530),Ye=n(781),qe=n(636),Ke=n(140),$e=n(17),Ze=n(630),Qe=n.n(Ze),Xe=n(819),Je=n.n(Xe),et=function(){function e(e){var t=e.defaultTitle,n=e.setTitleCb,r=e.locale;this.setTitleCb=Qe.a,this.defaultTitle=t,this.setTitleCb=n,this.unreadMessageChatroomsIds=[],this.titleIntervalIndex=0,this.i18nextInstance=Object(He.a)({locale:r}),this.addTitleListener()}return e.prototype.startChangeTitleInterval=function(){var e=this;this.changeTitleIntervalId=setInterval((function(){if(Je()(e.unreadMessageChatroomsIds)<=e.titleIntervalIndex)e.setTitleCb(e.defaultTitle),e.titleIntervalIndex=0;else{var t=e.unreadMessageChatroomsIds[e.titleIntervalIndex].senderName,n=t?e.i18nextInstance.t("unread.messages.title.name",{name:t}):e.i18nextInstance.t("unread.messages.title.generic");e.setTitleCb(n),e.titleIntervalIndex++}}),2e3)},e.prototype.addTitleListener=function(){$e.d.addListener($e.d.CHAT_EVENTS.NEW_REALTIME_MESSAGE,this.handleMessageReceived.bind(this)),$e.d.addListener($e.d.CHAT_EVENTS.MESSAGES_READ,this.handleMessageRead.bind(this))},e.prototype.removeTitleListener=function(){$e.d.removeListener($e.d.CHAT_EVENTS.NEW_REALTIME_MESSAGE,this.handleMessageReceived.bind(this)),$e.d.removeListener($e.d.CHAT_EVENTS.MESSAGES_READ,this.handleMessageRead.bind(this))},e.prototype.handleMessageReceived=function(e){-1===Te()(this.unreadMessageChatroomsIds,["chatroomId",e.chatroomId])&&(this.unreadMessageChatroomsIds.push({chatroomId:e.chatroomId,senderName:O()(e,"senderDisplayData.name")}),1===Je()(this.unreadMessageChatroomsIds)&&this.startChangeTitleInterval())},e.prototype.handleMessageRead=function(e){var t=Te()(this.unreadMessageChatroomsIds,["chatroomId",e]);-1!==t&&(this.unreadMessageChatroomsIds.splice(t,1),Je()(this.unreadMessageChatroomsIds)||this.resetTitleToDefault())},e.prototype.resetTitleToDefault=function(){clearInterval(this.changeTitleIntervalId),this.setTitleCb(this.defaultTitle)},e.prototype.stop=function(){this.removeTitleListener(),this.resetTitleToDefault()},e}(),tt=new(function(){function e(){}return e.prototype.createTitleManager=function(e){return new et(e)},e}()),nt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(p.__extends)(t,e),t.prototype.getChildContext=function(){return{chatAppsRegistry:this.props.chatAppsRegistry}},t.prototype.render=function(){return h.a.Children.only(this.props.children)},t.childContextTypes={chatAppsRegistry:q.a.object},t}(h.a.Component),rt=function(e){var t=e.children,n=e.locale,r=Object(f.useMemo)((function(){return Object(He.a)({locale:n})}),[n]);return h.a.createElement(Ee.a,{i18n:r},h.a.createElement(h.a.Fragment,null,t))},ot=n(13),at=function(e,t){return function(n){function r(e){var t=n.call(this,e)||this;return t.state={},t}return Object(p.__extends)(r,n),r.prototype.isExperimentOn=function(){return x.a.isExperimentOn(ot.Constants.experiments.UnseenChatroomCount)},r.prototype.componentDidMount=function(){var e=this;this.isExperimentOn()&&(this.subscription=x.a.unseenChatroom.subscribeToCount((function(t){return e.setState(t)}),t))},r.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.unsubscribe()},r.prototype.render=function(){var t=this.isExperimentOn()?{unseenCount:this.state.count,unseenOverflow:this.state.overflow}:{},n=Object(p.__assign)(Object(p.__assign)({},this.props),t);return h.a.createElement(e,Object(p.__assign)({},n))},r}(f.Component)}},,function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},,,,,function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"_1G7UX",srOnly:"_1G7UX",wrapper:"_3PC5y",expanded:"_1wwDY",folded:"ZeIVo",shouldApplyFoldAnimation:"_2adNJ",unfolded:"_1iWDB",shouldApplyUnfoldAnimation:"_3Tgm9",headerButton:"eVpfA",backButton:"_2wNY7",expandButton:"_3_pDr",arrowIcon:"_2y2zf",shouldApplyCollapseAnimation:"_1bNcb","rotateArrowDown-ltr":"_1fBju",rotateArrowDownLtr:"_1fBju","rotateArrowDown-rtl":"_1z3aB",rotateArrowDownRtl:"_1z3aB",collapseButton:"_37NKB",shouldApplyExpandAnimation:"_2BDyW","rotateArrowUp-ltr":"_2pdKY",rotateArrowUpLtr:"_2pdKY","rotateArrowUp-rtl":"_1WEG9",rotateArrowUpRtl:"_1WEG9",cancelButton:"_3w6qi","rotate-ltr":"_2IX3A",rotateLtr:"_2IX3A","rotate-rtl":"_1e9tM",rotateRtl:"_1e9tM",expandWidgetAnimationFromRounded:"_3U3Fl"}},,,,,,,,,,function(e,t,n){"use strict";var r=n(1),o=n(0),a=n.n(o),i=n(2),s=n.n(i),c=n(52);t.a=function(e){var t;return(t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(n,t),n.prototype.render=function(){var t=this.context.appMode,n=Object(r.__assign)(Object(r.__assign)({},this.props),{appMode:t});return a.a.createElement(e,Object(r.__assign)({},n))},n}(a.a.Component)).contextTypes={appMode:s.a.oneOf([c.b.FullApp,c.b.Widget])},t}},,,function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"_2RGRw",srOnly:"_2RGRw",wrapper:"_31QzK",compactMode:"_3tIYT",headerContent:"GKBA7",header:"_2tAx_",avatar:"_3idDv",title:"_3f1KI",message:"_23mx0",closeButton:"_3ptNl",content:"_21Njh",multipleMessagesIndication:"_23eo2",callToAction:"_3BOrK","rotate-ltr":"_1ZLBg",rotateLtr:"_1ZLBg","rotate-rtl":"_3J4mL",rotateRtl:"_3J4mL"}},,,,function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"_8MHXb",srOnly:"_8MHXb",root:"_1fE0k",fileUploadInput:"rBeTz",lineSeparatorWrapper:"visW2",lineSeparator:"_2XWE5",inputSendViaIndication:"_1yqJI",sendFileError:"IQf7z",exitButton:"_UlJW",fileErrorTitle:"uT0GF",fileErrorText:"_2yQKZ",fileErrorChooseAnotherFile:"_U9Ky",inputKeyboards:"_2atRm",internalKeyboardStyle:"_1QQJc",minimized:"_3Sc6f",keyboardWrapper:"_3Nc-0",duplicateTextArea:"_2YaAX",textAreaWrapper:"_2oWnB",columnLayout:"_2cD6y",textArea:"_1QQLW",inputButtonsWrapper:"nUeIR",sendButtonIcon:"_2SalP",sendButton:"qd3an",inputButton:"v9MHH",activeButton:"_2oJX0","rotate-ltr":"_2Og-R",rotateLtr:"_2Og-R","rotate-rtl":"_1RjkX",rotateRtl:"_1RjkX"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var r,o={WIDGET:"widget",FULL_APP:"fullApp"};!function(e){e.Widget="widget",e.FullApp="fullApp"}(r||(r={}))},,function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},,,,,function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"_2hiyb",srOnly:"_2hiyb",messagesList:"_1WikH",fullApp:"_2Ssb_",fetchMoreLoader:"_8XeqK",timestamp:"SDUVB",timestampLine:"Y6UgX",widget:"_1vAsR",listItem:"_1sytK",end:"_3jIz0",middle:"_2zVwW",typingIndication:"_2fwDl",messagesListRoot:"_2fg5Y",unreadMessagesButton:"_1sk59",unreadMessagesButtonInner:"p8JQa",unreadMessagesText:"ibPJH",unreadButtonFullApp:"p4FN4",unreadButtonCount:"_3G0g-","rotate-ltr":"_3U2v5",rotateLtr:"_3U2v5","rotate-rtl":"_2LUag",rotateRtl:"_2LUag"}},,function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"_5FrQi",srOnly:"_5FrQi",message:"oYBQx",right:"_9EN5V",center:"_1mSfZ",noAvatarPadding:"_2580N",left:"_3HJr3",widget:"_2z_k1",bubbleWrapper:"_3SmmQ",bubble:"J1QX5",title:"_1ycNN",messageBadge:"_3VRIo",outgoing:"_108Fi",messageBadgeIcon:"_1V0oO",fullApp:"_3gNxv",whiteBubble:"_3sbc0",emphasisBubble:"_1S76f",end:"_3fYuv",middle:"_2mxNs","author-avatar":"_28Vh4",authorAvatar:"_28Vh4","rotate-ltr":"_2LsVe",rotateLtr:"_2LsVe","rotate-rtl":"_3UepQ",rotateRtl:"_3UepQ"}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={UnreadMessagesButtonDesktop:"specs.chat.UnreadMessagesButtonDesktop",MessagesRTLSupport:"specs.chat.MessagesRTLSupport",NewAvatar:"specs.chat.NewAvatar"}},,,,,,function(e,t,n){var r=n(165);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n(1);function o(e,t,n){var r={};return e.forEach((function(o){o?r[o[t]]=Object.assign({},o,n):console.warn("toStateObj: array contained an undefined",e)})),r}function a(e){return Object.keys(e).map((function(t){return Object(r.__assign)({id:t},e[t])}))}var i=function(e){console.warn("DEPRECATED (chat-sdk): "+e)},s=function(e){var t="DEPRECATED (chat-sdk): "+e;throw console.warn(t),new Error(t)}},function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"_2aNtP",srOnly:"_2aNtP",root:"nlwQE",isChatApp:"_2dVv-",toTheRight:"_2ILcf",drillInIndicationsWrapper:"nxqrs",drillInIndicationsMessageOverlay:"_3udrN",shouldStayVisible:"_30lzV",drillInIndicationsButtonWrapper:"_1Um_q",drillInIndicationsButton:"qh-RH",drillInIndicationsList:"_1iWNV",seenSection:"_3KaU7",sentSection:"_3r7Lx",drillInListItem:"_2VFHg",indicationDetails:"_2tQjl",sectionLineSeparator:"HffIw",lineSeparator:"_1sIIq","rotate-ltr":"bVLo5",rotateLtr:"bVLo5","rotate-rtl":"_1Ji3_",rotateRtl:"_1Ji3_"}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(84),o=n(69),a=n(5),i=function(){function e(e,t){this._chatroom=e,this._lastMessage=(null==e?void 0:e.lastMessage)?new o.a(e.lastMessage):null,this._online=!!t}return Object.defineProperty(e.prototype,"id",{get:function(){return this._chatroom.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"participantId",{get:function(){return this._chatroom.participantId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._chatroom.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"initials",{get:function(){return this._chatroom.initials},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timestamp",{get:function(){return this._lastMessage&&this._lastMessage.age||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){if(!this.lastMessage)return"";var e=this.lastMessage.summary||"",t=a(this.lastMessage,"senderDisplayData.name"),n=t?t+": ":"";return this.isPrivate?e:""+n+e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastMessage",{get:function(){return this._lastMessage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"thumbnail",{get:function(){return this._chatroom.image&&this._chatroom.image.url},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._chatroom.unreadCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"online",{get:function(){return this._online},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isPrivate",{get:function(){return this._chatroom.isPrivate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"otherParticipantId",{get:function(){return this._chatroom.otherParticipantId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clientReference",{get:function(){return this._chatroom.clientReference},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clientReferenceType",{get:function(){return this._chatroom.clientReferenceType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"siteUserType",{get:function(){return this._chatroom.siteUserType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"participantCount",{get:function(){return this._chatroom.participantCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"createdBy",{get:function(){return this._chatroom.createdBy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"createdAt",{get:function(){return this._chatroom.createdAt},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"error",{get:function(){return this._chatroom.error},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"messageDeliveryError",{get:function(){return this._chatroom.messageDeliveryError},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"archived",{get:function(){Object(r.b)("archive property on chatroom is deprecated, use isArchived instead")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isArchived",{get:function(){return this._chatroom.isArchived},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTemporary",{get:function(){return this._chatroom.isTemporary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offlineChannels",{get:function(){return a(this._chatroom,"offlineChannels.channels")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offlineChannel",{get:function(){var e=this._chatroom.offlineChannels;return e&&e.channels.some((function(e){return!!e.type}))?e.channels[0].type:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"siteName",{get:function(){return this._chatroom.businessContext&&this._chatroom.businessContext.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"businessContext",{get:function(){return this._chatroom.businessContext},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelIds",{get:function(){return this._chatroom.labelIds},enumerable:!0,configurable:!0}),e}()},,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n.stylable.create("root","Popover2728674944",{root:"Popover2728674944--root",popoverAnimation:"Popover2728674944--popoverAnimation","popoverAnimation-enter":"Popover2728674944--popoverAnimation-enter","popoverAnimation-enter-active":"Popover2728674944--popoverAnimation-enter-active","popoverAnimation-exit":"Popover2728674944--popoverAnimation-exit","popoverAnimation-exit-active":"Popover2728674944--popoverAnimation-exit-active",popoverContent:"Popover2728674944--popoverContent",arrow:"Popover2728674944--arrow",popover:"Popover2728674944--popover",withArrow:"Popover2728674944--withArrow",popoverElement:"Popover2728674944--popoverElement",contentBackgroundColor:"white",contentBorderWidth:"1px",contentBorderStyle:"solid",contentBorderColor:"black",contentBorderRadius:"initial",contentPadding:"initial",contentArrowSize:"5px"},".Popover2728674944--root{position:relative;display:inline-block}.Popover2728674944--root[data-popover2728674944-fluid]{display:block}.Popover2728674944--popoverContent{background-color:#fff;border-width:1px;border-style:solid;border-color:#000;border-radius:initial;padding:initial}.Popover2728674944--arrow{width:0;height:0;border-style:solid;position:absolute;margin:5px}.Popover2728674944--popover[data-placement*=right].Popover2728674944--withArrow{padding-left:5px}.Popover2728674944--popover[data-placement*=right].Popover2728674944--withArrow .Popover2728674944--arrow{border-width:5px 5px 5px 0;left:-5px;margin-left:5px;margin-right:0;border-color:transparent #000 transparent transparent}.Popover2728674944--popover[data-placement*=left].Popover2728674944--withArrow{padding-right:5px}.Popover2728674944--popover[data-placement*=left].Popover2728674944--withArrow .Popover2728674944--arrow{border-width:5px 0 5px 5px;right:-5px;margin-left:0;margin-right:5px;border-color:transparent transparent transparent #000}.Popover2728674944--popover[data-placement*=bottom].Popover2728674944--withArrow{padding-top:5px}.Popover2728674944--popover[data-placement*=bottom].Popover2728674944--withArrow .Popover2728674944--arrow{border-width:0 5px 5px 5px;top:-5px;margin-top:5px;margin-bottom:0;border-color:transparent transparent #000 transparent}.Popover2728674944--popover[data-placement*=top].Popover2728674944--withArrow{padding-bottom:5px}.Popover2728674944--popover[data-placement*=top].Popover2728674944--withArrow .Popover2728674944--arrow{border-width:5px 5px 0 5px;bottom:-5px;margin-top:0;margin-bottom:5px;border-color:#000 transparent transparent transparent}",1,"Popover2728674944"),n.stylable.$.register(t.default)},,,,,,,,,,,,,,function(e,t,n){e.exports={entry:"_10Ox3",form:"MvNna",hasSubmitError:"_1toTT",submitError:"_2CUAN",introText:"_3dety",submit:"_1nJDH",thankYouContainer:"_2zuzn",fields1:"_318ue",fields2:"_2nZPI",fields3:"_3b-BM",thankYouMessage:"_1wJwA"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n.stylable.create("root","WSRAvatar3180772978",{placeholder:"WSRAvatar3180772978--placeholder",externalContainer:"WSRAvatar3180772978--externalContainer",avatarContainer:"WSRAvatar3180772978--avatarContainer",coreAvatar:"WSRAvatar3180772978--coreAvatar",avatar:"WSRAvatar3180772978--avatar",presence:"WSRAvatar3180772978--presence",indication:"WSRAvatar3180772978--indication",iconButtonShadow:"WSRAvatar3180772978--iconButtonShadow",colorA1:"avatar3020217949--colorA1",colorA2:"avatar3020217949--colorA2",colorA3:"avatar3020217949--colorA3",colorA4:"avatar3020217949--colorA4",colorA5:"avatar3020217949--colorA5",colorA6:"avatar3020217949--colorA6",colorBlue:"avatar3020217949--colorBlue",colorGreen:"avatar3020217949--colorGreen",colorGrey:"avatar3020217949--colorGrey",colorRed:"avatar3020217949--colorRed",colorOrange:"avatar3020217949--colorOrange",root:"WSRAvatar3180772978--root"},'.WSRAvatar3180772978--placeholder{fill:#aadbfc;height:inherit;width:inherit;border-radius:inherit}.WSRAvatar3180772978--externalContainer{line-height:0}.WSRAvatar3180772978--avatarContainer{position:relative;display:inline-block}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-presence] .WSRAvatar3180772978--coreAvatar{padding-right:2px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-clickable] .WSRAvatar3180772978--avatar{cursor:pointer}.WSRAvatar3180772978--presence{border:2px solid #fff;position:absolute;border-radius:50px;top:0;right:0}.WSRAvatar3180772978--indication{position:absolute;bottom:0;right:0}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-fade] .WSRAvatar3180772978--indication{opacity:0;transition:opacity .1s linear}.WSRAvatar3180772978--iconButtonShadow{border-radius:50%;box-shadow:0 2px 1px 0 rgba(22,45,61,.48),0 0 3px 0 rgba(22,45,61,.12)}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size72] .WSRAvatar3180772978--indication,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size90] .WSRAvatar3180772978--indication{width:30px;height:30px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size48] .WSRAvatar3180772978--indication,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size60] .WSRAvatar3180772978--indication{width:24px;height:24px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size18] .WSRAvatar3180772978--presence,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size24] .WSRAvatar3180772978--presence{width:6px;height:6px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size30] .WSRAvatar3180772978--presence,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size36] .WSRAvatar3180772978--presence{width:8px;height:8px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size48] .WSRAvatar3180772978--presence,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size60] .WSRAvatar3180772978--presence{width:10px;height:10px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size72] .WSRAvatar3180772978--presence{width:12px;height:12px;top:1px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size90] .WSRAvatar3180772978--presence{width:12px;height:12px;top:1px;right:4px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size90][data-wsravatar3180772978-presence] .WSRAvatar3180772978--coreAvatar{padding-right:0}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size18][data-wsravatar3180772978-presence] .WSRAvatar3180772978--coreAvatar,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size30][data-wsravatar3180772978-presence] .WSRAvatar3180772978--coreAvatar,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size36][data-wsravatar3180772978-presence] .WSRAvatar3180772978--coreAvatar,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size48][data-wsravatar3180772978-presence] .WSRAvatar3180772978--coreAvatar{padding-top:1px;padding-right:5px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size24][data-wsravatar3180772978-presence] .WSRAvatar3180772978--coreAvatar{padding-right:4px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-presencetype=online] .WSRAvatar3180772978--presence{background-color:#60bc57}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-presencetype=offline] .WSRAvatar3180772978--presence{background-color:#ee5951}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-presencetype=busy] .WSRAvatar3180772978--presence{background-color:#fdb10c}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size60][data-wsravatar3180772978-indication],.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size72][data-wsravatar3180772978-indication],.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size90][data-wsravatar3180772978-indication]{padding-right:6px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size48][data-wsravatar3180772978-indication]{padding-right:12px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size90][data-wsravatar3180772978-indication][data-wsravatar3180772978-presence]{padding-right:6px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size60][data-wsravatar3180772978-indication][data-wsravatar3180772978-presence],.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size72][data-wsravatar3180772978-indication][data-wsravatar3180772978-presence]{padding-right:4px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size48][data-wsravatar3180772978-indication][data-wsravatar3180772978-presence]{padding-right:7px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size48][data-wsravatar3180772978-indication] .WSRAvatar3180772978--presence{right:10px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size60][data-wsravatar3180772978-indication] .WSRAvatar3180772978--presence,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size72][data-wsravatar3180772978-indication] .WSRAvatar3180772978--presence{right:6px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size90][data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--presence{top:-5px;right:1px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size72][data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--presence{top:-5px;right:1px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size60][data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--presence{top:-4px;right:2px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size48][data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--presence{top:-3px;right:8px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size36][data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--presence{top:-3px;right:1px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size30][data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--presence{top:-3px;right:1px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size24][data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--presence{top:-4px;right:0}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size18][data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--presence{top:-3px;right:1px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size90][data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--indication{right:0;bottom:-3px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size72][data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--indication{right:0;bottom:-3px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size60][data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--indication{right:0;bottom:-2px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size48][data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--indication{right:3px;bottom:-2px}.WSRAvatar3180772978--avatar{display:flex;justify-content:center;align-items:center;height:48px;width:48px;border-radius:30px;outline:0}.WSRAvatar3180772978--avatar[data-focusable3174625688-focus-visible]{box-shadow:0 0 0 3px #aadbfc}.WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=image] .avatar3020217949--content{height:inherit;width:inherit;border-radius:inherit}.WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=placeholder]{background-color:#daeffe}.WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text].avatar3020217949--colorA1{background-color:#3370fb}.WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text].avatar3020217949--colorA2{background-color:#7852d2}.WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text].avatar3020217949--colorA3{background-color:#17b0e2}.WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text].avatar3020217949--colorA4{background-color:#c53e99}.WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text].avatar3020217949--colorA5{background-color:#fdb10c}.WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text].avatar3020217949--colorA6{background-color:#3d9fa1}.WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text].avatar3020217949--colorBlue{background-image:linear-gradient(225deg,#389aec,#4ebcf5)}.WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text].avatar3020217949--colorGreen{background-image:linear-gradient(225deg,#4eb968,#5bca90)}.WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text].avatar3020217949--colorGrey{background-image:linear-gradient(225deg,#6f819d 4%,#829bb0)}.WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text].avatar3020217949--colorRed{background-image:linear-gradient(225deg,#ee6a51,#ff6686)}.WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text].avatar3020217949--colorOrange{background-image:linear-gradient(225deg,#fb6b33,#ffaf48)}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size90] .WSRAvatar3180772978--avatar{height:90px;width:90px;border-radius:45px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size72] .WSRAvatar3180772978--avatar{height:72px;width:72px;border-radius:36px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size60] .WSRAvatar3180772978--avatar{height:60px;width:60px;border-radius:36px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size48] .WSRAvatar3180772978--avatar{height:48px;width:48px;border-radius:30px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size36] .WSRAvatar3180772978--avatar{height:36px;width:36px;border-radius:21px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size30] .WSRAvatar3180772978--avatar{height:30px;width:30px;border-radius:15px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size24] .WSRAvatar3180772978--avatar{height:24px;width:24px;border-radius:12px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size18] .WSRAvatar3180772978--avatar{height:18px;width:18px;border-radius:12px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--avatar{border-radius:4px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size72][data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--avatar,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size90][data-wsravatar3180772978-shape=square] .WSRAvatar3180772978--avatar{border-radius:6px}.WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content{font-size:14px;line-height:18px;font-weight:400;font-weight:var(--wsr-font-weight-bold,400);font-family:HelveticaNeueW01-65Medi,HelveticaNeueW02-65Medi,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-family:var(--wsr-font-family,HelveticaNeueW01-65Medi,HelveticaNeueW02-65Medi),"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;color:#fff}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size72] .WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size90] .WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content{font-size:16px;line-height:24px;font-weight:400;font-weight:var(--wsr-font-weight-regular,400);font-family:HelveticaNeueW01-55Roma,HelveticaNeueW02-55Roma,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-family:var(--wsr-font-family,HelveticaNeueW01-55Roma,HelveticaNeueW02-55Roma),"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size72][data-madefor=true] .WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size90][data-madefor=true] .WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content{font-size:16px;line-height:24px;font-weight:400;font-weight:var(--wsr-font-weight-bold,400);font-family:HelveticaNeueW01-65Medi,HelveticaNeueW02-65Medi,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-family:var(--wsr-font-family,HelveticaNeueW01-65Medi,HelveticaNeueW02-65Medi),"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size18] .WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size24] .WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size30] .WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size36] .WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content{font-size:12px;line-height:15px;font-weight:400;font-weight:var(--wsr-font-weight-regular,400);font-family:HelveticaNeueW01-65Medi,HelveticaNeueW02-65Medi,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-family:var(--wsr-font-family,HelveticaNeueW01-65Medi,HelveticaNeueW02-65Medi),"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;line-height:18px}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size18][data-madefor=true] .WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size24][data-madefor=true] .WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size30][data-madefor=true] .WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size36][data-madefor=true] .WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content{font-size:12px;line-height:15px;font-weight:400;font-weight:var(--wsr-font-weight-bold,400);font-family:HelveticaNeueW01-75Bold,HelveticaNeueW02-75Bold,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-family:var(--wsr-font-family,HelveticaNeueW01-75Bold,HelveticaNeueW02-75Bold),"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif}.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size18] .WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content,.WSRAvatar3180772978--avatarContainer[data-wsravatar3180772978-size=size24][data-wsravatar3180772978-hastext] .WSRAvatar3180772978--avatar[data-avatar3020217949-contenttype=text] .avatar3020217949--content{visibility:hidden}',8,"WSRAvatar3180772978"),n.stylable.$.register(t.default)},function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"_2Srqy",srOnly:"_2Srqy",standardTemplate:"_3LmPR",vertical:"_3gB9h",image:"_1TDRM",text:"_3FbS0",standardTemplateTitle:"_38Yp1",standardTemplateText:"_1BPdm",standardTemplateLine:"_2wjUe",fullApp:"oiFYi",buttons:"_38SgV",button:"_1qxbm","rotate-ltr":"_2srKF",rotateLtr:"_2srKF","rotate-rtl":"_1dXvb",rotateRtl:"_1dXvb"}},,function(e,t,n){var r=n(248),o=n(160);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var s=-1,c=t.length;++s1&&void 0!==arguments[1]?arguments[1]:f,n=null,r=null;return function(){return h(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function v(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function g(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;rr}(f,n);t=p,n=f;var v=G(l,e);v.error&&u&&(Object(q.c)("Instead of onError callback in subscribeToChatroom, rely on the error field in the Chatroom object"),u(v.error)),s(v),m&&c&&c(v)}}},$=function(e){var t=ao.store.getState();return y(e,(function(e){return!t.participants.byId[e]}))},Z=n(8),Q=n(230),X=n(594),J=function(e,t){return E(e,(function(e){return ee(e,t)}))};function ee(e,t){return i(t)?!e.isArchived:[te,ne,re,oe].every((function(n){return n(e,t)}))}function te(e,t){return t.isArchived?!!e.isArchived:!e.isArchived}function ne(e,t){var n;return!(null===(n=t.participantIds)||void 0===n?void 0:n.length)||t.participantIds.some((function(t){return t===e.participantId}))}function re(e,t){if("business"===t.participantType)return e.participantId===c(e,"businessContext.id")&&"Engage"===e.pluginName;if("siteMember"===t.participantType){var n=e.participantId!==c(e,"businessContext.id");return"Social"===e.pluginName||"Engage"===e.pluginName&&n}return!0}function oe(e,t){var n;return!(null===(n=t.labelIds)||void 0===n?void 0:n.length)||t.labelIds.some((function(t){return e.labelIds.includes(t)}))}var ae={maxUnreadsCount:50,maxTrackableUnreads:60},ie=n(593),se="object"==typeof self&&self&&self.Object===Object&&self,ce=(ie.a||se||Function("return this")()).Symbol,ue=Object.prototype,le=ue.hasOwnProperty,de=ue.toString,pe=ce?ce.toStringTag:void 0;var fe=function(e){var t=le.call(e,pe),n=e[pe];try{e[pe]=void 0;var r=!0}catch(e){}var o=de.call(e);return r&&(t?e[pe]=n:delete e[pe]),o},he=Object.prototype.toString;var me=function(e){return he.call(e)},ve=ce?ce.toStringTag:void 0;var ge=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ve&&ve in Object(e)?fe(e):me(e)};var be=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var ye=function(e){return null!=e&&"object"==typeof e},Ee=Function.prototype,Fe=Object.prototype,Ce=Ee.toString,Ae=Fe.hasOwnProperty,_e=Ce.call(Object);var De=function(e){if(!ye(e)||"[object Object]"!=ge(e))return!1;var t=be(e);if(null===t)return!0;var n=Ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ce.call(n)==_e},Oe=n(102),we="@@redux/INIT";function xe(e,t,n){var r;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(xe)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,a=t,i=[],s=i,c=!1;function u(){s===i&&(s=i.slice())}function l(){return a}function d(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return u(),s.push(e),function(){if(t){t=!1,u();var n=s.indexOf(e);s.splice(n,1)}}}function p(e){if(!De(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(c)throw new Error("Reducers may not dispatch actions.");try{c=!0,a=o(a,e)}finally{c=!1}for(var t=i=s,n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(i)throw i;for(var r=!1,o={},s=0;sae.maxTrackableUnreads?{resyncCountdown:ae.maxTrackableUnreads-ae.maxUnreadsCount}:{chatrooms:(r=a,r.reduce((function(e,t){return e[t.chatroomId]=!0,e}),{}))},n))}(e,t);case Ie.ADD_MESSAGE:var r=t.meta.chatroom,a=void 0===r?{}:r,i=a.lastSeenMessageSequence,s=void 0===i?0:i,c=a.lastReadMessageSequence,u=void 0===c?0:c,l=Math.max(s,u);return t.messageSentByCurrentUser||t.message.isSilent||t.message.sequence<=l?e:He(e,t.meta.chatroom);case Ie.HANDLE_ROOM_UNARCHIVED:case Ie.UNARCHIVE_ROOM:case Ie.SET_LAST_MESSAGE_UNREAD:return He(e,t.meta.chatroom);case Ie.UNARCHIVE_ROOMS:return t.meta.chatrooms.reduce((function(e,t){return He(e,t)}),e);case Ie.MARK_CHATROOM_SEEN:return ze(e,t.meta.chatroom);case Object(Pe.b)(Ie.MARK_CHATROOMS_SEEN):var d=t.meta,p=d.filter,f=d.filteredChatrooms,h=je(p),m=e[h],v=Le(m)?[]:Object.keys(m.chatrooms);return Object(o.__assign)(Object(o.__assign)(Object(o.__assign)({},f.reduce((function(e,t){return ze(e,t)}),e)),v.reduce((function(e,t){return function(e,t){var n=Object.keys(e),r=Object(o.__assign)({},e);return n.forEach((function(n){r[n]=Ue(e[n],t)})),r}(e,t)}),e)),((n={})[h]={chatrooms:{}},n));default:return e}}}),Ge=function(e){var t=e.lastMessage,n=e.lastReadMessageSequence,r=void 0===n?0:n,o=e.lastSeenMessageSequence,a=void 0===o?0:o;return!!t&&Math.max(r,a)o||!o?-1:1})).forEach((function(o){var a,s,c=e[o];if(i(t))s=Je(c);else{var u=n[o].otherParticipantId;s=null===(a=t[u])||void 0===a?void 0:a.online}var l=Ke({stateRoom:n[o],roomsById:n,stateRoomIsOnline:s});l.lastMessage&&!l.isTemporary&&r.push(l)})),r}function Ze(e,t){var n=e.chatrooms.byId[t];if(n)return Qe(n)}function Qe(e){var t=e.lastMessage,n=e.lastReadMessageSequence;if(t)return(void 0===n?0:n)0&&o.lastReadMessageSequence?o.lastReadMessageSequence-1:0;return this.store.dispatch(this.chatroomsActions.action$setLastMessageUnread(t,a))},e.prototype.sendMessage=function(e){var t=this.currentUser,n=this.store,r=this.chatroomsActions,i=e.dto,s=Object(o.__assign)(Object(o.__assign)({},i),{sender:i.sender||{userId:t.userId,type:t.type},senderDisplayData:t.displayData}),c=new a.a(s),u=r.action$sendMessage(c);return n.dispatch(u)},e.prototype.addMessage=function(e){var t,n=e.dto,r=e.transit;return Object(o.__awaiter)(this,void 0,void 0,(function(){var e,a,i,s,c,u,l,d,p,f;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return a=(e=this).currentUser,i=e.store,s=e.chatroomsActions,c=!(null===(t=n.sender)||void 0===t?void 0:t.userId)||n.sender.userId==a.userId,u=Object.assign(n,{transit:r},c?{senderDisplayData:a.displayData,sender:{userId:a.userId}}:{}),l=n.chatroomId,(d=i.getState().chatrooms.byId[l])&&d.id?[3,2]:(p=ao.isExperimentOn(Z.experiments.EnrichedChatroom),f=i.dispatch(s.action$fetchRoom(l,p)),ao.isExperimentOn(Z.experiments.UnseenChatroomCount)?[4,f]:[3,2]);case 1:o.sent(),o.label=2;case 2:return[2,i.dispatch(s.action$addMessage(u,!0,i.getState().chatrooms.byId[l]))]}}))}))},e.prototype.deleteMessage=function(e){var t=this.store,n=this.chatroomsActions.action$deleteMessage(e);return t.dispatch(n)},e}(),ut=function(){function e(e){var t=e.store,n=e.selector,r=e.chatroomsActions,o=e.globalUnreadsCountActions;this.store=t,this.selector=n,this.chatroomsActions=r,this.globalUnreadsCountActions=o}return e.prototype.subscribeToGlobalUnreadsCount=function(e){var t=e.callback,n=e.filter,r=this._createStoreCallbackForUnreadsCount(t);return this.selector.isUnreadCountLoaded(this.store.getState())||(this.store.dispatch(this.globalUnreadsCountActions.enable()),this.store.dispatch(this.chatroomsActions.fetchUnreadsChatroomIds({unreadChatroomLimit:ae.maxTrackableUnreads+1,filter:n}))),r(),{unsubscribe:this.store.subscribe(r)}},e.prototype._createStoreCallbackForUnreadsCount=function(e){var t,n=this;return function(){var r=n.store.getState(),o=n.selector.getCount(r);n.selector.isUnreadCountLoaded(r)&&(void 0!==t&&t.count===o.count&&t.overflow===o.overflow||e(t=o))}},e}(),lt=n(596),dt=function(e,t){var n=e[t];return"string"==typeof n?"true"===n:!!n},pt=function(){function e(e,t,n,r,o,a,i,s,c){this.serverApi=e,this.persistence=t,this.dbStorageService=c,this.eventHooks=n,this.chatroomsSelector=r,this.globalUnreadsCountSelector=o,this.globalUnreadsCountActions=a,this.unseenChatroomCountActions=i,this.experiments=s}return e.prototype.action$resetStore=function(){return{type:Ie.RESET_STORE}},e.prototype.fetchRoomMessages=function(e,t){var n=this;return function(r){return Object(o.__awaiter)(n,void 0,void 0,(function(){var n,a,i;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return n={chatroomId:e,cursor:t,pageSize:Z.FetchRoomMessagesPageSize},a=this.dbStorageService?{load:this.dbStorageService.loadMessages(n),save:this.dbStorageService.saveMessages,hydrationKey:"fetchRoomMessages-chatroomId:"+e}:void 0,i={type:Ie.FETCH_ROOM_MESSAGES,payload:this.serverApi.http$fetchRoomMessages(n),dbPayload:a,meta:{chatroomId:e,isFetchMore:!!t}},[4,r(i)];case 1:return o.sent(),[2]}}))}))}},e.prototype.action$fetchRoom=function(e,t){if(void 0===t&&(t=!1),!e){var n={tag:"error",description:"Attempting to fetch chatroom with undefined chatroomId."};p.e(p.a.MONITORING_BI,n),this.eventHooks.reportMonitoringBi(n),console.error("[Troubleshoot] called fetchRoom w/o chatroomId")}return t?{type:Ie.FETCH_ENRICHED_ROOM,payload:this.serverApi.http$fetchEnrichedChatroom({chatroomId:e}).then((function(e){return p.e(p.b.FETCH_ENRICHED_CHATROOM_COMPLETED,e),e}))}:{type:Ie.FETCH_ROOM,payload:this.serverApi.http$fetchRoom({chatroomId:e})}},e.prototype.action$deleteRoom=function(e){var t=this;return function(n){return Object(o.__awaiter)(t,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){switch(t.label){case 0:return[4,n({type:Ie.DELETE_ROOM,payload:this.serverApi.http$deleteChatroom({chatroomId:e}),meta:{chatroomId:e}})];case 1:return t.sent(),[4,this.decrementCounters(n,e)];case 2:return t.sent(),[2]}}))}))}},e.prototype.action$removeRoom=function(e){var t=this;return function(n){return Object(o.__awaiter)(t,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.decrementCounters(n,e)];case 1:return t.sent(),[2,n({type:Ie.REMOVE_ROOM,meta:{chatroomId:e}})]}}))}))}},e.prototype.action$handleRoomArchived=function(e){var t=this;return function(n){return Object(o.__awaiter)(t,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.decrementCounters(n,e)];case 1:return t.sent(),n({type:Ie.HANDLE_ROOM_ARCHIVED,meta:{chatroomId:e}}),[2]}}))}))}},e.prototype.action$handleRoomUnarchived=function(e){var t=this;return function(n,r){return Object(o.__awaiter)(t,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){return n({type:Ie.HANDLE_ROOM_UNARCHIVED,meta:{chatroomId:e,chatroom:r().chatrooms.byId[e]}}),this.chatroomsSelector.chatroomHasUnreads(r(),e)&&n(this.globalUnreadsCountActions.markAsUnread(e)),[2]}))}))}},e.prototype.archiveRoom=function(e){var t=this;return function(n){return Promise.all([t.decrementCounters(n,e),n({type:Ie.ARCHIVE_ROOM,payload:t.serverApi.http$archiveChatroom({chatroomId:e}),meta:{chatroomId:e}})])}},e.prototype.unarchiveRoom=function(e){var t=this;return function(n,r){return Object(o.__awaiter)(t,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){switch(t.label){case 0:return[4,n({type:Ie.UNARCHIVE_ROOM,payload:this.serverApi.http$unarchiveChatroom({chatroomId:e}),meta:{chatroomId:e,chatroom:r().chatrooms.byId[e]}})];case 1:return t.sent(),this.chatroomsSelector.chatroomHasUnreads(r(),e)&&n(this.globalUnreadsCountActions.markAsUnread(e)),[2]}}))}))}},e.prototype.fetchRooms=function(e){var t=this,n=void 0===e?{filter:{},cursor:void 0,isSilent:!1}:e,r=n.filter,a=n.cursor,i=n.isSilent,s=void 0!==i&&i;return function(e,n){return Object(o.__awaiter)(t,void 0,void 0,(function(){var t,i,c,u;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return t=this.getPageSize(this.experiments,Z.experiments.FetchChatroomsPageSize,Z.FetchChatroomsPageSizeDefaultValue),i={nextPointer:a,filter:r,pageSize:t},c=this.dbStorageService?{load:this.dbStorageService.loadChatrooms(i),save:this.dbStorageService.saveChatrooms,hydrationKey:"fetchRooms"}:void 0,u={type:Ie.FETCH_ROOMS,payload:this.serverApi.http$fetchChatrooms(i),dbPayload:c,meta:{filter:r,isSilent:s,isFetchMore:!!a}},[4,e(u)];case 1:return o.sent(),this.globalUnreadsCountActions.isEnabled()&&this.updateUnreadChatroomIdsAfterFetchDone(e,n),[2]}}))}))}},e.prototype.fetchUnreadsChatroomIds=function(e){var t=this,n=void 0===e?{}:e,r=n.unreadChatroomLimit,a=n.filter;return function(e,n){return Object(o.__awaiter)(t,void 0,void 0,(function(){var t,i;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return[4,e({type:Ie.FETCH_UNREAD_CHATROOM_IDS,payload:this.serverApi.http$fetchUnreadChatroomIds({unreadChatroomLimit:r,filter:a})})];case 1:return t=o.sent(),i=t.value.chatroomIds,[4,this.mergeAndUpdateChatroomIds(e,n,i)];case 2:return o.sent(),[2]}}))}))}},e.prototype.addRooms=function(e){return{type:Ie.ADD_ROOMS,rooms:e}},e.prototype.action$addMessage=function(e,t,n){var r=this;return function(o){o({type:Ie.ADD_MESSAGE,message:e,messageSentByCurrentUser:t,meta:{chatroom:n}}),t||e.isSilent||o(r.globalUnreadsCountActions.markAsUnread(e.chatroomId))}},e.prototype.action$sendMessage=function(e){return this.serverApi.http$notifyTyping(e.chatroomId,"stop"),{type:Ie.SEND_MESSAGE,payload:this.serverApi.http$sendMessage(e.chatroomId,e),meta:{message:e.dto}}},e.prototype.action$deleteMessage=function(e){return{type:Ie.DELETE_MESSAGE,meta:{messageId:e}}},e.prototype.action$setMessagesRead=function(e,t){var n=this;return function(r,a){return Object(o.__awaiter)(n,void 0,void 0,(function(){return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return[4,r({type:Ie.SET_MESSAGES_READ,payload:this.serverApi.http$setMessagesRead({chatroomId:e,lastReadMessageSequence:t}),meta:{chatroomId:e,lastReadMessageSequence:t}})];case 1:return n.sent(),[4,this.decrementUnseenCounter(r,e)];case 2:return n.sent(),this.chatroomsSelector.chatroomHasUnreads(a(),e)?[3,4]:[4,this.markAsReadInGlobalUnreadsCount(r,e)];case 3:n.sent(),n.label=4;case 4:return[2]}}))}))}},e.prototype.action$setMessagesReadForSelf=function(e){var t=this;return function(n,r){return Object(o.__awaiter)(t,void 0,void 0,(function(){var t;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return(t=st(r(),e))?[4,n({type:Ie.SET_MESSAGES_READ_FOR_SELF,meta:{chatroomId:e,lastReadMessageSequence:t}})]:[3,3];case 1:return o.sent(),[4,this.decrementCounters(n,e)];case 2:o.sent(),o.label=3;case 3:return[2]}}))}))}},e.prototype.action$setRoomsMessagesRead=function(e,t){var n=this;return function(r,a){return Object(o.__awaiter)(n,void 0,void 0,(function(){var n=this;return Object(o.__generator)(this,(function(i){return[2,Promise.all(Object(o.__spreadArrays)([r({type:Ie.SET_ROOMS_MESSAGES_READ,payload:this.serverApi.http$markRoomsAsRead(e,t),meta:{chatroomIds:e}})],e.map((function(e){return Object(o.__awaiter)(n,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.decrementUnseenCounter(r,e)];case 1:return t.sent(),this.chatroomsSelector.chatroomHasUnreads(a(),e)?[3,3]:[4,this.markAsReadInGlobalUnreadsCount(r,e)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))}))))]}))}))}},e.prototype.action$setLastMessageUnread=function(e,t){var n=this;return function(r,a){return Object(o.__awaiter)(n,void 0,void 0,(function(){return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return[4,r({type:Ie.SET_LAST_MESSAGE_UNREAD,payload:this.serverApi.http$setMessagesUnread({chatroomId:e,lastReadMessageSequence:t}),meta:{chatroomId:e,lastReadMessageSequence:t,chatroom:a().chatrooms.byId[e]}})];case 1:return n.sent(),[4,this.markAsUnreadInGlobalUnreadsCount(r,e)];case 2:return n.sent(),[2]}}))}))}},e.prototype.typing=function(e,t){return{type:Ie.TYPING,text:t,meta:{chatroomId:e}}},e.prototype.fetchMessageDrafts=function(){return{type:Ie.FETCH_MESSAGE_DRAFTS,payload:this.persistence.loadMessageDrafts()}},e.prototype.action$changeTypingStatus=function(e){return{type:Ie.TYPING_STATUS_CHANGE,payload:e}},e.prototype.action$fetchRoomParticipantsDisplayData=function(e,t){return{type:Ie.FETCH_PARTICIPANTS_DISPLAY_DATA,payload:this.serverApi.http$fetchParticipantsDisplayData({chatroomId:e,participantIds:t})}},e.prototype.setParticipantsPresence=function(e){return{type:Ie.SET_PARTICIPANTS_PRESENCE,chatroomsParticipants:e}},e.prototype.updateParticipantsPresence=function(e){return{type:Ie.UPDATE_PARTICIPANTS_PRESENCE,chatroomsParticipants:e}},e.prototype.updateUnreadChatroomIdsAfterFetchDone=function(e,t){var n=t();if(!this.globalUnreadsCountSelector.getCount(n).overflow){var r=this.globalUnreadsCountSelector.getUnreadChatroomIds(n);this.mergeAndUpdateChatroomIds(e,t,r)}},e.prototype.mergeAndUpdateChatroomIds=function(e,t,n){return void 0===n&&(n=[]),Object(o.__awaiter)(this,void 0,void 0,(function(){var r,a,i,s;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return r=t(),a=this.filterOutPotentialUnreadsKnownAsReads(r,n),i=this.getAllKnownUnreads(r),s=lt(i,a),[4,e(this.globalUnreadsCountActions.updateChatroomIds(s))];case 1:return o.sent(),[2]}}))}))},e.prototype.filterOutPotentialUnreadsKnownAsReads=function(e,t){var n=this;return t.filter((function(t){var r=n.chatroomsSelector.chatroomHasUnreads(e,t);return void 0===r||r}))},e.prototype.getAllKnownUnreads=function(e){return this.chatroomsSelector.getAllUnreadChatrooms(e)},e.prototype.decrementCounters=function(e,t){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.decrementUnseenCounter(e,t)];case 1:return n.sent(),[2,this.markAsReadInGlobalUnreadsCount(e,t)]}}))}))},e.prototype.decrementUnseenCounter=function(e,t){if(dt(this.experiments,Z.experiments.UnseenChatroomCount))return e(this.unseenChatroomCountActions.markChatroomAsSeen(t))},e.prototype.markAsReadInGlobalUnreadsCount=function(e,t){var n=this;return e(this.globalUnreadsCountActions.markAsRead(t,(function(t){var r=t.unreadChatroomLimit;return Object(o.__awaiter)(n,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){switch(t.label){case 0:return[4,e(this.fetchUnreadsChatroomIds({unreadChatroomLimit:r}))];case 1:return[2,t.sent()]}}))}))})))},e.prototype.markAsUnreadInGlobalUnreadsCount=function(e,t){return e(this.globalUnreadsCountActions.markAsUnread(t))},e.prototype.action$deleteRooms=function(e){var t=this;return function(n){return Object(o.__awaiter)(t,void 0,void 0,(function(){var t=this;return Object(o.__generator)(this,(function(r){return[2,Promise.all(Object(o.__spreadArrays)([n({type:Ie.DELETE_ROOMS,payload:this.serverApi.http$deleteChatrooms(e),meta:{chatroomIds:e}})],e.map((function(e){return t.decrementCounters(n,e)}))))]}))}))}},e.prototype.archiveRooms=function(e){var t=this;return function(n){return Object(o.__awaiter)(t,void 0,void 0,(function(){var t=this;return Object(o.__generator)(this,(function(r){return[2,Promise.all(Object(o.__spreadArrays)([n({type:Ie.ARCHIVE_ROOMS,payload:this.serverApi.http$archiveChatrooms(e),meta:{chatroomIds:e}})],e.map((function(e){return t.decrementCounters(n,e)}))))]}))}))}},e.prototype.unarchiveRooms=function(e){var t=this;return function(n,r){return Object(o.__awaiter)(t,void 0,void 0,(function(){var t,a=this;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return[4,n({type:Ie.UNARCHIVE_ROOMS,payload:this.serverApi.http$unarchiveChatrooms(e),meta:{chatroomIds:e,chatrooms:e.map((function(e){return r().chatrooms.byId[e]}))}})];case 1:return o.sent(),t=[],e.forEach((function(e){return t.push(a.markAsUnreadInGlobalUnreadsCount(n,e))})),[4,Promise.all(t)];case 2:return o.sent(),[2]}}))}))}},e.prototype.getPageSize=function(e,t,n){var r=parseInt(function(e,t,n){var r=e[t];return void 0===r?n:r}(e,t,n));return isNaN(r)?parseInt(n):r},e}(),ft=function(e,t,n,r,o,a,i,s,c){return new pt(e,t,n,r,o,a,i,s,c)},ht=function(){function e(e){this.serverApi=e}return e.prototype.action$fetchDrillInMessageIndications=function(e,t){return{type:Ie.FETCH_DRILL_IN_MESSAGE_INDICATIONS,payload:this.serverApi.http$fetchDrillInMessageIndications(e,t).then((function(e){return p.e(p.b.FETCH_DRILL_IN_MESSAGE_INDICATIONS_COMPLETED,e),e}))}},e.prototype.action$updateMessagesIndications=function(e){return{type:Ie.UPDATE_MESSAGES_INDICATIONS,payload:e}},e.prototype.action$fetchRoomParticipantsDisplayData=function(e,t){return{type:Ie.FETCH_PARTICIPANTS_DISPLAY_DATA,payload:this.serverApi.http$fetchParticipantsDisplayData({chatroomId:e,participantIds:t})}},e}(),mt=function(e){return new ht(e)},vt="GlobalUnreadsCount.UPDATE_UNREAD_CHATROOMS",gt="GlobalUnreadsCount.MARK_CHATROOM_READ",bt="GlobalUnreadsCount.MARK_CHATROOM_UNREAD",yt="GlobalUnreadsCount.FETCH_UNREAD_CHATROOM_IDS",Et={type:"GlobalUnreadsCount.NO_OP"},Ft=function(){function e(){}return e.prototype.isEnabled=function(){return!1},e.prototype.enable=function(){return Et},e.prototype.updateChatroomIds=function(){return Et},e.prototype.markAsRead=function(){return Et},e.prototype.markAsUnread=function(){return Et},e}(),Ct=function(){function e(e){this.unreadChatroomsToFetch=e.maxTrackableUnreads+1}return e.prototype.enable=function(){return Et},e.prototype.isEnabled=function(){return!0},e.prototype.updateChatroomIds=function(e){return{type:vt,data:{chatroomIds:e}}},e.prototype.markAsRead=function(e,t){var n=this;return function(r,a){return Object(o.__awaiter)(n,void 0,void 0,(function(){return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return[4,r({type:gt,data:{chatroomId:e}})];case 1:return n.sent(),0!==a().globalUnreadsCount.resyncCountdown?[3,3]:[4,t({unreadChatroomLimit:this.unreadChatroomsToFetch})];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))}},e.prototype.markAsUnread=function(e){return{type:bt,data:{chatroomId:e}}},e}(),At=function(){function e(e){this.instance=new Ft,this.config=e}return e.prototype.enable=function(){return this.instance=new Ct(this.config),Et},e.prototype.isEnabled=function(){return this.instance.isEnabled()},e.prototype.updateChatroomIds=function(e){return this.instance.updateChatroomIds(e)},e.prototype.markAsRead=function(e,t){return this.instance.markAsRead(e,t)},e.prototype.markAsUnread=function(e){return this.instance.markAsUnread(e)},e}(),_t=function(){function e(e){this.config=e}return e.prototype.getCount=function(e){if(void 0!==e.globalUnreadsCount.resyncCountdown)return{count:this.config.maxUnreadsCount,overflow:!0};var t=e.globalUnreadsCount.chatroomsCount;return{count:Math.min(t,this.config.maxUnreadsCount),overflow:t>this.config.maxUnreadsCount}},e.prototype.isMarkedUnread=function(e,t){return Boolean((e.globalUnreadsCount.chatroomIds||{})[t])},e.prototype.isUnreadCountLoaded=function(e){return Boolean(void 0!==e.globalUnreadsCount.resyncCountdown||e.globalUnreadsCount.chatroomIds)},e.prototype.getUnreadChatroomIds=function(e){var t;return Object.keys((null===(t=e.globalUnreadsCount)||void 0===t?void 0:t.chatroomIds)||{})},e}(),Dt={evid:1101},Ot=new(function(){function e(){}return e.prototype.setAppName=function(e){this._appName=e},Object.defineProperty(e.prototype,"appName",{get:function(){return this._appName},enumerable:!0,configurable:!0}),e}()),wt=function(){function e(e){this.chatAgent=e}return e.prototype.http$fetchChatrooms=function(t){var n=t.nextPointer,r=t.filter,o=void 0===r?{}:r,a=t.pageSize,i=void 0===a?100:a,s=t.unreadChatroomLimit,c={nextPointer:n,pageSize:i,archived:o.isArchived,lastMessageLimit:e.LAST_MESSAGES_COUNT_LIMIT,unreadChatroomLimit:s||e.DEFAULT_UNREAD_CHATROOM_IDS_COUNT_LIMIT},u=ao.isExperimentOn(Z.experiments.PostOnChatroomsList),l=u?{participantIds:o.participantIds||[],labelIds:o.labelIds||[]}:void 0;return u||(c.participantId=o.participantIds,c.participantType=o.participantType,c.labelId=o.labelIds),u?this.chatAgent.post({urlSuffix:"chatrooms-for-list-view"+(o.participantType?"/"+o.participantType:""),data:l,query:c}).then((function(e){return e.data})):this.chatAgent.get({urlSuffix:"chatrooms-for-list-view",query:c}).then((function(e){return e.data}))},e.prototype.http$search=function(t){var n=t.searchTerm,r=t.participantIds,o=t.chatroomsPageSize,a=t.chatroomsNextPointer,i=t.messagesPageSize,s=t.messagesNextPointer,c={query:n,participantIds:r,chatroomsPaginator:{pageSize:o,lastMessageLimit:e.LAST_MESSAGES_COUNT_LIMIT,nextPointer:a},messagesPaginator:{pageSize:i,nextPointer:s}};return this.chatAgent.post({urlPrefix:"_serverless/",urlSuffix:"chat-search/search",data:c}).then((function(e){return e.data}))},e.prototype.http$fetchRoomMessages=function(e){var t=e.chatroomId,n=e.cursor,r=e.pageSize,o=void 0===r?50:r;return this.chatAgent.get({urlSuffix:"chatrooms/"+t+"/messages",query:{pageSize:o,nextPointer:n}}).then((function(e){return e.data}))},e.prototype.http$fetchRoomMessagesPage=function(e){var t=e.chatroomId,n=e.messageSequence,r=e.pageSize,o=void 0===r?30:r;return this.chatAgent.get({urlSuffix:"chatrooms/"+t+"/messages/page",query:{pageSize:o,pointer:n}}).then((function(e){return e.data.items}))},e.prototype.http$fetchRoom=function(e){var t=e.chatroomId;return this.chatAgent.get({urlSuffix:"chatrooms/"+t}).then((function(e){return e.data}))},e.prototype.http$fetchEnrichedChatroom=function(e){var t=e.chatroomId;return this.chatAgent.get({urlSuffix:"chatrooms/"+t+"/enriched"}).then((function(e){return e.data}))},e.prototype.http$fetchUnreadChatroomIds=function(t){var n=void 0===t?{}:t,r=n.unreadChatroomLimit,o=void 0===r?e.DEFAULT_UNREAD_CHATROOM_IDS_COUNT_LIMIT:r,a=n.filter;if(a){var i=a.participantIds;return this.chatAgent.post({urlSuffix:"unread-chatrooms",data:{participantIds:i},query:{unreadChatroomLimit:o}}).then((function(e){return e.data}))}return this.chatAgent.get({urlSuffix:"unread-chatrooms",query:{unreadChatroomLimit:o}}).then((function(e){return e.data}))},e.prototype.http$setMessagesRead=function(e){var t=e.chatroomId,n=e.lastReadMessageSequence;return p.e(p.a.MESSAGES_READ,t),this.chatAgent.put({urlSuffix:"chatrooms/"+t+"/users",data:{lastReadMessageSequence:n}}).then((function(e){return e.data}))},e.prototype.http$setMessagesUnread=function(e){var t=e.chatroomId,n=e.lastReadMessageSequence;return this.chatAgent.put({urlSuffix:"chatrooms/"+t+"/unread",data:{lastReadMessageSequence:n}}).then((function(e){return e.data}))},e.prototype.http$deleteChatroom=function(e){var t=e.chatroomId;return this.chatAgent.zdelete({urlSuffix:"chatrooms/"+t}).then((function(e){return e.data}))},e.prototype.http$deleteChatrooms=function(e){return this.chatAgent.zdelete({urlSuffix:"chatrooms",data:{chatroomIds:e}}).then((function(e){return e.data}))},e.prototype.http$archiveChatroom=function(e){var t=e.chatroomId;return this.chatAgent.put({urlSuffix:"chatrooms/"+t+"/archive"}).then((function(e){return e.data}))},e.prototype.http$archiveChatrooms=function(e){return this.chatAgent.put({urlSuffix:"chatrooms/archive",data:{chatroomIds:e}}).then((function(e){return e.data}))},e.prototype.http$unarchiveChatrooms=function(e){return this.chatAgent.put({urlSuffix:"chatrooms/unarchive",data:{chatroomIds:e}}).then((function(e){return e.data}))},e.prototype.http$unarchiveChatroom=function(e){var t=e.chatroomId;return this.chatAgent.put({urlSuffix:"chatrooms/"+t+"/unarchive"}).then((function(e){return e.data}))},e.prototype.http$initRealtimeToken=function(e){return this.chatAgent.post({urlSuffix:"real-time-tokens",data:{token:e}}).then((function(e){return e.data}))},e.prototype.http$sendMessage=function(e,t){t.createdAt=t.createdAt||Date.now();var n=t.type,r=t.sender,a=t.id;return p.e(p.a.MESSAGE_SENT,t),p.e(p.a.BI,Object(o.__assign)(Object(o.__assign)({},Dt),{messageId:a,chatRoomId:e,messageType:n,uuid:r.userId,mimeType:t.mimeTypes,hostName:Ot.appName})),this.chatAgent.post({urlSuffix:"chatrooms/"+e+"/messages",data:t.dto}).then((function(e){return e.data})).catch((function(e){throw p.e(p.a.BI_ERROR,{tag:"send-message",description:"failed to send message",errorName:e}),e}))},e.prototype.http$fetchCurrentUserDisplayData=function(){return this.chatAgent.get({urlSuffix:"display-data/current-user"}).then((function(e){return e.data?e.data.content:void 0}))},e.prototype.http$notifyTyping=function(e,t,n){return this.chatAgent.post({urlSuffix:"chatrooms/"+e+"/typing-events",data:{type:t,expiryDuration:n}}).then((function(e){return e.data}))},e.prototype.http$markRoomsAsRead=function(e,t){return this.chatAgent.put({urlSuffix:"chatrooms/read",data:{chatroomIds:e,lastMessageSequence:t}}).then((function(e){return e.data}))},e.prototype.http$markAllRoomsAsRead=function(e){var t={participantId:e.participantIds,participantType:e.participantType};return this.chatAgent.put({urlSuffix:"chatrooms/mark-all-read",query:t}).then((function(e){return e.data}))},e.prototype.http$fetchParticipantsDisplayData=function(e){var t=e.chatroomId,n=e.participantIds;return this.chatAgent.post({urlSuffix:"display-data/"+t,data:{participantIds:n}}).then((function(e){return e.data}))},e.prototype.http$fetchDrillInMessageIndications=function(e,t){return this.chatAgent.get({urlSuffix:"indications/"+e+"/detailed",query:{sequence:t}}).then((function(e){return e.data}))},e.prototype.http$fetchUnseenChatroomCount=function(t,n){return void 0===n&&(n=e.DEFAULT_UNREAD_CHATROOM_IDS_COUNT_LIMIT),this.chatAgent.get({urlSuffix:"unseen-chatrooms",query:Object(o.__assign)(Object(o.__assign)({},t),{limit:n})}).then((function(e){return e.data}))},e.prototype.http$markChatroomsAsSeen=function(e,t){return this.chatAgent.put({urlSuffix:"chatrooms/seen",data:{lastSeenMessageSequence:t},query:e}).then((function(e){return e.data}))},e.prototype.http$watch=function(){return this.chatAgent.put({urlSuffix:"chat-presence/watch/group"}).then((function(e){return e.data}))},e.prototype.http$setPresence=function(e,t){return this.chatAgent.post({urlPrefix:"_api/chat-presence-server/v1/",urlSuffix:"presence/user-presence",data:{userPresence:e,token:t,context:{operation:"UPDATE"}}}).then((function(e){return e.data}))},e.LAST_MESSAGES_COUNT_LIMIT=10,e.DEFAULT_UNREAD_CHATROOM_IDS_COUNT_LIMIT=100,e}(),xt=n(285),Bt=function(){function e(){this._decodedToken={}}return e.prototype.loadJwtChatToken=function(e){try{var t=e.split(".")[1];this._decodedToken=JSON.parse(xt.decode(t)||"{}")}catch(e){this._decodedToken={}}},Object.defineProperty(e.prototype,"token",{get:function(){return this._token},set:function(e){this._token=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayData",{get:function(){return this._displayData},set:function(e){this._displayData=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._decodedToken.type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"participantIds",{get:function(){return this._decodedToken.participantIds},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"userId",{get:function(){return this._decodedToken.userId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenExpirationTime",{get:function(){return this._decodedToken.exp},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpiredToken",{get:function(){return 1e3*(this.tokenExpirationTime||0)-(new Date).getTime()<1e3},enumerable:!0,configurable:!0}),e}(),St=n(421),kt={serverApiThrottlingTimout:2e3,localStateThrottlingTimout:1e3},Tt=function(){function e(e,t,n,r,a){var i=this;void 0===a&&(a=kt),this.store=e,this.chatroomsActions=t,this.serverApi=n,this.persistenceService=r,this.config=a,this.sendTypingEventToServerThrottled=St((function(e){return Object(o.__awaiter)(i,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){return[2,this.serverApi.http$notifyTyping(e,"start",5e3)]}))}))}),this.config.serverApiThrottlingTimout,{leading:!0,trailing:!1}),this.sendTypingEventThrottled=St((function(e){var t=e.chatroomId,n=e.text;return Object(o.__awaiter)(i,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){return this.store.dispatch(this.chatroomsActions.typing(t,n)),this.persistMessageDraft({chatroomId:t,text:n}),[2]}))}))}),this.config.localStateThrottlingTimout,{leading:!0,trailing:!0})}return e.prototype.notifyTextChange=function(e,t,n){void 0===n&&(n=!1),void 0!==t&&this.sendTypingEventThrottled({chatroomId:e,text:t}),n&&this.sendTypingEventToServerThrottled(e)},e.prototype.notifyTyping=function(e,t){this.notifyTextChange(e,t,!0)},e.prototype.persistMessageDraft=function(e){var t=e.chatroomId,n=e.text;this.canPersist()&&this.sendMessageDraftToPersistence({chatroomId:t,text:n})},e.prototype.canPersist=function(){return!this.store.getState().messageDraft.isFetching},e.prototype.sendMessageDraftToPersistence=function(e){var t,n=e.chatroomId,r=e.text,a=this.store.getState().messageDraft.byId,i=Object(o.__assign)(Object(o.__assign)({},a),((t={})[n]=r,t));this.persistenceService.saveMessageDrafts(i)},e}(),Rt={setItem:function(){return Promise.resolve()},getItem:function(){return Promise.resolve(JSON.stringify({}))},removeItem:function(){return Promise.resolve("remove")}},It=function(e){return e?JSON.parse(e):e},Pt=function(){function e(e,t,n){void 0===e&&(e=Rt),void 0===t&&(t=""),void 0===n&&(n=[]),this.persistenceEngine=e,this.userBasedPrefix=t+"_"+n.join("_")}return e.prototype.saveMessageDrafts=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){return[2,this.setItemForUserId("crm.chat.MESSAGE_DRAFT_PERSISTENCE_KEY",JSON.stringify(e))]}))}))},e.prototype.loadMessageDrafts=function(){return this.getItemForUserId("crm.chat.MESSAGE_DRAFT_PERSISTENCE_KEY").then(It).catch((function(e){return console.warn("Error while loading message draft data from persistence "+e),{}}))},e.prototype.clearMessageDrafts=function(){return this.removeItemForUserId("crm.chat.MESSAGE_DRAFT_PERSISTENCE_KEY").catch((function(e){return console.warn("Error while removing message draft from persistence "+e),{}}))},e.prototype.saveToken=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){return[2,this.persistenceEngine.setItem("crm.chat.CHAT_TOKEN_PERSISTENCE_KEY",e)]}))}))},e.prototype.getChatToken=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){return[2,this.persistenceEngine.getItem("crm.chat.CHAT_TOKEN_PERSISTENCE_KEY")]}))}))},e.prototype.clearToken=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){return[2,this.persistenceEngine.removeItem("crm.chat.CHAT_TOKEN_PERSISTENCE_KEY")]}))}))},e.prototype.removeItemForUserId=function(e){return this.persistenceEngine.removeItem(this.userBasedPrefix+"_"+e)},e.prototype.getItemForUserId=function(e){return this.persistenceEngine.getItem(this.userBasedPrefix+"_"+e)},e.prototype.setItemForUserId=function(e,t){return this.persistenceEngine.setItem(this.userBasedPrefix+"_"+e,t)},e}(),jt=n(31),Mt=n(585),Nt=function(){function e(){this.reset()}return e.prototype.registerSubscription=function(e,t,n){var r=this;i(e)&&(e={isArchived:!1});var o=jt(),a=Mt(Object.values(this.refreshDataCallbacks),(function(t){return F(e,t.identifier)}));return a?function(){return a}:(n&&n(),this.refreshDataCallbacks[o]={identifier:e,refreshDataCallback:t},function(){delete r.refreshDataCallbacks[o]})},e.prototype.refreshSubscribedData=function(){var e=Object.values(this.refreshDataCallbacks,(function(e){return e.identifier})).map((function(e){return(0,e.refreshDataCallback)()}));return Promise.all(e)},e.prototype.reset=function(){this.refreshDataCallbacks={}},e}(),Lt=n(444),Ht=function(e){function t(t){var n=t.baseUrl,r=t.authorization,o=e.call(this,{baseUrl:n,retryOnAllErrors:!0})||this;return o.authorization=r,o}return Object(o.__extends)(t,e),t.prototype._getHeaders=function(){var e={Accept:"application/json","Content-Type":"application/json"};return this.authorization&&(e.Authorization=this.authorization),e},t.prototype._getRelativeUrl=function(e){return"/wix-chat-tokens-server/v1/"+e+"?isForUnifiedList=true"},t}(Lt.a);function Ut(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(o.__generator)(this,(function(a){switch(a.label){case 0:return t=e.url,n=e.authorization,r=new Ht({baseUrl:t,authorization:n}),[4,function(e){var t=e.handshakeAgent;return{http$getToken:function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){var e,n;return Object(o.__generator)(this,(function(r){switch(r.label){case 0:return[4,t.post("chat-tokens")];case 1:if(e=r.sent(),n=c(e,["data","chatToken"]))return[2,n];throw Error("no token: "+e)}}))}))}}}({handshakeAgent:r}).http$getToken()];case 1:return[2,a.sent()]}}))}))}function zt(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t;return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return e?[4,new Pt(e).getChatToken()]:[3,2];case 1:if((t=n.sent())&&!function(e){var t=new Bt;return t.loadJwtChatToken(e),t.isExpiredToken}(t))return[2,t];n.label=2;case 2:return[2]}}))}))}function Wt(e,t){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return t?[4,new Pt(t).saveToken(e)]:[3,2];case 1:return[2,n.sent()];case 2:return[2]}}))}))}var Gt=n(592),Vt=function(e){function t(t){var n=this,r=t.baseUrl,o=t.currentUser,a=t.httpHeaders,i=t.tokenServer,s=t.throttleThreshold;return(n=e.call(this,{baseUrl:r,throttleThreshold:s})||this).currentUser=o,n.headers=a,n.tokenServer=i,n}return Object(o.__extends)(t,e),t.prototype._getRelativeUrl=function(e,t){return"/"+e+"?"+Gt.stringify(Object.assign({chatToken:this.currentUser.token},t),{indices:!1})},t.prototype._getHeaders=function(){return this.headers},t.prototype._issueNewTokenIfNeeded=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){var e;return Object(o.__generator)(this,(function(t){switch(t.label){case 0:return this.tokenServer&&this.currentUser.isExpiredToken?[4,Ut(this.tokenServer)]:[3,2];case 1:e=t.sent(),this.currentUser=new Bt,this.currentUser.loadJwtChatToken(e),this.currentUser.token=e,t.label=2;case 2:return[2]}}))}))},t.prototype.post=function(t){var n=t.urlPrefix,r=void 0===n?"_api/chat-web/v1/":n,a=t.urlSuffix,i=t.data,s=t.query,c=void 0===s?{}:s;return Object(o.__awaiter)(this,void 0,void 0,(function(){var t;return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return[4,this._issueNewTokenIfNeeded()];case 1:return n.sent(),t=""+r+a,[2,e.prototype.post.call(this,t,i,c)]}}))}))},t.prototype.get=function(t){var n=t.urlPrefix,r=void 0===n?"_api/chat-web/v1/":n,a=t.urlSuffix,i=t.query,s=void 0===i?{}:i;return Object(o.__awaiter)(this,void 0,void 0,(function(){var t;return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return[4,this._issueNewTokenIfNeeded()];case 1:return n.sent(),t=""+r+a,[2,e.prototype.get.call(this,t,s)]}}))}))},t.prototype.put=function(t){var n=t.urlPrefix,r=void 0===n?"_api/chat-web/v1/":n,a=t.urlSuffix,i=t.data,s=t.query,c=void 0===s?{}:s;return Object(o.__awaiter)(this,void 0,void 0,(function(){var t;return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return[4,this._issueNewTokenIfNeeded()];case 1:return n.sent(),t=""+r+a,[2,e.prototype.put.call(this,t,i,c)]}}))}))},t.prototype.zdelete=function(t){var n=t.urlPrefix,r=void 0===n?"_api/chat-web/v1/":n,a=t.urlSuffix,i=t.data;return Object(o.__awaiter)(this,void 0,void 0,(function(){var t;return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return[4,this._issueNewTokenIfNeeded()];case 1:return n.sent(),t=""+r+a,[2,e.prototype.zdelete.call(this,t,i)]}}))}))},t}(Lt.a),Yt=function(){function e(e){this.config=e}return e.prototype.isChatroomUnread=function(e,t){return(e.chatroomIds||{})[t]},e.prototype.parseUnreadChatroomIdsArray=function(e){return{chatroomIds:C(e,(function(e,t){return e[t]=!0,e}),{}),chatroomsCount:e.length}},e.prototype.reduceToTrackingOverflowState=function(){return{chatroomIds:void 0,chatroomsCount:void 0,resyncCountdown:this.config.maxTrackableUnreads-this.config.maxUnreadsCount}},e.prototype.isInTrackingOverflowState=function(e){return void 0!==e.resyncCountdown},e}(),qt=function(e){function t(t){return e.call(this,t)||this}return Object(o.__extends)(t,e),t.prototype.reduce=function(e,t){var n=this.extractUnreadChatroomIds(t);return n.length>this.config.maxTrackableUnreads?this.reduceToTrackingOverflowState():this.reduceUnreadsIdsModification(e,n)},t.prototype.extractUnreadChatroomIds=function(e){return c(e,["data","chatroomIds"],[])},t.prototype.reduceUnreadsIdsModification=function(e,t){var n=this.parseUnreadChatroomIdsArray(t);return Object(o.__assign)(Object(o.__assign)(Object(o.__assign)({},e),n),{resyncCountdown:void 0})},t}(Yt),Kt=qt,$t=function(e){function t(t){return e.call(this,t)||this}return Object(o.__extends)(t,e),t.prototype.extractUnreadChatroomIds=function(e){return c(e,["payload","chatroomIds"],[])},t}(qt),Zt=function(e){function t(t){return e.call(this,t)||this}return Object(o.__extends)(t,e),t.prototype.reduce=function(e,t){var n=c(t,["data","chatroomId"]);return this.isInTrackingOverflowState(e)?Object(o.__assign)(Object(o.__assign)({},e),{resyncCountdown:Math.max(e.resyncCountdown-1,0)}):this.isChatroomUnread(e,n)?this.removeFromUnreads(e,n):e},t.prototype.removeFromUnreads=function(e,t){var n=e.chatroomsCount-1,r=Object(o.__assign)({},e.chatroomIds);return delete r[t],Object(o.__assign)(Object(o.__assign)({},e),{chatroomIds:r,chatroomsCount:n,resyncCountdown:void 0})},t}(Yt),Qt=function(e){function t(t){return e.call(this,t)||this}return Object(o.__extends)(t,e),t.prototype.reduce=function(e,t){var n=c(t,["data","chatroomId"]);return this.isInTrackingOverflowState(e)||this.isChatroomUnread(e,n)?e:e.chatroomsCount===this.config.maxTrackableUnreads?this.reduceToTrackingOverflowState():this.reduceUnreadIdsModification(e,n)},t.prototype.reduceUnreadIdsModification=function(e,t){var n=this.addToUnreads(e,t);return Object(o.__assign)(Object(o.__assign)(Object(o.__assign)({},e),n),{resyncCountdown:void 0})},t.prototype.addToUnreads=function(e,t){var n,r=e.chatroomsCount+1;return{chatroomIds:Object(o.__assign)(Object(o.__assign)({},e.chatroomIds),((n={})[t]=!0,n)),chatroomsCount:r}},t}(Yt),Xt=function(){function e(e){var t;this.subReducers=((t={})[vt]=new Kt(e),t[gt]=new Zt(e),t[bt]=new Qt(e),t[Object(Pe.c)(yt)]=new $t(e),t)}return e.prototype.reduce=function(e,t){void 0===e&&(e=Jt);var n=this.subReducers[t.type];return n?n.reduce(e,t):e},e}(),Jt={chatroomIds:void 0,chatroomsCount:0},en=n(228),tn=n(58),nn=function(e){var t,n=(t=ao.store.getState(),t.messages||{}).byId;return e.every((function(e){return void 0===n[e.id]}))},rn={},on=[],an=function(e,t,n){return void 0===n&&(n=!1),n?e:Math.max(e||0,t||0)},sn=function(e,t,n,r){return e[t]?void 0===e[t][n]?r:e[t][n]:r},cn=function(e,t,n,r){var a;void 0===n&&(n=[]);var i,s,u,l,d,p=void 0===r?{}:r,f=p.shouldRemoveExistingImage,h=void 0!==f&&f,m=p.enrichedChatroomLoaded,v=void 0!==m&&m,g=p.typingEvent,b=void 0===g?{}:g,y=p.overrideRegardlessOfSequenceComparison,E=void 0!==y&&y,F=t.chatroomId||t.id,C=t.participantId,A=t.cursor,_=t.lastMessage,D=t.unreadCount,O=void 0===D?sn(e,F,"unreadCount",0):D,w=t.lastReadMessageSequence,x=void 0===w?sn(e,F,"lastReadMessageSequence",0):w,B=t.lastSeenMessageSequence,S=void 0===B?sn(e,F,"lastSeenMessageSequence",0):B,k=t.displayData,T=void 0===k?{}:k,R=t.isPrivate,I=t.offlineChannels,P=t.clientReferenceType,j=t.clientReference,M=t.participantCount,N=t.isArchived,L=t.isTemporary,H=t.createdBy,U=t.createdAt,z=t.businessContext,W=t.pluginName,G=t.sortRank,V=t.name,Y=t.initials,q=t.image,K=t.siteUserType,$=t.otherParticipantId,Z=t.labelIds,Q=e,X=Q[F]||{unreadCount:O,lastReadMessageSequence:x,lastSeenMessageSequence:S},J=X.typingStatus||on,ee=bn(J,b),te=n&&n.length>0,ne=void 0!==X.participants,re={id:F,cursor:void 0!==A?A:X.cursor,lastMessage:_||X.lastMessage,lastReadMessageSequence:an(x,X.lastReadMessageSequence,E),lastSeenMessageSequence:an(S,X.lastSeenMessageSequence),unreadCount:(i=O,s=X.unreadCount,u=x,l=X.lastReadMessageSequence,d=E,void 0===d&&(d=!1),d?i:(l||0)>(u||0)?s:i),name:c(T,"name")||V||X.name,initials:c(T,"initials")||Y||X.initials,image:h&&T?T.image:q||X.image||c(T,"image"),typingStatus:ee,isPrivate:void 0!==R?R:X.isPrivate,otherParticipantId:$||((null==T?void 0:T.id)?T.id:X.otherParticipantId),clientReferenceType:P||X.clientReferenceType,clientReference:j||X.clientReference,offlineChannels:I||X.offlineChannels,siteUserType:c(T,"type")||K||X.siteUserType,participantCount:void 0!==M?M:X.participantCount,isArchived:void 0!==N?N:X.isArchived,participantId:void 0!==C?C:X.participantId,isTemporary:void 0!==L?L:X.isTemporary,createdBy:void 0!==H?H:X.createdBy,createdAt:void 0!==U?U:X.createdAt,businessContext:z||X.businessContext,enrichedChatroomLoaded:v||X.enrichedChatroomLoaded,pluginName:W||X.pluginName,sortRank:G||X.sortRank,participants:te||!ne?n:X.participants,labelIds:Z||X.labelIds},oe=Object(o.__assign)(Object(o.__assign)({},Q),((a={})[F]=Object(o.__assign)(Object(o.__assign)({},X),re),a));return Object(o.__assign)(Object(o.__assign)({},e),oe)},un=function(e,t,n,r){return void 0===n&&(n=[]),cn(e,t,n,Object(o.__assign)({shouldRemoveExistingImage:!0},r))},ln=function(e,t){return pn(e,t,!1)},dn=function(e,t){return pn(e,t,!0)},pn=function(e,t,n){return cn(e,{chatroomId:t,isArchived:n})},fn=function(e,t){return cn(e,{chatroomId:t,unreadCount:(e[t].unreadCount||0)+1,lastReadMessageSequence:e[t].lastReadMessageSequence})},hn=function(e,t){return cn(e,{chatroomId:t.chatroomId,lastMessage:t})};function mn(e,t){var n=t[e.id];return c(e,"lastMessages.0.sequence")c(o,"lastMessage.sequence",0),i=hn(e,n);return t.messageSentByCurrentUser?a?Cn(i,n.chatroomId):i:a?fn(i,n.chatroomId):e}(e,t);case Ie.HANDLE_ROOM_ARCHIVED:case Object(Pe.b)(Ie.ARCHIVE_ROOM):return dn(e,t.meta.chatroomId);case Object(Pe.c)(Ie.ARCHIVE_ROOMS):return function(e,t){var n=Object(o.__assign)({},e);return t.meta.chatroomIds.forEach((function(e){return n=dn(n,e)})),n}(e,t);case Object(Pe.c)(Ie.UNARCHIVE_ROOMS):return function(e,t){var n=Object(o.__assign)({},e);return t.meta.chatroomIds.forEach((function(e){return n=ln(n,e)})),n}(e,t);case Object(Pe.c)(Ie.DELETE_ROOMS):return function(e,t){var n=Object(o.__assign)({},e);return t.meta.chatroomIds.forEach((function(e){return n=An(n,e)})),n}(e,t);case Ie.HANDLE_ROOM_UNARCHIVED:case Object(Pe.b)(Ie.UNARCHIVE_ROOM):return ln(e,t.meta.chatroomId);case Object(Pe.b)(Ie.DELETE_ROOM):case Ie.REMOVE_ROOM:return An(e,t.meta.chatroomId);case Ie.SET_MESSAGES_READ_FOR_SELF:case Object(Pe.b)(Ie.SET_MESSAGES_READ):var l=t.meta,d=l.lastReadMessageSequence,p=l.chatroomId;return cn(e,{unreadCount:0,lastReadMessageSequence:d,chatroomId:p});case Object(Pe.b)(Ie.SET_ROOMS_MESSAGES_READ):var f=Object(o.__assign)({},e);return t.meta.chatroomIds.forEach((function(e){f=Cn(f,e)})),f;case Object(Pe.b)(Ie.SET_LAST_MESSAGE_UNREAD):var h=t.meta;d=h.lastReadMessageSequence,p=h.chatroomId;return cn(e,{unreadCount:1,lastReadMessageSequence:d,chatroomId:p},[],{overrideRegardlessOfSequenceComparison:!0});case Object(Pe.c)(Ie.FETCH_ROOM_MESSAGES):return t.meta.isFetchMore?function(e,t){var n=t.payload.next?t.payload.next.before:null,r=t.meta.chatroomId;return vn(e,n,r)}(e,t):function(e,t){if(i(t.payload))return e;var n=t.payload.next?t.payload.next.before:null,r=t.meta.chatroomId,o=nn(t.payload.items),a=(e[r]||{}).cursor;return o||!(null!=a)?vn(e,n,r):gn(e,r)}(e,t);case Object(Pe.a)(Ie.FETCH_ROOM_MESSAGES):return t.payload.is401Error?e:(s=t.meta.chatroomId,Object(o.__assign)(Object(o.__assign)({},e),((n={})[s]=Object(o.__assign)(Object(o.__assign)({},e[s]),{error:t.payload}),n)));case Object(Pe.a)(Ie.SEND_MESSAGE):return s=t.meta.message.chatroomId,Object(o.__assign)(Object(o.__assign)({},e),((r={})[s]=Object(o.__assign)(Object(o.__assign)({},e[s]),{messageDeliveryError:!0}),r));case Object(Pe.c)(Ie.SEND_MESSAGE):return s=t.meta.message.chatroomId,Object(o.__assign)(Object(o.__assign)({},e),((a={})[s]=Object(o.__assign)(Object(o.__assign)({},e[s]),{messageDeliveryError:void 0}),a));case Object(Pe.c)(Ie.SET_UNSEEN_CHATROOMS):return t.payload.reduce((function(t,n){var r=n.chatroomId,o=n.lastSeenMessageSequence,a=e[r];return a?cn(t,{chatroomId:r,lastSeenMessageSequence:Math.max(o,a.lastSeenMessageSequence||0)}):t}),e);case Object(Pe.b)(Ie.MARK_CHATROOMS_SEEN):return t.meta.filteredChatrooms.reduce((function(e,t){return function(e,t){var n=c(e[t],"lastMessage.sequence");return cn(e,{chatroomId:t,lastSeenMessageSequence:n})}(e,t.id)}),e);default:return e}}}),On=function(e){var t,n=function(e){e.participantIds&&e.participantIds.sort();return e}(function(e){if(void 0===c(e,"isArchived"))return Object(o.__assign)(Object(o.__assign)({},e),{isArchived:!1});return e}(e)),r=(t=n,Object.keys(t).sort().map((function(e){return[e,t[e]]})));return JSON.stringify(r)};var wn={},xn={byId:{}};var Bn={},Sn=function(e,t,n){var r=Object(o.__assign)({},e);return r[t]=n,r},kn=Se({byId:function(e,t){switch(void 0===e&&(e=Bn),t.type){case Ie.TYPING:return Sn(e,t.meta.chatroomId,t.text);case Object(Pe.c)(Ie.FETCH_MESSAGE_DRAFTS):return Object(o.__assign)(Object(o.__assign)({},t.payload),e);default:return e}},isFetching:function(e,t){switch(void 0===e&&(e=!1),t.type){case Object(Pe.b)(Ie.FETCH_MESSAGE_DRAFTS):return!0;case Object(Pe.c)(Ie.FETCH_MESSAGE_DRAFTS):case Object(Pe.a)(Ie.FETCH_MESSAGE_DRAFTS):return!1;default:return e}}}),Tn={};var Rn=function(e,t,n){if(i(t.payload))return e;var r=t.payload.items,a=!t.meta.fromStorage?{transit:{sendStatus:Z.MessageSendStatus.SENT}}:{},s=Object(q.d)(r,"id",a),c=!n&&Object.keys(s).length&&nn(r);return Object(o.__assign)(Object(o.__assign)({},In(e,t.meta.chatroomId,c)),s)},In=function(e,t,n){return n?Pn(e,t):e},Pn=function(e,t){return Object.values(e).reduce((function(e,n){return n.chatroomId!==t&&(e[n.id]=n),e}),[])},jn=function(e,t){return Un(e,t)},Mn=function(e,t){var n={sendStatus:Z.MessageSendStatus.SENT},r=Hn(e,t,n);return Un(e,t,{transit:r})},Nn=function(e,t){var n={sendStatus:Z.MessageSendStatus.SENDING},r=Hn(e,t,n);return Un(e,t,{transit:r})},Ln=function(e,t){var n={sendStatus:Z.MessageSendStatus.FAILED},r=Hn(e,t,n);return Un(e,t,{transit:r})},Hn=function(e,t,n){var r=t?t.transit:{},a=t&&e[t.id]?e[t.id].transit:{};return Object(o.__assign)(Object(o.__assign)(Object(o.__assign)({},a),r),n)},Un=function(e,t,n){void 0===n&&(n={});var r=Object(o.__assign)({},e),a=r[t.id]||{};return r[t.id]=Object(o.__assign)(Object(o.__assign)(Object(o.__assign)({},a),t),n),r},zn=function(e,t){var n=Object(o.__assign)({},e);return delete n[t],n},Wn=function(e,t){if(!t)return e;var n=t.chatrooms.items.reduce((function(e,t){return Object.assign(e,Object(q.d)(t.lastMessages||[],"id",{transit:{sendStatus:Z.MessageSendStatus.SENT}}))}),{});return Object(o.__assign)(Object(o.__assign)({},e),n)};function Gn(e,t){var n={};return Object.keys(e).forEach((function(r){e[r].chatroomId!==t&&(n[r]=e[r])})),n}var Vn=Se({byId:function(e,t){switch(void 0===e&&(e=Tn),t.type){case Object(Pe.c)(Ie.FETCH_ROOM_MESSAGES):return Rn(e,t,t.meta.isFetchMore);case Ie.ADD_MESSAGE:return jn(e,t.message);case Object(Pe.c)(Ie.SEND_MESSAGE):return Mn(e,t.meta.message);case Object(Pe.b)(Ie.SEND_MESSAGE):return Nn(e,t.meta.message);case Object(Pe.a)(Ie.SEND_MESSAGE):return Ln(e,t.meta.message);case Ie.DELETE_MESSAGE:return zn(e,t.meta.messageId);case Object(Pe.c)(Ie.DELETE_ROOM):return Gn(e,t.meta.chatroomId);case Object(Pe.c)(Ie.DELETE_ROOMS):return function(e,t){var n=Object(o.__assign)({},e);return t.meta.chatroomIds.forEach((function(e){n=Gn(n,e)})),n}(e,t);case Object(Pe.c)(Ie.FETCH_ROOMS):return Wn(e,t.payload);default:return e}}}),Yn={},qn=function(e,t){var n;return Object(o.__assign)(Object(o.__assign)({},e),((n={})[t.id]=t,n))},Kn=function(e,t){return t.items.reduce(qn,e)},$n=Se({byId:function(e,t){switch(void 0===e&&(e=Yn),t.type){case Object(Pe.c)(Ie.FETCH_ENRICHED_ROOM):return Kn(e,t.payload.participants);case Object(Pe.c)(Ie.FETCH_PARTICIPANTS_DISPLAY_DATA):return Kn(e,t.payload);default:return e}}}),Zn=n(126),Qn=n(603),Xn={},Jn=function(e,t,n){return C(e,(function(e,r){var a,s=function(e,t,n){return C(e.indications,(function(r,a){var i,s=t[n]?t[n][e.participantId]:{};return nr(a,s)?r:Object(o.__assign)(Object(o.__assign)({},r),((i={})[rr(a)]=a,i))}),{})}(r,t,n);return i(s)?e:Zn({},e,((a={})[r.participantId]=s,a))}),{})},er=function(e,t,n){return C(e,(function(e,r){var o,a=function(e,t,n){var r,o=t[n]?t[n][e.participantId]:{},a=e.indication;return nr(a,o)?{}:((r={})[rr(a)]=a,r)}(r,t,n);return i(a)?e:Zn({},e,((o={})[r.participantId]=a,o))}),{})},tr=function(e,t,n,r){return C(e,(function(e,a){var i,s,c,u=r[a]?r[a][t]:{};return nr(n,u)?{}:Zn({},e,((i={})[a]=Object(o.__assign)(Object(o.__assign)({},r[a]),((s={})[t]=((c={})[rr(n)]=n,c),s)),i))}),{})},nr=function(e,t){return void 0!==t&&!!t[rr(e)]},rr=function(e){return e.event+"-"+e.method},or=Se({byId:function(e,t){switch(void 0===e&&(e=Xn),t.type){case Object(Pe.c)(Ie.FETCH_ENRICHED_ROOM):return i(t.payload.indications.lastMessageIndications)?e:function(e,t,n){var r,a=er(t.lastMessageIndications,e,n);return i(a)?e:Object(o.__assign)(Object(o.__assign)({},e),((r={})[n]=Zn({},e[n],a),r))}(e,t.payload.indications,Qn(t.payload.chatroom.lastMessages).id);case Object(Pe.c)(Ie.FETCH_DRILL_IN_MESSAGE_INDICATIONS):return i(t.payload.indications)?e:function(e,t){var n,r=t.messageId,a=Jn(t.indications,e,r);return i(a)?e:Object(o.__assign)(Object(o.__assign)({},e),((n={})[r]=Zn({},e[r],a),n))}(e,t.payload);case Ie.UPDATE_MESSAGES_INDICATIONS:return i(t.payload.messageIds)?e:function(e,t){var n=tr(t.messageIds,t.participantId,t.indication,e);return i(n)?e:Zn({},e,n)}(e,t.payload);default:return e}}}),ar=n(254),ir=n(604),sr=n(605);var cr,ur,lr,dr=Se({participantsById:function(e,t){var n;if(void 0===e&&(e={}),t.type===Ie.UPDATE_PRESENCE){var r=t.meta.data,a=function(e,t,n){return n===ar.PresenceStatus.ONLINE?e.indexOf(t)<0?Object(o.__spreadArrays)(e,[t]):e:ir(e,(function(e){return e!==t}))}(e[r.userId]?e[r.userId].onlineSessions:[],r.sessionId,r.status);return Object(o.__assign)(Object(o.__assign)({},e),((n={})[r.userId]={onlineSessions:a,online:a.length>0,groupId:r.group,data:r.data,clientSideReceivedAtTimestamp:(new Date).getTime()},n))}if(t.type===Ie.PRESENCE_CLEAR_STALE){var i=(new Date).getTime();return sr(e,(function(e){return i-e.clientSideReceivedAtTimestamp>3e4}))}return e}}),pr=Se({chatrooms:Dn,chatroomsPresence:function(e,t){switch(void 0===e&&(e=xn),t.type){case Ie.SET_PARTICIPANTS_PRESENCE:if(!F(e.byId,t.chatroomsParticipants))return{byId:Object(o.__assign)({},t.chatroomsParticipants)};break;case Ie.UPDATE_PARTICIPANTS_PRESENCE:var n=Object.keys(t.chatroomsParticipants).reduce((function(n,r){var a;return Object(o.__assign)(Object(o.__assign)(Object(o.__assign)({},e.byId),n),((a={})[r]=Object(o.__assign)(Object(o.__assign)({},e.byId[r]),t.chatroomsParticipants[r]),a))}),{});return{byId:Object(o.__assign)(Object(o.__assign)({},e.byId),n)}}return e},chatroomsLists:function(e,t){var n;void 0===e&&(e=wn);var r=t.payload;if(i(r))return e;switch(t.type){case Object(Pe.c)(Ie.FETCH_ROOMS):var a=r.chatrooms,s=a.next?a.next.before:null,u=On(t.meta.filter);return i(c(e[u],"cursor"))||t.meta.isFetchMore?Object(o.__assign)(Object(o.__assign)({},e),((n={})[u]={cursor:s},n)):e;default:return e}},messages:Vn,messageDraft:kn,globalUnreadsCount:(cr=new Xt(ae),function(e,t){return void 0===e&&(e=Jt),cr.reduce(e,t)}),participants:$n,messagesIndications:or,unseenChatroomCount:We,presence:dr}),fr=function(e,t){return t.type===Ie.RESET_STORE?pr(void 0,t):pr(e,t)},hr=n(599),mr=n.n(hr),vr=n(600),gr=n(601),br=n(602);!function(e){e[e.Hyderated=1]="Hyderated",e[e.OriginalActionResolved=2]="OriginalActionResolved"}(ur||(ur={}));var yr=function(e,t){console.warn("Error while state to db '"+t+"': "+e),p.e(p.a.BI_ERROR,{tag:"db-storage",description:t,errorName:e})},Er=function(e){var t=e.hydrationKey&&lr.get(e.hydrationKey);return t===ur.Hyderated||t===ur.OriginalActionResolved},Fr=function(e){return(e.hydrationKey&&lr.get(e.hydrationKey))===ur.OriginalActionResolved},Cr=function(e){lr.set(e.hydrationKey,ur.Hyderated)},Ar=function(e){lr.set(e.hydrationKey,ur.OriginalActionResolved)},_r=function(e,t){if(null==e?void 0:e.dbPayload){var n=gr(e);n.payload=(r=e.dbPayload,Object(o.__awaiter)(void 0,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){return[2,r.load().then((function(e){return Fr(r)?void 0:e})).catch((function(e){yr(e,"loading from db")}))]}))}))),br(n,"meta.fromStorage",!0),t(n)}var r},Dr=function(e,t){return t.save(e).catch((function(e){return yr(e,"saving to db")})),e},Or=function(){return lr=new Map,function(){return function(e){return function(t){return Object(o.__awaiter)(void 0,void 0,void 0,(function(){return Object(o.__generator)(this,(function(n){return!t.dbPayload||Er(t.dbPayload)?[2,e(t)]:(_r(t,e),Cr(t.dbPayload),[2,e(t).then((function(e){return Ar(t.dbPayload),Dr(e,t.dbPayload)}))])}))}))}}}},wr=function(e,t,n,r){void 0===r&&(r=[]);var a=Object(o.__spreadArrays)([vr.a,mr.a],r);return n&&a.unshift(Or()),xe(e,t,("object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({name:"chat-sdk"}):ke)(Re.apply(void 0,a)))},xr=function(e){var t=void 0===e?{}:e,n=t.initialState,r=t.shouldUseDBStorage;return wr(fr,n,r)},Br=n(446);var Sr=function(){function e(e){var t=e.store,n=e.chatroomsActions,r=e.subscriptionService,o=e.serverApi;this.store=t,this.chatroomsActions=n,this.subscriptionService=r,this.serverApi=o}return e.prototype.subscribeToChatRoomsList=function(e){var t,n,r=e.callback,o=e.filter,a=void 0===o?{}:o,i=this.store,s=tt(a),u=this._registerSubscriptionV2(a),l=function(){var e=i.getState(),o=s(e),u=e.chatrooms.status,l=function(e,t){return e.chatroomsLists[t]}(e,On(a)),d=c(l,"cursor");if(o!==t||u!==n){t=o,n=u;try{r({rooms:o,status:u,cursor:d})}catch(e){console.error("Error in subscribe callback",e)}}},d=i.subscribe((function(){return l()}));return l(),this._activeSubscription(d,u,a)},e.prototype._registerSubscriptionV2=function(e){var t=this;return this.subscriptionService.registerSubscription(e,(function(){return t.fetchRooms({isSilent:!0,filter:e})}),(function(){return t.fetchRooms({isSilent:!1,filter:e})}))},e.prototype._activeSubscription=function(e,t,n){var r=this;return{unsubscribe:function(){e(),t()},fetchMore:function(e){r.fetchRooms({cursor:e,filter:n})}}},e.prototype.deleteChatroom=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(o.__generator)(this,(function(o){return n=(t=this).store,r=t.chatroomsActions,[2,n.dispatch(r.action$deleteRoom(e))]}))}))},e.prototype.archiveChatroom=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(o.__generator)(this,(function(o){return n=(t=this).store,r=t.chatroomsActions,[2,n.dispatch(r.archiveRoom(e))]}))}))},e.prototype.unarchiveChatroom=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(o.__generator)(this,(function(o){return n=(t=this).store,r=t.chatroomsActions,[2,n.dispatch(r.unarchiveRoom(e))]}))}))},e.prototype.setParticipantsPresence=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(o.__generator)(this,(function(o){return n=(t=this).store,r=t.chatroomsActions,this.isPresenceWatchFT()&&console.warn("setParticipantsPresence is deprecated. Please use subscribeToPresenceChanges"),[2,n.dispatch(r.setParticipantsPresence(e))]}))}))},e.prototype.updateParticipantsPresence=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(o.__generator)(this,(function(o){return n=(t=this).store,r=t.chatroomsActions,this.isPresenceWatchFT()&&console.warn("updateParticipantsPresence is deprecated. Please use subscribeToPresenceChanges"),[2,n.dispatch(r.updateParticipantsPresence(e))]}))}))},e.prototype.isPresenceWatchFT=function(){return ao.isExperimentOn(Z.experiments.PresenceWatch)},e.prototype.fetchRooms=function(e){var t=e.filter,n=void 0===t?{}:t,r=e.cursor,a=void 0===r?void 0:r,i=e.isSilent,s=void 0!==i&&i;return Object(o.__awaiter)(this,void 0,void 0,(function(){var e,t,r;return Object(o.__generator)(this,(function(o){return t=(e=this).store,r=e.chatroomsActions,[2,t.dispatch(r.fetchRooms({filter:n,cursor:a,isSilent:s}))]}))}))},e.prototype.addRooms=function(e){var t=e.rooms,n=this.store,r=this.chatroomsActions;return n.dispatch(r.addRooms(t))},e.prototype.getUnreadCountForRoom=function(e){var t=z(this.store.getState(),e);return new W.a(t).count},e.prototype.getUnreadCountForRooms=function(e){var t=this;return e.reduce((function(e,n){return e[n]=t.getUnreadCountForRoom(n),e}),{})},e.prototype.fetchMessageDrafts=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){var e,t,n;return Object(o.__generator)(this,(function(r){return t=(e=this).store,n=e.chatroomsActions,t.dispatch(n.fetchMessageDrafts()),[2]}))}))},e.prototype.markAllRoomsAsRead=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t,n,r,a;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return n=(t=this).store,r=t.chatroomsActions,[4,t.serverApi.http$markAllRoomsAsRead(e)];case 1:return a=o.sent(),[4,n.dispatch(r.fetchRooms({filter:e}))];case 2:return o.sent(),[2,a]}}))}))},e.prototype.deleteChatrooms=function(e){var t=this.store,n=this.chatroomsActions;return t.dispatch(n.action$deleteRooms(e))},e.prototype.archiveChatrooms=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(o.__generator)(this,(function(o){return n=(t=this).store,r=t.chatroomsActions,[2,n.dispatch(r.archiveRooms(e))]}))}))},e.prototype.unarchiveChatrooms=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(o.__generator)(this,(function(o){return n=(t=this).store,r=t.chatroomsActions,[2,n.dispatch(r.unarchiveRooms(e))]}))}))},e.prototype.search=function(e){var t=e.searchTerm,n=e.participantIds,r=e.chatroomsPageSize,s=e.chatroomsNextPointer,c=e.messagesPageSize,u=e.messagesNextPointer;return Object(o.__awaiter)(this,void 0,void 0,(function(){var e,l,d,p,f=this;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return[4,this.serverApi.http$search({searchTerm:t,participantIds:n,chatroomsPageSize:r,chatroomsNextPointer:s,messagesPageSize:c,messagesNextPointer:u})];case 1:return e=o.sent(),l=function(e){var t=e.chatroomsPage.chatrooms,n=e.messagesPage.messages.map((function(e){return e.chatroom})),r=t.concat(n);return Br(r,"id")}(e),this.addRooms({rooms:l}),d=[],e.chatroomsPage.chatrooms.forEach((function(e){var t=z(f.store.getState(),e.id);if(!i(t)){var n=new W.a(t);d.push(n)}})),p=[],e.messagesPage.messages.forEach((function(e){var t=z(f.store.getState(),e.chatroom.id);if(!i(t)){var n=new W.a(t),r=new a.a(e.message);p.push({chatroom:n,message:r})}})),[2,{chatroomsPage:{chatrooms:d,nextPointer:e.chatroomsPage.nextPage.nextPointer,total:e.chatroomsPage.nextPage.total},messagesPage:{messages:p,nextPointer:e.messagesPage.nextPage.nextPointer,total:e.messagesPage.nextPage.total}}]}}))}))},e}(),kr=function(e,t){var n,r=U(e,t);return function(e,t){var o=e.getState(),a=r(o);a&&F(n,a)||(n=a,t(a))}},Tr=function(){function e(e){var t=e.store,n=e.messagesActions,r=e.subscriptionService,o=e.drillInMessageIndications;this.store=t,this.messagesActions=n,this.subscriptionService=r,this.drillInMessageIndications=o}return e.prototype.subscribeToDrillInMessageIndications=function(e){var t=e.chatroomId,n=e.messageId,r=e.sequence,o=e.callback,a=this.store,s=this.messagesActions,c=kr(t,n);c(a,o);var u=a.subscribe((function(){return c(a,o)})),l=this._createIndicationsDataFetcher(t,r);l();var d=this._registerIndicationsSubscription(t,r,l),f=function(e){var n=e.indications.map((function(e){return e.participantId})),r=$(n);i(r)||a.dispatch(s.action$fetchRoomParticipantsDisplayData(t,r))};return p.c(p.b.FETCH_DRILL_IN_MESSAGE_INDICATIONS_COMPLETED,f),{unsubscribe:function(){u(),d(),p.f(p.b.FETCH_DRILL_IN_MESSAGE_INDICATIONS_COMPLETED,f)}}},e.prototype._registerIndicationsSubscription=function(e,t,n){var r={chatroomId:e,sequence:t};return this.subscriptionService.registerSubscription(r,n)},e.prototype._createIndicationsDataFetcher=function(e,t){var n=this;return function(){return Object(o.__awaiter)(n,void 0,void 0,(function(){return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.store.dispatch(this.messagesActions.action$fetchDrillInMessageIndications(e,t))];case 1:return n.sent(),[2]}}))}))}},e}(),Rr=n(590),Ir=new(function(){function e(){}return e.prototype.action$updatePresence=function(e){return{type:Ie.UPDATE_PRESENCE,meta:{data:e}}},e.prototype.action$clearStalePresenceSessions=function(){return{type:Ie.PRESENCE_CLEAR_STALE}},e}()),Pr=function(e,t){var n;return null===(n=e[t])||void 0===n?void 0:n.name},jr=function(e){var t=e.store,n=e.chatroomsActions,r=e.chatroomId,o=e.dataForDebug;r||console.error("[Troubleshoot] refreshChatroom: "+JSON.stringify(o));var a=ao.isExperimentOn(Z.experiments.EnrichedChatroom);return t.dispatch(n.action$fetchRoom(r,a))},Mr={},Nr=function(e){var t=e.store,n=e.chatroomsActions,r=e.chatroomId,o=e.isArchived,a=t.getState().chatrooms.byId;if(Pr(a,r))t.dispatch(o?n.action$handleRoomArchived(r):n.action$handleRoomUnarchived(r));else{var i=ao.isExperimentOn(Z.experiments.EnrichedChatroom);t.dispatch(n.action$fetchRoom(r,i))}};function Lr(e){var t=e.store,n=e.chatroomsActions,r=e.messagesActions,a=e.data,i=e.currentUser;switch(a.type){case tn.a.MESSAGE_SENT:return function(e){var t=e.store,n=e.chatroomsActions,r=e.data,a=e.currentUser;return Object(o.__awaiter)(void 0,void 0,void 0,(function(){var e,i,s,c,u,l,d,p,f,h,m;return Object(o.__generator)(this,(function(v){switch(v.label){case 0:return e=r.chatroomId,i=r.message,s=r.connectionEstablishedTimestamp,c=r.timestamp,u=t.getState().chatrooms,l=u.byId,Pr(l,e)?[3,2]:(e||console.error("[Troubleshoot] onAddRealtimeMessage calling fetchRoom w/o chatroomId"+JSON.stringify(r)),d=ao.isExperimentOn(Z.experiments.EnrichedChatroom),p=t.dispatch(n.action$fetchRoom(e,d)),ao.isExperimentOn(Z.experiments.UnseenChatroomCount)?[4,p]:[3,2]);case 1:v.sent(),v.label=2;case 2:return l=t.getState().chatrooms.byId,f=a.userId===i.sender.userId,h=Object(o.__assign)(Object(o.__assign)({},i),{transit:Object(o.__assign)(Object(o.__assign)({},i.transit),{sendStatus:Z.MessageSendStatus.SENT})}),t.dispatch(n.action$addMessage(h,f,l[e])),m=c+Z.HistorySinceRealtimeConnectionWasEstablished>=s,!f&&m&&Hr(i),[2]}}))}))}({store:t,chatroomsActions:n,data:a,currentUser:i});case tn.a.CHATROOM_DELETED:return function(e){var t=e.store,n=e.chatroomsActions,r=e.data;return t.dispatch(n.action$removeRoom(r.chatroomId))}({store:t,chatroomsActions:n,data:a});case tn.a.CHATROOOM_DISPLAY_DATA_UPDATED:return function(e){var t=e.store,n=e.chatroomsActions,r=e.data;return r.chatroomIds.forEach((function(e){return jr({store:t,chatroomsActions:n,chatroomId:e,dataForDebug:r})}))}({store:t,chatroomsActions:n,data:a});case tn.a.CHATROOM_CREATED:return jr({store:t,chatroomsActions:n,chatroomId:a.chatroomId,dataForDebug:a});case tn.a.TYPING_STARTED:!function(e){var t=e.data,n=e.store,r=e.chatroomsActions,o=t.userId,a=t.chatroomId,i=t.expiryDuration;if(i){var s=o+"|"+a;Mr[s]&&clearTimeout(Mr[s]),Mr[s]=setTimeout((function(){n.dispatch(r.action$changeTypingStatus({chatroomId:a,userId:o,type:tn.a.TYPING_STOPPED}))}),i)}}({store:t,chatroomsActions:n,data:a});case tn.a.TYPING_STOPPED:return function(e){var t=e.store,n=e.chatroomsActions,r=e.data,o=e.currentUser,a=r.chatroomId,i=r.userId,s=r.type,c=r.displayData,u=r.timestamp;if(!(r.connectionEstablishedTimestamp>u)){var l=null;s===tn.a.TYPING_STARTED&&c&&(l={imageUrl:c.content.image?c.content.image.url:void 0,initials:c.content.initials});var d=i===o.userId;t.dispatch(n.action$changeTypingStatus({chatroomId:a,userId:i,type:s,displayData:l,isCurrentUser:d}))}}({store:t,chatroomsActions:n,data:a,currentUser:i});case tn.a.CHATROOM_ARCHIVED:return Nr({store:t,chatroomsActions:n,chatroomId:a.chatroomId,isArchived:!0});case tn.a.CHATROOM_UNARCHIVED:return Nr({store:t,chatroomsActions:n,chatroomId:a.chatroomId,isArchived:!1});case tn.a.CHATROOM_READ:return function(e){var t=e.store,n=e.chatroomsActions,r=e.chatroomId,o=e.userId;ao.isExperimentOn(Z.experiments.PublishReadToSelf)&&ao.getUserId()===o&&t.dispatch(n.action$setMessagesReadForSelf(r))}({store:t,chatroomsActions:n,chatroomId:a.chatroomId,userId:a.userId});case tn.a.MESSAGE_INDICATION_UPDATE:if(ao.isExperimentOn(Z.experiments.EnrichedChatroom))return function(e){var t=e.store,n=e.chatroomsActions,r=e.messagesActions,o=e.data;t.getState().participants.byId[o.participantId]||t.dispatch(n.action$fetchRoomParticipantsDisplayData(o.chatroomId,[o.participantId])),t.dispatch(r.action$updateMessagesIndications({chatroomId:o.chatroomId,messageIds:o.messageIds,participantId:o.participantId,indication:o.indication}))}({store:t,chatroomsActions:n,messagesActions:r,data:a});break;case tn.a.PRESENCE_EVENT:return function(e,t){return e.dispatch(Ir.action$updatePresence(t))}(t,a);case tn.a.EXTERNAL_HOST:p.e(p.a.EXTERNAL_HOST,a);break;default:return}}var Hr=function(e){p.e(p.a.NEW_REALTIME_MESSAGE,e)},Ur=n(595),zr=function(){function e(){this.queue=Promise.resolve(),this.setInitialState()}return e.prototype.setInitialState=function(){this.queue=Promise.resolve()},e.prototype.addToQueue=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t=this;return Object(o.__generator)(this,(function(n){return this.queue=this.queue.then((function(){return Object(o.__awaiter)(t,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){switch(t.label){case 0:return[4,e()];case 1:return[2,t.sent()]}}))}))})),[2,this.queue]}))}))},e.prototype.reset=function(){this.setInitialState()},e}(),Wr=function(e,t){return Object(o.__awaiter)(void 0,void 0,void 0,(function(){var n;return Object(o.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e];case 1:return[2,r.sent()];case 2:return n=r.sent(),console.warn("Error while DB Storage "+t+": '"+n+"'"),p.e(p.a.BI_ERROR,{tag:"db-storage",description:t,errorName:n}),[3,3];case 3:return[2]}}))}))},Gr=function(){function e(){}return Object.defineProperty(e.prototype,"_ormModelWrapper",{get:function(){return this.getDBModel()._ormModelWrapper},enumerable:!0,configurable:!0}),e.prototype.getSource=function(e){return this.constructor.name+"."+e},e.prototype.clear=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){switch(e.label){case 0:return[4,Wr(this.getDBModel().clear(),this.getSource("clear"))];case 1:return e.sent(),[2]}}))}))},e.prototype.delete=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){switch(t.label){case 0:return[4,Wr(this.getDBModel().delete(e),this.getSource("delete"))];case 1:return t.sent(),[2]}}))}))},e.prototype.loadAll=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){switch(e.label){case 0:return[4,Wr(this.getDBModel().loadAll(),this.getSource("loadAll"))];case 1:return[2,e.sent()]}}))}))},e.prototype.query=function(){return this.getDBModel().query()},e.prototype.rawQuery=function(e,t){return this.getDBModel().rawQuery(e,t)},e.prototype.serializeNonRelationalValues=function(e){return this.getDBModel().serializeNonRelationalValues(e)},e.prototype._typeormQuery=function(){return this.getDBModel()._typeormQuery()},e.prototype.splitToBatches=function(e){var t=Object.keys(this.getDBModel()._ormModelWrapper.columns).length;if(e.length*t>=999){for(var n=[],r=Math.floor(998/t),o=Math.floor(e.length/r)+1,a=0;a0&&e.limit(r),[4,this.asyncLock.addToQueue((function(){return Object(o.__awaiter)(i,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){switch(t.label){case 0:return[4,e.fetch()];case 1:return[2,t.sent()]}}))}))}))];case 1:return t=s.sent(),a=Object(q.a)(t),[2,{chatrooms:{items:a},unreadChatroomCount:0,unreadChatroomIds:[]}]}}))}))}},e.prototype.saveChatrooms=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t,n,r=this;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return t=e.value.chatrooms.items,[4,this.asyncLock.addToQueue((function(){return r.chatroomModel.clear()}))];case 1:return o.sent(),t&&t.length>0?(n=Ur(t,(function(e,t){return e.id===t.id})),[4,this.asyncLock.addToQueue((function(){return r.chatroomModel.save(n)}))]):[3,3];case 2:o.sent(),o.label=3;case 3:return[2]}}))}))},e.prototype.loadMessages=function(e){var t=this,n=e.chatroomId,r=e.pageSize;return function(){return Object(o.__awaiter)(t,void 0,void 0,(function(){var e,t;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return e=this.messageModel.query().orderBy("sequence","DESC"),n&&e.where({param:"chatroomId",value:n,operator:"="}),r&&r>0&&e.limit(r),[4,e.fetch()];case 1:return t=o.sent(),[2,{items:Object(q.a)(t)}]}}))}))}},e.prototype.saveMessages=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t,n,r,a,i=this;return Object(o.__generator)(this,(function(s){switch(s.label){case 0:return(t=e.value.items)&&0!==t.length?(n=t[0].chatroomId,[4,this.asyncLock.addToQueue((function(){return Object(o.__awaiter)(i,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.messageModel.query().where({param:"chatroomId",value:n,operator:"="}).fetch()];case 1:return[2,e.sent()]}}))}))}))]):[2];case 1:return r=s.sent(),(a=Object(q.a)(r))&&a.length>0?[4,this.asyncLock.addToQueue((function(){return i.messageModel._typeormQuery().delete().whereInIds(a.map((function(e){return e.id}))).execute()}))]:[3,3];case 2:s.sent(),s.label=3;case 3:return t&&t.length>0?[4,this.asyncLock.addToQueue((function(){return i.messageModel.save(t)}))]:[3,5];case 4:s.sent(),s.label=5;case 5:return[2]}}))}))},e.prototype.updateModel=function(e,t,n){return Object(o.__awaiter)(this,void 0,void 0,(function(){var r,a,i=this;return Object(o.__generator)(this,(function(s){switch(s.label){case 0:return n&&n!=={}?(r=this.getDeleted(n,t)).length>0?[4,this.asyncLock.addToQueue((function(){return Object(o.__awaiter)(i,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){switch(t.label){case 0:return[4,e._typeormQuery().delete().whereInIds(r.map((function(e){return e.id}))).execute()];case 1:return[2,t.sent()]}}))}))}))]:[3,2]:[2];case 1:s.sent(),s.label=2;case 2:return(a=Object(q.a)(t)).length>0?[4,this.asyncLock.addToQueue((function(){return e.save(a)}))]:[3,4];case 3:s.sent(),s.label=4;case 4:return[2]}}))}))},e.prototype.updateChatroomsInDB=function(e,t){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.updateModel(this.chatroomModel,e,t)];case 1:return n.sent(),[2]}}))}))},e.prototype.updateMessagesInDB=function(e,t){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.updateModel(this.messageModel,e,t)];case 1:return n.sent(),[2]}}))}))},e.prototype.getDeleted=function(e,t){var n=[];return e&&t&&Object.keys(e).forEach((function(r){t[r]||n.push(e[r])})),n},e.prototype.clearAll=function(){this.models&&this.models.forEach((function(e){return e.clear()}))},e}(),Kr=function(){function e(e){var t=e.store,n=e.actions;this.store=t,this.actions=n}return e.prototype.subscribe=function(e,t){var n,r=this,o=function(){var o=function(e,t){var n=c(e,["unseenChatroomCount","byFilter",je(t)]);return!n||i(n)?null:"resyncCountdown"in n?{count:ae.maxUnreadsCount,overflow:!0}:{count:Math.min(ae.maxUnreadsCount,Object.keys(n.chatrooms).length),overflow:Object.keys(n.chatrooms).length>ae.maxUnreadsCount}}(r.store.getState(),t);o&&!F(n,o)&&(n=o,e(o))};return o(),this.store.dispatch(this.actions.updateUnseenChatrooms(t)),{unsubscribe:this.store.subscribe(o)}},e.prototype.markChatroomsAsSeen=function(e){return this.store.dispatch(this.actions.markChatroomsAsSeen(e))},e}(),$r=function(e,t,n){return Br(t.chatrooms.filter((function(e){var t=e.chatroomId,r=n.chatrooms.byId[t];return!r||Ge(r)})),at(n,e),(function(e){return e.chatroomId}))},Zr=function(){function e(e){this.serverApi=e}return e.prototype.updateUnseenChatrooms=function(e){var t=this;return function(n,r){return n({type:Ie.SET_UNSEEN_CHATROOMS,payload:Object(o.__awaiter)(t,void 0,void 0,(function(){var t,n;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return t=$r,n=[e],[4,this.serverApi.http$fetchUnseenChatroomCount(e,ae.maxTrackableUnreads+1)];case 1:return[2,t.apply(void 0,n.concat([o.sent(),r()]))]}}))})),meta:{filter:e}})}},e.prototype.markChatroomAsSeen=function(e){var t=this;return function(n,r){var o=r();return n({type:Ie.MARK_CHATROOM_SEEN,payload:e,meta:{chatroom:r().chatrooms.byId[e]}}),Promise.all(Object.keys(o.unseenChatroomCount.byFilter).filter((function(e){return function(e,t){return e&&t&&"resyncCountdown"in e&&"resyncCountdown"in t&&1===e.resyncCountdown&&0===t.resyncCountdown}(o.unseenChatroomCount.byFilter[e],r().unseenChatroomCount.byFilter[e])})).map((function(e){return n(t.updateUnseenChatrooms(Me(e)))})))}},e.prototype.markChatroomsAsSeen=function(e){var t=this;return function(n,r){return n({type:Ie.MARK_CHATROOMS_SEEN,payload:t.serverApi.http$markChatroomsAsSeen(e,it(r())),meta:{filter:e,filteredChatrooms:Object.values(J(r().chatrooms.byId,"participantId"in e?{participantIds:[e.participantId]}:{participantType:e.participantType}))}})}},e}(),Qr=n(448);var Xr=b([function(e){return e.presence.participantsById}],(function(e){var t={};return Qr(e,(function(e,n){e.online&&(t[e.groupId]=Object(o.__spreadArrays)(t[e.groupId]||[],[n]))})),t})),Jr=function(){function e(e,t,n){this.currentUser=e,this.serverApi=t,this.store=n}return e.prototype.watch=function(){return this.serverApi.http$watch()},e.prototype.subscribeToPresenceChanges=function(e){var t,n=this,r=e.callback,o=function(){var e=n.store.getState(),o=e.presence;if(o&&!F(t,o)){t=o;var a={participantsById:o.participantsById,participantsByGroupId:Xr(e)};r(a)}};return this.hasParticipants()&&o(),{unsubscribe:this.store.subscribe(o)}},e.prototype.set=function(e,t,n){var r={userId:this.currentUser.userId,sessionId:e,group:t,data:n,status:ar.PresenceStatus.ONLINE};return this.serverApi.http$setPresence(r,this.currentUser.token)},e.prototype.hasParticipants=function(){return!i(this.store.getState().presence.participantsById)},e}(),eo={reportMonitoringBi:function(){}};function to(e){return ao.isExperimentOn(Z.experiments.NoHistoryOnRealtimeConnect)?e:e-Z.HistorySinceRealtimeConnectionWasEstablished}var no=function(){function e(){var e=this;this.unseenChatroom={subscribeToCount:function(t,n){return e._assertInitialized(),e.unseenChatroomCountApi.subscribe(t,n)},markChatroomsAsSeen:function(t){return e._assertInitialized(),e.unseenChatroomCountApi.markChatroomsAsSeen(t)}},this._initialized=!1,this._experiments={},this._onConnectCallbacks=[],this._onConnectingCallbacks=[],this._onConnectionEstablishedCallbacks=[],this._onDisconnectCallbacks=[],this._onInitCallbacks=[],this._connected=!1,this._currentUser=new Bt}return e.prototype.waitForInitialized=function(){var e=this;return new Promise((function(t){return function(t){return e._registerOnInit((function(){return t()}))}(t)}))},Object.defineProperty(e.prototype,"initialized",{get:function(){return this._initialized},enumerable:!0,configurable:!0}),e.prototype.initWithHandshake=function(e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t,n,r,a,i;return Object(o.__generator)(this,(function(s){switch(s.label){case 0:if(t=e.tokenServer,n=e.handshakeServerUrl,r=t||(n?{url:n}:void 0),ro(Object(o.__assign)(Object(o.__assign)({},e),{tokenServer:r})),this.clear(),!r)throw new Error("Trying to call init with handshake without passing the issue server url");return[4,zt(e.persistenceEngine)];case 1:return(a=s.sent())||!r?[3,3]:[4,Ut(r)];case 2:a=s.sent(),s.label=3;case 3:return i=ao.init(Object.assign({},e,{chatToken:a})),a?[4,Wt(a,e.persistenceEngine)]:[3,5];case 4:s.sent(),s.label=5;case 5:return[2,i]}}))}))},e.prototype.init=function(e){var t,n=this,a=e.chatServerUrl,i=e.chatToken,s=e.eventHooks,c=void 0===s?{}:s,u=e.experiments,l=void 0===u?{}:u,d=e.preFetch,f=void 0!==d&&d,h=e.appName,m=e.persistenceEngine,v=e.dbStorageEngine,g=e.httpHeaders,b=e.handshakeServerUrl,y=e.tokenServer,E=e.throttleThreshold,F=y||(b?{url:b}:void 0);ro({chatServerUrl:a,chatToken:i,tokenServer:F}),this.clear(),this._currentUser.loadJwtChatToken(i),Ot.setAppName(h),this._currentUser.token=i,this._experiments=l,this._eventHooks=Object.assign(oo,c),this.realtimeClient=(t=new Rr(void 0,{atomicServerTime:this.isExperimentOn(Z.experiments.FirebaseAtomicServerTime)}),{connect:function(e){var n=e.realtimeServiceSetup,r=e.onEvent,a=e.eventHooks,i=void 0===a?eo:a;return Object(o.__awaiter)(this,void 0,void 0,(function(){var e,a,s,c,u,l,d,f,h,m;return Object(o.__generator)(this,(function(v){switch(v.label){case 0:if(e=function(){var e={tag:"realtime",description:"onConnect success"};return p.d.emit(p.a.MONITORING_BI,e),i.reportMonitoringBi(e)},a=function(e){var t={tag:"realtime",description:"onConnect failure "+e};return p.d.emit(p.a.MONITORING_BI,t),i.reportMonitoringBi(t)},s=n.options,c=n.authKey,!(u=n.eventsPath))throw l="chat-sdk.realtime.client: unexpected data received",console.error(l,n),new Error(l);d=function(e,t){var n=e.value;setTimeout((function(){try{var e=JSON.stringify(n);i.reportMonitoringBi({tag:"realtime",description:"RT Event: "+n.type,internal:e})}catch(e){console.error("Error parsing RT event value: "+n)}}),0),r(Object(o.__assign)(Object(o.__assign)({},n),{connectionEstablishedTimestamp:t}))},f=u.split("/").slice(0,-1).join("/")+"/timestamp",v.label=1;case 1:return v.trys.push([1,4,,5]),[4,t.connect(s,c)];case 2:return v.sent(),[4,t.getFirebaseServerTime(f)];case 3:return h=v.sent(),t.listenOnPath(u,{orderBy:"timestamp",startAt:to(h)}).when("child_added").call((function(e){var t=e.value;return d({value:t},h)})),t.listenOnPath(u,{orderBy:"timestamp",startAt:to(h)}).when("child_changed").call((function(e){var t=e.value;return d({value:t},h)})),e(),[3,5];case 4:throw m=v.sent(),a(m),m;case 5:return[2]}}))}))},disconnect:function(){t.disconnect()}});var C,A=new Nt,_=this.isExperimentOn("specs.chat.ThrottleNetworkRequests")?E||Z.DEFAULT_THROTTLE_THRESHOLD:0;C=new Vt(F?{baseUrl:a,currentUser:this._currentUser,httpHeaders:g,tokenServer:F,throttleThreshold:_}:{baseUrl:a,currentUser:this._currentUser,httpHeaders:g,throttleThreshold:_}),this.serverApi=new wt(C),this.persistenceService=new Pt(m,this.getUserId(),this._currentUser.participantIds);var D=function(e){return new At(e)}(ae),O=function(e){return new _t(e)}(ae);this.unseenChatroomCountActions=new Zr(this.serverApi);var w=this.isExperimentOn(Z.experiments.DBStorage);this.dbStorageService=w&&v?new qr(v):void 0;var x=ft(this.serverApi,this.persistenceService,this._eventHooks,r,O,D,this.unseenChatroomCountActions,l,this.dbStorageService);this.unseenChatroomCountActions=new Zr(this.serverApi),this.store=this._setupStoreReuseIfNecessary(w,x),this.unseenChatroomCountApi=new Kr({store:this.store,actions:this.unseenChatroomCountActions});var B=new Sr({store:this.store,chatroomsActions:x,subscriptionService:A,serverApi:this.serverApi}),S=new ct({store:this.store,chatroomsActions:x,subscriptionService:A,currentUser:this._currentUser,enrichedChatroom:this.isExperimentOn(Z.experiments.EnrichedChatroom)});this.messagesActions=mt(this.serverApi);var k=new Tr({store:this.store,messagesActions:this.messagesActions,subscriptionService:A,drillInMessageIndications:this.isExperimentOn(Z.experiments.DrillInMessageIndications)}),T=function(e){var t=e.store,n=e.selector,r=e.chatroomsActions,o=e.globalUnreadsCountActions;return new ut({store:t,selector:n,chatroomsActions:r,globalUnreadsCountActions:o})}({store:this.store,selector:O,chatroomsActions:x,globalUnreadsCountActions:D}),R=new Tt(this.store,x,this.serverApi,this.persistenceService);return this.presence=new Jr(this._currentUser,this.serverApi,this.store),Object.assign(this,{subscriptionService:A,chatroomsActions:x,chatroomsApi:B,chatroomApi:S,messagesApi:k,globalUnreadsCountApi:T,textTypingService:R}),f&&this._fetchRooms({isSilent:!1}),this.connectToRealtime({chatToken:i,eventHooks:this._eventHooks}),this.serverApi.http$fetchCurrentUserDisplayData().then((function(e){n._currentUser.displayData=e})),this._connected=!0,this._initialized=!0,this._onConnectCallbacks.forEach((function(e){return e()})),this.notifyOnInit(),B.fetchMessageDrafts(),this},e.prototype.clear=function(){this._initialized=!1,this._connected&&this.disconnect()},e.prototype.disconnect=function(){this._onDisconnectCallbacks.forEach((function(e){return e()})),this.realtimeClient.disconnect(),this._connected=!1},e.prototype.reconnect=function(e){var t=(void 0===e?{chatToken:void 0}:e).chatToken;if(this._assertInitialized(),!this._connected)return t&&(this._currentUser.token=t),this._onConnectCallbacks.forEach((function(e){return e()})),Promise.all([this.subscriptionService.refreshSubscribedData(),this.connectToRealtime({chatToken:t,eventHooks:this._eventHooks})])},e.prototype.reconnectWithHandshake=function(e){var t=e.handshakeServerUrl,n=e.tokenServer;return Object(o.__awaiter)(this,void 0,void 0,(function(){var e;return Object(o.__generator)(this,(function(r){switch(r.label){case 0:if(!n&&!t)throw new Error("Trying to reconnect chat-sdk without a `tokenServer`");return this._connected?[2]:[4,zt(this.persistenceService.persistenceEngine)];case 1:return e=r.sent(),[2,this.reconnect({chatToken:e})]}}))}))},e.prototype.onConnecting=function(e){this._onConnectingCallbacks.push(e)},e.prototype.onConnectionEstablished=function(e){this._onConnectionEstablishedCallbacks.push(e)},e.prototype.onDisconnect=function(e){this._onDisconnectCallbacks.push(e)},e.prototype.subscribeToChatRoomsList=function(e){var t=e.callback,n=e.filter;return this._assertInitialized(),this.chatroomsApi.subscribeToChatRoomsList({callback:t,filter:n})},e.prototype.subscribeToChatRoom=function(e){var t=e.chatroomId,n=e.onChange,r=e.onNewMessage,o=e.onInitialFetchDone,a=e.onError;return this._assertInitialized(),this.chatroomApi.subscribeToChatRoom({chatroomId:t,onChange:n,onNewMessage:r,onInitialFetchDone:o,onError:a})},e.prototype.subscribeToGlobalUnreadStatus=function(e){var t=e.callback,n=e.filter;if(this._assertInitialized(),this.globalUnreadsCountApi)return this.globalUnreadsCountApi.subscribeToGlobalUnreadsCount({callback:t,filter:n});throw new Error("Cannot subscribe to global unreads count: must init with prefetch")},e.prototype.subscribeToDrillInMessageIndications=function(e){var t=e.chatroomId,n=e.messageId,r=e.sequence,o=e.callback;if(this._assertInitialized(),this.isExperimentOn(Z.experiments.DrillInMessageIndications))return this.messagesApi.subscribeToDrillInMessageIndications({chatroomId:t,messageId:n,sequence:r,callback:o})},e.prototype.getChatroom=function(e){var t=e.chatroomId;return this._assertInitialized(),this.chatroomApi.getChatroom({chatroomId:t})},e.prototype.getUnreadCountForRoom=function(e){return this.chatroomsApi.getUnreadCountForRoom(e)},e.prototype.getUnreadCountForRooms=function(e){return this.chatroomsApi.getUnreadCountForRooms(e)},e.prototype.fetchRooms=function(e){var t=e.filter,n=e.cursor,r=e.isSilent,o=void 0!==r&&r;return this._assertInitialized(),this._fetchRooms({filter:t,cursor:n,isSilent:o})},e.prototype.sendMessage=function(e){return this._assertInitialized(),this.chatroomApi.sendMessage(e)},e.prototype.addMessage=function(e){var t=e.dto,n=e.transit;return this._assertInitialized(),this.chatroomApi.addMessage({dto:t,transit:n})},e.prototype.addChatrooms=function(e){var t=e.rooms;return this._assertInitialized(),this.chatroomsApi.addRooms({rooms:t})},e.prototype.deleteMessage=function(e){return this._assertInitialized(),this.chatroomApi.deleteMessage(e)},e.prototype.notifyTyping=function(e,t){return this._assertInitialized(),this.textTypingService.notifyTyping(e,t)},e.prototype.notifyTypingTextChange=function(e,t,n){return void 0===n&&(n=!0),this._assertInitialized(),this.textTypingService.notifyTextChange(e,t,n)},e.prototype.deleteChatroom=function(e){return this._assertInitialized(),this.chatroomsApi.deleteChatroom(e)},e.prototype.deleteChatrooms=function(e){return this._assertInitialized(),this.chatroomsApi.deleteChatrooms(e)},e.prototype.archiveChatroom=function(e){return this._assertInitialized(),this.chatroomsApi.archiveChatroom(e)},e.prototype.archiveChatrooms=function(e){return this._assertInitialized(),this.chatroomsApi.archiveChatrooms(e)},e.prototype.unarchiveChatrooms=function(e){return this._assertInitialized(),this.chatroomsApi.unarchiveChatrooms(e)},e.prototype.unarchiveChatroom=function(e){return this._assertInitialized(),this.chatroomsApi.unarchiveChatroom(e)},e.prototype.setParticipantsPresence=function(e){return this._assertInitialized(),this.chatroomsApi.setParticipantsPresence(e)},e.prototype.updateParticipantsPresence=function(e){return this._assertInitialized(),this.chatroomsApi.updateParticipantsPresence(e)},e.prototype.setLastMessageUnread=function(e){var t=e.chatroomId;return this._assertInitialized(),this.chatroomApi.setLastMessageUnread({chatroomId:t})},e.prototype.isExperimentOn=function(e){return dt(this._experiments,e)},e.prototype.getUserId=function(){return this._currentUser.userId},e.prototype.clearPersistence=function(){this.persistenceService&&(this.persistenceService.clearMessageDrafts(),this.persistenceService.clearToken()),this.dbStorageService&&this.dbStorageService.clearAll()},e.prototype.setAllRoomsAsRead=function(e){return this.chatroomsApi.markAllRoomsAsRead(e)},e.prototype.setMessagesRead=function(e){var t=e.chatroomId;return this._assertInitialized(),this.chatroomApi.setMessagesRead({chatroomId:t})},e.prototype.setRoomsMessagesRead=function(e){return this.chatroomApi.setRoomsMessagesRead(e)},e.prototype.search=function(e){var t=e.searchTerm,n=e.participantIds,r=e.chatroomsPageSize,a=void 0===r?10:r,i=e.chatroomsNextPointer,s=void 0===i?0:i,c=e.messagesPageSize,u=void 0===c?10:c,l=e.messagesNextPointer,d=void 0===l?0:l;return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){return[2,this.chatroomsApi.search({searchTerm:t,participantIds:n,chatroomsPageSize:a,chatroomsNextPointer:s,messagesPageSize:u,messagesNextPointer:d})]}))}))},e.prototype.getMessagesPage=function(e){var t=e.chatroomId,n=e.messageSequence,r=e.pageSize;return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.serverApi.http$fetchRoomMessagesPage({chatroomId:t,messageSequence:n,pageSize:r})];case 1:return[2,e.sent().reverse().map((function(e){return new a.a(e)}))]}}))}))},e.prototype.notifyOnInit=function(){this._onInitCallbacks.forEach((function(e){return e()}))},e.prototype._registerOnInit=function(e){this._initialized?e():this._onInitCallbacks.push(e)},e.prototype.connectToRealtime=function(e){var t=this,n=e.chatToken,r=e.eventHooks;return this.isExperimentOn(Z.experiments.PresenceWatch)&&this.presence.watch(),this.isExperimentOn(Z.experiments.ClearStaleSessions)&&this.store.dispatch(Ir.action$clearStalePresenceSessions()),this._onConnectingCallbacks.forEach((function(e){return e()})),this.serverApi.http$initRealtimeToken(n).then((function(e){return t.realtimeClient.connect({realtimeServiceSetup:e,onEvent:function(e){return Lr({store:t.store,chatroomsActions:t.chatroomsActions,messagesActions:t.messagesActions,data:e,currentUser:t._currentUser})},eventHooks:r})})).then((function(){return t._onConnectionEstablishedCallbacks.forEach((function(e){return e()}))}))},e.prototype._fetchRooms=function(e){var t=e.filter,n=void 0===t?void 0:t,r=e.cursor,o=void 0===r?void 0:r,a=e.isSilent,i=void 0!==a&&a;return this.chatroomsApi.fetchRooms({filter:n,cursor:o,isSilent:i})},e.prototype._assertInitialized=function(){if(!this.initialized)throw new Error("Trying to call chat-sdk without having it initialized")},e.prototype._setupStoreReuseIfNecessary=function(e,t){if(this.existingStore){var n=this.existingStore;return n.dispatch(t.action$resetStore()),n}return e&&this.dbStorageService?(this.existingStore=xr({shouldUseDBStorage:e}),this.dbStorageService.initStore(this.existingStore)):this.existingStore=xr(),this.existingStore},e}();function ro(e){var t=e.chatServerUrl,n=e.chatToken,r=e.tokenServer;if(!n&&!r)throw new Error("Trying to initialize chat-sdk without chatToken or handshakeServerUrl");if(!t)throw new Error("Trying to initialize chat-sdk without chatServerUrl")}var oo={reportMonitoringBi:function(){return null}},ao="object"==typeof window?(window.chatSdk||(window.chatSdk=new no),window.chatSdk):new no},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),o={expand:function(){r.a.trackEvent("CustomEvent",{event:"Chat - Opened",eventAction:"Chat - Opened",eventCategory:"Engagement",eventLabel:"Chat"})},collapse:function(){r.a.trackEvent("CustomEvent",{event:"Chat - Closed",eventAction:"Chat - Closed",eventCategory:"Engagement",eventLabel:"Chat"})},lead:function(){r.a.trackEvent("Lead",{action:"Chat - Lead capture form submitted",label:"Chat"})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(0),a=n.n(o),i=n(622),s=n.n(i),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.render=function(){var e=this.props.dimensions&&20,t={height:e+"px",width:e+"px",borderWidth:(this.props.borderWidth&&2)+"px"};return this.props.color?t.color=this.props.color:t.opacity=.25,a.a.createElement("div",{"data-hook":"loader",className:s.a.loader,style:Object(r.__assign)({},t)})},t}(a.a.Component)},function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"dllvX",srOnly:"dllvX",wrapper:"_1s0FQ",shouldApplyCollapseAnimation:"_23hal",collapseWidgetAnimationToRounded:"_2FY9n",expandButton:"_248hZ",collapseWidgetAnimationToRoundedOnButton:"_3pCmp","rotate-ltr":"Erqag",rotateLtr:"Erqag","rotate-rtl":"_2bjYg",rotateRtl:"_2bjYg"}},function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"_3lOa-",srOnly:"_3lOa-",wrapper:"_3tK0X",shouldApplyCollapseAnimation:"_1kg52",collapseWidgetAnimationToRounded:"xLmMV",expandButton:"_2wjrm",collapseWidgetAnimationToRoundedOnButton:"HR2je","rotate-ltr":"_2N3kG",rotateLtr:"_2N3kG","rotate-rtl":"_2y_S4",rotateRtl:"_2y_S4"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t0&&a(l)?n>1?e(l,n-1,a,i,s):r(s,l):i||(s[s.length]=l)}return s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.now=function(){return"undefined"!=typeof performance&&performance&&performance.now?performance.now():-1},t.getDesktopSize=function(e){var t=e.screen&&e.screen.width||0,n=e.screen&&e.screen.height||0;return t+"x"+n},t.getWindowSize=function(e){var t=0,n=0;e.innerWidth?(t=e.innerWidth,n=e.innerHeight):e.document&&(e.document.documentElement&&e.document.documentElement.clientWidth?(t=e.document.documentElement.clientWidth,n=e.document.documentElement.clientHeight):e.document.body&&e.document.body.clientWidth&&(t=e.document.body.clientWidth,n=e.document.body.clientHeight));return t+"x"+n},t.sendBeacon=function(e){if("undefined"==typeof navigator||!navigator||!navigator.sendBeacon)return!1;return navigator.sendBeacon(e)},t.readCookie=function(e){if("undefined"==typeof document)return null;for(var t=document.cookie.split(";"),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.trackSession||void 0===e.trackSession;return t&&r.track(o.factory),o.factory(e)};t.setHost=o.setHost;t.default={factory:i,setHost:o.setHost}},function(e,t,n){var r=n(132),o=n(438),a=n(439),i=n(93),s=n(108),c=n(509),u=n(510),l=n(249),d=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=i(t,e),u||(u=t.length>1),t})),s(e,l(e),n),u&&(n=o(n,7,c));for(var d=t.length;d--;)a(n,t[d]);return n}));e.exports=d},function(e,t,n){var r=n(205);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(160),o=n(178),a=n(79);e.exports=function(e,t){var n={};return t=a(t,3),o(e,(function(e,o,a){r(n,o,t(e,o,a))})),n}},,,,,,function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"_21LmE",srOnly:"_21LmE",imageWrapper:"_3Z5nx",imagePending:"_1kNpp",image:"_1cAYy",pending:"_18ehf",loader:"_6CIJr","rotate-ltr":"_2Bgfz",rotateLtr:"_2Bgfz","rotate-rtl":"_3oKnW",rotateRtl:"_3oKnW",iconsWrapper:"_2cVan",button:"_1Qxma"}},function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"_3sL3l",srOnly:"_3sL3l",root:"ogaWy",iconWrapper:"_2ES1P",image:"_2tk9m",textWrapper:"qLhVG",texthover:"_3qBig",text:"NEz0f","rotate-ltr":"_1HduW",rotateLtr:"_1HduW","rotate-rtl":"_39QnW",rotateRtl:"_39QnW"}},function(e,t,n){e.exports={container:"_3cma4",error:"QImjP",input:"_1uVIs",dirty:"_186ob",bar:"_13MUl",invalid:"_2I2oz"}},function(e,t,n){e.exports={couponContainer:"_2JjQg",headerTitle:"_3Sv9i",headerSubtitle:"_3Ran6",couponText:"_2KyE9"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={LEAD_CAPTURE_FORM:"lead-capture-form",COUPONS:"CouponsKeyboard",PAYMENT_REQUEST:"payment-request"}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return ye}));var r=n(1),o=n(0),a=n.n(o),i=n(35),s=n.n(i);function c(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var u,l,d=(void 0===u&&(u=0),function(){return++u}),p={},f={},h=["touchstart","touchmove"];function m(e,t){var n=null;return-1!==h.indexOf(t)&&l&&(n={passive:!e.props.preventDefault}),n}var v=function(e,t){var n,r,a=e.displayName||e.name||"Component";return r=n=function(n){var r,s;function u(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+a+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():Object(i.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!f[r._uid]){void 0===l&&(l=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),f[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),p[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(c(e,t,n))return!0;e=e.parentNode}return e}(e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,p[r._uid],m(r,e))}))}},r.disableOnClickOutside=function(){delete f[r._uid];var e=p[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,m(r,t))})),delete p[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=d(),r}s=n,(r=u).prototype=Object.create(s.prototype),r.prototype.constructor=r,r.__proto__=s;var h=u.prototype;return h.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},h.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+a+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},h.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},h.componentWillUnmount=function(){this.disableOnClickOutside()},h.render=function(){var t=this.props,n=(t.excludeScrollbar,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(o.createElement)(e,n)},u}(o.Component),n.displayName="OnClickOutside("+a+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r},g=n(517),b=n.n(g),y=n(56),E=n.n(y),F=n(20),C=n.n(F),A=n(262),_=n.n(A),D=n(11),O=n.n(D),w=n(612),x=n.n(w),B=n(550),S=n(551),k=n.n(S),T=k()(),R=k()(),I=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o1?t-1:0),r=1;r0||r>0)}return!!t},be=v(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.handleClickOutside=function(){this.props.handleClickOutside()},t.prototype.render=function(){return this.props.children},t}(o.Component)),ye=function(e){function t(t){var n=e.call(this,t)||this;return n.targetRef=null,n.portalNode=null,n.stylesObj=null,n.appendToNode=null,n.popperScheduleUpdate=null,n._hideTimeout=null,n._showTimeout=null,n._handleClickOutside=function(){var e=n.props,t=e.onClickOutside,r=e.shown,o=e.disableClickOutsideWhenClosed;!t||o&&!r||t()},n.state={isMounted:!1,shown:t.shown||!1},n.contentHook="popover-content-"+(t["data-hook"]||"")+"-"+me,n}return Object(r.__extends)(t,e),t.prototype.getPopperContentStructure=function(e){var t=this,n=this.props,a=n.moveBy,i=n.appendTo,s=n.placement,c=n.showArrow,u=n.moveArrowTo,l=n.flip,d=n.fixed,p=n.customArrow,f=n.role,h=n.id,m=n.zIndex,v=n.minWidth,g=n.maxWidth,b=function(e){var t=e.width,n=e.moveBy,o=e.appendTo,a=e.shouldAnimate,i=e.flip,s=e.fixed,c=e.placement,u=e.isTestEnv,l=e.minWidth,d=e.dynamicWidth,p=!s,f={offset:{offset:ue({moveBy:n,placement:c})},computeStyle:{gpuAcceleration:!a},flip:{enabled:void 0!==i?i:!n},preventOverflow:{enabled:p},hide:{enabled:p}};return(d||l||t)&&(f.setPopperWidth={enabled:!0,order:840,fn:function(e){var n=e.offsets.reference.width;return e.styles=Object(r.__assign)(Object(r.__assign)({},e.styles),function(e){var t,n=e.width,r=e.minWidth,o=e.dynamicWidth,a=e.referenceWidth;return{minWidth:o?a+"px":(t=r,"string"==typeof t?t:t+"px"),width:n||"auto"}}({width:t,referenceWidth:n,minWidth:l,dynamicWidth:d})),e}}),u&&(f.computeStyle={enabled:!1}),o&&(f.preventOverflow=Object(r.__assign)(Object(r.__assign)({},f.preventOverflow),{boundariesElement:o})),f}({minWidth:v,width:n.width,dynamicWidth:n.dynamicWidth,moveBy:a,appendTo:i,shouldAnimate:ge(this.props),flip:l,placement:s,fixed:d,isTestEnv:!1}),y=o.createElement(U,{modifiers:b,placement:s},(function(n){var a,i=n.ref,l=n.style,d=n.placement,v=n.arrowProps,b=n.scheduleUpdate;return t.popperScheduleUpdate=b,o.createElement("div",{ref:i,"data-hook":"popover-content","data-content-element":t.contentHook,style:Object(r.__assign)(Object(r.__assign)({},l),{zIndex:m,maxWidth:g}),"data-placement":d||s,className:ve(ce.a.popover,(a={},a[ce.a.withArrow]=c,a[ce.a.popoverContent]=!c,a))},c&&t.renderArrow(v,u,d||s,p),o.createElement("div",{key:"popover-content",id:h,role:f,className:c?ce.a.popoverContent:""},e.Content))}));return this.wrapWithAnimations(y)},t.prototype.applyStylesToPortaledNode=function(){var e,t,n=this.state.shown;ge(this.props)||n?(e=this.portalNode,t=this.stylesObj,e&&(t.className.split(" ").forEach((function(t){return e.classList.add(t)})),Object.keys(t).filter((function(e){return e.startsWith("data-")})).forEach((function(n){return e.setAttribute(n,String(t[n]))})))):le(this.portalNode,this.stylesObj)},t.prototype.wrapWithAnimations=function(e){var t=this,n=this.props.timeout,r=this.state.shown;return ge(this.props)?o.createElement(Y.CSSTransition,{in:r,timeout:n,unmountOnExit:!0,classNames:{enter:ce.a["popoverAnimation-enter"],enterActive:ce.a["popoverAnimation-enter-active"],exit:ce.a["popoverAnimation-exit"],exitActive:ce.a["popoverAnimation-exit-active"]},onExited:function(){return le(t.portalNode,t.stylesObj)}},e):e},t.prototype.renderPopperContent=function(e){var t=this.getPopperContentStructure(e);return this.portalNode?o.createElement(ie,{node:this.portalNode},t):t},t.prototype.renderArrow=function(e,t,n,a){var i,s,c,u={ref:e.ref,key:"popover-arrow","data-hook":"popover-arrow",style:Object(r.__assign)(Object(r.__assign)({},e.style),(i=t,s=n,i?((c={})["top"===s||"bottom"===s?"left":"top"]=i+"px",c):{}))};return a?a(n,u):o.createElement("div",Object(r.__assign)({},u,{className:ce.a.arrow}))},t.prototype.componentDidMount=function(){this.initAppendToNode(),this.setState({isMounted:!0})},t.prototype.initAppendToNode=function(){var e=this.props.appendTo;this.appendToNode=he(e,this.targetRef),this.appendToNode&&(this.portalNode=document.createElement("div"),this.portalNode.setAttribute("data-hook","popover-portal"),Object.assign(this.portalNode.style,{position:"static",top:0,left:0,width:0,height:0}),this.appendToNode.appendChild(this.portalNode))},t.prototype.hidePopover=function(){var e=this,t=this.state.isMounted,n=this.props.hideDelay;t&&!this._hideTimeout&&(this._showTimeout&&(clearTimeout(this._showTimeout),this._showTimeout=null),n?this._hideTimeout=setTimeout((function(){e.setState({shown:!1})}),n):this.setState({shown:!1}))},t.prototype.showPopover=function(){var e=this,t=this.state.isMounted,n=this.props.showDelay;t&&!this._showTimeout&&(this._hideTimeout&&(clearTimeout(this._hideTimeout),this._hideTimeout=null),n?this._showTimeout=setTimeout((function(){e.setState({shown:!0})}),n):this.setState({shown:!0}))},t.prototype.componentWillUnmount=function(){this.portalNode&&this.appendToNode.children.length&&this.appendToNode.removeChild(this.portalNode),this.portalNode=null,this._hideTimeout&&(clearTimeout(this._hideTimeout),this._hideTimeout=null),this._showTimeout&&(clearTimeout(this._showTimeout),this._showTimeout=null)},t.prototype.updatePosition=function(){this.popperScheduleUpdate&&this.popperScheduleUpdate()},t.prototype.componentDidUpdate=function(e){var t=this.props.shown;this.portalNode&&(this.stylesObj=ce()("root",{},function(e,t){var n=e;t[n];return Object(r.__rest)(t,["symbol"==typeof n?n:n+""])}("data-hook",this.props)),this.applyStylesToPortaledNode()),e.shown!==t?t?this.showPopover():this.hidePopover():this.updatePosition()},t.prototype.render=function(){var e=this,t=this.props,n=t.onMouseEnter,a=t.onMouseLeave,i=t.onKeyDown,s=t.onClick,c=t.children,u=t.style,l=t.id,d=t.excludeClass,p=t.fluid,f=this.state,h=f.isMounted,m=f.shown,v=Object(de.a)(c,{Element:null,Content:null}),g=ge(this.props),b=h&&(g||m);return o.createElement(I,null,o.createElement(be,{handleClickOutside:this._handleClickOutside,outsideClickIgnoreClass:d||ce.a.popover},o.createElement("div",Object(r.__assign)({style:u,"data-hook":this.props["data-hook"],"data-content-hook":this.contentHook},ce()("root",{fluid:p},this.props),{onMouseEnter:n,onMouseLeave:a,id:l}),o.createElement(V,{innerRef:function(t){return e.targetRef=t}},(function(e){var t=e.ref;return o.createElement("div",{ref:t,className:ce.a.popoverElement,"data-hook":"popover-element",onClick:s,onKeyDown:i},v.Element)})),b&&this.renderPopperContent(v))))},t.displayName="Popover",t.defaultProps={flip:!0,fixed:!1,zIndex:1e3},t.Element=Object(de.b)("Popover.Element"),t.Content=Object(de.b)("Popover.Content"),t}(o.Component)},,function(e,t,n){var r=n(164),o=n(272),a=n(273);e.exports=function(e,t){return a(o(e,t,r),e+"")}},function(e,t,n){var r=n(80),o=n(45);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){var r=n(160),o=n(94),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(219),o=n(274),a=n(161);e.exports=function(e){return r(e,a,o)}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++nt.maxAge:e[d]&&n>e[d]}function F(e){if(e[c]>e[s])for(var t=e[h].tail;e[c]>e[s]&&null!==t;){var n=t.prev;C(e,t),t=n}}function C(e,t){if(t){var n=t.value;e[p]&&e[p](n.key,n.value),e[c]-=n.length,e[m].delete(n.key),e[h].removeNode(t)}}function A(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}Object.defineProperty(g.prototype,"max",{set:function(e){(!e||"number"!=typeof e||e<=0)&&(e=1/0),this[s]=e,F(this)},get:function(){return this[s]},enumerable:!0}),Object.defineProperty(g.prototype,"allowStale",{set:function(e){this[l]=!!e},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(g.prototype,"maxAge",{set:function(e){(!e||"number"!=typeof e||e<0)&&(e=0),this[d]=e,F(this)},get:function(){return this[d]},enumerable:!0}),Object.defineProperty(g.prototype,"lengthCalculator",{set:function(e){"function"!=typeof e&&(e=v),e!==this[u]&&(this[u]=e,this[c]=0,this[h].forEach((function(e){e.length=this[u](e.value,e.key),this[c]+=e.length}),this)),F(this)},get:function(){return this[u]},enumerable:!0}),Object.defineProperty(g.prototype,"length",{get:function(){return this[c]},enumerable:!0}),Object.defineProperty(g.prototype,"itemCount",{get:function(){return this[h].length},enumerable:!0}),g.prototype.rforEach=function(e,t){t=t||this;for(var n=this[h].tail;null!==n;){var r=n.prev;b(this,e,n,t),n=r}},g.prototype.forEach=function(e,t){t=t||this;for(var n=this[h].head;null!==n;){var r=n.next;b(this,e,n,t),n=r}},g.prototype.keys=function(){return this[h].toArray().map((function(e){return e.key}),this)},g.prototype.values=function(){return this[h].toArray().map((function(e){return e.value}),this)},g.prototype.reset=function(){this[p]&&this[h]&&this[h].length&&this[h].forEach((function(e){this[p](e.key,e.value)}),this),this[m]=new o,this[h]=new i,this[c]=0},g.prototype.dump=function(){return this[h].map((function(e){if(!E(this,e))return{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}}),this).toArray().filter((function(e){return e}))},g.prototype.dumpLru=function(){return this[h]},g.prototype.inspect=function(e,t){var n="LRUCache {",r=!1;this[l]&&(n+="\n allowStale: true",r=!0);var o=this[s];o&&o!==1/0&&(r&&(n+=","),n+="\n max: "+a.inspect(o,t),r=!0);var i=this[d];i&&(r&&(n+=","),n+="\n maxAge: "+a.inspect(i,t),r=!0);var p=this[u];p&&p!==v&&(r&&(n+=","),n+="\n length: "+a.inspect(this[c],t),r=!0);var f=!1;return this[h].forEach((function(e){f?n+=",\n ":(r&&(n+=",\n"),f=!0,n+="\n ");var o=a.inspect(e.key).split("\n").join("\n "),s={value:e.value};e.maxAge!==i&&(s.maxAge=e.maxAge),p!==v&&(s.length=e.length),E(this,e)&&(s.stale=!0),s=a.inspect(s,t).split("\n").join("\n "),n+=o+" => "+s})),(f||r)&&(n+="\n"),n+="}"},g.prototype.set=function(e,t,n){var r=(n=n||this[d])?Date.now():0,o=this[u](t,e);if(this[m].has(e)){if(o>this[s])return C(this,this[m].get(e)),!1;var a=this[m].get(e).value;return this[p]&&(this[f]||this[p](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[c]+=o-a.length,a.length=o,this.get(e),F(this),!0}var i=new A(e,t,o,r,n);return i.length>this[s]?(this[p]&&this[p](e,t),!1):(this[c]+=i.length,this[h].unshift(i),this[m].set(e,this[h].head),F(this),!0)},g.prototype.has=function(e){return!!this[m].has(e)&&!E(this,this[m].get(e).value)},g.prototype.get=function(e){return y(this,e,!0)},g.prototype.peek=function(e){return y(this,e,!1)},g.prototype.pop=function(){var e=this[h].tail;return e?(C(this,e),e.value):null},g.prototype.del=function(e){C(this,this[m].get(e))},g.prototype.load=function(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{var a=o-t;a>0&&this.set(r.k,r.v,a)}}},g.prototype.prune=function(){var e=this;this[m].forEach((function(t,n){y(e,n,!1)}))}}).call(this,n(114))},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){"use strict";var r;n.r(t),n.d(t,"PresenceStatus",(function(){return r})),function(e){e.OFFLINE="OFFLINE",e.ONLINE="ONLINE"}(r||(r={}))},,,,,function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(662),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default},function(e,t,n){var r=n(43),o=n(672),a=n(437),i=Math.max,s=Math.min;e.exports=function(e,t,n){var c,u,l,d,p,f,h=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=c,r=u;return c=u=void 0,h=t,d=e.apply(r,n)}function y(e){return h=e,p=setTimeout(F,t),m?b(e):d}function E(e){var n=e-f;return void 0===f||n>=t||n<0||v&&e-h>=l}function F(){var e=o();if(E(e))return C(e);p=setTimeout(F,function(e){var n=t-(e-f);return v?s(n,l-(e-h)):n}(e))}function C(e){return p=void 0,g&&c?b(e):(c=u=void 0,d)}function A(){var e=o(),n=E(e);if(c=arguments,u=this,f=e,n){if(void 0===p)return y(f);if(v)return clearTimeout(p),p=setTimeout(F,t),b(f)}return void 0===p&&(p=setTimeout(F,t)),d}return t=a(t)||0,r(n)&&(m=!!n.leading,l=(v="maxWait"in n)?i(a(n.maxWait)||0,t):l,g="trailing"in n?!!n.trailing:g),A.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=f=u=p=void 0},A.flush=function(){return void 0===p?d:C(o())},A}},function(e,t,n){"use strict";n(54),n(55),n(11);var r=function(){};t.a=function(e){return r(e)}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";e.exports=function(e){if(e=String(e||""),o.test(e))return"rtl";if(a.test(e))return"ltr";return"neutral"};var r="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",o=new RegExp("^[^"+r+"]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]"),a=new RegExp("^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*["+r+"]")},function(e,t,n){"use strict";(function(e){var r=n(0),o=n.n(r),a=n(546),i=n(2),s=n.n(i),c=n(100);function u(e,t){var n,r=(n=e,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(n):"px"===n.slice(-2)?parseFloat(n.slice(0,-2)):void 0);if("number"==typeof r)return r;var o=function(e){if("%"===e.slice(-1))return parseFloat(e.slice(0,-1))/100}(e);return"number"==typeof o?o*t:void 0}var l="above",d="inside",p="below",f="invisible";function h(e){if(e)try{o.a.Children.only(e)}catch(e){throw new Error(" expected to receive a single React element child.\n\nSee https://goo.gl/LrBNgw for more info.")}}function m(e){return"string"==typeof e.type}var v=void 0,g=[];function b(e){g.push(e),v||(v=setTimeout((function(){v=null;for(var e=void 0;e=g.shift();)e()}),0));var t=!0;return function(){if(t){t=!1;var n=g.indexOf(e);-1!==n&&(g.splice(n,1),!g.length&&v&&(clearTimeout(v),v=null))}}}var y=function(){function e(e,t){for(var n=0;n needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g.
) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.")}(e.props.children,e._ref),e._handleScroll=e._handleScroll.bind(e),e.scrollableAncestor=e._findScrollableAncestor(),e.scrollEventListenerUnsubscribe=Object(a.a)(e.scrollableAncestor,"scroll",e._handleScroll,{passive:!0}),e.resizeEventListenerUnsubscribe=Object(a.a)(window,"resize",e._handleScroll,{passive:!0}),e._handleScroll(null)})))}},{key:"componentWillReceiveProps",value:function(e){h(e.children)}},{key:"componentDidUpdate",value:function(){var e=this;n.getWindow()&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=b((function(){e.cancelOnNextTick=null,e._handleScroll(null)}))))}},{key:"componentWillUnmount",value:function(){n.getWindow()&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())}},{key:"_findScrollableAncestor",value:function(){var t=this.props,n=t.horizontal,r=t.scrollableAncestor;if(r)return function(t){return"window"===t?e.window:t}(r);for(var o=this._ref;o.parentNode;){if((o=o.parentNode)===document.body)return window;var a=window.getComputedStyle(o),i=(n?a.getPropertyValue("overflow-x"):a.getPropertyValue("overflow-y"))||a.getPropertyValue("overflow");if("auto"===i||"scroll"===i)return o}return window}},{key:"_handleScroll",value:function(e){if(this._ref){var t=this._getBounds(),n=function(e){return e.viewportBottom-e.viewportTop==0?f:e.viewportTop<=e.waypointTop&&e.waypointTop<=e.viewportBottom||e.viewportTop<=e.waypointBottom&&e.waypointBottom<=e.viewportBottom||e.waypointTop<=e.viewportTop&&e.viewportBottom<=e.waypointBottom?d:e.viewportBottom1&&void 0!==arguments[1]?arguments[1]:5,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return new Promise((function(o,a){t().then(o).catch((function(i){setTimeout((function(){1!==n?e(t,n-1,r).then(o,a):a(i)}),r)}))}))}((function(){return n.e(35).then(n.bind(null,826))}))})),P=function(e){var t=B(e),n=l.a.memo(l.a.forwardRef((function(t,n){var r=t.ellipsis,a=i()(t,["ellipsis"]),s=T(a,k);return r?l.a.createElement(I,{ref:n,fallback:l.a.createElement(e,o()({style:R,"data-fallback":!0,ref:n},s)),Component:e,props:a}):l.a.createElement(e,o()({ref:n},s))})));return n.displayName=t,n};P.propTypes={ellipsis:d.bool,appendTo:Object(d.oneOfType)([Object(d.oneOf)(["window","scrollParent","viewport","parent"]),d.element,d.func]),flip:d.bool,fixed:d.bool,placement:d.string,timeout:d.number,maxWidth:Object(d.oneOfType)([d.string,d.number]),zIndex:d.number,hideDelay:d.number,showDelay:d.number,showTooltip:d.bool};t.a=P},function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"MKfU-",srOnly:"MKfU-",chatRoom:"fmOgX",widget:"KdL7Z",hidden:"_2P3Pr","rotate-ltr":"d5U8T",rotateLtr:"d5U8T","rotate-rtl":"puISN",rotateRtl:"puISN"}},function(e,t,n){"use strict";var r=n(569),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,s=Object.defineProperty,c=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),u=function(e,t,n,r){var o;(!(t in e)||"function"==typeof(o=r)&&"[object Function]"===a.call(o)&&r())&&(c?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s2&&void 0!==arguments[2]?arguments[2]:{};n=n||(0,o.getHost)(),c=u.endpoint||c,t._=""+(new Date).getTime()+a++,t.ms=Math.round((0,r.now)());var l="//"+n+"/"+c;return Object.keys(t).reduce((function(e,n){return i(e,n,t[n])}),l)},t.guid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))};var r=n(206),o=n(131),a=0;function i(e,t,n){var r=-1===e.indexOf("?")?"?":"&";return""+e+r+encodeURIComponent(t)+"="+encodeURIComponent(n)}},function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return Promise.all(this._publishers.map((function(r){var o=Object.assign({},e);return Promise.resolve().then((function(){return r(o,Object.assign({},t._context,n))})).catch((function(e){return t._onPublisherFailHandler(e,{publisherName:r.name})}))}))).then((function(){}))}},{key:"_extractEventAndContext",value:function(e,t,n){var r=void 0,a={};if("string"!=typeof e)r=e,a=t||a;else{if(!(r=this._events[e]))throw new o.AssertionError("Event with key '"+e+"' not found in event map.");t&&(r=Object.assign({},r,t),a=n||a)}return{event:r,context:a}}},{key:"_initBuffer",value:function(e){var t=this,n=!0===e?300:e;return this._buffer||(this._buffer=new l(n).onFlush((function(n){var r=s(t._defaults,(function(e){return"function"!=typeof e}));return n.g=r,t._send(n,{useBatch:e})})))}},{key:"_handleDefaultsError",value:function(e){return this._defaultContinueOnFail?(u.error(e),null):Promise.reject(e)}},{key:"_getDefaults",value:function(){var e=this;if(!this._defaults)return Promise.resolve({});var t=i(this._defaults,(function(t,n){if("function"==typeof t)try{t=t()}catch(t){return e._handleDefaultsError(t)}return t&&"function"!=typeof t.then?t:c.timedPromise(t,{message:"Cannot get default value '"+n+" for BI Event'",timeout:e._defaultValueTimeout}).catch((function(t){return e._handleDefaultsError(t)}))}));return c.allAsObject(t)}}],[{key:"_defaultPublisherFailHandler",value:function(e,t){return t.publisherName}}]),e}();e.exports=d},function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;no?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r3)&&(t=2);var n=e.split(" ").map((function(e){return H.splitGraphemes(e)[0]}));return 1===t&&n.length>1&&(n=[n[0]]),2===t&&n.length>2&&(n=[n[0],n[n.length-1]]),3===t&&n.length>3&&(n=[n[0],n[1],n[n.length-1]]),n.join("").toUpperCase()}(n,this.props.initialsLimit);return o.createElement("div",{className:L.a.content,"data-hook":"text-container"},a);case"placeholder":var i=this.props.placeholder;return null===i?null:o.cloneElement(i,{className:_(i.props.className,L.a.content)});case"image":var s=this.props.imgProps,c=s.alt,u=s.className,l=Object(r.__rest)(s,["alt","className"]);return o.createElement("img",Object(r.__assign)({className:_(L.a.content,u),alt:c||this.props.name},l));default:return null}},t.displayName="Avatar",t.defaultProps={placeholder:null},t}(o.Component),z=Object(M.a)(U),W=n(105),G=n.n(W),V=a.a.createElement("svg",{className:G.a.placeholder,viewBox:"0 0 48 48"},a.a.createElement("path",{d:"M24,12 C28.418278,12 32,15.581722 32,20 L32,22 C32,26.418278 28.418278,30 24,30 C19.581722,30 16,26.418278 16,22 L16,20 C16,15.581722 19.581722,12 24,12 Z M24,32 C33.8734019,32 42.1092023,38.8710577 44,48 L4,48 C5.89079771,38.8710577 14.1265981,32 24,32 Z"})),Y=a.a.createElement("svg",{className:G.a.placeholder,viewBox:"0 0 48 48"},a.a.createElement("path",{d:"M21,13.387 C21,12.705 21.669,12.223 22.316,12.438 L22.316,12.438 L34.632,16.544 C35.449,16.816 36,17.581 36,18.441 L36,18.441 L36,34 L38,34 L38,36 L10,36 L10,34 L12,34 L12,21.659 C12,21.259 12.238,20.898 12.606,20.74 L12.606,20.74 L17.606,18.597 C18.266,18.314 19,18.799 19,19.517 L19,19.517 L19,34 L21,34 Z M32,29 L25,29 L25,31 L32,31 L32,29 Z M32,24 L25,24 L25,26 L32,26 L32,24 Z M32,19 L25,19 L25,21 L32,21 L32,19 Z"})),q=a.a.createElement("svg",{className:G.a.placeholder,viewBox:"0 0 24 24"},a.a.createElement("path",{d:"M18,17 L18,8.754 C18,8.308 17.704,7.916 17.275,7.793 L11.637,6.182 C11.318,6.091 11,6.331 11,6.663 L11,17 L9,17 L9,8.934 C9,8.535 8.555,8.297 8.223,8.518 L6.223,9.852 C6.083,9.944 6,10.101 6,10.268 L6,17 L5,17 L5,18 L6,18 L9,18 L11,18 L18,18 L19,18 L19,17 L18,17 Z"})),K={size90:{circle:V,square:Y},size72:{circle:V,square:Y},size60:{circle:V,square:Y},size48:{circle:V,square:Y},size36:{circle:V,square:Y},size30:{circle:V,square:Y},size24:{circle:V,square:q},size18:{circle:V,square:q}};function $(e){if(e)return e[0].toUpperCase()+e.substring(1)}var Z=function(e){return e.split("").reduce((function(e,t){return e+t.charCodeAt()}),0)},Q=function(e){if(e){var t=Z(e)%S.length;return S[t]}},X=n(449);function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t-1&&Object(B.a)('Avatar component prop "color" with the value '.concat(i," is deprecated, and will be removed in next major release, please use instead one of these color: [").concat(S.toString(),"]"));var C=i||Q(f||m),A=function(e){return Number(e.substring(4))}(t),_=(!g||F)&&A>36,O=_&&!o&&r,w=_&&o;return a.a.createElement("div",{"data-hook":l,className:D()(d,G.a.externalContainer)},a.a.createElement("div",s()({"data-hook":j,onMouseEnter:this._onMouseEnter,onMouseLeave:this._onMouseLeave},G()("avatarContainer",{shape:p,size:t,indication:o||r,presence:n,presenceType:n,clickable:!!v,fade:E,hasText:!!f}),{"data-madefor":Object(X.a)()}),a.a.createElement("div",{className:G.a.coreAvatar},a.a.createElement(z,s()({},ee({},b,{placeholder:h||a.a.createElement(oe,{shape:p,size:t}),text:f,name:m,onClick:v,initialsLimit:A<30?1:void 0,"data-hook":P}),{className:D()(G.a.avatar,C&&G.a["color".concat($(C))])}))),n&&a.a.createElement("div",{className:G.a.presence}),O&&a.a.createElement("div",{className:G.a.indication},a.a.createElement(x.a,{className:G.a.iconButtonShadow,dataHook:R,onClick:c,skin:"inverted",shape:p,size:A>60?"small":"tiny"},r)),w&&a.a.createElement("div",{className:G.a.indication,"data-hook":I,onClick:c},o)))}}]),r}(a.a.PureComponent),oe=function(e){var t=e.shape,n=e.size;return t!==T?K[n][k]:K[n][T]},ae={name:w.a.string,text:w.a.string,placeholder:w.a.node,imgProps:w.a.object,ariaLabel:w.a.string,title:w.a.string,onClick:w.a.func};re.displayName="Avatar",re.propTypes=ee({},ae,{size:w.a.oneOf(["size90","size72","size60","size48","size36","size30","size24","size18"]),color:w.a.oneOf(["A1","A2","A3","A4","A5","A6"]),shape:w.a.oneOf(["circle","square"]),className:w.a.string,dataHook:w.a.string,presence:w.a.oneOf(["online","offline","busy"]),indication:w.a.node,customIndication:w.a.node,onIndicationClick:w.a.func,showIndicationOnHover:w.a.bool}),re.defaultProps={size:"size48",shape:"circle",showIndicationOnHover:!1};var ie=re;t.a=function(e){var t=e.name,n=e.text,o=e.placeholder,i=e.imgProps,s=e.title,c=Object(r.__rest)(e,["name","text","placeholder","imgProps","title"]),u=null==i?void 0:i.src,l=function(e){if(e)if("undefined"!=typeof URL)try{var t=new URL(e);if(-1!==t.host.indexOf("gravatar.com"))return t.searchParams.set("d","404"),t.toString()}catch(t){return console.warn("Avatar Wrapper: could not parse avatar url",e),null}else if(-1!==e.indexOf("gravatar.com"))return e.replace("d=blank","d=404");return null}(u),d=u&&!l;return a.a.createElement(ie,Object(r.__assign)({imgProps:Object(r.__assign)(Object(r.__assign)({},i),{src:l||u}),name:d?void 0:t,text:d?void 0:n,placeholder:d?a.a.createElement(a.a.Fragment,null):o,title:d?s||n||t:void 0},c))}},function(e,t,n){"use strict";var r=n(1),o=function(e){function t(n,r){var o,a,i,s,c,u=e.call(this,r)||this;Object.setPrototypeOf(u,t.prototype),u._error=n,u.cause=n,u._type=r;var l=(null===(o=n.config)||void 0===o?void 0:o.url)||(null===(a=n.request)||void 0===a?void 0:a.url)||(null===(s=null===(i=null==n?void 0:n.response)||void 0===i?void 0:i.config)||void 0===s?void 0:s.url),d=l&&l.split("?")[0],p=d?d.replace(/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/,"{id}"):"General",f=null===(c=null==n?void 0:n.response)||void 0===c?void 0:c.status;return u.message="Chat SDK Error of name '"+p+"'"+(f?" "+f:""),u._fingerprint=u.message,u}return Object(r.__extends)(t,e),Object.defineProperty(t.prototype,"isHttpError",{get:function(){return this._type===t.TYPES.HTTP_REQUEST},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fingerprint",{get:function(){return this._fingerprint},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"httpError",{get:function(){if(this.isHttpError){if(this._error.response){var e=this._error.response,t=e.config,n=e.data,r=e.status;return{method:t&&t.method.toUpperCase(),url:null==t?void 0:t.url,status:r,data:n,error:this._error}}if(this._error.request){var o=this._error,a=(t=o.config,o.request);return{method:(null==t?void 0:t.method)&&t.method.toUpperCase(),url:null==t?void 0:t.url,status:0,data:a,error:this._error}}return{method:(null==(t=this._error.config)?void 0:t.method)&&t.method.toUpperCase(),url:null==t?void 0:t.url,status:0,data:"no response/request",error:this._error}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"is401Error",{get:function(){return this.isHttpError&&401===this.httpError.status},enumerable:!0,configurable:!0}),Object.defineProperty(t,"TYPES",{get:function(){return{HTTP_REQUEST:"http-error"}},enumerable:!0,configurable:!0}),t}(Error);t.a=o},function(e,t,n){var r=n(132),o=n(79),a=n(660),i=n(249);e.exports=function(e,t){if(null==e)return{};var n=r(i(e),(function(e){return[e]}));return t=o(t),a(e,n,(function(e,n){return t(e,n[0])}))}},function(e,t,n){"use strict";var r=n(1),o=n(0),a=n.n(o),i=n(423),s=n.n(i),c=n(5),u=n.n(c),l=function(e){var t=e.size,n=Object(r.__rest)(e,["size"]);return o.createElement("svg",Object(r.__assign)({viewBox:"0 0 23 23.36",fill:"currentColor",width:t||"1em",height:t||"1em"},n),o.createElement("g",{id:"Layer_2"},o.createElement("path",{d:"M22.81,9.41a11.49,11.49,0,1,0-7.47,12.93.47.47,0,0,1,.3,0l3.05,1a1,1,0,0,0,1.3-1V19.42a.48.48,0,0,1,.13-.32,11.63,11.63,0,0,0,1.3-1.79A11.47,11.47,0,0,0,22.81,9.41ZM7.5,12.5a1,1,0,1,1,1-1A1,1,0,0,1,7.5,12.5Zm4,0a1,1,0,1,1,1-1A1,1,0,0,1,11.5,12.5Zm4,0a1,1,0,1,1,1-1A1,1,0,0,1,15.5,12.5Z",id:"Layer_1-2"})))};l.displayName="inboxLogo";var d=l,p=n(172),f=n.n(p),h=n(7),m=n.n(h),v=n(24),g=n(59),b=Object(v.a)(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.theme,r=t.shouldApplyCollapseAnimation,o=t.onlineTitle,i={backgroundColor:u()(n,"header.background","rgb(51, 204, 238)"),color:u()(n,"header.textColor","#ffffff")},s=m()(((e={})[f.a.wrapper]=!0,e[f.a.shouldApplyCollapseAnimation]=r,e));return a.a.createElement("div",{"data-hook":"rounded-header",className:s,onClick:g.a.expand,style:i},a.a.createElement("button",{className:f.a.expandButton,"data-hook":"expand-button","aria-label":o},a.a.createElement(d,{size:"26px"})))},t}(o.Component)),y=function(e){var t=e.size,n=Object(r.__rest)(e,["size"]);return o.createElement("svg",Object(r.__assign)({viewBox:"0 0 84 81",fill:"currentColor",width:t||"1em",height:t||"1em"},n),o.createElement("g",{id:"Layer_2"},o.createElement("g",{id:"Layer_1-2"},o.createElement("g",{id:"noun_chat_860090",fill:"currentColor",fillRule:"nonzero"},o.createElement("path",{d:"M72.2,0.5 L11.8,0.5 C5.6,0.5 0.6,5.5 0.6,11.7 L0.6,52.4 C0.6,58.6 5.6,63.6 11.8,63.6 L16.4,63.6 L16.4,80.1 L36,63.6 L72.3,63.6 C78.5,63.6 83.5,58.6 83.5,52.4 L83.5,11.7 C83.4,5.5 78.4,0.5 72.2,0.5 Z",id:"Path"})))))};y.displayName="mobileCta";var E=y,F=n(171),C=n.n(F),A=Object(v.a)(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.theme,r=t.shouldApplyCollapseAnimation,o=t.onlineTitle,i={backgroundColor:u()(n,"header.background","rgb(51, 204, 238)"),color:u()(n,"header.textColor","#ffffff")},s=m()(((e={})[C.a.wrapper]=!0,e[C.a.shouldApplyCollapseAnimation]=r,e));return a.a.createElement("div",{"data-hook":"mobile-collapsed-header",className:s,onClick:g.a.expand,style:i},a.a.createElement("button",{className:C.a.expandButton,"data-hook":"expand-button","aria-label":o},a.a.createElement(E,{size:"26px"})))},t}(o.Component)),_=n(9),D=function(e){var t=e.size,n=Object(r.__rest)(e,["size"]);return o.createElement("svg",Object(r.__assign)({viewBox:"0 0 14 8",fill:"currentColor",width:t||"14",height:t||"8"},n),o.createElement("g",{id:"Page-1",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},o.createElement("g",{id:"3",transform:"translate(-343 -81)",fill:"currentColor"},o.createElement("path",{id:"drop",d:"M355.895556 81L350 86.8195777 344.104444 81 343 82.0886756 350 89 357 82.0886756z"}))))};D.displayName="arrow";var O=D,w=function(e){var t=e.size,n=Object(r.__rest)(e,["size"]);return o.createElement("svg",Object(r.__assign)({viewBox:"-2.4 21.6 9.7 9.7",fill:"currentColor",width:t||"1em",height:t||"1em"},n),o.createElement("path",{d:"M7.3 22.4l-.7-.8-4.1 4.2-4.1-4.2-.8.8 4.2 4.1-4.2 4.1.8.7 4.1-4.1 4.1 4.1.7-.7-4.1-4.1z",fill:"currentColor",className:"st0"}))};w.displayName="cross";var x=w,B=n(34),S=n.n(B),k=n(21),T=n.n(k),R=n(72),I=n(443),P=n(23),j=function(e){var t=e.size,n=Object(r.__rest)(e,["size"]);return o.createElement("svg",Object(r.__assign)({viewBox:"0 0 11 14",fill:"currentColor",width:t||"11",height:t||"14"},n),o.createElement("g",{id:"Typically-replies",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},o.createElement("g",{id:"Typically-replies---Chat-w-Business-Content",transform:"translate(-137 -361)",fill:"currentColor",fillRule:"nonzero"},o.createElement("g",{id:"iconmonstr-connection-1-copy-6",transform:"translate(137 361)"},o.createElement("path",{id:"Path",d:"M3.3 14L4.95 8.75 0 8.75 7.7 0 6.05 5.25 11 5.25z"})))))};j.displayName="Lightning";var M=j,N=function(e){function t(t){var n=e.call(this,t)||this;return n.onlineMessage=null,n.isAvailable=function(){return n.props.availabilityStatus===I.b.Available},n.availabilityClass=function(){return n.isAvailable()?T.a.availabilityAvailable:T.a.availabilityAway},n.hasAvatar=function(){return!Object(R.e)(n.props.avatar)},n.headerAvatar=function(){var e,t=n.props.isHeaderFolded;return a.a.createElement("div",{className:m()(T.a.avatar,(e={},e[T.a.empty]=!n.hasAvatar(),e)),"data-hook":"header-avatar"},n.avatar(),n.withAvailabilityIndication()&&t&&n.hasAvatar()&&n.availabilityPimple())},n.availabilityPimple=function(){var e=n.props.backgroundColor;return a.a.createElement("span",{"data-hook":"availability-indication-pimple",className:m()(T.a.availabilityPimple,n.availabilityClass()),style:{borderColor:e}})},n.onProfileClick=function(e){var t=n.props,r=t.onProfileClick,o=t.isHeaderFolded;r&&!o&&(e.stopPropagation(),r())},n.avatar=function(){var e=n.props.avatar;return Object(R.d)(e)?a.a.createElement("img",{"data-hook":"header-custom-image",className:T.a.headerCustomImage,onClick:n.onProfileClick,alt:"header custom image",src:e.imgUrl}):Object(R.f)(e)?a.a.createElement("div",{"data-hook":"header-default-image",onClick:n.onProfileClick,className:T.a.headerCustomImage},e.svg):a.a.createElement("span",{"data-hook":"header-no-avatar",className:T.a.noAvatar})},n.headerTitle=function(){var e=n.props.onlineTitle;return a.a.createElement("h2",{"data-hook":"header-title",id:"header-title",onClick:n.onProfileClick,className:T.a.headerTitle},e)},n.headerSubtitle=function(){var e,t=n.props,r=t.isHeaderFolded,o=t.t,i=!r||!n.hasAvatar(),s=n.isAvailable()?o("header.availability.available"):o("header.availability.away");return a.a.createElement("div",{className:T.a.headerSubtitle,"data-hook":"header-subtitle"},i&&n.availabilityPimple(),a.a.createElement("span",{"data-hook":"availability-indication-header",className:m()(T.a.availabilityText,(e={},e[T.a.withPimple]=i,e))},s))},n.typicallyReplies=function(){var e=n.props,t=e.typicallyReplies;if(e.availabilityStatus===I.b.Available&&t&&t.isEnabled){var r=t&&t.period||P.e.RESPONSE_TIME.ASAP,o=P.e.getValueFor(r);return a.a.createElement("span",{className:T.a.typicallyRepliesText,"data-hook":"typically-replies"},a.a.createElement(M,{className:T.a.lightningIcon}),o)}},n.typicallyRepliesTitle=function(){var e=n.props.isHeaderFolded,t=n.typicallyReplies();if(e&&t)return a.a.createElement("div",{className:T.a.headerSubtitle,"data-hook":"header-subtitle"},t)},n.headerMessage=function(){var e=n.props.onlineMessage;return a.a.createElement("span",{"data-hook":"header-message",className:T.a.headerMessage,ref:function(e){return n.onlineMessage=e},onMouseOver:n.handleOverflowTooltip,title:n.state.onlineMessageOverflow?e:""},e)},n.handleOverflowTooltip=function(){return n.setState({onlineMessageOverflow:n.isOverFlow()})},n.isOverFlow=function(){return!!n.onlineMessage&&n.onlineMessage.clientHeight>18&63)+l.charAt(o>>12&63)+l.charAt(o>>6&63)+l.charAt(63&o);return 2==a?(t=e.charCodeAt(s)<<8,n=e.charCodeAt(++s),i+=l.charAt((o=t+n)>>10)+l.charAt(o>>4&63)+l.charAt(o<<2&63)+"="):1==a&&(o=e.charCodeAt(s),i+=l.charAt(o>>2)+l.charAt(o<<4&63)+"=="),i},decode:function(e){var t=(e=String(e).replace(d,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,o=0,a="",i=-1;++i>(-2*o&6)));return a},version:"0.1.0"};void 0===(o=function(){return p}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(109)(e),n(74))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(715),s=n(717),c=function(e){function t(t){var n=e.call(this,t)||this;return n.flagImageAsBroken=function(){n.setState({isImageBroken:!0})},n.state={isImageBroken:!1},n}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.initials,n=e.pictureUrl,r=e.badgeClassName,o=e.badge,c=e.hasShadow,u=e.size,l=u+"px",d={height:l,width:l,lineHeight:l,fontSize:u/3+"px",flexShrink:0},p=c?s.avatarInPanel:s.avatar,f=n&&!this.state.isImageBroken?a.createElement("img",{className:s.avatarImage,"data-hook":"avatar-image",src:n,onError:this.flagImageAsBroken}):null,h=f?{backgroundColor:"transparent"}:{backgroundColor:i.getColorByInitials(t)},m=null;if(o||r){var v=19*u/40,g=""+s.badge,b={height:v,width:v};m=r?a.createElement("div",{"data-hook":"badge",className:g+" "+r,style:b}):a.createElement("img",{"data-hook":"badge",className:""+g,style:b,src:o})}var y=a.createElement("div",{className:p,"data-hook":"avatar-initials",style:h},a.createElement("span",{className:s.avatarInitials},t),f,m),E=a.createElement("div",{"data-hook":"empty-avatar",className:s.avatarEmpty},f,m);return a.createElement("div",{"data-hook":"avatar-container",style:d},t?y:E)},t.defaultProps={size:50,hasShadow:!1},t}(a.Component);t.ContactAvatar=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r,o=n(812);function a(e){return e.group===o.LabelGroup.ASSIGNEE&&e.type===o.LabelType.USER_ID}!function(e){e.UNASSIGNED="10e089f2-1c4f-4db4-b1c4-b8ce552d120f"}(r||(r={}))},function(e,t,n){"use strict";var r,o=n(1),a=n(0),i=n.n(a),s=n(17),c=new(function(){function e(){this.files={},this.library={}}return e.prototype.add=function(e,t){this.files[e]=t},e.prototype.get=function(e){return this.library[e]},e.prototype.play=function(e){if(!this.files[e])throw new Error("please call add() before trying to play an audio");this.library[e]||this.loadAudio(e,this.files[e]).catch((function(e){return console.log(e)})),this.get(e).then((function(e){return e.play()})).catch((function(){}))},e.prototype.loadAudio=function(e,t){var n=this;return this.library[e]=new Promise((function(r,a){return Object(o.__awaiter)(n,void 0,void 0,(function(){var n,i,s=this;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return i=Audio.bind,[4,t()];case 1:return(n=new(i.apply(Audio,[void 0,o.sent()]))).addEventListener("loadeddata",(function(){r(n)})),n.addEventListener("error",(function(t){delete s.library[e],a(t)})),[2]}}))}))}))},e}()),u=n(126),l=n.n(u),d={send:function(){return n.e(49).then(n.t.bind(null,822,7)).then((function(e){return e.default}))},receive:function(){return n.e(48).then(n.t.bind(null,823,7)).then((function(e){return e.default}))},push:function(){return n.e(47).then(n.t.bind(null,824,7)).then((function(e){return e.default}))}};!function(e){e.MESSAGE_SENT="message-sent",e.MESSAGE_RECEIVED="message-received",e.MESSAGE_RECEIVED_INACTIVE="message-received-inactive"}(r||(r={}));var p=function(e){var t,n=this,o=void 0===e?{}:e,a=o.configuration,i=o.isChatActivePredicate;this._isChatActivePredicate=function(){return!0},this._configuration=((t={})[r.MESSAGE_SENT]={mute:!1,sound:d.send},t[r.MESSAGE_RECEIVED]={mute:!1,sound:d.receive},t[r.MESSAGE_RECEIVED_INACTIVE]={mute:!1,sound:d.push},t),this.setConfiguration=function(e){var t=e.configuration;n._configuration=t,c.add(r.MESSAGE_SENT,t[r.MESSAGE_SENT].sound),c.add(r.MESSAGE_RECEIVED,t[r.MESSAGE_RECEIVED].sound),c.add(r.MESSAGE_RECEIVED_INACTIVE,t[r.MESSAGE_RECEIVED_INACTIVE].sound)},this.removeSoundListeners=function(){s.d.removeListener(s.d.CHAT_EVENTS.NEW_REALTIME_MESSAGE,n.handleMessageReceivedSound),s.d.removeListener(s.d.CHAT_EVENTS.MESSAGE_SENT,n.handleMessageSentSound)},this.addSoundListeners=function(){s.d.addListener(s.d.CHAT_EVENTS.NEW_REALTIME_MESSAGE,n.handleMessageReceivedSound),s.d.addListener(s.d.CHAT_EVENTS.MESSAGE_SENT,n.handleMessageSentSound)},this.handleMessageSentSound=function(){n._configuration[r.MESSAGE_SENT].mute||c.play(r.MESSAGE_SENT)},this.handleMessageReceivedSound=function(e){if(!e.isSilent){var t=n._isChatActivePredicate();(t?n._configuration[r.MESSAGE_RECEIVED].mute:n._configuration[r.MESSAGE_RECEIVED_INACTIVE].mute)||c.play(t?r.MESSAGE_RECEIVED:r.MESSAGE_RECEIVED_INACTIVE)}},this.setConfiguration({configuration:l()(this._configuration,a)}),this._isChatActivePredicate=i||this._isChatActivePredicate,this.addSoundListeners()},f=n(228),h=n.n(f);t.a=function(e){var t=(void 0===e?{}:e).isChatActivePredicate;return function(e){return function(n){function r(){var e=null!==n&&n.apply(this,arguments)||this;return e.wrappedComponentInstance=null,e._isChatActivePredicate=t&&function(){return t(e.wrappedComponentInstance)},e.configureSoundManager=function(){var t=e.props.soundConfiguration;e._soundManager&&e._soundManager.removeSoundListeners(),e._soundManager=new p({configuration:t,isChatActivePredicate:e._isChatActivePredicate})},e.propsWithoutSoundConfiguration=function(){return h()(e.props,"soundConfiguration")},e}return Object(o.__extends)(r,n),r.prototype.componentDidMount=function(){this.configureSoundManager()},r.prototype.componentDidUpdate=function(e){e.soundConfiguration!==this.props.soundConfiguration&&this.configureSoundManager()},r.prototype.componentWillUnmount=function(){this._soundManager.removeSoundListeners()},r.prototype.render=function(){var t=this;return i.a.createElement(e,Object(o.__assign)({ref:function(e){return t.wrappedComponentInstance=e}},this.propsWithoutSoundConfiguration()))},r}(a.Component)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o="~";function a(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(o=!1)),s.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var a=0,i=r.length,s=new Array(i);a=m)return e;var g=n-c(f);if(g<1)return f;var b=v?o(v,0,g).join(""):e.slice(0,g);if(void 0===h)return b+f;if(v&&(g+=b.length-g),s(h)){if(e.slice(g).search(h)){var y,E=b;for(h.global||(h=RegExp(h.source,d(p.exec(h))+"g")),h.lastIndex=0;y=h.exec(E);)var F=y.index;b=b.slice(0,void 0===F?g:F)}}else if(e.indexOf(r(h),g)!=g){var C=b.lastIndexOf(h);C>-1&&(b=b.slice(0,C))}return b+f}},function(e,t,n){e.exports={root:"_3e3qI"}},,,,function(e,t,n){e.exports={branding:"_1Yj9G",upgradePopup:"_14lxB",upgradePopupText:"_1ifTg",upgradePopupButton:"_31aZh"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n.stylable.create("root","avatar3020217949",{root:"avatar3020217949--root",content:"avatar3020217949--content"},"",2,"avatar3020217949"),n.stylable.$.register(t.default)},function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"grejv",srOnly:"grejv",groupChatTypingWrapper:"_1U9Gb",typingAvatar:"_1pJBL",typingAvatarPlus:"_28i2E",groupChatTypingText:"_16jmQ","rotate-ltr":"_33v1Z",rotateLtr:"_33v1Z","rotate-rtl":"_1yrRp",rotateRtl:"_1yrRp"}},function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"_1HzQz",srOnly:"_1HzQz",inputButton:"_3eVAo",disabled:"_3S_V2",inputButtons:"_2TRk4",fullApp:"_13vQp","rotate-ltr":"_3He-1",rotateLtr:"_3He-1","rotate-rtl":"_2VgMl",rotateRtl:"_2VgMl"}},,,,,,function(e,t,n){var r=n(485);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(43),o=n(95),a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(118),o=n(493),a=n(248),i=n(494),s=n(495),c=n(275),u=n(250),l=n(496),d=n(497),p=n(218),f=n(249),h=n(92),m=n(498),v=n(499),g=n(277),b=n(30),y=n(87),E=n(504),F=n(43),C=n(506),A=n(81),_={};_["[object Arguments]"]=_["[object Array]"]=_["[object ArrayBuffer]"]=_["[object DataView]"]=_["[object Boolean]"]=_["[object Date]"]=_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Map]"]=_["[object Number]"]=_["[object Object]"]=_["[object RegExp]"]=_["[object Set]"]=_["[object String]"]=_["[object Symbol]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_["[object Error]"]=_["[object Function]"]=_["[object WeakMap]"]=!1,e.exports=function e(t,n,D,O,w,x){var B,S=1&n,k=2&n,T=4&n;if(D&&(B=w?D(t,O,w,x):D(t)),void 0!==B)return B;if(!F(t))return t;var R=b(t);if(R){if(B=m(t),!S)return u(t,B)}else{var I=h(t),P="[object Function]"==I||"[object GeneratorFunction]"==I;if(y(t))return c(t,S);if("[object Object]"==I||"[object Arguments]"==I||P&&!w){if(B=k||P?{}:g(t),!S)return k?d(t,s(B,t)):l(t,i(B,t))}else{if(!_[I])return w?t:{};B=v(t,I,S)}}x||(x=new r);var j=x.get(t);if(j)return j;x.set(t,B),C(t)?t.forEach((function(r){B.add(e(r,n,D,r,t,x))})):E(t)&&t.forEach((function(r,o){B.set(o,e(r,n,D,o,t,x))}));var M=T?k?f:p:k?keysIn:A,N=R?void 0:M(t);return o(N||t,(function(r,o){N&&(r=t[o=r]),a(B,o,e(r,n,D,o,t,x))})),B}},function(e,t,n){var r=n(93),o=n(253),a=n(508),i=n(82);e.exports=function(e,t){return t=r(t,e),null==(e=a(e,t))||delete e[i(o(t))]}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n.stylable.create("root","Focusable3174625688",{root:"Focusable3174625688--root","focus-box":"Focusable3174625688--focus-box","focus-box-error":"Focusable3174625688--focus-box-error"},".Focusable3174625688--focus-box{outline:0}.Focusable3174625688--focus-box-error{outline:0}",1,"Focusable3174625688"),n.stylable.$.register(t.default)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(1),o=n(0),a=n(616),i=n.n(a),s=n(588),c=n(440),u=n.n(c),l=n(143),d=new(function(){function e(){var e=this;this.method="keyboard",this.subscribers=new Map,this.subscribe=function(t,n){return e.subscribers.set(t,n)},this.unsubscribe=function(t){return e.subscribers.delete(t)},this.isKeyboard=function(){return"keyboard"===e.method},"undefined"!=typeof window&&(window.addEventListener("mousedown",(function(){return e.setMethod("mouse")})),window.addEventListener("keydown",(function(){return e.setMethod("keyboard")})),window.addEventListener("keyup",(function(){return e.setMethod("keyboard")})))}return e.prototype.setMethod=function(e){e!==this.method&&(this.method=e,this.subscribers.forEach((function(e){return e()})))},e}()),p=function(e){var t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.focusedByMouse=!1,e.wrappedComponentRef=null,e.state={focus:!1,focusVisible:!1},e.focus=function(){e.wrappedComponentRef&&e.wrappedComponentRef.focus&&e.wrappedComponentRef.focus()},e.markAsFocused=function(){e.setState({focus:!0,focusVisible:d.isKeyboard()}),d.subscribe(e,(function(){d.isKeyboard()&&e.setState({focusVisible:!0})}))},e.markAsBlurred=function(){d.unsubscribe(e),e.setState({focus:!1,focusVisible:!1})},e.onFocus=function(t){var n=e.props.onFocus;n?n(t,{blur:e.markAsBlurred,focus:e.markAsFocused}):e.markAsFocused()},e.onBlur=function(t){var n=e.props.onBlur;n?n(t,{blur:e.markAsBlurred,focus:e.markAsFocused}):e.markAsBlurred()},e}return Object(r.__extends)(n,t),n.prototype.componentWillUnmount=function(){d.unsubscribe(this)},n.prototype.componentDidUpdate=function(e){var t=this.state.focus||this.state.focusVisible,n=!e.disabled&&this.props.disabled;t&&n&&this.onBlur({})},n.prototype.render=function(){var t=this,n=Object(l.c)(e)?void 0:function(e){return t.wrappedComponentRef=e};return o.createElement(e,Object(r.__assign)({},this.props,{ref:n,focusableOnFocus:this.onFocus,focusableOnBlur:this.onBlur},u()("root",{focus:this.state.focus,"focus-visible":this.state.focusVisible},this.props)))},n.displayName=Object(s.a)(e),n.defaultProps=e.defaultProps,n}(o.Component);return Object(l.c)(e)?t:i()(t,e,{delegateTo:function(e){return e.wrappedComponentRef},hoistStatics:!0})}},function(e,t,n){"use strict";var r=n(1),o=n(0),a=n(2),i=n.n(a),s=n(52),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.getChildContext=function(){var e=this.props.appMode;return{appMode:void 0===e?s.b.FullApp:e}},t.prototype.render=function(){return o.Children.only(this.props.children)},t.childContextTypes={appMode:i.a.oneOf([s.b.FullApp,s.b.Widget])},t}(o.Component);t.a=c},,function(e,t,n){"use strict";(function(e){var r=n(282),o=n(46),a=n.n(o),i=n(643).throttleAdapterEnhancer,s=n(650),c=function(){function t(t){var n=void 0===t?{}:t,r=n.baseUrl,o=void 0===r?"/":r,c=n.retryOnAllErrors,u=void 0!==c&&c,l=n.throttleThreshold,d=void 0===l?0:l;e.__xSessionId&&(a.a.defaults.headers.common.xsessionid=e.__xSessionId),this.baseUrl=o;var p=d?{adapter:i(a.a.defaults.adapter,{threshold:d})}:{};this.axios=a.a.create(p);var f={retries:2,retryDelay:function(){return 500},retryCondition:function(e){return s.isNetworkOrIdempotentRequestError(e)||e.code,!0}};u&&(f.retryCondition=function(){return!0}),o&&/^(http|https)/.test(o)&&s(this.axios,f)}return t.prototype.get=function(e,t){return void 0===t&&(t={}),this._request("get",e,t)},t.prototype.post=function(e,t,n){return void 0===n&&(n={}),this._request("post",e,n,{data:t})},t.prototype.zdelete=function(e,t){return this._request("delete",e,{},{data:t})},t.prototype.put=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this._request("put",e,n,{data:t})},t.prototype._request=function(t,n,o,a){var i=this;void 0===o&&(o={}),void 0===a&&(a={});var s=this._getRequestConfig(t,n,o,a);return e.debug&&console.log("%c "+t+" ","background: #222; color: #eaeaa5"," "+s.url),this.axios.request(s).then((function(e){return i._logResponse(e)})).catch((function(e){throw new r.a(e,r.a.TYPES.HTTP_REQUEST)}))},t.prototype._getRequestConfig=function(e,t,n,r){var o=this._getRelativeUrl(t,n,r),a=this.baseUrl,i=this._getHeaders(n,r);return Object.assign({url:o,method:e,baseURL:a},i?{headers:i}:void 0,r)},t.prototype._logResponse=function(t){return e.debug&&console.log("Response:",t),t},t}();t.a=c}).call(this,n(74))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(224),o=n.n(r);function a(){for(var e=[],t=0;t=1048576?(e/1048576).toFixed(2)+" MB":(e/1024).toFixed(2)+" KB"},t.prototype.render=function(){var e,t=this.props,n=t.messagePart,r=t.appMode,o=t.transit,i=t.theme,s=t.t,c=n.data.type,u=c?S.a.getAttachmentType(c):S.a.attachmentTypes.UNKNOWN,l=o&&o.isPending,p=d()(i,"room.fontFamily");return a.a.createElement("div",{"data-hook":"filebubble-wrapper",className:C()(L.a.wrapper,L.a[r],(e={},e[L.a.loading]=l,e)),style:{fontFamily:p}},a.a.createElement("div",{className:L.a.fileIcon+" "+L.a[u],"data-hook":"file-type","data-file-type":u}),a.a.createElement("div",{className:L.a.fileDetails},a.a.createElement("span",{onClick:this.handleFileDownload,className:L.a.fileName,"data-hook":"file-name"},n.data.fileName),a.a.createElement("span",{className:L.a.fileSize,"data-hook":"file-size"},this.formattedFileSize(n.data.fileSize))),l?a.a.createElement("div",{"data-hook":"uploading-indicator",className:L.a.pending},a.a.createElement("div",{className:L.a.loader})):a.a.createElement("button",{className:L.a.downloadFile,"data-hook":"download-icon",onClick:this.handleFileDownload,tabIndex:-1,"aria-label":s("messages.file-bubble.download-button.aria-label",{fileName:n.data.fileName})},a.a.createElement(W,{width:"15px",height:"16px"})))},t}(a.a.Component),Y=Object(G.c)()(Object(h.a)(Object(u.a)(V))),q=n(237),K=n.n(q),$=n(773),Z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.message,r=t.theme,o=t.eventHooks,i=n.templateData,s=i.text,c=i.image,u=i.link,l=i.icon,p=d()(r,"room.fontFamily"),f=C()(((e={})[K.a.textWrapper]=!0,e[K.a.texthover]=!!u,e)),h=d()(r,["room","icons",l],c);return a.a.createElement("div",{"data-hook":"root",className:K.a.root},a.a.createElement("div",{className:K.a.iconWrapper},h&&a.a.createElement("div",{"data-hook":"minimal-template-icon",style:{backgroundImage:"url("+h+")"},className:K.a.image})),a.a.createElement("div",{"data-hook":"minimal-template-text-wrapper",className:f,style:{fontFamily:p},onClick:u?function(){return e=u,void(o.onCallToActionClick&&o.onCallToActionClick(e));var e}:void 0},a.a.createElement($.a,{weight:"normal",size:"tiny",secondary:!1,light:!1,className:K.a.text,dataHook:"minimal-template-text"},s)))},t}(a.a.PureComponent),Q=Object(u.a)(Z),X=n(202),J=n.n(X),ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.message,n=e.appMode,r=e.theme,o=t.templateData,i=o.title,s=o.text,c=o.fields,u=d()(r,"room.fontFamily"),l=c&&c.map((function(e,t){return a.a.createElement("div",{className:J.a.formTemplateField,"data-hook":"form-template-field",key:t},a.a.createElement("div",{className:J.a.formTemplateFieldName,"data-hook":"form-template-field-name",style:{fontFamily:u}},e.name),a.a.createElement("div",{className:J.a.formTemplateFieldValue,"data-hook":"form-template-field-value",style:{fontFamily:u}},E(e.value)))}));return a.a.createElement("div",{className:J.a.formWrapper+" "+J.a[n]},i&&a.a.createElement("div",{className:J.a.formTemplateTitle,"data-hook":"form-template-title",style:{fontFamily:u}},i),s&&a.a.createElement("div",{className:J.a.formTemplateText,"data-hook":"form-template-text",style:{fontFamily:u}},s),l)},t}(a.a.PureComponent),te=Object(u.a)(Object(h.a)(ee)),ne=n(201),re=n.n(ne),oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.anchorText,n=e.appMode,r=e.theme,o=d()(r,"room.unreadAnchor.color"),i=d()(r,"room.unreadAnchor.strokeColor"),s=i?{backgroundColor:i}:{},c=d()(r,"room.fontFamily");return a.a.createElement("div",{"data-hook":"unread-anchor-wrapper",className:re.a.unreadAnchorBackground+" "+re.a[n],style:{fontFamily:c}},a.a.createElement("span",{style:o?{color:o}:{},"data-hook":"unread-anchor",className:re.a.unreadAnchor},a.a.createElement("span",{style:s,className:re.a.stroke}),t,a.a.createElement("span",{style:s,className:re.a.stroke})))},t}(o.Component),ae=Object(u.a)(Object(h.a)(oe)),ie=n(229),se=n.n(ie),ce=n(583),ue="Automated Message",le=i.Constants.MessageDirections,de=le.Incoming,pe=le.Outgoing,fe=le.System,he=i.Constants.MessageTypes,me=he.Templates,ve=new ce.a,ge=function(){function e(e){var t=e.messages,n=e.userId,r=e.lastReadMessageSequence,o=e.unreadCount,a=e.messageDirectionOverride,i=e.isGroupChat,s=e.appMode;this.messages=ve.addGroups(t),this.isGroupChat=i,this.userId=n,this.lastReadMessageSequence=r,this.unreadCount=o,this.messageDirectionOverride=a,this.appMode=s}return e.prototype.getListWithProps=function(){var e=this.addUnreadToList(this.messages),t=this.enrichWithProps(e);return this.addTimestamps(t)},e.prototype.addTimestamps=function(e){return se()(e.map((function(e){return e.shouldShowTimestamp?[{timestamp:e.formattedTimestamp},e]:e})))},e.prototype.enrichWithProps=function(e){var t=this;return se()(e.map((function(e){if(e.unreadCount)return e;var n=d()(e,"senderDisplayData.name"),o=t.shouldShowSender(e)?n:void 0,a=d()(e,"sender.userId"),i=(e.badges||[]).some((function(e){return e.type===ue||e.text===ue})),s=e.type===me.Custom,c=e.type===me.Minimal,u=(t.appMode===m.b.FullApp||!c)&&!s,l={rawMessage:e,position:t.messageDirectionOverride?t.messageDirectionOverride(e):t.getPosition(e),wrapWithBubble:u,isCustomType:s,formattedTimestamp:e.createdAtFormatted,title:o,senderUserId:a,transit:e.transit,isAutoMessage:i};if(e.type===me.Form){var p=t.messageOnlyWithSharedProps(e,l),f=t.messagePartsWithSharedProps(e,l,{shouldShowTimestamp:!1});return Object(r.__spreadArrays)([p],f)}return e.type===he.Message?t.messagePartsWithSharedProps(e,l):t.messageOnlyWithSharedProps(e,l)})))},e.prototype.messagePartsWithSharedProps=function(e,t,n){var o=ve.getPartsGrouping(e);return e.messageParts.map((function(e,a){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},t),{messagePart:e,groupPosition:o[a].groupPosition,type:e.mimeType,shouldShowTimestamp:"always"===o[a].showSentTime}),n)}))},e.prototype.messageOnlyWithSharedProps=function(e,t){return Object(r.__assign)(Object(r.__assign)({},t),{message:e,groupPosition:e.groupPosition,type:e.type,shouldShowTimestamp:"always"===e.showSentTime})},e.prototype.shouldShowSender=function(e){return this.isGroupChat&&!this.isSentByUser(e)&&ve.isFirstMessage(e)&&e.type===he.Message},e.prototype.addUnreadToList=function(e){var t=this;return se()(e.map((function(e){return t.lastReadMessageSequence&&Number(t.unreadCount)>0&&e.sequence===t.lastReadMessageSequence?[e,{unreadCount:t.unreadCount}]:e})))},e.prototype.isSentByUser=function(e){return d()(e,"sender.userId")===this.userId},e.prototype.getPosition=function(e){return"system"===d()(e,"sender.type")?fe:this.isSentByUser(e)?pe:de},e}(),be=n(73),ye=n.n(be),Ee=n(128),Fe=n.n(Ee),Ce=n(253),Ae=n.n(Ce),_e=n(260),De=n.n(_e),Oe=n(14),we=n.n(Oe),xe=n(618),Be=n.n(xe),Se=n(553),ke=n.n(Se),Te=n(264),Re=n(620),Ie=n.n(Re),Pe=n(451),je=n.n(Pe),Me=function(e){var t;return(t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(n,t),n.prototype.render=function(){var t=this.context.disableAutoMessages,n=Object(r.__assign)(Object(r.__assign)({},this.props),{disableAutoMessages:t});return a.a.createElement(e,Object(r.__assign)({},n))},n}(a.a.Component)).contextTypes={disableAutoMessages:T.a.bool},t},Ne=n(173),Le=n.n(Ne),He=n(529),Ue=n(429),ze=n.n(Ue),We=n(286),Ge=n(281),Ve=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isFullApp=function(){return t.props.appMode===m.b.FullApp},t}return Object(r.__extends)(t,e),t.prototype.render=function(){var e,t=this,n=this.props,r=n.theme,o=n.t,i=n.usersTyping,c=d()(r,"room.message.textColor"),u=d()(r,"room.fontFamily"),l=i.length-3;return a.a.createElement("div",{"data-hook":"group-chat-typing-indication",className:ze.a.groupChatTypingWrapper},i.map((function(e,n){return n<3?function(e){var n=d()(e,"displayData.imageUrl","");return a.a.createElement("div",{className:ze.a.typingAvatar,"data-hook":"group-chat-typing-indication-avatar"},s.a.isExperimentOn(D.a.NewAvatar)?a.a.createElement(Ge.a,{size:(t.isFullApp(),"size30"),imgProps:{src:n}}):a.a.createElement(We.ContactAvatar,{size:t.isFullApp()?33:26,pictureUrl:n}))}(e):null})),i.length>3&&(e=l,a.a.createElement("div",{className:ze.a.typingAvatarPlus,"data-hook":"group-chat-typing-indication-plus-avatar"},s.a.isExperimentOn(D.a.NewAvatar)?a.a.createElement(Ge.a,{size:(t.isFullApp(),"size30"),text:"+"+e}):a.a.createElement(We.ContactAvatar,{size:t.isFullApp()?33:26,initials:"+"+e}))),a.a.createElement("div",{"data-hook":"group-chat-typing-indication-message",style:{color:c,fontFamily:u},className:ze.a.groupChatTypingText},o("message.indication.typing")))},t}(o.Component),Ye=Object(h.a)(Object(u.a)(Object(G.c)()(Ve))),qe=n(145),Ke=n(786),$e=n(777),Ze=((U={})[i.Constants.MimeTypes.PlainText]=O,U[i.Constants.MimeTypes.Image]=M,U[i.Constants.MimeTypes.File]=Y,U[i.Constants.MessageTypes.Templates.Standard]=g,U[i.Constants.MessageTypes.Templates.Form]=te,U[i.Constants.MessageTypes.Templates.Minimal]=Q,U);!function(e){e.NONE="none",e.TOP="top",e.BOTTOM="bottom",e.LEFT="left",e.RIGHT="right"}(z||(z={}));var Qe,Xe,Je=function(e){function t(t){var n=e.call(this,t)||this;return n.isUnreadMessagesButtonExperimentOn=function(){return s.a.isExperimentOn(D.a.UnreadMessagesButtonDesktop)},n.onVisibilityChangeHandler=function(){Object(qe.a)()&&n.setState({anchorPosition:n.props.lastReadMessageSequence})},n.handleRealtimeMessage=function(e){e.chatroomId===n.props.chatroomId&&(n.setMessagesReadIfNeeded(),!n.isScrollAtBottom()&&Object(qe.a)()&&n.setState({anchorPosition:n.props.lastReadMessageSequence}))},n.setMessagesReadIfNeeded=function(){n.isScrollAtBottom()&&n.props.setMessagesRead&&Object(qe.a)()&&(n.setState({showUnreadButton:!1}),n.props.setMessagesRead())},n.shouldDisplayUnreadButton=function(e,t){return!!n.isUnreadMessagesButtonExperimentOn()&&(t.messages.length>e.messages.length&&t.unreadCount&&!n.state.isScrollBottomBeforeReceiveMessage)},n.didSendMessage=function(e,t){return t.messages.length>e.messages.length&&!t.unreadCount},n.isLastMessage=function(e){var t=Ae()(n.props.messages);return!!t&&e.rawMessage.id===t.id},n.handleOnEnterTopArea=function(){var e=n.props,t=e.isVisible,r=e.hasMore,o=e.loadMore;t&&r&&o&&n.handleOnEnterFetchMoreArea(),t&&n.handleOnEnterUnfoldHeader()},n.handleOnLeaveTopArea=function(){var e=n.props,t=e.isVisible,r=e.hasMore,o=e.loadMore;t&&r&&o&&n.handleOnEnterFetchMoreArea(),t&&n.handleOnLeaveFoldHeader()},n.handleOnLeaveFoldHeader=function(){var e=n.props,t=e.foldHeader,r=e.messages;e.hasMore||0!==r.length&&n.isScrollAtBottom()||t&&t()},n.handleOnEnterFetchMoreArea=function(){return n.setState({fetching:!0},n.props.loadMore)},n.handleOnEnterUnfoldHeader=function(){var e=n.props,t=e.unfoldHeader,r=e.messages;e.hasMore||0!==r.length&&n.isScrollAtBottom()||t&&t({animation:!0})},n.isScrollAtBottom=function(){var e=n.container;return!e||e.scrollHeight<=e.scrollTop+e.clientHeight+30},n.onScroll=De()(n.setMessagesReadIfNeeded,100),n.onWheel=function(e){var t=n.container.scrollTop,r=n.container.scrollHeight,o=n.container.clientHeight,a=-e.deltaY,i=a>0,s=function(e){return e.stopPropagation(),e.preventDefault(),!1};return!i&&-a>r-o-t?(n.container.scrollTop=r,s(e)):i&&a>t?(n.container.scrollTop=0,s(e)):void 0},n.renderUnreadMessagesButton=function(){var e=n.props,t=e.theme,r=e.unreadCount,o=e.appMode,i={background:d()(t,"room.unreadMessagesButton.background")||d()(t,"header.background"),color:d()(t,"room.unreadMessagesButton.color")||d()(t,"header.textColor")};return a.a.createElement("div",{className:ye.a.unreadMessagesButton+" "+ye.a[o],"data-hook":"unread-messages-button",onClick:function(){return n.scrollDown(!0)}},o===m.b.FullApp?a.a.createElement("div",{className:ye.a.unreadButtonFullApp},a.a.createElement("div",{className:ye.a.unreadButtonCount},r),a.a.createElement(je.a,null)):a.a.createElement("div",{className:ye.a.unreadMessagesButtonInner,style:i},a.a.createElement("span",{className:ye.a.unreadMessagesText},n.props.t("unread.messages.button",{count:r})),a.a.createElement(Ie.a,{size:"18px"})))},n.state={fetching:!1,isScrollBottomBeforeReceiveMessage:!0,showUnreadButton:!1,anchorPosition:n.props.lastReadMessageSequence},n}return Object(r.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.messages.length>0&&this.scrollDown(),this.container&&this.container.addEventListener("wheel",this.onWheel,{passive:!1}),c.d.addListener(c.d.CHAT_EVENTS.NEW_REALTIME_MESSAGE,this.handleRealtimeMessage),Object(qe.b)(this.onVisibilityChangeHandler)},t.prototype.componentWillUnmount=function(){this.container&&this.container.removeEventListener("wheel",this.onWheel),c.d.removeListener(c.d.CHAT_EVENTS.NEW_REALTIME_MESSAGE,this.handleRealtimeMessage),Object(qe.c)(this.onVisibilityChangeHandler)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t={},n=this.state,r=n.fetching,o=n.isScrollBottomBeforeReceiveMessage;r&&this.fetchCompleted(e)&&(t.fetching=!1);var a=this.isScrollAtBottom();o!==a&&(t.isScrollBottomBeforeReceiveMessage=a),we()(t)||this.setState(t)},t.prototype.UNSAFE_componentWillUpdate=function(e,t){this.state.fetching&&!t.fetching&&(this.offsetBeforeFetchMore=this.container.scrollHeight-this.container.scrollTop)},t.prototype.componentDidUpdate=function(e,t){var n={};!t.fetching||this.state.fetching?(this.shouldScroll(e,this.props)&&this.scrollDown(),this.shouldDisplayUnreadButton(e,this.props)&&(n.showUnreadButton=!0),this.isUnreadMessagesButtonExperimentOn()&&this.didSendMessage(e,this.props)&&(this.scrollDown(!0),n.anchorPosition=this.props.lastReadMessageSequence),!e.isVisible&&this.props.isVisible&&0===this.props.messages.length&&this.props.unfoldWhenEmpty&&this.handleOnEnterUnfoldHeader(),we()(n)||this.setState(n)):this.container.scrollTop=this.container.scrollHeight-this.offsetBeforeFetchMore},t.prototype.fetchCompleted=function(e){return(this.props.messages&&this.props.messages.length&&this.props.messages[0].id)!==(e.messages&&e.messages.length&&e.messages[0].id)},t.prototype.scrollDown=function(e){void 0===e&&(e=!1);var t=document.querySelector("."+ye.a.messagesList),n=document.querySelector("."+re.a.unreadAnchorBackground),r=document.querySelectorAll("."+ye.a.listItem),o=document.querySelector("."+ye.a.typingIndication);n&&!e?this.scrollToUnreadAnchor(t,n):this.scrollToBottom(t,r,o)},t.prototype.shouldScroll=function(e,t){var n=e.messages,r=e.lastReadMessageSequence,o=e.unreadCount,a=e.headerExists,i=e.isVisible,s=e.typingStatus,c=t.messages,u=t.lastReadMessageSequence,l=t.unreadCount,d=t.headerExists,p=t.isVisible,f=s!==t.typingStatus;return!(this.isUnreadMessagesButtonExperimentOn()&&!this.state.isScrollBottomBeforeReceiveMessage)&&(n.length!==c.length||r!==u||o!==l||a!==d||i!==p||f&&this.state.isScrollBottomBeforeReceiveMessage)},t.prototype.scrollToBottom=function(e,t,n){if(t.length>0){var r=n||t.item(t.length-1),o=parseInt(getComputedStyle(e,null).paddingBottom||"0",10);ke()(r,e,{alignWithTop:!1,offsetBottom:o})}},t.prototype.scrollToUnreadAnchor=function(e,t){ke()(t,e,{alignWithTop:!0})},t.prototype.isTimestampTooltipDisabled=function(e){var t=e===i.Constants.MessageDirections.System;return this.props.timestampTooltipConfig?this.props.timestampTooltipConfig===z.NONE||t:this.props.appMode!==m.b.FullApp||t},t.prototype.getTimestampTooltipPosition=function(e){var t=this.props.timestampTooltipConfig,n=e===i.Constants.MessageDirections.Incoming?"right":"left";return t&&t!==z.NONE?t:n},t.prototype.isFullApp=function(){return this.props.appMode===m.b.FullApp},t.prototype.renderBubbleByType=function(e,t){var n=e.position,o=e.groupPosition,s=e.messagePart,c=e.senderUserId,u=e.message,l=e.wrapWithBubble,p=e.formattedTimestamp,f=e.title,h=e.transit,m=e.isCustomType,v=e.type,g=e.rawMessage,b=this.props,y=b.chatAppsRegistry,E=b.theme,F=b.sendersData,C=b.onSendAgain,A=b.avatarOption,_=b.useAvatarTooltip,D=b.eventHooks,O=s?{messagePart:s}:{message:u},w=this.isFullApp()&&v===i.Constants.MessageTypes.Templates.Standard,x=v===i.Constants.MessageTypes.Templates.Minimal||v===i.Constants.MessageTypes.Templates.Standard,B=d()(E,"room.fontFamily"),S=a.a.createElement("span",{style:{fontFamily:B}},p),k=u&&u.templateData?u.templateData:{},T=k.appData,R=void 0===T?{}:T,I=k.appName,P=void 0===I?void 0:I,j=m&&y.isAppRegistered(P),M=j?y.getConfigByApp(P):{},N=function(e){return j&&!we()(M)&&!Be()(M[e])},L=(j?y.getComponentByApp(P):null)||Ze[v];return L?a.a.createElement(He.a,{wrapWithBubble:N("wrapWithBubble")?M.wrapWithBubble:l,position:N("position")?M.position:n,groupPosition:N("groupPosition")?M.groupPosition:o,title:f,sendersData:F,senderUserId:c,transit:h,rawMessage:g,onSendAgain:C,avatarOption:N("avatarOption")?M.avatarOption:A,useAvatarTooltip:N("useAvatarTooltip")?M.useAvatarTooltip:_,emphasisBubble:w,whiteBubble:x,isLastMessage:this.isLastMessage(e),eventHooks:D},a.a.createElement(Ke.a,{dataHook:"timestamp-tooltip",content:S,disabled:N("withTimestampTooltip")?!M.withTimestampTooltip:this.isTimestampTooltipDisabled(n),placement:this.getTimestampTooltipPosition(n),shouldCloseOnClickOutside:!0,theme:"dark",minWidth:105,textAlign:"center"},a.a.createElement("div",null,a.a.createElement(L,Object(r.__assign)({instanceId:t},O,R,{transit:h,eventHooks:D,titleExists:!!f}))))):null},t.prototype.messageListItem=function(e,t,n){return a.a.createElement("div",{key:t,"data-hook":"message-list-item",className:ye.a.listItem+" "+ye.a[n]},e)},t.prototype.renderTyping=function(){var e=this.props,t=e.typingStatus,n=void 0===t?[]:t,r=e.isGroupChat;if(n.length)return r?a.a.createElement(Ye,{usersTyping:n}):a.a.createElement("div",{"data-hook":"typing-indication",className:ye.a.typingIndication},a.a.createElement(He.a,{wrapWithBubble:!0,position:i.Constants.MessageDirections.Incoming,groupPosition:"single",sendersData:this.props.sendersData,senderUserId:n[0].userId,avatarOption:this.props.avatarOption,eventHooks:this.props.eventHooks},a.a.createElement("div",null,this.renderTypingAnimation())))},t.prototype.renderTypingAnimation=function(){var e=this.props.customTypingAnimation,t=d()(this.props.theme,"room.typingIndication.pointsColor"),n=t?{background:t}:{};return e||a.a.createElement("div",{className:Fe.a.typingAnimation},a.a.createElement("div",{className:Fe.a.points},a.a.createElement("div",{"data-hook":"typing-indication-point",className:Fe.a.arrow+" "+Fe.a.bounce+" "+Fe.a.point1,style:n}),a.a.createElement("div",{"data-hook":"typing-indication-point",className:Fe.a.arrow+" "+Fe.a.bounce+" "+Fe.a.point2,style:n}),a.a.createElement("div",{"data-hook":"typing-indication-point",className:Fe.a.arrow+" "+Fe.a.bounce+" "+Fe.a.point3,style:n})))},t.prototype._filterAutoMessagesIfNecessary=function(e){var t=this.props.disableAutoMessages;return e.filter((function(e){return!(t&&e.isAutoMessage)}))},t.prototype.render=function(){var e=this,t=this.props,n=t.messages,o=t.unreadCount,i=t.theme,s=t.userId,c=t.appMode,u=t.messageDirectionOverride,l=t.instanceId,p=t.isGroupChat,f=t.containerStyle,h=t.t,m=d()(i,"room.background"),v=d()(i,"room.pattern.asset"),g=d()(i,"room.pattern.backgroundSize"),b=d()(i,"room.fontFamily"),y={color:d()(i,"room.timestamp.color"),fontFamily:b},E={style:Object(r.__assign)({},f)};m&&Object.assign(E.style,{backgroundColor:m}),v&&Object.assign(E.style,{backgroundImage:v},{backgroundSize:g},{backgroundPosition:"center center"});var F=new ge({messages:n,userId:s,lastReadMessageSequence:this.state.anchorPosition,unreadCount:o,messageDirectionOverride:u,isGroupChat:p,appMode:c}).getListWithProps(),C=this._filterAutoMessagesIfNecessary(F);return a.a.createElement("div",{className:ye.a.messagesListRoot},a.a.createElement("div",Object(r.__assign)({},E,{className:ye.a.messagesList+" "+ye.a[c],"data-hook":"message-list",onWheel:this.onWheel,onScroll:this.onScroll,ref:function(t){return e.container=t},role:"log","aria-label":this.props.t("messages.title.aria-label")}),this.state.fetching&&a.a.createElement("div",{"data-hook":"fetch-more-loader",className:ye.a.fetchMoreLoader},a.a.createElement($e.a,{size:"small"})),a.a.createElement(Te.a,{key:"fetch-more-waypoint",onEnter:this.handleOnEnterTopArea,onLeave:this.handleOnLeaveTopArea}),C.map((function(t,n){if(t.unreadCount){var r=e.isUnreadMessagesButtonExperimentOn()?h("unread.messages.anchor"):h(t.unreadCount>1?"unread.messages.old_anchor_plural":"unread.messages.old_anchor",{count:t.unreadCount});return e.messageListItem(a.a.createElement(ae,{anchorText:r}),t.message&&t.message.id||n)}return t.timestamp?e.messageListItem(a.a.createElement("div",{className:ye.a.timestamp,style:y,"data-hook":"timestamp-anchor"},a.a.createElement("div",{className:ye.a.timestampLine}),a.a.createElement("div",null,t.timestamp),a.a.createElement("div",{className:ye.a.timestampLine})),t.message&&t.message.id||n):e.messageListItem(e.renderBubbleByType(t,l),t.message&&t.message.id||n,t.groupPosition)})),this.renderTyping()),this.state.showUnreadButton&&this.renderUnreadMessagesButton())},t}(a.a.Component),et=(Qe=Me(Object(u.a)(Object(h.a)(Object(G.c)()(Je)))),(Xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.render=function(){var e=this.context.chatAppsRegistry,t=void 0===e?Le.a:e,n=Object(r.__assign)(Object(r.__assign)({},this.props),{chatAppsRegistry:t});return a.a.createElement(Qe,Object(r.__assign)({},n))},t}(a.a.Component)).contextTypes={chatAppsRegistry:T.a.object},Xe),tt=n(266),nt=n.n(tt),rt=n(61),ot=n.n(rt);function at(){return(at=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["inputRef","maxRows","minRows","onHeightChange","useCacheForDOMMeasurements"]));return t.style=at({},t.style,{height:this.state.height}),Math.max(t.style.maxHeight||1/0,this.state.maxHeight)=0?NodeFilter.FILTER_REJECT:String.prototype.trim&&!e.nodeValue.trim().length?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}),!1);r.nextNode();)n.push(r.currentNode);return n}function Gt(e){var t=/([\ud800-\udbff])([\udc00-\udfff])/g;e.forEach((function(e){var n,r=e.nodeValue;r.match(t)&&(n=r.replace(t,(function(e,t,n){var r,o;return function(e){var t=document.createElement("img");return t.style.width="1em",t.style.verticalAlign="top",t.src="//assets.github.com/images/icons/emoji/unicode/"+e+".png",t}((r=t.charCodeAt(0),o=n.charCodeAt(0),1024*(r-55296)+(o-56320)+65536).toString(16)).outerHTML})),e.parentNode.replaceChild(function(e){var t,n=document.createElement("DIV"),r=document.createDocumentFragment();for(n.innerHTML=e;t=n.firstChild;)r.appendChild(t);return r}(n),e))}))}String.fromCodePoint||(String.fromCodePoint=function(){var e,t,n,r,o=[];for(r=0;r65535?[55296+(t>>10),56320+(1023&t)]:[e],o.push(String.fromCharCode.apply(null,n));return o.join("")});var Vt=function(){var e=window.navigator.userAgent.toLowerCase();return e.indexOf("windows nt 6.1")>-1||e.indexOf("windows nt 5.1")>-1},Yt=function(e){return Gt(Wt(e))},qt=Object(u.a)(Object(h.a)(function(e){function t(t){var n=e.call(this,t)||this;return n.panel=null,n._isLazyLoadPanel=function(){return s.a.isExperimentOn(i.Constants.experiments.LazyLoadEmojiPanel)},n.buildTabs=function(){return[n.buildTab(zt[0],0),zt.slice(1).map((function(e,t){return n.buildTab(e,t+1)}))]},n.inputFullAppCategoryEmoji=function(e){return e.iconFullApp?e.iconFullApp:null},n.legacyCategoryEmoji=function(e){return e.icon?n.createEmoji(e.icon):null},n.rootClasses=function(){var e;return C()(((e={})[wt.a.emojiPanel]=!0,e[wt.a.fullApp]=n.props.appMode===m.b.FullApp,e))},n.state={activeTab:"0",tabs:[],preBuiltTabs:[]},n}return Object(r.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this;if(Vt()&&Yt(this.panel),this._isLazyLoadPanel()){var t=zt.map((function(t,n){return e.buildTab(t,n)}));this.setState({preBuiltTabs:t})}},t.prototype.createEmoji=function(e){return Array.isArray(e)?String.fromCodePoint(Number("0x"+e[0]),Number("0x"+e[1])):String.fromCodePoint(Number("0x"+e))},t.prototype.isActive=function(e){return this.state.activeTab===e.toString()},t.prototype.setActiveTab=function(e){this.setState({activeTab:e.toString()})},t.prototype.componentDidUpdate=function(){if(this._isLazyLoadPanel()){var e=this.state,t=e.tabs,n=e.preBuiltTabs;0===t.length&&this.setState({tabs:n}),Vt()&&Yt(this.panel)}},t.prototype.buildTab=function(e,t){var n=this,r=Vt()?e.emojis.filter((function(e){return!e.filter})):e.emojis;return a.a.createElement("div",{id:"emojis-tab-content-"+t,role:"tabpanel","aria-labelledby":"emojis-tab-"+t,className:this.isActive(t)?wt.a.active:"",key:t},r.map((function(e,t){var r=n.createEmoji(e.unicode),o=e.unicode.toString();return a.a.createElement("button",{className:wt.a.emoji,"data-hook":"emoji","data-unicode":o,onClick:function(){return n.props.onAddItemToTextArea(r,{closeKeyboard:!1})},key:t},r)})))},t.prototype.render=function(){var e,t=this,n=d()(this.props.theme,"room.emojiPanel.backgroundColor"),r=d()(this.props.theme,"room.emojiPanel.borderColor"),o=n?{backgroundColor:n}:{},i=this.props.appMode===m.b.FullApp;return a.a.createElement("div",{ref:function(e){return t.panel=e},"data-hook":"emoji-panel",className:this.rootClasses()},a.a.createElement("div",{"data-hook":"categories",className:wt.a.categories,role:"tablist"},zt.map((function(e,n){var o=r&&t.isActive(n)?{borderBottomColor:r}:{};return a.a.createElement("button",{role:"tab","aria-selected":t.isActive(n),"aria-controls":"emojis-tab-content-"+n,id:"emojis-tab-"+n,style:o,key:n,"data-hook":"emoji-category",onClick:function(){return t.setActiveTab(n)},className:wt.a.emoji+" "+e.class+" "+(t.isActive(n)?wt.a.active:"")},i?t.inputFullAppCategoryEmoji(e):t.legacyCategoryEmoji(e))}))),a.a.createElement("div",{"data-hook":"inner-panel",style:o,className:C()(wt.a.innerPanel,(e={},e[wt.a.fullApp]=i,e[wt.a.eager]=!this._isLazyLoadPanel(),e))},this._isLazyLoadPanel()?this.state.tabs[this.state.activeTab]:this.buildTabs()))},t}(o.Component))),Kt=function(e){var t=e.size,n=Object(r.__rest)(e,["size"]);return o.createElement("svg",Object(r.__assign)({viewBox:"0 0 9 23",fill:"currentColor",width:t||"1em",height:t||"1em"},n),o.createElement("g",{id:"Layer_2"},o.createElement("path",{d:"M4.5,23A4.5,4.5,0,0,1,0,18.5V4.5a4.5,4.5,0,0,1,9,0H8a3.5,3.5,0,0,0-7,0v14a3.5,3.5,0,0,0,7,0v-9a1.5,1.5,0,0,0-3,0V17H4V9.5a2.5,2.5,0,0,1,5,0v9A4.5,4.5,0,0,1,4.5,23Z",id:"Layer_1-2"})))};Kt.displayName="attach";var $t=Kt,Zt=function(e){var t=e.size,n=Object(r.__rest)(e,["size"]);return o.createElement("svg",Object(r.__assign)({viewBox:"0 0 16 16",fill:"currentColor",width:t||"16",height:t||"16"},n),o.createElement("path",{fill:"currentColor",d:"M1.40926391,5.29366938 L15.6697462,0.453934265 C16.3429879,0.239515621 16.9856276,0.882771554 16.7714144,1.55665872 L11.9363152,15.8308142 C11.722102,16.5047013 10.8040452,16.6272263 10.4062206,16.0146016 L7.34603122,11.3280226 L12.057229,5.36657191 C12.2102384,5.1827845 12.0266271,4.9989971 11.8430157,5.15215327 L5.87714034,9.91898584 L1.19505066,6.85586236 C0.613614686,6.42702507 0.705420366,5.53871926 1.40926391,5.29366938 Z",transform:"rotate(-45 12.3 10.382)"}))};Zt.displayName="send";var Qt=Zt,Xt=function(e){var t=e.size,n=Object(r.__rest)(e,["size"]);return o.createElement("svg",Object(r.__assign)({viewBox:"0 0 20 20",fill:"currentColor",width:t||"1em",height:t||"1em"},n),o.createElement("g",{id:"Layer_2"},o.createElement("path",{d:"M10,0a10,10,0,1,0,9.85,8.26A10,10,0,0,0,10,0Zm0,19A9,9,0,1,1,18.87,8.44,9.11,9.11,0,0,1,19,10,9,9,0,0,1,10,19Zm4.23-6.88a4.5,4.5,0,0,1-8.72,0l1-.25a3.5,3.5,0,0,0,6.78,0ZM8,8A1,1,0,1,1,7,7,1,1,0,0,1,8,8Zm6,0a1,1,0,1,1-1-1A1,1,0,0,1,14,8Z",id:"Layer_1-2"})))};Xt.displayName="emoji";var Jt=Xt,en=function(e){var t=e.size,n=Object(r.__rest)(e,["size"]);return o.createElement("svg",Object(r.__assign)({viewBox:"0 0 20 20",fill:"currentColor",width:t||"1em",height:t||"1em"},n),o.createElement("g",{id:"Layer_2"},o.createElement("path",{d:"M10,0a10,10,0,1,0,9.85,8.26A10,10,0,0,0,10,0Zm0,19A9,9,0,1,1,18.87,8.44,9.11,9.11,0,0,1,19,10,9,9,0,0,1,10,19Zm-.05-5.1L5,8.95H6.41l3.54,3.54,3.54-3.54H14.9Z",id:"Layer_1-2"})))};en.displayName="emojiClose";var tn=en,nn=n(166),rn=n.n(nn),on=function(e){var t;return(t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(n,t),n.prototype.render=function(){var t=this.context.allowInput,n=Object(r.__assign)(Object(r.__assign)({},this.props),{allowInput:t});return a.a.createElement(e,Object(r.__assign)({},n))},n}(a.a.Component)).contextTypes={allowInput:T.a.bool},t},an=n(69),sn=n(582),cn=n(581);var un=n(31),ln=n.n(un),dn=function(e){var t=function(t){function n(e){var n=t.call(this,e)||this;return n.handleKeyDown=function(e){n.shouldSendMessage(e)&&(n.handleSendMessage(),e.preventDefault())},n.handleChange=function(e){var t=e.target.value;n.props.handleChange&&n.props.handleChange(t),n.setState({message:t})},n.handleSendMessage=function(){if(n.state.message){var e=n.props,t=e.chatroomId,r=e.userId,o=n.state.message.trim();n.props.onSendMessage(an.a.fromText({summary:o,text:o,chatroomId:t,userId:r})),n.closeKeyboard(),n.setState({message:"",error:null})}},n.shouldSendMessage=function(e){var t=n.props.sendOnEnter,r=void 0===t||t,o="Enter"===e.key,a=e.shiftKey,i=e.ctrlKey,s=e.metaKey,c=n.state.message.trim();return o&&c&&(r&&!a||!r&&i||!r&&s)},n.allowedFiles=function(){return"image/*,.xlsx,.xls,.doc,.docx,.ppt,.pptx,.pdf"},n.handleFileSelect=function(e){!function(e){return[S.a.attachmentTypes.IMAGE,S.a.attachmentTypes.DOC,S.a.attachmentTypes.PPT,S.a.attachmentTypes.XLS,S.a.attachmentTypes.PDF].indexOf(S.a.getAttachmentType(e.type))>-1}(e)?(n.setState({error:"error.unsupported.file.format"}),n.closeKeyboard()):!function(e){return e.size>15728640}(e)?(n.sendFileMessage(e).catch((function(){})),n.setState({error:null})):(n.setState({error:"error.file.too.large"}),n.closeKeyboard())},n.handleFileErrorDismiss=function(){n.setState({error:null})},n.closeKeyboard=function(){n.setState({isKeyboardOpen:!1})},n.handleKeyboardButtonClick=function(e,t){n.setState((function(t){return{isKeyboardOpen:t.activeKeyboardName!==e||!t.isKeyboardOpen,activeKeyboardName:e,error:null}}),(function(){t&&n.state.isKeyboardOpen&&n.props.eventHooks&&n.props.eventHooks.onInputKeyboardSwitch&&n.props.eventHooks.onInputKeyboardSwitch(t)}))},n.onAddItemToTextArea=function(e,t){var r=(void 0===t?{}:t).closeKeyboard,o=void 0===r||r,a=""+n.state.message+e;n.props.handleChange&&n.props.handleChange(a),n.setState({message:a}),o&&n.closeKeyboard()},n.onAttachCustomTemplateItem=function(e,t){var r=e.appName,o=e.appData,a=e.summary,s=(void 0===t?{}:t).closeKeyboard,c=void 0===s||s,u=n.props,l=u.userId,d=u.chatroomId;(0,u.onSendMessage)(an.a.fromTemplate({templateData:new sn.a({appName:r,appData:o}),userId:l,chatroomId:d,messageType:i.Constants.MessageTypes.Templates.Custom,summary:a})),c&&n.closeKeyboard()},n.onAttachStandardTemplateItem=function(e,t){var r=e.title,o=e.descriptions,a=void 0===o?[]:o,s=e.buttons,c=void 0===s?[]:s,u=e.imageUrl,l=e.orientation,d=e.summary,p=(void 0===t?{}:t).closeKeyboard,f=void 0===p||p,h=n.props,m=h.userId,v=h.chatroomId;(0,h.onSendMessage)(an.a.fromTemplate({templateData:new cn.a({title:r,lines:a,buttons:c.map((function(e){return{text:e.text,cta:e.ctaLink}})),orientation:l,imageUrl:u}),userId:m,chatroomId:v,messageType:i.Constants.MessageTypes.Templates.Standard,summary:d})),f&&n.closeKeyboard()},n.onAttachUploadedImageItem=function(e,t){var r=(void 0===t?{}:t).closeKeyboard,o=void 0!==r&&r;!function(e,t,n,r,o){t(an.a.fromImage({id:ln()(),userId:o,chatroomId:n,transit:{status:"uploaded"},summary:r,uri:e.url,mediaFileId:"",mediaProvider:e.mediaProvider,fileName:e.fileName,fileSize:e.fileSize,width:e.width,height:e.height}))}(e,n.props.onSendMessage,n.props.chatroomId,n.props.t("message.sent.photo"),n.props.userId),o&&n.closeKeyboard()},n.state={message:n.props.message||"",error:null,activeKeyboardName:null,isKeyboardOpen:!1},n}return Object(r.__extends)(n,t),n.prototype.UNSAFE_componentWillReceiveProps=function(e){e.message&&!this.props.message&&this.setState({message:e.message})},n.prototype.componentDidUpdate=function(e,t){t.isKeyboardOpen&&e.isHeaderFolded&&!this.props.isHeaderFolded&&this.closeKeyboard()},n.prototype.sendFileMessage=function(e){return Object(r.__awaiter)(this,void 0,void 0,(function(){var t,n,o,a,i,s,c,u,l,d,p,f;return Object(r.__generator)(this,(function(h){switch(h.label){case 0:return this.props.onUploadFile?e.type.startsWith("image")?[2,this.sendImageMessage(e)]:(t=this.props,n=t.userId,o=t.chatroomId,a=t.onClearUnreadDisplay,i=t.onUploadFile,s=t.onAddMessage,c=t.onSendMessage,u=t.t,l=ln()(),d={id:l,userId:n,chatroomId:o},p=an.a.fromFile(Object(r.__assign)(Object(r.__assign)({},d),{transit:{status:"uploading",isPending:!0,file:e},summary:u("message.sent.file"),fileName:e.name,fileSize:e.size,type:e.type})),a(),s({dto:p.dto,transit:p.transit}),[4,i(e)]):[2];case 1:return f=h.sent(),p=an.a.fromFile(Object(r.__assign)(Object(r.__assign)({},d),{transit:{status:"uploaded",file:e},summary:u("message.sent.file"),uri:f.url,mediaFileId:f.mediaFileId,mediaProvider:f.mediaProvider,fileName:f.name,fileSize:f.fileSize,type:f.contentType})),s({dto:p.dto,transit:p.transit}),c(p),[2]}}))}))},n.prototype.sendImageMessage=function(e){return Object(r.__awaiter)(this,void 0,void 0,(function(){var t,n,o,a,i,s,c,u,l,d,p,f;return Object(r.__generator)(this,(function(h){switch(h.label){case 0:return t=this.props,n=t.userId,o=t.chatroomId,a=t.onClearUnreadDisplay,i=t.onUploadFile,s=t.onAddMessage,c=t.onSendMessage,u=t.t,l=ln()(),d={id:l,userId:n,chatroomId:o},p=an.a.fromImage(Object(r.__assign)(Object(r.__assign)({},d),{transit:{status:"uploading",isPending:!0,file:e},summary:u("message.sent.photo")})),a(),s({dto:p.dto,transit:p.transit}),[4,i(e)];case 1:return f=h.sent(),p=an.a.fromImage(Object(r.__assign)(Object(r.__assign)({},d),{transit:{status:"uploaded",file:e},summary:u("message.sent.photo"),uri:f.url,mediaFileId:f.mediaFileId,mediaProvider:f.mediaProvider,fileName:f.name,fileSize:f.fileSize,width:f.width,height:f.height})),s({dto:p.dto,transit:p.transit}),c(p),[2]}}))}))},n.prototype.render=function(){var t={handleKeyDown:this.handleKeyDown,handleChange:this.handleChange,handleCloseKeyboard:this.closeKeyboard,handleFileErrorDismiss:this.handleFileErrorDismiss,allowedFiles:this.allowedFiles,message:this.state.message,error:this.state.error,activeKeyboardName:this.state.activeKeyboardName,isKeyboardOpen:this.state.isKeyboardOpen,onAddItemToTextArea:this.onAddItemToTextArea,onAttachCustomTemplateItem:this.onAttachCustomTemplateItem,onAttachStandardTemplateItem:this.onAttachStandardTemplateItem,onAttachUploadedImageItem:this.onAttachUploadedImageItem,handleKeyboardButtonClick:this.handleKeyboardButtonClick,inputKeyboards:this.props.inputKeyboards||[],onSendMessage:this.handleSendMessage,onFileSelect:this.handleFileSelect},n=Object(r.__assign)(Object(r.__assign)({},this.props),t);return a.a.createElement(e,Object(r.__assign)({},n))},n}(a.a.Component);return Object(G.c)()(t)},pn=function(e){function t(t){var n=e.call(this,t)||this;return n.input=null,n.getKeyboardComponentByName=function(e){var t=n.keyboards.find((function(t){return t.componentName===e}));if(t)return t.component},n.isKeyboardOpen=function(e){return n.props.isKeyboardOpen&&n.props.activeKeyboardName===e},n.focusInput=function(){n.input&&n.input.focus()},n.onAddItemToTextArea=function(e,t){n.props.onAddItemToTextArea(e,t),n.focusInput()},n.renderKeyboards=function(){var e=n.props,t=e.isKeyboardOpen,r=e.activeKeyboardName,o=n.getKeyboardComponentByName(r);return n.props.error?null:a.a.createElement("div",{"data-hook":"input-keyboards",className:ot.a.inputKeyboards+" "+(!t&&ot.a.minimized)},t&&o&&a.a.createElement("div",{"data-hook":r,className:ot.a.keyboardWrapper},a.a.createElement(o,{onAddItemToTextArea:n.onAddItemToTextArea,onAttachCustomTemplateItem:function(){},onAttachStandardTemplateItem:function(){},onAttachUploadedImageItem:function(){},closeKeyboard:n.props.handleCloseKeyboard,isOpen:t,recipientParticipantId:n.props.otherParticipantId})))},n.handleFileSelect=function(e){var t=e.target,r=t.files&&t.files[0];r&&n.props.onFileSelect(r),t.value=""},n.state={isFocus:!1},n}return Object(r.__extends)(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this;e.isVisible&&!this.props.isVisible&&setTimeout((function(){t.focusInput()}))},t.prototype.componentDidUpdate=function(e,t){!e.isKeyboardOpen&&this.props.isKeyboardOpen&&this.props.foldHeader&&this.props.foldHeader({animation:!0})},Object.defineProperty(t.prototype,"keyboards",{get:function(){var e=this,t=d()(this.props.theme,"input.color"),n=d()(this.props.theme,"input.opacityOnFocus"),o={opacity:this.state.isFocus?1:.7},i=n?o:null,s=t?{color:t}:null,c={componentName:"emoji-keyboard",component:qt,icon:function(){return a.a.createElement("span",{"data-hook":"emoji-button-style",style:Object(r.__assign)(Object(r.__assign)({},s),i)}," ",e.isKeyboardOpen("emoji-keyboard")?a.a.createElement(tn,{size:"20px"}):a.a.createElement(Jt,{size:"20px"})," ")},buttonClassName:ot.a.emojiButton,iconTooltip:this.props.t("input.buttons.tooltip.emoji")};return Object(r.__spreadArrays)(this.props.inputKeyboards,[c]).map((function(t){return Object(r.__assign)(Object(r.__assign)({},t),{button:{className:t.buttonClassName,dataHook:t.componentName,onClick:function(){e.props.handleKeyboardButtonClick(t.componentName),e.focusInput()},children:a.a.createElement(t.icon,null),ariaLabel:t.iconTooltip}})}))},enumerable:!0,configurable:!0}),t.prototype.onBlur=function(){this.setState({isFocus:!!this.props.message&&this.props.message.length>0})},t.prototype.onFocus=function(){var e=this.props.foldHeader;this.props.isMobile&&e&&e({animation:!0}),this.setState({isFocus:!0})},t.prototype.componentDidMount=function(){var e=this.props,t=e.isMobile,n=e.isVisible;e.allowInput&&!t&&n&&this.focusInput()},t.prototype.renderFileError=function(e){var t=d()(this.props.theme,"room.button.background"),n=d()(this.props.theme,"room.button.borderRadius"),o=t?{backgroundColor:t}:{};return o=void 0!==n?Object(r.__assign)({borderRadius:n},o):o,a.a.createElement("div",{style:Object(r.__assign)({},e),className:ot.a.error},a.a.createElement("button",{className:ot.a.xButton,onClick:this.props.handleFileErrorDismiss},a.a.createElement(rn.a,null)),a.a.createElement("span",{className:ot.a.errorTitle},this.props.t("error.oops")),a.a.createElement("span",{className:ot.a.errorText},this.props.t(this.props.error)),a.a.createElement("span",{style:o,className:ot.a.chooseAnotherFile},a.a.createElement("input",{disabled:this.props.disabled,type:"file",accept:this.props.allowedFiles(),onChange:this.handleFileSelect,className:ot.a.fileUploadInput,"data-hook":"another-file-upload-input"}),this.props.t("error.choose.another.file")))},t.prototype.render=function(){var e,t=this;if(!this.props.allowInput)return null;var n=d()(this.props.theme,"input.color"),o=d()(this.props.theme,"input.opacityOnFocus"),i={opacity:this.state.isFocus?1:.7},c=o?i:null,u=n?{color:n}:null,l=this.props,p=l.getInputSendViaIndication,f=l.offlineChannels,h=l.isMobile,m=l.disabled,v=l.placeholder,g=l.t,b=l.eventHooks,y=void 0===b?{}:b,E=l.message,F=l.error,A=l.onSendMessage,O=l.allowedFiles,w={className:ot.a.fileButton,dataHook:"attachment-button",onClick:y.onAttachmentClick,children:a.a.createElement("span",{"data-hook":"attachment-button-style",style:Object(r.__assign)(Object(r.__assign)({transform:"rotate(-315deg)",display:"inline-block"},u),c)},a.a.createElement($t,{width:"9px",height:"23px"}),a.a.createElement("input",{tabIndex:0,disabled:m,type:"file",accept:O(),onChange:this.handleFileSelect,className:ot.a.fileUploadInput,"data-hook":"file-upload-input","aria-label":g("input.attachment.button.aria-label")}))},x={dataHook:"send-button",disabled:!E.trim(),onClick:A,ariaLabel:g("input.send")},B=[E?Object(r.__assign)(Object(r.__assign)({},x),{children:a.a.createElement("span",{"data-hook":"send-button-style",style:Object(r.__assign)(Object(r.__assign)({},u),c)},a.a.createElement(Qt,{size:"16px"})),className:ot.a.sendButtonIcon+" "+ot.a.sendButton}):w],S=p&&p(f),k=((e={})[ot.a.withLabel]=!!S,e[ot.a.isEmpty]=!E,e),T=this.props.maxRows||5,R=d()(this.props.theme,"room.fontFamily"),I=R?"":ot.a.defaultFont,P=_()(E);return a.a.createElement("div",{"data-hook":"input-wrapper",className:ot.a.inputWrapper+" "+I,style:{fontFamily:R}},this.renderKeyboards(),F&&this.renderFileError(u),a.a.createElement("div",{className:C()(ot.a.textareaWrapper,k),onBlur:function(){return t.onBlur()},onFocus:function(){return t.onFocus()}},S&&a.a.createElement("div",{className:ot.a.inputLabel,"data-hook":"input-label"},S),a.a.createElement("div",{className:ot.a.container},!h&&a.a.createElement(Dt,{buttons:this.keyboards.map((function(e){return e.button}))}),a.a.createElement(Ct,{"aria-label":"Type your message. Hit enter to submit.","data-hook":"input",disabled:m,inputRef:function(e){return t.input=e},maxRows:T,className:ot.a.input,onKeyDown:this.props.handleKeyDown,onChange:this.props.handleChange,placeholder:v||g("input.placeholder"),value:E,role:"textbox",style:Object(r.__assign)(Object(r.__assign)({},u),{boxShadow:"none",direction:s.a.isExperimentOn(D.a.MessagesRTLSupport)&&"neutral"!==P?P:void 0})}),a.a.createElement(Dt,{buttons:B,disabled:m}))))},t.defaultProps={sendOnEnter:!0,allowInput:!0},t}(a.a.Component),fn=dn(on(Object(u.a)(Object(G.c)()(pn)))),hn=n(51),mn=n.n(hn),vn=n(796),gn=function(e){var t=e.size,n=Object(r.__rest)(e,["size"]);return o.createElement("svg",Object(r.__assign)({viewBox:"0 0 24 24",fill:"currentColor",width:t||"24",height:t||"24"},n),o.createElement("path",{d:"M18.4744375,11.210225 L17.7701116,10.505899 L19.1183419,9.15766874 C20.2991296,7.97688101 20.2991296,6.06244584 19.1183419,4.88165811 C17.9375542,3.70087038 16.023119,3.70087038 14.8423313,4.88165811 L4.88165811,14.8423313 C3.70087038,16.023119 3.70087038,17.9375542 4.88165811,19.1183419 C6.06244584,20.2991296 7.97688101,20.2991296 9.15766874,19.1183419 L15.3797928,12.8962178 C15.8733885,12.4026221 15.873918,11.6025088 15.3809759,11.1082602 C14.8893899,10.6153713 14.0913153,10.6143151 13.5984264,11.1059012 L9.01179805,15.6925279 L8.3074721,14.9882019 L12.8929201,10.402754 C13.777425,9.52058433 15.206174,9.52247518 16.0862334,10.404867 C16.9672853,11.288254 16.966339,12.7183235 16.0841188,13.6005438 L9.86199469,19.8226678 C8.29221848,21.3924441 5.74710837,21.3924441 4.17733216,19.8226678 C2.60755595,18.2528916 2.60755595,15.7077815 4.17733216,14.1380053 L14.1380053,4.17733216 C15.7077815,2.60755595 18.2528916,2.60755595 19.8226678,4.17733216 C21.3924441,5.74710837 21.3924441,8.29221848 19.8226678,9.86199469 L18.4744375,11.210225 Z"}))};gn.displayName="attachment";var bn=gn,yn=function(e){var t=e.size,n=Object(r.__rest)(e,["size"]);return o.createElement("svg",Object(r.__assign)({viewBox:"0 0 24 24",fill:"currentColor",width:t||"24",height:t||"24"},n),o.createElement("path",{d:"M12,20 C16.418278,20 20,16.418278 20,12 C20,7.581722 16.418278,4 12,4 C7.581722,4 4,7.581722 4,12 C4,16.418278 7.581722,20 12,20 Z M12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 Z M15.909013,13.8522533 C15.518468,15.6519486 13.9166611,17 12,17 C10.0933984,17 8.4983548,15.6660619 8.09723626,13.8805527 L9.07840097,13.6843198 C9.38803277,15.0114352 10.5785705,16 12,16 C13.4480127,16 14.6564168,14.9741136 14.9380425,13.6095106 L15.909013,13.8522533 Z M9,11 C8.44771525,11 8,10.5522847 8,10 C8,9.44771525 8.44771525,9 9,9 C9.55228475,9 10,9.44771525 10,10 C10,10.5522847 9.55228475,11 9,11 Z M15,11 C14.4477153,11 14,10.5522847 14,10 C14,9.44771525 14.4477153,9 15,9 C15.5522847,9 16,9.44771525 16,10 C16,10.5522847 15.5522847,11 15,11 Z"}))};yn.displayName="smiley";var En=yn,Fn=function(e){var t=e.size,n=Object(r.__rest)(e,["size"]);return o.createElement("svg",Object(r.__assign)({viewBox:"0 0 18 18",fill:"currentColor",width:t||"18",height:t||"18"},n),o.createElement("path",{fill:"currentColor",d:"M7.71178332,9.67060883 L10.1275987,7.15004076 C10.3258205,6.95133528 10.6487501,6.94979783 10.8488821,7.14660677 C11.0490141,7.34341571 11.0505626,7.66404351 10.8523407,7.86274899 L8.42184009,10.3986391 L10.7547895,15.3765024 L15.7510707,2.25174323 L2.62679082,7.34657321 L7.71178332,9.67060883 Z M7.49567733,10.5731703 L1.26629353,7.72610423 C0.899702928,7.55855834 0.915104246,7.03424985 1.2909017,6.88836572 L16.3765743,1.03212537 C16.7451966,0.889026617 17.1095595,1.24899097 16.9692291,1.61762573 L11.2253212,16.7063298 C11.0821214,17.0825021 10.5555212,17.1020236 10.3846786,16.737493 L7.49567733,10.5731703 Z",transform:"rotate(7 8.5 .825)"}))};Fn.displayName="sendIconOutline";var Cn=Fn,An=function(e){function t(t){var n=e.call(this,t)||this;return n.textAreaRef=null,n.getKeyboardComponentByName=function(e){var t=n.keyboards.find((function(t){return t.componentName===e}));if(t)return t.component},n.getIsKeyboardHasCustomLayout=function(e){var t=n.keyboards.find((function(t){return t.componentName===e}));return!(!t||!t.hasCustomLayout)},n.getIsKeyboardShouldUnmountOnWhenClosed=function(e){var t=n.keyboards.find((function(t){return t.componentName===e}));return!(!t||!t.unmountOnClose)},n.isKeyboardOpen=function(e){return n.props.isKeyboardOpen&&n.props.activeKeyboardName===e},n.shouldChangeInputlayout=function(){return!(!n.textAreaDuplicateRef||n.props.compactView)&&(n.isTextAreaOverlapsInputButtons()?!n.state.columnLayout:n.state.columnLayout)},n.isTextAreaOverlapsInputButtons=function(){if(!n.textAreaDuplicateRef||!n.inputButtonsRef||!n.textAreaWrapperRef)return!1;return Number(n.textAreaDuplicateRef.clientWidth)+Number(n.inputButtonsRef.clientWidth)+10>n.textAreaWrapperRef.clientWidth},n.renderSendButtonIcon=function(){return a.a.createElement(B.a,{as:"button",dataHook:"send-icon",size:"small"},a.a.createElement(Cn,null))},n.sendButton=function(){var e=n.props.compactView;return{dataHook:"send-button",hide:n.props.disabled||!n.props.message||!n.props.message.trim(),onClick:n.handleSend,children:e?n.renderSendButtonIcon():n.props.t("input.send"),className:e?mn.a.sendButtonIcon:mn.a.sendButton,ariaLabel:n.props.t("input.send")}},n.fileButton=function(){return{className:mn.a.inputButton,tooltipContent:n.props.t("input.buttons.tooltip.attach"),dataHook:"attachment-button",onClick:n.props.eventHooks&&n.props.eventHooks.onAttachmentClick,children:a.a.createElement(bn,{size:"24px",onClick:n.clickOnInputFile}),ariaLabel:n.props.t("input.buttons.tooltip.attach")}},n.focusInput=function(){n.textAreaRef&&n.textAreaRef.focus()},n.handleSend=function(){n.props.onSendMessage(),n.focusInput()},n.handleFileErrorDismiss=function(){n.props.handleFileErrorDismiss(),n.focusInput()},n.renderInputSendViaIndication=function(){var e=n.withLineSeperatorWrapper,t=n.props.getInputSendViaIndication&&n.props.getInputSendViaIndication(n.props.offlineChannels);return t&&a.a.createElement(e,{show:!0,dataHook:"input-send-indication"},a.a.createElement("div",{"data-hook":"input-send-indication",className:mn.a.inputSendViaIndication},t))},n.withLineSeperatorWrapper=function(e){var t=e.show,n=e.dataHook,r=e.children;return a.a.createElement("div",{"data-hook":"line-separator-wrapper-"+n,className:mn.a.lineSeparatorWrapper},r,t&&a.a.createElement("div",{"data-hook":"line-separator-"+n,className:mn.a.lineSeparator}))},n.clickOnInputFile=function(){return n.inputFileRef&&n.inputFileRef.click()},n.renderFileError=function(){var e=n.props,t=e.t,r=e.error,o=n.withLineSeperatorWrapper;return a.a.createElement(o,{show:!0,dataHook:"file-upload-error"},a.a.createElement("div",{className:mn.a.sendFileError,"data-hook":"file-upload-error"},a.a.createElement("button",{"data-hook":"close-error-button",className:mn.a.exitButton,onClick:n.handleFileErrorDismiss},a.a.createElement(rn.a,null)),a.a.createElement("span",{className:mn.a.fileErrorTitle},t("error.oops")),a.a.createElement("div",{className:mn.a.fileErrorText},a.a.createElement($.a,{weight:"normal",size:"small"},t(r))),a.a.createElement("div",{className:mn.a.fileErrorChooseAnotherFile},a.a.createElement(vn.a,{dataHook:"another-file-upload",onClick:n.clickOnInputFile},t("error.choose.another.file")))))},n.renderKeyboards=function(){var e,t,r=n.withLineSeperatorWrapper,o=n.props,i=o.isKeyboardOpen,s=o.activeKeyboardName,c=n.getKeyboardComponentByName(s)||null,u=n.getIsKeyboardHasCustomLayout(s),l=n.getIsKeyboardShouldUnmountOnWhenClosed(s)&&!i,d=C()(((e={})[mn.a.inputKeyboards]=!0,e[mn.a.internalKeyboardStyle]=!u,e[mn.a.minimized]=!i,e)),p=C()(((t={})[mn.a.keyboardWrapper]=!0,t[mn.a.internalKeyboardStyle]=!u,t)),f=a.a.createElement("div",{"data-hook":"input-keyboards",className:d},c&&!l&&a.a.createElement("div",{"data-hook":s,className:p},a.a.createElement(c,{onAddItemToTextArea:n.onAddItemToTextArea,onAttachCustomTemplateItem:n.onAttachCustomTemplateItem,onAttachStandardTemplateItem:n.onAttachStandardTemplateItem,onAttachUploadedImageItem:n.onAttachUploadedImageItem,closeKeyboard:n.props.handleCloseKeyboard,isOpen:i,recipientParticipantId:n.props.otherParticipantId})));return n.props.error?null:u?f:a.a.createElement(r,{show:!!i,dataHook:"input-keyboards"},f)},n.onAttachCustomTemplateItem=function(e,t){n.props.onAttachCustomTemplateItem(e,t),n.focusInput()},n.onAttachStandardTemplateItem=function(e,t){n.props.onAttachStandardTemplateItem(e,t),n.focusInput()},n.onAttachUploadedImageItem=function(e,t){n.props.onAttachUploadedImageItem(e,t),n.focusInput()},n.onAddItemToTextArea=function(e,t){n.props.onAddItemToTextArea(e,t),n.focusInput()},n.handleFileSelect=function(e){var t=e.target,r=t.files&&t.files[0];r&&n.props.onFileSelect(r),t.value=""},n.renderFileInput=function(){return a.a.createElement("input",{ref:function(e){return n.inputFileRef=e},disabled:n.props.disabled,type:"file",accept:n.props.allowedFiles(),onChange:n.handleFileSelect,className:mn.a.fileUploadInput,"data-hook":"file-upload-input"})},n.renderDuplicateTextArea=function(){return a.a.createElement("span",{className:mn.a.duplicateTextArea,ref:function(e){return n.textAreaDuplicateRef=e}},n.props.message)},n.state={columnLayout:t.compactView||!1},n}return Object(r.__extends)(t,e),t.prototype.componentDidMount=function(){this.textAreaRef&&this.textAreaRef.focus(),(0,this.props.setClickBetweenHandler)(this.props.handleCloseKeyboard)},t.prototype.componentDidUpdate=function(e,t){this.shouldChangeInputlayout()&&this.setState({columnLayout:this.isTextAreaOverlapsInputButtons()})},Object.defineProperty(t.prototype,"keyboards",{get:function(){var e=this,t={componentName:"emoji-keyboard",icon:En,iconTooltip:this.props.t("input.buttons.tooltip.emoji"),component:qt,keyboardNameForBI:void 0,hasCustomLayout:!1,unmountOnClose:!1};return Object(r.__spreadArrays)(this.props.inputKeyboards,[t]).map((function(t){var n=t.icon;return Object(r.__assign)(Object(r.__assign)({},t),{button:{className:mn.a.inputButton+" "+(e.isKeyboardOpen(t.componentName)&&mn.a.activeButton),children:a.a.createElement(n,{"data-hook":t.componentName+"-icon",size:"24px"}),tooltipContent:t.iconTooltip,dataHook:t.componentName,onClick:function(){e.props.handleKeyboardButtonClick(t.componentName,t.keyboardNameForBI),e.focusInput()},ariaLabel:t.iconTooltip,hasCustomLayout:t.hasCustomLayout}})}))},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e,t=this,n=this.props,o=n.disabled,i=n.placeholder,c=n.allowInput,u=void 0===c||c,l=n.error,d=n.preventClickBetween,p=Object(r.__spreadArrays)(this.keyboards.map((function(e){return e.button})),[this.fileButton(),this.sendButton()]),f=C()(((e={})[mn.a.root]=!0,e[mn.a.columnLayout]=this.state.columnLayout,e));if(!u)return null;var h=_()(this.props.message);return a.a.createElement("div",{"data-hook":"root",className:f,ref:function(e){return t.rootRef=e},onClick:d},this.renderFileInput(),this.renderInputSendViaIndication(),l&&this.renderFileError(),this.renderKeyboards(),this.renderDuplicateTextArea(),a.a.createElement("div",{className:mn.a.textAreaWrapper,ref:function(e){return t.textAreaWrapperRef=e}},a.a.createElement(Ct,{"aria-label":"Type your message. Hit enter to submit.","data-hook":"input",disabled:o,inputRef:function(e){return t.textAreaRef=e},maxRows:10,className:mn.a.textArea,onKeyDown:this.props.handleKeyDown,onChange:this.props.handleChange,placeholder:i||this.props.t("input.placeholder"),value:this.props.message,role:"textbox",style:{direction:s.a.isExperimentOn(D.a.MessagesRTLSupport)&&"neutral"!==h?h:void 0}}),a.a.createElement("div",{className:mn.a.inputButtonsWrapper,ref:function(e){return t.inputButtonsRef=e}},a.a.createElement(Dt,{buttons:p,disabled:o}))))},t}(a.a.Component),_n=dn(on(Object(G.c)()(function(e){var t;return(t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.wrappedComponentOnClick=function(e){e.stopPropagation()},e}return Object(r.__extends)(n,t),n.prototype.componentWillUnmount=function(){var e=this.context.unregisterHandler;e&&e()},n.prototype.render=function(){var t=this.context.registerHandler,n=Object(r.__assign)(Object(r.__assign)({},this.props),{setClickBetweenHandler:function(e){return t&&t(e)},preventClickBetween:this.wrappedComponentOnClick});return a.a.createElement(e,Object(r.__assign)({},n))},n}(a.a.Component)).contextTypes={registerHandler:T.a.func,unregisterHandler:T.a.func},t}(An)))),Dn=Object(h.a)((function(e){return e.appMode===m.b.FullApp?a.a.createElement(_n,{isVisible:e.isVisible,disabled:e.disabled,handleChange:e.handleChange,message:e.message,eventHooks:e.eventHooks,sendOnEnter:e.sendOnEnter,getInputSendViaIndication:e.getInputSendViaIndication,offlineChannels:e.offlineChannels,placeholder:e.placeholder,maxRows:e.maxRows,inputKeyboards:e.inputKeyboards,chatroomId:e.chatroomId,userId:e.userId,onSendMessage:e.onSendMessage,onAddMessage:e.onAddMessage,onUploadFile:e.onUploadFile,onClearUnreadDisplay:e.onClearUnreadDisplay,compactView:e.compactView,otherParticipantId:e.otherParticipantId}):a.a.createElement(fn,Object(r.__assign)({},e))})),On=function(e){function t(t){var n=e.call(this,t)||this;return n.registerHandler=function(e){n.setState({clickBetweenHandler:e})},n.unregisterHandler=function(){n.setState({clickBetweenHandler:void 0})},n.clickHandler=function(e){var t=n.state.clickBetweenHandler;if(n.props.children){var r=o.Children.only(n.props.children).props.onClick;t&&t(),r&&r(e)}},n.state={},n}return Object(r.__extends)(t,e),t.prototype.getChildContext=function(){return{registerHandler:this.registerHandler,unregisterHandler:this.unregisterHandler}},t.prototype.render=function(){var e=this.props.children;return e?a.a.cloneElement(o.Children.only(e),{onClick:this.clickHandler}):null},t.childContextTypes={registerHandler:T.a.func,unregisterHandler:T.a.func},t}(a.a.Component),wn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.messages,r=t.appMode,o=t.className,i=void 0===o?"":o,s=t.disabled,c=t.onSendMessage,u=t.onSendAgain,l=t.onAddMessage,p=t.onUploadFile,f=t.onClearUnreadDisplay,h=t.handleTyping,m=t.header,v=t.unreadCount,g=t.lastReadMessageSequence,b=t.userId,y=t.chatroomId,E=t.eventHooks,F=t.messageDirectionOverride,A=t.hasMore,_=t.loadMore,D=t.sendOnEnter,O=t.instanceId,w=t.isVisible,x=t.isGroupChat,B=t.foldHeader,S=t.unfoldHeader,k=t.isHeaderFolded,T=t.isMobile,R=t.isCollapsedAndRounded,I=t.theme,P=t.shouldApplyCollapseAnimation,j=t.sendersData,M=t.getInputSendViaIndication,N=t.offlineChannels,L=t.banner,H=t.unfoldWhenEmpty,U=t.inputOverrideComponent,z=t.messageDraft,W=t.avatarOption,G=t.typingStatus,V=t.timestampTooltipConfig,Y=t.customTypingAnimation,q=t.useAvatarTooltip,K=t.inputPlaceholder,$=t.inputKeyboards,Z=t.setMessagesRead,Q=t.containerStyle,X=t.compactView,J=t.emptyState,ee=t.initialFetchDone,te=t.otherParticipantId,ne=d()(I,"header.collapsedAsRounded",!1),re=C()(nt.a.chatRoom,nt.a[r],i,r,((e={})[nt.a.collapsedAndRounded]=R,e[nt.a.shouldApplyCollapseAnimation]=ne&&P,e[nt.a.hidden]=!w,e)),oe=J?n&&n.length:ee;return a.a.createElement(On,null,a.a.createElement("div",{"data-hook":"chat-room",className:re},m,oe?a.a.createElement(et,{hasMore:A,loadMore:_,messages:n,unreadCount:v,lastReadMessageSequence:g,userId:b,headerExists:null!==m,messageDirectionOverride:F,instanceId:O,isVisible:w,isGroupChat:x,foldHeader:B,unfoldHeader:S,isHeaderFolded:k,eventHooks:E,sendersData:j,onSendAgain:u,unfoldWhenEmpty:H,avatarOption:W,typingStatus:G,timestampTooltipConfig:V,customTypingAnimation:Y,useAvatarTooltip:q,setMessagesRead:Z,containerStyle:Q,chatroomId:y}):J||null,L&&a.a.createElement("div",{"data-hook":"banner"},L),U||a.a.createElement(Dn,{isVisible:w,disabled:s||!w,handleChange:h,message:z,eventHooks:E,sendOnEnter:D,foldHeader:B,isMobile:T,getInputSendViaIndication:M,offlineChannels:N,isHeaderFolded:k,placeholder:K,inputKeyboards:$,chatroomId:y,userId:b,onSendMessage:c,onAddMessage:l,onUploadFile:p,onClearUnreadDisplay:f,compactView:X,otherParticipantId:te})))},t.defaultProps={sendersData:[],onSendMessage:function(){},handleTyping:function(){}},t}(o.Component);t.a=Object(u.a)(Object(h.a)(wn))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(441),o=n(1),a=n(0),i=n(7),s=n(460),c=n.n(s),u=n(143),l=function(e,t){return e&&a.cloneElement(e,{className:i(c.a[t],e.props.className)})},d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.focus=function(){this.innerComponentRef&&this.innerComponentRef.focus&&this.innerComponentRef.focus()},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.suffixIcon,i=t.prefixIcon,s=t.children,d=t.disabled,p=t.focusableOnFocus,f=t.focusableOnBlur,h=t.href,m=Object(o.__rest)(t,["as","suffixIcon","prefixIcon","children","disabled","focusableOnFocus","focusableOnBlur","href"]),v=d?-1:m.tabIndex||0,g=d?void 0:h,b=Object(u.c)(n)&&"string"!=typeof n?void 0:function(t){return e.innerComponentRef=t};return a.createElement(n,Object(o.__assign)({},m,{onFocus:p,onBlur:f,disabled:h?void 0:d,href:g,ref:b,tabIndex:v,"aria-disabled":d},c()("root",{disabled:d},m)),l(i,"prefix"),a.createElement("span",{className:c.a.content},s),l(r,"suffix"))},t.defaultProps={as:"button",type:"button"},t.displayName="ButtonNext",t}(a.Component),p=Object(r.a)(d)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),o=n(0),a=n.n(o),i=n(15),s=n(9),c=function(e){return{i18nData:e.i18nData}},u=function(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.i18nData,o=Object(r.__rest)(t,["i18nData"]);return a.a.createElement(s.a,{i18n:n},a.a.createElement(e,Object(r.__assign)({},o)))},n}(a.a.Component);return Object(i.b)(c)(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&(e&&"function"==typeof e.then)}},function(e,t,n){e.exports=n(681)},function(e,t,n){e.exports={brandingsNew:"_1hkRj",brandingLogo:"_3RS1B",upgrade:"zRrqE"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n.stylable.create("root","buttonnext4103836614",{root:"buttonnext4103836614--root",content:"buttonnext4103836614--content",prefix:"buttonnext4103836614--prefix",suffix:"buttonnext4103836614--suffix"},".buttonnext4103836614--root{display:inline-flex;align-items:center;cursor:pointer}.buttonnext4103836614--prefix{flex-shrink:0}.buttonnext4103836614--suffix{flex-shrink:0}.buttonnext4103836614--root[data-buttonnext4103836614-disabled]{cursor:default}.buttonnext4103836614--root[disabled]{pointer-events:none}",2,"buttonnext4103836614"),n.stylable.$.register(t.default)},,,,,,,,,function(e,t,n){var r=n(211),o=n(564),a=n(565),i=n(212),s=n(659),c=n(213);e.exports=function(e,t,n){var u=-1,l=o,d=e.length,p=!0,f=[],h=f;if(n)p=!1,l=a;else if(d>=200){var m=t?null:s(e);if(m)return c(m);p=!1,l=i,h=new r}else h=t?[]:f;e:for(;++u0&&void 0!==arguments[0]?arguments[0]:{},t=void 0;t=(0,a.isWebWorker)()?u:void 0===e.useBeacon||e.useBeacon?c:s;return t=t(e),function(e,n){return t(r({},e,(0,o.getCookieParams)({_client_id:{name:"_wixCIDX"},_uuid:{name:"_wixUIDX",transform:function(e){return"string"==typeof e&&e.split("|")[1]}}})),n)}};var o=n(269),a=n(131),i=n(484);function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,o.buildUrl)(e,t,n);return(0,i.pixelTransport)(r,n.image)}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,o.buildUrl)(e,t,n);return(0,i.beaconTransport)(r).catch((function(){return(0,i.pixelTransport)(r,n.image)}))}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,o.buildUrl)(e,t,n);return(0,i.fetchTransport)(r)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.beaconTransport=function(e){return new Promise((function(t,n){return(0,r.sendBeacon)(e)?t():n(new Error("Transport Error: Cannot send bi using beacons"))}))},t.pixelTransport=function(e,t){return new Promise((function(n,r){var o=t||new window.Image(0,0);o.onload=function(){return n()},o.onerror=function(){return r(new Error("Transport Error: Cannot send bi using pixelTransport"))},o.src=e}))},t.fetchTransport=function(e){return fetch(e,{credentials:"include"}).then((function(e){if(!e.ok)throw Error("Transport Error: Cannot send bi using fetch. Status: "+e.status)}))};var r=n(206)},function(e,t,n){var r=n(437);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(76),o=n(86),a=n(30),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(489),o=n(268),a=n(164),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),a=16-(o-r);if(r=o,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(43),o=n(117),a=n(492),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,s&&o(n[0],n[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++r=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){var r=n(278);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},function(e,t,n){var r=n(521),o=n(115),a=n(133),i=a&&a.isRegExp,s=i?o(i):r;e.exports=s},function(e,t,n){var r=n(64),o=n(45);e.exports=function(e){return o(e)&&"[object RegExp]"==r(e)}},function(e,t,n){var r=n(223)("length");e.exports=r},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+o+")"+"?",u="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[a,i,s].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),l="(?:"+[a+r+"?",r,i,s,n].join("|")+")",d=RegExp(o+"(?="+o+")|"+l+u,"g");e.exports=function(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}},function(e,t,n){var r=n(525),o=n(210),a=n(526);e.exports=function(e){return o(e)?a(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+o+")"+"?",u="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[a,i,s].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),l="(?:"+[a+r+"?",r,i,s,n].join("|")+")",d=RegExp(o+"(?="+o+")|"+l+u,"g");e.exports=function(e){return e.match(d)||[]}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1,m=!f&&!u,v=l()(r,"messageNotification.fontFamily"),b=l()(r,"messageNotification.textColor"),y=l()(r,"messageNotification.borderRadius"),E=l()(r,"messageNotification.callToActionColor"),F=p()(d.summary,{length:70});return a.a.createElement("div",{className:h()(g.a.wrapper,(e={},e[g.a.compactMode]=m,e)),"data-hook":"wrapper",onClick:this.onClickHandler,style:{borderRadius:y,fontFamily:v,color:b},role:"alert","aria-label":n("message-notification.aria-label")},a.a.createElement("div",{className:g.a.header},o&&a.a.createElement("div",{className:g.a.avatar,"data-hook":"avatar"},o),a.a.createElement("div",{className:g.a.headerContent},a.a.createElement("span",{"data-hook":"title",className:g.a.title},i),m&&a.a.createElement("span",{"data-hook":"message",className:g.a.message},F)),a.a.createElement("button",{"data-hook":"close-button",className:g.a.closeButton,onClick:this.onCloseHandler,"aria-label":n("message-notification.close-button.aria-label")},a.a.createElement(c.a,null))),!m&&a.a.createElement("div",{className:g.a.content,"data-hook":"content"},a.a.createElement("span",{"data-hook":"message",className:g.a.message},F),f&&a.a.createElement("div",{"data-hook":"multiple-messages-indication",className:g.a.multipleMessagesIndication},n("message-notification.multiple-messages-indication.text",{numberOfMessages:s.length-1})),u&&a.a.createElement("button",{"data-hook":"call-to-action",className:g.a.callToAction,style:{color:E}},n("message-notification.call-to-action.text"))))},t.defaultProps={withCallToAction:!1},t}(a.a.Component),E=Object(m.a)(Object(b.a)(Object(i.c)()(y)))},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=!("undefined"==typeof window||!window.document||!window.document.createElement);var o=void 0;function a(){return void 0===o&&(o=function(){if(!r)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),o}function i(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function s(e){this.target=e,this.events={}}s.prototype.getEventHandlers=function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},s.prototype.handleEvent=function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach((function(e){e&&e(n)}))},s.prototype.add=function(e,t,n){var r=this,o=this.getEventHandlers(e,n);i(o),0===o.nextHandlers.length&&(o.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,o.handleEvent,n)),o.nextHandlers.push(t);var a=!0;return function(){if(a){a=!1,i(o);var s=o.nextHandlers.indexOf(t);o.nextHandlers.splice(s,1),0===o.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,o.handleEvent,n),o.handleEvent=void 0)}}};function c(e,t,n,r){e.__consolidated_events_handlers__||(e.__consolidated_events_handlers__=new s(e));var o=function(e){if(e)return a()?e:!!e.capture}(r);return e.__consolidated_events_handlers__.add(t,n,o)}},function(e,t,n){e.exports={scrollable:"_3IhJ5",loader:"_21Xvv"}},function(e,t,n){e.exports=n(680)},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();var o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function i(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=i(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:c(s(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var l=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?l:10===e?d:l||d}function f(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===i(n,"position")?f(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i,s,c=a.commonAncestorContainer;if(e!==c&&t!==c||r.contains(o))return"BODY"===(s=(i=c).nodeName)||"HTML"!==s&&f(i.firstElementChild)!==i?f(c):c;var u=h(e);return u.host?m(u.host,t):m(e,h(t).host)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||o;return a[n]}return e[n]}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(t,"top"),o=v(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function E(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:y("Height",t,n,r),width:y("Width",t,n,r)}}var F=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},C=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=p(10),o="HTML"===t.nodeName,a=O(e),s=O(t),u=c(e),l=i(t),d=parseFloat(l.borderTopWidth),f=parseFloat(l.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=D({top:a.top-s.top-d,left:a.left-s.left-f,width:a.width,height:a.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var m=parseFloat(l.marginTop),v=parseFloat(l.marginLeft);h.top-=d-m,h.bottom-=d-m,h.left-=f-v,h.right-=f-v,h.marginTop=m,h.marginLeft=v}return(r&&!n?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(h=g(h,t)),h}function x(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=w(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:v(n),s=t?0:v(n,"left"),c={top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:a};return D(c)}function B(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===i(e,"position"))return!0;var n=s(e);return!!n&&B(n)}function S(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===i(t,"transform");)t=t.parentElement;return t||document.documentElement}function k(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},i=o?S(e):m(e,u(t));if("viewport"===r)a=x(i,o);else{var l=void 0;"scrollParent"===r?"BODY"===(l=c(s(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var d=w(l,i,o);if("HTML"!==l.nodeName||B(i))a=d;else{var p=E(e.ownerDocument),f=p.height,h=p.width;a.top+=d.top-d.marginTop,a.bottom=f+d.top,a.left+=d.left-d.marginLeft,a.right=h+d.left}}var v="number"==typeof(n=n||0);return a.left+=v?n:n.left||0,a.top+=v?n:n.top||0,a.right-=v?n:n.right||0,a.bottom-=v?n:n.bottom||0,a}function T(e){return e.width*e.height}function R(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=k(n,r,a,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},c=Object.keys(s).map((function(e){return _({key:e},s[e],{area:T(s[e])})})).sort((function(e,t){return t.area-e.area})),u=c.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=u.length>0?u[0].key:c[0].key,d=e.split("-")[1];return l+(d?"-"+d:"")}function I(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?S(t):m(t,u(n));return w(n,o,r)}function P(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function j(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function M(e,t,n){n=n.split("-")[0];var r=P(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",c=a?"height":"width",u=a?"width":"height";return o[i]=t[i]+t[c]/2-r[c]/2,o[s]=n===s?t[s]-r[u]:t[j(s)],o}function N(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function L(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=N(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&a(n)&&(t.offsets.popper=D(t.offsets.popper),t.offsets.reference=D(t.offsets.reference),t=n(t,e))})),t}function H(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=I(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=R(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=M(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=L(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function U(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function z(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=J.indexOf(e),r=J.slice(n+1).concat(J.slice(0,n));return t?r.reverse():r}var te="flip",ne="clockwise",re="counterclockwise";function oe(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=i.indexOf(N(i,(function(e){return-1!==e.search(/,|\s/)})));i[s]&&-1===i[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=-1!==s?[i.slice(0,s).concat([i[s].split(c)[0]]),[i[s].split(c)[1]].concat(i.slice(s+1))]:[i];return(u=u.map((function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){var s=void 0;switch(i){case"%p":s=n;break;case"%":case"%r":default:s=r}return D(s)[t]/100*a}if("vh"===i||"vw"===i){return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a}return a}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){K(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var ae={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,a=o.reference,i=o.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",u=s?"width":"height",l={start:A({},c,a[c]),end:A({},c,a[c]+a[u]-i[u])};e.offsets.popper=_({},i,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,a=o.popper,i=o.reference,s=r.split("-")[0],c=void 0;return c=K(+n)?[+n,0]:oe(n,a,i,s),"left"===s?(a.top+=c[0],a.left-=c[1]):"right"===s?(a.top+=c[0],a.left+=c[1]):"top"===s?(a.left+=c[0],a.top-=c[1]):"bottom"===s&&(a.left+=c[0],a.top+=c[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||f(e.instance.popper);e.instance.reference===n&&(n=f(n));var r=z("transform"),o=e.instance.popper.style,a=o.top,i=o.left,s=o[r];o.top="",o.left="",o[r]="";var c=k(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=s,t.boundaries=c;var u=t.priority,l=e.offsets.popper,d={primary:function(e){var n=l[e];return l[e]c[e]&&!t.escapeWithReference&&(r=Math.min(l[n],c[e]-("right"===e?l.width:l.height))),A({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=_({},l,d[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),s=i?"right":"bottom",c=i?"left":"top",u=i?"width":"height";return n[s]a(r[s])&&(e.offsets.popper[c]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Q(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],a=e.offsets,s=a.popper,c=a.reference,u=-1!==["left","right"].indexOf(o),l=u?"height":"width",d=u?"Top":"Left",p=d.toLowerCase(),f=u?"left":"top",h=u?"bottom":"right",m=P(r)[l];c[h]-ms[h]&&(e.offsets.popper[p]+=c[p]+m-s[h]),e.offsets.popper=D(e.offsets.popper);var v=c[p]+c[l]/2-m/2,g=i(e.instance.popper),b=parseFloat(g["margin"+d]),y=parseFloat(g["border"+d+"Width"]),E=v-e.offsets.popper[p]-b-y;return E=Math.max(Math.min(s[l]-m,E),0),e.arrowElement=r,e.offsets.arrow=(A(n={},p,Math.round(E)),A(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(U(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=k(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=j(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case te:i=[r,o];break;case ne:i=ee(r);break;case re:i=ee(r,!0);break;default:i=t.behavior}return i.forEach((function(s,c){if(r!==s||i.length===c+1)return e;r=e.placement.split("-")[0],o=j(r);var u=e.offsets.popper,l=e.offsets.reference,d=Math.floor,p="left"===r&&d(u.right)>d(l.left)||"right"===r&&d(u.left)d(l.top)||"bottom"===r&&d(u.top)d(n.right),m=d(u.top)d(n.bottom),g="left"===r&&f||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===a&&f||b&&"end"===a&&h||!b&&"start"===a&&m||!b&&"end"===a&&v),E=!!t.flipVariationsByContent&&(b&&"start"===a&&h||b&&"end"===a&&f||!b&&"start"===a&&v||!b&&"end"===a&&m),F=y||E;(p||g||F)&&(e.flipped=!0,(p||g)&&(r=i[c+1]),F&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=_({},e.offsets.popper,M(e.instance.popper,e.offsets.reference,e.placement)),e=L(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,a=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=a[n]-(s?o[i?"width":"height"]:0),e.placement=j(t),e.offsets.popper=D(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Q(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=N(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};F(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=_({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(_({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=_({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return _({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&a(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return C(e,[{key:"update",value:function(){return H.call(this)}},{key:"destroy",value:function(){return W.call(this)}},{key:"enableEventListeners",value:function(){return Y.call(this)}},{key:"disableEventListeners",value:function(){return q.call(this)}}]),e}();ie.Utils=("undefined"!=typeof window?window:e).PopperUtils,ie.placements=X,ie.Defaults=ae,t.a=ie}).call(this,n(74))},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(0)),o=a(n(697));function a(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||o.default,e.exports=t.default},function(e,t,n){var r=n(707),o=n(708),a=n(632),i=n(709);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()}},function(e,t,n){"use strict";e.exports=n(710)},function(e,t,n){e.exports={D10:"#162D3D",d10:"#162D3D",D20:"#32536A",d20:"#32536A",D30:"#577083",d30:"#577083",D40:"#7A92A5",d40:"#7A92A5",D50:"#B6C1CD",d50:"#B6C1CD",D55:"#CBD3DC",d55:"#CBD3DC",D60:"#DFE5EB",d60:"#DFE5EB",D70:"#F0F4F7",d70:"#F0F4F7",D80:"#FFFFFF",d80:"#FFFFFF",B00:"#2B81CB",b00:"#2B81CB",B05:"#308DDD",b05:"#308DDD",B10:"#3899EC",b10:"#3899EC",B20:"#4EB7F5",b20:"#4EB7F5",B25:"#A1D7FB",b25:"#A1D7FB",B27:"#B3E0FB",b27:"#B3E0FB",B30:"#C1E4FE",b30:"#C1E4FE",B40:"#DAEFFE",b40:"#DAEFFE",B50:"#EAF7FF",b50:"#EAF7FF",B60:"#F4FAFE",b60:"#F4FAFE",F00:"#AADBFC",f00:"#AADBFC",P00:"#8E21B1",p00:"#8E21B1",P10:"#AA4DC8",p10:"#AA4DC8",P20:"#CD68ED",p20:"#CD68ED",P30:"#E5C9EE",p30:"#E5C9EE",P40:"#EEDBF4",p40:"#EEDBF4",P50:"#FAEEFF",p50:"#FAEEFF",P60:"#FAF7FC",p60:"#FAF7FC",O00:"#EA5F0E",o00:"#EA5F0E",O10:"#FB7D33",o10:"#FB7D33",O20:"#FF9A48",o20:"#FF9A48",R00:"#D6453D",r00:"#D6453D",R05:"#D8504C",r05:"#D8504C",R10:"#EE5951",r10:"#EE5951",R20:"#FF6666",r20:"#FF6666",R30:"#FFD7D7",r30:"#FFD7D7",R40:"#FFE1E1",r40:"#FFE1E1",R50:"#FFEBEB",r50:"#FFEBEB",R60:"#FFF5F5",r60:"#FFF5F5",G00:"#44823F",g00:"#44823F",G05:"#61AD5A",g05:"#61AD5A",G10:"#60BC57",g10:"#60BC57",G20:"#80C979",g20:"#80C979",G30:"#C9EEBC",g30:"#C9EEBC",G40:"#DEF4D4",g40:"#DEF4D4",G50:"#EDF9E5",g50:"#EDF9E5",G60:"#F2FBEF",g60:"#F2FBEF",Y00:"#C68801",y00:"#C68801",Y05:"#EDA200",y05:"#EDA200",Y10:"#FDB10C",y10:"#FDB10C",Y20:"#FAC249",y20:"#FAC249",Y30:"#FEF0BA",y30:"#FEF0BA",Y40:"#FEF4CD",y40:"#FEF4CD",Y50:"#FDF7DF",y50:"#FDF7DF",Y60:"#FFFCF0",y60:"#FFFCF0",A1:"#3370FB",a1:"#3370FB",A2:"#7852D2",a2:"#7852D2",A3:"#17B0E2",a3:"#17B0E2",A4:"#C53E99",a4:"#C53E99",A5:"#FDB10C",a5:"#FDB10C",A6:"#3D9FA1",a6:"#3D9FA1",B1:"#EF73C0",b1:"#EF73C0",B2:"#FF8D41",b2:"#FF8D41",B3:"#ED6779",b3:"#ED6779",B4:"#125b8f",b4:"#125b8f",C1:"#4abd81",c1:"#4abd81",C2:"#2682CD",c2:"#2682CD",C3:"#68A4D5",c3:"#68A4D5",C4:"#FF8E8C",c4:"#FF8E8C","sr-only":"_1RdAM",srOnly:"_1RdAM",wrapper:"wqK4U",widget:"_1aQMT","rotate-ltr":"_2_qDb",rotateLtr:"_2_qDb","rotate-rtl":"_3TCT-",rotateRtl:"_3TCT-"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n.stylable.create("root","IconButton2037295432",{root:"IconButton2037295432--root"},".IconButton2037295432--root{width:36px;height:36px;border-radius:18px;padding:0;box-sizing:border-box;text-align:center;border:1px solid;outline:0;transition-duration:.1s;transition-timing-function:linear;transition-property:background-color,color,border-color;background-color:#3899ec;border-color:#3899ec;color:#fff}.IconButton2037295432--root:hover{background-color:#4eb7f5;border-color:#4eb7f5;color:#fff}.IconButton2037295432--root:active{background-color:#3899ec;border-color:#3899ec;color:#fff}.IconButton2037295432--root[data-buttonnext4103836614-disabled]{background-color:rgba(22,45,61,.3);border-color:transparent;color:#fff}.IconButton2037295432--root[data-focusable3174625688-focus-visible]{box-shadow:0 0 0 3px #aadbfc}.IconButton2037295432--root .buttonnext4103836614--content{line-height:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.IconButton2037295432--root[data-iconbutton2037295432-priority=secondary]{border:solid 1px #3899ec;background:0 0;color:#3899ec}.IconButton2037295432--root[data-iconbutton2037295432-priority=secondary]:hover{color:#fff;border-color:transparent;background-color:#4eb7f5}.IconButton2037295432--root[data-iconbutton2037295432-priority=secondary]:active{background-color:#3899ec;border-color:#3899ec;color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-priority=secondary][data-buttonnext4103836614-disabled]{border-color:rgba(22,45,61,.3);color:rgba(22,45,61,.3);background-color:transparent}.IconButton2037295432--root[data-iconbutton2037295432-skin=inverted]{border:none;background-color:#fff;color:#3899ec}.IconButton2037295432--root[data-iconbutton2037295432-skin=inverted]:hover{color:#fff;border-color:transparent;background:#4eb7f5}.IconButton2037295432--root[data-iconbutton2037295432-skin=inverted]:active{background-color:#3899ec;border-color:#3899ec;color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=inverted][data-buttonnext4103836614-disabled]{background-color:rgba(22,45,61,.3);border-color:transparent;color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=inverted][data-iconbutton2037295432-priority=secondary]{border:none;background-color:#fff;color:#4eb7f5}.IconButton2037295432--root[data-iconbutton2037295432-skin=inverted][data-iconbutton2037295432-priority=secondary]:hover{color:#fff;border-color:transparent;background:#4eb7f5}.IconButton2037295432--root[data-iconbutton2037295432-skin=inverted][data-iconbutton2037295432-priority=secondary]:active{background-color:#3899ec;border-color:#3899ec;color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=inverted][data-iconbutton2037295432-priority=secondary][data-buttonnext4103836614-disabled]{background-color:rgba(22,45,61,.3);border-color:transparent;color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=light]{border:none;background-color:#fff;color:#4eb7f5}.IconButton2037295432--root[data-iconbutton2037295432-skin=light]:hover{background-color:#eaf7ff;color:#3899ec;border-color:#eaf7ff}.IconButton2037295432--root[data-iconbutton2037295432-skin=light]:active{background-color:#daeffe;color:#3899ec}.IconButton2037295432--root[data-iconbutton2037295432-skin=light][data-buttonnext4103836614-disabled]{background-color:rgba(255,255,255,.3);border-color:transparent;color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=light][data-iconbutton2037295432-priority=secondary]{border:solid 1px #fff;background:0 0;color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=light][data-iconbutton2037295432-priority=secondary]:hover{background-color:#eaf7ff;color:#3899ec;border-color:#eaf7ff}.IconButton2037295432--root[data-iconbutton2037295432-skin=light][data-iconbutton2037295432-priority=secondary]:active{background-color:#daeffe;border:solid 1px #daeffe;color:#3899ec}.IconButton2037295432--root[data-iconbutton2037295432-skin=light][data-iconbutton2037295432-priority=secondary][data-buttonnext4103836614-disabled]{border-color:rgba(255,255,255,.3);color:rgba(255,255,255,.3);background-color:transparent}.IconButton2037295432--root[data-iconbutton2037295432-skin=transparent]{border-color:transparent;background-color:rgba(50,83,106,.48);color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=transparent]:hover{border-color:transparent;background-color:rgba(50,83,106,.54);color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=transparent]:active{border-color:transparent;background-color:rgba(50,83,106,.6);color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=transparent][data-buttonnext4103836614-disabled]{background-color:rgba(22,45,61,.2);border-color:transparent;color:rgba(255,255,255,.7)}.IconButton2037295432--root[data-iconbutton2037295432-skin=transparent][data-iconbutton2037295432-priority=secondary]{border-color:transparent;background-color:transparent;color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=transparent][data-iconbutton2037295432-priority=secondary]:hover{border-color:transparent;background-color:rgba(50,83,106,.54);color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=transparent][data-iconbutton2037295432-priority=secondary]:active{border-color:transparent;background-color:rgba(50,83,106,.6);color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=transparent][data-iconbutton2037295432-priority=secondary][data-buttonnext4103836614-disabled]{background-color:transparent;border-color:transparent;color:rgba(255,255,255,.7)}.IconButton2037295432--root[data-iconbutton2037295432-skin=premium]{border:none;background-color:#aa4dc8;color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=premium]:hover{background-color:#cd68ed;color:#fff;border-color:#cd68ed}.IconButton2037295432--root[data-iconbutton2037295432-skin=premium]:active{background-color:#aa4dc8;color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=premium][data-buttonnext4103836614-disabled]{background-color:rgba(22,45,61,.3);border-color:transparent;color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=premium][data-iconbutton2037295432-priority=secondary]{border:solid 1px #aa4dc8;background:0 0;color:#aa4dc8}.IconButton2037295432--root[data-iconbutton2037295432-skin=premium][data-iconbutton2037295432-priority=secondary]:hover{background-color:#cd68ed;color:#fff;border-color:#cd68ed}.IconButton2037295432--root[data-iconbutton2037295432-skin=premium][data-iconbutton2037295432-priority=secondary]:active{background-color:#aa4dc8;border:solid 1px #aa4dc8;color:#fff}.IconButton2037295432--root[data-iconbutton2037295432-skin=premium][data-iconbutton2037295432-priority=secondary][data-buttonnext4103836614-disabled]{border-color:rgba(22,45,61,.3);color:rgba(22,45,61,.3);background-color:transparent}.IconButton2037295432--root[data-iconbutton2037295432-size=tiny]{width:24px;height:24px}.IconButton2037295432--root[data-iconbutton2037295432-size=small]{width:30px;height:30px}.IconButton2037295432--root[data-iconbutton2037295432-size=large]{width:42px;height:42px;border-radius:24px}",7,"IconButton2037295432"),n.stylable.$.register(t.default)},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(1),o=n(252),a=n.n(o),i=n(445),s=n(591);function c(t,n){var o=this;void 0===n&&(n={});var c=n.enabledByDefault,u=void 0===c||c,l=n.cacheFlag,d=void 0===l?"cache":l,p=n.defaultCache,f=void 0===p?new a.a({maxAge:3e5,max:100}):p;return function(n){var a=n.url,c=n.method,l=n.params,p=n.paramsSerializer,h=n.forceUpdate,m=void 0!==n[d]&&null!==n[d]?n[d]:u;if("get"===c&&m){var v=Object(s.a)(m)?m:f,g=Object(i.a)(a,l,p),b=v.get(g);return!b||h?(b=r.__awaiter(o,void 0,void 0,(function(){var e;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t(n)];case 1:return[2,r.sent()];case 2:throw e=r.sent(),v.del(g),e;case 3:return[2]}}))})),v.set(g,b),b):("info"===e.env.LOGGER_LEVEL&&console.info("[axios-extensions] request cached by cache adapter --\x3e url: "+g),b)}return t(n)}}}).call(this,n(114))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var r=n(1),o=n(252),a=n.n(o),i=n(445);function s(t,n){var o=this;void 0===n&&(n={});var s=n.threshold,c=void 0===s?1e3:s,u=n.cache,l=void 0===u?new a.a({max:10}):u;return function(n){var a=n.url,s=n.method,u=n.params,d=n.paramsSerializer,p=Object(i.a)(a,u,d),f=Date.now(),h=l.get(p)||{timestamp:f};if("get"===s){if(f-h.timestamp<=c){var m=h.value;if(m)return"info"===e.env.LOGGER_LEVEL&&console.info("[axios-extensions] request cached by throttle adapter --\x3e url: "+p),m}return function(e,n){var a=r.__awaiter(o,void 0,void 0,(function(){var o,a;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t(n)];case 1:return o=r.sent(),l.set(e,{timestamp:Date.now(),value:Promise.resolve(o)}),[2,o];case 2:throw a=r.sent(),l.del(e),a;case 3:return[2]}}))}));return l.set(e,{timestamp:Date.now(),value:a}),a}(p,n)}return t(n)}}}).call(this,n(114))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n(1);function o(t,n){var o=this;void 0===n&&(n={});var a=n.times,i=void 0===a?2:a;return function(n){return r.__awaiter(o,void 0,void 0,(function(){var o,a,s,c,u=this;return r.__generator(this,(function(l){return o=n.retryTimes,a=void 0===o?i:o,!1,s=0,[2,(c=function(){return r.__awaiter(u,void 0,void 0,(function(){var o;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t(n)];case 1:return[2,r.sent()];case 2:if(o=r.sent(),a===s)throw o;return s++,"info"===e.env.LOGGER_LEVEL&&console.info("[axios-extensions] request start retrying --\x3e url: "+n.url+" , time: "+s),[2,c()];case 3:return[2]}}))}))})()]}))}))}}}).call(this,n(114))},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],a=0;a=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=r.charAt(i):s<128?o+=a[s]:s<2048?o+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?o+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(i)),o+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,a){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return o(t)&&!o(n)&&(s=i(t,a)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var i=t[o];i&&"object"==typeof i&&n&&"object"==typeof n?t[o]=e(i,n,a):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var i=n[o];return r.call(t,o)?t[o]=e(t[o],i,a):t[o]=i,t}),s)}}},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,n){var r=n(656);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(471),o=n(688)("%Function%"),a=o.apply,i=o.call;e.exports=function(){return r.apply(i,arguments)},e.exports.apply=function(){return r.apply(a,arguments)}},function(e,t,n){"use strict";var r=function(e){return e!=e};e.exports=function(e,t){return 0===e&&0===t?1/e==1/t:e===t||!(!r(e)||!r(t))}},function(e,t,n){"use strict";var r=n(572);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},function(e,t,n){"use strict";var r=Object,o=TypeError;e.exports=function(){if(null!=this&&this!==r(this))throw new o("RegExp.prototype.flags getter called on non-object");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}},function(e,t,n){"use strict";var r=n(574),o=n(267).supportsDescriptors,a=Object.getOwnPropertyDescriptor,i=TypeError;e.exports=function(){if(!o)throw new i("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var e=a(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof/a/.dotAll)return e.get}return r}},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2)),o=s(n(0)),a=s(n(35)),i=n(577);n(578);function s(e){return e&&e.__esModule?e:{default:e}}t.UNMOUNTED="unmounted";t.EXITED="exited";t.ENTERING="entering";t.ENTERED="entered";t.EXITING="exiting";var c=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,a=n.transitionGroup,i=a&&!a.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null},i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=a.default.findDOMNode(this);"entering"===t?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},i.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts(),i=o?a.appear:a.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:"entering"},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,i,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:"entered"},(function(){n.props.onEntered(e)}))},i.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var a=o.default.Children.only(n);return o.default.cloneElement(a,r)},r}(o.default.Component);function u(){}c.contextTypes={transitionGroup:r.object},c.childContextTypes={transitionGroup:function(){}},c.propTypes={},c.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:u,onEntering:u,onEntered:u,onExit:u,onExiting:u,onExited:u},c.UNMOUNTED=0,c.EXITED=1,c.ENTERING=2,c.ENTERED=3,c.EXITING=4;var l=(0,i.polyfill)(c);t.default=l},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==s){var c=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return i})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(2))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(2)),o=s(n(0)),a=n(577),i=n(705);function s(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),a=l(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?a:o.default.createElement(t,r,a)},r}(o.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,a.polyfill)(d);t.default=p,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";var r=n(8),o=function(){function e(e){var t=e.title,n=e.lines,o=e.buttons,a=e.imageUrl,i=e.orientation,s=void 0===i?r.MessageOrientation.Landscape:i;this._dto={title:t,lines:n,buttons:o,imageUrl:a,orientation:s}}return Object.defineProperty(e.prototype,"title",{get:function(){return this._dto.title},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lines",{get:function(){return this._dto.lines},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buttons",{get:function(){return this._dto.buttons},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageUrl",{get:function(){return this._dto.imageUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this._dto.orientation},enumerable:!0,configurable:!0}),e.prototype.toJSON=function(){return{title:this.title,image:this.imageUrl,lines:this.lines,buttons:this.buttons,orientation:this.orientation}},e}();t.a=o},function(e,t,n){"use strict";var r=function(){function e(e){var t=e.appName,n=e.appData;this._appName=t,this._appData=n}return Object.defineProperty(e.prototype,"appName",{get:function(){return this._appName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appData",{get:function(){return this._appData},enumerable:!0,configurable:!0}),e.prototype.toJSON=function(){return{appName:this.appName,appData:this.appData}},e}();t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(8),o=n(259),a=n.n(o),i=n(69),s=n(168),c=function(e){var t=e.message,n=e.groupPosition,r=e.showSentTime,o=Object.assign({},t.dto),a=Object.assign({},t.transit);return new i.a(o,a,n,r)};c=a()(500,(function(e,t){return e.message===t.message&&e.groupPosition===t.groupPosition&&e.showSentTime===t.showSentTime}))(c);var u=function(){function e(e){var t=s.a.isExperimentOn(r.experiments.MessageGroupingNewTime)?180:60;this._thresholdMillis=60*(e||t)*1e3}return e.prototype.addGroups=function(e){var t=this;return e.map((function(n,r){var o=t._strategy(e[r-1],n,e[r+1]),a=o.groupPosition,i=o.showSentTime;return c({message:n,groupPosition:a,showSentTime:i})}))},e.prototype.getPartsGrouping=function(e){var t=this,n=e.messageParts.length,r=e.groupPosition,o=e.showSentTime;return e.messageParts.map((function(e,a){return{groupPosition:t._classifyPart(r,a,n),showSentTime:t._showPartSentTime(o,a)}}))},e.prototype.isFirstMessage=function(e){return e.groupPosition===r.MessagePositionInGroup.SINGLE||e.groupPosition===r.MessagePositionInGroup.START},e.prototype._classifyPart=function(e,t,n){return 1===n?e:this._isFirstPartOfStartingMessage(t,e)?r.MessagePositionInGroup.START:this._isLastPartOfClosingMessage(t,n,e)?r.MessagePositionInGroup.END:r.MessagePositionInGroup.MIDDLE},e.prototype._isLastPartOfClosingMessage=function(e,t,n){return e===t-1&&(n===r.MessagePositionInGroup.END||n===r.MessagePositionInGroup.SINGLE)},e.prototype._isFirstPartOfStartingMessage=function(e,t){return 0===e&&(t===r.MessagePositionInGroup.START||t===r.MessagePositionInGroup.SINGLE)},e.prototype._strategy=function(e,t,n){return{groupPosition:this._position({olderMessage:e,currentMessage:t,newerMessage:n}),showSentTime:this._showSentTime(e,t)}},e.prototype._isSameTimeWindow=function(e,t){var n=new Date(e.createdAt),r=new Date(t.createdAt);return Math.abs(r.getTime()-n.getTime())0&&void 0!==arguments[0]?arguments[0]:{};t.allowLocal;l(this,e);var n="[a-zA-Z0-9](?:[a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?",r="[a-zA-Z](?:[a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?",o="^(?:"+n+"\\.)*("+r+")\\.?$";this._domainRegex=new RegExp(o)}return o(e,[{key:"_chompLeadingDot",value:function(e){return"."===e[0]?e.substring(1):e}},{key:"_unicodeToASCII",value:function(e){return c.toASCII(e)}},{key:"_arrayContains",value:function(e,t){return(0,s.default)(e,t)}},{key:"isValidCountryCodeTld",value:function(e){var t=this._chompLeadingDot(this._unicodeToASCII(e).toLowerCase());return this._arrayContains(a.countryCodeTlds,t)}},{key:"isValidGenericTld",value:function(e){var t=this._chompLeadingDot(this._unicodeToASCII(e).toLowerCase());return this._arrayContains(a.genericTlds,t)}},{key:"isValidInfrastructureTld",value:function(e){var t=this._chompLeadingDot(this._unicodeToASCII(e).toLowerCase());return this._arrayContains(a.infrastructureTlds,t)}},{key:"isValidTld",value:function(e){return e=this._unicodeToASCII(e),this.isValidInfrastructureTld(e)||this.isValidGenericTld(e)||this.isValidCountryCodeTld(e)}},{key:"extractTld",value:function(e){if(!e)return!1;if((e=this._unicodeToASCII(e)).length>253)return!1;var t=e.match(this._domainRegex);return t?t[1]:null}},{key:"isValid",value:function(e){if(!e)return!1;if((e=this._unicodeToASCII(e)).length>253)return!1;var t=e.match(this._domainRegex);return!!(t&&t.length>1)&&(this.isValidTld(t[1])&&t[0]!==t[1])}}]),e}()},function(e,t,n){var r=n(653)(n(629));e.exports=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n.stylable.create("root","Tooltip600035446",{root:"Tooltip600035446--root"},".Tooltip600035446--root .Popover2728674944--popoverContent{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word}",2,"Tooltip600035446"),n.stylable.$.register(t.default)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n.stylable.create("root","Tooltip4260280038",{root:"Tooltip4260280038--root",contentArrowSize:"8px"},'.Tooltip4260280038--root{display:inline}.Tooltip4260280038--root[data-hook*=popover-portal]{display:block}.Tooltip4260280038--root .Popover2728674944--popoverContent{border:none;border-radius:8px;box-sizing:border-box;box-shadow:0 6px 6px 0 rgba(22,45,61,.06),0 0 18px 0 rgba(22,45,61,.12);-webkit-font-smoothing:antialiased;font-size:14px;line-height:18px;font-weight:400;font-weight:var(--wsr-font-weight-regular,400);font-family:HelveticaNeueW01-55Roma,HelveticaNeueW02-55Roma,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-family:var(--wsr-font-family,HelveticaNeueW01-55Roma,HelveticaNeueW02-55Roma),"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;padding:12px 24px;color:#fff;background:#162d3d}.Tooltip4260280038--root[data-tooltip4260280038-size=small] .Popover2728674944--popoverContent{border:none;border-radius:8px;box-sizing:border-box;box-shadow:0 6px 6px 0 rgba(22,45,61,.06),0 0 18px 0 rgba(22,45,61,.12);-webkit-font-smoothing:antialiased;font-size:12px;line-height:15px;font-weight:400;font-weight:var(--wsr-font-weight-regular,400);font-family:HelveticaNeueW01-55Roma,HelveticaNeueW02-55Roma,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-family:var(--wsr-font-family,HelveticaNeueW01-55Roma,HelveticaNeueW02-55Roma),"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;padding:8px 12px 7px 12px;color:#fff;background:#162d3d}.Tooltip4260280038--root .Popover2728674944--popover .Popover2728674944--arrow{box-sizing:border-box;width:8px;height:8px;background:0 0;border-color:transparent #162d3d #162d3d transparent;transform:rotateZ(45deg);box-shadow:3px 3px 6px rgba(0,0,0,.1)}.Tooltip4260280038--root .Popover2728674944--popover[data-placement] .Popover2728674944--arrow{border-width:5px;border-color:transparent #162d3d #162d3d transparent;margin:0}.Tooltip4260280038--root[data-tooltip4260280038-size=small] .Popover2728674944--popover[data-placement*=right] .Popover2728674944--arrow{display:none}.Tooltip4260280038--root .Popover2728674944--popover[data-placement*=right].Popover2728674944--root .Popover2728674944--withArrow{padding-left:6px}.Tooltip4260280038--root .Popover2728674944--popover[data-placement*=right] .Popover2728674944--arrow{transform:rotateZ(135deg);left:2px;margin-top:8px;margin-bottom:8px}.Tooltip4260280038--root[data-tooltip4260280038-size=small] .Popover2728674944--popover[data-placement*=left] .Popover2728674944--arrow{display:none}.Tooltip4260280038--root .Popover2728674944--popover[data-placement*=left].Popover2728674944--root .Popover2728674944--withArrow{padding-right:6px}.Tooltip4260280038--root .Popover2728674944--popover[data-placement*=left] .Popover2728674944--arrow{transform:rotateZ(-45deg);right:2px;margin-top:8px;margin-bottom:8px}.Tooltip4260280038--root[data-tooltip4260280038-size=small] .Popover2728674944--popover[data-placement*=top] .Popover2728674944--arrow{display:none}.Tooltip4260280038--root .Popover2728674944--popover[data-placement*=top].Popover2728674944--root .Popover2728674944--withArrow{padding-bottom:6px}.Tooltip4260280038--root .Popover2728674944--popover[data-placement*=top] .Popover2728674944--arrow{transform:rotateZ(45deg);bottom:2px;margin-left:8px;margin-right:8px}.Tooltip4260280038--root[data-tooltip4260280038-size=small] .Popover2728674944--popover[data-placement*=bottom] .Popover2728674944--arrow{display:none}.Tooltip4260280038--root .Popover2728674944--popover[data-placement*=bottom].Popover2728674944--root .Popover2728674944--withArrow{padding-top:6px}.Tooltip4260280038--root .Popover2728674944--popover[data-placement*=bottom] .Popover2728674944--arrow{transform:rotateZ(-135deg);top:2px;margin-left:8px;margin-right:8px}.Tooltip4260280038--root .Popover2728674944--popoverAnimation-enter{opacity:.85;transform:scale(.9)}.Tooltip4260280038--root .Popover2728674944--popoverAnimation-enter-active{opacity:1;transform:scale(1);transition:opacity .3s cubic-bezier(.23,1,.32,1),transform .3s cubic-bezier(.23,1,.32,1)}',7,"Tooltip4260280038"),n.stylable.$.register(t.default)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":void 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={Page:1,Notification:4e3,Modal:5e3,Tooltip:6e3};function o(e){var t=r[e];if(!t)throw new Error("ZIndex: Layer with name ".concat(e," does NOT exist. Layers = ").concat(Object.keys(r).join(", ")));return t}},function(e,t,n){e.exports=n(640)},function(e,t,n){"use strict";function r(e){return!!(e.set&&e.get&&e.del&&"function"==typeof e.get&&"function"==typeof e.set&&"function"==typeof e.del)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(654),o=n(655),a=n(563);e.exports={formats:a,parse:o,stringify:r}},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(74))},function(e,t,n){var r=n(661),o=n(81);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(469);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?r(e,void 0,t):[]}},function(e,t,n){var r=n(205),o=n(246),a=n(469),i=n(247),s=o((function(e){return a(r(e,1,i,!0))}));e.exports=s},function(e,t,n){var r=n(670),o=n(671),a=n(79);e.exports=function(e,t){return e&&e.length?r(e,a(t,2),o):void 0}},function(e,t,n){var r=n(631),o=n(205),a=n(246),i=n(247),s=a((function(e,t){return i(e)?r(e,o(t,1,i,!0)):[]}));e.exports=s},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}t.__esModule=!0;var o=r();o.withExtraArgument=r,t.default=o},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(457),o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=[i,s,c],n=e.promiseTypeSuffixes||t,u=e.promiseTypeDelimiter||"_";return function(e){var t=e.dispatch;return function(e){return function(i){var s=void 0,c=void 0;if(!i.payload)return e(i);var l=i.payload;if(Object(r.a)(l))s=l;else if(Object(r.a)(l.promise))s=l.promise,c=l.data;else{if("function"!=typeof l&&"function"!=typeof l.promise)return e(i);if(s=l.promise?l.promise():l(),c=l.promise?l.data:void 0,!Object(r.a)(s))return e(a({},i,{payload:s}))}var d=i.type,p=i.meta,f=o(n,3),h=f[0],m=f[1],v=f[2],g=function(e,t){return a({type:[d,t?v:m].join(u)},null==e?{}:{payload:e},void 0!==p?{meta:p}:{},t?{error:!0}:{})};return e(a({type:[d,h].join(u)},void 0!==c?{payload:c}:{},void 0!==p?{meta:p}:{})),s.then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=g(e,!1);return t(n),{value:e,action:n}}),(function(e){var n=g(e,!0);throw t(n),e}))}}}}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.dispatch;return"function"==typeof n?u()({dispatch:n}):(e&&e.env,null)}}).call(this,n(114))},function(e,t,n){var r=n(438);e.exports=function(e){return r(e,5)}},function(e,t,n){var r=n(566);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){e.exports=n(674)},function(e,t,n){var r=n(79),o=n(675);e.exports=function(e,t){var n=[];if(!e||!e.length)return n;var a=-1,i=[],s=e.length;for(t=r(t,3);++aa{color:#3899ec;text-decoration:none}.Text179056388--root>a:hover{color:#4eb7f5}.Text179056388--root>ul{padding:0;list-style-type:none}.Text179056388--root>ul ul{padding:6px 0;list-style-type:none}.Text179056388--root>ul li{position:relative;padding-left:30px}.Text179056388--root>ul li::before{content:\'\';position:absolute;display:block;width:24px;height:24px;left:0;top:1px;background-color:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'24\' height=\'24\' viewBox=\'0 0 24 24\'%3E%3Cpath d=\'M9.5,14.4393398 L16.9393398,7 C17.232233,6.70710678 17.7071068,6.70710678 18,7 C18.2928932,7.29289322 18.2928932,7.76776695 18,8.06066017 L9.5,16.5606602 L6,13.0606602 C5.70710678,12.767767 5.70710678,12.2928932 6,12 C6.29289322,11.7071068 6.76776695,11.7071068 7.06066017,12 L9.5,14.4393398 Z\'/%3E%3C/svg%3E") no-repeat center/contain;mask:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'24\' height=\'24\' viewBox=\'0 0 24 24\'%3E%3Cpath d=\'M9.5,14.4393398 L16.9393398,7 C17.232233,6.70710678 17.7071068,6.70710678 18,7 C18.2928932,7.29289322 18.2928932,7.76776695 18,8.06066017 L9.5,16.5606602 L6,13.0606602 C5.70710678,12.767767 5.70710678,12.2928932 6,12 C6.29289322,11.7071068 6.76776695,11.7071068 7.06066017,12 L9.5,14.4393398 Z\'/%3E%3C/svg%3E") no-repeat center/contain}.Text179056388--root[data-text179056388-size=small]>ul li{padding-left:25px}.Text179056388--root[data-text179056388-size=small]>ul li::before{width:21px;height:21px;top:-1px}.Text179056388--root[data-text179056388-size=tiny]>ul li{padding-left:21px}.Text179056388--root[data-text179056388-size=tiny]>ul li::before{width:18px;height:18px;top:-1px;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'18\' height=\'18\' viewBox=\'0 0 18 18\'%3E%3Cpath d=\'M11.9393398,6 C12.232233,5.70710678 12.7071068,5.70710678 13,6 C13.2928932,6.29289322 13.2928932,6.76776695 13,7.06066017 L7.5,12.5606602 L5,10.0606602 C4.70710678,9.76776695 4.70710678,9.29289322 5,9 C5.29289322,8.70710678 5.76776695,8.70710678 6.06066017,9 L7.5,10.4393398 L11.9393398,6 Z\'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'18\' height=\'18\' viewBox=\'0 0 18 18\'%3E%3Cpath d=\'M11.9393398,6 C12.232233,5.70710678 12.7071068,5.70710678 13,6 C13.2928932,6.29289322 13.2928932,6.76776695 13,7.06066017 L7.5,12.5606602 L5,10.0606602 C4.70710678,9.76776695 4.70710678,9.29289322 5,9 C5.29289322,8.70710678 5.76776695,8.70710678 6.06066017,9 L7.5,10.4393398 L11.9393398,6 Z\'/%3E%3C/svg%3E")}',2,"Text179056388"),n.stylable.$.register(t.default)},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(100),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var i=l(n);d&&(i=i.concat(d(n)));for(var s=c(t),m=c(n),v=0;v=0;a--)if(b[a]!=y[a])return!1;for(a=b.length-1;a>=0;a--)if(f=b[a],!l(e[f],t[f],n))return!1;return!0}(e,t,f))}function d(e){return null==e}function p(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}e.exports=l},function(e,t,n){"use strict";var r=s(n(699)),o=s(n(704)),a=s(n(579)),i=s(n(576));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:i.default,TransitionGroup:a.default,ReplaceTransition:o.default,CSSTransition:r.default}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n.stylable.create("root","Heading2873412161",{root:"Heading2873412161--root"},'.Heading2873412161--root{font-weight:400;margin:0}.Heading2873412161--root[data-heading2873412161-appearance=H1]{font-family:HelveticaNeueW01-65Medi,HelveticaNeueW02-65Medi,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-family:var(--wsr-font-family,HelveticaNeueW01-65Medi,HelveticaNeueW02-65Medi),"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-weight:400;font-weight:var(--wsr-font-weight-bold,400);font-size:36px;line-height:48px;color:#162d3d}.Heading2873412161--root[data-heading2873412161-appearance=H2]{font-family:HelveticaNeueW01-65Medi,HelveticaNeueW02-65Medi,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-family:var(--wsr-font-family,HelveticaNeueW01-65Medi,HelveticaNeueW02-65Medi),"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-weight:400;font-weight:var(--wsr-font-weight-bold,400);font-size:28px;line-height:36px;color:#162d3d}.Heading2873412161--root[data-heading2873412161-appearance=H3]{font-family:HelveticaNeueW01-55Roma,HelveticaNeueW02-55Roma,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-family:var(--wsr-font-family,HelveticaNeueW01-55Roma,HelveticaNeueW02-55Roma),"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-weight:400;font-weight:var(--wsr-font-weight-regular,400);font-size:20px;line-height:24px;color:#162d3d}.Heading2873412161--root[data-heading2873412161-appearance=H4]{font-family:HelveticaNeueW01-55Roma,HelveticaNeueW02-55Roma,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-family:var(--wsr-font-family,HelveticaNeueW01-55Roma,HelveticaNeueW02-55Roma),"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-weight:400;font-weight:var(--wsr-font-weight-regular,400);font-size:18px;line-height:24px;color:#162d3d}.Heading2873412161--root[data-heading2873412161-appearance=H5]{font-family:HelveticaNeueW01-65Medi,HelveticaNeueW02-65Medi,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-family:var(--wsr-font-family,HelveticaNeueW01-65Medi,HelveticaNeueW02-65Medi),"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-weight:400;font-weight:var(--wsr-font-weight-bold,400);font-size:12px;line-height:24px;color:#32536a;text-transform:uppercase;letter-spacing:1px}.Heading2873412161--root[data-heading2873412161-appearance=H6]{font-family:HelveticaNeueW01-65Medi,HelveticaNeueW02-65Medi,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-family:var(--wsr-font-family,HelveticaNeueW01-65Medi,HelveticaNeueW02-65Medi),"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA",meiryo,"\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif;font-weight:400;font-weight:var(--wsr-font-weight-bold,400);font-size:10px;line-height:18px;color:#162d3d;text-transform:uppercase;letter-spacing:1.2px}.Heading2873412161--root[data-heading2873412161-appearance=H1][data-heading2873412161-light],.Heading2873412161--root[data-heading2873412161-appearance=H2][data-heading2873412161-light],.Heading2873412161--root[data-heading2873412161-appearance=H3][data-heading2873412161-light],.Heading2873412161--root[data-heading2873412161-appearance=H4][data-heading2873412161-light]{color:#fff}.Heading2873412161--root[data-heading2873412161-appearance=H5][data-heading2873412161-light]{color:#fff}.Heading2873412161--root[data-heading2873412161-appearance=H6][data-heading2873412161-light]{color:#fff}',2,"Heading2873412161"),n.stylable.$.register(t.default)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n.stylable.create("root","Popover3881351008",{root:"Popover3881351008--root",withArrow:"Popover2728674944--withArrow",contentArrowSize:"8px"},".Popover3881351008--root[data-hook*=popover-portal]{display:block}.Popover3881351008--root .Popover2728674944--popoverContent{border:none;border-radius:8px;box-sizing:border-box;box-shadow:0 6px 6px 0 rgba(22,45,61,.06),0 0 18px 0 rgba(22,45,61,.12);-webkit-font-smoothing:antialiased;font-size:14px;line-height:18px;color:#162d3d;background:#fff}.Popover3881351008--root .Popover2728674944--popover .Popover2728674944--arrow{width:8px;height:8px;background:0 0;box-sizing:border-box;transform:rotateZ(45deg);box-shadow:3px 3px 6px rgba(0,0,0,.1)}.Popover3881351008--root .Popover2728674944--popover[data-placement] .Popover2728674944--arrow{border-width:4px;border-color:transparent #fff #fff transparent;margin:0}.Popover3881351008--root .Popover2728674944--popover[data-placement*=right].Popover2728674944--withArrow{padding-left:6px}.Popover3881351008--root .Popover2728674944--popover[data-placement*=right] .Popover2728674944--arrow{transform:rotateZ(135deg);left:2px;margin-top:8px;margin-bottom:8px}.Popover3881351008--root .Popover2728674944--popover[data-placement*=left].Popover2728674944--withArrow{padding-right:6px}.Popover3881351008--root .Popover2728674944--popover[data-placement*=left] .Popover2728674944--arrow{transform:rotateZ(-45deg);right:2px;margin-top:8px;margin-bottom:8px}.Popover3881351008--root .Popover2728674944--popover[data-placement*=top].Popover2728674944--withArrow{padding-bottom:6px}.Popover3881351008--root .Popover2728674944--popover[data-placement*=top] .Popover2728674944--arrow{transform:rotateZ(45deg);bottom:2px;margin-left:8px;margin-right:8px}.Popover3881351008--root .Popover2728674944--popover[data-placement*=bottom].Popover2728674944--withArrow{padding-top:6px}.Popover3881351008--root .Popover2728674944--popover[data-placement*=bottom] .Popover2728674944--arrow{transform:rotateZ(-135deg);top:2px;margin-left:8px;margin-right:8px}.Popover3881351008--root[data-popover3881351008-theme=dark] .Popover2728674944--popoverContent{color:#fff;background:#162d3d}.Popover3881351008--root[data-popover3881351008-theme=dark] .Popover2728674944--popover .Popover2728674944--arrow{border-color:transparent #162d3d #162d3d transparent}.Popover3881351008--root .Popover2728674944--popoverAnimation-enter{opacity:.85;transform:scale(.9)}.Popover3881351008--root .Popover2728674944--popoverAnimation-enter-active{opacity:1;transform:scale(1);transition:opacity .3s cubic-bezier(.23,1,.32,1),transform .3s cubic-bezier(.23,1,.32,1)}",7,"Popover3881351008"),n.stylable.$.register(t.default)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){var s=e.displayName||e.name||"Wrapper",c=t.displayName||t.name||"WrappedComponent",u=n&&void 0!==n.hoistStatics?n.hoistStatics:i.hoistStatics,l=n&&void 0!==n.delegateTo?n.delegateTo:i.delegateTo;"function"==typeof n&&(l=n);if(u){Object.getOwnPropertyNames(t).filter((function(e){return!o[e]&&!a[e]})).forEach((function(n){e[n]&&console.warn("Static method "+n+" already exists in wrapper component "+s+", and won't be hoisted. Consider changing the name on "+c+"."),e[n]=t[n]}))}return Object.getOwnPropertyNames(t.prototype).filter((function(e){return!r[e]})).forEach((function(n){e.prototype[n]?console.warn("Method "+n+" already exists in wrapper component "+s+", and won't be hoisted. Consider changing the name on "+c+"."):e.prototype[n]=function(){for(var e,r=arguments.length,o=Array(r),a=0;a=200&&(d=c,p=!1,t=new r(t));e:for(;++le.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?a.a.createElement("div",{"data-hook":"new-message-badge",className:S},a.a.createElement("span",{"data-hook":"new-message-badge-count",className:c.a.counter},D)):null;return a.a.createElement("div",null,k,a.a.createElement(v.a,{theme:_},a.a.createElement("div",{"data-hook":"chat-widget",className:""+this.rootClasses(),style:this.widgetInlineStyle()},a.a.createElement(f.a,{clickable:A||!d,isHeaderFolded:r,onProfileClick:O,shouldApplyFoldAnimation:!0,shouldApplyUnfoldAnimation:!0,toggleHeaderFolded:this.toggleHeaderFolded,shouldApplyExpandAnimation:!g&&o,shouldApplyCollapseAnimation:!g&&s,isExpanded:d,hideCollapseButton:w,onClickBack:E,onCancel:C,onlineTitle:p,onlineMessage:h,avatar:m,isMobile:g,availabilityStatus:F,locale:y,menu:x,typicallyReplies:B}),a.a.Children.map(this.props.children,(function(e){return a.a.isValidElement(e)?a.a.cloneElement(e,{foldHeader:t.foldHeader,unfoldHeader:t.unfoldHeader,isHeaderFolded:r,appMode:i.b.Widget,isVisible:t.isChatRoomVisible(),isCollapsedAndRounded:t.isCollapsedAndRounded(),shouldApplyExpandAnimation:!g&&o,shouldApplyCollapseAnimation:!g&&s,isMobile:g,eventHooks:b,locale:y,isExpanded:d}):e})))))},t.defaultProps={eventHooks:{},available:!0,isMobile:!1,unfoldable:!0,initiallyApplyExpandAnimation:!0},t.isActive=function(e){return e&&!document.hidden&&e.props.isExpanded},t}(a.a.Component);t.a=Object(m.a)({isChatActivePredicate:g.isActive})(g)},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.NONE="none",e.INCOMING="incoming",e.OUTGOING="outgoing",e.BOTH="both"}(r||(r={}))},function(e,t,n){"use strict";var r=n(1),o=n(0),a=n(2),i=n.n(a),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.getChildContext=function(){var e=this.props;return{onImageMessageClick:e.onImageMessageClick,allowInput:e.allowInput,disableAutoMessages:e.disableAutoMessages}},t.prototype.render=function(){return o.Children.only(this.props.children)},t.defaultProps={disableAutoMessages:!1},t.childContextTypes={onImageMessageClick:i.a.func,allowInput:i.a.bool,disableAutoMessages:i.a.bool},t}(o.Component);t.a=s},,,,function(e,t,n){"use strict";var r,o,a,i=(r=n(641))&&r.__esModule?r:{default:r};function s(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}var c=function(){function e(e,t){var r=(void 0===t?{}:t).atomicServerTime,i=void 0!==r&&r;!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"atomicServerTime",!1),a=n(31),e=e||a(),o=n(119),n(258),n(257),this.name=e,this.listeningOnRefs=[],this.db=null,this.terminated=!1,this._initializationInProgress=Promise.resolve(),this.atomicServerTime=i}var t=e.prototype;return t.connect=function(){var e,t=(e=i.default.mark((function e(t,n){var r=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._assertInstanceAlive(),e.next=3,this._initializationInProgress;case 3:return this._initializationInProgress=new Promise((function(e){return r._initializationCompleted=e})),e.abrupt("return",Promise.resolve().then((function(){return r.db?(r._initializationCompleted(),r.db.goOnline()):Promise.resolve().then((function(){return o.initializeApp(t,r.name)})).then((function(e){return e.auth().signInWithCustomToken(n).then((function(){if(r._initializationCompleted(),r.terminated)return e.delete();r.db=e.database()}))}))})).catch((function(e){throw r._initializationCompleted(),e})));case 5:case"end":return e.stop()}}),e,this)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){s(a,r,o,i,c,"next",e)}function c(e){s(a,r,o,i,c,"throw",e)}i(void 0)}))});return function(e,n){return t.apply(this,arguments)}}(),t.disconnect=function(){this.db&&(this.listeningOnRefs.forEach((function(e){return e.off()})),this.listeningOnRefs.length=0,this.db.goOffline())},t.terminate=function(){if(this.terminated=!0,this.disconnect(),this.db)try{return this.db.app.delete()}finally{this.db=null}},t.getFirebaseServerTime=function(e){if(!this.db)throw new Error("FirebaseService.getFirebaseServerTime: not connected! (path="+u(e)+")");if(this.atomicServerTime)return this.db.ref("/.info/serverTimeOffset").once("value").then((function(e){return e.val()+Date.now()}));var t=this.db.ref(e);return t.set(o.database.ServerValue.TIMESTAMP).then((function(){return t.once("value").then((function(e){return e.val()}))}))},t.getValuesAtPath=function(e){var t=e.path;if(!this.db)throw new Error("FirebaseService.getValuesAsPath: not connected! (path="+u(t)+")");return this.db.ref(t).once("value").then((function(e){return e.val()}))},t.listenOnRef=function(e,t){return this._listenOnRefWithQuery(e,t)},t.listenOnPath=function(e,t){if(!this.db)throw new Error("FirebaseService.listenOnPath: not connected! (path="+u(e)+")");var n=this.db.ref(e);return this._listenOnRefWithQuery(n,t)},t._listenOnRefWithQuery=function(e,t){var n=this,r=void 0===t?{}:t,o=r.orderBy,a=r.startAt;return o&&(e=e.orderByChild(o)),a&&(e=e.startAt(a)),{when:function(t){return{call:function(r){e.on(t,(function(e){try{var t=r({key:e.key,value:e.val(),ref:e.ref});t&&"function"==typeof t.catch&&t.catch(console.error)}catch(e){console.error(e)}})),n.listeningOnRefs.push(e)}}}}},t._assertInstanceAlive=function(){if(this.terminated)throw new Error("Can't connect a firebase service after termination, please use a different instance (name="+this.name+")")},e}();function u(e){var t=(e||"").split("/");return t[t.length-1]}e.exports=c},function(e,t,n){e.exports=n(642)},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var o=t&&t.prototype instanceof l?t:l,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return _()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=y(i,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,i),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u={};function l(){}function d(){}function p(){}var f={};f[o]=function(){return this};var h=Object.getPrototypeOf,m=h&&h(h(A([])));m&&m!==t&&n.call(m,o)&&(f=m);var v=p.prototype=l.prototype=Object.create(f);function g(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function b(e,t){var r;this._invoke=function(o,a){function i(){return new t((function(r,i){!function r(o,a,i,s){var u=c(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,s)}))}s(u.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function y(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,y(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function F(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),F(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;F(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";n.r(t);var r=n(252),o=n.n(r);n.d(t,"Cache",(function(){return o.a}));var a=n(558);n.d(t,"cacheAdapterEnhancer",(function(){return a.a}));var i=n(560);n.d(t,"retryAdapterEnhancer",(function(){return i.a}));var s=n(559);n.d(t,"throttleAdapterEnhancer",(function(){return s.a}))},function(e,t,n){(function(t){"pseudomap"===t.env.npm_package_name&&"test"===t.env.npm_lifecycle_script&&(t.env.TEST_PSEUDOMAP="true"),"function"!=typeof Map||t.env.TEST_PSEUDOMAP?e.exports=n(645):e.exports=Map}).call(this,n(114))},function(e,t){var n=Object.prototype.hasOwnProperty;function r(e){if(!(this instanceof r))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),e)if(e instanceof r||"function"==typeof Map&&e instanceof Map)e.forEach((function(e,t){this.set(t,e)}),this);else{if(!Array.isArray(e))throw new TypeError("invalid argument");e.forEach((function(e){this.set(e[0],e[1])}),this)}}function o(e,t){return e===t||e!=e&&t!=t}function a(e,t,n){this.key=e,this.value=t,this._index=n}function i(e,t){for(var r=0,a="_"+t,i=a;n.call(e,i);i=a+r++)if(o(e[i].key,t))return e[i]}e.exports=r,r.prototype.forEach=function(e,t){t=t||this,Object.keys(this._data).forEach((function(n){"size"!==n&&e.call(t,this._data[n].value,this._data[n].key)}),this)},r.prototype.has=function(e){return!!i(this._data,e)},r.prototype.get=function(e){var t=i(this._data,e);return t&&t.value},r.prototype.set=function(e,t){!function(e,t,r){for(var i=0,s="_"+t,c=s;n.call(e,c);c=s+i++)if(o(e[c].key,t))return void(e[c].value=r);e.size++,e[c]=new a(t,r,c)}(this._data,e,t)},r.prototype.delete=function(e){var t=i(this._data,e);t&&(delete this._data[t._index],this._data.size--)},r.prototype.clear=function(){var e=Object.create(null);e.size=0,Object.defineProperty(this,"_data",{value:e,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(r.prototype,"size",{get:function(){return this._data.size},set:function(e){},enumerable:!0,configurable:!0}),r.prototype.values=r.prototype.keys=r.prototype.entries=function(){throw new Error("iterators are not implemented in this version")}},function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=a)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),c=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),l(r,e,r.depth)}function c(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function u(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&A(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return g(o)||(o=l(e,o,r)),o}var a=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(a)return a;var i=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(n)),C(n)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return d(n);if(0===i.length){if(A(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(y(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(F(n))return e.stylize(Date.prototype.toString.call(n),"date");if(C(n))return d(n)}var u,E="",_=!1,D=["{","}"];(f(n)&&(_=!0,D=["[","]"]),A(n))&&(E=" [Function"+(n.name?": "+n.name:"")+"]");return y(n)&&(E=" "+RegExp.prototype.toString.call(n)),F(n)&&(E=" "+Date.prototype.toUTCString.call(n)),C(n)&&(E=" "+d(n)),0!==i.length||_&&0!=n.length?r<0?y(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=_?function(e,t,n,r,o){for(var a=[],i=0,s=t.length;i=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,E,D)):D[0]+E+D[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,o,a){var i,s,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),x(r,o)||(i="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=m(n)?l(e,c.value,null):l(e,c.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),b(i)){if(a&&o.match(/^\d+$/))return s;(i=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+s}function f(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function b(e){return void 0===e}function y(e){return E(e)&&"[object RegExp]"===_(e)}function E(e){return"object"==typeof e&&null!==e}function F(e){return E(e)&&"[object Date]"===_(e)}function C(e){return E(e)&&("[object Error]"===_(e)||e instanceof Error)}function A(e){return"function"==typeof e}function _(e){return Object.prototype.toString.call(e)}function D(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(b(a)&&(a=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!i[n])if(new RegExp("\\b"+n+"\\b","i").test(a)){var r=e.pid;i[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else i[n]=function(){};return i[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=y,t.isObject=E,t.isDate=F,t.isError=C,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(647);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function w(){var e=new Date,t=[D(e.getHours()),D(e.getMinutes()),D(e.getSeconds())].join(":");return[e.getDate(),O[e.getMonth()],t].join(" ")}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",w(),t.format.apply(t,arguments))},t.inherits=n(648),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function S(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(B&&e[B]){var t;if("function"!=typeof(t=e[B]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,B,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],a=0;a0)for(var r=0,o=arguments.length;r1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},n.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(tthis.length&&(t=this.length);for(var o=0,a=this.head;null!==a&&othis.length&&(t=this.length);for(var o=this.length,a=this.tail;null!==a&&o>t;o--)a=a.prev;for(;null!==a&&o>e;o--,a=a.prev)r.push(a.value);return r},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this}},function(e,t,n){e.exports=n(651).default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNetworkError=i,t.isRetryableError=u,t.isSafeRequestError=l,t.isIdempotentRequestError=d,t.isNetworkOrIdempotentRequestError=p,t.exponentialDelay=h,t.default=v;var r,o=n(652),a=(r=o)&&r.__esModule?r:{default:r};function i(e){return!e.response&&Boolean(e.code)&&"ECONNABORTED"!==e.code&&(0,a.default)(e)}var s=["get","head","options"],c=s.concat(["put","delete"]);function u(e){return"ECONNABORTED"!==e.code&&(!e.response||e.response.status>=500&&e.response.status<=599)}function l(e){return!!e.config&&(u(e)&&-1!==s.indexOf(e.config.method))}function d(e){return!!e.config&&(u(e)&&-1!==c.indexOf(e.config.method))}function p(e){return i(e)||d(e)}function f(){return 0}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=100*Math.pow(2,e),n=.2*t*Math.random();return t+n}function m(e){var t=e["axios-retry"]||{};return t.retryCount=t.retryCount||0,e["axios-retry"]=t,t}function v(e,t){e.interceptors.request.use((function(e){return m(e).lastRequestTime=Date.now(),e})),e.interceptors.response.use(null,(function(n){var r=n.config;if(!r)return Promise.reject(n);var o=function(e,t){return Object.assign({},t,e["axios-retry"])}(r,t),a=o.retries,i=void 0===a?3:a,s=o.retryCondition,c=void 0===s?p:s,u=o.retryDelay,l=void 0===u?f:u,d=o.shouldResetTimeout,h=void 0!==d&&d,v=m(r);if(c(n)&&v.retryCount-1?s[c?t[u]:u]:void 0}}},function(e,t,n){"use strict";var r=n(562),o=n(563),a=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,s(t)?t:[t])},l=Date.prototype.toISOString,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,o,a,i,c,l,p,f,h,m,v,g){var b=t;if("function"==typeof l?b=l(n,b):b instanceof Date?b=h(b):"comma"===o&&s(b)&&(b=b.join(",")),null===b){if(a)return c&&!v?c(n,d.encoder,g):n;b=""}if("string"==typeof b||"number"==typeof b||"boolean"==typeof b||r.isBuffer(b))return c?[m(v?n:c(n,d.encoder,g))+"="+m(c(b,d.encoder,g))]:[m(n)+"="+m(String(b))];var y,E=[];if(void 0===b)return E;if(s(l))y=l;else{var F=Object.keys(b);y=p?F.sort(p):F}for(var C=0;C0?b+g:""}},function(e,t,n){"use strict";var r=n(562),o=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,i=/(\[[^[\]]*])/.exec(r),s=i?r.slice(0,i.index):r,c=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var u=0;null!==(i=a.exec(r))&&u=0;--o){var a,i=e[o];if("[]"===i&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var s="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,c=parseInt(s,10);n.parseArrays||""!==s?!isNaN(c)&&i!==s&&String(c)===s&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=r:a[s]=r:a={0:r}}r=a}return r}(c,t,n)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth?e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,s={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=t.parameterLimit===1/0?void 0:t.parameterLimit,l=c.split(t.delimiter,u),d=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(h=h.split(",")),o.call(s,f)?s[f]=r.combine(s[f],h):s[f]=h}return s}(e,n):e,u=n.plainObjects?Object.create(null):{},l=Object.keys(c),d=0;d-1){var o=n[r];return r>0&&(n.slice(r,1),n.unshift(o)),o.value}}return{get:r,put:function(t,o){r(t)||(n.unshift({key:t,value:o}),n.length>e&&n.pop())}}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0;return{get:function(n){if(t&&e(n,t.key))return t.value},put:function(e,n){t={key:e,value:n}}}}},function(e,t,n){var r=n(470);e.exports=function(e,t){var n=[];return r(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}},function(e,t,n){var r=n(80);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,s=Object(n);(t?i--:++it}},function(e,t,n){var r=n(40);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(470),o=n(80);e.exports=function(e,t){var n=-1,a=o(e)?Array(e.length):[];return r(e,(function(e,r,o){a[++n]=t(e,r,o)})),a}},function(e,t){e.exports=function(e){return e&&e.length?e[0]:void 0}},function(e,t,n){var r=n(439),o=n(116),a=Array.prototype.splice;e.exports=function(e,t){for(var n=e?t.length:0,i=n-1;n--;){var s=t[n];if(n==i||s!==c){var c=s;o(s)?a.call(e,s,1):r(e,s)}}return e}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&!o.call(e,0))for(var m=0;m0)for(var v=0;v=0&&"[object Array]"!==o.call(e)&&"[object Function]"===o.call(e.callee)},s=function(){return a(arguments)}();a.isLegacyArguments=i,e.exports=s?a:i},function(e,t,n){"use strict";var r=n(267),o=n(571),a=n(572),i=n(573),s=n(691),c=o(i(),Object);r(c,{getPolyfill:i,implementation:a,shim:s}),e.exports=c},function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,a=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==a.call(t))throw new TypeError(r+t);for(var n,i=o.call(arguments,1),s=function(){if(this instanceof n){var r=t.apply(this,i.concat(o.call(arguments)));return Object(r)===r?r:this}return t.apply(e,i.concat(o.call(arguments)))},c=Math.max(0,t.length-i.length),u=[],l=0;l1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=m(e),a=v("%"+(n.length>0?n[0]:"")+"%",t),i=1;i=n.length){var s=o(a,n[i]);if(!t&&!(n[i]in a))throw new r("base intrinsic for "+e+" exists, but the property is not available.");a=s?s.get||s.value:a[n[i]]}else a=a[n[i]];return a}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(690);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(74))},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(573),o=n(267);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},function(e,t,n){"use strict";var r=n(693),o=RegExp.prototype.exec,a=Object.getOwnPropertyDescriptor,i=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s)return"[object RegExp]"===i.call(e);var t=a(e,"lastIndex");return!(!t||!r(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,n){"use strict";var r=n(471);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var r=n(267),o=n(571),a=n(574),i=n(575),s=n(695),c=o(a);r(c,{getPolyfill:i,implementation:a,shim:s}),e.exports=c},function(e,t,n){"use strict";var r=n(267).supportsDescriptors,o=n(575),a=Object.getOwnPropertyDescriptor,i=Object.defineProperty,s=TypeError,c=Object.getPrototypeOf,u=/a/;e.exports=function(){if(!r||!c)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=c(u),n=a(t,"flags");return n&&n.get===e||i(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),o=(i(r),i(n(2))),a=i(n(698));i(n(518));function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}t.default=function(e,t){var n,i,d="__create-react-context-"+(0,a.default)()+"__",p=function(e){function n(){var t,r;s(this,n);for(var o=arguments.length,a=Array(o),i=0;i=0||(o[n]=e[n]);return o}(e,["children","in"]),i=r.default.Children.toArray(t),s=i[0],c=i[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(a.default,o,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(c,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},i}(r.default.Component);s.propTypes={};var c=s;t.default=c,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=a,t.getInitialChildMapping=function(e,t){return o(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var s=o(e.children),c=a(t,s);return Object.keys(c).forEach((function(o){var a=c[o];if((0,r.isValidElement)(a)){var u=o in t,l=o in s,d=t[o],p=(0,r.isValidElement)(d)&&!d.props.in;!l||u&&!p?l||!u||p?l&&u&&(0,r.isValidElement)(d)&&(c[o]=(0,r.cloneElement)(a,{onExited:n.bind(null,a),in:d.props.in,exit:i(a,"exit",e),enter:i(a,"enter",e)})):c[o]=(0,r.cloneElement)(a,{in:!1}):c[o]=(0,r.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:i(a,"exit",e),enter:i(a,"enter",e)})}})),c};var r=n(0);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function a(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var c in t){if(o[c])for(r=0;r0?!0===i?r.scrollTop(t,y.top+E.top):!1===i?r.scrollTop(t,y.top+F.top):E.top<0?r.scrollTop(t,y.top+E.top):r.scrollTop(t,y.top+F.top):a||((i=void 0===i||!!i)?r.scrollTop(t,y.top+E.top):r.scrollTop(t,y.top+F.top)),o&&(E.left<0||F.left>0?!0===s?r.scrollLeft(t,y.left+E.left):!1===s?r.scrollLeft(t,y.left+F.left):E.left<0?r.scrollLeft(t,y.left+E.left):r.scrollLeft(t,y.left+F.left):a||((s=void 0===s||!!s)?r.scrollLeft(t,y.left+E.left):r.scrollLeft(t,y.left+F.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=1){var o=n;return 55296<=(r=e.charCodeAt(t-1))&&r<=56319?1024*(r-55296)+(o-56320)+65536:o}return n}function s(i,s,c){var u=[i].concat(s).concat([c]),l=u[u.length-2],d=c,p=u.lastIndexOf(14);if(p>1&&u.slice(1,p).every((function(t){return t==e}))&&-1==[e,r,a].indexOf(i))return 2;var f=u.lastIndexOf(t);if(f>0&&u.slice(1,f).every((function(e){return e==t}))&&-1==[n,t].indexOf(l))return u.filter((function(e){return e==t})).length%2==1?3:4;if(0==l&&1==d)return 0;if(2==l||0==l||1==l)return 14==d&&s.every((function(t){return t==e}))?2:1;if(2==d||0==d||1==d)return 1;if(6==l&&(6==d||7==d||9==d||10==d))return 0;if(!(9!=l&&7!=l||7!=d&&8!=d))return 0;if((10==l||8==l)&&8==d)return 0;if(d==e||15==d)return 0;if(5==d)return 0;if(l==n)return 0;var h=-1!=u.indexOf(e)?u.lastIndexOf(e)-1:u.length-2;return-1!=[r,a].indexOf(u[h])&&u.slice(h+1,-1).every((function(t){return t==e}))&&14==d||15==l&&-1!=[o,a].indexOf(d)?0:-1!=s.indexOf(t)?2:l==t&&d==t?0:1}function c(i){return 1536<=i&&i<=1541||1757==i||1807==i||2274==i||3406==i||69821==i||70082<=i&&i<=70083||72250==i||72326<=i&&i<=72329||73030==i?n:13==i?0:10==i?1:0<=i&&i<=9||11<=i&&i<=12||14<=i&&i<=31||127<=i&&i<=159||173==i||1564==i||6158==i||8203==i||8206<=i&&i<=8207||8232==i||8233==i||8234<=i&&i<=8238||8288<=i&&i<=8292||8293==i||8294<=i&&i<=8303||55296<=i&&i<=57343||65279==i||65520<=i&&i<=65528||65529<=i&&i<=65531||113824<=i&&i<=113827||119155<=i&&i<=119162||917504==i||917505==i||917506<=i&&i<=917535||917632<=i&&i<=917759||918e3<=i&&i<=921599?2:768<=i&&i<=879||1155<=i&&i<=1159||1160<=i&&i<=1161||1425<=i&&i<=1469||1471==i||1473<=i&&i<=1474||1476<=i&&i<=1477||1479==i||1552<=i&&i<=1562||1611<=i&&i<=1631||1648==i||1750<=i&&i<=1756||1759<=i&&i<=1764||1767<=i&&i<=1768||1770<=i&&i<=1773||1809==i||1840<=i&&i<=1866||1958<=i&&i<=1968||2027<=i&&i<=2035||2070<=i&&i<=2073||2075<=i&&i<=2083||2085<=i&&i<=2087||2089<=i&&i<=2093||2137<=i&&i<=2139||2260<=i&&i<=2273||2275<=i&&i<=2306||2362==i||2364==i||2369<=i&&i<=2376||2381==i||2385<=i&&i<=2391||2402<=i&&i<=2403||2433==i||2492==i||2494==i||2497<=i&&i<=2500||2509==i||2519==i||2530<=i&&i<=2531||2561<=i&&i<=2562||2620==i||2625<=i&&i<=2626||2631<=i&&i<=2632||2635<=i&&i<=2637||2641==i||2672<=i&&i<=2673||2677==i||2689<=i&&i<=2690||2748==i||2753<=i&&i<=2757||2759<=i&&i<=2760||2765==i||2786<=i&&i<=2787||2810<=i&&i<=2815||2817==i||2876==i||2878==i||2879==i||2881<=i&&i<=2884||2893==i||2902==i||2903==i||2914<=i&&i<=2915||2946==i||3006==i||3008==i||3021==i||3031==i||3072==i||3134<=i&&i<=3136||3142<=i&&i<=3144||3146<=i&&i<=3149||3157<=i&&i<=3158||3170<=i&&i<=3171||3201==i||3260==i||3263==i||3266==i||3270==i||3276<=i&&i<=3277||3285<=i&&i<=3286||3298<=i&&i<=3299||3328<=i&&i<=3329||3387<=i&&i<=3388||3390==i||3393<=i&&i<=3396||3405==i||3415==i||3426<=i&&i<=3427||3530==i||3535==i||3538<=i&&i<=3540||3542==i||3551==i||3633==i||3636<=i&&i<=3642||3655<=i&&i<=3662||3761==i||3764<=i&&i<=3769||3771<=i&&i<=3772||3784<=i&&i<=3789||3864<=i&&i<=3865||3893==i||3895==i||3897==i||3953<=i&&i<=3966||3968<=i&&i<=3972||3974<=i&&i<=3975||3981<=i&&i<=3991||3993<=i&&i<=4028||4038==i||4141<=i&&i<=4144||4146<=i&&i<=4151||4153<=i&&i<=4154||4157<=i&&i<=4158||4184<=i&&i<=4185||4190<=i&&i<=4192||4209<=i&&i<=4212||4226==i||4229<=i&&i<=4230||4237==i||4253==i||4957<=i&&i<=4959||5906<=i&&i<=5908||5938<=i&&i<=5940||5970<=i&&i<=5971||6002<=i&&i<=6003||6068<=i&&i<=6069||6071<=i&&i<=6077||6086==i||6089<=i&&i<=6099||6109==i||6155<=i&&i<=6157||6277<=i&&i<=6278||6313==i||6432<=i&&i<=6434||6439<=i&&i<=6440||6450==i||6457<=i&&i<=6459||6679<=i&&i<=6680||6683==i||6742==i||6744<=i&&i<=6750||6752==i||6754==i||6757<=i&&i<=6764||6771<=i&&i<=6780||6783==i||6832<=i&&i<=6845||6846==i||6912<=i&&i<=6915||6964==i||6966<=i&&i<=6970||6972==i||6978==i||7019<=i&&i<=7027||7040<=i&&i<=7041||7074<=i&&i<=7077||7080<=i&&i<=7081||7083<=i&&i<=7085||7142==i||7144<=i&&i<=7145||7149==i||7151<=i&&i<=7153||7212<=i&&i<=7219||7222<=i&&i<=7223||7376<=i&&i<=7378||7380<=i&&i<=7392||7394<=i&&i<=7400||7405==i||7412==i||7416<=i&&i<=7417||7616<=i&&i<=7673||7675<=i&&i<=7679||8204==i||8400<=i&&i<=8412||8413<=i&&i<=8416||8417==i||8418<=i&&i<=8420||8421<=i&&i<=8432||11503<=i&&i<=11505||11647==i||11744<=i&&i<=11775||12330<=i&&i<=12333||12334<=i&&i<=12335||12441<=i&&i<=12442||42607==i||42608<=i&&i<=42610||42612<=i&&i<=42621||42654<=i&&i<=42655||42736<=i&&i<=42737||43010==i||43014==i||43019==i||43045<=i&&i<=43046||43204<=i&&i<=43205||43232<=i&&i<=43249||43302<=i&&i<=43309||43335<=i&&i<=43345||43392<=i&&i<=43394||43443==i||43446<=i&&i<=43449||43452==i||43493==i||43561<=i&&i<=43566||43569<=i&&i<=43570||43573<=i&&i<=43574||43587==i||43596==i||43644==i||43696==i||43698<=i&&i<=43700||43703<=i&&i<=43704||43710<=i&&i<=43711||43713==i||43756<=i&&i<=43757||43766==i||44005==i||44008==i||44013==i||64286==i||65024<=i&&i<=65039||65056<=i&&i<=65071||65438<=i&&i<=65439||66045==i||66272==i||66422<=i&&i<=66426||68097<=i&&i<=68099||68101<=i&&i<=68102||68108<=i&&i<=68111||68152<=i&&i<=68154||68159==i||68325<=i&&i<=68326||69633==i||69688<=i&&i<=69702||69759<=i&&i<=69761||69811<=i&&i<=69814||69817<=i&&i<=69818||69888<=i&&i<=69890||69927<=i&&i<=69931||69933<=i&&i<=69940||70003==i||70016<=i&&i<=70017||70070<=i&&i<=70078||70090<=i&&i<=70092||70191<=i&&i<=70193||70196==i||70198<=i&&i<=70199||70206==i||70367==i||70371<=i&&i<=70378||70400<=i&&i<=70401||70460==i||70462==i||70464==i||70487==i||70502<=i&&i<=70508||70512<=i&&i<=70516||70712<=i&&i<=70719||70722<=i&&i<=70724||70726==i||70832==i||70835<=i&&i<=70840||70842==i||70845==i||70847<=i&&i<=70848||70850<=i&&i<=70851||71087==i||71090<=i&&i<=71093||71100<=i&&i<=71101||71103<=i&&i<=71104||71132<=i&&i<=71133||71219<=i&&i<=71226||71229==i||71231<=i&&i<=71232||71339==i||71341==i||71344<=i&&i<=71349||71351==i||71453<=i&&i<=71455||71458<=i&&i<=71461||71463<=i&&i<=71467||72193<=i&&i<=72198||72201<=i&&i<=72202||72243<=i&&i<=72248||72251<=i&&i<=72254||72263==i||72273<=i&&i<=72278||72281<=i&&i<=72283||72330<=i&&i<=72342||72344<=i&&i<=72345||72752<=i&&i<=72758||72760<=i&&i<=72765||72767==i||72850<=i&&i<=72871||72874<=i&&i<=72880||72882<=i&&i<=72883||72885<=i&&i<=72886||73009<=i&&i<=73014||73018==i||73020<=i&&i<=73021||73023<=i&&i<=73029||73031==i||92912<=i&&i<=92916||92976<=i&&i<=92982||94095<=i&&i<=94098||113821<=i&&i<=113822||119141==i||119143<=i&&i<=119145||119150<=i&&i<=119154||119163<=i&&i<=119170||119173<=i&&i<=119179||119210<=i&&i<=119213||119362<=i&&i<=119364||121344<=i&&i<=121398||121403<=i&&i<=121452||121461==i||121476==i||121499<=i&&i<=121503||121505<=i&&i<=121519||122880<=i&&i<=122886||122888<=i&&i<=122904||122907<=i&&i<=122913||122915<=i&&i<=122916||122918<=i&&i<=122922||125136<=i&&i<=125142||125252<=i&&i<=125258||917536<=i&&i<=917631||917760<=i&&i<=917999?e:127462<=i&&i<=127487?t:2307==i||2363==i||2366<=i&&i<=2368||2377<=i&&i<=2380||2382<=i&&i<=2383||2434<=i&&i<=2435||2495<=i&&i<=2496||2503<=i&&i<=2504||2507<=i&&i<=2508||2563==i||2622<=i&&i<=2624||2691==i||2750<=i&&i<=2752||2761==i||2763<=i&&i<=2764||2818<=i&&i<=2819||2880==i||2887<=i&&i<=2888||2891<=i&&i<=2892||3007==i||3009<=i&&i<=3010||3014<=i&&i<=3016||3018<=i&&i<=3020||3073<=i&&i<=3075||3137<=i&&i<=3140||3202<=i&&i<=3203||3262==i||3264<=i&&i<=3265||3267<=i&&i<=3268||3271<=i&&i<=3272||3274<=i&&i<=3275||3330<=i&&i<=3331||3391<=i&&i<=3392||3398<=i&&i<=3400||3402<=i&&i<=3404||3458<=i&&i<=3459||3536<=i&&i<=3537||3544<=i&&i<=3550||3570<=i&&i<=3571||3635==i||3763==i||3902<=i&&i<=3903||3967==i||4145==i||4155<=i&&i<=4156||4182<=i&&i<=4183||4228==i||6070==i||6078<=i&&i<=6085||6087<=i&&i<=6088||6435<=i&&i<=6438||6441<=i&&i<=6443||6448<=i&&i<=6449||6451<=i&&i<=6456||6681<=i&&i<=6682||6741==i||6743==i||6765<=i&&i<=6770||6916==i||6965==i||6971==i||6973<=i&&i<=6977||6979<=i&&i<=6980||7042==i||7073==i||7078<=i&&i<=7079||7082==i||7143==i||7146<=i&&i<=7148||7150==i||7154<=i&&i<=7155||7204<=i&&i<=7211||7220<=i&&i<=7221||7393==i||7410<=i&&i<=7411||7415==i||43043<=i&&i<=43044||43047==i||43136<=i&&i<=43137||43188<=i&&i<=43203||43346<=i&&i<=43347||43395==i||43444<=i&&i<=43445||43450<=i&&i<=43451||43453<=i&&i<=43456||43567<=i&&i<=43568||43571<=i&&i<=43572||43597==i||43755==i||43758<=i&&i<=43759||43765==i||44003<=i&&i<=44004||44006<=i&&i<=44007||44009<=i&&i<=44010||44012==i||69632==i||69634==i||69762==i||69808<=i&&i<=69810||69815<=i&&i<=69816||69932==i||70018==i||70067<=i&&i<=70069||70079<=i&&i<=70080||70188<=i&&i<=70190||70194<=i&&i<=70195||70197==i||70368<=i&&i<=70370||70402<=i&&i<=70403||70463==i||70465<=i&&i<=70468||70471<=i&&i<=70472||70475<=i&&i<=70477||70498<=i&&i<=70499||70709<=i&&i<=70711||70720<=i&&i<=70721||70725==i||70833<=i&&i<=70834||70841==i||70843<=i&&i<=70844||70846==i||70849==i||71088<=i&&i<=71089||71096<=i&&i<=71099||71102==i||71216<=i&&i<=71218||71227<=i&&i<=71228||71230==i||71340==i||71342<=i&&i<=71343||71350==i||71456<=i&&i<=71457||71462==i||72199<=i&&i<=72200||72249==i||72279<=i&&i<=72280||72343==i||72751==i||72766==i||72873==i||72881==i||72884==i||94033<=i&&i<=94078||119142==i||119149==i?5:4352<=i&&i<=4447||43360<=i&&i<=43388?6:4448<=i&&i<=4519||55216<=i&&i<=55238?7:4520<=i&&i<=4607||55243<=i&&i<=55291?8:44032==i||44060==i||44088==i||44116==i||44144==i||44172==i||44200==i||44228==i||44256==i||44284==i||44312==i||44340==i||44368==i||44396==i||44424==i||44452==i||44480==i||44508==i||44536==i||44564==i||44592==i||44620==i||44648==i||44676==i||44704==i||44732==i||44760==i||44788==i||44816==i||44844==i||44872==i||44900==i||44928==i||44956==i||44984==i||45012==i||45040==i||45068==i||45096==i||45124==i||45152==i||45180==i||45208==i||45236==i||45264==i||45292==i||45320==i||45348==i||45376==i||45404==i||45432==i||45460==i||45488==i||45516==i||45544==i||45572==i||45600==i||45628==i||45656==i||45684==i||45712==i||45740==i||45768==i||45796==i||45824==i||45852==i||45880==i||45908==i||45936==i||45964==i||45992==i||46020==i||46048==i||46076==i||46104==i||46132==i||46160==i||46188==i||46216==i||46244==i||46272==i||46300==i||46328==i||46356==i||46384==i||46412==i||46440==i||46468==i||46496==i||46524==i||46552==i||46580==i||46608==i||46636==i||46664==i||46692==i||46720==i||46748==i||46776==i||46804==i||46832==i||46860==i||46888==i||46916==i||46944==i||46972==i||47e3==i||47028==i||47056==i||47084==i||47112==i||47140==i||47168==i||47196==i||47224==i||47252==i||47280==i||47308==i||47336==i||47364==i||47392==i||47420==i||47448==i||47476==i||47504==i||47532==i||47560==i||47588==i||47616==i||47644==i||47672==i||47700==i||47728==i||47756==i||47784==i||47812==i||47840==i||47868==i||47896==i||47924==i||47952==i||47980==i||48008==i||48036==i||48064==i||48092==i||48120==i||48148==i||48176==i||48204==i||48232==i||48260==i||48288==i||48316==i||48344==i||48372==i||48400==i||48428==i||48456==i||48484==i||48512==i||48540==i||48568==i||48596==i||48624==i||48652==i||48680==i||48708==i||48736==i||48764==i||48792==i||48820==i||48848==i||48876==i||48904==i||48932==i||48960==i||48988==i||49016==i||49044==i||49072==i||49100==i||49128==i||49156==i||49184==i||49212==i||49240==i||49268==i||49296==i||49324==i||49352==i||49380==i||49408==i||49436==i||49464==i||49492==i||49520==i||49548==i||49576==i||49604==i||49632==i||49660==i||49688==i||49716==i||49744==i||49772==i||49800==i||49828==i||49856==i||49884==i||49912==i||49940==i||49968==i||49996==i||50024==i||50052==i||50080==i||50108==i||50136==i||50164==i||50192==i||50220==i||50248==i||50276==i||50304==i||50332==i||50360==i||50388==i||50416==i||50444==i||50472==i||50500==i||50528==i||50556==i||50584==i||50612==i||50640==i||50668==i||50696==i||50724==i||50752==i||50780==i||50808==i||50836==i||50864==i||50892==i||50920==i||50948==i||50976==i||51004==i||51032==i||51060==i||51088==i||51116==i||51144==i||51172==i||51200==i||51228==i||51256==i||51284==i||51312==i||51340==i||51368==i||51396==i||51424==i||51452==i||51480==i||51508==i||51536==i||51564==i||51592==i||51620==i||51648==i||51676==i||51704==i||51732==i||51760==i||51788==i||51816==i||51844==i||51872==i||51900==i||51928==i||51956==i||51984==i||52012==i||52040==i||52068==i||52096==i||52124==i||52152==i||52180==i||52208==i||52236==i||52264==i||52292==i||52320==i||52348==i||52376==i||52404==i||52432==i||52460==i||52488==i||52516==i||52544==i||52572==i||52600==i||52628==i||52656==i||52684==i||52712==i||52740==i||52768==i||52796==i||52824==i||52852==i||52880==i||52908==i||52936==i||52964==i||52992==i||53020==i||53048==i||53076==i||53104==i||53132==i||53160==i||53188==i||53216==i||53244==i||53272==i||53300==i||53328==i||53356==i||53384==i||53412==i||53440==i||53468==i||53496==i||53524==i||53552==i||53580==i||53608==i||53636==i||53664==i||53692==i||53720==i||53748==i||53776==i||53804==i||53832==i||53860==i||53888==i||53916==i||53944==i||53972==i||54e3==i||54028==i||54056==i||54084==i||54112==i||54140==i||54168==i||54196==i||54224==i||54252==i||54280==i||54308==i||54336==i||54364==i||54392==i||54420==i||54448==i||54476==i||54504==i||54532==i||54560==i||54588==i||54616==i||54644==i||54672==i||54700==i||54728==i||54756==i||54784==i||54812==i||54840==i||54868==i||54896==i||54924==i||54952==i||54980==i||55008==i||55036==i||55064==i||55092==i||55120==i||55148==i||55176==i?9:44033<=i&&i<=44059||44061<=i&&i<=44087||44089<=i&&i<=44115||44117<=i&&i<=44143||44145<=i&&i<=44171||44173<=i&&i<=44199||44201<=i&&i<=44227||44229<=i&&i<=44255||44257<=i&&i<=44283||44285<=i&&i<=44311||44313<=i&&i<=44339||44341<=i&&i<=44367||44369<=i&&i<=44395||44397<=i&&i<=44423||44425<=i&&i<=44451||44453<=i&&i<=44479||44481<=i&&i<=44507||44509<=i&&i<=44535||44537<=i&&i<=44563||44565<=i&&i<=44591||44593<=i&&i<=44619||44621<=i&&i<=44647||44649<=i&&i<=44675||44677<=i&&i<=44703||44705<=i&&i<=44731||44733<=i&&i<=44759||44761<=i&&i<=44787||44789<=i&&i<=44815||44817<=i&&i<=44843||44845<=i&&i<=44871||44873<=i&&i<=44899||44901<=i&&i<=44927||44929<=i&&i<=44955||44957<=i&&i<=44983||44985<=i&&i<=45011||45013<=i&&i<=45039||45041<=i&&i<=45067||45069<=i&&i<=45095||45097<=i&&i<=45123||45125<=i&&i<=45151||45153<=i&&i<=45179||45181<=i&&i<=45207||45209<=i&&i<=45235||45237<=i&&i<=45263||45265<=i&&i<=45291||45293<=i&&i<=45319||45321<=i&&i<=45347||45349<=i&&i<=45375||45377<=i&&i<=45403||45405<=i&&i<=45431||45433<=i&&i<=45459||45461<=i&&i<=45487||45489<=i&&i<=45515||45517<=i&&i<=45543||45545<=i&&i<=45571||45573<=i&&i<=45599||45601<=i&&i<=45627||45629<=i&&i<=45655||45657<=i&&i<=45683||45685<=i&&i<=45711||45713<=i&&i<=45739||45741<=i&&i<=45767||45769<=i&&i<=45795||45797<=i&&i<=45823||45825<=i&&i<=45851||45853<=i&&i<=45879||45881<=i&&i<=45907||45909<=i&&i<=45935||45937<=i&&i<=45963||45965<=i&&i<=45991||45993<=i&&i<=46019||46021<=i&&i<=46047||46049<=i&&i<=46075||46077<=i&&i<=46103||46105<=i&&i<=46131||46133<=i&&i<=46159||46161<=i&&i<=46187||46189<=i&&i<=46215||46217<=i&&i<=46243||46245<=i&&i<=46271||46273<=i&&i<=46299||46301<=i&&i<=46327||46329<=i&&i<=46355||46357<=i&&i<=46383||46385<=i&&i<=46411||46413<=i&&i<=46439||46441<=i&&i<=46467||46469<=i&&i<=46495||46497<=i&&i<=46523||46525<=i&&i<=46551||46553<=i&&i<=46579||46581<=i&&i<=46607||46609<=i&&i<=46635||46637<=i&&i<=46663||46665<=i&&i<=46691||46693<=i&&i<=46719||46721<=i&&i<=46747||46749<=i&&i<=46775||46777<=i&&i<=46803||46805<=i&&i<=46831||46833<=i&&i<=46859||46861<=i&&i<=46887||46889<=i&&i<=46915||46917<=i&&i<=46943||46945<=i&&i<=46971||46973<=i&&i<=46999||47001<=i&&i<=47027||47029<=i&&i<=47055||47057<=i&&i<=47083||47085<=i&&i<=47111||47113<=i&&i<=47139||47141<=i&&i<=47167||47169<=i&&i<=47195||47197<=i&&i<=47223||47225<=i&&i<=47251||47253<=i&&i<=47279||47281<=i&&i<=47307||47309<=i&&i<=47335||47337<=i&&i<=47363||47365<=i&&i<=47391||47393<=i&&i<=47419||47421<=i&&i<=47447||47449<=i&&i<=47475||47477<=i&&i<=47503||47505<=i&&i<=47531||47533<=i&&i<=47559||47561<=i&&i<=47587||47589<=i&&i<=47615||47617<=i&&i<=47643||47645<=i&&i<=47671||47673<=i&&i<=47699||47701<=i&&i<=47727||47729<=i&&i<=47755||47757<=i&&i<=47783||47785<=i&&i<=47811||47813<=i&&i<=47839||47841<=i&&i<=47867||47869<=i&&i<=47895||47897<=i&&i<=47923||47925<=i&&i<=47951||47953<=i&&i<=47979||47981<=i&&i<=48007||48009<=i&&i<=48035||48037<=i&&i<=48063||48065<=i&&i<=48091||48093<=i&&i<=48119||48121<=i&&i<=48147||48149<=i&&i<=48175||48177<=i&&i<=48203||48205<=i&&i<=48231||48233<=i&&i<=48259||48261<=i&&i<=48287||48289<=i&&i<=48315||48317<=i&&i<=48343||48345<=i&&i<=48371||48373<=i&&i<=48399||48401<=i&&i<=48427||48429<=i&&i<=48455||48457<=i&&i<=48483||48485<=i&&i<=48511||48513<=i&&i<=48539||48541<=i&&i<=48567||48569<=i&&i<=48595||48597<=i&&i<=48623||48625<=i&&i<=48651||48653<=i&&i<=48679||48681<=i&&i<=48707||48709<=i&&i<=48735||48737<=i&&i<=48763||48765<=i&&i<=48791||48793<=i&&i<=48819||48821<=i&&i<=48847||48849<=i&&i<=48875||48877<=i&&i<=48903||48905<=i&&i<=48931||48933<=i&&i<=48959||48961<=i&&i<=48987||48989<=i&&i<=49015||49017<=i&&i<=49043||49045<=i&&i<=49071||49073<=i&&i<=49099||49101<=i&&i<=49127||49129<=i&&i<=49155||49157<=i&&i<=49183||49185<=i&&i<=49211||49213<=i&&i<=49239||49241<=i&&i<=49267||49269<=i&&i<=49295||49297<=i&&i<=49323||49325<=i&&i<=49351||49353<=i&&i<=49379||49381<=i&&i<=49407||49409<=i&&i<=49435||49437<=i&&i<=49463||49465<=i&&i<=49491||49493<=i&&i<=49519||49521<=i&&i<=49547||49549<=i&&i<=49575||49577<=i&&i<=49603||49605<=i&&i<=49631||49633<=i&&i<=49659||49661<=i&&i<=49687||49689<=i&&i<=49715||49717<=i&&i<=49743||49745<=i&&i<=49771||49773<=i&&i<=49799||49801<=i&&i<=49827||49829<=i&&i<=49855||49857<=i&&i<=49883||49885<=i&&i<=49911||49913<=i&&i<=49939||49941<=i&&i<=49967||49969<=i&&i<=49995||49997<=i&&i<=50023||50025<=i&&i<=50051||50053<=i&&i<=50079||50081<=i&&i<=50107||50109<=i&&i<=50135||50137<=i&&i<=50163||50165<=i&&i<=50191||50193<=i&&i<=50219||50221<=i&&i<=50247||50249<=i&&i<=50275||50277<=i&&i<=50303||50305<=i&&i<=50331||50333<=i&&i<=50359||50361<=i&&i<=50387||50389<=i&&i<=50415||50417<=i&&i<=50443||50445<=i&&i<=50471||50473<=i&&i<=50499||50501<=i&&i<=50527||50529<=i&&i<=50555||50557<=i&&i<=50583||50585<=i&&i<=50611||50613<=i&&i<=50639||50641<=i&&i<=50667||50669<=i&&i<=50695||50697<=i&&i<=50723||50725<=i&&i<=50751||50753<=i&&i<=50779||50781<=i&&i<=50807||50809<=i&&i<=50835||50837<=i&&i<=50863||50865<=i&&i<=50891||50893<=i&&i<=50919||50921<=i&&i<=50947||50949<=i&&i<=50975||50977<=i&&i<=51003||51005<=i&&i<=51031||51033<=i&&i<=51059||51061<=i&&i<=51087||51089<=i&&i<=51115||51117<=i&&i<=51143||51145<=i&&i<=51171||51173<=i&&i<=51199||51201<=i&&i<=51227||51229<=i&&i<=51255||51257<=i&&i<=51283||51285<=i&&i<=51311||51313<=i&&i<=51339||51341<=i&&i<=51367||51369<=i&&i<=51395||51397<=i&&i<=51423||51425<=i&&i<=51451||51453<=i&&i<=51479||51481<=i&&i<=51507||51509<=i&&i<=51535||51537<=i&&i<=51563||51565<=i&&i<=51591||51593<=i&&i<=51619||51621<=i&&i<=51647||51649<=i&&i<=51675||51677<=i&&i<=51703||51705<=i&&i<=51731||51733<=i&&i<=51759||51761<=i&&i<=51787||51789<=i&&i<=51815||51817<=i&&i<=51843||51845<=i&&i<=51871||51873<=i&&i<=51899||51901<=i&&i<=51927||51929<=i&&i<=51955||51957<=i&&i<=51983||51985<=i&&i<=52011||52013<=i&&i<=52039||52041<=i&&i<=52067||52069<=i&&i<=52095||52097<=i&&i<=52123||52125<=i&&i<=52151||52153<=i&&i<=52179||52181<=i&&i<=52207||52209<=i&&i<=52235||52237<=i&&i<=52263||52265<=i&&i<=52291||52293<=i&&i<=52319||52321<=i&&i<=52347||52349<=i&&i<=52375||52377<=i&&i<=52403||52405<=i&&i<=52431||52433<=i&&i<=52459||52461<=i&&i<=52487||52489<=i&&i<=52515||52517<=i&&i<=52543||52545<=i&&i<=52571||52573<=i&&i<=52599||52601<=i&&i<=52627||52629<=i&&i<=52655||52657<=i&&i<=52683||52685<=i&&i<=52711||52713<=i&&i<=52739||52741<=i&&i<=52767||52769<=i&&i<=52795||52797<=i&&i<=52823||52825<=i&&i<=52851||52853<=i&&i<=52879||52881<=i&&i<=52907||52909<=i&&i<=52935||52937<=i&&i<=52963||52965<=i&&i<=52991||52993<=i&&i<=53019||53021<=i&&i<=53047||53049<=i&&i<=53075||53077<=i&&i<=53103||53105<=i&&i<=53131||53133<=i&&i<=53159||53161<=i&&i<=53187||53189<=i&&i<=53215||53217<=i&&i<=53243||53245<=i&&i<=53271||53273<=i&&i<=53299||53301<=i&&i<=53327||53329<=i&&i<=53355||53357<=i&&i<=53383||53385<=i&&i<=53411||53413<=i&&i<=53439||53441<=i&&i<=53467||53469<=i&&i<=53495||53497<=i&&i<=53523||53525<=i&&i<=53551||53553<=i&&i<=53579||53581<=i&&i<=53607||53609<=i&&i<=53635||53637<=i&&i<=53663||53665<=i&&i<=53691||53693<=i&&i<=53719||53721<=i&&i<=53747||53749<=i&&i<=53775||53777<=i&&i<=53803||53805<=i&&i<=53831||53833<=i&&i<=53859||53861<=i&&i<=53887||53889<=i&&i<=53915||53917<=i&&i<=53943||53945<=i&&i<=53971||53973<=i&&i<=53999||54001<=i&&i<=54027||54029<=i&&i<=54055||54057<=i&&i<=54083||54085<=i&&i<=54111||54113<=i&&i<=54139||54141<=i&&i<=54167||54169<=i&&i<=54195||54197<=i&&i<=54223||54225<=i&&i<=54251||54253<=i&&i<=54279||54281<=i&&i<=54307||54309<=i&&i<=54335||54337<=i&&i<=54363||54365<=i&&i<=54391||54393<=i&&i<=54419||54421<=i&&i<=54447||54449<=i&&i<=54475||54477<=i&&i<=54503||54505<=i&&i<=54531||54533<=i&&i<=54559||54561<=i&&i<=54587||54589<=i&&i<=54615||54617<=i&&i<=54643||54645<=i&&i<=54671||54673<=i&&i<=54699||54701<=i&&i<=54727||54729<=i&&i<=54755||54757<=i&&i<=54783||54785<=i&&i<=54811||54813<=i&&i<=54839||54841<=i&&i<=54867||54869<=i&&i<=54895||54897<=i&&i<=54923||54925<=i&&i<=54951||54953<=i&&i<=54979||54981<=i&&i<=55007||55009<=i&&i<=55035||55037<=i&&i<=55063||55065<=i&&i<=55091||55093<=i&&i<=55119||55121<=i&&i<=55147||55149<=i&&i<=55175||55177<=i&&i<=55203?10:9757==i||9977==i||9994<=i&&i<=9997||127877==i||127938<=i&&i<=127940||127943==i||127946<=i&&i<=127948||128066<=i&&i<=128067||128070<=i&&i<=128080||128110==i||128112<=i&&i<=128120||128124==i||128129<=i&&i<=128131||128133<=i&&i<=128135||128170==i||128372<=i&&i<=128373||128378==i||128400==i||128405<=i&&i<=128406||128581<=i&&i<=128583||128587<=i&&i<=128591||128675==i||128692<=i&&i<=128694||128704==i||128716==i||129304<=i&&i<=129308||129310<=i&&i<=129311||129318==i||129328<=i&&i<=129337||129341<=i&&i<=129342||129489<=i&&i<=129501?r:127995<=i&&i<=127999?14:8205==i?15:9792==i||9794==i||9877<=i&&i<=9878||9992==i||10084==i||127752==i||127806==i||127859==i||127891==i||127908==i||127912==i||127979==i||127981==i||128139==i||128187<=i&&i<=128188||128295==i||128300==i||128488==i||128640==i||128658==i?o:128102<=i&&i<=128105?a:11}return this.nextBreak=function(e,t){if(void 0===t&&(t=0),t<0)return 0;if(t>=e.length-1)return e.length;for(var n,r,o=c(i(e,t)),a=[],u=t+1;u-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=A(e)?h.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function A(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){return!!e&&"object"==typeof e}e.exports=function(e,t,i,l){var d;e=C(e)?e:(d=e)?u(d,function(e){return C(e)?b(e):y(e)}(d)):[],i=i&&!l?function(e){var t=function(e){if(!e)return 0===e?e:0;if((e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||_(e)&&"[object Symbol]"==h.call(e)}(e))return NaN;if(A(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=A(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var i=o.test(e);return i||a.test(e)?s(e.slice(2),i?2:8):r.test(e)?NaN:+e}(e))===1/0||e===-1/0){return 17976931348623157e292*(e<0?-1:1)}return e==e?e:0}(e),i=t%1;return t==t?i?t-i:t:0}(i):0;var p=e.length;return i<0&&(i=g(p+i,0)),function(e){return"string"==typeof e||!F(e)&&_(e)&&"[object String]"==h.call(e)}(e)?i<=p&&e.indexOf(t,i)>-1:!!p&&function(e,t,n){if(t!=t)return function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a-1}},function(e,t,n){(function(e,r){var o;!function(a){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r&&r;i.global!==i&&i.window!==i&&i.self;var s,c=2147483647,u=/^xn--/,l=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(p[e])}function v(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function g(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+v((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t,n,r=[],o=0,a=e.length;o=55296&&t<=56319&&o65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function F(e,t,n){var r=0;for(e=n?f(e/700):e>>1,e+=f(e/t);e>455;r+=36)e=f(e/35);return f(r+36*e/(e+38))}function C(e){var t,n,r,o,a,i,s,u,l,d,p,h=[],v=e.length,g=0,b=128,E=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r=128&&m("not-basic"),h.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=v&&m("invalid-input"),((u=(p=e.charCodeAt(o++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:36)>=36||u>f((c-g)/i))&&m("overflow"),g+=u*i,!(u<(l=s<=E?1:s>=E+26?26:s-E));s+=36)i>f(c/(d=36-l))&&m("overflow"),i*=d;E=F(g-a,t=h.length+1,0==a),f(g/t)>c-b&&m("overflow"),b+=f(g/t),g%=t,h.splice(g++,0,b)}return y(h)}function A(e){var t,n,r,o,a,i,s,u,l,d,p,v,g,y,C,A=[];for(v=(e=b(e)).length,t=128,n=0,a=72,i=0;i=t&&pf((c-n)/(g=r+1))&&m("overflow"),n+=(s-t)*g,t=s,i=0;ic&&m("overflow"),p==t){for(u=n,l=36;!(u<(d=l<=a?1:l>=a+26?26:l-a));l+=36)C=u-d,y=36-d,A.push(h(E(d+C%y,0))),u=f(C/y);A.push(h(E(u,0))),a=F(n,g,r==o),n=0,++r}++n,++t}return A.join("")}s={version:"1.4.1",ucs2:{decode:b,encode:y},decode:C,encode:A,toASCII:function(e){return g(e,(function(e){return l.test(e)?"xn--"+A(e):e}))},toUnicode:function(e){return g(e,(function(e){return u.test(e)?C(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return s}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(109)(e),n(74))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmailValidator=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.allowLocal,r=void 0!==n&&n,i=t.allowTld,s=void 0!==i&&i;a(this,e);var c="\\(\\)<>@,;:'\\\\\\\"\\.\\[\\]",u="(\\\\.)|[^\\s"+c+"]",l='("(\\\\"|[^"])*")',d="(("+u+"|')+|"+l+")",p="^\\s*"+d+"(\\."+d+")*$";this._userPattern=new RegExp(p);var f="^\\s*?(.+)@(.+?)\\s*$";this._emailPattern=new RegExp(f),this._domainValidator=new o.DomainValidator({allowLocal:r}),this._allowTld=s}return r(e,[{key:"_isValidDomain",value:function(e){return this._allowTld?this._domainValidator.isValid(e)||"."!==e[0]&&this._domainValidator.isValidTld(e):this._domainValidator.isValid(e)}},{key:"_isValidUser",value:function(e){return!(!e||e.length>64)&&e.match(this._userPattern)}},{key:"isValid",value:function(e){if(!e)return!1;if("."===e[e.length-1])return!1;var t=e.match(this._emailPattern);return!!t&&(!!this._isValidUser(t[1])&&!!this._isValidDomain(t[2]))}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=a(n(0)),o=a(n(729));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n - shouldLoadAsync prop is deprecated. Just remove it, no other change required."),t}return i()(a,[{key:"render",value:function(){var e=this,t=this.props,r=t.dataHook,o=t.size,a=t.color,i=t.text,s=t.status,c=t.statusMessage,u=Q[o],l="loading"!==s,d=l?359:$[o].light,p=l?359:$[o].dark,f="tiny"!==o,h=X[o],m=J[o],g=Z[o],b=v.a.createElement("div",{className:j.a.arcsContainer,style:{width:"".concat(u,"px"),height:"".concat(u,"px")}},v.a.createElement(I,{angle:d,className:j.a.lightArc,strokeWidth:g,viewBoxSize:u}),v.a.createElement(I,{angle:p,className:j.a.darkArc,strokeWidth:g,viewBoxSize:u}),"loading"!==s&&v.a.createElement("div",{className:j.a.statusIndicator},"success"===s&&h,"error"===s&&m));return v.a.createElement("div",{"data-hook":r,className:E()(j.a.loaderContainer,j.a[o],j.a[a],j.a[s])},v.a.createElement(F.a,{loader:{Tooltip:function(){return e.props.shouldLoadAsync?Promise.resolve().then(n.bind(null,567)):n(567)}},defaultComponent:b,shouldLoadComponent:c},(function(e){var t=e.Tooltip;return v.a.createElement(t,{dataHook:"loader-tooltip",content:c},b)})),f&&i&&v.a.createElement("div",{className:j.a.text},v.a.createElement(Y,{appearance:"H6",dataHook:"loader-text"},this.props.text)))}}]),a}(v.a.PureComponent);h()(ee,"displayName","Loader"),h()(ee,"propTypes",{dataHook:b.a.string,size:b.a.oneOf(["tiny","small","medium","large"]),color:b.a.oneOf(["blue","white"]),text:b.a.node,status:b.a.oneOf(["loading","success","error"]),statusMessage:b.a.string,shouldLoadAsync:b.a.bool}),h()(ee,"defaultProps",{size:"medium",color:"blue",status:"loading"});t.a=ee},,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(1),o=n(0),a=n.n(o),i=n(168),s=n(264),c=n(547),u=n.n(c),l=n(7),d=n.n(l),p=n(777),f=function(e){return function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={chatrooms:[],isFirstLoading:!0,isFetchingChatrooms:!0,cursor:void 0},e.handleOnEnterLastChatroom=function(){e.state.chatrooms&&e.state.cursor&&e.fetchMore(e.state.cursor)},e.onChatroomsListChange=function(t){var n=t.rooms,r=t.status,o=(void 0===r?{}:r).isFetchingRooms,a=void 0===o||o,i=t.cursor,s=(!n||0===n.length)&&a;e.setState({chatrooms:n,isFetchingChatrooms:a,cursor:i,isFirstLoading:s})},e}return Object(r.__extends)(n,t),n.prototype.componentDidMount=function(){var e=i.a.subscribeToChatRoomsList({callback:this.onChatroomsListChange,filter:{isArchived:!!this.props.isArchived,participantIds:this.props.participantIds,participantType:this.props.participantType,labelIds:this.props.labelsIdsToFilterBy}});this.unsubscribe=e.unsubscribe,this.fetchMore=e.fetchMore},n.prototype.componentWillUnmount=function(){this.unsubscribe()},n.prototype.render=function(){var t,n=this.state,o=n.chatrooms,i=n.isFetchingChatrooms,c=n.isFirstLoading,l=this.props,f=l.scrollable,h=void 0===f||f,m=(l.isArchived,Object(r.__rest)(l,["scrollable","isArchived"]));return a.a.createElement("div",{className:d()((t={},t[u.a.scrollable]=h,t)),"data-hook":"with-chatrooms-wrapper"},a.a.createElement(e,Object(r.__assign)({},m,{chatrooms:o,isFirstLoading:c,isFetchingChatrooms:i})),a.a.createElement(s.a,{key:"fetch-more-chatrooms-waypoint",onEnter:this.handleOnEnterLastChatroom}),i&&a.a.createElement("div",{"data-hook":"fetch-more-chatrooms-loader",className:u.a.loader},a.a.createElement(p.a,{dataHook:"loader",size:"small"})))},n}(a.a.Component)}},function(e,t,n){"use strict";var r=n(1),o=n(0),a=n.n(o),i=n(454),s=n(162),c=n(9),u=n(140),l=n(442),d=n(52),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.componentDidMount=function(){if(this.props.messages&&this.props.messages.length>0){var e=this.props.foldHeader;e&&e()}},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=e.messages,n=e.foldHeader,r=e.unfoldHeader,o=e.isExpanded;(t||[]).length===(this.props.messages||[]).length&&o===this.props.isExpanded||((t||[]).length>0||!o?n&&n():r&&r({animation:!0}))},t.prototype.render=function(){var e=Object(r.__assign)({isVisible:this.props.isExpanded,onSendMessage:function(){},onAddMessage:function(){},onUploadFile:function(){throw new Error("onUploadFile not implemented!")},onClearUnreadDisplay:function(){},eventHooks:{},loadMore:function(){},offlineChannels:[],chatroomId:"",initialFetchDone:!0,otherParticipantId:""},this.props);return a.a.createElement(c.a,{i18n:Object(s.a)({locale:this.props.locale})},a.a.createElement(u.a,{theme:this.props.theme},a.a.createElement(l.a,{appMode:d.b.Widget},a.a.createElement(i.a,Object(r.__assign)({},e)))))},t}(a.a.Component);t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(0),a=n.n(o),i=n(168),s=n(13),c=function(e){return function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleGlobalUnreadChange=function(t){var n=t.count,r=t.overflow;e.setState({unreadCount:n,unreadOverflow:r})},e}return Object(r.__extends)(n,t),n.prototype.isExperimentOn=function(){return i.a.isExperimentOn(s.Constants.experiments.GlobalUnreadRoomsCounter)},n.prototype.componentDidMount=function(){this.isExperimentOn()&&(this.setState({unreadCount:0,unreadOverflow:!1}),this.subscription=i.a.subscribeToGlobalUnreadStatus({callback:this.handleGlobalUnreadChange}))},n.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.unsubscribe()},n.prototype.render=function(){var t=this.isExperimentOn()?this.state:{},n=Object(r.__assign)(Object(r.__assign)({},this.props),t);return a.a.createElement(e,Object(r.__assign)({},n))},n}(o.Component)}},,function(e,t,n){"use strict";var r=n(1),o=n(0),a=n.n(o),i=n(227),s=n.n(i),c=n(168),u=n(17),l=n(454),d=n(162),p=n(9),f=n(140),h=n(442),m=n(52),v=function(e){return function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(n,t),n.prototype.render=function(){var t=this.props,n=t.locale,o=void 0===n?"en":n,i=t.theme,s=t.appMode,c=void 0===s?m.b.FullApp:s,u=Object(r.__assign)(Object(r.__assign)({},this.props),{locale:o,theme:i,appMode:c});return a.a.createElement(p.a,{i18n:Object(d.a)({locale:o})},a.a.createElement(f.a,{theme:i||{}},a.a.createElement(h.a,{appMode:c},a.a.createElement(e,Object(r.__assign)({},u)))))},n}(o.Component)},g=n(77),b=n(5),y=n.n(b),E=n(145),F=function(e){function t(t){var n=e.call(this,t)||this;return n.onInitialFetchDone=function(e){n._setUnreadDisplay(e),c.a.setMessagesRead({chatroomId:n.props.chatroomId}),n.setState({initialFetchDone:!0}),n.props.eventHooks&&n.props.eventHooks.onInitialFetchDone&&n.props.eventHooks.onInitialFetchDone()},n._clearUnreadDisplay=function(){n.setState({displayLastReadMessageSequence:void 0,displayUnreadCount:0})},n.onRoomChanged=function(e){var t=e.messages,o=n.state.chatroom,a=o.messages;(n._bothArrayEmpty(t,a)&&delete e.messages,(o.messages?o.messages.length:0)!==(t?t.length:0))&&(t&&t.length>0&&n.props.foldHeader&&n.props.foldHeader());n.props.onRoomChanged&&n.props.onRoomChanged(e),c.a.isExperimentOn(g.a.UnreadMessagesButtonDesktop)&&n._setUnreadDisplay(e),n.setState((function(t){return{chatroom:Object(r.__assign)(Object(r.__assign)({},t.chatroom),e)}}));var i=e.participants;if(i&&i.length){var s=[];i.forEach((function(e){var t={id:e.id,profileImage:y()(e,"displayData.image.url",""),userName:y()(e,"displayData.name","")};s.push(t)})),n.setState({enrichSendersData:s})}},n.setMessagesRead=function(){var e=n.state.chatroom;c.a.isExperimentOn(g.a.UnreadMessagesButtonDesktop)&&e.unreadCount&&n.isChatOnFocus()&&c.a.setMessagesRead({chatroomId:n.props.chatroomId})},n.onTyping=function(e){var t=n.state.chatroom.id;t&&c.a.notifyTyping(t,e);var r=n.props.eventHooks.onTyping;(void 0===r?function(){}:r)()},n.onVisibilityChangeHandler=function(){Object(E.a)()&&!c.a.isExperimentOn(g.a.UnreadMessagesButtonDesktop)&&(c.a.setMessagesRead({chatroomId:n.props.chatroomId}),n._setUnreadDisplay({unreadCount:n.state.displayUnreadCount,lastReadMessageSequence:n.state.displayLastReadMessageSequence}))},n.handleAddMessage=function(e){return Object(r.__awaiter)(n,void 0,void 0,(function(){return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return this.props.isVisible?[4,c.a.addMessage(e)]:(this.sendErrorBI(),[2]);case 1:return t.sent(),[2]}}))}))},n.handleSendMessage=function(e){return Object(r.__awaiter)(n,void 0,void 0,(function(){var t,n,o,a,i,s,u,l,d,p;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return t=this.props,n=t.chatroomId,o=t.isVisible,a=t.dummyMode,i=t.eventHooks,u=(s=void 0===i?{}:i).onSendMessage,l=void 0===u?function(){}:u,d=s.onSendMessageSuccess,p=void 0===d?function(){}:d,o?(l(e.dto),a?[3,2]:(this._clearUnreadDisplay(),this._clearDraftForChatroom(n),this.setMessagesRead(),[4,c.a.sendMessage(e)])):(this.sendErrorBI(),[2]);case 1:r.sent(),r.label=2;case 2:return p(e),[2]}}))}))},n.sendErrorBI=function(){n.logger.log({evid:572,tagId:"sendDisabledBug",description:"widget should be closed! How this message was sent??"})},n.handleSendAgain=function(e){return c.a.sendMessage(e)},n._bothArrayEmpty=function(e,t){return e&&t&&0===e.length&&0===t.length},n.loadMore=function(){return n.room&&n.room.fetchMore(n.state.chatroom.cursor)},n.state={chatroom:{messages:[]},enrichSendersData:[],initialFetchDone:!1,userId:c.a.getUserId()},n.logger=s.a.factory({endpoint:"chat"}).setDefaults({src:5}).logger(),n}return Object(r.__extends)(t,e),t.prototype._setUnreadDisplay=function(e){var t=e.lastReadMessageSequence,n=e.unreadCount;n&&this.setState({displayLastReadMessageSequence:t,displayUnreadCount:n})},t.prototype._clearDraftForChatroom=function(e){c.a.notifyTypingTextChange(e,"",!1)},t.prototype.isChatOnFocus=function(){return Object(E.a)()},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=e.chatroomId;e.chatroomId!==this.props.chatroomId&&(this.unsubscribe(),this.subscribeToRoom({chatroomId:t}),this.setState({userId:c.a.getUserId()}))},t.prototype.unsubscribe=function(){this.room&&this.room.unsubscribe(),this.unsubscribeFromRealtimeMessage&&(this.unsubscribeFromRealtimeMessage(),this.unsubscribeFromRealtimeMessage=void 0)},t.prototype.subscribeToRoom=function(e){var t=this,n=e.chatroomId;this.room=c.a.subscribeToChatRoom({chatroomId:n,onChange:this.onRoomChanged,onInitialFetchDone:this.onInitialFetchDone});var r=function(e){e.chatroomId===n&&t.onNewMessage()};u.d.addListener(u.d.CHAT_EVENTS.NEW_REALTIME_MESSAGE,r),this.unsubscribeFromRealtimeMessage=function(){u.d.removeListener(u.d.CHAT_EVENTS.NEW_REALTIME_MESSAGE,r)}},t.prototype.onNewMessage=function(){var e=this.props.eventHooks.onMessageReceived;(void 0===e?function(){}:e)(),this.isChatOnFocus()?c.a.isExperimentOn(g.a.UnreadMessagesButtonDesktop)||(this._clearUnreadDisplay(),c.a.setMessagesRead({chatroomId:this.props.chatroomId})):this._setUnreadDisplay({unreadCount:this.state.displayUnreadCount,lastReadMessageSequence:this.state.displayLastReadMessageSequence})},t.prototype.componentDidMount=function(){var e=this.props,t=e.chatroomId;e.dummyMode||(this.subscribeToRoom({chatroomId:t}),Object(E.b)(this.onVisibilityChangeHandler))},t.prototype.componentDidUpdate=function(e){this.collapsing(e)&&this.isChatOnFocus()&&this._clearUnreadDisplay()},t.prototype.collapsing=function(e){return e.isVisible&&!this.props.isVisible},t.prototype.componentWillUnmount=function(){this.unsubscribe(),Object(E.c)(this.onVisibilityChangeHandler)},t.prototype.render=function(){var e=this,t=this.props,n=t.header,r=t.eventHooks,o=t.className,i=t.disabled,s=t.isVisible,c=t.messageDirectionOverride,u=t.sendOnEnter,d=t.instanceId,p=t.foldHeader,f=t.unfoldHeader,h=t.isHeaderFolded,m=t.isMobile,v=t.isCollapsedAndRounded,g=t.shouldApplyExpandAnimation,b=t.shouldApplyCollapseAnimation,y=t.sendersData,E=t.getInputSendViaIndication,F=t.banner,C=t.unfoldWhenEmpty,A=t.getInputOverrideComponent,_=t.avatarOption,D=t.timestampTooltipConfig,O=t.customTypingAnimation,w=t.useAvatarTooltip,x=t.inputKeyboards,B=t.containerStyle,S=t.chatroomId,k=t.onUploadFile,T=t.compactView,R=t.emptyState,I=this.state.chatroom,P=this.props.typingStatus?this.props.typingStatus:I.typingStatus;return a.a.createElement(l.a,{hasMore:!!I.cursor,loadMore:this.loadMore,className:o,disabled:i,onSendMessage:this.handleSendMessage,onAddMessage:this.handleAddMessage,onSendAgain:this.handleSendAgain,onUploadFile:k,onClearUnreadDisplay:this._clearUnreadDisplay,handleTyping:this.onTyping,header:n,messages:I.messages,userId:this.state.userId,chatroomId:S,unreadCount:this.state.displayUnreadCount,lastReadMessageSequence:this.state.displayLastReadMessageSequence,eventHooks:r,messageDirectionOverride:c?function(t){return c(t,e.state.chatroom)}:void 0,sendOnEnter:u,instanceId:d,isVisible:s,isGroupChat:!I.isPrivate,foldHeader:p,unfoldHeader:f,isHeaderFolded:h,isMobile:m,isCollapsedAndRounded:v,shouldApplyExpandAnimation:g,shouldApplyCollapseAnimation:b,sendersData:y&&y.length?y:this.state.enrichSendersData,getInputSendViaIndication:E,offlineChannels:I.offlineChannels,banner:F,unfoldWhenEmpty:C,inputOverrideComponent:A(I),messageDraft:I.initialMessageDraft,avatarOption:_,typingStatus:P,timestampTooltipConfig:D,customTypingAnimation:O,useAvatarTooltip:w,setMessagesRead:this.setMessagesRead,containerStyle:B,inputKeyboards:x,compactView:T,emptyState:R,initialFetchDone:this.state.initialFetchDone,otherParticipantId:I.otherParticipantId})},t.defaultProps={dummyMode:!1,eventHooks:{},isVisible:!0,isCollapsedAndRounded:!1,shouldApplyExpandAnimation:!1,shouldApplyCollapseAnimation:!1,sendersData:[],unfoldWhenEmpty:!0,getInputOverrideComponent:function(){return null}},t}(a.a.Component);t.a=v(F)},,,function(e,t,n){"use strict";var r=n(56),o=n.n(r),a=n(68),i=n.n(a),s=n(54),c=n.n(s),u=n(55),l=n.n(u),d=n(20),p=n.n(d),f=n(66),h=n.n(f),m=n(67),v=n.n(m),g=n(29),b=n.n(g),y=n(11),E=n.n(y),F=n(0),C=n.n(F),A=n(2),_=n.n(A),D=n(261),O=n(568),w=n(147),x=n.n(w),B=n(35),S=n.n(B);function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var T=["mouseup","touchend"],R=function(e){h()(r,e);var t,n=(t=r,function(){var e,n=b()(t);if(k()){var r=b()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return v()(this,e)});function r(e){var t;return c()(this,r),(t=n.call(this,e))._addDataHook=t._addDataHook.bind(p()(t)),t._supportOnClickOutside=t._supportOnClickOutside.bind(p()(t)),t._onMouseEventsHandler=t._onMouseEventsHandler.bind(p()(t)),t}return l()(r,[{key:"checkIfEventOnElements",value:function(e,t){for(var n=e.target;n.parentNode;){if(t.indexOf(n)>-1)return!0;n=n.parentNode}return n!==document}},{key:"componentElements",value:function(){return[S.a.findDOMNode(this)]}},{key:"setStyles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.props.styles?this.styles=this.props.styles:this.styles=e,this.typography=this.props.styles||t}},{key:"_onMouseEventsHandler",value:function(e){this.checkIfEventOnElements(e,this.componentElements())||this.onClickOutside(e)}},{key:"_addDataHook",value:function(e){var t=S.a.findDOMNode(this);t&&t.setAttribute("data-hook",e)}},{key:"_supportOnClickOutside",value:function(){var e=this;T.forEach((function(t){document.addEventListener(t,e._onMouseEventsHandler,!0)})),this._boundEvents=T}},{key:"componentDidMount",value:function(){var e=this.props.dataHook;e&&this._addDataHook(e),"function"==typeof this.onClickOutside&&this._supportOnClickOutside()}},{key:"componentDidUpdate",value:function(e){e.dataHook!==this.props.dataHook&&this._addDataHook(this.props.dataHook)}},{key:"componentWillUnmount",value:function(){var e=this;this._boundEvents&&"undefined"!=typeof document&&this._boundEvents.forEach((function(t){document.removeEventListener(t,e._onMouseEventsHandler,!0)}))}}]),r}(C.a.PureComponent);R.propTypes={dataHook:_.a.string,styles:_.a.string};var I=R,P=n(7),j=n.n(P),M=n(113),N=n.n(M);function L(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var H=function(e){h()(r,e);var t,n=(t=r,function(){var e,n=b()(t);if(L()){var r=b()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return v()(this,e)});function r(){return c()(this,r),n.apply(this,arguments)}return l()(r,[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.contentClassName,o=t.theme,a=t.arrowPlacement,i=t.arrowStyle,s=t.style,c=t.onMouseEnter,u=t.onMouseLeave,l=t.bounce,d=t.size,p=t.textAlign,f=t.maxWidth,h=t.minWidth,m=t.padding,v=t.color,g=t.lineHeight,b=t.showImmediately,y=t.showArrow,F=t.dataHook;return C.a.createElement("div",{className:N.a.root,style:s,onMouseEnter:c,onMouseLeave:u,"data-hook":F},C.a.createElement("div",{className:j()(E()({},N.a.fadeIn,!b))},C.a.createElement("div",{className:j()(E()({},N.a["bounce-".concat(a)],l))},C.a.createElement("div",{ref:function(t){return e.tooltip=t},className:j()(N.a.tooltip,N.a[o],N.a[d],r),style:{maxWidth:f,minWidth:h,textAlign:p,padding:m,lineHeight:g,color:v}},C.a.createElement("div",{"data-hook":"tooltip-content"},n)),y&&C.a.createElement("div",{"data-hook":"tooltip-arrow",className:j()(N.a.arrow,N.a[o],N.a[a]),style:i}))))}}]),r}(F.Component);E()(H,"propTypes",{dataHook:_.a.string,contentClassName:_.a.string,textAlign:_.a.string,maxWidth:_.a.oneOfType([_.a.string,_.a.number]),minWidth:_.a.oneOfType([_.a.string,_.a.number]),children:_.a.node.isRequired,theme:_.a.oneOf(["light","dark","error"]),arrowPlacement:_.a.oneOf(["top","right","bottom","left"]),arrowStyle:_.a.object,style:_.a.object,padding:_.a.oneOfType([_.a.string,_.a.number]),onMouseEnter:_.a.func,onMouseLeave:_.a.func,bounce:_.a.bool,size:_.a.oneOf(["normal","large"]),color:_.a.string,lineHeight:_.a.string,showImmediately:_.a.bool,showArrow:_.a.bool}),E()(H,"defaultProps",{theme:"light",arrowPlacement:"bottom",maxWidth:"204px",size:"normal",textAlign:"center",showArrow:!0});var U=H,z=function(){return{top:0,left:0}},W={"top-left":function(e,t,n){return{top:e.top-t.height-n,left:e.left}},"top-center":function(e,t,n){return{top:e.top-t.height-n,left:e.left+e.width/2-t.width/2}},"top-right":function(e,t,n){return{top:e.top-t.height-n,left:e.left+e.width-t.width}},"bottom-left":function(e,t,n){return{top:e.top+e.height+n,left:e.left}},"bottom-center":function(e,t,n){return{top:e.top+e.height+n,left:e.left+e.width/2-t.width/2}},"bottom-right":function(e,t,n){return{top:e.top+e.height+n,left:e.left+e.width-t.width}},"left-top":function(e,t,n){return{top:e.top,left:e.left-t.width-n}},"left-center":function(e,t,n){return{top:e.top+e.height/2-t.height/2,left:e.left-t.width-n}},"left-bottom":function(e,t,n){return{top:e.top+e.height-t.height,left:e.left-t.width-n}},"right-top":function(e,t,n){return{top:e.top,left:e.left+e.width+n}},"right-center":function(e,t,n){return{top:e.top+e.height/2-t.height/2,left:e.left+e.width+n}},"right-bottom":function(e,t,n){return{top:e.top+e.height-t.height,left:e.left+e.width+n}}},G={"top-left":function(e,t,n){return{top:-e.height-t.height-n,left:0}},"top-center":function(e,t,n){return{top:-e.height-t.height-n,left:e.width/2-t.width/2}},"top-right":function(e,t,n){return{top:-e.height-t.height-n,left:e.width-t.width}},"bottom-left":function(e,t,n){return{top:n,left:0}},"bottom-center":function(e,t,n){return{top:n,left:e.width/2-t.width/2}},"bottom-right":function(e,t,n){return{top:n,left:e.width-t.width}},"left-top":function(e,t,n){return{top:-e.height+n,left:-t.width-n}},"left-center":function(e,t,n){return{top:t.height/2-e.height/2,left:-t.width-n}},"left-bottom":function(e,t,n){return{top:-t.height-n,left:-t.width-n}},"right-top":function(e,t,n){return{top:-e.height+n,left:e.width+n}},"right-center":function(e,t,n){return{top:t.height/2-e.height/2,left:e.width+n}},"right-bottom":function(e,t,n){return{top:-t.height-n,left:e.width+n}}};var V=function(){function e(t,n,r){c()(this,e),this._predicates=[function(e){return"page-scrollable-content"===e.getAttribute("data-class")},function(e){return e===document.body}],this._ancestor=null,this._appendTo=t,this._appendToParent=n,r&&this._predicates.push(r)}return l()(e,[{key:"_findAncestor",value:function(e){for(;e&&!this._predicates.some((function(t){return t(e)}));)e=e.parentElement;return e||document.body}},{key:"getContainer",value:function(e){return document?this._appendTo?this._appendTo:this._appendToParent?e.parentElement:(this._ancestor||(this._ancestor=this._findAncestor(e)),this._ancestor):null}}]),e}(),Y=n(421),q=n.n(Y),K=n(589);function $(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Z=S.a.unstable_renderSubtreeIntoContainer,Q=0;var X=function(e){return function(){return window.requestAnimationFrame(q()(e,16))}},J={contentClassName:N.a.popoverTooltipContent,theme:"light",showTrigger:"click",hideTrigger:"click"},ee=function(e){h()(r,e);var t,n=(t=r,function(){var e,n=b()(t);if($()){var r=b()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return v()(this,e)});function r(e){var t;return c()(this,r),t=n.call(this,e),E()(p()(t),"_childNode",null),E()(p()(t),"_mountNode",null),E()(p()(t),"_showTimeout",null),E()(p()(t),"_showInterval",null),E()(p()(t),"_hideTimeout",null),E()(p()(t),"_unmounted",!1),E()(p()(t),"_containerScrollHandler",null),E()(p()(t),"_createContentHook",(function(){return"tooltip-content-".concat(t.props.dataHook||"","-").concat(t.testId)})),E()(p()(t),"renderTooltipIntoContainer",(function(){if(t._mountNode&&t.state.visible){var e=t.props.popover?J.contentClassName:"",n=t.props.popover?J.theme:t.props.theme,r=t.props.relative?"relative":"absolute",o=C.a.createElement(U,{dataHook:t.contentHook,contentClassName:e,onMouseEnter:function(){return t._onTooltipContentEnter()},onMouseLeave:function(){return t._onTooltipContentLeave()},ref:function(e){t.props.relative?t.tooltipContent=e&&e.tooltip:t.tooltipContent=e},showImmediately:t.props.showImmediately,theme:n,bounce:t.props.bounce,arrowPlacement:{top:"bottom",left:"right",right:"left",bottom:"top"}[t.props.placement],style:{zIndex:t.props.zIndex,_position:r},arrowStyle:t.state.arrowStyle,maxWidth:t.props.maxWidth,padding:t.props.padding,minWidth:t.props.minWidth,size:t.props.size,textAlign:t.props.textAlign,lineHeight:t.props.lineHeight,color:t.props.color,showArrow:t.props.showArrow},t.props.content);Z(p()(t),o,t._mountNode),t.props.shouldUpdatePosition&&setTimeout((function(){t._updatePosition(t.tooltipContent)}))}})),E()(p()(t),"_chainCallbacks",(function(e,n){return function(){for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:t.props;e.disabled||t._unmounted||(t.setState({hidden:!1}),t._hideTimeout&&(clearTimeout(t._hideTimeout),t._hideTimeout=null),t._showTimeout||t.state.visible||(t.props.showImmediately?t._doShow(e):t._showTimeout=setTimeout((function(){return t._doShow(e)}),e.showDelay)))})),E()(p()(t),"hide",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.props;if(t.setState({hidden:!0}),t._showTimeout&&(clearTimeout(t._showTimeout),t._showTimeout=null),!t._hideTimeout&&t.state.visible){var n=function(){e.onHide&&e.onHide(),t._hideTimeout=null,t._unmounted||(t._removeNode(),t.setState({visible:!1}))};if(t._unmounted)return n();t._hideTimeout=setTimeout(n,e.hideDelay)}})),t.state={visible:!1,hidden:!0},t._tooltipContainerStrategy=new V(e.appendTo,e.appendToParent,e.appendByPredicate),t.testId=++Q,t.contentHook=t._createContentHook(),t}return l()(r,[{key:"_setContentDataHook",value:function(){this._childNode&&this._childNode.setAttribute("data-content-hook",this.contentHook)}},{key:"componentElements",value:function(){var e=x()(b()(r.prototype),"componentElements",this).call(this);return this._mountNode?e.concat(this._mountNode):e}},{key:"onClickOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.hide(),this.props.onClickOutside&&this.props.onClickOutside(e)}},{key:"componentDidUpdate",value:function(e){x()(b()(r.prototype),"componentDidUpdate",this).call(this,e),e.dataHook!==this.props.dataHook&&(this.contentHook=this._createContentHook(),this._setContentDataHook()),this.renderTooltipIntoContainer()}},{key:"componentDidMount",value:function(){x()(b()(r.prototype),"componentDidMount",this)&&x()(b()(r.prototype),"componentDidMount",this).call(this),this._setContentDataHook()}},{key:"componentWillUnmount",value:function(){x()(b()(r.prototype),"componentWillUnmount",this)&&x()(b()(r.prototype),"componentWillUnmount",this).call(this),this._unmounted=!0,this._removeNode(),this._getContainer()&&this.hide(),this._showInterval&&clearInterval(this._showInterval)}},{key:"UNSAFE_componentWillMount",value:function(){x()(b()(r.prototype),"UNSAFE_componentWillMount",this)&&x()(b()(r.prototype),"UNSAFE_componentWillMount",this).call(this),this.props.active&&this.show()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){x()(b()(r.prototype),"UNSAFE_componentWillReceiveProps",this)&&x()(b()(r.prototype),"UNSAFE_componentWillReceiveProps",this).call(this,e),e.active===this.props.active&&e.disabled===this.props.disabled||(this.state.visible&&"custom"===this.getTriggers().hideTrigger&&(e.active&&!e.disabled||this.hide(e)),this.state.visible||"custom"!==this.getTriggers().showTrigger||e.active&&!e.disabled&&this.show(e))}},{key:"getTriggers",value:function(){return{hideTrigger:this.props.popover?"click":this.props.hideTrigger,showTrigger:this.props.popover?"click":this.props.showTrigger}}},{key:"render",value:function(){var e=this,t=Array.isArray(this.props.children)?this.props.children[0]:this.props.children;return t?Object(F.cloneElement)(t,{ref:function(t){return e._childNode=S.a.findDOMNode(t)},onClick:this._chainCallbacks(t.props?t.props.onClick:null,this._onClick),onMouseEnter:this._chainCallbacks(t.props?t.props.onMouseEnter:null,this._onMouseEnter),onMouseLeave:this._chainCallbacks(t.props?t.props.onMouseLeave:null,this._onMouseLeave),onFocus:this._chainCallbacks(t.props?t.props.onFocus:null,this._onFocus),onBlur:this._chainCallbacks(t.props?t.props.onBlur:null,this._onBlur)}):C.a.createElement("div",null)}},{key:"_getContainer",value:function(){return this._tooltipContainerStrategy.getContainer(this._childNode)}},{key:"_doShow",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;"undefined"!=typeof document&&(t.onShow&&t.onShow(),this.setState({visible:!0},(function(){if(!e._mountNode){e._mountNode=document.createElement("div");var n=e._getContainer();n&&(n.appendChild(e._mountNode),e._containerScrollHandler=X((function(){return e._updatePosition(e.tooltipContent)})),n.addEventListener("scroll",e._containerScrollHandler))}e._showTimeout=null,e.renderTooltipIntoContainer(),S.a.findDOMNode(e.tooltipContent)&&e._updatePosition(e.tooltipContent);var r=0,o=0;setTimeout((function(){var n=0,a=0;do{var i=S.a.findDOMNode(e.tooltipContent);i&&(r=e._getRect(i).width,e._updatePosition(e.tooltipContent),o=e._getRect(i).width),++n,a=Math.abs(r-o)}while(!t.appendToParent&&a>.1&&n<10)}))})))}},{key:"_removeNode",value:function(){if(this._mountNode){S.a.unmountComponentAtNode(this._mountNode);var e=this._getContainer();e&&(e.removeChild(this._mountNode),e.removeEventListener("scroll",this._containerScrollHandler)),this._mountNode=null}}},{key:"_hideOrShow",value:function(e){this.getTriggers().hideTrigger!==e||this.state.hidden?this.getTriggers().showTrigger===e&&this.show():this.hide()}},{key:"_onBlur",value:function(){this._hideOrShow("blur")}},{key:"_onFocus",value:function(){this._hideOrShow("focus")}},{key:"_onClick",value:function(){this._hideOrShow("click")}},{key:"_onMouseEnter",value:function(){this._hideOrShow("mouseenter")}},{key:"_onMouseLeave",value:function(){this._hideOrShow("mouseleave")}},{key:"_calculatePosition",value:function(e,t){return e&&t?this._adjustPosition(function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=n.placement,a=void 0===o?"top":o,i=n.alignment,s=void 0===i?"center":i,c=n.margin,u=void 0===c?20:c,l=r?G:W;return(l["".concat(a,"-").concat(s)]||z)(e,t,u)}(this._getRect(this._childNode),this._getRect(t),{placement:this.props.placement,alignment:this.props.alignment,margin:10},this.props.relative)):{top:-1,left:-1}}},{key:"_updatePosition",value:function(e){if(e&&this._childNode){var t=S.a.findDOMNode(e),n=this._calculatePosition(e,t);this.props.relative,t.style.top="".concat(n.top,"px"),t.style.left="".concat(n.left,"px");var r=this._adjustArrowPosition(this.props.placement,this.props.moveArrowTo);if(Object.keys(r).length){var o=t.querySelector(".".concat(N.a.arrow));o&&Object.keys(r).forEach((function(e){o.style[e]=r[e]}))}}}},{key:"_adjustArrowPosition",value:function(e,t){if(t){var n=t>0,r=n?t:-t;return["top","bottom"].includes(e)?n?{left:"".concat(r,"px")}:{left:"auto",right:"".concat(r,"px")}:n?{top:"".concat(r,"px")}:{top:"auto",bottom:"".concat(r,"px")}}return{}}},{key:"_getRect",value:function(e){if(this.props.appendToParent)return{left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight};var t=this._getContainer(e);if(t!==document.body){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return{left:r.left-n.left+t.scrollLeft,top:r.top-n.top+t.scrollTop,width:r.width,height:r.height}}return e.getBoundingClientRect()}},{key:"_adjustPosition",value:function(e){var t=this.props.moveBy||{},n=t.x,r=void 0===n?0:n,o=t.y,a=void 0===o?0:o;return this.props.appendToParent||(r+=window.scrollX||0,a+=window.scrollY||0),{left:e.left+r,top:e.top+a}}},{key:"_onTooltipContentEnter",value:function(){"custom"!==this.getTriggers().showTrigger&&this.show()}},{key:"_onTooltipContentLeave",value:function(){"custom"!==this.getTriggers().hideTrigger&&this._onMouseLeave()}},{key:"isShown",value:function(){return this.state.visible}}]),r}(I);E()(ee,"displayName","Tooltip"),E()(ee,"propTypes",{dataHook:_.a.string,textAlign:_.a.string,children:_.a.node,content:_.a.node.isRequired,placement:_.a.oneOf(["top","right","bottom","left"]),alignment:_.a.oneOf(["top","right","bottom","left","center"]),theme:_.a.oneOf(["light","dark","error"]),showDelay:_.a.number,hideDelay:_.a.number,showTrigger:_.a.oneOf(["custom","mouseenter","mouseleave","click","focus","blur"]),hideTrigger:_.a.oneOf(["custom","mouseenter","mouseleave","click","focus","blur"]),active:_.a.bool,bounce:_.a.bool,disabled:_.a.bool,popover:_.a.bool,maxWidth:_.a.oneOfType([_.a.string,_.a.number]),minWidth:_.a.oneOfType([_.a.string,_.a.number]),onClickOutside:_.a.func,color:_.a.string,lineHeight:_.a.string,onShow:_.a.func,onHide:_.a.func,zIndex:_.a.number,appendToParent:_.a.bool,appendByPredicate:_.a.func,appendTo:_.a.any,moveBy:_.a.shape({x:_.a.number,y:_.a.number}),moveArrowTo:_.a.number,size:_.a.oneOf(["normal","large"]),shouldCloseOnClickOutside:_.a.bool,relative:_.a.bool,padding:_.a.oneOfType([_.a.string,_.a.number]),shouldUpdatePosition:_.a.bool,showImmediately:_.a.bool,showArrow:_.a.bool}),E()(ee,"defaultProps",{placement:"top",alignment:"center",showTrigger:"mouseenter",hideTrigger:"mouseleave",showDelay:200,hideDelay:0,zIndex:Object(K.a)("Tooltip"),maxWidth:"204px",onClickOutside:null,onShow:null,onHide:null,active:!1,theme:"light",disabled:!1,children:null,size:"normal",shouldCloseOnClickOutside:!1,textAlign:"left",relative:!1,shouldUpdatePosition:!1,showImmediately:!1,showArrow:!0});var te=ee;function ne(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var re=function(e){h()(r,e);var t,n=(t=r,function(){var e,n=b()(t);if(ne()){var r=b()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return v()(this,e)});function r(){var e;c()(this,r);for(var t=arguments.length,o=new Array(t),a=0;a" and follow "7.1 Tooltip" new API docs. ')}},{key:"render",value:function(){var e=this,t=this.props,n=t.upgrade,r=i()(t,["upgrade"]);return n?C.a.createElement(O.a,r):C.a.createElement(te,o()({},r,{ref:function(t){return e.oldRef=t}}))}}]),r}(F.Component);E()(re,"displayName","Tooltip"),E()(re,"propTypes",{upgrade:_.a.bool});t.a=re},,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n(0),a=function(e){function t(t){var n=e.call(this,t)||this;n.resolveModule=function(e,t){return void 0===t&&(t="default"),"function"==typeof e?e:(e[t]||console.warn("You have used , but module you are accessing via 'loader' prop has different exports. Use componentKey=\""+Object.keys(e).slice(0)+'" to access exported component property. '),e[t])},n.loadSyncOrAsync=function(){var e=n.props,t=e.loader,r=e.namedExports,o=void 0===r?{}:r,a={},i={},s=function(e){var r=t[e]();r instanceof Promise?i[e]=r.then((function(t){return n.resolveModule(t,o[e])})).catch((function(){console.error("Asset wasn't loaded: "+r)})):a[e]=n.resolveModule(r,o[e])};for(var c in t)s(c);if(!(Object.keys(i).length>0))return n.props.onLoad&&n.props.onLoad(),a;var u=Object.keys(i);return Promise.all(u.map((function(e){return i[e]}))).then((function(e){e.forEach((function(e,t){var n=u[t];a[n]=e})),n.props.onLoad&&n.props.onLoad(),n.setState({loaded:a,isLoading:!1})})),null};var r=null;t.shouldLoadComponent&&(r=n.loadSyncOrAsync());var o=t.shouldLoadComponent&&!r;return n.state={loaded:r,isLoading:o},n}return Object(r.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(!this.state.loaded&&!e.shouldLoadComponent&&this.props.shouldLoadComponent&&!this.state.isLoading){var t;t=this.loadSyncOrAsync(),this.setState({loaded:t,isLoading:!t})}},t.prototype.render=function(){var e=this.state,t=e.loaded,n=e.isLoading,r=this.props,o=r.shouldLoadComponent,a=r.defaultComponent,i=r.loadingComponent,s=r.children;return n?i||a:o&&t?s(t):a},t}(o.Component)},function(e,t,n){"use strict";var r=n(56),o=n.n(r),a=n(68),i=n.n(a),s=n(54),c=n.n(s),u=n(55),l=n.n(u),d=n(66),p=n.n(d),f=n(67),h=n.n(f),m=n(29),v=n.n(m),g=n(11),b=n.n(g),y=n(0),E=n.n(y),F=n(244),C=n(143),A=n(2),_=n.n(A),D=n(615),O=n.n(D);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var B=function(e){p()(r,e);var t,n=(t=r,function(){var e,n=v()(t);if(x()){var r=v()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return h()(this,e)});function r(){return c()(this,r),n.apply(this,arguments)}return l()(r,[{key:"render",value:function(){var e=this.props,t=e.dataHook,n=e.animate,r=e.theme,a=e.disableClickOutsideWhenClosed,s=i()(e,["dataHook","animate","theme","disableClickOutsideWhenClosed"]),c=n?{enter:300,exit:0}:void 0;return E.a.createElement(F.a,o()({disableClickOutsideWhenClosed:a,timeout:c},t?{"data-hook":t}:void 0,s,O()("root",{theme:r},this.props)))}}]),r}(E.a.Component);b()(B,"displayName","Popover"),b()(B,"Element",F.a.Element),b()(B,"Content",F.a.Content),b()(B,"propTypes",function(e){for(var t=1;t supplied"))}),!1):new Error("Invalid children provided, must be provided"):new Error("Invalid children provided, must be provided")},disableClickOutsideWhenClosed:_.a.bool})),b()(B,"defaultProps",{appendTo:"parent",animate:!1}),t.a=B},function(e,t,n){"use strict";var r=n(56),o=n.n(r),a=n(68),i=n.n(a),s=n(54),c=n.n(s),u=n(55),l=n.n(u),d=n(66),p=n.n(d),f=n(67),h=n.n(f),m=n(29),v=n.n(m),g=n(11),b=n.n(g),y=n(0),E=n.n(y),F=n(455),C=n(450),A=n(449),_=n(617),D=n.n(_),O=n(2);function w(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var x=function(e){p()(r,e);var t,n=(t=r,function(){var e,n=v()(t);if(w()){var r=v()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return h()(this,e)});function r(){return c()(this,r),n.apply(this,arguments)}return l()(r,[{key:"render",value:function(){var e=this.props,t=e.skin,n=e.priority,r=e.size,a=(e.className,e.fullWidth),s=e.children,c=e.dataHook,u=i()(e,["skin","priority","size","className","fullWidth","children","dataHook"]);return E.a.createElement(F.a,o()({"data-madefor":Object(A.a)()},u,Object(C.a)(this.props,["skin","size","priority"]),D()("root",{fluid:a,skin:t,priority:n,size:r},this.props),{"data-hook":c}),s)}}]),r}(y.PureComponent);b()(x,"displayName","Button"),b()(x,"propTypes",{as:Object(O.oneOfType)([O.func,O.object,O.string]),className:O.string,skin:Object(O.oneOf)(["standard","inverted","destructive","premium","dark","light","transparent","premium-light"]),priority:Object(O.oneOf)(["primary","secondary"]),size:Object(O.oneOf)(["tiny","small","medium","large"]),onClick:O.func,fullWidth:O.bool,suffixIcon:O.element,prefixIcon:O.element,disabled:O.bool,children:O.node,dataHook:O.string}),b()(x,"defaultProps",{skin:"standard",priority:"primary",size:"medium"}),t.a=x},function(e,t,n){"use strict";var r,o=n(56),a=n.n(o),i=n(68),s=n.n(i),c=n(54),u=n.n(c),l=n(55),d=n.n(l),p=n(66),f=n.n(p),h=n(67),m=n.n(h),v=n(29),g=n.n(v),b=n(11),y=n.n(b),E=n(0),F=n.n(E),C=n(455),A=n(2),_="tiny",D="small",O="medium",w="large",x=(r={},y()(r,_,"18px"),y()(r,D,"18px"),y()(r,O,"24px"),y()(r,w,"24px"),r),B=n(450),S=n(7),k=n.n(S),T=n(555),R=n.n(T);function I(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var P=function(e){f()(r,e);var t,n=(t=r,function(){var e,n=g()(t);if(I()){var r=g()(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return m()(this,e)});function r(){return u()(this,r),n.apply(this,arguments)}return d()(r,[{key:"render",value:function(){var e=this.props,t=e.skin,n=e.className,r=e.priority,o=e.size,i=e.children,c=e.dataHook,u=s()(e,["skin","className","priority","size","children","dataHook"]),l=x[o],d=R()("root",{skin:t,priority:r,size:o}).className,p=k()(d,n);return F.a.createElement(C.a,a()({},u,R()("root",{skin:t,priority:r,size:o},this.props),Object(B.a)(this.props,["skin","priority","size"]),{"data-hook":c,className:p}),i&&F.a.cloneElement(i,{size:l,width:l,height:l}))}}]),r}(E.PureComponent);y()(P,"displayName","IconButton"),y()(P,"propTypes",{as:Object(A.oneOfType)([A.func,A.object,A.string]),className:A.string,children:A.node,skin:Object(A.oneOf)(["standard","inverted","light","transparent","premium"]),priority:Object(A.oneOf)(["primary","secondary"]),size:Object(A.oneOf)(["tiny","small","medium","large"]),onClick:A.func,disabled:A.bool,dataHook:A.string}),y()(P,"defaultProps",{skin:"standard",priority:"primary",size:"medium",disabled:!1});t.a=P},,,,,,,,,,function(e,t,n){var r=n(255),o=n(246),a=n(808),i=n(247),s=o((function(e){return a(r(e,i))}));e.exports=s},function(e,t,n){var r=n(631),o=n(205),a=n(469);e.exports=function(e,t,n){var i=e.length;if(i<2)return i?a(e[0]):[];for(var s=-1,c=Array(i);++ssvg{width:8px;height:8px}.Checkbox1908586586--root[data-checkbox1908586586-valign=center] .Checkbox1908586586--label{align-items:center}.Checkbox1908586586--root[data-checkbox1908586586-valign=top] .Checkbox1908586586--outer{margin-top:4px;display:flex}.Checkbox1908586586--root[data-checkbox1908586586-selectionarea=always]{background-color:#f4fafe;cursor:pointer;border-radius:8px}.Checkbox1908586586--root[data-checkbox1908586586-selectionarea=always]{cursor:pointer;border-radius:8px}.Checkbox1908586586--root[data-checkbox1908586586-selectionarea=always]:hover,.Checkbox1908586586--root[data-checkbox1908586586-selectionarea=hover]:hover{background-color:#eaf7ff}.Checkbox1908586586--root[data-checkbox1908586586-selectionarea=always] .Checkbox1908586586--children,.Checkbox1908586586--root[data-checkbox1908586586-selectionarea=hover] .Checkbox1908586586--children{padding:12px 16px 12px 12px}.Checkbox1908586586--root[data-checkbox1908586586-selectionarea=always] .Checkbox1908586586--outer,.Checkbox1908586586--root[data-checkbox1908586586-selectionarea=hover] .Checkbox1908586586--outer{cursor:pointer;padding:16px 0 16px 16px}.Checkbox1908586586--root[data-checkbox1908586586-selectionarea=always] .Checkbox1908586586--outer{cursor:pointer;padding:16px 0 16px 16px}.Checkbox1908586586--root[data-checkbox1908586586-selectionarea=always][data-checkbox1908586586-selection=checked],.Checkbox1908586586--root[data-checkbox1908586586-selectionarea=always][data-checkbox1908586586-selection=indeterminate],.Checkbox1908586586--root[data-checkbox1908586586-selectionarea=hover][data-checkbox1908586586-selection=checked],.Checkbox1908586586--root[data-checkbox1908586586-selectionarea=hover][data-checkbox1908586586-selection=indeterminate]{background-color:#daeffe}.Checkbox1908586586--root[data-checkbox1908586586-selectionarea=always][data-checkbox1908586586-valign=top] .Checkbox1908586586--outer{margin-top:0}[dir=rtl] .Checkbox1908586586--root[data-checkbox1908586586-selectionarea=always] .Checkbox1908586586--children,[dir=rtl] .Checkbox1908586586--root[data-checkbox1908586586-selectionarea=hover] .Checkbox1908586586--children{padding:12px 12px 12px 16px}[dir=rtl] .Checkbox1908586586--root[data-checkbox1908586586-selectionarea=always] .Checkbox1908586586--outer,[dir=rtl] .Checkbox1908586586--root[data-checkbox1908586586-selectionarea=hover] .Checkbox1908586586--outer{padding:16px 16px 16px 0}.Checkbox1908586586--root[data-checkbox1908586586-selection=checked] .Checkbox1908586586--checkbox,.Checkbox1908586586--root[data-checkbox1908586586-selection=indeterminate] .Checkbox1908586586--checkbox{border:1px solid #3899ec;background-color:#3899ec}.Checkbox1908586586--root[data-checkbox1908586586-selection=checked] .Checkbox1908586586--checkbox .Checkbox1908586586--inner,.Checkbox1908586586--root[data-checkbox1908586586-selection=indeterminate] .Checkbox1908586586--checkbox .Checkbox1908586586--inner{opacity:1}.Checkbox1908586586--root[data-checkbox1908586586-disabled]{pointer-events:none;cursor:default}.Checkbox1908586586--root[data-checkbox1908586586-disabled] .Checkbox1908586586--checkbox{border-color:rgba(22,45,61,.3);background-color:rgba(22,45,61,.05)}.Checkbox1908586586--root[data-checkbox1908586586-disabled] .Checkbox1908586586--checkbox .Checkbox1908586586--inner{color:rgba(22,45,61,.3)}.Checkbox1908586586--root[data-checkbox1908586586-disabled][data-checkbox1908586586-selectionarea=always]{background-color:transparent}.Checkbox1908586586--root[data-checkbox1908586586-disabled][data-checkbox1908586586-selectionarea=always] .Checkbox1908586586--checkbox,.Checkbox1908586586--root[data-checkbox1908586586-disabled][data-checkbox1908586586-selectionarea=always][data-checkbox1908586586-selection=checked],.Checkbox1908586586--root[data-checkbox1908586586-disabled][data-checkbox1908586586-selectionarea=always][data-checkbox1908586586-selection=indeterminate]{background-color:transparent}.Checkbox1908586586--root[data-checkbox1908586586-disabled][data-checkbox1908586586-selectionarea=always]{background-color:transparent}.Checkbox1908586586--root[data-checkbox1908586586-error] .Checkbox1908586586--checkbox{border-color:#ee5951}.Checkbox1908586586--root[data-checkbox1908586586-error][data-focusable3174625688-focus-visible] .Checkbox1908586586--checkbox{outline:0;border-color:#ee5951;box-shadow:0 0 0 3px #ffd7d7}.Checkbox1908586586--root[data-checkbox1908586586-selection=unchecked]:hover .Checkbox1908586586--checkbox{background-color:#eaf7ff}.Checkbox1908586586--root[data-checkbox1908586586-checkboxhover] .Checkbox1908586586--checkbox{background-color:#eaf7ff}",5,"Checkbox1908586586"),n.stylable.$.register(t.default)},function(e,t,n){e.exports=n(815)},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n*{position:absolute;width:12px;height:12px;left:50%;top:50%;transform:translate(-50%,-50%)}',2,"CounterBadge2385903379"),n.stylable.$.register(t.default)},function(e,t,n){var r=n(179),o=n(92),a=n(80),i=n(820),s=n(472);e.exports=function(e){if(null==e)return 0;if(a(e))return i(e)?s(e):e.length;var t=o(e);return"[object Map]"==t||"[object Set]"==t?e.size:r(e).length}},function(e,t,n){var r=n(64),o=n(30),a=n(45);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"loadPlugins",(function(){return u}));var r=n(173),o=n.n(r),a=n(625),i=n(240),s=n(626),c=n(627),u=function(){o.a.isAppRegistered(i.a.LEAD_CAPTURE_FORM)||o.a.registerApp({appName:i.a.LEAD_CAPTURE_FORM,component:a.a}),o.a.isAppRegistered(i.a.COUPONS)||o.a.registerApp({appName:i.a.COUPONS,component:s.a}),o.a.isAppRegistered(i.a.PAYMENT_REQUEST)||o.a.registerApp({appName:i.a.PAYMENT_REQUEST,component:c.a})}}]]); //# sourceMappingURL=chat-interactivity.chunk.min.js.map