@feedmepos/mf-brand-app-builder 0.5.10 → 0.5.11-alpha

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.
@@ -1,11 +1,11 @@
1
- import { defineComponent as d, computed as h, resolveComponent as u, openBlock as l, createElementBlock as m, Fragment as f, renderList as v, createVNode as n, unref as p, withCtx as _, ref as x, onMounted as b, onBeforeMount as w, watch as y, createElementVNode as i, createBlock as B, createCommentVNode as k } from "vue";
1
+ import { defineComponent as d, computed as g, resolveComponent as u, openBlock as l, createElementBlock as m, Fragment as f, renderList as v, createVNode as n, unref as p, withCtx as _, ref as x, onMounted as b, onBeforeMount as w, watch as y, createElementVNode as i, createBlock as B, createCommentVNode as k } from "vue";
2
2
  import { useCoreStore as C } from "@feedmepos/mf-common";
3
3
  import { V as F } from "./vue-sonner-PX6Req0V.js";
4
4
  import { useRoute as R, RouterLink as S, RouterView as V } from "vue-router";
5
- import { g as L } from "./index-DgTWcKAO.js";
5
+ import { g as L } from "./index-4BDCQhnW.js";
6
6
  const A = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r border-fm-color-neutral-gray-100 p-[10px] flex flex-col gap-12" }, N = /* @__PURE__ */ d({
7
7
  __name: "NavigationSidebar",
8
- setup(g) {
8
+ setup(h) {
9
9
  const e = R(), r = [
10
10
  // {
11
11
  // name: 'home',
@@ -19,7 +19,7 @@ const A = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r bord
19
19
  name: "settings",
20
20
  icon: "settings"
21
21
  }
22
- ], a = h(
22
+ ], a = g(
23
23
  () => (t) => e.matched.map((s) => s.name).includes(t)
24
24
  );
25
25
  return (t, s) => {
@@ -44,14 +44,14 @@ const A = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r bord
44
44
  }
45
45
  }), P = { class: "relative h-[calc(100vh-56px)] w-screen" }, z = { class: "flex w-full h-full" }, G = /* @__PURE__ */ d({
46
46
  __name: "App",
47
- setup(g) {
47
+ setup(h) {
48
48
  const e = C(), r = x(!0);
49
49
  async function a() {
50
50
  var t;
51
51
  r.value = !0, (t = e.currentBusiness.value) != null && t._id && (r.value = !1);
52
52
  }
53
53
  return b(() => {
54
- console.log("Running v0.5.10"), e.hideSidebar.value = !0, L();
54
+ console.log("Running v0.5.11-alpha"), e.hideSidebar.value = !0, L();
55
55
  }), w(() => {
56
56
  e.hideSidebar.value = !1;
57
57
  }), y(
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as Z, ref as c, watch as y, resolveComponent as u, openBlock as P, createElementBlock as B, createElementVNode as w, createBlock as h, createCommentVNode as d, createVNode as D, createSlots as b, withCtx as a, Fragment as j, unref as G } from "vue";
2
- import { B as X } from "./index-HxaQVa4K.js";
3
- import { r as Y, I as C } from "./image-DIIj-z1G.js";
2
+ import { B as X } from "./index-CDkBzOOg.js";
3
+ import { r as Y, I as C } from "./image-D7X25pKn.js";
4
4
  import { useCoreStore as m } from "@feedmepos/mf-common";
5
5
  import { C as N, D as F } from "./CircularProgress-h90pbjU3.js";
6
6
  import { K as V } from "./vue-sonner-PX6Req0V.js";
@@ -1,14 +1,14 @@
1
1
  import { resolveComponent as Y, TransitionGroup as Fo, defineComponent as ie, h as Qt, nextTick as On, isRef as Po, isReactive as Ao, isProxy as $o, toRaw as Mo, ref as J, openBlock as D, createElementBlock as O, Fragment as Te, renderList as ot, unref as A, createElementVNode as k, toDisplayString as Pe, createVNode as S, withCtx as M, createBlock as te, createCommentVNode as ne, computed as re, withDirectives as At, withModifiers as Zt, vShow as $t, normalizeClass as Ke, watch as en, createTextVNode as Lo, onMounted as Un, normalizeProps as Cn, mergeProps as Ro, resolveDynamicComponent as Oo, guardReactiveProps as Uo, normalizeStyle as Vo, renderSlot as dn, provide as Ho, inject as zo, markRaw as Yo } from "vue";
2
- import { T as jo, B as Vn, u as rt } from "./index-3Th81Let.js";
2
+ import { T as jo, B as Vn, u as rt } from "./index-B1VIIc4c.js";
3
3
  import { defineStore as Hn, storeToRefs as Go } from "pinia";
4
4
  import { v as _n } from "./v4-ANoOI1Qw.js";
5
5
  import { _ as ke } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
6
- import { _ as Wo, a as Xo, C as Ko } from "./main-BUI2Mmvv.js";
6
+ import { _ as Wo, a as Xo, C as Ko } from "./main-CZCjdYQJ.js";
7
7
  import { useCoreStore as Fe } from "@feedmepos/mf-common";
8
8
  import { K as se, V as Jo } from "./vue-sonner-PX6Req0V.js";
9
9
  import { useDialog as qo, components as Qo } from "@feedmepos/ui-library";
10
- import { F as Zo, a as er } from "./app-Bk5PuAgw.js";
11
- import { B as tr } from "./index-HxaQVa4K.js";
10
+ import { F as Zo, a as er } from "./app-Dk2q-I0Y.js";
11
+ import { B as tr } from "./index-CDkBzOOg.js";
12
12
  /**!
13
13
  * Sortable 1.14.0
14
14
  * @author RubaXa <trash@rubaxa.org>
@@ -4758,7 +4758,10 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
4758
4758
  },
4759
4759
  {
4760
4760
  $formkit: "BaImageUpload",
4761
- name: "imageUrl"
4761
+ name: "imageUrl",
4762
+ props: {
4763
+ ignoreUpdate: !0
4764
+ }
4762
4765
  },
4763
4766
  {
4764
4767
  $formkit: "BaLinkButton",
@@ -0,0 +1,73 @@
1
+ import { defineComponent as y, ref as b, resolveComponent as w, openBlock as r, createElementBlock as s, createVNode as c, Fragment as C, createElementVNode as i, unref as u, createCommentVNode as f } from "vue";
2
+ import { r as g, I as h } from "./image-D7X25pKn.js";
3
+ import { useCoreStore as I } from "@feedmepos/mf-common";
4
+ import "./main-CZCjdYQJ.js";
5
+ import { _ as $ } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
6
+ import { C as k } from "./CircularProgress-h90pbjU3.js";
7
+ import { v as F } from "./v4-ANoOI1Qw.js";
8
+ const B = { class: "w-full h-[210px] relative" }, P = { class: "absolute z-[1] top-0 left-0 h-full w-full bg-fm-color-neutral-white border border-dashed border-fm-color-neutral-gray-200" }, j = ["src"], z = {
9
+ key: 1,
10
+ class: "absolute z-[3] top-0 left-0 rounded-md bg-fm-color-neutral-gray-100 bg-opacity-80 w-full h-full flex justify-center items-center"
11
+ }, L = /* @__PURE__ */ y({
12
+ __name: "ImageUpload",
13
+ props: {
14
+ context: {}
15
+ },
16
+ setup(_) {
17
+ const e = _, l = I(), t = b(!1);
18
+ async function v(o) {
19
+ t.value = !0, await h.uploadImage(
20
+ l.currentBusiness.value._id,
21
+ `${F()}.${o.name.split(".").pop()}`,
22
+ o
23
+ ).then((m) => {
24
+ var p;
25
+ const a = `https://image.feedmedev.cc/business/${l.currentBusiness.value._id}/${m.imagePath}`;
26
+ e.context.node.input(a);
27
+ const n = new Image();
28
+ (p = e.context.attrs.props) != null && p.ignoreUpdate || (n.onload = () => {
29
+ var d;
30
+ ((d = e.context.node.at("$root")) == null ? void 0 : d._value).containerStyles.height = `${Math.min(n.height, 400)}px`;
31
+ }), n.src = g(a);
32
+ }).finally(() => t.value = !1);
33
+ }
34
+ async function x() {
35
+ t.value = !0;
36
+ const o = e.context._value.split("/").pop();
37
+ await h.deleteImage(l.currentBusiness.value._id, o).then(() => e.context.node.input("")).finally(() => t.value = !1);
38
+ }
39
+ return (o, m) => {
40
+ const a = w("FmDropField");
41
+ return r(), s("div", B, [
42
+ c(a, {
43
+ class: "w-full h-full",
44
+ onFileUpload: v
45
+ }),
46
+ e.context._value && !t.value ? (r(), s(C, { key: 0 }, [
47
+ i("div", P, [
48
+ i("img", {
49
+ class: "w-full h-full object-contain",
50
+ src: u(g)(e.context._value)
51
+ }, null, 8, j)
52
+ ]),
53
+ i("button", {
54
+ type: "button",
55
+ class: "absolute z-[2] -right-8 -top-8 w-24 h-24 bg-fm-color-system-error-300 rounded-full flex items-center justify-center",
56
+ onClick: x
57
+ }, [
58
+ c(u($), {
59
+ name: "close",
60
+ class: "!text-[16px] text-fm-color-typo-white"
61
+ })
62
+ ])
63
+ ], 64)) : f("", !0),
64
+ t.value ? (r(), s("div", z, [
65
+ c(u(k))
66
+ ])) : f("", !0)
67
+ ]);
68
+ };
69
+ }
70
+ });
71
+ export {
72
+ L as default
73
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as L, ref as f, computed as k, onBeforeMount as P, resolveComponent as c, openBlock as p, createBlock as v, withCtx as m, createElementBlock as x, createElementVNode as o, toDisplayString as I, createVNode as r, withModifiers as R, Fragment as C, renderList as F } from "vue";
2
- import { u as $, B as y } from "./index-3Th81Let.js";
2
+ import { u as $, B as y } from "./index-B1VIIc4c.js";
3
3
  import { _ as j } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
4
4
  import { useCoreStore as z } from "@feedmepos/mf-common";
5
5
  const A = {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, resolveComponent as y, openBlock as c, createBlock as s, unref as u, withCtx as i, createElementBlock as m, Fragment as x, renderList as g, createElementVNode as p, createVNode as n, resolveDynamicComponent as F } from "vue";
2
- import { F as f } from "./app-Bk5PuAgw.js";
2
+ import { F as f } from "./app-Dk2q-I0Y.js";
3
3
  const h = { class: "flex justify-end gap-4 items-center w-full py-16 px-12 border-b" }, z = { class: "flex flex-col gap-4 w-full p-12" }, I = /* @__PURE__ */ b({
4
4
  __name: "ListRepeater",
5
5
  props: {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as x, ref as b, computed as B, watch as j, resolveComponent as m, openBlock as p, createElementBlock as w, createElementVNode as r, createVNode as c, unref as l, createBlock as z, withCtx as S, toDisplayString as $ } from "vue";
2
2
  import { useCoreStore as F } from "@feedmepos/mf-common";
3
- import { B as g } from "./index-HxaQVa4K.js";
3
+ import { B as g } from "./index-CDkBzOOg.js";
4
4
  import { K as P } from "./vue-sonner-PX6Req0V.js";
5
- import { r as U, I as V } from "./image-DIIj-z1G.js";
5
+ import { r as U, I as V } from "./image-D7X25pKn.js";
6
6
  const q = new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/), C = [
7
7
  "brand",
8
8
  "home",
@@ -8,7 +8,7 @@ const vo = [
8
8
  {
9
9
  path: "/builder",
10
10
  name: "builder",
11
- component: L(() => import("./BuilderView-50NhJYkk.js"))
11
+ component: L(() => import("./BuilderView-DWl3h2k9.js"))
12
12
  },
13
13
  {
14
14
  path: "/settings",
@@ -19,12 +19,12 @@ const vo = [
19
19
  {
20
20
  path: "assets",
21
21
  name: "settings-assets",
22
- component: L(() => import("./AssetsSettings-D9nS8RAJ.js"))
22
+ component: L(() => import("./AssetsSettings-CEE324yJ.js"))
23
23
  },
24
24
  {
25
25
  path: "management",
26
26
  name: "settings-management",
27
- component: L(() => import("./ManagementSettings-BOHvx4Ig.js"))
27
+ component: L(() => import("./ManagementSettings-B7bOKxr_.js"))
28
28
  }
29
29
  ]
30
30
  },
@@ -4669,18 +4669,18 @@ const go = (e) => {
4669
4669
  BaStepperField: B(L(() => import("./StepperField-DrHM9EDn.js")), { props: ["suffix", "disabled"] }),
4670
4670
  BaColorPicker: B(L(() => import("./ColorPicker-DAysa9fA.js"))),
4671
4671
  BaSelect: B(L(() => import("./Select-CbQFoAzb.js")), { props: ["selectItems"] }),
4672
- BaListRepeater: B(L(() => import("./ListRepeater-C0xYTgG1.js"))),
4672
+ BaListRepeater: B(L(() => import("./ListRepeater-eX5bRq3G.js"))),
4673
4673
  BaTextStyleList: B(L(() => import("./TextStyleList-CuPE80Py.js"))),
4674
4674
  BaTextAlign: B(L(() => import("./TextAlign-BOC8ekaH.js"))),
4675
4675
  BaTextDecorators: B(L(() => import("./TextDecorators-BJC4umDR.js"))),
4676
- BaImageUpload: B(L(() => import("./ImageUpload-CJh-1ddw.js"))),
4677
- BaLinkButton: B(L(() => import("./LinkButton-CShGBoyz.js"))),
4676
+ BaImageUpload: B(L(() => import("./ImageUpload-DKnCHOIX.js"))),
4677
+ BaLinkButton: B(L(() => import("./LinkButton-DqPM-ILu.js"))),
4678
4678
  BaSwitch: B(L(() => import("./Switch-8mmNQUDo.js"))),
4679
4679
  BaButtonGroup: B(L(() => import("./ButtonGroup-B3ba45VA.js")), { props: ["groupItems"] })
4680
4680
  }
4681
4681
  })
4682
4682
  );
4683
- }, ho = L(() => import("./App-D_ex6hrE.js"));
4683
+ }, ho = L(() => import("./App-HmTl4UNG.js"));
4684
4684
  export {
4685
4685
  dn as F,
4686
4686
  pn as a,
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { b as p, c as s, r as t } from "./app-Bk5PuAgw.js";
2
+ import { b as p, c as s, r as t } from "./app-Dk2q-I0Y.js";
3
3
  export {
4
4
  p as FmApp,
5
5
  s as FormKitPlugin,
@@ -1,4 +1,4 @@
1
- import { H as r } from "./index-DgTWcKAO.js";
1
+ import { H as r } from "./index-4BDCQhnW.js";
2
2
  async function p(e, t, a) {
3
3
  const n = new FormData();
4
4
  return n.append("file", a), (await r.Put(
@@ -4,7 +4,7 @@ function Pe(e, t) {
4
4
  return e.apply(t, arguments);
5
5
  };
6
6
  }
7
- var _e = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a1043347-ce86-4463-8589-98bbc965aa69", npm_package_devDependencies__types_node: "^20.12.5", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_config_user_agent: "pnpm/8.15.9 npm/? node/v20.18.2 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.12", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a1043347-ce86-4463-8589-98bbc965aa69", PIPX_HOME: "/opt/pipx", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_package_devDependencies_tsc_alias: "^1.8.10", npm_package_devDependencies_vite: "^5.2.11", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.2/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:dev", 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", GRADLE_HOME: "/usr/share/gradle-8.12.1", 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_scripts_type_check: "vue-tsc --build --force", npm_package_dependencies__feedmepos_mf_common: "^1.8.33", npm_package_devDependencies_npm_run_all2: "^6.1.2", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "709", npm_package_dependencies__feedmepos_ui_library: "^1.2.39", npm_package_dependencies_dotenv: "^16.4.5", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev && pnpm build:dts && pnpm build-types && cp package.json ./dist", npm_package_devDependencies_tailwindcss: "^3.4.3", npm_package_devDependencies_typescript: "~5.4.0", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_only_prod: "pnpm build:mf:prod && pnpm build:dts && pnpm build-types && cp package.json ./dist", npm_package_devDependencies_vue_tsc: "^2.0.11", 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: "20250209.1.0", npm_package_scripts_dev: "vite --mode dev", npm_package_devDependencies_prettier: "^3.2.5", 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", npm_package_scripts_prod: "vite --mode prod", npm_package_devDependencies__vue_tsconfig: "^0.5.1", npm_package_devDependencies_vite_plugin_vue_devtools: "^7.0.25", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.6/x64", JOURNAL_STREAM: "8:4934", GITHUB_WORKFLOW: "[DEV/BETA] Publish Brand App Builder to NPM", _: "/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_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^9.0.8", npm_config_registry: "https://registry.npmjs.org", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13361415960", STATS_VMFE: "true", npm_package_scripts_deploy_npm_dev: "pnpm run build-only:dev && pnpm publish --tag beta --no-git-checks --access public .", npm_package_dependencies_vue_sonner: "^1.1.4", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "31d6654149ab8cfe009955ac3908f0a902d4fcfe", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_scripts_deploy_npm_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks --access public .", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/brand-app/.github/workflows/brand-app-npm-dev.yml@refs/heads/dev/ba-portal", 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@8.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.2/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_1651ff90-6428-4714-875d-4c7dbef8de05", INVOCATION_ID: "e75d5bfc745049cf8846a3b293d7648e", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.2/x64/bin/node", npm_package_name: "@feedmepos/mf-brand-app-builder", npm_package_dependencies__formkit_vue: "^1.6.7", npm_package_devDependencies__types_qrcode: "^1.5.5", GITHUB_ACTION: "__run_6", GITHUB_RUN_NUMBER: "57", GITHUB_TRIGGERING_ACTOR: "yinhang1107", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^13.0.0", npm_package_devDependencies_eslint: "^8.57.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 255", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev/ba-portal", GITHUB_REPOSITORY: "feedmepos/brand-app", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && pnpm tsc-resolve", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false && pnpm tsc-resolve", npm_lifecycle_script: "vite build --mode fmmf:dev", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_devDependencies__vue_eslint_config_prettier: "^9.0.0", GITHUB_REPOSITORY_ID: "810874788", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules/vite/bin/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules/vite/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.5.10", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_devDependencies__rushstack_eslint_patch: "^1.8.0", npm_lifecycle_event: "build:mf:dev", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^9.0.1", GITHUB_WORKSPACE: "/home/runner/work/brand-app/brand-app", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "31d6654149ab8cfe009955ac3908f0a902d4fcfe", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_scripts_tsc_resolve: "tsc-alias --project tsconfig.app.json --outDir dist", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/dev/ba-portal", GITHUB_ACTOR: "yinhang1107", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_scripts_format: "prettier --write src/", npm_package_dependencies__formkit_core: "^1.6.7", npm_package_dependencies_qrcode: "^1.5.4", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_a1043347-ce86-4463-8589-98bbc965aa69", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/brand-app/brand-app/client/merchant", GITHUB_ACTOR_ID: "75302725", RUNNER_WORKSPACE: "/home/runner/work/brand-app", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_a1043347-ce86-4463-8589-98bbc965aa69", npm_package_exports___types: "./dist/merchant/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/brand-app/brand-app/client/merchant", npm_package_devDependencies_eslint_plugin_vue: "^9.23.0", 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", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_a1043347-ce86-4463-8589-98bbc965aa69", INIT_CWD: "/home/runner/work/brand-app/brand-app/client/merchant", NODE_ENV: "production", VITE_MF_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", VITE_IMAGE_URL: "https://image.feedmedev.cc", VITE_PWA_ICON_SERVICE: "https://pwa-icon-service.feedmeapidev.com", VITE_USER_URL: "https://{slug}.feedmedev.vip", VITE_MEMBER_URL: "https://{slug}.member.feedmedev.cc", VITE_BACKEND_URL: "https://api.feedmedev.vip", LAUNCH_EDITOR: "code" } };
7
+ var _e = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_510a4ffb-e18d-42f1-ae4a-78ef11e5ff99", npm_package_devDependencies__types_node: "^20.12.5", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_config_user_agent: "pnpm/8.15.9 npm/? node/v20.18.3 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.12", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_510a4ffb-e18d-42f1-ae4a-78ef11e5ff99", PIPX_HOME: "/opt/pipx", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_package_devDependencies_tsc_alias: "^1.8.10", npm_package_devDependencies_vite: "^5.2.11", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.3/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", 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", 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_scripts_type_check: "vue-tsc --build --force", npm_package_dependencies__feedmepos_mf_common: "^1.8.33", npm_package_devDependencies_npm_run_all2: "^6.1.2", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "716", npm_package_dependencies__feedmepos_ui_library: "^1.2.39", npm_package_dependencies_dotenv: "^16.4.5", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev && pnpm build:dts && pnpm build-types && cp package.json ./dist", npm_package_devDependencies_tailwindcss: "^3.4.3", npm_package_devDependencies_typescript: "~5.4.0", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_only_prod: "pnpm build:mf:prod && pnpm build:dts && pnpm build-types && cp package.json ./dist", npm_package_devDependencies_vue_tsc: "^2.0.11", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250302.1.0", npm_package_scripts_dev: "vite --mode dev", npm_package_devDependencies_prettier: "^3.2.5", 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", npm_package_scripts_prod: "vite --mode prod", npm_package_devDependencies__vue_tsconfig: "^0.5.1", npm_package_devDependencies_vite_plugin_vue_devtools: "^7.0.25", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.6/x64", JOURNAL_STREAM: "8:6099", GITHUB_WORKFLOW: "[DEV/BETA] Publish Brand App Builder to NPM", _: "/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_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^9.0.8", npm_config_registry: "https://registry.npmjs.org", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13807402902", STATS_VMFE: "true", npm_package_scripts_deploy_npm_dev: "pnpm run build-only:dev && pnpm publish --tag beta --no-git-checks --access public .", npm_package_dependencies_vue_sonner: "^1.1.4", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "04a5fd4eae2882c07761b6ac6df00e0185f5d8b5", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_scripts_deploy_npm_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks --access public .", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", GITHUB_WORKFLOW_REF: "feedmepos/brand-app/.github/workflows/brand-app-npm-dev.yml@refs/heads/dev/ba-portal", 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@8.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_0850e68c-ed55-496e-b5a1-52441251cb9f", INVOCATION_ID: "a566d94f2fdc443581348022d13f9ff6", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.3/x64/bin/node", npm_package_name: "@feedmepos/mf-brand-app-builder", npm_package_dependencies__formkit_vue: "^1.6.7", npm_package_devDependencies__types_qrcode: "^1.5.5", GITHUB_ACTION: "__run_6", GITHUB_RUN_NUMBER: "59", GITHUB_TRIGGERING_ACTOR: "buxkaizhe", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^13.0.0", npm_package_devDependencies_eslint: "^8.57.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 291", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev/ba-portal", GITHUB_REPOSITORY: "feedmepos/brand-app", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && pnpm tsc-resolve", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false && pnpm tsc-resolve", npm_lifecycle_script: "vite build --mode fmmf:dev", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_devDependencies__vue_eslint_config_prettier: "^9.0.0", GITHUB_REPOSITORY_ID: "810874788", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules/vite/bin/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules/vite/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9/node_modules:/home/runner/work/brand-app/brand-app/client/merchant/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.5.11-alpha", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_devDependencies__rushstack_eslint_patch: "^1.8.0", npm_lifecycle_event: "build:mf:dev", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_uuid: "^9.0.1", GITHUB_WORKSPACE: "/home/runner/work/brand-app/brand-app", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "04a5fd4eae2882c07761b6ac6df00e0185f5d8b5", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_scripts_tsc_resolve: "tsc-alias --project tsconfig.app.json --outDir dist", npm_package_dependencies_vue_router: "^4.3.2", GITHUB_REF: "refs/heads/dev/ba-portal", GITHUB_ACTOR: "buxkaizhe", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_scripts_format: "prettier --write src/", npm_package_dependencies__formkit_core: "^1.6.7", npm_package_dependencies_qrcode: "^1.5.4", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_510a4ffb-e18d-42f1-ae4a-78ef11e5ff99", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/brand-app/brand-app/client/merchant", GITHUB_ACTOR_ID: "53389118", RUNNER_WORKSPACE: "/home/runner/work/brand-app", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@8.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_510a4ffb-e18d-42f1-ae4a-78ef11e5ff99", npm_package_exports___types: "./dist/merchant/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/brand-app/brand-app/client/merchant", npm_package_devDependencies_eslint_plugin_vue: "^9.23.0", 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", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_510a4ffb-e18d-42f1-ae4a-78ef11e5ff99", INIT_CWD: "/home/runner/work/brand-app/brand-app/client/merchant", NODE_ENV: "production", VITE_MF_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", VITE_IMAGE_URL: "https://image.feedmedev.cc", VITE_PWA_ICON_SERVICE: "https://pwa-icon-service.feedmeapidev.com", VITE_USER_URL: "https://{slug}.feedmedev.vip", VITE_MEMBER_URL: "https://{slug}.member.feedmedev.cc", VITE_BACKEND_URL: "https://api.feedmedev.vip", LAUNCH_EDITOR: "code" } };
8
8
  const { toString: nt } = Object.prototype, { getPrototypeOf: le } = Object, J = /* @__PURE__ */ ((e) => (t) => {
9
9
  const n = nt.call(t);
10
10
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
@@ -102,7 +102,7 @@ const Rt = (e, t, n, { allOwnKeys: r } = {}) => (M(t, (s, o) => {
102
102
  for (; (n = e.exec(t)) !== null; )
103
103
  r.push(n);
104
104
  return r;
105
- }, Dt = N("HTMLFormElement"), kt = (e) => e.toLowerCase().replace(
105
+ }, kt = N("HTMLFormElement"), Dt = (e) => e.toLowerCase().replace(
106
106
  /[-_\s]([a-z\d])(\w*)/g,
107
107
  function(n, r, s) {
108
108
  return r.toUpperCase() + s;
@@ -212,14 +212,14 @@ const vt = (e) => {
212
212
  toArray: St,
213
213
  forEachEntry: At,
214
214
  matchAll: Nt,
215
- isHTMLForm: Dt,
215
+ isHTMLForm: kt,
216
216
  hasOwnProperty: he,
217
217
  hasOwnProp: he,
218
218
  // an alias to avoid ESLint no-prototype-builtins detection
219
219
  reduceDescriptors: Le,
220
220
  freezeMethods: Pt,
221
221
  toObjectSet: Ut,
222
- toCamelCase: kt,
222
+ toCamelCase: Dt,
223
223
  noop: Ct,
224
224
  toFiniteNumber: Bt,
225
225
  findKey: Be,
@@ -329,10 +329,10 @@ function Y(e, t, n) {
329
329
  if (a.endsWith(h, "{}"))
330
330
  h = r ? h : h.slice(0, -2), f = JSON.stringify(f);
331
331
  else if (a.isArray(f) && Gt(f) || (a.isFileList(f) || a.endsWith(h, "[]")) && (b = a.toArray(f)))
332
- return h = je(h), b.forEach(function(g, k) {
332
+ return h = je(h), b.forEach(function(g, D) {
333
333
  !(a.isUndefined(g) || g === null) && t.append(
334
334
  // eslint-disable-next-line no-nested-ternary
335
- i === !0 ? be([h], k, o) : i === null ? h : h + "[]",
335
+ i === !0 ? be([h], D, o) : i === null ? h : h + "[]",
336
336
  u(g)
337
337
  );
338
338
  }), !1;
@@ -1040,16 +1040,16 @@ const Xe = (e) => {
1040
1040
  }, m.onerror = function() {
1041
1041
  r(new _("Network Error", _.ERR_NETWORK, e, m)), m = null;
1042
1042
  }, m.ontimeout = function() {
1043
- let k = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1043
+ let D = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1044
1044
  const S = s.transitional || Ve;
1045
- s.timeoutErrorMessage && (k = s.timeoutErrorMessage), r(new _(
1046
- k,
1045
+ s.timeoutErrorMessage && (D = s.timeoutErrorMessage), r(new _(
1046
+ D,
1047
1047
  S.clarifyTimeoutError ? _.ETIMEDOUT : _.ECONNABORTED,
1048
1048
  e,
1049
1049
  m
1050
1050
  )), m = null;
1051
- }, o === void 0 && i.setContentType(null), "setRequestHeader" in m && a.forEach(i.toJSON(), function(k, S) {
1052
- m.setRequestHeader(S, k);
1051
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in m && a.forEach(i.toJSON(), function(D, S) {
1052
+ m.setRequestHeader(S, D);
1053
1053
  }), a.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), c && c !== "json" && (m.responseType = s.responseType), u && ([E, f] = z(u, !0), m.addEventListener("progress", E)), p && m.upload && ([d, T] = z(p), m.upload.addEventListener("progress", d), m.upload.addEventListener("loadend", T)), (s.cancelToken || s.signal) && (l = (g) => {
1054
1054
  m && (r(!g || g.type ? new L(null, e, m) : g), m.abort(), m = null);
1055
1055
  }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
@@ -1249,10 +1249,10 @@ const wn = async (e) => {
1249
1249
  );
1250
1250
  }
1251
1251
  u = u || "text";
1252
- let k = await K[a.findKey(K, u) || "text"](y, e);
1252
+ let D = await K[a.findKey(K, u) || "text"](y, e);
1253
1253
  return !g && h && h(), await new Promise((S, I) => {
1254
1254
  Ke(S, I, {
1255
- data: k,
1255
+ data: D,
1256
1256
  headers: w.from(y.headers),
1257
1257
  status: y.status,
1258
1258
  statusText: y.statusText,
@@ -1282,7 +1282,7 @@ a.forEach(ce, (e, t) => {
1282
1282
  Object.defineProperty(e, "adapterName", { value: t });
1283
1283
  }
1284
1284
  });
1285
- const Ne = (e) => `- ${e}`, Dn = (e) => a.isFunction(e) || e === null || e === !1, Ze = {
1285
+ const Ne = (e) => `- ${e}`, kn = (e) => a.isFunction(e) || e === null || e === !1, Ze = {
1286
1286
  getAdapter: (e) => {
1287
1287
  e = a.isArray(e) ? e : [e];
1288
1288
  const { length: t } = e;
@@ -1291,7 +1291,7 @@ const Ne = (e) => `- ${e}`, Dn = (e) => a.isFunction(e) || e === null || e === !
1291
1291
  for (let o = 0; o < t; o++) {
1292
1292
  n = e[o];
1293
1293
  let i;
1294
- if (r = n, !Dn(n) && (r = ce[(i = String(n)).toLowerCase()], r === void 0))
1294
+ if (r = n, !kn(n) && (r = ce[(i = String(n)).toLowerCase()], r === void 0))
1295
1295
  throw new _(`Unknown adapter '${i}'`);
1296
1296
  if (r)
1297
1297
  break;
@@ -1317,7 +1317,7 @@ function re(e) {
1317
1317
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1318
1318
  throw new L(null, e);
1319
1319
  }
1320
- function De(e) {
1320
+ function ke(e) {
1321
1321
  return re(e), e.headers = w.from(e.headers), e.data = ne.call(
1322
1322
  e,
1323
1323
  e.transformRequest
@@ -1341,7 +1341,7 @@ const Qe = "1.7.8", Q = {};
1341
1341
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1342
1342
  };
1343
1343
  });
1344
- const ke = {};
1344
+ const De = {};
1345
1345
  Q.transitional = function(t, n, r) {
1346
1346
  function s(o, i) {
1347
1347
  return "[Axios v" + Qe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
@@ -1352,7 +1352,7 @@ Q.transitional = function(t, n, r) {
1352
1352
  s(i, " has been removed" + (n ? " in " + n : "")),
1353
1353
  _.ERR_DEPRECATED
1354
1354
  );
1355
- return n && !ke[i] && (ke[i] = !0, console.warn(
1355
+ return n && !De[i] && (De[i] = !0, console.warn(
1356
1356
  s(
1357
1357
  i,
1358
1358
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -1363,7 +1363,7 @@ Q.transitional = function(t, n, r) {
1363
1363
  Q.spelling = function(t) {
1364
1364
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1365
1365
  };
1366
- function kn(e, t, n) {
1366
+ function Dn(e, t, n) {
1367
1367
  if (typeof e != "object")
1368
1368
  throw new _("options must be an object", _.ERR_BAD_OPTION_VALUE);
1369
1369
  const r = Object.keys(e);
@@ -1381,9 +1381,9 @@ function kn(e, t, n) {
1381
1381
  }
1382
1382
  }
1383
1383
  const W = {
1384
- assertOptions: kn,
1384
+ assertOptions: Dn,
1385
1385
  validators: Q
1386
- }, D = W.validators;
1386
+ }, k = W.validators;
1387
1387
  class C {
1388
1388
  constructor(t) {
1389
1389
  this.defaults = t, this.interceptors = {
@@ -1420,17 +1420,17 @@ class C {
1420
1420
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = B(this.defaults, n);
1421
1421
  const { transitional: r, paramsSerializer: s, headers: o } = n;
1422
1422
  r !== void 0 && W.assertOptions(r, {
1423
- silentJSONParsing: D.transitional(D.boolean),
1424
- forcedJSONParsing: D.transitional(D.boolean),
1425
- clarifyTimeoutError: D.transitional(D.boolean)
1423
+ silentJSONParsing: k.transitional(k.boolean),
1424
+ forcedJSONParsing: k.transitional(k.boolean),
1425
+ clarifyTimeoutError: k.transitional(k.boolean)
1426
1426
  }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1427
1427
  serialize: s
1428
1428
  } : W.assertOptions(s, {
1429
- encode: D.function,
1430
- serialize: D.function
1429
+ encode: k.function,
1430
+ serialize: k.function
1431
1431
  }, !0)), W.assertOptions(n, {
1432
- baseUrl: D.spelling("baseURL"),
1433
- withXsrfToken: D.spelling("withXSRFToken")
1432
+ baseUrl: k.spelling("baseURL"),
1433
+ withXsrfToken: k.spelling("withXSRFToken")
1434
1434
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1435
1435
  let i = o && a.merge(
1436
1436
  o.common,
@@ -1453,7 +1453,7 @@ class C {
1453
1453
  });
1454
1454
  let l, d = 0, E;
1455
1455
  if (!p) {
1456
- const f = [De.bind(this), void 0];
1456
+ const f = [ke.bind(this), void 0];
1457
1457
  for (f.unshift.apply(f, c), f.push.apply(f, u), E = f.length, l = Promise.resolve(n); d < E; )
1458
1458
  l = l.then(f[d++], f[d++]);
1459
1459
  return l;
@@ -1470,7 +1470,7 @@ class C {
1470
1470
  }
1471
1471
  }
1472
1472
  try {
1473
- l = De.call(this, T);
1473
+ l = ke.call(this, T);
1474
1474
  } catch (f) {
1475
1475
  return Promise.reject(f);
1476
1476
  }
@@ -1,6 +1,6 @@
1
1
  import { openBlock as y, createElementBlock as w, ref as $ } from "vue";
2
2
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { H as m } from "./index-DgTWcKAO.js";
3
+ import { H as m } from "./index-4BDCQhnW.js";
4
4
  import { defineStore as g } from "pinia";
5
5
  import { v as A } from "./v4-ANoOI1Qw.js";
6
6
  async function _(e) {
@@ -1,4 +1,4 @@
1
- import { H as n, a as o } from "./index-DgTWcKAO.js";
1
+ import { H as n, a as o } from "./index-4BDCQhnW.js";
2
2
  const i = () => o().PORTAL_V2_BACKEND;
3
3
  async function c(t) {
4
4
  return (await n.Get(
@@ -5640,7 +5640,7 @@ const Ks = ["src"], Qs = {
5640
5640
  n.imageUrl ? (F(), Y("img", {
5641
5641
  key: 0,
5642
5642
  src: Te(Xe)(n.imageUrl),
5643
- class: "w-24 h-24 object-contain"
5643
+ class: "w-32 h-32 object-contain"
5644
5644
  }, null, 8, Ks)) : (F(), Y("div", Qs, [
5645
5645
  W(U, {
5646
5646
  name: "add_photo_alternate",
@@ -5671,7 +5671,7 @@ const Ks = ["src"], Qs = {
5671
5671
  n.imageUrl ? (F(), Y("img", {
5672
5672
  key: 0,
5673
5673
  src: Te(Xe)(n.imageUrl),
5674
- class: "w-24 h-24 object-contain"
5674
+ class: "w-32 h-32 object-contain"
5675
5675
  }, null, 8, Js)) : (F(), Y("div", er, [
5676
5676
  W(U, {
5677
5677
  name: "add_photo_alternate",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-brand-app-builder",
3
- "version": "0.5.10",
3
+ "version": "0.5.11-alpha",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -69,4 +69,4 @@
69
69
  "vite-plugin-vue-devtools": "^7.0.25",
70
70
  "vue-tsc": "^2.0.11"
71
71
  }
72
- }
72
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-brand-app-builder",
3
- "version": "0.5.10",
3
+ "version": "0.5.11-alpha",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,72 +0,0 @@
1
- import { defineComponent as x, ref as y, resolveComponent as b, openBlock as r, createElementBlock as s, createVNode as c, Fragment as w, createElementVNode as i, unref as u, createCommentVNode as d } from "vue";
2
- import { r as f, I as h } from "./image-DIIj-z1G.js";
3
- import { useCoreStore as C } from "@feedmepos/mf-common";
4
- import "./main-BUI2Mmvv.js";
5
- import { _ as I } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
6
- import { C as $ } from "./CircularProgress-h90pbjU3.js";
7
- import { v as k } from "./v4-ANoOI1Qw.js";
8
- const F = { class: "w-full h-[210px] relative" }, B = { class: "absolute z-[1] top-0 left-0 h-full w-full bg-fm-color-neutral-white border border-dashed border-fm-color-neutral-gray-200" }, P = ["src"], j = {
9
- key: 1,
10
- class: "absolute z-[3] top-0 left-0 rounded-md bg-fm-color-neutral-gray-100 bg-opacity-80 w-full h-full flex justify-center items-center"
11
- }, A = /* @__PURE__ */ x({
12
- __name: "ImageUpload",
13
- props: {
14
- context: {}
15
- },
16
- setup(_) {
17
- const e = _, a = C(), t = y(!1);
18
- async function g(o) {
19
- t.value = !0, await h.uploadImage(
20
- a.currentBusiness.value._id,
21
- `${k()}.${o.name.split(".").pop()}`,
22
- o
23
- ).then((m) => {
24
- const l = `https://image.feedmedev.cc/business/${a.currentBusiness.value._id}/${m.imagePath}`;
25
- e.context.node.input(l);
26
- const n = new Image();
27
- n.onload = () => {
28
- var p;
29
- ((p = e.context.node.at("$root")) == null ? void 0 : p._value).containerStyles.height = `${Math.min(n.height, 400)}px`;
30
- }, n.src = f(l);
31
- }).finally(() => t.value = !1);
32
- }
33
- async function v() {
34
- t.value = !0;
35
- const o = e.context._value.split("/").pop();
36
- await h.deleteImage(a.currentBusiness.value._id, o).then(() => e.context.node.input("")).finally(() => t.value = !1);
37
- }
38
- return (o, m) => {
39
- const l = b("FmDropField");
40
- return r(), s("div", F, [
41
- c(l, {
42
- class: "w-full h-full",
43
- onFileUpload: g
44
- }),
45
- e.context._value && !t.value ? (r(), s(w, { key: 0 }, [
46
- i("div", B, [
47
- i("img", {
48
- class: "w-full h-full object-contain",
49
- src: u(f)(e.context._value)
50
- }, null, 8, P)
51
- ]),
52
- i("button", {
53
- type: "button",
54
- class: "absolute z-[2] -right-8 -top-8 w-24 h-24 bg-fm-color-system-error-300 rounded-full flex items-center justify-center",
55
- onClick: v
56
- }, [
57
- c(u(I), {
58
- name: "close",
59
- class: "!text-[16px] text-fm-color-typo-white"
60
- })
61
- ])
62
- ], 64)) : d("", !0),
63
- t.value ? (r(), s("div", j, [
64
- c(u($))
65
- ])) : d("", !0)
66
- ]);
67
- };
68
- }
69
- });
70
- export {
71
- A as default
72
- };