@feedmepos/mf-connect 0.1.38-beta.2 → 0.1.39-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 (110) hide show
  1. package/dist/Analytic-D8WCDkga.js +427 -0
  2. package/dist/{App-D11A2JY1.js → App-CTnXtg1W.js} +352 -364
  3. package/dist/{Bin-9wV4Ah3M.js → Bin-BY6-bvFj.js} +8 -8
  4. package/dist/{Broadcast-I3BtSk8V.js → Broadcast-5VTEIQAr.js} +40 -40
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-XJqTXbKr.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BuAQxEM4.js} +18 -18
  6. package/dist/{Card-CqALG5RM.js → Card-8ivdV-Qz.js} +159 -159
  7. package/dist/{Collections-rg3SzoUb.js → Collections-CFszRHmE.js} +91 -103
  8. package/dist/{Credit-BNn1sYZv.js → Credit-DFslY__4.js} +74 -74
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-PJ8q72XH.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BvCLYtJ3.js} +488 -489
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Sww7KNle.js → EffectSheet.vue_vue_type_style_index_0_lang-Ci_bp7GH.js} +94 -94
  11. package/dist/{Experience-D_Qm8SUj.js → Experience-BxfiZNlY.js} +41 -41
  12. package/dist/{Game-CKXgXm6Q.js → Game-0FZJcLmj.js} +31 -31
  13. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +144 -0
  14. package/dist/{Index-D4DGfUHd.js → Index-ByeKKbuM.js} +10 -10
  15. package/dist/Marketing-C7F4abzg.js +319 -0
  16. package/dist/{Member-B55vWHDd.js → Member-DP0fLSIV.js} +64 -64
  17. package/dist/MemberList-DFW2bMbr.js +1606 -0
  18. package/dist/MemberOverview-C2n9oJZh.js +58 -0
  19. package/dist/{MemberTransactions-CP5EI-W0.js → MemberTransactions-CW62fvgx.js} +1 -1
  20. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-iJXNbgsB.js +455 -0
  21. package/dist/{Mission-CFvhROuB.js → Mission-DEgQHJw6.js} +21 -21
  22. package/dist/{Overview-4273yNwL.js → Overview-5jDtZKi8.js} +335 -335
  23. package/dist/{Point-B_-_C919.js → Point-D2lB1-xB.js} +41 -41
  24. package/dist/{Promotion-D2S3COxk.js → Promotion-Diz1gIa0.js} +42 -42
  25. package/dist/{Queue-BmS1Oi-C.js → Queue-DIAuq7HG.js} +51 -51
  26. package/dist/{Record-DRBl0M8g.js → Record-T608yda1.js} +9 -9
  27. package/dist/{Reward-8056NmfK.js → Reward-fZzHrHCW.js} +173 -173
  28. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CJ_WC2gV.js → RewardGroup.vue_vue_type_script_setup_true_lang-YOKVfimM.js} +11 -11
  29. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DqNQl_nz.js → RuleGroup.vue_vue_type_script_setup_true_lang-C3_lmBe5.js} +431 -431
  30. package/dist/Segment-DDQIzsrk.js +882 -0
  31. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-4nNkkklE.js → SelectItems.vue_vue_type_script_setup_true_lang-B5oUf91Q.js} +2 -2
  32. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dnf2oxOG.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C2U6Kzvx.js} +11 -11
  33. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLYP-5U9.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BRmqgxES.js} +3 -3
  34. package/dist/{Setting-BrJfYoru.js → Setting-CQNyXmp4.js} +432 -432
  35. package/dist/{Store-Bpl_4yZW.js → Store-CIA1Rtsg.js} +210 -210
  36. package/dist/StoreRewards-D5zlE6cE.js +423 -0
  37. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BkTYngJ_.js +995 -0
  38. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-QucRaI08.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D8l3fQyz.js} +1 -1
  39. package/dist/{Tier-_LnXg3n6.js → Tier-jFXVOje_.js} +106 -106
  40. package/dist/{Title-B7AGStvx.js → Title-DVpZ1YMK.js} +131 -133
  41. package/dist/{Transaction-Chxv6V7u.js → Transaction-BF_wmok6.js} +2 -2
  42. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CzXNmobp.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cex1Z43W.js} +6 -6
  43. package/dist/{Voucher-C5z2kOq9.js → Voucher-CaBMU5w0.js} +37 -37
  44. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-BXt2fLOD.js +419 -0
  45. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BlXzEWA6.js → ZodTextField.vue_vue_type_script_setup_true_lang-CtHjWpUe.js} +1 -1
  46. package/dist/{app-BVojNX0w.js → app-CPhyKlyf.js} +1 -1
  47. package/dist/{app-7cvPyHJ7.js → app-DuIzRGvb.js} +124 -161
  48. package/dist/app.js +3 -4
  49. package/dist/{business-CmxV69wT.js → business-TTvv3aTz.js} +1 -1
  50. package/dist/{campaign-Dq5C_no-.js → campaign-BiMCoAzx.js} +3 -5
  51. package/dist/{campaign-CT_cNJEL.js → campaign-CjEVStN1.js} +9 -9
  52. package/dist/{campaign.enum-dp7yHKzF.js → campaign.enum-DpYmj9jp.js} +1 -1
  53. package/dist/campaign.fn-DJ6J98jS.js +758 -0
  54. package/dist/{collectible.enum-DxbB4DxT.js → collectible.enum-Cgmm_s-C.js} +1 -1
  55. package/dist/{collection.fn-CNZRdUgy.js → collection.fn-BsYCNgfJ.js} +2 -2
  56. package/dist/{dto-CT9zZbv9.js → dto-DgmHIlZ2.js} +4 -4
  57. package/dist/{effect-FIlOEC4H.js → effect-DnAVIDFy.js} +1 -1
  58. package/dist/{email-addresses-Ba7xImfX.js → email-addresses-CMRgb6Uv.js} +1 -1
  59. package/dist/{export-uzjZFNF9.js → export-DtarK6IJ.js} +3 -3
  60. package/dist/{helper-D4sAZde0.js → helper-BKZghMbF.js} +1 -1
  61. package/dist/{index-l2F5MnLF.js → index-2OAcPmuQ.js} +1 -1
  62. package/dist/{index-BI3m1Ehv.js → index-B0YZKHyu.js} +3 -3
  63. package/dist/{index-CH3z92VV.js → index-B5oXFFlO.js} +1 -1
  64. package/dist/{index-CvBcve-r.js → index-BQ3KHJXX.js} +1 -1
  65. package/dist/{index-B9pl4zRZ.js → index-B_893fH7.js} +79 -179
  66. package/dist/{index-CNJLP3D5.js → index-BoR-BOFw.js} +1 -1
  67. package/dist/{index-DNxa8Rqx.js → index-C7rl1eHp.js} +449 -516
  68. package/dist/{index-BXz54M1s.js → index-CBcbwf0k.js} +1 -1
  69. package/dist/{index-CS3Jmojj.js → index-CIztuDE4.js} +2462 -2453
  70. package/dist/{index-D5rvMvzx.js → index-CK67enPK.js} +1 -1
  71. package/dist/index-CuvNtC_M.js +61 -0
  72. package/dist/index-D2uZzjpn.js +44 -0
  73. package/dist/{index-CUfS9Kp1.js → index-DWdAUovq.js} +9 -9
  74. package/dist/{index-CONvJfKv.js → index-DkWcEDHA.js} +1 -1
  75. package/dist/{index-BjU8LVUC.js → index-VHu8hYtE.js} +385 -376
  76. package/dist/{index.esm2017-ATcsD5N4.js → index.esm2017-DkwLmmR_.js} +127 -127
  77. package/dist/{loading-BWGQSrCB.js → loading-BFkEqWR6.js} +1 -1
  78. package/dist/{membership-Cc4OZ8-U.js → membership-D0eN3i_T.js} +3 -3
  79. package/dist/{money-D7p8nfun.js → money-DS9ZQwSP.js} +1 -1
  80. package/dist/{number-CMJjC4qz.js → number-C8Gt93v9.js} +1 -1
  81. package/dist/objectid-Cr99eTPd.js +145 -0
  82. package/dist/{plugins-eQis66QR.js → plugins-DK_ue6Xa.js} +2 -2
  83. package/dist/{reward-DrnzbG20.js → reward-CW2dSLDW.js} +1 -1
  84. package/dist/{rule-CtRxkYXB.js → rule-CebKyXSm.js} +3 -3
  85. package/dist/{rule-builder-Di9RIYHF.js → rule-builder-kQq14RfN.js} +17 -17
  86. package/dist/style.css +1 -1
  87. package/dist/{template-C3UfY0v5.js → template-CxUxlb6-.js} +64 -64
  88. package/dist/{trigger-C9U7Zgad.js → trigger-RqJo06KA.js} +4 -4
  89. package/dist/{usePagination-BeF5K3M7.js → usePagination-JoYaROkV.js} +85 -85
  90. package/dist/{user-D7n9yYmO.js → user-DhV5Iy52.js} +1 -1
  91. package/dist/{vue-i18n-Bz45zC04.js → vue-i18n-BtvUK9hI.js} +419 -419
  92. package/dist/{xlsx-D4S4qbcZ.js → xlsx-WnLDq4qn.js} +381 -381
  93. package/package.json +3 -9
  94. package/dist/Analytic-BjSfI2Ff.js +0 -761
  95. package/dist/AuditLogs-DWCFYoRg.js +0 -1887
  96. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +0 -58
  97. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
  98. package/dist/Marketing-Dn9A1vgH.js +0 -20073
  99. package/dist/MemberList-BWTG9Ohy.js +0 -1606
  100. package/dist/MemberOverview-wL_ailso.js +0 -58
  101. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D--_An-f.js +0 -60279
  102. package/dist/Segment-Bzq-pyhc.js +0 -882
  103. package/dist/StoreRewards-Cu7n7Pjz.js +0 -423
  104. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-T3Wo2maC.js +0 -1029
  105. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DdGMrk2C.js +0 -419
  106. package/dist/campaign.fn-BYZgKDN7.js +0 -758
  107. package/dist/index-CsaQJMAR.js +0 -66
  108. package/dist/index-CwsMG2cV.js +0 -56
  109. package/dist/objectid-D5T27iny.js +0 -145
  110. package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
@@ -1,21 +1,21 @@
1
- import { defineComponent as Xe, ref as H, computed as me, onMounted as Ze, resolveComponent as R, openBlock as x, createBlock as fe, withCtx as ne, createElementVNode as w, createVNode as I, unref as c, isRef as We, createElementBlock as q, Fragment as ae, toDisplayString as D, createTextVNode as te, renderList as Ke, createCommentVNode as ce } from "vue";
2
- import { h as Et } from "./moment-BWErdI6_.js";
1
+ import { defineComponent as Xe, ref as H, computed as me, onMounted as Ze, resolveComponent as R, openBlock as x, createBlock as fe, withCtx as te, createElementVNode as w, createVNode as I, unref as c, isRef as We, createElementBlock as q, Fragment as le, toDisplayString as D, createTextVNode as ne, renderList as Ke, createCommentVNode as ce } from "vue";
2
+ import { h as _t } from "./moment-BWErdI6_.js";
3
3
  import { Z as Oe } from "./zod-Bg2FbC-D.js";
4
4
  import { useDialog as et } from "@feedmepos/ui-library";
5
- import { u as At } from "./loading-BWGQSrCB.js";
6
- import { u as Bt } from "./app-wDQR6dpb.js";
7
- import { u as Se, l as tt } from "./business-CmxV69wT.js";
8
- import { u as nt } from "./membership-Cc4OZ8-U.js";
9
- import "./index-CS3Jmojj.js";
10
- import { s as Mt, k as St } from "./index-DNxa8Rqx.js";
11
- import { _ as Ye } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
12
- import { a as ot, p as _t, f as G } from "./plugins-eQis66QR.js";
13
- import { _ as It } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-QucRaI08.js";
14
- import { M as Pt, _ as Tt } from "./MessageInput.vue_vue_type_script_setup_true_lang-D--_An-f.js";
15
- import { u as Nt } from "./vue-i18n-Bz45zC04.js";
5
+ import { u as Et } from "./loading-BFkEqWR6.js";
6
+ import { u as At } from "./app-wDQR6dpb.js";
7
+ import { u as Me, l as tt } from "./business-TTvv3aTz.js";
8
+ import { u as nt } from "./membership-D0eN3i_T.js";
9
+ import "./index-CIztuDE4.js";
10
+ import { s as Bt, k as Mt } from "./index-C7rl1eHp.js";
11
+ import { _ as Ye } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
12
+ import { a as ot, p as St, f as G } from "./plugins-DK_ue6Xa.js";
13
+ import { _ as It } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-D8l3fQyz.js";
14
+ import { M as Pt, _ as Tt } from "./MessageInput.vue_vue_type_script_setup_true_lang-iJXNbgsB.js";
15
+ import { u as Nt } from "./vue-i18n-BtvUK9hI.js";
16
16
  import { useCoreStore as Ut } from "@feedmepos/mf-common";
17
- import { m as je } from "./index-l2F5MnLF.js";
18
- import { S as Lt } from "./index-BjU8LVUC.js";
17
+ import { m as je } from "./index-2OAcPmuQ.js";
18
+ import { S as Lt } from "./index-VHu8hYtE.js";
19
19
  import { o as Ft } from "./objectId-dwaoBfJX.js";
20
20
  import { a as Rt } from "./object-qECH92oz.js";
21
21
  var ie = {}, kt = function() {
@@ -170,23 +170,23 @@ var xt = se, st = {};
170
170
  const e = L.getSymbolSize;
171
171
  t.getRowColCoords = function(r) {
172
172
  if (r === 1) return [];
173
- const o = Math.floor(r / 7) + 2, n = e(r), l = n === 145 ? 26 : Math.ceil((n - 13) / (2 * o - 2)) * 2, a = [n - 7];
173
+ const o = Math.floor(r / 7) + 2, n = e(r), a = n === 145 ? 26 : Math.ceil((n - 13) / (2 * o - 2)) * 2, l = [n - 7];
174
174
  for (let s = 1; s < o - 1; s++)
175
- a[s] = a[s - 1] - l;
176
- return a.push(6), a.reverse();
175
+ l[s] = l[s - 1] - a;
176
+ return l.push(6), l.reverse();
177
177
  }, t.getPositions = function(r) {
178
- const o = [], n = t.getRowColCoords(r), l = n.length;
179
- for (let a = 0; a < l; a++)
180
- for (let s = 0; s < l; s++)
181
- a === 0 && s === 0 || // top-left
182
- a === 0 && s === l - 1 || // bottom-left
183
- a === l - 1 && s === 0 || o.push([n[a], n[s]]);
178
+ const o = [], n = t.getRowColCoords(r), a = n.length;
179
+ for (let l = 0; l < a; l++)
180
+ for (let s = 0; s < a; s++)
181
+ l === 0 && s === 0 || // top-left
182
+ l === 0 && s === a - 1 || // bottom-left
183
+ l === a - 1 && s === 0 || o.push([n[l], n[s]]);
184
184
  return o;
185
185
  };
186
186
  })(st);
187
- var lt = {};
187
+ var at = {};
188
188
  const $t = L.getSymbolSize, Je = 7;
189
- lt.getPositions = function(e) {
189
+ at.getPositions = function(e) {
190
190
  const i = $t(e);
191
191
  return [
192
192
  // top-left
@@ -197,7 +197,7 @@ lt.getPositions = function(e) {
197
197
  [0, i - Je]
198
198
  ];
199
199
  };
200
- var at = {};
200
+ var lt = {};
201
201
  (function(t) {
202
202
  t.Patterns = {
203
203
  PATTERN000: 0,
@@ -221,39 +221,39 @@ var at = {};
221
221
  return t.isValid(o) ? parseInt(o, 10) : void 0;
222
222
  }, t.getPenaltyN1 = function(o) {
223
223
  const n = o.size;
224
- let l = 0, a = 0, s = 0, f = null, m = null;
225
- for (let B = 0; B < n; B++) {
226
- a = s = 0, f = m = null;
227
- for (let g = 0; g < n; g++) {
228
- let d = o.get(B, g);
229
- d === f ? a++ : (a >= 5 && (l += e.N1 + (a - 5)), f = d, a = 1), d = o.get(g, B), d === m ? s++ : (s >= 5 && (l += e.N1 + (s - 5)), m = d, s = 1);
224
+ let a = 0, l = 0, s = 0, u = null, f = null;
225
+ for (let A = 0; A < n; A++) {
226
+ l = s = 0, u = f = null;
227
+ for (let m = 0; m < n; m++) {
228
+ let d = o.get(A, m);
229
+ d === u ? l++ : (l >= 5 && (a += e.N1 + (l - 5)), u = d, l = 1), d = o.get(m, A), d === f ? s++ : (s >= 5 && (a += e.N1 + (s - 5)), f = d, s = 1);
230
230
  }
231
- a >= 5 && (l += e.N1 + (a - 5)), s >= 5 && (l += e.N1 + (s - 5));
231
+ l >= 5 && (a += e.N1 + (l - 5)), s >= 5 && (a += e.N1 + (s - 5));
232
232
  }
233
- return l;
233
+ return a;
234
234
  }, t.getPenaltyN2 = function(o) {
235
235
  const n = o.size;
236
- let l = 0;
237
- for (let a = 0; a < n - 1; a++)
236
+ let a = 0;
237
+ for (let l = 0; l < n - 1; l++)
238
238
  for (let s = 0; s < n - 1; s++) {
239
- const f = o.get(a, s) + o.get(a, s + 1) + o.get(a + 1, s) + o.get(a + 1, s + 1);
240
- (f === 4 || f === 0) && l++;
239
+ const u = o.get(l, s) + o.get(l, s + 1) + o.get(l + 1, s) + o.get(l + 1, s + 1);
240
+ (u === 4 || u === 0) && a++;
241
241
  }
242
- return l * e.N2;
242
+ return a * e.N2;
243
243
  }, t.getPenaltyN3 = function(o) {
244
244
  const n = o.size;
245
- let l = 0, a = 0, s = 0;
246
- for (let f = 0; f < n; f++) {
247
- a = s = 0;
248
- for (let m = 0; m < n; m++)
249
- a = a << 1 & 2047 | o.get(f, m), m >= 10 && (a === 1488 || a === 93) && l++, s = s << 1 & 2047 | o.get(m, f), m >= 10 && (s === 1488 || s === 93) && l++;
245
+ let a = 0, l = 0, s = 0;
246
+ for (let u = 0; u < n; u++) {
247
+ l = s = 0;
248
+ for (let f = 0; f < n; f++)
249
+ l = l << 1 & 2047 | o.get(u, f), f >= 10 && (l === 1488 || l === 93) && a++, s = s << 1 & 2047 | o.get(f, u), f >= 10 && (s === 1488 || s === 93) && a++;
250
250
  }
251
- return l * e.N3;
251
+ return a * e.N3;
252
252
  }, t.getPenaltyN4 = function(o) {
253
253
  let n = 0;
254
- const l = o.data.length;
255
- for (let s = 0; s < l; s++) n += o.data[s];
256
- return Math.abs(Math.ceil(n * 100 / l / 5) - 10) * e.N4;
254
+ const a = o.data.length;
255
+ for (let s = 0; s < a; s++) n += o.data[s];
256
+ return Math.abs(Math.ceil(n * 100 / a / 5) - 10) * e.N4;
257
257
  };
258
258
  function i(r, o, n) {
259
259
  switch (r) {
@@ -278,21 +278,21 @@ var at = {};
278
278
  }
279
279
  }
280
280
  t.applyMask = function(o, n) {
281
- const l = n.size;
282
- for (let a = 0; a < l; a++)
283
- for (let s = 0; s < l; s++)
284
- n.isReserved(s, a) || n.xor(s, a, i(o, s, a));
281
+ const a = n.size;
282
+ for (let l = 0; l < a; l++)
283
+ for (let s = 0; s < a; s++)
284
+ n.isReserved(s, l) || n.xor(s, l, i(o, s, l));
285
285
  }, t.getBestMask = function(o, n) {
286
- const l = Object.keys(t.Patterns).length;
287
- let a = 0, s = 1 / 0;
288
- for (let f = 0; f < l; f++) {
289
- n(f), t.applyMask(f, o);
290
- const m = t.getPenaltyN1(o) + t.getPenaltyN2(o) + t.getPenaltyN3(o) + t.getPenaltyN4(o);
291
- t.applyMask(f, o), m < s && (s = m, a = f);
286
+ const a = Object.keys(t.Patterns).length;
287
+ let l = 0, s = 1 / 0;
288
+ for (let u = 0; u < a; u++) {
289
+ n(u), t.applyMask(u, o);
290
+ const f = t.getPenaltyN1(o) + t.getPenaltyN2(o) + t.getPenaltyN3(o) + t.getPenaltyN4(o);
291
+ t.applyMask(u, o), f < s && (s = f, l = u);
292
292
  }
293
- return a;
293
+ return l;
294
294
  };
295
- })(at);
295
+ })(lt);
296
296
  var ye = {};
297
297
  const O = pe, ue = [
298
298
  // L M Q H
@@ -670,19 +670,19 @@ we.mul = function(e, i) {
670
670
  const e = we;
671
671
  t.mul = function(r, o) {
672
672
  const n = new Uint8Array(r.length + o.length - 1);
673
- for (let l = 0; l < r.length; l++)
674
- for (let a = 0; a < o.length; a++)
675
- n[l + a] ^= e.mul(r[l], o[a]);
673
+ for (let a = 0; a < r.length; a++)
674
+ for (let l = 0; l < o.length; l++)
675
+ n[a + l] ^= e.mul(r[a], o[l]);
676
676
  return n;
677
677
  }, t.mod = function(r, o) {
678
678
  let n = new Uint8Array(r);
679
679
  for (; n.length - o.length >= 0; ) {
680
- const l = n[0];
680
+ const a = n[0];
681
681
  for (let s = 0; s < o.length; s++)
682
- n[s] ^= e.mul(o[s], l);
683
- let a = 0;
684
- for (; a < n.length && n[a] === 0; ) a++;
685
- n = n.slice(a);
682
+ n[s] ^= e.mul(o[s], a);
683
+ let l = 0;
684
+ for (; l < n.length && n[l] === 0; ) l++;
685
+ n = n.slice(l);
686
686
  }
687
687
  return n;
688
688
  }, t.generateECPolynomial = function(r) {
@@ -756,11 +756,11 @@ $.testAlphanumeric = function(e) {
756
756
  ccBits: [8, 10, 12]
757
757
  }, t.MIXED = {
758
758
  bit: -1
759
- }, t.getCharCountIndicator = function(n, l) {
759
+ }, t.getCharCountIndicator = function(n, a) {
760
760
  if (!n.ccBits) throw new Error("Invalid mode: " + n);
761
- if (!e.isValid(l))
762
- throw new Error("Invalid version: " + l);
763
- return l >= 1 && l < 10 ? n.ccBits[0] : l < 27 ? n.ccBits[1] : n.ccBits[2];
761
+ if (!e.isValid(a))
762
+ throw new Error("Invalid version: " + a);
763
+ return a >= 1 && a < 10 ? n.ccBits[0] : a < 27 ? n.ccBits[1] : n.ccBits[2];
764
764
  }, t.getBestModeForData = function(n) {
765
765
  return i.testNumeric(n) ? t.NUMERIC : i.testAlphanumeric(n) ? t.ALPHANUMERIC : i.testKanji(n) ? t.KANJI : t.BYTE;
766
766
  }, t.toString = function(n) {
@@ -785,36 +785,36 @@ $.testAlphanumeric = function(e) {
785
785
  throw new Error("Unknown mode: " + o);
786
786
  }
787
787
  }
788
- t.from = function(n, l) {
788
+ t.from = function(n, a) {
789
789
  if (t.isValid(n))
790
790
  return n;
791
791
  try {
792
792
  return r(n);
793
793
  } catch {
794
- return l;
794
+ return a;
795
795
  }
796
796
  };
797
797
  })(Y);
798
798
  (function(t) {
799
- const e = L, i = ye, r = pe, o = Y, n = Le, l = 7973, a = e.getBCHDigit(l);
800
- function s(g, d, v) {
799
+ const e = L, i = ye, r = pe, o = Y, n = Le, a = 7973, l = e.getBCHDigit(a);
800
+ function s(m, d, v) {
801
801
  for (let C = 1; C <= 40; C++)
802
- if (d <= t.getCapacity(C, v, g))
802
+ if (d <= t.getCapacity(C, v, m))
803
803
  return C;
804
804
  }
805
- function f(g, d) {
806
- return o.getCharCountIndicator(g, d) + 4;
805
+ function u(m, d) {
806
+ return o.getCharCountIndicator(m, d) + 4;
807
807
  }
808
- function m(g, d) {
808
+ function f(m, d) {
809
809
  let v = 0;
810
- return g.forEach(function(C) {
811
- const S = f(C.mode, d);
812
- v += S + C.getBitsLength();
810
+ return m.forEach(function(C) {
811
+ const M = u(C.mode, d);
812
+ v += M + C.getBitsLength();
813
813
  }), v;
814
814
  }
815
- function B(g, d) {
815
+ function A(m, d) {
816
816
  for (let v = 1; v <= 40; v++)
817
- if (m(g, v) <= t.getCapacity(v, d, o.MIXED))
817
+ if (f(m, v) <= t.getCapacity(v, d, o.MIXED))
818
818
  return v;
819
819
  }
820
820
  t.from = function(d, v) {
@@ -823,48 +823,48 @@ $.testAlphanumeric = function(e) {
823
823
  if (!n.isValid(d))
824
824
  throw new Error("Invalid QR Code version");
825
825
  typeof C > "u" && (C = o.BYTE);
826
- const S = e.getSymbolTotalCodewords(d), p = i.getTotalCodewordsCount(d, v), b = (S - p) * 8;
826
+ const M = e.getSymbolTotalCodewords(d), h = i.getTotalCodewordsCount(d, v), b = (M - h) * 8;
827
827
  if (C === o.MIXED) return b;
828
- const h = b - f(C, d);
828
+ const g = b - u(C, d);
829
829
  switch (C) {
830
830
  case o.NUMERIC:
831
- return Math.floor(h / 10 * 3);
831
+ return Math.floor(g / 10 * 3);
832
832
  case o.ALPHANUMERIC:
833
- return Math.floor(h / 11 * 2);
833
+ return Math.floor(g / 11 * 2);
834
834
  case o.KANJI:
835
- return Math.floor(h / 13);
835
+ return Math.floor(g / 13);
836
836
  case o.BYTE:
837
837
  default:
838
- return Math.floor(h / 8);
838
+ return Math.floor(g / 8);
839
839
  }
840
840
  }, t.getBestVersionForData = function(d, v) {
841
841
  let C;
842
- const S = r.from(v, r.M);
842
+ const M = r.from(v, r.M);
843
843
  if (Array.isArray(d)) {
844
844
  if (d.length > 1)
845
- return B(d, S);
845
+ return A(d, M);
846
846
  if (d.length === 0)
847
847
  return 1;
848
848
  C = d[0];
849
849
  } else
850
850
  C = d;
851
- return s(C.mode, C.getLength(), S);
851
+ return s(C.mode, C.getLength(), M);
852
852
  }, t.getEncodedBits = function(d) {
853
853
  if (!n.isValid(d) || d < 7)
854
854
  throw new Error("Invalid QR Code version");
855
855
  let v = d << 12;
856
- for (; e.getBCHDigit(v) - a >= 0; )
857
- v ^= l << e.getBCHDigit(v) - a;
856
+ for (; e.getBCHDigit(v) - l >= 0; )
857
+ v ^= a << e.getBCHDigit(v) - l;
858
858
  return d << 12 | v;
859
859
  };
860
860
  })(dt);
861
861
  var mt = {};
862
- const _e = L, gt = 1335, Jt = 21522, qe = _e.getBCHDigit(gt);
862
+ const Se = L, gt = 1335, Jt = 21522, qe = Se.getBCHDigit(gt);
863
863
  mt.getEncodedBits = function(e, i) {
864
864
  const r = e.bit << 3 | i;
865
865
  let o = r << 10;
866
- for (; _e.getBCHDigit(o) - qe >= 0; )
867
- o ^= gt << _e.getBCHDigit(o) - qe;
866
+ for (; Se.getBCHDigit(o) - qe >= 0; )
867
+ o ^= gt << Se.getBCHDigit(o) - qe;
868
868
  return (r << 10 | o) ^ Jt;
869
869
  };
870
870
  var ht = {};
@@ -960,8 +960,8 @@ var Xt = X, Zt = function(e) {
960
960
  for (var i = [], r = e.length, o = 0; o < r; o++) {
961
961
  var n = e.charCodeAt(o);
962
962
  if (n >= 55296 && n <= 56319 && r > o + 1) {
963
- var l = e.charCodeAt(o + 1);
964
- l >= 56320 && l <= 57343 && (n = (n - 55296) * 1024 + l - 56320 + 65536, o += 1);
963
+ var a = e.charCodeAt(o + 1);
964
+ a >= 56320 && a <= 57343 && (n = (n - 55296) * 1024 + a - 56320 + 65536, o += 1);
965
965
  }
966
966
  if (n < 128) {
967
967
  i.push(n);
@@ -1034,18 +1034,18 @@ var rn = W, pt = { exports: {} };
1034
1034
  (function(t) {
1035
1035
  var e = {
1036
1036
  single_source_shortest_paths: function(i, r, o) {
1037
- var n = {}, l = {};
1038
- l[r] = 0;
1039
- var a = e.PriorityQueue.make();
1040
- a.push(r, 0);
1041
- for (var s, f, m, B, g, d, v, C, S; !a.empty(); ) {
1042
- s = a.pop(), f = s.value, B = s.cost, g = i[f] || {};
1043
- for (m in g)
1044
- g.hasOwnProperty(m) && (d = g[m], v = B + d, C = l[m], S = typeof l[m] > "u", (S || C > v) && (l[m] = v, a.push(m, v), n[m] = f));
1037
+ var n = {}, a = {};
1038
+ a[r] = 0;
1039
+ var l = e.PriorityQueue.make();
1040
+ l.push(r, 0);
1041
+ for (var s, u, f, A, m, d, v, C, M; !l.empty(); ) {
1042
+ s = l.pop(), u = s.value, A = s.cost, m = i[u] || {};
1043
+ for (f in m)
1044
+ m.hasOwnProperty(f) && (d = m[f], v = A + d, C = a[f], M = typeof a[f] > "u", (M || C > v) && (a[f] = v, l.push(f, v), n[f] = u));
1045
1045
  }
1046
- if (typeof o < "u" && typeof l[o] > "u") {
1047
- var p = ["Could not find a path from ", r, " to ", o, "."].join("");
1048
- throw new Error(p);
1046
+ if (typeof o < "u" && typeof a[o] > "u") {
1047
+ var h = ["Could not find a path from ", r, " to ", o, "."].join("");
1048
+ throw new Error(h);
1049
1049
  }
1050
1050
  return n;
1051
1051
  },
@@ -1098,26 +1098,26 @@ var rn = W, pt = { exports: {} };
1098
1098
  })(pt);
1099
1099
  var sn = pt.exports;
1100
1100
  (function(t) {
1101
- const e = Y, i = Gt, r = Xt, o = tn, n = rn, l = $, a = L, s = sn;
1102
- function f(p) {
1103
- return unescape(encodeURIComponent(p)).length;
1101
+ const e = Y, i = Gt, r = Xt, o = tn, n = rn, a = $, l = L, s = sn;
1102
+ function u(h) {
1103
+ return unescape(encodeURIComponent(h)).length;
1104
1104
  }
1105
- function m(p, b, h) {
1106
- const y = [];
1107
- let M;
1108
- for (; (M = p.exec(h)) !== null; )
1109
- y.push({
1110
- data: M[0],
1111
- index: M.index,
1105
+ function f(h, b, g) {
1106
+ const p = [];
1107
+ let B;
1108
+ for (; (B = h.exec(g)) !== null; )
1109
+ p.push({
1110
+ data: B[0],
1111
+ index: B.index,
1112
1112
  mode: b,
1113
- length: M[0].length
1113
+ length: B[0].length
1114
1114
  });
1115
- return y;
1115
+ return p;
1116
1116
  }
1117
- function B(p) {
1118
- const b = m(l.NUMERIC, e.NUMERIC, p), h = m(l.ALPHANUMERIC, e.ALPHANUMERIC, p);
1119
- let y, M;
1120
- return a.isKanjiModeEnabled() ? (y = m(l.BYTE, e.BYTE, p), M = m(l.KANJI, e.KANJI, p)) : (y = m(l.BYTE_KANJI, e.BYTE, p), M = []), b.concat(h, y, M).sort(function(P, U) {
1117
+ function A(h) {
1118
+ const b = f(a.NUMERIC, e.NUMERIC, h), g = f(a.ALPHANUMERIC, e.ALPHANUMERIC, h);
1119
+ let p, B;
1120
+ return l.isKanjiModeEnabled() ? (p = f(a.BYTE, e.BYTE, h), B = f(a.KANJI, e.KANJI, h)) : (p = f(a.BYTE_KANJI, e.BYTE, h), B = []), b.concat(g, p, B).sort(function(P, U) {
1121
1121
  return P.index - U.index;
1122
1122
  }).map(function(P) {
1123
1123
  return {
@@ -1127,116 +1127,116 @@ var sn = pt.exports;
1127
1127
  };
1128
1128
  });
1129
1129
  }
1130
- function g(p, b) {
1130
+ function m(h, b) {
1131
1131
  switch (b) {
1132
1132
  case e.NUMERIC:
1133
- return i.getBitsLength(p);
1133
+ return i.getBitsLength(h);
1134
1134
  case e.ALPHANUMERIC:
1135
- return r.getBitsLength(p);
1135
+ return r.getBitsLength(h);
1136
1136
  case e.KANJI:
1137
- return n.getBitsLength(p);
1137
+ return n.getBitsLength(h);
1138
1138
  case e.BYTE:
1139
- return o.getBitsLength(p);
1139
+ return o.getBitsLength(h);
1140
1140
  }
1141
1141
  }
1142
- function d(p) {
1143
- return p.reduce(function(b, h) {
1144
- const y = b.length - 1 >= 0 ? b[b.length - 1] : null;
1145
- return y && y.mode === h.mode ? (b[b.length - 1].data += h.data, b) : (b.push(h), b);
1142
+ function d(h) {
1143
+ return h.reduce(function(b, g) {
1144
+ const p = b.length - 1 >= 0 ? b[b.length - 1] : null;
1145
+ return p && p.mode === g.mode ? (b[b.length - 1].data += g.data, b) : (b.push(g), b);
1146
1146
  }, []);
1147
1147
  }
1148
- function v(p) {
1148
+ function v(h) {
1149
1149
  const b = [];
1150
- for (let h = 0; h < p.length; h++) {
1151
- const y = p[h];
1152
- switch (y.mode) {
1150
+ for (let g = 0; g < h.length; g++) {
1151
+ const p = h[g];
1152
+ switch (p.mode) {
1153
1153
  case e.NUMERIC:
1154
1154
  b.push([
1155
- y,
1156
- { data: y.data, mode: e.ALPHANUMERIC, length: y.length },
1157
- { data: y.data, mode: e.BYTE, length: y.length }
1155
+ p,
1156
+ { data: p.data, mode: e.ALPHANUMERIC, length: p.length },
1157
+ { data: p.data, mode: e.BYTE, length: p.length }
1158
1158
  ]);
1159
1159
  break;
1160
1160
  case e.ALPHANUMERIC:
1161
1161
  b.push([
1162
- y,
1163
- { data: y.data, mode: e.BYTE, length: y.length }
1162
+ p,
1163
+ { data: p.data, mode: e.BYTE, length: p.length }
1164
1164
  ]);
1165
1165
  break;
1166
1166
  case e.KANJI:
1167
1167
  b.push([
1168
- y,
1169
- { data: y.data, mode: e.BYTE, length: f(y.data) }
1168
+ p,
1169
+ { data: p.data, mode: e.BYTE, length: u(p.data) }
1170
1170
  ]);
1171
1171
  break;
1172
1172
  case e.BYTE:
1173
1173
  b.push([
1174
- { data: y.data, mode: e.BYTE, length: f(y.data) }
1174
+ { data: p.data, mode: e.BYTE, length: u(p.data) }
1175
1175
  ]);
1176
1176
  }
1177
1177
  }
1178
1178
  return b;
1179
1179
  }
1180
- function C(p, b) {
1181
- const h = {}, y = { start: {} };
1182
- let M = ["start"];
1183
- for (let _ = 0; _ < p.length; _++) {
1184
- const P = p[_], U = [];
1180
+ function C(h, b) {
1181
+ const g = {}, p = { start: {} };
1182
+ let B = ["start"];
1183
+ for (let S = 0; S < h.length; S++) {
1184
+ const P = h[S], U = [];
1185
1185
  for (let V = 0; V < P.length; V++) {
1186
- const F = P[V], A = "" + _ + V;
1187
- U.push(A), h[A] = { node: F, lastCount: 0 }, y[A] = {};
1188
- for (let u = 0; u < M.length; u++) {
1189
- const N = M[u];
1190
- h[N] && h[N].node.mode === F.mode ? (y[N][A] = g(h[N].lastCount + F.length, F.mode) - g(h[N].lastCount, F.mode), h[N].lastCount += F.length) : (h[N] && (h[N].lastCount = F.length), y[N][A] = g(F.length, F.mode) + 4 + e.getCharCountIndicator(F.mode, b));
1186
+ const F = P[V], E = "" + S + V;
1187
+ U.push(E), g[E] = { node: F, lastCount: 0 }, p[E] = {};
1188
+ for (let y = 0; y < B.length; y++) {
1189
+ const N = B[y];
1190
+ g[N] && g[N].node.mode === F.mode ? (p[N][E] = m(g[N].lastCount + F.length, F.mode) - m(g[N].lastCount, F.mode), g[N].lastCount += F.length) : (g[N] && (g[N].lastCount = F.length), p[N][E] = m(F.length, F.mode) + 4 + e.getCharCountIndicator(F.mode, b));
1191
1191
  }
1192
1192
  }
1193
- M = U;
1193
+ B = U;
1194
1194
  }
1195
- for (let _ = 0; _ < M.length; _++)
1196
- y[M[_]].end = 0;
1197
- return { map: y, table: h };
1195
+ for (let S = 0; S < B.length; S++)
1196
+ p[B[S]].end = 0;
1197
+ return { map: p, table: g };
1198
1198
  }
1199
- function S(p, b) {
1200
- let h;
1201
- const y = e.getBestModeForData(p);
1202
- if (h = e.from(b, y), h !== e.BYTE && h.bit < y.bit)
1203
- throw new Error('"' + p + '" cannot be encoded with mode ' + e.toString(h) + `.
1204
- Suggested mode is: ` + e.toString(y));
1205
- switch (h === e.KANJI && !a.isKanjiModeEnabled() && (h = e.BYTE), h) {
1199
+ function M(h, b) {
1200
+ let g;
1201
+ const p = e.getBestModeForData(h);
1202
+ if (g = e.from(b, p), g !== e.BYTE && g.bit < p.bit)
1203
+ throw new Error('"' + h + '" cannot be encoded with mode ' + e.toString(g) + `.
1204
+ Suggested mode is: ` + e.toString(p));
1205
+ switch (g === e.KANJI && !l.isKanjiModeEnabled() && (g = e.BYTE), g) {
1206
1206
  case e.NUMERIC:
1207
- return new i(p);
1207
+ return new i(h);
1208
1208
  case e.ALPHANUMERIC:
1209
- return new r(p);
1209
+ return new r(h);
1210
1210
  case e.KANJI:
1211
- return new n(p);
1211
+ return new n(h);
1212
1212
  case e.BYTE:
1213
- return new o(p);
1213
+ return new o(h);
1214
1214
  }
1215
1215
  }
1216
1216
  t.fromArray = function(b) {
1217
- return b.reduce(function(h, y) {
1218
- return typeof y == "string" ? h.push(S(y, null)) : y.data && h.push(S(y.data, y.mode)), h;
1217
+ return b.reduce(function(g, p) {
1218
+ return typeof p == "string" ? g.push(M(p, null)) : p.data && g.push(M(p.data, p.mode)), g;
1219
1219
  }, []);
1220
- }, t.fromString = function(b, h) {
1221
- const y = B(b, a.isKanjiModeEnabled()), M = v(y), _ = C(M, h), P = s.find_path(_.map, "start", "end"), U = [];
1220
+ }, t.fromString = function(b, g) {
1221
+ const p = A(b, l.isKanjiModeEnabled()), B = v(p), S = C(B, g), P = s.find_path(S.map, "start", "end"), U = [];
1222
1222
  for (let V = 1; V < P.length - 1; V++)
1223
- U.push(_.table[P[V]].node);
1223
+ U.push(S.table[P[V]].node);
1224
1224
  return t.fromArray(d(U));
1225
1225
  }, t.rawSplit = function(b) {
1226
1226
  return t.fromArray(
1227
- B(b, a.isKanjiModeEnabled())
1227
+ A(b, l.isKanjiModeEnabled())
1228
1228
  );
1229
1229
  };
1230
1230
  })(ht);
1231
- const be = L, Ee = pe, ln = Vt, an = xt, cn = st, un = lt, Ie = at, Pe = ye, dn = zt, he = dt, fn = mt, mn = Y, Ae = ht;
1231
+ const be = L, _e = pe, an = Vt, ln = xt, cn = st, un = at, Ie = lt, Pe = ye, dn = zt, he = dt, fn = mt, mn = Y, Ee = ht;
1232
1232
  function gn(t, e) {
1233
1233
  const i = t.size, r = un.getPositions(e);
1234
1234
  for (let o = 0; o < r.length; o++) {
1235
- const n = r[o][0], l = r[o][1];
1236
- for (let a = -1; a <= 7; a++)
1237
- if (!(n + a <= -1 || i <= n + a))
1235
+ const n = r[o][0], a = r[o][1];
1236
+ for (let l = -1; l <= 7; l++)
1237
+ if (!(n + l <= -1 || i <= n + l))
1238
1238
  for (let s = -1; s <= 7; s++)
1239
- l + s <= -1 || i <= l + s || (a >= 0 && a <= 6 && (s === 0 || s === 6) || s >= 0 && s <= 6 && (a === 0 || a === 6) || a >= 2 && a <= 4 && s >= 2 && s <= 4 ? t.set(n + a, l + s, !0, !0) : t.set(n + a, l + s, !1, !0));
1239
+ a + s <= -1 || i <= a + s || (l >= 0 && l <= 6 && (s === 0 || s === 6) || s >= 0 && s <= 6 && (l === 0 || l === 6) || l >= 2 && l <= 4 && s >= 2 && s <= 4 ? t.set(n + l, a + s, !0, !0) : t.set(n + l, a + s, !1, !0));
1240
1240
  }
1241
1241
  }
1242
1242
  function hn(t) {
@@ -1250,33 +1250,33 @@ function pn(t, e) {
1250
1250
  const i = cn.getPositions(e);
1251
1251
  for (let r = 0; r < i.length; r++) {
1252
1252
  const o = i[r][0], n = i[r][1];
1253
- for (let l = -2; l <= 2; l++)
1254
- for (let a = -2; a <= 2; a++)
1255
- l === -2 || l === 2 || a === -2 || a === 2 || l === 0 && a === 0 ? t.set(o + l, n + a, !0, !0) : t.set(o + l, n + a, !1, !0);
1253
+ for (let a = -2; a <= 2; a++)
1254
+ for (let l = -2; l <= 2; l++)
1255
+ a === -2 || a === 2 || l === -2 || l === 2 || a === 0 && l === 0 ? t.set(o + a, n + l, !0, !0) : t.set(o + a, n + l, !1, !0);
1256
1256
  }
1257
1257
  }
1258
1258
  function yn(t, e) {
1259
1259
  const i = t.size, r = he.getEncodedBits(e);
1260
- let o, n, l;
1261
- for (let a = 0; a < 18; a++)
1262
- o = Math.floor(a / 3), n = a % 3 + i - 8 - 3, l = (r >> a & 1) === 1, t.set(o, n, l, !0), t.set(n, o, l, !0);
1260
+ let o, n, a;
1261
+ for (let l = 0; l < 18; l++)
1262
+ o = Math.floor(l / 3), n = l % 3 + i - 8 - 3, a = (r >> l & 1) === 1, t.set(o, n, a, !0), t.set(n, o, a, !0);
1263
1263
  }
1264
- function Be(t, e, i) {
1264
+ function Ae(t, e, i) {
1265
1265
  const r = t.size, o = fn.getEncodedBits(e, i);
1266
- let n, l;
1266
+ let n, a;
1267
1267
  for (n = 0; n < 15; n++)
1268
- l = (o >> n & 1) === 1, n < 6 ? t.set(n, 8, l, !0) : n < 8 ? t.set(n + 1, 8, l, !0) : t.set(r - 15 + n, 8, l, !0), n < 8 ? t.set(8, r - n - 1, l, !0) : n < 9 ? t.set(8, 15 - n - 1 + 1, l, !0) : t.set(8, 15 - n - 1, l, !0);
1268
+ a = (o >> n & 1) === 1, n < 6 ? t.set(n, 8, a, !0) : n < 8 ? t.set(n + 1, 8, a, !0) : t.set(r - 15 + n, 8, a, !0), n < 8 ? t.set(8, r - n - 1, a, !0) : n < 9 ? t.set(8, 15 - n - 1 + 1, a, !0) : t.set(8, 15 - n - 1, a, !0);
1269
1269
  t.set(r - 8, 8, 1, !0);
1270
1270
  }
1271
1271
  function wn(t, e) {
1272
1272
  const i = t.size;
1273
- let r = -1, o = i - 1, n = 7, l = 0;
1274
- for (let a = i - 1; a > 0; a -= 2)
1275
- for (a === 6 && a--; ; ) {
1273
+ let r = -1, o = i - 1, n = 7, a = 0;
1274
+ for (let l = i - 1; l > 0; l -= 2)
1275
+ for (l === 6 && l--; ; ) {
1276
1276
  for (let s = 0; s < 2; s++)
1277
- if (!t.isReserved(o, a - s)) {
1278
- let f = !1;
1279
- l < e.length && (f = (e[l] >>> n & 1) === 1), t.set(o, a - s, f), n--, n === -1 && (l++, n = 7);
1277
+ if (!t.isReserved(o, l - s)) {
1278
+ let u = !1;
1279
+ a < e.length && (u = (e[a] >>> n & 1) === 1), t.set(o, l - s, u), n--, n === -1 && (a++, n = 7);
1280
1280
  }
1281
1281
  if (o += r, o < 0 || i <= o) {
1282
1282
  o -= r, r = -r;
@@ -1285,49 +1285,49 @@ function wn(t, e) {
1285
1285
  }
1286
1286
  }
1287
1287
  function bn(t, e, i) {
1288
- const r = new ln();
1288
+ const r = new an();
1289
1289
  i.forEach(function(s) {
1290
1290
  r.put(s.mode.bit, 4), r.put(s.getLength(), mn.getCharCountIndicator(s.mode, t)), s.write(r);
1291
1291
  });
1292
- const o = be.getSymbolTotalCodewords(t), n = Pe.getTotalCodewordsCount(t, e), l = (o - n) * 8;
1293
- for (r.getLengthInBits() + 4 <= l && r.put(0, 4); r.getLengthInBits() % 8 !== 0; )
1292
+ const o = be.getSymbolTotalCodewords(t), n = Pe.getTotalCodewordsCount(t, e), a = (o - n) * 8;
1293
+ for (r.getLengthInBits() + 4 <= a && r.put(0, 4); r.getLengthInBits() % 8 !== 0; )
1294
1294
  r.putBit(0);
1295
- const a = (l - r.getLengthInBits()) / 8;
1296
- for (let s = 0; s < a; s++)
1295
+ const l = (a - r.getLengthInBits()) / 8;
1296
+ for (let s = 0; s < l; s++)
1297
1297
  r.put(s % 2 ? 17 : 236, 8);
1298
1298
  return vn(r, t, e);
1299
1299
  }
1300
1300
  function vn(t, e, i) {
1301
- const r = be.getSymbolTotalCodewords(e), o = Pe.getTotalCodewordsCount(e, i), n = r - o, l = Pe.getBlocksCount(e, i), a = r % l, s = l - a, f = Math.floor(r / l), m = Math.floor(n / l), B = m + 1, g = f - m, d = new dn(g);
1301
+ const r = be.getSymbolTotalCodewords(e), o = Pe.getTotalCodewordsCount(e, i), n = r - o, a = Pe.getBlocksCount(e, i), l = r % a, s = a - l, u = Math.floor(r / a), f = Math.floor(n / a), A = f + 1, m = u - f, d = new dn(m);
1302
1302
  let v = 0;
1303
- const C = new Array(l), S = new Array(l);
1304
- let p = 0;
1303
+ const C = new Array(a), M = new Array(a);
1304
+ let h = 0;
1305
1305
  const b = new Uint8Array(t.buffer);
1306
- for (let P = 0; P < l; P++) {
1307
- const U = P < s ? m : B;
1308
- C[P] = b.slice(v, v + U), S[P] = d.encode(C[P]), v += U, p = Math.max(p, U);
1306
+ for (let P = 0; P < a; P++) {
1307
+ const U = P < s ? f : A;
1308
+ C[P] = b.slice(v, v + U), M[P] = d.encode(C[P]), v += U, h = Math.max(h, U);
1309
1309
  }
1310
- const h = new Uint8Array(r);
1311
- let y = 0, M, _;
1312
- for (M = 0; M < p; M++)
1313
- for (_ = 0; _ < l; _++)
1314
- M < C[_].length && (h[y++] = C[_][M]);
1315
- for (M = 0; M < g; M++)
1316
- for (_ = 0; _ < l; _++)
1317
- h[y++] = S[_][M];
1318
- return h;
1310
+ const g = new Uint8Array(r);
1311
+ let p = 0, B, S;
1312
+ for (B = 0; B < h; B++)
1313
+ for (S = 0; S < a; S++)
1314
+ B < C[S].length && (g[p++] = C[S][B]);
1315
+ for (B = 0; B < m; B++)
1316
+ for (S = 0; S < a; S++)
1317
+ g[p++] = M[S][B];
1318
+ return g;
1319
1319
  }
1320
1320
  function Cn(t, e, i, r) {
1321
1321
  let o;
1322
1322
  if (Array.isArray(t))
1323
- o = Ae.fromArray(t);
1323
+ o = Ee.fromArray(t);
1324
1324
  else if (typeof t == "string") {
1325
- let f = e;
1326
- if (!f) {
1327
- const m = Ae.rawSplit(t);
1328
- f = he.getBestVersionForData(m, i);
1325
+ let u = e;
1326
+ if (!u) {
1327
+ const f = Ee.rawSplit(t);
1328
+ u = he.getBestVersionForData(f, i);
1329
1329
  }
1330
- o = Ae.fromString(t, f || 40);
1330
+ o = Ee.fromString(t, u || 40);
1331
1331
  } else
1332
1332
  throw new Error("Invalid data");
1333
1333
  const n = he.getBestVersionForData(o, i);
@@ -1342,11 +1342,11 @@ The chosen QR Code version cannot contain this amount of data.
1342
1342
  Minimum version required to store current data is: ` + n + `.
1343
1343
  `
1344
1344
  );
1345
- const l = bn(e, i, o), a = be.getSymbolSize(e), s = new an(a);
1346
- return gn(s, e), hn(s), pn(s, e), Be(s, i, 0), e >= 7 && yn(s, e), wn(s, l), isNaN(r) && (r = Ie.getBestMask(
1345
+ const a = bn(e, i, o), l = be.getSymbolSize(e), s = new ln(l);
1346
+ return gn(s, e), hn(s), pn(s, e), Ae(s, i, 0), e >= 7 && yn(s, e), wn(s, a), isNaN(r) && (r = Ie.getBestMask(
1347
1347
  s,
1348
- Be.bind(null, s, i)
1349
- )), Ie.applyMask(r, s), Be(s, i, r), {
1348
+ Ae.bind(null, s, i)
1349
+ )), Ie.applyMask(r, s), Ae(s, i, r), {
1350
1350
  modules: s,
1351
1351
  version: e,
1352
1352
  errorCorrectionLevel: i,
@@ -1357,8 +1357,8 @@ Minimum version required to store current data is: ` + n + `.
1357
1357
  rt.create = function(e, i) {
1358
1358
  if (typeof e > "u" || e === "")
1359
1359
  throw new Error("No input text");
1360
- let r = Ee.M, o, n;
1361
- return typeof i < "u" && (r = Ee.from(i.errorCorrectionLevel, Ee.M), o = he.from(i.version), n = Ie.from(i.maskPattern), i.toSJISFunc && be.setToSJISFunction(i.toSJISFunc)), Cn(e, o, r, n);
1360
+ let r = _e.M, o, n;
1361
+ return typeof i < "u" && (r = _e.from(i.errorCorrectionLevel, _e.M), o = he.from(i.version), n = Ie.from(i.maskPattern), i.toSJISFunc && be.setToSJISFunction(i.toSJISFunc)), Cn(e, o, r, n);
1362
1362
  };
1363
1363
  var yt = {}, Fe = {};
1364
1364
  (function(t) {
@@ -1382,10 +1382,10 @@ var yt = {}, Fe = {};
1382
1382
  }
1383
1383
  t.getOptions = function(r) {
1384
1384
  r || (r = {}), r.color || (r.color = {});
1385
- const o = typeof r.margin > "u" || r.margin === null || r.margin < 0 ? 4 : r.margin, n = r.width && r.width >= 21 ? r.width : void 0, l = r.scale || 4;
1385
+ const o = typeof r.margin > "u" || r.margin === null || r.margin < 0 ? 4 : r.margin, n = r.width && r.width >= 21 ? r.width : void 0, a = r.scale || 4;
1386
1386
  return {
1387
1387
  width: n,
1388
- scale: n ? 4 : l,
1388
+ scale: n ? 4 : a,
1389
1389
  margin: o,
1390
1390
  color: {
1391
1391
  dark: e(r.color.dark || "#000000ff"),
@@ -1400,13 +1400,13 @@ var yt = {}, Fe = {};
1400
1400
  const n = t.getScale(r, o);
1401
1401
  return Math.floor((r + o.margin * 2) * n);
1402
1402
  }, t.qrToImageData = function(r, o, n) {
1403
- const l = o.modules.size, a = o.modules.data, s = t.getScale(l, n), f = Math.floor((l + n.margin * 2) * s), m = n.margin * s, B = [n.color.light, n.color.dark];
1404
- for (let g = 0; g < f; g++)
1405
- for (let d = 0; d < f; d++) {
1406
- let v = (g * f + d) * 4, C = n.color.light;
1407
- if (g >= m && d >= m && g < f - m && d < f - m) {
1408
- const S = Math.floor((g - m) / s), p = Math.floor((d - m) / s);
1409
- C = B[a[S * l + p] ? 1 : 0];
1403
+ const a = o.modules.size, l = o.modules.data, s = t.getScale(a, n), u = Math.floor((a + n.margin * 2) * s), f = n.margin * s, A = [n.color.light, n.color.dark];
1404
+ for (let m = 0; m < u; m++)
1405
+ for (let d = 0; d < u; d++) {
1406
+ let v = (m * u + d) * 4, C = n.color.light;
1407
+ if (m >= f && d >= f && m < u - f && d < u - f) {
1408
+ const M = Math.floor((m - f) / s), h = Math.floor((d - f) / s);
1409
+ C = A[l[M * a + h] ? 1 : 0];
1410
1410
  }
1411
1411
  r[v++] = C.r, r[v++] = C.g, r[v++] = C.b, r[v] = C.a;
1412
1412
  }
@@ -1414,8 +1414,8 @@ var yt = {}, Fe = {};
1414
1414
  })(Fe);
1415
1415
  (function(t) {
1416
1416
  const e = Fe;
1417
- function i(o, n, l) {
1418
- o.clearRect(0, 0, n.width, n.height), n.style || (n.style = {}), n.height = l, n.width = l, n.style.height = l + "px", n.style.width = l + "px";
1417
+ function i(o, n, a) {
1418
+ o.clearRect(0, 0, n.width, n.height), n.style || (n.style = {}), n.height = a, n.width = a, n.style.height = a + "px", n.style.width = a + "px";
1419
1419
  }
1420
1420
  function r() {
1421
1421
  try {
@@ -1424,59 +1424,59 @@ var yt = {}, Fe = {};
1424
1424
  throw new Error("You need to specify a canvas element");
1425
1425
  }
1426
1426
  }
1427
- t.render = function(n, l, a) {
1428
- let s = a, f = l;
1429
- typeof s > "u" && (!l || !l.getContext) && (s = l, l = void 0), l || (f = r()), s = e.getOptions(s);
1430
- const m = e.getImageWidth(n.modules.size, s), B = f.getContext("2d"), g = B.createImageData(m, m);
1431
- return e.qrToImageData(g.data, n, s), i(B, f, m), B.putImageData(g, 0, 0), f;
1432
- }, t.renderToDataURL = function(n, l, a) {
1433
- let s = a;
1434
- typeof s > "u" && (!l || !l.getContext) && (s = l, l = void 0), s || (s = {});
1435
- const f = t.render(n, l, s), m = s.type || "image/png", B = s.rendererOpts || {};
1436
- return f.toDataURL(m, B.quality);
1427
+ t.render = function(n, a, l) {
1428
+ let s = l, u = a;
1429
+ typeof s > "u" && (!a || !a.getContext) && (s = a, a = void 0), a || (u = r()), s = e.getOptions(s);
1430
+ const f = e.getImageWidth(n.modules.size, s), A = u.getContext("2d"), m = A.createImageData(f, f);
1431
+ return e.qrToImageData(m.data, n, s), i(A, u, f), A.putImageData(m, 0, 0), u;
1432
+ }, t.renderToDataURL = function(n, a, l) {
1433
+ let s = l;
1434
+ typeof s > "u" && (!a || !a.getContext) && (s = a, a = void 0), s || (s = {});
1435
+ const u = t.render(n, a, s), f = s.type || "image/png", A = s.rendererOpts || {};
1436
+ return u.toDataURL(f, A.quality);
1437
1437
  };
1438
1438
  })(yt);
1439
1439
  var wt = {};
1440
- const En = Fe;
1440
+ const _n = Fe;
1441
1441
  function Ge(t, e) {
1442
1442
  const i = t.a / 255, r = e + '="' + t.hex + '"';
1443
1443
  return i < 1 ? r + " " + e + '-opacity="' + i.toFixed(2).slice(1) + '"' : r;
1444
1444
  }
1445
- function Me(t, e, i) {
1445
+ function Be(t, e, i) {
1446
1446
  let r = t + e;
1447
1447
  return typeof i < "u" && (r += " " + i), r;
1448
1448
  }
1449
- function An(t, e, i) {
1450
- let r = "", o = 0, n = !1, l = 0;
1451
- for (let a = 0; a < t.length; a++) {
1452
- const s = Math.floor(a % e), f = Math.floor(a / e);
1453
- !s && !n && (n = !0), t[a] ? (l++, a > 0 && s > 0 && t[a - 1] || (r += n ? Me("M", s + i, 0.5 + f + i) : Me("m", o, 0), o = 0, n = !1), s + 1 < e && t[a + 1] || (r += Me("h", l), l = 0)) : o++;
1449
+ function En(t, e, i) {
1450
+ let r = "", o = 0, n = !1, a = 0;
1451
+ for (let l = 0; l < t.length; l++) {
1452
+ const s = Math.floor(l % e), u = Math.floor(l / e);
1453
+ !s && !n && (n = !0), t[l] ? (a++, l > 0 && s > 0 && t[l - 1] || (r += n ? Be("M", s + i, 0.5 + u + i) : Be("m", o, 0), o = 0, n = !1), s + 1 < e && t[l + 1] || (r += Be("h", a), a = 0)) : o++;
1454
1454
  }
1455
1455
  return r;
1456
1456
  }
1457
1457
  wt.render = function(e, i, r) {
1458
- const o = En.getOptions(i), n = e.modules.size, l = e.modules.data, a = n + o.margin * 2, s = o.color.light.a ? "<path " + Ge(o.color.light, "fill") + ' d="M0 0h' + a + "v" + a + 'H0z"/>' : "", f = "<path " + Ge(o.color.dark, "stroke") + ' d="' + An(l, n, o.margin) + '"/>', m = 'viewBox="0 0 ' + a + " " + a + '"', g = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + m + ' shape-rendering="crispEdges">' + s + f + `</svg>
1458
+ const o = _n.getOptions(i), n = e.modules.size, a = e.modules.data, l = n + o.margin * 2, s = o.color.light.a ? "<path " + Ge(o.color.light, "fill") + ' d="M0 0h' + l + "v" + l + 'H0z"/>' : "", u = "<path " + Ge(o.color.dark, "stroke") + ' d="' + En(a, n, o.margin) + '"/>', f = 'viewBox="0 0 ' + l + " " + l + '"', m = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + f + ' shape-rendering="crispEdges">' + s + u + `</svg>
1459
1459
  `;
1460
- return typeof r == "function" && r(null, g), g;
1460
+ return typeof r == "function" && r(null, m), m;
1461
1461
  };
1462
- const Bn = kt, Te = rt, bt = yt, Mn = wt;
1462
+ const An = kt, Te = rt, bt = yt, Bn = wt;
1463
1463
  function Re(t, e, i, r, o) {
1464
- const n = [].slice.call(arguments, 1), l = n.length, a = typeof n[l - 1] == "function";
1465
- if (!a && !Bn())
1464
+ const n = [].slice.call(arguments, 1), a = n.length, l = typeof n[a - 1] == "function";
1465
+ if (!l && !An())
1466
1466
  throw new Error("Callback required as last argument");
1467
- if (a) {
1468
- if (l < 2)
1467
+ if (l) {
1468
+ if (a < 2)
1469
1469
  throw new Error("Too few arguments provided");
1470
- l === 2 ? (o = i, i = e, e = r = void 0) : l === 3 && (e.getContext && typeof o > "u" ? (o = r, r = void 0) : (o = r, r = i, i = e, e = void 0));
1470
+ a === 2 ? (o = i, i = e, e = r = void 0) : a === 3 && (e.getContext && typeof o > "u" ? (o = r, r = void 0) : (o = r, r = i, i = e, e = void 0));
1471
1471
  } else {
1472
- if (l < 1)
1472
+ if (a < 1)
1473
1473
  throw new Error("Too few arguments provided");
1474
- return l === 1 ? (i = e, e = r = void 0) : l === 2 && !e.getContext && (r = i, i = e, e = void 0), new Promise(function(s, f) {
1474
+ return a === 1 ? (i = e, e = r = void 0) : a === 2 && !e.getContext && (r = i, i = e, e = void 0), new Promise(function(s, u) {
1475
1475
  try {
1476
- const m = Te.create(i, r);
1477
- s(t(m, e, r));
1478
- } catch (m) {
1479
- f(m);
1476
+ const f = Te.create(i, r);
1477
+ s(t(f, e, r));
1478
+ } catch (f) {
1479
+ u(f);
1480
1480
  }
1481
1481
  });
1482
1482
  }
@@ -1491,9 +1491,9 @@ ie.create = Te.create;
1491
1491
  ie.toCanvas = Re.bind(null, bt.render);
1492
1492
  ie.toDataURL = Re.bind(null, bt.renderToDataURL);
1493
1493
  ie.toString = Re.bind(null, function(t, e, i) {
1494
- return Mn.render(t, i);
1494
+ return Bn.render(t, i);
1495
1495
  });
1496
- async function Sn(t, e = 350) {
1496
+ async function Mn(t, e = 350) {
1497
1497
  try {
1498
1498
  return await ie.toDataURL(t, {
1499
1499
  width: e,
@@ -1503,50 +1503,50 @@ async function Sn(t, e = 350) {
1503
1503
  console.error(i);
1504
1504
  }
1505
1505
  }
1506
- var _n = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
1507
- const In = { class: "flex items-start" }, Pn = { class: "flex flex-col gap-16 mt-16" }, Tn = ["src"], Nn = /* @__PURE__ */ Xe({
1506
+ var Sn = { 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" };
1507
+ const In = { class: "flex items-start" }, Pn = /* @__PURE__ */ w("div", null, [
1508
+ /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
1509
+ /* @__PURE__ */ w("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
1510
+ ], -1), Tn = { class: "flex flex-col gap-16 mt-16" }, Nn = ["src"], Un = /* @__PURE__ */ Xe({
1508
1511
  __name: "LinkDeviceDialog",
1509
1512
  setup(t) {
1510
- const e = Se(), i = nt(), r = et(), o = H(), n = H(), l = _n.crmUrl, a = H(), s = me(() => i.membership), f = me(() => {
1511
- var g, d;
1512
- return `https://${(g = s.value) != null && g.url ? s.value.url : (d = s.value) == null ? void 0 : d.business}.${l}`;
1513
+ const e = Me(), i = nt(), r = et(), o = H(), n = H(), a = Sn.crmUrl, l = H(), s = me(() => i.membership), u = me(() => {
1514
+ var m, d;
1515
+ return `https://${(m = s.value) != null && m.url ? s.value.url : (d = s.value) == null ? void 0 : d.business}.${a}`;
1513
1516
  });
1514
- async function m(g) {
1515
- const d = await tt.getOtp(g);
1516
- return `${f.value}?link-device=${d.otp}`;
1517
+ async function f(m) {
1518
+ const d = await tt.getOtp(m);
1519
+ return `${u.value}?link-device=${d.otp}`;
1517
1520
  }
1518
- async function B(g) {
1519
- const d = await m(g);
1520
- a.value = d, o.value = await Sn(d);
1521
+ async function A(m) {
1522
+ const d = await f(m);
1523
+ l.value = d, o.value = await Mn(d);
1521
1524
  }
1522
1525
  return Ze(async () => {
1523
1526
  if (await e.readLocations(), !e.locations.length) {
1524
1527
  r.close();
1525
1528
  return;
1526
1529
  }
1527
- const g = e.locations[0]._id;
1528
- n.value = g, await B(g);
1529
- }), (g, d) => {
1530
- const v = R("FmIcon"), C = R("FmSelect"), S = R("FmButton"), p = R("FmCard");
1531
- return x(), fe(p, { class: "p-24 max-w-[350px]" }, {
1532
- default: ne(() => [
1530
+ const m = e.locations[0]._id;
1531
+ n.value = m, await A(m);
1532
+ }), (m, d) => {
1533
+ const v = R("FmIcon"), C = R("FmSelect"), M = R("FmButton"), h = R("FmCard");
1534
+ return x(), fe(h, { class: "p-24 max-w-[350px]" }, {
1535
+ default: te(() => [
1533
1536
  w("div", In, [
1534
- d[3] || (d[3] = w("div", null, [
1535
- w("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
1536
- w("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
1537
- ], -1)),
1537
+ Pn,
1538
1538
  I(v, {
1539
1539
  name: "close",
1540
1540
  onClick: d[0] || (d[0] = (b) => c(r).close()),
1541
1541
  class: "cursor-pointer"
1542
1542
  })
1543
1543
  ]),
1544
- w("div", Pn, [
1544
+ w("div", Tn, [
1545
1545
  I(C, {
1546
1546
  modelValue: c(n),
1547
1547
  "onUpdate:modelValue": [
1548
1548
  d[1] || (d[1] = (b) => We(n) ? n.value = b : null),
1549
- B
1549
+ A
1550
1550
  ],
1551
1551
  label: "Select Location",
1552
1552
  items: c(e).locationItems.filter((b) => !!b.value)
@@ -1554,12 +1554,12 @@ const In = { class: "flex items-start" }, Pn = { class: "flex flex-col gap-16 mt
1554
1554
  w("img", {
1555
1555
  src: c(o),
1556
1556
  class: "aspect-square w-full"
1557
- }, null, 8, Tn),
1558
- I(S, {
1557
+ }, null, 8, Nn),
1558
+ I(M, {
1559
1559
  class: "mx-auto",
1560
1560
  variant: "plain",
1561
1561
  icon: "content_copy",
1562
- onClick: d[2] || (d[2] = (b) => c(ot)(c(a)))
1562
+ onClick: d[2] || (d[2] = (b) => c(ot)(c(l)))
1563
1563
  })
1564
1564
  ])
1565
1565
  ]),
@@ -1568,49 +1568,52 @@ const In = { class: "flex items-start" }, Pn = { class: "flex flex-col gap-16 mt
1568
1568
  };
1569
1569
  }
1570
1570
  });
1571
- var Qe = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
1572
- const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, Ln = { class: "fm-typo-en-title-md-800" }, Fn = {
1571
+ 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" };
1572
+ const Ln = { class: "hidden xs:flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, Fn = { class: "fm-typo-en-title-md-800" }, Rn = {
1573
1573
  key: 0,
1574
1574
  class: "px-24 gap-32 grid grid-cols-3 xs:pt-16"
1575
- }, Rn = { class: "col-span-2 flex flex-col xs:col-span-3" }, kn = { class: "fm-typo-en-title-sm-800" }, Dn = { class: "space-y-24" }, Vn = { class: "space-y-8" }, xn = { class: "fm-typo-en-title-sm-800" }, $n = { class: "fm-typo-body-lg-400" }, zn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Hn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, 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: "space-y-8" }, Jn = { class: "space-y-8" }, qn = { class: "space-y-8" }, Gn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Qn = { class: "space-y-8" }, Xn = { class: "flex justify-end pb-24" }, Zn = { class: "col-span-1 space-y-8 xs:hidden" }, Wn = { class: "fm-typo-en-body-lg-600" }, eo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-lg-600" }, no = { class: "fm-typo-en-body-lg-600" }, Bo = /* @__PURE__ */ Xe({
1575
+ }, kn = { class: "col-span-2 flex flex-col xs:col-span-3" }, Dn = { class: "fm-typo-en-title-sm-800" }, Vn = { class: "space-y-24" }, xn = { class: "space-y-8" }, $n = { class: "fm-typo-en-title-sm-800" }, zn = { class: "fm-typo-body-lg-400" }, Hn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Kn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, On = { class: "space-y-8" }, Yn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, jn = { class: "space-y-8" }, Jn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1), qn = { class: "space-y-8" }, Gn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1), Qn = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Email address that will be used to send email broadcast ", -1), Xn = { class: "space-y-8" }, Zn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, [
1576
+ /* @__PURE__ */ ne(" Free Credit as Discount "),
1577
+ /* @__PURE__ */ w("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
1578
+ ], -1), Wn = { class: "space-y-8" }, eo = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, to = { class: "space-y-8" }, no = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1), oo = { class: "flex justify-end pb-24" }, ro = { class: "col-span-1 space-y-8 xs:hidden" }, io = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1), so = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1), ao = { class: "fm-typo-en-body-lg-600" }, lo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1), co = { class: "fm-typo-en-body-lg-600" }, uo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1), fo = { class: "fm-typo-en-body-lg-600" }, mo = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1), go = { class: "fm-typo-en-body-lg-600" }, Ro = /* @__PURE__ */ Xe({
1576
1579
  __name: "Setting",
1577
1580
  setup(t) {
1578
- const e = Bt(), i = Ut(), r = Se(), o = nt(), { global: n, minor: l } = At, a = et(), s = H(), f = H(!1), m = H([]), B = H(null), g = Mt, d = [
1579
- (A) => !A || A.length >= 6 || "Invalid URL format, please enter at least 6 characters",
1580
- (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"
1581
+ const e = At(), i = Ut(), r = Me(), o = nt(), { global: n, minor: a } = Et, l = et(), s = H(), u = H(!1), f = H([]), A = H(null), m = Bt, d = [
1582
+ (E) => !E || E.length >= 6 || "Invalid URL format, please enter at least 6 characters",
1583
+ (E) => !E || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(E) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
1581
1584
  ], v = Qe.appUrl, C = me(() => {
1582
- var A;
1583
- return `https://${(A = s.value) == null ? void 0 : A.business}.${v}`;
1584
- }), S = H(), p = H([]), b = me(() => {
1585
- var A, u;
1586
- return Math.min((((u = (A = s.value) == null ? void 0 : A.advertisements) == null ? void 0 : u.length) ?? 0) + 1, 5);
1587
- }), { t: h } = Nt(), y = i.currentCountry.value || "MY", M = [
1585
+ var E;
1586
+ return `https://${(E = s.value) == null ? void 0 : E.business}.${v}`;
1587
+ }), M = H(), h = H([]), b = me(() => {
1588
+ var E, y;
1589
+ return Math.min((((y = (E = s.value) == null ? void 0 : E.advertisements) == null ? void 0 : y.length) ?? 0) + 1, 5);
1590
+ }), { t: g } = Nt(), p = i.currentCountry.value || "MY", B = [
1588
1591
  "user.name",
1589
1592
  "user.gender",
1590
1593
  "user.birthday",
1591
1594
  "user.phoneNumber",
1592
1595
  "membership.url"
1593
1596
  ].filter(
1594
- (A) => {
1595
- var u;
1596
- return !((u = Pt[y]) != null && u.includes(A));
1597
+ (E) => {
1598
+ var y;
1599
+ return !((y = Pt[p]) != null && y.includes(E));
1597
1600
  }
1598
1601
  );
1599
- async function _() {
1600
- a.open({
1602
+ async function S() {
1603
+ l.open({
1601
1604
  title: "",
1602
- dialogComponent: Nn,
1605
+ dialogComponent: Un,
1603
1606
  closeButton: !1
1604
1607
  });
1605
1608
  }
1606
- async function P(A) {
1607
- await _t.remove(
1609
+ async function P(E) {
1610
+ await St.remove(
1608
1611
  "Are you sure you want to unlink this device?",
1609
1612
  "Unlink device",
1610
1613
  "Unlink"
1611
- ) && await l(
1614
+ ) && await a(
1612
1615
  async () => {
1613
- await tt.unregisterDevice(A), await r.readLocationDevices();
1616
+ await tt.unregisterDevice(E), await r.readLocationDevices();
1614
1617
  },
1615
1618
  {
1616
1619
  message: "Unlinking device",
@@ -1619,25 +1622,25 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1619
1622
  );
1620
1623
  }
1621
1624
  async function U() {
1622
- await l(
1625
+ await a(
1623
1626
  async () => {
1624
1627
  var N;
1625
- const A = Rt(s.value);
1626
- A.welcomeMessage && !((N = A.welcomeMessage) != null && N.content) && (A.welcomeMessage.content = "Hi there, you have been invited to join our membership");
1627
- const u = St.parse(A);
1628
- S.value === null && u.image ? await G.delete(G.coverImagePath()) : S.value && (u.image = await G.update(
1628
+ const E = Rt(s.value);
1629
+ E.welcomeMessage && !((N = E.welcomeMessage) != null && N.content) && (E.welcomeMessage.content = "Hi there, you have been invited to join our membership");
1630
+ const y = Mt.parse(E);
1631
+ M.value === null && y.image ? await G.delete(G.coverImagePath()) : M.value && (y.image = await G.update(
1629
1632
  G.coverImagePath(),
1630
- S.value
1631
- )), f.value ? u.advertisements = (await Promise.all(
1633
+ M.value
1634
+ )), u.value ? y.advertisements = (await Promise.all(
1632
1635
  new Array(b.value - 1).fill(null).map(async (z, K) => {
1633
1636
  var ee;
1634
- const j = p.value[K];
1637
+ const j = h.value[K];
1635
1638
  return j ? await G.update(
1636
1639
  G.advertisementPath(K, j),
1637
1640
  j
1638
- ) : (ee = u.advertisements) == null ? void 0 : ee[K];
1641
+ ) : (ee = y.advertisements) == null ? void 0 : ee[K];
1639
1642
  })
1640
- )).filter((z) => z) : u.advertisements = [], await je.update(u), await o.readMembership(), s.value = o.membership;
1643
+ )).filter((z) => z) : y.advertisements = [], await je.update(y), await o.readMembership(), s.value = o.membership;
1641
1644
  },
1642
1645
  {
1643
1646
  message: "Updating membership",
@@ -1646,8 +1649,8 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1646
1649
  );
1647
1650
  }
1648
1651
  async function V() {
1649
- const A = await je.getEmailAddresses();
1650
- console.log(A), m.value = A, B.value = A.find((u) => u.default.includes("Marketing"));
1652
+ const E = await je.getEmailAddresses();
1653
+ console.log(E), f.value = E, A.value = E.find((y) => y.default.includes("Marketing"));
1651
1654
  }
1652
1655
  async function F() {
1653
1656
  window.open(
@@ -1657,52 +1660,52 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1657
1660
  }
1658
1661
  return Ze(async () => {
1659
1662
  await n(async () => {
1660
- var A, u;
1661
- await r.readPremium(), await r.readLocations(), await r.readLocationDevices(), await o.readMembership(), await V(), s.value = o.membership, f.value = (((A = s.value.advertisements) == null ? void 0 : A.length) ?? 0) > 0, p.value = ((u = s.value.advertisements) == null ? void 0 : u.map(() => null)) ?? [];
1663
+ var E, y;
1664
+ await r.readPremium(), await r.readLocations(), await r.readLocationDevices(), await o.readMembership(), await V(), s.value = o.membership, u.value = (((E = s.value.advertisements) == null ? void 0 : E.length) ?? 0) > 0, h.value = ((y = s.value.advertisements) == null ? void 0 : y.map(() => null)) ?? [];
1662
1665
  });
1663
- }), (A, u) => {
1666
+ }), (E, y) => {
1664
1667
  var ke, De, Ve, xe, $e, ze, He;
1665
1668
  const N = R("FmPageHead"), z = R("FmButton"), K = R("FmTextField"), j = R("FmCard"), ee = R("FmPill"), ve = R("FmSwitch"), vt = R("FmSelect"), Ct = R("FmMenuDivider");
1666
- return x(), q(ae, null, [
1669
+ return x(), q(le, null, [
1667
1670
  I(N, {
1668
- title: c(h)("connect.setting.title"),
1671
+ title: c(g)("connect.setting.title"),
1669
1672
  class: "xs:hidden"
1670
1673
  }, null, 8, ["title"]),
1671
- w("div", Un, [
1672
- w("div", Ln, D(c(h)("connect.setting.basicInfo.title")), 1),
1674
+ w("div", Ln, [
1675
+ w("div", Fn, D(c(g)("connect.setting.basicInfo.title")), 1),
1673
1676
  I(z, {
1674
1677
  icon: "info",
1675
1678
  variant: "tertiary"
1676
1679
  })
1677
1680
  ]),
1678
- c(s) ? (x(), q("div", Fn, [
1679
- w("div", Rn, [
1680
- w("div", kn, D(c(h)("connect.setting.basicInfo.title")), 1),
1681
- w("div", Dn, [
1681
+ c(s) ? (x(), q("div", Rn, [
1682
+ w("div", kn, [
1683
+ w("div", Dn, D(c(g)("connect.setting.basicInfo.title")), 1),
1684
+ w("div", Vn, [
1682
1685
  I(K, {
1683
- label: c(h)("connect.setting.basicInfo.membershipTitle"),
1686
+ label: c(g)("connect.setting.basicInfo.membershipTitle"),
1684
1687
  modelValue: c(s).name,
1685
- "onUpdate:modelValue": u[0] || (u[0] = (E) => c(s).name = E)
1688
+ "onUpdate:modelValue": y[0] || (y[0] = (_) => c(s).name = _)
1686
1689
  }, null, 8, ["label", "modelValue"]),
1687
1690
  I(K, {
1688
1691
  disabled: !0,
1689
1692
  "model-value": c(s).business,
1690
1693
  rules: d,
1691
1694
  required: !0,
1692
- label: c(h)("connect.setting.basicInfo.memberAppUrl"),
1695
+ label: c(g)("connect.setting.basicInfo.memberAppUrl"),
1693
1696
  "helper-text": c(C),
1694
1697
  placeholder: c(s).business.toString(),
1695
- "onUpdate:modelValue": u[2] || (u[2] = (E) => c(s).url = E)
1698
+ "onUpdate:modelValue": y[2] || (y[2] = (_) => c(s).url = _)
1696
1699
  }, {
1697
- prepend: ne(() => u[12] || (u[12] = [
1698
- te(" https:// ")
1699
- ])),
1700
- append: ne(() => [
1701
- te(" ." + D(c(v)) + " ", 1),
1700
+ prepend: te(() => [
1701
+ ne(" https:// ")
1702
+ ]),
1703
+ append: te(() => [
1704
+ ne(" ." + D(c(v)) + " ", 1),
1702
1705
  I(z, {
1703
1706
  icon: "content_copy",
1704
1707
  variant: "tertiary",
1705
- onClick: u[1] || (u[1] = (E) => c(ot)(c(C)))
1708
+ onClick: y[1] || (y[1] = (_) => c(ot)(c(C)))
1706
1709
  })
1707
1710
  ]),
1708
1711
  _: 1
@@ -1713,59 +1716,59 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1713
1716
  "image-fit": "cover",
1714
1717
  "aspect-ratio": "3/1",
1715
1718
  thumbnail: c(s).image || void 0,
1716
- "onUpdate:file": u[3] || (u[3] = async (E) => {
1717
- S.value = E, E || (c(s).image = null);
1719
+ "onUpdate:file": y[3] || (y[3] = async (_) => {
1720
+ M.value = _, _ || (c(s).image = null);
1718
1721
  })
1719
1722
  }, null, 8, ["thumbnail"]),
1720
- w("div", Vn, [
1721
- w("div", xn, D(c(h)("connect.setting.counterApp.title")), 1),
1723
+ w("div", xn, [
1724
+ w("div", $n, D(c(g)("connect.setting.counterApp.title")), 1),
1722
1725
  I(z, {
1723
1726
  variant: "plain",
1724
1727
  icon: "link",
1725
- label: c(h)("connect.setting.counterApp.linkDevice"),
1726
- onClick: _
1728
+ label: c(g)("connect.setting.counterApp.linkDevice"),
1729
+ onClick: S
1727
1730
  }, null, 8, ["label"]),
1728
- (x(!0), q(ae, null, Ke(c(r).locationDevices, (E, T) => (x(), fe(j, {
1731
+ (x(!0), q(le, null, Ke(c(r).locationDevices, (_, T) => (x(), fe(j, {
1729
1732
  key: T,
1730
1733
  variant: "outlined",
1731
1734
  class: "flex items-center justify-between px-16 py-12"
1732
1735
  }, {
1733
- default: ne(() => [
1736
+ default: te(() => [
1734
1737
  w("div", null, [
1735
- w("p", $n, D(E.name || `Device ${E._id}`), 1),
1736
- w("p", zn, " Activation date: " + D(c(Et)(c(Ft)(E._id.toString())).format(
1738
+ w("p", zn, D(_.name || `Device ${_._id}`), 1),
1739
+ w("p", Hn, " Activation date: " + D(c(_t)(c(Ft)(_._id.toString())).format(
1737
1740
  "D MMM YYYY"
1738
1741
  )), 1),
1739
- w("p", Hn, " Linked location: " + D(c(r).locations.find((k) => k._id == E.location).name), 1)
1742
+ w("p", Kn, " Linked location: " + D(c(r).locations.find((k) => k._id == _.location).name), 1)
1740
1743
  ]),
1741
1744
  I(z, {
1742
1745
  icon: "link_off",
1743
1746
  variant: "tertiary",
1744
- onClick: (k) => P(E._id)
1747
+ onClick: (k) => P(_._id)
1745
1748
  }, null, 8, ["onClick"])
1746
1749
  ]),
1747
1750
  _: 2
1748
1751
  }, 1024))), 128))
1749
1752
  ]),
1750
- w("div", Kn, [
1751
- w("div", On, [
1752
- u[13] || (u[13] = te(" Advertisement ")),
1753
+ w("div", On, [
1754
+ w("div", Yn, [
1755
+ ne(" Advertisement "),
1753
1756
  I(ee, { variant: "premium" })
1754
1757
  ]),
1755
1758
  I(ve, {
1756
- modelValue: c(f),
1757
- "onUpdate:modelValue": u[4] || (u[4] = (E) => We(f) ? f.value = E : null),
1759
+ modelValue: c(u),
1760
+ "onUpdate:modelValue": y[4] || (y[4] = (_) => We(u) ? u.value = _ : null),
1758
1761
  label: "Advertisement",
1759
1762
  sublabel: "This will be show on FeedMe ordering app",
1760
1763
  "label-placement": "right",
1761
1764
  disabled: !c(r).isPremium,
1762
1765
  value: ""
1763
1766
  }, null, 8, ["modelValue", "disabled"]),
1764
- c(f) ? (x(), q("div", {
1767
+ c(u) ? (x(), q("div", {
1765
1768
  class: "flex items-center gap-8 flex-wrap xs:grid xs:grid-cols-2 xs:overflow-x-scroll xs:w-full",
1766
1769
  key: c(b)
1767
1770
  }, [
1768
- (x(!0), q(ae, null, Ke(c(b), (E, T) => {
1771
+ (x(!0), q(le, null, Ke(c(b), (_, T) => {
1769
1772
  var k, J;
1770
1773
  return x(), fe(Ye, {
1771
1774
  class: "w-[200px]",
@@ -1775,94 +1778,91 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1775
1778
  thumbnail: (J = (k = c(s)) == null ? void 0 : k.advertisements) == null ? void 0 : J[T],
1776
1779
  accept: ".png, .jpg, .jpeg, .mp4, .gif",
1777
1780
  "recommended-size": "Recommended 4:5 ratio / 1080px x 1350px",
1778
- file: c(p)[T] ?? void 0,
1779
- "onUpdate:file": (le) => {
1780
- c(s).advertisements || (c(s).advertisements = []), le ? (c(s).advertisements[T] = "", c(p)[T] = le) : (c(s).advertisements.splice(T, 1), c(p).splice(T, 1));
1781
+ file: c(h)[T] ?? void 0,
1782
+ "onUpdate:file": (ae) => {
1783
+ c(s).advertisements || (c(s).advertisements = []), ae ? (c(s).advertisements[T] = "", c(h)[T] = ae) : (c(s).advertisements.splice(T, 1), c(h).splice(T, 1));
1781
1784
  }
1782
1785
  }, null, 8, ["thumbnail", "file", "onUpdate:file"]);
1783
1786
  }), 256))
1784
1787
  ])) : ce("", !0)
1785
1788
  ]),
1786
- w("div", Yn, [
1787
- u[14] || (u[14] = w("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
1789
+ w("div", jn, [
1790
+ Jn,
1788
1791
  I(K, {
1789
1792
  "model-value": ((ke = c(s)) == null ? void 0 : ke.brand) || "",
1790
1793
  "max-length": 15,
1791
1794
  label: "Brand Name",
1792
1795
  "show-word-count": "",
1793
1796
  "helper-text": `RM 0 ${((De = c(s)) == null ? void 0 : De.brand) || ""}: YOUR CUSTOMER MESSAGE`,
1794
- "onUpdate:modelValue": u[5] || (u[5] = (E) => c(s).brand = E)
1797
+ "onUpdate:modelValue": y[5] || (y[5] = (_) => c(s).brand = _)
1795
1798
  }, null, 8, ["model-value", "helper-text"]),
1796
1799
  I(Tt, {
1797
1800
  modelValue: c(s).welcomeMessage,
1798
- "onUpdate:modelValue": u[6] || (u[6] = (E) => c(s).welcomeMessage = E),
1799
- variables: c(M),
1801
+ "onUpdate:modelValue": y[6] || (y[6] = (_) => c(s).welcomeMessage = _),
1802
+ variables: c(B),
1800
1803
  placeholder: "Hi there, you have been invited to join membership"
1801
1804
  }, null, 8, ["modelValue", "variables"])
1802
1805
  ]),
1803
- w("div", jn, [
1804
- u[15] || (u[15] = w("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
1805
- u[16] || (u[16] = w("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Email address that will be used to send email broadcast ", -1)),
1806
- c(m).length ? ce("", !0) : (x(), fe(z, {
1806
+ w("div", qn, [
1807
+ Gn,
1808
+ Qn,
1809
+ c(f).length ? ce("", !0) : (x(), fe(z, {
1807
1810
  key: 0,
1808
1811
  onClick: F,
1809
1812
  label: "Add new email address"
1810
1813
  })),
1811
- c(m).length ? (x(), q(ae, { key: 1 }, [
1814
+ c(f).length ? (x(), q(le, { key: 1 }, [
1812
1815
  I(vt, {
1813
1816
  "model-value": ((xe = (Ve = c(s)) == null ? void 0 : Ve.email) == null ? void 0 : xe.from) || null,
1814
1817
  label: "From Address",
1815
- items: c(m).map((E) => ({
1816
- label: E.emailAddress,
1817
- value: E.emailAddress
1818
+ items: c(f).map((_) => ({
1819
+ label: _.emailAddress,
1820
+ value: _.emailAddress
1818
1821
  })),
1819
- placeholder: c(B) ? c(B).emailAddress : "No email address available",
1820
- "onUpdate:modelValue": u[7] || (u[7] = (E) => {
1822
+ placeholder: c(A) ? c(A).emailAddress : "No email address available",
1823
+ "onUpdate:modelValue": y[7] || (y[7] = (_) => {
1821
1824
  var T, k;
1822
1825
  (T = c(s)) != null && T.email || (c(s).email = {
1823
- from: E,
1824
- name: (k = c(m).find((J) => J.emailAddress == E)) == null ? void 0 : k.name
1825
- }), c(s).email.from = E || null;
1826
+ from: _,
1827
+ name: (k = c(f).find((J) => J.emailAddress == _)) == null ? void 0 : k.name
1828
+ }), c(s).email.from = _ || null;
1826
1829
  }),
1827
- rules: [c(Oe).ruleAtPath(c(g), "email.from")]
1830
+ rules: [c(Oe).ruleAtPath(c(m), "email.from")]
1828
1831
  }, null, 8, ["model-value", "items", "placeholder", "rules"]),
1829
1832
  I(K, {
1830
1833
  "model-value": ((ze = ($e = c(s)) == null ? void 0 : $e.email) == null ? void 0 : ze.name) || null,
1831
1834
  label: "Sender name",
1832
1835
  disabled: "",
1833
- placeholder: ((He = c(B)) == null ? void 0 : He.name) || null,
1834
- "onUpdate:modelValue": u[8] || (u[8] = (E) => {
1836
+ placeholder: ((He = c(A)) == null ? void 0 : He.name) || null,
1837
+ "onUpdate:modelValue": y[8] || (y[8] = (_) => {
1835
1838
  var T;
1836
1839
  (T = c(s)) != null && T.email || (c(s).email = {
1837
- name: E
1838
- }), c(s).email.name = E || null;
1840
+ name: _
1841
+ }), c(s).email.name = _ || null;
1839
1842
  }),
1840
- rules: [c(Oe).ruleAtPath(c(g), "email.name")]
1843
+ rules: [c(Oe).ruleAtPath(c(m), "email.name")]
1841
1844
  }, null, 8, ["model-value", "placeholder", "rules"])
1842
1845
  ], 64)) : ce("", !0)
1843
1846
  ]),
1844
- w("div", Jn, [
1845
- u[17] || (u[17] = w("div", { class: "fm-typo-en-title-sm-800" }, [
1846
- te(" Free Credit as Discount "),
1847
- w("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
1848
- ], -1)),
1847
+ w("div", Xn, [
1848
+ Zn,
1849
1849
  I(ve, {
1850
1850
  "model-value": c(s).freeCreditAsDiscount ?? !1,
1851
- "onUpdate:modelValue": u[9] || (u[9] = (E) => c(s).freeCreditAsDiscount = E),
1851
+ "onUpdate:modelValue": y[9] || (y[9] = (_) => c(s).freeCreditAsDiscount = _),
1852
1852
  label: "Free Credit as Discount",
1853
1853
  sublabel: "When enabled, this will allow free credit to be used as discount in the bill (POS >=v6.56)",
1854
1854
  "label-placement": "right",
1855
1855
  value: ""
1856
1856
  }, null, 8, ["model-value"])
1857
1857
  ]),
1858
- w("div", qn, [
1859
- w("div", Gn, [
1860
- u[18] || (u[18] = te(" Member Card ")),
1858
+ w("div", Wn, [
1859
+ w("div", eo, [
1860
+ ne(" Member Card "),
1861
1861
  I(ee, { variant: "premium" })
1862
1862
  ]),
1863
1863
  I(ve, {
1864
1864
  "model-value": c(s).cardEnable ?? !1,
1865
- "onUpdate:modelValue": u[10] || (u[10] = (E) => c(s).cardEnable = E),
1865
+ "onUpdate:modelValue": y[10] || (y[10] = (_) => c(s).cardEnable = _),
1866
1866
  label: "",
1867
1867
  sublabel: "Allow member to bind card via member app",
1868
1868
  "label-placement": "right",
@@ -1870,15 +1870,15 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1870
1870
  disabled: !c(r).isPremium
1871
1871
  }, null, 8, ["model-value", "disabled"])
1872
1872
  ]),
1873
- w("div", Qn, [
1874
- u[19] || (u[19] = w("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1)),
1873
+ w("div", to, [
1874
+ no,
1875
1875
  I(It, {
1876
1876
  label: "Select restaurant",
1877
1877
  "model-value": c(s).targetLocation ?? null,
1878
- "onUpdate:modelValue": u[11] || (u[11] = (E) => c(s).targetLocation = E)
1878
+ "onUpdate:modelValue": y[11] || (y[11] = (_) => c(s).targetLocation = _)
1879
1879
  }, null, 8, ["model-value"])
1880
1880
  ]),
1881
- w("div", Xn, [
1881
+ w("div", oo, [
1882
1882
  I(z, {
1883
1883
  label: "Update",
1884
1884
  type: "button",
@@ -1889,32 +1889,32 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1889
1889
  ])
1890
1890
  ])
1891
1891
  ]),
1892
- w("div", Zn, [
1892
+ w("div", ro, [
1893
1893
  I(j, {
1894
1894
  variant: "outlined",
1895
1895
  class: "flex flex-col p-24 gap-8"
1896
1896
  }, {
1897
- default: ne(() => {
1898
- var E, T, k;
1897
+ default: te(() => {
1898
+ var _, T, k;
1899
1899
  return [
1900
- u[24] || (u[24] = w("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1)),
1900
+ io,
1901
1901
  I(Ct, { class: "my-4" }),
1902
1902
  w("div", null, [
1903
- u[20] || (u[20] = w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1)),
1904
- w("div", Wn, D(c(s).name), 1)
1903
+ so,
1904
+ w("div", ao, D(c(s).name), 1)
1905
1905
  ]),
1906
1906
  w("div", null, [
1907
- u[21] || (u[21] = w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1)),
1908
- w("div", eo, D((((E = c(s).advertisements) == null ? void 0 : E.length) ?? 0) || "No advertisments"), 1)
1907
+ lo,
1908
+ w("div", co, D((((_ = c(s).advertisements) == null ? void 0 : _.length) ?? 0) || "No advertisments"), 1)
1909
1909
  ]),
1910
1910
  w("div", null, [
1911
- u[22] || (u[22] = w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1)),
1912
- w("div", to, D(c(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
1911
+ uo,
1912
+ w("div", fo, D(c(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
1913
1913
  ]),
1914
1914
  w("div", null, [
1915
- u[23] || (u[23] = w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1)),
1916
- w("div", no, D(!c(s).targetLocation || c(s).targetLocation.length == c(Se)().locations.length ? "All locations" : (k = (T = c(s)) == null ? void 0 : T.targetLocation) == null ? void 0 : k.map(
1917
- (J) => c(r).locations.find((le) => le._id == J).name
1915
+ mo,
1916
+ w("div", go, D(!c(s).targetLocation || c(s).targetLocation.length == c(Me)().locations.length ? "All locations" : (k = (T = c(s)) == null ? void 0 : T.targetLocation) == null ? void 0 : k.map(
1917
+ (J) => c(r).locations.find((ae) => ae._id == J).name
1918
1918
  ).join(", ")), 1)
1919
1919
  ])
1920
1920
  ];
@@ -1928,5 +1928,5 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1928
1928
  }
1929
1929
  });
1930
1930
  export {
1931
- Bo as default
1931
+ Ro as default
1932
1932
  };