@feedmepos/mf-connect 0.0.16-beta.10 → 0.0.16-beta.12
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.
- package/dist/{Analytic-BVk0jPDU.js → Analytic-DIc9BYb0.js} +32 -20
- package/dist/{App-BbAalq1k.js → App-BzzL9_Jw.js} +33 -27
- package/dist/Broadcast-dVPgK5QV.js +223 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DiU3MnH0.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-TnEPvafD.js} +18 -11
- package/dist/{Card-B5in1RMa.js → Card-Bj2Yd2pr.js} +178 -158
- package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +97 -0
- package/dist/Collections-Fkb_zzqZ.js +453 -0
- package/dist/{Credit-Bc9EzdsC.js → Credit-DHn9OkE8.js} +78 -69
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C1ZXQski.js +2788 -0
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-D6mWny8y.js +344 -0
- package/dist/{Experience-CgKak5ik.js → Experience-DX3aJihS.js} +64 -55
- package/dist/{Game-QhfKqrN_.js → Game-CcVQvETd.js} +54 -45
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
- package/dist/JsonViewer-v8_C7l5N.js +87 -0
- package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +18737 -0
- package/dist/MainLayout-B1aJoR95.js +41 -0
- package/dist/{Marketing-CSx4N7UJ.js → Marketing-B9kykWEh.js} +79 -72
- package/dist/{Member-CY6WMD8D.js → Member-RoJSCSC5.js} +25 -22
- package/dist/{MemberList-8iRwm7Sz.js → MemberList-BUDxqMEK.js} +321 -307
- package/dist/{MemberTransactions-CknqkWO3.js → MemberTransactions-Bh_tT1Rp.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Cj3-JHOX.js +432 -0
- package/dist/{Mission-BTy1p7lU.js → Mission-DDvgCLy0.js} +50 -40
- package/dist/{Point-A6B_ggSy.js → Point-BbPkt4kF.js} +67 -58
- package/dist/Promotion-DEo-lxpX.js +221 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BGjeTeqS.js +1751 -0
- package/dist/{Segment-CFVXtyEj.js → Segment-DAcpZWIN.js} +145 -130
- package/dist/{Setting-Jmtw-_DV.js → Setting-CgXohUPt.js} +167 -154
- package/dist/{Store-DQypT-7e.js → Store-BVyHbQ8o.js} +504 -489
- package/dist/{StoreRewards-M-utm0iI.js → StoreRewards-sccMDbkj.js} +124 -108
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-B60mQ5kq.js → StoreTransactions.vue_vue_type_script_setup_true_lang--sdQ_l8g.js} +131 -123
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CXlkvt2u.js +139 -0
- package/dist/{Tier-D1jymeLK.js → Tier--P27XXbB.js} +144 -125
- package/dist/{Title-DN9DIP2k.js → Title-B27S3SxD.js} +107 -90
- package/dist/{Transaction-BAJvAoU6.js → Transaction-CYTtwwHY.js} +2 -2
- package/dist/Voucher-BZ8PKgO5.js +488 -0
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js +55 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/app-CnKzqAcN.js +53428 -0
- package/dist/app-FfENBuoE.js +5381 -0
- package/dist/app-wDQR6dpb.js +39 -0
- package/dist/app.js +2 -1
- package/dist/business-CXyP9G7A.js +78 -0
- package/dist/campaign-0aM2KYOy.js +96 -0
- package/dist/campaign-CpzFl8Vr.js +4 -0
- package/dist/collection.fn-FicQhH1t.js +26 -0
- package/dist/dto-BiYLkVdL.js +1169 -0
- package/dist/effect-Cg-eNEjg.js +61 -0
- package/dist/{export-DjeNY5Pc.js → export-D7BuObOL.js} +19 -16
- package/dist/helper-DvD-D7c7.js +71 -0
- package/dist/index-B1Q0GAWp.js +95 -0
- package/dist/index-B4UZgSB-.js +28058 -0
- package/dist/index-B6c-fUij.js +203 -0
- package/dist/index-BP_5cfKa.js +38 -0
- package/dist/index-BRXg5Si1.js +2071 -0
- package/dist/index-BuDwICBJ.js +761 -0
- package/dist/index-CDMC-8iO.js +94 -0
- package/dist/index-CcZt3OrE.js +73 -0
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/index-DA-fzkRR.js +1737 -0
- package/dist/index-Dbd4WA4r.js +61 -0
- package/dist/index-Dkeb_9ER.js +8832 -0
- package/dist/index-DmdKoKk_.js +298 -0
- package/dist/index-G-88ujCM.js +3 -0
- package/dist/loading-uCNeZibp.js +32697 -0
- package/dist/lodash-B5I3zXaY.js +3678 -0
- package/dist/membership-DFRO9TyM.js +221 -0
- package/dist/moment-BWErdI6_.js +2578 -0
- package/dist/money-OtkT4Pzp.js +15 -0
- package/dist/number-Cg3NCouc.js +12 -0
- package/dist/object-qECH92oz.js +26 -0
- package/dist/objectId-dwaoBfJX.js +7 -0
- package/dist/rule-Ch2HRiGw.js +1973 -0
- package/dist/rule-builder-B_M9yvEe.js +89 -0
- package/dist/template-1o0LbOoJ.js +190 -0
- package/dist/usePagination-BeF5K3M7.js +223 -0
- package/dist/vue-i18n-AtGIa4qH.js +2365 -0
- package/dist/xlsx-pChq0adn.js +15491 -0
- package/dist/zod-W_PvIofQ.js +90 -0
- package/package.json +3 -3
- package/dist/Collections-CFCZ9YIG.js +0 -4
- package/dist/MainLayout-JbHzENFy.js +0 -4
- package/dist/app-BpzzygYP.js +0 -87765
- package/dist/money-DKGIIplY.js +0 -15
- package/dist/number-tPodRxTN.js +0 -12
|
@@ -1,7 +1,27 @@
|
|
|
1
|
-
import { defineComponent as ee, ref as b, computed as G, watch as he, onMounted as ne, resolveComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent as ee, ref as b, computed as G, watch as he, onMounted as ne, resolveComponent as f, openBlock as _, createBlock as I, unref as n, isRef as Q, withCtx as k, createElementVNode as c, createVNode as d, createElementBlock as x, Fragment as M, renderList as Z, createCommentVNode as O, normalizeClass as Ee, createSlots as ye, h as X, toDisplayString as q, withModifiers as Se } from "vue";
|
|
2
|
+
import { _ as ke } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { h as ie } from "./moment-BWErdI6_.js";
|
|
4
|
+
import { useDialog as Te, components as Re } from "@feedmepos/ui-library";
|
|
5
|
+
import { p as Ae, u as te, f as le } from "./loading-uCNeZibp.js";
|
|
6
|
+
import { u as Ce } from "./app-wDQR6dpb.js";
|
|
7
|
+
import { u as oe } from "./membership-DFRO9TyM.js";
|
|
8
|
+
import { _ as de } from "./index-BRXg5Si1.js";
|
|
9
|
+
import { m as se } from "./index-B1Q0GAWp.js";
|
|
10
|
+
import { _ as pe } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
|
|
11
|
+
import "./index-B6c-fUij.js";
|
|
12
|
+
import "./index-Dkeb_9ER.js";
|
|
13
|
+
import { l as Oe } from "./index-BuDwICBJ.js";
|
|
14
|
+
import "./index-DA-fzkRR.js";
|
|
15
|
+
import "./index-DmdKoKk_.js";
|
|
16
|
+
import "./index-BP_5cfKa.js";
|
|
17
|
+
import { g as Ie } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
18
|
+
import { a as xe } from "./object-qECH92oz.js";
|
|
19
|
+
import { u as Ne } from "./business-CXyP9G7A.js";
|
|
20
|
+
import { w as De } from "./xlsx-pChq0adn.js";
|
|
21
|
+
import { e as Ue, C as we } from "./export-D7BuObOL.js";
|
|
22
|
+
import { u as He, _ as Fe } from "./usePagination-BeF5K3M7.js";
|
|
23
|
+
import { u as Pe } from "./vue-i18n-AtGIa4qH.js";
|
|
24
|
+
import { o as Be } from "./objectId-dwaoBfJX.js";
|
|
5
25
|
const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, Ge = { class: "space-y-16" }, Le = {
|
|
6
26
|
key: 0,
|
|
7
27
|
class: "flex flex-col gap-[16px] w-full"
|
|
@@ -9,7 +29,7 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
9
29
|
__name: "CreateCardSheet",
|
|
10
30
|
emits: ["success", "export"],
|
|
11
31
|
setup(e, { expose: i, emit: N }) {
|
|
12
|
-
const { minor: U } =
|
|
32
|
+
const { minor: U } = te, E = oe(), R = b(), v = b(!1), m = N, h = b(!1);
|
|
13
33
|
function L(l) {
|
|
14
34
|
h.value = l, l && (r.value = {
|
|
15
35
|
quantity: 1,
|
|
@@ -59,19 +79,19 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
59
79
|
{ label: "Alphabetic Uppercase", value: "ABCDEFGHIJKLMNOPQRSTUVWXYZ" },
|
|
60
80
|
{ label: "Numbers", value: "0123456789" },
|
|
61
81
|
{ label: "Custom", value: "" }
|
|
62
|
-
], w = b(V[0].value), T = b("bulk"), A = b(0),
|
|
82
|
+
], w = b(V[0].value), T = b("bulk"), A = b(0), P = G(
|
|
63
83
|
() => {
|
|
64
84
|
var l;
|
|
65
85
|
return (l = E.membership.design) == null ? void 0 : l[A.value];
|
|
66
86
|
}
|
|
67
|
-
), u = b(!1),
|
|
87
|
+
), u = b(!1), a = G(
|
|
68
88
|
() => E.sortedStoreCategories.flatMap((l) => l.bundles)
|
|
69
89
|
);
|
|
70
90
|
async function o(l) {
|
|
71
91
|
var D, H;
|
|
72
92
|
if (await ((D = R.value) == null ? void 0 : D.validateInputs()), !v.value) return;
|
|
73
|
-
l.design = (H =
|
|
74
|
-
const t = await
|
|
93
|
+
l.design = (H = P.value) == null ? void 0 : H.image;
|
|
94
|
+
const t = await Ae.confirm(
|
|
75
95
|
"",
|
|
76
96
|
"Do you want to export generated card(s)?",
|
|
77
97
|
"Export",
|
|
@@ -79,8 +99,8 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
79
99
|
);
|
|
80
100
|
console.log(t), await U(
|
|
81
101
|
async () => {
|
|
82
|
-
const
|
|
83
|
-
console.log(
|
|
102
|
+
const B = await se.createCards(l);
|
|
103
|
+
console.log(B), await m("success"), t && await m("export", B);
|
|
84
104
|
},
|
|
85
105
|
{
|
|
86
106
|
message: "Creating card(s)",
|
|
@@ -98,7 +118,7 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
98
118
|
), ne(async () => {
|
|
99
119
|
await E.readMemberStore();
|
|
100
120
|
}), (l, t) => {
|
|
101
|
-
const D =
|
|
121
|
+
const D = f("FmRadio"), H = f("FmRadioGroup"), B = f("FmSwitch"), g = f("FmStepperField"), $ = f("FmSelect"), F = f("FmTextField"), ge = f("FmTextarea"), K = f("FmButton"), be = f("FmForm"), ve = f("FmSideSheet");
|
|
102
122
|
return _(), I(ve, {
|
|
103
123
|
"max-width": 560,
|
|
104
124
|
"dismiss-away": !0,
|
|
@@ -110,11 +130,11 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
110
130
|
]
|
|
111
131
|
}, {
|
|
112
132
|
"side-sheet-footer": k(() => [
|
|
113
|
-
|
|
133
|
+
c("div", We, [
|
|
114
134
|
d(K, {
|
|
115
135
|
label: "Save",
|
|
116
136
|
onClick: t[17] || (t[17] = (C) => o(n(r))),
|
|
117
|
-
loading: n(
|
|
137
|
+
loading: n(Ce)().isLoading
|
|
118
138
|
}, null, 8, ["loading"]),
|
|
119
139
|
d(K, {
|
|
120
140
|
label: "Cancel",
|
|
@@ -133,30 +153,30 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
133
153
|
onValidationFailed: t[16] || (t[16] = (C) => v.value = !1)
|
|
134
154
|
}, {
|
|
135
155
|
default: k(() => {
|
|
136
|
-
var C,
|
|
156
|
+
var C, ae, re;
|
|
137
157
|
return [
|
|
138
|
-
|
|
139
|
-
t[21] || (t[21] =
|
|
158
|
+
c("div", null, [
|
|
159
|
+
t[21] || (t[21] = c("div", { class: "fm-typo-en-body-lg-600" }, "Number type", -1)),
|
|
140
160
|
d(H, {
|
|
141
161
|
modelValue: n(T),
|
|
142
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
162
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => Q(T) ? T.value = s : null),
|
|
143
163
|
inline: !1
|
|
144
164
|
}, {
|
|
145
165
|
default: k(() => [
|
|
146
|
-
(_(), x(M, null, Z(S, (
|
|
147
|
-
key:
|
|
148
|
-
value:
|
|
149
|
-
label:
|
|
150
|
-
sublabel:
|
|
166
|
+
(_(), x(M, null, Z(S, (s) => d(D, {
|
|
167
|
+
key: s.value,
|
|
168
|
+
value: s.value,
|
|
169
|
+
label: s.label,
|
|
170
|
+
sublabel: s.sublabel
|
|
151
171
|
}, null, 8, ["value", "label", "sublabel"])), 64))
|
|
152
172
|
]),
|
|
153
173
|
_: 1
|
|
154
174
|
}, 8, ["modelValue"])
|
|
155
175
|
]),
|
|
156
|
-
|
|
157
|
-
t[22] || (t[22] =
|
|
176
|
+
c("div", Me, [
|
|
177
|
+
t[22] || (t[22] = c("div", { class: "fm-typo-en-body-lg-600" }, "Number Settings", -1)),
|
|
158
178
|
n(T) === "bulk" ? (_(), x(M, { key: 0 }, [
|
|
159
|
-
d(
|
|
179
|
+
d(B, {
|
|
160
180
|
"model-value": n(u),
|
|
161
181
|
"label-placement": "right",
|
|
162
182
|
value: "true",
|
|
@@ -165,11 +185,11 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
165
185
|
"onUpdate:modelValue": t[1] || (t[1] = () => u.value = !n(u))
|
|
166
186
|
}, null, 8, ["model-value"]),
|
|
167
187
|
n(u) ? (_(), x(M, { key: 0 }, [
|
|
168
|
-
d(
|
|
188
|
+
d(g, {
|
|
169
189
|
"model-value": n(r).codeConfig.length || null,
|
|
170
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
190
|
+
"onUpdate:modelValue": t[2] || (t[2] = (s) => n(r).codeConfig.length = s),
|
|
171
191
|
label: "Code length",
|
|
172
|
-
rules: [(
|
|
192
|
+
rules: [(s) => Number(s) >= 1 || "Code length must at least 1"],
|
|
173
193
|
required: !0
|
|
174
194
|
}, null, 8, ["model-value", "rules"]),
|
|
175
195
|
d($, {
|
|
@@ -177,111 +197,111 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
177
197
|
"model-value": n(w),
|
|
178
198
|
items: V,
|
|
179
199
|
"helper-text": n(r).codeConfig.charset.length > 62 ? `${n(r).codeConfig.charset.substring(0, 62)}...` : n(r).codeConfig.charset,
|
|
180
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
181
|
-
w.value =
|
|
200
|
+
"onUpdate:modelValue": t[3] || (t[3] = (s) => {
|
|
201
|
+
w.value = s, n(r).codeConfig.charset = s;
|
|
182
202
|
})
|
|
183
203
|
}, null, 8, ["model-value", "helper-text"]),
|
|
184
204
|
n(w) === "" ? (_(), I(F, {
|
|
185
205
|
key: 0,
|
|
186
206
|
modelValue: n(r).codeConfig.charset,
|
|
187
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
207
|
+
"onUpdate:modelValue": t[4] || (t[4] = (s) => n(r).codeConfig.charset = s),
|
|
188
208
|
label: "Custom Charset",
|
|
189
209
|
required: ""
|
|
190
210
|
}, null, 8, ["modelValue"])) : O("", !0),
|
|
191
|
-
|
|
211
|
+
c("div", Ve, [
|
|
192
212
|
d(F, {
|
|
193
213
|
modelValue: n(r).codeConfig.prefix,
|
|
194
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
214
|
+
"onUpdate:modelValue": t[5] || (t[5] = (s) => n(r).codeConfig.prefix = s),
|
|
195
215
|
label: "Prefix (Optional)"
|
|
196
216
|
}, null, 8, ["modelValue"]),
|
|
197
217
|
d(F, {
|
|
198
218
|
modelValue: n(r).codeConfig.suffix,
|
|
199
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
219
|
+
"onUpdate:modelValue": t[6] || (t[6] = (s) => n(r).codeConfig.suffix = s),
|
|
200
220
|
label: "Suffix (Optional)"
|
|
201
221
|
}, null, 8, ["modelValue"])
|
|
202
222
|
]),
|
|
203
223
|
d(F, {
|
|
204
224
|
modelValue: n(r).codeConfig.pattern,
|
|
205
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
225
|
+
"onUpdate:modelValue": t[7] || (t[7] = (s) => n(r).codeConfig.pattern = s),
|
|
206
226
|
label: "Pattern",
|
|
207
227
|
required: !0
|
|
208
228
|
}, null, 8, ["modelValue"])
|
|
209
229
|
], 64)) : O("", !0),
|
|
210
230
|
d(F, {
|
|
211
231
|
modelValue: n(r).quantity,
|
|
212
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
232
|
+
"onUpdate:modelValue": t[8] || (t[8] = (s) => n(r).quantity = s),
|
|
213
233
|
label: "Number of code",
|
|
214
234
|
rules: [
|
|
215
|
-
(
|
|
216
|
-
(
|
|
235
|
+
(s) => s >= 1 || "Quantity cannot be less than 1",
|
|
236
|
+
(s) => s <= 1e4 || "Quantity cannot more than 10,000"
|
|
217
237
|
],
|
|
218
238
|
required: !0,
|
|
219
239
|
"helper-text": `${n(r).quantity} card will be created`
|
|
220
240
|
}, null, 8, ["modelValue", "rules", "helper-text"])
|
|
221
241
|
], 64)) : O("", !0),
|
|
222
|
-
n(T) !== "bulk" ? (_(), I(
|
|
242
|
+
n(T) !== "bulk" ? (_(), I(ge, {
|
|
223
243
|
key: 1,
|
|
224
244
|
modelValue: n(r).code,
|
|
225
|
-
"onUpdate:modelValue": t[9] || (t[9] = (
|
|
245
|
+
"onUpdate:modelValue": t[9] || (t[9] = (s) => n(r).code = s),
|
|
226
246
|
label: "Custom Card Number",
|
|
227
|
-
rules: [(
|
|
247
|
+
rules: [(s) => n(T) != "single" || !!s || "Custom code is required"],
|
|
228
248
|
placeholder: "(For multiple numbers, please enter in the new row.)"
|
|
229
249
|
}, null, 8, ["modelValue", "rules"])) : O("", !0)
|
|
230
250
|
]),
|
|
231
|
-
|
|
232
|
-
t[23] || (t[23] =
|
|
233
|
-
d(
|
|
251
|
+
c("div", Ge, [
|
|
252
|
+
t[23] || (t[23] = c("div", { class: "fm-typo-en-body-lg-600" }, "Card Settings", -1)),
|
|
253
|
+
d(B, {
|
|
234
254
|
"label-placement": "right",
|
|
235
255
|
label: "Set card number on bind",
|
|
236
256
|
"model-value": n(r).setCardOnBind || !1,
|
|
237
|
-
"onUpdate:modelValue": t[10] || (t[10] = (
|
|
257
|
+
"onUpdate:modelValue": t[10] || (t[10] = (s) => n(r).setCardOnBind = s)
|
|
238
258
|
}, null, 8, ["model-value"]),
|
|
239
|
-
d(
|
|
259
|
+
d(de, {
|
|
240
260
|
label: "Activate bundle on bind",
|
|
241
261
|
placeholder: "Select bundle",
|
|
242
|
-
items: n(
|
|
262
|
+
items: n(a).filter((s) => !s.stripePriceId).map((s) => ({ label: s.name, value: s._id })),
|
|
243
263
|
modelValue: n(r).bundle,
|
|
244
|
-
"onUpdate:modelValue": t[12] || (t[12] = (
|
|
264
|
+
"onUpdate:modelValue": t[12] || (t[12] = (s) => n(r).bundle = s)
|
|
245
265
|
}, {
|
|
246
266
|
append: k(() => [
|
|
247
267
|
n(r).bundle ? (_(), I(K, {
|
|
248
268
|
key: 0,
|
|
249
269
|
icon: "link_off",
|
|
250
270
|
variant: "plain",
|
|
251
|
-
onClick: t[11] || (t[11] = (
|
|
271
|
+
onClick: t[11] || (t[11] = (s) => n(r).bundle = void 0)
|
|
252
272
|
})) : O("", !0)
|
|
253
273
|
]),
|
|
254
274
|
_: 1
|
|
255
275
|
}, 8, ["items", "modelValue"]),
|
|
256
|
-
(
|
|
276
|
+
(ae = (C = n(E).store) == null ? void 0 : C.stripe) != null && ae.apiKey ? (_(), I(de, {
|
|
257
277
|
key: 0,
|
|
258
278
|
label: "Linked subscription bundle",
|
|
259
279
|
placeholder: "Select bundle",
|
|
260
|
-
items: n(
|
|
280
|
+
items: n(a).filter((s) => s.stripePriceId).map((s) => ({ label: s.name, value: s._id })),
|
|
261
281
|
modelValue: n(r).subscriptionBundle,
|
|
262
|
-
"onUpdate:modelValue": t[14] || (t[14] = (
|
|
282
|
+
"onUpdate:modelValue": t[14] || (t[14] = (s) => n(r).subscriptionBundle = s)
|
|
263
283
|
}, {
|
|
264
284
|
append: k(() => [
|
|
265
285
|
n(r).subscriptionBundle ? (_(), I(K, {
|
|
266
286
|
key: 0,
|
|
267
287
|
icon: "link_off",
|
|
268
288
|
variant: "plain",
|
|
269
|
-
onClick: t[13] || (t[13] = (
|
|
289
|
+
onClick: t[13] || (t[13] = (s) => n(r).subscriptionBundle = void 0)
|
|
270
290
|
})) : O("", !0)
|
|
271
291
|
]),
|
|
272
292
|
_: 1
|
|
273
293
|
}, 8, ["items", "modelValue"])) : O("", !0)
|
|
274
294
|
]),
|
|
275
295
|
n(E).membership.design ? (_(), x("div", Le, [
|
|
276
|
-
|
|
277
|
-
t[24] || (t[24] =
|
|
278
|
-
|
|
279
|
-
src: (re = n(
|
|
296
|
+
c("div", je, [
|
|
297
|
+
t[24] || (t[24] = c("p", { class: "fm-typo-en-title-sm-800" }, "Design preview", -1)),
|
|
298
|
+
c("img", {
|
|
299
|
+
src: (re = n(P)) == null ? void 0 : re.image,
|
|
280
300
|
class: "aspect-[16/9]"
|
|
281
301
|
}, null, 8, $e),
|
|
282
|
-
|
|
283
|
-
(_(!0), x(M, null, Z(n(E).membership.design, (
|
|
284
|
-
src:
|
|
302
|
+
c("div", Ke, [
|
|
303
|
+
(_(!0), x(M, null, Z(n(E).membership.design, (s, Y) => (_(), x("img", {
|
|
304
|
+
src: s.image,
|
|
285
305
|
key: `image_${Y}`,
|
|
286
306
|
class: Ee(["w-[112px] h-[63px] cursor-pointer", `${n(A) === Y ? "border-[2px] border-fm-color-primary" : ""}`]),
|
|
287
307
|
onClick: (_n) => A.value = Y,
|
|
@@ -301,7 +321,7 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
301
321
|
};
|
|
302
322
|
}
|
|
303
323
|
});
|
|
304
|
-
var z = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_ef23f16d-b59a-4a91-8330-b10907a9f5b5", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.36", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", 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.4 npm/? node/v20.18.1 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_ef23f16d-b59a-4a91-8330-b10907a9f5b5", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.1", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.1/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-8.12", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.15.0-beta.5", npm_package_dependencies_fabric: "^6.4.2", 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: "", SYSTEMD_EXEC_PID: "706", npm_package_dependencies__feedmepos_ui_library: "1.3.5", npm_package_dependencies_dayjs: "^1.11.11", 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_i18next: "^24.2.1", npm_package_devDependencies_tailwindcss: "^3.4.4", npm_package_devDependencies_typescript: "^5.4.5", 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.21", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250105.1.0", 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__feedmepos_custom_attributes: "0.0.0-rc.3", npm_package_dependencies_unplugin_auto_import: "^0.17.6", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.10/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.4/x64", JOURNAL_STREAM: "8:5740", GITHUB_WORKFLOW: "Publish mf-connect - dev", _: "/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/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^9.0.8", npm_package_devDependencies_unlayer_types: "^1.111.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12882174518", STATS_VMFE: "true", npm_package_dependencies_bson_objectid: "^2.0.4", npm_package_devDependencies__types_lodash: "^4.17.5", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "c91ba3f32aa737511901800c5a01e6e10324655b", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", GITHUB_WORKFLOW_REF: "feedmepos/marketing-services/.github/workflows/[DEV] publish-mf-connect.yml@refs/heads/dev", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/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.4/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.4/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/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_a1ca9c20-1d53-4c34-9d08-f51c17e109be", INVOCATION_ID: "d09b735b78fe443ab094a44150463e53", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.1/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", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "43", 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.15", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 403", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/marketing-services", STATS_D_D: "false", 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.10.4", npm_lifecycle_script: "vite build --mode fmmf", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_rrule: "^2.8.1", npm_package_dependencies_vue3_lottie: "^3.3.0", GITHUB_REPOSITORY_ID: "615151795", GITHUB_ACTIONS: "true", STATS_PIP: "false", 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.4/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.0.16-beta.10", 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", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "c91ba3f32aa737511901800c5a01e6e10324655b", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.3", 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.2", npm_package_dependencies_qrcode: "^1.5.3", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_ef23f16d-b59a-4a91-8330-b10907a9f5b5", 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.4/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", 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_ef23f16d-b59a-4a91-8330-b10907a9f5b5", npm_package_exports___types: "./dist/packages/connect/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", 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", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_pnpm_overrides__feedmepos_mf_common: "1.15.0-beta.5", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_ef23f16d-b59a-4a91-8330-b10907a9f5b5", 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", 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" } }, J = Math.floor(Math.random() * 16777215), ce = p.index = parseInt(Math.random() * 16777215, 10), me = (typeof z > "u" || typeof z.pid != "number" ? Math.floor(Math.random() * 1e5) : z.pid) % 65535, ue = (() => {
|
|
324
|
+
var z = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_89a90476-c5ed-4ed9-8a9e-bc3708cff6a8", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.36", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", 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.4 npm/? node/v20.18.1 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_89a90476-c5ed-4ed9-8a9e-bc3708cff6a8", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.1", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.1/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-8.12", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.15.0-beta.6", npm_package_dependencies_fabric: "^6.4.2", 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: "", SYSTEMD_EXEC_PID: "709", npm_package_dependencies__feedmepos_ui_library: "1.3.5", npm_package_dependencies_dayjs: "^1.11.11", 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_i18next: "^24.2.1", npm_package_devDependencies_tailwindcss: "^3.4.4", npm_package_devDependencies_typescript: "^5.4.5", 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.21", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250120.5.0", 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__feedmepos_custom_attributes: "0.0.0-rc.3", npm_package_dependencies_unplugin_auto_import: "^0.17.6", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.10/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.4/x64", JOURNAL_STREAM: "8:5039", GITHUB_WORKFLOW: "Publish mf-connect - dev", _: "/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/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^9.0.8", npm_package_devDependencies_unlayer_types: "^1.111.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12944082142", STATS_VMFE: "true", npm_package_dependencies_bson_objectid: "^2.0.4", npm_package_devDependencies__types_lodash: "^4.17.5", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "1a9e1d06300142c3287e3ff14d1594b6ef013295", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", GITHUB_WORKFLOW_REF: "feedmepos/marketing-services/.github/workflows/[DEV] publish-mf-connect.yml@refs/heads/dev", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/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.4/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.4/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/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_f5da4cc3-06b0-45c3-a7d1-c7f42ab95a1c", INVOCATION_ID: "ecbe3932a041403da1f78379ea108dd0", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.1/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", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "44", 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.17", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 296", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/marketing-services", STATS_D_D: "false", 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.10.4", npm_lifecycle_script: "vite build --mode fmmf", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_rrule: "^2.8.1", npm_package_dependencies_vue3_lottie: "^3.3.0", GITHUB_REPOSITORY_ID: "615151795", GITHUB_ACTIONS: "true", STATS_PIP: "false", 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.4/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.0.16-beta.12", 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", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "1a9e1d06300142c3287e3ff14d1594b6ef013295", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.3", 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.2", npm_package_dependencies_qrcode: "^1.5.3", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_89a90476-c5ed-4ed9-8a9e-bc3708cff6a8", 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.4/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", 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_89a90476-c5ed-4ed9-8a9e-bc3708cff6a8", npm_package_exports___types: "./dist/packages/connect/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", 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", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", 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.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_89a90476-c5ed-4ed9-8a9e-bc3708cff6a8", 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", 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" } }, J = Math.floor(Math.random() * 16777215), me = p.index = parseInt(Math.random() * 16777215, 10), ce = (typeof z > "u" || typeof z.pid != "number" ? Math.floor(Math.random() * 1e5) : z.pid) % 65535, ue = (() => {
|
|
305
325
|
try {
|
|
306
326
|
return _Buffer;
|
|
307
327
|
} catch {
|
|
@@ -313,9 +333,9 @@ var z = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/sa
|
|
|
313
333
|
}
|
|
314
334
|
})(), W = function(e) {
|
|
315
335
|
return !!(e != null && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e));
|
|
316
|
-
},
|
|
336
|
+
}, fe = [];
|
|
317
337
|
for (var y = 0; y < 256; y++)
|
|
318
|
-
|
|
338
|
+
fe[y] = (y <= 15 ? "0" : "") + y.toString(16);
|
|
319
339
|
var _e = new RegExp("^[0-9a-fA-F]{24}$"), j = [];
|
|
320
340
|
y = 0;
|
|
321
341
|
for (; y < 10; ) j[48 + y] = y++;
|
|
@@ -380,7 +400,7 @@ p.prototype = {
|
|
|
380
400
|
if (W(this.id))
|
|
381
401
|
return this.id.toString("hex");
|
|
382
402
|
for (var e = "", i = 0; i < this.id.length; i++)
|
|
383
|
-
e +=
|
|
403
|
+
e += fe[this.id.charCodeAt(i)];
|
|
384
404
|
return e;
|
|
385
405
|
},
|
|
386
406
|
/**
|
|
@@ -421,8 +441,8 @@ p.prototype = {
|
|
|
421
441
|
J >> 16 & 255,
|
|
422
442
|
J >> 8 & 255,
|
|
423
443
|
J & 255,
|
|
424
|
-
|
|
425
|
-
|
|
444
|
+
ce >> 8 & 255,
|
|
445
|
+
ce & 255,
|
|
426
446
|
i >> 16 & 255,
|
|
427
447
|
i >> 8 & 255,
|
|
428
448
|
i & 255
|
|
@@ -430,7 +450,7 @@ p.prototype = {
|
|
|
430
450
|
}
|
|
431
451
|
};
|
|
432
452
|
function ze() {
|
|
433
|
-
return
|
|
453
|
+
return me = (me + 1) % 16777215;
|
|
434
454
|
}
|
|
435
455
|
function Je(e, i) {
|
|
436
456
|
return i = i.toString(16), i.length === e ? i : "00000000".substring(i.length, e) + i;
|
|
@@ -441,23 +461,23 @@ p.prototype[Qe] = function() {
|
|
|
441
461
|
};
|
|
442
462
|
p.prototype.toJSON = p.prototype.toHexString;
|
|
443
463
|
p.prototype.toString = p.prototype.toHexString;
|
|
444
|
-
const Ze = /* @__PURE__ */
|
|
464
|
+
const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
445
465
|
key: 0,
|
|
446
466
|
class: "grid grid-cols-1 gap-8"
|
|
447
|
-
}, nn = { class: "flex items-center gap-8" }, tn = { class: "flex items-center gap-8" }, on = 5,
|
|
467
|
+
}, nn = { class: "flex items-center gap-8" }, tn = { class: "flex items-center gap-8" }, on = 5, sn = /* @__PURE__ */ ee({
|
|
448
468
|
__name: "CardDesignSheet",
|
|
449
469
|
emits: ["success"],
|
|
450
470
|
setup(e, { expose: i, emit: N }) {
|
|
451
|
-
const { minor: U } =
|
|
471
|
+
const { minor: U } = te, E = oe(), R = Te(), v = b(!1);
|
|
452
472
|
b(), b(!1);
|
|
453
|
-
const
|
|
473
|
+
const m = b(), h = b(null);
|
|
454
474
|
G(() => {
|
|
455
|
-
var u,
|
|
456
|
-
return Math.min((((
|
|
475
|
+
var u, a;
|
|
476
|
+
return Math.min((((a = (u = m.value) == null ? void 0 : u.design) == null ? void 0 : a.length) ?? 0) + 1, on);
|
|
457
477
|
});
|
|
458
478
|
const L = N, r = G(() => {
|
|
459
|
-
var u,
|
|
460
|
-
return ((
|
|
479
|
+
var u, a;
|
|
480
|
+
return ((a = (u = E.membership) == null ? void 0 : u.design) == null ? void 0 : a.filter((o) => o.image)) || [];
|
|
461
481
|
}), S = b(!1);
|
|
462
482
|
function V(u) {
|
|
463
483
|
S.value = u;
|
|
@@ -469,18 +489,18 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
469
489
|
await U(
|
|
470
490
|
async () => {
|
|
471
491
|
var o;
|
|
472
|
-
const u =
|
|
473
|
-
if (
|
|
474
|
-
const l = Ze().toHexString(), t = await
|
|
475
|
-
|
|
492
|
+
const u = xe(m.value), a = Oe.parse(u);
|
|
493
|
+
if (a.design = (a == null ? void 0 : a.design) || [], h.value) {
|
|
494
|
+
const l = Ze().toHexString(), t = await le.update(
|
|
495
|
+
le.designPath(l, h.value),
|
|
476
496
|
h.value
|
|
477
497
|
);
|
|
478
|
-
(o =
|
|
498
|
+
(o = a.design) == null || o.push({
|
|
479
499
|
_id: l,
|
|
480
500
|
image: t
|
|
481
501
|
});
|
|
482
502
|
}
|
|
483
|
-
await
|
|
503
|
+
await se.update(a), await P(), await L("success"), h.value = null, v.value = !1;
|
|
484
504
|
},
|
|
485
505
|
{
|
|
486
506
|
message: "Saving card design",
|
|
@@ -488,42 +508,42 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
488
508
|
}
|
|
489
509
|
);
|
|
490
510
|
}
|
|
491
|
-
async function A(u,
|
|
492
|
-
u ? h.value = u :
|
|
511
|
+
async function A(u, a) {
|
|
512
|
+
u ? h.value = u : a && R.open({
|
|
493
513
|
title: "Delete Design",
|
|
494
514
|
message: "Are you sure you want to delete this design?",
|
|
495
515
|
primaryActions: { text: "Delete", close: !0 },
|
|
496
516
|
secondaryActions: { text: "Cancel", close: !1 }
|
|
497
517
|
}).onPrimary(async () => {
|
|
498
518
|
var l, t;
|
|
499
|
-
const o = (l =
|
|
500
|
-
console.log(o), o !== -1 && ((t =
|
|
519
|
+
const o = (l = m.value.design) == null ? void 0 : l.findIndex((D) => D._id == a);
|
|
520
|
+
console.log(o), o !== -1 && ((t = m.value.design) == null || t.splice(o, 1)), await T();
|
|
501
521
|
}).onSecondary(() => {
|
|
502
522
|
R.close();
|
|
503
523
|
});
|
|
504
524
|
}
|
|
505
|
-
async function
|
|
506
|
-
await E.readMembership(),
|
|
525
|
+
async function P() {
|
|
526
|
+
await E.readMembership(), m.value = E.membership;
|
|
507
527
|
}
|
|
508
528
|
return i({
|
|
509
529
|
showSheet: V
|
|
510
530
|
}), ne(async () => {
|
|
511
|
-
await
|
|
512
|
-
}), (u,
|
|
513
|
-
const o =
|
|
531
|
+
await P(), r.value.length || (v.value = !0);
|
|
532
|
+
}), (u, a) => {
|
|
533
|
+
const o = f("FmButton"), l = f("FmSideSheet");
|
|
514
534
|
return _(), I(l, {
|
|
515
535
|
"max-width": 560,
|
|
516
536
|
"dismiss-away": !0,
|
|
517
537
|
header: "Manage Design",
|
|
518
538
|
modelValue: n(S),
|
|
519
539
|
"onUpdate:modelValue": [
|
|
520
|
-
|
|
521
|
-
|
|
540
|
+
a[2] || (a[2] = (t) => Q(S) ? S.value = t : null),
|
|
541
|
+
a[3] || (a[3] = (t) => S.value = t)
|
|
522
542
|
]
|
|
523
543
|
}, ye({
|
|
524
544
|
default: k(() => [
|
|
525
545
|
n(v) ? O("", !0) : (_(), x("div", en, [
|
|
526
|
-
(_(!0), x(M, null, Z(n(r), (t) => (_(), I(
|
|
546
|
+
(_(!0), x(M, null, Z(n(r), (t) => (_(), I(pe, {
|
|
527
547
|
key: String(t._id),
|
|
528
548
|
"image-fit": "cover",
|
|
529
549
|
label: "",
|
|
@@ -545,7 +565,7 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
545
565
|
_: 2
|
|
546
566
|
}, 1032, ["thumbnail"]))), 128))
|
|
547
567
|
])),
|
|
548
|
-
n(v) ? (_(), I(
|
|
568
|
+
n(v) ? (_(), I(pe, {
|
|
549
569
|
key: 1,
|
|
550
570
|
"image-fit": "cover",
|
|
551
571
|
label: "",
|
|
@@ -560,7 +580,7 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
560
580
|
n(v) ? {
|
|
561
581
|
name: "side-sheet-footer",
|
|
562
582
|
fn: k(() => [
|
|
563
|
-
|
|
583
|
+
c("div", tn, [
|
|
564
584
|
d(o, {
|
|
565
585
|
label: "Save",
|
|
566
586
|
onClick: T,
|
|
@@ -570,7 +590,7 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
570
590
|
label: "Cancel",
|
|
571
591
|
type: "button",
|
|
572
592
|
variant: "tertiary",
|
|
573
|
-
onClick:
|
|
593
|
+
onClick: a[1] || (a[1] = (t) => v.value = !1)
|
|
574
594
|
})
|
|
575
595
|
])
|
|
576
596
|
]),
|
|
@@ -578,7 +598,7 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
578
598
|
} : {
|
|
579
599
|
name: "side-sheet-footer",
|
|
580
600
|
fn: k(() => [
|
|
581
|
-
|
|
601
|
+
c("div", nn, [
|
|
582
602
|
d(o, {
|
|
583
603
|
label: "Add Design",
|
|
584
604
|
onClick: w
|
|
@@ -587,7 +607,7 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
587
607
|
label: "Cancel",
|
|
588
608
|
type: "button",
|
|
589
609
|
variant: "tertiary",
|
|
590
|
-
onClick:
|
|
610
|
+
onClick: a[0] || (a[0] = (t) => S.value = !1)
|
|
591
611
|
})
|
|
592
612
|
])
|
|
593
613
|
]),
|
|
@@ -596,29 +616,29 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
596
616
|
]), 1032, ["modelValue"]);
|
|
597
617
|
};
|
|
598
618
|
}
|
|
599
|
-
}),
|
|
619
|
+
}), an = { class: "flex items-center" }, rn = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ln = { class: "px-24 flex flex-col pb-24 gap-y-16" }, dn = { class: "flex items-center justify-end" }, pn = { class: "flex flex-col gap-16 text-center" }, mn = { class: "fm-typo-en-title-sm-800" }, cn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, un = { class: "flex gap-x-8" }, Mn = /* @__PURE__ */ ee({
|
|
600
620
|
__name: "Card",
|
|
601
621
|
setup(e) {
|
|
602
|
-
const { minor: i, global: N } =
|
|
603
|
-
() => v.sortedStoreCategories.flatMap((
|
|
622
|
+
const { minor: i, global: N } = te, U = b(), E = b(), R = Ne(), v = oe(), { t: m } = Pe(), h = G(
|
|
623
|
+
() => v.sortedStoreCategories.flatMap((a) => a.bundles)
|
|
604
624
|
), L = [
|
|
605
625
|
{
|
|
606
|
-
header:
|
|
607
|
-
accessorFn: (
|
|
626
|
+
header: m("connect.loyalty.card.table.card_number"),
|
|
627
|
+
accessorFn: (a) => a.serialNumber
|
|
608
628
|
},
|
|
609
629
|
{
|
|
610
|
-
header:
|
|
630
|
+
header: m("connect.loyalty.card.table.redeemed_by"),
|
|
611
631
|
accessorKey: "user",
|
|
612
632
|
enableSorting: !1,
|
|
613
|
-
cell(
|
|
614
|
-
const o =
|
|
633
|
+
cell(a) {
|
|
634
|
+
const o = a.row.original.pf_member;
|
|
615
635
|
return X(
|
|
616
636
|
"div",
|
|
617
637
|
{
|
|
618
638
|
class: "flex items-center gap-x-8"
|
|
619
639
|
},
|
|
620
640
|
[
|
|
621
|
-
X(
|
|
641
|
+
X(Re.FmAvatar, {
|
|
622
642
|
name: o != null && o.photoUrl || o == null ? void 0 : o.name,
|
|
623
643
|
src: (o == null ? void 0 : o.photoUrl) ?? void 0,
|
|
624
644
|
size: "sm"
|
|
@@ -629,52 +649,52 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
629
649
|
}
|
|
630
650
|
},
|
|
631
651
|
{
|
|
632
|
-
header:
|
|
633
|
-
accessorFn: (
|
|
652
|
+
header: m("connect.loyalty.card.table.phone"),
|
|
653
|
+
accessorFn: (a) => {
|
|
634
654
|
var o;
|
|
635
|
-
return ((o =
|
|
655
|
+
return ((o = a.pf_member) == null ? void 0 : o.phoneNumber) || "-";
|
|
636
656
|
},
|
|
637
657
|
accessorKey: "pf_member.phoneNumber"
|
|
638
658
|
},
|
|
639
659
|
{
|
|
640
|
-
header:
|
|
660
|
+
header: m("connect.loyalty.card.table.created_at"),
|
|
641
661
|
accessorKey: "_id",
|
|
642
|
-
accessorFn: (
|
|
662
|
+
accessorFn: (a) => ie(Be(a._id.toString())).format("DD MMM YYYY hh:mmA")
|
|
643
663
|
},
|
|
644
664
|
{
|
|
645
|
-
header:
|
|
646
|
-
accessorFn: (
|
|
665
|
+
header: m("connect.loyalty.card.table.bundle"),
|
|
666
|
+
accessorFn: (a) => {
|
|
647
667
|
var o;
|
|
648
|
-
return ((o = h.value.find((l) => l._id ===
|
|
668
|
+
return ((o = h.value.find((l) => l._id === a.bundle)) == null ? void 0 : o.name) || "-";
|
|
649
669
|
}
|
|
650
670
|
},
|
|
651
671
|
{
|
|
652
|
-
header:
|
|
672
|
+
header: m("connect.loyalty.card.table.redeemed_at"),
|
|
653
673
|
accessorKey: "redeemedAt",
|
|
654
|
-
accessorFn: (
|
|
674
|
+
accessorFn: (a) => a.redeemedAt ? ie(a.redeemedAt).format("DD MMM YYYY hh:mmA") : "-"
|
|
655
675
|
}
|
|
656
|
-
], { tableMeta: r, rowData: S, onSort: V, debouncedFetchData: w, onSearch: T } =
|
|
676
|
+
], { tableMeta: r, rowData: S, onSort: V, debouncedFetchData: w, onSearch: T } = He(se.readCards);
|
|
657
677
|
async function A() {
|
|
658
|
-
var
|
|
659
|
-
await w(), (
|
|
678
|
+
var a;
|
|
679
|
+
await w(), (a = U.value) == null || a.showSheet(!1);
|
|
660
680
|
}
|
|
661
|
-
const
|
|
681
|
+
const P = G(() => R.isPremium ? [
|
|
662
682
|
{
|
|
663
|
-
label:
|
|
683
|
+
label: m("connect.loyalty.card.actions.create"),
|
|
664
684
|
value: "create",
|
|
665
685
|
isPrimary: !0
|
|
666
686
|
},
|
|
667
687
|
{
|
|
668
|
-
label:
|
|
688
|
+
label: m("connect.loyalty.card.actions.manage_design"),
|
|
669
689
|
value: "design",
|
|
670
690
|
isPrimary: !0
|
|
671
691
|
}
|
|
672
692
|
] : []);
|
|
673
|
-
async function u(
|
|
674
|
-
const o = new
|
|
693
|
+
async function u(a) {
|
|
694
|
+
const o = new we(), l = a.map((t) => ({
|
|
675
695
|
CardNumber: t
|
|
676
696
|
}));
|
|
677
|
-
o.addRecords(l), await
|
|
697
|
+
o.addRecords(l), await De(
|
|
678
698
|
o.buildExcel(),
|
|
679
699
|
`cards-${(/* @__PURE__ */ new Date()).toISOString()}.xlsx`,
|
|
680
700
|
{
|
|
@@ -688,20 +708,20 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
688
708
|
await N(async () => {
|
|
689
709
|
await R.readPremium(), await v.readMemberStore(), await v.readMembership(), await A();
|
|
690
710
|
});
|
|
691
|
-
}), (
|
|
692
|
-
const l =
|
|
711
|
+
}), (a, o) => {
|
|
712
|
+
const l = f("FmPill"), t = f("FmPageHead"), D = f("FmSearch"), H = f("FmButton"), B = f("FmCard");
|
|
693
713
|
return _(), x(M, null, [
|
|
694
714
|
d(t, {
|
|
695
|
-
title: n(
|
|
696
|
-
actions: n(
|
|
697
|
-
"onClick:action": o[0] || (o[0] = (
|
|
715
|
+
title: n(m)("connect.loyalty.card.title"),
|
|
716
|
+
actions: n(P),
|
|
717
|
+
"onClick:action": o[0] || (o[0] = (g) => {
|
|
698
718
|
var $, F;
|
|
699
|
-
console.log(
|
|
719
|
+
console.log(g), g === "design" && (($ = n(E)) == null || $.showSheet(!0)), g === "create" && ((F = n(U)) == null || F.showSheet(!0));
|
|
700
720
|
})
|
|
701
721
|
}, {
|
|
702
722
|
title: k(() => [
|
|
703
|
-
|
|
704
|
-
|
|
723
|
+
c("div", an, [
|
|
724
|
+
c("span", rn, q(n(m)("connect.loyalty.card.title")), 1),
|
|
705
725
|
d(l, {
|
|
706
726
|
class: "ml-8",
|
|
707
727
|
variant: "premium"
|
|
@@ -710,14 +730,14 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
710
730
|
]),
|
|
711
731
|
_: 1
|
|
712
732
|
}, 8, ["title", "actions"]),
|
|
713
|
-
|
|
733
|
+
c("div", ln, [
|
|
714
734
|
n(S).length > 0 || n(S).length <= 0 && n(r).searchValue || n(r).pageCount > 0 ? (_(), x(M, { key: 0 }, [
|
|
715
|
-
|
|
735
|
+
c("div", dn, [
|
|
716
736
|
d(D, {
|
|
717
737
|
class: "mt-4",
|
|
718
738
|
modelValue: n(r).searchValue,
|
|
719
739
|
"onUpdate:modelValue": [
|
|
720
|
-
o[1] || (o[1] = (
|
|
740
|
+
o[1] || (o[1] = (g) => n(r).searchValue = g),
|
|
721
741
|
n(T)
|
|
722
742
|
],
|
|
723
743
|
placeholder: "Search",
|
|
@@ -726,10 +746,10 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
726
746
|
d(H, {
|
|
727
747
|
icon: "ios_share",
|
|
728
748
|
variant: "tertiary",
|
|
729
|
-
onClick: Se(n(
|
|
749
|
+
onClick: Se(n(Ue), ["prevent"])
|
|
730
750
|
}, null, 8, ["onClick"])
|
|
731
751
|
]),
|
|
732
|
-
d(
|
|
752
|
+
d(Fe, {
|
|
733
753
|
loading: n(r).isLoading,
|
|
734
754
|
"row-data": n(S),
|
|
735
755
|
"row-count": n(r).totalRows,
|
|
@@ -739,45 +759,45 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
739
759
|
"page-index": n(r).pageIndex,
|
|
740
760
|
"page-size": n(r).pageSize,
|
|
741
761
|
onSortChange: n(V),
|
|
742
|
-
onPageChange: o[2] || (o[2] = (
|
|
762
|
+
onPageChange: o[2] || (o[2] = (g) => {
|
|
743
763
|
n(w)({
|
|
744
|
-
pageSize:
|
|
745
|
-
pageIndex:
|
|
764
|
+
pageSize: g.pageSize,
|
|
765
|
+
pageIndex: g.pageIndex
|
|
746
766
|
});
|
|
747
767
|
})
|
|
748
768
|
}, null, 8, ["loading", "row-data", "row-count", "page-count", "page-index", "page-size", "onSortChange"])
|
|
749
|
-
], 64)) : (_(), I(
|
|
769
|
+
], 64)) : (_(), I(B, {
|
|
750
770
|
key: 1,
|
|
751
771
|
variant: "outlined",
|
|
752
772
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
753
773
|
}, {
|
|
754
774
|
default: k(() => [
|
|
755
|
-
o[5] || (o[5] =
|
|
756
|
-
src:
|
|
775
|
+
o[5] || (o[5] = c("img", {
|
|
776
|
+
src: ke,
|
|
757
777
|
class: "aspect-square w-[150px]"
|
|
758
778
|
}, null, -1)),
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
779
|
+
c("div", pn, [
|
|
780
|
+
c("div", mn, q(n(m)("connect.loyalty.card.empty_state.title")), 1),
|
|
781
|
+
c("div", cn, q(n(m)("connect.loyalty.card.empty_state.description")), 1)
|
|
762
782
|
]),
|
|
763
|
-
|
|
783
|
+
c("div", un, [
|
|
764
784
|
d(H, {
|
|
765
785
|
variant: "primary",
|
|
766
|
-
label: n(
|
|
786
|
+
label: n(m)("connect.loyalty.card.actions.add"),
|
|
767
787
|
icon: "add",
|
|
768
788
|
disabled: !n(R).isPremium,
|
|
769
789
|
onClick: o[3] || (o[3] = () => {
|
|
770
|
-
var
|
|
771
|
-
return (
|
|
790
|
+
var g;
|
|
791
|
+
return (g = n(U)) == null ? void 0 : g.showSheet(!0);
|
|
772
792
|
})
|
|
773
793
|
}, null, 8, ["label", "disabled"]),
|
|
774
794
|
d(H, {
|
|
775
795
|
variant: "secondary",
|
|
776
|
-
label: n(
|
|
796
|
+
label: n(m)("connect.loyalty.card.actions.manage_design"),
|
|
777
797
|
disabled: !n(R).isPremium,
|
|
778
798
|
onClick: o[4] || (o[4] = () => {
|
|
779
|
-
var
|
|
780
|
-
return (
|
|
799
|
+
var g;
|
|
800
|
+
return (g = n(E)) == null ? void 0 : g.showSheet(!0);
|
|
781
801
|
})
|
|
782
802
|
}, null, 8, ["label", "disabled"])
|
|
783
803
|
])
|
|
@@ -790,7 +810,7 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
790
810
|
onSuccess: A,
|
|
791
811
|
onExport: u
|
|
792
812
|
}, null, 512),
|
|
793
|
-
d(
|
|
813
|
+
d(sn, {
|
|
794
814
|
ref_key: "designSheetRef",
|
|
795
815
|
ref: E,
|
|
796
816
|
onSuccess: A
|
|
@@ -801,5 +821,5 @@ const Ze = /* @__PURE__ */ Re(qe), en = {
|
|
|
801
821
|
}
|
|
802
822
|
});
|
|
803
823
|
export {
|
|
804
|
-
|
|
824
|
+
Mn as default
|
|
805
825
|
};
|