@jsg-developer/vue-pack 0.0.9-beta-2 → 0.0.9-beta-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_LICENSES.json +1 -1
- package/dist/TabelData-D4BrZQVx.cjs +15 -0
- package/dist/TabelData-DwLu2vs2.js +8144 -0
- package/dist/init.cjs.js +1 -1
- package/dist/init.es.js +1 -1
- package/dist/jsgd-vue-pack.cjs.js +1 -1
- package/dist/jsgd-vue-pack.es.js +631 -228
- package/dist/resize-5FyL6R_t.js +1308 -0
- package/dist/resize-Cp7HnMN4.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/types/components/Form/FormModal.vue.d.ts +2 -2
- package/dist/types/components/Tabel/TabelData.vue.d.ts +2 -2
- package/dist/types/components/UI/Display/BaseLabel.vue.d.ts +1 -16
- package/dist/types/components/UI/Inputs/ComboboxComponent.vue.d.ts +2 -2
- package/dist/types/components/UI/Inputs/TextAreaQuill.vue.d.ts +1 -1
- package/dist/types/components/UI/Inputs/components/QuillAltModal.vue.d.ts +2 -2
- package/dist/types/components/UI/Inputs/components/QuillEmbedModal.vue.d.ts +2 -2
- package/dist/types/components/index.d.ts +1 -1
- package/dist/vue.cjs.js +1 -1
- package/dist/vue.es.js +42 -47
- package/package.json +4 -1
- package/dist/chunks/ArrayObject-BA88O7bP.cjs.js +0 -1
- package/dist/chunks/ArrayObject-DYnfWxW-.es.js +0 -4
- package/dist/chunks/ColorPicker-CqrPcGbi.es.js +0 -4
- package/dist/chunks/ColorPicker-W_cn5ezl.cjs.js +0 -1
- package/dist/chunks/ComboboxComponent-BU-VQz2u.es.js +0 -4
- package/dist/chunks/ComboboxComponent-Dwlhjcru.cjs.js +0 -1
- package/dist/chunks/CurrencyInput-CNQzGqgu.cjs.js +0 -1
- package/dist/chunks/CurrencyInput-DVlgxmiu.es.js +0 -4
- package/dist/chunks/DateInput-B1EpMWa0.es.js +0 -4
- package/dist/chunks/DateInput-DMFCzQCr.cjs.js +0 -1
- package/dist/chunks/DateTimeInput-8w4T-EZX.cjs.js +0 -1
- package/dist/chunks/DateTimeInput-CC70bKnU.es.js +0 -4
- package/dist/chunks/DateTimeInput.vue_vue_type_script_setup_true_lang-BLJgRk91.es.js +0 -142
- package/dist/chunks/DateTimeInput.vue_vue_type_script_setup_true_lang-DmmVjDPV.cjs.js +0 -2
- package/dist/chunks/EmailInput-B0F3AHeq.es.js +0 -4
- package/dist/chunks/EmailInput-EU4MR4Jw.cjs.js +0 -1
- package/dist/chunks/FileArrayInput-CR-seczb.cjs.js +0 -1
- package/dist/chunks/FileArrayInput-DljGrRxA.es.js +0 -5
- package/dist/chunks/FileArrayInput.vue_vue_type_script_setup_true_lang-C7UCpQqG.es.js +0 -198
- package/dist/chunks/FileArrayInput.vue_vue_type_script_setup_true_lang-DtC-rygi.cjs.js +0 -2
- package/dist/chunks/FileInput-A1qH_OLh.cjs.js +0 -1
- package/dist/chunks/FileInput-CC5a2_o2.es.js +0 -4
- package/dist/chunks/GroupRenderer-BL1UiQs5.cjs.js +0 -1
- package/dist/chunks/GroupRenderer-Cj7o8pSh.es.js +0 -4
- package/dist/chunks/ImageArrayInput-B3f9I0U1.cjs.js +0 -1
- package/dist/chunks/ImageArrayInput-Bl0af1_X.es.js +0 -5
- package/dist/chunks/ImageArrayInput.vue_vue_type_script_setup_true_lang-NqHOY8OF.es.js +0 -421
- package/dist/chunks/ImageArrayInput.vue_vue_type_script_setup_true_lang-d88H9xj4.cjs.js +0 -2
- package/dist/chunks/ImageInput-DL8tNIdV.es.js +0 -4
- package/dist/chunks/ImageInput-KmSPSWhK.cjs.js +0 -1
- package/dist/chunks/NumberInput-BOjP2XCy.es.js +0 -4
- package/dist/chunks/NumberInput-C47NQmuA.cjs.js +0 -1
- package/dist/chunks/ObjectInput-DLkhG2Ha.es.js +0 -4
- package/dist/chunks/ObjectInput-e0FX9gIv.cjs.js +0 -1
- package/dist/chunks/PasswordInput-CgeIq4tr.cjs.js +0 -1
- package/dist/chunks/PasswordInput-CkF4phav.es.js +0 -4
- package/dist/chunks/RateInput-C7irYBQy.cjs.js +0 -1
- package/dist/chunks/RateInput-DYD5aMQX.es.js +0 -4
- package/dist/chunks/TabelData-DV56gH8Y.cjs.js +0 -1
- package/dist/chunks/TabelData-jJvzQD8f.es.js +0 -2438
- package/dist/chunks/TagInput-B6F5GleV.es.js +0 -4
- package/dist/chunks/TagInput-DC9jPCR9.cjs.js +0 -1
- package/dist/chunks/TelInput-BTioT0Aa.cjs.js +0 -1
- package/dist/chunks/TelInput-BwtzcLzw.es.js +0 -4
- package/dist/chunks/TextAreaInput-B-dcc-ch.es.js +0 -4
- package/dist/chunks/TextAreaInput-BXlGB91c.cjs.js +0 -1
- package/dist/chunks/TextAreaQuill-CJyF1I1R.es.js +0 -637
- package/dist/chunks/TextAreaQuill-DKgdqbEG.cjs.js +0 -1
- package/dist/chunks/TextInput-BwgTx7Xt.es.js +0 -4
- package/dist/chunks/TextInput-CC8TbO0N.cjs.js +0 -1
- package/dist/chunks/TimeInput-BvUbIEtA.cjs.js +0 -1
- package/dist/chunks/TimeInput-DsiHBSIo.es.js +0 -4
- package/dist/chunks/ToggleInput-DfAKsRdZ.cjs.js +0 -1
- package/dist/chunks/ToggleInput-mQ_mnG4E.es.js +0 -4
- package/dist/chunks/UrlInput-C8bIoQBb.cjs.js +0 -1
- package/dist/chunks/UrlInput-o1uJulwN.es.js +0 -4
- package/dist/chunks/resize-2N3sqejU.es.js +0 -6012
- package/dist/chunks/resize-DsxsWx52.cjs.js +0 -12
package/dist/jsgd-vue-pack.es.js
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { _ as ua } from "./
|
|
5
|
-
|
|
6
|
-
import { _ as ya } from "./chunks/ImageArrayInput.vue_vue_type_script_setup_true_lang-NqHOY8OF.es.js";
|
|
7
|
-
import { default as ga } from "./chunks/TextAreaQuill-CJyF1I1R.es.js";
|
|
8
|
-
import "vue";
|
|
9
|
-
import "dompurify";
|
|
10
|
-
import "lodash.isequal";
|
|
11
|
-
import "zod";
|
|
12
|
-
const m = [
|
|
1
|
+
import { u as T } from "./resize-5FyL6R_t.js";
|
|
2
|
+
import { k as ue, e as me, d as pe, a as ce, l as ye, h as be, j as ge, g as he, i as De, f as ke, b as Me, c as Ae, r as Pe, m as fe, s as Se } from "./resize-5FyL6R_t.js";
|
|
3
|
+
import { s as q } from "./TabelData-DwLu2vs2.js";
|
|
4
|
+
import { e as Te, f as qe, _ as Ie, a as Ke, g as Ne, i as xe, a8 as ve, a5 as Be, k as Ee, l as $e, m as _e, F as Ce, n as je, o as Re, E as Ge, D as Oe, p as Fe, q as He, r as Je, b as We, L as Le, M as Ue, t as ze, u as Ve, v as Ye, j as Xe, c as Qe, h as Ze, a6 as ea, G as aa, w as ta, y as ra, x as ia, T as na, z as oa, A as la, B as sa, d as da, C as ua, W as ma, ac as pa, O as ca, I as ya, H as ba, J as ga, K as ha, P as Da, N as ka, a2 as Ma, a4 as Aa, ae as Pa, ag as fa, af as Sa, S as wa, ad as Ta, V as qa, ah as Ia, $ as Ka, Z as Na, Y as xa, a3 as va, R as Ba, a0 as Ea, X as $a, U as _a, ai as Ca, a7 as ja, a9 as Ra, ab as Ga, aa as Oa, a1 as Fa, Q as Ha } from "./TabelData-DwLu2vs2.js";
|
|
5
|
+
const F = [
|
|
13
6
|
"png",
|
|
14
7
|
"jpg",
|
|
15
8
|
"jpeg",
|
|
@@ -24,7 +17,7 @@ const m = [
|
|
|
24
17
|
"avif",
|
|
25
18
|
"ico",
|
|
26
19
|
"jfif"
|
|
27
|
-
],
|
|
20
|
+
], H = [
|
|
28
21
|
"text",
|
|
29
22
|
"email",
|
|
30
23
|
"password",
|
|
@@ -51,7 +44,373 @@ const m = [
|
|
|
51
44
|
"currency",
|
|
52
45
|
"rate",
|
|
53
46
|
"tel"
|
|
54
|
-
],
|
|
47
|
+
], J = ["form", "news"], y = (a) => a ? a.toLowerCase().replace(/&/g, "and").replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-") : "", r = (a) => a[Math.floor(Math.random() * a.length)], A = (a, e) => new Date(a.getTime() + Math.random() * (e.getTime() - a.getTime())), I = {
|
|
48
|
+
id: 1,
|
|
49
|
+
username: "admin",
|
|
50
|
+
password: "bcrypt_hashed_password_placeholder",
|
|
51
|
+
token: null,
|
|
52
|
+
limitToken: null
|
|
53
|
+
}, K = {
|
|
54
|
+
id: 1,
|
|
55
|
+
name: "Solusi Pesta Surabaya",
|
|
56
|
+
icon: "https://picsum.photos/300/300?random=1",
|
|
57
|
+
aboutUs: "<p><strong>Solusi Pesta Surabaya</strong> adalah penyedia jasa persewaan alat pesta terpercaya di Surabaya yang telah melayani berbagai kebutuhan acara sejak tahun 2007.</p>",
|
|
58
|
+
aboutUsBrief: "Solusi Pesta Surabaya adalah penyedia jasa persewaan alat pesta terpercaya di Surabaya sejak 2007.",
|
|
59
|
+
vision: "Menjadi penyedia jasa persewaan alat pesta terkemuka di Surabaya yang dikenal akan kualitas, inovasi, dan pelayanan prima.",
|
|
60
|
+
mission: "Menyediakan berbagai perlengkapan pesta berkualitas tinggi, memberikan layanan pelanggan yang unggul, serta mendukung kesuksesan setiap acara dengan solusi yang tepat dan andal.",
|
|
61
|
+
termsAndConditions: "<h3><strong>1. Pemesanan</strong></h3><ol><li>Pemesanan dapat dilakukan melalui WhatsApp, telepon, atau langsung ke kantor kami.</li></ol>",
|
|
62
|
+
privacyPolicy: "<p>Solusi Pesta Surabaya berkomitmen untuk menjaga privasi dan keamanan data pribadi pelanggan kami.</p>",
|
|
63
|
+
warehouseAddress: "Jl. Balas Klumprik No.77, Balas Klumprik, Kec. Wiyung, Surabaya, Jawa Timur 60222",
|
|
64
|
+
officeAddress: "Jl. Wiyung 1 Gg. Mawar No.14, Wiyung, Kec. Wiyung, Surabaya, Jawa Timur 60228",
|
|
65
|
+
officeGMap: "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d4833.366718003127!2d112.6903878845809!3d-7.310752273867309!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x2dd7fd0048c4860b%3A0x402648a37f7bd8d3!2sSolusi%20Pesta%20Surabaya!5e1!3m2!1sid!2sid!4v1761045562354!5m2!1sid!2sid",
|
|
66
|
+
warehouseGMap: "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d506.24336454761436!2d112.68692673049173!3d-7.331416947288534!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x2dd7fcc1c060967f%3A0xb4a9c2c101a99cd7!2sJl.%20Balas%20Klumprik%20No.77%2C%20Balas%20Klumprik%2C%20Kec.%20Wiyung%2C%20Surabaya%2C%20Jawa%20Timur%2060222!5e1!3m2!1sid!2sid!4v1747401328589!5m2!1sid!2sid",
|
|
67
|
+
phoneNumber: "6281555318254",
|
|
68
|
+
email: "info@pestaselalu.com",
|
|
69
|
+
facebook: "https://facebook.com/pestaselalu",
|
|
70
|
+
twitter: "https://twitter.com/pestaselalu",
|
|
71
|
+
instagram: "https://instagram.com/pestaselalu",
|
|
72
|
+
linkedIn: null,
|
|
73
|
+
youtube: "https://youtube.com/pestaselalu",
|
|
74
|
+
shopee: "https://shopee.co.id/pestaselalu",
|
|
75
|
+
tiktok: "https://tiktok.com/@pestaselalu",
|
|
76
|
+
lazada: null,
|
|
77
|
+
tokoPedia: "https://tokopedia.com/pestaselalu",
|
|
78
|
+
createAt: /* @__PURE__ */ new Date("2025-01-01T00:00:00.000Z"),
|
|
79
|
+
updateAt: /* @__PURE__ */ new Date()
|
|
80
|
+
}, N = {
|
|
81
|
+
id: 1,
|
|
82
|
+
name: "Bapak Wijaya",
|
|
83
|
+
photo: "https://picsum.photos/300/300?random=2",
|
|
84
|
+
bio: "Owner PT Pesta Selalu. Siap melayani kebutuhan acara Anda dengan profesional.",
|
|
85
|
+
createdAt: /* @__PURE__ */ new Date("2025-01-01T00:00:00.000Z"),
|
|
86
|
+
updatedAt: /* @__PURE__ */ new Date()
|
|
87
|
+
}, x = {
|
|
88
|
+
id: 1,
|
|
89
|
+
type: "PriceDistance",
|
|
90
|
+
coordinateX: -7.289167,
|
|
91
|
+
coordinateY: 112.73439,
|
|
92
|
+
price: 5e3,
|
|
93
|
+
distance: 1
|
|
94
|
+
}, v = Array.from({ length: 20 }, (a, e) => ({
|
|
95
|
+
id: e + 1,
|
|
96
|
+
category: r(["Pemesanan", "Pembayaran", "Pengiriman", "Lainnya"]),
|
|
97
|
+
question: `Ini adalah pertanyaan umum nomor ${e + 1}?`,
|
|
98
|
+
answer: `Ini adalah jawaban untuk pertanyaan umum nomor ${e + 1}.`,
|
|
99
|
+
createAt: A(new Date(2024, 0, 1), /* @__PURE__ */ new Date()),
|
|
100
|
+
updateAt: /* @__PURE__ */ new Date()
|
|
101
|
+
})), b = Array.from({ length: 20 }, (a, e) => ({
|
|
102
|
+
id: e + 1,
|
|
103
|
+
name: `Tipe Alat ${e + 1}`,
|
|
104
|
+
createAt: /* @__PURE__ */ new Date(),
|
|
105
|
+
updateAt: /* @__PURE__ */ new Date()
|
|
106
|
+
})), g = Array.from({ length: 20 }, (a, e) => ({
|
|
107
|
+
id: e + 1,
|
|
108
|
+
name: `Model Alat ${e + 1}`,
|
|
109
|
+
createAt: /* @__PURE__ */ new Date(),
|
|
110
|
+
updateAt: /* @__PURE__ */ new Date()
|
|
111
|
+
})), h = Array.from({ length: 20 }, (a, e) => ({
|
|
112
|
+
id: e + 1,
|
|
113
|
+
name: `Alat Pesta ${e + 1}`,
|
|
114
|
+
image: `https://picsum.photos/300/300?random=${100 + e}`,
|
|
115
|
+
description: `Deskripsi detail untuk Alat Pesta ${e + 1}.`,
|
|
116
|
+
price: (Math.floor(Math.random() * 100) + 1) * 1e4,
|
|
117
|
+
sizeX: parseFloat((Math.random() * 10).toFixed(2)),
|
|
118
|
+
sizeY: parseFloat((Math.random() * 10).toFixed(2)),
|
|
119
|
+
sizeZ: parseFloat((Math.random() * 5).toFixed(2)),
|
|
120
|
+
unitOfMeasure: r(["cm", "m", "inch"]),
|
|
121
|
+
dimensions: parseFloat((Math.random() * 100).toFixed(2)),
|
|
122
|
+
modelId: r(g).id,
|
|
123
|
+
typeId: r(b).id,
|
|
124
|
+
createAt: /* @__PURE__ */ new Date(),
|
|
125
|
+
updateAt: /* @__PURE__ */ new Date()
|
|
126
|
+
})), P = Array.from({ length: 20 }, (a, e) => {
|
|
127
|
+
const t = Math.floor(Math.random() * 3) + 1, i = t + Math.floor(Math.random() * 3) + 1, n = Array.from(
|
|
128
|
+
{ length: i },
|
|
129
|
+
() => `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")}`
|
|
130
|
+
);
|
|
131
|
+
return {
|
|
132
|
+
id: e + 1,
|
|
133
|
+
name: `Palet Warna ${e + 1}`,
|
|
134
|
+
colors: n,
|
|
135
|
+
options: t,
|
|
136
|
+
createAt: /* @__PURE__ */ new Date(),
|
|
137
|
+
updateAt: /* @__PURE__ */ new Date()
|
|
138
|
+
};
|
|
139
|
+
}), f = Array.from({ length: 20 }, (a, e) => {
|
|
140
|
+
const t = e % 3;
|
|
141
|
+
return {
|
|
142
|
+
id: e + 1,
|
|
143
|
+
name: `Aksesoris ${e + 1}`,
|
|
144
|
+
price: (Math.floor(Math.random() * 20) + 1) * 1e3,
|
|
145
|
+
description: `Deskripsi untuk Aksesoris ${e + 1}.`,
|
|
146
|
+
typeId: t === 2 ? r(b).id : null,
|
|
147
|
+
modelId: t === 1 ? r(g).id : null,
|
|
148
|
+
toolsId: t === 0 ? r(h).id : null,
|
|
149
|
+
createAt: /* @__PURE__ */ new Date(),
|
|
150
|
+
updateAt: /* @__PURE__ */ new Date()
|
|
151
|
+
};
|
|
152
|
+
}), B = Array.from({ length: 40 }, (a, e) => {
|
|
153
|
+
const t = Math.random() > 0.5, i = Math.floor(e / 2) + 1;
|
|
154
|
+
return {
|
|
155
|
+
id: e + 1,
|
|
156
|
+
image: `https://picsum.photos/300/300?random=${200 + e}`,
|
|
157
|
+
name: `Varian Gambar ${e + 1}`,
|
|
158
|
+
subToolsId: i,
|
|
159
|
+
colors: t ? null : [
|
|
160
|
+
`#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")}`
|
|
161
|
+
],
|
|
162
|
+
colorToolsId: t ? r(P).id : null,
|
|
163
|
+
createAt: /* @__PURE__ */ new Date()
|
|
164
|
+
};
|
|
165
|
+
}), u = Array.from({ length: 20 }, (a, e) => {
|
|
166
|
+
const t = `Promo Heboh #${e + 1}`, i = r(["DISCOUNT", "DAY_RENT", "FREE_SHIPPING"]), n = r(["RateDiscount", "NominalDiscount"]);
|
|
167
|
+
let o;
|
|
168
|
+
return i === "DISCOUNT" ? o = {
|
|
169
|
+
discountModel: n,
|
|
170
|
+
discount: n === "RateDiscount" ? Math.floor(Math.random() * 50) + 5 : (Math.floor(Math.random() * 10) + 1) * 1e4,
|
|
171
|
+
maximumDiscount: n === "RateDiscount" ? (Math.floor(Math.random() * 20) + 5) * 1e4 : null,
|
|
172
|
+
minPrice: (Math.floor(Math.random() * 10) + 1) * 5e4,
|
|
173
|
+
minDay: null,
|
|
174
|
+
maxDistance: null
|
|
175
|
+
} : i === "DAY_RENT" ? o = {
|
|
176
|
+
discountModel: "RateDiscount",
|
|
177
|
+
discount: 0,
|
|
178
|
+
maximumDiscount: null,
|
|
179
|
+
minPrice: 0,
|
|
180
|
+
minDay: Math.floor(Math.random() * 3) + 2,
|
|
181
|
+
maxDistance: null
|
|
182
|
+
} : o = {
|
|
183
|
+
discountModel: "RateDiscount",
|
|
184
|
+
discount: 100,
|
|
185
|
+
maximumDiscount: (Math.floor(Math.random() * 10) + 5) * 1e4,
|
|
186
|
+
minPrice: (Math.floor(Math.random() * 10) + 1) * 1e5,
|
|
187
|
+
minDay: null,
|
|
188
|
+
maxDistance: Math.floor(Math.random() * 20) + 5
|
|
189
|
+
}, {
|
|
190
|
+
id: e + 1,
|
|
191
|
+
title: t,
|
|
192
|
+
slug: y(t),
|
|
193
|
+
keywords: ["promo", `promo-${e + 1}`],
|
|
194
|
+
description: `Deskripsi lengkap untuk ${t}.`,
|
|
195
|
+
type: i,
|
|
196
|
+
image: `https://picsum.photos/300/300?random=${300 + e}`,
|
|
197
|
+
promoStartDate: /* @__PURE__ */ new Date(),
|
|
198
|
+
promoEndDate: new Date((/* @__PURE__ */ new Date()).setFullYear((/* @__PURE__ */ new Date()).getFullYear() + 1)),
|
|
199
|
+
couponCode: `PROMO${e + 1}`,
|
|
200
|
+
tags: ["sale", "special"],
|
|
201
|
+
createdAt: /* @__PURE__ */ new Date(),
|
|
202
|
+
updatedAt: /* @__PURE__ */ new Date(),
|
|
203
|
+
details: {
|
|
204
|
+
id: e + 1,
|
|
205
|
+
promoId: e + 1,
|
|
206
|
+
...o
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
}), E = Array.from({ length: 20 }, (a, e) => {
|
|
210
|
+
const t = `Berita Terkini Edisi ke-${e + 1}`, i = y(t), n = r(["Buku", "Artikel", "Jurnal"]);
|
|
211
|
+
return {
|
|
212
|
+
id: e + 1,
|
|
213
|
+
title: t,
|
|
214
|
+
slug: i,
|
|
215
|
+
news: `<h1>${t}</h1><p>Ini adalah isi dari berita edisi ke-${e + 1}.</p>`,
|
|
216
|
+
image: `https://picsum.photos/300/300?random=${400 + e}`,
|
|
217
|
+
altImage: `Gambar ilustrasi untuk ${t}`,
|
|
218
|
+
category: r(["Tips & Trik", "Panduan", "Promosi", "Portofolio"]),
|
|
219
|
+
author: `Penulis ${e + 1}`,
|
|
220
|
+
seo: {
|
|
221
|
+
metaTitle: `${t} | Solusi Pesta`,
|
|
222
|
+
metaDescription: `Baca selengkapnya tentang ${t} hanya di sini.`,
|
|
223
|
+
keywords: `berita, ${i.replace(/-/g, ", ")}`,
|
|
224
|
+
tag: ["berita", "terbaru", `edisi-${e + 1}`]
|
|
225
|
+
},
|
|
226
|
+
seoScore: Math.random() * 100,
|
|
227
|
+
source: [
|
|
228
|
+
{
|
|
229
|
+
category: n,
|
|
230
|
+
name: `Sumber Referensi ${e + 1}`,
|
|
231
|
+
author: `Author ${e + 1}`,
|
|
232
|
+
url: n !== "Buku" ? `https://source.example.com/${e + 1}` : null,
|
|
233
|
+
identifier: n === "Buku" ? `ISBN-978-3-16-148410-${e}` : null
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
show: !0,
|
|
237
|
+
orderCode: null,
|
|
238
|
+
createdAt: A(new Date(2024, 0, 1), /* @__PURE__ */ new Date()),
|
|
239
|
+
updatedAt: /* @__PURE__ */ new Date()
|
|
240
|
+
};
|
|
241
|
+
}), S = Array.from({ length: 20 }, (a, e) => {
|
|
242
|
+
const t = `Halaman ${e + 1}`;
|
|
243
|
+
return {
|
|
244
|
+
id: e + 1,
|
|
245
|
+
name: t,
|
|
246
|
+
image: `https://picsum.photos/300/300?random=${500 + e}`,
|
|
247
|
+
slug: y(t),
|
|
248
|
+
description: `Deskripsi untuk ${t}`,
|
|
249
|
+
active: Math.random() > 0.2,
|
|
250
|
+
createAt: /* @__PURE__ */ new Date(),
|
|
251
|
+
updateAt: /* @__PURE__ */ new Date()
|
|
252
|
+
};
|
|
253
|
+
}), $ = Array.from({ length: 20 }, (a, e) => ({
|
|
254
|
+
id: e + 1,
|
|
255
|
+
title: `Layanan Unggulan ${e + 1}`,
|
|
256
|
+
image: `https://picsum.photos/300/300?random=${600 + e}`,
|
|
257
|
+
description: `Deskripsi lengkap untuk layanan unggulan kami nomor ${e + 1}.`,
|
|
258
|
+
createdAt: /* @__PURE__ */ new Date(),
|
|
259
|
+
updatedAt: /* @__PURE__ */ new Date()
|
|
260
|
+
})), _ = Array.from({ length: 20 }, (a, e) => ({
|
|
261
|
+
id: e + 1,
|
|
262
|
+
email: `subscriber${e + 1}@example.com`,
|
|
263
|
+
number: `089876543${(21 + e).toString().padStart(2, "0")}`,
|
|
264
|
+
createAt: /* @__PURE__ */ new Date(),
|
|
265
|
+
updatedAt: /* @__PURE__ */ new Date()
|
|
266
|
+
})), C = Array.from({ length: 20 }, (a, e) => ({
|
|
267
|
+
id: e + 1,
|
|
268
|
+
pageId: r(S).id,
|
|
269
|
+
device: r(["Desktop", "Mobile", "Tablet"]),
|
|
270
|
+
ip: `192.168.1.${e + 1}`,
|
|
271
|
+
userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
|
|
272
|
+
createAt: /* @__PURE__ */ new Date()
|
|
273
|
+
})), j = Array.from({ length: 20 }, (a, e) => ({
|
|
274
|
+
id: e + 1,
|
|
275
|
+
name: `Pengunjung ${e + 1}`,
|
|
276
|
+
email: `visitor${e + 1}@example.com`,
|
|
277
|
+
phone: `081122334${(45 + e).toString().padStart(2, "0")}`,
|
|
278
|
+
subject: `Perihal: ${e + 1}`,
|
|
279
|
+
message: `Ini adalah pesan dari pengunjung ${e + 1}.`,
|
|
280
|
+
reply: Math.random() > 0.5 ? `Ini adalah balasan untuk pengunjung ${e + 1}.` : null,
|
|
281
|
+
published: Math.random() > 0.5,
|
|
282
|
+
createdAt: /* @__PURE__ */ new Date(),
|
|
283
|
+
updatedAt: /* @__PURE__ */ new Date()
|
|
284
|
+
})), R = Array.from({ length: 20 }, (a, e) => ({
|
|
285
|
+
id: e + 1,
|
|
286
|
+
pay: (Math.floor(Math.random() * 50) + 1) * 1e4,
|
|
287
|
+
note: `Pengeluaran untuk item ${e + 1}.`,
|
|
288
|
+
createdAt: /* @__PURE__ */ new Date(),
|
|
289
|
+
updatedAt: /* @__PURE__ */ new Date()
|
|
290
|
+
})), w = [], m = [], p = [], d = [], c = [];
|
|
291
|
+
for (let a = 0; a < 20; a++) {
|
|
292
|
+
const e = `ORD-${Date.now()}-${a}`, t = (Math.floor(Math.random() * 200) + 50) * 1e4, i = Math.random() > 0.7 ? Math.random() * 5e4 : 0, n = Math.random() > 0.7 ? Math.random() * 2e4 : 0, o = 5e4, s = t - i + (o - n), l = r([
|
|
293
|
+
"verify",
|
|
294
|
+
"pending",
|
|
295
|
+
"completed",
|
|
296
|
+
"canceled",
|
|
297
|
+
"dpPaid",
|
|
298
|
+
"installing",
|
|
299
|
+
"waitingDpPayment",
|
|
300
|
+
"eventOngoing"
|
|
301
|
+
]);
|
|
302
|
+
w.push({
|
|
303
|
+
id: a + 1,
|
|
304
|
+
orderCode: e,
|
|
305
|
+
firstName: "Pelanggan",
|
|
306
|
+
lastName: `${a + 1}`,
|
|
307
|
+
address: `Jalan Bahagia No. ${a + 1}, Surabaya`,
|
|
308
|
+
phone: `081234567${(100 + a).toString().padStart(3, "0")}`,
|
|
309
|
+
phoneCode: null,
|
|
310
|
+
phoneVerified: Math.random() > 0.2,
|
|
311
|
+
totalPriceOrder: t,
|
|
312
|
+
totalPrice: s,
|
|
313
|
+
discountOrderAmount: i,
|
|
314
|
+
discountShippingAmount: n,
|
|
315
|
+
downPayment: s * 0.3,
|
|
316
|
+
finalPayment: s,
|
|
317
|
+
shippingCost: o,
|
|
318
|
+
status: l,
|
|
319
|
+
eventDate: new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + a + 10)),
|
|
320
|
+
eventEnd: new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + a + 11)),
|
|
321
|
+
installationDate: new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + a + 9)),
|
|
322
|
+
demolitionDate: new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + a + 12)),
|
|
323
|
+
invoice: `INV/2025/10/${a + 1}`,
|
|
324
|
+
promoShippingId: Math.random() > 0.8 ? r(u).id : null,
|
|
325
|
+
promoDiscountId: Math.random() > 0.8 ? r(u).id : null,
|
|
326
|
+
message: `Catatan khusus untuk pesanan ${a + 1}.`,
|
|
327
|
+
additionalCharges: Math.random() > 0.9 ? [{ name: "Biaya Kebersihan", price: 1e5 }] : null,
|
|
328
|
+
read: Math.random() > 0.5,
|
|
329
|
+
createAt: /* @__PURE__ */ new Date(),
|
|
330
|
+
updateAt: /* @__PURE__ */ new Date()
|
|
331
|
+
}), l === "completed" && c.push({
|
|
332
|
+
id: c.length + 1,
|
|
333
|
+
nameCustomer: `Pelanggan ${a + 1}`,
|
|
334
|
+
photoCustomer: `https://picsum.photos/300/300?random=${700 + a}`,
|
|
335
|
+
rate: r([3, 4, 5]),
|
|
336
|
+
message: `Ulasan yang bagus untuk pesanan ${e}.`,
|
|
337
|
+
photoProject: `https://picsum.photos/300/300?random=${800 + a}`,
|
|
338
|
+
published: !0,
|
|
339
|
+
newsPublished: !1,
|
|
340
|
+
orderCode: e,
|
|
341
|
+
read: !0,
|
|
342
|
+
createAt: /* @__PURE__ */ new Date(),
|
|
343
|
+
updateAt: /* @__PURE__ */ new Date()
|
|
344
|
+
});
|
|
345
|
+
for (let D = 0; D < Math.floor(Math.random() * 2) + 1; D++) {
|
|
346
|
+
const k = m.length + 1;
|
|
347
|
+
if (m.push({
|
|
348
|
+
id: k,
|
|
349
|
+
orderId: a + 1,
|
|
350
|
+
toolId: r(h).id,
|
|
351
|
+
quantity: Math.floor(Math.random() * 10) + 1,
|
|
352
|
+
subTotal: (Math.floor(Math.random() * 100) + 1) * 1e3
|
|
353
|
+
}), Math.random() > 0.5)
|
|
354
|
+
for (let M = 0; M < Math.floor(Math.random() * 2); M++)
|
|
355
|
+
p.push({
|
|
356
|
+
id: p.length + 1,
|
|
357
|
+
orderToolsId: k,
|
|
358
|
+
subToolId: r(f).id,
|
|
359
|
+
quantity: Math.floor(Math.random() * 5) + 1,
|
|
360
|
+
subTotal: (Math.floor(Math.random() * 20) + 1) * 1e3
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
l !== "pending" && l !== "canceled" && d.push({
|
|
364
|
+
id: d.length + 1,
|
|
365
|
+
orderId: a + 1,
|
|
366
|
+
source: "DP",
|
|
367
|
+
image: `https://picsum.photos/300/300?random=${900 + a}`,
|
|
368
|
+
pay: s * 0.3,
|
|
369
|
+
status: "paid",
|
|
370
|
+
currency: "IDR",
|
|
371
|
+
note: `DP untuk ${e}`,
|
|
372
|
+
createdAt: /* @__PURE__ */ new Date(),
|
|
373
|
+
updatedAt: /* @__PURE__ */ new Date()
|
|
374
|
+
}), (l === "completed" || l === "waitingRepayment") && d.push({
|
|
375
|
+
id: d.length + 1,
|
|
376
|
+
orderId: a + 1,
|
|
377
|
+
source: "Pelunasan",
|
|
378
|
+
image: `https://picsum.photos/300/300?random=${1e3 + a}`,
|
|
379
|
+
pay: s * 0.7,
|
|
380
|
+
status: "paid",
|
|
381
|
+
currency: "IDR",
|
|
382
|
+
note: `Pelunasan untuk ${e}`,
|
|
383
|
+
createdAt: /* @__PURE__ */ new Date(),
|
|
384
|
+
updatedAt: /* @__PURE__ */ new Date()
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
const W = {
|
|
388
|
+
admin: I,
|
|
389
|
+
company: K,
|
|
390
|
+
profil: N,
|
|
391
|
+
shippingPrice: x,
|
|
392
|
+
QandA: v,
|
|
393
|
+
promo: u,
|
|
394
|
+
news: E,
|
|
395
|
+
type: b,
|
|
396
|
+
model: g,
|
|
397
|
+
tools: h,
|
|
398
|
+
subTool: f,
|
|
399
|
+
subToolsImages: B,
|
|
400
|
+
color: P,
|
|
401
|
+
pages: S,
|
|
402
|
+
rateCustomerOrder: c,
|
|
403
|
+
incomes: d,
|
|
404
|
+
expenditure: R,
|
|
405
|
+
services: $,
|
|
406
|
+
subscribe: _,
|
|
407
|
+
visitors: C,
|
|
408
|
+
cqs: j,
|
|
409
|
+
orders: w,
|
|
410
|
+
orderTools: m,
|
|
411
|
+
orderAccessories: p
|
|
412
|
+
// Note: orderDistances would likely be nested in a real app, but following a flat structure for this file.
|
|
413
|
+
}, L = {
|
|
55
414
|
keys: {
|
|
56
415
|
idKey: "id",
|
|
57
416
|
idsKey: "ids",
|
|
@@ -215,7 +574,7 @@ const m = [
|
|
|
215
574
|
delete: "/api/admin/tool/delete/:id",
|
|
216
575
|
deleteMany: "/api/admin/tool/delete"
|
|
217
576
|
}
|
|
218
|
-
},
|
|
577
|
+
}, U = {
|
|
219
578
|
keys: {
|
|
220
579
|
idKey: "id",
|
|
221
580
|
idsKey: "ids"
|
|
@@ -261,7 +620,7 @@ const m = [
|
|
|
261
620
|
delete: "/api/admin/type/delete/:id",
|
|
262
621
|
deleteMany: "/api/admin/type/delete"
|
|
263
622
|
}
|
|
264
|
-
},
|
|
623
|
+
}, z = {
|
|
265
624
|
keys: {
|
|
266
625
|
idKey: "id",
|
|
267
626
|
idsKey: "ids"
|
|
@@ -318,7 +677,7 @@ const m = [
|
|
|
318
677
|
delete: "/api/admin/tool/color/delete/:id",
|
|
319
678
|
deleteMany: "/api/admin/tool/color/delete"
|
|
320
679
|
}
|
|
321
|
-
},
|
|
680
|
+
}, V = {
|
|
322
681
|
keys: {
|
|
323
682
|
idKey: "id",
|
|
324
683
|
idsKey: "ids"
|
|
@@ -501,7 +860,7 @@ const m = [
|
|
|
501
860
|
delete: "/api/admin/tool/sub/delete/:id",
|
|
502
861
|
deleteMany: "/api/admin/tool/sub/delete"
|
|
503
862
|
}
|
|
504
|
-
},
|
|
863
|
+
}, Y = {
|
|
505
864
|
keys: {
|
|
506
865
|
idKey: "id",
|
|
507
866
|
idsKey: "ids"
|
|
@@ -547,49 +906,46 @@ const m = [
|
|
|
547
906
|
delete: "/api/admin/model/delete/:id",
|
|
548
907
|
deleteMany: "/api/admin/model/delete"
|
|
549
908
|
}
|
|
550
|
-
},
|
|
909
|
+
}, X = {
|
|
551
910
|
keys: {
|
|
552
911
|
idKey: "id",
|
|
553
912
|
idsKey: "ids"
|
|
554
913
|
},
|
|
555
914
|
base: {
|
|
556
|
-
seoDisplay: "seoScore",
|
|
557
915
|
source: {
|
|
558
|
-
|
|
916
|
+
fetchApi: {
|
|
917
|
+
get: "http://localhost:3000/news",
|
|
918
|
+
getAll: "http://localhost:3000/news"
|
|
919
|
+
}
|
|
559
920
|
},
|
|
560
921
|
dataTabelDisplay: {
|
|
561
922
|
Judul: "title",
|
|
562
923
|
"Gambar Berita": { valueKey: "image", type: "image" },
|
|
563
|
-
Berita: "news",
|
|
564
|
-
tags: { valueKey: "seo.tag", type: "tag" }
|
|
924
|
+
Berita: { valueKey: "news", type: "richtext" }
|
|
565
925
|
},
|
|
926
|
+
seoDisplay: "seoScore",
|
|
566
927
|
lang: "id",
|
|
567
928
|
schema: {
|
|
568
929
|
SeoDisplay: {
|
|
569
|
-
scorePath: "seoScore",
|
|
570
|
-
analysisPath: "seoAnalysis",
|
|
571
930
|
contentType: "article",
|
|
931
|
+
scorePath: "seoScore",
|
|
572
932
|
meta: {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
focusKeyword: "
|
|
933
|
+
title: "seo.metaTitle",
|
|
934
|
+
description: "seo.metaDescription",
|
|
935
|
+
focusKeyword: "seo.metaFocusKeyword"
|
|
576
936
|
},
|
|
577
937
|
content: {
|
|
578
|
-
body: "news",
|
|
579
938
|
image: "image",
|
|
580
|
-
|
|
939
|
+
body: "news",
|
|
940
|
+
tags: "seo.metaTags",
|
|
581
941
|
author: "author"
|
|
582
|
-
},
|
|
583
|
-
social: {
|
|
584
|
-
ogTitle: "meta.title",
|
|
585
|
-
ogDescription: "meta.description",
|
|
586
|
-
ogImage: "image"
|
|
587
942
|
}
|
|
588
943
|
},
|
|
589
944
|
global: {
|
|
590
945
|
title: {
|
|
591
946
|
type: "text",
|
|
592
947
|
label: "Judul Berita",
|
|
948
|
+
placeholder: "Masukkan judul berita",
|
|
593
949
|
validate: {
|
|
594
950
|
duplicate: !0
|
|
595
951
|
},
|
|
@@ -598,80 +954,126 @@ const m = [
|
|
|
598
954
|
image: {
|
|
599
955
|
type: "image",
|
|
600
956
|
label: "Gambar Berita",
|
|
601
|
-
watermark: {
|
|
602
|
-
url: "upload",
|
|
603
|
-
position: "bottom-right",
|
|
604
|
-
transparant: 50
|
|
605
|
-
},
|
|
606
957
|
validate: {
|
|
607
958
|
maxSize: 2048,
|
|
608
959
|
allowedTypes: ["jpeg", "png", "jpg"]
|
|
609
960
|
},
|
|
610
961
|
required: !0
|
|
611
962
|
},
|
|
612
|
-
altImage: {
|
|
613
|
-
type: "text",
|
|
614
|
-
label: "Alt Gambar Berita",
|
|
615
|
-
required: !1
|
|
616
|
-
},
|
|
617
963
|
news: {
|
|
618
964
|
type: "quillEditor",
|
|
619
965
|
label: "Berita",
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
label: "Konfigurasi SEO",
|
|
625
|
-
schema: {
|
|
626
|
-
metaTitle: {
|
|
627
|
-
type: "text",
|
|
628
|
-
label: "Meta Title (Google)",
|
|
629
|
-
placeholder: "Judul pendek max 60 char...",
|
|
630
|
-
required: !1
|
|
631
|
-
// Jika kosong, ambil dari Judul Berita utama
|
|
632
|
-
},
|
|
633
|
-
metaDescription: {
|
|
634
|
-
type: "textArea",
|
|
635
|
-
// Sebaiknya textarea, bukan text biasa
|
|
636
|
-
label: "Meta Description",
|
|
637
|
-
required: !1,
|
|
638
|
-
validate: {
|
|
639
|
-
maxLength: 160
|
|
640
|
-
// Validasi panjang karakter
|
|
641
|
-
}
|
|
642
|
-
},
|
|
643
|
-
keywords: {
|
|
644
|
-
type: "text",
|
|
645
|
-
label: "Focus Keyword",
|
|
646
|
-
// Ubah label jadi Tunggal biar jelas
|
|
647
|
-
placeholder: "Kata kunci utama...",
|
|
648
|
-
required: !1
|
|
649
|
-
},
|
|
650
|
-
canonicalUrl: {
|
|
651
|
-
// Tambahan untuk Advanced SEO
|
|
652
|
-
type: "url",
|
|
653
|
-
label: "Canonical URL (Opsional)",
|
|
654
|
-
placeholder: "Isi jika ini konten duplikat/syndication",
|
|
655
|
-
required: !1
|
|
656
|
-
},
|
|
657
|
-
tag: {
|
|
658
|
-
type: "tag",
|
|
659
|
-
label: "Tags / Topik",
|
|
660
|
-
required: !1
|
|
661
|
-
}
|
|
662
|
-
},
|
|
663
|
-
required: !0
|
|
966
|
+
placeholder: "Masukkan isi berita",
|
|
967
|
+
required: !0,
|
|
968
|
+
apiUploadImage: "/api/admin/image/upload",
|
|
969
|
+
apiUploadVideo: "/api/admin/image/upload"
|
|
664
970
|
},
|
|
665
971
|
category: {
|
|
666
|
-
type: "
|
|
972
|
+
type: "select",
|
|
973
|
+
options: [
|
|
974
|
+
"Berita",
|
|
975
|
+
"Artikel",
|
|
976
|
+
"Testimoni",
|
|
977
|
+
"Penghargaan",
|
|
978
|
+
"Pengumuman",
|
|
979
|
+
"Karir",
|
|
980
|
+
"CSR",
|
|
981
|
+
"Siaran Pers",
|
|
982
|
+
"Inspirasi",
|
|
983
|
+
"Studi Kasus",
|
|
984
|
+
"Porfolio",
|
|
985
|
+
"Tips",
|
|
986
|
+
"Prduk Baru",
|
|
987
|
+
"Event",
|
|
988
|
+
"Promo",
|
|
989
|
+
"Lainnya"
|
|
990
|
+
],
|
|
667
991
|
label: "Kategori",
|
|
668
|
-
|
|
992
|
+
placeholder: "Pilih kategori",
|
|
993
|
+
required: !0
|
|
669
994
|
},
|
|
670
995
|
author: {
|
|
671
996
|
type: "text",
|
|
672
997
|
label: "Author",
|
|
998
|
+
placeholder: "Masukkan nama author",
|
|
999
|
+
value: "Admin",
|
|
673
1000
|
required: !1
|
|
674
1001
|
},
|
|
1002
|
+
seo: {
|
|
1003
|
+
type: "object",
|
|
1004
|
+
label: "SEO",
|
|
1005
|
+
schema: {
|
|
1006
|
+
optionsGroup: {
|
|
1007
|
+
type: "optionGroupSchema",
|
|
1008
|
+
label: "Konfigurasi SEO",
|
|
1009
|
+
typeDesign: "cekbox",
|
|
1010
|
+
options: {
|
|
1011
|
+
meta: {
|
|
1012
|
+
metaTitle: {
|
|
1013
|
+
type: "text",
|
|
1014
|
+
label: "Judul Halaman",
|
|
1015
|
+
placeholder: "Masukkan judul halaman"
|
|
1016
|
+
},
|
|
1017
|
+
metaDescription: {
|
|
1018
|
+
type: "textArea",
|
|
1019
|
+
label: "Deskripsi Singkat",
|
|
1020
|
+
placeholder: "Masukkan deskripsi singkat"
|
|
1021
|
+
},
|
|
1022
|
+
metaFocusKeyword: {
|
|
1023
|
+
type: "text",
|
|
1024
|
+
label: "Kata Kunci",
|
|
1025
|
+
placeholder: "Masukkan kata kunci",
|
|
1026
|
+
required: !1
|
|
1027
|
+
},
|
|
1028
|
+
metaTags: {
|
|
1029
|
+
type: "tag",
|
|
1030
|
+
label: "Tags",
|
|
1031
|
+
placeholder: "Masukkan tag",
|
|
1032
|
+
required: !1
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
"Open Graph": {
|
|
1036
|
+
title: {
|
|
1037
|
+
type: "text",
|
|
1038
|
+
label: "Judul Halaman",
|
|
1039
|
+
placeholder: "Masukkan judul halaman",
|
|
1040
|
+
required: !1
|
|
1041
|
+
},
|
|
1042
|
+
description: {
|
|
1043
|
+
type: "textArea",
|
|
1044
|
+
label: "Deskripsi Singkat",
|
|
1045
|
+
placeholder: "Masukkan deskripsi singkat",
|
|
1046
|
+
required: !1
|
|
1047
|
+
},
|
|
1048
|
+
ogImage: {
|
|
1049
|
+
type: "image",
|
|
1050
|
+
label: "Gambar Halaman",
|
|
1051
|
+
required: !1
|
|
1052
|
+
}
|
|
1053
|
+
},
|
|
1054
|
+
twitter: {
|
|
1055
|
+
title: {
|
|
1056
|
+
type: "text",
|
|
1057
|
+
label: "Judul Halaman",
|
|
1058
|
+
placeholder: "Masukkan judul halaman",
|
|
1059
|
+
required: !1
|
|
1060
|
+
},
|
|
1061
|
+
description: {
|
|
1062
|
+
type: "textArea",
|
|
1063
|
+
label: "Deskripsi singkat",
|
|
1064
|
+
placeholder: "Masukkan deskripsi singkat",
|
|
1065
|
+
required: !1
|
|
1066
|
+
},
|
|
1067
|
+
twitterImage: {
|
|
1068
|
+
type: "image",
|
|
1069
|
+
label: "Gambar Halaman",
|
|
1070
|
+
required: !1
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
675
1077
|
source: {
|
|
676
1078
|
type: "arrayObject",
|
|
677
1079
|
label: "Daftar Referensi",
|
|
@@ -679,34 +1081,35 @@ const m = [
|
|
|
679
1081
|
category: {
|
|
680
1082
|
type: "select",
|
|
681
1083
|
label: "Jenis Sumber",
|
|
682
|
-
|
|
1084
|
+
placeholder: "Pilih jenis sumber",
|
|
1085
|
+
options: ["Buku", "Jurnal", "Berita/Artikel Web", "Lainnya"],
|
|
683
1086
|
required: !0
|
|
684
1087
|
},
|
|
685
|
-
|
|
1088
|
+
tittle: {
|
|
686
1089
|
type: "text",
|
|
687
1090
|
label: "Judul (Buku/Artikel/Jurnal)",
|
|
1091
|
+
placeholder: "Masukkan judul sumber",
|
|
688
1092
|
required: !0
|
|
689
1093
|
},
|
|
690
1094
|
author: {
|
|
691
|
-
// Penting untuk Buku & Jurnal
|
|
692
1095
|
type: "text",
|
|
693
1096
|
label: "Penulis / Kontributor",
|
|
694
|
-
|
|
1097
|
+
placeholder: "Masukkan penulis/kontributor",
|
|
1098
|
+
required: !0
|
|
695
1099
|
},
|
|
696
1100
|
url: {
|
|
697
1101
|
type: "url",
|
|
698
1102
|
label: "Link (Kosongkan jika Buku Fisik)",
|
|
1103
|
+
placeholder: "Masukkan link sumber",
|
|
699
1104
|
required: !1
|
|
700
|
-
// Diubah jadi false agar buku fisik bisa masuk
|
|
701
1105
|
},
|
|
702
1106
|
identifier: {
|
|
703
|
-
// Untuk ISBN (Buku) atau DOI (Jurnal)
|
|
704
1107
|
type: "text",
|
|
705
1108
|
label: "Identitas Tambahan (ISBN/DOI/Penerbit)",
|
|
1109
|
+
placeholder: "Masukkan identitas tambahan",
|
|
706
1110
|
required: !1
|
|
707
1111
|
}
|
|
708
|
-
}
|
|
709
|
-
required: !1
|
|
1112
|
+
}
|
|
710
1113
|
},
|
|
711
1114
|
orderCode: {
|
|
712
1115
|
type: "select",
|
|
@@ -725,12 +1128,12 @@ const m = [
|
|
|
725
1128
|
}
|
|
726
1129
|
},
|
|
727
1130
|
endPoints: {
|
|
728
|
-
create: "/
|
|
729
|
-
update: "/
|
|
730
|
-
delete: "/
|
|
731
|
-
deleteMany: "/
|
|
1131
|
+
create: "http://localhost:3000/admin/news/create",
|
|
1132
|
+
update: "http://localhost:3000/admin/news/update",
|
|
1133
|
+
delete: "http://localhost:3000/admin/news/delete/:id",
|
|
1134
|
+
deleteMany: "http://localhost:3000/admin/news/delete"
|
|
732
1135
|
}
|
|
733
|
-
},
|
|
1136
|
+
}, Q = {
|
|
734
1137
|
keys: {
|
|
735
1138
|
idKey: "id",
|
|
736
1139
|
idsKey: "ids"
|
|
@@ -1000,7 +1403,7 @@ const m = [
|
|
|
1000
1403
|
delete: "/api/admin/promo/delete/:id",
|
|
1001
1404
|
deleteMany: "/api/admin/promo/delete"
|
|
1002
1405
|
}
|
|
1003
|
-
},
|
|
1406
|
+
}, Z = {
|
|
1004
1407
|
keys: {
|
|
1005
1408
|
idKey: "id",
|
|
1006
1409
|
idsKey: "ids"
|
|
@@ -1041,7 +1444,7 @@ const m = [
|
|
|
1041
1444
|
delete: "/api/admin/qanda/delete/:id",
|
|
1042
1445
|
deleteMany: "/api/admin/qanda/delete"
|
|
1043
1446
|
}
|
|
1044
|
-
},
|
|
1447
|
+
}, ee = {
|
|
1045
1448
|
feature: {
|
|
1046
1449
|
createActive: !1,
|
|
1047
1450
|
deleteActive: !1,
|
|
@@ -1106,7 +1509,7 @@ const m = [
|
|
|
1106
1509
|
endPoints: {
|
|
1107
1510
|
update: "/api/admin/page/update"
|
|
1108
1511
|
}
|
|
1109
|
-
},
|
|
1512
|
+
}, ae = {
|
|
1110
1513
|
keys: {
|
|
1111
1514
|
idKey: "id",
|
|
1112
1515
|
idsKey: "ids"
|
|
@@ -1268,7 +1671,7 @@ const m = [
|
|
|
1268
1671
|
delete: "/api/admin/order/delete/:id",
|
|
1269
1672
|
deleteMany: "/api/admin/order/delete"
|
|
1270
1673
|
}
|
|
1271
|
-
},
|
|
1674
|
+
}, te = {
|
|
1272
1675
|
keys: {
|
|
1273
1676
|
idKey: "id",
|
|
1274
1677
|
idsKey: "ids"
|
|
@@ -1347,24 +1750,24 @@ const m = [
|
|
|
1347
1750
|
create: "/api/admin/order/payment/create",
|
|
1348
1751
|
update: "/api/admin/order/payment/update"
|
|
1349
1752
|
}
|
|
1350
|
-
},
|
|
1351
|
-
switch (
|
|
1753
|
+
}, re = async (a) => {
|
|
1754
|
+
switch (a.key) {
|
|
1352
1755
|
case "acceptPayment":
|
|
1353
1756
|
try {
|
|
1354
|
-
if (
|
|
1757
|
+
if (a.item["Status Pembayaran"] === "paid")
|
|
1355
1758
|
return {
|
|
1356
1759
|
mode: "error",
|
|
1357
1760
|
message: "Pembayaran Sudah Di ACC"
|
|
1358
1761
|
};
|
|
1359
|
-
const
|
|
1360
|
-
id:
|
|
1762
|
+
const e = {
|
|
1763
|
+
id: a.item.id,
|
|
1361
1764
|
status: "paid"
|
|
1362
|
-
}, t = await
|
|
1765
|
+
}, t = await q("/api/admin/order/payment/update/status", {
|
|
1363
1766
|
method: "PATCH",
|
|
1364
1767
|
headers: {
|
|
1365
1768
|
"Content-Type": "application/json"
|
|
1366
1769
|
},
|
|
1367
|
-
body: JSON.stringify(
|
|
1770
|
+
body: JSON.stringify(e)
|
|
1368
1771
|
});
|
|
1369
1772
|
if (!t.ok)
|
|
1370
1773
|
return {
|
|
@@ -1372,12 +1775,12 @@ const m = [
|
|
|
1372
1775
|
message: "Gagal Mengupdate Status Pembayaran"
|
|
1373
1776
|
};
|
|
1374
1777
|
const i = await t.json();
|
|
1375
|
-
return await
|
|
1778
|
+
return await T("income", i.data), {
|
|
1376
1779
|
mode: "success",
|
|
1377
1780
|
message: "Status Pembayaran Berhasil Diupdate"
|
|
1378
1781
|
};
|
|
1379
|
-
} catch (
|
|
1380
|
-
return console.error(
|
|
1782
|
+
} catch (e) {
|
|
1783
|
+
return console.error(e), {
|
|
1381
1784
|
mode: "error",
|
|
1382
1785
|
message: "Terjadi Kesalahan"
|
|
1383
1786
|
};
|
|
@@ -1388,7 +1791,7 @@ const m = [
|
|
|
1388
1791
|
message: "Status Pembayaran Berhasil Diupdate"
|
|
1389
1792
|
};
|
|
1390
1793
|
}
|
|
1391
|
-
},
|
|
1794
|
+
}, ie = {
|
|
1392
1795
|
keys: {
|
|
1393
1796
|
idKey: "id",
|
|
1394
1797
|
idsKey: "ids"
|
|
@@ -1446,7 +1849,7 @@ const m = [
|
|
|
1446
1849
|
delete: "/api/admin/questions/delete/:id",
|
|
1447
1850
|
deleteMany: "/api/admin/questions/delete"
|
|
1448
1851
|
}
|
|
1449
|
-
},
|
|
1852
|
+
}, ne = {
|
|
1450
1853
|
keys: {
|
|
1451
1854
|
idKey: "id",
|
|
1452
1855
|
idsKey: "ids"
|
|
@@ -1482,7 +1885,7 @@ const m = [
|
|
|
1482
1885
|
delete: "/api/admin/expenditure/delete/:id",
|
|
1483
1886
|
deleteMany: "/api/admin/expenditure/delete"
|
|
1484
1887
|
}
|
|
1485
|
-
},
|
|
1888
|
+
}, oe = {
|
|
1486
1889
|
keys: {
|
|
1487
1890
|
idKey: "id",
|
|
1488
1891
|
idsKey: "ids"
|
|
@@ -1532,7 +1935,7 @@ const m = [
|
|
|
1532
1935
|
delete: "/api/admin/service/delete/:id",
|
|
1533
1936
|
deleteMany: "/api/admin/service/delete"
|
|
1534
1937
|
}
|
|
1535
|
-
},
|
|
1938
|
+
}, le = {
|
|
1536
1939
|
keys: {
|
|
1537
1940
|
idKey: "id",
|
|
1538
1941
|
idsKey: "ids"
|
|
@@ -1601,113 +2004,113 @@ const m = [
|
|
|
1601
2004
|
}
|
|
1602
2005
|
};
|
|
1603
2006
|
export {
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
2007
|
+
Te as AlertApp,
|
|
2008
|
+
qe as ArrayObjectInput,
|
|
2009
|
+
Ie as BaseImage,
|
|
2010
|
+
Ke as BaseLabel,
|
|
2011
|
+
U as CategoriesSchema,
|
|
2012
|
+
Ne as ColorInput,
|
|
2013
|
+
z as ColorsSchema,
|
|
2014
|
+
ie as CqSchema,
|
|
2015
|
+
xe as CurrencyInput,
|
|
2016
|
+
ve as DATETIME_REGEX,
|
|
2017
|
+
Be as DATE_REGEX,
|
|
2018
|
+
Ee as DateInput,
|
|
2019
|
+
$e as DateTimeInput,
|
|
2020
|
+
_e as EmailInput,
|
|
2021
|
+
Ce as FieldDetailRenderer,
|
|
2022
|
+
je as FileArrayInput,
|
|
2023
|
+
Re as FileInput,
|
|
2024
|
+
Ge as FormFieldRenderer,
|
|
2025
|
+
Oe as FormModal,
|
|
2026
|
+
Fe as GroupRendererInput,
|
|
2027
|
+
He as ImageArrayInput,
|
|
2028
|
+
Je as ImageInput,
|
|
2029
|
+
We as ImagePreview,
|
|
2030
|
+
F as ImageTypes,
|
|
2031
|
+
Le as Loader,
|
|
2032
|
+
Ue as ModalDetailData,
|
|
2033
|
+
Y as ModelSchema,
|
|
2034
|
+
X as NewsSchema,
|
|
2035
|
+
ze as NumberInput,
|
|
2036
|
+
Ve as ObjectInput,
|
|
2037
|
+
ae as OrderSchema,
|
|
2038
|
+
ee as PageSchema,
|
|
2039
|
+
Ye as PasswordInput,
|
|
2040
|
+
Q as PromoSchema,
|
|
2041
|
+
Z as QnASchema,
|
|
2042
|
+
Xe as RateInput,
|
|
2043
|
+
le as RateSchema,
|
|
2044
|
+
Qe as SafeHtml,
|
|
2045
|
+
Ze as SelectedOptions,
|
|
2046
|
+
oe as ServiceSchema,
|
|
2047
|
+
V as SubToolSchema,
|
|
2048
|
+
ea as TIME_REGEX,
|
|
2049
|
+
aa as TabelData,
|
|
2050
|
+
ta as TagInput,
|
|
2051
|
+
ra as TelInput,
|
|
2052
|
+
ia as TextAreaInput,
|
|
2053
|
+
na as TextAreaQuillInput,
|
|
2054
|
+
oa as TextInput,
|
|
2055
|
+
la as TimeInput,
|
|
2056
|
+
sa as ToggleInput,
|
|
2057
|
+
L as ToolSchema,
|
|
2058
|
+
da as Tooltip,
|
|
2059
|
+
ua as UrlInput,
|
|
2060
|
+
ma as WarningForm,
|
|
2061
|
+
pa as calculateSeo,
|
|
2062
|
+
ue as clearStore,
|
|
2063
|
+
me as configureIndexedDB,
|
|
2064
|
+
ca as defaultEndpoints,
|
|
2065
|
+
ya as defaultFeatureToggles,
|
|
2066
|
+
ba as defaultKeys,
|
|
2067
|
+
ga as defaultManualControl,
|
|
2068
|
+
pe as defaultMessagesErrorRequired,
|
|
2069
|
+
ha as defaultPagination,
|
|
2070
|
+
Da as defaultSubmitAuth,
|
|
2071
|
+
ce as defaultTextLabelsMap,
|
|
2072
|
+
ka as defaultValidation,
|
|
2073
|
+
ye as deleteItemFromStore,
|
|
2074
|
+
Ma as deleteNestedAndCleanup,
|
|
2075
|
+
Aa as emailRegex,
|
|
2076
|
+
ne as expenditureSchema,
|
|
2077
|
+
H as fieldTypes,
|
|
2078
|
+
J as formDesign,
|
|
2079
|
+
Pa as formatDate,
|
|
2080
|
+
fa as formatDateTime,
|
|
2081
|
+
Sa as formatTime,
|
|
2082
|
+
wa as gcd,
|
|
2083
|
+
Ta as getClientLocaleAndTimeZone,
|
|
2084
|
+
qa as getCommonRatio,
|
|
1682
2085
|
be as getFromIndexedDB,
|
|
1683
2086
|
ge as getItemById,
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
2087
|
+
Ia as getMessage,
|
|
2088
|
+
Ka as getNested,
|
|
2089
|
+
he as getSingleFromIndexedDB,
|
|
2090
|
+
re as handleCustomActionIncome,
|
|
2091
|
+
Na as hasAnyError,
|
|
2092
|
+
te as incomeSchema,
|
|
2093
|
+
De as inputMessages,
|
|
2094
|
+
xa as isSameMessage,
|
|
2095
|
+
ke as isStoreArray,
|
|
2096
|
+
W as newDemoData,
|
|
2097
|
+
va as normalizeKey,
|
|
2098
|
+
Me as registerErrorMessageRequired,
|
|
2099
|
+
Ae as registerInputMessages,
|
|
2100
|
+
Pe as registerLanguage,
|
|
1698
2101
|
fe as removeFromIndexedDB,
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
2102
|
+
Ba as safeValidate,
|
|
2103
|
+
Se as saveToIndexedDB,
|
|
2104
|
+
q as secureFetch,
|
|
2105
|
+
Ea as setNested,
|
|
2106
|
+
$a as setUID,
|
|
2107
|
+
_a as simplifyRatio,
|
|
2108
|
+
Ca as submitData,
|
|
2109
|
+
ja as telRegex,
|
|
2110
|
+
Ra as toDateOnly,
|
|
2111
|
+
Ga as toDateTimeString,
|
|
2112
|
+
Oa as toTimeOnly,
|
|
2113
|
+
Fa as unsetNested,
|
|
2114
|
+
T as updateItemInStore,
|
|
2115
|
+
Ha as validate
|
|
1713
2116
|
};
|