@feedmepos/mf-connect 0.1.119-prod → 0.1.121-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 (146) hide show
  1. package/dist/{App-BN2LKM3u.js → App-DwtaLO6F.js} +147 -135
  2. package/dist/AuditLogs-s572aHLw.js +2016 -0
  3. package/dist/{Bin-DpQ1atb7.js → Bin-BBaVggZI.js} +8 -8
  4. package/dist/{Broadcast-c1ZyYClI.js → Broadcast-CqAQ3EmE.js} +22 -21
  5. package/dist/{CampaignAnalytic-w1hIlc2r.js → CampaignAnalytic-34bfP8iY.js} +7 -7
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D7U6evm1.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BvAAxE3a.js} +8 -9
  7. package/dist/{Card-De53Xgbe.js → Card-8hlnKnhk.js} +22 -22
  8. package/dist/{Collections-BL2RD3FU.js → Collections-BJ0-UjKf.js} +197 -185
  9. package/dist/{Credit-2KvFFcwR.js → Credit-DJNc__yp.js} +21 -20
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CKSs2nYE.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BvilcyyB.js} +1 -1
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CSjOHBhA.js +4439 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Jy7HkK5Z.js → EffectSheet.vue_vue_type_style_index_0_lang-DFzVuuEy.js} +30 -30
  13. package/dist/{Experience-Cb0jHtVo.js → Experience-D-cUhjWc.js} +32 -31
  14. package/dist/{FileSaver.min-UDgZF_Cv.js → FileSaver.min-DKYYse6A.js} +1 -1
  15. package/dist/{Game-BnysxSMs.js → Game-DdFV90Kp.js} +19 -18
  16. package/dist/{GiftCardSetup-s1OR6xQq.js → GiftCardSetup-Dz0AN159.js} +31 -31
  17. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-D108r20x.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-GCp3IFaC.js} +7 -7
  18. package/dist/{Goals-BAieLPzR.js → Goals-Dg_kAezl.js} +4 -4
  19. package/dist/Grab-BSQt4deB.js +301 -0
  20. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js → ImageInput.vue_vue_type_script_setup_true_lang-B_H1Bgy1.js} +1 -1
  21. package/dist/{Index-DnX16GAE.js → Index-ZSup3I7J.js} +10 -10
  22. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DeM-WG6m.js → LocationPicker.vue_vue_type_script_setup_true_lang-DisF-jcd.js} +1 -1
  23. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BAN69FOS.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BHhjZOYi.js} +1 -1
  24. package/dist/{LoyaltyDashboard-D8g6OSbC.js → LoyaltyDashboard-D8BhHsaw.js} +15 -15
  25. package/dist/{MainLayout-DWABjpQn.js → MainLayout-BBnhRxyR.js} +1 -1
  26. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-COp7iulq.js → MainLayout.vue_vue_type_script_setup_true_lang-DFrPlj5u.js} +16 -16
  27. package/dist/{Marketing-Dagatr0y.js → Marketing-5F9LLn91.js} +4 -4
  28. package/dist/{MarketingMaterialEdit-DYVzNDpM.js → MarketingMaterialEdit-C7dD4Bzw.js} +214 -211
  29. package/dist/{Member-DAxdEF_Z.js → Member-Dk4JeGru.js} +7 -7
  30. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-nBg7Hckj.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-ISolD_Qg.js} +39 -47
  31. package/dist/{MemberImportHistory-2gx6FnLh.js → MemberImportHistory-C0Ep8L2q.js} +7 -7
  32. package/dist/{MemberList-By_gGl-J.js → MemberList-BsuPfBgk.js} +103 -105
  33. package/dist/{MemberTransactions-BEF-4ZNp.js → MemberTransactions-mZ3fHw5O.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Bs8wKx9B.js → MessageInput.vue_vue_type_script_setup_true_lang-1weyRM8c.js} +12 -12
  35. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DN3mWfKj.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-caED3JRW.js} +1 -1
  36. package/dist/{Mission-jg15lBxo.js → Mission-C7DqUOJz.js} +22 -21
  37. package/dist/{Overview-C7WfdzfV.js → Overview-U201nBVO.js} +20 -20
  38. package/dist/{Overview-BFKLTAk1.js → Overview-VABLg36G.js} +145 -144
  39. package/dist/{Point-dv9WgWTQ.js → Point-DU6Ndv35.js} +22 -21
  40. package/dist/{Promotion-mFPF_8jO.js → Promotion-9UhZXNPb.js} +137 -131
  41. package/dist/{Queue-BQoR_M5H.js → Queue-CUxMedbd.js} +45 -45
  42. package/dist/{Record-1JZ1N5iX.js → Record-BIftCQzV.js} +9 -9
  43. package/dist/{Review-B52AxCeT.js → Review-lyVgTfsP.js} +2 -2
  44. package/dist/ReviewFacebookCallback-Da5G19bE.js +225 -0
  45. package/dist/{ReviewGoogleCallback-DO6SVFIC.js → ReviewGoogleCallback-B41PXfsj.js} +5 -5
  46. package/dist/{Reward-Cp4jPAB0.js → Reward-BMun_Rs4.js} +16 -16
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DLD6X13Z.js → RewardGroup.vue_vue_type_script_setup_true_lang-3TONrUQu.js} +13 -13
  48. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DHzFgr4h.js +1923 -0
  49. package/dist/{Segment-DaKw0YXF.js → Segment-1VS7ycXi.js} +303 -306
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bj3OQ_JJ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C5iJSlxi.js} +14 -14
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B1Otak97.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CXY9Wyk9.js} +4 -4
  52. package/dist/{Setting-DveUrt8J.js → Setting-BdtzvKjt.js} +159 -148
  53. package/dist/{SettingAdvertisements-QRXOMNnM.js → SettingAdvertisements-BO2l3HBT.js} +12 -12
  54. package/dist/Settings-CvYawDU5.js +286 -0
  55. package/dist/{Store-DjdXRw3V.js → Store-DWQz-MgY.js} +28 -28
  56. package/dist/{StoreRewards-CjlGrc9E.js → StoreRewards-Bfwuqxf-.js} +15 -15
  57. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CBwmDKAw.js +1319 -0
  58. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CHzFjo24.js +7007 -0
  59. package/dist/{Tier-D74Oh2np.js → Tier-CKn-l-wY.js} +2575 -687
  60. package/dist/{Title-CeeviOW8.js → Title-BXDk69uL.js} +95 -94
  61. package/dist/{Transaction-CWdw0ITl.js → Transaction-D4HQO4i9.js} +2 -2
  62. package/dist/Upselling-CikWzKq7.js +1032 -0
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B9nf-9s0.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-um124o4t.js} +26 -26
  64. package/dist/{Voucher-C0nNXMtv.js → Voucher-BGIyw4jq.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DxZLsQq9.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BKyZj5SP.js} +12 -12
  66. package/dist/{WhatsappAccount-CoLSjCQ2.js → WhatsappAccount-Cd82g_xj.js} +6 -6
  67. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DkHPlGgT.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DWy8kS66.js} +1 -1
  68. package/dist/{WhatsappBot-kLb3kUav.js → WhatsappBot-auQhO8zk.js} +6 -6
  69. package/dist/{WhatsappBotLogs-jcYaHs0t.js → WhatsappBotLogs-CWuJzK9W.js} +6 -6
  70. package/dist/{WhatsappBotSettings-B6jJD61h.js → WhatsappBotSettings-B8KXMpIF.js} +4 -4
  71. package/dist/{WhatsappLayout-C24bIjI2.js → WhatsappLayout-DxooAkkL.js} +3 -3
  72. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-9a_grP76.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CYHmgQ2v.js} +3 -3
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-i8Wc2mCr.js → ZodTextField.vue_vue_type_script_setup_true_lang-DilxQM_z.js} +2 -2
  74. package/dist/{app-C06bAZj3.js → app-BG-zK89d.js} +4181 -3401
  75. package/dist/app.js +4 -3
  76. package/dist/{base.export-CgNRhKu8.js → base.export-BcMuREGH.js} +2 -2
  77. package/dist/{business-D23Dt1x4.js → business-9_NOI2V9.js} +1 -1
  78. package/dist/{campaign-FVcbXtrP.js → campaign-8y_9SvKP.js} +34 -28
  79. package/dist/{campaign-DfEvGigm.js → campaign-DjBTRZyA.js} +121 -94
  80. package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
  81. package/dist/campaign.fn-COkPH1QE.js +776 -0
  82. package/dist/{collection.fn-DC1AMI9o.js → collection.fn-yXurU9iv.js} +2 -2
  83. package/dist/{currency-Bra2RJK4.js → currency-YzyBFtDU.js} +1 -1
  84. package/dist/duplicateCampaign-dRWioann.js +51 -0
  85. package/dist/{effect-EL4V3pAu.js → effect-bMGarJZ6.js} +1 -1
  86. package/dist/{email-addresses-Ddtf1x_y.js → email-addresses-Ciu83j_3.js} +2 -2
  87. package/dist/{feature-flag-umACX47C.js → feature-flag-H5D1Cob5.js} +70 -70
  88. package/dist/google-BQK68wbe.js +5 -0
  89. package/dist/{helper-DqDOnLCf.js → helper-BH9HMikb.js} +1 -1
  90. package/dist/{index-CEh6ryp2.js → index-B7-Uvnfn.js} +19 -6
  91. package/dist/{index-DuCJtx1m.js → index-BHO82_Ix.js} +1 -1
  92. package/dist/{index-B_BmgKrh.js → index-BaTnDV-T.js} +2699 -2613
  93. package/dist/{index-C3hAzzS2.js → index-BvKJM3M2.js} +29 -15
  94. package/dist/{index-rcfcslIC.js → index-BxwJfT08.js} +197 -197
  95. package/dist/{index-C6p9Lsvf.js → index-CH-KHkm5.js} +1 -1
  96. package/dist/{index-B2lqC_hH.js → index-CIOidYvo.js} +1 -1
  97. package/dist/{index-BzwwXWpZ.js → index-CJAFz9Nn.js} +1 -1
  98. package/dist/{index-ByVPdKdB.js → index-CooParq-.js} +682 -581
  99. package/dist/{index-pfmx-Gor.js → index-Cyf05z_2.js} +2 -2
  100. package/dist/{index-Bvk61_w_.js → index-DYu7ZdQt.js} +1 -1
  101. package/dist/{index-B3U3KZl0.js → index-DbxiG50D.js} +2 -2
  102. package/dist/{index-BkKu2G2c.js → index-DkMy7WpU.js} +2 -2
  103. package/dist/{index-LjoAs_nX.js → index-DpkoCl4z.js} +10 -10
  104. package/dist/{index-C3lk4GHF.js → index-MWNnMT2T.js} +4 -4
  105. package/dist/{index-DK9zxpDu.js → index-RvJ5cq__.js} +3 -3
  106. package/dist/{index-iVbjwKxc.js → index-Ye3qFt34.js} +10 -10
  107. package/dist/{index-BTjhdlN_.js → index-_giqGuYM.js} +1 -1
  108. package/dist/{index-TDCPGtW3.js → index-pnM5q4c_.js} +389 -232
  109. package/dist/{index-BroF2fC8.js → index-taPHgOqE.js} +608 -251
  110. package/dist/{index.esm2017-DCuQPCX2.js → index.esm2017-CLxZor1Y.js} +111 -111
  111. package/dist/{loading-CQm1DKWE.js → loading-CsOSUWBd.js} +1 -1
  112. package/dist/{lodash-C2wVbAap.js → lodash-CshibTzh.js} +1 -1
  113. package/dist/{member-import-BLEmTRso.js → member-import-BdaGAjjt.js} +1 -1
  114. package/dist/{membership-XycnxPEW.js → membership-C5JWO1FM.js} +2 -2
  115. package/dist/{money-DY_QGzd1.js → money-Blt5EM43.js} +1 -1
  116. package/dist/{number-BHthf4qF.js → number-COm3MiH8.js} +1 -1
  117. package/dist/objectid-DQTx3-ee.js +145 -0
  118. package/dist/{onboarding-BOJw54Fn.js → onboarding-BbQDJOOS.js} +36 -36
  119. package/dist/{onboardingSetup-Cf2u1tXu.js → onboardingSetup-BLISY52M.js} +2 -2
  120. package/dist/{plugins-DKQeoL_e.js → plugins-De_chCYU.js} +3 -3
  121. package/dist/{reward-D4RIYSpl.js → reward-Dl8Zoxe_.js} +1 -1
  122. package/dist/{rule-Ba-s0L_w.js → rule-D6_iss3O.js} +572 -492
  123. package/dist/style.css +1 -1
  124. package/dist/template-Cw6j1cLX.js +224 -0
  125. package/dist/{timezone-CAc8xi1h.js → timezone-CA5FwOyy.js} +1 -1
  126. package/dist/{transaction.fn-Cp2hnhyU.js → transaction.fn-DI_NeGQb.js} +2 -2
  127. package/dist/{trigger-3ebhNBX7.js → trigger-CuymoMM-.js} +9 -9
  128. package/dist/{useMarketingMaterialActions-6URv8neP.js → useMarketingMaterialActions-Bz0Kgvgd.js} +4 -4
  129. package/dist/{usePagination-C-fyMmiy.js → usePagination-yb1rupwa.js} +1 -1
  130. package/dist/{user-T-iXTrYV.js → user-QSKyFaMI.js} +1 -1
  131. package/dist/vue-i18n-B_qtODCw.js +2365 -0
  132. package/dist/{xlsx-B8OqaJfb.js → xlsx--RjkGa9A.js} +224 -224
  133. package/dist/{zod-DZkNj425.js → zod-CmPMd-h0.js} +1 -1
  134. package/package.json +8 -3
  135. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BXb7v7wc.js +0 -3493
  136. package/dist/ReviewFacebookCallback-ihTdiI8V.js +0 -238
  137. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-pdHRjCt8.js +0 -1884
  138. package/dist/Settings-D9D-mkBa.js +0 -179
  139. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DnwMpqzf.js +0 -1265
  140. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-I5-5BV4h.js +0 -142
  141. package/dist/campaign.fn-0MNUj1fZ.js +0 -776
  142. package/dist/google-C3S8u0mT.js +0 -4
  143. package/dist/objectid-CPCAqIiC.js +0 -145
  144. package/dist/rule-builder-D0B0DPao.js +0 -102
  145. package/dist/template-B40I16Yg.js +0 -236
  146. package/dist/vue-i18n-DzsxJorb.js +0 -2365
@@ -1,63 +1,63 @@
1
- import { defineComponent as K, ref as V, computed as E, onMounted as me, resolveComponent as u, openBlock as f, createBlock as N, withCtx as S, createElementVNode as t, createVNode as c, unref as e, isRef as W, watch as Ve, createElementBlock as k, toDisplayString as i, Fragment as B, renderList as Z, createTextVNode as T, createCommentVNode as X } from "vue";
1
+ import { defineComponent as J, ref as k, computed as E, onMounted as de, resolveComponent as u, openBlock as f, createBlock as B, withCtx as $, createElementVNode as t, createVNode as c, unref as e, isRef as Z, watch as ke, createElementBlock as V, toDisplayString as i, Fragment as R, renderList as G, createTextVNode as T, createCommentVNode as z } from "vue";
2
2
  import { h as Ue } from "./moment-D7p2TMB-.js";
3
- import { Z as ce } from "./zod-DZkNj425.js";
4
- import { useDialog as de } from "@feedmepos/ui-library";
5
- import { u as Fe } from "./loading-CQm1DKWE.js";
3
+ import { Z as ce } from "./zod-CmPMd-h0.js";
4
+ import { useDialog as me } from "@feedmepos/ui-library";
5
+ import { u as Fe } from "./loading-CsOSUWBd.js";
6
6
  import { u as Ae } from "./app-wDQR6dpb.js";
7
- import { u as G, l as ue } from "./business-D23Dt1x4.js";
8
- import { u as pe } from "./membership-XycnxPEW.js";
9
- import { P as z } from "./index-DK9zxpDu.js";
10
- import { m as Pe, b as $e } from "./index-TDCPGtW3.js";
11
- import { _ as Se } from "./ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js";
12
- import { c as fe, p as Me, f as O } from "./plugins-DKQeoL_e.js";
7
+ import { u as K, l as ue } from "./business-9_NOI2V9.js";
8
+ import { u as pe } from "./membership-C5JWO1FM.js";
9
+ import { P as Q } from "./index-RvJ5cq__.js";
10
+ import { m as Pe, b as Se } from "./index-pnM5q4c_.js";
11
+ import { _ as $e } from "./ImageInput.vue_vue_type_script_setup_true_lang-B_H1Bgy1.js";
12
+ import { c as fe, p as Me, f as O } from "./plugins-De_chCYU.js";
13
13
  import { b as Le } from "./browser-BSAOEeIM.js";
14
- import { p as De, r as Ie, _ as Ee } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-I5-5BV4h.js";
15
- import { u as ge } from "./vue-i18n-DzsxJorb.js";
16
- import { M as Te, b as Be } from "./MessageInput.vue_vue_type_script_setup_true_lang-Bs8wKx9B.js";
17
- import { useCoreStore as Ne } from "@feedmepos/mf-common";
18
- import { useRouter as Re } from "vue-router";
19
- import { R as He } from "./app-C06bAZj3.js";
20
- import { m as Q } from "./index-CEh6ryp2.js";
21
- import { S as re } from "./index-iVbjwKxc.js";
14
+ import { p as De, r as Ie, _ as Ee } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CHzFjo24.js";
15
+ import { u as ve } from "./vue-i18n-B_qtODCw.js";
16
+ import { M as Te, b as Re } from "./MessageInput.vue_vue_type_script_setup_true_lang-1weyRM8c.js";
17
+ import { useCoreStore as Be } from "@feedmepos/mf-common";
18
+ import { useRouter as Ne } from "vue-router";
19
+ import { R as He } from "./app-BG-zK89d.js";
20
+ import { m as W } from "./index-B7-Uvnfn.js";
21
+ import { S as re } from "./index-Ye3qFt34.js";
22
22
  import { o as Oe } from "./objectId-dwaoBfJX.js";
23
23
  import { a as je } from "./object-BYyQ0PZp.js";
24
- async function qe(g, x = 350) {
24
+ async function qe(v, x = 350) {
25
25
  try {
26
- return await Le.toDataURL(g, {
26
+ return await Le.toDataURL(v, {
27
27
  width: x,
28
28
  margin: 0
29
29
  });
30
- } catch (v) {
31
- console.error(v);
30
+ } catch (g) {
31
+ console.error(g);
32
32
  }
33
33
  }
34
- var Xe = { 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/" };
35
- const ze = { class: "flex items-start" }, Qe = { class: "flex flex-col gap-16 mt-16" }, Ye = ["src"], We = /* @__PURE__ */ K({
34
+ var Xe = { 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/" };
35
+ const ze = { class: "flex items-start" }, Qe = { class: "flex flex-col gap-16 mt-16" }, We = ["src"], Ye = /* @__PURE__ */ J({
36
36
  __name: "LinkDeviceDialog",
37
- setup(g) {
38
- const x = G(), v = pe(), h = de(), p = V(), y = V(), U = Xe.crmUrl, b = V(), D = E(() => v.membership), o = E(() => {
39
- var m, a;
40
- return `https://${(m = D.value) != null && m.url ? D.value.url : (a = D.value) == null ? void 0 : a.business}.${U}`;
37
+ setup(v) {
38
+ const x = K(), g = pe(), h = me(), p = k(), y = k(), U = Xe.crmUrl, b = k(), D = E(() => g.membership), o = E(() => {
39
+ var d, a;
40
+ return `https://${(d = D.value) != null && d.url ? D.value.url : (a = D.value) == null ? void 0 : a.business}.${U}`;
41
41
  });
42
- async function F(m) {
43
- const a = await ue.getOtp(m);
42
+ async function F(d) {
43
+ const a = await ue.getOtp(d);
44
44
  return `${o.value}?link-device=${a.otp}`;
45
45
  }
46
- async function A(m) {
47
- const a = await F(m);
46
+ async function A(d) {
47
+ const a = await F(d);
48
48
  b.value = a, p.value = await qe(a);
49
49
  }
50
- return me(async () => {
50
+ return de(async () => {
51
51
  if (await x.readLocations(), !x.locations.length) {
52
52
  h.close();
53
53
  return;
54
54
  }
55
- const m = x.locations[0]._id;
56
- y.value = m, await A(m);
57
- }), (m, a) => {
55
+ const d = x.locations[0]._id;
56
+ y.value = d, await A(d);
57
+ }), (d, a) => {
58
58
  const _ = u("FmIcon"), P = u("FmSelect"), w = u("FmButton"), n = u("FmCard");
59
- return f(), N(n, { class: "p-24 max-w-[350px]" }, {
60
- default: S(() => [
59
+ return f(), B(n, { class: "p-24 max-w-[350px]" }, {
60
+ default: $(() => [
61
61
  t("div", ze, [
62
62
  a[3] || (a[3] = t("div", null, [
63
63
  t("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
@@ -65,7 +65,7 @@ const ze = { class: "flex items-start" }, Qe = { class: "flex flex-col gap-16 mt
65
65
  ], -1)),
66
66
  c(_, {
67
67
  name: "close",
68
- onClick: a[0] || (a[0] = ($) => e(h).close()),
68
+ onClick: a[0] || (a[0] = (S) => e(h).close()),
69
69
  class: "cursor-pointer"
70
70
  })
71
71
  ]),
@@ -73,21 +73,21 @@ const ze = { class: "flex items-start" }, Qe = { class: "flex flex-col gap-16 mt
73
73
  c(P, {
74
74
  modelValue: e(y),
75
75
  "onUpdate:modelValue": [
76
- a[1] || (a[1] = ($) => W(y) ? y.value = $ : null),
76
+ a[1] || (a[1] = (S) => Z(y) ? y.value = S : null),
77
77
  A
78
78
  ],
79
79
  label: "Select Location",
80
- items: e(x).locationItems.filter(($) => !!$.value)
80
+ items: e(x).locationItems.filter((S) => !!S.value)
81
81
  }, null, 8, ["modelValue", "items"]),
82
82
  t("img", {
83
83
  src: e(p),
84
84
  class: "aspect-square w-full"
85
- }, null, 8, Ye),
85
+ }, null, 8, We),
86
86
  c(w, {
87
87
  class: "mx-auto",
88
88
  variant: "plain",
89
89
  icon: "content_copy",
90
- onClick: a[2] || (a[2] = ($) => e(fe)(e(b)))
90
+ onClick: a[2] || (a[2] = (S) => e(fe)(e(b)))
91
91
  })
92
92
  ])
93
93
  ]),
@@ -95,21 +95,21 @@ const ze = { class: "flex items-start" }, Qe = { class: "flex flex-col gap-16 mt
95
95
  });
96
96
  };
97
97
  }
98
- }), Ze = { class: "space-y-4" }, Ge = { key: 0 }, Ke = { key: 1 }, Je = { key: 2 }, et = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, tt = /* @__PURE__ */ K({
98
+ }), Ze = { class: "space-y-4" }, Ge = { key: 0 }, Ke = { key: 1 }, Je = { key: 2 }, et = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, tt = /* @__PURE__ */ J({
99
99
  __name: "AllowedPhoneCountriesSelect",
100
100
  props: {
101
101
  modelValue: {}
102
102
  },
103
103
  emits: ["update:modelValue"],
104
- setup(g, { emit: x }) {
105
- const { t: v } = ge(), h = g, p = x, y = [...new Set(z.map((m) => m.phoneCode))], U = V(""), b = V(!1), D = E(() => {
106
- const m = U.value.toLowerCase();
107
- return z.filter(
108
- (a) => a.name.toLowerCase().includes(m) || a.phoneCode.toLowerCase().includes(m)
104
+ setup(v, { emit: x }) {
105
+ const { t: g } = ve(), h = v, p = x, y = [...new Set(Q.map((d) => d.phoneCode))], U = k(""), b = k(!1), D = E(() => {
106
+ const d = U.value.toLowerCase();
107
+ return Q.filter(
108
+ (a) => a.name.toLowerCase().includes(d) || a.phoneCode.toLowerCase().includes(d)
109
109
  );
110
110
  });
111
- function o(m, a) {
112
- const _ = m ? De([...h.modelValue || []], a) : Ie(h.modelValue || y, a);
111
+ function o(d, a) {
112
+ const _ = d ? De([...h.modelValue || []], a) : Ie(h.modelValue || y, a);
113
113
  p("update:modelValue", _);
114
114
  }
115
115
  const F = E(() => {
@@ -117,64 +117,64 @@ const ze = { class: "flex items-start" }, Qe = { class: "flex flex-col gap-16 mt
117
117
  const a = ((_ = h.modelValue) == null ? void 0 : _.slice(0, 5).map(
118
118
  (P) => {
119
119
  var w;
120
- return ((w = z.find((n) => n.phoneCode === P)) == null ? void 0 : w.name) || P;
120
+ return ((w = Q.find((n) => n.phoneCode === P)) == null ? void 0 : w.name) || P;
121
121
  }
122
122
  )) || [];
123
123
  return h.modelValue && h.modelValue.length > 5 && a.push(`+${h.modelValue.length - 5} more`), a;
124
124
  }), A = E(() => {
125
- const m = h.modelValue;
126
- return Array.isArray(m) && m.length === 0 ? v("connect.setting.allowedPhoneCountries.helper.noneAllowed") : m == null ? v("connect.setting.allowedPhoneCountries.helper.allAllowed") : v("connect.setting.allowedPhoneCountries.helper.selectedOnly");
125
+ const d = h.modelValue;
126
+ return Array.isArray(d) && d.length === 0 ? g("connect.setting.allowedPhoneCountries.helper.noneAllowed") : d == null ? g("connect.setting.allowedPhoneCountries.helper.allAllowed") : g("connect.setting.allowedPhoneCountries.helper.selectedOnly");
127
127
  });
128
- return Ve(b, (m) => {
129
- m && (U.value = "");
130
- }), (m, a) => {
131
- const _ = u("FmChip"), P = u("FmField"), w = u("FmTextField"), n = u("FmCheckbox"), $ = u("FmMenu");
132
- return f(), k("div", Ze, [
133
- c($, {
128
+ return ke(b, (d) => {
129
+ d && (U.value = "");
130
+ }), (d, a) => {
131
+ const _ = u("FmChip"), P = u("FmField"), w = u("FmTextField"), n = u("FmCheckbox"), S = u("FmMenu");
132
+ return f(), V("div", Ze, [
133
+ c(S, {
134
134
  modelValue: e(b),
135
- "onUpdate:modelValue": a[2] || (a[2] = (d) => W(b) ? b.value = d : null),
136
- onMenuChanged: a[3] || (a[3] = (d) => b.value = d),
135
+ "onUpdate:modelValue": a[2] || (a[2] = (m) => Z(b) ? b.value = m : null),
136
+ onMenuChanged: a[3] || (a[3] = (m) => b.value = m),
137
137
  placement: "top-end"
138
138
  }, {
139
- "menu-button": S(() => [
139
+ "menu-button": $(() => [
140
140
  c(P, {
141
141
  "append-icon": e(b) ? "expand_more" : "expand_less",
142
142
  class: "!h-auto"
143
143
  }, {
144
- default: S(() => [
145
- g.modelValue ? g.modelValue.length ? (f(), k("div", Je, [
146
- (f(!0), k(B, null, Z(e(F), (d, I) => (f(), N(_, {
144
+ default: $(() => [
145
+ v.modelValue ? v.modelValue.length ? (f(), V("div", Je, [
146
+ (f(!0), V(R, null, G(e(F), (m, I) => (f(), B(_, {
147
147
  key: I,
148
- label: d,
148
+ label: m,
149
149
  class: "max-w-[130px] text-ellipsis"
150
150
  }, null, 8, ["label"]))), 128))
151
- ])) : (f(), k("div", Ke, i(e(v)("connect.setting.allowedPhoneCountries.noCountries")), 1)) : (f(), k("div", Ge, i(e(v)("connect.setting.allowedPhoneCountries.allCountries")), 1))
151
+ ])) : (f(), V("div", Ke, i(e(g)("connect.setting.allowedPhoneCountries.noCountries")), 1)) : (f(), V("div", Ge, i(e(g)("connect.setting.allowedPhoneCountries.allCountries")), 1))
152
152
  ]),
153
153
  _: 1
154
154
  }, 8, ["append-icon"])
155
155
  ]),
156
- default: S(() => [
156
+ default: $(() => [
157
157
  c(w, {
158
158
  modelValue: e(U),
159
- "onUpdate:modelValue": a[0] || (a[0] = (d) => W(U) ? U.value = d : null),
160
- placeholder: e(v)("connect.setting.allowedPhoneCountries.searchCountries"),
159
+ "onUpdate:modelValue": a[0] || (a[0] = (m) => Z(U) ? U.value = m : null),
160
+ placeholder: e(g)("connect.setting.allowedPhoneCountries.searchCountries"),
161
161
  class: "my-8"
162
162
  }, null, 8, ["modelValue", "placeholder"]),
163
163
  c(n, {
164
164
  class: "my-8",
165
165
  value: null,
166
- indeterminate: g.modelValue != null && g.modelValue.length > 0 && g.modelValue.length < y.length,
167
- label: e(v)("connect.setting.allowedPhoneCountries.allCountries"),
168
- "model-value": g.modelValue == null || g.modelValue.length === y.length,
169
- "onUpdate:modelValue": a[1] || (a[1] = (d) => p("update:modelValue", d ? null : []))
166
+ indeterminate: v.modelValue != null && v.modelValue.length > 0 && v.modelValue.length < y.length,
167
+ label: e(g)("connect.setting.allowedPhoneCountries.allCountries"),
168
+ "model-value": v.modelValue == null || v.modelValue.length === y.length,
169
+ "onUpdate:modelValue": a[1] || (a[1] = (m) => p("update:modelValue", m ? null : []))
170
170
  }, null, 8, ["indeterminate", "label", "model-value"]),
171
- (f(!0), k(B, null, Z(e(D), (d) => (f(), N(n, {
171
+ (f(!0), V(R, null, G(e(D), (m) => (f(), B(n, {
172
172
  class: "my-8",
173
- key: d.iso2,
174
- value: d.phoneCode,
175
- label: `${d.name} (${d.phoneCode})`,
176
- "model-value": !g.modelValue || g.modelValue.includes(d.phoneCode),
177
- "onUpdate:modelValue": (I) => o(I, d.phoneCode)
173
+ key: m.iso2,
174
+ value: m.phoneCode,
175
+ label: `${m.name} (${m.phoneCode})`,
176
+ "model-value": !v.modelValue || v.modelValue.includes(m.phoneCode),
177
+ "onUpdate:modelValue": (I) => o(I, m.phoneCode)
178
178
  }, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
179
179
  ]),
180
180
  _: 1
@@ -184,20 +184,20 @@ const ze = { class: "flex items-start" }, Qe = { class: "flex flex-col gap-16 mt
184
184
  };
185
185
  }
186
186
  });
187
- var Y = { 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/" };
187
+ var Y = { 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/" };
188
188
  const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, ot = { class: "fm-typo-en-title-md-800" }, lt = {
189
189
  key: 0,
190
190
  class: "px-24 gap-32 grid grid-cols-3 xs:pt-16"
191
- }, st = { class: "col-span-2 flex flex-col xs:col-span-3 space-y-8" }, at = { class: "fm-typo-en-title-sm-800" }, it = { class: "space-y-24" }, ct = { class: "space-y-8" }, rt = { class: "fm-typo-en-title-sm-800" }, mt = { class: "fm-typo-body-lg-400" }, dt = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, ut = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, pt = { class: "space-y-8" }, ft = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, gt = { class: "fm-typo-en-body-lg-600" }, vt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, yt = { class: "space-y-8" }, ht = { class: "space-y-8" }, bt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, _t = { class: "space-y-8" }, wt = { class: "fm-typo-en-title-sm-800" }, Ct = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, xt = { class: "space-y-8" }, kt = { class: "fm-typo-en-title-sm-800" }, Vt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, Ut = { class: "space-y-8" }, Ft = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, At = { class: "space-y-8" }, Pt = { class: "fm-typo-en-title-sm-800" }, $t = { class: "space-y-8" }, St = { class: "fm-typo-en-title-sm-800" }, Mt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Lt = { class: "flex justify-end pb-24" }, Dt = { class: "col-span-1 space-y-8 xs:hidden" }, It = { class: "fm-typo-en-body-lg-600" }, Et = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Tt = { class: "fm-typo-en-body-lg-600" }, Bt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Nt = { class: "fm-typo-en-body-lg-600" }, Rt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ht = { class: "fm-typo-en-body-lg-600" }, Ot = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, jt = { class: "fm-typo-en-body-lg-600" }, fn = /* @__PURE__ */ K({
191
+ }, st = { class: "col-span-2 flex flex-col xs:col-span-3 space-y-8" }, at = { class: "fm-typo-en-title-sm-800" }, it = { class: "space-y-24" }, ct = { class: "space-y-8" }, rt = { class: "fm-typo-en-title-sm-800" }, dt = { class: "fm-typo-body-lg-400" }, mt = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, ut = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, pt = { class: "space-y-8" }, ft = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, vt = { class: "fm-typo-en-body-lg-600" }, gt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, yt = { class: "space-y-8" }, ht = { class: "space-y-8" }, bt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, _t = { class: "space-y-8" }, wt = { class: "fm-typo-en-title-sm-800" }, Ct = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, xt = { class: "space-y-8" }, Vt = { class: "fm-typo-en-title-sm-800" }, kt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, Ut = { class: "space-y-8" }, Ft = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, At = { class: "space-y-8" }, Pt = { class: "space-y-8" }, St = { class: "fm-typo-en-title-sm-800" }, $t = { class: "space-y-8" }, Mt = { class: "fm-typo-en-title-sm-800" }, Lt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Dt = { class: "flex justify-end pb-24" }, It = { class: "col-span-1 space-y-8 xs:hidden" }, Et = { class: "fm-typo-en-body-lg-600" }, Tt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Rt = { class: "fm-typo-en-body-lg-600" }, Bt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Nt = { class: "fm-typo-en-body-lg-600" }, Ht = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ot = { class: "fm-typo-en-body-lg-600" }, jt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, qt = { class: "fm-typo-en-body-lg-600" }, vn = /* @__PURE__ */ J({
192
192
  __name: "Setting",
193
- setup(g) {
194
- const x = Re(), v = Ae(), h = Ne(), p = G(), y = pe(), { global: U, minor: b } = Fe, D = de(), o = V(), F = V([]), A = V(null), m = Pe, a = [
193
+ setup(v) {
194
+ const x = Ne(), g = Ae(), h = Be(), p = K(), y = pe(), { global: U, minor: b } = Fe, D = me(), o = k(), F = k([]), A = k(null), d = Pe, a = [
195
195
  (r) => !r || r.length >= 6 || "Invalid URL format, please enter at least 6 characters",
196
196
  (r) => !r || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(r) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
197
197
  ], _ = Y.appUrl, P = E(() => {
198
198
  var r;
199
199
  return `https://${(r = o.value) == null ? void 0 : r.business}.${_}/user?join=true`;
200
- }), w = V(), { t: n } = ge(), $ = h.currentCountry.value || "MY", d = [
200
+ }), w = k(), { t: n } = ve(), S = h.currentCountry.value || "MY", m = [
201
201
  "user.name",
202
202
  "user.gender",
203
203
  "user.birthday",
@@ -206,15 +206,15 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
206
206
  ].filter(
207
207
  (r) => {
208
208
  var l;
209
- return !((l = Te[$]) != null && l.includes(r));
209
+ return !((l = Te[S]) != null && l.includes(r));
210
210
  }
211
- ), I = V(
211
+ ), I = k(
212
212
  n("connect.setting.sms.welcomeMessage")
213
213
  );
214
- async function ve() {
214
+ async function ge() {
215
215
  D.open({
216
216
  title: "",
217
- dialogComponent: We,
217
+ dialogComponent: Ye,
218
218
  closeButton: !1
219
219
  });
220
220
  }
@@ -236,14 +236,14 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
236
236
  async function he() {
237
237
  await b(
238
238
  async () => {
239
- var R;
239
+ var N;
240
240
  const r = je(o.value);
241
- r.welcomeMessage && !((R = r.welcomeMessage) != null && R.content) && (r.welcomeMessage.content = "Hi there, you have been invited to join our membership");
242
- const l = $e.parse(r);
241
+ console.log(o.value), r.welcomeMessage && !((N = r.welcomeMessage) != null && N.content) && (r.welcomeMessage.content = "Hi there, you have been invited to join our membership");
242
+ const l = Se.parse(r);
243
243
  w.value === null && l.image ? await O.delete(O.coverImagePath()) : w.value && (l.image = await O.update(
244
244
  O.coverImagePath(),
245
245
  w.value
246
- )), await Q.update(l), await y.readMembership(), o.value = y.membership;
246
+ )), await W.update(l), await y.readMembership(), o.value = y.membership;
247
247
  },
248
248
  {
249
249
  message: "Updating membership",
@@ -252,7 +252,7 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
252
252
  );
253
253
  }
254
254
  async function be() {
255
- const r = await Q.getEmailAddresses();
255
+ const r = await W.getEmailAddresses();
256
256
  console.log(r), F.value = r, A.value = r.find((l) => l.default.includes("Marketing"));
257
257
  }
258
258
  async function _e() {
@@ -265,11 +265,11 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
265
265
  const r = `${Y.licensePortalUrl}settings?businessId=${re.businessId}`;
266
266
  console.log("Opening", r), window.open(r, "_blank");
267
267
  }
268
- return me(async () => {
268
+ return de(async () => {
269
269
  await U(async () => {
270
270
  await p.readPremium(), await p.readLocations(), await p.readLocationDevices(), await y.readMembership(), await be(), o.value = y.membership;
271
271
  try {
272
- const { content: r } = await Q.getDefaultWelcomeMessage();
272
+ const { content: r } = await W.getDefaultWelcomeMessage();
273
273
  r && (I.value = r);
274
274
  } catch (r) {
275
275
  console.error("Failed to load default welcome message", r);
@@ -277,9 +277,9 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
277
277
  });
278
278
  }), (r, l) => {
279
279
  var te, ne, oe, le, se, ae, ie;
280
- const R = u("FmPageHead"), M = u("FmButton"), H = u("FmTextField"), j = u("FmCard"), J = u("FmPill"), Ce = u("FmSelect"), ee = u("FmSwitch"), xe = u("FmMenuDivider");
281
- return f(), k(B, null, [
282
- c(R, {
280
+ const N = u("FmPageHead"), M = u("FmButton"), H = u("FmTextField"), j = u("FmCard"), ee = u("FmPill"), Ce = u("FmSelect"), q = u("FmSwitch"), xe = u("FmMenuDivider");
281
+ return f(), V(R, null, [
282
+ c(N, {
283
283
  title: e(n)("connect.setting.title"),
284
284
  class: "xs:hidden"
285
285
  }, null, 8, ["title"]),
@@ -290,7 +290,7 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
290
290
  variant: "tertiary"
291
291
  })
292
292
  ]),
293
- e(o) ? (f(), k("div", lt, [
293
+ e(o) ? (f(), V("div", lt, [
294
294
  t("div", st, [
295
295
  t("div", at, i(e(n)("connect.setting.basicInfo.title")), 1),
296
296
  t("div", it, [
@@ -309,10 +309,10 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
309
309
  placeholder: e(o).business.toString(),
310
310
  "onUpdate:modelValue": l[2] || (l[2] = (s) => e(o).url = s)
311
311
  }, {
312
- prepend: S(() => [...l[14] || (l[14] = [
312
+ prepend: $(() => [...l[15] || (l[15] = [
313
313
  T(" https:// ", -1)
314
314
  ])]),
315
- append: S(() => [
315
+ append: $(() => [
316
316
  T(" ." + i(e(_)) + " ", 1),
317
317
  c(M, {
318
318
  icon: "content_copy",
@@ -322,7 +322,7 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
322
322
  ]),
323
323
  _: 1
324
324
  }, 8, ["model-value", "label", "helper-text", "placeholder"]),
325
- c(Se, {
325
+ c($e, {
326
326
  label: "Cover image",
327
327
  class: "w-2/3 xs:w-full",
328
328
  "image-fit": "cover",
@@ -338,17 +338,17 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
338
338
  variant: "plain",
339
339
  icon: "link",
340
340
  label: e(n)("connect.setting.counterApp.linkDevice"),
341
- onClick: ve
341
+ onClick: ge
342
342
  }, null, 8, ["label"]),
343
- (f(!0), k(B, null, Z(e(p).locationDevices, (s, C) => (f(), N(j, {
343
+ (f(!0), V(R, null, G(e(p).locationDevices, (s, C) => (f(), B(j, {
344
344
  key: C,
345
345
  variant: "outlined",
346
346
  class: "flex items-center justify-between px-16 py-12"
347
347
  }, {
348
- default: S(() => [
348
+ default: $(() => [
349
349
  t("div", null, [
350
- t("p", mt, i(s.name || `Device ${s._id}`), 1),
351
- t("p", dt, i(e(n)("connect.setting.counterApp.device.activationDate")) + " " + i(e(Ue)(e(Oe)(s._id.toString())).format(
350
+ t("p", dt, i(s.name || `Device ${s._id}`), 1),
351
+ t("p", mt, i(e(n)("connect.setting.counterApp.device.activationDate")) + " " + i(e(Ue)(e(Oe)(s._id.toString())).format(
352
352
  "D MMM YYYY"
353
353
  )), 1),
354
354
  t("p", ut, i(e(n)("connect.setting.counterApp.device.linkedLocation")) + " " + i(e(p).locations.find((L) => L._id == s.location).name), 1)
@@ -365,18 +365,18 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
365
365
  t("div", pt, [
366
366
  t("div", ft, [
367
367
  T(i(e(n)("connect.setting.advertisement.title")) + " ", 1),
368
- c(J, { variant: "premium" })
368
+ c(ee, { variant: "premium" })
369
369
  ]),
370
370
  c(j, {
371
371
  variant: "outlined",
372
372
  class: "p-16 flex items-center justify-between"
373
373
  }, {
374
- default: S(() => {
374
+ default: $(() => {
375
375
  var s;
376
376
  return [
377
377
  t("div", null, [
378
- t("div", gt, i(e(n)("connect.setting.advertisement.manageAd")), 1),
379
- t("div", vt, i(e(n)("connect.setting.advertisement.activeAdsShowing", {
378
+ t("div", vt, i(e(n)("connect.setting.advertisement.manageAd")), 1),
379
+ t("div", gt, i(e(n)("connect.setting.advertisement.activeAdsShowing", {
380
380
  count: ((s = e(o).advertisements) == null ? void 0 : s.length) ?? 0
381
381
  })), 1)
382
382
  ]),
@@ -395,7 +395,7 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
395
395
  })
396
396
  ]),
397
397
  t("div", yt, [
398
- l[15] || (l[15] = t("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
398
+ l[16] || (l[16] = t("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
399
399
  c(H, {
400
400
  "model-value": ((te = e(o)) == null ? void 0 : te.brand) || "",
401
401
  "max-length": 15,
@@ -406,23 +406,23 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
406
406
  }),
407
407
  "onUpdate:modelValue": l[5] || (l[5] = (s) => e(o).brand = s)
408
408
  }, null, 8, ["model-value", "label", "helper-text"]),
409
- c(Be, {
409
+ c(Re, {
410
410
  modelValue: e(o).welcomeMessage,
411
411
  "onUpdate:modelValue": l[6] || (l[6] = (s) => e(o).welcomeMessage = s),
412
412
  "hide-credit-card": !0,
413
- variables: e(d),
413
+ variables: e(m),
414
414
  placeholder: e(I)
415
415
  }, null, 8, ["modelValue", "variables", "placeholder"])
416
416
  ]),
417
417
  t("div", ht, [
418
- l[16] || (l[16] = t("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
418
+ l[17] || (l[17] = t("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
419
419
  t("div", bt, i(e(n)("connect.setting.email.description")), 1),
420
- e(F).length ? X("", !0) : (f(), N(M, {
420
+ e(F).length ? z("", !0) : (f(), B(M, {
421
421
  key: 0,
422
422
  onClick: _e,
423
423
  label: e(n)("connect.setting.email.addNewAddress")
424
424
  }, null, 8, ["label"])),
425
- e(F).length ? (f(), k(B, { key: 1 }, [
425
+ e(F).length ? (f(), V(R, { key: 1 }, [
426
426
  c(Ce, {
427
427
  "model-value": ((le = (oe = e(o)) == null ? void 0 : oe.email) == null ? void 0 : le.from) || null,
428
428
  label: e(n)("connect.setting.email.fromAddress"),
@@ -435,10 +435,10 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
435
435
  var C, L;
436
436
  (C = e(o)) != null && C.email || (e(o).email = {
437
437
  from: s,
438
- name: (L = e(F).find((q) => q.emailAddress == s)) == null ? void 0 : L.name
438
+ name: (L = e(F).find((X) => X.emailAddress == s)) == null ? void 0 : L.name
439
439
  }), e(o).email.from = s || null;
440
440
  }),
441
- rules: [e(ce).ruleAtPath(e(m), "email.from")]
441
+ rules: [e(ce).ruleAtPath(e(d), "email.from")]
442
442
  }, null, 8, ["model-value", "label", "items", "placeholder", "rules"]),
443
443
  c(H, {
444
444
  "model-value": ((ae = (se = e(o)) == null ? void 0 : se.email) == null ? void 0 : ae.name) || null,
@@ -451,9 +451,9 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
451
451
  name: s
452
452
  }), e(o).email.name = s || null;
453
453
  }),
454
- rules: [e(ce).ruleAtPath(e(m), "email.name")]
454
+ rules: [e(ce).ruleAtPath(e(d), "email.name")]
455
455
  }, null, 8, ["model-value", "label", "placeholder", "rules"])
456
- ], 64)) : X("", !0)
456
+ ], 64)) : z("", !0)
457
457
  ]),
458
458
  t("div", _t, [
459
459
  t("div", wt, i(e(n)("connect.setting.whatsapp.title")), 1),
@@ -465,11 +465,11 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
465
465
  }, null, 8, ["label"])
466
466
  ]),
467
467
  t("div", xt, [
468
- t("div", kt, [
468
+ t("div", Vt, [
469
469
  T(i(e(n)("connect.setting.freeCredit.title")) + " ", 1),
470
- t("span", Vt, i(e(n)("connect.setting.freeCredit.posVersion")), 1)
470
+ t("span", kt, i(e(n)("connect.setting.freeCredit.posVersion")), 1)
471
471
  ]),
472
- c(ee, {
472
+ c(q, {
473
473
  "model-value": e(o).freeCreditAsDiscount ?? !1,
474
474
  "onUpdate:modelValue": l[10] || (l[10] = (s) => e(o).freeCreditAsDiscount = s),
475
475
  label: e(n)("connect.setting.freeCredit.title"),
@@ -481,9 +481,9 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
481
481
  t("div", Ut, [
482
482
  t("div", Ft, [
483
483
  T(i(e(n)("connect.setting.memberCard.title")) + " ", 1),
484
- c(J, { variant: "premium" })
484
+ c(ee, { variant: "premium" })
485
485
  ]),
486
- c(ee, {
486
+ c(q, {
487
487
  "model-value": e(o).cardEnable ?? !1,
488
488
  "onUpdate:modelValue": l[11] || (l[11] = (s) => e(o).cardEnable = s),
489
489
  label: "",
@@ -494,58 +494,69 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
494
494
  }, null, 8, ["model-value", "sublabel", "disabled"])
495
495
  ]),
496
496
  t("div", At, [
497
- t("div", Pt, i(e(n)("connect.setting.location.title")), 1),
497
+ l[18] || (l[18] = t("div", { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, " Auto Revert Reward ", -1)),
498
+ c(q, {
499
+ "model-value": e(o).autoRevertReward ?? !1,
500
+ "onUpdate:modelValue": l[12] || (l[12] = (s) => e(o).autoRevertReward = s),
501
+ label: "",
502
+ sublabel: "When enabled, rewards are automatically revert when if a refund is processed in POS",
503
+ "label-placement": "right",
504
+ value: ""
505
+ }, null, 8, ["model-value"])
506
+ ]),
507
+ t("div", Pt, [
508
+ t("div", St, i(e(n)("connect.setting.location.title")), 1),
498
509
  c(Ee, {
499
510
  label: e(n)("connect.setting.location.selectLabel"),
500
511
  "model-value": e(o).targetLocation ?? null,
501
- "onUpdate:modelValue": l[12] || (l[12] = (s) => e(o).targetLocation = s)
512
+ "onUpdate:modelValue": l[13] || (l[13] = (s) => e(o).targetLocation = s)
502
513
  }, null, 8, ["label", "model-value"])
503
514
  ]),
504
515
  t("div", $t, [
505
- t("div", St, i(e(n)("connect.setting.allowedPhoneCountries.title")), 1),
506
- t("div", Mt, i(e(n)("connect.setting.allowedPhoneCountries.description")), 1),
516
+ t("div", Mt, i(e(n)("connect.setting.allowedPhoneCountries.title")), 1),
517
+ t("div", Lt, i(e(n)("connect.setting.allowedPhoneCountries.description")), 1),
507
518
  c(tt, {
508
519
  modelValue: e(o).allowedPhoneCountries,
509
- "onUpdate:modelValue": l[13] || (l[13] = (s) => e(o).allowedPhoneCountries = s)
520
+ "onUpdate:modelValue": l[14] || (l[14] = (s) => e(o).allowedPhoneCountries = s)
510
521
  }, null, 8, ["modelValue"])
511
522
  ]),
512
- t("div", Lt, [
523
+ t("div", Dt, [
513
524
  c(M, {
514
525
  label: e(n)("connect.setting.action.update"),
515
526
  type: "button",
516
527
  onClick: he,
517
- disabled: !!e(v).loadingQueue.length,
518
- loading: !!e(v).loadingQueue.length
528
+ disabled: !!e(g).loadingQueue.length,
529
+ loading: !!e(g).loadingQueue.length
519
530
  }, null, 8, ["label", "disabled", "loading"])
520
531
  ])
521
532
  ])
522
533
  ]),
523
- t("div", Dt, [
534
+ t("div", It, [
524
535
  c(j, {
525
536
  variant: "outlined",
526
537
  class: "flex flex-col p-24 gap-8"
527
538
  }, {
528
- default: S(() => {
539
+ default: $(() => {
529
540
  var s, C, L;
530
541
  return [
531
- t("div", It, i(e(n)("connect.setting.summary.title")), 1),
542
+ t("div", Et, i(e(n)("connect.setting.summary.title")), 1),
532
543
  c(xe, { class: "my-4" }),
533
544
  t("div", null, [
534
- t("div", Et, i(e(n)("connect.setting.summary.name")), 1),
535
- t("div", Tt, i(e(o).name), 1)
545
+ t("div", Tt, i(e(n)("connect.setting.summary.name")), 1),
546
+ t("div", Rt, i(e(o).name), 1)
536
547
  ]),
537
548
  t("div", null, [
538
549
  t("div", Bt, i(e(n)("connect.setting.summary.advertisement")), 1),
539
550
  t("div", Nt, i((((s = e(o).advertisements) == null ? void 0 : s.length) ?? 0) || e(n)("connect.setting.summary.noAds")), 1)
540
551
  ]),
541
552
  t("div", null, [
542
- t("div", Rt, i(e(n)("connect.setting.summary.freeCredit")), 1),
543
- t("div", Ht, i(e(o).freeCreditAsDiscount ? e(n)("connect.setting.summary.enabled") : e(n)("connect.setting.summary.disabled")), 1)
553
+ t("div", Ht, i(e(n)("connect.setting.summary.freeCredit")), 1),
554
+ t("div", Ot, i(e(o).freeCreditAsDiscount ? e(n)("connect.setting.summary.enabled") : e(n)("connect.setting.summary.disabled")), 1)
544
555
  ]),
545
556
  t("div", null, [
546
- t("div", Ot, i(e(n)("connect.setting.summary.locations")), 1),
547
- t("div", jt, i(!e(o).targetLocation || e(o).targetLocation.length == e(G)().locations.length ? e(n)("connect.setting.summary.allLocations") : (L = (C = e(o)) == null ? void 0 : C.targetLocation) == null ? void 0 : L.map(
548
- (q) => e(p).locations.find((ke) => ke._id == q).name
557
+ t("div", jt, i(e(n)("connect.setting.summary.locations")), 1),
558
+ t("div", qt, i(!e(o).targetLocation || e(o).targetLocation.length == e(K)().locations.length ? e(n)("connect.setting.summary.allLocations") : (L = (C = e(o)) == null ? void 0 : C.targetLocation) == null ? void 0 : L.map(
559
+ (X) => e(p).locations.find((Ve) => Ve._id == X).name
549
560
  ).join(", ")), 1)
550
561
  ])
551
562
  ];
@@ -553,11 +564,11 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
553
564
  _: 1
554
565
  })
555
566
  ])
556
- ])) : X("", !0)
567
+ ])) : z("", !0)
557
568
  ], 64);
558
569
  };
559
570
  }
560
571
  });
561
572
  export {
562
- fn as default
573
+ vn as default
563
574
  };