@feedmepos/mf-brand-app-builder 0.5.22-dev.0 → 0.5.22-dev.1
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/{App-DSjCJtmn.js → App-D5eO5srB.js} +3 -3
- package/dist/{AssetsSettings-e8FjbJ_2.js → AssetsSettings-D_E8q7eK.js} +3 -3
- package/dist/{BrandkitView-YRlmRZnS.js → BrandkitView-BlJhBYi6.js} +2599 -1984
- package/dist/{BuilderView-BLM7vEZA.js → BuilderView-Dfl1VhES.js} +182 -179
- package/dist/{ImageUpload-CDR7v2YB.js → ImageUpload-FyvXrDKK.js} +2 -2
- package/dist/{LinkButton-DvF93Arq.js → LinkButton-C9OU3Rcs.js} +1 -1
- package/dist/{ListRepeater-Dri1M_Xh.js → ListRepeater-BnVoFhhm.js} +1 -1
- package/dist/{ManagementSettings-CROYjeuM.js → ManagementSettings-CtvF5d9C.js} +2 -2
- package/dist/{ProjectView-Tb44Sm_z.js → ProjectView-Bq0vBJ3V.js} +1 -1
- package/dist/{app-OPl2Khtq.js → app-CJ2VgCHp.js} +9 -9
- package/dist/app.js +1 -1
- package/dist/brand-core/src/entity.d.ts +81 -0
- package/dist/client/merchant/src/components/order-template/LayoutTemplateSection.vue.d.ts +14 -0
- package/dist/client/merchant/src/components/order-template/OrderTemplateEditorButton.vue.d.ts +10 -0
- package/dist/client/merchant/src/components/order-template/OrderTemplateEditorForm.vue.d.ts +14 -0
- package/dist/{merchant → client/merchant}/src/stores/business/index.d.ts +96 -12
- package/dist/{image-HDqbMgOR.js → image-BtHlnsmY.js} +1 -1
- package/dist/{index-BodukiEf.js → index-5BRydZO9.js} +1 -1
- package/dist/{index-DbvZZQr6.js → index-BEAkOquM.js} +1 -1
- package/dist/{index-CvbnxMT4.js → index-BXwbQwb-.js} +109 -109
- package/dist/{index-V999lx_3.js → index-ChMgx2Hq.js} +1 -1
- package/dist/{main--RZvbXYz.js → main-8cObQmGm.js} +354 -354
- package/dist/package.json +4 -2
- package/dist/style.css +1 -1
- package/package.json +4 -2
- /package/dist/{components → client/components}/src/components/BranchList.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/ButtonList.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/CountrySwitcher.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/Homepage.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/ImageCarousel.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/ImageDisplay.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/Member/MemberAchievements.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/Member/MemberCards.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/Member/MemberSummary.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/Member/TransactionList.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/MemberCard.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/NavigationBar.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/OrderHistoryCard.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/OrderMethod.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/TextDisplay.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/Button.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/CircularProgress.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/Container.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/Divider.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/Icon.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/LinkSlot.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/OrderTypeChip.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/i18n.d.ts +0 -0
- /package/dist/{components → client/components}/src/main.d.ts +0 -0
- /package/dist/{components → client/components}/src/utils/date.d.ts +0 -0
- /package/dist/{components → client/components}/src/utils/image.d.ts +0 -0
- /package/dist/{components → client/components}/src/views/OrderDetails.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/views/_Credit.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/views/_MemberProfile.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/views/_Point.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/views/_Referral.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/views/_ReferralTutorial.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/App.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/Entry.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/api/business/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/api/image/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/api/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/api/template/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/app.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/atoms/BaButtonGroup.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/atoms/BaDivider.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/atoms/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/brandkit/ColorSelection.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/Editor.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/EditorFloatingToobar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/EditorToolbar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/PreviewQrCode.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/TemplatePicker.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/TemplateShareMenu.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/element-sidebar/ElementSidebar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/element-sidebar/all-elements.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ButtonGroup.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ColorPicker.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ImageUpload.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/LinkBrandkitColor.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/LinkButton.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ListRepeater.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/Select.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/StepperField.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/Switch.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextAlign.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextDecorators.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextField.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextStyleList.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/Inspector.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigSection.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigTab.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/modals/TemplateSelectionModal.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/navigation-sidebar/NavigationSidebar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/settings/AssetsSettings.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/settings/ManagementSettings.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/template/TemplatePreview.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/composables/useNode/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/composables/useToast/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/config/defaultTemplateConfig.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/helpers/businessUrl.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/main.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/branch-list/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/branch-list/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/button-list/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/button-list/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/carousel/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/carousel/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/container/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/container/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-image/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-image/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-text/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-text/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/homepage/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/homepage/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-achievements/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-achievements/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-achievements/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-card/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-card/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-card/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-cards/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-cards/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-cards/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-history/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-history/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-history/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-profile/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-profile/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-referral/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-referral/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-referral-tutorial/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-referral-tutorial/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-summary/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-summary/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-summary/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-method/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-method/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/plugin/formkit-i18n.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/plugin/formkit.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/plugin/i18n.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/router/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/router/shared.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/stores/editor/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/stores/template/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/deep-to-raw.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/image.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/provider-keys.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/views/BrandkitView.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/views/BuilderView.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/views/ProjectView.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/views/SettingsView.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/views/views.d.ts +0 -0
|
@@ -1,81 +1,37 @@
|
|
|
1
|
-
import { resolveComponent as V, TransitionGroup as
|
|
2
|
-
import { T as
|
|
3
|
-
import { defineStore as
|
|
4
|
-
import { p as
|
|
5
|
-
import { a as
|
|
1
|
+
import { resolveComponent as V, TransitionGroup as eo, defineComponent as se, h as ma, nextTick as ln, isRef as to, isReactive as ao, isProxy as no, toRaw as oo, ref as q, computed as ie, openBlock as F, createElementBlock as Z, Fragment as Le, renderList as vt, createElementVNode as I, toDisplayString as j, unref as v, createVNode as w, withCtx as M, createBlock as ae, createCommentVNode as Q, normalizeClass as ye, watch as tt, withDirectives as Gt, withModifiers as ba, vShow as Jt, createTextVNode as ro, onMounted as sn, resolveDynamicComponent as Ma, mergeProps as io, normalizeProps as lo, guardReactiveProps as so, normalizeStyle as co, renderSlot as wa, provide as uo, inject as po, markRaw as mo } from "vue";
|
|
2
|
+
import { T as bo, u as Ge } from "./index-ChMgx2Hq.js";
|
|
3
|
+
import { defineStore as fo, storeToRefs as go } from "pinia";
|
|
4
|
+
import { p as ho } from "./views-BDWw3w14.js";
|
|
5
|
+
import { a as yo } from "./index-BXwbQwb-.js";
|
|
6
6
|
import { v as Ra } from "./v4-ANoOI1Qw.js";
|
|
7
|
-
import { _ as
|
|
8
|
-
import { B as
|
|
7
|
+
import { _ as vo } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
|
|
8
|
+
import { B as dn } from "./BaDivider-DWZv3fqi.js";
|
|
9
9
|
import { useI18n as Ze, useCoreStore as We } from "@feedmepos/mf-common";
|
|
10
|
-
import { C as $a, _ as
|
|
11
|
-
import { useDialog as
|
|
12
|
-
import { useRouter as
|
|
10
|
+
import { C as $a, _ as To, a as xo } from "./main-8cObQmGm.js";
|
|
11
|
+
import { useDialog as Co, components as _o, useSnackbar as wo } from "@feedmepos/ui-library";
|
|
12
|
+
import { useRouter as cn } from "vue-router";
|
|
13
13
|
import { u as Ia } from "./index-DzaJbB6y.js";
|
|
14
|
-
import { u as Ea } from "./index-
|
|
15
|
-
import { K as
|
|
16
|
-
import { F as
|
|
14
|
+
import { u as Ea } from "./index-5BRydZO9.js";
|
|
15
|
+
import { K as Io, V as Eo } from "./vue-sonner-PX6Req0V.js";
|
|
16
|
+
import { F as So, a as Ao } from "./app-CJ2VgCHp.js";
|
|
17
17
|
const {
|
|
18
|
-
Axios:
|
|
19
|
-
AxiosError:
|
|
20
|
-
CanceledError:
|
|
21
|
-
isCancel:
|
|
22
|
-
CancelToken:
|
|
23
|
-
VERSION:
|
|
24
|
-
all:
|
|
25
|
-
Cancel:
|
|
26
|
-
isAxiosError:
|
|
27
|
-
spread:
|
|
28
|
-
toFormData:
|
|
29
|
-
AxiosHeaders:
|
|
30
|
-
HttpStatusCode:
|
|
31
|
-
formToJSON:
|
|
32
|
-
getAdapter:
|
|
33
|
-
mergeConfig:
|
|
34
|
-
} =
|
|
35
|
-
colors: {
|
|
36
|
-
primary: "#ff7823",
|
|
37
|
-
secondary: "#fff3e6",
|
|
38
|
-
accent: "#fff3e6",
|
|
39
|
-
background: {
|
|
40
|
-
base: "#F8F8F8",
|
|
41
|
-
elevated: "#FFFFFF"
|
|
42
|
-
},
|
|
43
|
-
neutral: {
|
|
44
|
-
light: "#ECF0F0",
|
|
45
|
-
mid: "#555555",
|
|
46
|
-
dark: "#1C1C1E"
|
|
47
|
-
},
|
|
48
|
-
text: {
|
|
49
|
-
onPrimary: "#FFFFFF",
|
|
50
|
-
primary: "#1C1C1E",
|
|
51
|
-
secondary: "#555555",
|
|
52
|
-
tertiary: "#A2A09E"
|
|
53
|
-
},
|
|
54
|
-
status: {
|
|
55
|
-
success: "#10B981",
|
|
56
|
-
warning: "#F59E0B",
|
|
57
|
-
error: "#EF4444",
|
|
58
|
-
info: "#3B82F6"
|
|
59
|
-
// Add info if missing previously
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
fonts: {
|
|
63
|
-
brand: "'Inter', sans-serif",
|
|
64
|
-
heading: "'Inter', sans-serif",
|
|
65
|
-
body: "'Roboto', sans-serif"
|
|
66
|
-
},
|
|
67
|
-
fontFamilies: []
|
|
68
|
-
};
|
|
69
|
-
function Bo(t = cn, e) {
|
|
70
|
-
const a = document.documentElement, n = (l, i) => {
|
|
71
|
-
i && a.style.setProperty(`--brand-${l}`, i);
|
|
72
|
-
}, { colors: o, fonts: r } = t;
|
|
73
|
-
n("color-primary", o.primary), n("color-secondary", o.secondary), n("color-accent", o.accent), n("color-background-base", o.background.base), n("color-background-elevated", o.background.elevated), n("color-neutral-light", o.neutral.light), n("color-neutral-mid", o.neutral.mid), n("color-neutral-dark", o.neutral.dark), n("color-typo-on-primary", o.text.onPrimary), n("color-typo-primary", o.text.primary), n("color-typo-secondary", o.text.secondary), n("color-typo-tertiary", o.text.tertiary), n("color-status-success", o.status.success), n("color-status-warning", o.status.warning), n("color-status-error", o.status.error), n("color-status-info", o.status.info), n("font-family-brand", r.brand), n("font-family-heading", r.heading ?? r.brand), n("font-family-body", r.body ?? r.brand);
|
|
74
|
-
for (const l of t.fontFamilies ?? []) {
|
|
75
|
-
const i = document.createElement("link");
|
|
76
|
-
i.rel = "stylesheet", i.href = l.stylesheet, document.head.appendChild(i);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
18
|
+
Axios: ks,
|
|
19
|
+
AxiosError: Bo,
|
|
20
|
+
CanceledError: Ds,
|
|
21
|
+
isCancel: Fs,
|
|
22
|
+
CancelToken: Ns,
|
|
23
|
+
VERSION: Os,
|
|
24
|
+
all: Ps,
|
|
25
|
+
Cancel: Ms,
|
|
26
|
+
isAxiosError: Rs,
|
|
27
|
+
spread: $s,
|
|
28
|
+
toFormData: Zs,
|
|
29
|
+
AxiosHeaders: Us,
|
|
30
|
+
HttpStatusCode: Vs,
|
|
31
|
+
formToJSON: Hs,
|
|
32
|
+
getAdapter: Ys,
|
|
33
|
+
mergeConfig: zs
|
|
34
|
+
} = yo;
|
|
79
35
|
/**!
|
|
80
36
|
* Sortable 1.14.0
|
|
81
37
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -867,8 +823,8 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
867
823
|
fromSortable: m,
|
|
868
824
|
target: n,
|
|
869
825
|
completed: y,
|
|
870
|
-
onMove: function(Pa,
|
|
871
|
-
return At($, a, h, o, Pa, X(Pa), e,
|
|
826
|
+
onMove: function(Pa, Qn) {
|
|
827
|
+
return At($, a, h, o, Pa, X(Pa), e, Qn);
|
|
872
828
|
},
|
|
873
829
|
changed: T
|
|
874
830
|
}, lt));
|
|
@@ -1570,7 +1526,7 @@ function vr(t) {
|
|
|
1570
1526
|
return {
|
|
1571
1527
|
transition: e,
|
|
1572
1528
|
externalComponent: a,
|
|
1573
|
-
tag: a ? V(t) : e ?
|
|
1529
|
+
tag: a ? V(t) : e ? eo : t
|
|
1574
1530
|
};
|
|
1575
1531
|
}
|
|
1576
1532
|
function Tr({ $slots: t, tag: e, realList: a, getKey: n }) {
|
|
@@ -1578,7 +1534,7 @@ function Tr({ $slots: t, tag: e, realList: a, getKey: n }) {
|
|
|
1578
1534
|
return new gr({ nodes: o, root: r, realList: a });
|
|
1579
1535
|
}
|
|
1580
1536
|
function Bn(t, e) {
|
|
1581
|
-
|
|
1537
|
+
ln(() => this.$emit(t.toLowerCase(), e));
|
|
1582
1538
|
}
|
|
1583
1539
|
function Ln(t) {
|
|
1584
1540
|
return (e, a) => {
|
|
@@ -1710,7 +1666,7 @@ const Cr = {
|
|
|
1710
1666
|
return t.__draggable_component__;
|
|
1711
1667
|
},
|
|
1712
1668
|
emitChanges(t) {
|
|
1713
|
-
|
|
1669
|
+
ln(() => this.$emit("change", t));
|
|
1714
1670
|
},
|
|
1715
1671
|
alterList(t) {
|
|
1716
1672
|
if (this.list) {
|
|
@@ -5344,10 +5300,10 @@ const Cr = {
|
|
|
5344
5300
|
_ReferralTutorial: Hr
|
|
5345
5301
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5346
5302
|
function zr(t) {
|
|
5347
|
-
const e = (a) => Array.isArray(a) ? a.map((n) => e(n)) :
|
|
5303
|
+
const e = (a) => Array.isArray(a) ? a.map((n) => e(n)) : to(a) || ao(a) || no(a) ? e(oo(a)) : a && typeof a == "object" ? Object.keys(a).reduce((n, o) => (n[o] = e(a[o]), n), {}) : a;
|
|
5348
5304
|
return e(t);
|
|
5349
5305
|
}
|
|
5350
|
-
const Ue =
|
|
5306
|
+
const Ue = fo("editor", () => {
|
|
5351
5307
|
const t = q({
|
|
5352
5308
|
node: [],
|
|
5353
5309
|
selectedNode: null,
|
|
@@ -5361,13 +5317,13 @@ const Ue = bo("editor", () => {
|
|
|
5361
5317
|
t.value.firstFetchedData = JSON.stringify(d), t.value.node = [d];
|
|
5362
5318
|
}
|
|
5363
5319
|
async function n(d, c) {
|
|
5364
|
-
await
|
|
5320
|
+
await bo.getTemplateById(d, "drafts", c).then((p) => {
|
|
5365
5321
|
p && (a(p[0]), o(p[0]));
|
|
5366
5322
|
}).catch(async (p) => {
|
|
5367
5323
|
var b;
|
|
5368
5324
|
const m = Ct(), u = Ge();
|
|
5369
|
-
if (p instanceof
|
|
5370
|
-
const g =
|
|
5325
|
+
if (p instanceof Bo && ((b = p.response) == null ? void 0 : b.data) == "Template not found") {
|
|
5326
|
+
const g = ho.find(
|
|
5371
5327
|
(B) => B.templateId == c
|
|
5372
5328
|
);
|
|
5373
5329
|
if (g) {
|
|
@@ -5491,7 +5447,7 @@ const jr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5491
5447
|
}, {
|
|
5492
5448
|
item: M(({ element: p }) => [
|
|
5493
5449
|
I("div", Jr, [
|
|
5494
|
-
w(
|
|
5450
|
+
w(vo, {
|
|
5495
5451
|
class: "text-[24px] text-fm-color-typo-secondary",
|
|
5496
5452
|
name: p.icon
|
|
5497
5453
|
}, null, 8, ["name"]),
|
|
@@ -5500,7 +5456,7 @@ const jr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5500
5456
|
]),
|
|
5501
5457
|
_: 2
|
|
5502
5458
|
}, 1032, ["list"]),
|
|
5503
|
-
c !== v(qa).length - 1 ? (F(), ae(
|
|
5459
|
+
c !== v(qa).length - 1 ? (F(), ae(dn, {
|
|
5504
5460
|
key: 0,
|
|
5505
5461
|
class: "mt-12"
|
|
5506
5462
|
})) : Q("", !0)
|
|
@@ -5510,7 +5466,7 @@ const jr = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5510
5466
|
}), qr = { class: "absolute z-10 flex items-center gap-8 bottom-24 left-1/2 transform -translate-x-1/2 bg-fm-color-neutral-white border border-fm-color-neutral-gray-100 rounded-lg p-8 shadow-light-600" }, Qr = /* @__PURE__ */ se({
|
|
5511
5467
|
__name: "EditorFloatingToobar",
|
|
5512
5468
|
setup(t) {
|
|
5513
|
-
const e = Ue(), { state: a } =
|
|
5469
|
+
const e = Ue(), { state: a } = go(e), n = Ct(), o = ie(
|
|
5514
5470
|
() => a.value.selectedNode && a.value.node.length > 0
|
|
5515
5471
|
), r = [
|
|
5516
5472
|
// {
|
|
@@ -6098,7 +6054,7 @@ const ni = { class: "mb-24" }, oi = { class: "fm-typo-en-title-lg-700 text-fm-co
|
|
|
6098
6054
|
}), xi = { class: "flex items-center gap-8 select-none px-8 py-8 rounded-md active:bg-fm-color-opacity-md transition-all duration-500 cursor-pointer" }, Ci = { class: "bg-fm-color-neutral-white px-8 py-8 border border-fm-color-opacity-sm rounded-sm" }, _i = { class: "py-8 px-12 w-full flex items-center justify-between gap-8 transition-all duration-500" }, wi = { class: "flex items-center gap-8" }, Ii = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Ei = { class: "flex items-center gap-8" }, Si = { class: "overflow-y-auto" }, Ai = { class: "flex items-center gap-8" }, Bi = { class: "fm-typo-en-body-md-400 text-fm-color-primary" }, Li = { class: "fm-typo-en-body-md-400 text-fm-color-primary" }, ki = /* @__PURE__ */ se({
|
|
6099
6055
|
__name: "TemplatePicker",
|
|
6100
6056
|
setup(t) {
|
|
6101
|
-
const e = q(!1), a = q(""), n = q(""), o = q(!1), r = q("default"), l = We(), i = Ge(), s = Ue(), d = Ct(), c =
|
|
6057
|
+
const e = q(!1), a = q(""), n = q(""), o = q(!1), r = q("default"), l = We(), i = Ge(), s = Ue(), d = Ct(), c = cn(), p = Co(), m = Ia(), { t: u } = Ze(), b = ie(
|
|
6102
6058
|
() => i.state.allTemplates.filter(
|
|
6103
6059
|
(C) => {
|
|
6104
6060
|
var _;
|
|
@@ -6224,7 +6180,7 @@ const ni = { class: "mb-24" }, oi = { class: "fm-typo-en-title-lg-700 text-fm-co
|
|
|
6224
6180
|
isLoading: A
|
|
6225
6181
|
},
|
|
6226
6182
|
secondaryActions: { text: u("brand.template.picker.cancel"), close: !0 },
|
|
6227
|
-
contentComponent: ma(
|
|
6183
|
+
contentComponent: ma(_o.FmTextField, {
|
|
6228
6184
|
modelValue: _,
|
|
6229
6185
|
"onUpdate:modelValue": (ne) => _.value = ne
|
|
6230
6186
|
})
|
|
@@ -8235,7 +8191,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
8235
8191
|
setup(t) {
|
|
8236
8192
|
const e = q(), a = We(), n = Ge(), { t: o } = Ze(), r = q(!1), l = ie(() => `${`${"https://{slug}.feedmedev.vip".replace("{slug}", `${a.currentBusiness.value.url ?? a.currentBusiness.value._id}`)}`}/preview/${n.state.selectedTemplate.templateId}`);
|
|
8237
8193
|
function i() {
|
|
8238
|
-
|
|
8194
|
+
Io.promise(navigator.clipboard.writeText(l.value), {
|
|
8239
8195
|
loading: o("brand.template.shareMenu.copying"),
|
|
8240
8196
|
success: () => o("brand.template.shareMenu.linkCopied"),
|
|
8241
8197
|
error: () => o("brand.template.shareMenu.errorCopyingLink")
|
|
@@ -8279,7 +8235,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
8279
8235
|
}, 8, ["content"])
|
|
8280
8236
|
]),
|
|
8281
8237
|
"dialog-header": M(() => [
|
|
8282
|
-
|
|
8238
|
+
ro(j(v(o)("brand.template.shareMenu.share")), 1)
|
|
8283
8239
|
]),
|
|
8284
8240
|
default: M(() => [
|
|
8285
8241
|
I("div", Cl, [
|
|
@@ -8309,7 +8265,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
8309
8265
|
}), Il = { class: "p-8 flex gap-8 items-center justify-between border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-white" }, El = { class: "flex gap-8 items-center" }, Sl = /* @__PURE__ */ se({
|
|
8310
8266
|
__name: "EditorToolbar",
|
|
8311
8267
|
setup(t) {
|
|
8312
|
-
const e = Ue(), a = Ge(), n = We(), o =
|
|
8268
|
+
const e = Ue(), a = Ge(), n = We(), o = wo(), r = Ia(), { t: l } = Ze();
|
|
8313
8269
|
function i() {
|
|
8314
8270
|
if (!e.state.node) {
|
|
8315
8271
|
o.open(
|
|
@@ -8353,13 +8309,60 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
8353
8309
|
]);
|
|
8354
8310
|
};
|
|
8355
8311
|
}
|
|
8356
|
-
}),
|
|
8312
|
+
}), nn = /* @__PURE__ */ new Set(), Kn = {
|
|
8313
|
+
colors: {
|
|
8314
|
+
primary: "#ff7823",
|
|
8315
|
+
secondary: "#fff3e6",
|
|
8316
|
+
accent: "#fff3e6",
|
|
8317
|
+
background: {
|
|
8318
|
+
base: "#F8F8F8",
|
|
8319
|
+
elevated: "#FFFFFF"
|
|
8320
|
+
},
|
|
8321
|
+
neutral: {
|
|
8322
|
+
light: "#ECF0F0",
|
|
8323
|
+
mid: "#555555",
|
|
8324
|
+
dark: "#1C1C1E"
|
|
8325
|
+
},
|
|
8326
|
+
text: {
|
|
8327
|
+
onPrimary: "#FFFFFF",
|
|
8328
|
+
primary: "#1C1C1E",
|
|
8329
|
+
secondary: "#555555",
|
|
8330
|
+
tertiary: "#A2A09E"
|
|
8331
|
+
},
|
|
8332
|
+
status: {
|
|
8333
|
+
success: "#10B981",
|
|
8334
|
+
warning: "#F59E0B",
|
|
8335
|
+
error: "#EF4444",
|
|
8336
|
+
info: "#3B82F6"
|
|
8337
|
+
// Add info if missing previously
|
|
8338
|
+
}
|
|
8339
|
+
},
|
|
8340
|
+
fonts: {
|
|
8341
|
+
brand: "'Inter', sans-serif",
|
|
8342
|
+
heading: "'Inter', sans-serif",
|
|
8343
|
+
body: "'Roboto', sans-serif"
|
|
8344
|
+
}
|
|
8345
|
+
};
|
|
8346
|
+
function Al(t = Kn, e) {
|
|
8347
|
+
const a = document.documentElement, n = (l, i) => {
|
|
8348
|
+
i && a.style.setProperty(`--brand-${l}`, i);
|
|
8349
|
+
}, { colors: o, fonts: r } = t;
|
|
8350
|
+
n("color-primary", o.primary), n("color-secondary", o.secondary), n("color-accent", o.accent), n("color-background-base", o.background.base), n("color-background-elevated", o.background.elevated), n("color-neutral-light", o.neutral.light), n("color-neutral-mid", o.neutral.mid), n("color-neutral-dark", o.neutral.dark), n("color-typo-on-primary", o.text.onPrimary), n("color-typo-primary", o.text.primary), n("color-typo-secondary", o.text.secondary), n("color-typo-tertiary", o.text.tertiary), n("color-status-success", o.status.success), n("color-status-warning", o.status.warning), n("color-status-error", o.status.error), n("color-status-info", o.status.info), n("font-family-brand", r.brand), n("font-family-heading", r.heading ?? r.brand), n("font-family-body", r.body ?? r.brand);
|
|
8351
|
+
for (const l of t.fontFamilies ?? []) {
|
|
8352
|
+
const i = l.stylesheet;
|
|
8353
|
+
if (!i || nn.has(i) || document.querySelector(`link[href="${i}"]`))
|
|
8354
|
+
continue;
|
|
8355
|
+
const s = document.createElement("link");
|
|
8356
|
+
s.rel = "stylesheet", s.href = i, s.setAttribute("data-brand-font", i), document.head.appendChild(s), nn.add(i);
|
|
8357
|
+
}
|
|
8358
|
+
}
|
|
8359
|
+
const Bl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gray-100 flex flex-col" }, Ll = { class: "w-[375px] border border-fm-color-neutral-gray-200 m-auto pb-24 bg-brand-background-base" }, kl = {
|
|
8357
8360
|
key: 0,
|
|
8358
8361
|
class: "flex items-center justify-between pt-8 px-12"
|
|
8359
|
-
},
|
|
8362
|
+
}, Dl = { class: "flex items-center justify-center cursor-pointer rounded-full text-fm-color-typo-secondary !h-32 !w-32 border-1 border-fm-color-neutral-gray-200" }, Fl = ["onClickCapture"], Nl = {
|
|
8360
8363
|
key: 0,
|
|
8361
8364
|
class: "w-full h-[100px] flex items-center justify-center text-fm-color-typo-secondary mt-24"
|
|
8362
|
-
},
|
|
8365
|
+
}, Ol = /* @__PURE__ */ se({
|
|
8363
8366
|
__name: "Editor",
|
|
8364
8367
|
setup(t) {
|
|
8365
8368
|
const e = Ue(), a = We(), n = Ea(), o = ie({
|
|
@@ -8377,26 +8380,26 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
8377
8380
|
return tt(
|
|
8378
8381
|
() => a.currentBusiness.value,
|
|
8379
8382
|
async (s, d) => {
|
|
8380
|
-
s && s.id != (d == null ? void 0 : d.id) && (await n.getBusinessBrandkit(s.id),
|
|
8383
|
+
s && s.id != (d == null ? void 0 : d.id) && (await n.getBusinessBrandkit(s.id), Al(n.state.brandkit ?? Kn));
|
|
8381
8384
|
},
|
|
8382
8385
|
{
|
|
8383
8386
|
immediate: !0
|
|
8384
8387
|
}
|
|
8385
|
-
),
|
|
8388
|
+
), sn(() => {
|
|
8386
8389
|
window.addEventListener("beforeunload", function(s) {
|
|
8387
8390
|
if (!e.isSaved())
|
|
8388
8391
|
return s.preventDefault(), "Changes you made may not be saved.";
|
|
8389
8392
|
});
|
|
8390
8393
|
}), (s, d) => {
|
|
8391
8394
|
const c = V("FmIcon");
|
|
8392
|
-
return F(), Z("div",
|
|
8395
|
+
return F(), Z("div", Bl, [
|
|
8393
8396
|
w(Sl),
|
|
8394
8397
|
I("div", {
|
|
8395
8398
|
class: "h-full w-full px-24 py-48 flex overflow-y-auto",
|
|
8396
8399
|
onClick: d[2] || (d[2] = (p) => i(r.value))
|
|
8397
8400
|
}, [
|
|
8398
|
-
I("div",
|
|
8399
|
-
r.value ? (F(), ae(Ma($a[r.value.type]),
|
|
8401
|
+
I("div", Ll, [
|
|
8402
|
+
r.value ? (F(), ae(Ma($a[r.value.type]), io({ key: 0 }, {
|
|
8400
8403
|
data: r.value.data,
|
|
8401
8404
|
...La[r.value.type],
|
|
8402
8405
|
...r.value.props
|
|
@@ -8406,9 +8409,9 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
8406
8409
|
default: M(() => {
|
|
8407
8410
|
var p, m;
|
|
8408
8411
|
return [
|
|
8409
|
-
r.value.type == "Homepage" && ((p = r.value.props) == null ? void 0 : p.hideCountrySwitcher) !== !0 ? (F(), Z("div",
|
|
8410
|
-
w(
|
|
8411
|
-
I("div",
|
|
8412
|
+
r.value.type == "Homepage" && ((p = r.value.props) == null ? void 0 : p.hideCountrySwitcher) !== !0 ? (F(), Z("div", kl, [
|
|
8413
|
+
w(To, { data: { selectedCountry: "MY" } }),
|
|
8414
|
+
I("div", Dl, [
|
|
8412
8415
|
w(c, {
|
|
8413
8416
|
class: "rounded-full",
|
|
8414
8417
|
name: "account_circle",
|
|
@@ -8416,7 +8419,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
8416
8419
|
})
|
|
8417
8420
|
])
|
|
8418
8421
|
])) : Q("", !0),
|
|
8419
|
-
r.value.type == "Homepage" && ((m = r.value.props) == null ? void 0 : m.showNavigationBar) == !0 ? (F(), ae(
|
|
8422
|
+
r.value.type == "Homepage" && ((m = r.value.props) == null ? void 0 : m.showNavigationBar) == !0 ? (F(), ae(xo, {
|
|
8420
8423
|
key: 1,
|
|
8421
8424
|
title: "Member",
|
|
8422
8425
|
className: "block"
|
|
@@ -8436,24 +8439,24 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
8436
8439
|
class: "relative cursor-grab",
|
|
8437
8440
|
onClickCapture: ba((B) => i(u), ["prevent", "stop"])
|
|
8438
8441
|
}, [
|
|
8439
|
-
(F(), ae(Ma($a[u.type]),
|
|
8442
|
+
(F(), ae(Ma($a[u.type]), lo(so({ data: u.data, ...u.props })), null, 16)),
|
|
8440
8443
|
u._id === ((b = l.value) == null ? void 0 : b._id) ? (F(), Z("div", {
|
|
8441
8444
|
key: 0,
|
|
8442
8445
|
class: ye({
|
|
8443
8446
|
"w-full h-full absolute top-0 left-0 z-10": u._id === ((g = l.value) == null ? void 0 : g._id)
|
|
8444
8447
|
}),
|
|
8445
|
-
style:
|
|
8448
|
+
style: co({
|
|
8446
8449
|
paddingLeft: u.props.marginLeft,
|
|
8447
8450
|
paddingRight: u.props.marginRight
|
|
8448
8451
|
})
|
|
8449
8452
|
}, d[3] || (d[3] = [
|
|
8450
8453
|
I("div", { class: "w-full h-full border-2 border-fm-color-system-info-200" }, null, -1)
|
|
8451
8454
|
]), 6)) : Q("", !0)
|
|
8452
|
-
], 40,
|
|
8455
|
+
], 40, Fl)
|
|
8453
8456
|
];
|
|
8454
8457
|
}),
|
|
8455
8458
|
footer: M(() => [
|
|
8456
|
-
o.value.length ? Q("", !0) : (F(), Z("div",
|
|
8459
|
+
o.value.length ? Q("", !0) : (F(), Z("div", Nl, [
|
|
8457
8460
|
w(c, { name: "drag_indicator" }),
|
|
8458
8461
|
d[4] || (d[4] = I("div", { class: "fm-typo-en-body-sm-400" }, " Drag and drop components here ", -1))
|
|
8459
8462
|
]))
|
|
@@ -8470,7 +8473,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
8470
8473
|
]);
|
|
8471
8474
|
};
|
|
8472
8475
|
}
|
|
8473
|
-
}), pa = (t) => t,
|
|
8476
|
+
}), pa = (t) => t, Pl = [
|
|
8474
8477
|
{
|
|
8475
8478
|
$cmp: "ConfigTab",
|
|
8476
8479
|
props: { title: pa("brand.template.nodeConfig.pageSetting") },
|
|
@@ -8686,7 +8689,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
8686
8689
|
}
|
|
8687
8690
|
]
|
|
8688
8691
|
}
|
|
8689
|
-
], W = (t) => t,
|
|
8692
|
+
], W = (t) => t, Ml = [
|
|
8690
8693
|
{
|
|
8691
8694
|
$cmp: "ConfigTab",
|
|
8692
8695
|
props: { title: W("brand.template.nodeConfig.displayText.title") },
|
|
@@ -8849,7 +8852,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
8849
8852
|
}
|
|
8850
8853
|
]
|
|
8851
8854
|
}
|
|
8852
|
-
], G = (t) => t,
|
|
8855
|
+
], G = (t) => t, Rl = [
|
|
8853
8856
|
{
|
|
8854
8857
|
$cmp: "ConfigTab",
|
|
8855
8858
|
props: { title: G("brand.template.nodeConfig.buttonList.title") },
|
|
@@ -8996,7 +8999,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
8996
8999
|
}
|
|
8997
9000
|
]
|
|
8998
9001
|
}
|
|
8999
|
-
], Te = (t) => t,
|
|
9002
|
+
], Te = (t) => t, $l = [
|
|
9000
9003
|
{
|
|
9001
9004
|
$cmp: "ConfigTab",
|
|
9002
9005
|
props: { title: Te("brand.template.nodeConfig.displayImage.title") },
|
|
@@ -9094,7 +9097,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
9094
9097
|
}
|
|
9095
9098
|
]
|
|
9096
9099
|
}
|
|
9097
|
-
], de = (t) => t,
|
|
9100
|
+
], de = (t) => t, Zl = [
|
|
9098
9101
|
{
|
|
9099
9102
|
$cmp: "ConfigTab",
|
|
9100
9103
|
props: { title: de("brand.template.nodeConfig.carousel.title") },
|
|
@@ -9214,7 +9217,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
9214
9217
|
}
|
|
9215
9218
|
]
|
|
9216
9219
|
}
|
|
9217
|
-
], K = (t) => t,
|
|
9220
|
+
], K = (t) => t, Ul = [
|
|
9218
9221
|
{
|
|
9219
9222
|
$cmp: "ConfigTab",
|
|
9220
9223
|
props: { title: K("brand.template.nodeConfig.memberCard.title") },
|
|
@@ -9350,7 +9353,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
9350
9353
|
}
|
|
9351
9354
|
]
|
|
9352
9355
|
}
|
|
9353
|
-
], oe = (t) => t,
|
|
9356
|
+
], oe = (t) => t, Vl = [
|
|
9354
9357
|
{
|
|
9355
9358
|
$cmp: "ConfigTab",
|
|
9356
9359
|
props: { title: oe("brand.template.nodeConfig.orderMethod.title") },
|
|
@@ -9471,7 +9474,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
9471
9474
|
}
|
|
9472
9475
|
]
|
|
9473
9476
|
}
|
|
9474
|
-
], Oe = (t) => t,
|
|
9477
|
+
], Oe = (t) => t, Hl = [
|
|
9475
9478
|
{
|
|
9476
9479
|
$cmp: "ConfigTab",
|
|
9477
9480
|
props: { title: Oe("brand.template.nodeConfig.branchList.title") },
|
|
@@ -9531,7 +9534,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
9531
9534
|
}
|
|
9532
9535
|
]
|
|
9533
9536
|
}
|
|
9534
|
-
], Be = (t) => t,
|
|
9537
|
+
], Be = (t) => t, Yl = [
|
|
9535
9538
|
{
|
|
9536
9539
|
$cmp: "ConfigTab",
|
|
9537
9540
|
props: {
|
|
@@ -9606,22 +9609,22 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
9606
9609
|
}
|
|
9607
9610
|
]
|
|
9608
9611
|
}
|
|
9609
|
-
],
|
|
9612
|
+
], on = (t) => t, zl = [
|
|
9610
9613
|
{
|
|
9611
9614
|
$cmp: "ConfigTab",
|
|
9612
|
-
props: { title:
|
|
9615
|
+
props: { title: on("brand.template.nodeConfig.memberSummary.title") },
|
|
9613
9616
|
children: [
|
|
9614
9617
|
{
|
|
9615
9618
|
$cmp: "ConfigTabItem",
|
|
9616
9619
|
props: {
|
|
9617
|
-
title:
|
|
9620
|
+
title: on("brand.template.nodeConfig.memberSummary.frameTitle"),
|
|
9618
9621
|
value: "frame"
|
|
9619
9622
|
},
|
|
9620
9623
|
children: [...be]
|
|
9621
9624
|
}
|
|
9622
9625
|
]
|
|
9623
9626
|
}
|
|
9624
|
-
], st = (t) => t,
|
|
9627
|
+
], st = (t) => t, jl = [
|
|
9625
9628
|
{
|
|
9626
9629
|
$cmp: "ConfigTab",
|
|
9627
9630
|
props: { title: st("brand.template.nodeConfig.memberCards.title") },
|
|
@@ -9664,7 +9667,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
9664
9667
|
}
|
|
9665
9668
|
]
|
|
9666
9669
|
}
|
|
9667
|
-
], ge = (t) => t,
|
|
9670
|
+
], ge = (t) => t, Wl = [
|
|
9668
9671
|
{
|
|
9669
9672
|
$cmp: "ConfigTab",
|
|
9670
9673
|
props: { title: ge("brand.template.nodeConfig.memberAchievements.title") },
|
|
@@ -9765,7 +9768,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
9765
9768
|
}
|
|
9766
9769
|
]
|
|
9767
9770
|
}
|
|
9768
|
-
], _e = (t) => t,
|
|
9771
|
+
], _e = (t) => t, Gl = [
|
|
9769
9772
|
{
|
|
9770
9773
|
$cmp: "ConfigTab",
|
|
9771
9774
|
props: { title: _e("brand.template.nodeConfig.creditHistory.title") },
|
|
@@ -9809,7 +9812,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
9809
9812
|
}
|
|
9810
9813
|
]
|
|
9811
9814
|
}
|
|
9812
|
-
],
|
|
9815
|
+
], Jl = [
|
|
9813
9816
|
{
|
|
9814
9817
|
$cmp: "ConfigTab",
|
|
9815
9818
|
props: { title: _e("brand.template.nodeConfig.pointHistory.title") },
|
|
@@ -9851,10 +9854,10 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
9851
9854
|
}
|
|
9852
9855
|
]
|
|
9853
9856
|
}
|
|
9854
|
-
],
|
|
9857
|
+
], Xl = (t) => t, Kl = [
|
|
9855
9858
|
{
|
|
9856
9859
|
$cmp: "ConfigTab",
|
|
9857
|
-
props: { title:
|
|
9860
|
+
props: { title: Xl("brand.template.nodeConfig.memberProfile.title") },
|
|
9858
9861
|
children: [
|
|
9859
9862
|
// {
|
|
9860
9863
|
// $cmp: 'ConfigTabItem',
|
|
@@ -9892,7 +9895,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
9892
9895
|
// },
|
|
9893
9896
|
]
|
|
9894
9897
|
}
|
|
9895
|
-
], Ke = (t) => t,
|
|
9898
|
+
], Ke = (t) => t, ql = [
|
|
9896
9899
|
{
|
|
9897
9900
|
$cmp: "ConfigTab",
|
|
9898
9901
|
props: {
|
|
@@ -9964,15 +9967,15 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
9964
9967
|
}
|
|
9965
9968
|
]
|
|
9966
9969
|
}
|
|
9967
|
-
],
|
|
9970
|
+
], rn = (t) => t, Ql = [
|
|
9968
9971
|
{
|
|
9969
9972
|
$cmp: "ConfigTab",
|
|
9970
|
-
props: { title:
|
|
9973
|
+
props: { title: rn("brand.template.nodeConfig.referral.imageTitle") },
|
|
9971
9974
|
children: [
|
|
9972
9975
|
{
|
|
9973
9976
|
$cmp: "ConfigTabItem",
|
|
9974
9977
|
props: {
|
|
9975
|
-
title:
|
|
9978
|
+
title: rn("brand.template.nodeConfig.referral.contentTitle"),
|
|
9976
9979
|
value: "design"
|
|
9977
9980
|
},
|
|
9978
9981
|
children: [
|
|
@@ -9981,30 +9984,30 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
9981
9984
|
}
|
|
9982
9985
|
]
|
|
9983
9986
|
}
|
|
9984
|
-
],
|
|
9987
|
+
], es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9985
9988
|
__proto__: null,
|
|
9986
|
-
BranchList:
|
|
9987
|
-
ButtonList:
|
|
9989
|
+
BranchList: Hl,
|
|
9990
|
+
ButtonList: Rl,
|
|
9988
9991
|
Container: be,
|
|
9989
|
-
Homepage:
|
|
9990
|
-
ImageCarousel:
|
|
9991
|
-
ImageDisplay:
|
|
9992
|
-
MemberAchievements:
|
|
9993
|
-
MemberCard:
|
|
9994
|
-
MemberCards:
|
|
9995
|
-
MemberSummary:
|
|
9996
|
-
OrderHistoryCard:
|
|
9997
|
-
OrderMethod:
|
|
9998
|
-
TextDisplay:
|
|
9999
|
-
_Credit:
|
|
10000
|
-
_MemberProfile:
|
|
10001
|
-
_Point:
|
|
10002
|
-
_Referral:
|
|
10003
|
-
_ReferralTutorial:
|
|
10004
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9992
|
+
Homepage: Pl,
|
|
9993
|
+
ImageCarousel: Zl,
|
|
9994
|
+
ImageDisplay: $l,
|
|
9995
|
+
MemberAchievements: Wl,
|
|
9996
|
+
MemberCard: Ul,
|
|
9997
|
+
MemberCards: jl,
|
|
9998
|
+
MemberSummary: zl,
|
|
9999
|
+
OrderHistoryCard: Yl,
|
|
10000
|
+
OrderMethod: Vl,
|
|
10001
|
+
TextDisplay: Ml,
|
|
10002
|
+
_Credit: Gl,
|
|
10003
|
+
_MemberProfile: Kl,
|
|
10004
|
+
_Point: Jl,
|
|
10005
|
+
_Referral: Ql,
|
|
10006
|
+
_ReferralTutorial: ql
|
|
10007
|
+
}, Symbol.toStringTag, { value: "Module" })), ts = {
|
|
10005
10008
|
key: 0,
|
|
10006
10009
|
class: "bg-fm-color-system-info-100 border-l-4 border-fm-color-system-info-300 mb-16 pl-8 pr-12 py-8 fm-typo-en-body-md-400 text-fm-color-typo-primary"
|
|
10007
|
-
},
|
|
10010
|
+
}, as = { class: "flex flex-col gap-16 px-12" }, ns = /* @__PURE__ */ se({
|
|
10008
10011
|
__name: "ConfigSection",
|
|
10009
10012
|
props: {
|
|
10010
10013
|
label: {}
|
|
@@ -10012,20 +10015,20 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
10012
10015
|
setup(t) {
|
|
10013
10016
|
const { t: e } = Ze();
|
|
10014
10017
|
return (a, n) => (F(), Z("div", null, [
|
|
10015
|
-
a.label ? (F(), Z("div",
|
|
10016
|
-
I("div",
|
|
10018
|
+
a.label ? (F(), Z("div", ts, j(v(e)(a.label)), 1)) : Q("", !0),
|
|
10019
|
+
I("div", as, [
|
|
10017
10020
|
wa(a.$slots, "default")
|
|
10018
10021
|
])
|
|
10019
10022
|
]));
|
|
10020
10023
|
}
|
|
10021
|
-
}),
|
|
10024
|
+
}), qn = Symbol.for("ba:config-tab"), os = { class: "p-16 w-full fm-typo-en-body-md-600 text-fm-color-typo-primary" }, rs = { class: "flex items-center w-full border-b border-fm-color-neutral-gray-100" }, is = /* @__PURE__ */ se({
|
|
10022
10025
|
__name: "ConfigTab",
|
|
10023
10026
|
props: {
|
|
10024
10027
|
title: {}
|
|
10025
10028
|
},
|
|
10026
10029
|
setup(t) {
|
|
10027
10030
|
const { t: e } = Ze(), a = q([]), n = q("");
|
|
10028
|
-
|
|
10031
|
+
uo(qn, {
|
|
10029
10032
|
register(r) {
|
|
10030
10033
|
a.value = [...a.value, r].map(
|
|
10031
10034
|
(l) => ({
|
|
@@ -10042,9 +10045,9 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
10042
10045
|
return (r, l) => {
|
|
10043
10046
|
const i = V("FmTab");
|
|
10044
10047
|
return F(), Z("div", null, [
|
|
10045
|
-
I("div",
|
|
10046
|
-
w(
|
|
10047
|
-
I("div",
|
|
10048
|
+
I("div", os, j(v(e)(r.title)), 1),
|
|
10049
|
+
w(dn),
|
|
10050
|
+
I("div", rs, [
|
|
10048
10051
|
(F(!0), Z(Le, null, vt(a.value, (s) => (F(), ae(i, {
|
|
10049
10052
|
"model-value": n.value,
|
|
10050
10053
|
"onUpdate:modelValue": l[0] || (l[0] = (d) => o(d)),
|
|
@@ -10056,39 +10059,39 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
10056
10059
|
]);
|
|
10057
10060
|
};
|
|
10058
10061
|
}
|
|
10059
|
-
}),
|
|
10062
|
+
}), ls = { key: 0 }, ss = { class: "flex flex-col gap-24 py-24" }, ds = /* @__PURE__ */ se({
|
|
10060
10063
|
__name: "ConfigTabItem",
|
|
10061
10064
|
props: {
|
|
10062
10065
|
title: {},
|
|
10063
10066
|
value: {}
|
|
10064
10067
|
},
|
|
10065
10068
|
setup(t) {
|
|
10066
|
-
const e = t, a =
|
|
10067
|
-
return
|
|
10069
|
+
const e = t, a = po(qn, null);
|
|
10070
|
+
return sn(() => {
|
|
10068
10071
|
a ? a.register(e) : console.warn("ConfigTabItem is to be used with ConfigTab as parent");
|
|
10069
10072
|
}), (n, o) => {
|
|
10070
10073
|
var r;
|
|
10071
|
-
return ((r = v(a)) == null ? void 0 : r.currentTab.value) === n.value ? (F(), Z("div",
|
|
10072
|
-
I("div",
|
|
10074
|
+
return ((r = v(a)) == null ? void 0 : r.currentTab.value) === n.value ? (F(), Z("div", ls, [
|
|
10075
|
+
I("div", ss, [
|
|
10073
10076
|
wa(n.$slots, "default")
|
|
10074
10077
|
])
|
|
10075
10078
|
])) : Q("", !0);
|
|
10076
10079
|
};
|
|
10077
10080
|
}
|
|
10078
|
-
}),
|
|
10081
|
+
}), cs = { class: "h-full flex-shrink-0 w-[308px] bg-fm-color-neutral-white border-l border-fm-color-neutral-gray-200 overflow-y-auto" }, us = /* @__PURE__ */ se({
|
|
10079
10082
|
__name: "Inspector",
|
|
10080
10083
|
setup(t) {
|
|
10081
10084
|
const e = Ue(), a = ie(() => e.state.selectedNode), n = ie(() => {
|
|
10082
10085
|
var d;
|
|
10083
10086
|
const s = ((d = a.value) == null ? void 0 : d.type) ?? null;
|
|
10084
|
-
return s !== null ?
|
|
10087
|
+
return s !== null ? es[s] : [];
|
|
10085
10088
|
}), o = ie(() => {
|
|
10086
10089
|
var s;
|
|
10087
10090
|
return (s = a.value) == null ? void 0 : s.props;
|
|
10088
|
-
}), r =
|
|
10089
|
-
ConfigTab:
|
|
10090
|
-
ConfigTabItem:
|
|
10091
|
-
ConfigSection:
|
|
10091
|
+
}), r = mo({
|
|
10092
|
+
ConfigTab: is,
|
|
10093
|
+
ConfigTabItem: ds,
|
|
10094
|
+
ConfigSection: ns
|
|
10092
10095
|
});
|
|
10093
10096
|
function l(s) {
|
|
10094
10097
|
const d = a.value;
|
|
@@ -10119,8 +10122,8 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
10119
10122
|
};
|
|
10120
10123
|
}
|
|
10121
10124
|
}
|
|
10122
|
-
return (s, d) => (F(), Z("div",
|
|
10123
|
-
a.value ? (F(), ae(v(
|
|
10125
|
+
return (s, d) => (F(), Z("div", cs, [
|
|
10126
|
+
a.value ? (F(), ae(v(So), {
|
|
10124
10127
|
config: { rootClasses: i },
|
|
10125
10128
|
type: "form",
|
|
10126
10129
|
actions: !1,
|
|
@@ -10130,7 +10133,7 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
10130
10133
|
preserve: ""
|
|
10131
10134
|
}, {
|
|
10132
10135
|
default: M(() => [
|
|
10133
|
-
w(v(
|
|
10136
|
+
w(v(Ao), {
|
|
10134
10137
|
schema: n.value,
|
|
10135
10138
|
library: v(r)
|
|
10136
10139
|
}, null, 8, ["schema", "library"])
|
|
@@ -10139,13 +10142,13 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
10139
10142
|
}, 8, ["config", "model-value"])) : Q("", !0)
|
|
10140
10143
|
]));
|
|
10141
10144
|
}
|
|
10142
|
-
}),
|
|
10145
|
+
}), ps = { class: "relative h-full w-screen flex flex-col overflow-y-hidden" }, ms = { class: "flex h-full" }, js = /* @__PURE__ */ se({
|
|
10143
10146
|
__name: "BuilderView",
|
|
10144
10147
|
props: {
|
|
10145
10148
|
templateId: {}
|
|
10146
10149
|
},
|
|
10147
10150
|
setup(t) {
|
|
10148
|
-
const e = We(), a = Ue(), n = Ge(), o = Ea(), r =
|
|
10151
|
+
const e = We(), a = Ue(), n = Ge(), o = Ea(), r = cn(), l = Ct(), i = q(!0);
|
|
10149
10152
|
async function s() {
|
|
10150
10153
|
var c, p;
|
|
10151
10154
|
i.value = !0, e.currentBusiness.value && ((c = e.currentBusiness.value) != null && c._id && await n.getAllTemplates(e.currentBusiness.value._id), (p = e.currentBusiness.value) != null && p.url && await o.getGlobalSlug(e.currentBusiness.value.url), d());
|
|
@@ -10184,8 +10187,8 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
10184
10187
|
}
|
|
10185
10188
|
), (c, p) => {
|
|
10186
10189
|
const m = V("FmCircularProgress"), u = V("FmOverlay");
|
|
10187
|
-
return F(), Z("div",
|
|
10188
|
-
w(v(
|
|
10190
|
+
return F(), Z("div", ps, [
|
|
10191
|
+
w(v(Eo), {
|
|
10189
10192
|
position: "top-right",
|
|
10190
10193
|
"rich-colors": "",
|
|
10191
10194
|
"close-button": "",
|
|
@@ -10203,15 +10206,15 @@ const Cl = { class: "flex items-center justify-center" }, _l = { class: "w-full
|
|
|
10203
10206
|
]),
|
|
10204
10207
|
_: 1
|
|
10205
10208
|
})) : Q("", !0),
|
|
10206
|
-
I("div",
|
|
10209
|
+
I("div", ms, [
|
|
10207
10210
|
w(Kr),
|
|
10208
|
-
w(
|
|
10209
|
-
w(
|
|
10211
|
+
w(Ol),
|
|
10212
|
+
w(us)
|
|
10210
10213
|
])
|
|
10211
10214
|
]);
|
|
10212
10215
|
};
|
|
10213
10216
|
}
|
|
10214
10217
|
});
|
|
10215
10218
|
export {
|
|
10216
|
-
|
|
10219
|
+
js as default
|
|
10217
10220
|
};
|