@feedmepos/mf-connect 0.0.12-beta.1 → 0.0.12-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 (69) hide show
  1. package/dist/{Analytic-DCypPSCk.js → Analytic-BM9j4mcq.js} +66 -67
  2. package/dist/{Broadcast-BiXJ08OV.js → Broadcast-5a7_nlK2.js} +7 -7
  3. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CG-T97J3.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B_Qo6Zw4.js} +8 -8
  4. package/dist/{Card-BWA16Yvc.js → Card-D2KXsf6D.js} +121 -121
  5. package/dist/{Collections-CeOCRniu.js → Collections-rsGMKAaE.js} +129 -141
  6. package/dist/{Credit-yiXs0edD.js → Credit-BnHW4aAx.js} +7 -7
  7. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C8jMdyF8.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CBbNUBWX.js} +22 -24
  8. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DZ8DT8XN.js → EffectSheet.vue_vue_type_style_index_0_lang-Bj3dHqjH.js} +6 -6
  9. package/dist/{Experience-zOzaxMlr.js → Experience-DZ3QmVqZ.js} +7 -7
  10. package/dist/{Game-BO2phNz6.js → Game-DKCrkTue.js} +7 -7
  11. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BksWmv66.js → ImageInput.vue_vue_type_script_setup_true_lang-ChLUJK77.js} +1 -1
  12. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-rKwqVIRl.js → MainLayout-C4tOUQYb.js} +53 -20
  13. package/dist/{Marketing-IUflGjY9.js → Marketing-CgOPXO0b.js} +25 -25
  14. package/dist/{Member-B1g0QDuZ.js → Member-DgJzz-qV.js} +2 -2
  15. package/dist/MemberList-BNIpWj0x.js +1718 -0
  16. package/dist/{MemberTransactions-DeUgZhWj.js → MemberTransactions-BEYEel4q.js} +2 -2
  17. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-BJ1wLWMO.js +203 -0
  18. package/dist/{Mission-BbBIzoSj.js → Mission-V53rL7XT.js} +7 -7
  19. package/dist/{Point-BoWE9-OF.js → Point-BE7sbUpv.js} +7 -7
  20. package/dist/{Promotion-CEKdy76f.js → Promotion-A23HHyAW.js} +8 -8
  21. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-fXEWwI4A.js → RuleGroup.vue_vue_type_script_setup_true_lang-CzOiRmO3.js} +14 -14
  22. package/dist/{Segment-DcvfWqAn.js → Segment-OjThR8-l.js} +18 -19
  23. package/dist/{Setting-BANOT6SA.js → Setting-Cv5FJWCG.js} +541 -571
  24. package/dist/Store-DQoSb0vC.js +1442 -0
  25. package/dist/{StoreRewards-CCvwfnOm.js → StoreRewards-DHdtRsdr.js} +74 -75
  26. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CmrTA4-4.js → StoreTransactions.vue_vue_type_script_setup_true_lang-8BxMxOgb.js} +6 -6
  27. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DEzXVza9.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-B6DvQL2O.js} +1 -1
  28. package/dist/{Tier-ZdU-11IW.js → Tier-BWbAvEvT.js} +68 -71
  29. package/dist/{Title-blrd1TJo.js → Title-DuMvJSeo.js} +75 -78
  30. package/dist/{Transaction-DQAULKi7.js → Transaction-Dh9hUxxn.js} +1 -1
  31. package/dist/{Voucher-CYNCWSMT.js → Voucher-CDj33EVW.js} +37 -37
  32. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
  33. package/dist/{app-tsDuwC_C.js → app-C-JARJOh.js} +1 -1
  34. package/dist/{app-DF3bTQH0.js → app-CJmGoLdT.js} +46 -46
  35. package/dist/app.js +1 -1
  36. package/dist/{campaign-c02TRgUx.js → campaign-0ym0cymh.js} +11 -13
  37. package/dist/{collection.fn-B6B0oNGr.js → collection.fn-DHlfGYAC.js} +2 -4
  38. package/dist/{dto-DWMeu-Hm.js → dto-DHLYS7Rm.js} +239 -239
  39. package/dist/{effect-CaLNCyhR.js → effect-lIau3gAr.js} +1 -1
  40. package/dist/{export-Bz6PLxJ9.js → export-C2z8mAAK.js} +3 -3
  41. package/dist/{helper-B2o3ew7J.js → helper-Dk7nQLD9.js} +1 -1
  42. package/dist/{index-BxtNSMK4.js → index-BacICqbE.js} +217 -232
  43. package/dist/{index-DPo8jwQP.js → index-BiKKeruN.js} +1 -1
  44. package/dist/{index-DTd_z4wT.js → index-BifZnXOd.js} +7 -7
  45. package/dist/{index-DaQFDFz-.js → index-BuYuArTc.js} +2 -2
  46. package/dist/{index-BToo2gFr.js → index-CoNWSPv-.js} +1 -1
  47. package/dist/{index-BChayEiC.js → index-CwRopfKJ.js} +68 -105
  48. package/dist/{index-CCfSx-gc.js → index-DBs-f_OF.js} +27 -28
  49. package/dist/{index-CTGAvDfj.js → index-DrekSEPv.js} +36 -43
  50. package/dist/{index-D0Ya3m-m.js → index-Dy-njFA-.js} +1 -1
  51. package/dist/{index-nmfbRO9K.js → index-jXbGzZIZ.js} +1 -1
  52. package/dist/{loading-CZwfD-e9.js → loading-C0Im7NLc.js} +4 -4
  53. package/dist/{lodash-Cc_bj1bL.js → lodash-DRiB9OLu.js} +1 -1
  54. package/dist/{membership-qjZf5wAq.js → membership-BWDFt2D0.js} +3 -3
  55. package/dist/{money-3UQ9c3mO.js → money-CgXcfonm.js} +1 -1
  56. package/dist/{number-WEVutPPD.js → number-B0SphtT-.js} +3 -3
  57. package/dist/{rule-D0BranxC.js → rule-CWGFyRio.js} +2 -2
  58. package/dist/{rule-builder-YrjEqgOu.js → rule-builder-C484wKRf.js} +1 -1
  59. package/dist/style.css +1 -1
  60. package/dist/{template-CiXPt8Gv.js → template-DDHe5agw.js} +6 -6
  61. package/dist/{usePagination-D-zzWGQR.js → usePagination-D0-ih-vZ.js} +1 -1
  62. package/dist/{xlsx-CEATNjcT.js → xlsx-D9dXZPK6.js} +309 -309
  63. package/package.json +1 -1
  64. package/dist/MainLayout-q19w--ta.js +0 -41
  65. package/dist/MemberList-DxfLply-.js +0 -1729
  66. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Bd8FRdKw.js +0 -432
  67. package/dist/Store-LIm_vhSQ.js +0 -1456
  68. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js +0 -55
  69. package/dist/zod-W_PvIofQ.js +0 -90
@@ -1,22 +1,21 @@
1
- import { defineComponent as ze, ref as H, computed as se, onMounted as He, resolveComponent as F, openBlock as V, createBlock as be, withCtx as Q, createElementVNode as w, createVNode as M, unref as u, isRef as Ke, createElementBlock as G, Fragment as me, createTextVNode as W, toDisplayString as k, renderList as Fe, createCommentVNode as Re } from "vue";
2
- import { h as ut } from "./moment-BWErdI6_.js";
3
- import { Z as De } from "./zod-W_PvIofQ.js";
4
- import { useDialog as Oe } from "@feedmepos/ui-library";
5
- import { a as Ye, u as dt, p as ft, f as O } from "./loading-CZwfD-e9.js";
6
- import { a as ve, l as je, u as mt } from "./app-DF3bTQH0.js";
7
- import { u as Je } from "./membership-qjZf5wAq.js";
8
- import { m as gt, l as ht } from "./index-CTGAvDfj.js";
9
- import { _ as ke } from "./ImageInput.vue_vue_type_script_setup_true_lang-BksWmv66.js";
10
- import { _ as pt } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DEzXVza9.js";
11
- import { _ as yt } from "./MessageInput.vue_vue_type_script_setup_true_lang-Bd8FRdKw.js";
12
- import { m as wt } from "./index-DPo8jwQP.js";
13
- import { o as bt } from "./objectId-dwaoBfJX.js";
14
- import { a as vt } from "./object-qECH92oz.js";
15
- var ee = {}, Ct = function() {
1
+ import { defineComponent as Re, ref as z, computed as ie, onMounted as De, resolveComponent as U, openBlock as V, createBlock as we, withCtx as G, createElementVNode as b, createVNode as M, unref as m, isRef as ke, createElementBlock as q, Fragment as fe, createTextVNode as Q, toDisplayString as k, renderList as Ie, createCommentVNode as Pe } from "vue";
2
+ import { h as rt } from "./moment-BWErdI6_.js";
3
+ import { useDialog as Ve } from "@feedmepos/ui-library";
4
+ import { a as xe, u as it, p as st, f as K } from "./loading-C0Im7NLc.js";
5
+ import { a as be, l as $e, u as at } from "./app-CJmGoLdT.js";
6
+ import { u as ze } from "./membership-BWDFt2D0.js";
7
+ import { l as lt } from "./index-DrekSEPv.js";
8
+ import { _ as Ne } from "./ImageInput.vue_vue_type_script_setup_true_lang-ChLUJK77.js";
9
+ import { _ as ct } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-B6DvQL2O.js";
10
+ import { _ as ut } from "./MessageInput.vue_vue_type_script_setup_true_lang-BJ1wLWMO.js";
11
+ import { m as dt } from "./index-BiKKeruN.js";
12
+ import { o as ft } from "./objectId-dwaoBfJX.js";
13
+ import { a as gt } from "./object-qECH92oz.js";
14
+ var Z = {}, ht = function() {
16
15
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
17
- }, qe = {}, U = {};
18
- let Ae;
19
- const _t = [
16
+ }, He = {}, I = {};
17
+ let Be;
18
+ const mt = [
20
19
  0,
21
20
  // Not used
22
21
  26,
@@ -60,32 +59,32 @@ const _t = [
60
59
  3532,
61
60
  3706
62
61
  ];
63
- U.getSymbolSize = function(e) {
62
+ I.getSymbolSize = function(e) {
64
63
  if (!e) throw new Error('"version" cannot be null or undefined');
65
64
  if (e < 1 || e > 40) throw new Error('"version" should be in range from 1 to 40');
66
65
  return e * 4 + 17;
67
66
  };
68
- U.getSymbolTotalCodewords = function(e) {
69
- return _t[e];
67
+ I.getSymbolTotalCodewords = function(e) {
68
+ return mt[e];
70
69
  };
71
- U.getBCHDigit = function(t) {
70
+ I.getBCHDigit = function(t) {
72
71
  let e = 0;
73
72
  for (; t !== 0; )
74
73
  e++, t >>>= 1;
75
74
  return e;
76
75
  };
77
- U.setToSJISFunction = function(e) {
76
+ I.setToSJISFunction = function(e) {
78
77
  if (typeof e != "function")
79
78
  throw new Error('"toSJISFunc" is not a valid function.');
80
- Ae = e;
79
+ Be = e;
81
80
  };
82
- U.isKanjiModeEnabled = function() {
83
- return typeof Ae < "u";
81
+ I.isKanjiModeEnabled = function() {
82
+ return typeof Be < "u";
84
83
  };
85
- U.toSJIS = function(e) {
86
- return Ae(e);
84
+ I.toSJIS = function(e) {
85
+ return Be(e);
87
86
  };
88
- var ce = {};
87
+ var le = {};
89
88
  (function(t) {
90
89
  t.L = { bit: 1 }, t.M = { bit: 0 }, t.Q = { bit: 3 }, t.H = { bit: 2 };
91
90
  function e(i) {
@@ -119,11 +118,11 @@ var ce = {};
119
118
  return o;
120
119
  }
121
120
  };
122
- })(ce);
123
- function Ge() {
121
+ })(le);
122
+ function Ke() {
124
123
  this.buffer = [], this.length = 0;
125
124
  }
126
- Ge.prototype = {
125
+ Ke.prototype = {
127
126
  get: function(t) {
128
127
  const e = Math.floor(t / 8);
129
128
  return (this.buffer[e] >>> 7 - t % 8 & 1) === 1;
@@ -140,28 +139,28 @@ Ge.prototype = {
140
139
  this.buffer.length <= e && this.buffer.push(0), t && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;
141
140
  }
142
141
  };
143
- var Et = Ge;
144
- function te(t) {
142
+ var pt = Ke;
143
+ function ee(t) {
145
144
  if (!t || t < 1)
146
145
  throw new Error("BitMatrix size must be defined and greater than 0");
147
146
  this.size = t, this.data = new Uint8Array(t * t), this.reservedBit = new Uint8Array(t * t);
148
147
  }
149
- te.prototype.set = function(t, e, i, r) {
148
+ ee.prototype.set = function(t, e, i, r) {
150
149
  const o = t * this.size + e;
151
150
  this.data[o] = i, r && (this.reservedBit[o] = !0);
152
151
  };
153
- te.prototype.get = function(t, e) {
152
+ ee.prototype.get = function(t, e) {
154
153
  return this.data[t * this.size + e];
155
154
  };
156
- te.prototype.xor = function(t, e, i) {
155
+ ee.prototype.xor = function(t, e, i) {
157
156
  this.data[t * this.size + e] ^= i;
158
157
  };
159
- te.prototype.isReserved = function(t, e) {
158
+ ee.prototype.isReserved = function(t, e) {
160
159
  return this.reservedBit[t * this.size + e];
161
160
  };
162
- var Bt = te, Qe = {};
161
+ var yt = ee, Oe = {};
163
162
  (function(t) {
164
- const e = U.getSymbolSize;
163
+ const e = I.getSymbolSize;
165
164
  t.getRowColCoords = function(r) {
166
165
  if (r === 1) return [];
167
166
  const o = Math.floor(r / 7) + 2, n = e(r), a = n === 145 ? 26 : Math.ceil((n - 13) / (2 * o - 2)) * 2, s = [n - 7];
@@ -177,21 +176,21 @@ var Bt = te, Qe = {};
177
176
  s === a - 1 && l === 0 || o.push([n[s], n[l]]);
178
177
  return o;
179
178
  };
180
- })(Qe);
181
- var We = {};
182
- const At = U.getSymbolSize, Ve = 7;
183
- We.getPositions = function(e) {
184
- const i = At(e);
179
+ })(Oe);
180
+ var Ye = {};
181
+ const wt = I.getSymbolSize, Le = 7;
182
+ Ye.getPositions = function(e) {
183
+ const i = wt(e);
185
184
  return [
186
185
  // top-left
187
186
  [0, 0],
188
187
  // top-right
189
- [i - Ve, 0],
188
+ [i - Le, 0],
190
189
  // bottom-left
191
- [0, i - Ve]
190
+ [0, i - Le]
192
191
  ];
193
192
  };
194
- var Xe = {};
193
+ var je = {};
195
194
  (function(t) {
196
195
  t.Patterns = {
197
196
  PATTERN000: 0,
@@ -215,12 +214,12 @@ var Xe = {};
215
214
  return t.isValid(o) ? parseInt(o, 10) : void 0;
216
215
  }, t.getPenaltyN1 = function(o) {
217
216
  const n = o.size;
218
- let a = 0, s = 0, l = 0, m = null, g = null;
217
+ let a = 0, s = 0, l = 0, f = null, g = null;
219
218
  for (let B = 0; B < n; B++) {
220
- s = l = 0, m = g = null;
219
+ s = l = 0, f = g = null;
221
220
  for (let h = 0; h < n; h++) {
222
- let d = o.get(B, h);
223
- d === m ? s++ : (s >= 5 && (a += e.N1 + (s - 5)), m = d, s = 1), d = o.get(h, B), d === g ? l++ : (l >= 5 && (a += e.N1 + (l - 5)), g = d, l = 1);
221
+ let u = o.get(B, h);
222
+ u === f ? s++ : (s >= 5 && (a += e.N1 + (s - 5)), f = u, s = 1), u = o.get(h, B), u === g ? l++ : (l >= 5 && (a += e.N1 + (l - 5)), g = u, l = 1);
224
223
  }
225
224
  s >= 5 && (a += e.N1 + (s - 5)), l >= 5 && (a += e.N1 + (l - 5));
226
225
  }
@@ -230,17 +229,17 @@ var Xe = {};
230
229
  let a = 0;
231
230
  for (let s = 0; s < n - 1; s++)
232
231
  for (let l = 0; l < n - 1; l++) {
233
- const m = o.get(s, l) + o.get(s, l + 1) + o.get(s + 1, l) + o.get(s + 1, l + 1);
234
- (m === 4 || m === 0) && a++;
232
+ const f = o.get(s, l) + o.get(s, l + 1) + o.get(s + 1, l) + o.get(s + 1, l + 1);
233
+ (f === 4 || f === 0) && a++;
235
234
  }
236
235
  return a * e.N2;
237
236
  }, t.getPenaltyN3 = function(o) {
238
237
  const n = o.size;
239
238
  let a = 0, s = 0, l = 0;
240
- for (let m = 0; m < n; m++) {
239
+ for (let f = 0; f < n; f++) {
241
240
  s = l = 0;
242
241
  for (let g = 0; g < n; g++)
243
- s = s << 1 & 2047 | o.get(m, g), g >= 10 && (s === 1488 || s === 93) && a++, l = l << 1 & 2047 | o.get(g, m), g >= 10 && (l === 1488 || l === 93) && a++;
242
+ s = s << 1 & 2047 | o.get(f, g), g >= 10 && (s === 1488 || s === 93) && a++, l = l << 1 & 2047 | o.get(g, f), g >= 10 && (l === 1488 || l === 93) && a++;
244
243
  }
245
244
  return a * e.N3;
246
245
  }, t.getPenaltyN4 = function(o) {
@@ -279,16 +278,16 @@ var Xe = {};
279
278
  }, t.getBestMask = function(o, n) {
280
279
  const a = Object.keys(t.Patterns).length;
281
280
  let s = 0, l = 1 / 0;
282
- for (let m = 0; m < a; m++) {
283
- n(m), t.applyMask(m, o);
281
+ for (let f = 0; f < a; f++) {
282
+ n(f), t.applyMask(f, o);
284
283
  const g = t.getPenaltyN1(o) + t.getPenaltyN2(o) + t.getPenaltyN3(o) + t.getPenaltyN4(o);
285
- t.applyMask(m, o), g < l && (l = g, s = m);
284
+ t.applyMask(f, o), g < l && (l = g, s = f);
286
285
  }
287
286
  return s;
288
287
  };
289
- })(Xe);
290
- var ue = {};
291
- const x = ce, re = [
288
+ })(je);
289
+ var ce = {};
290
+ const x = le, oe = [
292
291
  // L M Q H
293
292
  1,
294
293
  1,
@@ -450,7 +449,7 @@ const x = ce, re = [
450
449
  49,
451
450
  68,
452
451
  81
453
- ], ie = [
452
+ ], re = [
454
453
  // L M Q H
455
454
  7,
456
455
  10,
@@ -613,55 +612,55 @@ const x = ce, re = [
613
612
  2040,
614
613
  2430
615
614
  ];
616
- ue.getBlocksCount = function(e, i) {
615
+ ce.getBlocksCount = function(e, i) {
617
616
  switch (i) {
618
617
  case x.L:
619
- return re[(e - 1) * 4 + 0];
618
+ return oe[(e - 1) * 4 + 0];
620
619
  case x.M:
621
- return re[(e - 1) * 4 + 1];
620
+ return oe[(e - 1) * 4 + 1];
622
621
  case x.Q:
623
- return re[(e - 1) * 4 + 2];
622
+ return oe[(e - 1) * 4 + 2];
624
623
  case x.H:
625
- return re[(e - 1) * 4 + 3];
624
+ return oe[(e - 1) * 4 + 3];
626
625
  default:
627
626
  return;
628
627
  }
629
628
  };
630
- ue.getTotalCodewordsCount = function(e, i) {
629
+ ce.getTotalCodewordsCount = function(e, i) {
631
630
  switch (i) {
632
631
  case x.L:
633
- return ie[(e - 1) * 4 + 0];
632
+ return re[(e - 1) * 4 + 0];
634
633
  case x.M:
635
- return ie[(e - 1) * 4 + 1];
634
+ return re[(e - 1) * 4 + 1];
636
635
  case x.Q:
637
- return ie[(e - 1) * 4 + 2];
636
+ return re[(e - 1) * 4 + 2];
638
637
  case x.H:
639
- return ie[(e - 1) * 4 + 3];
638
+ return re[(e - 1) * 4 + 3];
640
639
  default:
641
640
  return;
642
641
  }
643
642
  };
644
- var Ze = {}, de = {};
645
- const X = new Uint8Array(512), ae = new Uint8Array(256);
643
+ var Je = {}, ue = {};
644
+ const X = new Uint8Array(512), se = new Uint8Array(256);
646
645
  (function() {
647
646
  let e = 1;
648
647
  for (let i = 0; i < 255; i++)
649
- X[i] = e, ae[e] = i, e <<= 1, e & 256 && (e ^= 285);
648
+ X[i] = e, se[e] = i, e <<= 1, e & 256 && (e ^= 285);
650
649
  for (let i = 255; i < 512; i++)
651
650
  X[i] = X[i - 255];
652
651
  })();
653
- de.log = function(e) {
652
+ ue.log = function(e) {
654
653
  if (e < 1) throw new Error("log(" + e + ")");
655
- return ae[e];
654
+ return se[e];
656
655
  };
657
- de.exp = function(e) {
656
+ ue.exp = function(e) {
658
657
  return X[e];
659
658
  };
660
- de.mul = function(e, i) {
661
- return e === 0 || i === 0 ? 0 : X[ae[e] + ae[i]];
659
+ ue.mul = function(e, i) {
660
+ return e === 0 || i === 0 ? 0 : X[se[e] + se[i]];
662
661
  };
663
662
  (function(t) {
664
- const e = de;
663
+ const e = ue;
665
664
  t.mul = function(r, o) {
666
665
  const n = new Uint8Array(r.length + o.length - 1);
667
666
  for (let a = 0; a < r.length; a++)
@@ -685,53 +684,53 @@ de.mul = function(e, i) {
685
684
  o = t.mul(o, new Uint8Array([1, e.exp(n)]));
686
685
  return o;
687
686
  };
688
- })(Ze);
689
- const et = Ze;
690
- function Me(t) {
687
+ })(Je);
688
+ const qe = Je;
689
+ function Ae(t) {
691
690
  this.genPoly = void 0, this.degree = t, this.degree && this.initialize(this.degree);
692
691
  }
693
- Me.prototype.initialize = function(e) {
694
- this.degree = e, this.genPoly = et.generateECPolynomial(this.degree);
692
+ Ae.prototype.initialize = function(e) {
693
+ this.degree = e, this.genPoly = qe.generateECPolynomial(this.degree);
695
694
  };
696
- Me.prototype.encode = function(e) {
695
+ Ae.prototype.encode = function(e) {
697
696
  if (!this.genPoly)
698
697
  throw new Error("Encoder not initialized");
699
698
  const i = new Uint8Array(e.length + this.degree);
700
699
  i.set(e);
701
- const r = et.mod(i, this.genPoly), o = this.degree - r.length;
700
+ const r = qe.mod(i, this.genPoly), o = this.degree - r.length;
702
701
  if (o > 0) {
703
702
  const n = new Uint8Array(this.degree);
704
703
  return n.set(r, o), n;
705
704
  }
706
705
  return r;
707
706
  };
708
- var Mt = Me, tt = {}, $ = {}, Se = {};
709
- Se.isValid = function(e) {
707
+ var bt = Ae, Ge = {}, $ = {}, Me = {};
708
+ Me.isValid = function(e) {
710
709
  return !isNaN(e) && e >= 1 && e <= 40;
711
710
  };
712
- var R = {};
713
- const nt = "[0-9]+", St = "[A-Z $%*+\\-./:]+";
714
- let Z = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
715
- Z = Z.replace(/u/g, "\\u");
716
- const Tt = "(?:(?![A-Z0-9 $%*+\\-./:]|" + Z + `)(?:.|[\r
711
+ var F = {};
712
+ const Qe = "[0-9]+", vt = "[A-Z $%*+\\-./:]+";
713
+ let W = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
714
+ W = W.replace(/u/g, "\\u");
715
+ const Ct = "(?:(?![A-Z0-9 $%*+\\-./:]|" + W + `)(?:.|[\r
717
716
  ]))+`;
718
- R.KANJI = new RegExp(Z, "g");
719
- R.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
720
- R.BYTE = new RegExp(Tt, "g");
721
- R.NUMERIC = new RegExp(nt, "g");
722
- R.ALPHANUMERIC = new RegExp(St, "g");
723
- const Pt = new RegExp("^" + Z + "$"), It = new RegExp("^" + nt + "$"), Nt = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
724
- R.testKanji = function(e) {
725
- return Pt.test(e);
717
+ F.KANJI = new RegExp(W, "g");
718
+ F.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
719
+ F.BYTE = new RegExp(Ct, "g");
720
+ F.NUMERIC = new RegExp(Qe, "g");
721
+ F.ALPHANUMERIC = new RegExp(vt, "g");
722
+ const _t = new RegExp("^" + W + "$"), Et = new RegExp("^" + Qe + "$"), Bt = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
723
+ F.testKanji = function(e) {
724
+ return _t.test(e);
726
725
  };
727
- R.testNumeric = function(e) {
728
- return It.test(e);
726
+ F.testNumeric = function(e) {
727
+ return Et.test(e);
729
728
  };
730
- R.testAlphanumeric = function(e) {
731
- return Nt.test(e);
729
+ F.testAlphanumeric = function(e) {
730
+ return Bt.test(e);
732
731
  };
733
732
  (function(t) {
734
- const e = Se, i = R;
733
+ const e = Me, i = F;
735
734
  t.NUMERIC = {
736
735
  id: "Numeric",
737
736
  bit: 1,
@@ -790,100 +789,100 @@ R.testAlphanumeric = function(e) {
790
789
  };
791
790
  })($);
792
791
  (function(t) {
793
- const e = U, i = ue, r = ce, o = $, n = Se, a = 7973, s = e.getBCHDigit(a);
794
- function l(h, d, y) {
792
+ const e = I, i = ce, r = le, o = $, n = Me, a = 7973, s = e.getBCHDigit(a);
793
+ function l(h, u, w) {
795
794
  for (let v = 1; v <= 40; v++)
796
- if (d <= t.getCapacity(v, y, h))
795
+ if (u <= t.getCapacity(v, w, h))
797
796
  return v;
798
797
  }
799
- function m(h, d) {
800
- return o.getCharCountIndicator(h, d) + 4;
798
+ function f(h, u) {
799
+ return o.getCharCountIndicator(h, u) + 4;
801
800
  }
802
- function g(h, d) {
803
- let y = 0;
801
+ function g(h, u) {
802
+ let w = 0;
804
803
  return h.forEach(function(v) {
805
- const S = m(v.mode, d);
806
- y += S + v.getBitsLength();
807
- }), y;
804
+ const S = f(v.mode, u);
805
+ w += S + v.getBitsLength();
806
+ }), w;
808
807
  }
809
- function B(h, d) {
810
- for (let y = 1; y <= 40; y++)
811
- if (g(h, y) <= t.getCapacity(y, d, o.MIXED))
812
- return y;
808
+ function B(h, u) {
809
+ for (let w = 1; w <= 40; w++)
810
+ if (g(h, w) <= t.getCapacity(w, u, o.MIXED))
811
+ return w;
813
812
  }
814
- t.from = function(d, y) {
815
- return n.isValid(d) ? parseInt(d, 10) : y;
816
- }, t.getCapacity = function(d, y, v) {
817
- if (!n.isValid(d))
813
+ t.from = function(u, w) {
814
+ return n.isValid(u) ? parseInt(u, 10) : w;
815
+ }, t.getCapacity = function(u, w, v) {
816
+ if (!n.isValid(u))
818
817
  throw new Error("Invalid QR Code version");
819
818
  typeof v > "u" && (v = o.BYTE);
820
- const S = e.getSymbolTotalCodewords(d), p = i.getTotalCodewordsCount(d, y), b = (S - p) * 8;
821
- if (v === o.MIXED) return b;
822
- const f = b - m(v, d);
819
+ const S = e.getSymbolTotalCodewords(u), y = i.getTotalCodewordsCount(u, w), d = (S - y) * 8;
820
+ if (v === o.MIXED) return d;
821
+ const c = d - f(v, u);
823
822
  switch (v) {
824
823
  case o.NUMERIC:
825
- return Math.floor(f / 10 * 3);
824
+ return Math.floor(c / 10 * 3);
826
825
  case o.ALPHANUMERIC:
827
- return Math.floor(f / 11 * 2);
826
+ return Math.floor(c / 11 * 2);
828
827
  case o.KANJI:
829
- return Math.floor(f / 13);
828
+ return Math.floor(c / 13);
830
829
  case o.BYTE:
831
830
  default:
832
- return Math.floor(f / 8);
831
+ return Math.floor(c / 8);
833
832
  }
834
- }, t.getBestVersionForData = function(d, y) {
833
+ }, t.getBestVersionForData = function(u, w) {
835
834
  let v;
836
- const S = r.from(y, r.M);
837
- if (Array.isArray(d)) {
838
- if (d.length > 1)
839
- return B(d, S);
840
- if (d.length === 0)
835
+ const S = r.from(w, r.M);
836
+ if (Array.isArray(u)) {
837
+ if (u.length > 1)
838
+ return B(u, S);
839
+ if (u.length === 0)
841
840
  return 1;
842
- v = d[0];
841
+ v = u[0];
843
842
  } else
844
- v = d;
843
+ v = u;
845
844
  return l(v.mode, v.getLength(), S);
846
- }, t.getEncodedBits = function(d) {
847
- if (!n.isValid(d) || d < 7)
845
+ }, t.getEncodedBits = function(u) {
846
+ if (!n.isValid(u) || u < 7)
848
847
  throw new Error("Invalid QR Code version");
849
- let y = d << 12;
850
- for (; e.getBCHDigit(y) - s >= 0; )
851
- y ^= a << e.getBCHDigit(y) - s;
852
- return d << 12 | y;
848
+ let w = u << 12;
849
+ for (; e.getBCHDigit(w) - s >= 0; )
850
+ w ^= a << e.getBCHDigit(w) - s;
851
+ return u << 12 | w;
853
852
  };
854
- })(tt);
855
- var ot = {};
856
- const Ce = U, rt = 1335, Ut = 21522, xe = Ce.getBCHDigit(rt);
857
- ot.getEncodedBits = function(e, i) {
853
+ })(Ge);
854
+ var Xe = {};
855
+ const ve = I, We = 1335, At = 21522, Ue = ve.getBCHDigit(We);
856
+ Xe.getEncodedBits = function(e, i) {
858
857
  const r = e.bit << 3 | i;
859
858
  let o = r << 10;
860
- for (; Ce.getBCHDigit(o) - xe >= 0; )
861
- o ^= rt << Ce.getBCHDigit(o) - xe;
862
- return (r << 10 | o) ^ Ut;
859
+ for (; ve.getBCHDigit(o) - Ue >= 0; )
860
+ o ^= We << ve.getBCHDigit(o) - Ue;
861
+ return (r << 10 | o) ^ At;
863
862
  };
864
- var it = {};
865
- const Lt = $;
866
- function Y(t) {
867
- this.mode = Lt.NUMERIC, this.data = t.toString();
863
+ var Ze = {};
864
+ const Mt = $;
865
+ function O(t) {
866
+ this.mode = Mt.NUMERIC, this.data = t.toString();
868
867
  }
869
- Y.getBitsLength = function(e) {
868
+ O.getBitsLength = function(e) {
870
869
  return 10 * Math.floor(e / 3) + (e % 3 ? e % 3 * 3 + 1 : 0);
871
870
  };
872
- Y.prototype.getLength = function() {
871
+ O.prototype.getLength = function() {
873
872
  return this.data.length;
874
873
  };
875
- Y.prototype.getBitsLength = function() {
876
- return Y.getBitsLength(this.data.length);
874
+ O.prototype.getBitsLength = function() {
875
+ return O.getBitsLength(this.data.length);
877
876
  };
878
- Y.prototype.write = function(e) {
877
+ O.prototype.write = function(e) {
879
878
  let i, r, o;
880
879
  for (i = 0; i + 3 <= this.data.length; i += 3)
881
880
  r = this.data.substr(i, 3), o = parseInt(r, 10), e.put(o, 10);
882
881
  const n = this.data.length - i;
883
882
  n > 0 && (r = this.data.substr(i), o = parseInt(r, 10), e.put(o, n * 3 + 1));
884
883
  };
885
- var Ft = Y;
886
- const Rt = $, ge = [
884
+ var St = O;
885
+ const Tt = $, ge = [
887
886
  "0",
888
887
  "1",
889
888
  "2",
@@ -930,19 +929,19 @@ const Rt = $, ge = [
930
929
  "/",
931
930
  ":"
932
931
  ];
933
- function j(t) {
934
- this.mode = Rt.ALPHANUMERIC, this.data = t;
932
+ function Y(t) {
933
+ this.mode = Tt.ALPHANUMERIC, this.data = t;
935
934
  }
936
- j.getBitsLength = function(e) {
935
+ Y.getBitsLength = function(e) {
937
936
  return 11 * Math.floor(e / 2) + 6 * (e % 2);
938
937
  };
939
- j.prototype.getLength = function() {
938
+ Y.prototype.getLength = function() {
940
939
  return this.data.length;
941
940
  };
942
- j.prototype.getBitsLength = function() {
943
- return j.getBitsLength(this.data.length);
941
+ Y.prototype.getBitsLength = function() {
942
+ return Y.getBitsLength(this.data.length);
944
943
  };
945
- j.prototype.write = function(e) {
944
+ Y.prototype.write = function(e) {
946
945
  let i;
947
946
  for (i = 0; i + 2 <= this.data.length; i += 2) {
948
947
  let r = ge.indexOf(this.data[i]) * 45;
@@ -950,7 +949,7 @@ j.prototype.write = function(e) {
950
949
  }
951
950
  this.data.length % 2 && e.put(ge.indexOf(this.data[i]), 6);
952
951
  };
953
- var Dt = j, kt = function(e) {
952
+ var It = Y, Pt = function(e) {
954
953
  for (var i = [], r = e.length, o = 0; o < r; o++) {
955
954
  var n = e.charCodeAt(o);
956
955
  if (n >= 55296 && n <= 56319 && r > o + 1) {
@@ -977,41 +976,41 @@ var Dt = j, kt = function(e) {
977
976
  }
978
977
  return new Uint8Array(i).buffer;
979
978
  };
980
- const Vt = kt, xt = $;
981
- function J(t) {
982
- this.mode = xt.BYTE, typeof t == "string" && (t = Vt(t)), this.data = new Uint8Array(t);
979
+ const Nt = Pt, Lt = $;
980
+ function j(t) {
981
+ this.mode = Lt.BYTE, typeof t == "string" && (t = Nt(t)), this.data = new Uint8Array(t);
983
982
  }
984
- J.getBitsLength = function(e) {
983
+ j.getBitsLength = function(e) {
985
984
  return e * 8;
986
985
  };
987
- J.prototype.getLength = function() {
986
+ j.prototype.getLength = function() {
988
987
  return this.data.length;
989
988
  };
990
- J.prototype.getBitsLength = function() {
991
- return J.getBitsLength(this.data.length);
989
+ j.prototype.getBitsLength = function() {
990
+ return j.getBitsLength(this.data.length);
992
991
  };
993
- J.prototype.write = function(t) {
992
+ j.prototype.write = function(t) {
994
993
  for (let e = 0, i = this.data.length; e < i; e++)
995
994
  t.put(this.data[e], 8);
996
995
  };
997
- var $t = J;
998
- const zt = $, Ht = U;
999
- function q(t) {
1000
- this.mode = zt.KANJI, this.data = t;
996
+ var Ut = j;
997
+ const Ft = $, Rt = I;
998
+ function J(t) {
999
+ this.mode = Ft.KANJI, this.data = t;
1001
1000
  }
1002
- q.getBitsLength = function(e) {
1001
+ J.getBitsLength = function(e) {
1003
1002
  return e * 13;
1004
1003
  };
1005
- q.prototype.getLength = function() {
1004
+ J.prototype.getLength = function() {
1006
1005
  return this.data.length;
1007
1006
  };
1008
- q.prototype.getBitsLength = function() {
1009
- return q.getBitsLength(this.data.length);
1007
+ J.prototype.getBitsLength = function() {
1008
+ return J.getBitsLength(this.data.length);
1010
1009
  };
1011
- q.prototype.write = function(t) {
1010
+ J.prototype.write = function(t) {
1012
1011
  let e;
1013
1012
  for (e = 0; e < this.data.length; e++) {
1014
- let i = Ht.toSJIS(this.data[e]);
1013
+ let i = Rt.toSJIS(this.data[e]);
1015
1014
  if (i >= 33088 && i <= 40956)
1016
1015
  i -= 33088;
1017
1016
  else if (i >= 57408 && i <= 60351)
@@ -1024,7 +1023,7 @@ Make sure your charset is UTF-8`
1024
1023
  i = (i >>> 8 & 255) * 192 + (i & 255), t.put(i, 13);
1025
1024
  }
1026
1025
  };
1027
- var Kt = q, st = { exports: {} };
1026
+ var Dt = J, et = { exports: {} };
1028
1027
  (function(t) {
1029
1028
  var e = {
1030
1029
  single_source_shortest_paths: function(i, r, o) {
@@ -1032,14 +1031,14 @@ var Kt = q, st = { exports: {} };
1032
1031
  a[r] = 0;
1033
1032
  var s = e.PriorityQueue.make();
1034
1033
  s.push(r, 0);
1035
- for (var l, m, g, B, h, d, y, v, S; !s.empty(); ) {
1036
- l = s.pop(), m = l.value, B = l.cost, h = i[m] || {};
1034
+ for (var l, f, g, B, h, u, w, v, S; !s.empty(); ) {
1035
+ l = s.pop(), f = l.value, B = l.cost, h = i[f] || {};
1037
1036
  for (g in h)
1038
- h.hasOwnProperty(g) && (d = h[g], y = B + d, v = a[g], S = typeof a[g] > "u", (S || v > y) && (a[g] = y, s.push(g, y), n[g] = m));
1037
+ h.hasOwnProperty(g) && (u = h[g], w = B + u, v = a[g], S = typeof a[g] > "u", (S || v > w) && (a[g] = w, s.push(g, w), n[g] = f));
1039
1038
  }
1040
1039
  if (typeof o < "u" && typeof a[o] > "u") {
1041
- var p = ["Could not find a path from ", r, " to ", o, "."].join("");
1042
- throw new Error(p);
1040
+ var y = ["Could not find a path from ", r, " to ", o, "."].join("");
1041
+ throw new Error(y);
1043
1042
  }
1044
1043
  return n;
1045
1044
  },
@@ -1089,29 +1088,29 @@ var Kt = q, st = { exports: {} };
1089
1088
  }
1090
1089
  };
1091
1090
  t.exports = e;
1092
- })(st);
1093
- var Ot = st.exports;
1091
+ })(et);
1092
+ var kt = et.exports;
1094
1093
  (function(t) {
1095
- const e = $, i = Ft, r = Dt, o = $t, n = Kt, a = R, s = U, l = Ot;
1096
- function m(p) {
1097
- return unescape(encodeURIComponent(p)).length;
1094
+ const e = $, i = St, r = It, o = Ut, n = Dt, a = F, s = I, l = kt;
1095
+ function f(y) {
1096
+ return unescape(encodeURIComponent(y)).length;
1098
1097
  }
1099
- function g(p, b, f) {
1100
- const c = [];
1098
+ function g(y, d, c) {
1099
+ const p = [];
1101
1100
  let _;
1102
- for (; (_ = p.exec(f)) !== null; )
1103
- c.push({
1101
+ for (; (_ = y.exec(c)) !== null; )
1102
+ p.push({
1104
1103
  data: _[0],
1105
1104
  index: _.index,
1106
- mode: b,
1105
+ mode: d,
1107
1106
  length: _[0].length
1108
1107
  });
1109
- return c;
1108
+ return p;
1110
1109
  }
1111
- function B(p) {
1112
- const b = g(a.NUMERIC, e.NUMERIC, p), f = g(a.ALPHANUMERIC, e.ALPHANUMERIC, p);
1113
- let c, _;
1114
- return s.isKanjiModeEnabled() ? (c = g(a.BYTE, e.BYTE, p), _ = g(a.KANJI, e.KANJI, p)) : (c = g(a.BYTE_KANJI, e.BYTE, p), _ = []), b.concat(f, c, _).sort(function(A, T) {
1110
+ function B(y) {
1111
+ const d = g(a.NUMERIC, e.NUMERIC, y), c = g(a.ALPHANUMERIC, e.ALPHANUMERIC, y);
1112
+ let p, _;
1113
+ return s.isKanjiModeEnabled() ? (p = g(a.BYTE, e.BYTE, y), _ = g(a.KANJI, e.KANJI, y)) : (p = g(a.BYTE_KANJI, e.BYTE, y), _ = []), d.concat(c, p, _).sort(function(A, T) {
1115
1114
  return A.index - T.index;
1116
1115
  }).map(function(A) {
1117
1116
  return {
@@ -1121,110 +1120,110 @@ var Ot = st.exports;
1121
1120
  };
1122
1121
  });
1123
1122
  }
1124
- function h(p, b) {
1125
- switch (b) {
1123
+ function h(y, d) {
1124
+ switch (d) {
1126
1125
  case e.NUMERIC:
1127
- return i.getBitsLength(p);
1126
+ return i.getBitsLength(y);
1128
1127
  case e.ALPHANUMERIC:
1129
- return r.getBitsLength(p);
1128
+ return r.getBitsLength(y);
1130
1129
  case e.KANJI:
1131
- return n.getBitsLength(p);
1130
+ return n.getBitsLength(y);
1132
1131
  case e.BYTE:
1133
- return o.getBitsLength(p);
1132
+ return o.getBitsLength(y);
1134
1133
  }
1135
1134
  }
1136
- function d(p) {
1137
- return p.reduce(function(b, f) {
1138
- const c = b.length - 1 >= 0 ? b[b.length - 1] : null;
1139
- return c && c.mode === f.mode ? (b[b.length - 1].data += f.data, b) : (b.push(f), b);
1135
+ function u(y) {
1136
+ return y.reduce(function(d, c) {
1137
+ const p = d.length - 1 >= 0 ? d[d.length - 1] : null;
1138
+ return p && p.mode === c.mode ? (d[d.length - 1].data += c.data, d) : (d.push(c), d);
1140
1139
  }, []);
1141
1140
  }
1142
- function y(p) {
1143
- const b = [];
1144
- for (let f = 0; f < p.length; f++) {
1145
- const c = p[f];
1146
- switch (c.mode) {
1141
+ function w(y) {
1142
+ const d = [];
1143
+ for (let c = 0; c < y.length; c++) {
1144
+ const p = y[c];
1145
+ switch (p.mode) {
1147
1146
  case e.NUMERIC:
1148
- b.push([
1149
- c,
1150
- { data: c.data, mode: e.ALPHANUMERIC, length: c.length },
1151
- { data: c.data, mode: e.BYTE, length: c.length }
1147
+ d.push([
1148
+ p,
1149
+ { data: p.data, mode: e.ALPHANUMERIC, length: p.length },
1150
+ { data: p.data, mode: e.BYTE, length: p.length }
1152
1151
  ]);
1153
1152
  break;
1154
1153
  case e.ALPHANUMERIC:
1155
- b.push([
1156
- c,
1157
- { data: c.data, mode: e.BYTE, length: c.length }
1154
+ d.push([
1155
+ p,
1156
+ { data: p.data, mode: e.BYTE, length: p.length }
1158
1157
  ]);
1159
1158
  break;
1160
1159
  case e.KANJI:
1161
- b.push([
1162
- c,
1163
- { data: c.data, mode: e.BYTE, length: m(c.data) }
1160
+ d.push([
1161
+ p,
1162
+ { data: p.data, mode: e.BYTE, length: f(p.data) }
1164
1163
  ]);
1165
1164
  break;
1166
1165
  case e.BYTE:
1167
- b.push([
1168
- { data: c.data, mode: e.BYTE, length: m(c.data) }
1166
+ d.push([
1167
+ { data: p.data, mode: e.BYTE, length: f(p.data) }
1169
1168
  ]);
1170
1169
  }
1171
1170
  }
1172
- return b;
1171
+ return d;
1173
1172
  }
1174
- function v(p, b) {
1175
- const f = {}, c = { start: {} };
1173
+ function v(y, d) {
1174
+ const c = {}, p = { start: {} };
1176
1175
  let _ = ["start"];
1177
- for (let E = 0; E < p.length; E++) {
1178
- const A = p[E], T = [];
1179
- for (let I = 0; I < A.length; I++) {
1180
- const N = A[I], z = "" + E + I;
1181
- T.push(z), f[z] = { node: N, lastCount: 0 }, c[z] = {};
1182
- for (let K = 0; K < _.length; K++) {
1183
- const L = _[K];
1184
- f[L] && f[L].node.mode === N.mode ? (c[L][z] = h(f[L].lastCount + N.length, N.mode) - h(f[L].lastCount, N.mode), f[L].lastCount += N.length) : (f[L] && (f[L].lastCount = N.length), c[L][z] = h(N.length, N.mode) + 4 + e.getCharCountIndicator(N.mode, b));
1176
+ for (let E = 0; E < y.length; E++) {
1177
+ const A = y[E], T = [];
1178
+ for (let P = 0; P < A.length; P++) {
1179
+ const N = A[P], R = "" + E + P;
1180
+ T.push(R), c[R] = { node: N, lastCount: 0 }, p[R] = {};
1181
+ for (let H = 0; H < _.length; H++) {
1182
+ const C = _[H];
1183
+ c[C] && c[C].node.mode === N.mode ? (p[C][R] = h(c[C].lastCount + N.length, N.mode) - h(c[C].lastCount, N.mode), c[C].lastCount += N.length) : (c[C] && (c[C].lastCount = N.length), p[C][R] = h(N.length, N.mode) + 4 + e.getCharCountIndicator(N.mode, d));
1185
1184
  }
1186
1185
  }
1187
1186
  _ = T;
1188
1187
  }
1189
1188
  for (let E = 0; E < _.length; E++)
1190
- c[_[E]].end = 0;
1191
- return { map: c, table: f };
1189
+ p[_[E]].end = 0;
1190
+ return { map: p, table: c };
1192
1191
  }
1193
- function S(p, b) {
1194
- let f;
1195
- const c = e.getBestModeForData(p);
1196
- if (f = e.from(b, c), f !== e.BYTE && f.bit < c.bit)
1197
- throw new Error('"' + p + '" cannot be encoded with mode ' + e.toString(f) + `.
1198
- Suggested mode is: ` + e.toString(c));
1199
- switch (f === e.KANJI && !s.isKanjiModeEnabled() && (f = e.BYTE), f) {
1192
+ function S(y, d) {
1193
+ let c;
1194
+ const p = e.getBestModeForData(y);
1195
+ if (c = e.from(d, p), c !== e.BYTE && c.bit < p.bit)
1196
+ throw new Error('"' + y + '" cannot be encoded with mode ' + e.toString(c) + `.
1197
+ Suggested mode is: ` + e.toString(p));
1198
+ switch (c === e.KANJI && !s.isKanjiModeEnabled() && (c = e.BYTE), c) {
1200
1199
  case e.NUMERIC:
1201
- return new i(p);
1200
+ return new i(y);
1202
1201
  case e.ALPHANUMERIC:
1203
- return new r(p);
1202
+ return new r(y);
1204
1203
  case e.KANJI:
1205
- return new n(p);
1204
+ return new n(y);
1206
1205
  case e.BYTE:
1207
- return new o(p);
1206
+ return new o(y);
1208
1207
  }
1209
1208
  }
1210
- t.fromArray = function(b) {
1211
- return b.reduce(function(f, c) {
1212
- return typeof c == "string" ? f.push(S(c, null)) : c.data && f.push(S(c.data, c.mode)), f;
1209
+ t.fromArray = function(d) {
1210
+ return d.reduce(function(c, p) {
1211
+ return typeof p == "string" ? c.push(S(p, null)) : p.data && c.push(S(p.data, p.mode)), c;
1213
1212
  }, []);
1214
- }, t.fromString = function(b, f) {
1215
- const c = B(b, s.isKanjiModeEnabled()), _ = y(c), E = v(_, f), A = l.find_path(E.map, "start", "end"), T = [];
1216
- for (let I = 1; I < A.length - 1; I++)
1217
- T.push(E.table[A[I]].node);
1218
- return t.fromArray(d(T));
1219
- }, t.rawSplit = function(b) {
1213
+ }, t.fromString = function(d, c) {
1214
+ const p = B(d, s.isKanjiModeEnabled()), _ = w(p), E = v(_, c), A = l.find_path(E.map, "start", "end"), T = [];
1215
+ for (let P = 1; P < A.length - 1; P++)
1216
+ T.push(E.table[A[P]].node);
1217
+ return t.fromArray(u(T));
1218
+ }, t.rawSplit = function(d) {
1220
1219
  return t.fromArray(
1221
- B(b, s.isKanjiModeEnabled())
1220
+ B(d, s.isKanjiModeEnabled())
1222
1221
  );
1223
1222
  };
1224
- })(it);
1225
- const fe = U, he = ce, Yt = Et, jt = Bt, Jt = Qe, qt = We, _e = Xe, Ee = ue, Gt = Mt, le = tt, Qt = ot, Wt = $, pe = it;
1226
- function Xt(t, e) {
1227
- const i = t.size, r = qt.getPositions(e);
1223
+ })(Ze);
1224
+ const de = I, he = le, Vt = pt, xt = yt, $t = Oe, zt = Ye, Ce = je, _e = ce, Ht = bt, ae = Ge, Kt = Xe, Ot = $, me = Ze;
1225
+ function Yt(t, e) {
1226
+ const i = t.size, r = zt.getPositions(e);
1228
1227
  for (let o = 0; o < r.length; o++) {
1229
1228
  const n = r[o][0], a = r[o][1];
1230
1229
  for (let s = -1; s <= 7; s++)
@@ -1233,15 +1232,15 @@ function Xt(t, e) {
1233
1232
  a + l <= -1 || i <= a + l || (s >= 0 && s <= 6 && (l === 0 || l === 6) || l >= 0 && l <= 6 && (s === 0 || s === 6) || s >= 2 && s <= 4 && l >= 2 && l <= 4 ? t.set(n + s, a + l, !0, !0) : t.set(n + s, a + l, !1, !0));
1234
1233
  }
1235
1234
  }
1236
- function Zt(t) {
1235
+ function jt(t) {
1237
1236
  const e = t.size;
1238
1237
  for (let i = 8; i < e - 8; i++) {
1239
1238
  const r = i % 2 === 0;
1240
1239
  t.set(i, 6, r, !0), t.set(6, i, r, !0);
1241
1240
  }
1242
1241
  }
1243
- function en(t, e) {
1244
- const i = Jt.getPositions(e);
1242
+ function Jt(t, e) {
1243
+ const i = $t.getPositions(e);
1245
1244
  for (let r = 0; r < i.length; r++) {
1246
1245
  const o = i[r][0], n = i[r][1];
1247
1246
  for (let a = -2; a <= 2; a++)
@@ -1249,28 +1248,28 @@ function en(t, e) {
1249
1248
  a === -2 || a === 2 || s === -2 || s === 2 || a === 0 && s === 0 ? t.set(o + a, n + s, !0, !0) : t.set(o + a, n + s, !1, !0);
1250
1249
  }
1251
1250
  }
1252
- function tn(t, e) {
1253
- const i = t.size, r = le.getEncodedBits(e);
1251
+ function qt(t, e) {
1252
+ const i = t.size, r = ae.getEncodedBits(e);
1254
1253
  let o, n, a;
1255
1254
  for (let s = 0; s < 18; s++)
1256
1255
  o = Math.floor(s / 3), n = s % 3 + i - 8 - 3, a = (r >> s & 1) === 1, t.set(o, n, a, !0), t.set(n, o, a, !0);
1257
1256
  }
1258
- function ye(t, e, i) {
1259
- const r = t.size, o = Qt.getEncodedBits(e, i);
1257
+ function pe(t, e, i) {
1258
+ const r = t.size, o = Kt.getEncodedBits(e, i);
1260
1259
  let n, a;
1261
1260
  for (n = 0; n < 15; n++)
1262
1261
  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);
1263
1262
  t.set(r - 8, 8, 1, !0);
1264
1263
  }
1265
- function nn(t, e) {
1264
+ function Gt(t, e) {
1266
1265
  const i = t.size;
1267
1266
  let r = -1, o = i - 1, n = 7, a = 0;
1268
1267
  for (let s = i - 1; s > 0; s -= 2)
1269
1268
  for (s === 6 && s--; ; ) {
1270
1269
  for (let l = 0; l < 2; l++)
1271
1270
  if (!t.isReserved(o, s - l)) {
1272
- let m = !1;
1273
- a < e.length && (m = (e[a] >>> n & 1) === 1), t.set(o, s - l, m), n--, n === -1 && (a++, n = 7);
1271
+ let f = !1;
1272
+ a < e.length && (f = (e[a] >>> n & 1) === 1), t.set(o, s - l, f), n--, n === -1 && (a++, n = 7);
1274
1273
  }
1275
1274
  if (o += r, o < 0 || i <= o) {
1276
1275
  o -= r, r = -r;
@@ -1278,53 +1277,53 @@ function nn(t, e) {
1278
1277
  }
1279
1278
  }
1280
1279
  }
1281
- function on(t, e, i) {
1282
- const r = new Yt();
1280
+ function Qt(t, e, i) {
1281
+ const r = new Vt();
1283
1282
  i.forEach(function(l) {
1284
- r.put(l.mode.bit, 4), r.put(l.getLength(), Wt.getCharCountIndicator(l.mode, t)), l.write(r);
1283
+ r.put(l.mode.bit, 4), r.put(l.getLength(), Ot.getCharCountIndicator(l.mode, t)), l.write(r);
1285
1284
  });
1286
- const o = fe.getSymbolTotalCodewords(t), n = Ee.getTotalCodewordsCount(t, e), a = (o - n) * 8;
1285
+ const o = de.getSymbolTotalCodewords(t), n = _e.getTotalCodewordsCount(t, e), a = (o - n) * 8;
1287
1286
  for (r.getLengthInBits() + 4 <= a && r.put(0, 4); r.getLengthInBits() % 8 !== 0; )
1288
1287
  r.putBit(0);
1289
1288
  const s = (a - r.getLengthInBits()) / 8;
1290
1289
  for (let l = 0; l < s; l++)
1291
1290
  r.put(l % 2 ? 17 : 236, 8);
1292
- return rn(r, t, e);
1291
+ return Xt(r, t, e);
1293
1292
  }
1294
- function rn(t, e, i) {
1295
- const r = fe.getSymbolTotalCodewords(e), o = Ee.getTotalCodewordsCount(e, i), n = r - o, a = Ee.getBlocksCount(e, i), s = r % a, l = a - s, m = Math.floor(r / a), g = Math.floor(n / a), B = g + 1, h = m - g, d = new Gt(h);
1296
- let y = 0;
1293
+ function Xt(t, e, i) {
1294
+ const r = de.getSymbolTotalCodewords(e), o = _e.getTotalCodewordsCount(e, i), n = r - o, a = _e.getBlocksCount(e, i), s = r % a, l = a - s, f = Math.floor(r / a), g = Math.floor(n / a), B = g + 1, h = f - g, u = new Ht(h);
1295
+ let w = 0;
1297
1296
  const v = new Array(a), S = new Array(a);
1298
- let p = 0;
1299
- const b = new Uint8Array(t.buffer);
1297
+ let y = 0;
1298
+ const d = new Uint8Array(t.buffer);
1300
1299
  for (let A = 0; A < a; A++) {
1301
1300
  const T = A < l ? g : B;
1302
- v[A] = b.slice(y, y + T), S[A] = d.encode(v[A]), y += T, p = Math.max(p, T);
1301
+ v[A] = d.slice(w, w + T), S[A] = u.encode(v[A]), w += T, y = Math.max(y, T);
1303
1302
  }
1304
- const f = new Uint8Array(r);
1305
- let c = 0, _, E;
1306
- for (_ = 0; _ < p; _++)
1303
+ const c = new Uint8Array(r);
1304
+ let p = 0, _, E;
1305
+ for (_ = 0; _ < y; _++)
1307
1306
  for (E = 0; E < a; E++)
1308
- _ < v[E].length && (f[c++] = v[E][_]);
1307
+ _ < v[E].length && (c[p++] = v[E][_]);
1309
1308
  for (_ = 0; _ < h; _++)
1310
1309
  for (E = 0; E < a; E++)
1311
- f[c++] = S[E][_];
1312
- return f;
1310
+ c[p++] = S[E][_];
1311
+ return c;
1313
1312
  }
1314
- function sn(t, e, i, r) {
1313
+ function Wt(t, e, i, r) {
1315
1314
  let o;
1316
1315
  if (Array.isArray(t))
1317
- o = pe.fromArray(t);
1316
+ o = me.fromArray(t);
1318
1317
  else if (typeof t == "string") {
1319
- let m = e;
1320
- if (!m) {
1321
- const g = pe.rawSplit(t);
1322
- m = le.getBestVersionForData(g, i);
1318
+ let f = e;
1319
+ if (!f) {
1320
+ const g = me.rawSplit(t);
1321
+ f = ae.getBestVersionForData(g, i);
1323
1322
  }
1324
- o = pe.fromString(t, m || 40);
1323
+ o = me.fromString(t, f || 40);
1325
1324
  } else
1326
1325
  throw new Error("Invalid data");
1327
- const n = le.getBestVersionForData(o, i);
1326
+ const n = ae.getBestVersionForData(o, i);
1328
1327
  if (!n)
1329
1328
  throw new Error("The amount of data is too big to be stored in a QR Code");
1330
1329
  if (!e)
@@ -1336,11 +1335,11 @@ The chosen QR Code version cannot contain this amount of data.
1336
1335
  Minimum version required to store current data is: ` + n + `.
1337
1336
  `
1338
1337
  );
1339
- const a = on(e, i, o), s = fe.getSymbolSize(e), l = new jt(s);
1340
- return Xt(l, e), Zt(l), en(l, e), ye(l, i, 0), e >= 7 && tn(l, e), nn(l, a), isNaN(r) && (r = _e.getBestMask(
1338
+ const a = Qt(e, i, o), s = de.getSymbolSize(e), l = new xt(s);
1339
+ return Yt(l, e), jt(l), Jt(l, e), pe(l, i, 0), e >= 7 && qt(l, e), Gt(l, a), isNaN(r) && (r = Ce.getBestMask(
1341
1340
  l,
1342
- ye.bind(null, l, i)
1343
- )), _e.applyMask(r, l), ye(l, i, r), {
1341
+ pe.bind(null, l, i)
1342
+ )), Ce.applyMask(r, l), pe(l, i, r), {
1344
1343
  modules: l,
1345
1344
  version: e,
1346
1345
  errorCorrectionLevel: i,
@@ -1348,13 +1347,13 @@ Minimum version required to store current data is: ` + n + `.
1348
1347
  segments: o
1349
1348
  };
1350
1349
  }
1351
- qe.create = function(e, i) {
1350
+ He.create = function(e, i) {
1352
1351
  if (typeof e > "u" || e === "")
1353
1352
  throw new Error("No input text");
1354
1353
  let r = he.M, o, n;
1355
- return typeof i < "u" && (r = he.from(i.errorCorrectionLevel, he.M), o = le.from(i.version), n = _e.from(i.maskPattern), i.toSJISFunc && fe.setToSJISFunction(i.toSJISFunc)), sn(e, o, r, n);
1354
+ return typeof i < "u" && (r = he.from(i.errorCorrectionLevel, he.M), o = ae.from(i.version), n = Ce.from(i.maskPattern), i.toSJISFunc && de.setToSJISFunction(i.toSJISFunc)), Wt(e, o, r, n);
1356
1355
  };
1357
- var at = {}, Te = {};
1356
+ var tt = {}, Se = {};
1358
1357
  (function(t) {
1359
1358
  function e(i) {
1360
1359
  if (typeof i == "number" && (i = i.toString()), typeof i != "string")
@@ -1394,20 +1393,20 @@ var at = {}, Te = {};
1394
1393
  const n = t.getScale(r, o);
1395
1394
  return Math.floor((r + o.margin * 2) * n);
1396
1395
  }, t.qrToImageData = function(r, o, n) {
1397
- const a = o.modules.size, s = o.modules.data, l = t.getScale(a, n), m = Math.floor((a + n.margin * 2) * l), g = n.margin * l, B = [n.color.light, n.color.dark];
1398
- for (let h = 0; h < m; h++)
1399
- for (let d = 0; d < m; d++) {
1400
- let y = (h * m + d) * 4, v = n.color.light;
1401
- if (h >= g && d >= g && h < m - g && d < m - g) {
1402
- const S = Math.floor((h - g) / l), p = Math.floor((d - g) / l);
1403
- v = B[s[S * a + p] ? 1 : 0];
1396
+ const a = o.modules.size, s = o.modules.data, l = t.getScale(a, n), f = Math.floor((a + n.margin * 2) * l), g = n.margin * l, B = [n.color.light, n.color.dark];
1397
+ for (let h = 0; h < f; h++)
1398
+ for (let u = 0; u < f; u++) {
1399
+ let w = (h * f + u) * 4, v = n.color.light;
1400
+ if (h >= g && u >= g && h < f - g && u < f - g) {
1401
+ const S = Math.floor((h - g) / l), y = Math.floor((u - g) / l);
1402
+ v = B[s[S * a + y] ? 1 : 0];
1404
1403
  }
1405
- r[y++] = v.r, r[y++] = v.g, r[y++] = v.b, r[y] = v.a;
1404
+ r[w++] = v.r, r[w++] = v.g, r[w++] = v.b, r[w] = v.a;
1406
1405
  }
1407
1406
  };
1408
- })(Te);
1407
+ })(Se);
1409
1408
  (function(t) {
1410
- const e = Te;
1409
+ const e = Se;
1411
1410
  function i(o, n, a) {
1412
1411
  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";
1413
1412
  }
@@ -1419,44 +1418,44 @@ var at = {}, Te = {};
1419
1418
  }
1420
1419
  }
1421
1420
  t.render = function(n, a, s) {
1422
- let l = s, m = a;
1423
- typeof l > "u" && (!a || !a.getContext) && (l = a, a = void 0), a || (m = r()), l = e.getOptions(l);
1424
- const g = e.getImageWidth(n.modules.size, l), B = m.getContext("2d"), h = B.createImageData(g, g);
1425
- return e.qrToImageData(h.data, n, l), i(B, m, g), B.putImageData(h, 0, 0), m;
1421
+ let l = s, f = a;
1422
+ typeof l > "u" && (!a || !a.getContext) && (l = a, a = void 0), a || (f = r()), l = e.getOptions(l);
1423
+ const g = e.getImageWidth(n.modules.size, l), B = f.getContext("2d"), h = B.createImageData(g, g);
1424
+ return e.qrToImageData(h.data, n, l), i(B, f, g), B.putImageData(h, 0, 0), f;
1426
1425
  }, t.renderToDataURL = function(n, a, s) {
1427
1426
  let l = s;
1428
1427
  typeof l > "u" && (!a || !a.getContext) && (l = a, a = void 0), l || (l = {});
1429
- const m = t.render(n, a, l), g = l.type || "image/png", B = l.rendererOpts || {};
1430
- return m.toDataURL(g, B.quality);
1428
+ const f = t.render(n, a, l), g = l.type || "image/png", B = l.rendererOpts || {};
1429
+ return f.toDataURL(g, B.quality);
1431
1430
  };
1432
- })(at);
1433
- var lt = {};
1434
- const an = Te;
1435
- function $e(t, e) {
1431
+ })(tt);
1432
+ var nt = {};
1433
+ const Zt = Se;
1434
+ function Fe(t, e) {
1436
1435
  const i = t.a / 255, r = e + '="' + t.hex + '"';
1437
1436
  return i < 1 ? r + " " + e + '-opacity="' + i.toFixed(2).slice(1) + '"' : r;
1438
1437
  }
1439
- function we(t, e, i) {
1438
+ function ye(t, e, i) {
1440
1439
  let r = t + e;
1441
1440
  return typeof i < "u" && (r += " " + i), r;
1442
1441
  }
1443
- function ln(t, e, i) {
1442
+ function en(t, e, i) {
1444
1443
  let r = "", o = 0, n = !1, a = 0;
1445
1444
  for (let s = 0; s < t.length; s++) {
1446
- const l = Math.floor(s % e), m = Math.floor(s / e);
1447
- !l && !n && (n = !0), t[s] ? (a++, s > 0 && l > 0 && t[s - 1] || (r += n ? we("M", l + i, 0.5 + m + i) : we("m", o, 0), o = 0, n = !1), l + 1 < e && t[s + 1] || (r += we("h", a), a = 0)) : o++;
1445
+ const l = Math.floor(s % e), f = Math.floor(s / e);
1446
+ !l && !n && (n = !0), t[s] ? (a++, s > 0 && l > 0 && t[s - 1] || (r += n ? ye("M", l + i, 0.5 + f + i) : ye("m", o, 0), o = 0, n = !1), l + 1 < e && t[s + 1] || (r += ye("h", a), a = 0)) : o++;
1448
1447
  }
1449
1448
  return r;
1450
1449
  }
1451
- lt.render = function(e, i, r) {
1452
- const o = an.getOptions(i), n = e.modules.size, a = e.modules.data, s = n + o.margin * 2, l = o.color.light.a ? "<path " + $e(o.color.light, "fill") + ' d="M0 0h' + s + "v" + s + 'H0z"/>' : "", m = "<path " + $e(o.color.dark, "stroke") + ' d="' + ln(a, n, o.margin) + '"/>', g = 'viewBox="0 0 ' + s + " " + s + '"', h = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + g + ' shape-rendering="crispEdges">' + l + m + `</svg>
1450
+ nt.render = function(e, i, r) {
1451
+ const o = Zt.getOptions(i), n = e.modules.size, a = e.modules.data, s = n + o.margin * 2, l = o.color.light.a ? "<path " + Fe(o.color.light, "fill") + ' d="M0 0h' + s + "v" + s + 'H0z"/>' : "", f = "<path " + Fe(o.color.dark, "stroke") + ' d="' + en(a, n, o.margin) + '"/>', g = 'viewBox="0 0 ' + s + " " + s + '"', h = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + g + ' shape-rendering="crispEdges">' + l + f + `</svg>
1453
1452
  `;
1454
1453
  return typeof r == "function" && r(null, h), h;
1455
1454
  };
1456
- const cn = Ct, Be = qe, ct = at, un = lt;
1457
- function Pe(t, e, i, r, o) {
1455
+ const tn = ht, Ee = He, ot = tt, nn = nt;
1456
+ function Te(t, e, i, r, o) {
1458
1457
  const n = [].slice.call(arguments, 1), a = n.length, s = typeof n[a - 1] == "function";
1459
- if (!s && !cn())
1458
+ if (!s && !tn())
1460
1459
  throw new Error("Callback required as last argument");
1461
1460
  if (s) {
1462
1461
  if (a < 2)
@@ -1465,31 +1464,31 @@ function Pe(t, e, i, r, o) {
1465
1464
  } else {
1466
1465
  if (a < 1)
1467
1466
  throw new Error("Too few arguments provided");
1468
- return a === 1 ? (i = e, e = r = void 0) : a === 2 && !e.getContext && (r = i, i = e, e = void 0), new Promise(function(l, m) {
1467
+ return a === 1 ? (i = e, e = r = void 0) : a === 2 && !e.getContext && (r = i, i = e, e = void 0), new Promise(function(l, f) {
1469
1468
  try {
1470
- const g = Be.create(i, r);
1469
+ const g = Ee.create(i, r);
1471
1470
  l(t(g, e, r));
1472
1471
  } catch (g) {
1473
- m(g);
1472
+ f(g);
1474
1473
  }
1475
1474
  });
1476
1475
  }
1477
1476
  try {
1478
- const l = Be.create(i, r);
1477
+ const l = Ee.create(i, r);
1479
1478
  o(null, t(l, e, r));
1480
1479
  } catch (l) {
1481
1480
  o(l);
1482
1481
  }
1483
1482
  }
1484
- ee.create = Be.create;
1485
- ee.toCanvas = Pe.bind(null, ct.render);
1486
- ee.toDataURL = Pe.bind(null, ct.renderToDataURL);
1487
- ee.toString = Pe.bind(null, function(t, e, i) {
1488
- return un.render(t, i);
1483
+ Z.create = Ee.create;
1484
+ Z.toCanvas = Te.bind(null, ot.render);
1485
+ Z.toDataURL = Te.bind(null, ot.renderToDataURL);
1486
+ Z.toString = Te.bind(null, function(t, e, i) {
1487
+ return nn.render(t, i);
1489
1488
  });
1490
- async function dn(t, e = 350) {
1489
+ async function on(t, e = 350) {
1491
1490
  try {
1492
- return await ee.toDataURL(t, {
1491
+ return await Z.toDataURL(t, {
1493
1492
  width: e,
1494
1493
  margin: 0
1495
1494
  });
@@ -1497,63 +1496,63 @@ async function dn(t, e = 350) {
1497
1496
  console.error(i);
1498
1497
  }
1499
1498
  }
1500
- var fn = { 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", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
1501
- const mn = { class: "flex items-start" }, gn = /* @__PURE__ */ w("div", null, [
1502
- /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
1503
- /* @__PURE__ */ w("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
1504
- ], -1), hn = { class: "flex flex-col gap-16 mt-16" }, pn = ["src"], yn = /* @__PURE__ */ ze({
1499
+ var rn = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", marketingV1Portal: "https://marketing-v1.feedme.cc" };
1500
+ const sn = { class: "flex items-start" }, an = /* @__PURE__ */ b("div", null, [
1501
+ /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
1502
+ /* @__PURE__ */ b("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
1503
+ ], -1), ln = { class: "flex flex-col gap-16 mt-16" }, cn = ["src"], un = /* @__PURE__ */ Re({
1505
1504
  __name: "LinkDeviceDialog",
1506
1505
  setup(t) {
1507
- const e = ve(), i = Je(), r = Oe(), o = H(), n = H(), a = fn.crmUrl, s = H(), l = se(() => i.membership), m = se(() => {
1508
- var h, d;
1509
- return `https://${(h = l.value) != null && h.url ? l.value.url : (d = l.value) == null ? void 0 : d.business}.${a}`;
1506
+ const e = be(), i = ze(), r = Ve(), o = z(), n = z(), a = rn.crmUrl, s = z(), l = ie(() => i.membership), f = ie(() => {
1507
+ var h, u;
1508
+ return `https://${(h = l.value) != null && h.url ? l.value.url : (u = l.value) == null ? void 0 : u.business}.${a}`;
1510
1509
  });
1511
1510
  async function g(h) {
1512
- const d = await je.getOtp(h);
1513
- return `${m.value}?link-device=${d.otp}`;
1511
+ const u = await $e.getOtp(h);
1512
+ return `${f.value}?link-device=${u.otp}`;
1514
1513
  }
1515
1514
  async function B(h) {
1516
- const d = await g(h);
1517
- s.value = d, o.value = await dn(d);
1515
+ const u = await g(h);
1516
+ s.value = u, o.value = await on(u);
1518
1517
  }
1519
- return He(async () => {
1518
+ return De(async () => {
1520
1519
  if (await e.readLocations(), !e.locations.length) {
1521
1520
  r.close();
1522
1521
  return;
1523
1522
  }
1524
1523
  const h = e.locations[0]._id;
1525
1524
  n.value = h, await B(h);
1526
- }), (h, d) => {
1527
- const y = F("FmIcon"), v = F("FmSelect"), S = F("FmButton"), p = F("FmCard");
1528
- return V(), be(p, { class: "p-24 max-w-[350px]" }, {
1529
- default: Q(() => [
1530
- w("div", mn, [
1531
- gn,
1532
- M(y, {
1525
+ }), (h, u) => {
1526
+ const w = U("FmIcon"), v = U("FmSelect"), S = U("FmButton"), y = U("FmCard");
1527
+ return V(), we(y, { class: "p-24 max-w-[350px]" }, {
1528
+ default: G(() => [
1529
+ b("div", sn, [
1530
+ an,
1531
+ M(w, {
1533
1532
  name: "close",
1534
- onClick: d[0] || (d[0] = (b) => u(r).close()),
1533
+ onClick: u[0] || (u[0] = (d) => m(r).close()),
1535
1534
  class: "cursor-pointer"
1536
1535
  })
1537
1536
  ]),
1538
- w("div", hn, [
1537
+ b("div", ln, [
1539
1538
  M(v, {
1540
- modelValue: u(n),
1539
+ modelValue: m(n),
1541
1540
  "onUpdate:modelValue": [
1542
- d[1] || (d[1] = (b) => Ke(n) ? n.value = b : null),
1541
+ u[1] || (u[1] = (d) => ke(n) ? n.value = d : null),
1543
1542
  B
1544
1543
  ],
1545
1544
  label: "Select Location",
1546
- items: u(e).locationItems.filter((b) => !!b.value)
1545
+ items: m(e).locationItems.filter((d) => !!d.value)
1547
1546
  }, null, 8, ["modelValue", "items"]),
1548
- w("img", {
1549
- src: u(o),
1547
+ b("img", {
1548
+ src: m(o),
1550
1549
  class: "aspect-square w-full"
1551
- }, null, 8, pn),
1550
+ }, null, 8, cn),
1552
1551
  M(S, {
1553
1552
  class: "mx-auto",
1554
1553
  variant: "plain",
1555
1554
  icon: "content_copy",
1556
- onClick: d[2] || (d[2] = (b) => u(Ye)(u(s)))
1555
+ onClick: u[2] || (u[2] = (d) => m(xe)(m(s)))
1557
1556
  })
1558
1557
  ])
1559
1558
  ]),
@@ -1562,41 +1561,41 @@ const mn = { class: "flex items-start" }, gn = /* @__PURE__ */ w("div", null, [
1562
1561
  };
1563
1562
  }
1564
1563
  });
1565
- var wn = { 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", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
1566
- const bn = { class: "hidden xs:flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, vn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-md-800" }, "Setting", -1), Cn = {
1564
+ var dn = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", marketingV1Portal: "https://marketing-v1.feedme.cc" };
1565
+ const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, gn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-md-800" }, "Setting", -1), hn = {
1567
1566
  key: 0,
1568
1567
  class: "px-24 gap-32 grid grid-cols-3 xs:pt-16"
1569
- }, _n = { class: "col-span-2 flex flex-col xs:col-span-3" }, En = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Basic Information", -1), Bn = { class: "space-y-24" }, An = { class: "space-y-8" }, Mn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Counter App", -1), Sn = { class: "fm-typo-body-lg-400" }, Tn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Pn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, In = { class: "space-y-8" }, Nn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Un = { class: "space-y-8" }, Ln = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1), Fn = { class: "space-y-8" }, Rn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1), Dn = { class: "space-y-8" }, kn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, [
1570
- /* @__PURE__ */ W(" Free Credit as Discount "),
1571
- /* @__PURE__ */ w("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
1572
- ], -1), Vn = { class: "space-y-8" }, xn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, $n = { class: "space-y-8" }, zn = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1), Hn = { class: "flex justify-end pb-24" }, Kn = { class: "col-span-1 space-y-8 xs:hidden" }, On = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1), Yn = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1), jn = { class: "fm-typo-en-body-lg-600" }, Jn = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1), qn = { class: "fm-typo-en-body-lg-600" }, Gn = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1), Qn = { class: "fm-typo-en-body-lg-600" }, Wn = /* @__PURE__ */ w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1), Xn = { class: "fm-typo-en-body-lg-600" }, go = /* @__PURE__ */ ze({
1568
+ }, mn = { class: "col-span-2 flex flex-col xs:col-span-3" }, pn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Basic Information", -1), yn = { class: "space-y-24" }, wn = { class: "space-y-8" }, bn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Counter App", -1), vn = { class: "fm-typo-body-lg-400" }, Cn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, _n = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, En = { class: "space-y-8" }, Bn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, An = { class: "space-y-8" }, Mn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1), Sn = { class: "space-y-8" }, Tn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, [
1569
+ /* @__PURE__ */ Q(" Free Credit as Discount "),
1570
+ /* @__PURE__ */ b("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
1571
+ ], -1), In = { class: "space-y-8" }, Pn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Nn = { class: "space-y-8" }, Ln = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1), Un = { class: "flex justify-end pb-24" }, Fn = { class: "col-span-1 space-y-8 xs:hidden" }, Rn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1), Dn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1), kn = { class: "fm-typo-en-body-lg-600" }, Vn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1), xn = { class: "fm-typo-en-body-lg-600" }, $n = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1), zn = { class: "fm-typo-en-body-lg-600" }, Hn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1), Kn = { class: "fm-typo-en-body-lg-600" }, oo = /* @__PURE__ */ Re({
1573
1572
  __name: "Setting",
1574
1573
  setup(t) {
1575
- const e = mt(), i = ve(), r = Je(), { global: o, minor: n } = dt, a = Oe(), s = H(), l = H(!1), m = gt, g = [
1576
- (f) => !f || f.length >= 6 || "Invalid URL format, please enter at least 6 characters",
1577
- (f) => !f || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(f) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
1578
- ], B = wn.appUrl, h = se(() => {
1579
- var f;
1580
- return `https://${(f = s.value) == null ? void 0 : f.business}.${B}`;
1581
- }), d = H(), y = H([]), v = se(() => {
1582
- var f, c;
1583
- return Math.min((((c = (f = s.value) == null ? void 0 : f.advertisements) == null ? void 0 : c.length) ?? 0) + 1, 5);
1574
+ const e = at(), i = be(), r = ze(), { global: o, minor: n } = it, a = Ve(), s = z(), l = z(!1), f = [
1575
+ (d) => !d || d.length >= 6 || "Invalid URL format, please enter at least 6 characters",
1576
+ (d) => !d || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(d) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
1577
+ ], g = dn.appUrl, B = ie(() => {
1578
+ var d;
1579
+ return `https://${(d = s.value) == null ? void 0 : d.business}.${g}`;
1580
+ }), h = z(), u = z([]), w = ie(() => {
1581
+ var d, c;
1582
+ return Math.min((((c = (d = s.value) == null ? void 0 : d.advertisements) == null ? void 0 : c.length) ?? 0) + 1, 5);
1584
1583
  });
1585
- async function S() {
1584
+ async function v() {
1586
1585
  a.open({
1587
1586
  title: "",
1588
- dialogComponent: yn,
1587
+ dialogComponent: un,
1589
1588
  closeButton: !1
1590
1589
  });
1591
1590
  }
1592
- async function p(f) {
1593
- await ft.remove(
1591
+ async function S(d) {
1592
+ await st.remove(
1594
1593
  "Are you sure you want to unlink this device?",
1595
1594
  "Unlink device",
1596
1595
  "Unlink"
1597
1596
  ) && await n(
1598
1597
  async () => {
1599
- await je.unregisterDevice(f), await i.readLocationDevices();
1598
+ await $e.unregisterDevice(d), await i.readLocationDevices();
1600
1599
  },
1601
1600
  {
1602
1601
  message: "Unlinking device",
@@ -1604,26 +1603,26 @@ const bn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1604
1603
  }
1605
1604
  );
1606
1605
  }
1607
- async function b() {
1606
+ async function y() {
1608
1607
  await n(
1609
1608
  async () => {
1610
- var _;
1611
- const f = vt(s.value);
1612
- f.welcomeMessage && !((_ = f.welcomeMessage) != null && _.content) && (f.welcomeMessage.content = "Hi there, you have been invited to join our membership");
1613
- const c = ht.parse(f);
1614
- d.value === null && c.image ? await O.delete(O.coverImagePath()) : d.value && (c.image = await O.update(
1615
- O.coverImagePath(),
1616
- d.value
1609
+ var p;
1610
+ const d = gt(s.value);
1611
+ d.welcomeMessage && !((p = d.welcomeMessage) != null && p.content) && (d.welcomeMessage.content = "Hi there, you have been invited to join our membership");
1612
+ const c = lt.parse(d);
1613
+ h.value === null && c.image ? await K.delete(K.coverImagePath()) : h.value && (c.image = await K.update(
1614
+ K.coverImagePath(),
1615
+ h.value
1617
1616
  )), l.value ? c.advertisements = (await Promise.all(
1618
- new Array(v.value - 1).fill(null).map(async (E, A) => {
1619
- var I;
1620
- const T = y.value[A];
1621
- return T ? await O.update(
1622
- O.advertisementPath(A, T),
1623
- T
1624
- ) : (I = c.advertisements) == null ? void 0 : I[A];
1617
+ new Array(w.value - 1).fill(null).map(async (_, E) => {
1618
+ var T;
1619
+ const A = u.value[E];
1620
+ return A ? await K.update(
1621
+ K.advertisementPath(E, A),
1622
+ A
1623
+ ) : (T = c.advertisements) == null ? void 0 : T[E];
1625
1624
  })
1626
- )).filter((E) => E) : c.advertisements = [], await wt.update(c), await r.readMembership(), s.value = r.membership;
1625
+ )).filter((_) => _) : c.advertisements = [], await dt.update(c), await r.readMembership(), s.value = r.membership;
1627
1626
  },
1628
1627
  {
1629
1628
  message: "Updating membership",
@@ -1631,147 +1630,147 @@ const bn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1631
1630
  }
1632
1631
  );
1633
1632
  }
1634
- return He(async () => {
1633
+ return De(async () => {
1635
1634
  await o(async () => {
1636
- var f, c;
1637
- await i.readPremium(), await i.readLocations(), await i.readLocationDevices(), await r.readMembership(), s.value = r.membership, l.value = (((f = s.value.advertisements) == null ? void 0 : f.length) ?? 0) > 0, y.value = ((c = s.value.advertisements) == null ? void 0 : c.map(() => null)) ?? [];
1635
+ var d, c;
1636
+ await i.readPremium(), await i.readLocations(), await i.readLocationDevices(), await r.readMembership(), s.value = r.membership, l.value = (((d = s.value.advertisements) == null ? void 0 : d.length) ?? 0) > 0, u.value = ((c = s.value.advertisements) == null ? void 0 : c.map(() => null)) ?? [];
1638
1637
  });
1639
- }), (f, c) => {
1640
- var K, L, Ie, Ne, Ue, Le;
1641
- const _ = F("FmPageHead"), E = F("FmButton"), A = F("FmTextField"), T = F("FmCard"), I = F("FmPill"), N = F("FmSwitch"), z = F("FmMenuDivider");
1642
- return V(), G(me, null, [
1643
- M(_, {
1638
+ }), (d, c) => {
1639
+ var R, H;
1640
+ const p = U("FmPageHead"), _ = U("FmButton"), E = U("FmTextField"), A = U("FmCard"), T = U("FmPill"), P = U("FmSwitch"), N = U("FmMenuDivider");
1641
+ return V(), q(fe, null, [
1642
+ M(p, {
1644
1643
  title: "Setting",
1645
1644
  class: "xs:hidden"
1646
1645
  }),
1647
- w("div", bn, [
1648
- vn,
1649
- M(E, {
1646
+ b("div", fn, [
1647
+ gn,
1648
+ M(_, {
1650
1649
  icon: "info",
1651
1650
  variant: "tertiary"
1652
1651
  })
1653
1652
  ]),
1654
- u(s) ? (V(), G("div", Cn, [
1655
- w("div", _n, [
1656
- En,
1657
- w("div", Bn, [
1658
- M(A, {
1653
+ m(s) ? (V(), q("div", hn, [
1654
+ b("div", mn, [
1655
+ pn,
1656
+ b("div", yn, [
1657
+ M(E, {
1659
1658
  label: "Membership title",
1660
- modelValue: u(s).name,
1661
- "onUpdate:modelValue": c[0] || (c[0] = (C) => u(s).name = C)
1659
+ modelValue: m(s).name,
1660
+ "onUpdate:modelValue": c[0] || (c[0] = (C) => m(s).name = C)
1662
1661
  }, null, 8, ["modelValue"]),
1663
- M(A, {
1662
+ M(E, {
1664
1663
  disabled: !0,
1665
- "model-value": u(s).business,
1666
- rules: g,
1664
+ "model-value": m(s).business,
1665
+ rules: f,
1667
1666
  required: !0,
1668
1667
  label: "Member app URL",
1669
- "helper-text": u(h),
1670
- placeholder: u(s).business.toString(),
1671
- "onUpdate:modelValue": c[2] || (c[2] = (C) => u(s).url = C)
1668
+ "helper-text": m(B),
1669
+ placeholder: m(s).business.toString(),
1670
+ "onUpdate:modelValue": c[2] || (c[2] = (C) => m(s).url = C)
1672
1671
  }, {
1673
- prepend: Q(() => [
1674
- W(" https:// ")
1672
+ prepend: G(() => [
1673
+ Q(" https:// ")
1675
1674
  ]),
1676
- append: Q(() => [
1677
- W(" ." + k(u(B)) + " ", 1),
1678
- M(E, {
1675
+ append: G(() => [
1676
+ Q(" ." + k(m(g)) + " ", 1),
1677
+ M(_, {
1679
1678
  icon: "content_copy",
1680
1679
  variant: "tertiary",
1681
- onClick: c[1] || (c[1] = (C) => u(Ye)(u(h)))
1680
+ onClick: c[1] || (c[1] = (C) => m(xe)(m(B)))
1682
1681
  })
1683
1682
  ]),
1684
1683
  _: 1
1685
1684
  }, 8, ["model-value", "helper-text", "placeholder"]),
1686
- M(ke, {
1685
+ M(Ne, {
1687
1686
  label: "Cover image",
1688
1687
  class: "w-2/3 xs:w-full",
1689
1688
  "image-fit": "cover",
1690
1689
  "aspect-ratio": "3/1",
1691
- thumbnail: u(s).image || void 0,
1690
+ thumbnail: m(s).image || void 0,
1692
1691
  "onUpdate:file": c[3] || (c[3] = async (C) => {
1693
- d.value = C, C || (u(s).image = null);
1692
+ h.value = C, C || (m(s).image = null);
1694
1693
  })
1695
1694
  }, null, 8, ["thumbnail"]),
1696
- w("div", An, [
1697
- Mn,
1698
- M(E, {
1695
+ b("div", wn, [
1696
+ bn,
1697
+ M(_, {
1699
1698
  variant: "plain",
1700
1699
  icon: "link",
1701
1700
  label: "Link Device",
1702
- onClick: S
1701
+ onClick: v
1703
1702
  }),
1704
- (V(!0), G(me, null, Fe(u(i).locationDevices, (C, P) => (V(), be(T, {
1705
- key: P,
1703
+ (V(!0), q(fe, null, Ie(m(i).locationDevices, (C, L) => (V(), we(A, {
1704
+ key: L,
1706
1705
  variant: "outlined",
1707
1706
  class: "flex items-center justify-between px-16 py-12"
1708
1707
  }, {
1709
- default: Q(() => [
1710
- w("div", null, [
1711
- w("p", Sn, k(C.name || `Device ${C._id}`), 1),
1712
- w("p", Tn, " Activation date: " + k(u(ut)(u(bt)(C._id.toString())).format(
1708
+ default: G(() => [
1709
+ b("div", null, [
1710
+ b("p", vn, k(C.name || `Device ${C._id}`), 1),
1711
+ b("p", Cn, " Activation date: " + k(m(rt)(m(ft)(C._id.toString())).format(
1713
1712
  "D MMM YYYY"
1714
1713
  )), 1),
1715
- w("p", Pn, " Linked location: " + k(u(i).locations.find((D) => D._id == C.location).name), 1)
1714
+ b("p", _n, " Linked location: " + k(m(i).locations.find((D) => D._id == C.location).name), 1)
1716
1715
  ]),
1717
- M(E, {
1716
+ M(_, {
1718
1717
  icon: "link_off",
1719
1718
  variant: "tertiary",
1720
- onClick: (D) => p(C._id)
1719
+ onClick: (D) => S(C._id)
1721
1720
  }, null, 8, ["onClick"])
1722
1721
  ]),
1723
1722
  _: 2
1724
1723
  }, 1024))), 128))
1725
1724
  ]),
1726
- w("div", In, [
1727
- w("div", Nn, [
1728
- W(" Advertisement "),
1729
- M(I, { variant: "premium" })
1725
+ b("div", En, [
1726
+ b("div", Bn, [
1727
+ Q(" Advertisement "),
1728
+ M(T, { variant: "premium" })
1730
1729
  ]),
1731
- M(N, {
1732
- modelValue: u(l),
1733
- "onUpdate:modelValue": c[4] || (c[4] = (C) => Ke(l) ? l.value = C : null),
1730
+ M(P, {
1731
+ modelValue: m(l),
1732
+ "onUpdate:modelValue": c[4] || (c[4] = (C) => ke(l) ? l.value = C : null),
1734
1733
  label: "Advertisement",
1735
1734
  sublabel: "This will be show on FeedMe ordering app",
1736
1735
  "label-placement": "right",
1737
- disabled: !u(i).isPremium,
1736
+ disabled: !m(i).isPremium,
1738
1737
  value: ""
1739
1738
  }, null, 8, ["modelValue", "disabled"]),
1740
- u(l) ? (V(), G("div", {
1739
+ m(l) ? (V(), q("div", {
1741
1740
  class: "flex items-center gap-8 flex-wrap xs:grid xs:grid-cols-2 xs:overflow-x-scroll xs:w-full",
1742
- key: u(v)
1741
+ key: m(w)
1743
1742
  }, [
1744
- (V(!0), G(me, null, Fe(u(v), (C, P) => {
1745
- var D, ne;
1746
- return V(), be(ke, {
1743
+ (V(!0), q(fe, null, Ie(m(w), (C, L) => {
1744
+ var D, te;
1745
+ return V(), we(Ne, {
1747
1746
  class: "w-[200px]",
1748
1747
  "image-fit": "cover",
1749
1748
  label: "",
1750
1749
  "aspect-ratio": "2/3",
1751
- thumbnail: (ne = (D = u(s)) == null ? void 0 : D.advertisements) == null ? void 0 : ne[P],
1750
+ thumbnail: (te = (D = m(s)) == null ? void 0 : D.advertisements) == null ? void 0 : te[L],
1752
1751
  accept: ".png, .jpg, .jpeg, .mp4, .gif",
1753
1752
  "recommended-size": "Recommended 4:5 ratio / 1080px x 1350px",
1754
- file: u(y)[P] ?? void 0,
1755
- "onUpdate:file": (oe) => {
1756
- u(s).advertisements || (u(s).advertisements = []), oe ? (u(s).advertisements[P] = "", u(y)[P] = oe) : (u(s).advertisements.splice(P, 1), u(y).splice(P, 1));
1753
+ file: m(u)[L] ?? void 0,
1754
+ "onUpdate:file": (ne) => {
1755
+ m(s).advertisements || (m(s).advertisements = []), ne ? (m(s).advertisements[L] = "", m(u)[L] = ne) : (m(s).advertisements.splice(L, 1), m(u).splice(L, 1));
1757
1756
  }
1758
1757
  }, null, 8, ["thumbnail", "file", "onUpdate:file"]);
1759
1758
  }), 256))
1760
- ])) : Re("", !0)
1759
+ ])) : Pe("", !0)
1761
1760
  ]),
1762
- w("div", Un, [
1763
- Ln,
1764
- M(A, {
1765
- "model-value": ((K = u(s)) == null ? void 0 : K.brand) || "",
1761
+ b("div", An, [
1762
+ Mn,
1763
+ M(E, {
1764
+ "model-value": ((R = m(s)) == null ? void 0 : R.brand) || "",
1766
1765
  "max-length": 15,
1767
1766
  label: "Brand Name",
1768
1767
  "show-word-count": "",
1769
- "helper-text": `RM 0 ${((L = u(s)) == null ? void 0 : L.brand) || ""}: YOUR CUSTOMER MESSAGE`,
1770
- "onUpdate:modelValue": c[5] || (c[5] = (C) => u(s).brand = C)
1768
+ "helper-text": `RM 0 ${((H = m(s)) == null ? void 0 : H.brand) || ""}: YOUR CUSTOMER MESSAGE`,
1769
+ "onUpdate:modelValue": c[5] || (c[5] = (C) => m(s).brand = C)
1771
1770
  }, null, 8, ["model-value", "helper-text"]),
1772
- M(yt, {
1773
- modelValue: u(s).welcomeMessage,
1774
- "onUpdate:modelValue": c[6] || (c[6] = (C) => u(s).welcomeMessage = C),
1771
+ M(ut, {
1772
+ modelValue: m(s).welcomeMessage,
1773
+ "onUpdate:modelValue": c[6] || (c[6] = (C) => m(s).welcomeMessage = C),
1775
1774
  variables: [
1776
1775
  "user.name",
1777
1776
  "user.gender",
@@ -1782,106 +1781,77 @@ const bn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1782
1781
  placeholder: "Hi there, you have been invited to join membership"
1783
1782
  }, null, 8, ["modelValue"])
1784
1783
  ]),
1785
- w("div", Fn, [
1786
- Rn,
1787
- M(A, {
1788
- "model-value": ((Ne = (Ie = u(s)) == null ? void 0 : Ie.email) == null ? void 0 : Ne.from) || null,
1789
- label: "From Address",
1790
- "helper-text": "Will be shown as email of the sender (requires DNS configuration, Contact us to verify your domain.)",
1791
- placeholder: "noreply@feedme.cc",
1792
- disabled: "",
1793
- "onUpdate:modelValue": c[7] || (c[7] = (C) => {
1794
- var P;
1795
- (P = u(s)) != null && P.email || (u(s).email = {
1796
- from: C
1797
- }), u(s).email.from = C || null;
1798
- }),
1799
- rules: [u(De).ruleAtPath(u(m), "email.from")]
1800
- }, null, 8, ["model-value", "rules"]),
1801
- M(A, {
1802
- "model-value": ((Le = (Ue = u(s)) == null ? void 0 : Ue.email) == null ? void 0 : Le.name) || null,
1803
- label: "Sender name",
1804
- "helper-text": "Will be shown as the name of the sender",
1805
- "onUpdate:modelValue": c[8] || (c[8] = (C) => {
1806
- var P;
1807
- (P = u(s)) != null && P.email || (u(s).email = {
1808
- name: C
1809
- }), u(s).email.name = C || null;
1810
- }),
1811
- rules: [u(De).ruleAtPath(u(m), "email.name")]
1812
- }, null, 8, ["model-value", "rules"])
1813
- ]),
1814
- w("div", Dn, [
1815
- kn,
1816
- M(N, {
1817
- "model-value": u(s).freeCreditAsDiscount ?? !1,
1818
- "onUpdate:modelValue": c[9] || (c[9] = (C) => u(s).freeCreditAsDiscount = C),
1784
+ b("div", Sn, [
1785
+ Tn,
1786
+ M(P, {
1787
+ "model-value": m(s).freeCreditAsDiscount ?? !1,
1788
+ "onUpdate:modelValue": c[7] || (c[7] = (C) => m(s).freeCreditAsDiscount = C),
1819
1789
  label: "Free Credit as Discount",
1820
1790
  sublabel: "When enabled, this will allow free credit to be used as discount in the bill (POS >=v6.56)",
1821
1791
  "label-placement": "right",
1822
1792
  value: ""
1823
1793
  }, null, 8, ["model-value"])
1824
1794
  ]),
1825
- w("div", Vn, [
1826
- w("div", xn, [
1827
- W(" Member Card "),
1828
- M(I, { variant: "premium" })
1795
+ b("div", In, [
1796
+ b("div", Pn, [
1797
+ Q(" Member Card "),
1798
+ M(T, { variant: "premium" })
1829
1799
  ]),
1830
- M(N, {
1831
- "model-value": u(s).cardEnable ?? !1,
1832
- "onUpdate:modelValue": c[10] || (c[10] = (C) => u(s).cardEnable = C),
1800
+ M(P, {
1801
+ "model-value": m(s).cardEnable ?? !1,
1802
+ "onUpdate:modelValue": c[8] || (c[8] = (C) => m(s).cardEnable = C),
1833
1803
  label: "",
1834
1804
  sublabel: "Allow member to bind card via member app",
1835
1805
  "label-placement": "right",
1836
1806
  value: "",
1837
- disabled: !u(i).isPremium
1807
+ disabled: !m(i).isPremium
1838
1808
  }, null, 8, ["model-value", "disabled"])
1839
1809
  ]),
1840
- w("div", $n, [
1841
- zn,
1842
- M(pt, {
1810
+ b("div", Nn, [
1811
+ Ln,
1812
+ M(ct, {
1843
1813
  label: "Select restaurant",
1844
- "model-value": u(s).targetLocation ?? null,
1845
- "onUpdate:modelValue": c[11] || (c[11] = (C) => u(s).targetLocation = C)
1814
+ "model-value": m(s).targetLocation ?? null,
1815
+ "onUpdate:modelValue": c[9] || (c[9] = (C) => m(s).targetLocation = C)
1846
1816
  }, null, 8, ["model-value"])
1847
1817
  ]),
1848
- w("div", Hn, [
1849
- M(E, {
1818
+ b("div", Un, [
1819
+ M(_, {
1850
1820
  label: "Update",
1851
1821
  type: "button",
1852
- onClick: b,
1853
- disabled: !!u(e).loadingQueue.length,
1854
- loading: !!u(e).loadingQueue.length
1822
+ onClick: y,
1823
+ disabled: !!m(e).loadingQueue.length,
1824
+ loading: !!m(e).loadingQueue.length
1855
1825
  }, null, 8, ["disabled", "loading"])
1856
1826
  ])
1857
1827
  ])
1858
1828
  ]),
1859
- w("div", Kn, [
1860
- M(T, {
1829
+ b("div", Fn, [
1830
+ M(A, {
1861
1831
  variant: "outlined",
1862
1832
  class: "flex flex-col p-24 gap-8"
1863
1833
  }, {
1864
- default: Q(() => {
1865
- var C, P, D;
1834
+ default: G(() => {
1835
+ var C, L, D;
1866
1836
  return [
1867
- On,
1868
- M(z, { class: "my-4" }),
1869
- w("div", null, [
1870
- Yn,
1871
- w("div", jn, k(u(s).name), 1)
1837
+ Rn,
1838
+ M(N, { class: "my-4" }),
1839
+ b("div", null, [
1840
+ Dn,
1841
+ b("div", kn, k(m(s).name), 1)
1872
1842
  ]),
1873
- w("div", null, [
1874
- Jn,
1875
- w("div", qn, k((((C = u(s).advertisements) == null ? void 0 : C.length) ?? 0) || "No advertisments"), 1)
1843
+ b("div", null, [
1844
+ Vn,
1845
+ b("div", xn, k((((C = m(s).advertisements) == null ? void 0 : C.length) ?? 0) || "No advertisments"), 1)
1876
1846
  ]),
1877
- w("div", null, [
1878
- Gn,
1879
- w("div", Qn, k(u(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
1847
+ b("div", null, [
1848
+ $n,
1849
+ b("div", zn, k(m(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
1880
1850
  ]),
1881
- w("div", null, [
1882
- Wn,
1883
- w("div", Xn, k(!u(s).targetLocation || u(s).targetLocation.length == u(ve)().locations.length ? "All locations" : (D = (P = u(s)) == null ? void 0 : P.targetLocation) == null ? void 0 : D.map(
1884
- (ne) => u(i).locations.find((oe) => oe._id == ne).name
1851
+ b("div", null, [
1852
+ Hn,
1853
+ b("div", Kn, k(!m(s).targetLocation || m(s).targetLocation.length == m(be)().locations.length ? "All locations" : (D = (L = m(s)) == null ? void 0 : L.targetLocation) == null ? void 0 : D.map(
1854
+ (te) => m(i).locations.find((ne) => ne._id == te).name
1885
1855
  ).join(", ")), 1)
1886
1856
  ])
1887
1857
  ];
@@ -1889,11 +1859,11 @@ const bn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1889
1859
  _: 1
1890
1860
  })
1891
1861
  ])
1892
- ])) : Re("", !0)
1862
+ ])) : Pe("", !0)
1893
1863
  ], 64);
1894
1864
  };
1895
1865
  }
1896
1866
  });
1897
1867
  export {
1898
- go as default
1868
+ oo as default
1899
1869
  };