@feedmepos/mf-connect 0.0.16-beta.5 → 0.0.16-beta.6
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-doR6WusT.js → Analytic-BVuGbTwv.js} +2 -2
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-cI39YlgW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Bxpa-_mm.js} +1 -1
- package/dist/{Card-BJFn_iNx.js → Card-CQ01Sbmr.js} +75 -75
- package/dist/Collections-BtIEMfxI.js +4 -0
- package/dist/{Credit-ChzkEEwr.js → Credit-DKpU-Fqh.js} +20 -20
- package/dist/{Experience-DG6OwEP2.js → Experience-0HYPKxNA.js} +3 -3
- package/dist/{Game-C2qoC58L.js → Game-OZt6lQvh.js} +3 -3
- package/dist/MainLayout-DO1g-EN4.js +4 -0
- package/dist/{Marketing-8LpAxSRX.js → Marketing-ClFlJj2D.js} +1 -1
- package/dist/{Member-QGHylKf1.js → Member-DbEQtYdP.js} +1 -1
- package/dist/{MemberList-DhIXXaM8.js → MemberList-Be6Wa9FX.js} +3 -3
- package/dist/{MemberTransactions-CiawwDVb.js → MemberTransactions-D9N_q5uD.js} +1 -1
- package/dist/{Mission-C4bK_HH4.js → Mission-Bb7Gxhaj.js} +70 -66
- package/dist/{Point-dc0cAp9R.js → Point-DIriPN8u.js} +18 -18
- package/dist/{Segment-kV_b6FEu.js → Segment-CVwjT9aw.js} +1 -1
- package/dist/{Setting-BLlfBq7v.js → Setting-BfG3uUSL.js} +1 -1
- package/dist/{Store-CjbZg1j1.js → Store-h7b04ajj.js} +3 -3
- package/dist/{StoreRewards-D1wQUAqc.js → StoreRewards-C3x6MUkN.js} +1 -1
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-lhEKM8Ey.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DPoTHNZc.js} +3 -3
- package/dist/{Tier-BnNENcJ_.js → Tier-cBKbacUy.js} +394 -387
- package/dist/{Title-Ce63URj6.js → Title-BHpfJlxy.js} +218 -214
- package/dist/{Transaction-BAL-xXYs.js → Transaction-BdZUSSVK.js} +2 -2
- package/dist/{app-DoQgT5K9.js → app-BQZLUAQT.js} +472 -346
- package/dist/app.js +1 -1
- package/dist/{export-D0sjtxIs.js → export-BaUeQ3Pf.js} +1 -1
- package/dist/{money-DZ-NGA4K.js → money-D4rDwYP5.js} +1 -1
- package/dist/{number-zaA9WLEO.js → number-DPytq9Vv.js} +1 -1
- package/package.json +1 -1
- package/dist/Collections-BEG28RbD.js +0 -4
- package/dist/MainLayout-B3JryIOU.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as D, openBlock as r, createElementBlock as R, Fragment as w, renderList as C, createElementVNode as e, toDisplayString as z, createCommentVNode as k, resolveComponent as X, createBlock as j, withCtx as g, createVNode as l, unref as o, ref as v, computed as O, onMounted as Z, watch as eo, isRef as Q, createSlots as io, createTextVNode as to, reactive as ao, onBeforeMount as ro, normalizeClass as G } from "vue";
|
|
2
|
-
import { C as no, c as N, J as Ko, u as Ao, F as Uo, g as lo, a as so, Z as Fo, b as co, d as po, e as Ro, f as uo, h as mo, i as fo, j as Vo, m as qo } from "./app-
|
|
3
|
-
import { f as vo } from "./number-
|
|
2
|
+
import { C as no, c as N, J as Ko, u as Ao, F as Uo, g as lo, a as so, Z as Fo, b as co, d as po, e as Ro, f as uo, h as mo, i as fo, j as Vo, m as qo } from "./app-BQZLUAQT.js";
|
|
3
|
+
import { f as vo } from "./number-DPytq9Vv.js";
|
|
4
4
|
import { useRouter as $ } from "vue-router";
|
|
5
5
|
import { useSnackbar as Po } from "@feedmepos/ui-library";
|
|
6
6
|
const Xo = { class: "divide-x flex flex-wrap" }, yo = { class: "fm-typo-en-body-md-400 mb-2 text-fm-color-typo-secondary" }, So = { class: "fm-typo-en-title-sm-800" }, ho = /* @__PURE__ */ D({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as RuleOperator, y as isRuleGroup, K as _, D as F_RUNNABLE_CAMPAIGN_TYPE } from "./app-
|
|
1
|
+
import { I as RuleOperator, y as isRuleGroup, K as _, D as F_RUNNABLE_CAMPAIGN_TYPE } from "./app-BQZLUAQT.js";
|
|
2
2
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createVNode, toDisplayString } from "vue";
|
|
3
3
|
import { useDialog } from "@feedmepos/ui-library";
|
|
4
4
|
function validateRule(data, r, date) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as ee, ref as b, computed as G, watch as ve, onMounted as ne, resolveComponent as g, openBlock as _, createBlock as I, unref as n, isRef as Q, withCtx as k, createElementVNode as m, createVNode as d, createElementBlock as x, Fragment as M, renderList as Z, createCommentVNode as O, normalizeClass as Ee, createSlots as ye, h as X, toDisplayString as
|
|
2
|
-
import { h as te, u as ke, a8 as ie, A as Te, s as oe, b as
|
|
1
|
+
import { defineComponent as ee, ref as b, computed as G, watch as ve, onMounted as ne, resolveComponent as g, openBlock as _, createBlock as I, unref as n, isRef as Q, withCtx as k, createElementVNode as m, createVNode as d, createElementBlock as x, Fragment as M, renderList as Z, createCommentVNode as O, normalizeClass as Ee, createSlots as ye, h as X, toDisplayString as z, withModifiers as Se } from "vue";
|
|
2
|
+
import { h as te, u as ke, a8 as ie, A as Te, s as oe, b as se, T as Re, n as le, a9 as Ae, aa as Ce, B as de, M as Oe, e as Ie, U as pe, a0 as xe, a2 as Ne, a3 as De, j as Ue, a4 as we } from "./app-BQZLUAQT.js";
|
|
3
3
|
import { useDialog as He, components as Fe } from "@feedmepos/ui-library";
|
|
4
|
-
import { e as Be, C as Pe } from "./export-
|
|
4
|
+
import { e as Be, C as Pe } from "./export-BaUeQ3Pf.js";
|
|
5
5
|
const Me = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number type", -1), Ve = { class: "space-y-16" }, Ge = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number Settings", -1), Le = { class: "gap-16 grid grid-cols-2" }, je = { class: "space-y-16" }, $e = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Card Settings", -1), Ke = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "flex flex-col gap-[16px] w-full"
|
|
8
|
-
}, Ye = { class: "flex flex-col gap-[8px]" }, We = /* @__PURE__ */ m("p", { class: "fm-typo-en-title-sm-800" }, "Design preview", -1), Xe = ["src"],
|
|
8
|
+
}, Ye = { class: "flex flex-col gap-[8px]" }, We = /* @__PURE__ */ m("p", { class: "fm-typo-en-title-sm-800" }, "Design preview", -1), Xe = ["src"], ze = { class: "flex pt-[24px] gap-[24px]" }, qe = ["src", "onClick", "alt"], Je = { class: "flex items-center gap-8" }, Qe = /* @__PURE__ */ ee({
|
|
9
9
|
__name: "CreateCardSheet",
|
|
10
10
|
emits: ["success", "export"],
|
|
11
11
|
setup(e, { expose: i, emit: N }) {
|
|
12
|
-
const { minor: U } =
|
|
12
|
+
const { minor: U } = se, E = te(), R = b(), h = b(!1), c = N, v = b(!1);
|
|
13
13
|
function L(l) {
|
|
14
14
|
v.value = l, l && (r.value = {
|
|
15
15
|
quantity: 1,
|
|
@@ -64,10 +64,10 @@ const Me = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
64
64
|
var l;
|
|
65
65
|
return (l = E.membership.design) == null ? void 0 : l[A.value];
|
|
66
66
|
}
|
|
67
|
-
), u = b(!1),
|
|
67
|
+
), u = b(!1), a = G(
|
|
68
68
|
() => E.sortedStoreCategories.flatMap((l) => l.bundles)
|
|
69
69
|
);
|
|
70
|
-
async function
|
|
70
|
+
async function s(l) {
|
|
71
71
|
var D, H;
|
|
72
72
|
if (await ((D = R.value) == null ? void 0 : D.validateInputs()), !h.value) return;
|
|
73
73
|
l.design = (H = B.value) == null ? void 0 : H.image;
|
|
@@ -113,7 +113,7 @@ const Me = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
113
113
|
m("div", Je, [
|
|
114
114
|
d(K, {
|
|
115
115
|
label: "Save",
|
|
116
|
-
onClick: t[17] || (t[17] = (C) =>
|
|
116
|
+
onClick: t[17] || (t[17] = (C) => s(n(r))),
|
|
117
117
|
loading: n(ke)().isLoading
|
|
118
118
|
}, null, 8, ["loading"]),
|
|
119
119
|
d(K, {
|
|
@@ -133,7 +133,7 @@ const Me = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
133
133
|
onValidationFailed: t[16] || (t[16] = (C) => h.value = !1)
|
|
134
134
|
}, {
|
|
135
135
|
default: k(() => {
|
|
136
|
-
var C,
|
|
136
|
+
var C, ae, re;
|
|
137
137
|
return [
|
|
138
138
|
m("div", null, [
|
|
139
139
|
Me,
|
|
@@ -239,7 +239,7 @@ const Me = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
239
239
|
d(ie, {
|
|
240
240
|
label: "Activate bundle on bind",
|
|
241
241
|
placeholder: "Select bundle",
|
|
242
|
-
items: n(
|
|
242
|
+
items: n(a).filter((o) => !o.stripePriceId).map((o) => ({ label: o.name, value: o._id })),
|
|
243
243
|
modelValue: n(r).bundle,
|
|
244
244
|
"onUpdate:modelValue": t[12] || (t[12] = (o) => n(r).bundle = o)
|
|
245
245
|
}, {
|
|
@@ -253,11 +253,11 @@ const Me = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
253
253
|
]),
|
|
254
254
|
_: 1
|
|
255
255
|
}, 8, ["items", "modelValue"]),
|
|
256
|
-
(
|
|
256
|
+
(ae = (C = n(E).store) == null ? void 0 : C.stripe) != null && ae.apiKey ? (_(), I(ie, {
|
|
257
257
|
key: 0,
|
|
258
258
|
label: "Linked subscription bundle",
|
|
259
259
|
placeholder: "Select bundle",
|
|
260
|
-
items: n(
|
|
260
|
+
items: n(a).filter((o) => o.stripePriceId).map((o) => ({ label: o.name, value: o._id })),
|
|
261
261
|
modelValue: n(r).subscriptionBundle,
|
|
262
262
|
"onUpdate:modelValue": t[14] || (t[14] = (o) => n(r).subscriptionBundle = o)
|
|
263
263
|
}, {
|
|
@@ -279,7 +279,7 @@ const Me = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
279
279
|
src: (re = n(B)) == null ? void 0 : re.image,
|
|
280
280
|
class: "aspect-[16/9]"
|
|
281
281
|
}, null, 8, Xe),
|
|
282
|
-
m("div",
|
|
282
|
+
m("div", ze, [
|
|
283
283
|
(_(!0), x(M, null, Z(n(E).membership.design, (o, Y) => (_(), x("img", {
|
|
284
284
|
src: o.image,
|
|
285
285
|
key: `image_${Y}`,
|
|
@@ -287,7 +287,7 @@ const Me = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
287
287
|
onClick: (vn) => A.value = Y,
|
|
288
288
|
alt: `ai_image_predict_${Y}`,
|
|
289
289
|
style: { objectFit: "cover" }
|
|
290
|
-
}, null, 10,
|
|
290
|
+
}, null, 10, qe))), 128))
|
|
291
291
|
])
|
|
292
292
|
])
|
|
293
293
|
])) : O("", !0)
|
|
@@ -301,7 +301,7 @@ const Me = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
|
-
var z = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_bf90c578-8d41-4c0d-95d1-aa83a63c2b76", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.36", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_dependencies_vite_plugin_vue_devtools: "^7.6.4", USER: "runner", npm_config_user_agent: "pnpm/9.15.4 npm/? node/v20.18.1 linux x64", CI: "true", npm_package_dependencies_vue: "^3.4.29", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_bf90c578-8d41-4c0d-95d1-aa83a63c2b76", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.1", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.1/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf", npm_package_dependencies__types_qrcode: "^1.5.5", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8096", GRADLE_HOME: "/usr/share/gradle-8.12", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.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: "707", npm_package_dependencies__feedmepos_ui_library: "1.3.5", npm_package_dependencies_dayjs: "^1.11.11", npm_package_dependencies_dotenv: "^16.4.5", npm_package_dependencies_moment: "^2.30.1", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev", npm_package_dependencies_i18next: "^24.2.1", npm_package_devDependencies_tailwindcss: "^3.4.4", npm_package_devDependencies_typescript: "^5.4.5", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode development", npm_package_scripts_build_only_prod: "pnpm build:mf:prod", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.21", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250105.1.0", npm_package_scripts_dev: "vite", npm_package_scripts_build_prod: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode production", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.3", npm_package_dependencies_unplugin_auto_import: "^0.17.6", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.10/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.4/x64", JOURNAL_STREAM: "8:7243", GITHUB_WORKFLOW: "Publish mf-connect - dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^9.0.8", npm_package_devDependencies_unlayer_types: "^1.111.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12805958924", STATS_VMFE: "true", npm_package_dependencies_bson_objectid: "^2.0.4", npm_package_devDependencies__types_lodash: "^4.17.5", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "0dcc47ddd83acf18572c3a3fb586493922af4c0c", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", GITHUB_WORKFLOW_REF: "feedmepos/marketing-services/.github/workflows/[DEV] publish-mf-connect.yml@refs/heads/dev", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_6e38a50b-0218-4ba1-a814-39c37cca0e15", INVOCATION_ID: "f3e70edb463e47e68c0f8cd2edc18a6a", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.1/x64/bin/node", npm_package_name: "@feedmepos/mf-connect", npm_package_scripts_deploy_dev: "pnpm run build-only:dev && pnpm publish --no-git-checks .", npm_package_dependencies_cross_env: "^7.0.3", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "40", 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.13", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 388", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/marketing-services", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --noEmit false --emitDeclarationOnly -p tsconfig.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.json --outDir dist --composite false", npm_package_dependencies__feedmepos_core: "^2.10.4", npm_lifecycle_script: "vite build --mode fmmf", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_rrule: "^2.8.1", npm_package_dependencies_vue3_lottie: "^3.3.0", GITHUB_REPOSITORY_ID: "615151795", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/bin/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.0.16-beta.5", 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: "0dcc47ddd83acf18572c3a3fb586493922af4c0c", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.3", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "qaijunse", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_dependencies_email_addresses: "^5.0.0", npm_package_dependencies_firebase: "^10.12.2", npm_package_dependencies_qrcode: "^1.5.3", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_bf90c578-8d41-4c0d-95d1-aa83a63c2b76", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", GITHUB_ACTOR_ID: "39590157", RUNNER_WORKSPACE: "/home/runner/work/marketing-services", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_bf90c578-8d41-4c0d-95d1-aa83a63c2b76", npm_package_exports___types: "./dist/packages/connect/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_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_bf90c578-8d41-4c0d-95d1-aa83a63c2b76", INIT_CWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", NODE_ENV: "production", FEEDME_NAMESPACE: "dev", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", AUTH_URL: "https://portal-v2-dev.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "member.feedmedev.cc", CRM_APP_URL: "crm.feedmedev.cc", MARKETING_V1_PORTAL: "https://marketing-v1.feedmedev.cc", CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", PAYMENT_PORTAL_URL: "https://portal.feedmedev.cc/payment/payout-account" } }, J = Math.floor(Math.random() * 16777215), ce = p.index = parseInt(Math.random() * 16777215, 10), me = (typeof z > "u" || typeof z.pid != "number" ? Math.floor(Math.random() * 1e5) : z.pid) % 65535, ue = (() => {
|
|
304
|
+
var q = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_257bdea3-2c56-470e-874b-92bb42ec9fb0", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.36", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_dependencies_vite_plugin_vue_devtools: "^7.6.4", USER: "runner", npm_config_user_agent: "pnpm/9.15.4 npm/? node/v20.18.1 linux x64", CI: "true", npm_package_dependencies_vue: "^3.4.29", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_257bdea3-2c56-470e-874b-92bb42ec9fb0", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.1", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.1/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf", npm_package_dependencies__types_qrcode: "^1.5.5", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8096", GRADLE_HOME: "/usr/share/gradle-8.12", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.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: "706", npm_package_dependencies__feedmepos_ui_library: "1.3.5", npm_package_dependencies_dayjs: "^1.11.11", npm_package_dependencies_dotenv: "^16.4.5", npm_package_dependencies_moment: "^2.30.1", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev", npm_package_dependencies_i18next: "^24.2.1", npm_package_devDependencies_tailwindcss: "^3.4.4", npm_package_devDependencies_typescript: "^5.4.5", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode development", npm_package_scripts_build_only_prod: "pnpm build:mf:prod", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.21", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250105.1.0", npm_package_scripts_dev: "vite", npm_package_scripts_build_prod: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode production", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.3", npm_package_dependencies_unplugin_auto_import: "^0.17.6", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.10/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.4/x64", JOURNAL_STREAM: "8:5912", GITHUB_WORKFLOW: "Publish mf-connect - dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^9.0.8", npm_package_devDependencies_unlayer_types: "^1.111.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12866245382", STATS_VMFE: "true", npm_package_dependencies_bson_objectid: "^2.0.4", npm_package_devDependencies__types_lodash: "^4.17.5", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "212fe861825c95368becfadee291f8867b518448", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", GITHUB_WORKFLOW_REF: "feedmepos/marketing-services/.github/workflows/[DEV] publish-mf-connect.yml@refs/heads/dev", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_385365b0-c18b-4854-9972-6893cacac996", INVOCATION_ID: "980fe63d3a214fd08054083a0e1e5650", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.1/x64/bin/node", npm_package_name: "@feedmepos/mf-connect", npm_package_scripts_deploy_dev: "pnpm run build-only:dev && pnpm publish --no-git-checks .", npm_package_dependencies_cross_env: "^7.0.3", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "41", GITHUB_TRIGGERING_ACTOR: "mmjang", 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.13", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 289", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/marketing-services", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --noEmit false --emitDeclarationOnly -p tsconfig.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.json --outDir dist --composite false", npm_package_dependencies__feedmepos_core: "^2.10.4", npm_lifecycle_script: "vite build --mode fmmf", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_rrule: "^2.8.1", npm_package_dependencies_vue3_lottie: "^3.3.0", GITHUB_REPOSITORY_ID: "615151795", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/bin/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.0.16-beta.6", 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: "212fe861825c95368becfadee291f8867b518448", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.3", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "mmjang", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_dependencies_email_addresses: "^5.0.0", npm_package_dependencies_firebase: "^10.12.2", npm_package_dependencies_qrcode: "^1.5.3", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_257bdea3-2c56-470e-874b-92bb42ec9fb0", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", GITHUB_ACTOR_ID: "5045203", RUNNER_WORKSPACE: "/home/runner/work/marketing-services", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_257bdea3-2c56-470e-874b-92bb42ec9fb0", npm_package_exports___types: "./dist/packages/connect/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_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_257bdea3-2c56-470e-874b-92bb42ec9fb0", INIT_CWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", NODE_ENV: "production", FEEDME_NAMESPACE: "dev", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", AUTH_URL: "https://portal-v2-dev.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "member.feedmedev.cc", CRM_APP_URL: "crm.feedmedev.cc", MARKETING_V1_PORTAL: "https://marketing-v1.feedmedev.cc", CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", PAYMENT_PORTAL_URL: "https://portal.feedmedev.cc/payment/payout-account" } }, J = Math.floor(Math.random() * 16777215), ce = p.index = parseInt(Math.random() * 16777215, 10), me = (typeof q > "u" || typeof q.pid != "number" ? Math.floor(Math.random() * 1e5) : q.pid) % 65535, ue = (() => {
|
|
305
305
|
try {
|
|
306
306
|
return _Buffer;
|
|
307
307
|
} catch {
|
|
@@ -441,23 +441,23 @@ p.prototype[tn] = function() {
|
|
|
441
441
|
};
|
|
442
442
|
p.prototype.toJSON = p.prototype.toHexString;
|
|
443
443
|
p.prototype.toString = p.prototype.toHexString;
|
|
444
|
-
const on = /* @__PURE__ */ Re(Ze),
|
|
444
|
+
const on = /* @__PURE__ */ Re(Ze), sn = {
|
|
445
445
|
key: 0,
|
|
446
446
|
class: "grid grid-cols-1 gap-8"
|
|
447
|
-
},
|
|
447
|
+
}, an = { class: "flex items-center gap-8" }, rn = { class: "flex items-center gap-8" }, ln = 5, dn = /* @__PURE__ */ ee({
|
|
448
448
|
__name: "CardDesignSheet",
|
|
449
449
|
emits: ["success"],
|
|
450
450
|
setup(e, { expose: i, emit: N }) {
|
|
451
|
-
const { minor: U } =
|
|
451
|
+
const { minor: U } = se, E = te(), R = He(), h = b(!1);
|
|
452
452
|
b(), b(!1);
|
|
453
453
|
const c = b(), v = b(null);
|
|
454
454
|
G(() => {
|
|
455
|
-
var u,
|
|
456
|
-
return Math.min((((
|
|
455
|
+
var u, a;
|
|
456
|
+
return Math.min((((a = (u = c.value) == null ? void 0 : u.design) == null ? void 0 : a.length) ?? 0) + 1, ln);
|
|
457
457
|
});
|
|
458
458
|
const L = N, r = G(() => {
|
|
459
|
-
var u,
|
|
460
|
-
return ((
|
|
459
|
+
var u, a;
|
|
460
|
+
return ((a = (u = E.membership) == null ? void 0 : u.design) == null ? void 0 : a.filter((s) => s.image)) || [];
|
|
461
461
|
}), S = b(!1);
|
|
462
462
|
function V(u) {
|
|
463
463
|
S.value = u;
|
|
@@ -468,19 +468,19 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
468
468
|
async function T() {
|
|
469
469
|
await U(
|
|
470
470
|
async () => {
|
|
471
|
-
var
|
|
472
|
-
const u = Ae(c.value),
|
|
473
|
-
if (
|
|
471
|
+
var s;
|
|
472
|
+
const u = Ae(c.value), a = Ce.parse(u);
|
|
473
|
+
if (a.design = (a == null ? void 0 : a.design) || [], v.value) {
|
|
474
474
|
const l = on().toHexString(), t = await de.update(
|
|
475
475
|
de.designPath(l, v.value),
|
|
476
476
|
v.value
|
|
477
477
|
);
|
|
478
|
-
(
|
|
478
|
+
(s = a.design) == null || s.push({
|
|
479
479
|
_id: l,
|
|
480
480
|
image: t
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
|
-
await oe.update(
|
|
483
|
+
await oe.update(a), await B(), await L("success"), v.value = null, h.value = !1;
|
|
484
484
|
},
|
|
485
485
|
{
|
|
486
486
|
message: "Saving card design",
|
|
@@ -488,16 +488,16 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
488
488
|
}
|
|
489
489
|
);
|
|
490
490
|
}
|
|
491
|
-
async function A(u,
|
|
492
|
-
u ? v.value = u :
|
|
491
|
+
async function A(u, a) {
|
|
492
|
+
u ? v.value = u : a && R.open({
|
|
493
493
|
title: "Delete Design",
|
|
494
494
|
message: "Are you sure you want to delete this design?",
|
|
495
495
|
primaryActions: { text: "Delete", close: !0 },
|
|
496
496
|
secondaryActions: { text: "Cancel", close: !1 }
|
|
497
497
|
}).onPrimary(async () => {
|
|
498
498
|
var l, t;
|
|
499
|
-
const
|
|
500
|
-
console.log(
|
|
499
|
+
const s = (l = c.value.design) == null ? void 0 : l.findIndex((D) => D._id == a);
|
|
500
|
+
console.log(s), s !== -1 && ((t = c.value.design) == null || t.splice(s, 1)), await T();
|
|
501
501
|
}).onSecondary(() => {
|
|
502
502
|
R.close();
|
|
503
503
|
});
|
|
@@ -509,20 +509,20 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
509
509
|
showSheet: V
|
|
510
510
|
}), ne(async () => {
|
|
511
511
|
await B(), r.value.length || (h.value = !0);
|
|
512
|
-
}), (u,
|
|
513
|
-
const
|
|
512
|
+
}), (u, a) => {
|
|
513
|
+
const s = g("FmButton"), l = g("FmSideSheet");
|
|
514
514
|
return _(), I(l, {
|
|
515
515
|
"max-width": 560,
|
|
516
516
|
"dismiss-away": !0,
|
|
517
517
|
header: "Manage Design",
|
|
518
518
|
modelValue: n(S),
|
|
519
519
|
"onUpdate:modelValue": [
|
|
520
|
-
|
|
521
|
-
|
|
520
|
+
a[2] || (a[2] = (t) => Q(S) ? S.value = t : null),
|
|
521
|
+
a[3] || (a[3] = (t) => S.value = t)
|
|
522
522
|
]
|
|
523
523
|
}, ye({
|
|
524
524
|
default: k(() => [
|
|
525
|
-
n(h) ? O("", !0) : (_(), x("div",
|
|
525
|
+
n(h) ? O("", !0) : (_(), x("div", sn, [
|
|
526
526
|
(_(!0), x(M, null, Z(n(r), (t) => (_(), I(le, {
|
|
527
527
|
key: String(t._id),
|
|
528
528
|
"image-fit": "cover",
|
|
@@ -535,7 +535,7 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
535
535
|
"delete-button": !1
|
|
536
536
|
}, {
|
|
537
537
|
"delete-button": k(() => [
|
|
538
|
-
d(
|
|
538
|
+
d(s, {
|
|
539
539
|
class: "!text-neutral-50 !bg-neutral-700",
|
|
540
540
|
icon: "delete",
|
|
541
541
|
variant: "tertiary",
|
|
@@ -561,16 +561,16 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
561
561
|
name: "side-sheet-footer",
|
|
562
562
|
fn: k(() => [
|
|
563
563
|
m("div", rn, [
|
|
564
|
-
d(
|
|
564
|
+
d(s, {
|
|
565
565
|
label: "Save",
|
|
566
566
|
onClick: T,
|
|
567
567
|
disabled: !n(v)
|
|
568
568
|
}, null, 8, ["disabled"]),
|
|
569
|
-
d(
|
|
569
|
+
d(s, {
|
|
570
570
|
label: "Cancel",
|
|
571
571
|
type: "button",
|
|
572
572
|
variant: "tertiary",
|
|
573
|
-
onClick:
|
|
573
|
+
onClick: a[1] || (a[1] = (t) => h.value = !1)
|
|
574
574
|
})
|
|
575
575
|
])
|
|
576
576
|
]),
|
|
@@ -578,16 +578,16 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
578
578
|
} : {
|
|
579
579
|
name: "side-sheet-footer",
|
|
580
580
|
fn: k(() => [
|
|
581
|
-
m("div",
|
|
582
|
-
d(
|
|
581
|
+
m("div", an, [
|
|
582
|
+
d(s, {
|
|
583
583
|
label: "Add Design",
|
|
584
584
|
onClick: w
|
|
585
585
|
}),
|
|
586
|
-
d(
|
|
586
|
+
d(s, {
|
|
587
587
|
label: "Cancel",
|
|
588
588
|
type: "button",
|
|
589
589
|
variant: "tertiary",
|
|
590
|
-
onClick:
|
|
590
|
+
onClick: a[0] || (a[0] = (t) => S.value = !1)
|
|
591
591
|
})
|
|
592
592
|
])
|
|
593
593
|
]),
|
|
@@ -602,19 +602,19 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
602
602
|
}, null, -1), gn = { class: "flex flex-col gap-16 text-center" }, fn = { class: "fm-typo-en-title-sm-800" }, bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, hn = { class: "flex gap-x-8" }, Tn = /* @__PURE__ */ ee({
|
|
603
603
|
__name: "Card",
|
|
604
604
|
setup(e) {
|
|
605
|
-
const { minor: i, global: N } =
|
|
606
|
-
() => h.sortedStoreCategories.flatMap((
|
|
605
|
+
const { minor: i, global: N } = se, U = b(), E = b(), R = Oe(), h = te(), { t: c } = Ie(), v = G(
|
|
606
|
+
() => h.sortedStoreCategories.flatMap((a) => a.bundles)
|
|
607
607
|
), L = [
|
|
608
608
|
{
|
|
609
609
|
header: c("connect.loyalty.card.table.card_number"),
|
|
610
|
-
accessorFn: (
|
|
610
|
+
accessorFn: (a) => a.serialNumber
|
|
611
611
|
},
|
|
612
612
|
{
|
|
613
613
|
header: c("connect.loyalty.card.table.redeemed_by"),
|
|
614
614
|
accessorKey: "user",
|
|
615
615
|
enableSorting: !1,
|
|
616
|
-
cell(
|
|
617
|
-
const
|
|
616
|
+
cell(a) {
|
|
617
|
+
const s = a.row.original.pf_member;
|
|
618
618
|
return X(
|
|
619
619
|
"div",
|
|
620
620
|
{
|
|
@@ -622,44 +622,44 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
622
622
|
},
|
|
623
623
|
[
|
|
624
624
|
X(Fe.FmAvatar, {
|
|
625
|
-
name:
|
|
626
|
-
src: (
|
|
625
|
+
name: s != null && s.photoUrl || s == null ? void 0 : s.name,
|
|
626
|
+
src: (s == null ? void 0 : s.photoUrl) ?? void 0,
|
|
627
627
|
size: "sm"
|
|
628
628
|
}),
|
|
629
|
-
X("span", { class: "fm-typo-en-body-sm-400" },
|
|
629
|
+
X("span", { class: "fm-typo-en-body-sm-400" }, s == null ? void 0 : s.name)
|
|
630
630
|
]
|
|
631
631
|
);
|
|
632
632
|
}
|
|
633
633
|
},
|
|
634
634
|
{
|
|
635
635
|
header: c("connect.loyalty.card.table.phone"),
|
|
636
|
-
accessorFn: (
|
|
637
|
-
var
|
|
638
|
-
return ((
|
|
636
|
+
accessorFn: (a) => {
|
|
637
|
+
var s;
|
|
638
|
+
return ((s = a.pf_member) == null ? void 0 : s.phoneNumber) || "-";
|
|
639
639
|
},
|
|
640
640
|
accessorKey: "pf_member.phoneNumber"
|
|
641
641
|
},
|
|
642
642
|
{
|
|
643
643
|
header: c("connect.loyalty.card.table.created_at"),
|
|
644
644
|
accessorKey: "_id",
|
|
645
|
-
accessorFn: (
|
|
645
|
+
accessorFn: (a) => pe(xe(a._id.toString())).format("DD MMM YYYY hh:mmA")
|
|
646
646
|
},
|
|
647
647
|
{
|
|
648
648
|
header: c("connect.loyalty.card.table.bundle"),
|
|
649
|
-
accessorFn: (
|
|
650
|
-
var
|
|
651
|
-
return ((
|
|
649
|
+
accessorFn: (a) => {
|
|
650
|
+
var s;
|
|
651
|
+
return ((s = v.value.find((l) => l._id === a.bundle)) == null ? void 0 : s.name) || "-";
|
|
652
652
|
}
|
|
653
653
|
},
|
|
654
654
|
{
|
|
655
655
|
header: c("connect.loyalty.card.table.redeemed_at"),
|
|
656
656
|
accessorKey: "redeemedAt",
|
|
657
|
-
accessorFn: (
|
|
657
|
+
accessorFn: (a) => a.redeemedAt ? pe(a.redeemedAt).format("DD MMM YYYY hh:mmA") : "-"
|
|
658
658
|
}
|
|
659
659
|
], { tableMeta: r, rowData: S, onSort: V, debouncedFetchData: w, onSearch: T } = Ne(oe.readCards);
|
|
660
660
|
async function A() {
|
|
661
|
-
var
|
|
662
|
-
await w(), (
|
|
661
|
+
var a;
|
|
662
|
+
await w(), (a = U.value) == null || a.showSheet(!1);
|
|
663
663
|
}
|
|
664
664
|
const B = G(() => R.isPremium ? [
|
|
665
665
|
{
|
|
@@ -673,12 +673,12 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
673
673
|
isPrimary: !0
|
|
674
674
|
}
|
|
675
675
|
] : []);
|
|
676
|
-
async function u(
|
|
677
|
-
const
|
|
676
|
+
async function u(a) {
|
|
677
|
+
const s = new Pe(), l = a.map((t) => ({
|
|
678
678
|
CardNumber: t
|
|
679
679
|
}));
|
|
680
|
-
|
|
681
|
-
|
|
680
|
+
s.addRecords(l), await we(
|
|
681
|
+
s.buildExcel(),
|
|
682
682
|
`cards-${(/* @__PURE__ */ new Date()).toISOString()}.xlsx`,
|
|
683
683
|
{
|
|
684
684
|
bookType: "xlsx",
|
|
@@ -691,20 +691,20 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
691
691
|
await N(async () => {
|
|
692
692
|
await R.readPremium(), await h.readMemberStore(), await h.readMembership(), await A();
|
|
693
693
|
});
|
|
694
|
-
}), (
|
|
694
|
+
}), (a, s) => {
|
|
695
695
|
const l = g("FmPill"), t = g("FmPageHead"), D = g("FmSearch"), H = g("FmButton"), P = g("FmCard");
|
|
696
696
|
return _(), x(M, null, [
|
|
697
697
|
d(t, {
|
|
698
698
|
title: n(c)("connect.loyalty.card.title"),
|
|
699
699
|
actions: n(B),
|
|
700
|
-
"onClick:action":
|
|
700
|
+
"onClick:action": s[0] || (s[0] = (f) => {
|
|
701
701
|
var $, F;
|
|
702
702
|
console.log(f), f === "design" && (($ = n(E)) == null || $.showSheet(!0)), f === "create" && ((F = n(U)) == null || F.showSheet(!0));
|
|
703
703
|
})
|
|
704
704
|
}, {
|
|
705
705
|
title: k(() => [
|
|
706
706
|
m("div", pn, [
|
|
707
|
-
m("span", cn,
|
|
707
|
+
m("span", cn, z(n(c)("connect.loyalty.card.title")), 1),
|
|
708
708
|
d(l, {
|
|
709
709
|
class: "ml-8",
|
|
710
710
|
variant: "premium"
|
|
@@ -720,7 +720,7 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
720
720
|
class: "mt-4",
|
|
721
721
|
modelValue: n(r).searchValue,
|
|
722
722
|
"onUpdate:modelValue": [
|
|
723
|
-
|
|
723
|
+
s[1] || (s[1] = (f) => n(r).searchValue = f),
|
|
724
724
|
n(T)
|
|
725
725
|
],
|
|
726
726
|
placeholder: "Search",
|
|
@@ -742,7 +742,7 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
742
742
|
"page-index": n(r).pageIndex,
|
|
743
743
|
"page-size": n(r).pageSize,
|
|
744
744
|
onSortChange: n(V),
|
|
745
|
-
onPageChange:
|
|
745
|
+
onPageChange: s[2] || (s[2] = (f) => {
|
|
746
746
|
n(w)({
|
|
747
747
|
pageSize: f.pageSize,
|
|
748
748
|
pageIndex: f.pageIndex
|
|
@@ -757,8 +757,8 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
757
757
|
default: k(() => [
|
|
758
758
|
_n,
|
|
759
759
|
m("div", gn, [
|
|
760
|
-
m("div", fn,
|
|
761
|
-
m("div", bn,
|
|
760
|
+
m("div", fn, z(n(c)("connect.loyalty.card.empty_state.title")), 1),
|
|
761
|
+
m("div", bn, z(n(c)("connect.loyalty.card.empty_state.description")), 1)
|
|
762
762
|
]),
|
|
763
763
|
m("div", hn, [
|
|
764
764
|
d(H, {
|
|
@@ -766,7 +766,7 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
766
766
|
label: n(c)("connect.loyalty.card.actions.add"),
|
|
767
767
|
icon: "add",
|
|
768
768
|
disabled: !n(R).isPremium,
|
|
769
|
-
onClick:
|
|
769
|
+
onClick: s[3] || (s[3] = () => {
|
|
770
770
|
var f;
|
|
771
771
|
return (f = n(U)) == null ? void 0 : f.showSheet(!0);
|
|
772
772
|
})
|
|
@@ -775,7 +775,7 @@ const on = /* @__PURE__ */ Re(Ze), an = {
|
|
|
775
775
|
variant: "secondary",
|
|
776
776
|
label: n(c)("connect.loyalty.card.actions.manage_design"),
|
|
777
777
|
disabled: !n(R).isPremium,
|
|
778
|
-
onClick:
|
|
778
|
+
onClick: s[4] || (s[4] = () => {
|
|
779
779
|
var f;
|
|
780
780
|
return (f = n(E)) == null ? void 0 : f.showSheet(!0);
|
|
781
781
|
})
|