@feedmepos/mf-connect 0.1.0-beta.7 → 0.1.0-beta.9
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-BMpS6jWb.js → Analytic-CMXUjK_F.js} +9 -9
- package/dist/{App-DalxIjTu.js → App-DQUbRsdA.js} +6 -6
- package/dist/{Broadcast-uMAvsC--.js → Broadcast-DowFtHv6.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-JxbENan8.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D-BFllvG.js} +8 -8
- package/dist/{Card-DV8-g69L.js → Card-C7rhL0pV.js} +83 -83
- package/dist/{Collections-DRafEHT1.js → Collections-B-1wlk3r.js} +4 -4
- package/dist/{Credit-QlnatflM.js → Credit-DDjozmoF.js} +8 -8
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-TDoMehSB.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-C_ZKNWzb.js} +24 -24
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BE07lc4M.js → EffectSheet.vue_vue_type_style_index_0_lang-pwMuIgs5.js} +6 -6
- package/dist/{Experience-Czy41ifp.js → Experience-BbE-c1Op.js} +8 -8
- package/dist/{Game-CD3zSitz.js → Game-DQdRpaN-.js} +8 -8
- package/dist/{Marketing-NNes8z6Q.js → Marketing-Dgmxzg4h.js} +5 -5
- package/dist/{Member-CTqBgYuV.js → Member-w23oRVwN.js} +4 -4
- package/dist/{MemberList-B99tS5ce.js → MemberList-BLIdjznQ.js} +248 -246
- package/dist/{MemberTransactions-D1YCXPOg.js → MemberTransactions-zSxSnUkK.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CtM73bcN.js → MessageInput.vue_vue_type_script_setup_true_lang-Dy_lMdZA.js} +2 -2
- package/dist/{Mission-XbBVKBiE.js → Mission-Cjt0E083.js} +8 -8
- package/dist/{Point-By6ogYy_.js → Point-CQJL3Ewu.js} +8 -8
- package/dist/{Promotion-DKcBr-RI.js → Promotion-BYViH3bu.js} +9 -9
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-D1ESqEFO.js → RuleGroup.vue_vue_type_script_setup_true_lang-CTKKhH-r.js} +14 -14
- package/dist/{Segment-B8cszL-F.js → Segment-B9Jj1ak0.js} +9 -9
- package/dist/{Setting-aZYABlMW.js → Setting-DXWbgRxs.js} +8 -8
- package/dist/{Store-Bx2tyJwe.js → Store-Dswk2e_z.js} +13 -13
- package/dist/{StoreRewards-DTp9G6gw.js → StoreRewards-CNUhG_Ue.js} +12 -12
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-B2W7ly5Z.js → StoreTransactions.vue_vue_type_script_setup_true_lang-2Jqj_rKv.js} +9 -9
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-nEdCD6la.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BkdSj0cX.js} +1 -1
- package/dist/{Tier-DvAs0-yx.js → Tier-Cpl0FV8L.js} +15 -15
- package/dist/{Title-B_Trr39o.js → Title-CbMDd1Et.js} +15 -15
- package/dist/{Transaction-DCJw-b3H.js → Transaction-BB-kk-84.js} +2 -2
- package/dist/{Voucher-jqv3ji90.js → Voucher-b1_Jlm6X.js} +11 -11
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DXkhu8e9.js → ZodTextField.vue_vue_type_script_setup_true_lang-pG-SrXp9.js} +1 -1
- package/dist/{app-WlcUVbFb.js → app-DCHKJoql.js} +945 -1070
- package/dist/{app-_w0hjM7u.js → app-VxaUCtgl.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-BC4-i1cU.js → business-DR7jpnLz.js} +1 -1
- package/dist/{campaign--0_yMbMV.js → campaign-MqcTb329.js} +2 -2
- package/dist/{collection.fn-3TwPe7aF.js → collection.fn-CvEoe61K.js} +2 -2
- package/dist/{dto-Ns2dLn1B.js → dto-jcK3TGB7.js} +9 -9
- package/dist/{effect-BeR0LK61.js → effect-BjjQeiQg.js} +1 -1
- package/dist/{export-xeLLhqvh.js → export-B8cvWh5n.js} +3 -3
- package/dist/{helper-B5iqfKh8.js → helper-DfgVNY7B.js} +1 -1
- package/dist/{index-Ct_wR519.js → index-0UYoh1-7.js} +1 -1
- package/dist/{index-DsNsA2uX.js → index-2P9w5u3m.js} +2 -2
- package/dist/{index-CU_d8jjU.js → index-B5NufbUt.js} +1 -1
- package/dist/{index-CAn5heDe.js → index-BsfWRB8R.js} +1 -1
- package/dist/{index-BOdtpNkP.js → index-C2JNcGc-.js} +5 -5
- package/dist/{index-Bh-uaaBG.js → index-C7zMfUgy.js} +1 -1
- package/dist/{index-CpU9aqyW.js → index-CJ8Uh2Ja.js} +20 -20
- package/dist/{index-CqO_ZvtD.js → index-CWR3qYjb.js} +1 -1
- package/dist/{index-CyKZ-SsN.js → index-Cv7pLAYq.js} +1 -1
- package/dist/{index-DP-dGMJC.js → index-DBy30v8N.js} +3 -3
- package/dist/{index-WAMr3npT.js → index-Dap5R3vr.js} +5 -5
- package/dist/{index-BWb9vRCi.js → index-LrSSauN2.js} +3 -3
- package/dist/{index.esm2017-5jeDA5Zo.js → index.esm2017-D1X3PgpO.js} +1 -1
- package/dist/{loading-C-JDVajU.js → loading-CJ3nOovJ.js} +4 -4
- package/dist/{membership-D0nqqWNZ.js → membership-B1cmSRyk.js} +3 -3
- package/dist/{money-hdbrblud.js → money-BEATdGS6.js} +1 -1
- package/dist/{number-CRWGOZaW.js → number-CeAYAKCp.js} +1 -1
- package/dist/{rule-Dn_GgBCe.js → rule-ChWyR-0j.js} +2 -2
- package/dist/{rule-builder-BXt29Es4.js → rule-builder-CSmOONdb.js} +1 -1
- package/dist/{template-D2Oi3dxP.js → template-Cug7aRK0.js} +4 -4
- package/dist/{vue-i18n-Dud8fvmw.js → vue-i18n-BRhKDHdF.js} +158 -158
- package/dist/{xlsx-CCRCidY2.js → xlsx-CfgPFFvp.js} +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { defineComponent as T, openBlock as s, createElementBlock as h, Fragment as U, renderList as M, createElementVNode as a, toDisplayString as A, createCommentVNode as B, resolveComponent as k, createBlock as O, withCtx as I, createVNode as v, unref as t, ref as x, computed as G, onMounted as K, watch as Y, isRef as H, createSlots as ee, createTextVNode as te, reactive as ae, onBeforeMount as ne, normalizeClass as le } from "vue";
|
|
2
2
|
import { _ as oe } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { f as se } from "./number-
|
|
4
|
-
import { C as ie, F as re, a as ce } from "./dto-
|
|
3
|
+
import { f as se } from "./number-CeAYAKCp.js";
|
|
4
|
+
import { C as ie, F as re, a as ce } from "./dto-jcK3TGB7.js";
|
|
5
5
|
import { useRouter as W } from "vue-router";
|
|
6
|
-
import { c as L } from "./index-
|
|
7
|
-
import { _ as ue } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { c as L } from "./index-CWR3qYjb.js";
|
|
7
|
+
import { _ as ue } from "./ZodTextField.vue_vue_type_script_setup_true_lang-pG-SrXp9.js";
|
|
8
8
|
import { Z as me } from "./zod-Bg2FbC-D.js";
|
|
9
9
|
import { J as de } from "./JsonViewer-v8_C7l5N.js";
|
|
10
|
-
import { u as pe } from "./loading-
|
|
10
|
+
import { u as pe } from "./loading-CJ3nOovJ.js";
|
|
11
11
|
import { useSnackbar as fe } from "@feedmepos/ui-library";
|
|
12
12
|
import { u as ye } from "./app-wDQR6dpb.js";
|
|
13
13
|
import { g as ve } from "./object-qECH92oz.js";
|
|
14
|
-
import { u as ge } from "./campaign
|
|
15
|
-
import { u as _e } from "./membership-
|
|
16
|
-
import { u as be } from "./vue-i18n-
|
|
17
|
-
import { m as he } from "./index-
|
|
14
|
+
import { u as ge } from "./campaign-MqcTb329.js";
|
|
15
|
+
import { u as _e } from "./membership-B1cmSRyk.js";
|
|
16
|
+
import { u as be } from "./vue-i18n-BRhKDHdF.js";
|
|
17
|
+
import { m as he } from "./index-0UYoh1-7.js";
|
|
18
18
|
const xe = { class: "divide-x flex flex-wrap" }, Ce = { class: "fm-typo-en-body-md-400 mb-2 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-title-sm-800" }, Se = /* @__PURE__ */ T({
|
|
19
19
|
__name: "CampaignStat",
|
|
20
20
|
props: {
|
|
@@ -2,15 +2,15 @@ import { defineComponent as lt, ref as te, h as Q, watch as ut, resolveComponent
|
|
|
2
2
|
import { useRouter as nn, useRoute as ht, RouterView as rn } from "vue-router";
|
|
3
3
|
import { useCoreStore as We, FeedMeAuth as sn } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as on } from "./app-wDQR6dpb.js";
|
|
5
|
-
import { u as an } from "./business-
|
|
6
|
-
import "./index-
|
|
5
|
+
import { u as an } from "./business-DR7jpnLz.js";
|
|
6
|
+
import "./index-Cv7pLAYq.js";
|
|
7
7
|
import { components as Z, useSnackbar as cn, useDialog as ln } from "@feedmepos/ui-library";
|
|
8
|
-
import { u as un } from "./vue-i18n-
|
|
9
|
-
import { R as f } from "./app-
|
|
8
|
+
import { u as un } from "./vue-i18n-BRhKDHdF.js";
|
|
9
|
+
import { R as f } from "./app-DCHKJoql.js";
|
|
10
10
|
import { J as dn } from "./JsonViewer-v8_C7l5N.js";
|
|
11
|
-
import { r as ye, L as hn, g as ft, i as fn, a as pn, _ as je, C as Ge, b as mn, S as z, c as w, d as j, E as be, e as gn, f as pt, h as _n, j as vn, k as mt, l as g, m as In, F as Re, n as Tn, q as K, o as wn, p as yn, s as En, t as kn, u as Sn } from "./index.esm2017-
|
|
11
|
+
import { r as ye, L as hn, g as ft, i as fn, a as pn, _ as je, C as Ge, b as mn, S as z, c as w, d as j, E as be, e as gn, f as pt, h as _n, j as vn, k as mt, l as g, m as In, F as Re, n as Tn, q as K, o as wn, p as yn, s as En, t as kn, u as Sn } from "./index.esm2017-D1X3PgpO.js";
|
|
12
12
|
import { _ as Pe } from "./tslib.es6-BCqqvLQ_.js";
|
|
13
|
-
import { S as Be } from "./index-
|
|
13
|
+
import { S as Be } from "./index-LrSSauN2.js";
|
|
14
14
|
const bn = /* @__PURE__ */ lt({
|
|
15
15
|
__name: "NavigationTab",
|
|
16
16
|
setup(n) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as N, ref as h, computed as U, onMounted as j, resolveComponent as r, openBlock as l, createElementBlock as y, Fragment as b, createVNode as i, unref as t, createElementVNode as n, withCtx as v, renderList as E, createBlock as w, resolveDynamicComponent as H, toDisplayString as d, createCommentVNode as q, h as z } from "vue";
|
|
2
2
|
import { _ as G } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as J, components as Q } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as W, p as X } from "./loading-
|
|
5
|
-
import { u as Y } from "./business-
|
|
6
|
-
import { u as Z } from "./campaign
|
|
7
|
-
import { g as B, b as A } from "./dto-
|
|
8
|
-
import { u as ee } from "./vue-i18n-
|
|
4
|
+
import { u as W, p as X } from "./loading-CJ3nOovJ.js";
|
|
5
|
+
import { u as Y } from "./business-DR7jpnLz.js";
|
|
6
|
+
import { u as Z } from "./campaign-MqcTb329.js";
|
|
7
|
+
import { g as B, b as A } from "./dto-jcK3TGB7.js";
|
|
8
|
+
import { u as ee } from "./vue-i18n-BRhKDHdF.js";
|
|
9
9
|
import { _ as te } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as ae } from "./template-
|
|
12
|
-
import { c as _ } from "./index-
|
|
10
|
+
import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C_ZKNWzb.js";
|
|
11
|
+
import { u as ae } from "./template-Cug7aRK0.js";
|
|
12
|
+
import { c as _ } from "./index-CWR3qYjb.js";
|
|
13
13
|
const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-center justify-between w-full" }, ce = { class: "flex gap-8 overflow-x-auto" }, ie = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { key: 0 }, fe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, ge = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Re = /* @__PURE__ */ N({
|
|
14
14
|
__name: "Broadcast",
|
|
15
15
|
setup(he) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { R as RuleOperator, _ } from "./index-
|
|
2
|
-
import { i as isRuleGroup } from "./rule-builder-
|
|
1
|
+
import { R as RuleOperator, _ } from "./index-C7zMfUgy.js";
|
|
2
|
+
import { i as isRuleGroup } from "./rule-builder-CSmOONdb.js";
|
|
3
3
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createVNode, toDisplayString } from "vue";
|
|
4
4
|
import { useDialog } from "@feedmepos/ui-library";
|
|
5
|
-
import "./index-
|
|
6
|
-
import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
5
|
+
import "./index-CJ8Uh2Ja.js";
|
|
6
|
+
import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-Dap5R3vr.js";
|
|
7
|
+
import "./index-DBy30v8N.js";
|
|
8
|
+
import "./index-C2JNcGc-.js";
|
|
9
|
+
import "./index-2P9w5u3m.js";
|
|
10
|
+
import "./index-B5NufbUt.js";
|
|
11
11
|
function validateRule(data, r, date) {
|
|
12
12
|
const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
|
|
13
13
|
function meetConditions(e) {
|
|
@@ -2,25 +2,25 @@ import { defineComponent as ee, ref as b, computed as G, watch as he, onMounted
|
|
|
2
2
|
import { _ as ke } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { h as ie } from "./moment-BWErdI6_.js";
|
|
4
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-
|
|
5
|
+
import { p as Ae, u as te, f as le } from "./loading-CJ3nOovJ.js";
|
|
6
6
|
import { u as Ce } from "./app-wDQR6dpb.js";
|
|
7
|
-
import { u as oe } from "./membership-
|
|
8
|
-
import { _ as de } from "./index-
|
|
9
|
-
import { m as
|
|
7
|
+
import { u as oe } from "./membership-B1cmSRyk.js";
|
|
8
|
+
import { _ as de } from "./index-C2JNcGc-.js";
|
|
9
|
+
import { m as ae } from "./index-BsfWRB8R.js";
|
|
10
10
|
import { _ as pe } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import { l as Oe } from "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./index-
|
|
11
|
+
import "./index-CJ8Uh2Ja.js";
|
|
12
|
+
import "./index-C7zMfUgy.js";
|
|
13
|
+
import { l as Oe } from "./index-Dap5R3vr.js";
|
|
14
|
+
import "./index-DBy30v8N.js";
|
|
15
|
+
import "./index-2P9w5u3m.js";
|
|
16
|
+
import "./index-B5NufbUt.js";
|
|
17
17
|
import { g as Ie } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
18
18
|
import { a as xe } from "./object-qECH92oz.js";
|
|
19
|
-
import { u as Ne } from "./business-
|
|
20
|
-
import { w as De } from "./xlsx-
|
|
21
|
-
import { e as Ue, C as we } from "./export-
|
|
19
|
+
import { u as Ne } from "./business-DR7jpnLz.js";
|
|
20
|
+
import { w as De } from "./xlsx-CfgPFFvp.js";
|
|
21
|
+
import { e as Ue, C as we } from "./export-B8cvWh5n.js";
|
|
22
22
|
import { u as He, _ as Fe } from "./usePagination-BeF5K3M7.js";
|
|
23
|
-
import { u as Pe } from "./vue-i18n-
|
|
23
|
+
import { u as Pe } from "./vue-i18n-BRhKDHdF.js";
|
|
24
24
|
import { o as Be } from "./objectId-dwaoBfJX.js";
|
|
25
25
|
const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, Ge = { class: "space-y-16" }, Le = {
|
|
26
26
|
key: 0,
|
|
@@ -84,7 +84,7 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
84
84
|
var l;
|
|
85
85
|
return (l = E.membership.design) == null ? void 0 : l[A.value];
|
|
86
86
|
}
|
|
87
|
-
), u = b(!1),
|
|
87
|
+
), u = b(!1), s = G(
|
|
88
88
|
() => E.sortedStoreCategories.flatMap((l) => l.bundles)
|
|
89
89
|
);
|
|
90
90
|
async function o(l) {
|
|
@@ -99,7 +99,7 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
99
99
|
);
|
|
100
100
|
console.log(t), await U(
|
|
101
101
|
async () => {
|
|
102
|
-
const B = await
|
|
102
|
+
const B = await ae.createCards(l);
|
|
103
103
|
console.log(B), await m("success"), t && await m("export", B);
|
|
104
104
|
},
|
|
105
105
|
{
|
|
@@ -153,21 +153,21 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
153
153
|
onValidationFailed: t[16] || (t[16] = (C) => v.value = !1)
|
|
154
154
|
}, {
|
|
155
155
|
default: k(() => {
|
|
156
|
-
var C,
|
|
156
|
+
var C, se, re;
|
|
157
157
|
return [
|
|
158
158
|
c("div", null, [
|
|
159
159
|
t[21] || (t[21] = c("div", { class: "fm-typo-en-body-lg-600" }, "Number type", -1)),
|
|
160
160
|
d(H, {
|
|
161
161
|
modelValue: n(T),
|
|
162
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
162
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => Q(T) ? T.value = a : null),
|
|
163
163
|
inline: !1
|
|
164
164
|
}, {
|
|
165
165
|
default: k(() => [
|
|
166
|
-
(_(), x(M, null, Z(S, (
|
|
167
|
-
key:
|
|
168
|
-
value:
|
|
169
|
-
label:
|
|
170
|
-
sublabel:
|
|
166
|
+
(_(), x(M, null, Z(S, (a) => d(D, {
|
|
167
|
+
key: a.value,
|
|
168
|
+
value: a.value,
|
|
169
|
+
label: a.label,
|
|
170
|
+
sublabel: a.sublabel
|
|
171
171
|
}, null, 8, ["value", "label", "sublabel"])), 64))
|
|
172
172
|
]),
|
|
173
173
|
_: 1
|
|
@@ -187,9 +187,9 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
187
187
|
n(u) ? (_(), x(M, { key: 0 }, [
|
|
188
188
|
d(g, {
|
|
189
189
|
"model-value": n(r).codeConfig.length || null,
|
|
190
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
190
|
+
"onUpdate:modelValue": t[2] || (t[2] = (a) => n(r).codeConfig.length = a),
|
|
191
191
|
label: "Code length",
|
|
192
|
-
rules: [(
|
|
192
|
+
rules: [(a) => Number(a) >= 1 || "Code length must at least 1"],
|
|
193
193
|
required: !0
|
|
194
194
|
}, null, 8, ["model-value", "rules"]),
|
|
195
195
|
d($, {
|
|
@@ -197,43 +197,43 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
197
197
|
"model-value": n(w),
|
|
198
198
|
items: V,
|
|
199
199
|
"helper-text": n(r).codeConfig.charset.length > 62 ? `${n(r).codeConfig.charset.substring(0, 62)}...` : n(r).codeConfig.charset,
|
|
200
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
201
|
-
w.value =
|
|
200
|
+
"onUpdate:modelValue": t[3] || (t[3] = (a) => {
|
|
201
|
+
w.value = a, n(r).codeConfig.charset = a;
|
|
202
202
|
})
|
|
203
203
|
}, null, 8, ["model-value", "helper-text"]),
|
|
204
204
|
n(w) === "" ? (_(), I(F, {
|
|
205
205
|
key: 0,
|
|
206
206
|
modelValue: n(r).codeConfig.charset,
|
|
207
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
207
|
+
"onUpdate:modelValue": t[4] || (t[4] = (a) => n(r).codeConfig.charset = a),
|
|
208
208
|
label: "Custom Charset",
|
|
209
209
|
required: ""
|
|
210
210
|
}, null, 8, ["modelValue"])) : O("", !0),
|
|
211
211
|
c("div", Ve, [
|
|
212
212
|
d(F, {
|
|
213
213
|
modelValue: n(r).codeConfig.prefix,
|
|
214
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
214
|
+
"onUpdate:modelValue": t[5] || (t[5] = (a) => n(r).codeConfig.prefix = a),
|
|
215
215
|
label: "Prefix (Optional)"
|
|
216
216
|
}, null, 8, ["modelValue"]),
|
|
217
217
|
d(F, {
|
|
218
218
|
modelValue: n(r).codeConfig.suffix,
|
|
219
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
219
|
+
"onUpdate:modelValue": t[6] || (t[6] = (a) => n(r).codeConfig.suffix = a),
|
|
220
220
|
label: "Suffix (Optional)"
|
|
221
221
|
}, null, 8, ["modelValue"])
|
|
222
222
|
]),
|
|
223
223
|
d(F, {
|
|
224
224
|
modelValue: n(r).codeConfig.pattern,
|
|
225
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
225
|
+
"onUpdate:modelValue": t[7] || (t[7] = (a) => n(r).codeConfig.pattern = a),
|
|
226
226
|
label: "Pattern",
|
|
227
227
|
required: !0
|
|
228
228
|
}, null, 8, ["modelValue"])
|
|
229
229
|
], 64)) : O("", !0),
|
|
230
230
|
d(F, {
|
|
231
231
|
modelValue: n(r).quantity,
|
|
232
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
232
|
+
"onUpdate:modelValue": t[8] || (t[8] = (a) => n(r).quantity = a),
|
|
233
233
|
label: "Number of code",
|
|
234
234
|
rules: [
|
|
235
|
-
(
|
|
236
|
-
(
|
|
235
|
+
(a) => a >= 1 || "Quantity cannot be less than 1",
|
|
236
|
+
(a) => a <= 1e4 || "Quantity cannot more than 10,000"
|
|
237
237
|
],
|
|
238
238
|
required: !0,
|
|
239
239
|
"helper-text": `${n(r).quantity} card will be created`
|
|
@@ -242,9 +242,9 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
242
242
|
n(T) !== "bulk" ? (_(), I(ge, {
|
|
243
243
|
key: 1,
|
|
244
244
|
modelValue: n(r).code,
|
|
245
|
-
"onUpdate:modelValue": t[9] || (t[9] = (
|
|
245
|
+
"onUpdate:modelValue": t[9] || (t[9] = (a) => n(r).code = a),
|
|
246
246
|
label: "Custom Card Number",
|
|
247
|
-
rules: [(
|
|
247
|
+
rules: [(a) => n(T) != "single" || !!a || "Custom code is required"],
|
|
248
248
|
placeholder: "(For multiple numbers, please enter in the new row.)"
|
|
249
249
|
}, null, 8, ["modelValue", "rules"])) : O("", !0)
|
|
250
250
|
]),
|
|
@@ -254,39 +254,39 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
254
254
|
"label-placement": "right",
|
|
255
255
|
label: "Set card number on bind",
|
|
256
256
|
"model-value": n(r).setCardOnBind || !1,
|
|
257
|
-
"onUpdate:modelValue": t[10] || (t[10] = (
|
|
257
|
+
"onUpdate:modelValue": t[10] || (t[10] = (a) => n(r).setCardOnBind = a)
|
|
258
258
|
}, null, 8, ["model-value"]),
|
|
259
259
|
d(de, {
|
|
260
260
|
label: "Activate bundle on bind",
|
|
261
261
|
placeholder: "Select bundle",
|
|
262
|
-
items: n(
|
|
262
|
+
items: n(s).filter((a) => !a.stripePriceId).map((a) => ({ label: a.name, value: a._id })),
|
|
263
263
|
modelValue: n(r).bundle,
|
|
264
|
-
"onUpdate:modelValue": t[12] || (t[12] = (
|
|
264
|
+
"onUpdate:modelValue": t[12] || (t[12] = (a) => n(r).bundle = a)
|
|
265
265
|
}, {
|
|
266
266
|
append: k(() => [
|
|
267
267
|
n(r).bundle ? (_(), I(K, {
|
|
268
268
|
key: 0,
|
|
269
269
|
icon: "link_off",
|
|
270
270
|
variant: "plain",
|
|
271
|
-
onClick: t[11] || (t[11] = (
|
|
271
|
+
onClick: t[11] || (t[11] = (a) => n(r).bundle = void 0)
|
|
272
272
|
})) : O("", !0)
|
|
273
273
|
]),
|
|
274
274
|
_: 1
|
|
275
275
|
}, 8, ["items", "modelValue"]),
|
|
276
|
-
(
|
|
276
|
+
(se = (C = n(E).store) == null ? void 0 : C.stripe) != null && se.apiKey ? (_(), I(de, {
|
|
277
277
|
key: 0,
|
|
278
278
|
label: "Linked subscription bundle",
|
|
279
279
|
placeholder: "Select bundle",
|
|
280
|
-
items: n(
|
|
280
|
+
items: n(s).filter((a) => a.stripePriceId).map((a) => ({ label: a.name, value: a._id })),
|
|
281
281
|
modelValue: n(r).subscriptionBundle,
|
|
282
|
-
"onUpdate:modelValue": t[14] || (t[14] = (
|
|
282
|
+
"onUpdate:modelValue": t[14] || (t[14] = (a) => n(r).subscriptionBundle = a)
|
|
283
283
|
}, {
|
|
284
284
|
append: k(() => [
|
|
285
285
|
n(r).subscriptionBundle ? (_(), I(K, {
|
|
286
286
|
key: 0,
|
|
287
287
|
icon: "link_off",
|
|
288
288
|
variant: "plain",
|
|
289
|
-
onClick: t[13] || (t[13] = (
|
|
289
|
+
onClick: t[13] || (t[13] = (a) => n(r).subscriptionBundle = void 0)
|
|
290
290
|
})) : O("", !0)
|
|
291
291
|
]),
|
|
292
292
|
_: 1
|
|
@@ -300,8 +300,8 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
300
300
|
class: "aspect-[16/9]"
|
|
301
301
|
}, null, 8, $e),
|
|
302
302
|
c("div", Ke, [
|
|
303
|
-
(_(!0), x(M, null, Z(n(E).membership.design, (
|
|
304
|
-
src:
|
|
303
|
+
(_(!0), x(M, null, Z(n(E).membership.design, (a, Y) => (_(), x("img", {
|
|
304
|
+
src: a.image,
|
|
305
305
|
key: `image_${Y}`,
|
|
306
306
|
class: Ee(["w-[112px] h-[63px] cursor-pointer", `${n(A) === Y ? "border-[2px] border-fm-color-primary" : ""}`]),
|
|
307
307
|
onClick: (_n) => A.value = Y,
|
|
@@ -321,7 +321,7 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
|
-
var z = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_0dcd8967-b0c4-4606-b434-2b43fc7d11e1", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.41", 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.7 npm/? node/v20.18.3 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_0dcd8967-b0c4-4606-b434-2b43fc7d11e1", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.3/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.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", 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.12.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: "725", npm_package_dependencies__feedmepos_ui_library: "1.3.5", 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_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", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250302.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_unplugin_auto_import: "^0.17.8", 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", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.6/x64", JOURNAL_STREAM: "8:6519", 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.157.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13719916749", STATS_VMFE: "true", 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: "0226f48c6434dbd34ab82245f44f620490ae31f8", 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.7/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.7/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.7/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/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_5ba1a668-5fe9-4a57-ad62-8d74abd6df6f", INVOCATION_ID: "0daf68918c514950b9a03c58f45f8e34", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.3/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: "63", 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.18", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 94", 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.6", 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.7/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.7/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.7/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.7/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.7/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.7/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.1.0-beta.7", 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: "0226f48c6434dbd34ab82245f44f620490ae31f8", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", 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_0dcd8967-b0c4-4606-b434-2b43fc7d11e1", 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.7/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_0dcd8967-b0c4-4606-b434-2b43fc7d11e1", 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.39", 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_0dcd8967-b0c4-4606-b434-2b43fc7d11e1", 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 = (() => {
|
|
324
|
+
var z = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5c8e240b-eaa8-4056-9a6b-4f5b9555081d", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.41", 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.9 npm/? node/v20.18.3 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_5c8e240b-eaa8-4056-9a6b-4f5b9555081d", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.3/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.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", 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.12.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: "708", npm_package_dependencies__feedmepos_ui_library: "1.3.5", 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_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", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250302.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_unplugin_auto_import: "^0.17.8", 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", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.6/x64", JOURNAL_STREAM: "8:5925", 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.157.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13757047990", STATS_VMFE: "true", 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: "1a41b711a23467ac9c9a61328379202272e9afa2", 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.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.18.3/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_94fb106b-41cd-4a13-b615-226bc97fb13e", INVOCATION_ID: "f1cb4178e9474bdaaea7ed32e636a48a", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.3/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: "65", 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.18", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 278", 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.6", 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.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.0-beta.9", 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: "1a41b711a23467ac9c9a61328379202272e9afa2", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", 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_5c8e240b-eaa8-4056-9a6b-4f5b9555081d", 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", 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_5c8e240b-eaa8-4056-9a6b-4f5b9555081d", 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.39", 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_5c8e240b-eaa8-4056-9a6b-4f5b9555081d", 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 = (() => {
|
|
325
325
|
try {
|
|
326
326
|
return _Buffer;
|
|
327
327
|
} catch {
|
|
@@ -464,7 +464,7 @@ p.prototype.toString = p.prototype.toHexString;
|
|
|
464
464
|
const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
465
465
|
key: 0,
|
|
466
466
|
class: "grid grid-cols-1 gap-8"
|
|
467
|
-
}, 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, an = /* @__PURE__ */ ee({
|
|
468
468
|
__name: "CardDesignSheet",
|
|
469
469
|
emits: ["success"],
|
|
470
470
|
setup(e, { expose: i, emit: N }) {
|
|
@@ -472,12 +472,12 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
472
472
|
b(), b(!1);
|
|
473
473
|
const m = b(), h = b(null);
|
|
474
474
|
G(() => {
|
|
475
|
-
var u,
|
|
476
|
-
return Math.min((((
|
|
475
|
+
var u, s;
|
|
476
|
+
return Math.min((((s = (u = m.value) == null ? void 0 : u.design) == null ? void 0 : s.length) ?? 0) + 1, on);
|
|
477
477
|
});
|
|
478
478
|
const L = N, r = G(() => {
|
|
479
|
-
var u,
|
|
480
|
-
return ((
|
|
479
|
+
var u, s;
|
|
480
|
+
return ((s = (u = E.membership) == null ? void 0 : u.design) == null ? void 0 : s.filter((o) => o.image)) || [];
|
|
481
481
|
}), S = b(!1);
|
|
482
482
|
function V(u) {
|
|
483
483
|
S.value = u;
|
|
@@ -489,18 +489,18 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
489
489
|
await U(
|
|
490
490
|
async () => {
|
|
491
491
|
var o;
|
|
492
|
-
const u = xe(m.value),
|
|
493
|
-
if (
|
|
492
|
+
const u = xe(m.value), s = Oe.parse(u);
|
|
493
|
+
if (s.design = (s == null ? void 0 : s.design) || [], h.value) {
|
|
494
494
|
const l = Ze().toHexString(), t = await le.update(
|
|
495
495
|
le.designPath(l, h.value),
|
|
496
496
|
h.value
|
|
497
497
|
);
|
|
498
|
-
(o =
|
|
498
|
+
(o = s.design) == null || o.push({
|
|
499
499
|
_id: l,
|
|
500
500
|
image: t
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
|
-
await
|
|
503
|
+
await ae.update(s), await P(), await L("success"), h.value = null, v.value = !1;
|
|
504
504
|
},
|
|
505
505
|
{
|
|
506
506
|
message: "Saving card design",
|
|
@@ -508,15 +508,15 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
508
508
|
}
|
|
509
509
|
);
|
|
510
510
|
}
|
|
511
|
-
async function A(u,
|
|
512
|
-
u ? h.value = u :
|
|
511
|
+
async function A(u, s) {
|
|
512
|
+
u ? h.value = u : s && R.open({
|
|
513
513
|
title: "Delete Design",
|
|
514
514
|
message: "Are you sure you want to delete this design?",
|
|
515
515
|
primaryActions: { text: "Delete", close: !0 },
|
|
516
516
|
secondaryActions: { text: "Cancel", close: !1 }
|
|
517
517
|
}).onPrimary(async () => {
|
|
518
518
|
var l, t;
|
|
519
|
-
const o = (l = m.value.design) == null ? void 0 : l.findIndex((D) => D._id ==
|
|
519
|
+
const o = (l = m.value.design) == null ? void 0 : l.findIndex((D) => D._id == s);
|
|
520
520
|
console.log(o), o !== -1 && ((t = m.value.design) == null || t.splice(o, 1)), await T();
|
|
521
521
|
}).onSecondary(() => {
|
|
522
522
|
R.close();
|
|
@@ -529,7 +529,7 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
529
529
|
showSheet: V
|
|
530
530
|
}), ne(async () => {
|
|
531
531
|
await P(), r.value.length || (v.value = !0);
|
|
532
|
-
}), (u,
|
|
532
|
+
}), (u, s) => {
|
|
533
533
|
const o = f("FmButton"), l = f("FmSideSheet");
|
|
534
534
|
return _(), I(l, {
|
|
535
535
|
"max-width": 560,
|
|
@@ -537,8 +537,8 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
537
537
|
header: "Manage Design",
|
|
538
538
|
modelValue: n(S),
|
|
539
539
|
"onUpdate:modelValue": [
|
|
540
|
-
|
|
541
|
-
|
|
540
|
+
s[2] || (s[2] = (t) => Q(S) ? S.value = t : null),
|
|
541
|
+
s[3] || (s[3] = (t) => S.value = t)
|
|
542
542
|
]
|
|
543
543
|
}, ye({
|
|
544
544
|
default: k(() => [
|
|
@@ -590,7 +590,7 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
590
590
|
label: "Cancel",
|
|
591
591
|
type: "button",
|
|
592
592
|
variant: "tertiary",
|
|
593
|
-
onClick:
|
|
593
|
+
onClick: s[1] || (s[1] = (t) => v.value = !1)
|
|
594
594
|
})
|
|
595
595
|
])
|
|
596
596
|
]),
|
|
@@ -607,7 +607,7 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
607
607
|
label: "Cancel",
|
|
608
608
|
type: "button",
|
|
609
609
|
variant: "tertiary",
|
|
610
|
-
onClick:
|
|
610
|
+
onClick: s[0] || (s[0] = (t) => S.value = !1)
|
|
611
611
|
})
|
|
612
612
|
])
|
|
613
613
|
]),
|
|
@@ -616,22 +616,22 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
616
616
|
]), 1032, ["modelValue"]);
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
|
-
}),
|
|
619
|
+
}), sn = { 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({
|
|
620
620
|
__name: "Card",
|
|
621
621
|
setup(e) {
|
|
622
622
|
const { minor: i, global: N } = te, U = b(), E = b(), R = Ne(), v = oe(), { t: m } = Pe(), h = G(
|
|
623
|
-
() => v.sortedStoreCategories.flatMap((
|
|
623
|
+
() => v.sortedStoreCategories.flatMap((s) => s.bundles)
|
|
624
624
|
), L = [
|
|
625
625
|
{
|
|
626
626
|
header: m("connect.loyalty.card.table.card_number"),
|
|
627
|
-
accessorFn: (
|
|
627
|
+
accessorFn: (s) => s.serialNumber
|
|
628
628
|
},
|
|
629
629
|
{
|
|
630
630
|
header: m("connect.loyalty.card.table.redeemed_by"),
|
|
631
631
|
accessorKey: "user",
|
|
632
632
|
enableSorting: !1,
|
|
633
|
-
cell(
|
|
634
|
-
const o =
|
|
633
|
+
cell(s) {
|
|
634
|
+
const o = s.row.original.pf_member;
|
|
635
635
|
return X(
|
|
636
636
|
"div",
|
|
637
637
|
{
|
|
@@ -650,33 +650,33 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
650
650
|
},
|
|
651
651
|
{
|
|
652
652
|
header: m("connect.loyalty.card.table.phone"),
|
|
653
|
-
accessorFn: (
|
|
653
|
+
accessorFn: (s) => {
|
|
654
654
|
var o;
|
|
655
|
-
return ((o =
|
|
655
|
+
return ((o = s.pf_member) == null ? void 0 : o.phoneNumber) || "-";
|
|
656
656
|
},
|
|
657
657
|
accessorKey: "pf_member.phoneNumber"
|
|
658
658
|
},
|
|
659
659
|
{
|
|
660
660
|
header: m("connect.loyalty.card.table.created_at"),
|
|
661
661
|
accessorKey: "_id",
|
|
662
|
-
accessorFn: (
|
|
662
|
+
accessorFn: (s) => ie(Be(s._id.toString())).format("DD MMM YYYY hh:mmA")
|
|
663
663
|
},
|
|
664
664
|
{
|
|
665
665
|
header: m("connect.loyalty.card.table.bundle"),
|
|
666
|
-
accessorFn: (
|
|
666
|
+
accessorFn: (s) => {
|
|
667
667
|
var o;
|
|
668
|
-
return ((o = h.value.find((l) => l._id ===
|
|
668
|
+
return ((o = h.value.find((l) => l._id === s.bundle)) == null ? void 0 : o.name) || "-";
|
|
669
669
|
}
|
|
670
670
|
},
|
|
671
671
|
{
|
|
672
672
|
header: m("connect.loyalty.card.table.redeemed_at"),
|
|
673
673
|
accessorKey: "redeemedAt",
|
|
674
|
-
accessorFn: (
|
|
674
|
+
accessorFn: (s) => s.redeemedAt ? ie(s.redeemedAt).format("DD MMM YYYY hh:mmA") : "-"
|
|
675
675
|
}
|
|
676
|
-
], { tableMeta: r, rowData: S, onSort: V, debouncedFetchData: w, onSearch: T } = He(
|
|
676
|
+
], { tableMeta: r, rowData: S, onSort: V, debouncedFetchData: w, onSearch: T } = He(ae.readCards);
|
|
677
677
|
async function A() {
|
|
678
|
-
var
|
|
679
|
-
await w(), (
|
|
678
|
+
var s;
|
|
679
|
+
await w(), (s = U.value) == null || s.showSheet(!1);
|
|
680
680
|
}
|
|
681
681
|
const P = G(() => R.isPremium ? [
|
|
682
682
|
{
|
|
@@ -690,8 +690,8 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
690
690
|
isPrimary: !0
|
|
691
691
|
}
|
|
692
692
|
] : []);
|
|
693
|
-
async function u(
|
|
694
|
-
const o = new we(), l =
|
|
693
|
+
async function u(s) {
|
|
694
|
+
const o = new we(), l = s.map((t) => ({
|
|
695
695
|
CardNumber: t
|
|
696
696
|
}));
|
|
697
697
|
o.addRecords(l), await De(
|
|
@@ -708,7 +708,7 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
708
708
|
await N(async () => {
|
|
709
709
|
await R.readPremium(), await v.readMemberStore(), await v.readMembership(), await A();
|
|
710
710
|
});
|
|
711
|
-
}), (
|
|
711
|
+
}), (s, o) => {
|
|
712
712
|
const l = f("FmPill"), t = f("FmPageHead"), D = f("FmSearch"), H = f("FmButton"), B = f("FmCard");
|
|
713
713
|
return _(), x(M, null, [
|
|
714
714
|
d(t, {
|
|
@@ -720,7 +720,7 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
720
720
|
})
|
|
721
721
|
}, {
|
|
722
722
|
title: k(() => [
|
|
723
|
-
c("div",
|
|
723
|
+
c("div", sn, [
|
|
724
724
|
c("span", rn, q(n(m)("connect.loyalty.card.title")), 1),
|
|
725
725
|
d(l, {
|
|
726
726
|
class: "ml-8",
|
|
@@ -810,7 +810,7 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
810
810
|
onSuccess: A,
|
|
811
811
|
onExport: u
|
|
812
812
|
}, null, 512),
|
|
813
|
-
d(
|
|
813
|
+
d(an, {
|
|
814
814
|
ref_key: "designSheetRef",
|
|
815
815
|
ref: E,
|
|
816
816
|
onSuccess: A
|