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

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.
@@ -1,8 +1,8 @@
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 = [
1
+ import { u as w } from "./leaflet-dgEcQ7xe.js";
2
+ import { c as pe, a as me, d as ce, b as ye, e as be, g as ge, f as he, h as ke, i as De, j as Me, r as Pe, k as Ae, l as fe, m as Se, s as qe } from "./leaflet-dgEcQ7xe.js";
3
+ import { s as T } from "./TabelData-h3Hcpmxq.js";
4
+ import { _ as Te, a as Ke, b as Ie, c as Ne, d as xe, e as ve, D as Ee, f as Be, g as _e, h as $e, i as Ce, F as je, j as Ge, k as Re, l as He, m as Oe, n as Je, o as Fe, p as We, q as Le, L as Ue, r as ze, M as Ve, t as Ye, u as Xe, v as Qe, w as Ze, x as ea, y as aa, T as ta, z as ra, A as ia, B as oa, C as na, E as la, G as sa, H as da, I as ua, J as pa, K as ma, W as ca, N as ya, O as ba, P as ga, Q as ha, R as ka, S as Da, U as Ma, V as Pa, X as Aa, Y as fa, Z as Sa, $ as qa, a0 as wa, a1 as Ta, a2 as Ka, a3 as Ia, a4 as Na, a5 as xa, a6 as va, a7 as Ea, a8 as Ba, a9 as _a, aa as $a, ab as Ca, ac as ja, ad as Ga, ae as Ra, af as Ha, ag as Oa, ah as Ja, ai as Fa, aj as Wa } from "./TabelData-h3Hcpmxq.js";
5
+ const O = [
6
6
  "png",
7
7
  "jpg",
8
8
  "jpeg",
@@ -17,7 +17,7 @@ const F = [
17
17
  "avif",
18
18
  "ico",
19
19
  "jfif"
20
- ], H = [
20
+ ], J = [
21
21
  "text",
22
22
  "email",
23
23
  "password",
@@ -43,14 +43,15 @@ const F = [
43
43
  "textArea",
44
44
  "currency",
45
45
  "rate",
46
- "tel"
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 = {
46
+ "tel",
47
+ "mapPicker"
48
+ ], F = ["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)], P = (a, e) => new Date(a.getTime() + Math.random() * (e.getTime() - a.getTime())), K = {
48
49
  id: 1,
49
50
  username: "admin",
50
51
  password: "bcrypt_hashed_password_placeholder",
51
52
  token: null,
52
53
  limitToken: null
53
- }, K = {
54
+ }, I = {
54
55
  id: 1,
55
56
  name: "Solusi Pesta Surabaya",
56
57
  icon: "https://picsum.photos/300/300?random=1",
@@ -96,7 +97,7 @@ const F = [
96
97
  category: r(["Pemesanan", "Pembayaran", "Pengiriman", "Lainnya"]),
97
98
  question: `Ini adalah pertanyaan umum nomor ${e + 1}?`,
98
99
  answer: `Ini adalah jawaban untuk pertanyaan umum nomor ${e + 1}.`,
99
- createAt: A(new Date(2024, 0, 1), /* @__PURE__ */ new Date()),
100
+ createAt: P(new Date(2024, 0, 1), /* @__PURE__ */ new Date()),
100
101
  updateAt: /* @__PURE__ */ new Date()
101
102
  })), b = Array.from({ length: 20 }, (a, e) => ({
102
103
  id: e + 1,
@@ -123,15 +124,15 @@ const F = [
123
124
  typeId: r(b).id,
124
125
  createAt: /* @__PURE__ */ new Date(),
125
126
  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(
127
+ })), A = Array.from({ length: 20 }, (a, e) => {
128
+ const t = Math.floor(Math.random() * 3) + 1, i = t + Math.floor(Math.random() * 3) + 1, o = Array.from(
128
129
  { length: i },
129
130
  () => `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")}`
130
131
  );
131
132
  return {
132
133
  id: e + 1,
133
134
  name: `Palet Warna ${e + 1}`,
134
- colors: n,
135
+ colors: o,
135
136
  options: t,
136
137
  createAt: /* @__PURE__ */ new Date(),
137
138
  updateAt: /* @__PURE__ */ new Date()
@@ -149,7 +150,7 @@ const F = [
149
150
  createAt: /* @__PURE__ */ new Date(),
150
151
  updateAt: /* @__PURE__ */ new Date()
151
152
  };
152
- }), B = Array.from({ length: 40 }, (a, e) => {
153
+ }), E = Array.from({ length: 40 }, (a, e) => {
153
154
  const t = Math.random() > 0.5, i = Math.floor(e / 2) + 1;
154
155
  return {
155
156
  id: e + 1,
@@ -159,27 +160,27 @@ const F = [
159
160
  colors: t ? null : [
160
161
  `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")}`
161
162
  ],
162
- colorToolsId: t ? r(P).id : null,
163
+ colorToolsId: t ? r(A).id : null,
163
164
  createAt: /* @__PURE__ */ new Date()
164
165
  };
165
166
  }), 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,
167
+ const t = `Promo Heboh #${e + 1}`, i = r(["DISCOUNT", "DAY_RENT", "FREE_SHIPPING"]), o = r(["RateDiscount", "NominalDiscount"]);
168
+ let n;
169
+ return i === "DISCOUNT" ? n = {
170
+ discountModel: o,
171
+ discount: o === "RateDiscount" ? Math.floor(Math.random() * 50) + 5 : (Math.floor(Math.random() * 10) + 1) * 1e4,
172
+ maximumDiscount: o === "RateDiscount" ? (Math.floor(Math.random() * 20) + 5) * 1e4 : null,
172
173
  minPrice: (Math.floor(Math.random() * 10) + 1) * 5e4,
173
174
  minDay: null,
174
175
  maxDistance: null
175
- } : i === "DAY_RENT" ? o = {
176
+ } : i === "DAY_RENT" ? n = {
176
177
  discountModel: "RateDiscount",
177
178
  discount: 0,
178
179
  maximumDiscount: null,
179
180
  minPrice: 0,
180
181
  minDay: Math.floor(Math.random() * 3) + 2,
181
182
  maxDistance: null
182
- } : o = {
183
+ } : n = {
183
184
  discountModel: "RateDiscount",
184
185
  discount: 100,
185
186
  maximumDiscount: (Math.floor(Math.random() * 10) + 5) * 1e4,
@@ -203,11 +204,11 @@ const F = [
203
204
  details: {
204
205
  id: e + 1,
205
206
  promoId: e + 1,
206
- ...o
207
+ ...n
207
208
  }
208
209
  };
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"]);
210
+ }), B = Array.from({ length: 20 }, (a, e) => {
211
+ const t = `Berita Terkini Edisi ke-${e + 1}`, i = y(t), o = r(["Buku", "Artikel", "Jurnal"]);
211
212
  return {
212
213
  id: e + 1,
213
214
  title: t,
@@ -226,16 +227,16 @@ const F = [
226
227
  seoScore: Math.random() * 100,
227
228
  source: [
228
229
  {
229
- category: n,
230
+ category: o,
230
231
  name: `Sumber Referensi ${e + 1}`,
231
232
  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
233
+ url: o !== "Buku" ? `https://source.example.com/${e + 1}` : null,
234
+ identifier: o === "Buku" ? `ISBN-978-3-16-148410-${e}` : null
234
235
  }
235
236
  ],
236
237
  show: !0,
237
238
  orderCode: null,
238
- createdAt: A(new Date(2024, 0, 1), /* @__PURE__ */ new Date()),
239
+ createdAt: P(new Date(2024, 0, 1), /* @__PURE__ */ new Date()),
239
240
  updatedAt: /* @__PURE__ */ new Date()
240
241
  };
241
242
  }), S = Array.from({ length: 20 }, (a, e) => {
@@ -250,14 +251,14 @@ const F = [
250
251
  createAt: /* @__PURE__ */ new Date(),
251
252
  updateAt: /* @__PURE__ */ new Date()
252
253
  };
253
- }), $ = Array.from({ length: 20 }, (a, e) => ({
254
+ }), _ = Array.from({ length: 20 }, (a, e) => ({
254
255
  id: e + 1,
255
256
  title: `Layanan Unggulan ${e + 1}`,
256
257
  image: `https://picsum.photos/300/300?random=${600 + e}`,
257
258
  description: `Deskripsi lengkap untuk layanan unggulan kami nomor ${e + 1}.`,
258
259
  createdAt: /* @__PURE__ */ new Date(),
259
260
  updatedAt: /* @__PURE__ */ new Date()
260
- })), _ = Array.from({ length: 20 }, (a, e) => ({
261
+ })), $ = Array.from({ length: 20 }, (a, e) => ({
261
262
  id: e + 1,
262
263
  email: `subscriber${e + 1}@example.com`,
263
264
  number: `089876543${(21 + e).toString().padStart(2, "0")}`,
@@ -281,15 +282,15 @@ const F = [
281
282
  published: Math.random() > 0.5,
282
283
  createdAt: /* @__PURE__ */ new Date(),
283
284
  updatedAt: /* @__PURE__ */ new Date()
284
- })), R = Array.from({ length: 20 }, (a, e) => ({
285
+ })), G = Array.from({ length: 20 }, (a, e) => ({
285
286
  id: e + 1,
286
287
  pay: (Math.floor(Math.random() * 50) + 1) * 1e4,
287
288
  note: `Pengeluaran untuk item ${e + 1}.`,
288
289
  createdAt: /* @__PURE__ */ new Date(),
289
290
  updatedAt: /* @__PURE__ */ new Date()
290
- })), w = [], m = [], p = [], d = [], c = [];
291
+ })), q = [], p = [], m = [], d = [], c = [];
291
292
  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
+ const e = `ORD-${Date.now()}-${a}`, t = (Math.floor(Math.random() * 200) + 50) * 1e4, i = Math.random() > 0.7 ? Math.random() * 5e4 : 0, o = Math.random() > 0.7 ? Math.random() * 2e4 : 0, n = 5e4, s = t - i + (n - o), l = r([
293
294
  "verify",
294
295
  "pending",
295
296
  "completed",
@@ -299,7 +300,7 @@ for (let a = 0; a < 20; a++) {
299
300
  "waitingDpPayment",
300
301
  "eventOngoing"
301
302
  ]);
302
- w.push({
303
+ q.push({
303
304
  id: a + 1,
304
305
  orderCode: e,
305
306
  firstName: "Pelanggan",
@@ -311,10 +312,10 @@ for (let a = 0; a < 20; a++) {
311
312
  totalPriceOrder: t,
312
313
  totalPrice: s,
313
314
  discountOrderAmount: i,
314
- discountShippingAmount: n,
315
+ discountShippingAmount: o,
315
316
  downPayment: s * 0.3,
316
317
  finalPayment: s,
317
- shippingCost: o,
318
+ shippingCost: n,
318
319
  status: l,
319
320
  eventDate: new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + a + 10)),
320
321
  eventEnd: new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + a + 11)),
@@ -342,19 +343,19 @@ for (let a = 0; a < 20; a++) {
342
343
  createAt: /* @__PURE__ */ new Date(),
343
344
  updateAt: /* @__PURE__ */ new Date()
344
345
  });
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,
346
+ for (let k = 0; k < Math.floor(Math.random() * 2) + 1; k++) {
347
+ const D = p.length + 1;
348
+ if (p.push({
349
+ id: D,
349
350
  orderId: a + 1,
350
351
  toolId: r(h).id,
351
352
  quantity: Math.floor(Math.random() * 10) + 1,
352
353
  subTotal: (Math.floor(Math.random() * 100) + 1) * 1e3
353
354
  }), Math.random() > 0.5)
354
355
  for (let M = 0; M < Math.floor(Math.random() * 2); M++)
355
- p.push({
356
- id: p.length + 1,
357
- orderToolsId: k,
356
+ m.push({
357
+ id: m.length + 1,
358
+ orderToolsId: D,
358
359
  subToolId: r(f).id,
359
360
  quantity: Math.floor(Math.random() * 5) + 1,
360
361
  subTotal: (Math.floor(Math.random() * 20) + 1) * 1e3
@@ -385,30 +386,30 @@ for (let a = 0; a < 20; a++) {
385
386
  });
386
387
  }
387
388
  const W = {
388
- admin: I,
389
- company: K,
389
+ admin: K,
390
+ company: I,
390
391
  profil: N,
391
392
  shippingPrice: x,
392
393
  QandA: v,
393
394
  promo: u,
394
- news: E,
395
+ news: B,
395
396
  type: b,
396
397
  model: g,
397
398
  tools: h,
398
399
  subTool: f,
399
- subToolsImages: B,
400
- color: P,
400
+ subToolsImages: E,
401
+ color: A,
401
402
  pages: S,
402
403
  rateCustomerOrder: c,
403
404
  incomes: d,
404
- expenditure: R,
405
- services: $,
406
- subscribe: _,
405
+ expenditure: G,
406
+ services: _,
407
+ subscribe: $,
407
408
  visitors: C,
408
409
  cqs: j,
409
- orders: w,
410
- orderTools: m,
411
- orderAccessories: p
410
+ orders: q,
411
+ orderTools: p,
412
+ orderAccessories: m
412
413
  // Note: orderDistances would likely be nested in a real app, but following a flat structure for this file.
413
414
  }, L = {
414
415
  keys: {
@@ -429,22 +430,44 @@ const W = {
429
430
  DB_NAME: "model",
430
431
  connectKey: "id",
431
432
  key: "modelId"
433
+ },
434
+ {
435
+ DB_NAME: "color",
436
+ connectKey: "id",
437
+ key: "colorId"
432
438
  }
433
439
  ]
434
440
  },
435
441
  dataTabelDisplay: {
436
442
  Nama: "name",
437
- Gambar: "image",
438
- Harga: "price",
443
+ Gambar: { valueKey: "image", type: "image" },
444
+ Harga: { valueKey: "price", type: "currency" },
439
445
  Kategory: "type.name",
440
446
  Model: "model.name"
441
447
  },
442
448
  lang: "id",
449
+ seoDisplay: "seoScore",
443
450
  schema: {
451
+ SeoDisplay: {
452
+ contentType: "product",
453
+ scorePath: "seoScore",
454
+ meta: {
455
+ title: "seo.metaTitle",
456
+ description: "seo.metaDescription",
457
+ focusKeyword: "seo.metaFocusKeyword"
458
+ },
459
+ content: {
460
+ image: "image",
461
+ body: "description",
462
+ tags: "seo.metaTags",
463
+ author: "author"
464
+ }
465
+ },
444
466
  global: {
445
467
  name: {
446
468
  type: "text",
447
469
  label: "Nama Produk",
470
+ placeholder: "Masukkan nama produk",
448
471
  validate: {
449
472
  duplicate: !0
450
473
  },
@@ -453,6 +476,7 @@ const W = {
453
476
  typeName: {
454
477
  type: "select",
455
478
  label: "Kategory",
479
+ placeholder: "Pilih Kategory",
456
480
  options: {
457
481
  DB_NAME: "type",
458
482
  valueKey: "name"
@@ -470,6 +494,7 @@ const W = {
470
494
  name: {
471
495
  type: "text",
472
496
  label: "Nama Kategori Produk",
497
+ placeholder: "Masukkan nama kategori",
473
498
  validate: {
474
499
  duplicate: !0
475
500
  },
@@ -480,6 +505,7 @@ const W = {
480
505
  },
481
506
  modelName: {
482
507
  type: "select",
508
+ placeholder: "Pilih Model",
483
509
  label: "Model",
484
510
  required: !0,
485
511
  DB_NAME: "model",
@@ -498,6 +524,7 @@ const W = {
498
524
  name: {
499
525
  type: "text",
500
526
  label: "Nama Model Produk",
527
+ placeholder: "Masukkan nama model",
501
528
  validate: {
502
529
  duplicate: !0
503
530
  },
@@ -507,12 +534,15 @@ const W = {
507
534
  }
508
535
  },
509
536
  description: {
510
- type: "textArea",
511
- label: "Description"
537
+ type: "quillEditor",
538
+ label: "Description",
539
+ placeholder: "Masukkan deskripsi",
540
+ required: !1
512
541
  },
513
542
  price: {
514
543
  type: "currency",
515
544
  label: "Harga",
545
+ placeholder: "Masukkan harga",
516
546
  required: !0
517
547
  },
518
548
  image: {
@@ -525,8 +555,83 @@ const W = {
525
555
  Height: 2
526
556
  }
527
557
  },
558
+ watermark: {
559
+ url: "upload",
560
+ position: "bottom-right",
561
+ size: 100
562
+ },
528
563
  required: !0
529
564
  },
565
+ images: {
566
+ type: "imageArray",
567
+ label: "Gambar Spesial"
568
+ },
569
+ note: {
570
+ type: "textArea",
571
+ label: "Catatan Untuk Penyewa",
572
+ required: !1
573
+ },
574
+ optionGroup: {
575
+ type: "optionGroupSchema",
576
+ label: "Pilihan Warna Produk",
577
+ typeDesign: "select",
578
+ options: {
579
+ "Warna Tetap": {
580
+ color: {
581
+ type: "color",
582
+ label: "Pilih Warna",
583
+ required: !0
584
+ }
585
+ },
586
+ "Warna Dengan Opsi Pilihan": {
587
+ colorId: {
588
+ type: "select",
589
+ label: "Warna",
590
+ placeholder: "Pilih warna",
591
+ required: !0,
592
+ DB_NAME: "color",
593
+ baseKey: {
594
+ base: "colorId",
595
+ name: "name"
596
+ },
597
+ options: {
598
+ DB_NAME: "color",
599
+ valueKey: "id",
600
+ viewKey: "name"
601
+ },
602
+ withCreate: {
603
+ DB_NAME: "color",
604
+ endPoint: "/api/admin/tool/color/create",
605
+ schema: {
606
+ name: {
607
+ type: "text",
608
+ label: "Nama Grup Warna",
609
+ validate: {
610
+ duplicate: !0
611
+ },
612
+ required: !0
613
+ },
614
+ options: {
615
+ type: "number",
616
+ label: "Opsi memilih warna",
617
+ required: !0,
618
+ validate: {
619
+ min: 1,
620
+ max: 10,
621
+ integer: !0
622
+ }
623
+ },
624
+ colors: {
625
+ type: "color",
626
+ label: "Pilih Warna",
627
+ required: !0
628
+ }
629
+ }
630
+ }
631
+ }
632
+ }
633
+ }
634
+ },
530
635
  optionGroupSchema: {
531
636
  label: "Pilihan Tipe Barang",
532
637
  typeDesign: "cekbox",
@@ -536,21 +641,25 @@ const W = {
536
641
  sizeX: {
537
642
  type: "number",
538
643
  label: "Panjang Produk",
644
+ placeholder: "Masukkan panjang produk",
539
645
  required: !0
540
646
  },
541
647
  sizeY: {
542
648
  type: "number",
543
649
  label: "Lebar Produk",
650
+ placeholder: "Masukkan lebar produk",
544
651
  required: !0
545
652
  },
546
653
  sizeZ: {
547
654
  type: "number",
548
655
  label: "Tebal Produk",
656
+ placeholder: "Masukkan tebal produk",
549
657
  required: !1
550
658
  },
551
659
  unitOfMeasure: {
552
660
  type: "select",
553
661
  label: "Satuan Ukuran",
662
+ placeholder: "Pilih satuan ukuran",
554
663
  options: ["cm", "m", "inch", "feet", "yard"],
555
664
  optionsView: ["Sentimeter", "Meter", "Inci", "Kaki", "Yard"],
556
665
  required: !0
@@ -559,11 +668,192 @@ const W = {
559
668
  "Input Dimensi Produk?": {
560
669
  dimensions: {
561
670
  type: "number",
671
+ placeholder: "Masukkan dimensi produk",
562
672
  label: "Dimensi Produk",
563
673
  required: !0
564
674
  }
565
675
  }
566
676
  }
677
+ },
678
+ seo: {
679
+ type: "object",
680
+ label: "SEO",
681
+ schema: {
682
+ optionsGroup: {
683
+ type: "optionGroupSchema",
684
+ label: "Konfigurasi SEO",
685
+ typeDesign: "cekbox",
686
+ options: {
687
+ meta: {
688
+ metaTitle: {
689
+ type: "text",
690
+ label: "Judul Halaman",
691
+ placeholder: "Masukkan judul halaman",
692
+ required: !1
693
+ },
694
+ metaDescription: {
695
+ type: "textArea",
696
+ label: "Deskripsi Singkat",
697
+ placeholder: "Masukkan deskripsi singkat",
698
+ required: !1
699
+ },
700
+ metaFocusKeyword: {
701
+ type: "text",
702
+ label: "Kata Kunci",
703
+ placeholder: "Masukkan kata kunci",
704
+ required: !1
705
+ },
706
+ metaTags: {
707
+ type: "tag",
708
+ label: "Tags",
709
+ placeholder: "Masukkan tag",
710
+ required: !1
711
+ }
712
+ },
713
+ twitter: {
714
+ twitterTitle: {
715
+ type: "text",
716
+ label: "Judul Halaman",
717
+ placeholder: "Masukkan judul halaman",
718
+ required: !1
719
+ },
720
+ twitterDescription: {
721
+ type: "textArea",
722
+ label: "Deskripsi singkat",
723
+ placeholder: "Masukkan deskripsi singkat",
724
+ required: !1
725
+ },
726
+ twitterImage: {
727
+ type: "image",
728
+ label: "Gambar Halaman",
729
+ required: !1
730
+ }
731
+ },
732
+ openGraph: {
733
+ ogTitle: {
734
+ type: "text",
735
+ label: "Judul Halaman",
736
+ placeholder: "Masukkan judul halaman",
737
+ required: !1
738
+ },
739
+ ogDescription: {
740
+ type: "textArea",
741
+ label: "Deskripsi singkat",
742
+ placeholder: "Masukkan deskripsi singkat",
743
+ required: !1
744
+ },
745
+ ogImage: {
746
+ type: "image",
747
+ label: "Gambar Halaman",
748
+ required: !1
749
+ }
750
+ }
751
+ }
752
+ }
753
+ }
754
+ },
755
+ lokasi_toko: {
756
+ type: "mapPicker",
757
+ label: "Lokasi Toko",
758
+ required: !0,
759
+ key: { lat: "latitude", lng: "longitude" },
760
+ validate: {
761
+ geoJson: "http://localhost:4321/surabaya.geojson"
762
+ },
763
+ geocodeApi: {
764
+ geoapify: "4537c50fbc8946148bafa8ca0ffae4aa"
765
+ },
766
+ searchCity: "Surabaya",
767
+ searchCountry: "Indonesia"
768
+ },
769
+ Group: {
770
+ type: "optionGroupSchema",
771
+ label: "Apakah Produk ini juga Aksesoris?",
772
+ typeDesign: "select",
773
+ required: !0,
774
+ value: "TIDAK",
775
+ options: {
776
+ TIDAK: {},
777
+ YA: {
778
+ subPrice: {
779
+ type: "currency",
780
+ label: "Harga Produk",
781
+ placeholder: "Masukkan harga produk"
782
+ },
783
+ GroupSub: {
784
+ label: "Pilihan Sub Produk Untuk ?",
785
+ typeDesign: "cekbox",
786
+ type: "optionGroupSchema",
787
+ withValue: !0,
788
+ required: !0,
789
+ options: {
790
+ "Tautkan dengan Kategori": {
791
+ subTypeId: {
792
+ type: "select",
793
+ label: "Sub Produk untuk Kategory",
794
+ options: {
795
+ DB_NAME: "type",
796
+ valueKey: "id",
797
+ viewKey: "name"
798
+ },
799
+ optionsIsNumber: !0,
800
+ required: !0
801
+ }
802
+ },
803
+ "Tautkan dengan Model": {
804
+ subModelId: {
805
+ type: "select",
806
+ label: "Sub Produk untuk Model",
807
+ options: {
808
+ DB_NAME: "model",
809
+ valueKey: "id",
810
+ viewKey: "name"
811
+ },
812
+ required: !0
813
+ }
814
+ },
815
+ "Tautkan dengan Produk": {
816
+ subToolId: {
817
+ type: "select",
818
+ label: "Sub Produk untuk Produk",
819
+ DB_NAME: "tools",
820
+ options: {
821
+ DB_NAME: "tools",
822
+ valueKey: "id",
823
+ viewKey: "name"
824
+ },
825
+ required: !0
826
+ }
827
+ }
828
+ }
829
+ },
830
+ noteSub: {
831
+ type: "textArea",
832
+ label: "Catatan Untuk Penyewa",
833
+ placeholder: "Masukkan catatan untuk penyewa"
834
+ },
835
+ count: {
836
+ type: "number",
837
+ label: "Jumlah Produk",
838
+ placeholder: "Masukkan jumlah produk"
839
+ },
840
+ subOption: {
841
+ type: "object",
842
+ label: "Pengaturan Aksesoris",
843
+ schema: {
844
+ groupId: {
845
+ type: "number",
846
+ label: "ID Grup (Hanya boleh pilih 1 item dalam grup yang sama)",
847
+ placeholder: "Masukan Nomer Grup"
848
+ },
849
+ allowExceedParent: {
850
+ type: "toggle",
851
+ label: "Boleh Melebihi Jumlah Produk Utama?"
852
+ }
853
+ }
854
+ }
855
+ }
856
+ }
567
857
  }
568
858
  }
569
859
  }
@@ -913,10 +1203,7 @@ const W = {
913
1203
  },
914
1204
  base: {
915
1205
  source: {
916
- fetchApi: {
917
- get: "http://localhost:3000/news",
918
- getAll: "http://localhost:3000/news"
919
- }
1206
+ DB_NAME: "news"
920
1207
  },
921
1208
  dataTabelDisplay: {
922
1209
  Judul: "title",
@@ -965,8 +1252,10 @@ const W = {
965
1252
  label: "Berita",
966
1253
  placeholder: "Masukkan isi berita",
967
1254
  required: !0,
968
- apiUploadImage: "/api/admin/image/upload",
969
- apiUploadVideo: "/api/admin/image/upload"
1255
+ apiUploadImage: "http://localhost:3000/admin/image/upload",
1256
+ apiUploadVideo: "http://localhost:3000/admin/image/upload",
1257
+ apiListImages: "http://localhost:3000/image",
1258
+ apiDeleteImage: "http://localhost:3000/image"
970
1259
  },
971
1260
  category: {
972
1261
  type: "select",
@@ -1762,7 +2051,7 @@ const W = {
1762
2051
  const e = {
1763
2052
  id: a.item.id,
1764
2053
  status: "paid"
1765
- }, t = await q("/api/admin/order/payment/update/status", {
2054
+ }, t = await T("/api/admin/order/payment/update/status", {
1766
2055
  method: "PATCH",
1767
2056
  headers: {
1768
2057
  "Content-Type": "application/json"
@@ -1775,7 +2064,7 @@ const W = {
1775
2064
  message: "Gagal Mengupdate Status Pembayaran"
1776
2065
  };
1777
2066
  const i = await t.json();
1778
- return await T("income", i.data), {
2067
+ return await w("income", i.data), {
1779
2068
  mode: "success",
1780
2069
  message: "Status Pembayaran Berhasil Diupdate"
1781
2070
  };
@@ -1849,7 +2138,7 @@ const W = {
1849
2138
  delete: "/api/admin/questions/delete/:id",
1850
2139
  deleteMany: "/api/admin/questions/delete"
1851
2140
  }
1852
- }, ne = {
2141
+ }, oe = {
1853
2142
  keys: {
1854
2143
  idKey: "id",
1855
2144
  idsKey: "ids"
@@ -1885,7 +2174,7 @@ const W = {
1885
2174
  delete: "/api/admin/expenditure/delete/:id",
1886
2175
  deleteMany: "/api/admin/expenditure/delete"
1887
2176
  }
1888
- }, oe = {
2177
+ }, ne = {
1889
2178
  keys: {
1890
2179
  idKey: "id",
1891
2180
  idsKey: "ids"
@@ -2002,115 +2291,195 @@ const W = {
2002
2291
  delete: "/api/admin/rate/delete/:id",
2003
2292
  deleteMany: "/api/admin/rate/delete"
2004
2293
  }
2294
+ }, se = {
2295
+ keys: {
2296
+ idKey: "id",
2297
+ idsKey: "ids"
2298
+ },
2299
+ base: {
2300
+ source: {
2301
+ DB_NAME: "shippingPrice"
2302
+ },
2303
+ dataTabelDisplay: {
2304
+ tipe: "type",
2305
+ Harga: "Price",
2306
+ "Harga Perjarak": "PriceDistance"
2307
+ },
2308
+ lang: "id",
2309
+ schema: {
2310
+ global: {
2311
+ type: {
2312
+ type: "optionGroupSchema",
2313
+ label: "Tipe Harga",
2314
+ typeDesign: "select",
2315
+ withValue: !0,
2316
+ required: !0,
2317
+ optionsLabels: {
2318
+ PriceDistance: "Per Jarak",
2319
+ FixedPrice: "Harga Tetap"
2320
+ },
2321
+ options: {
2322
+ PriceDistance: {
2323
+ price: {
2324
+ type: "number",
2325
+ required: !0,
2326
+ label: "Harga Dasar (Rp)",
2327
+ placeholder: "Masukkan harga dasar"
2328
+ },
2329
+ distance: {
2330
+ type: "number",
2331
+ required: !0,
2332
+ label: "Jarak Maksimum (km)",
2333
+ placeholder: "Masukkan jarak maksimum"
2334
+ },
2335
+ maps: {
2336
+ type: "mapPicker",
2337
+ label: "Lokasi Toko",
2338
+ required: !0,
2339
+ key: { lat: "coordinateY", lng: "coordinateX" },
2340
+ geocodeApi: {
2341
+ geoapify: "4537c50fbc8946148bafa8ca0ffae4aa"
2342
+ },
2343
+ view: {
2344
+ geoJsonKey: "mygeojson"
2345
+ },
2346
+ searchCity: "Surabaya",
2347
+ searchCountry: "Indonesia",
2348
+ validate: {
2349
+ geoJson: "http://localhost:4321/surabaya.geojson"
2350
+ }
2351
+ }
2352
+ },
2353
+ FixedPrice: {
2354
+ price: {
2355
+ type: "number",
2356
+ required: !0,
2357
+ label: "Harga Dasar (Rp)",
2358
+ placeholder: "Masukkan harga dasar"
2359
+ }
2360
+ }
2361
+ }
2362
+ }
2363
+ }
2364
+ }
2365
+ },
2366
+ endPoints: {
2367
+ create: "/api/admin/tool/create",
2368
+ update: "/api/admin/tool/update",
2369
+ delete: "/api/admin/tool/delete/:id",
2370
+ deleteMany: "/api/admin/tool/delete"
2371
+ }
2005
2372
  };
2006
2373
  export {
2007
2374
  Te as AlertApp,
2008
- qe as ArrayObjectInput,
2375
+ Ke as ArrayObjectInput,
2009
2376
  Ie as BaseImage,
2010
- Ke as BaseLabel,
2377
+ Ne as BaseLabel,
2011
2378
  U as CategoriesSchema,
2012
- Ne as ColorInput,
2379
+ xe as ColorInput,
2013
2380
  z as ColorsSchema,
2014
2381
  ie as CqSchema,
2015
- xe as CurrencyInput,
2016
- ve as DATETIME_REGEX,
2382
+ ve as CurrencyInput,
2383
+ Ee as DATETIME_REGEX,
2017
2384
  Be as DATE_REGEX,
2018
- Ee as DateInput,
2385
+ _e as DateInput,
2019
2386
  $e as DateTimeInput,
2020
- _e as EmailInput,
2021
- Ce as FieldDetailRenderer,
2022
- je as FileArrayInput,
2387
+ Ce as EmailInput,
2388
+ je as FieldDetailRenderer,
2389
+ Ge as FileArrayInput,
2023
2390
  Re as FileInput,
2024
- Ge as FormFieldRenderer,
2391
+ He as FormFieldRenderer,
2025
2392
  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,
2393
+ Je as GroupRendererInput,
2394
+ Fe as ImageArrayInput,
2395
+ We as ImageInput,
2396
+ Le as ImagePreview,
2397
+ O as ImageTypes,
2398
+ Ue as Loader,
2399
+ ze as MapPicker,
2400
+ Ve as ModalDetailData,
2033
2401
  Y as ModelSchema,
2034
2402
  X as NewsSchema,
2035
- ze as NumberInput,
2036
- Ve as ObjectInput,
2403
+ Ye as NumberInput,
2404
+ Xe as ObjectInput,
2037
2405
  ae as OrderSchema,
2038
2406
  ee as PageSchema,
2039
- Ye as PasswordInput,
2407
+ Qe as PasswordInput,
2040
2408
  Q as PromoSchema,
2041
2409
  Z as QnASchema,
2042
- Xe as RateInput,
2410
+ Ze as RateInput,
2043
2411
  le as RateSchema,
2044
- Qe as SafeHtml,
2045
- Ze as SelectedOptions,
2046
- oe as ServiceSchema,
2412
+ ea as SafeHtml,
2413
+ aa as SelectedOptions,
2414
+ ne as ServiceSchema,
2415
+ se as ShippingSchema,
2047
2416
  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,
2417
+ ta as TIME_REGEX,
2418
+ ra as TabelData,
2419
+ ia as TagInput,
2420
+ oa as TelInput,
2421
+ na as TextAreaInput,
2422
+ la as TextAreaQuillInput,
2423
+ sa as TextInput,
2424
+ da as TimeInput,
2425
+ ua as ToggleInput,
2057
2426
  L as ToolSchema,
2058
- da as Tooltip,
2059
- ua as UrlInput,
2060
- ma as WarningForm,
2061
- pa as calculateSeo,
2062
- ue as clearStore,
2427
+ pa as Tooltip,
2428
+ ma as UrlInput,
2429
+ ca as WarningForm,
2430
+ ya as calculateSeo,
2431
+ pe as clearStore,
2063
2432
  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,
2085
- be as getFromIndexedDB,
2086
- ge as getItemById,
2087
- Ia as getMessage,
2088
- Ka as getNested,
2089
- he as getSingleFromIndexedDB,
2433
+ ba as defaultEndpoints,
2434
+ ga as defaultFeatureToggles,
2435
+ ha as defaultKeys,
2436
+ ka as defaultManualControl,
2437
+ ce as defaultMessagesErrorRequired,
2438
+ Da as defaultPagination,
2439
+ Ma as defaultSubmitAuth,
2440
+ ye as defaultTextLabelsMap,
2441
+ Pa as defaultValidation,
2442
+ be as deleteItemFromStore,
2443
+ Aa as deleteNestedAndCleanup,
2444
+ fa as emailRegex,
2445
+ oe as expenditureSchema,
2446
+ J as fieldTypes,
2447
+ F as formDesign,
2448
+ Sa as formatDate,
2449
+ qa as formatDateTime,
2450
+ wa as formatTime,
2451
+ Ta as gcd,
2452
+ Ka as getClientLocaleAndTimeZone,
2453
+ Ia as getCommonRatio,
2454
+ ge as getFromIndexedDB,
2455
+ he as getItemById,
2456
+ Na as getMessage,
2457
+ xa as getNested,
2458
+ ke as getSingleFromIndexedDB,
2090
2459
  re as handleCustomActionIncome,
2091
- Na as hasAnyError,
2460
+ va as hasAnyError,
2092
2461
  te as incomeSchema,
2093
2462
  De as inputMessages,
2094
- xa as isSameMessage,
2095
- ke as isStoreArray,
2463
+ Ea as isSameMessage,
2464
+ Me as isStoreArray,
2096
2465
  W as newDemoData,
2097
- va as normalizeKey,
2098
- Me as registerErrorMessageRequired,
2466
+ Ba as normalizeKey,
2467
+ Pe as registerErrorMessageRequired,
2099
2468
  Ae as registerInputMessages,
2100
- Pe as registerLanguage,
2101
- fe as removeFromIndexedDB,
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,
2469
+ fe as registerLanguage,
2470
+ Se as removeFromIndexedDB,
2471
+ _a as safeValidate,
2472
+ qe as saveToIndexedDB,
2473
+ T as secureFetch,
2474
+ $a as setNested,
2475
+ Ca as setUID,
2476
+ ja as simplifyRatio,
2477
+ Ga as submitData,
2478
+ Ra as telRegex,
2479
+ Ha as toDateOnly,
2480
+ Oa as toDateTimeString,
2481
+ Ja as toTimeOnly,
2113
2482
  Fa as unsetNested,
2114
- T as updateItemInStore,
2115
- Ha as validate
2483
+ w as updateItemInStore,
2484
+ Wa as validate
2116
2485
  };