@feedmepos/mf-connect 0.1.98-beta.52 → 0.1.98-beta.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-C9-lD2Hw.js → App-GVbZXaOb.js} +8 -8
- package/dist/{AuditLogs-mVSa1e2d.js → AuditLogs-COC3VF6K.js} +10 -10
- package/dist/{Bin-CHSDqvyp.js → Bin-BqN1F26B.js} +8 -8
- package/dist/{Broadcast-BUEwwGv8.js → Broadcast-BXP5eA1_.js} +11 -11
- package/dist/{CampaignAnalytic-D_qHmP-j.js → CampaignAnalytic-B3Vm1qDu.js} +6 -6
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DEzM1EH8.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CkX0_HxH.js} +7 -7
- package/dist/Card-UnclF25U.js +1084 -0
- package/dist/{Collections-CERrTLRX.js → Collections-DjrrHxTV.js} +8 -8
- package/dist/{Credit-JxLtbWS-.js → Credit-DoDJIxEC.js} +12 -12
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DKIxsZIb.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BM_btYhW.js} +34 -34
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Bu486h20.js → EffectSheet.vue_vue_type_style_index_0_lang-ftrIH_p9.js} +6 -6
- package/dist/{Experience-C-9zbUbV.js → Experience-Dr2Arehy.js} +12 -12
- package/dist/{FileSaver.min-B4bNs8iH.js → FileSaver.min-D9YchN9l.js} +1 -1
- package/dist/{Game-BYV8NF0m.js → Game-3dq-RL7M.js} +13 -13
- package/dist/{GiftCardSetup-CJi_--PA.js → GiftCardSetup-DD1r4qll.js} +9 -9
- package/dist/{Grab-Bgm7CS6o.js → Grab-Ca0WiQpm.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CuC8sOKH.js → ImageInput.vue_vue_type_script_setup_true_lang-D66OFyD2.js} +1 -1
- package/dist/{Index-sjstmJ91.js → Index-8kZCkUM2.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Dk1_IA4x.js → LocationPicker.vue_vue_type_script_setup_true_lang-CUCAO-YP.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-1COn62uz.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Cggoq2NY.js} +1 -1
- package/dist/{LoyaltyDashboard-D6d8uvqc.js → LoyaltyDashboard-DT-hdzf3.js} +10 -10
- package/dist/{MainLayout-JJUJwFTJ.js → MainLayout-7w0y1egK.js} +3 -3
- package/dist/{Marketing-DRCAImhs.js → Marketing-DPJc-3ff.js} +4 -4
- package/dist/{MarketingMaterialEdit-KiR6qhk6.js → MarketingMaterialEdit-D-hqhuMF.js} +6 -6
- package/dist/{Member-RbLwG_XD.js → Member-CkRqgHe4.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-CKuNtryb.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dl8u5fl6.js} +23 -23
- package/dist/{MemberImportHistory-CSMmUYaF.js → MemberImportHistory-DAQ65F9g.js} +7 -7
- package/dist/{MemberList-CKe9oSOX.js → MemberList-D5FzPL99.js} +14 -14
- package/dist/{MemberTransactions-Cz9oW1ZB.js → MemberTransactions-DZaibYxC.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Czt1s9hi.js → MessageInput.vue_vue_type_script_setup_true_lang-6xakpZEo.js} +10 -10
- package/dist/{Mission-PgkkwDkY.js → Mission-PXCFl4e-.js} +13 -13
- package/dist/{Overview-BiQvzE6U.js → Overview-BOlwqxBU.js} +19 -19
- package/dist/{Overview-kvJ0MdN-.js → Overview-CcDElaj4.js} +3 -3
- package/dist/{Point-q1JBP2YV.js → Point-CDSO_YG3.js} +12 -12
- package/dist/{Promotion-D4mlfhUW.js → Promotion-DVw7hepB.js} +13 -13
- package/dist/{Queue-C073ieg_.js → Queue-DUb4qqpc.js} +11 -11
- package/dist/{Record-BzrKG6WO.js → Record-r2Bj4Y-2.js} +9 -9
- package/dist/{Review-Ddzsk4S5.js → Review-D5sC1CpN.js} +2 -2
- package/dist/{ReviewFacebookCallback-B85JCrQU.js → ReviewFacebookCallback-C-pIS4uj.js} +5 -5
- package/dist/{ReviewGoogleCallback-DdK3pD4V.js → ReviewGoogleCallback-wKBmFpBe.js} +5 -5
- package/dist/{Reward-CG9HGB8d.js → Reward-eY6C0L7i.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BSv9kF2a.js → RewardGroup.vue_vue_type_script_setup_true_lang-CEXYfR09.js} +12 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CpUO-nFy.js → RuleGroup.vue_vue_type_script_setup_true_lang-ifUAqLwG.js} +15 -15
- package/dist/{Segment-V_LOxVT5.js → Segment-CKXmFk6Q.js} +25 -25
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CrscmyI5.js → SelectItems.vue_vue_type_script_setup_true_lang-DD7KLdTt.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DEg68hNO.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bl3KaAjj.js} +13 -13
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BFlPOyFp.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-tpcHzd48.js} +4 -4
- package/dist/{Setting-DHop8c8g.js → Setting-K-x016Eq.js} +14 -14
- package/dist/{SettingAdvertisements-YHMTZE3J.js → SettingAdvertisements-BGznpHIH.js} +12 -12
- package/dist/{Settings-BCaNCpJT.js → Settings-CrPLvP2-.js} +5 -5
- package/dist/{Store-Cs_8_ngC.js → Store-PbvFQ03o.js} +219 -222
- package/dist/{StoreRewards-DFoUaW2a.js → StoreRewards-pYNbeyOQ.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C5YoHPxm.js +1329 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D5O5DKbh.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DOyli0Kj.js} +2 -2
- package/dist/{Tier-BmQh3fVh.js → Tier-BHlyTQfq.js} +25 -25
- package/dist/{Title-UT4g--1-.js → Title-CSuSHz1O.js} +22 -22
- package/dist/{Transaction-ESFus2Ol.js → Transaction-bKcfOmz1.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BGh_tZBk.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C6Pb93cp.js} +6 -6
- package/dist/{Voucher-DZL9Fdg9.js → Voucher-D_zf4aRU.js} +14 -14
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BAQ9jtAM.js → VoucherEditor.vue_vue_type_script_setup_true_lang-D1VBWUFD.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DYQUgY-k.js → ZodTextField.vue_vue_type_script_setup_true_lang-CRz6uhOz.js} +2 -2
- package/dist/{app-C38mcv88.js → app-DsVK_Z9F.js} +92 -67
- package/dist/app.js +1 -1
- package/dist/base.export-wsjx1b1F.js +75 -0
- package/dist/{business-2oH_ru_8.js → business-emEflb7G.js} +1 -1
- package/dist/{campaign-CMZqifqP.js → campaign-CH1zEmK_.js} +8 -8
- package/dist/{campaign-Bjso0Xy2.js → campaign-CczdPZEx.js} +2 -2
- package/dist/{campaign.enum-Y6SY-diZ.js → campaign.enum-jb40hQyq.js} +1 -1
- package/dist/{campaign.fn-FdFgkYSj.js → campaign.fn-ZvIMg3Jv.js} +125 -125
- package/dist/{collectible.enum-MBCR_vBG.js → collectible.enum-Q0sMqRej.js} +1 -1
- package/dist/{collection.fn-BXNobS3V.js → collection.fn-CpOJTvnW.js} +2 -2
- package/dist/currency-nVkRZfQp.js +7 -0
- package/dist/{duplicateCampaign-XPBqYkWX.js → duplicateCampaign-DszCNBjZ.js} +2 -2
- package/dist/{effect-DIBdj1V2.js → effect-De3cFxjA.js} +1 -1
- package/dist/{email-addresses-DV4VUh2g.js → email-addresses-BENEAxtQ.js} +2 -2
- package/dist/{helper-aWWZOhk-.js → helper-DjTmaBve.js} +1 -1
- package/dist/{index-DVA1kIwN.js → index-B-GBUWJi.js} +47 -46
- package/dist/{index-Pz3KsQfw.js → index-BEU1eux8.js} +1 -1
- package/dist/{index-CHhk4SQx.js → index-BH4TDRw4.js} +2 -2
- package/dist/{index-DlzhY2Gz.js → index-BMQVCeHN.js} +7 -7
- package/dist/{index-BGZVdX7n.js → index-BanLR_f4.js} +2 -2
- package/dist/{index-DafINJH8.js → index-Bj_LrRir.js} +1 -1
- package/dist/{index-DbULfnV3.js → index-BlsV0pDI.js} +7 -7
- package/dist/{index-WVDXkuyC.js → index-BxRbdJOU.js} +1 -1
- package/dist/{index-Dps3MKMS.js → index-CKfVSZcR.js} +2 -2
- package/dist/{index-BDxwnonR.js → index-DEtIu7G-.js} +3 -3
- package/dist/{index-C567s8tj.js → index-DlAwtfWQ.js} +3 -3
- package/dist/{index-HQFexw0Z.js → index-DrSpG2nV.js} +1 -1
- package/dist/{index-CeXhFaZg.js → index-DsviWEPT.js} +5 -5
- package/dist/{index-CueUIXPn.js → index-P2yevS6i.js} +1 -1
- package/dist/{index-WXnNDUyq.js → index-Wd_vLVMH.js} +3 -3
- package/dist/{index-DfXU3JsN.js → index-fl12LmlG.js} +1 -1
- package/dist/{index-BW0_NNEE.js → index-p0RFjPyp.js} +1 -1
- package/dist/{index-Br-UT1ir.js → index-vV9W0EhO.js} +1 -1
- package/dist/{index.esm2017-D9a8Ow55.js → index.esm2017-C-k-2kM3.js} +1 -1
- package/dist/{loading-C5r1cx-_.js → loading-TBGTHWt0.js} +1 -1
- package/dist/{lodash-BbPpFjHe.js → lodash-qQ2ie1zb.js} +1 -1
- package/dist/{member-import-CftPgU92.js → member-import-B_sizua-.js} +1 -1
- package/dist/{membership-C7KQ-KXT.js → membership-DJIuI4sn.js} +3 -3
- package/dist/{money-CxcffdSc.js → money-BOnCYNt8.js} +1 -1
- package/dist/{number-Cqd6VhtH.js → number-GrW7Sgoo.js} +1 -1
- package/dist/{objectid-CpTyDbom.js → objectid-DPTR7IEN.js} +12 -12
- package/dist/{plugins-BO66KEQi.js → plugins-D80BsQ8l.js} +3 -3
- package/dist/{reward-D369xt9c.js → reward-ByHQgT7i.js} +1 -1
- package/dist/{rule-Dc83EYyn.js → rule-Djn2x0ov.js} +3 -3
- package/dist/{rule-builder-CFK1__-e.js → rule-builder-Dp6YiO8-.js} +1 -1
- package/dist/{template-voSvaSNk.js → template-CR7fSIew.js} +6 -6
- package/dist/{timezone-DMQW1WZ5.js → timezone-BQH2AZ_H.js} +1 -1
- package/dist/{transaction.fn-BoPRNLs9.js → transaction.fn-sp8FkkYr.js} +1 -1
- package/dist/{trigger-D2uZtisI.js → trigger-Y9ted5Uv.js} +5 -5
- package/dist/{useMarketingMaterialActions-Cfc1aeg0.js → useMarketingMaterialActions-jZ3QuyxF.js} +3 -3
- package/dist/{usePagination-D6tENEun.js → usePagination-pzo4ADvP.js} +1 -1
- package/dist/{user-lQkrcDz7.js → user-BtkZFzFm.js} +1 -1
- package/dist/{vue-i18n-3ow1X-2g.js → vue-i18n-DHFwvj0q.js} +391 -391
- package/dist/{xlsx-BtLSi0cI.js → xlsx-BWsO-8j5.js} +1 -1
- package/dist/{zod-BkZnH28K.js → zod-BMKVB5Fl.js} +1 -1
- package/package.json +1 -1
- package/dist/Card-Bzbm3-sW.js +0 -1060
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-gK0o53mY.js +0 -1075
- package/dist/export-DWSRMvQd.js +0 -97
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { defineComponent as X, computed as
|
|
1
|
+
import { defineComponent as X, computed as E, resolveComponent as v, openBlock as m, createBlock as R, withCtx as I, createElementVNode as n, toDisplayString as F, createVNode as i, createCommentVNode as M, createElementBlock as T, unref as e, Fragment as W, renderList as de, ref as O, isRef as ve, reactive as at, onMounted as De, watch as He, toRaw as st, createTextVNode as le, h as lt, normalizeStyle as Qe, normalizeClass as $e } from "vue";
|
|
2
2
|
import { _ as it } from "./tier-BJDhpH6X.js";
|
|
3
3
|
import { useDialog as ze, useDialogChild as We, components as rt } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as
|
|
5
|
-
import { u as et } from "./loading-
|
|
6
|
-
import { u as Ye, C as Te } from "./membership-
|
|
7
|
-
import { j as ct, k as dt, l as ut, m as Xe, n as mt, o as pt } from "./index-
|
|
4
|
+
import { c as K, e as Me, S as Ge } from "./index-BH4TDRw4.js";
|
|
5
|
+
import { u as et } from "./loading-TBGTHWt0.js";
|
|
6
|
+
import { u as Ye, C as Te } from "./membership-DJIuI4sn.js";
|
|
7
|
+
import { j as ct, k as dt, l as ut, m as Xe, n as mt, o as pt } from "./index-B-GBUWJi.js";
|
|
8
8
|
import { a as ft, c as Ae } from "./object-BYyQ0PZp.js";
|
|
9
|
-
import { _ as pe } from "./lodash-
|
|
10
|
-
import { c as Ce } from "./index-
|
|
11
|
-
import { u as he } from "./vue-i18n-
|
|
12
|
-
import { Z as re, g as ae, a as se } from "./zod-
|
|
13
|
-
import { z as ce, R as Oe } from "./app-
|
|
9
|
+
import { _ as pe } from "./lodash-qQ2ie1zb.js";
|
|
10
|
+
import { c as Ce } from "./index-DEtIu7G-.js";
|
|
11
|
+
import { u as he } from "./vue-i18n-DHFwvj0q.js";
|
|
12
|
+
import { Z as re, g as ae, a as se } from "./zod-BMKVB5Fl.js";
|
|
13
|
+
import { z as ce, R as Oe } from "./app-DsVK_Z9F.js";
|
|
14
14
|
import { u as Le } from "./app-wDQR6dpb.js";
|
|
15
|
-
import { _ as ge } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { c as yt, p as Ie, n as gt, f as je } from "./plugins-
|
|
15
|
+
import { _ as ge } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CRz6uhOz.js";
|
|
16
|
+
import { c as yt, p as Ie, n as gt, f as je } from "./plugins-D80BsQ8l.js";
|
|
17
17
|
import { J as Je } from "./JsonViewer-v8_C7l5N.js";
|
|
18
|
-
import { _ as bt } from "./index-
|
|
19
|
-
import { _ as vt } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
18
|
+
import { _ as bt } from "./index-Wd_vLVMH.js";
|
|
19
|
+
import { _ as vt } from "./ImageInput.vue_vue_type_script_setup_true_lang-D66OFyD2.js";
|
|
20
20
|
import { _ as ht } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
21
|
-
import { z as xt, a as _t } from "./money-
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import "./
|
|
25
|
-
import "./index-
|
|
26
|
-
import "./index-
|
|
27
|
-
import "./index-
|
|
28
|
-
import
|
|
29
|
-
import { m as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
21
|
+
import { z as xt, a as _t } from "./money-BOnCYNt8.js";
|
|
22
|
+
import { f as Ct } from "./currency-nVkRZfQp.js";
|
|
23
|
+
import { F as St } from "./number-GrW7Sgoo.js";
|
|
24
|
+
import { a as Ft, t as wt } from "./helper-DjTmaBve.js";
|
|
25
|
+
import "./index-DrSpG2nV.js";
|
|
26
|
+
import "./index-BMQVCeHN.js";
|
|
27
|
+
import "./index-DsviWEPT.js";
|
|
28
|
+
import "./index-DlAwtfWQ.js";
|
|
29
|
+
import { m as $t } from "./index-CKfVSZcR.js";
|
|
30
|
+
import { m as Ue } from "./index-P2yevS6i.js";
|
|
31
|
+
import { g as qe } from "./index-vV9W0EhO.js";
|
|
32
|
+
import { u as kt } from "./business-emEflb7G.js";
|
|
33
|
+
import { useRouter as Pt } from "vue-router";
|
|
33
34
|
function tt(b) {
|
|
34
35
|
return Ce.DineroFactory(b).toUnit();
|
|
35
36
|
}
|
|
@@ -93,22 +94,22 @@ function nt(b, a, c) {
|
|
|
93
94
|
return (h = c.find((o) => o.systemCode === d.systemCode)) != null && h.inclusive || (g = Ce.DineroFactory(g.toObject()).add(d.total)), g;
|
|
94
95
|
}, Ce.DineroFactory(a)).toObject() : Ce.DineroFactory(a).toObject();
|
|
95
96
|
}
|
|
96
|
-
const
|
|
97
|
+
const Vt = { class: "flex justify-between items-start gap-4 w-full" }, Tt = { class: "fm-typo-en-body-lg-600 text-left pt-4 break-words line-clamp-2" }, Rt = { class: "flex-shrink-0 -mr-8 -mt-8" }, It = { class: "relative h-[120px] aspect-video flex mx-auto items-center justify-center border rounded-md border-fm-color-neutral-gray-300" }, Ut = ["src"], Et = {
|
|
97
98
|
key: 2,
|
|
98
99
|
class: "absolute top-2 left-2"
|
|
99
|
-
}, Dt = { class: "flex flex-col gap-8 flex-1 text-left w-full" },
|
|
100
|
+
}, Dt = { class: "flex flex-col gap-8 flex-1 text-left w-full" }, Bt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Nt = { class: "flex gap-8 items-center flex-wrap" }, Mt = /* @__PURE__ */ X({
|
|
100
101
|
__name: "StoreBundleCard",
|
|
101
102
|
props: {
|
|
102
103
|
bundle: { type: Object, required: !0 }
|
|
103
104
|
},
|
|
104
105
|
emits: ["edit", "delete", "send"],
|
|
105
106
|
setup(b, { emit: a }) {
|
|
106
|
-
const c = b, g = a, d =
|
|
107
|
+
const c = b, g = a, d = E(() => {
|
|
107
108
|
const o = [];
|
|
108
109
|
return c.bundle.price.amount > 0 && o.push(
|
|
109
|
-
`${
|
|
110
|
+
`${K.Config.getCountry().currency.symbol}${tt(c.bundle.price)}`
|
|
110
111
|
), c.bundle.coinPrice && o.push(`${c.bundle.coinPrice} point(s)`), o.join(" or ");
|
|
111
|
-
}), h =
|
|
112
|
+
}), h = E(() => {
|
|
112
113
|
var l, f;
|
|
113
114
|
const o = [];
|
|
114
115
|
if (c.bundle.titles.length > 0 && o.push(`${c.bundle.titles.length} title(s)`), c.bundle.vouchers.length > 0 && o.push(`${c.bundle.vouchers.length} voucher(s)`), c.bundle.credit.normal || (l = c.bundle.credit.free) != null && l.amount) {
|
|
@@ -124,9 +125,9 @@ const Pt = { class: "flex justify-between items-start gap-4 w-full" }, Vt = { cl
|
|
|
124
125
|
class: "flex flex-col gap-y-8 p-16 min-h-[240px] h-full"
|
|
125
126
|
}, {
|
|
126
127
|
default: I(() => [
|
|
127
|
-
n("div",
|
|
128
|
-
n("div",
|
|
129
|
-
n("div",
|
|
128
|
+
n("div", Vt, [
|
|
129
|
+
n("div", Tt, F(b.bundle.name), 1),
|
|
130
|
+
n("div", Rt, [
|
|
130
131
|
i(r, { placement: "bottom-end" }, {
|
|
131
132
|
"menu-button": I(() => [
|
|
132
133
|
i(f, {
|
|
@@ -160,19 +161,19 @@ const Pt = { class: "flex justify-between items-start gap-4 w-full" }, Vt = { cl
|
|
|
160
161
|
})
|
|
161
162
|
])
|
|
162
163
|
]),
|
|
163
|
-
n("div",
|
|
164
|
+
n("div", It, [
|
|
164
165
|
b.bundle.image ? (m(), T("img", {
|
|
165
166
|
key: 1,
|
|
166
167
|
src: b.bundle.image,
|
|
167
168
|
class: "w-full h-full object-contain aspect-video"
|
|
168
|
-
}, null, 8,
|
|
169
|
+
}, null, 8, Ut)) : (m(), R(p, {
|
|
169
170
|
key: 0,
|
|
170
171
|
name: "image",
|
|
171
172
|
outline: !0,
|
|
172
173
|
size: "md",
|
|
173
174
|
class: "text-fm-color-neutral-gray-200"
|
|
174
175
|
})),
|
|
175
|
-
b.bundle.isFeedvibe ? (m(), T("div",
|
|
176
|
+
b.bundle.isFeedvibe ? (m(), T("div", Et, [
|
|
176
177
|
i(y, {
|
|
177
178
|
label: "Feedvibe",
|
|
178
179
|
class: "text-fm-color-primary bg-fm-color-system-warning-100",
|
|
@@ -181,8 +182,8 @@ const Pt = { class: "flex justify-between items-start gap-4 w-full" }, Vt = { cl
|
|
|
181
182
|
])) : M("", !0)
|
|
182
183
|
]),
|
|
183
184
|
n("div", Dt, [
|
|
184
|
-
n("div",
|
|
185
|
-
n("div",
|
|
185
|
+
n("div", Bt, F(e(d) || "Free"), 1),
|
|
186
|
+
n("div", Nt, [
|
|
186
187
|
(m(!0), T(W, null, de(e(h), (u, S) => (m(), R(y, {
|
|
187
188
|
key: S,
|
|
188
189
|
label: u
|
|
@@ -194,7 +195,7 @@ const Pt = { class: "flex justify-between items-start gap-4 w-full" }, Vt = { cl
|
|
|
194
195
|
});
|
|
195
196
|
};
|
|
196
197
|
}
|
|
197
|
-
}),
|
|
198
|
+
}), Ot = /* @__PURE__ */ X({
|
|
198
199
|
__name: "AddBundleCard",
|
|
199
200
|
emits: ["create"],
|
|
200
201
|
setup(b, { emit: a }) {
|
|
@@ -217,7 +218,7 @@ const Pt = { class: "flex justify-between items-start gap-4 w-full" }, Vt = { cl
|
|
|
217
218
|
});
|
|
218
219
|
};
|
|
219
220
|
}
|
|
220
|
-
}),
|
|
221
|
+
}), Lt = { class: "space-y-16" }, At = { class: "flex w-full justify-between pb-16" }, jt = { class: "flex items-center justify-end gap-8" }, qt = /* @__PURE__ */ X({
|
|
221
222
|
__name: "CategoryDialog",
|
|
222
223
|
props: {
|
|
223
224
|
action: {
|
|
@@ -239,14 +240,14 @@ const Pt = { class: "flex justify-between items-start gap-4 w-full" }, Vt = { cl
|
|
|
239
240
|
}
|
|
240
241
|
return (r, p) => {
|
|
241
242
|
const y = v("FmTextField"), w = v("FmButton");
|
|
242
|
-
return m(), T("div",
|
|
243
|
+
return m(), T("div", Lt, [
|
|
243
244
|
i(y, {
|
|
244
245
|
modelValue: e(o),
|
|
245
246
|
"onUpdate:modelValue": p[0] || (p[0] = (u) => ve(o) ? o.value = u : null),
|
|
246
247
|
label: e(a)("connect.store.category.label"),
|
|
247
248
|
rules: [e(re).toRule(e(l))]
|
|
248
249
|
}, null, 8, ["modelValue", "label", "rules"]),
|
|
249
|
-
n("div",
|
|
250
|
+
n("div", At, [
|
|
250
251
|
n("div", null, [
|
|
251
252
|
b.action == "edit" ? (m(), R(w, {
|
|
252
253
|
key: 0,
|
|
@@ -255,7 +256,7 @@ const Pt = { class: "flex justify-between items-start gap-4 w-full" }, Vt = { cl
|
|
|
255
256
|
variant: "destructive"
|
|
256
257
|
}, null, 8, ["label"])) : M("", !0)
|
|
257
258
|
]),
|
|
258
|
-
n("div",
|
|
259
|
+
n("div", jt, [
|
|
259
260
|
i(w, {
|
|
260
261
|
label: e(a)("connect.common.cancel"),
|
|
261
262
|
variant: "tertiary",
|
|
@@ -271,10 +272,10 @@ const Pt = { class: "flex justify-between items-start gap-4 w-full" }, Vt = { cl
|
|
|
271
272
|
]);
|
|
272
273
|
};
|
|
273
274
|
}
|
|
274
|
-
}),
|
|
275
|
+
}), Gt = { class: "space-y-16" }, Kt = { class: "flex items-center justify-end gap-8 pb-16" }, Ht = /* @__PURE__ */ X({
|
|
275
276
|
__name: "SelectCategoryDialog",
|
|
276
277
|
setup(b) {
|
|
277
|
-
const { emitData: a, emitAction: c } = We(), g = Ye(), d = O(), h =
|
|
278
|
+
const { emitData: a, emitAction: c } = We(), g = Ye(), d = O(), h = E(
|
|
278
279
|
() => g.sortedStoreCategories.map((o, l) => ({
|
|
279
280
|
label: o.name,
|
|
280
281
|
value: l
|
|
@@ -282,7 +283,7 @@ const Pt = { class: "flex justify-between items-start gap-4 w-full" }, Vt = { cl
|
|
|
282
283
|
);
|
|
283
284
|
return (o, l) => {
|
|
284
285
|
const f = v("FmSelect"), t = v("FmButton");
|
|
285
|
-
return m(), T("div",
|
|
286
|
+
return m(), T("div", Gt, [
|
|
286
287
|
l[4] || (l[4] = n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Select a category to create FeedMe CNY 2025 bundle ", -1)),
|
|
287
288
|
i(f, {
|
|
288
289
|
placeholder: "Select a category",
|
|
@@ -294,7 +295,7 @@ const Pt = { class: "flex justify-between items-start gap-4 w-full" }, Vt = { cl
|
|
|
294
295
|
],
|
|
295
296
|
label: "Category"
|
|
296
297
|
}, null, 8, ["items", "modelValue"]),
|
|
297
|
-
n("div",
|
|
298
|
+
n("div", Kt, [
|
|
298
299
|
i(t, {
|
|
299
300
|
variant: "tertiary",
|
|
300
301
|
label: "Cancel",
|
|
@@ -313,7 +314,7 @@ const Pt = { class: "flex justify-between items-start gap-4 w-full" }, Vt = { cl
|
|
|
313
314
|
function be(b) {
|
|
314
315
|
return b.states.map((a) => ({ label: a, value: a }));
|
|
315
316
|
}
|
|
316
|
-
const
|
|
317
|
+
const zt = {
|
|
317
318
|
[Me.F_COUNTRY.enum.MY]: {
|
|
318
319
|
states: [
|
|
319
320
|
"Johor",
|
|
@@ -497,7 +498,7 @@ const Ht = {
|
|
|
497
498
|
return be(this);
|
|
498
499
|
}
|
|
499
500
|
}
|
|
500
|
-
}, Re = () =>
|
|
501
|
+
}, Re = () => K.Config.getCountry(), Ee = {
|
|
501
502
|
get fullCurrency() {
|
|
502
503
|
return Re().currency;
|
|
503
504
|
},
|
|
@@ -505,32 +506,32 @@ const Ht = {
|
|
|
505
506
|
return Re().currency.code;
|
|
506
507
|
},
|
|
507
508
|
get fullTax() {
|
|
508
|
-
return
|
|
509
|
+
return K.Country.getCountryFlattenTaxes(Re().code);
|
|
509
510
|
},
|
|
510
511
|
get taxSystem() {
|
|
511
512
|
return Re().taxSystems;
|
|
512
513
|
},
|
|
513
514
|
taxInclusion(b) {
|
|
514
|
-
return
|
|
515
|
+
return Ee.taxSystem.map((a) => ({
|
|
515
516
|
systemCode: a.code,
|
|
516
517
|
inclusive: b !== void 0 ? b : !1
|
|
517
518
|
}));
|
|
518
519
|
},
|
|
519
520
|
groupedTaxOptions() {
|
|
520
|
-
const b =
|
|
521
|
-
return
|
|
521
|
+
const b = K.Country.getCountryFlattenTaxes(Re().code);
|
|
522
|
+
return Ee.taxSystem.map((a) => ({
|
|
522
523
|
code: a.code,
|
|
523
|
-
options: b.map((c) => ({ ...c, feedmeTaxCode:
|
|
524
|
+
options: b.map((c) => ({ ...c, feedmeTaxCode: Ee.generateCode(c) })).filter((c) => c.systemCode === a.code)
|
|
524
525
|
}));
|
|
525
526
|
},
|
|
526
527
|
systemDefaultCode(b) {
|
|
527
|
-
const a =
|
|
528
|
+
const a = Ee.groupedTaxOptions().find((c) => c.code === b);
|
|
528
529
|
return a == null ? void 0 : a.options.find((c) => c.default);
|
|
529
530
|
},
|
|
530
531
|
generateCode(b) {
|
|
531
532
|
return `${b.systemCode}/${b.taxCode}`;
|
|
532
533
|
}
|
|
533
|
-
}, Q =
|
|
534
|
+
}, Q = Ee, Wt = /* @__PURE__ */ X({
|
|
534
535
|
__name: "TaxInclusiveSetting",
|
|
535
536
|
props: {
|
|
536
537
|
modelValue: {
|
|
@@ -567,7 +568,7 @@ const Ht = {
|
|
|
567
568
|
function t(r, p) {
|
|
568
569
|
return `${r} ${p ? "Inclusive" : "Exclusive"}`;
|
|
569
570
|
}
|
|
570
|
-
return
|
|
571
|
+
return De(() => {
|
|
571
572
|
c.modelValue.length || o(g[0].code, !1);
|
|
572
573
|
}), He(
|
|
573
574
|
() => c.modelValue,
|
|
@@ -597,11 +598,11 @@ const Ht = {
|
|
|
597
598
|
};
|
|
598
599
|
}
|
|
599
600
|
});
|
|
600
|
-
var
|
|
601
|
-
const
|
|
601
|
+
var Yt = { mode: "development", appMode: "mf" };
|
|
602
|
+
const Jt = { class: "space-y-8" }, Xt = {
|
|
602
603
|
key: 0,
|
|
603
604
|
class: "space-y-16"
|
|
604
|
-
},
|
|
605
|
+
}, Zt = /* @__PURE__ */ X({
|
|
605
606
|
__name: "StripeSetting",
|
|
606
607
|
props: {
|
|
607
608
|
modelValue: {}
|
|
@@ -615,22 +616,22 @@ const Yt = { class: "space-y-8" }, Jt = {
|
|
|
615
616
|
webhookSecret: ""
|
|
616
617
|
}) : o || g("update:modelValue", void 0));
|
|
617
618
|
});
|
|
618
|
-
const h =
|
|
619
|
-
const o =
|
|
619
|
+
const h = E(() => {
|
|
620
|
+
const o = Yt.mode === "development", l = K.Config.getCountry().code.toLowerCase(), f = l != "my" ? `.${l}` : "";
|
|
620
621
|
return `https://marketing${o ? "-dev" : ""}${f}.feedmeapi.com/stripe/${Ge.getBusinessId()}/webhook`;
|
|
621
622
|
});
|
|
622
|
-
return
|
|
623
|
+
return De(() => {
|
|
623
624
|
d.value = !!c.modelValue;
|
|
624
625
|
}), (o, l) => {
|
|
625
626
|
const f = v("FmSwitch"), t = v("FmTextField"), r = v("FmButton");
|
|
626
|
-
return m(), T("div",
|
|
627
|
+
return m(), T("div", Jt, [
|
|
627
628
|
i(f, {
|
|
628
629
|
modelValue: e(d),
|
|
629
630
|
"onUpdate:modelValue": l[0] || (l[0] = (p) => ve(d) ? d.value = p : null),
|
|
630
631
|
value: "true",
|
|
631
632
|
label: "Enable Stripe"
|
|
632
633
|
}, null, 8, ["modelValue"]),
|
|
633
|
-
c.modelValue ? (m(), T("div",
|
|
634
|
+
c.modelValue ? (m(), T("div", Xt, [
|
|
634
635
|
i(t, {
|
|
635
636
|
label: "API Key",
|
|
636
637
|
modelValue: c.modelValue.apiKey,
|
|
@@ -663,13 +664,13 @@ const Yt = { class: "space-y-8" }, Jt = {
|
|
|
663
664
|
]);
|
|
664
665
|
};
|
|
665
666
|
}
|
|
666
|
-
}),
|
|
667
|
+
}), Qt = {
|
|
667
668
|
key: 0,
|
|
668
669
|
class: "space-y-16 pr-12"
|
|
669
|
-
},
|
|
670
|
+
}, eo = { class: "fm-typo-en-title-sm-800 !mb-[-12px]" }, to = {
|
|
670
671
|
key: 1,
|
|
671
672
|
class: "space-y-16"
|
|
672
|
-
},
|
|
673
|
+
}, oo = { class: "fm-typo-en-title-sm-800 !mb-[-12px]" }, no = { class: "fm-typo-en-title-sm-800 !mb-[-12px]" }, ao = { class: "grid grid-cols-2 gap-x-16 gap-y-16" }, so = { class: "space-y-4" }, lo = { class: "fm-typo-en-body-lg-400" }, io = { class: "space-y-16" }, ro = { class: "fm-typo-en-title-sm-800 !mb-[-12px]" }, co = { class: "flex items-center gap-8" }, uo = /* @__PURE__ */ X({
|
|
673
674
|
__name: "StoreSettingSheet",
|
|
674
675
|
emits: ["update"],
|
|
675
676
|
setup(b, { expose: a, emit: c }) {
|
|
@@ -688,7 +689,7 @@ const Yt = { class: "space-y-8" }, Jt = {
|
|
|
688
689
|
phoneNo: ce.string().min(1, "Phone number is required"),
|
|
689
690
|
sstRegNo: ce.string().optional()
|
|
690
691
|
})
|
|
691
|
-
}), t =
|
|
692
|
+
}), t = E(() => f.safeParse(o.value).success);
|
|
692
693
|
function r() {
|
|
693
694
|
const w = f.safeParse(o.value);
|
|
694
695
|
w.success && d("update", w.data);
|
|
@@ -703,7 +704,7 @@ const Yt = { class: "space-y-8" }, Jt = {
|
|
|
703
704
|
city: "",
|
|
704
705
|
postcode: "",
|
|
705
706
|
state: "",
|
|
706
|
-
country:
|
|
707
|
+
country: K.Config.getCountry().name
|
|
707
708
|
},
|
|
708
709
|
phoneNo: "",
|
|
709
710
|
regNo: "",
|
|
@@ -727,7 +728,7 @@ const Yt = { class: "space-y-8" }, Jt = {
|
|
|
727
728
|
header: e(g)("connect.store.setting.title")
|
|
728
729
|
}, {
|
|
729
730
|
"side-sheet-footer": I(() => [
|
|
730
|
-
n("div",
|
|
731
|
+
n("div", co, [
|
|
731
732
|
i(oe, {
|
|
732
733
|
label: e(g)("connect.common.save"),
|
|
733
734
|
onClick: r,
|
|
@@ -745,8 +746,8 @@ const Yt = { class: "space-y-8" }, Jt = {
|
|
|
745
746
|
var te, me;
|
|
746
747
|
return [
|
|
747
748
|
i(Je, { json: e(o) }, null, 8, ["json"]),
|
|
748
|
-
e(o) && e(o).company ? (m(), T("div",
|
|
749
|
-
n("div",
|
|
749
|
+
e(o) && e(o).company ? (m(), T("div", Qt, [
|
|
750
|
+
n("div", eo, F(e(g)("connect.store.setting.company.legal_info")), 1),
|
|
750
751
|
i(ge, {
|
|
751
752
|
modelValue: e(o).company.name,
|
|
752
753
|
"onUpdate:modelValue": u[0] || (u[0] = (V) => e(o).company.name = V),
|
|
@@ -759,7 +760,7 @@ const Yt = { class: "space-y-8" }, Jt = {
|
|
|
759
760
|
label: e(g)("connect.store.setting.company.reg_no"),
|
|
760
761
|
schema: e(re).typeAtPath(e(f), "company.regNo")
|
|
761
762
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
762
|
-
e(
|
|
763
|
+
e(K.Config).getCountry().taxSystems.length ? (m(), R(ge, {
|
|
763
764
|
key: 0,
|
|
764
765
|
modelValue: e(o).company.sstRegNo,
|
|
765
766
|
"onUpdate:modelValue": [
|
|
@@ -769,9 +770,9 @@ const Yt = { class: "space-y-8" }, Jt = {
|
|
|
769
770
|
label: e(g)("connect.store.setting.company.tax_reg_no"),
|
|
770
771
|
schema: e(re).typeAtPath(e(f), "company.sstRegNo")
|
|
771
772
|
}, null, 8, ["modelValue", "label", "schema"])) : M("", !0),
|
|
772
|
-
(te = e(o).company) != null && te.sstRegNo && e(o).inclusiveTaxes ? (m(), T("div",
|
|
773
|
-
n("div",
|
|
774
|
-
i(
|
|
773
|
+
(te = e(o).company) != null && te.sstRegNo && e(o).inclusiveTaxes ? (m(), T("div", to, [
|
|
774
|
+
n("div", oo, F(e(g)("connect.store.setting.company.tax")), 1),
|
|
775
|
+
i(Wt, {
|
|
775
776
|
modelValue: e(o).inclusiveTaxes,
|
|
776
777
|
"onUpdate:modelValue": u[4] || (u[4] = (V) => e(o).inclusiveTaxes = V)
|
|
777
778
|
}, null, 8, ["modelValue"])
|
|
@@ -782,7 +783,7 @@ const Yt = { class: "space-y-8" }, Jt = {
|
|
|
782
783
|
label: e(g)("connect.store.setting.company.phone"),
|
|
783
784
|
schema: e(re).typeAtPath(e(f), "company.phoneNo")
|
|
784
785
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
785
|
-
n("div",
|
|
786
|
+
n("div", no, F(e(g)("connect.store.setting.company.address.title")), 1),
|
|
786
787
|
i(ge, {
|
|
787
788
|
modelValue: e(o).company.address.line1,
|
|
788
789
|
"onUpdate:modelValue": u[6] || (u[6] = (V) => e(o).company.address.line1 = V),
|
|
@@ -795,7 +796,7 @@ const Yt = { class: "space-y-8" }, Jt = {
|
|
|
795
796
|
label: e(g)("connect.store.setting.company.address.line2"),
|
|
796
797
|
schema: e(re).typeAtPath(e(f), "company.address.line2")
|
|
797
798
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
798
|
-
n("div",
|
|
799
|
+
n("div", ao, [
|
|
799
800
|
i(ge, {
|
|
800
801
|
modelValue: e(o).company.address.city,
|
|
801
802
|
"onUpdate:modelValue": u[8] || (u[8] = (V) => e(o).company.address.city = V),
|
|
@@ -808,8 +809,8 @@ const Yt = { class: "space-y-8" }, Jt = {
|
|
|
808
809
|
label: e(g)("connect.store.setting.company.address.postcode"),
|
|
809
810
|
schema: e(re).typeAtPath(e(f), "company.address.postcode")
|
|
810
811
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
811
|
-
n("div",
|
|
812
|
-
n("div",
|
|
812
|
+
n("div", so, [
|
|
813
|
+
n("div", lo, F(e(g)("connect.store.setting.company.address.state")), 1),
|
|
813
814
|
i(N, {
|
|
814
815
|
placement: "top-end",
|
|
815
816
|
"model-value": e(l)
|
|
@@ -830,7 +831,7 @@ const Yt = { class: "space-y-8" }, Jt = {
|
|
|
830
831
|
}, 8, ["modelValue", "schema"])
|
|
831
832
|
]),
|
|
832
833
|
default: I(() => [
|
|
833
|
-
(m(!0), T(W, null, de(e(
|
|
834
|
+
(m(!0), T(W, null, de(e(zt)[e(K.Config).getCountry().code].stateItems.filter(
|
|
834
835
|
(V) => {
|
|
835
836
|
var xe, fe;
|
|
836
837
|
return V.label.toLowerCase().includes(((fe = (xe = e(o)) == null ? void 0 : xe.company) == null ? void 0 : fe.address.state.toLowerCase()) ?? "");
|
|
@@ -853,16 +854,16 @@ const Yt = { class: "space-y-8" }, Jt = {
|
|
|
853
854
|
"onUpdate:modelValue": u[12] || (u[12] = (V) => e(o).company.address.country = V),
|
|
854
855
|
items: [
|
|
855
856
|
{
|
|
856
|
-
label: e(
|
|
857
|
-
value: e(
|
|
857
|
+
label: e(K.Config).getCountry().name,
|
|
858
|
+
value: e(K.Config).getCountry().name
|
|
858
859
|
}
|
|
859
860
|
],
|
|
860
861
|
rules: [e(re).ruleAtPath(e(f), "company.address.country")]
|
|
861
862
|
}, null, 8, ["label", "modelValue", "items", "rules"])
|
|
862
863
|
]),
|
|
863
|
-
n("div",
|
|
864
|
-
n("div",
|
|
865
|
-
i(
|
|
864
|
+
n("div", io, [
|
|
865
|
+
n("div", ro, F(e(g)("connect.store.setting.stripe.title")), 1),
|
|
866
|
+
i(Zt, {
|
|
866
867
|
"model-value": (me = e(o)) == null ? void 0 : me.stripe,
|
|
867
868
|
"onUpdate:modelValue": u[13] || (u[13] = (V) => e(o).stripe = V)
|
|
868
869
|
}, null, 8, ["model-value"])
|
|
@@ -874,11 +875,7 @@ const Yt = { class: "space-y-8" }, Jt = {
|
|
|
874
875
|
}, 8, ["modelValue", "header"]);
|
|
875
876
|
};
|
|
876
877
|
}
|
|
877
|
-
})
|
|
878
|
-
function uo(b, a = !0) {
|
|
879
|
-
return j.DineroFactory(b).toFormat(a);
|
|
880
|
-
}
|
|
881
|
-
const mo = /* @__PURE__ */ X({
|
|
878
|
+
}), mo = /* @__PURE__ */ X({
|
|
882
879
|
__name: "TaxVariantSetting",
|
|
883
880
|
props: {
|
|
884
881
|
modelValue: {
|
|
@@ -890,7 +887,7 @@ const mo = /* @__PURE__ */ X({
|
|
|
890
887
|
emits: ["update:modelValue"],
|
|
891
888
|
setup(b, { emit: a }) {
|
|
892
889
|
const c = b, g = a;
|
|
893
|
-
|
|
890
|
+
De(() => {
|
|
894
891
|
if (o.value.length !== h.value.length) {
|
|
895
892
|
const t = h.value.reduce((r, p) => {
|
|
896
893
|
const y = Q.systemDefaultCode(p.name);
|
|
@@ -904,16 +901,16 @@ const mo = /* @__PURE__ */ X({
|
|
|
904
901
|
function d() {
|
|
905
902
|
return Q.groupedTaxOptions();
|
|
906
903
|
}
|
|
907
|
-
const h =
|
|
904
|
+
const h = E(() => d().map((t) => ({
|
|
908
905
|
name: t.code,
|
|
909
906
|
value: (o.value || []).find(
|
|
910
907
|
(r) => t.options.some((p) => p.feedmeTaxCode === r)
|
|
911
908
|
),
|
|
912
909
|
options: t.options.map((r) => ({
|
|
913
|
-
label: `${r.name} (${
|
|
910
|
+
label: `${r.name} (${St(r.rate)}%)`,
|
|
914
911
|
value: r.feedmeTaxCode
|
|
915
912
|
}))
|
|
916
|
-
}))), o =
|
|
913
|
+
}))), o = E(() => c.modelValue.map((t) => Q.generateCode(t)));
|
|
917
914
|
function l(t) {
|
|
918
915
|
const r = d().find(
|
|
919
916
|
(u) => u.options.some((S) => S.feedmeTaxCode === t)
|
|
@@ -965,8 +962,8 @@ const mo = /* @__PURE__ */ X({
|
|
|
965
962
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
966
963
|
},
|
|
967
964
|
name: "",
|
|
968
|
-
price:
|
|
969
|
-
originalPrice:
|
|
965
|
+
price: K.Dinero.zero().toObject(),
|
|
966
|
+
originalPrice: K.Dinero.zero().toObject(),
|
|
970
967
|
vouchers: [],
|
|
971
968
|
credit: {
|
|
972
969
|
normal: 0,
|
|
@@ -994,7 +991,7 @@ const mo = /* @__PURE__ */ X({
|
|
|
994
991
|
category: 0,
|
|
995
992
|
index: -1,
|
|
996
993
|
originalCategoryIndex: void 0
|
|
997
|
-
}), t = O(pe.cloneDeep(Ke)), r = O(), p = Xe, y =
|
|
994
|
+
}), t = O(pe.cloneDeep(Ke)), r = O(), p = Xe, y = E(() => {
|
|
998
995
|
const C = p.safeParse(t.value);
|
|
999
996
|
return C.success ? [] : C.error.errors;
|
|
1000
997
|
}), w = [
|
|
@@ -1018,9 +1015,9 @@ const mo = /* @__PURE__ */ X({
|
|
|
1018
1015
|
var k;
|
|
1019
1016
|
const s = C.row.original;
|
|
1020
1017
|
return s.collectible.type == "VOUCHER" || s.selectedReward == null ? s.description : lt(rt.FmStepperField, {
|
|
1021
|
-
"onUpdate:modelValue": (
|
|
1018
|
+
"onUpdate:modelValue": (D) => {
|
|
1022
1019
|
t.value.titles = t.value.titles.map(
|
|
1023
|
-
(J) => J.id == s.collectible._id ? { ...J, dayToExpire:
|
|
1020
|
+
(J) => J.id == s.collectible._id ? { ...J, dayToExpire: D } : J
|
|
1024
1021
|
);
|
|
1025
1022
|
},
|
|
1026
1023
|
modelValue: ((k = s.selectedReward) == null ? void 0 : k.extra) ?? 0,
|
|
@@ -1028,29 +1025,29 @@ const mo = /* @__PURE__ */ X({
|
|
|
1028
1025
|
helperState: ae(y.value, "titles"),
|
|
1029
1026
|
helperText: se(y.value, "titles"),
|
|
1030
1027
|
max: 9999,
|
|
1031
|
-
rules: [(
|
|
1028
|
+
rules: [(D) => D <= 9999 || "Maximum 9999 days allowed"],
|
|
1032
1029
|
showSteppers: !1,
|
|
1033
1030
|
disabled: !!t.value.stripePriceId
|
|
1034
1031
|
});
|
|
1035
1032
|
}
|
|
1036
1033
|
}
|
|
1037
|
-
], u = O([]), S =
|
|
1034
|
+
], u = O([]), S = E(() => {
|
|
1038
1035
|
var s;
|
|
1039
1036
|
const C = (s = t.value) != null && s.isFeedvibe ? "STORE_BUNDLE:FEEDVIBE" : "STORE_BUNDLE:DEFAULT";
|
|
1040
1037
|
return h.bundleRewards.filter((k) => {
|
|
1041
|
-
var
|
|
1042
|
-
return (
|
|
1038
|
+
var D;
|
|
1039
|
+
return (D = t.value) != null && D.isFeedvibe && k.type !== "VOUCHER" ? !1 : Ft(k.capabilities, C);
|
|
1043
1040
|
}).map((k) => {
|
|
1044
|
-
const
|
|
1041
|
+
const D = $.value.find((Z) => Z.id == k._id), J = k.type === "VOUCHER" ? `${k.options.maxUse} use(s), ${wt(
|
|
1045
1042
|
k.options.validityOption || {}
|
|
1046
1043
|
)}` : "No expiry";
|
|
1047
1044
|
return {
|
|
1048
1045
|
collectible: k,
|
|
1049
1046
|
description: J,
|
|
1050
|
-
selectedReward:
|
|
1047
|
+
selectedReward: D
|
|
1051
1048
|
};
|
|
1052
1049
|
});
|
|
1053
|
-
}), $ =
|
|
1050
|
+
}), $ = E(() => {
|
|
1054
1051
|
var C, s;
|
|
1055
1052
|
return [
|
|
1056
1053
|
...((C = t.value) == null ? void 0 : C.titles.map((k) => ({
|
|
@@ -1062,7 +1059,7 @@ const mo = /* @__PURE__ */ X({
|
|
|
1062
1059
|
extra: void 0
|
|
1063
1060
|
}))) ?? []
|
|
1064
1061
|
];
|
|
1065
|
-
}), N =
|
|
1062
|
+
}), N = E(
|
|
1066
1063
|
() => t.value.stripePriceId && t.value.subscriptionValidity ? t.value.subscriptionValidity : 0
|
|
1067
1064
|
);
|
|
1068
1065
|
function ue(C) {
|
|
@@ -1075,28 +1072,28 @@ const mo = /* @__PURE__ */ X({
|
|
|
1075
1072
|
const C = S.value, s = t.value;
|
|
1076
1073
|
if (!(!s || !C))
|
|
1077
1074
|
for (let k = 0; k < C.length; k++) {
|
|
1078
|
-
const
|
|
1079
|
-
z.value[k] ?
|
|
1080
|
-
(A) => A.id ==
|
|
1075
|
+
const D = C[k];
|
|
1076
|
+
z.value[k] ? D.collectible.type == "TITLE" ? s.titles.findIndex(
|
|
1077
|
+
(A) => A.id == D.collectible._id
|
|
1081
1078
|
) < 0 && s.titles.push({
|
|
1082
|
-
id:
|
|
1079
|
+
id: D.collectible._id,
|
|
1083
1080
|
dayToExpire: N.value
|
|
1084
1081
|
}) : s.vouchers.findIndex(
|
|
1085
|
-
(A) => A ==
|
|
1086
|
-
) < 0 && s.vouchers.push(
|
|
1087
|
-
(Z) => Z !=
|
|
1082
|
+
(A) => A == D.collectible._id
|
|
1083
|
+
) < 0 && s.vouchers.push(D.collectible._id) : (s.titles = s.titles.filter((Z) => Z.id != D.collectible._id), s.vouchers = s.vouchers.filter(
|
|
1084
|
+
(Z) => Z != D.collectible._id
|
|
1088
1085
|
));
|
|
1089
1086
|
}
|
|
1090
1087
|
}
|
|
1091
1088
|
const z = O({});
|
|
1092
1089
|
He(z, oe, { deep: !0 });
|
|
1093
|
-
const te =
|
|
1090
|
+
const te = E(() => {
|
|
1094
1091
|
var C, s;
|
|
1095
1092
|
return (s = (C = h.storeOption) == null ? void 0 : C.company) == null ? void 0 : s.sstRegNo;
|
|
1096
|
-
}), me =
|
|
1093
|
+
}), me = E(() => {
|
|
1097
1094
|
var C, s, k;
|
|
1098
1095
|
return (k = (s = (C = h.storeOption) == null ? void 0 : C.inclusiveTaxes) == null ? void 0 : s[0]) != null && k.inclusive ? "Inclusive" : "Exclusive";
|
|
1099
|
-
}), V =
|
|
1096
|
+
}), V = E(() => {
|
|
1100
1097
|
var C, s, k;
|
|
1101
1098
|
return ot(
|
|
1102
1099
|
Q.fullTax,
|
|
@@ -1104,30 +1101,30 @@ const mo = /* @__PURE__ */ X({
|
|
|
1104
1101
|
t.value.price,
|
|
1105
1102
|
Number(t.value.credit.normal),
|
|
1106
1103
|
((C = h.storeOption) == null ? void 0 : C.inclusiveTaxes) ?? [],
|
|
1107
|
-
(k = (s = h.storeOption) == null ? void 0 : s.company) != null && k.sstRegNo ? Q.taxSystem.map((
|
|
1104
|
+
(k = (s = h.storeOption) == null ? void 0 : s.company) != null && k.sstRegNo ? Q.taxSystem.map((D) => D.code) : []
|
|
1108
1105
|
);
|
|
1109
|
-
}), xe =
|
|
1106
|
+
}), xe = E(() => V.value.reduce(
|
|
1110
1107
|
(s, k) => s.add(k.total),
|
|
1111
1108
|
_t()
|
|
1112
|
-
).toFormat()), fe =
|
|
1113
|
-
var
|
|
1109
|
+
).toFormat()), fe = E(() => {
|
|
1110
|
+
var D;
|
|
1114
1111
|
const C = nt(
|
|
1115
1112
|
V.value,
|
|
1116
1113
|
t.value.price,
|
|
1117
|
-
((
|
|
1114
|
+
((D = h.storeOption) == null ? void 0 : D.inclusiveTaxes) ?? []
|
|
1118
1115
|
);
|
|
1119
1116
|
t.value.priceWithTaxes = C;
|
|
1120
|
-
const s =
|
|
1117
|
+
const s = Ct(C, !1), k = Number(s.replace(/[^\d.-]/g, ""));
|
|
1121
1118
|
return Number.isNaN(k) ? 0 : k;
|
|
1122
1119
|
});
|
|
1123
1120
|
function Ve() {
|
|
1124
1121
|
t.value.taxTotals = V.value, g("update", Xe.parse(ft(t.value)));
|
|
1125
1122
|
}
|
|
1126
|
-
function
|
|
1123
|
+
function j() {
|
|
1127
1124
|
return pe.cloneDeep(Ke);
|
|
1128
1125
|
}
|
|
1129
1126
|
function Se(C, s) {
|
|
1130
|
-
o.value = C, C && s && (r.value = void 0, l.value = s.categories, t.value = s.bundle ||
|
|
1127
|
+
o.value = C, C && s && (r.value = void 0, l.value = s.categories, t.value = s.bundle || j(), f.value.category = s.category, f.value.index = s.index, f.value.originalCategoryIndex = s.category, z.value = S.value.reduce((k, D, J) => (k[J] = !!D.selectedReward, k), {}));
|
|
1131
1128
|
}
|
|
1132
1129
|
return a({
|
|
1133
1130
|
showSheet: Se,
|
|
@@ -1135,7 +1132,7 @@ const mo = /* @__PURE__ */ X({
|
|
|
1135
1132
|
target: f,
|
|
1136
1133
|
data: t
|
|
1137
1134
|
}), (C, s) => {
|
|
1138
|
-
const k = v("FmSwitch"),
|
|
1135
|
+
const k = v("FmSwitch"), D = v("FmHelperText"), J = v("FmTextField"), Z = v("FmSelect"), A = v("FmStepperField"), _e = v("FmMenuItem"), ke = v("FmTable"), Fe = v("FmButton"), ye = v("FmSideSheet");
|
|
1139
1136
|
return m(), R(ye, {
|
|
1140
1137
|
"max-width": 768,
|
|
1141
1138
|
modelValue: e(o),
|
|
@@ -1158,12 +1155,12 @@ const mo = /* @__PURE__ */ X({
|
|
|
1158
1155
|
])
|
|
1159
1156
|
]),
|
|
1160
1157
|
default: I(() => {
|
|
1161
|
-
var ie, Pe, Be, Ne, x, P, B, H,
|
|
1158
|
+
var ie, Pe, Be, Ne, x, P, B, H, q, L;
|
|
1162
1159
|
return [
|
|
1163
1160
|
i(Je, { json: e(t) }, null, 8, ["json"]),
|
|
1164
1161
|
e(t) ? (m(), T("div", po, [
|
|
1165
1162
|
n("div", fo, [
|
|
1166
|
-
e(
|
|
1163
|
+
e(K.Config).getCountry().code == "MY" && ((ie = e(h).payoutAccount) == null ? void 0 : ie.status) == "APPROVED" && ((Pe = e(h).payoutAccount) != null && Pe.enable) ? (m(), R(k, {
|
|
1167
1164
|
key: 0,
|
|
1168
1165
|
"onUpdate:modelValue": s[0] || (s[0] = (_) => {
|
|
1169
1166
|
e(t).isFeedvibe = _, e(t).isFeedvibe && (e(t).credit.normal = 0, e(t).coinPrice = 0, e(t).titles = [], z.value = {}, e(t).hideInPos = !0, e(t).internal = !0);
|
|
@@ -1173,7 +1170,7 @@ const mo = /* @__PURE__ */ X({
|
|
|
1173
1170
|
label: "Feedvibe Campaign",
|
|
1174
1171
|
sublabel: "Bundle will be appear for Feedvibe campaign use"
|
|
1175
1172
|
}, null, 8, ["model-value"])) : M("", !0),
|
|
1176
|
-
e(t).isFeedvibe ? (m(), R(
|
|
1173
|
+
e(t).isFeedvibe ? (m(), R(D, {
|
|
1177
1174
|
key: 1,
|
|
1178
1175
|
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.",
|
|
1179
1176
|
state: "warning"
|
|
@@ -1206,7 +1203,7 @@ const mo = /* @__PURE__ */ X({
|
|
|
1206
1203
|
"helper-text": e(se)(e(y), "image")
|
|
1207
1204
|
}, null, 8, ["label", "thumbnail", "file", "helper-state", "helper-text"]),
|
|
1208
1205
|
i(A, {
|
|
1209
|
-
"model-value": e(
|
|
1206
|
+
"model-value": e(K.Dinero).fromFdoDinero(e(t).price).toUnit(),
|
|
1210
1207
|
label: e(d)("connect.store.bundle.edit.bundlePrice"),
|
|
1211
1208
|
min: 0,
|
|
1212
1209
|
"max-fraction-digits": 2,
|
|
@@ -1215,23 +1212,23 @@ const mo = /* @__PURE__ */ X({
|
|
|
1215
1212
|
}),
|
|
1216
1213
|
"is-currency": !0,
|
|
1217
1214
|
"show-steppers": !1,
|
|
1218
|
-
"helper-text": e(se)(e(y), "price") || `${e(
|
|
1215
|
+
"helper-text": e(se)(e(y), "price") || `${e(K.Dinero).fromNumber({ number: 1 }).toFormat(
|
|
1219
1216
|
!0
|
|
1220
|
-
)} = ${e(
|
|
1217
|
+
)} = ${e(K.Dinero).fromNumber({ number: 1 }).toUnit()} credit`,
|
|
1221
1218
|
"helper-state": e(ae)(e(y), "price")
|
|
1222
1219
|
}, {
|
|
1223
1220
|
prepend: I(() => [
|
|
1224
|
-
le(F(e(
|
|
1221
|
+
le(F(e(K.Dinero).defaultCurrency()), 1)
|
|
1225
1222
|
]),
|
|
1226
1223
|
_: 1
|
|
1227
1224
|
}, 8, ["model-value", "label", "helper-text", "helper-state"]),
|
|
1228
1225
|
i(A, {
|
|
1229
|
-
"model-value": e(
|
|
1226
|
+
"model-value": e(K.Dinero).fromFdoDinero(e(t).originalPrice).toUnit(),
|
|
1230
1227
|
label: e(d)("connect.store.bundle.edit.bundleValue"),
|
|
1231
1228
|
min: 0,
|
|
1232
1229
|
"max-fraction-digits": 2,
|
|
1233
1230
|
"onUpdate:modelValue": s[5] || (s[5] = (_) => {
|
|
1234
|
-
e(t).originalPrice || (e(t).originalPrice = e(
|
|
1231
|
+
e(t).originalPrice || (e(t).originalPrice = e(K.Dinero).zero().toObject()), e(t).originalPrice.amount = _ * 10 ** e(t).originalPrice.precision;
|
|
1235
1232
|
}),
|
|
1236
1233
|
"is-currency": !0,
|
|
1237
1234
|
"show-steppers": !1,
|
|
@@ -1239,7 +1236,7 @@ const mo = /* @__PURE__ */ X({
|
|
|
1239
1236
|
"helper-state": e(ae)(e(y), "originalPrice")
|
|
1240
1237
|
}, {
|
|
1241
1238
|
prepend: I(() => [
|
|
1242
|
-
le(F(e(
|
|
1239
|
+
le(F(e(K.Dinero).defaultCurrency()), 1)
|
|
1243
1240
|
]),
|
|
1244
1241
|
_: 1
|
|
1245
1242
|
}, 8, ["model-value", "label", "helper-text", "helper-state"]),
|
|
@@ -1398,7 +1395,7 @@ const mo = /* @__PURE__ */ X({
|
|
|
1398
1395
|
"row-data": e(S),
|
|
1399
1396
|
"hide-footer": e(S).length <= 10
|
|
1400
1397
|
}, null, 8, ["modelValue", "column-filter", "row-data", "hide-footer"]),
|
|
1401
|
-
i(
|
|
1398
|
+
i(D, {
|
|
1402
1399
|
text: e(se)(e(y), "titles"),
|
|
1403
1400
|
state: e(ae)(e(y), "titles")
|
|
1404
1401
|
}, null, 8, ["text", "state"])
|
|
@@ -1429,7 +1426,7 @@ const mo = /* @__PURE__ */ X({
|
|
|
1429
1426
|
placeholder: e(d)("connect.store.bundle.edit.unlimited")
|
|
1430
1427
|
}, null, 8, ["model-value", "label", "placeholder"]),
|
|
1431
1428
|
i(A, {
|
|
1432
|
-
"model-value": ((L = (
|
|
1429
|
+
"model-value": ((L = (q = e(t).config) == null ? void 0 : q.options) == null ? void 0 : L.maxReceive) || null,
|
|
1433
1430
|
"onUpdate:modelValue": s[19] || (s[19] = (_) => e(pe).set(e(t), "config.options.maxReceive", _)),
|
|
1434
1431
|
label: e(d)("connect.store.bundle.edit.maxReceive"),
|
|
1435
1432
|
"show-steppers": !1,
|
|
@@ -1456,7 +1453,7 @@ const mo = /* @__PURE__ */ X({
|
|
|
1456
1453
|
f.value = !1;
|
|
1457
1454
|
}
|
|
1458
1455
|
async function y(S) {
|
|
1459
|
-
const $ = await
|
|
1456
|
+
const $ = await $t.read({
|
|
1460
1457
|
limit: 25,
|
|
1461
1458
|
skip: 0,
|
|
1462
1459
|
sortBy: "_id",
|
|
@@ -1495,17 +1492,17 @@ const mo = /* @__PURE__ */ X({
|
|
|
1495
1492
|
}
|
|
1496
1493
|
);
|
|
1497
1494
|
}
|
|
1498
|
-
const u =
|
|
1495
|
+
const u = E(() => {
|
|
1499
1496
|
var $, N, ue;
|
|
1500
1497
|
const S = [];
|
|
1501
1498
|
return (($ = d.value) == null ? void 0 : $.price.amount) > 0 && S.push(
|
|
1502
|
-
`${
|
|
1499
|
+
`${K.Config.getCountry().currency.symbol}${tt((N = d.value) == null ? void 0 : N.price)}`
|
|
1503
1500
|
), (ue = d.value) != null && ue.coinPrice && S.push(`${d.value.coinPrice} point(s)`), S.join(" or ");
|
|
1504
1501
|
});
|
|
1505
1502
|
return a({
|
|
1506
1503
|
showSheet: r,
|
|
1507
1504
|
hideSheet: p
|
|
1508
|
-
}),
|
|
1505
|
+
}), De(async () => {
|
|
1509
1506
|
await y("");
|
|
1510
1507
|
}), (S, $) => {
|
|
1511
1508
|
const N = v("FmCardMedia"), ue = v("FmCardHeader"), oe = v("FmChip"), z = v("FmCardSection"), te = v("FmCard"), me = v("FmSelect"), V = v("FmTextField"), xe = v("FmForm"), fe = v("FmButton"), Ve = v("FmSideSheet");
|
|
@@ -1515,8 +1512,8 @@ const mo = /* @__PURE__ */ X({
|
|
|
1515
1512
|
header: "Send bundle to member",
|
|
1516
1513
|
modelValue: e(f),
|
|
1517
1514
|
"onUpdate:modelValue": [
|
|
1518
|
-
$[4] || ($[4] = (
|
|
1519
|
-
$[5] || ($[5] = (
|
|
1515
|
+
$[4] || ($[4] = (j) => ve(f) ? f.value = j : null),
|
|
1516
|
+
$[5] || ($[5] = (j) => f.value = j)
|
|
1520
1517
|
]
|
|
1521
1518
|
}, {
|
|
1522
1519
|
"side-sheet-footer": I(() => [
|
|
@@ -1525,15 +1522,15 @@ const mo = /* @__PURE__ */ X({
|
|
|
1525
1522
|
label: "Send",
|
|
1526
1523
|
loading: e(Le)().isLoading,
|
|
1527
1524
|
onClick: $[2] || ($[2] = async () => {
|
|
1528
|
-
var
|
|
1529
|
-
return (
|
|
1525
|
+
var j;
|
|
1526
|
+
return (j = e(t)) == null ? void 0 : j.validateInputs();
|
|
1530
1527
|
})
|
|
1531
1528
|
}, null, 8, ["loading"]),
|
|
1532
1529
|
i(fe, {
|
|
1533
1530
|
label: "Cancel",
|
|
1534
1531
|
type: "button",
|
|
1535
1532
|
variant: "tertiary",
|
|
1536
|
-
onClick: $[3] || ($[3] = (
|
|
1533
|
+
onClick: $[3] || ($[3] = (j) => f.value = !1)
|
|
1537
1534
|
})
|
|
1538
1535
|
])
|
|
1539
1536
|
]),
|
|
@@ -1552,9 +1549,9 @@ const mo = /* @__PURE__ */ X({
|
|
|
1552
1549
|
variant: "outlined"
|
|
1553
1550
|
}, {
|
|
1554
1551
|
default: I(() => {
|
|
1555
|
-
var
|
|
1552
|
+
var j, Se;
|
|
1556
1553
|
return [
|
|
1557
|
-
(
|
|
1554
|
+
(j = e(d)) != null && j.image ? (m(), R(N, {
|
|
1558
1555
|
key: 0,
|
|
1559
1556
|
width: "100",
|
|
1560
1557
|
src: (Se = e(d)) == null ? void 0 : Se.image
|
|
@@ -1570,14 +1567,14 @@ const mo = /* @__PURE__ */ X({
|
|
|
1570
1567
|
}, null, 8, ["title", "subtitle"]),
|
|
1571
1568
|
i(z, { class: "p-0" }, {
|
|
1572
1569
|
default: I(() => {
|
|
1573
|
-
var s, k,
|
|
1570
|
+
var s, k, D, J, Z, A, _e, ke, Fe, ye, ie;
|
|
1574
1571
|
return [
|
|
1575
1572
|
n("div", $o, [
|
|
1576
1573
|
(s = e(d)) != null && s.isFeedvibe ? (m(), R(oe, {
|
|
1577
1574
|
key: 0,
|
|
1578
1575
|
label: "Feedvibe"
|
|
1579
1576
|
})) : M("", !0),
|
|
1580
|
-
(
|
|
1577
|
+
(D = (k = e(d)) == null ? void 0 : k.titles) != null && D.length ? (m(), R(oe, {
|
|
1581
1578
|
key: 1,
|
|
1582
1579
|
label: `${e(d).titles.length} title(s)`
|
|
1583
1580
|
}, null, 8, ["label"])) : M("", !0),
|
|
@@ -1604,20 +1601,20 @@ const mo = /* @__PURE__ */ X({
|
|
|
1604
1601
|
}),
|
|
1605
1602
|
i(me, {
|
|
1606
1603
|
modelValue: e(h),
|
|
1607
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
|
1604
|
+
"onUpdate:modelValue": $[0] || ($[0] = (j) => ve(h) ? h.value = j : null),
|
|
1608
1605
|
label: "Select member",
|
|
1609
1606
|
searchable: "",
|
|
1610
1607
|
items: e(l),
|
|
1611
1608
|
onSearch: y,
|
|
1612
|
-
rules: [(
|
|
1609
|
+
rules: [(j) => !!j > 0 || "Member is required"],
|
|
1613
1610
|
"helper-text": "Type to search member"
|
|
1614
1611
|
}, null, 8, ["modelValue", "items", "rules"]),
|
|
1615
1612
|
i(V, {
|
|
1616
1613
|
modelValue: e(o),
|
|
1617
|
-
"onUpdate:modelValue": $[1] || ($[1] = (
|
|
1614
|
+
"onUpdate:modelValue": $[1] || ($[1] = (j) => ve(o) ? o.value = j : null),
|
|
1618
1615
|
label: "Reference (optional)",
|
|
1619
1616
|
rules: [
|
|
1620
|
-
(
|
|
1617
|
+
(j) => j.length < 50 || "Reference must be less than 50 characters"
|
|
1621
1618
|
]
|
|
1622
1619
|
}, null, 8, ["modelValue", "rules"])
|
|
1623
1620
|
]),
|
|
@@ -1628,7 +1625,7 @@ const mo = /* @__PURE__ */ X({
|
|
|
1628
1625
|
}, 8, ["modelValue"]);
|
|
1629
1626
|
};
|
|
1630
1627
|
}
|
|
1631
|
-
}), Vo = { class: "flex items-center gap-8" }, To = { class: "flex-shrink-0 -mr-8 -mt-8" }, Ro = ["title"], Io = ["src"], Uo = { class: "relative flex items-center gap-6 min-w-0" },
|
|
1628
|
+
}), Vo = { class: "flex items-center gap-8" }, To = { class: "flex-shrink-0 -mr-8 -mt-8" }, Ro = ["title"], Io = ["src"], Uo = { class: "relative flex items-center gap-6 min-w-0" }, Eo = { class: "fm-typo-en-body-sm-600 tracking-[0.08em] truncate" }, Do = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Bo = {
|
|
1632
1629
|
key: 0,
|
|
1633
1630
|
class: "flex items-center gap-6"
|
|
1634
1631
|
}, No = "linear-gradient(135deg,#FF9455,#B25300)", Mo = /* @__PURE__ */ X({
|
|
@@ -1639,7 +1636,7 @@ const mo = /* @__PURE__ */ X({
|
|
|
1639
1636
|
},
|
|
1640
1637
|
emits: ["edit", "setLive", "deactivate"],
|
|
1641
1638
|
setup(b, { emit: a }) {
|
|
1642
|
-
const c = b, g = a, d =
|
|
1639
|
+
const c = b, g = a, d = E(() => pt(c.program)), h = E(() => {
|
|
1643
1640
|
const { denominations: f, anyAmount: t } = d.value, r = [], p = [
|
|
1644
1641
|
...f,
|
|
1645
1642
|
...t ? [t.min, t.max] : []
|
|
@@ -1649,10 +1646,10 @@ const mo = /* @__PURE__ */ X({
|
|
|
1649
1646
|
r.push(y === w ? `RM${y}` : `RM${y}–RM${w}`);
|
|
1650
1647
|
}
|
|
1651
1648
|
return t && r.push("Any amount"), r.join(" · ");
|
|
1652
|
-
}), o =
|
|
1649
|
+
}), o = E(() => {
|
|
1653
1650
|
var f;
|
|
1654
1651
|
return ((f = c.program.designs) == null ? void 0 : f[0]) ?? null;
|
|
1655
|
-
}), l =
|
|
1652
|
+
}), l = E(() => {
|
|
1656
1653
|
const f = c.program.numberFormat, t = (f == null ? void 0 : f.prefix) ?? "GC", r = Math.max(4, Math.min(Number((f == null ? void 0 : f.length) ?? 12), 16));
|
|
1657
1654
|
return `${t}${"•".repeat(r)}`;
|
|
1658
1655
|
});
|
|
@@ -1726,10 +1723,10 @@ const mo = /* @__PURE__ */ X({
|
|
|
1726
1723
|
t[7] || (t[7] = n("div", { class: "flex-1" }, null, -1)),
|
|
1727
1724
|
n("div", Uo, [
|
|
1728
1725
|
t[5] || (t[5] = n("span", { class: "w-[20px] h-[14px] rounded-sm flex-none bg-gradient-to-br from-[#F4D479] to-[#C99B3B]" }, null, -1)),
|
|
1729
|
-
n("span",
|
|
1726
|
+
n("span", Eo, F(e(l)), 1)
|
|
1730
1727
|
])
|
|
1731
1728
|
], 4),
|
|
1732
|
-
n("div",
|
|
1729
|
+
n("div", Do, F(e(h)), 1),
|
|
1733
1730
|
t[9] || (t[9] = n("div", { class: "flex-1" }, null, -1)),
|
|
1734
1731
|
b.program.active ? (m(), T("div", Bo, [
|
|
1735
1732
|
i(u, {
|
|
@@ -1760,7 +1757,7 @@ const mo = /* @__PURE__ */ X({
|
|
|
1760
1757
|
},
|
|
1761
1758
|
emits: ["setupStoreSetting", "setupPayout"],
|
|
1762
1759
|
setup(b, { emit: a }) {
|
|
1763
|
-
const { t: c } = he(), g = b, d = a, h =
|
|
1760
|
+
const { t: c } = he(), g = b, d = a, h = E(() => [
|
|
1764
1761
|
{
|
|
1765
1762
|
key: "payout",
|
|
1766
1763
|
title: c("connect.store.onboarding.payoutTitle"),
|
|
@@ -1874,7 +1871,7 @@ const mo = /* @__PURE__ */ X({
|
|
|
1874
1871
|
requiresPayout: { type: Boolean, default: !0 }
|
|
1875
1872
|
},
|
|
1876
1873
|
setup(b) {
|
|
1877
|
-
const { t: a } = he(), c = b, g = ze(), { emitData: d, emitAction: h } = We(), o =
|
|
1874
|
+
const { t: a } = he(), c = b, g = ze(), { emitData: d, emitAction: h } = We(), o = E(() => [
|
|
1878
1875
|
{
|
|
1879
1876
|
key: "payout",
|
|
1880
1877
|
title: a("connect.store.onboarding.payoutTitle"),
|
|
@@ -1893,9 +1890,9 @@ const mo = /* @__PURE__ */ X({
|
|
|
1893
1890
|
action: "setupStoreSetting",
|
|
1894
1891
|
actionLabel: a("connect.store.onboarding.settingTitle")
|
|
1895
1892
|
}
|
|
1896
|
-
].filter((p) => p.key !== "payout" || c.requiresPayout)), l =
|
|
1893
|
+
].filter((p) => p.key !== "payout" || c.requiresPayout)), l = E(
|
|
1897
1894
|
() => o.value.filter((r) => r.status === "COMPLETE").length
|
|
1898
|
-
), f =
|
|
1895
|
+
), f = E(
|
|
1899
1896
|
() => o.value.find((r) => r.status !== "COMPLETE")
|
|
1900
1897
|
);
|
|
1901
1898
|
function t() {
|
|
@@ -2110,13 +2107,13 @@ const yn = { class: "grid lg:grid-cols-2 gap-32 items-center" }, gn = { class: "
|
|
|
2110
2107
|
}
|
|
2111
2108
|
});
|
|
2112
2109
|
var Ze = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
|
|
2113
|
-
const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[640px]" },
|
|
2110
|
+
const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[640px]" }, En = { class: "px-24 flex flex-col gap-y-16" }, Dn = { class: "space-y-8 py-12" }, Bn = { class: "flex gap-8 items-center" }, Nn = { class: "fm-typo-en-body-lg-600" }, Mn = {
|
|
2114
2111
|
key: 1,
|
|
2115
2112
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
2116
2113
|
}, On = {
|
|
2117
2114
|
key: 1,
|
|
2118
2115
|
class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24"
|
|
2119
|
-
}, Ln = { class: "flex gap-8 items-center" }, An = { class: "fm-typo-en-body-lg-600" }, jn = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, qn = { class: "flex flex-col gap-16 text-center" }, Gn = { class: "fm-typo-en-title-sm-800" }, Kn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
2116
|
+
}, Ln = { class: "flex gap-8 items-center" }, An = { class: "fm-typo-en-body-lg-600" }, jn = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, qn = { class: "flex flex-col gap-16 text-center" }, Gn = { class: "fm-typo-en-title-sm-800" }, Kn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, wa = /* @__PURE__ */ X({
|
|
2120
2117
|
__name: "Store",
|
|
2121
2118
|
setup(b) {
|
|
2122
2119
|
const { t: a } = he(), c = {
|
|
@@ -2131,16 +2128,16 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2131
2128
|
value: "create_category",
|
|
2132
2129
|
isPrimary: !0,
|
|
2133
2130
|
prependIcon: "add"
|
|
2134
|
-
}, h = O(), o =
|
|
2131
|
+
}, h = O(), o = Pt(), l = Ye(), { global: f, minor: t } = et, r = ze(), p = E(() => l.sortedStoreCategories), y = E(() => l.sortedStoreCategories.map((x) => x.name)), w = O(), u = O(), S = kt(), $ = O([]), N = E(() => S.isPremium), ue = E(() => {
|
|
2135
2132
|
var x;
|
|
2136
2133
|
return !!((x = l.storeOption) != null && x.company);
|
|
2137
|
-
}), oe = O(!1), z =
|
|
2134
|
+
}), oe = O(!1), z = E(
|
|
2138
2135
|
() => fn(
|
|
2139
2136
|
ue.value,
|
|
2140
2137
|
l.payoutAccount,
|
|
2141
2138
|
!oe.value || N.value
|
|
2142
2139
|
)
|
|
2143
|
-
), te =
|
|
2140
|
+
), te = E(() => !z.value.complete), me = O(!1);
|
|
2144
2141
|
function V() {
|
|
2145
2142
|
return `connect.store.allSetDismissed.${Ge.getBusinessId()}`;
|
|
2146
2143
|
}
|
|
@@ -2162,7 +2159,7 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2162
2159
|
name: Oe["$connect-TRANSACTION"],
|
|
2163
2160
|
query: { tab: "store" }
|
|
2164
2161
|
};
|
|
2165
|
-
function
|
|
2162
|
+
function j() {
|
|
2166
2163
|
window.open(
|
|
2167
2164
|
`${Ze.licensePortalUrl}business/${Ge.businessId}/settings`,
|
|
2168
2165
|
"_blank"
|
|
@@ -2188,7 +2185,7 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2188
2185
|
params: { id: String(x._id) }
|
|
2189
2186
|
});
|
|
2190
2187
|
}
|
|
2191
|
-
async function
|
|
2188
|
+
async function D(x) {
|
|
2192
2189
|
await Ie.confirm(
|
|
2193
2190
|
`Set "${x.name}" live? Only one gift card can be live at a time, so any other will be set inactive.`,
|
|
2194
2191
|
"Set live",
|
|
@@ -2228,20 +2225,20 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2228
2225
|
}
|
|
2229
2226
|
function _e(x, P) {
|
|
2230
2227
|
var _;
|
|
2231
|
-
const B = !!((_ = P.company) != null && _.sstRegNo), H = P.inclusiveTaxes ?? [],
|
|
2228
|
+
const B = !!((_ = P.company) != null && _.sstRegNo), H = P.inclusiveTaxes ?? [], q = Q.taxSystem.map((U) => U.code), L = B ? H.flatMap((U) => {
|
|
2232
2229
|
console.log(U, "inclusive tax");
|
|
2233
|
-
const
|
|
2234
|
-
return
|
|
2230
|
+
const G = Q.systemDefaultCode(U.systemCode);
|
|
2231
|
+
return G ? [{ systemCode: U.systemCode, taxCode: G.taxCode }] : [];
|
|
2235
2232
|
}) : [];
|
|
2236
2233
|
return console.log([
|
|
2237
2234
|
["hasSstRegNo", B],
|
|
2238
2235
|
["defaultTaxCodes", L],
|
|
2239
2236
|
["inclusiveTaxes", H],
|
|
2240
|
-
["taxSystemCodes",
|
|
2237
|
+
["taxSystemCodes", q]
|
|
2241
2238
|
]), x.map((U) => ({
|
|
2242
2239
|
...U,
|
|
2243
|
-
bundles: U.bundles.map((
|
|
2244
|
-
const { pf_vouchers: ee, ...Y } =
|
|
2240
|
+
bundles: U.bundles.map((G) => {
|
|
2241
|
+
const { pf_vouchers: ee, ...Y } = G;
|
|
2245
2242
|
if (!B)
|
|
2246
2243
|
return {
|
|
2247
2244
|
...Y,
|
|
@@ -2255,7 +2252,7 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2255
2252
|
Y.price,
|
|
2256
2253
|
Number(Y.credit.normal),
|
|
2257
2254
|
H,
|
|
2258
|
-
|
|
2255
|
+
q
|
|
2259
2256
|
);
|
|
2260
2257
|
return {
|
|
2261
2258
|
...Y,
|
|
@@ -2271,14 +2268,14 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2271
2268
|
}));
|
|
2272
2269
|
}
|
|
2273
2270
|
async function ke(x, P, B) {
|
|
2274
|
-
const H = !B && !!P,
|
|
2271
|
+
const H = !B && !!P, q = !!B && !P;
|
|
2275
2272
|
let L;
|
|
2276
2273
|
if (H) {
|
|
2277
|
-
const U = Q.taxSystem[0] ? Q.systemDefaultCode(Q.taxSystem[0].code) : void 0,
|
|
2274
|
+
const U = Q.taxSystem[0] ? Q.systemDefaultCode(Q.taxSystem[0].code) : void 0, G = U ? `${U.name} (${U.taxCode})` : a("connect.store.taxPropagation.defaultTax");
|
|
2278
2275
|
L = a("connect.store.taxPropagation.addConfirm", {
|
|
2279
|
-
taxCode:
|
|
2276
|
+
taxCode: G
|
|
2280
2277
|
});
|
|
2281
|
-
} else
|
|
2278
|
+
} else q ? L = a("connect.store.taxPropagation.removeConfirm") : L = a("connect.store.taxPropagation.updateConfirm");
|
|
2282
2279
|
await Ie.confirm(
|
|
2283
2280
|
L,
|
|
2284
2281
|
a("connect.store.taxPropagation.title"),
|
|
@@ -2286,8 +2283,8 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2286
2283
|
a("connect.common.cancel")
|
|
2287
2284
|
) && await t(
|
|
2288
2285
|
async () => {
|
|
2289
|
-
const U = Ae(l.sortedStoreCategories),
|
|
2290
|
-
await Ue.updateStoreBundle({ categories:
|
|
2286
|
+
const U = Ae(l.sortedStoreCategories), G = _e(U, x);
|
|
2287
|
+
await Ue.updateStoreBundle({ categories: G }), await l.readMemberStore(), await l.readMembership(), await l.readRewards();
|
|
2291
2288
|
},
|
|
2292
2289
|
{
|
|
2293
2290
|
message: a("connect.store.taxPropagation.updating"),
|
|
@@ -2296,8 +2293,8 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2296
2293
|
);
|
|
2297
2294
|
}
|
|
2298
2295
|
async function Fe(x) {
|
|
2299
|
-
var
|
|
2300
|
-
const P = ((ee = (
|
|
2296
|
+
var G, ee, Y, ne;
|
|
2297
|
+
const P = ((ee = (G = l.storeOption) == null ? void 0 : G.company) == null ? void 0 : ee.sstRegNo) ?? "", B = pe.cloneDeep(
|
|
2301
2298
|
((Y = l.storeOption) == null ? void 0 : Y.inclusiveTaxes) ?? []
|
|
2302
2299
|
), H = ((ne = x.company) == null ? void 0 : ne.sstRegNo) ?? "";
|
|
2303
2300
|
await t(
|
|
@@ -2310,11 +2307,11 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2310
2307
|
successMessage: a("connect.store.setting.update.success")
|
|
2311
2308
|
}
|
|
2312
2309
|
);
|
|
2313
|
-
const
|
|
2310
|
+
const q = P !== H, L = !pe.isEqual(
|
|
2314
2311
|
B,
|
|
2315
2312
|
x.inclusiveTaxes ?? []
|
|
2316
2313
|
);
|
|
2317
|
-
!(
|
|
2314
|
+
!(q || L) || l.sortedStoreCategories.flatMap(
|
|
2318
2315
|
(we) => we.bundles
|
|
2319
2316
|
).length === 0 || await ke(x, H, P);
|
|
2320
2317
|
}
|
|
@@ -2326,7 +2323,7 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2326
2323
|
}
|
|
2327
2324
|
r.open({
|
|
2328
2325
|
title: x == -1 ? a("connect.store.category.add") : a("connect.store.category.edit"),
|
|
2329
|
-
contentComponent:
|
|
2326
|
+
contentComponent: qt,
|
|
2330
2327
|
contentComponentProps: {
|
|
2331
2328
|
initialValue: ((P = p.value[x]) == null ? void 0 : P.name) ?? "",
|
|
2332
2329
|
action: x == -1 ? "add" : "edit"
|
|
@@ -2337,7 +2334,7 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2337
2334
|
a("connect.store.category.remove.title")
|
|
2338
2335
|
) || await t(
|
|
2339
2336
|
async () => {
|
|
2340
|
-
const H = x == -1 ? [...p.value, { name: B, bundles: [] }] : [...p.value].map((
|
|
2337
|
+
const H = x == -1 ? [...p.value, { name: B, bundles: [] }] : [...p.value].map((q, L) => L == x ? { ...q, name: B } : q).filter((q) => q.name !== null);
|
|
2341
2338
|
await Ue.updateStoreBundle({
|
|
2342
2339
|
categories: H
|
|
2343
2340
|
}), await l.readMemberStore();
|
|
@@ -2350,14 +2347,14 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2350
2347
|
});
|
|
2351
2348
|
}
|
|
2352
2349
|
async function ie(x, P, B, H) {
|
|
2353
|
-
var _, U,
|
|
2354
|
-
P ?? (P = (_ = u.value) == null ? void 0 : _.target.category), B ?? (B = (U = u.value) == null ? void 0 : U.target.index), H ?? (H = (
|
|
2355
|
-
const
|
|
2356
|
-
for (const ee of
|
|
2350
|
+
var _, U, G;
|
|
2351
|
+
P ?? (P = (_ = u.value) == null ? void 0 : _.target.category), B ?? (B = (U = u.value) == null ? void 0 : U.target.index), H ?? (H = (G = u.value) == null ? void 0 : G.target.originalCategoryIndex);
|
|
2352
|
+
const q = Ae(p.value);
|
|
2353
|
+
for (const ee of q)
|
|
2357
2354
|
for (const Y of ee.bundles)
|
|
2358
2355
|
console.log(Y, "bundle in payload"), "pf_vouchers" in Y && delete Y.pf_vouchers;
|
|
2359
|
-
P != H && H != null && (
|
|
2360
|
-
const L =
|
|
2356
|
+
P != H && H != null && (q[H].bundles.splice(B, 1), B = q[P].bundles.length);
|
|
2357
|
+
const L = q[P];
|
|
2361
2358
|
if (!L) {
|
|
2362
2359
|
gt.error("Unexpected error", 2e3);
|
|
2363
2360
|
return;
|
|
@@ -2382,7 +2379,7 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2382
2379
|
));
|
|
2383
2380
|
}
|
|
2384
2381
|
await Ue.updateStoreBundle({
|
|
2385
|
-
categories:
|
|
2382
|
+
categories: q
|
|
2386
2383
|
}), await l.readMemberStore(), await l.readMembership(), await l.readRewards(), (Y = u.value) == null || Y.showSheet(!1);
|
|
2387
2384
|
},
|
|
2388
2385
|
{
|
|
@@ -2402,7 +2399,7 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2402
2399
|
bundle: x.bundle ? Ae(x.bundle) : void 0
|
|
2403
2400
|
});
|
|
2404
2401
|
}
|
|
2405
|
-
const Be =
|
|
2402
|
+
const Be = E(() => [
|
|
2406
2403
|
c,
|
|
2407
2404
|
g,
|
|
2408
2405
|
d
|
|
@@ -2413,7 +2410,7 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2413
2410
|
bundle: x
|
|
2414
2411
|
});
|
|
2415
2412
|
}
|
|
2416
|
-
return
|
|
2413
|
+
return De(async () => {
|
|
2417
2414
|
await f(async () => {
|
|
2418
2415
|
var x, P;
|
|
2419
2416
|
if (await l.readMemberStore(), await l.readMembership(), await l.readRewards(), await l.readPayoutAccount(), await S.readPremium(), oe.value = !0, me.value = xe(), await C(), (x = o.currentRoute.value.query) != null && x.action) {
|
|
@@ -2427,7 +2424,7 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2427
2424
|
case "create_feedvibe_bundle":
|
|
2428
2425
|
r.open({
|
|
2429
2426
|
title: "Select category",
|
|
2430
|
-
contentComponent:
|
|
2427
|
+
contentComponent: Ht
|
|
2431
2428
|
}).onPrimary((B) => {
|
|
2432
2429
|
r.close(), Pe({
|
|
2433
2430
|
categories: y.value,
|
|
@@ -2436,7 +2433,7 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2436
2433
|
bundle: {
|
|
2437
2434
|
...pe.cloneDeep(Ke),
|
|
2438
2435
|
isFeedvibe: !0,
|
|
2439
|
-
price:
|
|
2436
|
+
price: K.Dinero.fromNumber({
|
|
2440
2437
|
number: 10,
|
|
2441
2438
|
precision: 2
|
|
2442
2439
|
}).toObject()
|
|
@@ -2449,7 +2446,7 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2449
2446
|
}
|
|
2450
2447
|
});
|
|
2451
2448
|
}), (x, P) => {
|
|
2452
|
-
const B = v("RouterLink"), H = v("FmPageHead"),
|
|
2449
|
+
const B = v("RouterLink"), H = v("FmPageHead"), q = v("FmPill"), L = v("FmButton"), _ = v("FmCard");
|
|
2453
2450
|
return m(), T(W, null, [
|
|
2454
2451
|
i(H, {
|
|
2455
2452
|
title: e(a)("connect.store.title"),
|
|
@@ -2470,7 +2467,7 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2470
2467
|
]),
|
|
2471
2468
|
_: 1
|
|
2472
2469
|
}, 8, ["title", "actions"]),
|
|
2473
|
-
n("div",
|
|
2470
|
+
n("div", En, [
|
|
2474
2471
|
e(te) ? (m(), R(Yo, {
|
|
2475
2472
|
key: 0,
|
|
2476
2473
|
class: "mt-12",
|
|
@@ -2484,10 +2481,10 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2484
2481
|
class: "mt-12",
|
|
2485
2482
|
onDismiss: fe
|
|
2486
2483
|
})),
|
|
2487
|
-
n("div",
|
|
2484
|
+
n("div", Dn, [
|
|
2488
2485
|
n("div", Bn, [
|
|
2489
2486
|
n("div", Nn, F(e(a)("connect.store.giftCard.title")), 1),
|
|
2490
|
-
i(
|
|
2487
|
+
i(q, {
|
|
2491
2488
|
variant: "premium",
|
|
2492
2489
|
label: e(a)("connect.store.giftCard.new")
|
|
2493
2490
|
}, null, 8, ["label"]),
|
|
@@ -2504,16 +2501,16 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2504
2501
|
!e(N) || !e($).length ? (m(), R(In, {
|
|
2505
2502
|
key: 0,
|
|
2506
2503
|
premium: e(N),
|
|
2507
|
-
onUpgrade:
|
|
2504
|
+
onUpgrade: j,
|
|
2508
2505
|
onComparePlans: Se,
|
|
2509
2506
|
onCreate: s
|
|
2510
2507
|
}, null, 8, ["premium"])) : (m(), T("div", On, [
|
|
2511
2508
|
(m(!0), T(W, null, de(e($), (U) => (m(), R(Mo, {
|
|
2512
2509
|
key: String(U._id),
|
|
2513
2510
|
program: U,
|
|
2514
|
-
onEdit: (
|
|
2515
|
-
onSetLive: (
|
|
2516
|
-
onDeactivate: (
|
|
2511
|
+
onEdit: (G) => k(U),
|
|
2512
|
+
onSetLive: (G) => D(U),
|
|
2513
|
+
onDeactivate: (G) => J(U)
|
|
2517
2514
|
}, null, 8, ["program", "onEdit", "onSetLive", "onDeactivate"]))), 128)),
|
|
2518
2515
|
i(_, {
|
|
2519
2516
|
variant: "outlined",
|
|
@@ -2532,7 +2529,7 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2532
2529
|
]))
|
|
2533
2530
|
]),
|
|
2534
2531
|
e(p) && e(p).length > 0 ? (m(), T(W, { key: 2 }, [
|
|
2535
|
-
(m(!0), T(W, null, de(e(p), (U,
|
|
2532
|
+
(m(!0), T(W, null, de(e(p), (U, G) => (m(), T("div", {
|
|
2536
2533
|
key: U.name,
|
|
2537
2534
|
class: "space-y-8 py-12"
|
|
2538
2535
|
}, [
|
|
@@ -2543,25 +2540,25 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2543
2540
|
icon: "edit",
|
|
2544
2541
|
size: "md",
|
|
2545
2542
|
variant: "tertiary",
|
|
2546
|
-
onClick: (ee) => ye(
|
|
2543
|
+
onClick: (ee) => ye(G)
|
|
2547
2544
|
}, null, 8, ["onClick"])
|
|
2548
2545
|
]),
|
|
2549
2546
|
n("div", jn, [
|
|
2550
|
-
(m(!0), T(W, null, de(U.bundles, (ee, Y) => (m(), R(
|
|
2547
|
+
(m(!0), T(W, null, de(U.bundles, (ee, Y) => (m(), R(Mt, {
|
|
2551
2548
|
bundle: ee,
|
|
2552
2549
|
key: ee._id,
|
|
2553
2550
|
onEdit: (ne) => Pe({
|
|
2554
2551
|
bundle: ee,
|
|
2555
|
-
category:
|
|
2552
|
+
category: G,
|
|
2556
2553
|
index: Y,
|
|
2557
2554
|
categories: e(y)
|
|
2558
2555
|
}),
|
|
2559
|
-
onDelete: (ne) => ie(null,
|
|
2556
|
+
onDelete: (ne) => ie(null, G, Y),
|
|
2560
2557
|
onSend: Ne
|
|
2561
2558
|
}, null, 8, ["bundle", "onEdit", "onDelete"]))), 128)),
|
|
2562
|
-
i(
|
|
2559
|
+
i(Ot, {
|
|
2563
2560
|
onCreate: (ee) => Pe({
|
|
2564
|
-
category:
|
|
2561
|
+
category: G,
|
|
2565
2562
|
index: -1,
|
|
2566
2563
|
categories: e(y)
|
|
2567
2564
|
})
|
|
@@ -2596,7 +2593,7 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2596
2593
|
]),
|
|
2597
2594
|
_: 1
|
|
2598
2595
|
})),
|
|
2599
|
-
i(
|
|
2596
|
+
i(uo, {
|
|
2600
2597
|
ref_key: "settingSheetRef",
|
|
2601
2598
|
ref: w,
|
|
2602
2599
|
onUpdate: Fe
|
|
@@ -2611,5 +2608,5 @@ const Un = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2611
2608
|
}
|
|
2612
2609
|
});
|
|
2613
2610
|
export {
|
|
2614
|
-
|
|
2611
|
+
wa as default
|
|
2615
2612
|
};
|