@feedmepos/mf-connect 0.1.115-dev → 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 (154) hide show
  1. package/README.md +1 -66
  2. package/dist/{App-43mZfFAr.js → App-CvtSY8ZO.js} +618 -652
  3. package/dist/{Bin-CA7v180Y.js → Bin-B3gS9QVZ.js} +8 -8
  4. package/dist/{Broadcast-qmdifF2Y.js → Broadcast-DAeb-HaN.js} +21 -22
  5. package/dist/{CampaignAnalytic-xnrDxqaH.js → CampaignAnalytic-BfTaHVem.js} +7 -7
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zjk-QdtX.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zsei4OfG.js} +9 -9
  7. package/dist/{Card-D8icsk7L.js → Card-JFeVIwFs.js} +24 -25
  8. package/dist/{Collections--THcD-E_.js → Collections-xcDpEhIm.js} +185 -197
  9. package/dist/{Credit-JrbtVMBp.js → Credit-C9HJZjDS.js} +20 -21
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DrwKtnE5.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DSqVY91w.js} +1 -1
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D_jXVE2I.js +3494 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-hVgqWdD0.js → EffectSheet.vue_vue_type_style_index_0_lang-C3J0rCTt.js} +32 -32
  13. package/dist/{Experience-CFeRqBoj.js → Experience-DszS8gto.js} +31 -32
  14. package/dist/{FileSaver.min-CCXIBm58.js → FileSaver.min-CFVQKaC-.js} +1 -1
  15. package/dist/{Game-CPxq6Ex3.js → Game-DhgeN7E2.js} +18 -19
  16. package/dist/{GiftCardSetup-D0esVZDp.js → GiftCardSetup-CWm6IhrS.js} +75 -75
  17. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-CJ1-vL-K.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BuKADvmK.js} +7 -7
  18. package/dist/{Goals-DaKI6uXt.js → Goals-DtRVierH.js} +4 -4
  19. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js → ImageInput.vue_vue_type_script_setup_true_lang-DlEFyu6h.js} +1 -1
  20. package/dist/{Index-2kENoaZm.js → Index-DFRcu_qE.js} +10 -10
  21. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BtWnJKU_.js → LocationPicker.vue_vue_type_script_setup_true_lang-B3Br4Xvi.js} +1 -1
  22. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CX_Sspu5.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CjNJj3qj.js} +1 -1
  23. package/dist/{LoyaltyDashboard-CB93Fz8u.js → LoyaltyDashboard-BWHKDPzk.js} +15 -15
  24. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-Du8fw5v_.js → MainLayout-BmpNNAiE.js} +4 -5
  25. package/dist/Marketing-BKK45Eve.js +236 -0
  26. package/dist/{remy-icon-BhUGu2NI.js → MarketingMaterialEdit-x3c_N7Gs.js} +1031 -2
  27. package/dist/{Member-B--nYyr0.js → Member-xEzrBW_p.js} +7 -7
  28. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BBlzO7Db.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DRoC-I0t.js} +50 -43
  29. package/dist/{MemberImportHistory-D52Y4RTC.js → MemberImportHistory-CEQpBBF8.js} +7 -7
  30. package/dist/{MemberList-13Owa1fj.js → MemberList-CCvzkHv8.js} +105 -103
  31. package/dist/{MemberTransactions-CpXEWNbq.js → MemberTransactions-Bmh39J2W.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DlELjFM0.js → MessageInput.vue_vue_type_script_setup_true_lang-D3Pmk80l.js} +14 -14
  33. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-C_y0rM8c.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DIBKAwHP.js} +1 -1
  34. package/dist/{Mission-Ci-UzXSu.js → Mission-CpUo2Bgw.js} +21 -22
  35. package/dist/{Overview-CKxSfAGF.js → Overview-CwQqQ1Tn.js} +144 -145
  36. package/dist/{Overview-CXen9Ram.js → Overview-DcDZmDXA.js} +22 -23
  37. package/dist/{Point-CR3YOaag.js → Point-CUNQsQIx.js} +21 -22
  38. package/dist/{Promotion-tw3J4ul-.js → Promotion-Cqdim7aW.js} +131 -137
  39. package/dist/{Queue-BZGA5ZXt.js → Queue-CNBVh1UG.js} +45 -46
  40. package/dist/{Record-BTevVXnT.js → Record-BYwz4l4o.js} +9 -9
  41. package/dist/{Review-BU7c8ZF0.js → Review-CqLcZFj8.js} +2 -2
  42. package/dist/ReviewFacebookCallback-DbSCILNN.js +238 -0
  43. package/dist/{ReviewGoogleCallback-xpdPHSdg.js → ReviewGoogleCallback-Dg8R7QlO.js} +5 -5
  44. package/dist/{Reward-jlA_7cxz.js → Reward-M8GZ8eHq.js} +29 -29
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D3z_n42G.js → RewardGroup.vue_vue_type_script_setup_true_lang-BkM9-Sx-.js} +15 -16
  46. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CnaL93TF.js +1883 -0
  47. package/dist/{Segment-C1Bwm--Q.js → Segment-CrMi6xrp.js} +305 -304
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6apgWTM.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DKH5_9db.js} +30 -31
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B7m2F9UV.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CyeAQ-hg.js} +4 -4
  50. package/dist/Setting-BnFRI0Se.js +2037 -0
  51. package/dist/{SettingAdvertisements-4XEAJzlL.js → SettingAdvertisements-Dh7v4c1D.js} +12 -12
  52. package/dist/Settings-BvT8_tkQ.js +179 -0
  53. package/dist/{Store-C56dXtc4.js → Store-CV-BmK5b.js} +30 -31
  54. package/dist/{StoreRewards-DQ1Q6WS6.js → StoreRewards-DPhSLvSZ.js} +15 -15
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CDu1QySl.js +1264 -0
  56. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Dqz6jTlH.js +142 -0
  57. package/dist/{Tier-D4CPZqw7.js → Tier-ChvYps23.js} +687 -2576
  58. package/dist/{Title-DCbwhUic.js → Title-v-Ivswr1.js} +92 -94
  59. package/dist/{Transaction-C5LrasXr.js → Transaction-CRqE1Ix0.js} +2 -2
  60. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Cl9b4mrK.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B0Uh9iuj.js} +26 -26
  61. package/dist/{Voucher-rrVbNZKR.js → Voucher-Bg8FOuzD.js} +19 -19
  62. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BIq227nz.js → VoucherEditor.vue_vue_type_script_setup_true_lang-HKxivQMF.js} +16 -16
  63. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C39_95SZ.js → ZodTextField.vue_vue_type_script_setup_true_lang-8d290Dcp.js} +2 -2
  64. package/dist/{app-CgimGODl.js → app-DdNKsn2Q.js} +7107 -8874
  65. package/dist/app.js +3 -4
  66. package/dist/{base.export-D2P6HFvo.js → base.export-R97FrSQL.js} +2 -2
  67. package/dist/{business-Bu5TqSA0.js → business-Ce8vq3wQ.js} +1 -1
  68. package/dist/{campaign-zJxttSIk.js → campaign-BTllt2LH.js} +25 -31
  69. package/dist/{campaign-BFIXSgdJ.js → campaign-C19If7bW.js} +94 -121
  70. package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-9CCbalR4.js} +2 -3
  71. package/dist/{campaign.fn-gvjlcEfe.js → campaign.fn-B4g03h0A.js} +78 -78
  72. package/dist/{collectible.enum-Liy2wH3s.js → collectible.enum-MvqF7mSg.js} +1 -1
  73. package/dist/{collection.fn-DOm0HsSh.js → collection.fn-CR0bD33S.js} +2 -2
  74. package/dist/{currency-BpbQvbm8.js → currency-DmlguGIM.js} +1 -1
  75. package/dist/{effect-D-GtNB3n.js → effect-Dx3zfl28.js} +1 -1
  76. package/dist/{email-addresses-BKMoAtMi.js → email-addresses-De5PGOY4.js} +2 -2
  77. package/dist/{feature-flag-BJ_eyKsq.js → feature-flag-CD9V1V0h.js} +74 -74
  78. package/dist/google-C3S8u0mT.js +4 -0
  79. package/dist/{helper-CkfjBgMM.js → helper-CEiv7SaO.js} +1 -1
  80. package/dist/{index-zTvr2GR4.js → index-649OZ_e1.js} +2 -2
  81. package/dist/{index-feCrYhi6.js → index-B8meeQoD.js} +1 -1
  82. package/dist/{index-CIej31pF.js → index-B8yWVB8P.js} +3 -4
  83. package/dist/{index-BKsxIwbi.js → index-BAXKd9Gg.js} +198 -198
  84. package/dist/{index-BAtUrtqM.js → index-BDPnyro2.js} +6 -19
  85. package/dist/{index-DUAZOMVJ.js → index-BR9h5DTI.js} +1 -1
  86. package/dist/{index-DwU3fsLW.js → index-BVdYxi3l.js} +15 -29
  87. package/dist/{index-D0JK99Ko.js → index-BW6eb3n6.js} +252 -611
  88. package/dist/{index-LygS9WsG.js → index-BYI9ttxy.js} +10767 -8028
  89. package/dist/{index-BdEXUNoG.js → index-BquSqx6K.js} +4 -4
  90. package/dist/{index-BpTIulTX.js → index-CBJy9bxB.js} +1 -1
  91. package/dist/{index-B6kU3PkV.js → index-CPODug8b.js} +2613 -2700
  92. package/dist/{index-CfQuYqXn.js → index-CWUrODxL.js} +1 -1
  93. package/dist/{index-DKxN1mMS.js → index-CqOCJTeR.js} +232 -390
  94. package/dist/{index-CuREApMc.js → index-D4d3l0gw.js} +7 -8
  95. package/dist/{index-Bhl5IRXy.js → index-DT3S00_Y.js} +10 -11
  96. package/dist/{index-DqGs6RJG.js → index-IZRfmmde.js} +581 -683
  97. package/dist/{index-CQ8XFbBk.js → index-__UT3_Ey.js} +2 -2
  98. package/dist/{index-CCEXSPxk.js → index-xct3mnu8.js} +7 -7
  99. package/dist/{index.esm2017-DZi9IQPS.js → index.esm2017-AVbZ9btd.js} +177 -177
  100. package/dist/{loading-Brid2wnu.js → loading-BvHm1m3K.js} +1 -1
  101. package/dist/{lodash-C1epw3Kv.js → lodash-Dvrceo7x.js} +1 -1
  102. package/dist/{member-import-DAIxTIiu.js → member-import-c9avpiSS.js} +5 -6
  103. package/dist/{membership-BZmljFhF.js → membership-D-pZS634.js} +3 -3
  104. package/dist/{money-cLcyGcSZ.js → money-D4skwMkD.js} +1 -1
  105. package/dist/{number-C2jPLJr2.js → number-DJ6ncfT6.js} +1 -1
  106. package/dist/objectid-DEMM_jdR.js +145 -0
  107. package/dist/{onboarding-oRfy_g05.js → onboarding-t7R1d3h-.js} +25 -25
  108. package/dist/{onboardingSetup-BLD6m8HY.js → onboardingSetup-lTaJc0oT.js} +2 -2
  109. package/dist/{plugins-CUsr9vB0.js → plugins-DQNOWwRC.js} +3 -3
  110. package/dist/{reward-UOT03odb.js → reward-BK150pjm.js} +1 -1
  111. package/dist/{rule-BgJnPjkI.js → rule-COcdAnUu.js} +492 -572
  112. package/dist/rule-builder-Deufb6h_.js +102 -0
  113. package/dist/style.css +1 -1
  114. package/dist/template-DeebIqJ_.js +236 -0
  115. package/dist/{timezone-BXA4wq7Y.js → timezone-BP6UC4KL.js} +1 -1
  116. package/dist/{transaction.fn-CQ4fpRt3.js → transaction.fn-BY0hzon0.js} +2 -2
  117. package/dist/{trigger-DXJCGT0q.js → trigger-DVBjVPbN.js} +8 -8
  118. package/dist/useMarketingMaterialActions-DpQCQHFI.js +96 -0
  119. package/dist/{usePagination-Pp4okWr8.js → usePagination-QT552XyF.js} +1 -1
  120. package/dist/{user-B3gXcAIy.js → user-CmAxNc7T.js} +1 -1
  121. package/dist/vue-i18n-Cze706-f.js +2365 -0
  122. package/dist/{xlsx-CCaDUTgW.js → xlsx-DAczoc8y.js} +224 -224
  123. package/dist/{zod-CPwjOxvW.js → zod-Aj-GuVQL.js} +1 -1
  124. package/package.json +2 -6
  125. package/dist/AuditLogs-BPpdm96t.js +0 -2016
  126. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DgdAlHU7.js +0 -4442
  127. package/dist/Grab-BWzdN_cd.js +0 -301
  128. package/dist/MainLayout-DwnjGXh6.js +0 -4
  129. package/dist/Marketing-DCco__2F.js +0 -273
  130. package/dist/MarketingMaterialEdit-BbgFtrYP.js +0 -1037
  131. package/dist/ReviewFacebookCallback-BnMF6Arh.js +0 -225
  132. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CsHxqH9h.js +0 -1923
  133. package/dist/Setting-CDM4RhLW.js +0 -574
  134. package/dist/Settings-D-0tvZRr.js +0 -286
  135. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-LLD91Rz6.js +0 -1319
  136. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Bvy4NJMd.js +0 -7007
  137. package/dist/WhatsappAccount-oJDo5zTr.js +0 -159
  138. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-aCQCYFYq.js +0 -39
  139. package/dist/WhatsappBot-Cl64wG_F.js +0 -876
  140. package/dist/WhatsappBotLogs-D3uT4EiB.js +0 -372
  141. package/dist/WhatsappBotSettings-Cs1lLxh-.js +0 -705
  142. package/dist/WhatsappLayout-C639d2HP.js +0 -21
  143. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DpPxWp2x.js +0 -253
  144. package/dist/browser-BSAOEeIM.js +0 -1478
  145. package/dist/duplicateCampaign-CvsvjRE9.js +0 -51
  146. package/dist/feature-flag-Bo-k5sIG.js +0 -50
  147. package/dist/google-BQK68wbe.js +0 -5
  148. package/dist/index-C-iwb2Ln.js +0 -109
  149. package/dist/index-C_H8jFYf.js +0 -2743
  150. package/dist/index-DQ8JJhxs.js +0 -74
  151. package/dist/objectid-C-wocWKI.js +0 -145
  152. package/dist/template-BZyFhr73.js +0 -188
  153. package/dist/useMarketingMaterialActions-B-Wib5ga.js +0 -125
  154. package/dist/vue-i18n-DWGiC_vs.js +0 -2365
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as J, ref as y, computed as z, onMounted as K, resolveComponent as A, openBlock as u, createElementBlock as b, createElementVNode as s, createVNode as d, createTextVNode as W, toDisplayString as v, unref as e, withCtx as k, createBlock as B, Fragment as Y, renderList as Z, createCommentVNode as N, isRef as ee } from "vue";
2
- import { u as te } from "./loading-Brid2wnu.js";
2
+ import { u as te } from "./loading-BvHm1m3K.js";
3
3
  import { u as ne } from "./app-wDQR6dpb.js";
4
- import { u as se } from "./business-Bu5TqSA0.js";
5
- import { u as oe } from "./membership-BZmljFhF.js";
6
- import "./index-LygS9WsG.js";
7
- import { b as ae } from "./index-DKxN1mMS.js";
8
- import "./index-feCrYhi6.js";
9
- import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js";
10
- import { f as D, p as ie } from "./plugins-CUsr9vB0.js";
11
- import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-Bvy4NJMd.js";
12
- import { u as ce } from "./vue-i18n-DWGiC_vs.js";
4
+ import { u as se } from "./business-Ce8vq3wQ.js";
5
+ import { u as oe } from "./membership-D-pZS634.js";
6
+ import "./index-BYI9ttxy.js";
7
+ import { b as ae } from "./index-CqOCJTeR.js";
8
+ import "./index-B8meeQoD.js";
9
+ import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-DlEFyu6h.js";
10
+ import { f as D, p as ie } from "./plugins-DQNOWwRC.js";
11
+ import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-Dqz6jTlH.js";
12
+ import { u as ce } from "./vue-i18n-Cze706-f.js";
13
13
  import { useRouter as de } from "vue-router";
14
- import { m as me } from "./index-BAtUrtqM.js";
15
- import { R as ue } from "./app-CgimGODl.js";
14
+ import { m as me } from "./index-BDPnyro2.js";
15
+ import { R as ue } from "./app-DdNKsn2Q.js";
16
16
  import { a as ve } from "./object-BYyQ0PZp.js";
17
17
  const pe = { class: "min-h-screen bg-fm-color-neutral-gray-50" }, fe = { class: "bg-white border-b border-fm-color-neutral-gray-100 sticky top-0 z-10" }, ge = { class: "px-24 py-16 flex items-center justify-between" }, _e = { class: "flex items-center gap-16" }, he = { class: "fm-typo-en-title-md-800 flex items-center gap-8" }, ye = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, be = {
18
18
  key: 0,
@@ -0,0 +1,179 @@
1
+ import { defineComponent as N, useSlots as U, openBlock as r, createElementBlock as l, createElementVNode as s, normalizeClass as $, unref as e, toDisplayString as y, createCommentVNode as m, Fragment as b, createBlock as E, createVNode as w, renderSlot as T, ref as x, computed as B, onMounted as G, withCtx as O, renderList as C, createStaticVNode as z } from "vue";
2
+ import { u as A } from "./loading-BvHm1m3K.js";
3
+ import { u as M } from "./business-Ce8vq3wQ.js";
4
+ import { components as f, useSnackbar as W } from "@feedmepos/ui-library";
5
+ import { u as R } from "./vue-i18n-Cze706-f.js";
6
+ import { g as j } from "./google-C3S8u0mT.js";
7
+ import { R as D } from "./app-DdNKsn2Q.js";
8
+ import { useRouter as H } from "vue-router";
9
+ import { r as h } from "./index-DT3S00_Y.js";
10
+ const P = { class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white overflow-hidden" }, q = ["src"], J = { class: "flex flex-col flex-1 gap-1 min-w-0" }, K = { class: "fm-typo-en-body-md-600 capitalize" }, Q = {
11
+ key: 0,
12
+ class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate"
13
+ }, X = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400" }, Y = /* @__PURE__ */ N({
14
+ __name: "ReviewSource",
15
+ props: {
16
+ icon: {},
17
+ name: {},
18
+ connected: { type: Boolean },
19
+ subtitle: {},
20
+ syncing: { type: Boolean },
21
+ tokenExpired: { type: Boolean }
22
+ },
23
+ emits: ["connect", "sync"],
24
+ setup(o, { emit: p }) {
25
+ const u = p, { t: i } = R(), g = U();
26
+ return (c, a) => (r(), l("div", P, [
27
+ s("div", {
28
+ class: $(["flex items-center gap-12 p-16", e(g).default ? "border-b border-fm-color-neutral-gray-100" : ""])
29
+ }, [
30
+ s("img", {
31
+ src: o.icon,
32
+ class: "w-10 h-10 shrink-0"
33
+ }, null, 8, q),
34
+ s("div", J, [
35
+ s("span", K, y(o.name), 1),
36
+ o.subtitle || !o.connected ? (r(), l("span", Q, y(o.connected ? o.subtitle : e(i)("connect.review.notConnected")), 1)) : m("", !0)
37
+ ]),
38
+ o.connected ? (r(), l(b, { key: 0 }, [
39
+ o.tokenExpired ? (r(), E(e(f).FmChip, {
40
+ key: 0,
41
+ label: e(i)("connect.review.expired"),
42
+ variant: "critical"
43
+ }, null, 8, ["label"])) : m("", !0),
44
+ w(e(f).FmButton, {
45
+ variant: "secondary",
46
+ "prepend-icon": "refresh",
47
+ label: e(i)("connect.review.reconnect"),
48
+ onClick: a[0] || (a[0] = (v) => u("connect"))
49
+ }, null, 8, ["label"]),
50
+ o.tokenExpired ? m("", !0) : (r(), E(e(f).FmButton, {
51
+ key: 1,
52
+ variant: "primary",
53
+ "prepend-icon": "sync",
54
+ label: e(i)("connect.review.sync"),
55
+ loading: o.syncing,
56
+ onClick: a[1] || (a[1] = (v) => u("sync"))
57
+ }, null, 8, ["label", "loading"]))
58
+ ], 64)) : m("", !0)
59
+ ], 2),
60
+ o.connected ? m("", !0) : (r(), l("div", {
61
+ key: 0,
62
+ class: $(["flex items-center justify-between gap-12 p-16", e(g).default ? "border-b border-fm-color-neutral-gray-100" : ""])
63
+ }, [
64
+ s("span", X, y(e(i)("connect.review.connectHint", { name: o.name })), 1),
65
+ w(e(f).FmButton, {
66
+ "prepend-icon": "add",
67
+ label: e(i)("connect.review.connect"),
68
+ onClick: a[2] || (a[2] = (v) => u("connect"))
69
+ }, null, 8, ["label"])
70
+ ], 2)),
71
+ T(c.$slots, "default")
72
+ ]));
73
+ }
74
+ }), Z = { class: "p-24 flex flex-col gap-8" }, ee = { class: "flex flex-col flex-1 min-w-0" }, ne = { class: "fm-typo-en-body-lg-600 truncate" }, oe = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate" }, me = /* @__PURE__ */ N({
75
+ __name: "Settings",
76
+ setup(o) {
77
+ const { t: p } = R(), u = W(), i = H(), g = M(), c = x(null), a = x(!1);
78
+ x(!1);
79
+ const v = B(
80
+ () => {
81
+ var n;
82
+ return c.value ? ((n = c.value.google) == null ? void 0 : n.accessToken) === null : !1;
83
+ }
84
+ );
85
+ B(
86
+ () => {
87
+ var n;
88
+ return c.value ? ((n = c.value.facebook) == null ? void 0 : n.token) === null : !1;
89
+ }
90
+ );
91
+ function _(n) {
92
+ const t = window.location.pathname.replace(/\/review(?:\/.*)?$/, "");
93
+ return `${window.location.origin}${t}${n}`;
94
+ }
95
+ async function S() {
96
+ await A.minor(async () => {
97
+ c.value = await h.getSource();
98
+ });
99
+ }
100
+ function V(n) {
101
+ var t;
102
+ return (t = g.locations.find(
103
+ (d) => d._id.toString() === n
104
+ )) == null ? void 0 : t.name;
105
+ }
106
+ function F() {
107
+ u.open({
108
+ message: p("connect.review.syncSuccess"),
109
+ type: "success"
110
+ }), i.push({ name: D["$connect-REVIEW_OVERVIEW"] });
111
+ }
112
+ async function I() {
113
+ var n, t;
114
+ a.value = !0;
115
+ try {
116
+ await h.syncGoogleReviews(), F();
117
+ } catch (d) {
118
+ if (await S(), ((t = (n = c.value) == null ? void 0 : n.google) == null ? void 0 : t.accessToken) === null) {
119
+ u.open({
120
+ message: p("connect.review.tokenExpired"),
121
+ type: "error"
122
+ });
123
+ return;
124
+ }
125
+ throw d;
126
+ } finally {
127
+ a.value = !1;
128
+ }
129
+ }
130
+ async function L() {
131
+ const n = _("/review/google/callback"), { callbackUrl: t } = await h.getOauthUrl("google", n);
132
+ window.location.href = t;
133
+ }
134
+ return G(() => {
135
+ S(), g.readLocations();
136
+ }), (n, t) => (r(), l("div", Z, [
137
+ e(c) ? (r(), l(b, { key: 0 }, [
138
+ w(Y, {
139
+ icon: e(j),
140
+ name: "google",
141
+ connected: !!e(c).google,
142
+ syncing: e(a),
143
+ "token-expired": e(v),
144
+ onConnect: L,
145
+ onSync: I
146
+ }, {
147
+ default: O(() => {
148
+ var d;
149
+ return [
150
+ (r(!0), l(b, null, C((d = e(c).google) == null ? void 0 : d.locations, (k) => (r(), l("div", {
151
+ key: k.googleLocationName,
152
+ class: "flex items-center gap-12 px-16 py-12 border-b border-fm-color-neutral-gray-100 last:border-b-0"
153
+ }, [
154
+ w(e(f).FmIcon, {
155
+ name: "location_on",
156
+ class: "text-fm-color-neutral-gray-300 shrink-0"
157
+ }),
158
+ s("div", ee, [
159
+ s("span", ne, y(k.displayName), 1),
160
+ s("span", oe, y(V(k.locationId)), 1)
161
+ ])
162
+ ]))), 128))
163
+ ];
164
+ }),
165
+ _: 1
166
+ }, 8, ["icon", "connected", "syncing", "token-expired"]),
167
+ m("", !0)
168
+ ], 64)) : (r(), l(b, { key: 1 }, C(["google", "facebook"], (d) => s("div", {
169
+ key: d,
170
+ class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white p-16"
171
+ }, [...t[0] || (t[0] = [
172
+ z('<div class="animate-pulse flex items-center gap-12"><div class="w-10 h-10 rounded-full bg-fm-color-neutral-gray-100 shrink-0"></div><div class="flex-1 min-w-0 space-y-8"><div class="h-16 w-20 rounded bg-fm-color-neutral-gray-100"></div><div class="h-12 w-full max-w-[160px] rounded bg-fm-color-neutral-gray-100"></div></div><div class="h-32 w-24 rounded bg-fm-color-neutral-gray-100 shrink-0"></div></div>', 1)
173
+ ])])), 64))
174
+ ]));
175
+ }
176
+ });
177
+ export {
178
+ me as default
179
+ };
@@ -1,37 +1,36 @@
1
1
  import { defineComponent as Y, computed as D, resolveComponent as v, openBlock as m, createBlock as R, withCtx as I, createElementVNode as n, toDisplayString as w, createVNode as l, createCommentVNode as M, createElementBlock as T, unref as e, Fragment as z, renderList as ce, ref as O, isRef as be, reactive as lt, onMounted as Ne, watch as We, toRaw as it, createTextVNode as ee, h as rt, normalizeStyle as tt, normalizeClass as we } from "vue";
2
2
  import { _ as ct } from "./tier-BJDhpH6X.js";
3
3
  import { useDialog as Ye, useDialogChild as Je, components as dt } from "@feedmepos/ui-library";
4
- import { c as q, e as Le, S as He } from "./index-CCEXSPxk.js";
5
- import { u as ot } from "./loading-Brid2wnu.js";
6
- import { u as Xe, C as Ie } from "./membership-BZmljFhF.js";
7
- import { t as ut, u as mt, v as pt, w as Qe, x as ft, y as yt } from "./index-DqGs6RJG.js";
4
+ import { c as q, e as Le, S as He } from "./index-xct3mnu8.js";
5
+ import { u as ot } from "./loading-BvHm1m3K.js";
6
+ import { u as Xe, C as Ie } from "./membership-D-pZS634.js";
7
+ import { j as ut, k as mt, l as pt, m as Qe, n as ft, o as yt } from "./index-IZRfmmde.js";
8
8
  import { a as gt, c as qe } from "./object-BYyQ0PZp.js";
9
- import { _ as pe } from "./lodash-C1epw3Kv.js";
10
- import { c as _e } from "./index-LygS9WsG.js";
11
- import { u as ve } from "./vue-i18n-DWGiC_vs.js";
12
- import { Z as ie, g as ae, a as se } from "./zod-CPwjOxvW.js";
13
- import { z as re, R as Ae } from "./app-CgimGODl.js";
9
+ import { _ as pe } from "./lodash-Dvrceo7x.js";
10
+ import { c as _e } from "./index-BYI9ttxy.js";
11
+ import { u as ve } from "./vue-i18n-Cze706-f.js";
12
+ import { Z as ie, g as ae, a as se } from "./zod-Aj-GuVQL.js";
13
+ import { z as re, R as Ae } from "./app-DdNKsn2Q.js";
14
14
  import { u as je } from "./app-wDQR6dpb.js";
15
- import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-C39_95SZ.js";
16
- import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-CUsr9vB0.js";
15
+ import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-8d290Dcp.js";
16
+ import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-DQNOWwRC.js";
17
17
  import { J as Ze } from "./JsonViewer-v8_C7l5N.js";
18
- import { _ as ht } from "./index-B6kU3PkV.js";
19
- import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js";
18
+ import { _ as ht } from "./index-CPODug8b.js";
19
+ import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-DlEFyu6h.js";
20
20
  import { _ as _t } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
21
- import { z as Ct, a as St } from "./money-cLcyGcSZ.js";
22
- import { f as Ft } from "./currency-BpbQvbm8.js";
23
- import { F as wt } from "./number-C2jPLJr2.js";
24
- import { a as $t, t as kt } from "./helper-CkfjBgMM.js";
25
- import "./index-feCrYhi6.js";
26
- import "./index-D0JK99Ko.js";
27
- import "./index-DKxN1mMS.js";
28
- import "./index-CuREApMc.js";
29
- import "./index-C-iwb2Ln.js";
30
- import "./index-CIej31pF.js";
31
- import { m as Pt } from "./index-CQ8XFbBk.js";
32
- import { m as De } from "./index-BAtUrtqM.js";
33
- import { g as Ke } from "./index-CfQuYqXn.js";
34
- import { u as Vt } from "./business-Bu5TqSA0.js";
21
+ import { z as Ct, a as St } from "./money-D4skwMkD.js";
22
+ import { f as Ft } from "./currency-DmlguGIM.js";
23
+ import { F as wt } from "./number-DJ6ncfT6.js";
24
+ import { a as $t, t as kt } from "./helper-CEiv7SaO.js";
25
+ import "./index-B8meeQoD.js";
26
+ import "./index-CqOCJTeR.js";
27
+ import "./index-BW6eb3n6.js";
28
+ import "./index-D4d3l0gw.js";
29
+ import "./index-B8yWVB8P.js";
30
+ import { m as Pt } from "./index-__UT3_Ey.js";
31
+ import { m as De } from "./index-BDPnyro2.js";
32
+ import { g as Ke } from "./index-CWUrODxL.js";
33
+ import { u as Vt } from "./business-Ce8vq3wQ.js";
35
34
  import { useRouter as Tt } from "vue-router";
36
35
  function nt(b) {
37
36
  return _e.DineroFactory(b).toUnit();
@@ -600,7 +599,7 @@ const Yt = {
600
599
  };
601
600
  }
602
601
  });
603
- var Xt = { mode: "development", appMode: "mf" };
602
+ var Xt = { mode: "production", appMode: "mf" };
604
603
  const Zt = { class: "space-y-8" }, Qt = {
605
604
  key: 0,
606
605
  class: "space-y-16"
@@ -2117,14 +2116,14 @@ const vn = { class: "grid lg:grid-cols-2 gap-32 items-center" }, hn = { class: "
2117
2116
  };
2118
2117
  }
2119
2118
  });
2120
- var et = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
2119
+ var et = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
2121
2120
  const Bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[640px]" }, Nn = { class: "px-24 flex flex-col gap-y-16" }, Mn = { class: "space-y-8 py-12" }, On = { class: "flex gap-8 items-center" }, Ln = { class: "fm-typo-en-body-lg-600" }, An = {
2122
2121
  key: 1,
2123
2122
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
2124
2123
  }, jn = {
2125
2124
  key: 1,
2126
2125
  class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24"
2127
- }, qn = { class: "flex gap-8 items-center" }, Gn = { class: "fm-typo-en-body-lg-600" }, Kn = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, Hn = { class: "flex flex-col gap-16 text-center" }, zn = { class: "fm-typo-en-title-sm-800" }, Wn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ta = /* @__PURE__ */ Y({
2126
+ }, qn = { class: "flex gap-8 items-center" }, Gn = { class: "fm-typo-en-body-lg-600" }, Kn = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, Hn = { class: "flex flex-col gap-16 text-center" }, zn = { class: "fm-typo-en-title-sm-800" }, Wn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Va = /* @__PURE__ */ Y({
2128
2127
  __name: "Store",
2129
2128
  setup(b) {
2130
2129
  const { t: a } = ve(), d = {
@@ -2625,5 +2624,5 @@ const Bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
2625
2624
  }
2626
2625
  });
2627
2626
  export {
2628
- Ta as default
2627
+ Va as default
2629
2628
  };
@@ -1,25 +1,25 @@
1
1
  import { defineComponent as Z, ref as A, computed as q, onMounted as z, resolveComponent as F, openBlock as y, createBlock as E, unref as e, isRef as ee, withCtx as V, createElementVNode as s, createVNode as c, createElementBlock as D, createTextVNode as te, resolveDynamicComponent as N, toDisplayString as H, Fragment as W, createCommentVNode as P, h as C } from "vue";
2
2
  import { _ as oe } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as J, components as $ } from "@feedmepos/ui-library";
4
- import "./index-feCrYhi6.js";
5
- import { u as ae } from "./loading-Brid2wnu.js";
6
- import { C as Q, u as ne } from "./membership-BZmljFhF.js";
7
- import { p as B, f as K } from "./plugins-CUsr9vB0.js";
4
+ import "./index-B8meeQoD.js";
5
+ import { u as ae } from "./loading-BvHm1m3K.js";
6
+ import { C as Q, u as ne } from "./membership-D-pZS634.js";
7
+ import { p as B, f as K } from "./plugins-DQNOWwRC.js";
8
8
  import { useCoreStore as X } from "@feedmepos/mf-common";
9
- import { u as se } from "./vue-i18n-DWGiC_vs.js";
10
- import { F as ie } from "./index-B6kU3PkV.js";
9
+ import { u as se } from "./vue-i18n-Cze706-f.js";
10
+ import { F as ie } from "./index-CPODug8b.js";
11
11
  import { c as re } from "./object-BYyQ0PZp.js";
12
12
  import { u as Y } from "./app-wDQR6dpb.js";
13
- import { u as le } from "./business-Bu5TqSA0.js";
14
- import { Z as h } from "./zod-CPwjOxvW.js";
15
- import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-C39_95SZ.js";
16
- import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js";
17
- import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-Bvy4NJMd.js";
18
- import { b as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-hVgqWdD0.js";
19
- import { i as fe, F as ye, h as j, t as we } from "./helper-CkfjBgMM.js";
13
+ import { u as le } from "./business-Ce8vq3wQ.js";
14
+ import { Z as h } from "./zod-Aj-GuVQL.js";
15
+ import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-8d290Dcp.js";
16
+ import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-DlEFyu6h.js";
17
+ import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-Dqz6jTlH.js";
18
+ import { _ as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-C3J0rCTt.js";
19
+ import { i as fe, F as ye, h as j, t as we } from "./helper-CEiv7SaO.js";
20
20
  import { useRouter as ge } from "vue-router";
21
- import { m as G } from "./index-BAtUrtqM.js";
22
- import { R as L } from "./app-CgimGODl.js";
21
+ import { m as G } from "./index-BDPnyro2.js";
22
+ import { R as L } from "./app-DdNKsn2Q.js";
23
23
  function ve(w) {
24
24
  return !!(w != null && w.isAdmin) || !!(w != null && w.isStaff);
25
25
  }