@feedmepos/mf-connect 0.1.8-prod → 0.1.9-prod

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 (70) hide show
  1. package/dist/{Analytic-C5DiiAlc.js → Analytic-8Ew7y5t9.js} +11 -10
  2. package/dist/{App-B3pHa-zu.js → App-3BVNH3r-.js} +6 -6
  3. package/dist/{Broadcast-BbKiYeZC.js → Broadcast-CrsPUhLT.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CusmGpDT.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DE300Y56.js} +7 -8
  5. package/dist/Card-DndggRLr.js +1036 -0
  6. package/dist/{Collections-DvZEXknp.js → Collections-djS9hLI8.js} +4 -4
  7. package/dist/{Credit-CqjSUWeG.js → Credit-D4KEvIov.js} +8 -8
  8. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bzd-9d8d.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BjM81fmS.js} +25 -24
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-C73wNCE4.js → EffectSheet.vue_vue_type_style_index_0_lang-aEWfdpCg.js} +7 -7
  11. package/dist/{Experience-BmCrc4-K.js → Experience-2FPLO7aV.js} +8 -8
  12. package/dist/{Game-CU4AHASb.js → Game-e_UjVJgU.js} +8 -8
  13. package/dist/{Marketing-PJO3M5Xy.js → Marketing-B2hCjZ2r.js} +5 -5
  14. package/dist/{Member-DChbb26Z.js → Member-D_ykRIBb.js} +4 -4
  15. package/dist/{MemberList-Ckvxgme7.js → MemberList-LmzzYxEn.js} +17 -18
  16. package/dist/{MemberTransactions-KNlKr1DE.js → MemberTransactions-B2vqlKaP.js} +1 -1
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CDX1qdOw.js → MessageInput.vue_vue_type_script_setup_true_lang-DQ2ubF0N.js} +2 -2
  18. package/dist/{Mission-B215NI_F.js → Mission-CsLdMq1M.js} +8 -8
  19. package/dist/{Point-B-Ot-ZXU.js → Point-DFriwWWY.js} +8 -8
  20. package/dist/{Promotion-CKEfuwo0.js → Promotion-Db3IEs2F.js} +9 -9
  21. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-C03bKqvg.js → RuleGroup.vue_vue_type_script_setup_true_lang-_P2yImhi.js} +15 -15
  22. package/dist/{Segment-B8JKn5_y.js → Segment-CE8q9JV2.js} +22 -21
  23. package/dist/{Setting-BcWDJ-63.js → Setting-Vcz1S27V.js} +8 -8
  24. package/dist/{Store-ada-EZLR.js → Store-C8kT7JN5.js} +16 -15
  25. package/dist/{StoreRewards-DyfFecSH.js → StoreRewards-Dt30AkWo.js} +15 -14
  26. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cc2F_06x.js +1065 -0
  27. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CHrZ7pit.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-f59onlgt.js} +1 -1
  28. package/dist/{Tier-iKOv9e2Y.js → Tier-a6yXEtLd.js} +185 -185
  29. package/dist/{Title-BRWnLlHd.js → Title-A3-2EI0w.js} +20 -20
  30. package/dist/{Transaction-BMnxATxc.js → Transaction-DswABr2P.js} +2 -2
  31. package/dist/{Voucher-B_IwtXLW.js → Voucher-DEoVgZYa.js} +11 -11
  32. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-ccc1vxjS.js +56 -0
  33. package/dist/{app-Bs8TZeMP.js → app-C23GfQGq.js} +1 -1
  34. package/dist/{app-CLPpu6jA.js → app-C66C2KLW.js} +30 -27
  35. package/dist/app.js +1 -1
  36. package/dist/{business-Dg5T3krT.js → business-DNAVZOSH.js} +1 -1
  37. package/dist/{campaign-BMLeXfnZ.js → campaign-Cv0HaUD1.js} +2 -2
  38. package/dist/{collection.fn-D4QJRMAS.js → collection.fn-Dxzr2oPt.js} +2 -2
  39. package/dist/{dto-CQy53qRe.js → dto-CcrufW2j.js} +9 -9
  40. package/dist/{effect-BT6zDeUe.js → effect-CUuL8Tci.js} +1 -1
  41. package/dist/{email-addresses-DeUE8GFC.js → email-addresses-Yt3s7i2b.js} +1 -1
  42. package/dist/{export-DWzBynN8.js → export-CNg5YWMm.js} +3 -3
  43. package/dist/{helper-Cs4YpYv9.js → helper-DzmKNFue.js} +1 -1
  44. package/dist/{index-xCMvgFRa.js → index-9CXt2kbQ.js} +983 -783
  45. package/dist/{index-B3GqF_vh.js → index-B88e_9YI.js} +1 -1
  46. package/dist/{index-n-_5f43h.js → index-BK8X9RF6.js} +3 -3
  47. package/dist/{index-QAuJWbpX.js → index-C7745kXl.js} +20 -21
  48. package/dist/{index-CvJ_6M8U.js → index-CZ28ywyB.js} +2 -2
  49. package/dist/{index-CiwzD983.js → index-CsCgQ8gt.js} +1 -1
  50. package/dist/{index-CjF0scjl.js → index-D0obMrAS.js} +63 -168
  51. package/dist/{index-aFNPEkUz.js → index-Dnf7j71V.js} +9 -3
  52. package/dist/{index-BUXB-qmB.js → index-O9lB54LY.js} +5 -5
  53. package/dist/{index-DfhJOhMY.js → index-QuBsnXgx.js} +1 -1
  54. package/dist/{index-BXs-tqST.js → index-yzH5eyKW.js} +1 -1
  55. package/dist/{index.esm2017-cme_1dHU.js → index.esm2017-TpBElhnN.js} +1 -1
  56. package/dist/{loading-zw44FQ6v.js → loading-ChoC5E9d.js} +4 -4
  57. package/dist/{membership-Bg77E5Sx.js → membership-CU-k0-Tf.js} +3 -3
  58. package/dist/{money-BepQPzrc.js → money-DANmyTBj.js} +1 -1
  59. package/dist/{number-BJ4XIfGj.js → number-DrocTWDD.js} +1 -1
  60. package/dist/{rule-oDZ1Kic9.js → rule-BQLmpER9.js} +3 -3
  61. package/dist/{rule-builder-C1Jwhs7N.js → rule-builder-3YRdr18A.js} +1 -1
  62. package/dist/{template-CSeRj8B2.js → template-DOKU1QkY.js} +4 -4
  63. package/dist/{usePagination-DUaGlE2s.js → usePagination-JGI7x0W7.js} +1 -1
  64. package/dist/{vue-i18n-4eZqYBzI.js → vue-i18n-Bch1JmhI.js} +158 -158
  65. package/dist/zod-Bg2FbC-D.js +90 -0
  66. package/package.json +1 -1
  67. package/dist/Card--Q4OMSRz.js +0 -824
  68. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Ra4nMKvT.js +0 -890
  69. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-vsgeD3mK.js +0 -141
  70. package/dist/index-sGtk4oiO.js +0 -207
@@ -0,0 +1,90 @@
1
+ import { h as u } from "vue";
2
+ function a(e, o) {
3
+ return e.path.join(".") === o;
4
+ }
5
+ function Z(e, o) {
6
+ return e.some((t) => o == "" || a(t, o)) ? "error" : "none";
7
+ }
8
+ function p(e, o) {
9
+ return e.filter((t) => o == "" || a(t, o)).map((t) => t.message).join(",") || void 0;
10
+ }
11
+ const r = {
12
+ ZodIntersection: (e) => e._def.typeName == "ZodIntersection",
13
+ ZodNullable: (e) => e._def.typeName == "ZodNullable",
14
+ ZodOptional: (e) => e._def.typeName == "ZodOptional",
15
+ ZodEffects: (e) => e._def.typeName == "ZodEffects",
16
+ ZodDiscriminatedUnion: (e) => e._def.typeName == "ZodDiscriminatedUnion",
17
+ ZodUnion: (e) => e._def.typeName == "ZodUnion",
18
+ ZodLazy: (e) => e._def.typeName == "ZodLazy",
19
+ ZodRecord: (e) => e._def.typeName == "ZodRecord",
20
+ ZodObject: (e) => e._def.typeName == "ZodObject"
21
+ };
22
+ function s(e) {
23
+ return !(r.ZodNullable(e) || r.ZodOptional(e));
24
+ }
25
+ function f(e, o = []) {
26
+ function t(d) {
27
+ const n = [d._def.left, d._def.right];
28
+ return r.ZodObject(n[0]) && r.ZodObject(n[1]) ? Object.keys(n[0].shape).length > Object.keys(n[1].shape).length ? n[0] : n[1] : n.find((i) => r.ZodDiscriminatedUnion(i)) || n.find((i) => r.ZodObject(i)) || n[1];
29
+ }
30
+ if ((r.ZodNullable(e) || r.ZodOptional(e)) && (e = f(e.unwrap(), o)), r.ZodEffects(e) && (e = f(e.sourceType(), o)), r.ZodDiscriminatedUnion(e)) {
31
+ const d = Object.fromEntries(e.optionsMap.entries());
32
+ if (o.length) {
33
+ const n = o.shift(), i = d[n];
34
+ return f(i, o);
35
+ }
36
+ return console.log(
37
+ "discriminatedUnion found but no KEY supplied, keys:",
38
+ Object.keys(d)
39
+ ), e;
40
+ }
41
+ return r.ZodLazy(e) && (e = f(e._def.getter(), o)), r.ZodIntersection(e) && (e = f(t(e), o)), e;
42
+ }
43
+ function c(e, o, t = []) {
44
+ return o === "" ? f(e, t) : o.split(".").reduce((d, n) => {
45
+ const i = f(d, t);
46
+ return r.ZodObject(i) ? i.shape[n] : d;
47
+ }, e);
48
+ }
49
+ function l(e, o) {
50
+ return (t) => {
51
+ const d = e.safeParse(t);
52
+ return d.success ? !0 : (console.log(d.error.errors), d.error.errors.filter((n) => !o || n.path.join(".") === o).map((n) => n.message).join(", "));
53
+ };
54
+ }
55
+ function b(e, o, t = []) {
56
+ return l(c(e, o, t));
57
+ }
58
+ function g(e, o) {
59
+ if (!o) return;
60
+ const t = s(e) ? "hidden" : "";
61
+ return u(
62
+ "div",
63
+ { class: "flex items-center gap-x-4 fm-typo-en-body-lg-400" },
64
+ [
65
+ u("div", o),
66
+ u(
67
+ "div",
68
+ {
69
+ class: `text-fm-color-typo-secondary ${t}`
70
+ },
71
+ "(optional)"
72
+ )
73
+ ]
74
+ );
75
+ }
76
+ const h = {
77
+ helperState: Z,
78
+ helperText: p,
79
+ typeAtPath: c,
80
+ toRule: l,
81
+ ruleAtPath: b,
82
+ isRequired: s,
83
+ toInputLabel: g,
84
+ unwrap: f
85
+ };
86
+ export {
87
+ h as Z,
88
+ p as a,
89
+ Z as g
90
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-connect",
3
- "version": "0.1.8-prod",
3
+ "version": "0.1.9-prod",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"