@feedmepos/mf-connect 0.1.0-beta.4 → 0.1.0-beta.41

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 (106) hide show
  1. package/dist/Analytic-C7iDpCvx.js +426 -0
  2. package/dist/{App-BnQwjxIr.js → App-rOEspgIk.js} +397 -384
  3. package/dist/{Broadcast-y1kP18mo.js → Broadcast-CI61-FqI.js} +32 -32
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Dj0JUMOk.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BL_KxlIX.js} +6 -8
  5. package/dist/Card-CUzEZnUC.js +894 -0
  6. package/dist/{Collections-DPfbZMg1.js → Collections-zYhQfAph.js} +28 -34
  7. package/dist/{Credit-QleM_b6q.js → Credit-D6G2xUEu.js} +14 -14
  8. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  9. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CxxmBzPu.js +2209 -0
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-2hRTF1EJ.js → EffectSheet.vue_vue_type_style_index_0_lang-Drd0ZjdQ.js} +8 -8
  11. package/dist/{Experience-DGKj8ChY.js → Experience-Cqn6cpA4.js} +8 -8
  12. package/dist/{Game-BxRdzSma.js → Game-CGrL5xmK.js} +15 -15
  13. package/dist/Index-CCcuCcmL.js +255 -0
  14. package/dist/Marketing-DhZHedDV.js +20070 -0
  15. package/dist/{Member-CteeBDi2.js → Member-CB8o8wLL.js} +4 -4
  16. package/dist/MemberList-D6zRpcwU.js +1554 -0
  17. package/dist/MemberTransactions-HCaDl8dN.js +45 -0
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CZ2M8huU.js → MessageInput.vue_vue_type_script_setup_true_lang-CqlGFgwF.js} +2 -2
  19. package/dist/{Mission-CZgXBa09.js → Mission-CexuwCSV.js} +98 -86
  20. package/dist/Overview-CZk3IHyA.js +1063 -0
  21. package/dist/{Point-C2vzEfRP.js → Point-DJ_sLiid.js} +23 -23
  22. package/dist/{Promotion-337OT0sP.js → Promotion-CWBpjPXQ.js} +53 -47
  23. package/dist/Record-CwT9Pmjn.js +337 -0
  24. package/dist/Reward-DhOIXKAB.js +432 -0
  25. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-UP4KtCK2.js +149 -0
  26. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BNw-CED0.js +1637 -0
  27. package/dist/Segment-BE7Bt2tH.js +566 -0
  28. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-CDyT_cSb.js +181 -0
  29. package/dist/{Setting-DVK2594u.js → Setting-D1k2xVYx.js} +609 -586
  30. package/dist/Store-BzoJ_ZBZ.js +1743 -0
  31. package/dist/{StoreRewards-BpEmNueE.js → StoreRewards-OAPmCssF.js} +12 -12
  32. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BIr5Zzij.js +1099 -0
  33. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DT48bSiH.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C2fU1byp.js} +1 -1
  34. package/dist/{Tier-BwvOhyXR.js → Tier-IHJ7dlTI.js} +325 -317
  35. package/dist/{Title-DRPdKYRO.js → Title-C4KcQWk_.js} +197 -183
  36. package/dist/{Transaction-BnLvacwW.js → Transaction-B7SWRleT.js} +2 -2
  37. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-DOXLpM1y.js +130 -0
  38. package/dist/{Voucher-BQL8J_EA.js → Voucher-Dzh-oh1p.js} +40 -40
  39. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DeTWCZF1.js +419 -0
  40. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B316b_ta.js → ZodTextField.vue_vue_type_script_setup_true_lang-rBa59HC1.js} +1 -1
  41. package/dist/{app-BVaQwBvq.js → app-BkSGMADw.js} +1 -1
  42. package/dist/{app-zO552-Dl.js → app-ZePrUEIY.js} +1183 -1154
  43. package/dist/app.js +1 -1
  44. package/dist/{business-BSl6NSdS.js → business-CG7GnAu5.js} +1 -1
  45. package/dist/campaign-BSH9FJHx.js +1810 -0
  46. package/dist/{campaign-CxN6mq_l.js → campaign-DFvmN5Ky.js} +2 -2
  47. package/dist/campaign.enum-CBlGXHp0.js +20 -0
  48. package/dist/campaign.fn-BszsH1EQ.js +758 -0
  49. package/dist/collectible.enum-Sd3QSyrd.js +19 -0
  50. package/dist/{collection.fn-C-2dyWp9.js → collection.fn-CIFllkyx.js} +2 -2
  51. package/dist/dto-DG2Ckvh4.js +214 -0
  52. package/dist/{effect-D8y0J47O.js → effect-CWSFIfZh.js} +9 -9
  53. package/dist/email-addresses-BCNsQNXA.js +705 -0
  54. package/dist/{export-BxTrifKO.js → export-DKe01mG4.js} +3 -3
  55. package/dist/{helper-bEmZlTwA.js → helper-Et1Q6YUA.js} +1 -1
  56. package/dist/{index-DHTYWfTs.js → index-Bk281EIF.js} +207 -195
  57. package/dist/{index-B2qriSSk.js → index-CHAvEqB_.js} +1 -1
  58. package/dist/index-CMEY40F9.js +32 -0
  59. package/dist/index-CsaQJMAR.js +66 -0
  60. package/dist/{index-C_WyKCqN.js → index-D4FT-dGm.js} +1 -1
  61. package/dist/{index-JBp0chol.js → index-D_sLK5cZ.js} +1500 -1479
  62. package/dist/{index-Dnv999nc.js → index-Dkl_Y2Ir.js} +1 -1
  63. package/dist/{index-Ckz-D_AP.js → index-Dlv6dpg5.js} +2188 -931
  64. package/dist/index-DrRQsR1a.js +44 -0
  65. package/dist/{index-DuYb25dY.js → index-DzZDUZ8E.js} +37 -4
  66. package/dist/index-F1sEdtX3.js +54 -0
  67. package/dist/index-RFzgIvoM.js +29000 -0
  68. package/dist/{index-BFWCbVq2.js → index-RhGXDJ8R.js} +1 -1
  69. package/dist/index-vh86FiIQ.js +10 -0
  70. package/dist/{index.esm2017-Tw7KabwI.js → index.esm2017-COLDuQQ-.js} +1 -1
  71. package/dist/{loading-60xYxow_.js → loading-DxppIZmv.js} +1714 -1720
  72. package/dist/{membership-43FU3EmV.js → membership-DIBN0bog.js} +52 -44
  73. package/dist/money-L7YJDctU.js +15 -0
  74. package/dist/number-BAUL1NQ9.js +12 -0
  75. package/dist/objectid-BXKVeU2w.js +145 -0
  76. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  77. package/dist/reward-Qjelc0jm.js +36 -0
  78. package/dist/{rule-DlHrKp8K.js → rule-BAqQRjqc.js} +180 -177
  79. package/dist/{rule-builder-CU8P8b8U.js → rule-builder-D2hQiWL6.js} +1 -1
  80. package/dist/style.css +1 -1
  81. package/dist/{template-9StyN-b7.js → template-NVFsa0l_.js} +5 -5
  82. package/dist/trigger-qeiGHLZs.js +114 -0
  83. package/dist/{xlsx-CrRvm5Vs.js → usePagination-De7j-UtU.js} +3183 -2962
  84. package/dist/user-CKVD-V1i.js +54 -0
  85. package/dist/{vue-i18n-UKlvivrG.js → vue-i18n-CTdcKDi0.js} +2 -2
  86. package/package.json +8 -7
  87. package/dist/Analytic-BtldByrt.js +0 -622
  88. package/dist/Card-kW7k8kOl.js +0 -825
  89. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BtI2rY4y.js +0 -2813
  90. package/dist/Marketing-CG4GQdax.js +0 -316
  91. package/dist/MemberList-CANkPyR0.js +0 -1733
  92. package/dist/MemberTransactions-CcCa21fY.js +0 -38
  93. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Dh3naMXv.js +0 -1753
  94. package/dist/Segment-Clstp5D-.js +0 -437
  95. package/dist/Store-PnpBvIoo.js +0 -1511
  96. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CrDhK2dt.js +0 -890
  97. package/dist/dto-B20bsdh6.js +0 -2770
  98. package/dist/index-BUCjM4jq.js +0 -29193
  99. package/dist/index-Ceu2PcnH.js +0 -206
  100. package/dist/index-CuvNtC_M.js +0 -61
  101. package/dist/index-D3DAgTFI.js +0 -762
  102. package/dist/index-Kjelmo0Y.js +0 -298
  103. package/dist/money-CmR3-qMz.js +0 -15
  104. package/dist/number-CZlrO6Sq.js +0 -12
  105. package/dist/usePagination-BeF5K3M7.js +0 -223
  106. package/dist/user-Bm4KttFq.js +0 -37
@@ -1,24 +1,25 @@
1
- import { defineComponent as He, ref as H, computed as se, onMounted as Ke, resolveComponent as R, openBlock as x, createBlock as be, withCtx as W, createElementVNode as b, createVNode as S, unref as c, isRef as Oe, createElementBlock as G, Fragment as me, toDisplayString as F, createTextVNode as Q, renderList as Re, createCommentVNode as De } from "vue";
2
- import { h as dt } from "./moment-BWErdI6_.js";
3
- import { Z as ke } from "./zod-Bg2FbC-D.js";
4
- import { useDialog as Ye } from "@feedmepos/ui-library";
5
- import { a as je, u as ft, p as mt, f as K } from "./loading-60xYxow_.js";
6
- import { u as gt } from "./app-wDQR6dpb.js";
7
- import { u as ve, l as Je } from "./business-BSl6NSdS.js";
8
- import { u as qe } from "./membership-43FU3EmV.js";
9
- import { m as ht, l as pt } from "./index-D3DAgTFI.js";
10
- import { _ as Ve } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
11
- import { _ as yt } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DT48bSiH.js";
12
- import { _ as wt } from "./MessageInput.vue_vue_type_script_setup_true_lang-CZ2M8huU.js";
13
- import { u as bt } from "./vue-i18n-UKlvivrG.js";
14
- import { m as vt } from "./index-DuYb25dY.js";
15
- import { o as Ct } from "./objectId-dwaoBfJX.js";
16
- import { a as Et } from "./object-qECH92oz.js";
17
- var ee = {}, Bt = function() {
1
+ import { defineComponent as qe, ref as z, computed as ce, onMounted as Ge, resolveComponent as D, openBlock as x, createBlock as ue, withCtx as W, createElementVNode as b, createVNode as I, unref as u, isRef as Qe, createElementBlock as Y, Fragment as ie, toDisplayString as V, createTextVNode as Z, renderList as $e, createCommentVNode as se } from "vue";
2
+ import { h as bt } from "./moment-BWErdI6_.js";
3
+ import { Z as ze } from "./zod-Bg2FbC-D.js";
4
+ import { useDialog as Xe } from "@feedmepos/ui-library";
5
+ import { a as Ze, u as vt, p as Ct, f as j } from "./loading-DxppIZmv.js";
6
+ import { u as Et } from "./app-wDQR6dpb.js";
7
+ import { u as Ae, l as We } from "./business-CG7GnAu5.js";
8
+ import { u as et } from "./membership-DIBN0bog.js";
9
+ import { D as At, p as Bt } from "./index-Dlv6dpg5.js";
10
+ import { _ as He } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
11
+ import { _ as _t } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-C2fU1byp.js";
12
+ import { _ as Mt } from "./MessageInput.vue_vue_type_script_setup_true_lang-CqlGFgwF.js";
13
+ import { u as St } from "./vue-i18n-CTdcKDi0.js";
14
+ import { m as Ke } from "./index-DzZDUZ8E.js";
15
+ import { S as It } from "./index-RFzgIvoM.js";
16
+ import { o as Pt } from "./objectId-dwaoBfJX.js";
17
+ import { a as Tt } from "./object-qECH92oz.js";
18
+ var ne = {}, Nt = function() {
18
19
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
19
- }, Ge = {}, U = {};
20
- let _e;
21
- const At = [
20
+ }, tt = {}, F = {};
21
+ let Ie;
22
+ const Ut = [
22
23
  0,
23
24
  // Not used
24
25
  26,
@@ -62,32 +63,32 @@ const At = [
62
63
  3532,
63
64
  3706
64
65
  ];
65
- U.getSymbolSize = function(e) {
66
+ F.getSymbolSize = function(e) {
66
67
  if (!e) throw new Error('"version" cannot be null or undefined');
67
68
  if (e < 1 || e > 40) throw new Error('"version" should be in range from 1 to 40');
68
69
  return e * 4 + 17;
69
70
  };
70
- U.getSymbolTotalCodewords = function(e) {
71
- return At[e];
71
+ F.getSymbolTotalCodewords = function(e) {
72
+ return Ut[e];
72
73
  };
73
- U.getBCHDigit = function(t) {
74
+ F.getBCHDigit = function(t) {
74
75
  let e = 0;
75
76
  for (; t !== 0; )
76
77
  e++, t >>>= 1;
77
78
  return e;
78
79
  };
79
- U.setToSJISFunction = function(e) {
80
+ F.setToSJISFunction = function(e) {
80
81
  if (typeof e != "function")
81
82
  throw new Error('"toSJISFunc" is not a valid function.');
82
- _e = e;
83
+ Ie = e;
83
84
  };
84
- U.isKanjiModeEnabled = function() {
85
- return typeof _e < "u";
85
+ F.isKanjiModeEnabled = function() {
86
+ return typeof Ie < "u";
86
87
  };
87
- U.toSJIS = function(e) {
88
- return _e(e);
88
+ F.toSJIS = function(e) {
89
+ return Ie(e);
89
90
  };
90
- var ue = {};
91
+ var me = {};
91
92
  (function(t) {
92
93
  t.L = { bit: 1 }, t.M = { bit: 0 }, t.Q = { bit: 3 }, t.H = { bit: 2 };
93
94
  function e(i) {
@@ -121,11 +122,11 @@ var ue = {};
121
122
  return o;
122
123
  }
123
124
  };
124
- })(ue);
125
- function Qe() {
125
+ })(me);
126
+ function nt() {
126
127
  this.buffer = [], this.length = 0;
127
128
  }
128
- Qe.prototype = {
129
+ nt.prototype = {
129
130
  get: function(t) {
130
131
  const e = Math.floor(t / 8);
131
132
  return (this.buffer[e] >>> 7 - t % 8 & 1) === 1;
@@ -142,28 +143,28 @@ Qe.prototype = {
142
143
  this.buffer.length <= e && this.buffer.push(0), t && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;
143
144
  }
144
145
  };
145
- var _t = Qe;
146
- function te(t) {
146
+ var Lt = nt;
147
+ function oe(t) {
147
148
  if (!t || t < 1)
148
149
  throw new Error("BitMatrix size must be defined and greater than 0");
149
150
  this.size = t, this.data = new Uint8Array(t * t), this.reservedBit = new Uint8Array(t * t);
150
151
  }
151
- te.prototype.set = function(t, e, i, r) {
152
+ oe.prototype.set = function(t, e, i, r) {
152
153
  const o = t * this.size + e;
153
154
  this.data[o] = i, r && (this.reservedBit[o] = !0);
154
155
  };
155
- te.prototype.get = function(t, e) {
156
+ oe.prototype.get = function(t, e) {
156
157
  return this.data[t * this.size + e];
157
158
  };
158
- te.prototype.xor = function(t, e, i) {
159
+ oe.prototype.xor = function(t, e, i) {
159
160
  this.data[t * this.size + e] ^= i;
160
161
  };
161
- te.prototype.isReserved = function(t, e) {
162
+ oe.prototype.isReserved = function(t, e) {
162
163
  return this.reservedBit[t * this.size + e];
163
164
  };
164
- var Mt = te, We = {};
165
+ var Ft = oe, ot = {};
165
166
  (function(t) {
166
- const e = U.getSymbolSize;
167
+ const e = F.getSymbolSize;
167
168
  t.getRowColCoords = function(r) {
168
169
  if (r === 1) return [];
169
170
  const o = Math.floor(r / 7) + 2, n = e(r), l = n === 145 ? 26 : Math.ceil((n - 13) / (2 * o - 2)) * 2, s = [n - 7];
@@ -179,21 +180,21 @@ var Mt = te, We = {};
179
180
  s === l - 1 && a === 0 || o.push([n[s], n[a]]);
180
181
  return o;
181
182
  };
182
- })(We);
183
- var Xe = {};
184
- const St = U.getSymbolSize, xe = 7;
185
- Xe.getPositions = function(e) {
186
- const i = St(e);
183
+ })(ot);
184
+ var rt = {};
185
+ const Rt = F.getSymbolSize, Oe = 7;
186
+ rt.getPositions = function(e) {
187
+ const i = Rt(e);
187
188
  return [
188
189
  // top-left
189
190
  [0, 0],
190
191
  // top-right
191
- [i - xe, 0],
192
+ [i - Oe, 0],
192
193
  // bottom-left
193
- [0, i - xe]
194
+ [0, i - Oe]
194
195
  ];
195
196
  };
196
- var Ze = {};
197
+ var it = {};
197
198
  (function(t) {
198
199
  t.Patterns = {
199
200
  PATTERN000: 0,
@@ -217,12 +218,12 @@ var Ze = {};
217
218
  return t.isValid(o) ? parseInt(o, 10) : void 0;
218
219
  }, t.getPenaltyN1 = function(o) {
219
220
  const n = o.size;
220
- let l = 0, s = 0, a = 0, m = null, g = null;
221
+ let l = 0, s = 0, a = 0, f = null, m = null;
221
222
  for (let B = 0; B < n; B++) {
222
- s = a = 0, m = g = null;
223
- for (let h = 0; h < n; h++) {
224
- let d = o.get(B, h);
225
- d === m ? s++ : (s >= 5 && (l += e.N1 + (s - 5)), m = d, s = 1), d = o.get(h, B), d === g ? a++ : (a >= 5 && (l += e.N1 + (a - 5)), g = d, a = 1);
223
+ s = a = 0, f = m = null;
224
+ for (let g = 0; g < n; g++) {
225
+ let d = o.get(B, g);
226
+ d === f ? s++ : (s >= 5 && (l += e.N1 + (s - 5)), f = d, s = 1), d = o.get(g, B), d === m ? a++ : (a >= 5 && (l += e.N1 + (a - 5)), m = d, a = 1);
226
227
  }
227
228
  s >= 5 && (l += e.N1 + (s - 5)), a >= 5 && (l += e.N1 + (a - 5));
228
229
  }
@@ -232,17 +233,17 @@ var Ze = {};
232
233
  let l = 0;
233
234
  for (let s = 0; s < n - 1; s++)
234
235
  for (let a = 0; a < n - 1; a++) {
235
- const m = o.get(s, a) + o.get(s, a + 1) + o.get(s + 1, a) + o.get(s + 1, a + 1);
236
- (m === 4 || m === 0) && l++;
236
+ const f = o.get(s, a) + o.get(s, a + 1) + o.get(s + 1, a) + o.get(s + 1, a + 1);
237
+ (f === 4 || f === 0) && l++;
237
238
  }
238
239
  return l * e.N2;
239
240
  }, t.getPenaltyN3 = function(o) {
240
241
  const n = o.size;
241
242
  let l = 0, s = 0, a = 0;
242
- for (let m = 0; m < n; m++) {
243
+ for (let f = 0; f < n; f++) {
243
244
  s = a = 0;
244
- for (let g = 0; g < n; g++)
245
- s = s << 1 & 2047 | o.get(m, g), g >= 10 && (s === 1488 || s === 93) && l++, a = a << 1 & 2047 | o.get(g, m), g >= 10 && (a === 1488 || a === 93) && l++;
245
+ for (let m = 0; m < n; m++)
246
+ s = s << 1 & 2047 | o.get(f, m), m >= 10 && (s === 1488 || s === 93) && l++, a = a << 1 & 2047 | o.get(m, f), m >= 10 && (a === 1488 || a === 93) && l++;
246
247
  }
247
248
  return l * e.N3;
248
249
  }, t.getPenaltyN4 = function(o) {
@@ -281,16 +282,16 @@ var Ze = {};
281
282
  }, t.getBestMask = function(o, n) {
282
283
  const l = Object.keys(t.Patterns).length;
283
284
  let s = 0, a = 1 / 0;
284
- for (let m = 0; m < l; m++) {
285
- n(m), t.applyMask(m, o);
286
- const g = t.getPenaltyN1(o) + t.getPenaltyN2(o) + t.getPenaltyN3(o) + t.getPenaltyN4(o);
287
- t.applyMask(m, o), g < a && (a = g, s = m);
285
+ for (let f = 0; f < l; f++) {
286
+ n(f), t.applyMask(f, o);
287
+ const m = t.getPenaltyN1(o) + t.getPenaltyN2(o) + t.getPenaltyN3(o) + t.getPenaltyN4(o);
288
+ t.applyMask(f, o), m < a && (a = m, s = f);
288
289
  }
289
290
  return s;
290
291
  };
291
- })(Ze);
292
- var ce = {};
293
- const z = ue, re = [
292
+ })(it);
293
+ var ge = {};
294
+ const H = me, le = [
294
295
  // L M Q H
295
296
  1,
296
297
  1,
@@ -452,7 +453,7 @@ const z = ue, re = [
452
453
  49,
453
454
  68,
454
455
  81
455
- ], ie = [
456
+ ], ae = [
456
457
  // L M Q H
457
458
  7,
458
459
  10,
@@ -615,55 +616,55 @@ const z = ue, re = [
615
616
  2040,
616
617
  2430
617
618
  ];
618
- ce.getBlocksCount = function(e, i) {
619
+ ge.getBlocksCount = function(e, i) {
619
620
  switch (i) {
620
- case z.L:
621
- return re[(e - 1) * 4 + 0];
622
- case z.M:
623
- return re[(e - 1) * 4 + 1];
624
- case z.Q:
625
- return re[(e - 1) * 4 + 2];
626
- case z.H:
627
- return re[(e - 1) * 4 + 3];
621
+ case H.L:
622
+ return le[(e - 1) * 4 + 0];
623
+ case H.M:
624
+ return le[(e - 1) * 4 + 1];
625
+ case H.Q:
626
+ return le[(e - 1) * 4 + 2];
627
+ case H.H:
628
+ return le[(e - 1) * 4 + 3];
628
629
  default:
629
630
  return;
630
631
  }
631
632
  };
632
- ce.getTotalCodewordsCount = function(e, i) {
633
+ ge.getTotalCodewordsCount = function(e, i) {
633
634
  switch (i) {
634
- case z.L:
635
- return ie[(e - 1) * 4 + 0];
636
- case z.M:
637
- return ie[(e - 1) * 4 + 1];
638
- case z.Q:
639
- return ie[(e - 1) * 4 + 2];
640
- case z.H:
641
- return ie[(e - 1) * 4 + 3];
635
+ case H.L:
636
+ return ae[(e - 1) * 4 + 0];
637
+ case H.M:
638
+ return ae[(e - 1) * 4 + 1];
639
+ case H.Q:
640
+ return ae[(e - 1) * 4 + 2];
641
+ case H.H:
642
+ return ae[(e - 1) * 4 + 3];
642
643
  default:
643
644
  return;
644
645
  }
645
646
  };
646
- var et = {}, de = {};
647
- const X = new Uint8Array(512), le = new Uint8Array(256);
647
+ var st = {}, he = {};
648
+ const ee = new Uint8Array(512), de = new Uint8Array(256);
648
649
  (function() {
649
650
  let e = 1;
650
651
  for (let i = 0; i < 255; i++)
651
- X[i] = e, le[e] = i, e <<= 1, e & 256 && (e ^= 285);
652
+ ee[i] = e, de[e] = i, e <<= 1, e & 256 && (e ^= 285);
652
653
  for (let i = 255; i < 512; i++)
653
- X[i] = X[i - 255];
654
+ ee[i] = ee[i - 255];
654
655
  })();
655
- de.log = function(e) {
656
+ he.log = function(e) {
656
657
  if (e < 1) throw new Error("log(" + e + ")");
657
- return le[e];
658
+ return de[e];
658
659
  };
659
- de.exp = function(e) {
660
- return X[e];
660
+ he.exp = function(e) {
661
+ return ee[e];
661
662
  };
662
- de.mul = function(e, i) {
663
- return e === 0 || i === 0 ? 0 : X[le[e] + le[i]];
663
+ he.mul = function(e, i) {
664
+ return e === 0 || i === 0 ? 0 : ee[de[e] + de[i]];
664
665
  };
665
666
  (function(t) {
666
- const e = de;
667
+ const e = he;
667
668
  t.mul = function(r, o) {
668
669
  const n = new Uint8Array(r.length + o.length - 1);
669
670
  for (let l = 0; l < r.length; l++)
@@ -687,53 +688,53 @@ de.mul = function(e, i) {
687
688
  o = t.mul(o, new Uint8Array([1, e.exp(n)]));
688
689
  return o;
689
690
  };
690
- })(et);
691
- const tt = et;
692
- function Me(t) {
691
+ })(st);
692
+ const lt = st;
693
+ function Pe(t) {
693
694
  this.genPoly = void 0, this.degree = t, this.degree && this.initialize(this.degree);
694
695
  }
695
- Me.prototype.initialize = function(e) {
696
- this.degree = e, this.genPoly = tt.generateECPolynomial(this.degree);
696
+ Pe.prototype.initialize = function(e) {
697
+ this.degree = e, this.genPoly = lt.generateECPolynomial(this.degree);
697
698
  };
698
- Me.prototype.encode = function(e) {
699
+ Pe.prototype.encode = function(e) {
699
700
  if (!this.genPoly)
700
701
  throw new Error("Encoder not initialized");
701
702
  const i = new Uint8Array(e.length + this.degree);
702
703
  i.set(e);
703
- const r = tt.mod(i, this.genPoly), o = this.degree - r.length;
704
+ const r = lt.mod(i, this.genPoly), o = this.degree - r.length;
704
705
  if (o > 0) {
705
706
  const n = new Uint8Array(this.degree);
706
707
  return n.set(r, o), n;
707
708
  }
708
709
  return r;
709
710
  };
710
- var It = Me, nt = {}, $ = {}, Se = {};
711
- Se.isValid = function(e) {
711
+ var Dt = Pe, at = {}, K = {}, Te = {};
712
+ Te.isValid = function(e) {
712
713
  return !isNaN(e) && e >= 1 && e <= 40;
713
714
  };
714
- var D = {};
715
- const ot = "[0-9]+", Tt = "[A-Z $%*+\\-./:]+";
716
- let Z = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
717
- Z = Z.replace(/u/g, "\\u");
718
- const Pt = "(?:(?![A-Z0-9 $%*+\\-./:]|" + Z + `)(?:.|[\r
715
+ var $ = {};
716
+ const ut = "[0-9]+", kt = "[A-Z $%*+\\-./:]+";
717
+ let te = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
718
+ te = te.replace(/u/g, "\\u");
719
+ const Vt = "(?:(?![A-Z0-9 $%*+\\-./:]|" + te + `)(?:.|[\r
719
720
  ]))+`;
720
- D.KANJI = new RegExp(Z, "g");
721
- D.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
722
- D.BYTE = new RegExp(Pt, "g");
723
- D.NUMERIC = new RegExp(ot, "g");
724
- D.ALPHANUMERIC = new RegExp(Tt, "g");
725
- const Nt = new RegExp("^" + Z + "$"), Ut = new RegExp("^" + ot + "$"), Lt = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
726
- D.testKanji = function(e) {
727
- return Nt.test(e);
721
+ $.KANJI = new RegExp(te, "g");
722
+ $.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
723
+ $.BYTE = new RegExp(Vt, "g");
724
+ $.NUMERIC = new RegExp(ut, "g");
725
+ $.ALPHANUMERIC = new RegExp(kt, "g");
726
+ const xt = new RegExp("^" + te + "$"), $t = new RegExp("^" + ut + "$"), zt = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
727
+ $.testKanji = function(e) {
728
+ return xt.test(e);
728
729
  };
729
- D.testNumeric = function(e) {
730
- return Ut.test(e);
730
+ $.testNumeric = function(e) {
731
+ return $t.test(e);
731
732
  };
732
- D.testAlphanumeric = function(e) {
733
- return Lt.test(e);
733
+ $.testAlphanumeric = function(e) {
734
+ return zt.test(e);
734
735
  };
735
736
  (function(t) {
736
- const e = Se, i = D;
737
+ const e = Te, i = $;
737
738
  t.NUMERIC = {
738
739
  id: "Numeric",
739
740
  bit: 1,
@@ -790,102 +791,102 @@ D.testAlphanumeric = function(e) {
790
791
  return l;
791
792
  }
792
793
  };
793
- })($);
794
+ })(K);
794
795
  (function(t) {
795
- const e = U, i = ce, r = ue, o = $, n = Se, l = 7973, s = e.getBCHDigit(l);
796
- function a(h, d, w) {
796
+ const e = F, i = ge, r = me, o = K, n = Te, l = 7973, s = e.getBCHDigit(l);
797
+ function a(g, d, v) {
797
798
  for (let C = 1; C <= 40; C++)
798
- if (d <= t.getCapacity(C, w, h))
799
+ if (d <= t.getCapacity(C, v, g))
799
800
  return C;
800
801
  }
801
- function m(h, d) {
802
- return o.getCharCountIndicator(h, d) + 4;
802
+ function f(g, d) {
803
+ return o.getCharCountIndicator(g, d) + 4;
803
804
  }
804
- function g(h, d) {
805
- let w = 0;
806
- return h.forEach(function(C) {
807
- const A = m(C.mode, d);
808
- w += A + C.getBitsLength();
809
- }), w;
805
+ function m(g, d) {
806
+ let v = 0;
807
+ return g.forEach(function(C) {
808
+ const M = f(C.mode, d);
809
+ v += M + C.getBitsLength();
810
+ }), v;
810
811
  }
811
- function B(h, d) {
812
- for (let w = 1; w <= 40; w++)
813
- if (g(h, w) <= t.getCapacity(w, d, o.MIXED))
814
- return w;
812
+ function B(g, d) {
813
+ for (let v = 1; v <= 40; v++)
814
+ if (m(g, v) <= t.getCapacity(v, d, o.MIXED))
815
+ return v;
815
816
  }
816
- t.from = function(d, w) {
817
- return n.isValid(d) ? parseInt(d, 10) : w;
818
- }, t.getCapacity = function(d, w, C) {
817
+ t.from = function(d, v) {
818
+ return n.isValid(d) ? parseInt(d, 10) : v;
819
+ }, t.getCapacity = function(d, v, C) {
819
820
  if (!n.isValid(d))
820
821
  throw new Error("Invalid QR Code version");
821
822
  typeof C > "u" && (C = o.BYTE);
822
- const A = e.getSymbolTotalCodewords(d), p = i.getTotalCodewordsCount(d, w), v = (A - p) * 8;
823
- if (C === o.MIXED) return v;
824
- const y = v - m(C, d);
823
+ const M = e.getSymbolTotalCodewords(d), p = i.getTotalCodewordsCount(d, v), h = (M - p) * 8;
824
+ if (C === o.MIXED) return h;
825
+ const w = h - f(C, d);
825
826
  switch (C) {
826
827
  case o.NUMERIC:
827
- return Math.floor(y / 10 * 3);
828
+ return Math.floor(w / 10 * 3);
828
829
  case o.ALPHANUMERIC:
829
- return Math.floor(y / 11 * 2);
830
+ return Math.floor(w / 11 * 2);
830
831
  case o.KANJI:
831
- return Math.floor(y / 13);
832
+ return Math.floor(w / 13);
832
833
  case o.BYTE:
833
834
  default:
834
- return Math.floor(y / 8);
835
+ return Math.floor(w / 8);
835
836
  }
836
- }, t.getBestVersionForData = function(d, w) {
837
+ }, t.getBestVersionForData = function(d, v) {
837
838
  let C;
838
- const A = r.from(w, r.M);
839
+ const M = r.from(v, r.M);
839
840
  if (Array.isArray(d)) {
840
841
  if (d.length > 1)
841
- return B(d, A);
842
+ return B(d, M);
842
843
  if (d.length === 0)
843
844
  return 1;
844
845
  C = d[0];
845
846
  } else
846
847
  C = d;
847
- return a(C.mode, C.getLength(), A);
848
+ return a(C.mode, C.getLength(), M);
848
849
  }, t.getEncodedBits = function(d) {
849
850
  if (!n.isValid(d) || d < 7)
850
851
  throw new Error("Invalid QR Code version");
851
- let w = d << 12;
852
- for (; e.getBCHDigit(w) - s >= 0; )
853
- w ^= l << e.getBCHDigit(w) - s;
854
- return d << 12 | w;
852
+ let v = d << 12;
853
+ for (; e.getBCHDigit(v) - s >= 0; )
854
+ v ^= l << e.getBCHDigit(v) - s;
855
+ return d << 12 | v;
855
856
  };
856
- })(nt);
857
- var rt = {};
858
- const Ce = U, it = 1335, Ft = 21522, ze = Ce.getBCHDigit(it);
859
- rt.getEncodedBits = function(e, i) {
857
+ })(at);
858
+ var ct = {};
859
+ const Be = F, dt = 1335, Ht = 21522, Ye = Be.getBCHDigit(dt);
860
+ ct.getEncodedBits = function(e, i) {
860
861
  const r = e.bit << 3 | i;
861
862
  let o = r << 10;
862
- for (; Ce.getBCHDigit(o) - ze >= 0; )
863
- o ^= it << Ce.getBCHDigit(o) - ze;
864
- return (r << 10 | o) ^ Ft;
863
+ for (; Be.getBCHDigit(o) - Ye >= 0; )
864
+ o ^= dt << Be.getBCHDigit(o) - Ye;
865
+ return (r << 10 | o) ^ Ht;
865
866
  };
866
- var st = {};
867
- const Rt = $;
868
- function O(t) {
869
- this.mode = Rt.NUMERIC, this.data = t.toString();
867
+ var ft = {};
868
+ const Kt = K;
869
+ function J(t) {
870
+ this.mode = Kt.NUMERIC, this.data = t.toString();
870
871
  }
871
- O.getBitsLength = function(e) {
872
+ J.getBitsLength = function(e) {
872
873
  return 10 * Math.floor(e / 3) + (e % 3 ? e % 3 * 3 + 1 : 0);
873
874
  };
874
- O.prototype.getLength = function() {
875
+ J.prototype.getLength = function() {
875
876
  return this.data.length;
876
877
  };
877
- O.prototype.getBitsLength = function() {
878
- return O.getBitsLength(this.data.length);
878
+ J.prototype.getBitsLength = function() {
879
+ return J.getBitsLength(this.data.length);
879
880
  };
880
- O.prototype.write = function(e) {
881
+ J.prototype.write = function(e) {
881
882
  let i, r, o;
882
883
  for (i = 0; i + 3 <= this.data.length; i += 3)
883
884
  r = this.data.substr(i, 3), o = parseInt(r, 10), e.put(o, 10);
884
885
  const n = this.data.length - i;
885
886
  n > 0 && (r = this.data.substr(i), o = parseInt(r, 10), e.put(o, n * 3 + 1));
886
887
  };
887
- var Dt = O;
888
- const kt = $, ge = [
888
+ var Ot = J;
889
+ const Yt = K, we = [
889
890
  "0",
890
891
  "1",
891
892
  "2",
@@ -932,27 +933,27 @@ const kt = $, ge = [
932
933
  "/",
933
934
  ":"
934
935
  ];
935
- function Y(t) {
936
- this.mode = kt.ALPHANUMERIC, this.data = t;
936
+ function q(t) {
937
+ this.mode = Yt.ALPHANUMERIC, this.data = t;
937
938
  }
938
- Y.getBitsLength = function(e) {
939
+ q.getBitsLength = function(e) {
939
940
  return 11 * Math.floor(e / 2) + 6 * (e % 2);
940
941
  };
941
- Y.prototype.getLength = function() {
942
+ q.prototype.getLength = function() {
942
943
  return this.data.length;
943
944
  };
944
- Y.prototype.getBitsLength = function() {
945
- return Y.getBitsLength(this.data.length);
945
+ q.prototype.getBitsLength = function() {
946
+ return q.getBitsLength(this.data.length);
946
947
  };
947
- Y.prototype.write = function(e) {
948
+ q.prototype.write = function(e) {
948
949
  let i;
949
950
  for (i = 0; i + 2 <= this.data.length; i += 2) {
950
- let r = ge.indexOf(this.data[i]) * 45;
951
- r += ge.indexOf(this.data[i + 1]), e.put(r, 11);
951
+ let r = we.indexOf(this.data[i]) * 45;
952
+ r += we.indexOf(this.data[i + 1]), e.put(r, 11);
952
953
  }
953
- this.data.length % 2 && e.put(ge.indexOf(this.data[i]), 6);
954
+ this.data.length % 2 && e.put(we.indexOf(this.data[i]), 6);
954
955
  };
955
- var Vt = Y, xt = function(e) {
956
+ var jt = q, Jt = function(e) {
956
957
  for (var i = [], r = e.length, o = 0; o < r; o++) {
957
958
  var n = e.charCodeAt(o);
958
959
  if (n >= 55296 && n <= 56319 && r > o + 1) {
@@ -979,41 +980,41 @@ var Vt = Y, xt = function(e) {
979
980
  }
980
981
  return new Uint8Array(i).buffer;
981
982
  };
982
- const zt = xt, $t = $;
983
- function j(t) {
984
- this.mode = $t.BYTE, typeof t == "string" && (t = zt(t)), this.data = new Uint8Array(t);
983
+ const qt = Jt, Gt = K;
984
+ function G(t) {
985
+ this.mode = Gt.BYTE, typeof t == "string" && (t = qt(t)), this.data = new Uint8Array(t);
985
986
  }
986
- j.getBitsLength = function(e) {
987
+ G.getBitsLength = function(e) {
987
988
  return e * 8;
988
989
  };
989
- j.prototype.getLength = function() {
990
+ G.prototype.getLength = function() {
990
991
  return this.data.length;
991
992
  };
992
- j.prototype.getBitsLength = function() {
993
- return j.getBitsLength(this.data.length);
993
+ G.prototype.getBitsLength = function() {
994
+ return G.getBitsLength(this.data.length);
994
995
  };
995
- j.prototype.write = function(t) {
996
+ G.prototype.write = function(t) {
996
997
  for (let e = 0, i = this.data.length; e < i; e++)
997
998
  t.put(this.data[e], 8);
998
999
  };
999
- var Ht = j;
1000
- const Kt = $, Ot = U;
1001
- function J(t) {
1002
- this.mode = Kt.KANJI, this.data = t;
1000
+ var Qt = G;
1001
+ const Xt = K, Zt = F;
1002
+ function Q(t) {
1003
+ this.mode = Xt.KANJI, this.data = t;
1003
1004
  }
1004
- J.getBitsLength = function(e) {
1005
+ Q.getBitsLength = function(e) {
1005
1006
  return e * 13;
1006
1007
  };
1007
- J.prototype.getLength = function() {
1008
+ Q.prototype.getLength = function() {
1008
1009
  return this.data.length;
1009
1010
  };
1010
- J.prototype.getBitsLength = function() {
1011
- return J.getBitsLength(this.data.length);
1011
+ Q.prototype.getBitsLength = function() {
1012
+ return Q.getBitsLength(this.data.length);
1012
1013
  };
1013
- J.prototype.write = function(t) {
1014
+ Q.prototype.write = function(t) {
1014
1015
  let e;
1015
1016
  for (e = 0; e < this.data.length; e++) {
1016
- let i = Ot.toSJIS(this.data[e]);
1017
+ let i = Zt.toSJIS(this.data[e]);
1017
1018
  if (i >= 33088 && i <= 40956)
1018
1019
  i -= 33088;
1019
1020
  else if (i >= 57408 && i <= 60351)
@@ -1026,7 +1027,7 @@ Make sure your charset is UTF-8`
1026
1027
  i = (i >>> 8 & 255) * 192 + (i & 255), t.put(i, 13);
1027
1028
  }
1028
1029
  };
1029
- var Yt = J, lt = { exports: {} };
1030
+ var Wt = Q, mt = { exports: {} };
1030
1031
  (function(t) {
1031
1032
  var e = {
1032
1033
  single_source_shortest_paths: function(i, r, o) {
@@ -1034,10 +1035,10 @@ var Yt = J, lt = { exports: {} };
1034
1035
  l[r] = 0;
1035
1036
  var s = e.PriorityQueue.make();
1036
1037
  s.push(r, 0);
1037
- for (var a, m, g, B, h, d, w, C, A; !s.empty(); ) {
1038
- a = s.pop(), m = a.value, B = a.cost, h = i[m] || {};
1039
- for (g in h)
1040
- h.hasOwnProperty(g) && (d = h[g], w = B + d, C = l[g], A = typeof l[g] > "u", (A || C > w) && (l[g] = w, s.push(g, w), n[g] = m));
1038
+ for (var a, f, m, B, g, d, v, C, M; !s.empty(); ) {
1039
+ a = s.pop(), f = a.value, B = a.cost, g = i[f] || {};
1040
+ for (m in g)
1041
+ g.hasOwnProperty(m) && (d = g[m], v = B + d, C = l[m], M = typeof l[m] > "u", (M || C > v) && (l[m] = v, s.push(m, v), n[m] = f));
1041
1042
  }
1042
1043
  if (typeof o < "u" && typeof l[o] > "u") {
1043
1044
  var p = ["Could not find a path from ", r, " to ", o, "."].join("");
@@ -1091,40 +1092,40 @@ var Yt = J, lt = { exports: {} };
1091
1092
  }
1092
1093
  };
1093
1094
  t.exports = e;
1094
- })(lt);
1095
- var jt = lt.exports;
1095
+ })(mt);
1096
+ var en = mt.exports;
1096
1097
  (function(t) {
1097
- const e = $, i = Dt, r = Vt, o = Ht, n = Yt, l = D, s = U, a = jt;
1098
- function m(p) {
1098
+ const e = K, i = Ot, r = jt, o = Qt, n = Wt, l = $, s = F, a = en;
1099
+ function f(p) {
1099
1100
  return unescape(encodeURIComponent(p)).length;
1100
1101
  }
1101
- function g(p, v, y) {
1102
- const f = [];
1103
- let u;
1104
- for (; (u = p.exec(y)) !== null; )
1105
- f.push({
1106
- data: u[0],
1107
- index: u.index,
1108
- mode: v,
1109
- length: u[0].length
1102
+ function m(p, h, w) {
1103
+ const y = [];
1104
+ let _;
1105
+ for (; (_ = p.exec(w)) !== null; )
1106
+ y.push({
1107
+ data: _[0],
1108
+ index: _.index,
1109
+ mode: h,
1110
+ length: _[0].length
1110
1111
  });
1111
- return f;
1112
+ return y;
1112
1113
  }
1113
1114
  function B(p) {
1114
- const v = g(l.NUMERIC, e.NUMERIC, p), y = g(l.ALPHANUMERIC, e.ALPHANUMERIC, p);
1115
- let f, u;
1116
- return s.isKanjiModeEnabled() ? (f = g(l.BYTE, e.BYTE, p), u = g(l.KANJI, e.KANJI, p)) : (f = g(l.BYTE_KANJI, e.BYTE, p), u = []), v.concat(y, f, u).sort(function(M, I) {
1117
- return M.index - I.index;
1118
- }).map(function(M) {
1115
+ const h = m(l.NUMERIC, e.NUMERIC, p), w = m(l.ALPHANUMERIC, e.ALPHANUMERIC, p);
1116
+ let y, _;
1117
+ return s.isKanjiModeEnabled() ? (y = m(l.BYTE, e.BYTE, p), _ = m(l.KANJI, e.KANJI, p)) : (y = m(l.BYTE_KANJI, e.BYTE, p), _ = []), h.concat(w, y, _).sort(function(P, A) {
1118
+ return P.index - A.index;
1119
+ }).map(function(P) {
1119
1120
  return {
1120
- data: M.data,
1121
- mode: M.mode,
1122
- length: M.length
1121
+ data: P.data,
1122
+ mode: P.mode,
1123
+ length: P.length
1123
1124
  };
1124
1125
  });
1125
1126
  }
1126
- function h(p, v) {
1127
- switch (v) {
1127
+ function g(p, h) {
1128
+ switch (h) {
1128
1129
  case e.NUMERIC:
1129
1130
  return i.getBitsLength(p);
1130
1131
  case e.ALPHANUMERIC:
@@ -1136,69 +1137,69 @@ var jt = lt.exports;
1136
1137
  }
1137
1138
  }
1138
1139
  function d(p) {
1139
- return p.reduce(function(v, y) {
1140
- const f = v.length - 1 >= 0 ? v[v.length - 1] : null;
1141
- return f && f.mode === y.mode ? (v[v.length - 1].data += y.data, v) : (v.push(y), v);
1140
+ return p.reduce(function(h, w) {
1141
+ const y = h.length - 1 >= 0 ? h[h.length - 1] : null;
1142
+ return y && y.mode === w.mode ? (h[h.length - 1].data += w.data, h) : (h.push(w), h);
1142
1143
  }, []);
1143
1144
  }
1144
- function w(p) {
1145
- const v = [];
1146
- for (let y = 0; y < p.length; y++) {
1147
- const f = p[y];
1148
- switch (f.mode) {
1145
+ function v(p) {
1146
+ const h = [];
1147
+ for (let w = 0; w < p.length; w++) {
1148
+ const y = p[w];
1149
+ switch (y.mode) {
1149
1150
  case e.NUMERIC:
1150
- v.push([
1151
- f,
1152
- { data: f.data, mode: e.ALPHANUMERIC, length: f.length },
1153
- { data: f.data, mode: e.BYTE, length: f.length }
1151
+ h.push([
1152
+ y,
1153
+ { data: y.data, mode: e.ALPHANUMERIC, length: y.length },
1154
+ { data: y.data, mode: e.BYTE, length: y.length }
1154
1155
  ]);
1155
1156
  break;
1156
1157
  case e.ALPHANUMERIC:
1157
- v.push([
1158
- f,
1159
- { data: f.data, mode: e.BYTE, length: f.length }
1158
+ h.push([
1159
+ y,
1160
+ { data: y.data, mode: e.BYTE, length: y.length }
1160
1161
  ]);
1161
1162
  break;
1162
1163
  case e.KANJI:
1163
- v.push([
1164
- f,
1165
- { data: f.data, mode: e.BYTE, length: m(f.data) }
1164
+ h.push([
1165
+ y,
1166
+ { data: y.data, mode: e.BYTE, length: f(y.data) }
1166
1167
  ]);
1167
1168
  break;
1168
1169
  case e.BYTE:
1169
- v.push([
1170
- { data: f.data, mode: e.BYTE, length: m(f.data) }
1170
+ h.push([
1171
+ { data: y.data, mode: e.BYTE, length: f(y.data) }
1171
1172
  ]);
1172
1173
  }
1173
1174
  }
1174
- return v;
1175
+ return h;
1175
1176
  }
1176
- function C(p, v) {
1177
- const y = {}, f = { start: {} };
1178
- let u = ["start"];
1179
- for (let _ = 0; _ < p.length; _++) {
1180
- const M = p[_], I = [];
1181
- for (let N = 0; N < M.length; N++) {
1182
- const P = M[N], k = "" + _ + N;
1183
- I.push(k), y[k] = { node: P, lastCount: 0 }, f[k] = {};
1184
- for (let q = 0; q < u.length; q++) {
1185
- const L = u[q];
1186
- y[L] && y[L].node.mode === P.mode ? (f[L][k] = h(y[L].lastCount + P.length, P.mode) - h(y[L].lastCount, P.mode), y[L].lastCount += P.length) : (y[L] && (y[L].lastCount = P.length), f[L][k] = h(P.length, P.mode) + 4 + e.getCharCountIndicator(P.mode, v));
1177
+ function C(p, h) {
1178
+ const w = {}, y = { start: {} };
1179
+ let _ = ["start"];
1180
+ for (let S = 0; S < p.length; S++) {
1181
+ const P = p[S], A = [];
1182
+ for (let c = 0; c < P.length; c++) {
1183
+ const U = P[c], L = "" + S + c;
1184
+ A.push(L), w[L] = { node: U, lastCount: 0 }, y[L] = {};
1185
+ for (let R = 0; R < _.length; R++) {
1186
+ const N = _[R];
1187
+ w[N] && w[N].node.mode === U.mode ? (y[N][L] = g(w[N].lastCount + U.length, U.mode) - g(w[N].lastCount, U.mode), w[N].lastCount += U.length) : (w[N] && (w[N].lastCount = U.length), y[N][L] = g(U.length, U.mode) + 4 + e.getCharCountIndicator(U.mode, h));
1187
1188
  }
1188
1189
  }
1189
- u = I;
1190
+ _ = A;
1190
1191
  }
1191
- for (let _ = 0; _ < u.length; _++)
1192
- f[u[_]].end = 0;
1193
- return { map: f, table: y };
1192
+ for (let S = 0; S < _.length; S++)
1193
+ y[_[S]].end = 0;
1194
+ return { map: y, table: w };
1194
1195
  }
1195
- function A(p, v) {
1196
- let y;
1197
- const f = e.getBestModeForData(p);
1198
- if (y = e.from(v, f), y !== e.BYTE && y.bit < f.bit)
1199
- throw new Error('"' + p + '" cannot be encoded with mode ' + e.toString(y) + `.
1200
- Suggested mode is: ` + e.toString(f));
1201
- switch (y === e.KANJI && !s.isKanjiModeEnabled() && (y = e.BYTE), y) {
1196
+ function M(p, h) {
1197
+ let w;
1198
+ const y = e.getBestModeForData(p);
1199
+ if (w = e.from(h, y), w !== e.BYTE && w.bit < y.bit)
1200
+ throw new Error('"' + p + '" cannot be encoded with mode ' + e.toString(w) + `.
1201
+ Suggested mode is: ` + e.toString(y));
1202
+ switch (w === e.KANJI && !s.isKanjiModeEnabled() && (w = e.BYTE), w) {
1202
1203
  case e.NUMERIC:
1203
1204
  return new i(p);
1204
1205
  case e.ALPHANUMERIC:
@@ -1209,24 +1210,24 @@ var jt = lt.exports;
1209
1210
  return new o(p);
1210
1211
  }
1211
1212
  }
1212
- t.fromArray = function(v) {
1213
- return v.reduce(function(y, f) {
1214
- return typeof f == "string" ? y.push(A(f, null)) : f.data && y.push(A(f.data, f.mode)), y;
1213
+ t.fromArray = function(h) {
1214
+ return h.reduce(function(w, y) {
1215
+ return typeof y == "string" ? w.push(M(y, null)) : y.data && w.push(M(y.data, y.mode)), w;
1215
1216
  }, []);
1216
- }, t.fromString = function(v, y) {
1217
- const f = B(v, s.isKanjiModeEnabled()), u = w(f), _ = C(u, y), M = a.find_path(_.map, "start", "end"), I = [];
1218
- for (let N = 1; N < M.length - 1; N++)
1219
- I.push(_.table[M[N]].node);
1220
- return t.fromArray(d(I));
1221
- }, t.rawSplit = function(v) {
1217
+ }, t.fromString = function(h, w) {
1218
+ const y = B(h, s.isKanjiModeEnabled()), _ = v(y), S = C(_, w), P = a.find_path(S.map, "start", "end"), A = [];
1219
+ for (let c = 1; c < P.length - 1; c++)
1220
+ A.push(S.table[P[c]].node);
1221
+ return t.fromArray(d(A));
1222
+ }, t.rawSplit = function(h) {
1222
1223
  return t.fromArray(
1223
- B(v, s.isKanjiModeEnabled())
1224
+ B(h, s.isKanjiModeEnabled())
1224
1225
  );
1225
1226
  };
1226
- })(st);
1227
- const fe = U, he = ue, Jt = _t, qt = Mt, Gt = We, Qt = Xe, Ee = Ze, Be = ce, Wt = It, ae = nt, Xt = rt, Zt = $, pe = st;
1228
- function en(t, e) {
1229
- const i = t.size, r = Qt.getPositions(e);
1227
+ })(ft);
1228
+ const pe = F, be = me, tn = Lt, nn = Ft, on = ot, rn = rt, _e = it, Me = ge, sn = Dt, fe = at, ln = ct, an = K, ve = ft;
1229
+ function un(t, e) {
1230
+ const i = t.size, r = rn.getPositions(e);
1230
1231
  for (let o = 0; o < r.length; o++) {
1231
1232
  const n = r[o][0], l = r[o][1];
1232
1233
  for (let s = -1; s <= 7; s++)
@@ -1235,15 +1236,15 @@ function en(t, e) {
1235
1236
  l + a <= -1 || i <= l + a || (s >= 0 && s <= 6 && (a === 0 || a === 6) || a >= 0 && a <= 6 && (s === 0 || s === 6) || s >= 2 && s <= 4 && a >= 2 && a <= 4 ? t.set(n + s, l + a, !0, !0) : t.set(n + s, l + a, !1, !0));
1236
1237
  }
1237
1238
  }
1238
- function tn(t) {
1239
+ function cn(t) {
1239
1240
  const e = t.size;
1240
1241
  for (let i = 8; i < e - 8; i++) {
1241
1242
  const r = i % 2 === 0;
1242
1243
  t.set(i, 6, r, !0), t.set(6, i, r, !0);
1243
1244
  }
1244
1245
  }
1245
- function nn(t, e) {
1246
- const i = Gt.getPositions(e);
1246
+ function dn(t, e) {
1247
+ const i = on.getPositions(e);
1247
1248
  for (let r = 0; r < i.length; r++) {
1248
1249
  const o = i[r][0], n = i[r][1];
1249
1250
  for (let l = -2; l <= 2; l++)
@@ -1251,28 +1252,28 @@ function nn(t, e) {
1251
1252
  l === -2 || l === 2 || s === -2 || s === 2 || l === 0 && s === 0 ? t.set(o + l, n + s, !0, !0) : t.set(o + l, n + s, !1, !0);
1252
1253
  }
1253
1254
  }
1254
- function on(t, e) {
1255
- const i = t.size, r = ae.getEncodedBits(e);
1255
+ function fn(t, e) {
1256
+ const i = t.size, r = fe.getEncodedBits(e);
1256
1257
  let o, n, l;
1257
1258
  for (let s = 0; s < 18; s++)
1258
1259
  o = Math.floor(s / 3), n = s % 3 + i - 8 - 3, l = (r >> s & 1) === 1, t.set(o, n, l, !0), t.set(n, o, l, !0);
1259
1260
  }
1260
- function ye(t, e, i) {
1261
- const r = t.size, o = Xt.getEncodedBits(e, i);
1261
+ function Ce(t, e, i) {
1262
+ const r = t.size, o = ln.getEncodedBits(e, i);
1262
1263
  let n, l;
1263
1264
  for (n = 0; n < 15; n++)
1264
1265
  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);
1265
1266
  t.set(r - 8, 8, 1, !0);
1266
1267
  }
1267
- function rn(t, e) {
1268
+ function mn(t, e) {
1268
1269
  const i = t.size;
1269
1270
  let r = -1, o = i - 1, n = 7, l = 0;
1270
1271
  for (let s = i - 1; s > 0; s -= 2)
1271
1272
  for (s === 6 && s--; ; ) {
1272
1273
  for (let a = 0; a < 2; a++)
1273
1274
  if (!t.isReserved(o, s - a)) {
1274
- let m = !1;
1275
- l < e.length && (m = (e[l] >>> n & 1) === 1), t.set(o, s - a, m), n--, n === -1 && (l++, n = 7);
1275
+ let f = !1;
1276
+ l < e.length && (f = (e[l] >>> n & 1) === 1), t.set(o, s - a, f), n--, n === -1 && (l++, n = 7);
1276
1277
  }
1277
1278
  if (o += r, o < 0 || i <= o) {
1278
1279
  o -= r, r = -r;
@@ -1280,53 +1281,53 @@ function rn(t, e) {
1280
1281
  }
1281
1282
  }
1282
1283
  }
1283
- function sn(t, e, i) {
1284
- const r = new Jt();
1284
+ function gn(t, e, i) {
1285
+ const r = new tn();
1285
1286
  i.forEach(function(a) {
1286
- r.put(a.mode.bit, 4), r.put(a.getLength(), Zt.getCharCountIndicator(a.mode, t)), a.write(r);
1287
+ r.put(a.mode.bit, 4), r.put(a.getLength(), an.getCharCountIndicator(a.mode, t)), a.write(r);
1287
1288
  });
1288
- const o = fe.getSymbolTotalCodewords(t), n = Be.getTotalCodewordsCount(t, e), l = (o - n) * 8;
1289
+ const o = pe.getSymbolTotalCodewords(t), n = Me.getTotalCodewordsCount(t, e), l = (o - n) * 8;
1289
1290
  for (r.getLengthInBits() + 4 <= l && r.put(0, 4); r.getLengthInBits() % 8 !== 0; )
1290
1291
  r.putBit(0);
1291
1292
  const s = (l - r.getLengthInBits()) / 8;
1292
1293
  for (let a = 0; a < s; a++)
1293
1294
  r.put(a % 2 ? 17 : 236, 8);
1294
- return ln(r, t, e);
1295
+ return hn(r, t, e);
1295
1296
  }
1296
- function ln(t, e, i) {
1297
- const r = fe.getSymbolTotalCodewords(e), o = Be.getTotalCodewordsCount(e, i), n = r - o, l = Be.getBlocksCount(e, i), s = r % l, a = l - s, m = Math.floor(r / l), g = Math.floor(n / l), B = g + 1, h = m - g, d = new Wt(h);
1298
- let w = 0;
1299
- const C = new Array(l), A = new Array(l);
1297
+ function hn(t, e, i) {
1298
+ const r = pe.getSymbolTotalCodewords(e), o = Me.getTotalCodewordsCount(e, i), n = r - o, l = Me.getBlocksCount(e, i), s = r % l, a = l - s, f = Math.floor(r / l), m = Math.floor(n / l), B = m + 1, g = f - m, d = new sn(g);
1299
+ let v = 0;
1300
+ const C = new Array(l), M = new Array(l);
1300
1301
  let p = 0;
1301
- const v = new Uint8Array(t.buffer);
1302
- for (let M = 0; M < l; M++) {
1303
- const I = M < a ? g : B;
1304
- C[M] = v.slice(w, w + I), A[M] = d.encode(C[M]), w += I, p = Math.max(p, I);
1302
+ const h = new Uint8Array(t.buffer);
1303
+ for (let P = 0; P < l; P++) {
1304
+ const A = P < a ? m : B;
1305
+ C[P] = h.slice(v, v + A), M[P] = d.encode(C[P]), v += A, p = Math.max(p, A);
1305
1306
  }
1306
- const y = new Uint8Array(r);
1307
- let f = 0, u, _;
1308
- for (u = 0; u < p; u++)
1309
- for (_ = 0; _ < l; _++)
1310
- u < C[_].length && (y[f++] = C[_][u]);
1311
- for (u = 0; u < h; u++)
1312
- for (_ = 0; _ < l; _++)
1313
- y[f++] = A[_][u];
1314
- return y;
1307
+ const w = new Uint8Array(r);
1308
+ let y = 0, _, S;
1309
+ for (_ = 0; _ < p; _++)
1310
+ for (S = 0; S < l; S++)
1311
+ _ < C[S].length && (w[y++] = C[S][_]);
1312
+ for (_ = 0; _ < g; _++)
1313
+ for (S = 0; S < l; S++)
1314
+ w[y++] = M[S][_];
1315
+ return w;
1315
1316
  }
1316
- function an(t, e, i, r) {
1317
+ function pn(t, e, i, r) {
1317
1318
  let o;
1318
1319
  if (Array.isArray(t))
1319
- o = pe.fromArray(t);
1320
+ o = ve.fromArray(t);
1320
1321
  else if (typeof t == "string") {
1321
- let m = e;
1322
- if (!m) {
1323
- const g = pe.rawSplit(t);
1324
- m = ae.getBestVersionForData(g, i);
1322
+ let f = e;
1323
+ if (!f) {
1324
+ const m = ve.rawSplit(t);
1325
+ f = fe.getBestVersionForData(m, i);
1325
1326
  }
1326
- o = pe.fromString(t, m || 40);
1327
+ o = ve.fromString(t, f || 40);
1327
1328
  } else
1328
1329
  throw new Error("Invalid data");
1329
- const n = ae.getBestVersionForData(o, i);
1330
+ const n = fe.getBestVersionForData(o, i);
1330
1331
  if (!n)
1331
1332
  throw new Error("The amount of data is too big to be stored in a QR Code");
1332
1333
  if (!e)
@@ -1338,11 +1339,11 @@ The chosen QR Code version cannot contain this amount of data.
1338
1339
  Minimum version required to store current data is: ` + n + `.
1339
1340
  `
1340
1341
  );
1341
- const l = sn(e, i, o), s = fe.getSymbolSize(e), a = new qt(s);
1342
- return en(a, e), tn(a), nn(a, e), ye(a, i, 0), e >= 7 && on(a, e), rn(a, l), isNaN(r) && (r = Ee.getBestMask(
1342
+ const l = gn(e, i, o), s = pe.getSymbolSize(e), a = new nn(s);
1343
+ return un(a, e), cn(a), dn(a, e), Ce(a, i, 0), e >= 7 && fn(a, e), mn(a, l), isNaN(r) && (r = _e.getBestMask(
1343
1344
  a,
1344
- ye.bind(null, a, i)
1345
- )), Ee.applyMask(r, a), ye(a, i, r), {
1345
+ Ce.bind(null, a, i)
1346
+ )), _e.applyMask(r, a), Ce(a, i, r), {
1346
1347
  modules: a,
1347
1348
  version: e,
1348
1349
  errorCorrectionLevel: i,
@@ -1350,13 +1351,13 @@ Minimum version required to store current data is: ` + n + `.
1350
1351
  segments: o
1351
1352
  };
1352
1353
  }
1353
- Ge.create = function(e, i) {
1354
+ tt.create = function(e, i) {
1354
1355
  if (typeof e > "u" || e === "")
1355
1356
  throw new Error("No input text");
1356
- let r = he.M, o, n;
1357
- return typeof i < "u" && (r = he.from(i.errorCorrectionLevel, he.M), o = ae.from(i.version), n = Ee.from(i.maskPattern), i.toSJISFunc && fe.setToSJISFunction(i.toSJISFunc)), an(e, o, r, n);
1357
+ let r = be.M, o, n;
1358
+ return typeof i < "u" && (r = be.from(i.errorCorrectionLevel, be.M), o = fe.from(i.version), n = _e.from(i.maskPattern), i.toSJISFunc && pe.setToSJISFunction(i.toSJISFunc)), pn(e, o, r, n);
1358
1359
  };
1359
- var at = {}, Ie = {};
1360
+ var gt = {}, Ne = {};
1360
1361
  (function(t) {
1361
1362
  function e(i) {
1362
1363
  if (typeof i == "number" && (i = i.toString()), typeof i != "string")
@@ -1396,20 +1397,20 @@ var at = {}, Ie = {};
1396
1397
  const n = t.getScale(r, o);
1397
1398
  return Math.floor((r + o.margin * 2) * n);
1398
1399
  }, t.qrToImageData = function(r, o, n) {
1399
- const l = o.modules.size, s = o.modules.data, a = t.getScale(l, n), m = Math.floor((l + n.margin * 2) * a), g = n.margin * a, B = [n.color.light, n.color.dark];
1400
- for (let h = 0; h < m; h++)
1401
- for (let d = 0; d < m; d++) {
1402
- let w = (h * m + d) * 4, C = n.color.light;
1403
- if (h >= g && d >= g && h < m - g && d < m - g) {
1404
- const A = Math.floor((h - g) / a), p = Math.floor((d - g) / a);
1405
- C = B[s[A * l + p] ? 1 : 0];
1400
+ const l = o.modules.size, s = o.modules.data, a = t.getScale(l, n), f = Math.floor((l + n.margin * 2) * a), m = n.margin * a, B = [n.color.light, n.color.dark];
1401
+ for (let g = 0; g < f; g++)
1402
+ for (let d = 0; d < f; d++) {
1403
+ let v = (g * f + d) * 4, C = n.color.light;
1404
+ if (g >= m && d >= m && g < f - m && d < f - m) {
1405
+ const M = Math.floor((g - m) / a), p = Math.floor((d - m) / a);
1406
+ C = B[s[M * l + p] ? 1 : 0];
1406
1407
  }
1407
- r[w++] = C.r, r[w++] = C.g, r[w++] = C.b, r[w] = C.a;
1408
+ r[v++] = C.r, r[v++] = C.g, r[v++] = C.b, r[v] = C.a;
1408
1409
  }
1409
1410
  };
1410
- })(Ie);
1411
+ })(Ne);
1411
1412
  (function(t) {
1412
- const e = Ie;
1413
+ const e = Ne;
1413
1414
  function i(o, n, l) {
1414
1415
  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";
1415
1416
  }
@@ -1421,44 +1422,44 @@ var at = {}, Ie = {};
1421
1422
  }
1422
1423
  }
1423
1424
  t.render = function(n, l, s) {
1424
- let a = s, m = l;
1425
- typeof a > "u" && (!l || !l.getContext) && (a = l, l = void 0), l || (m = r()), a = e.getOptions(a);
1426
- const g = e.getImageWidth(n.modules.size, a), B = m.getContext("2d"), h = B.createImageData(g, g);
1427
- return e.qrToImageData(h.data, n, a), i(B, m, g), B.putImageData(h, 0, 0), m;
1425
+ let a = s, f = l;
1426
+ typeof a > "u" && (!l || !l.getContext) && (a = l, l = void 0), l || (f = r()), a = e.getOptions(a);
1427
+ const m = e.getImageWidth(n.modules.size, a), B = f.getContext("2d"), g = B.createImageData(m, m);
1428
+ return e.qrToImageData(g.data, n, a), i(B, f, m), B.putImageData(g, 0, 0), f;
1428
1429
  }, t.renderToDataURL = function(n, l, s) {
1429
1430
  let a = s;
1430
1431
  typeof a > "u" && (!l || !l.getContext) && (a = l, l = void 0), a || (a = {});
1431
- const m = t.render(n, l, a), g = a.type || "image/png", B = a.rendererOpts || {};
1432
- return m.toDataURL(g, B.quality);
1432
+ const f = t.render(n, l, a), m = a.type || "image/png", B = a.rendererOpts || {};
1433
+ return f.toDataURL(m, B.quality);
1433
1434
  };
1434
- })(at);
1435
- var ut = {};
1436
- const un = Ie;
1437
- function $e(t, e) {
1435
+ })(gt);
1436
+ var ht = {};
1437
+ const yn = Ne;
1438
+ function je(t, e) {
1438
1439
  const i = t.a / 255, r = e + '="' + t.hex + '"';
1439
1440
  return i < 1 ? r + " " + e + '-opacity="' + i.toFixed(2).slice(1) + '"' : r;
1440
1441
  }
1441
- function we(t, e, i) {
1442
+ function Ee(t, e, i) {
1442
1443
  let r = t + e;
1443
1444
  return typeof i < "u" && (r += " " + i), r;
1444
1445
  }
1445
- function cn(t, e, i) {
1446
+ function wn(t, e, i) {
1446
1447
  let r = "", o = 0, n = !1, l = 0;
1447
1448
  for (let s = 0; s < t.length; s++) {
1448
- const a = Math.floor(s % e), m = Math.floor(s / e);
1449
- !a && !n && (n = !0), t[s] ? (l++, s > 0 && a > 0 && t[s - 1] || (r += n ? we("M", a + i, 0.5 + m + i) : we("m", o, 0), o = 0, n = !1), a + 1 < e && t[s + 1] || (r += we("h", l), l = 0)) : o++;
1449
+ const a = Math.floor(s % e), f = Math.floor(s / e);
1450
+ !a && !n && (n = !0), t[s] ? (l++, s > 0 && a > 0 && t[s - 1] || (r += n ? Ee("M", a + i, 0.5 + f + i) : Ee("m", o, 0), o = 0, n = !1), a + 1 < e && t[s + 1] || (r += Ee("h", l), l = 0)) : o++;
1450
1451
  }
1451
1452
  return r;
1452
1453
  }
1453
- ut.render = function(e, i, r) {
1454
- const o = un.getOptions(i), n = e.modules.size, l = e.modules.data, s = n + o.margin * 2, a = 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="' + cn(l, 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">' + a + m + `</svg>
1454
+ ht.render = function(e, i, r) {
1455
+ const o = yn.getOptions(i), n = e.modules.size, l = e.modules.data, s = n + o.margin * 2, a = o.color.light.a ? "<path " + je(o.color.light, "fill") + ' d="M0 0h' + s + "v" + s + 'H0z"/>' : "", f = "<path " + je(o.color.dark, "stroke") + ' d="' + wn(l, n, o.margin) + '"/>', m = 'viewBox="0 0 ' + s + " " + s + '"', g = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + m + ' shape-rendering="crispEdges">' + a + f + `</svg>
1455
1456
  `;
1456
- return typeof r == "function" && r(null, h), h;
1457
+ return typeof r == "function" && r(null, g), g;
1457
1458
  };
1458
- const dn = Bt, Ae = Ge, ct = at, fn = ut;
1459
- function Te(t, e, i, r, o) {
1459
+ const bn = Nt, Se = tt, pt = gt, vn = ht;
1460
+ function Ue(t, e, i, r, o) {
1460
1461
  const n = [].slice.call(arguments, 1), l = n.length, s = typeof n[l - 1] == "function";
1461
- if (!s && !dn())
1462
+ if (!s && !bn())
1462
1463
  throw new Error("Callback required as last argument");
1463
1464
  if (s) {
1464
1465
  if (l < 2)
@@ -1467,31 +1468,31 @@ function Te(t, e, i, r, o) {
1467
1468
  } else {
1468
1469
  if (l < 1)
1469
1470
  throw new Error("Too few arguments provided");
1470
- return l === 1 ? (i = e, e = r = void 0) : l === 2 && !e.getContext && (r = i, i = e, e = void 0), new Promise(function(a, m) {
1471
+ return l === 1 ? (i = e, e = r = void 0) : l === 2 && !e.getContext && (r = i, i = e, e = void 0), new Promise(function(a, f) {
1471
1472
  try {
1472
- const g = Ae.create(i, r);
1473
- a(t(g, e, r));
1474
- } catch (g) {
1475
- m(g);
1473
+ const m = Se.create(i, r);
1474
+ a(t(m, e, r));
1475
+ } catch (m) {
1476
+ f(m);
1476
1477
  }
1477
1478
  });
1478
1479
  }
1479
1480
  try {
1480
- const a = Ae.create(i, r);
1481
+ const a = Se.create(i, r);
1481
1482
  o(null, t(a, e, r));
1482
1483
  } catch (a) {
1483
1484
  o(a);
1484
1485
  }
1485
1486
  }
1486
- ee.create = Ae.create;
1487
- ee.toCanvas = Te.bind(null, ct.render);
1488
- ee.toDataURL = Te.bind(null, ct.renderToDataURL);
1489
- ee.toString = Te.bind(null, function(t, e, i) {
1490
- return fn.render(t, i);
1487
+ ne.create = Se.create;
1488
+ ne.toCanvas = Ue.bind(null, pt.render);
1489
+ ne.toDataURL = Ue.bind(null, pt.renderToDataURL);
1490
+ ne.toString = Ue.bind(null, function(t, e, i) {
1491
+ return vn.render(t, i);
1491
1492
  });
1492
- async function mn(t, e = 350) {
1493
+ async function Cn(t, e = 350) {
1493
1494
  try {
1494
- return await ee.toDataURL(t, {
1495
+ return await ne.toDataURL(t, {
1495
1496
  width: e,
1496
1497
  margin: 0
1497
1498
  });
@@ -1499,63 +1500,63 @@ async function mn(t, e = 350) {
1499
1500
  console.error(i);
1500
1501
  }
1501
1502
  }
1502
- var gn = { 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" };
1503
- const hn = { class: "flex items-start" }, pn = { class: "flex flex-col gap-16 mt-16" }, yn = ["src"], wn = /* @__PURE__ */ He({
1503
+ var En = { 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" };
1504
+ const An = { class: "flex items-start" }, Bn = { class: "flex flex-col gap-16 mt-16" }, _n = ["src"], Mn = /* @__PURE__ */ qe({
1504
1505
  __name: "LinkDeviceDialog",
1505
1506
  setup(t) {
1506
- const e = ve(), i = qe(), r = Ye(), o = H(), n = H(), l = gn.crmUrl, s = H(), a = se(() => i.membership), m = se(() => {
1507
- var h, d;
1508
- return `https://${(h = a.value) != null && h.url ? a.value.url : (d = a.value) == null ? void 0 : d.business}.${l}`;
1507
+ const e = Ae(), i = et(), r = Xe(), o = z(), n = z(), l = En.crmUrl, s = z(), a = ce(() => i.membership), f = ce(() => {
1508
+ var g, d;
1509
+ return `https://${(g = a.value) != null && g.url ? a.value.url : (d = a.value) == null ? void 0 : d.business}.${l}`;
1509
1510
  });
1510
- async function g(h) {
1511
- const d = await Je.getOtp(h);
1512
- return `${m.value}?link-device=${d.otp}`;
1511
+ async function m(g) {
1512
+ const d = await We.getOtp(g);
1513
+ return `${f.value}?link-device=${d.otp}`;
1513
1514
  }
1514
- async function B(h) {
1515
- const d = await g(h);
1516
- s.value = d, o.value = await mn(d);
1515
+ async function B(g) {
1516
+ const d = await m(g);
1517
+ s.value = d, o.value = await Cn(d);
1517
1518
  }
1518
- return Ke(async () => {
1519
+ return Ge(async () => {
1519
1520
  if (await e.readLocations(), !e.locations.length) {
1520
1521
  r.close();
1521
1522
  return;
1522
1523
  }
1523
- const h = e.locations[0]._id;
1524
- n.value = h, await B(h);
1525
- }), (h, d) => {
1526
- const w = R("FmIcon"), C = R("FmSelect"), A = R("FmButton"), p = R("FmCard");
1527
- return x(), be(p, { class: "p-24 max-w-[350px]" }, {
1524
+ const g = e.locations[0]._id;
1525
+ n.value = g, await B(g);
1526
+ }), (g, d) => {
1527
+ const v = D("FmIcon"), C = D("FmSelect"), M = D("FmButton"), p = D("FmCard");
1528
+ return x(), ue(p, { class: "p-24 max-w-[350px]" }, {
1528
1529
  default: W(() => [
1529
- b("div", hn, [
1530
+ b("div", An, [
1530
1531
  d[3] || (d[3] = b("div", null, [
1531
1532
  b("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
1532
1533
  b("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
1533
1534
  ], -1)),
1534
- S(w, {
1535
+ I(v, {
1535
1536
  name: "close",
1536
- onClick: d[0] || (d[0] = (v) => c(r).close()),
1537
+ onClick: d[0] || (d[0] = (h) => u(r).close()),
1537
1538
  class: "cursor-pointer"
1538
1539
  })
1539
1540
  ]),
1540
- b("div", pn, [
1541
- S(C, {
1542
- modelValue: c(n),
1541
+ b("div", Bn, [
1542
+ I(C, {
1543
+ modelValue: u(n),
1543
1544
  "onUpdate:modelValue": [
1544
- d[1] || (d[1] = (v) => Oe(n) ? n.value = v : null),
1545
+ d[1] || (d[1] = (h) => Qe(n) ? n.value = h : null),
1545
1546
  B
1546
1547
  ],
1547
1548
  label: "Select Location",
1548
- items: c(e).locationItems.filter((v) => !!v.value)
1549
+ items: u(e).locationItems.filter((h) => !!h.value)
1549
1550
  }, null, 8, ["modelValue", "items"]),
1550
1551
  b("img", {
1551
- src: c(o),
1552
+ src: u(o),
1552
1553
  class: "aspect-square w-full"
1553
- }, null, 8, yn),
1554
- S(A, {
1554
+ }, null, 8, _n),
1555
+ I(M, {
1555
1556
  class: "mx-auto",
1556
1557
  variant: "plain",
1557
1558
  icon: "content_copy",
1558
- onClick: d[2] || (d[2] = (v) => c(je)(c(s)))
1559
+ onClick: d[2] || (d[2] = (h) => u(Ze)(u(s)))
1559
1560
  })
1560
1561
  ])
1561
1562
  ]),
@@ -1564,38 +1565,38 @@ const hn = { class: "flex items-start" }, pn = { class: "flex flex-col gap-16 mt
1564
1565
  };
1565
1566
  }
1566
1567
  });
1567
- var bn = { 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" };
1568
- const vn = { class: "hidden xs:flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, Cn = { class: "fm-typo-en-title-md-800" }, En = {
1568
+ var Je = { 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" };
1569
+ const Sn = { class: "hidden xs:flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, In = { class: "fm-typo-en-title-md-800" }, Pn = {
1569
1570
  key: 0,
1570
1571
  class: "px-24 gap-32 grid grid-cols-3 xs:pt-16"
1571
- }, Bn = { class: "col-span-2 flex flex-col xs:col-span-3" }, An = { class: "fm-typo-en-title-sm-800" }, _n = { class: "space-y-24" }, Mn = { class: "space-y-8" }, Sn = { class: "fm-typo-en-title-sm-800" }, In = { 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" }, Nn = { class: "space-y-8" }, Un = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Ln = { class: "space-y-8" }, Fn = { class: "space-y-8" }, Rn = { class: "space-y-8" }, Dn = { class: "space-y-8" }, kn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Vn = { class: "space-y-8" }, xn = { class: "flex justify-end pb-24" }, zn = { class: "col-span-1 space-y-8 xs:hidden" }, $n = { class: "fm-typo-en-body-lg-600" }, Hn = { class: "fm-typo-en-body-lg-600" }, Kn = { class: "fm-typo-en-body-lg-600" }, On = { class: "fm-typo-en-body-lg-600" }, lo = /* @__PURE__ */ He({
1572
+ }, Tn = { class: "col-span-2 flex flex-col xs:col-span-3" }, Nn = { class: "fm-typo-en-title-sm-800" }, Un = { class: "space-y-24" }, Ln = { class: "space-y-8" }, Fn = { class: "fm-typo-en-title-sm-800" }, Rn = { class: "fm-typo-body-lg-400" }, Dn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, kn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Vn = { class: "space-y-8" }, xn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, $n = { class: "space-y-8" }, zn = { class: "space-y-8" }, Hn = { class: "space-y-8" }, Kn = { class: "space-y-8" }, On = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Yn = { class: "space-y-8" }, jn = { class: "flex justify-end pb-24" }, Jn = { class: "col-span-1 space-y-8 xs:hidden" }, qn = { class: "fm-typo-en-body-lg-600" }, Gn = { class: "fm-typo-en-body-lg-600" }, Qn = { class: "fm-typo-en-body-lg-600" }, Xn = { class: "fm-typo-en-body-lg-600" }, po = /* @__PURE__ */ qe({
1572
1573
  __name: "Setting",
1573
1574
  setup(t) {
1574
- const e = gt(), i = ve(), r = qe(), { global: o, minor: n } = ft, l = Ye(), s = H(), a = H(!1), m = ht, g = [
1575
- (f) => !f || f.length >= 6 || "Invalid URL format, please enter at least 6 characters",
1576
- (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"
1577
- ], B = bn.appUrl, h = se(() => {
1578
- var f;
1579
- return `https://${(f = s.value) == null ? void 0 : f.business}.${B}`;
1580
- }), d = H(), w = H([]), C = se(() => {
1581
- var f, u;
1582
- return Math.min((((u = (f = s.value) == null ? void 0 : f.advertisements) == null ? void 0 : u.length) ?? 0) + 1, 5);
1583
- }), { t: A } = bt();
1584
- async function p() {
1575
+ const e = Et(), i = Ae(), r = et(), { global: o, minor: n } = vt, l = Xe(), s = z(), a = z(!1), f = z([]), m = z(null), B = At, g = [
1576
+ (A) => !A || A.length >= 6 || "Invalid URL format, please enter at least 6 characters",
1577
+ (A) => !A || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(A) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
1578
+ ], d = Je.appUrl, v = ce(() => {
1579
+ var A;
1580
+ return `https://${(A = s.value) == null ? void 0 : A.business}.${d}`;
1581
+ }), C = z(), M = z([]), p = ce(() => {
1582
+ var A, c;
1583
+ return Math.min((((c = (A = s.value) == null ? void 0 : A.advertisements) == null ? void 0 : c.length) ?? 0) + 1, 5);
1584
+ }), { t: h } = St();
1585
+ async function w() {
1585
1586
  l.open({
1586
1587
  title: "",
1587
- dialogComponent: wn,
1588
+ dialogComponent: Mn,
1588
1589
  closeButton: !1
1589
1590
  });
1590
1591
  }
1591
- async function v(f) {
1592
- await mt.remove(
1592
+ async function y(A) {
1593
+ await Ct.remove(
1593
1594
  "Are you sure you want to unlink this device?",
1594
1595
  "Unlink device",
1595
1596
  "Unlink"
1596
1597
  ) && await n(
1597
1598
  async () => {
1598
- await Je.unregisterDevice(f), await i.readLocationDevices();
1599
+ await We.unregisterDevice(A), await i.readLocationDevices();
1599
1600
  },
1600
1601
  {
1601
1602
  message: "Unlinking device",
@@ -1603,26 +1604,26 @@ const vn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1603
1604
  }
1604
1605
  );
1605
1606
  }
1606
- async function y() {
1607
+ async function _() {
1607
1608
  await n(
1608
1609
  async () => {
1609
- var _;
1610
- const f = Et(s.value);
1611
- f.welcomeMessage && !((_ = f.welcomeMessage) != null && _.content) && (f.welcomeMessage.content = "Hi there, you have been invited to join our membership");
1612
- const u = pt.parse(f);
1613
- d.value === null && u.image ? await K.delete(K.coverImagePath()) : d.value && (u.image = await K.update(
1614
- K.coverImagePath(),
1615
- d.value
1616
- )), a.value ? u.advertisements = (await Promise.all(
1617
- new Array(C.value - 1).fill(null).map(async (M, I) => {
1618
- var P;
1619
- const N = w.value[I];
1620
- return N ? await K.update(
1621
- K.advertisementPath(I, N),
1610
+ var U;
1611
+ const A = Tt(s.value);
1612
+ A.welcomeMessage && !((U = A.welcomeMessage) != null && U.content) && (A.welcomeMessage.content = "Hi there, you have been invited to join our membership");
1613
+ const c = Bt.parse(A);
1614
+ C.value === null && c.image ? await j.delete(j.coverImagePath()) : C.value && (c.image = await j.update(
1615
+ j.coverImagePath(),
1616
+ C.value
1617
+ )), a.value ? c.advertisements = (await Promise.all(
1618
+ new Array(p.value - 1).fill(null).map(async (L, R) => {
1619
+ var X;
1620
+ const N = M.value[R];
1621
+ return N ? await j.update(
1622
+ j.advertisementPath(R, N),
1622
1623
  N
1623
- ) : (P = u.advertisements) == null ? void 0 : P[I];
1624
+ ) : (X = c.advertisements) == null ? void 0 : X[R];
1624
1625
  })
1625
- )).filter((M) => M) : u.advertisements = [], await vt.update(u), await r.readMembership(), s.value = r.membership;
1626
+ )).filter((L) => L) : c.advertisements = [], await Ke.update(c), await r.readMembership(), s.value = r.membership;
1626
1627
  },
1627
1628
  {
1628
1629
  message: "Updating membership",
@@ -1630,147 +1631,157 @@ const vn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1630
1631
  }
1631
1632
  );
1632
1633
  }
1633
- return Ke(async () => {
1634
+ async function S() {
1635
+ const A = await Ke.getEmailAddresses();
1636
+ console.log(A), f.value = A, m.value = A.find((c) => c.default.includes("Marketing"));
1637
+ }
1638
+ async function P() {
1639
+ window.open(
1640
+ `${Je.licensePortalUrl}business/${It.businessId}/settings`,
1641
+ "_blank"
1642
+ );
1643
+ }
1644
+ return Ge(async () => {
1634
1645
  await o(async () => {
1635
- var f, u;
1636
- await i.readPremium(), await i.readLocations(), await i.readLocationDevices(), await r.readMembership(), s.value = r.membership, a.value = (((f = s.value.advertisements) == null ? void 0 : f.length) ?? 0) > 0, w.value = ((u = s.value.advertisements) == null ? void 0 : u.map(() => null)) ?? [];
1646
+ var A, c;
1647
+ await i.readPremium(), await i.readLocations(), await i.readLocationDevices(), await r.readMembership(), await S(), s.value = r.membership, a.value = (((A = s.value.advertisements) == null ? void 0 : A.length) ?? 0) > 0, M.value = ((c = s.value.advertisements) == null ? void 0 : c.map(() => null)) ?? [];
1637
1648
  });
1638
- }), (f, u) => {
1639
- var L, Pe, Ne, Ue, Le, Fe;
1640
- const _ = R("FmPageHead"), M = R("FmButton"), I = R("FmTextField"), N = R("FmCard"), P = R("FmPill"), k = R("FmSwitch"), q = R("FmMenuDivider");
1641
- return x(), G(me, null, [
1642
- S(_, {
1643
- title: c(A)("connect.setting.title"),
1649
+ }), (A, c) => {
1650
+ var Le, Fe, Re, De, ke, Ve, xe;
1651
+ const U = D("FmPageHead"), L = D("FmButton"), R = D("FmTextField"), N = D("FmCard"), X = D("FmPill"), ye = D("FmSwitch"), yt = D("FmSelect"), wt = D("FmMenuDivider");
1652
+ return x(), Y(ie, null, [
1653
+ I(U, {
1654
+ title: u(h)("connect.setting.title"),
1644
1655
  class: "xs:hidden"
1645
1656
  }, null, 8, ["title"]),
1646
- b("div", vn, [
1647
- b("div", Cn, F(c(A)("connect.setting.basicInfo.title")), 1),
1648
- S(M, {
1657
+ b("div", Sn, [
1658
+ b("div", In, V(u(h)("connect.setting.basicInfo.title")), 1),
1659
+ I(L, {
1649
1660
  icon: "info",
1650
1661
  variant: "tertiary"
1651
1662
  })
1652
1663
  ]),
1653
- c(s) ? (x(), G("div", En, [
1654
- b("div", Bn, [
1655
- b("div", An, F(c(A)("connect.setting.basicInfo.title")), 1),
1656
- b("div", _n, [
1657
- S(I, {
1658
- label: c(A)("connect.setting.basicInfo.membershipTitle"),
1659
- modelValue: c(s).name,
1660
- "onUpdate:modelValue": u[0] || (u[0] = (E) => c(s).name = E)
1664
+ u(s) ? (x(), Y("div", Pn, [
1665
+ b("div", Tn, [
1666
+ b("div", Nn, V(u(h)("connect.setting.basicInfo.title")), 1),
1667
+ b("div", Un, [
1668
+ I(R, {
1669
+ label: u(h)("connect.setting.basicInfo.membershipTitle"),
1670
+ modelValue: u(s).name,
1671
+ "onUpdate:modelValue": c[0] || (c[0] = (E) => u(s).name = E)
1661
1672
  }, null, 8, ["label", "modelValue"]),
1662
- S(I, {
1673
+ I(R, {
1663
1674
  disabled: !0,
1664
- "model-value": c(s).business,
1675
+ "model-value": u(s).business,
1665
1676
  rules: g,
1666
1677
  required: !0,
1667
- label: c(A)("connect.setting.basicInfo.memberAppUrl"),
1668
- "helper-text": c(h),
1669
- placeholder: c(s).business.toString(),
1670
- "onUpdate:modelValue": u[2] || (u[2] = (E) => c(s).url = E)
1678
+ label: u(h)("connect.setting.basicInfo.memberAppUrl"),
1679
+ "helper-text": u(v),
1680
+ placeholder: u(s).business.toString(),
1681
+ "onUpdate:modelValue": c[2] || (c[2] = (E) => u(s).url = E)
1671
1682
  }, {
1672
- prepend: W(() => u[12] || (u[12] = [
1673
- Q(" https:// ")
1683
+ prepend: W(() => c[12] || (c[12] = [
1684
+ Z(" https:// ")
1674
1685
  ])),
1675
1686
  append: W(() => [
1676
- Q(" ." + F(c(B)) + " ", 1),
1677
- S(M, {
1687
+ Z(" ." + V(u(d)) + " ", 1),
1688
+ I(L, {
1678
1689
  icon: "content_copy",
1679
1690
  variant: "tertiary",
1680
- onClick: u[1] || (u[1] = (E) => c(je)(c(h)))
1691
+ onClick: c[1] || (c[1] = (E) => u(Ze)(u(v)))
1681
1692
  })
1682
1693
  ]),
1683
1694
  _: 1
1684
1695
  }, 8, ["model-value", "label", "helper-text", "placeholder"]),
1685
- S(Ve, {
1696
+ I(He, {
1686
1697
  label: "Cover image",
1687
1698
  class: "w-2/3 xs:w-full",
1688
1699
  "image-fit": "cover",
1689
1700
  "aspect-ratio": "3/1",
1690
- thumbnail: c(s).image || void 0,
1691
- "onUpdate:file": u[3] || (u[3] = async (E) => {
1692
- d.value = E, E || (c(s).image = null);
1701
+ thumbnail: u(s).image || void 0,
1702
+ "onUpdate:file": c[3] || (c[3] = async (E) => {
1703
+ C.value = E, E || (u(s).image = null);
1693
1704
  })
1694
1705
  }, null, 8, ["thumbnail"]),
1695
- b("div", Mn, [
1696
- b("div", Sn, F(c(A)("connect.setting.counterApp.title")), 1),
1697
- S(M, {
1706
+ b("div", Ln, [
1707
+ b("div", Fn, V(u(h)("connect.setting.counterApp.title")), 1),
1708
+ I(L, {
1698
1709
  variant: "plain",
1699
1710
  icon: "link",
1700
- label: c(A)("connect.setting.counterApp.linkDevice"),
1701
- onClick: p
1711
+ label: u(h)("connect.setting.counterApp.linkDevice"),
1712
+ onClick: w
1702
1713
  }, null, 8, ["label"]),
1703
- (x(!0), G(me, null, Re(c(i).locationDevices, (E, T) => (x(), be(N, {
1714
+ (x(!0), Y(ie, null, $e(u(i).locationDevices, (E, T) => (x(), ue(N, {
1704
1715
  key: T,
1705
1716
  variant: "outlined",
1706
1717
  class: "flex items-center justify-between px-16 py-12"
1707
1718
  }, {
1708
1719
  default: W(() => [
1709
1720
  b("div", null, [
1710
- b("p", In, F(E.name || `Device ${E._id}`), 1),
1711
- b("p", Tn, " Activation date: " + F(c(dt)(c(Ct)(E._id.toString())).format(
1721
+ b("p", Rn, V(E.name || `Device ${E._id}`), 1),
1722
+ b("p", Dn, " Activation date: " + V(u(bt)(u(Pt)(E._id.toString())).format(
1712
1723
  "D MMM YYYY"
1713
1724
  )), 1),
1714
- b("p", Pn, " Linked location: " + F(c(i).locations.find((V) => V._id == E.location).name), 1)
1725
+ b("p", kn, " Linked location: " + V(u(i).locations.find((k) => k._id == E.location).name), 1)
1715
1726
  ]),
1716
- S(M, {
1727
+ I(L, {
1717
1728
  icon: "link_off",
1718
1729
  variant: "tertiary",
1719
- onClick: (V) => v(E._id)
1730
+ onClick: (k) => y(E._id)
1720
1731
  }, null, 8, ["onClick"])
1721
1732
  ]),
1722
1733
  _: 2
1723
1734
  }, 1024))), 128))
1724
1735
  ]),
1725
- b("div", Nn, [
1726
- b("div", Un, [
1727
- u[13] || (u[13] = Q(" Advertisement ")),
1728
- S(P, { variant: "premium" })
1736
+ b("div", Vn, [
1737
+ b("div", xn, [
1738
+ c[13] || (c[13] = Z(" Advertisement ")),
1739
+ I(X, { variant: "premium" })
1729
1740
  ]),
1730
- S(k, {
1731
- modelValue: c(a),
1732
- "onUpdate:modelValue": u[4] || (u[4] = (E) => Oe(a) ? a.value = E : null),
1741
+ I(ye, {
1742
+ modelValue: u(a),
1743
+ "onUpdate:modelValue": c[4] || (c[4] = (E) => Qe(a) ? a.value = E : null),
1733
1744
  label: "Advertisement",
1734
1745
  sublabel: "This will be show on FeedMe ordering app",
1735
1746
  "label-placement": "right",
1736
- disabled: !c(i).isPremium,
1747
+ disabled: !u(i).isPremium,
1737
1748
  value: ""
1738
1749
  }, null, 8, ["modelValue", "disabled"]),
1739
- c(a) ? (x(), G("div", {
1750
+ u(a) ? (x(), Y("div", {
1740
1751
  class: "flex items-center gap-8 flex-wrap xs:grid xs:grid-cols-2 xs:overflow-x-scroll xs:w-full",
1741
- key: c(C)
1752
+ key: u(p)
1742
1753
  }, [
1743
- (x(!0), G(me, null, Re(c(C), (E, T) => {
1744
- var V, ne;
1745
- return x(), be(Ve, {
1754
+ (x(!0), Y(ie, null, $e(u(p), (E, T) => {
1755
+ var k, O;
1756
+ return x(), ue(He, {
1746
1757
  class: "w-[200px]",
1747
1758
  "image-fit": "cover",
1748
1759
  label: "",
1749
1760
  "aspect-ratio": "2/3",
1750
- thumbnail: (ne = (V = c(s)) == null ? void 0 : V.advertisements) == null ? void 0 : ne[T],
1761
+ thumbnail: (O = (k = u(s)) == null ? void 0 : k.advertisements) == null ? void 0 : O[T],
1751
1762
  accept: ".png, .jpg, .jpeg, .mp4, .gif",
1752
1763
  "recommended-size": "Recommended 4:5 ratio / 1080px x 1350px",
1753
- file: c(w)[T] ?? void 0,
1754
- "onUpdate:file": (oe) => {
1755
- c(s).advertisements || (c(s).advertisements = []), oe ? (c(s).advertisements[T] = "", c(w)[T] = oe) : (c(s).advertisements.splice(T, 1), c(w).splice(T, 1));
1764
+ file: u(M)[T] ?? void 0,
1765
+ "onUpdate:file": (re) => {
1766
+ u(s).advertisements || (u(s).advertisements = []), re ? (u(s).advertisements[T] = "", u(M)[T] = re) : (u(s).advertisements.splice(T, 1), u(M).splice(T, 1));
1756
1767
  }
1757
1768
  }, null, 8, ["thumbnail", "file", "onUpdate:file"]);
1758
1769
  }), 256))
1759
- ])) : De("", !0)
1770
+ ])) : se("", !0)
1760
1771
  ]),
1761
- b("div", Ln, [
1762
- u[14] || (u[14] = b("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
1763
- S(I, {
1764
- "model-value": ((L = c(s)) == null ? void 0 : L.brand) || "",
1772
+ b("div", $n, [
1773
+ c[14] || (c[14] = b("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
1774
+ I(R, {
1775
+ "model-value": ((Le = u(s)) == null ? void 0 : Le.brand) || "",
1765
1776
  "max-length": 15,
1766
1777
  label: "Brand Name",
1767
1778
  "show-word-count": "",
1768
- "helper-text": `RM 0 ${((Pe = c(s)) == null ? void 0 : Pe.brand) || ""}: YOUR CUSTOMER MESSAGE`,
1769
- "onUpdate:modelValue": u[5] || (u[5] = (E) => c(s).brand = E)
1779
+ "helper-text": `RM 0 ${((Fe = u(s)) == null ? void 0 : Fe.brand) || ""}: YOUR CUSTOMER MESSAGE`,
1780
+ "onUpdate:modelValue": c[5] || (c[5] = (E) => u(s).brand = E)
1770
1781
  }, null, 8, ["model-value", "helper-text"]),
1771
- S(wt, {
1772
- modelValue: c(s).welcomeMessage,
1773
- "onUpdate:modelValue": u[6] || (u[6] = (E) => c(s).welcomeMessage = E),
1782
+ I(Mt, {
1783
+ modelValue: u(s).welcomeMessage,
1784
+ "onUpdate:modelValue": c[6] || (c[6] = (E) => u(s).welcomeMessage = E),
1774
1785
  variables: [
1775
1786
  "user.name",
1776
1787
  "user.gender",
@@ -1781,109 +1792,121 @@ const vn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1781
1792
  placeholder: "Hi there, you have been invited to join membership"
1782
1793
  }, null, 8, ["modelValue"])
1783
1794
  ]),
1784
- b("div", Fn, [
1785
- u[15] || (u[15] = b("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
1786
- S(I, {
1787
- "model-value": ((Ue = (Ne = c(s)) == null ? void 0 : Ne.email) == null ? void 0 : Ue.from) || null,
1788
- label: "From Address",
1789
- "helper-text": "Will be shown as email of the sender (requires DNS configuration, Contact us to verify your domain.)",
1790
- placeholder: "noreply@feedme.cc",
1791
- disabled: "",
1792
- "onUpdate:modelValue": u[7] || (u[7] = (E) => {
1793
- var T;
1794
- (T = c(s)) != null && T.email || (c(s).email = {
1795
- from: E
1796
- }), c(s).email.from = E || null;
1797
- }),
1798
- rules: [c(ke).ruleAtPath(c(m), "email.from")]
1799
- }, null, 8, ["model-value", "rules"]),
1800
- S(I, {
1801
- "model-value": ((Fe = (Le = c(s)) == null ? void 0 : Le.email) == null ? void 0 : Fe.name) || null,
1802
- label: "Sender name",
1803
- "helper-text": "Will be shown as the name of the sender",
1804
- "onUpdate:modelValue": u[8] || (u[8] = (E) => {
1805
- var T;
1806
- (T = c(s)) != null && T.email || (c(s).email = {
1807
- name: E
1808
- }), c(s).email.name = E || null;
1809
- }),
1810
- rules: [c(ke).ruleAtPath(c(m), "email.name")]
1811
- }, null, 8, ["model-value", "rules"])
1795
+ b("div", zn, [
1796
+ c[15] || (c[15] = b("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
1797
+ c[16] || (c[16] = b("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Email address that will be used to send email broadcast ", -1)),
1798
+ u(f).length ? se("", !0) : (x(), ue(L, {
1799
+ key: 0,
1800
+ onClick: P,
1801
+ label: "Add new email address"
1802
+ })),
1803
+ u(f).length ? (x(), Y(ie, { key: 1 }, [
1804
+ I(yt, {
1805
+ "model-value": ((De = (Re = u(s)) == null ? void 0 : Re.email) == null ? void 0 : De.from) || null,
1806
+ label: "From Address",
1807
+ items: u(f).map((E) => ({
1808
+ label: E.emailAddress,
1809
+ value: E.emailAddress
1810
+ })),
1811
+ placeholder: u(m) ? u(m).emailAddress : "No email address available",
1812
+ "onUpdate:modelValue": c[7] || (c[7] = (E) => {
1813
+ var T, k;
1814
+ (T = u(s)) != null && T.email || (u(s).email = {
1815
+ from: E,
1816
+ name: (k = u(f).find((O) => O.emailAddress == E)) == null ? void 0 : k.name
1817
+ }), u(s).email.from = E || null;
1818
+ }),
1819
+ rules: [u(ze).ruleAtPath(u(B), "email.from")]
1820
+ }, null, 8, ["model-value", "items", "placeholder", "rules"]),
1821
+ I(R, {
1822
+ "model-value": ((Ve = (ke = u(s)) == null ? void 0 : ke.email) == null ? void 0 : Ve.name) || null,
1823
+ label: "Sender name",
1824
+ disabled: "",
1825
+ placeholder: ((xe = u(m)) == null ? void 0 : xe.name) || null,
1826
+ "onUpdate:modelValue": c[8] || (c[8] = (E) => {
1827
+ var T;
1828
+ (T = u(s)) != null && T.email || (u(s).email = {
1829
+ name: E
1830
+ }), u(s).email.name = E || null;
1831
+ }),
1832
+ rules: [u(ze).ruleAtPath(u(B), "email.name")]
1833
+ }, null, 8, ["model-value", "placeholder", "rules"])
1834
+ ], 64)) : se("", !0)
1812
1835
  ]),
1813
- b("div", Rn, [
1814
- u[16] || (u[16] = b("div", { class: "fm-typo-en-title-sm-800" }, [
1815
- Q(" Free Credit as Discount "),
1836
+ b("div", Hn, [
1837
+ c[17] || (c[17] = b("div", { class: "fm-typo-en-title-sm-800" }, [
1838
+ Z(" Free Credit as Discount "),
1816
1839
  b("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
1817
1840
  ], -1)),
1818
- S(k, {
1819
- "model-value": c(s).freeCreditAsDiscount ?? !1,
1820
- "onUpdate:modelValue": u[9] || (u[9] = (E) => c(s).freeCreditAsDiscount = E),
1841
+ I(ye, {
1842
+ "model-value": u(s).freeCreditAsDiscount ?? !1,
1843
+ "onUpdate:modelValue": c[9] || (c[9] = (E) => u(s).freeCreditAsDiscount = E),
1821
1844
  label: "Free Credit as Discount",
1822
1845
  sublabel: "When enabled, this will allow free credit to be used as discount in the bill (POS >=v6.56)",
1823
1846
  "label-placement": "right",
1824
1847
  value: ""
1825
1848
  }, null, 8, ["model-value"])
1826
1849
  ]),
1827
- b("div", Dn, [
1828
- b("div", kn, [
1829
- u[17] || (u[17] = Q(" Member Card ")),
1830
- S(P, { variant: "premium" })
1850
+ b("div", Kn, [
1851
+ b("div", On, [
1852
+ c[18] || (c[18] = Z(" Member Card ")),
1853
+ I(X, { variant: "premium" })
1831
1854
  ]),
1832
- S(k, {
1833
- "model-value": c(s).cardEnable ?? !1,
1834
- "onUpdate:modelValue": u[10] || (u[10] = (E) => c(s).cardEnable = E),
1855
+ I(ye, {
1856
+ "model-value": u(s).cardEnable ?? !1,
1857
+ "onUpdate:modelValue": c[10] || (c[10] = (E) => u(s).cardEnable = E),
1835
1858
  label: "",
1836
1859
  sublabel: "Allow member to bind card via member app",
1837
1860
  "label-placement": "right",
1838
1861
  value: "",
1839
- disabled: !c(i).isPremium
1862
+ disabled: !u(i).isPremium
1840
1863
  }, null, 8, ["model-value", "disabled"])
1841
1864
  ]),
1842
- b("div", Vn, [
1843
- u[18] || (u[18] = b("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1)),
1844
- S(yt, {
1865
+ b("div", Yn, [
1866
+ c[19] || (c[19] = b("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1)),
1867
+ I(_t, {
1845
1868
  label: "Select restaurant",
1846
- "model-value": c(s).targetLocation ?? null,
1847
- "onUpdate:modelValue": u[11] || (u[11] = (E) => c(s).targetLocation = E)
1869
+ "model-value": u(s).targetLocation ?? null,
1870
+ "onUpdate:modelValue": c[11] || (c[11] = (E) => u(s).targetLocation = E)
1848
1871
  }, null, 8, ["model-value"])
1849
1872
  ]),
1850
- b("div", xn, [
1851
- S(M, {
1873
+ b("div", jn, [
1874
+ I(L, {
1852
1875
  label: "Update",
1853
1876
  type: "button",
1854
- onClick: y,
1855
- disabled: !!c(e).loadingQueue.length,
1856
- loading: !!c(e).loadingQueue.length
1877
+ onClick: _,
1878
+ disabled: !!u(e).loadingQueue.length,
1879
+ loading: !!u(e).loadingQueue.length
1857
1880
  }, null, 8, ["disabled", "loading"])
1858
1881
  ])
1859
1882
  ])
1860
1883
  ]),
1861
- b("div", zn, [
1862
- S(N, {
1884
+ b("div", Jn, [
1885
+ I(N, {
1863
1886
  variant: "outlined",
1864
1887
  class: "flex flex-col p-24 gap-8"
1865
1888
  }, {
1866
1889
  default: W(() => {
1867
- var E, T, V;
1890
+ var E, T, k;
1868
1891
  return [
1869
- u[23] || (u[23] = b("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1)),
1870
- S(q, { class: "my-4" }),
1892
+ c[24] || (c[24] = b("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1)),
1893
+ I(wt, { class: "my-4" }),
1871
1894
  b("div", null, [
1872
- u[19] || (u[19] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1)),
1873
- b("div", $n, F(c(s).name), 1)
1895
+ c[20] || (c[20] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1)),
1896
+ b("div", qn, V(u(s).name), 1)
1874
1897
  ]),
1875
1898
  b("div", null, [
1876
- u[20] || (u[20] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1)),
1877
- b("div", Hn, F((((E = c(s).advertisements) == null ? void 0 : E.length) ?? 0) || "No advertisments"), 1)
1899
+ c[21] || (c[21] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1)),
1900
+ b("div", Gn, V((((E = u(s).advertisements) == null ? void 0 : E.length) ?? 0) || "No advertisments"), 1)
1878
1901
  ]),
1879
1902
  b("div", null, [
1880
- u[21] || (u[21] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1)),
1881
- b("div", Kn, F(c(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
1903
+ c[22] || (c[22] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1)),
1904
+ b("div", Qn, V(u(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
1882
1905
  ]),
1883
1906
  b("div", null, [
1884
- u[22] || (u[22] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1)),
1885
- b("div", On, F(!c(s).targetLocation || c(s).targetLocation.length == c(ve)().locations.length ? "All locations" : (V = (T = c(s)) == null ? void 0 : T.targetLocation) == null ? void 0 : V.map(
1886
- (ne) => c(i).locations.find((oe) => oe._id == ne).name
1907
+ c[23] || (c[23] = b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1)),
1908
+ b("div", Xn, V(!u(s).targetLocation || u(s).targetLocation.length == u(Ae)().locations.length ? "All locations" : (k = (T = u(s)) == null ? void 0 : T.targetLocation) == null ? void 0 : k.map(
1909
+ (O) => u(i).locations.find((re) => re._id == O).name
1887
1910
  ).join(", ")), 1)
1888
1911
  ])
1889
1912
  ];
@@ -1891,11 +1914,11 @@ const vn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1891
1914
  _: 1
1892
1915
  })
1893
1916
  ])
1894
- ])) : De("", !0)
1917
+ ])) : se("", !0)
1895
1918
  ], 64);
1896
1919
  };
1897
1920
  }
1898
1921
  });
1899
1922
  export {
1900
- lo as default
1923
+ po as default
1901
1924
  };