@feedmepos/mf-connect 0.1.117-prod → 0.1.118-dev

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 (154) hide show
  1. package/README.md +68 -1
  2. package/dist/{App-CAo1izHr.js → App-CBFNBDb2.js} +435 -418
  3. package/dist/AuditLogs-BtSA8b08.js +2016 -0
  4. package/dist/{Bin-DDDfjisJ.js → Bin-CjmS_Tfn.js} +8 -8
  5. package/dist/{Broadcast-BsCulZhE.js → Broadcast-BeePmZa1.js} +22 -21
  6. package/dist/{CampaignAnalytic-CnVYFSkT.js → CampaignAnalytic-CZlnyvOi.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-ZTHyZ_0y.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Du3Ah4HP.js} +9 -9
  8. package/dist/{Card-DPyQH9qZ.js → Card-C8SzQQ0z.js} +25 -24
  9. package/dist/{Collections-CZCVA969.js → Collections-BXNWTSZH.js} +197 -185
  10. package/dist/{Credit-BTg364-i.js → Credit-CK0-0yD1.js} +21 -20
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BJx8K6Ja.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BXYpYC7Y.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CdpnNDzR.js +4439 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CfEnSXzg.js → EffectSheet.vue_vue_type_style_index_0_lang--Oyj3KYg.js} +32 -32
  14. package/dist/{Experience-Bk_eUcSX.js → Experience-CWJaj62g.js} +32 -31
  15. package/dist/{FileSaver.min-CXFiZAp7.js → FileSaver.min-lV9H82L5.js} +1 -1
  16. package/dist/{Game-CBnKpFdl.js → Game-zBV1LYAg.js} +19 -18
  17. package/dist/{GiftCardSetup-q75wNV_F.js → GiftCardSetup-Cnq9353j.js} +75 -75
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Cga0Th2O.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CdgSBdrX.js} +7 -7
  19. package/dist/{Goals-Bbbgurfd.js → Goals-Utk08egN.js} +4 -4
  20. package/dist/Grab-DwMmWmbT.js +301 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CZS05h1r.js → ImageInput.vue_vue_type_script_setup_true_lang-CNPeU9xm.js} +1 -1
  22. package/dist/{Index-C8_OWllb.js → Index-Bjgs18xf.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BlCg-jI7.js → LocationPicker.vue_vue_type_script_setup_true_lang-DWnf4lXH.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CACxChIo.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Dy_oWJaZ.js} +1 -1
  25. package/dist/{LoyaltyDashboard-DJlE0371.js → LoyaltyDashboard-DmUfujX_.js} +15 -15
  26. package/dist/MainLayout-DlDZQJfy.js +4 -0
  27. package/dist/{MainLayout-Bs2UPvFx.js → MainLayout.vue_vue_type_script_setup_true_lang-yAflY70k.js} +5 -4
  28. package/dist/Marketing-B0iKlHP-.js +269 -0
  29. package/dist/MarketingMaterialEdit-BNHxVb8A.js +1037 -0
  30. package/dist/{Member-C4yqwsMH.js → Member-Bcm3_pWB.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BbumjyC_.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CPp4OpOx.js} +43 -50
  32. package/dist/{MemberImportHistory-CbuXCdxC.js → MemberImportHistory-AQgLzB3g.js} +7 -7
  33. package/dist/{MemberList-CpAepPBe.js → MemberList-CkMTo2uD.js} +103 -105
  34. package/dist/{MemberTransactions-BbpXvsSk.js → MemberTransactions-CxLCVjvw.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BaWgxbad.js → MessageInput.vue_vue_type_script_setup_true_lang-4N20f8Sj.js} +14 -14
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CEgMElLo.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DghbYpSQ.js} +1 -1
  37. package/dist/{Mission-Bdb9KVeP.js → Mission-CQS1CoDN.js} +22 -21
  38. package/dist/{Overview-CEiyGMcf.js → Overview-NQ287sgq.js} +23 -22
  39. package/dist/{Overview-D_9JwnFU.js → Overview-UG1IjY7-.js} +145 -144
  40. package/dist/{Point-Bd5cMXQx.js → Point-krMa_mb1.js} +22 -21
  41. package/dist/{Promotion-D9gZDvgR.js → Promotion-vFBmJSti.js} +137 -131
  42. package/dist/{Queue-BnAOL_rp.js → Queue-BusxSPt-.js} +46 -45
  43. package/dist/{Record-D6TWFKe0.js → Record-DjKqn0za.js} +9 -9
  44. package/dist/{Review-DLEgvnc-.js → Review-CqLp8l7U.js} +2 -2
  45. package/dist/ReviewFacebookCallback-D2kMSVFC.js +225 -0
  46. package/dist/{ReviewGoogleCallback-BgAbO3pI.js → ReviewGoogleCallback-B1cHR-o2.js} +5 -5
  47. package/dist/Reward-FeSxgzuS.js +444 -0
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bt-EqsiH.js → RewardGroup.vue_vue_type_script_setup_true_lang-CCxVjBsO.js} +16 -15
  49. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-U403emCF.js +1923 -0
  50. package/dist/{Segment-B9Se5FFw.js → Segment-Nj59F9Nr.js} +304 -305
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-f7AS5vwv.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Kg9m-0DS.js} +31 -30
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-3BKA0UFI.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLbDApPL.js} +4 -4
  53. package/dist/Setting-CCIzNxv-.js +574 -0
  54. package/dist/{SettingAdvertisements-CLw-dqiA.js → SettingAdvertisements-CkPyAg5y.js} +12 -12
  55. package/dist/Settings-CYjKGCpa.js +286 -0
  56. package/dist/{Store-B5PPP5zM.js → Store-Bp8Zkzi2.js} +31 -30
  57. package/dist/{StoreRewards-DllyaVBY.js → StoreRewards-DXW5nVyW.js} +15 -15
  58. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BYVezFI2.js +1319 -0
  59. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CS6b1cM3.js +7007 -0
  60. package/dist/{Tier-M_TApfju.js → Tier-B8Utn9Qb.js} +2576 -687
  61. package/dist/{Title-Cpltm-I2.js → Title-CwaNSFer.js} +94 -92
  62. package/dist/{Transaction-BYfAYRpv.js → Transaction-ieciAdXP.js} +2 -2
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BOhfGxVj.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CMwZl4E6.js} +26 -26
  64. package/dist/{Voucher-DHoyg0YZ.js → Voucher-BKfujj6r.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DWHwM6AJ.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CkH-rNqZ.js} +16 -16
  66. package/dist/WhatsappAccount-D73WDP7a.js +161 -0
  67. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C3L7vWZE.js +39 -0
  68. package/dist/WhatsappBot-DTWZAXhi.js +878 -0
  69. package/dist/WhatsappBotLogs-DtDcrjs9.js +372 -0
  70. package/dist/WhatsappBotSettings-7_mH9U4y.js +704 -0
  71. package/dist/WhatsappLayout-BVpaFJ8H.js +21 -0
  72. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CMeaNKJt.js +261 -0
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B6tTjLAZ.js → ZodTextField.vue_vue_type_script_setup_true_lang-BO1zA9AR.js} +2 -2
  74. package/dist/{app-B_doYklh.js → app-DX7OWVY2.js} +9159 -7383
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-DmbnT_bp.js → base.export-bamzzexi.js} +2 -2
  77. package/dist/browser-BSAOEeIM.js +1478 -0
  78. package/dist/{business-DdVGtTvx.js → business-D3U9HSu9.js} +1 -1
  79. package/dist/{campaign-jEhKmpKg.js → campaign-BqRf2VUO.js} +121 -94
  80. package/dist/{campaign-CVkA08zl.js → campaign-CKfeN2xN.js} +31 -25
  81. package/dist/{campaign.enum-DWu6-kOo.js → campaign.enum-Dx-Zo68Q.js} +3 -2
  82. package/dist/{campaign.fn-BlgEyeFz.js → campaign.fn-DQe5LZuT.js} +82 -82
  83. package/dist/{collectible.enum-CVLkXKml.js → collectible.enum-Liy2wH3s.js} +1 -1
  84. package/dist/{collection.fn-DLNGTrPf.js → collection.fn-BcGqExuE.js} +2 -2
  85. package/dist/{currency-DKS1md4e.js → currency-sjMYWoI8.js} +1 -1
  86. package/dist/duplicateCampaign-CJF3ZLNd.js +51 -0
  87. package/dist/{effect-Bk-zYexf.js → effect-Cv8ugBR3.js} +1 -1
  88. package/dist/{email-addresses-I9A5iLzf.js → email-addresses-CWqtseTn.js} +2 -2
  89. package/dist/{feature-flag-DQti61iR.js → feature-flag-BIh6MM4i.js} +152 -136
  90. package/dist/google-BQK68wbe.js +5 -0
  91. package/dist/{helper-9cPlo6ae.js → helper-WnxOxoRK.js} +1 -1
  92. package/dist/{index-DuvnRxeo.js → index-5TTGGDnF.js} +1 -1
  93. package/dist/{index-CuyzSc1l.js → index-B3CkAr-6.js} +1 -1
  94. package/dist/{index-cgtAlOl9.js → index-B9XVyhtC.js} +8028 -10767
  95. package/dist/{index-ClYX4COd.js → index-BGguMtc0.js} +4 -3
  96. package/dist/{index-CNUXbXvG.js → index-Bdg48Cus.js} +19 -6
  97. package/dist/{index-fHiFL1dW.js → index-BoAmM8QH.js} +29 -15
  98. package/dist/{index-C-OnJpT8.js → index-BtmVXdRR.js} +1 -1
  99. package/dist/{index-1Cdj34z1.js → index-CDTETsXQ.js} +1 -1
  100. package/dist/index-C_H8jFYf.js +2743 -0
  101. package/dist/{index-BxpbI0GH.js → index-CeafUn1o.js} +7 -7
  102. package/dist/{index-Dj51vqab.js → index-CiSTQhs9.js} +4 -4
  103. package/dist/{index-CIwdXphn.js → index-ClvaVYkG.js} +2700 -2613
  104. package/dist/{index-Cj6oxbl0.js → index-CnsSd5Dg.js} +11 -10
  105. package/dist/{index-oNMFyOGe.js → index-D3yYjyaj.js} +8 -7
  106. package/dist/{index-BRm0LMTo.js → index-DDzi_-Lu.js} +611 -252
  107. package/dist/{index-3V8E9GaZ.js → index-DOgDR_QH.js} +2 -2
  108. package/dist/{index-DOE2VR99.js → index-DqZX-A6e.js} +198 -198
  109. package/dist/{index-vKvGJ4Ve.js → index-DxhNNZ-a.js} +2 -2
  110. package/dist/index-DzYFQGSw.js +74 -0
  111. package/dist/index-I9lmcd2w.js +109 -0
  112. package/dist/{index-728mP6kW.js → index-iiWxryxo.js} +683 -581
  113. package/dist/{index-DWkuIfHy.js → index-qI1yx02a.js} +390 -232
  114. package/dist/{index.esm2017-CsF37oA-.js → index.esm2017-GI2alVO5.js} +177 -177
  115. package/dist/{loading-BJJmTFoe.js → loading-Qx5K2WL0.js} +1 -1
  116. package/dist/{lodash-BMJ6_hsa.js → lodash-CeSjJptg.js} +1 -1
  117. package/dist/{member-import-DrGxVJt9.js → member-import-Cq8G7SsW.js} +6 -5
  118. package/dist/{membership-CAqKihwy.js → membership-BbeavSNs.js} +3 -3
  119. package/dist/{money-Bf9d2ZUH.js → money-D8YIFaGA.js} +1 -1
  120. package/dist/{number-CWXlGZa5.js → number-DAubZ5bt.js} +1 -1
  121. package/dist/objectid-DeXFWDMh.js +145 -0
  122. package/dist/{onboarding-Dn9O7r3a.js → onboarding-SyFxaTJY.js} +25 -25
  123. package/dist/{onboardingSetup-BMkDoGy-.js → onboardingSetup-CLpHlBn8.js} +2 -2
  124. package/dist/{plugins-KDgceFWV.js → plugins-BHuaMEYA.js} +3 -3
  125. package/dist/{MarketingMaterialEdit-o88sdvTM.js → remy-icon-BhUGu2NI.js} +2 -1031
  126. package/dist/{reward-eilGRaXi.js → reward-dYWnmAC8.js} +1 -1
  127. package/dist/{rule-Dr9Zjg_o.js → rule-BVsfOP2h.js} +572 -492
  128. package/dist/style.css +1 -1
  129. package/dist/template-BcdtbhUJ.js +188 -0
  130. package/dist/{timezone-C5CIfvHs.js → timezone-CUc7q5Ii.js} +1 -1
  131. package/dist/{transaction.fn-Cr-FLjh0.js → transaction.fn-jF9u_cBy.js} +2 -2
  132. package/dist/{trigger-B0Fv6wbN.js → trigger-COlbQlaB.js} +8 -8
  133. package/dist/useMarketingMaterialActions-Dq6-gsOW.js +125 -0
  134. package/dist/{usePagination-BcA-imTr.js → usePagination-BYZB6ORK.js} +1 -1
  135. package/dist/{user-DRvLwlBE.js → user-DK7L8VFR.js} +1 -1
  136. package/dist/vue-i18n-CDSTH7g5.js +2365 -0
  137. package/dist/{xlsx-CBObn76o.js → xlsx-CKxXlDzD.js} +224 -224
  138. package/dist/{zod-DWU5EdQV.js → zod-DjtAaF0U.js} +1 -1
  139. package/package.json +6 -2
  140. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ijya9Cho.js +0 -3494
  141. package/dist/Marketing-BvRYzFV8.js +0 -236
  142. package/dist/ReviewFacebookCallback-jVlm2O8f.js +0 -238
  143. package/dist/Reward-DBheQiFu.js +0 -442
  144. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CKL8MEld.js +0 -1883
  145. package/dist/Setting-B92JT_Y4.js +0 -2037
  146. package/dist/Settings-BmmM8ZnR.js +0 -179
  147. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-3Vvqf6_H.js +0 -1264
  148. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-7ZZ0e5tQ.js +0 -142
  149. package/dist/google-C3S8u0mT.js +0 -4
  150. package/dist/objectid-2DN5a9sY.js +0 -145
  151. package/dist/rule-builder-cz6Dy-no.js +0 -102
  152. package/dist/template-DwbazO8p.js +0 -236
  153. package/dist/useMarketingMaterialActions-CNk3LR9M.js +0 -96
  154. package/dist/vue-i18n-y7bHQpNx.js +0 -2365
@@ -1,39 +1,40 @@
1
- import { defineComponent as h, h as n, ref as A, watch as B, onBeforeMount as U, resolveComponent as V, openBlock as z, createElementBlock as O, Fragment as q, createVNode as m, unref as o, createElementVNode as g } from "vue";
2
- import { u as L, _ as G } from "./usePagination-BcA-imTr.js";
1
+ import { defineComponent as h, h as n, ref as A, watch as B, onBeforeMount as U, resolveComponent as V, openBlock as z, createElementBlock as q, Fragment as G, createVNode as m, unref as o, createElementVNode as g } from "vue";
2
+ import { u as O, _ as L } from "./usePagination-BYZB6ORK.js";
3
3
  import { _ as S } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
4
4
  import { c as u } from "./string-Gcy5IM_H.js";
5
- import { c as K } from "./plugins-KDgceFWV.js";
6
- import { useDialog as Y, components as b } from "@feedmepos/ui-library";
7
- import "./index-728mP6kW.js";
8
- import "./index-CIwdXphn.js";
9
- import "./index-cgtAlOl9.js";
10
- import { n as c, a as d } from "./index-DWkuIfHy.js";
11
- import "./index-BRm0LMTo.js";
12
- import "./index-oNMFyOGe.js";
13
- import "./index-ClYX4COd.js";
14
- import { h as y } from "./moment-D7p2TMB-.js";
15
- import { u as j } from "./vue-i18n-y7bHQpNx.js";
16
- import { u as H, v as W, w as $ } from "./index.esm2017-CsF37oA-.js";
17
- import { useRoute as J } from "vue-router";
18
- import { g as Q, S as X, u as Z } from "./index-BxpbI0GH.js";
5
+ import { c as W } from "./plugins-BHuaMEYA.js";
6
+ import { useDialog as K, components as y } from "@feedmepos/ui-library";
7
+ import "./index-DDzi_-Lu.js";
8
+ import "./index-iiWxryxo.js";
9
+ import "./index-ClvaVYkG.js";
10
+ import "./index-B9XVyhtC.js";
11
+ import { n as c, a as d } from "./index-qI1yx02a.js";
12
+ import "./index-D3yYjyaj.js";
13
+ import "./index-I9lmcd2w.js";
14
+ import "./index-BGguMtc0.js";
15
+ import { h as b } from "./moment-D7p2TMB-.js";
16
+ import { u as Y } from "./vue-i18n-CDSTH7g5.js";
17
+ import { u as j, v as H, w as J } from "./index.esm2017-GI2alVO5.js";
18
+ import { useRoute as Q } from "vue-router";
19
+ import { g as $, S as X, u as Z } from "./index-CeafUn1o.js";
19
20
  import { o as ee } from "./objectId-dwaoBfJX.js";
20
21
  const te = () => {
21
22
  if (!X.getBusinessId()) throw new Error("Invalid business ID");
22
23
  return Z("queues");
23
24
  }, oe = {
24
25
  async readImportMember(p, w) {
25
- return Q(
26
+ return $(
26
27
  await te().get("", {
27
28
  params: { ...p, ...w }
28
29
  })
29
30
  );
30
31
  }
31
32
  };
32
- var ae = { 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" };
33
- const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-center justify-between" }, se = { class: "flex gap-8 items-center w-full overflow-x-scroll" }, Fe = /* @__PURE__ */ h({
33
+ var ae = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com", importFilesBucketUrl: "feedme-dev-4c3ef.appspot.com", clientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", featureFlagApiKey: "MaGoXrEWuEJNpWgKTqseee" };
34
+ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-center justify-between" }, se = { class: "flex gap-8 items-center w-full overflow-x-scroll" }, Ce = /* @__PURE__ */ h({
34
35
  __name: "Queue",
35
36
  setup(p) {
36
- const x = J().query.type, { t: v } = j(), E = Y(), F = [
37
+ const v = Q().query.type, { t: x } = Y(), E = K(), F = [
37
38
  {
38
39
  header: "ID",
39
40
  accessorKey: "_id",
@@ -42,13 +43,13 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
42
43
  },
43
44
  cell(t) {
44
45
  return n("div", { class: "flex items-center" }, [
45
- n(b.FmIcon, {
46
+ n(y.FmIcon, {
46
47
  name: "content_copy",
47
48
  outline: !0,
48
49
  size: "sm",
49
50
  class: "cursor-pointer mr-4",
50
51
  onClick: (e) => {
51
- e.preventDefault(), e.stopPropagation(), K(t.row.original._id.toString());
52
+ e.preventDefault(), e.stopPropagation(), W(t.row.original._id.toString());
52
53
  }
53
54
  }),
54
55
  n(
@@ -73,10 +74,10 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
73
74
  },
74
75
  cell(t) {
75
76
  const e = t.row.original.status;
76
- return n(b.FmChip, {
77
+ return n(y.FmChip, {
77
78
  label: e ? u.title(e) : "-",
78
79
  compact: !0,
79
- class: D(e)
80
+ class: C(e)
80
81
  });
81
82
  },
82
83
  enableSorting: !1
@@ -88,7 +89,7 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
88
89
  },
89
90
  {
90
91
  header: "Created at",
91
- accessorFn: (t) => y(ee(t._id.toString())).format("D MMM YYYY, hh:mmA"),
92
+ accessorFn: (t) => b(ee(t._id.toString())).format("D MMM YYYY, hh:mmA"),
92
93
  enableSorting: !0
93
94
  },
94
95
  {
@@ -113,18 +114,18 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
113
114
  {
114
115
  header: "Failed reason",
115
116
  cell(t) {
116
- return n(b.FmButton, {
117
+ return n(y.FmButton, {
117
118
  icon: "visibility",
118
119
  variant: "tertiary",
119
120
  disabled: !t.row.original.failedReason,
120
121
  onClick: (e) => {
121
- e.preventDefault(), e.stopPropagation(), C(t.row.original.failedReason);
122
+ e.preventDefault(), e.stopPropagation(), M(t.row.original.failedReason);
122
123
  }
123
124
  });
124
125
  },
125
126
  enableSorting: !1
126
127
  }
127
- ], D = (t) => {
128
+ ], C = (t) => {
128
129
  switch (t) {
129
130
  case c.enum.ACTIVE:
130
131
  return "text-fm-color-typo-info bg-fm-color-system-info-100";
@@ -137,7 +138,7 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
137
138
  default:
138
139
  return "text-fm-color-typo-primary bg-fm-color-system-primary-100";
139
140
  }
140
- }, R = h({
141
+ }, D = h({
141
142
  name: "FailedReasonDialog",
142
143
  props: {
143
144
  data: {
@@ -149,27 +150,27 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
149
150
  return () => n("div", { class: "whitespace-pre-line" }, t.data);
150
151
  }
151
152
  });
152
- async function C(t) {
153
+ async function M(t) {
153
154
  E.open({
154
155
  title: "Failed Reason",
155
156
  closeButton: !0,
156
157
  dismissAway: !0,
157
- contentComponent: R,
158
+ contentComponent: D,
158
159
  contentComponentProps: {
159
160
  data: t
160
161
  }
161
162
  });
162
163
  }
163
164
  const T = async (t) => {
164
- const e = H(void 0, ae.importFilesBucketUrl), r = W(e, t);
165
- return await $(r);
166
- }, M = c.options.map((t) => ({ label: u.title(t), value: t })), s = A({
167
- type: x ?? [
165
+ const e = j(void 0, ae.importFilesBucketUrl), r = H(e, t);
166
+ return await J(r);
167
+ }, R = c.options.map((t) => ({ label: u.title(t), value: t })), s = A({
168
+ type: v ?? [
168
169
  d.enum.MEMBER_IMPORTED,
169
170
  d.enum.SEGMENTATION_IMPORTED
170
171
  ],
171
172
  status: []
172
- }), { tableMeta: i, rowData: N, onSort: k, debouncedFetchData: f } = L(
173
+ }), { tableMeta: i, rowData: P, onSort: k, debouncedFetchData: f } = O(
173
174
  async (t) => {
174
175
  const e = {
175
176
  ...s.value
@@ -178,11 +179,11 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
178
179
  r.resources.map(async (a) => {
179
180
  var _, I;
180
181
  const l = (I = (_ = a.context) == null ? void 0 : _.context) == null ? void 0 : I.file;
181
- if (y(a.context.emittedAt).diff(y(), "days") < 7 && l)
182
+ if (b(a.context.emittedAt).diff(b(), "days") < 7 && l)
182
183
  try {
183
184
  l.downloadUrl = await T(l == null ? void 0 : l.fbFilePath);
184
- } catch (P) {
185
- console.log(P);
185
+ } catch (N) {
186
+ console.log(N);
186
187
  }
187
188
  })
188
189
  ), {
@@ -201,9 +202,9 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
201
202
  await f();
202
203
  }), (t, e) => {
203
204
  const r = V("FmPageHead");
204
- return z(), O(q, null, [
205
+ return z(), q(G, null, [
205
206
  m(r, {
206
- title: o(v)("connect.queue.title")
207
+ title: o(x)("connect.queue.title")
207
208
  }, null, 8, ["title"]),
208
209
  g("div", re, [
209
210
  g("div", ne, [
@@ -233,13 +234,13 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
233
234
  "onUpdate:modelValue": e[1] || (e[1] = (a) => o(s).status = a),
234
235
  label: "Status: ",
235
236
  "show-item-label": !0,
236
- items: o(M)
237
+ items: o(R)
237
238
  }, null, 8, ["modelValue", "items"])
238
239
  ])
239
240
  ]),
240
- m(G, {
241
+ m(L, {
241
242
  loading: o(i).isLoading,
242
- "row-data": o(N),
243
+ "row-data": o(P),
243
244
  "row-count": o(i).totalRows,
244
245
  "column-defs": F,
245
246
  "page-count": o(i).pageCount,
@@ -258,5 +259,5 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
258
259
  }
259
260
  });
260
261
  export {
261
- Fe as default
262
+ Ce as default
262
263
  };
@@ -2,19 +2,19 @@ var q = Object.defineProperty;
2
2
  var G = (g, o, m) => o in g ? q(g, o, { enumerable: !0, configurable: !0, writable: !0, value: m }) : g[o] = m;
3
3
  var z = (g, o, m) => G(g, typeof o != "symbol" ? o + "" : o, m);
4
4
  import { defineComponent as T, ref as B, computed as H, resolveComponent as C, openBlock as I, createBlock as J, unref as n, isRef as Q, withCtx as X, createElementBlock as U, createVNode as w, withModifiers as Z, createCommentVNode as ee, createElementVNode as N, h, onMounted as re, Fragment as te } from "vue";
5
- import { u as oe, _ as ae } from "./usePagination-BcA-imTr.js";
6
- import { g as A } from "./user-DRvLwlBE.js";
5
+ import { u as oe, _ as ae } from "./usePagination-BYZB6ORK.js";
6
+ import { g as A } from "./user-DK7L8VFR.js";
7
7
  import { components as R } from "@feedmepos/ui-library";
8
- import "./index-cgtAlOl9.js";
9
- import { u as j } from "./vue-i18n-y7bHQpNx.js";
10
- import { u as L } from "./loading-BJJmTFoe.js";
8
+ import "./index-B9XVyhtC.js";
9
+ import { u as j } from "./vue-i18n-CDSTH7g5.js";
10
+ import { u as L } from "./loading-Qx5K2WL0.js";
11
11
  import { useCoreStore as se } from "@feedmepos/mf-common";
12
- import { r as v } from "./index-1Cdj34z1.js";
12
+ import { r as v } from "./index-CDTETsXQ.js";
13
13
  import { c as ie, a as ne } from "./object-BYyQ0PZp.js";
14
- import { u as ce } from "./membership-CAqKihwy.js";
14
+ import { u as ce } from "./membership-BbeavSNs.js";
15
15
  import { c as le } from "./string-Gcy5IM_H.js";
16
- import { c as de } from "./plugins-KDgceFWV.js";
17
- import { u as V, w as me } from "./xlsx-CBObn76o.js";
16
+ import { c as de } from "./plugins-BHuaMEYA.js";
17
+ import { u as V, w as me } from "./xlsx-CKxXlDzD.js";
18
18
  import { e as f } from "./index-vh86FiIQ.js";
19
19
  import { h as ue } from "./moment-D7p2TMB-.js";
20
20
  import { o as pe } from "./objectId-dwaoBfJX.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as d, computed as v, resolveComponent as n, openBlock as f, createElementBlock as E, Fragment as R, createVNode as a, unref as l, createElementVNode as s } from "vue";
2
- import { u as b } from "./vue-i18n-y7bHQpNx.js";
3
- import { R as r } from "./app-B_doYklh.js";
2
+ import { u as b } from "./vue-i18n-CDSTH7g5.js";
3
+ import { R as r } from "./app-DX7OWVY2.js";
4
4
  import { useRouter as V } from "vue-router";
5
5
  const w = { class: "flex flex-col" }, T = { class: "px-24" }, S = /* @__PURE__ */ d({
6
6
  __name: "Review",
@@ -0,0 +1,225 @@
1
+ import { defineComponent as L, computed as T, openBlock as i, createElementBlock as m, normalizeClass as B, createElementVNode as u, createBlock as P, unref as e, toDisplayString as y, createCommentVNode as F, createVNode as v, onMounted as $, ref as I, Fragment as E, renderList as R, resolveComponent as M, isRef as N } from "vue";
2
+ import { u as C } from "./vue-i18n-CDSTH7g5.js";
3
+ import { components as x } from "@feedmepos/ui-library";
4
+ import { r as S } from "./index-CnsSd5Dg.js";
5
+ import { u as j } from "./business-D3U9HSu9.js";
6
+ import { _ as U } from "./LocationPicker.vue_vue_type_script_setup_true_lang-DWnf4lXH.js";
7
+ import { R as z } from "./app-DX7OWVY2.js";
8
+ import { useRouter as V } from "vue-router";
9
+ const A = ["src"], H = { class: "fm-typo-en-body-md-600 flex-1 truncate" }, D = {
10
+ key: 2,
11
+ class: "fm-typo-en-body-sm-400 text-fm-color-primary-500 shrink-0"
12
+ }, G = /* @__PURE__ */ L({
13
+ __name: "FacebookPageConfig",
14
+ props: {
15
+ page: {},
16
+ expanded: { type: Boolean },
17
+ availableLocations: {}
18
+ },
19
+ emits: ["toggleExpand", "toggleLocation"],
20
+ setup(s, { emit: t }) {
21
+ const k = s, f = t, { t: r } = C(), g = T(() => k.page.locationIds);
22
+ return (h, p) => (i(), m("div", {
23
+ class: B([
24
+ "rounded-lg border overflow-hidden transition-colors",
25
+ s.expanded ? "border-fm-color-primary-500" : "border-fm-color-neutral-gray-200"
26
+ ])
27
+ }, [
28
+ u("button", {
29
+ class: "w-full flex items-center gap-12 p-16 bg-white text-left hover:bg-fm-color-neutral-gray-50 transition-colors",
30
+ onClick: p[0] || (p[0] = (c) => f("toggleExpand"))
31
+ }, [
32
+ s.page.pageProfileImageUrl ? (i(), m("img", {
33
+ key: 0,
34
+ src: s.page.pageProfileImageUrl,
35
+ class: "w-32 h-32 rounded-full shrink-0 object-cover"
36
+ }, null, 8, A)) : (i(), P(e(x).FmIcon, {
37
+ key: 1,
38
+ name: "thumb_up",
39
+ class: "text-fm-color-neutral-gray-400 shrink-0"
40
+ })),
41
+ u("span", H, y(s.page.pageName), 1),
42
+ s.page.locationIds.length > 0 ? (i(), m("span", D, y(e(r)("connect.review.locationsSelected", s.page.locationIds.length)), 1)) : F("", !0),
43
+ v(e(x).FmIcon, {
44
+ name: s.expanded ? "expand_less" : "expand_more",
45
+ class: "text-fm-color-neutral-gray-400 shrink-0"
46
+ }, null, 8, ["name"])
47
+ ]),
48
+ s.expanded ? (i(), P(U, {
49
+ key: 0,
50
+ locations: s.availableLocations,
51
+ "selected-ids": e(g),
52
+ onToggle: p[1] || (p[1] = (c) => f("toggleLocation", c))
53
+ }, null, 8, ["locations", "selected-ids"])) : F("", !0)
54
+ ], 2));
55
+ }
56
+ }), O = { class: "flex flex-col gap-8" }, W = /* @__PURE__ */ L({
57
+ __name: "FacebookPageLocationMapping",
58
+ props: {
59
+ pages: {}
60
+ },
61
+ emits: ["update:pages"],
62
+ setup(s, { emit: t }) {
63
+ const k = s, f = j();
64
+ $(() => f.readLocations());
65
+ const r = t, g = I(null), h = T(() => {
66
+ const l = /* @__PURE__ */ new Set();
67
+ for (const b of k.pages)
68
+ b.locationIds.forEach((a) => l.add(a));
69
+ return l;
70
+ });
71
+ function p(l) {
72
+ const b = new Set(l.locationIds);
73
+ return f.locations.filter((a) => {
74
+ const n = a._id.toString();
75
+ return !h.value.has(n) || b.has(n);
76
+ });
77
+ }
78
+ function c(l, b) {
79
+ const a = b._id.toString(), n = k.pages.map((o) => {
80
+ if (o.facebookPageId !== l) return o;
81
+ const _ = o.locationIds.includes(a);
82
+ return {
83
+ ...o,
84
+ locationIds: _ ? o.locationIds.filter((d) => d !== a) : [...o.locationIds, a]
85
+ };
86
+ });
87
+ r("update:pages", n);
88
+ }
89
+ function w(l) {
90
+ g.value = g.value === l ? null : l;
91
+ }
92
+ return (l, b) => (i(), m("div", O, [
93
+ (i(!0), m(E, null, R(s.pages, (a) => (i(), P(G, {
94
+ key: a.facebookPageId,
95
+ page: a,
96
+ expanded: e(g) === a.facebookPageId,
97
+ "available-locations": p(a),
98
+ onToggleExpand: (n) => w(a.facebookPageId),
99
+ onToggleLocation: (n) => c(a.facebookPageId, n)
100
+ }, null, 8, ["page", "expanded", "available-locations", "onToggleExpand", "onToggleLocation"]))), 128))
101
+ ]));
102
+ }
103
+ }), q = { class: "flex flex-col min-h-full gap-16 p-24" }, J = {
104
+ key: 0,
105
+ class: "flex flex-col items-center justify-center flex-1 gap-16"
106
+ }, K = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, Q = {
107
+ key: 1,
108
+ class: "flex flex-col items-center justify-center flex-1 gap-16"
109
+ }, X = { class: "fm-typo-en-body-lg-600" }, Y = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, Z = {
110
+ key: 2,
111
+ class: "flex flex-col items-center justify-center flex-1 gap-16"
112
+ }, ee = { class: "fm-typo-en-body-lg-600" }, oe = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, te = { class: "fm-typo-en-body-lg-600" }, ne = { class: "flex gap-8 justify-end mt-auto pt-8" }, me = /* @__PURE__ */ L({
113
+ __name: "ReviewFacebookCallback",
114
+ setup(s) {
115
+ const { t } = C(), k = V();
116
+ function f() {
117
+ return k.replace({ name: z["$connect-REVIEW_SETTINGS"] });
118
+ }
119
+ const r = I([]), g = I(!1), h = I(!1), p = I(!1), c = I(null), w = T(
120
+ () => r.value.some((n) => n.locationIds.length > 0)
121
+ );
122
+ function l(n, o) {
123
+ return n instanceof Error ? n.message : o;
124
+ }
125
+ async function b() {
126
+ const n = window.location.hash;
127
+ if (!n) {
128
+ c.value = t("connect.review.noToken");
129
+ return;
130
+ }
131
+ const _ = new URLSearchParams(n.slice(1)).get("access_token");
132
+ if (!_) {
133
+ c.value = t("connect.review.noToken");
134
+ return;
135
+ }
136
+ g.value = !0;
137
+ try {
138
+ const d = await S.connectFacebook(_);
139
+ r.value = (d == null ? void 0 : d.pages) ?? [], r.value.length === 0 && (c.value = t("connect.review.facebook.noPages"));
140
+ } catch (d) {
141
+ c.value = l(d, t("connect.review.facebook.failed"));
142
+ } finally {
143
+ g.value = !1;
144
+ }
145
+ }
146
+ async function a() {
147
+ if (!w.value) {
148
+ c.value = t("connect.review.noMappings");
149
+ return;
150
+ }
151
+ const n = r.value.map((o) => ({
152
+ facebookPageId: o.facebookPageId,
153
+ locationIds: o.locationIds
154
+ }));
155
+ h.value = !0;
156
+ try {
157
+ await S.updateFacebookPages(n), p.value = !0, setTimeout(f, 2e3);
158
+ } catch (o) {
159
+ c.value = l(o, t("connect.review.facebook.failed"));
160
+ } finally {
161
+ h.value = !1;
162
+ }
163
+ }
164
+ return $(b), (n, o) => {
165
+ const _ = M("FmPageHead");
166
+ return i(), m(E, null, [
167
+ v(_, {
168
+ title: e(t)("connect.navigation.review")
169
+ }, null, 8, ["title"]),
170
+ u("div", q, [
171
+ e(g) ? (i(), m("div", J, [
172
+ v(e(x).FmIcon, {
173
+ name: "sync",
174
+ size: "xl",
175
+ class: "animate-spin text-fm-color-neutral-gray-400"
176
+ }),
177
+ u("p", K, y(e(t)("connect.review.facebook.fetching")), 1)
178
+ ])) : e(p) ? (i(), m("div", Q, [
179
+ v(e(x).FmIcon, {
180
+ name: "check_circle",
181
+ size: "xl",
182
+ class: "text-fm-color-typo-success"
183
+ }),
184
+ u("p", X, y(e(t)("connect.review.facebook.success")), 1),
185
+ u("p", Y, y(e(t)("connect.review.redirecting")), 1)
186
+ ])) : e(c) ? (i(), m("div", Z, [
187
+ v(e(x).FmIcon, {
188
+ name: "error",
189
+ size: "xl",
190
+ class: "text-fm-color-system-error-500"
191
+ }),
192
+ u("p", ee, y(e(t)("connect.review.errorTitle")), 1),
193
+ u("p", oe, y(e(c)), 1),
194
+ v(e(x).FmButton, {
195
+ label: e(t)("connect.review.goBack"),
196
+ onClick: o[0] || (o[0] = (d) => f())
197
+ }, null, 8, ["label"])
198
+ ])) : e(r).length > 0 ? (i(), m(E, { key: 3 }, [
199
+ u("p", te, y(e(t)("connect.review.facebook.selectPage")), 1),
200
+ v(W, {
201
+ pages: e(r),
202
+ "onUpdate:pages": o[1] || (o[1] = (d) => N(r) ? r.value = d : null)
203
+ }, null, 8, ["pages"]),
204
+ u("div", ne, [
205
+ v(e(x).FmButton, {
206
+ variant: "secondary",
207
+ label: e(t)("connect.review.cancel"),
208
+ onClick: o[2] || (o[2] = (d) => f())
209
+ }, null, 8, ["label"]),
210
+ v(e(x).FmButton, {
211
+ label: e(t)("connect.review.connect"),
212
+ disabled: !e(w),
213
+ loading: e(h),
214
+ onClick: a
215
+ }, null, 8, ["label", "disabled", "loading"])
216
+ ])
217
+ ], 64)) : F("", !0)
218
+ ])
219
+ ], 64);
220
+ };
221
+ }
222
+ });
223
+ export {
224
+ me as default
225
+ };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as E, onMounted as T, ref as w, computed as B, openBlock as d, createElementBlock as p, Fragment as F, renderList as j, normalizeClass as z, unref as e, createElementVNode as m, createVNode as u, toDisplayString as y, createCommentVNode as S, createBlock as P, resolveComponent as U, isRef as V } from "vue";
2
- import { u as A } from "./vue-i18n-y7bHQpNx.js";
2
+ import { u as A } from "./vue-i18n-CDSTH7g5.js";
3
3
  import { components as v } from "@feedmepos/ui-library";
4
- import { r as C } from "./index-Cj6oxbl0.js";
5
- import { u as H } from "./business-DdVGtTvx.js";
6
- import { _ as D } from "./LocationPicker.vue_vue_type_script_setup_true_lang-BlCg-jI7.js";
7
- import { R as O } from "./app-B_doYklh.js";
4
+ import { r as C } from "./index-CnsSd5Dg.js";
5
+ import { u as H } from "./business-D3U9HSu9.js";
6
+ import { _ as D } from "./LocationPicker.vue_vue_type_script_setup_true_lang-DWnf4lXH.js";
7
+ import { R as O } from "./app-DX7OWVY2.js";
8
8
  import { useRouter as W } from "vue-router";
9
9
  const q = { class: "flex flex-col gap-8" }, J = ["onClick"], K = { class: "fm-typo-en-body-md-600 flex-1 truncate" }, Q = {
10
10
  key: 0,