@feedmepos/mf-connect 0.1.122-dev → 0.1.122-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 (148) hide show
  1. package/dist/{App-Otfhp3H1.js → App-BKnL7b6M.js} +493 -502
  2. package/dist/{Bin-B5aee7-4.js → Bin-BqqQF1h_.js} +8 -8
  3. package/dist/{Broadcast-BAQl4nEs.js → Broadcast-U5rJmhdd.js} +21 -22
  4. package/dist/{CampaignAnalytic-mc0rWnt4.js → CampaignAnalytic-ClwXxxzE.js} +7 -7
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C06IzthB.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DyeoWFcd.js} +9 -8
  6. package/dist/{Card-CoeclAye.js → Card-DKikDYES.js} +22 -22
  7. package/dist/{Collections-DIamDQDK.js → Collections-CD0xjFqI.js} +185 -197
  8. package/dist/{Credit-CoIPdhRy.js → Credit-BWcvFlb2.js} +20 -21
  9. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-nI2oXZiR.js → DateRangeChip.vue_vue_type_script_setup_true_lang-B2RizWP8.js} +1 -1
  10. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D38JB0FV.js +3493 -0
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BZ42IxXy.js → EffectSheet.vue_vue_type_style_index_0_lang-Hr10pgqD.js} +16 -16
  12. package/dist/{Experience-bJSkl9Xm.js → Experience-dqXYj1Fv.js} +31 -32
  13. package/dist/{FileSaver.min-CFKCOdNt.js → FileSaver.min-DdJMn696.js} +1 -1
  14. package/dist/{Game-DMoyicRl.js → Game-BGQXqzck.js} +18 -19
  15. package/dist/{GiftCardSetup-B28jebxX.js → GiftCardSetup-C3MR25fp.js} +31 -31
  16. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-il1_TmfZ.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-9dL1kVPG.js} +7 -7
  17. package/dist/{Goals-B9XRX-to.js → Goals-DA2jHEZa.js} +4 -4
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BZH5In2V.js → ImageInput.vue_vue_type_script_setup_true_lang-_rlsNocb.js} +1 -1
  19. package/dist/{Index-BgGZBhf8.js → Index-WOvryalE.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-M6eRk_nC.js → LocationPicker.vue_vue_type_script_setup_true_lang-Bu1DjV9M.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DQCpH8dV.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DiLtSIXt.js} +1 -1
  22. package/dist/{LoyaltyDashboard-B-vMpAdx.js → LoyaltyDashboard-BKN2vBqc.js} +15 -15
  23. package/dist/{MainLayout-rv2xd7Yc.js → MainLayout-DizL-dxl.js} +1 -1
  24. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-BMwNt98l.js → MainLayout.vue_vue_type_script_setup_true_lang-El0YeLnE.js} +3 -3
  25. package/dist/{Marketing-Wu2M2xPV.js → Marketing-B77EoiCf.js} +4 -4
  26. package/dist/{MarketingMaterialEdit-C5s0grZF.js → MarketingMaterialEdit-C_qFEur7.js} +211 -214
  27. package/dist/{Member-D02_98Yo.js → Member-TYDrU3Tk.js} +7 -7
  28. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DGVDww0P.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-BuzMeXR9.js} +47 -39
  29. package/dist/{MemberImportHistory-ZqjppSHQ.js → MemberImportHistory-l7dVJdEH.js} +7 -7
  30. package/dist/{MemberList-DpWX6mT9.js → MemberList-DiuyeJx_.js} +105 -103
  31. package/dist/{MemberTransactions-BiE7FtKT.js → MemberTransactions-BJ27Gd5P.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DUtNRTNB.js → MessageInput.vue_vue_type_script_setup_true_lang-so7LWtlv.js} +12 -12
  33. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DD5GkLoA.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DgE7HPsT.js} +1 -1
  34. package/dist/{Mission-D3uyaxrt.js → Mission-C63hh8Ra.js} +21 -22
  35. package/dist/{Overview-C80up9Cz.js → Overview-CVdvQK6q.js} +20 -20
  36. package/dist/{Overview-Dzs2l9dt.js → Overview-DP-4Kpuj.js} +144 -145
  37. package/dist/{Point-CtyqLefg.js → Point-DXH4kJNQ.js} +21 -22
  38. package/dist/{Promotion-C1pB_Mup.js → Promotion-Cn-wAx6m.js} +131 -137
  39. package/dist/{Queue-DkmBLRMM.js → Queue-CEEUE-UT.js} +45 -45
  40. package/dist/{Record-B5onEmZr.js → Record-BFIjLKJD.js} +9 -9
  41. package/dist/{Review-fkpAgnWl.js → Review-BMRfKri0.js} +2 -2
  42. package/dist/ReviewFacebookCallback-CPYIC3RS.js +238 -0
  43. package/dist/{ReviewGoogleCallback-Cj9zmCme.js → ReviewGoogleCallback-Cflqv5Z5.js} +5 -5
  44. package/dist/{Reward-BNt4rJXG.js → Reward-C-qGtzpu.js} +16 -16
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CJbD7izQ.js → RewardGroup.vue_vue_type_script_setup_true_lang-kxJ5i8xe.js} +13 -13
  46. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BlRmshrE.js +1884 -0
  47. package/dist/{Segment-9weq5m6d.js → Segment-Bx1pfw4Q.js} +306 -303
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-j_DlD4Uz.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-vuH9xdOi.js} +14 -14
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Bq1XKmWl.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CZHpyimI.js} +4 -4
  50. package/dist/Setting-CEcpuE_O.js +578 -0
  51. package/dist/{SettingAdvertisements-BdXfSnNM.js → SettingAdvertisements-CZlIQ5m_.js} +12 -12
  52. package/dist/Settings-CPLibjQy.js +179 -0
  53. package/dist/{Store-D3cAsGJ6.js → Store-BhZulzuc.js} +28 -28
  54. package/dist/{StoreRewards-C2y1M4Ps.js → StoreRewards-CvYgJVFU.js} +15 -15
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dqj5zIgi.js +1297 -0
  56. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang--Ii9ejFG.js +142 -0
  57. package/dist/{Tier-Dci8VbpH.js → Tier-BPPSaEe0.js} +687 -2575
  58. package/dist/{Title-D4BpqJPQ.js → Title-CccRUVZV.js} +94 -95
  59. package/dist/{Transaction-1biUZvIt.js → Transaction-ULzAt-u7.js} +2 -2
  60. package/dist/Upselling-D2tSUTkE.js +200 -0
  61. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-D7W1cxlp.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CoqrSuWu.js} +26 -26
  62. package/dist/{Voucher-DSygKr_u.js → Voucher-Cz7IMRNl.js} +19 -19
  63. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-JL1V_LbU.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BaxHZN76.js} +12 -12
  64. package/dist/{WhatsappAccount-CZ-js350.js → WhatsappAccount-BsxVHiZZ.js} +6 -6
  65. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DBiqtHgs.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DJnkGMF1.js} +1 -1
  66. package/dist/{WhatsappBot-Bygdlech.js → WhatsappBot-sd6erVZk.js} +6 -6
  67. package/dist/{WhatsappBotLogs-BFLRYeQf.js → WhatsappBotLogs-DNbGWyOY.js} +6 -6
  68. package/dist/{WhatsappBotSettings-COZEGQxT.js → WhatsappBotSettings-DXa_e7-a.js} +4 -4
  69. package/dist/{WhatsappLayout-DEzbS1SP.js → WhatsappLayout-DvBPIB5f.js} +3 -3
  70. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DUX8zJnw.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CRDouGvj.js} +3 -3
  71. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BJFYIRZl.js → ZodTextField.vue_vue_type_script_setup_true_lang-B6BvSACt.js} +2 -2
  72. package/dist/{app-gGao9t7Z.js → app-4x06ItoL.js} +15017 -14861
  73. package/dist/app.js +3 -4
  74. package/dist/{base.export-cVWgL6vy.js → base.export-DS0xThWi.js} +2 -2
  75. package/dist/{business-DbDh-BxN.js → business-D0I7G-5H.js} +1 -1
  76. package/dist/{campaign-B9tq1vZv.js → campaign-BuJCjEH-.js} +94 -121
  77. package/dist/{campaign-D8jV7hA8.js → campaign-CC9U7rkr.js} +28 -34
  78. package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
  79. package/dist/campaign.fn-CLUOgMgc.js +776 -0
  80. package/dist/{collection.fn-DBfMa_P2.js → collection.fn-CUifllLR.js} +2 -2
  81. package/dist/{currency-SZSbDgAr.js → currency-BPhBDOpt.js} +1 -1
  82. package/dist/{effect-CVTuOMbk.js → effect-DKHOR-B3.js} +1 -1
  83. package/dist/{email-addresses-DpVS_e0D.js → email-addresses-B-VEReRV.js} +25 -25
  84. package/dist/{feature-flag-orm4I4-0.js → feature-flag-Cjl6gaO5.js} +185 -171
  85. package/dist/google-C3S8u0mT.js +4 -0
  86. package/dist/{helper-Ct1_-IEp.js → helper-CBLh1PWR.js} +1 -1
  87. package/dist/{index-Clg5CVmr.js → index-BBsqcXfJ.js} +1 -1
  88. package/dist/{index-NN_GXe7Q.js → index-B_iKSOXp.js} +1 -1
  89. package/dist/{index-BeGbQvrb.js → index-BwgjSrwa.js} +2 -2
  90. package/dist/{index-DW5cDL7l.js → index-BzKKNuLc.js} +2 -2
  91. package/dist/{index-Bz2GhZNd.js → index-C1QA2M4I.js} +10 -10
  92. package/dist/{index-uIOAK7Yt.js → index-CGcWs8B5.js} +462 -533
  93. package/dist/{index-CrluLS6Q.js → index-CWJi_hw-.js} +2 -2
  94. package/dist/{index-BUDFQtMG.js → index-D3B392A3.js} +3 -3
  95. package/dist/{index-CONIxgEK.js → index-DL_UYO4J.js} +234 -380
  96. package/dist/{index-B6hbCvzb.js → index-DenQ8DV4.js} +1 -1
  97. package/dist/{index-BOoNJIJh.js → index-Djf4TpYV.js} +23 -23
  98. package/dist/{index-DBpHsVZR.js → index-EpqQFMu2.js} +2614 -2699
  99. package/dist/{index-MlhU8ucu.js → index-Ob5I-Sex.js} +1 -1
  100. package/dist/{index-BXXLVdgj.js → index-RMsQnHez.js} +1 -1
  101. package/dist/{index-COAgKj0v.js → index-ZTC5k9Jb.js} +6 -19
  102. package/dist/{index-B2GJ653R.js → index-bc7bIIVP.js} +197 -197
  103. package/dist/{index-DFePTLAw.js → index-kClA31M9.js} +10 -10
  104. package/dist/{index-vfdh50L9.js → index-nnmfOPuw.js} +4 -4
  105. package/dist/{index-DCuUA8EI.js → index-umYXnOWc.js} +251 -608
  106. package/dist/{index-DwofBI5n.js → index-vqUiCeKb.js} +1 -1
  107. package/dist/{index.esm2017-ZSQn8C-d.js → index.esm2017-DMKkHR06.js} +111 -111
  108. package/dist/{loading-B-xDCOdo.js → loading-Cb4RgEo7.js} +1 -1
  109. package/dist/{lodash-DFW9UbwC.js → lodash-CMazTe9d.js} +1 -1
  110. package/dist/{member-import-J0fm9uzH.js → member-import-Df1y7FvX.js} +1 -1
  111. package/dist/{membership-B8KWhxBD.js → membership-yvDb2HS8.js} +2 -2
  112. package/dist/{money-CSIA5h2F.js → money-rs9shyUy.js} +1 -1
  113. package/dist/{number-mHKvdu_x.js → number-Ecq6MjRx.js} +1 -1
  114. package/dist/objectid-BVri-Vim.js +145 -0
  115. package/dist/{onboarding-CbvpduVK.js → onboarding-DugmLfNG.js} +36 -36
  116. package/dist/{onboardingSetup-pQHr4ATi.js → onboardingSetup-DMzNxJC4.js} +2 -2
  117. package/dist/{plugins-D_LhWxFb.js → plugins-CvhBJQEK.js} +3 -3
  118. package/dist/{reward-CFEIG_Fc.js → reward-BGUOUKZn.js} +1 -1
  119. package/dist/{rule-Dqxm0TiU.js → rule-C87YbT3F.js} +492 -572
  120. package/dist/rule-builder-lzMi7irV.js +102 -0
  121. package/dist/style.css +1 -1
  122. package/dist/template-BfFSbH04.js +275 -0
  123. package/dist/{timezone-CijbubTV.js → timezone-uP_heouv.js} +1 -1
  124. package/dist/{transaction.fn-Bg5w0js6.js → transaction.fn-CiGhIgzP.js} +2 -2
  125. package/dist/{trigger-Z2ynsa7k.js → trigger-dOOSh-Yp.js} +9 -9
  126. package/dist/{useMarketingMaterialActions-Dgm-u9Nu.js → useMarketingMaterialActions-BRenBblP.js} +4 -4
  127. package/dist/{usePagination-Dlw4BUF1.js → usePagination-DNOc8GFS.js} +1 -1
  128. package/dist/{user-BRNDlg4h.js → user-DTAGYy-F.js} +1 -1
  129. package/dist/vue-i18n-D8wuxuA4.js +2365 -0
  130. package/dist/{xlsx-CnlrcvXS.js → xlsx-BU0bDwTF.js} +1 -1
  131. package/dist/{zod-DPWT8J03.js → zod-mPFqdty8.js} +1 -1
  132. package/package.json +3 -7
  133. package/dist/AuditLogs-C4DQ624f.js +0 -2016
  134. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CXNf6M-7.js +0 -4439
  135. package/dist/Grab-CNXLDEKx.js +0 -301
  136. package/dist/ReviewFacebookCallback-CLeQP52t.js +0 -225
  137. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-ie0okvmi.js +0 -1923
  138. package/dist/Setting-DadiBCUq.js +0 -574
  139. package/dist/Settings-SF-Ai88W.js +0 -286
  140. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DX8nrBZd.js +0 -1319
  141. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CjBucvpJ.js +0 -7007
  142. package/dist/Upselling-BTqqiZlc.js +0 -1032
  143. package/dist/campaign.fn-DiQIanat.js +0 -776
  144. package/dist/duplicateCampaign-3K1VYqMD.js +0 -51
  145. package/dist/google-BQK68wbe.js +0 -5
  146. package/dist/objectid-BVNgDFLu.js +0 -145
  147. package/dist/template-BKPcMDwU.js +0 -227
  148. package/dist/vue-i18n-h2H0nxj-.js +0 -2365
@@ -1,20 +1,20 @@
1
1
  import { defineComponent as L, ref as p, computed as C, onMounted as P, resolveComponent as i, openBlock as $, createBlock as D, unref as e, isRef as H, withCtx as S, createElementVNode as b, createVNode as c, toDisplayString as w } from "vue";
2
- import { u as O } from "./loading-B-xDCOdo.js";
3
- import { p as Z } from "./plugins-D_LhWxFb.js";
2
+ import { u as O } from "./loading-Cb4RgEo7.js";
3
+ import { p as Z } from "./plugins-CvhBJQEK.js";
4
4
  import { u as q } from "./app-wDQR6dpb.js";
5
- import { m as z } from "./index-CrluLS6Q.js";
6
- import "./index-DCuUA8EI.js";
7
- import { c as G } from "./index-uIOAK7Yt.js";
8
- import "./index-DBpHsVZR.js";
9
- import "./index-BUDFQtMG.js";
10
- import "./index-CONIxgEK.js";
11
- import "./index-BeGbQvrb.js";
5
+ import { m as z } from "./index-CWJi_hw-.js";
6
+ import { a as G } from "./index-CGcWs8B5.js";
7
+ import "./index-EpqQFMu2.js";
8
+ import "./index-D3B392A3.js";
9
+ import "./index-DL_UYO4J.js";
10
+ import "./index-umYXnOWc.js";
11
+ import "./index-BwgjSrwa.js";
12
12
  import "./index-I9lmcd2w.js";
13
- import "./index-MlhU8ucu.js";
14
- import { Z as d } from "./zod-DPWT8J03.js";
15
- import { z as Y } from "./app-gGao9t7Z.js";
16
- import { u as j } from "./vue-i18n-h2H0nxj-.js";
17
- import { c as J } from "./index-DW5cDL7l.js";
13
+ import "./index-Ob5I-Sex.js";
14
+ import { Z as d } from "./zod-mPFqdty8.js";
15
+ import { z as Y } from "./app-4x06ItoL.js";
16
+ import { u as j } from "./vue-i18n-D8wuxuA4.js";
17
+ import { c as J } from "./index-BzKKNuLc.js";
18
18
  const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-400" }, W = { class: "flex items-center gap-8" }, ve = /* @__PURE__ */ L({
19
19
  __name: "SendCollectionSheet",
20
20
  emits: ["success"],
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as O, ref as p, computed as g, watch as T, onMounted as q, resolveComponent as x, openBlock as I, createBlock as G, unref as t, isRef as k, withCtx as z, createElementVNode as n, createVNode as s, toDisplayString as f, createElementBlock as H, createCommentVNode as K } from "vue";
2
2
  import { J as Q } from "./JsonViewer-v8_C7l5N.js";
3
3
  import { _ as F } from "./FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js";
4
- import { u as W } from "./loading-B-xDCOdo.js";
4
+ import { u as W } from "./loading-Cb4RgEo7.js";
5
5
  import { u as X } from "./app-wDQR6dpb.js";
6
- import { l as Y } from "./lodash-DFW9UbwC.js";
7
- import { m as Z } from "./index-CrluLS6Q.js";
8
- import { c as ee } from "./index-DW5cDL7l.js";
6
+ import { l as Y } from "./lodash-CMazTe9d.js";
7
+ import { m as Z } from "./index-CWJi_hw-.js";
8
+ import { c as ee } from "./index-BzKKNuLc.js";
9
9
  const ae = { class: "space-y-16" }, te = { class: "fm-typo-en-body-md-600" }, oe = { class: "flex items-center justify-end" }, le = {
10
10
  key: 0,
11
11
  class: "basis-72 bg-white flex items-center justify-between px-24 pt-6 border-t border-fm-color-border"
@@ -0,0 +1,578 @@
1
+ import { defineComponent as J, ref as U, computed as D, onMounted as me, resolveComponent as p, openBlock as f, createBlock as B, withCtx as P, createElementVNode as t, createVNode as c, unref as e, isRef as Z, watch as Ue, createElementBlock as C, toDisplayString as i, Fragment as T, renderList as G, createTextVNode as E, createCommentVNode as O } from "vue";
2
+ import { h as Fe } from "./moment-D7p2TMB-.js";
3
+ import { Z as re } from "./zod-mPFqdty8.js";
4
+ import { useDialog as ue } from "@feedmepos/ui-library";
5
+ import { u as Ae } from "./loading-Cb4RgEo7.js";
6
+ import { u as Pe } from "./app-wDQR6dpb.js";
7
+ import { u as K, l as pe } from "./business-D0I7G-5H.js";
8
+ import { u as fe } from "./membership-yvDb2HS8.js";
9
+ import { P as Q } from "./index-D3B392A3.js";
10
+ import { m as Se, b as $e } from "./index-DL_UYO4J.js";
11
+ import { _ as Me } from "./ImageInput.vue_vue_type_script_setup_true_lang-_rlsNocb.js";
12
+ import { c as ve, p as Le, f as j } from "./plugins-CvhBJQEK.js";
13
+ import { b as De } from "./browser-BSAOEeIM.js";
14
+ import { p as Re, r as Ie, _ as Ee } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang--Ii9ejFG.js";
15
+ import { u as ge } from "./vue-i18n-D8wuxuA4.js";
16
+ import { M as Te, b as Be } from "./MessageInput.vue_vue_type_script_setup_true_lang-so7LWtlv.js";
17
+ import { useCoreStore as Ne } from "@feedmepos/mf-common";
18
+ import { useRouter as He } from "vue-router";
19
+ import { R as Oe } from "./app-4x06ItoL.js";
20
+ import { b as je } from "./feature-flag-Cjl6gaO5.js";
21
+ import { m as W } from "./index-ZTC5k9Jb.js";
22
+ import { S as de } from "./index-C1QA2M4I.js";
23
+ import { o as qe } from "./objectId-dwaoBfJX.js";
24
+ import { a as Xe } from "./object-BYyQ0PZp.js";
25
+ async function ze(v, x = 350) {
26
+ try {
27
+ return await De.toDataURL(v, {
28
+ width: x,
29
+ margin: 0
30
+ });
31
+ } catch (g) {
32
+ console.error(g);
33
+ }
34
+ }
35
+ var Qe = { 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/" };
36
+ const We = { class: "flex items-start" }, Ye = { class: "flex flex-col gap-16 mt-16" }, Ze = ["src"], Ge = /* @__PURE__ */ J({
37
+ __name: "LinkDeviceDialog",
38
+ setup(v) {
39
+ const x = K(), g = fe(), y = ue(), L = U(), m = U(), h = Qe.crmUrl, b = U(), S = D(() => g.membership), R = D(() => {
40
+ var r, a;
41
+ return `https://${(r = S.value) != null && r.url ? S.value.url : (a = S.value) == null ? void 0 : a.business}.${h}`;
42
+ });
43
+ async function n(r) {
44
+ const a = await pe.getOtp(r);
45
+ return `${R.value}?link-device=${a.otp}`;
46
+ }
47
+ async function k(r) {
48
+ const a = await n(r);
49
+ b.value = a, L.value = await ze(a);
50
+ }
51
+ return me(async () => {
52
+ if (await x.readLocations(), !x.locations.length) {
53
+ y.close();
54
+ return;
55
+ }
56
+ const r = x.locations[0]._id;
57
+ m.value = r, await k(r);
58
+ }), (r, a) => {
59
+ const V = p("FmIcon"), F = p("FmSelect"), A = p("FmButton"), _ = p("FmCard");
60
+ return f(), B(_, { class: "p-24 max-w-[350px]" }, {
61
+ default: P(() => [
62
+ t("div", We, [
63
+ a[3] || (a[3] = t("div", null, [
64
+ t("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
65
+ t("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
66
+ ], -1)),
67
+ c(V, {
68
+ name: "close",
69
+ onClick: a[0] || (a[0] = (o) => e(y).close()),
70
+ class: "cursor-pointer"
71
+ })
72
+ ]),
73
+ t("div", Ye, [
74
+ c(F, {
75
+ modelValue: e(m),
76
+ "onUpdate:modelValue": [
77
+ a[1] || (a[1] = (o) => Z(m) ? m.value = o : null),
78
+ k
79
+ ],
80
+ label: "Select Location",
81
+ items: e(x).locationItems.filter((o) => !!o.value)
82
+ }, null, 8, ["modelValue", "items"]),
83
+ t("img", {
84
+ src: e(L),
85
+ class: "aspect-square w-full"
86
+ }, null, 8, Ze),
87
+ c(A, {
88
+ class: "mx-auto",
89
+ variant: "plain",
90
+ icon: "content_copy",
91
+ onClick: a[2] || (a[2] = (o) => e(ve)(e(b)))
92
+ })
93
+ ])
94
+ ]),
95
+ _: 1
96
+ });
97
+ };
98
+ }
99
+ }), Ke = { class: "space-y-4" }, Je = { key: 0 }, et = { key: 1 }, tt = { key: 2 }, ot = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, nt = /* @__PURE__ */ J({
100
+ __name: "AllowedPhoneCountriesSelect",
101
+ props: {
102
+ modelValue: {}
103
+ },
104
+ emits: ["update:modelValue"],
105
+ setup(v, { emit: x }) {
106
+ const { t: g } = ge(), y = v, L = x, m = [...new Set(Q.map((r) => r.phoneCode))], h = U(""), b = U(!1), S = D(() => {
107
+ const r = h.value.toLowerCase();
108
+ return Q.filter(
109
+ (a) => a.name.toLowerCase().includes(r) || a.phoneCode.toLowerCase().includes(r)
110
+ );
111
+ });
112
+ function R(r, a) {
113
+ const V = r ? Re([...y.modelValue || []], a) : Ie(y.modelValue || m, a);
114
+ L("update:modelValue", V);
115
+ }
116
+ const n = D(() => {
117
+ var V;
118
+ const a = ((V = y.modelValue) == null ? void 0 : V.slice(0, 5).map(
119
+ (F) => {
120
+ var A;
121
+ return ((A = Q.find((_) => _.phoneCode === F)) == null ? void 0 : A.name) || F;
122
+ }
123
+ )) || [];
124
+ return y.modelValue && y.modelValue.length > 5 && a.push(`+${y.modelValue.length - 5} more`), a;
125
+ }), k = D(() => {
126
+ const r = y.modelValue;
127
+ return Array.isArray(r) && r.length === 0 ? g("connect.setting.allowedPhoneCountries.helper.noneAllowed") : r == null ? g("connect.setting.allowedPhoneCountries.helper.allAllowed") : g("connect.setting.allowedPhoneCountries.helper.selectedOnly");
128
+ });
129
+ return Ue(b, (r) => {
130
+ r && (h.value = "");
131
+ }), (r, a) => {
132
+ const V = p("FmChip"), F = p("FmField"), A = p("FmTextField"), _ = p("FmCheckbox"), o = p("FmMenu");
133
+ return f(), C("div", Ke, [
134
+ c(o, {
135
+ modelValue: e(b),
136
+ "onUpdate:modelValue": a[2] || (a[2] = (u) => Z(b) ? b.value = u : null),
137
+ onMenuChanged: a[3] || (a[3] = (u) => b.value = u),
138
+ placement: "top-end"
139
+ }, {
140
+ "menu-button": P(() => [
141
+ c(F, {
142
+ "append-icon": e(b) ? "expand_more" : "expand_less",
143
+ class: "!h-auto"
144
+ }, {
145
+ default: P(() => [
146
+ v.modelValue ? v.modelValue.length ? (f(), C("div", tt, [
147
+ (f(!0), C(T, null, G(e(n), (u, I) => (f(), B(V, {
148
+ key: I,
149
+ label: u,
150
+ class: "max-w-[130px] text-ellipsis"
151
+ }, null, 8, ["label"]))), 128))
152
+ ])) : (f(), C("div", et, i(e(g)("connect.setting.allowedPhoneCountries.noCountries")), 1)) : (f(), C("div", Je, i(e(g)("connect.setting.allowedPhoneCountries.allCountries")), 1))
153
+ ]),
154
+ _: 1
155
+ }, 8, ["append-icon"])
156
+ ]),
157
+ default: P(() => [
158
+ c(A, {
159
+ modelValue: e(h),
160
+ "onUpdate:modelValue": a[0] || (a[0] = (u) => Z(h) ? h.value = u : null),
161
+ placeholder: e(g)("connect.setting.allowedPhoneCountries.searchCountries"),
162
+ class: "my-8"
163
+ }, null, 8, ["modelValue", "placeholder"]),
164
+ c(_, {
165
+ class: "my-8",
166
+ value: null,
167
+ indeterminate: v.modelValue != null && v.modelValue.length > 0 && v.modelValue.length < m.length,
168
+ label: e(g)("connect.setting.allowedPhoneCountries.allCountries"),
169
+ "model-value": v.modelValue == null || v.modelValue.length === m.length,
170
+ "onUpdate:modelValue": a[1] || (a[1] = (u) => L("update:modelValue", u ? null : []))
171
+ }, null, 8, ["indeterminate", "label", "model-value"]),
172
+ (f(!0), C(T, null, G(e(S), (u) => (f(), B(_, {
173
+ class: "my-8",
174
+ key: u.iso2,
175
+ value: u.phoneCode,
176
+ label: `${u.name} (${u.phoneCode})`,
177
+ "model-value": !v.modelValue || v.modelValue.includes(u.phoneCode),
178
+ "onUpdate:modelValue": (I) => R(I, u.phoneCode)
179
+ }, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
180
+ ]),
181
+ _: 1
182
+ }, 8, ["modelValue"]),
183
+ t("div", ot, i(e(k)), 1)
184
+ ]);
185
+ };
186
+ }
187
+ });
188
+ 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/" };
189
+ const lt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, st = { class: "fm-typo-en-title-md-800" }, at = {
190
+ key: 0,
191
+ class: "px-24 gap-32 grid grid-cols-3 xs:pt-16"
192
+ }, it = { class: "col-span-2 flex flex-col xs:col-span-3 space-y-8" }, ct = { class: "fm-typo-en-title-sm-800" }, rt = { class: "space-y-24" }, dt = { class: "space-y-8" }, mt = { class: "fm-typo-en-title-sm-800" }, ut = { class: "fm-typo-body-lg-400" }, pt = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, ft = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, vt = { class: "space-y-8" }, gt = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, yt = { class: "fm-typo-en-body-lg-600" }, ht = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, bt = { class: "space-y-8" }, _t = { class: "space-y-8" }, wt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ct = { class: "space-y-8" }, xt = { class: "fm-typo-en-title-sm-800" }, kt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Vt = { class: "space-y-8" }, Ut = { class: "fm-typo-en-title-sm-800" }, Ft = { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, At = { class: "space-y-8" }, Pt = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, St = {
193
+ key: 0,
194
+ class: "space-y-8"
195
+ }, $t = { class: "space-y-8" }, Mt = { class: "fm-typo-en-title-sm-800" }, Lt = { class: "space-y-8" }, Dt = { class: "fm-typo-en-title-sm-800" }, Rt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, It = { class: "flex justify-end pb-24" }, Et = { class: "col-span-1 space-y-8 xs:hidden" }, 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" }, 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" }, Xt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, zt = { class: "fm-typo-en-body-lg-600" }, ho = /* @__PURE__ */ J({
196
+ __name: "Setting",
197
+ setup(v) {
198
+ const x = He(), g = je(), y = Pe(), L = Ne(), m = K(), h = fe(), { global: b, minor: S } = Ae, R = ue(), n = U(), k = U([]), r = U(null), a = Se, V = [
199
+ (d) => !d || d.length >= 6 || "Invalid URL format, please enter at least 6 characters",
200
+ (d) => !d || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(d) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
201
+ ], F = Y.appUrl, A = D(() => {
202
+ var d;
203
+ return `https://${(d = n.value) == null ? void 0 : d.business}.${F}/user?join=true`;
204
+ }), _ = U(), { t: o } = ge(), u = L.currentCountry.value || "MY", I = [
205
+ "user.name",
206
+ "user.gender",
207
+ "user.birthday",
208
+ "user.phoneNumber",
209
+ "membership.url"
210
+ ].filter(
211
+ (d) => {
212
+ var l;
213
+ return !((l = Te[u]) != null && l.includes(d));
214
+ }
215
+ ), ee = U(
216
+ o("connect.setting.sms.welcomeMessage")
217
+ );
218
+ async function ye() {
219
+ R.open({
220
+ title: "",
221
+ dialogComponent: Ge,
222
+ closeButton: !1
223
+ });
224
+ }
225
+ async function he(d) {
226
+ await Le.remove(
227
+ "Are you sure you want to unlink this device?",
228
+ "Unlink device",
229
+ "Unlink"
230
+ ) && await S(
231
+ async () => {
232
+ await pe.unregisterDevice(d), await m.readLocationDevices();
233
+ },
234
+ {
235
+ message: "Unlinking device",
236
+ successMessage: "Unlinked device successfully"
237
+ }
238
+ );
239
+ }
240
+ async function be() {
241
+ await S(
242
+ async () => {
243
+ var N;
244
+ const d = Xe(n.value);
245
+ console.log(n.value), d.welcomeMessage && !((N = d.welcomeMessage) != null && N.content) && (d.welcomeMessage.content = "Hi there, you have been invited to join our membership");
246
+ const l = $e.parse(d);
247
+ _.value === null && l.image ? await j.delete(j.coverImagePath()) : _.value && (l.image = await j.update(
248
+ j.coverImagePath(),
249
+ _.value
250
+ )), await W.update(l), await h.readMembership(), n.value = h.membership;
251
+ },
252
+ {
253
+ message: "Updating membership",
254
+ successMessage: "Membership updated successfully"
255
+ }
256
+ );
257
+ }
258
+ async function _e() {
259
+ const d = await W.getEmailAddresses();
260
+ console.log(d), k.value = d, r.value = d.find((l) => l.default.includes("Marketing"));
261
+ }
262
+ async function we() {
263
+ window.open(
264
+ `${Y.licensePortalUrl}business/${de.businessId}/settings`,
265
+ "_blank"
266
+ );
267
+ }
268
+ async function Ce() {
269
+ const d = `${Y.licensePortalUrl}settings?businessId=${de.businessId}`;
270
+ console.log("Opening", d), window.open(d, "_blank");
271
+ }
272
+ return me(async () => {
273
+ await b(async () => {
274
+ await m.readPremium(), await m.readLocations(), await m.readLocationDevices(), await h.readMembership(), await _e(), n.value = h.membership;
275
+ try {
276
+ const { content: d } = await W.getDefaultWelcomeMessage();
277
+ d && (ee.value = d);
278
+ } catch (d) {
279
+ console.error("Failed to load default welcome message", d);
280
+ }
281
+ });
282
+ }), (d, l) => {
283
+ var oe, ne, le, se, ae, ie, ce;
284
+ const N = p("FmPageHead"), $ = p("FmButton"), H = p("FmTextField"), q = p("FmCard"), te = p("FmPill"), xe = p("FmSelect"), X = p("FmSwitch"), ke = p("FmMenuDivider");
285
+ return f(), C(T, null, [
286
+ c(N, {
287
+ title: e(o)("connect.setting.title"),
288
+ class: "xs:hidden"
289
+ }, null, 8, ["title"]),
290
+ t("div", lt, [
291
+ t("div", st, i(e(o)("connect.setting.basicInfo.title")), 1),
292
+ c($, {
293
+ icon: "info",
294
+ variant: "tertiary"
295
+ })
296
+ ]),
297
+ e(n) ? (f(), C("div", at, [
298
+ t("div", it, [
299
+ t("div", ct, i(e(o)("connect.setting.basicInfo.title")), 1),
300
+ t("div", rt, [
301
+ c(H, {
302
+ label: e(o)("connect.setting.basicInfo.membershipTitle"),
303
+ modelValue: e(n).name,
304
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => e(n).name = s)
305
+ }, null, 8, ["label", "modelValue"]),
306
+ c(H, {
307
+ disabled: !0,
308
+ "model-value": e(n).business,
309
+ rules: V,
310
+ required: !0,
311
+ label: e(o)("connect.setting.basicInfo.memberAppUrl"),
312
+ "helper-text": e(A),
313
+ placeholder: e(n).business.toString(),
314
+ "onUpdate:modelValue": l[2] || (l[2] = (s) => e(n).url = s)
315
+ }, {
316
+ prepend: P(() => [...l[15] || (l[15] = [
317
+ E(" https:// ", -1)
318
+ ])]),
319
+ append: P(() => [
320
+ E(" ." + i(e(F)) + " ", 1),
321
+ c($, {
322
+ icon: "content_copy",
323
+ variant: "tertiary",
324
+ onClick: l[1] || (l[1] = (s) => e(ve)(e(A)))
325
+ })
326
+ ]),
327
+ _: 1
328
+ }, 8, ["model-value", "label", "helper-text", "placeholder"]),
329
+ c(Me, {
330
+ label: "Cover image",
331
+ class: "w-2/3 xs:w-full",
332
+ "image-fit": "cover",
333
+ "aspect-ratio": "3/1",
334
+ thumbnail: e(n).image || void 0,
335
+ "onUpdate:file": l[3] || (l[3] = async (s) => {
336
+ _.value = s, s || (e(n).image = null);
337
+ })
338
+ }, null, 8, ["thumbnail"]),
339
+ t("div", dt, [
340
+ t("div", mt, i(e(o)("connect.setting.counterApp.title")), 1),
341
+ c($, {
342
+ variant: "plain",
343
+ icon: "link",
344
+ label: e(o)("connect.setting.counterApp.linkDevice"),
345
+ onClick: ye
346
+ }, null, 8, ["label"]),
347
+ (f(!0), C(T, null, G(e(m).locationDevices, (s, w) => (f(), B(q, {
348
+ key: w,
349
+ variant: "outlined",
350
+ class: "flex items-center justify-between px-16 py-12"
351
+ }, {
352
+ default: P(() => [
353
+ t("div", null, [
354
+ t("p", ut, i(s.name || `Device ${s._id}`), 1),
355
+ t("p", pt, i(e(o)("connect.setting.counterApp.device.activationDate")) + " " + i(e(Fe)(e(qe)(s._id.toString())).format(
356
+ "D MMM YYYY"
357
+ )), 1),
358
+ t("p", ft, i(e(o)("connect.setting.counterApp.device.linkedLocation")) + " " + i(e(m).locations.find((M) => M._id == s.location).name), 1)
359
+ ]),
360
+ c($, {
361
+ icon: "link_off",
362
+ variant: "tertiary",
363
+ onClick: (M) => he(s._id)
364
+ }, null, 8, ["onClick"])
365
+ ]),
366
+ _: 2
367
+ }, 1024))), 128))
368
+ ]),
369
+ t("div", vt, [
370
+ t("div", gt, [
371
+ E(i(e(o)("connect.setting.advertisement.title")) + " ", 1),
372
+ c(te, { variant: "premium" })
373
+ ]),
374
+ c(q, {
375
+ variant: "outlined",
376
+ class: "p-16 flex items-center justify-between"
377
+ }, {
378
+ default: P(() => {
379
+ var s;
380
+ return [
381
+ t("div", null, [
382
+ t("div", yt, i(e(o)("connect.setting.advertisement.manageAd")), 1),
383
+ t("div", ht, i(e(o)("connect.setting.advertisement.activeAdsShowing", {
384
+ count: ((s = e(n).advertisements) == null ? void 0 : s.length) ?? 0
385
+ })), 1)
386
+ ]),
387
+ c($, {
388
+ label: e(o)("connect.setting.advertisement.manage"),
389
+ icon: "arrow_forward",
390
+ "icon-position": "right",
391
+ disabled: !e(m).isPremium,
392
+ onClick: l[4] || (l[4] = (w) => e(x).push({
393
+ name: e(Oe)["$connect-SETTING_ADVERTISEMENTS"]
394
+ }))
395
+ }, null, 8, ["label", "disabled"])
396
+ ];
397
+ }),
398
+ _: 1
399
+ })
400
+ ]),
401
+ t("div", bt, [
402
+ l[16] || (l[16] = t("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
403
+ c(H, {
404
+ "model-value": ((oe = e(n)) == null ? void 0 : oe.brand) || "",
405
+ "max-length": 15,
406
+ label: e(o)("connect.setting.sms.brandName"),
407
+ "show-word-count": "",
408
+ "helper-text": e(o)("connect.setting.sms.messageFormat", {
409
+ brand: ((ne = e(n)) == null ? void 0 : ne.brand) || ""
410
+ }),
411
+ "onUpdate:modelValue": l[5] || (l[5] = (s) => e(n).brand = s)
412
+ }, null, 8, ["model-value", "label", "helper-text"]),
413
+ c(Be, {
414
+ modelValue: e(n).welcomeMessage,
415
+ "onUpdate:modelValue": l[6] || (l[6] = (s) => e(n).welcomeMessage = s),
416
+ "hide-credit-card": !0,
417
+ variables: e(I),
418
+ placeholder: e(ee)
419
+ }, null, 8, ["modelValue", "variables", "placeholder"])
420
+ ]),
421
+ t("div", _t, [
422
+ l[17] || (l[17] = t("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
423
+ t("div", wt, i(e(o)("connect.setting.email.description")), 1),
424
+ e(k).length ? O("", !0) : (f(), B($, {
425
+ key: 0,
426
+ onClick: we,
427
+ label: e(o)("connect.setting.email.addNewAddress")
428
+ }, null, 8, ["label"])),
429
+ e(k).length ? (f(), C(T, { key: 1 }, [
430
+ c(xe, {
431
+ "model-value": ((se = (le = e(n)) == null ? void 0 : le.email) == null ? void 0 : se.from) || null,
432
+ label: e(o)("connect.setting.email.fromAddress"),
433
+ items: e(k).map((s) => ({
434
+ label: s.emailAddress,
435
+ value: s.emailAddress
436
+ })),
437
+ placeholder: e(r) ? e(r).emailAddress : e(o)("connect.setting.email.noAddressAvailable"),
438
+ "onUpdate:modelValue": l[7] || (l[7] = (s) => {
439
+ var w, M;
440
+ (w = e(n)) != null && w.email || (e(n).email = {
441
+ from: s,
442
+ name: (M = e(k).find((z) => z.emailAddress == s)) == null ? void 0 : M.name
443
+ }), e(n).email.from = s || null;
444
+ }),
445
+ rules: [e(re).ruleAtPath(e(a), "email.from")]
446
+ }, null, 8, ["model-value", "label", "items", "placeholder", "rules"]),
447
+ c(H, {
448
+ "model-value": ((ie = (ae = e(n)) == null ? void 0 : ae.email) == null ? void 0 : ie.name) || null,
449
+ label: e(o)("connect.setting.email.senderName"),
450
+ disabled: "",
451
+ placeholder: ((ce = e(r)) == null ? void 0 : ce.name) || null,
452
+ "onUpdate:modelValue": l[8] || (l[8] = (s) => {
453
+ var w;
454
+ (w = e(n)) != null && w.email || (e(n).email = {
455
+ name: s
456
+ }), e(n).email.name = s || null;
457
+ }),
458
+ rules: [e(re).ruleAtPath(e(a), "email.name")]
459
+ }, null, 8, ["model-value", "label", "placeholder", "rules"])
460
+ ], 64)) : O("", !0)
461
+ ]),
462
+ t("div", Ct, [
463
+ t("div", xt, i(e(o)("connect.setting.whatsapp.title")), 1),
464
+ t("div", kt, i(e(o)("connect.setting.whatsapp.description")), 1),
465
+ c($, {
466
+ label: e(o)("connect.setting.whatsapp.manageChannel"),
467
+ icon: "open_in_new",
468
+ onClick: l[9] || (l[9] = (s) => Ce())
469
+ }, null, 8, ["label"])
470
+ ]),
471
+ t("div", Vt, [
472
+ t("div", Ut, [
473
+ E(i(e(o)("connect.setting.freeCredit.title")) + " ", 1),
474
+ t("span", Ft, i(e(o)("connect.setting.freeCredit.posVersion")), 1)
475
+ ]),
476
+ c(X, {
477
+ "model-value": e(n).freeCreditAsDiscount ?? !1,
478
+ "onUpdate:modelValue": l[10] || (l[10] = (s) => e(n).freeCreditAsDiscount = s),
479
+ label: e(o)("connect.setting.freeCredit.title"),
480
+ sublabel: e(o)("connect.setting.freeCredit.description"),
481
+ "label-placement": "right",
482
+ value: ""
483
+ }, null, 8, ["model-value", "label", "sublabel"])
484
+ ]),
485
+ t("div", At, [
486
+ t("div", Pt, [
487
+ E(i(e(o)("connect.setting.memberCard.title")) + " ", 1),
488
+ c(te, { variant: "premium" })
489
+ ]),
490
+ c(X, {
491
+ "model-value": e(n).cardEnable ?? !1,
492
+ "onUpdate:modelValue": l[11] || (l[11] = (s) => e(n).cardEnable = s),
493
+ label: "",
494
+ sublabel: e(o)("connect.setting.memberCard.description"),
495
+ "label-placement": "right",
496
+ value: "",
497
+ disabled: !e(m).isPremium
498
+ }, null, 8, ["model-value", "sublabel", "disabled"])
499
+ ]),
500
+ e(g)() === "on" ? (f(), C("div", St, [
501
+ l[18] || (l[18] = t("div", { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, " Auto Revert Reward ", -1)),
502
+ c(X, {
503
+ "model-value": e(n).autoRevertReward ?? !1,
504
+ "onUpdate:modelValue": l[12] || (l[12] = (s) => e(n).autoRevertReward = s),
505
+ label: "",
506
+ sublabel: "When enabled, rewards are automatically reverted when a refund is processed in POS",
507
+ "label-placement": "right",
508
+ value: ""
509
+ }, null, 8, ["model-value"])
510
+ ])) : O("", !0),
511
+ t("div", $t, [
512
+ t("div", Mt, i(e(o)("connect.setting.location.title")), 1),
513
+ c(Ee, {
514
+ label: e(o)("connect.setting.location.selectLabel"),
515
+ "model-value": e(n).targetLocation ?? null,
516
+ "onUpdate:modelValue": l[13] || (l[13] = (s) => e(n).targetLocation = s)
517
+ }, null, 8, ["label", "model-value"])
518
+ ]),
519
+ t("div", Lt, [
520
+ t("div", Dt, i(e(o)("connect.setting.allowedPhoneCountries.title")), 1),
521
+ t("div", Rt, i(e(o)("connect.setting.allowedPhoneCountries.description")), 1),
522
+ c(nt, {
523
+ modelValue: e(n).allowedPhoneCountries,
524
+ "onUpdate:modelValue": l[14] || (l[14] = (s) => e(n).allowedPhoneCountries = s)
525
+ }, null, 8, ["modelValue"])
526
+ ]),
527
+ t("div", It, [
528
+ c($, {
529
+ label: e(o)("connect.setting.action.update"),
530
+ type: "button",
531
+ onClick: be,
532
+ disabled: !!e(y).loadingQueue.length,
533
+ loading: !!e(y).loadingQueue.length
534
+ }, null, 8, ["label", "disabled", "loading"])
535
+ ])
536
+ ])
537
+ ]),
538
+ t("div", Et, [
539
+ c(q, {
540
+ variant: "outlined",
541
+ class: "flex flex-col p-24 gap-8"
542
+ }, {
543
+ default: P(() => {
544
+ var s, w, M;
545
+ return [
546
+ t("div", Tt, i(e(o)("connect.setting.summary.title")), 1),
547
+ c(ke, { class: "my-4" }),
548
+ t("div", null, [
549
+ t("div", Bt, i(e(o)("connect.setting.summary.name")), 1),
550
+ t("div", Nt, i(e(n).name), 1)
551
+ ]),
552
+ t("div", null, [
553
+ t("div", Ht, i(e(o)("connect.setting.summary.advertisement")), 1),
554
+ t("div", Ot, i((((s = e(n).advertisements) == null ? void 0 : s.length) ?? 0) || e(o)("connect.setting.summary.noAds")), 1)
555
+ ]),
556
+ t("div", null, [
557
+ t("div", jt, i(e(o)("connect.setting.summary.freeCredit")), 1),
558
+ t("div", qt, i(e(n).freeCreditAsDiscount ? e(o)("connect.setting.summary.enabled") : e(o)("connect.setting.summary.disabled")), 1)
559
+ ]),
560
+ t("div", null, [
561
+ t("div", Xt, i(e(o)("connect.setting.summary.locations")), 1),
562
+ t("div", zt, i(!e(n).targetLocation || e(n).targetLocation.length == e(K)().locations.length ? e(o)("connect.setting.summary.allLocations") : (M = (w = e(n)) == null ? void 0 : w.targetLocation) == null ? void 0 : M.map(
563
+ (z) => e(m).locations.find((Ve) => Ve._id == z).name
564
+ ).join(", ")), 1)
565
+ ])
566
+ ];
567
+ }),
568
+ _: 1
569
+ })
570
+ ])
571
+ ])) : O("", !0)
572
+ ], 64);
573
+ };
574
+ }
575
+ });
576
+ export {
577
+ ho as default
578
+ };
@@ -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-B-xDCOdo.js";
2
+ import { u as te } from "./loading-Cb4RgEo7.js";
3
3
  import { u as ne } from "./app-wDQR6dpb.js";
4
- import { u as se } from "./business-DbDh-BxN.js";
5
- import { u as oe } from "./membership-B8KWhxBD.js";
6
- import "./index-BUDFQtMG.js";
7
- import { b as ae } from "./index-CONIxgEK.js";
8
- import "./index-BXXLVdgj.js";
9
- import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-BZH5In2V.js";
10
- import { f as D, p as ie } from "./plugins-D_LhWxFb.js";
11
- import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CjBucvpJ.js";
12
- import { u as ce } from "./vue-i18n-h2H0nxj-.js";
4
+ import { u as se } from "./business-D0I7G-5H.js";
5
+ import { u as oe } from "./membership-yvDb2HS8.js";
6
+ import "./index-D3B392A3.js";
7
+ import { b as ae } from "./index-DL_UYO4J.js";
8
+ import "./index-RMsQnHez.js";
9
+ import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-_rlsNocb.js";
10
+ import { f as D, p as ie } from "./plugins-CvhBJQEK.js";
11
+ import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang--Ii9ejFG.js";
12
+ import { u as ce } from "./vue-i18n-D8wuxuA4.js";
13
13
  import { useRouter as de } from "vue-router";
14
- import { m as me } from "./index-COAgKj0v.js";
15
- import { R as ue } from "./app-gGao9t7Z.js";
14
+ import { m as me } from "./index-ZTC5k9Jb.js";
15
+ import { R as ue } from "./app-4x06ItoL.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,