!function(e){function t(t){for(var n,i,a=t[0],s=t[1],o=0,c=[];o{const{attachment:n,threadId:i}=t.payload;return e.withMutations(e=>{Object(r.a)([i],e)||e.set(i,new a.OrderedMap);e.setIn([i,Object(u.getLocalId)(n)],n)})},[l.c]:(e,t)=>{const{localId:n,progress:r,threadId:i}=t.payload;return Object(f.a)({localId:n,threadId:i},e)?e.updateIn([i,n],e=>c(r,e)):e},[l.b]:(e,t)=>{const{fileId:n,localId:r,threadId:i}=t.payload;return Object(f.a)({localId:r,threadId:i},e)?e.updateIn([i,r],e=>e.withMutations(e=>{c(100,e);o(n,e)})):e},[l.g]:(e,t)=>{const{localId:n,threadId:r}=t.payload;return e.deleteIn([r,n])},[l.e]:(e,t)=>{const{threadId:n}=t.payload;return e.delete(n)},[d.a]:e=>e.delete(p.a),[l.a]:(e,t)=>{const{threadId:n}=t.payload;return e.deleteIn([n])}};t.a=Object(i.c)(b,h)},"+2bk":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("xOzo"),i=n("/OK6"),a=n("iPDb"),s=n("kWFB");const o=e=>Object(s.hasMessages)(e)&&Object(r.a)(i.isFromBot,Object(a.a)(e))},"+2tz":function(e,t){e.exports={pageviewFiftyThree:{name:"pageviewfiftythree",class:"view",properties:{screen:"string",subscreen:"string",action:"string",isIncludedInPageViewSample:"boolean",privateLoad:"boolean",chatflowId:{type:"number",isOptional:!0},path:{type:"string",isOptional:!0},promptEnabled:{type:"string",isOptional:!0},botEnabled:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},knowledgeBaseEnabled:{type:"boolean",isOptional:!0},visitorIdentificationEnabled:{type:"boolean",isOptional:!0},feedbackSurveyEnabled:{type:"boolean",isOptional:!0}},namespace:"conversations-visitor-ui"},pageview:{name:"pageview",class:"view",properties:{screen:"string",subscreen:"string",action:"string",pageViewSamplePercent:"number",isIncludedInPageViewSample:"boolean",privateLoad:"boolean",chatflowId:{type:"number",isOptional:!0},path:{type:"string",isOptional:!0},promptEnabled:{type:"string",isOptional:!0},botEnabled:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},knowledgeBaseEnabled:{type:"boolean",isOptional:!0},visitorIdentificationEnabled:{type:"boolean",isOptional:!0},feedbackSurveyEnabled:{type:"boolean",isOptional:!0}},namespace:"conversations-visitor-ui"},"start-conversation":{name:"start-conversation",class:"interaction",properties:{action:{type:"string",isOptional:!0},threadId:"number",isIncludedInPageViewSample:"boolean",privateLoad:"boolean",chatflowId:{type:"number",isOptional:!0},path:{type:"string",isOptional:!0},promptEnabled:{type:"string",isOptional:!0},botEnabled:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},knowledgeBaseEnabled:{type:"boolean",isOptional:!0},visitorIdentificationEnabled:{type:"boolean",isOptional:!0},feedbackSurveyEnabled:{type:"boolean",isOptional:!0}},namespace:"conversations-visitor-ui"},"send-message":{name:"send-message",class:"interaction",properties:{threadId:{type:"number",isOptional:!0},isIncludedInPageViewSample:"boolean",privateLoad:"boolean",chatflowId:{type:"number",isOptional:!0},path:{type:"string",isOptional:!0},promptEnabled:{type:"string",isOptional:!0},botEnabled:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},knowledgeBaseEnabled:{type:"boolean",isOptional:!0},visitorIdentificationEnabled:{type:"boolean",isOptional:!0},feedbackSurveyEnabled:{type:"boolean",isOptional:!0}},namespace:"conversations-visitor-ui"},"republish-message":{name:"republish-message",class:"interaction",namespace:"conversations-visitor-ui",properties:{isIncludedInPageViewSample:"boolean",privateLoad:"boolean",chatflowId:{type:"number",isOptional:!0},path:{type:"string",isOptional:!0},promptEnabled:{type:"string",isOptional:!0},botEnabled:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},knowledgeBaseEnabled:{type:"boolean",isOptional:!0},visitorIdentificationEnabled:{type:"boolean",isOptional:!0},feedbackSurveyEnabled:{type:"boolean",isOptional:!0}}},"dragged-widget":{name:"dragged-widget",class:"interaction",properties:{isOpen:"boolean",timeOnPage:"number",isIncludedInPageViewSample:"boolean",privateLoad:"boolean",chatflowId:{type:"number",isOptional:!0},path:{type:"string",isOptional:!0},promptEnabled:{type:"string",isOptional:!0},botEnabled:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},knowledgeBaseEnabled:{type:"boolean",isOptional:!0},visitorIdentificationEnabled:{type:"boolean",isOptional:!0},feedbackSurveyEnabled:{type:"boolean",isOptional:!0}},namespace:"conversations-visitor-ui"},"widget-interaction":{name:"widget-interaction",class:"interaction",properties:{action:["system open widget","user open widget","close widget","view thread list","create new thread","view thread","view email capture","submit email","clicked meeting link","view reply time","view return time","view consent to process","close consent to process","view consent to cookies","clicked consent to process button","clicked consent to cookies button","clicked decline cookies button","clicked quick reply option outside chat","clicked scroll to button"],isIncludedInPageViewSample:"boolean",privateLoad:"boolean",chatflowId:{type:"number",isOptional:!0},path:{type:"string",isOptional:!0},promptEnabled:{type:"string",isOptional:!0},botEnabled:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},knowledgeBaseEnabled:{type:"boolean",isOptional:!0},visitorIdentificationEnabled:{type:"boolean",isOptional:!0},feedbackSurveyEnabled:{type:"boolean",isOptional:!0}},namespace:"conversations-visitor-ui"},"failed-to-attach-file":{name:"widget-interaction",class:"interaction",properties:{path:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},action:["failed to attach file"],"failure-type":["size limit exceeded","upload error","invalid file type"]},namespace:"conversations-visitor-ui"},"attached-file":{name:"widget-interaction",class:"interaction",properties:{path:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},action:["attached file"],"attachment-type":"string","attachment-size-bytes":"number","upload-time-ms":"number"},namespace:"conversations-visitor-ui"},"retry-attachment-upload":{name:"widget-interaction",class:"interaction",properties:{path:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},action:["retry attachment upload"]},namespace:"conversations-visitor-ui"},"remove-staged-attachment":{name:"widget-interaction",class:"interaction",properties:{path:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},action:["remove staged attachment"]},namespace:"conversations-visitor-ui"}}},"+3Rj":function(e,t,n){"use strict";n.r(t);n.d(t,"fetchSupplementalInitialMessages",(function(){return i}));var r=n("VYoM");function i({botId:e,sessionId:t,hubspotUtk:n}){return r.a.getWithResponse(`livechat-public/v1/bots/public/bot/${e}/welcomeMessages`,{query:{sessionId:t,hubspotUtk:n}})}},"+GKH":function(e,t,n){e.exports=n.dlbpr(1,75)},"+HSX":function(e,t,n){"use strict";n.r(t);n.d(t,"addMessageToThreadHistory",(function(){return l}));var r=n("qjq5"),i=n("DdHT"),a=n("Y/B+"),s=n("Hnia"),o=n("eeeG"),c=n("OHie"),u=n("R6gb");const l=Object(r.a)((e,t,n)=>{Object(a.messageKeyInvariant)(e);Object(u.historyMessageInvariant)(t);Object(s.threadHistoryInvariant)(n);return Object(i.a)(Object(o.setMessage)(e,t),c.sortMessages)(n)})},"+KD7":function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"d",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"m",(function(){return s}));n.d(t,"o",(function(){return o}));n.d(t,"n",(function(){return c}));n.d(t,"e",(function(){return u}));n.d(t,"p",(function(){return l}));n.d(t,"u",(function(){return d}));n.d(t,"s",(function(){return p}));n.d(t,"q",(function(){return f}));n.d(t,"k",(function(){return h}));n.d(t,"t",(function(){return b}));n.d(t,"g",(function(){return g}));n.d(t,"h",(function(){return m}));n.d(t,"a",(function(){return O}));n.d(t,"i",(function(){return v}));n.d(t,"l",(function(){return j}));n.d(t,"f",(function(){return y}));n.d(t,"j",(function(){return E}));n.d(t,"r",(function(){return T}));const r="#00a4bd",i="#7fd1de",a="#e5f5f8",s="#f5c26b",o="#fae0b5",c="#fef8f0",u="#f2545b",l="#d94c71",d="#5e6ab8",p="#7fded2",f="#33475b",h="#425b76",b="#516f90",g="#7c98b6",m="#99acc2",O="#cbd6e2",v="#dfe3eb",j="#eaf0f6",y="#f2f5f8",E="#f5f8fa",T="#ffffff"},"+LtA":function(e,t,n){"use strict";var r=n("Lm/k"),i=n("QYOI"),a=n("JGJA"),s=n("3Yas");const o=e=>Object(i.Seq)(e).keySeq();s.g.implement(Array,o);s.g.implementInherited(i.Iterable,e=>e.keySeq());s.g.implement(Object,o);var c=s.g,u=n("IcZZ"),l=n("6O34"),d=n("Zui/");const p={[d.d]:!0,[d.i]:!0,[d.f]:!0,[d.b]:!0},f={attachments:Object(i.List)(),genericChannelId:null,messageStatus:null,messageTimestamp:null,senders:Object(i.List)(),truncatedText:""},h=Object(i.Record)(f,"DirectReply");var b=function(e){return e?h(Object.assign({},f,{attachments:Object(u.a)(e.attachments,p),genericChannelId:Object(a.a)("genericChannelId",e),messageStatus:Object(a.a)("messageStatus",e),messageTimestamp:Object(a.a)("messageTimestamp",e),senders:Object(l.a)(e.senders),truncatedText:Object(a.a)("truncatedText",e)})):h()};const g=e=>{const t=Object(a.a)("directReplyMessages",e);if(!t)return Object(i.Map)({directReplyMessages:Object(i.Map)()});const n=c(t).reduce((e,n)=>{const r=Object(a.a)(n,t);return e.set(n,b(r))},Object(i.Map)());return Object(i.Map)({directReplyMessages:n})},m=e=>{const t={};if(e){const[n]=e||[],{inResponseToMessageId:r}=n||{};t[r]=e}return t};var O=n("sxmL");const v=["results"];class j extends(Object(i.Record)({results:Object(i.OrderedMap)(),hasMore:!1,offset:Object(i.Map)()},"ThreadHistoryMessages")){constructor(e={}){const{results:t}=e,n=Object(r.a)(e,v);super(Object.assign({},n,{results:Object(O.a)(t)}))}}const y=["messages","directReplies","friendlyNames","friendlyNameResults","replyRecommendations"];class E extends(Object(i.Record)({messages:null,visitorLastReadAtTimestamp:0,numSoftDeletedMessages:0,attachments:Object(i.Map)(),directReplies:Object(i.Map)(),friendlyNames:[],friendlyNameResults:[],replyRecommendationsHistory:{}},"ThreadHistory")){constructor(e={}){const{messages:t,directReplies:n,friendlyNames:i=[],friendlyNameResults:a=[],replyRecommendations:s}=e,o=Object(r.a)(e,y);super(Object.assign({},o,{messages:new j(t),directReplies:g(n),friendlyNames:i,friendlyNameResults:a,replyRecommendationsHistory:m(s)}))}}t.a=E},"+TdC":function(e,t,n){"use strict";var r=n("QYOI"),i=n("JGJA"),a=n("DdHT"),s=n("bYG+"),o=n("9Mwj"),c=n("8f+m"),u=n("ubOH"),l=n("rA/t"),d=n("BvOu"),p=n("c1C1"),f=n("tY0N");class h extends(Object(r.Record)({"@type":f.a,id:null,timestamp:null,echo:!1,sender:Object(r.Map)(),messageDeletedStatus:o.a,clientType:null,status:Object(u.a)(),genericChannelId:null,senders:Object(r.List)(),recipients:Object(r.List)()},"TypingIndicatorMessage")){constructor(e={}){const t=Object(l.a)(e),n=Object(i.a)("id",e)||Object(d.generateUuid)(),o=Object(i.a)("timestamp",e)||Object(p.generateUniqueClientTimestamp)("buildTypingMessage-timestamp"),f=Object(i.a)("status",e),h=Object(u.a)(f||{}),b=Object(i.a)("recipients",e)||[],g=Object(r.List)(b.filter(Boolean).map(e=>Object(c.a)(e)));super(Object(a.a)(Object(s.a)("id",n),Object(s.a)("timestamp",o),Object(s.a)("status",h),Object(s.a)("recipients",g))(t))}}t.a=h},"+U1B":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=e=>Object(r.a)("visitorIdentity",e)},"+WNO":function(e,t,n){"use strict";n.r(t);var r=n("q8Gl");const i=["/products/crm/conversations","/products/crm/chatbot-builder","/crm/am_chatbot","/products/crm/live-chat","/crm/am_live-chat"],a="/products/cms",s="/products/sales",o=/www\.hubspot\.fr$/;n.d(t,"isFrenchSalesPage",(function(){return c}));n.d(t,"isOneOfTargetedProductPages",(function(){return u}));const c=(e,t)=>o.test(e)&&t.startsWith(s),u=()=>{const e=new URL(Object(r.getWindowLocation)().paramValue("url"));return i.includes(e.pathname)||e.pathname.startsWith(a)||c(e.hostname,e.pathname)}},"+hQr":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("Zulv"),i=n("okxY"),a=n("xr6y");function s(e,t){let n,{elementType:s="button",isDisabled:o,onPress:c,onPressStart:u,onPressEnd:l,onPressChange:d,preventFocusOnPress:p,allowFocusWhenDisabled:f,onClick:h,href:b,target:g,rel:m,type:O="button"}=e;n="button"===s?{type:O,disabled:o}:{role:"button",tabIndex:o?void 0:0,href:"a"===s&&o?void 0:b,target:"a"===s?g:void 0,type:"input"===s?O:void 0,disabled:"input"===s?o:void 0,"aria-disabled":o&&"input"!==s?o:void 0,rel:"a"===s?m:void 0};let{pressProps:v,isPressed:j}=Object(a.j)({onPressStart:u,onPressEnd:l,onPressChange:d,onPress:c,isDisabled:o,preventFocusOnPress:p,ref:t}),{focusableProps:y}=Object(i.e)(e,t);f&&(y.tabIndex=o?-1:y.tabIndex);let E=Object(r.i)(y,v,Object(r.b)(e,{labelable:!0}));return{isPressed:j,buttonProps:Object(r.i)(n,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{if(h){h(e);console.warn("onClick is deprecated, please use onPress")}}})}}},"+lAi":function(e,t,n){"use strict";var r=n("QYOI"),i=n("YQHs"),a=n("7ede");t.a=Object(r.Record)({enabled:!1,usingCustomResponse:!1,standardResponse:i.a,customResponseQuantity:5,customResponseUnit:a.b},"TypicalResponseTime")},"+lXL":function(e,t,n){"use strict";n.r(t);n.d(t,"addTypingTimeoutIdForAgentInThread",(function(){return a}));var r=n("dLEV"),i=n("/UYW");const a=Object(r.createAction)(i.a,(e,t,n)=>({payload:{threadId:e,senderId:t,timeoutId:n}}))},"+tWo":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return a}));var r=n("VVfI");const i=Object(r.a)("FETCH_THREAD_HISTORY"),a="REMOVE_MESSAGE_IN_CONVERSATION"},"+xqs":function(e,t,n){"use strict";var r=n("QYOI");const i=Object(r.Record)({hasFileAttachment:!1,previewText:null,failed:!1,responder:null,visitor:null},"ThreadPreviewRecord");t.a=i},"/5H5":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("unpublishedMessages")},"/He/":function(e,t,n){"use strict";n.d(t,"e",(function(){return r}));n.d(t,"h",(function(){return i}));n.d(t,"f",(function(){return a}));n.d(t,"g",(function(){return s}));n.d(t,"k",(function(){return o}));n.d(t,"j",(function(){return c}));n.d(t,"l",(function(){return u}));n.d(t,"i",(function(){return l}));n.d(t,"a",(function(){return d}));n.d(t,"c",(function(){return p}));n.d(t,"b",(function(){return f}));n.d(t,"d",(function(){return h}));const r=["messages"],i=["messages","results"],a=["messages","hasMore"],s=["messages","offset"],o=["messages","offset","timestamp"],c=["messages","offset","ordinal"],u=["visitorLastReadAtTimestamp"],l=["numSoftDeletedMessages"],d=["attachments"],p=["attachments","files"],f=["directReplies","directReplyMessages"],h=["friendlyNameResults"]},"/Jc5":function(e,t,n){"use strict";n.r(t);n.d(t,"fetchCurrentThreadHistory",(function(){return o}));var r=n("0PDK"),i=n("FBcP"),a=n("eg5p"),s=n("HiOC");const o=()=>(e,t)=>{const n=Object(i.getSessionId)(t()),o=Object(r.getSelectedThreadId)(t());null!==o&&o!==a.a&&e(Object(s.fetchThreadHistory)({threadId:o,sessionId:n}))}},"/KG3":function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n("QYOI"),i=n("xZ3y"),a=n("BxyF"),s=n("PpSk"),o=n("Pda3"),c=n("2Sm/"),u=n("rjAk"),l=n("8HpB"),d=n("PaBm"),p=n("mYl/"),f=n("cjt2"),h=n("yb5F"),b=n("bco+"),g=n("t0Ql");const m=[f.c,f.g,c.a.SUCCEEDED,i.GET_VISITOR_THREADS_SUCCESS,g.a],O=e=>{const t=t=>t.reduce((t,n)=>{const r=Object(s.getChannelName)(n),i=Object(s.getThreadId)(n);return t.set(r,{onMessage:t=>e.dispatch(Object(p.a)({channel:r,message:t,threadId:i,publishContext:{playback:!1}})),onPlayback:t=>{t.forEach(t=>{e.dispatch(Object(p.a)({channel:r,message:t,threadId:i,publishContext:{playback:!0}}))})},onPresence:e=>{}})},Object(r.Map)()).toJS();return n=>r=>{const s=n(r),p=Object(a.getAsyncPubSubClient)(e.getState()),f=r.type===c.a.SUCCEEDED,g=r.type===i.GET_VISITOR_THREADS_SUCCESS&&Object(u.hasPersistedThreads)(e.getState());Object(o.isUninitialized)(p)&&(f||g)&&e.dispatch(Object(l.startPubSub)({newThreadCreated:f}));if(Object(d.isClientReady)(p)&&m.includes(r.type)){const n=Object(b.getThreads)(e.getState()),r=t(n);e.dispatch(Object(h.updateSubscriptions)(r))}return s}}},"/OK6":function(e,t,n){"use strict";n.r(t);n.d(t,"isSenderType",(function(){return s}));n.d(t,"isFromAgent",(function(){return o}));n.d(t,"isFromBot",(function(){return c}));n.d(t,"isFromSystem",(function(){return u}));n.d(t,"isFromVisitor",(function(){return l}));var r=n("qjq5"),i=n("0IK8"),a=n("Mx3c");const s=Object(r.a)((e,t)=>Object(i.getSenderType)(t)===e),o=s(a.AGENT),c=s(a.BOT),u=s(a.SYSTEM),l=s(a.VISITOR)},"/UYW":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="ADD_TYPING_TIMEOUT_ID",i="REMOVE_TYPING_TIMEOUT_ID"},"/btv":function(e,t,n){"use strict";const r=["HubspotConversations-hsConversationsOnReady-used","HubspotConversations-hsConversationsSettings-used","HubspotConversations-api-method-used","HubspotConversations-api-event-listener-registered"];function i(e){let t,n=!1;return function(...r){if(!n){n=!0;t=e(...r)}return t}}var a=n("mlLV"),s=n("E9Gc");n.d(t,"a",(function(){return d}));const o=i(s.g),c=i(s.i),u=new Set,l=new Set(["load","refresh","open","close","remove","status","clear"]),d=(e,t)=>{if(e&&t&&r.includes(e))if("HubspotConversations-hsConversationsOnReady-used"===e)o();else if("HubspotConversations-hsConversationsSettings-used"===e)c();else if("HubspotConversations-api-method-used"===e){const{method:e}=t;if(l.has(e)){l.delete(e);Object(s.d)(e)}}else if("HubspotConversations-api-event-listener-registered"===e){const e=t.event;if(Object.values(a).includes(e)&&!u.has(e)){u.add(e);Object(s.c)(e)}}}},"/fsP":function(e,t,n){"use strict";var r=n("QYOI"),i=n("ubOH"),a=n("fPyn"),s=n("l0Ga"),o=n("9Mwj"),c=n("c1C1"),u=n("BvOu");class l extends(Object(r.Record)({"@type":s.a,id:null,text:"",timestamp:null,sender:Object(r.Map)(),status:Object(i.a)(),messageDeletedStatus:o.a,direction:"",channelInstanceId:null,genericChannelId:null,senders:Object(r.List)(),recipients:Object(r.List)()},"EmailCaptureResponseMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(u.generateUuid)(),status:Object(a.a)(e.status),timestamp:e.timestamp||Object(c.generateUniqueClientTimestamp)("EmailCaptureResponseMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=l},"/kBF":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("kevw"),i=n("7eQh");const a=e=>{const t=Object(r.d)(e);return Object(i.a)(t,e)}},"/mXs":function(e,t,n){"use strict";var r=n("Lm/k"),i=n("VfuR"),a=n.n(i),s=n("9f1P"),o=n.n(s),c=n("CR0J"),u=n("Z/Dw"),l=n("NfCo"),d=n("InFa"),p=n("7719"),f=n("Ktcs"),h=n("wjRl"),b=n("aXPX"),g=n("rdz/"),m=n("rkZZ");const O=(e,t=1)=>{const{r:n,g:r,b:i}=Object(m.a)(e);return`rgba(${n}, ${r}, ${i}, ${t})`},v={baseStyle:Object(s.css)(["flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border-radius:",";width:","px;height:","px;vertical-align:middle;padding:0;text-align:center;text-overflow:clip;font-size:18px;line-height:18px;outline:none;transition:background-color 150ms ease-out;"," border:none;"," > *{user-select:none;}"],({shape:e})=>e===d.a?"50%":"3px",({size:e})=>e&&b.c[e]||40,({size:e})=>e&&b.c[e]||40,({use:e,theme:{colors:t}})=>e===l.TRANSPARENT_ON_BACKGROUND||e===l.TRANSPARENT_ON_PRIMARY?"background-color: transparent;":`background-color: ${t.primary};`,({use:e,theme:{colors:t}})=>e===l.TRANSPARENT_ON_BACKGROUND?`color: ${t.transparentOnBackgroundIconButton||t.primary};`:`color: ${t.textOnPrimary};`),_disabled:Object(s.css)([""," color:",";cursor:not-allowed;"],({theme:{colors:e},use:t})=>`\n background-color: ${t===l.TRANSPARENT_ON_BACKGROUND||t===l.TRANSPARENT_ON_PRIMARY?"transparent":e.disabledBackground};\n `,({theme:{colors:e}})=>e.disabledText),_focused:h.a,_hovered:Object(s.css)(["",""],({theme:{colors:e},use:t})=>t===l.TRANSPARENT_ON_BACKGROUND?`background-color: ${O(e.transparentOnBackgroundIconButton||e.primary,.1)};`:t===l.TRANSPARENT_ON_PRIMARY?`background-color: ${O(e.textOnPrimary,.1)};`:`background-color: ${Object(g.a)(e.primary,20)};`),_pressed:Object(s.css)(["",""],({theme:{colors:e},use:t})=>t===l.TRANSPARENT_ON_BACKGROUND?`background-color: ${O(e.transparentOnBackgroundIconButton||e.primary,.4)};`:t===l.TRANSPARENT_ON_PRIMARY?`background-color: ${O(e.textOnPrimary,.4)};`:`background-color: ${Object(g.a)(e.primary,-10)};`)};var j=n("W/H/"),y=n("QgEn");const E=["shape","size","use"],T=o.a.button.withConfig({displayName:"VizExIconButton__AbstractVizExIconButton",componentId:"sc-1gncp85-0"})(["",""],({theme:e})=>Object(j.a)({component:"IconButton",defaultStyles:v,theme:e})),I=Object(f.forwardRef)((e,t)=>{let{shape:n=d.b,size:i=p.e,use:a=l.PRIMARY}=e,s=Object(r.a)(e,E);return Object(y.jsx)(T,Object.assign({shape:n,size:i,use:a,ref:t},s))});I.displayName="VizExIconButton";I.propTypes=Object.assign({children:a.a.node,onClick:a.a.func,shape:a.a.oneOf([d.a,d.b]),size:a.a.oneOf([p.c,p.f,p.e]),theme:c.a,use:a.a.oneOf(Object.values(l))},u.a);t.a=I},"/rM/":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("/OK6"),i=n("Cblj");const a=e=>Object(i.isTypingMessage)(e)&&Object(r.isFromVisitor)(e)},"/u6M":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("VVfI");const i=Object(r.a)("RESOLVE_ATTACHMENTS")},"021p":function(e,t,n){"use strict";n.d(t,"f",(function(){return a}));n.d(t,"e",(function(){return s}));n.d(t,"d",(function(){return o}));n.d(t,"a",(function(){return c}));n.d(t,"b",(function(){return u}));n.d(t,"c",(function(){return l}));var r=n("MJM1"),i=n("/He/");Object(r.a)(i.e),Object(r.a)(i.f),Object(r.a)(i.g);const a=Object(r.a)(i.k),s=Object(r.a)(i.j),o=Object(r.a)(i.h),c=(Object(r.a)(i.l),Object(r.a)(i.i),Object(r.a)(i.a)),u=(Object(r.a)(i.c),Object(r.a)(i.b)),l=Object(r.a)(i.d)},"02LW":function(e,t,n){"use strict";n.r(t);var r=(e,t)=>e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t;n.d(t,"default",(function(){return i}));function i(e,t=r){let n,i,a=!1;const s=function(...r){if(!a||r.some((e,r)=>!t(e,n[r]))){a=!0;n=r;i=e(...r)}return i};s.resetCache=()=>{const e=a?1:0;a=!1;return e};return s}},"05rB":function(e,t,n){"use strict";var r=n("Ut5p"),i=n("Ozt8"),a=n("mlLV");const s=e=>{Object(i.postExternalApiEvent)({eventType:a.USER_SELECTED_THREAD,payload:{conversation:{conversationId:e}}})};var o=n("Qvwz"),c=n("2Sm/");const u=null;t.a=Object(r.c)({[Object(r.a)(o.b,c.a.SUCCEEDED)](e,t){const{threadId:n}=t.payload;n&&s(n);return n},[o.a]:()=>u},u)},"0934":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("0IK8"),i=n("7Qhs");const a=e=>Object(r.getTopLevelType)(e)===i.a},"0Aa+":function(e,t,n){var r=n("kmmH"),i=n("FU2H"),a=NaN,s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;function d(e){if("number"==typeof e)return e;if(i(e))return a;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(s,"");var n=c.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):o.test(e)?a:+e}e.exports=d},"0BtU":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("Lm/k"),i=n("gIaP"),a=n("d+x8");const s=["attachments","hasVisitorEmail"],o=e=>{let{attachments:t,hasVisitorEmail:n}=e,o=Object(r.a)(e,s);return{files:Object(i.buildResolvedAttachmentsMapFromResponse)(t.files),threadHistory:Object(a.buildThreadHistoryFromResponse)(o),hasVisitorEmail:n}}},"0FzD":function(e,t,n){"use strict";t.a={COMPANY:"company",CUSTOMER:"customer"}},"0G/n":function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="HS_EMAIL_ADDRESS",i="CHANNEL_SPECIFIC_OPAQUE_ID"},"0GyJ":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="COMMON_MESSAGE"},"0H74":function(e,t,n){"use strict";var r=n("QYOI"),i=n("3Yas");i.k.implement(Array,(e,t,n)=>{if(Object(r.is)(n[e],t))return n;const i=n.concat();i.splice(e,1,t);return i});i.k.implementInherited(r.Iterable,(e,t,n)=>n.set(e,t));i.k.implement(Object,(e,t,n)=>{if(Object(r.is)(n[e],t))return n;const i=Object.assign({},n);i[e]=t;return i});t.a=i.k},"0IK8":function(e,t,n){"use strict";n.r(t);var r=n("yivD"),i=n("DFoL");function a(e="",t){const n=Object(r.a)("deprecated-function-");return(...r)=>{Object(i.b)({message:"Deprecation Warning: "+e,key:n});return t(...r)}}var s=n("MJM1"),o=n("DdHT"),c=n("2Zef"),u=n("MWj0"),l=n("bWKF"),d=n("qkre"),p=n("iapW"),f=n("PJuP"),h=n("cPs9"),b=n("9F2+"),g=n("Zui/"),m=n("JGJA"),O=n("QYOI");const v=e=>{const t=Object(b.a)(e);if(t){const e=t.find(e=>Object(m.a)("@type",e)===g.e);return e&&e.size>=1?e:Object(O.List)()}return Object(O.List)()};var j=n("L8e7");n.d(t,"getClientType",(function(){return y}));n.d(t,"getId",(function(){return E}));n.d(t,"getContentType",(function(){return T}));n.d(t,"getPlainTextForCmf",(function(){return I}));n.d(t,"getRichTextForCmf",(function(){return w}));n.d(t,"getStatusForCmf",(function(){return S}));n.d(t,"getStatusTimestamp",(function(){return A}));n.d(t,"getMessageIdForCmf",(function(){return C}));n.d(t,"getMessageDirection",(function(){return x}));n.d(t,"getAuditForCmf",(function(){return R}));n.d(t,"getStrippedAttachmentCount",(function(){return k}));n.d(t,"getHasInlineImagesStripped",(function(){return P}));n.d(t,"getFileIds",(function(){return D}));n.d(t,"getAttachmentStrippedCount",(function(){return _}));n.d(t,"hasInlineImagesStripped",(function(){return M}));n.d(t,"getTopLevelType",(function(){return N}));n.d(t,"getInReplyToId",(function(){return L}));n.d(t,"getDirectReplyToMessageId",(function(){return B}));n.d(t,"getSenderTypeForCMF",(function(){return H}));n.d(t,"getMessageSendFailure",(function(){return V}));n.d(t,"getSender",(function(){return G}));n.d(t,"getSenderKey",(function(){return W}));n.d(t,"getSenderType",(function(){return q}));n.d(t,"getHasMetadata",(function(){return K}));n.d(t,"getSubject",(function(){return Y}));n.d(t,"getFromAddress",(function(){return J}));n.d(t,"getOriginalSenderEmail",(function(){return Q}));n.d(t,"getOriginalSenderName",(function(){return Z}));n.d(t,"getFromName",(function(){return X}));n.d(t,"getAttachments",(function(){return $}));n.d(t,"getToAddresses",(function(){return ee}));n.d(t,"getBCC",(function(){return te}));n.d(t,"getCC",(function(){return ne}));n.d(t,"getConnectedAccountAddress",(function(){return re}));n.d(t,"getHasReplies",(function(){return ie}));n.d(t,"getPreviousRepliesHtml",(function(){return ae}));n.d(t,"getPreviousRepliesPlainText",(function(){return se}));n.d(t,"getIsMemberOfForwardedSubthread",(function(){return oe}));n.d(t,"getIsForward",(function(){return ce}));n.d(t,"getLocalizedErrorKey",(function(){return ue}));n.d(t,"getErrorMessage",(function(){return le}));n.d(t,"getAudit",(function(){return R}));n.d(t,"getMessageDeleteStatus",(function(){return U}));n.d(t,"getEmailMessageId",(function(){return C}));n.d(t,"getPlainText",(function(){return I}));n.d(t,"getRichText",(function(){return w}));n.d(t,"getSenderId",(function(){return z}));n.d(t,"getStatus",(function(){return S}));n.d(t,"getTimestamp",(function(){return F}));n.d(t,"getType",(function(){return N}));const y=Object(s.a)(u.c),E=Object(s.a)(u.h),T=Object(s.a)(u.d),I=Object(s.a)(u.x),w=Object(s.a)(u.s),S=Object(s.a)(u.o),A=Object(s.a)(u.p),C=Object(s.a)(u.m),x=Object(s.a)(u.l),R=Object(s.a)(u.b),k=Object(s.a)(u.w),P=Object(s.a)(u.g),D=Object(o.a)(f.a,p.a),_=Object(o.a)(f.a,k),M=Object(o.a)(v,P),N=Object(s.a)(u.z),L=Object(s.a)(u.i),B=Object(s.a)(u.e),F=Object(s.a)(u.y),H=Object(s.a)(u.u),U=Object(s.a)(u.k),V=Object(s.a)(u.n),G=Object(s.a)(u.t),W=e=>{const t=H(e);return Object(h.a)(t)},z=e=>H(e)===c.SYSTEM_SENDER?null:Object(s.a)(["sender",W(e)],e),q=e=>Object(l.a)(H(e)),K=e=>!!Object(j.a)(e),Y=e=>d.m(e),J=e=>d.d(e),Q=e=>d.i(e),Z=e=>d.j(e),X=e=>d.e(e),$=a("Use fileAttachmentGetters instead.",e=>D(e)),ee=e=>d.n(e),te=e=>d.a(e),ne=e=>d.b(e),re=e=>d.c(e),ie=e=>d.f(e),ae=e=>d.k(e),se=e=>d.l(e),oe=e=>d.h(e),ce=e=>d.g(e),ue=Object(s.a)(u.j),le=Object(s.a)(u.f)},"0IL2":function(e,t,n){"use strict";var r=n("VfuR"),i=n.n(r),a=n("Ktcs"),s=n("9f1P"),o=n.n(s),c=n("4cgu"),u=n("QGYt"),l=n("sl/w"),d=n("+KD7"),p=n("HtM0"),f=n("X5NR"),h=n("Mcxo"),b=n("Jr27"),g=n("3S9s"),m=n("QgEn");const O=o.a.div.withConfig({displayName:"ConsentPrompt__Container",componentId:"c7rpy-0"})(["border-top:",";display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px 24px;position:relative;"],e=>e.isOutsideChat?"0":"2px solid "+d.f),v=o()(h.a).withConfig({displayName:"ConsentPrompt__SmallNoParagraphPadding",componentId:"c7rpy-1"})(["display:block;word-break:break-word;word-wrap:break-word;-ms-word-break:break-all;p{margin-bottom:0;}"]),j=o()(u.a).withConfig({displayName:"ConsentPrompt__FullWidthButton",componentId:"c7rpy-2"})(["flex:0 1 100%;"]),y=o.a.div.withConfig({displayName:"ConsentPrompt__FlexWrapper",componentId:"c7rpy-3"})(["display:flex;flex-direction:row;width:100%;margin:12px 0 8px 0;"]),E=({message:e,onClick:t,onClose:n,showButton:r,isOneOfTargetedProductPages:i,isPortal53:s,isOutsideChat:o=!1})=>{const[u,h]=Object(a.useState)(!1),E=()=>{t();h(!0)};return Object(m.jsxs)(O,{"data-test-id":"gdpr-consent-prompt",dir:"auto",isOutsideChat:o,children:[!r&&s&&i&&Object(m.jsx)(b.a,{size:"sm",onClick:n,theme:o?Object(g.a)({colors:{text:d.g}}):Object(g.a)()}),Object(m.jsx)(v,{use:"help","data-test-id":"gdpr-consent-text",dangerouslySetInnerHTML:{__html:Object(p.a)(e)},isOutsideChat:o}),r&&Object(m.jsx)(y,{children:Object(m.jsx)(c.a,{currentState:u?"submitting":"ready",Button:j,"data-test-id":"gdpr-consent-agree-button",onClick:E,children:Object(m.jsx)(f.a,{children:e=>Object(m.jsx)(l.a,{message:"conversations-visitor-experience-components.buttons.agree",options:{locale:e}})})})})]})};E.propTypes={isOneOfTargetedProductPages:i.a.bool.isRequired,isOutsideChat:i.a.bool,isPortal53:i.a.bool.isRequired,message:i.a.string.isRequired,onClick:i.a.func.isRequired,onClose:i.a.func,showButton:i.a.bool.isRequired};E.displayName="ConsentPrompt";t.a=E},"0JoJ":function(e,t,n){"use strict";var r=n("ZVbf"),i=n("4e8t"),a=n.n(i),s=n("rwJP"),o=n.n(s),c=n("1EKh");const u=Object(r.createStack)(o.a,Object(c.a)()),l=a()(u);t.a=l},"0Me1":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("LJpC"),i=n("HCGK");const a=Object(r.a)(i.a)},"0NIc":function(e,t,n){"use strict";var r=n("QYOI"),i=n("TKd0");t.a=Object(r.Record)({assignedAgentId:null,channelDetails:Object(i.a)(),currentUrl:null,latestMessageTimestamp:0,latestReadTimestamp:0,responder:null,originalGenericChannelId:null,status:null,threadId:null,unseenCount:0,hasFileAttachment:!1,previewText:null,previewMessageId:null},"Thread")},"0PDK":function(e,t,n){"use strict";n.r(t);n.d(t,"getSelectedThreadId",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("selectedThreadId")},"0Zm1":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));n.d(t,"b",(function(){return o}));n("Lm/k");var r=n("Ktcs"),i=n.n(r),a=(n("Zulv"),n("CyI/"),n("xr6y"));n("r1tY"),n("Ex4o"),n("Te0v");"undefined"!=typeof window&&window.visualViewport;new WeakMap;"undefined"!=typeof window&&window.visualViewport;const s=[];function o(e,t){let{onClose:n,shouldCloseOnBlur:i,isOpen:o,isDismissable:c=!1,isKeyboardDismissDisabled:u=!1,shouldCloseOnInteractOutside:l}=e;Object(r.useEffect)(()=>{o&&s.push(t);return()=>{let e=s.indexOf(t);e>=0&&s.splice(e,1)}},[o,t]);let d=()=>{s[s.length-1]===t&&n&&n()},p=e=>{if((!l||l(e.target))&&s[s.length-1]===t){e.stopPropagation();e.preventDefault()}},f=e=>{if(!l||l(e.target)){if(s[s.length-1]===t){e.stopPropagation();e.preventDefault()}d()}},h=e=>{if("Escape"===e.key&&!u){e.stopPropagation();e.preventDefault();d()}};Object(a.g)({ref:t,onInteractOutside:c?f:null,onInteractOutsideStart:p});let{focusWithinProps:b}=Object(a.e)({isDisabled:!i,onBlurWithin:e=>{l&&!l(e.relatedTarget)||n()}}),g=e=>{e.target===e.currentTarget&&e.preventDefault()};return{overlayProps:Object.assign({onKeyDown:h},b),underlayProps:{onPointerDown:g}}}"undefined"!=typeof window&&window.visualViewport,new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);const c=i.a.createContext(null);function u(e){let{children:t}=e,n=Object(r.useContext)(c),[a,s]=Object(r.useState)(0),o=Object(r.useMemo)(()=>({parent:n,modalCount:a,addModal(){s(e=>e+1);n&&n.addModal()},removeModal(){s(e=>e-1);n&&n.removeModal()}}),[n,a]);return i.a.createElement(c.Provider,{value:o},t)}function l(){let e=Object(r.useContext)(c);return{modalProviderProps:{"aria-hidden":!!(e&&e.modalCount>0)||null}}}function d(e){let{modalProviderProps:t}=l();return i.a.createElement("div",Object.assign({"data-overlay-container":!0},e,t))}function p(e){return i.a.createElement(u,null,i.a.createElement(d,e))}({"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schließen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutasítás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}});new WeakMap},"0c9j":function(e,t,n){"use strict";n.r(t);n.d(t,"getWindowUrl",(function(){return i}));const r=e=>{try{return Boolean(new URL(e))}catch(e){return!1}},i=()=>{const e=new URL(window.location.href),t=e.searchParams.get("url");return t&&r(t)?new URL(t):e}},"0fuM":function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"a",(function(){return a}));const r="thread-list",i="thread-view",a="knowledge-base"},"0oBL":function(e,t,n){"use strict";var r=n("GXXt"),i=n("0H74"),a=n("qjq5");function s(e,t,n){const a=Object(r.a)(e,n);return Object(i.a)(e,t(a),n)}t.a=Object(a.a)(s)},"0oGG":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("currentUrl")},"0srx":function(e,t,n){"use strict";var r=n("+KD7");const i={tileBackgroundColor:r.j,tileBorderColor:r.l},a=e=>Object.assign({},i,e);t.a=a},"0wen":function(e,t,n){"use strict";n.r(t);n.d(t,"PRIMARY",(function(){return r}));n.d(t,"SECONDARY",(function(){return i}));n.d(t,"TRANSPARENT_ON_PRIMARY",(function(){return a}));const r="primary",i="secondary",a="transparent-on-primary"},"1+S/":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={HUBLYTICS_EVENTS_53:"HUBLYTICS_EVENTS_53",HMPL:"__hmpl"}},"12C0":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="CONTEXT_UPDATE"},"19qb":function(e,t,n){e.exports=n.dlbpr(1,72)},"1DSk":function(e,t,n){"use strict";n.r(t);n.d(t,"trackSendMessage",(function(){return a}));var r=n("y5/z"),i=n("E9Gc");const a=({threadId:e})=>t=>{const n={};"number"==typeof e&&(n.threadId=e);Object(i.f)();t(Object(r.trackInteraction)("send-message",n))}},"1EAY":function(e,t,n){"use strict";n.r(t);n.d(t,"isPersistedThread",(function(){return s}));var r=n("DdHT"),i=n("PpSk"),a=n("eg5p");const s=Object(r.a)(i.getThreadId,e=>e!==a.a)},"1EKh":function(e,t,n){"use strict";var r=n("ZVbf"),i=n("LN55"),a=n("LZPL"),s=n.n(a),o=n("Gpbg"),c=n.n(o);const u=5e3,l=()=>s.a.deployed()?"app":"local",d=()=>s.a.isQa()?"qa":"",p=()=>c.a.get(`https://${l()}.hubspot${d()}.com/network-check/is-the-internet-up.txt`,{timeout:u,query:{rnd:Math.random()}}).then(()=>({online:!0}),e=>({online:!1,error:e})),f=(e,...t)=>Object.assign(new Error,...t,{message:e}),h=e=>f("Network Unavailable",Object.assign({},e,{retry:null}));n.d(t,"a",(function(){return g}));const b=["TIMEOUT","NETWORKERROR"],g=()=>{let e=!0;return Object(r.createStack)(Object(i.onResponse)(t=>{e=!0;return Promise.resolve(t)}),Object(i.onResponseError)(t=>{const{status:n,errorCode:r}=t;return 0===n&&b.includes(r)?e?p().then(({online:n})=>{if(!n){e=!1;return Promise.reject(h(t))}return Promise.reject(t)}):Promise.reject(h(t)):Promise.reject(t)}))}},"1Hpf":function(e,t,n){"use strict";var r=n("Ut5p"),i=n("QYOI"),a=n("OIId");const s=new i.Map,o={[a.a]:(e,t)=>{const{error:n,threadId:r}=t.payload;return e.set(r,n)},[a.f]:(e,t)=>{const{threadId:n}=t.payload;return e.delete(n)},[a.d]:(e,t)=>{const{threadId:n}=t.payload;return e.delete(n)},[a.g]:(e,t)=>{const{threadId:n}=t.payload;return e.delete(n)}};t.a=Object(r.c)(o,s)},"1UfY":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("dLEV"),i=n("x1JE"),a=n("PpSk"),s=n("o4fP"),o=n("ye6p");const c=Object(r.createSelector)([s.a,o.a],(e,t)=>{const n=Object(a.getThreadId)(t);return"number"!=typeof n?null:Object(i.getEntry)(n,e)})},"1Vek":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("dLEV"),i=n("JGJA"),a=n("8dR1");const s=Object(r.createSelector)(a.a,Object(i.a)("initialMessage"))},"1ZlA":function(e,t,n){"use strict";n.r(t);n.d(t,"updateSessionId",(function(){return a}));var r=n("dLEV"),i=n("v+ge");const a=Object(r.createAction)(i.b,e=>({payload:{sessionId:e}}))},"1pGl":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n.d(t,"e",(function(){return u}));n.d(t,"h",(function(){return l}));n.d(t,"c",(function(){return d}));n.d(t,"d",(function(){return p}));n.d(t,"b",(function(){return f}));n.d(t,"g",(function(){return h}));n.d(t,"f",(function(){return b}));var r=n("8ASW"),i=n("Rd7q"),a=n("CQiV"),s=n("HY4P");const o="en",c={nb:"no-no",noNO:"no-no",pt:"pt-br",no:"no-no",ca:"ca-es",ar:"ar-eg"},u={pt:"pt-br","en-ie":"en-gb","en-nz":"en-au","es-co":"es-do","es-ar":"es-do","es-mx":"es",de:"de",ja:"ja","en-gb":"en-gb","en-in":"en-au",es:"es","zh-cn":"zh-cn","zh-hk":"zh-hk",nl:"nl","en-au":"en-au","en-ca":"en-ca",fi:"fi",fr:"fr","fr-ca":"fr-ca",it:"it","pt-br":"pt-br",sv:"sv",da:"da",pl:"pl",cs:"cs",ko:"ko",no:"nb","no-no":"nb",noNO:"nb","x-pseudo":"x-pseudo",id:"id",ro:"ro",ru:"ru",th:"th",hr:"hr",vi:"vi",hu:"hu",bn:"bn",af:"af","ar-eg":"ar",bg:"bg","ca-es":"ca",sl:"sl",tr:"tr",uk:"uk","he-il":"he",he:"he",sk:"sk",lt:"lt",ms:"ms","zh-tw":"zh-tw",tl:"tl-ph","pt-pt":"pt"};function l(e){if(!r.a.moment)return;if(!e||!e.id){r.a.moment.portalTz=r.a.manualTimezone?r.a.moment.portalTz:r.a.moment.userTz;r.a.timezone=r.a.manualTimezone||"US/Eastern";r.a.manualTimezone&&r.a.moment.tz.setDefault(r.a.manualTimezone);return}if(r.a.manualTimezone){r.a.moment.tz.setDefault(r.a.manualTimezone);return}const t=e.id;try{if(e["moment-data"]){r.a.moment.tz.zone(t)||r.a.moment.tz.add(`${t}|${e["moment-data"]}`);r.a.moment.tz(t);r.a.timezone=t}else window.Raven&&window.Raven.captureMessage("I18n failed to parse api-verify data")}catch(e){console.error("Unable to set up timezone",e);window.Raven&&window.Raven.captureException(e)}r.a.timezone=r.a.manualTimezone||window.I18N_RENDERED_TZ||r.a.timezone}function d(e){let t=(e||o).toLowerCase();const n=c[t]||c[t.substring(0,2)];n&&(t=n);return t||r.a.locale}function p(e){let t=d(e);t=u[t]&&u[t]||null;return t}function f(e){return r.a.langEnabled?e:[r.a.locale,...e]}function h(){r.a.manualLocale=window.I18N_MANUAL_LANG;r.a.manualTimezone=window.I18N_TZ;try{const e=localStorage&&localStorage.I18N_MANUAL_LANG,t=localStorage&&localStorage.I18N_TZ;if(e){s.a.counter("localStorage-overwrote-locale").increment();r.a.manualLocale=e}if(t){s.a.counter("localStorage-overwrote-timezone").increment();r.a.manualTimezone=t}}catch(e){r.a.debugLog("Failed access localStorage "+e)}}function b(){const e=document.querySelector("html");e.className=e.className.replace(/(^|\b)lang-[a-z]{2}($|\b)/,"");e.className+=" lang-"+Object(a.a)();e.setAttribute("lang",Object(i.a)())}},"1pX1":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){if(null==e)throw new TypeError("Cannot destructure "+e)}},"1qF3":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Ozt8"),i=n("mlLV");const a=()=>{Object(r.postExternalApiEvent)({eventType:i.USER_INTERACTED_WITH_WIDGET,payload:{message:"User has interacted with the widget"}})}},"1sEq":function(e,t,n){"use strict";n.r(t);n.d(t,"default",(function(){return i}));var r=n("W/fk");class i extends r.b{constructor(e){super(e);this.resolved={}}report(e){if("COMPONENT_RENDERED"===e.type||this.resolved[e.payload.entry.id]&&"CHECKS_CHANGED"!==e.type)return;const{entry:{pathname:t,timestamp:n,expiredTimestamp:r,checks:i,id:a},routeSpec:s}=e.payload;if(!this.debug)return;const o=(...e)=>console.log(`[${this.libName}]`,t,...e),c=e=>e.toFixed(2)+"ms",u=e=>{this.options.timingOffset&&o(`adjusted: ${c(e+this.options.timingOffset)} (offset ${this.options.timingOffset})`)};switch(e.type){case"ROUTE_STARTED":{const{route:e}=s;o(`(${e})`);break}case"ROUTE_UNEXPECTED":o("(unexpected)");break;case"ROUTE_ABANDONED":o("(abandoned)");break;case"ROUTE_SUCCEEDED":{const{scenario:t}=e.payload.extra,r=this.toDuration(i,n,s.success[t]);o("(success) "+c(r));u(r);break}case"ROUTE_FAILED":{const{error:e}=s,t=this.toDuration(i,n,e);o("(failure) "+c(t));u(t);break}case"ROUTE_TIMEOUT_EXPIRED":{const e=r-n;o("(timeout) "+c(e));u(e);break}case"CHECKS_CHANGED":o("(update)")}switch(e.type){case"ROUTE_TIMEOUT_EXPIRED":case"ROUTE_UNEXPECTED":case"ROUTE_SUCCEEDED":case"ROUTE_FAILED":this.resolved[a]=!0}}}},"2+C7":function(e,t,n){"use strict";n.r(t);n.d(t,"clearExistingTypingTimeout",(function(){return s}));var r=n("0IK8"),i=n("2soH"),a=n("lEMs");const s=(e,t)=>(n,s)=>{const o=Object(r.getSenderId)(e),c=Object(i.typingStates)(s()),u=Object(a.getTypingTimeoutIdForAgentInThread)({threadId:""+t,senderId:""+o,typingStates:c});"number"==typeof u&&clearTimeout(u)}},"20e/":function(e,t,n){"use strict";var r=n("dLEV"),i=n("kWFB"),a=n("0PDK"),s=n("QeSX"),o=n("Avso");const c=Object(r.createSelector)([s.getAssignedResponderInWidget],e=>!e||Object(o.getIsBot)(e));var u=n("J4oD");n.d(t,"a",(function(){return l}));const l=Object(r.createSelector)([a.getSelectedThreadId,c,u.historyDataForThread],(e,t,n)=>null!==e&&t&&Boolean(n)&&Object(i.hasMessages)(n))},"20uS":function(e,t,n){"use strict";n.d(t,"e",(function(){return r}));n.d(t,"d",(function(){return i}));n.d(t,"a",(function(){return a}));n.d(t,"c",(function(){return s}));n.d(t,"b",(function(){return o}));const r=["email","userId","hubId","hstc","utk","portalId","deviceId","device_id","last_timestamp_checked_against_session"],i=["what_event_subtype","what_value","what_value_str","where_subscreen2"],a=["userId","hubId","hstc","utk","email","lang","deviceId","namespace","[Amplitude] Session Replay ID",...i],s=["function","object","null","undefined"],o=/(br\.hubpost\.com|wthubspot\.com|connect\.com|hubspot\.(com|es|de|jp))$/},"21jQ":function(e,t,n){"use strict";n.r(t);n.d(t,"getIsOpen",(function(){return s}));var r=n("dLEV"),i=n("MJM1"),a=n("QnHA");const s=Object(r.createSelector)([a.a],Object(i.a)(["open"]))},"2B1w":function(e,t,n){"use strict";n.r(t);n.d(t,"formatOfficeHoursWillReturnTimestamp",(function(){return s}));var r=n("npjq"),i=n("3874"),a=n("dsyW");const s=(e,t)=>{const n=new Date(e),s=n.toLocaleTimeString(t,{hour:"2-digit",minute:"2-digit"});return Object(i.timestampIsToday)(e)?r.a.text("conversationsVisitorUIAvailability.sameDay",{time:s}):Object(a.timestampIsTomorrow)(e)?r.a.text("conversationsVisitorUIAvailability.nextDay",{time:s}):r.a.text("conversationsVisitorUIAvailability.nextWeek",{dayOfWeek:n.toLocaleDateString(t,{weekday:"long"}),time:s})}},"2BFa":function(e,t,n){"use strict";n.r(t);n.d(t,"gdprCookieConsentOnExitIntentEnabled",(function(){return o}));n.d(t,"gdprCookieConsentOnWidgetLoadEnabled",(function(){return c}));var r=n("hj2G"),i=n("CXrm"),a=n("49A5"),s=n("du/S");const o=(e,t)=>{const n=Object(a.getLatestWidgetData)(e),o=Object(s.getAPIEnableWidgetCookieBannerOnExitIntent)(e);return Object(r.gdprCookieConsentPrompt)(t||n)===i.b||o},c=e=>Object(r.gdprCookieConsentPrompt)(e)===i.c},"2LMW":function(e,t,n){"use strict";var r=n("piVz"),i=n("MJM1");const a=e=>Object(i.a)(["widgetData","data","botResponder","bot"],e),s=e=>Object(i.a)(["widgetData","data","gates"],e).get("Conversations:QuickRepliesOutsideChat");var o=n("k09d"),c=n("k8Ub"),u=n("byjC"),l=n("gkBl"),d=n("ejs7"),p=n("dLEV"),f=n("49A5"),h=n("DdHT"),b=n("ZqFO"),g=n("VvTX");const m=Object(h.a)(b.f,g.getDisplayBotQuickRepliesOutsideChat);var O=n("tAuz");const v=Object(p.createSelector)([f.getLatestWidgetData,O.getIsMobile],(e,t)=>{const n=m(e);return["DESKTOP_AND_MOBILE"].concat(t?["MOBILE"]:["DESKTOP"]).includes(n)});n.d(t,"a",(function(){return j}));const j=e=>{const t=Object(o.a)(e),n=Object(l.a)(e.stagedThread.data),i=Object(d.a)(n.last()),p=Object(c.b)(i),f=v(e);return Object(r.a)(e)&&s(e)&&a(e)&&Object(u.a)(e,{thread:t,searchOnlyForInitialMessage:!0})&&f&&!p}},"2Rsi":function(e,t){e.exports="//static.hsappstatic.net/conversations-visitor-experience-components/static-1.12461/img/visitor-widget/bot-avatar.svg"},"2SbE":function(e,t){hns("I18n.translations.en",{number:{format:{precision:3,strip_insignificant_zeros:!0},percentage:{format:{delimiter:",",format:"%n%",precision:0}},currency:{format:{precision:2,strip_insignificant_zeros:!1}},human:{storage_units:{units:{byte:{one:" byte",other:" bytes"},kb:"kb",mb:"mb",gb:"gb",tb:"tb"}},array:{inclusive:{wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},exclusive:{wordsConnector:", ",twoWordsConnector:" or ",lastWordConnector:", or "}},abbreviated:{long:{1e3:{one:"0 thousand",other:"0 thousand"},1e4:{one:"00 thousand",other:"00 thousand"},1e5:{one:"000 thousand",other:"000 thousand"},1e6:{one:"0 million",other:"0 million"},1e7:{one:"00 million",other:"00 million"},1e8:{one:"000 million",other:"000 million"},1e9:{one:"0 billion",other:"0 billion"},1e10:{one:"00 billion",other:"00 billion"},1e11:{one:"000 billion",other:"000 billion"},1e12:{one:"0 trillion",other:"0 trillion"},1e13:{one:"00 trillion",other:"00 trillion"},1e14:{one:"000 trillion",other:"000 trillion"}},short:{1e3:{one:"0K",other:"0K"},1e4:{one:"00K",other:"00K"},1e5:{one:"000K",other:"000K"},1e6:{one:"0M",other:"0M"},1e7:{one:"00M",other:"00M"},1e8:{one:"000M",other:"000M"},1e9:{one:"0B",other:"0B"},1e10:{one:"00B",other:"00B"},1e11:{one:"000B",other:"000B"},1e12:{one:"0T",other:"0T"},1e13:{one:"00T",other:"00T"},1e14:{one:"000T",other:"000T"}}}}}})},"2Sm/":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("VVfI");const i=Object(r.a)("CREATE_NEW_THREAD")},"2Zef":function(e,t,n){"use strict";n.r(t);n.d(t,"VISITOR_SENDER",(function(){return r}));n.d(t,"AGENT_SENDER",(function(){return i}));n.d(t,"BOT_SENDER",(function(){return a}));n.d(t,"SYSTEM_SENDER",(function(){return s}));n.d(t,"VID_SENDER",(function(){return o}));n.d(t,"INTEGRATOR_SENDER",(function(){return c}));const r="VISITOR_SENDER",i="AGENT_SENDER",a="BOT_SENDER",s="SYSTEM_SENDER",o="VID_SENDER",c="INTEGRATOR_SENDER"},"2fjV":function(e,t,n){"use strict";var r=n("rCfO"),i=n("xZ3y"),a=n("nf9S"),s=n("0IK8"),o=n("GRT8");function c(e){const t=Object(s.getType)(e);return o.a.includes(t)}var u=n("/OK6"),l=n("elDb"),d=n("Lp6C"),p=n("xwWp"),f=n("jvmB"),h=n("k09d"),b=n("2Sm/"),g=n("PpSk"),m=n("PaBm"),O=n("BxyF"),v=n("QeSX"),j=n("t4ZQ"),y=n("Mx3c");const E=1e3,T=e=>t=>{const n={},s=e=>clearTimeout(n[e]),o=Object(r.default)((t,r,i)=>{n[t]=setTimeout(()=>{e.dispatch(Object(f.default)({channel:r,threadId:t}))},i)});return n=>{switch(n.type){case i.THREAD_CREATED_AND_NETWORK_ONLINE:case b.a.SUCCEEDED:{const t=Object(O.getAsyncPubSubClient)(e.getState());if(!Object(m.isClientReady)(t))break;let r,a;if(n.type===b.a.SUCCEEDED){r=n.payload.threadId;a=n.payload.channel}if(n.type===i.THREAD_CREATED_AND_NETWORK_ONLINE){const t=Object(h.a)(e.getState());a=Object(g.getChannelName)(t);r=Object(g.getThreadId)(t)}const s=Object(p.widgetIsInAwayMode)(e.getState());if(!(Object(j.getAgentType)(Object(v.getAssignedResponderInWidget)(e.getState()))===y.BOT)&&Object(d.shouldCaptureVisitorEmailAddress)(e.getState())){const t=Object(l.a)(e.getState());o(r,a,s?E:t||E)}break}case i.RECEIVED_INCOMING_MESSAGE:{const{message:e,threadId:t}=n.payload;Object(a.isConversationalMessage)(e)&&!c(e)&&Object(u.isFromAgent)(e)&&s(t);break}}return t(n)}};t.a=T},"2kog":function(e,t,n){"use strict";n.r(t);n.d(t,"getInitialResponder",(function(){return o}));var r=n("dLEV"),i=n("QeSX"),a=n("QYon"),s=n("7+Fw");const o=Object(r.createSelector)([i.getAssignedResponderInWidget,a.a,s.a],(e,t,n)=>n||(e||t.get(0)))},"2soH":function(e,t,n){"use strict";n.r(t);n.d(t,"typingStates",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("typingStates")},"3+Hx":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("Lm/k"),i=n("Zulv"),a=n("okxY"),s=n("xr6y");const o=["elementType","onPress","onPressStart","onPressEnd","onClick","isDisabled"];function c(e,t){let n,{elementType:c="a",onPress:u,onPressStart:l,onPressEnd:d,onClick:p,isDisabled:f}=e,h=Object(r.a)(e,o);"a"!==c&&(n={role:"link",tabIndex:f?void 0:0});let{focusableProps:b}=Object(a.e)(e,t),{pressProps:g,isPressed:m}=Object(s.j)({onPress:u,onPressStart:l,onPressEnd:d,isDisabled:f,ref:t}),O=Object(i.b)(h,{labelable:!0}),v=Object(i.i)(b,g);return{isPressed:m,linkProps:Object(i.i)(O,Object.assign({},v,n,{"aria-disabled":f||void 0,onClick:e=>{g.onClick(e);if(p){p(e);console.warn("onClick is deprecated, please use onPress")}}}))}}},"30KC":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="THREAD_INBOX_UPDATED"},"31tl":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="WEB"},"34eX":function(e,t,n){var r=n("TG7G");function i(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}e.exports=i},"35/6":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n.d(t,"b",(function(){return s}));n.d(t,"c",(function(){return o}));var r=n("dLEV"),i=n("xZ3y");const a=Object(r.createAction)(i.APP_IN_BACKGROUND),s=Object(r.createAction)(i.APP_IN_FOREGROUND);function o(e){return t=>{t(e?s():a())}}},3874:function(e,t,n){"use strict";n.r(t);n.d(t,"timestampIsToday",(function(){return r}));const r=e=>{const t=new Date(e),n=new Date;return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()}},"38AR":function(e,t,n){"use strict";var r=n("Lm/k"),i=n("VfuR"),a=n.n(i),s=n("9f1P"),o=n.n(s),c=n("t6nY"),u=n.n(c),l=n("6Jpi"),d=n("JxxT");function p(e,{showCloseButton:t}){let n=e+d.d;t&&(n+=d.a);return n}function f({showCloseButton:e}){let t=d.c+d.d;e&&(t+=d.a);return t}function h(e,t,{showCloseButton:n}){const r=p(t,{showCloseButton:n}),i=f({showCloseButton:n});return e>=r?0:e<=i?r-i:r-e}function b(e,t,{showCloseButton:n}){return t-h(e,t,{showCloseButton:n})}const g=32;function m(e,t){return t+ge||t?"100%":void 0,({mobile:e})=>e?"100%":void 0,({inline:e})=>e?"0":void 0,({size:e})=>e===y.small?"scale(0.75)":e===y["extra-small"]?"scale(0.5)":void 0),I=o.a.div.withConfig({displayName:"VisitorWidgetStyleWrapper__WidgetContentStyleWrapper",componentId:"sc-12hbd8x-1"})(["height:",";background:",";border-radius:","px;box-shadow:0 4px 16px rgba(0,0,0,0.1);position:relative;width:",";transition:bottom 0.25s ease-in-out;transition:all 0.25s ease-in-out;&.inline{box-shadow:none;height:100%;margin:0;width:100%;border-radius:0;}"],({mobile:e,browserWindowHeight:t,showCloseButton:n,widgetSize:r})=>e?"100%":b(t,r.height,{showCloseButton:n})+"px",O.r,E,({widgetSize:e,browserWindowWidth:t})=>m(t,e.width)+"px"),w="chat-widget-wrapper",S=e=>{const{browserWindowHeight:t,browserWindowWidth:n,children:i,className:a,inline:s=!1,showCloseButton:o=!0,size:c=y.default,style:d,mobile:p,widgetLocation:f=l.a,forwardedRef:h,widgetSize:b={width:376,height:530}}=e,g=Object(r.a)(e,j);return Object(v.jsx)(T,{style:d,inline:s,size:c,mobile:!!p,"data-test-id":"widget-style-wrapper",children:Object(v.jsx)(I,Object.assign({browserWindowWidth:n,className:u()("chat-widget",a,p&&"mobile",s&&"inline"),"data-test-id":w,widgetSize:b,browserWindowHeight:t,widgetLocation:f,mobile:!!p,showCloseButton:!!o,ref:h},g,{children:i}))})};S.propTypes={browserWindowHeight:a.a.number.isRequired,browserWindowWidth:a.a.number.isRequired,children:a.a.node.isRequired,className:a.a.string,forwardedRef:a.a.object,inline:a.a.bool.isRequired,mobile:a.a.bool,showCloseButton:a.a.bool,size:a.a.oneOf(Object.keys(y)).isRequired,style:a.a.object,widgetLocation:l.b,widgetSize:a.a.shape({width:a.a.number.isRequired,height:a.a.number.isRequired}).isRequired};S.defaultProps={inline:!1,showCloseButton:!0,size:y.default,widgetLocation:l.a};S.displayName="VisitorWidgetStyleWrapper";t.b=S},"3Ezh":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="Helvetica, Arial, sans-serif"},"3HLt":function(e,t,n){"use strict";n.d(t,"e",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"f",(function(){return a}));n.d(t,"d",(function(){return s}));n.d(t,"b",(function(){return o}));n.d(t,"a",(function(){return c}));n.d(t,"g",(function(){return u}));const r=["@type"],i=["fallback"],a=["userIds"],s=["teamIds"],o=["customChatName"],c=["companyLogoUrl"],u=["useCustomBrandingAsAgentAlias"]},"3L7e":function(e,t,n){"use strict";var r=n("+GKH"),i=n("uB3n"),a=n("MZef"),s=n("eJ3n"),o=n("4cwC"),c=n("y+PV"),u=n("nt9Q"),l=n("stzZ"),d=n("DrqF");const p=e=>{Object(d.a)("string"==typeof e,"Expected id to be a string not a %s",typeof e)};var f=n("cjt2"),h=n("tXbc");const b=e=>e,g=Object(i.a)({name:"pubSubClient",idInvariant:p,notSetValue:Object(a.a)()}),m=(e=g,t)=>{switch(t.type){case f.a.STARTED:{const{clientKey:n}=t.payload;return Object(s.a)(n,c.a,e)}case f.a.SUCCEEDED:{const{client:n,clientKey:r}=t.payload;return Object(s.a)(r,Object(l.a)(()=>n),e)}case f.a.FAILED:{const{clientKey:n}=t.payload;return Object(s.a)(n,o.a,e)}case f.e:{const{clientKey:n}=t.payload;return Object(s.a)(n,Object(u.a)(h.c,b),e)}case f.d:case f.c:{const{clientKey:n}=t.payload;return Object(s.a)(n,Object(u.a)(h.a,b),e)}case f.b:{const{clientKey:n}=t.payload;return Object(s.a)(n,Object(u.a)(h.b,b),e)}case f.f:{const{clientKey:n}=t.payload;return Object(s.a)(n,Object(u.a)(h.e,b),e)}default:return e}};var O=n("ImcI"),v=n("9pgs");const j=Object(i.a)({name:"subscriptions",idInvariant:p,notSetValue:Object(a.a)({data:null})}),y=(e=j,t)=>{switch(t.type){case f.h.STARTED:{const{clientKey:n,subscriptions:r}=t.payload;return Object(s.a)(n,Object(O.a)(()=>r),e)}case f.g.STARTED:{const{clientKey:n,subscriptions:r}=t.payload;return Object(s.a)(n,Object(u.a)(h.d,()=>r),e)}case f.g.SUCCEEDED:case f.h.SUCCEEDED:{const{clientKey:n,subscriptions:r}=t.payload;return Object(s.a)(n,Object(l.a)(()=>r),e)}case f.g.FAILED:case f.h.FAILED:{const{clientKey:n,error:r}=t.payload;return Object(s.a)(n,Object(v.a)(r),e)}default:return e}};var E=n("U7wy"),T=n("Ut5p"),I=n("I6ms"),w=n("KXCN"),S=n("bYG+");const A=Object(S.a)("globalCookieOptOut"),C=Object(S.a)("isFirstVisitorSession");var x=Object(T.c)({[I.a]:(e,t)=>{const{globalCookieOptOut:n}=t.payload;return A(n,e)},[I.b]:(e,t)=>{const{isFirstVisitorSession:n}=t.payload;return C(n,e)}},new w.a),R=n("nyI8"),k=n("ES4X"),P=n("4pOi"),D=n("M5PA"),_=n("WYdz"),M=n("V9Mx"),N=n("+282"),L=n("1Hpf"),B=n("9HFe"),F=n("ISr8"),H=n("VSQ5");const U=null;var V=Object(T.c)({[H.a]:(e,t)=>{const{view:n}=t.payload;return n}},U),G=n("kMhZ"),W=n("QYOI"),z=n("VB2T");const q=Object(W.Map)({timeoutId:0}),K={[z.a](e,t){const{timeoutId:n}=t.payload;return e.set("timeoutId",n,e)},[z.b]:e=>e.set("timeoutId",0,e)};var Y=Object(T.c)(K,q),J=n("q6sI");const Q=!1;var Z=Object(T.c)({[I.c](e,t){const{visible:n}=t.payload;return n}},Q);const X=!1;var $=Object(T.c)({[I.d](e,t){const{enabled:n}=t.payload;return n}},X),ee=n("05rB"),te=n("dIRc"),ne=n("aPre"),re=n("dLEV"),ie=n("AbLd");const ae={widgetInputIsOnFocus:!1};var se=Object(re.createSlice)({name:"widgetInputFocusStatus",initialState:ae,reducers:{},extraReducers:e=>{e.addCase(ie.a,(e,t)=>{e.widgetInputIsOnFocus=t.payload.widgetInputIsOnFocus})}}).reducer,oe=n("sl1+"),ce=n("HCbP");const ue={width:376,height:530},le={size:ue},de=Object(re.createSlice)({name:"widgetSize",initialState:le,reducers:{setWidgetSize(e,t){e.size=t.payload},resetWidgetSize(e){e.size=ue}}}),{setWidgetSize:pe,resetWidgetSize:fe}=de.actions;var he=de.reducer,be=n("WzHW");t.a=Object(r.combineReducers)({typingStates:M.a,availabilityMessageTimeouts:P.a,clientData:be.a,cookieBannerOnExitVisible:Z,currentView:V,emailCapture:k.a,fileUploads:N.a,fileUploadsErrors:L.a,gdpr:F.a,initialMessageBubbleVisible:G.a,messageEditorStaging:oe.a,pubSubClient:m,resolvedAttachments:B.a,responders:D.a,selectedThreadId:ee.a,stagedThread:ne.a,subscriptions:y,threadHistories:_.a,threads:J.a,timeOnPageTrigger:Y,unpublishedMessages:te.a,visitorIdentity:x,widgetData:E.a,widgetInputFocusStatus:se,widgetUi:R.a,feedbackSurveyEnabled:ce.default,visitorIdentificationEnabled:$,widgetSize:he})},"3MJX":function(e,t,n){"use strict";n("Ktcs");var r=n("QgEn");const i=e=>Object(r.jsxs)("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{children:[Object(r.jsx)("defs",{children:Object(r.jsx)("path",{d:"M2.276.39L12 10.115 21.724.391c.486-.486 1.254-.519 1.777-.098l.108.098c.521.52.521 1.364 0 1.885L13.886 12l9.723 9.724c.521.52.521 1.365 0 1.885-.52.521-1.364.521-1.885 0L12 13.886l-9.724 9.723c-.486.486-1.254.519-1.777.098l-.108-.098c-.521-.52-.521-1.364 0-1.885L10.114 12 .391 2.276C-.13 1.756-.13.911.39.391.91-.13 1.755-.13 2.276.39z",id:"close__a"})}),Object(r.jsx)("use",{xlinkHref:"#close__a",fillRule:"evenodd"})]}));i.displayName="SVGClose";t.a=i},"3OTY":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n.d(t,"c",(function(){return d}));n.d(t,"b",(function(){return p}));n.d(t,"d",(function(){return f}));var r=n("dLEV"),i=n("KrP/"),a=n("tlSg"),s=n("1ZlA"),o=n("FBcP"),c=n("0PDK"),u=n("9XKB");const l=Object(r.createAction)(i.a),d=Object(r.createAction)(i.c),p=Object(r.createAction)(i.b,e=>({payload:{error:e}}));function f(e=!1){return e?(e,t)=>{const n=Object(o.getSessionId)(t()),r=Object(c.getSelectedThreadId)(t()),i=Object(u.getHubspotUtk)();e(l());const f=({sessionId:t}={})=>{e(Object(s.updateSessionId)(t));e(d())},h=t=>{e(p(t))};Object(a.sendConsentToCommunicate)({sessionId:n,hubspotUtk:i,threadId:r}).then(f,h).catch(e=>{setTimeout(()=>{throw e})})}:null}},"3RDS":function(e,t,n){"use strict";n.r(t);n.d(t,"getGlobalCookieOptOut",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("globalCookieOptOut")},"3S9s":function(e,t,n){"use strict";var r=n("wFcP");function i(e,t){const n=e=>e&&"object"==typeof e;return[e,t].reduce((e,t)=>{Object.keys(t).forEach(r=>{const a=e[r],s=t[r];Array.isArray(a)&&Array.isArray(s)?e[r]=a.concat(...s):n(a)&&n(s)?e[r]=i(a,s):e[r]=s});return e},{})}n.d(t,"a",(function(){return a}));const a=(e={})=>e.colors||e.font||e.components?i(r.a,e):r.a},"3Yas":function(e,t,n){"use strict";function r(e){return()=>e}function i(e){return"function"==typeof e}function a(e){return"number"==typeof e&&!isNaN(e)}var s=n("yivD");function o(e){return"function"==typeof Symbol?Symbol(e):Object(s.a)(e)}var c=n("lTIY");const u=o("protocolType");function l(e,t){switch(t){case null:case void 0:return""+t;default:return t.constructor&&t.constructor[e]||t[e]}}function d(e,t){switch(t){case null:return"null";case void 0:return"undefined";default:return t[e]||Object(s.a)()}}function p(e,t){switch(t){case null:return"null";case void 0:return"undefined";default:return t.prototype.hasOwnProperty(e)?t.prototype[e]:Object(s.a)()}}function f(e,t,n){Object.defineProperty(e,t,{configurable:!1,enumerable:!1,value:n,writable:!0});return e}function h({args:e,name:t,fallback:n}){const r=e.indexOf(u),i=o("__p_"+t),a={},s=Object(c.a)(e.length,(...e)=>{const s=e[r],o=l(i,s),c=o&&a[o]||n;if(!c)throw new Error(`${t}: not implemented for type \`${s}\``);return c(...e)});s.implement=(e,t)=>{const n=d(i,e);null==e||e[i]||f(e,i,n);a[n]=t;return t};s.implementInherited=(e,t)=>{const n=p(i,e);null==e||e.prototype.hasOwnProperty(i)||f(e.prototype,i,n);a[n]=t;return t};return s}h.TYPE=u;n.d(t,"b",(function(){return g}));n.d(t,"a",(function(){return m}));n.d(t,"c",(function(){return O}));n.d(t,"d",(function(){return v}));n.d(t,"e",(function(){return j}));n.d(t,"f",(function(){return y}));n.d(t,"g",(function(){return E}));n.d(t,"h",(function(){return T}));n.d(t,"i",(function(){return I}));n.d(t,"j",(function(){return w}));n.d(t,"k",(function(){return S}));n.d(t,"l",(function(){return A}));n.d(t,"m",(function(){return C}));const b=r(!0),g=(h({args:[h.TYPE],name:"clear"}),h({args:[h.TYPE],name:"count"})),m=h({args:[b,h.TYPE],name:"concat"}),O=(h({args:[h.TYPE],name:"entrySeq"}),h({args:[i,h.TYPE],name:"every"})),v=h({args:[i,h.TYPE],name:"filter"}),j=(h({args:[a,h.TYPE],name:"flattenN"}),h({args:[i,h.TYPE],name:"forEach"}),h({args:[b,h.TYPE],name:"get",fallback:(e,t)=>t[e]})),y=h({args:[b,h.TYPE],name:"has"}),E=h({args:[h.TYPE],name:"keySeq"}),T=h({args:[h.TYPE],name:"keyedEquivalent"}),I=h({args:[i,h.TYPE],name:"map"}),w=h({args:[b,i,h.TYPE],name:"reduce"}),S=h({args:[b,b,h.TYPE],name:"set"}),A=h({args:[i,h.TYPE],name:"some"}),C=h({args:[i,h.TYPE],name:"sortBy"});h({args:[h.TYPE],name:"valueSeq"})},"3ZFB":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("qqP0"),i=n("OBCX"),a=n("xmwc"),s=n("p5It");const o=e=>t=>{t(Object(a.removeTimeOnPageTrigger)());const n=Object(r.timeOnPageTriggerDelaySeconds)(e),o=setTimeout(()=>{t(Object(s.executeTimeOnPageTrigger)())},1e3*n);t(Object(i.addTimeOnPageTriggerAction)(o))}},"3oj9":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("KXN9"),i=n("dLEV"),a=n("ZSXR"),s=n("eEyY"),o=n("Ryja"),c=n("eg5p");const u=Object(i.createSelector)([s.getCurrentThreadId,a.a,o.getStagedThreadHistory],(e,t,n)=>e===c.a?n:Object(r.a)(t)||null)},"3z2x":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));const r="SHOULD_ASK_FOR_CONSENT",i="SHOULD_NOT_ASK_FOR_CONSENT",a="UNDETERMINED"},"46XF":function(e,t,n){"use strict";n.d(t,"d",(function(){return s}));n.d(t,"b",(function(){return o}));n.d(t,"a",(function(){return c}));n.d(t,"c",(function(){return u}));var r=n("xCrP"),i=n("g4ag"),a=n("N7dr");const s=Object(r.a)(a.a),o=Object(i.a)(a.c),c=Object(i.a)(a.b);function u(e){return Object(i.a)(a.d,Date.now(),e)}},"47FM":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("jxkM"),i=n("R4L7"),a=n("tTno"),s=n("VY4I"),o=n("Ug6J");const c=()=>(e,t)=>{Object(s.a)();const n=t(),c=Object(o.a)(n,a.scrollTriggerEnabled);c.hasClientTriggerAlreadyFired||(c.shouldToggleOpen?e(Object(r.toggleOpen)({isOpened:!0})):c.shouldToggleInitialMessageBubble&&e(Object(i.toggleInitialMessageBubble)(!0)))}},"49A5":function(e,t,n){"use strict";n.r(t);n.d(t,"getLatestWidgetData",(function(){return s}));var r=n("dLEV"),i=n("KXN9"),a=n("SNA8");const s=Object(r.createSelector)(a.a,e=>Object(i.a)(e))},"4SpI":function(e,t,n){"use strict";n.r(t);var r=n("BxyF"),i=n("k8Ub"),a=n("0IK8"),s=n("nf9S"),o=n("8Xfw"),c=n("/OK6"),u=n("UxsU"),l=n("PpSk");function d(e){return Object(l.getStatus)(e)===u.a.ENDED}var p=n("dLEV"),f=n("mEYk"),h=n.n(f),b=n("A1pw"),g=n("qQrL"),m=n("c2PF"),O=n("KXN9"),v=n("ZSXR");const j=Object(p.createSelector)(v.a,O.c);var y=n("VToG");n.d(t,"publishMessageStarted",(function(){return E}));n.d(t,"publishMessageSucceeded",(function(){return T}));n.d(t,"publishMessageFailed",(function(){return I}));n.d(t,"publishMessage",(function(){return S}));const E=Object(p.createAction)(g.b.STARTED,({channel:e,message:t,messageKey:n,threadId:r})=>({payload:{channel:e,message:t,messageKey:n,threadId:r}})),T=Object(p.createAction)(g.b.SUCCEEDED,({channel:e,messageKey:t,publishedMessage:n,threadId:r})=>({payload:{channel:e,messageKey:t,publishedMessage:n,threadId:r}})),I=Object(p.createAction)(g.b.FAILED,({channel:e,messageKey:t,message:n,threadId:r,error:i})=>({payload:{channel:e,messageKey:t,message:n,threadId:r,error:i}}));let w;const S=({channel:e,message:t,threadId:n})=>(u,l)=>{const p=Object(m.getThreadByThreadId)(l(),{threadId:n});if(t.id===w){h.a.captureMessage("publishMessage attempted duplicate message",{level:"warning",extra:{messageId:t.id}});return Promise.resolve()}w=t.id;if(j(l())===y.c&&Object(c.isFromVisitor)(t)){u(I({channel:e,messageKey:Object(a.getId)(t),message:t,threadId:n,error:"message sent while threads fetching"}));return Promise.resolve()}if(d(p))return Promise.resolve();u(E({channel:e,message:t,messageKey:Object(a.getId)(t),threadId:n}));const f=Object(r.getPubSubClient)(l()),g={message:Object(o.serialize)(t),channel:e},O=f.publish(g).then(({data:r})=>{const i=Object(o.deserialize)({json:r});u(T({channel:e,messageKey:Object(a.getId)(t),publishedMessage:i,threadId:n}));u(Object(b.a)({updated:i,channel:e,message:t,threadId:n}))}).catch(r=>{u(I({channel:e,messageKey:Object(a.getId)(t),message:t,threadId:n,error:r}))});try{const e=Boolean(Object(i.a)(t));Object(s.isConversationalMessage)(t)&&!e&&d(p)&&h.a.captureMessage("VISITOR_MESSAGE_PUBLISHED_ON_CLOSED_THREAD",{extra:{threadId:n,publishData:g}})}catch(e){}O.catch(e=>{setTimeout(()=>{throw e})});return O}},"4W30":function(e,t,n){"use strict";e.exports=n("OS0G")},"4cgu":function(e,t,n){"use strict";var r=n("Lm/k"),i=n("VfuR"),a=n.n(i),s=n("9f1P"),o=n.n(s),c=n("uax2"),u=n("0wen"),l=n("54vt");const d="primary",p="secondary",f={PRIMARY:d,SECONDARY:p},h={[d]:u.PRIMARY,[p]:u.SECONDARY},b=e=>h[e],g={[d]:l.SECONDARY,[p]:l.PRIMARY},m=e=>g[e];var O=f,v=n("CR0J"),j=n("QgEn");const y=["use","children","Button","result","theme","currentState","onClick"],E=o()(c.a).withConfig({displayName:"VizExLoadingButton__Spinner",componentId:"sc-1md00st-0"})(["height:0;position:absolute;top:50%;right:0;transition:opacity 0.2s;opacity:",";"],({show:e})=>e?1:0),T=o.a.div.withConfig({displayName:"VizExLoadingButton__ReadyWrapper",componentId:"sc-1md00st-1"})(["transition:opacity 0.2s;opacity:",";"],({show:e})=>e?1:0),I=e=>{let{use:t=O.PRIMARY,children:n,Button:i,result:a,theme:s,currentState:o,onClick:c=(()=>{})}=e,u=Object(r.a)(e,y);const l="ready"===o,d="submitting"===o,p="done"===o;return Object(j.jsxs)(i,Object.assign({theme:s,onClick:d||p?()=>{}:c,use:b(t),style:{position:"relative"},"data-test-id":"loading-button"},u,{children:[Object(j.jsx)(T,{"data-test-id":"VizExLoadingButton-Ready",show:l,children:n}),Object(j.jsx)(E,{size:"xs",grow:!0,use:m(t),theme:s,showResult:p,show:d||p,"data-test-id":"VizExLoadingButton-Spinner",children:a})]}))};I.propTypes={Button:a.a.elementType.isRequired,children:a.a.node.isRequired,currentState:a.a.oneOf(["ready","submitting","done"]),onClick:a.a.func,result:a.a.node,theme:v.a,use:a.a.oneOf(Object.values(O)).isRequired};I.displayName="VizExLoadingButton";t.a=I},"4cwC":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("EN6V"),i=n("VToG"),a=n("nt9Q");const s=Object(a.a)(i.a,r.a)},"4dq7":function(e,t,n){"use strict";n.r(t);n.d(t,"addAvailabilityMessage",(function(){return o}));var r=n("mmfe"),i=n("As+A"),a=n("gJOx");const s=5e3;function o({channel:e,threadId:t}){return(n,o)=>{if(!Object(a.default)(o()).get(e)){const a=setTimeout(()=>{n(Object(i.publishAvailabilityMessage)({channel:e,threadId:t}))},s);n(Object(r.a)(e,a))}}}},"4e8t":function(e,t,n){e.exports=n.dlbpr(1,13)},"4fgK":function(e,t,n){"use strict";n.r(t);n.d(t,"getIsBot",(function(){return o}));var r=n("dLEV"),i=n("ZqFO"),a=n("49A5"),s=n("G0k2");const o=Object(r.createSelector)(a.getLatestWidgetData,e=>Object(s.a)(Object(i.a)(e)))},"4nf7":function(e,t,n){"use strict";var r=n("021p"),i=n("bOW6"),a=n("PpSk"),s=n("QYOI"),o=n("dLEV"),c=n("qjq5"),u=n("3Yas");u.a.implement(Array,(e,t)=>s.Iterable.isIterable(e)?t.concat(e.toJS()):t.concat(e));u.a.implementInherited(s.Seq.Indexed,(e,t)=>t.concat(e));u.a.implementInherited(s.Collection.Indexed,(e,t)=>t.concat(e));u.a.implement(String,(e,t)=>t.concat(e));var l=u.a,d=Object(c.a)(l),p=n("SGjM"),f=n("DdHT"),h=n("6aYC"),b=n("k09d"),g=n("Z6IV"),m=n("3oj9"),O=n("5oUx");n.d(t,"a",(function(){return j}));let v;const j=Object(o.createSelector)([b.a,m.a,h.a,O.a],(e,t,n,o)=>{const c=Object(a.getChannelName)(e),u=Object(a.getThreadId)(e),l=Object(r.d)(t)||Object(s.List)(),h=Object(f.a)(d(l),d(n),Object(p.a)(Object(i.wrapFailedMessage)({threadId:u,channel:c})),d(o))(Object(s.List)()),b=h.size?h.filter(g.isSupportedMessageType):Object(s.List)();Object(s.is)(v,b)||(v=b);return v})},"4pOi":function(e,t,n){"use strict";var r=n("QYOI"),i=n("Ut5p"),a=n("SGAL");const s=Object(r.Map)();t.a=Object(i.c)({[a.a]:(e,t)=>{const{channel:n,timeout:r}=t.payload;return e.set(n,r)}},s)},"4vna":function(e,t,n){"use strict";var r=n("QYOI");const i=new r.Record({enabled:!1,scrollPercentage:50},"ScrollPercentageTrigger");t.a=i},"54uz":function(e,t,n){"use strict";n("Ktcs");var r=n("QgEn");const i=e=>Object(r.jsxs)("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{children:[Object(r.jsx)("defs",{children:Object(r.jsx)("path",{d:"M20.054.39c-.521-.52-1.365-.52-1.885 0l-3.166 3.166H3.111C1.396 3.556 0 4.95 0 6.667v14.222C0 22.604 1.396 24 3.111 24h14.222c1.716 0 3.111-1.396 3.111-3.111v-5.333c0-.737-.596-1.334-1.333-1.334-.736 0-1.334.597-1.334 1.334v5.333c0 .244-.199.444-.444.444H3.111c-.244 0-.444-.2-.444-.444V6.667c0-.245.2-.444.444-.444h9.226l-4.835 4.834c-.147.147-.257.325-.322.521l-1.777 5.333c-.16.48-.036 1.007.321 1.365.255.254.595.39.943.39.142 0 .284-.022.422-.069l5.333-1.777c.196-.065.375-.175.52-.322L23.61 5.83c.521-.52.521-1.365 0-1.885L20.054.391z",id:"compose__a"})}),Object(r.jsx)("use",{xlinkHref:"#compose__a",fillRule:"evenodd"})]}));i.displayName="SVGCompose";t.a=i},"54vt":function(e,t,n){"use strict";n.r(t);n.d(t,"PRIMARY",(function(){return r}));n.d(t,"SECONDARY",(function(){return i}));const r="primary",i="secondary"},"57op":function(e,t,n){"use strict";n.d(t,"w",(function(){return s}));n.d(t,"k",(function(){return o}));n.d(t,"h",(function(){return u}));n.d(t,"t",(function(){return l}));n.d(t,"i",(function(){return d}));n.d(t,"u",(function(){return p}));n.d(t,"j",(function(){return f}));n.d(t,"v",(function(){return h}));n.d(t,"c",(function(){return b}));n.d(t,"n",(function(){return g}));n.d(t,"a",(function(){return m}));n.d(t,"l",(function(){return O}));n.d(t,"b",(function(){return v}));n.d(t,"m",(function(){return j}));n.d(t,"s",(function(){return y}));n.d(t,"g",(function(){return E}));n.d(t,"f",(function(){return T}));n.d(t,"r",(function(){return I}));n.d(t,"e",(function(){return w}));n.d(t,"q",(function(){return S}));n.d(t,"p",(function(){return A}));n.d(t,"d",(function(){return C}));n.d(t,"o",(function(){return x}));var r=n("pdKL");const i=Object(r.a)((e,t,n)=>{if("object"!=typeof n||null===n)throw new Error(`Error getting '${t}': the theme for VizExComponents has not been defined. Please provide a theme through the component props or styled-components ThemeProvider.`);if("object"!=typeof n[e]||null===n[e])throw new Error(`Error getting 'theme.${e}': the theme object is missing ${e} property. Please ensure the ${e} was defined on theme.`);if(!n[e][t])throw new Error(`Error getting '${t}': the property was not defined on theme.`);return n[e][t]}),a=Object(r.a)((e,t,n,r)=>Object.assign({},r,{[e]:Object.assign({},r[e],{[t]:n})}));function s(e){return a("colors")(e)}function o(e){return i("colors")(e)}function c(e){return a("font")(e)}const u=o("primary"),l=s("primary"),d=o("text"),p=s("text"),f=o("textOnPrimary"),h=s("textOnPrimary"),b=o("errorText"),g=s("errorText"),m=o("disabledBackground"),O=s("disabledBackground"),v=o("disabledText"),j=s("disabledText"),y=s("placeholderText"),E=o("placeholderText"),T=o("inputBorder"),I=s("inputBorder"),w=o("inputBackground"),S=s("inputBackground"),A=s("helpText"),C=o("helpText"),x=c("fontFamily");o("fontFamily")},"5ZU4":function(e,t,n){"use strict";var r={mode:"lazy",source:"I18n/lang",context:{af:function(){return n.e("I18n-lang-af").then(n.t.bind(null,"cGWL",7))},"ar-eg":function(){return n.e("I18n-lang-ar-eg").then(n.t.bind(null,"zwoC",7))},bg:function(){return n.e("I18n-lang-bg").then(n.t.bind(null,"RlBK",7))},bn:function(){return n.e("I18n-lang-bn").then(n.t.bind(null,"iHJP",7))},"ca-es":function(){return n.e("I18n-lang-ca-es").then(n.t.bind(null,"YZbF",7))},cs:function(){return n.e("I18n-lang-cs").then(n.t.bind(null,"/xE3",7))},da:function(){return n.e("I18n-lang-da").then(n.t.bind(null,"1yak",7))},de:function(){return n.e("I18n-lang-de").then(n.t.bind(null,"PVVJ",7))},el:function(){return n.e("I18n-lang-el").then(n.t.bind(null,"mxWg",7))},"en-gb":function(){return n.e("I18n-lang-en-gb").then(n.t.bind(null,"fNV5",7))},en:function(){return Promise.resolve().then(n.t.bind(null,"NPWD",7))},"es-mx":function(){return n.e("I18n-lang-es-mx").then(n.t.bind(null,"Et6C",7))},es:function(){return n.e("I18n-lang-es").then(n.t.bind(null,"wA7s",7))},et:function(){return n.e("I18n-lang-et").then(n.t.bind(null,"LmdH",7))},fi:function(){return n.e("I18n-lang-fi").then(n.t.bind(null,"Xpnj",7))},"fr-ca":function(){return n.e("I18n-lang-fr-ca").then(n.t.bind(null,"Byfm",7))},fr:function(){return n.e("I18n-lang-fr").then(n.t.bind(null,"ZBpi",7))},"he-il":function(){return n.e("I18n-lang-he-il").then(n.t.bind(null,"9Xwu",7))},hi:function(){return n.e("I18n-lang-hi").then(n.t.bind(null,"2rGv",7))},hr:function(){return n.e("I18n-lang-hr").then(n.t.bind(null,"KofI",7))},hu:function(){return n.e("I18n-lang-hu").then(n.t.bind(null,"Rlkd",7))},id:function(){return n.e("I18n-lang-id").then(n.t.bind(null,"YcnS",7))},it:function(){return n.e("I18n-lang-it").then(n.t.bind(null,"zdsz",7))},ja:function(){return n.e("I18n-lang-ja").then(n.t.bind(null,"c+6+",7))},ko:function(){return n.e("I18n-lang-ko").then(n.t.bind(null,"4daw",7))},lt:function(){return n.e("I18n-lang-lt").then(n.t.bind(null,"+QcN",7))},ms:function(){return n.e("I18n-lang-ms").then(n.t.bind(null,"Td1Z",7))},nl:function(){return n.e("I18n-lang-nl").then(n.t.bind(null,"ZHy2",7))},no:function(){return n.e("I18n-lang-no").then(n.t.bind(null,"ejcR",7))},pl:function(){return n.e("I18n-lang-pl").then(n.t.bind(null,"uAq/",7))},"pt-br":function(){return n.e("I18n-lang-pt-br").then(n.t.bind(null,"schV",7))},"pt-pt":function(){return n.e("I18n-lang-pt-pt").then(n.t.bind(null,"EHzq",7))},ro:function(){return n.e("I18n-lang-ro").then(n.t.bind(null,"eO1u",7))},ru:function(){return n.e("I18n-lang-ru").then(n.t.bind(null,"ZsXZ",7))},sk:function(){return n.e("I18n-lang-sk").then(n.t.bind(null,"iwZ6",7))},sl:function(){return n.e("I18n-lang-sl").then(n.t.bind(null,"OCgY",7))},sv:function(){return n.e("I18n-lang-sv").then(n.t.bind(null,"bGmi",7))},th:function(){return n.e("I18n-lang-th").then(n.t.bind(null,"AQhv",7))},tl:function(){return n.e("I18n-lang-tl").then(n.t.bind(null,"dVOS",7))},tr:function(){return n.e("I18n-lang-tr").then(n.t.bind(null,"fiYf",7))},uk:function(){return n.e("I18n-lang-uk").then(n.t.bind(null,"F3eG",7))},vi:function(){return n.e("I18n-lang-vi").then(n.t.bind(null,"y9pr",7))},"x-pseudo":function(){return n.e("I18n-lang-x-pseudo").then(n.t.bind(null,"EC5E",7))},"zh-cn":function(){return n.e("I18n-lang-zh-cn").then(n.t.bind(null,"aJvQ",7))},"zh-hk":function(){return n.e("I18n-lang-zh-hk").then(n.t.bind(null,"ktke",7))},"zh-tw":function(){return n.e("I18n-lang-zh-tw").then(n.t.bind(null,"+N1l",7))}}},i=n("1pGl");t.a=e=>e.register(r,{getLocales:i.b})},"5jhX":function(e,t,n){"use strict";n.r(t);n.d(t,"removeTypingTimeoutIdForAgentInThread",(function(){return a}));var r=n("dLEV"),i=n("/UYW");const a=Object(r.createAction)(i.b,(e,t)=>({payload:{threadId:e,senderId:t}}))},"5oUx":function(e,t,n){"use strict";var r=n("YPLr"),i=n("Avso"),a=n("dLEV"),s=n("k09d"),o=n("Q2fA");const c=Object(a.createSelector)([e=>e,s.a],(e,t)=>Object(o.a)(e,{thread:t}));var u=n("eEyY"),l=n("QYOI"),d=n("+TdC"),p=n("BvOu"),f=n("cPs9");n.d(t,"a",(function(){return h}));const h=Object(a.createSelector)([c,u.getCurrentThreadId],(e,t)=>{if(!e||!t)return Object(l.List)();const n=Object(r.agentTypeToCMFSenderType)(Object(i.getAgentType)(e),!0),a=Object(f.a)(n);return Object(l.List)([new d.a({id:Object(p.generateUuid)(),typingState:null,sender:{"@type":n,[a]:Object(i.getUserId)(e)}})])})},"5rZi":function(e,t,n){"use strict";n.r(t);var r=n("+LtA"),i=n("dLEV"),a=n("QYOI"),s=n("JGJA"),o=n("mEYk"),c=n.n(o),u=n("4dq7"),l=n("bT+G"),d=n("sWFM"),p=n("sJho"),f=n("FBcP"),h=n("lJFu"),b=n("Ryja"),g=n("y5/z"),m=n("9XKB"),O=n("1ZlA"),v=n("qwm9"),j=n("2Sm/"),y=n("PY3R"),E=n("X3o/"),T=n("49A5"),I=n("2BFa"),w=n("cdXU"),S=n("Wt04"),A=n("ik2A"),C=n("E9Gc");function x(){Object(C.j)()}n.d(t,"createNewThread",(function(){return _}));const R=Object(i.createAction)(j.a.STARTED),k=Object(i.createAction)(j.a.SUCCEEDED,({channel:e,threadId:t,conversation:n,threadHistory:r,shouldAskForEmail:i})=>({payload:{channel:e,threadId:t,conversation:n,threadHistory:r,shouldAskForEmail:i}})),P=Object(i.createAction)(j.a.FAILED,({status:e,message:t,error:n})=>({payload:{status:e,message:t,error:n}}));let D;function _(){return(e,t)=>{const n=Object(f.getSessionId)(t()),i=Object(d.getMessageId)(t()),o=Object(p.getMessagesPageUri)(t()),j=Object(m.getHubspotUtk)(),C=Object(T.getLatestWidgetData)(t()),_=Object(b.getVisitorInitialThreadHistory)(t()),M=(_[0]||[{}]).id;if(void 0===M||D===M){D===M&&c.a.captureMessage("createNewThread attempted duplicate initial message",{level:"warning",extra:{initialMessageId:M}});return null}D=M;e(R());return Object(v.createVisitorThread)({sessionId:n,hubspotUtk:j,messageId:i,messagesPageUri:o,visitorThreadInitialHistory:_,widgetData:C,zoneId:Object(A.getUserTimezone)()}).then(({channelDetails:n,sessionId:i,id:c,history:d,shouldAskForEmail:p})=>{const f=new r.a(Object.assign({},d,{attachments:Object(a.Map)(Object(s.a)("attachments",d))})),b=Object(h.buildCreatedThread)({channelDetails:n,messagesPageUri:o,threadId:c,threadHistory:f});e(Object(O.updateSessionId)(i));e(Object(g.trackInteraction)("start-conversation",{action:"new conversation started",threadId:c}));x();e(k({channel:Object(E.a)(n),threadId:c,conversation:b,threadHistory:f,shouldAskForEmail:p}));e(Object(u.addAvailabilityMessage)({channel:Object(E.a)(n),threadId:c}));Object(y.a)({thread:b});Object(I.gdprCookieConsentOnExitIntentEnabled)(t(),C)||Object(w.getIsPrivateLoad)(C)||Object(l.handleStoreMessagesCookie)(Object(S.getMessagesUtk)())}).catch((t={})=>e(P({status:t.status,message:t.message,error:t})))}}},"5tDa":function(e,t,n){"use strict";var r=n("JGJA"),i=n("QYOI"),a=n("F4Hj"),s=n("/kBF"),o=n("yslo");const c=e=>e?new o.a({userIds:Object(i.List)([Object(r.a)("user_id",e)])}):new o.a,u=e=>e?Object(s.a)(e):c();var l=n("kg2E"),d=n("Hnb1"),p=n("4vna"),f=n("DmNG");const h=(e={})=>new l.a({displayOnScrollPercentage:new p.a(Object(r.a)("displayOnScrollPercentage",e)),displayOnTimeDelay:new f.a(Object(r.a)("displayOnTimeDelay",e)),displayOnExitIntent:new d.a(Object(r.a)("displayOnExitIntent",e))});n.d(t,"a",(function(){return b}));function b(e={}){const t=Object(r.a)("clientTriggers",e),n=Object(r.a)("chatHeadingConfig",e);return Object(a.a)(Object(i.fromJS)(e)).merge({clientTriggers:h(t),chatHeadingConfig:u(n)})}},"5vQK":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="DEFAULT_CLIENT_KEY"},"66eB":function(e,t,n){"use strict";function r(e){return()=>e}const i=()=>{};i.thatReturns=r;i.thatReturnsFalse=r(!1);i.thatReturnsTrue=r(!0);i.thatReturnsNull=r(null);i.thatReturnsThis=()=>{};i.thatReturnsArgument=e=>e;t.a=i},"6IxM":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("bSHG");const i=(e,t)=>"p"===t&&e&&e.classList&&e.classList.contains("MsoNormal")&&e.children&&e.children.length,a=e=>{const t=r.c.createElement("o:p");if(e.innerHTML.includes(" ")){t.innerHTML=e.innerHTML.replace(/ /g,"").trim();return t}return e},s=e=>{if(!e||"o:p"!==e.tagName.toLowerCase())return!1;const t=a(e);return!t.children.length&&""===t.innerHTML},o=e=>e&&"span"===e.tagName.toLowerCase()&&s(e.firstElementChild),c=({node:e,node_name:t})=>{if(!i(e,t))return null;const n=e.firstElementChild;if(n&&o(n)&&n.childNodes.length>1){const t=n.firstElementChild;if(t){n.removeChild(t);return c({node:e,node_name:"p"})}}if(n&&(s(n)||o(n))){if(e.childNodes.length>1){e.removeChild(n);return c({node:e,node_name:"p"})}return{node:r.c.createElement("br")}}const a=r.c.createElement("div");Object.values(e.attributes).forEach(e=>{try{e.nodeValue&&a.setAttribute(e.nodeName,e.nodeValue)}catch(e){}});a.innerHTML=e.innerHTML.replace(/ /g," ").trim();return{node:a}}},"6Jpi":function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n("VfuR"),i=n.n(r),a=n("FfT4");n.d(t,"a",(function(){return a.b}));const s=i.a.oneOf([a.a,a.b])},"6O34":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("QYOI"),i=n("6xui"),a=n("TWJS");const s=(e=[])=>Object(i.a)(Object(r.List)(),(e,t)=>e.push(Object(a.a)(t)),Object(r.List)(e))},"6OYF":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="TYPICAL_RESPONSE_TIME"},"6PLn":function(e,t,n){"use strict";n.r(t);n.d(t,"applyGdprConsent",(function(){return a}));var r=n("Qf6G"),i=n("FPMu");const a=()=>(e,t)=>{Object(i.shouldRecordImplicitConsentToProcess)(t())&&e(Object(r.consentToProcess)());return Promise.resolve()}},"6Y5w":function(e,t,n){"use strict";n.r(t);n.d(t,"sentByVisitorClient",(function(){return c}));var r=n("usEm"),i=n("ul3k"),a=n("Euo8"),s=n("UJtG"),o=n("/OK6");const c=e=>Object(o.isFromVisitor)(e)||Object(r.isEmailCapturePromptMessage)(e)||Object(i.isEmailCaptureResponseMessage)(e)||Object(s.isTypicalResponseTimeMessage)(e)||Object(a.isOfficeHoursMessage)(e)},"6aYC":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("KXN9"),i=n("x1JE"),a=n("dLEV"),s=n("eEyY"),o=n("goEE"),c=n("/5H5");const u=Object(a.createSelector)([c.a,s.getCurrentThreadId],(e,t)=>{const n=Object(i.getEntries)(e).map(r.a);return Object(o.getSortedMessagesByThreadId)(n,t)})},"6d8N":function(e,t,n){"use strict";var r=n("QYOI"),i=n("JGJA");function a(e){return"object"==typeof e&&e?"function"==typeof e.toJS?e.toJS():"function"==typeof e.toJSON?e.toJSON():e:e}var s=n("Zui/");class o extends(Object(r.Record)({"@type":s.i,quickReplies:Object(r.OrderedSet)(),allowMultiSelect:!1,allowUserInput:!1},"QuickReplyAttachment")){constructor(e=Object(r.Map)()){const t=Object(r.fromJS)(Object(i.a)("quickReplies",e));super(Object.assign({},a(e),{quickReplies:Object(r.OrderedSet)(t)}))}}t.a=o},"6kbu":function(e,t,n){"use strict";var r=n("19qb"),i=n("GOyg"),a=n("zGIQ"),s=n("tAuz"),o=n("1Vek"),c=n("o+We"),u=n("gkBl"),l=n("Ktcs"),d=n("QYOI"),p=n("VfuR"),f=n.n(p),h=n("9f1P"),b=n.n(h),g=n("npjq"),m=n("+KD7"),O=n("P7jJ"),v=n("eCQl"),j=n("V/xu"),y=n("fKJZ"),E=n("3MJX"),T=n("HtM0"),I=n("+hQr"),w=n("QgEn");const S=({children:e,onPress:t})=>{const n=Object(l.useRef)(),{buttonProps:r}=Object(I.a)({onPress:t,elementType:"div"},n);return Object(w.jsx)("div",Object.assign({},r,{className:"initial-message-bubble","aria-label":g.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.open"),"aria-describedby":"welcome-message","aria-haspopup":"dialog",children:e}))};S.displayName="InitialMessageTextButton";S.propTypes={children:f.a.node};var A=S,C=n("6Jpi"),x=n("ltgT"),R=n("Avso"),k=n("0Me1"),P=n("HD2P");function D(e,t){switch(!0){case 3===e&&0===t:return"chat-head-left chat-head-shrink";case 3===e&&1===t:return"chat-head-center";case 3===e&&2===t:return"chat-head-right chat-head-shrink";case 2===e&&0===t:return"chat-head-left";case 2===e&&1===t:return"chat-head-right";default:return""}}function _({showStatusIndicator:e=!1,size:t,responders:n,mobile:r}){const i=n.size,a=n.map((n,r)=>{const a=Object(R.getAvatar)(n),s=Object(R.getFriendlyOrFormalName)(n),o=Object(k.a)(n),c=Object(R.getIsBot)(n),u=Object(R.getUserId)(n),l=D(i,r);return Object(w.jsx)(x.a,{className:l,size:t,avatar:a,avatarName:s,online:o,isBot:c,showStatus:e,isVisitorWidget:!0},"chat-head."+u)});return Object(w.jsx)("div",{className:"justify-center",style:Object(P.a)({mobile:r}),children:a})}_.displayName="InitialMessageChatHeadGroup";var M=n("Opx+");function N({chatHeadingConfig:e,chatHeadingResponders:t,mobile:n=!1,showStatusIndicator:r=!1}){const i=n?"sm":"md",a=t.size?_:M.a;return Object(w.jsx)(a,{size:i,mobile:n,responders:t,chatHeadingConfig:e,showStatusIndicator:r})}N.displayName="InitialMessageAvatars";var L=n("/mXs"),B=n("3S9s");const F=b.a.div.withConfig({displayName:"InitialMessageBubble__StyleWrapper",componentId:"sc-1glqs0m-0"})(["position:relative;margin-top:24px;"]),H=b()(L.a).withConfig({displayName:"InitialMessageBubble__CloseButton",componentId:"sc-1glqs0m-1"})(["position:absolute;top:0;right:0;width:36px;height:36px;color:",";z-index:2;&:focus-visible{outline-offset:-2px;}"],m.g);class U extends l.Component{constructor(...e){super(...e);this.onClose=()=>{try{this.props.onClose()}catch(e){Object(v.reportError)({error:"InitialMessageBubble Mysterious Error",fingerprint:["ComponentError"],tags:{componentDidCatch:!0}})}};this.renderAvatar=()=>{const{avatarHeightAboveBubble:e,chatHeadingConfig:t,chatHeadingResponders:n,mobile:r,onClick:i}=this.props,a=r?j.a.sm:j.a.md,s=-(e||a/2);return Object(w.jsx)("div",{"data-test-id":"initial-message-avatar-wrapper",className:"initial-message-avatar justify-center",onClick:i,style:{top:s},children:Object(w.jsx)(N,{chatHeadingConfig:t,chatHeadingResponders:n,mobile:r})})};this.renderCloseButton=()=>Object(w.jsx)(H,{"aria-label":g.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.dismiss"),size:"md",use:"transparent-on-background",shape:"circle",theme:Object(B.a)({colors:{primary:m.q}}),"data-test-id":"initial-message-close-button",onClick:this.onClose,children:Object(w.jsx)(O.a,{size:"13px",icon:Object(w.jsx)(E.a,{})})})}componentDidMount(){this.props.onUpdateSize()}componentDidUpdate(e){e.initialMessage!==this.props.initialMessage&&this.props.onUpdateSize()}render(){const{initialMessage:e,onClick:t,mobile:n,setInitialMessageRef:r,widgetLocation:i}=this.props;return Object(w.jsxs)(F,{className:n?"mobile":"","aria-label":g.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.welcomeMessage"),role:"status",ref:r,widgetLocation:i,children:[Object(w.jsxs)(A,{onPress:t,children:[this.renderAvatar(),Object(w.jsx)("p",{id:"welcome-message",role:"status","data-test-id":"initial-message-text",className:"initial-message-text m-top-1 m-bottom-0",onClick:t,dangerouslySetInnerHTML:{__html:Object(T.a)(e)}})]}),this.renderCloseButton()]})}}U.displayName="InitialMessageBubble";U.propTypes={avatarHeightAboveBubble:f.a.number,chatHeadingConfig:y.a.isRequired,chatHeadingResponders:f.a.instanceOf(d.List).isRequired,initialMessage:f.a.string.isRequired,mobile:f.a.bool.isRequired,onClick:f.a.func.isRequired,onClose:f.a.func.isRequired,onUpdateSize:f.a.func.isRequired,setInitialMessageRef:f.a.func,widgetLocation:C.b};U.defaultProps={mobile:!1,onUpdateSize:()=>{},setInitialMessageRef:()=>{}};var V=n("2LMW");const G=e=>{const t=Object(u.a)(e.stagedThread.data),n=Object(V.a)(e)?t.reduce((e,t)=>e+" "+t.text,""):Object(o.a)(e);return{chatHeadingConfig:Object(i.a)(e),chatHeadingResponders:Object(a.a)(e),initialMessage:n,mobile:Object(s.getIsMobile)(e)}},W={onClose:c.a};t.a=Object(r.connect)(G,W)(U)},"6pce":function(e,t,n){"use strict";var r=n("VfuR"),i=n.n(r),a=n("0fuM");t.a=i.a.oneOf([a.b,a.c,a.a])},"6pgb":function(e,t,n){"use strict";var r=n("aYGO"),i=n("g4ag"),a=n("PJuP"),s=n("0IK8"),o=n("VBzW");const c=Object(i.a)(o.b),u=Object(i.a)(o.d),l=Object(i.a)(o.c);Object(i.a)(o.a),Object(i.a)(o.e),Object(i.a)(o.f);n.d(t,"a",(function(){return d}));const d=(e,t)=>{t=Object(i.a)(r.d)(Object(s.getTimestamp)(e),t);t=c(Boolean(Object(a.a)(e)&&Object(a.a)(e).length),t);t=u(Object(s.getPlainText)(e),t);return t=l(Object(s.getId)(e),t)}},"6sJ9":function(e,t,n){"use strict";n.r(t);n.d(t,"getResponderByIdAndType",(function(){return s}));var r=n("x1JE"),i=n("MBJP"),a=n("bXuJ");const s=Object(i.b)(({responders:e,senderId:t,senderType:n})=>{if(!t||!n)return null;const i=Object(a.a)({senderId:t,senderType:n});return Object(r.getEntry)(i,e)})},"6xui":function(e,t,n){"use strict";var r=n("qjq5"),i=n("gjm2");t.a=Object(r.a)(i.a)},"7+Fw":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("dLEV"),i=n("ZqFO"),a=n("49A5"),s=n("G0k2");const o=Object(r.createSelector)([a.getLatestWidgetData],e=>Object(s.a)(Object(i.a)(e))?Object(i.a)(e):null)},7719:function(e,t,n){"use strict";n.d(t,"e",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"f",(function(){return a}));n.d(t,"a",(function(){return s}));n.d(t,"d",(function(){return o}));n.d(t,"b",(function(){return c}));const r="md",i="xs",a="sm",s="xxs",o="lg",c="xl"},"7CK0":function(e,t,n){"use strict";var r={mode:"lazy",source:"i18n-data/data/locales",context:{bn:function(){return n.e("i18n-data-data-locales-bn").then(n.t.bind(null,"gtuu",7))},cs:function(){return n.e("i18n-data-data-locales-cs").then(n.t.bind(null,"zdyY",7))},da:function(){return n.e("i18n-data-data-locales-da").then(n.t.bind(null,"1O8Z",7))},de:function(){return n.e("i18n-data-data-locales-de").then(n.t.bind(null,"Hze6",7))},el:function(){return n.e("i18n-data-data-locales-el").then(n.t.bind(null,"QLm+",7))},"en-au":function(){return n.e("i18n-data-data-locales-en-au").then(n.t.bind(null,"TSJg",7))},"en-ca":function(){return n.e("i18n-data-data-locales-en-ca").then(n.t.bind(null,"vvq7",7))},"en-gb":function(){return n.e("i18n-data-data-locales-en-gb").then(n.t.bind(null,"MzLS",7))},"en-ie":function(){return n.e("i18n-data-data-locales-en-ie").then(n.t.bind(null,"TiL3",7))},"en-in":function(){return n.e("i18n-data-data-locales-en-in").then(n.t.bind(null,"U4P6",7))},"en-nz":function(){return n.e("i18n-data-data-locales-en-nz").then(n.t.bind(null,"HIGL",7))},"en-us":function(){return n.e("i18n-data-data-locales-en-us").then(n.t.bind(null,"18WJ",7))},en:function(){return Promise.resolve().then(n.t.bind(null,"2SbE",7))},"es-ar":function(){return n.e("i18n-data-data-locales-es-ar").then(n.t.bind(null,"kfLk",7))},"es-mx":function(){return n.e("i18n-data-data-locales-es-mx").then(n.t.bind(null,"iQdO",7))},es:function(){return n.e("i18n-data-data-locales-es").then(n.t.bind(null,"KjXL",7))},fi:function(){return n.e("i18n-data-data-locales-fi").then(n.t.bind(null,"EpSp",7))},"fr-ca":function(){return n.e("i18n-data-data-locales-fr-ca").then(n.t.bind(null,"GKhG",7))},fr:function(){return n.e("i18n-data-data-locales-fr").then(n.t.bind(null,"14s9",7))},"he-il":function(){return n.e("i18n-data-data-locales-he-il").then(n.t.bind(null,"xxo2",7))},hr:function(){return n.e("i18n-data-data-locales-hr").then(n.t.bind(null,"3P3U",7))},hu:function(){return n.e("i18n-data-data-locales-hu").then(n.t.bind(null,"ffwR",7))},id:function(){return n.e("i18n-data-data-locales-id").then(n.t.bind(null,"55fn",7))},it:function(){return n.e("i18n-data-data-locales-it").then(n.t.bind(null,"kEr5",7))},ja:function(){return n.e("i18n-data-data-locales-ja").then(n.t.bind(null,"4wWO",7))},ko:function(){return n.e("i18n-data-data-locales-ko").then(n.t.bind(null,"1ArU",7))},lt:function(){return n.e("i18n-data-data-locales-lt").then(n.t.bind(null,"jj++",7))},ms:function(){return n.e("i18n-data-data-locales-ms").then(n.t.bind(null,"mRui",7))},nl:function(){return n.e("i18n-data-data-locales-nl").then(n.t.bind(null,"XL7k",7))},"no-no":function(){return n.e("i18n-data-data-locales-no-no").then(n.t.bind(null,"VSHL",7))},pl:function(){return n.e("i18n-data-data-locales-pl").then(n.t.bind(null,"mJf4",7))},"pt-br":function(){return n.e("i18n-data-data-locales-pt-br").then(n.t.bind(null,"3oD3",7))},"pt-pt":function(){return n.e("i18n-data-data-locales-pt-pt").then(n.t.bind(null,"Xhvw",7))},ro:function(){return n.e("i18n-data-data-locales-ro").then(n.t.bind(null,"rYxb",7))},ru:function(){return n.e("i18n-data-data-locales-ru").then(n.t.bind(null,"G40t",7))},sk:function(){return n.e("i18n-data-data-locales-sk").then(n.t.bind(null,"k6Dp",7))},sv:function(){return n.e("i18n-data-data-locales-sv").then(n.t.bind(null,"GLFY",7))},th:function(){return n.e("i18n-data-data-locales-th").then(n.t.bind(null,"Op8p",7))},tl:function(){return n.e("i18n-data-data-locales-tl").then(n.t.bind(null,"kkTp",7))},vi:function(){return n.e("i18n-data-data-locales-vi").then(n.t.bind(null,"56Rd",7))},"zh-cn":function(){return n.e("i18n-data-data-locales-zh-cn").then(n.t.bind(null,"lCOz",7))},"zh-hk":function(){return n.e("i18n-data-data-locales-zh-hk").then(n.t.bind(null,"wr5p",7))},"zh-tw":function(){return n.e("i18n-data-data-locales-zh-tw").then(n.t.bind(null,"vjih",7))}}},i=n("1pGl");t.a=e=>e.register(r,{getLocales:i.b})},"7Cnu":function(e,t,n){"use strict";n.r(t);n.d(t,"setThreadsSuccess",(function(){return a}));var r=n("dLEV"),i=n("cXEp");const a=Object(r.createAction)(i.a)},"7KOH":function(e,t,n){"use strict";n.r(t);n.d(t,"networkOnline",(function(){return a}));var r=n("dLEV"),i=n("xZ3y");const a=Object(r.createAction)(i.NETWORK_ONLINE)},"7Qhs":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="CRM_OBJECT_LIFECYCLE_UPDATE"},"7cfw":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("n6ol"),i=n("CITH");const a=()=>{Object(i.a)(r.w)}},"7eQh":function(e,t,n){"use strict";var r=n("uOZ5"),i=n("knjC"),a=n("yslo"),s=n("QYOI"),o=n("JGJA"),c=n("/kBF");class u extends(Object(s.Record)({"@type":r.b,fallback:null},"OwnerChatHeadingConfig")){constructor(e){const t=Object(s.fromJS)(e),n=Object(o.a)("fallback",t);super({fallback:Object(c.a)(n)})}}var l=u;n.d(t,"a",(function(){return d}));function d(e,t){switch(e){case r.c:return new a.a(t);case r.b:return new l(t);case r.a:default:return new i.a(t)}}},"7ede":function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="MINUTES",i="HOURS"},"7jiL":function(e,t,n){"use strict";var r=n("QYOI"),i=n("kdZJ"),a=n("9Mwj"),s=n("BvOu");class o extends(Object(r.Record)({"@type":i.a,id:null,timestamp:null,echo:!1,sender:Object(r.Map)(),messageDeletedStatus:a.a,clientType:null},"ReadThreadMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(s.generateUuid)()})).filterNot(e=>void 0===e))}}t.a=o},"7pHJ":function(e,t,n){"use strict";n.d(t,"c",(function(){return i}));n.d(t,"d",(function(){return a}));n.d(t,"b",(function(){return s}));n.d(t,"a",(function(){return o}));var r=n("I5zW");const i=Object(r.createMetricsFactory)("page-load",{library:"react-rhumb"}),a=Object(r.createMetricsFactory)("redux-store-metrics",{library:"react-rhumb"}),s=Object(r.createMetricsFactory)("application-memory",{library:"react-rhumb"}),o=Object(r.createMetricsFactory)("global-error",{library:"react-rhumb"})},"7vm7":function(e,t,n){"use strict";n.r(t);n.d(t,"getAvailabilityOfficeHoursWillReturnMessage",(function(){return c}));var r=n("dLEV"),i=n("zZzs"),a=n("2B1w"),s=n("yxYB"),o=n("G53s");const c=Object(r.createSelector)([s.getWidgetAvailabilityOptions,o.b],(e,t)=>{const n=Object(i.getOfficeHoursStartTime)(e);return n?Object(a.formatOfficeHoursWillReturnTimestamp)(n,t):""})},"8+iK":function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="SIMPLE",i="EMAIL"},"8ASW":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=n("npjq").a},"8CDR":function(e,t,n){"use strict";var r=n("LZPL"),i=n.n(r);const a={hubapi:["api","email","etsu","feedback","internal","onboarding","nav","private","users","zorse"],hubspot:["app","developers","cms2","cta","forms","library","login","marketplace","onboarding","payment","services","signup","sites","spitfire","uploads"],hubteam:["graph","mesos","rodan2","tools","bootstrap","test"]},s=["sidekick","sidekickapp","hs-sites","mktg-grader","inbound","signals","private-hubteam","app-api"],o={hubapi:"api",hubspot:"app",hubteam:"tools"},c={sidekick:{true:{true:"local.getsidekick.com",false:"api.getsidekick.com"},false:{true:"local.getsidekickqa.com",false:"api.getsidekickqa.com"}},sidekickapp:{true:{true:"local.getsidekick.com",false:"app.getsidekick.com"},false:{true:"local.getsidekickqa.com",false:"app.getsidekickqa.com"}},"hs-sites":{true:{true:"local.hs-sites.com",false:"hs-sites.com"},false:{true:"local.qa.hs-sites.com",false:"qa.hs-sites.com"}},"mktg-grader":{true:{true:"local.grader.com",false:"marketing.grader.com"},false:{true:"local.graderqa.com",false:"marketing.graderqa.com"}},inbound:{true:{true:"local.inbound.org",false:"inbound.org"},false:{true:"local.dev.inbound.org",false:"dev.inbound.org"}},signals:{true:{true:"local.getsignals.com",false:"api.getsignals.com"},false:{true:"local.getsignalsqa.com",false:"api.getsignalsqa.com"}},"private-hubteam":{true:{true:"local.hubteam.com",false:"private.hubteam.com"},false:{true:"local.hubteamqa.com",false:"private.hubteamqa.com"}},"app-api":{true:{true:"local.hubspot.com",false:"api.hubspot.com"},false:{true:"local.hubspotqa.com",false:"api.hubspotqa.com"}}};class u{constructor(){this.lbDomainMap=u._buildLbDomainMap();this.domainLbMap=u._buildDomainLbMap(this.lbDomainMap)}static _buildLbDomainMap(){const e={};Object.keys(a).forEach(t=>a[t].forEach(n=>e[n]={true:{true:`local.${t}.com`,false:`${n}.${t}.com`},false:{true:`local.${t}qa.com`,false:`${n}.${t}qa.com`}}));s.forEach(t=>e[t]=c[t]);return e}static _buildDomainLbMap(e){const t=[!0,!1],n={};Object.keys(e).forEach(r=>t.forEach(i=>t.forEach(t=>{let a=e[r][i][t],s=n[a];if(s){s.lbs[r]=!0;s.multiple=!0}else n[a]={defaultLb:r,lbs:{[r]:!0},production:i,local:t}})));Object.keys(o).forEach(e=>{let t=o[e];n[`local.${e}qa.com`].defaultLb=t;n[`local.${e}.com`].defaultLb=t});return n}getDomain(e,t=!1,n=!1){let r=this.lbDomainMap[e];if(r)return r[t][n]}getLbInfo(e,t){let n=this.domainLbMap[e];if(!n)return;let r=n.defaultLb;t&&n.multiple&&n.lbs[t]&&(r=t);return{lb:r,production:n.production,local:n.local}}getLb(e,t){let n=this.getLbInfo(e,t);if(n)return n.lb}getProduction(e){let t=this.getLbInfo(e);if(t)return t.production}getLocal(e){let t=this.getLbInfo(e);if(t)return t.local}}const l=new u;l.STANDARD_LBS=a;l.NONSTANDARD_LBS=s;var d=l;const p=e=>"boolean"==typeof e||null!=e&&e.valueOf&&"boolean"==typeof e.valueOf();class f{constructor(e,t,n){this._paramIndex={};this._lonelyQMark=!1;this.encodedParamTuples=[];if(null===e||"object"!=typeof e||e instanceof f)(n=n||{}).url=e;else if(e===window.location){(n=n||{}).protocol=e.protocol.slice(0,-1);n.hostname=e.hostname;n.pathname=e.pathname;n.search=e.search;n.hash=e.hash}else n=e;if(n.url instanceof f){this._cloneFrom(n.url);this.upsertParams(n.params||{})}else{n.protocol=n.protocol||window.location.protocol.slice(0,-1);this._set(n,t)}this.update(t)}_set(e={},t={}){let n=e.url||"",r=n.indexOf("#");t.hash||(this.hash=r>=0?n.substr(r):e.hash||"");n=r>=0?n.substr(0,r):n;let i=n.indexOf("?");if(!t.params&&!t.search){this.search=i>=0?n.substr(i):e.search||"";this.upsertParams(e.params||{})}n=i>=0?n.substr(0,i):n;i=n.indexOf("//");i>0&&":"!=n[i-1]&&(i=-1);t.protocol||(this.protocol=i>0?n.substr(0,i-1):e.protocol);let a=i<0?0:i+2,s=n.indexOf("/",a);void 0===t.pathname&&(this.pathname=(s<0?"":n.substr(s))||e.pathname||"");if(void 0===t.hostname){let t=(s<0?n.substr(a):n.substr(a,s-a))||e.hostname;if(t){this._lb=e.lb;this.hostname=t}else e.lb&&this.setLb(e.lb,e)}}update(e={}){e.protocol&&(this.protocol=e.protocol);void 0!==e.hostname&&(this.hostname=e.hostname);void 0!==e.pathname&&(this.pathname=e.pathname);void 0!==e.hash&&(this.hash=e.hash);if(e.lb||void 0!==e.production||void 0!==e.local){let t={production:void 0!==e.production?e.production:this.production,local:void 0!==e.local?e.local:this.local};this.setLb(e.lb||this._lb,t)}if(e.search)this.search=e.search;else if(e.params)this.params=e.params;else if(e.paramTuples)this.paramTuples=e.paramTuples;else if(e.encodedParamTuples){this._lonelyQMark=!1;this.encodedParamTuples=e.encodedParamTuples.slice(0);this._rebuildParamInfo()}}setLb(e,t={}){let n=this.segments[0],r=this._getProduction(t.production,n),i=this._getLocal(t.local,n);this._hostname=d.getDomain(e,r,i);this._lb=this._hostname&&e;this._production=this._hostname&&r;this._local=this._hostname&&i}get href(){return this.protocol+"://"+(this.hostname||"")+this.pathname+this.search+this.hash}set href(e){this._set({url:e})}get search(){let e=this.encodedParamTuples.map(e=>e.join("=")).join("&");return e.length>0||this._lonelyQMark?"?"+e:e}set search(e){this.encodedParamTuples=[];this._lonelyQMark=!1;e.length>1?e.substr(1).split("&").forEach(e=>this.encodedParamTuples.push(e.split("="))):"?"===e[0]&&(this._lonelyQMark=!0);this._rebuildParamInfo()}normalize(){this._lonelyQMark=!1}set hostname(e){this._hostname=e;let t=d.getLbInfo(e,this._lb);this._lb=t&&t.lb;this._production=t&&t.production;this._local=t&&t.local}get hostname(){return this._hostname}get lb(){return this._lb}set lb(e){this.setLb(e)}get production(){return this._production}set production(e){if(this._lb){this._production=!!e;this._hostname=d.getDomain(this._lb,this._production,this._local)}}get local(){return this._local}set local(e){if(this._lb){this._local=!!e;this._hostname=d.getDomain(this._lb,this._production,this._local)}}get env(){return void 0===this._production?"unknown":this._production?"prod":"qa"}get lbInfo(){return{lb:this._lb,production:this._production,local:this._local}}get segments(){let e=this.pathname.replace(/(^\/)|\/$/g,"");return(e?e.split("/"):[]).map(e=>decodeURIComponent(e))}_rebuildParamInfo(){this._paramIndex={};this.validParams=!0;this.encodedParamTuples.forEach((e,t)=>{this.validParams=this.validParams&&2==e.length;let n=decodeURIComponent(e[0]);this._paramIndex[n]?this._paramIndex[n].push(t):this._paramIndex[n]=[t]})}get paramTuples(){return this.encodedParamTuples.map(e=>[decodeURIComponent(e[0]),decodeURIComponent(e[1])])}set paramTuples(e){this.encodedParamTuples=[];this._lonelyQMark=!1;e.forEach(e=>this.encodedParamTuples.push([e[0],e[1]]));this._rebuildParamInfo()}get params(){const e={};Object.keys(this._paramIndex).forEach(t=>e[t]=this.paramValue(t));return e}set params(e){this.encodedParamTuples=[];this._lonelyQMark=!1;Object.keys(e).forEach(t=>this.encodedParamTuples.push([t,encodeURIComponent(e[t])]));this._rebuildParamInfo()}paramValues(e){return(this._paramIndex[e]||[]).map(e=>decodeURIComponent(this.encodedParamTuples[e][1]))}paramValue(e){let t=this.paramValues(e);return t[t.length-1]}encodedParamValues(e){return(this._paramIndex[decodeURIComponent(e)]||[]).map(e=>this.encodedParamTuples[e][1])}encodedParamValue(e){let t=this.encodedParamValues(e);return t[t.length-1]}insertParamAt(e,t,n){this.insertEncodedParamAt(e,encodeURIComponent(t),encodeURIComponent(n))}insertEncodedParamAt(e,t,n){this.encodedParamTuples.splice(e,0,[t,n]);this._rebuildParamInfo()}pushParam(e,t){this.insertParamAt(this.encodedParamTuples.length,e,t)}pushEncodedParam(e,t){this.insertEncodedParamAt(this.encodedParamTuples.length,e,t)}upsertParam(e,t){let n=this._paramIndex[e]||[];n.length>0?n.forEach(n=>this.updateParamAt(n,e,t)):this.pushParam(e,t)}upsertParams(e){Object.keys(e).forEach(t=>this.upsertParam(t,e[t]))}updateParamAt(e,t,n){this.updateEncodedParamAt(e,encodeURIComponent(t),encodeURIComponent(n))}updateEncodedParamAt(e,t,n){this.encodedParamTuples.splice(e,1,[t,n]);this._rebuildParamInfo()}removeParam(e){let t=this._paramIndex[e]||[];if(t.length>0){t.reverse().forEach(e=>this.encodedParamTuples.splice(e,1));this._rebuildParamInfo()}}removeParamAt(e){this.encodedParamTuples.splice(e,1);this._rebuildParamInfo()}clearParams(){this.encodedParamTuples=[];this.validParams=!0;this._paramIndex={};this._lonelyQMark=!1}get valid(){return!(!this.protocol||!this._hostname||!this.pathname&&""!==this.pathname||!this.validParams)}get hostplus(){return(this.hostname||"")+this.pathname+this.search+this.hash}get pathplus(){return this.pathname+this.search+this.hash}clone(){return new f(this)}_cloneFrom(e){this.protocol=e.protocol;this._hostname=e._hostname;this._lb=e._lb;this._production=e._production;this._local=e._local;this.pathname=e.pathname;this.hash=e.hash;this.encodedParamTuples=e.encodedParamTuples.slice(0);this.validParams=e.validParams;this._paramIndex={};Object.keys(e._paramIndex).forEach(t=>{this._paramIndex[t]=e._paramIndex[t].slice(0)});this._lonelyQMark=e._lonelyQMark;return this}_getProduction(e,t){return p(e)?e:p(this._production)?this._production:"production"==i.a.get(t)}_getLocal(e,t){return p(e)?e:p(this._local)?this._local:!!t&&("local"==i.a.get(t)||f.localService(t))}static localService(e){try{if(window.localStorage){let t=e.toUpperCase()+"_LOCAL";return"true"==window.localStorage.getItem(t)}}catch(e){}return!1}}f.loaded=new f(window.location);t.a=f},"8Es2":function(e,t){var n=Object.prototype.toString;function r(e){return n.call(e)}e.exports=r},"8HpB":function(e,t,n){"use strict";n.r(t);var r=n("Sj+C"),i=n("mEYk"),a=n.n(i),s=n("E4Gm");const o=()=>n.e("conversations-internal-pub-sub-client-builder").then(n.bind(null,"ZH0a"));var c=n("pjpP"),u=n("FBcP"),l=n("7KOH"),d=n("CPMP"),p=n("/Jc5"),f=n("fT+s"),h=n("bco+");const b=(e,t)=>e.filter(e=>!t.includes(e));var g=n("PpSk"),m=n("9ZbV"),O=n("9XKB");n.d(t,"startPubSub",(function(){return v}));const v=({newThreadCreated:e}={})=>(t,n)=>{t(Object(c.a)());const i={skipSubscribeReauth:!1,authCallback:(e,t)=>{const r=Object(u.getSessionId)(n()),i=Object(O.getHubspotUtk)();Object(s.getToken)({sessionId:r,hubspotUtk:i}).then(e=>{try{const t=Object(h.getThreads)(n()).map(g.getChannelName).valueSeq().toJS(),i=JSON.parse(e.capability),s=Object.keys(i),o=b(t,s);o.length&&a.a.captureMessage("capability mismatch",{level:"error",extra:{channels:t,grantedChannels:s,difference:o,sessionId:r}})}catch(e){}t(null,e)},e=>t(e)).catch(e=>{a.a.captureException(e)})}},v={onConnect({connectionWasSuspended:n,reconnected:r}){t(Object(l.networkOnline)());e&&t(Object(m.onThreadCreatedAndNetworkOnline)());(n||r)&&t(Object(p.fetchCurrentThreadHistory)());n&&t(Object(f.fetchVisitorThreads)())},onDisconnect(){t(Object(d.networkOffline)())},onFailure(){t(Object(d.networkOffline)())}};t(Object(r.initializePubSub)({clientOptions:i,lifecycleHooks:v,resolveBuilder:o}))}},"8Ma8":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n.d(t,"b",(function(){return c}));n.d(t,"c",(function(){return u}));var r=n("Ktcs"),i=n("0Zm1"),a=n("QgEn");const s={shouldTrapFocus:!1,setShouldTrapFocus:e=>{},launcherRef:null,setLauncherRef:()=>{},disableAutoFocus:!1,disableWidgetClose:!1,disableWidgetDialog:!1},o=Object(r.createContext)(s),c=({children:e,disableFocusTrap:t=!1,disableAutoFocus:n=!1,disableWidgetClose:c=!1,disableWidgetDialog:u=!1})=>{const[l,d]=Object(r.useState)(!1),[p,f]=Object(r.useState)(s.launcherRef);return Object(a.jsx)(o.Provider,{value:{launcherRef:p,setLauncherRef:f,shouldTrapFocus:l,setShouldTrapFocus:t?s.setShouldTrapFocus:d,disableAutoFocus:n,disableWidgetClose:c,disableWidgetDialog:u},children:Object(a.jsx)(i.a,{style:{height:"100%"},children:e})})};c.displayName="AccessibilityContextProvider";const u=()=>Object(r.useContext)(o)},"8Nq+":function(e,t,n){"use strict";var r=n("Lm/k"),i=n("VfuR"),a=n.n(i),s=n("9f1P"),o=n.n(s);const c="#f2547d",u=e=>c;var l=n("QgEn");const d=["badgeDescription","positioning","badgeLabel","children","showBadge"],p=({showBadge:e,positioning:t})=>e&&"on-circle"!==t&&Object(s.css)(["margin-right:14px;"]),f=o.a.div.withConfig({displayName:"VizExNotificationBadge__Wrapper",componentId:"sc-1exyck9-0"})(["position:relative;display:inline-flex;align-items:baseline;",";line-height:1;"],p),h=({positioning:e})=>"on-circle"===e?Object(s.css)(["left:75%;top:5%;"]):Object(s.css)(["right:-12px;top:-4px;"]),b=o.a.span.withConfig({displayName:"VizExNotificationBadge__CountBadge",componentId:"sc-1exyck9-1"})(["background-color:",";border:1px solid white;box-shadow:0 0 0 1px white;display:inline;pointer-events:none;text-align:center;font-size:11px;vertical-align:baseline;border-radius:500px;color:white;padding:1px 4px;position:absolute;",";"],({theme:e})=>u(e),h),g=e=>{let{badgeDescription:t="notifications",positioning:n="default",badgeLabel:i,children:a,showBadge:s}=e,o=Object(r.a)(e,d);return Object(l.jsxs)(f,Object.assign({},o,{showBadge:s,positioning:n,children:[a,s&&Object(l.jsx)(b,{"aria-label":t,positioning:n,children:i})]}))};g.displayName="VizExNotificationBadge";g.propTypes={badgeDescription:a.a.string,badgeLabel:a.a.node,children:a.a.node,positioning:a.a.oneOf(["default","on-circle"]),showBadge:a.a.bool};t.a=g},"8R/H":function(e,t,n){"use strict";var r=n("MD34"),i=n("VVfI"),a=n("yivD"),s=n("DFoL");function o(e="",t){const n=Object(a.a)("deprecated-function-");return(...r)=>{Object(s.b)({message:"Deprecation Warning: "+e,key:n});return t(...r)}}n.d(t,"a",(function(){return u}));const c=(e,t)=>t||Object(i.a)(e),u=o("`createDeprecatedAsyncAction` will be removed soon - Use `createAsyncAction` instead",({requestFn:e,actionName:t,actionTypes:n=null,toRecordFn:i,successMetaActionCreator:a=(()=>({})),failureMetaActionCreator:s=(()=>({}))})=>{if(!t&&!n||t&&n)throw new Error("Either an actionName or actionTypes are required to create an async action");if(!e||"function"!=typeof e)throw new Error(`Invalid requestFn "${e}"`);if(!i||"function"!=typeof i)throw new Error(`Invalid toRecordFn "${i}"`);const{STARTED:o,SUCCEEDED:u,FAILED:l}=c(t,n);return t=>n=>{const c="object"==typeof t&&!Array.isArray(t);if(t&&!c)throw new Error(`Invalid argument "${t}"`);n({type:o,payload:{requestArgs:t}});const d=e(t).then(e=>{const r={requestArgs:t,data:i(e)};return n({type:u,payload:r,meta:a(r)})},e=>{const r={requestArgs:t,error:e};return n({type:l,payload:r,meta:s(r)})});Object(r.a)(d);return d}})},"8X3F":function(e,t,n){var r=n("BEas"),i=n("9wc3"),a=n("8Es2"),s="[object Null]",o="[object Undefined]",c=r?r.toStringTag:void 0;function u(e){return null==e?void 0===e?o:s:c&&c in Object(e)?i(e):a(e)}e.exports=u},"8Xfw":function(e,t,n){"use strict";n.r(t);var r=n("QYOI"),i=n("6xui"),a=n("ubOH"),s=n("BvOu"),o=n("c1C1");const c="@type",u="MENTIONS",l="FILES";var d=n("zbS+"),p=n("6O34");const f=(e={})=>{const t=e||{},n=Object(a.a)(t.status),{attachments:f=[],senders:h=[]}=t,b=Object(i.a)(Object(r.List)(),(e,t)=>{const n=t[c];return n===u||n===l?e.push(Object(r.fromJS)(t)):e},f),g=t.id||Object(s.generateUuid)(),m=t.timestamp||Object(o.generateUniqueClientTimestamp)("buildCommentMessage-timestamp"),O=Object(p.a)(h);return Object(d.a)(Object(r.fromJS)(t)).merge({senders:O,timestamp:m,attachments:b,status:n,id:g})};var h=n("WebA"),b=n("C3IS"),g=n("12C0"),m=n("0IK8");const O=e=>Object(m.getTopLevelType)(e)===g.a;var v=n("NIjC"),j=n("0934"),y=n("LrxL"),E=n("tOKt"),T=n("V+nC"),I=n("JGJA");const w="MESSAGES_UPDATED",S=e=>Object(I.a)("@type",e)===w;var A=n("MJM1"),C=n("SGjM");const x="status",R="messageDeletedStatus",k=(e={})=>{const t=Object(r.fromJS)(Object(A.a)(["updates"],e));let n=Object(r.Map)();t&&t.size&&Object(C.a)((e,t)=>{e.keySeq().forEach(r=>{switch(r){case x:n=n.setIn([t,x],Object(a.a)(Object(A.a)([x],e)));break;case R:n=n.setIn([t,R],Object(A.a)([R],e))}})},t);return n};class P extends(Object(r.Record)({"@type":w,auditParams:Object(r.Map)(),updates:Object(r.Map)()},"MessagesUpdates")){constructor(e={}){super({updates:k(e),auditParams:Object(r.Map)(e.audit)})}}var D=n("+TdC"),_=n("7jiL"),M=n("NT8A"),N=n("LPbX"),L=n("9Mwj");class B extends(Object(r.Record)({"@type":N.a,id:null,timestamp:null,sender:Object(r.Map)(),messageDeletedStatus:L.a,clientType:null,newVid:null,newMessagesUtk:{empty:!0,present:!1},threadId:null},"ContactAssociationMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e)).filterNot(e=>void 0===e))}}var F=B,H=n("Cblj"),U=n("i6ES"),V=n("30KC");const G=e=>Object(m.getTopLevelType)(e)===V.a;var W=n("kdZJ");const z=e=>Object(m.getTopLevelType)(e)===W.a;var q=n("KZZz");const K=e=>Object(m.getTopLevelType)(e)===q.a;var Y=n("usEm"),J=n("ul3k"),Q=n("Euo8"),Z=n("xrOf");const X=e=>Object(m.getTopLevelType)(e)===Z.a;var $=n("GqTt"),ee=n("JxGV"),te=n("UJtG"),ne=n("Iqwl"),re=n("/fsP");const ie="AWAY_MODE_CHANGE";class ae extends(Object(r.Record)({"@type":ie,agentId:null,awayMode:null,id:"",timestamp:null,updatedByAgentId:null},"AgentAvailabilityMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(s.generateUuid)(),timestamp:e.timestamp||Object(o.generateUniqueClientTimestamp)("buildTypingMessage-timestamp")})).filterNot(e=>void 0===e))}}var se=ae;const oe=e=>Object(m.getTopLevelType)(e)===ie;var ce=n("MfaD"),ue=n("kTjR"),le=n("yuy6"),de=n("eF9A"),pe=n("TePN"),fe=n("K7Yy");const he=e=>Object(m.getTopLevelType)(e)===fe.a;var be=n("asw7"),ge=n("pHO9"),me=n("Y4h2"),Oe=n("Q7Xa");const ve=(e={})=>{const t=Object(p.a)(e.senders),n=Object(be.a)(e.recipients);return Object(ge.a)(Object(me.c)(n),Object(me.d)(t))(new Oe.a(Object(r.fromJS)(e)))};var je=n("Tt13");const ye=e=>Object(m.getTopLevelType)(e)===je.a;var Ee=n("xw4j");const Te=e=>Object(m.getTopLevelType)(e)===Ee.a;var Ie=n("wO6X"),we=n("Blk5");const Se=e=>Object(m.getTopLevelType)(e)===we.a;var Ae=n("fwMr"),Ce=n("1pX1"),xe=n("IcZZ"),Re=n("fPyn"),ke=n("JoGU");const Pe=(e={})=>{let t=Object.assign({},(Object(Ce.a)(e),e));const n=Object(xe.a)(t.attachments),i=Object(be.a)(t.recipients),a=t.sender?Object(r.Map)(t.sender):Object(r.Map)(),s=Object(p.a)(t.senders),o=Object(Re.a)(t.status);return new ke.a(Object.assign({},t,{attachments:n,recipients:i,sender:a,senders:s,status:o}))};var De=n("t+8h");const _e=e=>Object(m.getTopLevelType)(e)===De.a;var Me=n("kNma"),Ne=n("MWj0"),Le=n("pxL+");const Be=(e={})=>{const t=Object(Re.a)(Object(A.a)(Ne.v,e)),n=Object(xe.a)(e.attachments),i=Object(be.a)(e.recipients),a=Object(p.a)(e.senders),c=e.direction||"",u=Object(m.getId)(e)||Object(s.generateUuid)(),l=Object(m.getTimestamp)(e)||Object(o.generateUniqueClientTimestamp)("buildWorkflowGeneratedUserMessage-timestamp");return Object(ge.a)(Object(Le.b)(u),Object(Le.e)(t),Object(Le.a)(n),Object(Le.f)(l),Object(me.c)(i),Object(me.d)(a),Object(me.b)(c))(Object(Me.a)(Object(r.fromJS)(e)))};var Fe=n("Mclz");const He=e=>Object(m.getTopLevelType)(e)===Fe.a;var Ue=Object(r.Record)({"@type":Fe.a,clientType:null,id:null,messageDeletedStatus:L.a,richText:"",sender:Object(r.Map)(),status:Object(a.a)(),text:"",timestamp:null,threadId:null,channelInstanceId:null,genericChannelId:null,recipients:Object(r.List)(),senders:Object(r.List)(),direction:"",channelId:null,contentId:0,objectId:0,objectTypeId:""},"BatchSmsGeneratedUserMessage"),Ve=n("P0El");const Ge=e=>Object(m.getTopLevelType)(e)===Ve.a;var We=n("TlnZ"),ze=n("0oBL"),qe=n("ikhY");const Ke=e=>Object(I.a)("@type",e)===qe.a;var Ye=n("jbWx");const Je="completedMessageId",Qe="partialOrdinal",Ze="completedMessageTimestamp",Xe="text",$e="id",et=Object(I.a)("genericChannelId"),tt=Object(I.a)(Je),nt=Object(I.a)(Qe),rt=Object(I.a)(Ze);Object(I.a)(Xe),Object(I.a)($e);var it=n("bYG+");const at=Object(it.a)(Je),st=Object(it.a)(Qe),ot=Object(it.a)(Ze),ct=(e={})=>{const t=Object(Re.a)(Object(A.a)(Ne.v,e)),n=Object(be.a)(e.recipients),i=Object(p.a)(e.senders),a=e.direction||"",c=Object(m.getId)(e)||Object(s.generateUuid)(),u=et(e)||null,l=tt(e),d=Object(m.getTimestamp)(e)||Object(o.generateUniqueClientTimestamp)("buildPartialMessage-timestamp"),f=rt(e)||Object(m.getTimestamp)(e)||Object(o.generateUniqueClientTimestamp)("buildPartialMessage-timestamp"),h=nt(e);return Object(ge.a)(Object(Le.b)(c),at(l),st(h),Object(Le.e)(t),Object(Le.f)(d),ot(f),Object(me.c)(n),Object(me.d)(i),Object(me.b)(a),Object(me.a)(u))(new Ye.a(Object(r.fromJS)(e)))};n.d(t,"serialize",(function(){return lt}));n.d(t,"deserialize",(function(){return dt}));function ut(e){return e&&e.length?e.map(e=>Object.assign({},e,{deliveryIdentifier:e.singleDeliveryIdentifier})):e}function lt(e){const t=e.toJS();return Object(ze.a)("recipients",ut,t)}function dt({json:e}){return S(e)?new P(e):K(e)?f(e):Object(b.b)(e)?Object(h.buildCommonMessage)(e):Ke(e)?ct(e):Object(T.a)(e)?Object(E.buildInitialMessage)(e):Object(j.a)(e)?new y.a(e):Ge(e)?new We.a(e):O(e)?new v.a(e):Object(H.isTypingMessage)(e)?new D.a(e):Object(U.isContactAssociationMessage)(e)?new F(e):Object(J.isEmailCaptureResponseMessage)(e)?new re.a(e):Object(Y.isEmailCapturePromptMessage)(e)?new ne.a(e):Object(Q.isOfficeHoursMessage)(e)?new ee.a(e):Object(te.isTypicalResponseTimeMessage)(e)?new ce.a(e):X(e)?new ue.a(e):Object($.a)(e)?new le.a(e):z(e)?new _.a(e):G(e)?new M.a(e):oe(e)?new se(e):Object(de.isAssignmentUpdateMessage)(e)?new pe.a(e):he(e)?ve(e):ye(e)?Pe(e):Te(e)?new Ie.a(e):Se(e)?new Ae.a(e):_e(e)?Be(e):He(e)?new Ue(e):e}},"8cLO":function(e,t,n){"use strict";n.r(t);n.d(t,"gdprExplicitConsentRequired",(function(){return s}));var r=n("DdHT"),i=n("ZqFO"),a=n("VvTX");const s=Object(r.a)(i.f,a.getGdprExplicitConsentRequired)},"8dR1":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("dLEV"),i=n("JGJA"),a=n("49A5");const s=Object(r.createSelector)(a.getLatestWidgetData,Object(i.a)("message"))},"8f+m":function(e,t,n){"use strict";var r=n("QYOI"),i=n("JGJA"),a=n("MYjy");function s(e){return e&&"string"==typeof e.type&&"string"==typeof e.value}function o(e){const t=Object(i.a)("deliveryIdentifier",e);return Boolean(t&&!s(t)&&"length"in t&&!r.Map.isMap(t))}function c(e){return{singleDeliveryIdentifier:Object(a.a)(Object(i.a)("singleDeliveryIdentifier",e))}}function u(e){return{singleDeliveryIdentifier:Object(i.a)("singleDeliveryIdentifier",e)?Object(a.a)(Object(i.a)("singleDeliveryIdentifier",e)):Object(a.a)(Object(i.a)("deliveryIdentifier",e))}}function l(e){const t=Object(i.a)("actorId",e),n=Object(i.a)("recipientField",e),{singleDeliveryIdentifier:r}=o(e)?c(e):u(e);return{actorId:t,recipientField:n,singleDeliveryIdentifier:r}}const d=Object(r.Record)({actorId:null,singleDeliveryIdentifier:Object(a.a)(),recipientField:null},"Recipient");t.a=function(e){const t=l(e);return d(t)}},"8ghC":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("GqTt"),i=n("M1Uo"),a=n("UxsU");const s=e=>Object(r.a)(e)&&Object(i.a)(e)===a.a.STARTED},"8i16":function(e,t,n){var r=n("mrEz"),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},"97n4":function(e,t,n){"use strict";var r=n("MJM1");const i=["displayOnScrollPercentage"],a=["displayOnTimeDelay"],s=["displayOnExitIntent"];n.d(t,"b",(function(){return o}));n.d(t,"c",(function(){return c}));n.d(t,"a",(function(){return u}));const o=Object(r.a)(i),c=Object(r.a)(a),u=Object(r.a)(s)},"9F2+":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("MJM1"),i=n("MWj0");const a=Object(r.a)(i.a)},"9HFe":function(e,t,n){"use strict";var r=n("Ut5p"),i=n("JGJA"),a=n("uB3n"),s=n("MZef"),o=n("QYOI"),c=n("qjq5"),u=n("DrqF"),l=n("dAms"),d=n("JoAZ"),p=n("neHy"),f=n("OPip"),h=n("Sbt9"),b=n("x1JE");const g=b.getEntry;var m=n("Oo4n");const O=Object(c.a)((e,t,n)=>{Object(d.a)(n);Object(p.a)(t);Object(u.a)(o.Iterable.isIterable(e),"Expected ids to be iterable not a `%s`",typeof e);const r=(e,r)=>{Object(f.a)(r,n);return e.set(Object(h.a)(r,n),t(r,g(r,n)))};return Object(m.a)(n.updateIn(l.a,t=>e.reduce(r,t)))});var v=n("Pda3"),j=n("eJ3n"),y=n("XkPn"),E=n("y+PV"),T=n("stzZ"),I=n("4cwC"),w=n("/u6M"),S=n("+tWo"),A=n("OIId");const C=Object(a.a)({notSetValue:Object(s.a)({data:null})}),x={[w.a.STARTED](e,t){const{requestArgs:{fileIds:n}}=t.payload,r=Object(b.getEntries)(e),i=n.filter(e=>{const t=r.get(""+e);return!Object(v.isSucceeded)(t)});return O(i,(e,t)=>Object(E.a)(t),e)},[w.a.SUCCEEDED](e,t){const{requestArgs:{fileIds:n},data:r}=t.payload;return O(n,(e,t)=>Object(T.a)(()=>Object(i.a)(e,r),t),e)},[A.b](e,t){const{fileId:n,uploadedFile:r}=t.payload,i=new y.a({fileMetadata:r,fileId:n});return Object(j.a)(n,e=>Object(T.a)(()=>i,e),e)},[S.a.SUCCEEDED](e,t){const{data:{files:n}}=t.payload,r=n.keySeq().toList();return O(r,(e,t)=>Object(T.a)(()=>Object(i.a)(e,n),t),e)},[w.a.FAILED](e,t){const{requestArgs:{fileIds:n}}=t.payload;return O(n,(e,t)=>Object(I.a)(t),e)}};t.a=Object(r.c)(x,C)},"9Mwj":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="NOT_DELETED",i="SOFT_DELETED"},"9Utk":function(e,t,n){var r=n("kmmH"),i=n("HTmY"),a=n("0Aa+"),s="Expected a function",o=Math.max,c=Math.min;function u(e,t,n){var u,l,d,p,f,h,b=0,g=!1,m=!1,O=!0;if("function"!=typeof e)throw new TypeError(s);t=a(t)||0;if(r(n)){g=!!n.leading;d=(m="maxWait"in n)?o(a(n.maxWait)||0,t):d;O="trailing"in n?!!n.trailing:O}function v(t){var n=u,r=l;u=l=void 0;b=t;return p=e.apply(r,n)}function j(e){b=e;f=setTimeout(T,t);return g?v(e):p}function y(e){var n=t-(e-h);return m?c(n,d-(e-b)):n}function E(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-b>=d}function T(){var e=i();if(E(e))return I(e);f=setTimeout(T,y(e))}function I(e){f=void 0;if(O&&u)return v(e);u=l=void 0;return p}function w(){void 0!==f&&clearTimeout(f);b=0;u=h=l=f=void 0}function S(){return void 0===f?p:I(i())}function A(){var e=i(),n=E(e);u=arguments;l=this;h=e;if(n){if(void 0===f)return j(h);if(m){f=setTimeout(T,t);return v(h)}}void 0===f&&(f=setTimeout(T,t));return p}A.cancel=w;A.flush=S;return A}e.exports=u},"9XKB":function(e,t,n){"use strict";n.r(t);var r=n("q8Gl"),i=n("Syy6");const a=300,s=({key:e,value:t})=>{const n=Object(r.getWindowLocation)();n.upsertParam(e,t);window.history.replaceState(null,"",n.search)},o=n.n(i)()(({key:e,value:t})=>s({key:e,value:t}),a,{leading:!0,trailing:!1});n.d(t,"getHubspotUtk",(function(){return c}));n.d(t,"setHubspotUtk",(function(){return u}));const c=()=>Object(r.getWindowLocation)().paramValue("hubspotUtk"),u=e=>{c()!==e&&o({key:"hubspotUtk",value:e})}},"9ZbV":function(e,t,n){"use strict";n.r(t);n.d(t,"onThreadCreatedAndNetworkOnline",(function(){return a}));var r=n("dLEV"),i=n("xZ3y");const a=Object(r.createAction)(i.THREAD_CREATED_AND_NETWORK_ONLINE)},"9f1P":function(e,t,n){e.exports=n.dlbpr(1,76)},"9i6G":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return s}));var r=n("QYOI");const i="CHANNEL_CHANGE",a=Object(r.Record)({"@type":i,oldChannel:Object(r.Map)(),newChannel:Object(r.Map)(),id:null,timestamp:null},"ChannelChange");class s extends a{constructor(e){super(Object.assign({},e,{oldChannel:Object(r.Map)(e.oldChannel),newChannel:Object(r.Map)(e.newChannel),"@type":i}))}}},"9j/6":function(e,t,n){"use strict";const r={chatConfig:null,client:null,connectionInProgress:!1,forceClientOffline:!1,isAdmin:!0,isInForeground:!0,isPubNubClientConnected:!1,serverTimeOffsetInMs:0,timestamps:null,uuid:null},i=e=>Object.assign({},r,e);t.a=i},"9pgs":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("qjq5"),i=n("DdHT"),a=n("VToG"),s=n("46XF");const o=Object(r.a)((e,t)=>Object(i.a)(Object(s.a)(e),Object(s.b)(a.a),s.c)(t))},"9wc3":function(e,t,n){var r=n("BEas"),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,o=r?r.toStringTag:void 0;function c(e){var t=a.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch(e){}var i=s.call(e);r&&(t?e[o]=n:delete e[o]);return i}e.exports=c},"9zF3":function(e,t,n){"use strict";n.r(t);n.d(t,"calculateUnseenThreadsCount",(function(){return o}));var r=n("dLEV"),i=n("PpSk"),a=n("k09d"),s=n("CM4h");const o=Object(r.createSelector)([a.a,s.a],(e,t)=>e?t+(Object(i.getUnseenCount)(e)?1:0):t)},"A+8x":function(e,t,n){"use strict";var r=n("dLEV"),i=n("49A5"),a=n("V9Gp"),s=n("2BFa"),o=n("JGJA");const c=Object(o.a)("cookieBannerOnExitVisible");var u=n("GTwN");n.d(t,"a",(function(){return l}));const l=Object(r.createSelector)([i.getLatestWidgetData,u.getHasMessagesCookieBeenSaved,a.getAPIEnableWidgetCookieBanner,c],(e,t,n,r)=>{const i=Object(s.gdprCookieConsentOnWidgetLoadEnabled)(e);return Boolean(n||i||r)&&!t})},A1pw:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("dLEV"),i=n("xZ3y");const a=Object(r.createAction)(i.UPDATE_MESSAGE_IN_CONVERSATION,({updated:e,channel:t,message:n,threadId:r})=>({payload:{updated:e,channel:t,message:n,threadId:r}}))},"A5f/":function(e,t,n){"use strict";var r=n("QYOI"),i=n("nguO");const a=Object(r.Record)({[i.c]:i.b,threadId:null,channel:null,channelName:"",genericChannelId:null,message:null,allowRetry:!0},"FailedToPublish");t.a=a},AEyM:function(e,t,n){"use strict";n.r(t);n.d(t,"sendVisitorEmailAddressRequested",(function(){return f}));n.d(t,"sendVisitorEmailAddressFailed",(function(){return h}));n.d(t,"sendVisitorEmailAddressSucceeded",(function(){return b}));n.d(t,"sendVisitorEmailAddress",(function(){return g}));var r=n("dLEV"),i=n("FBcP"),a=n("xZ3y"),s=n("sIRh"),o=n("z96q"),c=n("3OTY"),u=n("y5/z"),l=n("c2PF"),d=n("9XKB"),p=n("PpSk");const f=Object(r.createAction)(a.SEND_VISITOR_EMAIL_ADDRESS,e=>({payload:{email:e}})),h=Object(r.createAction)(a.SEND_VISITOR_EMAIL_ADDRESS_FAILED,e=>({payload:{error:e}})),b=Object(r.createAction)(a.SEND_VISITOR_EMAIL_ADDRESS_SUCCEEDED,e=>({payload:{email:e}}));function g({consentToCommunicate:e=!1,email:t,threadId:n}){return(r,a)=>{r(f(t));const g=Object(l.getThreadByThreadId)(a(),{threadId:n}),m=Object(p.getChannelName)(g),O=Object(i.getSessionId)(a()),v=Object(d.getHubspotUtk)(),j=()=>{r(b(t));r(Object(s.default)({channel:m,email:t,threadId:n}));e&&r(Object(c.d)(e));r(Object(u.trackInteraction)("widget-interaction",{action:"submit email"}));return{error:null}},y=e=>{r(h(e));return{error:e}};return o.sendVisitorEmailAddress({threadId:n,email:t,sessionId:O,hubspotUtk:v}).then(j,y)}}},AFl3:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("dLEV"),i=n("ncoD");const a=Object(r.createSelector)([i.getAllAgentResponders],e=>e.toList())},AKyR:function(e,t){hns("I18n",{translations:{en:{sanitizedEmail:{imageError:"This image is too large to display.",expandEmailButtonText:"Expand",collapseEmailButtonText:"Collapse",hideEmailRepliesButtonText:"Hide trimmed content",showEmailRepliesButtonText:"View trimmed content"}}}});hns("I18n",{translations:{en:{"conversations-internal-schema":{availability:{awayMessage:{defaultMessageText:"We're away right now, but we'll get back to you as soon as we can."},outsideOfficeHoursMessage:{defaultMessageText:"We're away right now, but we'll get back to you as soon as we can."}}}}}});hns("I18n",{translations:{en:{"conversations-internal-schema":{typicalResponseTime:{standardResponses:{FEW_MINUTES:"We typically reply in a few minutes",FEW_HOURS:"We typically reply in a few hours",WITHIN_DAY:"We typically reply in a day"},customResponses:{MINUTES:{one:"We typically reply in {{ count }} minute",other:"We typically reply in {{ count }} minutes"},HOURS:{one:"We typically reply in {{ count }} hour",other:"We typically reply in {{ count }} hours"},DAYS:{one:"We typically reply in {{ count }} day",other:"We typically reply in {{ count }} days"}}}}}}});hns("I18n",{translations:{en:{"conversations-internal-schema":{default:{repText:"Hi there! Let me know if you have any questions about the product or pricing.",visitorText:"Can you go into a bit more detail about your pricing structure?",name:"New chatflow ({{timeStamp}})",qualifiedLead:{initialMessage:"Hi there! I'm happy to help you today."},initialMessage:"Got any questions? I'm happy to help.",askForEmailMessage:"Don’t have time to wait for a response? Leave your email and we’ll be in touch as soon as possible.",awayMessage:"I'm away at the moment, but let me know if you have any questions and I'll reply to you soon."}}}}});hns("I18n",{translations:{en:{"conversations-internal-schema":{"we-wont-use-this-key-in-the-product-but-this-file-wont-update-with-new-languages-without-a-key":"okay"}}}});hns("I18n",{translations:{en:{"conversations-message-history":{responder:{automatic:"Automated",bot:"Bot",unknownResponder:"Unknown user",unknownSender:"Unknown sender",unknownVisitor:"Unknown visitor",unknownVisitorAvatar:"Unknown Visitor"}}}}});hns("I18n",{translations:{en:{"conversations-message-history":{status:{closed:"This thread was closed on {{ dateString }}",restore:"Restore this message",publishing:{UNPUBLISHED:"Sending... ",PUBLISH_FAILED:"Not delivered. Click to retry."}}}}}});hns("I18n",{translations:{en:{"conversations-message-history":{noContent:"This message has no content",default:{repText:"Hi there! Let me know if you have any questions about the product or pricing.",visitorText:"Can you go into a bit more detail about your pricing structure?"},friendlyNames:{DEFAULT_UNKNOWN:"Unknown",DEFAULT_AGENT:"Unknown agent",DEFAULT_CUSTOMER:"Unknown visitor",DEFAULT_INTEGRATOR:"Unknown integrator",DEFAULT_AUTOMATED:"Automated",DEFAULT_EXTERNAL:"Unknown external user",DEFAULT_LLM:"AI Chatbot",maybeName:"Maybe: {{name}}"}}}}});hns("I18n",{translations:{en:{"conversations-visitor-experience-components":{stagedAttachment:{uploadProgress:"{{uploadedBytes}} of {{totalBytes}}"},fileSizeLimit:"{{size}} max upload"}}}});hns("I18n",{translations:{en:{"conversations-visitor-experience-components":{"code-splitting":{error:{title:"There was a network connection issue.",message:"Please check your connection and try again.",button:"Try again"}}}}}});hns("I18n",{translations:{en:{"conversations-visitor-experience-components":{emailCapture:{failedToPublish:"Sorry, we couldn't verify your email address."}}}}});hns("I18n",{translations:{en:{"conversations-visitor-experience-components":{visitorWidget:{header:{threadListTitle:"Your Chats"},threadListCard:{YourChats:"Your Chats",oneDayAgo:"One Day ago"}}}}}});hns("I18n",{translations:{en:{helpWidgetComponents:{knowledgeBaseSearch:{header:"Find answers quickly",seeMoreResults:"See more results",searchLabel:"Search knowledge base articles",searchPlaceholder:"Search articles",noResultsForTerm:'No results for "{{ searchTerm }}".
Try another search term.',didntFindResults:"Didn't find what you were looking for?",goToKnowledgeBase:"Go to knowledge base",announceSearchResults:"{{resultsCount}} results available for {{searchTerm}}",announceEmptySearchResults:"No results available for {{searchTerm}}. Try another search term. Didn't find what you are looking for? Navigate to the Go to knowledge base link to search answers."}}}}});hns("I18n",{translations:{en:{"conversations-visitor-experience-components":{"install-code-step":{description:"

Copy the code below and paste it into every page you’d like chat to appear on. When you’re adding the code, make sure it’s placed just before the end of the <body> tag. You can also add it to your site footer.

If you’re a Marketing customer using the HubSpot CMS, you don't need to do anything. Your tracking code is automatically installed on all HubSpot-hosted pages.

",howToLink:"How do I add the code?",copyButton:"Copy",installCodeEmailForm:{title:"Need someone else to install the code?",description:"Email the code snippet to your web developer or admin.",placeholder:"Enter email address",error:"Please enter a valid email address.",send:"Send"}},officeHours:{defaultMessageText:"We'll return tomorrow at 9:00 AM",sameDay:"We'll return today at {{time}}",nextDay:"We'll return tomorrow at {{time}}",nextWeek:"We'll return {{dayOfWeek}} at {{time}}"},alerts:{pubNubStatus:{visiblyOffline:{title:"Sorry. There was an issue connecting to the network. ",description:"Please wait a few seconds and try again."},PNNetworkUpCategory:{title:"The network connection issue is resolved.",description:"Success! You're connected to messages again."},PNRsubscribeLimitReached:{title:"Sorry. We can't connect you to messages right now.",description:"Please refresh your page."}}},errorAlert:{titleText:"Something went wrong.",message_jsx:function(e,t,n){return e(t,"wrapper",null,"Please try again. If it keeps happening, ",e(t,"Link",{onClick:n.onClick},"let us know"),".")},eventId:"Event Id: {{ eventId }}"},unknownVisitor:"Unknown visitor",isResponderAI:"You are speaking to an AI Chatbot",notifications:{unknownVisitor:"Unknown visitor",title:{withIdentity:"{{ identifier }} | HubSpot Messages"},newMessage:"New live chat from {{ identifier }}",newEmail:"New email from {{ identifier }}",assignment:"{{ identifier }} assigned a conversation to you.",pushText:"A visitor has sent you a new message."},buttons:{agree:"I agree",disagree:"Decline for now"},visitorExperienceAriaLabels:{dismiss:"Dismiss",drag:"Drag",open:"Open live chat",close:"Close live chat",attachment:"attach a file",send:"send message",showThreadList:"View thread list, {{ unreadThreadCount }} unread threads",createNewThread:"Create new thread",badgeDescription:"New notifications",welcomeMessage:"Welcome message",liveChat:"Live Chat"},chatTextArea:{validationMessage:"Message is too long.",placeholder:"Write a message"},newThreadPrompt:{heading:"Your chat has been ended.",newHeading:"Your chat has ended.",paragraph:"if you want to continue the conversation",button:"start a new chat",newButton:"To start a new chat, click here."},botAwayMessage:{heading:"Our team isn't online at the moment.",paragraph:"We'll be back during our business hours and look forward to chatting with you then."},default:{repText:"Hi there! Let me know if you have any questions about the product or pricing.",initialMessage:"Got any questions? I'm happy to help.",askForEmailMessage:"Don’t have time to wait for a response? Leave your email and we’ll be in touch as soon as possible.",knowledgeBaseHeaderText:"Help",agent:"Agent",avatar:"Avatar of {{ identifier }}",avatarAvailable:"Avatar of {{ identifier }}; agent is available for chat",avatarAway:"Avatar of {{ identifier }}; agent is away"},dateStringWithOn:"on {{ dateString }}",quickReply:{selectionPlaceholder:"Select one",selectionComplete:"Send"},gdpr:{consentToCookies:{pageLoadCookieConsent:"This chat widget uses a cookie to interact with website visitors and to provide your chat history. To find out more about this cookie, see our Privacy Policy."}}}}}});hns("I18n",{translations:{en:{"conversations-visitor-message-history":{"email-capture":{thanks:"Thank you for your email. We'll be in touch as soon as possible.",invalid:"You entered an invalid email.",failed:"Sorry, we couldn't verify your email address.",placeholderText:"Enter email address",consentToCommunicate:"I agree to receive other communications from {{ accountName }}",submitEmailAddress:"Submit email address"},"initial-message":{header:"Welcome message",headerTooltip:"A welcome message is a prompt used to invite your website visitors to start a conversation."},"common-message":{hiddenMessage:"This message is hidden."},status:{publishing:{UNPUBLISHED:"Sending... ",PUBLISH_FAILED:"Not delivered. Click to retry."}},quickReply:{selectionPlaceholder:"Select one",selectionComplete:"Done"},agentSays:"Agent says:",subjectSays:"{{ subject }} says:",iSay:"I say:",subjectIsTyping:"{{ subject }} is typing",systemMessage:"System message:",agent:"Agent",bot:"Bot",system:"System",avatar:"Avatar of {{ identifier }}"}}}});hns("I18n",{translations:{en:{"conversations-error-reporting":{errorAlert:{message_jsx:function(e,t,n){return e(t,"wrapper",null,"Please try again. If it keeps happening, ",e(t,"Link",{onClick:n.onClick},"let us know"),".")},eventId:"Event Id: {{ eventId }}",errorCode:"Error Code: {{ errorCode }}"},debugOverlay:{title:"Debug Menu",enableLogs:"Enable Logs",disableLogs:"Disable Logs",sendData:"Send Debug Data to HubSpot",lastEventMessage:"Debug data sent. Event Id: {{ lastEventId }}"},fatalError:{refreshThePage:"Something's wrong.
Refresh the page or log in again.",contactSupport:"If this keeps happening, please contact support"}}}}});hns("I18n",{translations:{en:{cvVisitorUIAttachments:{errors:{fileSizeExceeded:"File exceeds the {{maxSize}} max upload.",uploadError:"Unable to upload attachment.",invalidFileType:"Invalid file type selected."},tryAgain:"Try again",threadPreview:"An attachment has been sent"}}}});hns("I18n",{translations:{en:{conversationsVisitorUIAvailability:{sameDay:"We'll return today at {{time}}",nextDay:"We'll return tomorrow at {{time}}",nextWeek:"We'll return {{dayOfWeek}} at {{time}}"}}}});hns("I18n",{translations:{en:{conversationsVisitorUIPageTitleNotifications:{newMessage:"New Message"}}}});hns("I18n",{translations:{en:{"conversations-visitor-ui":{htmlTitle:"Chat Widget",timeSince:{secondsAgo:"a few seconds ago"},default:{agent:"Agent",meetingsLinkText:"Schedule some time with me"},emailCapture:{outsideOfficeHoursMessage:"Leave your email and we’ll be in touch as soon as possible.",defaultAwayEmailCaptureMessage:"What email address should we use to follow up?"},threadList:{header:"Your chats",seeAllButton:"See all",seeLessButton:"See less",chatEndedMessage:"Your chat has ended."},network:{offline:{title:"Sorry. It looks like there was an issue with your internet connection. Please check your connection and try again."},pubSubFailure:{title:"Sorry. There seems to be a connection issue. Please try again later.",retry:"Refresh"},newThreadFailure:{title:"Sorry. There was a problem loading this message. Please check your connection and try again."}},asyncError:{body:"We're having technical difficulties",noRetry:"Please check your connection and try again.",retry:"Retry"},widgetErrorRetryPanel:{title:"There was a problem loading the chat.",body_jsx:function(e,t,n){return e(t,"wrapper",null,"Please refresh the page or ",e(t,"Link",n.LinkProps,"retry."))}},knowledgeBaseContainer:{headerText:"Help",yourChats:"Your Chats"},chatTextArea:{validationMessage:"Message is too long.",placeholder:"Write a message",forceQuickReplyPlaceholder:"Choose an option"},newThreadPrompt:{heading:"Your chat has been ended.",newHeading:"Your chat has ended.",paragraph:"if you want to continue the conversation",button:"start a new chat",newButton:"To start a new chat, click here."},visitorExperienceAriaLabels:{attachment:"attach a file",chatWidget:"Chat Widget",messageHistory:"Message History",send:"send message",knowledgeBase:"Knowledge Base",closeChatWindow:"Close chat window"},stagedAttachment:{uploadProgress:"{{uploadedBytes}} of {{totalBytes}}"},fileSizeLimit:"{{size}} max upload",askForEmailMessage:"Don’t have time to wait for a response? Leave your email and we’ll be in touch as soon as possible.",gdpr:{consentToCookies:{promptHeader:"Your chat will be lost if you leave",pageLoadCookieConsent:"This chat widget uses a cookie to interact with website visitors and to provide your chat history. To find out more about this cookie, see our Privacy Policy.",exitIntentCookieConsent:"Your chat will be lost if you leave this page without consenting to accept cookies. This chat widget stores cookies on your browser to collect information about how you interact with our website and allows us to remember you."}}}}}})},AaWM:function(e,t,n){"use strict";var r=n("QYOI"),i=n("3Yas");i.f.implement(Array,(e,t)=>t.hasOwnProperty(e));i.f.implementInherited(r.Iterable,(e,t)=>t.has(e));i.f.implement(Object,(e,t)=>t.hasOwnProperty(e));t.a=i.f},AbLd:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n.d(t,"b",(function(){return s}));var r=n("dLEV"),i=n("xZ3y");const a=Object(r.createAction)(i.USER_INPUT_ON_FOCUS,e=>({payload:{widgetInputIsOnFocus:e}}));function s(e){return t=>{t(a(e))}}},AgM1:function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n("Ktcs"),i=n("pcz0");const a=Object(r.createContext)(Object(i.a)()),s=()=>Object(r.useContext)(a);t.a=a},"As+A":function(e,t,n){"use strict";n.r(t);n.d(t,"publishAvailabilityMessage",(function(){return p}));var r=n("eH/d"),i=n("tyiq"),a=n("fZy4"),s=n("yxYB"),o=n("c2PF"),c=n("J4oD"),u=n("BlNW"),l=n("PpSk");function d({channel:e,thread:t,state:n,dispatch:r}){const o=Object(s.getWidgetAvailabilityOptions)(n),d=!!Object(i.b)(o),p=Object(l.getThreadId)(t),f=Object(c.historyDataForThread)(n,{thread:t});d&&Object(u.canSendNewTypicalResponseTimeMessage)(f)&&r(Object(a.publishTypicalResponseTimeMessage)({channel:e,threadId:p}))}const p=({channel:e,threadId:t})=>(n,i)=>{const a=Object(o.getThreadByThreadId)(i(),{threadId:t}),s=Object(c.historyDataForThread)(i(),{thread:a});s&&Object(r.hasChatMessageFromAgent)(s)||d({channel:e,thread:a,state:i(),dispatch:n})}},Avso:function(e,t,n){"use strict";n.r(t);var r=n("DdHT"),i=n("JGJA"),a=n("dPcB"),s=n("CQiV");const o="avatar",c="firstName",u="lastName",l="bot",d="userId",p="online",f="email",h="agentState",b="agentType",g="meetingsLinkText",m="meetingsLinkUrl";var O=n("a3lm");n.d(t,"getAvatar",(function(){return j}));n.d(t,"getFirstName",(function(){return y}));n.d(t,"getLastName",(function(){return E}));n.d(t,"getEmail",(function(){return T}));n.d(t,"getFullName",(function(){return I}));n.d(t,"getFriendlyOrFormalName",(function(){return w}));n.d(t,"getIsBot",(function(){return S}));n.d(t,"getIsOnline",(function(){return A}));n.d(t,"getUserId",(function(){return C}));n.d(t,"getAgentState",(function(){return x}));n.d(t,"getAgentType",(function(){return R}));n.d(t,"getMeetingsLinkText",(function(){return k}));n.d(t,"getMeetingsLinkUrl",(function(){return P}));n.d(t,"getAgentRespondersList",(function(){return D}));const v=["de","ja"],j=Object(i.a)(o),y=Object(i.a)(c),E=Object(i.a)(u),T=Object(i.a)(f),I=e=>Object(a.a)({firstName:y(e),lastName:E(e)}),w=(e,t)=>{const n=t||Object(s.a)();return v.indexOf(n)>=0?I(e):y(e)},S=Object(i.a)(l),A=Object(i.a)(p),C=e=>Object(r.a)(Object(i.a)(d),e=>e&&""+e)(e),x=Object(i.a)(h),R=Object(i.a)(b),k=Object(i.a)(g),P=Object(i.a)(m),D=Object(i.a)(O.a)},B39b:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("isFirstVisitorSession")},BDBs:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n("rCfO"),i=n("bSHG"),a=n("+KD7"),s=n("npjq");const o=/\S*cdn2\.hubspot(qa)?\.net\S*\/thumb\.[a-zA-Z]+$/,c=/\/thumb\.[a-zA-Z]+$/,u=/data:/,l=/app(-[a-z0-9]+)?.hubspot(qa)?.com\/login-api/,d=Object(r.default)(e=>o.test(e)),p=Object(r.default)(e=>u.test(e)),f=Object(r.default)(e=>l.test(e)),h=e=>`\n border: 1px solid ${a.a};\n justify-content: center;\n padding: 20px;\n display: flex;\n align-items: center;\n height: ${e?e+"px":"auto"};\n width: 100%;\n`,b=Object(r.default)(e=>`

${s.a.text("sanitizedEmail.imageError")}

\n `),g=({node:e,node_name:t})=>{if(e&&"img"===t&&e.attributes){const t=e.getAttribute("src");if(t&&p(t)&&t.length>2e3){const t=e.getAttribute("height"),n=i.c.createElement("div");n.innerHTML=b(t);return{node:n}}t&&d(t)&&e.setAttribute("src",t.replace(c,""));f(t)&&e.setAttribute("src","");const n=e.getAttribute("data-original-width");n&&e.setAttribute("width",n);const r=e.getAttribute("data-original-height");r&&e.setAttribute("height",r);return{node:e}}return null}},BDi3:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=({ignore:e=!1,message:t,silent:n=!1,titleText:r,displayEventId:i=!0,isVisibleToUser:a=!0,silenceErrorReporting:s=!1})=>({error:{ignore:e,message:t,silent:n,titleText:r,displayEventId:i,isVisibleToUser:a,silenceErrorReporting:s}})},BEas:function(e,t,n){var r=n("8i16").Symbol;e.exports=r},BEfq:function(e,t,n){"use strict";n.d(t,"d",(function(){return s}));n.d(t,"b",(function(){return o}));n.d(t,"c",(function(){return c}));n.d(t,"a",(function(){return u}));var r=n("dLEV"),i=n("xZ3y"),a=n("0PDK");const s=Object(r.createAction)(i.UPDATE_MESSAGE_EDITOR_STAGING_TEXT,e=>({payload:e})),o=Object(r.createAction)(i.REMOVE_MESSAGE_EDITOR_STAGING_TEXT,e=>({payload:e})),c=e=>(t,n)=>{t(s({stagingText:e,threadId:Object(a.getSelectedThreadId)(n())}))},u=()=>(e,t)=>{e(o(Object(a.getSelectedThreadId)(t())))}},BG1d:function(e,t,n){"use strict";n.r(t);n.d(t,"isErrorAction",(function(){return a}));var r=n("nSiU");const i=/.+_(FAILED|FAILURE)/,a=e=>!(!i.test(e.type)||Object(r.ignoreError)(e))||!(!Object(r.getErrorMeta)(e)||Object(r.ignoreError)(e))},BGhm:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("DrqF");const i=e=>{const t=parseInt(e,10);Object(r.a)("number"==typeof t&&!isNaN(t),'Expected id to be parsable as a number not a %s. id was "%s".',typeof e,e)}},BOwv:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=18e5},BlNW:function(e,t,n){"use strict";n.r(t);var r=n("+2bk"),i=n("mE3N"),a=n("UJtG"),s=n("iPDb"),o=n("kWFB");const c=e=>{if(!Object(o.hasMessages)(e))return!1;const t=Object(s.a)(e).findLast(a.isTypicalResponseTimeMessage);return!(!t||!Object(i.a)(t))};var u=n("dML/");n.d(t,"canSendNewTypicalResponseTimeMessage",(function(){return l}));const l=e=>!Object(r.a)(e)&&(!c(e)||Object(u.a)(e))},Blk5:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="TICKET_CREATION_FAILURE"},BvOu:function(e,t,n){"use strict";n.r(t);n.d(t,"generateUuid",(function(){return a}));function r(){let e=(new Date).getTime();return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+16*Math.random())%16|0;e=Math.floor(e/16);return("x"===t?n:3&n|8).toString(16)})}function i(){const e=window.crypto||window.msCrypto,t=new Uint16Array(8);e.getRandomValues(t);const n=e=>{let t=e.toString(16);for(;t.length<4;)t="0"+t;return t};return n(t[0])+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])+n(t[7])}function a(){const e=window.crypto||window.msCrypto;return void 0!==e&&void 0!==e.getRandomValues&&void 0===window.Uint16Array?i():r()}},BxyF:function(e,t,n){"use strict";n.r(t);n.d(t,"getIndexedAsyncPubSubClients",(function(){return c}));n.d(t,"getClientKeyFromProps",(function(){return u}));n.d(t,"getAsyncPubSubClient",(function(){return l}));n.d(t,"getPubSubClient",(function(){return d}));n.d(t,"getPubSubVendor",(function(){return p}));var r=n("JGJA"),i=n("MBJP"),a=n("KXN9"),s=n("x1JE"),o=n("5vQK");const c=Object(r.a)("pubSubClient"),u=(e,{clientKey:t=o.a}={})=>t,l=Object(i.a)([u,c],s.getEntry),d=Object(i.a)([l],a.a),p=Object(i.a)([d],e=>e&&e.vendor)},C3IS:function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));n.d(t,"c",(function(){return c}));n.d(t,"a",(function(){return u}));var r=n("JGJA"),i=(n("2Zef"),n("0GyJ")),a=(n("0IK8"),n("rf4d")),s=n("o/5C");const o=e=>Object(r.a)("@type",e)===i.a,c=e=>o(e)&&Object(s.d)(e)===a.a,u=e=>o(e)&&!c(e)},C5Zv:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));const r=6e4,i=["RHUMB_GLOBAL_ERROR","RHUMB_GLOBAL_ERROR_BOUNDARY"],a=new Error("Unexpected route visited. Please see https://product.hubteam.com/docs/frontend/docs/react-rhumb.html#unexpected-route-tracking for more info.")},CITH:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("vigZ");const i=(e,t)=>{try{const n=Object(r.a)();window.parent.postMessage(JSON.stringify({type:e,data:t,uuid:n}),"*");return{type:e,data:t}}catch(e){console.error("Error posting message to parent",e)}}},CJvR:function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var i=r();i.withExtraArgument=r;t.a=i},CM48:function(e,t,n){"use strict";n.r(t);var r=n("dLEV"),i=n("JGJA");const a=Object(i.a)("gdpr"),s=Object(r.createSelector)([a],Object(i.a)("consentToProcessStatus"));var o=n("3z2x");n.d(t,"getUserHasGivenConsentToProcess",(function(){return c}));const c=Object(r.createSelector)([s],e=>{switch(e){case o.a:return!1;case o.b:return!0;case o.c:default:try{return localStorage.getItem("userHasGivenConsentToProcess")}catch(e){return!1}}})},CM4h:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("dLEV"),i=n("PpSk"),a=n("lEkO"),s=n("0PDK");const o=Object(r.createSelector)([a.a,s.getSelectedThreadId],(e,t)=>e?e.reduce((e,n)=>Object(i.getThreadId)(n)!==t?e+(n.unseenCount?1:0):e,0):0)},CPMP:function(e,t,n){"use strict";n.r(t);n.d(t,"networkOffline",(function(){return a}));var r=n("dLEV"),i=n("xZ3y");const a=Object(r.createAction)(i.NETWORK_OFFLINE)},CQiV:function(e,t,n){"use strict";var r=n("8ASW");t.a=()=>{const e=r.a.locale.split("-")[0];return"en"===e||r.a.langEnabled||r.a.publicPage?e:"en"}},CR0J:function(e,t,n){"use strict";var r=n("VfuR");const i=n.n(r).a.object;t.a=i},CXrm:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"b",(function(){return a}));const r="NEVER",i="ON_WIDGET_LOAD",a="ON_EXIT_INTENT"},Cblj:function(e,t,n){"use strict";n.r(t);n.d(t,"isTypingMessage",(function(){return a}));var r=n("0IK8"),i=n("tY0N");const a=e=>Object(r.getTopLevelType)(e)===i.a},"CyI/":function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));n.d(t,"b",(function(){return T}));n.d(t,"c",(function(){return S}));var r=n("Ktcs"),i=n.n(r),a=n("Ex4o");class s{getStringForLocale(e,t){let n=this.strings[t];if(!n){n=o(t,this.strings,this.defaultLocale);this.strings[t]=n}let r=n[e];if(!r)throw new Error(`Could not find intl message ${e} in ${t} locale`);return r}constructor(e,t="en-US"){this.strings=Object.assign({},e);this.defaultLocale=t}}function o(e,t,n="en-US"){if(t[e])return t[e];let r=c(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}function c(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const u=new Map,l=new Map;class d{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let i=this.locale+":"+n,a=u.get(i);if(!a){a=new Intl.PluralRules(this.locale,{type:n});u.set(i,a)}r=t[a.select(e)]||t.other;return"function"==typeof r?r():r}number(e){let t=l.get(this.locale);if(!t){t=new Intl.NumberFormat(this.locale);l.set(this.locale,t)}return t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e;this.strings=t}}new Map;new Map;let p=!1;try{p="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let f=!1;try{f="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const h=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),b=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function g(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return h.has(t)}let t=e.split("-")[0];return b.has(t)}function m(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:g(e)?"rtl":"ltr"}}let O=m(),v=new Set;function j(){O=m();for(let e of v)e(O)}function y(){let e=Object(a.a)(),[t,n]=Object(r.useState)(O);Object(r.useEffect)(()=>{0===v.size&&window.addEventListener("languagechange",j);v.add(n);return()=>{v.delete(n);0===v.size&&window.removeEventListener("languagechange",j)}},[]);return e?{locale:"en-US",direction:"ltr"}:t}const E=i.a.createContext(null);function T(){let e=y();return Object(r.useContext)(E)||e}const I=new WeakMap;function w(e){let t=I.get(e);if(!t){t=new s(e);I.set(e,t)}return t}function S(e){let{locale:t}=T(),n=Object(r.useMemo)(()=>w(e),[e]);return Object(r.useMemo)(()=>new d(t,n),[t,n])}let A=new Map;function C(e){let{locale:t}=T(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]0}));n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(te,(function(e,n,r,i,a,s){if(n)t.minimumIntegerDigits=r.length;else{if(i&&a)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(ne.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if($.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace($,(function(e,n,r,i,a,s){if("*"===r)t.minimumFractionDigits=n.length;else if(i&&"#"===i[0])t.maximumFractionDigits=i.length;else if(a&&s){t.minimumFractionDigits=a.length;t.maximumFractionDigits=a.length+s.length}else{t.minimumFractionDigits=n.length;t.maximumFractionDigits=n.length}return""}));var a=i.options[0];"w"===a?t=_(_({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=_(_({},t),re(a)))}else if(ee.test(i.stem))t=_(_({},t),re(i.stem));else{var s=ie(i.stem);s&&(t=_(_({},t),s));var o=ae(i.stem);o&&(t=_(_({},t),o))}}return t}var ce,ue={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function le(e,t){for(var n="",r=0;r>1),c="a",u=de(t);"H"!=u&&"k"!=u||(o=0);for(;o-- >0;)n+=c;for(;s-- >0;)n=u+n}else n+="J"===i?"H":i}return n}function de(e){var t=e.hourCycle;void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]);if(t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;"root"!==r&&(n=e.maximize().region);return(ue[n||""]||ue[r||""]||ue["".concat(r,"-001")]||ue["001"])[0]}var pe=new RegExp("^".concat(K.source,"*")),fe=new RegExp("".concat(K.source,"*$"));function he(e,t){return{start:e,end:t}}var be=!!String.prototype.startsWith,ge=!!String.fromCodePoint,me=!!Object.fromEntries,Oe=!!String.prototype.codePointAt,ve=!!String.prototype.trimStart,je=!!String.prototype.trimEnd,ye=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ee=!0;try{Ee="a"===(null===(ce=Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===ce?void 0:ce[0])}catch(e){Ee=!1}var Te,Ie=be?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},we=ge?String.fromCodePoint:function(){for(var e=[],t=0;ta;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Se=me?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},Ce=ve?function(e){return e.trimStart()}:function(e){return e.replace(pe,"")},xe=je?function(e){return e.trimEnd()}:function(e){return e.replace(fe,"")};function Re(e,t){return new RegExp(e,t)}if(Ee){var ke=Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Te=function(e,t){var n;ke.lastIndex=t;return null!==(n=ke.exec(e)[1])&&void 0!==n?n:""}}else Te=function(e,t){for(var n=[];;){var r=Ae(e,t);if(void 0===r||Ne(r)||Le(r))break;n.push(r);t+=r>=65536?2:1}return we.apply(void 0,n)};var Pe=function(){function e(e,t){void 0===t&&(t={});this.message=e;this.position={offset:0,line:1,column:1};this.ignoreTag=!!t.ignoreTag;this.locale=t.locale;this.requiresOtherClause=!!t.requiresOtherClause;this.shouldParseSkeletons=!!t.shouldParseSkeletons}e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)};e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((a=this.parseArgument(e,n)).err)return a;r.push(a.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(k.UNMATCHED_CLOSING_TAG,he(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&De(this.peek()||0)){if((a=this.parseTag(e,t)).err)return a;r.push(a.val)}else{var a;if((a=this.parseLiteral(e,t)).err)return a;r.push(a.val)}}else{var s=this.clonePosition();this.bump();r.push({type:P.pound,location:he(s,this.clonePosition())})}}}return{val:r,err:null}};e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();this.bumpSpace();if(this.bumpIf("/>"))return{val:{type:P.literal,value:"<".concat(r,"/>"),location:he(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:P.tag,value:r,children:a,location:he(n,this.clonePosition())},err:null}:this.error(k.INVALID_TAG,he(s,this.clonePosition()))}return this.error(k.UNCLOSED_TAG,he(n,this.clonePosition()))}return this.error(k.INVALID_TAG,he(n,this.clonePosition()))};e.prototype.parseTagName=function(){var e=this.offset();this.bump();for(;!this.isEOF()&&Me(this.char());)this.bump();return this.message.slice(e,this.offset())};e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var o=he(n,this.clonePosition());return{val:{type:P.literal,value:r,location:o},err:null}};e.prototype.tryParseLeftAngleBracket=function(){if(!this.isEOF()&&60===this.char()&&(this.ignoreTag||!_e(this.peek()||0))){this.bump();return"<"}return null};e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:this.bump();this.bump();return"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];this.bump();for(;!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39);this.bump()}else t.push(n);this.bump()}return we.apply(void 0,t)};e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();if(60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0)return null;this.bump();return we(n)};e.prototype.parseArgument=function(e,t){var n=this.clonePosition();this.bump();this.bumpSpace();if(this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,he(n,this.clonePosition()));if(125===this.char()){this.bump();return this.error(k.EMPTY_ARGUMENT,he(n,this.clonePosition()))}var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(k.MALFORMED_ARGUMENT,he(n,this.clonePosition()));this.bumpSpace();if(this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,he(n,this.clonePosition()));switch(this.char()){case 125:this.bump();return{val:{type:P.argument,value:r,location:he(n,this.clonePosition())},err:null};case 44:this.bump();this.bumpSpace();return this.isEOF()?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,he(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(k.MALFORMED_ARGUMENT,he(n,this.clonePosition()))}};e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Te(this.message,t),r=t+n.length;this.bumpTo(r);return{value:n,location:he(e,this.clonePosition())}};e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(s){case"":return this.error(k.EXPECT_ARGUMENT_TYPE,he(a,o));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(f=xe(m.val)).length)return this.error(k.EXPECT_ARGUMENT_STYLE,he(this.clonePosition(),this.clonePosition()));c={style:f,styleLocation:he(u,this.clonePosition())}}if((O=this.tryParseArgumentClose(r)).err)return O;var l=he(r,this.clonePosition());if(c&&Ie(null==c?void 0:c.style,"::",0)){var d=Ce(c.style.slice(2));if("number"===s){return(m=this.parseNumberSkeletonFromString(d,c.styleLocation)).err?m:{val:{type:P.number,value:n,location:l,style:m.val},err:null}}if(0===d.length)return this.error(k.EXPECT_DATE_TIME_SKELETON,l);var p=d;this.locale&&(p=le(d,this.locale));var f={type:D.dateTime,pattern:p,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?J(p):{}};return{val:{type:"date"===s?P.date:P.time,value:n,location:l,style:f},err:null}}return{val:{type:"number"===s?P.number:"date"===s?P.date:P.time,value:n,location:l,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var h=this.clonePosition();this.bumpSpace();if(!this.bumpIf(","))return this.error(k.EXPECT_SELECT_ARGUMENT_OPTIONS,he(h,_({},h)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m;if((m=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace();b=this.parseIdentifierIfPossible();g=m.val}var O,v=this.tryParsePluralOrSelectOptions(e,s,t,b);if(v.err)return v;if((O=this.tryParseArgumentClose(r)).err)return O;var j=he(r,this.clonePosition());return"select"===s?{val:{type:P.select,value:n,options:Se(v.val),location:j},err:null}:{val:{type:P.plural,value:n,options:Se(v.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:j},err:null};default:return this.error(k.INVALID_ARGUMENT_TYPE,he(a,o))}};e.prototype.tryParseArgumentClose=function(e){if(this.isEOF()||125!==this.char())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,he(e,this.clonePosition()));this.bump();return{val:!0,err:null}};e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(k.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,he(n,this.clonePosition()));this.bump();break;case 123:e+=1;this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}};e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=Z(e)}catch(e){return this.error(k.INVALID_NUMBER_SKELETON,t)}return{val:{type:D.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?oe(n):{}},err:null}};e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,s=[],o=new Set,c=r.value,u=r.location;;){if(0===c.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_SELECTOR,k.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=he(l,this.clonePosition());c=this.message.slice(l.offset,this.offset())}if(o.has(c))return this.error("select"===t?k.DUPLICATE_SELECT_ARGUMENT_SELECTOR:k.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(a=!0);this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?k.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:k.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,he(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var h=this.tryParseArgumentClose(p);if(h.err)return h;s.push([c,{value:f.val,location:he(p,this.clonePosition())}]);o.add(c);this.bumpSpace();c=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?k.EXPECT_SELECT_ARGUMENT_SELECTOR:k.EXPECT_PLURAL_ARGUMENT_SELECTOR,he(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(k.MISSING_OTHER_CLAUSE,he(this.clonePosition(),this.clonePosition())):{val:s,err:null}};e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;i=!0;a=10*a+(s-48);this.bump()}var o=he(r,this.clonePosition());return i?ye(a*=n)?{val:a,err:null}:this.error(t,o):this.error(e,o)};e.prototype.offset=function(){return this.position.offset};e.prototype.isEOF=function(){return this.offset()===this.message.length};e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}};e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ae(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t};e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}};e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();if(10===e){this.position.line+=1;this.position.column=1;this.position.offset+=1}else{this.position.column+=1;this.position.offset+=e<65536?1:2}}};e.prototype.bumpIf=function(e){if(Ie(this.message,e,this.offset())){for(var t=0;t=0){this.bumpTo(n);return!0}this.bumpTo(this.message.length);return!1};e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));e=Math.min(e,this.message.length);for(;;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));this.bump();if(this.isEOF())break}};e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ne(this.char());)this.bump()};e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null};return e}();function De(e){return e>=97&&e<=122||e>=65&&e<=90}function _e(e){return De(e)||47===e}function Me(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ne(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Le(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Be(e){e.forEach((function(e){delete e.location;if(U(e)||V(e))for(var t in e.options){delete e.options[t].location;Be(e.options[t].value)}else B(e)&&z(e.style)||(F(e)||H(e))&&q(e.style)?delete e.style.location:W(e)&&Be(e.children)}))}function Fe(e,t){void 0===t&&(t={});t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Pe(e,t).parse();if(n.err){var r=SyntaxError(k[n.err.kind]);r.location=n.err.location;r.originalMessage=n.err.message;throw r}(null==t?void 0:t.captureLocation)||Be(n.val);return n.val}function He(e,t){var n=t&&t.cache?t.cache:Ze,r=t&&t.serializer?t.serializer:Ye;return(t&&t.strategy?t.strategy:ze)(e,{cache:n,serializer:r})}function Ue(e){return null==e||"number"==typeof e||"boolean"==typeof e}function Ve(e,t,n,r){var i=Ue(r)?r:n(r),a=t.get(i);if(void 0===a){a=e.call(this,r);t.set(i,a)}return a}function Ge(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);if(void 0===a){a=e.apply(this,r);t.set(i,a)}return a}function We(e,t,n,r,i){return n.bind(t,e,r,i)}function ze(e,t){return We(e,this,1===e.length?Ve:Ge,t.cache.create(),t.serializer)}function qe(e,t){return We(e,this,Ge,t.cache.create(),t.serializer)}function Ke(e,t){return We(e,this,Ve,t.cache.create(),t.serializer)}var Ye=function(){return JSON.stringify(arguments)};function Je(){this.cache=Object.create(null)}Je.prototype.get=function(e){return this.cache[e]};Je.prototype.set=function(e,t){this.cache[e]=t};var Qe,Ze={create:function(){return new Je}},Xe={variadic:qe,monadic:Ke};!function(e){e.MISSING_VALUE="MISSING_VALUE";e.INVALID_VALUE="INVALID_VALUE";e.MISSING_INTL_API="MISSING_INTL_API"}(Qe||(Qe={}));var $e,et=function(e){R(t,e);function t(t,n,r){var i=e.call(this,t)||this;i.code=n;i.originalMessage=r;return i}t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};return t}(Error),tt=function(e){R(t,e);function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Qe.INVALID_VALUE,i)||this}return t}(et),nt=function(e){R(t,e);function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Qe.INVALID_VALUE,r)||this}return t}(et),rt=function(e){R(t,e);function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),Qe.MISSING_VALUE,n)||this}return t}(et);!function(e){e[e.literal=0]="literal";e[e.object=1]="object"}($e||($e={}));function it(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];n&&n.type===$e.literal&&t.type===$e.literal?n.value+=t.value:e.push(t);return e}),[])}function at(e){return"function"==typeof e}function st(e,t,n,r,i,a,s){if(1===e.length&&N(e[0]))return[{type:$e.literal,value:e[0].value}];for(var o=[],c=0,u=e;c0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}};e.__parse=Fe;e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}();new WeakMap},"D/wX":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("BG1d"),i=n("tcix"),a=n("cnVX");const s=()=>e=>t=>{Object(i.captureActionBreadcrumb)(t);Object(r.isErrorAction)(t)&&Object(a.reportErrorAction)(t);return e(t)}},D2Y9:function(e,t,n){e.exports=n.dlbpr(1,21)},DB67:function(e,t,n){"use strict";n.r(t);n.d(t,"channelChangeReceived",(function(){return a}));var r=n("dLEV"),i=n("t0Ql");const a=Object(r.createAction)(i.a,({channelChange:e,threadId:t})=>({payload:{channelChange:e,threadId:t}}))},DFBY:function(e,t,n){"use strict";n.r(t);var r=n("MJM1");const i=["assignedAgent","agentId"],a=["assignedAgent","agentType"],s=["auditParams"],o=["assignedAgent"];var c=n("mFyM"),u=n("JGJA"),l=n("K+6d");const d=Object(u.a)(l.c),p=Object(u.a)(l.b),f=Object(u.a)(l.d),h=Object(u.a)(l.a),b=(Object(u.a)(l.b),Object(u.a)(l.d),Object(u.a)(l.e)),g=e=>{if(!e)return null;switch(d(e)){case c.a:return f(e);case c.b:return h(e);case c.g:return b(e);default:return null}};var m=n("aLTZ");const O=e=>{if(!e)return null;switch(d(e)){case c.a:return m.a;case c.b:return p(e)===m.a?m.a:m.b;default:return null}};n.d(t,"getAssignedAgentId",(function(){return v}));n.d(t,"getAssignedAgentType",(function(){return j}));n.d(t,"getAudit",(function(){return y}));n.d(t,"getAgentIdFromAudit",(function(){return E}));n.d(t,"getAgentTypeFromAudit",(function(){return T}));n.d(t,"getAssignedAgent",(function(){return I}));const v=Object(r.a)(i),j=Object(r.a)(a),y=Object(r.a)(s),E=e=>{const t=y(e);return g(t)},T=e=>{const t=y(e);return O(t)},I=Object(r.a)(o)},DFoL:function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));var r=n("LZPL"),i=n.n(r);const a={},s=e=>!(i.a.deployed()||null!=e&&a[e]),o=e=>{e&&(a[e]=!0)},c=({message:e="",key:t,url:n})=>{n&&(e+="\nFor details, see: "+n);if(s(t)){console.warn(e);o(t)}};t.a={warn:c}},DLkX:function(e,t,n){"use strict";const r={accentColor:"",textColor:"",useDefaultColor:!1},i=e=>Object.assign({},r,e);t.a=i},DPiE:function(e,t,n){"use strict";n.r(t);n.d(t,"lastSeenSent",(function(){return f}));n.d(t,"lastSeenSuccess",(function(){return h}));n.d(t,"lastSeenFailure",(function(){return b}));n.d(t,"markLastMessageReadByVisitor",(function(){return g}));var r=n("Lm/k"),i=n("dLEV"),a=n("PpSk"),s=n("fogE"),o=n("xZ3y"),c=n("Mx3c"),u=n("prkp"),l=n("FBcP"),d=n("EjCB");const p=["error"],f=Object(i.createAction)(o.LAST_SEEN_SENT,({role:e,threadId:t,channel:n,latestMessageTimestamp:r})=>({payload:{role:e,threadId:t,channel:n,latestMessageTimestamp:r}})),h=Object(i.createAction)(o.LAST_SEEN_SUCCESS,({role:e,threadId:t,channel:n,latestMessageTimestamp:r})=>({payload:{role:e,threadId:t,channel:n,latestMessageTimestamp:r}})),b=Object(i.createAction)(o.LAST_SEEN_FAILURE,e=>{let{error:t}=e,n=Object(r.a)(e,p);return{payload:{error:t},meta:Object(s.a)(Object.assign({error:t},n))}});function g({conversation:e}){return(t,n)=>{const r=Object(a.getThreadId)(e),i=Object(l.getSessionId)(n()),s=Object(a.getLatestReadTimestamp)(e),o=Object(a.getLatestMessageTimestamp)(e),p=Object(a.getPreviewMessageId)(e);if(o&&r&&i&&p&&o>s){const n=Object(a.getChannelName)(e),s={role:c.VISITOR,threadId:r,channel:n,latestMessageTimestamp:o};t(f(s));Object(u.markMessageReadByVisitor)({messageId:p,threadId:r,sessionId:i}).then(()=>{t(h(s));Object(d.postClearPageTitleNotification)()}).catch(e=>{t(b({error:e}))})}}}},Dau1:function(e,t,n){e.exports=n.dlbpr(1,20)},DdHT:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("scKg");function i(e,t){let n=t;for(let t=0;t{if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{const c=[n,r,i,a,s,o];let u=0;e=new Error("Invariant Violation: "+t.replace(/%s/g,()=>c[u++]))}e.framesToPop=1;throw e}};t.a=r},"Dw+v":function(e,t,n){"use strict";n.d(t,"b",(function(){return b}));n.d(t,"a",(function(){return m}));var r=n("JGJA"),i=n("dLEV"),a=n("L9oQ"),s=n("eg5p"),o=n("xZ3y"),c=n("y5/z"),u=n("Lu5y"),l=n("XUHx"),d=n("t+mo"),p=n("jFtF"),f=n("JTxz"),h=n("E9Gc");const b=Object(i.createAction)(o.GET_WIDGET_DATA_SUCCEEDED,e=>({payload:e})),g=Object(i.createAction)(o.RECEIVED_WIDGET_SHELL_DATA,e=>({payload:e}));function m(e){return(t,n)=>{Object(h.h)();const i=Object(u.buildWidgetData)(e);if(Object(r.a)("sessionId",i)&&Object(r.a)("chatflowId",i)){t(Object(a.selectThread)(s.a));Object(p.messageCookieHandler)({currentState:n(),widgetData:i});Object(d.getIsIncludedInPageViewSample)()&&t(Object(c.trackInteraction)("pageview",{screen:"widget",subscreen:"thread view",action:"rendered widget",pageViewSamplePercent:f.a}));t(b(i));t(g(e));t(Object(l.bootstrapInitialWidgetUi)(i))}}}},E4Gm:function(e,t,n){"use strict";n.r(t);n.d(t,"getToken",(function(){return i}));var r=n("VYoM");const i=({sessionId:e,hubspotUtk:t})=>r.a.get("livechat-public/v1/pubsub/token/visitor",{query:{sessionId:e,hubspotUtk:t}})},E9A7:function(e,t,n){"use strict";n.r(t);var r=n("dLEV"),i=n("21jQ"),a=n("Iiq6"),s=n("tAuz"),o=n("8dR1");const c=Object(r.createSelector)(o.a,(e={})=>!!e.popMessageOnSmallScreens);var u=n("1Vek"),l=n("r8xu"),d=n("kyOS"),p=n("YKTq");n.d(t,"getShowInitialMessage",(function(){return f}));const f=Object(r.createSelector)([a.a,c,u.a,l.a,i.getIsOpen,s.getIsMobile,d.getShouldHideWelcomeMessage,p.getPopOpenWidget],(e,t,n,r,i,a,s,o)=>{if(s)return!1;const c=a?Boolean(t):o||Boolean(e);return Boolean(c&&!!n&&!r&&!i)})},E9Gc:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return s}));n.d(t,"h",(function(){return o}));n.d(t,"f",(function(){return c}));n.d(t,"j",(function(){return u}));n.d(t,"e",(function(){return l}));n.d(t,"g",(function(){return d}));n.d(t,"i",(function(){return p}));n.d(t,"d",(function(){return f}));n.d(t,"c",(function(){return h}));var r=n("I5zW");const i=Object(r.createMetricsFactory)("conversations-visitor-ui");function a(){const e=navigator.userAgent;return/Edge\/\d+/.test(e)?"Edge":/OPR\/\d+/.test(e)||/Opera/.test(e)?"Opera":/Chrome/.test(e)&&/Google Inc/.test(navigator.vendor)?"Chrome":/Safari/.test(e)&&/Apple Computer/.test(navigator.vendor)?"Safari":/Firefox\/\d+/.test(e)?"Firefox":/MSIE \d|Trident\/\d/.test(e)?"Internet Explorer":"Unknown"}const s=(e,t)=>{i.globalDimensions=Object.assign({},i.globalDimensions,{[e]:t,browser:a()})},o=()=>{i.counter("page-view").increment()},c=()=>{i.counter("message-sent").increment()},u=()=>{i.counter("thread-created").increment()},l=e=>{i.histogram("embed-script-perf",e)},d=()=>{i.counter("on-ready-used").increment()},p=()=>{i.counter("settings-used").increment()},f=e=>{i.counter("api-method-used",{method:e})},h=e=>{i.counter("api-event-listener-registered",{event:e})}},EN6V:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){return e}},EQzX:function(e,t,n){"use strict";n.r(t);var r=n("GqTt"),i=n("M1Uo"),a=n("UxsU");const s=e=>{const t=Object(i.b)(e),n=Object(i.a)(e);return t===a.a.STARTED&&n===a.a.ENDED};n.d(t,"isCloseThreadMessage",(function(){return o}));const o=e=>Object(r.a)(e)&&s(e)},ES4X:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Ut5p"),a=n("xZ3y"),s=n("2Sm/"),o=n("+tWo");const c=Object(r.Map)({hasVisitorEmail:!1}),u=Object(i.c)({[s.a.SUCCEEDED](e,t){const{shouldAskForEmail:n}=t.payload;return e.set("hasVisitorEmail",!n)},[o.a.SUCCEEDED](e,t){const{data:{hasVisitorEmail:n}}=t.payload;return e.set("hasVisitorEmail",n)},[a.SEND_VISITOR_EMAIL_ADDRESS_SUCCEEDED]:e=>e.set("hasVisitorEmail",!0)},c);t.a=u},ET5w:function(e,t,n){"use strict";function r(...e){return t=>e.reduce((e,t)=>t(e),t)}var i=n("iKGd"),a=n("3Ezh"),s=n("57op");Object(s.k)("sadColor"),Object(s.k)("neutralColor"),Object(s.k)("happyColor");const o=Object(s.w)("sadColor"),c=Object(s.w)("neutralColor"),u=Object(s.w)("happyColor");var l=n("wFcP");n.d(t,"a",(function(){return d}));const d=(...e)=>{const t=r(Object(s.t)(i.h),Object(s.u)(i.j),Object(s.n)(i.a),Object(s.l)(i.k),Object(s.m)(i.l),Object(s.v)(i.o),Object(s.s)(i.g),Object(s.q)(i.d),Object(s.r)(i.e),Object(s.p)(i.c),o(i.i),c(i.f),u(i.b),Object(s.o)(a.a),...e)({});return Object.assign({components:l.a.components},t)}},EjCB:function(e,t,n){"use strict";n.r(t);n.d(t,"postClearPageTitleNotification",(function(){return a}));var r=n("n6ol"),i=n("CITH");const a=()=>{Object(i.a)(r.d)}},EjiN:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("dLEV"),i=n("LgEy"),a=n("8cLO"),s=n("49A5"),o=n("CM48");const c=Object(r.createSelector)([s.getLatestWidgetData,o.getUserHasGivenConsentToProcess],(e,t)=>Object(i.gdprConsentToProcessEnabled)(e)&&!t&&Object(a.gdprExplicitConsentRequired)(e))},EuUD:function(e,t,n){"use strict";const r=(e,t)=>{e&&"string"==typeof e||console.error('Required "name" string property not provider for pattern. Provided: '+typeof e);t&&"function"==typeof t||console.error(`Required "validator" callback not provider for "${e} pattern". Provided: ${typeof t}`)},i=(e,t,n,r)=>{const i=typeof n;if(i!==r){console.error(`Invariant error in ${e} pattern. Pattern.${t}() method can only be passed a ${r}. Provided: ${i}`);return!0}return!1};t.a=({name:e="",inputType:t="string",validator:n=null,rules:a=null,matcher:s=null}={})=>{a&&(n=e=>Object.keys(a).every(t=>a[t].test(e)));r(e,n);const o={name:e,inputType:t,test:(r,a={})=>(!t||!i(e,"test",r,t))&&n(r,a)};s&&"function"==typeof s&&(o.match=n=>(!t||!i(e,"match",n,t))&&s(n));a&&(o.testRules=e=>Object.keys(a).map(t=>({rule:t,valid:a[t].test(e)})));return o}},Euo8:function(e,t,n){"use strict";n.r(t);n.d(t,"isOfficeHoursMessage",(function(){return a}));var r=n("0IK8"),i=n("V1/C");const a=e=>Object(r.getTopLevelType)(e)===i.a},Ex4o:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n.d(t,"b",(function(){return c}));var r=n("Ktcs"),i=n.n(r);const a={prefix:String(Math.round(1e10*Math.random())),current:0},s=i.a.createContext(a);let o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function c(e){let t=Object(r.useContext)(s);t!==a||o||console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");return Object(r.useMemo)(()=>e||`react-aria${t.prefix}-${++t.current}`,[e])}function u(){let e=Object(r.useContext)(s)!==a,[t,n]=Object(r.useState)(e);"undefined"!=typeof window&&e&&Object(r.useLayoutEffect)(()=>{n(!1)},[]);return t}},"F+zP":function(e,t,n){"use strict";n.d(t,"n",(function(){return i}));n.d(t,"h",(function(){return a}));n.d(t,"i",(function(){return s}));n.d(t,"m",(function(){return o}));n.d(t,"x",(function(){return c}));n.d(t,"a",(function(){return u}));n.d(t,"d",(function(){return l}));n.d(t,"f",(function(){return d}));n.d(t,"l",(function(){return p}));n.d(t,"j",(function(){return f}));n.d(t,"o",(function(){return h}));n.d(t,"p",(function(){return b}));n.d(t,"r",(function(){return g}));n.d(t,"t",(function(){return m}));n.d(t,"s",(function(){return O}));n.d(t,"u",(function(){return v}));n.d(t,"B",(function(){return j}));n.d(t,"A",(function(){return y}));n.d(t,"C",(function(){return E}));n.d(t,"c",(function(){return T}));n.d(t,"z",(function(){return I}));n.d(t,"v",(function(){return w}));n.d(t,"b",(function(){return S}));n.d(t,"e",(function(){return A}));n.d(t,"w",(function(){return C}));n.d(t,"q",(function(){return x}));n.d(t,"y",(function(){return R}));n.d(t,"g",(function(){return k}));n.d(t,"k",(function(){return P}));var r=n("20uS");const i="undefined"!=typeof self?self:globalThis,a=(e,t=(()=>{}))=>"function"==typeof e?e:t,s=Object.keys,o=e=>Boolean(e)&&"object"==typeof e&&"function"==typeof e.then||e instanceof Promise,c=e=>t=>s(e).reduce(t,{}),u=(e="",t="",n="")=>{const r=e.indexOf(t),i=e.indexOf(n);return e.substr(r+t.length,i-r-n.length)},l=(e,t)=>{let n,r=0;return(...i)=>{r&&clearTimeout(r);r=setTimeout(()=>{r=0;n=e.apply(null,i)},t);return n}},d=(e={},t={})=>{const n=c(t)((n,r)=>{void 0===e[r]&&void 0!==t[r]&&(n[r]=t[r]);return n});return Object.assign({},e,n)},p=e=>"isArray"in Array?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e),f=e=>{let t=typeof e;p(e)&&(t="array");return null===e?"null":t},h=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t;const n=16*Math.random()|0;t="x"===e?n:3&n|8;return t.toString(16)}),b=(e={},t)=>c(e)((n,r)=>{n[r]=t(r,e[r]);return n}),g=(e={},t=[])=>c(e||{})((n,r)=>{t.includes(r)||(n[r]=e[r]);return n}),m=(e={},t=[])=>Object.assign({},...t.map(t=>({[t]:e[t]}))),O=e=>{let t,n;return(...r)=>{if(!t){t=!0;n=e(...r)}return n}},v=(e,t)=>s(t).reduce((n,r)=>{const i=t[r];n[r]=i[e];return n},{}),j=(e="",t="")=>{0===(e=e.replace(/^\s+|\s+$/g,"")).indexOf(t)&&(e=e.substr(t.length));e.indexOf(t)===e.length-t.length&&(e=e.substr(0,e.indexOf(t)));return e},y=(e={})=>c(e)((t,n)=>{t[n]=e[n];return t}),E=(e="",t=256)=>{let n=e;if(n.length>t){n=n.substr(0,t);n+="[..]"}return n},T=()=>{const e=[];return{enqueue:t=>e.unshift(t),dequeue:()=>e.shift(),peek:()=>e[0]}},I=(e=[],t,n=i)=>{let r=n;e.forEach(e=>{r=r&&e in r?r[e]:void 0});return void 0===r?t:r},w=(e="")=>e.toString().replace(/(?:^|\.?)([A-Z]+)/g,(e,t)=>"_"+t.toLowerCase()).replace(/^_/,"").replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()).replace(/-/g," ").replace(/_/g," ").replace(/\s{2}/g," "),S=(e="")=>e.replace(/[_|-]/g," ").replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>e[0===t?"toLowerCase":"toUpperCase"]()).replace(/\s+/g,""),A=e=>{if(e&&"object"==typeof e&&!Object.isFrozen(e)){Object.freeze(e);Object.getOwnPropertyNames(e).forEach(t=>A(e[t]))}return e},C=e=>t=>(n,r)=>{const i={fingerprint:["usage-tracker-js"],tags:e};return a(t)(n,Object.assign({},i,r))},x=(e,t="**********")=>e.reduce((e,n)=>Object.assign({},e,{[n]:t}),{}),R=(e={})=>{const t=Object.entries(m(e,r.e)).filter(([,e])=>Boolean(e)).map(([e])=>e),n=Object.entries(e).map(([e,t])=>[e,"function"==typeof t?"Function":t]).map(([e,t])=>[e,void 0===t?null:t]);return Object.assign({},Object.fromEntries(n),x(t))},k=e=>{new Promise(t=>t(e())).catch(e=>{throw new Error(e)})},P=e=>e>1280?"xlarge (> 1280)":e>=1024?"large (1024 - 1280)":e>=680?"medium (680 - 1024)":e>0?"small (< 680)":"unknown"},F3hY:function(e,t,n){"use strict";var r=n("iKGd");const i=()=>r.o,a=()=>r.m,s=()=>r.n;var o=n("9f1P"),c=n.n(o),u=n("7719"),l=n("VfuR"),d=n.n(l),p=n("L82M");const f=({size:e})=>{switch(e){case u.c:return Object(o.css)(["width:10px;height:10px;"]);case u.e:return Object(o.css)(["width:13px;height:13px;"]);case u.f:default:return Object(o.css)(["height:11px;width:11px;"])}},h=({status:e})=>{switch(e){case p.b:return Object(o.css)(["background:",";"],a());case p.a:default:return Object(o.css)(["background:",";"],s())}},b=c.a.div.withConfig({displayName:"VizExStatusIndicator",componentId:"sc-1i7q70l-0"})(["position:relative;display:inline-flex;::after{content:'';position:absolute;right:0;bottom:1px;border-radius:50%;border:2px solid;border-color:",";"," ","}"],i,f,h);b.propTypes={size:d.a.oneOf([u.c,u.e,u.f]),status:d.a.oneOf([p.b,p.a])};t.a=b},F4Hj:function(e,t,n){"use strict";var r=n("QYOI");const i=-1;var a=n("kg2E"),s=n("CXrm");t.a=Object(r.Record)({askForEmail:!0,askForEmailMessage:null,captureVisitorEmailAddress:!0,chatHeadingConfig:null,clientTriggers:new a.a,customConsentToProcessMessage:null,customConsentToCommunicateMessage:null,consentToCommunicateSubscriptionId:null,createdAt:null,creatorId:null,customEmailCaptureDelay:null,id:i,inboxId:null,initialMessage:null,lastEditedAt:null,lastEditorId:null,name:null,popMessageOnSmallScreens:!0,popOpenWelcomeMessage:!0,popOpenWidget:!1,portalId:null,gdprConsentToProcessEnabled:!1,gdprConsentToCommunicateEnabled:!1,cookieConsentPrompt:s.a,gdprExplicitConsentRequired:!0,knowledgeBaseEnabled:!1,searchableKnowledgeBaseIds:Object(r.List)(),quickRepliesDisplay:"NONE"},"Message")},FAYk:function(e,t,n){"use strict";n.r(t);n.d(t,"getKnowledgeBaseEnabled",(function(){return s}));var r=n("dLEV"),i=n("JGJA"),a=n("8dR1");const s=Object(r.createSelector)(a.a,Object(i.a)("knowledgeBaseEnabled"))},FBcP:function(e,t,n){"use strict";n.r(t);n.d(t,"getSessionId",(function(){return s}));var r=n("dLEV"),i=n("JGJA"),a=n("49A5");const s=Object(r.createSelector)(a.getLatestWidgetData,Object(i.a)("sessionId"))},FPMu:function(e,t,n){"use strict";n.r(t);n.d(t,"shouldRecordImplicitConsentToProcess",(function(){return c}));var r=n("dLEV"),i=n("LgEy"),a=n("8cLO"),s=n("49A5"),o=n("CM48");const c=Object(r.createSelector)([s.getLatestWidgetData,o.getUserHasGivenConsentToProcess],(e,t)=>Object(i.gdprConsentToProcessEnabled)(e)&&!Object(a.gdprExplicitConsentRequired)(e)&&!t)},FU2H:function(e,t,n){var r=n("8X3F"),i=n("gwVP"),a="[object Symbol]";function s(e){return"symbol"==typeof e||i(e)&&r(e)==a}e.exports=s},FfT4:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="RIGHT_ALIGNED",i="LEFT_ALIGNED"},Fkmh:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=5500},FubB:function(e,t,n){e.exports=n.dlbpr(1,70)},G0k2:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("a3lm"),i=n("Avso");const a=e=>Object(i.getAgentType)(e)===r.b},G2Xo:function(e,t,n){"use strict";var r=n("npjq");t.a=(e,t)=>{const n={};for(const e in t)"string"==typeof t[e]?n[e]=r.a.SafeString(t[e]):n[e]=t[e];return r.a.text(e,n)}},G53s:function(e,t,n){"use strict";var r=n("dLEV"),i=n("8dR1"),a=n("JGJA");const s=Object(a.a)("language"),o=Object(a.a)("searchableKnowledgeBaseIds"),c=Object(a.a)("gates");var u=n("49A5");n.d(t,"b",(function(){return l}));n.d(t,"a",(function(){return d}));const l=Object(r.createSelector)(u.getLatestWidgetData,e=>s(e)),d=Object(r.createSelector)(i.a,e=>o(e));Object(r.createSelector)(u.getLatestWidgetData,e=>c(e))},GHgd:function(e,t,n){"use strict";n.r(t);n.d(t,"timeOnPageTriggerEnabled",(function(){return o}));var r=n("ZqFO"),i=n("VvTX"),a=n("97n4"),s=n("UBEt");const o=e=>{const t=Object(r.f)(e),n=Object(i.getClientTriggers)(t),o=Object(a.c)(n);return Object(s.a)(o)}},GOyg:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("dLEV"),i=n("8dR1"),a=n("VvTX");const s=Object(r.createSelector)(i.a,a.getChatHeadingConfig)},GPZA:function(e,t,n){"use strict";const r={STARTED:"STARTED",ENDED:"ENDED"};t.a=r},GQQt:function(e,t,n){"use strict";n.r(t);n.d(t,"fetchAgentResponderIfNecessary",(function(){return f}));var r=n("aLTZ"),i=n("Mx3c"),a=n("kP7l"),s=n("6sJ9"),o=n("W/er"),c=n("KXN9"),u=n("FBcP"),l=n("Avso"),d=n("eEyY");const p=e=>e===i.BOT?r.a:r.b,f=({senderId:e,senderType:t})=>(n,r)=>{const i=Object(o.getResponders)(r()),f=Object(s.getResponderByIdAndType)({responders:i,senderId:e,senderType:t}),h=Object(c.a)(f),b=Object(l.getUserId)(h),g=Object(d.getCurrentThreadId)(r());if(!e||b||!g)return;const m=p(t);n(Object(a.fetchAgentResponder)({senderId:e,agentType:m,sessionId:Object(u.getSessionId)(r()),threadId:Object(d.getCurrentThreadId)(r())}))}},GRT8:function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));n.d(t,"b",(function(){return S}));var r=n("QYOI"),i=n("GcWH"),a=n("KO+H"),s=n("l0Ga"),o=n("V1/C"),c=n("xrOf"),u=n("KZZz"),l=n("P0El"),d=n("12C0"),p=n("nguO"),f=n("7Qhs"),h=n("0GyJ"),b=n("30KC"),g=n("6OYF"),m=n("xfs0"),O=n("XF21"),v=n("Tt13"),j=n("xw4j"),y=n("Blk5"),E=n("t+8h"),T=n("Mclz"),I=n("ikhY");const w=Object(r.List)([a.a,s.a,o.a,g.a]),S=Object(r.List)([i.a,u.a,h.a,p.a,E.a,p.b,v.a,T.a,I.a]).concat(w);Object(r.List)([d.a,c.a,f.a,l.a,b.a,m.a,O.a,j.a,y.a]).concat(S)},GTwN:function(e,t,n){"use strict";n.r(t);n.d(t,"getHasMessagesCookieBeenSaved",(function(){return s}));var r=n("dLEV"),i=n("B39b"),a=n("+U1B");const s=Object(r.createSelector)([a.a],e=>!Object(i.a)(e))},GXXt:function(e,t,n){"use strict";var r=n("3Yas"),i=n("QYOI");const a=()=>{};r.e.implement(null,a);r.e.implement(void 0,a);r.e.implementInherited(i.Iterable,(e,t)=>t.get(e));t.a=r.e},Gc2C:function(e,t,n){"use strict";const r=(e,t,n,r,i,a,s,o)=>{if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{const c=[n,r,i,a,s,o];let u=0;e=new Error("Invariant Violation: "+t.replace(/%s/g,()=>c[u++]))}e.framesToPop=1;throw e}};t.a=r},GcWH:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="INITIAL_MESSAGE"},GdKg:function(e,t,n){"use strict";var r=n("Lm/k"),i=n("9f1P"),a=n.n(i),s=n("VfuR"),o=n.n(s),c=n("7719"),u=n("V/xu"),l=n("Y+S9"),d=n.n(l),p=n("QgEn");const f=["size","src","contentStyle","alt"],h=({size:e})=>{const t=u.a[e];return Object(i.css)(["height:","px;width:","px;"],t,t)},b=a.a.div.withConfig({displayName:"VizExAvatar__VizExAvatarWrapper",componentId:"xc8ec9-0"})(["display:inline-flex;align-items:center;justify-content:center;box-sizing:content-box;font-size:initial;overflow:hidden;position:relative;border-radius:50%;",";"],h),g=a.a.div.withConfig({displayName:"VizExAvatar__VizExAvatarContent",componentId:"xc8ec9-1"})(["background-image:url(",");background-position:center center;background-size:cover;height:100%;width:100%;"],({src:e})=>`"${e}"`),m=a.a.img.withConfig({displayName:"VizExAvatar__VizExAvatarImg",componentId:"xc8ec9-2"})(["border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;"]),O=e=>{let{size:t=c.e,src:n=d.a,contentStyle:i,alt:a=""}=e,s=Object(r.a)(e,f);return Object(p.jsxs)(b,Object.assign({},s,{size:t,children:[Object(p.jsx)(g,{src:n,style:i}),Object(p.jsx)(m,{src:n,alt:a})]}))};O.displayName="VizExAvatar";O.propTypes={alt:o.a.string.isRequired,contentStyle:o.a.object,size:o.a.oneOf([c.a,c.c,c.f,c.e,c.d,c.b]),src:o.a.string};t.a=O},"GgP/":function(e,t,n){e.exports=n.dlbpr(1,9)},Gpbg:function(e,t,n){e.exports=n.dlbpr(1,85)},GqTt:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("0IK8"),i=n("xfs0");const a=e=>Object(r.getTopLevelType)(e)===i.a},H0uH:function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));n.d(t,"a",(function(){return f}));var r=n("dLEV"),i=n("v+ge"),a=n("Wiow"),s=n("esZR"),o=n("Ryja"),c=n("0PDK"),u=n("eg5p"),l=n("tRjK"),d=n("XUHx");const p=Object(r.createAction)(i.a,e=>({payload:e}));function f(e){return(t,n)=>{t(p(e));if(Object(c.getSelectedThreadId)(n())===u.a&&!Object(o.isCreatingThread)(n())){t(Object(a.resetStubbedThread)());t(Object(s.stageInitialMessage)())}t(Object(l.removeAllClientTriggers)());t(Object(d.bootstrapInitialWidgetUi)(e))}}},H5md:function(e,t,n){"use strict";n.r(t);n.d(t,"closeThreadMessageReceived",(function(){return s}));var r=n("PpSk"),i=n("cRNH"),a=n("H9dH");const s=({message:e,channel:t,thread:n})=>s=>{const o=Object(r.getThreadId)(n);Object(i.postConversationClosedEvent)({thread:n});s(Object(a.defaultMessageReceived)(e,t,o))}},H9dH:function(e,t,n){"use strict";n.r(t);n.d(t,"defaultMessageReceived",(function(){return u}));var r=n("0IK8"),i=n("Mx3c"),a=n("/OK6"),s=n("6sJ9"),o=n("W/er"),c=n("RqRq");function u(e,t,n,u){return(l,d)=>{const p=Object(o.getResponders)(d());let f;const h=Object(a.isFromVisitor)(e);if(!h){const t=Object(r.getSenderId)(e),n=Object(a.isFromBot)(e)?i.BOT:i.AGENT;f=Object(s.getResponderByIdAndType)({responders:p,senderType:n,senderId:t})}l(Object(c.receivedIncomingMessage)({message:e,channel:t,responder:f,shouldNotify:!(h||u&&u.playback),threadId:n}))}}},HCGK:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="AVAILABLE",i="AWAY"},HCbP:function(e,t,n){"use strict";n.r(t);var r=n("mEYk"),i=n.n(r),a=n("VYoM");const s=({id:e,sessionId:t})=>a.a.get("livechat-public/v1/feedback/survey/"+e,{query:{sessionId:t}});var o=n("dLEV"),c=n("JGJA");n.d(t,"updateFeedbackSurveyEnabled",(function(){return d}));n.d(t,"fetchFeedbackSurvey",(function(){return p}));n.d(t,"getFeedbackSurveyEnabled",(function(){return f}));const u=!1,l=Object(o.createSlice)({name:"feedbackSurveyEnabled",initialState:u,reducers:{updateFeedbackSurveyEnabled:(e,t)=>t.payload}}),{updateFeedbackSurveyEnabled:d}=l.actions;function p(e,t){return n=>s({id:e,sessionId:t}).then(({enabled:e})=>{n(d(e))}).catch(e=>{i.a.captureException(e)})}const f=e=>Object(c.a)("feedbackSurveyEnabled",e);t.default=l.reducer},HD2P:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("V/xu"),i=n("7719");function a({mobile:e,border:t=0}){return e?{flex:"0 0 32px",height:r.a[i.f]+2*t}:{height:r.a[i.e]+2*t}}},HTmY:function(e,t,n){var r=n("8i16"),i=function(){return r.Date.now()};e.exports=i},HY4P:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("I5zW");const i=Object(r.createMetricsFactory)("I18n",{library:"I18n"})},Hc3B:function(e,t,n){"use strict";var r=n("J1GE"),i=n.n(r);n.d(t,"a",(function(){return s}));class a{constructor(){this.playing=!1;this._url=i.a;this.audio=null;this.play=async()=>{if(!this.playing&&this.audio&&window.Audio){this.playing=!0;try{await this.audio.play()}catch(e){}this.playing=!1}};this.audio=new Audio(this._url);this.audio.load()}set url(e){this._url=e;if(this._url){this.audio=new Audio(this._url);this.audio.load()}else this.audio=null}get url(){return this._url}}const s=new a},HcHV:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("Ktcs");const i=e=>{const t=Object(r.lazy)(e);let n,i;const a=Object(r.forwardRef)((e,n)=>Object(r.createElement)(i||t,Object.assign(n?{ref:n}:{},e)));a.preload=()=>{n||(n=e().then(e=>{i=e.default}).catch(()=>{}));return n};return a}},HiOC:function(e,t,n){"use strict";n.r(t);var r=n("MJM1"),i=n("8R/H"),a=n("mEYk"),s=n.n(a),o=n("0BtU"),c=n("nDpY"),u=n.n(c),l=n("VYoM");const d=({sessionId:e,threadId:t,offsetTimestamp:n,offsetOrdinal:r})=>l.a.get("livechat-public/v1/conversationhistory/visitor/"+t,{query:{sessionId:e,offsetTimestamp:n,offsetOrdinal:r,portalId:u.a.get(),sortDirection:"DESCENDING",expectedResponseType:"WRAPPER_V2"}});var p=n("+tWo"),f=n("rLZs"),h=n("GQQt");n.d(t,"asyncFetchThreadHistory",(function(){return b}));n.d(t,"fetchThreadHistory",(function(){return g}));const b=Object(i.a)({requestFn:d,actionTypes:p.a,toRecordFn:o.a});function g({offsetOrdinal:e,offsetTimestamp:t,threadId:n,sessionId:i}){return a=>{a(b({offsetOrdinal:e,offsetTimestamp:t,threadId:n,sessionId:i})).then(({payload:e})=>{const t=Object(r.a)(["data","threadHistory"],e);Object(f.a)(t).forEach(e=>{const t=Object(r.a)(["senderId"],e),n=Object(r.a)(["senderType"],e);a(Object(h.fetchAgentResponderIfNecessary)({senderId:t,senderType:n}))})}).catch(e=>{s.a.captureException(e)})}}},Hjp8:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("QYOI"),i=n("qjq5"),a=n("JGJA"),s=n("0G/n"),o=n("8f+m");const c=Object(i.a)((e,t)=>t.map(t=>{const n=Object(a.a)("address",t);return Object(o.a)({actorId:null,recipientField:e,deliveryIdentifier:{type:s.b,value:n}})}).toList()),u=(c("TO"),c("CC"),c("BCC"),({type:e,value:t,vid:n})=>Object(r.List)([Object(o.a)({actorId:n?"V-"+n:null,deliveryIdentifier:{type:e||s.a,value:""+(t||n)},recipientField:null})]))},Hnb1:function(e,t,n){"use strict";var r=n("QYOI");const i=new r.Record({enabled:!1},"ExitIntentTrigger");t.a=i},Hnia:function(e,t,n){"use strict";n.r(t);n.d(t,"threadHistoryInvariant",(function(){return a}));var r=n("Gc2C"),i=n("+LtA");const a=e=>Object(r.a)(e instanceof i.a,"Expected threadHistory to be a `ThreadHistory` not a `%s`",typeof e)},HnnE:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("dLEV"),i=n("49A5"),a=n("ZqFO");const s=Object(r.createSelector)([i.getLatestWidgetData],e=>Object(a.d)(e))},HtM0:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return j}));var r=n("bSHG"),i=n("rCfO"),a=n("hbcS"),s=n("cSJ2"),o=n("BDBs"),c=n("6IxM"),u=n("J9Vo"),l=n("KtYw"),d=n("bVTf"),p=n("T1V9"),f=n("Jrno"),h=n("Vi1n"),b=n("n+iS");Object(i.default)(e=>!![...u.b,u.a,...f.b,f.a].find(t=>e.includes(t))),b.a,Object(i.default)((e,t=400)=>{const n=[c.a,l.a,u.c],i=Object(s.a)(e,r.a.TEXTONLY,n);return i&&i.length>t?i.substring(0,t):i});const g=Object(i.default)(({text:e,shouldRemoveGmailLineBreakBeforeReply:t=!1,shouldRemoveEmailSignature:n=!0,htmlConfig:i=r.a.HTML,shouldOpenLinksInNewTab:a=!1,allowedDomainsForIframe:b=[]})=>{const g=[...t?[d.a]:[],...n?[f.c]:[],...a?[p.a]:[]],m=[c.a,l.a,u.c,o.a,e=>Object(h.a)(Object.assign({},e,{allowedDomainsForIframe:b})),...g];return Object(s.a)(e,i,m)}),m=Object(i.default)(({text:e,shouldRemoveGmailLineBreakBeforeReply:t=!1,shouldRemoveEmailSignature:n=!1,htmlConfig:i=r.a.HTML,shouldOpenLinksInNewTab:a=!1,allowedDomainsForIframe:u=[]})=>{const b=[...t?[d.a]:[],...n?[f.c]:[],...a?[p.a]:[]],g=[c.a,l.a,o.a,e=>Object(h.a)(Object.assign({},e,{allowedDomainsForIframe:u})),...b];return Object(s.a)(e,i,g)}),O=e=>e.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),v=e=>e.replace(/ \s+{const{allowedDomainsForIframe:n,isPlainText:i,shouldAutolinkTwitter:s,shouldIncludeReplies:o,shouldOpenLinksInNewTab:c,shouldPreserveNewlines:u,shouldPreventAutoLinker:l,shouldRemoveEmailSignature:d,shouldRemoveGmailLineBreakBeforeReply:p}=t;if(!e)return"";const f=n?Object(r.b)():r.a.HTML,h=i?O(e):v(e);let b=o?m({text:h,shouldRemoveGmailLineBreakBeforeReply:p,shouldRemoveEmailSignature:d,shouldOpenLinksInNewTab:c,htmlConfig:f,allowedDomainsForIframe:n}):g({text:h,shouldRemoveEmailSignature:d,shouldRemoveGmailLineBreakBeforeReply:p,shouldOpenLinksInNewTab:c,htmlConfig:f,allowedDomainsForIframe:n});b=null===b||i||u?b:b.replace("\n","");const j=s?a.a.getTwitter():a.a.get();return l?b:j.link(b)};e&&e.exports&&(e.exports.default=Object.assign({},e.exports))}).call(this,n("IJKd")(e))},I5zW:function(e,t,n){e.exports=n.dlbpr(1,30)},I6ms:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"d",(function(){return s}));const r="UPDATE_GLOBAL_COOKIE_OPT_OUT",i="UPDATE_IS_FIRST_VISITOR_SESSION",a="UPDATE_SHOW_EXIT_INTENT_COOKIE_BANNER",s="UPDATE_VISITOR_IDENTIFICATION_ENABLED"},"IDM/":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("EN6V"),i=n("VToG"),a=n("nt9Q");const s=Object(a.a)(i.d,r.a)},IJKd:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]);Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}});Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}});Object.defineProperty(t,"exports",{enumerable:!0});t.webpackPolyfill=1}return t}},ISr8:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Ut5p"),a=n("KrP/"),s=n("xZ3y"),o=n("v+ge"),c=n("2Sm/"),u=n("3z2x"),l=n("ZqFO");const d=Object(r.Map)({consentToProcessStatus:u.b,consentToProcessError:!1});t.a=Object(i.c)({[s.GET_WIDGET_DATA_SUCCEEDED](e,t){const n=t.payload;return e.set("consentToProcessStatus",Object(l.e)(n))},[o.a](e,t){const n=t.payload;return e.set("consentToProcessStatus",Object(l.e)(n))},[Object(i.a)(c.a.SUCCEEDED,a.g,a.e)]:e=>e.set("consentToProcessStatus",u.b),[a.f]:e=>e.set("consentToProcessError",!0),[a.h]:e=>e.set("consentToProcessError",!1)},d)},IbXZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("apiEnableWidgetCookieBanner")},IcZZ:function(e,t,n){"use strict";var r=n("QYOI"),i=n("6xui"),a=n("Zui/"),s=n("Otz9"),o=n("p3n+"),c=n("6d8N"),u=n("NMIh");var l=Object(r.Record)({"@type":a.a,callId:0,callDurationMs:0,fromNumber:"",fromNumberExt:"",toNumber:"",toNumberExt:"",calleeCrmObjectId:0,calleeCrmObjectTypeId:""},"CallMetadata");var d=Object(r.Record)({"@type":a.f,address:"",latitude:0,longitude:0,name:"",url:""},"LocationMetadata");var p=Object(r.Record)({"@type":a.b,contactProfile:{}},"ContactMetadata");var f=Object(r.Record)({"@type":a.h,descriptors:Object(r.Map)()},"MessagePositionDescriptor");var h=Object(r.Record)({"@type":a.j},"UnsupportedContent");class b extends(Object(r.Record)({"@type":a.g,text:"",fileId:null},"MessageHeaderAttachment")){constructor(e={}){super(Object(r.fromJS)(e))}}var g=b;n.d(t,"a",(function(){return m}));const m=(e,t)=>Object(i.a)(Object(r.List)(),(e,n)=>{switch(!t||t[n["@type"]]?n["@type"]:null){case a.c:return e.push(Object(s.a)(Object(r.fromJS)(n)));case a.d:return e.push(Object(o.a)(Object(r.fromJS)(n)));case a.i:return e.push(new c.a(n));case a.e:return e.push(Object(u.a)(Object(r.fromJS)(n)));case a.a:return e.push(new l(n));case a.f:return e.push(new d(n));case a.b:return e.push(new p(n));case a.h:return e.push(f(Object(r.fromJS)(n)));case a.j:return e.push(new h(n));case a.g:return e.push(new g(n));default:return e}},e||Object(r.List)())},Iiq6:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("dLEV"),i=n("8dR1");const a=Object(r.createSelector)(i.a,(e={})=>!!e.popOpenWelcomeMessage)},ImcI:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("VToG"),i=n("nt9Q");const a=Object(i.a)(r.c)},InFa:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="circle",i="default"},IqZ3:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("dLEV"),i=n("OIId");const a=Object(r.createAction)(i.e,e=>({payload:{threadId:e}}))},Iqwl:function(e,t,n){"use strict";var r=n("QYOI"),i=n("ubOH"),a=n("fPyn"),s=n("KO+H"),o=n("9Mwj"),c=n("c1C1"),u=n("BvOu");class l extends(Object(r.Record)({"@type":s.a,id:null,text:"",timestamp:null,sender:Object(r.Map)(),status:Object(i.a)(),messageDeletedStatus:o.a,direction:"",channelInstanceId:null,genericChannelId:null,senders:Object(r.List)(),recipients:Object(r.List)()},"EmailCapturePromptMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(u.generateUuid)(),status:Object(a.a)(e.status),timestamp:e.timestamp||Object(c.generateUniqueClientTimestamp)("EmailCapturePromptMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=l},"J+m/":function(e,t,n){"use strict";n.r(t);n.d(t,"postUnreadConversationCountChangedEvent",(function(){return a}));var r=n("Ozt8"),i=n("mlLV");const a=({unreadCount:e})=>{Object(r.postExternalApiEvent)({eventType:i.UNREAD_CONVERSATION_COUNT_CHANGED,payload:{unreadCount:e}})}},J1GE:function(e,t){e.exports="//static.hsappstatic.net/conversations-visitor-ui/static-1.9449/audio/notification.mp3"},J4oD:function(e,t,n){"use strict";n.r(t);n.d(t,"historyDataForThread",(function(){return f}));var r=n("dLEV"),i=n("QYOI"),a=n("KXN9"),s=n("iRE0"),o=n("021p"),c=n("1UfY"),u=n("ye6p"),l=n("1EAY"),d=n("XZzj"),p=n("Ryja");const f=Object(r.createSelector)([c.a,u.a,p.getStagedThreadHistory,d.a],(e,t,n,r)=>{if(!Object(l.isPersistedThread)(t))return n;const c=Object(a.a)(e);if(!c)return null;const u=(Object(o.d)(c)||Object(i.OrderedMap)()).concat(r);return Object(s.a)(u,c)})},J9Vo:function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));n.d(t,"a",(function(){return s}));n.d(t,"c",(function(){return u}));var r=n("bSHG");const i="gmail_quote",a=["gmail_extra",i,"hs_reply","x_hs_reply_wrap"],s="divRplyFwdMsg",o=e=>e.querySelector("div[dir]"),c=(e,t)=>t===s||e&&e.contains&&a.some(t=>e.contains(t)),u=({node:e})=>{const{classList:t,id:n,attributes:a=[]}=e;if(c(t,n)){if(t.contains(i)&&!o(e))return null;const n=r.c.createElement("span");Object.values(a).forEach(e=>{e.nodeValue&&n.setAttribute(e.nodeName,e.nodeValue)});n.innerHTML="";n.setAttribute("data-email-reply","");return{node:n}}return null}},JGJA:function(e,t,n){"use strict";var r=n("qjq5"),i=n("GXXt");t.a=Object(r.a)(i.a)},JTxz:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=.1},JW3w:function(e,t,n){"use strict";n.r(t);n.d(t,"isActiveOnThread",(function(){return a}));var r=n("0PDK"),i=n("Pozp");function a(e,t){return t===Object(r.getSelectedThreadId)(e)&&Object(i.a)(e)}},Jcmd:function(e,t,n){"use strict";n.r(t);var r=n("dLEV"),i=n("r8xu"),a=n("1Vek"),s=n("QeSX"),o=n("Avso"),c=n("RaQM");const u=Object(r.createSelector)([c.getIsWidgetInAwayMode,s.getAssignedResponderInWidget],(e,t)=>Boolean(e&&t&&Object(o.getIsBot)(t)));var l=n("7vm7");n.d(t,"getFirstMessageText",(function(){return d}));const d=Object(r.createSelector)([i.a,a.a,u,l.getAvailabilityOfficeHoursWillReturnMessage],(e,t,n,r)=>n?e||r:e||t)},JoAZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("DrqF"),i=n("uB3n");const a=e=>Object(r.a)(e instanceof i.a,"Expected indexedData to be a `IndexedAsyncData` not a `%s`",typeof e)},JoGU:function(e,t,n){"use strict";var r=n("QYOI"),i=n("9Mwj"),a=n("ubOH"),s=n("Tt13");const o=Object(r.Record)({"@type":s.a,attachments:Object(r.List)(),feedbackTransactionId:null,id:null,messageDeletedStatus:i.a,recipients:Object(r.List)(),richText:"",sender:Object(r.Map)(),senders:Object(r.List)(),status:Object(a.a)(),text:"",threadId:null,timestamp:null,submissionId:null,direction:"",channelInstanceId:null,genericChannelId:null},"FeedbackSubmissionMessage");t.a=o},Jr27:function(e,t,n){"use strict";var r=n("Lm/k"),i=n("VfuR"),a=n.n(i),s=n("3MJX"),o=n("/mXs"),c=n("P7jJ"),u=n("9f1P"),l=n.n(u),d=n("CR0J"),p=n("NfCo"),f=n("InFa"),h=n("7719"),b=n("Tbmo"),g=n("57op"),m=n("PUb4");const O=e=>Object(m.a)("closeButton",e)||Object(g.i)(e),v=(Object(g.w)("closeButton"),{[h.c]:h.a,[h.f]:h.c,[h.e]:h.f});var j=n("QgEn");const y=["onClick","theme","size"],E=({size:e})=>{switch(e){case h.c:case h.f:return Object(u.css)(["margin-top:8px;margin-right:8px;"]);case h.e:default:return Object(u.css)(["margin-top:12px;margin-right:12px;"])}},T=l()(o.a).withConfig({displayName:"VizExCloseButton__ButtonContainer",componentId:"vpuy1s-0"})(["right:0;position:absolute;top:0;",""],E),I=e=>{const{onClick:t,theme:n,size:i}=e,a=Object(r.a)(e,y);return Object(j.jsx)(u.ThemeConsumer,{children:e=>Object(j.jsx)(T,Object.assign({},a,{onClick:t,theme:Object(b.a)(O(n||e),n||e),use:p.TRANSPARENT_ON_BACKGROUND,shape:f.a,size:i,children:Object(j.jsx)(c.a,{icon:Object(j.jsx)(s.a,{}),size:v[i||h.e]})}))})};I.displayName="VizExCloseButton";I.propTypes={onClick:a.a.func,size:a.a.oneOf([h.c,h.f,h.e]),theme:d.a};t.a=I},Jrbl:function(e,t,n){"use strict";var r=n("VfuR"),i=n.n(r),a=n("Ktcs"),s=n("QYOI"),o=n("S5kL"),c=n("Lm/k"),u=n("9f1P"),l=n.n(u),d=n("57op");n("iKGd");const p=d.f,f=d.e,h=(d.a,d.b,d.g,d.f,d.h,d.h);d.h;var b=n("CR0J"),g=n("QgEn");const m=["options","disabled","value","onChange","placeholder","theme"],O="__PLACEHOLDER_VALUE__",v=l.a.select.withConfig({displayName:"VizExMobileSelect__StyledSelect",componentId:"u4p6yt-0"})(["appearance:none;background:none;border-radius:3px;border:1px solid transparent;color:inherit;cursor:inherit;font-size:16px;margin:0;outline:none;padding:8px 32px 10px 10px;width:100%;height:40px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&::-ms-expand{display:none;}:focus::-ms-value{color:",";background:transparent;}"],({theme:e})=>Object(d.i)(e)),j=l.a.div.withConfig({displayName:"VizExMobileSelect__SelectContainer",componentId:"u4p6yt-1"})(["background-color:",";border-radius:3px;border:1px solid ",";cursor:pointer;display:block;font-size:16px;height:40px;line-height:22px;padding:0;position:relative;text-align:left;transition:all 0.15s ease-out;width:100%;&::after{border-color:transparent;border-style:solid;border-width:0.375em;display:inline-block;vertical-align:middle;border-top-color:",";margin-top:0.375em;margin-top:-3px;content:' ';position:absolute;top:50%;right:1em;z-index:2;pointer-events:none;}"],({theme:e})=>f(e),({theme:e})=>p(e),({theme:e})=>h(e)),y=e=>{const{options:t,disabled:n,value:r,onChange:i,placeholder:a,theme:s}=e,o=Object(c.a)(e,m),u=t.map(({value:e,text:t})=>Object(g.jsx)("option",{value:e,children:t},e));return Object(g.jsx)(j,{theme:s,children:Object(g.jsxs)(v,Object.assign({},o,{"data-test-id":"VizExSelect",disabled:n,defaultValue:O,value:r,onChange:i,theme:s,children:[a&&Object(g.jsx)("option",{disabled:!0,value:O,children:a}),u]}))})};y.displayName="VizExMobileSelect";y.propTypes={disabled:i.a.bool,onChange:i.a.func.isRequired,options:i.a.arrayOf(i.a.shape({text:i.a.string,value:i.a.string})).isRequired,placeholder:i.a.string,theme:b.a,value:i.a.string};var E=y,T=n("3S9s");const I="__PLACEHOLDER_VALUE__",w=({quickReplyOptions:e,onChange:t,disabled:n,value:r,placeholder:i,theme:s=Object(T.a)()})=>{const c=Object(a.useMemo)(()=>e.map(e=>{const t=Object(o.b)(e);return{text:Object(o.a)(e),value:t}}).toJS(),[e]);return Object(g.jsx)(E,{options:c,onChange:t,disabled:n,defaultValue:I,value:r,placeholder:i,theme:s})};w.displayName="QuickReplySelect";w.propTypes={disabled:i.a.bool,onChange:i.a.func.isRequired,placeholder:i.a.string,quickReplyOptions:i.a.instanceOf(s.OrderedSet).isRequired,theme:i.a.object,value:i.a.string};t.a=w},Jrno:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return a}));n.d(t,"c",(function(){return u}));var r=n("bSHG");const i="gmail_signature",a=["hs_signature"],s=e=>e&&e.contains&&a.some(t=>e.contains(t)),o=e=>Boolean(e&&e.innerHTML&&e.innerHTML.length),c=e=>e.classList&&e.classList.contains&&e.classList.contains(i)&&(o(e.nextElementSibling)||o(e.previousElementSibling)),u=({node:e})=>{const{classList:t}=e;if(c(e)||s(t)){const e=r.c.createElement("span");e.innerHTML="";return{node:e}}return null}},Jtfe:function(e,t,n){"use strict";var r=n("VfuR"),i=n.n(r),a=n("g/i1"),s=n("19qb"),o=n("ET5w"),c=n("57op"),u=n("iKGd"),l=n("Tbmo"),d=n("+KD7"),p=n("9f1P");const f=Object(p.css)(["font-weight:700;font-size:32px;line-height:44px;margin-top:0;margin-bottom:16px;"]),h=Object(p.css)(["font-weight:400;font-size:24px;line-height:30px;margin-top:0;margin-bottom:16px;"]),b=Object(p.css)(["font-weight:700;font-size:22px;line-height:30px;margin-top:0;margin-bottom:16px;"]),g=Object(p.css)(["font-weight:700;font-size:18px;line-height:26px;margin-top:0;margin-bottom:16px;"]),m=Object(p.css)(["font-weight:400;font-size:16px;line-height:26px;margin-top:0;margin-bottom:16px;"]),O=Object(p.css)(["font-weight:400;font-size:14px;line-height:24px;margin-top:0;margin-bottom:16px;"]),v=Object(p.css)(["h1{",";}h2{",";}h3{",";}h4{",";}h5{",";}h6{",";}"],f,h,b,g,m,O);var j=n("x+ne"),y=n("seb2");const E=Object(p.css)(["body{","}"," ",""],y.a,v,j.a);var T=n("wjRl");let I,w=e=>e;var S=Object(p.createGlobalStyle)(I||(I=w` *, ::after, ::before { box-sizing: border-box; } ${0} &:focus-visible { ${0} outline-offset: -2px; } `),E,T.a),A=n("CR0J"),C=n("QgEn");const x=({theme:e,children:t})=>Object(C.jsxs)(p.ThemeProvider,{theme:e,children:[t,Object(C.jsx)(S,{})]});x.displayName="VizExThemeProvider";x.propTypes={children:i.a.node,theme:A.a};var R=x;const k=({children:e})=>{const t=Object(s.useSelector)(a.a),{accentColor:n,useDefaultColor:r}=t,i=[];if(r){i.push(Object(c.t)(d.b));i.push(Object(l.a)(u.c))}else n&&i.push(Object(c.t)(n));return Object(C.jsx)(R,{theme:Object(o.a)(...i),children:e})};k.displayName="ThemeProvider";k.propTypes={children:i.a.node};t.a=k},JxGV:function(e,t,n){"use strict";var r=n("QYOI"),i=n("ubOH"),a=n("fPyn"),s=n("V1/C"),o=n("9Mwj"),c=n("c1C1"),u=n("BvOu");class l extends(Object(r.Record)({"@type":s.a,id:null,text:"",officeHoursStartTime:null,timestamp:null,sender:Object(r.Map)(),status:Object(i.a)(),messageDeletedStatus:o.a,direction:"",senders:Object(r.List)(),recipients:Object(r.List)(),genericChannelId:null,channelInstanceId:null},"OfficeHoursMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(u.generateUuid)(),status:Object(a.a)(e.status),timestamp:e.timestamp||Object(c.generateUniqueClientTimestamp)("OfficeHoursMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=l},JxxT:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"a",(function(){return a}));n.d(t,"d",(function(){return s}));const r=68,i=247,a=92,s=44},"K+6d":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"d",(function(){return a}));n.d(t,"e",(function(){return s}));n.d(t,"b",(function(){return o}));const r="agentId",i="@type",a="botId",s="vid",o="agentType"},K7Yy:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="FEEDBACK_SURVEY"},KDEO:function(e,t,n){"use strict";n.r(t);n.d(t,"typingMessageReceived",(function(){return u}));var r=n("0IK8"),i=n("/OK6"),a=n("Fkmh"),s=n("+lXL"),o=n("qg6t"),c=n("2+C7");const u=(e,t)=>n=>{if(Object(i.isFromVisitor)(e))return;const u=Object(r.getSenderId)(e);n(Object(c.clearExistingTypingTimeout)(e,t));const l=setTimeout(()=>{n(Object(o.dismissTypingIndicator)(e,t))},a.a);n(Object(s.addTypingTimeoutIdForAgentInThread)(t,u,l))}},"KO+H":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="EMAIL_CAPTURE_PROMPT"},KXCN:function(e,t,n){"use strict";var r=n("QYOI");t.a=Object(r.Record)({globalCookieOptOut:null,isFirstVisitorSession:!0},"VisitorIdentity")},KXN9:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return a}));n.d(t,"c",(function(){return s}));var r=n("JGJA");const i=e=>Object(r.a)("data",e),a=e=>Object(r.a)("error",e),s=e=>Object(r.a)("status",e)},KZZz:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="THREAD_COMMENT"},"Kjd/":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("2Zef"),i=n("0IK8");const a=/^AGENT-([0-9]+)(?:$|:.+)/,s="API-republish",o=({message:e,clientId:t})=>{if(Object(i.getSenderTypeForCMF)(e)===r.AGENT_SENDER&&t!==s){const n=a.exec(t);if(!n||isNaN(parseInt(n[1],10))||parseInt(n[1],10)!==Object(i.getSenderId)(e))throw new Error("malformed message")}}},"KrP/":function(e,t,n){"use strict";n.d(t,"d",(function(){return r}));n.d(t,"g",(function(){return i}));n.d(t,"f",(function(){return a}));n.d(t,"e",(function(){return s}));n.d(t,"a",(function(){return o}));n.d(t,"c",(function(){return c}));n.d(t,"b",(function(){return u}));n.d(t,"h",(function(){return l}));const r="CONSENT_TO_PROCESS",i="CONSENT_TO_PROCESS_SUCCEEDED",a="CONSENT_TO_PROCESS_FAILED",s="CONSENT_TO_PROCESS_CLOSED",o="CONSENT_TO_COMMUNICATE",c="CONSENT_TO_COMMUNICATE_SUCCEEDED",u="CONSENT_TO_COMMUNICATE_FAILED",l="DISMISS_CONSENT_TO_COMMUNICATE_ERROR"},KtYw:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("bSHG");const i=({node:e,node_name:t})=>{if("div"===t&&e&&e.classList&&e.classList.contains("gmail_default")){const t=r.c.createElement("span");Object.values(e.attributes).forEach(e=>{try{e.nodeValue&&t.setAttribute(e.nodeName,e.nodeValue)}catch(e){}});t.innerHTML=e.innerHTML.trim();return{node:t}}return null}},Ktcs:function(e,t,n){e.exports=n.dlbpr(1,68)},L82M:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="online",i="offline"},L8e7:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("JGJA"),i=n("Zui/"),a=n("9F2+");const s=e=>{const t=Object(a.a)(e);if(t)return t.find(e=>Boolean(e&&Object(r.a)("@type",e)===i.c))}},L9oQ:function(e,t,n){"use strict";n.r(t);n.d(t,"selectThread",(function(){return a}));var r=n("dLEV"),i=n("Qvwz");const a=Object(r.createAction)(i.b,e=>({payload:{threadId:e}}))},LJpC:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("qjq5"),i=n("Avso");const a=Object(r.a)((e,t)=>Object(i.getAgentState)(t)===e)},LN55:function(e,t,n){e.exports=n.dlbpr(1,19)},LPbX:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="CONTACT_ASSOCIATION"},LZPL:function(e,t,n){e.exports=n.dlbpr(0,16)},LdnN:function(e,t,n){"use strict";var r=n("EuUD");const i="\\.",a='\\s\\?\\#\\/\\(\\)\\=\\:\\;\\@\\\\"'+i,s=`(?:www${i})`,o="(?:[%a-zA-Z0-9_-]+)",c="(?:(?:\\.[%a-zA-Z0-9-]+)[^\\.\\s])",u="\\s\\?\\#\\&";var l=new RegExp(`^(?:.+)@${{www:s,domain:`${s}?(?:(?:[^${a}]+)${i})+(?:[^${a}]+)`,protocol:"(?:(?:https?:)?\\/\\/)",protocolRequired:"(?:https?:\\/\\/)",path:"(?:(?:\\/[^\\s\\/\\#\\&\\?]*)+\\/?)",wildcardPath:"(?:(/(?:[%a-zA-Z0-9_-])*?)*(?:/[\\*]))",file:`${o}${c}`,fileName:o,fileExtension:c,search:`(?:([\\?&#][^${u}]*?=?([^${u}]*))+)`,ungroupedSearch:`(?:(?:[\\?&#][^${u}]*?=?(?:[^${u}]*))+)`}.domain}$`);t.a=Object(r.a)({name:"EmailAddress",validator:e=>l.test(e)})},LgEy:function(e,t,n){"use strict";n.r(t);n.d(t,"gdprConsentToProcessEnabled",(function(){return s}));var r=n("DdHT"),i=n("ZqFO"),a=n("VvTX");const s=Object(r.a)(i.f,a.getGdprConsentToProcessEnabled)},Li7z:function(e,t,n){"use strict";n.r(t);n.d(t,"getUrlForMessage",(function(){return i}));var r=n("8CDR");const i=()=>{const e=window.location!==window.parent.location?document.referrer:document.location.origin;return new r.a(e).hostplus}},"Lm/k":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n])}return i}},Los8:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(e,t="true")=>!!e&&t.includes(e)},Lp6C:function(e,t,n){"use strict";n.r(t);n.d(t,"shouldCaptureVisitorEmailAddress",(function(){return s}));var r=n("dLEV"),i=n("VvTX"),a=n("8dR1");const s=Object(r.createSelector)(a.a,i.getCaptureVisitorEmailAddress)},LrxL:function(e,t,n){"use strict";var r=n("QYOI"),i=n("7Qhs");const a="TICKET",s=["@type"],o=["pipelineId"],c=["pipelineName"],u=["pipelineStageId"],l=["pipelineStage"];var d=Object(r.Record)({connectedObjectSourceId:null,name:null,objectTypeId:null},"CrmCreationSource");class p extends(Object(r.Record)({[s]:null,pipelineId:null,pipelineName:null,pipelineStageId:null,pipelineStage:null,crmCreationSource:null},"TicketUpdateMetadata")){constructor(e={}){super(Object.assign({},e,{crmCreationSource:e.crmCreationSource?d(e.crmCreationSource):null}))}}var f=p;var h=Object(r.Record)({[s]:null,toObjectType:null,toObjectId:null,toObjectName:null,updateType:null,auditParams:null},"TicketAssociationUpdateMetadata");const b="ASSOCIATION_UPDATED";var g=n("MJM1");const m=Object(g.a)(s),O=(Object(g.a)(o),Object(g.a)(c),Object(g.a)(u),Object(g.a)(l),(e,t)=>{switch(e){case a:return m(t)===b?new h(t):new f(t);default:return null}});n.d(t,"a",(function(){return v}));class v extends(Object(r.Record)({"@type":i.a,id:null,objectType:null,objectId:null,objectName:null,source:null,sourceId:null,crmObjectUpdate:null,timestamp:null},"CrmObjectLifecycleUpdate")){constructor(e={}){super(Object.assign({},e,{crmObjectUpdate:O(e.objectType,e.crmObjectUpdate)}))}}},Lu5y:function(e,t,n){"use strict";n.r(t);n.d(t,"buildWidgetData",(function(){return g}));var r=n("DdHT"),i=n("qjq5"),a=n("QYOI"),s=n("mEYk"),o=n.n(s),c=n("xe9j"),u=n("wQJz"),l=n("+lAi"),d=n("vSPC"),p=n("Vfyk"),f=n("5tDa"),h=n("G0k2");const b=Object(i.a)((e,t)=>Object(a.Map)(t).merge(e).set("coloring",Object(d.a)(t.accentColor))),g=(e={})=>{var t;const n=e.sendFrom||[],i=e.sendFrom||[],s=Object(h.a)(null==e||null===(t=e.sendFrom)||void 0===t?void 0:t[0])?Object(u.a)(i[0]):null,d=s||i[0];let g;try{g=Object(r.a)(b({availabilityOptions:new p.a(e.availabilityOptions),botResponder:s,gates:Object(a.Map)(e.gates),inOfficeHours:e.inOfficeHours,message:Object(f.a)(e.message),messagesPageUri:e.messagesPageUri,nextStartTime:e.nextOfficeHoursStartTime,responder:Object(u.a)(d),responders:Object(a.List)(n).map(u.a),sendFrom:Object(a.List)(i).map(u.a),typicalResponseTime:Object(l.a)(e.typicalResponseTime),widgetLocation:e.widgetLocation}),c.a)(e)}catch(t){o.a.captureException(t,{extra:{data:e}})}return g}},M1Uo:function(e,t,n){"use strict";var r=n("MJM1");const i=["currentStatus"],a=["previousStatus"],s=["auditParams"];n.d(t,"a",(function(){return o}));n.d(t,"b",(function(){return c}));const o=Object(r.a)(i),c=Object(r.a)(a);Object(r.a)(s)},M5PA:function(e,t,n){"use strict";var r=n("MZef"),i=n("4cwC"),a=n("y+PV"),s=n("stzZ"),o=n("uB3n"),c=n("eJ3n"),u=n("ZqFO"),l=n("wQJz"),d=n("PpSk"),p=n("Ut5p"),f=n("xZ3y"),h=n("fjpq"),b=n("bXuJ"),g=n("eSJp");const m=Object(o.a)({name:"responders",idInvariant:g.a,idTransform:e=>e,notSetValue:Object(r.a)({data:Object(l.a)()})});t.a=Object(p.c)({[f.GET_WIDGET_DATA_SUCCEEDED](e,t){const{payload:n}=t;return Object(u.g)(n).reduce((e,t)=>{const n=Object(b.c)(t);return Object(c.a)(n,Object(s.a)(()=>t),e)},e)},[f.GET_VISITOR_THREADS_SUCCESS](e,t){const{threads:n}=t.payload,r=[];n.forEach(e=>{const t=Object(d.getResponder)(e);t&&r.push(t)});return r.reduce((e,t)=>{const n=Object(b.c)(t);return Object(c.a)(n,Object(s.a)(()=>t),e)},e)},[h.a.STARTED](e,{payload:t}){const n=Object(b.b)(t.requestArgs);return Object(c.a)(n,a.a,e)},[h.a.FAILED](e,{payload:t}){const n=Object(b.b)(t.requestArgs);return Object(c.a)(n,i.a,e)},[h.a.SUCCEEDED](e,{payload:t}){const n=Object(b.b)(t.requestArgs);return Object(c.a)(n,Object(s.a)(()=>t.data),e)}},m)},M9tH:function(e,t,n){"use strict";var r=n("9Utk"),i=n.n(r),a=n("Hc3B"),s=n("C3IS"),o=n("xZ3y"),c=n("Mx3c"),u=n("0IK8"),l=n("JGJA");const d=2e3,p=()=>{const e=i()(a.a.play,d,{leading:!0,trailing:!1,maxWait:d});function t(e){const t=Object(u.getSenderType)(e);return t===c.AGENT||t===c.BOT}return n=>r=>{switch(r.type){case o.GET_WIDGET_DATA_SUCCEEDED:{const e=Object(l.a)("notificationAudio",r.payload);"string"==typeof e&&(a.a.url=e);break}case o.RECEIVED_INCOMING_MESSAGE:{const{message:n,shouldNotify:i}=r.payload;i&&t(n)&&Object(s.b)(n)&&!Object(s.c)(n)&&e();break}case o.OPEN_CONVERSATION_FOR_NEW_CHANNEL:{const{shouldNotifyBySound:t}=r.payload;t&&e();break}}return n(r)}};t.a=p},MBJP:function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));n.d(t,"a",(function(){return o}));function r(e,t){return e===t}function i(e,t=r){let n=null,i=null;return(...r)=>{null!==n&&n.length===r.length&&r.every((e,r)=>t(e,n[r]))||(i=e(...r));n=r;return i}}function a(e){const t=Array.isArray(e[0])?e[0]:e;if(!t.every(e=>"function"==typeof e)){const e=t.map(e=>typeof e).join(", ");throw new Error(`Selector creators expect all input-selectors to be functions, instead received the following types: [${e}]`)}return t}function s(e,...t){return(...n)=>{let r=0;const i=n.pop(),s=a(n),o=e((...e)=>{r++;return i(...e)},...t),c=(e,t,...n)=>{const r=s.map(r=>r(e,t,...n));return o(...r)};c.resultFunc=i;c.recomputations=()=>r;c.resetRecomputations=()=>r=0;return c}}const o=s(i)},MD34:function(e,t,n){"use strict";function r(e,t,n){(e=arguments.length>1?e.then(t,n):e).then(null,e=>{setTimeout(()=>{throw e},0)})}t.a=r},MEud:function(e,t,n){"use strict";n.r(t);n.d(t,"clearUnseenCountForChannel",(function(){return l}));var r=n("dLEV"),i=n("c2PF"),a=n("9zF3"),s=n("xZ3y"),o=n("J+m/"),c=n("PpSk");const u=Object(r.createAction)(s.CLEAR_UNSEEN_COUNT_FOR_CHANNEL,({channel:e,threadId:t})=>({payload:{channel:e,threadId:t}})),l=({channel:e,threadId:t})=>(n,r)=>{const s=Object(i.getThreadByThreadId)(r(),{threadId:t});if(Object(c.getUnseenCount)(s)>0){n(u({channel:e,threadId:t}));const i=Object(a.calculateUnseenThreadsCount)(r());Object(o.postUnreadConversationCountChangedEvent)({unreadCount:i})}}},MJM1:function(e,t,n){"use strict";var r=n("TaVT"),i=n("qjq5");t.a=Object(i.a)(r.a)},MM1n:function(e,t,n){"use strict";var r=n("QYOI"),i=n("3Yas");i.d.implement(Array,(e,t)=>t.filter(e));i.d.implementInherited(r.Iterable,(e,t)=>t.filter(e));i.d.implement(Object,(e,t)=>{const n={},r=Object.keys(t),i=r.length;for(let a=0;at.reduce((n,r,i)=>e(r,i,t)?n.set(i,r):n,Object(r.Map)()));t.a=i.d},MWj0:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"d",(function(){return s}));n.d(t,"e",(function(){return o}));n.d(t,"f",(function(){return c}));n.d(t,"h",(function(){return u}));n.d(t,"i",(function(){return l}));n.d(t,"j",(function(){return d}));n.d(t,"w",(function(){return p}));n.d(t,"g",(function(){return f}));n.d(t,"k",(function(){return h}));n.d(t,"m",(function(){return b}));n.d(t,"n",(function(){return g}));n.d(t,"o",(function(){return m}));n.d(t,"p",(function(){return O}));n.d(t,"q",(function(){return v}));n.d(t,"s",(function(){return j}));n.d(t,"t",(function(){return y}));n.d(t,"u",(function(){return E}));n.d(t,"v",(function(){return T}));n.d(t,"x",(function(){return I}));n.d(t,"y",(function(){return w}));n.d(t,"z",(function(){return S}));n.d(t,"r",(function(){return A}));n.d(t,"l",(function(){return C}));const r=["attachments"],i=["auditParams"],a=["clientType"],s=["contentType"],o=["directReplyToMessageId"],c=["status","sendFailure","errorMessage"],u=["id"],l=["inReplyToId"],d=["status","sendFailure","localizedErrorKey"],p=["strippedAttachmentCount"],f=["hasInlineImagesStripped"],h=["messageDeletedStatus"],b=["id"],g=["status","sendFailure"],m=["status","messageStatus"],O=["status","timestamp"],v=["recipients"],j=["richText"],y=["sender"],E=["sender","@type"],T=["status"],I=["text"],w=["timestamp"],S=["@type"],A=["recipientField"],C=["direction"]},MYjy:function(e,t,n){"use strict";var r=n("QYOI");const i=Object(r.Record)({type:"",value:""},"DeliveryIdentifier");t.a=i},MZef:function(e,t,n){"use strict";var r=n("QYOI"),i=n("VToG");const a=Object(r.Record)({data:null,error:null,status:i.e,updatedAt:null},"AsyncData");t.a=a},Mclz:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="BATCH_SMS_GENERATED_USER_MESSAGE"},Mcxo:function(e,t,n){"use strict";var r=n("9f1P"),i=n.n(r),a=n("57op");const s="help",o="default",c="error";var u=n("x+ne");const l=({use:e,theme:t})=>{switch(e){case c:return Object(r.css)(["color:",";"],Object(a.c)(t));case s:return Object(r.css)(["color:",";"],Object(a.d)(t));case o:default:return null}},d=i.a.small.withConfig({displayName:"VizExSmall",componentId:"d1610r-0"})(["display:block;",";",";"],u.b,l);t.a=d},MfaD:function(e,t,n){"use strict";var r=n("QYOI"),i=n("ubOH"),a=n("fPyn"),s=n("6OYF"),o=n("9Mwj"),c=n("c1C1"),u=n("BvOu"),l=n("OxGf");class d extends(Object(r.Record)({"@type":s.a,id:null,text:"",timestamp:null,sender:Object(r.Map)(),status:Object(i.a)(),messageDeletedStatus:o.a,direction:l.b,genericChannelId:null,channelInstanceId:null,senders:Object(r.List)(),recipients:Object(r.List)()},"TypicalResponseTimeMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(u.generateUuid)(),status:Object(a.a)(e.status),timestamp:e.timestamp||Object(c.generateUniqueClientTimestamp)("TypicalResponseTimeMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=d},Mjj8:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=204},Mjoc:function(e,t,n){"use strict";n.r(t);var r=n("bahz"),i=n("1pGl"),a=n("Wtyj");t.default=e=>{const t=Object(r.a)(Object.assign({},e,{__localesCacheKey:a.a}));if(!e||e&&!e.manuallySetLocale){let e=i.a;navigator&&navigator.languages&&navigator.languages[0]?e=navigator.languages[0]:navigator&&navigator.language&&(e=navigator.language);t.setLocale({locale:e,langEnabled:!0})}return t}},Mx3c:function(e,t,n){"use strict";n.r(t);n.d(t,"AGENT",(function(){return r}));n.d(t,"VISITOR",(function(){return i}));n.d(t,"BOT",(function(){return a}));n.d(t,"SYSTEM",(function(){return s}));n.d(t,"INTEGRATOR",(function(){return o}));n.d(t,"EMAIL",(function(){return c}));const r="AGENT",i="VISITOR",a="BOT",s="SYSTEM",o="INTEGRATOR",c="EMAIL"},N4ZN:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("4SpI"),i=n("q4JX"),a=n("0PDK"),s=n("ng2a"),o=n("c2PF"),c=n("y5/z"),u=n("PpSk");function l(e){return(t,n)=>{const l=Object(a.getSelectedThreadId)(n()),d=Object(o.getThreadByThreadId)(n(),{threadId:l}),p=Object(u.getChannelName)(d),f=Object(i.a)(e);t(Object(s.removeMessageInConversation)({message:f,threadId:l}));t(Object(r.publishMessage)({channel:p,message:f,threadId:l}));t(Object(c.trackInteraction)("republish-message"))}}},N76F:function(e,t,n){"use strict";n.r(t);n.d(t,"onContactAssociated",(function(){return a}));var r=n("Ozt8"),i=n("mlLV");const a=()=>{Object(r.postExternalApiEvent)({eventType:i.CONTACT_ASSOCIATED,payload:{message:"Contact has been associated"}})}},N7dr:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"d",(function(){return s}));const r=["data"],i=["error"],a=["status"],s=["updatedAt"]},NDfM:function(e,t,n){"use strict";n.r(t);n.d(t,"postStartTrackExitIntent",(function(){return a}));var r=n("n6ol"),i=n("CITH");const a=()=>{Object(i.a)(r.u)}},NIjC:function(e,t,n){"use strict";var r=n("QYOI"),i=n("9Mwj"),a=n("12C0");class s extends(Object(r.Record)({"@type":a.a,id:null,timestamp:null,contexts:Object(r.Map)(),hiddenFromVisitor:!1,messageDeletedStatus:i.a},"ContextUpdateMessage")){constructor(e={}){super(Object.assign({},e,{contexts:e.contexts&&e.contexts?Object(r.fromJS)(e.contexts):Object(r.Map)()}))}}t.a=s},NL4B:function(e,t,n){"use strict";n.r(t);n.d(t,"getId",(function(){return i}));n.d(t,"getType",(function(){return a}));var r=n("MJM1");const i=Object(r.a)(["senderId"]),a=Object(r.a)(["senderType"])},NMIh:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Zui/");const a=Object(r.Record)({"@type":i.e,fileIdsByStatus:Object(r.Map)(),hasInlineImagesStripped:!1},"InlineImageStatusAttachments");t.a=a},NPWD:function(e,t){hns("I18n",{translations:{en:{i18n:{duration:{seconds:"{{ seconds }} sec",minutes:"{{ minutes }} min",hours:"{{ hours }} hr",hoursAndMinutes:"{{ hours }} hr {{ minutes }} min",days:"{{ days }} days",shortForm:{seconds:"{{ seconds }}s",minutes:"{{ minutes }}m",hours:"{{ hours }}h",days:"{{ days }}d",hoursAndMinutes:"{{ hours }}h {{ minutes }}m"}},dateTime:{quarterAndYear:"Q{{quarterNumber}} {{yearNumber}}"},numberRepresentation:{fraction:"{{ numerator }}/{{ denominator }}",numberWithCurrencyCode:"{{currencyCode}} {{amountNumberValue}}",phoneNumberWithExtension:"{{phoneNumber}}, ext. {{extension}}"}}}}})},NQPJ:function(e,t,n){"use strict";n.r(t);n.d(t,"fetchVisitorThreads",(function(){return a}));var r=n("VYoM");const i="livechat-public/v1";function a({sessionId:e}){return r.a.get(i+"/thread/visitor/recent",{query:{sessionId:e}}).then(e=>Array.isArray(e)?e.map(e=>{e.responder?e.assignedAgentId=e.responder.userId:e.assignedAgentId=null;e.channelDetails=e.channel;delete e.channel;e.unseenCount=e.hasUnreadMessages?1:0;return e}):[])}},NRxt:function(e,t,n){"use strict";var r=n("QYOI"),i=n("JGJA");var a=Object(r.Record)({bouncedEmailAddress:null},"ErrorMessageTokens");const s=Object(r.Record)({localizedErrorKey:null,errorMessage:null,errorMessageTokens:null,retryable:!1},"SendFailure");t.a=function(e){if(!e)return s();const t=Object(i.a)("localizedErrorKey",e)||null,n=Object(i.a)("errorMessage",e)||null,r=Object(i.a)("errorMessageTokens",e)||null,o=r&&a(r),c=Object(i.a)("retryable",e)||!1;return s({localizedErrorKey:t,errorMessage:n,errorMessageTokens:o,retryable:c})}},NT8A:function(e,t,n){"use strict";var r=n("QYOI"),i=n("9Mwj"),a=n("30KC");class s extends(Object(r.Record)({"@type":a.a,id:null,timestamp:null,hiddenFromVisitor:!1,messageDeletedStatus:i.a,originInboxId:null,auditParams:Object(r.Map)(),destinationInboxId:null},"InboxUpdateMessage")){constructor(e={}){super(Object.assign({},e,{auditParams:Object(r.Map)(e.auditParams)}))}}t.a=s},NfCo:function(e,t,n){"use strict";n.r(t);n.d(t,"PRIMARY",(function(){return r}));n.d(t,"TRANSPARENT_ON_BACKGROUND",(function(){return i}));n.d(t,"TRANSPARENT_ON_PRIMARY",(function(){return a}));const r="primary",i="transparent-on-background",a="transparent-on-primary"},NqZZ:function(e,t,n){"use strict";n.r(t);n.d(t,"getIsUserTrackingAllowed",(function(){return u}));var r=n("dLEV"),i=n("49A5"),a=n("c/Yf"),s=n("xeq1"),o=n("yy6y"),c=n("CM48");const u=Object(r.createSelector)([i.getLatestWidgetData,a.getGlobalCookieOptOut,c.getUserHasGivenConsentToProcess],(e,t,n)=>{const r=Object(s.getIsPortal53Prod)(),i=Object(o.getShouldListenToGdprBannerConsent)(e);return t!==a.OPT_OUT_YES&&(t===a.OPT_OUT_NO||(!r||!i)&&n)})},OBCX:function(e,t,n){"use strict";n.r(t);n.d(t,"addTimeOnPageTriggerAction",(function(){return a}));var r=n("dLEV"),i=n("VB2T");const a=Object(r.createAction)(i.a,e=>({payload:{timeoutId:e}}))},OBPj:function(e,t,n){"use strict";n.r(t);n.d(t,"getShowPreviousConversations",(function(){return s}));var r=n("dLEV"),i=n("ZqFO"),a=n("49A5");const s=Object(r.createSelector)([a.getLatestWidgetData],e=>Object(i.i)(e))},OHie:function(e,t,n){"use strict";n.r(t);var r=n("qjq5"),i=n("QYOI"),a=n("3Yas");a.m.implement(Array,(e,t)=>Object(i.Seq)(t).sortBy(e).toArray());a.m.implementInherited(i.Iterable,(e,t)=>t.sortBy(e));a.m.implement(Object,(e,t)=>Object(i.Seq)(t).sortBy(e).toObject());var s=a.m,o=Object(r.a)(s),c=n("xCrP"),u=n("/He/"),l=n("0IK8");n.d(t,"sortMessages",(function(){return d}));const d=e=>Object(c.a)(u.h,o(l.getTimestamp),e)},OIId:function(e,t,n){"use strict";n.d(t,"c",(function(){return r}));n.d(t,"d",(function(){return i}));n.d(t,"b",(function(){return a}));n.d(t,"g",(function(){return s}));n.d(t,"e",(function(){return o}));n.d(t,"a",(function(){return c}));n.d(t,"f",(function(){return u}));const r="ATTACHMENT_UPLOAD_PROGRESS",i="ATTACHMENT_UPLOAD_START",a="ATTACHMENT_UPLOAD_COMPLETE",s="REMOVE_ATTACHMENT",o="CLEAR_ATTACHMENTS",c="ATTACHMENT_ERROR",u="DISMISS_ATTACHMENTS_ERROR"},OPip:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("qjq5"),i=n("JoAZ"),a=n("x1JE");const s=Object(r.a)((e,t)=>{Object(i.a)(t);const n=Object(a.getIdInvariant)(t),r=Object(a.getName)(t);try{n(e)}catch(t){t.indexedAsyncDataName=r;t.indexedAsyncDataValue=JSON.stringify(e);throw t}})},OS0G:function(e,t){function n(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.t-4:t.t:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function o(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===s(e)?e.get(t):e[t]}function u(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function l(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return G&&e instanceof Map}function p(e){return W&&e instanceof Set}function f(e){return e.i||e.u}function h(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=X(e);delete t[Y];for(var n=Z(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&a(e,(function(e,t){return b(t,!0)}),!0)),e}function g(){n(2)}function m(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function O(e){var t=$[e];return t||n(18,e),t}function v(e,t){$[e]||($[e]=t)}function j(){return U}function y(e,t){t&&(O("Patches"),e.o=[],e.v=[],e.s=t)}function E(e){T(e),e.p.forEach(w),e.p=null}function T(e){e===U&&(U=e.l)}function I(e){return U={p:[],l:U,h:e,_:!0,m:0}}function w(e){var t=e[Y];0===t.t||1===t.t?t.j():t.O=!0}function S(e,t){t.m=t.p.length;var r=t.p[0],a=void 0!==e&&e!==r;return t.h.S||O("ES5").P(t,e,a),a?(r[Y].M&&(E(t),n(4)),i(e)&&(e=A(t,e),t.l||x(t,e)),t.o&&O("Patches").g(r[Y].u,e,t.o,t.v)):e=A(t,r,[]),E(t),t.o&&t.s(t.o,t.v),e!==q?e:void 0}function A(e,t,n){if(m(t))return t;var r=t[Y];if(!r)return a(t,(function(i,a){return C(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.M)return x(e,r.u,!0),r.u;if(!r.R){r.R=!0,r.A.m--;var i=4===r.t||5===r.t?r.i=h(r.k):r.i;a(3===r.t?new Set(i):i,(function(t,a){return C(e,r,i,t,a,n)})),x(e,i,!1),n&&e.o&&O("Patches").F(r,n,e.o,e.v)}return r.i}function C(e,t,n,a,s,c){if(r(s)){var l=A(e,s,c&&t&&3!==t.t&&!o(t.D,a)?c.concat(a):void 0);if(u(n,a,l),!r(l))return;e._=!1}if(i(s)&&!m(s)){if(!e.h.K&&e.m<1)return;A(e,s),t&&t.A.l||x(e,s)}}function x(e,t,n){void 0===n&&(n=!1),e.h.K&&e._&&b(t,n)}function R(e,t){var n=e[Y];return(n?f(n):e)[t]}function k(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function P(e){e.M||(e.M=!0,e.l&&P(e.l))}function D(e){e.i||(e.i=h(e.u))}function _(e,t,n){var r=d(t)?O("MapSet").$(t,n):p(t)?O("MapSet").C(t,n):e.S?function(e,t){var n=Array.isArray(e),r={t:n?1:0,A:t?t.A:j(),M:!1,R:!1,D:{},l:t,u:e,k:null,i:null,j:null,I:!1},i=r,a=ee;n&&(i=[r],a=te);var s=Proxy.revocable(i,a),o=s.revoke,c=s.proxy;return r.k=c,r.j=o,c}(t,n):O("ES5").J(t,n);return(n?n.A:j()).p.push(r),r}function M(e){return r(e)||n(22,e),function e(t){if(!i(t))return t;var n,r=t[Y],o=s(t);if(r){if(!r.M&&(r.t<4||!O("ES5").N(r)))return r.u;r.R=!0,n=N(t,o),r.R=!1}else n=N(t,o);return a(n,(function(t,i){r&&c(r.u,t)===i||u(n,t,e(i))})),3===o?new Set(n):n}(e)}function N(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return h(e)}function L(){function e(e,t){var n=s[e];return n?n.enumerable=t:s[e]=n={configurable:!0,enumerable:t,get:function(){return ee.get(this[Y],e)},set:function(t){ee.set(this[Y],e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var r=e[t][Y];if(!r.M)switch(r.t){case 5:i(r)&&P(r);break;case 4:n(r)&&P(r)}}}function n(e){for(var t=e.u,n=e.k,r=Z(n),i=r.length-1;i>=0;i--){var a=r[i];if(a!==Y){var s=t[a];if(void 0===s&&!o(t,a))return!0;var c=n[a],u=c&&c[Y];if(u?u.u!==s:!l(c,s))return!0}}var d=!!t[Y];return r.length!==Z(t).length+(d?0:1)}function i(e){var t=e.k;if(t.length!==e.u.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r1?n-1:0),a=1;a1?r-1:0),a=1;a=0;n--){var i=t[n];if(0===i.path.length&&"replace"===i.op){e=i.value;break}}n>-1&&(t=t.slice(n+1));var a=O("Patches").W;return r(e)?a(e,t):this.produce(e,(function(e){return a(e,t)}))},e}(),re=new ne,ie=re.produce,ae=re.produceWithPatches.bind(re),se=re.setAutoFreeze.bind(re),oe=re.setUseProxies.bind(re),ce=re.applyPatches.bind(re),ue=re.createDraft.bind(re),le=re.finishDraft.bind(re);t.Immer=ne,t.applyPatches=ce,t.castDraft=function(e){return e},t.castImmutable=function(e){return e},t.createDraft=ue,t.current=M,t.default=ie,t.enableAllPlugins=function(){L(),F(),B()},t.enableES5=L,t.enableMapSet=F,t.enablePatches=B,t.finishDraft=le,t.freeze=b,t.immerable=K,t.isDraft=r,t.isDraftable=i,t.nothing=q,t.original=function(e){return r(e)||n(23,e),e[Y].u},t.produce=ie,t.produceWithPatches=ae,t.setAutoFreeze=se,t.setUseProxies=oe},OfAC:function(e,t,n){"use strict";n.r(t);n.d(t,"navigateToThreadListKnowledgebase",(function(){return o}));var r=n("y5/z"),i=n("moRJ"),a=n("YHaB"),s=n("WTKJ");function o(){return e=>{e(Object(i.a)());e(Object(a.a)(s.a));e(Object(r.trackInteraction)("widget-interaction",{action:"view thread list"}))}}},Oo4n:function(e,t,n){"use strict";var r=n("qjq5"),i=n("JoAZ"),a=n("QYOI"),s=n("dAms"),o=n("OPip"),c=n("Sbt9");const u=Object(r.a)((e=Object(a.Set)(),t)=>{Object(i.a)(t);if(0===e.size)return t;const n=(e,n)=>{Object(o.a)(n,t);return e.delete(Object(c.a)(n,t))},r=t=>e.reduce(n,t);return t.updateIn(s.a,r)});var l=n("x1JE");n.d(t,"a",(function(){return d}));const d=Object(r.a)(e=>{Object(i.a)(e);const t=Object(l.getEvict)(e);try{return u(t(Object(l.getEntries)(e)),e)}catch(e){e.indexedAsyncDataName=name;throw e}})},"Opx+":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("VADA"),i=n("HD2P"),a=n("GdKg"),s=n("npjq"),o=n("QgEn");function c({chatHeadingConfig:e,mobile:t,size:n}){const c=Object(r.a)(e),u=s.a.text("conversations-visitor-experience-components.default.agent"),l=s.a.text("conversations-visitor-experience-components.default.avatar",{identifier:e.get("customChatName")||u});return e?Object(o.jsx)("div",{className:"justify-center align-center",style:Object(i.a)({mobile:t}),children:Object(o.jsx)(a.a,{src:c,className:"chat-head-avatar",size:n,alt:l})}):null}c.displayName="CustomChatHeading"},Or3K:function(e,t,n){"use strict";n.r(t);var r=n("ZqFO"),i=n("VvTX"),a=n("97n4"),s=n("MJM1");const o=["enabled"],c=Object(s.a)(o);n.d(t,"exitIntentTriggerEnabled",(function(){return u}));const u=e=>{const t=Object(r.f)(e),n=Object(i.getClientTriggers)(t),s=Object(a.a)(n);return c(s)}},Otz9:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Zui/");const a=Object(r.Record)({"@type":i.c,to:Object(r.List)(),cc:Object(r.List)(),bcc:Object(r.List)(),clipStatus:"",from:Object(r.Map)({name:"",email:""}),subject:"",connectedAccountAddress:"",hasReplies:!1,previousRepliesHtml:null,previousRepliesPlainText:null,originalSender:Object(r.Map)({name:"",email:""}),memberOfForwardedSubthread:!1,forward:!1,templateId:null,emailAuthenticationStatus:null},"EmailMetadata");t.a=a},OwpT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){for(var n in t)t.hasOwnProperty(n)&&void 0===e[n]&&(e[n]=t[n]);return e}function i(e,t,n){var r;if(e.length>t){if(null==n){n="…";r=3}else r=n.length;e=e.substring(0,t-r)+n}return e}function a(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n=0;n--)!0===t(e[n])&&e.splice(n,1)}function o(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var n,r=[],i=0;n=t.exec(e);){r.push(e.substring(i,n.index));r.push(n[0]);i=n.index+n[0].length}r.push(e.substring(i));return r}function c(e){throw new Error("Unhandled case for value: '"+e+"'")}var u=function(){function e(e){void 0===e&&(e={});this.tagName="";this.attrs={};this.innerHTML="";this.whitespaceRegex=/\s+/;this.tagName=e.tagName||"";this.attrs=e.attrs||{};this.innerHTML=e.innerHtml||e.innerHTML||""}e.prototype.setTagName=function(e){this.tagName=e;return this};e.prototype.getTagName=function(){return this.tagName||""};e.prototype.setAttr=function(e,t){this.getAttrs()[e]=t;return this};e.prototype.getAttr=function(e){return this.getAttrs()[e]};e.prototype.setAttrs=function(e){Object.assign(this.getAttrs(),e);return this};e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})};e.prototype.setClass=function(e){return this.setAttr("class",e)};e.prototype.addClass=function(e){for(var t,n=this.getClass(),r=this.whitespaceRegex,i=n?n.split(r):[],s=e.split(r);t=s.shift();)-1===a(i,t)&&i.push(t);this.getAttrs().class=i.join(" ");return this};e.prototype.removeClass=function(e){for(var t,n=this.getClass(),r=this.whitespaceRegex,i=n?n.split(r):[],s=e.split(r);i.length&&(t=s.shift());){var o=a(i,t);-1!==o&&i.splice(o,1)}this.getAttrs().class=i.join(" ");return this};e.prototype.getClass=function(){return this.getAttrs().class||""};e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")};e.prototype.setInnerHTML=function(e){this.innerHTML=e;return this};e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)};e.prototype.getInnerHTML=function(){return this.innerHTML||""};e.prototype.getInnerHtml=function(){return this.getInnerHTML()};e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),""].join("")};e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+'="'+e[n]+'"');return t.join(" ")};return e}();function l(e,t,n){var r,i;if(null==n){n="…";i=3;r=8}else{i=n.length;r=n.length}var a=function(e){var t={},n=e,r=n.match(/^([a-z]+):\/\//i);if(r){t.scheme=r[1];n=n.substr(r[0].length)}if(r=n.match(/^(.*?)(?=(\?|#|\/|$))/i)){t.host=r[1];n=n.substr(r[0].length)}if(r=n.match(/^\/(.*?)(?=(\?|#|$))/i)){t.path=r[1];n=n.substr(r[0].length)}if(r=n.match(/^\?(.*?)(?=(#|$))/i)){t.query=r[1];n=n.substr(r[0].length)}(r=n.match(/^#(.*?)$/i))&&(t.fragment=r[1]);return t},s=function(e){var t="";e.scheme&&e.host&&(t+=e.scheme+"://");e.host&&(t+=e.host);e.path&&(t+="/"+e.path);e.query&&(t+="?"+e.query);e.fragment&&(t+="#"+e.fragment);return t},o=function(e,t){var r=t/2,i=Math.ceil(r),a=-1*Math.floor(r),s="";a<0&&(s=e.substr(a));return e.substr(0,i)+n+s};if(e.length<=t)return e;var c=t-i,u=a(e);if(u.query){var l=u.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);if(l){u.query=u.query.substr(0,l[1].length);e=s(u)}}if(e.length<=t)return e;if(u.host){u.host=u.host.replace(/^www\./,"");e=s(u)}if(e.length<=t)return e;var d="";u.host&&(d+=u.host);if(d.length>=c)return u.host.length==t?(u.host.substr(0,t-i)+n).substr(0,c+r):o(d,c).substr(0,c+r);var p="";u.path&&(p+="/"+u.path);u.query&&(p+="?"+u.query);if(p){if((d+p).length>=c){return(d+p).length==t?(d+p).substr(0,t):(d+o(p,c-d.length)).substr(0,c+r)}d+=p}if(u.fragment){var f="#"+u.fragment;if((d+f).length>=c){return(d+f).length==t?(d+f).substr(0,t):(d+o(f,c-d.length)).substr(0,c+r)}d+=f}if(u.scheme&&u.host){var h=u.scheme+"://";if((d+h).length0&&(b=d.substr(-1*Math.floor(c/2)));return(d.substr(0,Math.ceil(c/2))+n+b).substr(0,c+r)}function d(e,t,n){if(e.length<=t)return e;var r,i;if(null==n){n="…";r=8;i=3}else{r=n.length;i=n.length}var a=t-i,s="";a>0&&(s=e.substr(-1*Math.floor(a/2)));return(e.substr(0,Math.ceil(a/2))+n+s).substr(0,a+r)}function p(e,t,n){return i(e,t,n)}var f=function(){function e(e){void 0===e&&(e={});this.newWindow=!1;this.truncate={};this.className="";this.newWindow=e.newWindow||!1;this.truncate=e.truncate||{};this.className=e.className||""}e.prototype.build=function(e){return new u({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})};e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},n=this.createCssClass(e);n&&(t.class=n);if(this.newWindow){t.target="_blank";t.rel="noopener noreferrer"}this.truncate&&this.truncate.length&&this.truncate.length-1};e.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),n=t&&t[0].toLowerCase();return"javascript:"!==n&&"vbscript:"!==n};e.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||-1!==e.indexOf("."))};e.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return!(!e||!t)&&!this.hasWordCharAfterProtocolRegex.test(e)};e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//;e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/;e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+x+"]");e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/;return e}(),G=function(e){g(t,e);function t(t){var n,r,i,a=e.call(this,t)||this;a.stripPrefix={scheme:!0,www:!0};a.stripTrailingSlash=!0;a.decodePercentEncoding=!0;a.matcherRegex=(n=/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/,r=/(?:www\.)/,i=new RegExp("[/?#](?:["+D+"\\-+&@#/%=~_()|'$*\\[\\]?!:,.;✓]*["+D+"\\-+&@#/%=~_()|'$*\\[\\]✓])?"),new RegExp(["(?:","(",n.source,L(2),")","|","(","(//)?",r.source,L(6),")","|","(","(//)?",L(10)+"\\.",U.source,"(?![-"+P+"])",")",")","(?::[0-9]+)?","(?:"+i.source+")?"].join(""),"gi"));a.wordCharRegExp=new RegExp("["+D+"]");a.stripPrefix=t.stripPrefix;a.stripTrailingSlash=t.stripTrailingSlash;a.decodePercentEncoding=t.decodePercentEncoding;return a}t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,r=this.stripPrefix,i=this.stripTrailingSlash,a=this.decodePercentEncoding,s=this.tagBuilder,o=[];null!==(t=n.exec(e));){var c=t[0],u=t[1],l=t[4],d=t[5],p=t[9],f=t.index,h=d||p,b=e.charAt(f-1);if(V.isValid(c,u)&&!(f>0&&"@"===b||f>0&&h&&this.wordCharRegExp.test(b))){/\?$/.test(c)&&(c=c.substr(0,c.length-1));if(this.matchHasUnbalancedClosingParen(c))c=c.substr(0,c.length-1);else{var g=this.matchHasInvalidCharAfterTld(c,u);g>-1&&(c=c.substr(0,g))}var m=u?"scheme":l?"www":"tld",O=!!u;o.push(new E({tagBuilder:s,matchedText:c,offset:f,urlMatchType:m,url:c,protocolUrlMatch:O,protocolRelativeMatch:!!h,stripPrefix:r,stripTrailingSlash:i,decodePercentEncoding:a}))}}return o};t.prototype.matchHasUnbalancedClosingParen=function(e){var t,n=e.charAt(e.length-1);if(")"===n)t="(";else{if("]"!==n)return!1;t="["}for(var r=0,i=0,a=e.length-1;i"===e){f=new Y(m({},f,{name:q()}));W()}else I.test(e)||w.test(e)||":"===e||V()}function v(e){">"===e?V():I.test(e)?d=3:V()}function j(e){S.test(e)||("/"===e?d=12:">"===e?W():"<"===e?G():"="===e||A.test(e)||C.test(e)?V():d=5)}function y(e){S.test(e)?d=6:"/"===e?d=12:"="===e?d=7:">"===e?W():"<"===e?G():A.test(e)&&V()}function E(e){S.test(e)||("/"===e?d=12:"="===e?d=7:">"===e?W():"<"===e?G():A.test(e)?V():d=5)}function T(e){S.test(e)||('"'===e?d=8:"'"===e?d=9:/[>=`]/.test(e)?V():"<"===e?G():d=10)}function x(e){'"'===e&&(d=11)}function R(e){"'"===e&&(d=11)}function k(e){S.test(e)?d=4:">"===e?W():"<"===e&&G()}function P(e){if(S.test(e))d=4;else if("/"===e)d=12;else if(">"===e)W();else if("<"===e)G();else{d=4;K()}}function D(e){if(">"===e){f=new Y(m({},f,{isClosing:!0}));W()}else d=4}function _(t){if("--"===e.substr(u,2)){u+=2;f=new Y(m({},f,{type:"comment"}));d=14}else if("DOCTYPE"===e.substr(u,7).toUpperCase()){u+=7;f=new Y(m({},f,{type:"doctype"}));d=20}else V()}function M(e){"-"===e?d=15:">"===e?V():d=16}function N(e){"-"===e?d=18:">"===e?V():d=16}function L(e){"-"===e&&(d=17)}function B(e){d="-"===e?18:16}function F(e){">"===e?W():"!"===e?d=19:"-"===e||(d=16)}function H(e){"-"===e?d=17:">"===e?W():d=16}function U(e){">"===e?W():"<"===e&&G()}function V(){d=0;f=o}function G(){d=1;f=new Y({idx:u})}function W(){var t=e.slice(p,f.idx);t&&i(t,p);if("comment"===f.type)a(f.idx);else if("doctype"===f.type)s(f.idx);else{f.isOpening&&n(f.name,f.idx);f.isClosing&&r(f.name,f.idx)}V();p=u+1}function z(){var t=e.slice(p,u);i(t,p);p=u+1}function q(){var t=f.idx+(f.isClosing?2:1);return e.slice(t,u).toLowerCase()}function K(){u--}}var Y=function(){function e(e){void 0===e&&(e={});this.idx=void 0!==e.idx?e.idx:-1;this.type=e.type||"tag";this.name=e.name||"";this.isOpening=!!e.isOpening;this.isClosing=!!e.isClosing}return e}(),J=function(){function e(t){void 0===t&&(t={});this.version=e.version;this.urls={};this.email=!0;this.phone=!0;this.hashtag=!1;this.mention=!1;this.newWindow=!0;this.stripPrefix={scheme:!0,www:!0};this.stripTrailingSlash=!0;this.decodePercentEncoding=!0;this.truncate={length:0,location:"end"};this.className="";this.replaceFn=null;this.context=void 0;this.matchers=null;this.tagBuilder=null;this.urls=this.normalizeUrlsCfg(t.urls);this.email="boolean"==typeof t.email?t.email:this.email;this.phone="boolean"==typeof t.phone?t.phone:this.phone;this.hashtag=t.hashtag||this.hashtag;this.mention=t.mention||this.mention;this.newWindow="boolean"==typeof t.newWindow?t.newWindow:this.newWindow;this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix);this.stripTrailingSlash="boolean"==typeof t.stripTrailingSlash?t.stripTrailingSlash:this.stripTrailingSlash;this.decodePercentEncoding="boolean"==typeof t.decodePercentEncoding?t.decodePercentEncoding:this.decodePercentEncoding;var n=this.mention;if(!1!==n&&"twitter"!==n&&"instagram"!==n&&"soundcloud"!==n)throw new Error("invalid `mention` cfg - see docs");var r=this.hashtag;if(!1!==r&&"twitter"!==r&&"facebook"!==r&&"instagram"!==r)throw new Error("invalid `hashtag` cfg - see docs");this.truncate=this.normalizeTruncateCfg(t.truncate);this.className=t.className||this.className;this.replaceFn=t.replaceFn||this.replaceFn;this.context=t.context||this}e.link=function(t,n){return new e(n).link(t)};e.parse=function(t,n){return new e(n).parse(t)};e.prototype.normalizeUrlsCfg=function(e){null==e&&(e=!0);return"boolean"==typeof e?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:"boolean"!=typeof e.schemeMatches||e.schemeMatches,wwwMatches:"boolean"!=typeof e.wwwMatches||e.wwwMatches,tldMatches:"boolean"!=typeof e.tldMatches||e.tldMatches}};e.prototype.normalizeStripPrefixCfg=function(e){null==e&&(e=!0);return"boolean"==typeof e?{scheme:e,www:e}:{scheme:"boolean"!=typeof e.scheme||e.scheme,www:"boolean"!=typeof e.www||e.www}};e.prototype.normalizeTruncateCfg=function(e){return"number"==typeof e?{length:e,location:"end"}:r(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})};e.prototype.parse=function(e){var t=this,n=["a","style","script"],r=0,i=[];K(e,{onOpenTag:function(e){n.indexOf(e)>=0&&r++},onText:function(e,n){if(0===r){var a=o(e,/( | |<|<|>|>|"|"|')/gi),s=n;a.forEach((function(e,n){if(n%2==0){var r=t.parseText(e,s);i.push.apply(i,r)}s+=e.length}))}},onCloseTag:function(e){n.indexOf(e)>=0&&(r=Math.max(r-1,0))},onComment:function(e){},onDoctype:function(e){}});i=this.compactMatches(i);return i=this.removeUnwantedMatches(i)};e.prototype.compactMatches=function(e){e.sort((function(e,t){return e.getOffset()-t.getOffset()}));for(var t=0;ti?t:t+1;e.splice(s,1);continue}e[t+1].getOffset(){Object(r.a)(i,{eventType:e,payload:t})}},P0El:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="CRM_OBJECT_WORKFLOW_EMAIL_SENT",i="@type"},P5SP:function(e,t,n){"use strict";n.r(t);var r=n("dLEV"),i=n("c2PF"),a=n("0oGG");const s=Object(r.createSelector)([i.getThreadByThreadId],a.a);var o=n("sJho");n.d(t,"shouldRecordUrlContextUpdate",(function(){return c}));const c=Object(r.createSelector)([s,o.getMessagesPageUri],(e,t)=>e!==t)},P7jJ:function(e,t,n){"use strict";var r=n("Lm/k"),i=n("VfuR"),a=n.n(i),s=n("9f1P"),o=n.n(s),c=n("7719");const u={[c.a]:8,[c.c]:12,[c.f]:16,[c.e]:20,[c.d]:24};var l=n("CR0J"),d=n("YXBx"),p=n("QgEn");const f=["icon","size"];function h(e){return Object.keys(u).includes(e)}const b=e=>Object(s.css)(["font-size:",";height:",";width:",";"],e&&h(e)?u[e]+"px":e,e&&h(e)?u[e]+"px":e,e&&h(e)?u[e]+"px":e),g=o.a.div.withConfig({displayName:"VizExIcon__IconWrapper",componentId:"sc-1rlm09s-0"})(["display:inline-flex;vertical-align:middle;fill:",";",""],({theme:e})=>Object(d.a)(e)||"currentColor",({size:e})=>e&&b(e)),m=e=>{const{icon:t,size:n}=e,i=Object(r.a)(e,f);return Object(p.jsx)(g,Object.assign({},i,{size:n,children:t}))};m.displayName="VizExIcon";m.propTypes={icon:a.a.node.isRequired,size:a.a.oneOfType([a.a.oneOf(Object.keys(u)),a.a.string]),theme:l.a};t.a=m},PJYd:function(e,t,n){e.exports=n.dlbpr(1,81)},PJuP:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("JGJA"),i=n("QYOI"),a=n("Zui/"),s=n("9F2+");const o=e=>{const t=Object(s.a)(e);if(t){return t.find(e=>Object(r.a)("@type",e)===a.d)}return Object(i.List)()}},PUb4:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("pdKL");const i=Object(r.a)((e,t)=>t[e])},PVk8:function(e,t,n){"use strict";n.d(t,"c",(function(){return o}));n.d(t,"b",(function(){return c}));n.d(t,"a",(function(){return u}));var r=n("Lm/k"),i=n("npjq"),a=n("G2Xo");const s=["className","class"],o=({useGap:e,message:t,options:n},r=!1)=>{let s=r?Object(a.a)(t,n):i.a.text(t,n);!0===e&&(s=` ${s} `);return s},c=e=>{const t={"data-locale-at-render":e.options&&e.options.locale||i.a.locale,"data-key":e.message};for(const n of Object.keys(e))["message","options","useGap"].indexOf(n)<0&&(t[n]=e[n]);return t},u=e=>{const{className:t,class:n}=e,i=Object(r.a)(e,s);return t&&!n?Object.assign({class:t},i):e}},PY2H:function(e,t,n){"use strict";var r=n("Lm/k"),i=n("VfuR"),a=n.n(i),s=n("9f1P"),o=n.n(s),c=n("CR0J"),u=n("Z/Dw"),l=n("W6dd"),d=n("3+Hx"),p=n("Ktcs"),f=n("Zulv"),h=n("wjRl"),b=n("rdz/");const g=({use:e,theme:{colors:t}})=>e===l.c?t.text:e===l.b?t.errorText:t.linkText||t.primary,m={baseStyle:Object(s.css)(["cursor:pointer;text-decoration:none;transition:all 0.15s ease-out;font-weight:400;color:",";"," ",""],g,({use:e})=>e===l.c&&"text-decoration: underline;",({use:e})=>e===l.b&&"font-weight: bold;"),_hovered:Object(s.css)(["color:",";text-decoration:underline;"],({use:e,theme:t})=>Object(b.a)(g({use:e,theme:t}),-30)),_focused:h.a,_pressed:Object(s.css)(["color:",";"],({use:e,theme:t})=>Object(b.a)(g({use:e,theme:t}),30))};var O=n("W/H/"),v=n("QgEn");const j=["use","tabIndex","as","onClick","onPress"],y=o.a.a.withConfig({displayName:"VizExLink__StyledATag",componentId:"sc-2c3b7p-0"})(["",""],({theme:e})=>Object(O.a)({component:"Link",defaultStyles:m,theme:e})),E=e=>{let{use:t=l.a,tabIndex:n=0,as:i,onClick:a,onPress:s}=e,o=Object(r.a)(e,j);const c=Object(p.useRef)(null),{linkProps:u}=Object(d.a)({elementType:i,onPress:s||a},c);return Object(v.jsx)(y,Object.assign({as:i,ref:c,use:t,tabIndex:n},Object(f.i)(u,o)))};E.displayName="VizExLink";E.propTypes=Object.assign({as:a.a.oneOf(["a","span"]),children:a.a.node,external:a.a.bool,href:a.a.string,onClick:a.a.func,onPress:a.a.func,theme:c.a,use:a.a.oneOf([l.c,l.a,l.b])},u.a);t.a=E},PY3R:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("Ozt8"),i=n("mlLV"),a=n("wGlN");const s=({thread:e})=>{Object(r.postExternalApiEvent)({eventType:i.CONVERSATION_STARTED,payload:{conversation:Object(a.serializeThreadForExternalEvent)(e)}})}},PYok:function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var r=n("PpSk"),i=n("31tl"),a=n("LdnN"),s=n("5rZi"),o=n("6PLn"),c=n("4SpI"),u=n("1EAY"),l=n("IqZ3"),d=n("k09d"),p=n("1DSk"),f=n("UxS0"),h=n("goDm"),b=n("sJho"),g=n("P5SP"),m=n("VVGt"),O=n("AEyM"),v=n("SbeA"),j=n("Wt04"),y=n("gD8A"),E=n("FBcP"),T=n("eg5p"),I=n("jvpr"),w=n("yDuE"),S=n("JGJA"),A=n("Zui/"),C=n("pdIa");const x=()=>(e,t)=>{const n=Object(d.a)(t()),i=Object(b.getMessagesPageUri)(t()),a=Object(r.getThreadId)(n);return Object(g.shouldRecordUrlContextUpdate)(t(),{threadId:a})&&a!==T.a?Object(y.updateVisitorContext)({currentUrl:i,sessionId:Object(E.getSessionId)(t()),threadId:a}).then(()=>{e(Object(m.a)({threadId:a,currentUrl:i}))}).catch(()=>Promise.resolve()):Promise.resolve()},R=({text:e,richText:t,quickReply:n,fileAttachment:b})=>(g,m)=>{const y=Object(d.a)(m()),E=Object(u.isPersistedThread)(y),T=Object(r.getChannelName)(y),S=Object(r.getThreadId)(y),A=Object(j.getMessagesUtk)(),C=E?Object(w.getChannelInstanceIdFromCurrentThreadHistory)(m(),S):Object(I.getChannelInstanceId)(m()),x=Object(f.buildVisitorCommonMessage)({channelInstanceId:C,clientType:i.a,fileAttachment:b,quickReply:n,richText:t,senderId:A,text:e});g(Object(l.a)(S));g(Object(p.trackSendMessage)({threadId:S}));if(!E){g(Object(h.stageMessageOnStubbedThread)(x));return g(Object(s.createNewThread)())}Object(v.getMostRecentMessageIsEmailPrompt)(m())&&a.a.test(e)&&g(Object(O.sendVisitorEmailAddress)({email:e,consentToCommunicate:!1,threadId:S}));return g(Object(c.publishMessage)({channel:T,message:x,threadId:S})).then(()=>g(Object(o.applyGdprConsent)()))};function k({text:e,richText:t,quickReply:n,fileAttachment:r}){return i=>i(x()).then(()=>{i(R({text:e,richText:t,quickReply:n,fileAttachment:r}));n&&Object(S.a)("@type",n)===A.i&&Object(C.a)(n)})}},PaBm:function(e,t,n){"use strict";n.r(t);var r=n("KXN9"),i=n("tXbc");const a=e=>Object(r.c)(e)===i.a;n.d(t,"isClientReady",(function(){return s}));const s=a},Pda3:function(e,t,n){"use strict";n.r(t);var r=n("qjq5"),i=n("QYOI"),a=n("3Yas");a.c.implement(Array,(e,t)=>t.every(e));a.c.implementInherited(i.Iterable,(e,t)=>t.every(e));a.c.implement(Object,(e,t)=>{const n=Object.keys(t),r=n.length;for(let i=0;iObject(l.c)(t)===e),p=e=>(...t)=>o(d(e),t),f=e=>(...t)=>Object(c.a)(d(e),t),h=d(u.e),b=d(u.b),g=d(u.c),m=d(u.d),O=d(u.a),v=e=>g(e)||h(e),j=p(u.e),y=p(u.b),E=p(u.c),T=p(u.d),I=p(u.a),w=f(u.e),S=f(u.b),A=f(u.c),C=f(u.d),x=f(u.a),R=(...e)=>A(...e)||w(...e)},Pkdb:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("dLEV"),i=n("sJho"),a=n("nzmY"),s=n("1Vek"),o=n("6pgb"),c=n("rf4d"),u=n("eg5p"),l=n("WebA");const d=Object(r.createSelector)([i.getMessagesPageUri,s.a],(e,t)=>{const n=Object(l.buildCommonMessage)({text:t}),r=Object(a.a)({originalGenericChannelId:c.d,threadId:u.a,currentUrl:e});return Object(o.a)(n,r)})},Pozp:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>e.clientData.isInForeground},PpSk:function(e,t,n){"use strict";n.r(t);n.d(t,"getLatestReadTimestamp",(function(){return o}));n.d(t,"getThreadId",(function(){return c}));n.d(t,"getAssignedAgentId",(function(){return u}));n.d(t,"getStatus",(function(){return l}));n.d(t,"getChannelDetails",(function(){return d}));n.d(t,"getResponder",(function(){return p}));n.d(t,"getUnseenCount",(function(){return f}));n.d(t,"getLatestMessageTimestamp",(function(){return h}));n.d(t,"getPreviewMessageId",(function(){return b}));n.d(t,"getChannelName",(function(){return g}));var r=n("MJM1"),i=n("aYGO"),a=n("DdHT"),s=n("X3o/");const o=Object(r.a)(i.e),c=Object(r.a)(i.i),u=Object(r.a)(i.b),l=Object(r.a)(i.h),d=Object(r.a)(i.c),p=Object(r.a)(i.g),f=Object(r.a)(i.j),h=Object(r.a)(i.d),b=Object(r.a)(i.f),g=Object(a.a)(d,s.a)},"PyK+":function(e,t){e.exports=function(){if(void 0===window.hubspot)throw new Error("Could not find hubspot global variable.");return window.hubspot}()},Pz4q:function(e,t,n){"use strict";var r=n("QYOI"),i=n("0GyJ"),a=n("8+iK"),s=n("9Mwj"),o=n("ubOH"),c=n("rA/t");class u extends(Object(r.Record)({"@type":i.a,attachments:Object(r.List)(),clientType:null,contentType:a.b,directReplyToMessageId:null,id:null,inReplyToId:null,messageDeletedStatus:s.a,richText:"",sender:Object(r.Map)(),status:Object(o.a)(),text:"",timestamp:null,channelInstanceId:null,genericChannelId:null,integrationId:null,recipients:Object(r.List)(),senders:Object(r.List)(),direction:"",hiddenBy:null},"CommonMessage")){constructor(e){super(e&&Object(c.a)(e))}}t.a=u},Q2fA:function(e,t,n){"use strict";var r=n("dLEV"),i=n("qjq5"),a=n("AaWM"),s=Object(i.a)(a.a),o=n("JGJA"),c=n("Avso"),u=n("7+Fw"),l=n("ncoD"),d=n("SfUm");n.d(t,"a",(function(){return p}));const p=Object(r.createSelector)([d.a,l.getAllAgentResponders,u.a],(e,t,n)=>{const r=Object(c.getUserId)(n);return Object(o.a)(r,e)?n:t&&t.find(t=>{const n=Object(c.getUserId)(t);return s(n,e)})})},Q79t:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("dLEV"),i=n("MJM1"),a=n("49A5");const s=Object(r.createSelector)([a.getLatestWidgetData],e=>Object(i.a)(["widgetLocation"],e))},Q7Xa:function(e,t,n){"use strict";var r=n("QYOI"),i=n("ubOH"),a=n("K7Yy");const s=Object(r.Record)({"@type":a.a,attachments:Object(r.List)(),feedbackTransactionId:null,id:null,messageDeletedStatus:null,recipients:Object(r.List)(),richText:null,sender:Object(r.Map)(),senders:Object(r.List)(),status:Object(i.a)(),surveyId:null,text:null,timestamp:null},"FeedbackSurveyMessage");t.a=s},QGYt:function(e,t,n){"use strict";var r=n("Lm/k"),i=n("VfuR"),a=n.n(i),s=n("Ktcs"),o=n("9f1P"),c=n.n(o),u=n("7719"),l=n("CR0J"),d=n("Z/Dw"),p=n("0wen"),f=n("W/H/"),h=n("wjRl"),b=n("rdz/"),g=n("aXPX");const m={baseStyle:Object(o.css)(["padding:",";font-size:",";flex-shrink:0;border-radius:3px;line-height:16px;outline:none;transition:background-color 150ms ease-out;border-style:solid;border-width:1px;cursor:pointer;text-align:center;word-break:normal;overflow-wrap:break-word;background-color:transparent;",""],({size:e})=>g.b[e],({size:e})=>g.a[e],({theme:{colors:e},use:t})=>"primary"===t?`\n background-color: ${e.primary};\n border: none;\n color: ${e.textOnPrimary};\n `:`\n background-color: transparent;\n border-color: ${e.primary};\n color: ${e.primary};\n `),_disabled:Object(o.css)(["background-color:",";border:none;color:",";cursor:not-allowed;user-select:none;"],({theme:{colors:e}})=>e.disabledBackground,({theme:{colors:e}})=>e.disabledText),_focused:h.a,_hovered:Object(o.css)(["",""],({theme:{colors:e},use:t})=>`background-color: ${Object(b.a)(e.primary,"primary"===t?20:95)};`),_pressed:Object(o.css)(["",""],({theme:{colors:e},use:t})=>`background-color: ${Object(b.a)(e.primary,"primary"===t?-10:90)};`)};var O=n("QgEn");const v=["use","size","children"],j=c.a.button.withConfig({displayName:"VizExButton__AbstractVizExButton",componentId:"vl3yr6-0"})(["",""],({theme:e})=>Object(f.a)({component:"Button",defaultStyles:m,theme:e})),y=c.a.div.withConfig({displayName:"VizExButton__NoSelect",componentId:"vl3yr6-1"})(["user-select:none;"]),E=Object(s.forwardRef)((e,t)=>{let{use:n=p.SECONDARY,size:i=u.e,children:a}=e,s=Object(r.a)(e,v);return Object(O.jsx)(j,Object.assign({},Object.assign({use:n,size:i},s),{ref:t,children:Object(O.jsx)(y,{children:a})}))});E.displayName="VizExButton";E.propTypes=Object.assign({children:a.a.node,onClick:a.a.func,size:a.a.oneOf([u.c,u.f,u.e]),theme:l.a,use:a.a.oneOf(Object.values(p))},d.a);t.a=E},QJvi:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){if(e>=0&&e<=9)return e;throw new Error(`expected \`arity\` from 0 to 9 but got \`${e}\``)}},QYOI:function(e,t,n){e.exports=n.dlbpr(1,61)},QYon:function(e,t,n){"use strict";var r=n("dLEV"),i=n("QYOI");const a=3,s=(e,t)=>{const n=t&&t.size>0,r=e&&e.size>0;return r||n?r?e.take(a):t.take(a):Object(i.List)()};var o=n("hTKa"),c=n("AFl3");n.d(t,"a",(function(){return u}));const u=Object(r.createSelector)([o.a,c.a],s)},QeSX:function(e,t,n){"use strict";n.r(t);var r=n("dLEV"),i=n("QYOI"),a=n("Avso"),s=n("PpSk");const o=({thread:e,responders:t=Object(i.List)(),botResponder:n})=>{if(!e&&!n)return null;const r=Object(s.getResponder)(e);return(t||Object(i.List)()).find(t=>""+Object(a.getUserId)(t)==""+Object(s.getAssignedAgentId)(e))||n||r||null};var c=n("k09d"),u=n("AFl3"),l=n("7+Fw");n.d(t,"getAssignedResponderInWidget",(function(){return d}));const d=Object(r.createSelector)([u.a,c.a,l.a],(e,t,n)=>o({thread:t,responders:e,botResponder:n}))},Qf6G:function(e,t,n){"use strict";n.r(t);n.d(t,"clickedConsentToProcess",(function(){return b}));n.d(t,"consentToProcessSucceeded",(function(){return g}));n.d(t,"consentToProcessFailed",(function(){return m}));n.d(t,"consentToProcess",(function(){return O}));var r=n("dLEV"),i=n("KrP/"),a=n("FBcP"),s=n("nhvA"),o=n("uk/S"),c=n("bT+G"),u=n("2BFa"),l=n("1ZlA"),d=n("9XKB"),p=n("y5/z"),f=n("49A5"),h=n("Wt04");const b=Object(r.createAction)(i.d),g=Object(r.createAction)(i.g),m=Object(r.createAction)(i.f,({error:e})=>({payload:{error:e}}));function O(){return(e,t)=>{const n=Object(a.getSessionId)(t()),r=Object(s.getMessageId)(t()),i=Object(d.getHubspotUtk)(),O=Object(f.getLatestWidgetData)(t());e(b());Object(o.sendConsentToProcess)({sessionId:n,hubspotUtk:i,welcomeMessageId:r,widgetData:O}).then(n=>{const{sessionId:r}=n,i=Object(u.gdprCookieConsentOnExitIntentEnabled)(t(),O);try{localStorage.setItem("userHasGivenConsentToProcess",!0)}catch(e){console.warn("local storage not set!")}i||Object(c.handleStoreMessagesCookie)(Object(h.getMessagesUtk)());e(Object(l.updateSessionId)(r));e(g());e(Object(p.trackInteraction)("widget-interaction",{action:"clicked consent to process button"}))},t=>e(m({error:t}))).catch(e=>{setTimeout(()=>{throw e})})}}},QgEn:function(e,t,n){e.exports=n.dlbpr(1,77)},QmIQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("VfuR"),i=n.n(r),a=n("Ktcs"),s=n("eCQl"),o=n("YibP");class c extends a.Component{constructor(...e){super(...e);this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){const n=["Component caught",this.props.errorLoggingTitle,e.message].join(": "),r=Object(o.a)(n,{name:"ComponentError",componentStack:t.componentStack});Object(s.reportError)({error:r,fingerprint:["{{ default }}","ComponentError"],tags:{componentDidCatch:!0}})}reset(){this.setState({hasError:!1})}render(){const{children:e,renderError:t}=this.props,{hasError:n}=this.state;return n&&!t?null:n&&t?t({reset:this.reset}):e}}c.propTypes={children:i.a.node.isRequired,errorLoggingTitle:i.a.string.isRequired,renderError:i.a.func};c.displayName="ErrorBoundary"},QnHA:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>e.widgetUi},Qvwz:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="SELECT_THREAD",i="CLEAR_SELECTED_THREAD"},R4L7:function(e,t,n){"use strict";n.r(t);n.d(t,"toggleInitialMessageBubble",(function(){return a}));var r=n("dLEV"),i=n("o3Zl");const a=Object(r.createAction)(i.a,(e,t=!1)=>({payload:{visible:e,closedByUser:t}}))},R6gb:function(e,t,n){"use strict";n.r(t);n.d(t,"historyMessageInvariant",(function(){return v}));var r=n("Gc2C"),i=n("Pz4q"),a=n("NIjC"),s=n("rIrL"),o=n("A5f/"),c=n("+TdC"),u=n("Iqwl"),l=n("/fsP"),d=n("JxGV"),p=n("7jiL"),f=n("yuy6"),h=n("MfaD"),b=n("TePN"),g=n("Q7Xa"),m=n("au5J");const O=[b.a,i.a,a.a,o.a,s.a,c.a,u.a,l.a,d.a,p.a,f.a,h.a,g.a],v=e=>Object(r.a)(O.some(t=>e instanceof t),`Expected message to be one of ${O.map(e=>Object(m.a)(e)).join(", ")}, not a %s`,typeof e)},RXbF:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("dLEV"),i=n("lEkO"),a=n("ombE"),s=n("WTKJ"),o=n("OBPj"),c=n("FAYk");const u=Object(r.createSelector)([a.a],e=>e===s.b),l=Object(r.createSelector)([a.a],e=>e===s.a),d=Object(r.createSelector)([i.a,u,o.getShowPreviousConversations,l,c.getKnowledgeBaseEnabled],(e,t,n,r,i)=>{if(t||r)return!1;if(i)return!0;if(!n||!e)return!1;return e.size>0})},RaQM:function(e,t,n){"use strict";n.r(t);var r=n("dLEV"),i=n("xwWp"),a=n("zZzs"),s=n("yxYB"),o=n("tyiq");const c=Object(r.createSelector)([s.getWidgetAvailabilityOptions],e=>!Object(a.getOfficeHoursStartTime)(e)&&!Object(o.a)(e));n.d(t,"getIsWidgetInAwayMode",(function(){return u}));const u=Object(r.createSelector)([i.widgetIsInAwayMode,c],(e,t)=>Boolean(e||!t))},Rd7q:function(e,t,n){"use strict";var r=n("8ASW");t.a=()=>"en-us"===r.a.locale||r.a.langEnabled||r.a.publicPage?r.a.locale:"en-us"},RqRq:function(e,t,n){"use strict";n.r(t);n.d(t,"receivedIncomingMessageAction",(function(){return p}));n.d(t,"receivedIncomingMessage",(function(){return f}));var r=n("dLEV"),i=n("nf9S"),a=n("0IK8"),s=n("Mx3c"),o=n("xZ3y"),c=n("z8AP"),u=n("GQQt"),l=n("JW3w"),d=n("21jQ");const p=Object(r.createAction)(o.RECEIVED_INCOMING_MESSAGE,({message:e,channel:t,responder:n,shouldNotify:r,threadId:i})=>({payload:{message:e,channel:t,responder:n,shouldNotify:r,threadId:i}}));function f({message:e,channel:t,responder:n,shouldNotify:r,threadId:o}){return(f,h)=>{f(p({message:e,channel:t,responder:n,shouldNotify:r,threadId:o}));const b=!Object(d.getIsOpen)(h()),g=!Object(l.isActiveOnThread)(h(),o),m=Object(a.getSenderType)(e),O=Object(a.getSenderId)(e);Object(i.isConversationalMessage)(e)&&(b||g)&&m!==s.VISITOR&&r&&f(Object(c.hasNewUnseenMessage)({channel:t,threadId:o}));m!==s.AGENT&&m!==s.BOT||f(Object(u.fetchAgentResponderIfNecessary)({senderId:O,senderType:m}))}}},Rrky:function(e,t,n){"use strict";n.r(t);var r=n("8R/H"),i=n("VYoM");const a="livechat-public/v1/attachment/resolve/thread",s=({sessionId:e,threadId:t,fileIds:n}={})=>i.a.get(`${a}/${t}`,{query:{fileId:n.toArray(),sessionId:e}});var o=n("/u6M"),c=n("gIaP");n.d(t,"resolveAttachments",(function(){return u}));const u=Object(r.a)({requestFn:s,actionTypes:o.a,toRecordFn:c.buildResolvedAttachmentsMapFromResponse})},Ryja:function(e,t,n){"use strict";n.r(t);n.d(t,"getAsyncStagedThread",(function(){return l}));n.d(t,"isCreatingThread",(function(){return d}));n.d(t,"getStagedThreadHistory",(function(){return p}));n.d(t,"getVisitorInitialThreadHistory",(function(){return f}));var r=n("JGJA"),i=n("dLEV"),a=n("KXN9"),s=n("Pda3"),o=n("021p"),c=n("8Xfw"),u=n("Cblj");const l=Object(r.a)("stagedThread"),d=Object(i.createSelector)(l,s.isStarted),p=Object(i.createSelector)(l,a.a),f=Object(i.createSelector)(p,e=>Object(o.d)(e).toList().filterNot(u.isTypingMessage).map(c.serialize).toJS())},S5kL:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return a}));function r(e){return"string"==typeof e}function i(e){return r(e)?e:e.has("label")?e.get("label"):e.get("value")}function a(e){return r(e)?e:e.get("value")}},S6vA:function(e,t,n){"use strict";n.r(t);var r=n("TGcl");Object(r.a)(window)&&n("xTKo")},SGAL:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="ADD_AVAILABILITY_MESSAGE_TIMEOUT"},SGjM:function(e,t,n){"use strict";var r=n("qjq5"),i=n("QYOI"),a=n("3Yas");a.i.implement(Array,(e,t)=>t.map(e));a.i.implementInherited(i.Iterable,(e,t)=>t.map(e));a.i.implement(Object,(e,t)=>{const n={},r=Object.keys(t),i=r.length;for(let a=0;aObject(r.a)("widgetData",e)},SbeA:function(e,t,n){"use strict";n.r(t);n.d(t,"getMostRecentMessageIsEmailPrompt",(function(){return o}));var r=n("dLEV"),i=n("4nf7"),a=n("0IK8"),s=n("KO+H");const o=Object(r.createSelector)([i.a],e=>Object(a.getType)(e.last())===s.a)},Sbt9:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("qjq5"),i=n("JoAZ"),a=n("x1JE");const s=Object(r.a)((e,t)=>{Object(i.a)(t);return Object(a.getIdTransform)(t)(e)})},SfUm:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("QYOI"),i=n("dLEV"),a=n("JGJA"),s=n("PpSk"),o=n("ye6p"),c=n("2soH");const u=Object(i.createSelector)([o.a,c.typingStates],(e,t)=>{const n=Object(s.getThreadId)(e);return Object(a.a)(""+n,t)||Object(r.Map)()})},"Sj+C":function(e,t,n){"use strict";n.r(t);var r=n("eCQl"),i=n("5vQK"),a=n("fogE"),s=n("cjt2");const o=(e,t=i.a)=>({type:s.a.SUCCEEDED,payload:{client:e,clientKey:t}}),c=(e=i.a)=>({type:s.a.STARTED,payload:{clientKey:e}}),u=(e,t=i.a)=>({type:s.a.FAILED,payload:{clientKey:t,error:e},meta:Object(a.a)()}),l=(e=i.a)=>({type:s.c,payload:{clientKey:e}}),d=(e=i.a)=>({type:s.d,payload:{clientKey:e}}),p=(e=i.a)=>({type:s.e,payload:{clientKey:e}}),f=(e=i.a)=>({type:s.b,payload:{clientKey:e}}),h=(e=i.a)=>({type:s.f,payload:{clientKey:e}});n.d(t,"initializePubSub",(function(){return m}));const b=()=>{},g={onConnect:b,onConnecting:b,onDisconnect:b,onFailure:b,onSuspended:b},m=({clientOptions:e,lifecycleHooks:t=g,resolveBuilder:n,clientKey:a=i.a})=>i=>{i(c(a));t=Object.assign({},g,t);return n().then(({buildConversationsPubSub:n})=>{const r=n({clientOptions:e,lifecycleHooks:Object.assign({},t,{onConnect(e){e.reconnected?i(d(a)):i(l(a));t.onConnect(e)},onConnecting({reconnecting:e}){e&&i(p(a));t.onConnecting({reconnecting:e})},onDisconnect(){i(f(a));t.onDisconnect()},onSuspended(){i(h(a));t.onSuspended()}})});i(o(r,a));r.connect()},e=>{i(u(e,a));Object(r.reportError)({error:e})})}},SlUU:function(e,t,n){"use strict";n.r(t);n.d(t,"fileAttachmentIdsInMessage",(function(){return u}));var r=n("QYOI"),i=n("JGJA"),a=n("Zui/"),s=n("iapW"),o=n("9F2+"),c=n("ZI4L");const u=e=>{const t=Object(o.a)(e)||Object(r.List)();let n=Object(r.List)();const u=t.find(e=>Object(i.a)("@type",e)===a.d);u&&(n=n.merge(Object(s.a)(u)));const l=t.find(e=>Object(i.a)("@type",e)===a.g);l&&Object(i.a)(c.a,l)&&(n=n.push(Object(i.a)(c.a,l)));return n}},SmHr:function(e,t,n){"use strict";var r=n("QYOI"),i=n("nguO");const a=Object(r.Record)({"@type":i.a,threadId:null,channel:null,message:null},"ActivelyPublishing");t.a=a},Smgi:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const r=["background-image","bottom","clear","float","left","opacity","position","right","top","visibility","white-space","z-index"],i=({node:e})=>{if(e&&e.style&&e.style.length>0&&e.style.removeProperty){"0px"===e.style.fontSize&&e.style.setProperty("font-size","14px");"0"===e.style.lineHeight&&e.style.setProperty("line-height","1");"transparent"===e.style.color&&e.style.removeProperty("color");r.forEach(t=>e.style.removeProperty(t));return{node:e}}return null}},SmyB:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("y5/z"),i=n("iatO"),a=n("2BFa"),s=n("du/S");function o(){return(e,t)=>{(Object(a.gdprCookieConsentOnExitIntentEnabled)(t())||Object(s.getAPIEnableWidgetCookieBannerOnExitIntent)(t()))&&e(Object(i.a)(!1));e(Object(r.trackInteraction)("widget-interaction",{action:"clicked decline cookies button"}))}}},SsBI:function(e,t,n){"use strict";n.r(t);n.d(t,"getTimeOnPageTriggerTimeoutId",(function(){return i}));var r=n("MJM1");const i=Object(r.a)(["timeOnPageTrigger","timeoutId"])},Syy6:function(e,t,n){var r=n("9Utk"),i=n("kmmH"),a="Expected a function";function s(e,t,n){var s=!0,o=!0;if("function"!=typeof e)throw new TypeError(a);if(i(n)){s="leading"in n?!!n.leading:s;o="trailing"in n?!!n.trailing:o}return r(e,t,{leading:s,maxWait:t,trailing:o})}e.exports=s},T1V9:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const r="_blank",i=({node:e,node_name:t})=>{if("a"===t&&e&&e.attributes&&e.getAttribute("target")!==r){e.setAttribute("target",r);return{node:e}}return null}},T25L:function(e,t,n){"use strict";var r=n("3Yas"),i=n("QYOI");r.b.implement(Array,e=>e.length);r.b.implementInherited(i.Iterable,e=>e.count());r.b.implement(Object,e=>Object.keys(e).length);r.b.implement(String,e=>e.length);r.b.implement(Number,e=>e);t.a=r.b},TBI5:function(e,t,n){"use strict";var r=n("T25L"),i=n("AaWM"),a=n("GXXt"),s=n("QYOI"),o=n("3Yas");const c=()=>({});o.h.implement(Array,c);o.h.implement(Object,c);o.h.implementInherited(s.Collection,()=>Object(s.Map)());o.h.implementInherited(s.Seq,()=>s.Seq.Keyed());var u=o.h,l=n("gjm2"),d=n("0H74");n.d(t,"a",(function(){return f}));function p(e,t){return Object(l.a)([],(e,n)=>{if(!e.length){e.push([t,n]);return e}const[r,s]=e[e.length-1],o=Object(a.a)(s,r),c=void 0!==o||Object(i.a)(s,r)?o:u(r);e.push([c,n]);return e},e)}function f(e,t,n){if(0===Object(r.a)(e))return t;const i=p(e,n);let a=t;for(;i.length>0;){const[e,t]=i.pop();a=Object(d.a)(t,a,e)}return a}},TG7G:function(e,t,n){var r=n("0Aa+"),i=1/0,a=17976931348623157e292;function s(e){if(!e)return 0===e?e:0;if((e=r(e))===i||e===-i){return(e<0?-1:1)*a}return e==e?e:0}e.exports=s},TGcl:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("jL37");const i=e=>{const{requestAnimationFrame:t,WeakMap:n,URLSearchParams:i,Promise:{all:a}={all:void 0},Promise:{resolve:s}={resolve:void 0}}=e;return[t,n,i,a,s].every(r.a)}},TKd0:function(e,t,n){"use strict";var r=n("QYOI");t.a=Object(r.Record)({name:null,type:null},"ChannelDetails")},TWJS:function(e,t,n){"use strict";var r=n("QYOI"),i=n("JGJA"),a=n("MYjy");const s={actorId:null,deliveryIdentifier:null,senderField:null,name:null},o=Object(r.Record)(s,"Sender");t.a=function(e){if(!e)return o();const t=Object(i.a)("actorId",e)||s.actorId,n=Object(i.a)("deliveryIdentifier",e),r=n?Object(a.a)(n):s.deliveryIdentifier,c=Object(i.a)("senderField",e)||s.senderField,u=Object(i.a)("name",e)||s.name;return o({actorId:t,deliveryIdentifier:r,senderField:c,name:u})}},TaVT:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("GXXt");function i(e,t){let n=t;for(let t=0;tr?t:t?Object.assign({},u,t):u,[r]);return{visuallyHiddenProps:Object.assign({},s,{style:c})}}function d(e){let{children:t,elementType:n="div"}=e,a=Object(r.a)(e,c),{visuallyHiddenProps:o}=l(e);return s.a.createElement(n,Object(i.i)(a,o),t)}},TePN:function(e,t,n){"use strict";var r=n("QYOI"),i=n("9Mwj"),a=n("c1C1"),s=n("BvOu"),o=n("XF21"),c=n("W26t");class u extends(Object(r.Record)({"@type":o.a,id:null,timestamp:null,sender:Object(r.Map)(),messageDeletedStatus:i.a,auditParams:Object(c.a)(),assignedAgent:{agentId:null,agentType:null},unassignedAgent:{agentId:null,agentType:null}},"AssignmentUpdateMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(s.generateUuid)(),auditParams:Object(c.a)(e.auditParams),timestamp:e.timestamp||Object(a.generateUniqueClientTimestamp)("AssignmentUpdateMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=u},TlnZ:function(e,t,n){"use strict";var r=n("QYOI"),i=n("P0El");const a=Object(r.Record)({[i.b]:i.a,emailMessageId:null,emailSubject:null,id:null,messageDeletedStatus:null,objectId:null,objectType:null,timestamp:null,workflowId:null,recipientVid:null},"CrmObjectWorkflowEmailSent");t.a=a},Tt13:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="FEEDBACK_SUBMISSION"},Tvz2:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Ozt8"),i=n("mlLV");const a=()=>{Object(r.postExternalApiEvent)({eventType:i.WIDGET_CLOSED,payload:{message:"widget is closed"}})}},TyWi:function(e,t,n){"use strict";n.d(t,"b",(function(){return b}));n.d(t,"a",(function(){return g}));var r=n("dLEV"),i=n("CJvR"),a=n("QYOI"),s=n.n(a),o=n("2fjV"),c=n("gIOm"),u=n("M9tH"),l=n("D/wX"),d=n("/KG3"),p=n("qQrL"),f=n("3L7e"),h=n("19qb");h.useDispatch;const b=h.useSelector;function g(e,t){const n=[i.a.withExtraArgument(t),l.a,c.a,u.a,o.a,d.a];return Object(r.configureStore)({reducer:f.a,preloadedState:e,middleware:n,devTools:{maxAge:200,serialize:{options:{circular:"[CIRCULAR]"},immutable:s.a},actionSanitizer:e=>e.type===p.a.SUCCEEDED?Object.assign({},e,{payload:{client:"<< PUBSUB CLIENT >>"}}):e,stateSanitizer:e=>e.pubSubClient.data?Object.assign({},e,{pubSubClient:e.pubSubClient.set("data","<< PUBSUB CLIENT >>")}):e}})}},U7wy:function(e,t,n){"use strict";var r=n("Ut5p"),i=n("xZ3y"),a=n("v+ge"),s=n("MZef"),o=n("xe9j"),c=n("xyDt"),u=n("y+PV"),l=n("stzZ"),d=n("bYG+");const p=Object(d.a)("sessionId");var f=n("DLkX");const h=new s.a({data:new o.a({coloring:Object(f.a)()})});t.a=Object(r.c)({[i.GET_WIDGET_DATA]:u.a,[Object(r.a)(i.GET_WIDGET_DATA_SUCCEEDED,a.a)]:(e,t)=>Object(l.a)(()=>t.payload,e),[a.b]:(e,t)=>{const{sessionId:n}=t.payload;return Object(c.a)(p(n),e)}},h)},UBEt:function(e,t,n){"use strict";var r=n("MJM1");const i=["enabled"],a=["scrollPercentage"];n.d(t,"a",(function(){return s}));n.d(t,"b",(function(){return o}));const s=Object(r.a)(i),o=Object(r.a)(a)},UJtG:function(e,t,n){"use strict";n.r(t);n.d(t,"isTypicalResponseTimeMessage",(function(){return a}));var r=n("0IK8"),i=n("6OYF");const a=e=>Object(r.getTopLevelType)(e)===i.a},Ug6J:function(e,t,n){"use strict";var r=n("49A5"),i=n("tLJd"),a=n("wkWz"),s=n("YKTq"),o=n("tAuz"),c=n("ZqFO"),u=n("VvTX"),l=n("97n4"),d=n("UBEt");const p=e=>{const t=Object(r.getLatestWidgetData)(e),n=Object(c.f)(t),i=Object(u.getClientTriggers)(n),a=Object(l.c)(i),s=Object(o.getIsMobile)(e),p=Object(d.a)(a),f=Object(u.getPopMessageOnSmallScreens)(n),h=Object(u.getPopOpenWelcomeMessage)(n),b=Object(u.getPopOpenWidget)(n);return s?p&&!f:!b&&!h&&p};var f=n("kyOS");n.d(t,"a",(function(){return h}));const h=(e,t)=>{const n=Object(r.getLatestWidgetData)(e),c=!Object(i.shouldOverrideTrigger)(Object(a.getWidgetStartOpen)(e));return{hasClientTriggerAlreadyFired:p(e),shouldToggleOpen:t(n)&&Object(s.getPopOpenWidget)(e)&&!Object(o.getIsMobile)(e)&&c,shouldToggleInitialMessageBubble:t(n)&&!Object(f.getShouldHideWelcomeMessage)(e)}}},Ut5p:function(e,t,n){"use strict";function r(e){return"function"==typeof e}function i(e,t,n){return(...i)=>{const a={type:e};r(t)&&(a.payload=t(...i));r(n)&&(a.meta=n(...i));return a}}const a="||";function s(...e){return e.join(a)}function o(...e){return(t,n)=>e.reduce((e,t)=>t(e,n),t)}function c(e,t){const n=e.split(a);return(e,i)=>n.includes(i.type)&&r(t)?t(e,i):e}function u(e,t){const n=o(...Object.getOwnPropertyNames(e).map(t=>c(t,e[t])));return void 0!==t?(e=t,r)=>n(e,r):n}n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return u}));n.d(t,"a",(function(){return s}))},UxS0:function(e,t,n){"use strict";n.r(t);n.d(t,"buildVisitorCommonMessage",(function(){return b}));var r=n("QYOI"),i=n("Mx3c"),a=n("6d8N"),s=n("cPs9"),o=n("bWKF"),c=n("BvOu"),u=n("v0wH"),l=n("WebA"),d=n("kqCt"),p=n("rf4d"),f=n("OxGf"),h=n("0G/n");const b=({channelInstanceId:e,clientType:t,fileAttachment:n,quickReply:b,richText:g,senderId:m,text:O})=>{const v=Object(o.b)(i.VISITOR),j=Object(s.a)(v),y=[],E={type:h.a,value:m},T=Object(d.a)({deliveryIdentifier:E}),I=Object(r.List)([T]);n&&y.push(n);b&&y.push(new a.a(b));return Object(l.buildCommonMessage)({status:{messageStatus:u.b},clientType:t,attachments:y,text:O,richText:g,id:Object(c.generateUuid)(),sender:{"@type":v,[j]:m},senders:I,channelInstanceId:e,genericChannelId:p.d,direction:f.a})}},UxsU:function(e,t,n){"use strict";const r={STARTED:"STARTED",ENDED:"ENDED",SOFT_DELETED:"SOFT_DELETED",INITIALIZING:"INITIALIZING"};t.a=r},"V+nC":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("0IK8"),i=n("GcWH");const a=e=>Object(r.getTopLevelType)(e)===i.a},"V/xu":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7719");const i={[r.a]:16,[r.c]:24,[r.f]:32,[r.e]:48,[r.d]:72,[r.b]:108}},"V1/C":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="OFFICE_HOURS"},V9Gp:function(e,t,n){"use strict";n.r(t);n.d(t,"getAPIEnableWidgetCookieBanner",(function(){return c}));var r=n("dLEV"),i=n("QnHA"),a=n("IbXZ"),s=n("CXrm"),o=n("Los8");const c=Object(r.createSelector)([i.a],e=>Object(a.a)(e)===s.c||Object(o.a)(Object(a.a)(e)))},V9Mx:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Ut5p"),a=n("g4ag"),s=n("qjq5"),o=n("MM1n");function c(e,t){const n=r.Seq.Set(e);return Object(o.a)((e,t)=>!n.contains(t),t)}var u=Object(s.a)(c),l=n("xCrP"),d=n("/UYW"),p=n("lEMs");const f=Object(r.Map)(),h={[d.a]:(e,t)=>{const{threadId:n,senderId:r,timeoutId:i}=t.payload;return Object(a.a)([""+n,""+r],i,e)},[d.b]:(e,t)=>{const{threadId:n,senderId:r}=t.payload;return Object(p.getTypingTimeoutIdForAgentInThread)({threadId:""+n,senderId:""+r,typingStates:e})?Object(l.a)([""+n],u([""+r]),e):e}};t.a=Object(i.c)(h,f)},VADA:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MJM1"),i=n("3HLt"),a=n("kevw");const s=e=>Object(r.a)(i.a,e)||Object(a.a)(Object(a.c)(e))},VB2T:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="ADD_TIME_ON_PAGE_TRIGGER",i="REMOVE_TIME_ON_PAGE_TRIGGER"},VBzW:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"d",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"a",(function(){return s}));n.d(t,"e",(function(){return o}));n.d(t,"f",(function(){return c}));const r=["hasFileAttachment"],i=["previewText"],a=["previewMessageId"],s=["failed"],o=["responder"],c=["visitor"]},VSQ5:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="UPDATE_VIEW"},VToG:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"d",(function(){return s}));n.d(t,"e",(function(){return o}));const r="FAILED",i="OUT_OF_SYNC",a="STARTED",s="SUCCEEDED",o="UNINITIALIZED"},VVGt:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("dLEV"),i=n("cXEp");const a=Object(r.createAction)(i.b,({currentUrl:e,threadId:t})=>({payload:{currentUrl:e,threadId:t}}))},VVfI:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("VToG"),i=n("DrqF"),a=n("mc4r");const s=e=>{Object(i.a)(Object(a.a)(e),"createAsyncActionTypes requires a valid base actionName");return{[r.a]:e+"_FAILED",[r.b]:e+"_OUT_OF_SYNC",[r.c]:e+"_STARTED",[r.d]:e+"_SUCCEEDED",[r.e]:e+"_UNINITIALIZED"}}},VY4I:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("n6ol"),i=n("CITH");const a=()=>{Object(i.a)(r.x)}},VYoM:function(e,t,n){"use strict";var r=n("0JoJ"),i=n("gBd5");const a={post:(e,t)=>Object(i.a)(r.a.post,e,t),put:(e,t)=>Object(i.a)(r.a.put,e,t),get:(e,t)=>Object(i.a)(r.a.get,e,t),getWithResponse:(e,t)=>Object(i.a)(r.a.getWithResponse,e,t),delete:(e,t)=>Object(i.a)(r.a.delete,e,t)};t.a=a},VfuR:function(e,t,n){e.exports=n.dlbpr(1,62)},Vfyk:function(e,t,n){"use strict";var r=n("QYOI"),i=n("+lAi");class a extends(Object(r.Record)({awayMessage:null,typicalResponseTime:null,officeHoursStartTime:null})){constructor(e={}){super(Object.assign({},e,{typicalResponseTime:e.typicalResponseTime?Object(i.a)(e.typicalResponseTime):null}))}}t.a=a},Vi1n:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const r=({regexes:e=[],string:t=""})=>e.some(e=>t.match(e)),i=({node:e,node_name:t,allowedDomainsForIframe:n})=>{if("iframe"===t&&e&&e.attributes&&e.getAttribute("src")&&!r({regexes:n,string:e.getAttribute("src")||""})){e.removeAttribute("src");return{node:e}}return null}},VvTX:function(e,t,n){"use strict";n.r(t);var r=n("MJM1");const i=["id"],a=["type"],s=["captureVisitorEmailAddress"],o=["customEmailCaptureDelay"],c=["inboxId"],u=["routingRules"],l=["sendFromRoutingRules"],d=["gdprExplicitConsentRequired"],p=["gdprConsentToProcessEnabled"],f=["cookieConsentPrompt"],h=["gdprConsentToCommunicateEnabled"],b=["customConsentToProcessMessage"],g=["customConsentToCommunicateMessage"],m=["consentToCommunicateSubscriptionId"],O=["popOpenWelcomeMessage"],v=["popOpenWidget"],j=["popMessageOnSmallScreens"],y=["language"],E=["clientTriggers"],T=["quickRepliesDisplay"];n.d(t,"getCaptureVisitorEmailAddress",(function(){return I}));n.d(t,"getChatHeadingConfig",(function(){return w}));n.d(t,"getClientTriggers",(function(){return S}));n.d(t,"getConsentToCommunicateSubscriptionId",(function(){return A}));n.d(t,"getCustomConsentToCommunicateMessage",(function(){return C}));n.d(t,"getCustomConsentToProcessMessage",(function(){return x}));n.d(t,"getCustomEmailCaptureDelay",(function(){return R}));n.d(t,"getGdprConsentToCommunicateEnabled",(function(){return k}));n.d(t,"getGdprConsentToProcessEnabled",(function(){return P}));n.d(t,"getGdprExplicitConsentRequired",(function(){return D}));n.d(t,"getGdprCookieConsentPrompt",(function(){return _}));n.d(t,"getId",(function(){return M}));n.d(t,"getInboxId",(function(){return N}));n.d(t,"getLanguage",(function(){return L}));n.d(t,"getPopMessageOnSmallScreens",(function(){return B}));n.d(t,"getPopOpenWelcomeMessage",(function(){return F}));n.d(t,"getPopOpenWidget",(function(){return H}));n.d(t,"getRoutingRules",(function(){return U}));n.d(t,"getSendFromRoutingRules",(function(){return V}));n.d(t,"getType",(function(){return G}));n.d(t,"getDisplayBotQuickRepliesOutsideChat",(function(){return W}));const I=Object(r.a)(s),w=Object(r.a)(["chatHeadingConfig"]),S=Object(r.a)(E),A=Object(r.a)(m),C=e=>Object(r.a)(g,e)||"",x=e=>Object(r.a)(b,e)||"",R=Object(r.a)(o),k=Object(r.a)(h),P=Object(r.a)(p),D=Object(r.a)(d),_=Object(r.a)(f),M=Object(r.a)(i),N=Object(r.a)(c),L=Object(r.a)(y),B=Object(r.a)(j),F=Object(r.a)(O),H=Object(r.a)(v),U=Object(r.a)(u),V=Object(r.a)(l),G=Object(r.a)(a),W=Object(r.a)(T)},"W/H/":function(e,t,n){"use strict";var r=n("9f1P");const i=(e,t)=>Object(r.css)(["","{","}"],e,t);function a({baseStyle:e,_disabled:t,_focused:n,_hovered:a,_pressed:s}){return Object(r.css)([""," "," "," "," "," "," "," "," ",""],e,({disabled:e})=>e?t:"",({focused:e})=>e?n:"",({hovered:e})=>e?a:"",({pressed:e})=>e?s:"",t&&i("&:disabled",t),n&&i("&:focus-visible",n),a&&i(t?"&:hover:enabled":"&:hover",a),s&&i(t?"&:active:enabled":"&:active",s))}function s({component:e,defaultStyles:t,theme:n}){const r=n&&n.components&&n.components[e]||{};return a(Object.assign({},t,r))}t.a=s},"W/er":function(e,t,n){"use strict";n.r(t);n.d(t,"getResponders",(function(){return i}));var r=n("MJM1");const i=Object(r.a)(["responders"])},"W/fk":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));n.d(t,"b",(function(){return h}));var r=n("LZPL"),i=n.n(r),a=n("PyK+"),s=n.n(a),o=n("mEYk"),c=n.n(o),u=n("7pHJ"),l=n("C5Zv");const d={OBSIDIAN:"#33475b",OZ:"#00bda5",OZ_LIGHT:"#e5f8f6",OZ_DARK:"#00a38d",CANDY_APPLE_DARK:"#d94c53",SLINKY:"#516f90",KOALA:"#eaf0f6",MARIGOLD:"#f5c26b",MARIGOLD_LIGHT:"#fef8f0",CANDY_APPLE_LIGHT:"#fdedee",CANDY_APPLE:"#f2545b",THUNDERDOME:"#6a78d1",THUNDERDOME_LIGHT:"#f0f1fa"};function p(e={}){let t="";e.staticAppInfo&&e.staticAppInfo.staticAppName?t=e.staticAppInfo.staticAppName:s.a&&s.a.bender&&s.a.bender.currentProject&&(t=s.a.bender.currentProject);return t}function f(e={}){let t="";e.staticAppInfo&&e.staticAppInfo.staticAppVersion?t=e.staticAppInfo.staticAppVersion:s.a&&s.a.bender&&s.a.bender.currentProjectVersion&&(t=s.a.bender.currentProjectVersion);return t}class h{constructor(e={}){this.options=e;this.debug="true"===i.a.debug("react-rhumb");this.libName="react-rhumb";this.staticAppName=p(e);this.staticAppVersion=f(e)}performanceMark(e){"function"==typeof performance.mark&&performance.mark(e)}performanceEntries(){return"function"==typeof performance.getEntries&&performance.getEntries()||[]}toDuration(e,t,n){const r=Math.max(...n.filter(t=>Object.prototype.hasOwnProperty.call(e,t)).map(t=>e[t].timestamp));return Math.max(0,r-t)}setCustomAttribute(e,t){window.newrelic&&window.newrelic.setCustomAttribute(e,t)}addPageAction(e,t){window.newrelic&&window.newrelic.addPageAction(e,t)}captureError(e,t){let n={},r={};if(t){n=t.data;r=t.tags}window.newrelic&&window.newrelic.noticeError(e,Object.assign({},n,r));c.a.captureException(e,{extra:n,tags:r});u.a.counter("captured").increment()}report(e){throw new Error("Reporters must define a custom report() function")}labelCss(e,t){return`background-color:${e};color:${d.OBSIDIAN};padding: 0 .5rem;border-left: 4px solid ${t};`}colorCss(e){return`color:${e};`}logGroupWithBadge(e,t,n,r){let i=this.libName;try{window.self!==window.top&&(i+=` (child frame: ${this.staticAppName})`)}catch(e){i+=` (child frame: ${this.staticAppName})`}console.groupCollapsed(`%c${i}%c ${e}`,this.labelCss(t,n),"");r();console.groupEnd()}captureUnexpectedRoute(e){window.newrelic&&window.newrelic.noticeError(l.c,{pathname:e});c.a.captureException(l.c,{level:"warning",tags:{pathname:e}})}}},W26t:function(e,t,n){"use strict";var r=n("K+6d"),i=n("mFyM"),a=n("QYOI");var s=Object(a.Record)({[r.c]:i.a,botId:null},"BotHandoffAudit");var o=Object(a.Record)({[r.c]:i.b,agentId:null,agentType:null},"ManualAudit");var c=Object(a.Record)({[r.c]:i.c},"MultipleAudit");var u=Object(a.Record)({[r.c]:i.d},"SystemMigrationAudit");var l=Object(a.Record)({[r.c]:i.e},"SystemTestAudit");var d=Object(a.Record)({[r.c]:i.g,vid:null},"VisitorAudit");var p=Object(a.Record)({[r.c]:i.f},"UnknownAudit");n.d(t,"a",(function(){return f}));const f=(e={})=>{const{[r.c]:t}=e;switch(t){case i.a:return s(e);case i.b:return o(e);case i.c:return c(e);case i.d:return u(e);case i.e:return l(e);case i.g:return d(e);case i.f:default:return p(e)}}},W6dd:function(e,t,n){"use strict";n.d(t,"c",(function(){return r}));n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return a}));const r="on-bright",i="default",a="error"},WKLl:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("dLEV"),i=n("Xvzl"),a=n("p9k8"),s=n("lEkO");const o=Object(r.createSelector)([s.a],Object(i.a)(a.a))},WTKJ:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"a",(function(){return a}));const r="thread-list",i="thread-view",a="knowledge-base"},WYdz:function(e,t,n){"use strict";var r=n("MZef"),i=n("4cwC"),a=n("y+PV"),s=n("stzZ"),o=n("xyDt"),c=n("uB3n"),u=n("eJ3n"),l=n("0IK8"),d=n("qjq5"),p=n("DdHT"),f=n("Hnia"),h=n("xCrP"),b=n("/He/");const g=Object(d.a)((e,t)=>Object(h.a)(b.h,Object(p.a)(t=>e.merge(t)),t));var m=n("OHie"),O=n("021p");const v=Object(d.a)((e,t)=>Object(h.a)(b.a,Object(p.a)(t=>e.mergeDeep(t)),t)),j=Object(d.a)((e,t)=>Object(h.a)(b.b,t=>e.mergeDeep(t),t)),y=Object(d.a)((e,t)=>Object(h.a)(b.d,t=>e&&e.length?[...new Set(t.concat(e).map(e=>JSON.stringify(e)))].map(e=>JSON.parse(e)):t,t)),E=Object(d.a)((e,t)=>{Object(f.threadHistoryInvariant)(e);Object(f.threadHistoryInvariant)(t);return Object(p.a)(g(Object(O.d)(t)),m.sortMessages,v(Object(O.a)(t)),j(Object(O.b)(t)),y(Object(O.c)(t)))(e)});var T=n("Y/B+"),I=n("zbS+"),w=n("Pz4q"),S=n("NIjC"),A=n("LrxL"),C=n("rIrL"),x=n("+TdC"),R=n("NT8A"),k=n("Iqwl"),P=n("/fsP"),D=n("JxGV"),_=n("MfaD"),M=n("kTjR"),N=n("yuy6"),L=n("TePN"),B=n("JoGU"),F=n("sA91"),H=n("wO6X"),U=n("fwMr"),V=n("TlnZ"),G=n("Q7Xa"),W=n("kNma"),z=n("Gc2C");const q=[w.a,S.a,A.a,I.a,C.a,x.a,R.a,k.a,P.a,D.a,_.a,M.a,N.a,L.a,B.a,H.a,U.a,W.a,V.a,G.a],K=e=>Object(z.a)(q.some(t=>e instanceof t),`Message given is '${Object(F.a)(e)}', but expected one of ${q.map(F.a)}`),Y=Object(d.a)((e,t)=>t.deleteIn(b.h.concat(e))),J=Object(d.a)((e,t,n)=>{Object(T.messageKeyInvariant)(e);K(t);Object(f.threadHistoryInvariant)(n);return Y(e,n)});var Q=n("EN6V");function Z(e,t,n,r){return e(r)?t(r):n(r)}const X=Object(d.a)(Z).operation;function $(e,t,n){return X(e,t,Q.a,n)}var ee=Object(d.a)($),te=n("V+nC"),ne=n("eeeG");const re=Object(d.a)((e,t,n)=>{Object(T.messageKeyInvariant)(e);K(t);Object(f.threadHistoryInvariant)(n);return Object(p.a)(Object(ne.setMessage)(e,t),ee(()=>!Object(te.a)(t),m.sortMessages))(n)});var ie=n("+LtA"),ae=n("Ut5p"),se=n("xZ3y"),oe=n("qQrL"),ce=n("2Sm/"),ue=n("+tWo"),le=n("+HSX");const de=Object(c.a)({notSetValue:Object(r.a)({data:new ie.a})});t.a=Object(ae.c)({[ce.a.SUCCEEDED](e,t){const{threadId:n,threadHistory:r}=t.payload;return Object(u.a)(n,Object(s.a)(()=>r),e)},[ue.a.STARTED](e,t){const{requestArgs:n}=t.payload;return Object(u.a)(n.threadId,a.a,e)},[ue.a.SUCCEEDED](e,t){const{requestArgs:n,data:{threadHistory:r}}=t.payload;return Object(u.a)(n.threadId,Object(s.a)(E(r)),e)},[ue.a.FAILED](e,t){const{requestArgs:n}=t.payload;return Object(u.a)(n.threadId,i.a,e)},[se.RECEIVED_INCOMING_MESSAGE](e,t){const{message:n,threadId:r}=t.payload,i=Object(l.getId)(n);return Object(u.a)(r,Object(o.a)(Object(le.addMessageToThreadHistory)(i,n)),e)},[oe.b.SUCCEEDED](e,t){const{publishedMessage:n,threadId:r}=t.payload,i=Object(l.getId)(n);return Object(u.a)(r,Object(o.a)(Object(le.addMessageToThreadHistory)(i,n)),e)},[ue.b](e,t){const{message:n,threadId:r}=t.payload,i=Object(l.getId)(n);return Object(u.a)(r,Object(o.a)(J(i,n)),e)},[se.UPDATE_MESSAGE_IN_CONVERSATION](e,t){const{message:n,threadId:r,updated:i}=t.payload,a=Object(l.getId)(n);return Object(u.a)(r,Object(o.a)(re(a,i)),e)}},de)},WebA:function(e,t,n){"use strict";n.r(t);n.d(t,"buildCommonMessage",(function(){return O}));var r=n("QYOI"),i=n("pHO9"),a=n("MJM1"),s=n("BvOu"),o=n("c1C1"),c=n("MWj0"),u=n("Pz4q"),l=n("IcZZ"),d=n("fPyn"),p=n("0IK8"),f=n("o/5C"),h=n("pxL+"),b=n("Y4h2"),g=n("asw7"),m=n("6O34");const O=(e={})=>{const t=Object(d.a)(Object(a.a)(c.v,e)),n=Object(l.a)(e.attachments),O=Object(g.a)(e.recipients),v=Object(m.a)(e.senders),j=e.direction||"",y=Object(p.getId)(e)||Object(s.generateUuid)(),E=Object(f.d)(e)||null,T=Object(p.getTimestamp)(e)||Object(o.generateUniqueClientTimestamp)("buildCommonMessage-timestamp");return Object(i.a)(Object(h.b)(y),Object(h.e)(t),Object(h.a)(n),Object(h.f)(T),Object(b.c)(O),Object(b.d)(v),Object(b.b)(j),Object(b.a)(E))(new u.a(Object(r.fromJS)(e)))}},Wiow:function(e,t,n){"use strict";n.r(t);n.d(t,"resetStubbedThread",(function(){return a}));var r=n("dLEV"),i=n("ffqu");const a=Object(r.createAction)(i.a)},Wt04:function(e,t,n){"use strict";n.r(t);n.d(t,"getMessagesUtk",(function(){return i}));var r=n("q8Gl");function i(){const e=Object(r.getWindowLocation)(),t=e.pathname,n=t.indexOf("/utk/"),i=t.slice(n).split("/").pop();return"null"!==i&&-1!==n?i:e.paramValue("messagesUtk")}},Wte1:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},Wtyj:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="i18n-cached-standard-locales",i="i18n-cached-public-locales"},WzHW:function(e,t,n){"use strict";var r=n("xZ3y"),i=n("dLEV"),a=n("9j/6");const s=Object(a.a)({isPubNubClientConnected:!0}),o=Object(i.createSlice)({name:"clientData",initialState:s,reducers:{},extraReducers:e=>{e.addCase(r.APP_IN_FOREGROUND,e=>{e.isInForeground=!0});e.addCase(r.APP_IN_BACKGROUND,e=>{e.isInForeground=!1});e.addCase(r.NETWORK_ONLINE,e=>{e.isPubNubClientConnected=!0});e.addCase(r.NETWORK_OFFLINE,e=>{e.isPubNubClientConnected=!1})}});t.a=o.reducer},"X3o/":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("name");Object(r.a)("type")},X5NR:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Ktcs");const i=Object(r.createContext)(void 0),a=i.Consumer;i.Provider},XF21:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="ASSIGNMENT_UPDATE"},XUHx:function(e,t,n){"use strict";n.r(t);var r=n("ZqFO"),i=n("VvTX"),a=n("wkWz"),s=n("R4L7"),o=n("E9A7"),c=n("tAuz"),u=n("jxkM"),l=n("j+9m"),d=n("tTno"),p=n("n6ol"),f=n("CITH");const h=()=>{Object(f.a)(p.v)};var b=n("GHgd"),g=n("3ZFB"),m=n("Or3K"),O=n("2BFa"),v=n("NDfM");n.d(t,"bootstrapInitialWidgetUi",(function(){return j}));const j=e=>(t,n)=>{const p=Object(a.getWidgetStartOpen)(n()),f=Object(r.f)(e),j=Object(c.getIsMobile)(n()),y=Object(i.getPopOpenWidget)(f)&&!j,E=Object(o.getShowInitialMessage)(n()),T=E||y,I=Boolean(p),w=!1===p,S=Object(O.gdprCookieConsentOnExitIntentEnabled)(n(),e);Object(d.scrollTriggerEnabled)(e)&&h();Object(b.timeOnPageTriggerEnabled)(e)&&t(Object(g.a)(e));(Object(m.exitIntentTriggerEnabled)(e)||S)&&Object(v.postStartTrackExitIntent)();if(I){t(Object(u.toggleOpen)({isOpened:!0}));t(Object(s.toggleInitialMessageBubble)(E))}else if(w){t(Object(u.toggleOpen)({isOpened:!1}));t(Object(s.toggleInitialMessageBubble)(E))}else if(!T||!Object(l.hasClientTriggers)(e)){t(E?Object(s.toggleInitialMessageBubble)(!0):Object(s.toggleInitialMessageBubble)(!1));t(y?Object(u.toggleOpen)({isOpened:!0}):Object(u.toggleOpen)({isOpened:!1}))}}},XZzj:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("KXN9"),i=n("x1JE"),a=n("PpSk"),s=n("dLEV"),o=n("ye6p"),c=n("goEE"),u=n("/5H5");const l=Object(s.createSelector)([u.a,o.a],(e,t)=>{const n=Object(a.getThreadId)(t),s=Object(i.getEntries)(e).map(r.a);return Object(c.getSortedMessagesByThreadId)(s,n)})},XkPn:function(e,t,n){"use strict";var r=n("QYOI");const i="OTHER";class a extends(Object(r.Record)({expiresAt:0,url:"",name:"",extension:"",type:i,fileSize:0,width:null,height:null},"FileMetadataRecord")){constructor(e={}){super(Object.assign({},e,{fileSize:e.fileSize||e.size||0}))}}var s=a;class o extends(Object(r.Record)({fileId:0,fileMetadata:null,fileUsageType:null,thumbnailMetadata:null},"ResolvedAttachmentRecord")){constructor(e={}){super(Object.assign({},e,{fileMetadata:e.fileMetadata?new s(e.fileMetadata):null,thumbnailMetadata:e.thumbnailMetadata?new s(e.thumbnailMetadata):null}))}}t.a=o},Xvzl:function(e,t,n){"use strict";var r=n("qjq5"),i=n("MM1n");t.a=Object(r.a)(i.a)},"Y+S9":function(e,t){e.exports="//static.hsappstatic.net/visitor-ui-component-library/static-1.1947/img/default-avatar.png"},"Y/B+":function(e,t,n){"use strict";n.r(t);n.d(t,"messageKeyInvariant",(function(){return i}));var r=n("Gc2C");const i=e=>Object(r.a)("string"==typeof e,"Expected messageKey to be a `String` not a `%s`",typeof e)},"Y0S+":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=({node:e,config:t})=>{if(!e||!e.href||"A"!==e.tagName)return null;const n=e.href.match("(tel|mms|sms|mailto):[0-9]+");"_self"!==e.getAttribute("target")||n||e.setAttribute("target","_top");const r=n?"_self":e.getAttribute("target");r&&e.setAttribute("target",r);return{node:e,config:t}}},Y4h2:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n.d(t,"b",(function(){return l}));n.d(t,"c",(function(){return d}));n.d(t,"d",(function(){return p}));var r=n("qjq5"),i=n("JGJA"),a=n("bYG+"),s=n("MJM1"),o=n("MWj0"),c=n("o/5C");Object(a.a)("id"),Object(a.a)("text"),Object(a.a)("timestamp"),Object(a.a)("status"),Object(a.a)("richText"),Object(a.a)("channelInstanceId");const u=Object(a.a)("genericChannelId"),l=(Object(a.a)("integrationId"),Object(a.a)("direction")),d=Object(a.a)("recipients"),p=Object(a.a)("senders"),f=Object(a.a)("attachments");Object(r.a)((e,t,n)=>{const r=Object(c.f)(n).filter(t=>Object(s.a)(o.r,t)!==e).filter(e=>null!==Object(s.a)(o.r,e)).concat(t).toList();return d(r,n)}),Object(r.a)((e,t)=>{const n=Object(i.a)("@type",e),r=Object(c.a)(t).filter(e=>Object(i.a)("@type",e)!==n).toList();return f(r.push(e),t)})},YHaB:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("Gc2C"),i=n("dLEV"),a=n("VSQ5"),s=n("WTKJ");const o=Object(i.createAction)(a.a,e=>({payload:{view:e}})),c=e=>t=>{Object(r.a)([s.b,s.c,s.a].indexOf(e)>-1,'`updateView` expected to be called with a valid `view` argument, but received "%s"',e);t(o(e))}},YICO:function(e,t,n){"use strict";var r=n("mKxs"),i=n("k8Ub"),a=n("S5kL"),s=n("QYOI"),o=n("VfuR"),c=n.n(o),u=n("Ktcs"),l=n("i7jX"),d=n("QGYt"),p=n("/mXs"),f=n("P7jJ"),h=n("QgEn");const b=e=>Object(h.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32"},e,{children:Object(h.jsx)("path",{d:"M29.92 2.58L11.33 21.17l-9.25-9.25c-.362-.362-.862-.586-1.415-.586-1.105 0-2.001.896-2.001 2.001 0 .553.224 1.053.586 1.415L9.92 25.41c.362.362.862.587 1.415.587s1.053-.224 1.415-.587l20-20c.362-.362.586-.862.586-1.415 0-1.105-.896-2.001-2.001-2.001-.553 0-1.053.224-1.415.586z"})}));b.displayName="SVGSuccess";var g=b,m=n("9f1P"),O=n.n(m),v=n("AgM1"),j=n("iKGd");const y=O.a.div.withConfig({displayName:"QuickReplyGroup__ButtonWrapperInsideChat",componentId:"sc-1p8ce89-0"})(["margin-bottom:12px;gap:8px;padding-top:8px;padding-bottom:8px;align-items:center;display:flex;flex-wrap:wrap;"]),E=O.a.div.withConfig({displayName:"QuickReplyGroup__ButtonWrapperOutsideChat",componentId:"sc-1p8ce89-1"})(["margin-bottom:0px;gap:16px;padding-bottom:0px;align-items:normal;display:inline-flex;flex-direction:column;flex-wrap:wrap;width:240px;"]),T=O()(d.a).withConfig({displayName:"QuickReplyGroup__LeftAlignButton",componentId:"sc-1p8ce89-2"})(["text-align:left;flex-shrink:1;"]),I=O()(d.a).withConfig({displayName:"QuickReplyGroup__QuickReplyOutsideChatButton",componentId:"sc-1p8ce89-3"})(["background:",";"],j.o);class w extends u.Component{constructor(e){super(e);this.handleSendMulti=this.handleSendMulti.bind(this);this.handleQuickReplySend=this.handleQuickReplySend.bind(this);this.handleSendIndividual=this.handleSendIndividual.bind(this);this.handleSelect=this.handleSelect.bind(this);this.state={selected:Object(s.Set)()}}hasSelected(){const{selected:e}=this.state;return e.size>0}handleSelect(e){this.setState(({selected:t})=>({selected:t.includes(e)?t.delete(e):t.add(e)}))}handleSendMulti(){const{selected:e}=this.state;if(this.hasSelected()){const t=e.map(a.a).join(", ");this.handleQuickReplySend(t,e)}}handleSendIndividual(e){const t=Object(s.List)([e]),n=Object(a.a)(e);this.handleQuickReplySend(n,t)}handleQuickReplySend(e,t){const{message:n,publishMessage:r}=this.props;r({text:e,quickReply:Object(i.a)(n).set("quickReplies",t.toJS())})}renderOptions(){const{options:e,multiSelect:t,disabled:n,isOutsideChat:r,onSend:i,theme:s}=this.props,{selected:o}=this.state,c="function"==typeof i?i:t?this.handleSelect:this.handleSendIndividual;return e.map(e=>{const i=()=>c(e),u=o.includes(e),d=Object(a.b)(e),p=Object(a.a)(e);if(!d||!p)return null;const f=t&&Object(h.jsx)(l.a,{className:"m-right-2",checked:u,onChange:i,children:p});return r?Object(h.jsx)(I,{onClick:i,disabled:n,theme:s,children:p},"quickreply."+d):Object(h.jsx)(T,{onClick:i,disabled:n,size:"sm",children:f||p},"quickreply."+d)})}renderSendButton(){const{disabled:e,multiSelect:t}=this.props;if(!t)return null;const n=!this.hasSelected()||e;return Object(h.jsx)(p.a,{disabled:n,onClick:this.handleSendMulti,size:"sm","data-test-id":"quick-reply-send-button",children:Object(h.jsx)(f.a,{icon:Object(h.jsx)(g,{}),size:"sm"})},"send-button")}render(){const{isOutsideChat:e}=this.props,t=e?E:y;return Object(h.jsx)(t,{"data-test-id":"quick-reply-group",children:[...this.renderOptions(),this.renderSendButton()]})}}w.contextType=v.a;w.defaultProps={multiSelect:!1,hasSentReply:!1,isOutsideChat:!1};w.displayName="QuickReplyGroup";w.propTypes={disabled:c.a.bool.isRequired,isOutsideChat:c.a.bool,message:c.a.oneOfType([Object(r.a)("CommonMessage"),Object(r.a)("InitialMessage")]).isRequired,multiSelect:c.a.bool.isRequired,onSend:c.a.func,options:c.a.instanceOf(s.Set).isRequired,publishMessage:c.a.func,theme:c.a.object};t.a=w},YKTq:function(e,t,n){"use strict";n.r(t);n.d(t,"getPopOpenWidget",(function(){return s}));var r=n("dLEV"),i=n("VvTX"),a=n("8dR1");const s=Object(r.createSelector)(a.a,(e={})=>Object(i.getPopOpenWidget)(e))},YNiY:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=e=>Object(r.a)("threads",e)},YPLr:function(e,t,n){"use strict";n.r(t);n.d(t,"agentTypeToSenderType",(function(){return c}));n.d(t,"agentTypeToCMFSenderType",(function(){return u}));var r=n("aLTZ"),i=n("Mx3c"),a=n("2Zef");const s={[r.b]:i.AGENT,[r.a]:i.BOT},o={[r.b]:a.AGENT_SENDER,[r.a]:a.BOT_SENDER},c=e=>s[e],u=e=>o[e]},YQ4m:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n("VfuR"),i=n.n(r),a=n("QYOI"),s=n("fKJZ"),o=n("6Jpi"),c=n("hixb"),u=n("38AR"),l=n("JxxT"),d=n("9f1P"),p=n.n(d),f=n("6pce"),h=n("0fuM"),b=n("QgEn");const g=p.a.div.withConfig({displayName:"VisitorWidget__WidgetBodyDiv",componentId:"sc-1lunvwo-0"})(["display:flex;flex-direction:column;height:calc(100% - ","px);"],l.b),m=e=>{const{browserWindowHeight:t,browserWindowWidth:n,chatHeadingConfig:r,chatHeadingResponders:i,children:a,coloring:s,closeWidget:o,customHeaderText:l,inline:d,isPreview:p,isThreadAssigned:f,createNewThread:h,mobile:m,officeHoursMessage:O,showAvailabilityMessage:v,navigateToThreadList:j,showBackButton:y,size:E,style:T,typicalResponseTimeMessage:I,unseenThreadsCountExcludingCurrentThread:w,view:S,widgetLocation:A,backButtonDisabled:C,widgetSize:x,setWidgetSize:R}=e;return Object(b.jsxs)(u.b,{browserWindowHeight:t,browserWindowWidth:n,inline:d,size:E,style:T,mobile:m,widgetLocation:A,widgetSize:x,children:[Object(b.jsx)(c.a,{chatHeadingConfig:r,coloring:s,createNewThread:h,chatHeadingResponders:i,customHeaderText:l,inline:d,isThreadAssigned:f,mobile:m,officeHoursMessage:O,onClose:o,preview:p,setWidgetSize:R,showAvailabilityMessage:v,navigateToThreadList:j,showBackButton:y,typicalResponseTimeMessage:I,unseenThreadsCountExcludingCurrentThread:w,view:S,backButtonDisabled:C}),Object(b.jsx)(g,{children:a})]})};m.propTypes={backButtonDisabled:i.a.bool,browserWindowHeight:i.a.number.isRequired,browserWindowWidth:i.a.number.isRequired,chatHeadingConfig:s.a.isRequired,chatHeadingResponders:i.a.instanceOf(a.List),children:i.a.node.isRequired,closeWidget:i.a.func.isRequired,coloring:i.a.object.isRequired,createNewThread:i.a.func,customHeaderText:i.a.string,inline:i.a.bool.isRequired,isPreview:i.a.bool.isRequired,isThreadAssigned:i.a.bool.isRequired,mobile:i.a.bool.isRequired,navigateToThreadList:i.a.func,officeHoursMessage:i.a.string,setWidgetSize:i.a.func,showAvailabilityMessage:i.a.bool,showBackButton:i.a.bool.isRequired,size:i.a.string,style:i.a.object,typicalResponseTimeMessage:i.a.string,unseenThreadsCountExcludingCurrentThread:i.a.number,view:f.a,widgetLocation:o.b,widgetSize:i.a.shape({width:i.a.number.isRequired,height:i.a.number.isRequired}).isRequired};m.defaultProps={customHeaderText:null,inline:!1,isPreview:!1,isThreadAssigned:!1,mobile:!1,onUpdateOpened:()=>{},widgetLocation:o.a,view:h.c};m.displayName="VisitorWidget";t.b=m},YQHs:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="FEW_MINUTES",i="WITHIN_DAY"},YSBR:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const r=["javascript:","vbscript:","data:"],i=({node:e})=>{if(!e||!e.href||"A"!==e.nodeName||!r.includes(e.protocol))return null;const t=document.createElement("span");t.innerText=e.innerText;return{node:t}}},YXBx:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n.d(t,"b",(function(){return s}));var r=n("57op"),i=n("PUb4");const a=Object(i.a)("icon"),s=Object(r.w)("icon")},YibP:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(e,...t)=>Object.assign(new Error,...t,{message:e})},"Z/Dw":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("VfuR"),i=n.n(r);const a={disabled:i.a.bool,focused:i.a.bool,hovered:i.a.bool,pressed:i.a.bool}},Z6IV:function(e,t,n){"use strict";n.r(t);n.d(t,"isSupportedMessageType",(function(){return l}));var r=n("SmHr"),i=n("A5f/"),a=n("wL7V"),s=n("/rM/"),o=n("0IK8"),c=n("Mx3c"),u=n("x1PU");const l=e=>{if(e instanceof r.a||e instanceof i.a){e=Object(a.a)(e);if(Object(o.getSenderType)(e)!==c.VISITOR)return!1}if(Object(s.a)(e))return!1;const t=Object(o.getType)(e);return Object.keys(u.a).some(e=>e===t)}},ZI4L:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="text",i="fileId"},ZSXR:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("x1JE"),i=n("dLEV"),a=n("o4fP"),s=n("eEyY");const o=Object(i.createSelector)([a.a,s.getCurrentThreadId],(e,t)=>"number"!=typeof t?null:Object(r.getEntry)(t,e)||null)},ZVbf:function(e,t,n){e.exports=n.dlbpr(1,5)},ZqFO:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n.d(t,"b",(function(){return s}));n.d(t,"c",(function(){return o}));n.d(t,"d",(function(){return c}));n.d(t,"e",(function(){return u}));n.d(t,"f",(function(){return l}));n.d(t,"g",(function(){return d}));n.d(t,"h",(function(){return p}));n.d(t,"i",(function(){return f}));n.d(t,"j",(function(){return h}));var r=n("MJM1"),i=n("JGJA");const a=Object(r.a)(["sendFrom","0"]),s=(Object(r.a)(["message","chatHeadingConfig"]),Object(i.a)("coloring")),o=Object(r.a)(["message","customConsentToCommunicateMessage"]),c=Object(r.a)(["message","customConsentToProcessMessage"]),u=Object(r.a)(["gdprConsentOptions","consentToProcessStatus"]),l=Object(i.a)("message"),d=Object(r.a)(["sendFrom"]),p=Object(i.a)("sessionId"),f=Object(i.a)("showPreviousConversations"),h=Object(i.a)("typicalResponseTime")},"Zui/":function(e,t,n){"use strict";n.d(t,"d",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"i",(function(){return a}));n.d(t,"e",(function(){return s}));n.d(t,"a",(function(){return o}));n.d(t,"h",(function(){return c}));n.d(t,"f",(function(){return u}));n.d(t,"b",(function(){return l}));n.d(t,"j",(function(){return d}));n.d(t,"g",(function(){return p}));const r="FILES",i="EMAIL_METADATA",a="QUICK_REPLIES",s="INLINE_IMAGES",o="CALL_METADATA",c="MESSAGE_POSITION_DESCRIPTOR",u="LOCATION",l="CONTACT",d="UNSUPPORTED_CONTENT",p="MESSAGE_HEADER"},Zulv:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));n.d(t,"b",(function(){return O}));n.d(t,"c",(function(){return v}));n.d(t,"d",(function(){return k}));n.d(t,"e",(function(){return V}));n.d(t,"f",(function(){return U}));n.d(t,"g",(function(){return B}));n.d(t,"h",(function(){return G}));n.d(t,"i",(function(){return h}));n.d(t,"j",(function(){return A}));n.d(t,"k",(function(){return K}));n.d(t,"l",(function(){return M}));n.d(t,"m",(function(){return z}));n.d(t,"n",(function(){return C}));n.d(t,"o",(function(){return l}));n.d(t,"p",(function(){return x}));n.d(t,"q",(function(){return c}));n.d(t,"r",(function(){return p}));n.d(t,"s",(function(){return R}));var r=n("Ktcs"),i=n.n(r),a=n("Ex4o");function s(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{};let u=new Map;function l(e){let[t,n]=Object(r.useState)(e),i=Object(r.useRef)(null),s=Object(a.b)(t),o=Object(r.useCallback)(e=>{i.current=e},[]);u.set(s,o);c(()=>{let e=s;return()=>{u.delete(e)}},[s]);Object(r.useEffect)(()=>{let e=i.current;if(e){i.current=null;n(e)}});return s}function d(e,t){if(e===t)return e;let n=u.get(e);if(n){n(t);return t}let r=u.get(t);if(r){r(e);return e}return t}function p(e=[]){let t=l(),[n,i]=q(t),a=Object(r.useCallback)(()=>{i((function*(){yield t;yield document.getElementById(t)?t:null}))},[t,i]);c(a,[t,a,...e]);return n}function f(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function h(...e){let t=Object.assign({},e[0]);for(let n=1;n=65&&e.charCodeAt(2)<=90?t[e]=f(n,i):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof i?"id"===e&&n&&i?t.id=d(n,i):t[e]=void 0!==i?i:n:t[e]=o(n,i)}}return t}const b=new Set(["id"]),g=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),m=/^(data-.*)$/;function O(e,t={}){let{labelable:n,propNames:r}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(b.has(t)||n&&g.has(t)||(null==r?void 0:r.has(t))||m.test(t))&&(i[t]=e[t]);return i}function v(e){if(y())e.focus({preventScroll:!0});else{let t=E(e);e.focus();T(t)}}let j=null;function y(){if(null==j){j=!1;try{document.createElement("div").focus({get preventScroll(){j=!0;return!0}})}catch(e){}}return j}function E(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;){(t.offsetHeight{let n=I.get(e.target);if(!n){n=new Set;I.set(e.target,n);e.target.addEventListener("transitioncancel",t)}n.add(e.propertyName)},t=e=>{let n=I.get(e.target);if(n){n.delete(e.propertyName);if(0===n.size){e.target.removeEventListener("transitioncancel",t);I.delete(e.target)}if(0===I.size){for(let e of w)e();w.clear()}}};document.body.addEventListener("transitionrun",e);document.body.addEventListener("transitionend",t)}"undefined"!=typeof document&&("loading"!==document.readyState?S():document.addEventListener("DOMContentLoaded",S));function A(e){requestAnimationFrame(()=>{0===I.size?e():w.add(e)})}function C(){let e=Object(r.useRef)(new Map),t=Object(r.useCallback)((t,n,r,i)=>{let a=(null==i?void 0:i.once)?(...t)=>{e.current.delete(r);r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i});t.addEventListener(n,r,i)},[]),n=Object(r.useCallback)((t,n,r,i)=>{var a;let s=(null===(a=e.current.get(r))||void 0===a?void 0:a.fn)||r;t.removeEventListener(n,s,i);e.current.delete(r)},[]),i=Object(r.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);Object(r.useEffect)(()=>i,[i]);return{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}function x(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;n=l(n);if(i&&r){let e=new Set([...i.trim().split(/\s+/),n]);i=[...e].join(" ")}else i&&(i=i.trim().split(/\s+/).join(" "));r||i||!t||(r=t);return{id:n,"aria-label":r,"aria-labelledby":i}}function R(e,t){c(()=>{if(e&&e.ref&&t){e.ref.current=t.current;return()=>{e.ref.current=null}}},[e,t])}function k(e){for(;e&&!P(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function P(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}"undefined"!=typeof window&&window.visualViewport;let D=0;const _=new Map;function M(e){let[t,n]=Object(r.useState)(null);c(()=>{if(!e)return;let t=_.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+D++;n(r);let i=document.createElement("div");i.id=r;i.style.display="none";i.textContent=e;document.body.appendChild(i);t={refCount:0,element:i};_.set(e,t)}t.refCount++;return()=>{if(0==--t.refCount){t.element.remove();_.delete(e)}}},[e]);return{"aria-describedby":e?t:void 0}}function N(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function L(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function B(){return L(/^Mac/i)}function F(){return L(/^iPhone/i)}function H(){return L(/^iPad/i)||B()&&navigator.maxTouchPoints>1}function U(){return F()||H()}function V(){return B()||U()}function G(){return N(/AppleWebKit/i)&&!W()}function W(){return N(/Chrome/i)}function z(e,t,n,i){let a=Object(r.useRef)(n);a.current=n;let s=null==n;Object(r.useEffect)(()=>{if(s)return;let n=e.current,r=e=>a.current.call(this,e);n.addEventListener(t,r,i);return()=>{n.removeEventListener(t,r,i)}},[e,t,i,s])}function q(e){let[t,n]=Object(r.useState)(e),i=Object(r.useRef)(t),a=Object(r.useRef)(null);i.current=t;let s=Object(r.useRef)(null);s.current=()=>{let e=a.current.next();e.done?a.current=null:t===e.value?s.current():n(e.value)};c(()=>{a.current&&s.current()});let o=Object(r.useCallback)(e=>{a.current=e(i.current);s.current()},[a,s]);return[t,o]}function K(e,t){let n=Y(e,t,"left"),r=Y(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,o=e.scrollTop,c=s+e.offsetWidth,u=o+e.offsetHeight;n<=s?s=n:n+i>c&&(s+=n+i-c);r<=o?o=r:r+a>u&&(o+=r+a-u);e.scrollLeft=s;e.scrollTop=o}function Y(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent;){i+=t[r];if(t.offsetParent===e)break;if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}},ZyjR:function(e,t){e.exports={mode:"compressed",staticDomainPrefix:"//static.hsappstatic.net",bender:{depVersions:{"ui-images":"static-2.672"},depPathPrefixes:{"ui-images":"/ui-images/static-2.672"},project:"ui-images",staticDomain:"//static.hsappstatic.net",staticDomainPrefix:"//static.hsappstatic.net"}}},a3lm:function(e,t,n){"use strict";n.d(t,"c",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"a",(function(){return a}));const r="HUMAN",i="BOT",a="AGENT"},aBJT:function(e,t,n){"use strict";var r=n("gkBl"),i=n("ejs7"),a=n("19qb"),s=n("PYok"),o=n("y5/z"),c=n("jxkM");function u(e,t){return n=>{const r={"@type":"QUICK_REPLIES",quickReplies:[t.toJS()],allowMultiSelect:!1,allowUserInput:!0};n(Object(s.a)({text:e,quickReply:r})).then(()=>{n(Object(c.toggleOpen)({isOpened:!0,isUser:!0}));n(Object(o.trackInteraction)("widget-interaction",{action:"clicked quick reply option outside chat"}))}).catch(()=>{throw new Error("selectQuickReplyOptionOutsideChat failed")})}}var l=n("MJM1");const d=e=>Object(l.a)(["stagedThread","data","messages","results"],e);var p=n("QYOI");var f=e=>{let t=Object(p.OrderedSet)();e.valueSeq().forEach(e=>{"attachments"in e&&e.attachments.forEach(e=>{"QUICK_REPLIES"===e["@type"]&&"quickReplies"in e&&e.quickReplies.forEach(e=>{t=t.add(e)})})});return t},h=n("npjq"),b=n("sl/w"),g=n("DLkX"),m=n("S5kL"),O=n("YICO"),v=n("Jrbl"),j=n("Ktcs"),y=n("9f1P"),E=n.n(y),T=n("QGYt"),I=n("3S9s"),w=n("+KD7"),S=n("X5NR"),A=n("0IL2"),C=n("mIaW"),x=n("QgEn");const R=E.a.div.withConfig({displayName:"QuickReplyGroupOutsideChat__QuickReplyGroupContainer",componentId:"sc-17864wh-0"})(["display:flex;flex-direction:column;gap:16px;"]),k=E.a.div.withConfig({displayName:"QuickReplyGroupOutsideChat__QuickReplyGroupWrapper",componentId:"sc-17864wh-1"})(["display:flex;justify-content:",";"],e=>"RIGHT_ALIGNED"===e.widgetLocation?"end":"start"),P=E.a.div.withConfig({displayName:"QuickReplyGroupOutsideChat__QuickReplySelectContainer",componentId:"sc-17864wh-2"})(["display:inline-flex;flex-direction:column;align-items:",";width:240px;"],e=>"RIGHT_ALIGNED"===e.widgetLocation?"end":"start"),D=E()(T.a).withConfig({displayName:"QuickReplyGroupOutsideChat__QuickReplySelectSendButton",componentId:"sc-17864wh-3"})(["margin-top:8px;"]),_=E.a.div.withConfig({displayName:"QuickReplyGroupOutsideChat__ConsentPromptWrapper",componentId:"sc-17864wh-4"})(["background:",";color:",";"],w.i,w.q),M=()=>{},N=4,L=({quickReplyOptions:e=Object(p.OrderedSet)(),setQuickReplyGroupOutsideChatRef:t=M,onIframeResize:n=M,widgetLocation:r="RIGHT_ALIGNED",onQuickReplyOptionClick:i=M,message:a,widgetColoring:s=Object(g.a)(),publishMessage:o=M,displayBotQuickRepliesOutsideChat:c=!1,consentToProcessMessage:u,consentToProcess:l,showGdprConsentToProcessButton:d,closeConsentToProcess:f,showingGdprProcess:y=!1,renderCookieConsentPrompt:E=!1,consentToCookies:T,declineCookies:L,isPortal53:B=!1,isOneOfTargetedProductPages:F=!1})=>{const[H,U]=Object(j.useState)(Object(p.Map)());Object(j.useEffect)(()=>{n()},[n,H,y,E]);const V=e=>{const t=Object(m.a)(e);i(t,e)},G=t=>{const{target:{value:n}}=t,r=e.filter(e=>Object(m.b)(e)===n).first();U(r)},W=()=>E?Object(x.jsx)(S.a,{children:e=>Object(x.jsx)(_,{widgetLocation:r,children:Object(x.jsx)(A.a,{showButton:!0,message:h.a.text("conversations-visitor-experience-components.gdpr.consentToCookies.pageLoadCookieConsent",{locale:e}),onClick:T,onDeclineClick:L,coloring:s,isOneOfTargetedProductPages:F,isPortal53:B,isOutsideChat:!0})})}):null,z=()=>!y||E?null:Object(x.jsx)(_,{widgetLocation:r,children:Object(x.jsx)(A.a,{showButton:d,message:u,onClick:l,onClose:f,coloring:s,isOneOfTargetedProductPages:F,isPortal53:B,isOutsideChat:!0})});if(!c)return null;const q=Object(C.a)(s.accentColor),K=q?s.accentColor:w.q,Y=q?s.textColor:w.r;return Object(x.jsxs)(R,{ref:t,children:[!E&&(!y||!d)&&Object(x.jsx)(k,{widgetLocation:r,children:e.size<=N?Object(x.jsx)(O.a,{"data-test-id":"quick-reply-group-outside-chat",disabled:!1,options:e,message:a,publishMessage:o,onSend:V,isOutsideChat:!0,theme:Object(I.a)({colors:{primary:K}})}):Object(x.jsxs)(P,{"data-test-id":"quick-reply-select-container-outside-chat",widgetLocation:r,children:[Object(x.jsx)(v.a,{disabled:!1,quickReplyOptions:e,onChange:G,value:Object(m.b)(H),placeholder:h.a.text("conversations-visitor-experience-components.quickReply.selectionPlaceholder"),theme:Object(I.a)({colors:{primary:K}})}),!H.isEmpty()&&Object(x.jsx)(D,{use:"primary",onClick:()=>V(H),theme:Object(I.a)({colors:{primary:K,textOnPrimary:Y}}),children:Object(x.jsx)(b.a,{message:"conversations-visitor-experience-components.quickReply.selectionComplete"})})]})}),W(),z()]})};L.displayName="QuickReplyGroupOutsideChat";var B=L,F=n("g/i1"),H=n("2LMW"),U=n("Qf6G"),V=n("HnnE"),G=n("EjiN"),W=n("eLkp"),z=n("CM48"),q=n("A+8x"),K=n("k3Ph"),Y=n("SmyB"),J=n("yS+k"),Q=n("+WNO"),Z=n("zs6M");n.d(t,"a",(function(){return $}));const X=()=>{},$=({quickReplyOptions:e,setQuickReplyGroupOutsideChatRef:t,widgetLocation:n="RIGHT_ALIGNED",onQuickReplyOptionClick:r=X,message:i,widgetColoring:a,publishMessage:s,displayBotQuickRepliesOutsideChat:o,showGdprConsentToProcessButton:c,consentToProcessMessage:u,consentToProcess:l,showingGdprProcess:d,renderCookieConsentPrompt:p,consentToCookies:f,declineCookies:h,isPortal53:b,closeConsentToProcess:g,isOneOfTargetedProductPages:m})=>Object(x.jsx)(B,{quickReplyOptions:e,setQuickReplyGroupOutsideChatRef:t,onIframeResize:()=>{},widgetLocation:n,widgetColoring:a,displayBotQuickRepliesOutsideChat:o,message:i,onQuickReplyOptionClick:r,publishMessage:s,showGdprConsentToProcessButton:c,consentToProcessMessage:u,consentToProcess:l,showingGdprProcess:d,renderCookieConsentPrompt:p,consentToCookies:f,declineCookies:h,isPortal53:b,closeConsentToProcess:g,isOneOfTargetedProductPages:m});$.displayName="QuickReplyGroupOutsideChat";const ee=e=>{const t=d(e),n=f(t),a=Object(F.a)(e),s=Object(r.a)(e.stagedThread.data),o=Object(i.a)(s.last());return{displayBotQuickRepliesOutsideChat:Object(H.a)(e),quickReplyOptions:n,widgetColoring:a,message:o,consentToProcessMessage:Object(V.a)(e),showGdprConsentToProcessButton:Object(G.a)(e),showingGdprProcess:Object(W.a)(e)&&!Object(z.getUserHasGivenConsentToProcess)(e),renderCookieConsentPrompt:Object(q.a)(e),isPortal53:Object(J.a)(),isOneOfTargetedProductPages:Object(Q.isOneOfTargetedProductPages)()}},te={onQuickReplyOptionClick:u,publishMessage:s.a,consentToProcess:U.consentToProcess,consentToCookies:K.a,declineCookies:Y.a,closeConsentToProcess:Z.a};t.b=Object(a.connect)(ee,te)($)},aLTZ:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="HUMAN",i="BOT"},aPre:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n("MZef"),i=n("9pgs"),a=n("y+PV"),s=n("IDM/"),o=n("xyDt"),c=n("0IK8"),u=n("+LtA"),l=n("Ut5p"),d=n("ffqu"),p=n("+HSX"),f=n("2Sm/");const h=Object(r.a)({data:new u.a}),b=Object(l.c)({[d.b](e,t){const{message:n}=t.payload;return Object(o.a)(e=>Object(p.addMessageToThreadHistory)(Object(c.getId)(n),n,e),e)},[d.a]:()=>h,[f.a.STARTED]:a.a,[f.a.SUCCEEDED]:s.a,[f.a.FAILED]:(e,t)=>Object(i.a)(t.payload,e)},h)},aXPX:function(e,t,n){"use strict";n.d(t,"c",(function(){return i}));n.d(t,"b",(function(){return a}));n.d(t,"a",(function(){return s}));var r=n("7719");const i={[r.c]:18,[r.f]:28,[r.e]:40},a={[r.c]:"4px 8px",[r.f]:"8px 16px",[r.e]:"11px 24px"},s={[r.c]:"10px",[r.f]:"12px",[r.e]:"14px"}},aYGO:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"d",(function(){return s}));n.d(t,"e",(function(){return o}));n.d(t,"f",(function(){return c}));n.d(t,"g",(function(){return u}));n.d(t,"h",(function(){return l}));n.d(t,"i",(function(){return d}));n.d(t,"j",(function(){return p}));const r=["assignedAgentId"],i=["assignedAgentId"],a=["channelDetails"],s=["latestMessageTimestamp"],o=["latestReadTimestamp"],c=["previewMessageId"],u=["responder"],l=["status"],d=["threadId"],p=["unseenCount"]},aiuJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("y5/z"),i=n("scwY");function a(){return e=>{e(Object(i.loadStagedThread)());e(Object(r.trackInteraction)("widget-interaction",{action:"create new thread"}))}}},am7t:function(e,t,n){"use strict";n.r(t);n.d(t,"getIsCookieStorageAllowed",(function(){return p}));var r=n("2BFa"),i=n("cdXU"),a=n("c/Yf"),s=n("du/S"),o=n("V9Gp"),c=n("49A5"),u=n("GTwN"),l=n("xeq1"),d=n("yy6y");const p=(e,t)=>{const n=t||Object(c.getLatestWidgetData)(e),p=Object(i.getIsPrivateLoad)(e),f=Object(a.getGlobalCookieOptOut)(e),h=Object(s.getAPIEnableWidgetCookieBannerOnExitIntent)(e),b=Object(o.getAPIEnableWidgetCookieBanner)(e),g=Object(r.gdprCookieConsentOnExitIntentEnabled)(e,n),m=Object(r.gdprCookieConsentOnWidgetLoadEnabled)(n),O=Object(u.getHasMessagesCookieBeenSaved)(e),v=Object(l.getIsPortal53Prod)(),j=Object(d.getShouldListenToGdprBannerConsent)(n);return f!==a.OPT_OUT_YES&&(f===a.OPT_OUT_NO||(!!O||(!v||!j)&&!(g||b||m||h||p)))}},amlY:function(e,t,n){"use strict";n.r(t);n.d(t,"assignmentV2MessageReceived",(function(){return u}));var r=n("DFBY"),i=n("xW98"),a=n("kP7l"),s=n("ncoD"),o=n("FBcP"),c=n("H9dH");function u(e,t,n){return(u,l)=>{const d=Object(r.getAssignedAgentId)(e),p=Object(s.getAllAgentResponders)(l()),f=Object(i.findResponderByIdFromList)({responders:p,responderId:d});d&&!f&&n&&u(Object(a.fetchAgentResponder)({senderId:d,agentType:Object(r.getAssignedAgentType)(e),sessionId:Object(o.getSessionId)(l()),threadId:n}));u(Object(c.defaultMessageReceived)(e,t,n))}}},asw7:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("QYOI"),i=n("8f+m");const a=(e=[])=>e.reduce((e,t)=>e.push(Object(i.a)(t)),Object(r.List)())},au5J:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("QYOI");const i=(e={})=>{if(!(e.prototype instanceof r.Record))return"Object";if(e.prototype._name)return e.prototype._name;new e;return e.prototype._name||"Record"}},"b9/n":function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="@type",i="DATE_MESSAGE"},bOW6:function(e,t,n){"use strict";n.r(t);n.d(t,"wrapFailedMessage",(function(){return c}));var r=n("v0wH"),i=n("0IK8"),a=n("C3IS"),s=n("A5f/"),o=n("qjq5");const c=Object(o.a)(({threadId:e,channel:t,allowRetry:n=!0},o)=>{if(Object(a.b)(o)&&Object(i.getStatusForCmf)(o)===r.a){const r=Object(i.getMessageSendFailure)(o),a=!r||r.get("retryable");return Object(s.a)({message:o,threadId:e,channel:t,genericChannelId:o.genericChannelId||null,allowRetry:n&&a})}return o})},bSHG:function(e,t,n){"use strict";n.d(t,"c",(function(){return o}));n.d(t,"a",(function(){return c}));n.d(t,"b",(function(){return u}));var r=n("kkqp"),i=n.n(r),a=n("bYG+"),s=n("rCfO");const o=document.implementation.createHTMLDocument("sanitize"),c={HTML:{elements:["a","b","blockquote","br","bdi","caption","cite","code","col","colgroup","dd","dl","dt","em","figure","h1","h2","h3","h4","h5","h6","i","img","li","ol","p","pre","q","small","strike","strong","sub","sup","table","tbody","td","tfoot","th","thead","tr","u","ul","font","div","span","s"],dom:o,attributes:{__ALL__:["style","align","valign","color","width","height"],a:["href","title","target"],blockquote:["cite"],col:["span"],colgroup:["span"],div:["dir","data-hs-branding","data-hs-signature","data-unsubscribe","data-hs-unsubscribe-locale","data-hs-linktype","data-meeting-times","data-video-title","data-video-url","data-thumbnail"],font:["size","face"],iframe:["style","src","scrolling","frameborder","allowtransparency","allowfullscreen"],img:["alt","data-original-height","data-original-width","src","title"],ol:["start","type"],q:["cite"],span:["data-at-mention","data-owner-id","data-mention-id","data-mention-name","contenteditable","data-email-reply","data-timestamp","data-value"],table:["summary","bgcolor","cellpadding","cellspacing"],td:["abbr","axis","bgcolor","colspan","rowspan"],th:["abbr","axis","bgcolor","colspan","rowspan","scope"],tr:["bgcolor"],ul:["type"]},add_attributes:{a:{rel:"nofollow noopener noreferrer"}},protocols:{a:{href:["ftp","http","https","mailto","tel","mms","sms",i.a.RELATIVE]},blockquote:{cite:["http","https",i.a.RELATIVE]},img:{src:["data","http","https",i.a.RELATIVE]},q:{cite:["http","https",i.a.RELATIVE]}},remove_contents:["script","style","title"]},TEXTONLY:{dom:o,elements:[],remove_contents:["style","script"]}},u=Object(s.default)(()=>{const e=c.HTML,t=[...e.elements];t.push("iframe");return Object(a.a)("elements",t,e)})},"bT+G":function(e,t,n){"use strict";n.r(t);n.d(t,"handleStoreMessagesCookie",(function(){return a}));var r=n("n6ol"),i=n("CITH");const a=e=>Object(i.a)(r.y,e)},bVTf:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("J9Vo"),i=n("bSHG");const a=(e,t)=>t===r.a||e&&e.contains&&r.b.some(t=>e.contains(t)),s=({node:e})=>{if(!e||!e.tagName||"br"!==e.tagName.toLowerCase())return null;if(!e.nextElementSibling||!e.nextElementSibling.tagName)return null;const{classList:t,id:n}=e.nextElementSibling;if(!a(t,n))return null;const r=i.c.createElement("span");r.innerHTML="";return{node:r}}},bWKF:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n.d(t,"b",(function(){return c}));var r=n("Mx3c"),i=n("2Zef");const a={[i.AGENT_SENDER]:r.AGENT,[i.VISITOR_SENDER]:r.VISITOR,[i.BOT_SENDER]:r.BOT,[i.SYSTEM_SENDER]:r.SYSTEM,[i.INTEGRATOR_SENDER]:r.INTEGRATOR,[i.VID_SENDER]:r.VISITOR},s={[r.AGENT]:i.AGENT_SENDER,[r.VISITOR]:i.VISITOR_SENDER,[r.BOT]:i.BOT_SENDER,[r.SYSTEM]:i.SYSTEM_SENDER,[r.INTEGRATOR]:i.INTEGRATOR_SENDER};function o(e){return a[e]}function c(e){return s[e]}},bXuJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));n.d(t,"c",(function(){return u}));n.d(t,"b",(function(){return l}));var r=n("YPLr"),i=n("Mx3c"),a=n("Avso"),s=n("QYOI"),o=n("Gc2C");const c=({senderId:e,senderType:t})=>{Object(o.a)(e&&t,"Responder keys must be set with valid ID and type. Received %s, %s",e,t);return Object(s.Map)({senderId:String(e),senderType:t})},u=e=>{const t=Object(a.getUserId)(e),n=Object(a.getAgentType)(e),s=n?Object(r.agentTypeToSenderType)(n):Object(a.getIsBot)(e)?i.BOT:i.AGENT;return c({senderId:t,senderType:s})},l=e=>{const{senderId:t,agentType:n}=e,i=Object(r.agentTypeToSenderType)(n);return c({senderId:t,senderType:i})}},"bYG+":function(e,t,n){"use strict";var r=n("0H74"),i=n("qjq5");t.a=Object(i.a)(r.a)},bahz:function(e,t,n){"use strict";var r=n("Lm/k"),i=n("8ASW"),a=n("1pGl");function s(e,t){let n=Object(a.c)(e);const r=n.split("-")[0];t.indexOf(n)<0&&t.indexOf(r)>=0?n=r:t.indexOf(n)<0&&(n=null);return n}var o=function(e,t){const n=[{source:t,target:e}];for(;n.length>0;){const{source:e,target:t}=n.shift();for(const r in e)e.hasOwnProperty(r)&&("object"==typeof e[r]&&"object"==typeof t[r]?e[r]!==t[r]&&n.push({source:e[r],target:t[r]}):t[r]=e[r])}};function c(e){e.fallbacks=!0;e.fired={};e.currencySymbols||(e.currencySymbols={});e.baseLocales||(e.baseLocales={});e.publicLocales||(e.publicLocales={});e.loaded=!0;const t={};e.Info=new Promise((e,n)=>{t.resolve=e;t.reject=n});e.Info.resolve=t.resolve;e.Info.reject=t.reject}var u=n("npjq");const l={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{)\s?(\S*?)\s?(?:\}\})/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};let d,p={},f=[],h=Math.random()<=.05;function b(e,t,n){let r=!1;function i(e){r||(p[e]=p[e]?p[e]+1:1);r=!0}try{if(localStorage.getItem("TRACK_I18N_MISSING_TRANSLATIONS")){i(e);const t=window.hubspot.bender.currentProject,n=window.hubspot.bender.currentProjectVersion;localStorage.setItem("I18N_KEYS_USED:"+t+":"+n,JSON.stringify(p));const r=localStorage.getItem("I18N_APPS_TRACKED");let a={},s=!0;if(r){a=JSON.parse(r);a[t]&&a[t].indexOf(n)<0?a[t].push(n):s=!1}else a[t]=[t];s&&localStorage.setItem("I18N_APPS_TRACKED",JSON.stringify(a))}if(t&&localStorage.getItem("TRACK_I18N_FALLBACK_TRANSLATIONS")){let t=localStorage.getItem("TRACK_I18N_FALLBACK_TRANSLATIONS");t=t?t.concat(",",e):e;localStorage.setItem("I18N_FALLBACK_TRANSLATIONS",t)}}catch(e){return}if(h){clearTimeout(d);i(e);t&&-1===f.indexOf(e)&&f.push(e);d=setTimeout(()=>{window.newrelic&&window.newrelic.addPageAction("i18nKeysUsed",{keysUsed:JSON.stringify(p),i18nKeyCount:Object.keys(p).length,fallbackKeys:JSON.stringify(f),englishFallbackCount:f.length,requestedLocaleValue:n});h=!1;p={}},6e4)}}const g={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},m="(?:&|<|>|\"|'|`)",O=RegExp(m),v=RegExp(m,"g"),j=e=>g[e],y=function(e){return O.test(e)?e.replace(v,j):e},E=function(e){return null!=e},T=function(e){return e===Object(e)},I=function(...e){const t={};for(;e.length;){let n=e.shift();if("object"==typeof n)for(const e in n)n.hasOwnProperty(e)&&(E(t[e])||(t[e]=n[e]))}return t},w=function(e,t){t=I(t);e.constructor===Array&&(e=e.join(l.defaultSeparator));t.scope&&(e=[t.scope,e].join(l.defaultSeparator));return e},S=function(){return u.a.locale||l.defaultLocale},A=function(e,t){t=I(t);const n=u.a.locales.get(t.locale).slice(),r=n[0];let i,a,s,o;e=w(e,t);for(;n.length;){i=n.shift();a=e.split(l.defaultSeparator);s=u.a.translations[i];if(!s)continue;for(;a.length;){s=s[a.shift()];if(null==s)break}const t=function(e){return e.split("-")[0]};o=t(r);if(null!=s){const n=t(i),r=o!==n,a=n===l.defaultLocale;b(e,u.a.langEnabled&&r&&a,o);return s}}b(e,!1,o);if(E(t.defaultValue))return t.defaultValue};var C=n("DFoL");const x={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!0},R={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},k={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},P={type:"short",precision:0};var D=Array.prototype.join;function _(e){if("function"==typeof Math.log10)return Math.floor(Math.log10(e));const t=Math.round(Math.log(e)*Math.LOG10E);return t-(Number("1e"+t)>e)}function M(e,t,n){var r,i,a=e<0;if(0===(e=Math.abs(e))){r=D.call(Array(n+1),"0");i=1}else{i=_(Math.abs(e))+1;const t=Math.round(Math.exp(Math.abs(i-n)*Math.LN10));r=String(Math.round(i-n<0?e*t:e/t))}if(i>n){r+=D.call(Array(i-n+1),"0");return a?"-"+r:r}if(i===n)return a?"-"+r:r;i>0?r=r.slice(0,i)+"."+r.slice(i):i<=0&&(r="0."+D.call(Array(1-i),"0")+r);if(r.indexOf(".")>=0&&n>t){let e=n-t;for(;e>0&&"0"===r.charAt(r.length-1);){r=r.slice(0,-1);e--}"."===r.charAt(r.length-1)&&(r=r.slice(0,-1))}return a?"-"+r:r}function N(e,t,n,r){let i,a,s=Number.prototype.toFixed.call(e,r),o=s.split(".")[0].length,c=r-n;const u=(i=s.indexOf("e"))>-1?s.slice(i+1):0;if(u){s=s.slice(0,i).replace(".","");s+=D.call(Array(u-(s.length-1)+1),"0")+"."+D.call(Array(r+1),"0");o=s.length}for(;c>0&&"0"===s.slice(-1);){s=s.slice(0,-1);c--}"."===s.slice(-1)&&(s=s.slice(0,-1));o!!u.a.currencySymbols[e],B=function(e,t){const n=e<0,r=(t=I(t,A("number.format"),x)).formatNegativeValuesWithParenthesis&&n,i=Math.abs(e).toFixed(t.precision).toString().split("."),a=[];let s,o=t.format||"%n";const c=n?"−":"";e=i[0];let u=i[1];for(;e.length>0;){a.unshift(e.substr(Math.max(0,e.length-3),3));e=e.substr(0,e.length-3)}s=a.join(t.delimiter);t.strip_insignificant_zeros&&u&&(u=u.replace(/0+$/,""));t.precision>0&&u&&(s+=t.separator+u);o=t.sign_first?"%s"+o:o.replace("%n","%s%n");if(r){o=o.replace("%s","");o="%parStart"+o+"%parEnd"}s=o.replace("%u",t.unit).replace("%n",s).replace("%s",c).replace("%parStart","(").replace("%parEnd",")");return s},F=function(e,t){const n=(t||{}).locale;t=I(t,A("number.currency.format",{locale:n}),A("number.format",{locale:n}),R);return B(e,t)},H=function(e,t){t=I(t,A("number.percentage.format"),A("number.format"),k);return B(e,t)},U=function(e,t){null==t&&(t={});return H(e,t)},V=/\d|\+|-|e/i,G=function(e,t){t=I(t,A("number.format",{locale:(t||{}).locale}),x);if("number"==typeof e)return e;if("string"!=typeof e)return NaN;e=e.replace(/\s/g,"").replace("−","-");let n="";for(let r of Array.from(e))if(r.match(V))n+=r;else{if(r!==t.separator){if(r===t.delimiter)continue;return NaN}n+="."}return parseFloat(n)},W=15,z=Math.pow(10,W),q=1e3,K=function(e,t){let n;null==t&&(t={});t=I(t,A("number.format",{locale:t.locale}),{separator:".",delimiter:","});let{separator:r,delimiter:i,numDigitsToTruncateTo:a,maxThreshold:s,minThreshold:o,minIntegerDigits:c,maxSignificantDigits:u,minSignificantDigits:l,maxFractionDigits:d,minFractionDigits:p,stripInsignificantZeros:f}=t;const h=e<0;null==o&&(o=Number.NEGATIVE_INFINITY);null==s&&(s=Number.POSITIVE_INFINITY);null!=p||null!=l||null!=d||null!=u?null==f&&(f=!1):null==f&&(f=!0);null==c&&(c=Math.max(null!=a?a:0,1));if(null!=l||null!=u){null==u&&(u=W);null==l&&(l=1)}null==p&&(p=0);null==d&&(d=Math.max(p,0));let b=Math.abs(e);if(null!=a&&o<=b&&b0;){v.unshift(m.substr(Math.max(0,m.length-3),3));m=m.substr(0,m.length-3)}let j=v.join(i);f&&O&&(O=O.replace(/0+$/,""));O&&(j+=r+O);h&&(j="−"+j);return j},Y=function(e){e=Math.abs(e);return"1"+[...Array(Math.floor(e).toString().length-1).keys()].map(()=>"0").join("")},J=function(e){const t=e.match(/^([^0]*)(0+)(.*)$/);if(t){const[e,n,r,i]=t;return{prefix:n,digitString:r,numDigits:r.length,suffix:i}}throw new Error("Invalid abbreviation pattern: "+e)},Q=function(e,t){null==t&&(t={});let{type:n,locale:r,separator:i,delimiter:a,stripInsignificantZeros:s,minIntegerDigits:o,maxSignificantDigits:c,minSignificantDigits:l,maxFractionDigits:d,minFractionDigits:p}=t;null==n&&(n="short");const f=Y(e);let h=A(`number.human.abbreviated.${n}.${f}`,t);if(null!=h&&"object"==typeof h){const t=h[Object.keys(h)[0]],n=J(t),i=K(e,{numDigitsToTruncateTo:n.numDigits,minThreshold:q,maxThreshold:z}),a=u.a.pluralization.get(r)(Math.abs(i));for(;a.length;){const e=a.shift();if(null!=h[e]){h=h[e];break}}}if(["0",0].includes(h)||null==h)return K(e,{locale:r,numDigitsToTruncateTo:30,minThreshold:q,maxThreshold:z,minIntegerDigits:null!=o?o:1,minSignificantDigits:l,maxSignificantDigits:c,minFractionDigits:p,maxFractionDigits:d,separator:i,delimiter:a,stripInsignificantZeros:s});{const t=J(h),n=K(e,{locale:r,numDigitsToTruncateTo:t.numDigits,minThreshold:q,maxThreshold:z,minIntegerDigits:o,minSignificantDigits:l,maxSignificantDigits:c,minFractionDigits:p,maxFractionDigits:d,separator:i,delimiter:a,stripInsignificantZeros:s});return`${t.prefix}${n}${t.suffix}`}},Z=function(e,t){null==t&&(t={});if(t.abbreviate){"string"==typeof(t=I(t,P)).abbreviate&&(t.type=t.abbreviate);return Q(e,t)}return B(e,t)},X=function(e,t){null==t&&(t={});L("USD")||console.error("It looks like currency data is not available. Are you using the new I18n loader and forgot to import currencies? See go/new-i18n");if(t.currencyCode){const n=u.a.currencySymbols[t.currencyCode];if(n){null==t.unit&&(t.unit=n.symbol);n.format&&(t.format=n.format);let r=n.decimal_digits;if(n.alternative_decimal_digits&&e%1!=0){e.toString().split(".")[1].length>r&&(r=n.alternative_decimal_digits)}null==t.precision&&(t.precision=r)}}if(!t.unit&&!t.useCurrencyCode){if(t.currencyCode){C.a.warn({message:`I18n: Invalid currencyCode: ${t.currencyCode} supplied to call to formatCurrency().`,key:"I18n.formatCurrency-invalid-"+t.currencyCode,url:"https://git.hubteam.com/HubSpot/faast-ui/issues/248"});return`${t.currencyCode} ${e}`}C.a.warn({message:"I18n: Missing currencyCode in call to formatCurrency().",key:"I18n.formatCurrency-missing",url:"https://git.hubteam.com/HubSpot/I18n/issues/59"})}if(t.abbreviate){"string"==typeof(t=I(t,P)).abbreviate&&(t.type=t.abbreviate);return F(e>=0?2:-2,t).replace("2",Q(Math.abs(e),t))}return F(e,t)},$=function(e,t){if("number"==typeof t){if(isNaN(t))return null;if("count"===e)return Number(t);if("portalid"===e.toLowerCase()){console.warn('The use of params named "portalId" in externalized strings is deprecated. You should wrap it, like so "I18n.t(key, { portalId: I18n.SafeString(portalId) })", to prevent it from being automatically formatted. See HubSpot/I18n#109');return String(t)}return Z(t)}return t instanceof u.a.SafeString?t.toString():null!=t?y(String(t)):t};var ee=n("HY4P");const te=!0,ne=!0,re=[],ie=function(e){return"[missing "+e+" value]"},ae=function(...e){return ie(e)},se=function(e,t,n,r,i,a){null==a&&(a={});const s=e.apply(u.a,i),o=a.message||s;if(re.indexOf(o)<0){re.push(o);ee.a.counter(n).increment();const e=new Error("I18n: "+o),i={i18nErrorType:t,currentLocale:u.a.langEnabled?u.a.locale:"en-us",translationKey:a.translationKey,placeholderName:a.placeholderName,hasHadLoadingFailure:u.a.hasHadLoadingFailure};window.newrelic&&window.newrelic.noticeError(e,i);r&&window.Raven&&window.Raven.captureException(e,{extra:i});try{localStorage.getItem("TRACK_I18N_MISSING_TRANSLATIONS")&&localStorage.setItem("I18N_MISSING_TRANSLATIONS",re)}catch(e){}}"function"==typeof u.a.trigger&&u.a.trigger(t,s);return s},oe=function(e,t){if("guess"===u.a.missingBehaviour){const t=e.split(".").slice(-1)[0];return(l.missingTranslationPrefix.length>0?l.missingTranslationPrefix:"")+t.replace("_"," ").replace(/([a-z])([A-Z])/g,(e,t,n)=>t+" "+n.toLowerCase())}const n=w(e,t);return"[missing “"+[S(),n].join(l.defaultSeparator)+"” translation]"},ce=function(e){const t='Missing translation: "'+e+'"';console.warn("I18n: "+t);return y(se(oe,"missingTranslation","translate-request-key-missing-translation",ne,[e],{translationKey:e,message:t}))},ue=ie,le=function(e,t,n){const r=`Missing placeholder: ${e} in "${n.__scope}"`,i={message:r,translationKey:n.__scope,placeholderName:e};console.warn("I18n: "+r);return se(ue,"missingPlaceholder","translate-request-key-missing-placeholder",te,[e,t,n],i)},de=function(e,t){t=I(t);const n=e.match(l.placeholder);let r,i,a,s;if(!n)return e;for(;n.length;){r=n.shift();a=r.replace(l.placeholder,"$1");i=E(t[a])?t[a].toString().replace(/\$/gm,"_#$#_"):a in t?ae(r,e,t):le(r,e,t);s=new RegExp(r.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));e=e.replace(s,i)}return e.replace(/_#\$#_/g,"$")},pe=function(e,t,n){n=I(n);let r,i,a,s,o;r=T(t)?t:A(t,n);if(!r)return ce(t,n);i=u.a.pluralization.get(n.locale);a=i(e);for(;a.length;){s=a.shift();if(E(r[s])){o=r[s];break}}if("string"==typeof o){"number"==typeof n.count&&(n.count=Z(e));return de(o,n)}},fe=function e(t,n){n=I(n);let r=A(t,n);T(r)&&!E(n.count)&&(r=A(t,I({locale:l.defaultLocale},n)));if(null==r)return ce(t,n);T(r)||"number"!=typeof n.count||(n.count=Z(n.count));if("string"==typeof r)r=de(r,n);else if(T(r)&&E(n.count)){r=pe(n.count,r,n);if(void 0===r&&n.locale!==l.defaultLocale)return e(t,I({locale:l.defaultLocale},n))}return r},he=function(...e){const t=e[e.length-1],n="string"!=typeof t,r=n&&t?e[e.length-1]:{},i=n?e.slice(0,e.length-1).join("."):e.join("."),a={};for(let e in r)if(r.hasOwnProperty(e)){const t=r[e];null!=t&&(a[e]=$(e,t))}a.locale||"en"===u.a.locale.split("-")[0]||u.a.langEnabled||u.a.publicPage||(a.locale="en");a.__scope=i;if(u.a.fired&&!u.a.fired.ready){const e=new Error(`I18n.text called before ready with key '${i}' - See go/i18n-help for more info`);setTimeout(()=>{ee.a.counter("translate-request-fired-too-early").increment();throw e},0)}return fe(i,a)},be={inclusive:{wordsConnector:"|, ",twoWordsConnector:"| and ",lastWordConnector:"|, and "},exclusive:{wordsConnector:"|, ",twoWordsConnector:"| or ",lastWordConnector:"|, or "}},ge=function(e,t){const n=t.length-1;return t.reduce((t,r,i)=>{t.push(r);i!==n&&t.push(e);return t},[])},me=function(e,t){let n;null==t&&(t={});let{wordsConnector:r,twoWordsConnector:i,lastWordConnector:a,limit:s,excessKey:o,exclusive:c}=t;if(null!=s&&s<=2)throw new Error("The formatList limit must be 3 or larger");if(null!=s&&null==o)throw new Error("When using a limit in formatList, you must pass excessKey (that is a external, plurlized string reference)");if(null!=Array.isArray){if(!Array.isArray(e))throw new Error("The first argument to I18n.formatList must be an array")}else if(!(e instanceof Array))throw new Error("The first argument to I18n.formatList must be an array");const u="number.human.array";let l="inclusive";!0===c&&(l="exclusive");r=t.wordsConnector||he(`${u}.${l}.wordsConnector`,{locale:t.locale})||be[l].wordsConnector;i=t.twoWordsConnector||he(`${u}.${l}.twoWordsConnector`,{locale:t.locale})||be[l].twoWordsConnector;a=t.lastWordConnector||he(`${u}.${l}.lastWordConnector`,{locale:t.locale})||be[l].lastWordConnector;const{length:d}=e;if(0===d)return[];if(1===d)return[e[0]];if(2===d)return[e[0],i,e[1]];if(null==s||s>=d){n=ge(r,e.slice(0,-1));n.push(a);n.push(e[e.length-1]);return n}{const i=he(o,{count:e.length-s,locale:t.locale});n=ge(r,e.slice(0,s));n.push(a);n.push(i);return n}},Oe=function(e,t){null==t&&(t={});return me(e,t).join("")},ve=[null,"kb","mb","gb","tb"],je=function(e,t){for(var n,r,i=1024,a=e,s=0;a>=i&&s<4;){a/=i;s+=1}if(0===s){n=he("number.human.storage_units.units.byte",{count:a});r=0}else{n=he("number.human.storage_units.units."+ve[s]);r=a-Math.floor(a)==0?0:1}t=I(t,{unit:n,precision:r,format:"%n%u",delimiter:""});return B(a,t)},ye=function(e,t){null==t&&(t={});let n="";!0!==t.useGap&&!1!==t.noGap||(n=" ");return`${n}${he(e,t)}${n}`};function Ee(e){(function(){void 0===e.placeholder&&null!==e.placeholder&&(e.placeholder=l.placeholder);void 0===e.fallbacks&&null!==e.fallbacks&&(e.fallbacks=l.fallbacks);void 0===e.translations&&null!==e.translations&&(e.translations=l.translations)})();e.locales={};e.locales.default=function(t){const n=[],r=[];let i;t&&n.push(t);!t&&e.locale&&n.push(e.locale);"noNO"===t||!t&&"noNO"===e.locale?n.push("no-no"):("no-no"===t||!t&&"no-no"===e.locale)&&n.push("noNO");e.fallbacks&&l.defaultLocale&&n.push(l.defaultLocale);n.forEach(t=>{i=t.split("-")[0];~r.indexOf(t)||r.push(t);~r.indexOf(t.toLowerCase())||r.push(t.toLowerCase());e.fallbacks&&i&&i!==t&&!~r.indexOf(i)&&r.push(i)});n.length||n.push("en");return r};e.locales.get=function(t){let n=this[t]||this[e.locale]||this.default;"function"==typeof n&&(n=n(t));n instanceof Array==!1&&(n=[n]);return n};e.pluralization={};e.pluralization.get=function(t){return this[t]||this[e.locale]||this.default};e.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one","other"];default:return["other"]}};e.currentLocale=function(){return e.locale||l.defaultLocale};const t=function(t){const n=0===t?1:t;return e.pluralization.default(n)},n=function(e){if(1===e)return["one","other"];const t=e%10,n=e%100;return t>=2&&t<=4&&!(n>=12&&n<=14)?["few","other"]:1!==e&&t>=0&&t<=1||t>=5&&t<=9||n>=12&&n<=14?["many","other"]:["other"]};e.pluralization.fr=t;e.pluralization.pl=n}function Te(e){if(!(this instanceof Te))return new Te(e);this.string=e}Te.prototype.toString=Te.prototype.toHTML=function(){return""+this.string};const Ie=function(...e){if(!document)return;let t=this.I18N_DEBUG_LOG||window.I18N_DEBUG;try{t="true"===localStorage.I18N_DEBUG_LOG||"true"===localStorage.I18N_DEBUG}catch(e){}if(t){e.unshift("I18n:");window.parent!==window&&e.unshift("(IFRAME)");console.log(...e)}};function we(e){Ee(e);c(e);e.lookup=A;e.prepareOptions=I;e.missingTranslation=ce;e.missingPlaceholder=le;e.formatParam=$;e.debugLog=Ie;e.text=he;e.formatListArray=me;e.formatList=Oe;e.parseNumber=G;e.formatNumber=Z;e.formatPercentage=U;e.formatCurrency=X;e.abbreviateNumber=Q;e.advancedFormatNumber=K;e.formatSize=je;e.html=ye;e.SafeString=Te}we(i.a);function Se({context:e,source:t,mode:n}){if(!e)throw new Error("invalid provider source");const r=Object.keys(e);function a(e){e&&e.translations&&e.translations.forEach(e=>o(i.a.translations,e));return e}function c(n){if(r.indexOf(n)<0)throw new Error(`locale ${n} does not exist for ${t}`);return e[n]()}function u(e){if("sync"!==n)throw new Error(t+" is not sync");return a(c(e))}function l(e){if("lazy"!==n)throw new Error(t+" is not lazy");return c(e).then(a).catch(e=>{i.a.hasHadLoadingFailure=!0;setTimeout(()=>{throw e},0)})}function d(e,t={}){const i=[],a=t.localeMapper||s,o={};e.forEach(e=>{const t=a(e,r),s=t?o[t]:void 0;if(!s&&t&&"lazy"===n){i.push(l(t));o[t]=!0}else if(!s&&t){i.push(Promise.resolve(u(t)));o[t]=!0}});return Promise.all(i).catch(e=>setTimeout(()=>{throw e},0))}return{mode:n,load:d,locales:r,loadSync:u,loadLazy:l}}function Ae(){let e=e=>{throw new Error("`setLocale()` called early")};return{langRegistry:{},localePromise:new Promise(t=>e=t),setLocale:e,register(e,t={}){if(this.langRegistry[e.source])return Promise.resolve();this.langRegistry[e.source]=e;const n=Se(e);return this.localePromise.then(e=>n.load(t.getLocales?t.getLocales(e):e,t)).catch(e=>setTimeout(()=>{throw e},0))}}}function Ce(e,t){try{localStorage.setItem(e,t)}catch(e){}}var xe=n("Wtyj");const Re=["setLocale","register"];t.a=e=>{const t=Ae(),{setLocale:n,register:o}=t,c=Object(r.a)(t,Re),u=[];return Object.assign({register(n,r={}){const i=r.localeMapper||s,a=o.call(t,n,Object.assign({},r,{localeMapper(...e){const t=i(...e);t&&!u.includes(t)&&u.push(t);return t}}));a.then(()=>{e&&e.__localesCacheKey===xe.a||Ce(e&&e.__localesCacheKey||xe.b,JSON.stringify(u))});return a},setLocale({locale:t,langEnabled:r,timezone:s}){Object(a.g)();Object(a.h)(s);i.a.locale=i.a.manualLocale||Object(a.c)(t);i.a.lang=i.a.locale.split("-")[0];i.a.langEnabled=!!i.a.manualLocale||r;const o=i.a.langEnabled?[i.a.locale]:[];i.a.langEnabled||i.a.locale!==a.a||o.push("en-us");!(e&&e.excludeFallback)&&o.push(a.a);i.a.fired.ready=!0;i.a.Info.resolve({locale:i.a.locale,langEnabled:i.a.langEnabled,timezone:i.a.timezone});if(i.a.moment){let e=a.e[i.a.locale]||a.e[i.a.locale.split("-")[0]];i.a.moment.locales().indexOf(e)<0&&(e=a.a);e!==i.a.moment.locale()&&i.a.moment.locale(e)}Object(a.f)();return n(o)}},c)}},"bco+":function(e,t,n){"use strict";n.r(t);n.d(t,"getThreads",(function(){return s}));var r=n("dLEV"),i=n("KXN9"),a=n("YNiY");const s=Object(r.createSelector)([a.a],e=>Object(i.a)(e))},bhLI:function(e,t,n){"use strict";var r=n("Ktcs"),i=(n("VfuR"),Object(r.createContext)({id:0,dispatch:()=>{},reportAction:()=>{},trackVisibility:!1})),a=n("FubB");const s=e=>a.unstable_runWithPriority(a.unstable_LowPriority,()=>{e()});var o=window.performance||{};const c=Date.now();var u=o.now?()=>o.now():()=>Date.now()-c;var l=(e,t=!0)=>{const n=Object(r.useContext)(i),a=n&&n.id,o=n&&n.dispatch,c=t&&void 0!==o;0;Object(r.useEffect)(()=>{if(c){const t={name:e,id:a},n=u();s(()=>{o({type:"MARKER_MOUNTED",payload:{marker:t,timestamp:n}})});return()=>{s(()=>{o({type:"MARKER_UNMOUNTED",payload:{marker:t}})})}}},[e,a,o,c])};var d=(e,t)=>{const n=Object(r.useContext)(i);Object(r.useEffect)(()=>{if(!n||!n.trackVisibility||"function"!=typeof n.dispatch)return;const{id:r,dispatch:i}=n;i({type:"ADD_MARKER_REF",payload:{marker:{name:e,id:r},ref:t}})},[n,e,t])},p=n("QgEn");const f=({name:e})=>{const t=Object(r.useRef)(null),n=Object(r.useContext)(i);l(e);d(e,t);return n&&n.trackVisibility?Object(p.jsx)("div",{"aria-hidden":!0,ref:t}):null};0;0;var h=({children:e,name:t})=>Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(f,{name:t}),e]}),b=n("Gc2C"),g=n("02LW");function m(e){const t=Object(r.useRef)();Object(r.useEffect)(()=>{t.current=e});return t.current}var O=n("LZPL"),v=n.n(O);function j(e){var t={};return function(n){t.hasOwnProperty(n)||(t[n]=e.call(null,n));return t[n]}}var y=j,E=n("C5Zv");const T=e=>e.replace(/(^\/+|\/+$)/g,"").split("/").filter(Boolean),I=/^:(.+)/;var w=e=>{const t={};e.forEach(e=>{t[e]=T(e)});return(e,n)=>{const r=T(n),i=t[e];Object(b.a)(i,"unexpected route "+e);if("*"===i[i.length-1]?r.lengthdocument.visibilityState,P=()=>"hidden"===document.visibilityState,D=e=>{document.addEventListener("visibilitychange",()=>{e(document.visibilityState)})},_=e=>{document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&e()})},M=()=>!!window.navigator.webdriver,N={FID:"first-input",LongTask:"longtask",UserInteraction:"event"},L=3e4,B={Navigation:"rhumb",Performance:"performance"},F=e=>e?"static"===e?"dev":e.replace("static-",""):"unknown",H=Object(g.default)((e,t,n)=>`${Object(A.getFullUrl)("app-api")}/cartographer/v1/${e}?hs_static_app=${t}&hs_static_app_version=${F(n)}`);class U extends R.b{constructor(e){super(e);this.performanceActions=[];this.navigationActions=[];window.addEventListener("visibilitychange",()=>{if("hidden"===document.visibilityState){M()&&console.log("flushing all cartographer actions");this.flushAllQueues()}},!1)}sendActions(e,t){try{return navigator.sendBeacon(H(t,this.staticAppName,this.staticAppVersion),JSON.stringify({userAgent:navigator.userAgent,portalId:x.a.get(),datapoints:e}))}catch(e){return null}}logActions(e){this.debug&&this.logGroupWithBadge("Cartographer beacon",R.a.KOALA,R.a.SLINKY,()=>{e.forEach(console.log)})}flushNavigationQueue(){if(this.navigationActions.length)try{if(this.sendActions(this.navigationActions,B.Navigation)){this.logActions(this.navigationActions);this.navigationActions=[]}}catch(e){}}flushPerformanceQueue(){if(this.performanceActions.length)try{if(this.sendActions(this.performanceActions,B.Performance)){this.logActions(this.performanceActions);this.performanceActions=[]}}catch(e){}}flushAllQueues(){this.flushNavigationQueue();this.flushPerformanceQueue()}pushNavigationAction(e,t,n,r,i,a,s){P()||this.navigationActions.push({from:t,to:e,status:n,wasHidden:r,isHidden:i,duration:a,isReload:s})}pushPerformanceAction(e,t,n){P()||this.performanceActions.push({route:e,type:t,data:n})}}var V=n("7pHJ");const G=()=>{try{const e=o.getEntriesByType("navigation");return e&&e[0]&&e[0].type}catch(e){return null}},W=()=>"reload"===G(),z=()=>""!==window.location.hash;var q=n("PyK+"),K=n.n(q);const Y=e=>{if("function"==typeof K.a.getAllHttpRequestStats&&"function"==typeof o.now){const t=t=>({state:n,started:r,finished:i})=>re:n===t&&i<=e),n=10,r=e=>e.slice(0,n).map(e=>e.url).join(","),i=K.a.getAllHttpRequestStats(),a=i.filter(t("succeeded")),s=i.filter(t("failed")),o=i.filter(t("aborted")),c=i.filter(t("pending")),u=i.filter(t("timedOut")),l=s.filter(e=>404!==e.status&&!e.willBeRetried),d=s.filter(e=>404===e.status);return{numSucceededRequests:a.length,numAbortedRequests:o.length,numPendingRequests:c.length,numNotFound:d.length,numTimedoutRequests:u.length,numFailedRequestsMinus404AndRetries:l.length,numRetriedFailures:s.filter(e=>!!e.willBeRetried).length,failedRequestUrls:r(l),timedOutRequestUrls:r(u),pendingRequestUrls:r(c),notFoundUrls:r(d)}}return null};function J(){return Boolean(document.querySelector('iframe[name="nav-components:chatspot-sidebar"]'))}const Q=/https:\/\/(static|local).hsappstatic.net\//,Z=10;class X extends U{constructor(e){super(e);this.abandonedTimes=[];this.lastAbandonedTimestamp=null;this.finished=!1;this.wasHidden="hidden"===k();this.setCustomAttribute("currentVisibility",k());this.setCustomAttribute("visibility",k());D(e=>{this.setCustomAttribute("currentVisibility",e);if("hidden"===e&&!this.wasHidden){this.wasHidden=!0;this.setCustomAttribute("visibility","hidden")}})}getCacheStatusData(){const e={};this.performanceEntries().forEach(t=>{if(t.name.endsWith(".js")){const n=t.name.replace(Q,"");e[n]={cached:t.duration<=Z,duration:t.duration}}});return e}getNumFailedImages(){return Array.from(document.getElementsByTagName("img")).reduce((e,t)=>t.src&&0===t.naturalHeight&&0===t.naturalWidth?e+1:e,0)}finish(e,t){const{finishedTimestamp:n}=e,r=Y(n),i=this.abandonedTimes.reduce((e,t)=>e+t/this.abandonedTimes.length,0),a=this.getCacheStatusData(),s={};Object.keys(t).forEach(e=>{t[e]&&(s["marker_timing_"+e]=t[e].timestamp)});this.setCustomAttribute("numReaganChecksStarted",this.abandonedTimes.length+1);this.setCustomAttribute("numPreviousReaganChecksAborted",this.abandonedTimes.length);this.setCustomAttribute("avgDurationBeforePreviousReaganAborts",i);this.setCustomAttribute("numPreviousReaganChecksFailed",0);this.setCustomAttribute("numPreviousReaganChecksSuccessful",0);this.addPageAction("reaganFinished",Object.assign({},e,r,{numFailedImages:this.getNumFailedImages(),cacheData:JSON.stringify(a),allVisibleMarkers:JSON.stringify(Object.keys(t))},s));this.sendActions([{to:{pathname:e.pathname,route:e.route,scenario:e.scenario},status:e.status,wasHidden:this.wasHidden,isHidden:"hidden"===k(),duration:e.timeToAllSuccess||e.finishedTimestamp,failureType:e.failureType,isReload:W()}],B.Navigation)}report(e){if("COMPONENT_RENDERED"===e.type||!this||this.finished)return;const{entry:{timestamp:t,checks:n,expiredTimestamp:r,pathname:i},routeSpec:a}=e.payload;switch(e.type){case"ROUTE_SUCCEEDED":case"ROUTE_FAILED":case"ROUTE_TIMEOUT_EXPIRED":case"ROUTE_UNEXPECTED":this.finished=!0}const s=String(J());switch(e.type){case"ROUTE_STARTED":this.lastAbandonedTimestamp&&this.abandonedTimes.push(t-this.lastAbandonedTimestamp);break;case"ROUTE_ABANDONED":this.lastAbandonedTimestamp=t;break;case"ROUTE_SUCCEEDED":{const{success:r,route:o}=a,{extra:{scenario:c}}=e.payload;0;const u=Math.max(...r[c].map(e=>n[e].timestamp)),l=Math.max(0,u-t),d=t+l;this.wasHidden||V.c.timer("succeeded",{scenario:c,isAiCopilotEnabled:s}).update(d);this.finish(Object.assign({status:"success",timeToAllSuccess:d/1e3,scenario:c,finishedTimestamp:u,route:o,pathname:i},this.options.timingOffset?{adjustedTimeToAllSuccess:(t+l+this.options.timingOffset)/1e3,timingOffset:this.options.timingOffset}:{}),n);this.performanceMark("mark_all_success");break}case"ROUTE_FAILED":{const{route:e,error:t}=a,r=t.filter(e=>n[e]);0;const[o]=r,c=n[o].timestamp;this.wasHidden||V.c.counter("failed",{selector:o,isAiCopilotEnabled:s}).increment();this.finish({status:"failure",failureType:"errorSelector",selector:o,finishedTimestamp:c,route:e,pathname:i},n);this.performanceMark("mark_all_failure");break}case"ROUTE_TIMEOUT_EXPIRED":{const{route:e}=a;this.wasHidden||V.c.counter("timeouts",{isAiCopilotEnabled:s}).increment();this.finish({status:"failure",failureType:"watchdogExpired",finishedTimestamp:r,route:e},n);this.performanceMark("mark_all_failure_watchdog_expired");break}}}}class $ extends U{constructor(e){super(e);this.resolved={};this.stopped=!1;this.flushQueueTimeout=void 0;this.currentActionStartTimestamp=null;this.previousNavigationAction=null;this.wasHidden="hidden"===k();D(e=>{"hidden"!==e||this.wasHidden||(this.wasHidden=!0)})}pushInAppNavigationAction(e,t,n,r,i){this.previousNavigationAction&&this.pushNavigationAction(e,this.previousNavigationAction,t,n,r,i);this.previousNavigationAction=e}report(e){if("COMPONENT_RENDERED"===e.type||this.resolved[e.payload.entry.id]||this.stopped)return;const t=String(J());switch(e.type){case"ROUTE_TIMEOUT_EXPIRED":case"ROUTE_FAILED":{const{entry:n,routeSpec:r}=e.payload,{pathname:i,checks:a,expiredTimestamp:s}=n,{route:o,error:c}=r;this.wasHidden||("ROUTE_FAILED"===e.type?V.c.counter("transition-failed",{isAiCopilotEnabled:t}).increment():V.c.counter("transition-timeouts",{isAiCopilotEnabled:t}).increment());this.pushInAppNavigationAction({pathname:i,route:o,scenario:"ROUTE_FAILED"===e.type&&c?c.join(","):e.type},"failure",this.wasHidden,"hidden"===k(),"ROUTE_FAILED"===e.type?this.toDuration(a,this.currentActionStartTimestamp,c):s-this.currentActionStartTimestamp);break}case"ROUTE_SUCCEEDED":{const{entry:n,routeSpec:r,extra:i}=e.payload,{pathname:a,checks:s}=n,{route:o}=r,{scenario:c}=i,u=r.success[c]||"",l=this.toDuration(s,this.currentActionStartTimestamp,u);this.wasHidden||V.c.timer("transition-succeeded",{scenario:c,isAiCopilotEnabled:t}).update(l);this.pushInAppNavigationAction({pathname:a,route:o,scenario:c||u.join(",")},"success",this.wasHidden,"hidden"===k(),l);break}}switch(e.type){case"ROUTE_UNEXPECTED":this.stopped=!0;break;case"ROUTE_STARTED":{const{entry:t}=e.payload,{timestamp:n}=t;this.currentActionStartTimestamp=this.currentActionStartTimestamp||n;break}case"ROUTE_SUCCEEDED":case"ROUTE_TIMEOUT_EXPIRED":case"ROUTE_FAILED":this.currentActionStartTimestamp=null;this.resolved[e.payload.entry.id]=!0;clearTimeout(this.flushQueueTimeout);this.flushQueueTimeout=setTimeout(()=>{this.flushNavigationQueue()},L)}}}class ee extends R.b{constructor(){super();this.resolved={};this.notifiedRoutes=new Set}report(e){if("COMPONENT_RENDERED"===e.type||this.resolved[e.payload.entry.id]&&"CHECKS_CHANGED"!==e.type)return;const{entry:{pathname:t}}=e.payload;if("ROUTE_UNEXPECTED"===e.type){if(!this.notifiedRoutes.has(t)){this.addPageAction("react-rhumb-event",{eventName:"UnexpectedRouteVisited",pathname:t});this.captureUnexpectedRoute(t);this.notifiedRoutes.add(t);V.c.counter("unexpected-route").increment()}this.resolved[e.payload.entry.id]=!0}}}const[te,ne]=E.b;class re extends R.b{constructor(){super();this.stopped=!1}report(e){if(!this.stopped&&"GLOBAL_ERROR"===e.type){const{entry:t,extra:n}=e.payload,{error:r}=n,{pathname:i}=t;this.captureError(r,{data:{pathname:i},tags:{[ne]:"true"}});this.stopped=!0}}}var ie=n("Lm/k");let ae,se,oe,ce;const ue={passive:!0,capture:!0},le=new Date,de=e=>{ce.push(e);he()},pe=()=>{ce=[];se=-1;ae=null;me(window.addEventListener)},fe=(e,t)=>{if(!ae){ae=t;se=e;oe=new Date;me(window.removeEventListener);he()}},he=()=>{if(se>=0&&se{t(e)});ce=[]}},be=e=>{if(e.cancelable){const t=(e.timeStamp>1e12?new Date:u())-e.timeStamp;"pointerdown"===e.type?ge(t,e):fe(t,e)}},ge=(e,t)=>{const n=()=>{fe(e,t);i()},r=()=>{i()},i=()=>{window.removeEventListener("pointerup",n,ue);window.removeEventListener("pointercancel",r,ue)};window.addEventListener("pointerup",n,ue);window.addEventListener("pointercancel",r,ue)},me=e=>{["mousedown","keydown","touchstart","pointerdown"].forEach(t=>e(t,be,ue))},Oe=["processingStart","startTime"],ve=["attribution"],je=(e,t)=>{try{if(!PerformanceObserver.supportedEntryTypes.includes(e))return;const n=new PerformanceObserver(e=>{for(const n of e.getEntries())t(n)});n.observe({type:e,buffered:!0});_(()=>{const e=n.takeRecords();n.disconnect();e.map(t)})}catch(e){}},ye=e=>{window.addEventListener("pageshow",t=>{t.persisted&&e(t)},!0)};class Ee extends U{constructor(e){super(e);this.resolved={};this.stopped=!1;this.firstHiddenTime="hidden"===document.visibilityState?0:1/0;this.interactionMap=new Map;window.addEventListener("visibilitychange",e=>{this.firstHiddenTime=Math.min(this.firstHiddenTime,e.timeStamp)},{once:!0});const t=()=>{clearTimeout(this.flushQueueTimeout);this.flushQueueTimeout=setTimeout(()=>{this.flushPerformanceQueue();this.interactionMap.clear()},L)},n=e=>{const n=e.toJSON(),{processingStart:r,startTime:i}=n,a=Object(ie.a)(n,Oe);if(i{const{interactionId:n,target:r,name:i}=e;if(n>0){let a=this.interactionMap.get(n);if(!a){a={latency:0,entries:[],interactionNames:""};this.interactionMap.set(n,a)}a.entries.push(e);a.latency=Math.max(e.duration,a.latency);if(a.latency<150)return;const s=r&&r.hasAttribute("data-test-id")?r.getAttribute("data-test-id"):"",o=r?r.tagName:"";i&&i.length>0&&(a.interactionNames=a.interactionNames.concat(a.interactionNames.length>0?" ":"",i));this.evictPerformanceAction(n);this.pushPerformanceAction(this.lastRouteInfo,N.UserInteraction,{interactionId:n,interactionNames:a.interactionNames,latency:a.latency,elapsedMs:u(),testId:s,tagName:o});t()}},i=e=>{n(e)};ye(()=>{pe();de(i)});je(N.LongTask,e=>{const n=e.toJSON(),r=Object(ie.a)(n,ve);this.pushPerformanceAction(this.lastRouteInfo,N.LongTask,r);t()});je(N.FID,e=>{n(e)});je(N.UserInteraction,e=>{r(e)})}evictPerformanceAction(e){this.performanceActions=this.performanceActions.filter(t=>t.data.interactionId!==e)}__setFirstHiddenTime(e){this.firstHiddenTime=e}report(e){if("COMPONENT_RENDERED"!==e.type&&!this.resolved[e.payload.entry.id]&&!this.stopped){switch(e.type){case"ROUTE_TIMEOUT_EXPIRED":{const{routeSpec:{route:t}}=e.payload;this.lastRouteInfo={route:t};break}case"ROUTE_FAILED":{const{entry:{pathname:t},routeSpec:n}=e.payload,{route:r}=n;this.lastRouteInfo={pathname:t,route:r};break}case"ROUTE_SUCCEEDED":{const{entry:{pathname:t},extra:{scenario:n},routeSpec:r}=e.payload,{route:i}=r;this.lastRouteInfo={pathname:t,route:i,scenario:n};break}}switch(e.type){case"ROUTE_UNEXPECTED":this.stopped=!0;break;case"ROUTE_SUCCEEDED":case"ROUTE_TIMEOUT_EXPIRED":case"ROUTE_FAILED":this.resolved[e.payload.entry.id]=!0}}}}class Te extends R.b{report(e){if("ROUTE_STARTED"===e.type)try{const{route:t,globalNav:n}=e.payload.routeSpec;window.dispatchEvent(new CustomEvent("rhumb-route-started",{detail:{route:t,globalNav:n}}))}catch(e){}}}const Ie=()=>{let e=1,t="* > *";for(;document.querySelector(t);){t+=" > *";e++}return e},we=24e4;class Se extends U{constructor(e){super(e);this.resolved={};this.stopped=!1;this.candidate=!1;(Math.random()<.1||this.debug)&&(this.candidate=!0);if(!this.candidate||!performance.memory)return;const t=()=>{const e=Math.random()*we;this.timeout=setTimeout(()=>{if(!(this.stopped||u()>36e5)){this.timeout&&this.collectMemoryUsage();t()}},e)};t();this.flushingInterval=setInterval(()=>{this.stopped&&clearInterval(this.flushingInterval);this.flushPerformanceQueue()},2*we)}collectMemoryUsage(){const e=performance.memory.usedJSHeapSize;this.pushPerformanceAction(this.lastRouteInfo,"memory",{usedMemBytes:e,elapsedMs:u(),numOfDOMNodes:document.getElementsByTagName("*").length,depthOfDOMTree:Ie()});V.b.histogram("used-bytes",{scenario:this.lastRouteInfo&&this.lastRouteInfo.scenario||"unknown"}).update(e)}report(e){if(this.candidate&&performance.memory&&"COMPONENT_RENDERED"!==e.type&&!this.resolved[e.payload.entry.id]&&!this.stopped){switch(e.type){case"ROUTE_TIMEOUT_EXPIRED":{const{routeSpec:{route:t}}=e.payload;this.lastRouteInfo={route:t};break}case"ROUTE_FAILED":{const{entry:{pathname:t},routeSpec:n}=e.payload,{route:r}=n;this.lastRouteInfo={pathname:t,route:r};break}case"ROUTE_SUCCEEDED":{const{entry:{pathname:t},extra:{scenario:n},routeSpec:r}=e.payload,{route:i}=r;this.lastRouteInfo={pathname:t,route:i,scenario:n};break}}switch(e.type){case"ROUTE_UNEXPECTED":this.stopped=!0;break;case"ROUTE_SUCCEEDED":case"ROUTE_TIMEOUT_EXPIRED":case"ROUTE_FAILED":this.resolved[e.payload.entry.id]=!0}}}}const Ae=new Map([["numSucceededRequests","succeeded-requests"],["numAbortedRequests","aborted-requests"],["numPendingRequests","pending-requests"],["numNotFound","not-found-requests"],["numTimedoutRequests","timed-out-requests"],["numFailedRequestsMinus404AndRetries","failed-requests"],["numRetriedFailures","retried-requests"]]);class Ce extends R.b{constructor(e){super(e);this.finished=!1;this.wasHidden=P();D(e=>{"hidden"===e&&(this.wasHidden=!0)})}sendMetrics(e,t={}){const n=Y(e);n&&Ae.forEach((e,r)=>{const i=Number(n[r]);V.c.histogram(e,t).update(i)})}report(e){if("COMPONENT_RENDERED"===e.type||this.finished||this.wasHidden)return;const{entry:{checks:t,expiredTimestamp:n},routeSpec:r}=e.payload;switch(e.type){case"ROUTE_SUCCEEDED":case"ROUTE_FAILED":case"ROUTE_TIMEOUT_EXPIRED":case"ROUTE_UNEXPECTED":this.finished=!0}switch(e.type){case"ROUTE_SUCCEEDED":{const{success:n}=r,{extra:{scenario:i}}=e.payload,a=Math.max(...n[i].map(e=>t[e].timestamp));this.sendMetrics(a,{scenario:i,status:"success"});break}case"ROUTE_FAILED":{const{error:e}=r,n=e.filter(e=>t[e]),[i]=n,a=t[i].timestamp;this.sendMetrics(a,{selector:i,status:"failure"});break}case"ROUTE_TIMEOUT_EXPIRED":n&&this.sendMetrics(n,{status:"failure"})}}}var xe=n("66eB");class Re extends r.Component{constructor(...e){super(...e);this.state={}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){this.props.onError(e)}render(){return this.state.error?Object(p.jsx)(h,{name:"RHUMB_GLOBAL_ERROR_BOUNDARY"}):this.props.children}}var ke=Re;class Pe extends R.b{report(e){switch(e.type){case"ROUTE_STARTED":W()&&V.c.counter("reloaded").increment()}}}class De extends R.b{report(e){switch(e.type){case"NO_VISIBLE_MARKERS":{const{extra:{scenario:t}}=e.payload;V.c.counter("no-visible-markers",{scenario:t,isAiCopilotEnabled:String(J()),hasHash:String(z()),isReload:String(W())}).increment();break}}}}const _e={position:"fixed",right:"100px",top:"100px",zIndex:"1000",padding:"15px",background:"#ff7a59",color:"#fff",borderRadius:"3px"},Me={marginRight:"3px"},Ne={display:"flex",justifyContent:"space-between"};0;var Le=({isTrackingVisibility:e,isAutoToggling:t,toggleTrackVisibility:n,setAutoToggle:r})=>Object(p.jsxs)("div",{style:_e,children:[Object(p.jsxs)("div",{style:Ne,children:[Object(p.jsx)("label",{htmlFor:"toggleTrackVisibility",style:Me,children:"Toggle Visibility Tracking"}),Object(p.jsx)("input",{id:"toggleTrackVisibility",type:"checkbox",checked:e,onChange:n})]}),Object(p.jsxs)("div",{style:Ne,children:[Object(p.jsx)("label",{htmlFor:"setAutoToggle",style:Me,children:"Toggle Visibility Every 2s"}),Object(p.jsx)("input",{id:"setAutoToggle",type:"checkbox",checked:t,onChange:r})]})]});function Be(e){const t=Object(r.useRef)();t.current||(t.current={value:e()});return t.current.value}const Fe=e=>e.startsWith("static-")?e.substr(7):"dev",He=e=>{0;return Object.keys(e).reduce((t,n)=>{const r=e[n],{success:i={default:[]},error:a=[],globalNav:s="default"}=r;t[n]={route:n,globalNav:s,success:i,error:[...a,...E.b]};return t},{})},Ue=e=>{const t=Object.keys(e),n=w(t);return y(r=>{const i=t.find(e=>n(e,r));return e[i]})},Ve=e=>{const t=({pathname:t,checks:n,expiredTimestamp:r})=>{const i=e(t);if(r)return{type:"TIMEOUT"};{const e=e=>n[e],t=Object.keys(i.success).filter(t=>i.success[t].length&&i.success[t].every(e));if(t.length)return{type:"SUCCESS",scenario:t[0]};if(i.error.some(e))return{type:"FAILURE"}}return{type:"PENDING"}};return Object(g.default)(t)},Ge=(e,t)=>(n,r,i)=>{const{pathname:a}=r,s={entry:r,routeSpec:e(a)};i&&Object.assign(s,{extra:i});t({type:n,payload:s})},We=(e,t)=>{const{entry:n,entry:{pathname:r,id:i,checks:a},entries:s,visibleMarkerRefs:o}=e;switch(t.type){case"HISTORY_CHANGED":{const{pathname:a,timestamp:o}=t.payload;return a!==r?Object.assign({},e,{entry:{id:i+1,pathname:a,referrer:r,timestamp:o,checks:{},expiredTimestamp:null,dirty:!1},entries:[...s,n]}):e}case"MARKER_MOUNTED":{const{marker:{name:r,id:s},timestamp:o}=t.payload;0;return i===s?Object.assign({},e,{entry:Object.assign({},n,{dirty:!0,checks:Object.assign({},a,{[r]:{timestamp:o}})})}):e}case"MARKER_UNMOUNTED":{const{marker:{name:r,id:s}}=t.payload;if(i===s&&a[r]){const t=Object.assign({},a);delete t[r];return Object.assign({},e,{entry:Object.assign({},n,{checks:t})})}return e}case"TIMEDOUT":{const{timestamp:r}=t.payload;return Object.assign({},e,{entry:Object.assign({},n,{expiredTimestamp:r})})}case"ADD_MARKER_REF":{const{marker:{name:n,id:r},ref:a}=t.payload;return i===r?Object.assign({},e,{visibleMarkerRefs:Object.assign({},o,{[n]:a})}):e}default:return e}},ze=()=>{},qe=(e,t)=>{const n=Object(r.useRef)([]),i=Object(r.useRef)(xe.a),a=Object(r.useRef)(xe.a);Object(r.useEffect)(()=>{a.current=t});if(i.current===xe.a){const t=e.listen(({pathname:e})=>{const t=u();n.current.push({pathname:e,timestamp:t})});i.current=()=>{t();n.current.forEach(e=>a.current(e));n.current=[];i.current=()=>{}}}Object(r.useEffect)(()=>{i.current();return e.listen(a.current)},[e])},Ke=(e,t)=>{const{pathname:n}=e,i=Be(()=>t(n)),a=e=>{const t=e?e.route:"unknown-route";if(window.newrelic){window.newrelic.setCurrentRouteName(t);window.newrelic.setCustomAttribute("route",t)}};Object(r.useEffect)(()=>{if(window.newrelic){window.newrelic.setCustomAttribute("reactRhumbVersion",Fe(S.bender.depVersions["react-rhumb"]));window.newrelic.setCustomAttribute("reaganVersion","react-rhumb")}},[]);Object(r.useEffect)(()=>{a(i)},[i]);qe(e,({pathname:e})=>{a(t(e))})},Ye=()=>{const[e,t]=Object(r.useState)(null),n=Object(r.useRef)(null),i=Object(r.useMemo)(()=>new IntersectionObserver(e=>{t(e.some(e=>e.isIntersecting))}),[]);Object(r.useEffect)(()=>{n.current=e},[e]);Object(r.useEffect)(()=>()=>i.disconnect(),[i]);return{observer:i,hasSomeVisibleMarker:e,prevHasSomeVisibleMarker:n.current}},Je=e=>{ze(e);const{history:t,history:{pathname:a},config:o,children:c,timingOffset:l,staticAppInfo:d,captureExceptions:f=!0,trackVisibility:h}=e,b="true"===v.a.debug("react-rhumb-visibility"),[g,O]=Object(r.useState)(h),[j,y]=Object(r.useState)(!1);Object(r.useEffect)(()=>{if(j&&b){const e=setInterval(()=>{O(e=>!e)},2e3);return()=>clearInterval(e)}},[j,b]);const T=Object(r.useMemo)(()=>He(o),[o]),I=Object(r.useMemo)(()=>({entry:{id:0,pathname:a,referrer:void 0,timestamp:0,checks:{},expiredTimestamp:null,dirty:!1},entries:[],visibleMarkerRefs:{}}),[a]),[w,S]=Object(r.useReducer)(We,I),A=Object(r.useMemo)(()=>Ue(T),[T]);Ke(t,A);qe(t,({timestamp:e,pathname:t})=>{s(()=>{S({type:"HISTORY_CHANGED",payload:{pathname:t,timestamp:e}})})});const C=Be(()=>{const e=n("1sEq"),t=[new(e.default?e.default:e)({timingOffset:l}),new X({timingOffset:l,staticAppInfo:d}),new $({staticAppInfo:d}),new ee,new re,new Ee({staticAppInfo:d}),new Te,new Se({staticAppInfo:d}),new Pe,new De,new Ce];return e=>t.forEach(t=>t.report(e))}),x=Object(r.useMemo)(()=>Ge(A,C),[A,C]),R=(e,t)=>{x("GLOBAL_ERROR",w.entry,Object.assign({error:e},t))},k=Object(r.useMemo)(()=>Ve(A),[A]),P=Object(r.useRef)(void 0),D=m(w),{observer:_,hasSomeVisibleMarker:M,prevHasSomeVisibleMarker:N}=Ye();Object(r.useEffect)(()=>{const e=()=>{const e=u();s(()=>{S({type:"TIMEDOUT",payload:{timestamp:e}})})},t=(e,t)=>{switch(e.type){case"SUCCESS":{const{scenario:n}=e;x("ROUTE_SUCCEEDED",t,{scenario:n});break}case"TIMEOUT":x("ROUTE_TIMEOUT_EXPIRED",t);break;case"FAILURE":x("ROUTE_FAILED",t);break;default:throw new Error("unexpected status type "+e.type)}};if(D&&w.entries!==D.entries){const{entry:e,entry:{checks:n},entries:r}=D,{entries:i}=w;clearTimeout(P.current);P.current=void 0;const[a,...s]=i.slice(r.length-i.length),{pathname:o,checks:c}=a;if(A(o)){c!==n&&x("CHECKS_CHANGED",a);const r=k(a);a!==e?"PENDING"!==r.type?t(r,a):x("ROUTE_ABANDONED",a):"PENDING"===r.type&&x("ROUTE_ABANDONED",a)}s.forEach(e=>{const{pathname:t}=e;if(A(t)){x("ROUTE_STARTED",e);x("ROUTE_ABANDONED",e)}else x("ROUTE_UNEXPECTED",e)})}if(!D||D.entries!==w.entries){const{entry:n,entry:{pathname:r,dirty:i}}=w;if(A(r)){x("ROUTE_STARTED",n);i&&x("CHECKS_CHANGED",n);const r=k(n);"PENDING"!==r.type?t(r,n):P.current=setTimeout(e,E.a)}else x("ROUTE_UNEXPECTED",n)}if(D&&D.entries===w.entries&&D.entry!==w.entry){const{entry:{checks:e}}=D,{entry:n,entry:{checks:r,pathname:i}}=w;if(A(i)){r!==e&&x("CHECKS_CHANGED",n);const i=k(n);if("PENDING"!==i.type){t(i,n);clearTimeout(P.current);P.current=void 0}}}if(D&&D.visibleMarkerRefs!==w.visibleMarkerRefs&&g){const{entry:e,entry:{pathname:t}}=w;if(A(t)){const t=Object.keys(w.entry.checks).every(e=>Object.prototype.hasOwnProperty.call(w.visibleMarkerRefs,e)&&!!w.visibleMarkerRefs[e]&&null!==w.visibleMarkerRefs[e].current);"SUCCESS"===k(e).type&&t&&Object.values(w.visibleMarkerRefs).forEach(e=>!!e.current&&_.observe(e.current))}}},[D,w,A,k,x,_,g]);Object(r.useEffect)(()=>{if(null===N&&M!==N&&g){const{entry:e}=w,t=k(e),{scenario:n}=t;M||x("NO_VISIBLE_MARKERS",e,{scenario:n})}},[M,N,w,k,x,g]);Object(r.useEffect)(()=>{V.c.timer("rhumb-provider-mounted").update(u());return()=>{clearTimeout(P.current);P.current=void 0}},[]);const{entry:{checks:L,id:B}}=w,F=Object(r.useMemo)(()=>Object.keys(L).filter(e=>L[e]),[L]),H=Object(r.useMemo)(()=>({id:B,dispatch:S,reportAction:C,trackVisibility:g}),[B,C,g]),U=Object(r.useMemo)(()=>F.map(encodeURIComponent).join(","),[F]);return Object(p.jsxs)(i.Provider,{value:H,children:[f?Object(p.jsx)(ke,{onError:R,children:c||null}):c||null,Object(p.jsx)("div",{hidden:!0,"aria-hidden":"true","data-id-markers":U,children:F.map(e=>Object(p.jsx)("mark",{"data-id-marker":e},e))}),b&&Object(p.jsx)(Le,{isTrackingVisibility:!!g,isAutoToggling:j,toggleTrackVisibility:e=>{O(e.target.checked)},setAutoToggle:e=>{y(e.target.checked)}})]})};0;var Qe=Object(r.memo)(Je);n.d(t,"b",(function(){return Qe}));n.d(t,"a",(function(){return h}))},byjC:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("dLEV"),i=n("k8Ub"),a=n("C3IS"),s=n("V+nC"),o=n("J4oD"),c=n("kWFB"),u=n("iPDb");const l=Object(r.createSelector)(o.historyDataForThread,e=>{if(!e||!Object(c.hasMessages)(e))return!1;const t=Object(u.a)(e).filter(e=>Object(a.b)(e)&&!Object(a.c)(e)||Object(s.a)(e)).last();return Boolean(Object(i.a)(t))})},"c/Yf":function(e,t,n){"use strict";n.r(t);n.d(t,"OPT_OUT_YES",(function(){return s}));n.d(t,"OPT_OUT_NO",(function(){return o}));n.d(t,"getGlobalCookieOptOut",(function(){return c}));var r=n("dLEV"),i=n("+U1B"),a=n("3RDS");const s="yes",o="no",c=Object(r.createSelector)(i.a,e=>Object(a.getGlobalCookieOptOut)(e))},c1C1:function(e,t,n){"use strict";n.r(t);n.d(t,"generateUniqueClientTimestamp",(function(){return r}));const r=function e(t="default"){const n=Date.now(),{previousTimestamps:r}=e;if(r&&r[t]&&r[t]>=n){r[t]++;return r[t]}r[t]=n;return n};r.previousTimestamps={};r.reset=function(){this.previousTimestamps={}}},c2PF:function(e,t,n){"use strict";n.r(t);n.d(t,"getThreadByThreadId",(function(){return o}));var r=n("JGJA"),i=n("dLEV"),a=n("bco+");const s=(e,{threadId:t})=>t,o=Object(i.createSelector)([a.getThreads,s],(e,t)=>Object(r.a)(t,e))},c44P:function(e,t,n){var r=n("34eX"),i="Expected a function";function a(e,t){var n;if("function"!=typeof t)throw new TypeError(i);e=r(e);return function(){--e>0&&(n=t.apply(this,arguments));e<=1&&(t=void 0);return n}}e.exports=a},cFiw:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("Zulv"),i=n("okxY"),a=n("Ktcs");function s(e,t){let{role:n="dialog"}=e,s=Object(r.r)();s=e["aria-label"]?void 0:s;Object(a.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){Object(i.b)(t.current);let e=setTimeout(()=>{if(document.activeElement===t.current){t.current.blur();Object(i.b)(t.current)}},500);return()=>{clearTimeout(e)}}},[t]);return{dialogProps:Object.assign({},Object(r.b)(e,{labelable:!0}),{role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||s}),titleProps:{id:s}}}},cKdz:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("uOZ5"),i=n("kevw");const a=e=>Object(i.d)(e)===r.c||Object(i.d)(Object(i.c)(e))===r.c},cPs9:function(e,t,n){"use strict";var r=n("2Zef");const i="vid",a="utk",s="id";n.d(t,"a",(function(){return o}));const o=e=>{switch(e){case r.VID_SENDER:return i;case r.VISITOR_SENDER:return a;case r.BOT_SENDER:case r.AGENT_SENDER:case r.INTEGRATOR_SENDER:return s;case r.SYSTEM_SENDER:default:return null}}},cRNH:function(e,t,n){"use strict";n.r(t);n.d(t,"postConversationClosedEvent",(function(){return s}));var r=n("Ozt8"),i=n("mlLV"),a=n("wGlN");const s=({thread:e})=>{Object(r.postExternalApiEvent)({eventType:i.CONVERSATION_CLOSED,payload:{conversation:Object(a.serializeThreadForExternalEvent)(e)}})}},cSJ2:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n("bSHG"),i=n("rCfO"),a=n("Smgi"),s=n("vDBy"),o=n("YSBR"),c=n("uVkz"),u=n("Y0S+");Object(i.default)(e=>/()/.test(e));const l=Object(i.default)((e,t,n=[])=>{const i=r.c.body;try{r.c.domain=window.location.hostname.indexOf("qa")>=0?"hubspotqa.com":"hubspot.com"}catch(e){}const l=r.c.createElement("div");if(e&&""!==e){i.innerHTML=e;const r=Object.assign({},t);r.transformers=[s.a,a.a,u.a,o.a,...n];try{const e=Object(c.a)(r).clean_node(i).cloneNode(!0);l.appendChild(e)}catch(e){console.error(e)}}return t===r.a.TEXTONLY?l.textContent||"":l.innerHTML});e&&e.exports&&(e.exports.default=Object.assign({},e.exports))}).call(this,n("IJKd")(e))},cXEp:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="SET_THREADS_SUCCESS",i="UPDATE_THREAD_CURRENT_URL"},cdXU:function(e,t,n){"use strict";n.r(t);n.d(t,"getIsPrivateLoad",(function(){return i}));var r=n("JGJA");const i=e=>Object(r.a)("privateLoad",e)},cjt2:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"h",(function(){return a}));n.d(t,"g",(function(){return s}));n.d(t,"c",(function(){return o}));n.d(t,"d",(function(){return c}));n.d(t,"e",(function(){return u}));n.d(t,"b",(function(){return l}));n.d(t,"f",(function(){return d}));var r=n("VVfI");const i=Object(r.a)("INITIALIZE_PUBSUB"),a=Object(r.a)("UPDATE_SUBSCRIPTIONS"),s=(Object(r.a)("RECONNECT"),Object(r.a)("RESUBSCRIBE")),o="PUBSUB_READY",c="PUBSUB_RECONNECTED",u="PUBSUB_RECONNECTING",l="PUBSUB_DISCONNECTED",d="PUBSUB_SUSPENDED"},cnVX:function(e,t,n){"use strict";n.r(t);var r=n("nSiU"),i=n("eCQl");const a=e=>!Object(r.getErrorTitle)(e)&&!Object(r.isSilent)(e);n.d(t,"reportErrorAction",(function(){return s}));const s=e=>{const t=Object(r.getError)(e)||new Error(e.type+" is being dispatched without an error");console.error(`Error report triggered by '${e.type} (Silent: ${!!Object(r.isSilent)(e)})`);const n=Object(r.isVisibleErrorAction)(e),s=n||!1!==n&&!Object(r.isSilent)(e);return Object(i.reportError)({error:t,tags:{actionType:e.type,isGenericErrorMessage:a(e),isVisibleToUser:s}})}},"d+x8":function(e,t,n){"use strict";n.r(t);n.d(t,"buildThreadHistoryFromResponse",(function(){return i}));var r=n("+LtA");const i=e=>new r.a(e)},dAms:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"d",(function(){return s}));n.d(t,"e",(function(){return o}));n.d(t,"f",(function(){return c}));const r=["entries"],i=["evict"],a=["idInvariant"],s=["idTransform"],o=["name"],c=["notSetValue"]},dEXw:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("MJM1");const i=({localId:e,threadId:t},n)=>Boolean(Object(r.a)([t,e],n))},dIRc:function(e,t,n){"use strict";var r=n("MZef"),i=n("VToG"),a=n("nt9Q");const s=Object(a.a)(i.a);var o=n("ImcI"),c=n("uB3n"),u=n("qjq5"),l=n("dAms"),d=n("JoAZ"),p=n("Sbt9"),f=n("OPip");const h=Object(u.a)((e,t)=>{Object(d.a)(t);Object(f.a)(e,t);const n=Object(p.a)(e,t);return t.updateIn(l.a,e=>e.delete(n))});var b=n("eJ3n"),g=n("Y/B+"),m=n("0IK8"),O=n("SmHr"),v=n("A5f/"),j=n("Ut5p"),y=n("+tWo"),E=n("qQrL");const T=Object(c.a)({notSetValue:Object(r.a)({data:null}),idTransform:e=>e,idInvariant:g.messageKeyInvariant});t.a=Object(j.c)({[E.b.STARTED](e,t){const{messageKey:n,threadId:r,channel:i,message:a}=t.payload;return Object(b.a)(n,Object(o.a)(()=>Object(O.a)({threadId:r,channel:i,message:a})),e)},[E.b.SUCCEEDED](e,t){const{messageKey:n}=t.payload;return h(n,e)},[E.b.FAILED](e,t){const{messageKey:n,threadId:r,channel:i,message:a}=t.payload;return Object(b.a)(n,s(()=>Object(v.a)({threadId:r,channel:i,message:a})),e)},[y.b](e,t){const{message:n}=t.payload,r=Object(m.getId)(n);return h(r,e)}},T)},dLEV:function(e,t,n){"use strict";n.d(t,"configureStore",(function(){return y}));n.d(t,"createAction",(function(){return E}));n.d(t,"createSlice",(function(){return A}));var r=n("4W30"),i=n.n(r),a=n("+GKH"),s=n("MBJP");n.d(t,"createSelector",(function(){return s.a}));var o=n("CJvR"),c=Object.defineProperty,u=(Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols),l=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&p(e,n,t[n]);if(u)for(var n of u(t))d.call(t,n)&&p(e,n,t[n]);return e},h="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?a.compose:a.compose.apply(null,arguments)};function b(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);if(null===t)return!0;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}var g=class extends Array{constructor(...e){super(...e);Object.setPrototypeOf(this,g.prototype)}static get[Symbol.species](){return g}concat(...e){return super.concat.apply(this,e)}prepend(...e){return 1===e.length&&Array.isArray(e[0])?new g(...e[0].concat(this)):new g(...e.concat(this))}};function m(e){return"boolean"==typeof e}function O(){return function(e){return v(e)}}function v(e={}){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0}=e;let i=new g;t&&(m(t)?i.push(o.a):i.push(o.a.withExtraArgument(t.extraArgument)));0;return i}var j=!0;function y(e){const t=O(),{reducer:n,middleware:r=t(),devTools:i=!0,preloadedState:s,enhancers:o}=e||{};let c;if("function"==typeof n)c=n;else{if(!b(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');c=Object(a.combineReducers)(n)}let u=r;if("function"==typeof u){u=u(t);if(!j&&!Array.isArray(u))throw new Error("when using a middleware builder function, an array of middleware must be returned")}if(!j&&u.some(e=>"function"!=typeof e))throw new Error("each middleware provided to configureStore must be a function");const l=Object(a.applyMiddleware)(...u);let d=a.compose;i&&(d=h(f({trace:!j},"object"==typeof i&&i)));let p=[l];Array.isArray(o)?p=[l,...o]:"function"==typeof o&&(p=o(p));const g=d(...p);return Object(a.createStore)(c,s,g)}function E(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error("prepareAction did not return an object");return f(f({type:e,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:e,payload:n[0]}}n.toString=()=>""+e;n.type=e;n.match=t=>t.type===e;return n}function T(e){const t={},n=[];let r;const i={addCase(e,n){0;const r="string"==typeof e?e:e.type;if(r in t)throw new Error("addCase cannot be called with two reducers for the same action type");t[r]=n;return i},addMatcher(e,t){0;n.push({matcher:e,reducer:t});return i},addDefaultCase(e){0;r=e;return i}};e(i);return[t,n,r]}function I(e){return"function"==typeof e}function w(e,t,n=[],a){let s,[o,c,u]="function"==typeof t?T(t):[t,n,a];if(I(e))s=()=>i()(e(),()=>{});else{const t=i()(e,()=>{});s=()=>t}function l(e=s(),t){let n=[o[t.type],...c.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];0===n.filter(e=>!!e).length&&(n=[u]);return n.reduce((e,n)=>{if(n){if(Object(r.isDraft)(e)){const r=n(e,t);return void 0===r?e:r}if(Object(r.isDraftable)(e))return i()(e,e=>n(e,t));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e},e)}l.getInitialState=s;return l}function S(e,t){return`${e}/${t}`}function A(e){const{name:t}=e;if(!t)throw new Error("`name` is a required option for createSlice");const n="function"==typeof e.initialState?e.initialState:i()(e.initialState,()=>{}),r=e.reducers||{},a=Object.keys(r),s={},o={},c={};a.forEach(e=>{const n=r[e],i=S(t,e);let a,u;if("reducer"in n){a=n.reducer;u=n.prepare}else a=n;s[e]=a;o[i]=a;c[e]=u?E(i,u):E(i)});function u(){const[t={},r=[],i]="function"==typeof e.extraReducers?T(e.extraReducers):[e.extraReducers],a=f(f({},t),o);return w(n,a,r,i)}let l;return{name:t,reducer(e,t){l||(l=u());return l(e,t)},actions:c,caseReducers:s,getInitialState(){l||(l=u());return l.getInitialState()}}}var{assign:C}=Object,x="listenerMiddleware";E(x+"/add"),E(x+"/removeAll"),E(x+"/remove");Object(r.enableES5)()},"dML/":function(e,t,n){"use strict";var r=n("DdHT"),i=n("0IK8"),a=n("iPDb");const s=e=>Object(a.a)(e).last();var o=n("BOwv");n.d(t,"a",(function(){return c}));const c=e=>{if(!e)return!1;const t=Object(r.a)(s,i.getTimestamp)(e);return Date.now()-t>=o.a}},dPcB:function(e,t,n){"use strict";var r=n("Rd7q"),i=n("0FzD"),a={ja:{[i.a.COMPANY]:e=>e+" 御中",[i.a.CUSTOMER]:e=>e+" 様"}};const s=new RegExp(/[\u4E00-\u9FCC\u3400-\u4DB5\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29\uF9DC]|[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d]|[\u3040-\u309F]|[\u3005]|[\u3031-\u3032]|[\u3131-\uD79D]/),o=new RegExp(/[\u30A0-\u30FF]/);t.a=({name:e,firstName:t,lastName:n,email:i,titleType:c},u)=>{const l=t&&t.trim(),d=n&&n.trim(),p=e&&e.trim();let f;l||d?l&&!d?f=l:!l&&d&&(f=d):f=p||i||"";if(void 0===f){const e=s.test(d),t=s.test(l),n=o.test(d),r=o.test(l);f=e&&t||e&&r||n&&t||r&&n?`${d} ${l}`:`${l} ${d}`}if(c){const e=u&&u.locale||Object(r.a)(),t=a[e]&&a[e][c];t&&(f=t(f))}return f}},da5k:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("L9oQ"),i=n("YHaB"),a=n("WTKJ");function s({threadId:e}){return t=>{t(Object(r.selectThread)(e));t(Object(i.a)(a.c))}}},dsyW:function(e,t,n){"use strict";n.r(t);n.d(t,"timestampIsTomorrow",(function(){return r}));const r=e=>{const t=new Date(e),n=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-1).valueOf()===new Date(n.getFullYear(),n.getMonth(),n.getDate()).valueOf()}},"du/S":function(e,t,n){"use strict";n.r(t);n.d(t,"getAPIEnableWidgetCookieBannerOnExitIntent",(function(){return o}));var r=n("dLEV"),i=n("QnHA"),a=n("IbXZ"),s=n("CXrm");const o=Object(r.createSelector)([i.a],e=>Object(a.a)(e)===s.b)},"e/Xz":function(e,t,n){"use strict";n.r(t);n.d(t,"removeTimeOnPageTriggerAction",(function(){return a}));var r=n("dLEV"),i=n("VB2T");const a=Object(r.createAction)(i.b)},e379:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("q8Gl"),i=n("Los8");const a=()=>Object(i.a)(Object(r.getWindowLocation)().paramValue("inApp53"))},eCQl:function(e,t,n){"use strict";n.r(t);var r=n("mEYk"),i=n.n(r),a=n("MJM1");let s;!function(e){e.error="error";e.warning="warning";e.debug="debug";e.critical="critical";e.info="info"}(s||(s={}));const o=2e3,c=["number","description","line","column"],u=["graphQLErrors","networkError","error"],l=e=>{switch(typeof e){case"boolean":case"number":return e;case"string":{const t=e.length>o?"...":"";return`${e.substr(0,o)}${t}`}case"function":return"function() { /* Function removed */ }";case"object":return null===e?e:"/* Object, Error, or Array removed */";default:return}},d=e=>{if(!e)return null;const t=Object.keys(e).filter(e=>!c.includes(e));return t.length?t.reduce((t,n)=>{let r=e[n];u.includes(n)&&(r=JSON.stringify(r));const i=l(r);void 0!==i&&(t[n]=i);return t},{}):null};n.d(t,"reportError",(function(){return p}));const p=({error:e,fingerprint:t,tags:n={},componentData:r={},extra:o={},level:c=s.error,shouldIgnoreStatusZero:u=!0})=>{if((0===Object(a.a)(["networkError","status"],e)||0===Object(a.a)(["status"],e))&&u){console.error(`Error with: '${e.message}'`);return""}const l=Object.assign({componentDidCatch:"false"},n),p=d(e)||{},f=Object.assign({},l,p,o),h=window.newrelic;h&&"function"==typeof h.noticeError&&h.noticeError(e,f);i.a.captureException(e,{fingerprint:t,tags:l,extra:Object.assign({error:f,componentData:r},o),level:c});const b=i.a.lastEventId();console.error(`(Event Id: ${b})\nError reported with '${e.message}'`);f&&Object.keys(f).forEach(e=>{f[e]&&console.error(`Extra Data [${e}]: `,f[e])});return b}},eDjq:function(e,t,n){"use strict";n.r(t);n.d(t,"fetchSupplementalInitialMessagesSucceeded",(function(){return A}));n.d(t,"stageSupplementalInitialMessages",(function(){return x}));var r=n("k8Ub"),i=n("gGDi"),a=n("hSXG"),s=n("bWKF"),o=n("2Zef"),c=n("6d8N"),u=n("Mjj8"),l=n("tOKt"),d=n("c1C1"),p=n("Avso"),f=n("dLEV"),h=n("RaQM"),b=n("+3Rj"),g=n("xZ3y"),m=n("QeSX"),O=n("FBcP"),v=n("goDm"),j=n("9XKB"),y=n("jvpr"),E=n("wihT"),T=n("Hjp8"),I=n("Wt04"),w=n("rf4d");const S=Object(f.createAction)(g.GET_SUPPLEMENTAL_INITIAL_MESSAGES),A=Object(f.createAction)(g.GET_SUPPLEMENTAL_INITIAL_MESSAGES_SUCCEEDED),C=Object(f.createAction)(g.GET_SUPPLEMENTAL_INITIAL_MESSAGES_FAILED,e=>({payload:{error:e}}));function x(){return(e,t)=>{const n=t();if(Object(h.getIsWidgetInAwayMode)(n))return Promise.resolve();const f=Object(m.getAssignedResponderInWidget)(n),g=Object(p.getUserId)(f),x=Object(O.getSessionId)(n),R=Object(j.getHubspotUtk)();e(S());return Object(b.fetchSupplementalInitialMessages)({botId:g,sessionId:x,hubspotUtk:R}).then(n=>{const p=n.status!==u.a&&Array.isArray(n.data)?n.data:[];e(A());p.forEach(({message:n})=>{const u=[],p=Object(r.a)(n);p&&u.push(new c.a(p));const f=Object(l.buildInitialMessage)({id:n.id,clientType:n.clientType,sender:Object(a.a)({senderType:Object(s.b)(n.senderType)||o.BOT_SENDER,senderId:n.senderId}),status:Object.assign({},n.status),genericChannelId:w.d,attachments:u,text:Object(i.b)(n),richText:Object(i.a)(n),timestamp:Object(d.generateUniqueClientTimestamp)(),channelInstanceId:Object(y.getChannelInstanceId)(t()),senders:Object(E.a)(),recipients:Object(T.a)({value:Object(I.getMessagesUtk)()})});e(Object(v.stageMessageOnStubbedThread)(f))})}).catch(t=>{e(C(t))})}}},eEyY:function(e,t,n){"use strict";n.r(t);n.d(t,"getCurrentThreadId",(function(){return s}));var r=n("PpSk"),i=n("dLEV"),a=n("k09d");const s=Object(i.createSelector)([a.a],r.getThreadId)},eF9A:function(e,t,n){"use strict";n.r(t);n.d(t,"isAssignmentUpdateMessage",(function(){return a}));var r=n("0IK8"),i=n("XF21");const a=e=>Object(r.getTopLevelType)(e)===i.a},"eH/d":function(e,t,n){"use strict";n.r(t);n.d(t,"hasChatMessageFromAgent",(function(){return s}));var r=n("C3IS"),i=n("/OK6"),a=n("iPDb");const s=e=>Object(a.a)(e).some(e=>Object(r.a)(e)&&Object(i.isFromAgent)(e))},eJ3n:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("qjq5"),i=n("dAms"),a=n("JoAZ"),s=n("neHy"),o=n("Oo4n"),c=n("OPip"),u=n("Sbt9"),l=n("x1JE");const d=Object(r.a)((e,t,n)=>{Object(a.a)(n);Object(s.a)(t);Object(c.a)(e,n);const r=Object(u.a)(e,n),d=e=>e.update(r,Object(l.getNotSetValue)(n),t);return Object(o.a)(n.updateIn(i.a,d))})},eLkp:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("dLEV"),i=n("LgEy"),a=n("49A5");const s=Object(r.createSelector)([a.getLatestWidgetData],e=>Object(i.gdprConsentToProcessEnabled)(e))},ePP0:function(e,t,n){"use strict";n.r(t);n.d(t,"hasOpenThread",(function(){return a}));var r=n("dLEV"),i=n("WKLl");const a=Object(r.createSelector)([i.a],e=>e.size>0)},eSJp:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("Gc2C"),i=n("BGhm"),a=n("NL4B");const s=e=>{const t=Object(a.getId)(e),n=Object(a.getType)(e);Object(r.a)(!!t,"Responder ID must be set in the key map");Object(i.a)(t);Object(r.a)(!!n,"Responder type must be set in the key map")}},eeeG:function(e,t,n){"use strict";n.r(t);n.d(t,"setMessage",(function(){return o}));var r=n("qjq5"),i=n("bYG+"),a=n("xCrP"),s=n("/He/");const o=Object(r.a)((e,t,n)=>Object(a.a)(s.h,Object(i.a)(e,t),n))},eg5p:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=0},ejs7:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("wL7V");const i=e=>Object(r.a)(e)||e},elDb:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("dLEV"),i=n("JGJA"),a=n("8dR1");const s=Object(r.createSelector)(a.a,Object(i.a)("customEmailCaptureDelay"))},esZR:function(e,t,n){"use strict";n.r(t);n.d(t,"stageInitialMessage",(function(){return v}));var r=n("2Zef"),i=n("v0wH"),a=n("hSXG"),s=n("tOKt"),o=n("c1C1"),c=n("Avso"),u=n("2kog"),l=n("4fgK"),d=n("goDm"),p=n("Jcmd"),f=n("eDjq"),h=n("jvpr"),b=n("wihT"),g=n("Hjp8"),m=n("Wt04"),O=n("rf4d");function v(){return(e,t)=>{const n=t(),v=Object(l.getIsBot)(n),j=Object(u.getInitialResponder)(n),y=Object(c.getUserId)(j),E=Object(o.generateUniqueClientTimestamp)(),T=Object(s.buildInitialMessage)({sender:Object(a.a)({senderType:v?r.BOT_SENDER:r.AGENT_SENDER,senderId:y}),status:{messageStatus:i.b,timestamp:E},genericChannelId:O.d,richText:Object(p.getFirstMessageText)(n),text:Object(p.getFirstMessageText)(n),timestamp:E,channelInstanceId:Object(h.getChannelInstanceId)(t()),senders:Object(b.a)(),recipients:Object(g.a)({value:Object(m.getMessagesUtk)()})});e(Object(d.stageMessageOnStubbedThread)(T));v&&e(Object(f.stageSupplementalInitialMessages)()).catch(e=>{setTimeout(()=>{throw e})})}}},fKJZ:function(e,t,n){"use strict";var r=n("VfuR"),i=n.n(r),a=n("mKxs");t.a=i.a.oneOfType([Object(a.a)("CompanyChatHeadingConfig"),Object(a.a)("OwnerChatHeadingConfig"),Object(a.a)("UsersAndTeamsChatHeadingConfig")])},fPyn:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MJM1"),i=n("NRxt"),a=n("ubOH");const s=e=>{const t=Object(r.a)(["sendFailure"],e),n=t?Object(i.a)(t):null;return Object(a.a)(e).setIn(["sendFailure"],n)}},"fT+s":function(e,t,n){"use strict";n.r(t);var r=n("Lm/k"),i=n("Ut5p"),a=n("xZ3y"),s=n("wQJz"),o=n("da5k"),c=n("scwY"),u=n("dLEV"),l=n("WKLl");const d=Object(u.createSelector)([l.a],e=>e?e.first():void 0);var p=n("NQPJ"),f=n("nzmY"),h=n("FBcP"),b=n("mEYk"),g=n.n(b);n.d(t,"getVisitorThreadsSuccess",(function(){return v}));n.d(t,"getVisitorThreadsFailure",(function(){return j}));n.d(t,"fetchVisitorThreads",(function(){return y}));n.d(t,"navigateToMostRecentThread",(function(){return E}));const m=["responder","threadId","threadPreview","channelDetails"],O=Object(i.b)(a.GET_VISITOR_THREADS_STARTED),v=Object(i.b)(a.GET_VISITOR_THREADS_SUCCESS,({threads:e})=>({threads:e.map(e=>{const{responder:t,threadId:n,threadPreview:i,channelDetails:a}=e,o=Object(r.a)(e,m),c=t?Object(s.a)(t):null;return Object(f.a)(Object.assign({responder:c,threadId:n,threadPreview:i,channelDetails:a},o))})})),j=Object(i.b)(a.GET_VISITOR_THREADS_FAILURE,e=>e);function y(){return(e,t)=>{e(O());const n=Object(h.getSessionId)(t()),r=Object(p.fetchVisitorThreads)({sessionId:n}).then(t=>{e(v({threads:t}))}).catch(t=>{e(j(t));g.a.captureException(t)});r.catch(e=>{setTimeout(()=>{throw e})});return r}}function E(){return(e,t)=>{const n=d(t());if(n){const{threadId:t,channel:r}=n;e(Object(o.a)({threadId:t,channel:r}))}else e(Object(c.loadStagedThread)())}}},fZy4:function(e,t,n){"use strict";n.r(t);n.d(t,"publishTypicalResponseTimeMessage",(function(){return b}));var r=n("Mx3c"),i=n("MfaD"),a=n("uXUH"),s=n("nS6h"),o=n("y5/z"),c=n("BvOu"),u=n("v0wH"),l=n("rf4d"),d=n("wihT"),p=n("jvpr"),f=n("Wt04"),h=n("Hjp8");const b=({channel:e,threadId:t})=>(n,b)=>{const g=r.SYSTEM,m=new i.a({id:Object(c.generateUuid)(),text:Object(a.a)(b()),sender:{"@type":g},status:{messageStatus:u.b},genericChannelId:l.d,channelInstanceId:Object(p.getChannelInstanceId)(b()),senders:Object(d.a)(),recipients:Object(h.a)({value:Object(f.getMessagesUtk)()})});n(Object(s.publishMessageToConversation)({channel:e,message:m,threadId:t}));n(Object(o.trackInteraction)("widget-interaction",{action:"view reply time"}))}},ffqu:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="STAGE_MESSAGE_ON_STUBBED_THREAD",i="RESET_STUBBED_THREAD"},fjpq:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("VVfI");const i=Object(r.a)("FETCH_AGENT_RESPONDER")},fogE:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("BDi3");const i=({isVisibleToUser:e=!1,ignoreStatusCodes:t=[0],ignore:n=!1,error:i}={})=>{i&&t.some(e=>e===i.status)&&(n=!0);return Object(r.a)({silent:!0,isVisibleToUser:e,ignore:n})}},fwMr:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Blk5"),a=n("BvOu"),s=n("c1C1");class o extends(Object(r.Record)({"@type":i.a,id:null,timestamp:null},"TicketCreationFailureMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(a.generateUuid)(),timestamp:e.timestamp||Object(s.generateUniqueClientTimestamp)("ticketCreationFailure-timestamp")})).filterNot(e=>void 0===e))}}t.a=o},"g/i1":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("dLEV"),i=n("ZqFO"),a=n("49A5");const s=Object(r.createSelector)(a.getLatestWidgetData,i.b)},g4ag:function(e,t,n){"use strict";var r=n("TBI5"),i=n("qjq5");t.a=Object(i.a)(r.a)},gBd5:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("Wt04"),i=n("py2G");const{bender:a}=n("gGhY");function s(e,t,n){n.query=Object.assign({[a.project]:a.depVersions[a.project],traceId:Object(r.getMessagesUtk)()},n.query);return new Promise((r,a)=>{e(t,Object.assign({},n)).then(Object(i.a)(r)).catch(a)})}},gD8A:function(e,t,n){"use strict";n.r(t);n.d(t,"updateVisitorContext",(function(){return i}));var r=n("VYoM");function i({currentUrl:e,sessionId:t,threadId:n}){return r.a.put(`livechat-public/v1/thread/visitor/${n}/currentUrl`,{query:{sessionId:t,threadId:n},data:{currentUrl:e}})}},gGDi:function(e,t,n){"use strict";var r=n("MJM1");const i=["clientType"],a=["id"],s=["richText"],o=["sender"],c=["status"],u=["text"],l=["timestamp"];n.d(t,"a",(function(){return d}));n.d(t,"b",(function(){return p}));Object(r.a)(i),Object(r.a)(a);const d=Object(r.a)(s),p=(Object(r.a)(o),Object(r.a)(c),Object(r.a)(u));Object(r.a)(l)},gGhY:function(e,t){e.exports={mode:"compressed",staticDomainPrefix:"//static.hsappstatic.net",bender:{depVersions:{"conversations-visitor-ui":"static-1.19103",ably:"static-2.2","ably-hubspot-js":"static-2.227",atom:"static-1.1142",autolinker:"static-3.11","browserslist-config-hubspot":"static-1.102","conversations-async-data":"static-2.3214","conversations-error-reporting":"static-1.4519","conversations-http":"static-1.447","conversations-infrastructure":"static-1.4581","conversations-internal-pub-sub":"static-1.10611","conversations-internal-schema":"static-1.8365","conversations-message-history":"static-1.6438","conversations-prop-types":"static-1.3198","conversations-skeleton-state":"static-1.3060","conversations-test-sdk":"static-1.6153","conversations-visibility-tools":"static-1.1455","conversations-visitor-experience-components":"static-1.12461","conversations-visitor-message-history":"static-1.11194",csstype:"static-1.8",cssUtils:"static-1.293","emoji-regex":"static-1.7","flux-actions":"static-1.207","foundations-assets":"static-1.328","foundations-components":"static-1.571","foundations-theming":"static-1.95","hds-components":"static-1.1280","hds-tokens":"static-1.293","head-dlb":"static-1.809",HeadJS:"static-2.425","help-widget-components":"static-1.7219",history:"static-4.15","hs-lodash":"static-4.9","hs-promise-utils":"static-1.442","hs-story-utils":"static-1.3233","hs-test-utils":"static-1.2720","hub-http-janus":"static-1.476","hub-http-rxjs":"static-1.445","hubspot-dlb":"static-1.599","hubspotter-http":"static-1.784",HubStyle:"static-2.6552",HubStyleTokens:"static-2.6242",I18n:"static-7.1120","i18n-data":"static-1.160",icons:"static-2.566",immer:"static-1.33",jasmine:"static-4.122","jasmine-immutable":"static-1.260","jasmine-runner":"static-1.1267","moment-timezone":"static-5.17",msw:"static-1.39",PatternValidationJS:"static-1.437","permission-components":"static-1.1005",quartz:"static-1.1691","react-aria":"static-1.15","react-immutable-proptypes":"static-2.8","react-input-autosize":"static-2.17","react-rhumb":"static-1.10791","react-select-plus":"static-1.41","react-transition-group":"static-2.8","react-utils":"static-2.1408","react-virtualized":"static-2.26","redux-mock-store":"static-1.8","redux-thunk":"static-2.17","redux-toolkit":"static-1.7",reselect:"static-2.16",rxjs:"static-5.10",salesImages:"static-1.467",sanitize:"static-1.6","sanitize-text":"static-1.3882",sassPrefix:"static-1.98","signup-constants":"static-1.8900","signup-ui-lego-core":"static-1.10913","signup-ui-url-generator":"static-2.3582",StyleGuideUI:"static-3.389","testing-library":"static-1.82",transmute:"static-2.29","ui-addon-avatars":"static-2.5198","ui-fonts":"static-1.316","ui-images":"static-2.672",UIComponents:"static-3.3193",urlinator:"static-1.326","usage-tracker":"static-1.2484","usage-tracker-anonymous":"static-1.901","usage-tracker-core":"static-1.2334","usage-tracker-multi":"static-1.900","usage-tracker-public":"static-1.2295","viral-links-lib":"static-1.1525","visitor-ui-component-library":"static-1.1947","visitor-ui-component-library-icons":"static-1.1757","webpack-env":"static-1.4",classnames:"static-2.10",enviro:"static-4.218","hub-http":"static-1.1694",immutable:"static-2.19","metrics-js":"static-1.4092",PortalIdParser:"static-2.207",raven:"static-3.358",react:"static-7.96","react-dom":"static-7.62","react-redux":"static-7.16",redux:"static-4.16","styled-components":"static-2.27","hs-promise-rejection-tracking":"static-1.415","raven-hubspot":"static-1.665","hoist-non-react-statics":"static-3.9","hubspot-url-utils":"static-1.231",moment:"static-3.24"},depPathPrefixes:{"conversations-visitor-ui":"/conversations-visitor-ui/static-1.19103",ably:"/ably/static-2.2","ably-hubspot-js":"/ably-hubspot-js/static-2.227",atom:"/atom/static-1.1142",autolinker:"/autolinker/static-3.11","browserslist-config-hubspot":"/browserslist-config-hubspot/static-1.102","conversations-async-data":"/conversations-async-data/static-2.3214","conversations-error-reporting":"/conversations-error-reporting/static-1.4519","conversations-http":"/conversations-http/static-1.447","conversations-infrastructure":"/conversations-infrastructure/static-1.4581","conversations-internal-pub-sub":"/conversations-internal-pub-sub/static-1.10611","conversations-internal-schema":"/conversations-internal-schema/static-1.8365","conversations-message-history":"/conversations-message-history/static-1.6438","conversations-prop-types":"/conversations-prop-types/static-1.3198","conversations-skeleton-state":"/conversations-skeleton-state/static-1.3060","conversations-test-sdk":"/conversations-test-sdk/static-1.6153","conversations-visibility-tools":"/conversations-visibility-tools/static-1.1455","conversations-visitor-experience-components":"/conversations-visitor-experience-components/static-1.12461","conversations-visitor-message-history":"/conversations-visitor-message-history/static-1.11194",csstype:"/csstype/static-1.8",cssUtils:"/cssUtils/static-1.293","emoji-regex":"/emoji-regex/static-1.7","flux-actions":"/flux-actions/static-1.207","foundations-assets":"/foundations-assets/static-1.328","foundations-components":"/foundations-components/static-1.571","foundations-theming":"/foundations-theming/static-1.95","hds-components":"/hds-components/static-1.1280","hds-tokens":"/hds-tokens/static-1.293","head-dlb":"/head-dlb/static-1.809",HeadJS:"/HeadJS/static-2.425","help-widget-components":"/help-widget-components/static-1.7219",history:"/history/static-4.15","hs-lodash":"/hs-lodash/static-4.9","hs-promise-utils":"/hs-promise-utils/static-1.442","hs-story-utils":"/hs-story-utils/static-1.3233","hs-test-utils":"/hs-test-utils/static-1.2720","hub-http-janus":"/hub-http-janus/static-1.476","hub-http-rxjs":"/hub-http-rxjs/static-1.445","hubspot-dlb":"/hubspot-dlb/static-1.599","hubspotter-http":"/hubspotter-http/static-1.784",HubStyle:"/HubStyle/static-2.6552",HubStyleTokens:"/HubStyleTokens/static-2.6242",I18n:"/I18n/static-7.1120","i18n-data":"/i18n-data/static-1.160",icons:"/icons/static-2.566",immer:"/immer/static-1.33",jasmine:"/jasmine/static-4.122","jasmine-immutable":"/jasmine-immutable/static-1.260","jasmine-runner":"/jasmine-runner/static-1.1267","moment-timezone":"/moment-timezone/static-5.17",msw:"/msw/static-1.39",PatternValidationJS:"/PatternValidationJS/static-1.437","permission-components":"/permission-components/static-1.1005",quartz:"/quartz/static-1.1691","react-aria":"/react-aria/static-1.15","react-immutable-proptypes":"/react-immutable-proptypes/static-2.8","react-input-autosize":"/react-input-autosize/static-2.17","react-rhumb":"/react-rhumb/static-1.10791","react-select-plus":"/react-select-plus/static-1.41","react-transition-group":"/react-transition-group/static-2.8","react-utils":"/react-utils/static-2.1408","react-virtualized":"/react-virtualized/static-2.26","redux-mock-store":"/redux-mock-store/static-1.8","redux-thunk":"/redux-thunk/static-2.17","redux-toolkit":"/redux-toolkit/static-1.7",reselect:"/reselect/static-2.16",rxjs:"/rxjs/static-5.10",salesImages:"/salesImages/static-1.467",sanitize:"/sanitize/static-1.6","sanitize-text":"/sanitize-text/static-1.3882",sassPrefix:"/sassPrefix/static-1.98","signup-constants":"/signup-constants/static-1.8900","signup-ui-lego-core":"/signup-ui-lego-core/static-1.10913","signup-ui-url-generator":"/signup-ui-url-generator/static-2.3582",StyleGuideUI:"/StyleGuideUI/static-3.389","testing-library":"/testing-library/static-1.82",transmute:"/transmute/static-2.29","ui-addon-avatars":"/ui-addon-avatars/static-2.5198","ui-fonts":"/ui-fonts/static-1.316","ui-images":"/ui-images/static-2.672",UIComponents:"/UIComponents/static-3.3193",urlinator:"/urlinator/static-1.326","usage-tracker":"/usage-tracker/static-1.2484","usage-tracker-anonymous":"/usage-tracker-anonymous/static-1.901","usage-tracker-core":"/usage-tracker-core/static-1.2334","usage-tracker-multi":"/usage-tracker-multi/static-1.900","usage-tracker-public":"/usage-tracker-public/static-1.2295","viral-links-lib":"/viral-links-lib/static-1.1525","visitor-ui-component-library":"/visitor-ui-component-library/static-1.1947","visitor-ui-component-library-icons":"/visitor-ui-component-library-icons/static-1.1757","webpack-env":"/webpack-env/static-1.4",classnames:"/classnames/static-2.10",enviro:"/enviro/static-4.218","hub-http":"/hub-http/static-1.1694",immutable:"/immutable/static-2.19","metrics-js":"/metrics-js/static-1.4092",PortalIdParser:"/PortalIdParser/static-2.207",raven:"/raven/static-3.358",react:"/react/static-7.96","react-dom":"/react-dom/static-7.62","react-redux":"/react-redux/static-7.16",redux:"/redux/static-4.16","styled-components":"/styled-components/static-2.27","hs-promise-rejection-tracking":"/hs-promise-rejection-tracking/static-1.415","raven-hubspot":"/raven-hubspot/static-1.665","hoist-non-react-statics":"/hoist-non-react-statics/static-3.9","hubspot-url-utils":"/hubspot-url-utils/static-1.231",moment:"/moment/static-3.24"},project:"conversations-visitor-ui",staticDomain:"//static.hsappstatic.net",staticDomainPrefix:"//static.hsappstatic.net"}}},gIOm:function(e,t,n){"use strict";var r=n("PpSk"),i=n("eg5p"),a=n("xZ3y"),s=n("DPiE"),o=n("21jQ"),c=n("MEud"),u=n("JW3w"),l=n("6Y5w"),d=n("0IK8"),p=n("nf9S"),f=n("0PDK"),h=n("c2PF"),b=n("Qvwz");const g=({store:e,conversation:t,messageTimestamp:n})=>{e.dispatch(Object(s.markLastMessageReadByVisitor)({conversation:t,messageTimestamp:n}))},m=e=>t=>n=>{const s=e.getState(),m=Object(f.getSelectedThreadId)(s),O=Object(o.getIsOpen)(s);if(n.type===b.b){const{threadId:t}=n.payload,a=Object(h.getThreadByThreadId)(s,{threadId:t}),o=Object(r.getChannelName)(a);if(t&&a){const n=Object(f.getSelectedThreadId)(s);if(n!==i.a&&t!==i.a&&n!==t&&O){g({store:e,conversation:a});e.dispatch(Object(c.clearUnseenCountForChannel)({channel:o,threadId:t}))}}}if(n.type===a.RECEIVED_INCOMING_MESSAGE){const t=e.getState(),{channel:r,message:i,threadId:a}=n.payload;if(r&&Object(p.isConversationalMessage)(i)&&!Object(l.sentByVisitorClient)(i)&&Object(u.isActiveOnThread)(t,a)){const t=Object(h.getThreadByThreadId)(s,{threadId:a}),n=Object(d.getTimestamp)(i);g({store:e,conversation:t,messageTimestamp:n});e.dispatch(Object(c.clearUnseenCountForChannel)({threadId:a}))}}const v=Object(h.getThreadByThreadId)(s,{threadId:m});if(n.type===a.APP_IN_FOREGROUND&&O&&v){g({store:e,conversation:v});e.dispatch(Object(c.clearUnseenCountForChannel)({threadId:m}))}if(n.type===a.TOGGLE_OPEN){const{isOpened:t}=n.payload||{};if(t&&v){g({store:e,conversation:v});e.dispatch(Object(c.clearUnseenCountForChannel)({threadId:m}))}}return t(n)};t.a=m},gIaP:function(e,t,n){"use strict";n.r(t);n.d(t,"buildResolvedAttachmentsMapFromResponse",(function(){return s}));var r=n("6xui"),i=n("QYOI"),a=n("XkPn");const s=e=>Object(r.a)(Object(i.Map)(),(e,t={},n)=>{const r=parseInt(n,10),i=new a.a(Object.assign({},t,{fileId:r}));return e.set(r,i)},e)},gJOx:function(e,t,n){"use strict";n.r(t);n.d(t,"default",(function(){return i}));n.d(t,"getAvailabilityMessageTimeouts",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("availabilityMessageTimeouts")},gjm2:function(e,t,n){"use strict";var r=n("QYOI"),i=n("3Yas");i.j.implement(Array,(e,t,n)=>n.reduce(t,e));i.j.implement(Object,(e,t,n)=>{const r=Object.keys(n),i=r.length;let a=e;for(let e=0;en.reduce(t,e));t.a=i.j},gkBl:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("DdHT"),i=n("Hnia"),a=n("021p");const s=e=>{Object(i.threadHistoryInvariant)(e);return Object(r.a)(a.d,e=>e&&e.toList())(e)}},goDm:function(e,t,n){"use strict";n.r(t);n.d(t,"stageMessageOnStubbedThread",(function(){return a}));var r=n("dLEV"),i=n("ffqu");const a=Object(r.createAction)(i.b,e=>({payload:{message:e}}))},goEE:function(e,t,n){"use strict";n.r(t);n.d(t,"getSortedMessagesByThreadId",(function(){return s}));var r=n("PpSk"),i=n("0IK8"),a=n("wL7V");const s=(e,t)=>e.filter(e=>Object(r.getThreadId)(e)===t).sort((e,t)=>{const n=Object(a.a)(e),r=Object(a.a)(t);return Object(i.getTimestamp)(n)-Object(i.getTimestamp)(r)})},gwVP:function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},h027:function(e,t,n){"use strict";var r=n("qjq5");function i(e,t,n){return!(!e(n)||!t(n))}var a=Object(r.a)(i),s=n("V+nC"),o=n("/OK6"),c=n("mE3N"),u=n("kWFB"),l=n("iPDb");n.d(t,"a",(function(){return d}));const d=e=>{if(!e||!Object(u.hasMessages)(e))return!1;const t=Object(l.a)(e).findLast(a(e=>!Object(s.a)(e),o.isFromAgent));return!(!t||!Object(c.a)(t))}},hSXG:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("QYOI"),i=n("Gc2C"),a=n("2Zef"),s=n("cPs9");const o=Object.keys(a).map(e=>a[e]),c=({senderType:e,senderId:t})=>{Object(i.a)(o.includes(e),`Invalid sender type. Should be one of ${o.join(" | ")}. Received %s`,e);const n=Object(s.a)(e);return null===n?Object(r.Map)({"@type":e}):Object(r.Map)({"@type":e,[n]:t})}},hTKa:function(e,t,n){"use strict";var r=n("dLEV"),i=n("QYOI"),a=n("ZqFO");const s=3,o=e=>{const t=Object(a.g)(e);return t&&t.size>0?t.take(s):Object(i.List)()};var c=n("49A5");n.d(t,"a",(function(){return u}));const u=Object(r.createSelector)([c.getLatestWidgetData],o)},hbcS:function(e,t,n){"use strict";var r=n("OwpT"),i=n.n(r);const a=function(e){let t,n=!1;return function(...r){if(!n){t=e.apply(this,r);n=!0}return t}};t.a={get:a(()=>new i.a({stripPrefix:!1})),getTwitter:a(()=>new i.a({hashtag:"twitter",mention:"twitter",stripPrefix:!1}))}},hixb:function(e,t,n){"use strict";var r=n("QYOI"),i=n("VfuR"),a=n.n(i),s=n("Ktcs"),o=n("fKJZ"),c=n("X5NR"),u=n("npjq"),l=n("sl/w"),d=n("9f1P"),p=n.n(d),f=n("+KD7"),h=n("P7jJ"),b=n("54uz"),g=n("/mXs"),m=n("tUSi"),O=n("QgEn");const v=p.a.div.withConfig({displayName:"ThreadListHeader__HeaderWrapper",componentId:"sc-1b4lgyq-0"})(["align-items:center;display:flex;justify-content:space-between;width:100%;"]);class j extends s.PureComponent{render(){const{createNewThread:e,customHeaderText:t,showCreateThreadButton:n,textColor:r}=this.props;return Object(O.jsxs)(v,{children:[Object(O.jsx)("h4",{"aria-level":"1",style:{textAlign:"center",color:r},className:"m-bottom-0",id:m.b,"data-test-id":m.b,children:t||Object(O.jsx)(l.a,{message:"conversations-visitor-experience-components.visitorWidget.header.threadListTitle"})}),n?Object(O.jsx)(g.a,{onClick:e,"aria-label":u.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.createNewThread"),"data-test-id":"new-thread-button",use:"transparent-on-primary",className:"selenium-test-marker-new-thread-button",children:Object(O.jsx)(h.a,{icon:Object(O.jsx)(b.a,{})})}):null]})}}j.propTypes={createNewThread:a.a.func.isRequired,customHeaderText:a.a.node,showCreateThreadButton:a.a.bool.isRequired,textColor:a.a.string.isRequired};j.defaultProps={mobile:!1,textColor:f.r,customHeaderText:void 0};j.displayName="ThreadListHeader";var y=j,E=n("V/xu"),T=n("Avso"),I=n("0Me1"),w=n("t6nY"),S=n.n(w),A=n("mKxs"),C=n("LJpC"),x=n("HCGK");const R=Object(C.a)(x.b);var k=n("L82M"),P=n("F3hY"),D=n("GdKg");class _ extends s.Component{renderAvatar(){const{avatar:e,size:t,responder:n,showStatus:r,style:i}=this.props,a={borderRadius:"50%"};let s="";if(r&&n){s=R(n)?k.a:k.b}const o=u.a.text("conversations-visitor-experience-components.default.agent"),c=u.a.text(s===k.b?"conversations-visitor-experience-components.default.avatarAvailable":s===k.a?"conversations-visitor-experience-components.default.avatarAway":"conversations-visitor-experience-components.default.avatar",{identifier:Object(T.getFriendlyOrFormalName)(n)||o}),l=Object(O.jsx)(D.a,{style:i,src:e,className:"chat-head-avatar",size:t,contentStyle:a,alt:c});return s?Object(O.jsx)(P.a,{status:s,size:t,children:l}):l}render(){const{onClick:e,className:t,disabled:n}=this.props,r=S()("chat-head",t,n&&"chat-head-disabled");return Object(O.jsx)("div",{className:r,onClick:e,children:this.renderAvatar()})}}_.propTypes={avatar:a.a.string,className:a.a.string,disabled:a.a.bool,onClick:a.a.func,responder:Object(A.a)("Responder"),showStatus:a.a.bool.isRequired,size:a.a.string.isRequired,style:a.a.object};_.defaultProps={avatar:null,away:!1,disabled:!1,online:!1,showStatus:!1,isVisitorWidget:!1,size:"md"};_.displayName="ChatHead";var M=_;const N=2,L=(e=f.r)=>({padding:N+"px",background:""+e,borderRadius:"50%",zIndex:0}),B=e=>{switch(e){case"sm":return-10;case"xs":return-15;default:return-10}},F=(e,t,n)=>Object.assign({},L(e),{zIndex:t,marginLeft:B(n)}),H=p.a.div.withConfig({displayName:"ChatHeadGroup__ChatHeadGroupWrapper",componentId:"sc-1ndqnyy-0"})(["display:flex;flex:0 0 ","px;height:","px;justify-content:center;"],({size:e})=>e,({size:e})=>E.a[e]+2*N);function U(e,t,n){return e>=1?F(t,e,n):L(t)}function V({showStatusIndicator:e,responders:t,borderColor:n,size:r}){const i=t.map((t,i)=>{const a=Object(T.getAvatar)(t),s=Object(I.a)(t),o=Object(T.getIsBot)(t),c=Object(T.getUserId)(t),u=U(i,n,r),l="chat-head"+(i>=1?" chat-group-head-right":"");return Object(O.jsx)(M,{avatar:a,className:l,isBot:o,isVisitorWidget:!0,online:s,responder:t,showStatus:e,size:r,style:u},"chat-head."+c)});return Object(O.jsx)(H,{size:r,children:i})}V.propTypes={borderColor:a.a.string.isRequired,responders:a.a.instanceOf(r.List).isRequired,showStatusIndicator:a.a.bool.isRequired,size:a.a.string.isRequired};V.defaultProps={showStatusIndicator:!1,size:"sm"};V.displayName="ChatHeadGroup";var G=V,W=n("VADA");const z=2,q=p.a.div.withConfig({displayName:"CustomChatHeading__CustomUIAvatarWrapper",componentId:"pwpqh3-0"})(["display:flex;flex:0 0 ","px;height:","px;justify-content:center;"],({size:e})=>e,({size:e})=>E.a[e]+2*z);class K extends s.Component{render(){const{borderColor:e,chatHeadingConfig:t,size:n}=this.props,r={padding:"2px",background:""+e,borderRadius:"50%"},i={borderRadius:"50%"},a=Object(W.a)(t),s=u.a.text("conversations-visitor-experience-components.default.agent"),o=u.a.text("conversations-visitor-experience-components.default.avatar",{identifier:t.get("customChatName")||s});return t?Object(O.jsx)(q,{children:Object(O.jsx)(D.a,{className:"chat-head-avatar",size:n,src:a,style:r,contentStyle:i,alt:o})}):null}}K.propTypes={borderColor:a.a.string.isRequired,chatHeadingConfig:a.a.oneOfType([Object(A.a)("CompanyChatHeadingConfig"),Object(A.a)("OwnerChatHeadingConfig"),Object(A.a)("UsersAndTeamsChatHeadingConfig")]),size:a.a.string.isRequired};K.defaultProps={size:"sm"};K.displayName="CustomChatHeading";var Y=K;class J extends s.PureComponent{render(){const{chatHeadingConfig:e,chatHeadingResponders:t,mobile:n,showStatusIndicator:r,borderColor:i,size:a}=this.props,s=t.size?G:Y;return Object(O.jsx)(s,{chatHeadingConfig:e,mobile:n,responders:t,showStatusIndicator:r,borderColor:i,size:a})}}J.propTypes={borderColor:a.a.string.isRequired,chatHeadingConfig:o.a.isRequired,chatHeadingResponders:a.a.instanceOf(r.List).isRequired,mobile:a.a.bool.isRequired,showStatusIndicator:a.a.bool.isRequired,size:a.a.string.isRequired};J.defaultProps={mobile:!1,showStatusIndicator:!1,size:"sm"};J.displayName="ChatHeadingAvatars";var Q=J,Z=n("pHbL");const X=(e,t)=>e.map(e=>Object(T.getFriendlyOrFormalName)(e,t)||Object(T.getEmail)(e)).join(", "),$=(e,t,n)=>X(t,n)||Object(Z.a)(e);var ee=n("7719");const te=2,ne=p.a.div.withConfig({displayName:"WidgetHeaderAvatarWrapper__Wrapper",componentId:"sc-1g07ekk-0"})(["display:inline-flex;align-items:center;flex:1 1 auto;height:","px;min-width:0;"],E.a[ee.f]+2*te),re=p.a.div.withConfig({displayName:"WidgetHeaderAvatarWrapper__HeaderTextWrapper",componentId:"sc-1g07ekk-1"})(["display:flex;flex-direction:column;height:100%;width:100%;justify-content:center;min-width:0;"]),ie=p.a.h5.withConfig({displayName:"WidgetHeaderAvatarWrapper__HeaderName",componentId:"sc-1g07ekk-2"})(["line-height:20px;margin-bottom:0;font-size:",";"],e=>e.titleText&&e.titleText.length>20?"14px":null),ae=p.a.div.withConfig({displayName:"WidgetHeaderAvatarWrapper__MutedMessage",componentId:"sc-1g07ekk-3"})(["font-size:11px;line-height:initial;"]),se=p.a.div.withConfig({displayName:"WidgetHeaderAvatarWrapper__TruncateString",componentId:"sc-1g07ekk-4"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);class oe extends s.PureComponent{render(){const{availabilityMessage:e,chatHeadingConfig:t,chatHeadingResponders:n,locale:r,mobile:i,showAvailabilityMessage:a,showStatusIndicator:s,borderColor:o}=this.props,c=$(t,n,r)||u.a.text("conversations-visitor-experience-components.default.agent"),l=n.some(e=>e.get("isResponderAI"));return Object(O.jsxs)(ne,{children:[Object(O.jsx)("div",{"data-test-id":"chat-heading-avatar",children:Object(O.jsx)(Q,{chatHeadingConfig:t,chatHeadingResponders:n,mobile:i,showStatusIndicator:s,borderColor:o})}),Object(O.jsxs)(re,{className:"p-x-3",children:[Object(O.jsx)(ie,{titleText:c,"aria-level":"1",children:Object(O.jsx)(se,{children:Object(O.jsx)("span",{"data-test-id":"widget-header-name",className:"widget-header-name p-y-0",id:m.b,children:c})})}),a&&!l&&Object(O.jsx)(ae,{"data-test-type":"timestamp",id:m.a,children:e}),l&&Object(O.jsx)(ae,{"data-test-id":"is-responder-ai-msg",children:u.a.text("conversations-visitor-experience-components.isResponderAI")})]})]})}}oe.propTypes={availabilityMessage:a.a.string,borderColor:a.a.string.isRequired,chatHeadingConfig:o.a.isRequired,chatHeadingResponders:a.a.instanceOf(r.List).isRequired,locale:a.a.string,mobile:a.a.bool.isRequired,showAvailabilityMessage:a.a.bool.isRequired,showStatusIndicator:a.a.bool.isRequired};oe.defaultProps={mobile:!1,showStatusIndicator:!1};oe.displayName="WidgetHeaderAvatarWrapper";var ce=oe;class ue extends s.Component{render(){const{textColor:e}=this.props.coloring,{availabilityMessage:t,chatHeadingConfig:n,chatHeadingResponders:r,createNewThread:i,customHeaderText:a,mobile:o,showAvailabilityMessage:u,showCreateThreadButton:l,showStatusIndicator:d,showThreadListHeader:p}=this.props;return Object(O.jsx)(s.Fragment,{children:p?Object(O.jsx)(y,{createNewThread:i,customHeaderText:a,textColor:e,mobile:o,showCreateThreadButton:l}):Object(O.jsx)(c.a,{children:i=>Object(O.jsx)(ce,{availabilityMessage:t,borderColor:e,chatHeadingConfig:n,chatHeadingResponders:r,locale:i,mobile:o,showAvailabilityMessage:u,showStatusIndicator:d})})})}}ue.displayName="WidgetHeaderContent";ue.propTypes={availabilityMessage:a.a.string,chatHeadingConfig:o.a.isRequired,chatHeadingResponders:a.a.instanceOf(r.List).isRequired,coloring:a.a.object.isRequired,createNewThread:a.a.func.isRequired,customHeaderText:a.a.string,mobile:a.a.bool,showAvailabilityMessage:a.a.bool.isRequired,showCreateThreadButton:a.a.bool.isRequired,showStatusIndicator:a.a.bool.isRequired,showThreadListHeader:a.a.bool.isRequired};var le=ue,de=n("8Nq+");const pe=e=>Object(O.jsxs)("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{children:[Object(O.jsx)("defs",{children:Object(O.jsx)("path",{d:"M18.534.414c-.6-.57-1.55-.55-2.122.052l-10.005 10.5c-.019.02-.029.045-.043.068-.033.051-.063.103-.097.154-.055.083-.12.161-.158.251-.036.09-.044.187-.062.281-.018.094-.047.185-.047.28 0 .095.029.186.047.28.018.094.026.191.062.281.037.09.103.168.158.251.034.051.064.103.097.154.014.023.024.048.043.068l10.005 10.5c.295.31.69.466 1.087.466.372 0 .744-.138 1.035-.414.6-.571.624-1.521.052-2.12L9.566 12l9.02-9.466c.572-.599.548-1.549-.052-2.12",id:"left__a"})}),Object(O.jsx)("use",{xlinkHref:"#left__a",fillRule:"evenodd"})]}));pe.displayName="SVGLeft";var fe=pe;class he extends s.Component{render(){const{navigateToThreadList:e,unseenThreadsCountExcludingCurrentThread:t,disabled:n}=this.props,r=Boolean(t);return Object(O.jsx)(de.a,{className:"m-right-1",badgeLabel:t,showBadge:r,badgeDescription:u.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.badgeDescription"),children:Object(O.jsx)(g.a,{use:"transparent-on-primary",onClick:e,className:"selenium-test-marker-show-threads-button","data-test-id":"show-threads-button","aria-label":u.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.showThreadList",{unreadThreadCount:t}),disabled:n,children:Object(O.jsx)(h.a,{icon:Object(O.jsx)(fe,{}),size:"md"})})})}}he.propTypes={disabled:a.a.bool,navigateToThreadList:a.a.func.isRequired,unseenThreadsCountExcludingCurrentThread:a.a.number.isRequired};he.displayName="WidgetHeaderBackButton";var be=he,ge=n("JxxT"),me=n("vSPC");const Oe=p.a.div.withConfig({displayName:"WidgetHeaderStyleWrapper__FullHeightDiv",componentId:"vcyigz-0"})(["align-items:center;color:",";display:flex;height:100%;padding:16px 16px;"],({textColor:e})=>e),ve=p.a.nav.withConfig({displayName:"WidgetHeaderStyleWrapper__BackgroundPanelContent",componentId:"vcyigz-1"})(["height:","px;border-radius:",";"],ge.b,({mobile:e,inline:t})=>e||t?"0":"8px 8px 0 0");class je extends s.Component{render(){const{inline:e,mobile:t,coloring:{accentColor:n,textColor:r}}=this.props;return Object(O.jsx)(ve,{className:"widget-background-panel",style:Object(me.b)(n),role:"banner","aria-labelledby":m.b,"aria-describedby":m.a,mobile:t,inline:e,"data-test-id":"widget-background-panel",children:Object(O.jsx)(Oe,{textColor:r,"data-test-id":"widget-background-panel-div",children:this.props.children})})}}je.displayName="WidgetHeaderStyleWrapper";je.propTypes={children:a.a.node,coloring:a.a.object.isRequired,inline:a.a.bool.isRequired,mobile:a.a.bool};var ye=je,Ee=n("6pce"),Te=n("0fuM"),Ie=n("3MJX"),we=n("57op"),Se=n("iKGd"),Ae=n("ET5w");const Ce=p.a.div.withConfig({displayName:"WidgetHeader__Spacer",componentId:"sc-1asikkd-0"})(["flex-grow:1;"]);class xe extends s.Component{constructor(e){super(e);this.state={showAvailabilityMessage:!1}}getAvailabilityMessage(){return this.props.preview?this.props.previewResponseTimeText:this.props.typicalResponseTimeMessage||this.props.officeHoursMessage}getShowAvailabilityMessage(){const{showAvailabilityMessage:e,typicalResponseTimeMessage:t,officeHoursMessage:n,preview:r,previewResponseTimeText:i}=this.props;return!(!e||!t&&!n)||Boolean(r&&!!i)}render(){const{isThreadAssigned:e,chatHeadingConfig:t,chatHeadingResponders:n,customHeaderText:r,coloring:i,mobile:a,inline:s,onClose:o,showBackButton:c,view:u,backButtonDisabled:l}=this.props,{accentColor:p,useDefaultColor:f}=i,b=[Object(we.t)(p)];f&&b.push(Object(we.v)(Se.j));return Object(O.jsx)(d.ThemeProvider,{theme:Object(Ae.a)(...b),children:Object(O.jsxs)(ye,{mobile:a,coloring:i,inline:s,children:[c&&Object(O.jsx)(be,{navigateToThreadList:this.props.navigateToThreadList,unseenThreadsCountExcludingCurrentThread:this.props.unseenThreadsCountExcludingCurrentThread,disabled:l}),Object(O.jsx)(le,{availabilityMessage:this.getAvailabilityMessage(),chatHeadingConfig:t,createNewThread:this.props.createNewThread,coloring:i,customHeaderText:r,showStatusIndicator:e,mobile:a,chatHeadingResponders:n,showAvailabilityMessage:this.getShowAvailabilityMessage(),showCreateThreadButton:u===Te.b,showThreadListHeader:u===Te.b||u===Te.a}),Object(O.jsx)(Ce,{}),a&&!s&&Object(O.jsx)(g.a,{"data-test-id":"mobile-close-button",onClick:o,className:"m-left-2",use:"transparent-on-primary",children:Object(O.jsx)(h.a,{icon:Object(O.jsx)(Ie.a,{})})})]})})}}xe.propTypes={backButtonDisabled:a.a.bool,chatHeadingConfig:o.a.isRequired,chatHeadingResponders:a.a.instanceOf(r.List).isRequired,coloring:a.a.object.isRequired,createNewThread:a.a.func.isRequired,customHeaderText:a.a.string,inline:a.a.bool.isRequired,isThreadAssigned:a.a.bool,mobile:a.a.bool,navigateToThreadList:a.a.func,officeHoursMessage:a.a.string,onClose:a.a.func,preview:a.a.bool,previewResponseTimeText:a.a.string,showAvailabilityMessage:a.a.bool,showBackButton:a.a.bool,typicalResponseTimeMessage:a.a.string,unseenThreadsCountExcludingCurrentThread:a.a.number,view:Ee.a};xe.defaultProps={createNewThread:()=>{},inline:!1,isThreadAssigned:!1,onClose:()=>{},navigateToThreadList:()=>{},showBackButton:!1,showAvailabilityMessage:!1,unseenThreadsCountExcludingCurrentThread:0,view:Te.c};xe.displayName="WidgetHeader";t.a=xe},hj2G:function(e,t,n){"use strict";n.r(t);n.d(t,"gdprCookieConsentPrompt",(function(){return s}));var r=n("DdHT"),i=n("ZqFO"),a=n("VvTX");const s=Object(r.a)(i.f,a.getGdprCookieConsentPrompt)},i6ES:function(e,t,n){"use strict";n.r(t);n.d(t,"isContactAssociationMessage",(function(){return a}));var r=n("0IK8"),i=n("LPbX");const a=e=>Object(r.getTopLevelType)(e)===i.a},i7jX:function(e,t,n){"use strict";var r=n("Lm/k"),i=n("Ktcs"),a=n("9f1P"),s=n.n(a),o=n("VfuR"),c=n.n(o),u=n("CR0J"),l=n("57op");const d=l.a,p=l.f,f=l.h;var h=n("rdz/"),b=n("QgEn");const g=["onChange","theme","children","checked","focus","hover"],m=({theme:e})=>Object(a.css)(["box-shadow:0 0 0 1px ",";"],Object(h.a)(f(e),40)),O=({checked:e,theme:t})=>Object(a.css)(["background-color:",";color:",";"],d(t),!e&&Object(h.a)(f(t),40)),v=s.a.div.withConfig({displayName:"VizExCheckbox__CheckboxBox",componentId:"sc-1ix5y49-0"})(["flex-shrink:0;height:16px;width:16px;transition:color 0.15s ease-out,background-color 0.15s ease-out;color:",";border-color:currentColor;border:2px solid;border-radius:3px;position:relative;",";",";"],({checked:e,theme:t})=>e?f(t):p(t),({hover:e,theme:t,checked:n})=>e&&O({theme:t,checked:n}),({focus:e,theme:t})=>e&&m({theme:t})),j=s.a.label.withConfig({displayName:"VizExCheckbox__CheckboxWrapper",componentId:"sc-1ix5y49-1"})(["position:relative;display:inline-flex;flex-direction:row;align-items:center;font-size:16px;cursor:pointer;:hover ","{","}input:focus + ","{","}"],v,O,v,m),y=s.a.input.withConfig({displayName:"VizExCheckbox__CheckboxInput",componentId:"sc-1ix5y49-2"})(["position:absolute;top:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;"]),E=s.a.svg.withConfig({displayName:"VizExCheckbox__Indicator",componentId:"sc-1ix5y49-3"})(["height:100%;width:100%;top:0;left:0;position:absolute;pointer-events:none;"]),T=s.a.div.withConfig({displayName:"VizExCheckbox__ContentWrapper",componentId:"sc-1ix5y49-4"})(["padding-left:8px;user-select:none;cursor:pointer;"]),I=e=>{const{onChange:t,theme:n,children:a,checked:s,focus:o,hover:c}=e,u=Object(r.a)(e,g),l=Object(i.useRef)(null);return Object(b.jsxs)(j,Object.assign({},u,{onClick:()=>{l.current&&l.current.focus()},"data-test-id":"VizExCheckbox",checked:s,theme:n,children:[Object(b.jsx)(y,{ref:l,"data-test-id":"VizExCheckbox-input",type:"checkbox",onChange:t}),Object(b.jsx)(v,{theme:n,checked:s,focus:o,hover:c,children:s&&Object(b.jsx)(E,{viewBox:"0 0 15 15.343",children:Object(b.jsx)("path",{d:"M1.013 8.11c0-.223.078-.412.234-.568l1.14-1.14c.155-.155.345-.233.568-.233s.413.077.57.233l2.46 2.47 5.492-5.5c.156-.156.346-.234.568-.234.224 0 .413.077.57.233l1.138 1.14c.156.155.234.345.234.568 0 .224-.078.414-.234.57l-6.06 6.06-1.14 1.14c-.155.155-.345.233-.568.233s-.413-.078-.57-.234l-1.138-1.14-3.03-3.03c-.156-.156-.234-.346-.234-.57z",fill:"currentColor"})})}),a&&Object(b.jsx)(T,{children:a})]}))};I.displayName="VizExCheckbox";I.propTypes={checked:c.a.bool,children:c.a.node,focus:c.a.bool,hover:c.a.bool,onChange:c.a.func,theme:u.a};t.a=I},i9zZ:function(e,t,n){"use strict";n.r(t);var r=n("JGJA"),i=n("Mjoc"),a=n("5ZU4"),s=n("7CK0"),o=e=>Promise.all([Object(a.a)(e),Object(s.a)(e)]),c=n("xZpi"),u=n("LZPL"),l=n.n(u);n.d(t,"initializeI18n",(function(){return f}));function d(){var e;const t=(null===(e=window)||void 0===e||null===(e=e.navigator)||void 0===e||null===(e=e.languages)||void 0===e?void 0:e[0])||window.navigator.language;return(null==t?void 0:t.toLowerCase())||null}function p(){try{return!l.a.isProd()&&localStorage&&!localStorage.getItem("TRACK_I18N_FALLBACK_TRANSLATIONS")}catch(e){return!1}}const f=({data:e={}}={})=>{p()&&localStorage.setItem("TRACK_I18N_FALLBACK_TRANSLATIONS",!0);const t=Object(r.a)("language",e),n=t?{locale:t,langEnabled:!0}:{locale:d(),langEnabled:!0},a=Object(i.default)({manuallySetLocale:!0}),s=Promise.all([a.register(c.a),o(a)]);a.setLocale(n);return s}},iKGd:function(e,t,n){"use strict";n.d(t,"o",(function(){return r}));n.d(t,"m",(function(){return i}));n.d(t,"n",(function(){return a}));n.d(t,"h",(function(){return s}));n.d(t,"j",(function(){return o}));n.d(t,"a",(function(){return c}));n.d(t,"k",(function(){return u}));n.d(t,"l",(function(){return l}));n.d(t,"c",(function(){return d}));n.d(t,"g",(function(){return p}));n.d(t,"e",(function(){return f}));n.d(t,"d",(function(){return h}));n.d(t,"b",(function(){return b}));n.d(t,"f",(function(){return g}));n.d(t,"i",(function(){return m}));const r="#fff",i="#00bda5",a="#cbd6e2",s="#33475b",o="#33475b",c="#f2545b",u="#eaf0f6",l="#b0c1d4",d="#425b76",p="#7b98b6",f="#cbd6e2",h="#f5f8fa",b="#a2d28f",g="#fea58e",m="#ea90b1"},iPDb:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=n("021p").d},iRE0:function(e,t,n){"use strict";n.d(t,"c",(function(){return a}));n.d(t,"b",(function(){return s}));n.d(t,"a",(function(){return o}));var r=n("g4ag"),i=n("/He/");Object(r.a)(i.e),Object(r.a)(i.f),Object(r.a)(i.g);const a=Object(r.a)(i.k),s=Object(r.a)(i.j),o=Object(r.a)(i.h);Object(r.a)(i.l),Object(r.a)(i.i),Object(r.a)(i.a),Object(r.a)(i.c),Object(r.a)(i.d)},iapW:function(e,t,n){"use strict";var r=n("MJM1");const i=["fileIds"],a=["fileUsageTypes"];n.d(t,"a",(function(){return s}));n.d(t,"b",(function(){return o}));const s=Object(r.a)(i),o=Object(r.a)(a)},iatO:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("dLEV"),i=n("I6ms");const a=Object(r.createAction)(i.c,e=>({payload:{visible:e}}))},ik2A:function(e,t,n){"use strict";n.r(t);n.d(t,"getUserTimezone",(function(){return i}));const r=e=>e>=10?e:"0"+e,i=()=>{const e=(new Date).getTimezoneOffset(),t=Math.sign(e),n=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),a=`${r(n)}:${r(i)}`;return t>0?"-"+a:"+"+a}},ikhY:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="PARTIAL_MESSAGE"},ipOz:function(e,t,n){var r=n("c44P");function i(e){return r(2,e)}e.exports=i},"j+9m":function(e,t,n){"use strict";n.r(t);n.d(t,"hasClientTriggers",(function(){return o}));var r=n("tTno"),i=n("GHgd"),a=n("Or3K"),s=n("2BFa");const o=e=>Object(r.scrollTriggerEnabled)(e)||Object(i.timeOnPageTriggerEnabled)(e)||Object(a.exitIntentTriggerEnabled)(e)||Object(s.gdprCookieConsentOnExitIntentEnabled)(e)},jFtF:function(e,t,n){"use strict";n.r(t);n.d(t,"messageCookieHandler",(function(){return l}));var r=n("1+S/"),i=n("am7t"),a=n("bT+G"),s=n("Wt04"),o=n("GTwN"),c=n("3RDS"),u=n("c/Yf");const l=({currentState:e,widgetData:t})=>{const n=Object(i.getIsCookieStorageAllowed)(e,t),l=Object(o.getHasMessagesCookieBeenSaved)(e),d=Object(c.getGlobalCookieOptOut)(e)===u.OPT_OUT_YES;if(l&&d)try{localStorage.removeItem(r.a.HUBLYTICS_EVENTS_53);localStorage.removeItem(r.a.HMPL)}catch(e){console.warn("Unable to access localStorage")}else n&&Object(a.handleStoreMessagesCookie)(Object(s.getMessagesUtk)())}},jL37:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>"function"==typeof e},jbWx:function(e,t,n){"use strict";var r=n("QYOI"),i=n("ikhY"),a=n("8+iK"),s=n("9Mwj"),o=n("ubOH"),c=n("rA/t");class u extends(Object(r.Record)({"@type":i.a,attachments:Object(r.List)(),clientType:null,contentType:a.b,directReplyToMessageId:null,id:null,inReplyToId:null,messageDeletedStatus:s.a,richText:"",sender:Object(r.Map)(),status:Object(o.a)(),text:"",timestamp:null,channelInstanceId:null,genericChannelId:null,integrationId:null,recipients:Object(r.List)(),senders:Object(r.List)(),direction:"",hiddenBy:null,completedMessageId:null,completedMessageTimestamp:null,partialOrdinal:0},"PartialMessage")){constructor(e){super(e&&Object(c.a)(e))}}t.a=u},jngL:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("JGJA"),i=n("dLEV");const a=Object(r.a)("emailCapture"),s=Object(i.createSelector)(a,Object(r.a)("hasVisitorEmail"))},jvmB:function(e,t,n){"use strict";n.r(t);var r=n("Iqwl"),i=n("nS6h"),a=n("y9Cc"),s=n("jngL"),o=n("+2bk"),c=n("usEm"),u=n("mE3N"),l=n("kWFB"),d=n("iPDb");const p=e=>{if(!Object(l.hasMessages)(e))return!1;const t=Object(d.a)(e).findLast(c.isEmailCapturePromptMessage);return!(!t||!Object(u.a)(t))};var f=n("h027"),h=n("dML/");const b=e=>!Object(f.a)(e)&&!Object(o.a)(e)&&(!p(e)||Object(h.a)(e));var g=n("J4oD"),m=n("c2PF"),O=n("y5/z"),v=n("QeSX"),j=n("t4ZQ"),y=n("a3lm"),E=n("2Zef"),T=n("BvOu"),I=n("v0wH"),w=n("jvpr"),S=n("wihT"),A=n("OxGf"),C=n("rf4d"),x=n("Hjp8"),R=n("Wt04");n.d(t,"default",(function(){return k}));n.d(t,"publishEmailCapturePromptMessage",(function(){return k}));const k=({channel:e,threadId:t})=>(n,o)=>{const c=Object(m.getThreadByThreadId)(o(),{threadId:t}),u=Object(g.historyDataForThread)(o(),{thread:c}),l=Object(j.getAgentType)(Object(v.getAssignedResponderInWidget)(o()))===y.b;if(!b(u)||Object(s.a)(o())||l)return;const d=E.SYSTEM_SENDER,p=new r.a({id:Object(T.generateUuid)(),text:Object(a.getAskForEmailMessage)(o()),sender:{"@type":d},status:{messageStatus:I.b},channelInstanceId:Object(w.getChannelInstanceId)(o()),senders:Object(S.a)(),direction:A.b,genericChannelId:C.d,recipients:Object(x.a)({value:Object(R.getMessagesUtk)()})});n(Object(i.publishMessageToConversation)({channel:e,message:p,threadId:t}));n(Object(O.trackInteraction)("widget-interaction",{action:"view email capture"}))}},jvpr:function(e,t,n){"use strict";n.r(t);n.d(t,"getChannelInstanceId",(function(){return s}));var r=n("dLEV"),i=n("JGJA"),a=n("49A5");const s=Object(r.createSelector)([a.getLatestWidgetData],Object(i.a)("channelInstanceId"))},jxkM:function(e,t,n){"use strict";n.r(t);n.d(t,"toggleOpenAction",(function(){return u}));n.d(t,"toggleOpen",(function(){return l}));n.d(t,"clickedViralLink",(function(){return d}));var r=n("dLEV"),i=n("21jQ"),a=n("xZ3y"),s=n("y5/z"),o=n("zry8"),c=n("Tvz2");const u=Object(r.createAction)(a.TOGGLE_OPEN,({isOpened:e,isUser:t})=>({payload:{isOpened:e,isUser:t||!1}}));function l({isOpened:e,isUser:t}){return(n,r)=>{if(e!==Object(i.getIsOpen)(r())){const r=t?"user open widget":"system open widget";n(Object(s.trackInteraction)("widget-interaction",{action:e?r:"close widget"}));n(u({isOpened:e,isUser:t}));Object(o.handleOpenChange)(e,t);e||Object(c.a)()}}}const d=Object(r.createAction)(a.CLICK_VIRAL_LINK)},k09d:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("dLEV"),i=n("bco+"),a=n("0PDK"),s=n("eg5p"),o=n("Pkdb");const c=Object(r.createSelector)([i.getThreads,a.getSelectedThreadId,o.a],(e,t,n)=>t===s.a?n:e&&e.get(t)||null)},k3Ph:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("bT+G"),i=n("Wt04"),a=n("y5/z");function s(){return e=>{Object(r.handleStoreMessagesCookie)(Object(i.getMessagesUtk)());e(Object(a.trackInteraction)("widget-interaction",{action:"clicked consent to cookies button"}))}}},k8Ub:function(e,t,n){"use strict";var r=n("JGJA"),i=n("Zui/"),a=n("9F2+"),s=n("MJM1");const o=["allowMultiSelect"],c=["allowUserInput"],u=["quickReplies"],l=Object(s.a)(o),d=Object(s.a)(c),p=Object(s.a)(u);n.d(t,"a",(function(){return h}));n.d(t,"b",(function(){return b}));n.d(t,"c",(function(){return g}));n.d(t,"d",(function(){return m}));const f=e=>{const t=Object(a.a)(e);if(!t)return;return t.find(e=>Object(r.a)("@type",e)===i.i)},h=e=>f(e),b=e=>{const t=f(e);return l(t)},g=e=>{const t=f(e);return d(t)},m=e=>{const t=f(e);return p(t)}},kMhZ:function(e,t,n){"use strict";var r=n("Ut5p"),i=n("o3Zl"),a=n("xZ3y"),s=n("j+9m"),o=n("ZqFO"),c=n("JGJA");const u=Object(c.a)("popOpenWelcomeMessage"),l=Object(c.a)("popOpenWidget"),d=!0;t.a=Object(r.c)({[i.a](e,t){const{visible:n}=t.payload;return n},[a.GET_WIDGET_DATA_SUCCEEDED](e,{payload:t}){const n=Object(s.hasClientTriggers)(t),r=Object(o.f)(t),i=u(r);return!(!l(r)||!n)||(!i||!n)&&d}},d)},"kMm/":function(e,t,n){"use strict";var r=n("+KD7");const i={width:"auto",minHeight:36,borderColor:r.h,whitespace:"normal",lineHeight:"1rem",color:r.h},a=e=>Object.assign({},i,e);t.a=a},kNma:function(e,t,n){"use strict";var r=n("QYOI"),i=n("t+8h"),a=n("9Mwj"),s=n("ubOH");const o=Object(r.Record)({"@type":i.a,attachments:Object(r.List)(),clientType:null,id:null,messageDeletedStatus:a.a,richText:"",sender:Object(r.Map)(),status:Object(s.a)(),text:"",timestamp:null,threadId:null,channelInstanceId:null,genericChannelId:null,recipients:Object(r.List)(),senders:Object(r.List)(),direction:"",channelId:null,flowId:0,objectId:0,objectTypeId:""},"WorkflowGeneratedUserMessage");t.a=o},kP7l:function(e,t,n){"use strict";n.r(t);var r=n("MD34"),i=n("DrqF"),a=n("mc4r");const s=e=>"function"==typeof e,o=e=>"object"==typeof e&&!Array.isArray(e),c=e=>o(e)&&Object(a.a)(e.SUCCEEDED)&&Object(a.a)(e.STARTED)&&Object(a.a)(e.FAILED),u=({actionTypes:e,failureMetaActionCreator:t,successMetaActionCreator:n,toRecordFn:i})=>(a,s)=>o=>{const{STARTED:c,SUCCEEDED:u,FAILED:l}=e;o({type:c,payload:{requestArgs:s}});Object(r.a)(a,e=>{const t={requestArgs:s,data:i(e)};o({type:u,payload:t,meta:n(t)})},e=>{const n={requestArgs:s,error:e};o({type:l,payload:n,meta:t(n)})})},l=({actionTypes:e,requestFn:t,toRecordFn:n,failureMetaActionCreator:r=(()=>({})),successMetaActionCreator:a=(()=>({}))})=>{Object(i.a)(c(e),'createAsyncAction expected actionTypes to be an Object containing valid type strings for keys: "FAILED", "STARTED", and "SUCCEEDED". Got: '+e);Object(i.a)(s(t),`createAsyncAction Expected requestFn to be a Function. Got: "${t}"`);Object(i.a)(s(n),`createAsyncAction expected toRecordFn to be a Function. Got: "${n}"`);const l=u({actionTypes:e,failureMetaActionCreator:r,successMetaActionCreator:a,toRecordFn:n}),d=e=>{Object(i.a)(!e||o(e),"requestArgs must be an Object. Received "+typeof e);return l(t(e),e)};d.asyncActionDispatcher=l;return d};var d=n("BDi3");const p=({titleText:e,message:t,ignore:n=!1,ignoreStatusCodes:r=[],silenceErrorReportingCodes:i=[0],silenceErrorReporting:a=!1,error:s})=>{if(n||s&&r.some(e=>e===s.status))return Object(d.a)({ignore:!0});s&&i.some(e=>e===s.status)&&(a=!0);return Object(d.a)({titleText:e,message:t,silenceErrorReporting:a})};var f=n("wQJz"),h=n("nDpY"),b=n.n(h),g=n("VYoM");function m({senderId:e,agentType:t,sessionId:n,threadId:r}){const i=b.a.get();return g.a.get("livechat-public/v1/responder/"+e,{query:{agentType:t,portalId:i,sessionId:n,threadId:r}})}var O=n("fjpq");n.d(t,"fetchAgentResponder",(function(){return v}));const v=l({actionTypes:O.a,requestFn:m,toRecordFn:f.a,failureMetaActionCreator:p})},kTjR:function(e,t,n){"use strict";var r=n("QYOI"),i=n("9Mwj"),a=n("c1C1"),s=n("BvOu"),o=n("xrOf"),c=n("W26t");class u extends(Object(r.Record)({"@type":o.a,id:null,timestamp:null,sender:Object(r.Map)(),messageDeletedStatus:i.a,auditParams:Object(c.a)(),filteredChangeInfo:Object(r.Map)()},"FilteredChangeMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(s.generateUuid)(),auditParams:Object(c.a)(e.auditParams),timestamp:e.timestamp||Object(a.generateUniqueClientTimestamp)("FilteredChangeMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=u},kWFB:function(e,t,n){"use strict";n.r(t);n.d(t,"hasMessages",(function(){return s}));var r=n("DdHT"),i=n("Hnia"),a=n("021p");const s=e=>{Object(i.threadHistoryInvariant)(e);return Object(r.a)(a.d,e=>!!(e&&e.size>0))(e)}},kcmb:function(e,t,n){"use strict";n.r(t);n.d(t,"navigateToInitialView",(function(){return c}));var r=n("ePP0"),i=n("fT+s"),a=n("FAYk"),s=n("scwY"),o=n("OfAC");function c(){return(e,t)=>{const n=Object(a.getKnowledgeBaseEnabled)(t());Object(r.hasOpenThread)(t())?e(Object(i.navigateToMostRecentThread)()):e(n?Object(o.navigateToThreadListKnowledgebase)():Object(s.loadStagedThread)())}}},kdZJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="READ_THREAD"},keKC:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("iatO"),i=n("49A5"),a=n("2BFa"),s=n("7cfw"),o=n("Or3K"),c=n("jxkM"),u=n("R4L7"),l=n("Ug6J");const d=()=>(e,t)=>{Object(s.a)();const n=t(),d=Object(i.getLatestWidgetData)(n),p=Object(l.a)(n,o.exitIntentTriggerEnabled);Object(a.gdprCookieConsentOnExitIntentEnabled)(n,d)&&e(Object(r.a)(!0));p.hasClientTriggerAlreadyFired||(p.shouldToggleOpen?e(Object(c.toggleOpen)({isOpened:!0})):p.shouldToggleInitialMessageBubble&&e(Object(u.toggleInitialMessageBubble)(!0)))}},kevw:function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));n.d(t,"c",(function(){return s}));n.d(t,"d",(function(){return o}));n.d(t,"a",(function(){return c}));var r=n("MJM1"),i=n("3HLt");const a=Object(r.a)(i.b),s=Object(r.a)(i.c),o=(Object(r.a)(i.d),Object(r.a)(i.e)),c=(Object(r.a)(i.f),Object(r.a)(i.a));Object(r.a)(i.g)},kfJr:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="hubspot"},kg2E:function(e,t,n){"use strict";var r=n("QYOI"),i=n("4vna"),a=n("DmNG"),s=n("Hnb1");const o=new r.Record({displayOnScrollPercentage:new i.a,displayOnTimeDelay:new a.a,displayOnExitIntent:new s.a},"ClientTriggers");t.a=o},kkqp:function(e,t,n){var r;function a(){var e,t;t=arguments[0]||{};this.config={};this.config.elements=t.elements?t.elements:[];this.config.attributes=t.attributes?t.attributes:{};this.config.attributes[a.ALL]=this.config.attributes[a.ALL]?this.config.attributes[a.ALL]:[];this.config.allow_comments=!!t.allow_comments&&t.allow_comments;this.allowed_elements={};this.config.protocols=t.protocols?t.protocols:{};this.config.add_attributes=t.add_attributes?t.add_attributes:{};this.dom=t.dom?t.dom:document;for(e=0;e0;)this.current_element.removeChild(this.current_element.firstChild);i.appendChild(this.current_element)}if(!this.config.remove_all_contents&&!this.config.remove_element_contents[o])for(t=0;ts[e]||null;var c=n("TWJS");n.d(t,"a",(function(){return l}));const u=Object.keys(i),l=({senderType:e=null,senderId:t=null,senderField:n=null,deliveryIdentifier:i=null})=>{Object(r.a)(null===e||u.includes(e),`Invalid sender type. Should be one of ${u.join(" | ")}. Received %s`,e);const s=null===e?null:o(e);return Object(c.a)({actorId:s&&s!==a.c&&t?`${s}-${t}`:void 0,senderField:n,deliveryIdentifier:i})}},kyOS:function(e,t,n){"use strict";n.r(t);n.d(t,"getShouldHideWelcomeMessage",(function(){return s}));var r=n("dLEV"),i=n("MJM1"),a=n("QnHA");const s=Object(r.createSelector)([a.a],Object(i.a)(["hideWelcomeMessage"]))},l0Ga:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="EMAIL_CAPTURE_RESPONSE"},l7FR:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"d",(function(){return a}));n.d(t,"e",(function(){return s}));n.d(t,"f",(function(){return o}));n.d(t,"c",(function(){return c}));const r="A",i="B",a="I",s="S",o="V",c="E"},lEMs:function(e,t,n){"use strict";n.r(t);n.d(t,"getTypingTimeoutIdForAgentInThread",(function(){return i}));var r=n("MJM1");const i=({threadId:e,senderId:t,typingStates:n})=>Object(r.a)([e,t],n)},lEkO:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("dLEV"),i=n("bco+"),a=n("1EAY");const s=Object(r.createSelector)([i.getThreads],e=>{if(e)return e.toList().filter(e=>Object(a.isPersistedThread)(e)).sortBy(e=>-e.latestMessageTimestamp)})},lJFu:function(e,t,n){"use strict";n.r(t);var r=n("UxsU"),i=n("rf4d"),a=n("Xvzl"),s=n("DdHT"),o=n("nf9S"),c=n("Hnia"),u=n("021p");const l=e=>{Object(c.threadHistoryInvariant)(e);return Object(s.a)(u.d,Object(a.a)(o.isConversationalMessage),e=>e&&e.last())(e)};var d=n("nzmY"),p=n("0IK8");n.d(t,"buildCreatedThread",(function(){return f}));const f=({channelDetails:e,messagesPageUri:t,threadHistory:n,threadId:a})=>Object(d.a)({channelDetails:e,currentUrl:t,latestMessageTimestamp:Object(p.getTimestamp)(l(n)),originalGenericChannelId:i.d,status:r.a.STARTED,threadId:a})},lTIY:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("QJvi"),i=n("scKg");function a(e,t){Object(r.a)(e);Object(i.a)(t);switch(e){case 0:return function(){return t(...arguments)};case 1:return function(e){return t(...arguments)};case 2:return function(e,n){return t(...arguments)};case 3:return function(e,n,r){return t(...arguments)};case 4:return function(e,n,r,i){return t(...arguments)};case 5:return function(e,n,r,i,a){return t(...arguments)};case 6:return function(e,n,r,i,a,s){return t(...arguments)};case 7:return function(e,n,r,i,a,s,o){return t(...arguments)};case 8:return function(e,n,r,i,a,s,o,c){return t(...arguments)};case 9:return function(e,n,r,i,a,s,o,c,u){return t(...arguments)};default:return t}}},lkO4:function(e,t,n){"use strict";n.r(t);var r=n("npjq");function i({customResponseQuantity:e,customResponseUnit:t}){return r.a.text("conversations-internal-schema.typicalResponseTime.customResponses."+t,{count:e})}function a({standardResponse:e}){return r.a.text("conversations-internal-schema.typicalResponseTime.standardResponses."+e)}n.d(t,"makeTypicalResponseTimeText",(function(){return s}));function s({typicalResponseTime:e}={}){if(!e)return;const{usingCustomResponse:t,standardResponse:n,customResponseQuantity:r,customResponseUnit:s}=e;return t&&!r?"":t?i({customResponseQuantity:r,customResponseUnit:s}):a({standardResponse:n})}},ltgT:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n("Ktcs"),i=n("VfuR"),a=n.n(i),s=n("t6nY"),o=n.n(s),c=n("2Rsi"),u=n.n(c),l=n("F3hY"),d=n("L82M"),p=n("GdKg"),f=n("npjq"),h=n("QgEn");class b extends r.Component{constructor(...e){super(...e);this.renderAvatar=()=>{const{isBot:e,avatar:t,avatarAlt:n,avatarName:r,style:i,size:a,online:s,showStatus:o}=this.props;let c=t;null===t&&e&&(c=u.a);const b=f.a.text("conversations-visitor-experience-components.default.agent"),g={style:i,src:c,className:"chat-head-avatar",size:a,alt:void 0===n?f.a.text("conversations-visitor-experience-components.default.avatar",{identifier:r||b}):n};if(o){const e=s?d.b:d.a;g.alt=f.a.text(e===d.b?"conversations-visitor-experience-components.default.avatarAvailable":"conversations-visitor-experience-components.default.avatarAway",{identifier:r||b});return Object(h.jsx)(l.a,{status:e,size:a,children:Object(h.jsx)(p.a,Object.assign({},g))})}return Object(h.jsx)(p.a,Object.assign({},g))}}render(){const{onClick:e,className:t,disabled:n}=this.props,r=o()("chat-head",t,n&&"chat-head-disabled");return Object(h.jsx)("div",{className:r,onClick:e,children:this.renderAvatar()})}}b.displayName="ChatHead";b.propTypes={avatar:a.a.string,avatarAlt:a.a.string,avatarName:a.a.string,className:a.a.string,disabled:a.a.bool,isBot:a.a.bool,onClick:a.a.func,online:a.a.bool.isRequired,showStatus:a.a.bool.isRequired,size:a.a.string.isRequired,style:a.a.object};b.defaultProps={avatar:null,avatarName:"",away:!1,disabled:!1,online:!1,showStatus:!1,isVisitorWidget:!1,size:"md"}},mE3N:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("0IK8"),i=n("BOwv");const a=e=>Date.now()-Object(r.getTimestamp)(e)s.test(e)});o.toRGB=e=>{const t=s.exec(e);let n=null;if(t&&7===t.length){void 0!==t[1]&&(n={r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)});void 0!==t[4]&&(n={r:parseInt(t[4]+t[4],16),g:parseInt(t[5]+t[5],16),b:parseInt(t[6]+t[6],16)})}return n};var c=o;n.d(t,"a",(function(){return O}));n.d(t,"b",(function(){return v}));n.d(t,"c",(function(){return j}));const u="#ffffff",l="#33475b",d=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,p=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function f(e){let t;try{const n=e.replace(d,(e,t,n,r)=>t+t+n+n+r+r),r=p.exec(n);if(!r)throw new Error("Invalid hex code");t={r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}}catch(n){n instanceof Error&&i.a.captureException(n,{extra:{hex:e}});t={r:0,g:0,b:0}}return t}function h(e){const{r:t,g:n,b:r}=f(e),i=t/255,a=n/255,s=r/255;return.2126*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.0722*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))}function b(e,t){const n=h(e);return(h(t)+.05)/(n+.05)>2}let g,m;function O(e){if(e!==m){m=e;g=b(e,u)}return g}function v(e){return c.test(e)&&O(e)?u:l}function j(e){return!c.test(e)||!O(e)}},mJzd:function(e,t,n){"use strict";var r=n("VfuR"),i=n.n(r),a=n("Ktcs"),s=n.n(a),o=n("npjq"),c=(e,t)=>{o.a.Info.then(()=>{document.title=o.a.text(e,t)})};function u(e=window){const t=e.document,n=["","webkit","moz","ms","o"];for(let e=0;e{e({isVisible:!t})}}function h(e){const t=u();if(t){const n=p(t);document.addEventListener(n,f(e))}else{window.addEventListener("focus",f(e));window.addEventListener("blur",f(e))}}function b(e){const t=u();if(t){const n=p(t);document.removeEventListener(n,f(e))}else{window.removeEventListener("focus",f(e));window.removeEventListener("blur",f(e))}}var g=n("G0k2"),m=n("mEYk"),O=n.n(m),v=n("6Jpi"),j=n("yH0d"),y=n("n6ol"),E=n("Lu5y"),T=n("r1tY"),I=n.n(T),w=n("19qb"),S=n("9zF3"),A=n("g/i1"),C=n("21jQ"),x=n("dLEV");const R=Object(x.createSelector)([C.getIsOpen,S.calculateUnseenThreadsCount],(e,t)=>Boolean(!e&&!!t));var k=n("66eB"),P=n("9f1P"),D=n.n(P),_=n("vSPC"),M=n("8Nq+"),N=n("QgEn");const L=({height:e,width:t,color:n})=>{const r=Object(a.useId)();return Object(N.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:t,height:e,viewBox:"0 0 39 37",className:"conversations-visitor-open-icon",children:[Object(N.jsx)("defs",{children:Object(N.jsx)("path",{id:"conversations-visitor-open-icon-path-1"+r,d:"M31.4824242 24.6256121L31.4824242 0.501369697 0.476266667 0.501369697 0.476266667 24.6256121z"})}),Object(N.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:Object(N.jsx)("g",{transform:"translate(-1432 -977) translate(1415.723 959.455)",children:Object(N.jsxs)("g",{transform:"translate(17 17)",children:[Object(N.jsx)("g",{transform:"translate(6.333 .075)",children:Object(N.jsx)("path",{fill:n,d:"M30.594 4.773c-.314-1.943-1.486-3.113-3.374-3.38C27.174 1.382 22.576.5 15.36.5c-7.214 0-11.812.882-11.843.889-1.477.21-2.507.967-3.042 2.192a83.103 83.103 0 019.312-.503c6.994 0 11.647.804 12.33.93 3.079.462 5.22 2.598 5.738 5.728.224 1.02.932 4.606.932 8.887 0 2.292-.206 4.395-.428 6.002 1.22-.516 1.988-1.55 2.23-3.044.008-.037.893-3.814.893-8.415 0-4.6-.885-8.377-.89-8.394"})}),Object(N.jsx)("g",{fill:n,transform:"translate(0 5.832)",children:Object(N.jsx)("path",{d:"M31.354 4.473c-.314-1.944-1.487-3.114-3.374-3.382-.046-.01-4.644-.89-11.859-.89-7.214 0-11.813.88-11.843.888-1.903.27-3.075 1.44-3.384 3.363C.884 4.489 0 8.266 0 12.867c0 4.6.884 8.377.889 8.393.314 1.944 1.486 3.114 3.374 3.382.037.007 3.02.578 7.933.801l2.928 5.072a1.151 1.151 0 001.994 0l2.929-5.071c4.913-.224 7.893-.794 7.918-.8 1.902-.27 3.075-1.44 3.384-3.363.01-.037.893-3.814.893-8.414 0-4.601-.884-8.378-.888-8.394"})})]})})})]})};L.propTypes={color:i.a.string.isRequired,height:i.a.oneOfType([i.a.number,i.a.string]).isRequired,width:i.a.oneOfType([i.a.number,i.a.string]).isRequired};L.displayName="OpenIcon";var B=L,F=n("+KD7");const H=60,U=60;var V=n("8Ma8");var G=Object(P.css)(["box-shadow:0 1px 4px rgba(0,0,0,0.1),0 2px 12px rgba(0,0,0,0.2);&:hover{cursor:pointer;}&:focus-visible{outline-offset:2px;}@media (prefers-reduced-motion:no-preference){transition:box-shadow 100ms ease-in-out;transition:transform 100ms ease-in-out;&:hover{box-shadow:0 2px 6px rgba(0,0,0,0.1),0 4px 16px rgba(0,0,0,0.2);transform:scale(1.1);}&:focus-visible{box-shadow:0 2px 6px rgba(0,0,0,0.1),0 4px 16px rgba(0,0,0,0.2);transform:scale(1.1);}&:active{box-shadow:0 1px 4px rgba(0,0,0,0.1),0 2px 8px rgba(0,0,0,0.1);transform:scale(0.9);}}@media (prefers-reduced-motion){&::after{content:'';position:absolute;top:0;left:0;border-radius:inherit;width:100%;height:100%;display:block;background-color:",";opacity:0;}&:hover{&::after{opacity:0.08;}}&:focus-visible{&::after{opacity:0.12;}}&:active{&::after{opacity:0.12;}}}"],({isDark:e})=>e?"#000":"#fff"),W=Object.assign;function z(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n])}return i}function q(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function K(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}function Y(e,t){e.classList?e.classList.add(t):K(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function J(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Q(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=J(e.className,t):e.setAttribute("class",J(e.className&&e.className.baseVal||"",t))}var Z={disabled:!1},X=s.a.createContext(null),$="unmounted",ee="exited",te="entering",ne="entered",re="exiting",ie=function(e){q(t,e);function t(t,n){var r;r=e.call(this,t,n)||this;var i,a=n&&!n.isMounting?t.enter:t.appear;r.appearStatus=null;if(t.in)if(a){i=ee;r.appearStatus=te}else i=ne;else i=t.unmountOnExit||t.mountOnEnter?$:ee;r.state={status:i};r.nextCallback=null;return r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===$?{status:ee}:null};var n=t.prototype;n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)};n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==te&&n!==ne&&(t=te):n!==te&&n!==ne||(t=re)}this.updateStatus(!1,t)};n.componentWillUnmount=function(){this.cancelNextCallback()};n.getTimeouts=function(){var e,t,n,r=this.props.timeout;e=t=n=r;if(null!=r&&"number"!=typeof r){e=r.exit;t=r.enter;n=void 0!==r.appear?r.appear:t}return{exit:e,enter:t,appear:n}};n.updateStatus=function(e,t){void 0===e&&(e=!1);if(null!==t){this.cancelNextCallback();t===te?this.performEnter(e):this.performExit()}else this.props.unmountOnExit&&this.state.status===ee&&this.setState({status:$})};n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[I.a.findDOMNode(this),r],a=i[0],s=i[1],o=this.getTimeouts(),c=r?o.appear:o.enter;if(!e&&!n||Z.disabled)this.safeSetState({status:ne},(function(){t.props.onEntered(a)}));else{this.props.onEnter(a,s);this.safeSetState({status:te},(function(){t.props.onEntering(a,s);t.onTransitionEnd(c,(function(){t.safeSetState({status:ne},(function(){t.props.onEntered(a,s)}))}))}))}};n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:I.a.findDOMNode(this);if(t&&!Z.disabled){this.props.onExit(r);this.safeSetState({status:re},(function(){e.props.onExiting(r);e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:ee},(function(){e.props.onExited(r)}))}))}))}else this.safeSetState({status:ee},(function(){e.props.onExited(r)}))};n.cancelNextCallback=function(){if(null!==this.nextCallback){this.nextCallback.cancel();this.nextCallback=null}};n.safeSetState=function(e,t){t=this.setNextCallback(t);this.setState(e,t)};n.setNextCallback=function(e){var t=this,n=!0;this.nextCallback=function(r){if(n){n=!1;t.nextCallback=null;e(r)}};this.nextCallback.cancel=function(){n=!1};return this.nextCallback};n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:I.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],s=i[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)};n.render=function(){var e=this.state.status;if(e===$)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,z(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.a.createElement(X.Provider,{value:null},"function"==typeof n?n(e,r):s.a.cloneElement(s.a.Children.only(n),r))};return t}(s.a.Component);ie.contextType=X;ie.propTypes={};function ae(){}ie.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ae,onEntering:ae,onEntered:ae,onExit:ae,onExiting:ae,onExited:ae};ie.UNMOUNTED=$;ie.EXITED=ee;ie.ENTERING=te;ie.ENTERED=ne;ie.EXITING=re;var se=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return Y(e,t)}))},oe=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return Q(e,t)}))},ce=function(e){q(t,e);function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i"left"===e?"transform: rotate(25deg) scale(0);":"transform: rotate(-25deg) scale(0);",({direction:e,transitionState:t})=>"entering"===t||"entered"===t?"opacity: 1; transform: rotate(0deg) scale(1);":"left"!==e||"exiting"!==t&&"exited"!==t?"right"!==e||"exiting"!==t&&"exited"!==t?"":"opacity: 0; transform: rotate(25deg) scale(0.5);":"opacity: 0; transform: rotate(-25deg) scale(0.5);"),Ae=({in:e=!0,children:t,direction:n="right"})=>ie?Object(N.jsx)(ie,{in:e,timeout:200,appear:!0,children:e=>Object(N.jsx)(Se,{direction:n,transitionState:e,children:t})}):e?t:null;Ae.propTypes={children:i.a.node.isRequired,direction:i.a.oneOf(["left","right"]),in:i.a.bool.isRequired};Ae.displayName="TwistFadeTransition";var Ce=Ae;const xe=({color:e,height:t,width:n})=>Object(N.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:t,viewBox:"0 0 19 18",className:"conversations-visitor-close-icon",children:Object(N.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:Object(N.jsx)("g",{fill:e,transform:"translate(-927 -991) translate(900.277 962)",children:Object(N.jsx)("g",{transform:"translate(27 29)",children:Object(N.jsx)("path",{d:"M10.627 9.013l6.872 6.873.708.707-1.415 1.414-.707-.707-6.872-6.872L2.34 17.3l-.707.707L.22 16.593l.707-.707L7.8 9.013.946 2.161l-.707-.708L1.653.04l.707.707L9.213 7.6 16.066.746l.707-.707 1.414 1.414-.707.708-6.853 6.852z"})})})})});xe.displayName="CloseIcon";var Re=xe;const ke=D.a.button.withConfig({displayName:"IconLauncher__BaseLauncher",componentId:"sc-1uudv6k-0"})(["border:none;position:relative;",""],G),Pe=D()(ke).withConfig({displayName:"IconLauncher__ShapedLauncher",componentId:"sc-1uudv6k-1"})(["border-radius:50%;height:","px;width:","px;"],U,H),De=D.a.div.withConfig({displayName:"IconLauncher__LauncherIcon",componentId:"sc-1uudv6k-2"})(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;"]),_e=({ariaLabel:e,badgeNumber:t,className:n,onClick:r,showBadge:i,style:a,useDefaultColor:s,open:o})=>{const c=s?F.q:F.r,u=Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)(Ce,{in:o,direction:"left",children:Object(N.jsx)(De,{children:Object(N.jsx)(Re,{color:c,width:20,height:20})})}),Object(N.jsx)(Ce,{in:!o,direction:"right",children:Object(N.jsx)(De,{children:Object(N.jsx)(B,{color:c,width:32,height:30})})})]}),{setLauncherRef:l}=Object(V.c)();return Object(N.jsx)(M.a,{badgeLabel:t,showBadge:i,positioning:"on-circle",children:Object(N.jsx)(Pe,{"aria-label":e,"aria-haspopup":"dialog",isDark:s,style:a,className:n,onClick:r,ref:l,children:u})})};_e.displayName="IconLauncher";_e.defaultProps={open:!1,onClick:()=>{},showBadge:!1};_e.propTypes={ariaLabel:i.a.string.isRequired,badgeNumber:i.a.number,className:i.a.string,onClick:i.a.func,open:i.a.bool.isRequired,showBadge:i.a.bool.isRequired,style:i.a.object,useDefaultColor:i.a.bool.isRequired};var Me=_e,Ne=n("t6nY"),Le=n.n(Ne);const Be=D.a.div.withConfig({displayName:"Launcher__IconLauncherWrapper",componentId:"sc-1x77omf-0"})(["display:flex;align-items:center;.launcher-left-align &{flex-direction:row-reverse;}"]),Fe=({badgeNumber:e,coloring:{accentColor:t,useDefaultColor:n},className:r,onClose:i,onOpen:s,open:c,showBadge:u})=>{const l=Object(a.useCallback)(()=>{c?i():s()},[c,i,s]),d={className:Le()("reagan--widget-loaded",r),badgeNumber:e,showBadge:u,ariaLabel:c?o.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.close"):o.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.open"),onClick:l};return Object(N.jsx)(Be,{children:Object(N.jsx)(Me,Object.assign({style:Object(_.b)(t),useDefaultColor:n,open:c},d))})};Fe.defaultProps={onOpen:k.a,onClose:k.a,open:!1};Fe.propTypes={badgeNumber:i.a.number,className:i.a.string,coloring:i.a.object.isRequired,onClose:i.a.func.isRequired,onOpen:i.a.func.isRequired,open:i.a.bool.isRequired,showBadge:i.a.bool};Fe.displayName="Launcher";var He=Fe;const Ue=()=>({badgeNumber:Object(w.useSelector)(S.calculateUnseenThreadsCount),coloring:Object(w.useSelector)(A.a),open:Object(w.useSelector)(C.getIsOpen),showBadge:Object(w.useSelector)(R)}),Ve=e=>{const t=Ue();return Object(N.jsx)(He,Object.assign({},e,t))};Ve.displayName="LauncherContainer";var Ge=Ve,We=n("6kbu"),ze=n("V/xu"),qe=n("7719");const Ke={browserWindowHeight:1080,browserWindowWidth:1920},Ye=Object(a.createContext)(Ke),Je=()=>Object(a.useContext)(Ye);function Qe(e){return t=>Object(N.jsx)(Ye.Consumer,{children:({browserWindowHeight:n,browserWindowWidth:r})=>Object(N.jsx)(e,Object.assign({},t,{browserWindowHeight:n,browserWindowWidth:r}))})}var Ze=n("38AR"),Xe=n("sl/w");const $e={wrapper:"span"};function et(e,t,...n){return a.createElement(e&&e[t]||$e[t]||$e.wrapper,...n)}function tt(e){console.warn(`I18n: FormattedJSXMessage called with missing or non-JSX message key ${e.message}. See go/i18n-react for more info.`);return Object(N.jsx)(Xe.a,{message:e.message,options:e.options})}const nt=e=>null!=e,rt=e=>{let t=o.a.lookup(e.message,{locale:o.a.langEnabled?o.a.locale:"en"});if(!nt(t))return tt(e);const n=e.options&&e.options.count,r=nt(n);if("object"==typeof t&&r){const e=o.a.pluralization.get()(n);for(;e.length;){const n=e.shift();if(nt(t[n])){t=t[n];break}}}const i=Object.assign({},e.options);if(r&&"number"==typeof n)i.count=o.a.formatNumber(n);else if("string"==typeof t)return tt(e);return t(et,e.elements,i)};rt.propTypes={message:i.a.string.isRequired,elements:i.a.object.isRequired,options:i.a.object,jsxMessageValidator:(e,t,n)=>{e.message.endsWith("_jsx")||console.warn(`I18n: ${n} called with invalid message prop not ending in _jsx for ${e.message}`)}};var it=rt,at=n("PY2H"),st=n("Jr27"),ot=n("oUkX");const ct=D.a.div.withConfig({displayName:"WidgetErrorRetryPanel__WidgetBodyDiv",componentId:"juzt4x-0"})(["display:flex;flex-direction:column;padding:40px;"]);class ut extends a.Component{render(){const{inline:e,widgetLocation:t,mobile:n,isOpen:r,onClose:i}=this.props;return r?Object(N.jsx)(ot.a,{children:Object(N.jsx)(Ze.b,{inline:e,isOpen:!0,mobile:n,widgetLocation:t,browserWindowHeight:0,role:"alert",children:Object(N.jsxs)(ct,{children:[Object(N.jsx)("h4",{children:Object(N.jsx)(Xe.a,{message:"conversations-visitor-ui.widgetErrorRetryPanel.title"})}),!e&&Object(N.jsx)(st.a,{onClick:i,"aria-label":o.a.text("conversations-visitor-ui.visitorExperienceAriaLabels.closeChatWindow")}),Object(N.jsx)(it,{message:"conversations-visitor-ui.widgetErrorRetryPanel.body_jsx",elements:{Link:at.a},options:{LinkProps:{use:"on-bright",onClick:this.props.retry}}})]})})}):null}}ut.displayName="WidgetErrorRetryPanel";ut.propTypes={inline:i.a.bool.isRequired,isOpen:i.a.bool,mobile:i.a.bool.isRequired,onClose:i.a.func.isRequired,retry:i.a.func.isRequired,widgetLocation:v.b};var lt=ut;class dt extends a.Component{static getDerivedStateFromError(e){return{error:e}}constructor(e){super(e);this.handleRetry=()=>{this.setState({error:!1})};this.explicitlySetError=e=>{this.setState({error:e})};this.state={error:null}}render(){return this.state.error?this.props.renderError(this.handleRetry):this.props.children}}dt.displayName="AsyncComponentErrorBoundary";dt.propTypes={children:i.a.node,renderError:i.a.func.isRequired};var pt=dt,ft=n("ombE"),ht=n("0fuM"),bt=n("6pce"),gt=n("uax2");const mt=e=>{const[t,n]=Object(a.useState)(!1);Object(a.useEffect)(()=>{const t=setTimeout(()=>n(!0),e);return()=>{clearTimeout(t)}},[e]);return t},Ot=D.a.div.withConfig({displayName:"WidgetPlaceholder__WidgetBodyDiv",componentId:"lm43fr-0"})(["display:flex;flex-direction:column;height:100%;align-items:center;justify-content:center;"]),vt=()=>{const e=mt(200);return Object(N.jsx)(Ot,{"data-test-id":"chat-widget-wrapper",children:e&&Object(N.jsx)(gt.a,{size:"sm"})})};vt.displayName="WidgetPlaceholder";var jt=vt,yt=n("YQ4m"),Et=n("N4ZN"),Tt=n("GOyg"),It=n("20e/"),wt=n("7vm7"),St=n("uXUH"),At=n("aiuJ"),Ct=n("QeSX"),xt=n("zGIQ"),Rt=n("k09d"),kt=n("tAuz"),Pt=n("CM4h"),Dt=n("RXbF"),_t=n("Q79t"),Mt=n("FAYk"),Nt=n("y5/z"),Lt=n("moRJ"),Bt=n("YHaB"),Ft=n("WTKJ"),Ht=n("pjpP");function Ut(){return e=>{e(Object(Ht.a)());e(Object(Lt.a)());e(Object(Bt.a)(Ft.b));e(Object(Nt.trackInteraction)("widget-interaction",{action:"view thread list"}))}}var Vt=n("OfAC");function Gt(){return(e,t)=>{Object(Mt.getKnowledgeBaseEnabled)(t())?e(Object(Vt.navigateToThreadListKnowledgebase)()):e(Ut())}}var Wt=n("Ryja");n("TyWi");const zt=e=>e.widgetSize.size,qt=e=>({widgetSize:zt(e),chatHeadingConfig:Object(Tt.a)(e),chatHeadingResponders:Object(xt.a)(e),coloring:Object(A.a)(e),customHeaderText:Object(Mt.getKnowledgeBaseEnabled)(e)?o.a.text("conversations-visitor-ui.knowledgeBaseContainer.headerText"):null,isThreadAssigned:Boolean(Object(Ct.getAssignedResponderInWidget)(e)),mobile:Object(kt.getIsMobile)(e),officeHoursMessage:Object(wt.getAvailabilityOfficeHoursWillReturnMessage)(e),showAvailabilityMessage:Object(It.a)(e,{thread:Object(Rt.a)(e)}),showBackButton:Object(Dt.a)(e),backButtonDisabled:Object(Wt.isCreatingThread)(e),typicalResponseTimeMessage:Object(St.a)(e),unseenThreadsCountExcludingCurrentThread:Object(Pt.a)(e),widgetLocation:Object(_t.a)(e)}),Kt={fetchAgentResponderIfNecessary:()=>{},createNewThread:At.a,republishMessage:Et.a,navigateToThreadList:Gt};var Yt=Object(w.connect)(qt,Kt)(yt.b),Jt=n("HcHV"),Qt=n("Lm/k");const Zt=["in","children","direction","duration"],Xt=e=>{let{in:t,children:n,direction:r="bottom",duration:i=500}=e,a=Object(Qt.a)(e,Zt);return Object(N.jsx)(ce,Object.assign({in:t,timeout:i,classNames:"fade-slide-transition-"+r,mountOnEnter:!0,unmountOnExit:!0,appear:!0},a,{children:n}))};Xt.displayName="FadeSlideInTransition";Xt.propTypes={children:i.a.node.isRequired,direction:i.a.oneOf(["bottom","top"]),in:i.a.bool.isRequired};var $t=Xt;class en extends a.PureComponent{constructor(e){super(e);this.ThreadView=Object(Jt.a)(()=>Promise.all([n.e("CurrentView-KnowledgeBaseContainer~CurrentView-ThreadView~threadview-utv"),n.e("threadview-utv"),n.e("CurrentView-ThreadView~messages-preview"),n.e("CurrentView-ThreadView")]).then(n.bind(null,"twxQ")));this.KnowledgeBaseContainer=Object(Jt.a)(()=>Promise.all([n.e("CurrentView-KnowledgeBaseContainer~CurrentView-ThreadView~threadview-utv"),n.e("CurrentView-KnowledgeBaseContainer~CurrentView-ThreadListContainer"),n.e("CurrentView-KnowledgeBaseContainer")]).then(n.bind(null,"X1ER")));this.ThreadListContainer=Object(Jt.a)(()=>Promise.all([n.e("CurrentView-KnowledgeBaseContainer~CurrentView-ThreadListContainer"),n.e("CurrentView-ThreadListContainer")]).then(n.bind(null,"OxYs")))}renderView(){const{currentView:e}=this.props;if(!e)return null;switch(e){case ht.c:return Object(N.jsx)(this.ThreadView,{});case ht.a:return Object(N.jsx)(this.KnowledgeBaseContainer,{});case ht.b:return Object(N.jsx)(this.ThreadListContainer,{});default:return Object(N.jsx)(jt,{})}}renderContent(){const{closeWidget:e,browserWindowHeight:t,browserWindowWidth:n,inline:r,currentView:i}=this.props;return Object(N.jsx)("div",{style:{height:"100%"},id:"current-view-component",children:Object(N.jsx)(Yt,{browserWindowHeight:t,browserWindowWidth:n,closeWidget:e,inline:r,view:i,children:Object(N.jsx)(a.Suspense,{fallback:Object(N.jsx)(jt,{}),children:this.renderView()})})},"widget")}render(){const{onOpenAnimationStarted:e,onCloseAnimationStarted:t,onOpenAnimationFinished:n,onCloseAnimationFinished:r,isOpen:i}=this.props;return Object(N.jsx)($t,{duration:500,in:i,onEnter:e,onEntered:n,onExit:t,onExited:r,children:this.renderContent()})}}en.displayName="CurrentView";en.defaultProps={onAnimationsFinished:()=>{},onAnimationsStarted:()=>{}};en.propTypes={browserWindowHeight:i.a.number.isRequired,browserWindowWidth:i.a.number.isRequired,closeWidget:i.a.func.isRequired,currentView:bt.a,inline:i.a.bool.isRequired,isOpen:i.a.bool,onCloseAnimationFinished:i.a.func,onCloseAnimationStarted:i.a.func,onOpenAnimationFinished:i.a.func,onOpenAnimationStarted:i.a.func};var tn=Qe(en);const nn=e=>({currentView:Object(ft.a)(e)});var rn=Object(w.connect)(nn)(tn),an=n("0Zm1"),sn=n("cFiw"),on=n("tUSi");const cn=D.a.main.withConfig({displayName:"DialogWindow__Main",componentId:"sc-11ext15-0"})(["&:focus{outline:none;}"]),un=e=>{const{isOpen:t,onClose:n,children:r}=e,i=Object(a.useRef)(),{dialogProps:s}=Object(sn.a)({id:"live-chat-widget","aria-labelledby":on.b,"aria-describedby":on.a},i),{setShouldTrapFocus:o,disableWidgetClose:c,launcherRef:u}=Object(V.c)(),{overlayProps:l}=Object(an.b)({isOpen:t,isKeyboardDismissDisabled:c,onClose:()=>{n&&n();u&&u.focus()},shouldCloseOnBlur:!0,shouldCloseOnInteractOutside:e=>{!!e&&"BUTTON"===e.tagName||o(!1);return!1}},i);return Object(N.jsx)(cn,Object.assign({ref:i},l,s,{onClick:()=>o(!0),children:r}))};un.displayName="DialogWindow";var ln=un;const dn=e=>{const{inline:t,isOpen:n,shouldRenderDialog:r,mobile:i,widgetLocation:s,onClose:o,onOpenAnimationStarted:c,onCloseAnimationFinished:u,onOpenAnimationFinished:l,onCloseAnimationStarted:d}=e,{disableWidgetDialog:p}=Object(V.c)(),f=p||!r,h=f?a.Fragment:ln,b=f?{}:{isOpen:n,onClose:o};return Object(N.jsx)(h,Object.assign({},b,{children:Object(N.jsx)(pt,{renderError:e=>Object(N.jsx)(lt,{inline:t,isOpen:n,mobile:i,widgetLocation:s,onClose:o,retry:e}),children:Object(N.jsx)(rn,{inline:t,isOpen:n,mobile:i,onOpenAnimationStarted:c,onCloseAnimationFinished:u,onOpenAnimationFinished:l,onCloseAnimationStarted:d,widgetLocation:s,closeWidget:o})})}))};dn.displayName="WidgetWindow";var pn=dn,fn=n("okxY"),hn=n("aBJT");class bn extends a.Component{constructor(e){super(e);this.onOpenAnimationStarted=()=>{this.setState({animationsFinished:!1,shouldRenderDialog:!0})};this.onOpenAnimationFinished=()=>{this.setState({animationsFinished:!0})};this.onCloseAnimationStarted=()=>{this.setState({animationsFinished:!1})};this.onCloseAnimationFinished=()=>{this.setState({animationsFinished:!0,shouldRenderDialog:!1});this.context.setShouldTrapFocus(!1)};this.getAvatarHeightAboveBubble=this.getAvatarHeightAboveBubble.bind(this);this.setInitialMessageRef=this.setInitialMessageRef.bind(this);this.setQuickReplyGroupOutsideChatRef=this.setQuickReplyGroupOutsideChatRef.bind(this);this.openWidget=this.openWidget.bind(this);this.closeWidget=this.closeWidget.bind(this);this.state={animationsFinished:!0,shouldRenderDialog:this.props.isOpen}}getAvatarHeightAboveBubble(){return(this.props.mobile?ze.a[qe.f]:ze.a[qe.e])/2}setInitialMessageRef(e){this.initialMessageRef=Object(T.findDOMNode)(e)}setQuickReplyGroupOutsideChatRef(e){this.quickReplyGroupRef=Object(T.findDOMNode)(e)}openWidget(){this.setState({animationsFinished:!1});this.props.trackUserInteraction();this.props.toggleOpen({isOpened:!0,isUser:!0});this.context.setShouldTrapFocus(!0)}closeWidget(){this.setState({animationsFinished:!1});this.props.trackUserInteraction();this.props.toggleOpen({isOpened:!1,isUser:!0})}render(){const{isOpen:e,inline:t,mobile:n,onLauncherHover:r,showInitialMessageBubble:i,widgetLocation:a}=this.props,s=e&&n||t;return Object(N.jsx)(V.a.Consumer,{children:({shouldTrapFocus:o})=>Object(N.jsxs)(fn.a,{contain:o,autoFocus:!1,children:[Object(N.jsx)(pn,{inline:t,isOpen:e||t,shouldRenderDialog:this.state.shouldRenderDialog,mobile:n,widgetLocation:a,onOpenAnimationStarted:this.onOpenAnimationStarted,onCloseAnimationFinished:this.onCloseAnimationFinished,onOpenAnimationFinished:this.onOpenAnimationFinished,onCloseAnimationStarted:this.onCloseAnimationStarted,onClose:this.closeWidget}),i&&this.state.animationsFinished&&Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)(We.a,{avatarHeightAboveBubble:this.getAvatarHeightAboveBubble(),setInitialMessageRef:this.setInitialMessageRef,onClick:this.openWidget,widgetLocation:a}),Object(N.jsx)(hn.b,{setQuickReplyGroupOutsideChatRef:this.setQuickReplyGroupOutsideChatRef,widgetLocation:a})]}),!s&&Object(N.jsx)("span",{"data-test-id":"chat-widget-launcher",onMouseOver:r,children:Object(N.jsx)(Ge,{onClose:this.closeWidget,onOpen:this.openWidget})})]})})}}bn.displayName="ApplicationLayout";bn.propTypes={inline:i.a.bool.isRequired,isOpen:i.a.bool.isRequired,mobile:i.a.bool.isRequired,onLauncherHover:i.a.func.isRequired,showInitialMessageBubble:i.a.bool.isRequired,toggleOpen:i.a.func.isRequired,trackUserInteraction:i.a.func.isRequired,widgetLocation:v.b};bn.contextType=V.a;var gn=Qe(bn),mn=n("wkWz"),On=n("SNA8"),vn=n("YNiY"),jn=n("bhLI"),yn=n("mKxs"),En=n("Pda3");const Tn=({startOpen:e,widgetDataAsyncData:t,threadsAsyncData:n})=>{const r=[t];e&&r.push(n);const i=r.some(e=>Object(En.isFailed)(e)),a=r.every(e=>Object(En.isSucceeded)(e));return i?Object(N.jsx)(jn.a,{name:"VISITOR_ERROR"}):a?Object(N.jsx)(jn.a,{name:"VISITOR_SUCCESS"}):null};Tn.propTypes={startOpen:i.a.bool,threadsAsyncData:Object(yn.a)("AsyncData").isRequired,widgetDataAsyncData:Object(yn.a)("AsyncData").isRequired};Tn.displayName="Checker";var In=Tn;const wn=e=>({startOpen:Object(mn.getWidgetStartOpen)(e),threadsAsyncData:Object(vn.a)(e),widgetDataAsyncData:Object(On.a)(e)});var Sn=Object(w.connect)(wn)(In),An=n("Jtfe"),Cn=n("/btv"),xn=n("CITH");const Rn=()=>Object(xn.a)(y.r),kn=e=>Object(xn.a)(y.j,e);var Pn=n("9XKB"),Dn=n("0c9j"),_n=n("E9Gc");function Mn(){const[{width:e,height:t},n]=Object(a.useState)({width:0,height:0}),r=Object(a.useRef)(null),i=Object(a.useCallback)(e=>{if(r.current){r.current.disconnect();r.current=null}if(e&&e.nodeType===Node.ELEMENT_NODE){const t=new ResizeObserver(([t])=>setTimeout(()=>{if(t.borderBoxSize&&t.borderBoxSize[0]){const{inlineSize:e,blockSize:r}=t.borderBoxSize[0];n({width:e,height:r})}else{const{offsetWidth:t,offsetHeight:r}=e;n({width:t,height:r})}},0));t.observe(e);r.current=t}},[]);Object(a.useEffect)(()=>{e&&t&&Object(xn.a)(y.k,{width:e,height:t})},[e,t]);return i}var Nn=n("FfT4");const Ln=["children","inline","mobile","isOpen"],Bn={[Nn.b]:Object(P.css)(["right:0;align-items:flex-end;"]),[Nn.a]:Object(P.css)(["left:0;align-items:flex-start;"])},Fn=Object(P.css)(["padding:0;inset:0;"]),Hn=D.a.div.withConfig({displayName:"WidgetWrapper__Wrapper",componentId:"sc-1bv4zy4-0"})(["position:absolute;bottom:0;display:flex;padding:16px;gap:16px;flex-direction:column;justify-content:flex-end;",";"],({widgetLocation:e,inline:t})=>t?Fn:Bn[e]);function Un(e){let{children:t,inline:n,mobile:r,isOpen:i}=e,s=Object(Qt.a)(e,Ln);const{browserWindowHeight:o,browserWindowWidth:c}=Je(),u=Mn(),[l,d]=Object(a.useState)(()=>r&&i?{height:o,width:c}:{});Object(a.useEffect)(()=>{if(r){const e=setTimeout(()=>{d(i?{height:o,width:c}:{})},i?0:500);return()=>clearTimeout(e)}},[i,r,o,c]);return Object(N.jsx)(Hn,Object.assign({style:l,ref:u,inline:n},s,{children:t}))}Un.displayName="WidgetWrapper";class Vn extends a.Component{constructor(e){super(e);this.handleI18nLabels=()=>{kn({"conversations-visitor-ui.visitorExperienceAriaLabels.chatWidget":o.a.text("conversations-visitor-ui.visitorExperienceAriaLabels.chatWidget"),"conversations-visitor-experience-components.visitorExperienceAriaLabels.drag":o.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.drag")})};this.handleDragover=this.handleDragover.bind(this);this.handleDrop=this.handleDrop.bind(this);this.registerDragDropHandlers=this.registerDragDropHandlers.bind(this);this.unregisterDragDropHandlers=this.unregisterDragDropHandlers.bind(this);this.handleVisibilityChange=this.handleVisibilityChange.bind(this);this.onOpenUpdate=this.onOpenUpdate.bind(this);this.requestWidget=this.requestWidget.bind(this);this.onBrowserWindowResize=this.onBrowserWindowResize.bind(this);this.onScrollPercentageChange=this.onScrollPercentageChange.bind(this);this.onExitIntent=this.onExitIntent.bind(this);this.receiveMessage=this.receiveMessage.bind(this);this.renderContent=this.renderContent.bind(this);this.openToNewThread=this.openToNewThread.bind(this);this.state={browserWindowHeight:Ke.browserWindowHeight,browserWindowWidth:Ke.browserWindowWidth};this.requestWidget()}componentDidMount(){window.addEventListener("message",this.receiveMessage,!1);this.registerDragDropHandlers();this.handleI18nLabels();c("conversations-visitor-ui.htmlTitle");d()&&this.props.setWindowVisible(!1);h(this.handleVisibilityChange);Object(_n.b)("isInlineEmbeddedWidget",this.props.inline);Object(_n.b)("location",Object(j.a)()?"sdk":"web")}componentWillUnmount(){window.removeEventListener("message",this.receiveMessage);this.unregisterDragDropHandlers();b(this.handleVisibilityChange)}handleDragover(e){e.preventDefault()}handleDrop(e){e.preventDefault()}registerDragDropHandlers(){window.addEventListener("dragover",this.handleDragover);window.addEventListener("drop",this.handleDrop)}unregisterDragDropHandlers(){window.removeEventListener("dragover",this.handleDragover);window.removeEventListener("drop",this.handleDrop)}handleVisibilityChange({isVisible:e}){this.props.setWindowVisible(e)}onOpenUpdate(e){this.props.toggleOpen({isOpened:e,isUser:!0})}requestWidget(){Rn()}onBrowserWindowResize(e){this.setState({browserWindowHeight:e.height,browserWindowWidth:e.width})}onScrollPercentageChange(e){this.props.handleScrollPercentageChange({scrollPercentage:e.scrollPercentage})}onExitIntent(){this.props.executeExitIntentTrigger()}onTrackApiUsage(e){Object(Cn.a)(e.eventName,e.properties)}onWidgetDragged(e){this.props.trackInteraction("dragged-widget",e,!1,!0)}openToNewThread(){this.props.isViewingStubbedThread||this.props.loadStagedThread()}handleReceiveWidgetData(e){O.a.setExtraContext({bot:Object(g.a)(e.sendFrom[0])});const{handleReceiveWidgetData:t,visitorIdentity:n}=this.props;n.setIsPrivateWidgetLoad(e.privateLoad);t({data:e,isFirstVisitorSession:n.getIsFirstVisitorSession()})}receiveMessage({data:e,origin:t}){if(t!==Object(Dn.getWindowUrl)().origin&&t!==window.origin)return;let n=null;try{n=JSON.parse(e)}catch(e){return}const{type:r=null,data:i=null}=n;switch(r){case y.n:i.perfAttributes&&Object(_n.e)(i.perfAttributes);break;case y.C:this.handleReceiveWidgetData(i);break;case y.i:Object(Pn.setHubspotUtk)(i.utk);break;case y.h:this.props.onGlobalCookieOptOut(i.globalCookieOptOut);break;case y.g:this.props.updateIsFirstVisitorSession(i.isFirstVisitorSession);this.props.visitorIdentity.setIsFirstVisitorSession(i.isFirstVisitorSession);break;case y.B:this.props.updateVisitorIdentificationEnabled(i);break;case y.o:this.props.refreshWidgetData(Object(E.buildWidgetData)(n.data));break;case y.q:this.onOpenUpdate(!0);break;case y.p:this.onOpenUpdate(!1);break;case y.c:this.onBrowserWindowResize(i);break;case y.s:this.onScrollPercentageChange(i);break;case y.f:this.onExitIntent();break;case y.z:this.onTrackApiUsage(i);break;case y.A:this.onWidgetDragged(i);break;case y.m:this.openToNewThread()}}renderContent(){const{inline:e,isOpen:t,mobile:n,onLauncherHover:r,showInitialMessageBubble:i,toggleOpen:a,trackUserInteraction:s,widgetLocation:o}=this.props;return Object(N.jsx)(gn,{inline:e,isOpen:t,mobile:n,onLauncherHover:r,showInitialMessageBubble:i,toggleOpen:a,trackUserInteraction:s,widgetLocation:o})}render(){const{shouldRenderContent:e,inline:t,widgetLocation:n,isOpen:r,mobile:i}=this.props;return Object(N.jsx)(Ye.Provider,{value:{browserWindowHeight:this.state.browserWindowHeight,browserWindowWidth:this.state.browserWindowWidth},children:Object(N.jsxs)(Un,{isOpen:r,mobile:i,inline:t,widgetLocation:n,children:[Object(N.jsx)(Sn,{}),Object(N.jsx)(An.a,{children:e?this.renderContent():null})]})})}}Vn.displayName="Application";Vn.contextType=Ye;Vn.propTypes={executeExitIntentTrigger:i.a.func.isRequired,handleReceiveWidgetData:i.a.func.isRequired,handleScrollPercentageChange:i.a.func.isRequired,inline:i.a.bool.isRequired,isOpen:i.a.bool.isRequired,isViewingStubbedThread:i.a.bool.isRequired,loadStagedThread:i.a.func.isRequired,mobile:i.a.bool.isRequired,onGlobalCookieOptOut:i.a.func.isRequired,onLauncherHover:i.a.func.isRequired,refreshWidgetData:i.a.func.isRequired,setWindowVisible:i.a.func.isRequired,shouldRenderContent:i.a.bool.isRequired,showInitialMessageBubble:i.a.bool.isRequired,toggleOpen:i.a.func.isRequired,trackInteraction:i.a.func.isRequired,trackUserInteraction:i.a.func.isRequired,updateIsFirstVisitorSession:i.a.func.isRequired,updateVisitorIdentificationEnabled:i.a.func.isRequired,visitorIdentity:i.a.object.isRequired,widgetLocation:v.b};t.a=Vn},mKxs:function(e,t,n){"use strict";const r=(e,t,n=null)=>Object.assign(e.bind(),{typeName:t,typeChecker:n,isRequired:Object.assign(e.isRequired.bind(),{typeName:t,typeChecker:n,typeRequired:!0})});function i(e){if("string"!=typeof e)throw new TypeError("a string is required for the RecordPropType");const t=function(t,n,r){const i=t[n];if(null==i)return null;const a=i._name;return a?a!==e?new Error(`Invalid Record prop \`${n}\` of type \`${a}\` supplied to \`${r}\`. Expected \`${e}\``):null:new Error(`Invalid prop \`${n}\` of type \`${typeof i}\` supplied to \`${r}\`. Expected Record of type \`${e}\``)};t.isRequired=function(e,n,r){return e[n]?t(e,n,r):new Error(`Required ${n} was not specified in ${r}`)};return r(t,"recordIsType: "+e)}t.a=i},"mYl/":function(e,t,n){"use strict";var r=n("EQzX"),i=n("8ghC"),a=n("i6ES"),s=n("Cblj"),o=n("0934"),c=n("C3IS"),u=n("8Xfw"),l=n("amlY"),d=n("H9dH"),p=n("wZdh"),f=n("c2PF"),h=n("qg6t"),b=n("KDEO"),g=n("H5md");const m=({message:e,channel:t,threadId:n})=>r=>{r(Object(d.defaultMessageReceived)(e,t,n))};var O=n("DB67"),v=n("9i6G"),j=n("0IK8"),y=n("N76F"),E=n("Kjd/"),T=n("eF9A");n.d(t,"a",(function(){return I}));const I=({threadId:e,message:t,channel:n,publishContext:I={}})=>(w,S)=>{const{data:A,clientId:C}=t,x=Object(f.getThreadByThreadId)(S(),{threadId:e});if(Object(j.getType)(A)===v.a){w(Object(O.channelChangeReceived)({channelChange:new v.b(A),threadId:e}));return}const R=Object(u.deserialize)({json:A});Object(E.a)({message:R,clientId:C});switch(!0){case Object(o.a)(R):break;case Object(c.b)(R):w(Object(h.dismissTypingIndicator)(R,e));w(Object(d.defaultMessageReceived)(R,n,e,I));w(Object(p.a)({message:R,threadId:e}));break;case Object(T.isAssignmentUpdateMessage)(R):w(Object(l.assignmentV2MessageReceived)(R,n,e));break;case Object(a.isContactAssociationMessage)(R):Object(y.onContactAssociated)();break;case Object(s.isTypingMessage)(R):I.playback||w(Object(b.typingMessageReceived)(R,e));break;case Object(r.isCloseThreadMessage)(R):w(Object(g.closeThreadMessageReceived)({message:R,thread:x,channel:n}));break;case Object(i.a)(R):w(m({message:R,channel:n,threadId:e}));break;default:w(Object(d.defaultMessageReceived)(R,n,e,I))}}},mc4r:function(e,t,n){"use strict";const r=e=>Boolean("string"==typeof e&&e.length);t.a=r},mlLV:function(e,t,n){"use strict";n.r(t);n.d(t,"CONVERSATION_STARTED",(function(){return r}));n.d(t,"CONVERSATION_CLOSED",(function(){return i}));n.d(t,"UNREAD_CONVERSATION_COUNT_CHANGED",(function(){return a}));n.d(t,"INPUT_STAGING",(function(){return s}));n.d(t,"CONTACT_ASSOCIATED",(function(){return o}));n.d(t,"USER_INTERACTED_WITH_WIDGET",(function(){return c}));n.d(t,"QUICK_REPLY_BUTTON_CLICK",(function(){return u}));n.d(t,"WIDGET_LOADED",(function(){return l}));n.d(t,"WIDGET_CLOSED",(function(){return d}));n.d(t,"USER_SELECTED_THREAD",(function(){return p}));const r="conversationStarted",i="conversationClosed",a="unreadConversationCountChanged",s="inputStaging",o="contactAssociated",c="userInteractedWithWidget",u="quickReplyButtonClick",l="widgetLoaded",d="widgetClosed",p="userSelectedThread"},mmfe:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("dLEV"),i=n("SGAL");const a=Object(r.createAction)(i.a,(e,t)=>({payload:{channel:e,timeout:t}}))},moRJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("dLEV"),i=n("Qvwz");const a=Object(r.createAction)(i.a)},mrEz:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("Wte1"))},"n+iS":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("cSJ2"),i=n("bSHG"),a=n("rCfO");const s=Object(a.default)(e=>Object(r.a)(e,i.a.TEXTONLY))},n6ol:function(e,t,n){"use strict";n.d(t,"k",(function(){return r}));n.d(t,"l",(function(){return i}));n.d(t,"e",(function(){return a}));n.d(t,"r",(function(){return s}));n.d(t,"y",(function(){return o}));n.d(t,"t",(function(){return c}));n.d(t,"d",(function(){return u}));n.d(t,"v",(function(){return l}));n.d(t,"x",(function(){return d}));n.d(t,"u",(function(){return p}));n.d(t,"w",(function(){return f}));n.d(t,"a",(function(){return h}));n.d(t,"j",(function(){return b}));n.d(t,"C",(function(){return g}));n.d(t,"i",(function(){return m}));n.d(t,"h",(function(){return O}));n.d(t,"g",(function(){return v}));n.d(t,"o",(function(){return j}));n.d(t,"q",(function(){return y}));n.d(t,"p",(function(){return E}));n.d(t,"c",(function(){return T}));n.d(t,"s",(function(){return I}));n.d(t,"f",(function(){return w}));n.d(t,"n",(function(){return S}));n.d(t,"z",(function(){return A}));n.d(t,"A",(function(){return C}));n.d(t,"m",(function(){return x}));n.d(t,"b",(function(){return R}));n.d(t,"B",(function(){return k}));const r="iframe-resize",i="open-change",a="closed-welcome-message",s="request-widget",o="store-messages-cookie",c="show-page-title-notification",u="clear-page-title-notification",l="start-track-scroll-percentage",d="stop-track-scroll-percentage",p="start-track-exit-intent",f="stop-track-exit-intent",h="api-request",b="i18n-labels",g="widget-data",m="hubspot-utk",O="global-cookie-opt-out",v="first-visitor-session",j="refresh-widget-data",y="request-open",E="request-close",T="browser-window-resize",I="scroll-percentage-change",w="exit-intent",S="perf-attributes",A="track-api-usage",C="track-widget-dragged",x="open-to-new-thread",R="api-request-result",k="visitor-identification-attributes"},nDpY:function(e,t,n){e.exports=n.dlbpr(0,17)},nS6h:function(e,t,n){"use strict";n.r(t);n.d(t,"publishMessageToConversation",(function(){return o}));var r=n("eg5p"),i=n("goDm"),a=n("4dq7"),s=n("4SpI");function o({channel:e,message:t,threadId:n}){return o=>{n===r.a?o(Object(i.stageMessageOnStubbedThread)(t)):o(Object(s.publishMessage)({channel:e,message:t,threadId:n})).then(()=>o(Object(a.addAvailabilityMessage)({channel:e,threadId:n}))).catch(e=>{setTimeout(()=>{throw e})})}}},nSiU:function(e,t,n){"use strict";n.r(t);n.d(t,"getErrorInPayload",(function(){return i}));n.d(t,"getErrorMeta",(function(){return a}));n.d(t,"getErrorTitle",(function(){return s}));n.d(t,"getErrorMessage",(function(){return o}));n.d(t,"getDisplayEventId",(function(){return c}));n.d(t,"ignoreError",(function(){return u}));n.d(t,"isSilent",(function(){return l}));n.d(t,"isErrorReoprtingSilenced",(function(){return d}));n.d(t,"isVisibleErrorAction",(function(){return p}));n.d(t,"getError",(function(){return f}));n.d(t,"getActionType",(function(){return h}));var r=n("MJM1");const i=Object(r.a)(["payload","error"]),a=Object(r.a)(["meta","error"]),s=Object(r.a)(["meta","error","titleText"]),o=Object(r.a)(["meta","error","message"]),c=e=>!1!==Object(r.a)(["meta","error","displayEventId"],e),u=Object(r.a)(["meta","error","ignore"]),l=Object(r.a)(["meta","error","silent"]),d=Object(r.a)(["meta","error","silenceErrorReporting"]),p=Object(r.a)(["meta","error","isVisibleToUser"]),f=e=>{if(e.payload instanceof Error)return e.payload;const t=i(e);return t instanceof Error?t:null},h=e=>Object(r.a)(["type"],e)},ncoD:function(e,t,n){"use strict";n.r(t);n.d(t,"getAllAgentResponders",(function(){return p}));var r=n("KXN9"),i=n("x1JE"),a=n("Mx3c"),s=n("dLEV"),o=n("Xvzl"),c=n("SGjM"),u=n("DdHT"),l=n("NL4B"),d=n("W/er");const p=Object(s.createSelector)([d.getResponders],e=>Object(u.a)(i.getEntries,Object(o.a)((e,t)=>Object(l.getType)(t)===a.AGENT),Object(c.a)(r.a))(e))},neHy:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("DrqF");const i=e=>Object(r.a)("function"==typeof e,"Expected an operator to be a `function` not a `%s`",typeof e)},nf9S:function(e,t,n){"use strict";n.r(t);n.d(t,"isConversationalMessage",(function(){return a}));var r=n("0IK8"),i=n("GRT8");function a(e){const t=Object(r.getType)(e);return i.b.includes(t)}},ng2a:function(e,t,n){"use strict";n.r(t);n.d(t,"removeMessageInConversation",(function(){return a}));var r=n("dLEV"),i=n("+tWo");const a=Object(r.createAction)(i.b,({message:e,threadId:t})=>({payload:{message:e,threadId:t}}))},nguO:function(e,t,n){"use strict";n.d(t,"c",(function(){return r}));n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return a}));const r="@type",i="ACTIVELY_PUBLISHING",a="FAILED_TO_PUBLISH"},nhvA:function(e,t,n){"use strict";n.r(t);n.d(t,"getMessageId",(function(){return s}));var r=n("dLEV"),i=n("JGJA"),a=n("8dR1");const s=Object(r.createSelector)(a.a,Object(i.a)("id"))},npjq:function(e,t,n){"use strict";let r;r="undefined"!=typeof NO_I18N_GLOBAL&&!0===NO_I18N_GLOBAL?{}:window.I18n=window.I18n||{};t.a=r},"nqz/":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("Dw+v"),i=n("i9zZ"),a=n("HCbP"),s=n("fT+s"),o=n("vfjv"),c=n("kcmb"),u=n("7Cnu");const l=({data:e})=>(t,n)=>e?Object(i.initializeI18n)({data:e}).then(()=>{const{message:{surveyId:i},sessionId:l}=e;null!==i&&t(Object(a.fetchFeedbackSurvey)(i,l));t(Object(r.a)(e));if(Object(o.getShouldFetchInitialVisitorThreads)(n()))t(Object(s.fetchVisitorThreads)()).then(()=>{t(Object(u.setThreadsSuccess)());t(Object(c.navigateToInitialView)())}).catch(e=>{throw e});else{t(Object(u.setThreadsSuccess)());t(Object(c.navigateToInitialView)())}},()=>{t(Object(r.a)(e))}):null},nt9Q:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("qjq5"),i=n("DdHT"),a=n("46XF");const s=Object(r.a)((e,t,n)=>Object(i.a)(Object(a.a)(null),Object(a.b)(e),Object(a.d)(t),a.c)(n))},nyI8:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("xZ3y"),i=n("o3Zl"),a=n("zFg9"),s=n("Los8");const{TOGGLE_OPEN:o,RECEIVED_WIDGET_SHELL_DATA:c,TRACK_USER_INTERACTION:u}=r,l=e=>({mobile:Object(s.a)(""+e.mobile),open:Object(s.a)(""+e.open),hideWelcomeMessage:Object(s.a)(""+e.hideWelcomeMessage),domain:e.domain,startOpen:e.startOpen,url:e.url,userInteractedWithWidget:!1,isEmbeddedInProduct:Object(s.a)(""+e.inApp53)});function d(e=Object(a.a)(),t){switch(t.type){case i.a:return!t.payload.visible&&t.payload.closedByUser?e.set("startOpen",!1).set("hideWelcomeMessage",!0):e;case c:return e.merge(l(t.payload));case o:!t.payload.isOpened&&t.payload.isUser&&(e=e.set("startOpen",!1).set("hideWelcomeMessage",!0));return e.set("open",t.payload.isOpened);case u:return e.set("userInteractedWithWidget",!0);default:return e}}},nzmY:function(e,t,n){"use strict";var r=n("1pX1"),i=n("DdHT"),a=n("JGJA"),s=n("nDpY"),o=n.n(s),c=n("GPZA"),u=n("+xqs"),l=n("0NIc"),d=n("qjq5"),p=n("QYOI");const f=Object(d.a)((e,t)=>Object(p.Map)(e).merge(t)),h=Object(d.a)((e,t)=>Object(p.Map)(t).merge(e));Object(d.a)((e,t)=>Object(p.fromJS)(t).mergeDeep(e));var b=n("TKd0");n.d(t,"a",(function(){return g}));function g(e={}){let t=Object.assign({},(Object(r.a)(e),e));return Object(i.a)(f({portalId:o.a.get(),status:c.a.STARTED}),h({unseenCount:Object(a.a)("unseenCount",t)||0,threadPreview:Object(u.a)(Object(a.a)("threadPreview",t)),channelDetails:Object(b.a)(Object(a.a)("channelDetails",t))}),l.a)(t)}},"o+We":function(e,t,n){"use strict";var r=n("R4L7"),i=n("pjpP"),a=n("n6ol"),s=n("CITH");const o=()=>Object(s.a)(a.e);n.d(t,"a",(function(){return c}));const c=()=>e=>{o();e(Object(r.toggleInitialMessageBubble)(!1,!0));e(Object(i.a)())}},"o/5C":function(e,t,n){"use strict";var r=n("QYOI"),i=n("qjq5"),a=n("JGJA"),s=n("DdHT"),o=n("0G/n"),c=n("Mx3c"),u=n("l7FR");u.a,c.AGENT,u.b,c.BOT,u.d,c.INTEGRATOR,u.e,c.SYSTEM,u.f,c.VISITOR,u.c,c.EMAIL;Object(a.a)("senderField"),Object(a.a)("actorId");const l=Object(a.a)("deliveryIdentifier"),d=Object(a.a)("name");var p=n("Zui/");const f=Object(a.a)("recipientField"),h=(Object(a.a)("actorId"),Object(a.a)("singleDeliveryIdentifier")),b=Object(a.a)("value"),g=Object(a.a)("type");n("ZI4L");n.d(t,"d",(function(){return m}));n.d(t,"f",(function(){return O}));n.d(t,"b",(function(){return x}));n.d(t,"c",(function(){return R}));n.d(t,"a",(function(){return k}));n.d(t,"e",(function(){return D}));Object(a.a)("id"),Object(a.a)("hiddenBy"),Object(a.a)("channelInstanceId");const m=Object(a.a)("genericChannelId"),O=(Object(a.a)("integrationId"),Object(a.a)("recipients")),v=Object(a.a)("senders"),j=f,y=Object(a.a)("senderField"),E=(Object(a.a)("direction"),e=>{const t=l(e);return t?t.type:void 0}),T=e=>{const t=l(e);return t?t.value:void 0},I=(e,t)=>e.reduce((e,n)=>{const r=h(n);return g(r)===t?e.push(b(r)):e},Object(r.List)()),w=(e,t)=>{const n=O(e);return Object(r.List)(n.filter(e=>j(e)===t))},S=(e,t)=>{const n=v(e);return n&&n.filter(e=>y(e)===t)||Object(r.List)()},A=Object(i.a)((e,t,n)=>{const r=w(n,e);return I(r,t)}),C=Object(i.a)((e,t,n)=>{const r=S(n,e);if(r.size){const e=r.first(),n=E(e);if(n&&n===t){return T(e)||""}}return""}),x=(A("TO",o.b),A("CC",o.b),A("BCC",o.b),Object(s.a)(O,e=>e.reduce((e,t)=>{const n=h(t).value;return n&&!Number.isInteger(n)?e.push(n):e},Object(r.List)())),C("FROM",o.b)),R=(C("ORIGINAL_FROM",o.b),e=>{const t=v(e);return t&&t.size>0&&d(t.first())}),k=Object(a.a)("attachments"),P=Object(i.a)((e,t)=>{const n=k(t);if(n)return n.find(t=>Boolean(t&&Object(a.a)("@type",t)===e))}),D=(Object(i.a)((e,t)=>{const n=k(t);if(n)return n.find(t=>Boolean(t&&Object(a.a)("@type",t)===e))}),P(p.c),P(p.d),e=>m(e))},o3Zl:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="TOGGLE_INITIAL_MESSAGE_BUBBLE"},o4fP:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("threadHistories")},oUkX:function(e,t,n){"use strict";var r=n("okxY"),i=n("8Ma8"),a=n("QgEn");const s=e=>{const{disableAutoFocus:t}=Object(i.c)();return Object(a.jsx)(r.a,Object.assign({contain:!1},e,{autoFocus:!t}))};s.displayName="FocusScopeWithContext";t.a=s},ogEP:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("bYG+");const i=Object(r.a)("name");Object(r.a)("type")},okxY:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));n.d(t,"b",(function(){return u}));n.d(t,"c",(function(){return k}));n.d(t,"d",(function(){return M}));n.d(t,"e",(function(){return B}));var r=n("Lm/k"),i=n("Ktcs"),a=n.n(i),s=n("Zulv"),o=n("xr6y");const c=["ref"];function u(e){if("virtual"===Object(o.a)()){let t=document.activeElement;Object(s.j)(()=>{document.activeElement===t&&document.contains(e)&&Object(s.c)(e)})}else Object(s.c)(e)}function l(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:i}=t(e);r="none"!==n&&"hidden"!==i&&"collapse"!==i}return r}function d(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}function p(e,t){return"#comment"!==e.nodeName&&l(e)&&d(e,t)&&(!e.parentElement||p(e.parentElement,e))}const f=a.a.createContext(null);let h=null;function b(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,c=Object(i.useRef)(),u=Object(i.useRef)(),l=Object(i.useRef)([]),d=Object(i.useContext)(f);var p;let b=null!==(p=null==d?void 0:d.scopeRef)&&void 0!==p?p:null;Object(s.q)(()=>{let e=c.current.nextSibling,t=[];for(;e&&e!==u.current;){t.push(e);e=e.nextSibling}l.current=t},[t,b]);_.getTreeNode(b)&&!_.getTreeNode(l)&&_.addTreeNode(l,b);_.getTreeNode(l).contain=n;E(l,n);R(l,r,n);x(l,o);Object(s.q)(()=>{if(l&&(b||null==b))return()=>{l!==h&&!S(l,h)||b&&!_.getTreeNode(b)||(h=b);_.removeTreeNode(l)}},[l,b]);let m=g(l);return a.a.createElement(f.Provider,{value:{scopeRef:l,focusManager:m}},a.a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:c}),t,a.a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:u}))}function g(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t,o=r||document.activeElement,c=n[0].previousElementSibling,u=k(j(n),{tabbable:i,accept:s},n);u.currentNode=I(o,n)?o:c;let l=u.nextNode();if(!l&&a){u.currentNode=c;l=u.nextNode()}l&&A(l,!0);return l},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t,o=r||document.activeElement,c=n[n.length-1].nextElementSibling,u=k(j(n),{tabbable:i,accept:s},n);u.currentNode=I(o,n)?o:c;let l=u.previousNode();if(!l&&a){u.currentNode=c;l=u.previousNode()}l&&A(l,!0);return l},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=k(j(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();s&&A(s,!0);return s},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=k(j(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();s&&A(s,!0);return s}}}const m=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],O=m.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";m.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const v=m.join(':not([hidden]):not([tabindex="-1"]),');function j(e){return e[0].parentElement}function y(e){let t=_.getTreeNode(h);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function E(e,t){let n=Object(i.useRef)(),r=Object(i.useRef)(null);Object(s.q)(()=>{let i=e.current;if(!t){if(r.current){cancelAnimationFrame(r.current);r.current=null}return}let a=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!y(e))return;let n=document.activeElement,r=e.current;if(!I(n,r))return;let i=k(j(r),{tabbable:!0},r);i.currentNode=n;let a=t.shiftKey?i.previousNode():i.nextNode();if(!a){i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling;a=t.shiftKey?i.previousNode():i.nextNode()}t.preventDefault();a&&A(a,!0)},s=t=>{if(!h||S(h,e)){h=e;n.current=t.target}else y(e)&&!w(t.target,e)?n.current?n.current.focus():h&&C(h.current):y(e)&&(n.current=t.target)},o=t=>{r.current=requestAnimationFrame(()=>{if(y(e)&&!w(document.activeElement,e)){h=e;if(document.body.contains(t.target)){n.current=t.target;n.current.focus()}else h&&C(h.current)}})};document.addEventListener("keydown",a,!1);document.addEventListener("focusin",s,!1);i.forEach(e=>e.addEventListener("focusin",s,!1));i.forEach(e=>e.addEventListener("focusout",o,!1));return()=>{document.removeEventListener("keydown",a,!1);document.removeEventListener("focusin",s,!1);i.forEach(e=>e.removeEventListener("focusin",s,!1));i.forEach(e=>e.removeEventListener("focusout",o,!1))}},[e,t]);Object(i.useEffect)(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function T(e){return w(e)}function I(e,t){return t.some(t=>t.contains(e))}function w(e,t=null){for(let{scopeRef:n}of _.traverse(_.getTreeNode(t)))if(I(e,n.current))return!0;return!1}function S(e,t){var n;let r=null===(n=_.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function A(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{u(e)}catch(e){}}function C(e,t=!0){let n=e[0].previousElementSibling,r=k(j(e),{tabbable:t},e);r.currentNode=n;let i=r.nextNode();if(t&&!i){r=k(j(e),{tabbable:!1},e);r.currentNode=n;i=r.nextNode()}A(i)}function x(e,t){const n=a.a.useRef(t);Object(i.useEffect)(()=>{if(n.current){h=e;I(document.activeElement,h.current)||C(e.current)}n.current=!1},[e])}function R(e,t,n){const r=Object(i.useRef)("undefined"!=typeof document?document.activeElement:null);Object(s.q)(()=>{let r=e.current;if(!t||n)return;let i=()=>{h&&!S(h,e)||(h=e)};document.addEventListener("focusin",i,!1);r.forEach(e=>e.addEventListener("focusin",i,!1));return()=>{document.removeEventListener("focusin",i,!1);r.forEach(e=>e.removeEventListener("focusin",i,!1))}},[e,n]);Object(s.q)(()=>{_.getTreeNode(e).nodeToRestore=r.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey)return;let n=document.activeElement;if(!I(n,e.current))return;let r=_.getTreeNode(e).nodeToRestore,i=k(document.body,{tabbable:!0});i.currentNode=n;let a=t.shiftKey?i.previousNode():i.nextNode();if(!document.body.contains(r)||r===document.body){r=null;_.getTreeNode(e).nodeToRestore=null}if((!a||!I(a,e.current))&&r){i.currentNode=r;do{a=t.shiftKey?i.previousNode():i.nextNode()}while(I(a,e.current));t.preventDefault();t.stopPropagation();a?A(a,!0):T(r)?A(r,!0):n.blur()}};n||document.addEventListener("keydown",i,!0);return()=>{n||document.removeEventListener("keydown",i,!0);let r=_.getTreeNode(e).nodeToRestore;if(t&&r&&(I(document.activeElement,e.current)||document.activeElement===document.body&&h===e)){let t=_.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&document.body.contains(n.nodeToRestore)){A(n.nodeToRestore);return}n=n.parent}}})}}},[e,t,n])}function k(e,t,n){let r=(null==t?void 0:t.tabbable)?v:O,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return(null==t||null===(i=t.from)||void 0===i?void 0:i.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(r)||!p(e)||n&&!I(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});(null==t?void 0:t.from)&&(i.currentNode=t.from);return i}class P{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null),i=new D({scopeRef:e});r.addChild(i);i.parent=r;this.fastMap.set(e,i);n&&(i.nodeToRestore=n)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e),n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef.current&&I(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n.removeChild(t);r.length>0&&r.forEach(e=>n.addChild(e));this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){null!=e.scopeRef&&(yield e);if(e.children.length>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new P;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){this.fastMap=new Map;this.root=new D({scopeRef:null});this.fastMap.set(null,this.root)}}class D{addChild(e){this.children.push(e);e.parent=this}removeChild(e){this.children.splice(this.children.indexOf(e),1);e.parent=void 0}constructor(e){this.children=[];this.contain=!1;this.scopeRef=e.scopeRef}}let _=new P;function M(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,a=Object(i.useRef)({isFocused:!1,isFocusVisible:t||Object(o.b)()}),[s,c]=Object(i.useState)(!1),[u,l]=Object(i.useState)(()=>a.current.isFocused&&a.current.isFocusVisible),d=Object(i.useCallback)(()=>l(a.current.isFocused&&a.current.isFocusVisible),[]),p=Object(i.useCallback)(e=>{a.current.isFocused=e;c(e);d()},[d]);Object(o.d)(e=>{a.current.isFocusVisible=e;d()},[],{isTextInput:n});let{focusProps:f}=Object(o.c)({isDisabled:r,onFocusChange:p}),{focusWithinProps:h}=Object(o.e)({isDisabled:!r,onFocusWithinChange:p});return{isFocused:s,isFocusVisible:a.current.isFocused&&u,focusProps:r?h:f}}let N=a.a.createContext(null);function L(e){let t=Object(i.useContext)(N)||{};Object(s.s)(t,e);return Object(r.a)(t,c)}function B(e,t){let{focusProps:n}=Object(o.c)(e),{keyboardProps:r}=Object(o.h)(e),a=Object(s.i)(n,r),c=L(t),l=e.isDisabled?{}:c,d=Object(i.useRef)(e.autoFocus);Object(i.useEffect)(()=>{d.current&&t.current&&u(t.current);d.current=!1},[t]);return{focusableProps:Object(s.i)(Object.assign({},a,{tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0}),l)}}},ombE:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("currentView")},"p3n+":function(e,t,n){"use strict";var r=n("QYOI"),i=n("Zui/");const a=Object(r.Record)({"@type":i.d,fileIds:Object(r.List)(),fileUsageTypes:Object(r.Map)(),strippedAttachmentCount:0},"FileAttachment");t.a=a},p5It:function(e,t,n){"use strict";n.r(t);n.d(t,"executeTimeOnPageTrigger",(function(){return c}));var r=n("jxkM"),i=n("R4L7"),a=n("xmwc"),s=n("GHgd"),o=n("Ug6J");const c=()=>(e,t)=>{e(Object(a.removeTimeOnPageTrigger)());const n=t(),c=Object(o.a)(n,s.timeOnPageTriggerEnabled);c.hasClientTriggerAlreadyFired||(c.shouldToggleOpen?e(Object(r.toggleOpen)({isOpened:!0})):c.shouldToggleInitialMessageBubble&&e(Object(i.toggleInitialMessageBubble)(!0)))}},p79U:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("g4ag"),i=n("aYGO"),a=n("qjq5"),s=n("DFBY");const o=Object(r.a)(i.a),c=Object(a.a)((e,t)=>{const n=Object(s.getAssignedAgentId)(e);return o(n,t)})},p9k8:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("PpSk"),i=n("UxsU");function a(e){return Object(r.getStatus)(e)===i.a.STARTED}},pHO9:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("scKg");function i(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=e[t](n);return n}function a(...e){e.forEach(r.a);return i.bind(null,e)}},pHbL:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MJM1"),i=n("3HLt"),a=n("kevw");const s=e=>Object(r.a)(i.b,e)||Object(a.b)(Object(a.c)(e))},pZpR:function(e,t,n){"use strict";n.r(t);var r=n("ipOz"),i=n.n(r),a=n("e379"),s=n("Wt04"),o=n("Lm/k"),c=n("F+zP"),u=n("LZPL"),l=n.n(u),d=n("20uS");const p=53,f="USAGE_TRACKER_JS",h="__hstc",b="hubspotutk",g="__hmpl",m="__hsUserToken",O="USAGE_TRACKER_JS_RECORDER_ENABLED",v="USAGE_TRACKER_JS_RECORDED_EVENTS",j="USAGE_TRACKER_JS_RECORDED_EVENT_KEYS",y="HUBLYTICS_EVENTS_53",E=e=>{const t=e=>"object"==typeof e.Raven&&"function"==typeof e.Raven.captureException&&"function"==typeof e.Raven.captureMessage;if("undefined"==typeof window||void 0===e){let e=0,n=!1;return{hasRaven:t,addEventListener:()=>!1,dispatchWindowEvent:()=>!1,isDocumentVisible:()=>!1,isDocumentReady:()=>{if(n||e)return n;e=setTimeout(()=>{n=!0},5e3);return n},isLocalDeployment:!1,isQaDeployment:!1,isProdDeployment:!0,isDebugEnabled:!1,isHubSpotDomain:!1,hasLocalStorage:!1,hasCookieAccess:!1,hasBeaconSupport:!1}}const n=()=>{try{return Boolean(e.localStorage)}catch(e){return!1}},r=()=>{const{navigator:t,document:n}=e;try{return"object"==typeof t&&t.cookieEnabled||"object"==typeof n&&Boolean(n.cookie)}catch(e){return!1}},i=()=>{const{navigator:t}=e;try{return"object"==typeof t&&"function"==typeof t.sendBeacon}catch(e){return!1}},a=()=>{const{document:t}=e;try{return"object"==typeof t&&"string"==typeof t.visibilityState&&"visible"===t.visibilityState}catch(e){return!1}},s=()=>{const{location:t}=e;return"object"==typeof t&&"string"==typeof t.hostname&&d.b.test(t.hostname)};return{hasRaven:t,isDocumentReady:()=>{const{document:t}=e;try{return"object"==typeof t&&"string"==typeof t.readyState&&"complete"===t.readyState}catch(e){return!1}},addEventListener:(t,n)=>{const{document:r,addEventListener:i}=e;return"object"==typeof r&&"function"==typeof i&&i(t,n)},dispatchWindowEvent:(t,n)=>{const{document:r,CustomEvent:i}=e;if("object"==typeof r&&"function"==typeof i){const r=new i(t,{detail:n});return e.dispatchEvent(r)}return!1},isLocalDeployment:!l.a.deployed(),isQaDeployment:l.a.isQa(),isProdDeployment:l.a.isProd(),isDebugEnabled:Boolean(l.a.debug(f)),isHubSpotDomain:s(),hasLocalStorage:n(),hasCookieAccess:r(),hasBeaconSupport:i(),isDocumentVisible:a}},{hasRaven:T,isDocumentReady:I,addEventListener:w,dispatchWindowEvent:S,hasLocalStorage:A,hasCookieAccess:C,hasBeaconSupport:x,isLocalDeployment:R,isQaDeployment:k,isProdDeployment:P,isDebugEnabled:D,isDocumentVisible:_,isHubSpotDomain:M}=E(void 0!==c.n?c.n:void 0);var N=n("yYAF");const L=18e5,B=[{name:"windows 10",pattern:/(Windows 10.0|Windows NT 10.0)/},{name:"windows 8",pattern:/(Windows 8|Windows8.1|Windows NT 6.2|Windows NT 6.3)/},{name:"windows 7",pattern:/(Windows 7|Windows NT 6.1)/},{name:"windows vista",pattern:/Windows NT 6.0/},{name:"windows xp",pattern:/(Windows NT 5.1|Windows XP)/},{name:"android",pattern:/Android/},{name:"linux",pattern:/(Linux|X11)/},{name:"ios",pattern:/(iPhone|iPad|iPod)/},{name:"mac",pattern:/Mac OS X|MacPPC|MacIntel|Mac_PowerPC|Macintosh/}],F=e=>({device_id:c.o(),last_event_id:0,last_sequence_number:0,last_timestamp_checked_against_session:e,session_id:e}),H=e=>{const t=e(g);if(t)try{return JSON.parse(t)}catch(e){}return null},U=(e,t)=>e(g,JSON.stringify(t)),V=(e,{currentTime:t,deviceId:n})=>{const{device_id:r,last_event_id:i=0,last_sequence_number:a=0,last_timestamp_checked_against_session:s=t,session_id:o=t}=e,c={device_id:r,last_event_id:i,last_sequence_number:a,last_timestamp_checked_against_session:s,session_id:o};if(n&&n!==r){const e=F(t);e.device_id=n;return e}if(t-s>L){c.last_event_id=0;c.session_id=t}c.last_event_id=i+1;c.last_sequence_number=a+1;c.last_timestamp_checked_against_session=t;return c},G=(e,t,{currentTime:n,deviceId:r})=>{const i=H(e)||F(n),a=V(i,{currentTime:n,deviceId:r});c.g(()=>U(t,a));return a},W=e=>{const t=B.find(({pattern:t})=>t.test(e));return t?t.name:"unknown"},z=({deviceId:e,getCurrentHref:t,getNetworkType:n,getNetworkSpeed:r,getTempStorage:i,setTempStorage:a})=>{const s=Date.now(),o=G(i,a,{currentTime:s,deviceId:e}),u=Object.assign({},o,{timestamp:s,currentPageUrl:"",networkType:"",networkSpeed:""});u.currentPageUrl=c.C(t(),256);u.networkType=n();u.networkSpeed=r();return u},q=({clientName:e,getReferrer:t,getUserAgent:n,getScreenWidth:r,getScreenHeight:i,getWindowWidth:a,getWindowHeight:s,getDeployableName:o,getDeployableVersion:u})=>{const l={windowWidth:-1,windowHeight:-1,screenWidth:-1,screenHeight:-1,screenSize:"",lastPageUrl:"",howOsDetailed:"",singlePageAppSessionId:Date.now(),trackingClient:e||"custom",deployableName:"",deployableVersion:""};l.windowWidth=a();l.windowHeight=s();l.deployableName=o();l.deployableVersion=u();l.howOsDetailed=W(c.a(n(),"(",")"));l.screenWidth=r();l.screenHeight=i();l.screenSize=c.k(r());l.lastPageUrl=c.C(t(),256);return l},K=(e,t)=>{const n=Object.assign({},t,e),r=c.i(n).filter(e=>!n[e]);return c.r(n,r)},Y=(e,t,n)=>{const r=new Error(t);r.name=e;r.stack=`${e}: ${t}`;r.cause=n;return r},J=e=>{if(e&&e.name&&e.stack&&"object"==typeof e.cause){const t=e.cause;return Boolean(t&&t.type&&t.dangerLevel)}return!1},Q=(e,t)=>J(e)?"object"==typeof t&&"object"==typeof t.extra?Object.assign({},t,{extra:Object.assign({},t.extra,e.cause)}):Object.assign({},t,{extra:Object.assign({},e.cause)}):t,Z=e=>Y("UsageTrackerGenericWarning",e,{type:"generic warning",dangerLevel:"This error does not break tracking or the execution thread."}),X=e=>Y("UsageTrackerError",e,{type:"generic error",dangerLevel:"This error breaks the execution thread."}),$=e=>Y("UsageTrackerConfigError",e,{type:"config error",dangerLevel:"This error breaks the execution thread."}),ee=e=>Y("UsageTrackerEventError",e,{type:"event error",dangerLevel:"This error breaks tracking, but not the execution thread."}),te=(e,t,n,r=!0)=>{const i=c.A(n),a=()=>c.i(i),s=(n,r,s)=>{a().forEach(a=>{const{types:o,oneOf:u,isOptional:l}=i[a],d=n[a],p=void 0!==d,f=c.j(d);if(!l&&!p)throw t(`Missing required ${e} "${a}". ${r} requires that a value be passed for ${e} "${a}". Received "undefined".`);if(p){if(c.l(o)&&!o.includes(f))throw t(`Invalid ${e}. ${r} requires that the "${a}" ${e} type be one of ["${o.join('", "')}"]. Received "${f}".`);if("function"!==f){if(c.l(u)&&!u.includes(String(d)))throw t(`Invalid ${e}. ${r} requires that the "${a}" ${e} be one of ["${u.join('", "')}"]. Received "${d}".`);c.h(s)({key:a,entry:d,isOptional:l})}}});return!0},o=(e,t)=>{c.i(e).forEach(n=>{const r=e[n];s(r,t)})},u=e=>{const t=c.u("default",i),n=c.f(e,t);return r?c.t(n,a()):n},l=e=>c.x(e)((t,n)=>{const r=e[n];t[n]=u(r);return t});return{getKeys:a,mutate:n=>{const a=n(c.p(i,e=>c.A(i[e])));return te(e,t,a,r)},normalize:u,normalizeEach:l,validate:s,validateEach:o,_peek:()=>c.e(i)}},ne=te("client dependency",$,{clientName:{types:["string"],default:"custom"},getDebug:{types:["function"]},getEmail:{types:["function"]},getHubId:{types:["function"]},getHstc:{types:["function"]},getLang:{types:["function"]},getCurrentHref:{types:["function"],isOptional:!0,default:()=>c.z(["window","location","href"],"")},getReferrer:{types:["function"],isOptional:!0,default:()=>c.z(["document","referrer"],"")},getUserAgent:{types:["function"],isOptional:!0,default:()=>c.z(["navigator","userAgent"],"")},getNetworkType:{types:["function"],isOptional:!0,default:()=>c.z(["navigator","connection","effectiveType"],"")},getNetworkSpeed:{types:["function"],isOptional:!0,default:()=>c.z(["navigator","connection","downlink"],"")},getScreenWidth:{types:["function"],isOptional:!0,default:()=>c.z(["screen","width"],"")},getScreenHeight:{types:["function"],isOptional:!0,default:()=>c.z(["screen","height"],"")},getWindowWidth:{types:["function"],isOptional:!0,default:()=>c.z(["window","innerWidth"],"")},getWindowHeight:{types:["function"],isOptional:!0,default:()=>c.z(["window","innerHeight"],"")},getDeployableName:{types:["function"],isOptional:!0,default:()=>c.z(["window","hubspot","bender","currentProject"],"")},getDeployableVersion:{types:["function"],isOptional:!0,default:()=>c.z(["window","hubspot","bender","currentProjectVersion"],"")},logMessage:{types:["function"],isOptional:!0,default:(...e)=>c.z(["console","debug"],(...e)=>e)(...e)},logWarning:{types:["function"],isOptional:!0,default:(...e)=>c.z(["console","warn"],(...e)=>e)(...e)},logError:{types:["function"],default:(...e)=>c.z(["console","error"],(...e)=>e)(...e)},reportError:{types:["function"],isOptional:!0,default:()=>{}},reportWarning:{types:["function"],isOptional:!0,default:()=>{}},getTempStorage:{types:["function"]},setTempStorage:{types:["function"]},send:{types:["function"]}}),re=te("config option",$,{trackerName:{types:["string"],isOptional:!0,default:"default"},allowUnauthed:{types:["boolean"],isOptional:!0,default:!1},bypassPool:{types:["boolean"],isOptional:!0,default:!1},debug:{types:["boolean","function"],isOptional:!0},events:{types:["object"]},isBeforeUnload:{types:["boolean"],isOptional:!0,default:!1},isExternalHost:{types:["boolean"],isOptional:!0,default:!1},lastKnownEventProperties:{types:["array"],isOptional:!0,default:[]},onError:{types:["function"],isOptional:!0},onWarning:{types:["function"],isOptional:!0},onScheduled:{types:["function"],isOptional:!0,default:()=>{}},preserveTrackerProperties:{types:["boolean"],isOptional:!0,default:!0},preserveTrackerEvents:{types:["boolean"],isOptional:!0,default:!1},properties:{types:["object"],isOptional:!0,default:{}},standalone:{types:["boolean"],isOptional:!0,default:!1}}),ie=te("tracker properties",$,{email:{types:["string","function","object","null"]},hubId:{types:["number","function","object","null"]},hstc:{types:["string","function","object","null"]},lang:{types:["string","function","object","null"]},deviceId:{types:["string","function","object","null"],isOptional:!0,default:void 0}},!1),ae=["activation","creation","error","exposure","funnel","interaction","none","signup","usage","view","warning"],se=te("event property",$,{name:{types:["string"]},namespace:{types:["string"],isOptional:!0,default:""},class:{types:["string"],oneOf:[...ae]},version:{types:["string"],isOptional:!0,default:"v1"},properties:{types:["object"],isOptional:!0,default:{}},meta:{types:["object"],isOptional:!0}}),oe=["boolean","string","number","array"],ce=te("event property",$,{type:{types:["string","array"],oneOf:[...oe]},isOptional:{types:["boolean"],isOptional:!0,default:!1},description:{types:["string"],isOptional:!0,default:""}}),ue=({getTempStorage:e,setTempStorage:t})=>({addEvents:n=>{try{const r=e(y)||"[]",i=JSON.parse(r).reverse().slice(0,49).reverse();t(y,JSON.stringify(i.concat(n)))}catch(e){t(y,JSON.stringify(n))}},getEvents:()=>{try{const t=e(y)||"[]";return JSON.parse(t)}catch(e){t(y,"[]")}return[]},removeEvents:n=>{try{const r=e(y)||"[]",i=JSON.parse(r).filter(e=>-1===JSON.stringify(n).indexOf(JSON.stringify(e)));t(y,JSON.stringify(i))}catch(e){t(y,"[]")}}}),le=({getTempStorage:e,setTempStorage:t})=>{const n=Object(c.c)(),r=ue({getTempStorage:e,setTempStorage:t});return{peek:n.peek,push:e=>{n.enqueue(e);Object(c.g)(()=>r.addEvents([e]))},flush:()=>{const e=[];do{const t=n.dequeue();t&&e.unshift(t)}while(n.peek());Object(c.g)(()=>r.removeEvents(e));return e}}},de=(e,t=2e3,n=3)=>{let r=0,i=0,a=e();const s=e=>e(),o=o=>{r||(r=setInterval(()=>{const t=i>=n;a=e()||t;if(a){clearInterval(r);s(o);r=0;i=0}else i+=1},t))},u=c.d(s,t);return{scheduleFlush:e=>a?u(e):o(e)}},pe=e=>c.p(e,t=>{const n=e[t];n.properties=c.p(n.properties,(e,t)=>"string"==typeof t||c.l(t)?{type:t,isOptional:!1}:t);n.properties=ce.normalizeEach(n.properties);return n}),fe=e=>{const t=Object.freeze(e),n=e=>{const n=t[e];if(!n||"object"!=typeof n)throw ee(`Invalid event key. The event definition for "${e}" is undefined. Check your events.yaml dictionary.`);return n},r=(e,t={})=>{const r=n(e).properties||{},i=t||{},a=[...oe,"null"],s=c.p(r,e=>{const{type:t,isOptional:n}=r[e];if(n)return{types:a,isOptional:!0};if("string"==typeof t){if(oe.includes(t))return{types:[t],isOptional:!1};if(t.includes("oneOf")){return{oneOf:c.a(t,"[","]").split(",").map(e=>c.B(c.B(e,'"'),"'")),isOptional:!1}}}return{oneOf:t,isOptional:n}}),o=c.p(i,()=>({types:a,isOptional:!0})),u=c.f(s,o);return te("event property",ee,u,!1)};return{getDefinition:n,createPropertySchema:r,getAll:()=>t}},he=(e,t)=>{const n=se.normalizeEach(e);se.validateEach(n,t);return pe(n)},be=(e,t,n)=>{let r=`[usage-tracker-core "${e}"] ${t}`;n&&n.trim().length>0&&(r+=`\n----------------------------------------\n${n}\n----------------------------------------`);return r},ge=e=>(t,n,r)=>{const{where_app:i,what_event:a}=r||{},s=`eventKey: ${t}\neventType: ${`[${c.v(i)}] `+c.v(a)}`,o=JSON.parse(JSON.stringify(r||{}));o.what_extra_json=JSON.parse(o.what_extra_json||"{}");e(be("debug log",n,s),o)},me=(e,t)=>(n,r)=>{e(n);c.h(t)(n,r)},Oe=(e,t)=>(n,r)=>{e(n);c.h(t)(n,r)},ve=(e,t,n)=>r=>(i,a)=>{e(a);const s=Z(`Property "${i}" failed to resolve asynchronously and will fallback to "null".`);t(s);c.h(n)(a,{extra:{propertyName:i},fingerprint:["usage-tracker-js","tracker:failedResolveProperty","event:"+r]})},je=["namespace","lang","screen","subscreen","timestamp","device_id","session_id","last_sequence_number","last_event_id"],ye=(e,t,n)=>{const r=t||n;if(!r||"*"===r)throw ee(`Namespace not found for "${e}".`);return r},Ee=(e,t)=>{!e.who_email&&t.raw.email&&(e.who_email=t.raw.email);!e.who_identifier&&t.raw.userId&&(e.who_identifier=t.raw.userId);e.who_identifier_v2||(e.who_identifier_v2=t.user);e.who_team_identifier||(e.who_team_identifier=t.team);e.utk||(e.utk=t.utk);return e},Te=(e,t)=>{const{namespace:n,lang:r,screen:i,subscreen:a,timestamp:s,device_id:u,session_id:l,last_sequence_number:f,last_event_id:h}=t,b=Object(o.a)(t,je),g=b,m=c.r(g,[...d.e,...d.d]),O=c.x(m)((e,t)=>{let n=m[t];const r=c.j(n);if(d.c.includes(r))return e;if("string"===r&&""===n.trim())return e;c.l(n)&&(n=n.filter(e=>null!=e));e[t]=n;return e});O.locale=r;const v={hublytics_account_id:p,where_app:ye(b.eventKey,e.namespace,n),where_screen:i||"unknown",where_subscreen:a||"",when_timestamp:s,device_id:u,session_id:l,event_id:h,sequence_number:f,language:r,what_event:e.name,what_event_class:e.class.toUpperCase(),what_version:e.version,what_extra_json:JSON.stringify(O),library_name:"usage-tracker-js",library_version:1};"string"==typeof t.subscreen2&&(v.where_subscreen2=t.subscreen2);d.d.forEach(e=>{const n=t[e];"string"==typeof n&&(v[e]=n)});return v},Ie=(e,t,n)=>{const r=Te(e,t);return n?Ee(r,n):r},we=({deviceId:e,utk:t,email:n,hubId:r},{allowUnauthed:i,isExternalHost:a})=>{let s,o,c;r&&(c=r);n?o=`EMAIL:::${n}:::${p}`:t?s=a?`TEMP_ID:::${t}:::${p}`:`VISITOR:::${t}:::${p}`:e&&(s=`TEMP_ID:::${e}:::${p}`);if(!o&&!i)throw ee("Could not identify an authenticated user. Please specify an email address (email).");if(!c&&!i)throw ee("Could not identify a HubSpot Portal ID. Please specify a Portal ID (hubId).");if(!s&&!o&&i)throw ee("Could not identify the user. Please specify an email address (email) or an __hstc cookie (hstc) or a device id (deviceId).");return{user:o||s,team:c}},Se=e=>{let t;if("string"==typeof e&&e){const n=e.split(".");n.length>1&&(t=n[1])}return t},Ae=({email:e,userId:t,hubId:n,hstc:r,deviceId:i},{allowUnauthed:a,isExternalHost:s})=>{const o=Se(r),{user:c,team:u}=we({deviceId:i,utk:o,email:e,hubId:n},{allowUnauthed:a,isExternalHost:s});return{user:c,team:u,utk:o,raw:{email:e,userId:t,hubId:n,hstc:r,deviceId:i}}},Ce=e=>{const t=c.w({"tracker.client":e.clientName,"tracker.name":e.trackerName}),n=ge(e.logMessage),r=me(e.logError,t(e.onError)),i=fe(e.events),a=ie.mutate(e=>({email:Object.assign({},e.email,{types:["string","null"]}),hubId:Object.assign({},e.hubId,{types:["number","null"]}),hstc:Object.assign({},e.hstc,{types:["string","null"]}),lang:Object.assign({},e.lang,{types:["string","null"]}),deviceId:Object.assign({},e.deviceId,{types:["string","null"]})})),s="function"==typeof e.debug?e.debug():e.debug,o=(e,t)=>{try{i.createPropertySchema(e,t).mutate(e=>Object.assign({},e,a._peek())).validate(t,`Event "${e}"`);return!0}catch(n){r(n,{extra:{eventKey:e,eventProperties:c.y(t)},fingerprint:["usage-tracker-js","tracker:validateProperties","event:"+e]});return!1}},u=e=>{try{return i.getDefinition(e)}catch(t){r(t,{extra:{eventKey:e},fingerprint:["usage-tracker-js","tracker:getDefinition","event:"+e]});return null}},l=(t,n)=>{const i={email:n.email,userId:n.userId,hubId:n.hubId,hstc:n.hstc,deviceId:n.deviceId},a={allowUnauthed:e.allowUnauthed,isExternalHost:e.isExternalHost};try{return Ae(i,a)}catch(e){r(e,{extra:Object.assign({eventRawIdentifiers:c.y(i),eventProperties:c.y(n)},a),fingerprint:["usage-tracker-js","tracker:getIdentifiers","event:"+t]});return null}},d=(e,t,n,i)=>{try{return Ie(t,n,i)}catch(t){r(t,{extra:{eventKey:e,eventProperties:c.y(n),eventIdentifiers:c.y(i?i.raw:void 0)},fingerprint:["usage-tracker-js","tracker:createEvent","event:"+e]});return null}},p=(t,n,i)=>{try{e.scheduleEvent(t,n,c.t(e,["bypassPool","isBeforeUnload","isExternalHost"]));c.g(()=>c.h(e.onScheduled)(t));return!0}catch(e){r(e,{extra:{eventKey:t,eventIdentifiers:c.y(i.raw)},fingerprint:["usage-tracker-js","tracker:dispatchEvent","event:"+t]});return!1}},f=(e,t,r,i)=>{const a=c.f(i,r),o=l(e,a),u=Object.assign({},a,{eventKey:e}),f=d(e,t,u,o||void 0);if(o&&f){s&&n(e,"Event is being dispatched to be sent.",f);return p(e,f,o)}s&&n(e,"Event was not dispatched.",f||void 0);return!1};return{trackStandaloneEvent:(e,t,n,r)=>{const i=c.b(t),a=ae.includes(r.class)&&r.class||/(pageView|View|pageview)/.test(i)?"view":"interaction";return f("standalone:::"+i,{name:t,namespace:e,class:a,version:"v1",properties:{},meta:{}},n,r)},trackDictionaryEvent:(e,t,n)=>{const r=u(e);if(!r)return!1;const i=n(r);return!!o(e,i)&&f(e,r,t,i)}}},xe=(e={},t,n)=>{const r={},i=c.i(e),a=i.length,s=i.reduce((t,n)=>{const i=e[n];if(i&&"function"==typeof i){t.push({key:n,func:i});return t}if(i&&c.m(i)){t.push({key:n,promise:i});return t}r[n]=i;return t},[]),o=()=>{Object.keys(r).length===a&&t(r)};if(s.length){const e=(e,t)=>{r[e]=t;o()},t=(e,t)=>{r[e]=null;c.h(n)(e,t);o()};return s.forEach(({key:n,promise:r,func:i})=>{const a=i?new Promise(e=>e(i())):r;a&&a.then(t=>e(n,t)).catch(e=>t(n,e))})}return t(r)},Re=e=>{let t=Object.assign({},e.properties);const n=c.w({"tracker.client":e.clientName,"tracker.name":e.trackerName}),r=ve(e.logError,e.logWarning,n(e.onError)),i="function"==typeof e.debug?e.debug():e.debug,a=Oe(e.logWarning),s=n=>{const r=e.lastKnownEventProperties;r&&r.length&&r.forEach(e=>{const r=n[e],i=c.j(r);oe.includes(i)&&(t[e]=r)})};return{resolveProperties:(e,n,i)=>{xe(t,e=>{t=c.f(e,t);s(n);i(c.x(t)((e,n)=>{const r=t[n],i=c.j(r);return Object.assign({},e,{[n]:d.c.includes(i)?null:r})}))},r(e))},createPropertiesFilter:(t,n)=>r=>{const s=c.i(r.properties),o=e=>d.a.includes(e)||s.includes(e),u=Object.entries(n).filter(([e,t])=>!o(e)&&null!=t);if(u.length){a(Z(`Event "${t}" is possibly being tracked with unexpected properties. See go/unexpectedproperties`));i&&e.logMessage(be("debug log",`Event "${t}" has unexpected Properties.`,"unexpectedProperties: "+u.map(e=>`"${e}"`).join(", ")))}return n},getCache:()=>c.A(t),addToCache:(e,n)=>{t[e]=n}}},ke=(e,t)=>{if(!t||"object"!=typeof t)throw $(`Invalid argument. The "createTracker" function requires to be passed a config argument of type "object". Received type "${typeof t}".`);const n=re.mutate(t=>Object.assign({},t,{debug:Object.assign({},t.debug,{default:e.getDebug}),onError:Object.assign({},t.onError,{default:e.reportError}),onWarning:Object.assign({},t.onWarning,{default:e.reportWarning})})),r=ie.mutate(t=>Object.assign({},t,{email:Object.assign({},t.email,{default:e.getEmail}),hubId:Object.assign({},t.hubId,{default:e.getHubId}),hstc:Object.assign({},t.hstc,{default:e.getHstc}),lang:Object.assign({},t.lang,{default:e.getLang})})),i=n.normalize(t);n.validate(i,'"createTracker"');const a=r.normalize(i.properties||{});r.validate(a,'"createTracker"');const s=he(i.events,'"createTracker"');return Object.assign({events:s,properties:a},c.r(i,["events","properties"]),e)},Pe=(e,t={})=>{const n=ke(e,t),{trackDictionaryEvent:r,trackStandaloneEvent:i}=Ce(n),a=c.w({"tracker.client":n.clientName,"tracker.name":n.trackerName}),s=me(n.logError,a(n.onError)),o=Re(n),u="function"==typeof t.debug?t.debug():t.debug,l=(e,t,r={})=>{try{if(!e||"string"!=typeof e)throw X(`Invalid argument. The "track" method requires the 1st argument to be of type "string". Received type "${typeof e}".`);if(!t||"string"!=typeof t)throw X(`Invalid argument. The "track" method requires the 2nd argument to be of type "string". Received type "${typeof t}".`);if(!r||"object"!=typeof r)throw X(`Invalid argument. The "track" method requires the 3rd argument to be of type "object". Received type "${typeof r}".`);o.resolveProperties(t,r,a=>i(e,t,n.getMetaProperties(a),c.f(r,a)))}catch(n){s(n,{extra:{appName:e,eventName:t},fingerprint:["usage-tracker-js","tracker:track"]})}},d=(e,t={})=>{try{if(!e||"string"!=typeof e)throw X(`Invalid argument. The "track" method requires the 1st argument to be of type "string". Received type "${typeof e}".`);if(!t||"object"!=typeof t)throw X(`Invalid argument. The "track" method requires the 2nd argument to be of type "object". Received type "${typeof t}".`);t.deviceId&&o.addToCache("deviceId",t.deviceId);o.resolveProperties(e,t,i=>r(e,n.getMetaProperties(i),o.createPropertiesFilter(e,c.f(t,i))))}catch(t){s(t,{extra:{eventKey:e},fingerprint:["usage-tracker-js","tracker:track"]})}};return{clone:(t={})=>{try{if(!t||"object"!=typeof t)throw X(`Invalid argument. The "clone" method requires to be passed a valid tracker config of type "object". Received type "${typeof t}".`);const r=c.r(c.f(t,n),c.i(e)),i=c.t(o.getCache(),ie.getKeys()),a=c.r(o.getCache(),c.i(i));r.properties=c.f(t.properties||{},i);r.preserveTrackerProperties&&(r.properties=c.f(r.properties,a));r.preserveTrackerEvents&&(r.events=c.f(r.events||{},n.events));return Pe(e,r)}catch(e){s(e,{extra:{overrides:t},fingerprint:["usage-tracker-js","tracker:clone"]})}},getConfig:()=>{try{if(u)return Object.assign({},c.r(n,["properties"]),{properties:o.getCache()});throw X("Invalid call. This method should only be used when 'debug: true'. Please do not use this in production.")}catch(e){s(e,{extra:{debug:u},fingerprint:["usage-tracker-js","tracker:getConfig"]})}},setProperties:(e={})=>{try{if(!e||"object"!=typeof e)throw X(`Invalid argument. The "setProperties" method requires to be passed a properties argument of type "object". Received type "${typeof e}".`);c.i(e).forEach(t=>{o.addToCache(t,e[t])})}catch(e){s(e,{fingerprint:["usage-tracker-js","tracker:setProperties"]})}},track:t.standalone?l:d}},De=(e={})=>{const t=ne.normalize(e);ne.validate(t,'"createClient"');const{clientName:n,getDebug:r,getEmail:i,getHubId:a,getHstc:s,getLang:o,getCurrentHref:u,getReferrer:l,getUserAgent:d,getNetworkType:p,getNetworkSpeed:f,getScreenWidth:h,getScreenHeight:b,getWindowWidth:g,getWindowHeight:m,getDeployableName:y,getDeployableVersion:E,getTempStorage:T,logMessage:A,logWarning:C,logError:x,reportError:R,reportWarning:k,send:P,setTempStorage:D}=t,M=le({getTempStorage:T,setTempStorage:D}),N=ue({getTempStorage:T,setTempStorage:D}),{scheduleFlush:L}=de(I),B=(e,t)=>{const{isBeforeUnload:n,isExternalHost:r}=t;let i="clientSendTimestamp="+Date.now();r&&(i+="&dil=true");P({events:e,query:i,isBeforeUnload:!!n,onFailure:()=>{N.addEvents(e)}})},F=e=>{const t=M.flush();t&&t.length&&B(t,e)},H=(e,t)=>{e.forEach(e=>M.push(e));Object(c.g)(()=>L(()=>F(t)))},U={clientName:n,getCurrentHref:u,getReferrer:l,getUserAgent:d,getNetworkType:p,getNetworkSpeed:f,getScreenWidth:h,getScreenHeight:b,getWindowWidth:g,getWindowHeight:m,getDeployableName:y,getDeployableVersion:E,getTempStorage:T,setTempStorage:D},V=Object(c.s)(q),G=({deviceId:e})=>{const t=V(U),n=z(Object.assign({deviceId:e},U));return K(t,n)},W=(e,t)=>{try{const t=T(j)||"[]",n=JSON.parse(t).reverse().slice(0,49).reverse();D(j,JSON.stringify(n.concat(e)))}catch(e){D(j,"[]")}try{const e=T(v)||"[]",n=JSON.parse(e).reverse().slice(0,49).reverse();D(v,JSON.stringify(n.concat(t)))}catch(e){D(v,"[]")}},Y=e=>{const t=N.getEvents();if(Object(c.l)(t)&&t.length>0){N.removeEvents(t);B(t,{isExternalHost:e.isExternalHost,isBeforeUnload:!0})}},J=(e="",t,n)=>{(n.bypassPool||n.isBeforeUnload?B:H)([t],n);Object(c.g)(()=>S("usageTrackerEvent",{eventKey:e,eventPayload:t}));Object(c.g)(()=>{"true"===T(O)&&W(e,t)})};return{createTracker:e=>{w("beforeunload",()=>F({isExternalHost:e.isExternalHost,isBeforeUnload:!0}));w("visibilitychange",()=>{_()||F({isExternalHost:e.isExternalHost,isBeforeUnload:!0})});Object(c.g)(()=>Y(e));return Pe({clientName:n,getMetaProperties:G,getDebug:r,getEmail:i,getHubId:a,getHstc:s,getLang:o,logError:x,logMessage:A,logWarning:C,reportError:R,reportWarning:k,scheduleEvent:J},e)}}},_e=(e,t)=>{const n=("; "+t).split(";");if(n.length)for(let t=0;tC?_e(e,c.n.document.cookie):null;var Ne={getItem:(e="")=>{if(A)try{return c.n.sessionStorage.getItem(e)||""}catch(e){}return null},setItem:(e="",t="")=>{if(A)try{c.n.sessionStorage.setItem(e,t||"")}catch(e){}return t},removeItem:(e="")=>{if(A)try{c.n.sessionStorage.removeItem(e)}catch(e){}}};var Le={getItem:(e="")=>{if(A)try{return c.n.localStorage.getItem(e)||""}catch(e){}return null},setItem:(e="",t="")=>{if(A)try{c.n.localStorage.setItem(e,t||"")}catch(e){}return t},removeItem:(e="")=>{if(A)try{c.n.localStorage.removeItem(e)}catch(e){}}};function Be(){return Me(h)||null}function Fe(){const e=Be();return Me(b)||e&&e.split(".")[1]||null}function He(){const{hubspot:e={portal:{}}}=c.n||{};return"portal"in e&&"id"in e.portal?e.portal.id:null}function Ue(){return m in c.n?"."+String(c.n[m]):null}function Ve(e=(Fe()||He()?Le:Ne)){const{device_id:t}=G(e.getItem,e.setItem,{currentTime:Date.now()});return t}var Ge=(e,t={})=>"object"==typeof c.n&&T(c.n)&&c.n.Raven.captureException(e,Q(e,Object.assign({},t,{level:"error"})));var We={getHstc:Be,getAnonymousHstc:Ue,sendBeacon:(e,t,n=(()=>{}))=>{let r=!1;if(x)try{const n=JSON.stringify(t),i=new Blob([n],{type:"text/plain"});r=c.n.navigator.sendBeacon(e,i)}catch(e){Ge(e)}r||"function"!=typeof n||n();return r},reportError:Ge,reportWarning:(e,t={})=>"object"==typeof c.n&&T(c.n)&&c.n.Raven.captureException(e,Q(e,Object.assign({},t,{level:"warning"}))),getDebug:()=>D,getLang:(e="en-US")=>{if(void 0!==c.n&&"object"==typeof c.n.navigator){const e=c.n.navigator.languages?c.n.navigator.languages[0]:c.n.navigator.language;if(e)return e.toLocaleLowerCase()}return e},getTempStorage:Le.getItem,setTempStorage:Le.setItem,logError:(...e)=>{(R||k||D)&&console.error(...e)},logWarning:(...e)=>{(R||k||D)&&console.warn(...e)}};const ze=(e,{data:t})=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),qe=Object(N.getFullUrl)("app-api"),Ke="/usage-logging/v1/log/hublytics-multi/no-auth",Ye=e=>We.reportError(e,{fingerprint:["usage-tracker-js","network"]});var Je=De({clientName:"anonymous",getDebug:We.getDebug,getLang:We.getLang,getTempStorage:Ne.getItem,setTempStorage:Ne.setItem,logWarning:We.logWarning,logError:We.logError,reportWarning:We.reportWarning,reportError:We.reportError,getHstc:()=>null,getEmail:()=>null,getHubId:()=>null,send:({events:e,query:t="",onFailure:n})=>{const r=`${qe}${Ke}?${t}`,i=e=>{Ye(e);Object(c.h)(n)()},a=()=>{ze(r,{data:e}).catch(i)};We.sendBeacon(r,e,a)}});const Qe=["omitProperties","scrubProperties"],Ze=["viralSourcePortalId","viralSourceUserId","referrerUrl","referrerParams","currentPageUrl","lastPageUrl"],Xe=[...Ze,"email","userId","hubId","hstc","utk"],$e={allowUnauthed:!0,isExternalHost:!M,events:void 0,omitProperties:Xe,scrubProperties:Ze},et=(e,t,n)=>new Proxy(t,{get:(t,r)=>"setProperties"===r?e=>t.setProperties(Object(c.r)(e,n)):"track"===r?e.standalone?(e,r,i)=>t.track(e,r,Object(c.r)(i,n)):(e,r)=>t.track(e,Object(c.r)(r,n)):"clone"===r?r=>et(e,t.clone(r),n):t[r]}),tt=e=>{const t=Object(c.f)(e||$e,$e),{omitProperties:n,scrubProperties:r}=t,i=Object(o.a)(t,Qe),a=Object(c.r)(i.properties,n||Xe),s=Object(c.q)(r||Ze,null);return et(i,Je.createTracker(Object.assign({},i,{properties:Object.assign({},a,s)})),n||Xe)},nt=e=>new URLSearchParams(e.search).get("uuid")||void 0,rt=e=>{try{const t=H(Le.getItem);t&&t.device_id===e&&Le.removeItem(g)}catch(e){}Ne.removeItem(g)};var it={init:(e,{history:{location:t},storeUuidOnUrl:n})=>{const r=tt(e),i=n?nt(t):void 0;r.setProperties({deviceId:i||Ve(Ne)});return r},switch:(e,{history:{location:t,replace:n},storeUuidOnUrl:r})=>{if(!0===r){let e=nt(t);(void 0===e||e.length>64)&&(e=Ve(Ne));const r=new URLSearchParams(t.search);r.set("uuid",e);n(`${t.pathname}?${r}`)}}},at=n("npjq"),st=n("CQiV"),ot=n("GgP/"),ct=n.n(ot);const ut=(e=!0)=>ct()({ignoreRedirect:!0,cached:e}).then(({user:e})=>e.email).catch(()=>null),lt=(e=!0)=>ct()({ignoreRedirect:!0,cached:e}).then(({portal:e})=>e.portal_id).catch(()=>null),dt=()=>Promise.resolve(at.a.Info).then(st.a).catch(We.getLang),pt=Object(c.s)(ut),ft=Object(c.s)(lt),ht=Object(c.s)(dt),bt=Object(N.getFullUrl)("app-api"),gt="/usage-logging/v1/log/hublytics-multi/no-auth",mt=e=>We.reportError(e,{fingerprint:["usage-tracker-js","network"]});const Ot=De({clientName:"app",getDebug:We.getDebug,getHstc:We.getHstc,getTempStorage:We.getTempStorage,setTempStorage:We.setTempStorage,logWarning:We.logWarning,logError:We.logError,reportWarning:We.reportWarning,reportError:We.reportError,getEmail:pt,getHubId:ft,getLang:ht,send:({events:e,query:t="",onFailure:n})=>{const r=`${bt}${gt}?${t}`,i=e=>{mt(e);Object(c.h)(n)()},a=()=>{ze(r,{data:e}).catch(i)};We.sendBeacon(r,e,a)}}).createTracker;var vt={init:e=>Ot(e),switch:(e,{history:{location:t,replace:n},storeUuidOnUrl:r})=>{if((void 0===e||"anonymous"===e)&&!0===r){const e=new URLSearchParams(t.search),r=nt(t);if(void 0!==r){rt(r);e.delete("uuid");n(`${t.pathname}?${e}`)}}}};const jt=(e=2e3)=>new Promise(t=>{let n=0,r=0;const i=()=>{const e=We.getHstc();if(e){clearTimeout(r);clearInterval(n);t(e)}};n=setInterval(i,100);r=setTimeout(()=>{clearInterval(n);t(void 0)},e);i()}),yt=Object(N.getFullUrl)("app-api"),Et="/usage-logging/v1/log/hublytics-multi/no-auth",Tt=e=>We.reportError(e,{fingerprint:["usage-tracker-js","network"]});var It=De({clientName:"public",getDebug:We.getDebug,getLang:We.getLang,getTempStorage:We.getTempStorage,setTempStorage:We.setTempStorage,logWarning:We.logWarning,logError:We.logError,reportWarning:We.reportWarning,reportError:We.reportError,getHstc:jt,getEmail:()=>null,getHubId:()=>null,send:({events:e,query:t="",onFailure:n})=>{const r=`${yt}${Et}?${t}`,i=e=>{Tt(e);Object(c.h)(n)()},a=()=>{ze(r,{data:e}).catch(i)};We.sendBeacon(r,e,a)}});const wt={allowUnauthed:!0,isExternalHost:!M,events:void 0},St=e=>{const t=Object(c.f)(e||wt,wt);return It.createTracker(t)};const At={anonymous:it,authed:vt,public:{init:e=>St(e),switch:(e,{history:{location:t,replace:n},storeUuidOnUrl:r})=>{if((void 0===e||"anonymous"===e)&&!0===r){const e=new URLSearchParams(t.search),r=nt(t);if(void 0!==r){rt(r);e.delete("uuid");n(`${t.pathname}?${e}`)}}}}},Ct=["trackerType","onBeforeSwitch"],xt={history:(()=>{const e="object"==typeof c.n&&"object"==typeof c.n.history,t=()=>e&&c.n.history.state&&c.n.history.state.state||{};return{get location(){return e?{pathname:c.n.location.pathname,search:c.n.location.search,hash:c.n.location.hash,state:t(),key:t().key||""}:{pathname:"",search:"",hash:"",state:t(),key:t().key||""}},replace:(t,n={})=>{e&&c.n.history.replaceState(Object.assign({},n),"","string"==typeof t?`${c.n.location.origin}${t}`:t.toString())},push:(t,n={})=>{e&&c.n.history.pushState(Object.assign({},n),"","string"==typeof t?`${c.n.location.origin}${t}`:t.toString())}}})(),storeUuidOnUrl:!0},Rt=(e={})=>{let t;const n={trackerType:"public",events:void 0,onBeforeSwitch:()=>null},{history:r,storeUuidOnUrl:i}=Object(c.f)(e||{},xt);return{createTracker:e=>{const a=Object(c.f)(e||{},n),{trackerType:s,onBeforeSwitch:u}=a,l=Object(o.a)(a,Ct),d=At[s];t!==s&&Object(c.h)(u)({from:t,to:s});d.switch(t,{history:r,storeUuidOnUrl:i});const p=d.init(l,{history:r,storeUuidOnUrl:i});t=s;return p}}};var kt=n("nDpY"),Pt=n.n(kt),Dt=n("JTxz"),_t=n("+2tz"),Mt=n.n(_t);const{createTracker:Nt}=Rt({storeUuidOnUrl:!1}),Lt=({messagesUtk:e})=>({hubId:Pt.a.get(),hstc:e?"."+e:null,isIncludedInPageViewSample:Math.random()({namespace:"conversations-visitor-ui",hubId:Pt.a.get(),isIncludedInPageViewSample:!1});function Ft({messagesUtk:e,inApp53:t=!1}){return Nt({events:Mt.a,trackerType:t?"authed":e?"public":"anonymous",properties:t?Bt():Lt({messagesUtk:e})})}n.d(t,"getUsageTracker",(function(){return Ut}));const Ht=()=>Ft({messagesUtk:Object(s.getMessagesUtk)(),inApp53:Object(a.a)()}),Ut=i()(Ht)},pcz0:function(e,t,n){"use strict";var r=n("+KD7"),i=n("0srx"),a=n("kMm/");const s={alignItems:"flex-start",avatarWidth:"32px",backgroundColor:r.l,borderColor:r.a,borderRadius:"4px",borderWidth:"1px",messageSpacing:"8px",textColor:r.k,fileAttachmentTheme:Object(i.a)(),quickReplyTheme:Object(a.a)(),widgetAccent:r.k,headerBackgroundColor:r.r,headerTextColor:r.q,avatarBackgroundColor:r.a,avatarBorderColor:r.a,avatarTextColor:r.q},o=e=>Object.assign({},s,e);t.a=o},pdIa:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("Ozt8"),i=n("mlLV"),a=n("Zui/"),s=n("JGJA");const o=({name:e,multiSelect:t,value:n})=>{Object(r.postExternalApiEvent)({eventType:i.QUICK_REPLY_BUTTON_CLICK,payload:{name:e,multiSelect:t,value:n}})},c=e=>{const t=Object(s.a)("quickReplies",e),n=Object(s.a)("allowMultiSelect",e),r={name:a.i,multiSelect:n,value:Array.isArray(t)&&t.length?t.map(e=>e.value):[]};o(r)}},pdKL:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>{const t=(...n)=>n.length>=e.length?e.apply(null,n):t.bind(null,...n);return t}},piVz:function(e,t,n){"use strict";var r=n("dLEV"),i=n("JGJA");const a=Object(i.a)("initialMessageBubbleVisible");var s=n("E9A7"),o=n("21jQ"),c=n("rjAk"),u=n("YNiY"),l=n("Pda3");n.d(t,"a",(function(){return d}));const d=Object(r.createSelector)([s.getShowInitialMessage,a,o.getIsOpen,u.a,c.hasPersistedThreads],(e,t,n,r,i)=>!Object(l.isUninitialized)(r)&&!Object(l.isStarted)(r)&&((!Object(l.isSucceeded)(r)||!i)&&(e&&t&&!n)))},pjpP:function(e,t,n){"use strict";var r=n("dLEV"),i=n("xZ3y"),a=n("MJM1"),s=n("QnHA");const o=Object(r.createSelector)([s.a],Object(a.a)(["userInteractedWithWidget"]));var c=n("1qF3"),u=n("E9Gc");n.d(t,"a",(function(){return l}));function l(){return(e,t)=>{if(!o(t())){Object(u.b)("interactedWithWidget","true");Object(c.a)()}e(Object(r.createAction)(i.TRACK_USER_INTERACTION)())}}},prkp:function(e,t,n){"use strict";n.r(t);n.d(t,"markMessageReadByVisitor",(function(){return o}));var r=n("nDpY"),i=n.n(r),a=n("VYoM");const s="livechat-public/v1";function o({threadId:e,sessionId:t,messageId:n}){return a.a.post(`${s}/visitorReadThread/thread/${e}/message/${n}`,{query:{portalId:i.a.get(),sessionId:t}})}},"pxL+":function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));n.d(t,"e",(function(){return s}));n.d(t,"c",(function(){return o}));n.d(t,"f",(function(){return c}));n.d(t,"a",(function(){return u}));n.d(t,"d",(function(){return l}));var r=n("g4ag"),i=(n("JGJA"),n("MWj0"));n("Zui/"),n("QYOI");Object(r.a)(i.c);const a=Object(r.a)(i.h),s=Object(r.a)(i.v),o=Object(r.a)(i.o),c=(Object(r.a)(i.p),Object(r.a)(i.k),Object(r.a)(i.y)),u=Object(r.a)(i.a),l=(Object(r.a)(i.d),Object(r.a)(i.t));Object(r.a)(i.u),Object(r.a)(i.x),Object(r.a)(i.s),Object(r.a)(i.i),Object(r.a)(i.q)},py2G:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("YibP"),i=n("eCQl");const a=e=>t=>{try{e(t)}catch(e){const t=Object(r.a)(e&&e.message,{name:"ResolveError"});Object(i.reportError)({error:t,fingerprint:["{{ default }}","ResolveError"]});throw e}}},q4JX:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("eCQl"),i=n("v0wH"),a=n("WebA"),s=n("C3IS"),o=n("pxL+"),c=n("0IK8");const u=e=>{switch(!0){case Object(s.b)(e):return Object(o.c)(i.b,Object(a.buildCommonMessage)(e));default:Object(r.reportError)({error:new Error("UNRESOLVED_REPUBLISH_MESSAGE: "+Object(c.getType)(e)),fingerprint:["{{ default }}","UNRESOLVED_REPUBLISH_MESSAGE"]});return null}}},q6sI:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Ut5p"),a=n("bYG+"),s=n("JGJA"),o=n("gjm2"),c=n("0H74"),u=n("qjq5");function l(e,t){return Object(o.a)(t,(e,t,n)=>Object(c.a)(n,t,e),e)}var d=Object(u.a)(l),p=n("0oBL"),f=n("mEYk"),h=n.n(f),b=n("KXN9"),g=n("xyDt"),m=n("y+PV"),O=n("IDM/"),v=n("stzZ"),j=n("4cwC"),y=n("MZef"),E=n("nf9S"),T=n("ul3k"),I=n("EQzX"),w=n("8ghC"),S=n("eF9A"),A=n("PpSk"),C=n("aYGO");const x=Object(u.a)((e,t)=>t.setIn(C.h,e));var R=n("UxsU"),k=n("g4ag");const P=Object(k.a)(C.e);var D=n("6pgb"),_=n("p79U");const M=Object(a.a)("currentUrl");var N=n("qQrL"),L=n("cXEp"),B=n("2Sm/"),F=n("xZ3y"),H=n("t0Ql"),U=n("MJM1");Object(s.a)("id"),Object(s.a)("timestamp"),Object(s.a)("@type");const V=Object(U.a)(["newChannel","name"]);Object(s.a)("newChannel"),Object(U.a)(["oldChannel","name"]),Object(s.a)("oldChannel");var G=n("ogEP");const W=Object(y.a)({data:Object(r.Map)()});function z(e){return t=>t=Object(D.a)(e,t)}const q=Object(i.c)({[Object(i.a)(F.ADD_CONVERSATION,B.a.SUCCEEDED)]:(e,t)=>{const{conversation:n}=t.payload,r=Object(A.getThreadId)(n);return Object(g.a)(Object(a.a)(r,n),e)},[L.a]:e=>Object(O.a)(e),[F.LAST_SEEN_SUCCESS](e,t){const{threadId:n,latestMessageTimestamp:r}=t.payload,i=Object(b.a)(e);return Object(s.a)(n,i)&&r?Object(g.a)(Object(p.a)(n,P(r)),e):e},[N.b.SUCCEEDED](e,t){const{threadId:n,publishedMessage:r}=t.payload,i=Object(E.isConversationalMessage)(r)&&!Object(T.isEmailCaptureResponseMessage)(r)?z:()=>e=>e;return Object(g.a)(Object(p.a)(n,i(r)),e)},[F.RECEIVED_INCOMING_MESSAGE](e,t){const{threadId:n,message:r}=t.payload,i=Object(E.isConversationalMessage)(r)&&!Object(T.isEmailCaptureResponseMessage)(r)?z:()=>e=>e,a=Object(g.a)(Object(p.a)(n,i(r)),e);return Object(S.isAssignmentUpdateMessage)(r)?Object(g.a)(Object(p.a)(n,Object(_.a)(r)),a):Object(I.isCloseThreadMessage)(r)?Object(g.a)(Object(p.a)(n,x(R.a.ENDED)),a):Object(w.a)(r)?Object(g.a)(Object(p.a)(n,x(R.a.STARTED)),a):a},[F.INCREMENT_UNSEEN_COUNT](e,t){const{threadId:n}=t.payload;return Object(g.a)(Object(p.a)(n,Object(p.a)("unseenCount",e=>e+1)),e)},[F.CLEAR_UNSEEN_COUNT_FOR_CHANNEL](e,t){const{threadId:n}=t.payload;return Object(g.a)(Object(p.a)(n,Object(a.a)("unseenCount",0)),e)},[F.GET_VISITOR_THREADS_STARTED]:e=>Object(m.a)(e),[F.GET_VISITOR_THREADS_SUCCESS]:(e,t)=>{const{threads:n}=t.payload,i=n&&n.length?n.reduce((e,t)=>{const n=Object(A.getThreadId)(t);return e.set(n,t)},Object(r.Map)()):Object(r.Map)();return Object(v.a)(d(i),e)},[F.GET_VISITOR_THREADS_FAILURE]:e=>Object(j.a)(e),[L.b](e,t){const{threadId:n,currentUrl:r}=t.payload;return Object(g.a)(e=>e.update(n,M(r)),e)},[H.a]:(e,t)=>{const{threadId:n,channelChange:r}=t.payload,i=V(r);return Object(g.a)(e=>e.updateIn([n,...C.c],Object(G.a)(i)),e)}},W),K=e=>(t,n)=>{try{return e(t,n)}catch(e){h.a.captureException(e,{extra:{state:t.toJS(),action:n}});return t}};t.a=K(q)},q8Gl:function(e,t,n){"use strict";n.r(t);n.d(t,"getWindowLocation",(function(){return i}));var r=n("8CDR");const i=()=>new r.a(window.location.href)},qQrL:function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));n.d(t,"a",(function(){return a}));var r=n("VVfI");const i=Object(r.a)("PUBLISH_MESSAGE"),a=Object(r.a)("INITIALIZE_PUBSUB")},qg6t:function(e,t,n){"use strict";n.r(t);n.d(t,"dismissTypingIndicator",(function(){return s}));var r=n("0IK8"),i=n("2+C7"),a=n("5jhX");const s=(e,t)=>n=>{const s=Object(r.getSenderId)(e);n(Object(i.clearExistingTypingTimeout)(e,t));n(Object(a.removeTypingTimeoutIdForAgentInThread)(t,s))}},qjq5:function(e,t,n){"use strict";var r=n("QJvi"),i=n("scKg"),a=n("lTIY");function s(e,t,n){const r=Object(a.a)(t,o.bind(null,e,t,n));r.args=n;r.operation=e;return r}function o(e,t,n,...r){const i=t-r.length,a=n.concat(r);return i<=0?e(...a):s(e,i,a)}function c(e,t){return s(Object(i.a)(t),Object(r.a)(e),[])}var u=c(2,c);n.d(t,"a",(function(){return l}));function l(e){return u(e.length,e)}},qkre:function(e,t,n){"use strict";n.d(t,"m",(function(){return s}));n.d(t,"d",(function(){return c}));n.d(t,"e",(function(){return u}));n.d(t,"n",(function(){return l}));n.d(t,"a",(function(){return d}));n.d(t,"b",(function(){return p}));n.d(t,"i",(function(){return h}));n.d(t,"j",(function(){return b}));n.d(t,"c",(function(){return g}));n.d(t,"f",(function(){return m}));n.d(t,"k",(function(){return O}));n.d(t,"l",(function(){return v}));n.d(t,"h",(function(){return j}));n.d(t,"g",(function(){return y}));var r=n("JGJA"),i=n("L8e7");const a=e=>t=>{const n=Object(i.a)(t);return n&&e(n)},s=a(Object(r.a)("subject")),o=Object(r.a)("from"),c=(a(o),a(e=>{const t=o(e);return t&&Object(r.a)("email",t)})),u=a(e=>{const t=o(e);return t&&Object(r.a)("name",t)}),l=a(e=>{const t=e&&e.to;return t&&t.map(e=>e&&"function"==typeof e.trim?e.trim():e).toList()}),d=a(Object(r.a)("bcc")),p=a(Object(r.a)("cc")),f=Object(r.a)("originalSender"),h=a(e=>{const t=f(e);return t&&Object(r.a)("email",t)}),b=a(e=>{const t=f(e);return t&&Object(r.a)("name",t)}),g=a(Object(r.a)("connectedAccountAddress")),m=a(Object(r.a)("hasReplies")),O=a(Object(r.a)("previousRepliesHtml")),v=a(Object(r.a)("previousRepliesPlainText")),j=a(Object(r.a)("memberOfForwardedSubthread")),y=a(Object(r.a)("forward"));a(Object(r.a)("clipStatus")),a(Object(r.a)("templateId")),a(Object(r.a)("emailAuthenticationStatus"))},qqP0:function(e,t,n){"use strict";n.r(t);var r=n("DdHT"),i=n("ZqFO"),a=n("VvTX"),s=n("97n4"),o=n("MJM1");const c=["enabled"],u=["timeDelaySeconds"],l=(Object(o.a)(c),Object(o.a)(u));n.d(t,"timeOnPageTriggerDelaySeconds",(function(){return d}));const d=e=>Object(r.a)(i.f,a.getClientTriggers,s.c,l)(e)},qwm9:function(e,t,n){"use strict";n.r(t);n.d(t,"createVisitorThread",(function(){return s}));var r=n("nDpY"),i=n.n(r),a=n("VYoM");function s({sessionId:e,messageId:t,hubspotUtk:n,messagesPageUri:r,visitorThreadInitialHistory:s,zoneId:o}){return a.a.post("livechat-public/v1/thread/visitor",{query:{sessionId:e,welcomeMessageId:t,hubspotUtk:n,portalId:i.a.get(),expectedResponseType:"WRAPPER_V2",zoneId:o},data:{visitorThreadInitialHistory:s},headers:{"X-HubSpot-Messages-Uri":r}})}},r1tY:function(e,t,n){e.exports=n.dlbpr(1,66)},r8xu:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("dLEV"),i=n("tyiq"),a=n("yxYB");const s=Object(r.createSelector)([a.getWidgetAvailabilityOptions],e=>Object(i.a)(e)||"")},"rA/t":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("eCQl"),i=n("QYOI"),a=n("JGJA"),s=n("DdHT"),o=n("bYG+"),c=n("TWJS");function u(e){const t=Object(a.a)("@type",e)||Object(a.a)("type",e),n=Object(a.a)("utk",e)||Object(a.a)("vid",e)||Object(a.a)("id",e);return t&&n?Object(c.a)({actorId:`${t&&t[0]}-${n}`}):null}function l(e){try{const t=Object(a.a)("sender",e),n=Object(i.fromJS)(t||{}),r=u(n),l=Object(a.a)("senders",e)||[],d=Object(i.List)(l.filter(Boolean).map(e=>Object(c.a)(e))),p=0===d.size&&r?Object(i.List)([r]):d;return Object(s.a)(Object(o.a)("sender",n),Object(o.a)("senders",p))(e)}catch(t){const n=new Error("Unable to build Senders from legacy Sender");Object(r.reportError)({error:n,extra:{message:""+t}});return e}}},rCfO:function(e,t,n){"use strict";n.r(t);n.d(t,"default",(function(){return c}));var r=n("scKg"),i=n("QYOI");function a(...e){return 1===e.length?e[0]:Object(i.Seq)(e)}function s(e,t,n,...r){const i=n(...r);e.has(i)||e.set(i,t(...r));return e.get(i)}function o(e,t,n,...r){const i=n(...r);e.has(i)||e.set(i,t(...r));return e.get(i)}function c(e,t=a){Object(r.a)(e);const n=Object(i.Map)().asMutable(),c=(1===e.length?s:o).bind(null,n,e,t);c.cache=n;return c}},rIrL:function(e,t,n){"use strict";var r=n("QYOI"),i=n("GcWH"),a=n("OxGf"),s=n("rf4d");const o=Object(r.Record)({"@type":i.a,clientType:null,id:null,richText:null,sender:null,status:null,text:null,timestamp:null,attachments:Object(r.List)(),direction:a.b,channelInstanceId:null,genericChannelId:s.d,senders:Object(r.List)(),recipients:Object(r.List)()},"InitialMessage");t.a=o},rLZs:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("QYOI"),i=n("Mx3c"),a=n("iPDb"),s=n("0IK8"),o=n("C3IS"),c=n("V+nC");const u=e=>e&&Object(a.a)(e)?Object(a.a)(e).reduce((e,t)=>{if(Object(o.b)(t)&&!Object(o.c)(t)||Object(c.a)(t)){const n=Object(s.getSenderId)(t),a=Object(s.getSenderType)(t),o=Object(r.Map)({senderId:n,senderType:a});if(n&&(a===i.AGENT||a===i.BOT))return e.add(o)}return e},Object(r.Set)()):Object(r.Set)()},"rdz/":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("rkZZ");const i=(e,t)=>{const{r:n,g:i,b:a}=Object(r.a)(e);return`#${("0"+(0|256+n+(256-n)*t/100).toString(16).substr(1)).substr(-2)}${("0"+(0|256+i+(256-i)*t/100).toString(16).substr(1)).substr(-2)}${("0"+(0|256+a+(256-a)*t/100).toString(16).substr(1)).substr(-2)}`}},rf4d:function(e,t,n){"use strict";n.d(t,"d",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"a",(function(){return a}));n.d(t,"c",(function(){return s}));const r=1e3,i=1001,a=1002,s=1003},rjAk:function(e,t,n){"use strict";n.r(t);n.d(t,"hasPersistedThreads",(function(){return a}));var r=n("dLEV"),i=n("bco+");const a=Object(r.createSelector)(i.getThreads,e=>!!e.size)},rkZZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>{let t=(e||"#000000").slice(1);3===t.length&&(t=t.replace(/(.)/g,"$1$1"));return{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16)}}},rwJP:function(e,t,n){e.exports=n.dlbpr(1,86)},sA91:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("QYOI");const i=(e={})=>{let t=null;e.prototype instanceof r.Record?t=e.prototype:e.constructor&&e.constructor.prototype instanceof r.Record&&(t=e.constructor.prototype);if(t){if(t._name)return t._name;new e;return t._name||"Record"}return"Object"}},sIRh:function(e,t,n){"use strict";n.r(t);n.d(t,"default",(function(){return b}));n.d(t,"publishEmailCaptureResponseMessage",(function(){return b}));var r=n("/fsP"),i=n("nS6h"),a=n("2Zef"),s=n("BvOu"),o=n("v0wH"),c=n("QYOI"),u=n("jvpr"),l=n("rf4d"),d=n("OxGf"),p=n("Wt04"),f=n("6O34"),h=n("0G/n");const b=({channel:e,email:t,threadId:n})=>(b,g)=>{const m=a.SYSTEM_SENDER,O={type:h.a,value:Object(p.getMessagesUtk)()||""},v=Object(c.List)([{deliveryIdentifier:O}]),j=new r.a({id:Object(s.generateUuid)(),text:t,sender:{"@type":m},status:{messageStatus:o.b},channelInstanceId:Object(u.getChannelInstanceId)(g()),senders:Object(f.a)(v),genericChannelId:l.d,direction:d.a});b(Object(i.publishMessageToConversation)({channel:e,message:j,threadId:n}))}},sJho:function(e,t,n){"use strict";n.r(t);n.d(t,"getMessagesPageUri",(function(){return s}));var r=n("dLEV"),i=n("JGJA"),a=n("49A5");const s=Object(r.createSelector)(a.getLatestWidgetData,Object(i.a)("messagesPageUri"))},sWFM:function(e,t,n){"use strict";n.r(t);n.d(t,"getMessageId",(function(){return a}));var r=n("dLEV"),i=n("49A5");const a=Object(r.createSelector)([i.getLatestWidgetData],e=>e.message.id)},scKg:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e,t){if("function"==typeof e)return e;throw new Error(`expected \`${"number"==typeof t?`operation[${t}]`:"operation"}\` to be a function but got \`${String(e)}\``)}},scwY:function(e,t,n){"use strict";n.r(t);n.d(t,"loadStagedThread",(function(){return u}));var r=n("eg5p"),i=n("L9oQ"),a=n("Wiow"),s=n("YHaB"),o=n("WTKJ"),c=n("esZR");function u(){return e=>{e(Object(i.selectThread)(r.a));e(Object(a.resetStubbedThread)());e(Object(s.a)(o.c));e(Object(c.stageInitialMessage)())}}},seb2:function(e,t,n){"use strict";var r=n("9f1P"),i=n("57op"),a=n("3Ezh");function s(e,t){return e===""+a.a?a.a:`${e}, ${t||a.a}`}n.d(t,"a",(function(){return o}));const o=({theme:e})=>Object(r.css)(["font-family:",";font-weight:400;font-size:14px;color:",";line-height:24px;"],({theme:{font:{fontFamily:e}}})=>s(e),Object(i.i)(e))},"sl/w":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("Ktcs"),i=n("VfuR"),a=n.n(i),s=n("PVk8"),o=n("QgEn");class c extends r.Component{render(){const{useGap:e,message:t,options:n}=this.props,r=Object(s.a)(Object(s.b)(this.props));return Object(o.jsx)("i18n-string",Object.assign({},r,{children:Object(s.c)({useGap:e,message:t,options:n},!0)}))}}c.displayName="FormattedMessage";c.propTypes={message:a.a.string.isRequired,options:a.a.object,useGap:a.a.bool};c.isI18nElement=!0;c.defaultProps={options:{},useGap:!1}},"sl1+":function(e,t,n){"use strict";var r=n("BEfq"),i=n("xZ3y"),a=n("PpSk"),s=n("dLEV");const o={},c=Object(s.createSlice)({name:"messageEditorStaging",initialState:o,reducers:{},extraReducers:e=>{e.addCase(r.d,(e,t)=>{const{threadId:n,stagingText:r}=t.payload;e[n]={stagingText:r}});e.addCase(r.b,(e,t)=>{const n=t.payload;e[n]&&(e[n]={stagingText:""})});e.addCase(i.GET_VISITOR_THREADS_SUCCESS,(e,t)=>{const{threads:n=[]}=t.payload;n.forEach(t=>{const n=Object(a.getThreadId)(t);e[n]||(e[n]={stagingText:""})})})}});t.a=c.reducer},stzZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("VToG"),i=n("nt9Q");const a=Object(i.a)(r.d)},sxmL:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Gc2C"),a=n("0IK8"),s=n("8Xfw");const o=e=>Object(s.deserialize)({json:e});n.d(t,"a",(function(){return c}));const c=(e=[])=>{Object(i.a)(r.Iterable.isIterable(e)||Array.isArray(e),"Expected messages to be iterable not a `%s`",typeof e);return e.reduce((e,t)=>{const n=o(t),r=Object(a.getId)(n);return e.set(r,n)},Object(r.OrderedMap)())}},"t+8h":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="WORKFLOW_GENERATED_USER_MESSAGE"},"t+mo":function(e,t,n){"use strict";n.r(t);n.d(t,"getIsIncludedInPageViewSample",(function(){return a}));var r=n("MJM1"),i=n("pZpR");const a=()=>Object(r.a)(["config","properties","isIncludedInPageViewSample"],Object(i.getUsageTracker)())},t0Ql:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="CHANNEL_CHANGE_RECEIVED"},t4ZQ:function(e,t,n){"use strict";n.r(t);n.d(t,"getAgentType",(function(){return i}));var r=n("MJM1");const i=Object(r.a)(["agentType"])},t6nY:function(e,t,n){e.exports=n.dlbpr(1,1)},tAuz:function(e,t,n){"use strict";n.r(t);var r=n("dLEV"),i=n("QnHA"),a=n("MJM1");const s=Object(a.a)(["isFullscreen"]),o=Object(a.a)(["mobile"]);n.d(t,"getIsMobile",(function(){return c}));const c=Object(r.createSelector)([i.a],e=>o(e)||s(e))},tLJd:function(e,t,n){"use strict";n.r(t);n.d(t,"shouldOverrideTrigger",(function(){return r}));const r=e=>void 0!==e&&!e},tOKt:function(e,t,n){"use strict";n.r(t);n.d(t,"buildInitialMessage",(function(){return l}));var r=n("QYOI"),i=n("JGJA"),a=n("IcZZ"),s=n("ubOH"),o=n("BvOu"),c=n("c1C1"),u=n("rIrL");const l=(e={})=>{const t=Object(i.a)("timestamp",e);return Object(u.a)({id:Object(i.a)("id",e)||Object(o.generateUuid)(),sender:Object(r.Map)(Object(r.fromJS)(Object(i.a)("sender",e))),status:Object(s.a)(Object(i.a)("status",e)),attachments:Object(a.a)(Object(i.a)("attachments",e)),clientType:Object(i.a)("clientType",e),richText:Object(i.a)("richText",e),text:Object(i.a)("text",e),timestamp:t||Object(c.generateUniqueClientTimestamp)(),senders:Object(i.a)("senders",e),channelInstanceId:Object(i.a)("channelInstanceId",e),recipients:Object(i.a)("recipients",e)})}},tRjK:function(e,t,n){"use strict";n.r(t);n.d(t,"removeAllClientTriggers",(function(){return s}));var r=n("VY4I"),i=n("xmwc"),a=n("7cfw");const s=()=>e=>{Object(r.a)();e(Object(i.removeTimeOnPageTrigger)());Object(a.a)()}},tTno:function(e,t,n){"use strict";n.r(t);n.d(t,"scrollTriggerEnabled",(function(){return o}));var r=n("ZqFO"),i=n("VvTX"),a=n("97n4"),s=n("UBEt");const o=e=>{const t=Object(r.f)(e),n=Object(i.getClientTriggers)(t),o=Object(a.b)(n);return Object(s.a)(o)}},tUSi:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="chat-widget-header-text",i="chat-widget-header-description"},tXbc:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"b",(function(){return a}));n.d(t,"d",(function(){return s}));n.d(t,"e",(function(){return o}));const r="CONNECTED",i="RECONNECTING",a="DISCONNECTED",s="RESUBSCRIBING",o="SUSPENDED"},tY0N:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="TYPING"},tcix:function(e,t,n){"use strict";n.r(t);n.d(t,"captureActionBreadcrumb",(function(){return a}));var r=n("mEYk"),i=n.n(r);const a=e=>{i.a.captureBreadcrumb({message:e.type,category:"redux action"})}},tcuH:function(e,t,n){"use strict";n.r(t);n.d(t,"incrementUnseenCountAction",(function(){return u}));n.d(t,"incrementUnseenCount",(function(){return l}));var r=n("dLEV"),i=n("c2PF"),a=n("9zF3"),s=n("xZ3y"),o=n("J+m/"),c=n("PpSk");const u=Object(r.createAction)(s.INCREMENT_UNSEEN_COUNT,({channel:e,threadId:t})=>({payload:{channel:e,threadId:t}})),l=({channel:e,threadId:t})=>(n,r)=>{const s=Object(i.getThreadByThreadId)(r(),{threadId:t}),l=Object(c.getUnseenCount)(s);n(u({channel:e,threadId:t}));if(0===l){const e=Object(a.calculateUnseenThreadsCount)(r());Object(o.postUnreadConversationCountChangedEvent)({unreadCount:e})}}},tlSg:function(e,t,n){"use strict";n.r(t);n.d(t,"sendConsentToCommunicate",(function(){return o}));var r=n("nDpY"),i=n.n(r),a=n("VYoM");const s="livechat-public/v1/privacy/consentToCommunicate";function o({sessionId:e,hubspotUtk:t,threadId:n}){return a.a.put(s,{query:{sessionId:e,hubspotUtk:t,threadId:n,portalId:i.a.get()}})}},tyiq:function(e,t,n){"use strict";var r=n("MJM1");const i=["awayInOfficeHoursStrategy"],a=["awayMessage"],s=["officeHours"],o=["outsideOfficeHoursStrategy"],c=["teamMembersAvailabilityStrategy"],u=["typicalResponseTime"];n.d(t,"a",(function(){return l}));n.d(t,"b",(function(){return d}));Object(r.a)(i);const l=e=>Object(r.a)(a,e)||"",d=(Object(r.a)(s),Object(r.a)(o),Object(r.a)(c),Object(r.a)(u))},uB3n:function(e,t,n){"use strict";var r=n("QYOI");const i=e=>""+e;var a=n("BGhm");const s=Object(r.Record)({entries:Object(r.Map)(),evict:()=>Object(r.Set)(),idInvariant:a.a,idTransform:i,name:null,notSetValue:null},"IndexedAsyncData");t.a=s},uOZ5:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"b",(function(){return a}));const r="COMPANY",i="USERS_AND_TEAMS",a="OWNER"},uOkx:function(e,t){e.exports={mode:"compressed",staticDomainPrefix:"//static.hsappstatic.net",bender:{depVersions:{"react-rhumb":"static-1.10791"},depPathPrefixes:{"react-rhumb":"/react-rhumb/static-1.10791"},project:"react-rhumb",staticDomain:"//static.hsappstatic.net",staticDomainPrefix:"//static.hsappstatic.net"}}},uVkz:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("kkqp"),i=n.n(r);const a=e=>new i.a(e)},uXUH:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("dLEV"),i=n("lkO4"),a=n("tyiq"),s=n("yxYB");const o=Object(r.createSelector)(s.getWidgetAvailabilityOptions,e=>{const t=Object(a.b)(e);return t?Object(i.makeTypicalResponseTimeText)({typicalResponseTime:t}):""})},uax2:function(e,t,n){"use strict";var r=n("Lm/k"),i=n("VfuR"),a=n.n(i),s=n("Ktcs"),o=n("9f1P"),c=n.n(o),u=n("7719");const l={[u.c]:24,[u.f]:32,[u.e]:48};var d=n("CR0J"),p=n("57op");const f=p.h,h=p.j;var b=n("54vt"),g=n("QgEn");const m=["grow","showResult","resultAnimationDuration","onResultDisplayFinish","role","size","use","children","theme"],O=Object(o.keyframes)(["100%{transform:rotate(360deg)}"]),v=c.a.div.withConfig({displayName:"VizExLoadingSpinner__SpinnerOuter",componentId:"sc-19wbow7-0"})(["position:relative;align-items:center;display:flex;margin:8px;",";"],({grow:e})=>e&&Object(o.css)(["justify-content:center;width:100%;height:100%;margin:0;"])),j=c.a.div.withConfig({displayName:"VizExLoadingSpinner__SpinnerInner",componentId:"sc-19wbow7-1"})(["position:relative;align-items:center;display:flex;justify-content:center;width:",";height:",";color:",";"],({size:e})=>e+"px",({size:e})=>e+"px",({theme:e,use:t})=>t===b.PRIMARY?f(e):h(e)),y=c.a.div.withConfig({displayName:"VizExLoadingSpinner__ResultSpinner",componentId:"sc-19wbow7-2"})(["align-items:center;display:flex;justify-content:center;opacity:",";position:absolute;transition:opacity 0.2s cubic-bezier(0.42,0,0.58,1) 0.1s,transform 0.2s cubic-bezier(0.2,0.9,0.3,2) 0.1s;transform:scale(1);"],({showResult:e})=>e?"1":"0"),E=c.a.div.withConfig({displayName:"VizExLoadingSpinner__Spinner",componentId:"sc-19wbow7-3"})(["transition:opacity 0.2s cubic-bezier(0.42,0,0.58,1),transform 0.2s cubic-bezier(0.89,0.03,0.68,0.22);opacity:",";position:absolute;display:block;width:100%;height:100%;&::after{position:relative;box-sizing:border-box;content:'';width:100%;height:100%;display:inline-block;border:2px solid currentColor;border-bottom-color:transparent;border-left-color:transparent;border-radius:100%;background:transparent;animation:"," 0.75s linear infinite;}"],({showResult:e})=>e?"0":"1",O),T=e=>{let{grow:t=!1,showResult:n=!1,resultAnimationDuration:i=1500,onResultDisplayFinish:a=(()=>{}),role:o="status",size:c="sm",use:u=b.PRIMARY,children:d,theme:p}=e,f=Object(r.a)(e,m);const h=Object(s.useRef)();Object(s.useEffect)(()=>{if(n){h.current=setTimeout(a,i);return()=>{clearTimeout(h.current)}}},[a,i,n]);const O=l[c];return Object(g.jsx)(v,Object.assign({role:o,"data-test-id":"loading-spinner"},f,{grow:t,children:Object(g.jsxs)(j,{size:O,theme:p,use:u,"data-test-id":"spinner-inner",children:[Object(g.jsx)(E,{showResult:n}),Object(g.jsx)(y,{showResult:n,"data-test-id":"spinner-result",children:d})]})}))};T.propTypes={children:a.a.node,grow:a.a.bool,onResultDisplayFinish:a.a.func,resultAnimationDuration:a.a.number.isRequired,role:a.a.string,showResult:a.a.bool,size:a.a.oneOf([u.c,u.f,u.e]),style:a.a.object,theme:d.a,use:a.a.oneOf(Object.values(b))};T.displayName="VizExLoadingSpinner";t.a=T},ubOH:function(e,t,n){"use strict";var r=n("QYOI"),i=n("JGJA"),a=n("NRxt");const s=Object(r.Record)({messageStatus:null,timestamp:null,sendFailure:null},"Status");t.a=function(e){if(!e)return s();const t=Object(i.a)("messageStatus",e)||null,n=Object(i.a)("timestamp",e),r="number"==typeof n?n:null,o=Object(i.a)("sendFailure",e)||null,c=o&&Object(a.a)(o);return s({messageStatus:t,timestamp:r,sendFailure:c})}},ughT:function(e,t,n){"use strict";n.r(t);n.d(t,"getFile",(function(){return i}));n.d(t,"getLocalId",(function(){return a}));n.d(t,"getFileId",(function(){return s}));n.d(t,"getUploadProgress",(function(){return o}));var r=n("JGJA");const i=Object(r.a)("file"),a=Object(r.a)("localId"),s=Object(r.a)("fileId"),o=Object(r.a)("uploadProgress")},"uk/S":function(e,t,n){"use strict";n.r(t);n.d(t,"sendConsentToProcess",(function(){return o}));var r=n("nDpY"),i=n.n(r),a=n("VYoM");const s="livechat-public/v1/privacy/consentToProcess";function o({sessionId:e,hubspotUtk:t,welcomeMessageId:n}){return a.a.put(s,{query:{sessionId:e,hubspotUtk:t,welcomeMessageId:n,portalId:i.a.get()}})}},ul3k:function(e,t,n){"use strict";n.r(t);n.d(t,"isEmailCaptureResponseMessage",(function(){return a}));var r=n("0IK8"),i=n("l0Ga");const a=e=>Object(r.getTopLevelType)(e)===i.a},usEm:function(e,t,n){"use strict";n.r(t);n.d(t,"isEmailCapturePromptMessage",(function(){return a}));var r=n("0IK8"),i=n("KO+H");const a=e=>Object(r.getTopLevelType)(e)===i.a},"v+ge":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return a}));var r=n("VVfI");const i="REFRESH_WIDGET_DATA",a="UPDATE_SESSION_ID";Object(r.a)("FETCH_SESSION_ID")},v0wH:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="SENT",i="FAILED"},vDBy:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=({node:e})=>{if(e&&"BLOCKQUOTE"===e.tagName){e.style.setProperty("margin","0px 0px 0px .8ex");e.style.setProperty("padding-left","1ex");e.style.setProperty("border-left","1px solid rgb(204,204,204)");return{node:e}}return null}},vSPC:function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));n.d(t,"a",(function(){return p}));var r=n("mIaW"),i=n("+KD7"),a=n("DLkX");const s=i.q,o=i.s,c=i.p,u=i.m,l=i.u,d=(i.u,e=>{switch(e){case s:return{backgroundImage:"linear-gradient(90deg, #33475B 0%, #516F90 101.34%)"};case o:return{backgroundImage:"linear-gradient(90deg, #7FDED2 0%, #7FD1DE 100%)"};case c:return{backgroundImage:"linear-gradient(90deg, #C84676 0%, #965EB8 100%)"};case u:return{backgroundImage:"linear-gradient(92.06deg, #F5C26B 23.41%, #FF9980 100%)"};case l:return{backgroundImage:"linear-gradient(92.06deg, #5E6AB8 42.78%, #2B7ABF 100%)"};default:return{backgroundColor:e}}});function p(e){return null==e?Object(a.a)():Object(a.a)({accentColor:e,textColor:Object(r.b)(e),useDefaultColor:Object(r.c)(e)})}},vfjv:function(e,t,n){"use strict";n.r(t);var r=n("dLEV"),i=n("e379"),a=n("QnHA"),s=n("B39b"),o=n("+U1B"),c=n("49A5"),u=n("cdXU");const l=Object(r.createSelector)([o.a,c.getLatestWidgetData],(e,t)=>!Object(u.getIsPrivateLoad)(t)&&Object(s.a)(e));n.d(t,"getShouldFetchInitialVisitorThreads",(function(){return d}));const d=Object(r.createSelector)([l,a.a],e=>{const t=Object(i.a)();return Boolean(!e||t)})},vigZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("q8Gl");const i=()=>Object(r.getWindowLocation)().paramValue("uuid")},wFcP:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("iKGd"),i=n("3Ezh");const a={primary:r.h,text:r.j,textOnPrimary:r.o,errorText:r.a,disabledBackground:r.k,disabledText:r.l,placeholderText:r.g,inputBorder:r.e,inputBackground:r.d,helpText:r.c,happyColor:r.b,neutralColor:r.f,sadColor:r.i},s={font:{fontFamily:i.a},colors:a,components:{Button:{},IconButton:{},Link:{},List:{},ListItemButton:{}}}},wGlN:function(e,t,n){"use strict";n.r(t);n.d(t,"serializeThreadForExternalEvent",(function(){return i}));var r=n("PpSk");const i=e=>({conversationId:Object(r.getThreadId)(e)})},wL7V:function(e,t,n){"use strict";var r=n("MJM1");const i=["threadId"],a=["channel"],s=["message"],o=["allowRetry"];n.d(t,"a",(function(){return c}));Object(r.a)(o),Object(r.a)(i),Object(r.a)(a);const c=Object(r.a)(s)},wO6X:function(e,t,n){"use strict";var r=n("QYOI"),i=n("xw4j"),a=n("BvOu"),s=n("c1C1");class o extends(Object(r.Record)({"@type":i.a,id:null,timestamp:null,subject:null,emailAddress:null},"TranscriptSubmissionMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(a.generateUuid)(),subject:e.subject||"",emailAddress:e.emailAddress||"",timestamp:e.timestamp||Object(s.generateUniqueClientTimestamp)("TranscriptSubmissionMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=o},wQJz:function(e,t,n){"use strict";var r=n("QYOI");const i=Object(r.Record)({activationStatus:null,agentState:null,agentType:null,assignable:!0,avatar:null,bot:!1,email:null,firstName:null,lastName:null,meetingsLinkText:null,meetingsLinkUrl:null,online:!1,salesPro:!1,userId:null,isResponderAI:!1},"Responder");t.a=i},wZdh:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("SlUU"),i=n("FBcP"),a=n("Rrky");const s=({message:e,threadId:t})=>(n,s)=>{const o=Object(r.fileAttachmentIdsInMessage)(e);if(o.size){const e=Object(i.getSessionId)(s());n(Object(a.resolveAttachments)({fileIds:o,sessionId:e,threadId:t}))}}},wihT:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("kqCt"),i=n("QYOI"),a=n("Mx3c"),s=n("kfJr");const o=()=>Object(i.List)([Object(r.a)({senderType:a.SYSTEM,senderId:s.a})])},wjRl:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("9f1P");const i=Object(r.css)(["outline-offset:1px;outline:2px solid #00a4bd;"])},wkWz:function(e,t,n){"use strict";n.r(t);var r=n("dLEV"),i=n("JGJA");const a=Object(i.a)("startOpen");var s=n("QnHA");n.d(t,"getWidgetStartOpen",(function(){return o}));const o=Object(r.createSelector)([s.a],e=>a(e))},"x+ne":function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));n.d(t,"a",(function(){return a}));var r=n("9f1P");const i=Object(r.css)(["font-size:12px;line-height:18px;"]),a=Object(r.css)(["small{","}"],i)},x1JE:function(e,t,n){"use strict";n.r(t);n.d(t,"getEvict",(function(){return l}));n.d(t,"getIdInvariant",(function(){return d}));n.d(t,"getIdTransform",(function(){return p}));n.d(t,"getName",(function(){return f}));n.d(t,"getNotSetValue",(function(){return h}));n.d(t,"getEntry",(function(){return b}));n.d(t,"getEntries",(function(){return g}));var r=n("QYOI"),i=n("qjq5"),a=n("MJM1"),s=n("dAms"),o=n("JoAZ"),c=n("Sbt9"),u=n("OPip");const l=e=>Object(a.a)(s.b)(e),d=e=>Object(a.a)(s.c)(e),p=e=>Object(a.a)(s.d)(e),f=e=>Object(a.a)(s.e)(e),h=e=>Object(a.a)(s.f)(e),b=Object(i.a)((e,t)=>{Object(o.a)(t);Object(u.a)(e,t);const n=Object(c.a)(e,t);return t.getIn(s.a).get(n,h(t))}),g=(e,t=Object(r.Set)())=>{Object(o.a)(e);return t.size?t.reduce((t,n)=>{Object(u.a)(n,e);const r=Object(c.a)(n,e),i=e.getIn(s.a).get(r,h(e));return t.set(r,i)},Object(r.Map)()):e.getIn(s.a)}},x1PU:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("b9/n"),i=n("0GyJ"),a=n("KO+H"),s=n("GcWH"),o=n("V1/C"),c=n("6OYF"),u=n("tY0N"),l=n("K7Yy"),d=n("nguO");const p={ACTIVELY_PUBLISHING:d.a,COMMON_MESSAGE:i.a,DATE_MESSAGE:r.a,EMAIL_CAPTURE_PROMPT:a.a,FAILED_TO_PUBLISH:d.b,INITIAL_MESSAGE:s.a,OFFICE_HOURS:o.a,TYPICAL_RESPONSE_TIME:c.a,TYPING:u.a,FEEDBACK_SURVEY:l.a}},xCrP:function(e,t,n){"use strict";var r=n("qjq5"),i=n("TaVT"),a=n("TBI5");function s(e,t,n){const r=Object(i.a)(e,n);return Object(a.a)(e,t(r),n)}t.a=Object(r.a)(s)},xOzo:function(e,t,n){"use strict";var r=n("qjq5"),i=n("QYOI"),a=n("3Yas");a.l.implement(Array,(e,t)=>t.some(e));a.l.implementInherited(i.Iterable,(e,t)=>t.some(e));a.l.implement(Object,(e,t)=>{const n=Object.keys(t),r=n.length;for(let i=0;i({pathname:e,listen:()=>()=>{}}),c=n("nDpY"),u=n.n(c),l=n("8CDR"),d=n("zP/g"),p=n.n(d),f=n("19qb"),h=n("jxkM"),b=n("Pda3"),g=n("nqz/"),m=n("dLEV"),O=n("I6ms");const v=Object(m.createAction)(O.b,e=>({payload:{isFirstVisitorSession:e}}));var j=n("1+S/"),y=n("y5/z"),E=n("xeq1");const T=Object(m.createAction)(O.a,e=>({payload:{globalCookieOptOut:e}})),I=e=>t=>{t(T(e));if(Object(E.getIsPortal53Prod)()&&"no"===e){t(v(!1));t(Object(y.trackInteraction)("pageviewFiftyThree",{screen:"widget",subscreen:"thread view",action:"rendered widget"}))}if("yes"===e){t(v(!0));try{localStorage.removeItem(j.a.HUBLYTICS_EVENTS_53);localStorage.removeItem(j.a.HMPL)}catch(e){return}}};var w=n("Ut5p");const S=Object(w.b)(O.d,e=>({enabled:!!e.identificationToken}));var A=n("H0uH"),C=n("35/6"),x=n("49A5"),R=n("DdHT"),k=n("ZqFO"),P=n("VvTX"),D=n("97n4"),_=n("UBEt");const M=e=>Object(R.a)(k.f,P.getClientTriggers,D.b,_.b)(e);var N=n("47FM");const L=({scrollPercentage:e})=>(t,n)=>{const r=Object(x.getLatestWidgetData)(n());e>=M(r)&&t(Object(N.a)())};var B=n("21jQ"),F=n("tAuz"),H=n("Q79t"),U=n("SNA8"),V=n("pjpP"),G=n("mJzd"),W=n("FAYk"),z=n("HcHV");const q=Object(z.a)(()=>Promise.all([n.e("CurrentView-KnowledgeBaseContainer~CurrentView-ThreadView~threadview-utv"),n.e("threadview-utv"),n.e("CurrentView-ThreadView~messages-preview"),n.e("CurrentView-ThreadView")]).then(n.bind(null,"twxQ"))),K=Object(z.a)(()=>Promise.all([n.e("CurrentView-KnowledgeBaseContainer~CurrentView-ThreadView~threadview-utv"),n.e("CurrentView-KnowledgeBaseContainer~CurrentView-ThreadListContainer"),n.e("CurrentView-KnowledgeBaseContainer")]).then(n.bind(null,"X1ER"))),Y=()=>(e,t)=>{Object(W.getKnowledgeBaseEnabled)(t())?K.preload():q.preload()};var J=n("piVz"),Q=n("keKC"),Z=n("scwY"),X=n("0PDK"),$=n("eg5p"),ee=n("Ktcs"),te=n("VfuR"),ne=n.n(te),re=n("q8Gl"),ie=n("Los8");const ae=()=>Object(ie.a)(Object(re.getWindowLocation)().paramValue("isFirstVisitorSession"));var se=n("QgEn");const oe=()=>{throw new Error("visitorIdentity context was used before its value got instantiated")},ce={getIsFirstVisitorSession:oe,setIsFirstVisitorSession:oe,setIsPrivateWidgetLoad:oe,getIsPrivateWidgetLoad:oe},ue=Object(ee.createContext)(ce),le=({children:e})=>{const[t,n]=Object(ee.useState)(ae()),[r,i]=Object(ee.useState)(!1),a=()=>!r&&t,s=()=>r;return Object(se.jsx)(ue.Provider,{value:{getIsFirstVisitorSession:a,setIsFirstVisitorSession:n,setIsPrivateWidgetLoad:i,getIsPrivateWidgetLoad:s},children:e})};le.displayName="VisitorIdentityContextProvider";le.propTypes={children:ne.a.node};const de=e=>{const t=t=>{const n=Object(ee.useContext)(ue);return Object(se.jsx)(e,Object.assign({},t,{visitorIdentity:n}))};t.displayName=`ConsumeVisitorIdentityContext(${e.displayName})`;return t};de.displayName="ConsumeVisitorIdentityContext";const pe=e=>{const t=Object(U.a)(e),n=Object(b.isSucceeded)(t),r=Object(X.getSelectedThreadId)(e)===$.a;return{isOpen:Object(B.getIsOpen)(e),mobile:Object(F.getIsMobile)(e),shouldRenderContent:n,showInitialMessageBubble:Object(J.a)(e),widgetLocation:Object(H.a)(e),isViewingStubbedThread:r}},fe={executeExitIntentTrigger:Q.a,updateIsFirstVisitorSession:v,onGlobalCookieOptOut:I,handleReceiveWidgetData:g.a,handleScrollPercentageChange:L,onLauncherHover:Y,setWindowVisible:C.c,refreshWidgetData:A.a,toggleOpen:h.toggleOpen,trackInteraction:y.trackInteraction,trackUserInteraction:V.a,loadStagedThread:Z.loadStagedThread,updateVisitorIdentificationEnabled:S};var he=de(Object(f.connect)(pe,fe)(G.a)),be=n("i9zZ");class ge extends ee.Component{constructor(e){super(e);this.state={AsyncComponent:null,error:null}}componentDidMount(){Promise.all([Promise.all([n.e("CurrentView-ThreadView~messages-preview"),n.e("messages-preview")]).then(n.bind(null,"46oA")),Object(be.initializeI18n)()]).then(([e])=>{this.setState({AsyncComponent:e.default})},e=>{this.setState({error:e})}).catch(e=>{i.a.captureException(e)})}render(){const e=this.state.AsyncComponent;if(this.state.error){window.parent.postMessage("error");return null}return e?Object(se.jsx)(e,Object.assign({},this.props)):null}}ge.displayName="AsyncMessagesPreview";var me=ge,Oe=n("QmIQ");const ve="preview",je="STANDARD";var ye=n("Wt04"),Ee=n("TyWi"),Te=n("KXCN"),Ie=n("zFg9");const we=new l.a(window.location);function Se(e){return we.paramValue(e)}function Ae(){const e=Se("url");try{return decodeURIComponent(e)}catch(t){return e}}let Ce=()=>ce;function xe(e={}){const t=Object(ie.a)(Se("startOpen")),n=Object(ie.a)(Se("inApp53")),r=Object.assign({},e,{visitorIdentity:new Te.a({globalCookieOptOut:Se("globalCookieOptOut"),isFirstVisitorSession:Object(ie.a)(Se("isFirstVisitorSession"))}),widgetUi:Object(Ie.a)({isAttachmentDisabled:Object(ie.a)(Se("isAttachmentDisabled")),isInitialInputFocusDisabled:Object(ie.a)(Se("isInitialInputFocusDisabled")),isFullscreen:Object(ie.a)(Se("isFullscreen")),mobile:Object(ie.a)(Se("mobile")),startOpen:t,hideWelcomeMessage:Object(ie.a)(Se("hideWelcomeMessage")),domain:Se("domain"),url:Ae(),isEmbeddedInProduct:n,isInCMS:Object(ie.a)(Se("isInCMS")),mode:Se("mode"),apiEnableWidgetCookieBanner:Se("enableWidgetCookieBanner"),hideScrollToButton:Object(ie.a)(Se("hideScrollToButton"))})});return Object(Ee.a)(r,{getVisitorIdentityContext:()=>Ce()})}const Re=xe(),ke=({children:e})=>{const t=Object(ee.useContext)(ue);Ce=()=>t;return Object(se.jsx)(f.Provider,{store:Re,children:e})};ke.displayName="ReduxProvider";ke.propTypes={children:ne.a.node};var Pe=ke,De=n("8Ma8"),_e=n("jL37");n.d(t,"default",(function(){return Me}));class Me{constructor(){this.widgetShellUrl=new l.a(window.location)}getQueryParam(e){return this.widgetShellUrl.paramValue(e)}setSentryTags(){Object(_e.a)(i.a.setTagsContext)&&i.a.setTagsContext({messagesUtk:Object(ye.getMessagesUtk)(),hubspotUtk:this.getQueryParam("hubspotUtk"),locale:navigator.language||navigator.userLanguage,parentUrl:this.getQueryParam("url"),isAttachmentDisabled:Object(ie.a)(this.getQueryParam("isAttachmentDisabled")),isInitialInputFocusDisabled:Object(ie.a)(this.getQueryParam("isInitialInputFocusDisabled")),isFullscreen:Object(ie.a)(this.getQueryParam("isFullscreen")),mode:this.getQueryParam("mode"),mobile:Object(ie.a)(this.getQueryParam("mobile")),isEmbeddedInProduct:Object(ie.a)(this.getQueryParam("inApp53")),enableWidgetCookieBanner:this.getQueryParam("enableWidgetCookieBanner")})}renderWidget(){Object(be.initializeI18n)().then(()=>{const e=Object(ie.a)(this.getQueryParam("inline"));Object(a.render)(Object(se.jsx)(s.b,{config:p.a,history:o("/"),children:Object(se.jsx)(Oe.a,{errorLoggingTitle:"visitor-widget",children:Object(se.jsx)(le,{children:Object(se.jsx)(Pe,{children:Object(se.jsx)(De.b,{disableFocusTrap:e,disableAutoFocus:e,disableWidgetDialog:e,children:Object(se.jsx)(he,{location:window.location,inline:e})})})})})}),document.getElementsByClassName("widget")[0])}).catch(e=>{i.a.captureException(e)})}renderPreview(){Object(a.render)(Object(se.jsx)(Oe.a,{errorLoggingTitle:"message-preview",children:Object(se.jsx)(le,{children:Object(se.jsx)(Pe,{children:Object(se.jsx)(De.b,{disableFocusTrap:!0,disableAutoFocus:!0,disableWidgetDialog:!0,children:Object(se.jsx)(me,{location:window.location,messageId:this.getQueryParam("messageId"),messagesUtk:Object(ye.getMessagesUtk)()})})})})}),document.getElementsByClassName("widget")[0])}start(){window.AppInstance=this;this.setSentryTags();u.a.get();switch(this.getQueryParam("mode")){case ve:this.renderPreview();return;case je:default:this.renderWidget();return}}}(new Me).start()},xW98:function(e,t,n){"use strict";n.r(t);n.d(t,"findResponderByIdFromList",(function(){return i}));var r=n("Avso");function i({responders:e,responderId:t}){return e.find(e=>Object(r.getUserId)(e)===String(t))}},xXtf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r=53,i=99535353},xZ3y:function(e,t,n){"use strict";n.r(t);n.d(t,"APP_IN_FOREGROUND",(function(){return r}));n.d(t,"APP_IN_BACKGROUND",(function(){return i}));n.d(t,"TOGGLE_OPEN",(function(){return a}));n.d(t,"ADD_CONVERSATION",(function(){return s}));n.d(t,"OPEN_CONVERSATION_FOR_NEW_CHANNEL",(function(){return o}));n.d(t,"RECEIVED_INCOMING_MESSAGE",(function(){return c}));n.d(t,"CLEAR_CURRENT_CHANNEL",(function(){return u}));n.d(t,"SUBSCRIBE_TO_THREAD_CHANNELS",(function(){return l}));n.d(t,"CLEAR_UNSEEN_COUNT_FOR_CHANNEL",(function(){return d}));n.d(t,"INCREMENT_UNSEEN_COUNT",(function(){return p}));n.d(t,"ADD_MESSAGE_TO_CONVERSATION",(function(){return f}));n.d(t,"UPDATE_MESSAGE_IN_CONVERSATION",(function(){return h}));n.d(t,"NETWORK_OFFLINE",(function(){return b}));n.d(t,"NETWORK_ONLINE",(function(){return g}));n.d(t,"GET_WIDGET_DATA",(function(){return m}));n.d(t,"GET_WIDGET_DATA_SUCCEEDED",(function(){return O}));n.d(t,"CLICK_VIRAL_LINK",(function(){return v}));n.d(t,"SEND_VISITOR_EMAIL_ADDRESS",(function(){return j}));n.d(t,"SEND_VISITOR_EMAIL_ADDRESS_FAILED",(function(){return y}));n.d(t,"SEND_VISITOR_EMAIL_ADDRESS_SUCCEEDED",(function(){return E}));n.d(t,"CLICKED_MEETINGS_LINK",(function(){return T}));n.d(t,"GET_SUPPLEMENTAL_INITIAL_MESSAGES",(function(){return I}));n.d(t,"GET_SUPPLEMENTAL_INITIAL_MESSAGES_SUCCEEDED",(function(){return w}));n.d(t,"GET_SUPPLEMENTAL_INITIAL_MESSAGES_FAILED",(function(){return S}));n.d(t,"GET_VISITOR_THREADS",(function(){return A}));n.d(t,"GET_VISITOR_THREADS_STARTED",(function(){return C}));n.d(t,"GET_VISITOR_THREADS_SUCCESS",(function(){return x}));n.d(t,"GET_VISITOR_THREADS_FAILURE",(function(){return R}));n.d(t,"LAST_SEEN_SENT",(function(){return k}));n.d(t,"LAST_SEEN_SUCCESS",(function(){return P}));n.d(t,"LAST_SEEN_FAILURE",(function(){return D}));n.d(t,"RECEIVED_WIDGET_SHELL_DATA",(function(){return _}));n.d(t,"TRACK_USER_INTERACTION",(function(){return M}));n.d(t,"USER_INPUT_ON_FOCUS",(function(){return N}));n.d(t,"UPDATE_MESSAGE_EDITOR_STAGING_TEXT",(function(){return L}));n.d(t,"REMOVE_MESSAGE_EDITOR_STAGING_TEXT",(function(){return B}));n.d(t,"THREAD_CREATED_AND_NETWORK_ONLINE",(function(){return F}));const r="APP_IN_FOREGROUND",i="APP_IN_BACKGROUND",a="TOGGLE_OPEN",s="ADD_CONVERSATION",o="OPEN_CONVERSATION_FOR_NEW_CHANNEL",c="RECEIVED_INCOMING_MESSAGE",u="CLEAR_CURRENT_CHANNEL",l="SUBSCRIBE_TO_THREAD_CHANNELS",d="CLEAR_UNSEEN_COUNT_FOR_CHANNEL",p="INCREMENT_UNSEEN_COUNT",f="ADD_MESSAGE_TO_CONVERSATION",h="UPDATE_MESSAGE_IN_CONVERSATION",b="NETWORK_OFFLINE",g="NETWORK_ONLINE",m="GET_WIDGET_DATA",O="GET_WIDGET_DATA_SUCCEEDED",v="CLICK_VIRAL_LINK",j="SEND_VISITOR_EMAIL_ADDRESS",y="SEND_VISITOR_EMAIL_ADDRESS_FAILED",E="SEND_VISITOR_EMAIL_ADDRESS_SUCCEEDED",T="CLICKED_MEETINGS_LINK",I="GET_SUPPLEMENTAL_INITIAL_MESSAGES",w="GET_SUPPLEMENTAL_INITIAL_MESSAGES_SUCCEEDED",S="GET_SUPPLEMENTAL_INITIAL_MESSAGES_FAILED",A="GET_VISITOR_THREADS",C="GET_VISITOR_THREADS_STARTED",x="GET_VISITOR_THREADS_SUCCESS",R="GET_VISITOR_THREADS_FAILURE",k="LAST_SEEN_SENT",P="LAST_SEEN_SUCCESS",D="LAST_SEEN_FAILURE",_="RECEIVED_WIDGET_SHELL_DATA",M="TRACK_USER_INTERACTION",N="USER_INPUT_ON_FOCUS",L="UPDATE_MESSAGE_EDITOR_STATING_TEXT",B="REMOVE_MESSAGE_EDITOR_STAGING_TEXT",F="THREAD_CREATED_AND_NETWORK_ONLINE"},xZpi:function(e,t,n){"use strict";t.a={mode:"lazy",source:"conversations-visitor-ui/lang",context:{af:function(){return n.e("conversations-visitor-ui-lang-af").then(n.t.bind(null,"XW5r",7))},"ar-eg":function(){return n.e("conversations-visitor-ui-lang-ar-eg").then(n.t.bind(null,"u9sz",7))},bg:function(){return n.e("conversations-visitor-ui-lang-bg").then(n.t.bind(null,"9xoX",7))},bn:function(){return n.e("conversations-visitor-ui-lang-bn").then(n.t.bind(null,"M4Zz",7))},"ca-es":function(){return n.e("conversations-visitor-ui-lang-ca-es").then(n.t.bind(null,"NWwL",7))},cs:function(){return n.e("conversations-visitor-ui-lang-cs").then(n.t.bind(null,"8uMG",7))},da:function(){return n.e("conversations-visitor-ui-lang-da").then(n.t.bind(null,"FmgF",7))},de:function(){return n.e("conversations-visitor-ui-lang-de").then(n.t.bind(null,"yGfd",7))},el:function(){return n.e("conversations-visitor-ui-lang-el").then(n.t.bind(null,"PVNW",7))},"en-gb":function(){return n.e("conversations-visitor-ui-lang-en-gb").then(n.t.bind(null,"/r2P",7))},en:function(){return Promise.resolve().then(n.t.bind(null,"AKyR",7))},"es-mx":function(){return n.e("conversations-visitor-ui-lang-es-mx").then(n.t.bind(null,"6SZs",7))},es:function(){return n.e("conversations-visitor-ui-lang-es").then(n.t.bind(null,"fIks",7))},et:function(){return n.e("conversations-visitor-ui-lang-et").then(n.t.bind(null,"0lgB",7))},fi:function(){return n.e("conversations-visitor-ui-lang-fi").then(n.t.bind(null,"nC0b",7))},"fr-ca":function(){return n.e("conversations-visitor-ui-lang-fr-ca").then(n.t.bind(null,"Y6xa",7))},fr:function(){return n.e("conversations-visitor-ui-lang-fr").then(n.t.bind(null,"w18m",7))},"he-il":function(){return n.e("conversations-visitor-ui-lang-he-il").then(n.t.bind(null,"vhs8",7))},hi:function(){return n.e("conversations-visitor-ui-lang-hi").then(n.t.bind(null,"J1rF",7))},hr:function(){return n.e("conversations-visitor-ui-lang-hr").then(n.t.bind(null,"Q0RM",7))},hu:function(){return n.e("conversations-visitor-ui-lang-hu").then(n.t.bind(null,"o4DY",7))},id:function(){return n.e("conversations-visitor-ui-lang-id").then(n.t.bind(null,"LwWv",7))},it:function(){return n.e("conversations-visitor-ui-lang-it").then(n.t.bind(null,"iU/p",7))},ja:function(){return n.e("conversations-visitor-ui-lang-ja").then(n.t.bind(null,"ihJe",7))},ko:function(){return n.e("conversations-visitor-ui-lang-ko").then(n.t.bind(null,"+A0e",7))},lt:function(){return n.e("conversations-visitor-ui-lang-lt").then(n.t.bind(null,"NO9I",7))},ms:function(){return n.e("conversations-visitor-ui-lang-ms").then(n.t.bind(null,"yVaP",7))},nl:function(){return n.e("conversations-visitor-ui-lang-nl").then(n.t.bind(null,"3QeF",7))},no:function(){return n.e("conversations-visitor-ui-lang-no").then(n.t.bind(null,"8MQe",7))},pl:function(){return n.e("conversations-visitor-ui-lang-pl").then(n.t.bind(null,"NyVn",7))},"pt-br":function(){return n.e("conversations-visitor-ui-lang-pt-br").then(n.t.bind(null,"Msud",7))},"pt-pt":function(){return n.e("conversations-visitor-ui-lang-pt-pt").then(n.t.bind(null,"ZpcJ",7))},ro:function(){return n.e("conversations-visitor-ui-lang-ro").then(n.t.bind(null,"cD5R",7))},ru:function(){return n.e("conversations-visitor-ui-lang-ru").then(n.t.bind(null,"jcZ2",7))},sk:function(){return n.e("conversations-visitor-ui-lang-sk").then(n.t.bind(null,"Q72w",7))},sl:function(){return n.e("conversations-visitor-ui-lang-sl").then(n.t.bind(null,"e+8j",7))},sv:function(){return n.e("conversations-visitor-ui-lang-sv").then(n.t.bind(null,"Bm3O",7))},th:function(){return n.e("conversations-visitor-ui-lang-th").then(n.t.bind(null,"/GZX",7))},tl:function(){return n.e("conversations-visitor-ui-lang-tl").then(n.t.bind(null,"Ldoj",7))},tr:function(){return n.e("conversations-visitor-ui-lang-tr").then(n.t.bind(null,"E6x1",7))},uk:function(){return n.e("conversations-visitor-ui-lang-uk").then(n.t.bind(null,"Zg72",7))},vi:function(){return n.e("conversations-visitor-ui-lang-vi").then(n.t.bind(null,"AU2H",7))},"zh-cn":function(){return n.e("conversations-visitor-ui-lang-zh-cn").then(n.t.bind(null,"lHxO",7))},"zh-hk":function(){return n.e("conversations-visitor-ui-lang-zh-hk").then(n.t.bind(null,"Xh1Y",7))},"zh-tw":function(){return n.e("conversations-visitor-ui-lang-zh-tw").then(n.t.bind(null,"GYMR",7))}}}},xe9j:function(e,t,n){"use strict";var r=n("QYOI"),i=n("F4Hj");var a=Object(r.Record)({accentColor:null,textColor:null,useDefaultColor:!1},"ColoringRecord"),s=n("+lAi"),o=n("Vfyk"),c=n("CXrm"),u=n("3z2x"),l=Object(r.Record)({consentToCommunicateSubscriptionId:null,customConsentToCommunicateMessage:null,customConsentToProcessMessage:null,gdprConsentToCommunicateEnabled:!1,gdprConsentToProcessEnabled:!1,gdprExplicitConsentToProcessRequired:!1,consentToProcessStatus:u.b,cookieConsentPrompt:c.a},"GDPRConsentOptions");const d="V1",p="RIGHT_ALIGNED",f="@type";t.a=Object(r.Record)({[f]:d,botResponder:null,chatflowId:null,coloring:a(),channelInstanceId:null,gates:null,gdprConsentOptions:l(),inOfficeHours:!1,knowledgeBaseUrl:null,language:null,meetingsLinkText:null,meetingsLinkUrl:null,message:Object(i.a)(),messagesPageUri:null,nextOfficeHoursStartTime:0,privateLoad:!1,sendFrom:null,sessionId:null,showingHsBranding:!1,shouldListenToGdprBannerConsent:!0,typicalResponseTime:Object(s.a)(),usingOfficeHours:!1,availabilityOptions:new o.a,showPreviousConversations:!0,widgetLocation:p,notificationAudio:null},"WidgetData")},xeq1:function(e,t,n){"use strict";n.r(t);n.d(t,"getIsPortal53Prod",(function(){return s}));var r=n("nDpY"),i=n.n(r),a=n("xXtf");const s=()=>i.a.get()===a.a},xfs0:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="THREAD_STATUS_UPDATE"},xmwc:function(e,t,n){"use strict";n.r(t);n.d(t,"removeTimeOnPageTrigger",(function(){return a}));var r=n("SsBI"),i=n("e/Xz");const a=()=>(e,t)=>{const n=Object(r.getTimeOnPageTriggerTimeoutId)(t());clearTimeout(n);e(Object(i.removeTimeOnPageTriggerAction)())}},xr6y:function(e,t,n){"use strict";n.d(t,"a",(function(){return J}));n.d(t,"b",(function(){return Y}));n.d(t,"c",(function(){return D}));n.d(t,"d",(function(){return Z}));n.d(t,"e",(function(){return X}));n.d(t,"f",(function(){return ie}));n.d(t,"g",(function(){return ae}));n.d(t,"h",(function(){return ce}));n.d(t,"i",(function(){return le}));n.d(t,"j",(function(){return v}));var r=n("Lm/k"),i=n("Zulv"),a=n("Ktcs"),s=n.n(a);const o=["register"],c=["onPress","onPressChange","onPressStart","onPressEnd","onPressUp","isDisabled","isPressed","preventFocusOnPress","shouldCancelOnPointerExit","allowTextSelectionOnPress","ref"];let u="default",l="",d=new WeakMap;function p(e){if(Object(i.f)()){if("default"===u){l=document.documentElement.style.webkitUserSelect;document.documentElement.style.webkitUserSelect="none"}u="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){d.set(e,e.style.userSelect);e.style.userSelect="none"}}function f(e){if(Object(i.f)()){if("disabled"!==u)return;u="restoring";setTimeout(()=>{Object(i.j)(()=>{if("restoring"===u){"none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=l||"");l="";u="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&d.has(e)){let t=d.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t);""===e.getAttribute("style")&&e.removeAttribute("style");d.delete(e)}}function h(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}class b{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0;this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation();this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t;this.target=t.target;this.currentTarget=t.currentTarget;this.relatedTarget=t.relatedTarget;this.bubbles=t.bubbles;this.cancelable=t.cancelable;this.defaultPrevented=t.defaultPrevented;this.eventPhase=t.eventPhase;this.isTrusted=t.isTrusted;this.timeStamp=t.timeStamp;this.type=e}}function g(e){let t=Object(a.useRef)({isFocused:!1,onBlur:e,observer:null});t.current.onBlur=e;Object(i.q)(()=>{const e=t.current;return()=>{if(e.observer){e.observer.disconnect();e.observer=null}}},[]);return Object(a.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target,r=e=>{var r,i;t.current.isFocused=!1;n.disabled&&(null===(i=(r=t.current).onBlur)||void 0===i||i.call(r,new b("blur",e)));if(t.current.observer){t.current.observer.disconnect();t.current.observer=null}};n.addEventListener("focusout",r,{once:!0});t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer.disconnect();n.dispatchEvent(new FocusEvent("blur"));n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0}))}});t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}const m=s.a.createContext(null);m.displayName="PressResponderContext";function O(e){let t=Object(a.useContext)(m);if(t){let{register:n}=t,a=Object(r.a)(t,o);e=Object(i.i)(a,e);n()}Object(i.s)(t,e.ref);return e}function v(e){let t=O(e),{onPress:n,onPressChange:s,onPressStart:o,onPressEnd:u,onPressUp:l,isDisabled:d,isPressed:b,preventFocusOnPress:g,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:v}=t,w=Object(r.a)(t,c),S=Object(a.useRef)(null);S.current={onPress:n,onPressChange:s,onPressStart:o,onPressEnd:u,onPressUp:l,isDisabled:d,shouldCancelOnPointerExit:m};let[R,k]=Object(a.useState)(!1),D=Object(a.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:_,removeAllGlobalListeners:M}=Object(i.n)(),N=Object(a.useMemo)(()=>{let e=D.current,t=(t,n)=>{let{onPressStart:r,onPressChange:i,isDisabled:a}=S.current;if(!a&&!e.didFirePressStart){r&&r({type:"pressstart",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey});i&&i(!0);e.didFirePressStart=!0;k(!0)}},n=(t,n,r=!0)=>{let{onPressEnd:i,onPressChange:a,onPress:s,isDisabled:o}=S.current;if(e.didFirePressStart){e.ignoreClickAfterPress=!0;e.didFirePressStart=!1;i&&i({type:"pressend",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey});a&&a(!1);k(!1);s&&r&&!o&&s({type:"press",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey})}},r=(e,t)=>{let{onPressUp:n,isDisabled:r}=S.current;r||n&&n({type:"pressup",pointerType:t,target:e.currentTarget,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},a=t=>{if(e.isPressed){e.isOverTarget&&n(I(e.target,t),e.pointerType,!1);e.isPressed=!1;e.isOverTarget=!1;e.activePointerId=null;e.pointerType=null;M();v||f(e.target)}},s={onKeyDown(n){if(y(n.nativeEvent,n.currentTarget)&&n.currentTarget.contains(n.target)){x(n.target,n.key)&&n.preventDefault();n.stopPropagation();if(!e.isPressed&&!n.repeat){e.target=n.currentTarget;e.isPressed=!0;t(n,"keyboard");_(document,"keyup",o,!1)}}else"Enter"===n.key&&j(n.currentTarget)&&n.stopPropagation()},onKeyUp(t){y(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(I(e.target,t),"keyboard")},onClick(a){if((!a||a.currentTarget.contains(a.target))&&a&&0===a.button){a.stopPropagation();d&&a.preventDefault();if(!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&("virtual"===e.pointerType||h(a.nativeEvent))){d||g||Object(i.c)(a.currentTarget);t(a,"virtual");r(a,"virtual");n(a,"virtual")}e.ignoreEmulatedMouseEvents=!1;e.ignoreClickAfterPress=!1}}},o=t=>{if(e.isPressed&&y(t,e.target)){x(t.target,t.key)&&t.preventDefault();t.stopPropagation();e.isPressed=!1;let r=t.target;n(I(e.target,t),"keyboard",e.target.contains(r));M();e.target instanceof HTMLElement&&e.target.contains(r)&&(j(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){s.onPointerDown=n=>{if(0===n.button&&n.currentTarget.contains(n.target))if(P(n.nativeEvent))e.pointerType="virtual";else{C(n.currentTarget)&&n.preventDefault();e.pointerType=n.pointerType;n.stopPropagation();if(!e.isPressed){e.isPressed=!0;e.isOverTarget=!0;e.activePointerId=n.pointerId;e.target=n.currentTarget;d||g||Object(i.c)(n.currentTarget);v||p(e.target);t(n,e.pointerType);_(document,"pointermove",o,!1);_(document,"pointerup",c,!1);_(document,"pointercancel",u,!1)}}};s.onMouseDown=e=>{if(e.currentTarget.contains(e.target)&&0===e.button){C(e.currentTarget)&&e.preventDefault();e.stopPropagation()}};s.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&A(t,t.currentTarget)&&r(t,e.pointerType||t.pointerType)};let o=r=>{if(r.pointerId===e.activePointerId)if(A(r,e.target)){if(!e.isOverTarget){e.isOverTarget=!0;t(I(e.target,r),e.pointerType)}}else if(e.isOverTarget){e.isOverTarget=!1;n(I(e.target,r),e.pointerType,!1);S.current.shouldCancelOnPointerExit&&a(r)}},c=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button){A(t,e.target)?n(I(e.target,t),e.pointerType):e.isOverTarget&&n(I(e.target,t),e.pointerType,!1);e.isPressed=!1;e.isOverTarget=!1;e.activePointerId=null;e.pointerType=null;M();v||f(e.target)}},u=e=>{a(e)};s.onDragStart=e=>{e.currentTarget.contains(e.target)&&a(e)}}else{s.onMouseDown=n=>{if(0===n.button&&n.currentTarget.contains(n.target)){C(n.currentTarget)&&n.preventDefault();n.stopPropagation();if(!e.ignoreEmulatedMouseEvents){e.isPressed=!0;e.isOverTarget=!0;e.target=n.currentTarget;e.pointerType=h(n.nativeEvent)?"virtual":"mouse";d||g||Object(i.c)(n.currentTarget);t(n,e.pointerType);_(document,"mouseup",o,!1)}}};s.onMouseEnter=n=>{if(n.currentTarget.contains(n.target)){n.stopPropagation();if(e.isPressed&&!e.ignoreEmulatedMouseEvents){e.isOverTarget=!0;t(n,e.pointerType)}}};s.onMouseLeave=t=>{if(t.currentTarget.contains(t.target)){t.stopPropagation();if(e.isPressed&&!e.ignoreEmulatedMouseEvents){e.isOverTarget=!1;n(t,e.pointerType,!1);S.current.shouldCancelOnPointerExit&&a(t)}}};s.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||r(t,e.pointerType))};let o=t=>{if(0===t.button){e.isPressed=!1;M();if(e.ignoreEmulatedMouseEvents)e.ignoreEmulatedMouseEvents=!1;else{A(t,e.target)?n(I(e.target,t),e.pointerType):e.isOverTarget&&n(I(e.target,t),e.pointerType,!1);e.isOverTarget=!1}}};s.onTouchStart=n=>{if(!n.currentTarget.contains(n.target))return;n.stopPropagation();let r=E(n.nativeEvent);if(r){e.activePointerId=r.identifier;e.ignoreEmulatedMouseEvents=!0;e.isOverTarget=!0;e.isPressed=!0;e.target=n.currentTarget;e.pointerType="touch";d||g||Object(i.c)(n.currentTarget);v||p(e.target);t(n,e.pointerType);_(window,"scroll",c,!0)}};s.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;r.stopPropagation();if(!e.isPressed)return;let i=T(r.nativeEvent,e.activePointerId);if(i&&A(i,r.currentTarget)){if(!e.isOverTarget){e.isOverTarget=!0;t(r,e.pointerType)}}else if(e.isOverTarget){e.isOverTarget=!1;n(r,e.pointerType,!1);S.current.shouldCancelOnPointerExit&&a(r)}};s.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;t.stopPropagation();if(!e.isPressed)return;let i=T(t.nativeEvent,e.activePointerId);if(i&&A(i,t.currentTarget)){r(t,e.pointerType);n(t,e.pointerType)}else e.isOverTarget&&n(t,e.pointerType,!1);e.isPressed=!1;e.activePointerId=null;e.isOverTarget=!1;e.ignoreEmulatedMouseEvents=!0;v||f(e.target);M()};s.onTouchCancel=t=>{if(t.currentTarget.contains(t.target)){t.stopPropagation();e.isPressed&&a(t)}};let c=t=>{e.isPressed&&t.target.contains(e.target)&&a({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};s.onDragStart=e=>{e.currentTarget.contains(e.target)&&a(e)}}return s},[_,d,g,M,v]);Object(a.useEffect)(()=>()=>{v||f(D.current.target)},[v]);return{isPressed:b||R,pressProps:Object(i.i)(w,N)}}function j(e){return"A"===e.tagName&&e.hasAttribute("href")}function y(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==r||i instanceof HTMLInputElement&&!k(i,n)||i instanceof HTMLTextAreaElement||i.isContentEditable||j(i)&&("button"!==a||"Enter"===n)||"link"===a&&"Enter"!==n)}function E(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function T(e,t){const n=e.changedTouches;for(let e=0;et.right||t.left>e.right)&&!(e.top>t.bottom||t.top>e.bottom)}function A(e,t){return S(t.getBoundingClientRect(),w(e))}function C(e){return!(e instanceof HTMLElement&&e.draggable)}function x(e,t){return e instanceof HTMLInputElement?!k(e,t):!(e instanceof HTMLButtonElement)||"submit"!==e.type}const R=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function k(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:R.has(e.type)}function P(e){return 0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}function D(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=Object(a.useCallback)(e=>{if(e.target===e.currentTarget){r&&r(e);i&&i(!1);return!0}},[r,i]),o=g(s),c=Object(a.useCallback)(e=>{if(e.target===e.currentTarget){n&&n(e);i&&i(!0);o(e)}},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?c:void 0,onBlur:t||!r&&!i?null:s}}}let _=null,M=new Set,N=!1,L=!1,B=!1;const F={Tab:!0,Escape:!0};function H(e,t){for(let n of M)n(e,t)}function U(e){return!(e.metaKey||!Object(i.g)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}function V(e){L=!0;if(U(e)){_="keyboard";H("keyboard",e)}}function G(e){_="pointer";if("mousedown"===e.type||"pointerdown"===e.type){L=!0;H("pointer",e)}}function W(e){if(h(e)){L=!0;_="virtual"}}function z(e){if(e.target!==window&&e.target!==document){if(!L&&!B){_="virtual";H("virtual",e)}L=!1;B=!1}}function q(){L=!1;B=!0}function K(){if("undefined"==typeof window||N)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){L=!0;e.apply(this,arguments)};document.addEventListener("keydown",V,!0);document.addEventListener("keyup",V,!0);document.addEventListener("click",W,!0);window.addEventListener("focus",z,!0);window.addEventListener("blur",q,!1);if("undefined"!=typeof PointerEvent){document.addEventListener("pointerdown",G,!0);document.addEventListener("pointermove",G,!0);document.addEventListener("pointerup",G,!0)}else{document.addEventListener("mousedown",G,!0);document.addEventListener("mousemove",G,!0);document.addEventListener("mouseup",G,!0)}N=!0}"undefined"!=typeof document&&("loading"!==document.readyState?K():document.addEventListener("DOMContentLoaded",K));function Y(){return"pointer"!==_}function J(){return _}function Q(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!F[n.key])}function Z(e,t,n){K();Object(a.useEffect)(()=>{let t=(t,r)=>{Q(null==n?void 0:n.isTextInput,t,r)&&e(Y())};M.add(t);return()=>{M.delete(t)}},t)}function X(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=Object(a.useRef)({isFocusWithin:!1}),o=Object(a.useCallback)(e=>{if(s.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)){s.current.isFocusWithin=!1;n&&n(e);i&&i(!1)}},[n,i,s]),c=g(o),u=Object(a.useCallback)(e=>{if(!s.current.isFocusWithin){r&&r(e);i&&i(!0);s.current.isFocusWithin=!0;c(e)}},[r,i,c]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:u,onBlur:o}}}let $=!1,ee=0;function te(){$=!0;setTimeout(()=>{$=!1},50)}function ne(e){"touch"===e.pointerType&&te()}function re(){if("undefined"!=typeof document){"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",ne):document.addEventListener("touchend",te);ee++;return()=>{ee--;ee>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",ne):document.removeEventListener("touchend",te))}}}function ie(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,o]=Object(a.useState)(!1),c=Object(a.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Object(a.useEffect)(re,[]);let{hoverProps:u,triggerHoverEnd:l}=Object(a.useMemo)(()=>{let e=(e,r)=>{c.pointerType=r;if(i||"touch"===r||c.isHovered||!e.currentTarget.contains(e.target))return;c.isHovered=!0;let a=e.currentTarget;c.target=a;t&&t({type:"hoverstart",target:a,pointerType:r});n&&n(!0);o(!0)},a=(e,t)=>{c.pointerType="";c.target=null;if("touch"===t||!c.isHovered)return;c.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:t});n&&n(!1);o(!1)},s={};if("undefined"!=typeof PointerEvent){s.onPointerEnter=t=>{$&&"mouse"===t.pointerType||e(t,t.pointerType)};s.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&a(e,e.pointerType)}}else{s.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0};s.onMouseEnter=t=>{c.ignoreEmulatedMouseEvents||$||e(t,"mouse");c.ignoreEmulatedMouseEvents=!1};s.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&a(e,"mouse")}}return{hoverProps:s,triggerHoverEnd:a}},[t,n,r,i,c]);Object(a.useEffect)(()=>{i&&l({currentTarget:c.target},c.pointerType)},[i]);return{hoverProps:u,isHovered:s}}function ae(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,s=Object(a.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:i}).current;s.onInteractOutside=n;s.onInteractOutsideStart=i;Object(a.useEffect)(()=>{if(r)return;let e=e=>{if(se(e,t)&&s.onInteractOutside){s.onInteractOutsideStart&&s.onInteractOutsideStart(e);s.isPointerDown=!0}};if("undefined"!=typeof PointerEvent){let n=e=>{if(s.isPointerDown&&s.onInteractOutside&&se(e,t)){s.isPointerDown=!1;s.onInteractOutside(e)}};document.addEventListener("pointerdown",e,!0);document.addEventListener("pointerup",n,!0);return()=>{document.removeEventListener("pointerdown",e,!0);document.removeEventListener("pointerup",n,!0)}}{let n=e=>{if(s.ignoreEmulatedMouseEvents)s.ignoreEmulatedMouseEvents=!1;else if(s.isPointerDown&&s.onInteractOutside&&se(e,t)){s.isPointerDown=!1;s.onInteractOutside(e)}},r=e=>{s.ignoreEmulatedMouseEvents=!0;if(s.onInteractOutside&&s.isPointerDown&&se(e,t)){s.isPointerDown=!1;s.onInteractOutside(e)}};document.addEventListener("mousedown",e,!0);document.addEventListener("mouseup",n,!0);document.addEventListener("touchstart",e,!0);document.addEventListener("touchend",r,!0);return()=>{document.removeEventListener("mousedown",e,!0);document.removeEventListener("mouseup",n,!0);document.removeEventListener("touchstart",e,!0);document.removeEventListener("touchend",r,!0)}}},[t,s,r])}function se(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1}return t.current&&!t.current.contains(e.target)}function oe(e){if(!e)return;let t=!0;return n=>{let r=Object.assign({},n,{preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}});e(r);t&&n.stopPropagation()}}function ce(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:oe(e.onKeyDown),onKeyUp:oe(e.onKeyUp)}}}const ue=500;function le(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:s,threshold:o=ue,accessibilityDescription:c}=e;const u=Object(a.useRef)(null);let{addGlobalListener:l,removeGlobalListener:d}=Object(i.n)(),{pressProps:p}=v({isDisabled:t,onPressStart(e){if("mouse"===e.pointerType||"touch"===e.pointerType){n&&n(Object.assign({},e,{type:"longpressstart"}));u.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0}));s&&s(Object.assign({},e,{type:"longpress"}));u.current=null},o);if("touch"===e.pointerType){let t=e=>{e.preventDefault()};l(e.target,"contextmenu",t,{once:!0});l(window,"pointerup",()=>{setTimeout(()=>{d(e.target,"contextmenu",t)},30)},{once:!0})}}},onPressEnd(e){u.current&&clearTimeout(u.current);!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r(Object.assign({},e,{type:"longpressend"}))}}),f=Object(i.l)(s&&!t?c:null);return{longPressProps:Object(i.i)(p,f)}}},xrOf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="FILTERED_CHANGE"},xw4j:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="CHAT_TRANSCRIPT_SENT"},xwWp:function(e,t,n){"use strict";n.r(t);n.d(t,"widgetIsInAwayMode",(function(){return a}));var r=n("dLEV"),i=n("r8xu");const a=Object(r.createSelector)([i.a],e=>Boolean(e))},xyDt:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("qjq5"),i=n("DdHT"),a=n("46XF");const s=Object(r.a)((e,t)=>Object(i.a)(Object(a.a)(null),Object(a.d)(e),a.c)(t))},"y+PV":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("EN6V"),i=n("VToG"),a=n("nt9Q");const s=Object(a.a)(i.c,r.a)},"y5/z":function(e,t,n){"use strict";n.r(t);var r=n("JGJA"),i=n("dLEV"),a=n("Iiq6"),s=n("4fgK"),o=n("Li7z"),c=n("xwWp");const u="online",l="offline;",d=Object(i.createSelector)(c.widgetIsInAwayMode,e=>e?l:u);var p=n("49A5");const f=e=>Object(r.a)("visitorIdentificationEnabled",e);var h=n("HCbP");const b=e=>Object(r.a)("knowledgeBaseEnabled",e);var g=n("8dR1");const m=Object(i.createSelector)([g.a],e=>b(e)),O=Object(i.createSelector)([d,s.getIsBot,a.a,p.getLatestWidgetData,m,f,h.getFeedbackSurveyEnabled],(e,t,n,i,a,s,c)=>({state:e,botEnabled:t,promptEnabled:n,path:Object(o.getUrlForMessage)(),chatflowId:Object(r.a)("chatflowId",i),knowledgeBaseEnabled:a,visitorIdentificationEnabled:s,feedbackSurveyEnabled:c}));var v=n("cdXU");const j=Object(i.createSelector)(p.getLatestWidgetData,e=>Object(v.getIsPrivateLoad)(e));var y=n("pZpR"),E=n("NqZZ");n.d(t,"trackInteraction",(function(){return w}));let T=!1;const I=new Set;function w(e,t={},n=!1,r=!1){return(i,a)=>{const s=Object(y.getUsageTracker)(),o=j(a()),c=Object(E.getIsUserTrackingAllowed)(a());if(!r||!I.has(e)){r&&I.add(e);if(c&&!T){s.track(e,Object.assign({},t,O(a()),{privateLoad:o}));T=n}}}}},y9Cc:function(e,t,n){"use strict";n.r(t);n.d(t,"getAskForEmailMessage",(function(){return s}));var r=n("npjq"),i=n("dLEV"),a=n("8dR1");const s=Object(i.createSelector)(a.a,(e={})=>e.askForEmailMessage?e.askForEmailMessage:r.a.text("conversations-visitor-ui.askForEmailMessage"))},yDuE:function(e,t,n){"use strict";n.r(t);n.d(t,"getChannelInstanceIdFromCurrentThreadHistory",(function(){return a}));var r=n("dLEV"),i=n("ZSXR");const a=Object(r.createSelector)(i.a,e=>e.data.messages.results.toList().filter(e=>!(null===e.channelInstanceId||void 0===e.channelInstanceId)).sort((e,t)=>e.timeStamp-t.timeStamp).last().channelInstanceId)},yH0d:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=()=>/\bHub[sS]pot ?Mobile ?SDK\b/.test(window.navigator.userAgent)},"yS+k":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("nDpY"),i=n.n(r),a=n("xXtf"),s=n("LZPL"),o=n.n(s);const c=()=>i.a.get()===a.a||o.a.isQa()&&i.a.get()===a.b},yYAF:function(e,t,n){e.exports=n.dlbpr(1,57)},yb5F:function(e,t,n){"use strict";n.r(t);n.d(t,"resubscribe",(function(){return l}));n.d(t,"updateSubscriptions",(function(){return d}));n.d(t,"overwriteSubscriptions",(function(){return p}));var r=n("cjt2"),i=n("5vQK"),a=n("BxyF"),s=n("fogE");const o=(e,t=i.a)=>({type:r.h.STARTED,payload:{clientKey:t,subscriptions:e}}),c=(e,t=i.a)=>({type:r.h.SUCCEEDED,payload:{clientKey:t,subscriptions:e}}),u=(e,t=i.a)=>({type:r.h.FAILED,payload:{clientKey:t,error:e},meta:Object(s.a)()}),l=e=>({type:r.g,payload:{clientKey:e}}),d=(e,t=i.a)=>(n,r)=>{const i=Object(a.getPubSubClient)(r(),{clientKey:t});n(o(e,t));i.updateSubscriptions(e).then(e=>{e!==i.updateSubscriptions.DEBOUNCED&&n(c(e,t))},e=>{n(u(e,t))}).catch(e=>{setTimeout(()=>{n(u(e,t))})})},p=(e,t=i.a)=>(n,r)=>{const i=Object(a.getPubSubClient)(r(),{clientKey:t});n(o(e,t));i.overwriteSubscriptions(e).then(e=>{e!==i.overwriteSubscriptions.DEBOUNCED&&n(c(e,t))},e=>{n(u(e,t))}).catch(e=>{setTimeout(()=>{n(u(e,t))})})}},ye6p:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=(e,t={})=>Object(r.a)("thread",t)},yivD:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));let r=0;function i(e=""){return`${e}${r++}`}},yslo:function(e,t,n){"use strict";var r=n("QYOI"),i=n("uOZ5");class a extends(Object(r.Record)({"@type":i.c,userIds:Object(r.List)(),teamIds:Object(r.List)()},"UsersAndTeamsChatHeadingConfig")){constructor(e={}){super(Object(r.fromJS)(e))}}t.a=a},yuy6:function(e,t,n){"use strict";var r=n("QYOI"),i=n("9Mwj"),a=n("c1C1"),s=n("BvOu"),o=n("xfs0"),c=n("W26t");class u extends(Object(r.Record)({"@type":o.a,id:null,timestamp:null,sender:Object(r.Map)(),messageDeletedStatus:i.a,auditParams:Object(c.a)(),currentStatus:null,previousStatus:null},"ThreadStatusUpdateMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(s.generateUuid)(),auditParams:Object(c.a)(e.auditParams),timestamp:e.timestamp||Object(a.generateUniqueClientTimestamp)("ThreadStatusUpdateMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=u},ywGS:function(e,t,n){"use strict";n.r(t);n.d(t,"postShowPageTitleNotification",(function(){return a}));var r=n("n6ol"),i=n("CITH");const a=e=>{Object(i.a)(r.t,e)}},yxYB:function(e,t,n){"use strict";n.r(t);var r=n("dLEV"),i=n("49A5"),a=n("JGJA");const s=Object(a.a)("availabilityOptions");n.d(t,"getWidgetAvailabilityOptions",(function(){return o}));const o=Object(r.createSelector)([i.getLatestWidgetData],s)},yy6y:function(e,t,n){"use strict";n.r(t);n.d(t,"getShouldListenToGdprBannerConsent",(function(){return i}));var r=n("JGJA");const i=e=>Object(r.a)("shouldListenToGdprBannerConsent",e)},z8AP:function(e,t,n){"use strict";n.r(t);n.d(t,"hasNewUnseenMessage",(function(){return s}));var r=n("npjq"),i=n("tcuH"),a=n("ywGS");const s=({channel:e,threadId:t})=>n=>{n(Object(i.incrementUnseenCount)({channel:e,threadId:t}));Object(a.postShowPageTitleNotification)({title:r.a.text("conversationsVisitorUIPageTitleNotifications.newMessage")})}},z96q:function(e,t,n){"use strict";n.r(t);n.d(t,"sendVisitorEmailAddress",(function(){return i}));var r=n("VYoM");function i({threadId:e,email:t,sessionId:n,hubspotUtk:i}){return r.a.post("livechat-public/v1/visitor/public",{query:{threadId:e,email:t,sessionId:n,hubspotUtk:i}})}},zFg9:function(e,t,n){"use strict";var r=n("QYOI");const i=Object(r.Record)({isFullscreen:!1,mobile:!1,open:!1,hideWelcomeMessage:!1,domain:null,startOpen:void 0,url:null,userInteractedWithWidget:!1,isEmbeddedInProduct:!1,mode:null,isAttachmentDisabled:!1,isInitialInputFocusDisabled:!1,apiEnableWidgetCookieBanner:!1,isInCMS:!1,hideScrollToButton:!0},"WidgetUi");t.a=i},zGIQ:function(e,t,n){"use strict";var r=n("dLEV"),i=n("QYOI"),a=n("cKdz");const s=3;function o({assignedResponder:e=null,chatHeadingConfig:t,responders:n,sendFromResponders:r=n}){const o=e?Object(i.List)([e]):r;return(o.size||!Object(a.a)(t)&&t?o:n).take(s)}var c=n("GOyg"),u=n("AFl3"),l=n("QeSX"),d=n("hTKa");n.d(t,"a",(function(){return p}));const p=Object(r.createSelector)([l.getAssignedResponderInWidget,c.a,u.a,d.a],(e,t,n,r)=>o({assignedResponder:e,chatHeadingConfig:t,responders:n,sendFromResponders:r}))},"zP/g":function(e,t){e.exports={"/":{success:{default:["VISITOR_SUCCESS"]},error:["VISITOR_ERROR"]}}},zZzs:function(e,t,n){"use strict";n.r(t);n.d(t,"getAvailabilityStrategy",(function(){return i}));n.d(t,"getAvailabilityStrategyConfig",(function(){return a}));n.d(t,"getInboxIsMissingAvailabilityConfig",(function(){return s}));n.d(t,"getOfficeHoursStartTime",(function(){return o}));n.d(t,"getTypicalResponseTime",(function(){return c}));var r=n("JGJA");const i=Object(r.a)("availabilityStrategy"),a=Object(r.a)("availabilityStrategyConfig"),s=e=>!a(e),o=Object(r.a)("officeHoursStartTime"),c=Object(r.a)("typicalResponseTime")},"zbS+":function(e,t,n){"use strict";var r=n("ubOH"),i=n("QYOI"),a=n("9Mwj"),s=n("KZZz");const o=Object(i.Record)({"@type":s.a,sender:Object(i.Map)(),senders:Object(i.List)(),timestamp:null,text:"",richText:"",hasMore:!1,id:null,status:Object(r.a)(),attachments:Object(i.List)(),messageDeletedStatus:a.a,clientType:null,genericChannelId:null},"CommentMessage");t.a=o},zry8:function(e,t,n){"use strict";n.r(t);n.d(t,"handleOpenChange",(function(){return a}));var r=n("n6ol"),i=n("CITH");const a=(e,t)=>Object(i.a)(r.l,{isOpen:e,isUser:t})},zs6M:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("KrP/"),i=n("dLEV"),a=n("y5/z");const s=Object(i.createAction)(r.e);function o(){return e=>{e(Object(a.trackInteraction)("widget-interaction",{action:"close consent to process"}));e(s())}}}}); //# sourceMappingURL=//static.hsappstatic.net/conversations-visitor-ui/static-1.19103/bundles/visitor.js.map