PageSourceSearch

https://lalexpo.com/build/assets/DepositsAdminList-DKGmc0I-.js

js lalexpo.com collected 2026-10-02 11:44:35 UTC 11,177 bytes, 43 lines download raw bytes

1import { _ as K, r as c, G as Q, o as X, c as n, e as a, g as o, u as s, C as _, d as l, f as i, h as y, b as r, t as p, a6 as Y, F as Z, i as ee, D as te } from "./vendor-DwBTsVHv.js";
2import { g as se, D as ae } from "./DepositModalInfo-Cr3BAsk-.js";
3import { _ as ne, U as le } from "./app-Ci_-ARAC.js";
4function oe(D) {
5  return { searchSupports: K.debounce(function(u) {
6    (u.search.length >= 1 || u.search.length === 0) && D();
7  }, 500) };
8}
9function ie(D) {
10  const f = c({ search: null, search_by_status: null, current_page: null, page_size: null }), u = c(false), m = c(false), S = c([]), N = c([{ title: "ID", dataIndex: "id", key: "id", width: "70px", class: "text-center", align: "center", sorter: true }, { title: "Proveedor ", dataIndex: "provider", key: "provider", sorter: true }, { title: "Referencia", dataIndex: "reference", key: "reference", sorter: true }, { title: "Orden", dataIndex: "order", key: "order", align: "center", sorter: true }, { title: "Compra usuario", dataIndex: "user_id", key: "user_id" }, { title: "Monto", dataIndex: "amount", key: "amount", width: "150px", align: "center" }, { title: "Informaci\xF3n extra", dataIndex: "extra_fields", key: "extra_fields", width: "130px", class: "text-center", align: "center" }, { title: "Estado", dataIndex: "status", key: "status", class: "text-center", width: "150px" }, { title: "A\xF1o", dataIndex: "year", key: "year", class: "text-center", width: "150px" }, { title: "Fecha AT", dataIndex: "updated_at", key: "updated_at", class: "text-center", width: "100px", sorter: true }, { title: "Acciones", dataIndex: "manage", key: "manage", class: "text-center", width: "120px" }]), b = c(false), h = c({ pageSize: 10, showSizeChanger: true, pageSizeOptions: ["20", "30", "40", "50", "100"], showTotal: (e) => `Total: ${C.value}`, current: 1 }), k = c(1), I = c(20), z = c("desc"), C = c(0);
11  c(null), Q.config({ top: "85px", duration: 2, maxCount: 3 });
12  const w = () => {
13    f.value.search != null && (u.value = true), b.value = true, f.value.current_page = k.value, f.value.page_size = I.value, se(D, k.value, I.value, z.value, { search: f.value.search, status: f.value.search_by_status }).then((e) => {
14      var _a, _b;
15      const { data: v } = e.data;
16      S.value = v == null ? void 0 : v.deposits;
17      const g = { ...h.value };
18      g.total = (_a = v == null ? void 0 : v.pagination) == null ? void 0 : _a.total, C.value = (_b = v == null ? void 0 : v.pagination) == null ? void 0 : _b.total, h.value = g, b.value = false, u.value = false, m.value = false;
19    }).catch((e) => {
20      b.value = false, u.value = false, m.value = false;
21    });
22  }, L = () => {
23    m.value = true, k.value = 1, w();
24  }, A = (e, v, g) => {
25    const x = { ...h.value };
26    x.current = e.current, x.pageSize = e.pageSize, x.sorter = g, h.value = x, k.value = e.current, I.value = e.pageSize, z.value = g.order && g.order === "ascend" ? "asc" : "desc", g.order || (h.value.sorter = { field: "table_number", order: "ascend" }), w();
27  }, { searchSupports: P } = oe(w), j = c(false), M = c(null);
28  return { searchSupports: (e) => P(f.value), searchObject: f, loadingSearch: u, loadingFilters: m, tableRows: S, tableColumns: N, tableLoading: b, pagination: h, totalActivities: C, modalDepositInfo: M, visibleModalInfo: j, showModalInfo: (e, v = null) => {
29    v && (M.value = v), j.value = e;
30  }, getDepositsList: w, setFilters: L, handleTableChange: A };
31}
32const re = { class: "admin-deposits-list" }, de = { class: "d-flex align-items-center" }, ue = { key: 0, class: "d-flex flex-column justify-content-center" }, ce = { class: "d-flex align-items-center" }, _e = { class: "provider" }, pe = { key: 1, class: "d-flex flex-column justify-content-center" }, fe = { class: "d-flex align-items-center" }, me = { class: "hotel-name mr-1" }, ve = { key: 2, class: "d-flex flex-column justify-content-center" }, ge = { class: "d-flex align-items-center justify-content-center" }, xe = { class: "year mr-1" }, ye = { key: 3, class: "d-flex flex-column justify-content-center" }, he = { class: "d-flex align-items-center" }, be = { class: "order-number mr-1" }, ke = { key: 4, class: "purchase-info" }, we = { key: 0, class: "purchase-full-name" }, Ie = { key: 1, class: "purchase-email" }, Ce = { key: 5, class: "d-flex flex-column amount" }, De = { key: 6, class: "d-flex flex-column update_date" }, Se = { key: 7, class: "d-flex flex-column justify-content-center" }, ze = { class: "extra-fields" }, Ae = { key: 0, class: "extra-item" }, je = { key: 1, class: "extra-item" }, Me = { key: 2, class: "tables-info" }, Ne = { class: "activity-title" }, Le = { key: 8, class: "d-flex justify-content-center" }, Pe = { key: 0, class: "status-outline status-warning-outline" }, Ee = { key: 1, class: "status-outline status-success-outline" }, Fe = { key: 2, class: "status-outline status-danger-outline text-center" }, Oe = { key: 9, class: "d-flex align-items-center justify-content-center" }, Te = { __name: "DepositsAdminList", props: { user: { type: Object, default: () => ({}) }, activityId: { type: Number, default: 0 }, users: { type: Object, default: () => ({}) } }, setup(D) {
33  const f = le, u = (E) => JSON.parse(E), { searchObject: m, loadingSearch: S, loadingFilters: N, tableRows: b, tableColumns: h, tableLoading: k, pagination: I, totalActivities: z, modalDepositInfo: C, visibleModalInfo: w, searchSupports: L, showModalInfo: A, getDepositsList: P, setFilters: j, handleTableChange: M } = ie();
34  return X(() => {
35    P();
36  }), (E, e) => {
37    const v = _("a-badge"), g = _("a-divider"), x = _("a-select-option"), V = _("a-select"), U = _("a-input-search"), O = _("a-col"), T = _("a-button"), B = _("a-popover"), G = _("a-menu-item"), R = _("a-menu"), $ = _("a-dropdown"), q = _("a-table"), J = _("a-row"), W = _("a-card");
38    return l(), n("div", re, [a(W, { bordered: false, style: { width: "100%" } }, { default: o(() => [a(g, { orientation: "left", class: "mt-0 mb-3" }, { default: o(() => [i("div", de, [a(v, { class: "mr-icon badge-color-primary", "overflow-count": 99999999, count: s(z) }, { default: o(() => e[2] || (e[2] = [i("span", { class: "mr-1" }, "Administraci\xF3n de dep\xF3sitos", -1)])), _: 1, __: [2] }, 8, ["count"])])]), _: 1 }), a(J, null, { default: o(() => [a(O, { span: 24, class: "table-filters text-right" }, { default: o(() => [a(V, { value: s(m).search_by_status, "onUpdate:value": e[0] || (e[0] = (d) => s(m).search_by_status = d), style: { "text-align": "center", width: "250px" }, placeholder: "--Seleccione un estado--", size: "small", class: "mr-1", loading: s(N), onChange: s(j) }, { default: o(() => [a(x, { value: null, "aria-selected": "true" }, { default: o(() => e[3] || (e[3] = [y("--Todos los estados--")])), _: 1, __: [3] }), a(x, { value: "approved" }, { default: o(() => e[4] || (e[4] = [y("Aprobada")])), _: 1, __: [4] }
38), a(x, { value: "PENDING" }, { default: o(() => e[5] || (e[5] = [y("Pendiente")])), _: 1, __: [5] }), a(x, { value: "cancelled" }, { default: o(() => e[6] || (e[6] = [y("Cancelada o vencida")])), _: 1, __: [6] })]), _: 1 }, 8, ["value", "loading", "onChange"]), a(U, { value: s(m).search, "onUpdate:value": e[1] || (e[1] = (d) => s(m).search = d), placeholder: "Buscar", size: "small", style: { width: "380px" }, class: "text-left", loading: s(S), onChange: s(L) }, null, 8, ["value", "loading", "onChange"])]), _: 1 }), a(O, { span: 24 }, { default: o(() => [a(q, { columns: s(h), "data-source": s(b), "row-key": "id", pagination: s(I), size: "small", class: "ant-table-striped mt-1 activities-tables-ant-table", "row-class-name": (d, t) => t % 2 === 1 ? "table-striped" : null, loading: s(k), scroll: { x: 1e3 }, onChange: s(M) }, { bodyCell: o(({ column: d, record: t }) => [d.key === "provider" ? (l(), n("div", ue, [i("div", ce, [i("span", _e, p(t == null ? void 0 : t.provider), 1)])])) : r("", true), d.key === "reference" ? (l(), n("div", pe, [i("div", fe, [i("span", me, p(t == null ? void 0 : t.reference), 1)])])) : r("", true), d.key === "year" ? (l(), n("div", ve, [i("div", ge, [i("span", xe, p(t == null ? void 0 : t.year), 1)])])) : r("", true), d.key === "order" ? (l(), n("div", ye, [i("div", he, [i("span", be, p(t.order), 1)])])) : r("", true), d.key === "user_id" ? (l(), n("div", ke, [(t == null ? void 0 : t.user_name) ? (l(), n("span", we, p((t == null ? void 0 : t.user_name) + " " + (t == null ? void 0 : t.user_lastname)), 1)) : r("", true), (t == null ? void 0 : t.user_email) ? (l(), n("span", Ie, p(t == null ? void 0 : t.user_email), 1)) : r("", true)])) : r("", true), d.key === "amount" ? (l(), n("div", Ce, "$" + p(s(f).methods.$formatToPesos(t == null ? void 0 : t.amount)), 1)) : r("", true), d.key === "updated_at" ? (l(), n("div", De, p(s(f).methods.formatDate(t == null ? void 0 : t.updated_at)), 1)) : r("", true), d.key === "extra_fields" ? (l(), n("div", Se, [a(B, { placement: "top", class: "popover-more-info", trigger: "click", "overlay-style": { maxWidth: "400px" } }, { content: o(() => [i("div", ze, [u(t.extra_fields).description ? (l(), n("div", Ae, [e[7] || (e[7] = i("strong", null, "Descripci\xF3n:", -1)), y(" " + p(u(t.extra_fields).description), 1)])) : r("", true), u(t.extra_fields).table_ids ? (l(), n("div", je, [e[8] || (e[8] = i("strong", null, "IDs Mesas:", -1)), y(" " + p(u(t.extra_fields).table_ids), 1)])) : r("", true), u(t.extra_fields).tables_info ? (l(), n("div", Me, [e[9] || (e[9] = i("strong", null, "Mesas:", -1)), (l(true), n(Z, null, ee(u(t.extra_fields).tables_info, (F, H) => (l(), n("div", { key: H, class: "table-item" }, [i("span", null, "Mesa #" + p(F.table_number), 1), i("span", Ne, p(F.activity_title), 1)]))), 128))])) : r("", true)])]), default: o(() => [a(T, { type: "link", class: "btn-info-extra-fields" }, { default: o(() => [a(s(Y)), e[10] || (e[10] = y(" Ver m\xE1s "))]), _: 1, __: [10] })]), _: 2 }, 1024)])) : r("", true), d.key === "status" ? (l(), n("div", Le, [t.status === "PENDING" || t.status === "pending" ? (l(), n("span", Pe, "Pendiente")) : r("", true), t.status === "approved" || t.status === "APPROVED" ? (l(), n("span", Ee, "Aprobado")) : r("", true), t.status === "cancelled" || t.status === "CANCELLED" ? (l(), n("span", Fe, e[11] || (e[11] = [y("Cancelada "), i("br", null, null, -1), y(" vencida")]))) : r("", true)])) : r("", true), d.key === "manage" ? (l(), n("div", Oe, [a($, null, { overlay: o(() => [a(R, null, { default: o(() => [a(G, { key: "1", onClick: (F) => s(A)(true, t) }, { default: o(() => e[12] || (e[12] = [i("i", { class: "fad fa-eye mr-icon" }, null, -1), i("span", null, "Ver informaci\xF3n de pago", -1)])), _: 2, __: [12] }, 1032, ["onClick"])]), _: 2 }, 1024)]), default: o(() => [a(T, null, { default: o(() => [e[13] || (e[13] = i("i", { class: "fad fa-cogs mr-icon" }, null, -1)), a(s(te))]), _: 1, __: [13] })]), _: 2 }, 1024)])) : r("", true)]), _: 1 }, 8, ["columns", "data-source", "pagination", "row-class-name", "loading", "onChange"])]), _: 1 })]), _: 1 })]), _: 1 }), a(s(ae), { visible: s(w), info: s(C), "onUpdate:visible": s(A) }, null, 8, ["visible", "info", "onUpdate:visible"])]);
39  };
40} }, Ge = ne(Te, [["__scopeId", "data-v-1ce6ef28"]]);
41export {
42  Ge as default
43};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.