@feedmepos/mf-connect 0.1.98-beta.5 → 0.1.98-beta.50

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.
Files changed (139) hide show
  1. package/dist/{App-D_4snNiy.js → App-XRTSw_F1.js} +812 -666
  2. package/dist/{AuditLogs-KQU1O9_9.js → AuditLogs-CgsvZ-7X.js} +12 -11
  3. package/dist/{Bin-gp_uuNrE.js → Bin-CDwE00an.js} +8 -8
  4. package/dist/{Broadcast-CbBaOlnn.js → Broadcast-BOh56jYG.js} +39 -36
  5. package/dist/CampaignAnalytic-DZkCSGRF.js +1826 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-2bro245w.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DqYRlwCj.js} +7 -5
  7. package/dist/Card-DZ01wmGw.js +1060 -0
  8. package/dist/{Collections-CKeOHYZ4.js → Collections-CaIWOlsO.js} +14 -13
  9. package/dist/Credit-C8TM9q2f.js +286 -0
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bh2O4xdy.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-1UH_Ie4E.js} +34 -30
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BIdb46VQ.js → EffectSheet.vue_vue_type_style_index_0_lang-CVqMqYhi.js} +6 -6
  12. package/dist/{Experience-B-c5SMns.js → Experience-Cy0K8E9P.js} +112 -86
  13. package/dist/{FileSaver.min-DWnvGKCg.js → FileSaver.min-ClaVGDxU.js} +1 -1
  14. package/dist/Game-DxUNIK1H.js +356 -0
  15. package/dist/GiftCardSetup-DPuRb-29.js +662 -0
  16. package/dist/{Grab-BLC4GcgE.js → Grab-VSlV6K7E.js} +32 -31
  17. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-l2CmQ0nR.js → ImageInput.vue_vue_type_script_setup_true_lang-BJQzLNY1.js} +1 -1
  18. package/dist/{Index-DmAG2skd.js → Index-D_xXXqKL.js} +10 -10
  19. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-UmynGH00.js → LocationPicker.vue_vue_type_script_setup_true_lang-BJl8_bKp.js} +1 -1
  20. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BThofu65.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BOaXZf3X.js} +1 -1
  21. package/dist/LoyaltyDashboard-CWPV6CHM.js +2218 -0
  22. package/dist/MainLayout-CeA24f8v.js +143 -0
  23. package/dist/{Marketing-DmY25Ri9.js → Marketing-Bw437-ze.js} +7 -6
  24. package/dist/{MarketingMaterialEdit-DP9pba44.js → MarketingMaterialEdit-x6JdhQDh.js} +15 -14
  25. package/dist/Member-zLjxWmJf.js +626 -0
  26. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DM9c_Ow1.js +1287 -0
  27. package/dist/MemberImportHistory-BvvIfn9o.js +187 -0
  28. package/dist/MemberList-DqqAduX1.js +336 -0
  29. package/dist/{MemberTransactions-XRvUfeFB.js → MemberTransactions-j4nWa843.js} +1 -1
  30. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-g7v3ZoUS.js → MessageInput.vue_vue_type_script_setup_true_lang-z9lYA425.js} +5434 -5279
  31. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bg_0YlwG.js +38 -0
  32. package/dist/Mission-CPXEtNBm.js +360 -0
  33. package/dist/Overview-Bel0iCe8.js +1316 -0
  34. package/dist/{Overview-DgmVlUVi.js → Overview-DySRWqyr.js} +21 -20
  35. package/dist/Point-ClovAwUI.js +288 -0
  36. package/dist/Promotion-BiiruWmm.js +423 -0
  37. package/dist/{Queue-DxtykwmI.js → Queue-DY9zRWWp.js} +13 -12
  38. package/dist/{Record-fLCi2Oyh.js → Record-BJ6M5bXk.js} +9 -9
  39. package/dist/Review-Cyi-vRyc.js +45 -0
  40. package/dist/ReviewFacebookCallback-CdSAfiJ7.js +238 -0
  41. package/dist/ReviewGoogleCallback-COen72wx.js +213 -0
  42. package/dist/{Reward-BbdiCAiO.js → Reward-B3--b_8h.js} +35 -35
  43. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Cfjtk46d.js → RewardGroup.vue_vue_type_script_setup_true_lang-DCmSt5io.js} +14 -13
  44. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CYEBeuQQ.js → RuleGroup.vue_vue_type_script_setup_true_lang-F2B47wb8.js} +17 -15
  45. package/dist/{Segment-EkGcR2jo.js → Segment-DydGccSi.js} +31 -29
  46. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DND48RGu.js → SelectItems.vue_vue_type_script_setup_true_lang-Bf_1Lw5R.js} +2 -2
  47. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-sbYDSAFK.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BXrHY1DU.js} +37 -36
  48. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8RmLtRC.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DhitF847.js} +4 -4
  49. package/dist/{Setting-D3swsR6P.js → Setting-DgXgWy7W.js} +14 -14
  50. package/dist/{SettingAdvertisements-BjhTK11W.js → SettingAdvertisements-TMTfvGdU.js} +12 -12
  51. package/dist/Settings-b3K8fH29.js +230 -0
  52. package/dist/Store-jAGYe4R6.js +2615 -0
  53. package/dist/{StoreRewards-CyrWuwLi.js → StoreRewards-23IXon0V.js} +15 -15
  54. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BUTYIDGo.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BroaESpx.js} +400 -455
  55. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DJQ022R4.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-gnjnQhXP.js} +2 -2
  56. package/dist/{Tier-DrPqr8_e.js → Tier-B_ixl0ZY.js} +44 -41
  57. package/dist/{Title-CaZtz98p.js → Title-CUc90kzn.js} +49 -46
  58. package/dist/Transaction-BNVEjOC4.js +45 -0
  59. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BsBqk0Rs.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CkbKlnrt.js} +6 -6
  60. package/dist/{Voucher-BZcr4D0y.js → Voucher-eALK6zg9.js} +156 -133
  61. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DXQF3LZK.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CEsMYQ-L.js} +12 -12
  62. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DI-tCQeb.js → ZodTextField.vue_vue_type_script_setup_true_lang-BEAJ5tb7.js} +2 -2
  63. package/dist/{app-B0vutEt5.js → app-I3z-EN92.js} +7269 -5971
  64. package/dist/app.js +1 -1
  65. package/dist/{business-IZLJeLD-.js → business-D_ksG_j8.js} +5 -5
  66. package/dist/campaign-BKIxUyuf.js +100 -0
  67. package/dist/{campaign-BPmgteCL.js → campaign-IZaOdcTr.js} +74 -96
  68. package/dist/{campaign.enum-BCdlLIt6.js → campaign.enum-k3u4N6yI.js} +1 -1
  69. package/dist/{campaign.fn-BIFWlQvS.js → campaign.fn-DeQTMPoH.js} +116 -116
  70. package/dist/{collectible.enum-CiuAWn6_.js → collectible.enum-CSQwvFfW.js} +1 -1
  71. package/dist/collection.fn-BtWAPYLz.js +26 -0
  72. package/dist/{duplicateCampaign-BouCkl9n.js → duplicateCampaign-BWdWO-Jv.js} +2 -2
  73. package/dist/{effect-Cov_Xrar.js → effect-BBSG58dq.js} +1 -1
  74. package/dist/{email-addresses-BiopO9xi.js → email-addresses-CJg5ttqC.js} +2 -2
  75. package/dist/{export-DAPTBdHb.js → export-BkjhRe8g.js} +3 -3
  76. package/dist/google-C3S8u0mT.js +4 -0
  77. package/dist/{helper-ClFo4nAk.js → helper-DsSVIIP1.js} +1 -1
  78. package/dist/index-38Rnr26K.js +53 -0
  79. package/dist/{index-N5t83KgP.js → index-BbBies0f.js} +1902 -2559
  80. package/dist/index-BmAoVlN8.js +151 -0
  81. package/dist/{index-BZvvCPbP.js → index-BsAuvfaE.js} +5 -4
  82. package/dist/{index-Kllafq_o.js → index-C-phzlda.js} +105 -123
  83. package/dist/{index-CD_3hR1g.js → index-C0qgi7n9.js} +1 -1
  84. package/dist/index-CPnv5m8Z.js +137 -0
  85. package/dist/{index-BeK9AXvx.js → index-CV1kOec1.js} +1 -1
  86. package/dist/{index-CmgQZKyo.js → index-Ckr8ODhI.js} +1 -1
  87. package/dist/{index-DTSGYksR.js → index-CtF4Z_fd.js} +281 -372
  88. package/dist/{index-k9DTOKkN.js → index-CtXqXihA.js} +4 -1
  89. package/dist/index-DCz9v1dd.js +51 -0
  90. package/dist/index-DdV1nasM.js +896 -0
  91. package/dist/index-ZPKkCZxS.js +72 -0
  92. package/dist/{index-k0hHOUBO.js → index-blX95L2R.js} +579 -571
  93. package/dist/{index-Bm5E2iD6.js → index-f0JDFqAr.js} +14 -14
  94. package/dist/{index-pKdJ8574.js → index-iagCxZ13.js} +5 -5
  95. package/dist/{index-C_AuIVay.js → index-wsdEChJx.js} +5 -5
  96. package/dist/{index.esm2017-ByFUnorr.js → index.esm2017-BMC-Q91P.js} +164 -164
  97. package/dist/{loading-t4ygCIAa.js → loading-3obmcgAf.js} +1 -1
  98. package/dist/{lodash-DwGVChOs.js → lodash-C69G7pFG.js} +1 -1
  99. package/dist/member-import-BxBe9NE7.js +187 -0
  100. package/dist/{membership-CMCTmRdh.js → membership-_XX1_j55.js} +3 -3
  101. package/dist/{money-MhQbdVIt.js → money-DZpYudCC.js} +1 -1
  102. package/dist/{number-klG94_wm.js → number-BbQQzzRA.js} +1 -1
  103. package/dist/objectid-kWi62XJQ.js +145 -0
  104. package/dist/{plugins-2py5EcqG.js → plugins-UfVjLlr4.js} +3 -3
  105. package/dist/remy-Qz_pNsUS.js +13 -0
  106. package/dist/{reward-CE9z-Us7.js → reward-1G2M5tgv.js} +1 -1
  107. package/dist/{rule-BKNHxNrQ.js → rule-DHHGjLt5.js} +3 -3
  108. package/dist/rule-builder-CgNmvg5o.js +126 -0
  109. package/dist/{template-C9yNa_0m.js → template-Ckva65hw.js} +6 -6
  110. package/dist/timezone-Ddve0ese.js +20 -0
  111. package/dist/transaction.fn-7n5XLxfA.js +64 -0
  112. package/dist/{trigger-Dk0tAyDv.js → trigger-F-XaDRpc.js} +14 -14
  113. package/dist/useMarketingMaterialActions-DIhnstdO.js +96 -0
  114. package/dist/{usePagination-cF1F_1NH.js → usePagination-C0TcC_Lo.js} +1 -1
  115. package/dist/{user-CNPPoxKh.js → user-DeuI7T2e.js} +1 -1
  116. package/dist/{vue-i18n-Bk_KpCO_.js → vue-i18n-DRrphfc1.js} +191 -191
  117. package/dist/{xlsx-D3muGzk7.js → xlsx-DaY_eyt1.js} +440 -440
  118. package/dist/{zod-D72USJGr.js → zod-BDdpK5Gp.js} +1 -1
  119. package/package.json +5 -3
  120. package/dist/Card-P7MqKEDT.js +0 -910
  121. package/dist/Credit-Dp5P2k79.js +0 -260
  122. package/dist/Game-CNSbh93g.js +0 -330
  123. package/dist/LoyaltyDashboard-Go9ClMrp.js +0 -1082
  124. package/dist/MainLayout-Dyw9Qqvh.js +0 -41
  125. package/dist/Member-DKXzaqlL.js +0 -280
  126. package/dist/MemberList-BJ5nI3Nz.js +0 -1601
  127. package/dist/Mission-BvHArY3W.js +0 -334
  128. package/dist/Point-BR0R03i6.js +0 -262
  129. package/dist/Promotion-DofFeR2N.js +0 -397
  130. package/dist/Review-7tFJOnrt.js +0 -1076
  131. package/dist/ReviewFacebookCallback-yl0w_vF9.js +0 -243
  132. package/dist/ReviewGoogleCallback-Dn_aF2ZD.js +0 -208
  133. package/dist/Store-U1jysb7b.js +0 -1996
  134. package/dist/Transaction-Bj6bSo8R.js +0 -39
  135. package/dist/campaign-Cxp-DOCG.js +0 -219
  136. package/dist/index-BQ8XZk2Y.js +0 -85
  137. package/dist/index-KmCk2ksK.js +0 -52
  138. package/dist/objectid-C4ak1ctJ.js +0 -145
  139. package/dist/useMarketingMaterialActions-BiXkdMcs.js +0 -107
@@ -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 F, 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-Bk_KpCO_.js";
4
- import { u as ue } from "./loading-t4ygCIAa.js";
5
- import { p as K } from "./plugins-2py5EcqG.js";
3
+ import { u as Z } from "./vue-i18n-DRrphfc1.js";
4
+ import { u as ue } from "./loading-3obmcgAf.js";
5
+ import { p as K } from "./plugins-UfVjLlr4.js";
6
6
  import { J as X } from "./JsonViewer-v8_C7l5N.js";
7
- import { Z as N } from "./zod-D72USJGr.js";
7
+ import { Z as N } from "./zod-BDdpK5Gp.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-Cfjtk46d.js";
10
- import { u as me } from "./reward-CE9z-Us7.js";
11
- import { b as ye, c as be } from "./index-DTSGYksR.js";
12
- import { m as le, c as se } from "./index-N5t83KgP.js";
13
- import "./index-k0hHOUBO.js";
14
- import "./index-C_AuIVay.js";
15
- import "./index-pKdJ8574.js";
16
- import { C as fe } from "./membership-CMCTmRdh.js";
17
- import { t as ee } from "./helper-ClFo4nAk.js";
9
+ import { u as Q, _ as we } from "./RewardGroup.vue_vue_type_script_setup_true_lang-DCmSt5io.js";
10
+ import { u as me } from "./reward-1G2M5tgv.js";
11
+ import { a as ye, b as be } from "./index-CtF4Z_fd.js";
12
+ import "./index-BbBies0f.js";
13
+ import "./index-blX95L2R.js";
14
+ import "./index-wsdEChJx.js";
15
+ import { c as le, a as se } from "./index-DdV1nasM.js";
16
+ import "./index-iagCxZ13.js";
17
+ import { C as fe } from "./membership-_XX1_j55.js";
18
+ import { t as ee } from "./helper-DsSVIIP1.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-DI-tCQeb.js";
21
- import { a as Re, _ as Se, b as Fe } from "./trigger-Dk0tAyDv.js";
22
- import { O as ke } from "./objectid-C4ak1ctJ.js";
21
+ import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BEAJ5tb7.js";
22
+ import { a as Re, _ as Se, b as Fe } from "./trigger-F-XaDRpc.js";
23
+ import { O as ke } from "./objectid-kWi62XJQ.js";
23
24
  import { c as $e } from "./string-Gcy5IM_H.js";
24
- import { r as pe } from "./index-BeK9AXvx.js";
25
- import { u as Pe } from "./business-IZLJeLD-.js";
25
+ import { r as pe } from "./index-CV1kOec1.js";
26
+ import { u as Pe } from "./business-D_ksG_j8.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" }, qr = /* @__PURE__ */ q({
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(k) {
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
- qr as default
1079
+ Kr as default
1079
1080
  };
@@ -0,0 +1,288 @@
1
+ import { defineComponent as G, ref as N, computed as Y, h as C, onMounted as z, resolveComponent as m, openBlock as u, createElementBlock as x, Fragment as k, createVNode as i, unref as o, withCtx as w, createElementVNode as n, toDisplayString as f, renderList as J, createBlock as F, resolveDynamicComponent as Q } from "vue";
2
+ import { _ as W } from "./campaign-CpzFl8Vr.js";
3
+ import { useDialog as X, components as P } from "@feedmepos/ui-library";
4
+ import { p as Z } from "./plugins-UfVjLlr4.js";
5
+ import { u as ee } from "./loading-3obmcgAf.js";
6
+ import { u as te } from "./business-D_ksG_j8.js";
7
+ import { u as oe } from "./campaign-BKIxUyuf.js";
8
+ import { a as ae, b as $, c as A } from "./campaign-IZaOdcTr.js";
9
+ import { c as ne, p as ie } from "./duplicateCampaign-BWdWO-Jv.js";
10
+ import { _ as re } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
11
+ import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-1UH_Ie4E.js";
12
+ import { u as le } from "./template-Ckva65hw.js";
13
+ import { u as ce } from "./vue-i18n-DRrphfc1.js";
14
+ import "./index-Ckr8ODhI.js";
15
+ import { useRouter as me } from "vue-router";
16
+ import { c as g } from "./index-BmAoVlN8.js";
17
+ import { R as pe } from "./app-I3z-EN92.js";
18
+ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, fe = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-center justify-between w-full" }, ye = { class: "flex gap-8 overflow-x-auto" }, _e = { class: "space-y-8" }, he = { class: "flex w-full gap-4 items-center" }, Ce = { class: "space-y-4" }, we = { class: "fm-typo-en-body-lg-600" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ve = { class: "flex items-center gap-8" }, xe = { class: "flex flex-col gap-16 text-center" }, ke = { class: "fm-typo-en-title-sm-800" }, Fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, He = /* @__PURE__ */ G({
19
+ __name: "Point",
20
+ setup(Pe) {
21
+ const { t: r } = ce(), O = me(), R = {
22
+ label: r("connect.program.common.actions.create", {
23
+ type: r("connect.program.point.title").toLowerCase()
24
+ }),
25
+ value: "create",
26
+ isPrimary: !0,
27
+ prependIcon: "add"
28
+ }, D = le("COIN", X()), b = te(), p = oe(), { global: K, minor: L } = ee, l = N({
29
+ searchKey: "",
30
+ location: []
31
+ });
32
+ function T(e) {
33
+ const t = l.value.location;
34
+ return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((c) => {
35
+ var s;
36
+ return (s = e == null ? void 0 : e.targetLocation) == null ? void 0 : s.includes(c);
37
+ }) : e.targetLocation.includes(t);
38
+ }
39
+ const y = Y(
40
+ () => p.campaigns.point.filter((e) => T(e))
41
+ ), U = [
42
+ {
43
+ header: r("connect.program.common.table.title"),
44
+ accessorFn: (e) => e.name
45
+ },
46
+ {
47
+ header: r("connect.program.common.table.status"),
48
+ accessorFn: (e) => ae(e),
49
+ cell(e) {
50
+ return $(e.row.original);
51
+ }
52
+ },
53
+ {
54
+ header: r("connect.program.common.table.summary"),
55
+ accessorFn: (e) => A(e)
56
+ },
57
+ {
58
+ header: r("connect.program.common.table.actions"),
59
+ cell(e) {
60
+ return C("div", { class: "flex items-center gap-8 justify-end" }, [
61
+ C(P.FmButton, {
62
+ variant: "tertiary",
63
+ icon: "insights",
64
+ iconColor: "neutral-gray-400",
65
+ onClick: async (t) => {
66
+ t.stopPropagation(), await I(e.row.original);
67
+ }
68
+ }),
69
+ C(P.FmButton, {
70
+ variant: "tertiary",
71
+ icon: "content_copy",
72
+ iconColor: "neutral-gray-400",
73
+ onClick: async (t) => {
74
+ t.stopPropagation(), await B(e.row.original);
75
+ }
76
+ }),
77
+ C(P.FmButton, {
78
+ variant: "tertiary",
79
+ icon: "delete",
80
+ iconColor: "neutral-gray-400",
81
+ onClick: (t) => {
82
+ t.stopPropagation(), S(e.row.original);
83
+ }
84
+ })
85
+ ]);
86
+ }
87
+ }
88
+ ], v = N();
89
+ async function S(e) {
90
+ await Z.remove(`Are you sure you want to remove ${e.name}?`) && await L(
91
+ async () => {
92
+ await g.delete(e._id), await p.read("COIN");
93
+ },
94
+ {
95
+ message: `Removing ${e.name}`,
96
+ successMessage: `Removed ${e.name} successfully`
97
+ }
98
+ );
99
+ }
100
+ async function _(e) {
101
+ e ? await t() : D.open(async (c) => {
102
+ await t(c);
103
+ });
104
+ async function t(c) {
105
+ var s;
106
+ (s = v.value) == null || s.showSheet(
107
+ !0,
108
+ "COIN",
109
+ e ? await g.readById(e._id) : void 0,
110
+ c
111
+ );
112
+ }
113
+ }
114
+ async function I(e) {
115
+ await O.push({
116
+ name: pe["$connect-PROGRAM_POINT_ANALYTIC"],
117
+ params: { id: e._id }
118
+ });
119
+ }
120
+ async function B(e) {
121
+ var s;
122
+ if (!await ne(e.name))
123
+ return;
124
+ const t = await g.readById(e._id), c = ie(t, {
125
+ keepCollectible: !0
126
+ });
127
+ (s = v.value) == null || s.showSheet(
128
+ !0,
129
+ "COIN",
130
+ c,
131
+ t.template
132
+ );
133
+ }
134
+ async function E(e) {
135
+ await L(
136
+ async () => {
137
+ e.campaign._id ? await g.update(e.campaign._id, e) : await g.create(e), await p.read("COIN");
138
+ },
139
+ {
140
+ message: `${e.campaign._id ? "Updating" : "Creating"} point program`,
141
+ successMessage: `Point program ${e.campaign._id ? "updated" : "created"} successfully`
142
+ }
143
+ );
144
+ }
145
+ return z(async () => {
146
+ await K(async () => {
147
+ await p.read("COIN");
148
+ });
149
+ }), (e, t) => {
150
+ const c = m("FmPill"), s = m("FmPageHead"), V = m("FmSearch"), M = m("FmTable"), h = m("FmButton"), j = m("FmListItem"), H = m("FmList"), q = m("FmCard");
151
+ return u(), x(k, null, [
152
+ i(s, {
153
+ title: o(r)("connect.program.point.title"),
154
+ actions: o(y).length > 0 && o(b).isPremium ? [R] : [],
155
+ "onClick:action": t[0] || (t[0] = () => _())
156
+ }, {
157
+ title: w(() => [
158
+ n("div", de, [
159
+ n("span", ue, f(o(r)("connect.program.point.title")), 1),
160
+ i(c, { variant: "premium" })
161
+ ])
162
+ ]),
163
+ _: 1
164
+ }, 8, ["title", "actions"]),
165
+ n("div", fe, [
166
+ i(V, {
167
+ modelValue: o(l).searchKey,
168
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).searchKey = a),
169
+ class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
170
+ placeholder: "search",
171
+ collapsible: ""
172
+ }, null, 8, ["modelValue"]),
173
+ o(p).campaigns.point && o(p).campaigns.point.length > 0 ? (u(), x(k, { key: 0 }, [
174
+ n("div", ge, [
175
+ n("div", ye, [
176
+ i(re, {
177
+ label: `${o(r)("connect.common.location")}: `,
178
+ "right-icon": "keyboard_arrow_down",
179
+ modelValue: o(l).location,
180
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => o(l).location = a),
181
+ icon: "storefront",
182
+ "show-item-label": !0,
183
+ items: o(b).locationOptions
184
+ }, null, 8, ["label", "modelValue", "items"])
185
+ ]),
186
+ i(V, {
187
+ modelValue: o(l).searchKey,
188
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).searchKey = a),
189
+ class: "xs:hidden sm:hidden",
190
+ placeholder: "search",
191
+ collapsible: ""
192
+ }, null, 8, ["modelValue"])
193
+ ]),
194
+ i(M, {
195
+ class: "xs:hidden sm:hidden",
196
+ "row-data": o(y),
197
+ "column-defs": U,
198
+ "search-value": o(l).searchKey,
199
+ "column-filter": [],
200
+ onRowClick: t[4] || (t[4] = (a) => _(a.original)),
201
+ "hide-footer": o(y).length < 10
202
+ }, null, 8, ["row-data", "search-value", "hide-footer"]),
203
+ i(H, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
204
+ default: w(() => [
205
+ (u(!0), x(k, null, J(o(y).filter(
206
+ (a) => a.name.toLowerCase().includes(o(l).searchKey.toLowerCase())
207
+ ), (a) => (u(), F(j, {
208
+ key: a._id.toString(),
209
+ onClick: (d) => _(a),
210
+ class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
211
+ }, {
212
+ default: w(() => [
213
+ n("div", _e, [
214
+ n("div", he, [
215
+ (u(), F(Q(o($)(a))))
216
+ ]),
217
+ n("div", Ce, [
218
+ n("div", we, f(a.name), 1),
219
+ n("div", be, f(o(A)(a)), 1)
220
+ ])
221
+ ]),
222
+ n("div", ve, [
223
+ i(h, {
224
+ icon: "insights",
225
+ "icon-color": "neutral-gray-400",
226
+ variant: "tertiary",
227
+ onClick: async (d) => {
228
+ d.stopPropagation(), await I(a);
229
+ }
230
+ }, null, 8, ["onClick"]),
231
+ i(h, {
232
+ icon: "content_copy",
233
+ "icon-color": "neutral-gray-400",
234
+ variant: "tertiary",
235
+ onClick: async (d) => {
236
+ d.stopPropagation(), await B(a);
237
+ }
238
+ }, null, 8, ["onClick"]),
239
+ i(h, {
240
+ icon: "delete",
241
+ "icon-color": "neutral-gray-400",
242
+ variant: "tertiary",
243
+ onClick: (d) => (d.stopPropagation(), S(a))
244
+ }, null, 8, ["onClick"])
245
+ ])
246
+ ]),
247
+ _: 2
248
+ }, 1032, ["onClick"]))), 128))
249
+ ]),
250
+ _: 1
251
+ })
252
+ ], 64)) : (u(), F(q, {
253
+ key: 1,
254
+ variant: "outlined",
255
+ class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
256
+ }, {
257
+ default: w(() => [
258
+ t[6] || (t[6] = n("img", {
259
+ src: W,
260
+ class: "aspect-square w-[150px]"
261
+ }, null, -1)),
262
+ n("div", xe, [
263
+ n("div", ke, f(o(r)("connect.program.point.empty_state.title")), 1),
264
+ n("div", Fe, f(o(r)("connect.program.point.empty_state.description")), 1)
265
+ ]),
266
+ i(h, {
267
+ variant: "primary",
268
+ label: "Create point program",
269
+ disabled: !o(b).isPremium,
270
+ icon: "add",
271
+ onClick: t[5] || (t[5] = (a) => _())
272
+ }, null, 8, ["disabled"])
273
+ ]),
274
+ _: 1
275
+ })),
276
+ i(se, {
277
+ ref_key: "sheetRef",
278
+ ref: v,
279
+ "onSubmit:modelValue": E
280
+ }, null, 512)
281
+ ])
282
+ ], 64);
283
+ };
284
+ }
285
+ });
286
+ export {
287
+ He as default
288
+ };