@bagelink/vue 0.0.95 → 0.0.100

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 (82) hide show
  1. package/dist/components/Btn.vue.d.ts +4 -4
  2. package/dist/components/FormSchema.vue.d.ts +1 -1
  3. package/dist/components/ListView.vue.d.ts +2 -2
  4. package/dist/components/MaterialIcon.vue.d.ts +1 -1
  5. package/dist/components/Modal.vue.d.ts +0 -1
  6. package/dist/components/ModalForm.vue.d.ts +1 -2
  7. package/dist/components/NavBar.vue.d.ts +1 -1
  8. package/dist/components/RTXEditor.vue.d.ts +1 -1
  9. package/dist/components/form/MaterialIcon.vue.d.ts +1 -1
  10. package/dist/components/form/inputs/CheckInput.vue.d.ts +1 -1
  11. package/dist/components/form/inputs/CurrencyInput.vue.d.ts +1 -1
  12. package/dist/components/form/inputs/DateInput.vue.d.ts +1 -1
  13. package/dist/components/form/inputs/DatetimeInput.vue.d.ts +1 -1
  14. package/dist/components/form/inputs/DurationInput.vue.d.ts +1 -1
  15. package/dist/components/form/inputs/EmailInput.vue.d.ts +1 -1
  16. package/dist/components/form/inputs/FloatInput.vue.d.ts +1 -1
  17. package/dist/components/form/inputs/IntInput.vue.d.ts +1 -1
  18. package/dist/components/form/inputs/JSONInput.vue.d.ts +1 -1
  19. package/dist/components/form/inputs/LinkField.vue.d.ts +2 -2
  20. package/dist/components/form/inputs/Password.vue.d.ts +1 -1
  21. package/dist/components/form/inputs/PasswordInput.vue.d.ts +1 -1
  22. package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +1 -1
  23. package/dist/components/form/inputs/RichTextEditor.vue.d.ts +1 -1
  24. package/dist/components/form/inputs/SelectField.vue.d.ts +2 -2
  25. package/dist/index.cjs +200 -387
  26. package/dist/index.d.ts +1 -0
  27. package/dist/index.mjs +200 -387
  28. package/dist/plugins/modal.d.ts +3 -1
  29. package/dist/style.css +223 -223
  30. package/dist/types/Person.d.ts +3 -3
  31. package/dist/types/index.d.ts +3 -2
  32. package/dist/utils/index.d.ts +1 -1
  33. package/dist/utils/objects.d.ts +1 -1
  34. package/package.json +45 -18
  35. package/src/components/Btn.vue +2 -2
  36. package/src/components/Comments.vue +1 -1
  37. package/src/components/ContactArray.vue +2 -2
  38. package/src/components/ContactSubmissions.vue +1 -1
  39. package/src/components/DataPreview.vue +1 -1
  40. package/src/components/DropDown.vue +1 -1
  41. package/src/components/FormKitTable.vue +1 -2
  42. package/src/components/FormSchema.vue +1 -1
  43. package/src/components/ListView.vue +1 -2
  44. package/src/components/MaterialIcon.vue +1 -1
  45. package/src/components/Modal.vue +2 -2
  46. package/src/components/ModalForm.vue +2 -3
  47. package/src/components/NavBar.vue +2 -3
  48. package/src/components/PersonPreview.vue +2 -3
  49. package/src/components/PersonPreviewFormkit.vue +2 -3
  50. package/src/components/TableSchema.vue +1 -2
  51. package/src/components/form/ItemRef.vue +5 -7
  52. package/src/components/form/MaterialIcon.vue +1 -1
  53. package/src/components/form/PlainInputField.vue +2 -2
  54. package/src/components/form/inputs/CheckInput.vue +1 -1
  55. package/src/components/form/inputs/Checkbox.vue +1 -1
  56. package/src/components/form/inputs/ColorPicker.vue +1 -1
  57. package/src/components/form/inputs/CurrencyInput.vue +1 -1
  58. package/src/components/form/inputs/DateInput.vue +1 -1
  59. package/src/components/form/inputs/DynamicLinkField.vue +1 -1
  60. package/src/components/form/inputs/LinkField.vue +1 -1
  61. package/src/components/form/inputs/Password.vue +1 -2
  62. package/src/components/form/inputs/PlainText.vue +1 -1
  63. package/src/components/form/inputs/ReadOnlyInput.vue +1 -1
  64. package/src/components/form/inputs/SelectField.vue +2 -2
  65. package/src/components/form/inputs/TableField.vue +3 -5
  66. package/src/components/form/inputs/TextArea.vue +1 -1
  67. package/src/components/form/inputs/TextInput.vue +1 -1
  68. package/src/components/formkit/AddressArray.vue +2 -3
  69. package/src/components/formkit/BankDetailsArray.vue +2 -3
  70. package/src/components/formkit/ContactArrayFormKit.vue +2 -3
  71. package/src/components/formkit/FileUploader.vue +1 -2
  72. package/src/components/formkit/MiscFields.vue +1 -1
  73. package/src/components/whatsapp/form/MsgTemplate.vue +1 -3
  74. package/src/components/whatsapp/form/TextVariableExamples.vue +1 -1
  75. package/src/index.ts +1 -0
  76. package/src/plugins/modal.ts +3 -3
  77. package/src/types/Person.ts +3 -3
  78. package/src/types/index.ts +3 -2
  79. package/src/utils/index.ts +1 -1
  80. package/src/utils/objects.ts +1 -1
  81. package/tsconfig.json +6 -0
  82. package/vite.config.ts +2 -2
package/dist/index.cjs CHANGED
@@ -1,5 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const Modal = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
+ __proto__: null,
5
+ get default() {
6
+ return _sfc_main$F;
7
+ }
8
+ }, Symbol.toStringTag, { value: "Module" }));
9
+ const ModalForm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10
+ __proto__: null,
11
+ get default() {
12
+ return ModalForm;
13
+ }
14
+ }, Symbol.toStringTag, { value: "Module" }));
3
15
  const FormSchema = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
16
  __proto__: null,
5
17
  get default() {
@@ -29,7 +41,7 @@ const remove = (arr, el) => {
29
41
  };
30
42
  const hasOwnProperty$2 = Object.prototype.hasOwnProperty;
31
43
  const hasOwn = (val, key) => hasOwnProperty$2.call(val, key);
32
- const isArray$2 = Array.isArray;
44
+ const isArray$1 = Array.isArray;
33
45
  const isMap = (val) => toTypeString(val) === "[object Map]";
34
46
  const isSet = (val) => toTypeString(val) === "[object Set]";
35
47
  const isDate$1 = (val) => toTypeString(val) === "[object Date]";
@@ -95,7 +107,7 @@ const getGlobalThis = () => {
95
107
  return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
96
108
  };
97
109
  function normalizeStyle(value) {
98
- if (isArray$2(value)) {
110
+ if (isArray$1(value)) {
99
111
  const res = {};
100
112
  for (let i = 0; i < value.length; i++) {
101
113
  const item = value[i];
@@ -128,7 +140,7 @@ function normalizeClass(value) {
128
140
  let res = "";
129
141
  if (isString$1(value)) {
130
142
  res = value;
131
- } else if (isArray$2(value)) {
143
+ } else if (isArray$1(value)) {
132
144
  for (let i = 0; i < value.length; i++) {
133
145
  const normalized = normalizeClass(value[i]);
134
146
  if (normalized) {
@@ -166,8 +178,8 @@ function looseEqual(a, b) {
166
178
  if (aValidType || bValidType) {
167
179
  return a === b;
168
180
  }
169
- aValidType = isArray$2(a);
170
- bValidType = isArray$2(b);
181
+ aValidType = isArray$1(a);
182
+ bValidType = isArray$1(b);
171
183
  if (aValidType || bValidType) {
172
184
  return aValidType && bValidType ? looseCompareArrays(a, b) : false;
173
185
  }
@@ -196,7 +208,7 @@ function looseIndexOf(arr, val) {
196
208
  return arr.findIndex((item) => looseEqual(item, val));
197
209
  }
198
210
  const toDisplayString = (val) => {
199
- return isString$1(val) ? val : val == null ? "" : isArray$2(val) || isObject$2(val) && (val.toString === objectToString || !isFunction$1(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
211
+ return isString$1(val) ? val : val == null ? "" : isArray$1(val) || isObject$2(val) && (val.toString === objectToString || !isFunction$1(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
200
212
  };
201
213
  const replacer = (_key, val) => {
202
214
  if (val && val.__v_isRef) {
@@ -212,7 +224,7 @@ const replacer = (_key, val) => {
212
224
  return {
213
225
  [`Set(${val.size})`]: [...val.values()]
214
226
  };
215
- } else if (isObject$2(val) && !isArray$2(val) && !isPlainObject$1(val)) {
227
+ } else if (isObject$2(val) && !isArray$1(val) && !isPlainObject$1(val)) {
216
228
  return String(val);
217
229
  }
218
230
  return val;
@@ -391,7 +403,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
391
403
  let deps = [];
392
404
  if (type === "clear") {
393
405
  deps = [...depsMap.values()];
394
- } else if (key === "length" && isArray$2(target)) {
406
+ } else if (key === "length" && isArray$1(target)) {
395
407
  const newLength = Number(newValue);
396
408
  depsMap.forEach((dep, key2) => {
397
409
  if (key2 === "length" || !isSymbol(key2) && key2 >= newLength) {
@@ -404,7 +416,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
404
416
  }
405
417
  switch (type) {
406
418
  case "add":
407
- if (!isArray$2(target)) {
419
+ if (!isArray$1(target)) {
408
420
  deps.push(depsMap.get(ITERATE_KEY));
409
421
  if (isMap(target)) {
410
422
  deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
@@ -414,7 +426,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
414
426
  }
415
427
  break;
416
428
  case "delete":
417
- if (!isArray$2(target)) {
429
+ if (!isArray$1(target)) {
418
430
  deps.push(depsMap.get(ITERATE_KEY));
419
431
  if (isMap(target)) {
420
432
  deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
@@ -452,7 +464,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
452
464
  }
453
465
  }
454
466
  function triggerEffects(dep, debuggerEventExtraInfo) {
455
- const effects = isArray$2(dep) ? dep : [...dep];
467
+ const effects = isArray$1(dep) ? dep : [...dep];
456
468
  for (const effect2 of effects) {
457
469
  if (effect2.computed) {
458
470
  triggerEffect(effect2, debuggerEventExtraInfo);
@@ -528,7 +540,7 @@ class BaseReactiveHandler {
528
540
  } else if (key === "__v_raw" && receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) {
529
541
  return target;
530
542
  }
531
- const targetIsArray = isArray$2(target);
543
+ const targetIsArray = isArray$1(target);
532
544
  if (!isReadonly2) {
533
545
  if (targetIsArray && hasOwn(arrayInstrumentations, key)) {
534
546
  return Reflect.get(arrayInstrumentations, key, receiver);
@@ -570,12 +582,12 @@ class MutableReactiveHandler extends BaseReactiveHandler {
570
582
  oldValue = toRaw(oldValue);
571
583
  value = toRaw(value);
572
584
  }
573
- if (!isArray$2(target) && isRef(oldValue) && !isRef(value)) {
585
+ if (!isArray$1(target) && isRef(oldValue) && !isRef(value)) {
574
586
  oldValue.value = value;
575
587
  return true;
576
588
  }
577
589
  }
578
- const hadKey = isArray$2(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
590
+ const hadKey = isArray$1(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
579
591
  const result = Reflect.set(target, key, value, receiver);
580
592
  if (target === toRaw(receiver)) {
581
593
  if (!hadKey) {
@@ -606,7 +618,7 @@ class MutableReactiveHandler extends BaseReactiveHandler {
606
618
  track(
607
619
  target,
608
620
  "iterate",
609
- isArray$2(target) ? "length" : ITERATE_KEY
621
+ isArray$1(target) ? "length" : ITERATE_KEY
610
622
  );
611
623
  return Reflect.ownKeys(target);
612
624
  }
@@ -1424,7 +1436,7 @@ function queueFlush() {
1424
1436
  }
1425
1437
  }
1426
1438
  function queuePostFlushCb(cb) {
1427
- if (!isArray$2(cb)) {
1439
+ if (!isArray$1(cb)) {
1428
1440
  if (!activePostFlushCbs || !activePostFlushCbs.includes(
1429
1441
  cb,
1430
1442
  cb.allowRecurse ? postFlushIndex + 1 : postFlushIndex
@@ -1734,7 +1746,7 @@ function resolve(registry2, name) {
1734
1746
  const isSuspense = (type) => type.__isSuspense;
1735
1747
  function queueEffectWithSuspense(fn, suspense) {
1736
1748
  if (suspense && suspense.pendingBranch) {
1737
- if (isArray$2(fn)) {
1749
+ if (isArray$1(fn)) {
1738
1750
  suspense.effects.push(...fn);
1739
1751
  } else {
1740
1752
  suspense.effects.push(fn);
@@ -1743,9 +1755,6 @@ function queueEffectWithSuspense(fn, suspense) {
1743
1755
  queuePostFlushCb(fn);
1744
1756
  }
1745
1757
  }
1746
- function watchEffect(effect2, options) {
1747
- return doWatch(effect2, null, options);
1748
- }
1749
1758
  function watchPostEffect(effect2, options) {
1750
1759
  return doWatch(
1751
1760
  effect2,
@@ -1793,7 +1802,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
1793
1802
  } else if (isReactive(source)) {
1794
1803
  getter = () => source;
1795
1804
  deep = true;
1796
- } else if (isArray$2(source)) {
1805
+ } else if (isArray$1(source)) {
1797
1806
  isMultiSource = true;
1798
1807
  forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
1799
1808
  getter = () => source.map((s) => {
@@ -1964,7 +1973,7 @@ function traverse(value, seen) {
1964
1973
  seen.add(value);
1965
1974
  if (isRef(value)) {
1966
1975
  traverse(value.value, seen);
1967
- } else if (isArray$2(value)) {
1976
+ } else if (isArray$1(value)) {
1968
1977
  for (let i = 0; i < value.length; i++) {
1969
1978
  traverse(value[i], seen);
1970
1979
  }
@@ -2189,7 +2198,7 @@ function resolveTransitionHooks(vnode, props2, state, instance) {
2189
2198
  const callAsyncHook = (hook, args) => {
2190
2199
  const done = args[1];
2191
2200
  callHook2(hook, args);
2192
- if (isArray$2(hook)) {
2201
+ if (isArray$1(hook)) {
2193
2202
  if (hook.every((hook2) => hook2.length <= 1))
2194
2203
  done();
2195
2204
  } else if (hook.length <= 1) {
@@ -2387,7 +2396,7 @@ const onUnmounted = createHook("um");
2387
2396
  function renderList(source, renderItem, cache, index2) {
2388
2397
  let ret;
2389
2398
  const cached2 = cache && cache[index2];
2390
- if (isArray$2(source) || isString$1(source)) {
2399
+ if (isArray$1(source) || isString$1(source)) {
2391
2400
  ret = new Array(source.length);
2392
2401
  for (let i = 0, l = source.length; i < l; i++) {
2393
2402
  ret[i] = renderItem(source[i], i, void 0, cached2 && cached2[i]);
@@ -2646,7 +2655,7 @@ function getContext$1() {
2646
2655
  return i.setupContext || (i.setupContext = createSetupContext(i));
2647
2656
  }
2648
2657
  function normalizePropsOrEmits(props2) {
2649
- return isArray$2(props2) ? props2.reduce(
2658
+ return isArray$1(props2) ? props2.reduce(
2650
2659
  (normalized, p) => (normalized[p] = null, normalized),
2651
2660
  {}
2652
2661
  ) : props2;
@@ -2752,7 +2761,7 @@ function mergeInject(to, from2) {
2752
2761
  return mergeObjectOptions(normalizeInject(to), normalizeInject(from2));
2753
2762
  }
2754
2763
  function normalizeInject(raw) {
2755
- if (isArray$2(raw)) {
2764
+ if (isArray$1(raw)) {
2756
2765
  const res = {};
2757
2766
  for (let i = 0; i < raw.length; i++) {
2758
2767
  res[raw[i]] = raw[i];
@@ -2769,7 +2778,7 @@ function mergeObjectOptions(to, from2) {
2769
2778
  }
2770
2779
  function mergeEmitsOrPropsOptions(to, from2) {
2771
2780
  if (to) {
2772
- if (isArray$2(to) && isArray$2(from2)) {
2781
+ if (isArray$1(to) && isArray$1(from2)) {
2773
2782
  return [.../* @__PURE__ */ new Set([...to, ...from2])];
2774
2783
  }
2775
2784
  return extend$4(
@@ -2812,7 +2821,7 @@ const queuePostRenderEffect = queueEffectWithSuspense;
2812
2821
  function traverseStaticChildren(n1, n2, shallow = false) {
2813
2822
  const ch1 = n1.children;
2814
2823
  const ch2 = n2.children;
2815
- if (isArray$2(ch1) && isArray$2(ch2)) {
2824
+ if (isArray$1(ch1) && isArray$1(ch2)) {
2816
2825
  for (let i = 0; i < ch1.length; i++) {
2817
2826
  const c1 = ch1[i];
2818
2827
  let c2 = ch2[i];
@@ -3267,7 +3276,7 @@ function _createVNode(type, props2 = null, children = null, patchFlag = 0, dynam
3267
3276
  props2.class = normalizeClass(klass);
3268
3277
  }
3269
3278
  if (isObject$2(style)) {
3270
- if (isProxy(style) && !isArray$2(style)) {
3279
+ if (isProxy(style) && !isArray$1(style)) {
3271
3280
  style = extend$4({}, style);
3272
3281
  }
3273
3282
  props2.style = normalizeStyle(style);
@@ -3312,11 +3321,11 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
3312
3321
  // #2078 in the case of <component :is="vnode" ref="extra"/>
3313
3322
  // if the vnode itself already has a ref, cloneVNode will need to merge
3314
3323
  // the refs so the single vnode can be set on multiple refs
3315
- mergeRef && ref3 ? isArray$2(ref3) ? ref3.concat(normalizeRef(extraProps)) : [ref3, normalizeRef(extraProps)] : normalizeRef(extraProps)
3324
+ mergeRef && ref3 ? isArray$1(ref3) ? ref3.concat(normalizeRef(extraProps)) : [ref3, normalizeRef(extraProps)] : normalizeRef(extraProps)
3316
3325
  ) : ref3,
3317
3326
  scopeId: vnode.scopeId,
3318
3327
  slotScopeIds: vnode.slotScopeIds,
3319
- children: !!(process.env.NODE_ENV !== "production") && patchFlag === -1 && isArray$2(children) ? children.map(deepCloneVNode) : children,
3328
+ children: !!(process.env.NODE_ENV !== "production") && patchFlag === -1 && isArray$1(children) ? children.map(deepCloneVNode) : children,
3320
3329
  target: vnode.target,
3321
3330
  targetAnchor: vnode.targetAnchor,
3322
3331
  staticCount: vnode.staticCount,
@@ -3348,7 +3357,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
3348
3357
  }
3349
3358
  function deepCloneVNode(vnode) {
3350
3359
  const cloned = cloneVNode(vnode);
3351
- if (isArray$2(vnode.children)) {
3360
+ if (isArray$1(vnode.children)) {
3352
3361
  cloned.children = vnode.children.map(deepCloneVNode);
3353
3362
  }
3354
3363
  return cloned;
@@ -3367,7 +3376,7 @@ function normalizeChildren(vnode, children) {
3367
3376
  const { shapeFlag } = vnode;
3368
3377
  if (children == null) {
3369
3378
  children = null;
3370
- } else if (isArray$2(children)) {
3379
+ } else if (isArray$1(children)) {
3371
3380
  type = 16;
3372
3381
  } else if (typeof children === "object") {
3373
3382
  if (shapeFlag & (1 | 64)) {
@@ -3421,7 +3430,7 @@ function mergeProps(...args) {
3421
3430
  } else if (isOn(key)) {
3422
3431
  const existing = ret[key];
3423
3432
  const incoming = toMerge[key];
3424
- if (incoming && existing !== incoming && !(isArray$2(existing) && existing.includes(incoming))) {
3433
+ if (incoming && existing !== incoming && !(isArray$1(existing) && existing.includes(incoming))) {
3425
3434
  ret[key] = existing ? [].concat(existing, incoming) : incoming;
3426
3435
  }
3427
3436
  } else if (key !== "") {
@@ -3502,7 +3511,7 @@ function createSetupContext(instance) {
3502
3511
  if (exposed != null) {
3503
3512
  let exposedType = typeof exposed;
3504
3513
  if (exposedType === "object") {
3505
- if (isArray$2(exposed)) {
3514
+ if (isArray$1(exposed)) {
3506
3515
  exposedType = "array";
3507
3516
  } else if (isRef(exposed)) {
3508
3517
  exposedType = "ref";
@@ -3593,7 +3602,7 @@ const computed = (getterOrOptions, debugOptions) => {
3593
3602
  function h(type, propsOrChildren, children) {
3594
3603
  const l = arguments.length;
3595
3604
  if (l === 2) {
3596
- if (isObject$2(propsOrChildren) && !isArray$2(propsOrChildren)) {
3605
+ if (isObject$2(propsOrChildren) && !isArray$1(propsOrChildren)) {
3597
3606
  if (isVNode(propsOrChildren)) {
3598
3607
  return createVNode(type, null, [propsOrChildren]);
3599
3608
  }
@@ -3775,7 +3784,7 @@ function initCustomFormatter() {
3775
3784
  }
3776
3785
  function isKeyOfType(Comp, key, type) {
3777
3786
  const opts = Comp[type];
3778
- if (isArray$2(opts) && opts.includes(key) || isObject$2(opts) && key in opts) {
3787
+ if (isArray$1(opts) && opts.includes(key) || isObject$2(opts) && key in opts) {
3779
3788
  return true;
3780
3789
  }
3781
3790
  if (Comp.extends && isKeyOfType(Comp.extends, key, type)) {
@@ -3829,14 +3838,14 @@ const TransitionPropsValidators = Transition.props = /* @__PURE__ */ extend$4(
3829
3838
  DOMTransitionPropsValidators
3830
3839
  );
3831
3840
  const callHook = (hook, args = []) => {
3832
- if (isArray$2(hook)) {
3841
+ if (isArray$1(hook)) {
3833
3842
  hook.forEach((h2) => h2(...args));
3834
3843
  } else if (hook) {
3835
3844
  hook(...args);
3836
3845
  }
3837
3846
  };
3838
3847
  const hasExplicitCallback = (hook) => {
3839
- return hook ? isArray$2(hook) ? hook.some((h2) => h2.length > 1) : hook.length > 1 : false;
3848
+ return hook ? isArray$1(hook) ? hook.some((h2) => h2.length > 1) : hook.length > 1 : false;
3840
3849
  };
3841
3850
  function resolveTransitionProps(rawProps) {
3842
3851
  const baseProps = {};
@@ -4254,7 +4263,7 @@ function hasCSSTransform(el, root, moveClass) {
4254
4263
  }
4255
4264
  const getModelAssigner = (vnode) => {
4256
4265
  const fn = vnode.props["onUpdate:modelValue"] || false;
4257
- return isArray$2(fn) ? (value) => invokeArrayFns(fn, value) : fn;
4266
+ return isArray$1(fn) ? (value) => invokeArrayFns(fn, value) : fn;
4258
4267
  };
4259
4268
  function onCompositionStart(e) {
4260
4269
  e.target.composing = true;
@@ -4329,7 +4338,7 @@ const vModelCheckbox = {
4329
4338
  const elementValue = getValue(el);
4330
4339
  const checked = el.checked;
4331
4340
  const assign = el[assignKey];
4332
- if (isArray$2(modelValue)) {
4341
+ if (isArray$1(modelValue)) {
4333
4342
  const index2 = looseIndexOf(modelValue, elementValue);
4334
4343
  const found2 = index2 !== -1;
4335
4344
  if (checked && !found2) {
@@ -4361,7 +4370,7 @@ const vModelCheckbox = {
4361
4370
  };
4362
4371
  function setChecked(el, { value, oldValue }, vnode) {
4363
4372
  el._modelValue = value;
4364
- if (isArray$2(value)) {
4373
+ if (isArray$1(value)) {
4365
4374
  el.checked = looseIndexOf(value, vnode.props.value) > -1;
4366
4375
  } else if (isSet(value)) {
4367
4376
  el.checked = value.has(vnode.props.value);
@@ -4413,7 +4422,7 @@ const vModelSelect = {
4413
4422
  };
4414
4423
  function setSelected(el, value) {
4415
4424
  const isMultiple = el.multiple;
4416
- if (isMultiple && !isArray$2(value) && !isSet(value)) {
4425
+ if (isMultiple && !isArray$1(value) && !isSet(value)) {
4417
4426
  !!(process.env.NODE_ENV !== "production") && warn$1(
4418
4427
  `<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(value).slice(8, -1)}.`
4419
4428
  );
@@ -4423,7 +4432,7 @@ function setSelected(el, value) {
4423
4432
  const option2 = el.options[i];
4424
4433
  const optionValue = getValue(option2);
4425
4434
  if (isMultiple) {
4426
- if (isArray$2(value)) {
4435
+ if (isArray$1(value)) {
4427
4436
  option2.selected = looseIndexOf(value, optionValue) > -1;
4428
4437
  } else {
4429
4438
  option2.selected = value.has(optionValue);
@@ -4554,7 +4563,7 @@ const kindOfTest = (type) => {
4554
4563
  return (thing) => kindOf(thing) === type;
4555
4564
  };
4556
4565
  const typeOfTest = (type) => (thing) => typeof thing === type;
4557
- const { isArray: isArray$1 } = Array;
4566
+ const { isArray } = Array;
4558
4567
  const isUndefined = typeOfTest("undefined");
4559
4568
  function isBuffer(val) {
4560
4569
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
@@ -4602,7 +4611,7 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
4602
4611
  if (typeof obj !== "object") {
4603
4612
  obj = [obj];
4604
4613
  }
4605
- if (isArray$1(obj)) {
4614
+ if (isArray(obj)) {
4606
4615
  for (i = 0, l = obj.length; i < l; i++) {
4607
4616
  fn.call(null, obj[i], i, obj);
4608
4617
  }
@@ -4644,7 +4653,7 @@ function merge() {
4644
4653
  result[targetKey] = merge(result[targetKey], val);
4645
4654
  } else if (isPlainObject(val)) {
4646
4655
  result[targetKey] = merge({}, val);
4647
- } else if (isArray$1(val)) {
4656
+ } else if (isArray(val)) {
4648
4657
  result[targetKey] = val.slice();
4649
4658
  } else {
4650
4659
  result[targetKey] = val;
@@ -4713,7 +4722,7 @@ const endsWith = (str, searchString, position) => {
4713
4722
  const toArray = (thing) => {
4714
4723
  if (!thing)
4715
4724
  return null;
4716
- if (isArray$1(thing))
4725
+ if (isArray(thing))
4717
4726
  return thing;
4718
4727
  let i = thing.length;
4719
4728
  if (!isNumber(i))
@@ -4795,10 +4804,10 @@ const toObjectSet = (arrayOrString, delimiter) => {
4795
4804
  obj[value] = true;
4796
4805
  });
4797
4806
  };
4798
- isArray$1(arrayOrString) ? define2(arrayOrString) : define2(String(arrayOrString).split(delimiter));
4807
+ isArray(arrayOrString) ? define2(arrayOrString) : define2(String(arrayOrString).split(delimiter));
4799
4808
  return obj;
4800
4809
  };
4801
- const noop$1 = () => {
4810
+ const noop = () => {
4802
4811
  };
4803
4812
  const toFiniteNumber = (value, defaultValue) => {
4804
4813
  value = +value;
@@ -4831,7 +4840,7 @@ const toJSONObject = (obj) => {
4831
4840
  }
4832
4841
  if (!("toJSON" in source)) {
4833
4842
  stack2[i] = source;
4834
- const target = isArray$1(source) ? [] : {};
4843
+ const target = isArray(source) ? [] : {};
4835
4844
  forEach(source, (value, key) => {
4836
4845
  const reducedValue = visit(value, i + 1);
4837
4846
  !isUndefined(reducedValue) && (target[key] = reducedValue);
@@ -4847,7 +4856,7 @@ const toJSONObject = (obj) => {
4847
4856
  const isAsyncFn = kindOfTest("AsyncFunction");
4848
4857
  const isThenable = (thing) => thing && (isObject$1(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
4849
4858
  const utils$1 = {
4850
- isArray: isArray$1,
4859
+ isArray,
4851
4860
  isArrayBuffer,
4852
4861
  isBuffer,
4853
4862
  isFormData,
@@ -4888,7 +4897,7 @@ const utils$1 = {
4888
4897
  freezeMethods,
4889
4898
  toObjectSet,
4890
4899
  toCamelCase,
4891
- noop: noop$1,
4900
+ noop,
4892
4901
  toFiniteNumber,
4893
4902
  findKey,
4894
4903
  global: _global,
@@ -6796,6 +6805,117 @@ const BagelVue = {
6796
6805
  app.provide(bagelInjectionKey, bagel);
6797
6806
  }
6798
6807
  };
6808
+ const ModalSymbol = Symbol("modal");
6809
+ const useModal = () => {
6810
+ const modalApi = inject(ModalSymbol);
6811
+ if (!modalApi)
6812
+ throw new Error("Modal API not provided");
6813
+ return modalApi;
6814
+ };
6815
+ const ModalPlugin = {
6816
+ install: (app) => {
6817
+ const modalStack = ref([]);
6818
+ const showModal = (isForm, options, slots = {}) => {
6819
+ modalStack.value.push({
6820
+ modalOptions: options,
6821
+ isModalForm: isForm,
6822
+ componentSlots: slots
6823
+ });
6824
+ };
6825
+ const hideModal = (index2) => {
6826
+ modalStack.value.splice(index2, 1);
6827
+ };
6828
+ app.provide(ModalSymbol, {
6829
+ modalForm: (options, slots) => showModal(true, options, slots),
6830
+ showModal: (options, slots) => showModal(false, options, slots),
6831
+ hideModal: (index2 = modalStack.value.length - 1) => hideModal(index2)
6832
+ // modalOptions,
6833
+ });
6834
+ const ModalComponent = /* @__PURE__ */ defineComponent({
6835
+ data() {
6836
+ return {
6837
+ modalStack
6838
+ };
6839
+ },
6840
+ render() {
6841
+ return modalStack.value.map((modal, index2) => {
6842
+ const renderComponent = modal.isModalForm ? ModalForm$1 : Modal;
6843
+ return h(
6844
+ renderComponent,
6845
+ {
6846
+ ...modal.modalOptions,
6847
+ "onUpdate:isModalVisible": () => hideModal(index2)
6848
+ },
6849
+ modal.componentSlots
6850
+ );
6851
+ });
6852
+ }
6853
+ });
6854
+ app.component("ModalContainer", ModalComponent);
6855
+ }
6856
+ };
6857
+ function formatString(str, format) {
6858
+ if (format === "titleCase") {
6859
+ return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join(" ");
6860
+ }
6861
+ if (format === "pascal") {
6862
+ return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join("");
6863
+ }
6864
+ if (format === "camel") {
6865
+ return str.split("_").map((word, index2) => index2 === 0 ? word : word[0].toUpperCase() + word.slice(1)).join("");
6866
+ }
6867
+ if (format === "snake") {
6868
+ return str.split("").map((letter) => {
6869
+ if (letter === letter.toUpperCase()) {
6870
+ return `_${letter.toLowerCase()}`;
6871
+ }
6872
+ return letter;
6873
+ }).join("");
6874
+ }
6875
+ return str;
6876
+ }
6877
+ let timeout;
6878
+ const debounce = (fn, delay = 500) => {
6879
+ clearTimeout(timeout);
6880
+ timeout = setTimeout(fn, delay);
6881
+ };
6882
+ const keyToLabel = (key) => key.split("_").map((k) => k.charAt(0).toUpperCase() + k.slice(1)).join(" ");
6883
+ function computeFields(modelValue) {
6884
+ const fields = [];
6885
+ for (const key of Object.keys(modelValue)) {
6886
+ const field = {
6887
+ label: keyToLabel(key),
6888
+ id: key,
6889
+ inputType: "PlainText"
6890
+ };
6891
+ if (typeof modelValue[key] === "string")
6892
+ field.inputType = "PlainText";
6893
+ if (typeof modelValue[key] === "number")
6894
+ field.inputType = "NumberInput";
6895
+ if (modelValue[key] === true || modelValue[key] === false)
6896
+ field.inputType = "CheckInput";
6897
+ if (modelValue[key] instanceof Date || !Number.isNaN(Date.parse(modelValue[key])))
6898
+ field.inputType = "DateInput";
6899
+ fields.push(field);
6900
+ }
6901
+ return fields;
6902
+ }
6903
+ const copyText = async (text2, cb) => {
6904
+ await navigator.clipboard.writeText(text2);
6905
+ if (cb)
6906
+ cb("Copied to clipboard");
6907
+ };
6908
+ const useFormkit = () => {
6909
+ const formkit = inject("FormKitConfig");
6910
+ return formkit;
6911
+ };
6912
+ const initials = (...strArr) => strArr.map((str) => str == null ? void 0 : str.charAt(0)).join("");
6913
+ const parseLocale = (str, $t = (_str) => _str) => {
6914
+ const [_, w] = str.split(/\$t\('?"?|'?"?\)/);
6915
+ if (!w)
6916
+ return str;
6917
+ return $t(w);
6918
+ };
6799
6919
  const _hoisted_1$F = { ref: "el" };
6800
6920
  const _sfc_main$K = /* @__PURE__ */ defineComponent({
6801
6921
  __name: "LangText",
@@ -19030,195 +19150,6 @@ const MaterialIcon = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
19030
19150
  __proto__: null,
19031
19151
  default: _sfc_main$I
19032
19152
  }, Symbol.toStringTag, { value: "Module" }));
19033
- /*!
19034
- * vue-router v4.2.5
19035
- * (c) 2023 Eduardo San Martin Morote
19036
- * @license MIT
19037
- */
19038
- const isBrowser = typeof window !== "undefined";
19039
- const noop = () => {
19040
- };
19041
- const isArray = Array.isArray;
19042
- function isSameRouteRecord(a, b) {
19043
- return (a.aliasOf || a) === (b.aliasOf || b);
19044
- }
19045
- function isSameRouteLocationParams(a, b) {
19046
- if (Object.keys(a).length !== Object.keys(b).length)
19047
- return false;
19048
- for (const key in a) {
19049
- if (!isSameRouteLocationParamsValue(a[key], b[key]))
19050
- return false;
19051
- }
19052
- return true;
19053
- }
19054
- function isSameRouteLocationParamsValue(a, b) {
19055
- return isArray(a) ? isEquivalentArray(a, b) : isArray(b) ? isEquivalentArray(b, a) : a === b;
19056
- }
19057
- function isEquivalentArray(a, b) {
19058
- return isArray(b) ? a.length === b.length && a.every((value, i) => value === b[i]) : a.length === 1 && a[0] === b;
19059
- }
19060
- var NavigationType;
19061
- (function(NavigationType2) {
19062
- NavigationType2["pop"] = "pop";
19063
- NavigationType2["push"] = "push";
19064
- })(NavigationType || (NavigationType = {}));
19065
- var NavigationDirection;
19066
- (function(NavigationDirection2) {
19067
- NavigationDirection2["back"] = "back";
19068
- NavigationDirection2["forward"] = "forward";
19069
- NavigationDirection2["unknown"] = "";
19070
- })(NavigationDirection || (NavigationDirection = {}));
19071
- Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
19072
- var NavigationFailureType;
19073
- (function(NavigationFailureType2) {
19074
- NavigationFailureType2[NavigationFailureType2["aborted"] = 4] = "aborted";
19075
- NavigationFailureType2[NavigationFailureType2["cancelled"] = 8] = "cancelled";
19076
- NavigationFailureType2[NavigationFailureType2["duplicated"] = 16] = "duplicated";
19077
- })(NavigationFailureType || (NavigationFailureType = {}));
19078
- Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
19079
- Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
19080
- const routerKey = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
19081
- const routeLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
19082
- Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
19083
- function useLink(props2) {
19084
- const router = inject(routerKey);
19085
- const currentRoute = inject(routeLocationKey);
19086
- const route = computed(() => router.resolve(unref(props2.to)));
19087
- const activeRecordIndex = computed(() => {
19088
- const { matched } = route.value;
19089
- const { length } = matched;
19090
- const routeMatched = matched[length - 1];
19091
- const currentMatched = currentRoute.matched;
19092
- if (!routeMatched || !currentMatched.length)
19093
- return -1;
19094
- const index2 = currentMatched.findIndex(isSameRouteRecord.bind(null, routeMatched));
19095
- if (index2 > -1)
19096
- return index2;
19097
- const parentRecordPath = getOriginalPath(matched[length - 2]);
19098
- return (
19099
- // we are dealing with nested routes
19100
- length > 1 && // if the parent and matched route have the same path, this link is
19101
- // referring to the empty child. Or we currently are on a different
19102
- // child of the same parent
19103
- getOriginalPath(routeMatched) === parentRecordPath && // avoid comparing the child with its parent
19104
- currentMatched[currentMatched.length - 1].path !== parentRecordPath ? currentMatched.findIndex(isSameRouteRecord.bind(null, matched[length - 2])) : index2
19105
- );
19106
- });
19107
- const isActive = computed(() => activeRecordIndex.value > -1 && includesParams(currentRoute.params, route.value.params));
19108
- const isExactActive = computed(() => activeRecordIndex.value > -1 && activeRecordIndex.value === currentRoute.matched.length - 1 && isSameRouteLocationParams(currentRoute.params, route.value.params));
19109
- function navigate(e = {}) {
19110
- if (guardEvent(e)) {
19111
- return router[unref(props2.replace) ? "replace" : "push"](
19112
- unref(props2.to)
19113
- // avoid uncaught errors are they are logged anyway
19114
- ).catch(noop);
19115
- }
19116
- return Promise.resolve();
19117
- }
19118
- if ((process.env.NODE_ENV !== "production" || false) && isBrowser) {
19119
- const instance = getCurrentInstance();
19120
- if (instance) {
19121
- const linkContextDevtools = {
19122
- route: route.value,
19123
- isActive: isActive.value,
19124
- isExactActive: isExactActive.value
19125
- };
19126
- instance.__vrl_devtools = instance.__vrl_devtools || [];
19127
- instance.__vrl_devtools.push(linkContextDevtools);
19128
- watchEffect(() => {
19129
- linkContextDevtools.route = route.value;
19130
- linkContextDevtools.isActive = isActive.value;
19131
- linkContextDevtools.isExactActive = isExactActive.value;
19132
- }, { flush: "post" });
19133
- }
19134
- }
19135
- return {
19136
- route,
19137
- href: computed(() => route.value.href),
19138
- isActive,
19139
- isExactActive,
19140
- navigate
19141
- };
19142
- }
19143
- const RouterLinkImpl = /* @__PURE__ */ defineComponent({
19144
- name: "RouterLink",
19145
- compatConfig: { MODE: 3 },
19146
- props: {
19147
- to: {
19148
- type: [String, Object],
19149
- required: true
19150
- },
19151
- replace: Boolean,
19152
- activeClass: String,
19153
- // inactiveClass: String,
19154
- exactActiveClass: String,
19155
- custom: Boolean,
19156
- ariaCurrentValue: {
19157
- type: String,
19158
- default: "page"
19159
- }
19160
- },
19161
- useLink,
19162
- setup(props2, { slots }) {
19163
- const link = reactive(useLink(props2));
19164
- const { options } = inject(routerKey);
19165
- const elClass = computed(() => ({
19166
- [getLinkClass(props2.activeClass, options.linkActiveClass, "router-link-active")]: link.isActive,
19167
- // [getLinkClass(
19168
- // props.inactiveClass,
19169
- // options.linkInactiveClass,
19170
- // 'router-link-inactive'
19171
- // )]: !link.isExactActive,
19172
- [getLinkClass(props2.exactActiveClass, options.linkExactActiveClass, "router-link-exact-active")]: link.isExactActive
19173
- }));
19174
- return () => {
19175
- const children = slots.default && slots.default(link);
19176
- return props2.custom ? children : h("a", {
19177
- "aria-current": link.isExactActive ? props2.ariaCurrentValue : null,
19178
- href: link.href,
19179
- // this would override user added attrs but Vue will still add
19180
- // the listener, so we end up triggering both
19181
- onClick: link.navigate,
19182
- class: elClass.value
19183
- }, children);
19184
- };
19185
- }
19186
- });
19187
- const RouterLink = RouterLinkImpl;
19188
- function guardEvent(e) {
19189
- if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey)
19190
- return;
19191
- if (e.defaultPrevented)
19192
- return;
19193
- if (e.button !== void 0 && e.button !== 0)
19194
- return;
19195
- if (e.currentTarget && e.currentTarget.getAttribute) {
19196
- const target = e.currentTarget.getAttribute("target");
19197
- if (/\b_blank\b/i.test(target))
19198
- return;
19199
- }
19200
- if (e.preventDefault)
19201
- e.preventDefault();
19202
- return true;
19203
- }
19204
- function includesParams(outer2, inner2) {
19205
- for (const key in inner2) {
19206
- const innerValue = inner2[key];
19207
- const outerValue = outer2[key];
19208
- if (typeof innerValue === "string") {
19209
- if (innerValue !== outerValue)
19210
- return false;
19211
- } else {
19212
- if (!isArray(outerValue) || outerValue.length !== innerValue.length || innerValue.some((value, i) => value !== outerValue[i]))
19213
- return false;
19214
- }
19215
- }
19216
- return true;
19217
- }
19218
- function getOriginalPath(record) {
19219
- return record ? record.aliasOf ? record.aliasOf.path : record.path : "";
19220
- }
19221
- const getLinkClass = (propClass, globalClass, defaultClass) => propClass != null ? propClass : globalClass != null ? globalClass : defaultClass;
19222
19153
  const _hoisted_1$D = /* @__PURE__ */ createBaseVNode("div", { class: "icon-font top-arrow" }, " chevron_right ", -1);
19223
19154
  const _hoisted_2$z = [
19224
19155
  _hoisted_1$D
@@ -19240,6 +19171,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19240
19171
  setup(__props) {
19241
19172
  const isOpen = ref(true);
19242
19173
  return (_ctx, _cache) => {
19174
+ const _component_RouterLink = resolveComponent("RouterLink");
19243
19175
  return openBlock(), createElementBlock("div", {
19244
19176
  class: normalizeClass({ open: isOpen.value, closed: !isOpen.value })
19245
19177
  }, [
@@ -19256,7 +19188,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19256
19188
  createBaseVNode("div", _hoisted_4$i, [
19257
19189
  createBaseVNode("div", _hoisted_5$e, [
19258
19190
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
19259
- return openBlock(), createBlock(unref(RouterLink), {
19191
+ return openBlock(), createBlock(_component_RouterLink, {
19260
19192
  class: "nav-button",
19261
19193
  to: link.to,
19262
19194
  key: link.label
@@ -19353,7 +19285,7 @@ const _export_sfc = (sfc, props2) => {
19353
19285
  }
19354
19286
  return target;
19355
19287
  };
19356
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-aec5db19"]]);
19288
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-b94d75fb"]]);
19357
19289
  const Btn$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19358
19290
  __proto__: null,
19359
19291
  default: Btn
@@ -19416,10 +19348,6 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
19416
19348
  };
19417
19349
  }
19418
19350
  });
19419
- const Modal = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19420
- __proto__: null,
19421
- default: _sfc_main$F
19422
- }, Symbol.toStringTag, { value: "Module" }));
19423
19351
  const _withScopeId$2 = (n) => (pushScopeId("data-v-f7af54ed"), n = n(), popScopeId(), n);
19424
19352
  const _hoisted_1$A = { class: "bar-chart" };
19425
19353
  const _hoisted_2$w = {
@@ -19590,68 +19518,6 @@ const DropDown = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
19590
19518
  __proto__: null,
19591
19519
  default: _sfc_main$D
19592
19520
  }, Symbol.toStringTag, { value: "Module" }));
19593
- function formatString(str, format) {
19594
- if (format === "titleCase") {
19595
- return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join(" ");
19596
- }
19597
- if (format === "pascal") {
19598
- return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join("");
19599
- }
19600
- if (format === "camel") {
19601
- return str.split("_").map((word, index2) => index2 === 0 ? word : word[0].toUpperCase() + word.slice(1)).join("");
19602
- }
19603
- if (format === "snake") {
19604
- return str.split("").map((letter) => {
19605
- if (letter === letter.toUpperCase()) {
19606
- return `_${letter.toLowerCase()}`;
19607
- }
19608
- return letter;
19609
- }).join("");
19610
- }
19611
- return str;
19612
- }
19613
- let timeout;
19614
- const debounce = (fn, delay = 500) => {
19615
- clearTimeout(timeout);
19616
- timeout = setTimeout(fn, delay);
19617
- };
19618
- const keyToLabel = (key) => key.split("_").map((k) => k.charAt(0).toUpperCase() + k.slice(1)).join(" ");
19619
- function computeFields(modelValue) {
19620
- const fields = [];
19621
- for (const key of Object.keys(modelValue)) {
19622
- const field = {
19623
- label: keyToLabel(key),
19624
- id: key,
19625
- inputType: "PlainText"
19626
- };
19627
- if (typeof modelValue[key] === "string")
19628
- field.inputType = "PlainText";
19629
- if (typeof modelValue[key] === "number")
19630
- field.inputType = "NumberInput";
19631
- if (modelValue[key] === true || modelValue[key] === false)
19632
- field.inputType = "CheckInput";
19633
- if (modelValue[key] instanceof Date || !Number.isNaN(Date.parse(modelValue[key])))
19634
- field.inputType = "DateInput";
19635
- fields.push(field);
19636
- }
19637
- return fields;
19638
- }
19639
- const copyText = async (text2, cb) => {
19640
- await navigator.clipboard.writeText(text2);
19641
- if (cb)
19642
- cb("Copied to clipboard");
19643
- };
19644
- const useFormkit = () => {
19645
- const formkit = inject("FormKitConfig");
19646
- return formkit;
19647
- };
19648
- const initials = (...strArr) => strArr.map((str) => str == null ? void 0 : str.charAt(0)).join("");
19649
- const parseLocale = (str, $t = (_str) => _str) => {
19650
- const [_, w] = str.split(/\$t\('?"?|'?"?\)/);
19651
- if (!w)
19652
- return str;
19653
- return $t(w);
19654
- };
19655
19521
  const _hoisted_1$y = { class: "card list-view grid thin" };
19656
19522
  const _hoisted_2$u = { class: "list-header flex gap-3 align-items-top" };
19657
19523
  const _hoisted_3$r = {
@@ -19926,7 +19792,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19926
19792
  };
19927
19793
  }
19928
19794
  });
19929
- const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-7736e5b9"]]);
19795
+ const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-10f58b91"]]);
19930
19796
  const Comments$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19931
19797
  __proto__: null,
19932
19798
  default: Comments
@@ -20043,11 +19909,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
20043
19909
  };
20044
19910
  }
20045
19911
  });
20046
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-58e23976"]]);
20047
- const ModalForm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20048
- __proto__: null,
20049
- default: ModalForm
20050
- }, Symbol.toStringTag, { value: "Module" }));
19912
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-d04a51e8"]]);
20051
19913
  const _hoisted_1$s = ["title"];
20052
19914
  const _hoisted_2$o = ["for"];
20053
19915
  const _hoisted_3$n = ["id", "placeholder", "required", "pattern"];
@@ -20170,7 +20032,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
20170
20032
  };
20171
20033
  }
20172
20034
  });
20173
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-db194f6c"]]);
20035
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-f006fc35"]]);
20174
20036
  const DataPreview$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20175
20037
  __proto__: null,
20176
20038
  default: DataPreview
@@ -20368,7 +20230,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
20368
20230
  };
20369
20231
  }
20370
20232
  });
20371
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-cb4dabf7"]]);
20233
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-5c5ba615"]]);
20372
20234
  const TableSchema$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20373
20235
  __proto__: null,
20374
20236
  default: TableSchema
@@ -20456,55 +20318,6 @@ const ContactSubmissions = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
20456
20318
  __proto__: null,
20457
20319
  default: _sfc_main$q
20458
20320
  }, Symbol.toStringTag, { value: "Module" }));
20459
- const ModalSymbol = Symbol("modal");
20460
- const useModal = () => {
20461
- const modalApi = inject(ModalSymbol);
20462
- if (!modalApi)
20463
- throw new Error("Modal API not provided");
20464
- return modalApi;
20465
- };
20466
- const ModalPlugin = {
20467
- install: (app) => {
20468
- const modalStack = ref([]);
20469
- const showModal = (isForm, options, slots = {}) => {
20470
- modalStack.value.push({
20471
- modalOptions: options,
20472
- isModalForm: isForm,
20473
- componentSlots: slots
20474
- });
20475
- };
20476
- const hideModal = (index2) => {
20477
- modalStack.value.splice(index2, 1);
20478
- };
20479
- app.provide(ModalSymbol, {
20480
- modalForm: (options, slots) => showModal(true, options, slots),
20481
- showModal: (options, slots) => showModal(false, options, slots),
20482
- hideModal: (index2 = modalStack.value.length - 1) => hideModal(index2)
20483
- // modalOptions,
20484
- });
20485
- const ModalComponent = /* @__PURE__ */ defineComponent({
20486
- data() {
20487
- return {
20488
- modalStack
20489
- };
20490
- },
20491
- render() {
20492
- return modalStack.value.map((modal, index2) => {
20493
- const renderComponent = modal.isModalForm ? ModalForm$1 : Modal;
20494
- return h(
20495
- renderComponent,
20496
- {
20497
- ...modal.modalOptions,
20498
- "onUpdate:isModalVisible": () => hideModal(index2)
20499
- },
20500
- modal.componentSlots
20501
- );
20502
- });
20503
- }
20504
- });
20505
- app.component("ModalContainer", ModalComponent);
20506
- }
20507
- };
20508
20321
  const explicitKeys = [
20509
20322
  "__key",
20510
20323
  "__init",
@@ -21799,7 +21612,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
21799
21612
  };
21800
21613
  }
21801
21614
  });
21802
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-19e44daf"]]);
21615
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-5f3ff6ea"]]);
21803
21616
  const _hoisted_1$m = { class: "bagel-input" };
21804
21617
  const _hoisted_2$l = { class: "mt-1" };
21805
21618
  const _hoisted_3$k = {
@@ -21945,7 +21758,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
21945
21758
  };
21946
21759
  }
21947
21760
  });
21948
- const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-c078d5ac"]]);
21761
+ const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-438c5b36"]]);
21949
21762
  const _hoisted_1$l = { class: "bagel-input" };
21950
21763
  const _hoisted_2$k = { class: "mt-1" };
21951
21764
  const _hoisted_3$j = {
@@ -22118,7 +21931,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
22118
21931
  };
22119
21932
  }
22120
21933
  });
22121
- const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-f3464e6e"]]);
21934
+ const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-0ec6633e"]]);
22122
21935
  const _hoisted_1$k = { class: "bagel-input" };
22123
21936
  const _hoisted_2$j = { class: "mt-1" };
22124
21937
  const _hoisted_3$i = {
@@ -22324,7 +22137,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
22324
22137
  };
22325
22138
  }
22326
22139
  });
22327
- const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-962f5ddb"]]);
22140
+ const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-277091e1"]]);
22328
22141
  const _hoisted_1$j = { class: "misc-wrap" };
22329
22142
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
22330
22143
  __name: "MiscFields",
@@ -22371,7 +22184,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
22371
22184
  };
22372
22185
  }
22373
22186
  });
22374
- const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-6f2d6ed0"]]);
22187
+ const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-bac6c2ee"]]);
22375
22188
  const _withScopeId$1 = (n) => (pushScopeId("data-v-d12598ff"), n = n(), popScopeId(), n);
22376
22189
  const _hoisted_1$i = ["title"];
22377
22190
  const _hoisted_2$i = { class: "switch" };
@@ -22834,7 +22647,7 @@ const ToggleSwitch = createInput(Toggle);
22834
22647
  const FileUpload = createInput(_sfc_main$j);
22835
22648
  const TextVariables = createInput(_sfc_main$h);
22836
22649
  const PersonPreview = createInput(_sfc_main$i);
22837
- const _withScopeId = (n) => (pushScopeId("data-v-590e33ed"), n = n(), popScopeId(), n);
22650
+ const _withScopeId = (n) => (pushScopeId("data-v-69f0d857"), n = n(), popScopeId(), n);
22838
22651
  const _hoisted_1$f = ["title"];
22839
22652
  const _hoisted_2$f = ["for"];
22840
22653
  const _hoisted_3$e = { class: "switch" };
@@ -22889,7 +22702,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
22889
22702
  };
22890
22703
  }
22891
22704
  });
22892
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-590e33ed"]]);
22705
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-69f0d857"]]);
22893
22706
  const CheckInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22894
22707
  __proto__: null,
22895
22708
  default: CheckInput
@@ -23015,7 +22828,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
23015
22828
  };
23016
22829
  }
23017
22830
  });
23018
- const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-fb02d200"]]);
22831
+ const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-17a56a3f"]]);
23019
22832
  const CurrencyInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23020
22833
  __proto__: null,
23021
22834
  default: CurrencyInput
@@ -23061,7 +22874,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
23061
22874
  };
23062
22875
  }
23063
22876
  });
23064
- const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-e7f1b3f2"]]);
22877
+ const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-782aee7f"]]);
23065
22878
  const DateInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23066
22879
  __proto__: null,
23067
22880
  default: DateInput
@@ -23328,9 +23141,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
23328
23141
  emits: ["update:modelValue", "selected"],
23329
23142
  setup(__props, { emit: __emit }) {
23330
23143
  useCssVars((_ctx) => ({
23331
- "389c1e7f": left.value,
23332
- "858a201e": `${top.value}px`,
23333
- "48f70364": width.value
23144
+ "db4af1b6": left.value,
23145
+ "25d5c417": `${top.value}px`,
23146
+ "8cd9ab30": width.value
23334
23147
  }));
23335
23148
  const props2 = __props;
23336
23149
  const showList = ref(false);
@@ -23482,7 +23295,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
23482
23295
  };
23483
23296
  }
23484
23297
  });
23485
- const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-9ea2d30f"]]);
23298
+ const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-947beb38"]]);
23486
23299
  const LinkField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23487
23300
  __proto__: null,
23488
23301
  default: LinkField
@@ -23605,7 +23418,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23605
23418
  };
23606
23419
  }
23607
23420
  });
23608
- const Password = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-ba45b5bf"]]);
23421
+ const Password = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-800f4000"]]);
23609
23422
  const Password$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23610
23423
  __proto__: null,
23611
23424
  default: Password
@@ -23631,7 +23444,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23631
23444
  };
23632
23445
  }
23633
23446
  });
23634
- const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-1f87e7f9"]]);
23447
+ const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-b3b5a368"]]);
23635
23448
  const ReadOnlyInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23636
23449
  __proto__: null,
23637
23450
  default: ReadOnlyInput
@@ -23670,9 +23483,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23670
23483
  emits: ["update:modelValue", "selected"],
23671
23484
  setup(__props, { emit: __emit }) {
23672
23485
  useCssVars((_ctx) => ({
23673
- "1a04bb0f": left.value,
23674
- "03803efe": `${top.value}px`,
23675
- "272f73be": width.value
23486
+ "1c3856b2": left.value,
23487
+ "62aaf5e4": `${top.value}px`,
23488
+ "6b6f4c7b": width.value
23676
23489
  }));
23677
23490
  const selectEl = ref();
23678
23491
  const dropdown = ref();
@@ -23808,7 +23621,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23808
23621
  };
23809
23622
  }
23810
23623
  });
23811
- const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-6e9ccd80"]]);
23624
+ const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-028ea61b"]]);
23812
23625
  const SelectField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23813
23626
  __proto__: null,
23814
23627
  default: SelectField
@@ -26544,7 +26357,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26544
26357
  };
26545
26358
  }
26546
26359
  });
26547
- const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-570a76ab"]]);
26360
+ const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b01223bc"]]);
26548
26361
  const TableField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26549
26362
  __proto__: null,
26550
26363
  default: TableField