@feedmepos/mf-connect 0.0.16-beta.10 → 0.0.16-beta.11

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 (86) hide show
  1. package/dist/{Analytic-BVk0jPDU.js → Analytic-Gq7PoNer.js} +32 -20
  2. package/dist/{App-BbAalq1k.js → App-Cikl5jnp.js} +33 -27
  3. package/dist/Broadcast-DU3JnBwZ.js +223 -0
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DiU3MnH0.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D0I8IZIR.js} +18 -11
  5. package/dist/Card-hIeQ5XUH.js +825 -0
  6. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +97 -0
  7. package/dist/Collections-B1SC1rr7.js +453 -0
  8. package/dist/{Credit-Bc9EzdsC.js → Credit-BgwI8DR3.js} +78 -69
  9. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D9VR3P2d.js +2788 -0
  10. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-DPgu45MD.js +344 -0
  11. package/dist/{Experience-CgKak5ik.js → Experience-C2Q-zqV6.js} +64 -55
  12. package/dist/{Game-QhfKqrN_.js → Game-DU2pZDGk.js} +54 -45
  13. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
  14. package/dist/JsonViewer-v8_C7l5N.js +87 -0
  15. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +18737 -0
  16. package/dist/MainLayout-B1aJoR95.js +41 -0
  17. package/dist/{Marketing-CSx4N7UJ.js → Marketing-DWiTQp9I.js} +79 -72
  18. package/dist/{Member-CY6WMD8D.js → Member-BEXKBFry.js} +25 -22
  19. package/dist/{MemberList-8iRwm7Sz.js → MemberList-DzMdajIf.js} +321 -307
  20. package/dist/{MemberTransactions-CknqkWO3.js → MemberTransactions-Bciankuu.js} +1 -1
  21. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-DH25Hfk3.js +432 -0
  22. package/dist/{Mission-BTy1p7lU.js → Mission-KzwRlaA5.js} +50 -40
  23. package/dist/{Point-A6B_ggSy.js → Point-CSKvZXHc.js} +67 -58
  24. package/dist/Promotion-IiwPhx8p.js +221 -0
  25. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-4zIO3oCr.js +1751 -0
  26. package/dist/{Segment-CFVXtyEj.js → Segment-2Q0PonBb.js} +145 -130
  27. package/dist/{Setting-Jmtw-_DV.js → Setting-Df5vVRt4.js} +167 -154
  28. package/dist/{Store-DQypT-7e.js → Store-C0WXCKs6.js} +504 -489
  29. package/dist/{StoreRewards-M-utm0iI.js → StoreRewards-eSSIO0nk.js} +124 -108
  30. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-B60mQ5kq.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BjnCRKGX.js} +131 -123
  31. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-b0xTcoEp.js +139 -0
  32. package/dist/{Tier-D1jymeLK.js → Tier-v-1FkRU-.js} +144 -125
  33. package/dist/{Title-DN9DIP2k.js → Title-CQ2JWqBW.js} +107 -90
  34. package/dist/{Transaction-BAJvAoU6.js → Transaction-0OouN_6s.js} +2 -2
  35. package/dist/Voucher-CL0cgogx.js +488 -0
  36. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js +55 -0
  37. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  38. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  39. package/dist/app-Bd19eW7X.js +5381 -0
  40. package/dist/app-CfS25Z66.js +34797 -0
  41. package/dist/app-wDQR6dpb.js +39 -0
  42. package/dist/app.js +2 -1
  43. package/dist/business-dQh3AEot.js +78 -0
  44. package/dist/campaign-BOl8AgKA.js +96 -0
  45. package/dist/campaign-CpzFl8Vr.js +4 -0
  46. package/dist/collection.fn-B_YsXmrP.js +26 -0
  47. package/dist/dto-B8NfyVPG.js +1169 -0
  48. package/dist/effect-C2jCStXO.js +61 -0
  49. package/dist/{export-DjeNY5Pc.js → export-BtZc3Yzh.js} +19 -16
  50. package/dist/helper-8oGsrM56.js +71 -0
  51. package/dist/index-6FkKY3q0.js +73 -0
  52. package/dist/index-C7oeXRUl.js +95 -0
  53. package/dist/index-CZKYIefW.js +203 -0
  54. package/dist/index-C_0IFnwi.js +2071 -0
  55. package/dist/index-CuvNtC_M.js +61 -0
  56. package/dist/index-DCixRRvz.js +761 -0
  57. package/dist/index-DFgt4-VW.js +38 -0
  58. package/dist/index-DYDhH9bi.js +8832 -0
  59. package/dist/index-Dbd4WA4r.js +61 -0
  60. package/dist/index-Di-kWSmf.js +1737 -0
  61. package/dist/index-Dn0jdj0o.js +28058 -0
  62. package/dist/index-DwKqFNF6.js +3 -0
  63. package/dist/index-HoacsZDk.js +291 -0
  64. package/dist/index-UTQHDUdW.js +94 -0
  65. package/dist/loading-D_AN6p24.js +32697 -0
  66. package/dist/lodash-B5I3zXaY.js +3678 -0
  67. package/dist/membership-Ccrx9R6r.js +221 -0
  68. package/dist/moment-BWErdI6_.js +2578 -0
  69. package/dist/money-waD-f-Zz.js +15 -0
  70. package/dist/number-CwTGGsh9.js +12 -0
  71. package/dist/object-qECH92oz.js +26 -0
  72. package/dist/objectId-dwaoBfJX.js +7 -0
  73. package/dist/rule-DJ07h3Gh.js +1973 -0
  74. package/dist/rule-builder-DJ-acvVD.js +89 -0
  75. package/dist/template-clxvNnbF.js +190 -0
  76. package/dist/usePagination-BeF5K3M7.js +223 -0
  77. package/dist/vue-i18n-BxwiXSkp.js +2365 -0
  78. package/dist/xlsx-BB366cdN.js +15491 -0
  79. package/dist/zod-W_PvIofQ.js +90 -0
  80. package/package.json +2 -2
  81. package/dist/Card-B5in1RMa.js +0 -805
  82. package/dist/Collections-CFCZ9YIG.js +0 -4
  83. package/dist/MainLayout-JbHzENFy.js +0 -4
  84. package/dist/app-BpzzygYP.js +0 -87765
  85. package/dist/money-DKGIIplY.js +0 -15
  86. package/dist/number-tPodRxTN.js +0 -12
@@ -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 : 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 m(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: m,
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.0.16-beta.10",
3
+ "version": "0.0.16-beta.11",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -18,7 +18,7 @@
18
18
  "@feedmepos/core": "^2.10.4",
19
19
  "@feedmepos/custom-attributes": "0.0.0-rc.3",
20
20
  "@feedmepos/menu": "1.0.34",
21
- "@feedmepos/mf-common": "1.15.0-beta.5",
21
+ "@feedmepos/mf-common": "1.15.0-beta.6",
22
22
  "@feedmepos/mf-core-ui": "1.0.15",
23
23
  "@feedmepos/ui-library": "1.3.5",
24
24
  "@types/qrcode": "^1.5.5",