@feedmepos/mf-connect 0.1.38-beta.6 → 0.1.38-beta.61

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 (148) hide show
  1. package/dist/{Analytic-NBx32reB.js → Analytic-CM7mh-iO.js} +16 -16
  2. package/dist/{App-CaK9PvMd.js → App-CeCzzsDu.js} +625 -619
  3. package/dist/AuditLogs-VWx8DFKA.js +1991 -0
  4. package/dist/{Bin-CL6o1JSs.js → Bin-vUuol_I9.js} +10 -10
  5. package/dist/Broadcast-6VXz4-IG.js +233 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BIySMYGP.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CV-zhJ15.js} +6 -6
  7. package/dist/{Card-DNdEjt6s.js → Card-CeIeGET1.js} +144 -140
  8. package/dist/Collections-CF_OcAL3.js +540 -0
  9. package/dist/Credit-BUqGOyp_.js +226 -0
  10. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js → DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-0DMFuBoG.js +3150 -0
  13. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BZfchHlT.js +347 -0
  14. package/dist/Experience-BxiFH_uV.js +225 -0
  15. package/dist/{FileSaver.min-NlMItPOc.js → FileSaver.min-lgg_oBvT.js} +1 -1
  16. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
  17. package/dist/Game-BzYW0LfY.js +300 -0
  18. package/dist/GenerateMaterial-B5A7mx2y.js +589 -0
  19. package/dist/Grab-BgiMqwvj.js +301 -0
  20. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-DZ8DHrQ_.js} +49 -48
  21. package/dist/{Index-2wokhhFB.js → Index-B85ops8K.js} +54 -54
  22. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → LottieAnimation.vue_vue_type_script_setup_true_lang-B5rIjxYd.js} +1 -1
  23. package/dist/{MainLayout-B1aJoR95.js → MainLayout-CXGVkD-W.js} +1 -1
  24. package/dist/Marketing-Bnijl7lA.js +145 -0
  25. package/dist/MarketingMaterialEdit-BlUKwSoP.js +746 -0
  26. package/dist/{Member-2xV4Izwa.js → Member-sT853g51.js} +38 -37
  27. package/dist/{MemberList-CYgBdyJt.js → MemberList-DYT5_fSP.js} +158 -159
  28. package/dist/{MemberTransactions-DWDV01N4.js → MemberTransactions-Cqce5ebe.js} +1 -1
  29. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Becsw31k.js → MessageInput.vue_vue_type_script_setup_true_lang-Dq0Hswj8.js} +5940 -5668
  30. package/dist/Mission-Q5_sGgrm.js +304 -0
  31. package/dist/{Overview-BZjto86d.js → Overview-B0rwrHR1.js} +24 -25
  32. package/dist/Point-BGYFMvev.js +228 -0
  33. package/dist/Promotion-0acd63nA.js +364 -0
  34. package/dist/{Queue-D62r2qjy.js → Queue-SVqRUlD_.js} +14 -15
  35. package/dist/{Record-0iF3dG7y.js → Record-BTjg4ihy.js} +10 -10
  36. package/dist/{Reward-C5IEJYu6.js → Reward-DW58VMRO.js} +16 -16
  37. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-S2Fd0qO8.js → RewardGroup.vue_vue_type_script_setup_true_lang-s1RI55Rc.js} +13 -14
  38. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Os17lXBX.js +1766 -0
  39. package/dist/{Segment-BknjBrUP.js → Segment-Dny8pxP1.js} +273 -274
  40. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BLQlkp-j.js → SelectItems.vue_vue_type_script_setup_true_lang-Czx7rqiq.js} +12 -12
  41. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CaPi4hYB.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-EgVxUG_N.js} +12 -12
  42. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BoZ0ZpNZ.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CO0fgI3K.js} +4 -4
  43. package/dist/Setting-CjcnxK34.js +1992 -0
  44. package/dist/SettingAdvertisements-CIyDF4C8.js +263 -0
  45. package/dist/Store-B8k5YVqU.js +1934 -0
  46. package/dist/StoreRewards-BW08rwpL.js +534 -0
  47. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BfFSfE2H.js +1034 -0
  48. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CZkKjUNQ.js +8093 -0
  49. package/dist/{Tier-B168DtFj.js → Tier-DKzu4tYw.js} +561 -480
  50. package/dist/{Title-uH0RI1N3.js → Title-BK-TXatJ.js} +149 -147
  51. package/dist/{Transaction-Bx-pmLrJ.js → Transaction-Duayg1jd.js} +2 -2
  52. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Ce_55V7l.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BAR9h1TV.js} +7 -7
  53. package/dist/{Voucher-Dzpz2AEB.js → Voucher-BEVAkNeJ.js} +140 -124
  54. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DvFy9Z6X.js +421 -0
  55. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CfLiUj9f.js → ZodTextField.vue_vue_type_script_setup_true_lang-CU_Sx2PM.js} +2 -2
  56. package/dist/app-IvbII0ql.js +45026 -0
  57. package/dist/app.js +1 -1
  58. package/dist/{business-B65OtB5B.js → business-BFIwFfkq.js} +11 -8
  59. package/dist/campaign-RuIwxc4y.js +253 -0
  60. package/dist/{campaign-qGy6uzrC.js → campaign-w9j4I4jn.js} +29 -25
  61. package/dist/{campaign.enum-CZp2DmXI.js → campaign.enum-IHLsfdik.js} +3 -2
  62. package/dist/campaign.fn-B_P1MkRV.js +776 -0
  63. package/dist/{collectible.enum-CN-lnG1m.js → collectible.enum-CUgSjO08.js} +1 -1
  64. package/dist/{collection.fn-mMwGQWce.js → collection.fn-CrfnNb41.js} +2 -2
  65. package/dist/dto-jwO_sX9I.js +222 -0
  66. package/dist/{effect-Bg3yb9T6.js → effect--0g8PNyt.js} +1 -1
  67. package/dist/{email-addresses-CQsN724N.js → email-addresses-HtsxvXw9.js} +2 -2
  68. package/dist/{export-BLf2dhFd.js → export-CFEwMRmd.js} +9 -10
  69. package/dist/{helper-CFaph16Q.js → helper-CCfb24PO.js} +22 -7
  70. package/dist/index-B-AMMFfT.js +3419 -0
  71. package/dist/{index-BPyac0fq.js → index-BR3UbZ0F.js} +1 -1
  72. package/dist/{index-Dy5p_b1S.js → index-BZEM0T2A.js} +1 -1
  73. package/dist/index-Bflu4Rft.js +8884 -0
  74. package/dist/{index-Dkmn0jmX.js → index-CR3f3BXQ.js} +2552 -2356
  75. package/dist/{index-BkySejFg.js → index-CZPcwcUo.js} +3 -3
  76. package/dist/{index-BPZtjcTm.js → index-CkuPY85X.js} +1 -1
  77. package/dist/index-CppLPpqB.js +30933 -0
  78. package/dist/index-CuvNtC_M.js +61 -0
  79. package/dist/{index-BKOgzVx6.js → index-DDYH-IEX.js} +1 -1
  80. package/dist/{index-DaEQgaiW.js → index-DdZdHioZ.js} +455 -245
  81. package/dist/{index-BBPIZjw6.js → index-Dic_WcAL.js} +3 -3
  82. package/dist/{index-CH2d_B8c.js → index-DpjYgKTN.js} +4 -1
  83. package/dist/index-wzSeRJAd.js +36 -0
  84. package/dist/{index.esm2017-B9vJTKYg.js → index.esm2017-CUnjzfU-.js} +89 -89
  85. package/dist/loading-CivgDw5C.js +215 -0
  86. package/dist/{lodash-B5I3zXaY.js → lodash-BSbv_9TG.js} +1 -1
  87. package/dist/{membership-Du79A0Pl.js → membership-j2w1YUO-.js} +3 -3
  88. package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
  89. package/dist/{money-DXgYs2-R.js → money-DL-x8hiT.js} +1 -1
  90. package/dist/{number-CBMkNZvH.js → number-D1yoFGEr.js} +1 -1
  91. package/dist/objectid-CHab6j3r.js +145 -0
  92. package/dist/{campaign-iKI-L84v.js → plugins-P-V4XWmW.js} +784 -777
  93. package/dist/remy-D_Deb3ue.js +13 -0
  94. package/dist/{reward-ClX_lWcQ.js → reward-BqMlBQRu.js} +1 -1
  95. package/dist/{rule-BfidJ75Y.js → rule-CztsLdki.js} +4 -4
  96. package/dist/rule-builder-DANv7Rmz.js +102 -0
  97. package/dist/style.css +11 -2
  98. package/dist/template-Dbz3FhHK.js +188 -0
  99. package/dist/timezone-BgVqObBq.js +1151 -0
  100. package/dist/trigger-CbriUibd.js +213 -0
  101. package/dist/usePagination-DtNK7W0U.js +223 -0
  102. package/dist/user-CVapqHfr.js +55 -0
  103. package/dist/vue-i18n-tpDAnnmD.js +2365 -0
  104. package/dist/{xlsx-Be4bARvl.js → xlsx-EewcN2uY.js} +1 -1
  105. package/dist/{zod-Bg2FbC-D.js → zod-D-wiCQRJ.js} +32 -31
  106. package/package.json +13 -5
  107. package/dist/AuditLogs-C-gCCPvF.js +0 -1887
  108. package/dist/Broadcast-B2-itjvZ.js +0 -227
  109. package/dist/Collections-DepGq6WJ.js +0 -465
  110. package/dist/Credit-D7K0gFwc.js +0 -222
  111. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
  112. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-HMjbuy2C.js +0 -2185
  113. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-DrbMJlm5.js +0 -347
  114. package/dist/Experience-FlBX3eyN.js +0 -223
  115. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
  116. package/dist/Game-Cc3D7lKV.js +0 -278
  117. package/dist/Marketing-D7PXYloN.js +0 -20073
  118. package/dist/Mission-BSGc9822.js +0 -296
  119. package/dist/Point-0U4TTdPW.js +0 -226
  120. package/dist/Promotion-DiUa0GcV.js +0 -289
  121. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CxlamGFP.js +0 -1751
  122. package/dist/Setting-RLI7RgmN.js +0 -1936
  123. package/dist/Store-gxmv8hWJ.js +0 -1842
  124. package/dist/StoreRewards-C_6gY_Nk.js +0 -423
  125. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B5uzSYM4.js +0 -1029
  126. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-yjI96ZL0.js +0 -139
  127. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-dbA6_6b9.js +0 -419
  128. package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
  129. package/dist/app-B90wINOO.js +0 -33357
  130. package/dist/app-DuUxQ1ZP.js +0 -7086
  131. package/dist/campaign.fn-DKScnmjX.js +0 -758
  132. package/dist/dto-C5ri8Nws.js +0 -214
  133. package/dist/index-BCGDOgxb.js +0 -38
  134. package/dist/index-BCPBmANe.js +0 -3120
  135. package/dist/index-BN2Uyvj4.js +0 -30038
  136. package/dist/index-CrbnfAk8.js +0 -8861
  137. package/dist/index-CsaQJMAR.js +0 -66
  138. package/dist/index-DJwQICyC.js +0 -146
  139. package/dist/loading-MEQuW9Xa.js +0 -71
  140. package/dist/objectid-BeZTZYqi.js +0 -145
  141. package/dist/plugins-KiMuDTPp.js +0 -208
  142. package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
  143. package/dist/rule-builder-BTcZx77a.js +0 -89
  144. package/dist/template-DPpMK30W.js +0 -190
  145. package/dist/trigger-DLp1bkZP.js +0 -144
  146. package/dist/usePagination-BeF5K3M7.js +0 -223
  147. package/dist/user-Cq9CGBHZ.js +0 -54
  148. package/dist/vue-i18n-COzqUgQy.js +0 -2365
@@ -1,66 +0,0 @@
1
- const d = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), R = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), C = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), A = /[^\p{L}\d]+/giu, n = "$1\0$2", L = "";
2
- function h(r) {
3
- let e = r.trim();
4
- e = e.replace(d, n).replace(R, n), e = e.replace(A, "\0");
5
- let c = 0, l = e.length;
6
- for (; e.charAt(c) === "\0"; )
7
- c++;
8
- if (c === l)
9
- return [];
10
- for (; e.charAt(l - 1) === "\0"; )
11
- l--;
12
- return e.slice(c, l).split(/\0/g);
13
- }
14
- function w(r) {
15
- const e = h(r);
16
- for (let c = 0; c < e.length; c++) {
17
- const l = e[c], t = C.exec(l);
18
- if (t) {
19
- const a = t.index + (t[1] ?? t[2]).length;
20
- e.splice(c, 1, l.slice(0, a), l.slice(a));
21
- }
22
- }
23
- return e;
24
- }
25
- function m(r, e) {
26
- const [c, l, t] = P(r, e), a = i(e == null ? void 0 : e.locale), s = E(e == null ? void 0 : e.locale);
27
- return c + l.map(x(a, s)).join((e == null ? void 0 : e.delimiter) ?? " ") + t;
28
- }
29
- function S(r, e) {
30
- const [c, l, t] = P(r, e), a = i(e == null ? void 0 : e.locale), s = E(e == null ? void 0 : e.locale), f = x(a, s);
31
- return c + l.map((u, _) => _ === 0 ? f(u) : a(u)).join((e == null ? void 0 : e.delimiter) ?? " ") + t;
32
- }
33
- function i(r) {
34
- return r === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(r);
35
- }
36
- function E(r) {
37
- return r === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(r);
38
- }
39
- function x(r, e) {
40
- return (c) => `${e(c[0])}${r(c.slice(1))}`;
41
- }
42
- function P(r, e = {}) {
43
- const c = e.split ?? (e.separateNumbers ? w : h), l = e.prefixCharacters ?? L, t = e.suffixCharacters ?? L;
44
- let a = 0, s = r.length;
45
- for (; a < r.length; ) {
46
- const f = r.charAt(a);
47
- if (!l.includes(f))
48
- break;
49
- a++;
50
- }
51
- for (; s > a; ) {
52
- const f = s - 1, u = r.charAt(f);
53
- if (!t.includes(u))
54
- break;
55
- s = f;
56
- }
57
- return [
58
- r.slice(0, a),
59
- c(r.slice(a, s)),
60
- r.slice(s)
61
- ];
62
- }
63
- export {
64
- m as c,
65
- S as s
66
- };
@@ -1,146 +0,0 @@
1
- import { g as t, s as u, S as c, b as i } from "./index-BN2Uyvj4.js";
2
- const a = () => {
3
- const e = c.getBusinessId();
4
- if (!e) throw new Error("Invalid business ID");
5
- return i(`businesses/${e}/membership`, {
6
- noIdRequired: !0
7
- });
8
- }, o = {
9
- async read() {
10
- return t(await a().get(""));
11
- },
12
- async update(e) {
13
- return t(await a().put("", e));
14
- },
15
- async createTier(e) {
16
- return t(await a().post("tier", e));
17
- },
18
- async updateTiers(e) {
19
- return t(await a().put("tiers", e));
20
- },
21
- async createTitle(e) {
22
- return t(await a().post("titles", e));
23
- },
24
- async updateTitle(e, r) {
25
- return t(
26
- await a().put(`titles/${e}`, r)
27
- );
28
- },
29
- async deleteTitle(e) {
30
- return t(await a().delete(`titles/${e}`));
31
- },
32
- async readStore() {
33
- return t(await a().get("store"));
34
- },
35
- async readPayoutAccount() {
36
- return t(
37
- await a().get("store/payout-account")
38
- );
39
- },
40
- async updateStore(e) {
41
- return t(await a().put("store", e));
42
- },
43
- async updateStoreBundle(e) {
44
- return t(
45
- await a().put("store/bundle", e)
46
- );
47
- },
48
- async sendBundle(e) {
49
- return t(
50
- await a().post("store/bundle/send", e)
51
- );
52
- },
53
- async refundStoreTransaction(e) {
54
- return t(
55
- await a().post("store/refund", e)
56
- );
57
- },
58
- async readRewards() {
59
- return t(await a().get("rewards"));
60
- },
61
- async readRewardById(e) {
62
- return t(await a().get(`rewards/${e}`));
63
- },
64
- async readCollectionsByRewardId(e, r) {
65
- const s = t(
66
- await a().get(`/${e}/collections`, {
67
- params: r
68
- })
69
- );
70
- return {
71
- meta: s.meta,
72
- resources: s.resources
73
- };
74
- },
75
- async createReward(e) {
76
- return t(await a().post("rewards", e));
77
- },
78
- async readCards(e) {
79
- const r = t(
80
- await a().get("/cards", {
81
- params: e
82
- })
83
- );
84
- return {
85
- meta: r.meta,
86
- resources: r.resources
87
- };
88
- },
89
- async createCards(e) {
90
- return t(
91
- await a().post("/cards", e)
92
- );
93
- },
94
- async updateCard(e) {
95
- return t(await a().put("cards", e));
96
- },
97
- async deleteCard(e) {
98
- return t(await a().delete(`cards/${e}`));
99
- },
100
- async updateReward(e, r) {
101
- return t(
102
- await a().put(`rewards/${e}`, r)
103
- );
104
- },
105
- async deleteReward(e) {
106
- return t(await a().delete(`rewards/${e}`));
107
- },
108
- async getEmailAddresses() {
109
- return t(await a().get("email-addresses"));
110
- },
111
- async getWhatsappNumbers() {
112
- return t(
113
- await u(`whatsappList/${c.getBusinessId()}`).get(
114
- ""
115
- )
116
- );
117
- },
118
- async readCollectionCountByMemberId(e, r) {
119
- return t(
120
- await a().get(`/collections/count/${e}`, {
121
- params: { type: r }
122
- })
123
- );
124
- },
125
- async readCollectionsByMemberId(e, r, s) {
126
- const n = t(
127
- await a().get(`/collections/${e}`, {
128
- params: { ...r, ...s }
129
- })
130
- );
131
- return {
132
- meta: n.meta,
133
- resources: n.resources
134
- };
135
- },
136
- async readMissionCountByMemberId(e) {
137
- return t(
138
- await a().get(
139
- `/collections/mission/count/${e}`
140
- )
141
- );
142
- }
143
- };
144
- export {
145
- o as m
146
- };
@@ -1,71 +0,0 @@
1
- import { n as u, r as S } from "./plugins-KiMuDTPp.js";
2
- import { u as y } from "./app-wDQR6dpb.js";
3
- async function m(a, s) {
4
- var l, d;
5
- let e = [];
6
- !s || !s.customId ? e.push(`${(/* @__PURE__ */ new Date()).toISOString()}_${S(6)}`) : typeof s.customId == "string" ? e.push(s.customId) : e = s.customId;
7
- const t = y();
8
- t.addLoadingQueues(
9
- e.map((r) => ({
10
- id: r,
11
- isGlobal: (s == null ? void 0 : s.isGlobal) || !1
12
- }))
13
- );
14
- try {
15
- const r = await a();
16
- return await ((l = s == null ? void 0 : s.onSuccess) == null ? void 0 : l.call(s, r)), r;
17
- } catch (r) {
18
- const p = r instanceof Error ? r.message : `${r}`;
19
- throw s != null && s.onError ? await s.onError(p) : u.error(p), r;
20
- } finally {
21
- t.resolveQueues(e), (d = s == null ? void 0 : s.onComplete) == null || d.call(s);
22
- }
23
- }
24
- const L = {
25
- checkIsLoading: (a) => y().loadingQueue.some((s) => s.id === a),
26
- global: async (a, s) => await m(
27
- async () => await a(),
28
- {
29
- isGlobal: !0,
30
- onSuccess: async (e) => {
31
- var t;
32
- await ((t = s == null ? void 0 : s.onSuccess) == null ? void 0 : t.call(s, e)), s != null && s.successMessage && u.success(s == null ? void 0 : s.successMessage);
33
- }
34
- }
35
- ),
36
- minor: async (a, s) => {
37
- var t;
38
- let e;
39
- return s != null && s.message && (e = u.info((t = s == null ? void 0 : s.message) == null ? void 0 : t.toString(), null, !0)), await m(
40
- async () => (s != null && s.isLoading && (s.isLoading.value = !0), await a()),
41
- {
42
- onSuccess: () => {
43
- s != null && s.successMessage && u.success((s == null ? void 0 : s.successMessage) || "Success");
44
- },
45
- onError: (l) => {
46
- const d = `${l}` || "Error";
47
- u.error(d);
48
- },
49
- onComplete: () => {
50
- s != null && s.isLoading && (s.isLoading.value = !1), e && u.close(e);
51
- },
52
- customId: s == null ? void 0 : s.customId
53
- }
54
- );
55
- },
56
- custom: async (a, s) => await m(
57
- async () => (s != null && s.isLoading && (s.isLoading.value = !0), await a()),
58
- {
59
- onSuccess: async () => {
60
- s != null && s.successMessage && u.success(s.successMessage);
61
- },
62
- onComplete: () => {
63
- s && s.isLoading && (s.isLoading.value = !1);
64
- },
65
- customId: s == null ? void 0 : s.customId
66
- }
67
- )
68
- };
69
- export {
70
- L as u
71
- };
@@ -1,145 +0,0 @@
1
- import { g as l } from "./_commonjsHelpers-BkfeUUK-.js";
2
- var t = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_c03d504f-c9b1-47ca-8037-e76d9faab325", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.41", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_remy_vue_client: "0.2.0-beta.14", npm_package_dependencies_pinia: "^2.1.7", npm_package_dependencies_vite_plugin_vue_devtools: "^7.6.4", USER: "runner", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v20.19.5 linux x64", CI: "true", npm_package_dependencies_vue: "^3.4.33", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_c03d504f-c9b1-47ca-8037-e76d9faab325", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.19.5/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf", npm_package_dependencies__types_qrcode: "^1.5.5", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8096", GRADLE_HOME: "/usr/share/gradle-9.0.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.12.5", npm_package_dependencies_fabric: "^5.5.1", npm_package_dependencies_ua_parser_js: "^2.0.3", npm_package_dependencies_zod_i18n_map: "2.27.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.7", SYSTEMD_EXEC_PID: "1740", npm_package_dependencies__feedmepos_ui_library: "1.6.7", npm_package_dependencies_dayjs: "^1.11.12", npm_package_dependencies_dotenv: "^16.4.5", npm_package_dependencies_moment: "^2.30.1", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev", npm_package_dependencies__tailwindcss_typography: "^0.5.16", npm_package_dependencies_i18next: "24.2.1", npm_package_devDependencies_tailwindcss: "^3.4.6", npm_package_devDependencies_typescript: "^5.5.3", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode development", npm_package_scripts_build_only_prod: "pnpm build:mf:prod", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.26", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250907.24.1", npm_package_scripts_dev: "vite", npm_package_scripts_build_prod: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode production", npm_package_dependencies_unplugin_auto_import: "^0.17.8", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:12650", GITHUB_WORKFLOW: "[CD:dev] connect-portal (mf-connect)", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.7/x64", npm_package_devDependencies__types_uuid: "^9.0.8", npm_package_devDependencies_unlayer_types: "^1.157.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "17791057514", npm_package_dependencies_bson_objectid: "^2.0.4", npm_package_devDependencies__types_lodash: "^4.17.7", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "5c9dff4cdbb6554849d924df64f570badb6d4783", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_dependencies__ckeditor_ckeditor5_vue: "^7.3.0", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", GITHUB_WORKFLOW_REF: "feedmepos/marketing-services/.github/workflows/[DEV] deploy-mf-connect.yml@refs/heads/dev", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.19.5/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_ebc57c43-9878-4e4f-85e2-bffc92b06549", INVOCATION_ID: "dd0ceeba5263419da249e56757afcd03", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.19.5/x64/bin/node", npm_package_name: "@feedmepos/mf-connect", npm_package_scripts_deploy_dev: "pnpm run build-only:dev && pnpm publish --no-git-checks .", npm_package_dependencies_cross_env: "^7.0.3", npm_package_dependencies_file_saver: "^2.0.5", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "64", GITHUB_TRIGGERING_ACTOR: "qaijunse", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_deploy_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks .", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_dependencies__feedmepos_mf_core_ui: "1.0.20", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000017178", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/marketing-services", npm_package_scripts_build_dts: "vue-tsc --declaration --noEmit false --emitDeclarationOnly -p tsconfig.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.json --outDir dist --composite false", npm_package_dependencies__feedmepos_core: "2.14.32", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_rrule: "^2.8.1", npm_package_dependencies_vue3_lottie: "^3.3.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "615151795", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/bin/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.1.38-beta.6", npm_package_dependencies_ckeditor5: "^44.3.0", npm_lifecycle_event: "build:mf:dev", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vue-tsc && vite build", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/marketing-services/marketing-services", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "5c9dff4cdbb6554849d924df64f570badb6d4783", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies__ckeditor_ckeditor5_build_classic: "^44.3.0", npm_package_dependencies_vue_router: "^4.4.0", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "qaijunse", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_dependencies_email_addresses: "^5.0.0", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_qrcode: "^1.5.3", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_c03d504f-c9b1-47ca-8037-e76d9faab325", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", GITHUB_ACTOR_ID: "39590157", RUNNER_WORKSPACE: "/home/runner/work/marketing-services", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_c03d504f-c9b1-47ca-8037-e76d9faab325", npm_package_exports___types: "./dist/packages/connect/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_devDependencies_postcss: "^8.4.39", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", npm_package_pnpm_overrides__feedmepos_mf_common: "1.15.0-beta.6", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_c03d504f-c9b1-47ca-8037-e76d9faab325", INIT_CWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", NODE_ENV: "production", FEEDME_NAMESPACE: "dev", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", IMPORT_FILES_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", AUTH_URL: "https://portal-v2-dev.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "member.feedmedev.cc", CRM_APP_URL: "crm.feedmedev.cc", MARKETING_V1_PORTAL: "https://marketing-v1.feedmedev.cc", CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", PAYMENT_PORTAL_URL: "https://portal.feedmedev.cc/payment/payout-account", LICENSE_PORTAL_URL: "https://license.feedmedev.cc/" } }, i = Math.floor(Math.random() * 16777215), a = n.index = parseInt(Math.random() * 16777215, 10), c = (typeof t > "u" || typeof t.pid != "number" ? Math.floor(Math.random() * 1e5) : t.pid) % 65535, d = (() => {
3
- try {
4
- return _Buffer;
5
- } catch {
6
- try {
7
- return Buffer;
8
- } catch {
9
- return null;
10
- }
11
- }
12
- })(), r = function(e) {
13
- return !!(e != null && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e));
14
- }, u = [];
15
- for (var p = 0; p < 256; p++)
16
- u[p] = (p <= 15 ? "0" : "") + p.toString(16);
17
- var m = new RegExp("^[0-9a-fA-F]{24}$"), s = [];
18
- p = 0;
19
- for (; p < 10; ) s[48 + p] = p++;
20
- for (; p < 16; ) s[55 + p] = s[87 + p] = p++;
21
- function n(e) {
22
- if (!(this instanceof n)) return new n(e);
23
- if (e && (e instanceof n || e._bsontype === "ObjectID"))
24
- return e;
25
- if (this._bsontype = "ObjectID", e == null || typeof e == "number") {
26
- this.id = this.generate(e);
27
- return;
28
- }
29
- var _ = n.isValid(e);
30
- if (!_ && e != null)
31
- throw new Error(
32
- "Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
33
- );
34
- if (_ && typeof e == "string" && e.length === 24)
35
- return n.createFromHexString(e);
36
- if (e != null && e.length === 12)
37
- this.id = e;
38
- else {
39
- if (e != null && typeof e.toHexString == "function")
40
- return e;
41
- throw new Error(
42
- "Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
43
- );
44
- }
45
- }
46
- var g = n;
47
- n.default = n;
48
- n.createFromTime = function(e) {
49
- return e = parseInt(e, 10) % 4294967295, new n(E(8, e) + "0000000000000000");
50
- };
51
- n.createFromHexString = function(e) {
52
- if (typeof e > "u" || e != null && e.length !== 24)
53
- throw new Error(
54
- "Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
55
- );
56
- for (var _ = "", o = 0; o < 24; )
57
- _ += String.fromCharCode(s[e.charCodeAt(o++)] << 4 | s[e.charCodeAt(o++)]);
58
- return new n(_);
59
- };
60
- n.isValid = function(e) {
61
- return e == null ? !1 : typeof e == "number" ? !0 : typeof e == "string" ? e.length === 12 || e.length === 24 && m.test(e) : e instanceof n ? !0 : r(e) ? n.isValid(e.toString("hex")) : typeof e.toHexString == "function" && d && (e.id instanceof d || typeof e.id == "string") ? e.id.length === 12 || e.id.length === 24 && m.test(e.id) : !1;
62
- };
63
- n.prototype = {
64
- constructor: n,
65
- /**
66
- * Return the ObjectID id as a 24 byte hex string representation
67
- *
68
- * @return {String} return the 24 byte hex string representation.
69
- * @api public
70
- */
71
- toHexString: function() {
72
- if (!this.id || !this.id.length)
73
- throw new Error(
74
- "invalid ObjectId, ObjectId.id must be either a string or a Buffer, but is [" + JSON.stringify(this.id) + "]"
75
- );
76
- if (this.id.length === 24)
77
- return this.id;
78
- if (r(this.id))
79
- return this.id.toString("hex");
80
- for (var e = "", _ = 0; _ < this.id.length; _++)
81
- e += u[this.id.charCodeAt(_)];
82
- return e;
83
- },
84
- /**
85
- * Compares the equality of this ObjectID with `otherID`.
86
- *
87
- * @param {Object} otherId ObjectID instance to compare against.
88
- * @return {Boolean} the result of comparing two ObjectID's
89
- * @api public
90
- */
91
- equals: function(e) {
92
- return e instanceof n ? this.toString() === e.toString() : typeof e == "string" && n.isValid(e) && e.length === 12 && r(this.id) ? e === this.id.toString("binary") : typeof e == "string" && n.isValid(e) && e.length === 24 ? e.toLowerCase() === this.toHexString() : typeof e == "string" && n.isValid(e) && e.length === 12 ? e === this.id : e != null && (e instanceof n || e.toHexString) ? e.toHexString() === this.toHexString() : !1;
93
- },
94
- /**
95
- * Returns the generation date (accurate up to the second) that this ID was generated.
96
- *
97
- * @return {Date} the generation date
98
- * @api public
99
- */
100
- getTimestamp: function() {
101
- var e = /* @__PURE__ */ new Date(), _;
102
- return r(this.id) ? _ = this.id[3] | this.id[2] << 8 | this.id[1] << 16 | this.id[0] << 24 : _ = this.id.charCodeAt(3) | this.id.charCodeAt(2) << 8 | this.id.charCodeAt(1) << 16 | this.id.charCodeAt(0) << 24, e.setTime(Math.floor(_) * 1e3), e;
103
- },
104
- /**
105
- * Generate a 12 byte id buffer used in ObjectID's
106
- *
107
- * @method
108
- * @param {number} [time] optional parameter allowing to pass in a second based timestamp.
109
- * @return {string} return the 12 byte id buffer string.
110
- */
111
- generate: function(e) {
112
- typeof e != "number" && (e = ~~(Date.now() / 1e3)), e = parseInt(e, 10) % 4294967295;
113
- var _ = f();
114
- return String.fromCharCode(
115
- e >> 24 & 255,
116
- e >> 16 & 255,
117
- e >> 8 & 255,
118
- e & 255,
119
- i >> 16 & 255,
120
- i >> 8 & 255,
121
- i & 255,
122
- c >> 8 & 255,
123
- c & 255,
124
- _ >> 16 & 255,
125
- _ >> 8 & 255,
126
- _ & 255
127
- );
128
- }
129
- };
130
- function f() {
131
- return a = (a + 1) % 16777215;
132
- }
133
- function E(e, _) {
134
- return _ = _.toString(16), _.length === e ? _ : "00000000".substring(_.length, e) + _;
135
- }
136
- var h = Symbol && Symbol.for && Symbol.for("nodejs.util.inspect.custom") || "inspect";
137
- n.prototype[h] = function() {
138
- return "ObjectID(" + this + ")";
139
- };
140
- n.prototype.toJSON = n.prototype.toHexString;
141
- n.prototype.toString = n.prototype.toHexString;
142
- const R = /* @__PURE__ */ l(g);
143
- export {
144
- R as O
145
- };
@@ -1,208 +0,0 @@
1
- import { u as $, v as C, x as P, w as A, y as S } from "./index.esm2017-B9vJTKYg.js";
2
- import { u as w } from "./app-wDQR6dpb.js";
3
- import { S as o } from "./index-BN2Uyvj4.js";
4
- function L(e, n) {
5
- let t = "", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
6
- const s = r.length;
7
- for (let a = 0; a < e; a++)
8
- t += r.charAt(Math.floor(Math.random() * s));
9
- return t;
10
- }
11
- const O = {
12
- alphabetOnly(e) {
13
- return e.replace(/[^a-zA-Z]/g, "");
14
- },
15
- alphaNumeric(e) {
16
- return e.replace(/[^a-zA-Z0-9]/g, "");
17
- },
18
- numericOnly(e) {
19
- return e.replace(/[^0-9]/g, "");
20
- },
21
- singularOrPlural(e, n, t) {
22
- const r = e > 1 ? t || `${n}s` : n;
23
- return `${e} ${r}`;
24
- }
25
- }, V = {
26
- title: (e) => e.replace(
27
- /\b\w+/g,
28
- (n) => n.charAt(0).toUpperCase() + n.substring(1).toLowerCase()
29
- )
30
- };
31
- var i = [];
32
- for (var v = 0; v < 256; ++v)
33
- i.push((v + 256).toString(16).slice(1));
34
- function k(e, n = 0) {
35
- return (i[e[n + 0]] + i[e[n + 1]] + i[e[n + 2]] + i[e[n + 3]] + "-" + i[e[n + 4]] + i[e[n + 5]] + "-" + i[e[n + 6]] + i[e[n + 7]] + "-" + i[e[n + 8]] + i[e[n + 9]] + "-" + i[e[n + 10]] + i[e[n + 11]] + i[e[n + 12]] + i[e[n + 13]] + i[e[n + 14]] + i[e[n + 15]]).toLowerCase();
36
- }
37
- var h, R = new Uint8Array(16);
38
- function _() {
39
- if (!h && (h = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !h))
40
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
41
- return h(R);
42
- }
43
- var b, p, x = 0, y = 0;
44
- function E(e, n, t) {
45
- var r = n && t || 0, s = n || new Array(16);
46
- e = e || {};
47
- var a = e.node, c = e.clockseq;
48
- if (e._v6 || (a || (a = b), c == null && (c = p)), a == null || c == null) {
49
- var u = e.random || (e.rng || _)();
50
- a == null && (a = [u[0], u[1], u[2], u[3], u[4], u[5]], !b && !e._v6 && (a[0] |= 1, b = a)), c == null && (c = (u[6] << 8 | u[7]) & 16383, p === void 0 && !e._v6 && (p = c));
51
- }
52
- var l = e.msecs !== void 0 ? e.msecs : Date.now(), d = e.nsecs !== void 0 ? e.nsecs : y + 1, I = l - x + (d - y) / 1e4;
53
- if (I < 0 && e.clockseq === void 0 && (c = c + 1 & 16383), (I < 0 || l > x) && e.nsecs === void 0 && (d = 0), d >= 1e4)
54
- throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
55
- x = l, y = d, p = c, l += 122192928e5;
56
- var m = ((l & 268435455) * 1e4 + d) % 4294967296;
57
- s[r++] = m >>> 24 & 255, s[r++] = m >>> 16 & 255, s[r++] = m >>> 8 & 255, s[r++] = m & 255;
58
- var f = l / 4294967296 * 1e4 & 268435455;
59
- s[r++] = f >>> 8 & 255, s[r++] = f & 255, s[r++] = f >>> 24 & 15 | 16, s[r++] = f >>> 16 & 255, s[r++] = c >>> 8 | 128, s[r++] = c & 255;
60
- for (var g = 0; g < 6; ++g)
61
- s[r + g] = a[g];
62
- return n || k(s);
63
- }
64
- async function j(e, n) {
65
- await new Promise((t) => {
66
- const r = document.createElement("input");
67
- r.value = e, document.body.appendChild(r), r.select(), document.execCommand("copy"), document.body.removeChild(r), t("");
68
- }).then(() => {
69
- var t;
70
- (t = w().snackbar) == null || t.open({
71
- message: (n == null ? void 0 : n.successMessage) || "Copied to clipboard",
72
- type: "success",
73
- dismissable: !0
74
- });
75
- });
76
- }
77
- const T = {
78
- fileExtension(e) {
79
- return (e == null ? void 0 : e.type.replace(/video\/|image\//, "")) || void 0;
80
- },
81
- generateId(e) {
82
- return [E(), this.fileExtension(e)].filter(Boolean).join(".");
83
- },
84
- campaignPath(e) {
85
- return `business/${o.getBusinessId()}/campaigns/${e || this.generateId()}`;
86
- },
87
- coverImagePath() {
88
- return `business/${o.getBusinessId()}/membership/design/image.png`;
89
- },
90
- advertisementPath(e, n) {
91
- return `business/${o.getBusinessId()}/membership/advertisement/${e}.${this.fileExtension(n)}`;
92
- },
93
- designPath(e, n) {
94
- return `business/${o.getBusinessId()}/membership/design/${e}.${this.fileExtension(n)}`;
95
- },
96
- bundleImagePath(e, n) {
97
- return `business/${o.getBusinessId()}/membership/bundles/${e || this.generateId(n)}`;
98
- },
99
- collectibleImagePath(e, n) {
100
- return `business/${o.getBusinessId()}/membership/collectibles/${e || this.generateId(n)}`;
101
- },
102
- tierImagePath(e, n) {
103
- return `business/${o.getBusinessId()}/membership/tiers/${e || this.generateId(n)}`;
104
- },
105
- referralTermAndConditionPath() {
106
- return `business/${o.getBusinessId()}/membership/referral/term_and_condition.pdf`;
107
- },
108
- async update(e, n, t) {
109
- const r = $(void 0, t), s = C(r, e);
110
- return await P(s, n), A(s);
111
- },
112
- async delete(e, n) {
113
- const t = $(void 0, n), r = C(t, e);
114
- await S(r);
115
- }
116
- }, U = {
117
- get dialog() {
118
- return w().dialog;
119
- },
120
- confirm(e, n = "Confirm", t = "Confirm", r = "Cancel") {
121
- return new Promise((s) => {
122
- var a;
123
- (a = this.dialog) == null || a.open({
124
- title: n,
125
- message: e,
126
- closeButton: !0,
127
- overlay: !0,
128
- primaryActions: {
129
- close: !0,
130
- text: t
131
- },
132
- secondaryActions: {
133
- variant: "tertiary",
134
- close: !0,
135
- text: r
136
- }
137
- }).onPrimary(() => {
138
- s(!0);
139
- }).onSecondary(() => {
140
- s(!1);
141
- }).onClose(() => {
142
- s(!1);
143
- });
144
- });
145
- },
146
- remove(e, n = "Remove", t = "Remove", r = "Cancel") {
147
- return new Promise((s) => {
148
- var a;
149
- (a = this.dialog) == null || a.open({
150
- title: n,
151
- message: e,
152
- closeButton: !0,
153
- overlay: !0,
154
- primaryActions: {
155
- close: !0,
156
- variant: "destructive",
157
- text: t
158
- },
159
- secondaryActions: {
160
- variant: "tertiary",
161
- close: !0,
162
- text: r
163
- }
164
- }).onPrimary(() => {
165
- s(!0);
166
- }).onClose(() => {
167
- s(!1);
168
- });
169
- });
170
- }
171
- }, D = {
172
- get snackbar() {
173
- return w().snackbar;
174
- },
175
- success(e, n = 2e3) {
176
- var t;
177
- return (t = this.snackbar) == null ? void 0 : t.open({ message: e, type: "success" }, n);
178
- },
179
- error(e, n = 2e3) {
180
- var t;
181
- return (t = this.snackbar) == null ? void 0 : t.open({ message: e, type: "error" }, n);
182
- },
183
- info(e, n = 2e3, t = !1) {
184
- var r;
185
- return (r = this.snackbar) == null ? void 0 : r.open(
186
- {
187
- message: e,
188
- type: "info",
189
- dismissable: n !== null,
190
- spinner: t
191
- },
192
- n
193
- );
194
- },
195
- close(e) {
196
- var n;
197
- return (n = this.snackbar) == null ? void 0 : n.close(e);
198
- }
199
- };
200
- export {
201
- j as a,
202
- O as b,
203
- V as c,
204
- T as f,
205
- D as n,
206
- U as p,
207
- L as r
208
- };