@scalar/api-client
Version:
the open source API testing client
55 lines (54 loc) • 1.71 kB
JavaScript
import { defineComponent as c, createBlock as r, openBlock as e, unref as f, withCtx as t, createElementBlock as s, Fragment as i, renderList as u, createVNode as a, createTextVNode as p } from "vue";
import k from "../../../../components/DataTable/DataTable.vue.js";
import _ from "../../../../components/DataTable/DataTableRow.vue.js";
import m from "../../../../components/DataTable/DataTableText.vue.js";
import d from "../../../components/layout/CollapsibleSection.vue.js";
const x = {
key: 1,
class: "text-c-3 bg-b-1 flex min-h-[65px] items-center justify-center border-t px-4 text-sm"
}, N = /* @__PURE__ */ c({
__name: "ResponseCookies",
props: {
cookies: {}
},
setup(C) {
return (o, l) => (e(), r(f(d), {
defaultOpen: !1,
itemCount: o.cookies.length
}, {
title: t(() => [...l[0] || (l[0] = [
p("Cookies", -1)
])]),
default: t(() => [
(e(), s(i, { key: 0 }, [
o.cookies.length ? (e(), r(k, {
key: 0,
class: "flex-1",
columns: ["", ""]
}, {
default: t(() => [
(e(!0), s(i, null, u(o.cookies, (n) => (e(), r(_, {
key: n.name
}, {
default: t(() => [
a(m, {
text: n.name
}, null, 8, ["text"]),
a(m, {
text: n.value
}, null, 8, ["text"])
]),
_: 2
}, 1024))), 128))
]),
_: 1
})) : (e(), s("div", x, " No cookies "))
], 64))
]),
_: 1
}, 8, ["itemCount"]));
}
});
export {
N as default
};