import { b as buildAssetsURL } from '../../handlers/renderer.mjs';
import { b as buildProps, d as definePropType, a as addUnit, w as withInstallDirective, c as withInstall, i as iconPropType, e as isBoolean, _ as _export_sfc$1, f as _imports_1$2, H as Head, T as Title, M as Meta } from './cross-icon-fJucTZwU.mjs';
import { c as commentListHttp, h as handleDate, _ as _imports_2$1, b as base62ToDecimal, E as ElMessage, d as detailsHttp, a as colourValue, e as handleDeadline, f as detailsSubmitommentListHttp, g as __nuxt_component_3$1, i as ElDialog, u as unvoteCollectHttp, j as __nuxt_component_2 } from './eye-icon-HLphFKDN.mjs';
import { defineComponent, computed, ref, unref, openBlock, createBlock, mergeProps, withCtx, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, renderSlot, createTextVNode, provide, inject, useSSRContext, watch, isRef, createVNode, withModifiers, withAsyncContext, nextTick } from 'vue';
import { u as useTooltipTriggerProps, a as useTooltipContentProps, E as ElTooltip, b as ElInput } from './el-popper-zmdh3AN8.mjs';
import { d as useNamespace } from '../server.mjs';
import { ssrRenderAttrs, ssrRenderStyle, ssrRenderList, ssrRenderClass, ssrInterpolate, ssrRenderComponent, ssrRenderAttr } from 'vue/server-renderer';
import { _ as _export_sfc, u as useHead } from './_plugin-vue_export-helper-EqIDKv09.mjs';
import { useRoute, useRouter } from 'vue-router';
import 'vue-bundle-renderer/runtime';
import '../../nitro/node-server.mjs';
import 'node:http';
import 'node:https';
import 'fs';
import 'path';
import 'node:fs';
import 'node:url';
import 'devalue';
import '@unhead/ssr';
import 'unhead';
import '@unhead/shared';
import 'lodash-unified';
import '@vueuse/core';
import '@vue/shared';
import 'axios';
import 'qs';
import '@vue/reactivity';
import '@popperjs/core';

const _sfc_main$6 = /* @__PURE__ */ defineComponent({
  inheritAttrs: false
});
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
  return renderSlot(_ctx.$slots, "default");
}
var Collection = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$1], ["__file", "collection.vue"]]);
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
  name: "ElCollectionItem",
  inheritAttrs: false
});
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  return renderSlot(_ctx.$slots, "default");
}
var CollectionItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$5, [["render", _sfc_render], ["__file", "collection-item.vue"]]);
const COLLECTION_ITEM_SIGN = `data-el-collection-item`;
const createCollectionWithScope = (name) => {
  const COLLECTION_NAME = `El${name}Collection`;
  const COLLECTION_ITEM_NAME = `${COLLECTION_NAME}Item`;
  const COLLECTION_INJECTION_KEY = Symbol(COLLECTION_NAME);
  const COLLECTION_ITEM_INJECTION_KEY = Symbol(COLLECTION_ITEM_NAME);
  const ElCollection = {
    ...Collection,
    name: COLLECTION_NAME,
    setup() {
      const collectionRef = ref(null);
      const itemMap = /* @__PURE__ */ new Map();
      const getItems = () => {
        const collectionEl = unref(collectionRef);
        if (!collectionEl)
          return [];
        const orderedNodes = Array.from(collectionEl.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));
        const items = [...itemMap.values()];
        return items.sort((a, b) => orderedNodes.indexOf(a.ref) - orderedNodes.indexOf(b.ref));
      };
      provide(COLLECTION_INJECTION_KEY, {
        itemMap,
        getItems,
        collectionRef
      });
    }
  };
  const ElCollectionItem = {
    ...CollectionItem,
    name: COLLECTION_ITEM_NAME,
    setup(_, { attrs }) {
      const collectionItemRef = ref(null);
      inject(COLLECTION_INJECTION_KEY, void 0);
      provide(COLLECTION_ITEM_INJECTION_KEY, {
        collectionItemRef
      });
    }
  };
  return {
    COLLECTION_INJECTION_KEY,
    COLLECTION_ITEM_INJECTION_KEY,
    ElCollection,
    ElCollectionItem
  };
};
const dropdownProps = buildProps({
  trigger: useTooltipTriggerProps.trigger,
  effect: {
    ...useTooltipContentProps.effect,
    default: "light"
  },
  type: {
    type: definePropType(String)
  },
  placement: {
    type: definePropType(String),
    default: "bottom"
  },
  popperOptions: {
    type: definePropType(Object),
    default: () => ({})
  },
  id: String,
  size: {
    type: String,
    default: ""
  },
  splitButton: Boolean,
  hideOnClick: {
    type: Boolean,
    default: true
  },
  loop: {
    type: Boolean,
    default: true
  },
  showTimeout: {
    type: Number,
    default: 150
  },
  hideTimeout: {
    type: Number,
    default: 150
  },
  tabindex: {
    type: definePropType([Number, String]),
    default: 0
  },
  maxHeight: {
    type: definePropType([Number, String]),
    default: ""
  },
  popperClass: {
    type: String,
    default: ""
  },
  disabled: {
    type: Boolean,
    default: false
  },
  role: {
    type: String,
    default: "menu"
  },
  buttonProps: {
    type: definePropType(Object)
  },
  teleported: useTooltipContentProps.teleported
});
buildProps({
  command: {
    type: [Object, String, Number],
    default: () => ({})
  },
  disabled: Boolean,
  divided: Boolean,
  textValue: String,
  icon: {
    type: iconPropType
  }
});
buildProps({
  onKeydown: { type: definePropType(Function) }
});
createCollectionWithScope("Dropdown");
const popoverProps = buildProps({
  trigger: useTooltipTriggerProps.trigger,
  placement: dropdownProps.placement,
  disabled: useTooltipTriggerProps.disabled,
  visible: useTooltipContentProps.visible,
  transition: useTooltipContentProps.transition,
  popperOptions: dropdownProps.popperOptions,
  tabindex: dropdownProps.tabindex,
  content: useTooltipContentProps.content,
  popperStyle: useTooltipContentProps.popperStyle,
  popperClass: useTooltipContentProps.popperClass,
  enterable: {
    ...useTooltipContentProps.enterable,
    default: true
  },
  effect: {
    ...useTooltipContentProps.effect,
    default: "light"
  },
  teleported: useTooltipContentProps.teleported,
  title: String,
  width: {
    type: [String, Number],
    default: 150
  },
  offset: {
    type: Number,
    default: void 0
  },
  showAfter: {
    type: Number,
    default: 0
  },
  hideAfter: {
    type: Number,
    default: 200
  },
  autoClose: {
    type: Number,
    default: 0
  },
  showArrow: {
    type: Boolean,
    default: true
  },
  persistent: {
    type: Boolean,
    default: true
  },
  "onUpdate:visible": {
    type: Function
  }
});
const popoverEmits = {
  "update:visible": (value) => isBoolean(value),
  "before-enter": () => true,
  "before-leave": () => true,
  "after-enter": () => true,
  "after-leave": () => true
};
const updateEventKeyRaw = `onUpdate:visible`;
const __default__ = defineComponent({
  name: "ElPopover"
});
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
  ...__default__,
  props: popoverProps,
  emits: popoverEmits,
  setup(__props, { expose, emit }) {
    const props = __props;
    const onUpdateVisible = computed(() => {
      return props[updateEventKeyRaw];
    });
    const ns = useNamespace("popover");
    const tooltipRef = ref();
    const popperRef = computed(() => {
      var _a;
      return (_a = unref(tooltipRef)) == null ? void 0 : _a.popperRef;
    });
    const style = computed(() => {
      return [
        {
          width: addUnit(props.width)
        },
        props.popperStyle
      ];
    });
    const kls = computed(() => {
      return [ns.b(), props.popperClass, { [ns.m("plain")]: !!props.content }];
    });
    const gpuAcceleration = computed(() => {
      return props.transition === `${ns.namespace.value}-fade-in-linear`;
    });
    const hide = () => {
      var _a;
      (_a = tooltipRef.value) == null ? void 0 : _a.hide();
    };
    const beforeEnter = () => {
      emit("before-enter");
    };
    const beforeLeave = () => {
      emit("before-leave");
    };
    const afterEnter = () => {
      emit("after-enter");
    };
    const afterLeave = () => {
      emit("update:visible", false);
      emit("after-leave");
    };
    expose({
      popperRef,
      hide
    });
    return (_ctx, _cache) => {
      return openBlock(), createBlock(unref(ElTooltip), mergeProps({
        ref_key: "tooltipRef",
        ref: tooltipRef
      }, _ctx.$attrs, {
        trigger: _ctx.trigger,
        placement: _ctx.placement,
        disabled: _ctx.disabled,
        visible: _ctx.visible,
        transition: _ctx.transition,
        "popper-options": _ctx.popperOptions,
        tabindex: _ctx.tabindex,
        content: _ctx.content,
        offset: _ctx.offset,
        "show-after": _ctx.showAfter,
        "hide-after": _ctx.hideAfter,
        "auto-close": _ctx.autoClose,
        "show-arrow": _ctx.showArrow,
        "aria-label": _ctx.title,
        effect: _ctx.effect,
        enterable: _ctx.enterable,
        "popper-class": unref(kls),
        "popper-style": unref(style),
        teleported: _ctx.teleported,
        persistent: _ctx.persistent,
        "gpu-acceleration": unref(gpuAcceleration),
        "onUpdate:visible": unref(onUpdateVisible),
        onBeforeShow: beforeEnter,
        onBeforeHide: beforeLeave,
        onShow: afterEnter,
        onHide: afterLeave
      }), {
        content: withCtx(() => [
          _ctx.title ? (openBlock(), createElementBlock("div", {
            key: 0,
            class: normalizeClass(unref(ns).e("title")),
            role: "title"
          }, toDisplayString(_ctx.title), 3)) : createCommentVNode("v-if", true),
          renderSlot(_ctx.$slots, "default", {}, () => [
            createTextVNode(toDisplayString(_ctx.content), 1)
          ])
        ]),
        default: withCtx(() => [
          _ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
        ]),
        _: 3
      }, 16, ["trigger", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "persistent", "gpu-acceleration", "onUpdate:visible"]);
    };
  }
});
var Popover = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__file", "popover.vue"]]);
const attachEvents = (el, binding) => {
  const popperComponent = binding.arg || binding.value;
  const popover = popperComponent == null ? void 0 : popperComponent.popperRef;
  if (popover) {
    popover.triggerRef = el;
  }
};
var PopoverDirective = {
  mounted(el, binding) {
    attachEvents(el, binding);
  },
  updated(el, binding) {
    attachEvents(el, binding);
  }
};
const VPopover = "popover";
const ElPopoverDirective = withInstallDirective(PopoverDirective, VPopover);
const ElPopover = withInstall(Popover, {
  directive: ElPopoverDirective
});
const __nuxt_component_5 = defineComponent({
  name: "ClientOnly",
  inheritAttrs: false,
  // eslint-disable-next-line vue/require-prop-types
  props: ["fallback", "placeholder", "placeholderTag", "fallbackTag"],
  setup(_, { slots, attrs }) {
    const mounted = ref(false);
    return (props) => {
      var _a;
      if (mounted.value) {
        return (_a = slots.default) == null ? void 0 : _a.call(slots);
      }
      const slot = slots.fallback || slots.placeholder;
      if (slot) {
        return slot();
      }
      const fallbackStr = props.fallback || props.placeholder || "";
      const fallbackTag = props.fallbackTag || props.placeholderTag || "span";
      return createElementBlock(fallbackTag, attrs, fallbackStr);
    };
  }
});
const _sfc_main$3 = {
  __name: "Report",
  __ssrInlineRender: true,
  props: ["reportToken"],
  setup(__props) {
    const reasonList = ["\u5E7F\u544A", "\u8FB1\u9A82", "\u91CD\u590D\u53D1\u9001", "\u4E0D\u826F\u4FE1\u606F", "\u5176\u4ED6"];
    inject("reportAlertShow");
    let checkList = ref([]);
    ref(false);
    let alertText = ref("");
    return (_ctx, _push, _parent, _attrs) => {
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "alert-form" }, _attrs))} data-v-b9676cea><div class="comments reports" data-v-b9676cea><div class="head" data-v-b9676cea><span style="${ssrRenderStyle({ "display": "flex", "align-items": "center" })}" data-v-b9676cea><img style="${ssrRenderStyle({ "width": "25px", "margin-right": "7px" })}" src="//app.gter.net/image/gter/offer/img/exclamationpoint.png" data-v-b9676cea>\u4E3E\u62A5\u6295\u8BC9 </span><div class="close icon-close iconfont" data-v-b9676cea></div></div><div class="form" data-v-b9676cea><div class="radio-area flexacenter" data-v-b9676cea><!--[-->`);
      ssrRenderList(reasonList, (s, i) => {
        _push(`<div class="${ssrRenderClass([{ pitch: unref(checkList).includes(s) }, "radio-area-item flexacenter"])}" data-v-b9676cea><div class="radio-area-frame" data-v-b9676cea></div> ${ssrInterpolate(s)}</div>`);
      });
      _push(`<!--]--></div><div class="text-box" data-v-b9676cea><textarea placeholder="\u8BF7\u8F93\u5165\u4E3E\u62A5\u539F\u56E0" maxlength="200" data-v-b9676cea>${ssrInterpolate(unref(alertText))}</textarea><div class="text-num" data-v-b9676cea>${ssrInterpolate(200 - unref(alertText).length)}</div></div><div class="footer" data-v-b9676cea><button type="button" data-v-b9676cea>\u53D6\u6D88</button><button type="submit" data-v-b9676cea>\u63D0\u4EA4</button></div></div></div></div>`);
    };
  }
};
const _sfc_setup$3 = _sfc_main$3.setup;
_sfc_main$3.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/Report.vue");
  return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
};
const __nuxt_component_3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-b9676cea"]]);
const _imports_0$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAEZ0lEQVR4nO2ZUU4bMRCGvUi8gcgNmp6giwCJN8wJmp6g9AQNJ0h6AsIJGk7Q9ARZ3pAAZTkBuUGD4A3B9rMW0kzWXhaSTRPiTxrNLHhizx/biZ1ALTleAGyp8QJgS00hAXZ3d6v39/d7QRBU1QKQJEl/dXX19OzsrK9eIMCc7OzshLzYEabVAsIbFmGH5+fnMY9WnAJQ/MHj4+NPwoVnZWXlGyK0lQWrAFtbWzXcL+w98eXy8rKDF2QE0FpXbm9vrwkr2HtisL6+/jGKogHxkIwA29vbddb8EeG7w+wHFxcXLcIhNgF6CBASjnPCWmqxlmLiuYW9K2TvqhN+xQQIECPAJuGQjACs/wQ3zhXrJ8QvDNQR4z5hAuoQNYsHA4k2AY5JrOMXBupo4b5jAuoQNYsHA4kZAZg6P5g6TbVAsJSbLOUGocAL4AXwAoiaxYPBC+AF8AIkOIEXwAvgBfACuASgfY3/f6czjY+xNifGY/7lRKd3DkeENWyARZzVD8fP6qPofzlapXcVEfd+h657v5kIQCeuuwPn4UmnhVwTVrBRrBcWBp3m9AirSjJAhE2bCIytfAFo+wdXwTJwd7DJTIgJBeS0leWs/sQJAzxQY1CMS2gztt+MrUYoIKdcAehA00GX0Ao5h+S0CAXk9cgLCTOQk7mwMJATkbNHaKNPUR/xAnKa5DQIBbQNcEPEg6GoAE83Lz1CK8wA600sA4sY2B5hBvo5pR+txiCnQ85nQhtXFJURlJwmOQ1CAW1FzeLBUFQAA237SqkP2Dg3rM3wNWvT4OoHsfOu6I8pqo4XuPqhrahZPBgoKsEJXAOjE00nHcINbIjr3X+GPmLcJ2yUKwYX4q3Ql20WXLFx6siycdK+SfsGoY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xXK4xRYmsGsRxCBayGlck/N9H+WmN5a41oBrGeagCvMoNYmwOoFNlX31oGsXI11+8hSvwv6jKAKc4QKnGENd58BrFGqHR3eVlXye+vv1HizdZlAHWZXvaCpksTLNQzg65lev1D6PN5/qvvE6z8lL/gtbVCop4ZDCnFGIm8l66S/z1DiV4ZvOs+BoB33ccA8K77F/DNI1Ad1eJHAAAAAElFTkSuQmCC";
const _imports_2 = "" + buildAssetsURL("title.Acc43PUE.png");
const _imports_3$1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='14px'%20height='14px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20x='-50.00%25'%20y='-50.00%25'%20width='200.00%25'%20height='200.00%25'%20filterUnits='objectBoundingBox'%20id='filter572'%3e%3cfeColorMatrix%20type='matrix'%20values='1%200%200%200%200.4%200%201%200%200%200.4%200%200%201%200%200.4%200%200%200%201%200%20'%20in='SourceGraphic'%20/%3e%3c/filter%3e%3c/defs%3e%3cg%20transform='matrix(1%200%200%201%20-1686%20-5323%20)'%3e%3cimage%20preserveAspectRatio='none'%20style='overflow:visible'%20width='14'%20height='14'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAIdQTFRFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA92IrIQAAACx0Uk5TAB5tuNj0bB0bmfz9qiBQ8/JOb24cGp6ba7e12/HZ12n7nJgZSU1MFZGitmptU/ZgAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAAASAAAAEgARslrPgAAAQ1JREFUeNrt1utOwlAQReEC5WKrnGKrItaK4t3z/s+nicYIHacN2ZHErO8nk7UDDSEkCQAAAAAAAAAAAPBpMByl43E6mkwP0syOsvglPz7pN6Vs5iH+UCz6bCmb0zxuycvuLWUz33n949L5eZRNFWJLceZvSZvzaLjwx5TNILMOWeVtSZsympbemLS5tA8rb0zaXNmH1BuTNsE+BG9M2vxyqPcY26+5tg+NNyZtDv4lnNiHG29M2kzNH4i1+6OibW6tw13ikjazov16vfHHtM196+HkD0kHbVPu/lEYdm2pm8XW06kfu7fUzdPz+vttvWz6bMmbavnahNCs3qp+U3/ZAAAAAAAAAAAA4J97B6Y13hOEznw5AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIwLTAzLTE4VDEyOjI5OjA2KzA4OjAwpDFvtAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0wMy0xOFQxMjoyOTowNiswODowMNVs1wgAAABJdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uX2V3MGNucnU1MjUvZ2VuZ2R1by5zdmfa+p/PAAAAAElFTkSuQmCC'%20x='1686px'%20y='5323px'%20filter='url(%23filter572)'%20/%3e%3c/g%3e%3c/svg%3e";
const _imports_4$1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='14px'%20height='13px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20x='-50.00%25'%20y='-50.00%25'%20width='200.00%25'%20height='200.00%25'%20filterUnits='objectBoundingBox'%20id='filter571'%3e%3cfeColorMatrix%20type='matrix'%20values='1%200%200%200%200.4%200%201%200%200%200.4%200%200%201%200%200.4%200%200%200%201%200%20'%20in='SourceGraphic'%20/%3e%3c/filter%3e%3c/defs%3e%3cg%20transform='matrix(1%200%200%201%20-1740%20-5324%20)'%3e%3cimage%20preserveAspectRatio='none'%20style='overflow:visible'%20width='14'%20height='13'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA4CAYAAABNGP5yAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAQKADAAQAAAABAAAAOAAAAACP8+m+AAADhUlEQVRoBe2aS4hPURzHZ7zfj4USmTGTkGcodiRRNh5JNsooO7NhgyJSyoayIDbySFlYkLLwyAaRR5Ty2DCTJPIYeYfx+U5z9O/M+f/N/zf3/q//vfdX3+4959zze3zP6557T01NxqU2EP8M8prAPDAaVLN8x/lWcBEcA+9AURlCyVHwG7SnEG3EtAEERcHfAmkM3I9pd4iBUxkJ3pGxwpGgOWAuUOv7cpuM60DjqFplOI4vA2O8AJ6TngB+Kf8QcMy46zbyQhOknq82GYbDV4GLzV0Xu0AeeoV3XUGKrg3E4k/uOxVfL+AvdWIrbfKMgF54QdUrLQL6ewXfvHRakp+8QHorLQIyLTkBmW5+gs98D+jTwx4wivpDe6jDr/6WDL23V0SsBDTi3XkwJSYvr6B3Ofgck/6/aq1DQG+KcQUv5xaB9bqJW6wEdLxExOzc+Jj1d6i3EvCkAs49qoAN8yqwB+cugx8xOPkFnSfBiRh0d1FpnQRfoUm7Kb1OarcVpbyPUtm/dFkJcHq1n66ow85wVFfrHBCV/cT15AQk3gQJO5D3gIQbIHHzme8B1mVQxK0DC8GABJuxFdsHgb75mcRKQDPWDpgsRl9pNSonAdO3TOsQWBJ9HGaNddQ070ytBMSxBzAzQEVT68uglYDj1NWPhv9BbuLEY6sj1jngHAZngwVgoNV4BPVa0HEWmBvDSoB8f9AJ3VetWIdA1QbsO54T4DOStXTeA7LW4n68eQ+AkXaPlb5eOi1Jv7E73h2U+caLcJqXTkNSh6UavEBeu/QZbtQLHPSld74rTMl1X0F8Ls41iq0WrAIioVC+ktgPLgH/aEnhc1Hda3OlP0E/y1SoHqweW2zY1lO2FqwEhfKRRB1oU6Z+buhMoGMmqatOq80E3ZURPHgfWPzd7huZTIbmAouyKOvoUOYO0J09yiajv/r1HtQ/nYKnRqVRkiBdd8BUUEo2Uliu3dPUKbl7HcQDm4G1a5XrUKnn9ZFjK9AQDclgMq+BUjpUJj0XwFLQRTQJFhMdfRkLZChOGYdyzdKNRYzoHHMTCH30kP9a3kaCkHwgswWUO7mGdMWap265t9PRUItqVdoCivUGitIhswjjHgiRoLwbQF+AUy39iG4X0IoQIuIl+XEPS0wkL3rB0QfPEAlzknevMh5ozGu913E5R4R6gFarTMlEoj0MjgC9tEUmfwCaJfF0KbQc/QAAAABJRU5ErkJggg=='%20x='1740px'%20y='5324px'%20filter='url(%23filter571)'%20/%3e%3c/g%3e%3c/svg%3e";
const _imports_3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAQKADAAQAAAABAAAAQAAAAABGUUKwAAAD30lEQVR4AeVa7XXaMBSVDANkBDxB6QRxJmg6QVmANp2gZAOaDBCYoGwQugGZAGUD+F9Q7zPIxxAZy7ZkG0vn5Ejoy/fe954+7HDWgrRbf/8FGPeMySFyIRmf9MOneR3QeB0PufQMkJ+AOAlwlvgqYMEdD6ebswarPwOrs5WaTP7QD5PDPdu/6tvs1bZAAHaTTUcODx6S3aNqS6MhINcP0Z7tcq0csF6IUBBVyerGt8EDdLhO6iASFkg3qVEBEOORGS3+zaxf8V6NCmAOVw4RLhfWCvOZzns2KoBkMjoHdOH38EJb6abGBCCLYgW+NUW+Y7uBad8i/RoTACCjIkA544Mi/U37NiYALDoyBemyXyMCwP0HcP8vLomZzt2IANj+JqYAXferXQCyP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9Sn06MdyUDrYITch6ZeLxfKNa6QCQnDUCNfhCvUs2QbOgkK/JcVlbWm539a6KxTajqkvLP+UU0DExoJAsA/yipGwlefVMGoA4s6UTAbqBq94SaRCfgct5Om9N9O23ZsuU63vfTAKiTxl5S8itSzitt9nhSkn8uGoDstm/fPkx/XKA6MomfVvTa+HpdHoRrYAXXAIuyORjy9K3BZIwC9Hh0+XDCKaiOPh2iLI3K+aBDUHYqAHWurq7OrK2t1WwthqNWQ926S94fugnyJcDbn3GS+u10AIEH/ZbKTD7FLGqTZwX6bpaN2OvAWArw8JLqjM+0Awic+m+UycjT4DFwur7asNnPRGxixrcAvA45bUp30MgBCOYqjtZxgBkLGP1UeSOsYzHbN9BeqIWP0ecwffaxgav5Hyp/+u1dLv4D4SL5jJQdUmEAAAAASUVORK5CYII=";
const _sfc_main$2 = {
  __name: "DetailsComments",
  __ssrInlineRender: true,
  props: { token: String },
  setup(__props, { expose: __expose }) {
    let haveVotedValue = inject("haveVotedValue");
    let isNeedLogin = inject("isNeedLogin");
    const goLogin = inject("goLogin");
    const props = __props;
    watch(
      () => props.token,
      () => getCommentList(),
      { immediate: false }
    );
    const sendMessage = inject("sendMessage");
    const TAHomePage = inject("TAHomePage");
    let postCommentFocusState = ref(false);
    let commentCount = ref(0);
    let commentComments = ref(0);
    let commentPage = ref(1);
    let commentList = ref([]);
    let commentLoading = false;
    let isEmptyState = ref(false);
    const getCommentList = () => {
      if (commentPage.value == 0 || commentLoading || !props.token)
        return;
      commentLoading = true;
      commentListHttp({
        page: commentPage.value,
        childlimit: 1,
        limit: 10,
        token: props.token
      }).then((res) => {
        if (res.code != 200)
          return;
        let data = res.data;
        commentCount.value = data["count"];
        if (data["count"] == 0)
          isEmptyState.value = true;
        else
          isEmptyState.value = false;
        commentList.value = commentList.value.concat(data["data"]);
        commentComments.value = data["comments"];
        if (commentList.value.length == data["count"])
          commentPage.value = 0;
        else
          commentPage.value++;
      }).finally(() => commentLoading = false);
    };
    const closeAnswerCommentsChild = () => {
      commentList.value.forEach((ele) => {
        ele["childState"] = false;
        if (ele["child"] && ele["child"].length != 0)
          ele["child"].forEach((el) => el["childState"] = false);
      });
    };
    let commentInputTop = ref("");
    let commentInput = ref("");
    const submitAnswerComments = (content, index, i) => {
      if (isNeedLogin.value) {
        goLogin();
        return;
      }
      const targetCommentList = [...commentList.value];
      let parentid = null;
      if (i != null)
        parentid = targetCommentList[index]["child"][i]["id"];
      else if (index != null)
        parentid = targetCommentList[index]["id"];
      if (!content) {
        ElMessage.error("\u8BF7\u586B\u5199\u8BC4\u8BBA\u5185\u5BB9");
        return;
      }
      detailsSubmitommentListHttp({
        content,
        token: props.token,
        parentid
      }).then((res) => {
        var _a, _b;
        if (res.code != 200) {
          ElMessage.error(res.message);
          return;
        }
        let data = res.data;
        if (i != null) {
          console.log("data", data);
          let targetData = {
            id: data["commentid"],
            content,
            isauthor: 1,
            islike: 0,
            likenum: 0,
            reply: {
              nickname: targetCommentList[index]["child"][i]["nickname"]
            },
            voteoption: haveVotedValue.value || null,
            ...data,
            // ...data.data
            timestampnow: "\u521A\u521A",
            uin: (_a = data.data) == null ? void 0 : _a.uin
          };
          targetCommentList[index]["child"].unshift(targetData);
          targetCommentList[index]["childnum"]++;
        } else {
          let targetData = {
            id: data["commentid"],
            content,
            isauthor: 1,
            islike: 0,
            likenum: 0,
            ...data,
            // ...data.data,
            timestampnow: "\u521A\u521A",
            uin: (_b = data.data) == null ? void 0 : _b.uin,
            child: [],
            voteoption: haveVotedValue.value || null
          };
          if (index != null) {
            targetCommentList[index]["child"].unshift(targetData);
            targetCommentList[index]["childnum"]++;
          } else {
            targetCommentList.unshift(targetData);
            commentCount.value++;
          }
        }
        commentComments.value++;
        commentList.value = targetCommentList;
        commentInputTop.value = "";
        commentInput.value = "";
        reviewsPopoverInput.value = "";
        reviewsPopoverState.value = false;
        isEmptyState.value = false;
        closeAnswerCommentsChild();
        if (bottomNavigationState) {
          bottomNavigationState = false;
          floorCommentBtn("back");
        }
        ElMessage.success(res.message);
      });
    };
    let reportAlertShow = ref(false);
    let reportToken = ref("");
    provide("reportAlertShow", reportAlertShow);
    const changeCommentVoteoption = (voteoption) => {
      const uin = (void 0)["userInfoWin"]["uin"];
      commentList.value.forEach((element) => {
        if (uin == element["uin"])
          element["voteoption"] = voteoption;
        element.child.forEach((el) => {
          if (uin == element["uin"])
            el["voteoption"] = voteoption;
        });
      });
    };
    const wipeCommentVoteoption = () => {
      const uin = (void 0)["userInfoWin"]["uin"];
      commentList.value.forEach((element) => {
        if (uin == element["uin"])
          element["voteoption"] = null;
        element.child.forEach((el) => {
          if (uin == element["uin"])
            el["voteoption"] = null;
        });
      });
    };
    let reviewsPopoverState = ref(false);
    let reviewsPopoverInput = ref("");
    const reviewsComment = (value) => {
      reviewsPopoverState.value = true;
    };
    let bottomNavigationState = false;
    const bottomNavigationBar = (value) => {
      bottomNavigationState = true;
      submitAnswerComments(value);
    };
    const floorCommentBtn = inject("floorCommentBtn");
    const postInputRef = ref(null);
    const postCommentFocusBlur = () => {
      const refref = postInputRef.value;
      setTimeout(() => {
        postCommentFocusState.value = false;
        nextTick(() => {
          let targetDom = refref.querySelector(".el-textarea__inner");
          targetDom.style.height = "41px";
        });
      }, 200);
    };
    __expose({ changeCommentVoteoption, wipeCommentVoteoption, reviewsComment, bottomNavigationBar });
    return (_ctx, _push, _parent, _attrs) => {
      const _component_el_input = ElInput;
      const _component_Empty = __nuxt_component_3$1;
      const _component_el_popover = ElPopover;
      const _component_Report = __nuxt_component_3;
      const _component_el_dialog = ElDialog;
      _push(`<!--[--><div class="comment-title flexacenter" data-v-e6d47bc0> \u8BA8\u8BBA <span class="comment-amount" data-v-e6d47bc0>${ssrInterpolate(unref(commentComments) || "")}</span></div><div class="${ssrRenderClass([{ "post-comment-focus": unref(postCommentFocusState) }, "post-comment"])}" data-v-e6d47bc0><div class="post-comment-input" data-v-e6d47bc0>`);
      _push(ssrRenderComponent(_component_el_input, {
        class: "post-input flex1",
        type: "textarea",
        autosize: unref(postCommentFocusState),
        maxlength: 500,
        "show-word-limit": "",
        placeholder: "\u8BF4\u8BF4\u4F60\u7684\u60F3\u6CD5\u6216\u7591\u95EE\u2026",
        modelValue: unref(commentInputTop),
        "onUpdate:modelValue": ($event) => isRef(commentInputTop) ? commentInputTop.value = $event : commentInputTop = $event,
        onBlur: postCommentFocusBlur,
        onFocus: ($event) => isRef(postCommentFocusState) ? postCommentFocusState.value = true : postCommentFocusState = true
      }, null, _parent));
      _push(`</div><div class="post-ok flexcenter" data-v-e6d47bc0>\u53D1\u9001</div></div>`);
      if (unref(isEmptyState)) {
        _push(`<div class="empty-box" data-v-e6d47bc0>`);
        _push(ssrRenderComponent(_component_Empty, { hint: "\u8BF4\u8BF4\u4F60\u7684\u89C2\u70B9\u5427" }, null, _parent));
        _push(`</div>`);
      } else {
        _push(`<!--[--><div class="comment-list" data-v-e6d47bc0><!--[-->`);
        ssrRenderList(unref(commentList), (item, index) => {
          _push(`<div class="comment-item flexflex" data-v-e6d47bc0>`);
          _push(ssrRenderComponent(_component_el_popover, {
            placement: "bottom-start",
            width: 140,
            trigger: "click",
            "popper-class": "avatar-box-popper",
            "show-arrow": false,
            visible: item["popoverState"],
            "onUpdate:visible": ($event) => item["popoverState"] = $event
          }, {
            reference: withCtx((_, _push2, _parent2, _scopeId) => {
              if (_push2) {
                _push2(`<img class="comment-avatar"${ssrRenderAttr("src", item["avatar"])} data-v-e6d47bc0${_scopeId}>`);
              } else {
                return [
                  createVNode("img", {
                    class: "comment-avatar",
                    src: item["avatar"]
                  }, null, 8, ["src"])
                ];
              }
            }),
            default: withCtx((_, _push2, _parent2, _scopeId) => {
              if (_push2) {
                if (item["uin"]) {
                  _push2(`<div class="avatar-box flexflex" data-v-e6d47bc0${_scopeId}><a class="avatar-item flexcenter" target="_blank" data-v-e6d47bc0${_scopeId}><img class="avatar-icon"${ssrRenderAttr("src", _imports_0$1)} data-v-e6d47bc0${_scopeId}> \u53D1\u9001\u4FE1\u606F </a><a class="avatar-item flexcenter" target="_blank" data-v-e6d47bc0${_scopeId}><img class="avatar-icon"${ssrRenderAttr("src", _imports_1$1)} data-v-e6d47bc0${_scopeId}> TA\u7684\u4E3B\u9875 </a></div>`);
                } else {
                  _push2(`<!---->`);
                }
              } else {
                return [
                  item["uin"] ? (openBlock(), createBlock("div", {
                    key: 0,
                    class: "avatar-box flexflex"
                  }, [
                    createVNode("a", {
                      class: "avatar-item flexcenter",
                      target: "_blank",
                      onClick: withModifiers(($event) => unref(sendMessage)(item["uin"]), ["prevent"])
                    }, [
                      createVNode("img", {
                        class: "avatar-icon",
                        src: _imports_0$1
                      }),
                      createTextVNode(" \u53D1\u9001\u4FE1\u606F ")
                    ], 8, ["onClick"]),
                    createVNode("a", {
                      class: "avatar-item flexcenter",
                      target: "_blank",
                      onClick: withModifiers(($event) => unref(TAHomePage)(item["uin"]), ["prevent"])
                    }, [
                      createVNode("img", {
                        class: "avatar-icon",
                        src: _imports_1$1
                      }),
                      createTextVNode(" TA\u7684\u4E3B\u9875 ")
                    ], 8, ["onClick"])
                  ])) : createCommentVNode("", true)
                ];
              }
            }),
            _: 2
          }, _parent));
          _push(`<div class="comment-content flex1" data-v-e6d47bc0><div class="comment-header flexacenter" data-v-e6d47bc0><div class="comment-header-left flexacenter" data-v-e6d47bc0><div class="comments-username" data-v-e6d47bc0>${ssrInterpolate(item["nickname"])}</div><div class="comments-time" data-v-e6d47bc0>${ssrInterpolate(item["timestampnow"] || ("handleDate" in _ctx ? _ctx.handleDate : unref(handleDate))(item["timestamp"]))}</div>`);
          if (item["isauthor"]) {
            _push(`<div class="comments-identity" data-v-e6d47bc0>\u4F5C\u8005</div>`);
          } else {
            _push(`<!---->`);
          }
          if (item["groupid"] === 14) {
            _push(`<img class="comments-title"${ssrRenderAttr("src", _imports_2)} data-v-e6d47bc0>`);
          } else {
            _push(`<!---->`);
          }
          _push(`</div><div class="comment-header-right flexacenter" data-v-e6d47bc0><div class="menu-box flexacenter" data-v-e6d47bc0><img class="menu-icon"${ssrRenderAttr("src", _imports_3$1)} data-v-e6d47bc0><div class="report-box flexcenter" data-v-e6d47bc0>\u4E3E\u62A5</div></div><img class="comment-icon" title="\u56DE\u590D"${ssrRenderAttr("src", _imports_4$1)} data-v-e6d47bc0><div class="flexacenter like-box" data-v-e6d47bc0>`);
          if (item["islike"] == 1) {
            _push(`<img class="like-icon"${ssrRenderAttr("src", _imports_3)} data-v-e6d47bc0>`);
          } else {
            _push(`<img class="like-icon"${ssrRenderAttr("src", _imports_6$1)} data-v-e6d47bc0>`);
          }
          _push(`<div class="like-quantity" data-v-e6d47bc0>${ssrInterpolate(item["likenum"] || 0)}</div></div></div></div><div class="comment-text" data-v-e6d47bc0>${ssrInterpolate(item["content"])}</div>`);
          if (item.voteoption) {
            _push(`<div class="alreadyVoted" data-v-e6d47bc0>\u5DF2\u6295\uFF1A${ssrInterpolate(item.voteoption)}</div>`);
          } else {
            _push(`<!---->`);
          }
          if (item["childState"]) {
            _push(`<div class="comments-input-box flexacenter" data-v-e6d47bc0><div class="comments-input flexflex" data-v-e6d47bc0><textarea class="flex1" placeholder="\u56DE\u590D" data-v-e6d47bc0>${ssrInterpolate(unref(commentInput))}</textarea><div class="comments-btn flexcenter" data-v-e6d47bc0>\u53D1\u9001</div></div><img class="forkfork"${ssrRenderAttr("src", _imports_1$2)} data-v-e6d47bc0></div>`);
          } else {
            _push(`<!---->`);
          }
          if (item["child"].length > 0) {
            _push(`<div class="child-comments" data-v-e6d47bc0><!--[-->`);
            ssrRenderList(item["child"], (ite, i) => {
              var _a, _b;
              _push(`<div class="comment-item flexflex" data-v-e6d47bc0>`);
              _push(ssrRenderComponent(_component_el_popover, {
                placement: "bottom-start",
                width: 140,
                trigger: "click",
                "popper-class": "avatar-box-popper",
                "show-arrow": false,
                visible: ite["popoverState"],
                "onUpdate:visible": ($event) => ite["popoverState"] = $event
              }, {
                reference: withCtx((_, _push2, _parent2, _scopeId) => {
                  if (_push2) {
                    _push2(`<img class="comment-avatar"${ssrRenderAttr("src", ite["avatar"])} data-v-e6d47bc0${_scopeId}>`);
                  } else {
                    return [
                      createVNode("img", {
                        class: "comment-avatar",
                        src: ite["avatar"]
                      }, null, 8, ["src"])
                    ];
                  }
                }),
                default: withCtx((_, _push2, _parent2, _scopeId) => {
                  if (_push2) {
                    if (ite["uin"]) {
                      _push2(`<div class="avatar-box flexflex" data-v-e6d47bc0${_scopeId}><a class="avatar-item flexcenter" target="_blank" data-v-e6d47bc0${_scopeId}><img class="avatar-icon"${ssrRenderAttr("src", _imports_0$1)} data-v-e6d47bc0${_scopeId}> \u53D1\u9001\u4FE1\u606F </a><a class="avatar-item flexcenter" target="_blank" data-v-e6d47bc0${_scopeId}><img class="avatar-icon"${ssrRenderAttr("src", _imports_1$1)} data-v-e6d47bc0${_scopeId}> TA\u7684\u4E3B\u9875 </a></div>`);
                    } else {
                      _push2(`<!---->`);
                    }
                  } else {
                    return [
                      ite["uin"] ? (openBlock(), createBlock("div", {
                        key: 0,
                        class: "avatar-box flexflex"
                      }, [
                        createVNode("a", {
                          class: "avatar-item flexcenter",
                          target: "_blank",
                          onClick: withModifiers(($event) => unref(sendMessage)(ite["uin"]), ["prevent"])
                        }, [
                          createVNode("img", {
                            class: "avatar-icon",
                            src: _imports_0$1
                          }),
                          createTextVNode(" \u53D1\u9001\u4FE1\u606F ")
                        ], 8, ["onClick"]),
                        createVNode("a", {
                          class: "avatar-item flexcenter",
                          target: "_blank",
                          onClick: withModifiers(($event) => unref(TAHomePage)(ite["uin"]), ["prevent"])
                        }, [
                          createVNode("img", {
                            class: "avatar-icon",
                            src: _imports_1$1
                          }),
                          createTextVNode(" TA\u7684\u4E3B\u9875 ")
                        ], 8, ["onClick"])
                      ])) : createCommentVNode("", true)
                    ];
                  }
                }),
                _: 2
              }, _parent));
              _push(`<div class="comment-content flex1" data-v-e6d47bc0><div class="comment-header flexacenter" data-v-e6d47bc0><div class="comment-header-left flexacenter" data-v-e6d47bc0><div class="comments-username" data-v-e6d47bc0>${ssrInterpolate(ite["nickname"])}</div><div class="comments-time" data-v-e6d47bc0>${ssrInterpolate(ite["timestampnow"] || ("handleDate" in _ctx ? _ctx.handleDate : unref(handleDate))(ite["timestamp"]))}</div>`);
              if (ite["isauthor"]) {
                _push(`<div class="comments-identity" data-v-e6d47bc0>\u4F5C\u8005</div>`);
              } else {
                _push(`<!---->`);
              }
              if (ite["groupid"] == 14) {
                _push(`<img class="comments-title"${ssrRenderAttr("src", _imports_2)} data-v-e6d47bc0>`);
              } else {
                _push(`<!---->`);
              }
              _push(`</div><div class="comment-header-right flexacenter" data-v-e6d47bc0><div class="menu-box flexacenter" data-v-e6d47bc0><img class="menu-icon"${ssrRenderAttr("src", _imports_3$1)} data-v-e6d47bc0><div class="report-box flexcenter" data-v-e6d47bc0>\u4E3E\u62A5</div></div><img class="comment-icon" title="\u56DE\u590D"${ssrRenderAttr("src", _imports_4$1)} data-v-e6d47bc0><div class="flexacenter like-box" data-v-e6d47bc0>`);
              if (ite["islike"] == 1) {
                _push(`<img class="like-icon"${ssrRenderAttr("src", _imports_3)} data-v-e6d47bc0>`);
              } else {
                _push(`<img class="like-icon"${ssrRenderAttr("src", _imports_6$1)} data-v-e6d47bc0>`);
              }
              _push(`<div class="like-quantity" data-v-e6d47bc0>${ssrInterpolate(ite["likenum"] || 0)}</div></div></div></div><div class="comment-text" data-v-e6d47bc0>`);
              if ((_a = ite == null ? void 0 : ite.reply) == null ? void 0 : _a.nickname) {
                _push(`<div class="comments-reply" data-v-e6d47bc0>@${ssrInterpolate((_b = ite == null ? void 0 : ite.reply) == null ? void 0 : _b.nickname)}</div>`);
              } else {
                _push(`<!---->`);
              }
              _push(` ${ssrInterpolate(ite["content"])}</div>`);
              if (ite.voteoption) {
                _push(`<div class="alreadyVoted" data-v-e6d47bc0>\u5DF2\u6295\uFF1A${ssrInterpolate(ite.voteoption)}</div>`);
              } else {
                _push(`<!---->`);
              }
              if (ite["childState"]) {
                _push(`<div class="comments-input-box flexacenter" data-v-e6d47bc0><div class="comments-input flexflex" data-v-e6d47bc0><textarea class="flex1" placeholder="\u56DE\u590D" data-v-e6d47bc0>${ssrInterpolate(unref(commentInput))}</textarea><div class="comments-btn flexcenter" data-v-e6d47bc0>\u53D1\u9001</div></div><img class="forkfork"${ssrRenderAttr("src", _imports_1$2)} data-v-e6d47bc0></div>`);
              } else {
                _push(`<!---->`);
              }
              _push(`</div></div>`);
            });
            _push(`<!--]--></div>`);
          } else {
            _push(`<!---->`);
          }
          if (item["childnum"] > item["child"].length) {
            _push(`<div class="comments-also flexacenter" data-v-e6d47bc0><div class="" data-v-e6d47bc0>\u8FD8\u6709${ssrInterpolate(item["childnum"] - item["child"].length)}\u6761\u56DE\u590D</div><img class="also-icon"${ssrRenderAttr("src", _imports_8)} data-v-e6d47bc0></div>`);
          } else {
            _push(`<!---->`);
          }
          _push(`</div></div>`);
        });
        _push(`<!--]--></div>`);
        if (unref(commentPage) == 0 && unref(commentList).length != 0) {
          _push(`<div class="comment-end" data-v-e6d47bc0>\xB7 End \xB7</div>`);
        } else {
          _push(`<!---->`);
        }
        _push(`<!--]-->`);
      }
      if (unref(reportAlertShow)) {
        _push(ssrRenderComponent(_component_Report, { reportToken: unref(reportToken) }, null, _parent));
      } else {
        _push(`<!---->`);
      }
      _push(ssrRenderComponent(_component_el_dialog, {
        class: "default-popup automatic-reviews-popup",
        modelValue: unref(reviewsPopoverState),
        "onUpdate:modelValue": ($event) => isRef(reviewsPopoverState) ? reviewsPopoverState.value = $event : reviewsPopoverState = $event,
        width: "720px",
        "align-center": "",
        autosize: "",
        "close-on-click-modal": false
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<div class="automatic-header" data-v-e6d47bc0${_scopeId}><div class="automatic-title" data-v-e6d47bc0${_scopeId}>\u8BF4\u8BF4\u60A8\u7684\u6295\u7968\u7406\u7531</div><div class="automatic-have" data-v-e6d47bc0${_scopeId}>\u5DF2\u6295\uFF1A${ssrInterpolate(unref(haveVotedValue))}</div></div>`);
            _push2(ssrRenderComponent(_component_el_input, {
              class: "automatic-input",
              placeholder: "\u8BF7\u8F93\u5165\u2026",
              modelValue: unref(reviewsPopoverInput),
              "onUpdate:modelValue": ($event) => isRef(reviewsPopoverInput) ? reviewsPopoverInput.value = $event : reviewsPopoverInput = $event,
              type: "textarea"
            }, null, _parent2, _scopeId));
            _push2(`<div class="automatic-bottom flexflex" data-v-e6d47bc0${_scopeId}><div class="automatic-send flexcenter" data-v-e6d47bc0${_scopeId}>\u53D1\u9001</div></div>`);
          } else {
            return [
              createVNode("div", { class: "automatic-header" }, [
                createVNode("div", { class: "automatic-title" }, "\u8BF4\u8BF4\u60A8\u7684\u6295\u7968\u7406\u7531"),
                createVNode("div", { class: "automatic-have" }, "\u5DF2\u6295\uFF1A" + toDisplayString(unref(haveVotedValue)), 1)
              ]),
              createVNode(_component_el_input, {
                class: "automatic-input",
                placeholder: "\u8BF7\u8F93\u5165\u2026",
                modelValue: unref(reviewsPopoverInput),
                "onUpdate:modelValue": ($event) => isRef(reviewsPopoverInput) ? reviewsPopoverInput.value = $event : reviewsPopoverInput = $event,
                type: "textarea"
              }, null, 8, ["modelValue", "onUpdate:modelValue"]),
              createVNode("div", { class: "automatic-bottom flexflex" }, [
                createVNode("div", {
                  class: "automatic-send flexcenter",
                  onClick: ($event) => submitAnswerComments(unref(reviewsPopoverInput))
                }, "\u53D1\u9001", 8, ["onClick"])
              ])
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`<!--]-->`);
    };
  }
};
const _sfc_setup$2 = _sfc_main$2.setup;
_sfc_main$2.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/DetailsComments.vue");
  return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
};
const __nuxt_component_6 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-e6d47bc0"]]);
const _imports_0 = "data:image/png;base64,iVBORw0KG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82Wkyb8wRUgGs+ae4NV4yIPT9W/xWMNWyYec5fhcC/HEAFFgIxG8Af87ODx0insS7WXg8oF5HIpHzduDpcxy/BgKBwE9VVZM49yzgnwH+ol14NhFu7GbAzYCbATEZ+Ad9hheLGRG4rAAAAABJRU5ErkJggg==";
const _imports_1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='20px'%20height='20px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-1500%20-25%20)'%3e%3cpath%20d='M%203.63636363636364%2014.5454545454545%20L%205.45454545454545%2014.5454545454545%20L%205.45454545454545%2016.3636363636364%20L%203.63636363636364%2016.3636363636364%20L%203.63636363636364%2014.5454545454545%20Z%20M%203.63636363636364%203.63636363636364%20L%205.45454545454545%203.63636363636364%20L%205.45454545454545%205.45454545454545%20L%203.63636363636364%205.45454545454545%20L%203.63636363636364%203.63636363636364%20Z%20M%2014.5454545454545%203.63636363636364%20L%2016.3636363636364%203.63636363636364%20L%2016.3636363636364%205.45454545454545%20L%2014.5454545454545%205.45454545454545%20L%2014.5454545454545%203.63636363636364%20Z%20M%201.81818181818182%2012.7272727272727%20L%201.81818181818182%2018.1676136363636%20L%207.27272727272727%2018.1676136363636%20L%207.27272727272727%2012.7272727272727%20L%201.81818181818182%2012.7272727272727%20Z%20M%201.81818181818182%201.81818181818182%20L%201.81818181818182%207.27272727272727%20L%207.27272727272727%207.27272727272727%20L%207.27272727272727%201.81818181818182%20L%201.81818181818182%201.81818181818182%20Z%20M%2012.7272727272727%201.81818181818182%20L%2012.7272727272727%207.27272727272727%20L%2018.1818181818182%207.27272727272727%20L%2018.1818181818182%201.81818181818182%20L%2012.7272727272727%201.81818181818182%20Z%20M%200%2010.9090909090909%20L%209.09090909090909%2010.9090909090909%20L%209.09090909090909%2020%20L%200%2020%20L%200%2010.9090909090909%20Z%20M%2014.5454545454545%2018.1818181818182%20L%2016.3636363636364%2018.1818181818182%20L%2016.3636363636364%2020%20L%2014.5454545454545%2020%20L%2014.5454545454545%2018.1818181818182%20Z%20M%2018.1818181818182%2018.1818181818182%20L%2020%2018.1818181818182%20L%2020%2020%20L%2018.1818181818182%2020%20L%2018.1818181818182%2018.1818181818182%20Z%20M%2018.1818181818182%2010.9090909090909%20L%2020%2010.9090909090909%20L%2020%2016.3636363636364%20L%2014.5454545454545%2016.3636363636364%20L%2014.5454545454545%2014.5454545454545%20L%2012.7272727272727%2014.5454545454545%20L%2012.7272727272727%2020%20L%2010.9090909090909%2020%20L%2010.9090909090909%2010.9090909090909%20L%2016.3636363636364%2010.9090909090909%20L%2016.3636363636364%2012.7272727272727%20L%2018.1818181818182%2012.7272727272727%20L%2018.1818181818182%2010.9090909090909%20Z%20M%200%200%20L%209.09090909090909%200%20L%209.09090909090909%209.09090909090909%20L%200%209.09090909090909%20L%200%200%20Z%20M%2010.9090909090909%200%20L%2020%200%20L%2020%209.09090909090909%20L%2010.9090909090909%209.09090909090909%20L%2010.9090909090909%200%20Z%20'%20fill-rule='nonzero'%20fill='%23000000'%20stroke='none'%20transform='matrix(1%200%200%201%201500%2025%20)'%20/%3e%3c/g%3e%3c/svg%3e";
const _imports_4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAQKADAAQAAAABAAAAQAAAAABGUUKwAAAE8ElEQVR4Ae1a24tPURQexjAxuZVcm1FESqHc80CDkhIpCsULcnlQ3kSUFy9480L+BeWdPGBGQiPEw8wowjAz7nLn+6bZ0/7t+fb5/Y5z5sw+J6vWnHO+vfY+a3177cvZv6mqGjwZgVfvhV6BvoR+h76AXoJuhg6FFlZWILJW6J8IvYWyGdDCyVpE9AUaFbwpY2bMKhID0xBMZ4XBGxJaYF9TFB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QEeB/Bf0iTANNWiFeVAX3jnw7HyYC8TYJTEF+D6JWKCAg5rUVMElK9T8O+CZAPvlWAZZVKqGSp8d+BoNrswOIMAbteHu5VBtxwHS8qASMQKH8LcKVk/LPQR4BK6zxNgtz9kQRXSsY/C30EuBWjnhVZUfZZlKnx/w0v5r/mlAgJyFPPljgf8aAIYPD9/gGTBITYgxGxlS2qgYWaAPuNf7aUxhAo61GGBsPxrjNQ/tLsiiSA6a8ygOvlZ6eFUXhWDZesq06dLB8ZB4+/1PE3U78eyp/f+wkrFl2ZFV7hyUiRCXiI+NSZQA8hnANae+6K+acZYTVC+a+3XtmGEh4SFCkL+K94x6G10EgxewAeHZEpLiF5FZ7/cbPzCHql9x6X//KfgSgG/gK9mIkzqc2oKwAAAABJRU5ErkJggg==";
const _imports_5 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16px'%20height='15px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-1406%20-827%20)'%3e%3cpath%20d='M%2015.4615384615385%205.37807183364839%20C%2015.8205128205128%205.43478260869565%2016%205.57971014492754%2016%205.81285444234405%20C%2016%205.95148078134846%2015.9166666666667%206.10270951480781%2015.75%206.26654064272212%20L%2012.2596153846154%209.6124763705104%20L%2013.0865384615385%2014.3383742911153%20C%2013.0929487179487%2014.3824826717076%2013.0961538461538%2014.4454946439824%2013.0961538461538%2014.5274102079395%20C%2013.0961538461538%2014.6597353497164%2013.0625%2014.7715816005041%2012.9951923076923%2014.8629489603025%20C%2012.9278846153846%2014.9543163201008%2012.8301282051282%2015%2012.7019230769231%2015%20C%2012.5801282051282%2015%2012.4519230769231%2014.9621928166352%2012.3173076923077%2014.8865784499055%20L%208%2012.65595463138%20L%203.68269230769231%2014.8865784499055%20C%203.54166666666667%2014.9621928166352%203.41346153846154%2015%203.29807692307692%2015%20C%203.16346153846154%2015%203.0625%2014.9543163201008%202.99519230769231%2014.8629489603025%20C%202.92788461538462%2014.7715816005041%202.89423076923077%2014.6597353497164%202.89423076923077%2014.5274102079395%20C%202.89423076923077%2014.4896030245747%202.90064102564103%2014.4265910522999%202.91346153846154%2014.3383742911153%20L%203.74038461538462%209.6124763705104%20L%200.240384615384615%206.26654064272212%20C%200.0801282051282051%206.09640831758034%200%205.94517958412098%200%205.81285444234405%20C%200%205.57971014492754%200.179487179487179%205.43478260869565%200.538461538461538%205.37807183364839%20L%205.36538461538461%204.68809073724008%20L%207.52884615384615%200.387523629489602%20C%207.65064102564103%200.1291745431632%207.80769230769231%200%208%200%20C%208.19230769230769%200%208.34935897435897%200.1291745431632%208.47115384615385%200.387523629489602%20L%2010.6346153846154%204.68809073724008%20L%2015.4615384615385%205.37807183364839%20Z%20'%20fill-rule='nonzero'%20fill='%23fa6b11'%20stroke='none'%20transform='matrix(1%200%200%201%201406%20827%20)'%20/%3e%3c/g%3e%3c/svg%3e";
const _imports_6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAAEk0lEQVRoBd2YW6hVVRSGzXtw8pJkYeU5aZqVIWKgYdDxAkUpYqGJgdhDEliKCYqYGfRi2YV6SBQUxKAbPYRXEMQEfSuULkIXFBMpE6zUvKX1/bLH4W+59t5rudfu7O2Af8855hxzjH/MOddcc+0uXZpcutWRf298TwTnwKk6xqmb6814/gecAG2gqWQSbEU+sL6p2EP2CyOvJC6Au0BTSDssY+a9XNsU7CG5q0wCWoU20NDyMOx81t9FP29taxqaPeR2GtnfqLeAddamZFpBQ8o4WPnsLymxFGFfhfcakj2ktoNIQGf/TUZ0g/WdpX679TVEdQwsLoNIYFmC1VD0i9b/TqK/09UtRu4k9b4pjDaajV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aj0vWvpJ6ITIdL8lgoeuk+RSMyBlJL6uXgf4MDl/JUn4LkRV4STqXrodZ+7YW0XP0OjgDkjG+q8Wxj12ecL4X/RE3KKCuk+x94KdWlpdlptA6SfRduhVMyTTi2o2GMFSHwC7QDq5/+RffN6xPYNWQnAAAAABJRU5ErkJggg==";
const _imports_10 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='14px'%20height='15px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-1534%20-28%20)'%3e%3cpath%20d='M%2013.648097826087%206.63350449293967%20C%2013.8826992753623%206.8581514762516%2014%207.14698331193838%2014%207.5%20C%2014%207.84659820282413%2013.8826992753623%208.13863928112965%2013.648097826087%208.37612323491656%20L%207.45652173913044%2014.6437740693196%20C%207.20923913043478%2014.8812580231065%206.92074275362319%2015%206.59103260869565%2015%20C%206.26766304347826%2015%205.98233695652174%2014.8812580231065%205.73505434782609%2014.6437740693196%20L%205.02173913043478%2013.9216944801027%20C%204.78079710144928%2013.6777920410783%204.66032608695652%2013.3857509627728%204.66032608695652%2013.0455712451861%20C%204.66032608695652%2012.7053915275995%204.78079710144928%2012.413350449294%205.02173913043478%2012.1694480102696%20L%207.80842391304348%209.34852374839538%20L%201.11277173913043%209.34852374839538%20C%200.783061594202899%209.34852374839538%200.515172101449275%209.22817715019255%200.309103260869565%208.98748395378691%20C%200.103034420289855%208.74679075738126%200%208.45635430038511%200%208.11617458279846%20L%200%206.88382541720154%20C%200%206.54364569961489%200.103034420289855%206.25320924261874%200.309103260869565%206.01251604621309%20C%200.515172101449275%205.77182284980745%200.783061594202899%205.65147625160462%201.11277173913043%205.65147625160462%20L%207.80842391304348%205.65147625160462%20L%205.02173913043478%202.8209242618742%20C%204.78079710144928%202.58985879332478%204.66032608695652%202.301026957638%204.66032608695652%201.95442875481386%20C%204.66032608695652%201.60783055198973%204.78079710144928%201.31899871630295%205.02173913043478%201.08793324775353%20L%205.73505434782609%200.365853658536586%20C%205.97599637681159%200.121951219512194%206.26132246376812%200%206.59103260869565%200%20C%206.92708333333333%200%207.21557971014493%200.121951219512194%207.45652173913044%200.365853658536586%20L%2013.648097826087%206.63350449293967%20Z%20'%20fill-rule='nonzero'%20fill='%23ffffff'%20stroke='none'%20transform='matrix(1%200%200%201%201534%2028%20)'%20/%3e%3c/g%3e%3c/svg%3e";
const _sfc_main$1 = {
  __name: "DetailsArea",
  __ssrInlineRender: true,
  setup(__props) {
    inject("isNeedLogin");
    inject("goLogin");
    const userInfoWin = inject("userInfoWin");
    let info = inject("info");
    let islike = inject("islike");
    let iscollection = inject("iscollection");
    let qrcode = inject("qrcode");
    inject("token");
    inject("topHeadRef");
    const isLoaded = inject("isLoaded");
    let floorRightState = ref(false);
    computed(() => {
      return false;
    });
    ref(false);
    const floorCommentInput = inject("floorCommentInput");
    inject("floorCommentBtn");
    return (_ctx, _push, _parent, _attrs) => {
      var _a;
      const _component_el_popover = ElPopover;
      const _component_ClientOnly = __nuxt_component_5;
      _push(`<div${ssrRenderAttrs(mergeProps({
        class: ["floor-area flexacenter", { "show": unref(isLoaded) }]
      }, _attrs))} data-v-ac3c500a><div class="floor-content flexacenter" data-v-ac3c500a><div class="floor-right flexacenter" data-v-ac3c500a> \u624B\u673A\u67E5\u770B\u8BE5\u6295\u7968 <img class="arrows-icon"${ssrRenderAttr("src", _imports_0)} data-v-ac3c500a>`);
      _push(ssrRenderComponent(_component_el_popover, {
        placement: "bottom",
        width: "160px",
        trigger: "hover",
        visible: unref(floorRightState),
        "onUpdate:visible": ($event) => isRef(floorRightState) ? floorRightState.value = $event : floorRightState = $event,
        "popper-style": "padding: 24px;border-radius: 18px;"
      }, {
        reference: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<div class="QR-code-ball flexcenter" data-v-ac3c500a${_scopeId}><img class=""${ssrRenderAttr("src", _imports_1)} data-v-ac3c500a${_scopeId}></div>`);
          } else {
            return [
              createVNode("div", { class: "QR-code-ball flexcenter" }, [
                createVNode("img", {
                  class: "",
                  src: _imports_1
                })
              ])
            ];
          }
        }),
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<img class="examine-code"${ssrRenderAttr("src", unref(qrcode))} data-v-ac3c500a${_scopeId}>`);
          } else {
            return [
              createVNode("img", {
                class: "examine-code",
                src: unref(qrcode)
              }, null, 8, ["src"])
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`</div><div class="floor-left flexacenter" data-v-ac3c500a><div class="item flexacenter" style="${ssrRenderStyle({ "cursor": "auto" })}" data-v-ac3c500a><img class="icon"${ssrRenderAttr("src", _imports_2$1)} data-v-ac3c500a> ${ssrInterpolate(unref(info)["views"])}</div><div class="item flexacenter" data-v-ac3c500a>`);
      if (unref(islike) == 1) {
        _push(`<img class="icon"${ssrRenderAttr("src", _imports_3)} data-v-ac3c500a>`);
      } else {
        _push(`<img class="icon"${ssrRenderAttr("src", _imports_4)} data-v-ac3c500a>`);
      }
      _push(` ${ssrInterpolate(unref(info)["likes"] || "")}</div><div class="item flexacenter" data-v-ac3c500a>`);
      if (unref(iscollection) == 1) {
        _push(`<img class="icon"${ssrRenderAttr("src", _imports_5)} data-v-ac3c500a>`);
      } else {
        _push(`<img class="icon"${ssrRenderAttr("src", _imports_6)} data-v-ac3c500a>`);
      }
      _push(` ${ssrInterpolate(unref(info)["favs"] || "\u6536\u85CF")}</div>`);
      _push(ssrRenderComponent(_component_ClientOnly, null, {}, _parent));
      _push(`</div><div class="floor-middle flexacenter comment-box" data-v-ac3c500a><img class="avatar"${ssrRenderAttr("src", (_a = unref(userInfoWin)) == null ? void 0 : _a.avatar)} data-v-ac3c500a><input class="comment-input flex1" type="text"${ssrRenderAttr("value", unref(floorCommentInput))} placeholder="\u8BF4\u8BF4\u4F60\u7684\u60F3\u6CD5\u6216\u7591\u95EE\u2026" data-v-ac3c500a><div class="comment-btn flexcenter" data-v-ac3c500a><img class="comment-btn-icon"${ssrRenderAttr("src", _imports_10)} data-v-ac3c500a></div></div></div></div>`);
    };
  }
};
const _sfc_setup$1 = _sfc_main$1.setup;
_sfc_main$1.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/DetailsArea.vue");
  return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
};
const __nuxt_component_7 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ac3c500a"]]);
const _sfc_main = {
  __name: "[id]",
  __ssrInlineRender: true,
  async setup(__props) {
    let __temp, __restore;
    useHead({ script: [{ src: "https://app.gter.net/bottom?tpl=header&menukey=vote" }, { src: "https://app.gter.net/bottom?tpl=footer", body: true }] });
    const route = useRoute();
    const router = useRouter();
    let isNeedLogin = inject("isNeedLogin");
    const goLogin = inject("goLogin");
    let id = route.params.id;
    const uniqidEnd = id.charAt(id.length - 1);
    const uniqidIndex = base62ToDecimal(uniqidEnd) % 6;
    let info = ref({});
    let qrcode = ref("");
    let iscollection = ref(0);
    let islike = ref(0);
    let ismyself = ref(0);
    ref(false);
    let isvote = ref(0);
    let option = ref([]);
    let token = ref("");
    let cancelPopoverState = ref(false);
    let isLoaded = ref(false);
    let haveVotedValue = ref("");
    provide("info", info);
    provide("islike", islike);
    provide("iscollection", iscollection);
    provide("token", token);
    provide("qrcode", qrcode);
    provide("isLoaded", isLoaded);
    provide("haveVotedValue", haveVotedValue);
    const getDetails = async () => {
      detailsHttp({ uniqid: id }).then((res) => {
        var _a;
        if (res.code != 200) {
          ElMessage.error(res.message);
          return;
        }
        let data = res.data;
        info.value = data["info"];
        isvote.value = data["isvote"];
        iscollection.value = data["iscollection"];
        islike.value = data["islike"];
        ismyself.value = data["ismyself"];
        option.value = data["option"];
        qrcode.value = (_a = data.share) == null ? void 0 : _a.qrcode;
        token.value = data["token"];
        seo.value = data.seo;
        isLoaded.value = true;
        data["option"].forEach((element) => {
          if (element.selected)
            haveVotedValue.value = element.value;
        });
      });
    };
    provide("getDetails", getDetails);
    const sendMessage = (uin) => {
      redirectToExternalWebsite(`https://bbs.gter.net/home.php?mod=space&showmsg=1&uid=${uin}`);
    };
    const TAHomePage = (uin) => {
      redirectToExternalWebsite(`https://bbs.gter.net/home.php?mod=space&uid=${uin}`);
    };
    const redirectToExternalWebsite = (url) => {
      const link = (void 0).createElement("a");
      link.href = url;
      link.target = "_blank";
      link.click();
    };
    provide("sendMessage", sendMessage);
    provide("TAHomePage", TAHomePage);
    const commentsRef = ref(null);
    let voteLoading = false;
    let unvoteVoteIndex = null;
    const unvoteVote = () => {
      if (isNeedLogin.value) {
        goLogin();
        return;
      }
      const token2 = option.value[unvoteVoteIndex].id;
      if (voteLoading)
        return;
      voteLoading = true;
      topHeadRef.value.count = {};
      unvoteCollectHttp({ token: token2 }).then((res) => {
        if (res.code != 200) {
          ElMessage.error(res.message);
          return;
        }
        let data = res.data;
        let optionList = data["optionList"] || [];
        optionList.forEach((element) => {
          element["selected"] = 0;
        });
        option.value = optionList;
        isvote.value = 0;
        info.value.votes = data["votes"];
        cancelPopoverState.value = false;
        commentsRef.value.wipeCommentVoteoption();
      }).finally(() => voteLoading = false);
    };
    const clearAllData = () => {
      info.value = {};
      qrcode.value = "";
      iscollection.value = 0;
      islike.value = 0;
      ismyself.value = 0;
      isvote.value = 0;
      option.value = [];
    };
    provide("clearAllData", clearAllData);
    const unbookmarkSamePage = () => {
      iscollection.value = 0;
      info.value.favs--;
    };
    provide("unbookmarkSamePage", unbookmarkSamePage);
    const unbookmark = () => router.push("/index.html");
    provide("unbookmark", unbookmark);
    let seo = ref({});
    let topHeadRef = ref(null);
    provide("topHeadRef", topHeadRef);
    let floorCommentInput = ref("");
    const floorCommentBtn = (type) => {
      if (type == "input")
        commentsRef.value.bottomNavigationBar(floorCommentInput.value);
      else
        floorCommentInput.value = "";
    };
    provide("floorCommentInput", floorCommentInput);
    provide("floorCommentBtn", floorCommentBtn);
    const refreshDataOnly = () => {
      clearAllData();
      getDetails();
    };
    provide("refreshDataOnly", refreshDataOnly);
    try {
      if (true) {
        [__temp, __restore] = withAsyncContext(() => detailsHttp({ uniqid: id }).then((res) => {
          if (res.code != 200) {
            ElMessage.error(res.message);
            router.push("/index.html");
            return;
          }
          let data = res.data;
          info.value = data["info"];
          option.value = data["option"];
          isvote.value = data["isvote"];
          seo.value = data.seo;
        })), await __temp, __restore();
      }
    } catch (error) {
    }
    return (_ctx, _push, _parent, _attrs) => {
      const _component_Head = Head;
      const _component_Title = Title;
      const _component_Meta = Meta;
      const _component_TopHead = __nuxt_component_2;
      const _component_el_popover = ElPopover;
      const _component_ClientOnly = __nuxt_component_5;
      const _component_DetailsComments = __nuxt_component_6;
      const _component_DetailsArea = __nuxt_component_7;
      const _component_el_dialog = ElDialog;
      _push(`<!--[-->`);
      _push(ssrRenderComponent(_component_Head, null, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(ssrRenderComponent(_component_Title, null, {
              default: withCtx((_2, _push3, _parent3, _scopeId2) => {
                if (_push3) {
                  _push3(`${ssrInterpolate(`${unref(seo)["title"] || "\u6295\u7968"} - \u5BC4\u6258\u5929\u4E0B\u51FA\u56FD\u7559\u5B66\u7F51`)}`);
                } else {
                  return [
                    createTextVNode(toDisplayString(`${unref(seo)["title"] || "\u6295\u7968"} - \u5BC4\u6258\u5929\u4E0B\u51FA\u56FD\u7559\u5B66\u7F51`), 1)
                  ];
                }
              }),
              _: 1
            }, _parent2, _scopeId));
            _push2(ssrRenderComponent(_component_Meta, {
              name: "keyword",
              content: unref(seo)["keyword"]
            }, null, _parent2, _scopeId));
            _push2(ssrRenderComponent(_component_Meta, {
              name: "description",
              content: unref(seo)["description"]
            }, null, _parent2, _scopeId));
          } else {
            return [
              createVNode(_component_Title, null, {
                default: withCtx(() => [
                  createTextVNode(toDisplayString(`${unref(seo)["title"] || "\u6295\u7968"} - \u5BC4\u6258\u5929\u4E0B\u51FA\u56FD\u7559\u5B66\u7F51`), 1)
                ]),
                _: 1
              }),
              createVNode(_component_Meta, {
                name: "keyword",
                content: unref(seo)["keyword"]
              }, null, 8, ["content"]),
              createVNode(_component_Meta, {
                name: "description",
                content: unref(seo)["description"]
              }, null, 8, ["content"])
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(ssrRenderComponent(_component_TopHead, {
        ref_key: "topHeadRef",
        ref: topHeadRef
      }, null, _parent));
      _push(`<div class="content flexflex" style="${ssrRenderStyle({ "--main-color": ("colourValue" in _ctx ? _ctx.colourValue : unref(colourValue))[uniqidIndex]["main"], "--bg-color": ("colourValue" in _ctx ? _ctx.colourValue : unref(colourValue))[uniqidIndex]["bg"], "--bc-color": ("colourValue" in _ctx ? _ctx.colourValue : unref(colourValue))[uniqidIndex]["bc"] })}" data-v-cdce8afa><div class="header flexacenter" data-v-cdce8afa><span data-v-cdce8afa>${ssrInterpolate(unref(info).title)}</span></div><div class="left" data-v-cdce8afa><div class="info flexacenter" data-v-cdce8afa><div class="info-left flexacenter" data-v-cdce8afa>`);
      _push(ssrRenderComponent(_component_el_popover, {
        placement: "bottom-start",
        width: 140,
        trigger: "click",
        "popper-class": "avatar-box-popper",
        "show-arrow": false
      }, {
        reference: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<div class="flexcenter" data-v-cdce8afa${_scopeId}><img class="avatar"${ssrRenderAttr("src", unref(info).avatar)} data-v-cdce8afa${_scopeId}><div class="username" data-v-cdce8afa${_scopeId}>${ssrInterpolate(unref(info).nickname)}</div></div>`);
          } else {
            return [
              createVNode("div", { class: "flexcenter" }, [
                createVNode("img", {
                  class: "avatar",
                  src: unref(info).avatar
                }, null, 8, ["src"]),
                createVNode("div", { class: "username" }, toDisplayString(unref(info).nickname), 1)
              ])
            ];
          }
        }),
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            if (unref(info)["uin"]) {
              _push2(`<div class="avatar-box flexflex" data-v-cdce8afa${_scopeId}><a class="avatar-item flexcenter" target="_blank" data-v-cdce8afa${_scopeId}><img class="avatar-icon"${ssrRenderAttr("src", _imports_0$1)} data-v-cdce8afa${_scopeId}> \u53D1\u9001\u4FE1\u606F </a><a class="avatar-item flexcenter" target="_blank" data-v-cdce8afa${_scopeId}><img class="avatar-icon"${ssrRenderAttr("src", _imports_1$1)} data-v-cdce8afa${_scopeId}> TA\u7684\u4E3B\u9875 </a></div>`);
            } else {
              _push2(`<!---->`);
            }
          } else {
            return [
              unref(info)["uin"] ? (openBlock(), createBlock("div", {
                key: 0,
                class: "avatar-box flexflex"
              }, [
                createVNode("a", {
                  class: "avatar-item flexcenter",
                  target: "_blank",
                  onClick: withModifiers(($event) => sendMessage(unref(info)["uin"]), ["prevent"])
                }, [
                  createVNode("img", {
                    class: "avatar-icon",
                    src: _imports_0$1
                  }),
                  createTextVNode(" \u53D1\u9001\u4FE1\u606F ")
                ], 8, ["onClick"]),
                createVNode("a", {
                  class: "avatar-item flexcenter",
                  target: "_blank",
                  onClick: withModifiers(($event) => TAHomePage(unref(info)["uin"]), ["prevent"])
                }, [
                  createVNode("img", {
                    class: "avatar-icon",
                    src: _imports_1$1
                  }),
                  createTextVNode(" TA\u7684\u4E3B\u9875 ")
                ], 8, ["onClick"])
              ])) : createCommentVNode("", true)
            ];
          }
        }),
        _: 1
      }, _parent));
      if (unref(info).releasetime) {
        _push(`<div class="post-time" data-v-cdce8afa>${ssrInterpolate(("handleDate" in _ctx ? _ctx.handleDate : unref(handleDate))(unref(info).releasetime))}\u53D1\u5E03</div>`);
      } else {
        _push(`<!---->`);
      }
      _push(`</div>`);
      if (unref(info)["status"] == 1) {
        _push(`<div class="info-right flexacenter" data-v-cdce8afa><div class="cut-off" data-v-cdce8afa>${ssrInterpolate(("handleDeadline" in _ctx ? _ctx.handleDeadline : unref(handleDeadline))(unref(info).deadline))}\u7ED3\u675F</div><div class="state" data-v-cdce8afa>\u8FDB\u884C\u4E2D</div></div>`);
      } else {
        _push(`<div class="info-right flexacenter" data-v-cdce8afa>`);
        if (unref(info).deadline) {
          _push(`<div class="cut-off" data-v-cdce8afa>\u5DF2\u4E8E${ssrInterpolate(unref(info).deadline)}\u7ED3\u675F</div>`);
        } else {
          _push(`<!---->`);
        }
        _push(`<div class="state over" data-v-cdce8afa>\u5DF2\u7ED3\u675F</div></div>`);
      }
      _push(`</div><div class="message" data-v-cdce8afa>${ssrInterpolate(unref(info).message)}</div><div class="hint" data-v-cdce8afa>${ssrInterpolate(unref(info).status == 1 && unref(isvote) == 0 ? `\u5DF2\u6709 ${unref(info).votes || 0} \u4EBA\u53C2\u4E0E\uFF0C` : `\u5171\u6709 ${unref(info).votes || 0} \u4EBA\u53C2\u4E0E`)} ${ssrInterpolate(`${unref(isvote) == 1 ? "\u4F60\u5DF2\u6295\u7968" : unref(info).status == 1 ? "\u53C2\u4E0E\u6295\u7968\u5373\u53EF\u67E5\u770B\u5B9E\u65F6\u7ED3\u679C" : ""}`)}</div>`);
      _push(ssrRenderComponent(_component_ClientOnly, null, {}, _parent));
      _push(`</div><div class="right" data-v-cdce8afa>`);
      _push(ssrRenderComponent(_component_DetailsComments, {
        ref_key: "commentsRef",
        ref: commentsRef,
        token: unref(token)
      }, null, _parent));
      _push(`</div>`);
      _push(ssrRenderComponent(_component_DetailsArea, null, null, _parent));
      _push(`</div>`);
      _push(ssrRenderComponent(_component_el_dialog, {
        class: "default-popup options-popup",
        modelValue: unref(cancelPopoverState),
        "onUpdate:modelValue": ($event) => isRef(cancelPopoverState) ? cancelPopoverState.value = $event : cancelPopoverState = $event,
        width: "488px",
        "align-center": ""
      }, {
        default: withCtx((_, _push2, _parent2, _scopeId) => {
          if (_push2) {
            _push2(`<div class="options-popup-text" data-v-cdce8afa${_scopeId}>\u60A8\u8981\u53D6\u6D88\u6295\u7968\u5417\uFF1F</div><div class="options-popup-btn flexflex" data-v-cdce8afa${_scopeId}><div class="options-popup-item options-no flexcenter" data-v-cdce8afa${_scopeId}>\u53D6\u6D88\u6295\u7968</div><div class="options-popup-item options-yes flexcenter" data-v-cdce8afa${_scopeId}>\u4E0D\u53D6\u6D88</div></div>`);
          } else {
            return [
              createVNode("div", { class: "options-popup-text" }, "\u60A8\u8981\u53D6\u6D88\u6295\u7968\u5417\uFF1F"),
              createVNode("div", { class: "options-popup-btn flexflex" }, [
                createVNode("div", {
                  class: "options-popup-item options-no flexcenter",
                  onClick: unvoteVote
                }, "\u53D6\u6D88\u6295\u7968"),
                createVNode("div", {
                  class: "options-popup-item options-yes flexcenter",
                  onClick: ($event) => isRef(cancelPopoverState) ? cancelPopoverState.value = false : cancelPopoverState = false
                }, "\u4E0D\u53D6\u6D88", 8, ["onClick"])
              ])
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(`<!--]-->`);
    };
  }
};
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/details/[id].vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const _id_ = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cdce8afa"]]);

export { _id_ as default };
//# sourceMappingURL=_id_-O43xUFp9.mjs.map
