@feedmepos/mf-connect 0.1.38-beta.4 → 0.1.38-beta.6

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 (89) hide show
  1. package/dist/{Analytic-CEKrQOtf.js → Analytic-NBx32reB.js} +13 -13
  2. package/dist/{App-DOWjGKde.js → App-CaK9PvMd.js} +6 -6
  3. package/dist/{AuditLogs-Cz9BYiEk.js → AuditLogs-C-gCCPvF.js} +9 -9
  4. package/dist/{Bin-BusatNUU.js → Bin-CL6o1JSs.js} +8 -8
  5. package/dist/{Broadcast-BE51jjUA.js → Broadcast-B2-itjvZ.js} +9 -9
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BArTOg6l.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BIySMYGP.js} +6 -6
  7. package/dist/{Card-CKNq3Bz_.js → Card-DNdEjt6s.js} +16 -16
  8. package/dist/{Collections-DBymldhW.js → Collections-DepGq6WJ.js} +74 -73
  9. package/dist/{Credit-BqD_Ar0Z.js → Credit-D7K0gFwc.js} +9 -9
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DPD7_dlg.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-HMjbuy2C.js} +29 -29
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Cmo_q9Dx.js → EffectSheet.vue_vue_type_style_index_0_lang-DrbMJlm5.js} +6 -6
  12. package/dist/{Experience-CkEWFN3w.js → Experience-FlBX3eyN.js} +9 -9
  13. package/dist/{Game-rAsViSSf.js → Game-Cc3D7lKV.js} +10 -10
  14. package/dist/{Index-tyKEuFmH.js → Index-2wokhhFB.js} +10 -10
  15. package/dist/{Marketing-ZlUJY20D.js → Marketing-D7PXYloN.js} +6 -6
  16. package/dist/{Member-OAoxhJiT.js → Member-2xV4Izwa.js} +10 -10
  17. package/dist/{MemberList-DpZthjRy.js → MemberList-CYgBdyJt.js} +25 -25
  18. package/dist/{MemberTransactions-CfSZnCm6.js → MemberTransactions-DWDV01N4.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CaGDY7Iv.js → MessageInput.vue_vue_type_script_setup_true_lang-Becsw31k.js} +4239 -4210
  20. package/dist/{Mission-BDXkmII-.js → Mission-BSGc9822.js} +10 -10
  21. package/dist/{Overview-CCJuczco.js → Overview-BZjto86d.js} +18 -18
  22. package/dist/{Point-DB8xG0xE.js → Point-0U4TTdPW.js} +9 -9
  23. package/dist/{Promotion-CrBLyd07.js → Promotion-DiUa0GcV.js} +10 -10
  24. package/dist/{Queue-DXHI0Jl3.js → Queue-D62r2qjy.js} +10 -10
  25. package/dist/{Record-vg9JapaW.js → Record-0iF3dG7y.js} +8 -8
  26. package/dist/{Reward-B8-lPMhl.js → Reward-C5IEJYu6.js} +15 -15
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BXvHu1u7.js → RewardGroup.vue_vue_type_script_setup_true_lang-S2Fd0qO8.js} +11 -11
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BXz--HwJ.js → RuleGroup.vue_vue_type_script_setup_true_lang-CxlamGFP.js} +347 -324
  29. package/dist/{Segment-Cd1hn-kt.js → Segment-BknjBrUP.js} +22 -22
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BwkYexWg.js → SelectItems.vue_vue_type_script_setup_true_lang-BLQlkp-j.js} +2 -2
  31. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DDZd7EnG.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CaPi4hYB.js} +11 -11
  32. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CuCzH0NX.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BoZ0ZpNZ.js} +3 -3
  33. package/dist/{Setting-UciibUyO.js → Setting-RLI7RgmN.js} +482 -478
  34. package/dist/{Store-D0lhikGd.js → Store-gxmv8hWJ.js} +19 -19
  35. package/dist/{StoreRewards-DAuC_ms1.js → StoreRewards-C_6gY_Nk.js} +13 -13
  36. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CMVzvtDX.js → StoreTransactions.vue_vue_type_script_setup_true_lang-B5uzSYM4.js} +20 -20
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DvQbsrnt.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-yjI96ZL0.js} +1 -1
  38. package/dist/{Tier-CKbzlW34.js → Tier-B168DtFj.js} +20 -20
  39. package/dist/{Title-DiwUEIIf.js → Title-uH0RI1N3.js} +19 -19
  40. package/dist/{Transaction-DPKRdO61.js → Transaction-Bx-pmLrJ.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DTCvNqK9.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Ce_55V7l.js} +6 -6
  42. package/dist/{Voucher-CdRQEso8.js → Voucher-Dzpz2AEB.js} +13 -13
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Ckl_f_nV.js → VoucherEditor.vue_vue_type_script_setup_true_lang-dbA6_6b9.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-v_0lUPas.js → ZodTextField.vue_vue_type_script_setup_true_lang-CfLiUj9f.js} +1 -1
  45. package/dist/{app-D04ZT698.js → app-B90wINOO.js} +1 -1
  46. package/dist/{app-C2pUrmg_.js → app-DuUxQ1ZP.js} +31 -31
  47. package/dist/app.js +1 -1
  48. package/dist/{business-ScEZyi30.js → business-B65OtB5B.js} +1 -1
  49. package/dist/{campaign-DDpruzyd.js → campaign-iKI-L84v.js} +9 -9
  50. package/dist/{campaign-BiQfVqsh.js → campaign-qGy6uzrC.js} +2 -2
  51. package/dist/{campaign.enum-BII_MEF0.js → campaign.enum-CZp2DmXI.js} +1 -1
  52. package/dist/{campaign.fn-C4iKtSyf.js → campaign.fn-DKScnmjX.js} +3 -3
  53. package/dist/{collectible.enum-BIaqFyvX.js → collectible.enum-CN-lnG1m.js} +1 -1
  54. package/dist/{collection.fn-DonLs368.js → collection.fn-mMwGQWce.js} +2 -2
  55. package/dist/{dto-CUMTPvhs.js → dto-C5ri8Nws.js} +4 -4
  56. package/dist/{effect-CF35_5i9.js → effect-Bg3yb9T6.js} +1 -1
  57. package/dist/{email-addresses-DArDDrQb.js → email-addresses-CQsN724N.js} +1 -1
  58. package/dist/{export-W_ECkCYX.js → export-BLf2dhFd.js} +3 -3
  59. package/dist/{helper-C_bNJz0V.js → helper-CFaph16Q.js} +1 -1
  60. package/dist/{index-BLzqFI8O.js → index-BBPIZjw6.js} +1 -1
  61. package/dist/{index-C7uuBuiT.js → index-BCGDOgxb.js} +1 -1
  62. package/dist/{index-B_6sqicE.js → index-BCPBmANe.js} +4 -4
  63. package/dist/{index-CrKQOb-w.js → index-BKOgzVx6.js} +1 -1
  64. package/dist/{index-CSDnNbBm.js → index-BN2Uyvj4.js} +1095 -1091
  65. package/dist/{index-TcVFcS5_.js → index-BPZtjcTm.js} +1 -1
  66. package/dist/{index-DJvxihSI.js → index-BPyac0fq.js} +1 -1
  67. package/dist/{index-BdOk6W0A.js → index-BkySejFg.js} +3 -3
  68. package/dist/{index-DkiJ6ki7.js → index-CH2d_B8c.js} +1 -1
  69. package/dist/{index-DykvLeYv.js → index-CrbnfAk8.js} +2 -2
  70. package/dist/{index-cPuC3TQ6.js → index-DJwQICyC.js} +11 -4
  71. package/dist/{index-Cpv4zx6I.js → index-DaEQgaiW.js} +6 -6
  72. package/dist/{index-B5w6BCBE.js → index-Dkmn0jmX.js} +573 -573
  73. package/dist/{index-ClEWlHJe.js → index-Dy5p_b1S.js} +1 -1
  74. package/dist/{index.esm2017-DHXCHv8p.js → index.esm2017-B9vJTKYg.js} +1 -1
  75. package/dist/{loading-DcDiKIp7.js → loading-MEQuW9Xa.js} +1 -1
  76. package/dist/{membership-CXLLB6gB.js → membership-Du79A0Pl.js} +3 -3
  77. package/dist/{money-Dqt7ZT_Y.js → money-DXgYs2-R.js} +1 -1
  78. package/dist/{number-CmkLpk75.js → number-CBMkNZvH.js} +1 -1
  79. package/dist/{objectid-DP44ig8s.js → objectid-BeZTZYqi.js} +5 -5
  80. package/dist/{plugins-BR0qXYnG.js → plugins-KiMuDTPp.js} +2 -2
  81. package/dist/{reward-SM4_zMKj.js → reward-ClX_lWcQ.js} +1 -1
  82. package/dist/{rule-u-Vd-nMr.js → rule-BfidJ75Y.js} +3 -3
  83. package/dist/{rule-builder-3RF6_Q22.js → rule-builder-BTcZx77a.js} +1 -1
  84. package/dist/{template-DAAgbK5y.js → template-DPpMK30W.js} +4 -4
  85. package/dist/{trigger-BCK8isse.js → trigger-DLp1bkZP.js} +4 -4
  86. package/dist/{user-ClzT5cdd.js → user-Cq9CGBHZ.js} +1 -1
  87. package/dist/{vue-i18n-C4kfgRjJ.js → vue-i18n-COzqUgQy.js} +158 -158
  88. package/dist/{xlsx-D9YJUXft.js → xlsx-Be4bARvl.js} +1 -1
  89. package/package.json +1 -1
@@ -1,28 +1,28 @@
1
- import { defineComponent as Xe, ref as H, computed as me, onMounted as Ze, resolveComponent as R, openBlock as x, createBlock as fe, withCtx as ne, createElementVNode as w, createVNode as I, unref as c, isRef as We, createElementBlock as q, Fragment as ae, toDisplayString as D, createTextVNode as te, renderList as Ke, createCommentVNode as ce } from "vue";
2
- import { h as Et } from "./moment-BWErdI6_.js";
3
- import { Z as Oe } from "./zod-Bg2FbC-D.js";
4
- import { useDialog as et } from "@feedmepos/ui-library";
5
- import { u as At } from "./loading-DcDiKIp7.js";
6
- import { u as Bt } from "./app-wDQR6dpb.js";
7
- import { u as Se, l as tt } from "./business-ScEZyi30.js";
8
- import { u as nt } from "./membership-CXLLB6gB.js";
9
- import "./index-B5w6BCBE.js";
10
- import { s as Mt, k as St } from "./index-B_6sqicE.js";
11
- import { _ as Ye } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
12
- import { a as ot, p as _t, f as G } from "./plugins-BR0qXYnG.js";
13
- import { _ as It } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DvQbsrnt.js";
14
- import { M as Pt, _ as Tt } from "./MessageInput.vue_vue_type_script_setup_true_lang-CaGDY7Iv.js";
15
- import { u as Nt } from "./vue-i18n-C4kfgRjJ.js";
16
- import { useCoreStore as Ut } from "@feedmepos/mf-common";
17
- import { m as je } from "./index-cPuC3TQ6.js";
18
- import { S as Lt } from "./index-CSDnNbBm.js";
19
- import { o as Ft } from "./objectId-dwaoBfJX.js";
20
- import { a as Rt } from "./object-qECH92oz.js";
21
- var ie = {}, kt = function() {
1
+ import { defineComponent as Xe, ref as z, computed as ge, onMounted as Ze, resolveComponent as F, openBlock as x, createBlock as me, withCtx as oe, createElementVNode as y, createVNode as _, unref as u, isRef as et, createElementBlock as q, Fragment as ue, toDisplayString as k, createTextVNode as te, createCommentVNode as ne, renderList as Ye } from "vue";
2
+ import { h as At } from "./moment-BWErdI6_.js";
3
+ import { Z as je } from "./zod-Bg2FbC-D.js";
4
+ import { useDialog as tt } from "@feedmepos/ui-library";
5
+ import { u as Bt } from "./loading-MEQuW9Xa.js";
6
+ import { u as Mt } from "./app-wDQR6dpb.js";
7
+ import { u as Ie, l as nt } from "./business-B65OtB5B.js";
8
+ import { u as ot } from "./membership-Du79A0Pl.js";
9
+ import "./index-Dkmn0jmX.js";
10
+ import { s as St, k as _t } from "./index-BCPBmANe.js";
11
+ import { _ as It } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
12
+ import { a as rt, p as Pt, f as G } from "./plugins-KiMuDTPp.js";
13
+ import { _ as Tt } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-yjI96ZL0.js";
14
+ import { M as Nt, _ as Ut } from "./MessageInput.vue_vue_type_script_setup_true_lang-Becsw31k.js";
15
+ import { u as Lt } from "./vue-i18n-COzqUgQy.js";
16
+ import { useCoreStore as Ft } from "@feedmepos/mf-common";
17
+ import { m as Je } from "./index-DJwQICyC.js";
18
+ import { S as qe } from "./index-BN2Uyvj4.js";
19
+ import { o as Rt } from "./objectId-dwaoBfJX.js";
20
+ import { a as kt } from "./object-qECH92oz.js";
21
+ var se = {}, Dt = function() {
22
22
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
23
- }, rt = {}, L = {};
24
- let Ne;
25
- const Dt = [
23
+ }, it = {}, U = {};
24
+ let Le;
25
+ const Vt = [
26
26
  0,
27
27
  // Not used
28
28
  26,
@@ -66,32 +66,32 @@ const Dt = [
66
66
  3532,
67
67
  3706
68
68
  ];
69
- L.getSymbolSize = function(e) {
69
+ U.getSymbolSize = function(e) {
70
70
  if (!e) throw new Error('"version" cannot be null or undefined');
71
71
  if (e < 1 || e > 40) throw new Error('"version" should be in range from 1 to 40');
72
72
  return e * 4 + 17;
73
73
  };
74
- L.getSymbolTotalCodewords = function(e) {
75
- return Dt[e];
74
+ U.getSymbolTotalCodewords = function(e) {
75
+ return Vt[e];
76
76
  };
77
- L.getBCHDigit = function(t) {
77
+ U.getBCHDigit = function(t) {
78
78
  let e = 0;
79
79
  for (; t !== 0; )
80
80
  e++, t >>>= 1;
81
81
  return e;
82
82
  };
83
- L.setToSJISFunction = function(e) {
83
+ U.setToSJISFunction = function(e) {
84
84
  if (typeof e != "function")
85
85
  throw new Error('"toSJISFunc" is not a valid function.');
86
- Ne = e;
86
+ Le = e;
87
87
  };
88
- L.isKanjiModeEnabled = function() {
89
- return typeof Ne < "u";
88
+ U.isKanjiModeEnabled = function() {
89
+ return typeof Le < "u";
90
90
  };
91
- L.toSJIS = function(e) {
92
- return Ne(e);
91
+ U.toSJIS = function(e) {
92
+ return Le(e);
93
93
  };
94
- var pe = {};
94
+ var ye = {};
95
95
  (function(t) {
96
96
  t.L = { bit: 1 }, t.M = { bit: 0 }, t.Q = { bit: 3 }, t.H = { bit: 2 };
97
97
  function e(i) {
@@ -125,11 +125,11 @@ var pe = {};
125
125
  return o;
126
126
  }
127
127
  };
128
- })(pe);
129
- function it() {
128
+ })(ye);
129
+ function st() {
130
130
  this.buffer = [], this.length = 0;
131
131
  }
132
- it.prototype = {
132
+ st.prototype = {
133
133
  get: function(t) {
134
134
  const e = Math.floor(t / 8);
135
135
  return (this.buffer[e] >>> 7 - t % 8 & 1) === 1;
@@ -146,28 +146,28 @@ it.prototype = {
146
146
  this.buffer.length <= e && this.buffer.push(0), t && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;
147
147
  }
148
148
  };
149
- var Vt = it;
150
- function se(t) {
149
+ var xt = st;
150
+ function le(t) {
151
151
  if (!t || t < 1)
152
152
  throw new Error("BitMatrix size must be defined and greater than 0");
153
153
  this.size = t, this.data = new Uint8Array(t * t), this.reservedBit = new Uint8Array(t * t);
154
154
  }
155
- se.prototype.set = function(t, e, i, r) {
155
+ le.prototype.set = function(t, e, i, r) {
156
156
  const o = t * this.size + e;
157
157
  this.data[o] = i, r && (this.reservedBit[o] = !0);
158
158
  };
159
- se.prototype.get = function(t, e) {
159
+ le.prototype.get = function(t, e) {
160
160
  return this.data[t * this.size + e];
161
161
  };
162
- se.prototype.xor = function(t, e, i) {
162
+ le.prototype.xor = function(t, e, i) {
163
163
  this.data[t * this.size + e] ^= i;
164
164
  };
165
- se.prototype.isReserved = function(t, e) {
165
+ le.prototype.isReserved = function(t, e) {
166
166
  return this.reservedBit[t * this.size + e];
167
167
  };
168
- var xt = se, st = {};
168
+ var $t = le, lt = {};
169
169
  (function(t) {
170
- const e = L.getSymbolSize;
170
+ const e = U.getSymbolSize;
171
171
  t.getRowColCoords = function(r) {
172
172
  if (r === 1) return [];
173
173
  const o = Math.floor(r / 7) + 2, n = e(r), l = n === 145 ? 26 : Math.ceil((n - 13) / (2 * o - 2)) * 2, a = [n - 7];
@@ -183,21 +183,21 @@ var xt = se, st = {};
183
183
  a === l - 1 && s === 0 || o.push([n[a], n[s]]);
184
184
  return o;
185
185
  };
186
- })(st);
187
- var lt = {};
188
- const $t = L.getSymbolSize, Je = 7;
189
- lt.getPositions = function(e) {
190
- const i = $t(e);
186
+ })(lt);
187
+ var at = {};
188
+ const zt = U.getSymbolSize, Ge = 7;
189
+ at.getPositions = function(e) {
190
+ const i = zt(e);
191
191
  return [
192
192
  // top-left
193
193
  [0, 0],
194
194
  // top-right
195
- [i - Je, 0],
195
+ [i - Ge, 0],
196
196
  // bottom-left
197
- [0, i - Je]
197
+ [0, i - Ge]
198
198
  ];
199
199
  };
200
- var at = {};
200
+ var ct = {};
201
201
  (function(t) {
202
202
  t.Patterns = {
203
203
  PATTERN000: 0,
@@ -292,9 +292,9 @@ var at = {};
292
292
  }
293
293
  return a;
294
294
  };
295
- })(at);
296
- var ye = {};
297
- const O = pe, ue = [
295
+ })(ct);
296
+ var we = {};
297
+ const K = ye, de = [
298
298
  // L M Q H
299
299
  1,
300
300
  1,
@@ -456,7 +456,7 @@ const O = pe, ue = [
456
456
  49,
457
457
  68,
458
458
  81
459
- ], de = [
459
+ ], fe = [
460
460
  // L M Q H
461
461
  7,
462
462
  10,
@@ -619,55 +619,55 @@ const O = pe, ue = [
619
619
  2040,
620
620
  2430
621
621
  ];
622
- ye.getBlocksCount = function(e, i) {
622
+ we.getBlocksCount = function(e, i) {
623
623
  switch (i) {
624
- case O.L:
625
- return ue[(e - 1) * 4 + 0];
626
- case O.M:
627
- return ue[(e - 1) * 4 + 1];
628
- case O.Q:
629
- return ue[(e - 1) * 4 + 2];
630
- case O.H:
631
- return ue[(e - 1) * 4 + 3];
624
+ case K.L:
625
+ return de[(e - 1) * 4 + 0];
626
+ case K.M:
627
+ return de[(e - 1) * 4 + 1];
628
+ case K.Q:
629
+ return de[(e - 1) * 4 + 2];
630
+ case K.H:
631
+ return de[(e - 1) * 4 + 3];
632
632
  default:
633
633
  return;
634
634
  }
635
635
  };
636
- ye.getTotalCodewordsCount = function(e, i) {
636
+ we.getTotalCodewordsCount = function(e, i) {
637
637
  switch (i) {
638
- case O.L:
639
- return de[(e - 1) * 4 + 0];
640
- case O.M:
641
- return de[(e - 1) * 4 + 1];
642
- case O.Q:
643
- return de[(e - 1) * 4 + 2];
644
- case O.H:
645
- return de[(e - 1) * 4 + 3];
638
+ case K.L:
639
+ return fe[(e - 1) * 4 + 0];
640
+ case K.M:
641
+ return fe[(e - 1) * 4 + 1];
642
+ case K.Q:
643
+ return fe[(e - 1) * 4 + 2];
644
+ case K.H:
645
+ return fe[(e - 1) * 4 + 3];
646
646
  default:
647
647
  return;
648
648
  }
649
649
  };
650
- var ct = {}, we = {};
651
- const oe = new Uint8Array(512), ge = new Uint8Array(256);
650
+ var ut = {}, be = {};
651
+ const re = new Uint8Array(512), he = new Uint8Array(256);
652
652
  (function() {
653
653
  let e = 1;
654
654
  for (let i = 0; i < 255; i++)
655
- oe[i] = e, ge[e] = i, e <<= 1, e & 256 && (e ^= 285);
655
+ re[i] = e, he[e] = i, e <<= 1, e & 256 && (e ^= 285);
656
656
  for (let i = 255; i < 512; i++)
657
- oe[i] = oe[i - 255];
657
+ re[i] = re[i - 255];
658
658
  })();
659
- we.log = function(e) {
659
+ be.log = function(e) {
660
660
  if (e < 1) throw new Error("log(" + e + ")");
661
- return ge[e];
661
+ return he[e];
662
662
  };
663
- we.exp = function(e) {
664
- return oe[e];
663
+ be.exp = function(e) {
664
+ return re[e];
665
665
  };
666
- we.mul = function(e, i) {
667
- return e === 0 || i === 0 ? 0 : oe[ge[e] + ge[i]];
666
+ be.mul = function(e, i) {
667
+ return e === 0 || i === 0 ? 0 : re[he[e] + he[i]];
668
668
  };
669
669
  (function(t) {
670
- const e = we;
670
+ const e = be;
671
671
  t.mul = function(r, o) {
672
672
  const n = new Uint8Array(r.length + o.length - 1);
673
673
  for (let l = 0; l < r.length; l++)
@@ -691,53 +691,53 @@ we.mul = function(e, i) {
691
691
  o = t.mul(o, new Uint8Array([1, e.exp(n)]));
692
692
  return o;
693
693
  };
694
- })(ct);
695
- const ut = ct;
696
- function Ue(t) {
694
+ })(ut);
695
+ const dt = ut;
696
+ function Fe(t) {
697
697
  this.genPoly = void 0, this.degree = t, this.degree && this.initialize(this.degree);
698
698
  }
699
- Ue.prototype.initialize = function(e) {
700
- this.degree = e, this.genPoly = ut.generateECPolynomial(this.degree);
699
+ Fe.prototype.initialize = function(e) {
700
+ this.degree = e, this.genPoly = dt.generateECPolynomial(this.degree);
701
701
  };
702
- Ue.prototype.encode = function(e) {
702
+ Fe.prototype.encode = function(e) {
703
703
  if (!this.genPoly)
704
704
  throw new Error("Encoder not initialized");
705
705
  const i = new Uint8Array(e.length + this.degree);
706
706
  i.set(e);
707
- const r = ut.mod(i, this.genPoly), o = this.degree - r.length;
707
+ const r = dt.mod(i, this.genPoly), o = this.degree - r.length;
708
708
  if (o > 0) {
709
709
  const n = new Uint8Array(this.degree);
710
710
  return n.set(r, o), n;
711
711
  }
712
712
  return r;
713
713
  };
714
- var zt = Ue, dt = {}, Y = {}, Le = {};
715
- Le.isValid = function(e) {
714
+ var Ht = Fe, ft = {}, O = {}, Re = {};
715
+ Re.isValid = function(e) {
716
716
  return !isNaN(e) && e >= 1 && e <= 40;
717
717
  };
718
718
  var $ = {};
719
- const ft = "[0-9]+", Ht = "[A-Z $%*+\\-./:]+";
720
- let re = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
721
- re = re.replace(/u/g, "\\u");
722
- const Kt = "(?:(?![A-Z0-9 $%*+\\-./:]|" + re + `)(?:.|[\r
719
+ const mt = "[0-9]+", Kt = "[A-Z $%*+\\-./:]+";
720
+ let ie = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
721
+ ie = ie.replace(/u/g, "\\u");
722
+ const Ot = "(?:(?![A-Z0-9 $%*+\\-./:]|" + ie + `)(?:.|[\r
723
723
  ]))+`;
724
- $.KANJI = new RegExp(re, "g");
724
+ $.KANJI = new RegExp(ie, "g");
725
725
  $.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
726
- $.BYTE = new RegExp(Kt, "g");
727
- $.NUMERIC = new RegExp(ft, "g");
728
- $.ALPHANUMERIC = new RegExp(Ht, "g");
729
- const Ot = new RegExp("^" + re + "$"), Yt = new RegExp("^" + ft + "$"), jt = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
726
+ $.BYTE = new RegExp(Ot, "g");
727
+ $.NUMERIC = new RegExp(mt, "g");
728
+ $.ALPHANUMERIC = new RegExp(Kt, "g");
729
+ const Yt = new RegExp("^" + ie + "$"), jt = new RegExp("^" + mt + "$"), Jt = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
730
730
  $.testKanji = function(e) {
731
- return Ot.test(e);
731
+ return Yt.test(e);
732
732
  };
733
733
  $.testNumeric = function(e) {
734
- return Yt.test(e);
734
+ return jt.test(e);
735
735
  };
736
736
  $.testAlphanumeric = function(e) {
737
- return jt.test(e);
737
+ return Jt.test(e);
738
738
  };
739
739
  (function(t) {
740
- const e = Le, i = $;
740
+ const e = Re, i = $;
741
741
  t.NUMERIC = {
742
742
  id: "Numeric",
743
743
  bit: 1,
@@ -794,9 +794,9 @@ $.testAlphanumeric = function(e) {
794
794
  return l;
795
795
  }
796
796
  };
797
- })(Y);
797
+ })(O);
798
798
  (function(t) {
799
- const e = L, i = ye, r = pe, o = Y, n = Le, l = 7973, a = e.getBCHDigit(l);
799
+ const e = U, i = we, r = ye, o = O, n = Re, l = 7973, a = e.getBCHDigit(l);
800
800
  function s(g, d, v) {
801
801
  for (let C = 1; C <= 40; C++)
802
802
  if (d <= t.getCapacity(C, v, g))
@@ -808,8 +808,8 @@ $.testAlphanumeric = function(e) {
808
808
  function m(g, d) {
809
809
  let v = 0;
810
810
  return g.forEach(function(C) {
811
- const S = f(C.mode, d);
812
- v += S + C.getBitsLength();
811
+ const I = f(C.mode, d);
812
+ v += I + C.getBitsLength();
813
813
  }), v;
814
814
  }
815
815
  function B(g, d) {
@@ -823,7 +823,7 @@ $.testAlphanumeric = function(e) {
823
823
  if (!n.isValid(d))
824
824
  throw new Error("Invalid QR Code version");
825
825
  typeof C > "u" && (C = o.BYTE);
826
- const S = e.getSymbolTotalCodewords(d), p = i.getTotalCodewordsCount(d, v), b = (S - p) * 8;
826
+ const I = e.getSymbolTotalCodewords(d), p = i.getTotalCodewordsCount(d, v), b = (I - p) * 8;
827
827
  if (C === o.MIXED) return b;
828
828
  const h = b - f(C, d);
829
829
  switch (C) {
@@ -839,16 +839,16 @@ $.testAlphanumeric = function(e) {
839
839
  }
840
840
  }, t.getBestVersionForData = function(d, v) {
841
841
  let C;
842
- const S = r.from(v, r.M);
842
+ const I = r.from(v, r.M);
843
843
  if (Array.isArray(d)) {
844
844
  if (d.length > 1)
845
- return B(d, S);
845
+ return B(d, I);
846
846
  if (d.length === 0)
847
847
  return 1;
848
848
  C = d[0];
849
849
  } else
850
850
  C = d;
851
- return s(C.mode, C.getLength(), S);
851
+ return s(C.mode, C.getLength(), I);
852
852
  }, t.getEncodedBits = function(d) {
853
853
  if (!n.isValid(d) || d < 7)
854
854
  throw new Error("Invalid QR Code version");
@@ -857,20 +857,20 @@ $.testAlphanumeric = function(e) {
857
857
  v ^= l << e.getBCHDigit(v) - a;
858
858
  return d << 12 | v;
859
859
  };
860
- })(dt);
861
- var mt = {};
862
- const _e = L, gt = 1335, Jt = 21522, qe = _e.getBCHDigit(gt);
863
- mt.getEncodedBits = function(e, i) {
860
+ })(ft);
861
+ var gt = {};
862
+ const Pe = U, ht = 1335, qt = 21522, Qe = Pe.getBCHDigit(ht);
863
+ gt.getEncodedBits = function(e, i) {
864
864
  const r = e.bit << 3 | i;
865
865
  let o = r << 10;
866
- for (; _e.getBCHDigit(o) - qe >= 0; )
867
- o ^= gt << _e.getBCHDigit(o) - qe;
868
- return (r << 10 | o) ^ Jt;
866
+ for (; Pe.getBCHDigit(o) - Qe >= 0; )
867
+ o ^= ht << Pe.getBCHDigit(o) - Qe;
868
+ return (r << 10 | o) ^ qt;
869
869
  };
870
- var ht = {};
871
- const qt = Y;
870
+ var pt = {};
871
+ const Gt = O;
872
872
  function Q(t) {
873
- this.mode = qt.NUMERIC, this.data = t.toString();
873
+ this.mode = Gt.NUMERIC, this.data = t.toString();
874
874
  }
875
875
  Q.getBitsLength = function(e) {
876
876
  return 10 * Math.floor(e / 3) + (e % 3 ? e % 3 * 3 + 1 : 0);
@@ -888,8 +888,8 @@ Q.prototype.write = function(e) {
888
888
  const n = this.data.length - i;
889
889
  n > 0 && (r = this.data.substr(i), o = parseInt(r, 10), e.put(o, n * 3 + 1));
890
890
  };
891
- var Gt = Q;
892
- const Qt = Y, Ce = [
891
+ var Qt = Q;
892
+ const Wt = O, Ee = [
893
893
  "0",
894
894
  "1",
895
895
  "2",
@@ -936,27 +936,27 @@ const Qt = Y, Ce = [
936
936
  "/",
937
937
  ":"
938
938
  ];
939
- function X(t) {
940
- this.mode = Qt.ALPHANUMERIC, this.data = t;
939
+ function W(t) {
940
+ this.mode = Wt.ALPHANUMERIC, this.data = t;
941
941
  }
942
- X.getBitsLength = function(e) {
942
+ W.getBitsLength = function(e) {
943
943
  return 11 * Math.floor(e / 2) + 6 * (e % 2);
944
944
  };
945
- X.prototype.getLength = function() {
945
+ W.prototype.getLength = function() {
946
946
  return this.data.length;
947
947
  };
948
- X.prototype.getBitsLength = function() {
949
- return X.getBitsLength(this.data.length);
948
+ W.prototype.getBitsLength = function() {
949
+ return W.getBitsLength(this.data.length);
950
950
  };
951
- X.prototype.write = function(e) {
951
+ W.prototype.write = function(e) {
952
952
  let i;
953
953
  for (i = 0; i + 2 <= this.data.length; i += 2) {
954
- let r = Ce.indexOf(this.data[i]) * 45;
955
- r += Ce.indexOf(this.data[i + 1]), e.put(r, 11);
954
+ let r = Ee.indexOf(this.data[i]) * 45;
955
+ r += Ee.indexOf(this.data[i + 1]), e.put(r, 11);
956
956
  }
957
- this.data.length % 2 && e.put(Ce.indexOf(this.data[i]), 6);
957
+ this.data.length % 2 && e.put(Ee.indexOf(this.data[i]), 6);
958
958
  };
959
- var Xt = X, Zt = function(e) {
959
+ var Xt = W, Zt = function(e) {
960
960
  for (var i = [], r = e.length, o = 0; o < r; o++) {
961
961
  var n = e.charCodeAt(o);
962
962
  if (n >= 55296 && n <= 56319 && r > o + 1) {
@@ -983,41 +983,41 @@ var Xt = X, Zt = function(e) {
983
983
  }
984
984
  return new Uint8Array(i).buffer;
985
985
  };
986
- const Wt = Zt, en = Y;
987
- function Z(t) {
988
- this.mode = en.BYTE, typeof t == "string" && (t = Wt(t)), this.data = new Uint8Array(t);
986
+ const en = Zt, tn = O;
987
+ function X(t) {
988
+ this.mode = tn.BYTE, typeof t == "string" && (t = en(t)), this.data = new Uint8Array(t);
989
989
  }
990
- Z.getBitsLength = function(e) {
990
+ X.getBitsLength = function(e) {
991
991
  return e * 8;
992
992
  };
993
- Z.prototype.getLength = function() {
993
+ X.prototype.getLength = function() {
994
994
  return this.data.length;
995
995
  };
996
- Z.prototype.getBitsLength = function() {
997
- return Z.getBitsLength(this.data.length);
996
+ X.prototype.getBitsLength = function() {
997
+ return X.getBitsLength(this.data.length);
998
998
  };
999
- Z.prototype.write = function(t) {
999
+ X.prototype.write = function(t) {
1000
1000
  for (let e = 0, i = this.data.length; e < i; e++)
1001
1001
  t.put(this.data[e], 8);
1002
1002
  };
1003
- var tn = Z;
1004
- const nn = Y, on = L;
1005
- function W(t) {
1006
- this.mode = nn.KANJI, this.data = t;
1003
+ var nn = X;
1004
+ const on = O, rn = U;
1005
+ function Z(t) {
1006
+ this.mode = on.KANJI, this.data = t;
1007
1007
  }
1008
- W.getBitsLength = function(e) {
1008
+ Z.getBitsLength = function(e) {
1009
1009
  return e * 13;
1010
1010
  };
1011
- W.prototype.getLength = function() {
1011
+ Z.prototype.getLength = function() {
1012
1012
  return this.data.length;
1013
1013
  };
1014
- W.prototype.getBitsLength = function() {
1015
- return W.getBitsLength(this.data.length);
1014
+ Z.prototype.getBitsLength = function() {
1015
+ return Z.getBitsLength(this.data.length);
1016
1016
  };
1017
- W.prototype.write = function(t) {
1017
+ Z.prototype.write = function(t) {
1018
1018
  let e;
1019
1019
  for (e = 0; e < this.data.length; e++) {
1020
- let i = on.toSJIS(this.data[e]);
1020
+ let i = rn.toSJIS(this.data[e]);
1021
1021
  if (i >= 33088 && i <= 40956)
1022
1022
  i -= 33088;
1023
1023
  else if (i >= 57408 && i <= 60351)
@@ -1030,7 +1030,7 @@ Make sure your charset is UTF-8`
1030
1030
  i = (i >>> 8 & 255) * 192 + (i & 255), t.put(i, 13);
1031
1031
  }
1032
1032
  };
1033
- var rn = W, pt = { exports: {} };
1033
+ var sn = Z, yt = { exports: {} };
1034
1034
  (function(t) {
1035
1035
  var e = {
1036
1036
  single_source_shortest_paths: function(i, r, o) {
@@ -1038,10 +1038,10 @@ var rn = W, pt = { exports: {} };
1038
1038
  l[r] = 0;
1039
1039
  var a = e.PriorityQueue.make();
1040
1040
  a.push(r, 0);
1041
- for (var s, f, m, B, g, d, v, C, S; !a.empty(); ) {
1041
+ for (var s, f, m, B, g, d, v, C, I; !a.empty(); ) {
1042
1042
  s = a.pop(), f = s.value, B = s.cost, g = i[f] || {};
1043
1043
  for (m in g)
1044
- g.hasOwnProperty(m) && (d = g[m], v = B + d, C = l[m], S = typeof l[m] > "u", (S || C > v) && (l[m] = v, a.push(m, v), n[m] = f));
1044
+ g.hasOwnProperty(m) && (d = g[m], v = B + d, C = l[m], I = typeof l[m] > "u", (I || C > v) && (l[m] = v, a.push(m, v), n[m] = f));
1045
1045
  }
1046
1046
  if (typeof o < "u" && typeof l[o] > "u") {
1047
1047
  var p = ["Could not find a path from ", r, " to ", o, "."].join("");
@@ -1095,30 +1095,30 @@ var rn = W, pt = { exports: {} };
1095
1095
  }
1096
1096
  };
1097
1097
  t.exports = e;
1098
- })(pt);
1099
- var sn = pt.exports;
1098
+ })(yt);
1099
+ var ln = yt.exports;
1100
1100
  (function(t) {
1101
- const e = Y, i = Gt, r = Xt, o = tn, n = rn, l = $, a = L, s = sn;
1101
+ const e = O, i = Qt, r = Xt, o = nn, n = sn, l = $, a = U, s = ln;
1102
1102
  function f(p) {
1103
1103
  return unescape(encodeURIComponent(p)).length;
1104
1104
  }
1105
1105
  function m(p, b, h) {
1106
- const y = [];
1106
+ const w = [];
1107
1107
  let M;
1108
1108
  for (; (M = p.exec(h)) !== null; )
1109
- y.push({
1109
+ w.push({
1110
1110
  data: M[0],
1111
1111
  index: M.index,
1112
1112
  mode: b,
1113
1113
  length: M[0].length
1114
1114
  });
1115
- return y;
1115
+ return w;
1116
1116
  }
1117
1117
  function B(p) {
1118
1118
  const b = m(l.NUMERIC, e.NUMERIC, p), h = m(l.ALPHANUMERIC, e.ALPHANUMERIC, p);
1119
- let y, M;
1120
- return a.isKanjiModeEnabled() ? (y = m(l.BYTE, e.BYTE, p), M = m(l.KANJI, e.KANJI, p)) : (y = m(l.BYTE_KANJI, e.BYTE, p), M = []), b.concat(h, y, M).sort(function(P, U) {
1121
- return P.index - U.index;
1119
+ let w, M;
1120
+ return a.isKanjiModeEnabled() ? (w = m(l.BYTE, e.BYTE, p), M = m(l.KANJI, e.KANJI, p)) : (w = m(l.BYTE_KANJI, e.BYTE, p), M = []), b.concat(h, w, M).sort(function(P, N) {
1121
+ return P.index - N.index;
1122
1122
  }).map(function(P) {
1123
1123
  return {
1124
1124
  data: P.data,
@@ -1141,67 +1141,67 @@ var sn = pt.exports;
1141
1141
  }
1142
1142
  function d(p) {
1143
1143
  return p.reduce(function(b, h) {
1144
- const y = b.length - 1 >= 0 ? b[b.length - 1] : null;
1145
- return y && y.mode === h.mode ? (b[b.length - 1].data += h.data, b) : (b.push(h), b);
1144
+ const w = b.length - 1 >= 0 ? b[b.length - 1] : null;
1145
+ return w && w.mode === h.mode ? (b[b.length - 1].data += h.data, b) : (b.push(h), b);
1146
1146
  }, []);
1147
1147
  }
1148
1148
  function v(p) {
1149
1149
  const b = [];
1150
1150
  for (let h = 0; h < p.length; h++) {
1151
- const y = p[h];
1152
- switch (y.mode) {
1151
+ const w = p[h];
1152
+ switch (w.mode) {
1153
1153
  case e.NUMERIC:
1154
1154
  b.push([
1155
- y,
1156
- { data: y.data, mode: e.ALPHANUMERIC, length: y.length },
1157
- { data: y.data, mode: e.BYTE, length: y.length }
1155
+ w,
1156
+ { data: w.data, mode: e.ALPHANUMERIC, length: w.length },
1157
+ { data: w.data, mode: e.BYTE, length: w.length }
1158
1158
  ]);
1159
1159
  break;
1160
1160
  case e.ALPHANUMERIC:
1161
1161
  b.push([
1162
- y,
1163
- { data: y.data, mode: e.BYTE, length: y.length }
1162
+ w,
1163
+ { data: w.data, mode: e.BYTE, length: w.length }
1164
1164
  ]);
1165
1165
  break;
1166
1166
  case e.KANJI:
1167
1167
  b.push([
1168
- y,
1169
- { data: y.data, mode: e.BYTE, length: f(y.data) }
1168
+ w,
1169
+ { data: w.data, mode: e.BYTE, length: f(w.data) }
1170
1170
  ]);
1171
1171
  break;
1172
1172
  case e.BYTE:
1173
1173
  b.push([
1174
- { data: y.data, mode: e.BYTE, length: f(y.data) }
1174
+ { data: w.data, mode: e.BYTE, length: f(w.data) }
1175
1175
  ]);
1176
1176
  }
1177
1177
  }
1178
1178
  return b;
1179
1179
  }
1180
1180
  function C(p, b) {
1181
- const h = {}, y = { start: {} };
1181
+ const h = {}, w = { start: {} };
1182
1182
  let M = ["start"];
1183
- for (let _ = 0; _ < p.length; _++) {
1184
- const P = p[_], U = [];
1185
- for (let V = 0; V < P.length; V++) {
1186
- const F = P[V], A = "" + _ + V;
1187
- U.push(A), h[A] = { node: F, lastCount: 0 }, y[A] = {};
1188
- for (let u = 0; u < M.length; u++) {
1189
- const N = M[u];
1190
- h[N] && h[N].node.mode === F.mode ? (y[N][A] = g(h[N].lastCount + F.length, F.mode) - g(h[N].lastCount, F.mode), h[N].lastCount += F.length) : (h[N] && (h[N].lastCount = F.length), y[N][A] = g(F.length, F.mode) + 4 + e.getCharCountIndicator(F.mode, b));
1183
+ for (let S = 0; S < p.length; S++) {
1184
+ const P = p[S], N = [];
1185
+ for (let D = 0; D < P.length; D++) {
1186
+ const L = P[D], Y = "" + S + D;
1187
+ N.push(Y), h[Y] = { node: L, lastCount: 0 }, w[Y] = {};
1188
+ for (let A = 0; A < M.length; A++) {
1189
+ const c = M[A];
1190
+ h[c] && h[c].node.mode === L.mode ? (w[c][Y] = g(h[c].lastCount + L.length, L.mode) - g(h[c].lastCount, L.mode), h[c].lastCount += L.length) : (h[c] && (h[c].lastCount = L.length), w[c][Y] = g(L.length, L.mode) + 4 + e.getCharCountIndicator(L.mode, b));
1191
1191
  }
1192
1192
  }
1193
- M = U;
1193
+ M = N;
1194
1194
  }
1195
- for (let _ = 0; _ < M.length; _++)
1196
- y[M[_]].end = 0;
1197
- return { map: y, table: h };
1195
+ for (let S = 0; S < M.length; S++)
1196
+ w[M[S]].end = 0;
1197
+ return { map: w, table: h };
1198
1198
  }
1199
- function S(p, b) {
1199
+ function I(p, b) {
1200
1200
  let h;
1201
- const y = e.getBestModeForData(p);
1202
- if (h = e.from(b, y), h !== e.BYTE && h.bit < y.bit)
1201
+ const w = e.getBestModeForData(p);
1202
+ if (h = e.from(b, w), h !== e.BYTE && h.bit < w.bit)
1203
1203
  throw new Error('"' + p + '" cannot be encoded with mode ' + e.toString(h) + `.
1204
- Suggested mode is: ` + e.toString(y));
1204
+ Suggested mode is: ` + e.toString(w));
1205
1205
  switch (h === e.KANJI && !a.isKanjiModeEnabled() && (h = e.BYTE), h) {
1206
1206
  case e.NUMERIC:
1207
1207
  return new i(p);
@@ -1214,23 +1214,23 @@ var sn = pt.exports;
1214
1214
  }
1215
1215
  }
1216
1216
  t.fromArray = function(b) {
1217
- return b.reduce(function(h, y) {
1218
- return typeof y == "string" ? h.push(S(y, null)) : y.data && h.push(S(y.data, y.mode)), h;
1217
+ return b.reduce(function(h, w) {
1218
+ return typeof w == "string" ? h.push(I(w, null)) : w.data && h.push(I(w.data, w.mode)), h;
1219
1219
  }, []);
1220
1220
  }, t.fromString = function(b, h) {
1221
- const y = B(b, a.isKanjiModeEnabled()), M = v(y), _ = C(M, h), P = s.find_path(_.map, "start", "end"), U = [];
1222
- for (let V = 1; V < P.length - 1; V++)
1223
- U.push(_.table[P[V]].node);
1224
- return t.fromArray(d(U));
1221
+ const w = B(b, a.isKanjiModeEnabled()), M = v(w), S = C(M, h), P = s.find_path(S.map, "start", "end"), N = [];
1222
+ for (let D = 1; D < P.length - 1; D++)
1223
+ N.push(S.table[P[D]].node);
1224
+ return t.fromArray(d(N));
1225
1225
  }, t.rawSplit = function(b) {
1226
1226
  return t.fromArray(
1227
1227
  B(b, a.isKanjiModeEnabled())
1228
1228
  );
1229
1229
  };
1230
- })(ht);
1231
- const be = L, Ee = pe, ln = Vt, an = xt, cn = st, un = lt, Ie = at, Pe = ye, dn = zt, he = dt, fn = mt, mn = Y, Ae = ht;
1232
- function gn(t, e) {
1233
- const i = t.size, r = un.getPositions(e);
1230
+ })(pt);
1231
+ const ve = U, Ae = ye, an = xt, cn = $t, un = lt, dn = at, Te = ct, Ne = we, fn = Ht, pe = ft, mn = gt, gn = O, Be = pt;
1232
+ function hn(t, e) {
1233
+ const i = t.size, r = dn.getPositions(e);
1234
1234
  for (let o = 0; o < r.length; o++) {
1235
1235
  const n = r[o][0], l = r[o][1];
1236
1236
  for (let a = -1; a <= 7; a++)
@@ -1239,15 +1239,15 @@ function gn(t, e) {
1239
1239
  l + s <= -1 || i <= l + s || (a >= 0 && a <= 6 && (s === 0 || s === 6) || s >= 0 && s <= 6 && (a === 0 || a === 6) || a >= 2 && a <= 4 && s >= 2 && s <= 4 ? t.set(n + a, l + s, !0, !0) : t.set(n + a, l + s, !1, !0));
1240
1240
  }
1241
1241
  }
1242
- function hn(t) {
1242
+ function pn(t) {
1243
1243
  const e = t.size;
1244
1244
  for (let i = 8; i < e - 8; i++) {
1245
1245
  const r = i % 2 === 0;
1246
1246
  t.set(i, 6, r, !0), t.set(6, i, r, !0);
1247
1247
  }
1248
1248
  }
1249
- function pn(t, e) {
1250
- const i = cn.getPositions(e);
1249
+ function yn(t, e) {
1250
+ const i = un.getPositions(e);
1251
1251
  for (let r = 0; r < i.length; r++) {
1252
1252
  const o = i[r][0], n = i[r][1];
1253
1253
  for (let l = -2; l <= 2; l++)
@@ -1255,20 +1255,20 @@ function pn(t, e) {
1255
1255
  l === -2 || l === 2 || a === -2 || a === 2 || l === 0 && a === 0 ? t.set(o + l, n + a, !0, !0) : t.set(o + l, n + a, !1, !0);
1256
1256
  }
1257
1257
  }
1258
- function yn(t, e) {
1259
- const i = t.size, r = he.getEncodedBits(e);
1258
+ function wn(t, e) {
1259
+ const i = t.size, r = pe.getEncodedBits(e);
1260
1260
  let o, n, l;
1261
1261
  for (let a = 0; a < 18; a++)
1262
1262
  o = Math.floor(a / 3), n = a % 3 + i - 8 - 3, l = (r >> a & 1) === 1, t.set(o, n, l, !0), t.set(n, o, l, !0);
1263
1263
  }
1264
- function Be(t, e, i) {
1265
- const r = t.size, o = fn.getEncodedBits(e, i);
1264
+ function Me(t, e, i) {
1265
+ const r = t.size, o = mn.getEncodedBits(e, i);
1266
1266
  let n, l;
1267
1267
  for (n = 0; n < 15; n++)
1268
1268
  l = (o >> n & 1) === 1, n < 6 ? t.set(n, 8, l, !0) : n < 8 ? t.set(n + 1, 8, l, !0) : t.set(r - 15 + n, 8, l, !0), n < 8 ? t.set(8, r - n - 1, l, !0) : n < 9 ? t.set(8, 15 - n - 1 + 1, l, !0) : t.set(8, 15 - n - 1, l, !0);
1269
1269
  t.set(r - 8, 8, 1, !0);
1270
1270
  }
1271
- function wn(t, e) {
1271
+ function bn(t, e) {
1272
1272
  const i = t.size;
1273
1273
  let r = -1, o = i - 1, n = 7, l = 0;
1274
1274
  for (let a = i - 1; a > 0; a -= 2)
@@ -1284,53 +1284,53 @@ function wn(t, e) {
1284
1284
  }
1285
1285
  }
1286
1286
  }
1287
- function bn(t, e, i) {
1288
- const r = new ln();
1287
+ function vn(t, e, i) {
1288
+ const r = new an();
1289
1289
  i.forEach(function(s) {
1290
- r.put(s.mode.bit, 4), r.put(s.getLength(), mn.getCharCountIndicator(s.mode, t)), s.write(r);
1290
+ r.put(s.mode.bit, 4), r.put(s.getLength(), gn.getCharCountIndicator(s.mode, t)), s.write(r);
1291
1291
  });
1292
- const o = be.getSymbolTotalCodewords(t), n = Pe.getTotalCodewordsCount(t, e), l = (o - n) * 8;
1292
+ const o = ve.getSymbolTotalCodewords(t), n = Ne.getTotalCodewordsCount(t, e), l = (o - n) * 8;
1293
1293
  for (r.getLengthInBits() + 4 <= l && r.put(0, 4); r.getLengthInBits() % 8 !== 0; )
1294
1294
  r.putBit(0);
1295
1295
  const a = (l - r.getLengthInBits()) / 8;
1296
1296
  for (let s = 0; s < a; s++)
1297
1297
  r.put(s % 2 ? 17 : 236, 8);
1298
- return vn(r, t, e);
1298
+ return Cn(r, t, e);
1299
1299
  }
1300
- function vn(t, e, i) {
1301
- const r = be.getSymbolTotalCodewords(e), o = Pe.getTotalCodewordsCount(e, i), n = r - o, l = Pe.getBlocksCount(e, i), a = r % l, s = l - a, f = Math.floor(r / l), m = Math.floor(n / l), B = m + 1, g = f - m, d = new dn(g);
1300
+ function Cn(t, e, i) {
1301
+ const r = ve.getSymbolTotalCodewords(e), o = Ne.getTotalCodewordsCount(e, i), n = r - o, l = Ne.getBlocksCount(e, i), a = r % l, s = l - a, f = Math.floor(r / l), m = Math.floor(n / l), B = m + 1, g = f - m, d = new fn(g);
1302
1302
  let v = 0;
1303
- const C = new Array(l), S = new Array(l);
1303
+ const C = new Array(l), I = new Array(l);
1304
1304
  let p = 0;
1305
1305
  const b = new Uint8Array(t.buffer);
1306
1306
  for (let P = 0; P < l; P++) {
1307
- const U = P < s ? m : B;
1308
- C[P] = b.slice(v, v + U), S[P] = d.encode(C[P]), v += U, p = Math.max(p, U);
1307
+ const N = P < s ? m : B;
1308
+ C[P] = b.slice(v, v + N), I[P] = d.encode(C[P]), v += N, p = Math.max(p, N);
1309
1309
  }
1310
1310
  const h = new Uint8Array(r);
1311
- let y = 0, M, _;
1311
+ let w = 0, M, S;
1312
1312
  for (M = 0; M < p; M++)
1313
- for (_ = 0; _ < l; _++)
1314
- M < C[_].length && (h[y++] = C[_][M]);
1313
+ for (S = 0; S < l; S++)
1314
+ M < C[S].length && (h[w++] = C[S][M]);
1315
1315
  for (M = 0; M < g; M++)
1316
- for (_ = 0; _ < l; _++)
1317
- h[y++] = S[_][M];
1316
+ for (S = 0; S < l; S++)
1317
+ h[w++] = I[S][M];
1318
1318
  return h;
1319
1319
  }
1320
- function Cn(t, e, i, r) {
1320
+ function En(t, e, i, r) {
1321
1321
  let o;
1322
1322
  if (Array.isArray(t))
1323
- o = Ae.fromArray(t);
1323
+ o = Be.fromArray(t);
1324
1324
  else if (typeof t == "string") {
1325
1325
  let f = e;
1326
1326
  if (!f) {
1327
- const m = Ae.rawSplit(t);
1328
- f = he.getBestVersionForData(m, i);
1327
+ const m = Be.rawSplit(t);
1328
+ f = pe.getBestVersionForData(m, i);
1329
1329
  }
1330
- o = Ae.fromString(t, f || 40);
1330
+ o = Be.fromString(t, f || 40);
1331
1331
  } else
1332
1332
  throw new Error("Invalid data");
1333
- const n = he.getBestVersionForData(o, i);
1333
+ const n = pe.getBestVersionForData(o, i);
1334
1334
  if (!n)
1335
1335
  throw new Error("The amount of data is too big to be stored in a QR Code");
1336
1336
  if (!e)
@@ -1342,11 +1342,11 @@ The chosen QR Code version cannot contain this amount of data.
1342
1342
  Minimum version required to store current data is: ` + n + `.
1343
1343
  `
1344
1344
  );
1345
- const l = bn(e, i, o), a = be.getSymbolSize(e), s = new an(a);
1346
- return gn(s, e), hn(s), pn(s, e), Be(s, i, 0), e >= 7 && yn(s, e), wn(s, l), isNaN(r) && (r = Ie.getBestMask(
1345
+ const l = vn(e, i, o), a = ve.getSymbolSize(e), s = new cn(a);
1346
+ return hn(s, e), pn(s), yn(s, e), Me(s, i, 0), e >= 7 && wn(s, e), bn(s, l), isNaN(r) && (r = Te.getBestMask(
1347
1347
  s,
1348
- Be.bind(null, s, i)
1349
- )), Ie.applyMask(r, s), Be(s, i, r), {
1348
+ Me.bind(null, s, i)
1349
+ )), Te.applyMask(r, s), Me(s, i, r), {
1350
1350
  modules: s,
1351
1351
  version: e,
1352
1352
  errorCorrectionLevel: i,
@@ -1354,13 +1354,13 @@ Minimum version required to store current data is: ` + n + `.
1354
1354
  segments: o
1355
1355
  };
1356
1356
  }
1357
- rt.create = function(e, i) {
1357
+ it.create = function(e, i) {
1358
1358
  if (typeof e > "u" || e === "")
1359
1359
  throw new Error("No input text");
1360
- let r = Ee.M, o, n;
1361
- return typeof i < "u" && (r = Ee.from(i.errorCorrectionLevel, Ee.M), o = he.from(i.version), n = Ie.from(i.maskPattern), i.toSJISFunc && be.setToSJISFunction(i.toSJISFunc)), Cn(e, o, r, n);
1360
+ let r = Ae.M, o, n;
1361
+ return typeof i < "u" && (r = Ae.from(i.errorCorrectionLevel, Ae.M), o = pe.from(i.version), n = Te.from(i.maskPattern), i.toSJISFunc && ve.setToSJISFunction(i.toSJISFunc)), En(e, o, r, n);
1362
1362
  };
1363
- var yt = {}, Fe = {};
1363
+ var wt = {}, ke = {};
1364
1364
  (function(t) {
1365
1365
  function e(i) {
1366
1366
  if (typeof i == "number" && (i = i.toString()), typeof i != "string")
@@ -1405,15 +1405,15 @@ var yt = {}, Fe = {};
1405
1405
  for (let d = 0; d < f; d++) {
1406
1406
  let v = (g * f + d) * 4, C = n.color.light;
1407
1407
  if (g >= m && d >= m && g < f - m && d < f - m) {
1408
- const S = Math.floor((g - m) / s), p = Math.floor((d - m) / s);
1409
- C = B[a[S * l + p] ? 1 : 0];
1408
+ const I = Math.floor((g - m) / s), p = Math.floor((d - m) / s);
1409
+ C = B[a[I * l + p] ? 1 : 0];
1410
1410
  }
1411
1411
  r[v++] = C.r, r[v++] = C.g, r[v++] = C.b, r[v] = C.a;
1412
1412
  }
1413
1413
  };
1414
- })(Fe);
1414
+ })(ke);
1415
1415
  (function(t) {
1416
- const e = Fe;
1416
+ const e = ke;
1417
1417
  function i(o, n, l) {
1418
1418
  o.clearRect(0, 0, n.width, n.height), n.style || (n.style = {}), n.height = l, n.width = l, n.style.height = l + "px", n.style.width = l + "px";
1419
1419
  }
@@ -1435,34 +1435,34 @@ var yt = {}, Fe = {};
1435
1435
  const f = t.render(n, l, s), m = s.type || "image/png", B = s.rendererOpts || {};
1436
1436
  return f.toDataURL(m, B.quality);
1437
1437
  };
1438
- })(yt);
1439
- var wt = {};
1440
- const En = Fe;
1441
- function Ge(t, e) {
1438
+ })(wt);
1439
+ var bt = {};
1440
+ const An = ke;
1441
+ function We(t, e) {
1442
1442
  const i = t.a / 255, r = e + '="' + t.hex + '"';
1443
1443
  return i < 1 ? r + " " + e + '-opacity="' + i.toFixed(2).slice(1) + '"' : r;
1444
1444
  }
1445
- function Me(t, e, i) {
1445
+ function Se(t, e, i) {
1446
1446
  let r = t + e;
1447
1447
  return typeof i < "u" && (r += " " + i), r;
1448
1448
  }
1449
- function An(t, e, i) {
1449
+ function Bn(t, e, i) {
1450
1450
  let r = "", o = 0, n = !1, l = 0;
1451
1451
  for (let a = 0; a < t.length; a++) {
1452
1452
  const s = Math.floor(a % e), f = Math.floor(a / e);
1453
- !s && !n && (n = !0), t[a] ? (l++, a > 0 && s > 0 && t[a - 1] || (r += n ? Me("M", s + i, 0.5 + f + i) : Me("m", o, 0), o = 0, n = !1), s + 1 < e && t[a + 1] || (r += Me("h", l), l = 0)) : o++;
1453
+ !s && !n && (n = !0), t[a] ? (l++, a > 0 && s > 0 && t[a - 1] || (r += n ? Se("M", s + i, 0.5 + f + i) : Se("m", o, 0), o = 0, n = !1), s + 1 < e && t[a + 1] || (r += Se("h", l), l = 0)) : o++;
1454
1454
  }
1455
1455
  return r;
1456
1456
  }
1457
- wt.render = function(e, i, r) {
1458
- const o = En.getOptions(i), n = e.modules.size, l = e.modules.data, a = n + o.margin * 2, s = o.color.light.a ? "<path " + Ge(o.color.light, "fill") + ' d="M0 0h' + a + "v" + a + 'H0z"/>' : "", f = "<path " + Ge(o.color.dark, "stroke") + ' d="' + An(l, n, o.margin) + '"/>', m = 'viewBox="0 0 ' + a + " " + a + '"', g = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + m + ' shape-rendering="crispEdges">' + s + f + `</svg>
1457
+ bt.render = function(e, i, r) {
1458
+ const o = An.getOptions(i), n = e.modules.size, l = e.modules.data, a = n + o.margin * 2, s = o.color.light.a ? "<path " + We(o.color.light, "fill") + ' d="M0 0h' + a + "v" + a + 'H0z"/>' : "", f = "<path " + We(o.color.dark, "stroke") + ' d="' + Bn(l, n, o.margin) + '"/>', m = 'viewBox="0 0 ' + a + " " + a + '"', g = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + m + ' shape-rendering="crispEdges">' + s + f + `</svg>
1459
1459
  `;
1460
1460
  return typeof r == "function" && r(null, g), g;
1461
1461
  };
1462
- const Bn = kt, Te = rt, bt = yt, Mn = wt;
1463
- function Re(t, e, i, r, o) {
1462
+ const Mn = Dt, Ue = it, vt = wt, Sn = bt;
1463
+ function De(t, e, i, r, o) {
1464
1464
  const n = [].slice.call(arguments, 1), l = n.length, a = typeof n[l - 1] == "function";
1465
- if (!a && !Bn())
1465
+ if (!a && !Mn())
1466
1466
  throw new Error("Callback required as last argument");
1467
1467
  if (a) {
1468
1468
  if (l < 2)
@@ -1473,7 +1473,7 @@ function Re(t, e, i, r, o) {
1473
1473
  throw new Error("Too few arguments provided");
1474
1474
  return l === 1 ? (i = e, e = r = void 0) : l === 2 && !e.getContext && (r = i, i = e, e = void 0), new Promise(function(s, f) {
1475
1475
  try {
1476
- const m = Te.create(i, r);
1476
+ const m = Ue.create(i, r);
1477
1477
  s(t(m, e, r));
1478
1478
  } catch (m) {
1479
1479
  f(m);
@@ -1481,21 +1481,21 @@ function Re(t, e, i, r, o) {
1481
1481
  });
1482
1482
  }
1483
1483
  try {
1484
- const s = Te.create(i, r);
1484
+ const s = Ue.create(i, r);
1485
1485
  o(null, t(s, e, r));
1486
1486
  } catch (s) {
1487
1487
  o(s);
1488
1488
  }
1489
1489
  }
1490
- ie.create = Te.create;
1491
- ie.toCanvas = Re.bind(null, bt.render);
1492
- ie.toDataURL = Re.bind(null, bt.renderToDataURL);
1493
- ie.toString = Re.bind(null, function(t, e, i) {
1494
- return Mn.render(t, i);
1490
+ se.create = Ue.create;
1491
+ se.toCanvas = De.bind(null, vt.render);
1492
+ se.toDataURL = De.bind(null, vt.renderToDataURL);
1493
+ se.toString = De.bind(null, function(t, e, i) {
1494
+ return Sn.render(t, i);
1495
1495
  });
1496
- async function Sn(t, e = 350) {
1496
+ async function _n(t, e = 350) {
1497
1497
  try {
1498
- return await ie.toDataURL(t, {
1498
+ return await se.toDataURL(t, {
1499
1499
  width: e,
1500
1500
  margin: 0
1501
1501
  });
@@ -1503,21 +1503,21 @@ async function Sn(t, e = 350) {
1503
1503
  console.error(i);
1504
1504
  }
1505
1505
  }
1506
- var _n = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
1507
- const In = { class: "flex items-start" }, Pn = { class: "flex flex-col gap-16 mt-16" }, Tn = ["src"], Nn = /* @__PURE__ */ Xe({
1506
+ var In = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
1507
+ const Pn = { class: "flex items-start" }, Tn = { class: "flex flex-col gap-16 mt-16" }, Nn = ["src"], Un = /* @__PURE__ */ Xe({
1508
1508
  __name: "LinkDeviceDialog",
1509
1509
  setup(t) {
1510
- const e = Se(), i = nt(), r = et(), o = H(), n = H(), l = _n.crmUrl, a = H(), s = me(() => i.membership), f = me(() => {
1510
+ const e = Ie(), i = ot(), r = tt(), o = z(), n = z(), l = In.crmUrl, a = z(), s = ge(() => i.membership), f = ge(() => {
1511
1511
  var g, d;
1512
1512
  return `https://${(g = s.value) != null && g.url ? s.value.url : (d = s.value) == null ? void 0 : d.business}.${l}`;
1513
1513
  });
1514
1514
  async function m(g) {
1515
- const d = await tt.getOtp(g);
1515
+ const d = await nt.getOtp(g);
1516
1516
  return `${f.value}?link-device=${d.otp}`;
1517
1517
  }
1518
1518
  async function B(g) {
1519
1519
  const d = await m(g);
1520
- a.value = d, o.value = await Sn(d);
1520
+ a.value = d, o.value = await _n(d);
1521
1521
  }
1522
1522
  return Ze(async () => {
1523
1523
  if (await e.readLocations(), !e.locations.length) {
@@ -1527,39 +1527,39 @@ const In = { class: "flex items-start" }, Pn = { class: "flex flex-col gap-16 mt
1527
1527
  const g = e.locations[0]._id;
1528
1528
  n.value = g, await B(g);
1529
1529
  }), (g, d) => {
1530
- const v = R("FmIcon"), C = R("FmSelect"), S = R("FmButton"), p = R("FmCard");
1531
- return x(), fe(p, { class: "p-24 max-w-[350px]" }, {
1532
- default: ne(() => [
1533
- w("div", In, [
1534
- d[3] || (d[3] = w("div", null, [
1535
- w("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
1536
- w("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
1530
+ const v = F("FmIcon"), C = F("FmSelect"), I = F("FmButton"), p = F("FmCard");
1531
+ return x(), me(p, { class: "p-24 max-w-[350px]" }, {
1532
+ default: oe(() => [
1533
+ y("div", Pn, [
1534
+ d[3] || (d[3] = y("div", null, [
1535
+ y("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
1536
+ y("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
1537
1537
  ], -1)),
1538
- I(v, {
1538
+ _(v, {
1539
1539
  name: "close",
1540
- onClick: d[0] || (d[0] = (b) => c(r).close()),
1540
+ onClick: d[0] || (d[0] = (b) => u(r).close()),
1541
1541
  class: "cursor-pointer"
1542
1542
  })
1543
1543
  ]),
1544
- w("div", Pn, [
1545
- I(C, {
1546
- modelValue: c(n),
1544
+ y("div", Tn, [
1545
+ _(C, {
1546
+ modelValue: u(n),
1547
1547
  "onUpdate:modelValue": [
1548
- d[1] || (d[1] = (b) => We(n) ? n.value = b : null),
1548
+ d[1] || (d[1] = (b) => et(n) ? n.value = b : null),
1549
1549
  B
1550
1550
  ],
1551
1551
  label: "Select Location",
1552
- items: c(e).locationItems.filter((b) => !!b.value)
1552
+ items: u(e).locationItems.filter((b) => !!b.value)
1553
1553
  }, null, 8, ["modelValue", "items"]),
1554
- w("img", {
1555
- src: c(o),
1554
+ y("img", {
1555
+ src: u(o),
1556
1556
  class: "aspect-square w-full"
1557
- }, null, 8, Tn),
1558
- I(S, {
1557
+ }, null, 8, Nn),
1558
+ _(I, {
1559
1559
  class: "mx-auto",
1560
1560
  variant: "plain",
1561
1561
  icon: "content_copy",
1562
- onClick: d[2] || (d[2] = (b) => c(ot)(c(a)))
1562
+ onClick: d[2] || (d[2] = (b) => u(rt)(u(a)))
1563
1563
  })
1564
1564
  ])
1565
1565
  ]),
@@ -1568,23 +1568,23 @@ const In = { class: "flex items-start" }, Pn = { class: "flex flex-col gap-16 mt
1568
1568
  };
1569
1569
  }
1570
1570
  });
1571
- var Qe = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
1572
- const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, Ln = { class: "fm-typo-en-title-md-800" }, Fn = {
1571
+ var _e = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
1572
+ const Ln = { class: "hidden xs:flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, Fn = { class: "fm-typo-en-title-md-800" }, Rn = {
1573
1573
  key: 0,
1574
1574
  class: "px-24 gap-32 grid grid-cols-3 xs:pt-16"
1575
- }, Rn = { class: "col-span-2 flex flex-col xs:col-span-3" }, kn = { class: "fm-typo-en-title-sm-800" }, Dn = { class: "space-y-24" }, Vn = { class: "space-y-8" }, xn = { class: "fm-typo-en-title-sm-800" }, $n = { class: "fm-typo-body-lg-400" }, zn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Hn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Kn = { class: "space-y-8" }, On = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Yn = { class: "space-y-8" }, jn = { class: "space-y-8" }, Jn = { class: "space-y-8" }, qn = { class: "space-y-8" }, Gn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Qn = { class: "space-y-8" }, Xn = { class: "flex justify-end pb-24" }, Zn = { class: "col-span-1 space-y-8 xs:hidden" }, Wn = { class: "fm-typo-en-body-lg-600" }, eo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-lg-600" }, no = { class: "fm-typo-en-body-lg-600" }, Bo = /* @__PURE__ */ Xe({
1575
+ }, kn = { class: "col-span-2 flex flex-col xs:col-span-3 space-y-8" }, Dn = { class: "fm-typo-en-title-sm-800" }, Vn = { class: "space-y-24" }, xn = { class: "space-y-8" }, $n = { class: "fm-typo-en-title-sm-800" }, zn = { class: "fm-typo-body-lg-400" }, Hn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, Kn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, On = { class: "space-y-8" }, Yn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, jn = { class: "space-y-8" }, Jn = { class: "space-y-8" }, qn = { class: "space-y-8" }, Gn = { class: "space-y-8" }, Qn = { class: "space-y-8" }, Wn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Xn = { class: "space-y-8" }, Zn = { class: "flex justify-end pb-24" }, eo = { class: "col-span-1 space-y-8 xs:hidden" }, to = { class: "fm-typo-en-body-lg-600" }, no = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-600" }, ro = { class: "fm-typo-en-body-lg-600" }, So = /* @__PURE__ */ Xe({
1576
1576
  __name: "Setting",
1577
1577
  setup(t) {
1578
- const e = Bt(), i = Ut(), r = Se(), o = nt(), { global: n, minor: l } = At, a = et(), s = H(), f = H(!1), m = H([]), B = H(null), g = Mt, d = [
1578
+ const e = Mt(), i = Ft(), r = Ie(), o = ot(), { global: n, minor: l } = Bt, a = tt(), s = z(), f = z(!1), m = z([]), B = z(null), g = St, d = [
1579
1579
  (A) => !A || A.length >= 6 || "Invalid URL format, please enter at least 6 characters",
1580
1580
  (A) => !A || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(A) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
1581
- ], v = Qe.appUrl, C = me(() => {
1581
+ ], v = _e.appUrl, C = ge(() => {
1582
1582
  var A;
1583
1583
  return `https://${(A = s.value) == null ? void 0 : A.business}.${v}`;
1584
- }), S = H(), p = H([]), b = me(() => {
1585
- var A, u;
1586
- return Math.min((((u = (A = s.value) == null ? void 0 : A.advertisements) == null ? void 0 : u.length) ?? 0) + 1, 5);
1587
- }), { t: h } = Nt(), y = i.currentCountry.value || "MY", M = [
1584
+ }), I = z(), p = z([]), b = ge(() => {
1585
+ var A, c;
1586
+ return Math.min((((c = (A = s.value) == null ? void 0 : A.advertisements) == null ? void 0 : c.length) ?? 0) + 1, 5);
1587
+ }), { t: h } = Lt(), w = i.currentCountry.value || "MY", M = [
1588
1588
  "user.name",
1589
1589
  "user.gender",
1590
1590
  "user.birthday",
@@ -1592,25 +1592,25 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1592
1592
  "membership.url"
1593
1593
  ].filter(
1594
1594
  (A) => {
1595
- var u;
1596
- return !((u = Pt[y]) != null && u.includes(A));
1595
+ var c;
1596
+ return !((c = Nt[w]) != null && c.includes(A));
1597
1597
  }
1598
1598
  );
1599
- async function _() {
1599
+ async function S() {
1600
1600
  a.open({
1601
1601
  title: "",
1602
- dialogComponent: Nn,
1602
+ dialogComponent: Un,
1603
1603
  closeButton: !1
1604
1604
  });
1605
1605
  }
1606
1606
  async function P(A) {
1607
- await _t.remove(
1607
+ await Pt.remove(
1608
1608
  "Are you sure you want to unlink this device?",
1609
1609
  "Unlink device",
1610
1610
  "Unlink"
1611
1611
  ) && await l(
1612
1612
  async () => {
1613
- await tt.unregisterDevice(A), await r.readLocationDevices();
1613
+ await nt.unregisterDevice(A), await r.readLocationDevices();
1614
1614
  },
1615
1615
  {
1616
1616
  message: "Unlinking device",
@@ -1618,26 +1618,26 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1618
1618
  }
1619
1619
  );
1620
1620
  }
1621
- async function U() {
1621
+ async function N() {
1622
1622
  await l(
1623
1623
  async () => {
1624
- var N;
1625
- const A = Rt(s.value);
1626
- A.welcomeMessage && !((N = A.welcomeMessage) != null && N.content) && (A.welcomeMessage.content = "Hi there, you have been invited to join our membership");
1627
- const u = St.parse(A);
1628
- S.value === null && u.image ? await G.delete(G.coverImagePath()) : S.value && (u.image = await G.update(
1624
+ var ae;
1625
+ const A = kt(s.value);
1626
+ A.welcomeMessage && !((ae = A.welcomeMessage) != null && ae.content) && (A.welcomeMessage.content = "Hi there, you have been invited to join our membership");
1627
+ const c = _t.parse(A);
1628
+ I.value === null && c.image ? await G.delete(G.coverImagePath()) : I.value && (c.image = await G.update(
1629
1629
  G.coverImagePath(),
1630
- S.value
1631
- )), f.value ? u.advertisements = (await Promise.all(
1632
- new Array(b.value - 1).fill(null).map(async (z, K) => {
1630
+ I.value
1631
+ )), f.value ? c.advertisements = (await Promise.all(
1632
+ new Array(b.value - 1).fill(null).map(async (V, H) => {
1633
1633
  var ee;
1634
- const j = p.value[K];
1634
+ const j = p.value[H];
1635
1635
  return j ? await G.update(
1636
- G.advertisementPath(K, j),
1636
+ G.advertisementPath(H, j),
1637
1637
  j
1638
- ) : (ee = u.advertisements) == null ? void 0 : ee[K];
1638
+ ) : (ee = c.advertisements) == null ? void 0 : ee[H];
1639
1639
  })
1640
- )).filter((z) => z) : u.advertisements = [], await je.update(u), await o.readMembership(), s.value = o.membership;
1640
+ )).filter((V) => V) : c.advertisements = [], await Je.update(c), await o.readMembership(), s.value = o.membership;
1641
1641
  },
1642
1642
  {
1643
1643
  message: "Updating membership",
@@ -1645,276 +1645,280 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1645
1645
  }
1646
1646
  );
1647
1647
  }
1648
- async function V() {
1649
- const A = await je.getEmailAddresses();
1650
- console.log(A), m.value = A, B.value = A.find((u) => u.default.includes("Marketing"));
1648
+ async function D() {
1649
+ const A = await Je.getEmailAddresses();
1650
+ console.log(A), m.value = A, B.value = A.find((c) => c.default.includes("Marketing"));
1651
1651
  }
1652
- async function F() {
1652
+ async function L() {
1653
1653
  window.open(
1654
- `${Qe.licensePortalUrl}business/${Lt.businessId}/settings`,
1654
+ `${_e.licensePortalUrl}business/${qe.businessId}/settings`,
1655
1655
  "_blank"
1656
1656
  );
1657
1657
  }
1658
+ async function Y() {
1659
+ const A = `${_e.licensePortalUrl}settings?businessId=${qe.businessId}`;
1660
+ console.log("Opening", A), window.open(A, "_blank");
1661
+ }
1658
1662
  return Ze(async () => {
1659
1663
  await n(async () => {
1660
- var A, u;
1661
- await r.readPremium(), await r.readLocations(), await r.readLocationDevices(), await o.readMembership(), await V(), s.value = o.membership, f.value = (((A = s.value.advertisements) == null ? void 0 : A.length) ?? 0) > 0, p.value = ((u = s.value.advertisements) == null ? void 0 : u.map(() => null)) ?? [];
1664
+ var A, c;
1665
+ await r.readPremium(), await r.readLocations(), await r.readLocationDevices(), await o.readMembership(), await D(), s.value = o.membership, f.value = (((A = s.value.advertisements) == null ? void 0 : A.length) ?? 0) > 0, p.value = ((c = s.value.advertisements) == null ? void 0 : c.map(() => null)) ?? [];
1662
1666
  });
1663
- }), (A, u) => {
1664
- var ke, De, Ve, xe, $e, ze, He;
1665
- const N = R("FmPageHead"), z = R("FmButton"), K = R("FmTextField"), j = R("FmCard"), ee = R("FmPill"), ve = R("FmSwitch"), vt = R("FmSelect"), Ct = R("FmMenuDivider");
1666
- return x(), q(ae, null, [
1667
- I(N, {
1668
- title: c(h)("connect.setting.title"),
1667
+ }), (A, c) => {
1668
+ var Ve, xe, $e, ze, He, Ke, Oe;
1669
+ const ae = F("FmPageHead"), V = F("FmButton"), H = F("FmTextField"), j = F("FmCard"), ee = F("FmPill"), Ce = F("FmSwitch"), Ct = F("FmSelect"), Et = F("FmMenuDivider");
1670
+ return x(), q(ue, null, [
1671
+ _(ae, {
1672
+ title: u(h)("connect.setting.title"),
1669
1673
  class: "xs:hidden"
1670
1674
  }, null, 8, ["title"]),
1671
- w("div", Un, [
1672
- w("div", Ln, D(c(h)("connect.setting.basicInfo.title")), 1),
1673
- I(z, {
1675
+ y("div", Ln, [
1676
+ y("div", Fn, k(u(h)("connect.setting.basicInfo.title")), 1),
1677
+ _(V, {
1674
1678
  icon: "info",
1675
1679
  variant: "tertiary"
1676
1680
  })
1677
1681
  ]),
1678
- c(s) ? (x(), q("div", Fn, [
1679
- w("div", Rn, [
1680
- w("div", kn, D(c(h)("connect.setting.basicInfo.title")), 1),
1681
- w("div", Dn, [
1682
- I(K, {
1683
- label: c(h)("connect.setting.basicInfo.membershipTitle"),
1684
- modelValue: c(s).name,
1685
- "onUpdate:modelValue": u[0] || (u[0] = (E) => c(s).name = E)
1682
+ u(s) ? (x(), q("div", Rn, [
1683
+ y("div", kn, [
1684
+ y("div", Dn, k(u(h)("connect.setting.basicInfo.title")), 1),
1685
+ y("div", Vn, [
1686
+ _(H, {
1687
+ label: u(h)("connect.setting.basicInfo.membershipTitle"),
1688
+ modelValue: u(s).name,
1689
+ "onUpdate:modelValue": c[0] || (c[0] = (E) => u(s).name = E)
1686
1690
  }, null, 8, ["label", "modelValue"]),
1687
- I(K, {
1691
+ _(H, {
1688
1692
  disabled: !0,
1689
- "model-value": c(s).business,
1693
+ "model-value": u(s).business,
1690
1694
  rules: d,
1691
1695
  required: !0,
1692
- label: c(h)("connect.setting.basicInfo.memberAppUrl"),
1693
- "helper-text": c(C),
1694
- placeholder: c(s).business.toString(),
1695
- "onUpdate:modelValue": u[2] || (u[2] = (E) => c(s).url = E)
1696
+ label: u(h)("connect.setting.basicInfo.memberAppUrl"),
1697
+ "helper-text": u(C),
1698
+ placeholder: u(s).business.toString(),
1699
+ "onUpdate:modelValue": c[2] || (c[2] = (E) => u(s).url = E)
1696
1700
  }, {
1697
- prepend: ne(() => u[12] || (u[12] = [
1701
+ prepend: oe(() => c[13] || (c[13] = [
1698
1702
  te(" https:// ")
1699
1703
  ])),
1700
- append: ne(() => [
1701
- te(" ." + D(c(v)) + " ", 1),
1702
- I(z, {
1704
+ append: oe(() => [
1705
+ te(" ." + k(u(v)) + " ", 1),
1706
+ _(V, {
1703
1707
  icon: "content_copy",
1704
1708
  variant: "tertiary",
1705
- onClick: u[1] || (u[1] = (E) => c(ot)(c(C)))
1709
+ onClick: c[1] || (c[1] = (E) => u(rt)(u(C)))
1706
1710
  })
1707
1711
  ]),
1708
1712
  _: 1
1709
1713
  }, 8, ["model-value", "label", "helper-text", "placeholder"]),
1710
- I(Ye, {
1711
- label: "Cover image",
1712
- class: "w-2/3 xs:w-full",
1713
- "image-fit": "cover",
1714
- "aspect-ratio": "3/1",
1715
- thumbnail: c(s).image || void 0,
1716
- "onUpdate:file": u[3] || (u[3] = async (E) => {
1717
- S.value = E, E || (c(s).image = null);
1718
- })
1719
- }, null, 8, ["thumbnail"]),
1720
- w("div", Vn, [
1721
- w("div", xn, D(c(h)("connect.setting.counterApp.title")), 1),
1722
- I(z, {
1714
+ ne("", !0),
1715
+ y("div", xn, [
1716
+ y("div", $n, k(u(h)("connect.setting.counterApp.title")), 1),
1717
+ _(V, {
1723
1718
  variant: "plain",
1724
1719
  icon: "link",
1725
- label: c(h)("connect.setting.counterApp.linkDevice"),
1726
- onClick: _
1720
+ label: u(h)("connect.setting.counterApp.linkDevice"),
1721
+ onClick: S
1727
1722
  }, null, 8, ["label"]),
1728
- (x(!0), q(ae, null, Ke(c(r).locationDevices, (E, T) => (x(), fe(j, {
1723
+ (x(!0), q(ue, null, Ye(u(r).locationDevices, (E, T) => (x(), me(j, {
1729
1724
  key: T,
1730
1725
  variant: "outlined",
1731
1726
  class: "flex items-center justify-between px-16 py-12"
1732
1727
  }, {
1733
- default: ne(() => [
1734
- w("div", null, [
1735
- w("p", $n, D(E.name || `Device ${E._id}`), 1),
1736
- w("p", zn, " Activation date: " + D(c(Et)(c(Ft)(E._id.toString())).format(
1728
+ default: oe(() => [
1729
+ y("div", null, [
1730
+ y("p", zn, k(E.name || `Device ${E._id}`), 1),
1731
+ y("p", Hn, " Activation date: " + k(u(At)(u(Rt)(E._id.toString())).format(
1737
1732
  "D MMM YYYY"
1738
1733
  )), 1),
1739
- w("p", Hn, " Linked location: " + D(c(r).locations.find((k) => k._id == E.location).name), 1)
1734
+ y("p", Kn, " Linked location: " + k(u(r).locations.find((R) => R._id == E.location).name), 1)
1740
1735
  ]),
1741
- I(z, {
1736
+ _(V, {
1742
1737
  icon: "link_off",
1743
1738
  variant: "tertiary",
1744
- onClick: (k) => P(E._id)
1739
+ onClick: (R) => P(E._id)
1745
1740
  }, null, 8, ["onClick"])
1746
1741
  ]),
1747
1742
  _: 2
1748
1743
  }, 1024))), 128))
1749
1744
  ]),
1750
- w("div", Kn, [
1751
- w("div", On, [
1752
- u[13] || (u[13] = te(" Advertisement ")),
1753
- I(ee, { variant: "premium" })
1745
+ y("div", On, [
1746
+ y("div", Yn, [
1747
+ c[14] || (c[14] = te(" Advertisement ")),
1748
+ _(ee, { variant: "premium" })
1754
1749
  ]),
1755
- I(ve, {
1756
- modelValue: c(f),
1757
- "onUpdate:modelValue": u[4] || (u[4] = (E) => We(f) ? f.value = E : null),
1750
+ _(Ce, {
1751
+ modelValue: u(f),
1752
+ "onUpdate:modelValue": c[4] || (c[4] = (E) => et(f) ? f.value = E : null),
1758
1753
  label: "Advertisement",
1759
1754
  sublabel: "This will be show on FeedMe ordering app",
1760
1755
  "label-placement": "right",
1761
- disabled: !c(r).isPremium,
1756
+ disabled: !u(r).isPremium,
1762
1757
  value: ""
1763
1758
  }, null, 8, ["modelValue", "disabled"]),
1764
- c(f) ? (x(), q("div", {
1759
+ u(f) ? (x(), q("div", {
1765
1760
  class: "flex items-center gap-8 flex-wrap xs:grid xs:grid-cols-2 xs:overflow-x-scroll xs:w-full",
1766
- key: c(b)
1761
+ key: u(b)
1767
1762
  }, [
1768
- (x(!0), q(ae, null, Ke(c(b), (E, T) => {
1769
- var k, J;
1770
- return x(), fe(Ye, {
1763
+ (x(!0), q(ue, null, Ye(u(b), (E, T) => {
1764
+ var R, J;
1765
+ return x(), me(It, {
1771
1766
  class: "w-[200px]",
1772
1767
  "image-fit": "cover",
1773
1768
  label: "",
1774
1769
  "aspect-ratio": "2/3",
1775
- thumbnail: (J = (k = c(s)) == null ? void 0 : k.advertisements) == null ? void 0 : J[T],
1770
+ thumbnail: (J = (R = u(s)) == null ? void 0 : R.advertisements) == null ? void 0 : J[T],
1776
1771
  accept: ".png, .jpg, .jpeg, .mp4, .gif",
1777
1772
  "recommended-size": "Recommended 4:5 ratio / 1080px x 1350px",
1778
- file: c(p)[T] ?? void 0,
1779
- "onUpdate:file": (le) => {
1780
- c(s).advertisements || (c(s).advertisements = []), le ? (c(s).advertisements[T] = "", c(p)[T] = le) : (c(s).advertisements.splice(T, 1), c(p).splice(T, 1));
1773
+ file: u(p)[T] ?? void 0,
1774
+ "onUpdate:file": (ce) => {
1775
+ u(s).advertisements || (u(s).advertisements = []), ce ? (u(s).advertisements[T] = "", u(p)[T] = ce) : (u(s).advertisements.splice(T, 1), u(p).splice(T, 1));
1781
1776
  }
1782
1777
  }, null, 8, ["thumbnail", "file", "onUpdate:file"]);
1783
1778
  }), 256))
1784
- ])) : ce("", !0)
1779
+ ])) : ne("", !0)
1785
1780
  ]),
1786
- w("div", Yn, [
1787
- u[14] || (u[14] = w("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
1788
- I(K, {
1789
- "model-value": ((ke = c(s)) == null ? void 0 : ke.brand) || "",
1781
+ y("div", jn, [
1782
+ c[15] || (c[15] = y("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
1783
+ _(H, {
1784
+ "model-value": ((Ve = u(s)) == null ? void 0 : Ve.brand) || "",
1790
1785
  "max-length": 15,
1791
1786
  label: "Brand Name",
1792
1787
  "show-word-count": "",
1793
- "helper-text": `RM 0 ${((De = c(s)) == null ? void 0 : De.brand) || ""}: YOUR CUSTOMER MESSAGE`,
1794
- "onUpdate:modelValue": u[5] || (u[5] = (E) => c(s).brand = E)
1788
+ "helper-text": `RM 0 ${((xe = u(s)) == null ? void 0 : xe.brand) || ""}: YOUR CUSTOMER MESSAGE`,
1789
+ "onUpdate:modelValue": c[5] || (c[5] = (E) => u(s).brand = E)
1795
1790
  }, null, 8, ["model-value", "helper-text"]),
1796
- I(Tt, {
1797
- modelValue: c(s).welcomeMessage,
1798
- "onUpdate:modelValue": u[6] || (u[6] = (E) => c(s).welcomeMessage = E),
1799
- variables: c(M),
1791
+ _(Ut, {
1792
+ modelValue: u(s).welcomeMessage,
1793
+ "onUpdate:modelValue": c[6] || (c[6] = (E) => u(s).welcomeMessage = E),
1794
+ variables: u(M),
1800
1795
  placeholder: "Hi there, you have been invited to join membership"
1801
1796
  }, null, 8, ["modelValue", "variables"])
1802
1797
  ]),
1803
- w("div", jn, [
1804
- u[15] || (u[15] = w("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
1805
- u[16] || (u[16] = w("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Email address that will be used to send email broadcast ", -1)),
1806
- c(m).length ? ce("", !0) : (x(), fe(z, {
1798
+ y("div", Jn, [
1799
+ c[16] || (c[16] = y("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
1800
+ c[17] || (c[17] = y("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Email address that will be used to send email broadcast ", -1)),
1801
+ u(m).length ? ne("", !0) : (x(), me(V, {
1807
1802
  key: 0,
1808
- onClick: F,
1803
+ onClick: L,
1809
1804
  label: "Add new email address"
1810
1805
  })),
1811
- c(m).length ? (x(), q(ae, { key: 1 }, [
1812
- I(vt, {
1813
- "model-value": ((xe = (Ve = c(s)) == null ? void 0 : Ve.email) == null ? void 0 : xe.from) || null,
1806
+ u(m).length ? (x(), q(ue, { key: 1 }, [
1807
+ _(Ct, {
1808
+ "model-value": ((ze = ($e = u(s)) == null ? void 0 : $e.email) == null ? void 0 : ze.from) || null,
1814
1809
  label: "From Address",
1815
- items: c(m).map((E) => ({
1810
+ items: u(m).map((E) => ({
1816
1811
  label: E.emailAddress,
1817
1812
  value: E.emailAddress
1818
1813
  })),
1819
- placeholder: c(B) ? c(B).emailAddress : "No email address available",
1820
- "onUpdate:modelValue": u[7] || (u[7] = (E) => {
1821
- var T, k;
1822
- (T = c(s)) != null && T.email || (c(s).email = {
1814
+ placeholder: u(B) ? u(B).emailAddress : "No email address available",
1815
+ "onUpdate:modelValue": c[7] || (c[7] = (E) => {
1816
+ var T, R;
1817
+ (T = u(s)) != null && T.email || (u(s).email = {
1823
1818
  from: E,
1824
- name: (k = c(m).find((J) => J.emailAddress == E)) == null ? void 0 : k.name
1825
- }), c(s).email.from = E || null;
1819
+ name: (R = u(m).find((J) => J.emailAddress == E)) == null ? void 0 : R.name
1820
+ }), u(s).email.from = E || null;
1826
1821
  }),
1827
- rules: [c(Oe).ruleAtPath(c(g), "email.from")]
1822
+ rules: [u(je).ruleAtPath(u(g), "email.from")]
1828
1823
  }, null, 8, ["model-value", "items", "placeholder", "rules"]),
1829
- I(K, {
1830
- "model-value": ((ze = ($e = c(s)) == null ? void 0 : $e.email) == null ? void 0 : ze.name) || null,
1824
+ _(H, {
1825
+ "model-value": ((Ke = (He = u(s)) == null ? void 0 : He.email) == null ? void 0 : Ke.name) || null,
1831
1826
  label: "Sender name",
1832
1827
  disabled: "",
1833
- placeholder: ((He = c(B)) == null ? void 0 : He.name) || null,
1834
- "onUpdate:modelValue": u[8] || (u[8] = (E) => {
1828
+ placeholder: ((Oe = u(B)) == null ? void 0 : Oe.name) || null,
1829
+ "onUpdate:modelValue": c[8] || (c[8] = (E) => {
1835
1830
  var T;
1836
- (T = c(s)) != null && T.email || (c(s).email = {
1831
+ (T = u(s)) != null && T.email || (u(s).email = {
1837
1832
  name: E
1838
- }), c(s).email.name = E || null;
1833
+ }), u(s).email.name = E || null;
1839
1834
  }),
1840
- rules: [c(Oe).ruleAtPath(c(g), "email.name")]
1835
+ rules: [u(je).ruleAtPath(u(g), "email.name")]
1841
1836
  }, null, 8, ["model-value", "placeholder", "rules"])
1842
- ], 64)) : ce("", !0)
1837
+ ], 64)) : ne("", !0)
1838
+ ]),
1839
+ y("div", qn, [
1840
+ c[18] || (c[18] = y("div", { class: "fm-typo-en-title-sm-800" }, "Whatsapp Channel", -1)),
1841
+ c[19] || (c[19] = y("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Whatsapp phone number that will be used to send whatsapp broadcast ", -1)),
1842
+ _(V, {
1843
+ label: "Manage Whatsapp Channel",
1844
+ icon: "open_in_new",
1845
+ onClick: c[9] || (c[9] = (E) => Y())
1846
+ })
1843
1847
  ]),
1844
- w("div", Jn, [
1845
- u[17] || (u[17] = w("div", { class: "fm-typo-en-title-sm-800" }, [
1848
+ y("div", Gn, [
1849
+ c[20] || (c[20] = y("div", { class: "fm-typo-en-title-sm-800" }, [
1846
1850
  te(" Free Credit as Discount "),
1847
- w("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
1851
+ y("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
1848
1852
  ], -1)),
1849
- I(ve, {
1850
- "model-value": c(s).freeCreditAsDiscount ?? !1,
1851
- "onUpdate:modelValue": u[9] || (u[9] = (E) => c(s).freeCreditAsDiscount = E),
1853
+ _(Ce, {
1854
+ "model-value": u(s).freeCreditAsDiscount ?? !1,
1855
+ "onUpdate:modelValue": c[10] || (c[10] = (E) => u(s).freeCreditAsDiscount = E),
1852
1856
  label: "Free Credit as Discount",
1853
1857
  sublabel: "When enabled, this will allow free credit to be used as discount in the bill (POS >=v6.56)",
1854
1858
  "label-placement": "right",
1855
1859
  value: ""
1856
1860
  }, null, 8, ["model-value"])
1857
1861
  ]),
1858
- w("div", qn, [
1859
- w("div", Gn, [
1860
- u[18] || (u[18] = te(" Member Card ")),
1861
- I(ee, { variant: "premium" })
1862
+ y("div", Qn, [
1863
+ y("div", Wn, [
1864
+ c[21] || (c[21] = te(" Member Card ")),
1865
+ _(ee, { variant: "premium" })
1862
1866
  ]),
1863
- I(ve, {
1864
- "model-value": c(s).cardEnable ?? !1,
1865
- "onUpdate:modelValue": u[10] || (u[10] = (E) => c(s).cardEnable = E),
1867
+ _(Ce, {
1868
+ "model-value": u(s).cardEnable ?? !1,
1869
+ "onUpdate:modelValue": c[11] || (c[11] = (E) => u(s).cardEnable = E),
1866
1870
  label: "",
1867
1871
  sublabel: "Allow member to bind card via member app",
1868
1872
  "label-placement": "right",
1869
1873
  value: "",
1870
- disabled: !c(r).isPremium
1874
+ disabled: !u(r).isPremium
1871
1875
  }, null, 8, ["model-value", "disabled"])
1872
1876
  ]),
1873
- w("div", Qn, [
1874
- u[19] || (u[19] = w("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1)),
1875
- I(It, {
1877
+ y("div", Xn, [
1878
+ c[22] || (c[22] = y("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1)),
1879
+ _(Tt, {
1876
1880
  label: "Select restaurant",
1877
- "model-value": c(s).targetLocation ?? null,
1878
- "onUpdate:modelValue": u[11] || (u[11] = (E) => c(s).targetLocation = E)
1881
+ "model-value": u(s).targetLocation ?? null,
1882
+ "onUpdate:modelValue": c[12] || (c[12] = (E) => u(s).targetLocation = E)
1879
1883
  }, null, 8, ["model-value"])
1880
1884
  ]),
1881
- w("div", Xn, [
1882
- I(z, {
1885
+ y("div", Zn, [
1886
+ _(V, {
1883
1887
  label: "Update",
1884
1888
  type: "button",
1885
- onClick: U,
1886
- disabled: !!c(e).loadingQueue.length,
1887
- loading: !!c(e).loadingQueue.length
1889
+ onClick: N,
1890
+ disabled: !!u(e).loadingQueue.length,
1891
+ loading: !!u(e).loadingQueue.length
1888
1892
  }, null, 8, ["disabled", "loading"])
1889
1893
  ])
1890
1894
  ])
1891
1895
  ]),
1892
- w("div", Zn, [
1893
- I(j, {
1896
+ y("div", eo, [
1897
+ _(j, {
1894
1898
  variant: "outlined",
1895
1899
  class: "flex flex-col p-24 gap-8"
1896
1900
  }, {
1897
- default: ne(() => {
1898
- var E, T, k;
1901
+ default: oe(() => {
1902
+ var E, T, R;
1899
1903
  return [
1900
- u[24] || (u[24] = w("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1)),
1901
- I(Ct, { class: "my-4" }),
1902
- w("div", null, [
1903
- u[20] || (u[20] = w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1)),
1904
- w("div", Wn, D(c(s).name), 1)
1904
+ c[27] || (c[27] = y("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1)),
1905
+ _(Et, { class: "my-4" }),
1906
+ y("div", null, [
1907
+ c[23] || (c[23] = y("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1)),
1908
+ y("div", to, k(u(s).name), 1)
1905
1909
  ]),
1906
- w("div", null, [
1907
- u[21] || (u[21] = w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1)),
1908
- w("div", eo, D((((E = c(s).advertisements) == null ? void 0 : E.length) ?? 0) || "No advertisments"), 1)
1910
+ y("div", null, [
1911
+ c[24] || (c[24] = y("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1)),
1912
+ y("div", no, k((((E = u(s).advertisements) == null ? void 0 : E.length) ?? 0) || "No advertisments"), 1)
1909
1913
  ]),
1910
- w("div", null, [
1911
- u[22] || (u[22] = w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1)),
1912
- w("div", to, D(c(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
1914
+ y("div", null, [
1915
+ c[25] || (c[25] = y("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1)),
1916
+ y("div", oo, k(u(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
1913
1917
  ]),
1914
- w("div", null, [
1915
- u[23] || (u[23] = w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1)),
1916
- w("div", no, D(!c(s).targetLocation || c(s).targetLocation.length == c(Se)().locations.length ? "All locations" : (k = (T = c(s)) == null ? void 0 : T.targetLocation) == null ? void 0 : k.map(
1917
- (J) => c(r).locations.find((le) => le._id == J).name
1918
+ y("div", null, [
1919
+ c[26] || (c[26] = y("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1)),
1920
+ y("div", ro, k(!u(s).targetLocation || u(s).targetLocation.length == u(Ie)().locations.length ? "All locations" : (R = (T = u(s)) == null ? void 0 : T.targetLocation) == null ? void 0 : R.map(
1921
+ (J) => u(r).locations.find((ce) => ce._id == J).name
1918
1922
  ).join(", ")), 1)
1919
1923
  ])
1920
1924
  ];
@@ -1922,11 +1926,11 @@ const Un = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
1922
1926
  _: 1
1923
1927
  })
1924
1928
  ])
1925
- ])) : ce("", !0)
1929
+ ])) : ne("", !0)
1926
1930
  ], 64);
1927
1931
  };
1928
1932
  }
1929
1933
  });
1930
1934
  export {
1931
- Bo as default
1935
+ So as default
1932
1936
  };