import { H as Head, T as Title } from './cross-icon-fJucTZwU.mjs';
import { b as base62ToDecimal, k as getListHttp, a as colourValue, e as handleDeadline, _ as _imports_2, E as ElMessage, j as __nuxt_component_2, g as __nuxt_component_3, v as vLoading } from './eye-icon-HLphFKDN.mjs';
import { _ as _export_sfc, u as useHead } from './_plugin-vue_export-helper-EqIDKv09.mjs';
import { useSSRContext, inject, ref, computed, watch, withAsyncContext, withCtx, createTextVNode, createVNode, unref, mergeProps, nextTick } from 'vue';
import { u as useRouter } from '../server.mjs';
import { ssrRenderComponent, ssrInterpolate, ssrRenderAttr, ssrRenderAttrs, ssrGetDirectiveProps, ssrRenderList, ssrRenderClass, ssrRenderStyle } from 'vue/server-renderer';
import { useRoute } from 'vue-router';
import 'lodash-unified';
import '@vueuse/core';
import '@vue/shared';
import 'axios';
import 'qs';
import '../../handlers/renderer.mjs';
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 '@vue/reactivity';

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='14px'%20height='14px'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='matrix(1%200%200%201%20-405%20-758%20)'%3e%3cpath%20d='M%2011.5390625%205.93359375%20C%2011.6484375%205.82421875%2011.703125%205.6875%2011.703125%205.5234375%20C%2011.703125%205.35329861111111%2011.6484375%205.21354166666667%2011.5390625%205.10416666666667%20L%2010.7096354166667%204.28385416666667%20C%2010.5941840277778%204.16840277777778%2010.4574652777778%204.11067708333333%2010.2994791666667%204.11067708333333%20C%2010.1414930555556%204.11067708333333%2010.0047743055556%204.16840277777778%209.88932291666667%204.28385416666667%20L%206.17057291666667%207.99348958333333%20L%204.11067708333333%205.93359375%20C%203.99522569444444%205.81814236111111%203.85850694444444%205.76041666666667%203.70052083333333%205.76041666666667%20C%203.54253472222222%205.76041666666667%203.40581597222222%205.81814236111111%203.29036458333333%205.93359375%20L%202.4609375%206.75390625%20C%202.3515625%206.86328125%202.296875%207.00303819444444%202.296875%207.17317708333333%20C%202.296875%207.33723958333333%202.3515625%207.47395833333333%202.4609375%207.58333333333333%20L%205.76041666666667%2010.8828125%20C%205.87586805555556%2010.9982638888889%206.01258680555556%2011.0559895833333%206.17057291666667%2011.0559895833333%20C%206.33463541666667%2011.0559895833333%206.47439236111111%2010.9982638888889%206.58984375%2010.8828125%20L%2011.5390625%205.93359375%20Z%20M%2013.0611979166667%203.486328125%20C%2013.6870659722222%204.55881076388889%2014%205.73003472222222%2014%207%20C%2014%208.26996527777778%2013.6870659722222%209.44118923611111%2013.0611979166667%2010.513671875%20C%2012.4353298611111%2011.5861545138889%2011.5861545138889%2012.4353298611111%2010.513671875%2013.0611979166667%20C%209.44118923611111%2013.6870659722222%208.26996527777778%2014%207%2014%20C%205.73003472222222%2014%204.55881076388889%2013.6870659722222%203.486328125%2013.0611979166667%20C%202.41384548611111%2012.4353298611111%201.56467013888889%2011.5861545138889%200.938802083333333%2010.513671875%20C%200.312934027777778%209.44118923611111%200%208.26996527777778%200%207%20C%200%205.73003472222222%200.312934027777778%204.55881076388889%200.938802083333333%203.486328125%20C%201.56467013888889%202.41384548611111%202.41384548611111%201.56467013888889%203.486328125%200.938802083333333%20C%204.55881076388889%200.312934027777777%205.73003472222222%200%207%200%20C%208.26996527777778%200%209.44118923611111%200.312934027777777%2010.513671875%200.938802083333333%20C%2011.5861545138889%201.56467013888889%2012.4353298611111%202.41384548611111%2013.0611979166667%203.486328125%20Z%20'%20fill-rule='nonzero'%20fill='%23000000'%20stroke='none'%20transform='matrix(1%200%200%201%20405%20758%20)'%20/%3e%3c/g%3e%3c/svg%3e";
const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAA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ETB2bpwoIBPujyjTTlBD8DyBTp8KqHBPQZhcOSonBISfqNN/0dJCphX8VVsyc7dBEmm3y4Ke9Dg1PIGewecyzyTvwwe6TiYXkNx2kZkdfj/g8s8CCSvPqke+NiatixeYsPd0AAq5hBTEqH6aj/Zgs7TFMOJn/pYsf9yYVFCAhg4ibECr2QLZ06CgnFKody0b9xPA+RkbaLALugT7AGvDbp5SRY1tFEonIY8F7UKVY56L/QG6mjn5mhkRrwjapatk7VWiocUq+4KSkK6KPvl6lzBc+xUhWcfZR+0+TZ4rISUGJIFEJiBLVeY9f0l6rPbf2xBA8KE5Qw1iOje36Wbm1c2x63cnPYk4A58QjVouvqVRm2l4TMAsQfZRZcXExOBCzQVXQjyWuYpAhpf+Gr6Pqnm2U3Jvx7brH/ZbYd+APZxM/2zgvhdQAAAABJRU5ErkJggg==";
const _imports_3 = "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='13px'%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='filter851'%3e%3cfeColorMatrix%20type='matrix'%20values='1%200%200%200%200.25%200%201%200%200%200.25%200%200%201%200%200.25%200%200%200%201%200%20'%20in='SourceGraphic'%20/%3e%3c/filter%3e%3c/defs%3e%3cg%20transform='matrix(1%200%200%201%20-1059%20-1144%20)'%3e%3cimage%20preserveAspectRatio='none'%20style='overflow:visible'%20width='13'%20height='13'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAQKADAAQAAAABAAAAQAAAAABGUUKwAAAE8ElEQVR4Ae1a24tPURQ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5DpwdLxz2EiBscw0tF94zc5t9GSDsEw8V1WZWmBr/T/DyzjgE+JzNwxygMuAmA0pjEvQREwrOnels4UwTMV8G5KFXRUwSYu+rla4vA2StAoFq/L9DfI8Zoy8D4sQferao8c/055lALAJUGsUhajBs+a2zSLy4Z/wT902CofeqiElC84DWiZKe8U88jSEg2g8GUunPM8rbxsM0CAg5W9QEeB/Bf0iTANNWiFeVAX3jnw7HyYC8TYJTEF+D6JWKCAg5rUVMElK9T8O+CZAPvlWAZZVKqGSp8d+BoNrswOIMAbteHu5VBtxwHS8qASMQKH8LcKVk/LPQR4BK6zxNgtz9kQRXSsY/C30EuBWjnhVZUfZZlKnx/w0v5r/mlAgJyFPPljgf8aAIYPD9/gGTBITYgxGxlS2qgYWaAPuNf7aUxhAo61GGBsPxrjNQ/tLsiiSA6a8ygOvlZ6eFUXhWDZesq06dLB8ZB4+/1PE3U78eyp/f+wkrFl2ZFV7hyUiRCXiI+NSZQA8hnANae+6K+acZYTVC+a+3XtmGEh4SFCkL+K94x6G10EgxewAeHZEpLiF5FZ7/cbPzCHql9x6X//KfgSgG/gK9mIkzqc2oKwAAAABJRU5ErkJggg=='%20x='1059px'%20y='1144px'%20filter='url(%23filter851)'%20/%3e%3c/g%3e%3c/svg%3e";
const _imports_4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAQKADAAQAAAABAAAAQAAAAABGUUKwAAAD30lEQVR4AeVa7XXaMBSVDANkBDxB6QRxJmg6QVmANp2gZAOaDBCYoGwQugGZAGUD+F9Q7zPIxxAZy7ZkG0vn5Ejoy/fe954+7HDWgrRbf/8FGPeMySFyIRmf9MOneR3QeB0PufQMkJ+AOAlwlvgqYMEdD6ebswarPwOrs5WaTP7QD5PDPdu/6tvs1bZAAHaTTUcODx6S3aNqS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bobfC8b475yxNpvfD1j5I3AP8P+E06KT/wdPOffX7me6UQAAAABJRU5ErkJggg==";
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='13px'%20height='12px'%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='filter852'%3e%3cfeColorMatrix%20type='matrix'%20values='1%200%200%200%200.25%200%201%200%200%200.25%200%200%201%200%200.25%200%200%200%201%200%20'%20in='SourceGraphic'%20/%3e%3c/filter%3e%3c/defs%3e%3cg%20transform='matrix(1%200%200%201%20-1099%20-1145%20)'%3e%3cimage%20preserveAspectRatio='none'%20style='overflow:visible'%20width='13'%20height='12'%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='1099px'%20y='1145px'%20filter='url(%23filter852)'%20/%3e%3c/g%3e%3c/svg%3e";
const _sfc_main = {
  __name: "index",
  __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 }] });
    inject("isNeedLogin");
    inject("goLogin");
    const route = useRoute();
    useRouter();
    let keyword = ref("");
    let page = ref(1);
    let count = ref(0);
    let list = ref([]);
    let loading = ref(false);
    const firstdataState = ref(true);
    keyword.value = route.query["keyword"];
    const gridContainer = ref(null);
    let masonryInstance = null;
    const getList = () => {
      if (page.value == 0 || loading.value)
        return;
      loading.value = true;
      getListHttp({ page: page.value, keyword: keyword.value }).then((res) => {
        if (res.code != 200) {
          page.value = 0;
          ElMessage.error(res.message);
          return;
        }
        let data = res.data;
        data.data.forEach((element) => {
          let uniqidEnd = element["uniqid"].charAt(element["uniqid"].length - 1);
          element["uniqidIndex"] = base62ToDecimal(uniqidEnd) % 6;
        });
        list.value = list.value.concat(data.data);
        count.value = data.count;
        if (data.count > list.value.length)
          page.value++;
        else
          page.value = 0;
        firstdataState.value = false;
        nextTick(() => {
          masonryInstance.reloadItems();
          masonryInstance.layout();
        });
      }).finally(() => loading.value = false);
    };
    computed(() => {
      return true;
    });
    watch(
      () => route.query,
      () => {
        keyword.value = route.query["keyword"];
        page.value = 1;
        list.value = [];
        count.value = 0;
        getList();
      }
    );
    try {
      if (true) {
        [__temp, __restore] = withAsyncContext(() => getListHttp({ page: 1, keyword: keyword.value }).then((res) => {
          let data = res.data;
          data.data.forEach((element) => {
            let uniqidEnd = element["uniqid"].charAt(element["uniqid"].length - 1);
            element["uniqidIndex"] = base62ToDecimal(uniqidEnd) % 6;
          });
          list.value = list.value.concat(data.data);
          count.value = data.count;
        })), await __temp, __restore();
      }
    } catch (error) {
    }
    return (_ctx, _push, _parent, _attrs) => {
      const _component_Head = Head;
      const _component_Title = Title;
      const _component_TopHead = __nuxt_component_2;
      const _component_Empty = __nuxt_component_3;
      const _directive_loading = vLoading;
      _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(`\u6295\u7968 - \u5BC4\u6258\u5929\u4E0B\u51FA\u56FD\u7559\u5B66\u7F51`);
                } else {
                  return [
                    createTextVNode("\u6295\u7968 - \u5BC4\u6258\u5929\u4E0B\u51FA\u56FD\u7559\u5B66\u7F51")
                  ];
                }
              }),
              _: 1
            }, _parent2, _scopeId));
          } else {
            return [
              createVNode(_component_Title, null, {
                default: withCtx(() => [
                  createTextVNode("\u6295\u7968 - \u5BC4\u6258\u5929\u4E0B\u51FA\u56FD\u7559\u5B66\u7F51")
                ]),
                _: 1
              })
            ];
          }
        }),
        _: 1
      }, _parent));
      _push(ssrRenderComponent(_component_TopHead, null, null, _parent));
      if (unref(keyword)) {
        _push(`<div class="search-info flexacenter" data-v-ca0d3da9><div class="flexacenter" data-v-ca0d3da9>${ssrInterpolate(unref(keyword))} <img class="round-fork-fork"${ssrRenderAttr("src", _imports_0)} data-v-ca0d3da9></div><div class="halving-line" data-v-ca0d3da9></div><div class="search-result" data-v-ca0d3da9>\u5171 ${ssrInterpolate(unref(count))} \u6761\u641C\u7D22\u6570\u636E</div></div>`);
      } else {
        _push(`<!---->`);
      }
      _push(`<div${ssrRenderAttrs(mergeProps({
        class: ["vote-list-box", { "firstdata": unref(firstdataState) }],
        ref_key: "gridContainer",
        ref: gridContainer
      }, ssrGetDirectiveProps(_ctx, _directive_loading, unref(loading))))} data-v-ca0d3da9><!--[-->`);
      ssrRenderList(unref(list), (item, index2) => {
        _push(`<a target="_blank"${ssrRenderAttr("href", `/details/${item["uniqid"]}`)} class="${ssrRenderClass([{ "isvote": item["isvote"] == 1 || item["status"] == 0 }, "vote-item"])}" style="${ssrRenderStyle({ "--main-color": ("colourValue" in _ctx ? _ctx.colourValue : unref(colourValue))[item.uniqidIndex]["main"], "--bg-color": ("colourValue" in _ctx ? _ctx.colourValue : unref(colourValue))[item.uniqidIndex]["bg"], "--bc-color": ("colourValue" in _ctx ? _ctx.colourValue : unref(colourValue))[item.uniqidIndex]["bc"] })}" data-v-ca0d3da9><div class="vote-title" data-v-ca0d3da9>`);
        if (item["status"] == 1) {
          _push(`<div class="vote-state" data-v-ca0d3da9>\u8FDB\u884C\u4E2D</div>`);
        } else {
          _push(`<div class="vote-state finish" data-v-ca0d3da9>\u5DF2\u7ED3\u675F</div>`);
        }
        _push(` ${ssrInterpolate(item["title"])}</div><div class="vote-explain" data-v-ca0d3da9>${ssrInterpolate(item["message"])}</div><div class="vote-option-list flexflex" data-v-ca0d3da9><!--[-->`);
        ssrRenderList(item == null ? void 0 : item.option, (item2, index22) => {
          _push(`<div class="${ssrRenderClass([{ "pitch": item2.selected == 1 }, "vote-option-item flexflex"])}" data-v-ca0d3da9><div class="flexflex" style="${ssrRenderStyle({ "padding": "2px 0" })}" data-v-ca0d3da9><div class="vote-option-number flexcenter" data-v-ca0d3da9>${ssrInterpolate(index22 + 1)}</div><img class="tick-icon"${ssrRenderAttr("src", _imports_1)} data-v-ca0d3da9><div class="vote-option-content flex1" data-v-ca0d3da9>${ssrInterpolate(item2["value"])}</div></div><div class="vote-option-progress flexacenter" data-v-ca0d3da9><div class="vote-option-progress-step" style="${ssrRenderStyle({ width: item2["percentage"] + "%" })}" data-v-ca0d3da9></div><div class="vote-option-progress-value" data-v-ca0d3da9>${ssrInterpolate(item2["count"])}</div></div></div>`);
        });
        _push(`<!--]--></div><div class="vote-data flexacenter" data-v-ca0d3da9><div class="vote-data-left flexacenter" data-v-ca0d3da9>${ssrInterpolate(item.votes)}\u4EBA\u53C2\u4E0E `);
        if (item["deadline"]) {
          _push(`<!--[-->| ${ssrInterpolate(("handleDeadline" in _ctx ? _ctx.handleDeadline : unref(handleDeadline))(item["deadline"]))}\u7ED3\u675F<!--]-->`);
        } else {
          _push(`<!---->`);
        }
        _push(`</div><div class="vote-data-right flexacenter" data-v-ca0d3da9><div class="vote-data-item flexacenter" data-v-ca0d3da9><img class="vote-data-icon"${ssrRenderAttr("src", _imports_2)} data-v-ca0d3da9>\xA0 ${ssrInterpolate(item.views)}</div><div class="vote-data-item flexacenter" data-v-ca0d3da9>`);
        if (item["islike"] == 0) {
          _push(`<img class="vote-data-icon"${ssrRenderAttr("src", _imports_3)} data-v-ca0d3da9>`);
        } else {
          _push(`<img class="vote-data-icon"${ssrRenderAttr("src", _imports_4)} data-v-ca0d3da9>`);
        }
        _push(`\xA0 ${ssrInterpolate(item["likes"])}</div><div class="vote-data-item flexacenter" data-v-ca0d3da9><img class="vote-data-icon"${ssrRenderAttr("src", _imports_5)} data-v-ca0d3da9>\xA0 ${ssrInterpolate(item["comments"])}</div></div></div></a>`);
      });
      _push(`<!--]-->`);
      if (unref(keyword) && unref(list).length == 0 && !unref(loading)) {
        _push(`<div class="empty-box flexcenter" data-v-ca0d3da9>`);
        _push(ssrRenderComponent(_component_Empty, { isNeedIssue: true }, null, _parent));
        _push(`</div>`);
      } else {
        _push(`<!---->`);
      }
      _push(`</div><!--]-->`);
    };
  }
};
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/index.html/index.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ca0d3da9"]]);

export { index as default };
//# sourceMappingURL=index-EDtWhVH3.mjs.map
