try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d73f7360-8ae2-4734-a43a-916684937dd7",e._sentryDebugIdIdentifier="sentry-dbid-d73f7360-8ae2-4734-a43a-916684937dd7")}catch(e){}{let e="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{};e.SENTRY_RELEASE={id:"558896"}}(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["support-micro-app"],{"2b031":function(e,t,s){"use strict";s.r(t);var a=s("f2bf");const o={class:"micro-app-support-container"},i=["site-name","theme","uuid","player-id","lang","first-name","last-name","email","ip","browser","os","country","city","address","postal-code","state"];function n(e,t,s,n,r,d){const c=Object(a["resolveComponent"])("icon");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",o,[(Object(a["openBlock"])(),Object(a["createBlock"])(a["Teleport"],Object(a["normalizeProps"])(Object(a["guardReactiveProps"])(d.teleportProps)),[Object(a["createElementVNode"])("micro-app-support",{ref:"mfCustomElement","site-name":s.siteName,theme:s.theme?`${s.siteName}-${s.theme}`:s.siteName,uuid:e.getPlayerUuid,"player-id":e.getPlayerId,"activator-enabled":!1,lang:e.getLangCode,"first-name":e.getFirstName,"last-name":e.getLastName,email:e.getEmail,ip:d.sessionIp,browser:d.sessionBrowser,os:d.sessionOs,country:e.getCountry,city:e.getCity,address:e.getAddress,"postal-code":e.getPostalCode,state:e.getState},null,8,i)],16)),t[1]||(t[1]=Object(a["createTextVNode"])()),d.displayActivator?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:0,class:"activator-button",onClick:t[0]||(t[0]=(...e)=>d.forceDisplayView&&d.forceDisplayView(...e))},[Object(a["renderSlot"])(e.$slots,"icon",{},()=>[Object(a["createVNode"])(c,{"icon-name":"headset",size:"size-20"})])])):Object(a["createCommentVNode"])("",!0)])}var r=s("c964"),d=s("f3f3"),c=(s("e9f5"),s("7d54"),s("ac1f"),s("5319"),s("be92")),l=s("d373"),p=s("e0c4"),u=s("5d2a"),h={name:"support-micro-app",components:{icon:u["a"]},props:{to:{type:String,default:""},siteName:{type:String,default:""},theme:{type:String,default:""},activatorEnabled:{type:Boolean,default:!1}},data(){return{supportViewVisible:!1}},computed:Object(d["a"])(Object(d["a"])(Object(d["a"])(Object(d["a"])(Object(d["a"])({},Object(c["f"])(l["a"].player,["getLangCode","getPlayerUuid","getPlayerId","getStatuses","isStaffUser","getFirstName","getLastName","getEmail","getCountry","getCity","getAddress","getPostalCode","getState"])),Object(c["f"])(l["a"].modal,{hasOpenedModals:"hasOpened"})),Object(c["f"])(l["a"].chat,["getAssets"])),Object(c["f"])(l["a"].playerSessions,["getActiveSession"])),{},{teleportProps(){return{to:this.to||"body",disabled:!this.to}},sessionIp(){var e;return null===(e=this.getActiveSession)||void 0===e?void 0:e.ip},sessionBrowser(){var e;return null===(e=this.getActiveSession)||void 0===e?void 0:e.browser},sessionOs(){var e;return null===(e=this.getActiveSession)||void 0===e?void 0:e.os},displayActivator(){return this.activatorEnabled&&!this.supportViewVisible}}),mounted(){this.mountWidget(),window.addEventListener("chat-micro-app-unread",this.handleUnreadEvent),window.addEventListener("chat-micro-app-register",this.handleOpenRegister),window.addEventListener("chat-micro-app-hide",this.handleCloseView),this.$bus.on("chat-micro-app-open",this.forceDisplayView)},beforeUnmount(){window.dispatchEvent(new Event("chat-micro-app-destroy")),window.removeEventListener("chat-micro-app-unread",this.handleUnreadEvent),window.removeEventListener("chat-micro-app-register",this.handleOpenRegister),window.removeEventListener("chat-micro-app-hide",this.handleCloseView),this.$bus.off("chat-micro-app-open",this.forceDisplayView)},methods:Object(d["a"])(Object(d["a"])(Object(d["a"])({},Object(c["e"])(l["a"].modal,{openModal:"open"})),Object(c["e"])(l["a"].chat,["updateAssets","setUnreadBadge"])),{},{handleUnreadEvent(e){this.setUnreadBadge(e.detail.value)},handleCloseView(){this.supportViewVisible=!1},forceDisplayView(){this.$refs.mfCustomElement.setAttribute("force-show",!0),this.supportViewVisible=!0},handleOpenRegister(){const e={name:"registration",component:Object(a["defineAsyncComponent"])(()=>Promise.all([s.e("chunk-7a521346"),s.e("velocity-animate"),s.e("chunk-727d6e6a"),s.e("chunk-13133f38"),s.e("auth")]).then(s.bind(null,"8037")))};"legzo"===this.siteName&&(e.props={noScroll:!0},e.replace=!0),this.openModal(e)},mountWidget(){var e=this;return Object(r["a"])((function*(){var t,s;yield e.updateAssets(),e.jsLoadedSize=0,null===(t=e.getAssets.css)||void 0===t||t.forEach(e=>{const t=document.createElement("link");t.rel="stylesheet",t.href=p["b"]+e.replace(/^\//g,""),document.head.appendChild(t)}),null===(s=e.getAssets.js)||void 0===s||s.forEach(t=>{const s=document.createElement("script");s.src=p["b"]+t.replace(/^\//g,""),s.onload=()=>{var t;e.jsLoadedSize++,e.jsLoadedSize===(null===(t=e.getAssets)||void 0===t?void 0:t.js.length)&&window.dispatchEvent(new Event("chat-micro-app-loaded"))},document.head.appendChild(s)})}))()}})},m=(s("50e9"),s("6b0d")),b=s.n(m);const f=b()(h,[["render",n]]);t["default"]=f},"50e9":function(e,t,s){"use strict";s("7e98")},"7e98":function(e,t,s){}}]); //# sourceMappingURL=support-micro-app.5cbba560.js.map