1import { f as useAuthStore, a as useRoute, u as useNuxtApp, g as __nuxt_component_0 } from "./DBu18RHs.js"; 2import { w as withAsyncContext } from "./DA1TrTdf.js"; 3import { u as useSeo } from "./DyiVdYrh.js"; 4import { r as render } from "./KQq_p-kz.js"; 5import { r as render$1 } from "./CzromRVm.js"; 6import { c as ref, J as createElementBlock, O as createBaseVNode, F as Fragment, G as createVNode, u as unref, Q as toDisplayString, Y as withCtx, I as openBlock } from "./BFJ8X33_.js"; 7import "./yUKO-WBB.js"; 8const _hoisted_1 = { class: "mx-auto max-w-screen-azseller sm:px-6 lg:px-8 pt-2 pb-2 min-h-96" }; 9const _hoisted_2 = { class: "rounded-lg bg-white shadow flex justify-center min-h-96" }; 10const _hoisted_3 = { class: "sm:p-3 p-10" }; 11const _hoisted_4 = { class: "justify-center text-center content-center pt-5" }; 12const _hoisted_5 = { class: "mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-green-100" }; 13const _hoisted_6 = { class: "mt-3 text-center sm:mt-5" }; 14const _hoisted_7 = { class: "text-base font-semibold leading-6 text-gray-900" }; 15const _hoisted_8 = { class: "mt-2" }; 16const _hoisted_9 = { class: "text-sm text-gray-500" }; 17const _hoisted_10 = { class: "mt-5 sm:mt-6 text-center" }; 18const _hoisted_11 = { 19 type: "button", 20 class: "inline-flex w-1/3 mr-2 justify-center rounded-md bg-theme-color px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-theme-color" 21}; 22const _hoisted_12 = { 23 type: "button", 24 class: "inline-flex w-1/3 justify-center rounded-md bg-theme-color px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-theme-color" 25}; 26const _hoisted_13 = { class: "justify-center text-center content-center" }; 27const _hoisted_14 = { class: "mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-red-100" }; 28const _hoisted_15 = { class: "mt-3 text-center sm:mt-5" }; 29const _hoisted_16 = { class: "text-base font-semibold leading-6 text-gray-900" }; 30const _hoisted_17 = { class: "mt-2" }; 31const _hoisted_18 = { class: "text-sm text-red-600" }; 32const _hoisted_19 = { class: "mt-5 sm:mt-6 text-center" }; 33const _hoisted_20 = { 34 type: "button", 35 class: "inline-flex w-1/3 mr-2 justify-center rounded-md bg-theme-color px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-theme-color" 36}; 37const _sfc_main = { 38 __name: "active-user", 39 async setup(__props) { 40 var _a, _b; 41 let __temp, __restore; 42 const storeAuth = useAuthStore(); 43 const route = useRoute(); 44 const token = route.query && ((_a = route.query) == null ? void 0 : _a.token) ? (_b = route.query) == null ? void 0 : _b.token : null; 45 const showSuccess = ref(false); 46 const showError = ref(false); 47 const showErrorMessage = ref(""); 48 if (token) { 49 let result = ([__temp, __restore] = withAsyncContext(() => storeAuth.makeActivation(token)), __temp = await __temp, __restore(), __temp); 50 if (result.success) { 51 showSuccess.value = true; 52 showError.value = false; 53 showErrorMessage.value = ""; 54 } else { 55 showSuccess.value = false; 56 showError.value = true; 57 showErrorMessage.value = result.error; 58 } 59 } else { 60 showSuccess.value = false; 61 showError.value = true; 62 showErrorMessage.value = "token_not_valid"; 63 } 64 const nuxtApp = useNuxtApp(); 65 useSeo({ 66 title: nuxtApp.$i18n.t("activeUser"), 67 description: nuxtApp.$i18n.t("activeUser") 68 }); 69 return (_ctx, _cache) => { 70 const _component_nuxt_link_locale = __nuxt_component_0; 71 return openBlock(), createElementBlock("div", _hoisted_1, [ 72 createBaseVNode("div", _hoisted_2, [ 73 createBaseVNode("div", _hoisted_3, [ 74 showSuccess.value === true ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [ 75 createBaseVNode("div", _hoisted_4, [ 76 createBaseVNode("div", _hoisted_5, [ 77 createVNode(unref(render), { 78 class: "h-6 w-6 text-green-600", 79 "aria-hidden": "true" 80 }) 81 ]), 82 createBaseVNode("div", _hoisted_6, [ 83 createBaseVNode("div", _hoisted_7, toDisplayString(_ctx.$t("successfullyRegistered")), 1), 84 createBaseVNode("div", _hoisted_8, [ 85 createBaseVNode("p", _hoisted_9, toDisplayString(_ctx.$t("successfullyActivated")), 1) 86 ]) 87 ]) 88 ]), 89 createBaseVNode("div", _hoisted_10, [ 90 createVNode(_component_nuxt_link_locale, { 91 to: "/", 92 title: _ctx.$t("backToHome") 93 }, { 94 default: withCtx(() => [ 95 createBaseVNode("button", _hoisted_11, toDisplayString(_ctx.$t("backToHome")), 1) 96 ]), 97 _: 1 98 }, 8, ["title"]), 99 createVNode(_component_nuxt_link_locale, { 100 to: "/profile", 101 title: _ctx.$t("my_profile") 102 }, { 103 default: withCtx(() => [ 104 createBaseVNode("button", _hoisted_12, toDisplayString(_ctx.$t("my_profile")), 1) 105 ]), 106 _: 1 107 }, 8, ["title"]) 108 ]) 109 ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [ 110 createBaseVNode("div", _hoisted_13, [ 111 createBaseVNode("div", _hoisted_14, [ 112 createVNode(unref(render$1), { 113 class: "h-6 w-6 text-red-600", 114 "aria-hidden": "true" 115 }) 116 ]), 117 createBaseVNode("div", _hoisted_15, [ 118 createBaseVNode("div", _hoisted_16, toDisplayString(_ctx.$t("error")), 1), 119 createBaseVNode("div", _hoisted_17, [ 120 createBaseVNode("p", _hoisted_18, toDisplayString(_ctx.$t(sh
120owErrorMessage.value)), 1) 121 ]) 122 ]) 123 ]), 124 createBaseVNode("div", _hoisted_19, [ 125 createVNode(_component_nuxt_link_locale, { 126 to: "/", 127 title: _ctx.$t("backToHome") 128 }, { 129 default: withCtx(() => [ 130 createBaseVNode("button", _hoisted_20, toDisplayString(_ctx.$t("backToHome")), 1) 131 ]), 132 _: 1 133 }, 8, ["title"]) 134 ]) 135 ], 64)) 136 ]) 137 ]) 138 ]); 139 }; 140 } 141}; 142export { 143 _sfc_main as default 144};
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.