1import { D as createVNode, E as createTextVNode, On as unref, _ as createBaseVNode, ct as onMounted, k as defineComponent, mt as openBlock, qt as withCtx, tr as toDisplayString, v as createBlock, vn as ref, y as createCommentVNode } from "./DDznFIea.js"; 2import { p as useRoute } from "./eRVdz19a.js"; 3import { t as VAlert } from "./BH2zZ84v.js"; 4import { n as VCol, t as VRow } from "./BwSgOMna.js"; 5import { T as useAuthStore, i as VContainer, l as VSheet, p as VBtn } from "#entry"; 6import { t as _virtual_public__2Fimages_2FSPOTPOD_logo_default } from "./DX0HEkkg.js"; 7import { t as definePageMeta } from "./D-ZGJ1uu.js"; 8//#endregion 9//#region pages/operator/login.vue 10var login_default = /* @__PURE__ */ defineComponent({ 11 __name: "login", 12 setup(__props) { 13 definePageMeta({ 14 layout: "plain", 15 i18n: false 16 }); 17 const authStore = useAuthStore(); 18 const route = useRoute(); 19 const loading = ref(false); 20 const errorMessage = ref(null); 21 const login = async () => { 22 loading.value = true; 23 errorMessage.value = null; 24 try { 25 await authStore.loginRedirect(); 26 } catch (error) { 27 errorMessage.value = error?.message || "Der Login konnte nicht gestartet werden."; 28 loading.value = false; 29 } 30 }; 31 onMounted(async () => { 32 if (route.query.auto === "1") await login(); 33 }); 34 return (_ctx, _cache) => { 35 return openBlock(), createBlock(VContainer, null, { 36 default: withCtx(() => [createVNode(VRow, { 37 class: "align-center justify-center d-flex", 38 style: { "min-height": "100vh" } 39 }, { 40 default: withCtx(() => [createVNode(VCol, { 41 cols: "12", 42 sm: "8", 43 md: "6", 44 lg: "5" 45 }, { 46 default: withCtx(() => [createVNode(VSheet, { 47 class: "pa-8 mb-5", 48 color: "white", 49 "max-width": "600" 50 }, { 51 default: withCtx(() => [ 52 createVNode(VRow, { 53 class: "mb-5", 54 align: "center" 55 }, { 56 default: withCtx(() => [createVNode(VCol, { cols: "6" }, { 57 default: withCtx(() => [..._cache[0] || (_cache[0] = [createBaseVNode("h2", null, "Verwaltung", -1)])]), 58 _: 1 59 }), createVNode(VCol, { 60 cols: "6", 61 class: "text-right" 62 }, { 63 default: withCtx(() => [..._cache[1] || (_cache[1] = [createBaseVNode("img", { 64 src: _virtual_public__2Fimages_2FSPOTPOD_logo_default, 65 alt: "Spotpod", 66 width: "200" 67 }, null, -1)])]), 68 _: 1 69 })]), 70 _: 1 71 }), 72 _cache[3] || (_cache[3] = createBaseVNode("p", { class: "mb-6" }, "Melden Sie sich mit Ihrem Operator-Konto an.", -1)), 73 unref(errorMessage) ? (openBlock(), createBlock(VAlert, { 74 key: 0, 75 type: "error", 76 class: "mb-5" 77 }, { 78 default: withCtx(() => [createTextVNode(toDisplayString(unref(errorMessage)), 1)]), 79 _: 1 80 })) : createCommentVNode("", true), 81 createVNode(VBtn, { 82 size: "large", 83 loading: unref(loading), 84 onClick: login 85 }, { 86 default: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode(" Login ", -1)])]), 87 _: 1 88 }, 8, ["loading"]) 89 ]), 90 _: 1 91 })]), 92 _: 1 93 })]), 94 _: 1 95 })]), 96 _: 1 97 }); 98 }; 99 } 100}); 101//#endregion 102export { login_default as default };
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.