import { defineComponent, ref, reactive, unref, useSSRContext } from 'vue'; import { ssrRenderAttrs, ssrInterpolate, ssrRenderList, ssrRenderAttr, ssrIncludeBooleanAttr, ssrRenderClass } from 'vue/server-renderer'; import { a as useI18n } from './server.mjs'; import '../nitro/nitro.mjs'; import 'node:http'; import 'node:https'; import 'node:events'; import 'node:buffer'; import 'node:fs'; import 'node:path'; import 'node:crypto'; import 'vue-router'; import 'node:url'; import 'pinia'; import '../routes/renderer.mjs'; import 'vue-bundle-renderer/runtime'; import 'unhead/server'; import 'devalue'; import 'unhead/utils'; import 'unhead/plugins'; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "badges", __ssrInlineRender: true, setup(__props) { const { t } = useI18n(); const loading = ref(true); const error = ref(false); const saving = ref(false); const badges = ref([]); const showModal = ref(false); const showDeleteModal = ref(false); const editingBadge = ref(null); const deletingBadge = ref(null); ref(false); const toast = ref(null); const form = reactive({ name: "", description: "", icon_url: "" }); return (_ctx, _push, _parent, _attrs) => { var _a, _b; _push(`
${ssrInterpolate(unref(t)("gamification.badges.subtitle"))}
${ssrInterpolate(unref(t)("gamification.badges.error"))}
| ${ssrInterpolate(unref(t)("gamification.badges.id"))} | ${ssrInterpolate(unref(t)("gamification.badges.name"))} | ${ssrInterpolate(unref(t)("gamification.badges.description"))} | ${ssrInterpolate(unref(t)("gamification.badges.icon"))} | ${ssrInterpolate(unref(t)("gamification.badges.actions"))} |
|---|---|---|---|---|
| ${ssrInterpolate(badge.id)} | ${ssrInterpolate(badge.name)} | ${ssrInterpolate(badge.description || "\u2014")} | `);
if (badge.icon_url) {
_push(` | |
| ${ssrInterpolate(unref(t)("gamification.badges.no_items"))} | ||||
${ssrInterpolate(unref(t)("gamification.badges.delete_confirm"))}
${ssrInterpolate((_a = unref(deletingBadge)) == null ? void 0 : _a.name)}
${ssrInterpolate((_b = unref(deletingBadge)) == null ? void 0 : _b.description)}