Files
logapi_nuxt/.output/server/chunks/build/index-BtZ_TYYo.mjs
2025-09-10 11:05:34 +07:00

445 lines
25 KiB
JavaScript

import { ref, withCtx, createVNode, unref, openBlock, createBlock, Fragment, renderList, toDisplayString, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList, ssrInterpolate } from 'vue/server-renderer';
import { s as storeToRefs, h as VApp, i as VMain, g as VTextField } from './server.mjs';
import { u as useJadwalDokter } from './users-C6PO6aD7.mjs';
import { c as VContainer, d as VRow, e as VCol, V as VCard } from './VCard-BaBxGxNH.mjs';
import { V as VDataTable } from './VDataTable-CPlx4hZ9.mjs';
import '../_/nitro.mjs';
import 'node:http';
import 'node:https';
import 'node:fs';
import 'node:url';
import '@iconify/utils';
import 'consola/core';
import '../routes/renderer.mjs';
import 'vue-bundle-renderer/runtime';
import 'devalue';
import '@unhead/ssr';
import 'unhead';
import '@unhead/shared';
import 'vue-router';
import '@iconify/vue';
const _sfc_main = {
__name: "index",
__ssrInlineRender: true,
setup(__props) {
const { JadwalDokter } = storeToRefs(useJadwalDokter());
useJadwalDokter();
ref([]);
const search = ref("");
const headers = [
{
align: "start",
key: "name",
sortable: false
},
{ key: "hari", title: "hari" },
{ key: "waktu", title: "waktu" },
{ key: "spesialis", title: "spesialis" },
{ key: "subspesialis", title: "subspesialis" },
{ key: "namalengkap", title: "namalengkap" }
];
return (_ctx, _push, _parent, _attrs) => {
_push(`<div${ssrRenderAttrs(_attrs)}>`);
_push(ssrRenderComponent(VApp, null, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(ssrRenderComponent(VMain, null, {
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(ssrRenderComponent(VContainer, null, {
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
if (_push4) {
_push4(ssrRenderComponent(VRow, null, {
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
if (_push5) {
_push5(ssrRenderComponent(VCol, null, {
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
if (_push6) {
_push6(`<h3${_scopeId5}>Jadwal Dokter</h3>`);
} else {
return [
createVNode("h3", null, "Jadwal Dokter")
];
}
}),
_: 1
}, _parent5, _scopeId4));
} else {
return [
createVNode(VCol, null, {
default: withCtx(() => [
createVNode("h3", null, "Jadwal Dokter")
]),
_: 1
})
];
}
}),
_: 1
}, _parent4, _scopeId3));
_push4(ssrRenderComponent(VCard, {
title: "",
flat: "",
class: "mx-auto my-8 pt-3",
elevation: "3",
"min-width": "300"
}, {
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
if (_push5) {
_push5(`<div class="d-inline-flex ml-5 mb-3"${_scopeId4}>`);
_push5(ssrRenderComponent(VTextField, {
modelValue: search.value,
"onUpdate:modelValue": ($event) => search.value = $event,
label: "Search",
"prepend-inner-icon": "mdi-magnify",
variant: "outlined",
"hide-details": "",
"single-line": "",
class: "rounded elevation-1",
width: "500px"
}, null, _parent5, _scopeId4));
_push5(`</div>`);
_push5(ssrRenderComponent(VDataTable, {
class: "elevation-1 px-5",
headers,
items: unref(JadwalDokter),
F: "",
search: search.value,
"hide-default-header": ""
}, {
body: withCtx(({ items }, _push6, _parent6, _scopeId5) => {
if (_push6) {
_push6(`<tr${_scopeId5}><th${_scopeId5}>Hari</th><th${_scopeId5}>Waktu</th><th${_scopeId5}>Spesialis</th><th${_scopeId5}>Subspesialis</th><th${_scopeId5}>Namalengkap</th></tr><!--[-->`);
ssrRenderList(items, (item, index) => {
_push6(`<tr${_scopeId5}>`);
if (index === 0 || item.hari !== items[index - 1].hari) {
_push6(`<td${_scopeId5}>${ssrInterpolate(item.hari)}</td>`);
} else {
_push6(`<td${_scopeId5}></td>`);
}
_push6(`<td${_scopeId5}>${ssrInterpolate(item.waktu)}</td>`);
if (index === 0 || item.spesialis !== items[index - 1].spesialis) {
_push6(`<td${_scopeId5}>${ssrInterpolate(item.spesialis)}</td>`);
} else {
_push6(`<td${_scopeId5}></td>`);
}
if (index === 0 || item.subspesialis !== items[index - 1].subspesialis) {
_push6(`<td${_scopeId5}>${ssrInterpolate(item.subspesialis)}</td>`);
} else {
_push6(`<td${_scopeId5}></td>`);
}
_push6(`<td${_scopeId5}>${ssrInterpolate(item.namalengkap)}</td></tr>`);
});
_push6(`<!--]-->`);
} else {
return [
createVNode("tr", null, [
createVNode("th", null, "Hari"),
createVNode("th", null, "Waktu"),
createVNode("th", null, "Spesialis"),
createVNode("th", null, "Subspesialis"),
createVNode("th", null, "Namalengkap")
]),
(openBlock(true), createBlock(Fragment, null, renderList(items, (item, index) => {
return openBlock(), createBlock("tr", { key: index }, [
index === 0 || item.hari !== items[index - 1].hari ? (openBlock(), createBlock("td", { key: 0 }, toDisplayString(item.hari), 1)) : (openBlock(), createBlock("td", { key: 1 })),
createVNode("td", null, toDisplayString(item.waktu), 1),
index === 0 || item.spesialis !== items[index - 1].spesialis ? (openBlock(), createBlock("td", { key: 2 }, toDisplayString(item.spesialis), 1)) : (openBlock(), createBlock("td", { key: 3 })),
index === 0 || item.subspesialis !== items[index - 1].subspesialis ? (openBlock(), createBlock("td", { key: 4 }, toDisplayString(item.subspesialis), 1)) : (openBlock(), createBlock("td", { key: 5 })),
createVNode("td", null, toDisplayString(item.namalengkap), 1)
]);
}), 128))
];
}
}),
_: 1
}, _parent5, _scopeId4));
} else {
return [
createVNode("div", { class: "d-inline-flex ml-5 mb-3" }, [
createVNode(VTextField, {
modelValue: search.value,
"onUpdate:modelValue": ($event) => search.value = $event,
label: "Search",
"prepend-inner-icon": "mdi-magnify",
variant: "outlined",
"hide-details": "",
"single-line": "",
class: "rounded elevation-1",
width: "500px"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
createVNode(VDataTable, {
class: "elevation-1 px-5",
headers,
items: unref(JadwalDokter),
F: "",
search: search.value,
"hide-default-header": ""
}, {
body: withCtx(({ items }) => [
createVNode("tr", null, [
createVNode("th", null, "Hari"),
createVNode("th", null, "Waktu"),
createVNode("th", null, "Spesialis"),
createVNode("th", null, "Subspesialis"),
createVNode("th", null, "Namalengkap")
]),
(openBlock(true), createBlock(Fragment, null, renderList(items, (item, index) => {
return openBlock(), createBlock("tr", { key: index }, [
index === 0 || item.hari !== items[index - 1].hari ? (openBlock(), createBlock("td", { key: 0 }, toDisplayString(item.hari), 1)) : (openBlock(), createBlock("td", { key: 1 })),
createVNode("td", null, toDisplayString(item.waktu), 1),
index === 0 || item.spesialis !== items[index - 1].spesialis ? (openBlock(), createBlock("td", { key: 2 }, toDisplayString(item.spesialis), 1)) : (openBlock(), createBlock("td", { key: 3 })),
index === 0 || item.subspesialis !== items[index - 1].subspesialis ? (openBlock(), createBlock("td", { key: 4 }, toDisplayString(item.subspesialis), 1)) : (openBlock(), createBlock("td", { key: 5 })),
createVNode("td", null, toDisplayString(item.namalengkap), 1)
]);
}), 128))
]),
_: 1
}, 8, ["items", "search"])
];
}
}),
_: 1
}, _parent4, _scopeId3));
} else {
return [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, null, {
default: withCtx(() => [
createVNode("h3", null, "Jadwal Dokter")
]),
_: 1
})
]),
_: 1
}),
createVNode(VCard, {
title: "",
flat: "",
class: "mx-auto my-8 pt-3",
elevation: "3",
"min-width": "300"
}, {
default: withCtx(() => [
createVNode("div", { class: "d-inline-flex ml-5 mb-3" }, [
createVNode(VTextField, {
modelValue: search.value,
"onUpdate:modelValue": ($event) => search.value = $event,
label: "Search",
"prepend-inner-icon": "mdi-magnify",
variant: "outlined",
"hide-details": "",
"single-line": "",
class: "rounded elevation-1",
width: "500px"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
createVNode(VDataTable, {
class: "elevation-1 px-5",
headers,
items: unref(JadwalDokter),
F: "",
search: search.value,
"hide-default-header": ""
}, {
body: withCtx(({ items }) => [
createVNode("tr", null, [
createVNode("th", null, "Hari"),
createVNode("th", null, "Waktu"),
createVNode("th", null, "Spesialis"),
createVNode("th", null, "Subspesialis"),
createVNode("th", null, "Namalengkap")
]),
(openBlock(true), createBlock(Fragment, null, renderList(items, (item, index) => {
return openBlock(), createBlock("tr", { key: index }, [
index === 0 || item.hari !== items[index - 1].hari ? (openBlock(), createBlock("td", { key: 0 }, toDisplayString(item.hari), 1)) : (openBlock(), createBlock("td", { key: 1 })),
createVNode("td", null, toDisplayString(item.waktu), 1),
index === 0 || item.spesialis !== items[index - 1].spesialis ? (openBlock(), createBlock("td", { key: 2 }, toDisplayString(item.spesialis), 1)) : (openBlock(), createBlock("td", { key: 3 })),
index === 0 || item.subspesialis !== items[index - 1].subspesialis ? (openBlock(), createBlock("td", { key: 4 }, toDisplayString(item.subspesialis), 1)) : (openBlock(), createBlock("td", { key: 5 })),
createVNode("td", null, toDisplayString(item.namalengkap), 1)
]);
}), 128))
]),
_: 1
}, 8, ["items", "search"])
]),
_: 1
})
];
}
}),
_: 1
}, _parent3, _scopeId2));
} else {
return [
createVNode(VContainer, null, {
default: withCtx(() => [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, null, {
default: withCtx(() => [
createVNode("h3", null, "Jadwal Dokter")
]),
_: 1
})
]),
_: 1
}),
createVNode(VCard, {
title: "",
flat: "",
class: "mx-auto my-8 pt-3",
elevation: "3",
"min-width": "300"
}, {
default: withCtx(() => [
createVNode("div", { class: "d-inline-flex ml-5 mb-3" }, [
createVNode(VTextField, {
modelValue: search.value,
"onUpdate:modelValue": ($event) => search.value = $event,
label: "Search",
"prepend-inner-icon": "mdi-magnify",
variant: "outlined",
"hide-details": "",
"single-line": "",
class: "rounded elevation-1",
width: "500px"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
createVNode(VDataTable, {
class: "elevation-1 px-5",
headers,
items: unref(JadwalDokter),
F: "",
search: search.value,
"hide-default-header": ""
}, {
body: withCtx(({ items }) => [
createVNode("tr", null, [
createVNode("th", null, "Hari"),
createVNode("th", null, "Waktu"),
createVNode("th", null, "Spesialis"),
createVNode("th", null, "Subspesialis"),
createVNode("th", null, "Namalengkap")
]),
(openBlock(true), createBlock(Fragment, null, renderList(items, (item, index) => {
return openBlock(), createBlock("tr", { key: index }, [
index === 0 || item.hari !== items[index - 1].hari ? (openBlock(), createBlock("td", { key: 0 }, toDisplayString(item.hari), 1)) : (openBlock(), createBlock("td", { key: 1 })),
createVNode("td", null, toDisplayString(item.waktu), 1),
index === 0 || item.spesialis !== items[index - 1].spesialis ? (openBlock(), createBlock("td", { key: 2 }, toDisplayString(item.spesialis), 1)) : (openBlock(), createBlock("td", { key: 3 })),
index === 0 || item.subspesialis !== items[index - 1].subspesialis ? (openBlock(), createBlock("td", { key: 4 }, toDisplayString(item.subspesialis), 1)) : (openBlock(), createBlock("td", { key: 5 })),
createVNode("td", null, toDisplayString(item.namalengkap), 1)
]);
}), 128))
]),
_: 1
}, 8, ["items", "search"])
]),
_: 1
})
]),
_: 1
})
];
}
}),
_: 1
}, _parent2, _scopeId));
} else {
return [
createVNode(VMain, null, {
default: withCtx(() => [
createVNode(VContainer, null, {
default: withCtx(() => [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, null, {
default: withCtx(() => [
createVNode("h3", null, "Jadwal Dokter")
]),
_: 1
})
]),
_: 1
}),
createVNode(VCard, {
title: "",
flat: "",
class: "mx-auto my-8 pt-3",
elevation: "3",
"min-width": "300"
}, {
default: withCtx(() => [
createVNode("div", { class: "d-inline-flex ml-5 mb-3" }, [
createVNode(VTextField, {
modelValue: search.value,
"onUpdate:modelValue": ($event) => search.value = $event,
label: "Search",
"prepend-inner-icon": "mdi-magnify",
variant: "outlined",
"hide-details": "",
"single-line": "",
class: "rounded elevation-1",
width: "500px"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
createVNode(VDataTable, {
class: "elevation-1 px-5",
headers,
items: unref(JadwalDokter),
F: "",
search: search.value,
"hide-default-header": ""
}, {
body: withCtx(({ items }) => [
createVNode("tr", null, [
createVNode("th", null, "Hari"),
createVNode("th", null, "Waktu"),
createVNode("th", null, "Spesialis"),
createVNode("th", null, "Subspesialis"),
createVNode("th", null, "Namalengkap")
]),
(openBlock(true), createBlock(Fragment, null, renderList(items, (item, index) => {
return openBlock(), createBlock("tr", { key: index }, [
index === 0 || item.hari !== items[index - 1].hari ? (openBlock(), createBlock("td", { key: 0 }, toDisplayString(item.hari), 1)) : (openBlock(), createBlock("td", { key: 1 })),
createVNode("td", null, toDisplayString(item.waktu), 1),
index === 0 || item.spesialis !== items[index - 1].spesialis ? (openBlock(), createBlock("td", { key: 2 }, toDisplayString(item.spesialis), 1)) : (openBlock(), createBlock("td", { key: 3 })),
index === 0 || item.subspesialis !== items[index - 1].subspesialis ? (openBlock(), createBlock("td", { key: 4 }, toDisplayString(item.subspesialis), 1)) : (openBlock(), createBlock("td", { key: 5 })),
createVNode("td", null, toDisplayString(item.namalengkap), 1)
]);
}), 128))
]),
_: 1
}, 8, ["items", "search"])
]),
_: 1
})
]),
_: 1
})
]),
_: 1
})
];
}
}),
_: 1
}, _parent));
_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/satu_rssa/jadwal_dokter/index.vue");
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
export { _sfc_main as default };
//# sourceMappingURL=index-BtZ_TYYo.mjs.map