@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.mjs CHANGED
@@ -1,3 +1,15 @@
1
+ const Modal = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2
+ __proto__: null,
3
+ get default() {
4
+ return _sfc_main$F;
5
+ }
6
+ }, Symbol.toStringTag, { value: "Module" }));
7
+ const ModalForm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8
+ __proto__: null,
9
+ get default() {
10
+ return ModalForm;
11
+ }
12
+ }, Symbol.toStringTag, { value: "Module" }));
1
13
  const FormSchema = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2
14
  __proto__: null,
3
15
  get default() {
@@ -27,7 +39,7 @@ const remove = (arr, el) => {
27
39
  };
28
40
  const hasOwnProperty$2 = Object.prototype.hasOwnProperty;
29
41
  const hasOwn = (val, key) => hasOwnProperty$2.call(val, key);
30
- const isArray$2 = Array.isArray;
42
+ const isArray$1 = Array.isArray;
31
43
  const isMap = (val) => toTypeString(val) === "[object Map]";
32
44
  const isSet = (val) => toTypeString(val) === "[object Set]";
33
45
  const isDate$1 = (val) => toTypeString(val) === "[object Date]";
@@ -93,7 +105,7 @@ const getGlobalThis = () => {
93
105
  return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
94
106
  };
95
107
  function normalizeStyle(value) {
96
- if (isArray$2(value)) {
108
+ if (isArray$1(value)) {
97
109
  const res = {};
98
110
  for (let i = 0; i < value.length; i++) {
99
111
  const item = value[i];
@@ -126,7 +138,7 @@ function normalizeClass(value) {
126
138
  let res = "";
127
139
  if (isString$1(value)) {
128
140
  res = value;
129
- } else if (isArray$2(value)) {
141
+ } else if (isArray$1(value)) {
130
142
  for (let i = 0; i < value.length; i++) {
131
143
  const normalized = normalizeClass(value[i]);
132
144
  if (normalized) {
@@ -164,8 +176,8 @@ function looseEqual(a, b) {
164
176
  if (aValidType || bValidType) {
165
177
  return a === b;
166
178
  }
167
- aValidType = isArray$2(a);
168
- bValidType = isArray$2(b);
179
+ aValidType = isArray$1(a);
180
+ bValidType = isArray$1(b);
169
181
  if (aValidType || bValidType) {
170
182
  return aValidType && bValidType ? looseCompareArrays(a, b) : false;
171
183
  }
@@ -194,7 +206,7 @@ function looseIndexOf(arr, val) {
194
206
  return arr.findIndex((item) => looseEqual(item, val));
195
207
  }
196
208
  const toDisplayString = (val) => {
197
- 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);
209
+ 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);
198
210
  };
199
211
  const replacer = (_key, val) => {
200
212
  if (val && val.__v_isRef) {
@@ -210,7 +222,7 @@ const replacer = (_key, val) => {
210
222
  return {
211
223
  [`Set(${val.size})`]: [...val.values()]
212
224
  };
213
- } else if (isObject$2(val) && !isArray$2(val) && !isPlainObject$1(val)) {
225
+ } else if (isObject$2(val) && !isArray$1(val) && !isPlainObject$1(val)) {
214
226
  return String(val);
215
227
  }
216
228
  return val;
@@ -389,7 +401,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
389
401
  let deps = [];
390
402
  if (type === "clear") {
391
403
  deps = [...depsMap.values()];
392
- } else if (key === "length" && isArray$2(target)) {
404
+ } else if (key === "length" && isArray$1(target)) {
393
405
  const newLength = Number(newValue);
394
406
  depsMap.forEach((dep, key2) => {
395
407
  if (key2 === "length" || !isSymbol(key2) && key2 >= newLength) {
@@ -402,7 +414,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
402
414
  }
403
415
  switch (type) {
404
416
  case "add":
405
- if (!isArray$2(target)) {
417
+ if (!isArray$1(target)) {
406
418
  deps.push(depsMap.get(ITERATE_KEY));
407
419
  if (isMap(target)) {
408
420
  deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
@@ -412,7 +424,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
412
424
  }
413
425
  break;
414
426
  case "delete":
415
- if (!isArray$2(target)) {
427
+ if (!isArray$1(target)) {
416
428
  deps.push(depsMap.get(ITERATE_KEY));
417
429
  if (isMap(target)) {
418
430
  deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
@@ -450,7 +462,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
450
462
  }
451
463
  }
452
464
  function triggerEffects(dep, debuggerEventExtraInfo) {
453
- const effects = isArray$2(dep) ? dep : [...dep];
465
+ const effects = isArray$1(dep) ? dep : [...dep];
454
466
  for (const effect2 of effects) {
455
467
  if (effect2.computed) {
456
468
  triggerEffect(effect2, debuggerEventExtraInfo);
@@ -526,7 +538,7 @@ class BaseReactiveHandler {
526
538
  } else if (key === "__v_raw" && receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) {
527
539
  return target;
528
540
  }
529
- const targetIsArray = isArray$2(target);
541
+ const targetIsArray = isArray$1(target);
530
542
  if (!isReadonly2) {
531
543
  if (targetIsArray && hasOwn(arrayInstrumentations, key)) {
532
544
  return Reflect.get(arrayInstrumentations, key, receiver);
@@ -568,12 +580,12 @@ class MutableReactiveHandler extends BaseReactiveHandler {
568
580
  oldValue = toRaw(oldValue);
569
581
  value = toRaw(value);
570
582
  }
571
- if (!isArray$2(target) && isRef(oldValue) && !isRef(value)) {
583
+ if (!isArray$1(target) && isRef(oldValue) && !isRef(value)) {
572
584
  oldValue.value = value;
573
585
  return true;
574
586
  }
575
587
  }
576
- const hadKey = isArray$2(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
588
+ const hadKey = isArray$1(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
577
589
  const result = Reflect.set(target, key, value, receiver);
578
590
  if (target === toRaw(receiver)) {
579
591
  if (!hadKey) {
@@ -604,7 +616,7 @@ class MutableReactiveHandler extends BaseReactiveHandler {
604
616
  track(
605
617
  target,
606
618
  "iterate",
607
- isArray$2(target) ? "length" : ITERATE_KEY
619
+ isArray$1(target) ? "length" : ITERATE_KEY
608
620
  );
609
621
  return Reflect.ownKeys(target);
610
622
  }
@@ -1422,7 +1434,7 @@ function queueFlush() {
1422
1434
  }
1423
1435
  }
1424
1436
  function queuePostFlushCb(cb) {
1425
- if (!isArray$2(cb)) {
1437
+ if (!isArray$1(cb)) {
1426
1438
  if (!activePostFlushCbs || !activePostFlushCbs.includes(
1427
1439
  cb,
1428
1440
  cb.allowRecurse ? postFlushIndex + 1 : postFlushIndex
@@ -1732,7 +1744,7 @@ function resolve(registry2, name) {
1732
1744
  const isSuspense = (type) => type.__isSuspense;
1733
1745
  function queueEffectWithSuspense(fn, suspense) {
1734
1746
  if (suspense && suspense.pendingBranch) {
1735
- if (isArray$2(fn)) {
1747
+ if (isArray$1(fn)) {
1736
1748
  suspense.effects.push(...fn);
1737
1749
  } else {
1738
1750
  suspense.effects.push(fn);
@@ -1741,9 +1753,6 @@ function queueEffectWithSuspense(fn, suspense) {
1741
1753
  queuePostFlushCb(fn);
1742
1754
  }
1743
1755
  }
1744
- function watchEffect(effect2, options) {
1745
- return doWatch(effect2, null, options);
1746
- }
1747
1756
  function watchPostEffect(effect2, options) {
1748
1757
  return doWatch(
1749
1758
  effect2,
@@ -1791,7 +1800,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
1791
1800
  } else if (isReactive(source)) {
1792
1801
  getter = () => source;
1793
1802
  deep = true;
1794
- } else if (isArray$2(source)) {
1803
+ } else if (isArray$1(source)) {
1795
1804
  isMultiSource = true;
1796
1805
  forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
1797
1806
  getter = () => source.map((s) => {
@@ -1962,7 +1971,7 @@ function traverse(value, seen) {
1962
1971
  seen.add(value);
1963
1972
  if (isRef(value)) {
1964
1973
  traverse(value.value, seen);
1965
- } else if (isArray$2(value)) {
1974
+ } else if (isArray$1(value)) {
1966
1975
  for (let i = 0; i < value.length; i++) {
1967
1976
  traverse(value[i], seen);
1968
1977
  }
@@ -2187,7 +2196,7 @@ function resolveTransitionHooks(vnode, props2, state, instance) {
2187
2196
  const callAsyncHook = (hook, args) => {
2188
2197
  const done = args[1];
2189
2198
  callHook2(hook, args);
2190
- if (isArray$2(hook)) {
2199
+ if (isArray$1(hook)) {
2191
2200
  if (hook.every((hook2) => hook2.length <= 1))
2192
2201
  done();
2193
2202
  } else if (hook.length <= 1) {
@@ -2385,7 +2394,7 @@ const onUnmounted = createHook("um");
2385
2394
  function renderList(source, renderItem, cache, index2) {
2386
2395
  let ret;
2387
2396
  const cached2 = cache && cache[index2];
2388
- if (isArray$2(source) || isString$1(source)) {
2397
+ if (isArray$1(source) || isString$1(source)) {
2389
2398
  ret = new Array(source.length);
2390
2399
  for (let i = 0, l = source.length; i < l; i++) {
2391
2400
  ret[i] = renderItem(source[i], i, void 0, cached2 && cached2[i]);
@@ -2644,7 +2653,7 @@ function getContext$1() {
2644
2653
  return i.setupContext || (i.setupContext = createSetupContext(i));
2645
2654
  }
2646
2655
  function normalizePropsOrEmits(props2) {
2647
- return isArray$2(props2) ? props2.reduce(
2656
+ return isArray$1(props2) ? props2.reduce(
2648
2657
  (normalized, p) => (normalized[p] = null, normalized),
2649
2658
  {}
2650
2659
  ) : props2;
@@ -2750,7 +2759,7 @@ function mergeInject(to, from2) {
2750
2759
  return mergeObjectOptions(normalizeInject(to), normalizeInject(from2));
2751
2760
  }
2752
2761
  function normalizeInject(raw) {
2753
- if (isArray$2(raw)) {
2762
+ if (isArray$1(raw)) {
2754
2763
  const res = {};
2755
2764
  for (let i = 0; i < raw.length; i++) {
2756
2765
  res[raw[i]] = raw[i];
@@ -2767,7 +2776,7 @@ function mergeObjectOptions(to, from2) {
2767
2776
  }
2768
2777
  function mergeEmitsOrPropsOptions(to, from2) {
2769
2778
  if (to) {
2770
- if (isArray$2(to) && isArray$2(from2)) {
2779
+ if (isArray$1(to) && isArray$1(from2)) {
2771
2780
  return [.../* @__PURE__ */ new Set([...to, ...from2])];
2772
2781
  }
2773
2782
  return extend$4(
@@ -2810,7 +2819,7 @@ const queuePostRenderEffect = queueEffectWithSuspense;
2810
2819
  function traverseStaticChildren(n1, n2, shallow = false) {
2811
2820
  const ch1 = n1.children;
2812
2821
  const ch2 = n2.children;
2813
- if (isArray$2(ch1) && isArray$2(ch2)) {
2822
+ if (isArray$1(ch1) && isArray$1(ch2)) {
2814
2823
  for (let i = 0; i < ch1.length; i++) {
2815
2824
  const c1 = ch1[i];
2816
2825
  let c2 = ch2[i];
@@ -3265,7 +3274,7 @@ function _createVNode(type, props2 = null, children = null, patchFlag = 0, dynam
3265
3274
  props2.class = normalizeClass(klass);
3266
3275
  }
3267
3276
  if (isObject$2(style)) {
3268
- if (isProxy(style) && !isArray$2(style)) {
3277
+ if (isProxy(style) && !isArray$1(style)) {
3269
3278
  style = extend$4({}, style);
3270
3279
  }
3271
3280
  props2.style = normalizeStyle(style);
@@ -3310,11 +3319,11 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
3310
3319
  // #2078 in the case of <component :is="vnode" ref="extra"/>
3311
3320
  // if the vnode itself already has a ref, cloneVNode will need to merge
3312
3321
  // the refs so the single vnode can be set on multiple refs
3313
- mergeRef && ref3 ? isArray$2(ref3) ? ref3.concat(normalizeRef(extraProps)) : [ref3, normalizeRef(extraProps)] : normalizeRef(extraProps)
3322
+ mergeRef && ref3 ? isArray$1(ref3) ? ref3.concat(normalizeRef(extraProps)) : [ref3, normalizeRef(extraProps)] : normalizeRef(extraProps)
3314
3323
  ) : ref3,
3315
3324
  scopeId: vnode.scopeId,
3316
3325
  slotScopeIds: vnode.slotScopeIds,
3317
- children: !!(process.env.NODE_ENV !== "production") && patchFlag === -1 && isArray$2(children) ? children.map(deepCloneVNode) : children,
3326
+ children: !!(process.env.NODE_ENV !== "production") && patchFlag === -1 && isArray$1(children) ? children.map(deepCloneVNode) : children,
3318
3327
  target: vnode.target,
3319
3328
  targetAnchor: vnode.targetAnchor,
3320
3329
  staticCount: vnode.staticCount,
@@ -3346,7 +3355,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
3346
3355
  }
3347
3356
  function deepCloneVNode(vnode) {
3348
3357
  const cloned = cloneVNode(vnode);
3349
- if (isArray$2(vnode.children)) {
3358
+ if (isArray$1(vnode.children)) {
3350
3359
  cloned.children = vnode.children.map(deepCloneVNode);
3351
3360
  }
3352
3361
  return cloned;
@@ -3365,7 +3374,7 @@ function normalizeChildren(vnode, children) {
3365
3374
  const { shapeFlag } = vnode;
3366
3375
  if (children == null) {
3367
3376
  children = null;
3368
- } else if (isArray$2(children)) {
3377
+ } else if (isArray$1(children)) {
3369
3378
  type = 16;
3370
3379
  } else if (typeof children === "object") {
3371
3380
  if (shapeFlag & (1 | 64)) {
@@ -3419,7 +3428,7 @@ function mergeProps(...args) {
3419
3428
  } else if (isOn(key)) {
3420
3429
  const existing = ret[key];
3421
3430
  const incoming = toMerge[key];
3422
- if (incoming && existing !== incoming && !(isArray$2(existing) && existing.includes(incoming))) {
3431
+ if (incoming && existing !== incoming && !(isArray$1(existing) && existing.includes(incoming))) {
3423
3432
  ret[key] = existing ? [].concat(existing, incoming) : incoming;
3424
3433
  }
3425
3434
  } else if (key !== "") {
@@ -3500,7 +3509,7 @@ function createSetupContext(instance) {
3500
3509
  if (exposed != null) {
3501
3510
  let exposedType = typeof exposed;
3502
3511
  if (exposedType === "object") {
3503
- if (isArray$2(exposed)) {
3512
+ if (isArray$1(exposed)) {
3504
3513
  exposedType = "array";
3505
3514
  } else if (isRef(exposed)) {
3506
3515
  exposedType = "ref";
@@ -3591,7 +3600,7 @@ const computed = (getterOrOptions, debugOptions) => {
3591
3600
  function h(type, propsOrChildren, children) {
3592
3601
  const l = arguments.length;
3593
3602
  if (l === 2) {
3594
- if (isObject$2(propsOrChildren) && !isArray$2(propsOrChildren)) {
3603
+ if (isObject$2(propsOrChildren) && !isArray$1(propsOrChildren)) {
3595
3604
  if (isVNode(propsOrChildren)) {
3596
3605
  return createVNode(type, null, [propsOrChildren]);
3597
3606
  }
@@ -3773,7 +3782,7 @@ function initCustomFormatter() {
3773
3782
  }
3774
3783
  function isKeyOfType(Comp, key, type) {
3775
3784
  const opts = Comp[type];
3776
- if (isArray$2(opts) && opts.includes(key) || isObject$2(opts) && key in opts) {
3785
+ if (isArray$1(opts) && opts.includes(key) || isObject$2(opts) && key in opts) {
3777
3786
  return true;
3778
3787
  }
3779
3788
  if (Comp.extends && isKeyOfType(Comp.extends, key, type)) {
@@ -3827,14 +3836,14 @@ const TransitionPropsValidators = Transition.props = /* @__PURE__ */ extend$4(
3827
3836
  DOMTransitionPropsValidators
3828
3837
  );
3829
3838
  const callHook = (hook, args = []) => {
3830
- if (isArray$2(hook)) {
3839
+ if (isArray$1(hook)) {
3831
3840
  hook.forEach((h2) => h2(...args));
3832
3841
  } else if (hook) {
3833
3842
  hook(...args);
3834
3843
  }
3835
3844
  };
3836
3845
  const hasExplicitCallback = (hook) => {
3837
- return hook ? isArray$2(hook) ? hook.some((h2) => h2.length > 1) : hook.length > 1 : false;
3846
+ return hook ? isArray$1(hook) ? hook.some((h2) => h2.length > 1) : hook.length > 1 : false;
3838
3847
  };
3839
3848
  function resolveTransitionProps(rawProps) {
3840
3849
  const baseProps = {};
@@ -4252,7 +4261,7 @@ function hasCSSTransform(el, root, moveClass) {
4252
4261
  }
4253
4262
  const getModelAssigner = (vnode) => {
4254
4263
  const fn = vnode.props["onUpdate:modelValue"] || false;
4255
- return isArray$2(fn) ? (value) => invokeArrayFns(fn, value) : fn;
4264
+ return isArray$1(fn) ? (value) => invokeArrayFns(fn, value) : fn;
4256
4265
  };
4257
4266
  function onCompositionStart(e) {
4258
4267
  e.target.composing = true;
@@ -4327,7 +4336,7 @@ const vModelCheckbox = {
4327
4336
  const elementValue = getValue(el);
4328
4337
  const checked = el.checked;
4329
4338
  const assign = el[assignKey];
4330
- if (isArray$2(modelValue)) {
4339
+ if (isArray$1(modelValue)) {
4331
4340
  const index2 = looseIndexOf(modelValue, elementValue);
4332
4341
  const found2 = index2 !== -1;
4333
4342
  if (checked && !found2) {
@@ -4359,7 +4368,7 @@ const vModelCheckbox = {
4359
4368
  };
4360
4369
  function setChecked(el, { value, oldValue }, vnode) {
4361
4370
  el._modelValue = value;
4362
- if (isArray$2(value)) {
4371
+ if (isArray$1(value)) {
4363
4372
  el.checked = looseIndexOf(value, vnode.props.value) > -1;
4364
4373
  } else if (isSet(value)) {
4365
4374
  el.checked = value.has(vnode.props.value);
@@ -4411,7 +4420,7 @@ const vModelSelect = {
4411
4420
  };
4412
4421
  function setSelected(el, value) {
4413
4422
  const isMultiple = el.multiple;
4414
- if (isMultiple && !isArray$2(value) && !isSet(value)) {
4423
+ if (isMultiple && !isArray$1(value) && !isSet(value)) {
4415
4424
  !!(process.env.NODE_ENV !== "production") && warn$1(
4416
4425
  `<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(value).slice(8, -1)}.`
4417
4426
  );
@@ -4421,7 +4430,7 @@ function setSelected(el, value) {
4421
4430
  const option2 = el.options[i];
4422
4431
  const optionValue = getValue(option2);
4423
4432
  if (isMultiple) {
4424
- if (isArray$2(value)) {
4433
+ if (isArray$1(value)) {
4425
4434
  option2.selected = looseIndexOf(value, optionValue) > -1;
4426
4435
  } else {
4427
4436
  option2.selected = value.has(optionValue);
@@ -4552,7 +4561,7 @@ const kindOfTest = (type) => {
4552
4561
  return (thing) => kindOf(thing) === type;
4553
4562
  };
4554
4563
  const typeOfTest = (type) => (thing) => typeof thing === type;
4555
- const { isArray: isArray$1 } = Array;
4564
+ const { isArray } = Array;
4556
4565
  const isUndefined = typeOfTest("undefined");
4557
4566
  function isBuffer(val) {
4558
4567
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
@@ -4600,7 +4609,7 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
4600
4609
  if (typeof obj !== "object") {
4601
4610
  obj = [obj];
4602
4611
  }
4603
- if (isArray$1(obj)) {
4612
+ if (isArray(obj)) {
4604
4613
  for (i = 0, l = obj.length; i < l; i++) {
4605
4614
  fn.call(null, obj[i], i, obj);
4606
4615
  }
@@ -4642,7 +4651,7 @@ function merge() {
4642
4651
  result[targetKey] = merge(result[targetKey], val);
4643
4652
  } else if (isPlainObject(val)) {
4644
4653
  result[targetKey] = merge({}, val);
4645
- } else if (isArray$1(val)) {
4654
+ } else if (isArray(val)) {
4646
4655
  result[targetKey] = val.slice();
4647
4656
  } else {
4648
4657
  result[targetKey] = val;
@@ -4711,7 +4720,7 @@ const endsWith = (str, searchString, position) => {
4711
4720
  const toArray = (thing) => {
4712
4721
  if (!thing)
4713
4722
  return null;
4714
- if (isArray$1(thing))
4723
+ if (isArray(thing))
4715
4724
  return thing;
4716
4725
  let i = thing.length;
4717
4726
  if (!isNumber(i))
@@ -4793,10 +4802,10 @@ const toObjectSet = (arrayOrString, delimiter) => {
4793
4802
  obj[value] = true;
4794
4803
  });
4795
4804
  };
4796
- isArray$1(arrayOrString) ? define2(arrayOrString) : define2(String(arrayOrString).split(delimiter));
4805
+ isArray(arrayOrString) ? define2(arrayOrString) : define2(String(arrayOrString).split(delimiter));
4797
4806
  return obj;
4798
4807
  };
4799
- const noop$1 = () => {
4808
+ const noop = () => {
4800
4809
  };
4801
4810
  const toFiniteNumber = (value, defaultValue) => {
4802
4811
  value = +value;
@@ -4829,7 +4838,7 @@ const toJSONObject = (obj) => {
4829
4838
  }
4830
4839
  if (!("toJSON" in source)) {
4831
4840
  stack2[i] = source;
4832
- const target = isArray$1(source) ? [] : {};
4841
+ const target = isArray(source) ? [] : {};
4833
4842
  forEach(source, (value, key) => {
4834
4843
  const reducedValue = visit(value, i + 1);
4835
4844
  !isUndefined(reducedValue) && (target[key] = reducedValue);
@@ -4845,7 +4854,7 @@ const toJSONObject = (obj) => {
4845
4854
  const isAsyncFn = kindOfTest("AsyncFunction");
4846
4855
  const isThenable = (thing) => thing && (isObject$1(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
4847
4856
  const utils$1 = {
4848
- isArray: isArray$1,
4857
+ isArray,
4849
4858
  isArrayBuffer,
4850
4859
  isBuffer,
4851
4860
  isFormData,
@@ -4886,7 +4895,7 @@ const utils$1 = {
4886
4895
  freezeMethods,
4887
4896
  toObjectSet,
4888
4897
  toCamelCase,
4889
- noop: noop$1,
4898
+ noop,
4890
4899
  toFiniteNumber,
4891
4900
  findKey,
4892
4901
  global: _global,
@@ -6794,6 +6803,117 @@ const BagelVue = {
6794
6803
  app.provide(bagelInjectionKey, bagel);
6795
6804
  }
6796
6805
  };
6806
+ const ModalSymbol = Symbol("modal");
6807
+ const useModal = () => {
6808
+ const modalApi = inject(ModalSymbol);
6809
+ if (!modalApi)
6810
+ throw new Error("Modal API not provided");
6811
+ return modalApi;
6812
+ };
6813
+ const ModalPlugin = {
6814
+ install: (app) => {
6815
+ const modalStack = ref([]);
6816
+ const showModal = (isForm, options, slots = {}) => {
6817
+ modalStack.value.push({
6818
+ modalOptions: options,
6819
+ isModalForm: isForm,
6820
+ componentSlots: slots
6821
+ });
6822
+ };
6823
+ const hideModal = (index2) => {
6824
+ modalStack.value.splice(index2, 1);
6825
+ };
6826
+ app.provide(ModalSymbol, {
6827
+ modalForm: (options, slots) => showModal(true, options, slots),
6828
+ showModal: (options, slots) => showModal(false, options, slots),
6829
+ hideModal: (index2 = modalStack.value.length - 1) => hideModal(index2)
6830
+ // modalOptions,
6831
+ });
6832
+ const ModalComponent = /* @__PURE__ */ defineComponent({
6833
+ data() {
6834
+ return {
6835
+ modalStack
6836
+ };
6837
+ },
6838
+ render() {
6839
+ return modalStack.value.map((modal, index2) => {
6840
+ const renderComponent = modal.isModalForm ? ModalForm$1 : Modal;
6841
+ return h(
6842
+ renderComponent,
6843
+ {
6844
+ ...modal.modalOptions,
6845
+ "onUpdate:isModalVisible": () => hideModal(index2)
6846
+ },
6847
+ modal.componentSlots
6848
+ );
6849
+ });
6850
+ }
6851
+ });
6852
+ app.component("ModalContainer", ModalComponent);
6853
+ }
6854
+ };
6855
+ function formatString(str, format) {
6856
+ if (format === "titleCase") {
6857
+ return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join(" ");
6858
+ }
6859
+ if (format === "pascal") {
6860
+ return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join("");
6861
+ }
6862
+ if (format === "camel") {
6863
+ return str.split("_").map((word, index2) => index2 === 0 ? word : word[0].toUpperCase() + word.slice(1)).join("");
6864
+ }
6865
+ if (format === "snake") {
6866
+ return str.split("").map((letter) => {
6867
+ if (letter === letter.toUpperCase()) {
6868
+ return `_${letter.toLowerCase()}`;
6869
+ }
6870
+ return letter;
6871
+ }).join("");
6872
+ }
6873
+ return str;
6874
+ }
6875
+ let timeout;
6876
+ const debounce = (fn, delay = 500) => {
6877
+ clearTimeout(timeout);
6878
+ timeout = setTimeout(fn, delay);
6879
+ };
6880
+ const keyToLabel = (key) => key.split("_").map((k) => k.charAt(0).toUpperCase() + k.slice(1)).join(" ");
6881
+ function computeFields(modelValue) {
6882
+ const fields = [];
6883
+ for (const key of Object.keys(modelValue)) {
6884
+ const field = {
6885
+ label: keyToLabel(key),
6886
+ id: key,
6887
+ inputType: "PlainText"
6888
+ };
6889
+ if (typeof modelValue[key] === "string")
6890
+ field.inputType = "PlainText";
6891
+ if (typeof modelValue[key] === "number")
6892
+ field.inputType = "NumberInput";
6893
+ if (modelValue[key] === true || modelValue[key] === false)
6894
+ field.inputType = "CheckInput";
6895
+ if (modelValue[key] instanceof Date || !Number.isNaN(Date.parse(modelValue[key])))
6896
+ field.inputType = "DateInput";
6897
+ fields.push(field);
6898
+ }
6899
+ return fields;
6900
+ }
6901
+ const copyText = async (text2, cb) => {
6902
+ await navigator.clipboard.writeText(text2);
6903
+ if (cb)
6904
+ cb("Copied to clipboard");
6905
+ };
6906
+ const useFormkit = () => {
6907
+ const formkit = inject("FormKitConfig");
6908
+ return formkit;
6909
+ };
6910
+ const initials = (...strArr) => strArr.map((str) => str == null ? void 0 : str.charAt(0)).join("");
6911
+ const parseLocale = (str, $t = (_str) => _str) => {
6912
+ const [_, w] = str.split(/\$t\('?"?|'?"?\)/);
6913
+ if (!w)
6914
+ return str;
6915
+ return $t(w);
6916
+ };
6797
6917
  const _hoisted_1$F = { ref: "el" };
6798
6918
  const _sfc_main$K = /* @__PURE__ */ defineComponent({
6799
6919
  __name: "LangText",
@@ -19028,195 +19148,6 @@ const MaterialIcon = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
19028
19148
  __proto__: null,
19029
19149
  default: _sfc_main$I
19030
19150
  }, Symbol.toStringTag, { value: "Module" }));
19031
- /*!
19032
- * vue-router v4.2.5
19033
- * (c) 2023 Eduardo San Martin Morote
19034
- * @license MIT
19035
- */
19036
- const isBrowser = typeof window !== "undefined";
19037
- const noop = () => {
19038
- };
19039
- const isArray = Array.isArray;
19040
- function isSameRouteRecord(a, b) {
19041
- return (a.aliasOf || a) === (b.aliasOf || b);
19042
- }
19043
- function isSameRouteLocationParams(a, b) {
19044
- if (Object.keys(a).length !== Object.keys(b).length)
19045
- return false;
19046
- for (const key in a) {
19047
- if (!isSameRouteLocationParamsValue(a[key], b[key]))
19048
- return false;
19049
- }
19050
- return true;
19051
- }
19052
- function isSameRouteLocationParamsValue(a, b) {
19053
- return isArray(a) ? isEquivalentArray(a, b) : isArray(b) ? isEquivalentArray(b, a) : a === b;
19054
- }
19055
- function isEquivalentArray(a, b) {
19056
- return isArray(b) ? a.length === b.length && a.every((value, i) => value === b[i]) : a.length === 1 && a[0] === b;
19057
- }
19058
- var NavigationType;
19059
- (function(NavigationType2) {
19060
- NavigationType2["pop"] = "pop";
19061
- NavigationType2["push"] = "push";
19062
- })(NavigationType || (NavigationType = {}));
19063
- var NavigationDirection;
19064
- (function(NavigationDirection2) {
19065
- NavigationDirection2["back"] = "back";
19066
- NavigationDirection2["forward"] = "forward";
19067
- NavigationDirection2["unknown"] = "";
19068
- })(NavigationDirection || (NavigationDirection = {}));
19069
- Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
19070
- var NavigationFailureType;
19071
- (function(NavigationFailureType2) {
19072
- NavigationFailureType2[NavigationFailureType2["aborted"] = 4] = "aborted";
19073
- NavigationFailureType2[NavigationFailureType2["cancelled"] = 8] = "cancelled";
19074
- NavigationFailureType2[NavigationFailureType2["duplicated"] = 16] = "duplicated";
19075
- })(NavigationFailureType || (NavigationFailureType = {}));
19076
- Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
19077
- Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
19078
- const routerKey = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
19079
- const routeLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
19080
- Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
19081
- function useLink(props2) {
19082
- const router = inject(routerKey);
19083
- const currentRoute = inject(routeLocationKey);
19084
- const route = computed(() => router.resolve(unref(props2.to)));
19085
- const activeRecordIndex = computed(() => {
19086
- const { matched } = route.value;
19087
- const { length } = matched;
19088
- const routeMatched = matched[length - 1];
19089
- const currentMatched = currentRoute.matched;
19090
- if (!routeMatched || !currentMatched.length)
19091
- return -1;
19092
- const index2 = currentMatched.findIndex(isSameRouteRecord.bind(null, routeMatched));
19093
- if (index2 > -1)
19094
- return index2;
19095
- const parentRecordPath = getOriginalPath(matched[length - 2]);
19096
- return (
19097
- // we are dealing with nested routes
19098
- length > 1 && // if the parent and matched route have the same path, this link is
19099
- // referring to the empty child. Or we currently are on a different
19100
- // child of the same parent
19101
- getOriginalPath(routeMatched) === parentRecordPath && // avoid comparing the child with its parent
19102
- currentMatched[currentMatched.length - 1].path !== parentRecordPath ? currentMatched.findIndex(isSameRouteRecord.bind(null, matched[length - 2])) : index2
19103
- );
19104
- });
19105
- const isActive = computed(() => activeRecordIndex.value > -1 && includesParams(currentRoute.params, route.value.params));
19106
- const isExactActive = computed(() => activeRecordIndex.value > -1 && activeRecordIndex.value === currentRoute.matched.length - 1 && isSameRouteLocationParams(currentRoute.params, route.value.params));
19107
- function navigate(e = {}) {
19108
- if (guardEvent(e)) {
19109
- return router[unref(props2.replace) ? "replace" : "push"](
19110
- unref(props2.to)
19111
- // avoid uncaught errors are they are logged anyway
19112
- ).catch(noop);
19113
- }
19114
- return Promise.resolve();
19115
- }
19116
- if ((process.env.NODE_ENV !== "production" || false) && isBrowser) {
19117
- const instance = getCurrentInstance();
19118
- if (instance) {
19119
- const linkContextDevtools = {
19120
- route: route.value,
19121
- isActive: isActive.value,
19122
- isExactActive: isExactActive.value
19123
- };
19124
- instance.__vrl_devtools = instance.__vrl_devtools || [];
19125
- instance.__vrl_devtools.push(linkContextDevtools);
19126
- watchEffect(() => {
19127
- linkContextDevtools.route = route.value;
19128
- linkContextDevtools.isActive = isActive.value;
19129
- linkContextDevtools.isExactActive = isExactActive.value;
19130
- }, { flush: "post" });
19131
- }
19132
- }
19133
- return {
19134
- route,
19135
- href: computed(() => route.value.href),
19136
- isActive,
19137
- isExactActive,
19138
- navigate
19139
- };
19140
- }
19141
- const RouterLinkImpl = /* @__PURE__ */ defineComponent({
19142
- name: "RouterLink",
19143
- compatConfig: { MODE: 3 },
19144
- props: {
19145
- to: {
19146
- type: [String, Object],
19147
- required: true
19148
- },
19149
- replace: Boolean,
19150
- activeClass: String,
19151
- // inactiveClass: String,
19152
- exactActiveClass: String,
19153
- custom: Boolean,
19154
- ariaCurrentValue: {
19155
- type: String,
19156
- default: "page"
19157
- }
19158
- },
19159
- useLink,
19160
- setup(props2, { slots }) {
19161
- const link = reactive(useLink(props2));
19162
- const { options } = inject(routerKey);
19163
- const elClass = computed(() => ({
19164
- [getLinkClass(props2.activeClass, options.linkActiveClass, "router-link-active")]: link.isActive,
19165
- // [getLinkClass(
19166
- // props.inactiveClass,
19167
- // options.linkInactiveClass,
19168
- // 'router-link-inactive'
19169
- // )]: !link.isExactActive,
19170
- [getLinkClass(props2.exactActiveClass, options.linkExactActiveClass, "router-link-exact-active")]: link.isExactActive
19171
- }));
19172
- return () => {
19173
- const children = slots.default && slots.default(link);
19174
- return props2.custom ? children : h("a", {
19175
- "aria-current": link.isExactActive ? props2.ariaCurrentValue : null,
19176
- href: link.href,
19177
- // this would override user added attrs but Vue will still add
19178
- // the listener, so we end up triggering both
19179
- onClick: link.navigate,
19180
- class: elClass.value
19181
- }, children);
19182
- };
19183
- }
19184
- });
19185
- const RouterLink = RouterLinkImpl;
19186
- function guardEvent(e) {
19187
- if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey)
19188
- return;
19189
- if (e.defaultPrevented)
19190
- return;
19191
- if (e.button !== void 0 && e.button !== 0)
19192
- return;
19193
- if (e.currentTarget && e.currentTarget.getAttribute) {
19194
- const target = e.currentTarget.getAttribute("target");
19195
- if (/\b_blank\b/i.test(target))
19196
- return;
19197
- }
19198
- if (e.preventDefault)
19199
- e.preventDefault();
19200
- return true;
19201
- }
19202
- function includesParams(outer2, inner2) {
19203
- for (const key in inner2) {
19204
- const innerValue = inner2[key];
19205
- const outerValue = outer2[key];
19206
- if (typeof innerValue === "string") {
19207
- if (innerValue !== outerValue)
19208
- return false;
19209
- } else {
19210
- if (!isArray(outerValue) || outerValue.length !== innerValue.length || innerValue.some((value, i) => value !== outerValue[i]))
19211
- return false;
19212
- }
19213
- }
19214
- return true;
19215
- }
19216
- function getOriginalPath(record) {
19217
- return record ? record.aliasOf ? record.aliasOf.path : record.path : "";
19218
- }
19219
- const getLinkClass = (propClass, globalClass, defaultClass) => propClass != null ? propClass : globalClass != null ? globalClass : defaultClass;
19220
19151
  const _hoisted_1$D = /* @__PURE__ */ createBaseVNode("div", { class: "icon-font top-arrow" }, " chevron_right ", -1);
19221
19152
  const _hoisted_2$z = [
19222
19153
  _hoisted_1$D
@@ -19238,6 +19169,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19238
19169
  setup(__props) {
19239
19170
  const isOpen = ref(true);
19240
19171
  return (_ctx, _cache) => {
19172
+ const _component_RouterLink = resolveComponent("RouterLink");
19241
19173
  return openBlock(), createElementBlock("div", {
19242
19174
  class: normalizeClass({ open: isOpen.value, closed: !isOpen.value })
19243
19175
  }, [
@@ -19254,7 +19186,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19254
19186
  createBaseVNode("div", _hoisted_4$i, [
19255
19187
  createBaseVNode("div", _hoisted_5$e, [
19256
19188
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
19257
- return openBlock(), createBlock(unref(RouterLink), {
19189
+ return openBlock(), createBlock(_component_RouterLink, {
19258
19190
  class: "nav-button",
19259
19191
  to: link.to,
19260
19192
  key: link.label
@@ -19351,7 +19283,7 @@ const _export_sfc = (sfc, props2) => {
19351
19283
  }
19352
19284
  return target;
19353
19285
  };
19354
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-aec5db19"]]);
19286
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-b94d75fb"]]);
19355
19287
  const Btn$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19356
19288
  __proto__: null,
19357
19289
  default: Btn
@@ -19414,10 +19346,6 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
19414
19346
  };
19415
19347
  }
19416
19348
  });
19417
- const Modal = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19418
- __proto__: null,
19419
- default: _sfc_main$F
19420
- }, Symbol.toStringTag, { value: "Module" }));
19421
19349
  const _withScopeId$2 = (n) => (pushScopeId("data-v-f7af54ed"), n = n(), popScopeId(), n);
19422
19350
  const _hoisted_1$A = { class: "bar-chart" };
19423
19351
  const _hoisted_2$w = {
@@ -19588,68 +19516,6 @@ const DropDown = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
19588
19516
  __proto__: null,
19589
19517
  default: _sfc_main$D
19590
19518
  }, Symbol.toStringTag, { value: "Module" }));
19591
- function formatString(str, format) {
19592
- if (format === "titleCase") {
19593
- return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join(" ");
19594
- }
19595
- if (format === "pascal") {
19596
- return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join("");
19597
- }
19598
- if (format === "camel") {
19599
- return str.split("_").map((word, index2) => index2 === 0 ? word : word[0].toUpperCase() + word.slice(1)).join("");
19600
- }
19601
- if (format === "snake") {
19602
- return str.split("").map((letter) => {
19603
- if (letter === letter.toUpperCase()) {
19604
- return `_${letter.toLowerCase()}`;
19605
- }
19606
- return letter;
19607
- }).join("");
19608
- }
19609
- return str;
19610
- }
19611
- let timeout;
19612
- const debounce = (fn, delay = 500) => {
19613
- clearTimeout(timeout);
19614
- timeout = setTimeout(fn, delay);
19615
- };
19616
- const keyToLabel = (key) => key.split("_").map((k) => k.charAt(0).toUpperCase() + k.slice(1)).join(" ");
19617
- function computeFields(modelValue) {
19618
- const fields = [];
19619
- for (const key of Object.keys(modelValue)) {
19620
- const field = {
19621
- label: keyToLabel(key),
19622
- id: key,
19623
- inputType: "PlainText"
19624
- };
19625
- if (typeof modelValue[key] === "string")
19626
- field.inputType = "PlainText";
19627
- if (typeof modelValue[key] === "number")
19628
- field.inputType = "NumberInput";
19629
- if (modelValue[key] === true || modelValue[key] === false)
19630
- field.inputType = "CheckInput";
19631
- if (modelValue[key] instanceof Date || !Number.isNaN(Date.parse(modelValue[key])))
19632
- field.inputType = "DateInput";
19633
- fields.push(field);
19634
- }
19635
- return fields;
19636
- }
19637
- const copyText = async (text2, cb) => {
19638
- await navigator.clipboard.writeText(text2);
19639
- if (cb)
19640
- cb("Copied to clipboard");
19641
- };
19642
- const useFormkit = () => {
19643
- const formkit = inject("FormKitConfig");
19644
- return formkit;
19645
- };
19646
- const initials = (...strArr) => strArr.map((str) => str == null ? void 0 : str.charAt(0)).join("");
19647
- const parseLocale = (str, $t = (_str) => _str) => {
19648
- const [_, w] = str.split(/\$t\('?"?|'?"?\)/);
19649
- if (!w)
19650
- return str;
19651
- return $t(w);
19652
- };
19653
19519
  const _hoisted_1$y = { class: "card list-view grid thin" };
19654
19520
  const _hoisted_2$u = { class: "list-header flex gap-3 align-items-top" };
19655
19521
  const _hoisted_3$r = {
@@ -19924,7 +19790,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19924
19790
  };
19925
19791
  }
19926
19792
  });
19927
- const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-7736e5b9"]]);
19793
+ const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-10f58b91"]]);
19928
19794
  const Comments$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19929
19795
  __proto__: null,
19930
19796
  default: Comments
@@ -20041,11 +19907,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
20041
19907
  };
20042
19908
  }
20043
19909
  });
20044
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-58e23976"]]);
20045
- const ModalForm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20046
- __proto__: null,
20047
- default: ModalForm
20048
- }, Symbol.toStringTag, { value: "Module" }));
19910
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-d04a51e8"]]);
20049
19911
  const _hoisted_1$s = ["title"];
20050
19912
  const _hoisted_2$o = ["for"];
20051
19913
  const _hoisted_3$n = ["id", "placeholder", "required", "pattern"];
@@ -20168,7 +20030,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
20168
20030
  };
20169
20031
  }
20170
20032
  });
20171
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-db194f6c"]]);
20033
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-f006fc35"]]);
20172
20034
  const DataPreview$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20173
20035
  __proto__: null,
20174
20036
  default: DataPreview
@@ -20366,7 +20228,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
20366
20228
  };
20367
20229
  }
20368
20230
  });
20369
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-cb4dabf7"]]);
20231
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-5c5ba615"]]);
20370
20232
  const TableSchema$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20371
20233
  __proto__: null,
20372
20234
  default: TableSchema
@@ -20454,55 +20316,6 @@ const ContactSubmissions = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
20454
20316
  __proto__: null,
20455
20317
  default: _sfc_main$q
20456
20318
  }, Symbol.toStringTag, { value: "Module" }));
20457
- const ModalSymbol = Symbol("modal");
20458
- const useModal = () => {
20459
- const modalApi = inject(ModalSymbol);
20460
- if (!modalApi)
20461
- throw new Error("Modal API not provided");
20462
- return modalApi;
20463
- };
20464
- const ModalPlugin = {
20465
- install: (app) => {
20466
- const modalStack = ref([]);
20467
- const showModal = (isForm, options, slots = {}) => {
20468
- modalStack.value.push({
20469
- modalOptions: options,
20470
- isModalForm: isForm,
20471
- componentSlots: slots
20472
- });
20473
- };
20474
- const hideModal = (index2) => {
20475
- modalStack.value.splice(index2, 1);
20476
- };
20477
- app.provide(ModalSymbol, {
20478
- modalForm: (options, slots) => showModal(true, options, slots),
20479
- showModal: (options, slots) => showModal(false, options, slots),
20480
- hideModal: (index2 = modalStack.value.length - 1) => hideModal(index2)
20481
- // modalOptions,
20482
- });
20483
- const ModalComponent = /* @__PURE__ */ defineComponent({
20484
- data() {
20485
- return {
20486
- modalStack
20487
- };
20488
- },
20489
- render() {
20490
- return modalStack.value.map((modal, index2) => {
20491
- const renderComponent = modal.isModalForm ? ModalForm$1 : Modal;
20492
- return h(
20493
- renderComponent,
20494
- {
20495
- ...modal.modalOptions,
20496
- "onUpdate:isModalVisible": () => hideModal(index2)
20497
- },
20498
- modal.componentSlots
20499
- );
20500
- });
20501
- }
20502
- });
20503
- app.component("ModalContainer", ModalComponent);
20504
- }
20505
- };
20506
20319
  const explicitKeys = [
20507
20320
  "__key",
20508
20321
  "__init",
@@ -21797,7 +21610,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
21797
21610
  };
21798
21611
  }
21799
21612
  });
21800
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-19e44daf"]]);
21613
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-5f3ff6ea"]]);
21801
21614
  const _hoisted_1$m = { class: "bagel-input" };
21802
21615
  const _hoisted_2$l = { class: "mt-1" };
21803
21616
  const _hoisted_3$k = {
@@ -21943,7 +21756,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
21943
21756
  };
21944
21757
  }
21945
21758
  });
21946
- const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-c078d5ac"]]);
21759
+ const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-438c5b36"]]);
21947
21760
  const _hoisted_1$l = { class: "bagel-input" };
21948
21761
  const _hoisted_2$k = { class: "mt-1" };
21949
21762
  const _hoisted_3$j = {
@@ -22116,7 +21929,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
22116
21929
  };
22117
21930
  }
22118
21931
  });
22119
- const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-f3464e6e"]]);
21932
+ const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-0ec6633e"]]);
22120
21933
  const _hoisted_1$k = { class: "bagel-input" };
22121
21934
  const _hoisted_2$j = { class: "mt-1" };
22122
21935
  const _hoisted_3$i = {
@@ -22322,7 +22135,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
22322
22135
  };
22323
22136
  }
22324
22137
  });
22325
- const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-962f5ddb"]]);
22138
+ const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-277091e1"]]);
22326
22139
  const _hoisted_1$j = { class: "misc-wrap" };
22327
22140
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
22328
22141
  __name: "MiscFields",
@@ -22369,7 +22182,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
22369
22182
  };
22370
22183
  }
22371
22184
  });
22372
- const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-6f2d6ed0"]]);
22185
+ const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-bac6c2ee"]]);
22373
22186
  const _withScopeId$1 = (n) => (pushScopeId("data-v-d12598ff"), n = n(), popScopeId(), n);
22374
22187
  const _hoisted_1$i = ["title"];
22375
22188
  const _hoisted_2$i = { class: "switch" };
@@ -22832,7 +22645,7 @@ const ToggleSwitch = createInput(Toggle);
22832
22645
  const FileUpload = createInput(_sfc_main$j);
22833
22646
  const TextVariables = createInput(_sfc_main$h);
22834
22647
  const PersonPreview = createInput(_sfc_main$i);
22835
- const _withScopeId = (n) => (pushScopeId("data-v-590e33ed"), n = n(), popScopeId(), n);
22648
+ const _withScopeId = (n) => (pushScopeId("data-v-69f0d857"), n = n(), popScopeId(), n);
22836
22649
  const _hoisted_1$f = ["title"];
22837
22650
  const _hoisted_2$f = ["for"];
22838
22651
  const _hoisted_3$e = { class: "switch" };
@@ -22887,7 +22700,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
22887
22700
  };
22888
22701
  }
22889
22702
  });
22890
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-590e33ed"]]);
22703
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-69f0d857"]]);
22891
22704
  const CheckInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22892
22705
  __proto__: null,
22893
22706
  default: CheckInput
@@ -23013,7 +22826,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
23013
22826
  };
23014
22827
  }
23015
22828
  });
23016
- const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-fb02d200"]]);
22829
+ const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-17a56a3f"]]);
23017
22830
  const CurrencyInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23018
22831
  __proto__: null,
23019
22832
  default: CurrencyInput
@@ -23059,7 +22872,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
23059
22872
  };
23060
22873
  }
23061
22874
  });
23062
- const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-e7f1b3f2"]]);
22875
+ const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-782aee7f"]]);
23063
22876
  const DateInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23064
22877
  __proto__: null,
23065
22878
  default: DateInput
@@ -23326,9 +23139,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
23326
23139
  emits: ["update:modelValue", "selected"],
23327
23140
  setup(__props, { emit: __emit }) {
23328
23141
  useCssVars((_ctx) => ({
23329
- "389c1e7f": left.value,
23330
- "858a201e": `${top.value}px`,
23331
- "48f70364": width.value
23142
+ "db4af1b6": left.value,
23143
+ "25d5c417": `${top.value}px`,
23144
+ "8cd9ab30": width.value
23332
23145
  }));
23333
23146
  const props2 = __props;
23334
23147
  const showList = ref(false);
@@ -23480,7 +23293,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
23480
23293
  };
23481
23294
  }
23482
23295
  });
23483
- const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-9ea2d30f"]]);
23296
+ const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-947beb38"]]);
23484
23297
  const LinkField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23485
23298
  __proto__: null,
23486
23299
  default: LinkField
@@ -23603,7 +23416,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23603
23416
  };
23604
23417
  }
23605
23418
  });
23606
- const Password = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-ba45b5bf"]]);
23419
+ const Password = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-800f4000"]]);
23607
23420
  const Password$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23608
23421
  __proto__: null,
23609
23422
  default: Password
@@ -23629,7 +23442,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23629
23442
  };
23630
23443
  }
23631
23444
  });
23632
- const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-1f87e7f9"]]);
23445
+ const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-b3b5a368"]]);
23633
23446
  const ReadOnlyInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23634
23447
  __proto__: null,
23635
23448
  default: ReadOnlyInput
@@ -23668,9 +23481,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23668
23481
  emits: ["update:modelValue", "selected"],
23669
23482
  setup(__props, { emit: __emit }) {
23670
23483
  useCssVars((_ctx) => ({
23671
- "1a04bb0f": left.value,
23672
- "03803efe": `${top.value}px`,
23673
- "272f73be": width.value
23484
+ "1c3856b2": left.value,
23485
+ "62aaf5e4": `${top.value}px`,
23486
+ "6b6f4c7b": width.value
23674
23487
  }));
23675
23488
  const selectEl = ref();
23676
23489
  const dropdown = ref();
@@ -23806,7 +23619,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23806
23619
  };
23807
23620
  }
23808
23621
  });
23809
- const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-6e9ccd80"]]);
23622
+ const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-028ea61b"]]);
23810
23623
  const SelectField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23811
23624
  __proto__: null,
23812
23625
  default: SelectField
@@ -26542,7 +26355,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26542
26355
  };
26543
26356
  }
26544
26357
  });
26545
- const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-570a76ab"]]);
26358
+ const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b01223bc"]]);
26546
26359
  const TableField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26547
26360
  __proto__: null,
26548
26361
  default: TableField