@jsg-developer/vue-pack 0.0.9-beta-3 → 0.0.9-beta-5

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.
Files changed (78) hide show
  1. package/THIRD_PARTY_LICENSES.json +21 -21
  2. package/dist/TabelData-CBsZDSCf.js +8144 -0
  3. package/dist/TabelData-an0OdJkA.cjs +15 -0
  4. package/dist/init.cjs.js +1 -1
  5. package/dist/init.es.js +1 -1
  6. package/dist/jsgd-vue-pack.cjs.js +1 -1
  7. package/dist/jsgd-vue-pack.es.js +507 -148
  8. package/dist/resize-Cp7HnMN4.cjs +1 -0
  9. package/dist/resize-dgEcQ7xe.js +1308 -0
  10. package/dist/style.css +1 -1
  11. package/dist/types/components/Form/FormModal.vue.d.ts +2 -2
  12. package/dist/types/components/Tabel/TabelData.vue.d.ts +2 -2
  13. package/dist/types/components/UI/Inputs/ComboboxComponent.vue.d.ts +2 -2
  14. package/dist/types/components/UI/Inputs/TextAreaQuill.vue.d.ts +1 -1
  15. package/dist/types/components/UI/Inputs/components/QuillAltModal.vue.d.ts +2 -2
  16. package/dist/types/components/UI/Inputs/components/QuillEmbedModal.vue.d.ts +2 -2
  17. package/dist/types/components/index.d.ts +1 -1
  18. package/dist/vue.cjs.js +1 -1
  19. package/dist/vue.es.js +42 -47
  20. package/package.json +8 -1
  21. package/dist/chunks/ArrayObject-DwVt3eh-.es.js +0 -4
  22. package/dist/chunks/ArrayObject-e7im6eBP.cjs.js +0 -1
  23. package/dist/chunks/ColorPicker-CxZWLnsr.cjs.js +0 -1
  24. package/dist/chunks/ColorPicker-DQUgC1cK.es.js +0 -4
  25. package/dist/chunks/ComboboxComponent-5Zxsxn-S.cjs.js +0 -1
  26. package/dist/chunks/ComboboxComponent-CkKLd9DX.es.js +0 -4
  27. package/dist/chunks/CurrencyInput-BKbPcc_k.cjs.js +0 -1
  28. package/dist/chunks/CurrencyInput-Cff03PXP.es.js +0 -4
  29. package/dist/chunks/DateInput-Bpk81F9d.es.js +0 -4
  30. package/dist/chunks/DateInput-D0NRZEqD.cjs.js +0 -1
  31. package/dist/chunks/DateTimeInput-BZvisXR0.cjs.js +0 -1
  32. package/dist/chunks/DateTimeInput-_VELf1-m.es.js +0 -4
  33. package/dist/chunks/DateTimeInput.vue_vue_type_script_setup_true_lang-BQYxHJQE.es.js +0 -142
  34. package/dist/chunks/DateTimeInput.vue_vue_type_script_setup_true_lang-D2mOJLif.cjs.js +0 -2
  35. package/dist/chunks/EmailInput-BZDxyq5g.es.js +0 -4
  36. package/dist/chunks/EmailInput-C4S7LL5_.cjs.js +0 -1
  37. package/dist/chunks/FileArrayInput-DblD-30I.cjs.js +0 -1
  38. package/dist/chunks/FileArrayInput-cVGEFZqV.es.js +0 -5
  39. package/dist/chunks/FileArrayInput.vue_vue_type_script_setup_true_lang-BEWmM_CM.es.js +0 -198
  40. package/dist/chunks/FileArrayInput.vue_vue_type_script_setup_true_lang-DcqfeQO5.cjs.js +0 -2
  41. package/dist/chunks/FileInput-D-0k_iz0.cjs.js +0 -1
  42. package/dist/chunks/FileInput-LIRvJZP2.es.js +0 -4
  43. package/dist/chunks/GroupRenderer-C9p8bQHX.es.js +0 -4
  44. package/dist/chunks/GroupRenderer-hNIJHbIp.cjs.js +0 -1
  45. package/dist/chunks/ImageArrayInput-Du1Q-41Z.cjs.js +0 -1
  46. package/dist/chunks/ImageArrayInput-NUG8P1Ac.es.js +0 -5
  47. package/dist/chunks/ImageArrayInput.vue_vue_type_script_setup_true_lang-CJOFV2o_.cjs.js +0 -2
  48. package/dist/chunks/ImageArrayInput.vue_vue_type_script_setup_true_lang-WuIapM3i.es.js +0 -421
  49. package/dist/chunks/ImageInput-COEb7BD5.cjs.js +0 -1
  50. package/dist/chunks/ImageInput-Dz_mUKCF.es.js +0 -4
  51. package/dist/chunks/NumberInput-CsyzfqAn.es.js +0 -4
  52. package/dist/chunks/NumberInput-CvW50XFc.cjs.js +0 -1
  53. package/dist/chunks/ObjectInput-HW2Wjhk5.cjs.js +0 -1
  54. package/dist/chunks/ObjectInput-Te_0mFFS.es.js +0 -4
  55. package/dist/chunks/PasswordInput-Df5rrA0r.cjs.js +0 -1
  56. package/dist/chunks/PasswordInput-xJx1guCb.es.js +0 -4
  57. package/dist/chunks/RateInput-DsHmxlza.cjs.js +0 -1
  58. package/dist/chunks/RateInput-UcMY-PnU.es.js +0 -4
  59. package/dist/chunks/TabelData-Do3nGlBe.es.js +0 -2439
  60. package/dist/chunks/TabelData-DqlPp5LB.cjs.js +0 -1
  61. package/dist/chunks/TagInput-BLyDR_aS.es.js +0 -4
  62. package/dist/chunks/TagInput-xCVvF9VU.cjs.js +0 -1
  63. package/dist/chunks/TelInput-BJkfhAXe.cjs.js +0 -1
  64. package/dist/chunks/TelInput-BmeWPMjY.es.js +0 -4
  65. package/dist/chunks/TextAreaInput-DpPRpX-5.es.js +0 -4
  66. package/dist/chunks/TextAreaInput-qHwC8xk9.cjs.js +0 -1
  67. package/dist/chunks/TextAreaQuill-CwZ5FWRz.es.js +0 -637
  68. package/dist/chunks/TextAreaQuill-rwHzRCn6.cjs.js +0 -1
  69. package/dist/chunks/TextInput-DieQudfP.cjs.js +0 -1
  70. package/dist/chunks/TextInput-e8-Tu3na.es.js +0 -4
  71. package/dist/chunks/TimeInput-AW3f-c8y.cjs.js +0 -1
  72. package/dist/chunks/TimeInput-DBrqpniq.es.js +0 -4
  73. package/dist/chunks/ToggleInput-CDmLr0hh.es.js +0 -4
  74. package/dist/chunks/ToggleInput-PjdfJ_1T.cjs.js +0 -1
  75. package/dist/chunks/UrlInput-JCbB7d5E.cjs.js +0 -1
  76. package/dist/chunks/UrlInput-ThxoL471.es.js +0 -4
  77. package/dist/chunks/resize-CN1xkf2l.cjs.js +0 -12
  78. package/dist/chunks/resize-DTJl7NMU.es.js +0 -6012
@@ -1,15 +1,8 @@
1
- import { s as r, u as l } from "./chunks/resize-DTJl7NMU.es.js";
2
- import { b as v, c as B, e as w, a5 as _, a2 as G, g as C, h as j, i as R, _ as H, F as O, j as F, k as J, L, l as W, m as $, n as U, f as V, d as z, a3 as Q, o as X, q as Y, p as Z, r as ee, t as ae, v as te, a as ie, w as re, a9 as le, N as ne, G as oe, x as se, z as de, O as ue, $ as pe, a1 as me, R as ce, T as ye, K as be, M as ge, aa as ke, X as he, J as De, W as qe, y as Pe, V as Me, H as Se, Q as Ae, a0 as Te, B as Ke, C as Ne, A as xe, P as fe, E as Ie, I as Ee, Y as ve, U as Be, S as we, ab as _e, a4 as Ge, a6 as Ce, a8 as je, a7 as Re, Z as He, D as Oe } from "./chunks/resize-DTJl7NMU.es.js";
3
- import { d as Je, _ as Le, a as We, F as $e, b as Ue, M as Ve, c as ze, T as Qe, W as Xe, j as Ye, f as Ze, e as ea, g as aa, h as ta, k as ia, i as ra, m as la, o as na, n as oa, l as sa } from "./chunks/TabelData-Do3nGlBe.es.js";
4
- import { _ as ua } from "./chunks/DateTimeInput.vue_vue_type_script_setup_true_lang-BQYxHJQE.es.js";
5
- import { _ as ma } from "./chunks/FileArrayInput.vue_vue_type_script_setup_true_lang-BEWmM_CM.es.js";
6
- import { _ as ya } from "./chunks/ImageArrayInput.vue_vue_type_script_setup_true_lang-WuIapM3i.es.js";
7
- import { default as ga } from "./chunks/TextAreaQuill-CwZ5FWRz.es.js";
8
- import "vue";
9
- import "dompurify";
10
- import "lodash.isequal";
11
- import "zod";
12
- const p = [
1
+ import { u as T } from "./resize-dgEcQ7xe.js";
2
+ import { c as ue, a as me, d as pe, b as ce, e as ye, g as be, f as ge, h as he, i as De, j as ke, r as Me, k as Ae, l as Pe, m as fe, s as Se } from "./resize-dgEcQ7xe.js";
3
+ import { s as q } from "./TabelData-CBsZDSCf.js";
4
+ import { _ as Te, a as qe, b as Ie, c as Ke, d as Ne, e as xe, D as ve, f as Be, g as Ee, h as $e, i as _e, F as Ce, j as je, k as Re, l as Ge, m as Oe, n as Fe, o as He, p as Je, q as We, L as Le, M as Ue, r as ze, t as Ve, u as Ye, v as Xe, w as Qe, x as Ze, T as ea, y as aa, z as ta, A as ra, B as ia, C as na, E as oa, G as la, H as sa, I as da, J as ua, W as ma, K as pa, N as ca, O as ya, P as ba, Q as ga, R as ha, S as Da, U as ka, V as Ma, X as Aa, Y as Pa, Z as fa, $ as Sa, a0 as wa, a1 as Ta, a2 as qa, a3 as Ia, a4 as Ka, a5 as Na, a6 as xa, a7 as va, a8 as Ba, a9 as Ea, aa as $a, ab as _a, ac as Ca, ad as ja, ae as Ra, af as Ga, ag as Oa, ah as Fa, ai as Ha } from "./TabelData-CBsZDSCf.js";
5
+ const F = [
13
6
  "png",
14
7
  "jpg",
15
8
  "jpeg",
@@ -24,7 +17,7 @@ const p = [
24
17
  "avif",
25
18
  "ico",
26
19
  "jfif"
27
- ], m = [
20
+ ], H = [
28
21
  "text",
29
22
  "email",
30
23
  "password",
@@ -51,7 +44,373 @@ const p = [
51
44
  "currency",
52
45
  "rate",
53
46
  "tel"
54
- ], c = ["form", "news"], y = {
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 p = [
215
574
  delete: "/api/admin/tool/delete/:id",
216
575
  deleteMany: "/api/admin/tool/delete"
217
576
  }
218
- }, b = {
577
+ }, U = {
219
578
  keys: {
220
579
  idKey: "id",
221
580
  idsKey: "ids"
@@ -261,7 +620,7 @@ const p = [
261
620
  delete: "/api/admin/type/delete/:id",
262
621
  deleteMany: "/api/admin/type/delete"
263
622
  }
264
- }, g = {
623
+ }, z = {
265
624
  keys: {
266
625
  idKey: "id",
267
626
  idsKey: "ids"
@@ -318,7 +677,7 @@ const p = [
318
677
  delete: "/api/admin/tool/color/delete/:id",
319
678
  deleteMany: "/api/admin/tool/color/delete"
320
679
  }
321
- }, k = {
680
+ }, V = {
322
681
  keys: {
323
682
  idKey: "id",
324
683
  idsKey: "ids"
@@ -501,7 +860,7 @@ const p = [
501
860
  delete: "/api/admin/tool/sub/delete/:id",
502
861
  deleteMany: "/api/admin/tool/sub/delete"
503
862
  }
504
- }, h = {
863
+ }, Y = {
505
864
  keys: {
506
865
  idKey: "id",
507
866
  idsKey: "ids"
@@ -547,7 +906,7 @@ const p = [
547
906
  delete: "/api/admin/model/delete/:id",
548
907
  deleteMany: "/api/admin/model/delete"
549
908
  }
550
- }, D = {
909
+ }, X = {
551
910
  keys: {
552
911
  idKey: "id",
553
912
  idsKey: "ids"
@@ -769,12 +1128,12 @@ const p = [
769
1128
  }
770
1129
  },
771
1130
  endPoints: {
772
- create: "/api/admin/news/create",
773
- update: "/api/admin/news/update",
774
- delete: "/api/admin/news/delete/:id",
775
- deleteMany: "/api/admin/news/delete"
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"
776
1135
  }
777
- }, q = {
1136
+ }, Q = {
778
1137
  keys: {
779
1138
  idKey: "id",
780
1139
  idsKey: "ids"
@@ -1044,7 +1403,7 @@ const p = [
1044
1403
  delete: "/api/admin/promo/delete/:id",
1045
1404
  deleteMany: "/api/admin/promo/delete"
1046
1405
  }
1047
- }, P = {
1406
+ }, Z = {
1048
1407
  keys: {
1049
1408
  idKey: "id",
1050
1409
  idsKey: "ids"
@@ -1085,7 +1444,7 @@ const p = [
1085
1444
  delete: "/api/admin/qanda/delete/:id",
1086
1445
  deleteMany: "/api/admin/qanda/delete"
1087
1446
  }
1088
- }, M = {
1447
+ }, ee = {
1089
1448
  feature: {
1090
1449
  createActive: !1,
1091
1450
  deleteActive: !1,
@@ -1150,7 +1509,7 @@ const p = [
1150
1509
  endPoints: {
1151
1510
  update: "/api/admin/page/update"
1152
1511
  }
1153
- }, S = {
1512
+ }, ae = {
1154
1513
  keys: {
1155
1514
  idKey: "id",
1156
1515
  idsKey: "ids"
@@ -1312,7 +1671,7 @@ const p = [
1312
1671
  delete: "/api/admin/order/delete/:id",
1313
1672
  deleteMany: "/api/admin/order/delete"
1314
1673
  }
1315
- }, A = {
1674
+ }, te = {
1316
1675
  keys: {
1317
1676
  idKey: "id",
1318
1677
  idsKey: "ids"
@@ -1391,24 +1750,24 @@ const p = [
1391
1750
  create: "/api/admin/order/payment/create",
1392
1751
  update: "/api/admin/order/payment/update"
1393
1752
  }
1394
- }, T = async (e) => {
1395
- switch (e.key) {
1753
+ }, re = async (a) => {
1754
+ switch (a.key) {
1396
1755
  case "acceptPayment":
1397
1756
  try {
1398
- if (e.item["Status Pembayaran"] === "paid")
1757
+ if (a.item["Status Pembayaran"] === "paid")
1399
1758
  return {
1400
1759
  mode: "error",
1401
1760
  message: "Pembayaran Sudah Di ACC"
1402
1761
  };
1403
- const a = {
1404
- id: e.item.id,
1762
+ const e = {
1763
+ id: a.item.id,
1405
1764
  status: "paid"
1406
- }, t = await r("/api/admin/order/payment/update/status", {
1765
+ }, t = await q("/api/admin/order/payment/update/status", {
1407
1766
  method: "PATCH",
1408
1767
  headers: {
1409
1768
  "Content-Type": "application/json"
1410
1769
  },
1411
- body: JSON.stringify(a)
1770
+ body: JSON.stringify(e)
1412
1771
  });
1413
1772
  if (!t.ok)
1414
1773
  return {
@@ -1416,12 +1775,12 @@ const p = [
1416
1775
  message: "Gagal Mengupdate Status Pembayaran"
1417
1776
  };
1418
1777
  const i = await t.json();
1419
- return await l("income", i.data), {
1778
+ return await T("income", i.data), {
1420
1779
  mode: "success",
1421
1780
  message: "Status Pembayaran Berhasil Diupdate"
1422
1781
  };
1423
- } catch (a) {
1424
- return console.error(a), {
1782
+ } catch (e) {
1783
+ return console.error(e), {
1425
1784
  mode: "error",
1426
1785
  message: "Terjadi Kesalahan"
1427
1786
  };
@@ -1432,7 +1791,7 @@ const p = [
1432
1791
  message: "Status Pembayaran Berhasil Diupdate"
1433
1792
  };
1434
1793
  }
1435
- }, K = {
1794
+ }, ie = {
1436
1795
  keys: {
1437
1796
  idKey: "id",
1438
1797
  idsKey: "ids"
@@ -1490,7 +1849,7 @@ const p = [
1490
1849
  delete: "/api/admin/questions/delete/:id",
1491
1850
  deleteMany: "/api/admin/questions/delete"
1492
1851
  }
1493
- }, N = {
1852
+ }, ne = {
1494
1853
  keys: {
1495
1854
  idKey: "id",
1496
1855
  idsKey: "ids"
@@ -1526,7 +1885,7 @@ const p = [
1526
1885
  delete: "/api/admin/expenditure/delete/:id",
1527
1886
  deleteMany: "/api/admin/expenditure/delete"
1528
1887
  }
1529
- }, x = {
1888
+ }, oe = {
1530
1889
  keys: {
1531
1890
  idKey: "id",
1532
1891
  idsKey: "ids"
@@ -1576,7 +1935,7 @@ const p = [
1576
1935
  delete: "/api/admin/service/delete/:id",
1577
1936
  deleteMany: "/api/admin/service/delete"
1578
1937
  }
1579
- }, f = {
1938
+ }, le = {
1580
1939
  keys: {
1581
1940
  idKey: "id",
1582
1941
  idsKey: "ids"
@@ -1645,113 +2004,113 @@ const p = [
1645
2004
  }
1646
2005
  };
1647
2006
  export {
1648
- Je as AlertApp,
1649
- v as ArrayObjectInput,
1650
- Le as BaseImage,
1651
- We as BaseLabel,
1652
- b as CategoriesSchema,
1653
- B as ColorInput,
1654
- g as ColorsSchema,
1655
- K as CqSchema,
1656
- w as CurrencyInput,
1657
- _ as DATETIME_REGEX,
1658
- G as DATE_REGEX,
1659
- C as DateInput,
1660
- ua as DateTimeInput,
1661
- j as EmailInput,
1662
- $e as FieldDetailRenderer,
1663
- ma as FileArrayInput,
1664
- R as FileInput,
1665
- H as FormFieldRenderer,
1666
- O as FormModal,
1667
- F as GroupRendererInput,
1668
- ya as ImageArrayInput,
1669
- J as ImageInput,
1670
- Ue as ImagePreview,
1671
- p as ImageTypes,
1672
- L as Loader,
1673
- Ve as ModalDetailData,
1674
- h as ModelSchema,
1675
- D as NewsSchema,
1676
- W as NumberInput,
1677
- $ as ObjectInput,
1678
- S as OrderSchema,
1679
- M as PageSchema,
1680
- U as PasswordInput,
1681
- q as PromoSchema,
1682
- P as QnASchema,
1683
- V as RateInput,
1684
- f as RateSchema,
1685
- ze as SafeHtml,
1686
- z as SelectedOptions,
1687
- x as ServiceSchema,
1688
- k as SubToolSchema,
1689
- Q as TIME_REGEX,
1690
- Qe as TabelData,
1691
- X as TagInput,
1692
- Y as TelInput,
1693
- Z as TextAreaInput,
1694
- ga as TextAreaQuillInput,
1695
- ee as TextInput,
1696
- ae as TimeInput,
1697
- te as ToggleInput,
1698
- y as ToolSchema,
1699
- ie as Tooltip,
1700
- re as UrlInput,
1701
- Xe as WarningForm,
1702
- le as calculateSeo,
1703
- ne as clearStore,
1704
- oe as configureIndexedDB,
1705
- Ye as defaultEndpoints,
1706
- Ze as defaultFeatureToggles,
1707
- ea as defaultKeys,
1708
- aa as defaultManualControl,
1709
- se as defaultMessagesErrorRequired,
1710
- ta as defaultPagination,
1711
- ia as defaultSubmitAuth,
1712
- de as defaultTextLabelsMap,
1713
- ra as defaultValidation,
1714
- ue as deleteItemFromStore,
1715
- pe as deleteNestedAndCleanup,
1716
- me as emailRegex,
1717
- N as expenditureSchema,
1718
- m as fieldTypes,
1719
- c as formDesign,
1720
- la as formatDate,
1721
- na as formatDateTime,
1722
- oa as formatTime,
1723
- ce as gcd,
1724
- sa as getClientLocaleAndTimeZone,
1725
- ye as getCommonRatio,
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,
1726
2085
  be as getFromIndexedDB,
1727
2086
  ge as getItemById,
1728
- ke as getMessage,
1729
- he as getNested,
1730
- De as getSingleFromIndexedDB,
1731
- T as handleCustomActionIncome,
1732
- qe as hasAnyError,
1733
- A as incomeSchema,
1734
- Pe as inputMessages,
1735
- Me as isSameMessage,
1736
- Se as isStoreArray,
1737
- Ae as newDemoData,
1738
- Te as normalizeKey,
1739
- Ke as registerErrorMessageRequired,
1740
- Ne as registerInputMessages,
1741
- xe as registerLanguage,
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,
1742
2101
  fe as removeFromIndexedDB,
1743
- Ie as safeValidate,
1744
- Ee as saveToIndexedDB,
1745
- r as secureFetch,
1746
- ve as setNested,
1747
- Be as setUID,
1748
- we as simplifyRatio,
1749
- _e as submitData,
1750
- Ge as telRegex,
1751
- Ce as toDateOnly,
1752
- je as toDateTimeString,
1753
- Re as toTimeOnly,
1754
- He as unsetNested,
1755
- l as updateItemInStore,
1756
- Oe as validate
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
1757
2116
  };