1import{d as s}from"./vendor-vue-15488850.js";import{b2 as a,t as i,dE as l}from"./integrations-segmentstream-2c545cc9.js";import{L as n,A as r}from"./index-8713df0b.js";import{r as d}from"./storage-cbd59dc5.js";import{n as c}from"./vendor-splide-d9a079dc.js";import"./vendor-a9303273.js";import"./locales-ru-bba83fc0.js";import"./locales-cn-79b85608.js";import"./config-mapping-1f39f8ce.js";import"./vendor-lodash-59d95206.js";import"./vendor-date-fns-8fd1b05b.js";import"./vendor-pswp-a811abc6.js";import"./svg-icons-1599cbf9.js";const u={name:"LogoutModal",components:{LeButton:n},props:{payload:{type:Object,default:()=>({})}},data(){return{isLoading:!1}},computed:{title(){return this.payload.modalTitle},content(){return this.payload.modalContent}},mounted(){this.$emit("modalContentLoaded")},methods:{...s("profile",["fetchProfileCounters"]),async logout(){this.isLoading=!0;try{await this.$service(a).postUserLogout(),this.sendLogoutAnalytics(),this.$cookies.remove(i),this.$cookies.remove(l),this.$cookies.remove(r),await this.fetchProfileCounters(),d(),this.$route.path.includes("reset-password")?this.$url.fullRefresh():this.$url.goToHomeWithHardReload()}catch{this.$url.fullRefresh()}finally{this.isLoading=!1}},sendLogoutAnalytics(){this.$sendGA4Event({name:"deauthorization"})},closeModal(){this.$modal.close()}}};var _=function(){var o=this,t=o._self._c;return t("div",{staticClass:"logout-modal"},[t("div",{staticClass:"logout-modal__header"},[o.title?t("h2",{staticClass:"logout-modal__title"},[o._v(` 2 `+o._s(o.title)+` 3 `)]):o._e(),o._v(" "),t("LeButton",{staticClass:"logout-modal__close",attrs:{icon:"",prependIcon:"close-v2",theme:"white"},on:{click:o.closeModal}})],1),o._v(" "),t("div",{staticClass:"logout-modal__body"},[t("div",{domProps:{innerHTML:o._s(o.content)}})]),o._v(" "),t("div",{staticClass:"logout-modal__footer"},[t("LeButton",{attrs:{isRounded:!0,loading:o.isLoading},on:{click:o.logout}},[o._v(` 4 `+o._s(o.$t("base:logoutModal.btnOk"))+` 5 `)]),o._v(" "),t("LeButton",{attrs:{theme:"secondary",isRounded:!0},on:{click:o.closeModal}},[o._v(` 6 `+o._s(o.$t("base:logoutModal.btnNo"))+` 7 `)])],1)])},m=[],p=c(u,_,m,!1,null,null,null,null);const T=p.exports;export{T as default}; 8//# sourceMappingURL=LogoutModal-05c7f4ba.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.