@feedmepos/mf-connect 0.1.114-prod → 0.1.115-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.
Files changed (127) hide show
  1. package/dist/{App-DMYXrCc7.js → App-CvtSY8ZO.js} +350 -338
  2. package/dist/{Bin-CHZolo56.js → Bin-B3gS9QVZ.js} +8 -8
  3. package/dist/Broadcast-DAeb-HaN.js +305 -0
  4. package/dist/{CampaignAnalytic-DgZvsUoF.js → CampaignAnalytic-BfTaHVem.js} +7 -7
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C42uL_JO.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zsei4OfG.js} +9 -9
  6. package/dist/{Card-wRFTJwJ9.js → Card-JFeVIwFs.js} +22 -22
  7. package/dist/{Collections-9G-_9Etz.js → Collections-xcDpEhIm.js} +9 -9
  8. package/dist/{Credit-Bl7IDMCU.js → Credit-C9HJZjDS.js} +11 -11
  9. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BVLJeofG.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DSqVY91w.js} +1 -1
  10. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D_jXVE2I.js +3494 -0
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Q1f6EQW3.js → EffectSheet.vue_vue_type_style_index_0_lang-C3J0rCTt.js} +6 -6
  12. package/dist/{Experience-Cs2iViLv.js → Experience-DszS8gto.js} +12 -12
  13. package/dist/{FileSaver.min-B3Levdbu.js → FileSaver.min-CFVQKaC-.js} +1 -1
  14. package/dist/{Game-oXURgzan.js → Game-DhgeN7E2.js} +12 -12
  15. package/dist/{GiftCardSetup-C2Wu-dRl.js → GiftCardSetup-CWm6IhrS.js} +10 -10
  16. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Da2e89Um.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BuKADvmK.js} +7 -7
  17. package/dist/{Goals-B_xEM7gf.js → Goals-DtRVierH.js} +4 -4
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BRJR1heE.js → ImageInput.vue_vue_type_script_setup_true_lang-DlEFyu6h.js} +1 -1
  19. package/dist/{Index-kuT6W6R_.js → Index-DFRcu_qE.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-7JqHfSk-.js → LocationPicker.vue_vue_type_script_setup_true_lang-B3Br4Xvi.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CI_4S7tW.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CjNJj3qj.js} +1 -1
  22. package/dist/{LoyaltyDashboard-CqxHdZcm.js → LoyaltyDashboard-BWHKDPzk.js} +15 -15
  23. package/dist/{MainLayout-CAERFIms.js → MainLayout-BmpNNAiE.js} +3 -3
  24. package/dist/{Marketing-KgcwGErU.js → Marketing-BKK45Eve.js} +4 -4
  25. package/dist/{MarketingMaterialEdit-BvIthCHG.js → MarketingMaterialEdit-x3c_N7Gs.js} +6 -6
  26. package/dist/{Member-B8VZEn9t.js → Member-xEzrBW_p.js} +7 -7
  27. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-B31lVLKh.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DRoC-I0t.js} +24 -24
  28. package/dist/{MemberImportHistory-D9tgHnTS.js → MemberImportHistory-CEQpBBF8.js} +7 -7
  29. package/dist/{MemberList-Hw_xQY1i.js → MemberList-CCvzkHv8.js} +14 -14
  30. package/dist/{MemberTransactions-DiBO4plw.js → MemberTransactions-Bmh39J2W.js} +1 -1
  31. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CbFt5X89.js → MessageInput.vue_vue_type_script_setup_true_lang-D3Pmk80l.js} +4228 -4176
  32. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BE_-Ed4z.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DIBKAwHP.js} +1 -1
  33. package/dist/{Mission-DpYei3aF.js → Mission-CpUo2Bgw.js} +13 -13
  34. package/dist/{Overview-CARquJCS.js → Overview-CwQqQ1Tn.js} +4 -4
  35. package/dist/{Overview-BFQMmyT6.js → Overview-DcDZmDXA.js} +20 -20
  36. package/dist/{Point-Dd2ykwNv.js → Point-CUNQsQIx.js} +13 -13
  37. package/dist/{Promotion-DXl-W7np.js → Promotion-Cqdim7aW.js} +13 -13
  38. package/dist/{Queue-Cd3N-4iB.js → Queue-CNBVh1UG.js} +30 -30
  39. package/dist/{Record-C3HdDsh5.js → Record-BYwz4l4o.js} +9 -9
  40. package/dist/{Review-Bif3Ub9Z.js → Review-CqLcZFj8.js} +2 -2
  41. package/dist/{ReviewFacebookCallback-mJF54-9l.js → ReviewFacebookCallback-DbSCILNN.js} +5 -5
  42. package/dist/{ReviewGoogleCallback-i-RNLlLm.js → ReviewGoogleCallback-Dg8R7QlO.js} +5 -5
  43. package/dist/{Reward-DHxzrR_7.js → Reward-M8GZ8eHq.js} +16 -16
  44. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DcrFlcSo.js → RewardGroup.vue_vue_type_script_setup_true_lang-BkM9-Sx-.js} +13 -13
  45. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-39f3I4BB.js → RuleGroup.vue_vue_type_script_setup_true_lang-CnaL93TF.js} +15 -15
  46. package/dist/{Segment-Cjpxordk.js → Segment-CrMi6xrp.js} +126 -126
  47. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-6u21xBu6.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DKH5_9db.js} +14 -14
  48. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BOXVzfer.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CyeAQ-hg.js} +4 -4
  49. package/dist/{Setting-Dl9MelHz.js → Setting-BnFRI0Se.js} +15 -14
  50. package/dist/{SettingAdvertisements-aog5fz32.js → SettingAdvertisements-Dh7v4c1D.js} +12 -12
  51. package/dist/{Settings-DvCCClIP.js → Settings-BvT8_tkQ.js} +5 -5
  52. package/dist/{Store-Bq3kw1l2.js → Store-CV-BmK5b.js} +26 -26
  53. package/dist/{StoreRewards-ZGXKEM09.js → StoreRewards-DPhSLvSZ.js} +15 -15
  54. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DscLAF0p.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CDu1QySl.js} +24 -24
  55. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-l_v4FHO0.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dqz6jTlH.js} +2 -2
  56. package/dist/{Tier-CfgpEHY7.js → Tier-ChvYps23.js} +25 -25
  57. package/dist/{Title-B2itYWeD.js → Title-v-Ivswr1.js} +23 -23
  58. package/dist/{Transaction-hJ5ygIcf.js → Transaction-CRqE1Ix0.js} +2 -2
  59. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-8BgGlpTh.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B0Uh9iuj.js} +6 -6
  60. package/dist/{Voucher-TG47pGR3.js → Voucher-Bg8FOuzD.js} +18 -18
  61. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CjuXCTxg.js → VoucherEditor.vue_vue_type_script_setup_true_lang-HKxivQMF.js} +12 -12
  62. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BRs-gbP0.js → ZodTextField.vue_vue_type_script_setup_true_lang-8d290Dcp.js} +2 -2
  63. package/dist/{app-tPHYkJcQ.js → app-DdNKsn2Q.js} +2100 -1480
  64. package/dist/app.js +1 -1
  65. package/dist/{base.export-BHDVnGj2.js → base.export-R97FrSQL.js} +2 -2
  66. package/dist/{business-HLyWfrXY.js → business-Ce8vq3wQ.js} +1 -1
  67. package/dist/{campaign-5zFgUNLw.js → campaign-BTllt2LH.js} +2 -2
  68. package/dist/campaign-C19If7bW.js +373 -0
  69. package/dist/{campaign.enum-BOkDnP2g.js → campaign.enum-9CCbalR4.js} +1 -1
  70. package/dist/{campaign.fn-BIAoVtJj.js → campaign.fn-B4g03h0A.js} +3 -3
  71. package/dist/{collectible.enum-BbZSAfys.js → collectible.enum-MvqF7mSg.js} +1 -1
  72. package/dist/{collection.fn-DPSgBHnz.js → collection.fn-CR0bD33S.js} +2 -2
  73. package/dist/{currency-BVrMqU6-.js → currency-DmlguGIM.js} +1 -1
  74. package/dist/{effect-BBifVx76.js → effect-Dx3zfl28.js} +1 -1
  75. package/dist/{email-addresses-9C7xHTNv.js → email-addresses-De5PGOY4.js} +2 -2
  76. package/dist/feature-flag-CD9V1V0h.js +868 -0
  77. package/dist/{helper-C08jyQNK.js → helper-CEiv7SaO.js} +1 -1
  78. package/dist/{index-Dk-jg0wN.js → index-649OZ_e1.js} +2 -2
  79. package/dist/{index-96ZiAKj_.js → index-B8meeQoD.js} +1 -1
  80. package/dist/{index-CUle4c2B.js → index-B8yWVB8P.js} +1 -1
  81. package/dist/index-BAXKd9Gg.js +14571 -0
  82. package/dist/{index-BgwZGunW.js → index-BDPnyro2.js} +1 -1
  83. package/dist/{index-D24Q28cH.js → index-BR9h5DTI.js} +1 -1
  84. package/dist/{index-B_334Y_i.js → index-BVdYxi3l.js} +1 -1
  85. package/dist/{index-NJSI4wX4.js → index-BW6eb3n6.js} +276 -173
  86. package/dist/{index-hSRM1smQ.js → index-BYI9ttxy.js} +3 -3
  87. package/dist/{index-DZ-q5O-V.js → index-BquSqx6K.js} +1 -1
  88. package/dist/{index-kCbkOivd.js → index-CBJy9bxB.js} +1 -1
  89. package/dist/{index-Dhyqf1s8.js → index-CPODug8b.js} +3 -3
  90. package/dist/{index-CEe1kJ0T.js → index-CWUrODxL.js} +1 -1
  91. package/dist/{index-DnRMNmUA.js → index-CqOCJTeR.js} +89 -83
  92. package/dist/{index-C_WoO58V.js → index-D4d3l0gw.js} +3 -3
  93. package/dist/{index-hIUtD2eY.js → index-DT3S00_Y.js} +8 -8
  94. package/dist/{index-Yo0tP8KJ.js → index-IZRfmmde.js} +5 -5
  95. package/dist/{index-ihw-WFCa.js → index-__UT3_Ey.js} +2 -2
  96. package/dist/{index-Ciw2TZxV.js → index-xct3mnu8.js} +3 -2
  97. package/dist/{index.esm2017-hN99SQTb.js → index.esm2017-AVbZ9btd.js} +34 -34
  98. package/dist/{loading-CVuY4vQ4.js → loading-BvHm1m3K.js} +1 -1
  99. package/dist/{lodash-GFl9_FMH.js → lodash-Dvrceo7x.js} +1 -1
  100. package/dist/{member-import-CshTzabx.js → member-import-c9avpiSS.js} +1 -1
  101. package/dist/{membership-S0KES3Ex.js → membership-D-pZS634.js} +3 -3
  102. package/dist/{money-JxdX8ru4.js → money-D4skwMkD.js} +1 -1
  103. package/dist/{number-BRLwa-mB.js → number-DJ6ncfT6.js} +1 -1
  104. package/dist/objectid-DEMM_jdR.js +145 -0
  105. package/dist/{onboarding-BSKYeyP7.js → onboarding-t7R1d3h-.js} +3 -3
  106. package/dist/{onboardingSetup-BqT52VRm.js → onboardingSetup-lTaJc0oT.js} +2 -2
  107. package/dist/{plugins-BR_wmMFJ.js → plugins-DQNOWwRC.js} +3 -3
  108. package/dist/{reward-CpCGg_W2.js → reward-BK150pjm.js} +1 -1
  109. package/dist/{rule-Dbg9e8MO.js → rule-COcdAnUu.js} +3 -3
  110. package/dist/{rule-builder-BEIjxsE0.js → rule-builder-Deufb6h_.js} +1 -1
  111. package/dist/style.css +1 -1
  112. package/dist/{template-CS-lExgI.js → template-DeebIqJ_.js} +7 -7
  113. package/dist/{timezone-CDVa-xPr.js → timezone-BP6UC4KL.js} +1 -1
  114. package/dist/{transaction.fn-DrTBoF9T.js → transaction.fn-BY0hzon0.js} +2 -2
  115. package/dist/{trigger-wqGwQfB2.js → trigger-DVBjVPbN.js} +5 -5
  116. package/dist/{useMarketingMaterialActions-DC0gIyIZ.js → useMarketingMaterialActions-DpQCQHFI.js} +3 -3
  117. package/dist/{usePagination-fODgpZZ8.js → usePagination-QT552XyF.js} +1 -1
  118. package/dist/{user-DaLUK1dk.js → user-CmAxNc7T.js} +1 -1
  119. package/dist/{vue-i18n-Dx-KXojZ.js → vue-i18n-Cze706-f.js} +245 -245
  120. package/dist/{xlsx-Bl4_Dtrq.js → xlsx-DAczoc8y.js} +440 -440
  121. package/dist/{zod-CAzWyVqj.js → zod-Aj-GuVQL.js} +1 -1
  122. package/package.json +7 -2
  123. package/dist/Broadcast-ByWvxVhW.js +0 -271
  124. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DGpQfV5T.js +0 -2431
  125. package/dist/campaign-awCRccgX.js +0 -228
  126. package/dist/index-CoNJdOx7.js +0 -51
  127. package/dist/objectid-CEHN25HN.js +0 -145
@@ -1,43 +1,43 @@
1
- import { defineComponent as le, ref as W, resolveComponent as x, openBlock as r, createElementBlock as k, createElementVNode as s, createVNode as d, unref as e, createCommentVNode as K, withCtx as $, Fragment as Z, renderList as me, createBlock as V, toDisplayString as D, normalizeClass as ce, computed as O, onMounted as we, isRef as Te, createSlots as Ee, h as B, onBeforeMount as De } from "vue";
1
+ import { defineComponent as le, ref as W, resolveComponent as h, openBlock as r, createElementBlock as k, createElementVNode as s, createVNode as d, unref as e, createCommentVNode as H, withCtx as $, Fragment as Z, renderList as me, createBlock as V, toDisplayString as D, normalizeClass as ce, computed as O, onMounted as we, isRef as Me, createSlots as Ee, h as B, onBeforeMount as De } from "vue";
2
2
  import { _ as $e } from "./campaign-CpzFl8Vr.js";
3
- import { n as Ae, p as Pe } from "./plugins-BR_wmMFJ.js";
4
- import { u as Re } from "./loading-CVuY4vQ4.js";
3
+ import { n as Ae, p as Re } from "./plugins-DQNOWwRC.js";
4
+ import { u as Pe } from "./loading-BvHm1m3K.js";
5
5
  import { FmButtonVariant as re, useSnackbar as Ne, components as ae } from "@feedmepos/ui-library";
6
- import { u as Fe, _ as Ce } from "./usePagination-fODgpZZ8.js";
7
- import { u as pe } from "./vue-i18n-Dx-KXojZ.js";
8
- import { g as Be, h as U, D as Ue, i as Ve } from "./index-Yo0tP8KJ.js";
9
- import "./index-Dhyqf1s8.js";
10
- import { F as ye, z as Le } from "./index-hSRM1smQ.js";
11
- import { a as ge } from "./index-DnRMNmUA.js";
12
- import "./index-NJSI4wX4.js";
13
- import "./index-C_WoO58V.js";
14
- import "./index-CUle4c2B.js";
15
- import { u as de, w as ke } from "./xlsx-Bl4_Dtrq.js";
16
- import { e as Ye, M as ze } from "./email-addresses-9C7xHTNv.js";
17
- import { Z as Oe } from "./zod-CAzWyVqj.js";
6
+ import { u as Fe, _ as Ce } from "./usePagination-QT552XyF.js";
7
+ import { u as pe } from "./vue-i18n-Cze706-f.js";
8
+ import { g as Be, h as U, D as Ue, i as Ve } from "./index-IZRfmmde.js";
9
+ import "./index-CPODug8b.js";
10
+ import { F as ye, z as Le } from "./index-BYI9ttxy.js";
11
+ import { a as ge } from "./index-CqOCJTeR.js";
12
+ import "./index-BW6eb3n6.js";
13
+ import "./index-D4d3l0gw.js";
14
+ import "./index-B8yWVB8P.js";
15
+ import { u as de, w as ke } from "./xlsx-DAczoc8y.js";
16
+ import { e as Ye, M as ze } from "./email-addresses-De5PGOY4.js";
17
+ import { Z as Oe } from "./zod-Aj-GuVQL.js";
18
18
  import { u as je } from "./app-wDQR6dpb.js";
19
- import { R as ve } from "./rule-builder-BEIjxsE0.js";
20
- import { _ as qe } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BRs-gbP0.js";
21
- import { _ as Ge } from "./RuleGroup.vue_vue_type_script_setup_true_lang-39f3I4BB.js";
22
- import { u as He, v as Ke, w as Je } from "./index.esm2017-hN99SQTb.js";
23
- import { F as Qe } from "./FileSaver.min-B3Levdbu.js";
19
+ import { R as ve } from "./rule-builder-Deufb6h_.js";
20
+ import { _ as qe } from "./ZodTextField.vue_vue_type_script_setup_true_lang-8d290Dcp.js";
21
+ import { _ as Ge } from "./RuleGroup.vue_vue_type_script_setup_true_lang-CnaL93TF.js";
22
+ import { u as Ke, v as He, w as Je } from "./index.esm2017-AVbZ9btd.js";
23
+ import { F as Qe } from "./FileSaver.min-CFVQKaC-.js";
24
24
  import { h as se } from "./moment-D7p2TMB-.js";
25
- import { s as z, u as We } from "./membership-S0KES3Ex.js";
25
+ import { s as z, u as We } from "./membership-D-pZS634.js";
26
26
  import { o as Ze } from "./objectId-dwaoBfJX.js";
27
27
  import { J as Xe } from "./JsonViewer-v8_C7l5N.js";
28
- import { u as Ie } from "./business-HLyWfrXY.js";
29
- import { f as et } from "./number-BRLwa-mB.js";
30
- import { t as tt } from "./money-JxdX8ru4.js";
31
- import "./index-96ZiAKj_.js";
28
+ import { u as Ie } from "./business-Ce8vq3wQ.js";
29
+ import { f as et } from "./number-DJ6ncfT6.js";
30
+ import { t as tt } from "./money-D4skwMkD.js";
31
+ import "./index-B8meeQoD.js";
32
32
  import { useRouter as ot } from "vue-router";
33
- import { m as _e } from "./index-ihw-WFCa.js";
34
- import { R as Se } from "./app-tPHYkJcQ.js";
33
+ import { m as _e } from "./index-__UT3_Ey.js";
34
+ import { R as Se } from "./app-DdNKsn2Q.js";
35
35
  const nt = Be.extend({
36
36
  _id: ye.optional(),
37
37
  business: ye.optional(),
38
38
  file: Le.any().nullish()
39
39
  });
40
- var at = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476" };
40
+ var at = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", featureFlagApiKey: "6GhcttsJ9Rj9cTevcdrpin" };
41
41
  const st = { class: "flex flex-col space-y-16" }, lt = {
42
42
  key: 0,
43
43
  class: /* @__PURE__ */ ce([
@@ -60,7 +60,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
60
60
  },
61
61
  emits: ["update:file"],
62
62
  setup(t, { emit: f }) {
63
- const c = t, M = f, { t: b } = pe(), _ = W(null), u = W(null), T = ["Id"], E = [
63
+ const c = t, T = f, { t: b } = pe(), _ = W(null), u = W(null), M = ["Id"], E = [
64
64
  {
65
65
  label: "CSV",
66
66
  icon: "csv",
@@ -75,7 +75,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
75
75
  async function a() {
76
76
  if (c.importFile)
77
77
  try {
78
- const y = He(void 0, at.importFilesBucketUrl), p = Ke(y, c.importFile), g = await Je(p);
78
+ const y = Ke(void 0, at.importFilesBucketUrl), p = He(y, c.importFile), g = await Je(p);
79
79
  window.open(g, "_blank");
80
80
  } catch (y) {
81
81
  console.log(y), Ae.error("Failed to download uploaded file");
@@ -84,19 +84,19 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
84
84
  async function m(y) {
85
85
  switch (y) {
86
86
  case "csv":
87
- const p = new Blob([T.join(",")], {
87
+ const p = new Blob([M.join(",")], {
88
88
  type: "text/csv;charset=utf-8;"
89
89
  });
90
90
  Qe.saveAs(p, "ImportSegmentTemplate.csv");
91
91
  break;
92
92
  case "xlsx":
93
- const g = de.aoa_to_sheet([T]), S = de.book_new();
93
+ const g = de.aoa_to_sheet([M]), S = de.book_new();
94
94
  de.book_append_sheet(S, g, "Sheet1"), ke(S, "ImportSegmentTemplate.xlsx");
95
95
  break;
96
96
  }
97
97
  }
98
98
  function i(y) {
99
- _.value = y, M("update:file", _.value);
99
+ _.value = y, T("update:file", _.value);
100
100
  }
101
101
  function A(y) {
102
102
  var g, S;
@@ -104,7 +104,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
104
104
  i(p);
105
105
  }
106
106
  return (y, p) => {
107
- const g = x("FmButton"), S = x("FmMenuItem"), j = x("FmMenu"), q = x("FmDropField");
107
+ const g = h("FmButton"), S = h("FmMenuItem"), j = h("FmMenu"), q = h("FmDropField");
108
108
  return r(), k("div", st, [
109
109
  p[2] || (p[2] = s("div", { class: "fm-typo-en-title-sm-800" }, "Upload File", -1)),
110
110
  t.importFile ? (r(), k("div", lt, [
@@ -114,7 +114,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
114
114
  icon: "file_present",
115
115
  onClick: a
116
116
  }, null, 8, ["label", "variant"])
117
- ])) : K("", !0),
117
+ ])) : H("", !0),
118
118
  s("div", null, [
119
119
  s("div", it, [
120
120
  d(j, { class: "" }, {
@@ -175,7 +175,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
175
175
  ]);
176
176
  };
177
177
  }
178
- }), ut = { class: "space-y-16 pr-12" }, mt = { class: "fm-typo-en-title-md-800" }, pt = { class: "flex space-x-8" }, ft = { class: "fm-typo-en-title-md-800 text-fm-color-primary" }, yt = { class: "text-fm-color-typo-secondary" }, xe = /* @__PURE__ */ le({
178
+ }), ut = { class: "space-y-16 pr-12" }, mt = { class: "fm-typo-en-title-md-800" }, pt = { class: "flex space-x-8" }, ft = { class: "fm-typo-en-title-md-800 text-fm-color-primary" }, yt = { class: "text-fm-color-typo-secondary" }, he = /* @__PURE__ */ le({
179
179
  __name: "ReviewSegment",
180
180
  props: {
181
181
  title: {},
@@ -184,7 +184,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
184
184
  setup(t) {
185
185
  const f = t, c = O(
186
186
  () => f.segment.memberCount ?? f.segment.members.length
187
- ), M = O(
187
+ ), T = O(
188
188
  () => f.segment.lastUpdated ? se(f.segment.lastUpdated).format("DD MMM YYYY") : "Not refreshed yet"
189
189
  ), b = [
190
190
  {
@@ -227,7 +227,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
227
227
  }
228
228
  };
229
229
  }
230
- const { tableMeta: u, rowData: T, onSort: E, debouncedFetchData: a, onSearch: m } = Fe(_);
230
+ const { tableMeta: u, rowData: M, onSort: E, debouncedFetchData: a, onSearch: m } = Fe(_);
231
231
  return we(async () => {
232
232
  await a();
233
233
  }), (i, A) => (r(), k("div", ut, [
@@ -236,12 +236,12 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
236
236
  s("div", ft, D(e(c)), 1),
237
237
  s("div", yt, [
238
238
  A[1] || (A[1] = s("div", null, "contacts in your segment", -1)),
239
- s("div", null, "as of " + D(e(M)), 1)
239
+ s("div", null, "as of " + D(e(T)), 1)
240
240
  ])
241
241
  ]),
242
242
  d(Ce, {
243
243
  loading: e(u).isLoading,
244
- "row-data": e(T),
244
+ "row-data": e(M),
245
245
  "row-count": e(u).totalRows,
246
246
  "column-defs": b,
247
247
  "page-size": e(u).pageSize,
@@ -252,7 +252,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
252
252
  }, null, 8, ["loading", "row-data", "row-count", "page-size", "page-count", "page-index", "onSortChange"])
253
253
  ]));
254
254
  }
255
- }), gt = { class: "space-y-24" }, vt = { class: "grid grid-cols-2 gap-16" }, _t = { class: "fm-typo-en-title-sm-800" }, St = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, xt = /* @__PURE__ */ le({
255
+ }), gt = { class: "space-y-24" }, vt = { class: "grid grid-cols-2 gap-16" }, _t = { class: "fm-typo-en-title-sm-800" }, St = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ht = /* @__PURE__ */ le({
256
256
  __name: "SegmentTypeOption",
257
257
  props: {
258
258
  modelValue: {},
@@ -260,7 +260,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
260
260
  },
261
261
  emits: ["update:model-value"],
262
262
  setup(t, { emit: f }) {
263
- const c = t, M = f, b = [
263
+ const c = t, T = f, b = [
264
264
  {
265
265
  label: "Dynamic",
266
266
  sublabel: "Segment statistics are based on rules configured and will be recalculated automatically when rule changes.",
@@ -273,10 +273,10 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
273
273
  }
274
274
  ];
275
275
  function _(u) {
276
- u !== c.modelValue && M("update:model-value", u);
276
+ u !== c.modelValue && T("update:model-value", u);
277
277
  }
278
- return (u, T) => {
279
- const E = x("FmCard"), a = x("FmHelperText");
278
+ return (u, M) => {
279
+ const E = h("FmCard"), a = h("FmHelperText");
280
280
  return r(), k("div", gt, [
281
281
  s("div", vt, [
282
282
  (r(), k(Z, null, me(b, (m) => d(E, {
@@ -301,17 +301,17 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
301
301
  class: "!mt-4",
302
302
  text: t.errorText,
303
303
  state: "error"
304
- }, null, 8, ["text"])) : K("", !0)
304
+ }, null, 8, ["text"])) : H("", !0)
305
305
  ]);
306
306
  };
307
307
  }
308
- }), ht = { class: "flex items-center gap-x-8" }, bt = {
308
+ }), xt = { class: "flex items-center gap-x-8" }, bt = {
309
309
  key: 0,
310
310
  class: "space-y-16 pr-12"
311
311
  }, wt = {
312
312
  key: 0,
313
313
  class: "flex flex-col gap-12"
314
- }, Ft = { class: "flex flex-wrap items-center gap-8" }, Ct = { class: "fm-typo-en-title-sm-800" }, kt = { class: "flex flex-col gap-4" }, It = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Mt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Tt = {
314
+ }, Ft = { class: "flex flex-wrap items-center gap-8" }, Ct = { class: "fm-typo-en-title-sm-800" }, kt = { class: "flex flex-col gap-4" }, It = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Mt = {
315
315
  key: 2,
316
316
  class: "flex flex-col space-y-16"
317
317
  }, Et = {
@@ -323,17 +323,17 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
323
323
  }, $t = {
324
324
  key: 5,
325
325
  class: "flex flex-col space-y-16"
326
- }, At = { class: "flex items-center gap-8" }, Pt = /* @__PURE__ */ le({
326
+ }, At = { class: "flex items-center gap-8" }, Rt = /* @__PURE__ */ le({
327
327
  __name: "SegmentSheet",
328
328
  emits: ["update:model-value"],
329
329
  setup(t, { expose: f, emit: c }) {
330
- const M = je(), { t: b } = pe(), _ = W(!1), u = W(!1), T = {
330
+ const T = je(), { t: b } = pe(), _ = W(!1), u = W(!1), M = {
331
331
  name: "",
332
332
  isActive: !0,
333
333
  type: U.enum.DYNAMIC,
334
334
  rule: ve.scaffoldGroup(),
335
335
  members: []
336
- }, E = nt, a = W(T), m = O(() => !!a.value.defaultKey), i = O(
336
+ }, E = nt, a = W(M), m = O(() => !!a.value.defaultKey), i = O(
337
337
  () => a.value.defaultKey ? `connect.loyalty.segment.default_segments.${a.value.defaultKey.toLowerCase()}` : void 0
338
338
  ), A = O(
339
339
  () => i.value ? b(`${i.value}.name`) : a.value.name
@@ -349,7 +349,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
349
349
  ...v,
350
350
  isActive: v.isActive !== !1,
351
351
  type: v.type ?? (v.importFile ? U.enum.STATIC : U.enum.DYNAMIC)
352
- } : a.value = { ...T };
352
+ } : a.value = { ...M };
353
353
  }
354
354
  function S() {
355
355
  _.value = !1;
@@ -373,10 +373,10 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
373
373
  showSheet: g,
374
374
  hideSheet: S
375
375
  }), (v, l) => {
376
- const P = x("FmButton"), X = x("FmChip"), ee = x("FmCard"), te = x("FmSwitch"), o = x("FmSideSheet");
376
+ const R = h("FmButton"), X = h("FmChip"), ee = h("FmCard"), te = h("FmSwitch"), o = h("FmSideSheet");
377
377
  return r(), V(o, {
378
378
  modelValue: e(_),
379
- "onUpdate:modelValue": l[9] || (l[9] = (n) => Te(_) ? _.value = n : null),
379
+ "onUpdate:modelValue": l[9] || (l[9] = (n) => Me(_) ? _.value = n : null),
380
380
  header: e(m) ? e(b)("connect.loyalty.segment.default_segments.default_segment") : e(a)._id ? "Edit segment" : "Add segment",
381
381
  "dismiss-away": "",
382
382
  "close-button": !0,
@@ -384,30 +384,30 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
384
384
  }, Ee({
385
385
  "side-sheet-footer": $(() => [
386
386
  s("div", At, [
387
- e(m) ? (r(), V(P, {
387
+ e(m) ? (r(), V(R, {
388
388
  key: 0,
389
389
  label: e(b)("connect.loyalty.segment.default_segments.close"),
390
390
  onClick: l[6] || (l[6] = (n) => S()),
391
391
  variant: "tertiary"
392
392
  }, null, 8, ["label"])) : e(u) || e(a).type === e(U).enum.STATIC ? (r(), k(Z, { key: 1 }, [
393
- d(P, {
393
+ d(R, {
394
394
  label: "Save Segment",
395
395
  onClick: I,
396
- loading: e(M).isLoading,
397
- disabled: e(p).length > 0 || e(M).isLoading
396
+ loading: e(T).isLoading,
397
+ disabled: e(p).length > 0 || e(T).isLoading
398
398
  }, null, 8, ["loading", "disabled"]),
399
- d(P, {
399
+ d(R, {
400
400
  label: "Cancel",
401
401
  onClick: l[7] || (l[7] = (n) => q(e(a).type)),
402
402
  variant: "tertiary"
403
403
  })
404
404
  ], 64)) : (r(), k(Z, { key: 2 }, [
405
- d(P, {
405
+ d(R, {
406
406
  label: "Review Segment",
407
- disabled: e(p).length > 0 || e(M).isLoading,
407
+ disabled: e(p).length > 0 || e(T).isLoading,
408
408
  onClick: j
409
409
  }, null, 8, ["disabled"]),
410
- d(P, {
410
+ d(R, {
411
411
  label: "Cancel",
412
412
  onClick: l[8] || (l[8] = (n) => S()),
413
413
  variant: "tertiary"
@@ -419,7 +419,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
419
419
  var n, F;
420
420
  return [
421
421
  d(Xe, { json: e(a) }, null, 8, ["json"]),
422
- e(u) ? (r(), V(xe, {
422
+ e(u) ? (r(), V(he, {
423
423
  key: 1,
424
424
  title: e(a).name,
425
425
  segment: e(a)
@@ -440,7 +440,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
440
440
  default: $(() => [
441
441
  s("div", kt, [
442
442
  s("div", It, D(e(b)("connect.loyalty.segment.default_segments.description")), 1),
443
- s("div", Mt, D(e(y)), 1)
443
+ s("div", Tt, D(e(y)), 1)
444
444
  ])
445
445
  ]),
446
446
  _: 1
@@ -452,9 +452,9 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
452
452
  label: "Segment title",
453
453
  schema: e(Oe).typeAtPath(e(E), "name")
454
454
  }, null, 8, ["modelValue", "schema"])),
455
- e(m) ? K("", !0) : (r(), k("div", Tt, [
455
+ e(m) ? H("", !0) : (r(), k("div", Mt, [
456
456
  l[11] || (l[11] = s("div", { class: "fm-typo-en-title-sm-800" }, "Segment Type", -1)),
457
- d(xt, {
457
+ d(ht, {
458
458
  "model-value": e(a).type,
459
459
  "onUpdate:modelValue": l[2] || (l[2] = (w) => {
460
460
  G(w);
@@ -471,7 +471,7 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
471
471
  e(a).rule = w;
472
472
  })
473
473
  }, null, 8, ["model-value"])
474
- ])) : e(m) ? K("", !0) : (r(), k("div", Dt, [
474
+ ])) : e(m) ? H("", !0) : (r(), k("div", Dt, [
475
475
  d(dt, {
476
476
  importFile: e(a).importFile,
477
477
  "onUpdate:file": l[4] || (l[4] = (w) => {
@@ -488,12 +488,12 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
488
488
  sublabel: "When enabled, this will recalculate the segment statistics daily.",
489
489
  "label-placement": "right"
490
490
  }, null, 8, ["model-value"])
491
- ])) : K("", !0),
492
- e(m) ? (r(), V(xe, {
491
+ ])) : H("", !0),
492
+ e(m) ? (r(), V(he, {
493
493
  key: (F = e(a)._id) == null ? void 0 : F.toString(),
494
494
  title: e(b)("connect.loyalty.segment.default_segments.members"),
495
495
  segment: e(a)
496
- }, null, 8, ["title", "segment"])) : K("", !0)
496
+ }, null, 8, ["title", "segment"])) : H("", !0)
497
497
  ]))
498
498
  ];
499
499
  }),
@@ -502,8 +502,8 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
502
502
  e(u) && !e(m) ? {
503
503
  name: "side-sheet-header",
504
504
  fn: $(() => [
505
- s("div", ht, [
506
- d(P, {
505
+ s("div", xt, [
506
+ d(R, {
507
507
  icon: "arrow_back",
508
508
  variant: "tertiary",
509
509
  onClick: l[0] || (l[0] = (n) => u.value = !1)
@@ -516,33 +516,33 @@ const st = { class: "flex flex-col space-y-16" }, lt = {
516
516
  ]), 1032, ["modelValue", "header"]);
517
517
  };
518
518
  }
519
- }), he = We(), Rt = Ie();
519
+ }), xe = We(), Pt = Ie();
520
520
  function ue(t) {
521
521
  const f = se(t);
522
522
  return f.isValid() ? f.format("DD/MM/YYYY") : "";
523
523
  }
524
524
  const Nt = {
525
525
  mapMemberExportRow: (t) => {
526
- var a, m, i, A, y, p, g, S, j, q, I, G, J, v, l, P, X, ee, te, o, n, F, w, R, H, L, oe, ne;
527
- const f = O(() => Rt.locations.map((C) => ({
526
+ var a, m, i, A, y, p, g, S, j, q, I, G, J, v, l, R, X, ee, te, o, n, F, w, P, K, L, oe, ne;
527
+ const f = O(() => Pt.locations.map((C) => ({
528
528
  label: C.name,
529
529
  value: C._id
530
530
  }))), c = (a = Ye.parseOneAddress(
531
531
  t == null ? void 0 : t.email
532
- )) != null && a.domain.includes("feedmepos.com") ? void 0 : t.email, M = (i = ((m = t == null ? void 0 : t.collection) == null ? void 0 : m.TITLE) || []) == null ? void 0 : i.reduce(
532
+ )) != null && a.domain.includes("feedmepos.com") ? void 0 : t.email, T = (i = ((m = t == null ? void 0 : t.collection) == null ? void 0 : m.TITLE) || []) == null ? void 0 : i.reduce(
533
533
  (C, N) => {
534
- var h, Y;
535
- const Q = (Y = (h = he.sortedTitles) == null ? void 0 : h.find(
534
+ var x, Y;
535
+ const Q = (Y = (x = xe.sortedTitles) == null ? void 0 : x.find(
536
536
  (ie) => ie._id === N.collectible
537
537
  )) == null ? void 0 : Y.name;
538
538
  return !Q || N.balance <= 0 || C.push(Q), C;
539
539
  },
540
540
  []
541
- ), b = (he.sortedTitles || []).reduce(
541
+ ), b = (xe.sortedTitles || []).reduce(
542
542
  (C, N) => {
543
- var h, Y, ie, fe;
544
- const Q = (fe = (ie = (Y = (((h = t == null ? void 0 : t.collection) == null ? void 0 : h.TITLE) || []).find(
545
- (Me) => Me.collectible === N._id
543
+ var x, Y, ie, fe;
544
+ const Q = (fe = (ie = (Y = (((x = t == null ? void 0 : t.collection) == null ? void 0 : x.TITLE) || []).find(
545
+ (Te) => Te.collectible === N._id
546
546
  )) == null ? void 0 : Y.expiryBalance) == null ? void 0 : ie[0]) == null ? void 0 : fe.expiredAt;
547
547
  return C[N.name] = Q ? se(Q).format("DD/MM/YYYY") : "", C;
548
548
  },
@@ -550,7 +550,7 @@ const Nt = {
550
550
  ), _ = ((p = (y = (A = t.collection) == null ? void 0 : A.CREDIT) == null ? void 0 : y.at(0)) == null ? void 0 : p.balance) || 0, u = ((q = (j = (S = (g = t.collection) == null ? void 0 : g.CREDIT) == null ? void 0 : S.at(0)) == null ? void 0 : j.expiryBalance) == null ? void 0 : q.reduce(
551
551
  (C, N) => C + N.amount,
552
552
  0
553
- )) || 0, T = et(_, 2);
553
+ )) || 0, M = et(_, 2);
554
554
  return {
555
555
  ID: t._id.toString(),
556
556
  Name: ((I = t.name) == null ? void 0 : I.trim()) || "",
@@ -559,14 +559,14 @@ const Nt = {
559
559
  Gender: t.gender || "",
560
560
  CardNo: t.cardNo || "",
561
561
  Birthday: t != null && t.birthday ? ue(t == null ? void 0 : t.birthday) : "",
562
- Credit: parseFloat((Number(T) - Number(u)).toFixed(2)),
562
+ Credit: parseFloat((Number(M) - Number(u)).toFixed(2)),
563
563
  FreeCredit: Number(u.toFixed(2)),
564
- TotalCredit: Number(T),
564
+ TotalCredit: Number(M),
565
565
  Exp: t != null && t.collection ? ((l = (v = (J = t.collection) == null ? void 0 : J.POINT) == null ? void 0 : v.at(0)) == null ? void 0 : l.balance) ?? 0 : 0,
566
- Point: t != null && t.collection ? ((ee = (X = (P = t.collection) == null ? void 0 : P.COIN) == null ? void 0 : X.at(0)) == null ? void 0 : ee.balance) ?? 0 : 0,
566
+ Point: t != null && t.collection ? ((ee = (X = (R = t.collection) == null ? void 0 : R.COIN) == null ? void 0 : X.at(0)) == null ? void 0 : ee.balance) ?? 0 : 0,
567
567
  Level: t != null && t.collection ? ((n = (o = (te = t.collection) == null ? void 0 : te.TIER) == null ? void 0 : o.at(0)) == null ? void 0 : n.balance) ?? 0 : 0,
568
- Tier: t != null && t.collection ? ((R = (w = (F = t.collection) == null ? void 0 : F.TIER) == null ? void 0 : w.at(0)) == null ? void 0 : R.balance) ?? 0 : 0,
569
- Titles: M.join(","),
568
+ Tier: t != null && t.collection ? ((P = (w = (F = t.collection) == null ? void 0 : F.TIER) == null ? void 0 : w.at(0)) == null ? void 0 : P.balance) ?? 0 : 0,
569
+ Titles: T.join(","),
570
570
  ...b,
571
571
  TotalTransaction: t.stats.visitCount,
572
572
  AvgSpent: tt(Number(t.stats.avgBillSize || 0)).toFormat(
@@ -574,7 +574,7 @@ const Nt = {
574
574
  ),
575
575
  TotalSpent: t.stats.avgBillSize * t.stats.visitCount,
576
576
  LastVisit: ue(t.stats.lastVisit),
577
- Feedback: ((H = t.stats) == null ? void 0 : H.feedbackCount) || 0,
577
+ Feedback: ((K = t.stats) == null ? void 0 : K.feedbackCount) || 0,
578
578
  LastSeasonTierEarned: ((L = t.stats) == null ? void 0 : L.lastSeasonTierEarned) || 0,
579
579
  LastSeasonPointEarned: ((oe = t.stats) == null ? void 0 : oe.lastSeasonPointEarned) || 0,
580
580
  JoinedAt: ue(t.joinAt || void 0),
@@ -584,10 +584,10 @@ const Nt = {
584
584
  )}`
585
585
  };
586
586
  }
587
- }, Bt = { class: "flex items-center" }, Ut = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, Vt = { class: "px-24 flex flex-col gap-y-16" }, Lt = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Yt = { class: "flex flex-wrap items-center gap-8" }, zt = { class: "fm-typo-en-body-md-600" }, Ot = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, jt = { class: "flex flex-col gap-16 text-center" }, qt = { class: "fm-typo-en-title-sm-800" }, Gt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, be = "text-fm-color-typo-info bg-fm-color-system-info-100", Mo = /* @__PURE__ */ le({
587
+ }, Bt = { class: "flex items-center" }, Ut = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, Vt = { class: "px-24 flex flex-col gap-y-16" }, Lt = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Yt = { class: "flex flex-wrap items-center gap-8" }, zt = { class: "fm-typo-en-body-md-600" }, Ot = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, jt = { class: "flex flex-col gap-16 text-center" }, qt = { class: "fm-typo-en-title-sm-800" }, Gt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, be = "text-fm-color-typo-info bg-fm-color-system-info-100", To = /* @__PURE__ */ le({
588
588
  __name: "Segment",
589
589
  setup(t) {
590
- const { minor: f } = Re, { t: c } = pe(), M = Ie(), { mapMemberExportRow: b } = Nt, _ = Ne(), u = ot(), T = W(0);
590
+ const { minor: f } = Pe, { t: c } = pe(), T = Ie(), { mapMemberExportRow: b } = Nt, _ = Ne(), u = ot(), M = W(0);
591
591
  function E(o) {
592
592
  return !!o.defaultKey;
593
593
  }
@@ -599,7 +599,7 @@ const Nt = {
599
599
  return n ? c(`${n}.name`) : o.name;
600
600
  }
601
601
  function i(o) {
602
- return T.value <= 0 ? "0.00" : ((o ?? 0) * 100 / T.value).toFixed(2);
602
+ return M.value <= 0 ? "0.00" : ((o ?? 0) * 100 / M.value).toFixed(2);
603
603
  }
604
604
  const A = [
605
605
  {
@@ -741,7 +741,7 @@ const Nt = {
741
741
  );
742
742
  }
743
743
  async function G(o) {
744
- await Pe.remove(`Are you sure you want to remove ${o.name}?`) && await f(
744
+ await Re.remove(`Are you sure you want to remove ${o.name}?`) && await f(
745
745
  async () => {
746
746
  await z.delete(o._id), await S({ pageSize: 10, pageIndex: 0 });
747
747
  },
@@ -758,18 +758,18 @@ const Nt = {
758
758
  rowsPerPage: 1e3,
759
759
  page: 1,
760
760
  rowsNumber: 0
761
- }, F = new ze(), w = m(o), R = (await _e.read({
761
+ }, F = new ze(), w = m(o), P = (await _e.read({
762
762
  limit: 1,
763
763
  skip: 0,
764
764
  sortBy: n.sortBy,
765
765
  descending: n.descending
766
- })).meta.totalResources ?? 0, H = n.rowsPerPage;
766
+ })).meta.totalResources ?? 0, K = n.rowsPerPage;
767
767
  await f(
768
768
  async () => {
769
- for (let L = 0; L < R; L += H) {
769
+ for (let L = 0; L < P; L += K) {
770
770
  const oe = {
771
771
  ...n,
772
- limit: H,
772
+ limit: K,
773
773
  skip: n.page - 1,
774
774
  sortBy: n.sortBy,
775
775
  descending: n.descending
@@ -806,11 +806,11 @@ const Nt = {
806
806
  if (o.type === U.enum.STATIC) {
807
807
  const F = new FormData();
808
808
  if (F.append("file", o.file), o._id) {
809
- const { members: w, _id: R, file: H, ...L } = o;
809
+ const { members: w, _id: P, file: K, ...L } = o;
810
810
  F.append("segment", JSON.stringify(L)), await z.updateStatic(o._id, F);
811
811
  } else {
812
- const { file: w, ...R } = o;
813
- F.append("segment", JSON.stringify(R)), await z.createStatic(F);
812
+ const { file: w, ...P } = o;
813
+ F.append("segment", JSON.stringify(P)), await z.createStatic(F);
814
814
  }
815
815
  o.file && _.open({
816
816
  type: "info",
@@ -824,8 +824,8 @@ const Nt = {
824
824
  }
825
825
  });
826
826
  } else if (o._id) {
827
- const { members: F, _id: w, ...R } = o;
828
- await z.update(o._id, R);
827
+ const { members: F, _id: w, ...P } = o;
828
+ await z.update(o._id, P);
829
829
  } else
830
830
  await z.create(o);
831
831
  await S({ pageSize: 10, pageIndex: 0 }), (n = y.value) == null || n.hideSheet();
@@ -840,7 +840,7 @@ const Nt = {
840
840
  var n;
841
841
  (n = y.value) == null || n.showSheet(o);
842
842
  }
843
- const P = {
843
+ const R = {
844
844
  label: c("connect.navigation.queue"),
845
845
  value: "queue",
846
846
  isPrimary: !1,
@@ -851,9 +851,9 @@ const Nt = {
851
851
  isPrimary: !1,
852
852
  prependIcon: "auto_awesome"
853
853
  }, ee = O(() => {
854
- if (!M.isPremium)
854
+ if (!T.isPremium)
855
855
  return [];
856
- const o = [P];
856
+ const o = [R];
857
857
  return j.value && o.push(X), o.push(
858
858
  {
859
859
  label: c("connect.loyalty.segment.actions.refresh"),
@@ -895,14 +895,14 @@ const Nt = {
895
895
  search: void 0,
896
896
  descending: !1
897
897
  });
898
- T.value = o.totalResources ?? 0, await S({ pageSize: 10, pageIndex: 0 }), await M.readPremium(), await M.readLocations();
898
+ M.value = o.totalResources ?? 0, await S({ pageSize: 10, pageIndex: 0 }), await T.readPremium(), await T.readLocations();
899
899
  }), (o, n) => {
900
- const F = x("FmPill"), w = x("FmPageHead"), R = x("FmChip"), H = x("FmIcon"), L = x("FmMenuItem"), oe = x("FmMenu"), ne = x("FmListItem"), C = x("FmList"), N = x("FmButton"), Q = x("FmCard");
900
+ const F = h("FmPill"), w = h("FmPageHead"), P = h("FmChip"), K = h("FmIcon"), L = h("FmMenuItem"), oe = h("FmMenu"), ne = h("FmListItem"), C = h("FmList"), N = h("FmButton"), Q = h("FmCard");
901
901
  return r(), k(Z, null, [
902
902
  d(w, {
903
903
  title: "Segments",
904
904
  actions: e(ee),
905
- "onClick:action": n[0] || (n[0] = (h) => te(h))
905
+ "onClick:action": n[0] || (n[0] = (x) => te(x))
906
906
  }, {
907
907
  title: $(() => [
908
908
  s("div", Bt, [
@@ -923,49 +923,49 @@ const Nt = {
923
923
  "page-count": e(p).pageCount,
924
924
  "page-index": e(p).pageIndex,
925
925
  "page-size": e(p).pageSize,
926
- onRowClick: n[1] || (n[1] = (h) => {
927
- l(h.original);
926
+ onRowClick: n[1] || (n[1] = (x) => {
927
+ l(x.original);
928
928
  }),
929
929
  onPageChange: e(S)
930
930
  }, null, 8, ["loading", "row-data", "row-count", "page-count", "page-index", "page-size", "onPageChange"]),
931
931
  d(C, { class: "w-full hidden xs:!block" }, {
932
932
  default: $(() => [
933
- (r(!0), k(Z, null, me(e(g), (h) => (r(), V(ne, {
934
- key: h._id.toString(),
933
+ (r(!0), k(Z, null, me(e(g), (x) => (r(), V(ne, {
934
+ key: x._id.toString(),
935
935
  tag: "label",
936
- onClick: (Y) => l(h)
936
+ onClick: (Y) => l(x)
937
937
  }, {
938
938
  default: $(() => [
939
939
  s("div", null, [
940
- s("div", Lt, D((h.memberCount ?? 0).toLocaleString()) + " total customers ", 1),
940
+ s("div", Lt, D((x.memberCount ?? 0).toLocaleString()) + " total customers ", 1),
941
941
  s("div", Yt, [
942
- s("span", zt, D(m(h)), 1),
943
- E(h) ? (r(), V(R, {
942
+ s("span", zt, D(m(x)), 1),
943
+ E(x) ? (r(), V(P, {
944
944
  key: 0,
945
945
  class: ce(be),
946
946
  label: e(c)("connect.loyalty.segment.default_segments.system"),
947
947
  compact: ""
948
- }, null, 8, ["label"])) : K("", !0)
948
+ }, null, 8, ["label"])) : H("", !0)
949
949
  ]),
950
- s("div", Ot, D(i(h.memberCount)) + "% of customers ", 1)
950
+ s("div", Ot, D(i(x.memberCount)) + "% of customers ", 1)
951
951
  ])
952
952
  ]),
953
953
  append: $(() => [
954
954
  d(oe, { "stop-click-propagation": !0 }, {
955
955
  "menu-button": $(() => [
956
- d(H, { name: "more_vert" })
956
+ d(K, { name: "more_vert" })
957
957
  ]),
958
958
  default: $(() => [
959
959
  d(L, {
960
960
  class: "fm-typo-en-body-md-400",
961
961
  label: "Export",
962
- "onUpdate:modelValue": (Y) => Y && J(h)
962
+ "onUpdate:modelValue": (Y) => Y && J(x)
963
963
  }, null, 8, ["onUpdate:modelValue"]),
964
- E(h) ? K("", !0) : (r(), V(L, {
964
+ E(x) ? H("", !0) : (r(), V(L, {
965
965
  key: 0,
966
966
  class: "text-fm-color-typo-error fm-typo-en-body-md-400",
967
967
  label: "Remove",
968
- "onUpdate:modelValue": (Y) => Y && G(h)
968
+ "onUpdate:modelValue": (Y) => Y && G(x)
969
969
  }, null, 8, ["onUpdate:modelValue"]))
970
970
  ]),
971
971
  _: 2
@@ -995,14 +995,14 @@ const Nt = {
995
995
  d(N, {
996
996
  variant: "primary",
997
997
  label: e(c)("connect.loyalty.segment.default_segments.get_started.action"),
998
- disabled: !e(M).isPremium,
998
+ disabled: !e(T).isPremium,
999
999
  icon: "auto_awesome",
1000
- onClick: n[2] || (n[2] = (h) => I())
1000
+ onClick: n[2] || (n[2] = (x) => I())
1001
1001
  }, null, 8, ["label", "disabled"])
1002
1002
  ]),
1003
1003
  _: 1
1004
1004
  })),
1005
- d(Pt, {
1005
+ d(Rt, {
1006
1006
  ref_key: "sheetRef",
1007
1007
  ref: y,
1008
1008
  "onUpdate:modelValue": v
@@ -1013,5 +1013,5 @@ const Nt = {
1013
1013
  }
1014
1014
  });
1015
1015
  export {
1016
- Mo as default
1016
+ To as default
1017
1017
  };