@feedmepos/mf-connect 0.1.0-beta.47 → 0.1.0-beta.48

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 (87) hide show
  1. package/dist/{Analytic-lSdhbAE5.js → Analytic-BiWBlCjy.js} +18 -17
  2. package/dist/{App-5yWxPSqa.js → App-D0EdXXhP.js} +10 -6
  3. package/dist/AuditLogs-B2Nld9Po.js +1856 -0
  4. package/dist/{Broadcast-BkDCNB93.js → Broadcast-D4PumMOO.js} +36 -35
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-2l4qBEIr.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D5IhdwKy.js} +6 -6
  6. package/dist/{Card-CKh6sC-j.js → Card-B8r77l_c.js} +23 -21
  7. package/dist/{Collections-D81rKHHA.js → Collections-DkNX0ENB.js} +11 -9
  8. package/dist/{Credit-Swf1Bccg.js → Credit-us-DaVK_.js} +11 -10
  9. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-CLFeMi0j.js +169 -0
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CFGREAre.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DuE9a4wa.js} +28 -27
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DN186Ykx.js → EffectSheet.vue_vue_type_style_index_0_lang-DSPI2sPl.js} +6 -6
  12. package/dist/{Experience-DoAwLHvr.js → Experience-B5xBVt9X.js} +26 -25
  13. package/dist/{Game-B4-8bZaf.js → Game-DZQngWps.js} +14 -13
  14. package/dist/{Index-O-qPz_45.js → Index-D6G1bPFk.js} +14 -13
  15. package/dist/{Marketing-A8TyRzoX.js → Marketing-BgVsJdkB.js} +8 -7
  16. package/dist/{Member-C9uQuhVr.js → Member-Cm0Dh1__.js} +4 -4
  17. package/dist/{MemberList--aWor7_G.js → MemberList--liSD7XA.js} +42 -40
  18. package/dist/{MemberTransactions-C-01Qdmx.js → MemberTransactions-BBbIbY5M.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Cdx1rPtp.js → MessageInput.vue_vue_type_script_setup_true_lang-B41VEr7k.js} +2 -2
  20. package/dist/{Mission-Ln1_nTS2.js → Mission-BjwPhMvr.js} +14 -13
  21. package/dist/{Overview-BJlPQi5S.js → Overview-ChHHbxMZ.js} +19 -18
  22. package/dist/{Point-wi6j4ns_.js → Point-DJOghScx.js} +11 -10
  23. package/dist/{Promotion-hahMm7v9.js → Promotion-CfaXu_lI.js} +16 -15
  24. package/dist/{Record-BO7qqPQP.js → Record-Jgfc7mJg.js} +18 -16
  25. package/dist/{Reward-DQhrs6So.js → Reward-AOM8CBLj.js} +33 -32
  26. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-a7CjUVso.js → RewardGroup.vue_vue_type_script_setup_true_lang-C8FwIGwQ.js} +13 -12
  27. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CIkop4iY.js → RuleGroup.vue_vue_type_script_setup_true_lang-BKZdKB1T.js} +12 -12
  28. package/dist/{Segment-Cdi_lkEd.js → Segment-duLNRLE3.js} +19 -17
  29. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DIpnyCH_.js → SelectItems.vue_vue_type_script_setup_true_lang-DjdIb54T.js} +2 -2
  30. package/dist/{Setting-CEmkP1ak.js → Setting-O8ZQpi95.js} +131 -130
  31. package/dist/{Store-BXcCorEJ.js → Store-Dhec11BC.js} +24 -23
  32. package/dist/{StoreRewards-C6s4S1bR.js → StoreRewards-B4wePYvY.js} +33 -32
  33. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DbD2wugh.js +939 -0
  34. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-9XLezVlo.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BNUxrEoR.js} +1 -1
  35. package/dist/{Tier-ymDmSa8e.js → Tier-DZpvxsfn.js} +21 -20
  36. package/dist/{Title-DyT8EwGd.js → Title-3QqFZn_-.js} +28 -27
  37. package/dist/{Transaction-BqfYCKHC.js → Transaction-B5iZ4MUu.js} +2 -2
  38. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-D8OzqKdh.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CQQ5HcAZ.js} +6 -6
  39. package/dist/{Voucher-B4H6izT-.js → Voucher-B-q9fB-f.js} +14 -13
  40. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BzUCl5A0.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DL0eVHb3.js} +10 -10
  41. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Qyn1rKwq.js → ZodTextField.vue_vue_type_script_setup_true_lang-Deg2sdGO.js} +1 -1
  42. package/dist/{app-fgJef1gk.js → app-3eroteiC.js} +1 -1
  43. package/dist/{app-DFhKMlXT.js → app-BCsc9J-D.js} +121 -57
  44. package/dist/app.js +1 -1
  45. package/dist/{business-CWVg8oTw.js → business-Cp6db6DR.js} +1 -1
  46. package/dist/{campaign-DqE4D_Ie.js → campaign-BOGJy7S9.js} +2 -2
  47. package/dist/{campaign-CXx39lOY.js → campaign-D2yrg-Er.js} +9 -9
  48. package/dist/{campaign.enum-BhHy5QqC.js → campaign.enum-CwF2Ajv3.js} +1 -1
  49. package/dist/{campaign.fn-DpRMdaoZ.js → campaign.fn-Bp-ZzEJT.js} +22 -22
  50. package/dist/{collectible.enum-CsAoXB-o.js → collectible.enum-B-71aP1r.js} +1 -1
  51. package/dist/{collection.fn-BgfqVgLc.js → collection.fn-DjSa_nTr.js} +2 -2
  52. package/dist/{dto-CbOlUDXO.js → dto-LDNtfFmE.js} +4 -4
  53. package/dist/{effect-DVzBcdAh.js → effect-BmYqIMsW.js} +1 -1
  54. package/dist/{email-addresses-D7cuPyCu.js → email-addresses-Di8hCXyI.js} +1 -1
  55. package/dist/{export-fqAmDRzH.js → export-DycH87nL.js} +3 -3
  56. package/dist/{helper-Cr9hVBrL.js → helper-DFhx_pcj.js} +1 -1
  57. package/dist/{index-CoGSXqP_.js → index-BCbMOBB8.js} +101 -56
  58. package/dist/{index-CLeEuF1Q.js → index-CpKBy2gq.js} +1 -1
  59. package/dist/{index-c-mT7CUc.js → index-D0RI_RQG.js} +1 -1
  60. package/dist/{index-zaKL-M_1.js → index-DHA2afdR.js} +1 -1
  61. package/dist/{index-BrZ9oOl8.js → index-D_JGs1_m.js} +1 -1
  62. package/dist/{index-Lrwmot9Q.js → index-DmF2UyFL.js} +1 -1
  63. package/dist/{index-1fDhAPmJ.js → index-Dvwi4GLz.js} +2 -2
  64. package/dist/{index-iHW9prE9.js → index-Dw6vcUmt.js} +1 -1
  65. package/dist/{index-CLKiPqHH.js → index-EjX7PzTR.js} +3 -3
  66. package/dist/{index-BpqE7ONp.js → index-JDxeUUHy.js} +5 -5
  67. package/dist/{index-BYziLSU1.js → index-gsJpOkBA.js} +1 -1
  68. package/dist/{index-B-VO7A5g.js → index-zGjFnt2i.js} +4 -4
  69. package/dist/{index.esm2017-CZ5oluks.js → index.esm2017-Bx1gO_wH.js} +33 -33
  70. package/dist/loading-CkL5IkHw.js +100 -0
  71. package/dist/{membership-D9qRdNxE.js → membership-Bsr6Cvle.js} +3 -3
  72. package/dist/{money-B-nNBD6W.js → money-DUBsxwt7.js} +1 -1
  73. package/dist/{number--UNR-Ea-.js → number-D7RIsT0N.js} +1 -1
  74. package/dist/objectid-B-fcFN1Q.js +145 -0
  75. package/dist/{loading-D84WknQA.js → plugins-Dr9LdRza.js} +3764 -3860
  76. package/dist/{reward-tqNSZbg2.js → reward-BkXDV7ND.js} +1 -1
  77. package/dist/{rule-tJ5_2tKg.js → rule-Bq8z_m5L.js} +3 -3
  78. package/dist/{rule-builder-djwiKBYX.js → rule-builder-BpUdiP64.js} +1 -1
  79. package/dist/{template-DrDV1Aex.js → template-CKiPP35H.js} +4 -4
  80. package/dist/{trigger-ChRRXEa5.js → trigger-DCJmo6Nw.js} +4 -4
  81. package/dist/usePagination-BeF5K3M7.js +223 -0
  82. package/dist/{user-CwS7aiK5.js → user-CjCy_BYx.js} +1 -1
  83. package/dist/{vue-i18n-BLCr04dZ.js → vue-i18n-36uLpBY2.js} +291 -291
  84. package/dist/{usePagination--wzkJiPp.js → xlsx-C7gDU4gE.js} +2962 -3183
  85. package/package.json +2 -1
  86. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-e2Phr4sy.js +0 -1099
  87. package/dist/objectid-DJNlN9do.js +0 -145
@@ -1,18 +1,19 @@
1
- import { defineComponent as qe, ref as z, computed as ce, onMounted as Ge, resolveComponent as D, openBlock as x, createBlock as ue, withCtx as W, createElementVNode as b, createVNode as I, unref as u, isRef as Qe, createElementBlock as Y, Fragment as ie, toDisplayString as V, createTextVNode as Z, renderList as $e, createCommentVNode as se } from "vue";
1
+ import { defineComponent as qe, ref as z, computed as ue, onMounted as Ge, resolveComponent as D, openBlock as x, createBlock as ce, withCtx as W, createElementVNode as b, createVNode as I, unref as c, isRef as Qe, createElementBlock as Y, Fragment as ie, toDisplayString as V, createTextVNode as Z, renderList as $e, createCommentVNode as se } from "vue";
2
2
  import { h as bt } from "./moment-BWErdI6_.js";
3
3
  import { Z as ze } from "./zod-Bg2FbC-D.js";
4
4
  import { useDialog as Xe } from "@feedmepos/ui-library";
5
- import { a as Ze, u as vt, p as Ct, f as j } from "./loading-D84WknQA.js";
6
- import { u as Et } from "./app-wDQR6dpb.js";
7
- import { u as Ae, l as We } from "./business-CWVg8oTw.js";
8
- import { u as et } from "./membership-D9qRdNxE.js";
9
- import { D as At, p as Bt } from "./index-B-VO7A5g.js";
5
+ import { u as vt } from "./loading-CkL5IkHw.js";
6
+ import { u as Ct } from "./app-wDQR6dpb.js";
7
+ import { u as Ae, l as Ze } from "./business-Cp6db6DR.js";
8
+ import { u as We } from "./membership-Bsr6Cvle.js";
9
+ import { c as et, p as Et, f as j } from "./plugins-Dr9LdRza.js";
10
+ import { D as At, p as Bt } from "./index-zGjFnt2i.js";
10
11
  import { _ as He } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
11
- import { _ as _t } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-9XLezVlo.js";
12
- import { _ as Mt } from "./MessageInput.vue_vue_type_script_setup_true_lang-Cdx1rPtp.js";
13
- import { u as St } from "./vue-i18n-BLCr04dZ.js";
14
- import { m as Ke } from "./index-c-mT7CUc.js";
15
- import { S as It } from "./index-CLKiPqHH.js";
12
+ import { _ as _t } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-BNUxrEoR.js";
13
+ import { _ as Mt } from "./MessageInput.vue_vue_type_script_setup_true_lang-B41VEr7k.js";
14
+ import { u as St } from "./vue-i18n-36uLpBY2.js";
15
+ import { m as Ke } from "./index-D0RI_RQG.js";
16
+ import { S as It } from "./index-EjX7PzTR.js";
16
17
  import { o as Pt } from "./objectId-dwaoBfJX.js";
17
18
  import { a as Tt } from "./object-qECH92oz.js";
18
19
  var ne = {}, Nt = function() {
@@ -713,7 +714,7 @@ Te.isValid = function(e) {
713
714
  return !isNaN(e) && e >= 1 && e <= 40;
714
715
  };
715
716
  var $ = {};
716
- const ut = "[0-9]+", kt = "[A-Z $%*+\\-./:]+";
717
+ const ct = "[0-9]+", kt = "[A-Z $%*+\\-./:]+";
717
718
  let te = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
718
719
  te = te.replace(/u/g, "\\u");
719
720
  const Vt = "(?:(?![A-Z0-9 $%*+\\-./:]|" + te + `)(?:.|[\r
@@ -721,9 +722,9 @@ const Vt = "(?:(?![A-Z0-9 $%*+\\-./:]|" + te + `)(?:.|[\r
721
722
  $.KANJI = new RegExp(te, "g");
722
723
  $.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
723
724
  $.BYTE = new RegExp(Vt, "g");
724
- $.NUMERIC = new RegExp(ut, "g");
725
+ $.NUMERIC = new RegExp(ct, "g");
725
726
  $.ALPHANUMERIC = new RegExp(kt, "g");
726
- const xt = new RegExp("^" + te + "$"), $t = new RegExp("^" + ut + "$"), zt = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
727
+ const xt = new RegExp("^" + te + "$"), $t = new RegExp("^" + ct + "$"), zt = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
727
728
  $.testKanji = function(e) {
728
729
  return xt.test(e);
729
730
  };
@@ -855,9 +856,9 @@ $.testAlphanumeric = function(e) {
855
856
  return d << 12 | v;
856
857
  };
857
858
  })(at);
858
- var ct = {};
859
+ var ut = {};
859
860
  const Be = F, dt = 1335, Ht = 21522, Ye = Be.getBCHDigit(dt);
860
- ct.getEncodedBits = function(e, i) {
861
+ ut.getEncodedBits = function(e, i) {
861
862
  const r = e.bit << 3 | i;
862
863
  let o = r << 10;
863
864
  for (; Be.getBCHDigit(o) - Ye >= 0; )
@@ -1179,8 +1180,8 @@ var en = mt.exports;
1179
1180
  let _ = ["start"];
1180
1181
  for (let S = 0; S < p.length; S++) {
1181
1182
  const P = p[S], A = [];
1182
- for (let c = 0; c < P.length; c++) {
1183
- const U = P[c], L = "" + S + c;
1183
+ for (let u = 0; u < P.length; u++) {
1184
+ const U = P[u], L = "" + S + u;
1184
1185
  A.push(L), w[L] = { node: U, lastCount: 0 }, y[L] = {};
1185
1186
  for (let R = 0; R < _.length; R++) {
1186
1187
  const N = _[R];
@@ -1216,8 +1217,8 @@ var en = mt.exports;
1216
1217
  }, []);
1217
1218
  }, t.fromString = function(h, w) {
1218
1219
  const y = B(h, s.isKanjiModeEnabled()), _ = v(y), S = C(_, w), P = a.find_path(S.map, "start", "end"), A = [];
1219
- for (let c = 1; c < P.length - 1; c++)
1220
- A.push(S.table[P[c]].node);
1220
+ for (let u = 1; u < P.length - 1; u++)
1221
+ A.push(S.table[P[u]].node);
1221
1222
  return t.fromArray(d(A));
1222
1223
  }, t.rawSplit = function(h) {
1223
1224
  return t.fromArray(
@@ -1225,8 +1226,8 @@ var en = mt.exports;
1225
1226
  );
1226
1227
  };
1227
1228
  })(ft);
1228
- const pe = F, be = me, tn = Lt, nn = Ft, on = ot, rn = rt, _e = it, Me = ge, sn = Dt, fe = at, ln = ct, an = K, ve = ft;
1229
- function un(t, e) {
1229
+ const pe = F, be = me, tn = Lt, nn = Ft, on = ot, rn = rt, _e = it, Me = ge, sn = Dt, fe = at, ln = ut, an = K, ve = ft;
1230
+ function cn(t, e) {
1230
1231
  const i = t.size, r = rn.getPositions(e);
1231
1232
  for (let o = 0; o < r.length; o++) {
1232
1233
  const n = r[o][0], l = r[o][1];
@@ -1236,7 +1237,7 @@ function un(t, e) {
1236
1237
  l + a <= -1 || i <= l + a || (s >= 0 && s <= 6 && (a === 0 || a === 6) || a >= 0 && a <= 6 && (s === 0 || s === 6) || s >= 2 && s <= 4 && a >= 2 && a <= 4 ? t.set(n + s, l + a, !0, !0) : t.set(n + s, l + a, !1, !0));
1237
1238
  }
1238
1239
  }
1239
- function cn(t) {
1240
+ function un(t) {
1240
1241
  const e = t.size;
1241
1242
  for (let i = 8; i < e - 8; i++) {
1242
1243
  const r = i % 2 === 0;
@@ -1340,7 +1341,7 @@ Minimum version required to store current data is: ` + n + `.
1340
1341
  `
1341
1342
  );
1342
1343
  const l = gn(e, i, o), s = pe.getSymbolSize(e), a = new nn(s);
1343
- return un(a, e), cn(a), dn(a, e), Ce(a, i, 0), e >= 7 && fn(a, e), mn(a, l), isNaN(r) && (r = _e.getBestMask(
1344
+ return cn(a, e), un(a), dn(a, e), Ce(a, i, 0), e >= 7 && fn(a, e), mn(a, l), isNaN(r) && (r = _e.getBestMask(
1344
1345
  a,
1345
1346
  Ce.bind(null, a, i)
1346
1347
  )), _e.applyMask(r, a), Ce(a, i, r), {
@@ -1504,12 +1505,12 @@ var En = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "ht
1504
1505
  const An = { class: "flex items-start" }, Bn = { class: "flex flex-col gap-16 mt-16" }, _n = ["src"], Mn = /* @__PURE__ */ qe({
1505
1506
  __name: "LinkDeviceDialog",
1506
1507
  setup(t) {
1507
- const e = Ae(), i = et(), r = Xe(), o = z(), n = z(), l = En.crmUrl, s = z(), a = ce(() => i.membership), f = ce(() => {
1508
+ const e = Ae(), i = We(), r = Xe(), o = z(), n = z(), l = En.crmUrl, s = z(), a = ue(() => i.membership), f = ue(() => {
1508
1509
  var g, d;
1509
1510
  return `https://${(g = a.value) != null && g.url ? a.value.url : (d = a.value) == null ? void 0 : d.business}.${l}`;
1510
1511
  });
1511
1512
  async function m(g) {
1512
- const d = await We.getOtp(g);
1513
+ const d = await Ze.getOtp(g);
1513
1514
  return `${f.value}?link-device=${d.otp}`;
1514
1515
  }
1515
1516
  async function B(g) {
@@ -1525,7 +1526,7 @@ const An = { class: "flex items-start" }, Bn = { class: "flex flex-col gap-16 mt
1525
1526
  n.value = g, await B(g);
1526
1527
  }), (g, d) => {
1527
1528
  const v = D("FmIcon"), C = D("FmSelect"), M = D("FmButton"), p = D("FmCard");
1528
- return x(), ue(p, { class: "p-24 max-w-[350px]" }, {
1529
+ return x(), ce(p, { class: "p-24 max-w-[350px]" }, {
1529
1530
  default: W(() => [
1530
1531
  b("div", An, [
1531
1532
  d[3] || (d[3] = b("div", null, [
@@ -1534,29 +1535,29 @@ const An = { class: "flex items-start" }, Bn = { class: "flex flex-col gap-16 mt
1534
1535
  ], -1)),
1535
1536
  I(v, {
1536
1537
  name: "close",
1537
- onClick: d[0] || (d[0] = (h) => u(r).close()),
1538
+ onClick: d[0] || (d[0] = (h) => c(r).close()),
1538
1539
  class: "cursor-pointer"
1539
1540
  })
1540
1541
  ]),
1541
1542
  b("div", Bn, [
1542
1543
  I(C, {
1543
- modelValue: u(n),
1544
+ modelValue: c(n),
1544
1545
  "onUpdate:modelValue": [
1545
1546
  d[1] || (d[1] = (h) => Qe(n) ? n.value = h : null),
1546
1547
  B
1547
1548
  ],
1548
1549
  label: "Select Location",
1549
- items: u(e).locationItems.filter((h) => !!h.value)
1550
+ items: c(e).locationItems.filter((h) => !!h.value)
1550
1551
  }, null, 8, ["modelValue", "items"]),
1551
1552
  b("img", {
1552
- src: u(o),
1553
+ src: c(o),
1553
1554
  class: "aspect-square w-full"
1554
1555
  }, null, 8, _n),
1555
1556
  I(M, {
1556
1557
  class: "mx-auto",
1557
1558
  variant: "plain",
1558
1559
  icon: "content_copy",
1559
- onClick: d[2] || (d[2] = (h) => u(Ze)(u(s)))
1560
+ onClick: d[2] || (d[2] = (h) => c(et)(c(s)))
1560
1561
  })
1561
1562
  ])
1562
1563
  ]),
@@ -1569,18 +1570,18 @@ var Je = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "ht
1569
1570
  const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, In = { class: "fm-typo-en-title-md-800" }, Pn = {
1570
1571
  key: 0,
1571
1572
  class: "px-24 gap-32 grid grid-cols-3 xs:pt-16"
1572
- }, Tn = { class: "col-span-2 flex flex-col xs:col-span-3" }, Nn = { class: "fm-typo-en-title-sm-800" }, Un = { class: "space-y-24" }, Ln = { class: "space-y-8" }, Fn = { class: "fm-typo-en-title-sm-800" }, Rn = { class: "fm-typo-body-lg-400" }, Dn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, kn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Vn = { class: "space-y-8" }, xn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, $n = { class: "space-y-8" }, zn = { class: "space-y-8" }, Hn = { class: "space-y-8" }, Kn = { class: "space-y-8" }, On = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Yn = { class: "space-y-8" }, jn = { class: "flex justify-end pb-24" }, Jn = { class: "col-span-1 space-y-8 xs:hidden" }, qn = { class: "fm-typo-en-body-lg-600" }, Gn = { class: "fm-typo-en-body-lg-600" }, Qn = { class: "fm-typo-en-body-lg-600" }, Xn = { class: "fm-typo-en-body-lg-600" }, po = /* @__PURE__ */ qe({
1573
+ }, Tn = { class: "col-span-2 flex flex-col xs:col-span-3" }, Nn = { class: "fm-typo-en-title-sm-800" }, Un = { class: "space-y-24" }, Ln = { class: "space-y-8" }, Fn = { class: "fm-typo-en-title-sm-800" }, Rn = { class: "fm-typo-body-lg-400" }, Dn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, kn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Vn = { class: "space-y-8" }, xn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, $n = { class: "space-y-8" }, zn = { class: "space-y-8" }, Hn = { class: "space-y-8" }, Kn = { class: "space-y-8" }, On = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Yn = { class: "space-y-8" }, jn = { class: "flex justify-end pb-24" }, Jn = { class: "col-span-1 space-y-8 xs:hidden" }, qn = { class: "fm-typo-en-body-lg-600" }, Gn = { class: "fm-typo-en-body-lg-600" }, Qn = { class: "fm-typo-en-body-lg-600" }, Xn = { class: "fm-typo-en-body-lg-600" }, yo = /* @__PURE__ */ qe({
1573
1574
  __name: "Setting",
1574
1575
  setup(t) {
1575
- const e = Et(), i = Ae(), r = et(), { global: o, minor: n } = vt, l = Xe(), s = z(), a = z(!1), f = z([]), m = z(null), B = At, g = [
1576
+ const e = Ct(), i = Ae(), r = We(), { global: o, minor: n } = vt, l = Xe(), s = z(), a = z(!1), f = z([]), m = z(null), B = At, g = [
1576
1577
  (A) => !A || A.length >= 6 || "Invalid URL format, please enter at least 6 characters",
1577
1578
  (A) => !A || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(A) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
1578
- ], d = Je.appUrl, v = ce(() => {
1579
+ ], d = Je.appUrl, v = ue(() => {
1579
1580
  var A;
1580
1581
  return `https://${(A = s.value) == null ? void 0 : A.business}.${d}`;
1581
- }), C = z(), M = z([]), p = ce(() => {
1582
- var A, c;
1583
- return Math.min((((c = (A = s.value) == null ? void 0 : A.advertisements) == null ? void 0 : c.length) ?? 0) + 1, 5);
1582
+ }), C = z(), M = z([]), p = ue(() => {
1583
+ var A, u;
1584
+ return Math.min((((u = (A = s.value) == null ? void 0 : A.advertisements) == null ? void 0 : u.length) ?? 0) + 1, 5);
1584
1585
  }), { t: h } = St();
1585
1586
  async function w() {
1586
1587
  l.open({
@@ -1590,13 +1591,13 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1590
1591
  });
1591
1592
  }
1592
1593
  async function y(A) {
1593
- await Ct.remove(
1594
+ await Et.remove(
1594
1595
  "Are you sure you want to unlink this device?",
1595
1596
  "Unlink device",
1596
1597
  "Unlink"
1597
1598
  ) && await n(
1598
1599
  async () => {
1599
- await We.unregisterDevice(A), await i.readLocationDevices();
1600
+ await Ze.unregisterDevice(A), await i.readLocationDevices();
1600
1601
  },
1601
1602
  {
1602
1603
  message: "Unlinking device",
@@ -1610,20 +1611,20 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1610
1611
  var U;
1611
1612
  const A = Tt(s.value);
1612
1613
  A.welcomeMessage && !((U = A.welcomeMessage) != null && U.content) && (A.welcomeMessage.content = "Hi there, you have been invited to join our membership");
1613
- const c = Bt.parse(A);
1614
- C.value === null && c.image ? await j.delete(j.coverImagePath()) : C.value && (c.image = await j.update(
1614
+ const u = Bt.parse(A);
1615
+ C.value === null && u.image ? await j.delete(j.coverImagePath()) : C.value && (u.image = await j.update(
1615
1616
  j.coverImagePath(),
1616
1617
  C.value
1617
- )), a.value ? c.advertisements = (await Promise.all(
1618
+ )), a.value ? u.advertisements = (await Promise.all(
1618
1619
  new Array(p.value - 1).fill(null).map(async (L, R) => {
1619
1620
  var X;
1620
1621
  const N = M.value[R];
1621
1622
  return N ? await j.update(
1622
1623
  j.advertisementPath(R, N),
1623
1624
  N
1624
- ) : (X = c.advertisements) == null ? void 0 : X[R];
1625
+ ) : (X = u.advertisements) == null ? void 0 : X[R];
1625
1626
  })
1626
- )).filter((L) => L) : c.advertisements = [], await Ke.update(c), await r.readMembership(), s.value = r.membership;
1627
+ )).filter((L) => L) : u.advertisements = [], await Ke.update(u), await r.readMembership(), s.value = r.membership;
1627
1628
  },
1628
1629
  {
1629
1630
  message: "Updating membership",
@@ -1633,7 +1634,7 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1633
1634
  }
1634
1635
  async function S() {
1635
1636
  const A = await Ke.getEmailAddresses();
1636
- console.log(A), f.value = A, m.value = A.find((c) => c.default.includes("Marketing"));
1637
+ console.log(A), f.value = A, m.value = A.find((u) => u.default.includes("Marketing"));
1637
1638
  }
1638
1639
  async function P() {
1639
1640
  window.open(
@@ -1643,52 +1644,52 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1643
1644
  }
1644
1645
  return Ge(async () => {
1645
1646
  await o(async () => {
1646
- var A, c;
1647
- await i.readPremium(), await i.readLocations(), await i.readLocationDevices(), await r.readMembership(), await S(), s.value = r.membership, a.value = (((A = s.value.advertisements) == null ? void 0 : A.length) ?? 0) > 0, M.value = ((c = s.value.advertisements) == null ? void 0 : c.map(() => null)) ?? [];
1647
+ var A, u;
1648
+ await i.readPremium(), await i.readLocations(), await i.readLocationDevices(), await r.readMembership(), await S(), s.value = r.membership, a.value = (((A = s.value.advertisements) == null ? void 0 : A.length) ?? 0) > 0, M.value = ((u = s.value.advertisements) == null ? void 0 : u.map(() => null)) ?? [];
1648
1649
  });
1649
- }), (A, c) => {
1650
+ }), (A, u) => {
1650
1651
  var Le, Fe, Re, De, ke, Ve, xe;
1651
1652
  const U = D("FmPageHead"), L = D("FmButton"), R = D("FmTextField"), N = D("FmCard"), X = D("FmPill"), ye = D("FmSwitch"), yt = D("FmSelect"), wt = D("FmMenuDivider");
1652
1653
  return x(), Y(ie, null, [
1653
1654
  I(U, {
1654
- title: u(h)("connect.setting.title"),
1655
+ title: c(h)("connect.setting.title"),
1655
1656
  class: "xs:hidden"
1656
1657
  }, null, 8, ["title"]),
1657
1658
  b("div", Sn, [
1658
- b("div", In, V(u(h)("connect.setting.basicInfo.title")), 1),
1659
+ b("div", In, V(c(h)("connect.setting.basicInfo.title")), 1),
1659
1660
  I(L, {
1660
1661
  icon: "info",
1661
1662
  variant: "tertiary"
1662
1663
  })
1663
1664
  ]),
1664
- u(s) ? (x(), Y("div", Pn, [
1665
+ c(s) ? (x(), Y("div", Pn, [
1665
1666
  b("div", Tn, [
1666
- b("div", Nn, V(u(h)("connect.setting.basicInfo.title")), 1),
1667
+ b("div", Nn, V(c(h)("connect.setting.basicInfo.title")), 1),
1667
1668
  b("div", Un, [
1668
1669
  I(R, {
1669
- label: u(h)("connect.setting.basicInfo.membershipTitle"),
1670
- modelValue: u(s).name,
1671
- "onUpdate:modelValue": c[0] || (c[0] = (E) => u(s).name = E)
1670
+ label: c(h)("connect.setting.basicInfo.membershipTitle"),
1671
+ modelValue: c(s).name,
1672
+ "onUpdate:modelValue": u[0] || (u[0] = (E) => c(s).name = E)
1672
1673
  }, null, 8, ["label", "modelValue"]),
1673
1674
  I(R, {
1674
1675
  disabled: !0,
1675
- "model-value": u(s).business,
1676
+ "model-value": c(s).business,
1676
1677
  rules: g,
1677
1678
  required: !0,
1678
- label: u(h)("connect.setting.basicInfo.memberAppUrl"),
1679
- "helper-text": u(v),
1680
- placeholder: u(s).business.toString(),
1681
- "onUpdate:modelValue": c[2] || (c[2] = (E) => u(s).url = E)
1679
+ label: c(h)("connect.setting.basicInfo.memberAppUrl"),
1680
+ "helper-text": c(v),
1681
+ placeholder: c(s).business.toString(),
1682
+ "onUpdate:modelValue": u[2] || (u[2] = (E) => c(s).url = E)
1682
1683
  }, {
1683
- prepend: W(() => c[12] || (c[12] = [
1684
+ prepend: W(() => u[12] || (u[12] = [
1684
1685
  Z(" https:// ")
1685
1686
  ])),
1686
1687
  append: W(() => [
1687
- Z(" ." + V(u(d)) + " ", 1),
1688
+ Z(" ." + V(c(d)) + " ", 1),
1688
1689
  I(L, {
1689
1690
  icon: "content_copy",
1690
1691
  variant: "tertiary",
1691
- onClick: c[1] || (c[1] = (E) => u(Ze)(u(v)))
1692
+ onClick: u[1] || (u[1] = (E) => c(et)(c(v)))
1692
1693
  })
1693
1694
  ]),
1694
1695
  _: 1
@@ -1698,20 +1699,20 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1698
1699
  class: "w-2/3 xs:w-full",
1699
1700
  "image-fit": "cover",
1700
1701
  "aspect-ratio": "3/1",
1701
- thumbnail: u(s).image || void 0,
1702
- "onUpdate:file": c[3] || (c[3] = async (E) => {
1703
- C.value = E, E || (u(s).image = null);
1702
+ thumbnail: c(s).image || void 0,
1703
+ "onUpdate:file": u[3] || (u[3] = async (E) => {
1704
+ C.value = E, E || (c(s).image = null);
1704
1705
  })
1705
1706
  }, null, 8, ["thumbnail"]),
1706
1707
  b("div", Ln, [
1707
- b("div", Fn, V(u(h)("connect.setting.counterApp.title")), 1),
1708
+ b("div", Fn, V(c(h)("connect.setting.counterApp.title")), 1),
1708
1709
  I(L, {
1709
1710
  variant: "plain",
1710
1711
  icon: "link",
1711
- label: u(h)("connect.setting.counterApp.linkDevice"),
1712
+ label: c(h)("connect.setting.counterApp.linkDevice"),
1712
1713
  onClick: w
1713
1714
  }, null, 8, ["label"]),
1714
- (x(!0), Y(ie, null, $e(u(i).locationDevices, (E, T) => (x(), ue(N, {
1715
+ (x(!0), Y(ie, null, $e(c(i).locationDevices, (E, T) => (x(), ce(N, {
1715
1716
  key: T,
1716
1717
  variant: "outlined",
1717
1718
  class: "flex items-center justify-between px-16 py-12"
@@ -1719,10 +1720,10 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1719
1720
  default: W(() => [
1720
1721
  b("div", null, [
1721
1722
  b("p", Rn, V(E.name || `Device ${E._id}`), 1),
1722
- b("p", Dn, " Activation date: " + V(u(bt)(u(Pt)(E._id.toString())).format(
1723
+ b("p", Dn, " Activation date: " + V(c(bt)(c(Pt)(E._id.toString())).format(
1723
1724
  "D MMM YYYY"
1724
1725
  )), 1),
1725
- b("p", kn, " Linked location: " + V(u(i).locations.find((k) => k._id == E.location).name), 1)
1726
+ b("p", kn, " Linked location: " + V(c(i).locations.find((k) => k._id == E.location).name), 1)
1726
1727
  ]),
1727
1728
  I(L, {
1728
1729
  icon: "link_off",
@@ -1735,53 +1736,53 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1735
1736
  ]),
1736
1737
  b("div", Vn, [
1737
1738
  b("div", xn, [
1738
- c[13] || (c[13] = Z(" Advertisement ")),
1739
+ u[13] || (u[13] = Z(" Advertisement ")),
1739
1740
  I(X, { variant: "premium" })
1740
1741
  ]),
1741
1742
  I(ye, {
1742
- modelValue: u(a),
1743
- "onUpdate:modelValue": c[4] || (c[4] = (E) => Qe(a) ? a.value = E : null),
1743
+ modelValue: c(a),
1744
+ "onUpdate:modelValue": u[4] || (u[4] = (E) => Qe(a) ? a.value = E : null),
1744
1745
  label: "Advertisement",
1745
1746
  sublabel: "This will be show on FeedMe ordering app",
1746
1747
  "label-placement": "right",
1747
- disabled: !u(i).isPremium,
1748
+ disabled: !c(i).isPremium,
1748
1749
  value: ""
1749
1750
  }, null, 8, ["modelValue", "disabled"]),
1750
- u(a) ? (x(), Y("div", {
1751
+ c(a) ? (x(), Y("div", {
1751
1752
  class: "flex items-center gap-8 flex-wrap xs:grid xs:grid-cols-2 xs:overflow-x-scroll xs:w-full",
1752
- key: u(p)
1753
+ key: c(p)
1753
1754
  }, [
1754
- (x(!0), Y(ie, null, $e(u(p), (E, T) => {
1755
+ (x(!0), Y(ie, null, $e(c(p), (E, T) => {
1755
1756
  var k, O;
1756
- return x(), ue(He, {
1757
+ return x(), ce(He, {
1757
1758
  class: "w-[200px]",
1758
1759
  "image-fit": "cover",
1759
1760
  label: "",
1760
1761
  "aspect-ratio": "2/3",
1761
- thumbnail: (O = (k = u(s)) == null ? void 0 : k.advertisements) == null ? void 0 : O[T],
1762
+ thumbnail: (O = (k = c(s)) == null ? void 0 : k.advertisements) == null ? void 0 : O[T],
1762
1763
  accept: ".png, .jpg, .jpeg, .mp4, .gif",
1763
1764
  "recommended-size": "Recommended 4:5 ratio / 1080px x 1350px",
1764
- file: u(M)[T] ?? void 0,
1765
+ file: c(M)[T] ?? void 0,
1765
1766
  "onUpdate:file": (re) => {
1766
- u(s).advertisements || (u(s).advertisements = []), re ? (u(s).advertisements[T] = "", u(M)[T] = re) : (u(s).advertisements.splice(T, 1), u(M).splice(T, 1));
1767
+ c(s).advertisements || (c(s).advertisements = []), re ? (c(s).advertisements[T] = "", c(M)[T] = re) : (c(s).advertisements.splice(T, 1), c(M).splice(T, 1));
1767
1768
  }
1768
1769
  }, null, 8, ["thumbnail", "file", "onUpdate:file"]);
1769
1770
  }), 256))
1770
1771
  ])) : se("", !0)
1771
1772
  ]),
1772
1773
  b("div", $n, [
1773
- c[14] || (c[14] = b("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
1774
+ u[14] || (u[14] = b("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
1774
1775
  I(R, {
1775
- "model-value": ((Le = u(s)) == null ? void 0 : Le.brand) || "",
1776
+ "model-value": ((Le = c(s)) == null ? void 0 : Le.brand) || "",
1776
1777
  "max-length": 15,
1777
1778
  label: "Brand Name",
1778
1779
  "show-word-count": "",
1779
- "helper-text": `RM 0 ${((Fe = u(s)) == null ? void 0 : Fe.brand) || ""}: YOUR CUSTOMER MESSAGE`,
1780
- "onUpdate:modelValue": c[5] || (c[5] = (E) => u(s).brand = E)
1780
+ "helper-text": `RM 0 ${((Fe = c(s)) == null ? void 0 : Fe.brand) || ""}: YOUR CUSTOMER MESSAGE`,
1781
+ "onUpdate:modelValue": u[5] || (u[5] = (E) => c(s).brand = E)
1781
1782
  }, null, 8, ["model-value", "helper-text"]),
1782
1783
  I(Mt, {
1783
- modelValue: u(s).welcomeMessage,
1784
- "onUpdate:modelValue": c[6] || (c[6] = (E) => u(s).welcomeMessage = E),
1784
+ modelValue: c(s).welcomeMessage,
1785
+ "onUpdate:modelValue": u[6] || (u[6] = (E) => c(s).welcomeMessage = E),
1785
1786
  variables: [
1786
1787
  "user.name",
1787
1788
  "user.gender",
@@ -1793,54 +1794,54 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1793
1794
  }, null, 8, ["modelValue"])
1794
1795
  ]),
1795
1796
  b("div", zn, [
1796
- c[15] || (c[15] = b("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
1797
- c[16] || (c[16] = b("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Email address that will be used to send email broadcast ", -1)),
1798
- u(f).length ? se("", !0) : (x(), ue(L, {
1797
+ u[15] || (u[15] = b("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
1798
+ u[16] || (u[16] = b("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Email address that will be used to send email broadcast ", -1)),
1799
+ c(f).length ? se("", !0) : (x(), ce(L, {
1799
1800
  key: 0,
1800
1801
  onClick: P,
1801
1802
  label: "Add new email address"
1802
1803
  })),
1803
- u(f).length ? (x(), Y(ie, { key: 1 }, [
1804
+ c(f).length ? (x(), Y(ie, { key: 1 }, [
1804
1805
  I(yt, {
1805
- "model-value": ((De = (Re = u(s)) == null ? void 0 : Re.email) == null ? void 0 : De.from) || null,
1806
+ "model-value": ((De = (Re = c(s)) == null ? void 0 : Re.email) == null ? void 0 : De.from) || null,
1806
1807
  label: "From Address",
1807
- items: u(f).map((E) => ({
1808
+ items: c(f).map((E) => ({
1808
1809
  label: E.emailAddress,
1809
1810
  value: E.emailAddress
1810
1811
  })),
1811
- placeholder: u(m) ? u(m).emailAddress : "No email address available",
1812
- "onUpdate:modelValue": c[7] || (c[7] = (E) => {
1812
+ placeholder: c(m) ? c(m).emailAddress : "No email address available",
1813
+ "onUpdate:modelValue": u[7] || (u[7] = (E) => {
1813
1814
  var T, k;
1814
- (T = u(s)) != null && T.email || (u(s).email = {
1815
+ (T = c(s)) != null && T.email || (c(s).email = {
1815
1816
  from: E,
1816
- name: (k = u(f).find((O) => O.emailAddress == E)) == null ? void 0 : k.name
1817
- }), u(s).email.from = E || null;
1817
+ name: (k = c(f).find((O) => O.emailAddress == E)) == null ? void 0 : k.name
1818
+ }), c(s).email.from = E || null;
1818
1819
  }),
1819
- rules: [u(ze).ruleAtPath(u(B), "email.from")]
1820
+ rules: [c(ze).ruleAtPath(c(B), "email.from")]
1820
1821
  }, null, 8, ["model-value", "items", "placeholder", "rules"]),
1821
1822
  I(R, {
1822
- "model-value": ((Ve = (ke = u(s)) == null ? void 0 : ke.email) == null ? void 0 : Ve.name) || null,
1823
+ "model-value": ((Ve = (ke = c(s)) == null ? void 0 : ke.email) == null ? void 0 : Ve.name) || null,
1823
1824
  label: "Sender name",
1824
1825
  disabled: "",
1825
- placeholder: ((xe = u(m)) == null ? void 0 : xe.name) || null,
1826
- "onUpdate:modelValue": c[8] || (c[8] = (E) => {
1826
+ placeholder: ((xe = c(m)) == null ? void 0 : xe.name) || null,
1827
+ "onUpdate:modelValue": u[8] || (u[8] = (E) => {
1827
1828
  var T;
1828
- (T = u(s)) != null && T.email || (u(s).email = {
1829
+ (T = c(s)) != null && T.email || (c(s).email = {
1829
1830
  name: E
1830
- }), u(s).email.name = E || null;
1831
+ }), c(s).email.name = E || null;
1831
1832
  }),
1832
- rules: [u(ze).ruleAtPath(u(B), "email.name")]
1833
+ rules: [c(ze).ruleAtPath(c(B), "email.name")]
1833
1834
  }, null, 8, ["model-value", "placeholder", "rules"])
1834
1835
  ], 64)) : se("", !0)
1835
1836
  ]),
1836
1837
  b("div", Hn, [
1837
- c[17] || (c[17] = b("div", { class: "fm-typo-en-title-sm-800" }, [
1838
+ u[17] || (u[17] = b("div", { class: "fm-typo-en-title-sm-800" }, [
1838
1839
  Z(" Free Credit as Discount "),
1839
1840
  b("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
1840
1841
  ], -1)),
1841
1842
  I(ye, {
1842
- "model-value": u(s).freeCreditAsDiscount ?? !1,
1843
- "onUpdate:modelValue": c[9] || (c[9] = (E) => u(s).freeCreditAsDiscount = E),
1843
+ "model-value": c(s).freeCreditAsDiscount ?? !1,
1844
+ "onUpdate:modelValue": u[9] || (u[9] = (E) => c(s).freeCreditAsDiscount = E),
1844
1845
  label: "Free Credit as Discount",
1845
1846
  sublabel: "When enabled, this will allow free credit to be used as discount in the bill (POS >=v6.56)",
1846
1847
  "label-placement": "right",
@@ -1849,25 +1850,25 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1849
1850
  ]),
1850
1851
  b("div", Kn, [
1851
1852
  b("div", On, [
1852
- c[18] || (c[18] = Z(" Member Card ")),
1853
+ u[18] || (u[18] = Z(" Member Card ")),
1853
1854
  I(X, { variant: "premium" })
1854
1855
  ]),
1855
1856
  I(ye, {
1856
- "model-value": u(s).cardEnable ?? !1,
1857
- "onUpdate:modelValue": c[10] || (c[10] = (E) => u(s).cardEnable = E),
1857
+ "model-value": c(s).cardEnable ?? !1,
1858
+ "onUpdate:modelValue": u[10] || (u[10] = (E) => c(s).cardEnable = E),
1858
1859
  label: "",
1859
1860
  sublabel: "Allow member to bind card via member app",
1860
1861
  "label-placement": "right",
1861
1862
  value: "",
1862
- disabled: !u(i).isPremium
1863
+ disabled: !c(i).isPremium
1863
1864
  }, null, 8, ["model-value", "disabled"])
1864
1865
  ]),
1865
1866
  b("div", Yn, [
1866
- c[19] || (c[19] = b("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1)),
1867
+ u[19] || (u[19] = b("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1)),
1867
1868
  I(_t, {
1868
1869
  label: "Select restaurant",
1869
- "model-value": u(s).targetLocation ?? null,
1870
- "onUpdate:modelValue": c[11] || (c[11] = (E) => u(s).targetLocation = E)
1870
+ "model-value": c(s).targetLocation ?? null,
1871
+ "onUpdate:modelValue": u[11] || (u[11] = (E) => c(s).targetLocation = E)
1871
1872
  }, null, 8, ["model-value"])
1872
1873
  ]),
1873
1874
  b("div", jn, [
@@ -1875,8 +1876,8 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1875
1876
  label: "Update",
1876
1877
  type: "button",
1877
1878
  onClick: _,
1878
- disabled: !!u(e).loadingQueue.length,
1879
- loading: !!u(e).loadingQueue.length
1879
+ disabled: !!c(e).loadingQueue.length,
1880
+ loading: !!c(e).loadingQueue.length
1880
1881
  }, null, 8, ["disabled", "loading"])
1881
1882
  ])
1882
1883
  ])
@@ -1889,24 +1890,24 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1889
1890
  default: W(() => {
1890
1891
  var E, T, k;
1891
1892
  return [
1892
- c[24] || (c[24] = b("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1)),
1893
+ u[24] || (u[24] = b("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1)),
1893
1894
  I(wt, { class: "my-4" }),
1894
1895
  b("div", null, [
1895
- c[20] || (c[20] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1)),
1896
- b("div", qn, V(u(s).name), 1)
1896
+ u[20] || (u[20] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1)),
1897
+ b("div", qn, V(c(s).name), 1)
1897
1898
  ]),
1898
1899
  b("div", null, [
1899
- c[21] || (c[21] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1)),
1900
- b("div", Gn, V((((E = u(s).advertisements) == null ? void 0 : E.length) ?? 0) || "No advertisments"), 1)
1900
+ u[21] || (u[21] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1)),
1901
+ b("div", Gn, V((((E = c(s).advertisements) == null ? void 0 : E.length) ?? 0) || "No advertisments"), 1)
1901
1902
  ]),
1902
1903
  b("div", null, [
1903
- c[22] || (c[22] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1)),
1904
- b("div", Qn, V(u(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
1904
+ u[22] || (u[22] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1)),
1905
+ b("div", Qn, V(c(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
1905
1906
  ]),
1906
1907
  b("div", null, [
1907
- c[23] || (c[23] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1)),
1908
- b("div", Xn, V(!u(s).targetLocation || u(s).targetLocation.length == u(Ae)().locations.length ? "All locations" : (k = (T = u(s)) == null ? void 0 : T.targetLocation) == null ? void 0 : k.map(
1909
- (O) => u(i).locations.find((re) => re._id == O).name
1908
+ u[23] || (u[23] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1)),
1909
+ b("div", Xn, V(!c(s).targetLocation || c(s).targetLocation.length == c(Ae)().locations.length ? "All locations" : (k = (T = c(s)) == null ? void 0 : T.targetLocation) == null ? void 0 : k.map(
1910
+ (O) => c(i).locations.find((re) => re._id == O).name
1910
1911
  ).join(", ")), 1)
1911
1912
  ])
1912
1913
  ];
@@ -1920,5 +1921,5 @@ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1920
1921
  }
1921
1922
  });
1922
1923
  export {
1923
- po as default
1924
+ yo as default
1924
1925
  };