import { _ as __nuxt_component_0 } from "./nuxt-link-1NBbHb-h.js"; import { defineComponent, ref, unref, withCtx, openBlock, createBlock, createVNode, createTextVNode, useSSRContext } from "vue"; import { ssrRenderAttrs, ssrRenderList, ssrInterpolate, ssrIncludeBooleanAttr, ssrRenderComponent } from "vue/server-renderer"; import "/app/node_modules/hookable/dist/index.mjs"; import { u as useFormatter } from "./useFormatter-hycy3urM.js"; import "/app/node_modules/klona/dist/index.mjs"; import "../server.mjs"; import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js"; import "/app/node_modules/ufo/dist/index.mjs"; import "/app/node_modules/defu/dist/defu.mjs"; import "./region-0mvXqaMM.js"; import "pinia"; import "/app/node_modules/ofetch/dist/node.mjs"; import "#internal/nuxt/paths"; import "/app/node_modules/unctx/dist/index.mjs"; import "/app/node_modules/h3/dist/index.mjs"; import "vue-router"; import "/app/node_modules/cookie-es/dist/index.mjs"; import "/app/node_modules/destr/dist/index.mjs"; import "/app/node_modules/ohash/dist/index.mjs"; import "/app/node_modules/@unhead/vue/dist/index.mjs"; import "@vue/devtools-api"; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "rejected", __ssrInlineRender: true, setup(__props) { const { formatDate } = useFormatter(); const loading = ref(true); const error = ref(false); const providers = ref([]); const toast = ref(""); const actionLoading = ref(null); const showRestoreModal = ref(false); const restoringProvider = ref(null); const restoreReason = ref(""); const restoreLoading = ref(false); return (_ctx, _push, _parent, _attrs) => { const _component_NuxtLink = __nuxt_component_0; _push(`

Elutasított szolgáltatók

Elutasított szolgáltatók visszaállítása az aktív kereshető szolgáltatók közé

`); if (unref(loading)) { _push(`
Elutasított szolgáltatók betöltése...
`); } else if (unref(error)) { _push(`

Hiba történt a szolgáltatók betöltése közben.

`); } else { _push(`
`); ssrRenderList(unref(providers), (provider) => { _push(`

${ssrInterpolate(provider.name)}

Elutasított ${ssrInterpolate(provider.source)}`); if (provider.source_table) { _push(`${ssrInterpolate(provider.source_table)}`); } else { _push(``); } _push(`
`); if (provider.address) { _push(`
Cím: ${ssrInterpolate(provider.address)}
`); } else { _push(``); } if (provider.city) { _push(`
Város: ${ssrInterpolate(provider.city)}
`); } else { _push(``); } if (provider.category) { _push(`
Kategória: ${ssrInterpolate(provider.category)}
`); } else { _push(``); } _push(`
Validációs pontszám:${ssrInterpolate(provider.validation_score)}
`); if (provider.created_at) { _push(`
Létrehozva: ${ssrInterpolate(unref(formatDate)(provider.created_at))}
`); } else { _push(``); } _push(`
`); if (unref(actionLoading) === provider.id) { _push(``); } else { _push(``); } _push(` Visszaállítás `); _push(ssrRenderComponent(_component_NuxtLink, { to: `/providers/${provider.id}`, class: "px-4 py-2 bg-slate-700 hover:bg-slate-600 text-slate-300 rounded-lg text-sm font-medium transition flex items-center gap-2 text-center" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(` Részletek `); } else { return [ (openBlock(), createBlock("svg", { class: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }, [ createVNode("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z" }), createVNode("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" }) ])), createTextVNode(" Részletek ") ]; } }), _: 2 }, _parent)); _push(`
`); }); _push(``); if (unref(providers).length === 0) { _push(`

Nincs elutasított szolgáltató

Minden szolgáltató jóváhagyott státuszban van.

`); } else { _push(``); } _push(`
`); } if (unref(showRestoreModal)) { _push(`

Szolgáltató visszaállítása

Biztosan visszaállítod a(z) ${ssrInterpolate(unref(restoringProvider)?.name)} szolgáltatót? A visszaállítás után a szolgáltató újra elérhető lesz a keresőben és a listákban.

`); } else { _push(``); } if (unref(toast)) { _push(`
${ssrInterpolate(unref(toast))}
`); } else { _push(``); } _push(``); }; } }); const _sfc_setup = _sfc_main.setup; _sfc_main.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/providers/rejected.vue"); return _sfc_setup ? _sfc_setup(props, ctx) : void 0; }; const rejected = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-956f226d"]]); export { rejected as default }; //# sourceMappingURL=rejected-jHmJwXbQ.js.map