@feedmepos/mf-connect 0.1.0-beta.14 → 0.1.0-beta.15
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-DxTc7gte.js → Analytic-BudPZ7yo.js} +9 -9
- package/dist/{App-MM8u0qvP.js → App-BeD6_T_Z.js} +6 -6
- package/dist/{Broadcast-DLjZUfcr.js → Broadcast-Di-DP7MU.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-ByKi5J-l.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BszRUIC8.js} +8 -8
- package/dist/{Card-Cc8TtCxD.js → Card-BSUIJ4V3.js} +83 -83
- package/dist/{Collections-CB43gu1C.js → Collections-kplzfC-n.js} +4 -4
- package/dist/{Credit-Bp0tXt3W.js → Credit-DrZdTG27.js} +8 -8
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-z5G1F4rO.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DTxdtvAX.js} +24 -24
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Bi3mzBfa.js → EffectSheet.vue_vue_type_style_index_0_lang-DE7rq_ro.js} +6 -6
- package/dist/{Experience-aylihZhv.js → Experience-BQz_RASv.js} +8 -8
- package/dist/{Game-E1hBMx9B.js → Game-C5RUfcwo.js} +8 -8
- package/dist/{Marketing-C75GsPO0.js → Marketing-Ca00_q-k.js} +578 -587
- package/dist/{Member-DIM0L2ir.js → Member-B-9P7bbG.js} +4 -4
- package/dist/{MemberList-BQ9l2rT-.js → MemberList-DoAOs_FC.js} +14 -14
- package/dist/{MemberTransactions-BIeKePR1.js → MemberTransactions-D-qjANZL.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CthdVonu.js → MessageInput.vue_vue_type_script_setup_true_lang-DgWXNnd_.js} +2 -2
- package/dist/{Mission-DLjAZCB4.js → Mission-DrKEtkuB.js} +8 -8
- package/dist/{Point-DHV_rUEE.js → Point-vO06ComP.js} +8 -8
- package/dist/{Promotion-BVmx40iz.js → Promotion-DiJLB7iq.js} +9 -9
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DIrOBrhU.js → RuleGroup.vue_vue_type_script_setup_true_lang-BO8_N-Hl.js} +14 -14
- package/dist/{Segment-DWroRkTd.js → Segment-x3OLFugO.js} +13 -13
- package/dist/{Setting-M40REBId.js → Setting-C27PXvat.js} +8 -8
- package/dist/{Store-BGOMWZbC.js → Store-Dn2A_coC.js} +13 -13
- package/dist/{StoreRewards-ChquI2r8.js → StoreRewards-CZMCXl-k.js} +12 -12
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CaRCrBJq.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DMsmMCOw.js} +10 -10
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DX5xyafo.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-j8UbHQpT.js} +1 -1
- package/dist/{Tier-CXO0TUgB.js → Tier-BnbE3qLA.js} +15 -15
- package/dist/{Title-CMcEfHJa.js → Title-BAGSqm5D.js} +15 -15
- package/dist/{Transaction-DkrsndMM.js → Transaction-DWvA09mr.js} +2 -2
- package/dist/{Voucher-CqNxcmJo.js → Voucher-CLgdPRSd.js} +11 -11
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-2Z2TG2vR.js → ZodTextField.vue_vue_type_script_setup_true_lang-DweS66z_.js} +1 -1
- package/dist/{app-ogyiuzNx.js → app-CEoOXnMP.js} +24 -24
- package/dist/{app-BzXchd46.js → app-DbEoLwS2.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-B6IYUBfz.js → business-DIsK1ZSi.js} +1 -1
- package/dist/{campaign-DJhUnUbx.js → campaign-DilFl2u4.js} +2 -2
- package/dist/{collection.fn-bmKn9D9l.js → collection.fn-DOGveN-U.js} +2 -2
- package/dist/{dto-DaUD9ea4.js → dto-D146MexX.js} +9 -9
- package/dist/{effect-BvPRfurd.js → effect-BAoY-7Mo.js} +1 -1
- package/dist/{email-addresses-jLZnlSfX.js → email-addresses-D4ptdJi7.js} +1 -1
- package/dist/{export-CsvSurEw.js → export-ZdS0ijA0.js} +3 -3
- package/dist/{helper-C_efRMNS.js → helper-CYBvYPRB.js} +1 -1
- package/dist/{index-DT6Xb5Xc.js → index-BJNzAvF6.js} +1 -1
- package/dist/{index-9A8cUiXS.js → index-CBd5MdRb.js} +1 -1
- package/dist/{index-qNnyh15c.js → index-CyvTJWa0.js} +1 -1
- package/dist/{index-CjUyqTlF.js → index-D5OipTW2.js} +3 -3
- package/dist/{index-CsBwKvG4.js → index-DXwoelMh.js} +3 -3
- package/dist/{index-gZr8cOWc.js → index-Dw-QQGVh.js} +1 -1
- package/dist/{index-BmDAVnzz.js → index-Dwsdu9aR.js} +5 -5
- package/dist/{index-BEE6Fe4T.js → index-RKVC43XB.js} +1 -1
- package/dist/{index-CPiO27Uo.js → index-VOFTSIqj.js} +2 -2
- package/dist/{index-Bu-lsaBh.js → index-fSC0-_uQ.js} +5 -5
- package/dist/{index-xaFFKjJi.js → index-r3--ddX3.js} +1 -1
- package/dist/{index-DoePEBOk.js → index-sJUCCkLn.js} +2 -2
- package/dist/{index.esm2017-Bv33d2Yv.js → index.esm2017-ClQvLeXO.js} +1 -1
- package/dist/{loading-BiEkXHTA.js → loading-DyvR-Q2q.js} +4 -4
- package/dist/{membership-giTCy-g8.js → membership-DjHOR91O.js} +3 -3
- package/dist/{money-CobGBrLU.js → money-C9nfcrN2.js} +1 -1
- package/dist/{number-BBRHZBYI.js → number-BH4v9H5s.js} +1 -1
- package/dist/{rule-CqOf5s0o.js → rule-DdzmxL5G.js} +3 -3
- package/dist/{rule-builder-BVtZOrOZ.js → rule-builder-C3LgxTPd.js} +1 -1
- package/dist/{template-C4KzHdbK.js → template-CTOkKogt.js} +4 -4
- package/dist/{usePagination-CxXG5hyx.js → usePagination-BLsmsO5l.js} +1 -1
- package/dist/{vue-i18n-DA4uJ1Yi.js → vue-i18n-Dw456kF3.js} +2 -2
- 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-BH4v9H5s.js";
|
|
4
|
+
import { C as ie, F as re, a as ce } from "./dto-D146MexX.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-CyvTJWa0.js";
|
|
7
|
+
import { _ as ue } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DweS66z_.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-DyvR-Q2q.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-DilFl2u4.js";
|
|
15
|
+
import { u as _e } from "./membership-DjHOR91O.js";
|
|
16
|
+
import { u as be } from "./vue-i18n-Dw456kF3.js";
|
|
17
|
+
import { m as he } from "./index-r3--ddX3.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 ne, h as Z, 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-DIsK1ZSi.js";
|
|
6
|
+
import "./index-BJNzAvF6.js";
|
|
7
7
|
import { components as ee, 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-Dw456kF3.js";
|
|
9
|
+
import { R as f } from "./app-CEoOXnMP.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 Se, 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 bn } 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 Se, 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 bn } from "./index.esm2017-ClQvLeXO.js";
|
|
12
12
|
import { _ as Pe } from "./tslib.es6-BCqqvLQ_.js";
|
|
13
|
-
import { S as Be, c as Sn } from "./index-
|
|
13
|
+
import { S as Be, c as Sn } from "./index-D5OipTW2.js";
|
|
14
14
|
import { Y as Rn } from "./remy-vue-client-Cpppk9h-.js";
|
|
15
15
|
const Pn = /* @__PURE__ */ lt({
|
|
16
16
|
__name: "NavigationTab",
|
|
@@ -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-DyvR-Q2q.js";
|
|
5
|
+
import { u as Y } from "./business-DIsK1ZSi.js";
|
|
6
|
+
import { u as Z } from "./campaign-DilFl2u4.js";
|
|
7
|
+
import { g as B, b as A } from "./dto-D146MexX.js";
|
|
8
|
+
import { u as ee } from "./vue-i18n-Dw456kF3.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-DTxdtvAX.js";
|
|
11
|
+
import { u as ae } from "./template-CTOkKogt.js";
|
|
12
|
+
import { c as _ } from "./index-CyvTJWa0.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-CBd5MdRb.js";
|
|
2
|
+
import { i as isRuleGroup } from "./rule-builder-C3LgxTPd.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-sJUCCkLn.js";
|
|
6
|
+
import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-fSC0-_uQ.js";
|
|
7
|
+
import "./index-DXwoelMh.js";
|
|
8
|
+
import "./index-Dwsdu9aR.js";
|
|
9
|
+
import "./index-VOFTSIqj.js";
|
|
10
|
+
import "./index-RKVC43XB.js";
|
|
11
11
|
function validateRule(data, r, date) {
|
|
12
12
|
const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
|
|
13
13
|
function meetConditions(e) {
|
|
@@ -2,24 +2,24 @@ 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-DyvR-Q2q.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-DjHOR91O.js";
|
|
8
|
+
import { _ as de } from "./index-Dwsdu9aR.js";
|
|
9
|
+
import { m as ae } from "./index-Dw-QQGVh.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-sJUCCkLn.js";
|
|
12
|
+
import "./index-CBd5MdRb.js";
|
|
13
|
+
import { l as Oe } from "./index-fSC0-_uQ.js";
|
|
14
|
+
import "./index-DXwoelMh.js";
|
|
15
|
+
import "./index-VOFTSIqj.js";
|
|
16
|
+
import "./index-RKVC43XB.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 { a as De, _ as Ue, w as we } from "./usePagination-
|
|
21
|
-
import { e as He, C as Fe } from "./export-
|
|
22
|
-
import { u as Pe } from "./vue-i18n-
|
|
19
|
+
import { u as Ne } from "./business-DIsK1ZSi.js";
|
|
20
|
+
import { a as De, _ as Ue, w as we } from "./usePagination-BLsmsO5l.js";
|
|
21
|
+
import { e as He, C as Fe } from "./export-ZdS0ijA0.js";
|
|
22
|
+
import { u as Pe } from "./vue-i18n-Dw456kF3.js";
|
|
23
23
|
import { o as Be } from "./objectId-dwaoBfJX.js";
|
|
24
24
|
const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, Ge = { class: "space-y-16" }, Le = {
|
|
25
25
|
key: 0,
|
|
@@ -83,7 +83,7 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
83
83
|
var l;
|
|
84
84
|
return (l = E.membership.design) == null ? void 0 : l[A.value];
|
|
85
85
|
}
|
|
86
|
-
), u = b(!1),
|
|
86
|
+
), u = b(!1), s = G(
|
|
87
87
|
() => E.sortedStoreCategories.flatMap((l) => l.bundles)
|
|
88
88
|
);
|
|
89
89
|
async function o(l) {
|
|
@@ -98,7 +98,7 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
98
98
|
);
|
|
99
99
|
console.log(t), await U(
|
|
100
100
|
async () => {
|
|
101
|
-
const B = await
|
|
101
|
+
const B = await ae.createCards(l);
|
|
102
102
|
console.log(B), await m("success"), t && await m("export", B);
|
|
103
103
|
},
|
|
104
104
|
{
|
|
@@ -152,21 +152,21 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
152
152
|
onValidationFailed: t[16] || (t[16] = (C) => v.value = !1)
|
|
153
153
|
}, {
|
|
154
154
|
default: k(() => {
|
|
155
|
-
var C,
|
|
155
|
+
var C, se, re;
|
|
156
156
|
return [
|
|
157
157
|
c("div", null, [
|
|
158
158
|
t[21] || (t[21] = c("div", { class: "fm-typo-en-body-lg-600" }, "Number type", -1)),
|
|
159
159
|
d(H, {
|
|
160
160
|
modelValue: n(T),
|
|
161
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
161
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => Q(T) ? T.value = a : null),
|
|
162
162
|
inline: !1
|
|
163
163
|
}, {
|
|
164
164
|
default: k(() => [
|
|
165
|
-
(_(), x(M, null, Z(S, (
|
|
166
|
-
key:
|
|
167
|
-
value:
|
|
168
|
-
label:
|
|
169
|
-
sublabel:
|
|
165
|
+
(_(), x(M, null, Z(S, (a) => d(D, {
|
|
166
|
+
key: a.value,
|
|
167
|
+
value: a.value,
|
|
168
|
+
label: a.label,
|
|
169
|
+
sublabel: a.sublabel
|
|
170
170
|
}, null, 8, ["value", "label", "sublabel"])), 64))
|
|
171
171
|
]),
|
|
172
172
|
_: 1
|
|
@@ -186,9 +186,9 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
186
186
|
n(u) ? (_(), x(M, { key: 0 }, [
|
|
187
187
|
d(g, {
|
|
188
188
|
"model-value": n(r).codeConfig.length || null,
|
|
189
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
189
|
+
"onUpdate:modelValue": t[2] || (t[2] = (a) => n(r).codeConfig.length = a),
|
|
190
190
|
label: "Code length",
|
|
191
|
-
rules: [(
|
|
191
|
+
rules: [(a) => Number(a) >= 1 || "Code length must at least 1"],
|
|
192
192
|
required: !0
|
|
193
193
|
}, null, 8, ["model-value", "rules"]),
|
|
194
194
|
d($, {
|
|
@@ -196,43 +196,43 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
196
196
|
"model-value": n(w),
|
|
197
197
|
items: V,
|
|
198
198
|
"helper-text": n(r).codeConfig.charset.length > 62 ? `${n(r).codeConfig.charset.substring(0, 62)}...` : n(r).codeConfig.charset,
|
|
199
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
200
|
-
w.value =
|
|
199
|
+
"onUpdate:modelValue": t[3] || (t[3] = (a) => {
|
|
200
|
+
w.value = a, n(r).codeConfig.charset = a;
|
|
201
201
|
})
|
|
202
202
|
}, null, 8, ["model-value", "helper-text"]),
|
|
203
203
|
n(w) === "" ? (_(), I(F, {
|
|
204
204
|
key: 0,
|
|
205
205
|
modelValue: n(r).codeConfig.charset,
|
|
206
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
206
|
+
"onUpdate:modelValue": t[4] || (t[4] = (a) => n(r).codeConfig.charset = a),
|
|
207
207
|
label: "Custom Charset",
|
|
208
208
|
required: ""
|
|
209
209
|
}, null, 8, ["modelValue"])) : O("", !0),
|
|
210
210
|
c("div", Ve, [
|
|
211
211
|
d(F, {
|
|
212
212
|
modelValue: n(r).codeConfig.prefix,
|
|
213
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
213
|
+
"onUpdate:modelValue": t[5] || (t[5] = (a) => n(r).codeConfig.prefix = a),
|
|
214
214
|
label: "Prefix (Optional)"
|
|
215
215
|
}, null, 8, ["modelValue"]),
|
|
216
216
|
d(F, {
|
|
217
217
|
modelValue: n(r).codeConfig.suffix,
|
|
218
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
218
|
+
"onUpdate:modelValue": t[6] || (t[6] = (a) => n(r).codeConfig.suffix = a),
|
|
219
219
|
label: "Suffix (Optional)"
|
|
220
220
|
}, null, 8, ["modelValue"])
|
|
221
221
|
]),
|
|
222
222
|
d(F, {
|
|
223
223
|
modelValue: n(r).codeConfig.pattern,
|
|
224
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
224
|
+
"onUpdate:modelValue": t[7] || (t[7] = (a) => n(r).codeConfig.pattern = a),
|
|
225
225
|
label: "Pattern",
|
|
226
226
|
required: !0
|
|
227
227
|
}, null, 8, ["modelValue"])
|
|
228
228
|
], 64)) : O("", !0),
|
|
229
229
|
d(F, {
|
|
230
230
|
modelValue: n(r).quantity,
|
|
231
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
231
|
+
"onUpdate:modelValue": t[8] || (t[8] = (a) => n(r).quantity = a),
|
|
232
232
|
label: "Number of code",
|
|
233
233
|
rules: [
|
|
234
|
-
(
|
|
235
|
-
(
|
|
234
|
+
(a) => a >= 1 || "Quantity cannot be less than 1",
|
|
235
|
+
(a) => a <= 1e4 || "Quantity cannot more than 10,000"
|
|
236
236
|
],
|
|
237
237
|
required: !0,
|
|
238
238
|
"helper-text": `${n(r).quantity} card will be created`
|
|
@@ -241,9 +241,9 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
241
241
|
n(T) !== "bulk" ? (_(), I(ge, {
|
|
242
242
|
key: 1,
|
|
243
243
|
modelValue: n(r).code,
|
|
244
|
-
"onUpdate:modelValue": t[9] || (t[9] = (
|
|
244
|
+
"onUpdate:modelValue": t[9] || (t[9] = (a) => n(r).code = a),
|
|
245
245
|
label: "Custom Card Number",
|
|
246
|
-
rules: [(
|
|
246
|
+
rules: [(a) => n(T) != "single" || !!a || "Custom code is required"],
|
|
247
247
|
placeholder: "(For multiple numbers, please enter in the new row.)"
|
|
248
248
|
}, null, 8, ["modelValue", "rules"])) : O("", !0)
|
|
249
249
|
]),
|
|
@@ -253,39 +253,39 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
253
253
|
"label-placement": "right",
|
|
254
254
|
label: "Set card number on bind",
|
|
255
255
|
"model-value": n(r).setCardOnBind || !1,
|
|
256
|
-
"onUpdate:modelValue": t[10] || (t[10] = (
|
|
256
|
+
"onUpdate:modelValue": t[10] || (t[10] = (a) => n(r).setCardOnBind = a)
|
|
257
257
|
}, null, 8, ["model-value"]),
|
|
258
258
|
d(de, {
|
|
259
259
|
label: "Activate bundle on bind",
|
|
260
260
|
placeholder: "Select bundle",
|
|
261
|
-
items: n(
|
|
261
|
+
items: n(s).filter((a) => !a.stripePriceId).map((a) => ({ label: a.name, value: a._id })),
|
|
262
262
|
modelValue: n(r).bundle,
|
|
263
|
-
"onUpdate:modelValue": t[12] || (t[12] = (
|
|
263
|
+
"onUpdate:modelValue": t[12] || (t[12] = (a) => n(r).bundle = a)
|
|
264
264
|
}, {
|
|
265
265
|
append: k(() => [
|
|
266
266
|
n(r).bundle ? (_(), I(K, {
|
|
267
267
|
key: 0,
|
|
268
268
|
icon: "link_off",
|
|
269
269
|
variant: "plain",
|
|
270
|
-
onClick: t[11] || (t[11] = (
|
|
270
|
+
onClick: t[11] || (t[11] = (a) => n(r).bundle = void 0)
|
|
271
271
|
})) : O("", !0)
|
|
272
272
|
]),
|
|
273
273
|
_: 1
|
|
274
274
|
}, 8, ["items", "modelValue"]),
|
|
275
|
-
(
|
|
275
|
+
(se = (C = n(E).store) == null ? void 0 : C.stripe) != null && se.apiKey ? (_(), I(de, {
|
|
276
276
|
key: 0,
|
|
277
277
|
label: "Linked subscription bundle",
|
|
278
278
|
placeholder: "Select bundle",
|
|
279
|
-
items: n(
|
|
279
|
+
items: n(s).filter((a) => a.stripePriceId).map((a) => ({ label: a.name, value: a._id })),
|
|
280
280
|
modelValue: n(r).subscriptionBundle,
|
|
281
|
-
"onUpdate:modelValue": t[14] || (t[14] = (
|
|
281
|
+
"onUpdate:modelValue": t[14] || (t[14] = (a) => n(r).subscriptionBundle = a)
|
|
282
282
|
}, {
|
|
283
283
|
append: k(() => [
|
|
284
284
|
n(r).subscriptionBundle ? (_(), I(K, {
|
|
285
285
|
key: 0,
|
|
286
286
|
icon: "link_off",
|
|
287
287
|
variant: "plain",
|
|
288
|
-
onClick: t[13] || (t[13] = (
|
|
288
|
+
onClick: t[13] || (t[13] = (a) => n(r).subscriptionBundle = void 0)
|
|
289
289
|
})) : O("", !0)
|
|
290
290
|
]),
|
|
291
291
|
_: 1
|
|
@@ -299,8 +299,8 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
299
299
|
class: "aspect-[16/9]"
|
|
300
300
|
}, null, 8, $e),
|
|
301
301
|
c("div", Ke, [
|
|
302
|
-
(_(!0), x(M, null, Z(n(E).membership.design, (
|
|
303
|
-
src:
|
|
302
|
+
(_(!0), x(M, null, Z(n(E).membership.design, (a, Y) => (_(), x("img", {
|
|
303
|
+
src: a.image,
|
|
304
304
|
key: `image_${Y}`,
|
|
305
305
|
class: Ee(["w-[112px] h-[63px] cursor-pointer", `${n(A) === Y ? "border-[2px] border-fm-color-primary" : ""}`]),
|
|
306
306
|
onClick: (_n) => A.value = Y,
|
|
@@ -320,7 +320,7 @@ const Me = { class: "space-y-16" }, Ve = { class: "gap-16 grid grid-cols-2" }, G
|
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
|
-
var z = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_734086dd-f642-4374-abc9-121c7b52e6ed", 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__feedmepos_remy_vue_client: "0.2.0-beta.14", npm_package_dependencies_pinia: "^2.1.7", npm_package_dependencies_vite_plugin_vue_devtools: "^7.6.4", USER: "runner", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v20.19.0 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_734086dd-f642-4374-abc9-121c7b52e6ed", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.19.0/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: "^5.5.1", 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: "710", 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: "20250316.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.7/x64", JOURNAL_STREAM: "8:5804", 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: "14074734369", 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: "d550ee456b535c342e010d4c3fb7a76b9f929551", 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.19.0/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_85aee820-7017-4ddb-bc5a-b5f24f441329", INVOCATION_ID: "6bcd3321a900411ea83ed2d18e8f1461", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.19.0/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: "70", 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 231", 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.14.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.14", 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: "d550ee456b535c342e010d4c3fb7a76b9f929551", 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_734086dd-f642-4374-abc9-121c7b52e6ed", 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_734086dd-f642-4374-abc9-121c7b52e6ed", 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_734086dd-f642-4374-abc9-121c7b52e6ed", 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 = (() => {
|
|
323
|
+
var z = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_e71f21d0-a501-4d27-80af-0a3afa0b5ff9", 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__feedmepos_remy_vue_client: "0.2.0-beta.14", npm_package_dependencies_pinia: "^2.1.7", npm_package_dependencies_vite_plugin_vue_devtools: "^7.6.4", USER: "runner", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v20.19.0 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_e71f21d0-a501-4d27-80af-0a3afa0b5ff9", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.19.0/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: "^5.5.1", 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: "715", 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: "20250316.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.7/x64", JOURNAL_STREAM: "8:6602", 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: "14074932732", 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: "ead0446158ad1b2b84b475283d7ab46665e44d0a", 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.19.0/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_bd3fc088-9e4b-4990-8bbd-13e992173cac", INVOCATION_ID: "61cc1fd02c4e4ef6a1a05843a1e5f0d1", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.19.0/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: "71", 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 432", 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.14.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.15", 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: "ead0446158ad1b2b84b475283d7ab46665e44d0a", 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_e71f21d0-a501-4d27-80af-0a3afa0b5ff9", 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_e71f21d0-a501-4d27-80af-0a3afa0b5ff9", 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_e71f21d0-a501-4d27-80af-0a3afa0b5ff9", 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
324
|
try {
|
|
325
325
|
return _Buffer;
|
|
326
326
|
} catch {
|
|
@@ -463,7 +463,7 @@ p.prototype.toString = p.prototype.toHexString;
|
|
|
463
463
|
const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
464
464
|
key: 0,
|
|
465
465
|
class: "grid grid-cols-1 gap-8"
|
|
466
|
-
}, nn = { class: "flex items-center gap-8" }, tn = { class: "flex items-center gap-8" }, on = 5,
|
|
466
|
+
}, nn = { class: "flex items-center gap-8" }, tn = { class: "flex items-center gap-8" }, on = 5, an = /* @__PURE__ */ ee({
|
|
467
467
|
__name: "CardDesignSheet",
|
|
468
468
|
emits: ["success"],
|
|
469
469
|
setup(e, { expose: i, emit: N }) {
|
|
@@ -471,12 +471,12 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
471
471
|
b(), b(!1);
|
|
472
472
|
const m = b(), h = b(null);
|
|
473
473
|
G(() => {
|
|
474
|
-
var u,
|
|
475
|
-
return Math.min((((
|
|
474
|
+
var u, s;
|
|
475
|
+
return Math.min((((s = (u = m.value) == null ? void 0 : u.design) == null ? void 0 : s.length) ?? 0) + 1, on);
|
|
476
476
|
});
|
|
477
477
|
const L = N, r = G(() => {
|
|
478
|
-
var u,
|
|
479
|
-
return ((
|
|
478
|
+
var u, s;
|
|
479
|
+
return ((s = (u = E.membership) == null ? void 0 : u.design) == null ? void 0 : s.filter((o) => o.image)) || [];
|
|
480
480
|
}), S = b(!1);
|
|
481
481
|
function V(u) {
|
|
482
482
|
S.value = u;
|
|
@@ -488,18 +488,18 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
488
488
|
await U(
|
|
489
489
|
async () => {
|
|
490
490
|
var o;
|
|
491
|
-
const u = xe(m.value),
|
|
492
|
-
if (
|
|
491
|
+
const u = xe(m.value), s = Oe.parse(u);
|
|
492
|
+
if (s.design = (s == null ? void 0 : s.design) || [], h.value) {
|
|
493
493
|
const l = Ze().toHexString(), t = await le.update(
|
|
494
494
|
le.designPath(l, h.value),
|
|
495
495
|
h.value
|
|
496
496
|
);
|
|
497
|
-
(o =
|
|
497
|
+
(o = s.design) == null || o.push({
|
|
498
498
|
_id: l,
|
|
499
499
|
image: t
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
|
-
await
|
|
502
|
+
await ae.update(s), await P(), await L("success"), h.value = null, v.value = !1;
|
|
503
503
|
},
|
|
504
504
|
{
|
|
505
505
|
message: "Saving card design",
|
|
@@ -507,15 +507,15 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
507
507
|
}
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
|
-
async function A(u,
|
|
511
|
-
u ? h.value = u :
|
|
510
|
+
async function A(u, s) {
|
|
511
|
+
u ? h.value = u : s && R.open({
|
|
512
512
|
title: "Delete Design",
|
|
513
513
|
message: "Are you sure you want to delete this design?",
|
|
514
514
|
primaryActions: { text: "Delete", close: !0 },
|
|
515
515
|
secondaryActions: { text: "Cancel", close: !1 }
|
|
516
516
|
}).onPrimary(async () => {
|
|
517
517
|
var l, t;
|
|
518
|
-
const o = (l = m.value.design) == null ? void 0 : l.findIndex((D) => D._id ==
|
|
518
|
+
const o = (l = m.value.design) == null ? void 0 : l.findIndex((D) => D._id == s);
|
|
519
519
|
console.log(o), o !== -1 && ((t = m.value.design) == null || t.splice(o, 1)), await T();
|
|
520
520
|
}).onSecondary(() => {
|
|
521
521
|
R.close();
|
|
@@ -528,7 +528,7 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
528
528
|
showSheet: V
|
|
529
529
|
}), ne(async () => {
|
|
530
530
|
await P(), r.value.length || (v.value = !0);
|
|
531
|
-
}), (u,
|
|
531
|
+
}), (u, s) => {
|
|
532
532
|
const o = f("FmButton"), l = f("FmSideSheet");
|
|
533
533
|
return _(), I(l, {
|
|
534
534
|
"max-width": 560,
|
|
@@ -536,8 +536,8 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
536
536
|
header: "Manage Design",
|
|
537
537
|
modelValue: n(S),
|
|
538
538
|
"onUpdate:modelValue": [
|
|
539
|
-
|
|
540
|
-
|
|
539
|
+
s[2] || (s[2] = (t) => Q(S) ? S.value = t : null),
|
|
540
|
+
s[3] || (s[3] = (t) => S.value = t)
|
|
541
541
|
]
|
|
542
542
|
}, ye({
|
|
543
543
|
default: k(() => [
|
|
@@ -589,7 +589,7 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
589
589
|
label: "Cancel",
|
|
590
590
|
type: "button",
|
|
591
591
|
variant: "tertiary",
|
|
592
|
-
onClick:
|
|
592
|
+
onClick: s[1] || (s[1] = (t) => v.value = !1)
|
|
593
593
|
})
|
|
594
594
|
])
|
|
595
595
|
]),
|
|
@@ -606,7 +606,7 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
606
606
|
label: "Cancel",
|
|
607
607
|
type: "button",
|
|
608
608
|
variant: "tertiary",
|
|
609
|
-
onClick:
|
|
609
|
+
onClick: s[0] || (s[0] = (t) => S.value = !1)
|
|
610
610
|
})
|
|
611
611
|
])
|
|
612
612
|
]),
|
|
@@ -615,22 +615,22 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
615
615
|
]), 1032, ["modelValue"]);
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
|
-
}),
|
|
618
|
+
}), 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" }, Bn = /* @__PURE__ */ ee({
|
|
619
619
|
__name: "Card",
|
|
620
620
|
setup(e) {
|
|
621
621
|
const { minor: i, global: N } = te, U = b(), E = b(), R = Ne(), v = oe(), { t: m } = Pe(), h = G(
|
|
622
|
-
() => v.sortedStoreCategories.flatMap((
|
|
622
|
+
() => v.sortedStoreCategories.flatMap((s) => s.bundles)
|
|
623
623
|
), L = [
|
|
624
624
|
{
|
|
625
625
|
header: m("connect.loyalty.card.table.card_number"),
|
|
626
|
-
accessorFn: (
|
|
626
|
+
accessorFn: (s) => s.serialNumber
|
|
627
627
|
},
|
|
628
628
|
{
|
|
629
629
|
header: m("connect.loyalty.card.table.redeemed_by"),
|
|
630
630
|
accessorKey: "user",
|
|
631
631
|
enableSorting: !1,
|
|
632
|
-
cell(
|
|
633
|
-
const o =
|
|
632
|
+
cell(s) {
|
|
633
|
+
const o = s.row.original.pf_member;
|
|
634
634
|
return X(
|
|
635
635
|
"div",
|
|
636
636
|
{
|
|
@@ -649,33 +649,33 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
649
649
|
},
|
|
650
650
|
{
|
|
651
651
|
header: m("connect.loyalty.card.table.phone"),
|
|
652
|
-
accessorFn: (
|
|
652
|
+
accessorFn: (s) => {
|
|
653
653
|
var o;
|
|
654
|
-
return ((o =
|
|
654
|
+
return ((o = s.pf_member) == null ? void 0 : o.phoneNumber) || "-";
|
|
655
655
|
},
|
|
656
656
|
accessorKey: "pf_member.phoneNumber"
|
|
657
657
|
},
|
|
658
658
|
{
|
|
659
659
|
header: m("connect.loyalty.card.table.created_at"),
|
|
660
660
|
accessorKey: "_id",
|
|
661
|
-
accessorFn: (
|
|
661
|
+
accessorFn: (s) => ie(Be(s._id.toString())).format("DD MMM YYYY hh:mmA")
|
|
662
662
|
},
|
|
663
663
|
{
|
|
664
664
|
header: m("connect.loyalty.card.table.bundle"),
|
|
665
|
-
accessorFn: (
|
|
665
|
+
accessorFn: (s) => {
|
|
666
666
|
var o;
|
|
667
|
-
return ((o = h.value.find((l) => l._id ===
|
|
667
|
+
return ((o = h.value.find((l) => l._id === s.bundle)) == null ? void 0 : o.name) || "-";
|
|
668
668
|
}
|
|
669
669
|
},
|
|
670
670
|
{
|
|
671
671
|
header: m("connect.loyalty.card.table.redeemed_at"),
|
|
672
672
|
accessorKey: "redeemedAt",
|
|
673
|
-
accessorFn: (
|
|
673
|
+
accessorFn: (s) => s.redeemedAt ? ie(s.redeemedAt).format("DD MMM YYYY hh:mmA") : "-"
|
|
674
674
|
}
|
|
675
|
-
], { tableMeta: r, rowData: S, onSort: V, debouncedFetchData: w, onSearch: T } = De(
|
|
675
|
+
], { tableMeta: r, rowData: S, onSort: V, debouncedFetchData: w, onSearch: T } = De(ae.readCards);
|
|
676
676
|
async function A() {
|
|
677
|
-
var
|
|
678
|
-
await w(), (
|
|
677
|
+
var s;
|
|
678
|
+
await w(), (s = U.value) == null || s.showSheet(!1);
|
|
679
679
|
}
|
|
680
680
|
const P = G(() => R.isPremium ? [
|
|
681
681
|
{
|
|
@@ -689,8 +689,8 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
689
689
|
isPrimary: !0
|
|
690
690
|
}
|
|
691
691
|
] : []);
|
|
692
|
-
async function u(
|
|
693
|
-
const o = new Fe(), l =
|
|
692
|
+
async function u(s) {
|
|
693
|
+
const o = new Fe(), l = s.map((t) => ({
|
|
694
694
|
CardNumber: t
|
|
695
695
|
}));
|
|
696
696
|
o.addRecords(l), await we(
|
|
@@ -707,7 +707,7 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
707
707
|
await N(async () => {
|
|
708
708
|
await R.readPremium(), await v.readMemberStore(), await v.readMembership(), await A();
|
|
709
709
|
});
|
|
710
|
-
}), (
|
|
710
|
+
}), (s, o) => {
|
|
711
711
|
const l = f("FmPill"), t = f("FmPageHead"), D = f("FmSearch"), H = f("FmButton"), B = f("FmCard");
|
|
712
712
|
return _(), x(M, null, [
|
|
713
713
|
d(t, {
|
|
@@ -719,7 +719,7 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
719
719
|
})
|
|
720
720
|
}, {
|
|
721
721
|
title: k(() => [
|
|
722
|
-
c("div",
|
|
722
|
+
c("div", sn, [
|
|
723
723
|
c("span", rn, q(n(m)("connect.loyalty.card.title")), 1),
|
|
724
724
|
d(l, {
|
|
725
725
|
class: "ml-8",
|
|
@@ -809,7 +809,7 @@ const Ze = /* @__PURE__ */ Ie(qe), en = {
|
|
|
809
809
|
onSuccess: A,
|
|
810
810
|
onExport: u
|
|
811
811
|
}, null, 512),
|
|
812
|
-
d(
|
|
812
|
+
d(an, {
|
|
813
813
|
ref_key: "designSheetRef",
|
|
814
814
|
ref: E,
|
|
815
815
|
onSuccess: A
|