212 Zeilen
489 KiB
JavaScript
212 Zeilen
489 KiB
JavaScript
(()=>{var e,t,n,o={49445:(e,t,n)=>{"use strict";var o=n(66532),r=n(52983),i=n(78520),s=n(99951),a=n(79619),l=n.n(a),c=n(47966),E=n(80070),u=n(1441),h=n(88372),d=n(9967),_=n(76438),p=n(40684);const m="checkIn",S={ON_BOOT:"onBoot",ON_SHOW:"onShow",ON_HIDE:"onHide",ON_CREATE_CHAT:"onCreateChat",ON_CHANGE_BADGE:"onChangeBadge",ON_CHANGE_PROFILE:"onChangeProfile",ON_CLICK_REDIRECT:"onClickRedirect",ON_PROFILE_CHANGED:"onProfileChanged",ON_SHOW_MESSENGER:"onShowMessenger",ON_HIDE_MESSENGER:"onHideMessenger",ON_BADGE_CHANGED:"onBadgeChanged",ON_FOLLOW_UP_CHANGED:"onFollowUpChanged",ON_CHAT_CREATED:"onChatCreated",ON_URL_CLICKED:"onUrlClicked",ON_POPUP_DATA_RECEIVED:"onPopupDataReceived"},g=Object.values(S);var T=n(47864),C=n(27224),R=n(58078),f=n(50022);const A={[m]:"Warning: checkIn API is deprecated and will be removed in a future release. Consider using boot callback instead. See https://developers.channel.io/docs/web-channelio#boot for more information."},I=e=>(e.q=Array.isArray(e.q)?e.q:[],e.q),v=((e,t)=>{const n={};let o=[],r=null;return e.initialize=e=>{(0,f.PO)(e)&&t.setSettings(e)},e.checkIn=n=>{(0,f.mf)(e.checkOut)&&e.checkOut(),(0,f.PO)(n)&&t.setSettings({...t.settings,user:n});const i=t.getPluginKey(),s=t.getProfile(),a={...t.getUtmProfile(),...t.getReferrerProfile()},l=t.getMemberId();r&&i&&r.dispatch(p.Z.pluginActions.requestBoot({pluginKey:i,option:{profile:s,profileOnce:a,memberId:l}})).subject.subscribe({next:()=>{o.forEach((t=>{const n=t[0],o=t[1];(0,f.mf)(e[n])&&e[n](o)})),o=[]},error:()=>{}})},e.checkOut=()=>{r&&r.dispatch(p.Z.pluginActions.shutdown())},e.show=function(){if(!r)return;const e=T.Z.pluginSelectors.isBooted(r.getState());if(e)r.dispatch(p.Z.uiActions.setShowMessenger({showMessenger:!0}));else{for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];o.push(["show",n])}},e.hide=()=>{r&&r.dispatch(p.Z.uiActions.setShowMessenger({showMessenger:!1}))},e.track=(e,t)=>{r&&((0,f.HD)(e)?(0,f.HD)(e)&&""===e?(0,C.wN)("track failed: name argument is empty string."):(0,f.kK)(t)||(0,f.Kn)(t)?r.dispatch(p.Z.eventActions.requestCreateEvent({channelId:T.Z.channelSelectors.getChannel(r.getState()).id,name:e,property:t})):(0,C.wN)("track failed: property argument must be object type."):(0,C.wN)("track failed: name argument must be string type."))},e.on=(e,t)=>{(0,f.HD)(e)&&(0,f.mf)(t)&&((e=>{(0,R.e$)(A,e)&&(0,C.wN)(A[e])})(e),n[e]=n[e]||[],n[e].push(t))},{setStore:e=>{r=e},execQueue:()=>{I(e).forEach((t=>{if(!Array.isArray(t))return;const n=t[0];"on"!==n&&(0,f.HD)(n)&&(0,f.mf)(e[n])&&e[n].apply(null,t.slice(1))}))},submitCallback:()=>{I(e).forEach((t=>{if(!Array.isArray(t))return;const n=t[0];"on"===n&&e[n].apply(null,t.slice(1))}))},execCallback:function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];n[e]=n[e]||[],n[e].forEach((e=>e(...o)))}}})(((y=d.Z.topmostWindow).CHPlugin=y.CHPlugin||{},y.CHPlugin),_.Z);var y;const U=v;var Z=n(94109),O=n(88981),b=n(79591),N=n(97390),w=n(64774),L=n(18934),M=n(46685),P=n(63627),D=n(20983),k=n(81168),x=n(65315),H=n(6989),G=n(83969);class B{static getCookieName(e,t,n){return{accessToken:`ch-x-${e}-${t}-${n}-access-token`,refreshToken:`ch-x-${e}-${t}-${n}-refresh-token`}}setTokens(e){const{accessToken:t,refreshToken:n,accessTokenExpiresAt:o,refreshTokenExpiresAt:r,channelId:i,userId:s,appId:a}=e,l=Date.now(),c=B.getCookieName(s,i,a);this.setCookie(c.accessToken,t,Math.floor((o-l)/1e3)),this.setCookie(c.refreshToken,n,Math.floor((r-l)/1e3))}getAccessToken(e,t,n){return(0,Z.ej)(B.getCookieName(e,t,n).accessToken)}getRefreshToken(e,t,n){return(0,Z.ej)(B.getCookieName(e,t,n).refreshToken)}setCookie(e,t,n){const o=[`${e}=${t}`,`Max-Age=${n}`,"Path=/","SameSite=Lax"];document.cookie=o.join(";")}}const Q=new B;var W=n(84555);const F=(0,O.l)(((e,t,n)=>{let{_AccessTokenService:o=Q}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.EXECUTE_ACTION)),(0,D.z)((n=>{const{action:r,triggerType:i,messageId:s}=n.payload;let a=n.payload.userChatId;if("message"===r.type){const{attributes:e}=r;return(0,N.of)(p.Z.chatroomInputActions.setChatRoomInputValue({value:e.text}),n.lifeCycle.getSuccessAction(),n.lifeCycle.getCompleteAction())}if("command"===r.type){const o=T.Z.channelSelectors.getChannelId(t.value),l=T.Z.i18nSelectors.getCurrentLanguage(t.value);a??=T.Z.userChatsSelectors.getCurrentUserChatId(t.value);const c=p.Z.appCommandActions.requestExecuteCommand({triggerType:i,appId:r.attributes.appId,name:r.attributes.name,input:r.attributes.params,channelId:o,userChatId:a,messageId:s,language:null==l?void 0:l.code});return(0,w.T)((0,N.of)(c),(0,L.D)(c.subject).pipe((0,k.w)((()=>(0,N.of)(n.lifeCycle.getSuccessAction(),n.lifeCycle.getCompleteAction()))),(0,x.K)((()=>(0,N.of)(n.lifeCycle.getErrorAction()))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))}if("wam"===r.type){const i=T.Z.userSelectors.getUserId(t.value),s=T.Z.channelSelectors.getChannelId(t.value),l=r.attributes.appId,c=T.Z.uiSelectors.isMessengerVisible(t.value);let E;const u=o.getAccessToken(i,s,l),h=o.getRefreshToken(i,s,l);if(h){if(u)return(0,N.of)(p.Z.wamModalActions.openWamModal({appId:r.attributes.appId,name:r.attributes.name,wamArgs:r.attributes.wamArgs,accessToken:u,refreshToken:h}),n.lifeCycle.getSuccessAction(),n.lifeCycle.getCompleteAction());E=p.Z.appCommandActions.requestRefreshXAccessToken({refreshToken:h})}else E=p.Z.appCommandActions.requestGetXAccessToken({channelId:s,appId:l});const d=[E];return c||d.unshift(p.Z.uiActions.setShowMessenger({showMessenger:!0})),a&&d.unshift(p.Z.userChatActions.goUserChat({userChatId:a})),(0,w.T)((0,N.of)(...d),(0,L.D)(E.subject).pipe((0,D.z)((e=>(0,N.of)(p.Z.appCommandActions.setXAccessToken({accessToken:e.access_token,accessTokenExpiresAt:e.expires_at,refreshToken:e.refresh_token,refreshTokenExpiresAt:e.refresh_token_expires_at,appId:l}),p.Z.wamModalActions.openWamModal({appId:r.attributes.appId,name:r.attributes.name,wamArgs:r.attributes.wamArgs,accessToken:e.access_token,refreshToken:e.refresh_token}),n.lifeCycle.getSuccessAction(),n.lifeCycle.getCompleteAction()))),(0,x.K)((()=>(0,N.of)(n.lifeCycle.getErrorAction()))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))}return M.E})))}));var z=n(18682),V=n(24821),j=n(52485),$=n(60885),K=n(48927),q=n(86582),X=n(68266),Y=n(51328);const J={method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},formOptions:{omitNil:!0}},ee=e=>JSON.stringify(e),te=(e,t)=>{if(e&&(0,f.Kn)(e)){var n,o;const r=(null==t||null===(n=t.formOptions)||void 0===n?void 0:n.omitNil)??J.formOptions.omitNil,i=(null==t||null===(o=t.formOptions)||void 0===o?void 0:o.objectEncoder)??JSON.stringify,s=Object.entries(e).reduce(((e,t)=>{let[n,o]=t;return(0,f.kK)(o)&&r||((0,f.Kn)(o)||Array.isArray(o)?e[n]=i(o):e[n]=o),e}),{});return(0,X.P)(s)}return""};class ne{constructor(e,t){(0,E.Z)(this,"baseUrl",void 0),(0,E.Z)(this,"defaultOptions",void 0),this.defaultOptions=Object.assign(J,t),this.baseUrl=e}getDefaultOptions(){return this.defaultOptions}createUrl(e,t){if(!e)return this.baseUrl;const n=(0,R.e$)(t,"query")?`?${(0,X.P)(null==t?void 0:t.query)}`:"";return`${(null==t?void 0:t.baseUrl)??this.baseUrl}${e}${n}`}get(e,t){return this.generateFetcher(e,{...t,query:null==t?void 0:t.query,method:"GET"})}post(e,t,n){return this.generateFetcher(e,{...n,method:"POST",encoder:(null==n?void 0:n.encoder)??ee,body:t})}postBySimpleRequest(e,t,n){return this.post(e,t,{...n,encoder:te,headers:{...null==n?void 0:n.headers,Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}})}put(e,t,n){return this.generateFetcher(e,{...n,method:"PUT",encoder:(null==n?void 0:n.encoder)??ee,body:t})}patch(e,t,n){return this.generateFetcher(e,{...n,method:"PATCH",encoder:(null==n?void 0:n.encoder)??ee,body:t})}delete(e,t){return this.generateFetcher(e,{...t,method:"DELETE"})}generateFetcher(e,t){const n=this.getDefaultOptions(),o=this.createUrl(e,t),r={...null==n?void 0:n.headers,...null==t?void 0:t.headers},i=(null==t?void 0:t.credentials)||(null==n?void 0:n.credentials),s={...n,...t,credentials:i};switch(s.method){case"PATCH":case"POST":case"PUT":if(!(0,f.kK)(s.body)){const e=(null==s?void 0:s.encoder)??ee,t=(0,f.mf)(e)?e(s.body,s):s.body;s.body=t}break;default:delete s.body}return new class{constructor(){(0,E.Z)(this,"url",o),(0,E.Z)(this,"headers",r),(0,E.Z)(this,"options",s),(0,E.Z)(this,"mockData",null),(0,E.Z)(this,"resultHandler",(()=>{})),this.run=this.run.bind(this)}withToken(){const e=q.ZP.getToken();return e&&(this.headers={...this.headers,"x-session":e}),this}withMockData(e){return this.mockData=e,this}onResult(e){return this.resultHandler=e,this}doFetch(){if(this.mockData){const e=JSON.stringify(this.mockData);return Promise.resolve({headers:new Headers,ok:!0,status:200,text:()=>Promise.resolve(e),json:()=>Promise.resolve(this.mockData)})}return fetch(this.url,{...this.options,headers:this.headers})}run(){return this.doFetch().then(ne.checkStatus).then((e=>(this.resultHandler(e),e))).then((e=>e.body)).catch(ne.checkDisconnected)}}}static checkStatus(e){return e.status>=200&&e.status<300?e.text().then((t=>{return{ok:e.ok,status:e.status,headers:e.headers,body:(n=t,n?JSON.parse(n):null)};var n})):e.json().then((e=>{throw{status:e.status,type:e.type,body:e,errors:e.errors}}))}static checkDisconnected(e){return e.status||e.statusText?Promise.reject(e):Promise.reject({...e,status:Y.GL.NetworkError})}}const oe=ne;var re=n(87851);const ie=new class extends oe{constructor(){super(re.eS,{credentials:"omit"}),(0,E.Z)(this,"language",_.Z.getLanguage())}getDefaultOptions(){const e=super.getDefaultOptions();return{...e,headers:{...e.headers,"Accept-Language":this.language}}}setLanguage(e){this.language=e}};var se=n(87980),ae=n(39620);let le;!function(e){e.Close="close",e.Command="command",e.OnAuthTokenUpdated="onAuthTokenUpdated"}(le||(le={}));const ce=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_APP_COMMANDS)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{channelId:t}=e;return ie.get(`/front/v1/channels/${t}/apps`,{baseUrl:re.m$}).withToken()}(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_EXECUTE_COMMAND)),(0,D.z)((t=>(0,L.D)(function(e){let{name:t,appId:n,channelId:o,userChatId:r,messageId:i,input:s,triggerType:a,language:l}=e;return ie.put(`/front/v1/channels/${o}/apps/${n}/commands/${t}`,{input:s,chat:{id:r,type:"userChat"},trigger:{type:a,attributes:{messageId:i}},language:l},{baseUrl:re.m$}).withToken()}(t.payload).run()).pipe((0,k.w)((e=>(0,N.of)(p.Z.actionActions.executeAction({triggerType:t.payload.triggerType,messageId:t.payload.messageId,userChatId:t.payload.userChatId,action:e}),t.lifeCycle.getSuccessAction(e),t.lifeCycle.getCompleteAction()))),(0,x.K)((e=>(0,N.of)(t.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_X_ACCESS_TOKEN)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{channelId:t,appId:n}=e;return ie.put(`/front/v1/channels/${t}/apps/${n}/token`,void 0,{baseUrl:re.m$}).withToken()}(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_REFRESH_X_ACCESS_TOKEN)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{refreshToken:t}=e;return ie.put("/general/v1/token/refresh",{refreshToken:t},{baseUrl:re.m$})}(t.payload).run()))))),((e,t,n)=>{let{_AccessTokenService:o=Q}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.SET_X_ACCESS_TOKEN)),(0,D.z)((e=>{const n=T.Z.userSelectors.getUserId(t.value),r=T.Z.channelSelectors.getChannelId(t.value);return o.setTokens({...e.payload,userId:n,channelId:r}),M.E})))}),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.EXECUTE_WAM_EVENT)),(0,D.z)((t=>{const{wamEvent:n,appId:o}=t.payload,{type:r,wamId:i,attributes:s}=n;switch(r){case le.Close:if(s.wamEvent){const n=p.Z.appCommandActions.executeWamEvent({appId:o,wamEvent:s.wamEvent});return(0,w.T)((0,N.of)(n),(0,L.D)(n.subject).pipe((0,D.z)((()=>(0,N.of)(p.Z.wamModalActions.closeWamModal({id:i}),t.lifeCycle.getSuccessAction(),t.lifeCycle.getCompleteAction()))),(0,x.K)((()=>(0,N.of)(t.lifeCycle.getErrorAction()))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))}return(0,N.of)(p.Z.wamModalActions.closeWamModal({id:i}),t.lifeCycle.getSuccessAction(),t.lifeCycle.getCompleteAction());case le.Command:{const n=p.Z.actionActions.executeAction({triggerType:se.k.WAM,action:{type:K.U.Command,attributes:s}});return(0,w.T)((0,N.of)(n),(0,L.D)(n.subject).pipe((0,D.z)((()=>(0,N.of)(t.lifeCycle.getSuccessAction(),t.lifeCycle.getCompleteAction()))),(0,x.K)((()=>(0,N.of)(t.lifeCycle.getErrorAction()))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))}case le.OnAuthTokenUpdated:return(0,N.of)(p.Z.appCommandActions.setXAccessToken({accessToken:s.access_token,accessTokenExpiresAt:s.expires_at,refreshToken:s.refresh_token,refreshTokenExpiresAt:s.refresh_token_expires_at,appId:o}),t.lifeCycle.getSuccessAction(),t.lifeCycle.getCompleteAction());default:return M.E}})))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_COMMAND_AUTOCOMPLETE)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{commandName:t,input:n,channelId:o,appId:r,chatId:i,language:s}=e;return ie.put(`/front/v1/channels/${o}/apps/${r}/commands/${t}/auto-complete`,{input:n,chat:{id:i,type:"user-chat"},language:s},{baseUrl:re.m$}).withToken()}(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_COMMAND_INPUT)),(0,D.z)((()=>(0,N.of)(p.Z.chatroomInputActions.setChatRoomInputValue({value:""})))))),((e,t,n)=>{let{_DraftCommandService:o=V.Z,_DraftMessageService:r=j.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.FINALIZE_COMMAND_INPUT)),(0,D.z)((e=>{const n=T.Z.userChatsSelectors.getCurrentUserChatId(t.value);return n?(o.delete(n),r.set(n,e.payload.inputValue),(0,N.of)(p.Z.chatroomInputActions.setChatRoomInputValue({value:e.payload.inputValue}))):M.E})))}),((e,t,n)=>{let{_DraftCommandService:o=V.Z,_DraftMessageService:r=j.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.ENTER_USER_CHAT)),(0,k.w)((e=>{const n=e.payload.userChatId,i=r.get(n),s=p.Z.appCommandActions.finalizeCommandInput({inputValue:i??""}),a=o.get(n);if(!a)return(0,N.of)(s);const l=T.Z.appCommandSelectors.getCommands(t.value).find((e=>e.getId()===a.commandId));if(!l)return(0,N.of)(s);const c=[],E=new Map(l.paramDefinitions.map((e=>[e.name,e])));for(const e of a.params){const t=E.get(e);if(!t)return(0,N.of)(s);c.push(t)}const u=[p.Z.appCommandActions.hydrateCommandInput({command:l,params:c,values:a.values})];return(0,L.D)(u)})))}),((e,t,n)=>{let{_TranslateService:o=$.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)([W.Z.REQUEST_EXECUTE_COMMAND_ERROR,W.Z.REQUEST_GET_X_ACCESS_TOKEN_ERROR,W.Z.REQUEST_REFRESH_X_ACCESS_TOKEN_ERROR,W.Z.REQUEST_TRIGGER_APP_WIDGET_INSTALLATION_ERROR])),(0,D.z)((()=>(0,N.of)(p.Z.toastActions.showToast({message:o.getTranslation(T.Z.userSelectors.getSystemLanguage(t.value),"ch.command.action.toast.temporary_error"),icon:z.E})))))}));var Ee=n(60146),ue=n(20131),he=n(10578),de=n(32538),_e=n(87623),pe=n(4917),me=n(64690),Se=n(45761),ge=n(84715),Te=n(6835);const Ce={SHOW:"show",HIDE:"hide",LOUNGE:"lounge",BOOT:"boot",SHUTDOWN:"shutdown",SHOW_MESSENGER:"showMessenger",HIDE_MESSENGER:"hideMessenger",OPEN_CHAT:"openChat",OPEN_SUPPORT_BOT:"openSupportBot",OPEN_WORKFLOW:"openWorkflow",SET_PAGE:"setPage",RESET_PAGE:"resetPage",TRACK:"track",CLEAR_CALLBACKS:"clearCallbacks",UPDATE_USER:"updateUser",ADD_TAGS:"addTags",REMOVE_TAGS:"removeTags",SHOW_CHANNEL_BUTTON:"showChannelButton",HIDE_CHANNEL_BUTTON:"hideChannelButton",SET_APPEARANCE:"setAppearance",HIDE_POPUP:"hidePopup",SET_TUTORIAL_MODE:"setTutorialMode",SEND_MESSAGE:"sendMessage"},Re=Object.values(Ce);var fe=n(37949),Ae=n(54225);const Ie="typing",ve="READY",ye="disconnected",Ue="join",Ze="heartbeat",Oe="typing";let be;!function(e){e.CLIENT_DISCONNECT="io client disconnect",e.PING_TIMEOUT="ping timeout",e.SERVER_DISCONNECT="io server disconnect",e.TRANSPORT_CLOSE="transport close",e.TRANSPORT_ERROR="transport error"}(be||(be={}));var Ne=n(88513);const we=e=>(0,f.q9)(g,e[0])||(0,f.q9)(Re,e[0]),Le=new Ee.x,Me=new ue.X(new Map),Pe=new Ee.x,De=new Ee.x,ke=Le.asObservable(),xe=Pe.asObservable(),He={[S.ON_BOOT]:(0,C.c4)(S.ON_BOOT,Ce.BOOT),[S.ON_SHOW]:(0,C.c4)(S.ON_SHOW,S.ON_SHOW_MESSENGER),[S.ON_HIDE]:(0,C.c4)(S.ON_HIDE,S.ON_HIDE_MESSENGER),[S.ON_CREATE_CHAT]:(0,C.c4)(S.ON_CREATE_CHAT,S.ON_CHAT_CREATED),[S.ON_CHANGE_BADGE]:(0,C.c4)(S.ON_CHANGE_BADGE,S.ON_BADGE_CHANGED),[S.ON_CHANGE_PROFILE]:(0,C.c4)(S.ON_CHANGE_PROFILE,S.ON_FOLLOW_UP_CHANGED),[S.ON_CLICK_REDIRECT]:(0,C.c4)(S.ON_CLICK_REDIRECT,S.ON_URL_CLICKED),[S.ON_PROFILE_CHANGED]:(0,C.c4)(S.ON_PROFILE_CHANGED,S.ON_FOLLOW_UP_CHANGED),[Ce.SHOW]:(0,C.c4)(Ce.SHOW,Ce.SHOW_MESSENGER),[Ce.HIDE]:(0,C.c4)(Ce.HIDE,Ce.HIDE_MESSENGER),[Ce.LOUNGE]:(0,C.c4)(Ce.LOUNGE),[Ce.OPEN_SUPPORT_BOT]:(0,C.c4)(Ce.OPEN_SUPPORT_BOT,Ce.OPEN_WORKFLOW)},Ge="SHUTDOWN",Be="AFTER_SOCKET",Qe="AFTER_BOOT",We={[Ce.SHOW]:()=>()=>(0,N.of)(p.Z.uiActions.setShowMessenger({showMessenger:!0})),[Ce.HIDE]:()=>()=>(0,N.of)(p.Z.uiActions.setShowMessenger({showMessenger:!1})),[Ce.LOUNGE]:()=>()=>(0,N.of)(p.Z.homeActions.goLounge()),[Ce.BOOT]:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return(n,o,r)=>{let{_ChSettings:i=_.Z,_client:s=ie,_warnToDev:a=C.wN}=r;return(0,f.PO)(e)?"YOUR_USER_ID"===(null==e?void 0:e.memberId)||"USER_MEMBER_ID"===(null==e?void 0:e.memberId)?(a(`ChannelIO('${Ce.BOOT}') failed: Invalid \`memberId\`.`),M.E):(0,f.mf)(t)?e.pluginId||e.plugin_id||e.pluginKey?(0,w.T)(n.pipe((0,P.h)((0,G.isOfType)(W.Z.SHUTDOWN)),(0,de.q)(1),(0,_e.b)((()=>{i.setSettings(e)})),(0,k.w)((()=>{const e=i.getPluginKey(),n=i.getBootOption(),o=i.getAppearanceOption(),r=i.getLanguage();return s.setLanguage(r),Me.value.set(Ce.BOOT,[t]),(0,N.of)(p.Z.uiActions.setAppearance({appearance:o}),p.Z.pluginActions.requestBoot({pluginKey:e,option:n}))}))),(0,N.of)(p.Z.pluginActions.shutdown())):(a(`ChannelIO('${Ce.BOOT}') failed: \`pluginKey\` not found.`),M.E):(a(`ChannelIO('${Ce.BOOT}') failed: \`callback\` must be a function.`),M.E):(a(`ChannelIO('${Ce.BOOT}') failed: \`bootOption\` must be an object.`),M.E)}},[Ce.SHUTDOWN]:()=>()=>(Pe.next(null),(0,N.of)(p.Z.pluginActions.shutdown())),[Ce.SHOW_MESSENGER]:()=>()=>(0,N.of)(p.Z.uiActions.setShowMessenger({showMessenger:!0})),[Ce.HIDE_MESSENGER]:()=>()=>(0,N.of)(p.Z.uiActions.setShowMessenger({showMessenger:!1})),[Ce.OPEN_CHAT]:(e,t)=>(n,o,r)=>{let{_warnToDev:i=C.wN}=r;return(0,f.kK)(e)||(0,f.hj)(e)||(0,f.HD)(e)?(0,f.kK)(t)||(0,f.HD)(t)?(0,N.of)(p.Z.userChatActions.openChat({userChatId:e,message:t})):(i(`ChannelIO('${Ce.OPEN_CHAT}') failed: \`message\` must be a string.`),M.E):(i(`ChannelIO('${Ce.OPEN_CHAT}') failed: \`chatId\` must be a string or number.`),M.E)},[Ce.OPEN_SUPPORT_BOT]:(e,t)=>(n,o,r)=>{let{_warnToDev:i=C.wN}=r;return(0,f.kK)(e)||""===e?(i(`ChannelIO('${Ce.OPEN_SUPPORT_BOT}') failed: \`supportBotId\` must be given`),M.E):(0,f.hj)(e)||(0,f.HD)(e)?(0,f.kK)(t)||(0,f.HD)(t)?(0,N.of)(p.Z.workflowActions.openWorkflow({workflowId:e})):(i(`ChannelIO('${Ce.OPEN_SUPPORT_BOT}') failed: \`message\` must be a string.`),M.E):(i(`ChannelIO('${Ce.OPEN_SUPPORT_BOT}') failed: \`supportBotId\` must be a string or number.`),M.E)},[Ce.OPEN_WORKFLOW]:e=>(t,n,o)=>{let{_warnToDev:r=C.wN}=o;return(0,f.kK)(e)||""===e?(r(`ChannelIO('${Ce.OPEN_WORKFLOW}') failed: \`workflowId\` must be given`),M.E):(0,f.hj)(e)||(0,f.HD)(e)?(0,N.of)(p.Z.workflowActions.openWorkflow({workflowId:e})):(r(`ChannelIO('${Ce.OPEN_WORKFLOW}') failed: \`workflowId\` must be a string or number.`),M.E)},[Ce.SET_PAGE]:(e,t)=>(n,o,r)=>{let{_ChSettings:i=_.Z,_warnToDev:s=C.wN}=r;return(0,f.HD)(e)?t&&!(0,f.PO)(t)?(s(`ChannelIO('${Ce.SET_PAGE}') failed: \`profile\` must be an object.`),M.E):(i.setCustomPage(e),t&&i.setUserChatProfile(t),M.E):(s(`ChannelIO('${Ce.SET_PAGE}') failed: \`page\` must be a string.`),M.E)},[Ce.RESET_PAGE]:()=>(e,t,n)=>{let{_ChSettings:o=_.Z}=n;return o.resetCustomPage(),o.resetUserChatProfile(),M.E},[Ce.TRACK]:(e,t)=>(n,o,r)=>{let{_warnToDev:i=C.wN}=r;return(0,f.HD)(e)?(0,f.kK)(t)||(0,f.PO)(t)?(0,N.of)(p.Z.eventActions.requestCreateEvent({channelId:T.Z.channelSelectors.getChannel(o.value).id,name:e,property:t})):(i(`ChannelIO('${Ce.TRACK}') failed: \`eventProperty\` must be an object.`),M.E):(i(`ChannelIO('${Ce.TRACK}') failed: \`eventName\` must be a string.`),M.E)},[Ce.CLEAR_CALLBACKS]:()=>()=>(Me.next(new Map),M.E),[Ce.UPDATE_USER]:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return(n,o,r)=>{let{_warnToDev:i=C.wN}=r;return(0,f.PO)(e)?(0,f.mf)(t)?(Me.value.set(Ce.UPDATE_USER,[t]),(0,N.of)(p.Z.userActions.requestUpdateUser(e))):(i(`ChannelIO('${Ce.UPDATE_USER}') failed: \`callback\` must be a function.`),M.E):(i(`ChannelIO('${Ce.UPDATE_USER}') failed: \`userInfo\` must be an object.`),M.E)}},[Ce.ADD_TAGS]:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return(n,o,r)=>{let{_warnToDev:i=C.wN}=r;return Array.isArray(e)?(0,f.mf)(t)?(Me.value.set(Ce.ADD_TAGS,[t]),(0,N.of)(p.Z.userTagsActions.requestAddTags({tags:e}))):(i(`ChannelIO('${Ce.ADD_TAGS}') failed: \`callback\` must be a function.`),M.E):(i(`ChannelIO('${Ce.ADD_TAGS}') failed: \`tags\` must be an array.`),M.E)}},[Ce.REMOVE_TAGS]:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return(n,o,r)=>{let{_warnToDev:i=C.wN}=r;return Array.isArray(e)?(0,f.mf)(t)?(Me.value.set(Ce.REMOVE_TAGS,[t]),(0,N.of)(p.Z.userTagsActions.requestRemoveTags({tags:e}))):(i(`ChannelIO('${Ce.REMOVE_TAGS}') failed: \`callback\` must be a function.`),M.E):(i(`ChannelIO('${Ce.REMOVE_TAGS}') failed: \`tags\` must be an array.`),M.E)}},[Ce.SHOW_CHANNEL_BUTTON]:()=>()=>(0,N.of)(p.Z.uiActions.setShowChannelButton({showChannelButton:!0})),[Ce.HIDE_CHANNEL_BUTTON]:()=>()=>(0,N.of)(p.Z.uiActions.setShowChannelButton({showChannelButton:!1})),[Ce.SET_APPEARANCE]:e=>(t,n,o)=>{let{_warnToDev:r=C.wN}=o;return(0,Ne.$)(e)?(0,N.of)(p.Z.uiActions.setAppearance({appearance:e})):(r(`ChannelIO('${Ce.SET_APPEARANCE}') failed: Invalid appearance.`),M.E)},[Ce.SET_TUTORIAL_MODE]:e=>()=>(0,f.jn)(e)?(0,N.of)(p.Z.uiActions.setTutorialMode({tutorialMode:e})):M.E,[Ce.SEND_MESSAGE]:e=>(t,n)=>{if(!(0,f.HD)(e))return M.E;const o=T.Z.userChatsSelectors.getUserChat(n.value),r=T.Z.userSelectors.getUserId(n.value),i=fe.Z.createLocalUserMessageObject(r,{plainText:e});return(0,N.of)(p.Z.messageActions.requestCreateLocalMessage({userChatId:o.id,message:i}),p.Z.messageActions.requestCreateMessage({userChatId:o.id,message:i,handling:o.handling}))},[Ce.HIDE_POPUP]:()=>()=>(0,N.of)(p.Z.popupActions.setPopupActive({active:!1})),...g.reduce(((e,t)=>(e[t]=e=>()=>{if(!(0,f.mf)(e))return(0,C.wN)(`ChannelIO('${t}') failed: \`callback\` must be a function.`),M.E;const n=Me.value.get(t)??[];return Me.value.set(t,[...n,e]),M.E},e)),{})},Fe=(0,O.l)(((e,t,n)=>{let{_WebAPIService:o=d.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_COMMAND_LAUNCHER)),(0,de.q)(1),(0,pe.U)((function(){return o.topmostWindow.channelPluginSettings?[[Ce.BOOT,o.topmostWindow.channelPluginSettings]]:[]})),(0,pe.U)((e=>{var t;return[...e,...(null===(t=o.topmostWindow.ChannelIO)||void 0===t?void 0:t.q)??[]].filter(we).sort(((e,t)=>{const n=(0,f.q9)(g,e[0]),o=(0,f.q9)(g,t[0]);return n&&!o?-1:o&&!n?1:0}))})),(0,_e.b)((()=>{o.topmostWindow.ChannelIO=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const r=[e,...n];we(r)&&Le.next(r)}})),(0,k.w)((e=>(0,w.T)((0,L.D)(e),ke).pipe((0,_e.b)((e=>{const t=e[0];He[t]&&(0,C.wN)(He[t])}))))),(0,me.g)(0),(0,Se.v)((e=>e[0]===Ce.SHUTDOWN?Ge:"OTHERS")),(0,D.z)((n=>n.key===Ge?n.pipe((0,_e.b)((()=>{De.next(Ce.SHUTDOWN)})),(0,D.z)((()=>We[Ce.SHUTDOWN]()(e,t,{})))):(0,w.T)(xe,(0,N.of)({})).pipe((0,k.w)((()=>n.pipe((0,Se.v)((e=>{const n=e[0],o=T.Z.socketSelectors.getSocketStatus(t.value),r=T.Z.pluginSelectors.isBooted(t.value);return n===Ce.TRACK&&o!==ve?Be:r||!(0,f.q9)(Re,n)||(0,f.q9)([Ce.BOOT,Ce.CLEAR_CALLBACKS],n)?"DIRECT":Qe})),(0,D.z)((t=>t.key===Be?t.pipe((0,ge.f)(e.pipe((0,b.l)(W.Z.SOCKET_READY))),(0,D.z)((e=>(0,L.D)(e)))):t.key===Qe?t.pipe((0,ge.f)(e.pipe((0,b.l)(W.Z.REQUEST_BOOT_COMPLETE))),(0,D.z)((e=>(0,L.D)(e)))):t)),(0,Te.b)((n=>{const[o,...r]=n;return De.next(o),We[o](...r)(e,t,{}).pipe((0,Te.b)((e=>e.subject?(0,w.T)((0,N.of)(e),(0,he.D)([e.subject]).pipe((0,k.w)((()=>M.E)),(0,x.K)((()=>M.E)))):(0,N.of)(e))))})))))))))}),((e,t,n)=>{let{_ChSettings:o=_.Z,_isApp:r=Z.N0,_chAPILagacy:i=U,_warnToDev:s=C.wN}=n;return e.pipe((0,P.h)((()=>r())),(0,_e.b)((e=>{const t=Me.value;switch(e.type){case W.Z.REQUEST_BOOT_SUCCESS:{const{unread:n,alert:r}=e.payload.user,s=o.getCallbackUser(e.payload.user??{});(t.get(Ce.BOOT)??[]).forEach((e=>{e(null,s)})),(t.get(S.ON_BOOT)??[]).forEach((e=>{e(s)})),(t.get(S.ON_CHANGE_BADGE)??[]).forEach((e=>{e(n)})),(t.get(S.ON_BADGE_CHANGED)??[]).forEach((e=>{e(n,r)})),i.execCallback(m,null);break}case W.Z.REQUEST_BOOT_ERROR:(t.get(Ce.BOOT)??[]).forEach((t=>{var n;t((null===(n=e.payload)||void 0===n?void 0:n.body)??new Error(`ChannelIO('${Ce.BOOT}') failed`),null)}));break;case W.Z.REQUEST_ADD_TAGS_SUCCESS:(t.get(Ce.ADD_TAGS)??[]).forEach((t=>{const{user:n}=e.payload;t(null,n)}));break;case W.Z.REQUEST_ADD_TAGS_ERROR:(t.get(Ce.ADD_TAGS)??[]).forEach((t=>{var n;t((null===(n=e.payload)||void 0===n?void 0:n.body)??new Error(`ChannelIO('${Ce.ADD_TAGS}') failed`),null)}));break;case W.Z.REQUEST_REMOVE_TAGS_SUCCESS:(t.get(Ce.REMOVE_TAGS)??[]).forEach((t=>{const{user:n}=e.payload;t(null,n)}));break;case W.Z.REQUEST_REMOVE_TAGS_ERROR:(t.get(Ce.REMOVE_TAGS)??[]).forEach((t=>{var n;t((null===(n=e.payload)||void 0===n?void 0:n.body)??new Error(`ChannelIO('${Ce.REMOVE_TAGS}') failed`),null)}));break;case W.Z.REQUEST_UPDATE_USER_SUCCESS:(t.get(Ce.UPDATE_USER)??[]).forEach((t=>{const{user:n}=e.payload;t(null,n)}));break;case W.Z.REQUEST_UPDATE_USER_ERROR:(t.get(Ce.UPDATE_USER)??[]).forEach((t=>{var n;t((null===(n=e.payload)||void 0===n?void 0:n.body)??new Error(`ChannelIO('${Ce.UPDATE_USER}') failed`),null)}));break;case W.Z.REQUEST_TOUCH_SUCCESS:case W.Z.RECEIVED_UPDATE_USER:{const{alert:n,unread:o}=e.payload.user;(t.get(S.ON_CHANGE_BADGE)??[]).forEach((e=>{e(o)})),(t.get(S.ON_BADGE_CHANGED)??[]).forEach((e=>{e(o,n)})),U.execCallback("changeBadge",o);break}case W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_SUCCESS:case W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_SUCCESS:case W.Z.REQUEST_CREATE_USER_CHAT_SUCCESS:[...t.get(S.ON_CREATE_CHAT)??[],...t.get(S.ON_CHAT_CREATED)??[]].forEach((e=>{e()}));break;case W.Z.CHANGED_USER_PROFILE:{const{profile:n}=e.payload;[...t.get(S.ON_CHANGE_PROFILE)??[],...t.get(S.ON_PROFILE_CHANGED)??[]].forEach((e=>{e(n||{})}));const o=(0,R.D9)(n,(e=>e===Ae.Z.Name||e===Ae.Z.MobileNumber||e===Ae.Z.Email));(t.get(S.ON_FOLLOW_UP_CHANGED)??[]).forEach((e=>{e(o||{})}));break}case W.Z.URL_CLICKED:[...t.get(S.ON_CLICK_REDIRECT)??[],...t.get(S.ON_URL_CLICKED)??[]].forEach((t=>{t(e.payload.url)}));break;case W.Z.SET_SHOW_MESSENGER:{const{showMessenger:n}=e.payload;if(n){[...t.get(S.ON_SHOW_MESSENGER)??[],...t.get(S.ON_SHOW)??[]].forEach((e=>{e()})),i.execCallback("show");break}[...t.get(S.ON_HIDE_MESSENGER)??[],...t.get(S.ON_HIDE)??[]].forEach((e=>{e()})),i.execCallback("hide");break}case W.Z.EXECUTE_ON_POPUP_DATA_RECEIVED_CALLBACK:{const{popupData:n}=e.payload;[...t.get(S.ON_POPUP_DATA_RECEIVED)??[]].forEach((e=>{e(n)}));break}}})),(0,k.w)((()=>M.E)),(0,x.K)((e=>(s(e),M.E))))}));var ze=n(39616),Ve=n(38794);const je=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_CHANNEL_OPERATIONS)),(0,D.z)((t=>(0,ze.P)((()=>function(e){let{channelId:t}=e;return ie.get(`/front/v7/channels/${t}/operations`).withToken()}(t.payload).run())).pipe((0,Ve.X)({count:5,delay:1e3}),(0,D.z)((e=>(0,N.of)(t.lifeCycle.getSuccessAction(e),t.lifeCycle.getCompleteAction()))),(0,x.K)((e=>(0,N.of)(t.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN))))))))),$e=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_CHANNEL_PHONE_NUMBER)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{number:t}=e;return ie.get(`/phone-number/${t}`)}(t.payload).run())))))),Ke=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_CHANNEL_BY_PLUGIN_KEY)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{pluginKey:t}=e;return ie.get(`/front/v7/channels/plugin/${t}`)}(t.payload).run()))))));var qe,Xe=n(9845);function Ye(e){let{since:t,limit:n}=e;return ie.get("/front/v7/user-chats",{query:{sortOrder:qe.DESC,since:t,limit:n}}).withToken()}!function(e){e.ASC="ASC",e.BOTH="BOTH",e.DESC="DESC"}(qe||(qe={}));const Je=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_USER_CHAT_LIST)),(0,D.z)((t=>(0,ae.jp)(e)(t,Ye(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_NEXT_USER_CHAT_LIST)),(0,D.z)((t=>{const{limit:n,next:o}=t.payload;return(0,ae.jp)(e)(t,Ye({limit:n,since:o}).run())})))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_UNREAD_USER_CHAT_LIST)),(0,D.z)((t=>(0,ae.jp)(e)(t,ie.get("/front/v7/user-chats/unread").withToken().run()))))),((e,t)=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_USER_CHAT_LIST)),(0,D.z)((n=>{const o=[],r=T.Z.channelSelectors.getChannelId(t.value),i=T.Z.initializeSelectors.shouldGetHome(t.value),s=T.Z.initializeSelectors.shouldGetChannelOperations(t.value),a=T.Z.initializeSelectors.shouldGetDocumentWebsiteResources(t.value);return o.push(p.Z.chatListActions.requestGetUserChatList({limit:Xe.M})),i&&o.push(p.Z.homeActions.requestGetHome({channelId:r})),s&&o.push(p.Z.channelOperationActions.requestGetChannelOperations({channelId:r})),a&&o.push(p.Z.documentActions.requestGetDocumentWebsiteResources({channelId:r},{loading:!1,error:!1})),(0,N.of)(o).pipe((0,k.w)((t=>(0,ae.IH)(e,n,t))))}))))),et=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_VIEW_CHANNEL_X_BANNER)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{channelId:t,chatId:n}=e;return ie.put("/v1/analytics/user-chat-banner/view",{channelId:t,chatId:n},{baseUrl:re.oj}).withToken()}(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_CLICK_CHANNEL_X_BANNER)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{channelId:t,chatId:n}=e;return ie.put("/v1/analytics/user-chat-banner/click",{channelId:t,chatId:n},{baseUrl:re.oj}).withToken()}(t.payload).run())))))),tt=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_SEND_EXPERIMENT_EVENT)),(0,D.z)((t=>{return(0,ae.jp)(e)(t,(n=t.payload,ie.put("/v1/analytics/experiments",n,{baseUrl:re.oj}).withToken()).run());var n}))))),nt=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_DOCUMENT_WEBSITE_RESOURCES)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{channelId:t}=e;return ie.get(`/front/v1/channels/${t}/website-resources`,{baseUrl:re.Tx}).withToken()}(t.payload).run()))))));var ot=n(52203),rt=n(76627);const it=(0,O.l)(((e,t,n)=>{let{_EmojiService:o=rt.ZP}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_EMOJI_INFO)),(0,Te.b)((t=>o.isEmpty()?(0,ze.P)((()=>fetch(`${re.NF}/asset/emoji/emojis.min.json`,{method:"GET",headers:{"Content-Type":"text/plain"},referrerPolicy:"no-referrer"}).then((e=>{if(!e.ok)throw new Error(e.statusText);return e})).then((e=>e.text())).then((e=>JSON.parse(e))))).pipe((0,ot.V)(5e3),(0,Ve.X)(1),(0,_e.b)((e=>o.setEmojis(e))),(0,D.z)((()=>(0,N.of)(t.lifeCycle.getSuccessAction(),t.lifeCycle.getCompleteAction()))),(0,x.K)((e=>(0,N.of)(t.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))):(0,N.of)(t.lifeCycle.getSuccessAction(),t.lifeCycle.getCompleteAction()))))}));var st=n(40165);const at=(0,O.l)(((e,t,n)=>{let{_FileIconService:o=st.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_FILE_ICON_INFO)),(0,D.z)((t=>(0,L.D)(fetch(`${re.NF}/asset/file-icon/extensions.json`,{method:"GET",headers:{"Content-Type":"text/plain"},referrerPolicy:"no-referrer"}).then((e=>e.text())).then((e=>JSON.parse(e)))).pipe((0,_e.b)((e=>o.setFileIconInfo(e))),(0,D.z)((e=>(0,N.of)(t.lifeCycle.getSuccessAction(e),t.lifeCycle.getCompleteAction()))),(0,x.K)((e=>(0,N.of)(t.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))))}));var lt,ct=n(46555),Et=n(11257),ut=n(23414);!function(e){e.Error="error",e.Pending="pending",e.Success="success",e.Uploading="uploading"}(lt||(lt={}));const ht=lt,dt=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)([W.Z.ENQUEUE_FILES_TO_UPLOAD_QUEUE,W.Z.DEQUEUE_FILES_FROM_UPLOAD_QUEUE,W.Z.REQUEST_UPLOAD_FILE_SUCCESS,W.Z.REQUEST_UPLOAD_FILE_ERROR])),(0,D.z)((()=>(0,N.of)(p.Z.fileUploadActions.flushUploadQueue()))))),((e,t,n)=>{let{_TranslateService:o=$.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_UPLOAD_FILE_ERROR)),(0,D.z)((()=>(0,N.of)(p.Z.toastActions.showToast({message:o.getTranslation(T.Z.userSelectors.getSystemLanguage(t.value),"ch.toast.file_upload.failure.error"),icon:ct.E})))))}),((e,t)=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.FLUSH_UPLOAD_QUEUE)),(0,D.z)((()=>{const e=T.Z.channelSelectors.getChannelId(t.value),n=T.Z.fileUploadSelectors.getFileChunks(t.value).find((e=>!e.hasError));if(!n||n.isUploading)return M.E;const o=n.files.find((e=>e.uploadState===ht.Pending));if(o)return(0,N.of)(p.Z.fileUploadActions.requestUploadFile({channelId:e,userChatId:n.userChatId,file:o,fileChunk:n}),p.Z.fileUploadActions.setMemoryFileState({fileChunkId:n.id,userChatId:n.userChatId,fileId:o.id,state:ht.Uploading}));if(!n.files.every((e=>e.uploadState===ht.Success)))return M.E;const r=T.Z.userSelectors.getUserId(t.value),{userChatId:i}=n,{handling:s}=T.Z.userChatsSelectors.getUserChat(t.value,i),a=fe.Z.createLocalUserMessageObject(r,{files:n.uploadedFiles});return(0,N.of)(p.Z.messageActions.requestCreateMessage({userChatId:i,message:a,handling:s}),p.Z.fileUploadActions.dequeueFilesFromUploadQueue({fileChunkId:n.id}))})))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_UPLOAD_FILE)),(0,D.z)((t=>(0,L.D)((e=>{let{file:{file:t},userChatId:n,channelId:o}=e;const r=(0,ut.He)(t.name);return(0,Et.h)({method:"POST",crossDomain:!0,url:`${re.PX}/pri-file/${o}/user-chats/${n}/message/${r}`,body:t,includeUploadProgress:!0,headers:{"Content-Type":t.type&&"application/json"!==t.type?t.type:"application/octet-stream",Accept:"application/json","x-session":q.ZP.getToken()}})})(t.payload)).pipe((0,D.z)((e=>{const{file:n}=t.payload;return"upload_progress"===e.type?(0,N.of)(p.Z.fileUploadActions.setFileUploadProgress({fileChunkId:t.payload.fileChunk.id,fileId:n.id,progress:Math.floor(e.loaded/e.total*100),userChatId:t.payload.userChatId})):"download_load"===e.type?(0,N.of)(p.Z.fileUploadActions.setMemoryFileState({fileChunkId:t.payload.fileChunk.id,fileId:n.id,state:ht.Success,userChatId:t.payload.userChatId}),p.Z.fileUploadActions.registerUploadedFile({file:e.response,fileChunkId:t.payload.fileChunk.id}),t.lifeCycle.getSuccessAction(e.response),t.lifeCycle.getCompleteAction()):M.E})),(0,x.K)((e=>(0,N.of)(p.Z.fileUploadActions.setMemoryFileState({fileChunkId:t.payload.fileChunk.id,fileId:t.payload.file.id,state:ht.Error,userChatId:t.payload.userChatId}),t.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,P.h)((0,G.isOfType)(W.Z.DEQUEUE_FILES_FROM_UPLOAD_QUEUE)),(0,P.h)((e=>t.payload.fileChunk.id===e.payload.fileChunkId)))),(0,H.R)(e.pipe((0,P.h)((0,G.isOfType)([W.Z.EXIT_USER_CHAT,W.Z.SHUTDOWN])))))))))),_t=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_FOLLOW_UP_SCHEMAS)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{channelId:t}=e;return ie.get(`/front/v7/channels/${t}/follow-up-schemas`).withToken()}(t.payload).run())))))),pt=new ue.X([]),mt=(0,O.l)(((e,t)=>e.pipe((0,P.h)((0,G.isOfType)([W.Z.OPEN_CHAT,W.Z.OPEN_WORKFLOW])),(0,D.z)((()=>T.Z.errorSelectors.hasAPIError(t.value)?(0,N.of)(p.Z.errorActions.clearError()):M.E)))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_ERROR_CLEAR)),(0,k.w)((()=>pt.pipe((0,P.h)((e=>e.length>0)),(0,pe.U)((e=>e.map((e=>e.subject)))),(0,k.w)((e=>(0,he.D)(e).pipe((0,_e.b)((()=>{pt.next([])})),(0,pe.U)((()=>p.Z.errorActions.clearError())),(0,x.K)((()=>(pt.next([]),M.E))))))))))),(e=>e.pipe((0,P.h)((0,G.isOfType)([W.Z.INITIALIZE_HOME,W.Z.INITIALIZE_USER_CHAT,W.Z.INITIALIZE_USER_CHAT_ON_RECONNECT,W.Z.INITIALIZE_NEW_USER_CHAT,W.Z.INITIALIZE_SPECIFIC_WORKFLOW,W.Z.INITIALIZE_APP,W.Z.INITIALIZE_STANDALONE,W.Z.INITIALIZE_USER_CHAT_LIST,W.Z.INITIALIZE_SETTING,W.Z.INITIALIZE_EDIT_PROFILE])),(0,D.z)((t=>{const n=t.lifeCycle.getSuccessAction().type,o=t.lifeCycle.getErrorAction().type;return e.pipe((0,P.h)((0,G.isOfType)(o)),(0,k.w)((()=>(0,w.T)(e.pipe((0,P.h)((0,G.isOfType)([W.Z.SOCKET_RECONNECTED,W.Z.HISTORY_CHANGED]))),e.pipe((0,P.h)((0,G.isOfType)(W.Z.SET_SHOW_MESSENGER)),(0,P.h)((e=>e.payload.showMessenger)))).pipe((0,de.q)(1),(0,pe.U)((()=>(0,ae.Wn)(t.type,n,o).create()(t.payload))),(0,_e.b)((e=>{pt.next([...pt.value,e])}))))),(0,H.R)(e.pipe((0,P.h)((0,G.isOfType)([t.type,n])))))})))));var St=n(10201);function gt(e){return(0,_e.b)((t=>{e(t)||((e,t)=>{const n={state:{state:{type:"Redux",value:{action_type:e.type,action_payload:e.payload,predicate:t.toString()}}}};(0,C.vU)("Validation Error",n),c.Z.captureEvent({message:`Validation Error on action ${e.type}`,tags:{"error.source":"redux_epic"},contexts:n})})(t,e)}))}var Tt=n(11599);const Ct=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_HOME)),gt((e=>!(0,f.xb)(e.payload.channelId))),(0,D.z)((t=>(0,L.D)(function(e){let{channelId:t}=e;return ie.get(`/front/v7/channels/${t}/lounge`,{query:{page:Tt.ZP.page}}).withToken()}(t.payload).run()).pipe((0,D.z)((e=>(0,N.of)(t.lifeCycle.getSuccessAction(e,{loading:t.meta.loading}),t.lifeCycle.getCompleteAction()))),(0,x.K)((e=>(0,N.of)(t.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))))),((e,t)=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_HOME_SUCCESS)),(0,D.z)((e=>{const n=T.Z.channelSelectors.getChannel(t.value),o=T.Z.loungeMediaSelectors.isAppInstagramPostsEmpty(t.value),r=e.payload.loungeMediaTypes,i=[];return o&&r.forEach((t=>{i.push(p.Z.loungeMediaActions.requestGetLoungeMedia({channelId:n.id,types:t},{loading:e.meta.loading??!0}))})),(0,L.D)(i)})))),((e,t,n)=>{let{_HistoryService:o=St.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.GO_LOUNGE)),(0,_e.b)((e=>{const t=o.getHistory(),{replace:n}=e.payload;"/home"!==t.location.pathname&&(n?t.replace("/home"):t.push("/home"))})),(0,P.h)((()=>!T.Z.uiSelectors.showMessenger(t.value))),(0,pe.U)((()=>p.Z.uiActions.setShowMessenger({showMessenger:!0}))))})),Rt=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_AVAILABLE_LANGUAGES)),(0,D.z)((t=>(0,ae.jp)(e)(t,ie.get("/available/languages").withToken().run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_COUNTRIES)),(0,D.z)((t=>(0,ae.jp)(e)(t,ie.get("/available/countries").withToken().run()))))));var ft,At=n(39858),It=n(21485),vt=n(23923),yt=n(14297),Ut=n(73951),Zt=n(94122),Ot=n(98842),bt=n(86385),Nt=n(81535),wt=n(80577),Lt=n(80183);!function(e){e.CHANNEL="channel",e.CHANNEL_OPERATION="channelOperation",e.LIVE_MEET="liveMeet",e.MEET_RING="meetRing",e.MEET_SETTING="meetSetting",e.MESSAGE="message",e.SESSION="chatSession",e.USER="user",e.USER_CHAT="userChat"}(ft||(ft={}));const Mt=ft;var Pt=n(26633);const Dt=[2,3,5,8,13,21,34,55].map((e=>1e3*e)),kt=new ue.X(null),xt=new Ee.x,Ht=kt.pipe((0,P.h)((e=>!!e)),(0,de.q)(1)),Gt=(0,O.l)(((e,t,n)=>{let{_AuthStorageService:o=q.ZP,_TimeService:r=wt.Z,_io:i=Nt.io}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_CONNECT_SOCKET)),(0,k.w)((n=>{const s=T.Z.channelSelectors.getChannelId(t.value),a=i(n.payload.socketAddress,{transports:["websocket"],reconnection:!1,auth:{jwt:o.getToken(),channelId:s}}),l=(0,It.R)(a,"connect").pipe((0,pe.U)((()=>n.lifeCycle.getSuccessAction()))),c=(0,It.R)(a,"connect_error").pipe((0,pe.U)((()=>n.lifeCycle.getErrorAction()))),E=(0,It.R)(a,"ready").pipe((0,_e.b)((()=>{kt.next(a)})),(0,k.w)((()=>{const e=[p.Z.socketActions.socketReady(),p.Z.socketActions.checkConnection(),n.lifeCycle.getCompleteAction()];return T.Z.socketSelectors.getSocketStatus(t.value)===ye&&e.push(p.Z.socketActions.socketReconnected()),(0,w.T)((0,L.D)(e),(0,Zt.F)(3e4).pipe((0,pe.U)((()=>p.Z.socketActions.checkConnection()))))}))),u=(0,It.R)(a,"disconnect").pipe((0,pe.U)((e=>Array.isArray(e)?e[0]:e)),(0,pe.U)((e=>p.Z.socketActions.socketDisconnected({reason:e})))),h=(0,It.R)(a,"create").pipe((0,pe.U)((e=>Array.isArray(e)?e[0]:e)),(0,D.z)((e=>{const{type:n,entity:o}=e,r=[];switch(n){case Mt.MESSAGE:{var i;const t=null==e||null===(i=e.refers)||void 0===i?void 0:i.bot;r.push(p.Z.messageActions.receivedCreateMessage({message:o,bot:t}));break}case Mt.SESSION:{var s;const n=null==e||null===(s=e.refers)||void 0===s?void 0:s.manager,i=T.Z.userChatsSelectors.getCurrentUserChatId(t.value),a=T.Z.messagesSelectors.getLastMessage(t.value),l=T.Z.uiSelectors.isMessengerVisible(t.value),c=T.Z.idleDetectorSelector.getIsIdle(t.value);a&&i===o.chatId&&l&&!c&&r.push(p.Z.readChatActions.requestReadUserChat({userChatId:i})),r.push(p.Z.userChatActions.receivedCreateSession({manager:n,session:o}));break}case Mt.MEET_RING:{const e=T.Z.meetSelectors.getRingMeetId(t.value);if(o.meetId===e)break;r.push(p.Z.meetActions.receivedCreateMeetRing({meetRing:o}));break}case Mt.CHANNEL_OPERATION:r.push(p.Z.channelOperationActions.receivedCreateChannelOperation({channelOperation:o}))}return(0,L.D)(r)}))),d=(0,It.R)(a,"update").pipe((0,pe.U)((e=>Array.isArray(e)?e[0]:e)),(0,D.z)((e=>{const{type:n,entity:o}=e,r=[];switch(n){case Mt.USER_CHAT:{var i,s,a,l,c;const t=null===(i=e.refers)||void 0===i?void 0:i.message,n=null===(s=e.refers)||void 0===s?void 0:s.manager,E=null===(a=e.refers)||void 0===a?void 0:a.bot,u=null===(l=e.refers)||void 0===l?void 0:l.channelOperation,h=null===(c=e.refers)||void 0===c?void 0:c.team;o.state===Lt.P.Closed&&r.push(p.Z.userChatActions.receivedUpdateUserChat({userChat:o,message:t,manager:n,bot:E,channelOperation:u,team:h})),r.push(p.Z.userChatActions.receivedUpdateUserChat({userChat:o,message:t,manager:n,bot:E,channelOperation:u,team:h}));break}case Mt.MESSAGE:r.push(p.Z.messageActions.receivedUpdateMessage({message:o}));break;case Mt.CHANNEL:{const e=T.Z.channelSelectors.getChannel(t.value);if(r.push(p.Z.channelActions.receivedUpdateChannel({channel:o})),(0,f.kK)(o.phoneNumber)){r.push(p.Z.channelProfileActions.clearChannelPhoneNumber());break}e.phoneNumber!==o.phoneNumber&&r.push(p.Z.channelProfileActions.requestGetChannelPhoneNumber({number:o.phoneNumber}));break}case Mt.USER:{var E,u,h,d;const t=null===(E=e.refers)||void 0===E?void 0:E.message,n=null===(u=e.refers)||void 0===u?void 0:u.manager,i=null===(h=e.refers)||void 0===h?void 0:h.bot,s=null===(d=e.refers)||void 0===d?void 0:d.userChat;r.push(p.Z.userActions.receivedUpdateUser({user:o,message:t,manager:n,bot:i,userChat:s}));break}case Mt.SESSION:{const e=(()=>{const e=T.Z.userChatsSelectors.getCurrentUserChatId(t.value),n=T.Z.messagesSelectors.getLastMessage(t.value),i=T.Z.uiSelectors.isMessengerVisible(t.value),s=T.Z.idleDetectorSelector.getIsIdle(t.value);return n&&e===o.chatId&&o.unread&&i&&!s?(r.push(p.Z.readChatActions.requestReadUserChat({userChatId:e})),{session:{...o,unread:0,alert:0}}):{session:o}})();r.push(p.Z.userChatActions.receivedUpdateSession(e));break}case Mt.LIVE_MEET:r.push(p.Z.meetActions.receivedUpdateLiveMeet({liveMeet:o}));break;case Mt.MEET_SETTING:r.push(p.Z.meetActions.receivedUpdateMeetSetting({meetSetting:o}));break;case Mt.CHANNEL_OPERATION:r.push(p.Z.channelOperationActions.receivedUpdateChannelOperation({channelOperation:o}))}return(0,L.D)(r)}))),_=(0,It.R)(a,"delete").pipe((0,pe.U)((e=>Array.isArray(e)?e[0]:e)),(0,D.z)((e=>{const{type:n,entity:o}=e,r=[];switch(n){case Mt.USER_CHAT:r.push(p.Z.userChatActions.receivedDeleteUserChat({userChat:o}));break;case Mt.SESSION:{const e=T.Z.userChatsSelectors.getCurrentUserChatId(t.value);r.push(p.Z.userChatActions.receivedDeleteSession({session:o})),o.chatId===e&&r.push(p.Z.homeActions.goLounge({replace:!0}));break}case Mt.MEET_RING:r.push(p.Z.meetActions.receivedDeleteMeetRing({meetRing:o}));break;case Mt.LIVE_MEET:r.push(p.Z.meetActions.receivedDeleteLiveMeet({liveMeet:o}));break;case Mt.CHANNEL_OPERATION:r.push(p.Z.channelOperationActions.receivedDeleteChannelOperation({channelOperation:o}))}return(0,L.D)(r)}))),m=(0,It.R)(a,"push").pipe((0,pe.U)((e=>Array.isArray(e)?e[0]:e)),(0,D.z)((e=>{const{type:t,entity:n}=e,o=[];switch(t){case Mt.MESSAGE:{var r,i,s;const t=null==e||null===(r=e.refers)||void 0===r?void 0:r.userChat,a=null==e||null===(i=e.refers)||void 0===i?void 0:i.manager,l=null==e||null===(s=e.refers)||void 0===s?void 0:s.bot;o.push(p.Z.popupActions.receivedPushMessage({message:n,manager:a,bot:l,userChat:t})),o.push(p.Z.uiActions.receivedDeskMessage({message:n}));break}}return(0,L.D)(o)}))),S=(0,It.R)(a,Ie).pipe((0,pe.U)((e=>Array.isArray(e)?e[0]:e)),(0,D.z)((e=>{const{personId:t,personType:n,chatId:o,chatType:i}=e,s=`${t}#${n}#${o}#${i}`;return"start"===e.action?(0,w.T)((0,N.of)(p.Z.uiActions.receivedStartTyping({id:s,receivedAt:r.getDate().getTime(),...e})),(0,At.H)(3e4).pipe((0,H.R)((0,It.R)(a,Ie).pipe((0,pe.U)((e=>Array.isArray(e)?e[0]:e)),(0,P.h)((e=>`${e.personId}#${e.personType}#${e.chatId}#${e.chatType}`===s&&"start"===e.action)))),(0,D.z)((()=>(0,N.of)(p.Z.uiActions.receivedStopTyping({id:s,...e})))))):"stop"===e.action?(0,N.of)(p.Z.uiActions.receivedStopTyping({id:s,...e})):M.E})));return(0,w.T)(l,c,E,u,h,d,_,m,S).pipe((0,Ot.x)((()=>{kt.next(null),a.disconnect()})),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN,W.Z.SOCKET_DISCONNECTED))))})))}),((e,t,n)=>{let{_HistoryService:o=St.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.SOCKET_RECONNECTED)),(0,_e.b)((()=>{xt.next(null)})),(0,P.h)((()=>!T.Z.errorSelectors.hasAPIError(t.value))),(0,k.w)((()=>{const e=o.history.location.pathname,n=T.Z.uiSelectors.showMessenger(t.value),r=[p.Z.userActions.requestGetUser()];return(0,Pt.vL)(e)&&n?r.push(p.Z.initializeActions.initializeHome({isReconnected:!0},{loading:!1})):(0,Pt.Bx)(e)?r.push(p.Z.userChatActions.initializeUserChatOnReconnect()):(0,Pt.d$)(e)?r.push(p.Z.initializeActions.initializeSetting()):(0,Pt.Ym)(e)&&r.push(p.Z.chatListActions.initializeUserChatList()),r})))}),((e,t,n)=>{let{_window:o=window}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.SOCKET_DISCONNECTED)),(0,P.h)((e=>e.payload.reason!==be.CLIENT_DISCONNECT)),(0,k.w)((()=>{const{id:n}=T.Z.channelSelectors.getChannel(t.value);return o.navigator.onLine?(0,N.of)(p.Z.socketActions.requestGetSocketAddress({channelId:n})):(0,It.R)(o,"online").pipe((0,pe.U)((()=>p.Z.socketActions.requestGetSocketAddress({channelId:n}))),(0,H.R)((0,w.T)(e.pipe((0,b.l)(W.Z.SHUTDOWN)),e.pipe((0,b.l)(W.Z.REQUEST_GET_SOCKET_ADDRESS_SUCCESS)))))})))}),((e,t)=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.CHECK_CONNECTION)),(0,P.h)((()=>T.Z.socketSelectors.getSocketStatus(t.value)===ve)),(0,P.h)((()=>!T.Z.idleDetectorSelector.getIsIdle(t.value))),(0,P.h)((()=>T.Z.uiSelectors.isMessengerVisible(t.value))),(0,k.w)((()=>Ht.pipe((0,_e.b)((e=>{e.emit(Ze)})),(0,k.w)((e=>(0,It.R)(e,"heartbeat"))),(0,de.q)(1),(0,ot.V)(5e3),(0,k.w)((()=>M.E)),(0,x.K)((()=>(0,N.of)(p.Z.socketActions.socketDisconnected()))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_SOCKET_ADDRESS)),(0,P.h)((e=>!(0,f.xb)(e.payload.channelId))),(0,D.z)((t=>(0,ze.P)((()=>function(e){let{channelId:t}=e;return ie.get("/front/routes/info",{baseUrl:re.yq,query:{channelId:t,type:"socket",subType:"clientFront"}}).withToken()}(t.payload).run())).pipe((0,D.z)((e=>{const{routeInfo:n,namespace:o}=e,r=`${n.url}${o}`,i=p.Z.socketActions.requestConnectSocket({socketAddress:r});return(0,w.T)((0,N.of)(t.lifeCycle.getSuccessAction(e),i),(0,he.D)([i.subject]).pipe((0,bt.d)([]),(0,pe.U)((()=>t.lifeCycle.getCompleteAction()))))})),(0,Ve.X)({delay:(e,t)=>(0,At.H)(Dt[Math.min(t,Dt.length-1)])}),(0,x.K)((e=>(0,N.of)(t.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN))))))))),Bt=5e3,Qt=12e4,Wt=18e5,Ft=(0,At.H)(0,Bt).pipe((0,pe.U)((e=>e*Bt))),zt=e=>(0,w.T)((0,It.R)(e,"click"),(0,It.R)(e,"mousemove"),(0,It.R)(e,"keypress"),(0,It.R)(e,"scroll"),(0,It.R)(e,"touchmove"),(0,It.R)(e,"focus")),Vt=(0,O.l)(((e,t,n)=>{let{_WebAPIService:o=d.Z,_isApp:r=Z.N0}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_IDLE_DETECTOR)),(0,k.w)((()=>{const{topmostWindow:t,currentWindow:n}=o;return(0,w.T)((0,N.of)({}),(0,vt.s)((()=>r()),(0,w.T)(zt(t),zt(n)),(0,w.T)(zt(n)))).pipe((0,yt.p)(Bt),(0,k.w)((()=>Ft)),(0,Ut.R)(((e,t)=>({prev:e.cur,cur:t})),{prev:0,cur:0}),(0,k.w)((e=>{let{prev:t,cur:n}=e;const o=[];return t<Qt&&n>=Qt&&o.push(p.Z.idleDetectorActions.enterIdle()),t>=Qt&&0===n&&o.push(p.Z.idleDetectorActions.enterActive()),t<Wt&&n>=Wt&&o.push(p.Z.idleDetectorActions.enterBackground()),t>=Wt&&0===n&&o.push(p.Z.idleDetectorActions.enterForeground()),(0,L.D)(o)})),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN))))})))}),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.ENTER_BACKGROUND)),(0,k.w)((()=>Ht.pipe((0,_e.b)((e=>e.disconnect()))))),(0,k.w)((()=>M.E)))),((e,t,n)=>{let{_AuthStorageService:o=q.ZP,_ChSettings:r=_.Z,_window:i=window}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.ENTER_FORE_GROUND)),(0,pe.U)((()=>{const e=r.getPluginKey()||i.pluginKey,t=o.getToken();return p.Z.pluginActions.requestTouch({pluginKey:e,sessionJWT:t})})))}),((e,t)=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.ENTER_ACTIVE)),(0,k.w)((()=>{const e=[p.Z.socketActions.checkConnection()],n=T.Z.userChatsSelectors.getCurrentUserChatId(t.value),o=T.Z.sessionsSelectors.getSessionUnread(t.value,n),r=T.Z.messagesSelectors.getLastMessage(t.value),i=T.Z.uiSelectors.isMessengerVisible(t.value);return r&&n&&0!==o&&i&&e.push(p.Z.readChatActions.requestReadUserChat({userChatId:n})),(0,L.D)(e)}))))),jt=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_APP)),(0,_e.b)((()=>{U.submitCallback(),U.execQueue()})),(0,D.z)((t=>(0,ae.IH)(e,t,[p.Z.commandActions.initializeCommandLauncher(),p.Z.errorActions.initializeErrorClear()]))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_STANDALONE)),(0,P.h)((e=>Boolean(e.payload.pluginKey))),(0,_e.b)((e=>_.Z.setSettings({pluginKey:e.payload.pluginKey}))),(0,D.z)((t=>{const{pluginKey:n,sessionJWT:o,utmParams:r}=t.payload,i=(0,f.xb)(r)?void 0:r,s=[];return o?s.push(p.Z.pluginActions.requestTouch({pluginKey:n,sessionJWT:o})):s.push(p.Z.pluginActions.requestBoot({pluginKey:n,option:{profileOnce:i}})),s.push(p.Z.errorActions.initializeErrorClear()),(0,N.of)(s).pipe((0,k.w)((n=>(0,ae.IH)(e,t,n))))})))),((e,t,n)=>{let{_EmojiService:o=rt.ZP}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_HOME)),(0,D.z)((n=>{const{isReconnected:r}=n.payload,i=T.Z.channelSelectors.getChannelId(t.value),s=T.Z.initializeSelectors.shouldGetHome(t.value),a=T.Z.initializeSelectors.shouldGetChannelOperations(t.value),l=T.Z.initializeSelectors.shouldGetDocumentWebsiteResources(t.value),c=[p.Z.chatListActions.requestGetUnreadUserChatList()];return s&&c.push(p.Z.homeActions.requestGetHome({channelId:i},{loading:!r})),a&&c.push(p.Z.channelOperationActions.requestGetChannelOperations({channelId:i})),l&&c.push(p.Z.documentActions.requestGetDocumentWebsiteResources({channelId:i},{loading:!1,error:!1})),o.isEmpty()&&c.push(p.Z.emojiActions.requestGetEmojiInfo()),(0,N.of)(c).pipe((0,k.w)((t=>(0,ae.IH)(e,n,t))))})))}),((e,t)=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_SETTING)),(0,D.z)((n=>{const o=T.Z.channelSelectors.getChannel(t.value),r=T.Z.i18nSelectors.getCountries(t.value),i=[];return i.push(p.Z.followupSchemaActions.requestGetFollowupSchemas({channelId:o.id})),0===r.length&&i.push(p.Z.i18nActions.requestGetCountries()),(0,N.of)(i).pipe((0,k.w)((t=>(0,ae.IH)(e,n,t))))})))),((e,t)=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_EDIT_PROFILE)),(0,D.z)((n=>{const o=T.Z.channelSelectors.getChannel(t.value),r=[];return r.push(p.Z.followupSchemaActions.requestGetFollowupSchemas({channelId:o.id})),(0,N.of)(r).pipe((0,k.w)((t=>(0,ae.IH)(e,n,t))))})))));var $t=n(50655);const Kt=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_APP_MESSENGER_DEEP_LINK)),(0,D.z)((t=>(0,L.D)(function(e){let{appMessengerName:t}=e;return ie.get(`/front/v7/app/${(0,$t.GL)(t)}/connect`).withToken()}(t.payload).run()).pipe((0,D.z)((e=>(0,N.of)(t.lifeCycle.getSuccessAction({uri:e.uri??"",name:t.payload.appMessengerName}),t.lifeCycle.getCompleteAction()))),(0,x.K)((e=>(0,N.of)(t.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))))));var qt=n(81577);const Xt=(0,O.l)(((e,t)=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_REACTORS)),(0,pe.U)((e=>(0,o.ZP)(e,(e=>{const n=qt.Z.getManagerIds(t.value),o=e.payload.managerIds.filter((e=>!n.includes(e)));return e.payload.managerIds=o,e})))),(0,P.h)((e=>e.payload.managerIds.length>0)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{managerIds:t}=e;return ie.get("/front/v7/managers",{query:{managerIds:t}}).withToken()}(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_OPERATORS)),(0,D.z)((t=>(0,ae.jp)(e)(t,ie.get("/front/v7/managers/operators").withToken().run()))))));var Yt=n(53212);const Jt="NETWORK_DISCONNECTED",en="SUCCESS",tn="FAILED",nn=[e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_LIVE_MEET)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{meetId:t,userChatId:n}=e;return ie.get(`/front/v7/user-chats/${n}/meets/${t}`).withToken()}(t.payload).run())))),e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_REJECT_OUTBOUND_MEET)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{meetId:t,userChatId:n}=e;return ie.put(`/front/v7/user-chats/${n}/meets/${t}/reject`).withToken()}(t.payload).run())))),e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_TERMINATE_LIVE_MEET)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{meetId:t,userChatId:n}=e;return ie.delete(`/front/v7/user-chats/${n}/meets/${t}`).withToken()}(t.payload).run()))))];var on;!function(e){e.NoOperator="noOperator",e.NotInOperation="notInOperation",e.RingTimeOver="ringTimeOver",e.UserLeft="userLeft"}(on||(on={}));const rn="current-live-meet-object",sn=(0,O.l)(((e,t,n)=>{let{_ChSessionStorage:o=Yt.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_LIVE_MEET)),(0,k.w)((n=>{const r=o.getItem(rn),i=T.Z.userSelectors.getUserId(t.value);return(0,w.T)((null==r?void 0:r.userId)===i?function(e,t,n){let{_ChSessionStorage:o=Yt.Z}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=o.getItem(rn),i=T.Z.userSelectors.getUserId(n),s=(0,N.of)(t.lifeCycle.getSuccessAction(),t.lifeCycle.getCompleteAction());if((null==r?void 0:r.userId)!==i)return s;const a=p.Z.meetActions.requestGetLiveMeet({userChatId:r.userChatId,meetId:r.meetId});return(0,w.T)((0,N.of)(a),a.subject.pipe((0,D.z)((()=>s)),(0,x.K)((()=>(o.removeItem(rn),(0,N.of)(t.lifeCycle.getErrorAction())))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))}(e,n,t.value):M.E,function(e,t){let{_WebAPIService:n=d.Z,_TranslateService:o=$.Z}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,It.R)(n.currentWindow,"message").pipe((0,P.h)((e=>e.origin===re.g5)),(0,D.z)((e=>{const{data:n}=e;switch(n.type){case Jt:return(0,N.of)(p.Z.toastActions.showToast({message:o.getTranslation(T.Z.userSelectors.getSystemLanguage(t),"ch.meet.toast.network_disconnected")}));case en:return(0,N.of)(p.Z.meetActions.upsertLiveMeet({liveMeet:n.payload.liveMeet}));case tn:return(0,N.of)(p.Z.meetActions.terminateLiveMeet({missedReason:n.payload.missedReason}));default:return M.E}})),(0,H.R)(e.pipe((0,P.h)((0,G.isOfType)([W.Z.SHUTDOWN])))))}(e,t.value))})))}),((e,t)=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.RECEIVED_DELETE_LIVE_MEET)),(0,P.h)((e=>e.payload.liveMeet.chatId===T.Z.meetSelectors.getLiveMeetChatId(t.value))),(0,D.z)((e=>(0,N.of)(p.Z.meetActions.terminateLiveMeet({missedReason:e.payload.liveMeet.front.missedReason,keepWindowOpen:!0})))))),((e,t,n)=>{let{_ChSessionStorage:o=Yt.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.UPSERT_LIVE_MEET)),(0,_e.b)((e=>{const n=e.payload.liveMeet,r=T.Z.userSelectors.getUserId(t.value);o.setItem(rn,{userId:r,userChatId:n.chatId,meetId:n.id})})),(0,D.z)((()=>M.E)))}),((e,t,n)=>{let{_TranslateService:o=$.Z,_ChSessionStorage:r=Yt.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.TERMINATE_LIVE_MEET)),(0,_e.b)((()=>r.removeItem(rn))),(0,pe.U)((e=>e.payload.missedReason)),(0,pe.U)((e=>function(e){switch(e){case on.NotInOperation:return"ch.meet.toast.not_in_operation";case on.NoOperator:case on.RingTimeOver:return"ch.meet.toast.no_operator";default:return null}}(e))),(0,P.h)(Boolean),(0,D.z)((e=>(0,N.of)(p.Z.toastActions.showToast({message:o.getTranslation(T.Z.userSelectors.getSystemLanguage(t.value),e)})))))}),...nn);var an=n(27498),ln=n(71381),cn=n(77567);const En=(0,cn.sprintf)("%c",2),un=(0,cn.sprintf)("%c",3),hn=(0,cn.sprintf)("%c",6),dn=(new RegExp(`${hn}`,"g"),/[&<>]/g),_n=(new RegExp(`${En}(\\d+?)${un}`,"g"),{"&":"&","<":"<",">":">"}),pn=e=>e.replace(dn,(e=>_n[e]||e));function mn(e){return e.plainText?{...e,blocks:[{type:ln.Z.TEXT,value:pn(e.plainText)}]}:e}function Sn(e){let{userChatId:t,query:n}=e;return ie.get(`/front/v7/user-chats/${t}/messages`,{query:{limit:20,...n}}).withToken()}var gn=n(89906);const Tn=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)([W.Z.REQUEST_GET_MESSAGES,W.Z.REQUEST_GET_MESSAGES_ON_RECONNECT])),gt((e=>!(0,f.xb)(e.payload.userChatId))),(0,D.z)((t=>(0,ae.jp)(e)(t,Sn(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_NEXT_MESSAGES)),(0,D.z)((t=>(0,ae.jp)(e)(t,Sn(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_CREATE_MESSAGE)),(0,D.z)((t=>(0,L.D)(function(e){let{userChatId:t,message:n,handling:o}=e;const{plainText:r,requestId:i,files:s}=n,a=Tt.ZP.page;return ie.post(`/front/v7/user-chats/${t}/messages`,{plainText:r,requestId:i,files:s,page:a,handling:o??void 0}).withToken()}(t.payload).run()).pipe((0,D.z)((e=>(0,N.of)(t.lifeCycle.getSuccessAction(e),t.lifeCycle.getCompleteAction()))),(0,x.K)((e=>{const n=mn({...t.payload.message,$failed:!0,$sending:!1});return(0,N.of)(t.lifeCycle.getErrorAction({...e,failedMessage:n}))})),(0,H.R)(e.pipe((0,P.h)((0,G.isOfType)([W.Z.EXIT_USER_CHAT,W.Z.SHUTDOWN]))))))))),((e,t)=>(0,w.T)(e.pipe((0,P.h)((0,G.isOfType)([W.Z.REQUEST_CREATE_MESSAGE_SUCCESS,W.Z.REQUEST_CREATE_MESSAGE]))),(e=>e.pipe((0,P.h)((0,G.isOfType)([W.Z.RECEIVED_CREATE_MESSAGE,W.Z.RECEIVED_UPDATE_MESSAGE])),(0,pe.U)((e=>(0,o.ZP)(e,(e=>{e.payload.message.$receivedFromSocket=!0}))))))(e)).pipe((0,P.h)((e=>(e.payload.message.chatId??"")===(an.Z.getCurrentUserChatId(t.value)??""))),(0,D.z)((e=>(0,N.of)(gn.Z.upsertMessage(e.payload)))))),((e,t)=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_CREATE_LOCAL_MESSAGE)),(0,P.h)((e=>{var n;return((null==e||null===(n=e.payload)||void 0===n?void 0:n.userChatId)??"")===(an.Z.getCurrentUserChatId(t.value)??"")})),(0,D.z)((e=>(0,N.of)(gn.Z.upsertMessage({message:mn(e.payload.message)})))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_DELETE_MESSAGE)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{userChatId:t,messageId:n}=e;return ie.delete(`/front/v7/user-chats/${t}/messages/${n}`).withToken()}(t.payload).run()))))));var Cn,Rn=n(20559),fn=n(39684),An=n(49441),In=n(42972),vn=n(3957),yn=n(34903),Un=n(28961),Zn=n(59544);const{isAppleTouchableDevice:On}=Un.Z;let bn;!function(e){e.Message="message",e.Ring="ring"}(bn||(bn={}));const Nn={[bn.Message]:`${re.L4}/files/person.mp3`,[bn.Ring]:`${re.L4}/files/meet-ringtone.mp3`},wn=new(Cn=class{constructor(){(0,E.Z)(this,"sounds",void 0),this.sounds=new Map([[bn.Message,new window.Audio],[bn.Ring,new window.Audio]]);for(const[e,t]of this.sounds)t.preload="none",t.src=Nn[e]}unmute(){document.visibilityState===Zn.Z.VISIBLE?(window.setTimeout((()=>{this.sounds.forEach((e=>{e.muted=!1}))}),2e3),window.document.removeEventListener("visibilitychange",this.unmute)):window.document.addEventListener("visibilitychange",this.unmute)}mutePlay(){for(const[e,t]of this.sounds)t.muted=!0,this.play(e);setTimeout((()=>{this.unmute()}),500)}play(e){if(On)return;const t=this.sounds.get(e),n=null==t?void 0:t.play();null==n||n.catch(C.vU)}},(0,vn.Z)(Cn.prototype,"unmute",[yn.Z],Object.getOwnPropertyDescriptor(Cn.prototype,"unmute"),Cn.prototype),(0,vn.Z)(Cn.prototype,"mutePlay",[yn.Z],Object.getOwnPropertyDescriptor(Cn.prototype,"mutePlay"),Cn.prototype),(0,vn.Z)(Cn.prototype,"play",[yn.Z],Object.getOwnPropertyDescriptor(Cn.prototype,"play"),Cn.prototype),Cn);var Ln=n(79955),Mn=n(12771);const Pn=e=>(0,f.kK)(e.payload.message.marketing),Dn=e=>(0,f.kK)(e.payload.message.meet),kn=(e,t)=>()=>{const n=T.Z.channelSelectors.getChannel(e.value).id;return T.Z.uiSelectors.getcurrentTabId(e.value)===t.getItem((0,Mn.xn)(n))},xn=(e,t)=>()=>e.play(t),Hn=(e,t)=>(0,Rn.z)((0,P.h)((()=>!T.Z.idleDetectorSelector.getIsIdle(e.value))),(0,P.h)((e=>()=>T.Z.uiSelectors.getNotificationSoundMode(e.value))(e)),(0,P.h)(kn(e,t))),Gn=(e,t)=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.RECEIVED_DESK_MESSAGE)),(0,P.h)(Pn),(0,P.h)(Dn),(0,P.h)((e=>t=>{const n=t.payload.message.chatId,o=T.Z.userChatsSelectors.getUserChat(e.value,n);return(0,f.kK)(null==o?void 0:o.handling)})(t))),Bn=e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.RECEIVED_CREATE_MEET_RING))),Qn=(0,O.l)(((e,t,n)=>{let{_ChLocalStorage:o=In.Z,_NotificationSoundService:r=wn}=n;return e.pipe((()=>Gn(e,t)),Hn(t,o),function(e){let t=null;return function(e){return new Ln.y((n=>e.subscribe({next(e){t?window.clearTimeout(t):n.next(e),t=window.setTimeout((()=>{t=null}),3e3)},error(e){t&&window.clearTimeout(t),n.error(e)},complete(){t&&window.clearTimeout(t),n.complete()}})))}}(),(0,_e.b)(xn(r,bn.Message)),(0,Te.b)((()=>M.E)))}),((e,t,n)=>{let{_ChLocalStorage:o=In.Z,_NotificationSoundService:r=wn}=n;return e.pipe((()=>Bn(e)),Hn(t,o),(0,_e.b)(xn(r,bn.Ring)),(0,Te.b)((()=>M.E)))}),((e,t,n)=>{let{_ChLocalStorage:o=In.Z,_TranslateService:r=$.Z,_WebAPIService:i=d.Z}=n;return e.pipe((0,D.z)((()=>(0,w.T)(Gn(e,t),Bn(e)))),(0,D.z)((e=>{const n=T.Z.idleDetectorSelector.getIsIdle(t.value);return(0,vt.s)((e=>()=>T.Z.uiSelectors.getVisibilityState(e.value)===Zn.Z.VISIBLE)(t),(0,N.of)(e).pipe((0,P.h)((()=>n))),(0,N.of)(e).pipe((0,P.h)(kn(t,o))))})),(0,pe.U)((e=>(0,G.isOfType)(W.Z.RECEIVED_DESK_MESSAGE,e)?((e,t,n)=>{const{name:o}=T.Z.channelSelectors.getChannel(e.value),r=T.Z.userSelectors.getSystemLanguage(e.value);return{notificationTitle:(0,cn.sprintf)(t.getTranslation(r,"ch.notification.document_title"),o),originalTitle:n.topmostDocument.title}})(t,r,i):((e,t,n,o)=>{const r=T.Z.userSelectors.getSystemLanguage(t.value);return{notificationTitle:(0,cn.sprintf)(n.getTranslation(r,"ch.meet.message_preview.invited"),e.payload.meetRing.title),originalTitle:o.topmostDocument.title}})(e,t,r,i))),(0,An.z)((n=>((e,t,n,o)=>{const{notificationTitle:r,originalTitle:i}=e,{topmostDocument:s}=o;return(0,Zt.F)(2e3).pipe((0,fn.o)((()=>{const e=T.Z.idleDetectorSelector.getIsIdle(n.value);return!o.hasFocus()||e})),(0,_e.b)((()=>{s.title===i?s.title=r:s.title=i})),(0,Ot.x)((()=>{s.title=i})),(0,H.R)(t.pipe((0,b.l)(W.Z.SHUTDOWN))))})(n,e,t,i))),(0,Te.b)((()=>M.E)))}));var Wn,Fn=n(60489),zn=n(2685);const Vn="data-ch-viewport",jn="width=device-width, initial-scale=1.0",$n="width=980";let Kn=(Wn=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,"_WebAPIService",null),(0,E.Z)(this,"chMetaTagAppended",!1),(0,E.Z)(this,"chMetaTagApplied",!1),(0,E.Z)(this,"prevContent",null),Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])}))}init(){this.chMetaTagAppended=!1,this.chMetaTagApplied=!1,this.prevContent=null}isValidContent(e){return(0,f.HD)(e)&&""!==e}appendChMetaTag(){var e;const t=null===(e=this._WebAPIService)||void 0===e?void 0:e.topmostDocument;if(!t)return;const n=t.createElement("meta");n.setAttribute("name","viewport"),n.setAttribute("content",jn),n.setAttribute(Vn,""),t.head.appendChild(n)}appendDefaultMetaTag(){var e;const t=null===(e=this._WebAPIService)||void 0===e?void 0:e.topmostDocument;if(!t)return;const n=t.createElement("meta");n.setAttribute("id","ch-default-viewport"),n.setAttribute("name","viewport"),n.setAttribute("content",$n),t.head.appendChild(n)}replace(){var e;if(this.chMetaTagApplied)return;const t=null===(e=this._WebAPIService)||void 0===e?void 0:e.topmostDocument;if(!t)return;const n=t.querySelectorAll('meta[name="viewport"]');if(!n.length)return this.appendChMetaTag(),this.chMetaTagAppended=!0,void(this.chMetaTagApplied=!0);const o=n.item(n.length-1),r=o.getAttribute("content");this.isValidContent(r)&&(this.prevContent=r),o.setAttribute("content",jn),o.setAttribute(Vn,""),this.chMetaTagApplied=!0}restore(){var e;const t=null===(e=this._WebAPIService)||void 0===e?void 0:e.topmostDocument;if(!t)return;const n=t.querySelector(`meta[${Vn}]`);if(n){if(this.chMetaTagAppended)return null!=n&&n.parentNode&&n.parentNode.removeChild(n),this.appendDefaultMetaTag(),void this.init();n.removeAttribute(Vn),this.isValidContent(this.prevContent)?n.setAttribute("content",this.prevContent):n.setAttribute("content",$n),this.init()}else this.init()}_set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])}))}},(0,vn.Z)(Wn.prototype,"init",[yn.Z],Object.getOwnPropertyDescriptor(Wn.prototype,"init"),Wn.prototype),(0,vn.Z)(Wn.prototype,"isValidContent",[yn.Z],Object.getOwnPropertyDescriptor(Wn.prototype,"isValidContent"),Wn.prototype),(0,vn.Z)(Wn.prototype,"appendChMetaTag",[yn.Z],Object.getOwnPropertyDescriptor(Wn.prototype,"appendChMetaTag"),Wn.prototype),(0,vn.Z)(Wn.prototype,"appendDefaultMetaTag",[yn.Z],Object.getOwnPropertyDescriptor(Wn.prototype,"appendDefaultMetaTag"),Wn.prototype),(0,vn.Z)(Wn.prototype,"replace",[yn.Z],Object.getOwnPropertyDescriptor(Wn.prototype,"replace"),Wn.prototype),(0,vn.Z)(Wn.prototype,"restore",[yn.Z],Object.getOwnPropertyDescriptor(Wn.prototype,"restore"),Wn.prototype),(0,vn.Z)(Wn.prototype,"_set",[yn.Z],Object.getOwnPropertyDescriptor(Wn.prototype,"_set"),Wn.prototype),Wn);const qn=new Kn({_WebAPIService:d.Z});var Xn=n(69677),Yn=n(48384),Jn=n(94785),eo=n(39156);function to(e){if(e.popUpChatId)return p.Z.popupActions.requestGetPopupUserChat({userChatId:e.popUpChatId})}function no(e,t){let{_client:n,_document:o}=t;e.language&&n.setLanguage(e.language),o.documentElement.setAttribute("lang",e.systemLanguage)}var oo=n(15964);function ro(e){const t=`${Yn.Z.PLUGIN_INFO}.${e}`;return(0,N.of)(In.Z.getItem(t)).pipe((0,D.z)((n=>n?(0,N.of)(n):(0,L.D)(function(e){return ie.get(`/front/v7/elastic/plugins/${e}`).withToken()}(e).run()).pipe((0,_e.b)((e=>{let{plugin:n}=e;In.Z.setItem(t,{channelId:n.channelId})})),(0,pe.U)((e=>{let{plugin:t}=e;return{channelId:t.channelId}}))))))}const io=(0,O.l)(((e,t,n)=>{let{_client:o=ie,_document:r=document,_DraftFormService:i=zn.Z,_DraftMessageService:s=j.Z,_DraftCommandService:a=V.Z,_AuthStorageService:l=q.ZP,_WebAPIService:c=d.Z,_ChannelQueryParamService:E=Tt.ZP,_ChSettings:u=_.Z,_isApp:h=Z.N0,_getZIndexBootOption:m=oo.JP}=n,S=null;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_BOOT)),(0,Te.b)((e=>S?(0,L.D)(S).pipe((0,_e.b)((()=>{S=null})),(0,pe.U)((()=>e))):(0,N.of)(e))),(0,D.z)((n=>{const{pluginKey:d,option:_}=n.payload,g={url:E.getUrl(),..._};return(0,L.D)(ro(d)).pipe((0,D.z)((e=>{let{channelId:t}=e;const n=l.getVeilId()??void 0,o=l.getToken(t)??void 0,r={...g,veilId:n,sessionJWT:o};return S=function(e){let{pluginKey:t,channelId:n,bootOption:o}=e;return ie.postBySimpleRequest(`/front/v7/elastic/plugins/${t}/boot`,o,{credentials:"include"}).onResult((e=>{const{sessionJWT:t,veilId:o,cookieDomain:r}=e.body,i=(0,Z.$W)()?window.location.hostname:r;q.ZP.setVeilId(o,i),q.ZP.setToken(t,n,i);const s=e.headers.get("date");s&&wt.Z.computeTimeDiff(s)}))}({pluginKey:d,channelId:t,bootOption:r}).run(),(0,L.D)(S).pipe((0,_e.b)((()=>{S=null})))})),(0,_e.b)((e=>{const{user:t}=e,n=c.chPluginElement;n&&h()&&n.style.setProperty("z-index",`${m()}`,"important"),no(t,{_client:o,_document:r}),a.initialize(t.id),s.initialize(t.id),i.initialize(t.id)})),(0,D.z)((e=>{const{user:o,routeInfo:r,namespace:i}=e,s=`${r.url}${i}`,a=[n.lifeCycle.getSuccessAction(e),to(o),p.Z.uiActions.initializeCustomLauncherSelector(),p.Z.idleDetectorActions.initializeIdleDetector(),p.Z.meetActions.initializeLiveMeet(),p.Z.uiActions.initializeMessengerStyle()],l=p.Z.socketActions.requestConnectSocket({socketAddress:s}),c=[l];return(0,w.T)((0,L.D)((0,Jn.o)([...a,...c])),(0,he.D)(c.map((e=>e.subject))).pipe((0,bt.d)([]),(0,pe.U)((()=>n.lifeCycle.getCompleteAction())),(0,x.K)((()=>(0,N.of)(n.lifeCycle.getCompleteAction())))),(0,he.D)([l.subject]).pipe((0,P.h)((()=>u.getTrackDefaultEvent())),(0,pe.U)((()=>p.Z.eventActions.requestCreateEvent({channelId:T.Z.channelSelectors.getChannel(t.value).id,name:Xn.t.PageView}))),(0,x.K)((()=>{const e=p.Z.socketActions.requestGetSocketAddress({channelId:T.Z.channelSelectors.getChannelId(t.value)});return(0,w.T)((0,N.of)(e),(0,he.D)([e.subject]).pipe((0,pe.U)((()=>p.Z.eventActions.requestCreateEvent({channelId:T.Z.channelSelectors.getChannel(t.value).id,name:Xn.t.PageView}))),(0,x.K)((()=>M.E))))}))))})),(0,x.K)((e=>(0,N.of)(n.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN))))})))}),((e,t,n)=>{let{_client:o=ie,_document:r=document,_DraftFormService:i=zn.Z,_DraftMessageService:s=j.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_TOUCH)),(0,D.z)((n=>{const{pluginKey:a,sessionJWT:l}=n.payload;return(0,L.D)(ro(a)).pipe((0,D.z)((e=>{let{channelId:t}=e;return(0,L.D)(function(e){let{channelId:t,sessionJWT:n}=e;return ie.postBySimpleRequest(`/front/v7/channels/${t}/touch`,{sessionJWT:n},{credentials:"include"}).onResult((e=>{const{sessionJWT:n}=e.body;q.ZP.setToken(n,t)}))}({channelId:t,sessionJWT:l}).run())})),(0,_e.b)((e=>{const{user:t}=e;no(t,{_client:o,_document:r}),s.initialize(t.id),i.initialize(t.id)})),(0,D.z)((e=>{const{user:o,routeInfo:r,namespace:i}=e,s=`${r.url}${i}`,a=[n.lifeCycle.getSuccessAction(e),to(o),p.Z.idleDetectorActions.initializeIdleDetector()],l=p.Z.socketActions.requestConnectSocket({socketAddress:s}),c=[l];return(0,w.T)((0,L.D)((0,Jn.o)([...a,...c])),(0,he.D)(c.map((e=>e.subject))).pipe((0,bt.d)([]),(0,pe.U)((()=>n.lifeCycle.getCompleteAction())),(0,x.K)((()=>(0,N.of)(n.lifeCycle.getCompleteAction())))),(0,he.D)([l.subject]).pipe((0,k.w)((()=>M.E)),(0,x.K)((()=>(0,N.of)(p.Z.socketActions.requestGetSocketAddress({channelId:T.Z.channelSelectors.getChannelId(t.value)}))))))})),(0,x.K)((e=>(0,N.of)(n.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN))))})))}),((e,t,n)=>{let{_ChSettings:o=_.Z,_WebAPIService:r=d.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_CUSTOM_LAUNCHER_SELECTOR)),(0,pe.U)((()=>o.getCustomLauncherSelector())),(0,P.h)((e=>!!e)),(0,k.w)((t=>(0,ze.P)((()=>r.topmostDocument.querySelectorAll(t))).pipe((0,D.z)((e=>(0,It.R)(e,"click"))),(0,pe.U)((()=>p.Z.uiActions.setShowMessenger({showMessenger:!0}))),(0,x.K)((()=>((0,C.wN)(`Unable to bind the event on custom launchers. Check 'customLauncherSelector': "${t}".`),M.E))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))))}),((e,t,n)=>{let{_HistoryService:o=St.Z,_AuthStorageService:r=q.ZP,_UserAgentService:i=Un.Z,_ViewportService:s=qn,_BodyScrollLockService:a=Fn.Z,_ChSettings:l=_.Z,_isApp:c=Z.N0}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.SHUTDOWN)),(0,_e.b)((()=>{o.getHistory().push("/home"),r.init(),c()&&((0,eo.zo)(),i.isMobile&&(s.restore(),a.enableBodyScrollForMobile())),l.clearSettings()})),(0,k.w)((()=>M.E)))}));var so=n(29823),ao=n(14906),lo=n(80834),co=n(13892),Eo=n(92027);function uo(e,t){var n;return e.type===co.tn&&e.value?(null===(n=t[e.value])||void 0===n?void 0:n.c)??e.value:e.value??e.children.map((e=>uo(e,t))).join("")}const ho=function e(t,n){const o=[];for(const r of t)if(r.type===ln.Z.TEXT){const e=(0,Eo.ZP)(r.value);o.push(uo(e,n))}else r.type===ln.Z.CODE?o.push(r.value):r.type===ln.Z.BULLETS&&o.push(...e(r.blocks,n).map((e=>`• ${e}`)));return o};var _o=n(22667);const po=(0,O.l)(((e,t)=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.RECEIVED_PUSH_MESSAGE)),(0,P.h)((e=>{var n;const o=e.payload.message,r=e.payload.message.alertLevel,i=T.Z.popupSelectors.getAlertLevel(t.value),s=!!o.marketing&&(null===(n=o.marketing)||void 0===n?void 0:n.exposureType)===ao.O.FullScreen,a=T.Z.popupSelectors.isFullscreen(t.value),l=T.Z.popupSelectors.getBubbleInteracting(t.value),c=T.Z.popupSelectors.showPopup(t.value),E=T.Z.popupSelectors.showLabelBtn(t.value);return!(c&&!E&&r!==lo.Z.ALERT&&(i===lo.Z.ALERT||!s&&(a||l)))})),(0,D.z)((e=>(0,N.of)(_o.Z.updatePopup(e.payload)))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_CLOSE_POP_UP)),(0,D.z)((t=>(0,ae.jp)(e)(t,ie.delete("/front/v7/users/me/pop-up").withToken().run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_POPUP_USER_CHAT)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{userChatId:t}=e;return ie.get(`/front/v7/user-chats/${t}/pop-up`).withToken()}(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_POPUP)),(0,D.z)((t=>{const{showPopup:n,emojiIsEmpty:o}=t.payload,r=[];return n&&o&&r.push(p.Z.emojiActions.requestGetEmojiInfo()),(0,N.of)(r).pipe((0,k.w)((n=>(0,ae.IH)(e,t,n))))})))),((e,t,n)=>{let{_UserAgentService:o=Un.Z,_ChSessionStorage:r=Yt.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_LABEL_BUTTON)),(0,D.z)((n=>{const i=[],s=T.Z.channelSelectors.getChannelId(t.value),a=T.Z.channelSelectors.showOperatorProfile(t.value),l=p.Z.channelOperationActions.requestGetChannelOperations({channelId:s});return i.push(l),!o.isMobile&&a&&i.push(p.Z.managerActions.requestGetOperators()),(0,w.T)((0,N.of)(...i),(0,L.D)(l.subject).pipe((0,_e.b)((()=>{r.setItem(Yn.Z.LABEL_BUTTON_VISIBILITY,!1)})),(0,k.w)((e=>{const t=[n.lifeCycle.getSuccessAction()];if(1===e.channelOperations.length){const[o]=e.channelOperations;o.inOperation&&o.expectedResponseDelay!==so.D.DELAYED&&t.push(p.Z.popupActions.showLabelButton()),t.push(n.lifeCycle.getCompleteAction())}else t.push(p.Z.popupActions.showLabelButton(),n.lifeCycle.getCompleteAction());return(0,N.of)(...t)})),(0,x.K)((()=>(0,N.of)(n.lifeCycle.getErrorAction()))))).pipe((0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN))))})))}),((e,t,n)=>{let{_EmojiService:o=rt.ZP,_TranslateService:r=$.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)([W.Z.REQUEST_GET_POPUP_USER_CHAT_SUCCESS,W.Z.RECEIVED_PUSH_MESSAGE])),(0,pe.U)((e=>new fe.Z(e.payload.message))),(0,D.z)((n=>{const i=T.Z.userSelectors.getLanguage(t.value),s=T.Z.userSelectors.getSystemLanguage(t.value),a=T.Z.messagesSelectors.getMessageAuthor(t.value,n.personType,n.personId),l=p.Z.emojiActions.requestGetEmojiInfo();return(0,w.T)((0,N.of)(l),(0,L.D)(l.subject).pipe((0,D.z)((()=>(0,N.of)(p.Z.commandActions.executeOnPopupDataReceivedCallback({popupData:{message:n.blocks.length>0?ho(n.blocks,o.emojiMap).join("\n"):null,chatId:n.chatId,avatarUrl:(null==a?void 0:a.avatarUrl)??"",name:(null==a?void 0:a.getName(i))??r.getTranslation(s,"ch.unknown"),timestamp:n.createdAt}})))),(0,x.K)((()=>M.E)),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))})))})),mo=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_READ_USER_CHAT)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{userChatId:t}=e;return ie.put(`/front/v7/user-chats/${t}/messages/read`).withToken()}(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_READ_ALL_USER_CHAT)),(0,D.z)((t=>(0,ae.jp)(e)(t,ie.put("/front/v7/user-chats/read/all").withToken().run())))))),So=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_POST_FORM_SUBMIT)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{chatId:t,messageId:n,form:o}=e;return ie.post(`/front/v7/user-chats/${t}/messages/${n}/form`,{...o}).withToken()}(t.payload).run()))))));var go=n(84267),To=n(35696);const Co=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_CREATE_EVENT)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{channelId:t,name:n,property:o}=e;const r=d.Z.topmostWindow,i=new To.Z(r.location.href),s=new To.Z(r.document.referrer);return ie.postBySimpleRequest(`/front/v7/channels/${t}/events`,{name:n,property:{title:r.document.title,url:i.decodeValidateURI(),page:Tt.ZP.page,referrer:s.decodeValidateURI(),...o},sessionJWT:q.ZP.getToken()},{credentials:"include"})}(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_UPDATE_MARKETING_EVENT)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{type:t,id:n,event:o,userId:r,userChatId:i}=e;return o===Xn.t.MarketingClick?ie.get(`/front/v7/${go.A[t]}/${n}/users/${r}/${o}`,{query:{userChatId:i}}).withToken():ie.put(`/front/v7/${go.A[t]}/${n}/${o}`,null,{query:{userChatId:i}}).withToken()}(t.payload).run())))))),Ro=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_TRANSLATE_MESSAGE)),(0,D.z)((t=>(0,L.D)(function(e){let{userChatId:t,messageId:n,language:o}=e;return ie.get(`/front/v7/user-chats/${t}/messages/${n}/translate`,{query:{language:o}}).withToken()}(t.payload).run()).pipe((0,D.z)((e=>(0,N.of)(t.lifeCycle.getSuccessAction({...e,messageId:t.payload.messageId}),t.lifeCycle.getCompleteAction()))),(0,x.K)((e=>(0,N.of)(t.lifeCycle.getErrorAction({...e,messageId:t.payload.messageId})))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))))));var fo=n(54603),Ao=n(33122),Io=n(93099),vo=n(82667);const yo=(0,O.l)(((e,t,n)=>{let{_UserAgentService:o=Un.Z,_BodyScrollLockService:r=Fn.Z,_ViewportService:i=qn,_isStandalone:s=Z.$W}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.SET_SHOW_MESSENGER)),(0,pe.U)((e=>e.payload.showMessenger)),(0,_e.b)((function(e){!s()&&e&&((0,eo.oE)(),o.isMobile&&(i.replace(),r.disableBodyScrollForMobile()))})),(0,_e.b)((function(e){s()||e||((0,eo.zo)(),o.isMobile&&(i.restore(),r.enableBodyScrollForMobile()))})),(0,k.w)((()=>M.E)))}),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.START_TYPING)),(0,yt.p)(1e3,fo.z,{leading:!0}),(0,k.w)((e=>Ht.pipe((0,_e.b)((t=>{t.emit(Oe,{action:"start",chatType:"userChat",...e.payload})}))))),(0,k.w)((()=>M.E)))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.STOP_TYPING)),(0,k.w)((e=>Ht.pipe((0,_e.b)((t=>{t.emit(Oe,{action:"stop",chatType:"userChat",...e.payload})}))))),(0,k.w)((()=>M.E)))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.CHANGE_VISIBILITY_STATE)),(0,k.w)((e=>(0,vt.s)((()=>e.payload.visibilityState===Zn.Z.VISIBLE),Ht.pipe((0,_e.b)((e=>e.emit(Ze)))),Ht.pipe((0,_e.b)((e=>e.emit("offline",3e3))))))),(0,k.w)((()=>M.E)))),((e,t,n)=>{let{_WebAPIService:o=d.Z,_UserAgentService:r=Un.Z,_isApp:i=Z.N0}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_MESSENGER_STYLE)),(0,P.h)((()=>i())),(0,pe.U)((()=>o.parentDocument.getElementById("ch-plugin-script"))),(0,P.h)((e=>!!e)),(0,_e.b)((e=>{if(e.removeAttribute("style"),e.classList.add("ch-messenger-hidden"),r.isMobile)e.classList.add("ch-mobile-messenger");else{e.classList.add("ch-desk-messenger");const n=T.Z.pluginSelectors.getPlugin(t.value).getPosition(),{marginY:o,marginX:r}=T.Z.pluginSelectors.getPlugin(t.value).getMargin(),i=o+vo.HN+vo.P8;e.setAttribute("style",`bottom: ${i}px !important;${n}: ${r}px !important;`)}})),(0,k.w)((()=>M.E)))}),((e,t)=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.TOGGLE_MESSENGER_SIZE)),(0,pe.U)((()=>T.Z.uiSelectors.getMessengerSizeType(t.value)===Io.A.Document?Io.A.Default:Io.A.Document)),(0,_e.b)((e=>{In.Z.setItem(Yn.Z.DOCUMENT_VIEWER_SHRINKED,e===Io.A.Default)})),(0,k.w)((e=>(0,N.of)(p.Z.uiActions.setMessengerSizeType({messengerSizeType:e})))))),((e,t,n)=>{let{_WebAPIService:o=d.Z,_UserAgentService:r=Un.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.SET_MESSENGER_SIZE_TYPE)),(0,P.h)((e=>e.payload.messengerSizeType===Io.A.Document)),(0,pe.U)((()=>{const{width:e,height:n}=T.Z.uiSelectors.getMessengerEdgeSize(t.value),{innerWidth:i,innerHeight:s}=o.topmostWindow;return r.isMobile?{width:i,height:s}:{width:Math.min(i-e,Io.L[Io.A.Document].width),height:Math.min(s-n,Io.L[Io.A.Document].height)}})),(0,_e.b)((e=>{let{width:t,height:n}=e;const r=o.chPluginScriptElement;r&&(r.style.setProperty("max-width",`${t}px`,"important"),r.style.setProperty("max-height",`${n}px`,"important"))})),(0,me.g)(Ao.BU),(0,_e.b)((()=>{const e=o.chPluginScriptElement;e&&(e.style.removeProperty("max-width"),e.style.removeProperty("max-height"))})),(0,k.w)((()=>M.E)))}));var Uo=n(74113),Zo=n(65232);const Oo=e=>(0,f.hj)(e)||(0,f.HD)(e)&&""!==e,bo=(e,t,n)=>{const o=[];return n.isEmpty()?o.push(p.Z.userChatActions.requestCreateUserChat()):o.push(p.Z.workflowActions.requestCreateWorkflowUserChatWithRevision({workflowId:n.id,revisionId:n.revisionId})),(0,N.of)(o).pipe((0,k.w)((n=>(0,ae.IH)(e,t,n))))},No=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_CREATE_USER_CHAT)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(){const e=(0,X.P)({page:Tt.ZP.page});return ie.post(`/front/v7/user-chats?${e}`,{userChatProfile:_.Z.getUserChatProfile()}).withToken()}().run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)([W.Z.REQUEST_CREATE_USER_CHAT_SUCCESS,W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_SUCCESS,W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_SUCCESS])),(0,_e.b)((e=>{const{id:t}=e.payload.userChat,n=(()=>{if((0,Z.$W)()){const e=Tt.ZP.getMessage();return Tt.ZP.unsetMessage(),e}const e=j.Z.get(Tt.FX);return j.Z.delete(Tt.FX),e})();n&&j.Z.set(t,n)})),(0,k.w)((e=>{const{id:t}=e.payload.userChat,n=[];return n.push(p.Z.userChatActions.goUserChat({userChatId:t})),(0,L.D)(n)})))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_LEAVE_USER_CHAT)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{userChatId:t}=e;return ie.delete(`/front/v7/user-chats/${t}/leave`).withToken()}(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_USER_CHAT)),gt((e=>!(0,f.xb)(e.payload.userChatId))),(0,D.z)((t=>(0,L.D)(function(e){let{userChatId:t}=e;return ie.get(`/front/v7/user-chats/${t}`).withToken()}(t.payload).run()).pipe((0,D.z)((e=>(0,N.of)(t.lifeCycle.getSuccessAction(e),t.lifeCycle.getCompleteAction()))),(0,x.K)((e=>(0,N.of)(t.lifeCycle.getErrorAction(e,{error:t.meta.error})))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.ENTER_USER_CHAT)),(0,k.w)((e=>Ht.pipe((0,_e.b)((t=>{t.emit(Ue,`/user-chats/${e.payload.userChatId}`)}))))),(0,k.w)((()=>M.E)))),(e=>e.pipe((0,P.h)((0,G.isOfType)([W.Z.EXIT_USER_CHAT])),(0,k.w)((e=>Ht.pipe((0,_e.b)((t=>{t.emit("leave",`/user-chats/${e.payload.userChatId}`)}))))),(0,k.w)((()=>M.E)))),((e,t,n)=>{let{_HistoryService:o=St.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.GO_USER_CHAT)),(0,P.h)((e=>{const n=T.Z.userChatsSelectors.getCurrentUserChatId(t.value);return e.payload.userChatId!==n})),(0,_e.b)((e=>{const{userChatId:t}=e.payload,n=o.getHistory(),r=n.location.pathname,i=`/user-chats/${t}`;(0,Pt.Kc)(r)&&n.replace("/home"),(0,Pt.Bx)(r)?n.replace(i):n.push(i)})),(0,k.w)((()=>M.E)))}),((e,t,n)=>{let{_HistoryService:o=St.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.GO_NEW_USER_CHAT)),(0,_e.b)((()=>{const e=o.getHistory(),t=e.location.pathname,n=`/user-chats/${Tt.FX}`;(0,Pt.Bx)(t)?e.replace({pathname:n}):e.push({pathname:n})})),(0,k.w)((()=>M.E)))}),((e,t,n)=>{let{_DraftMessageService:o=j.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.OPEN_CHAT)),(0,_e.b)((e=>{let{payload:{userChatId:t,message:n}}=e;!Oo(t)&&(e=>(0,f.HD)(e)&&""!==e)(n)&&o.set(Tt.FX,n)})),(0,k.w)((e=>{let{payload:{userChatId:n}}=e;const o=[],r=Oo(n)?p.Z.userChatActions.goUserChat({userChatId:n.toString()}):p.Z.userChatActions.goNewUserChat();return o.push(r),T.Z.uiSelectors.showMessenger(t.value)||o.push(p.Z.uiActions.setShowMessenger({showMessenger:!0})),(0,L.D)(o)})))}),((e,t,n)=>{let{_EmojiService:o=rt.ZP}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_USER_CHAT)),(0,D.z)((n=>{const{userChatId:r}=n.payload,i=T.Z.i18nSelectors.getCountries(t.value),s=T.Z.channelSelectors.getChannelId(t.value),a=T.Z.initializeSelectors.shouldGetChannelOperations(t.value),l=T.Z.initializeSelectors.shouldGetHome(t.value),c=T.Z.initializeSelectors.shouldGetDocumentWebsiteResources(t.value),E=[p.Z.userChatActions.requestGetUserChat({userChatId:r}),p.Z.messageActions.requestGetMessages({userChatId:r}),p.Z.appCommandActions.requestGetAppCommands({channelId:s},{error:!1})];return a&&E.push(p.Z.channelOperationActions.requestGetChannelOperations({channelId:s})),l&&E.push(p.Z.homeActions.requestGetHome({channelId:s},{loading:!1})),c&&E.push(p.Z.documentActions.requestGetDocumentWebsiteResources({channelId:s},{loading:!1,error:!1})),0===i.length&&E.push(p.Z.i18nActions.requestGetCountries(void 0,{loading:!1})),o.isEmpty()&&E.push(p.Z.emojiActions.requestGetEmojiInfo()),(0,N.of)(E).pipe((0,k.w)((t=>(0,ae.IH)(e,n,t))))})))}),((e,t,n)=>{let{_EmojiService:o=rt.ZP}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_USER_CHAT_ON_RECONNECT)),(0,D.z)((n=>{const r=T.Z.userChatsSelectors.getCurrentUserChatId(t.value),i=T.Z.i18nSelectors.getCountries(t.value),s=T.Z.channelSelectors.getChannelId(t.value),a=T.Z.messagesSelectors.getMessages(t.value).length,l=[p.Z.userChatActions.requestGetUserChat({userChatId:r}),p.Z.messageActions.requestGetMessagesOnReconnect({userChatId:r,query:{limit:Math.min(a,100)}})],c=[p.Z.appCommandActions.requestGetAppCommands({channelId:s})];return 0===i.length&&c.push(p.Z.i18nActions.requestGetCountries(void 0,{loading:!1})),o.isEmpty()&&c.push(p.Z.emojiActions.requestGetEmojiInfo()),(0,w.T)((0,L.D)([...l,...c]),(0,he.D)(l.map((e=>e.subject))).pipe((0,k.w)((()=>Ht.pipe((0,_e.b)((e=>{e.emit(Ue,`/user-chats/${r}`)}))))),(0,D.z)((()=>(0,N.of)(n.lifeCycle.getSuccessAction(),n.lifeCycle.getCompleteAction()))),(0,x.K)((()=>(0,N.of)(n.lifeCycle.getErrorAction()))))).pipe((0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN))))})))}),((e,t)=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_NEW_USER_CHAT)),(0,D.z)((n=>{const{workflowId:o}=n.payload,r=T.Z.channelSelectors.getChannelId(t.value),i=T.Z.initializeSelectors.shouldGetHome(t.value);if(o)return(0,N.of)([p.Z.workflowActions.requestCreateWorkflowUserChat({workflowId:o})]).pipe((0,k.w)((t=>(0,ae.IH)(e,n,t))));if(i||(0,Z.$W)()){const o=p.Z.homeActions.requestGetHome({channelId:r});return(0,Uo.z)((0,N.of)(o),o.subject.pipe((0,me.g)(0),(0,k.w)((()=>{const o=T.Z.workflowSelectors.getWorkflow(t.value);return bo(e,n,o)}))))}const s=T.Z.workflowSelectors.getWorkflow(t.value);return bo(e,n,s)})))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_SWITCH_TO_USER_CHAT)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{userChatId:t}=e;const n=(0,X.P)({page:Tt.ZP.page});return ie.put(`/front/v7/user-chats/${t}/handle?${n}`).withToken()}(t.payload).run()))))),(e=>(0,w.T)(e.pipe((0,P.h)((0,G.isOfType)([W.Z.REQUEST_BOOT_SUCCESS,W.Z.REQUEST_TOUCH_SUCCESS,W.Z.RECEIVED_UPDATE_USER,W.Z.REQUEST_UPDATE_USER_SUCCESS,W.Z.REQUEST_GET_USER_SUCCESS])),(0,pe.U)((e=>e.payload.user.mainChatId))),e.pipe((0,P.h)((0,G.isOfType)([W.Z.SHUTDOWN])),(0,pe.U)((()=>null)))).pipe((0,Zo.x)(),(0,P.h)(Boolean),(0,D.z)((e=>(0,N.of)(p.Z.userChatActions.requestGetUserChat({userChatId:e},{error:!1}))))))),wo=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_ADD_TAGS)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{tags:t}=e;const n=(0,X.P)({tags:t});return ie.patch(`/front/v7/users/me/tags?${n}`).withToken()}(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_REMOVE_TAGS)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{tags:t}=e;const n=(0,X.P)({tags:t});return ie.delete(`/front/v7/users/me/tags?${n}`).withToken()}(t.payload).run())))))),Lo=(0,O.l)(((e,t,n)=>{let{_client:o=ie,_document:r=document}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_UPDATE_USER)),(0,Te.b)((t=>(0,L.D)(function(e){if((0,R.e$)(e,"unsubscribed")&&!(0,R.e$)(e,"unsubscribeTexting")&&!(0,R.e$)(e,"unsubscribeEmail")){const t={...e,unsubscribed:void 0,unsubscribeTexting:e.unsubscribed,unsubscribeEmail:e.unsubscribed};return ie.patch("/front/v7/users/me",t).withToken()}return ie.patch("/front/v7/users/me",e).withToken()}(t.payload).run()).pipe((0,_e.b)((e=>{const{user:t}=e;no(t,{_client:o,_document:r})})),(0,D.z)((e=>(0,N.of)(t.lifeCycle.getSuccessAction(e),t.lifeCycle.getCompleteAction()))),(0,x.K)((e=>(0,N.of)(t.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))))}),((e,t,n)=>{let{_client:o=ie,_document:r=document}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.RECEIVED_UPDATE_USER)),(0,k.w)((e=>{let{payload:{user:t}}=e;return no(t,{_client:o,_document:r}),M.E})))}),((e,t,n)=>{let{_client:o=ie,_document:r=document}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_USER)),(0,Te.b)((t=>(0,L.D)(ie.get("/front/v7/users/me").withToken().run()).pipe((0,_e.b)((e=>{const{user:t}=e;no(t,{_client:o,_document:r})})),(0,D.z)((e=>(0,N.of)(t.lifeCycle.getSuccessAction(e),t.lifeCycle.getCompleteAction()))),(0,x.K)((e=>(0,N.of)(t.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))))})),Mo=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_TRIGGER_APP_WIDGET_INSTALLATION)),(0,D.z)((t=>(0,L.D)(function(e){let{channelId:t,appWidgetId:n}=e;return ie.put(`/front/v1/channels/${t}/app-widgets/${n}`,null,{baseUrl:re.m$}).withToken()}(t.payload).run()).pipe((0,D.z)((e=>(0,Uo.z)((0,N.of)(t.lifeCycle.getSuccessAction(e)),(0,N.of)(p.Z.actionActions.executeAction({action:e})),(0,N.of)(t.lifeCycle.getCompleteAction())))),(0,x.K)((e=>(0,N.of)(t.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN))))))))),Po=(0,O.l)((e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{workflowId:t}=e;const n=(0,X.P)({page:Tt.ZP.page});return ie.post(`/front/v7/workflows/${t}/user-chats?${n}`,{userChatProfile:_.Z.getUserChatProfile()}).withToken()}(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{workflowId:t,revisionId:n}=e;const o=(0,X.P)({page:Tt.ZP.page});return ie.post(`/front/v7/workflows/${t}/revisions/${n}/user-chats?${o}`,{userChatProfile:_.Z.getUserChatProfile()}).withToken()}(t.payload).run()))))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_WORKFLOW_FROM_ID)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{workflowId:t}=e;return ie.get(`/front/v7/workflows/${t}`).withToken()}(t.payload).run()))))),((e,t,n)=>{let{_HistoryService:o=St.Z}=n;return e.pipe((0,P.h)((0,G.isOfType)(W.Z.OPEN_WORKFLOW)),(0,_e.b)((()=>{const e=o.getHistory();e.replace("/home"),e.push("/user-chats/open-workflow")})),(0,D.z)((n=>{const o=p.Z.userChatActions.initializeNewUserChat({workflowId:n.payload.workflowId.toString()}),r=[o];return T.Z.uiSelectors.showMessenger(t.value)||r.push(p.Z.uiActions.setShowMessenger({showMessenger:!0})),(0,Uo.z)((0,L.D)(r),o.subject.pipe((0,k.w)((()=>(0,N.of)(n.lifeCycle.getSuccessAction(),n.lifeCycle.getCompleteAction()))))).pipe((0,x.K)((e=>(0,N.of)(n.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN))))})))}),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.INITIALIZE_SPECIFIC_WORKFLOW)),(0,D.z)((t=>{const{workflowId:n}=t.payload,o=p.Z.workflowActions.requestGetWorkflowFromId({workflowId:n}),r=p.Z.userChatActions.initializeNewUserChat();return(0,Uo.z)((0,N.of)(o),o.subject.pipe((0,k.w)((()=>M.E))),(0,N.of)(t.lifeCycle.getSuccessAction()),(0,N.of)(r),r.subject.pipe((0,k.w)((()=>M.E))),(0,N.of)(t.lifeCycle.getCompleteAction())).pipe((0,x.K)((e=>(0,N.of)(t.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN))))})))),(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_REPLY_USER_CHAT_HANDLING_BUTTONS)),(0,D.z)((t=>(0,w.T)((0,N.of)(p.Z.messageActions.requestCreateLocalMessage({userChatId:t.payload.userChatId,message:t.payload.message})),(0,L.D)(function(e){let{buttonId:t,message:n,userChatId:o}=e;const{requestId:r}=n,i=(0,X.P)({requestId:r});return ie.post(`/front/v7/user-chats/${o}/handling/buttons/${t}?${i}`).withToken()}(t.payload).run()).pipe((0,D.z)((e=>(0,N.of)(t.lifeCycle.getSuccessAction(e),t.lifeCycle.getCompleteAction()))),(0,x.K)((e=>(0,N.of)(p.Z.messageActions.deleteLocalMessage({key:t.payload.message.requestId??""}),t.lifeCycle.getErrorAction(e)))),(0,H.R)(e.pipe((0,b.l)(W.Z.SHUTDOWN)))))))))),Do=(0,O.l)(F,ce,mo,Co,io,No,Ct,(e=>e.pipe((0,P.h)((0,G.isOfType)(W.Z.REQUEST_GET_LOUNGE_MEDIA)),(0,D.z)((t=>(0,ae.jp)(e)(t,function(e){let{channelId:t,types:n}=e;return ie.get(`/front/v7/channels/${t}/lounge-media`,{query:{types:n}}).withToken()}(t.payload).run()))))),Ke,Lo,wo,sn,Tn,$e,it,at,dt,Kt,Xt,So,jt,Qn,Rt,po,Gt,yo,Vt,Fe,Ro,Je,_t,je,Po,et,tt,Mo,mt,nt);var ko=n(61364);const xo=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,"avatarUrl",""),(0,E.Z)(this,"configSchemas",[]),(0,E.Z)(this,"description",""),(0,E.Z)(this,"id",""),(0,E.Z)(this,"state",""),(0,E.Z)(this,"title",""),Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])}))}},Ho=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,"appId",""),(0,E.Z)(this,"createdAt",""),(0,E.Z)(this,"description",""),(0,E.Z)(this,"name",""),(0,E.Z)(this,"nameDescI18nMap",{}),(0,E.Z)(this,"paramDefinitions",[]),(0,E.Z)(this,"scope",""),(0,E.Z)(this,"updatedAt",""),Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])}))}getId(){return`${this.appId}-${this.scope}-${this.name}`}getName(e){var t,n,o;return(null===(t=this.nameDescI18nMap)||void 0===t||null===(n=t[e])||void 0===n||null===(o=n.name)||void 0===o?void 0:o.replaceAll(" ",""))??this.name}getDescription(e){var t,n;return(null===(t=this.nameDescI18nMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.description)??this.description}getCommandLine(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return`/${this.getName(e)}${t?" ":""}`}},Go=(0,o.vV)({apps:[],commands:[],selectedCommandId:null,commandInputParams:[],commandInputValues:{},commandInputErrors:{}});var Bo=n(47901);const Qo=(0,o.vV)({bots:{}});var Wo=n(34059);const Fo=(0,o.vV)({channelOperations:new Map});class zo{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,"e164",""),(0,E.Z)(this,"international",""),(0,E.Z)(this,"countryCode",null),(0,E.Z)(this,"national",""),(0,E.Z)(this,"type",""),Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])}))}getKey(){return this.e164}isEmpty(){return!this.e164}}const Vo=(0,o.vV)({defaultBotProfile:new Bo.Z,phoneNumber:new zo});var jo=n(35463);const $o=(0,o.vV)({minimumChannelInfo:{avatarUrl:"",name:"",systemDomain:""},channel:new jo.Z}),Ko={isBlockReplying:!1,inputValue:"",inputHelperText:null},qo=(0,o.vV)({documentWebsiteResources:[]});var Xo=n(48156);const Yo=class{constructor(e){(0,E.Z)(this,o.sc,!0),(0,E.Z)(this,"id",""),(0,E.Z)(this,"userChatId",""),(0,E.Z)(this,"files",[]),(0,E.Z)(this,"uploadedFiles",[]),Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])})),this.files=e.files.map((e=>new class{constructor(e){(0,E.Z)(this,o.sc,!0),(0,E.Z)(this,"id",""),(0,E.Z)(this,"uploadState",ht.Pending),(0,E.Z)(this,"progress",0),(0,E.Z)(this,"file",void 0),Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])})),this.file=e.file}get name(){return this.file.name}getExt(){var e;return((null===(e=this.file)||void 0===e?void 0:e.name)??"").split(".").slice(1).pop()??"default"}getPreviewThumb(){return new Promise(((e,t)=>{var n,o;const r=window.URL.createObjectURL(this.file);if(null!==(n=this.file)&&void 0!==n&&null!==(o=n.type)&&void 0!==o&&o.includes("image")){const n=new Image;n.onload=()=>{const{width:t,height:o}=n;e({url:r,width:t,height:o})},n.onerror=()=>t(),n.src=r}else t()}))}isPreviewable(){var e;return null===(e=this.file)||void 0===e?void 0:e.type.includes("image")}}({id:(0,Xo.Z)(),file:e})))}get hasError(){return this.files.some((e=>e.uploadState===ht.Error))}get isUploading(){return this.files.some((e=>e.uploadState===ht.Uploading))}get progress(){return Math.floor(this.files.reduce(((e,t)=>e+t.progress),0)/(100*this.files.length)*100)}get currentFile(){return this.files.find((e=>e.uploadState!==ht.Success))??this.files[0]}},Jo=(0,o.vV)({fileChunkMap:new Map});var er=n(95913);const tr=(0,o.vV)({followupSchemaList:[]}),nr=(0,o.vV)({hasConstraintError:!1,hasInvalidAccessError:!1,hasNetworkError:!1,hasSessionJWTInvalidError:!1,hasUnavailableServiceError:!1,hasUnclassifiedError:!1}),or=(0,o.vV)({availableLanguages:[],countries:[]}),rr={isIdle:!1},ir=(0,o.vV)({shouldInitializeHome:!0,shouldGetChannelOperations:!0,shouldInitializeUserChatList:!0,shouldGetHome:!0,shouldGetDocumentWebsiteResources:!0});var sr=n(49038);class ar{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,o.sc,!0),(0,E.Z)(this,"id",""),(0,E.Z)(this,"channelId",""),(0,E.Z)(this,"name",""),(0,E.Z)(this,"iconKey",""),(0,E.Z)(this,"language",sr.ZP.EN),(0,E.Z)(this,"pluginTextI18n",{text:"",ko:"",ja:"",en:""}),Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])}))}getKey(){return this.id}get avatarUrl(){return this.iconKey?`${re.NF}/${this.iconKey}`:""}}const lr=(0,o.vV)({appMessengers:{},deeplinkUris:{}});var cr=n(32180);class Er{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,"id",""),(0,E.Z)(this,"mediaType",cr.Z.IMAGE),(0,E.Z)(this,"username",""),(0,E.Z)(this,"caption",""),(0,E.Z)(this,"commentsCount",0),(0,E.Z)(this,"permalink",""),(0,E.Z)(this,"likeCount",0),(0,E.Z)(this,"mediaUrl",""),(0,E.Z)(this,"thumbnailUrl",""),(0,E.Z)(this,"children",void 0),Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])}))}getKey(){return this.id}}const ur=(0,o.vV)({appInstagramPosts:[],loungeMediaTypes:[]});var hr=n(73832);const dr=(0,o.vV)({managers:{},operators:[]});var _r=n(44873),pr=n(45973);const mr=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,"id",""),(0,E.Z)(this,"chatId",""),(0,E.Z)(this,"mode",null),(0,E.Z)(this,"front",new pr.Z),Object.keys(e).forEach((t=>{var n,o;(0,R.e$)(this,t)&&(this[t]=(n=t,o=e[t],"front"===n?new pr.Z(o):o))}))}get isEmpty(){return!this.id}get isAudioMode(){return this.mode===_r.Z.AUDIO}},Sr=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,"chatId",""),(0,E.Z)(this,"meetId",""),(0,E.Z)(this,"title",""),(0,E.Z)(this,"titleAvatarUrl",""),(0,E.Z)(this,"meetMode",void 0),Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])}))}},gr=(0,o.vV)({enableFrontMeet:!1,liveMeet:new mr,meetRing:null}),Tr=class{constructor(){(0,E.Z)(this,o.sc,!0),(0,E.Z)(this,"models",new Map),(0,E.Z)(this,"keyResolver",(e=>e.getKey()))}set(e){const t=this.keyResolver(e);this.models.set(t,e)}get(e){return this.models.get(e)}has(e){return"string"==typeof e?this.models.has(e):this.models.has(this.keyResolver(e))}delete(e){this.models.delete(e)}clear(){this.models.clear()}values(){return Array.from(this.models.values())}keys(){return Array.from(this.models.keys())}get size(){return this.models.size}upsert(e){const t=this.keyResolver(e),n=this.get(t);n&&n.version>e.version||this.set(e)}setModels(e){return this.models=new Map(Object.entries(e)),this}setKeyResolver(e){return this.keyResolver=e,this}},Cr=(0,o.vV)({messages:new Tr,next:"",languageConversionMessageId:""}),Rr={container:null,content:null,isOpened:!1};var fr=n(12022),Ar=n(24122);class Ir{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,"id",""),(0,E.Z)(this,"key",""),(0,E.Z)(this,"channelId",""),(0,E.Z)(this,"name",""),(0,E.Z)(this,"appearance",Ne.u.LIGHT),(0,E.Z)(this,"labelButton",!1),(0,E.Z)(this,"labelButtonText",""),(0,E.Z)(this,"labelButtonTextI18nMap",{}),(0,E.Z)(this,"deskMarginX",0),(0,E.Z)(this,"deskMarginY",0),(0,E.Z)(this,"deskHideButton",!1),(0,E.Z)(this,"mobileMarginX",0),(0,E.Z)(this,"mobileMarginY",0),(0,E.Z)(this,"mobileHideButton",!1),(0,E.Z)(this,"buttonType",Ar.B.IconButton),(0,E.Z)(this,"iconButton","channel-filled"),(0,E.Z)(this,"customImage",null),(0,E.Z)(this,"customImageUrl",""),(0,E.Z)(this,"deskImage",null),(0,E.Z)(this,"deskImageUrl",""),(0,E.Z)(this,"mobileImage",null),(0,E.Z)(this,"mobileImageUrl",""),(0,E.Z)(this,"deskPosition","right"),(0,E.Z)(this,"mobilePosition","right"),(0,E.Z)(this,"mobileBubblePosition","bottom"),Object.keys(e).forEach((t=>{(0,f.q9)(["deskImage","mobileImage"],t)?this[t]=new fr.Z(e[t]):(0,R.e$)(this,t)&&(this[t]=e[t])}))}getKey(){return this.id}isEmpty(){return!this.id}getMargin(){return Un.Z.isMobile?{marginX:this.mobileMarginX,marginY:this.mobileMarginY}:{marginX:this.deskMarginX,marginY:this.deskMarginY}}get legacyImageUrl(){return Un.Z.isMobile?this.mobileImageUrl:this.deskImageUrl}getImage(){return Un.Z.isMobile?this.mobileImage:this.deskImage}getLabelButtonText(e){return this.labelButtonTextI18nMap[e]??this.labelButtonText}getPosition(){return Un.Z.isMobile?this.mobilePosition:this.deskPosition}}const vr={isBooted:!1,plugin:new Ir};var yr=n(37264),Ur=n(90407);const Zr=(0,o.vV)({sessions:new Tr}),Or={socketStatus:"closed"};class br{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,"autoAssign",!1),(0,E.Z)(this,"autoAssignOption",""),(0,E.Z)(this,"channelId",""),(0,E.Z)(this,"channelOperationId",""),(0,E.Z)(this,"createdAt",0),(0,E.Z)(this,"icon",""),(0,E.Z)(this,"id",""),(0,E.Z)(this,"inOperation",!1),(0,E.Z)(this,"managerIds",[]),(0,E.Z)(this,"name",""),(0,E.Z)(this,"removed",!1),(0,E.Z)(this,"updatedAt",0),Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])}))}}const Nr=(0,o.vV)({teams:new Map}),wr=(0,o.vV)({id:"",showOfflineToast:!1,showToast:!1,message:"",icon:null});class Lr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,o.sc,!0),(0,E.Z)(this,"messageId",""),(0,E.Z)(this,"blocks",[]),(0,E.Z)(this,"translating",!1),(0,E.Z)(this,"show",!1),Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])}))}getKey(){return this.messageId??""}get isEmpty(){return(0,f.xb)(this.messageId)}get hasBlocks(){return!(0,f.xb)(this.blocks)}get isShowing(){return this.show}}const Mr=(0,o.vV)({translations:new Map},!0),Pr=new class{getSettingValue(e){const t=In.Z.getItem(e);return!!(0,f.kK)(t)||JSON.parse(t)}setSettingValue(e,t){In.Z.setItem(e,JSON.stringify(t))}};var Dr=n(9694);const kr=(0,o.vV)({appearance:null,currentTabId:(0,Xo.Z)(),managerInfo:new hr.Z,notificationSoundMode:!0,showAllUserChats:!0,showChannelButton:void 0,showMessenger:!1,translationVisibility:Pr.getSettingValue(Yn.Z.TRANSLATION_VISIBILITY),typingManagers:new Map,visibilityState:d.Z.visibilityState,isKeyboardOpen:!1,keyboardHeight:0,tutorialMode:!1,whiteLabelFeature:!1,enableChxUserChatBinding:!1,collapseAlfBanner:new Set,messengerSizeType:Io.A.Default}),xr=(0,o.vV)({lastMessages:(new Tr).setKeyResolver((e=>e.id)),unreadUserChats:new Tr,userChats:new Tr,next:null,enteredUserChatId:"",paramUserChatId:""});var Hr=n(25903);const Gr={user:new Hr.Z},Br=(0,o.vV)({instances:[]});var Qr=n(52785);const Wr=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,"id",""),(0,E.Z)(this,"appId",""),(0,E.Z)(this,"appWidgetId",""),(0,E.Z)(this,"channelId",""),(0,E.Z)(this,"colorVariant",Qr.Z.Default),(0,E.Z)(this,"createdAt",0),(0,E.Z)(this,"description",""),(0,E.Z)(this,"icon",""),(0,E.Z)(this,"name",""),(0,E.Z)(this,"nameDescI18nMap",{}),(0,E.Z)(this,"updatedAt",0),Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])}))}getName(e){var t;return(null===(t=this.nameDescI18nMap[e])||void 0===t?void 0:t.name)||this.name}getDescription(e){var t;return(null===(t=this.nameDescI18nMap[e])||void 0===t?void 0:t.description)||this.description}},Fr=(0,o.vV)({appWidgetInstallations:[]});class zr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,"id",""),(0,E.Z)(this,"revisionId",""),(0,E.Z)(this,"channelId",""),Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])}))}isEmpty(){return(0,f.xb)(this.id)}}class Vr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,E.Z)(this,"message",{blocks:[],buttons:[],files:[],webPage:null,form:void 0}),Object.keys(e).forEach((t=>{(0,R.e$)(this,t)&&(this[t]=e[t])}))}isEmpty(){var e,t,n;return!(null!==(e=this.message.blocks)&&void 0!==e&&e.length||null!==(t=this.message.buttons)&&void 0!==t&&t.length||null!==(n=this.message.files)&&void 0!==n&&n.length||this.message.webPage||this.message.form)}}const jr={commonWorkflow:new zr,commonWorkflowStep:new Vr,commonWorkflowBotName:"",isCommonWorkflowUsingAlf:!1,specificWorkflow:new zr,specificWorkflowStep:new Vr,specificWorkflowBotName:"",isSpecificWorkflowUsingAlf:!1},$r={appCommandReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Go,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_APP_COMMANDS_SUCCESS:return(0,o.ZP)(e,(e=>{e.apps=t.payload.apps.map((e=>new xo(e))),e.commands=t.payload.commands.map((e=>new Ho(e)))}));case W.Z.HYDRATE_COMMAND_INPUT:return(0,o.ZP)(e,(e=>{e.selectedCommandId=t.payload.command.getId(),e.commandInputParams=t.payload.params,e.commandInputValues=t.payload.values}));case W.Z.INITIALIZE_COMMAND_INPUT:return(0,o.ZP)(e,(e=>{e.selectedCommandId=t.payload.command.getId(),e.commandInputParams=t.payload.command.paramDefinitions.filter((e=>e.required)),e.commandInputValues={},e.commandInputErrors={}}));case W.Z.FINALIZE_COMMAND_INPUT:return(0,o.ZP)(e,(e=>{e.selectedCommandId=null,e.commandInputParams=[],e.commandInputValues={},e.commandInputErrors={}}));case W.Z.SET_COMMAND_INPUT_PARAM_VALUE:return(0,o.ZP)(e,(e=>{e.commandInputValues[t.payload.param.name]=t.payload.value}));case W.Z.DELETE_COMMAND_INPUT_PARAM:return(0,o.ZP)(e,(e=>{e.commandInputParams=e.commandInputParams.filter((e=>e.name!==t.payload.param.name)),delete e.commandInputValues[t.payload.param.name],delete e.commandInputErrors[t.payload.param.name]}));case W.Z.ADD_COMMAND_INPUT_PARAM:return(0,o.ZP)(e,(e=>{e.commandInputParams.push(...t.payload.params)}));case W.Z.SET_COMMAND_INPUT_ERRORS:return(0,o.ZP)(e,(e=>{e.commandInputErrors=t.payload.errors}));case W.Z.SET_COMMAND_INPUT_PARAM_ERROR:return(0,o.ZP)(e,(e=>{const n=t.payload.param.name;e.commandInputParams.some((e=>e.name===n))&&(t.payload.error?e.commandInputErrors[t.payload.param.name]=t.payload.error:delete e.commandInputErrors[t.payload.param.name])}));case W.Z.SHUTDOWN:return Go;default:return e}},channelProfileReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_HOME_SUCCESS:return(0,o.ZP)(e,(e=>{e.defaultBotProfile=new Bo.Z(t.payload.bot)}));case W.Z.REQUEST_GET_CHANNEL_PHONE_NUMBER_SUCCESS:return(0,o.ZP)(e,(e=>{e.phoneNumber=new zo(t.payload)}));case W.Z.CLEAR_CHANNEL_PHONE_NUMBER:return(0,o.ZP)(e,(e=>{e.phoneNumber=new zo}));case W.Z.SHUTDOWN:return Vo;default:return e}},appMessengerReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_HOME_SUCCESS:return(0,o.ZP)(e,(e=>{var n;null===(n=t.payload.appMessengers)||void 0===n||n.forEach((t=>{e.appMessengers[t.name]||(e.appMessengers[t.name]=new ar(t))}))}));case W.Z.REQUEST_GET_APP_MESSENGER_DEEP_LINK_SUCCESS:return(0,o.ZP)(e,(e=>{const{name:n,uri:o}=t.payload;e.deeplinkUris[n]=o}));case W.Z.SHUTDOWN:return lr;default:return e}},loungeMediaReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ur,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_HOME_SUCCESS:return(0,o.ZP)(e,(e=>{e.loungeMediaTypes=t.payload.loungeMediaTypes}));case W.Z.REQUEST_GET_LOUNGE_MEDIA_SUCCESS:return(0,o.ZP)(e,(e=>{var n;e.appInstagramPosts=(null===(n=t.payload.loungeMedia[0])||void 0===n?void 0:n.data.map((e=>new Er(e))))??[]}));case W.Z.SHUTDOWN:return ur;default:return e}},popupReducer:yr.ZP,toastReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.SHOW_TOAST:return(0,o.ZP)(e,(e=>{e.id=(0,Xo.Z)(),e.showToast=!0,e.message=t.payload.message??"",e.icon=t.payload.icon??null}));case W.Z.HIDE_TOAST:return(0,o.ZP)(e,(e=>{e.showToast=!1,e.message=""}));case W.Z.SHOW_OFFLINE_TOAST:return(0,o.ZP)(e,(e=>{e.showOfflineToast=!0}));case W.Z.HIDE_OFFLINE_TOAST:return(0,o.ZP)(e,(e=>{e.showOfflineToast=!1}));default:return e}},botsReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_HOME_SUCCESS:return(0,o.ZP)(e,(e=>{var n;[t.payload.bot,null===(n=t.payload.workflow)||void 0===n?void 0:n.bot].forEach((t=>{t&&(e.bots[t.id]=new Bo.Z(t))}))}));case W.Z.REQUEST_GET_UNREAD_USER_CHAT_LIST_SUCCESS:case W.Z.REQUEST_GET_USER_CHAT_LIST_SUCCESS:case W.Z.REQUEST_GET_NEXT_USER_CHAT_LIST_SUCCESS:case W.Z.REQUEST_GET_MESSAGES_SUCCESS:case W.Z.REQUEST_GET_NEXT_MESSAGES_SUCCESS:return(0,o.ZP)(e,(e=>{t.payload.bots.forEach((t=>{e.bots[t.id]=new Bo.Z(t)}))}));case W.Z.RECEIVED_START_TYPING:return(0,o.ZP)(e,(e=>{var n;const o=null===(n=t.payload.refers)||void 0===n?void 0:n.bot;o&&(e.bots[o.id]=new Bo.Z(o))}));case W.Z.REQUEST_CREATE_USER_CHAT_SUCCESS:case W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_SUCCESS:case W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_SUCCESS:case W.Z.REQUEST_GET_USER_CHAT_SUCCESS:case W.Z.REQUEST_GET_POPUP_USER_CHAT_SUCCESS:case W.Z.RECEIVED_PUSH_MESSAGE:case W.Z.RECEIVED_UPDATE_USER:case W.Z.RECEIVED_UPDATE_USER_CHAT:case W.Z.RECEIVED_CREATE_MESSAGE:return(0,o.ZP)(e,(e=>{const n=t.payload.bot;n&&(e.bots[n.id]=new Bo.Z(n))}));case W.Z.SHUTDOWN:return Qo;default:return e}},channelReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_BOOT_SUCCESS:case W.Z.REQUEST_TOUCH_SUCCESS:case W.Z.REQUEST_GET_HOME_SUCCESS:case W.Z.RECEIVED_UPDATE_CHANNEL:return(0,o.ZP)(e,(e=>{e.channel=new jo.Z(t.payload.channel)}));case W.Z.REQUEST_GET_CHANNEL_BY_PLUGIN_KEY_SUCCESS:return(0,o.ZP)(e,(e=>{e.minimumChannelInfo=t.payload}));case W.Z.SHUTDOWN:return $o;default:return e}},channelOperationReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_CHANNEL_OPERATIONS_SUCCESS:return(0,o.ZP)(e,(e=>{e.channelOperations=new Map,t.payload.channelOperations.forEach((t=>{e.channelOperations.set(t.id,new Wo.Z(t))}))}));case W.Z.RECEIVED_CREATE_CHANNEL_OPERATION:case W.Z.RECEIVED_UPDATE_CHANNEL_OPERATION:case W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_SUCCESS:case W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_SUCCESS:case W.Z.REQUEST_CREATE_USER_CHAT_SUCCESS:case W.Z.REQUEST_GET_USER_CHAT_SUCCESS:case W.Z.RECEIVED_UPDATE_USER_CHAT:return(0,o.ZP)(e,(e=>{const{channelOperation:n}=t.payload;n&&e.channelOperations.set(n.id,new Wo.Z(n))}));case W.Z.RECEIVED_DELETE_CHANNEL_OPERATION:return(0,o.ZP)(e,(e=>{e.channelOperations.delete(t.payload.channelOperation.id)}));case W.Z.SHUTDOWN:return Fo;default:return e}},errorReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.SET_HAS_ERROR:return(0,o.ZP)(e,(e=>{Object.entries(t.payload).forEach((t=>{let[n,o]=t;e[n]=o}))}));case W.Z.REQUEST_BOOT_ERROR:case W.Z.REQUEST_TOUCH_ERROR:return!1===t.meta.error?e:(0,o.ZP)(e,(e=>{t.payload.status!==Y.GL.NetworkError?t.payload.status!==Y.GL.Unauthenticated||t.payload.type!==Y.hi.SessionJWTInvalidError?t.payload.status!==Y.GL.Forbidden||t.payload.type!==Y.hi.ConstraintChannelError&&t.payload.type!==Y.hi.ConstraintClientError?t.payload.status!==Y.GL.NotFound?t.payload.status>=500&&t.payload.status<600?e.hasUnavailableServiceError=!0:e.hasUnclassifiedError=!0:e.hasInvalidAccessError=!0:e.hasConstraintError=!0:e.hasSessionJWTInvalidError=!0:e.hasNetworkError=!0}));case W.Z.REQUEST_GET_USER_CHAT_ERROR:case W.Z.REQUEST_GET_MESSAGES_ERROR:case W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_ERROR:case W.Z.REQUEST_GET_WORKFLOW_FROM_ID_ERROR:return!1===t.meta.error?e:(0,o.ZP)(e,(e=>{if(t.payload.status!==Y.GL.NetworkError)return t.payload.status===Y.GL.Forbidden?t.payload.type===Y.hi.ConstraintClientError?void(e.hasConstraintError=!0):void(e.hasInvalidAccessError=!0):t.payload.status===Y.GL.NotFound?"errors"in t.payload&&"user"===t.payload.errors[0].model?void(e.hasConstraintError=!0):void(e.hasInvalidAccessError=!0):void(t.payload.status>=500&&t.payload.status<600?e.hasUnavailableServiceError=!0:e.hasUnclassifiedError=!0);e.hasNetworkError=!0}));case W.Z.REQUEST_GET_HOME_ERROR:case W.Z.REQUEST_GET_USER_CHAT_LIST_ERROR:case W.Z.REQUEST_GET_UNREAD_USER_CHAT_LIST_ERROR:case W.Z.REQUEST_CREATE_USER_CHAT_ERROR:case W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_ERROR:case W.Z.REQUEST_GET_SOCKET_ADDRESS_ERROR:return!1===t.meta.error?e:(0,o.ZP)(e,(e=>{t.payload.status!==Y.GL.NetworkError?t.payload.status===Y.GL.Forbidden&&t.payload.type===Y.hi.ConstraintClientError||t.payload.status===Y.GL.NotFound&&"errors"in t.payload&&"user"===t.payload.errors[0].model?e.hasConstraintError=!0:t.payload.status>=500&&t.payload.status<600?e.hasUnavailableServiceError=!0:e.hasUnclassifiedError=!0:e.hasNetworkError=!0}));case W.Z.RECEIVED_UPDATE_USER:return(0,o.ZP)(e,(e=>{e.hasConstraintError=t.payload.user.constrainted}));case W.Z.CLEAR_ERROR:case W.Z.SHUTDOWN:return nr;default:return e}},i18nReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:or,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_AVAILABLE_LANGUAGES_SUCCESS:return(0,o.ZP)(e,(e=>{e.availableLanguages=t.payload}));case W.Z.REQUEST_GET_COUNTRIES_SUCCESS:return(0,o.ZP)(e,(e=>{e.countries=t.payload}));default:return e}},fileUploadReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.ENQUEUE_FILES_TO_UPLOAD_QUEUE:return(0,o.ZP)(e,(e=>{const{files:n,userChatId:o}=t.payload,r=(0,Xo.Z)();e.fileChunkMap.set(r,new Yo({id:r,files:n,userChatId:o}))}));case W.Z.DEQUEUE_FILES_FROM_UPLOAD_QUEUE:return(0,o.ZP)(e,(e=>{const{fileChunkId:n}=t.payload;e.fileChunkMap.delete(n)}));case W.Z.SET_MEMORY_FILE_STATE:return(0,o.ZP)(e,(e=>{const{fileId:n,fileChunkId:o,state:r}=t.payload,i=e.fileChunkMap.get(o),s=null==i?void 0:i.files.find((e=>e.id===n));s&&(s.uploadState=r)}));case W.Z.SET_FILE_UPLOAD_PROGRESS:return(0,o.ZP)(e,(e=>{const{fileId:n,fileChunkId:o,progress:r}=t.payload,i=e.fileChunkMap.get(o),s=null==i?void 0:i.files.find((e=>e.id===n));s&&(s.progress=r)}));case W.Z.REGISTER_UPLOADED_FILE:return(0,o.ZP)(e,(e=>{const{file:n,fileChunkId:o}=t.payload,r=e.fileChunkMap.get(o);r&&r.uploadedFiles.push(n)}));case W.Z.EXIT_USER_CHAT:case W.Z.SHUTDOWN:return Jo;default:return e}},managersReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_REACTORS_SUCCESS:case W.Z.REQUEST_GET_UNREAD_USER_CHAT_LIST_SUCCESS:case W.Z.REQUEST_GET_USER_CHAT_LIST_SUCCESS:case W.Z.REQUEST_GET_NEXT_USER_CHAT_LIST_SUCCESS:case W.Z.REQUEST_GET_MESSAGES_SUCCESS:case W.Z.REQUEST_GET_NEXT_MESSAGES_SUCCESS:case W.Z.REQUEST_GET_USER_CHAT_SUCCESS:case W.Z.REQUEST_GET_POPUP_USER_CHAT_SUCCESS:return(0,o.ZP)(e,(e=>{t.payload.managers.forEach((t=>{t&&(e.managers[t.id]=new hr.Z(t))}))}));case W.Z.REQUEST_GET_OPERATORS_SUCCESS:return(0,o.ZP)(e,(e=>{e.operators=t.payload.managers.map((e=>new hr.Z(e)))}));case W.Z.REQUEST_GET_HOME_SUCCESS:return(0,o.ZP)(e,(e=>{e.operators=t.payload.operators.map((e=>new hr.Z(e)))}));case W.Z.RECEIVED_UPDATE_USER:case W.Z.RECEIVED_UPDATE_USER_CHAT:case W.Z.RECEIVED_CREATE_SESSION:case W.Z.RECEIVED_PUSH_MESSAGE:return(0,o.ZP)(e,(e=>{const n=t.payload.manager;n&&(e.managers[n.id]=new hr.Z(n))}));case W.Z.SHUTDOWN:return dr;default:return e}},meetReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_LIVE_MEET_SUCCESS:return(0,o.ZP)(e,(e=>{e.liveMeet=new mr(t.payload.liveMeet)}));case W.Z.RECEIVED_UPDATE_LIVE_MEET:return e.liveMeet.id!==t.payload.liveMeet.id?e:(0,o.ZP)(e,(e=>{e.liveMeet=new mr(t.payload.liveMeet)}));case W.Z.RECEIVED_CREATE_MEET_RING:return(0,o.ZP)(e,(e=>{e.meetRing=new Sr(t.payload.meetRing)}));case W.Z.RECEIVED_UPDATE_MEET_SETTING:case W.Z.REQUEST_GET_USER_CHAT_SUCCESS:return(0,o.ZP)(e,(e=>{e.enableFrontMeet=t.payload.meetSetting.enableFront}));case W.Z.REQUEST_REJECT_OUTBOUND_MEET:case W.Z.RECEIVED_DELETE_MEET_RING:return(0,o.ZP)(e,(e=>{e.meetRing=null}));case W.Z.UPSERT_LIVE_MEET:return(0,o.ZP)(e,(e=>{e.meetRing=null,e.liveMeet=new mr(t.payload.liveMeet)}));case W.Z.REQUEST_TERMINATE_LIVE_MEET_SUCCESS:case W.Z.TERMINATE_LIVE_MEET:return(0,o.ZP)(e,(e=>{e.liveMeet=new mr,e.meetRing=null}));case W.Z.SHUTDOWN:return gr;default:return e}},messagesReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_MESSAGES_SUCCESS:return(0,o.ZP)(e,(e=>{e.messages.clear(),t.payload.messages.forEach((t=>{e.messages.upsert(new fe.Z(t))})),e.next=t.payload.next||""}));case W.Z.REQUEST_GET_MESSAGES_ON_RECONNECT_SUCCESS:return(0,o.ZP)(e,(n=>{const o=(e,t)=>e.id<t.id?1:-1,r=t.payload.messages.sort(o)[0],i=Object.values(e.messages).sort(o)[0];(Object.keys(e.messages).length>100||(null==r?void 0:r.id)!==(null==i?void 0:i.id))&&n.messages.clear(),t.payload.messages.forEach((e=>{n.messages.upsert(new fe.Z(e))})),n.next=t.payload.next||""}));case W.Z.REQUEST_GET_NEXT_MESSAGES_SUCCESS:return(0,o.ZP)(e,(e=>{t.payload.messages.forEach((t=>{e.messages.upsert(new fe.Z(t))})),e.next=t.payload.next||""}));case W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_SUCCESS:case W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_SUCCESS:case W.Z.REQUEST_CREATE_USER_CHAT_SUCCESS:return(0,o.ZP)(e,(e=>{e.messages.clear(),e.messages.upsert(new fe.Z(t.payload.message))}));case W.Z.REQUEST_REPLY_USER_CHAT_HANDLING_BUTTONS_SUCCESS:case W.Z.UPSERT_MESSAGE:return(0,o.ZP)(e,(e=>{e.messages.upsert(new fe.Z(t.payload.message))}));case W.Z.REQUEST_POST_FORM_SUBMIT_SUCCESS:return(0,o.ZP)(e,(e=>{const n=new fe.Z(t.payload.message);n.$receivedFromSocket=!0,e.messages.upsert(n)}));case W.Z.REQUEST_CREATE_MESSAGE_ERROR:return(0,o.ZP)(e,(e=>{const n=new fe.Z(t.payload.failedMessage);e.messages.has(n)&&e.messages.set(n)}));case W.Z.DELETE_LOCAL_MESSAGE:return(0,o.ZP)(e,(e=>{e.messages.delete(t.payload.key)}));case W.Z.SET_LANGUAGE_CONVERSION_MESSAGE_ID:return(0,o.ZP)(e,(e=>{e.languageConversionMessageId=t.payload.messageId}));case W.Z.ENTER_USER_CHAT:return(0,o.ZP)(e,(e=>{e.languageConversionMessageId=""}));case W.Z.SHUTDOWN:case W.Z.EXIT_USER_CHAT:return Cr;default:return e}},chatroomInputReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ko,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.SET_CHATROOM_INPUT_VALUE:return(0,o.ZP)(e,(e=>{e.inputValue=t.payload.value}));case W.Z.SET_BLOCK_REPLYING:return(0,o.ZP)(e,(e=>{e.isBlockReplying=t.payload.block}));default:return e}},modalReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.OPEN_MODAL:return{...e,...t.payload,container:t.payload.container??null,isOpened:!0};case W.Z.CLOSE_MODAL:case W.Z.SHUTDOWN:return Rr;default:return e}},pluginReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_BOOT_SUCCESS:return{...e,isBooted:!0,plugin:new Ir(t.payload.plugin)};case W.Z.SHUTDOWN:return vr;default:return e}},sessionsReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_NEXT_USER_CHAT_LIST_SUCCESS:case W.Z.REQUEST_GET_UNREAD_USER_CHAT_LIST_SUCCESS:case W.Z.REQUEST_GET_USER_CHAT_LIST_SUCCESS:return(0,o.ZP)(e,(e=>{t.payload.sessions.forEach((t=>{t&&e.sessions.upsert(new Ur.Z(t))}))}));case W.Z.RECEIVED_CREATE_SESSION:case W.Z.RECEIVED_UPDATE_SESSION:case W.Z.REQUEST_GET_USER_CHAT_SUCCESS:return(0,o.ZP)(e,(e=>{const n=t.payload.session;n&&e.sessions.upsert(new Ur.Z(n))}));case W.Z.RECEIVED_DELETE_SESSION:return(0,o.ZP)(e,(e=>{const n=t.payload.session;e.sessions.delete(n.chatId)}));case W.Z.SHUTDOWN:return Zr;default:return e}},translationsReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_TRANSLATE_MESSAGE:return(0,o.ZP)(e,(e=>{const n=new Lr({messageId:t.payload.messageId,translating:!0});e.translations.set(n.getKey(),n)}));case W.Z.REQUEST_TRANSLATE_MESSAGE_SUCCESS:return(0,o.ZP)(e,(e=>{const{messageId:n,blocks:o}=t.payload,r=e.translations.get(n);r&&(r.blocks=o,r.translating=!1,r.show=!0)}));case W.Z.REQUEST_TRANSLATE_MESSAGE_ERROR:return(0,o.ZP)(e,(e=>{const n=e.translations.get(t.payload.messageId);n&&(n.translating=!1)}));case W.Z.SHOW_TRANSLATED_MESSAGE:return(0,o.ZP)(e,(e=>{const n=e.translations.get(t.payload.messageId);n&&(n.show=!0)}));case W.Z.UNDO_TRANSLATED_MESSAGE:return(0,o.ZP)(e,(e=>{const n=e.translations.get(t.payload.messageId);n&&(n.show=!1)}));case W.Z.SHUTDOWN:case W.Z.EXIT_USER_CHAT:return Mr;default:return e}},uiReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.SET_SHOW_CHANNEL_BUTTON:return(0,o.Uy)(e,(e=>{e.showChannelButton=t.payload.showChannelButton}));case W.Z.SET_SHOW_MESSENGER:return(0,o.Uy)(e,(e=>{e.showMessenger=t.payload.showMessenger}));case W.Z.RECEIVED_START_TYPING:return(0,o.Uy)(e,(e=>{e.typingManagers.set(t.payload.id,t.payload)}));case W.Z.RECEIVED_STOP_TYPING:return(0,o.Uy)(e,(e=>{e.typingManagers.delete(t.payload.id)}));case W.Z.SET_TRANSLATION_VISIBILITY:return(0,o.Uy)(e,(e=>{const{translationVisibility:n}=t.payload;Pr.setSettingValue(Yn.Z.TRANSLATION_VISIBILITY,n),e.translationVisibility=n}));case W.Z.SET_NOTIFICATION_SOUND_MODE:return(0,o.Uy)(e,(e=>{const{notificationSoundMode:n,notificationSoundModeStorageKey:o}=t.payload;Pr.setSettingValue(o,n),e.notificationSoundMode=n}));case W.Z.SET_APPEARANCE:return(0,o.Uy)(e,(e=>{e.appearance=t.payload.appearance}));case W.Z.ENTER_USER_CHAT:return(0,o.Uy)(e,(e=>{e.typingManagers=new Map}));case W.Z.CHANGE_VISIBILITY_STATE:return(0,o.Uy)(e,(e=>{e.visibilityState=t.payload.visibilityState}));case W.Z.SET_KEYBOARD_OPEN:return(0,o.Uy)(e,(e=>{e.isKeyboardOpen=t.payload.show,e.keyboardHeight=t.payload.keyboardHeight??0}));case W.Z.SET_TUTORIAL_MODE:return(0,o.Uy)(e,(e=>{e.tutorialMode=t.payload.tutorialMode}));case W.Z.SET_COLLAPSE_ALF_BANNER:return(0,o.Uy)(e,(e=>{const{collapse:n,userChatId:o}=t.payload;n?e.collapseAlfBanner.add(o):e.collapseAlfBanner.delete(o)}));case W.Z.REQUEST_GET_HOME_SUCCESS:return(0,o.Uy)(e,(e=>{e.whiteLabelFeature=t.payload.whiteLabelFeature,e.enableChxUserChatBinding=t.payload.enableChxUserChatBinding}));case W.Z.SET_MESSENGER_SIZE_TYPE:return(0,o.Uy)(e,(e=>{e.messengerSizeType=t.payload.messengerSizeType}));case W.Z.SHUTDOWN:return kr;case W.Z.RECEIVED_UPDATE_USER_CHAT:return(0,o.Uy)(e,(e=>{const{userChat:n}=t.payload,o=new Dr.Z(n);e.collapseAlfBanner.has(o.id)&&!o.isAlf&&e.collapseAlfBanner.delete(o.id)}));default:return e}},userChatsReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_UNREAD_USER_CHAT_LIST_SUCCESS:return(0,o.ZP)(e,(e=>{var n,o;null===(n=t.payload.userChats)||void 0===n||n.forEach((t=>{e.unreadUserChats.upsert(new Dr.Z(t))})),null===(o=t.payload.messages)||void 0===o||o.forEach((t=>{e.lastMessages.upsert(new fe.Z(t))}))}));case W.Z.REQUEST_GET_USER_CHAT_LIST_SUCCESS:return(0,o.ZP)(e,(e=>{var n,o;e.next=t.payload.next??null,e.userChats.clear(),null===(n=t.payload.userChats)||void 0===n||n.forEach((t=>{e.userChats.upsert(new Dr.Z(t))})),null===(o=t.payload.messages)||void 0===o||o.forEach((t=>{e.lastMessages.upsert(new fe.Z(t))}))}));case W.Z.REQUEST_GET_NEXT_USER_CHAT_LIST_SUCCESS:return(0,o.ZP)(e,(e=>{var n,o;e.next=t.payload.next??null,null===(n=t.payload.userChats)||void 0===n||n.forEach((t=>{e.userChats.upsert(new Dr.Z(t))})),null===(o=t.payload.messages)||void 0===o||o.forEach((t=>{e.lastMessages.upsert(new fe.Z(t))}))}));case W.Z.RECEIVED_UPDATE_USER:case W.Z.RECEIVED_UPDATE_USER_CHAT:case W.Z.REQUEST_GET_USER_CHAT_SUCCESS:case W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_SUCCESS:case W.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_SUCCESS:case W.Z.REQUEST_SWITCH_TO_USER_CHAT_SUCCESS:case W.Z.REQUEST_CREATE_USER_CHAT_SUCCESS:return(0,o.ZP)(e,(e=>{const{userChat:n,message:o}=t.payload;n&&(e.userChats.upsert(new Dr.Z(n)),e.unreadUserChats.upsert(new Dr.Z(n))),o&&e.lastMessages.upsert(new fe.Z(o))}));case W.Z.RECEIVED_UPDATE_MESSAGE:return(0,o.ZP)(e,(e=>{const n=t.payload.message;n&&e.lastMessages.upsert(new fe.Z(n))}));case W.Z.RECEIVED_DELETE_USER_CHAT:return(0,o.ZP)(e,(e=>{const n=t.payload.userChat;n&&(e.userChats.delete(n.id),e.unreadUserChats.delete(n.id))}));case W.Z.ENTER_USER_CHAT:return(0,o.ZP)(e,(e=>{e.enteredUserChatId=t.payload.userChatId}));case W.Z.EXIT_USER_CHAT:return(0,o.ZP)(e,(e=>{e.enteredUserChatId=""}));case W.Z.SET_PARAM_USER_CHAT_ID:return(0,o.ZP)(e,(e=>{e.paramUserChatId=t.payload.userChatId}));case W.Z.RESET_PARAM_USER_CHAT_ID:return(0,o.ZP)(e,(e=>{e.paramUserChatId=""}));case W.Z.SHUTDOWN:return xr;default:return e}},userReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_BOOT_SUCCESS:case W.Z.REQUEST_TOUCH_SUCCESS:case W.Z.RECEIVED_UPDATE_USER:case W.Z.REQUEST_UPDATE_USER_SUCCESS:case W.Z.REQUEST_GET_USER_SUCCESS:return(0,o.ZP)(e,(e=>{(e.user.isEmpty()||e.user.version<=t.payload.user.version)&&(e.user=new Hr.Z(t.payload.user))}));case W.Z.SHUTDOWN:return Gr;default:return e}},socketReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Or,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.SOCKET_READY:return{...e,socketStatus:ve};case W.Z.SOCKET_DISCONNECTED:return{...e,socketStatus:ye};case W.Z.SHUTDOWN:return Or;default:return e}},idleDetectorReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.ENTER_IDLE:return{...e,isIdle:!0};case W.Z.ENTER_ACTIVE:return{...e,isIdle:!1};case W.Z.SHUTDOWN:return rr;default:return e}},followupSchemaReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_FOLLOW_UP_SCHEMAS_SUCCESS:return(0,o.ZP)(e,(e=>{e.followupSchemaList=(t.payload.profileSchemas??[]).map((e=>new er.Z(e)))}));case W.Z.SHUTDOWN:return tr;default:return e}},wamModalReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Br,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.OPEN_WAM_MODAL:return(0,o.ZP)(e,(e=>{e.instances=[...e.instances,{id:(0,ae.zs)(16),appId:t.payload.appId,name:t.payload.name,wamArgs:t.payload.wamArgs,accessToken:t.payload.accessToken,refreshToken:t.payload.refreshToken}]}));case W.Z.CLOSE_WAM_MODAL:return(0,o.ZP)(e,(e=>{e.instances=e.instances.filter((e=>e.id!==t.payload.id))}));case W.Z.SHUTDOWN:return Br;default:return e}},workflowReducer:function(){var e,t,n,o,r,i;let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jr,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case W.Z.REQUEST_GET_HOME_SUCCESS:return{...s,isCommonWorkflowUsingAlf:(null===(e=a.payload.workflow)||void 0===e?void 0:e.useAlf)??!1,commonWorkflow:new zr(null===(t=a.payload.workflow)||void 0===t?void 0:t.workflow),commonWorkflowBotName:(null===(n=a.payload.workflow)||void 0===n||null===(o=n.bot)||void 0===o?void 0:o.name)??"",commonWorkflowStep:new Vr({message:(null===(r=a.payload.workflow)||void 0===r?void 0:r.message)||{}})};case W.Z.REQUEST_GET_WORKFLOW_FROM_ID_SUCCESS:return{...s,isSpecificWorkflowUsingAlf:a.payload.useAlf??!1,specificWorkflow:new zr(a.payload.workflow),specificWorkflowBotName:(null===(i=a.payload.bot)||void 0===i?void 0:i.name)??"",specificWorkflowStep:new Vr({message:a.payload.message||{}})};default:return s}},teamReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.RECEIVED_UPDATE_USER_CHAT:case W.Z.REQUEST_GET_USER_CHAT_SUCCESS:case W.Z.REQUEST_CREATE_USER_CHAT_SUCCESS:return(0,o.Uy)(e,(e=>{const n=t.payload.team;n&&e.teams.set(n.id,new br(n))}));case W.Z.SHUTDOWN:return Nr;default:return e}},appWidgetInstallationReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_HOME_SUCCESS:return(0,o.ZP)(e,(e=>{e.appWidgetInstallations=t.payload.appWidgetInstallations.map((e=>new Wr(e)))}));case W.Z.SHUTDOWN:return Fr;default:return e}},initializeReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ir,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.SET_SHOW_MESSENGER:return(0,o.ZP)(e,(e=>{t.payload.showMessenger&&(e.shouldInitializeHome=!0,e.shouldInitializeUserChatList=!0,e.shouldGetHome=!0)}));case W.Z.SOCKET_RECONNECTED:return(0,o.ZP)(e,(e=>{e.shouldInitializeHome=!0,e.shouldGetHome=!0,e.shouldGetChannelOperations=!0,e.shouldGetDocumentWebsiteResources=!0}));case W.Z.INITIALIZE_HOME_SUCCESS:return(0,o.ZP)(e,(e=>{e.shouldInitializeHome=!1}));case W.Z.INITIALIZE_USER_CHAT_LIST_SUCCESS:return(0,o.ZP)(e,(e=>{e.shouldInitializeUserChatList=!1}));case W.Z.REQUEST_GET_HOME_SUCCESS:return(0,o.ZP)(e,(e=>{e.shouldGetHome=!1}));case W.Z.REQUEST_GET_CHANNEL_OPERATIONS_SUCCESS:return(0,o.ZP)(e,(e=>{e.shouldGetChannelOperations=!1}));case W.Z.REQUEST_GET_DOCUMENT_WEBSITE_RESOURCES_SUCCESS:return(0,o.ZP)(e,(e=>{e.shouldGetDocumentWebsiteResources=!1}));default:return e}},documentReducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case W.Z.REQUEST_GET_DOCUMENT_WEBSITE_RESOURCES_SUCCESS:return(0,o.ZP)(e,(e=>{e.documentWebsiteResources=t.payload.websiteUrls.map((e=>new RegExp(e)))}));case W.Z.SHUTDOWN:return qo;default:return e}}},Kr=(0,u.UY)($r),qr=new class{getMiddlewares(){const e=[ko.Z,this.epicMiddleware];if((0,Z.yG)()){const t=n(19770).createLogger({collapsed:!0});e.push(t)}return e}constructor(){(0,E.Z)(this,"epicMiddleware",(0,h.k)({dependencies:{}})),(0,E.Z)(this,"composeEnhancers",(0,Z.yG)()&&d.Z.topmostWindow.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||u.qC),(0,E.Z)(this,"store",(0,u.MT)(Kr,this.composeEnhancers((0,u.md)(...this.getMiddlewares())))),U.setStore(this.store),this.epicMiddleware.run(Do)}getStore(){return this.store}dispatch(e){return this.store.dispatch(e)}getState(){return this.store.getState()}};var Xr=n(95197),Yr=n(644),Jr=n(79892),ei=n(45208);const{isMobile:ti}=Un.Z,{topmostWindow:ni}=d.Z;function oi(e){return ni.matchMedia(`(prefers-color-scheme: ${e})`)}function ri(e){switch(e){case Ne.u.SYSTEM:return oi("dark").matches;case Ne.u.DARK:return!0;case Ne.u.LIGHT:default:return!1}}const ii=function(e){let{children:t}=e;const n=(0,s.v9)(T.Z.channelProfileSelectors.channelProfileTheme,s.wU),o=(0,s.v9)(T.Z.uiSelectors.getAppearance),[i,a]=(0,r.useState)(ri(o)),l=(0,r.useCallback)((e=>{a(e.matches)}),[]);(0,r.useEffect)((function(){a(ri(o))}),[o]),(0,r.useEffect)((function(){if(o===Ne.u.SYSTEM){const e=oi("dark");return e.addEventListener("change",l),function(){e.removeEventListener("change",l)}}return()=>{}}),[l,o]);const c=(0,r.useMemo)((()=>i?Jr.Z:Jr.I),[i]),E=(0,r.useMemo)((()=>{const e=n.color||"#4E66FF",t=n.gradientColor||"#5F4EFF",o=Yr.R.invisibleInTheme(n.brightness,i),r=Yr.R.getTextColor({brightness:n.brightness,foundation:c}),s=Yr.R.getMessageBubbleBackground({darkMode:i,color:e,brightness:n.brightness,foundation:c}),a=n.borderColor||"#465BE5",l=Yr.R.getIconColor({darkMode:i,brightness:n.brightness,color:e,foundation:c});return{darkMode:i,color:e,gradientColor:t,textColor:r,bubbleBackgroundColor:s,borderColor:a,useFallbackColor:o,brightness:n.brightness,iconColor:l}}),[n.borderColor,n.brightness,n.color,n.gradientColor,i,c]),u=(0,r.useMemo)((()=>{const e=ti?"65.625%":"62.5%";return{...c,...E,global:{html:{fontSize:e}}}}),[E,c]);return r.createElement(ei.Z,{foundation:u},r.createElement(Ao.ZL,{foundation:u}),t)};var si=n(37132),ai=n(94046);const{isAndroidPhone:li}=Un.Z,ci=function(){const e=(0,s.I0)(),{closeModal:t}=(0,ai.Z)(),n=(0,r.useRef)([]),o=(0,s.v9)(T.Z.uiSelectors.showMessenger),i=(0,s.v9)(T.Z.modalSelectors.isOpened),a=(0,r.useCallback)((()=>{n.current.forEach((e=>{e.destroy()})),n.current=[],i?t():e(p.Z.uiActions.setShowMessenger({showMessenger:!1}))}),[e,i,t]);return(0,r.useEffect)((()=>{if(!("CloseWatcher"in window&&o&&li&&(0,Z.N0)()))return()=>{};const e=[window,d.Z.topmostWindow].map((e=>{const t=new e.CloseWatcher;return t.addEventListener("close",a),t}));return n.current=e,()=>{e.forEach((e=>{e.destroy()}))}}),[a,o]),null};function Ei(e,t){const n=(0,r.useRef)(e);return t&&(n.current=e),n.current}function ui(e){const[t,n]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{e&&n(!0)}),[e]),{render:t,onAnimationEnd:(0,r.useCallback)((()=>{e||n(!1)}),[e])}}var hi=n(43729),di=n(16918),_i=n(77202),pi=n(36198),mi=n(86262),Si=n(86548);const gi=()=>wt.Z.getDate().getTime();var Ti=n(10919),Ci=n(63445),Ri=n(35437);const fi=Ri.ZP.a.withConfig({displayName:"LiveMeetBannerstyled__Wrapper",componentId:"ch-front__sc-1i7ddnr-0"})(["cursor:pointer;display:flex;gap:4px;align-items:center;justify-content:space-between;width:100%;height:100%;padding:0 12px;"," color:var(--inverted-txt-black-darkest,rgba(255,255,255,80%));"],Ci.ZT.Size13),Ai=Ri.ZP.div.withConfig({displayName:"LiveMeetBannerstyled__State",componentId:"ch-front__sc-1i7ddnr-1"})(["display:flex;gap:4px;align-items:center;justify-content:center;font-weight:bold;& svg{color:var(--inverted-bgtxt-cobalt-normal,#47c8ff);}"]);function Ii(){const{translate:e}=(0,Ti.Z)(),t=(0,s.I0)(),n=(0,s.v9)(T.Z.meetSelectors.getHasLiveMeet),o=(0,s.v9)(T.Z.meetSelectors.getEngagedAt),i=(0,s.v9)(T.Z.meetSelectors.isAudioMode),a=(0,s.v9)(T.Z.meetSelectors.getLiveMeetChatId),l=function(e){let{start:t,interval:n=Si.WT,getCurrent:o=gi}=e;const i=(0,r.useRef)(),[s,a]=(0,r.useState)(t?o()-t:0);return(0,r.useEffect)((()=>void 0===t?()=>{}:(i.current=window.setInterval((()=>{a(o()-t)}),n),()=>{window.clearInterval(i.current)})),[n,t,o]),s}({start:o}),c=Ei({sourceIcon:i?hi.V:di.V},n);return r.createElement(fi,{onClick:e=>{e.preventDefault(),mi.Z.focus(),t(p.Z.userChatActions.goUserChat({userChatId:a}))},href:(0,eo.ID)(a)},r.createElement(Ai,null,r.createElement(_i.J,{source:c.sourceIcon,size:pi.J.XS}),e("ch.meet.ongoing")),o&&(0,Si.LU)(l))}var vi=n(71303),yi=n(3704),Ui=n(79845);const Zi=Ri.ZP.div.withConfig({displayName:"MeetRingBannerstyled__MeetRingBanner",componentId:"ch-front__sc-1k4wozn-0"})(["display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;height:100%;padding:20px;"]),Oi=Ri.ZP.div.withConfig({displayName:"MeetRingBannerstyled__Information",componentId:"ch-front__sc-1k4wozn-1"})([""]),bi=Ri.ZP.div.withConfig({displayName:"MeetRingBannerstyled__Title",componentId:"ch-front__sc-1k4wozn-2"})([""," font-weight:bold;color:var(--inverted-txt-black-darkest,rgba(255,255,255,80%));"],Ui.ZT.PxSize17),Ni=Ri.ZP.div.withConfig({displayName:"MeetRingBannerstyled__Description",componentId:"ch-front__sc-1k4wozn-3"})(["display:flex;gap:6px;align-items:center;margin-top:2px;"," color:var(--inverted-txt-black-darker,rgba(255,255,255,60%));"],Ui.ZT.PxSize13),wi=Ri.ZP.div.withConfig({displayName:"MeetRingBannerstyled__Buttons",componentId:"ch-front__sc-1k4wozn-4"})(["display:flex;gap:8px;"]),Li=Ri.ZP.button.withConfig({displayName:"MeetRingBannerstyled__Button",componentId:"ch-front__sc-1k4wozn-5"})(["cursor:pointer;display:flex;align-items:center;justify-content:center;width:44px;height:44px;color:var(--bgtxt-absolute-white-dark,#fff);border-radius:22px;"]),Mi=(0,Ri.ZP)(Li).withConfig({displayName:"MeetRingBannerstyled__Decline",componentId:"ch-front__sc-1k4wozn-6"})(["background:var(--bgtxt-red-normal,#e94e58);"]),Pi=(0,Ri.ZP)(Li).withConfig({displayName:"MeetRingBannerstyled__Accept",componentId:"ch-front__sc-1k4wozn-7"})(["background:var(--bgtxt-cobalt-normal,#329be7);"]);function Di(){const{translate:e}=(0,Ti.Z)(),t=(0,s.I0)(),n=(0,s.v9)(T.Z.meetSelectors.getMeetRing),o=(0,r.useRef)(!1),i=null==n?void 0:n.meetMode,a=i===_r.Z.AUDIO,l=a?hi.V:di.V,c=e(a?"ch.meet.type.audio":"ch.meet.type.video"),E=Ei({title:null==n?void 0:n.title,iconSource:l,modeText:c},!!n);return r.createElement(Zi,null,r.createElement(Oi,null,r.createElement(bi,null,null==E?void 0:E.title),r.createElement(Ni,null,r.createElement(_i.J,{source:E.iconSource,size:pi.J.XS}),E.modeText)),r.createElement(wi,null,r.createElement(Mi,{onClick:()=>{n&&!o.current&&(t(p.Z.meetActions.requestRejectOutboundMeet({meetId:n.meetId,userChatId:n.chatId})),o.current=!0)}},r.createElement(_i.J,{source:vi.C,size:pi.J.S})),r.createElement(Pi,{onClick:()=>{n&&!o.current&&(mi.Z.openMeetBox({mode:i,userChatId:n.chatId,meetId:n.meetId}),t(p.Z.uiActions.setShowMessenger({showMessenger:!0})),t(p.Z.userChatActions.goUserChat({userChatId:n.chatId})),o.current=!0)}},r.createElement(_i.J,{source:yi.C,size:pi.J.S}))))}var ki=n(74117),xi=n(50056);const Hi=(0,Ri.iv)(["transform:translateX(-50%) translateY(-12px);opacity:0.01;backdrop-filter:blur(5px);"]),Gi=(0,Ri.iv)(["transform:translateX(-50%) translateY(0);opacity:1;backdrop-filter:blur(5px);"]),Bi=(0,Ri.F4)(["from{","}to{","}"],Hi,Gi),Qi=(0,Ri.F4)(["from{","}to{","}"],Gi,Hi),Wi=(0,Ri.iv)(["animation-duration:","ms;animation-timing-function:cubic-bezier(0.3,0,0,1);"],xi.sK),Fi=(0,Ri.iv)(["animation-name:",";animation-fill-mode:backwards;",""],Bi,Wi),zi=(0,Ri.iv)(["animation-name:",";animation-fill-mode:both;",""],Qi,Wi),Vi=Ri.ZP.div.withConfig({displayName:"MeetBannerContainerstyled__Container",componentId:"ch-front__sc-16twdjs-0"})(["position:fixed;z-index:",";top:10px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;background:var(--inverted-bg-lounge,rgba(36,36,40,90%));backdrop-filter:blur(5px);transition-timing-function:cubic-bezier(0.3,0,0,1);transition-duration:0.3s;transition-property:width,height,border-radius;",""],ki.Z.MEET_BANNER,(e=>{let{show:t}=e;return t?Fi:zi}));function ji(){const e=(0,s.v9)(T.Z.uiSelectors.isKeyboardOpen),t=(0,s.v9)(T.Z.uiSelectors.getKeyboardHeight),n=(0,s.v9)(T.Z.meetSelectors.getHasLiveMeet),o=(0,s.v9)(T.Z.meetSelectors.hasRing),i=n||o,{render:a,onAnimationEnd:l}=ui(i),c=Ei({Content:o?r.createElement(Di,null):r.createElement(Ii,null),width:o?"calc(100% - 20px)":190,height:o?84:40,borderRadius:20},i);return a?r.createElement(Vi,{style:{width:c.width,height:c.height,borderRadius:c.borderRadius,transform:`translateX(-50%) translateY(${e?t:0}px)`},show:i,onAnimationEnd:l},c.Content):null}var $i=n(81739),Ki=n(90681);const qi=Ri.F4`
|
||
from {
|
||
opacity: 0;
|
||
}
|
||
|
||
to {
|
||
opacity: 1;
|
||
}
|
||
`,Xi=()=>$i.iv`
|
||
animation: ${qi} 0.3s ease-in;
|
||
`,Yi=$i.zo.div.withConfig({displayName:"Toaststyled__Toast",componentId:"ch-front__sc-19oj1gq-0"})(["position:relative;top:30px;display:flex;align-items:flex-start;max-width:460px;min-height:46px;padding:10px 14px;"," font-weight:bold;color:",";background:",";backdrop-filter:blur(30px);border-radius:22px;",""],Ci.ZT.Size14,(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bgtxt-absolute-white-dark"]}),(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-black-darker"]}),Xi),Ji=$i.zo.div.withConfig({displayName:"LoaderToast__Wrapper",componentId:"ch-front__sc-a219cb-0"})(["position:relative;top:46px;width:40px;height:40px;color:",";border-radius:10px;"," ",""],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-darkest"]}),(e=>{let{foundation:t}=e;return null==t?void 0:t.elevation.ev4()}),Xi),es=function(){return r.createElement(Ji,null,r.createElement(Ki.Z,{size:16,top:12,bottom:12,right:12,left:12,strokeWidth:2}))};var ts=n(97050);const ns=function(e){let{children:t,hasDuration:n=!1}=e;const o=(0,s.I0)(),i=(0,ts.Z)();return(0,r.useEffect)((function(){n&&i((()=>{o(p.Z.toastActions.hideToast())}),3e3)}),[o,n,i]),r.createElement(Yi,null,t)},os=$i.zo.div.withConfig({displayName:"ToastContainerstyled__ToastContainer",componentId:"ch-front__sc-1riea3h-0"})(["position:fixed;top:0;right:0;left:0;z-index:",";display:flex;justify-content:center;padding:0 16px;pointer-events:none;> *{pointer-events:auto;}"],ki.Z.TOAST),rs=(0,$i.zo)(_i.J).withConfig({displayName:"ToastContainerstyled__ToastIcon",componentId:"ch-front__sc-1riea3h-1"})(["align-self:start;opacity:0.6;"]),is=$i.zo.div.withConfig({displayName:"ToastContainerstyled__ToastText",componentId:"ch-front__sc-1riea3h-2"})(["margin:4px 0;",""],(0,xi.LH)(2,Ui.FH.Lh18)),ss=function(){const e=(0,s.v9)(T.Z.toastSelectors.showOfflineToast),t=(0,s.v9)(T.Z.toastSelectors.showToast),n=(0,s.v9)(T.Z.toastSelectors.id),o=(0,s.v9)(T.Z.toastSelectors.message),i=(0,s.v9)(T.Z.socketSelectors.getSocketStatus),a=(0,s.v9)(T.Z.toastSelectors.icon),{translate:l}=(0,Ti.Z)(),c=(0,r.useMemo)((()=>e?r.createElement(ns,null,r.createElement(_i.J,{marginTop:3,marginBottom:3,marginRight:6,source:z.E,size:pi.J.S,color:"bgtxt-absolute-white-light"}),r.createElement(is,null,l("ch.error.offline.title"))):t?r.createElement(ns,{key:n,hasDuration:!0},a&&r.createElement(rs,{marginTop:3,marginBottom:3,marginRight:6,source:a,size:pi.J.S,color:"bgtxt-absolute-white-light","aria-hidden":"true"}),r.createElement(is,null,o)):i===ye?r.createElement(es,null):null),[e,t,i,l,n,a,o]);return r.createElement(os,null,c)};var as=n(13291);const ls=$i.zo.button.withConfig({displayName:"FixedCloseButton__Wrapper",componentId:"ch-front__sc-hlbjxw-0"})(["position:fixed;top:20px;right:16px;z-index:",";display:flex;align-items:center;justify-content:center;width:32px;height:32px;cursor:pointer;background-color:var(--bg-black-lighter);border-radius:50%;",""],ki.Z.CLOSE_BUTTON,(e=>{let{showAbsoluteColor:t}=e;return t&&$i.iv`
|
||
background-color: var(--bgtxt-absolute-black-lighter);
|
||
`}));function cs(){const e=(0,s.I0)(),t=!!(0,Xr.bS)("/home"),n=!!(0,Xr.bS)("/user-chats"),o=!!(0,Xr.bS)("/setting"),i=!!(0,Xr.bS)("/setting/edit");if(!(t||n||o||i))return null;const a=t;return r.createElement(ls,{showAbsoluteColor:a,onClick:()=>{e(p.Z.uiActions.setShowMessenger({showMessenger:!1}))},type:"button","data-ch-testid":"fixed-close-button"},r.createElement(_i.J,{source:vi.C,size:pi.J.S,color:a?"bgtxt-absolute-white-dark":"txt-black-dark"}))}const Es=$i.zo.div.withConfig({displayName:"Backgroundstyled__Background",componentId:"ch-front__sc-qd2sn8-0"})(["position:fixed;display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:url('https://cdn.channel.io/plugin/images/standalone-pattern-bg.png') repeat;background-size:460px 864px;"]),us=function(e){let{children:t}=e;return r.createElement(Es,null,t)};var hs=n(23817);const{isMobile:ds}=Un.Z,_s=function(e){let{children:t}=e;const n=(0,s.v9)(T.Z.uiSelectors.showMessenger),o=e=>{as.Z.setDOMNodes({layoutContainer:e})};return ds?(0,Z.N0)()?r.createElement(hs.XS,{ref:o,showMessenger:n,onClick:eo.UW},t,r.createElement(cs,null)):r.createElement(hs.JL,{className:"notranslate",ref:o},t):(0,Z.N0)()?r.createElement(hs.i7,{ref:o},t):r.createElement(us,null,r.createElement(hs.Rk,{className:"notranslate",ref:o},t))};var ps=n(63730);const ms=function(e){let{enabled:t,container:n}=e;(0,r.useEffect)((function(){return t?n?(Fn.Z.disableBodyScrollForModal(),()=>{Fn.Z.enableBodyScrollForModal()}):(Fn.Z.disableMessengerBodyScroll(),()=>{Fn.Z.enableMessengerBodyScroll()}):()=>{}}),[n,t])},Ss=function(e){let{target:t,children:n}=e;return r.createElement(Ri.LC,{target:t},r.createElement(r.Fragment,null,n))},{topmostDocument:gs,rootElement:Ts}=d.Z,Cs=function(){const e=(0,s.v9)(T.Z.modalSelectors.isOpened),t=(0,s.v9)(T.Z.modalSelectors.content),n=(0,s.v9)(T.Z.modalSelectors.container),o=as.Z.layoutContainer,i=as.Z.shadowRootWrapper??gs.body,a=n??o??Ts;ms({enabled:e,container:n});const l=ps.createPortal(t,a),c=n&&l,E=!n&&l;return r.createElement(r.Fragment,null,r.createElement(Ss,{target:i},e&&c),e&&E)};var Rs=n(67346),fs=n(41860),As=n(92207),Is=n(45417),vs=n(17050),ys=n(43431),Us=n(49438);const Zs=(0,$i.zo)(Us.R).attrs({size:16}).withConfig({displayName:"NavigationBadge__Alert",componentId:"ch-front__sc-2sncpz-0"})(["position:absolute;top:-4px;left:15px;padding:0 5px;"]),Os=(0,$i.zo)(Us.E).withConfig({displayName:"NavigationBadge__Unread",componentId:"ch-front__sc-2sncpz-1"})(["position:absolute;top:-1px;right:-2px;"]),bs=function(){const e=(0,s.v9)(T.Z.userSelectors.getUserAlertWithPlus),t=(0,s.v9)(T.Z.userSelectors.getUserUnread);return e?r.createElement(Zs,null,r.createElement(ys.Z,{typo:Ci.ZT.Size11},e)):t?r.createElement(Os,null):null};var Ns=n(94722);const ws=function(){const e=(0,s.v9)(T.Z.errorSelectors.hasAPIError),{translate:t}=(0,Ti.Z)(),n=(0,Xr.s0)(),o=e=>{e.preventDefault(),n(e.currentTarget.getAttribute("href")||"",{replace:!0})},i=!!(0,Xr.bS)("/home"),a=!!(0,Xr.bS)("/user-chats"),l=!!(0,Xr.bS)("/setting");return Tt.ZP.isFollowUpLink||!(i||a||l)||e?null:r.createElement(Ns.vx,null,r.createElement(Ns.rU,{selected:i,onClick:o,href:"/home"},r.createElement(_i.J,{source:i?Rs.H:fs.H}),r.createElement(Ns.J$,{typo:Ci.ZT.Size12},t("ch.tab_title.lounge"))),r.createElement(Ns.rU,{selected:a,onClick:o,href:"/user-chats"},r.createElement(Ns.a1,null,r.createElement(_i.J,{source:a?As.C:Is.C}),r.createElement(bs,null)),r.createElement(Ns.J$,{typo:Ci.ZT.Size12},t("ch.tab_title.user_chats"))),r.createElement(Ns.rU,{selected:l,onClick:o,href:"/setting"},r.createElement(_i.J,{source:vs.S}),r.createElement(Ns.J$,{typo:Ci.ZT.Size12},t("ch.tab_title.setting"))))};var Ls=n(87893);function Ms(e){return e.type===le.Close?!e.attributes.wamEvent||Ms(e.attributes.wamEvent):e.type===le.Command?(0,f.HD)(e.attributes.appId)&&(0,f.HD)(e.attributes.name)&&(0,f.PO)(e.attributes.params):e.type===le.OnAuthTokenUpdated&&(0,f.HD)(e.attributes.access_token)&&(0,f.hj)(e.attributes.expires_at)&&(0,f.hj)(e.attributes.expires_in)&&(0,f.HD)(e.attributes.refresh_token)&&(0,f.hj)(e.attributes.refresh_token_expires_at)&&(0,f.hj)(e.attributes.refresh_token_expires_in)&&Array.isArray(e.attributes.scope)&&(0,f.HD)(e.attributes.token_type)}var Ps=n(30462);const Ds=$i.iv`
|
||
overflow: hidden;
|
||
align-items: flex-end;
|
||
`,ks=Ri.F4`
|
||
from {
|
||
transform: translateY(33%);
|
||
}
|
||
|
||
to {
|
||
transform: translate(0);
|
||
}
|
||
`,xs=(0,$i.zo)(Ps.Z).withConfig({displayName:"WamModalstyled__Popover",componentId:"ch-front__sc-btvs0f-0"})(["overflow:hidden;width:100%;height:",";border-radius:30px 30px 0 0;box-shadow:0 -4px 12px rgba(0,0,0,10%);",""],Ao.ns,(()=>$i.iv`
|
||
animation: ${ks} 0.3s ease;
|
||
`)),Hs=$i.zo.iframe.withConfig({displayName:"WamModalstyled__Frame",componentId:"ch-front__sc-btvs0f-1"})(["width:100%;height:100%;border:none;"]),Gs=function(e){let{instance:t}=e;const n=(0,s.I0)(),o=(0,Ls.Z)().id,{systemLanguage:i}=(0,s.v9)(T.Z.userSelectors.getUser),a=ri((0,s.v9)(T.Z.uiSelectors.getAppearance)),l=(0,s.v9)(T.Z.wamModalSelectors.isWamModalOpened);(0,r.useEffect)((()=>{var e;l&&(null===(e=as.Z.textAreaNode)||void 0===e||e.blur())}),[l]);const c={wamArgs:t.wamArgs,agentArgs:{wamId:t.id,language:i,appearance:a?"dark":"light"},primitive:{wamName:t.name,channelId:o,appId:t.appId,accessToken:t.accessToken,refreshToken:t.refreshToken}},E=(0,r.useCallback)((()=>{n(p.Z.wamModalActions.closeWamModal({id:t.id}))}),[n,t.id]);return(0,r.useEffect)((()=>{function e(e){const{data:o}=e;if(o.wamId!==t.id)return;if(!Ms(o))return;const{appId:r}=t;n(p.Z.appCommandActions.executeWamEvent({appId:r,wamEvent:o}))}return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}}),[n,t]),r.createElement(xs,{modalInterpolation:Ds,onBackdropClick:E},r.createElement(Hs,{src:`${re.m$}/public/wam-controller/v1?wam_data=${encodeURIComponent(JSON.stringify(c))}`}))},{rootElement:Bs}=d.Z,Qs=function(){const e=(0,s.v9)(T.Z.wamModalSelectors.getWamModalInstances),t=e.length>0,n=as.Z.layoutContainer??Bs;return ms({enabled:t}),t?ps.createPortal(e.map((e=>r.createElement(Gs,{key:e.id,instance:e}))),n):null},{isMac:Ws,isSafari:Fs}=Un.Z,{topmostDocument:zs}=d.Z,{isTouchableDevice:Vs}=Un.Z,{topmostWindow:js}=d.Z;function $s(){var e;return(null===(e=js.visualViewport)||void 0===e?void 0:e.height)??js.innerHeight}const Ks=function(e){let{children:t}=e;const n=St.Z.getHistory(),[o,i]=(0,r.useState)({action:n.action,location:n.location});return function(){const e=(0,s.v9)(T.Z.uiSelectors.getcurrentTabId),t=(0,s.I0)(),{id:n}=(0,Ls.Z)(),o=(0,r.useCallback)((()=>{const t=(0,Mn.xn)(n);In.Z.setItem(t,e)}),[n,e]),i=(0,r.useCallback)((()=>{if(d.Z.visibilityState===Zn.Z.VISIBLE)return t(p.Z.uiActions.changeVisibilityState({visibilityState:Zn.Z.VISIBLE})),o(),void t(p.Z.socketActions.checkConnection());d.Z.visibilityState===Zn.Z.HIDDEN&&t(p.Z.uiActions.changeVisibilityState({visibilityState:Zn.Z.HIDDEN}))}),[t,o]);(0,r.useEffect)((function(){return d.Z.currentDocument.addEventListener("visibilitychange",i),function(){d.Z.currentDocument.removeEventListener("visibilitychange",i)}}),[i]),(0,r.useEffect)((function(){d.Z.visibilityState===Zn.Z.VISIBLE&&o()}),[o])}(),function(){const e=(0,s.I0)(),t=(0,s.v9)(T.Z.uiSelectors.showMessenger),n=(0,r.useRef)($s()),o=(0,r.useCallback)((()=>{const t=$s();Math.abs(t-n.current)>180&&e(p.Z.uiActions.setKeyboardOpen({show:t<n.current,keyboardHeight:n.current-t})),n.current=t}),[e]);(0,r.useEffect)((function(){return Vs&&t&&js.visualViewport?(js.visualViewport.addEventListener("resize",o),function(){js.visualViewport&&js.visualViewport.removeEventListener("resize",o)}):()=>{}}),[e,o,t])}(),function(){const e=(0,s.I0)(),t=(0,Ls.Z)(),n=(0,Mn.MI)(t.id),o=(0,r.useCallback)((()=>{wn.mutePlay(),zs.removeEventListener("click",o)}),[]);(0,r.useEffect)((function(){if(Ws&&Fs)return zs.addEventListener("click",o),function(){zs.removeEventListener("click",o)}}),[o]),(0,r.useEffect)((()=>{e(p.Z.uiActions.setNotificationSoundMode({notificationSoundMode:Pr.getSettingValue(n),notificationSoundModeStorageKey:n}))}),[e,n])}(),function(){const e=St.Z.getHistory(),t=(0,s.I0)(),n=(0,r.useRef)(!1),o=(0,r.useCallback)((e=>{const n=(0,Xr.LX)({path:"/user-chats/:userChatId",end:!0},e);n&&n.params.userChatId?t(p.Z.userChatActions.setParamUserChatId({userChatId:n.params.userChatId})):t(p.Z.userChatActions.resetParamUserChatId())}),[t]);n.current||(n.current=!0,o(e.location.pathname)),(0,r.useEffect)((()=>e.listen((e=>{o(e.location.pathname)}))),[o,e])}(),(0,r.useLayoutEffect)((()=>n.listen(i)),[n]),r.createElement(Xr.F0,{navigator:n,navigationType:o.action,location:o.location},r.createElement(ii,null,r.createElement(si.Z,null,r.createElement(_s,null,t,r.createElement(ci,null),r.createElement(Cs,null),r.createElement(Qs,null),r.createElement(ss,null),r.createElement(ji,null),r.createElement(ws,null)))))};var qs=n(13156),Xs=n(44356);const Ys="ch-plugin-theme-color",{topmostDocument:Js}=d.Z,{isMobile:ea}=Un.Z,ta=ea?function(){var e;const t=(0,s.v9)(T.Z.uiSelectors.showMessenger),n=(null===(e=(0,$i.je)())||void 0===e?void 0:e.darkMode)?"#313234":"#ffffff",o=(0,r.useRef)([]),i=(0,r.useCallback)((()=>{const e=Js.createElement("meta");e.id=Ys,e.name="theme-color",e.content=n,Js.head.appendChild(e)}),[n]),a=(0,r.useCallback)((()=>{const e=Js.getElementById(Ys);e&&Js.head.removeChild(e)}),[]),l=(0,r.useCallback)((()=>{Js.head.querySelectorAll("meta").forEach((e=>{"theme-color"===e.name&&(o.current.push(e),Js.head.removeChild(e))}))}),[]),c=(0,r.useCallback)((()=>{o.current.forEach((e=>{Js.head.appendChild(e)})),o.current=[]}),[]);(0,r.useEffect)((function(){if(t)return l(),i(),function(){a(),c()}}),[l,i,c,a,t])}:()=>{};function na(){const{isMobile:e}=Un.Z,t=_.Z.getHideChannelButtonOnBoot(),n=(0,s.v9)(T.Z.uiSelectors.showChannelButton),o=(0,s.v9)(T.Z.pluginSelectors.getPlugin);return!(!0!==n&&(!1===n||t||e&&o.mobileHideButton||!e&&o.deskHideButton))}function oa(){const e=(0,s.v9)(T.Z.popupSelectors.showPopup),t=(0,s.v9)(T.Z.meetSelectors.showRingPopup),n=(0,s.v9)(T.Z.popupSelectors.popupType),o=(0,s.v9)(T.Z.popupSelectors.isFullscreen);return!Un.Z.isMobile&&(!!t||e&&n===yr.kQ.PushMessage&&!o)}const{isMobile:ra}=Un.Z,ia=$i.zo.div.withConfig({displayName:"Launcherstyled__LauncherButtonWrapper",componentId:"ch-front__sc-1kx6op4-0"})(["position:fixed;"," overflow:visible;display:",";flex-wrap:nowrap;width:auto;background:transparent;",""],(e=>{let{isFullscreenPopupActive:t}=e;return!t&&!ra&&(0,$i.iv)(["z-index:",";"],ki.Z.ON_SHADOW_ELEMENT)}),(e=>e.hidden?"none":"flex"),(function(e){let{launcherPosition:t}=e;return(0,$i.iv)(["bottom:","px;",";"],(null==t?void 0:t.yPosition)??24,"left"===(null==t?void 0:t.pluginPosition)?(0,$i.iv)(["left:","px;"],(null==t?void 0:t.xPosition)??24):(0,$i.iv)(["right:","px;"],(null==t?void 0:t.xPosition)??24))}));function sa(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"0",height:"0",style:{display:"none"}},r.createElement("defs",null,r.createElement("mask",{id:"ch-icons-mask",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"30",height:"30"},r.createElement("rect",{width:"30",height:"30",fill:"url(#ch-icons-gradient)"})),r.createElement("linearGradient",{id:"ch-icons-gradient",x1:"15",y1:"15",x2:"15",y2:"30",gradientUnits:"userSpaceOnUse"},r.createElement("stop",null),r.createElement("stop",{offset:"1",stopOpacity:"0.8"}))),r.createElement("symbol",{id:"channel-filled",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M27.4962 15.0038C27.4962 16.7173 27.1512 18.3464 26.5264 19.8336V19.8375C26.1392 20.7613 26.0702 21.7886 26.3117 22.7622L26.9902 25.4799C27.2202 26.3922 26.3922 27.224 25.4761 26.994L22.7584 26.3155C21.7847 26.0741 20.7574 26.1431 19.8336 26.5302C18.3464 27.155 16.7173 27.5 15.0038 27.5C8.12328 27.5 2.5 21.8844 2.5 15.0038C2.49617 8.09644 8.09645 2.5 15.0038 2.5C21.8844 2.5 27.4962 8.12328 27.4962 15.0038ZM22.3287 17.5655C20.9219 20.1759 18.1621 21.9468 14.992 21.9468H14.9844C11.8143 21.9468 9.05442 20.172 7.64765 17.5655C7.49049 17.2741 7.59782 16.91 7.88147 16.7375L10.12 15.3959C10.4382 15.2081 10.8369 15.3346 11.0055 15.6604C11.7492 17.1055 13.2518 18.0944 14.9882 18.0944C16.7246 18.0944 18.2272 17.1055 18.9709 15.6604C19.1395 15.3346 19.542 15.2081 19.8563 15.3959L22.0949 16.7375C22.3824 16.91 22.4859 17.2741 22.3287 17.5655Z",fill:"currentcolor"})),r.createElement("symbol",{id:"channel",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M26.4162 21.5593L27.0194 23.9758C27.2341 24.8347 26.9887 25.7243 26.3616 26.3514C25.7345 26.9785 24.8483 27.2239 23.986 27.0092L21.5695 26.4059C20.9901 26.2594 20.38 26.3037 19.8449 26.5286C18.3112 27.1728 16.6854 27.5 15.0119 27.5H15.0051C11.6786 27.5 8.54294 26.198 6.17416 23.836C3.80539 21.4707 2.50341 18.335 2.5 15.0051C2.5 11.665 3.79857 8.52249 6.16053 6.16053C8.52249 3.79857 11.6616 2.5 15.0017 2.5H15.0051C18.335 2.5 21.4707 3.80538 23.8361 6.17416C26.2014 8.54294 27.5034 11.6786 27.5 15.0085C27.5 16.682 27.1728 18.3078 26.5286 19.8415C26.3037 20.3766 26.2594 20.9867 26.4059 21.5661L26.4162 21.5593ZM15.0071 5.26903H15.0037C12.4066 5.26903 9.96281 6.2813 8.12914 8.11838C6.29206 9.95547 5.27979 12.3992 5.27979 14.9964C5.27979 17.5833 6.29546 20.0236 8.13936 21.8641C9.98326 23.7046 12.4202 24.7237 15.0105 24.7169C16.3125 24.7169 17.577 24.4613 18.7665 23.9636C19.8503 23.5069 21.0841 23.4183 22.2396 23.7046L23.7597 24.0829C23.9642 24.1341 24.1482 23.95 24.0971 23.7455L23.7188 22.2254C23.4291 21.07 23.5211 19.8362 23.9744 18.7523C24.4754 17.5628 24.7276 16.2983 24.7276 14.9964C24.7276 12.4095 23.7154 9.9691 21.8749 8.1252C20.0344 6.2813 17.594 5.26903 15.0071 5.26562V5.26903ZM15.0002 20.9713C17.7405 20.9713 20.1195 19.4409 21.3295 17.1846H21.3226C21.4624 16.9222 21.3704 16.5984 21.1181 16.445L19.3288 15.3714C19.0493 15.2044 18.6914 15.3101 18.5449 15.5998C17.8871 16.8915 16.5476 17.7777 14.9968 17.7777C13.4494 17.7777 12.1066 16.8915 11.4488 15.5998C11.3022 15.3101 10.9443 15.2044 10.6648 15.3714L8.87548 16.445C8.62326 16.5984 8.53124 16.9222 8.67098 17.1846C9.88093 19.4375 12.2633 20.9713 15.0002 20.9713Z",fill:"currentcolor"})),r.createElement("symbol",{id:"chat-bubble-alt-filled",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",d:"M15 25C21.5584 25 26.875 20.5228 26.875 15C26.875 9.47715 21.5584 5 15 5C8.44162 5 3.125 9.47715 3.125 15C3.125 18.3766 5.11232 21.3623 8.15573 23.173C7.80844 24.4336 7.21229 25.6043 6.72761 26.4277C6.45154 26.8966 6.82131 27.4836 7.34888 27.3502C8.6738 27.015 10.7198 26.29 12.4901 24.7762C13.2992 24.9228 14.1389 25 15 25Z",fill:"currentcolor"})),r.createElement("symbol",{id:"chat-bubble-alt",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M15 3.75C7.96117 3.75 1.875 8.59411 1.875 15C1.875 18.5603 3.78885 21.6689 6.66906 23.6979C6.36904 24.49 5.98744 25.221 5.65041 25.7935C5.26104 26.4549 5.31755 27.2305 5.69195 27.8008C6.08079 28.3931 6.82826 28.7712 7.65541 28.562C8.97104 28.2292 10.9899 27.531 12.8437 26.0991C13.546 26.1984 14.2664 26.25 15 26.25C22.0388 26.25 28.125 21.4059 28.125 15C28.125 8.59411 22.0388 3.75 15 3.75ZM4.375 15C4.375 10.3602 8.92207 6.25 15 6.25C21.0779 6.25 25.625 10.3602 25.625 15C25.625 19.6398 21.0779 23.75 15 23.75C14.2136 23.75 13.4485 23.6795 12.713 23.5462L12.1289 23.4404L11.6777 23.8262C10.669 24.6887 9.54739 25.2699 8.54952 25.6573C8.85534 25.0093 9.1482 24.2768 9.36084 23.505L9.61398 22.586L8.79485 22.0987C6.05428 20.4682 4.375 17.8541 4.375 15Z",fill:"currentcolor"})),r.createElement("symbol",{id:"chat-bubble-filled",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M25.9044 22.7375C25.6969 22.1175 25.7206 21.43 26.0281 20.8538C27.3269 18.4175 27.8519 15.5113 27.2344 12.4425C26.2281 7.44255 22.1169 3.4863 17.0806 2.6713C8.54688 1.2913 1.27938 8.56005 2.66188 17.0938C3.47813 22.1288 7.43313 26.2388 12.4344 27.245C15.5044 27.8625 18.4119 27.335 20.8481 26.0363C21.4219 25.73 22.1019 25.7063 22.7181 25.9113C23.3894 26.135 24.2869 26.4338 25.1219 26.7125C26.0994 27.0375 27.0281 26.1075 26.7019 25.1313L25.9044 22.7375Z",fill:"currentColor"})),r.createElement("symbol",{id:"chat-lightning-filled",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M25.9039 22.7375C25.6964 22.1175 25.7201 21.43 26.0276 20.8538C27.3264 18.4175 27.8514 15.5113 27.2339 12.4425C26.2276 7.44255 22.1164 3.4863 17.0801 2.6713C8.54639 1.2913 1.27889 8.56005 2.66139 17.0938C3.47764 22.1288 7.43264 26.2388 12.4339 27.245C15.5039 27.8625 18.4114 27.335 20.8476 26.0363C21.4214 25.73 22.1014 25.7063 22.7176 25.9113C23.3889 26.135 24.2864 26.4338 25.1214 26.7125C26.0989 27.0375 27.0276 26.1075 26.7014 25.1313L25.9039 22.7375ZM19.9612 13.9188L16.7837 13.1838L18.3162 7.97382C18.4237 7.60757 17.9712 7.34007 17.7025 7.61007L10.1075 15.2263C9.90371 15.4313 10.0037 15.7788 10.285 15.8451L13.4625 16.5801L11.9312 21.7901C11.8237 22.1563 12.275 22.4238 12.5437 22.1538L20.1387 14.5376C20.3425 14.3326 20.2425 13.9851 19.9612 13.9188Z",fill:"currentcolor"})),r.createElement("symbol",{id:"chat-progress-filled",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M26.0281 20.8538C25.7206 21.43 25.6969 22.1175 25.9044 22.7375L26.7019 25.1313C27.0281 26.1075 26.0994 27.0375 25.1219 26.7125C24.5488 26.5212 23.9462 26.3205 23.4076 26.141L22.7181 25.9113C22.1019 25.7063 21.4219 25.73 20.8481 26.0363C18.4119 27.335 15.5044 27.8625 12.4344 27.245C7.43313 26.2388 3.47813 22.1288 2.66188 17.0938C1.27938 8.56005 8.54688 1.2913 17.0806 2.6713C22.1169 3.4863 26.2281 7.44255 27.2344 12.4425C27.8519 15.5113 27.3269 18.4175 26.0281 20.8538ZM7.75811 14.9911C7.75811 15.9218 8.5187 16.6824 9.44943 16.6824C10.3802 16.6824 11.1407 15.9218 11.1407 14.9911C11.1407 14.0616 10.3802 13.301 9.44943 13.301C8.5187 13.301 7.75811 14.0616 7.75811 14.9911ZM15.0502 16.6824C14.1207 16.6824 13.3588 15.9218 13.3588 14.9911C13.3588 14.0616 14.1207 13.301 15.0502 13.301C15.9809 13.301 16.7415 14.0616 16.7415 14.9911C16.7415 15.9218 15.9809 16.6824 15.0502 16.6824ZM18.9601 14.9911C18.9601 15.9218 19.7207 16.6824 20.6514 16.6824C21.5809 16.6824 22.3427 15.9218 22.3427 14.9911C22.3427 14.0616 21.5809 13.301 20.6514 13.301C19.7207 13.301 18.9601 14.0616 18.9601 14.9911Z",fill:"currentcolor"})),r.createElement("symbol",{id:"chat-progress",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M26.758 23.8145L25.9561 21.4102C25.8823 21.154 25.9139 21.0896 26.3399 20.2244C26.3611 20.1813 26.3833 20.1363 26.4065 20.0891C26.768 19.2948 27.0382 18.4579 27.2234 17.6035C27.5974 15.8921 27.5824 14.1057 27.2371 12.4069C26.5366 8.95422 24.2886 5.9081 21.2637 4.15924C19.7563 3.28356 18.045 2.71061 16.3074 2.5705C14.5835 2.39412 12.8009 2.54173 11.1371 3.09216C7.80451 4.17675 4.99858 6.70622 3.57372 9.90371C2.8444 11.4937 2.48662 13.2513 2.50038 14.9927C2.51414 16.7215 2.82188 18.4904 3.55996 20.0854C4.98357 23.2916 7.79826 25.8061 11.1296 26.8919C12.8009 27.4286 14.566 27.6163 16.3061 27.4311C17.1743 27.336 18.0362 27.1571 18.8669 26.8807C19.2834 26.7481 19.6888 26.5854 20.0878 26.4078C20.2817 26.3255 20.5061 26.2108 20.6865 26.1185C20.86 26.0298 20.9928 25.9619 21.0185 25.9637C21.1737 25.9162 21.3025 25.9199 21.4101 25.955L22.5272 26.3277L23.8107 26.7556C23.9405 26.7959 24.0716 26.8412 24.2027 26.8865C24.4455 26.9704 24.6885 27.0543 24.9241 27.1071C25.2881 27.1697 25.5646 27.1246 25.8135 27.0546C26.354 26.9157 26.9144 26.359 27.0532 25.8174C27.1246 25.5672 27.1708 25.2932 27.1083 24.9292C27.057 24.6969 26.9745 24.4576 26.8919 24.2179C26.8455 24.0831 26.799 23.9483 26.758 23.8145ZM23.5755 20.273C23.3866 20.866 23.3666 21.5628 23.583 22.202L24.2736 24.2724L23.3191 23.9547L22.1982 23.5806C21.5577 23.3654 20.8622 23.3867 20.2692 23.5769C19.8457 23.7282 19.6205 23.8485 19.4306 23.95C19.308 24.0154 19.2002 24.073 19.0633 24.126C18.743 24.2674 18.419 24.3975 18.085 24.5038C17.4232 24.7253 16.7365 24.8666 16.0434 24.9429C14.6536 25.093 13.225 24.9379 11.9027 24.5126C9.25064 23.6507 6.97261 21.6191 5.84298 19.0633C5.25503 17.7961 5.01859 16.3975 5.00233 14.9927C4.98857 13.5928 5.27379 12.193 5.858 10.9233C6.99763 8.36877 9.24939 6.33969 11.909 5.47276C13.2362 5.03117 14.6586 4.91733 16.0534 5.05994C17.4558 5.16753 18.7956 5.62288 20.0078 6.32217C22.4296 7.72201 24.2348 10.1764 24.7852 12.9073C25.0654 14.2884 25.0742 15.7132 24.7765 17.078C24.6289 17.7598 24.4149 18.4278 24.1247 19.0646C24.0727 19.2036 24.0139 19.3132 23.9463 19.4392C23.8448 19.6285 23.7235 19.8547 23.5755 20.273ZM7.75785 14.991C7.75785 15.9218 8.51845 16.6824 9.44917 16.6824C10.3799 16.6824 11.1405 15.9218 11.1405 14.991C11.1405 14.0616 10.3799 13.301 9.44917 13.301C8.51845 13.301 7.75785 14.0616 7.75785 14.991ZM13.3586 14.991C13.3586 15.9218 14.1204 16.6824 15.0499 16.6824C15.9806 16.6824 16.7412 15.9218 16.7412 14.991C16.7412 14.0616 15.9806 13.301 15.0499 13.301C14.1204 13.301 13.3586 14.0616 13.3586 14.991ZM20.6511 16.6824C19.7204 16.6824 18.9598 15.9218 18.9598 14.991C18.9598 14.0616 19.7204 13.301 20.6511 13.301C21.5806 13.301 22.3425 14.0616 22.3425 14.991C22.3425 15.9218 21.5806 16.6824 20.6511 16.6824Z",fill:"currentcolor"})),r.createElement("symbol",{id:"chat-question-filled",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M26.0276 20.8538C25.7201 21.43 25.6964 22.1175 25.9039 22.7375L26.7014 25.1313C27.0276 26.1075 26.0989 27.0375 25.1214 26.7125C24.5483 26.5212 23.9457 26.3205 23.4071 26.141C23.161 26.059 22.9282 25.9815 22.7176 25.9113C22.1014 25.7063 21.4214 25.73 20.8476 26.0363C18.4114 27.335 15.5039 27.8625 12.4339 27.245C7.43264 26.2388 3.47764 22.1288 2.66139 17.0938C1.27889 8.56005 8.54639 1.2913 17.0801 2.6713C22.1164 3.4863 26.2276 7.44255 27.2339 12.4425C27.8514 15.5113 27.3264 18.4175 26.0276 20.8538ZM16.0382 18.1763H13.6621V17.2909C13.6621 15.8465 14.4437 14.4922 15.7518 13.6668C16.8361 12.984 17.4238 12.4925 17.4238 11.8572C17.4238 10.5904 16.1733 9.90635 14.9977 9.90635C13.7047 9.90635 12.5717 10.818 12.5717 11.8572H10.1956C10.1956 9.51243 12.3941 7.53029 14.9977 7.53029C17.6902 7.53029 19.7999 9.43114 19.7999 11.8572C19.7999 13.9244 18.0591 15.0224 17.0186 15.6764C16.7235 15.8628 16.0382 16.393 16.0382 17.2909V18.1763ZM16.4809 21.161C16.4809 22.0201 15.7856 22.7154 14.9265 22.7154C14.0686 22.7154 13.372 22.0201 13.372 21.161C13.372 20.3019 14.0686 19.6066 14.9265 19.6066C15.7856 19.6066 16.4809 20.3019 16.4809 21.161Z",fill:"currentcolor"})),r.createElement("symbol",{id:"chat-question",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M25.9583 21.4119L26.99 24.5058C27.2864 25.4287 27.1226 25.9326 26.6373 26.5367C26.3897 26.8068 26.0496 26.9944 25.7557 27.0707C25.4756 27.1457 25.1067 27.1769 24.6715 27.0406L22.0015 26.1515L21.4838 25.9789C21.3656 25.9395 21.3529 25.9381 21.3138 25.9338C21.3032 25.9327 21.2907 25.9313 21.2737 25.9289C21.1599 25.9226 21.0148 25.9501 20.871 26.0264C19.4666 26.7793 17.8697 27.2757 16.2602 27.4358C13.0388 27.7772 9.68352 26.7855 7.17365 24.7409C4.65127 22.7275 2.90549 19.6874 2.59536 16.4459C2.17767 13.2395 3.15185 9.87797 5.13149 7.32058C7.13488 4.78945 10.12 2.98489 13.3577 2.61598C16.5541 2.16953 19.9494 3.01866 22.5243 5.00204C25.1242 6.9304 26.9125 9.93675 27.3664 13.1519C27.599 14.7464 27.5302 16.3996 27.1413 17.9741C26.945 18.7619 26.6724 19.5298 26.3297 20.2639C26.2776 20.3826 26.2182 20.4983 26.1589 20.6138C26.1258 20.6784 26.0927 20.7429 26.0608 20.8079C25.9947 20.932 25.9845 20.9646 25.9625 21.0356L25.957 21.053C25.9195 21.1943 25.9258 21.3106 25.9583 21.4119ZM23.586 22.2022C23.3859 21.6107 23.3871 20.9679 23.541 20.4052C23.6097 20.1363 23.7461 19.8274 23.8486 19.6398C23.8742 19.5874 23.9008 19.5357 23.9275 19.4841L23.9275 19.484C23.9752 19.3917 24.0228 19.2996 24.0637 19.2034C24.3388 18.6156 24.5564 18.0028 24.7127 17.3751C25.0229 16.1183 25.0791 14.8014 24.8916 13.5108C24.5264 10.9447 23.1083 8.55113 21.0173 6.99919C18.9577 5.41098 16.2627 4.73943 13.6841 5.09584C11.0954 5.38221 8.71559 6.83661 7.10487 8.85752C5.52792 10.9122 4.74006 13.5721 5.08022 16.1658C5.32157 18.7482 6.71219 21.1668 8.73935 22.7912C10.7603 24.4332 13.4164 25.2173 16.0063 24.9485C17.3019 24.8146 18.5425 24.4345 19.7118 23.8104C20.212 23.5478 20.801 23.3978 21.4175 23.4328C21.7014 23.4415 22.0803 23.5341 22.2741 23.6054L22.7931 23.7792L24.275 24.2732L23.586 22.2022ZM16.4808 21.1609C16.4808 22.02 15.7855 22.7153 14.9264 22.7153C14.0685 22.7153 13.3719 22.02 13.3719 21.1609C13.3719 20.3018 14.0685 19.6064 14.9264 19.6064C15.7855 19.6064 16.4808 20.3018 16.4808 21.1609ZM13.6621 18.1762H16.0381V17.2908C16.0381 16.3929 16.7234 15.8626 17.0186 15.6763C18.059 15.0223 19.7998 13.9243 19.7998 11.8571C19.7998 9.43103 17.6901 7.53018 14.9976 7.53018C12.394 7.53018 10.1955 9.51231 10.1955 11.8571H12.5716C12.5716 10.8179 13.7046 9.90624 14.9976 9.90624C16.1732 9.90624 17.4237 10.5903 17.4237 11.8571C17.4237 12.4924 16.836 12.9839 15.7517 13.6667C14.4437 14.492 13.6621 15.8464 13.6621 17.2908V18.1762Z",fill:"currentcolor"})),r.createElement("symbol",{id:"comment-filled",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M8.75 3.75C5.98858 3.75 3.75 5.98858 3.75 8.75V26.1996C3.75 27.7718 5.56862 28.6459 6.7963 27.6637L11.0037 24.2978C11.447 23.9432 11.9978 23.75 12.5654 23.75H21.25C24.0114 23.75 26.25 21.5114 26.25 18.75V8.75C26.25 5.98858 24.0114 3.75 21.25 3.75H8.75ZM8.75 11.25C8.75 10.5596 9.30964 10 10 10H20C20.6904 10 21.25 10.5596 21.25 11.25C21.25 11.9404 20.6904 12.5 20 12.5H10C9.30964 12.5 8.75 11.9404 8.75 11.25ZM8.75 16.25C8.75 15.5596 9.30964 15 10 15H20C20.6904 15 21.25 15.5596 21.25 16.25C21.25 16.9404 20.6904 17.5 20 17.5H10C9.30964 17.5 8.75 16.9404 8.75 16.25Z",fill:"currentcolor"})),r.createElement("symbol",{id:"comment",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M3.75 8.75C3.75 5.98858 5.98858 3.75 8.75 3.75H21.25C24.0114 3.75 26.25 5.98858 26.25 8.75V18.75C26.25 21.5114 24.0114 23.75 21.25 23.75H12.5654C11.9978 23.75 11.447 23.9432 11.0037 24.2978L6.7963 27.6637C5.56862 28.6459 3.75 27.7718 3.75 26.1996V8.75ZM8.75 6.25C7.36929 6.25 6.25 7.36929 6.25 8.75V24.8992L9.44195 22.3457C10.3285 21.6364 11.4301 21.25 12.5654 21.25H21.25C22.6307 21.25 23.75 20.1307 23.75 18.75V8.75C23.75 7.36929 22.6307 6.25 21.25 6.25H8.75ZM10 11.25C10 10.5596 10.5596 10 11.25 10H18.75C19.4404 10 20 10.5596 20 11.25C20 11.9404 19.4404 12.5 18.75 12.5H11.25C10.5596 12.5 10 11.9404 10 11.25ZM11.25 15C10.5596 15 10 15.5596 10 16.25C10 16.9404 10.5596 17.5 11.25 17.5H18.75C19.4404 17.5 20 16.9404 20 16.25C20 15.5596 19.4404 15 18.75 15H11.25Z",fill:"currentcolor"})),r.createElement("symbol",{id:"communication",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M12.2264 21.2029C11.8014 20.4558 11.5011 19.6285 11.3537 18.7493C11.2855 18.343 11.2501 17.9256 11.2501 17.5C11.2501 13.3924 14.5521 10.0561 18.6465 10.0007C18.681 10.0002 18.7155 10 18.7501 10C19.6138 10 20.4435 10.146 21.2157 10.4147C24.1466 11.4345 26.2501 14.2216 26.2501 17.5C26.2501 19.0701 25.7676 20.5275 24.9429 21.732L26.2501 25L22.9821 23.6928C21.7775 24.5175 20.3201 25 18.7501 25C15.9546 25 13.5164 23.4706 12.2264 21.2029ZM8.75007 17.5C8.75007 12.3066 12.7091 8.03782 17.7737 7.54706C16.4837 5.27938 14.0455 3.75 11.2501 3.75C7.10794 3.75 3.75007 7.10786 3.75007 11.25C3.75007 12.8201 4.23252 14.2775 5.05727 15.482L3.75007 18.75L7.01806 17.4428C7.55995 17.8138 8.153 18.1156 8.78447 18.3353C8.76169 18.0599 8.75007 17.7813 8.75007 17.5ZM11.2501 1.25C15.511 1.25 19.1494 3.91488 20.5897 7.66886C25.2339 8.53246 28.7501 12.6056 28.7501 17.5C28.7501 19.089 28.3779 20.5955 27.7158 21.9328L28.5713 24.0715C28.9427 25.0001 28.725 26.0606 28.0178 26.7678C27.3107 27.4749 26.2501 27.6926 25.3216 27.3212L23.1828 26.4657C21.8456 27.1278 20.3391 27.5 18.7501 27.5C14.489 27.5 10.8504 24.8349 9.41024 21.0807C8.49682 20.9105 7.62613 20.6161 6.81732 20.2157L4.67855 21.0712C3.75001 21.4426 2.68946 21.2249 1.98231 20.5178C1.27515 19.8106 1.05746 18.7501 1.42888 17.8215L2.28439 15.6827C1.6223 14.3455 1.25007 12.839 1.25007 11.25C1.25007 5.72715 5.72723 1.25 11.2501 1.25ZM16.2501 17.5C16.2501 18.1904 15.6904 18.75 15.0001 18.75C14.3097 18.75 13.7501 18.1904 13.7501 17.5C13.7501 16.8096 14.3097 16.25 15.0001 16.25C15.6904 16.25 16.2501 16.8096 16.2501 17.5ZM18.7501 18.75C19.4404 18.75 20.0001 18.1904 20.0001 17.5C20.0001 16.8096 19.4404 16.25 18.7501 16.25C18.0597 16.25 17.5001 16.8096 17.5001 17.5C17.5001 18.1904 18.0597 18.75 18.7501 18.75ZM22.5001 18.75C23.1904 18.75 23.7501 18.1904 23.7501 17.5C23.7501 16.8096 23.1904 16.25 22.5001 16.25C21.8097 16.25 21.2501 16.8096 21.2501 17.5C21.2501 18.1904 21.8097 18.75 22.5001 18.75Z",fill:"currentcolor"})),r.createElement("symbol",{id:"headset",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M15 2.5C20.5137 2.5 25 6.98625 25 12.5V21.25C25 21.94 24.44 22.5 23.75 22.5H20.625C19.5912 22.5 18.75 21.6588 18.75 20.625V14.375C18.75 13.3412 19.5912 12.5 20.625 12.5H22.5C22.5 8.36375 19.1363 5 15 5C10.8637 5 7.5 8.36375 7.5 12.5H9.375C10.4088 12.5 11.25 13.3412 11.25 14.375V20.625C11.25 21.6588 10.4088 22.5 9.375 22.5H7.5V23.75C7.5 24.4387 8.06125 25 8.75 25H13.75C14.4404 25 15 25.5596 15 26.25C15 26.9404 14.4404 27.5 13.75 27.5H8.75C6.6825 27.5 5 25.8175 5 23.75V12.5C5 6.98625 9.48625 2.5 15 2.5Z",fill:"currentcolor"})),r.createElement("symbol",{id:"help-filled",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M15.0005 2.50024C21.9038 2.50024 27.5005 8.09655 27.5005 15.0002C27.5005 21.9039 21.9038 27.5002 15.0005 27.5002C8.09638 27.5002 2.50049 21.9044 2.50049 15.0002C2.50049 8.09614 8.09638 2.50024 15.0005 2.50024ZM16.0387 18.1764H13.6626V17.291C13.6626 15.8466 14.4442 14.4922 15.7523 13.6669C16.8365 12.984 17.4243 12.4926 17.4243 11.8573C17.4243 10.5905 16.1737 9.90642 14.9982 9.90642C13.7051 9.90642 12.5721 10.8181 12.5721 11.8573H10.1961C10.1961 9.5125 12.3946 7.53036 14.9982 7.53036C17.6907 7.53036 19.8004 9.43121 19.8004 11.8573C19.8004 13.9245 18.0596 15.0225 17.0191 15.6765C16.724 15.8628 16.0387 16.3931 16.0387 17.291V18.1764ZM14.9269 22.7155C14.0691 22.7155 13.3725 22.0202 13.3725 21.1611C13.3725 20.3019 14.0691 19.6066 14.9269 19.6066C15.7861 19.6066 16.4814 20.3019 16.4814 21.1611C16.4814 22.0202 15.7861 22.7155 14.9269 22.7155Z",fill:"currentcolor"})),r.createElement("symbol",{id:"send-forward-filled",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M26.1482 6.26333L3.64868 6.26305C3.14742 6.26233 2.69385 6.56173 2.49869 7.0237C2.30182 7.48522 2.40048 8.0186 2.74753 8.3797L9.68474 15.5953L22.1471 9.31817L22.5858 10.0781L10.9315 17.7622L13.6518 27.4139C13.7884 27.898 14.2011 28.2529 14.6999 28.3143C14.9759 28.3498 15.2489 28.2903 15.4795 28.1571C15.6657 28.0496 15.8255 27.8939 15.9376 27.7007L27.2307 8.13828C27.455 7.75184 27.4545 7.27585 27.2307 6.88831C27.0076 6.50184 26.5956 6.26336 26.1482 6.26333",fill:"currentcolor"})),r.createElement("symbol",{id:"send-forward",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M12.0263 14.3042L6.68602 8.75008H21.6031L12.0263 14.3042ZM26.2359 6.25007H3.75005C2.64821 6.25007 2.08531 7.57218 2.84899 8.36643L10.6869 16.5181L13.7531 27.4003C14.0531 28.4648 15.4859 28.6441 16.0388 27.6863L27.3255 8.13739C27.3338 8.12322 27.3419 8.10889 27.3497 8.09442C27.7937 7.27616 27.2145 6.27392 26.2834 6.25048C26.2676 6.25004 26.2517 6.2499 26.2359 6.25007ZM22.8259 10.931L13.2713 16.4722L15.3557 23.8696L22.8259 10.931Z",fill:"currentcolor"})),r.createElement("symbol",{id:"sms-filled",viewBox:"0 0 30 30"},r.createElement("path",{mask:"url(#ch-icons-mask)",fillRule:"evenodd",d:"M26.875 15C26.875 20.5228 21.5584 25 15 25C14.1389 25 13.2992 24.9228 12.4901 24.7762C10.5908 26.4003 8.37401 27.1166 7.07099 27.4174C6.6468 27.5154 6.35471 27.0422 6.58178 26.6707C7.08684 25.8445 7.77266 24.5635 8.15573 23.173C5.11232 21.3623 3.125 18.3766 3.125 15C3.125 9.47715 8.44162 5 15 5C21.5584 5 26.875 9.47715 26.875 15ZM7.5 14.9993C7.5 16.0315 8.34489 16.875 9.37569 16.875C10.4079 16.875 11.2514 16.0315 11.2514 14.9993C11.2514 13.9685 10.4079 13.125 9.37569 13.125C8.34489 13.125 7.5 13.9685 7.5 14.9993ZM13.125 14.9993C13.125 16.0315 13.9699 16.875 15.0007 16.875C16.0329 16.875 16.8764 16.0315 16.8764 14.9993C16.8764 13.9685 16.0329 13.125 15.0007 13.125C13.9699 13.125 13.125 13.9685 13.125 14.9993ZM20.6257 16.875C19.5949 16.875 18.75 16.0315 18.75 14.9993C18.75 13.9685 19.5949 13.125 20.6257 13.125C21.6579 13.125 22.5014 13.9685 22.5014 14.9993C22.5014 16.0315 21.6579 16.875 20.6257 16.875Z",fill:"currentcolor"})),r.createElement("symbol",{id:"sms",viewBox:"0 0 30 30"},r.createElement("g",{mask:"url(#ch-icons-mask)"},r.createElement("path",{d:"M7.5 14.9993C7.5 16.0315 8.34489 16.875 9.37569 16.875C10.4079 16.875 11.2514 16.0315 11.2514 14.9993C11.2514 13.9685 10.4079 13.125 9.37569 13.125C8.34489 13.125 7.5 13.9685 7.5 14.9993Z",fill:"currentColor"}),r.createElement("path",{d:"M13.125 14.9993C13.125 16.0315 13.9699 16.875 15.0007 16.875C16.0329 16.875 16.8764 16.0315 16.8764 14.9993C16.8764 13.9685 16.0329 13.125 15.0007 13.125C13.9699 13.125 13.125 13.9685 13.125 14.9993Z",fill:"currentColor"}),r.createElement("path",{d:"M20.6257 16.875C19.5949 16.875 18.75 16.0315 18.75 14.9993C18.75 13.9685 19.5949 13.125 20.6257 13.125C21.6579 13.125 22.5014 13.9685 22.5014 14.9993C22.5014 16.0315 21.6579 16.875 20.6257 16.875Z",fill:"currentColor"}),r.createElement("path",{fillRule:"evenodd",d:"M15 3.75C7.96117 3.75 1.875 8.59411 1.875 15C1.875 18.5603 3.78885 21.6689 6.66906 23.6979C6.36904 24.49 5.98744 25.221 5.65041 25.7935C5.26104 26.4549 5.31755 27.2305 5.69195 27.8008C6.08079 28.3931 6.82826 28.7712 7.65541 28.562C8.97104 28.2292 10.9899 27.531 12.8437 26.0991C13.546 26.1984 14.2664 26.25 15 26.25C22.0388 26.25 28.125 21.4059 28.125 15C28.125 8.59411 22.0388 3.75 15 3.75ZM4.375 15C4.375 10.3602 8.92207 6.25 15 6.25C21.0779 6.25 25.625 10.3602 25.625 15C25.625 19.6398 21.0779 23.75 15 23.75C14.2136 23.75 13.4485 23.6795 12.713 23.5462L12.1289 23.4404L11.6777 23.8262C10.669 24.6887 9.54739 25.2699 8.54952 25.6573C8.85534 25.0093 9.1482 24.2768 9.36084 23.505L9.61398 22.586L8.79485 22.0987C6.05428 20.4682 4.375 17.8541 4.375 15Z",fill:"currentColor"}))))}const aa=r.memo(sa),la=400,{isMobile:ca}=Un.Z,Ea=Ri.F4`
|
||
from {
|
||
opacity: 0;
|
||
transform: scale(0.8), translate(50%, -50%);
|
||
}
|
||
|
||
to {
|
||
opacity: 1;
|
||
transform: scale(1), translate(50%, -50%);
|
||
}
|
||
`,ua=()=>(0,$i.iv)(["animation:"," ","ms "," backwards;"],Ea,la,Ao.Zs),ha=(0,$i.iv)(["top:","px;right:","px;transform:translate(50%,-50%);"],ca?5:7,ca?5:7),da=(0,$i.zo)(Us.R).withConfig({displayName:"Badge__MeetBadge",componentId:"ch-front__sc-1k3c5b2-0"})([""," position:absolute;min-width:18px;height:18px;padding:0;background:var(--bgtxt-cobalt-normal,#329be7);"," ",""],(e=>{let{foundation:t}=e;return null==t?void 0:t.elevation.ev1()}),ha,ua),_a=(0,$i.zo)(Us.R).withConfig({displayName:"Badge__AlertBadge",componentId:"ch-front__sc-1k3c5b2-1"})(["position:absolute;min-width:18px;height:18px;font-size:12px;line-height:16px;color:",";"," background-color:",";border-radius:12px;"," ",""],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bgtxt-absolute-white-dark"]}),(e=>{let{foundation:t}=e;return ca?null==t?void 0:t.elevation.ev2():null==t?void 0:t.elevation.ev1()}),(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bgtxt-red-normal"]}),ha,ua),pa=$i.zo.div.withConfig({displayName:"Badge__BaseUnreadBadge",componentId:"ch-front__sc-1k3c5b2-2"})(["position:absolute;top:0;right:0;width:10px;height:10px;background-color:",";border-radius:50%;"," ",""],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bgtxt-red-normal"]}),ha,ua),ma=(0,$i.zo)(pa).withConfig({displayName:"Badge__PcUnreadBadge",componentId:"ch-front__sc-1k3c5b2-3"})(["background-clip:padding-box;border:2px solid ",";"],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bgtxt-absolute-white-normal"]})),Sa=(0,$i.zo)(pa).withConfig({displayName:"Badge__MobileUnreadBadge",componentId:"ch-front__sc-1k3c5b2-4"})([""," background-color:",";"],(e=>{let{foundation:t}=e;return null==t?void 0:t.elevation.ev2()}),(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bgtxt-red-normal"]})),ga=ca?Sa:ma;function Ta(){const{translate:e}=(0,Ti.Z)(),t=(0,s.v9)(T.Z.userSelectors.getUserUnread),n=(0,s.v9)(T.Z.userSelectors.getUserAlertWithPlus),o=(0,s.v9)(T.Z.uiSelectors.showMessenger),i=(0,s.v9)(T.Z.meetSelectors.showRingPopup),a=(0,s.v9)(T.Z.meetSelectors.getHasLiveMeet);return o?null:a||i?r.createElement(da,null,r.createElement(_i.J,{source:hi.V,size:pi.J.XS})):n?r.createElement(_a,{role:"status","aria-label":`, ${e("ch.lounge.card.chat_list.unread_count",n)}`},n):t?r.createElement(ga,{role:"status","aria-label":", there are unread messages"}):null}const{isMobile:Ca}=Un.Z,Ra=Ca?vo.zw:vo.HN,fa=Ca?vo.qk:vo._z,Aa=(0,Ri.F4)(["from{opacity:0;transform:scale3d(0.9,0.9,1);}to{opacity:1;transform:scale3d(1,1,1);}"]),Ia=$i.zo.div.withConfig({displayName:"ChatButtonContainer__Container",componentId:"ch-front__sc-qgvnh9-0"})(["position:relative;box-sizing:border-box;display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;width:","px;height:","px;overflow:initial;cursor:pointer;backdrop-filter:blur(30px);border-radius:","px;will-change:transform,opacity;transition:transform ","ms "," 10ms,box-shadow ","ms ease-out;"," &:hover{box-shadow:0 8px 30px 0 rgba(0,0,0,0.1);}&:active{transition:transform 0s;transform:scale3d(0.9,0.9,1);}"],Ra,Ra,fa,la,Ao.Zs,200,(()=>(0,$i.iv)(["animation:"," ","ms "," backwards;"],Aa,la,Ao.Zs)));function va(e){let{children:t}=e;return r.createElement(Ia,null,t,r.createElement(Ta,null))}const ya=(0,$i.iv)(["box-shadow:inset 0 0 0 1px rgba(255,255,255,20%),0 4px 6px rgba(0,0,0,10%),0 8px 30px rgba(0,0,0,15%);"]);function Ua(e){let{icon:t,...n}=e;return r.createElement("svg",n,r.createElement("use",{href:`#${t}`}))}const Za=Un.Z.isMobile?vo.qk:vo._z,Oa=Un.Z.isMobile?30:36,ba=$i.zo.div.withConfig({displayName:"IconButtonView__Background",componentId:"ch-front__sc-vtu014-0"})(["position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer;visibility:",";border-radius:","px;",";"," ",""],(e=>{let{show:t}=e;return t?"visible":"hidden"}),Za,(e=>{let{show:t}=e;return t?$i.iv`
|
||
transition: visibility ${la}ms;
|
||
animation: ${Ao.Ji} ${la}ms ${Ao.Zs}
|
||
both;
|
||
`:$i.iv`
|
||
transition: visibility ${la}ms;
|
||
animation: ${Ao.U6} ${la}ms ${Ao.Zs}
|
||
both;
|
||
`}),(e=>{let{foundation:t}=e;return $i.iv`
|
||
background: linear-gradient(
|
||
180deg,
|
||
${null==t?void 0:t.color} 0%,
|
||
${null==t?void 0:t.gradientColor} 100%
|
||
);
|
||
`}),ya);function Na(){const e=oa(),t=(0,s.v9)(T.Z.uiSelectors.showMessenger),n=(0,s.v9)(T.Z.pluginSelectors.showIconButton),o=(0,s.v9)(T.Z.pluginSelectors.iconButton),{pluginIconColor:i}=(0,s.v9)(T.Z.channelProfileSelectors.channelProfileTheme,s.wU),a=!t&&!e&&n;return r.createElement(ba,{show:a},r.createElement(Ua,{icon:(l=o,c=i,"channel-filled"!==l||(0,oo.hL)(c)?l:"channel"),width:Oa,height:Oa,color:i}));var l,c}const wa=Un.Z.isMobile?vo.qk:vo._z,La=$i.zo.div.withConfig({displayName:"ImageCustomButtonView__Wrapper",componentId:"ch-front__sc-1s91m5o-0"})(["position:absolute;width:100%;height:100%;cursor:pointer;visibility:",";",";"],(e=>{let{show:t}=e;return t?"visible":"hidden"}),(e=>{let{show:t}=e;return t?$i.iv`
|
||
transition: visibility ${la}ms;
|
||
animation: ${Ao.Ji} ${la}ms ${Ao.Zs}
|
||
both;
|
||
`:$i.iv`
|
||
transition: visibility ${la}ms;
|
||
animation: ${Ao.U6} ${la}ms ${Ao.Zs}
|
||
both;
|
||
`})),Ma=$i.zo.div.withConfig({displayName:"ImageCustomButtonView__CustomImageBg",componentId:"ch-front__sc-1s91m5o-1"})(["width:100%;height:100%;background-color:",";"," border-radius:","px;",""],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bgtxt-absolute-white-normal"]}),(e=>{let{src:t}=e;return(0,xi.Vz)(t)}),wa,ya);function Pa(){const e=oa(),t=(0,s.v9)(T.Z.uiSelectors.showMessenger),n=(0,s.v9)(T.Z.pluginSelectors.customImageUrl),o=(0,s.v9)(T.Z.pluginSelectors.buttonType),i=!t&&!e&&o===Ar.B.CustomImage;return n?r.createElement(La,{show:i,"data-testid":"img-custom-btn"},r.createElement(Ma,{src:n})):null}var Da=n(76688);const ka=$i.zo.div.withConfig({displayName:"MinimizeButtonView__Wrapper",componentId:"ch-front__sc-1idijj-0"})(["position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer;will-change:opacity,visibility;visibility:",";background-color:",";border-radius:","px;",";",""],(e=>{let{show:t}=e;return t?"visible":"hidden"}),(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-lounge"]}),vo._z,(e=>{let{show:t}=e;return t?$i.iv`
|
||
transition: visibility ${la}ms;
|
||
animation: ${Ao.Ji} ${la}ms ${Ao.Zs}
|
||
both;
|
||
`:$i.iv`
|
||
transition: visibility ${la}ms;
|
||
animation: ${Ao.U6} ${la}ms ${Ao.Zs}
|
||
both;
|
||
`}),ya);function xa(){const e=(0,s.v9)(T.Z.uiSelectors.showMessenger);return r.createElement(ka,{show:e,"data-ch-testid":"minimize-button"},r.createElement(_i.J,{source:Da.C,size:pi.J.L,color:"txt-black-darker","aria-hidden":"true"}))}var Ha=n(3164);const Ga=$i.zo.div.withConfig({displayName:"SenderButtonView__Wrapper",componentId:"ch-front__sc-1aik3pi-0"})(["position:absolute;width:100%;height:100%;cursor:pointer;visibility:",";",";"],(e=>{let{show:t}=e;return t?"visible":"hidden"}),(e=>{let{show:t}=e;return t?$i.iv`
|
||
transition: visibility ${la}ms;
|
||
animation: ${Ao.Ji} ${la}ms ${Ao.Zs}
|
||
both;
|
||
`:$i.iv`
|
||
transition: visibility ${la}ms;
|
||
animation: ${Ao.U6} ${la}ms ${Ao.Zs}
|
||
both;
|
||
`})),Ba=$i.zo.div.withConfig({displayName:"SenderButtonView__SenderAvatarBg",componentId:"ch-front__sc-1aik3pi-1"})(["width:100%;height:100%;background-color:",";"," border-radius:","px;",""],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bgtxt-absolute-white-normal"]}),(e=>{let{src:t}=e;return(0,xi.Vz)(t)}),vo._z,ya);function Qa(){const e=(0,s.v9)(T.Z.popupSelectors.getPopupMessage),t=oa(),{avatarUrl:n}=(0,Ha.Z)(e),o=(0,s.v9)(T.Z.meetSelectors.getRingAvatarUrl)||n;return o?r.createElement(Ga,{show:t},r.createElement(Ba,{src:o})):null}function Wa(){const{translate:e}=(0,Ti.Z)(),t=(0,s.v9)(T.Z.channelProfileSelectors.channelName),n=(0,s.v9)(T.Z.uiSelectors.showMessenger),o=function(){const e=(0,s.I0)(),t=(0,s.v9)(T.Z.popupSelectors.popupUserChatId),n=(0,s.v9)(T.Z.uiSelectors.showMessenger),o=oa();return()=>{if(!n)return o?(e(p.Z.uiActions.setShowMessenger({showMessenger:!0,disableRedirect:!0})),void e(p.Z.userChatActions.goUserChat({userChatId:t}))):void e(p.Z.uiActions.setShowMessenger({showMessenger:!0}));e(p.Z.uiActions.setShowMessenger({showMessenger:!1}))}}();return Un.Z.isMobile&&n?null:r.createElement("button",{type:"button",onClick:o},r.createElement(va,null,r.createElement("span",{className:"a11y-hidden"},e("ch.launcher.custom_alt",t)),r.createElement(Qa,null),r.createElement(Pa,null),r.createElement(Na,null),r.createElement(xa,null)))}const Fa=$i.zo.button.withConfig({displayName:"LegacyImageCustomButton__ImageLauncherButton",componentId:"ch-front__sc-13afzgx-0"})(["position:relative;display:flex;align-items:center;justify-content:center;overflow:visible;cursor:pointer;"]),za=$i.zo.img.withConfig({displayName:"LegacyImageCustomButton__Image",componentId:"ch-front__sc-13afzgx-1"})(["width:","px;height:","px;"],(e=>e.width),(e=>e.height)),Va=function(){const e=(0,s.I0)(),t=(0,s.v9)(T.Z.pluginSelectors.getPlugin),n=(0,s.v9)(T.Z.channelProfileSelectors.channelName),{translate:o}=(0,Ti.Z)(),i=t.legacyImageUrl,a=t.getImage();return r.createElement(Fa,{id:"ch-plugin-launcher",type:"button",onClick:()=>{e(p.Z.uiActions.setShowMessenger({showMessenger:!0}))}},r.createElement("span",{className:"a11y-hidden"},o("ch.launcher.custom_alt",n)),r.createElement(za,{alt:"",src:i,width:((null==a?void 0:a.width)??0)/2,height:((null==a?void 0:a.height)??0)/2}),r.createElement(Ta,null))},ja=$i.zo.div.withConfig({displayName:"PCBubbleBackground__Gradient",componentId:"ch-front__sc-9jm6jh-0"})(["position:fixed;bottom:0;width:400px;height:400px;pointer-events:none;background:radial-gradient( 88.57% 77.67% at 90.77% 86.84%,rgba(39,46,58,0.2) 0%,rgba(39,46,58,0) 100% );"," ",""],(e=>{let{isLeft:t}=e;return t?(0,$i.iv)(["left:0;transform:scaleX(-1);"]):(0,$i.iv)(["right:0;"])}),(e=>{let{show:t}=e;return t?(0,$i.iv)(["animation:"," ","ms "," both;"],Ao.Ji,la,Ao.Zs):(0,$i.iv)(["animation:"," ","ms "," both;"],Ao.U6,la,Ao.Zs)})),$a=function(){const e=(0,s.v9)(T.Z.popupSelectors.showPopup),t=(0,s.v9)(T.Z.popupSelectors.isFullscreen),n=(0,s.v9)(T.Z.pluginSelectors.getPlugin),{render:o,onAnimationEnd:i}=ui(e&&!t),a="left"===n.getPosition();return o?r.createElement(ja,{isLeft:a,show:e,onAnimationEnd:i}):null};const{isMobile:Ka}=Un.Z,qa=function(){const e=(0,s.v9)(T.Z.pluginSelectors.getPlugin),t=(0,s.v9)(T.Z.pluginSelectors.showIconButton),n=(0,s.v9)(T.Z.uiSelectors.showMessenger),o=(0,s.v9)(T.Z.popupSelectors.isFullscreenPopupActive),i=oa(),a=function(){const{isMobile:e}=Un.Z,t=(0,s.v9)(T.Z.pluginSelectors.isBooted),n=(0,s.v9)(T.Z.popupSelectors.showLabelBtn),o=oa(),r=(0,s.v9)(T.Z.uiSelectors.showMessenger)&&!Un.Z.isMobile,i=na();return!!t&&(!!r||!!o||(!n||!e)&&i)}(),l=e.buttonType===Ar.B.Legacy&&e.legacyImageUrl&&!n&&!i,c=(()=>{const t=e.getMargin();return{pluginPosition:e.getPosition(),mobileBubblePosition:e.mobileBubblePosition,xPosition:t.marginX,yPosition:t.marginY}})();return function(){const e=(0,s.I0)(),t=function(){const e=(0,s.v9)(T.Z.pluginSelectors.getPlugin),t=(0,s.v9)(T.Z.popupSelectors.showPopup),n=(0,s.v9)(T.Z.userSelectors.getPopUpChatId),o=na(),r=Yt.Z.getItem(Yn.Z.LABEL_BUTTON_VISIBILITY)??!0;return e.labelButton&&e.buttonType!==Ar.B.Legacy&&o&&r&&!n&&!t}(),n=function(){const e=(0,s.v9)(T.Z.popupSelectors.popupType),t=!na();return e===yr.kQ.LabelButton&&t}();(0,r.useEffect)((function(){t&&e(p.Z.popupActions.initializeLabelButton())}),[]),(0,r.useEffect)((function(){n&&e(p.Z.popupActions.setPopupActive({active:!1}))}),[e,n])}(),r.createElement(r.Fragment,null,t&&r.createElement(aa,null),!Ka&&r.createElement($a,null),r.createElement(ia,{"data-ch-testid":"launcher",hidden:!a,launcherPosition:c,isFullscreenPopupActive:o},l?r.createElement(Va,null):r.createElement(Wa,null)))};var Xa=n(48825),Ya=n(16231),Ja=n(14337),el=n(48126);const tl=$i.zo.div.withConfig({displayName:"LabelButtonStatus__Status",componentId:"ch-front__sc-c6z8yp-0"})(["display:flex;column-gap:4px;align-items:center;",""],(e=>{let{dim:t,foundation:n}=e;return t?$i.iv`
|
||
color: ${null==n?void 0:n.theme["txt-black-dark"]};
|
||
`:""})),nl=function(){const{translate:e}=(0,Ti.Z)();return(0,s.v9)(T.Z.channelOperationSelectors.isSingleOperation)?r.createElement(tl,null,r.createElement(el.Jj,null),r.createElement(el.p3,{typo:Ui.ZT.PxSize13})):r.createElement(tl,{dim:!0},r.createElement(_i.J,{source:Ja.S,size:pi.J.XS}),r.createElement(ys.Z,{typo:Ui.ZT.PxSize13,color:"txt-black-dark",truncated:!0},e("ch.label_button.description")))},ol=function(){const e=(0,s.I0)();return{handleClickButton:()=>{e(p.Z.uiActions.setShowMessenger({showMessenger:!0})),e(p.Z.popupActions.setPopupActive({active:!1}))},handleClickCloseButton:t=>{t.stopPropagation(),e(p.Z.popupActions.setPopupActive({active:!1}))}}},rl=$i.zo.div.withConfig({displayName:"ChatButtonAvatar__Background",componentId:"ch-front__sc-xu2avx-0"})(["display:flex;align-items:center;justify-content:center;width:","px;height:","px;cursor:pointer;border-radius:","px;",""],42,42,18,(e=>{let{foundation:t}=e;return $i.iv`
|
||
background: linear-gradient(
|
||
180deg,
|
||
${null==t?void 0:t.color} 0%,
|
||
${null==t?void 0:t.gradientColor} 100%
|
||
);
|
||
`})),il=$i.zo.img.withConfig({displayName:"ChatButtonAvatar__CustomImage",componentId:"ch-front__sc-xu2avx-1"})(["display:block;width:","px;height:","px;background-color:",";border-radius:","px;object-fit:cover;"],42,42,(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bgtxt-absolute-white-normal"]}),18);function sl(){const e=(0,s.v9)(T.Z.pluginSelectors.iconButton),t=(0,s.v9)(T.Z.pluginSelectors.buttonType),{pluginIconColor:n}=(0,s.v9)(T.Z.channelProfileSelectors.channelProfileTheme,s.wU),o=(0,s.v9)(T.Z.pluginSelectors.customImageUrl),i=r.createElement(rl,null,r.createElement(Ua,{icon:(a=e,l=n,"channel-filled"===a&&"#ffffff"!==l?"channel":a),width:28,height:28,color:n}));var a,l;const c=r.createElement(il,{src:o,alt:""});return t===Ar.B.CustomImage?c:i}const al=$i.zo.button.withConfig({displayName:"MobileLabelButton__LabelButton",componentId:"ch-front__sc-iun71h-0"})(["position:relative;box-sizing:border-box;display:flex;align-items:center;width:100%;padding:12px 14px;cursor:pointer;",";background:",";border-radius:20px;"],(e=>{let{foundation:t}=e;return null==t?void 0:t.elevation.ev3()}),(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-white-high"]})),ll=$i.zo.div.withConfig({displayName:"MobileLabelButton__Wrapper",componentId:"ch-front__sc-iun71h-1"})(["position:relative;"]),cl=$i.zo.div.withConfig({displayName:"MobileLabelButton__TextWrapper",componentId:"ch-front__sc-iun71h-2"})(["display:flex;flex:1;flex-direction:column;max-width:100%;padding:0 0 0 2px;margin-left:8px;overflow:hidden;"]),El=$i.zo.div.withConfig({displayName:"MobileLabelButton__Title",componentId:"ch-front__sc-iun71h-3"})(["padding-left:1px;overflow:hidden;font-weight:bold;color:",";"," text-align:left;text-overflow:ellipsis;white-space:nowrap;"],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-pure"]}),Ui.ZT.PxSize16),ul=$i.zo.button.withConfig({displayName:"MobileLabelButton__CloseButton",componentId:"ch-front__sc-iun71h-4"})(["position:absolute;top:-12px;right:-6px;box-sizing:border-box;width:30px;height:30px;padding:5px;color:",";cursor:pointer;"," background-color:",";border-radius:18px;"],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-dark"]}),(e=>{let{foundation:t}=e;return null==t?void 0:t.elevation.ev2()}),(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-white-high"]}));function hl(){const{translate:e}=(0,Ti.Z)(),t=(0,s.v9)(T.Z.pluginSelectors.getPlugin),n=(0,s.v9)(T.Z.userSelectors.getLanguage),o=t.getLabelButtonText(n),{handleClickButton:i,handleClickCloseButton:a}=ol(),l=r.createElement(cl,null,r.createElement(El,null,o),r.createElement(nl,null)),c=r.createElement(ul,{type:"button","aria-label":e("ch.common.close"),onClick:a,"data-ch-testid":"label-button-close-button"},r.createElement(Xa.Z,{name:"cancel-bold",size:Ya.$.Small,defaultOpacity:1}));return r.createElement(ll,null,r.createElement(al,{type:"button",onClick:i},r.createElement(sl,null),l),c)}const dl=$i.zo.div.withConfig({displayName:"OperatorAvatars__Wrapper",componentId:"ch-front__sc-1sex4br-0"})(["position:relative;width:42px;height:42px;"]),_l=$i.iv`
|
||
position: absolute;
|
||
width: 24px;
|
||
height: 24px;
|
||
overflow: hidden;
|
||
background-color: ${e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-white-high"]}};
|
||
${e=>{let{src:t}=e;return(0,xi.Vz)(t)}}
|
||
border: 2px solid ${e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-white-high"]}};
|
||
border-radius: 12.6px;
|
||
`,pl=$i.zo.div.withConfig({displayName:"OperatorAvatars__FirstAvatar",componentId:"ch-front__sc-1sex4br-1"})(["top:-1px;left:-1px;",""],_l),ml=$i.zo.div.withConfig({displayName:"OperatorAvatars__SecondAvatar",componentId:"ch-front__sc-1sex4br-2"})(["right:-1px;bottom:-1px;",""],_l);function Sl(){const e=(0,s.v9)(T.Z.managersSelectors.getOperators);return r.createElement(dl,null,r.createElement(pl,{src:e[0].avatarUrl}),r.createElement(ml,{src:e[1].avatarUrl}))}const gl=$i.zo.button.withConfig({displayName:"PCLabelButton__LabelButton",componentId:"ch-front__sc-1viw4do-0"})(["position:relative;box-sizing:border-box;display:flex;align-items:center;width:100%;padding:14px 48px 14px 14px;cursor:pointer;",";background:",";border-radius:20px;"],(e=>{let{foundation:t}=e;return null==t?void 0:t.elevation.ev3()}),(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-white-high"]})),Tl=$i.zo.div.withConfig({displayName:"PCLabelButton__Wrapper",componentId:"ch-front__sc-1viw4do-1"})(["position:relative;min-width:270px;"]),Cl=$i.zo.div.withConfig({displayName:"PCLabelButton__TextWrapper",componentId:"ch-front__sc-1viw4do-2"})(["display:flex;flex:1;flex-direction:column;gap:2px;max-width:100%;padding:1px 2px;overflow:hidden;",""],(e=>{let{showAvatar:t}=e;return t&&$i.iv`
|
||
margin-left: 4px;
|
||
`})),Rl=$i.zo.div.withConfig({displayName:"PCLabelButton__Title",componentId:"ch-front__sc-1viw4do-3"})(["overflow:hidden;font-weight:bold;color:",";"," text-align:left;text-overflow:ellipsis;white-space:nowrap;"],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-pure"]}),Ui.ZT.PxSize15),fl=(0,$i.zo)(Xa.Z).withConfig({displayName:"PCLabelButton__CloseIcon",componentId:"ch-front__sc-1viw4do-4"})(["display:block;"]),Al=$i.zo.button.withConfig({displayName:"PCLabelButton__CloseButton",componentId:"ch-front__sc-1viw4do-5"})(["padding:4px;color:",";cursor:pointer;background-color:",";border-radius:18px;"],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-dark"]}),(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-black-lighter"]})),Il=$i.zo.div.withConfig({displayName:"PCLabelButton__CloseButtonArea",componentId:"ch-front__sc-1viw4do-6"})(["position:absolute;top:0;right:0;padding-top:10px;padding-right:10px;",""],(0,oo.jC)($i.iv`
|
||
${Al} {
|
||
background-color: ${e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-black-dark"]}};
|
||
}
|
||
`));function vl(){const{translate:e}=(0,Ti.Z)(),t=(0,s.v9)(T.Z.pluginSelectors.getPlugin),n=(0,s.v9)(T.Z.userSelectors.getLanguage),o=(0,s.v9)(T.Z.managersSelectors.getOperators),i=t.getLabelButtonText(n),{handleClickButton:a,handleClickCloseButton:l}=ol(),c=o.length>=2,E=r.createElement(Il,{onClick:l},r.createElement("span",{className:"a11y-hidden"},e("ch.common.close")),r.createElement(Al,null,r.createElement(fl,{name:"cancel-bold",size:Ya.$.Small,defaultOpacity:1}))),u=r.createElement(Cl,{showAvatar:c},r.createElement(Rl,null,i),r.createElement(nl,null));return r.createElement(Tl,null,r.createElement(gl,{type:"button",onClick:a},c&&r.createElement(Sl,null),u),E)}const yl=function(){return(0,r.useEffect)((()=>()=>{Yt.Z.setItem(Yn.Z.LABEL_BUTTON_VISIBILITY,!1)})),Un.Z.isMobile?r.createElement(hl,null):r.createElement(vl,null)},Ul=(0,Ri.iv)(["height:","px;background:var(--inverted-bg-lounge,rgba(36,36,40,0.9));border-radius:20px;backdrop-filter:blur(30px);"],84),Zl=Ri.ZP.div.withConfig({displayName:"MeetRingPopupContent__MobileBackground",componentId:"ch-front__sc-y33d0y-0"})(["",""],Ul);function Ol(){return r.createElement(Zl,null,r.createElement(Di,null))}const bl=Ri.ZP.div.withConfig({displayName:"MeetRingPopupContent__PCWrapper",componentId:"ch-front__sc-y33d0y-1"})(["width:320px;",""],Ul);function Nl(){return r.createElement(bl,null,r.createElement(Di,null))}const wl=400,Ll=[0,1,2,3,4,5,6,7],Ml=[50,56.25,62.5,68.75,75,81.25,87.5,93.75,100],Pl=$i.zo.div.withConfig({displayName:"MobileBubbleBackdrop__BackdropBlurLayer",componentId:"ch-front__sc-2ylxjx-0"})(["position:absolute;inset:0;z-index:",";backdrop-filter:blur(","px);pointer-events:none;mask:radial-gradient( ellipse at center,"," );",""],(e=>{let{layer:t}=e;return t}),(e=>{let{layer:t}=e;return 1*.5**t}),(e=>{let{layer:t}=e;return(e=>0===e?`\n rgba(0, 0, 0, 1) ${Ml[0]}%,\n rgba(0, 0, 0, 0) ${Ml[1]}%\n `:1===e?`\n rgba(0, 0, 0, 1) ${Ml[0]}%,\n rgba(0, 0, 0, 1) ${Ml[1]}%,\n rgba(0, 0, 0, 0) ${Ml[2]}%\n `:`\n rgba(0, 0, 0, 0) ${Ml[e-2]}%,\n rgba(0, 0, 0, 1) ${Ml[e-1]}%,\n rgba(0, 0, 0, 1) ${Ml[e]}%,\n rgba(0, 0, 0, 0) ${Ml[e+1]}%\n `)(t)}),(()=>$i.iv`
|
||
animation: ${Ao.Ji} ${wl}ms ${Ao.Zs}
|
||
${wl}ms both;
|
||
`)),Dl=$i.zo.div.withConfig({displayName:"MobileBubbleBackdrop__BackdropGradient",componentId:"ch-front__sc-2ylxjx-1"})(["position:absolute;top:-50px;left:-100px;z-index:-1;width:calc(100% + 200px);height:calc(100% + 100px);pointer-events:none;background:linear-gradient( 0deg,rgba(0,0,0,0.2) 0%,rgba(0,0,0,0) 78.33% );",""],(e=>{let{isTopPosition:t}=e;return t&&$i.iv`
|
||
transform: rotate(-180deg);
|
||
`}));function kl(e){let{isTopPosition:t}=e;return r.createElement(Dl,{isTopPosition:t},Ll.map((e=>r.createElement(Pl,{key:e,layer:e}))))}const{isKakaoInAppBrowser:xl}=Un.Z,Hl=$i.zo.div.withConfig({displayName:"MobileBubblePopupLayer__Wrapper",componentId:"ch-front__sc-13scx9p-0"})(["position:fixed;"," right:0;left:0;display:flex;justify-content:center;width:100%;",""],(e=>{let{isTopPosition:t}=e;return t?(0,$i.iv)(["top:0;"]):(0,$i.iv)(["bottom:0;"])}),(e=>{let{show:t,isTopPosition:n}=e;return t?(e=>(0,$i.iv)(["animation:"," ","ms "," backwards;"],(e=>(0,Ri.F4)(["from{opacity:0;transform:translate3d(0,",",0);}to{opacity:1;transform:translate3d(0,0,0);}"],e?"-10px":"10px"))(e),wl,Ao.Zs))(n):(0,$i.iv)(["animation:"," ","ms "," forwards;"],Ao.U6,wl,Ao.Zs)})),Gl=$i.zo.article.withConfig({displayName:"MobileBubblePopupLayer__Article",componentId:"ch-front__sc-13scx9p-1"})(["width:100%;min-width:288px;max-width:520px;margin:16px;"]);function Bl(e){let{children:t}=e;const n=(0,s.v9)(T.Z.pluginSelectors.getPlugin),o=(0,s.v9)(T.Z.popupSelectors.showPopup),{render:i,onAnimationEnd:a}=ui(o),l=(0,s.v9)(T.Z.popupSelectors.popupType);if(!i)return null;const c=l===yr.kQ.MeetRing||"top"===n.mobileBubblePosition;return r.createElement(Hl,{role:"dialog",isTopPosition:c,show:o,onAnimationEnd:a},!xl&&r.createElement(kl,{isTopPosition:c}),r.createElement(Gl,null,r.createElement("h2",{className:"a11y-hidden"},"Channel Talk pop-up"),t))}const Ql=r.lazy((()=>Promise.all([n.e(883),n.e(592),n.e(670)]).then(n.bind(n,49012)))),Wl=function(){const e=(0,s.v9)(T.Z.popupSelectors.popupType);return r.createElement(Bl,null,e===yr.kQ.MeetRing&&r.createElement(Ol,null),e===yr.kQ.PushMessage&&r.createElement(Ql,null),e===yr.kQ.LabelButton&&r.createElement(yl,null))};var Fl;!function(e){e.Left="left",e.Right="right",e.Top="top"}(Fl||(Fl={}));const zl=$i.zo.article.withConfig({displayName:"PCBubblePopupLayer__PCBubbleWrapper",componentId:"ch-front__sc-qr66bs-0"})(["position:fixed;"," min-width:230px;max-width:320px;"," ",""],(e=>{let{pluginPosition:t,xPosition:n,yPosition:o}=e;return"left"===t?(0,$i.iv)(["bottom:","px;left:","px;"],o,n):(0,$i.iv)(["right:","px;bottom:","px;"],n,o)}),(e=>{let{hasLinkButton:t}=e;return t&&(0,$i.iv)(["width:100%;"])}),(e=>{let{show:t,moveTo:n}=e;return t?(e=>(0,$i.iv)(["animation:"," ","ms "," backwards;"],(e=>(0,Ri.F4)(["from{opacity:0;transform:",";}to{opacity:1;transform:translate3d(0,0,0);}"],(e=>{switch(e){case Fl.Left:return"translate3d(10px, 0, 0)";case Fl.Right:return"translate3d(-10px, 0, 0)";default:return"translate3d(0, 10px, 0)"}})(e)))(e),wl,Ao.Zs))(n):(0,$i.iv)(["animation:"," ","ms "," both;"],Ao.U6,wl,Ao.Zs)}));function Vl(e){let{children:t,popupType:n}=e;const{handleInteracting:o,handleNotInteracting:i}=function(){const e=(0,s.I0)();return(0,r.useEffect)((()=>()=>{e(p.Z.popupActions.setBubbleInteracting({isBubbleInteracting:!1}))}),[e]),{handleInteracting:()=>{e(p.Z.popupActions.setBubbleInteracting({isBubbleInteracting:!0}))},handleNotInteracting:()=>{e(p.Z.popupActions.setBubbleInteracting({isBubbleInteracting:!1}))}}}(),{xPosition:a,yPosition:l,pluginPosition:c}=function(){const e=(0,s.v9)(T.Z.pluginSelectors.getPlugin),t=e.getMargin();return{xPosition:t.marginX,yPosition:t.marginY+vo.HN+vo.P8,pluginPosition:e.getPosition()}}(),E=(0,s.v9)(T.Z.popupSelectors.showPopup),u=(0,s.v9)(T.Z.popupSelectors.hasLinkButton),{render:h,onAnimationEnd:d}=ui(E),_=((e,t)=>t===yr.kQ.PushMessage||t===yr.kQ.MeetRing?Fl.Top:"left"===e?Fl.Right:Fl.Left)(c,n);return h?r.createElement(zl,{role:"dialog",xPosition:a,yPosition:l,pluginPosition:c,moveTo:_,hasLinkButton:u,show:E,onAnimationEnd:d,onMouseEnter:o,onMouseLeave:i,onFocus:o,onBlur:i},r.createElement("h2",{className:"a11y-hidden"},"Channel Talk pop-up"),t):null}const jl=r.lazy((()=>Promise.all([n.e(883),n.e(592),n.e(670)]).then(n.bind(n,62712)))),$l=function(){const e=(0,s.v9)(T.Z.popupSelectors.popupType);return r.createElement(Vl,{popupType:e},e===yr.kQ.MeetRing&&r.createElement(Nl,null),e===yr.kQ.PushMessage&&r.createElement(jl,null),e===yr.kQ.LabelButton&&r.createElement(yl,null))};let Kl;function ql(e,t){const n=(0,s.I0)(),o=(0,s.v9)(T.Z.popupSelectors.getAlertLevel),i=(0,s.v9)(T.Z.popupSelectors.curPopupMsgId),a=(0,s.v9)(T.Z.popupSelectors.popupType),l=(0,r.useRef)(null),c=(0,r.useCallback)((()=>{n(p.Z.popupActions.setPopupActive({active:!1}))}),[n]),E=a===yr.kQ.LabelButton?c:t,u=(0,r.useCallback)((()=>{l.current&&(clearTimeout(l.current),l.current=null),d.Z.parentWindow.removeEventListener(e,E)}),[E,e]),h=(0,r.useCallback)((()=>{l.current||(l.current=window.setTimeout((()=>{d.Z.parentWindow.addEventListener(e,E,{once:!0})}),1e4))}),[E,e]);(0,r.useEffect)((function(){return o===lo.Z.ALERT?()=>{}:(h(),u)}),[o,h,u,i])}!function(e){e.PAGEHIDE="pagehide",e.SCROLL="scroll"}(Kl||(Kl={}));const Xl=function(){return function(){const e=(0,s.I0)(),t=(0,r.useCallback)((()=>{e(p.Z.popupActions.requestClosePopUp()),e(p.Z.popupActions.setPopupActive({active:!1}))}),[e]);ql(Kl.SCROLL,t)}(),Un.Z.isMobile?r.createElement(Wl,null):r.createElement($l,null)};const Yl=r.lazy((()=>Promise.all([n.e(883),n.e(592),n.e(670)]).then(n.bind(n,62962)))),Jl=function(){!function(){const e=(0,r.useCallback)((()=>{ie.delete("/front/v7/users/me/pop-up",{keepalive:!0}).withToken().run()}),[]);ql(Kl.PAGEHIDE,e)}();const e=(0,s.v9)(T.Z.popupSelectors.isFullscreen),t=(0,s.v9)(T.Z.popupSelectors.showPopup),[n]=(0,Xs.Z)({actionCreator:()=>p.Z.popupActions.initializePopup({showPopup:t,emojiIsEmpty:rt.ZP.isEmpty()})});return n?null:e?r.createElement(Yl,null):r.createElement(Xl,null)};var ec=n(88964),tc=n(96503);const nc=function(e){let{children:t}=e;const n=(0,$i.je)()??Jr.I,o=d.Z.chPluginEntryElement,[i,s]=(0,r.useState)(void 0),a=(0,r.useCallback)((e=>{e&&(s(e),as.Z.setDOMNodes({shadowRootWrapper:e}))}),[]);return o?ps.createPortal(r.createElement(tc.ZP.div,{ref:e=>{null==e||e.style.setProperty("display","block","important")},mode:"open"},r.createElement("div",{id:Ao.Kn,ref:a},r.createElement(Ss,{target:i},r.createElement(Ao.cU,{foundation:n}),r.createElement(ec.c,{foundation:n}),i&&t))),o):null};var oc=n(47134);const rc=r.lazy((()=>Promise.all([n.e(883),n.e(142),n.e(592),n.e(743)]).then(n.bind(n,58675)))),ic=function(){const e=(0,$i.je)()??Jr.I,t=(0,s.v9)(T.Z.popupSelectors.showPopup),n=(0,s.v9)(T.Z.uiSelectors.showMessenger),o=(0,s.v9)(T.Z.pluginSelectors.isBooted),i=(0,s.v9)(T.Z.uiSelectors.getMessengerSizeType),a=(0,s.v9)(T.Z.uiSelectors.getMessengerEdgeSize);ta();const[l,c]=(0,r.useState)(n),[E,u]=(0,r.useTransition)();(0,Xs.Z)({actionCreator:()=>p.Z.initializeActions.initializeApp()}),(0,r.useEffect)((()=>{n&&!l&&u((()=>{c(!0)}))}),[n,l,u]);const h=(0,qs.Z)(t,wl),_=d.Z.chPluginElement,m=_?r.createElement(Ri.LC,{target:_},r.createElement(Ao.eY,{messengerSize:Io.L[i],messengerEdgeSize:a,foundation:e})):null;return r.createElement(r.Fragment,null,r.createElement(r.StrictMode,null,m,r.createElement(nc,null,o&&r.createElement(qa,null),r.createElement(r.Suspense,{fallback:null},h&&r.createElement(Jl,null)))),E&&r.createElement(oc.Z,null),r.createElement(r.Suspense,{fallback:r.createElement(oc.Z,null)},l&&r.createElement(rc,null)))};c.Z.lazyLoading(),(0,o.MD)(),l().polyfill();const sc=window.document.getElementById("main");(0,i.s)(sc).render(r.createElement(s.zt,{store:qr.getStore()},r.createElement(Ks,null,r.createElement(ic,null))))},84555:(e,t,n)=>{"use strict";var o;n.d(t,{Z:()=>r}),function(e){e.OPEN_WAM_MODAL="OPEN_WAM_MODAL",e.CLOSE_WAM_MODAL="CLOSE_WAM_MODAL",e.EXECUTE_ACTION="EXECUTE_ACTION",e.EXECUTE_ACTION_SUCCESS="EXECUTE_ACTION_SUCCESS",e.EXECUTE_ACTION_ERROR="EXECUTE_ACTION_ERROR",e.REQUEST_GET_APP_COMMANDS="REQUEST_GET_APP_COMMANDS",e.REQUEST_GET_APP_COMMANDS_SUCCESS="REQUEST_GET_APP_COMMANDS_SUCCESS",e.REQUEST_GET_APP_COMMANDS_ERROR="REQUEST_GET_APP_COMMANDS_ERROR",e.REQUEST_GET_APP_COMMANDS_COMPLETE="REQUEST_GET_APP_COMMANDS_COMPLETE",e.REQUEST_EXECUTE_COMMAND="REQUEST_EXECUTE_COMMAND",e.REQUEST_EXECUTE_COMMAND_SUCCESS="REQUEST_EXECUTE_COMMAND_SUCCESS",e.REQUEST_EXECUTE_COMMAND_ERROR="REQUEST_EXECUTE_COMMAND_ERROR",e.REQUEST_EXECUTE_COMMAND_COMPLETE="REQUEST_EXECUTE_COMMAND_COMPLETE",e.REQUEST_GET_X_ACCESS_TOKEN="REQUEST_GET_X_ACCESS_TOKEN",e.REQUEST_GET_X_ACCESS_TOKEN_SUCCESS="REQUEST_GET_X_ACCESS_TOKEN_SUCCESS",e.REQUEST_GET_X_ACCESS_TOKEN_ERROR="REQUEST_GET_X_ACCESS_TOKEN_ERROR",e.REQUEST_GET_X_ACCESS_TOKEN_COMPLETE="REQUEST_GET_X_ACCESS_TOKEN_COMPLETE",e.REQUEST_REFRESH_X_ACCESS_TOKEN="REQUEST_REFRESH_X_ACCESS_TOKEN",e.REQUEST_REFRESH_X_ACCESS_TOKEN_SUCCESS="REQUEST_REFRESH_X_ACCESS_TOKEN_SUCCESS",e.REQUEST_REFRESH_X_ACCESS_TOKEN_ERROR="REQUEST_REFRESH_X_ACCESS_TOKEN_ERROR",e.REQUEST_REFRESH_X_ACCESS_TOKEN_COMPLETE="REQUEST_REFRESH_X_ACCESS_TOKEN_COMPLETE",e.SET_X_ACCESS_TOKEN="SET_X_ACCESS_TOKEN",e.REQUEST_GET_COMMAND_AUTOCOMPLETE="REQUEST_GET_COMMAND_AUTOCOMPLETE",e.REQUEST_GET_COMMAND_AUTOCOMPLETE_SUCCESS="REQUEST_GET_COMMAND_AUTOCOMPLETE_SUCCESS",e.REQUEST_GET_COMMAND_AUTOCOMPLETE_ERROR="REQUEST_GET_COMMAND_AUTOCOMPLETE_ERROR",e.REQUEST_GET_COMMAND_AUTOCOMPLETE_COMPLETE="REQUEST_GET_COMMAND_AUTOCOMPLETE_COMPLETE",e.EXECUTE_WAM_EVENT="EXECUTE_WAM_EVENT",e.EXECUTE_WAM_EVENT_SUCCESS="EXECUTE_WAM_EVENT_SUCCESS",e.EXECUTE_WAM_EVENT_ERROR="EXECUTE_WAM_EVENT_ERROR",e.HYDRATE_COMMAND_INPUT="HYDRATE_COMMAND_INPUT",e.INITIALIZE_COMMAND_INPUT="INITIALIZE_COMMAND_INPUT",e.FINALIZE_COMMAND_INPUT="FINALIZE_COMMAND_INPUT",e.SET_COMMAND_INPUT_PARAM_VALUE="SET_COMMAND_INPUT_PARAM_VALUE",e.DELETE_COMMAND_INPUT_PARAM="DELETE_COMMAND_INPUT_PARAM",e.ADD_COMMAND_INPUT_PARAM="ADD_COMMAND_INPUT_PARAM",e.SET_COMMAND_INPUT_ERRORS="SET_COMMAND_INPUT_ERRORS",e.SET_COMMAND_INPUT_PARAM_ERROR="SET_COMMAND_INPUT_PARAM_ERROR",e.REQUEST_CREATE_EVENT="REQUEST_CREATE_EVENT",e.REQUEST_CREATE_EVENT_SUCCESS="REQUEST_CREATE_EVENT_SUCCESS",e.REQUEST_CREATE_EVENT_ERROR="REQUEST_CREATE_EVENT_ERROR",e.REQUEST_CREATE_EVENT_COMPLETE="REQUEST_CREATE_EVENT_COMPLETE",e.REQUEST_GET_HOME="REQUEST_GET_HOME",e.REQUEST_GET_HOME_SUCCESS="REQUEST_GET_HOME_SUCCESS",e.REQUEST_GET_HOME_COMPLETE="REQUEST_GET_HOME_COMPLETE",e.REQUEST_GET_HOME_ERROR="REQUEST_GET_HOME_ERROR",e.REQUEST_GET_LOUNGE_MEDIA="REQUEST_GET_LOUNGE_MEDIA",e.REQUEST_GET_LOUNGE_MEDIA_SUCCESS="REQUEST_GET_LOUNGE_MEDIA_SUCCESS",e.REQUEST_GET_LOUNGE_MEDIA_ERROR="REQUEST_GET_LOUNGE_MEDIA_ERROR",e.REQUEST_GET_CHANNEL_PHONE_NUMBER="REQUEST_GET_CHANNEL_PHONE_NUMBER",e.REQUEST_GET_CHANNEL_PHONE_NUMBER_SUCCESS="REQUEST_GET_CHANNEL_PHONE_NUMBER_SUCCESS",e.REQUEST_GET_CHANNEL_PHONE_NUMBER_ERROR="REQUEST_GET_CHANNEL_PHONE_NUMBER_ERROR",e.REQUEST_GET_CHANNEL_PHONE_NUMBER_COMPLETE="REQUEST_GET_CHANNEL_PHONE_NUMBER_COMPLETE",e.REQUEST_GET_CHANNEL_BY_PLUGIN_KEY="REQUEST_GET_CHANNEL_BY_PLUGIN_KEY",e.REQUEST_GET_CHANNEL_BY_PLUGIN_KEY_SUCCESS="REQUEST_GET_CHANNEL_BY_PLUGIN_KEY_SUCCESS",e.REQUEST_GET_CHANNEL_BY_PLUGIN_KEY_ERROR="REQUEST_GET_CHANNEL_BY_PLUGIN_KEY_ERROR",e.CLEAR_CHANNEL_PHONE_NUMBER="CLEAR_CHANNEL_PHONE_NUMBER",e.RECEIVED_UPDATE_CHANNEL="RECEIVED_UPDATE_CHANNEL",e.REQUEST_GET_APP_MESSENGER_DEEP_LINK="REQUEST_GET_APP_MESSENGER_DEEP_LINK",e.REQUEST_GET_APP_MESSENGER_DEEP_LINK_SUCCESS="REQUEST_GET_APP_MESSENGER_DEEP_LINK_SUCCESS",e.REQUEST_GET_APP_MESSENGER_DEEP_LINK_ERROR="REQUEST_GET_APP_MESSENGER_DEEP_LINK_ERROR",e.REQUEST_GET_APP_MESSENGER_DEEP_LINK_COMPLETE="REQUEST_GET_APP_MESSENGER_DEEP_LINK_COMPLETE",e.REQUEST_UPDATE_USER="REQUEST_UPDATE_USER",e.REQUEST_UPDATE_USER_SUCCESS="REQUEST_UPDATE_USER_SUCCESS",e.REQUEST_UPDATE_USER_ERROR="REQUEST_UPDATE_USER_ERROR",e.REQUEST_UPDATE_USER_COMPLETE="REQUEST_UPDATE_USER_COMPLETE",e.RECEIVED_UPDATE_USER="RECEIVED_UPDATE_USER",e.CHANGED_USER_PROFILE="CHANGED_USER_PROFILE",e.REQUEST_GET_USER="REQUEST_GET_USER",e.REQUEST_GET_USER_SUCCESS="REQUEST_GET_USER_SUCCESS",e.REQUEST_GET_USER_ERROR="REQUEST_GET_USER_ERROR",e.REQUEST_GET_USER_COMPLETE="REQUEST_GET_USER_COMPLETE",e.REQUEST_ADD_TAGS="REQUEST_ADD_TAGS",e.REQUEST_ADD_TAGS_SUCCESS="REQUEST_ADD_TAGS_SUCCESS",e.REQUEST_ADD_TAGS_ERROR="REQUEST_ADD_TAGS_ERROR",e.REQUEST_REMOVE_TAGS="REQUEST_REMOVE_TAGS",e.REQUEST_REMOVE_TAGS_SUCCESS="REQUEST_REMOVE_TAGS_SUCCESS",e.REQUEST_REMOVE_TAGS_ERROR="REQUEST_REMOVE_TAGS_ERROR",e.REQUEST_BOOT="REQUEST_BOOT",e.REQUEST_BOOT_SUCCESS="REQUEST_BOOT_SUCCESS",e.REQUEST_BOOT_ERROR="REQUEST_BOOT_ERROR",e.REQUEST_BOOT_COMPLETE="REQUEST_BOOT_COMPLETE",e.REQUEST_TOUCH="REQUEST_TOUCH",e.REQUEST_TOUCH_SUCCESS="REQUEST_TOUCH_SUCCESS",e.REQUEST_TOUCH_ERROR="REQUEST_TOUCH_ERROR",e.REQUEST_GET_SOCKET_ADDRESS="REQUEST_GET_SOCKET_ADDRESS",e.REQUEST_GET_SOCKET_ADDRESS_SUCCESS="REQUEST_GET_SOCKET_ADDRESS_SUCCESS",e.REQUEST_GET_SOCKET_ADDRESS_ERROR="REQUEST_GET_SOCKET_ADDRESS_ERROR",e.SHUTDOWN="SHUTDOWN",e.REQUEST_GET_FOLLOW_UP_SCHEMAS="REQUEST_GET_FOLLOW_UP_SCHEMAS",e.REQUEST_GET_FOLLOW_UP_SCHEMAS_SUCCESS="REQUEST_GET_FOLLOW_UP_SCHEMAS_SUCCESS",e.REQUEST_GET_FOLLOW_UP_SCHEMAS_ERROR="REQUEST_GET_FOLLOW_UP_SCHEMAS_ERROR",e.REQUEST_GET_UNREAD_USER_CHAT_LIST="REQUEST_GET_UNREAD_USER_CHAT_LIST",e.REQUEST_GET_UNREAD_USER_CHAT_LIST_SUCCESS="REQUEST_GET_UNREAD_USER_CHAT_LIST_SUCCESS",e.REQUEST_GET_UNREAD_USER_CHAT_LIST_ERROR="REQUEST_GET_UNREAD_USER_CHAT_LIST_ERROR",e.REQUEST_GET_USER_CHAT_LIST="REQUEST_GET_USER_CHAT_LIST",e.REQUEST_GET_USER_CHAT_LIST_SUCCESS="REQUEST_GET_USER_CHAT_LIST_SUCCESS",e.REQUEST_GET_USER_CHAT_LIST_ERROR="REQUEST_GET_USER_CHAT_LIST_ERROR",e.REQUEST_GET_USER_CHAT_LIST_COMPLETE="REQUEST_GET_USER_CHAT_LIST_COMPLETE",e.REQUEST_GET_NEXT_USER_CHAT_LIST="REQUEST_GET_NEXT_USER_CHAT_LIST",e.REQUEST_GET_NEXT_USER_CHAT_LIST_SUCCESS="REQUEST_GET_NEXT_USER_CHAT_LIST_SUCCESS",e.REQUEST_GET_NEXT_USER_CHAT_LIST_ERROR="REQUEST_GET_NEXT_USER_CHAT_LIST_ERROR",e.REQUEST_GET_USER_CHAT="REQUEST_GET_USER_CHAT",e.REQUEST_GET_USER_CHAT_SUCCESS="REQUEST_GET_USER_CHAT_SUCCESS",e.REQUEST_GET_USER_CHAT_ERROR="REQUEST_GET_USER_CHAT_ERROR",e.REQUEST_GET_USER_CHAT_COMPLETE="REQUEST_GET_USER_CHAT_COMPLETE",e.REQUEST_GET_POPUP_USER_CHAT="REQUEST_GET_POPUP_USER_CHAT",e.REQUEST_GET_POPUP_USER_CHAT_SUCCESS="REQUEST_GET_POPUP_USER_CHAT_SUCCESS",e.REQUEST_GET_POPUP_USER_CHAT_ERROR="REQUEST_GET_POPUP_USER_CHAT_ERROR",e.REQUEST_GET_POPUP_USER_CHAT_COMPLETE="REQUEST_GET_POPUP_USER_CHAT_COMPLETE",e.REQUEST_GET_MESSAGES="REQUEST_GET_MESSAGES",e.REQUEST_GET_MESSAGES_SUCCESS="REQUEST_GET_MESSAGES_SUCCESS",e.REQUEST_GET_MESSAGES_ERROR="REQUEST_GET_MESSAGES_ERROR",e.REQUEST_GET_MESSAGES_COMPLETE="REQUEST_GET_MESSAGES_COMPLETE",e.REQUEST_GET_MESSAGES_ON_RECONNECT="REQUEST_GET_MESSAGES_ON_RECONNECT",e.REQUEST_GET_MESSAGES_ON_RECONNECT_SUCCESS="REQUEST_GET_MESSAGES_ON_RECONNECT_SUCCESS",e.REQUEST_GET_MESSAGES_ON_RECONNECT_ERROR="REQUEST_GET_MESSAGES_ON_RECONNECT_ERROR",e.REQUEST_GET_NEXT_MESSAGES="REQUEST_GET_NEXT_MESSAGES",e.REQUEST_GET_NEXT_MESSAGES_SUCCESS="REQUEST_GET_NEXT_MESSAGES_SUCCESS",e.REQUEST_GET_NEXT_MESSAGES_ERROR="REQUEST_GET_NEXT_MESSAGES_ERROR",e.REQUEST_CREATE_MESSAGE="REQUEST_CREATE_MESSAGE",e.REQUEST_CREATE_MESSAGE_SUCCESS="REQUEST_CREATE_MESSAGE_SUCCESS",e.REQUEST_CREATE_MESSAGE_ERROR="REQUEST_CREATE_MESSAGE_ERROR",e.REQUEST_CREATE_MESSAGE_COMPLETE="REQUEST_CREATE_MESSAGE_COMPLETE",e.REQUEST_CREATE_LOCAL_MESSAGE="REQUEST_CREATE_LOCAL_MESSAGE",e.DELETE_LOCAL_MESSAGE="DELETE_LOCAL_MESSAGE",e.REQUEST_TRANSLATE_MESSAGE="REQUEST_TRANSLATE_MESSAGE",e.REQUEST_TRANSLATE_MESSAGE_SUCCESS="REQUEST_TRANSLATE_MESSAGE_SUCCESS",e.REQUEST_TRANSLATE_MESSAGE_ERROR="REQUEST_TRANSLATE_MESSAGE_ERROR",e.SHOW_TRANSLATED_MESSAGE="SHOW_TRANSLATED_MESSAGE",e.UNDO_TRANSLATED_MESSAGE="UNDO_TRANSLATED_MESSAGE",e.REQUEST_CREATE_USER_CHAT="REQUEST_CREATE_USER_CHAT",e.REQUEST_CREATE_USER_CHAT_SUCCESS="REQUEST_CREATE_USER_CHAT_SUCCESS",e.REQUEST_CREATE_USER_CHAT_ERROR="REQUEST_CREATE_USER_CHAT_ERROR",e.REQUEST_CREATE_USER_CHAT_COMPLETE="REQUEST_CREATE_USER_CHAT_COMPLETE",e.REQUEST_LEAVE_USER_CHAT="REQUEST_LEAVE_USER_CHAT",e.REQUEST_LEAVE_USER_CHAT_SUCCESS="REQUEST_LEAVE_USER_CHAT_SUCCESS",e.REQUEST_LEAVE_USER_CHAT_ERROR="REQUEST_LEAVE_USER_CHAT_ERROR",e.REQUEST_LEAVE_USER_CHAT_COMPLETE="REQUEST_LEAVE_USER_CHAT_COMPLETE",e.REQUEST_READ_USER_CHAT="REQUEST_READ_USER_CHAT",e.REQUEST_READ_USER_CHAT_SUCCESS="REQUEST_READ_USER_CHAT_SUCCESS",e.REQUEST_READ_USER_CHAT_ERROR="REQUEST_READ_USER_CHAT_ERROR",e.REQUEST_READ_USER_CHAT_COMPLETE="REQUEST_READ_USER_CHAT_COMPLETE",e.REQUEST_READ_ALL_USER_CHAT="REQUEST_READ_ALL_USER_CHAT",e.REQUEST_READ_ALL_USER_CHAT_SUCCESS="REQUEST_READ_ALL_USER_CHAT_SUCCESS",e.REQUEST_READ_ALL_USER_CHAT_ERROR="REQUEST_READ_ALL_USER_CHAT_ERROR",e.RECEIVED_CREATE_MESSAGE="RECEIVED_CREATE_MESSAGE",e.RECEIVED_UPDATE_MESSAGE="RECEIVED_UPDATE_MESSAGE",e.RECEIVED_UPDATE_USER_CHAT="RECEIVED_UPDATE_USER_CHAT",e.RECEIVED_DELETE_USER_CHAT="RECEIVED_DELETE_USER_CHAT",e.RECEIVED_CREATE_SESSION="RECEIVED_CREATE_SESSION",e.RECEIVED_UPDATE_SESSION="RECEIVED_UPDATE_SESSION",e.RECEIVED_DELETE_SESSION="RECEIVED_DELETE_SESSION",e.RECEIVED_UPDATE_LIVE_MEET="RECEIVED_UPDATE_LIVE_MEET",e.RECEIVED_DELETE_LIVE_MEET="RECEIVED_DELETE_LIVE_MEET",e.UPSERT_MESSAGE="UPSERT_MESSAGE",e.SET_LANGUAGE_CONVERSION_MESSAGE_ID="SET_LANGUAGE_CONVERSION_MESSAGE_ID",e.REQUEST_UPDATE_MARKETING_EVENT="REQUEST_UPDATE_MARKETING_EVENT",e.REQUEST_UPDATE_MARKETING_EVENT_SUCCESS="REQUEST_UPDATE_MARKETING_EVENT_SUCCESS",e.REQUEST_UPDATE_MARKETING_EVENT_ERROR="REQUEST_UPDATE_MARKETING_EVENT_ERROR",e.REQUEST_DELETE_MESSAGE="REQUEST_DELETE_MESSAGE",e.REQUEST_DELETE_MESSAGE_SUCCESS="REQUEST_DELETE_MESSAGE_SUCCESS",e.REQUEST_DELETE_MESSAGE_ERROR="REQUEST_DELETE_MESSAGE_ERROR",e.REQUEST_DELETE_MESSAGE_COMPLETE="REQUEST_DELETE_MESSAGE_COMPLETE",e.SET_PARAM_USER_CHAT_ID="SET_PARAM_USER_CHAT_ID",e.RESET_PARAM_USER_CHAT_ID="RESET_PARAM_USER_CHAT_ID",e.REQUEST_SWITCH_TO_USER_CHAT="REQUEST_SWITCH_TO_USER_CHAT",e.REQUEST_SWITCH_TO_USER_CHAT_SUCCESS="REQUEST_SWITCH_TO_USER_CHAT_SUCCESS",e.REQUEST_SWITCH_TO_USER_CHAT_ERROR="REQUEST_SWITCH_TO_USER_CHAT_ERROR",e.REQUEST_SWITCH_TO_USER_CHAT_COMPLETE="REQUEST_SWITCH_TO_USER_CHAT_COMPLETE",e.REQUEST_GET_REACTORS="REQUEST_GET_REACTORS",e.REQUEST_GET_REACTORS_SUCCESS="REQUEST_GET_REACTORS_SUCCESS",e.REQUEST_GET_REACTORS_ERROR="REQUEST_GET_REACTORS_ERROR",e.REQUEST_GET_OPERATORS="REQUEST_GET_OPERATORS",e.REQUEST_GET_OPERATORS_SUCCESS="REQUEST_GET_OPERATORS_SUCCESS",e.REQUEST_GET_OPERATORS_ERROR="REQUEST_GET_OPERATORS_ERROR",e.SET_SHOW_CHANNEL_BUTTON="SET_SHOW_CHANNEL_BUTTON",e.SET_SHOW_MESSENGER="SET_SHOW_MESSENGER",e.ENTER_USER_CHAT="ENTER_USER_CHAT",e.EXIT_USER_CHAT="EXIT_USER_CHAT",e.START_TYPING="START_TYPING",e.STOP_TYPING="STOP_TYPING",e.RECEIVED_START_TYPING="RECEIVED_START_TYPING",e.RECEIVED_STOP_TYPING="RECEIVED_STOP_TYPING",e.SET_TRANSLATION_VISIBILITY="SET_TRANSLATION_VISIBILITY",e.SET_NOTIFICATION_SOUND_MODE="SET_NOTIFICATION_SOUND_MODE",e.URL_CLICKED="URL_CLICKED",e.OPEN_CHAT="OPEN_CHAT",e.GO_USER_CHAT="GO_USER_CHAT",e.GO_NEW_USER_CHAT="GO_NEW_USER_CHAT",e.CHANGE_VISIBILITY_STATE="CHANGE_VISIBILITY_STATE",e.RECEIVED_DESK_MESSAGE="RECEIVED_DESK_MESSAGE",e.SET_APPEARANCE="SET_APPEARANCE",e.SET_KEYBOARD_OPEN="SET_KEYBOARD_OPEN",e.SET_TUTORIAL_MODE="SET_TUTORIAL_MODE",e.INITIALIZE_CUSTOM_LAUNCHER_SELECTOR="INITIALIZE_CUSTOM_LAUNCHER_SELECTOR",e.GO_LOUNGE="GO_LOUNGE",e.SET_COLLAPSE_ALF_BANNER="SET_COLLAPSE_ALF_BANNER",e.HISTORY_CHANGED="HISTORY_CHANGED",e.INITIALIZE_MESSENGER_STYLE="INITIALIZE_MESSENGER_STYLE",e.SET_MESSENGER_SIZE_TYPE="SET_MESSENGER_SIZE_TYPE",e.TOGGLE_MESSENGER_SIZE="TOGGLE_MESSENGER_SIZE",e.REQUEST_GET_COUNTRIES="REQUEST_GET_COUNTRIES",e.REQUEST_GET_COUNTRIES_SUCCESS="REQUEST_GET_COUNTRIES_SUCCESS",e.REQUEST_GET_COUNTRIES_ERROR="REQUEST_GET_COUNTRIES_ERROR",e.REQUEST_GET_COUNTRIES_COMPLETE="REQUEST_GET_COUNTRIES_COMPLETE",e.SET_POPUP_ACTIVE="SET_POPUP_ACTIVE",e.RECEIVED_PUSH_MESSAGE="RECEIVED_PUSH_MESSAGE",e.SHOW_LABEL_BUTTON="SHOW_LABEL_BUTTON",e.UPDATE_POPUP="UPDATE_POPUP",e.SET_HOVER_OR_FOCUS_BUBBLE="SET_HOVER_OR_FOCUS_BUBBLE",e.REQUEST_CLOSE_POP_UP="REQUEST_CLOSE_POP_UP",e.REQUEST_CLOSE_POP_UP_SUCCESS="REQUEST_CLOSE_POP_UP_SUCCESS",e.REQUEST_CLOSE_POP_UP_ERROR="REQUEST_CLOSE_POP_UP_ERROR",e.REQUEST_CLOSE_POP_UP_COMPLETE="REQUEST_CLOSE_POP_UP_COMPLETE",e.REQUEST_CONNECT_SOCKET="REQUEST_CONNECT_SOCKET",e.REQUEST_CONNECT_SOCKET_SUCCESS="REQUEST_CONNECT_SOCKET_SUCCESS",e.REQUEST_CONNECT_SOCKET_ERROR="REQUEST_CONNECT_SOCKET_ERROR",e.SOCKET_READY="SOCKET_READY",e.SOCKET_RECONNECTED="SOCKET_RECONNECTED",e.SOCKET_DISCONNECTED="SOCKET_DISCONNECTED",e.CHECK_CONNECTION="CHECK_CONNECTION",e.REQUEST_GET_EMOJI_INFO="REQUEST_GET_EMOJI_INFO",e.REQUEST_GET_EMOJI_INFO_SUCCESS="REQUEST_GET_EMOJI_INFO_SUCCESS",e.REQUEST_GET_EMOJI_INFO_ERROR="REQUEST_GET_EMOJI_INFO_ERROR",e.REQUEST_GET_EMOJI_INFO_COMPLETE="REQUEST_GET_EMOJI_INFO_COMPLETE",e.REQUEST_GET_FILE_ICON_INFO="REQUEST_GET_FILE_ICON_INFO",e.REQUEST_GET_FILE_ICON_INFO_SUCCESS="REQUEST_GET_FILE_ICON_INFO_SUCCESS",e.REQUEST_GET_FILE_ICON_INFO_ERROR="REQUEST_GET_FILE_ICON_INFO_ERROR",e.ENQUEUE_FILES_TO_UPLOAD_QUEUE="ENQUEUE_FILES_TO_UPLOAD_QUEUE",e.DEQUEUE_FILES_FROM_UPLOAD_QUEUE="DEQUEUE_FILES_FROM_UPLOAD_QUEUE",e.FLUSH_UPLOAD_QUEUE="FLUSH_UPLOAD_QUEUE",e.SET_MEMORY_FILE_STATE="SET_MEMORY_FILE_STATE",e.SET_FILE_UPLOAD_PROGRESS="SET_FILE_UPLOAD_PROGRESS",e.REQUEST_UPLOAD_FILE="REQUEST_UPLOAD_FILE",e.REQUEST_UPLOAD_FILE_SUCCESS="REQUEST_UPLOAD_FILE_SUCCESS",e.REQUEST_UPLOAD_FILE_ERROR="REQUEST_UPLOAD_FILE_ERROR",e.REGISTER_UPLOADED_FILE="REGISTER_UPLOADED_FILE",e.REQUEST_GET_AVAILABLE_LANGUAGES="REQUEST_GET_AVAILABLE_LANGUAGES",e.REQUEST_GET_AVAILABLE_LANGUAGES_SUCCESS="REQUEST_GET_AVAILABLE_LANGUAGES_SUCCESS",e.REQUEST_GET_AVAILABLE_LANGUAGES_ERROR="REQUEST_GET_AVAILABLE_LANGUAGES_ERROR",e.REQUEST_GET_AVAILABLE_LANGUAGES_COMPLETE="REQUEST_GET_AVAILABLE_LANGUAGES_COMPLETE",e.REQUEST_POST_FORM_SUBMIT="REQUEST_POST_FORM_SUBMIT",e.REQUEST_POST_FORM_SUBMIT_SUCCESS="REQUEST_POST_FORM_SUBMIT_SUCCESS",e.REQUEST_POST_FORM_SUBMIT_ERROR="REQUEST_POST_FORM_SUBMIT_ERROR",e.INITIALIZE_STANDALONE="INITIALIZE_STANDALONE",e.INITIALIZE_STANDALONE_SUCCESS="INITIALIZE_STANDALONE_SUCCESS",e.INITIALIZE_STANDALONE_ERROR="INITIALIZE_STANDALONE_ERROR",e.INITIALIZE_HOME="INITIALIZE_HOME",e.INITIALIZE_HOME_SUCCESS="INITIALIZE_HOME_SUCCESS",e.INITIALIZE_HOME_ERROR="INITIALIZE_HOME_ERROR",e.INITIALIZE_USER_CHAT_LIST="INITIALIZE_USER_CHAT_LIST",e.INITIALIZE_USER_CHAT_LIST_SUCCESS="INITIALIZE_USER_CHAT_LIST_SUCCESS",e.INITIALIZE_USER_CHAT_LIST_ERROR="INITIALIZE_USER_CHAT_LIST_ERROR",e.INITIALIZE_USER_CHAT="INITIALIZE_USER_CHAT",e.INITIALIZE_USER_CHAT_SUCCESS="INITIALIZE_USER_CHAT_SUCCESS",e.INITIALIZE_USER_CHAT_ERROR="INITIALIZE_USER_CHAT_ERROR",e.INITIALIZE_USER_CHAT_ON_RECONNECT="INITIALIZE_USER_CHAT_ON_RECONNECT",e.INITIALIZE_USER_CHAT_ON_RECONNECT_SUCCESS="INITIALIZE_USER_CHAT_ON_RECONNECT_SUCCESS",e.INITIALIZE_USER_CHAT_ON_RECONNECT_ERROR="INITIALIZE_USER_CHAT_ON_RECONNECT_ERROR",e.INITIALIZE_NEW_USER_CHAT="INITIALIZE_NEW_USER_CHAT",e.INITIALIZE_NEW_USER_CHAT_SUCCESS="INITIALIZE_NEW_USER_CHAT_SUCCESS",e.INITIALIZE_NEW_USER_CHAT_ERROR="INITIALIZE_NEW_USER_CHAT_ERROR",e.INITIALIZE_POPUP="INITIALIZE_POPUP",e.INITIALIZE_POPUP_SUCCESS="INITIALIZE_POPUP_SUCCESS",e.INITIALIZE_POPUP_ERROR="INITIALIZE_POPUP_ERROR",e.INITIALIZE_SETTING="INITIALIZE_SETTING",e.INITIALIZE_SETTING_SUCCESS="INITIALIZE_SETTING_SUCCESS",e.INITIALIZE_SETTING_ERROR="INITIALIZE_SETTING_ERROR",e.INITIALIZE_EDIT_PROFILE="INITIALIZE_EDIT_PROFILE",e.INITIALIZE_EDIT_PROFILE_SUCCESS="INITIALIZE_EDIT_PROFILE_SUCCESS",e.INITIALIZE_EDIT_PROFILE_ERROR="INITIALIZE_EDIT_PROFILE_ERROR",e.INITIALIZE_APP="INITIALIZE_APP",e.INITIALIZE_APP_SUCCESS="INITIALIZE_APP_SUCCESS",e.INITIALIZE_APP_ERROR="INITIALIZE_APP_ERROR",e.INITIALIZE_LABEL_BUTTON="INITIALIZE_LABEL_BUTTON",e.INITIALIZE_LABEL_BUTTON_SUCCESS="INITIALIZE_LABEL_BUTTON_SUCCESS",e.INITIALIZE_LABEL_BUTTON_ERROR="INITIALIZE_LABEL_BUTTON_ERROR",e.OPEN_MODAL="OPEN_MODAL",e.CLOSE_MODAL="CLOSE_MODAL",e.SHOW_TOAST="SHOW_TOAST",e.HIDE_TOAST="HIDE_TOAST",e.SHOW_OFFLINE_TOAST="SHOW_OFFLINE_TOAST",e.HIDE_OFFLINE_TOAST="HIDE_OFFLINE_TOAST",e.SET_BLOCK_REPLYING="SET_BLOCK_REPLYING",e.SET_CHATROOM_INPUT_VALUE="SET_CHATROOM_INPUT_VALUE",e.SET_HAS_ERROR="SET_HAS_ERROR",e.CLEAR_ERROR="CLEAR_ERROR",e.INITIALIZE_ERROR_CLEAR="INITIALIZE_ERROR_CLEAR",e.INITIALIZE_IDLE_DETECTOR="INITIALIZE_IDLE_DETECTOR",e.ENTER_BACKGROUND="ENTER_BACKGROUND",e.ENTER_FORE_GROUND="ENTER_FORE_GROUND",e.ENTER_IDLE="ENTER_IDLE",e.ENTER_ACTIVE="ENTER_ACTIVE",e.INITIALIZE_COMMAND_LAUNCHER="INITIALIZE_COMMAND_LAUNCHER",e.EXECUTE_ON_POPUP_DATA_RECEIVED_CALLBACK="EXECUTE_ON_POPUP_DATA_RECEIVED_CALLBACK",e.INITIALIZE_LIVE_MEET="INITIALIZE_LIVE_MEET",e.INITIALIZE_LIVE_MEET_SUCCESS="INITIALIZE_LIVE_MEET_SUCCESS",e.INITIALIZE_LIVE_MEET_ERROR="INITIALIZE_LIVE_MEET_ERROR",e.REQUEST_GET_LIVE_MEET="REQUEST_GET_LIVE_MEET",e.REQUEST_GET_LIVE_MEET_SUCCESS="REQUEST_GET_LIVE_MEET_SUCCESS",e.REQUEST_GET_LIVE_MEET_ERROR="REQUEST_GET_LIVE_MEET_ERROR",e.REQUEST_REJECT_OUTBOUND_MEET="REQUEST_REJECT_OUTBOUND_MEET",e.REQUEST_REJECT_OUTBOUND_MEET_SUCCESS="REQUEST_REJECT_OUTBOUND_MEET_SUCCESS",e.REQUEST_REJECT_OUTBOUND_MEET_ERROR="REQUEST_REJECT_OUTBOUND_MEET_ERROR",e.REQUEST_TERMINATE_LIVE_MEET="REQUEST_TERMINATE_LIVE_MEET",e.REQUEST_TERMINATE_LIVE_MEET_SUCCESS="REQUEST_TERMINATE_LIVE_MEET_SUCCESS",e.REQUEST_TERMINATE_LIVE_MEET_ERROR="REQUEST_TERMINATE_LIVE_MEET_ERROR",e.RECEIVED_CREATE_MEET_RING="RECEIVED_CREATE_MEET_RING",e.RECEIVED_DELETE_MEET_RING="RECEIVED_DELETE_MEET_RING",e.RECEIVED_UPDATE_MEET_SETTING="RECEIVED_UPDATE_MEET_SETTING",e.UPSERT_LIVE_MEET="UPSERT_LIVE_MEET",e.TERMINATE_LIVE_MEET="TERMINATE_LIVE_MEET",e.REQUEST_CREATE_WORKFLOW_USER_CHAT="REQUEST_CREATE_WORKFLOW_USER_CHAT",e.REQUEST_CREATE_WORKFLOW_USER_CHAT_SUCCESS="REQUEST_CREATE_WORKFLOW_USER_CHAT_SUCCESS",e.REQUEST_CREATE_WORKFLOW_USER_CHAT_ERROR="REQUEST_CREATE_WORKFLOW_USER_CHAT_ERROR",e.REQUEST_CREATE_WORKFLOW_USER_CHAT_COMPLETE="REQUEST_CREATE_WORKFLOW_USER_CHAT_COMPLETE",e.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION="REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION",e.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_SUCCESS="REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_SUCCESS",e.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_ERROR="REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_ERROR",e.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_COMPLETE="REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_COMPLETE",e.OPEN_WORKFLOW="OPEN_WORKFLOW",e.OPEN_WORKFLOW_SUCCESS="OPEN_WORKFLOW_SUCCESS",e.OPEN_WORKFLOW_ERROR="OPEN_WORKFLOW_ERROR",e.INITIALIZE_SPECIFIC_WORKFLOW="INITIALIZE_SPECIFIC_WORKFLOW",e.INITIALIZE_SPECIFIC_WORKFLOW_SUCCESS="INITIALIZE_SPECIFIC_WORKFLOW_SUCCESS",e.INITIALIZE_SPECIFIC_WORKFLOW_ERROR="INITIALIZE_SPECIFIC_WORKFLOW_ERROR",e.REQUEST_REPLY_USER_CHAT_HANDLING_BUTTONS="REQUEST_REPLY_USER_CHAT_HANDLING_BUTTONS",e.REQUEST_REPLY_USER_CHAT_HANDLING_BUTTONS_SUCCESS="REQUEST_REPLY_USER_CHAT_HANDLING_BUTTONS_SUCCESS",e.REQUEST_REPLY_USER_CHAT_HANDLING_BUTTONS_ERROR="REQUEST_REPLY_USER_CHAT_HANDLING_BUTTONS_ERROR",e.REQUEST_REPLY_USER_CHAT_HANDLING_BUTTONS_COMPLETE="REQUEST_REPLY_USER_CHAT_HANDLING_BUTTONS_COMPLETE",e.REQUEST_GET_WORKFLOW_FROM_ID="REQUEST_GET_WORKFLOW_FROM_ID",e.REQUEST_GET_WORKFLOW_FROM_ID_SUCCESS="REQUEST_GET_WORKFLOW_FROM_ID_SUCCESS",e.REQUEST_GET_WORKFLOW_FROM_ID_ERROR="REQUEST_GET_WORKFLOW_FROM_ID_ERROR",e.REQUEST_GET_WORKFLOW_FROM_ID_COMPLETE="REQUEST_GET_WORKFLOW_FROM_ID_COMPLETE",e.REQUEST_GET_CHANNEL_OPERATIONS="REQUEST_GET_CHANNEL_OPERATIONS",e.REQUEST_GET_CHANNEL_OPERATIONS_SUCCESS="REQUEST_GET_CHANNEL_OPERATIONS_SUCCESS",e.REQUEST_GET_CHANNEL_OPERATIONS_ERROR="REQUEST_GET_CHANNEL_OPERATIONS_ERROR",e.REQUEST_GET_CHANNEL_OPERATIONS_COMPLETE="REQUEST_GET_CHANNEL_OPERATIONS_COMPLETE",e.RECEIVED_CREATE_CHANNEL_OPERATION="RECEIVED_CREATE_CHANNEL_OPERATION",e.RECEIVED_UPDATE_CHANNEL_OPERATION="RECEIVED_UPDATE_CHANNEL_OPERATION",e.RECEIVED_DELETE_CHANNEL_OPERATION="RECEIVED_DELETE_CHANNEL_OPERATION",e.REQUEST_VIEW_CHANNEL_X_BANNER="REQUEST_VIEW_CHANNEL_X_BANNER",e.REQUEST_VIEW_CHANNEL_X_BANNER_SUCCESS="REQUEST_VIEW_CHANNEL_X_BANNER_SUCCESS",e.REQUEST_VIEW_CHANNEL_X_BANNER_ERROR="REQUEST_VIEW_CHANNEL_X_BANNER_ERROR",e.REQUEST_VIEW_CHANNEL_X_BANNER_COMPLETE="REQUEST_VIEW_CHANNEL_X_BANNER_COMPLETE",e.REQUEST_CLICK_CHANNEL_X_BANNER="REQUEST_CLICK_CHANNEL_X_BANNER",e.REQUEST_CLICK_CHANNEL_X_BANNER_SUCCESS="REQUEST_CLICK_CHANNEL_X_BANNER_SUCCESS",e.REQUEST_CLICK_CHANNEL_X_BANNER_ERROR="REQUEST_CLICK_CHANNEL_X_BANNER_ERROR",e.REQUEST_CLICK_CHANNEL_X_BANNER_COMPLETE="REQUEST_CLICK_CHANNEL_X_BANNER_COMPLETE",e.REQUEST_SEND_EXPERIMENT_EVENT="REQUEST_SEND_EXPERIMENT_EVENT",e.REQUEST_SEND_EXPERIMENT_EVENT_SUCCESS="REQUEST_SEND_EXPERIMENT_EVENT_SUCCESS",e.REQUEST_SEND_EXPERIMENT_EVENT_ERROR="REQUEST_SEND_EXPERIMENT_EVENT_ERROR",e.REQUEST_TRIGGER_APP_WIDGET_INSTALLATION="REQUEST_TRIGGER_APP_WIDGET_INSTALLATION",e.REQUEST_TRIGGER_APP_WIDGET_INSTALLATION_SUCCESS="REQUEST_TRIGGER_APP_WIDGET_INSTALLATION_SUCCESS",e.REQUEST_TRIGGER_APP_WIDGET_INSTALLATION_ERROR="REQUEST_TRIGGER_APP_WIDGET_INSTALLATION_ERROR",e.REQUEST_GET_DOCUMENT_WEBSITE_RESOURCES="REQUEST_GET_DOCUMENT_WEBSITE_RESOURCES",e.REQUEST_GET_DOCUMENT_WEBSITE_RESOURCES_SUCCESS="REQUEST_GET_DOCUMENT_WEBSITE_RESOURCES_SUCCESS",e.REQUEST_GET_DOCUMENT_WEBSITE_RESOURCES_ERROR="REQUEST_GET_DOCUMENT_WEBSITE_RESOURCES_ERROR",e.REQUEST_GET_DOCUMENT_WEBSITE_RESOURCES_COMPLETE="REQUEST_GET_DOCUMENT_WEBSITE_RESOURCES_COMPLETE"}(o||(o={}));const r=o},90511:(e,t,n)=>{"use strict";n.d(t,{f:()=>i,o:()=>r});var o=n(87851);const r="https://cdn.channel.io/plugin/images/",i=`${o.NF}/asset/plugin/images/`},71381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o={TEXT:"text",CODE:"code",BULLETS:"bullets"}},80672:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o={CHATROOM_INPUT:"ChatRoomInput",CHAT_BOT_BUTTON:"chatBotButton",DISABLED_NOTICE:"disabledNotice",BLOCK_AFTER_CLOSED:"blockAfterClosed",NONE:"none"}},80805:(e,t,n)=>{"use strict";var o;n.d(t,{Z:()=>r}),function(e){e[e.Rotate0=1]="Rotate0",e[e.HorizontalFlip=2]="HorizontalFlip",e[e.Rotate180=3]="Rotate180",e[e.VerticalFlip=4]="VerticalFlip",e[e.VerticalFlipRotate90=5]="VerticalFlipRotate90",e[e.Rotate90=6]="Rotate90",e[e.HorizontalFlipRotate90=7]="HorizontalFlipRotate90",e[e.Rotate270=8]="Rotate270"}(o||(o={}));const r=o},93345:(e,t,n)=>{"use strict";var o;n.d(t,{Z:()=>r}),function(e){e[e.DEFAULT=18]="DEFAULT",e[e.LARGE=24]="LARGE",e[e.GIANT=60]="GIANT",e[e.CDN_GIANT=160]="CDN_GIANT",e[e.CDN_DEFAULT=80]="CDN_DEFAULT"}(o||(o={}));const r=o},14906:(e,t,n)=>{"use strict";let o;n.d(t,{O:()=>o}),function(e){e.Bubble="bubble",e.FullScreen="fullScreen"}(o||(o={}))},16758:(e,t,n)=>{"use strict";var o;n.d(t,{Z:()=>i,p:()=>r}),function(e){e.Audio="audio",e.File="file",e.Image="image",e.Video="video"}(o||(o={}));const r={[o.Video]:10,[o.Image]:20,[o.Audio]:30,[o.File]:40},i=o},33122:(e,t,n)=>{"use strict";n.d(t,{BU:()=>R,Hz:()=>d,IZ:()=>p,Ji:()=>U,Kn:()=>_,NH:()=>m,OA:()=>S,RB:()=>T,U6:()=>Z,ZL:()=>P,Zs:()=>O,bG:()=>v,cU:()=>M,dS:()=>f,eY:()=>x,ns:()=>g,rP:()=>C,vZ:()=>h,zu:()=>y});var o=n(81739),r=n(35437),i=n(76438),s=n(28961),a=n(15964);const{isAppleTouchableDevice:l,isMobile:c,isSafari:E,isIPhone:u}=s.Z,h="ch-scroll-lock",d="scroll-lock",_="ch-shadow-root-wrapper",p=30,m=c?55:60,S="87%",g="92%",T=16,C=14,R=400,f=400,A=c?"65.625%":"62.5%",I=(0,a.V0)(i.Z.getLanguage()),v=(0,o.iv)(["word-break:break-word;overflow-wrap:break-word;white-space:pre-line;"]),y=(0,o.iv)(["outline:5px auto Highlight;outline:5px auto -webkit-focus-ring-color;"]),U=(0,r.F4)(["from{opacity:0;}to{opacity:1;}"]),Z=(0,r.F4)(["from{opacity:1;}to{opacity:0;}"]),O="cubic-bezier(0.36, 0, 0, 1)",b=(0,o.iv)([".a11y-hidden{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:polygon(0 0,0 0,0 0);user-select:none;}"]),N=(0,o.iv)(["font-size:16px !important;"]),w=(0,o.iv)(["button{box-sizing:border-box;width:auto;padding:0;margin:0;overflow:visible;font:inherit;font-family:",";line-height:inherit;color:inherit;text-shadow:0 0 0 transparent;letter-spacing:inherit;background:transparent;border:0 solid transparent;box-shadow:0 0 0 transparent;}"],I),L=(0,o.iv)(["a:focus-visible,button:focus-visible,div:focus-visible{","}"],y),M=(0,o.vJ)([""," *{-webkit-tap-highlight-color:transparent;}#","{all:initial;width:0;display:block;font-family:",";color:var(--txt-black-darkest);}"," ",""],b,_,I,w,!l&&!E&&L),P=(0,o.vJ)([""," *{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}*:focus{outline:none;}#main{color:var(--txt-black-darkest);opacity:1;}html{font-size:",";-webkit-text-size-adjust:none;}body{position:relative;margin:0;font-family:",";background-color:transparent;}body.","{overflow:hidden;}input,textarea{font-family:",";","}"," form{margin:unset;}a{color:inherit;text-decoration:inherit;}h1,h2,h3,h4,ol,ul,li,p{padding:0;margin:0;font:inherit;font-size:100%;vertical-align:baseline;border:0;}ol,ul,li{list-style:none;}",""],b,A,I,d,I,u&&N,w,!l&&!E&&L),D=(0,r.F4)(["from{opacity:0;transform:translate3d(0,20px,0);}to{opacity:1;transform:translate3d(0,0,0);}"]),k=(0,r.F4)(["from{opacity:1;transform:translate3d(0,0,0);}to{opacity:0;transform:translate3d(0,20px,0);}"]),x=((0,o.vJ)(["",""],!i.Z.isFixedDocumentMode()&&(0,o.iv)(["html,body,#ch-plugin{height:100%;}.","{overflow:hidden;}"],h)),(0,o.vJ)(["#ch-plugin{position:relative !important;display:block !important;color-scheme:normal !important;white-space:normal !important;}@media print{#ch-plugin{display:none !important;}}"," .ch-messenger-hidden{visibility:hidden !important;","}.","{overflow:hidden !important;}.ch-desk-messenger{"," position:fixed !important;min-height:200px !important;min-width:390px !important;max-width:","px !important;max-height:","px !important;width:calc(100% - ","px) !important;height:calc(100% - ","px) !important;overflow:hidden !important;background-color:transparent !important;border-radius:","px !important;will-change:transform,opacity,width,max-height,max-width !important;","}.ch-mobile-messenger{position:fixed !important;top:0 !important;right:0 !important;bottom:0 !important;left:0 !important;width:100% !important;height:100% !important;background-color:transparent !important;}"],!c&&(0,o.iv)(["#ch-plugin-script-iframe{border-radius:","px !important;}"],p),(()=>(0,o.iv)(["transition:visibility ","ms ",",width ","ms ",",max-width ","ms ",",max-height ","ms "," !important;animation:"," ","ms "," !important;"],R,O,R,O,R,O,R,O,k,R,O)),h,(e=>{let{foundation:t}=e;return null==t?void 0:t.elevation.ev6()}),(e=>{let{messengerSize:t}=e;return t.width}),(e=>{let{messengerSize:t}=e;return t.height}),(e=>{let{messengerEdgeSize:t}=e;return t.width}),(e=>{let{messengerEdgeSize:t}=e;return t.height}),p,(()=>(0,o.iv)(["transition:visibility ","ms ",",width ","ms ",",max-width ","ms ",",max-height ","ms ",";animation:"," ","ms "," both;"],R,O,R,O,R,O,R,O,D,R,O))))},84267:(e,t,n)=>{"use strict";var o;n.d(t,{A:()=>r,Z:()=>i}),function(e){e.Campaign="campaign",e.OneTimeMessage="oneTimeMsg"}(o||(o={}));const r={[o.Campaign]:"campaigns",[o.OneTimeMessage]:"one-time-msgs"},i=o},44873:(e,t,n)=>{"use strict";var o;n.d(t,{Z:()=>r}),function(e){e.AUDIO="audio",e.VIDEO="video"}(o||(o={}));const r=o},93099:(e,t,n)=>{"use strict";let o;n.d(t,{A:()=>o,L:()=>r}),function(e){e.Default="default",e.Document="document"}(o||(o={}));const r={[o.Default]:{width:390,height:690},[o.Document]:{width:680,height:1200}}},78882:(e,t,n)=>{"use strict";var o;n.d(t,{Z:()=>r}),function(e){e.Bot="bot",e.Manager="manager",e.User="user"}(o||(o={}));const r=o},80834:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o={ALERT:"alert",UNREAD:"unread"}},54225:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o={Name:"name",MobileNumber:"mobileNumber",Email:"email"}},48384:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o={VEIL_ID:"veilId",DRAFT_MESSAGE:"draft_message",DRAFT_COMMAND:"draft_command",DRAFT_FORM:"draft_form_value",PLUGIN_INFO:"plugin_info",AVAILABLE_TEST:"__storage_test__",FREQUENTLY_USED_EMOJIS:"frequently_used_emojis",LABEL_BUTTON_VISIBILITY:"label_button_visibility",TRANSLATION_VISIBILITY:"translation_visibility",LAST_SEEN_TAB_ID:"last_seen_tab_id",NOTIFICATION_SOUND:"notification_sound",DOCUMENT_VIEWER_SHRINKED:"document_viewer_shrinked"}},49038:(e,t,n)=>{"use strict";var o;n.d(t,{Dn:()=>i,ZP:()=>s,iV:()=>r}),function(e){e.EN="en",e.JA="ja",e.KO="ko"}(o||(o={}));const r=[o.KO,o.EN,o.JA];function i(e){return Object.values(o).includes(e)}const s=o},18380:(e,t,n)=>{"use strict";n.d(t,{$:()=>r,g:()=>o});const o={width:56,height:56},r={width:286,height:270}},48793:(e,t,n)=>{"use strict";var o;n.d(t,{Z:()=>r}),function(e){e.BOTTOM="bottom",e.BOTTOM_LEFT="bottomLeft",e.BOTTOM_RIGHT="bottomRight",e.CENTER="center",e.LEFT="left",e.LEFT_BOTTOM="leftBottom",e.LEFT_TOP="leftTop",e.RIGHT="right",e.RIGHT_BOTTOM="rightBottom",e.RIGHT_TOP="rightTop",e.TOP="top",e.TOP_LEFT="topLeft",e.TOP_RIGHT="topRight"}(o||(o={}));const r=o},53288:(e,t,n)=>{"use strict";n.d(t,{h:()=>r,q:()=>o});const o=Object.values({SOURCE:"utm_source",MEDIUM:"utm_medium",CAMPAIGN:"utm_campaign",CONTENT:"utm_content",TERM:"utm_term"}),r="referrer"},87851:(e,t,n)=>{"use strict";n.d(t,{Dd:()=>l,K5:()=>_,L4:()=>s,NF:()=>i,PX:()=>r,Ss:()=>d,Tx:()=>u,eS:()=>o,g5:()=>h,m$:()=>E,oj:()=>c,yq:()=>a});const o="https://api.channel.io",r="https://media.channel.io",i="https://cf.channel.io",s="https://cdn.channel.io/plugin",a="https://gw.channel.io",l="https://ch.xyz",c="https://front-api.ch.xyz",E="https://app-store-api.channel.io",u="https://document-api.channel.io",h="https://meet.channel.io",d="https://bezier-cdn.channel.io",_="https://status.channel.io"},9845:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});const o=25},59544:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o={VISIBLE:"visible",HIDDEN:"hidden",PRERENDER:"prerender",UNLOADED:"unloaded"}},74117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o={TOAST:1060,MODAL:1050,MEET_BANNER:1040,ALF_BANNER:1040,OVERLAY:1040,NAVIGATION_BAR:1030,CLOSE_BUTTON:1030,HEADER:1030,CHATROOM_FOOTER:1030,BANNER:1030,EMOJI_SELECTOR:1020,INFINITE_SCROLL_LOADER:1010,TOOLTIP_CONTENT:1e3,ON_SHADOW_ELEMENT:10}},49438:(e,t,n)=>{"use strict";n.d(t,{R:()=>r,E:()=>i});var o=n(81739);const r=o.zo.div.withConfig({displayName:"AlertBadgestyled__AlertBadge",componentId:"ch-front__sc-1utiu90-0"})(["display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:center;box-sizing:border-box;min-width:","px;height:","px;padding:1px 6px;color:var(--bgtxt-absolute-white-dark);visibility:",";background-color:var(--bgtxt-red-normal);border-radius:","px;"],(e=>e.size||20),(e=>e.size||20),(e=>e.hidden?"hidden":"visible"),(e=>Math.floor((e.size||20)/2))),i=o.zo.div.withConfig({displayName:"UnreadBadgestyled__UnreadBadge",componentId:"ch-front__sc-kvvwsm-0"})(["display:block;width:6px;height:6px;background-color:var(--bgtxt-red-normal);border-radius:50%;"])},73489:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=n(55325),r=n(71303),i=n(77202),s=n(36198),a=n(52983),l=n(94046),c=n(81739),E=n(35437),u=n(33122),h=n(15964),d=n(30462),_=n(79845);const p=c.zo.div.withConfig({displayName:"BottomSheetstyled__Header",componentId:"ch-front__sc-jmqotn-0"})(["display:flex;flex-shrink:0;align-items:center;justify-content:space-between;height:48px;padding:8px 0 0 16px;"]),m=c.zo.div.withConfig({displayName:"BottomSheetstyled__HeaderTitle",componentId:"ch-front__sc-jmqotn-1"})(["font-weight:600;color:",";",""],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-dark"]}),_.ZT.RemSize13),S=c.zo.div.withConfig({displayName:"BottomSheetstyled__IconWrapper",componentId:"ch-front__sc-jmqotn-2"})(["display:flex;align-items:center;justify-content:center;width:28px;height:28px;background-color:",";border-radius:18px;"],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-black-lighter"]})),g=c.zo.button.withConfig({displayName:"BottomSheetstyled__CloseButton",componentId:"ch-front__sc-jmqotn-3"})(["cursor:pointer;display:flex;align-items:center;justify-content:center;width:56px;",""],(0,h.jC)((0,c.iv)(["> ","{background-color:",";}"],S,(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-black-light"]})))),T=(0,E.F4)(["from{transform:translateY(33%);}to{transform:translate(0);}"]),C=(0,c.zo)(d.Z).withConfig({displayName:"BottomSheetstyled__Popover",componentId:"ch-front__sc-jmqotn-4"})(["align-self:flex-end;width:100%;max-height:",";border-radius:30px 30px 0 0;box-shadow:0 -4px 12px rgba(0,0,0,10%);",""],u.OA,(()=>(0,c.iv)(["animation:"," 0.3s ease;"],T))),R=c.zo.div.withConfig({displayName:"BottomSheetstyled__Wrapper",componentId:"ch-front__sc-jmqotn-5"})(["overflow-y:hidden;display:flex;flex-direction:column;max-height:100%;"]),f=function(e){let{children:t,onHide:n,title:c,...E}=e;const{closeModal:u}=(0,l.Z)(),h=a.useRef(null);return a.createElement(C,(0,o.Z)({onBackdropClick:n,autoFocusRef:h},E),a.createElement(R,{role:"dialog","aria-modal":"true","aria-labelledby":"bottom_sheet_header_title"},a.createElement(p,null,a.createElement(m,{id:"bottom_sheet_header_title"},c),a.createElement(g,{type:"button",onClick:()=>{u(),null==n||n()},ref:h},a.createElement("span",{className:"a11y-hidden"}," Close bottom sheet modal "),a.createElement(S,null,a.createElement(i.J,{source:r.C,size:s.J.S,color:"txt-black-dark","aria-hidden":"true"})))),t))}},57410:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(81739),r=n(33122);const i=o.zo.section.withConfig({displayName:"HomeCard",componentId:"ch-front__sc-ln349k-0"})(["margin:0 ","px;overflow:hidden;background-color:",";border-radius:20px;* + &{margin-top:","px;}"],r.RB,(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-white-high"]}),r.rP)},48825:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(52983),r=n(16231),i=n(81739),s=n(15964);const a=i.zo.div.withConfig({displayName:"InnerIconstyled__Icon",componentId:"ch-front__sc-197h5bb-0"})(["cursor:pointer;flex:0 0 auto;width:","px;height:","px;margin:",";color:",";opacity:",";",""],(e=>{let{width:t}=e;return t}),(e=>{let{height:t}=e;return t}),(function(e){let{margintop:t,marginright:n,marginbottom:o,marginleft:r}=e;return`${t}px ${n}px ${o}px ${r}px`}),(e=>{let{color:t,withtheme:n,foundation:o}=e;return t??("true"===n?null==o?void 0:o.iconColor:"inherit")}),(e=>{let{defaultopacity:t}=e;return t}),(e=>{let{hoveredopacity:t}=e;return(0,s.jC)(i.iv`
|
||
opacity: ${t};
|
||
`)}));var l=n(55325);const c={cancel:function(e){return o.createElement("svg",(0,l.Z)({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M16.4818 4.69668L15.3033 3.51817L10 8.82147L4.69671 3.51817L3.5182 4.69668L8.8215 9.99998L3.51819 15.3033L4.6967 16.4818L10 11.1785L15.3033 16.4818L16.4818 15.3033L11.1785 9.99998L16.4818 4.69668Z"}))},"cancel-bold":function(e){return o.createElement("svg",(0,l.Z)({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("path",{fill:"currentColor",d:"M4.92893 4.92893C4.34315 5.51472 4.34315 6.46447 4.92893 7.05025L9.87868 12L4.92893 16.9497C4.34315 17.5355 4.34315 18.4853 4.92893 19.0711C5.51472 19.6569 6.46447 19.6569 7.05025 19.0711L12 14.1213L16.9497 19.0711C17.5355 19.6569 18.4853 19.6569 19.0711 19.0711C19.6569 18.4853 19.6569 17.5355 19.0711 16.9497L14.1213 12L19.0711 7.05025C19.6569 6.46447 19.6569 5.51472 19.0711 4.92893C18.4853 4.34315 17.5355 4.34315 16.9497 4.92893L12 9.87868L7.05025 4.92893C6.46447 4.34315 5.51472 4.34315 4.92893 4.92893Z"}))},"chevron-left":function(e){return o.createElement("svg",(0,l.Z)({width:"1em",height:"1em",viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M9.17255 16.4226C8.84711 16.748 8.31947 16.748 7.99404 16.4226L2.1607 10.5893C1.83527 10.2638 1.83527 9.73619 2.1607 9.41075L7.99404 3.57742C8.31947 3.25198 8.84711 3.25198 9.17255 3.57742C9.49799 3.90285 9.49799 4.43049 9.17255 4.75593L3.92847 10L9.17255 15.2441C9.49799 15.5695 9.49799 16.0972 9.17255 16.4226Z"}))},"more-vertical":function(e){return o.createElement("svg",(0,l.Z)({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M7.91683 4.16671C7.91683 3.02087 8.85433 2.08337 10.0002 2.08337C11.146 2.08337 12.0835 3.02087 12.0835 4.16671C12.0835 5.31254 11.146 6.25004 10.0002 6.25004C8.85433 6.25004 7.91683 5.31254 7.91683 4.16671ZM7.91683 10.4167C7.91683 9.27087 8.85433 8.33337 10.0002 8.33337C11.146 8.33337 12.0835 9.27087 12.0835 10.4167C12.0835 11.5625 11.146 12.5 10.0002 12.5C8.85433 12.5 7.91683 11.5625 7.91683 10.4167ZM10.0002 14.5834C8.85433 14.5834 7.91683 15.5209 7.91683 16.6667C7.91683 17.8125 8.85433 18.75 10.0002 18.75C11.146 18.75 12.0835 17.8125 12.0835 16.6667C12.0835 15.5209 11.146 14.5834 10.0002 14.5834Z"}))},send:function(e){return o.createElement("svg",(0,l.Z)({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M20.9186 5.01057L2.91895 5.01034C2.51794 5.00977 2.15508 5.24929 1.99895 5.61886C1.84146 5.98808 1.92039 6.41478 2.19802 6.70366L7.74779 12.4761L17.7176 7.45444L18.0686 8.06239L8.74519 14.2097L10.9214 21.931C11.0307 22.3183 11.3609 22.6022 11.7599 22.6513C11.9807 22.6797 12.1991 22.6321 12.3836 22.5256C12.5326 22.4396 12.6604 22.315 12.7501 22.1604L21.7846 6.51053C21.964 6.20137 21.9636 5.82058 21.7846 5.51055C21.6061 5.20138 21.2765 5.01059 20.9186 5.01057Z"}))},"arrow-right":function(e){return o.createElement("svg",(0,l.Z)({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M10.3812 17.8559L9.16667 16.7145L14.6935 10.8334H2.5V9.16669H14.6723L9.16667 3.30803L10.3812 2.16667L16.7878 8.98406C17.3304 9.56141 17.3304 10.4612 16.7878 11.0385L10.3812 17.8559Z"}))},refresh:function(e){return o.createElement("svg",(0,l.Z)({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M16.6667 9.99996C16.6667 13.6758 13.6758 16.6666 10 16.6666C6.32417 16.6666 3.33334 13.6758 3.33334 9.99996C3.33334 6.32413 6.32417 3.33329 10 3.33329C11.7642 3.33329 13.4225 4.01579 14.6775 5.25246L12.9333 6.99663C12.6708 7.25913 12.8558 7.70829 13.2275 7.70829H17.9167C18.1467 7.70829 18.3333 7.52163 18.3333 7.29163V2.60246C18.3333 2.23079 17.8842 2.04579 17.6217 2.30829L15.8558 4.07413C14.2858 2.52246 12.2092 1.66663 10 1.66663C5.40501 1.66663 1.66667 5.40496 1.66667 9.99996C1.66667 14.595 5.40501 18.3333 10 18.3333C14.595 18.3333 18.3333 14.595 18.3333 9.99996H16.6667Z"}))},youtube:function(e){return o.createElement("svg",(0,l.Z)({width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("rect",{x:"10",y:"10",width:"10",height:"10",fill:"white"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6824 18.6838V11.1963L18.8187 14.94L12.6824 18.6838ZM27.3837 11.2838C27.2274 8.85754 25.3474 6.89751 22.9311 6.64002C20.425 6.38629 17.7612 6.25 15 6.25C12.2387 6.25 9.57499 6.38629 7.06868 6.63882C4.65246 6.89751 2.7725 8.85754 2.61623 11.2838C2.54003 12.4788 2.5 13.7 2.5 14.94C2.5 16.18 2.54003 17.4012 2.61623 18.5963C2.7725 21.0225 4.65246 22.9825 7.06868 23.24C9.57499 23.4938 12.2387 23.63 15 23.63C17.7612 23.63 20.425 23.4938 22.9311 23.2412C25.3474 22.9825 27.2274 21.0225 27.3837 18.5963C27.46 17.4012 27.5 16.18 27.5 14.94C27.5 13.7 27.46 12.4788 27.3837 11.2838Z",fill:"#E94E58"}))},"arrow-up":function(e){return o.createElement("svg",(0,l.Z)({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M3.28481 11.8367C3.66302 12.2392 4.29589 12.2588 4.69835 11.8806L11 5.95864V20C11 20.5523 11.4477 21 12 21C12.5523 21 13 20.5523 13 20V5.9332L19.3287 11.8806C19.7312 12.2588 20.364 12.2392 20.7423 11.8367C21.1205 11.4343 21.1008 10.8014 20.6983 10.4232L13.0408 3.22696C12.4634 2.68439 11.5637 2.68439 10.9863 3.22696L3.32872 10.4232C2.92626 10.8014 2.9066 11.4343 3.28481 11.8367Z"}))}};function E(e){let{name:t,className:n,color:i,size:s=r.$.Normal,defaultOpacity:l=.6,hoveredOpacity:E=1,marginTop:u=0,marginRight:h=0,marginBottom:d=0,marginLeft:_=0,onClick:p=(()=>{}),withTheme:m=!1}=e;return c[t]?o.createElement(a,{className:n,color:i,as:c[t],width:s,height:s,defaultopacity:l,hoveredopacity:E,margintop:u,marginright:h,marginbottom:d,marginleft:_,withtheme:m.toString(),onClick:p}):null}const u=(0,o.memo)(E)},90681:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(81739);const r=o.zo.div.withConfig({displayName:"Loaderstyled__Loader",componentId:"ch-front__sc-1f5ps8p-0"})(["position:",";inset:","px ","px ","px ","px;display:flex;align-items:center;justify-content:center;&::before{@keyframes rotation{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}content:'';display:inline-block;box-sizing:border-box;border-style:solid;"," "," border-bottom-color:transparent;border-radius:50%;animation:rotation 1.1s linear infinite;}"],(e=>{let{position:t}=e;return t||"absolute"}),(e=>{let{top:t}=e;return t||0}),(e=>{let{right:t}=e;return t||0}),(e=>{let{bottom:t}=e;return t||0}),(e=>{let{left:t}=e;return t||0}),(function(e){let{size:t,strokeWidth:n}=e;const r=t||24;return o.iv`
|
||
width: ${r}px;
|
||
height: ${r}px;
|
||
border-width: ${n??r/8}px;
|
||
`}),(function(e){let{foundation:t,color:n}=e;const r=n?(null==t?void 0:t.theme[n])??n:null==t?void 0:t.theme["txt-black-dark"];return o.iv`
|
||
border-color: ${r};
|
||
`}))},44565:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(55325),r=n(52983),i=n(81739),s=n(74117);const a=i.zo.div.withConfig({displayName:"Modalstyled__Wrapper",componentId:"ch-front__sc-n7slr5-0"})(["touch-action:",";position:fixed;z-index:",";inset:0;overflow:hidden;",""],(e=>{let{preventTouchActions:t}=e;return t?"none":"auto"}),s.Z.MODAL,(e=>{let{interpolation:t}=e;return t})),l=function(e){let{autoFocusRef:t,children:n,targetNodeRefToReturn:i,onWrapperClick:s,preventTouchActions:l=!0,interpolation:c,...E}=e;return(0,r.useEffect)((()=>{var e;null==t||null===(e=t.current)||void 0===e||e.focus();const n=null==i?void 0:i.current;return()=>{null==n||n.focus()}}),[t,i]),r.createElement(a,(0,o.Z)({role:"presentation",preventTouchActions:l,onClick:s,interpolation:c},E),n)}},30462:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var o=n(55325),r=n(52983),i=n(94046),s=n(39156),a=n(35437),l=n(81739),c=n(33122),E=n(44565);const u=a.F4`
|
||
from {
|
||
opacity: 0;
|
||
}
|
||
|
||
to {
|
||
opacity: 1;
|
||
}
|
||
`,h=(0,l.zo)(E.Z).withConfig({displayName:"Popoverstyled__Modal",componentId:"ch-front__sc-b3s73u-0"})(["display:flex;background-color:",";",""],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bgtxt-absolute-black-lighter"]}),(()=>l.iv`
|
||
opacity: 1;
|
||
animation: ${u} 0.25s linear;
|
||
`)),d=l.zo.div.withConfig({displayName:"Popoverstyled__Content",componentId:"ch-front__sc-b3s73u-1"})(["display:flex;flex-direction:column;background-color:",";border-radius:16px;"," ",""],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-white-normal"]}),c.bG,(e=>{let{foundation:t}=e;return null==t?void 0:t.elevation.ev4()})),_=function(e){let{children:t,onBackdropClick:n,className:a,modalInterpolation:l,...c}=e;const{closeModal:E}=(0,i.Z)();return r.createElement(h,(0,o.Z)({onClick:e=>{e.stopPropagation(),E(),null==n||n()},interpolation:l},c),r.createElement(d,{className:a,onClick:s.UW},t))}},16231:(e,t,n)=>{"use strict";n.d(t,{$:()=>a,Z:()=>l});var o=n(81739),r=n(13635),i=n(50022),s=n(50056);let a;!function(e){e[e.XXSmall=12]="XXSmall",e[e.XSmall=16]="XSmall",e[e.Small=20]="Small",e[e.Normal=24]="Normal",e[e.YoutubeIcon=30]="YoutubeIcon",e[e.Large=36]="Large",e[e.Giant=70]="Giant"}(a||(a={}));const l=o.zo.div.withConfig({displayName:"SVGIconstyled__SVGIcon",componentId:"ch-front__sc-15isf0b-0"})(["cursor:",";display:inline-flex;align-items:center;justify-content:center;width:",";height:",";visibility:",";&::before{content:'';display:block;width:","px;height:","px;"," opacity:",";}&:hover{&::before{"," opacity:",";}}"],(e=>{let{defaultOpacity:t}=e;return 1===t?"initial":"pointer"}),(e=>(0,i.kK)(e.width)?"auto":`${e.width}px`),(e=>(0,i.kK)(e.height)?"auto":`${e.height}px`),(e=>e.hidden?"hidden":"visible"),(e=>Array.isArray(e.size)?e.size[0]:e.size),(e=>Array.isArray(e.size)?e.size[1]:e.size),(e=>{var t;return(0,s.Vz)((0,r.jW)(`${e.name}${e.withTheme?`-${null===(t=e.foundation)||void 0===t?void 0:t.textColor}`:""}`,"svg"))}),(e=>e.defaultOpacity||.6),(e=>e.withHover?(0,s.Nx)((0,r.jW)(`${e.name}-hover`,"svg")):""),(e=>(0,i.hj)(e.hoveredOpacity)?e.hoveredOpacity:1))},41956:(e,t,n)=>{"use strict";n.d(t,{a:()=>E,n:()=>c});var o=n(81739),r=n(35437),i=n(50022);function s(e,t){return(0,i.hj)(t)?o.iv`
|
||
${e}: ${t}px;
|
||
`:o.iv`
|
||
${e}: ${t};
|
||
`}function a(e){let{width:t}=e;return s("width",t)}const l=r.F4`
|
||
from {
|
||
left: -100%;
|
||
}
|
||
|
||
to {
|
||
left: 100%;
|
||
}
|
||
`,c=o.zo.div.withConfig({displayName:"Skeletonstyled__SkeletonBox",componentId:"ch-front__sc-1f4mq1b-0"})(["position:relative;overflow:hidden;"," "," "," background-color:var(--bg-black-lighter);&::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient( 90deg,transparent,var(--bg-black-lightest),transparent );","}"],a,(function(e){let{height:t}=e;return s("height",t)}),(function(e){let{radius:t}=e;return s("border-radius",t)}),(()=>o.iv`
|
||
animation: ${l} 2s infinite linear;
|
||
`)),E=o.zo.div.withConfig({displayName:"Skeletonstyled__SkeletonTextWrapper",componentId:"ch-front__sc-1f4mq1b-1"})(["display:flex;align-items:center;"," padding:","px 0;"],a,(e=>{let{padding:t}=e;return t??6}))},99717:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(52983),r=n(41956);const i=function(e){let{width:t,height:n=6,padding:i,className:s}=e;return o.createElement(r.a,{className:s,width:t,padding:i},o.createElement(r.n,{width:"100%",height:n,radius:3}))}},57730:(e,t,n)=>{"use strict";n.d(t,{N0:()=>i,nN:()=>o.n,N2:()=>s.Z});var o=n(41956),r=n(52983);const i=function(e){let{size:t,className:n}=e;return r.createElement(o.n,{className:n,width:t,height:t,radius:"42%"})};var s=n(99717)},15183:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=n(52983),r=n(63730),i=n(13291),s=n(28961),a=n(9967),l=n(48793),c=n(35437),E=n(81739),u=n(74117),h=n(79845);const d=c.F4`
|
||
from {
|
||
opacity: 0;
|
||
}
|
||
|
||
to {
|
||
opacity: 1;
|
||
}
|
||
`,_=E.zo.div.withConfig({displayName:"Tooltipstyled__Wrapper",componentId:"ch-front__sc-7p7m1r-0"})(["z-index:",";"," width:max-content;padding:5px 8px;color:",";background-color:",";border-radius:6px;"," ",""],u.Z.OVERLAY,(e=>{let{foundation:t}=e;return null==t?void 0:t.elevation.ev3()}),(e=>{var t;let{foundation:n}=e;return null==n||null===(t=n.subTheme)||void 0===t?void 0:t["txt-black-darkest"]}),(e=>{var t;let{foundation:n}=e;return null==n||null===(t=n.subTheme)||void 0===t?void 0:t["bg-grey-lighter"]}),h.ZT.RemSize13,(()=>E.iv`
|
||
animation: ${d} 0.2s ease-in;
|
||
`)),p=E.zo.div.withConfig({displayName:"Tooltipstyled__TargetWrapper",componentId:"ch-front__sc-7p7m1r-1"})(["",""],(e=>{let{interpolation:t}=e;return t})),m=function(e){let{children:t,content:n,delayHide:c=0,disabled:E,placement:u=l.Z.BOTTOM,marginX:h=0,marginY:d=0,interpolation:m}=e;const[S,g]=(0,o.useState)(!1),T=o.useRef(null),C=o.useRef(null),{layoutContainer:R}=i.Z,f=()=>{C.current&&window.clearTimeout(C.current),g(!0)},A=()=>{C.current=window.setTimeout((()=>{g(!1)}),s.Z.isTouchableDevice?0:c)};if((0,o.useEffect)((()=>()=>{C.current&&window.clearTimeout(C.current)}),[]),!R)return null;const I=function(e){let{container:t,marginX:n,marginY:o,placement:r,target:i}=e;if(!i||!t)return{};const{height:s,width:a,top:c,left:E}=i.getBoundingClientRect(),{top:u,left:h}=t.getBoundingClientRect(),d=`translateY(${o}px)`,_=`translateY(${-o}px) translateY(-100%)`,p=`translateY(${s+o}px)`,m=`translateY(${s-o}px) translateY(-100%)`,S=`translateX(${n}px)`,g=`translateX(${-n}px) translateX(-100%)`,T=`translateX(${a+n}px)`,C=`translateX(${a-n}px) translateX(-100%)`;let R=`translateX(${a/2+n}px) translateX(-50%)`,f=`translateY(${s/2+o}px) translateY(-50%)`;if(r){switch(r){case l.Z.TOP:case l.Z.TOP_LEFT:case l.Z.TOP_RIGHT:f=_;break;case l.Z.RIGHT:case l.Z.RIGHT_TOP:case l.Z.RIGHT_BOTTOM:R=T;break;case l.Z.BOTTOM:case l.Z.BOTTOM_LEFT:case l.Z.BOTTOM_RIGHT:f=p;break;case l.Z.LEFT:case l.Z.LEFT_TOP:case l.Z.LEFT_BOTTOM:R=g}switch(r){case l.Z.RIGHT_TOP:case l.Z.LEFT_TOP:f=d;break;case l.Z.TOP_RIGHT:case l.Z.BOTTOM_RIGHT:R=C;break;case l.Z.RIGHT_BOTTOM:case l.Z.LEFT_BOTTOM:f=m;break;case l.Z.TOP_LEFT:case l.Z.BOTTOM_LEFT:R=S}}return{position:"absolute",top:c-i.clientTop-u,left:E-i.clientLeft-h,transform:`${R} ${f}`}}({container:R,marginX:h,marginY:d,placement:u,target:T.current}),v=S&&!E&&r.createPortal(o.createElement(_,{role:"tooltip",style:I,onMouseEnter:f,onMouseLeave:A},n),R||a.Z.rootElement);return o.createElement(o.Fragment,null,v,o.createElement(p,{onMouseEnter:f,onMouseLeave:A,interpolation:m,ref:T},t))}},32587:(e,t,n)=>{"use strict";n.d(t,{B_:()=>I,G7:()=>j,Hn:()=>m,Jd:()=>v,Km:()=>f,Kx:()=>b,Mn:()=>A,Mz:()=>_,R$:()=>M,T3:()=>p,Tj:()=>Z,Um:()=>w,Vz:()=>U,Wg:()=>$,Xj:()=>z,Ym:()=>V,ZB:()=>K,a6:()=>B,az:()=>P,bG:()=>k,bT:()=>G,c7:()=>N,cN:()=>q,dZ:()=>W,dh:()=>R,gL:()=>x,im:()=>C,jx:()=>O,ph:()=>Q,x1:()=>H,xr:()=>F,zF:()=>y});var o=n(81739),r=n(63445),i=n(11919),s=n(28961),a=n(33122),l=n(74117),c=n(15964),E=n(48825),u=n(68366),h=n(58138),d=n(50056);const _=18,p=50,m=10,{isTouchableDevice:S}=s.Z,g=e=>{const{color:t,useFallbackColor:n}=e;return n?{bgColor:o.iv`
|
||
background-color: ${e.theme["bg-black-dark"]};
|
||
`,hoveredBgColor:o.iv`
|
||
background-color: ${e.theme["bg-black-darkest"]};
|
||
`}:{bgColor:o.iv`
|
||
background-color: ${(0,c.WH)(t,.2)};
|
||
`,hoveredBgColor:o.iv`
|
||
background-color: ${(0,c.WH)(t,.3)};
|
||
`}},T=o.iv`
|
||
cursor: pointer;
|
||
|
||
display: flex;
|
||
align-items: center;
|
||
align-self: flex-end;
|
||
justify-content: center;
|
||
|
||
width: 38px;
|
||
height: 38px;
|
||
margin-bottom: 6px;
|
||
|
||
color: ${e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-dark"]}};
|
||
|
||
${(0,c.jC)(o.iv`
|
||
color: ${e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-darker"]}};
|
||
`)}
|
||
`,C=o.zo.section.withConfig({displayName:"ChatRoomFooterstyled__Wrapper",componentId:"ch-front__sc-fucbfx-0"})(["position:sticky;z-index:",";right:0;bottom:0;left:0;width:100%;"," ",""],l.Z.CHATROOM_FOOTER,(e=>{let{applyAnimation:t}=e;return t&&(0,d.SE)()}),(e=>{let{visible:t}=e;return!t&&o.iv`
|
||
display: none;
|
||
`})),R=o.zo.div.withConfig({displayName:"ChatRoomFooterstyled__SafeAreaInsetBottom",componentId:"ch-front__sc-fucbfx-1"})(["width:100%;height:env(safe-area-inset-bottom);background-color:var(--bg-white-low);"]),f=o.zo.button.withConfig({displayName:"ChatRoomFooterstyled__EmojiButton",componentId:"ch-front__sc-fucbfx-2"})(["margin-left:1px;",""],T),A=o.zo.button.withConfig({displayName:"ChatRoomFooterstyled__CommandButton",componentId:"ch-front__sc-fucbfx-3"})(["margin-left:1px;",""],T),I=o.zo.button.withConfig({displayName:"ChatRoomFooterstyled__CancelCommandButton",componentId:"ch-front__sc-fucbfx-4"})(["z-index:1;",""],T),v=o.zo.div.withConfig({displayName:"ChatRoomFooterstyled__ChatRoomTextAreaContainer",componentId:"ch-front__sc-fucbfx-5"})(["position:relative;padding:0 ","px ","px ","px;"],m,m,m),y=o.zo.div.withConfig({displayName:"ChatRoomFooterstyled__ChatRoomTextAreaWrapper",componentId:"ch-front__sc-fucbfx-6"})(["position:relative;display:flex;align-items:center;min-width:0;min-height:","px;padding:0 6px 0 14px;background:linear-gradient( 92.34deg,"," 48.04%,"," 100% );backdrop-filter:blur(60px);border-radius:","px;"],p,(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-gnb"]}),(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-navi"]}),_),U=o.zo.div.withConfig({displayName:"ChatRoomFooterstyled__ChatRoomTextAreaBackground",componentId:"ch-front__sc-fucbfx-7"})(["position:absolute;right:0;bottom:0;left:0;width:100%;height:26px;background-color:var(--bg-white-low);"]),Z=o.zo.div.withConfig({displayName:"ChatRoomFooterstyled__TextAreaWrapper",componentId:"ch-front__sc-fucbfx-8"})(["display:flex;flex:1 1 0;padding-bottom:14px;"]),O=o.iv`
|
||
resize: none;
|
||
scrollbar-width: none; /* hide scrollbar in FF */
|
||
|
||
overflow: hidden scroll;
|
||
|
||
width: 100%;
|
||
min-width: 0;
|
||
margin: auto;
|
||
padding: 0; /* reset textarea-autosize padding */
|
||
padding-top: 14px;
|
||
padding-right: 10px;
|
||
|
||
color: ${e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-darkest"]}};
|
||
|
||
background-color: transparent;
|
||
border: none;
|
||
|
||
${r.ZT.Size15}
|
||
|
||
&::-webkit-scrollbar {
|
||
display: none;
|
||
}
|
||
`,b=(0,o.zo)(i.Z).withConfig({displayName:"ChatRoomFooterstyled__TextArea",componentId:"ch-front__sc-fucbfx-9"})([""," &::placeholder{color:",";","}"],O,(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-dark"]}),r.ZT.Size15),N=o.zo.button.withConfig({displayName:"ChatRoomFooterstyled__SendButton",componentId:"ch-front__sc-fucbfx-10"})([""," cursor:pointer;display:flex;align-items:center;align-self:flex-end;justify-content:center;width:36px;height:36px;margin:0 1px 7px 2px;padding:0;border:none;border-radius:15px;",""],(e=>{let{foundation:t}=e;return t&&g(t).bgColor}),(e=>{let{foundation:t}=e;return t&&(0,c.jC)(o.iv`
|
||
${g(t).hoveredBgColor}
|
||
`)})),w=(0,o.zo)(E.Z).withConfig({displayName:"ChatRoomFooterstyled__SendButtonIcon",componentId:"ch-front__sc-fucbfx-11"})([""]),L=o.zo.div.withConfig({displayName:"ChatRoomFooterstyled__FooterWrapper",componentId:"ch-front__sc-fucbfx-12"})(["display:flex;flex-direction:column;align-items:center;padding:16px 20px 20px;"," font-weight:bold;background-color:var(--bg-white-high);box-shadow:0 -1px 4px 0 rgba(0,0,0,8%),0 0 2px 1px rgba(0,0,0,5%);"],r.ZT.Size13),M=(0,o.zo)(L).withConfig({displayName:"ChatRoomFooterstyled__DisabledNoticeWrapper",componentId:"ch-front__sc-fucbfx-13"})(["color:",";"],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-dark"]})),P=(0,o.zo)(L).withConfig({displayName:"ChatRoomFooterstyled__ButtonBoxWrapper",componentId:"ch-front__sc-fucbfx-14"})(["row-gap:8px;color:var(--txt-black-dark,rgba(0,0,0,4%));"]),D=o.zo.button.withConfig({displayName:"ChatRoomFooterstyled__ChatButtonWrapper",componentId:"ch-front__sc-fucbfx-15"})(["cursor:pointer;display:flex;column-gap:6px;align-items:center;justify-content:center;width:100%;height:40px;"," font-weight:bold;border:none;border-radius:14px;&:disabled{cursor:not-allowed;opacity:0.4;}"],r.ZT.Size14),k=(0,o.zo)(D).withConfig({displayName:"ChatRoomFooterstyled__StartChatButtonWrapper",componentId:"ch-front__sc-fucbfx-16"})(["color:",";",""],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-darkest"]}),h.W),x=(0,o.zo)(D).withConfig({displayName:"ChatRoomFooterstyled__NewChatButtonWrapper",componentId:"ch-front__sc-fucbfx-17"})(["position:relative;color:",";background:",";",""],(e=>{let{foundation:t}=e;return null==t?void 0:t.textColor}),(e=>{let{foundation:t}=e;return`linear-gradient(135deg, ${null==t?void 0:t.color} 0%, ${null==t?void 0:t.gradientColor}) 100%`}),u.el),H=o.zo.input.withConfig({displayName:"ChatRoomFooterstyled__HiddenInput",componentId:"ch-front__sc-fucbfx-18"})(["pointer-events:none;position:absolute;opacity:0;"]),G=o.zo.label.withConfig({displayName:"ChatRoomFooterstyled__FileUploadLabel",componentId:"ch-front__sc-fucbfx-19"})([""," overflow:hidden;margin-left:1px;"],T),B=o.zo.input.withConfig({displayName:"ChatRoomFooterstyled__FileUploadInput",componentId:"ch-front__sc-fucbfx-20"})(["&:focus-visible + label{","}"],a.zu),Q=o.zo.div.withConfig({displayName:"ChatRoomFooterstyled__AbsoluteWrapper",componentId:"ch-front__sc-fucbfx-21"})(["position:absolute;top:0;right:0;left:0;transform:translateY(-100%);display:flex;flex-direction:column;align-items:center;justify-content:center;"]),W=o.zo.div.withConfig({displayName:"ChatRoomFooterstyled__DecoratorContainer",componentId:"ch-front__sc-fucbfx-22"})(["position:absolute;top:0;right:0;left:0;transform:translateY(-100%);"]),F=o.zo.div.withConfig({displayName:"ChatRoomFooterstyled__AutocompleteContainer",componentId:"ch-front__sc-fucbfx-23"})([""]),z=o.zo.div.withConfig({displayName:"ChatRoomFooterstyled__OverlayContainer",componentId:"ch-front__sc-fucbfx-24"})([""]),V=o.zo.li.withConfig({displayName:"ChatRoomFooterstyled__CommandListItem",componentId:"ch-front__sc-fucbfx-25"})(["cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;min-width:0;margin:0;padding:8px 6px;list-style:none;background-color:",";border-radius:6px;&:active{background-color:",";}"],(e=>{let{foundation:t,focused:n}=e;return n?null==t?void 0:t.theme["bg-black-lighter"]:"transparent"}),(e=>{let{foundation:t,focused:n}=e;return S||n?null==t?void 0:t.theme["bg-black-lighter"]:"transparent"})),j=o.zo.div.withConfig({displayName:"ChatRoomFooterstyled__CommandName",componentId:"ch-front__sc-fucbfx-26"})(["overflow:hidden;max-width:100%;margin-bottom:2px;"," font-weight:bold;color:",";text-overflow:ellipsis;white-space:nowrap;"],r.ZT.Size14,(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-darkest"]})),$=o.zo.div.withConfig({displayName:"ChatRoomFooterstyled__CommandDescription",componentId:"ch-front__sc-fucbfx-27"})(["overflow:hidden;max-width:100%;"," color:",";text-overflow:ellipsis;white-space:nowrap;"],r.ZT.Size13,(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-darker"]})),K=o.zo.button.withConfig({displayName:"ChatRoomFooterstyled__SendCommandButton",componentId:"ch-front__sc-fucbfx-28"})(["cursor:pointer;display:flex;align-items:center;align-self:flex-end;justify-content:center;width:36px;height:36px;margin:0 1px 7px 2px;padding:0;border:none;border-radius:15px;",";"],(e=>{let{foundation:t,disabled:n}=e;return(0,u.vD)({foundation:t,disabled:n})})),q=(0,o.zo)(E.Z).withConfig({displayName:"ChatRoomFooterstyled__SendCommandIcon",componentId:"ch-front__sc-fucbfx-29"})(["",";"],(e=>{let{foundation:t}=e;return(0,u.xm)({foundation:t})}))},42474:(e,t,n)=>{"use strict";var o;n.d(t,{Z:()=>r}),function(e){e.Boolean="boolean",e.Date="date",e.Datetime="datetime",e.List="list",e.ListOfNumber="listofnumber",e.Number="number",e.String="string"}(o||(o={}));const r=o},66934:(e,t,n)=>{"use strict";var o;n.d(t,{Z:()=>r}),function(e){e.Boolean="bool",e.Checkbox="checkbox",e.Date="date",e.Datetime="datetime",e.MultiSelect="multiSelect",e.Number="number",e.Radio="radio",e.SingleSelect="singleSelect",e.Text="text"}(o||(o={}));const r=o},82667:(e,t,n)=>{"use strict";n.d(t,{HN:()=>r,P8:()=>a,_z:()=>s,qk:()=>i,zw:()=>o});const o=44,r=56,i=18,s=24,a=10},68366:(e,t,n)=>{"use strict";n.d(t,{Qj:()=>l,el:()=>i,vD:()=>s,xm:()=>a});var o=n(81739),r=n(15964);const i=(0,o.iv)(["&::after{pointer-events:none;content:'';position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;background:var(--bgtxt-absolute-black-lightest);border-radius:inherit;transition:opacity 150ms cubic-bezier(0.3,0,0,1);}",";"],(0,r.jC)((0,o.iv)(["&::after{opacity:1;}"]))),s=e=>{let{foundation:t,disabled:n}=e;return(0,o.iv)(["position:relative;background:",";",";"],t&&function(e,t){if(e)return t.theme["bg-black-lighter"];const n=(0,r.uz)(null==t?void 0:t.color);return(null==t?void 0:t.color)!==n?n:(null==t?void 0:t.color)===(null==t?void 0:t.gradientColor)?null==t?void 0:t.color:`linear-gradient(90deg, ${null==t?void 0:t.color} 48.41%, ${null==t?void 0:t.gradientColor}) 100%`}(n,t),!n&&i)},a=e=>{let{foundation:t,disabled:n}=e;return(0,o.iv)(["color:",";"],t&&function(e,t){return e?t.theme["txt-black-dark"]:t.textColor}(n,t))},l=o.zo.a.withConfig({displayName:"NewChatButtonstyled__LinkButton",componentId:"ch-front__sc-1nuv8bj-0"})(["cursor:pointer;display:flex;gap:2px;align-items:center;justify-content:center;width:100%;padding:14px 24px;border-radius:16px;",";",";"],(e=>{let{foundation:t,disabled:n}=e;return s({foundation:t,disabled:n})}),(e=>{let{foundation:t,disabled:n}=e;return a({foundation:t,disabled:n})}))},38693:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(80070);class r{constructor(e,t){(0,o.Z)(this,"type",void 0),(0,o.Z)(this,"value",void 0),(0,o.Z)(this,"options",{}),(0,o.Z)(this,"children",void 0),this.type=e,this.value=t,this.children=[]}}},13892:(e,t,n)=>{"use strict";n.d(t,{BM:()=>_,Ur:()=>E,ZP:()=>m,ar:()=>h,j0:()=>c,nR:()=>d,tn:()=>u});var o=n(80070),r=n(23206),i=n(76627),s=n(50655),a=n(50022),l=n(38693);const c="root",E="text",u="emoji",h="link",d="b",_="i";class p extends r.U{constructor(e){super(),(0,o.Z)(this,"queue",[]),(0,o.Z)(this,"current",new l.Z(c)),(0,o.Z)(this,"plainBuffer",""),(0,o.Z)(this,"dictionary",null),(0,o.Z)(this,"attributeType",""),(0,o.Z)(this,"attributeValue",null),e.dictionary&&(this.dictionary=e.dictionary)}getResult(){return this.current}shiftText(){this.plainBuffer&&(this.current.children.push(new l.Z(E,this.plainBuffer)),this.plainBuffer="")}shiftContext(){this.shiftText();const e=this.queue.pop();e&&(e.children.push(this.current),this.current=e)}enterBlock(){this.queue=[],this.current=new l.Z(c)}exitBlock(){for(this.plainBuffer&&this.shiftText();this.queue.length>0;)this.shiftContext()}enterGroup(){this.shiftText(),this.queue.push(this.current),this.current=new l.Z("group")}exitGroup(){this.shiftContext()}enterNewLine(e){this.plainBuffer+=e.getText()}exitNewLine(){this.shiftText()}enterTag(e){const t=e.TAG_NAME();if(null==t||!t.length)return;const n=t[0].getText();this.shiftText(),this.queue.push(this.current),this.current=new l.Z(n)}exitTag(){this.shiftContext()}enterAttribute(e){const[t,n]=e.getText().split("=");t&&n&&"type"===t?this.attributeType=n.slice(1,-1):t&&(this.attributeType=t)}exitAttribute(){this.attributeType=""}enterAttrValue(e){this.attributeValue=(0,s.l0)(e.getText())}exitAttrValue(){this.attributeType&&this.attributeValue&&(this.current.options[this.attributeType]=this.attributeValue),this.attributeValue=null}enterContent(){}exitContent(){}enterEmoji(){}exitEmoji(e){const t=e.getText(),[,n]=t.split(":");if(i.ZP.getEmoji(n))return this.shiftText(),void this.current.children.push(new l.Z(u,n));this.plainBuffer+=t}enterVariable(e){var t,n;if(!this.dictionary)return void(this.plainBuffer+=e.getText());const o=null===(t=e.getChild(1))||void 0===t?void 0:t.getText(),r=null===(n=e.getChild(3))||void 0===n?void 0:n.getText();this.plainBuffer+=o.split(".").reduce(((e,t)=>null==e?void 0:e[t]),this.dictionary)??r??e.getText()}exitVariable(){}enterVariableFallback(){}exitVariableFallback(){}enterPlain(e){(0,a.kK)(this.attributeValue)&&(this.plainBuffer+=e.getText())}exitPlain(){}enterEscape(e){(0,a.kK)(this.attributeValue)&&(this.plainBuffer+=e.getText())}exitEscape(){}}const m=p},92027:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>_,nZ:()=>d});var o=n(12442),r=n(52609),i=n(47405),s=n(42135);const a={serializer:e=>JSON.stringify(e),cache:new Map},l=new class{memoize(e){let{serializer:t=a.serializer,cache:n=a.cache}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];const s=t(r);if(n.has(s))return n.get(s);const a=e(...r);return n.set(s,a),a}}};var c=n(38693),E=n(13892);const u=(e,t)=>{const n=new E.ZP({dictionary:t});if(!e)return new c.Z("root");const a=(e=>e.replace(/<link(?:(?!\stype=)[^>])*\stype="(team|manager)"[^>]*>([^<]*)<\/link>/g,((e,t,n)=>n)))(e),l=new o.InputStream(a),u=new i.N(l),h=new o.CommonTokenStream(u),d=new s.J(h);d.buildParseTrees=!0;const _=d.block();return r.ParseTreeWalker.DEFAULT.walk(n,_),n.getResult()},h=new Map,d=(e,t)=>l.memoize(u,{serializer:()=>e,cache:h})(t),_=u},58138:(e,t,n)=>{"use strict";n.d(t,{W:()=>S,Z:()=>C});var o=n(18276),r=n(50813),i=n(81739),s=n(43431),a=n(63445),l=n(77202),c=n(36198),E=n(52983),u=n(99951),h=n(40684),d=n(47864),_=n(10919),p=n(39156),m=n(15964);const S=i.iv`
|
||
background: var(--bg-black-lighter, rgba(0, 0, 0, 0.05));
|
||
transition: background-color 150ms cubic-bezier(0.3, 0, 0, 1);
|
||
|
||
${(0,m.jC)(i.iv`
|
||
background: var(--bg-black-light, rgba(0, 0, 0, 0.08));
|
||
`)}
|
||
`,g=i.zo.a.withConfig({displayName:"MainChatButton__Wrapper",componentId:"ch-front__sc-18xugjs-0"})(["display:flex;gap:8px;align-items:center;justify-content:center;padding:14px 16px 14px 14px;cursor:pointer;border-radius:16px;",""],S),T=i.zo.div.withConfig({displayName:"MainChatButton__IconWrapper",componentId:"ch-front__sc-18xugjs-1"})(["display:flex;gap:16px;margin-left:auto;"]),C=function(){const e=(0,u.I0)(),{translate:t}=(0,_.Z)(),n=(0,u.v9)(d.Z.mainChatSelectors.getMainChatId),i=(0,u.v9)((e=>d.Z.userChatsSelectors.isUserChatAlf(e,n)));return E.createElement(g,{onClick:t=>{t.preventDefault(),e(h.Z.userChatActions.goUserChat({userChatId:n}))},href:(0,p.ID)(n)},E.createElement(s.Z,{typo:a.ZT.Size15,color:"txt-black-dark"},t(i?"ch.alf.input_placeholder":"ch.messenger.placeholder")),E.createElement(T,null,E.createElement(l.J,{source:o.F,size:c.J.S,color:"txt-black-dark"}),E.createElement(l.J,{source:r.C,size:c.J.S,color:"txt-black-dark"})))}},48126:(e,t,n)=>{"use strict";n.d(t,{p3:()=>A,Jj:()=>R,sZ:()=>l,p6:()=>E,A7:()=>d});var o=n(99951),r=n(47864);const i=function(){const e=(0,o.v9)(r.Z.mainChatSelectors.getMainChat);return(0,o.v9)(r.Z.userChatsSelectors.getUserChat).id||(null==e?void 0:e.id)};var s=n(10919),a=n(80577);function l(){const e=i(),t=(0,o.v9)((t=>r.Z.chatOperationSelectors.isInOperation(t,e))),n=(0,o.v9)((t=>r.Z.chatOperationSelectors.isOperationTimeScheduling(t,e))),s=(0,o.v9)((t=>r.Z.chatOperationSelectors.nextOperatingAt(t,e))),l=a.Z.getDate().getTime();return!t&&n&&s>l+6e4}var c=n(86548);function E(){const e=i(),t=(0,o.v9)((t=>r.Z.chatOperationSelectors.nextOperatingAt(t,e))),n=(0,o.v9)(r.Z.userSelectors.getSystemLanguage),{translate:a}=(0,s.Z)();return a("ch.response_status.auto",(0,c.Ym)(t,n,a))}var u=n(29823);const h={[u.D.INSTANT]:"ch.response_delay.fast",[u.D.NORMAL]:"ch.response_delay.few_minutes",[u.D.DELAYED]:"ch.response_delay.delayed"};function d(){const e=i(),t=(0,o.v9)((t=>r.Z.chatOperationSelectors.isInOperation(t,e))),n=(0,o.v9)((t=>r.Z.chatOperationSelectors.isNewChatAvailable(t,e))),{translate:a}=(0,s.Z)(),c=E(),u=l(),d=function(){const e=i(),t=(0,o.v9)((t=>r.Z.chatOperationSelectors.expectedResponseDelay(t,e))),{translate:n}=(0,s.Z)();return n(h[t])}();return t?d:u?c:a(n?"ch.response_status.away_active":"ch.response_status.out_of_office")}var _=n(32177),p=n(31741),m=n(7814),S=n(97677),g=n(77202),T=n(36198),C=n(52983);const R=function(){const e=i(),t=(0,o.v9)((t=>r.Z.chatOperationSelectors.isInOperation(t,e))),n=(0,o.v9)((t=>r.Z.chatOperationSelectors.expectedResponseDelay(t,e))),s=(0,o.v9)((t=>r.Z.chatOperationSelectors.isNewChatAvailable(t,e))),a=l(),c=t?n===u.D.INSTANT?_.L:p.D:a||s?m.C:S.C,E=t?n===u.D.DELAYED?"bgtxt-yellow-normal":"bgtxt-green-normal":"txt-black-dark";return C.createElement(g.J,{source:c,color:E,size:T.J.XS})};var f=n(43431);const A=function(e){let{typo:t,userChatId:n}=e;const i=(0,o.v9)((e=>r.Z.chatOperationSelectors.isInOperation(e,n)));return C.createElement(f.Z,{typo:t,color:i?"txt-black-dark":"txt-black-darker",bold:!i,truncated:!0},d())}},51328:(e,t,n)=>{"use strict";let o,r,i;n.d(t,{GL:()=>o,hi:()=>r,wj:()=>i}),function(e){e[e.NetworkError=0]="NetworkError",e[e.Unauthenticated=401]="Unauthenticated",e[e.Forbidden=403]="Forbidden",e[e.NotFound=422]="NotFound"}(o||(o={})),function(e){e.ConstraintChannelError="constraintChannelError",e.ConstraintClientError="constraintClientError",e.ConstraintUrlError="constraintUrlError",e.SessionJWTInvalidError="sessionJWTInvalidError"}(r||(r={})),function(e){e.ChunkLoadError="ChunkLoadError"}(i||(i={}))},49540:(e,t,n)=>{"use strict";n.d(t,{$:()=>$,U:()=>q});var o=n(52983),r=n(28961),i=n(94046),s=n(10919),a=n(48793),l=n(50022),c=n(15183),E=n(63395),u=n(99951),h=n(40684),d=n(47864),_=n(14559),p=n(84555),m=n(94785);let S;function g(e,t){return e.pluginTextI18n[t]||e.pluginTextI18n.text}!function(e){e.Cobalt="cobalt",e.Grey="grey"}(S||(S={}));var T=n(77202),C=n(36198),R=n(81739),f=n(15964);const A=R.zo.a.withConfig({displayName:"IntegrationItemstyled__LinkContainer",componentId:"ch-front__sc-1nhdapy-0"})(["cursor:pointer;"]);let I;!function(e){e.Large="large",e.Small="small"}(I||(I={}));const v=R.zo.div.withConfig({displayName:"IntegrationItemstyled__Item",componentId:"ch-front__sc-1nhdapy-1"})(["overflow:hidden;display:flex;align-items:center;justify-content:center;transition:transform 0.1s ease-out;"," "," ",""],(function(e){let{size:t}=e;switch(t){default:case I.Small:return(0,R.iv)(["width:34px;height:34px;border-radius:12px;"]);case I.Large:return(0,R.iv)(["width:54px;height:54px;border-radius:20px;"])}}),(function(e){let{color:t}=e;switch(t){case S.Cobalt:return(0,R.iv)(["color:var(--bgtxt-cobalt-normal);background:var(--bgtxt-cobalt-lighter);"]);default:case S.Grey:return(0,R.iv)(["color:var(--txt-black-dark);background:var(--bg-black-light);"])}}),(0,f.jC)((0,R.iv)(["transform:scale(1.1);"]))),y=R.zo.img.withConfig({displayName:"IntegrationItemstyled__Image",componentId:"ch-front__sc-1nhdapy-2"})(["width:100%;height:100%;"]),U="phone",{isMobile:Z,isKakaoInAppBrowser:O,isAndroidChrome114:b}=r.Z;function N(e){let{className:t,integrationItem:n,onMouseOver:r,size:i}=e;const{avatarUrl:s,href:a,icon:l,name:c,key:E,text:d,color:_}=n,p=function(e){let{key:t,href:n,name:o}=e;const r=(0,u.I0)(),i=(s=t===U,O?"_parent":s&&b?"_self":s&&Z?"_parent":"_blank");var s;return e=>{e.preventDefault(),t===U||n?window.open(n,i):o&&r(h.Z.appMessengerActions.requestGetAppMessengerDeepLink({appMessengerName:o})).subject.subscribe({next:e=>{window.open(e.uri,i)},error:()=>{}})}}({key:E,href:a,name:c});return o.createElement(A,{className:t,href:a,onClick:p,onMouseOver:r},o.createElement(v,{color:_,size:i},l&&o.createElement(T.J,{source:l,size:"large"===i?C.J.L:C.J.Normal}),s&&o.createElement(y,{alt:d,src:s})))}N.Size=I;const w=N;var L=n(99749);const M=R.zo.button.withConfig({displayName:"MoreButton__ButtonContainer",componentId:"ch-front__sc-n1zo7n-0"})(["cursor:pointer;"]);function P(e){let{onClick:t,size:n}=e;return o.createElement(M,{onClick:t},o.createElement("span",{className:"a11y-hidden"},"See more ways to talk to us"),o.createElement(v,{size:n},o.createElement(T.J,{source:L.M,size:"large"===n?C.J.L:C.J.Normal})))}var D=n(73489),k=n(63445);const x=R.zo.div.withConfig({displayName:"IntegrationModalstyled__Content",componentId:"ch-front__sc-1pd1hz9-0"})(["display:flex;flex-wrap:wrap;gap:24px;justify-content:center;margin:24px 16px 40px;padding:0 16px;"]),H=R.zo.div.withConfig({displayName:"IntegrationModalstyled__Wrapper",componentId:"ch-front__sc-1pd1hz9-1"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;"]),G=R.zo.div.withConfig({displayName:"IntegrationModalstyled__Name",componentId:"ch-front__sc-1pd1hz9-2"})(["margin-top:12px;font-weight:bold;color:",";text-decoration:none;",";"],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-dark"]}),k.ZT.Size13),B=function(e){let{integratedItems:t,targetNodeRefToReturn:n}=e;const{translate:r}=(0,s.Z)();return o.createElement(D.Z,{title:r("ch.lounge.card.integrations.title"),targetNodeRefToReturn:n},o.createElement(x,null,t.map((e=>o.createElement(H,{key:e.key},o.createElement(w,{size:w.Size.Large,integrationItem:e}),o.createElement(G,null,e.text))))))};var Q=n(57410);const W=R.zo.div.withConfig({displayName:"IntegrationCardstyled__ToolTipContent",componentId:"ch-front__sc-ikg1gf-0"})(["overflow:hidden;max-width:210px;text-overflow:ellipsis;white-space:nowrap;"]),F=R.zo.div.withConfig({displayName:"IntegrationCardstyled__IconsWrapper",componentId:"ch-front__sc-ikg1gf-1"})(["display:flex;gap:6px;margin:auto 0;"]),z=(0,R.zo)(Q.Z).withConfig({displayName:"IntegrationCardstyled__Wrapper",componentId:"ch-front__sc-ikg1gf-2"})(["position:relative;display:flex;flex-direction:row;align-content:center;padding:14px;"]),V=R.zo.h2.withConfig({displayName:"IntegrationCardstyled__Title",componentId:"ch-front__sc-ikg1gf-3"})(["display:flex;flex:1;margin:auto 0;padding:0;font-weight:bold;",";color:",";"],k.ZT.Size13,(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-dark"]})),{isTouchableDevice:j}=r.Z,$=function(){const{translate:e}=(0,s.Z)(),{openModal:t}=(0,i.Z)(),n=function(){const{translate:e}=(0,s.Z)(),t=(0,u.I0)(),n=(0,u.v9)(d.Z.appMessengerSelectors.getAppMessengers),o=(0,u.v9)(d.Z.appMessengerSelectors.getDeepLinkUris),r=(0,u.v9)(d.Z.channelProfileSelectors.parsedPhoneNumber),i=(0,u.v9)(d.Z.channelProfileSelectors.channelPhoneNumber),a=(0,u.v9)(d.Z.userSelectors.getSystemLanguage),l=n.map((e=>({name:e.name,avatarUrl:e.avatarUrl,href:o[e.name],key:e.name,text:g(e,a),tooltip:g(e,a)}))),[c]=(0,_.Z)({actionType:p.Z.REQUEST_GET_CHANNEL_PHONE_NUMBER}),T=!!r.e164,C=i?{href:`tel:${i}`,icon:E.C,key:"phone",color:S.Cobalt,text:e("ch.integration.phone.text"),tooltip:T?e("ch.integrations.phone.tooltip",r.international):void 0,onMouseOver:()=>{T||c||t(h.Z.channelProfileActions.requestGetChannelPhoneNumber({number:i}))}}:null;return(0,m.o)([...l,C])}(),r=o.useRef(null),T=n.length>3,C=T?n.slice(0,2):n,R=o.createElement(F,null,C.map((e=>o.createElement(c.Z,{key:e.key,content:o.createElement(W,null,e.tooltip),placement:a.Z.LEFT,marginX:8,disabled:(0,l.xb)(e.tooltip)||j},o.createElement(w,{size:w.Size.Small,integrationItem:e,onMouseOver:e.onMouseOver})))),T&&o.createElement(P,{onClick:e=>{r.current=e.currentTarget,t(o.createElement(B,{targetNodeRefToReturn:r.current?r:void 0,integratedItems:n}))},size:w.Size.Small}));return o.createElement(z,null,o.createElement(V,null,e("ch.integration.title")),R)};var K=n(57730);const q=function(){return o.createElement(z,null,o.createElement(V,null,o.createElement(K.N2,{width:109})),o.createElement(F,null,o.createElement(K.N0,{size:34})))}},87374:(e,t,n)=>{"use strict";n.d(t,{d:()=>a,im:()=>s,mi:()=>c,r8:()=>l});var o=n(81739),r=n(10412),i=n(15964);const s=o.zo.div.withConfig({displayName:"SettingProfilestyled__Wrapper",componentId:"ch-front__sc-1e15fqm-0"})(["display:flex;flex-direction:column;gap:16px;align-items:center;width:100%;padding:16px 24px;"]),a=o.zo.div.withConfig({displayName:"SettingProfilestyled__Information",componentId:"ch-front__sc-1e15fqm-1"})(["display:flex;flex-direction:column;gap:4px;align-items:center;width:100%;text-align:center;&:empty{display:none;}"]),l=o.zo.div.withConfig({displayName:"SettingProfilestyled__Contact",componentId:"ch-front__sc-1e15fqm-2"})(["color:var(--txt-black-dark,rgba(0,0,0,40%));",""],(0,r.LH)()),c=o.zo.a.withConfig({displayName:"SettingProfilestyled__EditLink",componentId:"ch-front__sc-1e15fqm-3"})(["cursor:pointer;display:flex;align-items:center;padding:3px 4px;background:var(--bg-black-lighter,rgba(0,0,0,5%));border-radius:8px;",""],(0,i.jC)(o.iv`
|
||
background: var(--bg-black-light, rgba(0, 0, 0, 5%));
|
||
`))},52785:(e,t,n)=>{"use strict";var o;n.d(t,{Z:()=>r}),function(e){e.Cobalt="cobalt",e.Default="default",e.Green="green",e.Navy="navy",e.Olive="olive",e.Orange="orange",e.Pink="pink",e.Purple="purple",e.Red="red",e.Yellow="yellow"}(o||(o={}));const r=o},14559:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(52983),r=n(61364),i=n(18394);const s=function(e){let{actionType:t}=e;const n=(0,o.useRef)(null),[s,a]=(0,o.useState)((()=>{const e={isLoading:!1,hasError:!1,payload:null};return r.d.subscribe((o=>{if(o[t]){const{loading:r,error:i,subject:s}=o[t];e.isLoading=r,s.subscribe({next:t=>{e.payload=t},error:t=>{i&&(e.hasError=!0),e.isLoading=!1,e.payload=t,n.current=s},complete:()=>{e.isLoading=!1,n.current=s}}).unsubscribe()}})).unsubscribe(),e})),l=(0,o.useRef)(s);return l.current=s,(0,o.useEffect)((function(){let e=null,o=null;return e=r.d.subscribe((e=>{var r;if(e[t]&&n.current!==(null===(r=e[t])||void 0===r?void 0:r.subject)){const{loading:r,error:s,subject:c}=e[t];n.current=c,(0,i.g)(o);const E={...l.current};(E.isLoading!==r||E.hasError||E.payload)&&(E.isLoading=r,E.hasError=!1,E.payload=null,a({...E})),o=n.current.subscribe({next:e=>{E.payload=e},error(e){s&&(E.hasError=!0),E.isLoading=!1,E.payload=e,a({...E})},complete(){E.isLoading=!1,a({...E})}})}})),()=>{(0,i.g)(e),(0,i.g)(o),n.current=null}}),[t]),[s.isLoading,s.hasError,s.payload]}},87893:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(99951),r=n(47864);const i=function(){return(0,o.v9)(r.Z.channelSelectors.getChannel)}},13156:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(52983);function r(e,t){const[n,r]=(0,o.useState)(!1);return(0,o.useEffect)((function(){if(e)return r(!0),()=>{};const n=setTimeout((()=>{r(!1)}),t);return()=>clearTimeout(n)}),[e,t]),n}},4640:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(52983);function r(){const[,e]=(0,o.useReducer)((e=>!e),!0);return e}},44356:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(52983),r=n(99951),i=n(4640),s=n(18394),a=n(50022);const l=function(e){let{initialize:t,actionCreator:n}=e;const l=(0,r.I0)(),c=(0,o.useRef)(),E=(0,o.useRef)(!1),u=(0,o.useRef)(!1),h=(0,o.useRef)(!1),d=(0,o.useRef)(!1),_=(0,i.Z)();if(!E.current&&(void 0===t&&!u.current||(0,a.jn)(t)&&t||(0,a.mf)(t)&&t())){(0,s.g)(c.current),E.current=!0,u.current=!0;const e=n(),t=e.meta.loading;(t&&!h.current||d.current)&&(h.current=t,d.current=!1,_()),c.current=l(e).subject.subscribe({error(){(e.meta.error||h.current)&&(e.meta.error&&(d.current=!0),h.current=!1,_()),E.current=!1},complete(){h.current&&(h.current=!1,_()),E.current=!1}})}return[h.current,d.current]}},3164:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(99951),r=n(47864),i=n(18291);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{personId:n="",personType:s=null}=e??{},a=(0,i.Z)(),l=(0,o.v9)((e=>r.Z.messagesSelectors.isMessageAuthorEmpty(e,s,n))),c=(0,o.v9)((e=>r.Z.messagesSelectors.getMessageAuthorAvatarUrl(e,s,n))),E=(0,o.v9)((e=>r.Z.messagesSelectors.getMessageAuthorName(e,s,n))),u=(0,o.v9)((e=>r.Z.messagesSelectors.isMessageAuthorAi(e,s,n))),h={avatarUrl:(0,o.v9)(r.Z.channelProfileSelectors.channelLogoUrl),name:(0,o.v9)(r.Z.channelProfileSelectors.channelName),isAi:!1},d={avatarUrl:c,name:E||t||a,isAi:u},_=!e||l||e.getDisplayAsChannel();return _?h:d}},94046:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(52983),r=n(99951),i=n(40684);const s=function(){const e=(0,r.I0)();return{openModal:(0,o.useCallback)(((t,n)=>{e(i.Z.modalActions.openModal({content:t,container:n}))}),[e]),closeModal:(0,o.useCallback)((()=>{e(i.Z.modalActions.closeModal())}),[e])}}},97050:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(52983);function r(){const e=(0,o.useRef)(new Set);return(0,o.useEffect)((()=>()=>{e.current.size>0&&e.current.forEach((e=>{clearTimeout(e)}))}),[]),(0,o.useCallback)((function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const o=window.setTimeout(t,n);return e.current.add(o),o}),[])}},10919:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(52983),r=n(99951),i=n(77567),s=n(60885),a=n(47864),l=n(50022);const c=function(){const e=(0,r.v9)(a.Z.userSelectors.getSystemLanguage),t=(0,o.useCallback)((function(t){const n=s.Z.getTranslateObject(e)[t];for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return(0,l.xb)(r)?n:(0,i.sprintf)(n,...r)}),[e]),n=(0,o.useCallback)((function(t){const n=s.Z.getTranslateObject(e)[t];for(var r=arguments.length,a=new Array(r>1?r-1:0),c=1;c<r;c++)a[c-1]=arguments[c];return o.createElement("span",{dangerouslySetInnerHTML:{__html:(0,l.xb)(a)?n:(0,i.sprintf)(n,...a)}})}),[e]);return{translate:t,translateWithInnerHtml:n}}},18291:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(10919);function r(){const{translate:e}=(0,o.Z)();return e("ch.unknown")}},23817:(e,t,n)=>{"use strict";n.d(t,{JL:()=>S,Rk:()=>d,XS:()=>m,cD:()=>g,i7:()=>h,tn:()=>T});var o=n(81739),r=n(35437),i=n(76438),s=n(28961),a=n(33122),l=n(93099),c=n(50056);const{isIPhone:E}=s.Z,u=(0,o.iv)(["background-color:var(--bg-grey-lighter);"]),h=o.zo.div.withConfig({displayName:"Layoutstyled__PCAppLayout",componentId:"ch-front__sc-19rvneg-0"})(["position:fixed;inset:0;",""],u),d=o.zo.div.withConfig({displayName:"Layoutstyled__PCStandaloneLayout",componentId:"ch-front__sc-19rvneg-1"})(["position:relative;transform:translateZ(0);overflow-x:hidden;width:","px;height:100%;min-height:500px;max-height:","px;border-radius:","px;box-shadow:0 12px 60px 5px rgba(0,0,0,30%);",""],l.L[l.A.Default].width,l.L[l.A.Default].height,a.IZ,u),_=(0,r.F4)(["from{opacity:0;transform:translateY(150px);}20%{opacity:0.5;}to{opacity:1;transform:translateY(0);}"]),p=(0,o.iv)(["animation:"," ","ms cubic-bezier(0.2,1,0.4,1) both;"],_,600),m=o.zo.div.withConfig({displayName:"Layoutstyled__MobileAppLayout",componentId:"ch-front__sc-19rvneg-2"})(["position:fixed;inset:0;"," ",""],u,(e=>{let{showMessenger:t}=e;return t&&p})),S=o.zo.div.withConfig({displayName:"Layoutstyled__MobileStandaloneLayout",componentId:"ch-front__sc-19rvneg-3"})(["display:flex;flex-direction:column;width:100%;min-height:100%;",""],u),g=o.zo.div.withConfig({displayName:"Layoutstyled__FullPageWrapper",componentId:"ch-front__sc-19rvneg-4"})(["width:100%;",""],i.Z.isFixedDocumentMode()?(0,o.iv)(["height:100%;"]):(0,o.iv)(["display:flex;flex:1;flex-direction:column;"])),T=o.zo.div.withConfig({displayName:"Layoutstyled__ScrollableContent",componentId:"ch-front__sc-19rvneg-5"})(["width:100%;",""],i.Z.isFixedDocumentMode()?(0,o.iv)(["overflow-y:auto;height:100%;"," ",""],(0,c.y$)(),E&&(0,c.aN)()):(0,o.iv)(["flex:1;"]))},94722:(e,t,n)=>{"use strict";n.d(t,{Di:()=>c,J$:()=>_,a1:()=>d,rU:()=>h,vx:()=>E});var o=n(81739),r=n(43431),i=n(28961),s=n(74117),a=n(15964);const{isMobile:l}=i.Z,c=l?"calc(env(safe-area-inset-bottom) + 60px)":"60px",E=o.zo.nav.withConfig({displayName:"NavigationBarstyled__NavigationBar",componentId:"ch-front__sc-1kd54kd-0"})(["position:fixed;z-index:",";right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:space-between;height:",";padding:4px 6px 6px;background:",";backdrop-filter:blur(30px);",""],s.Z.NAVIGATION_BAR,c,(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["bg-navi"]}),l&&o.iv`
|
||
padding-bottom: calc(env(safe-area-inset-bottom) + 6px);
|
||
`);function u(e){let{foundation:t}=e;return null!=t&&t.useFallbackColor?null==t?void 0:t.theme["txt-black-darkest"]:null==t?void 0:t.color}const h=o.zo.a.withConfig({displayName:"NavigationBarstyled__Link",componentId:"ch-front__sc-1kd54kd-1"})(["display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;height:100%;color:",";",""],(function(e){let{selected:t,foundation:n}=e;return t?u({foundation:n}):null==n?void 0:n.theme["txt-black-dark"]}),(0,a.jC)(o.iv`
|
||
color: ${u};
|
||
`)),d=o.zo.div.withConfig({displayName:"NavigationBarstyled__IconWrapper",componentId:"ch-front__sc-1kd54kd-2"})(["position:relative;"]),_=(0,o.zo)(r.Z).withConfig({displayName:"NavigationBarstyled__TabTitle",componentId:"ch-front__sc-1kd54kd-3"})(["margin-top:2px;"])},47405:(e,t,n)=>{var o=n(12442),r=["悋Ꜫ脳맭䅼㯧瞆奤","¿\b\b\b\b\t","\t\t\t","\t\t\b\t\b\t\t\t\n\t\n","\v\t\v\f\t\f\r\t\r\t","\t\t\t\t","\t\t\t","\t\t\t\t","\t\t\t","\t\t\t \t ","","","R\n\rS","\\\n\r","]\b\ba\n\b\r\b\bb\t\tf\n\t","\r\t\tg\n\n\v\v\v","\v\f\f\r\ru\n","\rv","~\n\r","","","\n\r","\n\r","","¢\n\r","£©\n","\rª®\n\r","¯"," º\n \r »"," !\b\n\f","\b\t\n\v\f\r",' "$&(*,.0',"2468:<>@B","\t\b--//2;C\\aac|\udffd","2;C\\c|C\\c|\b/02;C\\^^aa",'c|\v\v""',"Ä\b","\n\f","","","",""," ",'"$',"&(*",",.","02","46","8:","<D\bH","\nM\fO","W[`","ei","ko","qt",' x"}$',"&(","*,",".02","4¡6¥","8¨:","<±>³","@µB·","DE>EFFG\b","GHI&IJ}","JKKL\bL\t","MNB N\vOQ","<PR\tQPRS","SQST","TUUV<V\r","WX\ud83eXY\tY","Z\\\t[Z","\\]][]^","^_a>`_","abb`","bccdf@","edfgge","ghh","ij\vjkl@","lmmn\b\vn","op1p","qr?rsu\t","tsuvvt","vww","xy$yzz{\b","{!|~>}|","~}","","\b#","$
","\b%","B '&","}","\b)","\t","","+",">","","-","\v/","","\b1","B 3 ¢\t","¡ ¢£","£¡£¤","¤5¥¦~","¦7§©\t","¨§©ª","ª¨ª«","«9¬®>","¬®¯¯","¯°°",";±²\v²","=³´\t\b´?","µ¶\f¶A","·¹(¸º\t","¹¸º»","»¹»¼","¼½½¾=","¾CS]bgv","£ª¯»","\b"].join(""),i=(new o.atn.ATNDeserializer).deserialize(r),s=i.decisionToState.map((function(e,t){return new o.dfa.DFA(e,t)}));function a(e){return o.Lexer.call(this,e),this._interp=new o.atn.LexerATNSimulator(this,i,s,new o.PredictionContextCache),this}a.prototype=Object.create(o.Lexer.prototype),a.prototype.constructor=a,Object.defineProperty(a.prototype,"atn",{get:function(){return i}}),a.EOF=o.Token.EOF,a.LT=1,a.VAR_BEG=2,a.ESCAPED=3,a.EMOJI=4,a.EMOJI_SKIN_TONE_MODIFIER=5,a.CHAR=6,a.WS=7,a.NEW_LINE=8,a.ANY=9,a.GT=10,a.SLASH=11,a.EQUALS=12,a.TAG_NAME=13,a.STR_BEG=14,a.TAG_WS=15,a.STR_END=16,a.STR_ESCAPED=17,a.STR_VAR_BEG=18,a.STR_CHAR=19,a.STR_WS=20,a.STR_ANY=21,a.VAR_END=22,a.VAR_ESCAPED=23,a.VAR_NAME=24,a.VAR_BAR=25,a.VAR_UNI=26,a.VAR_WS=27,a.VAR_ANY=28,a.TAG=1,a.STR=2,a.VAR=3,a.prototype.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],a.prototype.modeNames=["DEFAULT_MODE","TAG","STR","VAR"],a.prototype.literalNames=[null,"'<'",null,null,null,null,null,null,null,null,"'>'","'/'","'='",null,null,null,null,null,null,null,null,null,"'}'",null,null,"'|'"],a.prototype.symbolicNames=[null,"LT","VAR_BEG","ESCAPED","EMOJI","EMOJI_SKIN_TONE_MODIFIER","CHAR","WS","NEW_LINE","ANY","GT","SLASH","EQUALS","TAG_NAME","STR_BEG","TAG_WS","STR_END","STR_ESCAPED","STR_VAR_BEG","STR_CHAR","STR_WS","STR_ANY","VAR_END","VAR_ESCAPED","VAR_NAME","VAR_BAR","VAR_UNI","VAR_WS","VAR_ANY"],a.prototype.ruleNames=["LT","VAR_BEG","ESCAPED","EMOJI","EMOJI_SKIN_TONE_MODIFIER","CHAR","WS","NEW_LINE","ANY","GT","SLASH","EQUALS","TAG_NAME","STR_BEG","TAG_WS","STR_END","STR_ESCAPED","STR_VAR_BEG","STR_CHAR","STR_WS","STR_ANY","VAR_END","VAR_ESCAPED","VAR_NAME","VAR_BAR","VAR_UNI","VAR_WS","VAR_ANY","Ws","NewLine","Escaped"],a.prototype.grammarFileName="TextBlockLexer.g4",t.N=a},42135:(e,t,n)=>{var o=n(12442),r=n(23206).U,i=["悋Ꜫ脳맭䅼㯧瞆奤","u\t\t\t","\t\t\t","\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f","\r\t\r\n\f"," \v","&\n\r'","/\n\f","2\v","7\n\f:\v","","","L\n\rM\b","\b\b\b\bT\n\b\r\b\bU\t\t","\tZ\n\t\n\n\n\n\n`\n\n\n\n","\v\v\v\v\v\v","i\n\v\f\v\vl\v\v\f\fo\n\f\r\f","\fp\r\r\r","\b\n\f","\b\t\v\v","","%)\b+","\n@\fK","SW","[jn","r",""," ","","! ",'!""',"#&\b$&\b%#","%$&''%","'((",")*\n*+,",",0-/\n.-","/20.","011320","38\f47\b57\b","64657:","86899;",":8;<<=","\r=>>?\f?\t","@AAB","BCCD\fDE","E\vFL\rGL","\nHLILJ","LKFKG","KHKIKJ","LMMKMN","N\rOT\r","PT\tQT\nRT\fS","OSPSQ","SRTUUS","UVV","WYXZYX","YZZ[\\\t","\\_]^","^`\v_]_`","`aabb","ci\rdie","ifigi","hchdhe","hfhgil","jhjk","kljmo\t","nmoppn","pqq","rs\ts","%'068KMSUY_hjp"].join(""),s=(new o.atn.ATNDeserializer).deserialize(i),a=s.decisionToState.map((function(e,t){return new o.dfa.DFA(e,t)})),l=new o.PredictionContextCache,c=[null,"'<'",null,null,null,null,null,null,null,null,"'>'","'/'","'='",null,null,null,null,null,null,null,null,null,"'}'",null,null,"'|'"],E=[null,"LT","VAR_BEG","ESCAPED","EMOJI","EMOJI_SKIN_TONE_MODIFIER","CHAR","WS","NEW_LINE","ANY","GT","SLASH","EQUALS","TAG_NAME","STR_BEG","TAG_WS","STR_END","STR_ESCAPED","STR_VAR_BEG","STR_CHAR","STR_WS","STR_ANY","VAR_END","VAR_ESCAPED","VAR_NAME","VAR_BAR","VAR_UNI","VAR_WS","VAR_ANY"],u=["block","group","newLine","tag","attribute","attrValue","content","emoji","variable","variableFallback","plain","escape"];function h(e){return o.Parser.call(this,e),this._interp=new o.atn.ParserATNSimulator(this,s,a,l),this.ruleNames=u,this.literalNames=c,this.symbolicNames=E,this}function d(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),o.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=h.RULE_block,this}function _(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),o.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=h.RULE_group,this}function p(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),o.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=h.RULE_newLine,this}function m(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),o.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=h.RULE_tag,this}function S(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),o.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=h.RULE_attribute,this}function g(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),o.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=h.RULE_attrValue,this}function T(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),o.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=h.RULE_content,this}function C(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),o.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=h.RULE_emoji,this}function R(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),o.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=h.RULE_variable,this}function f(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),o.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=h.RULE_variableFallback,this}function A(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),o.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=h.RULE_plain,this}function I(e,t,n){return void 0===t&&(t=null),null==n&&(n=-1),o.ParserRuleContext.call(this,t,n),this.parser=e,this.ruleIndex=h.RULE_escape,this}h.prototype=Object.create(o.Parser.prototype),h.prototype.constructor=h,Object.defineProperty(h.prototype,"atn",{get:function(){return s}}),h.EOF=o.Token.EOF,h.LT=1,h.VAR_BEG=2,h.ESCAPED=3,h.EMOJI=4,h.EMOJI_SKIN_TONE_MODIFIER=5,h.CHAR=6,h.WS=7,h.NEW_LINE=8,h.ANY=9,h.GT=10,h.SLASH=11,h.EQUALS=12,h.TAG_NAME=13,h.STR_BEG=14,h.TAG_WS=15,h.STR_END=16,h.STR_ESCAPED=17,h.STR_VAR_BEG=18,h.STR_CHAR=19,h.STR_WS=20,h.STR_ANY=21,h.VAR_END=22,h.VAR_ESCAPED=23,h.VAR_NAME=24,h.VAR_BAR=25,h.VAR_UNI=26,h.VAR_WS=27,h.VAR_ANY=28,h.RULE_block=0,h.RULE_group=1,h.RULE_newLine=2,h.RULE_tag=3,h.RULE_attribute=4,h.RULE_attrValue=5,h.RULE_content=6,h.RULE_emoji=7,h.RULE_variable=8,h.RULE_variableFallback=9,h.RULE_plain=10,h.RULE_escape=11,d.prototype=Object.create(o.ParserRuleContext.prototype),d.prototype.constructor=d,d.prototype.EOF=function(){return this.getToken(h.EOF,0)},d.prototype.group=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(_):this.getTypedRuleContext(_,e)},d.prototype.newLine=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(p):this.getTypedRuleContext(p,e)},d.prototype.enterRule=function(e){e instanceof r&&e.enterBlock(this)},d.prototype.exitRule=function(e){e instanceof r&&e.exitBlock(this)},h.BlockContext=d,h.prototype.block=function(){var e=new d(this,this._ctx,this.state);this.enterRule(e,0,h.RULE_block);var t=0;try{for(this.enterOuterAlt(e,1),this.state=28,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&(1<<h.LT|1<<h.VAR_BEG|1<<h.ESCAPED|1<<h.EMOJI|1<<h.CHAR|1<<h.WS|1<<h.NEW_LINE|1<<h.ANY|1<<h.STR_ESCAPED|1<<h.STR_VAR_BEG|1<<h.VAR_ESCAPED));){switch(this.state=26,this._errHandler.sync(this),this._input.LA(1)){case h.LT:case h.VAR_BEG:case h.ESCAPED:case h.EMOJI:case h.CHAR:case h.WS:case h.ANY:case h.STR_ESCAPED:case h.STR_VAR_BEG:case h.VAR_ESCAPED:this.state=24,this.group();break;case h.NEW_LINE:this.state=25,this.newLine();break;default:throw new o.error.NoViableAltException(this)}this.state=30,this._errHandler.sync(this),t=this._input.LA(1)}this.state=31,this.match(h.EOF)}catch(t){if(!(t instanceof o.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},_.prototype=Object.create(o.ParserRuleContext.prototype),_.prototype.constructor=_,_.prototype.tag=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(m):this.getTypedRuleContext(m,e)},_.prototype.content=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(T):this.getTypedRuleContext(T,e)},_.prototype.enterRule=function(e){e instanceof r&&e.enterGroup(this)},_.prototype.exitRule=function(e){e instanceof r&&e.exitGroup(this)},h.GroupContext=_,h.prototype.group=function(){var e=new _(this,this._ctx,this.state);this.enterRule(e,2,h.RULE_group);try{this.enterOuterAlt(e,1),this.state=35,this._errHandler.sync(this);var t=1;do{if(1!==t)throw new o.error.NoViableAltException(this);switch(this.state=35,this._errHandler.sync(this),this._input.LA(1)){case h.LT:this.state=33,this.tag();break;case h.VAR_BEG:case h.ESCAPED:case h.EMOJI:case h.CHAR:case h.WS:case h.ANY:case h.STR_ESCAPED:case h.STR_VAR_BEG:case h.VAR_ESCAPED:this.state=34,this.content();break;default:throw new o.error.NoViableAltException(this)}this.state=37,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,3,this._ctx)}while(2!=t&&t!=o.atn.ATN.INVALID_ALT_NUMBER)}catch(t){if(!(t instanceof o.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},p.prototype=Object.create(o.ParserRuleContext.prototype),p.prototype.constructor=p,p.prototype.NEW_LINE=function(){return this.getToken(h.NEW_LINE,0)},p.prototype.enterRule=function(e){e instanceof r&&e.enterNewLine(this)},p.prototype.exitRule=function(e){e instanceof r&&e.exitNewLine(this)},h.NewLineContext=p,h.prototype.newLine=function(){var e=new p(this,this._ctx,this.state);this.enterRule(e,4,h.RULE_newLine);try{this.enterOuterAlt(e,1),this.state=39,this.match(h.NEW_LINE)}catch(t){if(!(t instanceof o.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},m.prototype=Object.create(o.ParserRuleContext.prototype),m.prototype.constructor=m,m.prototype.LT=function(e){return void 0===e&&(e=null),null===e?this.getTokens(h.LT):this.getToken(h.LT,e)},m.prototype.TAG_NAME=function(e){return void 0===e&&(e=null),null===e?this.getTokens(h.TAG_NAME):this.getToken(h.TAG_NAME,e)},m.prototype.GT=function(e){return void 0===e&&(e=null),null===e?this.getTokens(h.GT):this.getToken(h.GT,e)},m.prototype.SLASH=function(){return this.getToken(h.SLASH,0)},m.prototype.attribute=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(S):this.getTypedRuleContext(S,e)},m.prototype.tag=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(m):this.getTypedRuleContext(m,e)},m.prototype.content=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(T):this.getTypedRuleContext(T,e)},m.prototype.enterRule=function(e){e instanceof r&&e.enterTag(this)},m.prototype.exitRule=function(e){e instanceof r&&e.exitTag(this)},h.TagContext=m,h.prototype.tag=function(){var e=new m(this,this._ctx,this.state);this.enterRule(e,6,h.RULE_tag);var t=0;try{for(this.enterOuterAlt(e,1),this.state=41,this.match(h.LT),this.state=42,this.match(h.TAG_NAME),this.state=46,this._errHandler.sync(this),t=this._input.LA(1);t===h.TAG_NAME;)this.state=43,this.attribute(),this.state=48,this._errHandler.sync(this),t=this._input.LA(1);this.state=49,this.match(h.GT),this.state=54,this._errHandler.sync(this);for(var n=this._interp.adaptivePredict(this._input,6,this._ctx);2!=n&&n!=o.atn.ATN.INVALID_ALT_NUMBER;){if(1===n)switch(this.state=52,this._errHandler.sync(this),this._input.LA(1)){case h.LT:this.state=50,this.tag();break;case h.VAR_BEG:case h.ESCAPED:case h.EMOJI:case h.CHAR:case h.WS:case h.ANY:case h.STR_ESCAPED:case h.STR_VAR_BEG:case h.VAR_ESCAPED:this.state=51,this.content();break;default:throw new o.error.NoViableAltException(this)}this.state=56,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,6,this._ctx)}this.state=57,this.match(h.LT),this.state=58,this.match(h.SLASH),this.state=59,this.match(h.TAG_NAME),this.state=60,this.match(h.GT)}catch(t){if(!(t instanceof o.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},S.prototype=Object.create(o.ParserRuleContext.prototype),S.prototype.constructor=S,S.prototype.TAG_NAME=function(){return this.getToken(h.TAG_NAME,0)},S.prototype.EQUALS=function(){return this.getToken(h.EQUALS,0)},S.prototype.STR_BEG=function(){return this.getToken(h.STR_BEG,0)},S.prototype.attrValue=function(){return this.getTypedRuleContext(g,0)},S.prototype.STR_END=function(){return this.getToken(h.STR_END,0)},S.prototype.enterRule=function(e){e instanceof r&&e.enterAttribute(this)},S.prototype.exitRule=function(e){e instanceof r&&e.exitAttribute(this)},h.AttributeContext=S,h.prototype.attribute=function(){var e=new S(this,this._ctx,this.state);this.enterRule(e,8,h.RULE_attribute);try{this.enterOuterAlt(e,1),this.state=62,this.match(h.TAG_NAME),this.state=63,this.match(h.EQUALS),this.state=64,this.match(h.STR_BEG),this.state=65,this.attrValue(),this.state=66,this.match(h.STR_END)}catch(t){if(!(t instanceof o.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},g.prototype=Object.create(o.ParserRuleContext.prototype),g.prototype.constructor=g,g.prototype.escape=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(I):this.getTypedRuleContext(I,e)},g.prototype.variable=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(R):this.getTypedRuleContext(R,e)},g.prototype.STR_CHAR=function(e){return void 0===e&&(e=null),null===e?this.getTokens(h.STR_CHAR):this.getToken(h.STR_CHAR,e)},g.prototype.STR_ANY=function(e){return void 0===e&&(e=null),null===e?this.getTokens(h.STR_ANY):this.getToken(h.STR_ANY,e)},g.prototype.STR_WS=function(e){return void 0===e&&(e=null),null===e?this.getTokens(h.STR_WS):this.getToken(h.STR_WS,e)},g.prototype.enterRule=function(e){e instanceof r&&e.enterAttrValue(this)},g.prototype.exitRule=function(e){e instanceof r&&e.exitAttrValue(this)},h.AttrValueContext=g,h.prototype.attrValue=function(){var e=new g(this,this._ctx,this.state);this.enterRule(e,10,h.RULE_attrValue);var t=0;try{this.enterOuterAlt(e,1),this.state=73,this._errHandler.sync(this),t=this._input.LA(1);do{switch(this.state=73,this._errHandler.sync(this),this._input.LA(1)){case h.ESCAPED:case h.STR_ESCAPED:case h.VAR_ESCAPED:this.state=68,this.escape();break;case h.VAR_BEG:case h.STR_VAR_BEG:this.state=69,this.variable();break;case h.STR_CHAR:this.state=70,this.match(h.STR_CHAR);break;case h.STR_ANY:this.state=71,this.match(h.STR_ANY);break;case h.STR_WS:this.state=72,this.match(h.STR_WS);break;default:throw new o.error.NoViableAltException(this)}this.state=75,this._errHandler.sync(this),t=this._input.LA(1)}while(0==(-32&t)&&0!=(1<<t&(1<<h.VAR_BEG|1<<h.ESCAPED|1<<h.STR_ESCAPED|1<<h.STR_VAR_BEG|1<<h.STR_CHAR|1<<h.STR_WS|1<<h.STR_ANY|1<<h.VAR_ESCAPED)))}catch(t){if(!(t instanceof o.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},T.prototype=Object.create(o.ParserRuleContext.prototype),T.prototype.constructor=T,T.prototype.escape=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(I):this.getTypedRuleContext(I,e)},T.prototype.emoji=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(C):this.getTypedRuleContext(C,e)},T.prototype.variable=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(R):this.getTypedRuleContext(R,e)},T.prototype.plain=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(A):this.getTypedRuleContext(A,e)},T.prototype.enterRule=function(e){e instanceof r&&e.enterContent(this)},T.prototype.exitRule=function(e){e instanceof r&&e.exitContent(this)},h.ContentContext=T,h.prototype.content=function(){var e=new T(this,this._ctx,this.state);this.enterRule(e,12,h.RULE_content);try{this.enterOuterAlt(e,1),this.state=81,this._errHandler.sync(this);var t=1;do{if(1!==t)throw new o.error.NoViableAltException(this);switch(this.state=81,this._errHandler.sync(this),this._input.LA(1)){case h.ESCAPED:case h.STR_ESCAPED:case h.VAR_ESCAPED:this.state=77,this.escape();break;case h.EMOJI:this.state=78,this.emoji();break;case h.VAR_BEG:case h.STR_VAR_BEG:this.state=79,this.variable();break;case h.CHAR:case h.WS:case h.ANY:this.state=80,this.plain();break;default:throw new o.error.NoViableAltException(this)}this.state=83,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,10,this._ctx)}while(2!=t&&t!=o.atn.ATN.INVALID_ALT_NUMBER)}catch(t){if(!(t instanceof o.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},C.prototype=Object.create(o.ParserRuleContext.prototype),C.prototype.constructor=C,C.prototype.EMOJI=function(){return this.getToken(h.EMOJI,0)},C.prototype.EMOJI_SKIN_TONE_MODIFIER=function(){return this.getToken(h.EMOJI_SKIN_TONE_MODIFIER,0)},C.prototype.enterRule=function(e){e instanceof r&&e.enterEmoji(this)},C.prototype.exitRule=function(e){e instanceof r&&e.exitEmoji(this)},h.EmojiContext=C,h.prototype.emoji=function(){var e=new C(this,this._ctx,this.state);this.enterRule(e,14,h.RULE_emoji);try{this.enterOuterAlt(e,1),this.state=85,this.match(h.EMOJI),this.state=87,this._errHandler.sync(this),this._input.LA(1)===h.EMOJI_SKIN_TONE_MODIFIER&&(this.state=86,this.match(h.EMOJI_SKIN_TONE_MODIFIER))}catch(t){if(!(t instanceof o.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},R.prototype=Object.create(o.ParserRuleContext.prototype),R.prototype.constructor=R,R.prototype.VAR_NAME=function(){return this.getToken(h.VAR_NAME,0)},R.prototype.VAR_END=function(){return this.getToken(h.VAR_END,0)},R.prototype.VAR_BEG=function(){return this.getToken(h.VAR_BEG,0)},R.prototype.STR_VAR_BEG=function(){return this.getToken(h.STR_VAR_BEG,0)},R.prototype.VAR_BAR=function(){return this.getToken(h.VAR_BAR,0)},R.prototype.variableFallback=function(){return this.getTypedRuleContext(f,0)},R.prototype.enterRule=function(e){e instanceof r&&e.enterVariable(this)},R.prototype.exitRule=function(e){e instanceof r&&e.exitVariable(this)},h.VariableContext=R,h.prototype.variable=function(){var e=new R(this,this._ctx,this.state);this.enterRule(e,16,h.RULE_variable);var t=0;try{this.enterOuterAlt(e,1),this.state=89,(t=this._input.LA(1))!==h.VAR_BEG&&t!==h.STR_VAR_BEG?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=90,this.match(h.VAR_NAME),this.state=93,this._errHandler.sync(this),(t=this._input.LA(1))===h.VAR_BAR&&(this.state=91,this.match(h.VAR_BAR),this.state=92,this.variableFallback()),this.state=95,this.match(h.VAR_END)}catch(t){if(!(t instanceof o.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},f.prototype=Object.create(o.ParserRuleContext.prototype),f.prototype.constructor=f,f.prototype.escape=function(e){return void 0===e&&(e=null),null===e?this.getTypedRuleContexts(I):this.getTypedRuleContext(I,e)},f.prototype.VAR_NAME=function(e){return void 0===e&&(e=null),null===e?this.getTokens(h.VAR_NAME):this.getToken(h.VAR_NAME,e)},f.prototype.VAR_UNI=function(e){return void 0===e&&(e=null),null===e?this.getTokens(h.VAR_UNI):this.getToken(h.VAR_UNI,e)},f.prototype.VAR_WS=function(e){return void 0===e&&(e=null),null===e?this.getTokens(h.VAR_WS):this.getToken(h.VAR_WS,e)},f.prototype.VAR_ANY=function(e){return void 0===e&&(e=null),null===e?this.getTokens(h.VAR_ANY):this.getToken(h.VAR_ANY,e)},f.prototype.enterRule=function(e){e instanceof r&&e.enterVariableFallback(this)},f.prototype.exitRule=function(e){e instanceof r&&e.exitVariableFallback(this)},h.VariableFallbackContext=f,h.prototype.variableFallback=function(){var e=new f(this,this._ctx,this.state);this.enterRule(e,18,h.RULE_variableFallback);var t=0;try{for(this.enterOuterAlt(e,1),this.state=104,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&(1<<h.ESCAPED|1<<h.STR_ESCAPED|1<<h.VAR_ESCAPED|1<<h.VAR_NAME|1<<h.VAR_UNI|1<<h.VAR_WS|1<<h.VAR_ANY));){switch(this.state=102,this._errHandler.sync(this),this._input.LA(1)){case h.ESCAPED:case h.STR_ESCAPED:case h.VAR_ESCAPED:this.state=97,this.escape();break;case h.VAR_NAME:this.state=98,this.match(h.VAR_NAME);break;case h.VAR_UNI:this.state=99,this.match(h.VAR_UNI);break;case h.VAR_WS:this.state=100,this.match(h.VAR_WS);break;case h.VAR_ANY:this.state=101,this.match(h.VAR_ANY);break;default:throw new o.error.NoViableAltException(this)}this.state=106,this._errHandler.sync(this),t=this._input.LA(1)}}catch(t){if(!(t instanceof o.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},A.prototype=Object.create(o.ParserRuleContext.prototype),A.prototype.constructor=A,A.prototype.CHAR=function(e){return void 0===e&&(e=null),null===e?this.getTokens(h.CHAR):this.getToken(h.CHAR,e)},A.prototype.ANY=function(e){return void 0===e&&(e=null),null===e?this.getTokens(h.ANY):this.getToken(h.ANY,e)},A.prototype.WS=function(e){return void 0===e&&(e=null),null===e?this.getTokens(h.WS):this.getToken(h.WS,e)},A.prototype.enterRule=function(e){e instanceof r&&e.enterPlain(this)},A.prototype.exitRule=function(e){e instanceof r&&e.exitPlain(this)},h.PlainContext=A,h.prototype.plain=function(){var e=new A(this,this._ctx,this.state);this.enterRule(e,20,h.RULE_plain);var t=0;try{this.enterOuterAlt(e,1),this.state=108,this._errHandler.sync(this);var n=1;do{if(1!==n)throw new o.error.NoViableAltException(this);this.state=107,0!=(-32&(t=this._input.LA(1)))||0==(1<<t&(1<<h.CHAR|1<<h.WS|1<<h.ANY))?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=110,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,15,this._ctx)}while(2!=n&&n!=o.atn.ATN.INVALID_ALT_NUMBER)}catch(t){if(!(t instanceof o.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},I.prototype=Object.create(o.ParserRuleContext.prototype),I.prototype.constructor=I,I.prototype.ESCAPED=function(){return this.getToken(h.ESCAPED,0)},I.prototype.STR_ESCAPED=function(){return this.getToken(h.STR_ESCAPED,0)},I.prototype.VAR_ESCAPED=function(){return this.getToken(h.VAR_ESCAPED,0)},I.prototype.enterRule=function(e){e instanceof r&&e.enterEscape(this)},I.prototype.exitRule=function(e){e instanceof r&&e.exitEscape(this)},h.EscapeContext=I,h.prototype.escape=function(){var e=new I(this,this._ctx,this.state);this.enterRule(e,22,h.RULE_escape);var t=0;try{this.enterOuterAlt(e,1),this.state=112,0!=(-32&(t=this._input.LA(1)))||0==(1<<t&(1<<h.ESCAPED|1<<h.STR_ESCAPED|1<<h.VAR_ESCAPED))?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof o.error.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e},t.J=h},23206:(e,t,n)=>{var o=n(12442);function r(){return o.tree.ParseTreeListener.call(this),this}r.prototype=Object.create(o.tree.ParseTreeListener.prototype),r.prototype.constructor=r,r.prototype.enterBlock=function(e){},r.prototype.exitBlock=function(e){},r.prototype.enterGroup=function(e){},r.prototype.exitGroup=function(e){},r.prototype.enterNewLine=function(e){},r.prototype.exitNewLine=function(e){},r.prototype.enterTag=function(e){},r.prototype.exitTag=function(e){},r.prototype.enterAttribute=function(e){},r.prototype.exitAttribute=function(e){},r.prototype.enterAttrValue=function(e){},r.prototype.exitAttrValue=function(e){},r.prototype.enterContent=function(e){},r.prototype.exitContent=function(e){},r.prototype.enterEmoji=function(e){},r.prototype.exitEmoji=function(e){},r.prototype.enterVariable=function(e){},r.prototype.exitVariable=function(e){},r.prototype.enterVariableFallback=function(e){},r.prototype.exitVariableFallback=function(e){},r.prototype.enterPlain=function(e){},r.prototype.exitPlain=function(e){},r.prototype.enterEscape=function(e){},r.prototype.exitEscape=function(e){},t.U=r},12022:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var o=n(80070),r=n(16758),i=n(87851),s=n(23414),a=n(58078),l=n(68266),c=n(50022);class E{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,"bucket",""),(0,o.Z)(this,"key",""),(0,o.Z)(this,"id",void 0),(0,o.Z)(this,"type",void 0),(0,o.Z)(this,"name",void 0),(0,o.Z)(this,"size",0),(0,o.Z)(this,"contentType",void 0),(0,o.Z)(this,"width",void 0),(0,o.Z)(this,"height",void 0),(0,o.Z)(this,"orientation",void 0),(0,o.Z)(this,"previewKey",void 0),(0,o.Z)(this,"channelId",void 0),(0,o.Z)(this,"chatType",void 0),(0,o.Z)(this,"chatId",void 0),Object.keys(e).forEach((t=>{(0,a.e$)(this,t)&&(this[t]=e[t])}))}get isPrivateFile(){return!(0,c.kK)(this.channelId)&&!(0,c.kK)(this.chatType)&&!(0,c.kK)(this.chatId)}getKey(){return this.id?this.id:this.key&&this.bucket?`${this.bucket}/${this.key}`:""}get isEmpty(){return(0,c.xb)(this.key)}isPossiblyAnimated(){return!!this.contentType&&["image/gif","image/webp"].includes(this.contentType)}isImageFile(){return this.type===r.Z.Image}isPreviewable(){return this.type===r.Z.Video&&(0,s.ND)(this.contentType)||this.isImageFile()}hasExt(){return"default"!==this.getExt()}getExt(){var e;return(null===(e=this.name)||void 0===e?void 0:e.split(".").slice(1).pop())??"default"}getSize(){return(0,s.yW)(this.size||0)}getThumbUrl(e,t){if((0,c.xb)(this.bucket)||(0,c.xb)(this.key))return"";const n=(0,s.Xi)({width:e,height:t}),o=this.previewKey||this.key;return this.isPrivateFile?`${this.getPrivateUrl()}/thumb?${(0,l.P)({key:o,style:n})}`:`${this.getPublicUrlOrigin()}/thumb/${n}/${o}`}getUrl(){return this.isPrivateFile?`${this.getPrivateUrl()}/file?${(0,l.P)({key:this.key})}`:`${this.getPublicUrlOrigin()}/${this.key}`}getPrivateUrl(){return`${this.getPrivateUrlOrigin()}/cht/v1/front/user-chats/${this.chatId}/messages`}getPrivateUrlOrigin(){switch(this.bucket){case"bin.channel.io":return"https://media.channel.io";case"bin.exp.channel.io":return"https://media.exp.channel.io";default:return`http://${this.bucket}`}}getPublicUrlOrigin(){return"bin.channel.io"===this.bucket||"bin.exp.channel.io"===this.bucket?`${i.NF}`:`http://${this.bucket}`}}},15405:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(28023),r=n(58078),i=n(50022);class s{static isTime(e){return!(0,i.kK)(e)&&(0,r.e$)(e,"hour")&&(0,r.e$)(e,"minute")}static from(e){return new s(e.hour,e.minute,e.second,e.millisecond)}static fromMinuetsOfDay(e){const t=arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?e:(0,o.uZ)(e,0,1440),n=Math.floor(t/60);return new s(n,t-60*n)}static min(e,t){return t.isGreaterThan(e)?e:e.isGreaterThan(t)?t:e}static max(e,t){return e.isGreaterThan(t)?e:t.isGreaterThan(e)?t:e}constructor(e,t,n,o){this.hour=e||0,this.minute=t||0,this.second=n,this.millisecond=o}toString(){return[this.formatZero(this.hour),":",this.formatZero(this.minute),this.hasSecond()&&`:${this.formatZero(this.second)}`||void 0,this.hasMillisecond()&&`:${this.millisecond}`||void 0].join("")}equals(e){return!(!s.isTime(e)||this.hour!==e.hour||this.minute!==e.minute||this.hasSecond()&&e.hasSecond()&&this.second!==e.second||this.hasMillisecond()&&e.hasMillisecond()&&this.millisecond!==e.millisecond)}hasSecond(){return!(0,i.kK)(this.second)}hasMillisecond(){return!(0,i.kK)(this.millisecond)}toMinuetsOfDay(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=60*this.hour+this.minute;return e?(0,o.uZ)(t,0,1440):t}isGreaterThan(e){return!(this.equals(e)||this.hour<e.hour||this.minute<e.minute||this.hasSecond()&&e.hasSecond()&&this.second<e.second||this.hasMillisecond()&&e.hasMillisecond()&&this.millisecond<e.millisecond)}formatZero(e){return e<10?`0${e}`:`${e}`}}const a=s},22133:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var o=n(81739),r=n(23817);const i=(0,o.zo)(r.cD).withConfig({displayName:"ChatRoomstyled__Wrapper",componentId:"ch-front__sc-jbsr0r-0"})(["background-color:var(--bg-white-low);"])},96871:(e,t,n)=>{"use strict";n.d(t,{Z:()=>U});var o=n(52983),r=n(57730),i=n(32587),s=n(81739),a=n(28961),l=n(94109),c=n(3085),E=n(63466);const u=s.zo.div.withConfig({displayName:"ChatRoomHeaderSkeleton__ContentWrapper",componentId:"ch-front__sc-r8mtvf-0"})(["display:flex;align-items:center;height:100%;overflow:hidden;"]),h=s.zo.div.withConfig({displayName:"ChatRoomHeaderSkeleton__Content",componentId:"ch-front__sc-r8mtvf-1"})(["display:flex;flex-direction:column;overflow:hidden;"]),d=s.zo.div.withConfig({displayName:"ChatRoomHeaderSkeleton__AvatarWrapper",componentId:"ch-front__sc-r8mtvf-2"})(["display:flex;width:36px;height:100%;padding:2px 0;margin-right:8px;"]),{isMobile:_}=a.Z,p=function(){return o.createElement(c.Z,{rightButtons:(0,l.N0)()&&_&&o.createElement(E.Z,null)},o.createElement(u,null,o.createElement(d,null,o.createElement(r.N0,{size:36})),o.createElement(h,null,o.createElement(r.N2,{width:110}))))};var m=n(22133),S=n(33122);const g=s.zo.div.withConfig({displayName:"ChatRoomSkeletonstyled__ChannelInfoWrapper",componentId:"ch-front__sc-1tsdwf1-0"})(["display:flex;flex-direction:column;align-items:center;padding:30px 24px 8px;"]),T=s.zo.div.withConfig({displayName:"ChatRoomSkeletonstyled__ChannelInfoTitle",componentId:"ch-front__sc-1tsdwf1-1"})(["margin:16px 0 6px;"]),C=s.zo.div.withConfig({displayName:"ChatRoomSkeletonstyled__Messenger",componentId:"ch-front__sc-1tsdwf1-2"})(["display:flex;flex-direction:column;flex-shrink:0;width:100%;height:calc(100% - ","px);"],S.NH),R=s.zo.div.withConfig({displayName:"ChatRoomSkeletonstyled__MessengerFooterWrapper",componentId:"ch-front__sc-1tsdwf1-3"})(["position:fixed;right:0;bottom:0;left:0;width:100%;padding:0 10px 10px;"]),f=s.zo.div.withConfig({displayName:"ChatRoomSkeletonstyled__DeskMessage",componentId:"ch-front__sc-1tsdwf1-4"})(["display:flex;align-items:flex-end;margin-top:20px;padding-left:16px;"]),A=s.zo.div.withConfig({displayName:"ChatRoomSkeletonstyled__DeskMessageContent",componentId:"ch-front__sc-1tsdwf1-5"})(["display:flex;flex-direction:column;margin-left:6px;"]),I=s.zo.div.withConfig({displayName:"ChatRoomSkeletonstyled__Name",componentId:"ch-front__sc-1tsdwf1-6"})(["margin-bottom:4px;padding-left:12px;"]),v=s.zo.div.withConfig({displayName:"ChatRoomSkeletonstyled__UserMessage",componentId:"ch-front__sc-1tsdwf1-7"})(["display:flex;justify-content:flex-end;width:100%;margin-top:20px;padding-right:10px;"]);function y(){const e=o.createElement(g,null,o.createElement(r.N0,{size:72}),o.createElement(T,null,o.createElement(r.N2,{width:190,padding:9})),o.createElement(r.N2,{width:80,padding:9})),t=o.createElement(R,null,o.createElement(r.nN,{width:"100%",height:i.T3,radius:i.Mz})),n=e=>{let{name:t,children:n}=e;return o.createElement(f,null,o.createElement(r.N0,{size:30}),o.createElement(A,null,o.createElement(I,null,o.createElement(r.N2,{width:t,padding:5})),n))};return o.createElement(m.i,null,o.createElement(p,null),o.createElement(C,null,e,o.createElement(n,{name:50},o.createElement(r.nN,{width:286,height:60,radius:16})),o.createElement(v,null,o.createElement(r.nN,{width:100,height:40,radius:16})),o.createElement(n,{name:33},o.createElement(r.nN,{width:180,height:38,radius:16})),t))}const U=o.memo(y)},3085:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var o=n(43431),r=n(63445),i=n(52983),s=n(99951),a=n(95197),l=n(11599),c=n(47864),E=n(50655),u=n(40520),h=n(48825),d=n(16231),_=n(81739),p=n(28961),m=n(74117);const{isMobile:S}=p.Z,g=_.zo.header.withConfig({displayName:"BaseHeaderstyled__Wrapper",componentId:"ch-front__sc-aselju-0"})(["position:sticky;z-index:",";top:0;right:0;left:0;transform:translateZ(0);overflow:hidden;display:flex;align-items:center;padding:",";background:var(--bg-header-float,rgba(255,255,255,90%));backdrop-filter:blur(30px);",""],m.Z.HEADER,S?"6px 10px":"10px",(e=>{let{isFollowUpLink:t}=e;return t&&_.iv`
|
||
padding-left: 18px;
|
||
`})),T=_.zo.button.withConfig({displayName:"BaseHeaderstyled__BackButtonWrapper",componentId:"ch-front__sc-aselju-1"})(["cursor:pointer;display:flex;align-items:center;min-width:53px;padding:10px 0;"]),C=_.zo.div.withConfig({displayName:"BaseHeaderstyled__Badge",componentId:"ch-front__sc-aselju-2"})(["color:",";",""],(e=>{let{foundation:t}=e;return null==t?void 0:t.iconColor}),r.ZT.Size13),R=_.zo.div.withConfig({displayName:"BaseHeaderstyled__Content",componentId:"ch-front__sc-aselju-3"})(["overflow:hidden;display:flex;align-items:center;width:100%;height:","px;color:",";"],S?43:40,(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-darkest"]})),f=_.zo.div.withConfig({displayName:"BaseHeaderstyled__RightButtonsWrapper",componentId:"ch-front__sc-aselju-4"})(["display:flex;flex-shrink:0;column-gap:4px;margin-left:10px;"]),A=function(e){let{children:t,rightButtons:n}=e;const{isFollowUpLink:_}=l.ZP,p=(0,a.s0)(),m=(0,s.v9)(c.Z.userSelectors.getUserAlert),[S,A]=(0,i.useState)("0"),I=(0,i.useCallback)((0,u.D)((e=>{A(e)}),1e3,{trailing:!0}),[]),v=void 0===S||"0"===S?"":S;(0,i.useEffect)((()=>(I((0,E.Bc)(m)),I.cancel)),[I,m]);const y=i.createElement(T,{onClick:()=>p(-1),"data-ch-testid":"back-button"},i.createElement("span",{className:"a11y-hidden"}," Go to previous page "),i.createElement(h.Z,{name:"chevron-left",size:d.$.Small,defaultOpacity:1,withTheme:!0,marginLeft:8}),i.createElement(C,null,i.createElement(o.Z,{typo:r.ZT.Size13},v)));return i.createElement(g,{isFollowUpLink:_},!_&&y,i.createElement(R,null,t),i.createElement(f,null,n))}},63466:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var o=n(81739),r=n(52983),i=n(99951),s=n(40684),a=n(48825),l=n(16231);const c=o.zo.button.withConfig({displayName:"CloseButton__Button",componentId:"ch-front__sc-1ymkko2-0"})(["display:flex;align-items:center;justify-content:center;width:36px;height:36px;cursor:pointer;",""],(e=>{let{interpolation:t}=e;return t})),E=function(e){let{interpolation:t}=e;const n=(0,i.I0)();return r.createElement(c,{onClick:()=>{n(s.Z.uiActions.setShowMessenger({showMessenger:!1}))},interpolation:t,"data-ch-testid":"close-button"},r.createElement("span",{className:"a11y-hidden"}," Close chat "),r.createElement(a.Z,{name:"cancel",size:l.$.Small,defaultOpacity:1,withTheme:!0}))}},77961:(e,t,n)=>{"use strict";n.d(t,{b:()=>b,Z:()=>w});var o=n(52983),r=n(57410),i=n(57730),s=n(49540),a=n(43431),l=n(63445),c=n(48825),E=n(16231),u=n(81739),h=n(33122),d=n(50056);const _=u.zo.header.withConfig({displayName:"DeprecatedBaseHeaderstyled__Wrapper",componentId:"ch-front__sc-d3rcwa-0"})(["position:relative;overflow:hidden;display:flex;align-items:center;min-height:","px;padding-right:14px;padding-bottom:1px;padding-left:","px;"],h.NH,(e=>{let{hasBackButton:t}=e;return t?12:22})),p=u.zo.button.withConfig({displayName:"DeprecatedBaseHeaderstyled__BackButtonWrapper",componentId:"ch-front__sc-d3rcwa-1"})(["cursor:pointer;display:flex;align-items:center;min-width:42px;margin-right:6px;padding:10px 0;"]),m=u.zo.div.withConfig({displayName:"DeprecatedBaseHeaderstyled__Badge",componentId:"ch-front__sc-d3rcwa-2"})(["color:",";"],(e=>{let{foundation:t}=e;return null==t?void 0:t.iconColor})),S=u.zo.div.withConfig({displayName:"DeprecatedBaseHeaderstyled__Content",componentId:"ch-front__sc-d3rcwa-3"})(["overflow:hidden;display:flex;align-items:center;width:100%;color:",";",""],(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-darkest"]}),(e=>{let{animation:t}=e;return t&&(0,d.SE)()})),g=u.zo.div.withConfig({displayName:"DeprecatedBaseHeaderstyled__RightButtonsWrapper",componentId:"ch-front__sc-d3rcwa-4"})(["display:flex;flex-shrink:0;margin-left:12px;"]),T=function(e){let{showBackButton:t,badge:n,onClickBackButton:r,className:i,animation:s,children:u,rightButtons:h}=e;const d=!(!t||!r),T=(0,o.useMemo)((()=>d?o.createElement(p,{onClick:r,"data-ch-testid":"back-button"},o.createElement("span",{className:"a11y-hidden"}," Go to previous page "),o.createElement(c.Z,{name:"chevron-left",size:E.$.Small,defaultOpacity:1,withTheme:!0}),o.createElement(m,null,o.createElement(a.Z,{typo:l.ZT.Size13},n))):null),[d,r,n]);return o.createElement(_,{className:i,hasBackButton:d},T,o.createElement(S,{animation:s},u),o.createElement(g,null,h))};var C=n(10412);const R=u.zo.div.withConfig({displayName:"HeaderChannelInfostyled__Name",componentId:"ch-front__sc-1g605vv-0"})(["margin-left:8px;",""],(0,C.LH)());var f=n(23817);const A=u.zo.div.withConfig({displayName:"HomeSkeletonstyled__ChatListItemWrapper",componentId:"ch-front__sc-1ylcn2r-0"})(["display:flex;padding:8px 14px 12px 12px;"]),I=u.zo.div.withConfig({displayName:"HomeSkeletonstyled__Description",componentId:"ch-front__sc-1ylcn2r-1"})(["padding:0 24px 16px;& >:last-child{margin-top:2px;}"]),v=u.zo.div.withConfig({displayName:"HomeSkeletonstyled__Content",componentId:"ch-front__sc-1ylcn2r-2"})(["margin-left:8px;"]),y=u.zo.div.withConfig({displayName:"HomeSkeletonstyled__ContentHead",componentId:"ch-front__sc-1ylcn2r-3"})(["margin-bottom:4px;"]),U=u.zo.div.withConfig({displayName:"HomeSkeletonstyled__ContentBody",componentId:"ch-front__sc-1ylcn2r-4"})(["&:first-child{margin-bottom:2px;}"]),Z=u.zo.div.withConfig({displayName:"HomeSkeletonstyled__NewChatButtonWrapper",componentId:"ch-front__sc-1ylcn2r-5"})(["padding:6px 14px;"]),O=u.zo.div.withConfig({displayName:"HomeSkeletonstyled__PoweredByWrapper",componentId:"ch-front__sc-1ylcn2r-6"})(["display:flex;justify-content:center;width:100%;padding-bottom:10px;"]);function b(){const e=o.createElement(A,null,o.createElement(i.N0,{size:36}),o.createElement(v,null,o.createElement(y,null,o.createElement(i.N2,{width:50})),o.createElement(U,null,o.createElement(i.N2,{width:230}),o.createElement(i.N2,{width:109}))));return o.createElement(o.Fragment,null,o.createElement(r.Z,null,e,o.createElement(Z,null,o.createElement(i.nN,{width:"100%",height:48,radius:16})),o.createElement(O,null,o.createElement(i.N2,{width:100}))),o.createElement(s.U,null))}function N(){return o.createElement(f.cD,null,o.createElement(T,null,o.createElement(i.N0,{size:30}),o.createElement(R,null,o.createElement(i.N2,{width:90}))),o.createElement(I,null,o.createElement(i.N2,{width:230}),o.createElement(i.N2,{width:109})))}const w=o.memo(N)},11499:(e,t,n)=>{"use strict";n.d(t,{VY:()=>l,im:()=>a,iz:()=>E,l5:()=>c});var o=n(81739),r=n(23817),i=n(94722),s=n(50056);const a=(0,o.zo)(r.cD).withConfig({displayName:"Settingstyled__Wrapper",componentId:"ch-front__sc-9qk648-0"})(["background-color:var(--bg-white-low);"]),l=(0,o.zo)(r.tn).withConfig({displayName:"Settingstyled__Content",componentId:"ch-front__sc-9qk648-1"})(["padding-bottom:",";"],i.Di),c=o.zo.div.withConfig({displayName:"Settingstyled__AnimationWrapper",componentId:"ch-front__sc-9qk648-2"})(["display:flex;flex-direction:column;",""],(0,s.SE)(!0)),E=o.zo.hr.withConfig({displayName:"Settingstyled__Divider",componentId:"ch-front__sc-9qk648-3"})(["display:block;width:100%;margin:4px 0;padding:6px;border:none;&::after{content:'';display:block;width:100%;height:1px;margin:0;background:var(--bdr-black-light,rgba(0,0,0,8%));border:none;}"])},3155:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=n(45235),r=n(81739),i=n(77202),s=n(36198),a=n(43431),l=n(63445),c=n(52983),E=n(95197),u=n(11599),h=n(10919),d=n(74117),_=n(50056);const p=r.zo.header.withConfig({displayName:"SettingHeader__Wrapper",componentId:"ch-front__sc-1niuyze-0"})(["position:sticky;top:0;left:0;z-index:",";display:flex;gap:10px;align-items:center;width:100%;padding:16px 10px 4px;"," background:var(--bg-header-float);backdrop-filter:blur(30px);"],d.Z.HEADER,(e=>{let{animation:t}=e;return t&&(0,_.SE)()})),m=r.zo.button.withConfig({displayName:"SettingHeader__BackButon",componentId:"ch-front__sc-1niuyze-1"})(["display:flex;padding:8px;cursor:pointer;"]),S=r.zo.h1.withConfig({displayName:"SettingHeader__Title",componentId:"ch-front__sc-1niuyze-2"})(["padding:6px 10px;"]),g=function(e){let{animation:t}=e;const n=(0,E.s0)(),{translate:r}=(0,h.Z)();return c.createElement(p,{animation:t},u.ZP.isFollowUpLink&&c.createElement(m,{onClick:()=>n(-1)},c.createElement(i.J,{source:o.C,size:s.J.S,color:"txt-black-darker"})),c.createElement(S,null,c.createElement(a.Z,{color:"txt-black-darkest",typo:l.ZT.Size22,bold:!0},r("ch.tab_title.setting"))))}},62237:(e,t,n)=>{"use strict";n.d(t,{C:()=>_,Z:()=>p});var o=n(81739),r=n(52983),i=n(57730),s=n(87374);function a(){return r.createElement(s.im,null,r.createElement(i.N0,{size:56}),r.createElement(s.d,null,r.createElement(i.N2,{width:160})))}var l=n(11499),c=n(3155);const E=o.zo.div.withConfig({displayName:"SettingSkeleton__Row",componentId:"ch-front__sc-o4zd0k-0"})(["padding:12px 18px;"]),u=(0,o.zo)(i.N2).withConfig({displayName:"SettingSkeleton__SkeletonLabel",componentId:"ch-front__sc-o4zd0k-1"})(["padding:0;"]),h=[60,70,90,70],d=[90,70,90];function _(){const e=(e,t)=>r.createElement(E,{key:t},r.createElement(u,{width:e}));return r.createElement(r.Fragment,null,r.createElement(a,null),r.createElement(l.iz,null),h.map(e),r.createElement(l.iz,null),d.map(e))}const p=function(){return r.createElement(l.im,null,r.createElement(l.VY,null,r.createElement(c.Z,{animation:!0}),r.createElement(_,null)))}},47134:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(52983),r=n(95197),i=n(96871),s=n(77961),a=n(62237),l=n(37882);const c=function(){return o.createElement(o.Fragment,null,o.createElement(r.Z5,null,o.createElement(r.AW,{path:"/user-chats/:userChatId",element:o.createElement(i.Z,null)}),o.createElement(r.AW,{path:"/support-bots/:supportBotId",element:o.createElement(i.Z,null)}),o.createElement(r.AW,{path:"/home",element:o.createElement(s.Z,null)}),o.createElement(r.AW,{path:"/user-chats",element:o.createElement(l.Z,null)}),o.createElement(r.AW,{path:"/setting",element:o.createElement(a.Z,null)})))}},68269:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var o=n(81739),r=n(43431),i=n(63445),s=n(52983),a=n(10919),l=n(74117),c=n(99951),E=n(40684),u=n(47864),h=n(14559),d=n(84555),_=n(90681);const p=o.zo.div.withConfig({displayName:"UnreadBanner__Wrapper",componentId:"ch-front__sc-1y4qjok-0"})(["display:flex;gap:12px;align-items:center;justify-content:space-between;padding:8px 12px;margin:0 4px;background-color:var(--bg-black-lighter);border-radius:8px;"]),m=o.zo.div.withConfig({displayName:"UnreadBanner__UnreadWrapper",componentId:"ch-front__sc-1y4qjok-1"})(["display:flex;"]),S=o.zo.button.withConfig({displayName:"UnreadBanner__Button",componentId:"ch-front__sc-1y4qjok-2"})(["padding:3px 4px;cursor:pointer;"]),g=function(){const e=(0,c.I0)(),{translate:t}=(0,a.Z)(),[n]=(0,h.Z)({actionType:d.Z.REQUEST_READ_ALL_USER_CHAT}),o=(0,c.v9)(u.Z.chatListSelectors.totalUnreadMessageCount);return 0===o?null:s.createElement(p,null,s.createElement(r.Z,{typo:i.ZT.Size14,color:"txt-black-dark"},t("ch.unread.count",o)),s.createElement(m,null,n&&s.createElement(_.Z,{color:"bgtxt-absolute-black-lightest",strokeWidth:3,size:14,position:"relative"}),s.createElement(S,{type:"button",onClick:()=>{n||e(E.Z.readChatActions.requestReadAllUserChat())}},s.createElement("span",{className:"a11y-hidden"},"Mark all userchat as read"),s.createElement(r.Z,{typo:i.ZT.Size13,color:"txt-black-darker",bold:!0,marginHorizontal:3},t("ch.chat_list_card.remove_all")))))},T=o.zo.header.withConfig({displayName:"UserChatListHeader__Wrapper",componentId:"ch-front__sc-p78yex-0"})(["position:sticky;top:0;right:0;left:0;z-index:",";display:flex;flex-direction:column;gap:10px;width:100%;padding:16px 10px 4px 10px;background:var(--bg-header-float);backdrop-filter:blur(30px);"],l.Z.HEADER),C=o.zo.h1.withConfig({displayName:"UserChatListHeader__Title",componentId:"ch-front__sc-p78yex-1"})(["padding:6px 10px;"]),R=function(){const{translate:e}=(0,a.Z)();return s.createElement(T,null,s.createElement(C,null,s.createElement(r.Z,{color:"txt-black-darkest",typo:i.ZT.Size22,bold:!0},e("ch.tab_title.user_chats"))),s.createElement(g,null))}},37882:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=n(52983),r=n(57730),i=n(68269),s=n(81739),a=n(23817),l=n(50056);const c=(0,s.zo)(a.cD).withConfig({displayName:"UserChatListSkeletonstyled__Wrapper",componentId:"ch-front__sc-3kogsn-0"})(["overflow-y:scroll;display:flex;flex-direction:column;background-color:var(--bg-white-low);",""],(0,l.Ks)()),E=s.zo.div.withConfig({displayName:"UserChatListSkeletonstyled__ChatItem",componentId:"ch-front__sc-3kogsn-1"})(["display:flex;padding:8px 14px 12px 12px;"]),u=s.zo.div.withConfig({displayName:"UserChatListSkeletonstyled__ChatContent",componentId:"ch-front__sc-3kogsn-2"})(["margin-left:8px;"]),h=s.zo.div.withConfig({displayName:"UserChatListSkeletonstyled__Name",componentId:"ch-front__sc-3kogsn-3"})(["margin-bottom:4px;"]),d=function(){const e=e=>{let{children:t}=e;return o.createElement(E,null,o.createElement(r.N0,{size:42}),o.createElement(u,null,o.createElement(h,null,o.createElement(r.N2,{width:50})),t))};return o.createElement(c,null,o.createElement(i.Z,null),o.createElement(e,null,o.createElement(r.N2,{width:250})),o.createElement(e,null,o.createElement(r.N2,{width:250}),o.createElement(r.N2,{width:140})),o.createElement(e,null,o.createElement(r.N2,{width:250}),o.createElement(r.N2,{width:140})),o.createElement(e,null,o.createElement(r.N2,{width:250})),o.createElement(e,null,o.createElement(r.N2,{width:250}),o.createElement(r.N2,{width:140})))}},37132:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,z:()=>r});var o=n(52983);const r=(0,o.createContext)({infiniteScrollRef:(0,o.createRef)()}),i=function(e){let{children:t}=e;const n=(0,o.useRef)(null),i=(0,o.useMemo)((()=>({infiniteScrollRef:n})),[]);return o.createElement(r.Provider,{value:i},t)}},40684:(e,t,n)=>{"use strict";n.d(t,{Z:()=>V});var o=n(39620),r=n(84555);const i={executeAction:(0,o.Wn)(r.Z.EXECUTE_ACTION,r.Z.EXECUTE_ACTION_SUCCESS,r.Z.EXECUTE_ACTION_ERROR).create()},s={requestGetAppCommands:(0,o.Wn)(r.Z.REQUEST_GET_APP_COMMANDS,r.Z.REQUEST_GET_APP_COMMANDS_SUCCESS,r.Z.REQUEST_GET_APP_COMMANDS_ERROR).create(),requestExecuteCommand:(0,o.Wn)(r.Z.REQUEST_EXECUTE_COMMAND,r.Z.REQUEST_EXECUTE_COMMAND_SUCCESS,r.Z.REQUEST_EXECUTE_COMMAND_ERROR).create(),requestGetXAccessToken:(0,o.Wn)(r.Z.REQUEST_GET_X_ACCESS_TOKEN,r.Z.REQUEST_GET_X_ACCESS_TOKEN_SUCCESS,r.Z.REQUEST_GET_X_ACCESS_TOKEN_ERROR).create(),requestRefreshXAccessToken:(0,o.Wn)(r.Z.REQUEST_REFRESH_X_ACCESS_TOKEN,r.Z.REQUEST_REFRESH_X_ACCESS_TOKEN_SUCCESS,r.Z.REQUEST_REFRESH_X_ACCESS_TOKEN_ERROR).create(),setXAccessToken:(0,o.jo)(r.Z.SET_X_ACCESS_TOKEN).create(),requestGetCommandAutocomplete:(0,o.Wn)(r.Z.REQUEST_GET_COMMAND_AUTOCOMPLETE,r.Z.REQUEST_GET_COMMAND_AUTOCOMPLETE_SUCCESS,r.Z.REQUEST_GET_COMMAND_AUTOCOMPLETE_ERROR).create(),executeWamEvent:(0,o.Wn)(r.Z.EXECUTE_WAM_EVENT,r.Z.EXECUTE_WAM_EVENT_SUCCESS,r.Z.EXECUTE_WAM_EVENT_ERROR).create(),hydrateCommandInput:(0,o.jo)(r.Z.HYDRATE_COMMAND_INPUT).create(),initializeCommandInput:(0,o.jo)(r.Z.INITIALIZE_COMMAND_INPUT).create(),finalizeCommandInput:(0,o.jo)(r.Z.FINALIZE_COMMAND_INPUT).create(),setCommandInputParamValue:(0,o.jo)(r.Z.SET_COMMAND_INPUT_PARAM_VALUE).create(),deleteCommandInputParam:(0,o.jo)(r.Z.DELETE_COMMAND_INPUT_PARAM).create(),addCommandInputParams:(0,o.jo)(r.Z.ADD_COMMAND_INPUT_PARAM).create(),setCommandInputErrors:(0,o.jo)(r.Z.SET_COMMAND_INPUT_ERRORS).create(),setCommandInputParamError:(0,o.jo)(r.Z.SET_COMMAND_INPUT_PARAM_ERROR).create()},a={initializeCommandLauncher:(0,o.jo)(r.Z.INITIALIZE_COMMAND_LAUNCHER).create(),executeOnPopupDataReceivedCallback:(0,o.jo)(r.Z.EXECUTE_ON_POPUP_DATA_RECEIVED_CALLBACK).create()},l={requestGetChannelOperations:(0,o.Wn)(r.Z.REQUEST_GET_CHANNEL_OPERATIONS,r.Z.REQUEST_GET_CHANNEL_OPERATIONS_SUCCESS,r.Z.REQUEST_GET_CHANNEL_OPERATIONS_ERROR).create(),receivedUpdateChannelOperation:(0,o.jo)(r.Z.RECEIVED_UPDATE_CHANNEL_OPERATION).create(),receivedCreateChannelOperation:(0,o.jo)(r.Z.RECEIVED_CREATE_CHANNEL_OPERATION).create(),receivedDeleteChannelOperation:(0,o.jo)(r.Z.RECEIVED_DELETE_CHANNEL_OPERATION).create()},c={requestGetChannelPhoneNumber:(0,o.Wn)(r.Z.REQUEST_GET_CHANNEL_PHONE_NUMBER,r.Z.REQUEST_GET_CHANNEL_PHONE_NUMBER_SUCCESS,r.Z.REQUEST_GET_CHANNEL_PHONE_NUMBER_ERROR).create(),clearChannelPhoneNumber:(0,o.jo)(r.Z.CLEAR_CHANNEL_PHONE_NUMBER).create()},E={requestGetChannelByPluginKey:(0,o.Wn)(r.Z.REQUEST_GET_CHANNEL_BY_PLUGIN_KEY,r.Z.REQUEST_GET_CHANNEL_BY_PLUGIN_KEY_SUCCESS,r.Z.REQUEST_GET_CHANNEL_BY_PLUGIN_KEY_ERROR).create(),receivedUpdateChannel:(0,o.jo)(r.Z.RECEIVED_UPDATE_CHANNEL).create()},u={requestGetUnreadUserChatList:(0,o.Wn)(r.Z.REQUEST_GET_UNREAD_USER_CHAT_LIST,r.Z.REQUEST_GET_UNREAD_USER_CHAT_LIST_SUCCESS,r.Z.REQUEST_GET_UNREAD_USER_CHAT_LIST_ERROR).create(),requestGetUserChatList:(0,o.Wn)(r.Z.REQUEST_GET_USER_CHAT_LIST,r.Z.REQUEST_GET_USER_CHAT_LIST_SUCCESS,r.Z.REQUEST_GET_USER_CHAT_LIST_ERROR).create(),requestGetNextUserChatList:(0,o.Wn)(r.Z.REQUEST_GET_NEXT_USER_CHAT_LIST,r.Z.REQUEST_GET_NEXT_USER_CHAT_LIST_SUCCESS,r.Z.REQUEST_GET_NEXT_USER_CHAT_LIST_ERROR).create(),initializeUserChatList:(0,o.Wn)(r.Z.INITIALIZE_USER_CHAT_LIST,r.Z.INITIALIZE_USER_CHAT_LIST_SUCCESS,r.Z.INITIALIZE_USER_CHAT_LIST_ERROR).create()},h={setBlockReplying:(0,o.jo)(r.Z.SET_BLOCK_REPLYING).create(),setChatRoomInputValue:(0,o.jo)(r.Z.SET_CHATROOM_INPUT_VALUE).create()},d={requestViewChannelXBanner:(0,o.Wn)(r.Z.REQUEST_VIEW_CHANNEL_X_BANNER,r.Z.REQUEST_VIEW_CHANNEL_X_BANNER_SUCCESS,r.Z.REQUEST_VIEW_CHANNEL_X_BANNER_ERROR).create(),requestClickChannelXBanner:(0,o.Wn)(r.Z.REQUEST_CLICK_CHANNEL_X_BANNER,r.Z.REQUEST_CLICK_CHANNEL_X_BANNER_SUCCESS,r.Z.REQUEST_CLICK_CHANNEL_X_BANNER_ERROR).create()},_={requestSendExperimentEvent:(0,o.Wn)(r.Z.REQUEST_SEND_EXPERIMENT_EVENT,r.Z.REQUEST_SEND_EXPERIMENT_EVENT_SUCCESS,r.Z.REQUEST_SEND_EXPERIMENT_EVENT_ERROR).create()},p={requestGetDocumentWebsiteResources:(0,o.Wn)(r.Z.REQUEST_GET_DOCUMENT_WEBSITE_RESOURCES,r.Z.REQUEST_GET_DOCUMENT_WEBSITE_RESOURCES_SUCCESS,r.Z.REQUEST_GET_DOCUMENT_WEBSITE_RESOURCES_ERROR).create()},m={requestGetEmojiInfo:(0,o.Wn)(r.Z.REQUEST_GET_EMOJI_INFO,r.Z.REQUEST_GET_EMOJI_INFO_SUCCESS,r.Z.REQUEST_GET_EMOJI_INFO_ERROR).create()},S={requestGetFileIconInfo:(0,o.Wn)(r.Z.REQUEST_GET_FILE_ICON_INFO,r.Z.REQUEST_GET_FILE_ICON_INFO_SUCCESS,r.Z.REQUEST_GET_FILE_ICON_INFO_ERROR).create()},g={enqueueFilesToUploadQueue:(0,o.jo)(r.Z.ENQUEUE_FILES_TO_UPLOAD_QUEUE).create(),dequeueFilesFromUploadQueue:(0,o.jo)(r.Z.DEQUEUE_FILES_FROM_UPLOAD_QUEUE).create(),flushUploadQueue:(0,o.jo)(r.Z.FLUSH_UPLOAD_QUEUE).create(),setMemoryFileState:(0,o.jo)(r.Z.SET_MEMORY_FILE_STATE).create(),setFileUploadProgress:(0,o.jo)(r.Z.SET_FILE_UPLOAD_PROGRESS).create(),requestUploadFile:(0,o.Wn)(r.Z.REQUEST_UPLOAD_FILE,r.Z.REQUEST_UPLOAD_FILE_SUCCESS,r.Z.REQUEST_UPLOAD_FILE_ERROR).create(),registerUploadedFile:(0,o.jo)(r.Z.REGISTER_UPLOADED_FILE).create()},T={requestGetFollowupSchemas:(0,o.Wn)(r.Z.REQUEST_GET_FOLLOW_UP_SCHEMAS,r.Z.REQUEST_GET_FOLLOW_UP_SCHEMAS_SUCCESS,r.Z.REQUEST_GET_FOLLOW_UP_SCHEMAS_ERROR).create()},C={setHasError:(0,o.jo)(r.Z.SET_HAS_ERROR).create(),clearError:(0,o.jo)(r.Z.CLEAR_ERROR).create(),initializeErrorClear:(0,o.jo)(r.Z.INITIALIZE_ERROR_CLEAR).create()},R={requestGetHome:(0,o.Wn)(r.Z.REQUEST_GET_HOME,r.Z.REQUEST_GET_HOME_SUCCESS,r.Z.REQUEST_GET_HOME_ERROR).create(),goLounge:(0,o.jo)(r.Z.GO_LOUNGE).create()},f={requestGetAvailableLanguages:(0,o.Wn)(r.Z.REQUEST_GET_AVAILABLE_LANGUAGES,r.Z.REQUEST_GET_AVAILABLE_LANGUAGES_SUCCESS,r.Z.REQUEST_GET_AVAILABLE_LANGUAGES_ERROR).create(),requestGetCountries:(0,o.Wn)(r.Z.REQUEST_GET_COUNTRIES,r.Z.REQUEST_GET_COUNTRIES_SUCCESS,r.Z.REQUEST_GET_COUNTRIES_ERROR).create()},A={initializeIdleDetector:(0,o.jo)(r.Z.INITIALIZE_IDLE_DETECTOR).create(),enterBackground:(0,o.jo)(r.Z.ENTER_BACKGROUND).create(),enterForeground:(0,o.jo)(r.Z.ENTER_FORE_GROUND).create(),enterIdle:(0,o.jo)(r.Z.ENTER_IDLE).create(),enterActive:(0,o.jo)(r.Z.ENTER_ACTIVE).create()},I={initializeStandalone:(0,o.Wn)(r.Z.INITIALIZE_STANDALONE,r.Z.INITIALIZE_STANDALONE_SUCCESS,r.Z.INITIALIZE_STANDALONE_ERROR).create(),initializeHome:(0,o.Wn)(r.Z.INITIALIZE_HOME,r.Z.INITIALIZE_HOME_SUCCESS,r.Z.INITIALIZE_HOME_ERROR).create(),initializeSetting:(0,o.Wn)(r.Z.INITIALIZE_SETTING,r.Z.INITIALIZE_SETTING_SUCCESS,r.Z.INITIALIZE_SETTING_ERROR).create(),initializeEditProfile:(0,o.Wn)(r.Z.INITIALIZE_EDIT_PROFILE,r.Z.INITIALIZE_EDIT_PROFILE_SUCCESS,r.Z.INITIALIZE_EDIT_PROFILE_ERROR).create(),initializeApp:(0,o.Wn)(r.Z.INITIALIZE_APP,r.Z.INITIALIZE_APP_SUCCESS,r.Z.INITIALIZE_APP_ERROR).create()},v={requestGetAppMessengerDeepLink:(0,o.Wn)(r.Z.REQUEST_GET_APP_MESSENGER_DEEP_LINK,r.Z.REQUEST_GET_APP_MESSENGER_DEEP_LINK_SUCCESS,r.Z.REQUEST_GET_APP_MESSENGER_DEEP_LINK_ERROR).create()},y={requestGetLoungeMedia:(0,o.Wn)(r.Z.REQUEST_GET_LOUNGE_MEDIA,r.Z.REQUEST_GET_LOUNGE_MEDIA_SUCCESS,r.Z.REQUEST_GET_LOUNGE_MEDIA_ERROR).create()},U={requestGetReactors:(0,o.Wn)(r.Z.REQUEST_GET_REACTORS,r.Z.REQUEST_GET_REACTORS_SUCCESS,r.Z.REQUEST_GET_REACTORS_ERROR).create(),requestGetOperators:(0,o.Wn)(r.Z.REQUEST_GET_OPERATORS,r.Z.REQUEST_GET_OPERATORS_SUCCESS,r.Z.REQUEST_GET_OPERATORS_ERROR).create()},Z={initializeLiveMeet:(0,o.Wn)(r.Z.INITIALIZE_LIVE_MEET,r.Z.INITIALIZE_LIVE_MEET_SUCCESS,r.Z.INITIALIZE_LIVE_MEET_ERROR).create(),requestGetLiveMeet:(0,o.Wn)(r.Z.REQUEST_GET_LIVE_MEET,r.Z.REQUEST_GET_LIVE_MEET_SUCCESS,r.Z.REQUEST_GET_LIVE_MEET_ERROR).create(),requestRejectOutboundMeet:(0,o.Wn)(r.Z.REQUEST_REJECT_OUTBOUND_MEET,r.Z.REQUEST_REJECT_OUTBOUND_MEET_SUCCESS,r.Z.REQUEST_REJECT_OUTBOUND_MEET_ERROR).create(),requestTerminateLiveMeet:(0,o.Wn)(r.Z.REQUEST_TERMINATE_LIVE_MEET,r.Z.REQUEST_TERMINATE_LIVE_MEET_SUCCESS,r.Z.REQUEST_TERMINATE_LIVE_MEET_ERROR).create(),receivedCreateMeetRing:(0,o.jo)(r.Z.RECEIVED_CREATE_MEET_RING).create(),receivedDeleteMeetRing:(0,o.jo)(r.Z.RECEIVED_DELETE_MEET_RING).create(),receivedUpdateLiveMeet:(0,o.jo)(r.Z.RECEIVED_UPDATE_LIVE_MEET).create(),receivedDeleteLiveMeet:(0,o.jo)(r.Z.RECEIVED_DELETE_LIVE_MEET).create(),receivedUpdateMeetSetting:(0,o.jo)(r.Z.RECEIVED_UPDATE_MEET_SETTING).create(),upsertLiveMeet:(0,o.jo)(r.Z.UPSERT_LIVE_MEET).create(),terminateLiveMeet:(0,o.jo)(r.Z.TERMINATE_LIVE_MEET).create()};var O=n(89906);const b={openModal:(0,o.jo)(r.Z.OPEN_MODAL).create(),closeModal:(0,o.jo)(r.Z.CLOSE_MODAL).create()},N={requestBoot:(0,o.Wn)(r.Z.REQUEST_BOOT,r.Z.REQUEST_BOOT_SUCCESS,r.Z.REQUEST_BOOT_ERROR).create(),requestTouch:(0,o.Wn)(r.Z.REQUEST_TOUCH,r.Z.REQUEST_TOUCH_SUCCESS,r.Z.REQUEST_TOUCH_ERROR).create(),shutdown:(0,o.jo)(r.Z.SHUTDOWN).create()};var w=n(22667);const L={requestReadUserChat:(0,o.Wn)(r.Z.REQUEST_READ_USER_CHAT,r.Z.REQUEST_READ_USER_CHAT_SUCCESS,r.Z.REQUEST_READ_USER_CHAT_ERROR).create(),requestReadAllUserChat:(0,o.Wn)(r.Z.REQUEST_READ_ALL_USER_CHAT,r.Z.REQUEST_READ_ALL_USER_CHAT_SUCCESS,r.Z.REQUEST_READ_ALL_USER_CHAT_ERROR).create()},M={requestConnectSocket:(0,o.Wn)(r.Z.REQUEST_CONNECT_SOCKET,r.Z.REQUEST_CONNECT_SOCKET_SUCCESS,r.Z.REQUEST_CONNECT_SOCKET_ERROR).create(),socketReady:(0,o.jo)(r.Z.SOCKET_READY).create(),socketReconnected:(0,o.jo)(r.Z.SOCKET_RECONNECTED).create(),socketDisconnected:(0,o.jo)(r.Z.SOCKET_DISCONNECTED).create(),checkConnection:(0,o.jo)(r.Z.CHECK_CONNECTION).create(),requestGetSocketAddress:(0,o.Wn)(r.Z.REQUEST_GET_SOCKET_ADDRESS,r.Z.REQUEST_GET_SOCKET_ADDRESS_SUCCESS,r.Z.REQUEST_GET_SOCKET_ADDRESS_ERROR).create()},P={postFormSubmit:(0,o.Wn)(r.Z.REQUEST_POST_FORM_SUBMIT,r.Z.REQUEST_POST_FORM_SUBMIT_SUCCESS,r.Z.REQUEST_POST_FORM_SUBMIT_ERROR).create()},D={showToast:(0,o.jo)(r.Z.SHOW_TOAST).create(),hideToast:(0,o.jo)(r.Z.HIDE_TOAST).create(),showOfflineToast:(0,o.jo)(r.Z.SHOW_OFFLINE_TOAST).create(),hideOfflineToast:(0,o.jo)(r.Z.HIDE_OFFLINE_TOAST).create()};var k=n(91504);const x={requestTranslateMessage:(0,o.Wn)(r.Z.REQUEST_TRANSLATE_MESSAGE,r.Z.REQUEST_TRANSLATE_MESSAGE_SUCCESS,r.Z.REQUEST_TRANSLATE_MESSAGE_ERROR).create(),showTranslatedMessage:(0,o.jo)(r.Z.SHOW_TRANSLATED_MESSAGE).create(),undoTranslatedMessage:(0,o.jo)(r.Z.UNDO_TRANSLATED_MESSAGE).create()},H={setShowChannelButton:(0,o.jo)(r.Z.SET_SHOW_CHANNEL_BUTTON).create(),setShowMessenger:(0,o.jo)(r.Z.SET_SHOW_MESSENGER).create(),startTyping:(0,o.jo)(r.Z.START_TYPING).create(),stopTyping:(0,o.jo)(r.Z.STOP_TYPING).create(),receivedStartTyping:(0,o.jo)(r.Z.RECEIVED_START_TYPING).create(),receivedStopTyping:(0,o.jo)(r.Z.RECEIVED_STOP_TYPING).create(),setTranslationVisibility:(0,o.jo)(r.Z.SET_TRANSLATION_VISIBILITY).create(),setNotificationSoundMode:(0,o.jo)(r.Z.SET_NOTIFICATION_SOUND_MODE).create(),urlClicked:(0,o.jo)(r.Z.URL_CLICKED).create(),changeVisibilityState:(0,o.jo)(r.Z.CHANGE_VISIBILITY_STATE).create(),receivedDeskMessage:(0,o.jo)(r.Z.RECEIVED_DESK_MESSAGE).create(),setAppearance:(0,o.jo)(r.Z.SET_APPEARANCE).create(),setKeyboardOpen:(0,o.jo)(r.Z.SET_KEYBOARD_OPEN).create(),setTutorialMode:(0,o.jo)(r.Z.SET_TUTORIAL_MODE).create(),initializeCustomLauncherSelector:(0,o.jo)(r.Z.INITIALIZE_CUSTOM_LAUNCHER_SELECTOR).create(),setCollapseAlfBanner:(0,o.jo)(r.Z.SET_COLLAPSE_ALF_BANNER).create(),historyChanged:(0,o.jo)(r.Z.HISTORY_CHANGED).create(),initializeMessengerStyle:(0,o.jo)(r.Z.INITIALIZE_MESSENGER_STYLE).create(),setMessengerSizeType:(0,o.jo)(r.Z.SET_MESSENGER_SIZE_TYPE).create(),toggleMessengerSize:(0,o.jo)(r.Z.TOGGLE_MESSENGER_SIZE).create()},G={requestCreateUserChat:(0,o.Wn)(r.Z.REQUEST_CREATE_USER_CHAT,r.Z.REQUEST_CREATE_USER_CHAT_SUCCESS,r.Z.REQUEST_CREATE_USER_CHAT_ERROR).create(),requestLeaveUserChat:(0,o.Wn)(r.Z.REQUEST_LEAVE_USER_CHAT,r.Z.REQUEST_LEAVE_USER_CHAT_SUCCESS,r.Z.REQUEST_LEAVE_USER_CHAT_ERROR).create(),requestGetUserChat:(0,o.Wn)(r.Z.REQUEST_GET_USER_CHAT,r.Z.REQUEST_GET_USER_CHAT_SUCCESS,r.Z.REQUEST_GET_USER_CHAT_ERROR).create(),enterUserChat:(0,o.jo)(r.Z.ENTER_USER_CHAT).create(),exitUserChat:(0,o.jo)(r.Z.EXIT_USER_CHAT).create(),receivedUpdateUserChat:(0,o.jo)(r.Z.RECEIVED_UPDATE_USER_CHAT).create(),receivedDeleteUserChat:(0,o.jo)(r.Z.RECEIVED_DELETE_USER_CHAT).create(),receivedCreateSession:(0,o.jo)(r.Z.RECEIVED_CREATE_SESSION).create(),receivedUpdateSession:(0,o.jo)(r.Z.RECEIVED_UPDATE_SESSION).create(),receivedDeleteSession:(0,o.jo)(r.Z.RECEIVED_DELETE_SESSION).create(),openChat:(0,o.jo)(r.Z.OPEN_CHAT).create(),goUserChat:(0,o.jo)(r.Z.GO_USER_CHAT).create(),goNewUserChat:(0,o.jo)(r.Z.GO_NEW_USER_CHAT).create(),initializeUserChat:(0,o.Wn)(r.Z.INITIALIZE_USER_CHAT,r.Z.INITIALIZE_USER_CHAT_SUCCESS,r.Z.INITIALIZE_USER_CHAT_ERROR).create(),initializeUserChatOnReconnect:(0,o.Wn)(r.Z.INITIALIZE_USER_CHAT_ON_RECONNECT,r.Z.INITIALIZE_USER_CHAT_ON_RECONNECT_SUCCESS,r.Z.INITIALIZE_USER_CHAT_ON_RECONNECT_ERROR).create(),initializeNewUserChat:(0,o.Wn)(r.Z.INITIALIZE_NEW_USER_CHAT,r.Z.INITIALIZE_NEW_USER_CHAT_SUCCESS,r.Z.INITIALIZE_NEW_USER_CHAT_ERROR).create(),setParamUserChatId:(0,o.jo)(r.Z.SET_PARAM_USER_CHAT_ID).create(),resetParamUserChatId:(0,o.jo)(r.Z.RESET_PARAM_USER_CHAT_ID).create(),requestSwitchToUserChat:(0,o.Wn)(r.Z.REQUEST_SWITCH_TO_USER_CHAT,r.Z.REQUEST_SWITCH_TO_USER_CHAT_SUCCESS,r.Z.REQUEST_SWITCH_TO_USER_CHAT_ERROR).create()},B={requestAddTags:(0,o.Wn)(r.Z.REQUEST_ADD_TAGS,r.Z.REQUEST_ADD_TAGS_SUCCESS,r.Z.REQUEST_ADD_TAGS_ERROR).create(),requestRemoveTags:(0,o.Wn)(r.Z.REQUEST_REMOVE_TAGS,r.Z.REQUEST_REMOVE_TAGS_SUCCESS,r.Z.REQUEST_REMOVE_TAGS_ERROR).create()},Q={requestUpdateUser:(0,o.Wn)(r.Z.REQUEST_UPDATE_USER,r.Z.REQUEST_UPDATE_USER_SUCCESS,r.Z.REQUEST_UPDATE_USER_ERROR).create(),requestGetUser:(0,o.Wn)(r.Z.REQUEST_GET_USER,r.Z.REQUEST_GET_USER_SUCCESS,r.Z.REQUEST_GET_USER_ERROR).create(),receivedUpdateUser:(0,o.jo)(r.Z.RECEIVED_UPDATE_USER).create(),changedUserProfile:(0,o.jo)(r.Z.CHANGED_USER_PROFILE).create()},W={openWamModal:(0,o.jo)(r.Z.OPEN_WAM_MODAL).create(),closeWamModal:(0,o.jo)(r.Z.CLOSE_WAM_MODAL).create()},F={requestTriggerAppWidgetInstallation:(0,o.Wn)(r.Z.REQUEST_TRIGGER_APP_WIDGET_INSTALLATION,r.Z.REQUEST_TRIGGER_APP_WIDGET_INSTALLATION_SUCCESS,r.Z.REQUEST_TRIGGER_APP_WIDGET_INSTALLATION_ERROR).create()},z={requestCreateWorkflowUserChat:(0,o.Wn)(r.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT,r.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_SUCCESS,r.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_ERROR).create(),requestCreateWorkflowUserChatWithRevision:(0,o.Wn)(r.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION,r.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_SUCCESS,r.Z.REQUEST_CREATE_WORKFLOW_USER_CHAT_WITH_REVISION_ERROR).create(),requestGetWorkflowFromId:(0,o.Wn)(r.Z.REQUEST_GET_WORKFLOW_FROM_ID,r.Z.REQUEST_GET_WORKFLOW_FROM_ID_SUCCESS,r.Z.REQUEST_GET_WORKFLOW_FROM_ID_ERROR).create(),openWorkflow:(0,o.Wn)(r.Z.OPEN_WORKFLOW,r.Z.OPEN_WORKFLOW_SUCCESS,r.Z.OPEN_WORKFLOW_ERROR).create(),initializeSpecificWorkflow:(0,o.Wn)(r.Z.INITIALIZE_SPECIFIC_WORKFLOW,r.Z.INITIALIZE_SPECIFIC_WORKFLOW_SUCCESS,r.Z.INITIALIZE_SPECIFIC_WORKFLOW_ERROR).create(),requestReplyUserChatHandlingButtons:(0,o.Wn)(r.Z.REQUEST_REPLY_USER_CHAT_HANDLING_BUTTONS,r.Z.REQUEST_REPLY_USER_CHAT_HANDLING_BUTTONS_SUCCESS,r.Z.REQUEST_REPLY_USER_CHAT_HANDLING_BUTTONS_ERROR).create()},V={actionActions:i,appCommandActions:s,readChatActions:L,appMessengerActions:v,channelActions:E,emojiActions:m,errorActions:C,eventActions:k.Z,fileIconActions:S,formActions:P,initializeActions:I,modalActions:b,fileUploadActions:g,homeActions:R,loungeMediaActions:y,managerActions:U,meetActions:Z,messageActions:O.Z,pluginActions:N,popupActions:w.Z,toastActions:D,uiActions:H,userActions:Q,userChatActions:G,userTagsActions:B,channelProfileActions:c,socketActions:M,chatroomInputActions:h,i18nActions:f,idleDetectorActions:A,commandActions:a,translationActions:x,chatListActions:u,followupSchemaActions:T,wamModalActions:W,workflowActions:z,channelOperationActions:l,chxChatActions:d,chxExperimentActions:_,appWidgetInstallationActions:F,documentActions:p}},48927:(e,t,n)=>{"use strict";let o;n.d(t,{U:()=>o}),function(e){e.Command="command",e.Message="message",e.Wam="wam",e.Web="web"}(o||(o={}))},87980:(e,t,n)=>{"use strict";let o;n.d(t,{k:()=>o}),function(e){e.MANUAL="manual",e.MESSAGE="message",e.WAM="wam"}(o||(o={}))},47901:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(80070),r=n(66532),i=n(78882),s=n(58078);class a{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,r.sc,!0),(0,o.Z)(this,"id",""),(0,o.Z)(this,"ai",!1),(0,o.Z)(this,"channelId",""),(0,o.Z)(this,"name",""),(0,o.Z)(this,"nameDescI18nMap",{}),(0,o.Z)(this,"createdAt",0),(0,o.Z)(this,"avatarUrl",""),(0,o.Z)(this,"$type",i.Z.Bot),Object.keys(e).forEach((t=>{(0,s.e$)(this,t)&&(this[t]=e[t])}))}static isBot(e){return e.$type===i.Z.Bot}getKey(){return this.id}getName(e){var t;return(null===(t=this.nameDescI18nMap[e])||void 0===t?void 0:t.name)??this.name}isEmpty(){return!this.id}}},34059:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(80070),r=n(66532),i=n(73368),s=n(29823),a=n(58078),l=n(50022);const c=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,r.sc,!0),(0,o.Z)(this,"id",""),(0,o.Z)(this,"channelId",""),(0,o.Z)(this,"awayOption",null),(0,o.Z)(this,"blockReplyingAfterClosed",!1),(0,o.Z)(this,"blockReplyingAfterClosedTime",null),(0,o.Z)(this,"operationTimeRanges",null),(0,o.Z)(this,"expectedResponseDelay",s.D.NORMAL),(0,o.Z)(this,"inOperation",!0),(0,o.Z)(this,"operationTimeScheduling",!1),(0,o.Z)(this,"defaultOperation",!1),(0,o.Z)(this,"showOperatorProfile",!0),(0,o.Z)(this,"nextOperatingAt",0),(0,o.Z)(this,"holidays",[]),(0,o.Z)(this,"todayHoliday",!1),Object.keys(e).forEach((t=>{(0,a.e$)(this,t)&&(this[t]=e[t])}));const t=(null==e?void 0:e.blockReplyingAfterClosedTime)??null;this.blockReplyingAfterClosedTime=(0,l.kK)(t)?null:(0,i.Qc)(t)}isEmpty(){return(0,l.xb)(this.id)}}},74274:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(30633);const r={channelName:(0,o.P1)((e=>e.userReducer.user.language),(e=>e.channelReducer.channel),((e,t)=>{var n,o;return(null===(n=t.nameDescI18nMap)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.name)||t.name})),channelDescription:(0,o.P1)((e=>e.userReducer.user.language),(e=>e.channelReducer.channel),((e,t)=>{var n,o;return(null===(n=t.nameDescI18nMap)||void 0===n||null===(o=n[e])||void 0===o?void 0:o.description)||t.description})),channelLogoUrl:e=>e.channelReducer.channel.avatarUrl||e.channelReducer.minimumChannelInfo.avatarUrl,channelHomepageUrl:e=>e.channelReducer.channel.homepageUrl,channelPhoneNumber:e=>e.channelReducer.channel.phoneNumber,channelTimeZone:e=>e.channelReducer.channel.timeZone,channelProfileTheme:(0,o.P1)((e=>e.channelReducer.channel),(e=>{let{brightness:t,color:n,gradientColor:o,borderColor:r,pluginIconColor:i}=e;return{brightness:t,color:n,gradientColor:o,borderColor:r,pluginIconColor:i}})),channelDefaultBotProfile:e=>e.channelProfileReducer.defaultBotProfile,parsedPhoneNumber:e=>e.channelProfileReducer.phoneNumber,isChannelCoverBright:e=>e.channelReducer.channel.coverImageBright,channelCoverColor:e=>e.channelReducer.channel.coverImageColor,channelCoverImageUrl:e=>e.channelReducer.channel.coverImageUrl}},35463:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(80070),r=n(94109),i=n(58078),s=n(50022);const a=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,"id",""),(0,o.Z)(this,"name",""),(0,o.Z)(this,"description",""),(0,o.Z)(this,"defaultPluginId",""),(0,o.Z)(this,"country",""),(0,o.Z)(this,"domain",""),(0,o.Z)(this,"disableNewChatButton",!1),(0,o.Z)(this,"color",""),(0,o.Z)(this,"borderColor",""),(0,o.Z)(this,"gradientColor",""),(0,o.Z)(this,"pluginIconColor","#ffffff"),(0,o.Z)(this,"textColor",""),(0,o.Z)(this,"bright",!0),(0,o.Z)(this,"brightness",0),(0,o.Z)(this,"coverImageBright",!1),(0,o.Z)(this,"coverImageColor",""),(0,o.Z)(this,"coverImageUrl",""),(0,o.Z)(this,"timeZone",""),(0,o.Z)(this,"trial",!1),(0,o.Z)(this,"avatarUrl",""),(0,o.Z)(this,"homepageUrl",""),(0,o.Z)(this,"phoneNumber",""),(0,o.Z)(this,"blocked",!1),(0,o.Z)(this,"systemDomain",""),(0,o.Z)(this,"showOperatorProfile",!0),(0,o.Z)(this,"utcOffset",""),(0,o.Z)(this,"hideAppMessenger",!1),(0,o.Z)(this,"nameDescI18nMap",null),(0,o.Z)(this,"welcomeMessage",{}),(0,o.Z)(this,"welcomeMessageI18nMap",{}),Object.keys(e).forEach((t=>{(0,i.e$)(this,t)&&(this[t]=e[t])}))}static getStandaloneUrlByDomain(e){if(!(0,s.xb)(e))return`https://${e}.channel.io`}getKey(){return this.id}isEmpty(){return!this.id}getStandaloneUrl(){return(0,r.yG)()?`http://${window.location.hostname}:4003`:`https://${this.systemDomain}.channel.io`}}},29823:(e,t,n)=>{"use strict";let o;n.d(t,{D:()=>o}),function(e){e.DELAYED="delayed",e.INSTANT="instant",e.NORMAL="normal"}(o||(o={}))},76627:(e,t,n)=>{"use strict";n.d(t,{zl:()=>d,ZP:()=>S});var o=n(80070),r=n(42972),i=n(80577),s=n(58078);class a{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,"n",""),(0,o.Z)(this,"c",""),(0,o.Z)(this,"k",[]),(0,o.Z)(this,"category",void 0),Object.keys(e).forEach((t=>{(0,s.e$)(this,t)&&(this[t]=e[t])}))}getKey(){return`${this.category??""}${this.n}`}getAlt(){return this.c}}var l=n(93345),c=n(48384),E=n(87851),u=n(27224),h=n(50022);const d={LOAD_AMOUNT:35,EMOJIS_PER_ROW:7,MAX_FREQUENTLY_USED_EMOJIS:21,EMOJI_SIZE_GIANT:160,EMOJI_SIZE_DEFAULT:80},_=e=>{let[t,{c:n,lu:o,r}]=e;return{k:t,c:n,lu:o,r}},p=e=>{let{k:t,c:n,lu:o}=e;const r=0!==Math.round((i.Z.getDate().getTime()-o)/1e3/60)?((e,t)=>e/Math.round((i.Z.getDate().getTime()-t)/1e3/60)**2)(n,o):1;return{k:t,c:n,lu:o,r}},m=(e,t)=>e.r&&t.r&&e.r>t.r?-1:t.r&&e.r&&t.r>e.r?1:e.lu>t.lu?-1:t.lu>e.lu?1:0,S=new class{constructor(){(0,o.Z)(this,"emojiMap",{}),(0,o.Z)(this,"unicodeMap",{}),(0,o.Z)(this,"emojiArray",[]),(0,o.Z)(this,"emojiInfo",{}),(0,o.Z)(this,"limit",d.MAX_FREQUENTLY_USED_EMOJIS),(0,o.Z)(this,"frequentlyUsedEmojiList",this.createFrequentlyUsedEmojiList())}isEmpty(){return(0,h.xb)(this.emojiMap)}setEmojis(e){this.emojiInfo=Object.fromEntries(Object.entries(e).map((e=>{let[t,n]=e;return[t,n.map((e=>new a({...e,category:t})))]}))),this.emojiArray=Object.values(this.emojiInfo).flat(),this.emojiMap=Object.fromEntries(this.emojiArray.map((e=>[e.n,e]))),this.unicodeMap=Object.fromEntries(this.emojiArray.map((e=>[e.c,e])))}getEmoji(e){return this.emojiMap[e]}getImageUrl(e){const t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?l.Z.CDN_GIANT:l.Z.CDN_DEFAULT;return`${E.NF}/asset/emoji/images/${t}/${encodeURIComponent(e)}.png`}getFrequentlyUsedEmojiList(){return this.frequentlyUsedEmojiList}updateUsage(e){if(e){const t=JSON.parse(r.Z.getItem(c.Z.FREQUENTLY_USED_EMOJIS)||"{}");t[e]={c:(0,s.e$)(t,e)?t[e].c+1:1,lu:i.Z.getDate().getTime()};const n=Object.entries(t).map(_).map(p).sort(m).slice(0,this.limit).reduce(((e,t)=>{let{k:n,c:o,lu:r,r:i}=t;return{...e,[n]:{c:o,lu:r,r:i}}}),{});r.Z.setItem(c.Z.FREQUENTLY_USED_EMOJIS,JSON.stringify(n)),this.frequentlyUsedEmojiList=this.createFrequentlyUsedEmojiList()}else(0,u.fF)("Can not update emoji usage without key.")}createFrequentlyUsedEmojiList(){const e=r.Z.getItem(c.Z.FREQUENTLY_USED_EMOJIS);return Object.entries(JSON.parse(e)||{}).map(_).sort(m).slice(0,this.limit)}get frequentlyUsedEmojis(){return this.frequentlyUsedEmojiList.filter((e=>{let{k:t}=e;return this.emojiMap[t]})).map((e=>{let{k:t}=e;return this.emojiMap[t]}))}}},40165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(80070),r=n(87851),i=n(50022);const s=new class{constructor(){(0,o.Z)(this,"fileIconInfoObject",{})}isEmpty(){return(0,i.xb)(this.fileIconInfoObject)}setFileIconInfo(e){const t={};e.forEach((e=>{const{key:n,extensions:o}=e;o.forEach((e=>{t[e]=n}))})),this.fileIconInfoObject=t}getFileIconUrl(e){const t=this.fileIconInfoObject[e]??"file";return`${r.NF}/asset/file-icon/images/${t}@2x.png`}}},95913:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s,p:()=>i});var o=n(80070),r=n(58078);let i;!function(e){e.EMAIL="email",e.MOBILE_NUMBER="mobileNumber",e.NAME="name"}(i||(i={}));class s{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,"id",""),(0,o.Z)(this,"channelId",""),(0,o.Z)(this,"key",""),(0,o.Z)(this,"name",""),(0,o.Z)(this,"nameI18nMap",{}),(0,o.Z)(this,"type",""),(0,o.Z)(this,"createdAt",0),(0,o.Z)(this,"updatedAt",0),Object.keys(e).forEach((t=>{(0,r.e$)(this,t)&&(this[t]=e[t])}))}getName(e){return this.nameI18nMap[e]??this.name}getKey(){return this.id}}},32180:(e,t,n)=>{"use strict";var o;n.d(t,{Z:()=>r}),function(e){e.CAROUSEL_ALBUM="CAROUSEL_ALBUM",e.IMAGE="IMAGE",e.VIDEO="VIDEO"}(o||(o={}));const r=o},73832:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(80070),r=n(66532),i=n(78882),s=n(58078),a=n(50022);class l{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,r.sc,!0),(0,o.Z)(this,"id",""),(0,o.Z)(this,"channelId",""),(0,o.Z)(this,"accountId",""),(0,o.Z)(this,"managerId",""),(0,o.Z)(this,"name",""),(0,o.Z)(this,"description",""),(0,o.Z)(this,"showDescriptionToFront",!1),(0,o.Z)(this,"emailForFront",""),(0,o.Z)(this,"mobileNumberForFront",""),(0,o.Z)(this,"avatarUrl",""),(0,o.Z)(this,"createdAt",0),(0,o.Z)(this,"displayAsChannel",!1),(0,o.Z)(this,"removed",!1),(0,o.Z)(this,"nameDescI18nMap",{}),(0,o.Z)(this,"$type",i.Z.Manager),Object.keys(e).forEach((t=>{(0,s.e$)(this,t)&&(this[t]=e[t])}))}static isManager(e){return(null==e?void 0:e.$type)===i.Z.Manager}get typedId(){return`manager-${this.id}`}getKey(){return this.id}getName(e){var t;return(null===(t=this.nameDescI18nMap[e])||void 0===t?void 0:t.name)??this.name}getDescription(e){var t;return this.showDescriptionToFront?(null===(t=this.nameDescI18nMap[e])||void 0===t?void 0:t.description)??this.description:null}hasInfo(e){return!(0,a.xb)(this.getDescription(e))||!(0,a.xb)(this.emailForFront)||!(0,a.xb)(this.mobileNumberForFront)}isEmpty(){return!this.id}}},81577:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=n(30633),r=n(60885),i=n(74274),s=n(73832),a=n(28298);const l=e=>e.managersReducer.managers,c=(0,o.P1)(l,((e,t)=>t),((e,t)=>e[t])),E=(0,o.P1)(l,(e=>Object.keys(e))),u=(0,o.P1)(l,((e,t)=>t),((e,t)=>e[t]??new s.Z)),h=(0,o.P1)(l,((e,t)=>t),((e,t)=>!e[t]||e[t].isEmpty())),d=(0,o.P1)(u,(e=>e.isEmpty()||e.displayAsChannel)),_=(0,o.P1)(u,d,i.Z.channelLogoUrl,((e,t,n)=>t?n:e.avatarUrl)),p=(0,o.P1)(u,d,a.Z.getLanguage,a.Z.getSystemLanguage,i.Z.channelName,((e,t,n,o,i)=>t?i:e.getName(n)||r.Z.getTranslation(o,"ch.unknown"))),m={getManagers:l,getManager:c,getManagerIds:E,getManagerById:u,hasAvailableInfo:(0,o.P1)(c,a.Z.getLanguage,((e,t)=>!!e&&e.hasInfo(t))),getAvatarUrl:_,getName:p,showChannelAvatar:d,isManagerEmpty:h,getOperators:e=>e.managersReducer.operators}},86262:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var o=n(80070),r=n(86582),i=n(48156),s=n(53212);const a="device-id",l=new class{get id(){let e=s.Z.getItem(a);return e||(e=(0,i.Z)(),s.Z.setItem(a,e)),e}};var c=n(28961),E=n(9967),u=n(44873),h=n(87851);const d={[u.Z.AUDIO]:400,[u.Z.VIDEO]:900},_={[u.Z.AUDIO]:400,[u.Z.VIDEO]:700},{isAndroid:p,isLineInAppBrowser:m,isInstagramInAppBrowser:S,isFacebookInAppBrowser:g}=c.Z,T=p&&(m||S||g),C=new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E.Z.currentWindow;(0,o.Z)(this,"currentWindow",void 0),(0,o.Z)(this,"meetBoxWindow",null),this.currentWindow=e}openMeetBox(e){let{mode:t=u.Z.AUDIO,userChatId:n,meetId:o}=e;if(T)return void this.currentWindow.open(`${h.g5}/front/not-supported`,"_blank");const i=l.id,s=r.ZP.getToken();if(!s)throw new Error("Token is required");const a=new URLSearchParams({mode:t,deviceId:i,token:s}),c=o?`/front/user-chats/${n}/meets/${o}`:`/front/user-chats/${n}`;this.meetBoxWindow=this.currentWindow.open(`${h.g5}${c}?${a}`,"_blank",`popup=true, width=${d[t]}, height=${_[t]}`)}focus(){var e;null===(e=this.meetBoxWindow)||void 0===e||e.focus()}}},45973:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(80070),r=n(58078);const i=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,"direction",void 0),(0,o.Z)(this,"missedReason",void 0),(0,o.Z)(this,"engagedAt",void 0),Object.keys(e).forEach((t=>{(0,r.e$)(this,t)&&(this[t]=e[t])}))}}},37949:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var o=n(80070),r=n(80577),i=n(12022),s=n(58078);class a{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,"type",void 0),(0,o.Z)(this,"id",""),(0,o.Z)(this,"advertising",!1),(0,o.Z)(this,"exposureType",null),Object.keys(e).forEach((t=>{(0,s.e$)(this,t)&&(this[t]=e[t])}))}}var l=n(50022);class c{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,"id",""),(0,o.Z)(this,"url",""),(0,o.Z)(this,"title",""),(0,o.Z)(this,"description",""),(0,o.Z)(this,"imageUrl",""),(0,o.Z)(this,"videoUrl",""),(0,o.Z)(this,"publisher",""),(0,o.Z)(this,"width",0),(0,o.Z)(this,"height",0),(0,o.Z)(this,"bucket",""),(0,o.Z)(this,"previewKey",null),Object.keys(e).forEach((t=>{(0,s.e$)(this,t)&&(this[t]=e[t])}))}getKey(){return this.id}isEmpty(){return!this.id}getPreviewThumbUrl(){return(0,l.xb)(this.bucket)||(0,l.xb)(this.previewKey)?null:`${this.getUrlOrigin()}/${this.previewKey}`}getUrlOrigin(){switch(this.bucket){case"bin.channel.io":return"https://cf.channel.io";case"bin.exp.channel.io":return"https://cf.exp.channel.io";default:return`https://${this.bucket}`}}isYouTube(){return"YouTube"===this.publisher}getYouTubeId(){return(this.url.match(/^https?:\/\/(?:www\.)?(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|e\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/))((?:\w|-){11})/)||[])[1]||""}}class E{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,"references",[]),(0,o.Z)(this,"type",""),Object.keys(e).forEach((t=>{(0,s.e$)(this,t)&&(this[t]=e[t])}))}getType(){return this.type}getReferences(){return this.references}getLabel(){return"faq"===this.getType()?"ch.chatroom.message.matched_faq":"ch.chatroom.message.reference"}}var u,h=n(76627),d=n(44873),_=n(45973);!function(e){e.Ended="ended",e.Live="live",e.Transcribed="transcribed"}(u||(u={}));var p,m=n(25903),S=n(39620),g=n(71381),T=n(16758),C=n(84267);!function(e){e.DisplayAsChannel="displayAsChannel",e.Immutable="immutable"}(p||(p={}));const R=p;var f=n(78882),A=n(94785),I=n(86548),v=n(42474),y=n(66934);const U="custom",Z="followUp",O=/^(?::[\w\d_+-]+:)+$/,b=/^(?::[\w\d_+-]+:(\ud83c[\udffb-\udfff])?)+$/;class N{static createLocalUserMessageObject(e,t){return{requestId:`front-web-${r.Z.getDate().getTime()}${(0,S.zs)()}`,$sending:!0,$failed:!1,$local:!0,createdAt:r.Z.getDate().getTime(),personType:f.Z.User,personId:e,...t}}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,"alf",void 0),(0,o.Z)(this,"id",""),(0,o.Z)(this,"channelId",""),(0,o.Z)(this,"chatId",""),(0,o.Z)(this,"personType",null),(0,o.Z)(this,"personId",""),(0,o.Z)(this,"plainText",""),(0,o.Z)(this,"buttons",[]),(0,o.Z)(this,"createdAt",0),(0,o.Z)(this,"requestId",""),(0,o.Z)(this,"files",[]),(0,o.Z)(this,"log",null),(0,o.Z)(this,"webPage",null),(0,o.Z)(this,"language",""),(0,o.Z)(this,"blocks",[]),(0,o.Z)(this,"marketing",null),(0,o.Z)(this,"state",void 0),(0,o.Z)(this,"options",void 0),(0,o.Z)(this,"reactions",[]),(0,o.Z)(this,"form",void 0),(0,o.Z)(this,"meet",null),(0,o.Z)(this,"workflowButton",!1),(0,o.Z)(this,"version",0),(0,o.Z)(this,"$sending",!1),(0,o.Z)(this,"$failed",!1),(0,o.Z)(this,"$local",!1),(0,o.Z)(this,"$receivedFromSocket",!1),Object.keys(e).forEach((t=>{(0,s.e$)(this,t)&&(this[t]=((e,t)=>{if("alf"===e)return(0,l.Kn)(t)?new E(t):null;if("files"===e)return Array.isArray(t)?t.map((e=>new i.Z(e))):[];if("webPage"===e)return(0,l.Kn)(t)?new c(t):null;if("marketing"===e)return(0,l.Kn)(t)?new a(t):null;if("reactions"===e)return Array.isArray(t)?t.map((e=>new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,"emojiName",""),(0,o.Z)(this,"personKeys",[]),Object.keys(e).forEach((t=>{(0,s.e$)(this,t)&&(this[t]=e[t])}))}getKey(){return this.emojiName}getCount(){return this.personKeys.length}}(e))):[];if("form"===e){if(null==t||!t.type)return null;switch(t.type){case U:return new class{isCustomForm(){return!0}isFollowUpForm(){return!1}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,"type",U),(0,o.Z)(this,"inputs",[]),(0,o.Z)(this,"submittedAt",void 0),Object.keys(e).forEach((t=>{var n,r;(0,s.e$)(this,t)&&(this[t]=(n=t,r=e[t],"inputs"===n?Array.isArray(r)?r.map((e=>new class{isCustomFormInput(){return!0}isFollowUpFormInput(){return!1}isRequired(){return this.required}constructor(e){(0,o.Z)(this,"type",y.Z.Text),(0,o.Z)(this,"dataType",v.Z.String),(0,o.Z)(this,"required",!1),(0,o.Z)(this,"options",void 0),(0,o.Z)(this,"label",""),(0,o.Z)(this,"bindingKey",""),(0,o.Z)(this,"value",void 0),(0,o.Z)(this,"readOnly",!1),Object.keys(e).forEach((t=>{(0,s.e$)(this,t)&&(this[t]=e[t])}))}toJSON(){return{type:this.type,dataType:this.dataType,required:this.required,options:this.options,label:this.label,bindingKey:this.bindingKey,value:this.value,readOnly:this.readOnly}}}(e))):[]:r))}))}toJSON(){return{type:this.type,inputs:this.inputs.map((e=>e.toJSON()))}}}(t);case Z:return new class{isCustomForm(){return!1}isFollowUpForm(){return!0}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,"type",Z),(0,o.Z)(this,"inputs",[]),(0,o.Z)(this,"triggerMessageId",""),(0,o.Z)(this,"submittedAt",void 0),Object.keys(e).forEach((t=>{var n,r;(0,s.e$)(this,t)&&(this[t]=(n=t,r=e[t],"inputs"===n?Array.isArray(r)?r.map((e=>new class{isCustomFormInput(){return!1}isFollowUpFormInput(){return!0}isRequired(){return!1}constructor(e){(0,o.Z)(this,"type",y.Z.Text),(0,o.Z)(this,"dataType",v.Z.String),(0,o.Z)(this,"label",""),(0,o.Z)(this,"bindingKey",""),(0,o.Z)(this,"value",void 0),(0,o.Z)(this,"readOnly",!1),Object.keys(e).forEach((t=>{(0,s.e$)(this,t)&&(this[t]=e[t])}))}toJSON(){return{type:this.type,dataType:this.dataType,label:this.label,bindingKey:this.bindingKey,value:this.value,readOnly:this.readOnly}}}(e))):[]:r))}))}toJSON(){return{type:this.type,triggerMessageId:this.triggerMessageId,submittedAt:this.submittedAt,inputs:this.inputs.map((e=>e.toJSON()))}}}(t);default:return null}}return"meet"===e?(0,l.Kn)(t)?new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,"id",""),(0,o.Z)(this,"country",""),(0,o.Z)(this,"front",null),(0,o.Z)(this,"mode",null),(0,o.Z)(this,"roomStartedAt",0),(0,o.Z)(this,"meetEndedAt",void 0),(0,o.Z)(this,"state",null),Object.keys(e).forEach((t=>{var n,o;(0,s.e$)(this,t)&&(this[t]=(n=t,o=e[t],"front"===n?new _.Z(o):o))}))}get messageType(){var e;return"outbound"!==(null===(e=this.front)||void 0===e?void 0:e.direction)||this.front.engagedAt?this.state===u.Live?"live":"ended":this.state===u.Live?"ring":"missed"}get duration(){var e;return null!==(e=this.front)&&void 0!==e&&e.engagedAt&&this.meetEndedAt?this.meetEndedAt-this.front.engagedAt:null}get isAudioMeet(){return this.mode===d.Z.AUDIO}}(t):null:t})(t,e[t]))}))}getKey(){return this.requestId||this.id||""}getFiles(){return this.files}getOrderedFiles(){return[...this.getFiles()].sort(((e,t)=>(0,l.kK)(e.type)?-1:(0,l.kK)(t.type)?1:T.p[e.type]-T.p[t.type]))}get videoFiles(){return this.files.filter((e=>e.type===T.Z.Video))}get imageFiles(){return this.files.filter((e=>e.type===T.Z.Image))}getWebPage(){return this.webPage}isSending(){return this.$sending}isLocal(){return this.$local}isReceivedFromSocket(){return this.$receivedFromSocket}isEmpty(){return!this.requestId&&!this.id}get isFailed(){return this.$failed}isDeletedMessage(){return"removed"===this.state}isCreatedBySamePerson(e){return this.personType===e.personType&&this.personId===e.personId&&this.getDisplayAsChannel()===e.getDisplayAsChannel()}isCreatedBy(e){return!!m.Z.isUser(e)&&this.personType===e.$type&&this.personId===e.id}isContextMessage(e){return I.Q8(this.createdAt,e.createdAt)&&this.isCreatedBySamePerson(e)}isLog(){var e;return!this.plainText&&!(null===(e=this.log)||void 0===e||!e.action)}isCampaign(){var e;return(null===(e=this.marketing)||void 0===e?void 0:e.type)===C.Z.Campaign}isOTM(){var e;return(null===(e=this.marketing)||void 0===e?void 0:e.type)===C.Z.OneTimeMessage}canTranslate(e){return this.hasLanguage()&&this.language!==e}canDelete(){var e;return!(this.personType!==f.Z.User||this.$sending||null!==(e=this.options)&&void 0!==e&&e.includes(R.Immutable)||this.isDeletedMessage()||this.$local)}hasPerson(){return this.personType===f.Z.Bot||this.personType===f.Z.Manager}hasLanguage(){return!(0,l.xb)(this.language)}hasBlocks(){return!(0,l.xb)(this.blocks)}hasWebPage(){return!(0,l.kK)(this.webPage)}hasForm(){return!(0,l.kK)(this.form)}hasFile(){return!(0,l.xb)(this.files)}hasOnlyGiantEmojis(){return this.hasBlocks()&&1===this.blocks.length&&this.blocks[0].type===g.Z.TEXT&&(O.test(this.blocks[0].value)||b.test(this.blocks[0].value))&&(0,A.o)(this.blocks[0].value.split(":")).some((e=>h.ZP.getEmoji(e)))}get hasButton(){return!(0,l.xb)(this.buttons)&&Array.isArray(this.buttons)}setCreatedAt(e){return this.createdAt=e,this}getCreatedAt(){return this.createdAt}getReactorIds(){var e;const t=new Set;return null===(e=this.reactions)||void 0===e||e.map((e=>e.personKeys)).flat().forEach((e=>{const[n,o]=e.split("-");n===f.Z.Manager&&t.add(o)})),Array.from(t)}getDisplayAsChannel(){var e;return(null===(e=this.options)||void 0===e?void 0:e.includes(R.DisplayAsChannel))??!1}shouldRenderLanguageConversion(e,t){return t?t===this.id:this.personType===f.Z.User&&this.id&&this.language&&!this.workflowButton&&e!==this.language&&this.$receivedFromSocket}shouldRenderTimeDivider(e,t){const n=t?(this.createdAt-t.createdAt)/1e3/60:0;return!t&&!e||t&&!I.o(t.createdAt,this.createdAt)||n>20}shouldRenderUnreadDivider(e,t,n){return n?+n.createdAt<=e&&e<+this.createdAt:!!t&&e<+this.createdAt}isFirstMessage(e,t,n){return!n||!!n.form||!n.isContextMessage(this)||this.shouldRenderUnreadDivider(e,t,n)||this.shouldRenderTimeDivider(t,n)}get isFormSubmitted(){return!(!this.form||!this.form.submittedAt)}get stringFromBlocks(){let e="";return this.blocks.reduce(((t,n)=>{switch(n.type){case g.Z.TEXT:return t+n.value;case g.Z.CODE:return t?`${t}\n${n.value}\n`:`${n.value}\n`;case g.Z.BULLETS:return e=n.blocks.reduce(((e,t)=>`${e+t.value}\n`),""),t?`${t}\n${e}`:e}}),"")}meetMessageText(){var e;switch(null===(e=this.meet)||void 0===e?void 0:e.messageType){case"live":return"ch.meet.message_preview.ongoing";case"ring":return"ch.meet.message_preview.invited";case"missed":return"ch.meet.message_preview.missed";default:return"ch.meet.message_preview.ended"}}}},89906:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(39620),r=n(84555);const i={requestGetMessages:(0,o.Wn)(r.Z.REQUEST_GET_MESSAGES,r.Z.REQUEST_GET_MESSAGES_SUCCESS,r.Z.REQUEST_GET_MESSAGES_ERROR).create(),requestGetMessagesOnReconnect:(0,o.Wn)(r.Z.REQUEST_GET_MESSAGES_ON_RECONNECT,r.Z.REQUEST_GET_MESSAGES_ON_RECONNECT_SUCCESS,r.Z.REQUEST_GET_MESSAGES_ON_RECONNECT_ERROR).create(),requestGetNextMessages:(0,o.Wn)(r.Z.REQUEST_GET_NEXT_MESSAGES,r.Z.REQUEST_GET_NEXT_MESSAGES_SUCCESS,r.Z.REQUEST_GET_NEXT_MESSAGES_ERROR).create(),requestCreateMessage:(0,o.Wn)(r.Z.REQUEST_CREATE_MESSAGE,r.Z.REQUEST_CREATE_MESSAGE_SUCCESS,r.Z.REQUEST_CREATE_MESSAGE_ERROR).create(),requestDeleteMessage:(0,o.Wn)(r.Z.REQUEST_DELETE_MESSAGE,r.Z.REQUEST_DELETE_MESSAGE_SUCCESS,r.Z.REQUEST_DELETE_MESSAGE_ERROR).create(),receivedCreateMessage:(0,o.jo)(r.Z.RECEIVED_CREATE_MESSAGE).create(),receivedUpdateMessage:(0,o.jo)(r.Z.RECEIVED_UPDATE_MESSAGE).create(),requestCreateLocalMessage:(0,o.jo)(r.Z.REQUEST_CREATE_LOCAL_MESSAGE).create(),deleteLocalMessage:(0,o.jo)(r.Z.DELETE_LOCAL_MESSAGE).create(),upsertMessage:(0,o.jo)(r.Z.UPSERT_MESSAGE).create(),setLanguageConversionMessageId:(0,o.jo)(r.Z.SET_LANGUAGE_CONVERSION_MESSAGE_ID).create()}},24122:(e,t,n)=>{"use strict";let o;n.d(t,{B:()=>o}),function(e){e.CustomImage="customImage",e.IconButton="iconButton",e.Legacy="legacy"}(o||(o={}))},22667:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(39620),r=n(84555);const i={setPopupActive:(0,o.jo)(r.Z.SET_POPUP_ACTIVE).create(),initializeLabelButton:(0,o.Wn)(r.Z.INITIALIZE_LABEL_BUTTON,r.Z.INITIALIZE_LABEL_BUTTON_SUCCESS,r.Z.INITIALIZE_LABEL_BUTTON_ERROR).create(),showLabelButton:(0,o.jo)(r.Z.SHOW_LABEL_BUTTON).create(),receivedPushMessage:(0,o.jo)(r.Z.RECEIVED_PUSH_MESSAGE).create(),updatePopup:(0,o.jo)(r.Z.UPDATE_POPUP).create(),setBubbleInteracting:(0,o.jo)(r.Z.SET_HOVER_OR_FOCUS_BUBBLE).create(),requestClosePopUp:(0,o.Wn)(r.Z.REQUEST_CLOSE_POP_UP,r.Z.REQUEST_CLOSE_POP_UP_SUCCESS,r.Z.REQUEST_CLOSE_POP_UP_ERROR).create(),requestGetPopupUserChat:(0,o.Wn)(r.Z.REQUEST_GET_POPUP_USER_CHAT,r.Z.REQUEST_GET_POPUP_USER_CHAT_SUCCESS,r.Z.REQUEST_GET_POPUP_USER_CHAT_ERROR).create(),initializePopup:(0,o.Wn)(r.Z.INITIALIZE_POPUP,r.Z.INITIALIZE_POPUP_SUCCESS,r.Z.INITIALIZE_POPUP_ERROR).create()}},37264:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>c,kQ:()=>a});var o=n(37949),r=n(9694),i=n(84555),s=n(80834);let a;!function(e){e.LabelButton="labelButton",e.MeetRing="meetRing",e.PushMessage="pushMessage"}(a||(a={}));const l={active:!1,isBubbleInteracting:!1,alertLevel:s.Z.UNREAD,message:new o.Z,userChat:new r.Z,popupType:a.PushMessage};function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.Z.REQUEST_GET_POPUP_USER_CHAT_SUCCESS:case i.Z.UPDATE_POPUP:{const n=new o.Z(t.payload.message),i=t.payload.message.alertLevel;return{...e,active:!n.isDeletedMessage(),message:n,userChat:new r.Z(t.payload.userChat),alertLevel:i,popupType:a.PushMessage}}case i.Z.RECEIVED_UPDATE_MESSAGE:if(e.message.id===t.payload.message.id){const n=new o.Z(t.payload.message);return{...e,message:n,active:!n.isDeletedMessage(),popupType:a.PushMessage}}return e;case i.Z.SET_POPUP_ACTIVE:return{...e,active:t.payload.active};case i.Z.SHOW_LABEL_BUTTON:return{...e,active:!0,popupType:a.LabelButton};case i.Z.SET_SHOW_MESSENGER:return{...e,active:!1};case i.Z.SET_HOVER_OR_FOCUS_BUBBLE:return{...e,isBubbleInteracting:t.payload.isBubbleInteracting};case i.Z.SHUTDOWN:return l;default:return e}}},90407:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(80070),r=n(66532),i=n(58078);class s{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,r.sc,!0),(0,o.Z)(this,"id",""),(0,o.Z)(this,"channelId",""),(0,o.Z)(this,"chatId",""),(0,o.Z)(this,"chatType",""),(0,o.Z)(this,"personId",""),(0,o.Z)(this,"personType",""),(0,o.Z)(this,"unread",0),(0,o.Z)(this,"alert",0),(0,o.Z)(this,"readAt",0),(0,o.Z)(this,"postedAt",0),(0,o.Z)(this,"updatedAt",0),(0,o.Z)(this,"version",0),Object.keys(e).forEach((t=>{(0,i.e$)(this,t)&&(this[t]=e[t])}))}getUnread(){return this.unread>99?"99+":this.unread}getKey(){return this.chatId}isEmpty(){return!this.id}setReadAt(e){return this.readAt=e,this}getReadAt(){return this.readAt}setPostedAt(e){return this.postedAt=e,this}getPostedAt(){return this.postedAt}}},69677:(e,t,n)=>{"use strict";let o;n.d(t,{t:()=>o}),function(e){e.MarketingClick="click",e.MarketingGoal="MarketingGoal",e.MarketingView="view",e.PageView="PageView",e.UserChatOpen="UserChatOpen"}(o||(o={}))},91504:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(39620),r=n(84555);const i={requestCreateEvent:(0,o.Wn)(r.Z.REQUEST_CREATE_EVENT,r.Z.REQUEST_CREATE_EVENT_SUCCESS,r.Z.REQUEST_CREATE_EVENT_ERROR).create(),requestUpdateMarketingEvent:(0,o.Wn)(r.Z.REQUEST_UPDATE_MARKETING_EVENT,r.Z.REQUEST_UPDATE_MARKETING_EVENT_SUCCESS,r.Z.REQUEST_UPDATE_MARKETING_EVENT_ERROR).create()}},9694:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(80070),r=n(66532),i=n(80183),s=n(58078),a=n(50022);class l{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,r.sc,!0),(0,o.Z)(this,"id",""),(0,o.Z)(this,"channelId",""),(0,o.Z)(this,"state",null),(0,o.Z)(this,"frontUpdatedAt",0),(0,o.Z)(this,"createdAt",0),(0,o.Z)(this,"closedAt",0),(0,o.Z)(this,"assigneeId",""),(0,o.Z)(this,"frontMessageId",""),(0,o.Z)(this,"handling",null),(0,o.Z)(this,"liveMeetId",""),(0,o.Z)(this,"xerId",void 0),(0,o.Z)(this,"teamId",void 0),(0,o.Z)(this,"version",0),Object.keys(e).forEach((t=>{(0,s.e$)(this,t)&&(this[t]=e[t])}))}getKey(){return this.id}getState(){return this.state}isEmpty(){return!this.id}hasState(){return!(0,a.kK)(this.state)}hasHandling(){return!(0,a.kK)(this.handling)}isAssigned(){return!!this.assigneeId}isClosed(){return this.state===i.P.Closed}get isWaitingFollowUp(){var e;return(null===(e=this.handling)||void 0===e?void 0:e.type)===i.$.FollowUpMandatory}get isAlf(){var e;return(null===(e=this.handling)||void 0===e?void 0:e.type)===i.$.Alf}get isWorkflowActive(){var e;return(null===(e=this.handling)||void 0===e?void 0:e.type)===i.$.Workflow}get isWaitingToStartChat(){var e;return(null===(e=this.handling)||void 0===e?void 0:e.type)===i.$.WaitingToStartChat}get isCollectingUserReply(){var e;return(null===(e=this.handling)||void 0===e?void 0:e.type)===i.$.CollectUserReply}get shouldHideMessengerInput(){return this.isWaitingFollowUp||this.isWorkflowActive}}},80183:(e,t,n)=>{"use strict";let o,r;n.d(t,{$:()=>r,P:()=>o}),function(e){e.Closed="closed",e.Opened="opened",e.Snoozed="snoozed"}(o||(o={})),function(e){e.Alf="alf",e.CollectUserReply="collectUserReply",e.FollowUpMandatory="followUpMandatory",e.WaitingToStartChat="waitingToStartChat",e.Workflow="workflow"}(r||(r={}))},27498:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var o=n(30633),r=n(9694),i=n(28298);const s=(0,o.P1)((e=>e.userChatsReducer.userChats),(e=>e.values())),a=e=>e.userChatsReducer.paramUserChatId||e.userChatsReducer.enteredUserChatId,l=(0,o.P1)((e=>e.userChatsReducer.lastMessages),((e,t)=>t),((e,t)=>e.get(t))),c=(0,o.P1)(s,a,((e,t)=>t),((e,t,n)=>e.find((e=>e.id===(n||t)))??new r.Z)),E={getNext:e=>e.userChatsReducer.next,getCurrentUserChatId:a,getUserChat:c,isUserChatWaitingFollowup:(0,o.P1)(c,(e=>e.isWaitingFollowUp)),getLastMessageById:l,isUserChatClosed:(0,o.P1)(c,(e=>e.isClosed())),isUserChatAlf:(0,o.P1)(c,(e=>e.isAlf)),isUserChatCollectingUserReply:(0,o.P1)(c,(e=>e.isCollectingUserReply)),shouldHideMessengerInput:(0,o.P1)(c,(e=>e.shouldHideMessengerInput)),isAssigned:(0,o.P1)(c,(e=>e.isAssigned())),hasUserChatState:(0,o.P1)(c,(e=>e.hasState())),hasUserChatHandling:(0,o.P1)(c,(e=>e.hasHandling())),userChatAssigneeId:(0,o.P1)(c,(e=>e.assigneeId)),hasUserChatLiveMeet:(0,o.P1)(c,(e=>!!e.liveMeetId)),getUserChatHandlingButtons:(0,o.P1)(c,(e=>{var t;return(null===(t=e.handling)||void 0===t?void 0:t.buttons)??[]})),getUserChatHandlingBot:(0,o.P1)(i.Z.getLanguage,c,((e,t)=>{var n,o;if(null===(n=t.handling)||void 0===n||!n.bot)return null;const{name:r,nameDescI18nMap:i,avatarUrl:s}=t.handling.bot;return{name:(null==i||null===(o=i[e])||void 0===o?void 0:o.name)??r,avatarUrl:s}}))}},25903:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(80070),r=n(66532),i=n(78882),s=n(49038),a=n(58078);class l{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,r.sc,!0),(0,o.Z)(this,"id",""),(0,o.Z)(this,"channelId",""),(0,o.Z)(this,"constrainted",!1),(0,o.Z)(this,"memberId",""),(0,o.Z)(this,"veilId",""),(0,o.Z)(this,"mainChatId",""),(0,o.Z)(this,"avatarUrl",""),(0,o.Z)(this,"alert",0),(0,o.Z)(this,"unread",0),(0,o.Z)(this,"language","en"),(0,o.Z)(this,"systemLanguage",s.ZP.EN),(0,o.Z)(this,"createdAt",0),(0,o.Z)(this,"updatedAt",0),(0,o.Z)(this,"popUpChatId",null),(0,o.Z)(this,"profile",{}),(0,o.Z)(this,"country",""),(0,o.Z)(this,"unsubscribeEmail",!1),(0,o.Z)(this,"unsubscribeTexting",!1),(0,o.Z)(this,"mobileNumberQualified",!1),(0,o.Z)(this,"emailQualified",!1),(0,o.Z)(this,"tags",[]),(0,o.Z)(this,"version",0),(0,o.Z)(this,"$type",i.Z.User),Object.keys(e).forEach((t=>{(0,a.e$)(this,t)&&(this[t]=e[t])}))}static isUser(e){return e.$type===i.Z.User}get alertWithPlus(){return this.alert>99?"99+":this.alert}getKey(){return this.id}getLanguage(){return this.language}getName(){return this.profile.name||""}getProfile(){return this.profile}isEmpty(){return!this.id}isQualified(e){switch(e.key){case"email":return this.emailQualified;case"mobileNumber":return this.mobileNumberQualified;default:return!1}}}},28298:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(30633),r=n(54225);const i=e=>e.userReducer.user,s={getCountry:e=>e.userReducer.user.country,getUser:i,getUserId:e=>e.userReducer.user.id,getLanguage:e=>e.userReducer.user.language,getSystemLanguage:e=>e.userReducer.user.systemLanguage,getUserAlert:e=>e.userReducer.user.alert,getUserAlertWithPlus:e=>e.userReducer.user.alertWithPlus,getUserUnread:e=>e.userReducer.user.unread,getPopUpChatId:e=>e.userReducer.user.popUpChatId,hasMobileNumber:e=>!!e.userReducer.user.profile[r.Z.MobileNumber],getUserSubscriptions:(0,o.P1)(i,(e=>({texting:e.unsubscribeTexting,email:e.unsubscribeEmail})))}},61364:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s,d:()=>i});var o=n(20131);const r={},i=new o.X(r),s=()=>e=>t=>{const n=e(t);return t.subject&&(t.lifeCycle?(r[t.type]={loading:t.meta.loading,error:t.meta.error,subject:t.subject},i.next(r)):t.type.endsWith("_SUCCESS")?t.subject.next(t.payload):t.type.endsWith("_ERROR")?t.subject.error(t.payload):t.type.endsWith("_COMPLETE")&&t.subject.complete()),n}},47864:(e,t,n)=>{"use strict";n.d(t,{Z:()=>an});var o=n(30633);const r=e=>e.appCommandReducer.commands,i=e=>e.appCommandReducer.selectedCommandId,s={getCommands:r,getSelectedCommand:(0,o.P1)([r,i],((e,t)=>e.find((e=>e.getId()===t))??null)),getSelectedCommandId:i,isCommandMode:e=>!!e.appCommandReducer.selectedCommandId,getCommandInputParams:e=>e.appCommandReducer.commandInputParams,getCommandInputParamValue:(e,t)=>e.appCommandReducer.commandInputValues[t.name]??"",getCommandInputParamValues:e=>e.appCommandReducer.commandInputValues,getCommandInputErrors:e=>e.appCommandReducer.commandInputErrors,getCommandInputParamError:(e,t)=>e.appCommandReducer.commandInputErrors[t.name]||null},a={getBots:e=>e.botsReducer.bots};var l=n(34059),c=n(27498);const E=e=>e.teamReducer.teams,u=(0,o.P1)(c.Z.getUserChat,(e=>e.teamId)),h={getTeams:E,getTeam:(0,o.P1)(u,E,((e,t)=>t.get(e??"")))};var d=n(80577),_=n(86548);const p=e=>e.channelOperationReducer.channelOperations,m=(0,o.P1)(p,(e=>Array.from(e.values()).find((e=>e.defaultOperation))??new l.Z)),S=(0,o.P1)(p,(e=>e.size>1)),g=(0,o.P1)(p,(e=>1===e.size)),T=(0,o.P1)(p,(e=>!e.size)),C=(0,o.P1)(h.getTeam,(e=>null==e?void 0:e.channelOperationId)),R=(0,o.P1)(C,p,m,((e,t,n)=>t.get(e??"")??n)),f={getOperations:p,getChannelHolidays:(0,o.P1)(R,(e=>function(e,t){const n=e.map((e=>e.date));return t&&n.unshift((0,_.jy)(d.Z.getDate())),n.reduce(((e,t)=>{const n=e[e.length-1]??[];if(0===n.length)return e.push([t]),e;const o=(0,_.p1)(t),r=(0,_.p1)(n[n.length-1]);return 1===(0,_.I)(o,r)?n.push(t):e.push([t]),e}),[])}(e.holidays,e.todayHoliday).map((e=>({startDate:e[0],endDate:e.length>1?e[e.length-1]:void 0}))))),isMultiOperation:S,isSingleOperation:g,isOperationEmpty:T,getChannelOperation:R};var A=n(74274),I=n(9694);const v=e=>e.userReducer.user.mainChatId,y=(0,o.P1)(v,(e=>e.userChatsReducer.userChats),((e,t)=>t.get(e)??new I.Z)),U={getMainChatId:v,getMainChat:y,hasMainChat:(0,o.P1)(y,(e=>!(null==e||!e.id)))},Z=e=>e.channelReducer.channel.disableNewChatButton,O={getChannel:e=>e.channelReducer.channel,getChannelId:e=>e.channelReducer.channel.id,showOperatorProfile:e=>e.channelReducer.channel.showOperatorProfile,getSystemDomain:e=>e.channelReducer.channel.systemDomain||e.channelReducer.minimumChannelInfo.systemDomain,disableNewChatButton:Z,disableNewChat:(0,o.P1)(Z,U.hasMainChat,((e,t)=>e&&t))};var b=n(90407);const N=e=>e.sessionsReducer.sessions,w=(0,o.P1)(N,((e,t)=>t),((e,t)=>e.get(t)??new b.Z)),L=(0,o.P1)(w,(e=>e.alert)),M=(0,o.P1)(w,(e=>e.unread)),P={getSessions:N,getSessionById:w,getSessionAlert:L,getSessionUnread:M,getShowSessionBadge:(0,o.P1)(L,M,((e,t)=>!(!e&&!t))),isEmptySession:(0,o.P1)(w,(e=>e.isEmpty()))},D=(0,o.P1)((e=>e.userChatsReducer.userChats),(e=>e.values())),k=(0,o.P1)((e=>e.userChatsReducer.unreadUserChats),(e=>e.values())),x=(0,o.P1)(D,P.getSessions,((e,t)=>e.filter((e=>e.frontMessageId)).filter((e=>{const n=t.get(e.id);return n&&!n.isEmpty()})).sort(((e,t)=>t.frontUpdatedAt-e.frontUpdatedAt)))),H={sessionUserChats:x,sessionUnreadUserChats:(0,o.P1)(((e,t)=>t),k,P.getSessions,U.getMainChatId,((e,t,n,o)=>t.filter((e=>e.frontMessageId)).filter((e=>{const t=n.get(e.id);return t&&!t.isEmpty()})).filter((e=>e.id!==o)).filter((t=>e-t.frontUpdatedAt<30*_.s2)).filter((e=>{var t;return(null===(t=n.get(e.id))||void 0===t?void 0:t.unread)??0})).sort(((e,t)=>t.frontUpdatedAt-e.frontUpdatedAt)))),sessionUserChatsCount:(0,o.P1)(x,(e=>e.length)),totalUnreadMessageCount:e=>e.userReducer.user.unread};var G=n(67506),B=n(80183);const Q=e=>e.workflowReducer.commonWorkflow,W=e=>e.workflowReducer.commonWorkflowStep,F=e=>e.workflowReducer.isCommonWorkflowUsingAlf,z=e=>e.workflowReducer.specificWorkflowStep,V=(0,o.P1)(Q,(e=>e.workflowReducer.specificWorkflow),((e,t)=>t.isEmpty()?e:t)),j=(0,o.P1)(W,z,((e,t)=>t.isEmpty()?e:t)),$=(0,o.P1)((e=>e.workflowReducer.commonWorkflowBotName),(e=>e.workflowReducer.specificWorkflowBotName),((e,t)=>t||e)),K={getCommonWorkflow:Q,isCommonWorkflowUsingAlf:F,getCommonWorkflowStep:W,getProperBotProfile:(0,o.P1)(A.Z.channelDefaultBotProfile,$,a.getBots,((e,t,n)=>Object.values(n).find((e=>e.name===t))??e)),getSpecificWorkflowStep:z,getWorkflow:V,getWorkflowStep:j,isWorkflowUsingAlf:(0,o.P1)(F,(e=>e.workflowReducer.isSpecificWorkflowUsingAlf),((e,t)=>t||e))};var q;!function(e){e.ACTIVE="active",e.DISABLED="disabled"}(q||(q={}));const X=q;var Y=n(29823);const J=(0,o.P1)(f.getChannelOperation,(e=>e.uiReducer.tutorialMode),((e,t)=>e.inOperation||t)),ee=(0,o.P1)(f.getChannelOperation,(e=>e.operationTimeScheduling)),te=(0,o.P1)(f.getChannelOperation,(e=>e.nextOperatingAt)),ne=(0,o.P1)(f.getChannelOperation,(e=>e.expectedResponseDelay)),oe=(0,o.P1)(f.getChannelOperation,(e=>e.operationTimeRanges)),re=(0,o.P1)(f.getChannelOperation,(e=>e.awayOption===X.ACTIVE)),ie=(0,o.P1)(ne,(e=>e===Y.D.DELAYED)),se=(0,o.P1)(J,re,((e,t)=>e||t)),ae=(0,o.P1)(se,K.getWorkflow,f.isSingleOperation,((e,t,n)=>e||!t.isEmpty()||!n)),le=(0,o.P1)(c.Z.getUserChat,f.getChannelOperation,((e,t)=>e.closedAt+(t.blockReplyingAfterClosedTime?(0,G.Z)(t.blockReplyingAfterClosedTime):0))),ce=(0,o.P1)(c.Z.getUserChat,f.isOperationEmpty,f.isMultiOperation,((e,t,n)=>!(t||n&&null!==e.handling&&e.handling.type!==B.$.Alf&&e.handling.type!==B.$.FollowUpMandatory))),Ee={isInOperation:J,isOperationTimeScheduling:ee,nextOperatingAt:te,expectedResponseDelay:ne,isResponseDelayed:ie,isNewManagedChatAvailable:se,isNewChatAvailable:ae,operationTimeRanges:oe,isAwayActive:re,blockReplyingTime:le,shouldShowOperatingDescription:ce};var ue=n(80672);const he=e=>e.chatroomInputReducer.isBlockReplying,de=(0,o.P1)(Ee.isNewManagedChatAvailable,c.Z.getUserChat,he,c.Z.isUserChatAlf,c.Z.isUserChatCollectingUserReply,((e,t,n,o,r)=>t.shouldHideMessengerInput?ue.Z.NONE:t.isWaitingToStartChat?ue.Z.CHAT_BOT_BUTTON:o||r?ue.Z.CHATROOM_INPUT:t.hasState()?n?ue.Z.BLOCK_AFTER_CLOSED:ue.Z.CHATROOM_INPUT:e?ue.Z.CHATROOM_INPUT:ue.Z.DISABLED_NOTICE)),_e={isBlockReplying:he,footerType:de,inputValue:e=>e.chatroomInputReducer.inputValue};var pe=n(50022);const me={enableChxUserChatBinding:e=>e.uiReducer.enableChxUserChatBinding,isAlreadyLinked:(0,o.P1)(c.Z.getUserChat,(e=>!(0,pe.kK)(e.xerId)))},Se=(0,o.P1)((e=>e.fileUploadReducer.fileChunkMap),(e=>Array.from(e.values()))),ge={getFileChunks:Se,getCurrentFileChunks:(0,o.P1)(Se,c.Z.getCurrentUserChatId,((e,t)=>e.filter((e=>e.userChatId===t)).slice().sort(((e,t)=>e.hasError&&!t.hasError?-1:!e.hasError&&t.hasError?1:0))))};var Te=n(28298),Ce=n(95913);const Re=e=>e.followupSchemaReducer.followupSchemaList,fe=(0,o.P1)(Re,(e=>e.find((e=>e.key===Ce.p.MOBILE_NUMBER)))),Ae=(0,o.P1)(Re,(e=>e.find((e=>e.key===Ce.p.EMAIL)))),Ie={getFollowupSchemaList:Re,getMobileSchema:fe,getEmailSchema:Ae,getNameSchema:(0,o.P1)(Re,(e=>e.find((e=>e.key===Ce.p.NAME)))),canEditContact:(0,o.P1)(fe,Ae,Te.Z.getUser,((e,t,n)=>!(!e||n.isQualified(e))||!(!t||n.isQualified(t))))},ve=e=>e.errorReducer.hasConstraintError,ye=e=>e.errorReducer.hasInvalidAccessError,Ue=e=>e.errorReducer.hasNetworkError,Ze=e=>e.errorReducer.hasSessionJWTInvalidError,Oe=e=>e.errorReducer.hasUnavailableServiceError,be=e=>e.errorReducer.hasUnclassifiedError,Ne={hasConstraintError:ve,hasInvalidAccessError:ye,hasNetworkError:Ue,hasSessionJWTInvalidError:Ze,hasUnavailableServiceError:Oe,hasUnclassifiedError:be,hasAPIError:(0,o.P1)(ve,ye,Ue,Ze,Oe,be,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some(Boolean)}))};var we=n(49038),Le=n(94109);const Me=e=>e.i18nReducer.availableLanguages,Pe=(0,o.P1)(Me,((e,t)=>t),((e,t)=>{var n;return(null===(n=e.find((e=>e.code===t)))||void 0===n?void 0:n.localizedName)??null})),De=(0,o.P1)(Me,(e=>e.filter((e=>(0,we.Dn)(e.code))).sort(((e,t)=>(0,we.Dn)(e.code)&&(0,we.Dn)(t.code)?we.iV.indexOf(e.code)-we.iV.indexOf(t.code):0)))),ke=(0,o.P1)(Me,(e=>e.filter((e=>!(0,we.Dn)(e.code))).sort(((e,t)=>e.code===(0,Le.v0)()?-1:t.code===(0,Le.v0)()?1:e.name<t.name?-1:e.name>t.name?1:0)))),xe=(0,o.P1)(Me,Te.Z.getUser,((e,t)=>{const n=e.find((e=>e.code===t.language));return(0,pe.kK)(n)?e.find((e=>e.code===t.systemLanguage)):n})),He=e=>e.i18nReducer.countries,Ge=(0,o.P1)(He,Te.Z.getCountry,((e,t)=>{const n=e.findIndex((e=>e.code===t)),o=e.filter((e=>e.code!==t));return-1===n?o:[e[n],...o]})),Be={getAvailableLanguages:Me,getAllTranslatableLanguages:De,getMessageTranslatableLanguages:ke,getCurrentLanguage:xe,getCountries:He,getCountriesByUser:Ge,getCountriesByQuery:(0,o.P1)(Ge,((e,t)=>t),((e,t)=>e.filter((e=>e.code.toLocaleLowerCase().includes(t.toLowerCase())||e.name.toLocaleLowerCase().includes(t.toLowerCase())||e.callingCode.toString().toLocaleLowerCase().includes(t.toLowerCase()))))),getLanguageNameByCode:Pe},Qe=e=>Object.values(e.appMessengerReducer.appMessengers),We=(0,o.P1)(U.hasMainChat,Ee.isNewManagedChatAvailable,(e=>e.channelReducer.channel.hideAppMessenger),Qe,A.Z.channelPhoneNumber,f.isMultiOperation,((e,t,n,o,r,i)=>!e&&(i||t)&&!n&&(o.length>0||!!r))),Fe={getAppMessengers:Qe,getDeepLinkUris:e=>e.appMessengerReducer.deeplinkUris,shouldShowIntegrationCard:We};var ze=n(81577),Ve=n(47901),je=n(73832),$e=n(24122);const Ke=(0,o.P1)((e=>e.pluginReducer.plugin),(e=>e)),qe={isBooted:e=>e.pluginReducer.isBooted,getPlugin:Ke,getPluginMargin:(0,o.P1)(Ke,(e=>e.getMargin())),customImageUrl:e=>e.pluginReducer.plugin.customImageUrl,buttonType:e=>e.pluginReducer.plugin.buttonType,iconButton:e=>e.pluginReducer.plugin.iconButton,showIconButton:(0,o.P1)(Ke,(e=>e.buttonType===$e.B.IconButton||e.buttonType===$e.B.Legacy&&!e.legacyImageUrl))};var Xe=n(78882),Ye=n(59544),Je=n(88513),et=n(82667);const tt=e=>e.uiReducer.showMessenger,nt=e=>e.uiReducer.visibilityState,ot={showChannelButton:e=>e.uiReducer.showChannelButton,showMessenger:tt,getTypingPersons:(0,o.P1)((e=>e.managersReducer.managers),(e=>e.botsReducer.bots),(e=>e.uiReducer.typingManagers),c.Z.getCurrentUserChatId,((e,t,n,o)=>Array.from(n.values()).filter((e=>{let{chatId:t}=e;return t===o})).map((n=>{const o=n.personId;switch(n.personType){case Xe.Z.Manager:return e[o]??new je.Z;case Xe.Z.Bot:return t[o]??new Ve.Z;default:return new Ve.Z}})))),getTranslationVisibility:e=>e.uiReducer.translationVisibility,getNotificationSoundMode:e=>e.uiReducer.notificationSoundMode,getcurrentTabId:e=>e.uiReducer.currentTabId,getVisibilityState:nt,isMessengerVisible:(0,o.P1)(tt,nt,((e,t)=>e&&t===Ye.Z.VISIBLE)),getAppearance:e=>(0,Le.$W)()?Je.u.LIGHT:e.uiReducer.appearance??e.pluginReducer.plugin.appearance,isKeyboardOpen:e=>e.uiReducer.isKeyboardOpen,getKeyboardHeight:e=>e.uiReducer.keyboardHeight,isAlfBannerCollapsed:(e,t)=>e.uiReducer.collapseAlfBanner.has(t),getMessengerSizeType:e=>e.uiReducer.messengerSizeType,getMessengerEdgeSize:(0,o.P1)(qe.getPluginMargin,(e=>{let{marginY:t,marginX:n}=e;return{width:n+20,height:t+et.HN+et.P8+20}}))};var rt=n(44873);const it=e=>e.meetReducer.liveMeet,st=(0,o.P1)(it,(e=>e.id)),at=(0,o.P1)(it,(e=>e.chatId)),lt=(0,o.P1)(it,(e=>e.mode===rt.Z.AUDIO)),ct=(0,o.P1)(it,(e=>e.front)),Et=(0,o.P1)(ct,(e=>null==e?void 0:e.direction)),ut=(0,o.P1)(it,(e=>!e.isEmpty)),ht=(0,o.P1)(it,(e=>null==e?void 0:e.mode)),dt=(0,o.P1)(ct,(e=>null==e?void 0:e.engagedAt)),_t=e=>e.meetReducer.meetRing,pt=(0,o.P1)(_t,(e=>null==e?void 0:e.meetId)),mt=(0,o.P1)(_t,(e=>null==e?void 0:e.titleAvatarUrl)),St=(0,o.P1)(_t,(e=>!(0,pe.kK)(e))),gt=(0,o.P1)(St,ot.showMessenger,((e,t)=>e&&!t)),Tt={liveMeet:it,getLiveMeetId:st,getLiveMeetChatId:at,isAudioMode:lt,getHasLiveMeet:ut,getDirection:Et,getMode:ht,getEngagedAt:dt,getMeetRing:_t,getRingMeetId:pt,getRingAvatarUrl:mt,hasRing:St,showRingPopup:gt,isFrontMeetEnabled:e=>e.meetReducer.enableFrontMeet},Ct=(0,o.P1)((e=>e.messagesReducer.messages),(e=>e.values().sort(((e,t)=>e.isSending()!==t.isSending()?e.isSending()?1:-1:e.createdAt-t.createdAt)))),Rt=(0,o.P1)(Ct,(e=>e.slice(-1)[0])),ft=(0,o.P1)(Ct,(e=>e.filter((e=>e.files.some((e=>e.isImageFile())))))),At=(0,o.P1)((e=>e.managersReducer.managers),(e=>e.botsReducer.bots),(e=>e.userReducer.user),((e,t)=>t),((e,t,n)=>n),((e,t,n,o,r)=>{switch(o){case Xe.Z.Manager:return e[r]??new je.Z;case Xe.Z.Bot:return t[r]??new Ve.Z;default:return n}})),It=(0,o.P1)(At,(e=>e.isEmpty())),vt={getMessages:Ct,getLastMessage:Rt,getImageMessages:ft,getNext:e=>e.messagesReducer.next,getMessageAuthor:At,getMessageAuthorAvatarUrl:(0,o.P1)(At,(e=>e.avatarUrl)),getMessageAuthorName:(0,o.P1)(At,Te.Z.getLanguage,((e,t)=>e.getName(t))),isMessageAuthorEmpty:It,isMessageAuthorAi:(0,o.P1)(At,(e=>"ai"in e&&e.ai)),getLanguageConversionMessageId:e=>e.messagesReducer.languageConversionMessageId};var yt=n(76438),Ut=n(14906),Zt=n(16758),Ot=n(23414),bt=n(37264);const Nt=e=>e.popupReducer.userChat,wt=e=>e.popupReducer.message,Lt=(0,o.P1)(wt,(e=>!e.isEmpty())),Mt=e=>(e=>e.files.some((e=>e.isPreviewable())))(e)||(e=>{var t;return e.hasWebPage()&&!(0,pe.kK)(null===(t=e.webPage)||void 0===t?void 0:t.getPreviewThumbUrl())})(e),Pt=e=>e.hasBlocks()||!Mt(e)&&(e.hasFile()||e.hasWebPage())||!!e.meet,Dt=(0,o.P1)(wt,(e=>Mt(e))),kt=(0,o.P1)(wt,(e=>e.files.find((e=>e.type===Zt.Z.Video&&(0,Ot.ND)(e.contentType))))),xt=e=>e.popupReducer.message.hasButton,Ht=(0,o.P1)(wt,(e=>Pt(e))),Gt=(0,o.P1)(wt,xt,((e,t)=>Mt(e)||Pt(e)||t)),Bt=(0,o.P1)(wt,(e=>!!e.marketing&&e.marketing.exposureType===Ut.O.FullScreen)),Qt=(0,o.P1)(wt,(e=>e.form)),Wt=(0,o.P1)(wt,(e=>{var t;return null===(t=e.form)||void 0===t?void 0:t.isCustomForm()})),Ft=(0,o.P1)(wt,(e=>{var t,n,o;return(null===(t=e.form)||void 0===t||null===(n=t.inputs)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.label)??""})),zt=(0,o.P1)(wt,(e=>{var t,n;return(null===(t=e.form)||void 0===t||null===(n=t.inputs)||void 0===n?void 0:n.length)??0})),Vt=(0,o.P1)(wt,(e=>e.files)),jt=(0,o.P1)(Nt,(e=>e.frontUpdatedAt)),$t=(0,o.P1)(Nt,(e=>e.id)),Kt=(0,o.P1)((e=>e.popupReducer.popupType),Tt.hasRing,((e,t)=>t?bt.kQ.MeetRing:e)),qt=(0,o.P1)((e=>e.uiReducer.showMessenger),(e=>e.popupReducer.active),Kt,((e,t,n)=>!e&&(n===bt.kQ.MeetRing||(!yt.Z.getHidePopup()||n===bt.kQ.LabelButton)&&t))),Xt=(0,o.P1)(Kt,qt,((e,t)=>e===bt.kQ.LabelButton&&t)),Yt=(0,o.P1)(wt,(e=>e.id)),Jt={getPopupMessage:wt,getBubbleInteracting:e=>e.popupReducer.isBubbleInteracting,getAlertLevel:e=>e.popupReducer.alertLevel,hasPopupMessage:Lt,hasPreview:Dt,hasVideoPreview:kt,hasLinkButton:xt,hasTextContents:Ht,hasContent:Gt,isFullscreen:Bt,isFullscreenPopupActive:(0,o.P1)(Bt,qt,((e,t)=>e&&t)),getForm:Qt,getFiles:Vt,popupUpdatedAt:jt,popupUserChatId:$t,showPopup:qt,hasCustomForm:Wt,getFormTitle:Ft,getFormInputCount:zt,popupType:Kt,showLabelBtn:Xt,curPopupMsgId:Yt},en={getTranslationById:(0,o.P1)((e=>e.translationsReducer.translations),((e,t)=>t),((e,t)=>e.get(t)))},tn=(0,o.P1)((e=>e.wamModalReducer.instances),(e=>e)),nn={getWamModalInstances:tn,isWamModalOpened:(0,o.P1)(tn,(e=>e.length>0))};var on=n(37949);const rn=(0,o.P1)(Te.Z.getLanguage,(e=>e.channelReducer.channel.welcomeMessage),(e=>e.channelReducer.channel.welcomeMessageI18nMap),((e,t,n)=>n[e]||t)),sn={getGreetingMessage:rn,getWelcomeMessage:(0,o.P1)(rn,K.getWorkflowStep,((e,t)=>t.isEmpty()?new on.Z(e):new on.Z(t.message)))},an={appCommandSelectors:s,channelSelectors:O,channelOperationSelectors:f,pluginSelectors:qe,followupSchemaSelector:Ie,errorSelectors:Ne,userSelectors:Te.Z,uiSelectors:ot,userChatsSelectors:c.Z,messagesSelectors:vt,botsSelectors:a,managersSelectors:ze.Z,meetSelectors:Tt,mainChatSelectors:U,popupSelectors:Jt,toastSelectors:{showOfflineToast:e=>e.toastReducer.showOfflineToast,showToast:e=>e.toastReducer.showToast,id:e=>e.toastReducer.id,message:e=>e.toastReducer.message,icon:e=>e.toastReducer.icon},socketSelectors:{getSocketStatus:e=>e.socketReducer.socketStatus},fileUploadSelectors:ge,loungeMediaSelectors:{getLoungeMediaTypes:e=>e.loungeMediaReducer.loungeMediaTypes,getAppInstagramPosts:e=>e.loungeMediaReducer.appInstagramPosts,isAppInstagramPostsEmpty:e=>0===e.loungeMediaReducer.appInstagramPosts.length},modalSelectors:{isOpened:e=>e.modalReducer.isOpened,content:e=>e.modalReducer.content,container:e=>e.modalReducer.container},chatroomInputSelectors:_e,translationsSelectors:en,sessionsSelectors:P,i18nSelectors:Be,chatOperationSelectors:Ee,appMessengerSelectors:Fe,whiteLabelSelectors:{shouldShowPoweredBy:e=>!e.uiReducer.whiteLabelFeature},welcomeMessageSelectors:sn,channelProfileSelectors:A.Z,chatListSelectors:H,idleDetectorSelector:{getIsIdle:e=>e.idleDetectorReducer.isIdle},chxChatSelectors:me,wamModalSelectors:nn,workflowSelectors:K,appWidgetInstallationSelectors:{getAppWidgetInstallations:e=>e.appWidgetInstallationReducer.appWidgetInstallations},initializeSelectors:{shouldInitializeHome:e=>e.initializeReducer.shouldInitializeHome,shouldInitializeUserChatList:e=>e.initializeReducer.shouldInitializeUserChatList,shouldGetHome:e=>e.initializeReducer.shouldGetHome,shouldGetChannelOperations:e=>e.initializeReducer.shouldGetChannelOperations,shouldGetDocumentWebsiteResources:e=>e.initializeReducer.shouldGetDocumentWebsiteResources},documentSelectors:{getDocumentWebsiteResources:e=>e.documentReducer.documentWebsiteResources}}},39620:(e,t,n)=>{"use strict";n.d(t,{IH:()=>T,Wn:()=>p,jo:()=>m,jp:()=>S,zs:()=>g});var o=n(79591),r=n(13760),i=n(18934),s=n(97390),a=n(64774),l=n(10578),c=n(20983),E=n(65315),u=n(6989),h=n(86385),d=n(84555),_=n(28023);function p(e,t,n){return{create:()=>function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=new r.t(1);return{type:e,payload:o,subject:s,meta:{loading:i.loading??!0,error:i.error??!0},lifeCycle:{getSuccessAction:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:t,payload:e,meta:n,subject:s}},getErrorAction:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:n,payload:e,meta:t,subject:s}},getCompleteAction:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:`${e}_COMPLETE`,payload:t,subject:s}}}}}}}function m(e){return{create:()=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:e,payload:t}}}}function S(e){return(t,n)=>(0,i.D)(n).pipe((0,c.z)((e=>(0,s.of)(t.lifeCycle.getSuccessAction(e),t.lifeCycle.getCompleteAction()))),(0,E.K)((e=>(0,s.of)(t.lifeCycle.getErrorAction(e)))),(0,u.R)(e.pipe((0,o.l)(d.Z.SHUTDOWN))))}const g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4;const t=[],n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";return(0,_.w6)(e).forEach((()=>{t.push(n[Math.floor(Math.random()*n.length)])})),t.join("")},T=(e,t,n)=>(0,a.T)((0,i.D)(n),(0,l.D)(n.filter((e=>!!e.subject)).filter((e=>e.meta.loading)).map((e=>e.meta.error?e.subject:e.subject.pipe((0,E.K)((e=>(0,s.of)(e))))))).pipe((0,h.d)([]),(0,c.z)((()=>(0,s.of)(t.lifeCycle.getSuccessAction(),t.lifeCycle.getCompleteAction()))),(0,E.K)((()=>(0,s.of)(t.lifeCycle.getErrorAction()))))).pipe((0,u.R)(e.pipe((0,o.l)(d.Z.SHUTDOWN))))},86582:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l});var o=n(80070),r=n(42972),i=n(94109);const s="ch-veil-id";class a{constructor(){(0,o.Z)(this,"token",null),(0,o.Z)(this,"tokenChannelId",null)}static getSessionKey(e){return`ch-session-${e}`}setTokenToCookie(e,t,n){const o=[`${e}=${t}`,"Max-Age=1800","Path=/","SameSite=Lax"];n&&o.push(`Domain=${n}`),document.cookie=o.join(";")}setToken(e,t,n){if(this.token=e,this.tokenChannelId=t,!e||!t)return;const o=a.getSessionKey(t);this.setTokenToCookie(o,e,n)}getCookieTokenByChannelId(e){const t=a.getSessionKey(e);return(0,i.ej)(t)}getToken(e){if(!e||e===this.tokenChannelId)return this.token;const t=this.getCookieTokenByChannelId(e);return(0,i.v)(t)?null:t}setVeilIdToCookie(e,t){const n=[`${s}=${e}`,"Max-Age=31536000","Path=/","SameSite=Lax"];t&&n.push(`Domain=${t}`),document.cookie=n.join(";")}dualizeVeilIdToLocalStorage(e){r.Z.setItem(s,e)}getDualizedVeilIdOfLocalStorage(){return r.Z.getItem(s)}setVeilId(e,t){e&&(this.setVeilIdToCookie(e,t),this.dualizeVeilIdToLocalStorage(e))}getVeilId(){const e=(0,i.ej)(s);if(!(0,i.v)(e))return e;return this.getDualizedVeilIdOfLocalStorage()||void 0}init(){this.token=null,this.tokenChannelId=null}}const l=new a},32423:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(80070),r=n(50022);const i=class{constructor(e,t){(0,o.Z)(this,"storageKey",void 0),(0,o.Z)(this,"storage",void 0),(0,o.Z)(this,"userId",void 0),(0,o.Z)(this,"debounceMap",new Map),this.storage=e,this.storageKey=t}initialize(e){var t;this.userId=e,(null===(t=this.storageItem)||void 0===t?void 0:t.userId)!==e&&(this.storageItem={userId:e,messages:{}})}get(e){var t;return(null===(t=this.storageItem)||void 0===t?void 0:t.messages[e])??null}set(e,t){var n;(0,r.kK)(this.userId)||(this.clearTimer(e),this.storageItem={userId:this.userId,messages:{...null===(n=this.storageItem)||void 0===n?void 0:n.messages,[e]:t}})}setWithDebounce(e,t){this.clearTimer(e);const n=window.setTimeout((()=>{this.set(e,t)}),200);this.debounceMap.set(e,n)}delete(e){this.set(e,void 0)}get storageItem(){return this.storage.getItem(this.storageKey)}set storageItem(e){this.storage.setItem(this.storageKey,e)}clearTimer(e){const t=this.debounceMap.get(e);(0,r.kK)(t)||(window.clearTimeout(t),this.debounceMap.delete(e))}}},60489:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var o,r=n(80070),i=n(3957),s=n(34903),a=n(33122),l=n(58078),c=n(9967);const E=new(o=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,r.Z)(this,"isStyleAdded",!1),(0,r.Z)(this,"isOpenedMobileMessenger",!1),(0,r.Z)(this,"_WebAPIService",null),Object.keys(e).forEach((t=>{(0,l.e$)(this,t)&&(this[t]=e[t])}))}disableTopBodyScroll(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=this._WebAPIService)||void 0===e?void 0:e.topmostDocument.body;this.isStyleAdded||t&&(t.classList.add(a.vZ),this.isStyleAdded=!0)}enableTopBodyScroll(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=this._WebAPIService)||void 0===e?void 0:e.topmostDocument.body;this.isStyleAdded&&t&&(t.classList.remove(a.vZ),this.reset())}reset(){this.isStyleAdded=!1,this.isOpenedMobileMessenger=!1}disableBodyScrollForMobile(){this.isOpenedMobileMessenger=!0,this.disableTopBodyScroll()}disableBodyScrollForModal(){this.isOpenedMobileMessenger||this.disableTopBodyScroll()}enableBodyScrollForMobile(){this.isOpenedMobileMessenger=!1,this.enableTopBodyScroll()}enableBodyScrollForModal(){this.isOpenedMobileMessenger||this.enableTopBodyScroll()}disableMessengerBodyScroll(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=this._WebAPIService)||void 0===e?void 0:e.currentDocument.body;null==t||t.classList.add(a.Hz)}enableMessengerBodyScroll(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=this._WebAPIService)||void 0===e?void 0:e.currentDocument.body;null==t||t.classList.remove(a.Hz)}_set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(e).forEach((t=>{(0,l.e$)(this,t)&&(this[t]=e[t])}))}},(0,i.Z)(o.prototype,"disableTopBodyScroll",[s.Z],Object.getOwnPropertyDescriptor(o.prototype,"disableTopBodyScroll"),o.prototype),(0,i.Z)(o.prototype,"enableTopBodyScroll",[s.Z],Object.getOwnPropertyDescriptor(o.prototype,"enableTopBodyScroll"),o.prototype),(0,i.Z)(o.prototype,"reset",[s.Z],Object.getOwnPropertyDescriptor(o.prototype,"reset"),o.prototype),(0,i.Z)(o.prototype,"disableBodyScrollForMobile",[s.Z],Object.getOwnPropertyDescriptor(o.prototype,"disableBodyScrollForMobile"),o.prototype),(0,i.Z)(o.prototype,"disableBodyScrollForModal",[s.Z],Object.getOwnPropertyDescriptor(o.prototype,"disableBodyScrollForModal"),o.prototype),(0,i.Z)(o.prototype,"enableBodyScrollForMobile",[s.Z],Object.getOwnPropertyDescriptor(o.prototype,"enableBodyScrollForMobile"),o.prototype),(0,i.Z)(o.prototype,"enableBodyScrollForModal",[s.Z],Object.getOwnPropertyDescriptor(o.prototype,"enableBodyScrollForModal"),o.prototype),(0,i.Z)(o.prototype,"disableMessengerBodyScroll",[s.Z],Object.getOwnPropertyDescriptor(o.prototype,"disableMessengerBodyScroll"),o.prototype),(0,i.Z)(o.prototype,"enableMessengerBodyScroll",[s.Z],Object.getOwnPropertyDescriptor(o.prototype,"enableMessengerBodyScroll"),o.prototype),(0,i.Z)(o.prototype,"_set",[s.Z],Object.getOwnPropertyDescriptor(o.prototype,"_set"),o.prototype),o)({_WebAPIService:c.Z})},42972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(51382),r=n(9967);class i extends o.Z{}const s=new i(r.Z.currentWindow.localStorage)},53212:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(51382),r=n(9967);class i extends o.Z{}const s=new i(r.Z.currentWindow.sessionStorage)},76438:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var o=n(80070),r=n(28961);const i=["id","memberId","avatarUrl","alert","profile","unsubscribeEmail","unsubscribeTexting","unread","tags","language"];var s=n(53288),a=n(88513),l=n(27224),c=n(94109),E=n(58078),u=n(50022),h=n(9967);const{isMobile:d}=r.Z,_=new class{constructor(e){(0,o.Z)(this,"settings",{}),(0,o.Z)(this,"customPage",void 0),(0,o.Z)(this,"hasCustomPage",!1),this.setSettings(e||h.Z.topmostWindow.channelPluginSettings)}setSettings(e){this.settings=(0,E.Xh)(e)}clearSettings(){this.settings={}}getPluginKey(){return this.settings.pluginId??this.settings.plugin_id??this.settings.pluginKey??""}getCallbackUser(e){var t;return{...(0,E.ei)(e,i),name:null===(t=e.profile)||void 0===t?void 0:t.name}}getProfile(){return this.settings&&(this.settings.profile||this.getProfileLegacy())||{}}getReferrerProfile(){const e=h.Z.parentWindow.document.referrer;return!e||(0,c.A4)(e)?{}:{[s.h]:e}}getUtmProfile(){if(!this.getTrackUtmSource())return{};const e=h.Z.parentWindow.location.search;return(0,c.Um)(e)}getProfileLegacy(){const{user:e={}}=this.settings,t={...null==e?void 0:e.meta};return["name","mobileNumber","avatarUrl"].forEach((n=>{e&&e[n]&&(t[n]=e[n])})),t}getMemberId(){var e;return this.settings.memberId||this.settings.userId||(null===(e=this.settings.user)||void 0===e?void 0:e.id)||void 0}getMemberHash(){if(this.settings)return(0,u.HD)(this.settings.memberHash)&&!(0,u.xb)(this.settings.memberHash)?this.settings.memberHash:void 0}getLegacyUnsubscribed(){if(this.settings)return(0,u.jn)(this.settings.unsubscribed)?this.settings.unsubscribed:void 0}getUnsubscribeEmail(){if(this.settings)return(0,u.jn)(this.settings.unsubscribeEmail)?this.settings.unsubscribeEmail:this.getLegacyUnsubscribed()}getUnsubscribeTexting(){if(this.settings)return(0,u.jn)(this.settings.unsubscribeTexting)?this.settings.unsubscribeTexting:this.getLegacyUnsubscribed()}getHideChannelButtonOnBoot(){if(!this.settings)return;const e=this.settings.hideChannelButtonOnBoot??this.settings.hideDefaultLauncher??this.settings.hide_default_launcher??this.settings.hideDefaultPluginButton;return(0,u.jn)(e)?e:void 0}getAppearanceOption(){return(0,a.$)(this.settings.appearance)?this.settings.appearance:null}getBootOption(){const e={...this.getUtmProfile(),...this.getReferrerProfile()},t={...e,...this.getProfile()},n=e;return{profile:(0,u.xb)(t)?void 0:t,profileOnce:(0,u.xb)(n)?void 0:n,memberId:this.getMemberId(),memberHash:this.getMemberHash(),unsubscribeEmail:this.getUnsubscribeEmail(),unsubscribeTexting:this.getUnsubscribeTexting(),memberHashProvider:this.getMemberHashProvider(),scriptPlatform:this.getScriptPlatform(),scriptProvider:this.getScriptProvider(),scriptVersion:this.getScriptVersion()}}getScriptPlatform(){if((0,u.HD)(this.settings.scriptPlatform))return this.settings.scriptPlatform}getScriptProvider(){if((0,u.HD)(this.settings.scriptProvider))return this.settings.scriptProvider}getScriptVersion(){if((0,u.HD)(this.settings.scriptVersion))return this.settings.scriptVersion}getCustomLauncherSelector(){return this.settings.customLauncherSelector||this.settings.custom_launcher_selector||!1}getTrackDefaultEvent(){return(0,u.jn)(this.settings.trackDefaultEvent)?this.settings.trackDefaultEvent:!(0,u.jn)(this.settings.enabledTrackDefaultEvent)||this.settings.enabledTrackDefaultEvent}getTrackUtmSource(){return(0,u.jn)(this.settings.trackUtmSource)?this.settings.trackUtmSource:!(0,u.jn)(this.settings.enabledUtmSourceTrack)||this.settings.enabledUtmSourceTrack}hasAvailableCustomPage(){return this.hasCustomPage&&void 0!==this.customPage}setCustomPage(e){(0,u.HD)(e)?(this.customPage=e,this.hasCustomPage=!0):(0,u.kK)(e)?(this.customPage=null,this.hasCustomPage=!0):(0,l.wN)("setDefault() method only can be invoked with string, null or undefined.")}resetCustomPage(){this.customPage=void 0,this.hasCustomPage=!1}getCustomPage(){return this.hasAvailableCustomPage()?this.customPage:void 0}setUserChatProfile(e){(0,u.PO)(e)?this.settings.userChatProfile=JSON.parse(JSON.stringify(e)):(0,l.wN)("setUserChatProfile() method only can be invoked with object.")}getUserChatProfile(){return this.settings.userChatProfile}resetUserChatProfile(){this.settings.userChatProfile=void 0}getZIndex(){return Number.isFinite(this.settings.zIndex)?this.settings.zIndex:null}getLanguage(){var e,t;return(null===(e=this.settings)||void 0===e?void 0:e.language)||(null===(t=this.settings)||void 0===t?void 0:t.locale)||(0,c.v0)()}getMemberHashProvider(){return this.settings.memberHashProvider}isFixedDocumentMode(){return!((0,c.$W)()&&d)}getHidePopup(){return!!(0,u.jn)(this.settings.hidePopup)&&this.settings.hidePopup}}},51382:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(80070);class r{constructor(e){(0,o.Z)(this,"storage",void 0),this.storage=e}getStorage(){return this.storage}getStorageKey(e){return`Channel.${e}`}setItem(e,t){this.getStorage()&&this.getStorage().setItem(this.getStorageKey(e),JSON.stringify(t))}getItem(e){if(this.getStorage())try{const t=this.getStorage().getItem(this.getStorageKey(e));return t?JSON.parse(t):null}catch(e){return null}return null}removeItem(e){this.getStorage()&&this.getStorage().removeItem(this.getStorageKey(e))}}},11599:(e,t,n)=>{"use strict";n.d(t,{FX:()=>d,ZP:()=>_});var o=n(80070),r=n(76438),i=n(53288),s=n(35696),a=n(94109),l=n(58078),c=n(68266),E=n(50655),u=n(50022),h=n(9967);const d="new",_=new class{constructor(){(0,o.Z)(this,"params",{})}parse(){(0,a.$W)()&&(this.params=(0,c.Q)(window.location.search))}getMessage(){var e;return(null===(e=this.params)||void 0===e?void 0:e.message)??""}unsetMessage(){const e=this.getUrlWithoutParam("message");window.history.replaceState(null,"",e),this.parse()}getUrl(){const e=h.Z.topmostWindow.location.href;return new s.Z(e).decodeValidateURI()}getUrlWithoutParam(e){const{origin:t,pathname:n,search:o}=window.location,r=(0,c.Q)(o);return delete r[e],`${t}${n}${(0,u.xb)(r)?"":`?${(0,c.P)(r)}`}`}get page(){var e;return r.Z.getCustomPage()||h.Z.canonicalUrl||(null===(e=this.params)||void 0===e?void 0:e.page)||(0,a.$W)()&&window.location.origin||this.getUrl()}getToken(){var e;return(null===(e=this.params)||void 0===e?void 0:e.sessionJWT)??null}getUtmParams(){return i.q.reduce(((e,t)=>((0,l.e$)(this.params,t)&&this.params[t]&&(e[(0,E.eV)(t)]=this.params[t]),e)),{})}_set(e){this.params=e}get isFollowUpLink(){return(0,a.$W)()&&"followup"===this.getUtmParams().utmSource}}},24821:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(32423),r=n(48384),i=n(53212);class s extends o.Z{constructor(e){super(e,r.Z.DRAFT_COMMAND)}}const a=new s(i.Z)},2685:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(80070),r=n(48156),i=n(53212),s=n(48384),a=n(58078),l=n(50022);const c=new class{constructor(){(0,o.Z)(this,"debounceMap",new Map),(0,o.Z)(this,"id",(0,r.Z)())}setDraftFormStorage(e,t){const n=i.Z.getItem(s.Z.DRAFT_FORM),o=(()=>(null==n?void 0:n.id)===this.id?{...n.forms,[e]:t}:{[e]:t})();i.Z.setItem(s.Z.DRAFT_FORM,{id:this.id,forms:o})}get(e){const t=i.Z.getItem(s.Z.DRAFT_FORM);return null==t?void 0:t.forms[e]}set(e,t){const n=this.debounceMap.get(e);(0,l.kK)(n)||window.clearTimeout(n);const o=window.setTimeout((()=>{this.setDraftFormStorage(e,t),this.debounceMap.delete(e)}),200);this.debounceMap.set(e,o)}delete(e){const t=i.Z.getItem(s.Z.DRAFT_FORM);if((null==t?void 0:t.id)===this.id){const n=(0,a.CE)(null==t?void 0:t.forms,[e]);i.Z.setItem(s.Z.DRAFT_FORM,{id:this.id,forms:n})}}initialize(e){this.id=e;const t=i.Z.getItem(s.Z.DRAFT_FORM);(null==t?void 0:t.id)!==e&&i.Z.setItem(s.Z.DRAFT_FORM,{id:e,forms:{}})}}},52485:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(32423),r=n(48384),i=n(53212);class s extends o.Z{constructor(e){super(e,r.Z.DRAFT_MESSAGE)}}const a=new s(i.Z)},13291:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(80070),r=n(58078);const i=new class{constructor(){(0,o.Z)(this,"textAreaNode",null),(0,o.Z)(this,"shadowRootWrapper",void 0),(0,o.Z)(this,"layoutContainer",void 0)}setDOMNodes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(e).forEach((t=>{(0,r.e$)(this,t)&&(this[t]=e[t])}))}}},10201:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(80070),r=n(86380),i=n(94109),s=n(68266);const a=new class{constructor(){(0,o.Z)(this,"history",this.createPreserveQueryHistory((0,i.$W)()?r.lX:r.PP)),(0,o.Z)(this,"windowLocation",window.location)}getHistory(){return this.history}preserveQueryParameters(e){const t=(0,s.Q)(window.location.search);return e.search&&Object.assign(t,(0,s.Q)(e.search)),e.search=(0,s.P)(t),e}createPathnameObject(e){return"string"==typeof e?{pathname:e}:e}createPreserveQueryHistory(e){const t=e(),n=t.push,o=t.replace;return t.push=(e,o)=>n.apply(t,[this.preserveQueryParameters(this.createPathnameObject(e)),o]),t.replace=(e,n)=>o.apply(t,[this.preserveQueryParameters(this.createPathnameObject(e)),n]),t}}},47966:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(94109),r=n(50022),i=n(76438);const s=new class{lazyLoading(){const e=window.document.createElement("script");e.onload=()=>{var e;null===(e=window.Sentry)||void 0===e||e.onLoad((()=>{var e,t;const n=(0,o.N0)()?"App":(0,o.$W)()?"Standalone":"Not found";null===(e=window.Sentry)||void 0===e||e.init({environment:`production|${n}`,release:"14.6.1",allowUrls:[/cdn\.channel\.io/,/cdn\.ravenjs\.com/],normalizeDepth:5,ignoreErrors:["Non-Error promise rejection captured"],beforeSend(e,t){const n=null==t?void 0:t.originalException;return e.message||(e.message=(0,r.HD)(n)?n:(null==n?void 0:n.message)||(null==n?void 0:n.name)),e}}),null===(t=window.Sentry)||void 0===t||t.setTag("plugin.language",i.Z.getLanguage())}))},e.async=!0,e.crossOrigin="anonymous",e.src="https://js.sentry-cdn.com/b05367f6be924bb49e15838987b99ce6.min.js",window.document.head.appendChild(e)}captureMessage(e,t){var n;return null===(n=window.Sentry)||void 0===n?void 0:n.captureMessage(e,t)}captureException(e,t){var n;return null===(n=window.Sentry)||void 0===n?void 0:n.captureException(e,t)}captureEvent(e){var t;return null===(t=window.Sentry)||void 0===t?void 0:t.captureEvent(e)}}},80577:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(80070);const r=new class{constructor(){(0,o.Z)(this,"timeDiff",0),(0,o.Z)(this,"lastSyncedTime",0)}computeTimeDiff(e){this.lastSyncedTime=window.performance.now(),this.timeDiff=Date.now()-Date.parse(e)}getDate(){return new Date(Date.now()-this.timeDiff)}getTimezoneOffset(){return 60*this.getDate().getTimezoneOffset()*1e3}}},60885:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(80070);const r=JSON.parse('{"ch.notification.document_title":"New message from %s.","ch.chat.send":"Send","ch.message_input.placeholder":"Type your message.","ch.user_profile.locale.label":"Language","ch.out_of_work.mon":"MON","ch.out_of_work.tue":"TUE","ch.out_of_work.wed":"WED","ch.out_of_work.thu":"THU","ch.out_of_work.fri":"FRI","ch.out_of_work.sat":"SAT","ch.out_of_work.sun":"SUN","ch.unread_divider":"New Messages","ch.unknown":"Unknown","ch.chat.delete":"Delete","ch.chat.start_new_chat":"Start a new chat","ch.button_confirm":"Confirm","ch.error.description":"Please click the button below and try again","ch.chat.retry_sending_message_question":"Failed to send message.","ch.chat.menu.delete_message":"Delete this message","ch.chat.menu.delete_message.cancel":"Cancel","ch.powered_by":"Powered by <b>Channel Talk</b>","ch.toast.file_upload.exceed_max.error":"You exceeded maximum size (%s) for a file.","ch.show_translate":"See Translation","ch.undo_translate":"See Original","ch.settings.translate_message":"Show message translation","ch.common.cancel":"Cancel","ch.emoji_selector.category.frequently_used":"Frequently used","ch.emoji_selector.category.people":"People & Body","ch.emoji_selector.category.nature":"Animals & Nature","ch.emoji_selector.category.foods":"Food & Drink","ch.emoji_selector.category.places":"Travel & Places","ch.emoji_selector.category.objects":"Objects","ch.emoji_selector.category.activity":"Activities","ch.emoji_selector.category.symbols":"Symbols","ch.emoji_selector.category.flags":"Flags","ch.emoij_selector.empty_content.description":"Oops. No results found.","ch.emoji_selector.search_input.placeholder":"Search","ch.error.notfound.button":"Contact us","ch.show_working_times":"See business hours","ch.settings.save":"Save","ch.integrations.phone.tooltip":"Phone: %s","ch.message_stream.message.deleted_message":"The message has been deleted","message_stream.failed_message.retry.tooltip":"Resend","ch.file_upload.fail":"Failed","ch.file_upload.wait_count":"%s pending","ch.file.download":"Download","ch.profile_form.datetime_pick":"Select date and time","ch.userchat.reaction.modal_title":"Reactions to this message","ch.chat.message.actions.delete_message":"Delete message","ch.chat.message.actions.copy_message":"Copy text","ch.chat.message.delete_confirm.message":"Are you sure you want to delete the selected message?\\nIf you delete it, it will be deleted from all participants\' chat. This action can not be undone.","ch.instagram.open_instagram":"Open Instagram","ch.instagram.caption":"Description","ch.instagram.caption.see_more":"View More","ch.lounge.media.error":"Oops, we failed to load %s","ch.lounge.media.refresh":"Refresh","ch.lounge.media.error.instagram":"Instagram","ch.message_input.disabled.new_chat":"We apologize, but you can\'t chat for now.","ch.chat.menu.leave_chat":"Leave the Chat","ch.chat.marketing_to_chat":"Start a Chat","ch.chat.menu.leave":"Leave","ch.chat.menu.leave_chat.content":"This chat will be closed, if the chat is still ongoing, you will not receive a reply.","ch.lounge.card.integrations.title":"You can also chat here","ch.lounge.card.chat_list.unread_count":"%s Unread Messages","ch.day_of_week.mon":"Monday","ch.day_of_week.tue":"Tuesday","ch.day_of_week.wed":"Wednesday","ch.day_of_week.thu":"Thursday","ch.day_of_week.fri":"Friday","ch.day_of_week.sat":"Saturday","ch.day_of_week.sun":"Sunday","ch.channel.contact":"Contact %s","ch.profile_form.time.placholder":"Select time","ch.error.title":"Oops, something went wrong","ch.settings.subscribe.modal":"Do you want to turn off an advertisement notification?","ch.settings.subscribe.modal.next":"No","ch.settings.subscribe.modal.confirm":"Yes","ch.settings.language.translate_all":"Translation Support Available","ch.settings.language.translate_message":"Message Translation Support","ch.manager.profile":"Profile","ch.settings.chat_options":"CS Language","ch.common.close":"Close","ch.settings.subscribe_setting":"Advertisement Settings","ch.settings.subscribe.mobile":"Disable text notifications","ch.settings.subscribe.email":"Disable email notifications","ch.settings.subscribe.mobile.description":"I don’t want to receive any promotional text messages","ch.settings.subscribe.email.description":"You will not receive all useful news from email","ch.error.network.button":"Refresh","ch.message_stream.message.translate.mobile":"Tap and hold the message to translate.","ch.message_stream.message.translate.desktop":"Hover for message translation.","ch.phone_number.list.label":"Country code","ch.form.input.empty_value":"No response","ch.form.submit":"Save","ch.form.select.placeholder":"Please select","ch.form.boolean.yes":"Yes","ch.form.boolean.no":"No","ch.form.input.placeholder":"Enter details","ch.form.types.single_select":"Select one","ch.form.types.multi_select":"Select all that apply","ch.form.follow_up.description":"Enter more than 1 contact information","ch.form.select.cancel":"Clear","ch.setting.profile.title":"My contact information","ch.popup.question_count":"View %s questions","ch.popup.question":"View question","ch.profile_form.date.placeholder":"Select date","ch.form.input.number.placeholder":"Please enter a number","ch.form.input.phone_number.placeholder":"Enter details","ch.launcher.custom_alt":"%s Chat Button","ch.emoji_selector.category.emotion":"Smileys & Emotion","ch.form.follow_up.rewrite":"Edit information","ch.settings.notification_sound":"Alert sound","ch.chat.message.action_title":"Message actions","ch.chat.menu.leave_chat.title":"Do you want to leave the chat?","ch.tab_title.user_chats":"Messages","ch.tab_title.lounge":"Home","ch.tab_title.setting":"Settings","ch.relative_time.now":"Just now","ch.error.channel_unavailable.title":"You don\'t have access to this channel","ch.error.expired.title":"The link has expired","ch.error.expired.description":"Start a new userchat by clicking the button below","ch.error.invalid_access.title":"Oops, this access method is not supported","ch.error.invalid_access.description":"Start a new userchat to click the button below","ch.error.server.title":"Sorry, something went wrong","ch.error.server.description":"Please try again, or view the current status on the service status page.","ch.error.default.title":"Something went wrong","ch.working_time.always_open":"Available 24hrs","ch.working_time.out_of_office":"Away","ch.chat_list_card.button.more":"View More","ch.chat_list_card.button.all":"View all","ch.error.offline.title":"You are currently offline","ch.chat_list_card.unread_notifications":"Unread messages","ch.chat_list_card.remove_all":"Read all","ch.response_delay.fast":"Will respond immediately","ch.response_delay.few_minutes":"Will respond in minutes","ch.response_delay.delayed":"Responses delayed","ch.response_status.out_of_office":"Chatting is currently unavailable","ch.response_status.auto":"Back on %s","ch.messenger.placeholder":"Enter a message.","ch.new_chat.button":"Start a chat","ch.name":"Name","ch.contact":"Contact information","ch.integration.phone.text":"Phone","ch.integration.title":"Use another method","ch.empty_userchat.text":"Start a conversation","ch.unread.count":"%s Unread messages","ch.settings.edit_profile.description":"If you go offline mid-conversation, you can still receive notifications through the contact listed above. Please make sure you\'ve entered the correct information. ","ch.settings.edit_profile.tooltip":"To edit this information you need to change the account details. If you are not a member, please contact the support agent to request changes.","ch.relative_time.minute":"%s minutes ago","ch.relative_time.hour":"%s hours ago","ch.relative_time.day":"%s days ago","ch.operation_time":"Operational hours","ch.tomorrow":"tomorrow","ch.popup.alt_text.file":"A file has been sent.","ch.popup.alt_text.image":"An image has been sent.","ch.popup.alt_text.video":"A video has been sent","ch.popup.alt_text.files":"%s files have been sent.","ch.popup.alt_text.images":"%s images have been sent.","ch.popup.alt_text.videos":"%s videos have been sent.","ch.messenger.fold":"Clear","ch.messenger.marketing.description":"Want more information?","ch.messenger.closed":"This chat has been closed","ch.setting.success_toast":"Successfully updated","ch.response_status.away_active":"Outside business hours","ch.layout.background.contact":"Contact %s","ch.chat.message.form.question":"Form: %s","ch.chat.message.form.submitted":"Response submitted","ch.new_chat_confirm.title":"Already have an ongoing chat.","ch.new_chat_confirm.go_main_chat":"To the ongoing chat","ch.new_chat_confirm.description":"Leaving the same question multiple times may delay responses.","ch.error.unavailable.description":"Currently unavailable.","ch.common.me":"Me","ch.chx-chat.banner.integrate.description":"For real-time response notifications,\\n<b>Integrate with Channel X!</b>","ch.chx-chat.banner.integrate.button":"Connect","ch.chx-chat.banner.open.description":"This chat is already connected to Channel X.","ch.chx-chat.banner.open.button":"Open app","ch.holiday":"Holidays in 14 days","ch.meet.message.audio_meet.ended":"Closed Meet audio","ch.meet.message.audio_meet.missed":"Missed Meet audio","ch.meet.message.video_meet.ended":"Closed Meet video","ch.meet.message.video_meet.missed":"Missed Meet video","ch.meet.message_preview.invited":"Invite %s to Meet.","ch.meet.message_preview.ongoing":"Currently on Meet.","ch.meet.message_preview.ended":"Meet has closed.","ch.meet.message_preview.missed":"Unable to join Meet from %s.","ch.meet.ongoing":"On Meet","ch.meet.type.audio":"Meet Audio","ch.meet.type.video":"Meet Video","ch.meet.confirm_create.title":"Would you like to start a new Meet?","ch.meet.confirm_create.description":"You can only join one Meet at a time. Press Confirm to leave the current Meet and join another one.","ch.meet.toast.userchat_leaved":"Meet closed due to departure from the conversation.","ch.meet.toast.network_disconnected":"Meet has ended due to unstable connection. Please try again.","ch.meet.toast.no_operator":"No agents are available for Meet at this time.","ch.meet.toast.not_in_operation":"We are outside our business hours.","ch.alf.now_operating":"AI agent responds instantly","ch.alf.input_placeholder":"Ask AI agent a question","ch.alf.typing_message.one":"Wait for a moment","ch.alf.typing_message.two":"ALF is thinking","ch.alf.typing_message.three":"ALF is replying","ch.meet":"Meet","ch.command_input.placeholder.execute_with_enter":"Press Enter for immediate action","ch.command_input.placeholder.add_required_parameters":"Enter required info","ch.command_input.placeholder.add_optional_parameters":"More options","ch.command.parameter_overlay.title.optional_parameters":"Enter additional information and proceed","ch.command.parameter_overlay.title.required_parameters":"Please add required information and proceed.","ch.command_input.toast.typing_attempt":"Please press back to enter a message.","ch.command_input.parameters.type_error.string":"Invalid value. Please enter again.","ch.command_input.parameters.type_error.int":"Only integers can be entered.","ch.command_input.parameters.type_error.float":"Only numbers can be entered.","ch.command_input.parameters.type_error.bool":"Please enter either True or False.","ch.command_input.parameters.type_error.choices":"Invalid value. Please select again.","ch.command_input.parameters.type_error.required_parameter":"This field is required.","ch.command_input.parameters.type_error.empty_value":"Can\'t leave it blank. Please enter.","ch.command.action.toast.temporary_error":"Oops, something went wrong. Please try again.","ch.command_input.parameters.description.default":"Please enter.","ch.command_input.parameters.type_error":"Invalid value. Please enter again.","ch.label_button.description":"Start a chat","ch.workflow.collecting_user_replay.placeholder":"Type your message","ch.chatroom.message.reference":"Source","ch.chatroom.message.matched_faq":"Matched question","ch.chatroom.message.referenced_answer":"Referenced content","ch.chatroom.message.referenced_answer.tooltip":"AI agent responded based on data provided by %s.","ch.alf.banner.warning":"AI is based on a limited dataset, we advise you to verify important information.","ch.chatroom.message.unknown_reference":"Unknown source","ch.common.toggle.more":"See more","ch.common.toggle.less":"See less","ch.language-conversion.suggestion":"Would you like to change the language {from} to {to}?","ch.language-conversion.action":"Yes, please change it.","ch.language-conversion.complete":"The language has been changed to {to}. Please ask your question again, and we\'ll respond in the updated language.","ch.error.server.retry":"Try again","ch.error.server.status":"View the status of Channel Talk service","ch.toast.file_upload.exceed_count.error":"You can attach up to %s files at a time.","ch.common.retry":"Retry","ch.dialog.file_upload.error_actions.title":"File upload failed.\\nHow would you like to proceed?","ch.toast.file_upload.failure.error":"Some files failed to upload. Please try again or delete them and re-upload.","ch.file_upload.failed":"%s files failed to upload.","ch.file_upload.pending":"Waiting to Upload","ch.chat.send.multiple":"Send %s items","ch.common.go_back":"Go back","ch.chx-chat.popup.title":"Hang tight! The chat is experiencing some delays.","ch.chx-chat.popup.description":"Link this chat with ChannelX and receive real-time response notifications. You’ll be able to respond instantly for a seamless chat experience!","ch.chx-chat.popup.buttons.confirm":"Link now","ch.chx-chat.popup.buttons.dismiss":"Do not show for 7 days","ch-chx-cha.banner.integration.new":"Link the chat and get real-time response notifications 🚀","ch-chx-cha.banner.integration.open":"This chat is already linked with ChannelX."}'),i=JSON.parse('{"ch.notification.document_title":"%sから新しいメッセージが届きました","ch.chat.send":"送信","ch.message_input.placeholder":"メッセージを入力","ch.user_profile.locale.label":"言語","ch.out_of_work.mon":"月","ch.out_of_work.tue":"火","ch.out_of_work.wed":"水","ch.out_of_work.thu":"木","ch.out_of_work.fri":"金","ch.out_of_work.sat":"土","ch.out_of_work.sun":"日","ch.unread_divider":"新しいメッセージ","ch.unknown":"不明","ch.chat.delete":"削除","ch.chat.start_new_chat":"チャットをはじめる","ch.button_confirm":"確認","ch.error.description":"下のボタンをクリックし再試行してください","ch.chat.retry_sending_message_question":"メッセージが送信できませんでした。\\nどう致しますか?","ch.chat.menu.delete_message":"メッセージを削除","ch.chat.menu.delete_message.cancel":"キャンセル","ch.powered_by":"<b>チャネルトーク</b>を利用中","ch.toast.file_upload.exceed_max.error":"一度に送信できる容量(%s)を超えました","ch.show_translate":"翻訳を見る","ch.undo_translate":"元のテキスト","ch.settings.translate_message":"メッセージの翻訳機能","ch.common.cancel":"キャンセル","ch.emoji_selector.category.frequently_used":"よく使う絵文字","ch.emoji_selector.category.people":"人々と動作","ch.emoji_selector.category.nature":"動物と自然","ch.emoji_selector.category.foods":"食べ物と飲み物","ch.emoji_selector.category.places":"旅行と場所","ch.emoji_selector.category.objects":"物","ch.emoji_selector.category.activity":"活動","ch.emoji_selector.category.symbols":"記号","ch.emoji_selector.category.flags":"旗","ch.emoij_selector.empty_content.description":"上記の単語の検索結果がありません。","ch.emoji_selector.search_input.placeholder":"検索","ch.error.notfound.button":"お問い合わせする","ch.show_working_times":"営業時間を確認する","ch.settings.save":"保存","ch.integrations.phone.tooltip":"電話: %s","ch.message_stream.message.deleted_message":"削除されたメッセージです","message_stream.failed_message.retry.tooltip":"再送信","ch.file_upload.fail":"送信に失敗しました","ch.file_upload.wait_count":"%s件待機中","ch.file.download":"ダウンロード","ch.profile_form.datetime_pick":"日時の選択","ch.userchat.reaction.modal_title":"リアクション","ch.chat.message.actions.delete_message":"メッセージを削除","ch.chat.message.actions.copy_message":"テキストをコピー","ch.chat.message.delete_confirm.message":"本当に削除しますか?\\n削除すると、対話に参加した全メンバーの画面からも削除されます。この操作は元に戻すことはできません。","ch.instagram.open_instagram":"Instagramを開く","ch.instagram.caption":"内容を見る","ch.instagram.caption.see_more":"もっと見る","ch.lounge.media.error":"おっと、%sの読み込みに失敗しました","ch.lounge.media.refresh":"ページ更新","ch.lounge.media.error.instagram":"Instagram","ch.message_input.disabled.new_chat":"申し訳ありません。今はお問い合わせができません","ch.chat.menu.leave_chat":"このチャットから退出する","ch.chat.marketing_to_chat":"チャットをはじめる","ch.chat.menu.leave":"退出","ch.chat.menu.leave_chat.content":"チャットを退出すると、お返事できない可能性がございます","ch.lounge.card.integrations.title":"その他のお問い合わせ方法","ch.lounge.card.chat_list.unread_count":"%s件の未読メッセージ","ch.day_of_week.mon":"月曜日","ch.day_of_week.tue":"火曜日","ch.day_of_week.wed":"水曜日","ch.day_of_week.thu":"木曜日","ch.day_of_week.fri":"金曜日","ch.day_of_week.sat":"土曜日","ch.day_of_week.sun":"日曜日","ch.channel.contact":"%sにお問い合わせ","ch.profile_form.time.placholder":"時間選択","ch.error.title":"おっと、問題が発生しました","ch.settings.subscribe.modal":"マーケティング配信の受信を\\n拒否しますか?","ch.settings.subscribe.modal.next":"いいえ","ch.settings.subscribe.modal.confirm":"はい","ch.settings.language.translate_all":"全て翻訳対応","ch.settings.language.translate_message":"メッセージの翻訳対応","ch.manager.profile":"プロフィール","ch.settings.chat_options":"チャット環境設定","ch.common.close":"閉じる","ch.settings.subscribe_setting":"マーケティング配信の受信設定","ch.settings.subscribe.mobile":"SMS受信拒否","ch.settings.subscribe.email":"メール受信拒否","ch.settings.subscribe.mobile.description":"SMSでマーケティング配信を\\n受信できなくなります。","ch.settings.subscribe.email.description":"メールでマーケティング配信を\\n受信できなくなります。","ch.error.network.button":"ページ更新","ch.message_stream.message.translate.mobile":"翻訳したい場合は、メッセージを長押ししてください","ch.message_stream.message.translate.desktop":"翻訳したい場合は、メッセージの上にカーソルを合わせてください","ch.phone_number.list.label":"国番号","ch.form.input.empty_value":"回答なし","ch.form.submit":"保存","ch.form.select.placeholder":"選択してください","ch.form.boolean.yes":"はい","ch.form.boolean.no":"いいえ","ch.form.input.placeholder":"入力してください","ch.form.types.single_select":"1つのみ選択","ch.form.types.multi_select":"複数選択","ch.form.follow_up.description":"連絡先は1件以上入力してください","ch.form.select.cancel":"削除","ch.setting.profile.title":"マイプロフィール","ch.popup.question_count":"%sつの質問に答える","ch.popup.question":"質問をみる","ch.profile_form.date.placeholder":"日付選択","ch.form.input.number.placeholder":"半角数字で入力してください","ch.form.input.phone_number.placeholder":"半角数字で入力してください","ch.launcher.custom_alt":"%sチャットボタン","ch.emoji_selector.category.emotion":"スマイリーと感情","ch.form.follow_up.rewrite":"情報を修正する","ch.settings.notification_sound":"通知音","ch.chat.message.action_title":"アクション","ch.chat.menu.leave_chat.title":"チャットから退出しますか?","ch.tab_title.user_chats":"チャット","ch.tab_title.lounge":"ホーム","ch.tab_title.setting":"設定","ch.relative_time.now":"たった今","ch.error.channel_unavailable.title":"ご利用いただけないチャネルです","ch.error.expired.title":"無効なリンクです","ch.error.expired.description":"下のボタンをクリックして、新たにお問い合わせください","ch.error.invalid_access.title":"サポートしていない方法でのアクセスです","ch.error.invalid_access.description":"下のボタンをクリックして、新たにお問い合わせください","ch.error.server.title":"一時的にサービスをご利用いただけません","ch.error.server.description":"再試行するか、サービス状態をステータスページでご確認ください。","ch.error.default.title":"問題が発生しました","ch.working_time.always_open":"24時間営業","ch.working_time.out_of_office":"不在中","ch.chat_list_card.button.more":"もっと見る","ch.chat_list_card.button.all":"すべて見る","ch.error.offline.title":"ネットワークの接続が切断されました.","ch.chat_list_card.unread_notifications":"未読通知","ch.chat_list_card.remove_all":"既読にする","ch.response_delay.fast":"迅速に返信が可能です","ch.response_delay.few_minutes":"数分以内に返信が可能です","ch.response_delay.delayed":"お問い合わせが多く、返信が遅れています","ch.response_status.out_of_office":"一時的にチャットができません","ch.response_status.auto":"%sから営業","ch.messenger.placeholder":"メッセージを入力してください.","ch.new_chat.button":"チャットをはじめる","ch.name":"名前","ch.contact":"連絡先情報","ch.integration.phone.text":"電話","ch.integration.title":"その他の問い合わせ方法","ch.empty_userchat.text":"チャットをはじめましょう","ch.unread.count":"%s件の未読通知があります","ch.settings.edit_profile.description":"チャット中にオフラインになると、上記の連絡先にて返信通知を受けることができます。 連絡先を正確に記載してください。","ch.settings.edit_profile.tooltip":"情報を修正するには、サイトのアカウント情報自体を修正する必要があります。サイトの会員でない場合はチャットにてご相談ください。","ch.relative_time.minute":"%s分前","ch.relative_time.hour":"%s時間前","ch.relative_time.day":"%s日前","ch.operation_time":"営業時間","ch.tomorrow":"明日","ch.popup.alt_text.file":"ファイルを送信しました。","ch.popup.alt_text.image":"画像を送信しました。","ch.popup.alt_text.video":"動画を送信しました。","ch.popup.alt_text.files":"ファイル%s個を送信しました。","ch.popup.alt_text.images":"画像%s枚を送信しました。","ch.popup.alt_text.videos":"動画%s本を送信しました。","ch.messenger.fold":"閉じる","ch.messenger.marketing.description":"気になることはございますか?","ch.messenger.closed":"こちらのチャットは終了しました","ch.setting.success_toast":"アップデートに成功しました","ch.response_status.away_active":"営業時間外です","ch.layout.background.contact":"%sにお問い合わせ","ch.chat.message.form.question":"フォーム: %s","ch.chat.message.form.submitted":"フォームに回答が入力されました","ch.new_chat_confirm.title":"すでに進行中のチャットがあります","ch.new_chat_confirm.go_main_chat":"進行中のチャットに移動する","ch.new_chat_confirm.description":"同じ内容の問い合わせを複数送ると回答が遅くなる場合があります。","ch.error.unavailable.description":"現在お使いいただけません。","ch.common.me":"自分","ch.chx-chat.banner.integrate.description":"リアルタイムで返信通知を受け取りたいなら\\n<b>Channel Xと連携しましょう!</b>","ch.chx-chat.banner.integrate.button":"連携する","ch.chx-chat.banner.open.description":"すでにチャットとChannel Xは連携されています。","ch.chx-chat.banner.open.button":"アプリを開く","ch.holiday":"14日以内に予定されている休日","ch.meet.message.audio_meet.ended":"ボイスMeet 終了","ch.meet.message.audio_meet.missed":"ボイスMeetの不在着信","ch.meet.message.video_meet.ended":"ビデオMeet 終了","ch.meet.message.video_meet.missed":"ビデオMeetの不在着信","ch.meet.message_preview.invited":"%sさんがMeetに招待しました。","ch.meet.message_preview.ongoing":"Meet中です。","ch.meet.message_preview.ended":"Meetが終了しました。","ch.meet.message_preview.missed":"%sさんからのMeetを取れませんでした。","ch.meet.ongoing":"Meet中","ch.meet.type.audio":"ボイスMeet","ch.meet.type.video":"ビデオMeet","ch.meet.confirm_create.title":"新しいMeetを開始しますか?","ch.meet.confirm_create.description":"一度に参加できるMeetは1つのみです。現在のMeetから退出して他のMeetに参加するには、確認ボタンを押してください。","ch.meet.toast.userchat_leaved":"チャットから退出したためMeetが終了しました","ch.meet.toast.network_disconnected":"サーバーの接続が不安定なためMeetが終了しました。もう一度お試しください。","ch.meet.toast.no_operator":"現在、Meetに参加できるオペレーターがいません😢","ch.meet.toast.not_in_operation":"現在、営業時間外です😢","ch.alf.now_operating":"AIエージェントが迅速に回答します","ch.alf.input_placeholder":"AIエージェントに質問する","ch.alf.typing_message.one":"少々お待ちください","ch.alf.typing_message.two":"ALFが考え中です","ch.alf.typing_message.three":"ALFが回答中です","ch.meet":"Meet","ch.command_input.placeholder.execute_with_enter":"エンターで実行","ch.command_input.placeholder.add_required_parameters":"必須情報を入力","ch.command_input.placeholder.add_optional_parameters":"追加オプションをみる","ch.command.parameter_overlay.title.optional_parameters":"追加情報を入力後に実行してください。","ch.command.parameter_overlay.title.required_parameters":"必須情報を追加入力してから実行してください。","ch.command_input.toast.typing_attempt":"メッセージを入力したい場合は戻るボタンを押してください。","ch.command_input.parameters.type_error.string":"正しくない値が選択されています。再度選択してください。","ch.command_input.parameters.type_error.int":"定数のみ入力できます。","ch.command_input.parameters.type_error.float":"半角数字のみ入力できます。","ch.command_input.parameters.type_error.bool":"TrueとFalseのうち、どちらかを入力してください。","ch.command_input.parameters.type_error.choices":"正しくない値が選択されています。再度選択してください。","ch.command_input.parameters.type_error.required_parameter":"入力必須項目のため、必ず入力してください。","ch.command_input.parameters.type_error.empty_value":"入力してください。","ch.command.action.toast.temporary_error":"一時的に問題が発生しました。リロードしてください。","ch.command_input.parameters.description.default":"入力してください。","ch.command_input.parameters.type_error":"正しくない値が選択されています。再度選択してください。","ch.label_button.description":"チャットをはじめる","ch.workflow.collecting_user_replay.placeholder":"メッセージを入力","ch.chatroom.message.reference":"出典","ch.chatroom.message.matched_faq":"マッチングした質問項目","ch.chatroom.message.referenced_answer":"参照内容","ch.chatroom.message.referenced_answer.tooltip":"%sから提供されたデータに基づいてAIエージェントが回答しました。","ch.alf.banner.warning":"AIは限られたデータを基盤にするため、重要な情報は追加で確認することをおすすめします。","ch.chatroom.message.unknown_reference":"出典不明","ch.common.toggle.more":"もっと見る","ch.common.toggle.less":"閉じる","ch.language-conversion.suggestion":"問い合わせ言語を{from}から{to}に変更しますか?","ch.language-conversion.action":"はい、変更します。","ch.language-conversion.complete":"問い合わせの言語が{to}に変更されました。もう一度ご質問いただくと変更した言語で回答いたします。","ch.error.server.retry":"再試行する","ch.error.server.status":"チャネルトークのサービス状態を確認する","ch.toast.file_upload.exceed_count.error":"ファイルは一度に最大%s個まで添付できます。","ch.common.retry":"再試行","ch.dialog.file_upload.error_actions.title":"ファイルのアップロードに失敗しました。\\nどのように処理しますか?","ch.toast.file_upload.failure.error":"アップロードに失敗したファイルがあります。アップロードを再試行するか、削除後にもう一度お試しください。","ch.file_upload.failed":"%s個のファイルのアップロード失敗","ch.file_upload.pending":"アップロード待機中","ch.chat.send.multiple":"%s枚を送信","ch.common.go_back":"戻る","ch.chx-chat.popup.title":"返信に時間がかかっています","ch.chx-chat.popup.description":"このチャットをChannel Xと連携するとリアルタイムで返信通知が届きます。返信通知が受け取ってすぐにまたチャットでやり取りできます。","ch.chx-chat.popup.buttons.confirm":"連携する","ch.chx-chat.popup.buttons.dismiss":"7日間表示しない","ch-chx-cha.banner.integration.new":"チャットを連携してリアルタイムで返信を受ける🚀","ch-chx-cha.banner.integration.open":"すでにChannel Xと連携されたチャットです。"}'),s=JSON.parse('{"ch.notification.document_title":"%s에서 새로운 메시지가 도착했습니다.","ch.chat.send":"전송","ch.message_input.placeholder":"메시지를 입력해주세요.","ch.user_profile.locale.label":"언어","ch.out_of_work.mon":"월","ch.out_of_work.tue":"화","ch.out_of_work.wed":"수","ch.out_of_work.thu":"목","ch.out_of_work.fri":"금","ch.out_of_work.sat":"토","ch.out_of_work.sun":"일","ch.unread_divider":"새로운 메시지입니다.","ch.unknown":"알 수 없음","ch.chat.delete":"삭제","ch.chat.start_new_chat":"새 문의하기","ch.button_confirm":"확인","ch.error.description":"아래 버튼을 눌러 다시 시도해주세요","ch.chat.retry_sending_message_question":"메시지 전송에 실패했습니다.\\n어떻게 처리할까요?","ch.chat.menu.delete_message":"메시지 삭제하기","ch.chat.menu.delete_message.cancel":"취소","ch.powered_by":"<b>채널톡</b> 이용중","ch.toast.file_upload.exceed_max.error":"한 번에 전송 가능한 용량(%s)을 초과하였습니다.","ch.show_translate":"번역보기","ch.undo_translate":"원문보기","ch.settings.translate_message":"메시지 번역 표시","ch.common.cancel":"취소","ch.emoji_selector.category.frequently_used":"자주 사용함","ch.emoji_selector.category.people":"사람 및 동작","ch.emoji_selector.category.nature":"동물 및 자연","ch.emoji_selector.category.foods":"음식 및 음료","ch.emoji_selector.category.places":"여행 및 장소","ch.emoji_selector.category.objects":"사물","ch.emoji_selector.category.activity":"활동","ch.emoji_selector.category.symbols":"기호","ch.emoji_selector.category.flags":"깃발","ch.emoij_selector.empty_content.description":"위 단어에 대한 검색 결과가 없습니다","ch.emoji_selector.search_input.placeholder":"검색어를 입력해주세요","ch.error.notfound.button":"문의하러 가기","ch.show_working_times":"운영시간 보기","ch.settings.save":"저장","ch.integrations.phone.tooltip":"전화: %s","ch.message_stream.message.deleted_message":"삭제된 메시지입니다","message_stream.failed_message.retry.tooltip":"재전송","ch.file_upload.fail":"전송 실패","ch.file_upload.wait_count":"%s건 대기","ch.file.download":"다운로드","ch.profile_form.datetime_pick":"날짜 및 시간 선택","ch.userchat.reaction.modal_title":"메시지 리액션","ch.chat.message.actions.delete_message":"메시지 삭제","ch.chat.message.actions.copy_message":"텍스트 복사","ch.chat.message.delete_confirm.message":"선택하신 메시지를 삭제하시겠습니까?\\n삭제하시면 모든 대화 상대의 대화방 화면에서 삭제됩니다. 이 작업은 되돌릴 수 없습니다.","ch.instagram.open_instagram":"인스타그램 열기","ch.instagram.caption":"내용보기","ch.instagram.caption.see_more":"더보기","ch.lounge.media.error":"앗, %s 불러오는데 실패했습니다.","ch.lounge.media.refresh":"새로고침하기","ch.lounge.media.error.instagram":"인스타그램을","ch.message_input.disabled.new_chat":"죄송합니다. 지금은 새 상담이 어려워요.","ch.chat.menu.leave_chat":"상담 나가기","ch.chat.marketing_to_chat":"상담 시작하기","ch.chat.menu.leave":"나가기","ch.chat.menu.leave_chat.content":"상담이 종료되며, 아직 상담이 진행 중이라면 답변을 받기 어려워요.","ch.lounge.card.integrations.title":"다른 방법으로 상담","ch.lounge.card.chat_list.unread_count":"%s개의 안읽은 메시지","ch.day_of_week.mon":"월요일","ch.day_of_week.tue":"화요일","ch.day_of_week.wed":"수요일","ch.day_of_week.thu":"목요일","ch.day_of_week.fri":"금요일","ch.day_of_week.sat":"토요일","ch.day_of_week.sun":"일요일","ch.channel.contact":"%s에 문의하기","ch.profile_form.time.placholder":"시간 선택","ch.error.title":"앗, 문제가 발생했습니다","ch.settings.subscribe.modal":"광고 수신을 받지 않으시겠어요?","ch.settings.subscribe.modal.next":"아니요","ch.settings.subscribe.modal.confirm":"네","ch.settings.language.translate_all":"모든 번역 지원","ch.settings.language.translate_message":"메시지 번역 지원","ch.manager.profile":"프로필","ch.settings.chat_options":"상담 환경","ch.common.close":"닫기","ch.settings.subscribe_setting":"광고 수신 설정","ch.settings.subscribe.mobile":"문자 수신거부","ch.settings.subscribe.email":"이메일 수신거부","ch.settings.subscribe.mobile.description":"문자로 오는 유용한 소식을 모두 받지 못하게 됩니다.","ch.settings.subscribe.email.description":"이메일로 오는 유용한 소식을 모두 받지 못하게 됩니다.","ch.error.network.button":"새로고침","ch.message_stream.message.translate.mobile":"메시지 번역을 원하시면 메시지를 길게 누르세요.","ch.message_stream.message.translate.desktop":"메시지 번역을 원하시면 메시지에 마우스를 올리세요.","ch.phone_number.list.label":"국가 번호","ch.form.input.empty_value":"답변 없음","ch.form.submit":"저장","ch.form.select.placeholder":"선택하세요","ch.form.boolean.yes":"네","ch.form.boolean.no":"아니요","ch.form.input.placeholder":"입력하세요","ch.form.types.single_select":"단일 선택","ch.form.types.multi_select":"복수 선택","ch.form.follow_up.description":"연락처는 1개 이상 입력해주세요","ch.form.select.cancel":"지우기","ch.setting.profile.title":"내 연락처 정보","ch.popup.question_count":"%s개의 질문 보기","ch.popup.question":"질문 보기","ch.profile_form.date.placeholder":"날짜 선택","ch.form.input.number.placeholder":"숫자를 입력하세요","ch.form.input.phone_number.placeholder":"입력하세요","ch.launcher.custom_alt":"%s 상담 버튼","ch.emoji_selector.category.emotion":"스마일 및 감정","ch.form.follow_up.rewrite":"정보 수정하기","ch.settings.notification_sound":"알림음","ch.chat.message.action_title":"메시지 액션","ch.chat.menu.leave_chat.title":"상담을 나가시겠어요?","ch.tab_title.user_chats":"대화","ch.tab_title.lounge":"홈","ch.tab_title.setting":"설정","ch.relative_time.now":"방금","ch.error.channel_unavailable.title":"이용할 수 없는 채널입니다","ch.error.expired.title":"만료된 링크입니다","ch.error.expired.description":"아래 버튼을 눌러 새로 문의해주세요","ch.error.invalid_access.title":"앗, 지원하지 않는 방식의 접근이에요","ch.error.invalid_access.description":"아래 버튼을 눌러 새로 문의해주세요","ch.error.server.title":"앗, 일시적으로 서비스를 이용할 수 없어요","ch.error.server.description":"다시 시도하시거나, 서비스 상태 페이지에서 현재 상태를 확인해 주세요.","ch.error.default.title":"문제가 발생했습니다","ch.working_time.always_open":"24시간 운영해요","ch.working_time.out_of_office":"부재중","ch.chat_list_card.button.more":"더보기","ch.chat_list_card.button.all":"전체 보기","ch.error.offline.title":"네트워크 연결이 끊겼습니다","ch.chat_list_card.unread_notifications":"안 읽은 알림","ch.chat_list_card.remove_all":"모두 읽기","ch.response_delay.fast":"빠르게 답변 받으실 수 있어요","ch.response_delay.few_minutes":"몇 분 내 답변 받으실 수 있어요","ch.response_delay.delayed":"문의량이 많아 답변이 지연되고 있어요","ch.response_status.out_of_office":"한동안 새 상담이 어려워요","ch.response_status.auto":"%s부터 운영해요","ch.messenger.placeholder":"메시지를 입력하세요.","ch.new_chat.button":"문의하기","ch.name":"이름","ch.contact":"연락처 정보","ch.integration.phone.text":"전화","ch.integration.title":"다른 방법으로 문의","ch.empty_userchat.text":"대화를 시작해보세요","ch.unread.count":"%s개의 안 읽은 알림이 있어요","ch.settings.edit_profile.description":"대화를 하다 오프라인이 되시면 위 연락처로 답변 알림을 받을 수 있어요. 연락처를 정확히 기재해주세요.","ch.settings.edit_profile.tooltip":"정보를 수정하시려면 해당 서비스의 계정 정보를 수정해주세요. 회원이 아니시라면 상담원에게 채팅으로 수정을 요청해주세요.","ch.relative_time.minute":"%s분 전","ch.relative_time.hour":"%s시간 전","ch.relative_time.day":"%s일 전","ch.operation_time":"운영시간","ch.tomorrow":"내일","ch.popup.alt_text.file":"파일을 보냈습니다.","ch.popup.alt_text.image":"이미지를 보냈습니다.","ch.popup.alt_text.video":"동영상을 보냈습니다.","ch.popup.alt_text.files":"파일 %s개를 보냈습니다.","ch.popup.alt_text.images":"이미지 %s장을 보냈습니다.","ch.popup.alt_text.videos":"동영상 %s개를 보냈습니다.","ch.messenger.fold":"접기","ch.messenger.marketing.description":"내용에 관심이 있으신가요?","ch.messenger.closed":"이 상담은 종료되었어요","ch.setting.success_toast":"성공적으로 업데이트 되었습니다","ch.response_status.away_active":"운영시간이 아니에요","ch.layout.background.contact":"%s에 문의하기","ch.chat.message.form.question":"폼: %s","ch.chat.message.form.submitted":"폼 답변이 제출되었습니다","ch.new_chat_confirm.title":"이미 진행중인 문의가 있어요","ch.new_chat_confirm.go_main_chat":"진행중인 문의로 가기","ch.new_chat_confirm.description":"새 문의를 여러번 남길 경우, 오히려 답변이 늦어질 수 있으니 유의해주세요.","ch.error.unavailable.description":"지금은 사용이 어려워요","ch.common.me":"나","ch.chx-chat.banner.integrate.description":"실시간 답변 알림을 받고 싶다면\\n<b>이 상담을 채널엑스와 연동하세요!</b>","ch.chx-chat.banner.integrate.button":"연동하기","ch.chx-chat.banner.open.description":"이 상담은 이미 채널엑스와 연동되었네요. <b>앱에서 열어보세요!</b>","ch.chx-chat.banner.open.button":"앱 열기","ch.holiday":"14일 이내에 예정된 휴일","ch.meet.message.audio_meet.ended":"음성 미트 종료","ch.meet.message.audio_meet.missed":"부재중 음성 미트","ch.meet.message.video_meet.ended":"영상 미트 종료","ch.meet.message.video_meet.missed":"부재중 영상 미트","ch.meet.message_preview.invited":"%s님이 미트에 초대했어요.","ch.meet.message_preview.ongoing":"미트가 진행중이에요.","ch.meet.message_preview.ended":"미트가 종료되었어요.","ch.meet.message_preview.missed":"%s님의 미트를 받지 못했어요.","ch.meet.ongoing":"미트 중","ch.meet.type.audio":"음성 미트","ch.meet.type.video":"영상 미트","ch.meet.confirm_create.title":"새로운 미트를 시작하시겠어요?","ch.meet.confirm_create.description":"한번에 한개의 미트에만 참여할 수 있어요. 이전 미트를 나가고 다른 미트에 참여하려면 확인 버튼을 눌러주세요.","ch.meet.toast.userchat_leaved":"상담을 나가서 미트가 종료되었습니다.","ch.meet.toast.network_disconnected":"서버 연결이 불안정하여 미트가 종료되었습니다. 다시 시도해주세요.","ch.meet.toast.no_operator":"😢 지금은 미트에 참여 가능한 상담원이 없습니다.","ch.meet.toast.not_in_operation":"😢 지금은 운영 시간이 아닙니다.","ch.alf.now_operating":"AI 에이전트가 바로 답변해 드려요","ch.alf.input_placeholder":"AI 에이전트에게 질문해 주세요.","ch.alf.typing_message.one":"잠시만 기다려주세요","ch.alf.typing_message.two":"ALF가 생각 중이에요","ch.alf.typing_message.three":"ALF가 답변 중이에요","ch.meet":"미트","ch.command_input.placeholder.execute_with_enter":"엔터로 바로 실행","ch.command_input.placeholder.add_required_parameters":"필수 정보 입력","ch.command_input.placeholder.add_optional_parameters":"추가 옵션 보기","ch.command.parameter_overlay.title.optional_parameters":"추가 정보 입력 후 실행하기","ch.command.parameter_overlay.title.required_parameters":"필수 정보를 추가하고 입력 후 실행해주세요.","ch.command_input.toast.typing_attempt":"메시지를 입력하고 싶으시면 돌아가기 버튼을 눌러주세요.","ch.command_input.parameters.type_error.string":"올바르지 않은 값이에요. 다시 입력해주세요.","ch.command_input.parameters.type_error.int":"정수만 입력할 수 있어요.","ch.command_input.parameters.type_error.float":"숫자만 입력할 수 있어요.","ch.command_input.parameters.type_error.bool":"True와 False 중 하나를 입력해주세요.","ch.command_input.parameters.type_error.choices":"올바르지 않은 값이에요. 다시 선택해주세요.","ch.command_input.parameters.type_error.required_parameter":"필수 입력 사항이에요. 입력해주세요.","ch.command_input.parameters.type_error.empty_value":"비워둘 수 없어요. 입력해주세요.","ch.command.action.toast.temporary_error":"앗, 일시적으로 문제가 발생했습니다. 다시 시도해주세요.","ch.command_input.parameters.description.default":"입력해주세요.","ch.command_input.parameters.type_error":"올바르지 않은 값이에요. 다시 입력해주세요.","ch.label_button.description":"대화 시작하기","ch.workflow.collecting_user_replay.placeholder":"메시지를 보내면 상담이 이어져요.","ch.chatroom.message.reference":"출처","ch.chatroom.message.matched_faq":"매칭된 질문","ch.chatroom.message.referenced_answer":"참조 답변","ch.chatroom.message.referenced_answer.tooltip":"%s에서 제공한 데이터를 기반으로 AI 에이전트가 답변했어요.","ch.alf.banner.warning":"AI는 한정된 데이터에 기반하니, 중요한 정보는 추가 확인을 권장해요.","ch.chatroom.message.unknown_reference":"알 수 없는 출처","ch.common.toggle.more":"더 보기","ch.common.toggle.less":"접기","ch.language-conversion.suggestion":"상담 언어를 {from}에서 {to}로 변경하시겠어요?","ch.language-conversion.action":"네, 변경할게요","ch.language-conversion.complete":"상담 언어가 {to}로 변경되었어요. 다시 질문해 주시면 변경하신 언어로 답변해 드리겠습니다.","ch.error.server.retry":"다시 시도하기","ch.error.server.status":"채널톡 서비스 상태보기","ch.toast.file_upload.exceed_count.error":"파일은 한 번에 최대 %s개까지만 첨부할 수 있습니다.","ch.common.retry":"재시도","ch.dialog.file_upload.error_actions.title":"파일 업로드에 실패했습니다.\\n어떻게 처리할까요?","ch.toast.file_upload.failure.error":"업로드 실패한 파일이 있습니다. 업로드를 재시도 하거나 삭제 후 다시 시도해 주세요.","ch.file_upload.failed":"%s개 파일 업로드 실패","ch.file_upload.pending":"업로드 대기중","ch.chat.send.multiple":"%s개 전송","ch.common.go_back":"뒤로가기","ch.chx-chat.popup.title":"잠깐! 현재 상담이 지연 중입니다","ch.chx-chat.popup.description":"이 상담을 채널엑스와 연동하고 실시간 답변 알림을 받아보세요. 답변에 바로 반응할 수 있어 끊김없는 상담이 가능해져요!","ch.chx-chat.popup.buttons.confirm":"지금 바로 연동하기","ch.chx-chat.popup.buttons.dismiss":"7일 동안 보지 않기","ch-chx-cha.banner.integration.new":"상담 연동하고 실시간 답변 알림 받기 🚀","ch-chx-cha.banner.integration.open":"이미 채널엑스와 연동된 상담이에요."}'),a=new class{constructor(){(0,o.Z)(this,"locale",{ko:s,en:r,ja:i})}getTranslation(e,t){return this.locale[e][t]}getTranslateObject(e){return this.locale[e]}}},28961:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(80070),r=n(73060),i=n.n(r);const s=new class{constructor(){var e;(0,o.Z)(this,"userAgent",void 0),this.userAgent=i()((null===(e=window.navigator)||void 0===e?void 0:e.userAgent)??"")}get deviceType(){return(this.userAgent.device.type??"").toLowerCase()}get osName(){return(this.userAgent.os.name??"").toLowerCase()}get browserName(){return(this.userAgent.browser.name??"").toLowerCase()}get browserVersion(){return this.userAgent.browser.version??""}get isKakaoInAppBrowser(){return(this.userAgent.ua??"").toLowerCase().includes("kakaotalk")}get isNaverInAppBrowser(){return(this.userAgent.ua??"").toLowerCase().includes("naver")}get isLineInAppBrowser(){return(this.userAgent.ua??"").toLowerCase().includes("line")}get isInstagramInAppBrowser(){return(this.userAgent.ua??"").toLowerCase().includes("instagram")}get isFacebookInAppBrowser(){return(this.userAgent.ua??"").toLowerCase().includes("fbav")}get isEdge(){return"edge"===this.browserName}get isSamsungBrowser(){return"samsung browser"===this.browserName}get isWhale(){return"whale"===this.browserName&&!this.isNaverInAppBrowser}get isFirefox(){return"firefox"===this.browserName}get isChrome(){return"chrome"===this.browserName}get isChromeWebview(){return"chrome webview"===this.browserName}get isElectron(){return"electron"===this.browserName}get isChromium(){return"chromium"===this.browserName}get isSafari(){return this.browserName.includes("safari")}get isWindows(){return"windows"===this.osName}get isMobile(){return"mobile"===this.deviceType}get isAndroid(){return"android"===this.osName||(this.isEdge||this.isSamsungBrowser)&&"linux"===this.osName}get isAndroidPhone(){return this.isAndroid&&this.isMobile}get isAndroidTablet(){return this.isAndroid&&("tablet"===this.deviceType||""===this.deviceType)}get isAndroidTouchableDevice(){return this.isAndroidPhone||this.isAndroidTablet}get isIPhone(){return"ios"===this.osName&&this.isMobile}get isIPad(){return("iPad"===navigator.platform||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream}get isAppleTouchableDevice(){return this.isIPhone||this.isIPad}get isTouchableDevice(){return this.isAndroidTouchableDevice||this.isAppleTouchableDevice}get isMac(){return"mac os"===this.osName&&!this.isIPad}get isSafariOnIOS(){return this.isSafari&&this.isIPhone}get isAndroidChrome114(){const e="114"===this.browserVersion.split(".")[0];return this.isChrome&&"android"===this.osName&&e}setUserAgent(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.userAgent={...i()(""),...e}}}},9967:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(27224),r=n(94109),i=n(58078);const s=new class{get parentWindow(){return window.parent===window&&(0,o.fF)("window.parent와 window가 다른 App 모드일 때만 parentWindow를 사용할 수 있습니다."),window.parent}get currentWindow(){return window}get topmostWindow(){return(0,r.N0)()?this.parentWindow:window}get parentDocument(){return this.parentWindow.document}get currentDocument(){return this.currentWindow.document}get topmostDocument(){return this.topmostWindow.document}get rootElement(){return this.currentDocument.getElementById("main")||this.currentDocument.getElementById("root")||this.currentDocument.body}get chPluginElement(){return this.topmostDocument.getElementById("ch-plugin")}get chPluginEntryElement(){return this.topmostDocument.getElementById("ch-plugin-entry")}get chPluginScriptIframeElement(){return this.topmostDocument.getElementById("ch-plugin-script-iframe")}get chPluginScriptElement(){return this.parentDocument.getElementById("ch-plugin-script")}get canonicalUrl(){var e;return(null===(e=this.topmostDocument.querySelector('link[rel="canonical"]'))||void 0===e?void 0:e.getAttribute("href"))||void 0}get visibilityState(){return this.currentDocument.visibilityState}hasFocus(){var e,t;return!!this.topmostDocument.hasFocus()||((null===(e=this.chPluginScriptIframeElement)||void 0===e||null===(t=e.contentDocument)||void 0===t?void 0:t.hasFocus())??!1)}_set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).forEach((t=>{(0,i.e$)(this,t)&&(this[t]=e[t])})),this}}},79845:(e,t,n)=>{"use strict";n.d(t,{FH:()=>a,ZT:()=>A,v7:()=>l});var o=n(81739),r=n(28961);const{isMobile:i}=r.Z;var s;let a;!function(e){e[e.Typo11=1.1]="Typo11",e[e.Typo12=1.2]="Typo12",e[e.Typo13=1.3]="Typo13",e[e.Typo14=1.4]="Typo14",e[e.Typo15=1.5]="Typo15",e[e.Typo16=1.6]="Typo16",e[e.Typo17=1.7]="Typo17",e[e.Typo18=1.8]="Typo18"}(s||(s={})),function(e){e[e.Lh16=1.6]="Lh16",e[e.Lh18=1.8]="Lh18",e[e.Lh20=2]="Lh20",e[e.Lh22=2.2]="Lh22",e[e.Lh24=2.4]="Lh24"}(a||(a={}));const l=i?10.5:10,c=(0,o.iv)(["font-size:","rem;line-height:","rem;"],s.Typo11,a.Lh16),E=(0,o.iv)(["font-size:","rem;line-height:","rem;"],s.Typo12,a.Lh16),u=(0,o.iv)(["font-size:","rem;line-height:","rem;"],s.Typo13,a.Lh18),h=(0,o.iv)(["font-size:","rem;line-height:","rem;"],s.Typo14,a.Lh18),d=(0,o.iv)(["font-size:","rem;line-height:","rem;letter-spacing:-0.1px;"],s.Typo15,a.Lh20),_=(0,o.iv)(["font-size:","rem;line-height:","rem;letter-spacing:-0.1px;"],s.Typo16,a.Lh22),p=(0,o.iv)(["font-size:","rem;line-height:","rem;"],s.Typo18,a.Lh24),m=(0,o.iv)(["font-size:","px;line-height:","px;"],s.Typo11*l,a.Lh16*l),S=(0,o.iv)(["font-size:","px;line-height:","px;"],s.Typo12*l,a.Lh16*l),g=(0,o.iv)(["font-size:","px;line-height:","px;"],s.Typo13*l,a.Lh18*l),T=(0,o.iv)(["font-size:","px;line-height:","px;"],s.Typo14*l,a.Lh18*l),C=(0,o.iv)(["font-size:","px;line-height:","px;letter-spacing:-0.1px;"],s.Typo15*l,a.Lh20*l),R=(0,o.iv)(["font-size:","px;line-height:","px;letter-spacing:-0.1px;"],s.Typo16*l,a.Lh22*l),f=(0,o.iv)(["font-size:","px;line-height:","px;letter-spacing:-0.1px;"],s.Typo17*l,a.Lh22*l),A={RemSize18:p,RemSize16:_,RemSize15:d,RemSize14:h,RemSize13:u,RemSize12:E,RemSize11:c,PxSize18:(0,o.iv)(["font-size:","px;line-height:","px;"],s.Typo18*l,a.Lh24*l),PxSize17:f,PxSize16:R,PxSize15:C,PxSize14:T,PxSize13:g,PxSize12:S,PxSize11:m}},50056:(e,t,n)=>{"use strict";n.d(t,{K6:()=>_,Ks:()=>g,LH:()=>m,Nx:()=>I,SE:()=>R,Vz:()=>A,aN:()=>f,lv:()=>d,sK:()=>p,y$:()=>S});var o=n(81739),r=n(35437),i=n(28961),s=n(50022),a=n(79845);const{isWindows:l,isFirefox:c,isWhale:E,isMac:u}=i.Z,h=l&&!c&&!E||u;function d(e){return h?e-6:e}function _(){return h?"calc(100% + 6px)":"100%"}const p=800;function m(e,t,n){return(0,s.kK)(e)?(0,o.iv)(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]):(0,s.kK)(t)?(console.warn("remNumber required"),(0,o.iv)([""])):"px"===n?function(e,t){return(0,o.iv)(["display:-webkit-box;overflow:hidden;line-height:","px;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:",";"],t*a.v7,e)}(e,t):function(e,t){return(0,o.iv)(["display:-webkit-box;overflow:hidden;line-height:","rem;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:",";"],t,e)}(e,t)}const S=()=>(0,o.iv)(["-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]),g=()=>(0,o.iv)(["",""],h&&(0,o.iv)(["&::-webkit-scrollbar{width:","px;}&::-webkit-scrollbar-thumb{height:30px;background-color:transparent;background-clip:padding-box;border:2px solid transparent;border-radius:10px;&:hover{background-color:",";}}&:hover{&::-webkit-scrollbar-thumb{background-color:",";}}"],6,(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-dark"]}),(e=>{let{foundation:t}=e;return null==t?void 0:t.theme["txt-black-dark"]}))),T=(0,r.F4)(["from{opacity:0.01;}to{opacity:1;}"]),C=(0,r.F4)(["from{opacity:0.01;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}"]),R=e=>()=>(0,o.iv)(["opacity:0.01;"," animation-name:",";animation-duration:","ms;animation-timing-function:cubic-bezier(0.3,0,0,1);animation-fill-mode:forwards;"],e&&(0,o.iv)(["transform:translateY(6px);"]),e?C:T,p),f=()=>(0,o.iv)(["position:relative;&::after{position:absolute;top:0;bottom:0;left:0;width:1px;height:calc(100% + 1px);content:'';}"]),A=e=>e&&(0,o.iv)(["background-image:url(",");background-repeat:no-repeat;background-position:center;background-size:cover;"],e),I=e=>e&&(0,o.iv)(["background-image:url(",");"],e)},88513:(e,t,n)=>{"use strict";n.d(t,{$:()=>i,u:()=>r});var o=n(50022);const r={LIGHT:"light",DARK:"dark",SYSTEM:"system"};function i(e){return(0,o.HD)(e)&&Object.values(r).includes(e)||null===e}},35696:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=n(80070),r=n(50022);const i=/^(([a-z][a-zA-Z0-9+-.]+):\/\/|tel:|mailto:|javascript:)?(([^:/?#]*)(?::([0-9]+))?)(\/?[^?#]*)(\?[^#]*|)(#.*|)$/,s=/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/,a=/^(([a-zA-Z0-9가-힣]|[a-zA-Z0-9가-힣][a-zA-Z0-9가-힣-_]*[a-zA-Z0-9가-힣])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-_]*[A-Za-z0-9])$/,l=/^localhost$/i,c=/^[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*.[a-zA-Z]{2,3}$/,E=/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-./0-9]*$/,u=/\W+$/;function h(e){return e&&!(0,r.xb)(e)?e:null}class d{static isValid(e){return new d(e,{strict:arguments.length>1&&void 0!==arguments[1]&&arguments[1]}).valid()}get protocol(){var e;return(null===(e=this._protocol)||void 0===e?void 0:e.replace(u,""))||null}constructor(e,t){if((0,o.Z)(this,"src",void 0),(0,o.Z)(this,"config",void 0),(0,o.Z)(this,"_protocol",null),(0,o.Z)(this,"host",null),(0,o.Z)(this,"port",null),(0,o.Z)(this,"path",null),this.src=e||"",this.config=t||{},this.src){const e=this.src.match(i);e&&!(0,r.xb)(e)&&(this._protocol=h((null==e?void 0:e[1])??null),this.host=h((null==e?void 0:e[4])??null),this.port=h((null==e?void 0:e[5])??null),this.path=h(e.slice(6,9).map(h).join("")))}}isEmpty(){return(0,r.xb)(this.host)}isJavascript(){return"javascript"===(this.protocol||"").toLowerCase()||(this.host||"").startsWith("javascript:")}isObjectURL(){return"blob"===(this.protocol||"").toLowerCase()||(this.host||"").startsWith("blob:")}isLocalhost(){return!this.isEmpty()&&!!this.host.match(l)}validHost(){return!(this.isEmpty()||((this._protocol||"").startsWith("tel")?!this.host.match(E):(this._protocol||"").startsWith("mailto")?!this.host.match(c):!this.host.match(s)&&!this.host.match(a)&&!this.host.match(l)))}valid(){var e,t;return!this.isEmpty()&&!(!(null===(e=this.config)||void 0===e?void 0:e.allowJavascript)&&this.isJavascript())&&((null===(t=this.config)||void 0===t?void 0:t.strict)?!(0,r.xb)(this.protocol)&&this.validHost()&&(!!(0,r.xb)(this.port)||!!this.port.match(/[1-9]\d{1,2}/)):this.validHost())}getFullUrl(){var e;return(null===(e=this.config)||void 0===e?void 0:e.allowJavascript)&&this.isJavascript()?this.src:this.valid()?[(()=>{var e;const t=(null===(e=this.config)||void 0===e?void 0:e.preferredProtocol)??"http";return(0,r.xb)(this._protocol)?`${t}://`:this._protocol})(),this.host,(0,r.xb)(this.port)?"":`:${this.port}`,h(this.path)].join(""):""}decodeValidateURI(e){try{return decodeURI(this.src||e||"")}catch(t){return this.src||e||""}}}},94785:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});const o=e=>Boolean(e);function r(e){return e.filter(o)}},13635:(e,t,n)=>{"use strict";n.d(t,{Pt:()=>a,iF:()=>s,jW:()=>i});var o=n(90511),r=n(87851);const i=(e,t)=>`${o.f}${e}.${t}`,s=e=>`${o.o}${e}.png`,a=e=>`${r.Ss}/icons/${e}.svg`},86548:(e,t,n)=>{"use strict";n.d(t,{$O:()=>w,BT:()=>f,FB:()=>O,I:()=>U,J1:()=>g,LU:()=>H,Ns:()=>P,Q8:()=>p,US:()=>S,WT:()=>l,Ym:()=>x,al:()=>D,cl:()=>v,dV:()=>E,gi:()=>b,ji:()=>C,jy:()=>M,lp:()=>A,o:()=>_,p1:()=>N,s2:()=>u,sG:()=>L,tv:()=>I,xG:()=>Z});var o=n(80577),r=n(15405),i=n(49038),s=n(27224),a=n(42474);const l=1e3,c=60*l,E=60*c,u=24*E,h=7*u;function d(e,t){return new Date(e).getFullYear()===new Date(t).getFullYear()}function _(e,t){return function(e,t){return d(e,t)&&new Date(e).getMonth()===new Date(t).getMonth()}(e,t)&&new Date(e).getDate()===new Date(t).getDate()}function p(e,t){return function(e,t){return _(e,t)&&new Date(e).getHours()===new Date(t).getHours()}(e,t)&&new Date(e).getMinutes()===new Date(t).getMinutes()}function m(e){return`${e}`.padStart(2,"0")}function S(e){const t=new Date(e),n=t.getHours();return`${n>12?n-12:n}:${m(t.getMinutes())} ${n>=12?"PM":"AM"}`}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.ZP.KO;return new Intl.DateTimeFormat(t,{hour:t===i.ZP.JA?"2-digit":"numeric",minute:"numeric"}).format(e)}function T(e,t){return Intl.DateTimeFormat(t,{month:"long",day:"numeric"}).format(e)}function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.ZP.KO;return Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(e)}function R(e,t){const n=g(e,t);return`${T(e,t)} ${n}`}function f(e,t){const n=g(e,t);return`${C(e,t)} ${n}`}function A(e,t,n){return t===a.Z.Datetime?f(new Date(e),n):t===a.Z.Date?C(new Date(e),n):e.toString()}function I(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.ZP.KO,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.Z.getDate().getTime();const r=new Date(e),s=g(e,t);return _(e,n)?s:d(e,n)?R(r,t):f(r,t)}function v(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.Z.getDate().getTime();const r=n-t;if(r<c)return e("ch.relative_time.now");if(r<E)return e("ch.relative_time.minute",Math.floor(r/c));if(r<u)return e("ch.relative_time.hour",Math.floor(r/E));if(r<h)return e("ch.relative_time.day",Math.floor(r/u));const i=new Date(t),s=m(i.getMonth()+1),a=m(i.getDate());return d(t,n)?`${s}-${a}`:`${i.getFullYear()}-${s}-${a}`}function y(e){const t=new Date(e);return t.setHours(0,0,0,0),t.getTime()}function U(e,t){let n=e,o=t;return n instanceof Date&&(n=n.getTime()),o instanceof Date&&(o=o.getTime()),n=y(n),o=y(o),Math.floor(Math.abs(n-o)/u)}function Z(e){const t=new Date(e),n=`${t.getFullYear()}`,o=m(t.getMonth()+1),r=m(t.getDate());return`${S(e)}, ${n}/${o}/${r}`}function O(e){if(!/^\d{4}-\d{1,2}-\d{1,2}$/.test(e))return!1;const t=e.split("-"),n=parseInt(t[0],10),o=parseInt(t[1],10),r=parseInt(t[2],10);if(n<1e3||n>3e3||0===o||o>12)return!1;const i=[31,28,31,30,31,30,31,31,30,31,30,31];return(n%400==0||n%100!=0&&n%4==0)&&(i[1]=29),r>0&&r<=i[o-1]}function b(e){return/^([01]?[0-9]|2[0-3]):[0-5]?[0-9]$/.test(e)}function N(e){const t=e.split("-"),n=parseInt(t[0],10),o=parseInt(t[1],10)-1,r=parseInt(t[2],10),i=new Date;return i.setFullYear(n,o,r),i}function w(e){const t=e.split(":"),n=parseInt(t[0],10),o=parseInt(t[1],10);return new r.Z(n,o)}function L(e){const t=e.split(/[^0-9]/).map(Number);return t.length<5?((0,s.fF)("잘못된 dateTimeString format입니다. yyyy-MM-ddTHH:mm(또는 밀리세컨드 이하도 포함) 형태이어야 합니다. 값을 확인해 주세요: ",e),null):new Date(t[0],t[1]-1,t[2],t[3],t[4])}function M(e){return`${e.getFullYear()}-${m(e.getMonth()+1)}-${m(e.getDate())}`}function P(e){return`${M(e)}T${new r.Z(e.getHours(),e.getMinutes()).toString()}`}function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.Z.getDate();const t=e.getFullYear(),n=m(e.getMonth()+1),r=m(e.getDate()),i=m(e.getHours()),s=m(e.getMinutes()),a=m(e.getSeconds());return`${t}-${n}-${r} ${i}:${s}:${a}`}const k=["ch.day_of_week.sun","ch.day_of_week.mon","ch.day_of_week.tue","ch.day_of_week.wed","ch.day_of_week.thu","ch.day_of_week.fri","ch.day_of_week.sat"];function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.ZP.KO,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.Z.getDate().getTime();const s=g(e,t);if(_(e,r))return s;const a=_(e,r+u);if(a)switch(t){case i.ZP.JA:return`${n("ch.tomorrow")}${s}`;case i.ZP.KO:case i.ZP.EN:default:return`${n("ch.tomorrow")} ${s}`}const l=U(e,r)<7;if(l){const o=new Date(e),r=n(k[o.getDay()]);switch(t){case i.ZP.KO:return`${r} ${s}`;case i.ZP.JA:return`${r}${s}`;case i.ZP.EN:default:return`${r}, ${s}`}}return d(e,r)?T(new Date(e),t):C(new Date(e),t)}function H(e){const t=Math.floor(e/E),n=Math.floor(e%E/c),o=Math.floor(e%c/l),r=[];return t>0&&r.push(`${t}`.padStart(2,"0")),r.push(`${n}`.padStart(2,"0")),r.push(`${o}`.padStart(2,"0")),r.join(":")}},27224:(e,t,n)=>{"use strict";function o(){}function r(){}function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console&&console.warn?console.warn.apply(console,t):console&&console.log&&console.log.apply(console,t)}function s(e,t){return t?`Warning: ${e} API is deprecated and will be removed in a future release. Consider using ${t} callback instead. See https://developers.channel.io/docs/web-channelio#${t.toLowerCase()} for more information.`:`Warning: ${e} API is deprecated and will be removed in a future release. `}function a(e){}function l(){const e=document.createElement("script");e.src="//cdn.jsdelivr.net/npm/eruda",document.body.appendChild(e),e.onload=()=>{var e,t;null===(e=window.eruda)||void 0===e||e.init(),null===(t=window.eruda)||void 0===t||t.position({x:200,y:20})}}n.d(t,{Yo:()=>l,c4:()=>s,fF:()=>o,ji:()=>a,vU:()=>r,wN:()=>i})},39156:(e,t,n)=>{"use strict";n.d(t,{GI:()=>h,ID:()=>d,JQ:()=>a,Rn:()=>l,Sv:()=>u,UW:()=>c,hr:()=>E,oE:()=>_,zo:()=>p});var o=n(28961),r=n(9967),i=n(94109),s=n(86548);function a(e){const t=Array.from(e.clipboardData.items||[]).filter((e=>"file"===e.kind)),n=[];for(const e of t){const t=e.getAsFile();if(t&&t.size>0){const o=e.type.split("/").pop(),r=t.name??`${(0,s.al)()}.${o}`;n.push(new File([t],r,{type:e.type}))}}return n}function l(e){return e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight}function c(e){e.stopPropagation()}const E="download-target";function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.al)();const n=document.createElement("a");n.href=e,n.rel="noopener noreferrer",n.download=t;const{isAppleTouchableDevice:r,isNaverInAppBrowser:i,isFirefox:a}=o.Z;n.target=r&&(i||a)?"_blank":E,n.click()}function h(e,t,n){e.setSelectionRange(t,n),e.focus()}function d(e){return(0,i.$W)()?`/user-chats/${e}`:"#none"}function _(){const e=r.Z.chPluginScriptElement;e&&e.classList.remove("ch-messenger-hidden")}function p(){const e=r.Z.chPluginScriptElement;e&&e.classList.add("ch-messenger-hidden")}},94109:(e,t,n)=>{"use strict";n.d(t,{$W:()=>c,A4:()=>p,N0:()=>l,Um:()=>_,ej:()=>u,v:()=>h,v0:()=>d,yG:()=>E});var o=n(28961),r=n(53288),i=n(50022),s=n(50655);const{isMobile:a}=o.Z,l=()=>!0,c=()=>!1,E=()=>!1,u=e=>{const t=`; ${document.cookie}`.split(`; ${e}=`);return t.length>=2?t.pop().split(";").shift():null},h=e=>!e,d=()=>(window.navigator.language||"en").split("-")[0],_=e=>{if(!e)return{};const t=new URLSearchParams(e);return r.q.reduce(((e,n)=>(t.get(n)&&(e[`${(0,s.eV)(n)}`]=t.get(n)),e)),{})},p=e=>{if((0,i.xb)(e)&&!(0,i.HD)(e))return!1;const t=window.parent,n=e.match(/^(?:https?:\/\/)?([^/?#]+)(?:[/?#]|$)/i),o=n&&n[1];return t.location.host===o}},23414:(e,t,n)=>{"use strict";n.d(t,{He:()=>u,ND:()=>E,Xi:()=>s,yW:()=>a,yv:()=>c});var o=n(80805),r=n(18380),i=n(50022);function s(){let{width:e,height:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=[];return e&&n.push(t&&e!==t?`${e}x${t}`:`${e}x`),n.join(",")}function a(e){const t=parseFloat((e/1024).toFixed(1)),n=parseFloat((e/1048576).toFixed(1));return t<1024?`${t}KB`:`${n}MB`}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.g,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.$;return e.width>n.width||e.height>n.height?Math.max(e.width/n.width,e.height/n.height):e.width<t.width&&e.height<t.height?Math.min(e.width/t.width,e.height/t.height):1}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.g,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.$;const s=l(e,t,n);return!(0,i.kK)(e.orientation)&&[o.Z.VerticalFlipRotate90,o.Z.Rotate90,o.Z.HorizontalFlipRotate90,o.Z.Rotate270].includes(e.orientation)?{width:Math.floor(e.height/s),height:Math.floor(e.width/s)}:{width:Math.floor(e.width/s),height:Math.floor(e.height/s)}}function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=document.createElement("video");return!!t.canPlayType(e)}function u(e){return e.replace(/%/g,"_")}},28023:(e,t,n)=>{"use strict";n.d(t,{Z3:()=>s,rc:()=>r,uZ:()=>i,w6:()=>a});var o=n(50022);const r=e=>Math.round(100*(e+Number.EPSILON))/100;function i(e,t,n){return"number"!=typeof n?Math.max(e,t)===t?e:t:Math.min(e,t)===e?t:Math.max(e,n)===e?n:e}function s(e){return e?"string"==typeof e?Number.parseInt(e,10)||0:"number"==typeof e?Math.trunc(e):0:0}function a(e,t,n){if(void 0===t)return Array.from({length:e},((e,t)=>t));const r=(0,o.kK)(n)?1:n,i=0===r?t-e:(t-e)/r;return Array.from({length:i},((t,n)=>e+n*r))}},58078:(e,t,n)=>{"use strict";n.d(t,{CE:()=>s,D9:()=>a,Xh:()=>E,e$:()=>c,ei:()=>i,xb:()=>l});var o=n(20172),r=n(50022);function i(e,t){return Object.fromEntries(Object.entries(e).filter((e=>{let[n]=e;return(0,r.q9)(t,n)})))}function s(e,t){return(0,r.Kn)(e)?Object.fromEntries(Object.entries(e).filter((e=>{let[n]=e;return!(0,r.q9)(t,n)}))):{}}function a(e,t){return(0,r.Kn)(e)?Object.fromEntries(Object.entries(e).filter((e=>{let[n,o]=e;return t(n,o)}))):{}}function l(e,t){if(e===t)return!0;if(!((0,r.Kn)(e)&&(0,r.Kn)(t)&&e&&t))return!(!Number.isNaN(e)||!Number.isNaN(t));if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(!l(e[n],t[n]))return!1;return!0}if(e instanceof Map){if(!(t instanceof Map))return!1;if(e.size!==t.size)return!1;for(const n of e.keys())if(!t.has(n))return!1;for(const[n,o]of e.entries())if(!l(o,t.get(n)))return!1;return!0}if(e instanceof Set){if(!(t instanceof Set))return!1;if(e.size!==t.size)return!1;for(const n of e.values())if(!t.has(n))return!1;return!0}if((0,r.Kj)(e))return!!(0,r.Kj)(t)&&e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const e of n)if(!Object.prototype.hasOwnProperty.call(t,e))return!1;for(const o of n)if(!l(e[o],t[o]))return!1;return!0}function c(e,t){return null!=e&&Object.prototype.hasOwnProperty.call(e,t)}function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"function"==typeof window.structuredClone?window.structuredClone(e):(0,o.ZP)(e)}},26633:(e,t,n)=>{"use strict";n.d(t,{Bx:()=>i,Kc:()=>l,Ym:()=>a,d$:()=>s,vL:()=>r});var o=n(95197);const r=e=>(0,o.LX)({path:"/home",end:!0},e),i=e=>(0,o.LX)({path:"/user-chats/:userChatId",end:!0},e),s=e=>(0,o.LX)({path:"/setting/*",end:!0},e),a=e=>(0,o.LX)({path:"/user-chats",end:!0},e),l=e=>(0,o.LX)({path:"/workflows/:workflowId",end:!0},e)},68266:(e,t,n)=>{"use strict";n.d(t,{P:()=>i,Q:()=>r});const o=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`));function r(e){return Object.fromEntries(new URLSearchParams(e))}function i(e){return e?Object.entries(e).map((e=>{let[t,n]=e;return void 0===n?"":null===n?`${o(t)}=`:Array.isArray(n)?n.filter((e=>void 0!==e)).map((e=>null===e?"":e)).reduce(((e,n)=>e.concat(`${o(t)}=${o(n)}`)),[]).join("&"):`${o(t)}=${o(n)}`})).filter((e=>e.length>0)).join("&"):""}},18394:(e,t,n)=>{"use strict";function o(e){e&&e.unsubscribe()}n.d(t,{g:()=>o})},50655:(e,t,n)=>{"use strict";n.d(t,{$m:()=>g,AE:()=>h,AS:()=>R,Bc:()=>_,Eg:()=>a,GL:()=>I,JY:()=>d,O0:()=>p,aE:()=>A,eV:()=>v,i1:()=>m,iH:()=>T,kE:()=>S,l0:()=>u});var o=n(50022);const r={"&":"&","<":"<",">":">",'"':"""},i=/[&<>"]/g,s=RegExp(i.source);function a(e){return(0,o.HD)(e)&&function(e){return s.test(e)}(e)?e.replace(i,(e=>r[e])):e}const l={"&":"&","<":"<",">":">",""":'"',"$":"$"},c=new RegExp(`(${Object.keys(l).join("|")})`,"g"),E=RegExp(c.source);function u(e){return e?E.test(e)?e.replace(c,(e=>l[e])):e:""}function h(e){return(0,o.HD)(e)?e.replace(/[^\d]/g,""):""}function d(e){return e>99?"99+":`${e}`}function _(e){return e>99?"99":`${e}`}function p(e,t){return e.replace(new RegExp(`\n{${t+1},}`,"g"),"\n".repeat(t))}function m(e){return!!(0,o.hj)(e)||!!(0,o.HD)(e)&&/^(?:-|\+|)?\d+(?:,\d{3})*(?:\.\d+)?$/.test(e)}function S(e){return!!(0,o.hj)(e)||!!(0,o.HD)(e)&&/^[0-9-.]+$/.test(e)}const g="";function T(e){return e.concat(g)}const C=/^\n+$/;function R(e){return C.test(e)}const f=/^[ \t]+$/;function A(e){return f.test(e)}const I=e=>e.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),v=e=>I(e).replace(/-([a-z])/g,((e,t)=>t.toUpperCase()))},15964:(e,t,n)=>{"use strict";n.d(t,{JP:()=>u,V0:()=>_,WH:()=>E,hL:()=>p,jC:()=>d,uz:()=>h});var o=n(81739),r=n(76438),i=n(28961),s=n(49038),a=n(50022);const{isTouchableDevice:l}=i.Z;function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return[parseInt(e.substring(1,3),16),parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16),t]}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e)return`rgba(${c(e,t).join(",")})`}function u(){const e=r.Z.getZIndex();return(0,a.kK)(e)?1e7:e}function h(e){switch(e.toLowerCase()){case"#ffffff":case"#fff":case"white":return"#f7f7f8";default:return e}}const d=e=>l?(0,o.iv)(["&:active{","}"],e):(0,o.iv)(["&:hover{","}"],e);function _(e){const t=e===s.ZP.JA,n=e===s.ZP.KO;return[t&&"NotoSansJP",n&&"NotoSansKR","-apple-system","BlinkMacSystemFont","Helvetica Neue",t&&"Yu Gothic",n&&"맑은 고딕","Segoe UI","Roboto","system-ui","sans-serif"].filter(a.HD).map((e=>JSON.stringify(e))).join(", ")}function p(e){return"#ffffff"===e||"#fff"===e||"white"===e}},40520:(e,t,n)=>{"use strict";n.d(t,{D:()=>r,P:()=>i});var o=n(50022);function r(e){let t,n,r,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0,l=0,c=!1,E=!1,u=!0;function h(n){const o=t;t=void 0,l=n,o&&e(...o)}function d(e){const t=e-l,o=s-(e-i);return E?Math.min(o,n-t):o}function _(e){if(void 0===i)return!0;const t=e-i;return t>=s||t<0||E&&e-l>=n}function p(e){r=void 0,u&&t?h(e):t=void 0}function m(){const e=Date.now();return _(e)?p(e):(r=window.setTimeout(m,d(e)),r)}function S(e){l=e,r=window.setTimeout(m,s),c&&h(e)}function g(){void 0!==r&&clearTimeout(r),l=0,t=void 0,i=void 0,r=void 0}function T(){r&&p(Date.now())}function C(){return void 0!==r}function R(){const e=Date.now(),n=_(e);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];if(t=a,i=e,n){if(void 0===r)return void S(i);if(E)return r=window.setTimeout(m,s),void h(i)}void 0===r&&(r=window.setTimeout(m,s))}return(0,o.Kn)(a)&&(c=!!a.leading,E="maxWait"in a,n=E?Math.max(a.maxWait||0,s):n,u="trailing"in a?!!a.trailing:u),R.cancel=g,R.flush=T,R.pending=C,R}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=!0,s=!0;return(0,o.Kn)(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:i,trailing:s,maxWait:t})}},50022:(e,t,n)=>{"use strict";n.d(t,{HD:()=>a,Kj:()=>E,Kn:()=>s,O2:()=>d,PO:()=>u,hj:()=>l,jn:()=>c,kK:()=>r,mf:()=>i,q9:()=>_,xb:()=>h});const o=e=>Object.prototype.toString.call(e);function r(e){return null==e}function i(e){return"function"==typeof e}function s(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)}function a(e){return"string"==typeof e||s(e)&&"[object String]"===o(e)}function l(e){return"number"==typeof e||s(e)&&"[object Number]"===o(e)}function c(e){return"boolean"==typeof e||s(e)&&"[object Boolean]"===o(e)}function E(e){return s(e)&&e.constructor===RegExp}function u(e){if("object"!=typeof e)return!1;if(null==e)return!1;if("[object Object]"!==o(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function h(e){return!(null!=e&&(Array.isArray(e)||"string"==typeof e?e.length:(e=>"[object Set]"===o(e))(e)||(e=>"[object Map]"===o(e))(e)?e.size:s(e)&&Object.keys(e).length))}function d(e){return Array.isArray(e)?!e.length:!c(e)&&!l(e)&&!e}function _(e,t){return e.includes(t)}},12771:(e,t,n)=>{"use strict";n.d(t,{MI:()=>c,xn:()=>l,yb:()=>a});var o=n(15405),r=n(48384),i=n(28023),s=n(50022);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{step:r=30,normalizer:a}=n,l=(0,i.uZ)((0,i.Z3)(e),0,24),c=(0,i.uZ)((0,i.Z3)(t),0,24),E=(0,i.uZ)((0,i.Z3)(r),1,60),u=(0,i.w6)(l,c).map((e=>(0,i.w6)(0,60,E).map((t=>new o.Z(e,t))))).flat();return(0,s.mf)(a)?a(u).sort(((e,t)=>e.hour!==t.hour?e.hour-t.hour:e.minute-t.minute)):u}function l(e){return`${r.Z.LAST_SEEN_TAB_ID}_${e}`}function c(e){return`${r.Z.NOTIFICATION_SOUND}_${e}`}},19770:e=>{"use strict";e.exports=redux-logger},96242:()=>{}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdO={},e=[],i.O=(t,n,o,r)=>{if(!n){var s=1/0;for(E=0;E<e.length;E++){for(var[n,o,r]=e[E],a=!0,l=0;l<n.length;l++)(!1&r||s>=r)&&Object.keys(i.O).every((e=>i.O[e](n[l])))?n.splice(l--,1):(a=!1,r<s&&(s=r));if(a){e.splice(E--,1);var c=o();void 0!==c&&(t=c)}}return t}r=r||0;for(var E=e.length;E>0&&e[E-1][2]>r;E--)e[E]=e[E-1];e[E]=[n,o,r]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>883===e?"ch-plugin-core.042c2b9a.vendor-messenger~pop-up.js":142===e?"ch-plugin-core.fa39c7ec.vendor-messenger.js":592===e?"ch-plugin-core-20250402160847.8a9c3f4c.common.bundle.js":79===e?"ch-plugin-core.eb640c28.vendor-phonenumber.js":"ch-plugin-core-20250402160847."+{670:"f4fe4d83",743:"e3bbd415",961:"d9200a63"}[e]+"."+{670:"pop-up",743:"messenger",961:"formatted-phonenumber-input"}[e]+".bundle.js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},n="web-sdk:",i.l=(e,o,r,s)=>{if(t[e])t[e].push(o);else{var a,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),E=0;E<c.length;E++){var u=c[E];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==n+r){a=u;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.setAttribute("data-webpack",n+r),a.src=e),t[e]=[o];var h=(n,o)=>{a.onerror=a.onload=null,clearTimeout(d);var r=t[e];if(delete t[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(o))),n)return n(o)},d=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),l&&document.head.appendChild(a)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.p="https://cdn.channel.io/plugin/",(()=>{var e={179:0};i.f.j=(t,n)=>{var o=i.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var r=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=r);var s=i.p+i.u(t),a=new Error;i.l(s,(n=>{if(i.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var r=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+s+")",a.name="ChunkLoadError",a.type=r,a.request=s,o[1](a)}}),"chunk-"+t,t)}},i.O.j=t=>0===e[t];var t=(t,n)=>{var o,r,[s,a,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(o in a)i.o(a,o)&&(i.m[o]=a[o]);if(l)var E=l(i)}for(t&&t(n);c<s.length;c++)r=s[c],i.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return i.O(E)},n=globalThis.webpackChunkweb_sdk=globalThis.webpackChunkweb_sdk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var s=i.O(void 0,[736],(()=>i(49445)));s=i.O(s)})(); |