@feedmepos/mf-connect 0.1.85-prod → 0.1.86-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Analytic-BjCcva28.js → Analytic-NBYws-xJ.js} +11 -11
- package/dist/{App-CJl6tMfn.js → App-B9uc4uAB.js} +7 -7
- package/dist/{Bin-e4Vwyfbp.js → Bin-Dd-7uENK.js} +8 -8
- package/dist/{Broadcast-WWNRyELz.js → Broadcast-C57geedD.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-J3EHIto7.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-kp9alY2C.js} +7 -6
- package/dist/{Card-Doc6LOzs.js → Card-0JNty6vz.js} +19 -19
- package/dist/{Collections-DfrqlwGy.js → Collections-DEWu2bk5.js} +8 -8
- package/dist/{Credit-DfA3WdZT.js → Credit-B1HqzpDi.js} +8 -8
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Cic4vFbP.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-mmkn3juE.js} +33 -33
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-COqzGZHo.js → EffectSheet.vue_vue_type_style_index_0_lang-DFbCf9em.js} +6 -6
- package/dist/{Experience-ByuixxAy.js → Experience-BeXr3SDh.js} +8 -8
- package/dist/{FileSaver.min-Cb2PeLDd.js → FileSaver.min-Dd3kdScu.js} +1 -1
- package/dist/{Game-Co_u5JSG.js → Game-HM2JItCg.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-Ciq01AFd.js → ImageInput.vue_vue_type_script_setup_true_lang-Dd1o2By9.js} +1 -1
- package/dist/{Index-BHT-38Ch.js → Index-CvArBvmi.js} +10 -10
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-boR37brc.js → LottieAnimation.vue_vue_type_script_setup_true_lang-bmE6aMf9.js} +1 -1
- package/dist/{MainLayout-ONCk7MJK.js → MainLayout-BlcAKDUD.js} +1 -1
- package/dist/{Marketing-BYfDY-zv.js → Marketing-CdKTCEpI.js} +6 -6
- package/dist/{Member-DPA-A6u2.js → Member-9amfN0s7.js} +14 -13
- package/dist/{MemberList-CcXEA6on.js → MemberList-5V8Xdu9g.js} +27 -27
- package/dist/{MemberTransactions-CyTNBdt3.js → MemberTransactions-Ch3eSP7_.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CiFkbATJ.js → MessageInput.vue_vue_type_script_setup_true_lang-D2M6xz4y.js} +4860 -4833
- package/dist/{Mission-BZz-SC9d.js → Mission-lmqffCWr.js} +9 -9
- package/dist/{Overview-DnfKpA-t.js → Overview-CJRz8io0.js} +19 -19
- package/dist/{Point-BeElhOr-.js → Point-CnJ69ymH.js} +8 -8
- package/dist/{Promotion-Da8BxPFh.js → Promotion-FLyLR9hV.js} +9 -9
- package/dist/{Queue-BfwE5cgy.js → Queue-nZRf2HuR.js} +11 -11
- package/dist/{Record-DhkDlZ2f.js → Record-Cj-ppR2D.js} +9 -9
- package/dist/{Reward-Czkm7_oG.js → Reward-EOCgH_D6.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CsM3epgn.js → RewardGroup.vue_vue_type_script_setup_true_lang-Bmm4Q5iv.js} +12 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-3vLz2oFZ.js → RuleGroup.vue_vue_type_script_setup_true_lang-Dh6mmPWI.js} +15 -15
- package/dist/{Segment-D0YHmgsJ.js → Segment-Bit8pzO7.js} +31 -31
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DpM5Mglj.js → SelectItems.vue_vue_type_script_setup_true_lang-BrPoO5ew.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-2pBfVd1s.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BoYZSL1N.js} +31 -30
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CrVxIYv3.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-AcbNYbsb.js} +4 -4
- package/dist/Setting-CWWXCdg7.js +1982 -0
- package/dist/{SettingAdvertisements-DD7-Yg_m.js → SettingAdvertisements-OyBbygXk.js} +12 -12
- package/dist/{Store-r6_TrozR.js → Store-C3u_SOcu.js} +706 -679
- package/dist/{StoreRewards-DT4doSpz.js → StoreRewards-BMVKJb6e.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-C_cTJbEf.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Bzs1JqM4.js} +20 -20
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C5jRK0dU.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BF75L_C-.js} +1 -1
- package/dist/{Tier-BmoObMNK.js → Tier-DI25GNig.js} +22 -22
- package/dist/{Title-BL1aP1Pz.js → Title-DJS3Lro_.js} +23 -22
- package/dist/{Transaction-BoIkA8Ow.js → Transaction-C8BbInlR.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-WtyCkEnC.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-i0Rmd6-t.js} +6 -6
- package/dist/{Voucher-B_y8WCNE.js → Voucher-CuNm_1Ys.js} +12 -12
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DsEUCfQ0.js → VoucherEditor.vue_vue_type_script_setup_true_lang-B1Xv8osE.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DEco-KD8.js → ZodTextField.vue_vue_type_script_setup_true_lang-2lAQ7itS.js} +2 -2
- package/dist/{app-97PQLirJ.js → app-CrlU8BQt.js} +64 -49
- package/dist/app.js +1 -1
- package/dist/{business-DM8Ddouf.js → business-DSJ3vlHq.js} +1 -1
- package/dist/{campaign-CT932f3F.js → campaign-BkGl-Azc.js} +1 -1
- package/dist/{campaign-Btb4iifz.js → campaign-CD5LYcGE.js} +8 -8
- package/dist/{campaign.enum-CsDJx7Gs.js → campaign.enum-VymUXOzy.js} +1 -1
- package/dist/{campaign.fn-BQMZndjC.js → campaign.fn-BySZ29iI.js} +163 -163
- package/dist/{collectible.enum-DF7kK9FH.js → collectible.enum-CaoiTdBM.js} +1 -1
- package/dist/{collection.fn-BhN-PqZL.js → collection.fn-CdOHMaS5.js} +2 -2
- package/dist/{dto-h7iFVkWq.js → dto-DXSxijtu.js} +4 -4
- package/dist/{effect-uP1iMZtY.js → effect-CQg8wIhY.js} +1 -1
- package/dist/{email-addresses-Dqg2mLXX.js → email-addresses-D1vS-M__.js} +2 -2
- package/dist/{export-B-3Bdt9C.js → export-CPwQDq5v.js} +3 -3
- package/dist/{helper-BoId9qqd.js → helper-Ddi9Ypo8.js} +1 -1
- package/dist/{index-DIkzKoq5.js → index-BCtUj5K0.js} +1 -1
- package/dist/{index-Bq2t_zdK.js → index-C74X6b5n.js} +1 -1
- package/dist/{index-Ba9cuHtD.js → index-CBNZMw5T.js} +1 -1
- package/dist/{index-BrxGi33h.js → index-CIG3I6UQ.js} +3 -3
- package/dist/{index-D8MQmF1t.js → index-Cssv_Y-f.js} +376 -369
- package/dist/{index-Bg4zAuYE.js → index-CvQcsgQS.js} +3 -3
- package/dist/{index-DRuE_qHT.js → index-DoE5X--7.js} +2 -2
- package/dist/{index-Bvbp3blc.js → index-DuufBhXS.js} +1 -1
- package/dist/{index-BumlxSfY.js → index-Dw_aPOsa.js} +6 -6
- package/dist/{index-CMpR1HzN.js → index-EvaDAbW_.js} +1 -1
- package/dist/{index-CuK11tsI.js → index-LtGRDAPs.js} +1 -1
- package/dist/{index-MnludiWX.js → index-NlM6a88a.js} +1 -1
- package/dist/{index-DkPJyXs4.js → index-e2Rb4HHN.js} +1182 -989
- package/dist/{index.esm2017-RL-h3I1f.js → index.esm2017-qspgWl2R.js} +1 -1
- package/dist/{loading-BeeF8Jj7.js → loading-BiX4mF7V.js} +1 -1
- package/dist/{lodash-DmWp55y7.js → lodash-BiybCWQB.js} +1 -1
- package/dist/{membership-BUq0y6RI.js → membership-Dnkc7J8U.js} +3 -3
- package/dist/{money-C4X1MSTz.js → money-BKxUbqL2.js} +1 -1
- package/dist/{number-DKpaYsjH.js → number-s7gy0q08.js} +1 -1
- package/dist/{objectid-DFEazwI8.js → objectid-B7dlIhZI.js} +4 -4
- package/dist/{plugins-Bke3udWH.js → plugins-_4R196pf.js} +3 -3
- package/dist/{reward-DffpddMv.js → reward-D624Kic_.js} +1 -1
- package/dist/{rule-builder-nJ3DJ_PE.js → rule-builder-BC_A9GsJ.js} +1 -1
- package/dist/{rule-DnqP9S9V.js → rule-u0unBmVJ.js} +3 -3
- package/dist/{template-CGZdUvtU.js → template-B-WEfANP.js} +7 -7
- package/dist/{timezone-CEmNm2CH.js → timezone-DWWhMtv-.js} +2 -2
- package/dist/{trigger-BvNAwfbO.js → trigger-VG08oklM.js} +5 -5
- package/dist/{usePagination-YjYwRlFU.js → usePagination-U8tHccOt.js} +1 -1
- package/dist/{user-BQyBzZqG.js → user-B5TU4FOd.js} +1 -1
- package/dist/{vue-i18n-BM_oLuoV.js → vue-i18n-CfjKmwVs.js} +387 -387
- package/dist/{xlsx-CZljAb-V.js → xlsx-Cxfclh15.js} +1 -1
- package/dist/{zod-D502pprc.js → zod-D4HcRDps.js} +1 -1
- package/package.json +1 -1
- package/dist/Setting-CTh46A28.js +0 -1928
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { defineComponent as te, computed as L, resolveComponent as _, openBlock as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { c as A, e as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as Te, C as
|
|
7
|
-
import { m as
|
|
8
|
-
import { a as
|
|
9
|
-
import { _ as ae } from "./lodash-
|
|
10
|
-
import { c as ue } from "./index-
|
|
11
|
-
import { u as xe } from "./vue-i18n-
|
|
12
|
-
import { Z as Q, g as G, a as X } from "./zod-
|
|
13
|
-
import { z as ee, R as
|
|
14
|
-
import { u as
|
|
15
|
-
import { _ as le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { a as
|
|
1
|
+
import { defineComponent as te, computed as L, resolveComponent as _, openBlock as x, createBlock as O, withCtx as B, createElementVNode as V, createElementBlock as D, createVNode as r, createCommentVNode as E, toDisplayString as K, unref as e, Fragment as Y, renderList as ce, ref as N, isRef as re, reactive as ze, onMounted as he, watch as Pe, toRaw as Je, createTextVNode as me, h as Ge } from "vue";
|
|
2
|
+
import { _ as Xe } from "./tier-BJDhpH6X.js";
|
|
3
|
+
import { useDialog as je, useDialogChild as Le, components as Ze } from "@feedmepos/ui-library";
|
|
4
|
+
import { c as A, e as Se, S as Qe } from "./index-DoE5X--7.js";
|
|
5
|
+
import { u as Ke } from "./loading-BiX4mF7V.js";
|
|
6
|
+
import { u as Te, C as ye } from "./membership-Dnkc7J8U.js";
|
|
7
|
+
import { m as et, n as tt, o as nt, p as Ae, q as ot } from "./index-Cssv_Y-f.js";
|
|
8
|
+
import { a as at, c as Fe } from "./object-qECH92oz.js";
|
|
9
|
+
import { _ as ae } from "./lodash-BiybCWQB.js";
|
|
10
|
+
import { c as ue } from "./index-e2Rb4HHN.js";
|
|
11
|
+
import { u as xe } from "./vue-i18n-CfjKmwVs.js";
|
|
12
|
+
import { Z as Q, g as G, a as X } from "./zod-D4HcRDps.js";
|
|
13
|
+
import { z as ee, R as lt } from "./app-CrlU8BQt.js";
|
|
14
|
+
import { u as _e } from "./app-wDQR6dpb.js";
|
|
15
|
+
import { _ as le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-2lAQ7itS.js";
|
|
16
|
+
import { a as st, p as pe, n as rt, f as Ve } from "./plugins-_4R196pf.js";
|
|
17
17
|
import { J as ke } from "./JsonViewer-v8_C7l5N.js";
|
|
18
|
-
import { _ as
|
|
19
|
-
import { _ as
|
|
20
|
-
import { _ as
|
|
21
|
-
import { z as
|
|
22
|
-
import { F as
|
|
23
|
-
import { a as
|
|
24
|
-
import "./index-
|
|
25
|
-
import "./index-
|
|
26
|
-
import "./index-
|
|
27
|
-
import "./index-
|
|
28
|
-
import { m as
|
|
29
|
-
import { m as ge } from "./index-
|
|
30
|
-
import { useRouter as
|
|
31
|
-
function
|
|
32
|
-
return ue.DineroFactory(
|
|
18
|
+
import { _ as it } from "./index-CvQcsgQS.js";
|
|
19
|
+
import { _ as dt } from "./ImageInput.vue_vue_type_script_setup_true_lang-Dd1o2By9.js";
|
|
20
|
+
import { _ as ut } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
21
|
+
import { z as ct, a as mt } from "./money-BKxUbqL2.js";
|
|
22
|
+
import { F as pt } from "./number-s7gy0q08.js";
|
|
23
|
+
import { a as ft, t as yt } from "./helper-Ddi9Ypo8.js";
|
|
24
|
+
import "./index-BCtUj5K0.js";
|
|
25
|
+
import "./index-Dw_aPOsa.js";
|
|
26
|
+
import "./index-CBNZMw5T.js";
|
|
27
|
+
import "./index-CIG3I6UQ.js";
|
|
28
|
+
import { m as bt } from "./index-EvaDAbW_.js";
|
|
29
|
+
import { m as ge } from "./index-C74X6b5n.js";
|
|
30
|
+
import { useRouter as gt } from "vue-router";
|
|
31
|
+
function He(C) {
|
|
32
|
+
return ue.DineroFactory(C).toUnit();
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
const
|
|
36
|
-
S.map((t) =>
|
|
37
|
-
),
|
|
38
|
-
(t,
|
|
39
|
-
var
|
|
34
|
+
function qe(C, S, o, b, s = [], v = []) {
|
|
35
|
+
const a = it.compact(
|
|
36
|
+
S.map((t) => C.find((c) => c.systemCode === t.systemCode && c.taxCode === t.taxCode)).filter((t) => !!t && v.includes(t.systemCode))
|
|
37
|
+
), m = a.reduce(
|
|
38
|
+
(t, c) => {
|
|
39
|
+
var y;
|
|
40
40
|
return Object.assign(t, {
|
|
41
|
-
[
|
|
42
|
-
inclusive: ((
|
|
41
|
+
[c.taxCode]: {
|
|
42
|
+
inclusive: ((y = s.find((u) => u.systemCode === c.systemCode)) == null ? void 0 : y.inclusive) || !1,
|
|
43
43
|
adjustment: {
|
|
44
44
|
level: 1,
|
|
45
45
|
type: {
|
|
46
46
|
type: "BY_MULTIPLIER",
|
|
47
47
|
amount: {
|
|
48
|
-
amount:
|
|
49
|
-
precision:
|
|
48
|
+
amount: c.rate.amount,
|
|
49
|
+
precision: c.rate.precision,
|
|
50
50
|
currency: "MYR"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -64,17 +64,17 @@ function He(x, S, a, g, s = [], v = []) {
|
|
|
64
64
|
level: 0,
|
|
65
65
|
type: {
|
|
66
66
|
type: "BY_AMOUNT",
|
|
67
|
-
amount: ue.DineroFactory(
|
|
67
|
+
amount: ue.DineroFactory(o).subtract(ue.Dinero.fromNumber({ number: b }).toObject()).toObject()
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
-
taxes:
|
|
71
|
+
taxes: m
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
adjustments: {},
|
|
75
75
|
roundToNearest: 0
|
|
76
76
|
});
|
|
77
|
-
return
|
|
77
|
+
return a.map((t) => ({
|
|
78
78
|
setting: t,
|
|
79
79
|
systemCode: t.systemCode,
|
|
80
80
|
name: t.name,
|
|
@@ -85,87 +85,87 @@ function He(x, S, a, g, s = [], v = []) {
|
|
|
85
85
|
}).convertPrecision(2).toObject()
|
|
86
86
|
}));
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
88
|
+
function We(C, S, o) {
|
|
89
|
+
return C ? C.reduce((b, s) => {
|
|
90
90
|
var v;
|
|
91
|
-
return (v =
|
|
91
|
+
return (v = o.find((a) => a.systemCode === s.systemCode)) != null && v.inclusive || (b = ue.DineroFactory(b.toObject()).add(s.total)), b;
|
|
92
92
|
}, ue.DineroFactory(S)).toObject() : ue.DineroFactory(S).toObject();
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const vt = { class: "relative h-[120px] aspect-video flex items-center justify-center border rounded-md border-fm-color-neutral-gray-300" }, ht = ["src"], xt = {
|
|
95
95
|
key: 2,
|
|
96
96
|
class: "absolute top-2 left-2"
|
|
97
|
-
},
|
|
97
|
+
}, Ct = { class: "absolute top-0 right-0" }, St = { class: "fm-typo-en-body-lg-600" }, _t = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ft = { class: "flex gap-8 items-center flex-wrap" }, Vt = /* @__PURE__ */ te({
|
|
98
98
|
__name: "StoreBundleCard",
|
|
99
99
|
props: {
|
|
100
100
|
bundle: { type: Object, required: !0 }
|
|
101
101
|
},
|
|
102
102
|
emits: ["edit", "delete", "send"],
|
|
103
|
-
setup(
|
|
104
|
-
const
|
|
105
|
-
const
|
|
106
|
-
return
|
|
107
|
-
`${A.Config.getCountry().currency.symbol}${
|
|
108
|
-
),
|
|
103
|
+
setup(C, { emit: S }) {
|
|
104
|
+
const o = C, b = S, s = L(() => {
|
|
105
|
+
const a = [];
|
|
106
|
+
return o.bundle.price.amount > 0 && a.push(
|
|
107
|
+
`${A.Config.getCountry().currency.symbol}${He(o.bundle.price)}`
|
|
108
|
+
), o.bundle.coinPrice && a.push(`${o.bundle.coinPrice} point(s)`), a.join(" or ");
|
|
109
109
|
}), v = L(() => {
|
|
110
|
-
var
|
|
111
|
-
const
|
|
112
|
-
if (
|
|
113
|
-
const t =
|
|
114
|
-
|
|
110
|
+
var m, i;
|
|
111
|
+
const a = [];
|
|
112
|
+
if (o.bundle.titles.length > 0 && a.push(`${o.bundle.titles.length} title(s)`), o.bundle.vouchers.length > 0 && a.push(`${o.bundle.vouchers.length} voucher(s)`), o.bundle.credit.normal || (m = o.bundle.credit.free) != null && m.amount) {
|
|
113
|
+
const t = o.bundle.credit.normal + (((i = o.bundle.credit.free) == null ? void 0 : i.amount) ?? 0);
|
|
114
|
+
a.push(`${t} credit(s)`);
|
|
115
115
|
}
|
|
116
|
-
return
|
|
116
|
+
return a;
|
|
117
117
|
});
|
|
118
|
-
return (
|
|
119
|
-
const i = _("FmIcon"), t = _("FmChip"),
|
|
120
|
-
return
|
|
118
|
+
return (a, m) => {
|
|
119
|
+
const i = _("FmIcon"), t = _("FmChip"), c = _("FmButton"), y = _("FmMenuItem"), u = _("FmMenu"), T = _("FmCard");
|
|
120
|
+
return x(), O(T, {
|
|
121
121
|
variant: "outlined",
|
|
122
122
|
class: "flex flex-col gap-y-8 p-16 min-h-[240px] h-full text-center items-center"
|
|
123
123
|
}, {
|
|
124
124
|
default: B(() => [
|
|
125
|
-
V("div",
|
|
126
|
-
|
|
125
|
+
V("div", vt, [
|
|
126
|
+
C.bundle.image ? (x(), D("img", {
|
|
127
127
|
key: 1,
|
|
128
|
-
src:
|
|
128
|
+
src: C.bundle.image,
|
|
129
129
|
class: "w-full h-full object-contain aspect-video"
|
|
130
|
-
}, null, 8,
|
|
130
|
+
}, null, 8, ht)) : (x(), O(i, {
|
|
131
131
|
key: 0,
|
|
132
132
|
name: "image",
|
|
133
133
|
outline: !0,
|
|
134
134
|
size: "md",
|
|
135
135
|
class: "text-fm-color-neutral-gray-200"
|
|
136
136
|
})),
|
|
137
|
-
|
|
137
|
+
C.bundle.isFeedvibe ? (x(), D("div", xt, [
|
|
138
138
|
r(t, {
|
|
139
139
|
label: "Feedvibe",
|
|
140
140
|
class: "text-fm-color-primary bg-fm-color-system-warning-100",
|
|
141
141
|
compact: ""
|
|
142
142
|
})
|
|
143
143
|
])) : E("", !0),
|
|
144
|
-
V("div",
|
|
145
|
-
r(
|
|
144
|
+
V("div", Ct, [
|
|
145
|
+
r(u, { placement: "bottom-end" }, {
|
|
146
146
|
"menu-button": B(() => [
|
|
147
|
-
r(
|
|
147
|
+
r(c, {
|
|
148
148
|
icon: "more_vert",
|
|
149
149
|
variant: "tertiary"
|
|
150
150
|
})
|
|
151
151
|
]),
|
|
152
152
|
default: B(() => [
|
|
153
|
-
r(
|
|
154
|
-
onClick:
|
|
153
|
+
r(y, {
|
|
154
|
+
onClick: m[0] || (m[0] = (l) => b("edit", C.bundle)),
|
|
155
155
|
icon: "edit",
|
|
156
156
|
label: "Edit"
|
|
157
157
|
}),
|
|
158
|
-
|
|
158
|
+
C.bundle.stripePriceId ? E("", !0) : (x(), O(y, {
|
|
159
159
|
key: 0,
|
|
160
|
-
onClick:
|
|
160
|
+
onClick: m[1] || (m[1] = (l) => b("send", C.bundle)),
|
|
161
161
|
icon: "send",
|
|
162
162
|
label: "Send"
|
|
163
163
|
})),
|
|
164
|
-
r(
|
|
165
|
-
onClick:
|
|
164
|
+
r(y, {
|
|
165
|
+
onClick: m[2] || (m[2] = (l) => b("delete", C.bundle)),
|
|
166
166
|
icon: "delete"
|
|
167
167
|
}, {
|
|
168
|
-
label: B(() => [...
|
|
168
|
+
label: B(() => [...m[3] || (m[3] = [
|
|
169
169
|
V("div", { class: "text-fm-color-typo-error fm-typo-en-body-md-400" }, " Delete ", -1)
|
|
170
170
|
])]),
|
|
171
171
|
_: 1
|
|
@@ -175,10 +175,10 @@ const gt = { class: "relative h-[120px] aspect-video flex items-center justify-c
|
|
|
175
175
|
})
|
|
176
176
|
])
|
|
177
177
|
]),
|
|
178
|
-
V("div",
|
|
178
|
+
V("div", St, K(C.bundle.name), 1),
|
|
179
179
|
V("div", _t, K(e(s) || "Free"), 1),
|
|
180
|
-
V("div",
|
|
181
|
-
(
|
|
180
|
+
V("div", Ft, [
|
|
181
|
+
(x(!0), D(Y, null, ce(e(v), (l, w) => (x(), O(t, {
|
|
182
182
|
key: w,
|
|
183
183
|
label: l
|
|
184
184
|
}, null, 8, ["label"]))), 128))
|
|
@@ -188,21 +188,21 @@ const gt = { class: "relative h-[120px] aspect-video flex items-center justify-c
|
|
|
188
188
|
});
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
}),
|
|
191
|
+
}), wt = /* @__PURE__ */ te({
|
|
192
192
|
__name: "AddBundleCard",
|
|
193
193
|
emits: ["create"],
|
|
194
|
-
setup(
|
|
195
|
-
const { t:
|
|
194
|
+
setup(C, { emit: S }) {
|
|
195
|
+
const { t: o } = xe(), b = S;
|
|
196
196
|
return (s, v) => {
|
|
197
|
-
const
|
|
198
|
-
return
|
|
197
|
+
const a = _("FmButton"), m = _("FmCard");
|
|
198
|
+
return x(), O(m, {
|
|
199
199
|
variant: "outlined",
|
|
200
200
|
class: "flex flex-col gap-y-8 p-16 h-full min-h-[240px] items-center justify-center"
|
|
201
201
|
}, {
|
|
202
202
|
default: B(() => [
|
|
203
|
-
r(
|
|
204
|
-
onClick: v[0] || (v[0] = (i) =>
|
|
205
|
-
label: e(
|
|
203
|
+
r(a, {
|
|
204
|
+
onClick: v[0] || (v[0] = (i) => b("create")),
|
|
205
|
+
label: e(o)("connect.store.actions.addBundle"),
|
|
206
206
|
icon: "add",
|
|
207
207
|
variant: "secondary"
|
|
208
208
|
}, null, 8, ["label"])
|
|
@@ -211,7 +211,7 @@ const gt = { class: "relative h-[120px] aspect-video flex items-center justify-c
|
|
|
211
211
|
});
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
|
-
}),
|
|
214
|
+
}), Pt = { class: "space-y-16" }, Tt = { class: "flex w-full justify-between pb-16" }, kt = { class: "flex items-center justify-end gap-8" }, $t = /* @__PURE__ */ te({
|
|
215
215
|
__name: "CategoryDialog",
|
|
216
216
|
props: {
|
|
217
217
|
action: {
|
|
@@ -223,41 +223,41 @@ const gt = { class: "relative h-[120px] aspect-video flex items-center justify-c
|
|
|
223
223
|
default: () => ""
|
|
224
224
|
}
|
|
225
225
|
},
|
|
226
|
-
setup(
|
|
227
|
-
const { t: S } = xe(),
|
|
226
|
+
setup(C) {
|
|
227
|
+
const { t: S } = xe(), o = C, b = je(), { emitData: s, emitAction: v } = Le(), a = N(o.initialValue), m = ee.string().min(1);
|
|
228
228
|
function i() {
|
|
229
|
-
s(
|
|
229
|
+
s(a.value), v("primary"), b.close();
|
|
230
230
|
}
|
|
231
231
|
function t() {
|
|
232
|
-
s(null), v("primary"),
|
|
232
|
+
s(null), v("primary"), b.close();
|
|
233
233
|
}
|
|
234
|
-
return (
|
|
235
|
-
const
|
|
236
|
-
return
|
|
237
|
-
r(
|
|
238
|
-
modelValue: e(
|
|
239
|
-
"onUpdate:modelValue":
|
|
234
|
+
return (c, y) => {
|
|
235
|
+
const u = _("FmTextField"), T = _("FmButton");
|
|
236
|
+
return x(), D("div", Pt, [
|
|
237
|
+
r(u, {
|
|
238
|
+
modelValue: e(a),
|
|
239
|
+
"onUpdate:modelValue": y[0] || (y[0] = (l) => re(a) ? a.value = l : null),
|
|
240
240
|
label: e(S)("connect.store.category.label"),
|
|
241
|
-
rules: [e(Q).toRule(e(
|
|
241
|
+
rules: [e(Q).toRule(e(m))]
|
|
242
242
|
}, null, 8, ["modelValue", "label", "rules"]),
|
|
243
|
-
V("div",
|
|
243
|
+
V("div", Tt, [
|
|
244
244
|
V("div", null, [
|
|
245
|
-
|
|
245
|
+
C.action == "edit" ? (x(), O(T, {
|
|
246
246
|
key: 0,
|
|
247
247
|
onClick: t,
|
|
248
248
|
label: e(S)("connect.common.delete"),
|
|
249
249
|
variant: "destructive"
|
|
250
250
|
}, null, 8, ["label"])) : E("", !0)
|
|
251
251
|
]),
|
|
252
|
-
V("div",
|
|
252
|
+
V("div", kt, [
|
|
253
253
|
r(T, {
|
|
254
254
|
label: e(S)("connect.common.cancel"),
|
|
255
255
|
variant: "tertiary",
|
|
256
|
-
onClick:
|
|
256
|
+
onClick: y[1] || (y[1] = (l) => e(b).close())
|
|
257
257
|
}, null, 8, ["label"]),
|
|
258
258
|
r(T, {
|
|
259
|
-
label:
|
|
260
|
-
disabled: !e(
|
|
259
|
+
label: C.action == "edit" ? e(S)("connect.common.edit") : e(S)("connect.common.add"),
|
|
260
|
+
disabled: !e(a),
|
|
261
261
|
onClick: i
|
|
262
262
|
}, null, 8, ["label", "disabled"])
|
|
263
263
|
])
|
|
@@ -265,38 +265,38 @@ const gt = { class: "relative h-[120px] aspect-video flex items-center justify-c
|
|
|
265
265
|
]);
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
|
-
}),
|
|
268
|
+
}), Ut = { class: "space-y-16" }, Rt = { class: "flex items-center justify-end gap-8 pb-16" }, It = /* @__PURE__ */ te({
|
|
269
269
|
__name: "SelectCategoryDialog",
|
|
270
|
-
setup(
|
|
271
|
-
const { emitData: S, emitAction:
|
|
272
|
-
() =>
|
|
273
|
-
label:
|
|
274
|
-
value:
|
|
270
|
+
setup(C) {
|
|
271
|
+
const { emitData: S, emitAction: o } = Le(), b = Te(), s = N(), v = L(
|
|
272
|
+
() => b.sortedStoreCategories.map((a, m) => ({
|
|
273
|
+
label: a.name,
|
|
274
|
+
value: m
|
|
275
275
|
}))
|
|
276
276
|
);
|
|
277
|
-
return (
|
|
277
|
+
return (a, m) => {
|
|
278
278
|
const i = _("FmSelect"), t = _("FmButton");
|
|
279
|
-
return
|
|
280
|
-
|
|
279
|
+
return x(), D("div", Ut, [
|
|
280
|
+
m[4] || (m[4] = V("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Select a category to create FeedMe CNY 2025 bundle ", -1)),
|
|
281
281
|
r(i, {
|
|
282
282
|
placeholder: "Select a category",
|
|
283
283
|
items: e(v),
|
|
284
284
|
modelValue: e(s),
|
|
285
285
|
"onUpdate:modelValue": [
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
m[0] || (m[0] = (c) => re(s) ? s.value = c : null),
|
|
287
|
+
m[1] || (m[1] = (c) => e(S)(c))
|
|
288
288
|
],
|
|
289
289
|
label: "Category"
|
|
290
290
|
}, null, 8, ["items", "modelValue"]),
|
|
291
|
-
V("div",
|
|
291
|
+
V("div", Rt, [
|
|
292
292
|
r(t, {
|
|
293
293
|
variant: "tertiary",
|
|
294
294
|
label: "Cancel",
|
|
295
|
-
onClick:
|
|
295
|
+
onClick: m[2] || (m[2] = (c) => e(o)("tertiary"))
|
|
296
296
|
}),
|
|
297
297
|
r(t, {
|
|
298
298
|
label: "Select",
|
|
299
|
-
onClick:
|
|
299
|
+
onClick: m[3] || (m[3] = (c) => e(o)("primary")),
|
|
300
300
|
disabled: e(s) == null
|
|
301
301
|
}, null, 8, ["disabled"])
|
|
302
302
|
])
|
|
@@ -304,11 +304,11 @@ const gt = { class: "relative h-[120px] aspect-video flex items-center justify-c
|
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
306
|
});
|
|
307
|
-
function se(
|
|
308
|
-
return
|
|
307
|
+
function se(C) {
|
|
308
|
+
return C.states.map((S) => ({ label: S, value: S }));
|
|
309
309
|
}
|
|
310
|
-
const
|
|
311
|
-
[
|
|
310
|
+
const Bt = {
|
|
311
|
+
[Se.F_COUNTRY.enum.MY]: {
|
|
312
312
|
states: [
|
|
313
313
|
"Johor",
|
|
314
314
|
"Kedah",
|
|
@@ -331,7 +331,7 @@ const It = {
|
|
|
331
331
|
return se(this);
|
|
332
332
|
}
|
|
333
333
|
},
|
|
334
|
-
[
|
|
334
|
+
[Se.F_COUNTRY.enum.SG]: {
|
|
335
335
|
states: [],
|
|
336
336
|
get stateItems() {
|
|
337
337
|
return se(this);
|
|
@@ -367,7 +367,7 @@ const It = {
|
|
|
367
367
|
return se(this);
|
|
368
368
|
}
|
|
369
369
|
},
|
|
370
|
-
[
|
|
370
|
+
[Se.F_COUNTRY.enum.ID]: {
|
|
371
371
|
states: [
|
|
372
372
|
"Aceh",
|
|
373
373
|
"Bali",
|
|
@@ -407,7 +407,7 @@ const It = {
|
|
|
407
407
|
return se(this);
|
|
408
408
|
}
|
|
409
409
|
},
|
|
410
|
-
[
|
|
410
|
+
[Se.F_COUNTRY.enum.TH]: {
|
|
411
411
|
states: [
|
|
412
412
|
"Bangkok",
|
|
413
413
|
"Amnat Charoen",
|
|
@@ -491,40 +491,40 @@ const It = {
|
|
|
491
491
|
return se(this);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
},
|
|
494
|
+
}, be = () => A.Config.getCountry(), ve = {
|
|
495
495
|
get fullCurrency() {
|
|
496
|
-
return
|
|
496
|
+
return be().currency;
|
|
497
497
|
},
|
|
498
498
|
get currency() {
|
|
499
|
-
return
|
|
499
|
+
return be().currency.code;
|
|
500
500
|
},
|
|
501
501
|
get fullTax() {
|
|
502
|
-
return A.Country.getCountryFlattenTaxes(
|
|
502
|
+
return A.Country.getCountryFlattenTaxes(be().code);
|
|
503
503
|
},
|
|
504
504
|
get taxSystem() {
|
|
505
|
-
return
|
|
505
|
+
return be().taxSystems;
|
|
506
506
|
},
|
|
507
|
-
taxInclusion(
|
|
507
|
+
taxInclusion(C) {
|
|
508
508
|
return ve.taxSystem.map((S) => ({
|
|
509
509
|
systemCode: S.code,
|
|
510
|
-
inclusive:
|
|
510
|
+
inclusive: C !== void 0 ? C : !1
|
|
511
511
|
}));
|
|
512
512
|
},
|
|
513
513
|
groupedTaxOptions() {
|
|
514
|
-
const
|
|
514
|
+
const C = A.Country.getCountryFlattenTaxes(be().code);
|
|
515
515
|
return ve.taxSystem.map((S) => ({
|
|
516
516
|
code: S.code,
|
|
517
|
-
options:
|
|
517
|
+
options: C.map((o) => ({ ...o, feedmeTaxCode: ve.generateCode(o) })).filter((o) => o.systemCode === S.code)
|
|
518
518
|
}));
|
|
519
519
|
},
|
|
520
|
-
systemDefaultCode(
|
|
521
|
-
const S = ve.groupedTaxOptions().find((
|
|
522
|
-
return S == null ? void 0 : S.options.find((
|
|
520
|
+
systemDefaultCode(C) {
|
|
521
|
+
const S = ve.groupedTaxOptions().find((o) => o.code === C);
|
|
522
|
+
return S == null ? void 0 : S.options.find((o) => o.default);
|
|
523
523
|
},
|
|
524
|
-
generateCode(
|
|
525
|
-
return `${
|
|
524
|
+
generateCode(C) {
|
|
525
|
+
return `${C.systemCode}/${C.taxCode}`;
|
|
526
526
|
}
|
|
527
|
-
}, W = ve,
|
|
527
|
+
}, W = ve, Nt = /* @__PURE__ */ te({
|
|
528
528
|
__name: "TaxInclusiveSetting",
|
|
529
529
|
props: {
|
|
530
530
|
modelValue: {
|
|
@@ -534,54 +534,54 @@ const It = {
|
|
|
534
534
|
}
|
|
535
535
|
},
|
|
536
536
|
emits: ["update:model-value"],
|
|
537
|
-
setup(
|
|
538
|
-
const
|
|
539
|
-
function
|
|
540
|
-
const
|
|
541
|
-
T >= 0 ?
|
|
542
|
-
systemCode:
|
|
543
|
-
inclusive:
|
|
544
|
-
}), v.value =
|
|
537
|
+
setup(C, { emit: S }) {
|
|
538
|
+
const o = C, b = W.taxSystem, s = S, v = N(o.modelValue);
|
|
539
|
+
function a(c, y) {
|
|
540
|
+
const u = ae.clone(o.modelValue), T = u.findIndex((l) => l.systemCode === c);
|
|
541
|
+
T >= 0 ? u[T].inclusive = y : u.push({
|
|
542
|
+
systemCode: c,
|
|
543
|
+
inclusive: y
|
|
544
|
+
}), v.value = u, s("update:model-value", u);
|
|
545
545
|
}
|
|
546
|
-
function
|
|
547
|
-
return
|
|
548
|
-
const
|
|
546
|
+
function m() {
|
|
547
|
+
return b.map((c) => {
|
|
548
|
+
const y = o.modelValue ? o.modelValue.find((u) => u.systemCode === c.code) : !1;
|
|
549
549
|
return {
|
|
550
|
-
label:
|
|
550
|
+
label: c.name,
|
|
551
551
|
config: {
|
|
552
|
-
value:
|
|
552
|
+
value: y ? y.inclusive : !1
|
|
553
553
|
},
|
|
554
|
-
input: (
|
|
555
|
-
|
|
554
|
+
input: (u) => {
|
|
555
|
+
a(c.code, u);
|
|
556
556
|
}
|
|
557
557
|
};
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
const i =
|
|
561
|
-
function t(
|
|
562
|
-
return `${
|
|
560
|
+
const i = ze(m());
|
|
561
|
+
function t(c, y) {
|
|
562
|
+
return `${c} ${y ? "Inclusive" : "Exclusive"}`;
|
|
563
563
|
}
|
|
564
564
|
return he(() => {
|
|
565
|
-
|
|
565
|
+
o.modelValue.length || a(b[0].code, !1);
|
|
566
566
|
}), Pe(
|
|
567
|
-
() =>
|
|
568
|
-
(
|
|
569
|
-
|
|
567
|
+
() => o.modelValue,
|
|
568
|
+
(c, y) => {
|
|
569
|
+
c != y && !c.length && a(b[0].code, !1);
|
|
570
570
|
}
|
|
571
|
-
), (
|
|
572
|
-
const
|
|
573
|
-
return
|
|
571
|
+
), (c, y) => {
|
|
572
|
+
const u = _("FmSwitch");
|
|
573
|
+
return x(!0), D(Y, null, ce(e(i), (T, l) => {
|
|
574
574
|
var w;
|
|
575
|
-
return
|
|
576
|
-
r(
|
|
575
|
+
return x(), D("div", { key: l }, [
|
|
576
|
+
r(u, {
|
|
577
577
|
"model-value": ((w = e(v)[l]) == null ? void 0 : w.inclusive) || !1,
|
|
578
578
|
"label-placement": "left",
|
|
579
|
-
"onUpdate:modelValue": (
|
|
579
|
+
"onUpdate:modelValue": (U) => T.input(U)
|
|
580
580
|
}, {
|
|
581
581
|
label: B(() => {
|
|
582
|
-
var
|
|
582
|
+
var U;
|
|
583
583
|
return [
|
|
584
|
-
V("div", null, K(t(T.label, ((
|
|
584
|
+
V("div", null, K(t(T.label, ((U = e(v)[l]) == null ? void 0 : U.inclusive) || !1)), 1)
|
|
585
585
|
];
|
|
586
586
|
}),
|
|
587
587
|
_: 2
|
|
@@ -591,44 +591,44 @@ const It = {
|
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
593
|
});
|
|
594
|
-
var
|
|
595
|
-
const
|
|
594
|
+
var Dt = { mode: "production", appMode: "mf" };
|
|
595
|
+
const Ot = { class: "space-y-8" }, Mt = {
|
|
596
596
|
key: 0,
|
|
597
597
|
class: "space-y-16"
|
|
598
|
-
},
|
|
598
|
+
}, At = /* @__PURE__ */ te({
|
|
599
599
|
__name: "StripeSetting",
|
|
600
600
|
props: {
|
|
601
601
|
modelValue: {}
|
|
602
602
|
},
|
|
603
603
|
emits: ["update:modelValue"],
|
|
604
|
-
setup(
|
|
605
|
-
const
|
|
606
|
-
Pe(s, (
|
|
607
|
-
|
|
604
|
+
setup(C, { emit: S }) {
|
|
605
|
+
const o = C, b = S, s = N(!1);
|
|
606
|
+
Pe(s, (a, m) => {
|
|
607
|
+
m != a && (!o.modelValue && a ? b("update:modelValue", {
|
|
608
608
|
apiKey: "",
|
|
609
609
|
webhookSecret: ""
|
|
610
|
-
}) :
|
|
610
|
+
}) : a || b("update:modelValue", void 0));
|
|
611
611
|
});
|
|
612
612
|
const v = L(() => {
|
|
613
|
-
const
|
|
614
|
-
return `https://marketing${
|
|
613
|
+
const a = Dt.mode === "development", m = A.Config.getCountry().code.toLowerCase(), i = m != "my" ? `.${m}` : "";
|
|
614
|
+
return `https://marketing${a ? "-dev" : ""}${i}.feedmeapi.com/stripe/${Qe.getBusinessId()}/webhook`;
|
|
615
615
|
});
|
|
616
616
|
return he(() => {
|
|
617
|
-
s.value = !!
|
|
618
|
-
}), (
|
|
619
|
-
const i = _("FmSwitch"), t = _("FmTextField"),
|
|
620
|
-
return
|
|
617
|
+
s.value = !!o.modelValue;
|
|
618
|
+
}), (a, m) => {
|
|
619
|
+
const i = _("FmSwitch"), t = _("FmTextField"), c = _("FmButton");
|
|
620
|
+
return x(), D("div", Ot, [
|
|
621
621
|
r(i, {
|
|
622
622
|
modelValue: e(s),
|
|
623
|
-
"onUpdate:modelValue":
|
|
623
|
+
"onUpdate:modelValue": m[0] || (m[0] = (y) => re(s) ? s.value = y : null),
|
|
624
624
|
value: "true",
|
|
625
625
|
label: "Enable Stripe"
|
|
626
626
|
}, null, 8, ["modelValue"]),
|
|
627
|
-
|
|
627
|
+
o.modelValue ? (x(), D("div", Mt, [
|
|
628
628
|
r(t, {
|
|
629
629
|
label: "API Key",
|
|
630
|
-
modelValue:
|
|
631
|
-
"onUpdate:modelValue":
|
|
630
|
+
modelValue: o.modelValue.apiKey,
|
|
631
|
+
"onUpdate:modelValue": m[1] || (m[1] = (y) => o.modelValue.apiKey = y),
|
|
632
632
|
"helper-text": "Go to Stripe Dashboard get your API Key and paste here."
|
|
633
633
|
}, null, 8, ["modelValue"]),
|
|
634
634
|
r(t, {
|
|
@@ -638,17 +638,17 @@ const Dt = { class: "space-y-8" }, Mt = {
|
|
|
638
638
|
"helper-text": "Copy this URL to your Stripe dashboard"
|
|
639
639
|
}, {
|
|
640
640
|
append: B(() => [
|
|
641
|
-
r(
|
|
641
|
+
r(c, {
|
|
642
642
|
icon: "content_copy",
|
|
643
643
|
variant: "tertiary",
|
|
644
|
-
onClick:
|
|
644
|
+
onClick: m[2] || (m[2] = (y) => e(st)(e(v)))
|
|
645
645
|
})
|
|
646
646
|
]),
|
|
647
647
|
_: 1
|
|
648
648
|
}, 8, ["model-value"]),
|
|
649
649
|
r(t, {
|
|
650
|
-
modelValue:
|
|
651
|
-
"onUpdate:modelValue":
|
|
650
|
+
modelValue: o.modelValue.webhookSecret,
|
|
651
|
+
"onUpdate:modelValue": m[3] || (m[3] = (y) => o.modelValue.webhookSecret = y),
|
|
652
652
|
label: "Webhook Secret",
|
|
653
653
|
"helper-text": `Copy the webhook signing secret from your Stripe account and paste
|
|
654
654
|
here.`
|
|
@@ -657,21 +657,21 @@ const Dt = { class: "space-y-8" }, Mt = {
|
|
|
657
657
|
]);
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
|
-
}),
|
|
660
|
+
}), Et = {
|
|
661
661
|
key: 0,
|
|
662
662
|
class: "space-y-16 pr-12"
|
|
663
|
-
},
|
|
663
|
+
}, jt = { class: "fm-typo-en-title-sm-800 !mb-[-12px]" }, Lt = {
|
|
664
664
|
key: 1,
|
|
665
665
|
class: "space-y-16"
|
|
666
|
-
},
|
|
666
|
+
}, Kt = { class: "fm-typo-en-title-sm-800 !mb-[-12px]" }, Ht = { class: "fm-typo-en-title-sm-800 !mb-[-12px]" }, qt = { class: "grid grid-cols-2 gap-x-16 gap-y-16" }, Wt = { class: "space-y-4" }, Yt = { class: "fm-typo-en-body-lg-400" }, zt = { class: "space-y-16" }, Jt = { class: "fm-typo-en-title-sm-800 !mb-[-12px]" }, Gt = { class: "flex items-center gap-8" }, Xt = /* @__PURE__ */ te({
|
|
667
667
|
__name: "StoreSettingSheet",
|
|
668
668
|
emits: ["update"],
|
|
669
|
-
setup(
|
|
670
|
-
const { t:
|
|
671
|
-
company:
|
|
669
|
+
setup(C, { expose: S, emit: o }) {
|
|
670
|
+
const { t: b } = xe(), s = o, v = N(!1), a = N(), m = N(!1), i = et.extend({
|
|
671
|
+
company: tt.extend({
|
|
672
672
|
name: ee.string().min(1, "Company name is required"),
|
|
673
673
|
regNo: ee.string().min(1, "Registration number is required"),
|
|
674
|
-
address:
|
|
674
|
+
address: nt.extend({
|
|
675
675
|
line1: ee.string().min(1, "Line 1 is required"),
|
|
676
676
|
line2: ee.string().optional(),
|
|
677
677
|
state: ee.string().min(1, "State is required"),
|
|
@@ -682,12 +682,12 @@ const Dt = { class: "space-y-8" }, Mt = {
|
|
|
682
682
|
phoneNo: ee.string().min(1, "Phone number is required"),
|
|
683
683
|
sstRegNo: ee.string().optional()
|
|
684
684
|
})
|
|
685
|
-
}), t = L(() => i.safeParse(
|
|
686
|
-
function
|
|
687
|
-
const T = i.safeParse(
|
|
685
|
+
}), t = L(() => i.safeParse(a.value).success);
|
|
686
|
+
function c() {
|
|
687
|
+
const T = i.safeParse(a.value);
|
|
688
688
|
T.success && s("update", T.data);
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function y() {
|
|
691
691
|
return {
|
|
692
692
|
company: {
|
|
693
693
|
name: "",
|
|
@@ -706,31 +706,31 @@ const Dt = { class: "space-y-8" }, Mt = {
|
|
|
706
706
|
inclusiveTaxes: []
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
|
-
function
|
|
710
|
-
v.value = T, T && (
|
|
709
|
+
function u(T, l) {
|
|
710
|
+
v.value = T, T && (a.value = l != null && l.company ? ae.cloneDeep(l) : y());
|
|
711
711
|
}
|
|
712
712
|
return S({
|
|
713
|
-
showSheet:
|
|
714
|
-
data:
|
|
713
|
+
showSheet: u,
|
|
714
|
+
data: a
|
|
715
715
|
}), (T, l) => {
|
|
716
|
-
const w = _("FmIcon"),
|
|
717
|
-
return
|
|
716
|
+
const w = _("FmIcon"), U = _("FmMenuItem"), j = _("FmMenu"), ne = _("FmSelect"), Z = _("FmButton"), H = _("FmSideSheet");
|
|
717
|
+
return x(), O(H, {
|
|
718
718
|
"max-width": 560,
|
|
719
719
|
modelValue: e(v),
|
|
720
720
|
"onUpdate:modelValue": l[15] || (l[15] = (z) => re(v) ? v.value = z : null),
|
|
721
|
-
header: e(
|
|
721
|
+
header: e(b)("connect.store.setting.title")
|
|
722
722
|
}, {
|
|
723
723
|
"side-sheet-footer": B(() => [
|
|
724
|
-
V("div",
|
|
724
|
+
V("div", Gt, [
|
|
725
725
|
r(Z, {
|
|
726
|
-
label: e(
|
|
727
|
-
onClick:
|
|
728
|
-
disabled: !e(t) || e(
|
|
729
|
-
loading: e(
|
|
726
|
+
label: e(b)("connect.common.save"),
|
|
727
|
+
onClick: c,
|
|
728
|
+
disabled: !e(t) || e(_e)().isLoading,
|
|
729
|
+
loading: e(_e)().isLoading
|
|
730
730
|
}, null, 8, ["label", "disabled", "loading"]),
|
|
731
731
|
r(Z, {
|
|
732
|
-
label: e(
|
|
733
|
-
onClick: l[14] || (l[14] = (z) =>
|
|
732
|
+
label: e(b)("connect.common.cancel"),
|
|
733
|
+
onClick: l[14] || (l[14] = (z) => u(!1)),
|
|
734
734
|
variant: "tertiary"
|
|
735
735
|
}, null, 8, ["label"])
|
|
736
736
|
])
|
|
@@ -738,103 +738,103 @@ const Dt = { class: "space-y-8" }, Mt = {
|
|
|
738
738
|
default: B(() => {
|
|
739
739
|
var z, oe;
|
|
740
740
|
return [
|
|
741
|
-
r(ke, { json: e(
|
|
742
|
-
e(
|
|
743
|
-
V("div",
|
|
741
|
+
r(ke, { json: e(a) }, null, 8, ["json"]),
|
|
742
|
+
e(a) && e(a).company ? (x(), D("div", Et, [
|
|
743
|
+
V("div", jt, K(e(b)("connect.store.setting.company.legal_info")), 1),
|
|
744
744
|
r(le, {
|
|
745
|
-
modelValue: e(
|
|
746
|
-
"onUpdate:modelValue": l[0] || (l[0] = (F) => e(
|
|
747
|
-
label: e(
|
|
745
|
+
modelValue: e(a).company.name,
|
|
746
|
+
"onUpdate:modelValue": l[0] || (l[0] = (F) => e(a).company.name = F),
|
|
747
|
+
label: e(b)("connect.store.setting.company.name"),
|
|
748
748
|
schema: e(Q).typeAtPath(e(i), "company.name")
|
|
749
749
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
750
750
|
r(le, {
|
|
751
|
-
modelValue: e(
|
|
752
|
-
"onUpdate:modelValue": l[1] || (l[1] = (F) => e(
|
|
753
|
-
label: e(
|
|
751
|
+
modelValue: e(a).company.regNo,
|
|
752
|
+
"onUpdate:modelValue": l[1] || (l[1] = (F) => e(a).company.regNo = F),
|
|
753
|
+
label: e(b)("connect.store.setting.company.reg_no"),
|
|
754
754
|
schema: e(Q).typeAtPath(e(i), "company.regNo")
|
|
755
755
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
756
|
-
e(A.Config).getCountry().taxSystems.length ? (
|
|
756
|
+
e(A.Config).getCountry().taxSystems.length ? (x(), O(le, {
|
|
757
757
|
key: 0,
|
|
758
|
-
modelValue: e(
|
|
758
|
+
modelValue: e(a).company.sstRegNo,
|
|
759
759
|
"onUpdate:modelValue": [
|
|
760
|
-
l[2] || (l[2] = (F) => e(
|
|
761
|
-
l[3] || (l[3] = (F) => F ? null : e(
|
|
760
|
+
l[2] || (l[2] = (F) => e(a).company.sstRegNo = F),
|
|
761
|
+
l[3] || (l[3] = (F) => F ? null : e(a).inclusiveTaxes = [])
|
|
762
762
|
],
|
|
763
|
-
label: e(
|
|
763
|
+
label: e(b)("connect.store.setting.company.tax_reg_no"),
|
|
764
764
|
schema: e(Q).typeAtPath(e(i), "company.sstRegNo")
|
|
765
765
|
}, null, 8, ["modelValue", "label", "schema"])) : E("", !0),
|
|
766
|
-
(z = e(
|
|
767
|
-
V("div",
|
|
768
|
-
r(
|
|
769
|
-
modelValue: e(
|
|
770
|
-
"onUpdate:modelValue": l[4] || (l[4] = (F) => e(
|
|
766
|
+
(z = e(a).company) != null && z.sstRegNo && e(a).inclusiveTaxes ? (x(), D("div", Lt, [
|
|
767
|
+
V("div", Kt, K(e(b)("connect.store.setting.company.tax")), 1),
|
|
768
|
+
r(Nt, {
|
|
769
|
+
modelValue: e(a).inclusiveTaxes,
|
|
770
|
+
"onUpdate:modelValue": l[4] || (l[4] = (F) => e(a).inclusiveTaxes = F)
|
|
771
771
|
}, null, 8, ["modelValue"])
|
|
772
772
|
])) : E("", !0),
|
|
773
773
|
r(le, {
|
|
774
|
-
modelValue: e(
|
|
775
|
-
"onUpdate:modelValue": l[5] || (l[5] = (F) => e(
|
|
776
|
-
label: e(
|
|
774
|
+
modelValue: e(a).company.phoneNo,
|
|
775
|
+
"onUpdate:modelValue": l[5] || (l[5] = (F) => e(a).company.phoneNo = F),
|
|
776
|
+
label: e(b)("connect.store.setting.company.phone"),
|
|
777
777
|
schema: e(Q).typeAtPath(e(i), "company.phoneNo")
|
|
778
778
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
779
|
-
V("div",
|
|
779
|
+
V("div", Ht, K(e(b)("connect.store.setting.company.address.title")), 1),
|
|
780
780
|
r(le, {
|
|
781
|
-
modelValue: e(
|
|
782
|
-
"onUpdate:modelValue": l[6] || (l[6] = (F) => e(
|
|
783
|
-
label: e(
|
|
781
|
+
modelValue: e(a).company.address.line1,
|
|
782
|
+
"onUpdate:modelValue": l[6] || (l[6] = (F) => e(a).company.address.line1 = F),
|
|
783
|
+
label: e(b)("connect.store.setting.company.address.line1"),
|
|
784
784
|
schema: e(Q).typeAtPath(e(i), "company.address.line1")
|
|
785
785
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
786
786
|
r(le, {
|
|
787
|
-
modelValue: e(
|
|
788
|
-
"onUpdate:modelValue": l[7] || (l[7] = (F) => e(
|
|
789
|
-
label: e(
|
|
787
|
+
modelValue: e(a).company.address.line2,
|
|
788
|
+
"onUpdate:modelValue": l[7] || (l[7] = (F) => e(a).company.address.line2 = F),
|
|
789
|
+
label: e(b)("connect.store.setting.company.address.line2"),
|
|
790
790
|
schema: e(Q).typeAtPath(e(i), "company.address.line2")
|
|
791
791
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
792
|
-
V("div",
|
|
792
|
+
V("div", qt, [
|
|
793
793
|
r(le, {
|
|
794
|
-
modelValue: e(
|
|
795
|
-
"onUpdate:modelValue": l[8] || (l[8] = (F) => e(
|
|
796
|
-
label: e(
|
|
794
|
+
modelValue: e(a).company.address.city,
|
|
795
|
+
"onUpdate:modelValue": l[8] || (l[8] = (F) => e(a).company.address.city = F),
|
|
796
|
+
label: e(b)("connect.store.setting.company.address.city"),
|
|
797
797
|
schema: e(Q).typeAtPath(e(i), "company.address.city")
|
|
798
798
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
799
799
|
r(le, {
|
|
800
|
-
modelValue: e(
|
|
801
|
-
"onUpdate:modelValue": l[9] || (l[9] = (F) => e(
|
|
802
|
-
label: e(
|
|
800
|
+
modelValue: e(a).company.address.postcode,
|
|
801
|
+
"onUpdate:modelValue": l[9] || (l[9] = (F) => e(a).company.address.postcode = F),
|
|
802
|
+
label: e(b)("connect.store.setting.company.address.postcode"),
|
|
803
803
|
schema: e(Q).typeAtPath(e(i), "company.address.postcode")
|
|
804
804
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
805
|
-
V("div",
|
|
806
|
-
V("div",
|
|
805
|
+
V("div", Wt, [
|
|
806
|
+
V("div", Yt, K(e(b)("connect.store.setting.company.address.state")), 1),
|
|
807
807
|
r(j, {
|
|
808
808
|
placement: "top-end",
|
|
809
|
-
"model-value": e(
|
|
809
|
+
"model-value": e(m)
|
|
810
810
|
}, {
|
|
811
811
|
"menu-button": B(() => [
|
|
812
812
|
r(le, {
|
|
813
|
-
modelValue: e(
|
|
814
|
-
"onUpdate:modelValue": l[10] || (l[10] = (F) => e(
|
|
813
|
+
modelValue: e(a).company.address.state,
|
|
814
|
+
"onUpdate:modelValue": l[10] || (l[10] = (F) => e(a).company.address.state = F),
|
|
815
815
|
schema: e(Q).typeAtPath(e(i), "company.address.state"),
|
|
816
|
-
onFocusChanged: l[11] || (l[11] = (F) =>
|
|
816
|
+
onFocusChanged: l[11] || (l[11] = (F) => m.value = F)
|
|
817
817
|
}, {
|
|
818
818
|
append: B(() => [
|
|
819
819
|
r(w, {
|
|
820
|
-
name: e(
|
|
820
|
+
name: e(m) ? "keyboard_arrow_up" : "keyboard_arrow_down"
|
|
821
821
|
}, null, 8, ["name"])
|
|
822
822
|
]),
|
|
823
823
|
_: 1
|
|
824
824
|
}, 8, ["modelValue", "schema"])
|
|
825
825
|
]),
|
|
826
826
|
default: B(() => [
|
|
827
|
-
(
|
|
827
|
+
(x(!0), D(Y, null, ce(e(Bt)[e(A.Config).getCountry().code].stateItems.filter(
|
|
828
828
|
(F) => {
|
|
829
|
-
var ie,
|
|
830
|
-
return F.label.toLowerCase().includes(((
|
|
829
|
+
var ie, g;
|
|
830
|
+
return F.label.toLowerCase().includes(((g = (ie = e(a)) == null ? void 0 : ie.company) == null ? void 0 : g.address.state.toLowerCase()) ?? "");
|
|
831
831
|
}
|
|
832
|
-
) || [], (F) => (
|
|
832
|
+
) || [], (F) => (x(), O(U, {
|
|
833
833
|
key: F.value,
|
|
834
|
-
"model-value": e(
|
|
834
|
+
"model-value": e(a).company.address.state === F.value,
|
|
835
835
|
label: F.label,
|
|
836
836
|
onClick: () => {
|
|
837
|
-
e(
|
|
837
|
+
e(a).company.address.state = F.value, m.value = !1;
|
|
838
838
|
}
|
|
839
839
|
}, null, 8, ["model-value", "label", "onClick"]))), 128))
|
|
840
840
|
]),
|
|
@@ -842,9 +842,9 @@ const Dt = { class: "space-y-8" }, Mt = {
|
|
|
842
842
|
}, 8, ["model-value"])
|
|
843
843
|
]),
|
|
844
844
|
r(ne, {
|
|
845
|
-
label: e(
|
|
846
|
-
modelValue: e(
|
|
847
|
-
"onUpdate:modelValue": l[12] || (l[12] = (F) => e(
|
|
845
|
+
label: e(b)("connect.store.setting.company.address.country"),
|
|
846
|
+
modelValue: e(a).company.address.country,
|
|
847
|
+
"onUpdate:modelValue": l[12] || (l[12] = (F) => e(a).company.address.country = F),
|
|
848
848
|
items: [
|
|
849
849
|
{
|
|
850
850
|
label: e(A.Config).getCountry().name,
|
|
@@ -854,11 +854,11 @@ const Dt = { class: "space-y-8" }, Mt = {
|
|
|
854
854
|
rules: [e(Q).ruleAtPath(e(i), "company.address.country")]
|
|
855
855
|
}, null, 8, ["label", "modelValue", "items", "rules"])
|
|
856
856
|
]),
|
|
857
|
-
V("div",
|
|
858
|
-
V("div",
|
|
859
|
-
r(
|
|
860
|
-
"model-value": (oe = e(
|
|
861
|
-
"onUpdate:modelValue": l[13] || (l[13] = (F) => e(
|
|
857
|
+
V("div", zt, [
|
|
858
|
+
V("div", Jt, K(e(b)("connect.store.setting.stripe.title")), 1),
|
|
859
|
+
r(At, {
|
|
860
|
+
"model-value": (oe = e(a)) == null ? void 0 : oe.stripe,
|
|
861
|
+
"onUpdate:modelValue": l[13] || (l[13] = (F) => e(a).stripe = F)
|
|
862
862
|
}, null, 8, ["model-value"])
|
|
863
863
|
])
|
|
864
864
|
])) : E("", !0)
|
|
@@ -869,10 +869,10 @@ const Dt = { class: "space-y-8" }, Mt = {
|
|
|
869
869
|
};
|
|
870
870
|
}
|
|
871
871
|
});
|
|
872
|
-
function
|
|
873
|
-
return A.DineroFactory(
|
|
872
|
+
function Zt(C, S = !0) {
|
|
873
|
+
return A.DineroFactory(C).toFormat(S);
|
|
874
874
|
}
|
|
875
|
-
const
|
|
875
|
+
const Qt = /* @__PURE__ */ te({
|
|
876
876
|
__name: "TaxVariantSetting",
|
|
877
877
|
props: {
|
|
878
878
|
modelValue: {
|
|
@@ -882,15 +882,15 @@ const Zt = /* @__PURE__ */ te({
|
|
|
882
882
|
}
|
|
883
883
|
},
|
|
884
884
|
emits: ["update:modelValue"],
|
|
885
|
-
setup(
|
|
886
|
-
const
|
|
885
|
+
setup(C, { emit: S }) {
|
|
886
|
+
const o = C, b = S;
|
|
887
887
|
he(() => {
|
|
888
|
-
if (
|
|
889
|
-
const t = v.value.reduce((
|
|
890
|
-
const
|
|
891
|
-
if (!
|
|
892
|
-
const { systemCode: T, taxCode: l } =
|
|
893
|
-
return
|
|
888
|
+
if (a.value.length !== v.value.length) {
|
|
889
|
+
const t = v.value.reduce((c, y) => {
|
|
890
|
+
const u = W.systemDefaultCode(y.name);
|
|
891
|
+
if (!u) return c;
|
|
892
|
+
const { systemCode: T, taxCode: l } = u;
|
|
893
|
+
return y.value || c.push({ systemCode: T, taxCode: l }), c;
|
|
894
894
|
}, []);
|
|
895
895
|
i(t);
|
|
896
896
|
}
|
|
@@ -900,50 +900,50 @@ const Zt = /* @__PURE__ */ te({
|
|
|
900
900
|
}
|
|
901
901
|
const v = L(() => s().map((t) => ({
|
|
902
902
|
name: t.code,
|
|
903
|
-
value: (
|
|
904
|
-
(
|
|
903
|
+
value: (a.value || []).find(
|
|
904
|
+
(c) => t.options.some((y) => y.feedmeTaxCode === c)
|
|
905
905
|
),
|
|
906
|
-
options: t.options.map((
|
|
907
|
-
label: `${
|
|
908
|
-
value:
|
|
906
|
+
options: t.options.map((c) => ({
|
|
907
|
+
label: `${c.name} (${pt(c.rate)}%)`,
|
|
908
|
+
value: c.feedmeTaxCode
|
|
909
909
|
}))
|
|
910
|
-
}))),
|
|
911
|
-
function
|
|
912
|
-
const
|
|
910
|
+
}))), a = L(() => o.modelValue.map((t) => W.generateCode(t)));
|
|
911
|
+
function m(t) {
|
|
912
|
+
const c = s().find(
|
|
913
913
|
(l) => l.options.some((w) => w.feedmeTaxCode === t)
|
|
914
|
-
),
|
|
915
|
-
if (!
|
|
916
|
-
const { systemCode:
|
|
917
|
-
i([{ systemCode:
|
|
914
|
+
), y = c == null ? void 0 : c.options.find((l) => l.feedmeTaxCode === t);
|
|
915
|
+
if (!y) return;
|
|
916
|
+
const { systemCode: u, taxCode: T } = y;
|
|
917
|
+
i([{ systemCode: u, taxCode: T }]);
|
|
918
918
|
}
|
|
919
919
|
function i(t) {
|
|
920
|
-
const
|
|
921
|
-
t.forEach((
|
|
922
|
-
const
|
|
923
|
-
(w) => w.options.some((
|
|
924
|
-
), T = (
|
|
925
|
-
(w) => T.some((
|
|
920
|
+
const c = ae.clone(o.modelValue);
|
|
921
|
+
t.forEach((y) => {
|
|
922
|
+
const u = s().find(
|
|
923
|
+
(w) => w.options.some((U) => U.feedmeTaxCode === W.generateCode(y))
|
|
924
|
+
), T = (u == null ? void 0 : u.options) || [], l = c.findIndex(
|
|
925
|
+
(w) => T.some((U) => W.generateCode(U) === W.generateCode(w))
|
|
926
926
|
);
|
|
927
|
-
l >= 0 ?
|
|
928
|
-
}),
|
|
927
|
+
l >= 0 ? c.splice(l, 1, y) : c.push(y);
|
|
928
|
+
}), b("update:modelValue", c);
|
|
929
929
|
}
|
|
930
|
-
return (t,
|
|
931
|
-
const
|
|
932
|
-
return
|
|
930
|
+
return (t, c) => {
|
|
931
|
+
const y = _("FmRadio"), u = _("FmRadioGroup");
|
|
932
|
+
return x(!0), D(Y, null, ce(e(v), (T) => (x(), D("div", {
|
|
933
933
|
key: T.name,
|
|
934
934
|
class: "flex items-start"
|
|
935
935
|
}, [
|
|
936
|
-
r(
|
|
936
|
+
r(u, {
|
|
937
937
|
modelValue: T.value,
|
|
938
938
|
"onUpdate:modelValue": [
|
|
939
939
|
(l) => T.value = l,
|
|
940
|
-
|
|
941
|
-
|
|
940
|
+
c[0] || (c[0] = (l) => {
|
|
941
|
+
m(l);
|
|
942
942
|
})
|
|
943
943
|
]
|
|
944
944
|
}, {
|
|
945
945
|
default: B(() => [
|
|
946
|
-
(
|
|
946
|
+
(x(!0), D(Y, null, ce(T.options, (l, w) => (x(), O(y, {
|
|
947
947
|
key: w,
|
|
948
948
|
value: l.value,
|
|
949
949
|
label: l.label
|
|
@@ -976,53 +976,53 @@ const Zt = /* @__PURE__ */ te({
|
|
|
976
976
|
taxes: [],
|
|
977
977
|
taxTotals: [],
|
|
978
978
|
internal: !1,
|
|
979
|
-
priceWithTaxes:
|
|
980
|
-
},
|
|
979
|
+
priceWithTaxes: ct()
|
|
980
|
+
}, en = {
|
|
981
981
|
key: 0,
|
|
982
982
|
class: "space-y-24 pr-12"
|
|
983
|
-
},
|
|
983
|
+
}, tn = { class: "space-y-8" }, nn = { class: "fm-typo-en-title-sm-800 !mb-[-16px]" }, on = { class: "fm-typo-en-title-sm-800 !mb-[-16px]" }, an = { class: "fm-typo-en-title-sm-800 !mb-[-16px]" }, ln = { class: "fm-typo-en-title-sm-800 !mb-[-20px]" }, sn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary !mb-[-16px]" }, rn = { class: "space-y-8" }, dn = { class: "flex items-center justify-between" }, un = { class: "fm-typo-en-title-sm-800 !mb-[-20px]" }, cn = { class: "space-y-8" }, mn = { class: "flex items-center gap-8" }, pn = /* @__PURE__ */ te({
|
|
984
984
|
__name: "EditBundleSheet",
|
|
985
985
|
emits: ["update"],
|
|
986
|
-
setup(
|
|
987
|
-
const
|
|
986
|
+
setup(C, { expose: S, emit: o }) {
|
|
987
|
+
const b = o, { t: s } = xe(), v = Te(), a = N(!1), m = N([]), i = N({
|
|
988
988
|
category: 0,
|
|
989
989
|
index: -1,
|
|
990
990
|
originalCategoryIndex: void 0
|
|
991
|
-
}), t = N(ae.cloneDeep(we)),
|
|
992
|
-
const
|
|
993
|
-
return
|
|
991
|
+
}), t = N(ae.cloneDeep(we)), c = N(), y = Ae, u = L(() => {
|
|
992
|
+
const d = y.safeParse(t.value);
|
|
993
|
+
return d.success ? [] : d.error.errors;
|
|
994
994
|
}), T = [
|
|
995
995
|
{
|
|
996
996
|
header: "Reward title",
|
|
997
|
-
accessorFn: (
|
|
997
|
+
accessorFn: (d) => d.collectible.name,
|
|
998
998
|
enableSorting: !0
|
|
999
999
|
},
|
|
1000
1000
|
{
|
|
1001
1001
|
id: "type",
|
|
1002
1002
|
header: "Reward type",
|
|
1003
|
-
accessorFn: (
|
|
1004
|
-
cell(
|
|
1005
|
-
return
|
|
1003
|
+
accessorFn: (d) => d.collectible.type,
|
|
1004
|
+
cell(d) {
|
|
1005
|
+
return ye[d.row.original.collectible.type].chip();
|
|
1006
1006
|
}
|
|
1007
1007
|
},
|
|
1008
1008
|
{
|
|
1009
1009
|
header: "Description",
|
|
1010
|
-
accessorFn: (
|
|
1011
|
-
cell(
|
|
1010
|
+
accessorFn: (d) => d.description,
|
|
1011
|
+
cell(d) {
|
|
1012
1012
|
var p;
|
|
1013
|
-
const n =
|
|
1014
|
-
return n.collectible.type == "VOUCHER" || n.selectedReward == null ? n.description :
|
|
1015
|
-
"onUpdate:modelValue": (
|
|
1013
|
+
const n = d.row.original;
|
|
1014
|
+
return n.collectible.type == "VOUCHER" || n.selectedReward == null ? n.description : Ge(Ze.FmStepperField, {
|
|
1015
|
+
"onUpdate:modelValue": (f) => {
|
|
1016
1016
|
t.value.titles = t.value.titles.map(
|
|
1017
|
-
(
|
|
1017
|
+
(I) => I.id == n.collectible._id ? { ...I, dayToExpire: f } : I
|
|
1018
1018
|
);
|
|
1019
1019
|
},
|
|
1020
1020
|
modelValue: ((p = n.selectedReward) == null ? void 0 : p.extra) ?? 0,
|
|
1021
1021
|
appendText: "day(s)",
|
|
1022
|
-
helperState: G(
|
|
1023
|
-
helperText: X(
|
|
1022
|
+
helperState: G(u.value, "titles"),
|
|
1023
|
+
helperText: X(u.value, "titles"),
|
|
1024
1024
|
max: 9999,
|
|
1025
|
-
rules: [(
|
|
1025
|
+
rules: [(f) => f <= 9999 || "Maximum 9999 days allowed"],
|
|
1026
1026
|
showSteppers: !1,
|
|
1027
1027
|
disabled: !!t.value.stripePriceId
|
|
1028
1028
|
});
|
|
@@ -1030,24 +1030,24 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1030
1030
|
}
|
|
1031
1031
|
], l = N([]), w = L(() => {
|
|
1032
1032
|
var n;
|
|
1033
|
-
const
|
|
1033
|
+
const d = (n = t.value) != null && n.isFeedvibe ? "STORE_BUNDLE:FEEDVIBE" : "STORE_BUNDLE:DEFAULT";
|
|
1034
1034
|
return v.bundleRewards.filter((p) => {
|
|
1035
|
-
var
|
|
1036
|
-
return (
|
|
1035
|
+
var f;
|
|
1036
|
+
return (f = t.value) != null && f.isFeedvibe && p.type !== "VOUCHER" ? !1 : ft(p.capabilities, d);
|
|
1037
1037
|
}).map((p) => {
|
|
1038
|
-
const
|
|
1038
|
+
const f = U.value.find((M) => M.id == p._id), I = p.type === "VOUCHER" ? `${p.options.maxUse} use(s), ${yt(
|
|
1039
1039
|
p.options.validityOption || {}
|
|
1040
1040
|
)}` : "No expiry";
|
|
1041
1041
|
return {
|
|
1042
1042
|
collectible: p,
|
|
1043
|
-
description:
|
|
1044
|
-
selectedReward:
|
|
1043
|
+
description: I,
|
|
1044
|
+
selectedReward: f
|
|
1045
1045
|
};
|
|
1046
1046
|
});
|
|
1047
|
-
}),
|
|
1048
|
-
var
|
|
1047
|
+
}), U = L(() => {
|
|
1048
|
+
var d, n;
|
|
1049
1049
|
return [
|
|
1050
|
-
...((
|
|
1050
|
+
...((d = t.value) == null ? void 0 : d.titles.map((p) => ({
|
|
1051
1051
|
id: p.id,
|
|
1052
1052
|
extra: p.dayToExpire
|
|
1053
1053
|
}))) ?? [],
|
|
@@ -1059,105 +1059,105 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1059
1059
|
}), j = L(
|
|
1060
1060
|
() => t.value.stripePriceId && t.value.subscriptionValidity ? t.value.subscriptionValidity : 0
|
|
1061
1061
|
);
|
|
1062
|
-
function ne(
|
|
1063
|
-
t.value.subscriptionValidity =
|
|
1062
|
+
function ne(d) {
|
|
1063
|
+
t.value.subscriptionValidity = d;
|
|
1064
1064
|
for (const n of t.value.titles)
|
|
1065
|
-
n.dayToExpire =
|
|
1066
|
-
t.value.credit.free && (t.value.credit.free.day =
|
|
1065
|
+
n.dayToExpire = d;
|
|
1066
|
+
t.value.credit.free && (t.value.credit.free.day = d);
|
|
1067
1067
|
}
|
|
1068
1068
|
function Z() {
|
|
1069
|
-
const
|
|
1070
|
-
if (!(!n || !
|
|
1071
|
-
for (let p = 0; p <
|
|
1072
|
-
const
|
|
1073
|
-
H.value[p] ?
|
|
1074
|
-
(
|
|
1069
|
+
const d = w.value, n = t.value;
|
|
1070
|
+
if (!(!n || !d))
|
|
1071
|
+
for (let p = 0; p < d.length; p++) {
|
|
1072
|
+
const f = d[p];
|
|
1073
|
+
H.value[p] ? f.collectible.type == "TITLE" ? n.titles.findIndex(
|
|
1074
|
+
(R) => R.id == f.collectible._id
|
|
1075
1075
|
) < 0 && n.titles.push({
|
|
1076
|
-
id:
|
|
1076
|
+
id: f.collectible._id,
|
|
1077
1077
|
dayToExpire: j.value
|
|
1078
1078
|
}) : n.vouchers.findIndex(
|
|
1079
|
-
(
|
|
1080
|
-
) < 0 && n.vouchers.push(
|
|
1081
|
-
(
|
|
1079
|
+
(R) => R == f.collectible._id
|
|
1080
|
+
) < 0 && n.vouchers.push(f.collectible._id) : (n.titles = n.titles.filter((M) => M.id != f.collectible._id), n.vouchers = n.vouchers.filter(
|
|
1081
|
+
(M) => M != f.collectible._id
|
|
1082
1082
|
));
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
1085
|
const H = N({});
|
|
1086
1086
|
Pe(H, Z, { deep: !0 });
|
|
1087
1087
|
const z = L(() => {
|
|
1088
|
-
var
|
|
1089
|
-
return (n = (
|
|
1088
|
+
var d, n;
|
|
1089
|
+
return (n = (d = v.storeOption) == null ? void 0 : d.company) == null ? void 0 : n.sstRegNo;
|
|
1090
1090
|
}), oe = L(() => {
|
|
1091
|
-
var
|
|
1092
|
-
return (p = (n = (
|
|
1091
|
+
var d, n, p;
|
|
1092
|
+
return (p = (n = (d = v.storeOption) == null ? void 0 : d.inclusiveTaxes) == null ? void 0 : n[0]) != null && p.inclusive ? "Inclusive" : "Exclusive";
|
|
1093
1093
|
}), F = L(() => {
|
|
1094
|
-
var
|
|
1095
|
-
return
|
|
1094
|
+
var d, n, p;
|
|
1095
|
+
return qe(
|
|
1096
1096
|
W.fullTax,
|
|
1097
|
-
|
|
1097
|
+
Je(t.value.taxes),
|
|
1098
1098
|
t.value.price,
|
|
1099
1099
|
Number(t.value.credit.normal),
|
|
1100
|
-
((
|
|
1101
|
-
(p = (n = v.storeOption) == null ? void 0 : n.company) != null && p.sstRegNo ? W.taxSystem.map((
|
|
1100
|
+
((d = v.storeOption) == null ? void 0 : d.inclusiveTaxes) ?? [],
|
|
1101
|
+
(p = (n = v.storeOption) == null ? void 0 : n.company) != null && p.sstRegNo ? W.taxSystem.map((f) => f.code) : []
|
|
1102
1102
|
);
|
|
1103
1103
|
}), ie = L(() => F.value.reduce(
|
|
1104
1104
|
(n, p) => n.add(p.total),
|
|
1105
|
-
|
|
1106
|
-
).toFormat()),
|
|
1107
|
-
var
|
|
1108
|
-
const
|
|
1105
|
+
mt()
|
|
1106
|
+
).toFormat()), g = L(() => {
|
|
1107
|
+
var f;
|
|
1108
|
+
const d = We(
|
|
1109
1109
|
F.value,
|
|
1110
1110
|
t.value.price,
|
|
1111
|
-
((
|
|
1111
|
+
((f = v.storeOption) == null ? void 0 : f.inclusiveTaxes) ?? []
|
|
1112
1112
|
);
|
|
1113
|
-
t.value.priceWithTaxes =
|
|
1114
|
-
const n =
|
|
1113
|
+
t.value.priceWithTaxes = d;
|
|
1114
|
+
const n = Zt(d, !1), p = Number(n.replace(/[^\d.-]/g, ""));
|
|
1115
1115
|
return Number.isNaN(p) ? 0 : p;
|
|
1116
1116
|
});
|
|
1117
1117
|
function k() {
|
|
1118
|
-
t.value.taxTotals = F.value,
|
|
1118
|
+
t.value.taxTotals = F.value, b("update", Ae.parse(at(t.value)));
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function h() {
|
|
1121
1121
|
return ae.cloneDeep(we);
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1124
|
-
|
|
1123
|
+
function $(d, n) {
|
|
1124
|
+
a.value = d, d && n && (c.value = void 0, m.value = n.categories, t.value = n.bundle || h(), i.value.category = n.category, i.value.index = n.index, i.value.originalCategoryIndex = n.category, H.value = w.value.reduce((p, f, I) => (p[I] = !!f.selectedReward, p), {}));
|
|
1125
1125
|
}
|
|
1126
1126
|
return S({
|
|
1127
|
-
showSheet:
|
|
1128
|
-
bundleImage:
|
|
1127
|
+
showSheet: $,
|
|
1128
|
+
bundleImage: c,
|
|
1129
1129
|
target: i,
|
|
1130
1130
|
data: t
|
|
1131
|
-
}), (
|
|
1132
|
-
const p = _("FmSwitch"),
|
|
1133
|
-
return
|
|
1131
|
+
}), (d, n) => {
|
|
1132
|
+
const p = _("FmSwitch"), f = _("FmHelperText"), I = _("FmTextField"), M = _("FmSelect"), R = _("FmStepperField"), q = _("FmMenuItem"), J = _("FmTable"), fe = _("FmButton"), Ce = _("FmSideSheet");
|
|
1133
|
+
return x(), O(Ce, {
|
|
1134
1134
|
"max-width": 768,
|
|
1135
|
-
modelValue: e(
|
|
1136
|
-
"onUpdate:modelValue": n[21] || (n[21] = (de) => re(
|
|
1135
|
+
modelValue: e(a),
|
|
1136
|
+
"onUpdate:modelValue": n[21] || (n[21] = (de) => re(a) ? a.value = de : null),
|
|
1137
1137
|
header: e(i).index != -1 ? e(s)("connect.store.bundle.edit.title") : e(s)("connect.store.bundle.edit.create")
|
|
1138
1138
|
}, {
|
|
1139
1139
|
"side-sheet-footer": B(() => [
|
|
1140
|
-
V("div",
|
|
1141
|
-
r(
|
|
1140
|
+
V("div", mn, [
|
|
1141
|
+
r(fe, {
|
|
1142
1142
|
label: e(i).index != -1 ? "Save" : "Add",
|
|
1143
1143
|
onClick: k,
|
|
1144
|
-
disabled: e(
|
|
1145
|
-
loading: e(
|
|
1144
|
+
disabled: e(u).length > 0,
|
|
1145
|
+
loading: e(_e)().isLoading
|
|
1146
1146
|
}, null, 8, ["label", "disabled", "loading"]),
|
|
1147
|
-
r(
|
|
1147
|
+
r(fe, {
|
|
1148
1148
|
label: "Cancel",
|
|
1149
|
-
onClick: n[20] || (n[20] = (de) =>
|
|
1149
|
+
onClick: n[20] || (n[20] = (de) => $(!1)),
|
|
1150
1150
|
variant: "tertiary"
|
|
1151
1151
|
})
|
|
1152
1152
|
])
|
|
1153
1153
|
]),
|
|
1154
1154
|
default: B(() => {
|
|
1155
|
-
var de, $e, Ue, Re, Ie, Be, Ne, De,
|
|
1155
|
+
var de, $e, Ue, Re, Ie, Be, Ne, De, Oe, Me;
|
|
1156
1156
|
return [
|
|
1157
1157
|
r(ke, { json: e(t) }, null, 8, ["json"]),
|
|
1158
|
-
e(t) ? (
|
|
1159
|
-
V("div",
|
|
1160
|
-
e(A.Config).getCountry().code == "MY" && ((de = e(v).payoutAccount) == null ? void 0 : de.status) == "APPROVED" && (($e = e(v).payoutAccount) != null && $e.enable) ? (
|
|
1158
|
+
e(t) ? (x(), D("div", en, [
|
|
1159
|
+
V("div", tn, [
|
|
1160
|
+
e(A.Config).getCountry().code == "MY" && ((de = e(v).payoutAccount) == null ? void 0 : de.status) == "APPROVED" && (($e = e(v).payoutAccount) != null && $e.enable) ? (x(), O(p, {
|
|
1161
1161
|
key: 0,
|
|
1162
1162
|
"onUpdate:modelValue": n[0] || (n[0] = (P) => {
|
|
1163
1163
|
e(t).isFeedvibe = P, e(t).isFeedvibe && (e(t).credit.normal = 0, e(t).coinPrice = 0, e(t).titles = [], H.value = {}, e(t).hideInPos = !0, e(t).internal = !0);
|
|
@@ -1167,39 +1167,39 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1167
1167
|
label: "Feedvibe Campaign",
|
|
1168
1168
|
sublabel: "Bundle will be appear for Feedvibe campaign use"
|
|
1169
1169
|
}, null, 8, ["model-value"])) : E("", !0),
|
|
1170
|
-
e(t).isFeedvibe ? (
|
|
1170
|
+
e(t).isFeedvibe ? (x(), O(f, {
|
|
1171
1171
|
key: 1,
|
|
1172
1172
|
text: "There will be a 15% charge for FeedVibe bundles sold in the FeedVibe app. FeedVibe bundles only show up in the FeedVibe app and cannot be sold in the POS and mini program. For more information, please contact support.",
|
|
1173
1173
|
state: "warning"
|
|
1174
1174
|
})) : E("", !0)
|
|
1175
1175
|
]),
|
|
1176
|
-
V("div",
|
|
1177
|
-
r(
|
|
1176
|
+
V("div", nn, K(e(s)("connect.store.bundle.edit.basicInformation")), 1),
|
|
1177
|
+
r(I, {
|
|
1178
1178
|
label: e(s)("connect.store.bundle.edit.bundleName"),
|
|
1179
1179
|
modelValue: e(t).name,
|
|
1180
1180
|
"onUpdate:modelValue": n[1] || (n[1] = (P) => e(t).name = P),
|
|
1181
|
-
"helper-state": e(G)(e(
|
|
1182
|
-
"helper-text": e(X)(e(
|
|
1181
|
+
"helper-state": e(G)(e(u), "name"),
|
|
1182
|
+
"helper-text": e(X)(e(u), "name")
|
|
1183
1183
|
}, null, 8, ["label", "modelValue", "helper-state", "helper-text"]),
|
|
1184
|
-
r(
|
|
1184
|
+
r(M, {
|
|
1185
1185
|
modelValue: e(i).category,
|
|
1186
1186
|
"onUpdate:modelValue": n[2] || (n[2] = (P) => e(i).category = P),
|
|
1187
1187
|
label: "Store Category",
|
|
1188
|
-
items: e(
|
|
1188
|
+
items: e(m).map((P, Ye) => ({ label: P, value: Ye }))
|
|
1189
1189
|
}, null, 8, ["modelValue", "items"]),
|
|
1190
|
-
r(
|
|
1190
|
+
r(dt, {
|
|
1191
1191
|
label: e(s)("connect.store.bundle.edit.bundleImage"),
|
|
1192
1192
|
class: "w-1/2 xs:w-2/3",
|
|
1193
1193
|
"aspect-ratio": "16/9",
|
|
1194
1194
|
thumbnail: e(t).image ?? void 0,
|
|
1195
|
-
file: e(
|
|
1195
|
+
file: e(c) ?? void 0,
|
|
1196
1196
|
"onUpdate:file": n[3] || (n[3] = (P) => {
|
|
1197
|
-
|
|
1197
|
+
c.value = P;
|
|
1198
1198
|
}),
|
|
1199
|
-
"helper-state": e(G)(e(
|
|
1200
|
-
"helper-text": e(X)(e(
|
|
1199
|
+
"helper-state": e(G)(e(u), "image"),
|
|
1200
|
+
"helper-text": e(X)(e(u), "image")
|
|
1201
1201
|
}, null, 8, ["label", "thumbnail", "file", "helper-state", "helper-text"]),
|
|
1202
|
-
r(
|
|
1202
|
+
r(R, {
|
|
1203
1203
|
"model-value": e(A.Dinero).fromFdoDinero(e(t).price).toUnit(),
|
|
1204
1204
|
label: e(s)("connect.store.bundle.edit.bundlePrice"),
|
|
1205
1205
|
min: 0,
|
|
@@ -1209,17 +1209,17 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1209
1209
|
}),
|
|
1210
1210
|
"is-currency": !0,
|
|
1211
1211
|
"show-steppers": !1,
|
|
1212
|
-
"helper-text": e(X)(e(
|
|
1212
|
+
"helper-text": e(X)(e(u), "price") || `${e(A.Dinero).fromNumber({ number: 1 }).toFormat(
|
|
1213
1213
|
!0
|
|
1214
1214
|
)} = ${e(A.Dinero).fromNumber({ number: 1 }).toUnit()} credit`,
|
|
1215
|
-
"helper-state": e(G)(e(
|
|
1215
|
+
"helper-state": e(G)(e(u), "price")
|
|
1216
1216
|
}, {
|
|
1217
1217
|
prepend: B(() => [
|
|
1218
1218
|
me(K(e(A.Dinero).defaultCurrency()), 1)
|
|
1219
1219
|
]),
|
|
1220
1220
|
_: 1
|
|
1221
1221
|
}, 8, ["model-value", "label", "helper-text", "helper-state"]),
|
|
1222
|
-
r(
|
|
1222
|
+
r(R, {
|
|
1223
1223
|
"model-value": e(A.Dinero).fromFdoDinero(e(t).originalPrice).toUnit(),
|
|
1224
1224
|
label: e(s)("connect.store.bundle.edit.bundleValue"),
|
|
1225
1225
|
min: 0,
|
|
@@ -1229,15 +1229,15 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1229
1229
|
}),
|
|
1230
1230
|
"is-currency": !0,
|
|
1231
1231
|
"show-steppers": !1,
|
|
1232
|
-
"helper-text": e(X)(e(
|
|
1233
|
-
"helper-state": e(G)(e(
|
|
1232
|
+
"helper-text": e(X)(e(u), "originalPrice") || e(s)("connect.store.bundle.edit.originalPriceHelper"),
|
|
1233
|
+
"helper-state": e(G)(e(u), "originalPrice")
|
|
1234
1234
|
}, {
|
|
1235
1235
|
prepend: B(() => [
|
|
1236
1236
|
me(K(e(A.Dinero).defaultCurrency()), 1)
|
|
1237
1237
|
]),
|
|
1238
1238
|
_: 1
|
|
1239
1239
|
}, 8, ["model-value", "label", "helper-text", "helper-state"]),
|
|
1240
|
-
e(t).isFeedvibe ? E("", !0) : (
|
|
1240
|
+
e(t).isFeedvibe ? E("", !0) : (x(), O(R, {
|
|
1241
1241
|
key: 0,
|
|
1242
1242
|
"model-value": e(t).coinPrice ?? null,
|
|
1243
1243
|
label: e(s)("connect.store.bundle.edit.pointNeeded"),
|
|
@@ -1246,50 +1246,50 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1246
1246
|
P > 0 && e(t).credit.normal > 0 && (e(t).credit.normal = 0), e(t).coinPrice = P;
|
|
1247
1247
|
}),
|
|
1248
1248
|
"show-steppers": !1,
|
|
1249
|
-
"helper-state": e(G)(e(
|
|
1250
|
-
"helper-text": e(X)(e(
|
|
1249
|
+
"helper-state": e(G)(e(u), "coinPrice"),
|
|
1250
|
+
"helper-text": e(X)(e(u), "coinPrice")
|
|
1251
1251
|
}, {
|
|
1252
1252
|
append: B(() => [...n[22] || (n[22] = [
|
|
1253
1253
|
me(" point(s) ", -1)
|
|
1254
1254
|
])]),
|
|
1255
1255
|
_: 1
|
|
1256
1256
|
}, 8, ["model-value", "label", "helper-state", "helper-text"])),
|
|
1257
|
-
(Ue = e(v).storeOption) != null && Ue.stripe && !e(t).isFeedvibe ? (
|
|
1258
|
-
V("div",
|
|
1259
|
-
r(
|
|
1257
|
+
(Ue = e(v).storeOption) != null && Ue.stripe && !e(t).isFeedvibe ? (x(), D(Y, { key: 1 }, [
|
|
1258
|
+
V("div", on, K(e(s)("connect.store.bundle.edit.subscriptionSettings")), 1),
|
|
1259
|
+
r(I, {
|
|
1260
1260
|
label: e(s)("connect.store.bundle.edit.stripePriceId"),
|
|
1261
1261
|
modelValue: e(t).stripePriceId,
|
|
1262
1262
|
"onUpdate:modelValue": n[7] || (n[7] = (P) => e(t).stripePriceId = P),
|
|
1263
|
-
"helper-state": e(G)(e(
|
|
1264
|
-
"helper-text": e(X)(e(
|
|
1263
|
+
"helper-state": e(G)(e(u), "stripePriceId"),
|
|
1264
|
+
"helper-text": e(X)(e(u), "stripePriceId")
|
|
1265
1265
|
}, null, 8, ["label", "modelValue", "helper-state", "helper-text"]),
|
|
1266
|
-
e(t).stripePriceId ? (
|
|
1266
|
+
e(t).stripePriceId ? (x(), O(R, {
|
|
1267
1267
|
key: 0,
|
|
1268
1268
|
"model-value": e(t).subscriptionValidity ?? null,
|
|
1269
1269
|
min: 1,
|
|
1270
1270
|
"onUpdate:modelValue": ne,
|
|
1271
1271
|
label: e(s)("connect.store.bundle.edit.subscriptionValidity"),
|
|
1272
1272
|
"show-steppers": !1,
|
|
1273
|
-
"helper-state": e(G)(e(
|
|
1274
|
-
"helper-text": e(X)(e(
|
|
1273
|
+
"helper-state": e(G)(e(u), "subscriptionValidity"),
|
|
1274
|
+
"helper-text": e(X)(e(u), "subscriptionValidity")
|
|
1275
1275
|
}, null, 8, ["model-value", "label", "helper-state", "helper-text"])) : E("", !0)
|
|
1276
1276
|
], 64)) : E("", !0),
|
|
1277
|
-
e(t).isFeedvibe ? E("", !0) : (
|
|
1278
|
-
V("div",
|
|
1279
|
-
r(
|
|
1277
|
+
e(t).isFeedvibe ? E("", !0) : (x(), D(Y, { key: 2 }, [
|
|
1278
|
+
V("div", an, K(e(s)("connect.store.bundle.edit.credit")), 1),
|
|
1279
|
+
r(R, {
|
|
1280
1280
|
modelValue: e(t).credit.normal,
|
|
1281
1281
|
"onUpdate:modelValue": n[8] || (n[8] = (P) => e(t).credit.normal = P),
|
|
1282
1282
|
label: e(s)("connect.store.bundle.edit.normalCredit"),
|
|
1283
1283
|
"show-steppers": !1,
|
|
1284
|
-
"helper-state": e(G)(e(
|
|
1285
|
-
"helper-text": e(X)(e(
|
|
1284
|
+
"helper-state": e(G)(e(u), "credit.normal"),
|
|
1285
|
+
"helper-text": e(X)(e(u), "credit.normal")
|
|
1286
1286
|
}, {
|
|
1287
1287
|
append: B(() => [...n[23] || (n[23] = [
|
|
1288
1288
|
me(" credit ", -1)
|
|
1289
1289
|
])]),
|
|
1290
1290
|
_: 1
|
|
1291
1291
|
}, 8, ["modelValue", "label", "helper-state", "helper-text"]),
|
|
1292
|
-
r(
|
|
1292
|
+
r(R, {
|
|
1293
1293
|
"model-value": ((Re = e(t).credit.free) == null ? void 0 : Re.amount) ?? null,
|
|
1294
1294
|
min: 0,
|
|
1295
1295
|
"onUpdate:modelValue": n[9] || (n[9] = (P) => {
|
|
@@ -1300,15 +1300,15 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1300
1300
|
}),
|
|
1301
1301
|
label: e(s)("connect.store.bundle.edit.freeCredit"),
|
|
1302
1302
|
"show-steppers": !1,
|
|
1303
|
-
"helper-state": e(G)(e(
|
|
1304
|
-
"helper-text": e(X)(e(
|
|
1303
|
+
"helper-state": e(G)(e(u), "credit.free.amount"),
|
|
1304
|
+
"helper-text": e(X)(e(u), "credit.free.amount")
|
|
1305
1305
|
}, {
|
|
1306
1306
|
append: B(() => [...n[24] || (n[24] = [
|
|
1307
1307
|
me(" credit ", -1)
|
|
1308
1308
|
])]),
|
|
1309
1309
|
_: 1
|
|
1310
1310
|
}, 8, ["model-value", "label", "helper-state", "helper-text"]),
|
|
1311
|
-
(Ie = e(t).credit.free) != null && Ie.amount ? (
|
|
1311
|
+
(Ie = e(t).credit.free) != null && Ie.amount ? (x(), O(R, {
|
|
1312
1312
|
key: 0,
|
|
1313
1313
|
disabled: !!e(t).stripePriceId,
|
|
1314
1314
|
"model-value": ((Be = e(t).credit.free) == null ? void 0 : Be.day) ?? null,
|
|
@@ -1321,8 +1321,8 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1321
1321
|
}),
|
|
1322
1322
|
label: "Free credit valid for",
|
|
1323
1323
|
"show-steppers": !1,
|
|
1324
|
-
"helper-state": e(G)(e(
|
|
1325
|
-
"helper-text": e(X)(e(
|
|
1324
|
+
"helper-state": e(G)(e(u), "credit.free.day"),
|
|
1325
|
+
"helper-text": e(X)(e(u), "credit.free.day")
|
|
1326
1326
|
}, {
|
|
1327
1327
|
append: B(() => [...n[25] || (n[25] = [
|
|
1328
1328
|
me(" day(s) ", -1)
|
|
@@ -1330,28 +1330,28 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1330
1330
|
_: 1
|
|
1331
1331
|
}, 8, ["disabled", "model-value", "helper-state", "helper-text"])) : E("", !0)
|
|
1332
1332
|
], 64)),
|
|
1333
|
-
e(z) ? (
|
|
1333
|
+
e(z) ? (x(), D(Y, { key: 3 }, [
|
|
1334
1334
|
n[26] || (n[26] = V("div", { class: "fm-typo-en-title-sm-800 !mb-[-16px]" }, "Taxes", -1)),
|
|
1335
|
-
r(
|
|
1335
|
+
r(Qt, {
|
|
1336
1336
|
modelValue: e(t).taxes,
|
|
1337
1337
|
"onUpdate:modelValue": n[11] || (n[11] = (P) => e(t).taxes = P)
|
|
1338
1338
|
}, null, 8, ["modelValue"]),
|
|
1339
|
-
r(
|
|
1339
|
+
r(I, {
|
|
1340
1340
|
label: `Tax Charged (${e(oe)})`,
|
|
1341
1341
|
"model-value": e(ie),
|
|
1342
1342
|
disabled: ""
|
|
1343
1343
|
}, null, 8, ["label", "model-value"])
|
|
1344
1344
|
], 64)) : E("", !0),
|
|
1345
|
-
r(
|
|
1345
|
+
r(R, {
|
|
1346
1346
|
label: "Total Price",
|
|
1347
|
-
"model-value": e(
|
|
1347
|
+
"model-value": e(g),
|
|
1348
1348
|
disabled: !0
|
|
1349
1349
|
}, null, 8, ["model-value"]),
|
|
1350
|
-
V("div",
|
|
1351
|
-
V("div",
|
|
1352
|
-
V("div",
|
|
1353
|
-
V("div",
|
|
1354
|
-
r(
|
|
1350
|
+
V("div", ln, K(e(s)("connect.store.bundle.edit.bundleReward.title")), 1),
|
|
1351
|
+
V("div", sn, K(e(s)("connect.store.bundle.edit.bundleReward.description")), 1),
|
|
1352
|
+
V("div", rn, [
|
|
1353
|
+
V("div", dn, [
|
|
1354
|
+
r(ut, {
|
|
1355
1355
|
label: `Reward type: ${e(l).length == 0 ? "All" : e(l)[0].name}`
|
|
1356
1356
|
}, {
|
|
1357
1357
|
default: B(() => [
|
|
@@ -1364,20 +1364,20 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1364
1364
|
{
|
|
1365
1365
|
id: "type",
|
|
1366
1366
|
value: "VOUCHER",
|
|
1367
|
-
name: e(
|
|
1367
|
+
name: e(ye).VOUCHER.name
|
|
1368
1368
|
}
|
|
1369
1369
|
]),
|
|
1370
|
-
label: e(
|
|
1370
|
+
label: e(ye).VOUCHER.name
|
|
1371
1371
|
}, null, 8, ["label"]),
|
|
1372
1372
|
r(q, {
|
|
1373
1373
|
onClick: n[14] || (n[14] = (P) => l.value = [
|
|
1374
1374
|
{
|
|
1375
1375
|
id: "type",
|
|
1376
1376
|
value: "TITLE",
|
|
1377
|
-
name: e(
|
|
1377
|
+
name: e(ye).TITLE.name
|
|
1378
1378
|
}
|
|
1379
1379
|
]),
|
|
1380
|
-
label: e(
|
|
1380
|
+
label: e(ye).TITLE.name
|
|
1381
1381
|
}, null, 8, ["label"])
|
|
1382
1382
|
]),
|
|
1383
1383
|
_: 1
|
|
@@ -1392,14 +1392,14 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1392
1392
|
"row-data": e(w),
|
|
1393
1393
|
"hide-footer": e(w).length <= 10
|
|
1394
1394
|
}, null, 8, ["modelValue", "column-filter", "row-data", "hide-footer"]),
|
|
1395
|
-
r(
|
|
1396
|
-
text: e(X)(e(
|
|
1397
|
-
state: e(G)(e(
|
|
1395
|
+
r(f, {
|
|
1396
|
+
text: e(X)(e(u), "titles"),
|
|
1397
|
+
state: e(G)(e(u), "titles")
|
|
1398
1398
|
}, null, 8, ["text", "state"])
|
|
1399
1399
|
]),
|
|
1400
|
-
V("div",
|
|
1401
|
-
V("div",
|
|
1402
|
-
e(t).isFeedvibe ? E("", !0) : (
|
|
1400
|
+
V("div", un, K(e(s)("connect.store.bundle.edit.advanceSetting")), 1),
|
|
1401
|
+
V("div", cn, [
|
|
1402
|
+
e(t).isFeedvibe ? E("", !0) : (x(), D(Y, { key: 0 }, [
|
|
1403
1403
|
r(p, {
|
|
1404
1404
|
"model-value": e(t).internal ?? !1,
|
|
1405
1405
|
"onUpdate:modelValue": n[16] || (n[16] = (P) => e(t).internal = P),
|
|
@@ -1415,15 +1415,15 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1415
1415
|
sublabel: e(s)("connect.store.bundle.edit.hideInPosDescription")
|
|
1416
1416
|
}, null, 8, ["model-value", "label", "sublabel"])
|
|
1417
1417
|
], 64)),
|
|
1418
|
-
r(
|
|
1418
|
+
r(R, {
|
|
1419
1419
|
"model-value": ((De = (Ne = e(t).config) == null ? void 0 : Ne.options) == null ? void 0 : De.maxPerUser) || null,
|
|
1420
1420
|
"onUpdate:modelValue": n[18] || (n[18] = (P) => e(ae).set(e(t), "config.options.maxPerUser", P)),
|
|
1421
1421
|
label: e(s)("connect.store.bundle.edit.maxPerUser"),
|
|
1422
1422
|
"show-steppers": !1,
|
|
1423
1423
|
placeholder: e(s)("connect.store.bundle.edit.unlimited")
|
|
1424
1424
|
}, null, 8, ["model-value", "label", "placeholder"]),
|
|
1425
|
-
r(
|
|
1426
|
-
"model-value": ((
|
|
1425
|
+
r(R, {
|
|
1426
|
+
"model-value": ((Me = (Oe = e(t).config) == null ? void 0 : Oe.options) == null ? void 0 : Me.maxReceive) || null,
|
|
1427
1427
|
"onUpdate:modelValue": n[19] || (n[19] = (P) => e(ae).set(e(t), "config.options.maxReceive", P)),
|
|
1428
1428
|
label: e(s)("connect.store.bundle.edit.maxReceive"),
|
|
1429
1429
|
"show-steppers": !1,
|
|
@@ -1437,51 +1437,51 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1437
1437
|
}, 8, ["modelValue", "header"]);
|
|
1438
1438
|
};
|
|
1439
1439
|
}
|
|
1440
|
-
}),
|
|
1440
|
+
}), fn = { class: "flex gap-8 items-center flex-wrap" }, yn = { class: "flex items-center gap-8" }, bn = /* @__PURE__ */ te({
|
|
1441
1441
|
__name: "SendBundleSheet",
|
|
1442
1442
|
emits: ["success"],
|
|
1443
|
-
setup(
|
|
1444
|
-
const { minor:
|
|
1443
|
+
setup(C, { expose: S, emit: o }) {
|
|
1444
|
+
const { minor: b } = Ke, s = N(), v = N(""), a = N(""), m = N([]), i = N(!1), t = N();
|
|
1445
1445
|
N(!0);
|
|
1446
|
-
function
|
|
1447
|
-
i.value = !0, v.value = null,
|
|
1446
|
+
function c(w) {
|
|
1447
|
+
i.value = !0, v.value = null, a.value = "", s.value = w.bundle;
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function y() {
|
|
1450
1450
|
i.value = !1;
|
|
1451
1451
|
}
|
|
1452
|
-
async function
|
|
1453
|
-
const
|
|
1452
|
+
async function u(w) {
|
|
1453
|
+
const U = await bt.read({
|
|
1454
1454
|
limit: 25,
|
|
1455
1455
|
skip: 0,
|
|
1456
1456
|
sortBy: "_id",
|
|
1457
1457
|
search: w,
|
|
1458
1458
|
descending: !1
|
|
1459
1459
|
});
|
|
1460
|
-
|
|
1460
|
+
m.value = U.resources.map((j) => ({
|
|
1461
1461
|
label: `${j.name} (${j.phoneNumber})`,
|
|
1462
1462
|
value: j._id
|
|
1463
1463
|
})), await new Promise((j) => setTimeout(j, 100));
|
|
1464
1464
|
}
|
|
1465
1465
|
async function T() {
|
|
1466
1466
|
if (!s.value || !v.value) return;
|
|
1467
|
-
const w =
|
|
1467
|
+
const w = m.value.find(
|
|
1468
1468
|
(j) => j.value === v.value
|
|
1469
1469
|
);
|
|
1470
|
-
await
|
|
1470
|
+
await pe.confirm(
|
|
1471
1471
|
`Are you sure you want to send bundle ${s.value.name} to ${w == null ? void 0 : w.label}?`,
|
|
1472
1472
|
"Confirm",
|
|
1473
1473
|
"Confirm",
|
|
1474
1474
|
"Cancel"
|
|
1475
|
-
) && await
|
|
1475
|
+
) && await b(
|
|
1476
1476
|
async () => {
|
|
1477
1477
|
const j = {
|
|
1478
1478
|
bundle: s.value._id,
|
|
1479
1479
|
member: v.value,
|
|
1480
|
-
source:
|
|
1481
|
-
ref: `ADMIN:${(/* @__PURE__ */ new Date()).toISOString()}:${
|
|
1480
|
+
source: ot.enum.ADMIN,
|
|
1481
|
+
ref: `ADMIN:${(/* @__PURE__ */ new Date()).toISOString()}:${a.value}`,
|
|
1482
1482
|
withCoin: !1
|
|
1483
1483
|
};
|
|
1484
|
-
await ge.sendBundle(j),
|
|
1484
|
+
await ge.sendBundle(j), y();
|
|
1485
1485
|
},
|
|
1486
1486
|
{
|
|
1487
1487
|
message: "Sending bundle",
|
|
@@ -1490,44 +1490,44 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1490
1490
|
);
|
|
1491
1491
|
}
|
|
1492
1492
|
const l = L(() => {
|
|
1493
|
-
var
|
|
1493
|
+
var U, j, ne;
|
|
1494
1494
|
const w = [];
|
|
1495
|
-
return ((
|
|
1496
|
-
`${A.Config.getCountry().currency.symbol}${
|
|
1495
|
+
return ((U = s.value) == null ? void 0 : U.price.amount) > 0 && w.push(
|
|
1496
|
+
`${A.Config.getCountry().currency.symbol}${He((j = s.value) == null ? void 0 : j.price)}`
|
|
1497
1497
|
), (ne = s.value) != null && ne.coinPrice && w.push(`${s.value.coinPrice} point(s)`), w.join(" or ");
|
|
1498
1498
|
});
|
|
1499
1499
|
return S({
|
|
1500
|
-
showSheet:
|
|
1501
|
-
hideSheet:
|
|
1500
|
+
showSheet: c,
|
|
1501
|
+
hideSheet: y
|
|
1502
1502
|
}), he(async () => {
|
|
1503
|
-
await
|
|
1504
|
-
}), (w,
|
|
1505
|
-
const j = _("FmCardMedia"), ne = _("FmCardHeader"), Z = _("FmChip"), H = _("FmCardSection"), z = _("FmCard"), oe = _("FmSelect"), F = _("FmTextField"), ie = _("FmForm"),
|
|
1506
|
-
return
|
|
1503
|
+
await u("");
|
|
1504
|
+
}), (w, U) => {
|
|
1505
|
+
const j = _("FmCardMedia"), ne = _("FmCardHeader"), Z = _("FmChip"), H = _("FmCardSection"), z = _("FmCard"), oe = _("FmSelect"), F = _("FmTextField"), ie = _("FmForm"), g = _("FmButton"), k = _("FmSideSheet");
|
|
1506
|
+
return x(), O(k, {
|
|
1507
1507
|
"max-width": 560,
|
|
1508
1508
|
"dismiss-away": !0,
|
|
1509
1509
|
header: "Send bundle to member",
|
|
1510
1510
|
modelValue: e(i),
|
|
1511
1511
|
"onUpdate:modelValue": [
|
|
1512
|
-
|
|
1513
|
-
|
|
1512
|
+
U[4] || (U[4] = (h) => re(i) ? i.value = h : null),
|
|
1513
|
+
U[5] || (U[5] = (h) => i.value = h)
|
|
1514
1514
|
]
|
|
1515
1515
|
}, {
|
|
1516
1516
|
"side-sheet-footer": B(() => [
|
|
1517
|
-
V("div",
|
|
1518
|
-
r(
|
|
1517
|
+
V("div", yn, [
|
|
1518
|
+
r(g, {
|
|
1519
1519
|
label: "Send",
|
|
1520
|
-
loading: e(
|
|
1521
|
-
onClick:
|
|
1522
|
-
var
|
|
1523
|
-
return (
|
|
1520
|
+
loading: e(_e)().isLoading,
|
|
1521
|
+
onClick: U[2] || (U[2] = async () => {
|
|
1522
|
+
var h;
|
|
1523
|
+
return (h = e(t)) == null ? void 0 : h.validateInputs();
|
|
1524
1524
|
})
|
|
1525
1525
|
}, null, 8, ["loading"]),
|
|
1526
|
-
r(
|
|
1526
|
+
r(g, {
|
|
1527
1527
|
label: "Cancel",
|
|
1528
1528
|
type: "button",
|
|
1529
1529
|
variant: "tertiary",
|
|
1530
|
-
onClick:
|
|
1530
|
+
onClick: U[3] || (U[3] = (h) => i.value = !1)
|
|
1531
1531
|
})
|
|
1532
1532
|
])
|
|
1533
1533
|
]),
|
|
@@ -1546,40 +1546,40 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1546
1546
|
variant: "outlined"
|
|
1547
1547
|
}, {
|
|
1548
1548
|
default: B(() => {
|
|
1549
|
-
var
|
|
1549
|
+
var h, $;
|
|
1550
1550
|
return [
|
|
1551
|
-
(
|
|
1551
|
+
(h = e(s)) != null && h.image ? (x(), O(j, {
|
|
1552
1552
|
key: 0,
|
|
1553
1553
|
width: "100",
|
|
1554
|
-
src: (
|
|
1554
|
+
src: ($ = e(s)) == null ? void 0 : $.image
|
|
1555
1555
|
}, null, 8, ["src"])) : E("", !0),
|
|
1556
1556
|
r(H, { class: "flex flex-col gap-16 justify-between" }, {
|
|
1557
1557
|
default: B(() => {
|
|
1558
|
-
var
|
|
1558
|
+
var d;
|
|
1559
1559
|
return [
|
|
1560
1560
|
r(ne, {
|
|
1561
1561
|
class: "p-0",
|
|
1562
|
-
title: (
|
|
1562
|
+
title: (d = e(s)) == null ? void 0 : d.name,
|
|
1563
1563
|
subtitle: e(l)
|
|
1564
1564
|
}, null, 8, ["title", "subtitle"]),
|
|
1565
1565
|
r(H, { class: "p-0" }, {
|
|
1566
1566
|
default: B(() => {
|
|
1567
|
-
var n, p,
|
|
1567
|
+
var n, p, f, I, M, R, q, J, fe, Ce, de;
|
|
1568
1568
|
return [
|
|
1569
|
-
V("div",
|
|
1570
|
-
(n = e(s)) != null && n.isFeedvibe ? (
|
|
1569
|
+
V("div", fn, [
|
|
1570
|
+
(n = e(s)) != null && n.isFeedvibe ? (x(), O(Z, {
|
|
1571
1571
|
key: 0,
|
|
1572
1572
|
label: "Feedvibe"
|
|
1573
1573
|
})) : E("", !0),
|
|
1574
|
-
(
|
|
1574
|
+
(f = (p = e(s)) == null ? void 0 : p.titles) != null && f.length ? (x(), O(Z, {
|
|
1575
1575
|
key: 1,
|
|
1576
1576
|
label: `${e(s).titles.length} title(s)`
|
|
1577
1577
|
}, null, 8, ["label"])) : E("", !0),
|
|
1578
|
-
(
|
|
1578
|
+
(M = (I = e(s)) == null ? void 0 : I.vouchers) != null && M.length ? (x(), O(Z, {
|
|
1579
1579
|
key: 2,
|
|
1580
1580
|
label: `${e(s).vouchers.length} voucher(s)`
|
|
1581
1581
|
}, null, 8, ["label"])) : E("", !0),
|
|
1582
|
-
(q = (
|
|
1582
|
+
(q = (R = e(s)) == null ? void 0 : R.credit) != null && q.normal || (Ce = (fe = (J = e(s)) == null ? void 0 : J.credit) == null ? void 0 : fe.free) != null && Ce.amount ? (x(), O(Z, {
|
|
1583
1583
|
key: 3,
|
|
1584
1584
|
label: `${(e(s).credit.normal || 0) + (((de = e(s).credit.free) == null ? void 0 : de.amount) || 0)} credit(s)`
|
|
1585
1585
|
}, null, 8, ["label"])) : E("", !0)
|
|
@@ -1598,20 +1598,20 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1598
1598
|
}),
|
|
1599
1599
|
r(oe, {
|
|
1600
1600
|
modelValue: e(v),
|
|
1601
|
-
"onUpdate:modelValue":
|
|
1601
|
+
"onUpdate:modelValue": U[0] || (U[0] = (h) => re(v) ? v.value = h : null),
|
|
1602
1602
|
label: "Select member",
|
|
1603
1603
|
searchable: "",
|
|
1604
|
-
items: e(
|
|
1605
|
-
onSearch:
|
|
1606
|
-
rules: [(
|
|
1604
|
+
items: e(m),
|
|
1605
|
+
onSearch: u,
|
|
1606
|
+
rules: [(h) => !!h > 0 || "Member is required"],
|
|
1607
1607
|
"helper-text": "Type to search member"
|
|
1608
1608
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
1609
1609
|
r(F, {
|
|
1610
|
-
modelValue: e(
|
|
1611
|
-
"onUpdate:modelValue":
|
|
1610
|
+
modelValue: e(a),
|
|
1611
|
+
"onUpdate:modelValue": U[1] || (U[1] = (h) => re(a) ? a.value = h : null),
|
|
1612
1612
|
label: "Reference (optional)",
|
|
1613
1613
|
rules: [
|
|
1614
|
-
(
|
|
1614
|
+
(h) => h.length < 50 || "Reference must be less than 50 characters"
|
|
1615
1615
|
]
|
|
1616
1616
|
}, null, 8, ["modelValue", "rules"])
|
|
1617
1617
|
]),
|
|
@@ -1623,231 +1623,258 @@ const Zt = /* @__PURE__ */ te({
|
|
|
1623
1623
|
};
|
|
1624
1624
|
}
|
|
1625
1625
|
});
|
|
1626
|
-
|
|
1627
|
-
|
|
1626
|
+
async function Ee({
|
|
1627
|
+
hasStoreCompany: C,
|
|
1628
|
+
confirm: S,
|
|
1629
|
+
showSettingSheet: o
|
|
1630
|
+
}) {
|
|
1631
|
+
return C ? !0 : (await S() && o(!0), !1);
|
|
1632
|
+
}
|
|
1633
|
+
var gn = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
|
|
1634
|
+
const vn = { class: "px-24 flex flex-col gap-y-16" }, hn = { class: "flex gap-8 items-center" }, xn = { class: "fm-typo-en-body-lg-600" }, Cn = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, Sn = { class: "flex flex-col gap-16 text-center" }, _n = { class: "fm-typo-en-title-sm-800" }, Fn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, to = /* @__PURE__ */ te({
|
|
1628
1635
|
__name: "Store",
|
|
1629
|
-
setup(
|
|
1636
|
+
setup(C) {
|
|
1630
1637
|
const S = {
|
|
1631
1638
|
label: "Setup payout account",
|
|
1632
1639
|
value: "payout",
|
|
1633
1640
|
isPrimary: !1
|
|
1634
|
-
}, { t:
|
|
1635
|
-
label:
|
|
1641
|
+
}, { t: o } = xe(), b = {
|
|
1642
|
+
label: o("connect.store.actions.setting"),
|
|
1636
1643
|
value: "setting",
|
|
1637
1644
|
isPrimary: !1
|
|
1638
1645
|
}, s = {
|
|
1639
|
-
label:
|
|
1646
|
+
label: o("connect.store.actions.manageReward"),
|
|
1640
1647
|
value: "create_reward"
|
|
1641
1648
|
}, v = {
|
|
1642
|
-
label:
|
|
1649
|
+
label: o("connect.store.actions.addCategory"),
|
|
1643
1650
|
value: "create_category",
|
|
1644
1651
|
isPrimary: !0,
|
|
1645
1652
|
prependIcon: "add"
|
|
1646
|
-
},
|
|
1647
|
-
async function
|
|
1653
|
+
}, a = N(), m = gt(), i = Te(), { global: t, minor: c } = Ke, y = je(), u = L(() => i.sortedStoreCategories), T = L(() => i.sortedStoreCategories.map((g) => g.name)), l = N(), w = N();
|
|
1654
|
+
async function U(g) {
|
|
1648
1655
|
var k;
|
|
1649
|
-
|
|
1656
|
+
g === "setting" ? (k = l.value) == null || k.showSheet(!0, i.storeOption) : g === "create_category" ? H(-1) : g === "create_reward" ? await m.push({ name: lt["$connect-STORE_REWARDS"] }) : g == "payout" && window.open(gn.paymentPortalUrl, "_blank");
|
|
1650
1657
|
}
|
|
1651
|
-
function j(
|
|
1658
|
+
function j(g, k) {
|
|
1652
1659
|
var p;
|
|
1653
|
-
const
|
|
1654
|
-
console.log(
|
|
1655
|
-
const
|
|
1656
|
-
return
|
|
1660
|
+
const h = !!((p = k.company) != null && p.sstRegNo), $ = k.inclusiveTaxes ?? [], d = W.taxSystem.map((f) => f.code), n = h ? $.flatMap((f) => {
|
|
1661
|
+
console.log(f, "inclusive tax");
|
|
1662
|
+
const I = W.systemDefaultCode(f.systemCode);
|
|
1663
|
+
return I ? [{ systemCode: f.systemCode, taxCode: I.taxCode }] : [];
|
|
1657
1664
|
}) : [];
|
|
1658
1665
|
return console.log([
|
|
1659
|
-
["hasSstRegNo",
|
|
1666
|
+
["hasSstRegNo", h],
|
|
1660
1667
|
["defaultTaxCodes", n],
|
|
1661
|
-
["inclusiveTaxes",
|
|
1662
|
-
["taxSystemCodes",
|
|
1663
|
-
]),
|
|
1664
|
-
...
|
|
1665
|
-
bundles:
|
|
1666
|
-
const { pf_vouchers:
|
|
1667
|
-
if (!
|
|
1668
|
+
["inclusiveTaxes", $],
|
|
1669
|
+
["taxSystemCodes", d]
|
|
1670
|
+
]), g.map((f) => ({
|
|
1671
|
+
...f,
|
|
1672
|
+
bundles: f.bundles.map((I) => {
|
|
1673
|
+
const { pf_vouchers: M, ...R } = I;
|
|
1674
|
+
if (!h)
|
|
1668
1675
|
return {
|
|
1669
|
-
...
|
|
1676
|
+
...R,
|
|
1670
1677
|
taxes: [],
|
|
1671
1678
|
taxTotals: [],
|
|
1672
|
-
priceWithTaxes: { ...
|
|
1679
|
+
priceWithTaxes: { ...R.price }
|
|
1673
1680
|
};
|
|
1674
|
-
const q = n, J =
|
|
1681
|
+
const q = n, J = qe(
|
|
1675
1682
|
W.fullTax,
|
|
1676
1683
|
q,
|
|
1677
|
-
|
|
1678
|
-
Number(
|
|
1679
|
-
|
|
1680
|
-
|
|
1684
|
+
R.price,
|
|
1685
|
+
Number(R.credit.normal),
|
|
1686
|
+
$,
|
|
1687
|
+
d
|
|
1681
1688
|
);
|
|
1682
1689
|
return {
|
|
1683
|
-
...
|
|
1690
|
+
...R,
|
|
1684
1691
|
taxes: q,
|
|
1685
1692
|
taxTotals: J,
|
|
1686
|
-
priceWithTaxes:
|
|
1693
|
+
priceWithTaxes: We(
|
|
1687
1694
|
J,
|
|
1688
|
-
|
|
1689
|
-
|
|
1695
|
+
R.price,
|
|
1696
|
+
$
|
|
1690
1697
|
)
|
|
1691
1698
|
};
|
|
1692
1699
|
})
|
|
1693
1700
|
}));
|
|
1694
1701
|
}
|
|
1695
|
-
async function ne(
|
|
1696
|
-
const
|
|
1702
|
+
async function ne(g, k, h) {
|
|
1703
|
+
const $ = !h && !!k, d = !!h && !k;
|
|
1697
1704
|
let n;
|
|
1698
|
-
if (
|
|
1699
|
-
const
|
|
1700
|
-
n =
|
|
1701
|
-
taxCode:
|
|
1705
|
+
if ($) {
|
|
1706
|
+
const f = W.taxSystem[0] ? W.systemDefaultCode(W.taxSystem[0].code) : void 0, I = f ? `${f.name} (${f.taxCode})` : o("connect.store.taxPropagation.defaultTax");
|
|
1707
|
+
n = o("connect.store.taxPropagation.addConfirm", {
|
|
1708
|
+
taxCode: I
|
|
1702
1709
|
});
|
|
1703
|
-
} else
|
|
1704
|
-
await
|
|
1710
|
+
} else d ? n = o("connect.store.taxPropagation.removeConfirm") : n = o("connect.store.taxPropagation.updateConfirm");
|
|
1711
|
+
await pe.confirm(
|
|
1705
1712
|
n,
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
) && await
|
|
1713
|
+
o("connect.store.taxPropagation.title"),
|
|
1714
|
+
o("connect.store.taxPropagation.confirm"),
|
|
1715
|
+
o("connect.common.cancel")
|
|
1716
|
+
) && await c(
|
|
1710
1717
|
async () => {
|
|
1711
|
-
const
|
|
1712
|
-
await ge.updateStoreBundle({ categories:
|
|
1718
|
+
const f = Fe(i.sortedStoreCategories), I = j(f, g);
|
|
1719
|
+
await ge.updateStoreBundle({ categories: I }), await i.readMemberStore(), await i.readMembership(), await i.readRewards();
|
|
1713
1720
|
},
|
|
1714
1721
|
{
|
|
1715
|
-
message:
|
|
1716
|
-
successMessage:
|
|
1722
|
+
message: o("connect.store.taxPropagation.updating"),
|
|
1723
|
+
successMessage: o("connect.store.taxPropagation.success")
|
|
1717
1724
|
}
|
|
1718
1725
|
);
|
|
1719
1726
|
}
|
|
1720
|
-
async function Z(
|
|
1721
|
-
var
|
|
1722
|
-
const k = ((
|
|
1723
|
-
((
|
|
1724
|
-
),
|
|
1725
|
-
await
|
|
1727
|
+
async function Z(g) {
|
|
1728
|
+
var I, M, R, q;
|
|
1729
|
+
const k = ((M = (I = i.storeOption) == null ? void 0 : I.company) == null ? void 0 : M.sstRegNo) ?? "", h = ae.cloneDeep(
|
|
1730
|
+
((R = i.storeOption) == null ? void 0 : R.inclusiveTaxes) ?? []
|
|
1731
|
+
), $ = ((q = g.company) == null ? void 0 : q.sstRegNo) ?? "";
|
|
1732
|
+
await c(
|
|
1726
1733
|
async () => {
|
|
1727
1734
|
var J;
|
|
1728
|
-
await ge.updateStore(
|
|
1735
|
+
await ge.updateStore(g), await i.readMemberStore(), (J = l.value) == null || J.showSheet(!1);
|
|
1729
1736
|
},
|
|
1730
1737
|
{
|
|
1731
|
-
message:
|
|
1732
|
-
successMessage:
|
|
1738
|
+
message: o("connect.store.setting.update.message"),
|
|
1739
|
+
successMessage: o("connect.store.setting.update.success")
|
|
1733
1740
|
}
|
|
1734
1741
|
);
|
|
1735
|
-
const
|
|
1736
|
-
|
|
1737
|
-
|
|
1742
|
+
const d = k !== $, n = !ae.isEqual(
|
|
1743
|
+
h,
|
|
1744
|
+
g.inclusiveTaxes ?? []
|
|
1738
1745
|
);
|
|
1739
|
-
!(
|
|
1746
|
+
!(d || n) || i.sortedStoreCategories.flatMap(
|
|
1740
1747
|
(J) => J.bundles
|
|
1741
|
-
).length === 0 || await ne(
|
|
1748
|
+
).length === 0 || await ne(g, $, k);
|
|
1742
1749
|
}
|
|
1743
|
-
async function H(
|
|
1744
|
-
var
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1750
|
+
async function H(g = -1) {
|
|
1751
|
+
var h, $;
|
|
1752
|
+
await Ee({
|
|
1753
|
+
hasStoreCompany: !!((h = i.storeOption) != null && h.company),
|
|
1754
|
+
confirm: () => pe.confirm(
|
|
1755
|
+
o("connect.store.category.setup.title"),
|
|
1756
|
+
o("connect.store.category.setup.button"),
|
|
1757
|
+
o("connect.store.category.setup.action"),
|
|
1758
|
+
o("connect.common.cancel")
|
|
1759
|
+
),
|
|
1760
|
+
showSettingSheet: (d) => {
|
|
1761
|
+
var n;
|
|
1762
|
+
return (n = l.value) == null ? void 0 : n.showSheet(d);
|
|
1763
|
+
}
|
|
1764
|
+
}) && y.open({
|
|
1765
|
+
title: g == -1 ? o("connect.store.category.add") : o("connect.store.category.edit"),
|
|
1766
|
+
contentComponent: $t,
|
|
1755
1767
|
contentComponentProps: {
|
|
1756
|
-
initialValue: ((
|
|
1757
|
-
action:
|
|
1768
|
+
initialValue: (($ = u.value[g]) == null ? void 0 : $.name) ?? "",
|
|
1769
|
+
action: g == -1 ? "add" : "edit"
|
|
1758
1770
|
}
|
|
1759
|
-
}).onPrimary(async (
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
) || await
|
|
1771
|
+
}).onPrimary(async (d) => {
|
|
1772
|
+
d === null && !await pe.remove(
|
|
1773
|
+
o("connect.store.category.remove.confirm"),
|
|
1774
|
+
o("connect.store.category.remove.title")
|
|
1775
|
+
) || await c(
|
|
1764
1776
|
async () => {
|
|
1765
|
-
const
|
|
1777
|
+
const n = g == -1 ? [...u.value, { name: d, bundles: [] }] : [...u.value].map((p, f) => f == g ? { ...p, name: d } : p).filter((p) => p.name !== null);
|
|
1766
1778
|
await ge.updateStoreBundle({
|
|
1767
|
-
categories:
|
|
1779
|
+
categories: n
|
|
1768
1780
|
}), await i.readMemberStore();
|
|
1769
1781
|
},
|
|
1770
1782
|
{
|
|
1771
|
-
message:
|
|
1772
|
-
successMessage:
|
|
1783
|
+
message: d === null ? o("connect.store.category.update.deleting") : g == -1 ? o("connect.store.category.update.creating") : o("connect.store.category.update.updating"),
|
|
1784
|
+
successMessage: d === null ? o("connect.store.category.update.success.deleted") : g == -1 ? o("connect.store.category.update.success.created") : o("connect.store.category.update.success.updated")
|
|
1773
1785
|
}
|
|
1774
1786
|
);
|
|
1775
1787
|
});
|
|
1776
1788
|
}
|
|
1777
|
-
async function z(
|
|
1778
|
-
var p,
|
|
1779
|
-
k ?? (k = (p = w.value) == null ? void 0 : p.target.category),
|
|
1780
|
-
const
|
|
1781
|
-
for (const
|
|
1782
|
-
for (const
|
|
1783
|
-
console.log(
|
|
1784
|
-
k !=
|
|
1785
|
-
const n =
|
|
1789
|
+
async function z(g, k, h, $) {
|
|
1790
|
+
var p, f, I;
|
|
1791
|
+
k ?? (k = (p = w.value) == null ? void 0 : p.target.category), h ?? (h = (f = w.value) == null ? void 0 : f.target.index), $ ?? ($ = (I = w.value) == null ? void 0 : I.target.originalCategoryIndex);
|
|
1792
|
+
const d = Fe(u.value);
|
|
1793
|
+
for (const M of d)
|
|
1794
|
+
for (const R of M.bundles)
|
|
1795
|
+
console.log(R, "bundle in payload"), "pf_vouchers" in R && delete R.pf_vouchers;
|
|
1796
|
+
k != $ && $ != null && (d[$].bundles.splice(h, 1), h = d[k].bundles.length);
|
|
1797
|
+
const n = d[k];
|
|
1786
1798
|
if (!n) {
|
|
1787
|
-
|
|
1799
|
+
rt.error("Unexpected error", 2e3);
|
|
1788
1800
|
return;
|
|
1789
1801
|
}
|
|
1790
|
-
if (
|
|
1791
|
-
if (await
|
|
1792
|
-
|
|
1793
|
-
|
|
1802
|
+
if (g == null) {
|
|
1803
|
+
if (await pe.remove(
|
|
1804
|
+
o("connect.store.bundle.delete.confirm"),
|
|
1805
|
+
o("connect.store.bundle.delete.title")
|
|
1794
1806
|
) == !1)
|
|
1795
1807
|
return;
|
|
1796
|
-
n.bundles.splice(
|
|
1808
|
+
n.bundles.splice(h, 1);
|
|
1797
1809
|
} else
|
|
1798
|
-
|
|
1799
|
-
await
|
|
1810
|
+
h == -1 ? n.bundles.push(g) : n.bundles[h] = g;
|
|
1811
|
+
await c(
|
|
1800
1812
|
async () => {
|
|
1801
|
-
var
|
|
1802
|
-
if (
|
|
1803
|
-
const q = (
|
|
1804
|
-
q === null &&
|
|
1813
|
+
var M, R;
|
|
1814
|
+
if (g != null) {
|
|
1815
|
+
const q = (M = w.value) == null ? void 0 : M.bundleImage;
|
|
1816
|
+
q === null && g.image ? (await Ve.delete(g.image), g.image = null) : q && (g.image = await Ve.update(
|
|
1805
1817
|
Ve.bundleImagePath(void 0, q),
|
|
1806
1818
|
q
|
|
1807
1819
|
));
|
|
1808
1820
|
}
|
|
1809
1821
|
await ge.updateStoreBundle({
|
|
1810
|
-
categories:
|
|
1811
|
-
}), await i.readMemberStore(), await i.readMembership(), await i.readRewards(), (
|
|
1822
|
+
categories: d
|
|
1823
|
+
}), await i.readMemberStore(), await i.readMembership(), await i.readRewards(), (R = w.value) == null || R.showSheet(!1);
|
|
1812
1824
|
},
|
|
1813
1825
|
{
|
|
1814
|
-
message: `${
|
|
1815
|
-
successMessage: `Bundle ${
|
|
1826
|
+
message: `${g == null ? "Deleting" : h == -1 ? "Creating" : "Updating"} bundle`,
|
|
1827
|
+
successMessage: `Bundle ${g == null ? "deleted" : h == -1 ? "created" : "updated"} successfully`
|
|
1816
1828
|
}
|
|
1817
1829
|
);
|
|
1818
1830
|
}
|
|
1819
|
-
function oe(
|
|
1831
|
+
function oe(g) {
|
|
1820
1832
|
var k;
|
|
1821
|
-
(
|
|
1822
|
-
|
|
1823
|
-
|
|
1833
|
+
Ee({
|
|
1834
|
+
hasStoreCompany: !!((k = i.storeOption) != null && k.company),
|
|
1835
|
+
confirm: () => pe.confirm(
|
|
1836
|
+
o("connect.store.category.setup.title"),
|
|
1837
|
+
o("connect.store.category.setup.button"),
|
|
1838
|
+
o("connect.store.category.setup.action"),
|
|
1839
|
+
o("connect.common.cancel")
|
|
1840
|
+
),
|
|
1841
|
+
showSettingSheet: (h) => {
|
|
1842
|
+
var $;
|
|
1843
|
+
return ($ = l.value) == null ? void 0 : $.showSheet(h);
|
|
1844
|
+
}
|
|
1845
|
+
}).then((h) => {
|
|
1846
|
+
var $;
|
|
1847
|
+
h && (($ = w.value) == null || $.showSheet(!0, {
|
|
1848
|
+
...g,
|
|
1849
|
+
bundle: g.bundle ? Fe(g.bundle) : void 0
|
|
1850
|
+
}));
|
|
1824
1851
|
});
|
|
1825
1852
|
}
|
|
1826
1853
|
const F = N([]);
|
|
1827
|
-
function ie(
|
|
1854
|
+
function ie(g) {
|
|
1828
1855
|
var k;
|
|
1829
|
-
(k =
|
|
1830
|
-
bundle:
|
|
1856
|
+
(k = a.value) == null || k.showSheet({
|
|
1857
|
+
bundle: g
|
|
1831
1858
|
});
|
|
1832
1859
|
}
|
|
1833
1860
|
return he(async () => {
|
|
1834
|
-
var k,
|
|
1861
|
+
var k, h;
|
|
1835
1862
|
await t(async () => {
|
|
1836
|
-
var
|
|
1837
|
-
if (await i.readMemberStore(), await i.readMembership(), await i.readRewards(), await i.readPayoutAccount(), (
|
|
1838
|
-
switch ((
|
|
1863
|
+
var $, d;
|
|
1864
|
+
if (await i.readMemberStore(), await i.readMembership(), await i.readRewards(), await i.readPayoutAccount(), ($ = m.currentRoute.value.query) != null && $.action) {
|
|
1865
|
+
switch ((d = m.currentRoute.value.query) == null ? void 0 : d.action) {
|
|
1839
1866
|
case "update_setting":
|
|
1840
|
-
|
|
1867
|
+
U("setting");
|
|
1841
1868
|
break;
|
|
1842
1869
|
case "create_category":
|
|
1843
1870
|
H(-1);
|
|
1844
1871
|
break;
|
|
1845
1872
|
case "create_feedvibe_bundle":
|
|
1846
|
-
|
|
1873
|
+
y.open({
|
|
1847
1874
|
title: "Select category",
|
|
1848
|
-
contentComponent:
|
|
1875
|
+
contentComponent: It
|
|
1849
1876
|
}).onPrimary((n) => {
|
|
1850
|
-
|
|
1877
|
+
y.close(), oe({
|
|
1851
1878
|
categories: T.value,
|
|
1852
1879
|
category: n,
|
|
1853
1880
|
index: -1,
|
|
@@ -1860,58 +1887,58 @@ const gn = { class: "px-24 flex flex-col gap-y-16" }, vn = { class: "flex gap-8
|
|
|
1860
1887
|
}).toObject()
|
|
1861
1888
|
}
|
|
1862
1889
|
});
|
|
1863
|
-
}).onTertiary(() =>
|
|
1890
|
+
}).onTertiary(() => y.close());
|
|
1864
1891
|
break;
|
|
1865
1892
|
}
|
|
1866
|
-
|
|
1893
|
+
m.replace({ query: {} });
|
|
1867
1894
|
}
|
|
1868
1895
|
});
|
|
1869
|
-
const
|
|
1896
|
+
const g = ((k = i.payoutAccount) == null ? void 0 : k.status) === "APPROVED" && ((h = i.payoutAccount) == null ? void 0 : h.enable) === !0;
|
|
1870
1897
|
F.value = [
|
|
1871
|
-
...
|
|
1872
|
-
|
|
1898
|
+
...g ? [] : [S],
|
|
1899
|
+
b,
|
|
1873
1900
|
s,
|
|
1874
1901
|
v
|
|
1875
1902
|
];
|
|
1876
|
-
}), (
|
|
1877
|
-
const
|
|
1878
|
-
return
|
|
1879
|
-
r(
|
|
1880
|
-
title: e(
|
|
1903
|
+
}), (g, k) => {
|
|
1904
|
+
const h = _("FmPageHead"), $ = _("FmButton"), d = _("FmCard");
|
|
1905
|
+
return x(), D(Y, null, [
|
|
1906
|
+
r(h, {
|
|
1907
|
+
title: e(o)("connect.store.title"),
|
|
1881
1908
|
actions: e(F),
|
|
1882
|
-
"onClick:action":
|
|
1909
|
+
"onClick:action": U
|
|
1883
1910
|
}, null, 8, ["title", "actions"]),
|
|
1884
|
-
V("div",
|
|
1885
|
-
e(
|
|
1886
|
-
(
|
|
1911
|
+
V("div", vn, [
|
|
1912
|
+
e(u) && e(u).length > 0 ? (x(), D(Y, { key: 0 }, [
|
|
1913
|
+
(x(!0), D(Y, null, ce(e(u), (n, p) => (x(), D("div", {
|
|
1887
1914
|
key: n.name,
|
|
1888
1915
|
class: "space-y-8 py-12"
|
|
1889
1916
|
}, [
|
|
1890
|
-
V("div",
|
|
1891
|
-
V("div",
|
|
1917
|
+
V("div", hn, [
|
|
1918
|
+
V("div", xn, K(n.name), 1),
|
|
1892
1919
|
r(ke, { json: n }, null, 8, ["json"]),
|
|
1893
|
-
r(
|
|
1920
|
+
r($, {
|
|
1894
1921
|
icon: "edit",
|
|
1895
1922
|
size: "md",
|
|
1896
1923
|
variant: "tertiary",
|
|
1897
|
-
onClick: (
|
|
1924
|
+
onClick: (f) => H(p)
|
|
1898
1925
|
}, null, 8, ["onClick"])
|
|
1899
1926
|
]),
|
|
1900
|
-
V("div",
|
|
1901
|
-
(
|
|
1902
|
-
bundle:
|
|
1903
|
-
key:
|
|
1904
|
-
onEdit: (
|
|
1905
|
-
bundle:
|
|
1927
|
+
V("div", Cn, [
|
|
1928
|
+
(x(!0), D(Y, null, ce(n.bundles, (f, I) => (x(), O(Vt, {
|
|
1929
|
+
bundle: f,
|
|
1930
|
+
key: f._id,
|
|
1931
|
+
onEdit: (M) => oe({
|
|
1932
|
+
bundle: f,
|
|
1906
1933
|
category: p,
|
|
1907
|
-
index:
|
|
1934
|
+
index: I,
|
|
1908
1935
|
categories: e(T)
|
|
1909
1936
|
}),
|
|
1910
|
-
onDelete: (
|
|
1937
|
+
onDelete: (M) => z(null, p, I),
|
|
1911
1938
|
onSend: ie
|
|
1912
1939
|
}, null, 8, ["bundle", "onEdit", "onDelete"]))), 128)),
|
|
1913
|
-
r(
|
|
1914
|
-
onCreate: (
|
|
1940
|
+
r(wt, {
|
|
1941
|
+
onCreate: (f) => oe({
|
|
1915
1942
|
category: p,
|
|
1916
1943
|
index: -1,
|
|
1917
1944
|
categories: e(T)
|
|
@@ -1919,42 +1946,42 @@ const gn = { class: "px-24 flex flex-col gap-y-16" }, vn = { class: "flex gap-8
|
|
|
1919
1946
|
}, null, 8, ["onCreate"])
|
|
1920
1947
|
])
|
|
1921
1948
|
]))), 128)),
|
|
1922
|
-
r(
|
|
1949
|
+
r(pn, {
|
|
1923
1950
|
ref_key: "bundleSheetRef",
|
|
1924
1951
|
ref: w,
|
|
1925
1952
|
onUpdate: z
|
|
1926
1953
|
}, null, 512)
|
|
1927
|
-
], 64)) : (
|
|
1954
|
+
], 64)) : (x(), O(d, {
|
|
1928
1955
|
key: 1,
|
|
1929
1956
|
variant: "outlined",
|
|
1930
1957
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
1931
1958
|
}, {
|
|
1932
1959
|
default: B(() => [
|
|
1933
1960
|
k[1] || (k[1] = V("img", {
|
|
1934
|
-
src:
|
|
1961
|
+
src: Xe,
|
|
1935
1962
|
class: "aspect-square w-[150px]"
|
|
1936
1963
|
}, null, -1)),
|
|
1937
|
-
V("div",
|
|
1938
|
-
V("div", _n, K(e(
|
|
1939
|
-
V("div",
|
|
1964
|
+
V("div", Sn, [
|
|
1965
|
+
V("div", _n, K(e(o)("connect.store.bundle.title")), 1),
|
|
1966
|
+
V("div", Fn, K(e(o)("connect.store.bundle.description")), 1)
|
|
1940
1967
|
]),
|
|
1941
|
-
r(
|
|
1968
|
+
r($, {
|
|
1942
1969
|
variant: "primary",
|
|
1943
|
-
label: e(
|
|
1970
|
+
label: e(o)("connect.store.actions.addCategory"),
|
|
1944
1971
|
icon: "add",
|
|
1945
1972
|
onClick: k[0] || (k[0] = (n) => H(-1))
|
|
1946
1973
|
}, null, 8, ["label"])
|
|
1947
1974
|
]),
|
|
1948
1975
|
_: 1
|
|
1949
1976
|
})),
|
|
1950
|
-
r(
|
|
1977
|
+
r(Xt, {
|
|
1951
1978
|
ref_key: "settingSheetRef",
|
|
1952
1979
|
ref: l,
|
|
1953
1980
|
onUpdate: Z
|
|
1954
1981
|
}, null, 512),
|
|
1955
|
-
r(
|
|
1982
|
+
r(bn, {
|
|
1956
1983
|
ref_key: "sendBundleSheetRef",
|
|
1957
|
-
ref:
|
|
1984
|
+
ref: a
|
|
1958
1985
|
}, null, 512)
|
|
1959
1986
|
])
|
|
1960
1987
|
], 64);
|
|
@@ -1962,5 +1989,5 @@ const gn = { class: "px-24 flex flex-col gap-y-16" }, vn = { class: "flex gap-8
|
|
|
1962
1989
|
}
|
|
1963
1990
|
});
|
|
1964
1991
|
export {
|
|
1965
|
-
|
|
1992
|
+
to as default
|
|
1966
1993
|
};
|