@feedmepos/mf-connect 0.1.110-prod → 0.1.111-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/{App-BIuwkgjE.js → App-D3pYl3WL.js} +494 -475
- package/dist/{Bin-B6PDvhj7.js → Bin-DOZqpbYH.js} +8 -8
- package/dist/{Broadcast-BsUYu9Kq.js → Broadcast-DZ4SP99P.js} +82 -79
- package/dist/{CampaignAnalytic-D0_Kh2Sv.js → CampaignAnalytic-cFKvCgxX.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-bfMr_7XS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B0eVEubS.js} +7 -6
- package/dist/{Card-D5sknDf_.js → Card-B5ni027Q.js} +21 -20
- package/dist/{Collections-B0umkbKL.js → Collections-9QK5hbLo.js} +9 -9
- package/dist/{Credit-DMrHYtmf.js → Credit-8Ouy4O9a.js} +11 -11
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-IuEHozwd.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CJA-yunY.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C06_qwVx.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYxswo-Z.js} +33 -32
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CHCLAOYT.js → EffectSheet.vue_vue_type_style_index_0_lang-Dv0q3B8m.js} +6 -6
- package/dist/{Experience-3xvTI41j.js → Experience-DMh4hR1S.js} +86 -83
- package/dist/{FileSaver.min-CEjHOYSg.js → FileSaver.min-Bx9mdUgJ.js} +1 -1
- package/dist/{Game-Drkfnm94.js → Game-CL0TZvg1.js} +12 -12
- package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-Bz5kIfoM.js +424 -0
- package/dist/Goals-Dz5Vp-lj.js +247 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BYIIaPD9.js → ImageInput.vue_vue_type_script_setup_true_lang-CaPDI3vY.js} +1 -1
- package/dist/{Index-BNfZ-mAu.js → Index-kH8aAegB.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CqJLimu2.js → LocationPicker.vue_vue_type_script_setup_true_lang-CFrgC3Ka.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BnMjqLMU.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DPIFLdBc.js} +1 -1
- package/dist/{LoyaltyDashboard-BmRdWFCw.js → LoyaltyDashboard-BBxEoWol.js} +1216 -1170
- package/dist/{MainLayout-m4H59w6_.js → MainLayout-2BLwDyHQ.js} +3 -3
- package/dist/{Marketing-BqdCdc76.js → Marketing-C4OnSV-c.js} +4 -4
- package/dist/{MarketingMaterialEdit-UjCEMJ7c.js → MarketingMaterialEdit-DFhpsI2-.js} +6 -6
- package/dist/{Member-BbpQizye.js → Member-CT9WwxP0.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BbL7cw4g.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-C7yznkUn.js} +25 -24
- package/dist/{MemberImportHistory-FYMyd_uX.js → MemberImportHistory-B__BFID7.js} +7 -7
- package/dist/{MemberList-CFtv0HI5.js → MemberList-DgLI4wty.js} +14 -14
- package/dist/{MemberTransactions-BYpugGs7.js → MemberTransactions-UFx_DZYe.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CDzQ0rnK.js → MessageInput.vue_vue_type_script_setup_true_lang-BFjZA8Y6.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BlhwugZQ.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Df9bxbUl.js} +1 -1
- package/dist/{Mission-BMhY1kl1.js → Mission-CawzGzDu.js} +83 -80
- package/dist/{Overview-BmZelkd_.js → Overview-CAtTlEVa.js} +4 -4
- package/dist/{Overview-E0KL28Fc.js → Overview-D19oSo24.js} +21 -20
- package/dist/{Point-BX5p9ZVF.js → Point-BPAGmKAj.js} +119 -110
- package/dist/{Promotion-D662WYaR.js → Promotion-B0Uf9vjL.js} +89 -86
- package/dist/{Queue-CI5rumWZ.js → Queue-CJEAFss_.js} +13 -12
- package/dist/{Record-DRZVEW0I.js → Record-s6hSQG2P.js} +9 -9
- package/dist/{Review-yMVGBErp.js → Review-DhNCbAOm.js} +2 -2
- package/dist/{ReviewFacebookCallback-Docv-Uil.js → ReviewFacebookCallback-DeZqcpJo.js} +5 -5
- package/dist/{ReviewGoogleCallback-3xVh_G7M.js → ReviewGoogleCallback-D8ENWii2.js} +5 -5
- package/dist/{Reward-lzBLyu0x.js → Reward-BT00QsXL.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bs32tPvC.js → RewardGroup.vue_vue_type_script_setup_true_lang-DaZDGhbm.js} +14 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-fNwFSHL1.js → RuleGroup.vue_vue_type_script_setup_true_lang-BvxbKSkB.js} +16 -15
- package/dist/{Segment-BRPf66q8.js → Segment-BuGhX9zg.js} +27 -26
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DQmbCewC.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DB718_4P.js} +31 -30
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-fHX_ftax.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CkgXxy0C.js} +4 -4
- package/dist/{Setting-D5k2jymY.js → Setting-BOWPp05N.js} +14 -14
- package/dist/{SettingAdvertisements-1Oc29mzb.js → SettingAdvertisements-aqFErKAr.js} +12 -12
- package/dist/{Settings-B3OCofxq.js → Settings-DekXvE-R.js} +5 -5
- package/dist/{Store-B8WVn8ZA.js → Store-DpVlMuau.js} +24 -23
- package/dist/{StoreRewards-C7_RKZ00.js → StoreRewards-D2pTL2oA.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CmqgxDJ6.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CNDv6eiZ.js} +26 -25
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BW-HTNMr.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C-C3RSeW.js} +2 -2
- package/dist/{Tier-8pGUR8GA.js → Tier-OyE8oH2r.js} +333 -330
- package/dist/{Title-DnYVX2k8.js → Title-DAl7CKL_.js} +24 -23
- package/dist/{Transaction-YJkVkePM.js → Transaction-mvKzTgLx.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-ATWU025y.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C0yHxQVr.js} +6 -6
- package/dist/Voucher-D2QGWSxs.js +837 -0
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-C1dCFS2S.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Bt2YB745.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CbUdt4GK.js → ZodTextField.vue_vue_type_script_setup_true_lang-BzCL64Jo.js} +2 -2
- package/dist/{app-DoUnw6pe.js → app-QxosLNkH.js} +1133 -824
- package/dist/app.js +1 -1
- package/dist/{business-B-PlsFIY.js → business-CbqG6NXr.js} +1 -1
- package/dist/{campaign-GkMET7FI.js → campaign-Co4Lq-Wz.js} +8 -8
- package/dist/{campaign-yUUxyk0R.js → campaign-Rj7oDBnN.js} +2 -2
- package/dist/{campaign.enum-DbPiwqfi.js → campaign.enum-B7vdNYKd.js} +1 -1
- package/dist/{campaign.fn-CF5mOcSE.js → campaign.fn-DolD3lYJ.js} +3 -3
- package/dist/{collectible.enum-CbOzGIud.js → collectible.enum-BsQseg7-.js} +1 -1
- package/dist/{collection.fn-BByCTXVz.js → collection.fn-EbUIyB1X.js} +2 -2
- package/dist/{effect-jriAOaEq.js → effect-B_91OlcX.js} +1 -1
- package/dist/{email-addresses-DH4xgace.js → email-addresses-DXnYZG-e.js} +2 -2
- package/dist/{export-CN3lbc2j.js → export-D0hWZSfH.js} +3 -3
- package/dist/{helper-CQjM35T_.js → helper-_uhiXya1.js} +1 -1
- package/dist/{index-CptAtzHf.js → index-BBihP1s2.js} +2 -2
- package/dist/index-BWgc2-Qz.js +171 -0
- package/dist/{index-De9f7Fwe.js → index-BZ2b0Pk6.js} +5 -5
- package/dist/{index-BLOFQAMK.js → index-CDm0BWa3.js} +1 -1
- package/dist/{index-iZDBfoRk.js → index-CWUmrVo_.js} +2 -2
- package/dist/{index-Dr68iOIO.js → index-C_1iqF1Q.js} +1 -1
- package/dist/{index-Duqxyi9L.js → index-Cp7oHMm3.js} +1109 -32
- package/dist/{index-BHYKmUkc.js → index-CzYxnDWP.js} +2 -2
- package/dist/{index-v3DTwO9s.js → index-Df4l6y-S.js} +6 -6
- package/dist/{index-MtVkfI7s.js → index-DlGnYR5y.js} +3 -3
- package/dist/{index-BlKeV6aM.js → index-DlQJZNwD.js} +1 -1
- package/dist/{index-CCBpqK6M.js → index-DuhRCI0L.js} +1 -1
- package/dist/{index-D1vRPik1.js → index-DzBzClHP.js} +1 -1
- package/dist/{index-DszI88g9.js → index-aCuOvuEC.js} +1 -1
- package/dist/{index-BPTCREXM.js → index-tbo0pMIu.js} +1 -1
- package/dist/{index-DKZEN-aI.js → index-uuNGb1nv.js} +3 -3
- package/dist/{index-DEmV6_BZ.js → index-xuFTeVrb.js} +9 -8
- package/dist/{index.esm2017-DvOnDQUA.js → index.esm2017-B72iWwk_.js} +1 -1
- package/dist/{loading-DO3WUS3q.js → loading-rIhCiB_S.js} +1 -1
- package/dist/{lodash-6izwukKR.js → lodash-B6fOjfjd.js} +1 -1
- package/dist/{member-import-hKbS-7lM.js → member-import-CbHn7zss.js} +1 -1
- package/dist/{membership-buZOqdNV.js → membership-DkJN7jyQ.js} +3 -3
- package/dist/{money-WR6-v2Bl.js → money-ChbDx6Nq.js} +1 -1
- package/dist/{number-CjEejmUn.js → number-9TEd27Ku.js} +1 -1
- package/dist/{objectid-BvtNS241.js → objectid-CGol1NeA.js} +13 -13
- package/dist/onboarding-BN3MKVRs.js +131 -0
- package/dist/onboardingSetup-D9xhdgS3.js +17 -0
- package/dist/{plugins-BLcKp-ww.js → plugins-CCibSJZa.js} +3 -3
- package/dist/{reward-DCNR2-_F.js → reward-DjasF-NL.js} +1 -1
- package/dist/{rule-BsdMlDuH.js → rule-DqeChj0e.js} +3 -3
- package/dist/{rule-builder-C2z6Ki1X.js → rule-builder-DT854ycI.js} +1 -1
- package/dist/{template-DuuTNfO4.js → template-BeCVA0-N.js} +7 -7
- package/dist/{timezone-nMBfnPp_.js → timezone-D0nC1LDx.js} +1 -1
- package/dist/{transaction.fn-CYC2Uh5Y.js → transaction.fn-BkF4Ad2z.js} +2 -2
- package/dist/{trigger-CtlvsU7_.js → trigger-CxpXoQJO.js} +5 -5
- package/dist/{useMarketingMaterialActions-Dec-VZh7.js → useMarketingMaterialActions-p0-fyMkm.js} +3 -3
- package/dist/{usePagination-DvJ9IfI_.js → usePagination-CrC-1v4L.js} +1 -1
- package/dist/{user-CYOAXuDw.js → user-CrylHgF1.js} +1 -1
- package/dist/{vue-i18n-Cy0bIZpQ.js → vue-i18n-BjtkXdmG.js} +158 -158
- package/dist/{xlsx-Ct_b6gSU.js → xlsx-CJNYF7-l.js} +166 -166
- package/dist/{zod-DZR76_dr.js → zod-Dzn9S95S.js} +1 -1
- package/package.json +1 -1
- package/dist/Voucher-BcCzreI3.js +0 -443
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { defineComponent as q, resolveComponent as w, openBlock as C, createElementBlock as B, Fragment as Y, createVNode as c, withCtx as V, createElementVNode as a, toDisplayString as O, unref as r, renderSlot as ve, ref as k, computed as G, watch as ie, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as de, createTextVNode as ce, createCommentVNode as z, h as te, onMounted as _e } from "vue";
|
|
2
2
|
import { _ as ge } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { u as Z } from "./vue-i18n-
|
|
4
|
-
import { u as ue } from "./loading-
|
|
5
|
-
import { p as K } from "./plugins-
|
|
3
|
+
import { u as Z } from "./vue-i18n-BjtkXdmG.js";
|
|
4
|
+
import { u as ue } from "./loading-rIhCiB_S.js";
|
|
5
|
+
import { p as K } from "./plugins-CCibSJZa.js";
|
|
6
6
|
import { J as X } from "./JsonViewer-v8_C7l5N.js";
|
|
7
|
-
import { Z as N } from "./zod-
|
|
7
|
+
import { Z as N } from "./zod-Dzn9S95S.js";
|
|
8
8
|
import { u as W } from "./app-wDQR6dpb.js";
|
|
9
|
-
import { u as Q, _ as we } from "./RewardGroup.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as me } from "./reward-
|
|
11
|
-
import { m as le, k as se } from "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import {
|
|
15
|
-
import "./index-
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
9
|
+
import { u as Q, _ as we } from "./RewardGroup.vue_vue_type_script_setup_true_lang-DaZDGhbm.js";
|
|
10
|
+
import { u as me } from "./reward-DjasF-NL.js";
|
|
11
|
+
import { m as le, k as se } from "./index-Df4l6y-S.js";
|
|
12
|
+
import "./index-DlGnYR5y.js";
|
|
13
|
+
import "./index-uuNGb1nv.js";
|
|
14
|
+
import { b as ye, c as be } from "./index-Cp7oHMm3.js";
|
|
15
|
+
import "./index-BZ2b0Pk6.js";
|
|
16
|
+
import "./index-BWgc2-Qz.js";
|
|
17
|
+
import { C as fe } from "./membership-DkJN7jyQ.js";
|
|
18
|
+
import { t as ee } from "./helper-_uhiXya1.js";
|
|
18
19
|
import { c as H } from "./object-BYyQ0PZp.js";
|
|
19
20
|
import { useDialog as xe, components as oe } from "@feedmepos/ui-library";
|
|
20
|
-
import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
21
|
-
import { a as Re, _ as Se, b as ke } from "./trigger-
|
|
22
|
-
import { O as Fe } from "./objectid-
|
|
21
|
+
import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BzCL64Jo.js";
|
|
22
|
+
import { a as Re, _ as Se, b as ke } from "./trigger-CxpXoQJO.js";
|
|
23
|
+
import { O as Fe } from "./objectid-CGol1NeA.js";
|
|
23
24
|
import { c as $e } from "./string-Gcy5IM_H.js";
|
|
24
|
-
import { r as pe } from "./index-
|
|
25
|
-
import { u as Pe } from "./business-
|
|
25
|
+
import { r as pe } from "./index-C_1iqF1Q.js";
|
|
26
|
+
import { u as Pe } from "./business-CbqG6NXr.js";
|
|
26
27
|
const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Te = { class: "flex-1" }, Ue = { class: "flex items-center gap-8" }, Ae = { class: "fm-typo-en-title-sm-800" }, Le = { class: "flex gap-8 items-center" }, Ee = { class: "space-y-4 hidden xs:!block border-b border-fm-color-neutral-gray-100 px-16 flex-1 pb-24" }, Be = { class: "flex items-center justify-between" }, Oe = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, je = { class: "flex-1 space-y-4" }, De = { class: "fm-typo-en-body-lg-600" }, Ge = /* @__PURE__ */ q({
|
|
27
28
|
__name: "ReferralRewadGroupCard",
|
|
28
29
|
props: {
|
|
@@ -739,7 +740,7 @@ const nr = { class: "flex flex-col space-y-16 mt-24" }, lr = { class: "flex just
|
|
|
739
740
|
}), mr = { class: "fm-typo-en-title-sm-600" }, fr = { class: "grid grid-cols-4 xs:grid-cols-1 gap-4 divide-x xs:divide-x-0" }, pr = { class: "flex gap-x-8" }, hr = { class: "fm-typo-body-lg-600 flex items-center gap-x-4" }, vr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _r = { class: "mb-40" }, gr = {
|
|
740
741
|
key: 0,
|
|
741
742
|
class: "flex flex-col items-center justify-center gap-y-16 p-24"
|
|
742
|
-
}, wr = { class: "flex flex-col gap-16 text-center" }, yr = { class: "fm-typo-en-title-sm-800" }, br = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
743
|
+
}, wr = { class: "flex flex-col gap-16 text-center" }, yr = { class: "fm-typo-en-title-sm-800" }, br = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Kr = /* @__PURE__ */ q({
|
|
743
744
|
__name: "Overview",
|
|
744
745
|
setup(F) {
|
|
745
746
|
const { t: l } = Z(), { minor: I } = ue, p = Pe(), g = Q(), { confirmUpdateReferralRecord: f, updateReferralRecord: s } = he(), u = G(() => {
|
|
@@ -1075,5 +1076,5 @@ const nr = { class: "flex flex-col space-y-16 mt-24" }, lr = { class: "flex just
|
|
|
1075
1076
|
}
|
|
1076
1077
|
});
|
|
1077
1078
|
export {
|
|
1078
|
-
|
|
1079
|
+
Kr as default
|
|
1079
1080
|
};
|
|
@@ -1,63 +1,65 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { p as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { g as
|
|
9
|
-
import { u as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { u as
|
|
13
|
-
import "./index-
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
1
|
+
import { defineComponent as Y, ref as B, computed as z, h as b, onMounted as J, resolveComponent as m, openBlock as u, createElementBlock as x, Fragment as k, createVNode as i, unref as o, withCtx as v, createElementVNode as n, toDisplayString as f, renderList as Q, createBlock as F, resolveDynamicComponent as W } from "vue";
|
|
2
|
+
import { _ as X } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as Z, components as P } from "@feedmepos/ui-library";
|
|
4
|
+
import { p as ee } from "./plugins-CCibSJZa.js";
|
|
5
|
+
import { u as te } from "./loading-rIhCiB_S.js";
|
|
6
|
+
import { u as oe } from "./business-CbqG6NXr.js";
|
|
7
|
+
import { u as ae } from "./campaign-Rj7oDBnN.js";
|
|
8
|
+
import { g as ne, a as V, b as R } from "./campaign-Co4Lq-Wz.js";
|
|
9
|
+
import { u as ie, c as re, p as se } from "./template-BeCVA0-N.js";
|
|
10
|
+
import { _ as le } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
11
|
+
import { _ as ce } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYxswo-Z.js";
|
|
12
|
+
import { u as me } from "./vue-i18n-BjtkXdmG.js";
|
|
13
|
+
import "./index-CDm0BWa3.js";
|
|
14
|
+
import { u as pe } from "./onboardingSetup-D9xhdgS3.js";
|
|
15
|
+
import { a as de } from "./index-Cp7oHMm3.js";
|
|
16
|
+
import { useRouter as ue } from "vue-router";
|
|
17
|
+
import { c as g } from "./index-CzYxnDWP.js";
|
|
18
|
+
import { R as fe } from "./app-QxosLNkH.js";
|
|
19
|
+
const ge = { class: "flex items-center" }, ye = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, _e = { class: "px-24 flex flex-col gap-y-16" }, he = { class: "flex items-center justify-between w-full" }, we = { class: "flex gap-8 overflow-x-auto" }, Ce = { class: "space-y-8" }, be = { class: "flex w-full gap-4 items-center" }, ve = { class: "space-y-4" }, xe = { class: "fm-typo-en-body-lg-600" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fe = { class: "flex items-center gap-8" }, Pe = { class: "flex flex-col gap-16 text-center" }, Se = { class: "fm-typo-en-title-sm-800" }, Ne = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ze = /* @__PURE__ */ Y({
|
|
18
20
|
__name: "Point",
|
|
19
|
-
setup(
|
|
20
|
-
const { t:
|
|
21
|
-
label:
|
|
22
|
-
type:
|
|
21
|
+
setup(Ie) {
|
|
22
|
+
const { t: r } = me(), E = ue(), $ = {
|
|
23
|
+
label: r("connect.program.common.actions.create", {
|
|
24
|
+
type: r("connect.program.point.title").toLowerCase()
|
|
23
25
|
}),
|
|
24
26
|
value: "create",
|
|
25
27
|
isPrimary: !0,
|
|
26
28
|
prependIcon: "add"
|
|
27
|
-
}, D =
|
|
29
|
+
}, D = ie("COIN", Z()), y = oe(), p = ae(), { global: T, minor: S } = te, l = B({
|
|
28
30
|
searchKey: "",
|
|
29
31
|
location: []
|
|
30
32
|
});
|
|
31
|
-
function
|
|
33
|
+
function K(e) {
|
|
32
34
|
const t = l.value.location;
|
|
33
35
|
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((c) => {
|
|
34
|
-
var
|
|
35
|
-
return (
|
|
36
|
+
var s;
|
|
37
|
+
return (s = e == null ? void 0 : e.targetLocation) == null ? void 0 : s.includes(c);
|
|
36
38
|
}) : e.targetLocation.includes(t);
|
|
37
39
|
}
|
|
38
|
-
const
|
|
39
|
-
() => p.campaigns.point.filter((e) =>
|
|
40
|
-
),
|
|
40
|
+
const _ = z(
|
|
41
|
+
() => p.campaigns.point.filter((e) => K(e))
|
|
42
|
+
), M = [
|
|
41
43
|
{
|
|
42
|
-
header:
|
|
44
|
+
header: r("connect.program.common.table.title"),
|
|
43
45
|
accessorFn: (e) => e.name
|
|
44
46
|
},
|
|
45
47
|
{
|
|
46
|
-
header:
|
|
47
|
-
accessorFn: (e) =>
|
|
48
|
+
header: r("connect.program.common.table.status"),
|
|
49
|
+
accessorFn: (e) => ne(e),
|
|
48
50
|
cell(e) {
|
|
49
|
-
return
|
|
51
|
+
return V(e.row.original);
|
|
50
52
|
}
|
|
51
53
|
},
|
|
52
54
|
{
|
|
53
|
-
header:
|
|
54
|
-
accessorFn: (e) =>
|
|
55
|
+
header: r("connect.program.common.table.summary"),
|
|
56
|
+
accessorFn: (e) => R(e)
|
|
55
57
|
},
|
|
56
58
|
{
|
|
57
|
-
header:
|
|
59
|
+
header: r("connect.program.common.table.actions"),
|
|
58
60
|
cell(e) {
|
|
59
|
-
return
|
|
60
|
-
|
|
61
|
+
return b("div", { class: "flex items-center gap-8 justify-end" }, [
|
|
62
|
+
b(P.FmButton, {
|
|
61
63
|
variant: "tertiary",
|
|
62
64
|
icon: "insights",
|
|
63
65
|
iconColor: "neutral-gray-400",
|
|
@@ -65,28 +67,28 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
65
67
|
t.stopPropagation(), await I(e.row.original);
|
|
66
68
|
}
|
|
67
69
|
}),
|
|
68
|
-
|
|
70
|
+
b(P.FmButton, {
|
|
69
71
|
variant: "tertiary",
|
|
70
72
|
icon: "content_copy",
|
|
71
73
|
iconColor: "neutral-gray-400",
|
|
72
74
|
onClick: async (t) => {
|
|
73
|
-
t.stopPropagation(), await
|
|
75
|
+
t.stopPropagation(), await L(e.row.original);
|
|
74
76
|
}
|
|
75
77
|
}),
|
|
76
|
-
|
|
78
|
+
b(P.FmButton, {
|
|
77
79
|
variant: "tertiary",
|
|
78
80
|
icon: "delete",
|
|
79
81
|
iconColor: "neutral-gray-400",
|
|
80
82
|
onClick: (t) => {
|
|
81
|
-
t.stopPropagation(),
|
|
83
|
+
t.stopPropagation(), N(e.row.original);
|
|
82
84
|
}
|
|
83
85
|
})
|
|
84
86
|
]);
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
|
-
],
|
|
88
|
-
async function
|
|
89
|
-
await
|
|
89
|
+
], h = B();
|
|
90
|
+
async function N(e) {
|
|
91
|
+
await ee.remove(`Are you sure you want to remove ${e.name}?`) && await S(
|
|
90
92
|
async () => {
|
|
91
93
|
await g.delete(e._id), await p.read("COIN");
|
|
92
94
|
},
|
|
@@ -96,13 +98,13 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
96
98
|
}
|
|
97
99
|
);
|
|
98
100
|
}
|
|
99
|
-
async function
|
|
101
|
+
async function w(e) {
|
|
100
102
|
e ? await t() : D.open(async (c) => {
|
|
101
103
|
await t(c);
|
|
102
104
|
});
|
|
103
105
|
async function t(c) {
|
|
104
|
-
var
|
|
105
|
-
(
|
|
106
|
+
var s;
|
|
107
|
+
(s = h.value) == null || s.showSheet(
|
|
106
108
|
!0,
|
|
107
109
|
"COIN",
|
|
108
110
|
e ? await g.readById(e._id) : void 0,
|
|
@@ -111,27 +113,27 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
115
|
async function I(e) {
|
|
114
|
-
await
|
|
115
|
-
name:
|
|
116
|
+
await E.push({
|
|
117
|
+
name: fe["$connect-PROGRAM_POINT_ANALYTIC"],
|
|
116
118
|
params: { id: e._id }
|
|
117
119
|
});
|
|
118
120
|
}
|
|
119
|
-
async function
|
|
120
|
-
var
|
|
121
|
-
if (!await
|
|
121
|
+
async function L(e) {
|
|
122
|
+
var s;
|
|
123
|
+
if (!await re(e.name))
|
|
122
124
|
return;
|
|
123
125
|
const t = await g.readById(e._id), c = se(t, {
|
|
124
126
|
keepCollectible: !0
|
|
125
127
|
});
|
|
126
|
-
(
|
|
128
|
+
(s = h.value) == null || s.showSheet(
|
|
127
129
|
!0,
|
|
128
130
|
"COIN",
|
|
129
131
|
c,
|
|
130
132
|
t.template
|
|
131
133
|
);
|
|
132
134
|
}
|
|
133
|
-
async function
|
|
134
|
-
await
|
|
135
|
+
async function U(e) {
|
|
136
|
+
await S(
|
|
135
137
|
async () => {
|
|
136
138
|
e.campaign._id ? await g.update(e.campaign._id, e) : await g.create(e), await p.read("COIN");
|
|
137
139
|
},
|
|
@@ -141,28 +143,35 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
141
143
|
}
|
|
142
144
|
);
|
|
143
145
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
const A = pe();
|
|
147
|
+
return J(async () => {
|
|
148
|
+
var e;
|
|
149
|
+
await T(async () => {
|
|
146
150
|
await p.read("COIN");
|
|
147
|
-
})
|
|
151
|
+
}), await A.consume() === "POINT_SPEND_EARN" && y.isPremium && ((e = h.value) == null || e.showSheet(
|
|
152
|
+
!0,
|
|
153
|
+
"COIN",
|
|
154
|
+
void 0,
|
|
155
|
+
await A.template(de)
|
|
156
|
+
));
|
|
148
157
|
}), (e, t) => {
|
|
149
|
-
const c = m("FmPill"),
|
|
158
|
+
const c = m("FmPill"), s = m("FmPageHead"), O = m("FmSearch"), j = m("FmTable"), C = m("FmButton"), H = m("FmListItem"), q = m("FmList"), G = m("FmCard");
|
|
150
159
|
return u(), x(k, null, [
|
|
151
|
-
i(
|
|
152
|
-
title: o(
|
|
153
|
-
actions: o(
|
|
154
|
-
"onClick:action": t[0] || (t[0] = () =>
|
|
160
|
+
i(s, {
|
|
161
|
+
title: o(r)("connect.program.point.title"),
|
|
162
|
+
actions: o(_).length > 0 && o(y).isPremium ? [$] : [],
|
|
163
|
+
"onClick:action": t[0] || (t[0] = () => w())
|
|
155
164
|
}, {
|
|
156
|
-
title:
|
|
157
|
-
n("div",
|
|
158
|
-
n("span",
|
|
165
|
+
title: v(() => [
|
|
166
|
+
n("div", ge, [
|
|
167
|
+
n("span", ye, f(o(r)("connect.program.point.title")), 1),
|
|
159
168
|
i(c, { variant: "premium" })
|
|
160
169
|
])
|
|
161
170
|
]),
|
|
162
171
|
_: 1
|
|
163
172
|
}, 8, ["title", "actions"]),
|
|
164
|
-
n("div",
|
|
165
|
-
i(
|
|
173
|
+
n("div", _e, [
|
|
174
|
+
i(O, {
|
|
166
175
|
modelValue: o(l).searchKey,
|
|
167
176
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).searchKey = a),
|
|
168
177
|
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
@@ -170,19 +179,19 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
170
179
|
collapsible: ""
|
|
171
180
|
}, null, 8, ["modelValue"]),
|
|
172
181
|
o(p).campaigns.point && o(p).campaigns.point.length > 0 ? (u(), x(k, { key: 0 }, [
|
|
173
|
-
n("div",
|
|
174
|
-
n("div",
|
|
175
|
-
i(
|
|
176
|
-
label: `${o(
|
|
182
|
+
n("div", he, [
|
|
183
|
+
n("div", we, [
|
|
184
|
+
i(le, {
|
|
185
|
+
label: `${o(r)("connect.common.location")}: `,
|
|
177
186
|
"right-icon": "keyboard_arrow_down",
|
|
178
187
|
modelValue: o(l).location,
|
|
179
188
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(l).location = a),
|
|
180
189
|
icon: "storefront",
|
|
181
190
|
"show-item-label": !0,
|
|
182
|
-
items: o(
|
|
191
|
+
items: o(y).locationOptions
|
|
183
192
|
}, null, 8, ["label", "modelValue", "items"])
|
|
184
193
|
]),
|
|
185
|
-
i(
|
|
194
|
+
i(O, {
|
|
186
195
|
modelValue: o(l).searchKey,
|
|
187
196
|
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).searchKey = a),
|
|
188
197
|
class: "xs:hidden sm:hidden",
|
|
@@ -190,36 +199,36 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
190
199
|
collapsible: ""
|
|
191
200
|
}, null, 8, ["modelValue"])
|
|
192
201
|
]),
|
|
193
|
-
i(
|
|
202
|
+
i(j, {
|
|
194
203
|
class: "xs:hidden sm:hidden",
|
|
195
|
-
"row-data": o(
|
|
196
|
-
"column-defs":
|
|
204
|
+
"row-data": o(_),
|
|
205
|
+
"column-defs": M,
|
|
197
206
|
"search-value": o(l).searchKey,
|
|
198
207
|
"column-filter": [],
|
|
199
|
-
onRowClick: t[4] || (t[4] = (a) =>
|
|
200
|
-
"hide-footer": o(
|
|
208
|
+
onRowClick: t[4] || (t[4] = (a) => w(a.original)),
|
|
209
|
+
"hide-footer": o(_).length < 10
|
|
201
210
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
202
|
-
i(
|
|
203
|
-
default:
|
|
204
|
-
(u(!0), x(k, null,
|
|
211
|
+
i(q, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
212
|
+
default: v(() => [
|
|
213
|
+
(u(!0), x(k, null, Q(o(_).filter(
|
|
205
214
|
(a) => a.name.toLowerCase().includes(o(l).searchKey.toLowerCase())
|
|
206
|
-
), (a) => (u(), F(
|
|
215
|
+
), (a) => (u(), F(H, {
|
|
207
216
|
key: a._id.toString(),
|
|
208
|
-
onClick: (d) =>
|
|
217
|
+
onClick: (d) => w(a),
|
|
209
218
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
210
219
|
}, {
|
|
211
|
-
default:
|
|
212
|
-
n("div",
|
|
213
|
-
n("div",
|
|
214
|
-
(u(), F(
|
|
220
|
+
default: v(() => [
|
|
221
|
+
n("div", Ce, [
|
|
222
|
+
n("div", be, [
|
|
223
|
+
(u(), F(W(o(V)(a))))
|
|
215
224
|
]),
|
|
216
|
-
n("div",
|
|
217
|
-
n("div",
|
|
218
|
-
n("div",
|
|
225
|
+
n("div", ve, [
|
|
226
|
+
n("div", xe, f(a.name), 1),
|
|
227
|
+
n("div", ke, f(o(R)(a)), 1)
|
|
219
228
|
])
|
|
220
229
|
]),
|
|
221
|
-
n("div",
|
|
222
|
-
i(
|
|
230
|
+
n("div", Fe, [
|
|
231
|
+
i(C, {
|
|
223
232
|
icon: "insights",
|
|
224
233
|
"icon-color": "neutral-gray-400",
|
|
225
234
|
variant: "tertiary",
|
|
@@ -227,19 +236,19 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
227
236
|
d.stopPropagation(), await I(a);
|
|
228
237
|
}
|
|
229
238
|
}, null, 8, ["onClick"]),
|
|
230
|
-
i(
|
|
239
|
+
i(C, {
|
|
231
240
|
icon: "content_copy",
|
|
232
241
|
"icon-color": "neutral-gray-400",
|
|
233
242
|
variant: "tertiary",
|
|
234
243
|
onClick: async (d) => {
|
|
235
|
-
d.stopPropagation(), await
|
|
244
|
+
d.stopPropagation(), await L(a);
|
|
236
245
|
}
|
|
237
246
|
}, null, 8, ["onClick"]),
|
|
238
|
-
i(
|
|
247
|
+
i(C, {
|
|
239
248
|
icon: "delete",
|
|
240
249
|
"icon-color": "neutral-gray-400",
|
|
241
250
|
variant: "tertiary",
|
|
242
|
-
onClick: (d) => (d.stopPropagation(),
|
|
251
|
+
onClick: (d) => (d.stopPropagation(), N(a))
|
|
243
252
|
}, null, 8, ["onClick"])
|
|
244
253
|
])
|
|
245
254
|
]),
|
|
@@ -248,34 +257,34 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
248
257
|
]),
|
|
249
258
|
_: 1
|
|
250
259
|
})
|
|
251
|
-
], 64)) : (u(), F(
|
|
260
|
+
], 64)) : (u(), F(G, {
|
|
252
261
|
key: 1,
|
|
253
262
|
variant: "outlined",
|
|
254
263
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
255
264
|
}, {
|
|
256
|
-
default:
|
|
265
|
+
default: v(() => [
|
|
257
266
|
t[6] || (t[6] = n("img", {
|
|
258
|
-
src:
|
|
267
|
+
src: X,
|
|
259
268
|
class: "aspect-square w-[150px]"
|
|
260
269
|
}, null, -1)),
|
|
261
|
-
n("div",
|
|
262
|
-
n("div",
|
|
263
|
-
n("div",
|
|
270
|
+
n("div", Pe, [
|
|
271
|
+
n("div", Se, f(o(r)("connect.program.point.empty_state.title")), 1),
|
|
272
|
+
n("div", Ne, f(o(r)("connect.program.point.empty_state.description")), 1)
|
|
264
273
|
]),
|
|
265
|
-
i(
|
|
274
|
+
i(C, {
|
|
266
275
|
variant: "primary",
|
|
267
276
|
label: "Create point program",
|
|
268
|
-
disabled: !o(
|
|
277
|
+
disabled: !o(y).isPremium,
|
|
269
278
|
icon: "add",
|
|
270
|
-
onClick: t[5] || (t[5] = (a) =>
|
|
279
|
+
onClick: t[5] || (t[5] = (a) => w())
|
|
271
280
|
}, null, 8, ["disabled"])
|
|
272
281
|
]),
|
|
273
282
|
_: 1
|
|
274
283
|
})),
|
|
275
|
-
i(
|
|
284
|
+
i(ce, {
|
|
276
285
|
ref_key: "sheetRef",
|
|
277
|
-
ref:
|
|
278
|
-
"onSubmit:modelValue":
|
|
286
|
+
ref: h,
|
|
287
|
+
"onSubmit:modelValue": U
|
|
279
288
|
}, null, 512)
|
|
280
289
|
])
|
|
281
290
|
], 64);
|
|
@@ -283,5 +292,5 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
283
292
|
}
|
|
284
293
|
});
|
|
285
294
|
export {
|
|
286
|
-
|
|
295
|
+
ze as default
|
|
287
296
|
};
|