@mobileaction/action-kit 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/apple-logo-ff0ba2f9.mjs +21 -0
  2. package/dist/apple-logo-ff0ba2f9.mjs.map +1 -0
  3. package/dist/chevron-down-a5f20f24.mjs +23 -0
  4. package/dist/chevron-down-a5f20f24.mjs.map +1 -0
  5. package/dist/close-e94671b3.mjs +23 -0
  6. package/dist/close-e94671b3.mjs.map +1 -0
  7. package/dist/{src/components → components}/alert/index.vue.d.ts +1 -1
  8. package/dist/{src/components → components}/badge/index.vue.d.ts +4 -2
  9. package/dist/{src/components → components}/checkbox/group.vue.d.ts +4 -2
  10. package/dist/{src/components → components}/checkbox/index.vue.d.ts +4 -2
  11. package/dist/{src/components → components}/radio/group.vue.d.ts +1 -1
  12. package/dist/{src/components → components}/radio/index.vue.d.ts +5 -3
  13. package/dist/components/sandbox/index.vue.d.ts +3 -0
  14. package/dist/{src/components → components}/social-button/index.vue.d.ts +5 -3
  15. package/dist/google-logo-5b2d4f3f.mjs +18 -0
  16. package/dist/google-logo-5b2d4f3f.mjs.map +1 -0
  17. package/dist/index.d.ts +12 -0
  18. package/dist/index.es.js +319 -1515
  19. package/dist/index.es.js.map +1 -1
  20. package/dist/index.umd.js +1 -5
  21. package/dist/index.umd.js.map +1 -1
  22. package/dist/linkedin-logo-60afbdbd.mjs +31 -0
  23. package/dist/linkedin-logo-60afbdbd.mjs.map +1 -0
  24. package/dist/master-card-d3ac8324.mjs +18 -0
  25. package/dist/master-card-d3ac8324.mjs.map +1 -0
  26. package/dist/message-text-6c2c83cb.mjs +31 -0
  27. package/dist/message-text-6c2c83cb.mjs.map +1 -0
  28. package/dist/plus-f1ab5630.mjs +37 -0
  29. package/dist/plus-f1ab5630.mjs.map +1 -0
  30. package/dist/style.css +1 -1
  31. package/package.json +8 -6
  32. package/dist/src/components/base-button/index.vue.d.ts +0 -9
  33. package/dist/src/components/button/index.test.d.ts +0 -1
  34. package/dist/src/index.d.ts +0 -2
  35. package/dist/vite.config.d.ts +0 -2
  36. /package/dist/{src/components → components}/alert/stories/blue.stories.d.ts +0 -0
  37. /package/dist/{src/components → components}/alert/stories/constants.d.ts +0 -0
  38. /package/dist/{src/components → components}/alert/stories/dark.stories.d.ts +0 -0
  39. /package/dist/{src/components → components}/alert/stories/green.stories.d.ts +0 -0
  40. /package/dist/{src/components → components}/alert/stories/orange.stories.d.ts +0 -0
  41. /package/dist/{src/components → components}/alert/stories/red.stories.d.ts +0 -0
  42. /package/dist/{src/components → components}/alert/types.d.ts +0 -0
  43. /package/dist/{src/components → components}/avatar/index.vue.d.ts +0 -0
  44. /package/dist/{src/components → components}/badge/stories/blue.stories.d.ts +0 -0
  45. /package/dist/{src/components → components}/badge/stories/constants.d.ts +0 -0
  46. /package/dist/{src/components → components}/badge/stories/dark.stories.d.ts +0 -0
  47. /package/dist/{src/components → components}/badge/stories/green.stories.d.ts +0 -0
  48. /package/dist/{src/components → components}/badge/stories/orange.stories.d.ts +0 -0
  49. /package/dist/{src/components → components}/badge/stories/purple.stories.d.ts +0 -0
  50. /package/dist/{src/components → components}/badge/stories/red.stories.d.ts +0 -0
  51. /package/dist/{src/components → components}/badge/types.d.ts +0 -0
  52. /package/dist/{src/components → components}/button/index.vue.d.ts +0 -0
  53. /package/dist/{src/components → components}/button/stories/constants.d.ts +0 -0
  54. /package/dist/{src/components → components}/button/stories/danger.stories.d.ts +0 -0
  55. /package/dist/{src/components → components}/button/stories/dark.stories.d.ts +0 -0
  56. /package/dist/{src/components → components}/button/stories/icon.stories.d.ts +0 -0
  57. /package/dist/{src/components → components}/button/stories/info.stories.d.ts +0 -0
  58. /package/dist/{src/components → components}/button/stories/link.stories.d.ts +0 -0
  59. /package/dist/{src/components → components}/button/stories/plain.stories.d.ts +0 -0
  60. /package/dist/{src/components → components}/button/stories/success.stories.d.ts +0 -0
  61. /package/dist/{src/components → components}/button/stories/warning.stories.d.ts +0 -0
  62. /package/dist/{src/components → components}/button/types.d.ts +0 -0
  63. /package/dist/{src/components → components}/checkbox/stories/constants.d.ts +0 -0
  64. /package/dist/{src/components → components}/checkbox/stories/default.stories.d.ts +0 -0
  65. /package/dist/{src/components → components}/icon/index.vue.d.ts +0 -0
  66. /package/dist/{src/components → components}/icon/types.d.ts +0 -0
  67. /package/dist/{src/components → components}/input/constants.d.ts +0 -0
  68. /package/dist/{src/components → components}/input/index.vue.d.ts +0 -0
  69. /package/dist/{src/components → components}/input/stories/amount.stories.d.ts +0 -0
  70. /package/dist/{src/components → components}/input/stories/constants.d.ts +0 -0
  71. /package/dist/{src/components → components}/input/stories/credit-card.stories.d.ts +0 -0
  72. /package/dist/{src/components → components}/input/stories/default.stories.d.ts +0 -0
  73. /package/dist/{src/components → components}/input/stories/email.stories.d.ts +0 -0
  74. /package/dist/{src/components → components}/input/stories/textarea.stories.d.ts +0 -0
  75. /package/dist/{src/components → components}/input/stories/url.stories.d.ts +0 -0
  76. /package/dist/{src/components → components}/input/stories/user-info.stories.d.ts +0 -0
  77. /package/dist/{src/components → components}/input/types.d.ts +0 -0
  78. /package/dist/{src/components → components}/radio/stories/constants.d.ts +0 -0
  79. /package/dist/{src/components → components}/radio/stories/default.stories.d.ts +0 -0
  80. /package/dist/{src/components → components}/radio/types.d.ts +0 -0
  81. /package/dist/{src/components → components}/select/index.vue.d.ts +0 -0
  82. /package/dist/{src/components → components}/social-button/constants.d.ts +0 -0
  83. /package/dist/{src/components → components}/social-button/stories/apple.stories.d.ts +0 -0
  84. /package/dist/{src/components → components}/social-button/stories/constants.d.ts +0 -0
  85. /package/dist/{src/components → components}/social-button/stories/google.stories.d.ts +0 -0
  86. /package/dist/{src/components → components}/social-button/stories/linkedin.stories.d.ts +0 -0
  87. /package/dist/{src/components → components}/social-button/types.d.ts +0 -0
package/dist/index.es.js CHANGED
@@ -1,1537 +1,341 @@
1
- const Gt = {
2
- name: "BaseButton"
3
- };
4
- function Lt(e, t) {
5
- const n = /* @__PURE__ */ Object.create(null), s = e.split(",");
6
- for (let r = 0; r < s.length; r++)
7
- n[s[r]] = !0;
8
- return t ? (r) => !!n[r.toLowerCase()] : (r) => !!n[r];
9
- }
10
- function Te(e) {
11
- if (h(e)) {
12
- const t = {};
13
- for (let n = 0; n < e.length; n++) {
14
- const s = e[n], r = C(s) ? Zt(s) : Te(s);
15
- if (r)
16
- for (const o in r)
17
- t[o] = r[o];
18
- }
19
- return t;
20
- } else {
21
- if (C(e))
22
- return e;
23
- if (V(e))
24
- return e;
25
- }
26
- }
27
- const Yt = /;(?![^(]*\))/g, Qt = /:([^]+)/, Xt = /\/\*.*?\*\//gs;
28
- function Zt(e) {
29
- const t = {};
30
- return e.replace(Xt, "").split(Yt).forEach((n) => {
31
- if (n) {
32
- const s = n.split(Qt);
33
- s.length > 1 && (t[s[0].trim()] = s[1].trim());
34
- }
35
- }), t;
36
- }
37
- function Pe(e) {
38
- let t = "";
39
- if (C(e))
40
- t = e;
41
- else if (h(e))
42
- for (let n = 0; n < e.length; n++) {
43
- const s = Pe(e[n]);
44
- s && (t += s + " ");
45
- }
46
- else if (V(e))
47
- for (const n in e)
48
- e[n] && (t += n + " ");
49
- return t.trim();
50
- }
51
- const P = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, kt = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], ct = () => {
52
- }, en = /^on[^a-z]/, tn = (e) => en.test(e), v = Object.assign, nn = (e, t) => {
53
- const n = e.indexOf(t);
54
- n > -1 && e.splice(n, 1);
55
- }, rn = Object.prototype.hasOwnProperty, g = (e, t) => rn.call(e, t), h = Array.isArray, Y = (e) => Ee(e) === "[object Map]", sn = (e) => Ee(e) === "[object Set]", b = (e) => typeof e == "function", C = (e) => typeof e == "string", Me = (e) => typeof e == "symbol", V = (e) => e !== null && typeof e == "object", on = (e) => V(e) && b(e.then) && b(e.catch), cn = Object.prototype.toString, Ee = (e) => cn.call(e), lt = (e) => Ee(e).slice(8, -1), ln = (e) => Ee(e) === "[object Object]", Fe = (e) => C(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, un = (e) => {
56
- const t = /* @__PURE__ */ Object.create(null);
57
- return (n) => t[n] || (t[n] = e(n));
58
- }, an = un((e) => e.charAt(0).toUpperCase() + e.slice(1)), de = (e, t) => !Object.is(e, t), fn = (e, t, n) => {
59
- Object.defineProperty(e, t, {
60
- configurable: !0,
61
- enumerable: !1,
62
- value: n
63
- });
64
- };
65
- let Ge;
66
- const pn = () => Ge || (Ge = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
67
- function Le(e, ...t) {
68
- console.warn(`[Vue warn] ${e}`, ...t);
69
- }
70
- let ut;
71
- function dn(e, t = ut) {
72
- t && t.active && t.effects.push(e);
73
- }
74
- function hn() {
75
- return ut;
76
- }
77
- const Ve = (e) => {
78
- const t = new Set(e);
79
- return t.w = 0, t.n = 0, t;
80
- }, at = (e) => (e.w & z) > 0, ft = (e) => (e.n & z) > 0, _n = ({ deps: e }) => {
81
- if (e.length)
82
- for (let t = 0; t < e.length; t++)
83
- e[t].w |= z;
84
- }, gn = (e) => {
85
- const { deps: t } = e;
86
- if (t.length) {
87
- let n = 0;
88
- for (let s = 0; s < t.length; s++) {
89
- const r = t[s];
90
- at(r) && !ft(r) ? r.delete(e) : t[n++] = r, r.w &= ~z, r.n &= ~z;
91
- }
92
- t.length = n;
93
- }
94
- }, xe = /* @__PURE__ */ new WeakMap();
95
- let Z = 0, z = 1;
96
- const ye = 30;
97
- let O;
98
- const W = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), De = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
99
- class mn {
100
- constructor(t, n = null, s) {
101
- this.fn = t, this.scheduler = n, this.active = !0, this.deps = [], this.parent = void 0, dn(this, s);
102
- }
103
- run() {
104
- if (!this.active)
105
- return this.fn();
106
- let t = O, n = B;
107
- for (; t; ) {
108
- if (t === this)
109
- return;
110
- t = t.parent;
111
- }
112
- try {
113
- return this.parent = O, O = this, B = !0, z = 1 << ++Z, Z <= ye ? _n(this) : Ye(this), this.fn();
114
- } finally {
115
- Z <= ye && gn(this), z = 1 << --Z, O = this.parent, B = n, this.parent = void 0, this.deferStop && this.stop();
116
- }
117
- }
118
- stop() {
119
- O === this ? this.deferStop = !0 : this.active && (Ye(this), this.onStop && this.onStop(), this.active = !1);
120
- }
121
- }
122
- function Ye(e) {
123
- const { deps: t } = e;
124
- if (t.length) {
125
- for (let n = 0; n < t.length; n++)
126
- t[n].delete(e);
127
- t.length = 0;
128
- }
129
- }
130
- let B = !0;
131
- const pt = [];
132
- function dt() {
133
- pt.push(B), B = !1;
134
- }
135
- function ht() {
136
- const e = pt.pop();
137
- B = e === void 0 ? !0 : e;
138
- }
139
- function y(e, t, n) {
140
- if (B && O) {
141
- let s = xe.get(e);
142
- s || xe.set(e, s = /* @__PURE__ */ new Map());
143
- let r = s.get(n);
144
- r || s.set(n, r = Ve());
145
- const o = process.env.NODE_ENV !== "production" ? { effect: O, target: e, type: t, key: n } : void 0;
146
- En(r, o);
147
- }
148
- }
149
- function En(e, t) {
150
- let n = !1;
151
- Z <= ye ? ft(e) || (e.n |= z, n = !at(e)) : n = !e.has(O), n && (e.add(O), O.deps.push(e), process.env.NODE_ENV !== "production" && O.onTrack && O.onTrack(Object.assign({ effect: O }, t)));
152
- }
153
- function K(e, t, n, s, r, o) {
154
- const i = xe.get(e);
155
- if (!i)
156
- return;
157
- let c = [];
158
- if (t === "clear")
159
- c = [...i.values()];
160
- else if (n === "length" && h(e)) {
161
- const f = Number(s);
162
- i.forEach((d, l) => {
163
- (l === "length" || l >= f) && c.push(d);
164
- });
165
- } else
166
- switch (n !== void 0 && c.push(i.get(n)), t) {
167
- case "add":
168
- h(e) ? Fe(n) && c.push(i.get("length")) : (c.push(i.get(W)), Y(e) && c.push(i.get(De)));
169
- break;
170
- case "delete":
171
- h(e) || (c.push(i.get(W)), Y(e) && c.push(i.get(De)));
172
- break;
173
- case "set":
174
- Y(e) && c.push(i.get(W));
175
- break;
176
- }
177
- const u = process.env.NODE_ENV !== "production" ? { target: e, type: t, key: n, newValue: s, oldValue: r, oldTarget: o } : void 0;
178
- if (c.length === 1)
179
- c[0] && (process.env.NODE_ENV !== "production" ? re(c[0], u) : re(c[0]));
180
- else {
181
- const f = [];
182
- for (const d of c)
183
- d && f.push(...d);
184
- process.env.NODE_ENV !== "production" ? re(Ve(f), u) : re(Ve(f));
185
- }
186
- }
187
- function re(e, t) {
188
- const n = h(e) ? e : [...e];
189
- for (const s of n)
190
- s.computed && Qe(s, t);
191
- for (const s of n)
192
- s.computed || Qe(s, t);
193
- }
194
- function Qe(e, t) {
195
- (e !== O || e.allowRecurse) && (process.env.NODE_ENV !== "production" && e.onTrigger && e.onTrigger(v({ effect: e }, t)), e.scheduler ? e.scheduler() : e.run());
196
- }
197
- const wn = /* @__PURE__ */ Lt("__proto__,__v_isRef,__isVue"), _t = new Set(
198
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Me)
199
- ), Nn = /* @__PURE__ */ Ae(), bn = /* @__PURE__ */ Ae(!0), On = /* @__PURE__ */ Ae(!0, !0), Xe = /* @__PURE__ */ Sn();
200
- function Sn() {
201
- const e = {};
202
- return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
203
- e[t] = function(...n) {
204
- const s = p(this);
205
- for (let o = 0, i = this.length; o < i; o++)
206
- y(s, "get", o + "");
207
- const r = s[t](...n);
208
- return r === -1 || r === !1 ? s[t](...n.map(p)) : r;
209
- };
210
- }), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
211
- e[t] = function(...n) {
212
- dt();
213
- const s = p(this)[t].apply(this, n);
214
- return ht(), s;
215
- };
216
- }), e;
217
- }
218
- function Vn(e) {
219
- const t = p(this);
220
- return y(t, "has", e), t.hasOwnProperty(e);
221
- }
222
- function Ae(e = !1, t = !1) {
223
- return function(s, r, o) {
224
- if (r === "__v_isReactive")
225
- return !e;
226
- if (r === "__v_isReadonly")
227
- return e;
228
- if (r === "__v_isShallow")
229
- return t;
230
- if (r === "__v_raw" && o === (e ? t ? Nt : wt : t ? Kn : Et).get(s))
231
- return s;
232
- const i = h(s);
233
- if (!e) {
234
- if (i && g(Xe, r))
235
- return Reflect.get(Xe, r, o);
236
- if (r === "hasOwnProperty")
237
- return Vn;
238
- }
239
- const c = Reflect.get(s, r, o);
240
- return (Me(r) ? _t.has(r) : wn(r)) || (e || y(s, "get", r), t) ? c : S(c) ? i && Fe(r) ? c : c.value : V(c) ? e ? Ot(c) : bt(c) : c;
241
- };
242
- }
243
- const xn = /* @__PURE__ */ yn();
244
- function yn(e = !1) {
245
- return function(n, s, r, o) {
246
- let i = n[s];
247
- if (G(i) && S(i) && !S(r))
248
- return !1;
249
- if (!e && (!Ie(r) && !G(r) && (i = p(i), r = p(r)), !h(n) && S(i) && !S(r)))
250
- return i.value = r, !0;
251
- const c = h(n) && Fe(s) ? Number(s) < n.length : g(n, s), u = Reflect.set(n, s, r, o);
252
- return n === p(o) && (c ? de(r, i) && K(n, "set", s, r, i) : K(n, "add", s, r)), u;
253
- };
254
- }
255
- function Dn(e, t) {
256
- const n = g(e, t), s = e[t], r = Reflect.deleteProperty(e, t);
257
- return r && n && K(e, "delete", t, void 0, s), r;
258
- }
259
- function In(e, t) {
260
- const n = Reflect.has(e, t);
261
- return (!Me(t) || !_t.has(t)) && y(e, "has", t), n;
262
- }
263
- function Rn(e) {
264
- return y(e, "iterate", h(e) ? "length" : W), Reflect.ownKeys(e);
265
- }
266
- const $n = {
267
- get: Nn,
268
- set: xn,
269
- deleteProperty: Dn,
270
- has: In,
271
- ownKeys: Rn
272
- }, gt = {
273
- get: bn,
274
- set(e, t) {
275
- return process.env.NODE_ENV !== "production" && Le(`Set operation on key "${String(t)}" failed: target is readonly.`, e), !0;
1
+ import { defineComponent as o, computed as _, openBlock as n, createBlock as u, unref as a, normalizeClass as R, createSlots as v, renderList as h, withCtx as c, renderSlot as p, defineAsyncComponent as j, createElementBlock as m, resolveDynamicComponent as H, normalizeProps as E, guardReactiveProps as U, toDisplayString as w, createCommentVNode as y, createVNode as g, mergeProps as C, createTextVNode as L, createElementVNode as F } from "vue";
2
+ import { Button as A, Avatar as K, Select as Q, Input as W, Textarea as X, Radio as Z, RadioGroup as B, Alert as M } from "ant-design-vue";
3
+ var x = /* @__PURE__ */ ((e) => (e.primary = "primary", e.secondary = "secondary", e.link = "link", e.greylink = "grey-link", e))(x || {}), G = /* @__PURE__ */ ((e) => (e.dark = "dark", e.plain = "plain", e.info = "info", e.success = "success", e.warning = "warning", e.danger = "danger", e))(G || {}), D = /* @__PURE__ */ ((e) => (e.xsmall = "x-small", e.small = "small", e.medium = "medium", e.large = "large", e.xlarge = "x-large", e))(D || {});
4
+ const P = {
5
+ name: "MaButton"
6
+ }, ge = /* @__PURE__ */ o({
7
+ ...P,
8
+ props: {
9
+ type: { default: x.primary },
10
+ variant: { default: G.dark },
11
+ size: { default: D.small },
12
+ rounded: { type: Boolean },
13
+ href: null,
14
+ disabled: { type: Boolean },
15
+ loading: { type: Boolean }
276
16
  },
277
- deleteProperty(e, t) {
278
- return process.env.NODE_ENV !== "production" && Le(`Delete operation on key "${String(t)}" failed: target is readonly.`, e), !0;
279
- }
280
- }, vn = /* @__PURE__ */ v({}, gt, {
281
- get: On
282
- }), je = (e) => e, we = (e) => Reflect.getPrototypeOf(e);
283
- function se(e, t, n = !1, s = !1) {
284
- e = e.__v_raw;
285
- const r = p(e), o = p(t);
286
- n || (t !== o && y(r, "get", t), y(r, "get", o));
287
- const { has: i } = we(r), c = s ? je : n ? We : He;
288
- if (i.call(r, t))
289
- return c(e.get(t));
290
- if (i.call(r, o))
291
- return c(e.get(o));
292
- e !== r && e.get(t);
293
- }
294
- function oe(e, t = !1) {
295
- const n = this.__v_raw, s = p(n), r = p(e);
296
- return t || (e !== r && y(s, "has", e), y(s, "has", r)), e === r ? n.has(e) : n.has(e) || n.has(r);
297
- }
298
- function ie(e, t = !1) {
299
- return e = e.__v_raw, !t && y(p(e), "iterate", W), Reflect.get(e, "size", e);
300
- }
301
- function Ze(e) {
302
- e = p(e);
303
- const t = p(this);
304
- return we(t).has.call(t, e) || (t.add(e), K(t, "add", e, e)), this;
305
- }
306
- function ke(e, t) {
307
- t = p(t);
308
- const n = p(this), { has: s, get: r } = we(n);
309
- let o = s.call(n, e);
310
- o ? process.env.NODE_ENV !== "production" && mt(n, s, e) : (e = p(e), o = s.call(n, e));
311
- const i = r.call(n, e);
312
- return n.set(e, t), o ? de(t, i) && K(n, "set", e, t, i) : K(n, "add", e, t), this;
313
- }
314
- function et(e) {
315
- const t = p(this), { has: n, get: s } = we(t);
316
- let r = n.call(t, e);
317
- r ? process.env.NODE_ENV !== "production" && mt(t, n, e) : (e = p(e), r = n.call(t, e));
318
- const o = s ? s.call(t, e) : void 0, i = t.delete(e);
319
- return r && K(t, "delete", e, void 0, o), i;
320
- }
321
- function tt() {
322
- const e = p(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? Y(e) ? new Map(e) : new Set(e) : void 0, s = e.clear();
323
- return t && K(e, "clear", void 0, void 0, n), s;
324
- }
325
- function ce(e, t) {
326
- return function(s, r) {
327
- const o = this, i = o.__v_raw, c = p(i), u = t ? je : e ? We : He;
328
- return !e && y(c, "iterate", W), i.forEach((f, d) => s.call(r, u(f), u(d), o));
329
- };
330
- }
331
- function le(e, t, n) {
332
- return function(...s) {
333
- const r = this.__v_raw, o = p(r), i = Y(o), c = e === "entries" || e === Symbol.iterator && i, u = e === "keys" && i, f = r[e](...s), d = n ? je : t ? We : He;
334
- return !t && y(o, "iterate", u ? De : W), {
335
- // iterator protocol
336
- next() {
337
- const { value: l, done: a } = f.next();
338
- return a ? { value: l, done: a } : {
339
- value: c ? [d(l[0]), d(l[1])] : d(l),
340
- done: a
341
- };
342
- },
343
- // iterable protocol
344
- [Symbol.iterator]() {
345
- return this;
17
+ setup(e) {
18
+ const t = e, s = _(() => t.type === x.secondary ? "default" : t.type === x.greylink ? "link" : t.type), r = _(() => [
19
+ `ma-button ma-button--${t.variant} ma-button--${t.type} ma-button--${t.size}`,
20
+ {
21
+ "ma-button--rounded": t.rounded
346
22
  }
347
- };
348
- };
349
- }
350
- function F(e) {
351
- return function(...t) {
352
- if (process.env.NODE_ENV !== "production") {
353
- const n = t[0] ? `on key "${t[0]}" ` : "";
354
- console.warn(`${an(e)} operation ${n}failed: target is readonly.`, p(this));
355
- }
356
- return e === "delete" ? !1 : this;
357
- };
358
- }
359
- function Cn() {
360
- const e = {
361
- get(o) {
362
- return se(this, o);
363
- },
364
- get size() {
365
- return ie(this);
366
- },
367
- has: oe,
368
- add: Ze,
369
- set: ke,
370
- delete: et,
371
- clear: tt,
372
- forEach: ce(!1, !1)
373
- }, t = {
374
- get(o) {
375
- return se(this, o, !1, !0);
376
- },
377
- get size() {
378
- return ie(this);
379
- },
380
- has: oe,
381
- add: Ze,
382
- set: ke,
383
- delete: et,
384
- clear: tt,
385
- forEach: ce(!1, !0)
386
- }, n = {
387
- get(o) {
388
- return se(this, o, !0);
389
- },
390
- get size() {
391
- return ie(this, !0);
392
- },
393
- has(o) {
394
- return oe.call(this, o, !0);
395
- },
396
- add: F(
397
- "add"
398
- /* TriggerOpTypes.ADD */
399
- ),
400
- set: F(
401
- "set"
402
- /* TriggerOpTypes.SET */
403
- ),
404
- delete: F(
405
- "delete"
406
- /* TriggerOpTypes.DELETE */
407
- ),
408
- clear: F(
409
- "clear"
410
- /* TriggerOpTypes.CLEAR */
411
- ),
412
- forEach: ce(!0, !1)
413
- }, s = {
414
- get(o) {
415
- return se(this, o, !0, !0);
416
- },
417
- get size() {
418
- return ie(this, !0);
419
- },
420
- has(o) {
421
- return oe.call(this, o, !0);
422
- },
423
- add: F(
424
- "add"
425
- /* TriggerOpTypes.ADD */
426
- ),
427
- set: F(
428
- "set"
429
- /* TriggerOpTypes.SET */
430
- ),
431
- delete: F(
432
- "delete"
433
- /* TriggerOpTypes.DELETE */
434
- ),
435
- clear: F(
436
- "clear"
437
- /* TriggerOpTypes.CLEAR */
438
- ),
439
- forEach: ce(!0, !0)
440
- };
441
- return ["keys", "values", "entries", Symbol.iterator].forEach((o) => {
442
- e[o] = le(o, !1, !1), n[o] = le(o, !0, !1), t[o] = le(o, !1, !0), s[o] = le(o, !0, !0);
443
- }), [
444
- e,
445
- n,
446
- t,
447
- s
448
- ];
449
- }
450
- const [Tn, Pn, Mn, Fn] = /* @__PURE__ */ Cn();
451
- function ze(e, t) {
452
- const n = t ? e ? Fn : Mn : e ? Pn : Tn;
453
- return (s, r, o) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? s : Reflect.get(g(n, r) && r in s ? n : s, r, o);
454
- }
455
- const An = {
456
- get: /* @__PURE__ */ ze(!1, !1)
457
- }, jn = {
458
- get: /* @__PURE__ */ ze(!0, !1)
459
- }, zn = {
460
- get: /* @__PURE__ */ ze(!0, !0)
461
- };
462
- function mt(e, t, n) {
463
- const s = p(n);
464
- if (s !== n && t.call(e, s)) {
465
- const r = lt(e);
466
- console.warn(`Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`);
467
- }
468
- }
469
- const Et = /* @__PURE__ */ new WeakMap(), Kn = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap();
470
- function Hn(e) {
471
- switch (e) {
472
- case "Object":
473
- case "Array":
474
- return 1;
475
- case "Map":
476
- case "Set":
477
- case "WeakMap":
478
- case "WeakSet":
479
- return 2;
480
- default:
481
- return 0;
482
- }
483
- }
484
- function Wn(e) {
485
- return e.__v_skip || !Object.isExtensible(e) ? 0 : Hn(lt(e));
486
- }
487
- function bt(e) {
488
- return G(e) ? e : Ke(e, !1, $n, An, Et);
489
- }
490
- function Ot(e) {
491
- return Ke(e, !0, gt, jn, wt);
492
- }
493
- function ue(e) {
494
- return Ke(e, !0, vn, zn, Nt);
495
- }
496
- function Ke(e, t, n, s, r) {
497
- if (!V(e))
498
- return process.env.NODE_ENV !== "production" && console.warn(`value cannot be made reactive: ${String(e)}`), e;
499
- if (e.__v_raw && !(t && e.__v_isReactive))
500
- return e;
501
- const o = r.get(e);
502
- if (o)
503
- return o;
504
- const i = Wn(e);
505
- if (i === 0)
506
- return e;
507
- const c = new Proxy(e, i === 2 ? s : n);
508
- return r.set(e, c), c;
509
- }
510
- function U(e) {
511
- return G(e) ? U(e.__v_raw) : !!(e && e.__v_isReactive);
512
- }
513
- function G(e) {
514
- return !!(e && e.__v_isReadonly);
515
- }
516
- function Ie(e) {
517
- return !!(e && e.__v_isShallow);
518
- }
519
- function Re(e) {
520
- return U(e) || G(e);
521
- }
522
- function p(e) {
523
- const t = e && e.__v_raw;
524
- return t ? p(t) : e;
525
- }
526
- function Bn(e) {
527
- return fn(e, "__v_skip", !0), e;
528
- }
529
- const He = (e) => V(e) ? bt(e) : e, We = (e) => V(e) ? Ot(e) : e;
530
- function S(e) {
531
- return !!(e && e.__v_isRef === !0);
532
- }
533
- function Un(e) {
534
- return S(e) ? e.value : e;
535
- }
536
- const Jn = {
537
- get: (e, t, n) => Un(Reflect.get(e, t, n)),
538
- set: (e, t, n, s) => {
539
- const r = e[t];
540
- return S(r) && !S(n) ? (r.value = n, !0) : Reflect.set(e, t, n, s);
541
- }
542
- };
543
- function qn(e) {
544
- return U(e) ? e : new Proxy(e, Jn);
545
- }
546
- const J = [];
547
- function Gn(e) {
548
- J.push(e);
549
- }
550
- function Ln() {
551
- J.pop();
552
- }
553
- function w(e, ...t) {
554
- if (process.env.NODE_ENV === "production")
555
- return;
556
- dt();
557
- const n = J.length ? J[J.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = Yn();
558
- if (s)
559
- q(s, n, 11, [
560
- e + t.join(""),
561
- n && n.proxy,
562
- r.map(({ vnode: o }) => `at <${Bt(n, o.type)}>`).join(`
563
- `),
564
- r
565
23
  ]);
566
- else {
567
- const o = [`[Vue warn]: ${e}`, ...t];
568
- r.length && o.push(`
569
- `, ...Qn(r)), console.warn(...o);
570
- }
571
- ht();
572
- }
573
- function Yn() {
574
- let e = J[J.length - 1];
575
- if (!e)
576
- return [];
577
- const t = [];
578
- for (; e; ) {
579
- const n = t[0];
580
- n && n.vnode === e ? n.recurseCount++ : t.push({
581
- vnode: e,
582
- recurseCount: 0
583
- });
584
- const s = e.component && e.component.parent;
585
- e = s && s.vnode;
586
- }
587
- return t;
588
- }
589
- function Qn(e) {
590
- const t = [];
591
- return e.forEach((n, s) => {
592
- t.push(...s === 0 ? [] : [`
593
- `], ...Xn(n));
594
- }), t;
595
- }
596
- function Xn({ vnode: e, recurseCount: t }) {
597
- const n = t > 0 ? `... (${t} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, r = ` at <${Bt(e.component, e.type, s)}`, o = ">" + n;
598
- return e.props ? [r, ...Zn(e.props), o] : [r + o];
599
- }
600
- function Zn(e) {
601
- const t = [], n = Object.keys(e);
602
- return n.slice(0, 3).forEach((s) => {
603
- t.push(...St(s, e[s]));
604
- }), n.length > 3 && t.push(" ..."), t;
605
- }
606
- function St(e, t, n) {
607
- return C(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : S(t) ? (t = St(e, p(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : b(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = p(t), n ? t : [`${e}=`, t]);
608
- }
609
- const Vt = {
610
- sp: "serverPrefetch hook",
611
- bc: "beforeCreate hook",
612
- c: "created hook",
613
- bm: "beforeMount hook",
614
- m: "mounted hook",
615
- bu: "beforeUpdate hook",
616
- u: "updated",
617
- bum: "beforeUnmount hook",
618
- um: "unmounted hook",
619
- a: "activated hook",
620
- da: "deactivated hook",
621
- ec: "errorCaptured hook",
622
- rtc: "renderTracked hook",
623
- rtg: "renderTriggered hook",
624
- [
625
- 0
626
- /* ErrorCodes.SETUP_FUNCTION */
627
- ]: "setup function",
628
- [
629
- 1
630
- /* ErrorCodes.RENDER_FUNCTION */
631
- ]: "render function",
632
- [
633
- 2
634
- /* ErrorCodes.WATCH_GETTER */
635
- ]: "watcher getter",
636
- [
637
- 3
638
- /* ErrorCodes.WATCH_CALLBACK */
639
- ]: "watcher callback",
640
- [
641
- 4
642
- /* ErrorCodes.WATCH_CLEANUP */
643
- ]: "watcher cleanup function",
644
- [
645
- 5
646
- /* ErrorCodes.NATIVE_EVENT_HANDLER */
647
- ]: "native event handler",
648
- [
649
- 6
650
- /* ErrorCodes.COMPONENT_EVENT_HANDLER */
651
- ]: "component event handler",
652
- [
653
- 7
654
- /* ErrorCodes.VNODE_HOOK */
655
- ]: "vnode hook",
656
- [
657
- 8
658
- /* ErrorCodes.DIRECTIVE_HOOK */
659
- ]: "directive hook",
660
- [
661
- 9
662
- /* ErrorCodes.TRANSITION_HOOK */
663
- ]: "transition hook",
664
- [
665
- 10
666
- /* ErrorCodes.APP_ERROR_HANDLER */
667
- ]: "app errorHandler",
668
- [
669
- 11
670
- /* ErrorCodes.APP_WARN_HANDLER */
671
- ]: "app warnHandler",
672
- [
673
- 12
674
- /* ErrorCodes.FUNCTION_REF */
675
- ]: "ref function",
676
- [
677
- 13
678
- /* ErrorCodes.ASYNC_COMPONENT_LOADER */
679
- ]: "async component loader",
680
- [
681
- 14
682
- /* ErrorCodes.SCHEDULER */
683
- ]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
684
- };
685
- function q(e, t, n, s) {
686
- let r;
687
- try {
688
- r = s ? e(...s) : e();
689
- } catch (o) {
690
- xt(o, t, n);
691
- }
692
- return r;
693
- }
694
- function $e(e, t, n, s) {
695
- if (b(e)) {
696
- const o = q(e, t, n, s);
697
- return o && on(o) && o.catch((i) => {
698
- xt(i, t, n);
699
- }), o;
700
- }
701
- const r = [];
702
- for (let o = 0; o < e.length; o++)
703
- r.push($e(e[o], t, n, s));
704
- return r;
705
- }
706
- function xt(e, t, n, s = !0) {
707
- const r = t ? t.vnode : null;
708
- if (t) {
709
- let o = t.parent;
710
- const i = t.proxy, c = process.env.NODE_ENV !== "production" ? Vt[n] : n;
711
- for (; o; ) {
712
- const f = o.ec;
713
- if (f) {
714
- for (let d = 0; d < f.length; d++)
715
- if (f[d](e, i, c) === !1)
716
- return;
717
- }
718
- o = o.parent;
719
- }
720
- const u = t.appContext.config.errorHandler;
721
- if (u) {
722
- q(u, null, 10, [e, i, c]);
723
- return;
724
- }
725
- }
726
- kn(e, n, r, s);
727
- }
728
- function kn(e, t, n, s = !0) {
729
- if (process.env.NODE_ENV !== "production") {
730
- const r = Vt[t];
731
- if (n && Gn(n), w(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && Ln(), s)
732
- throw e;
733
- console.error(e);
734
- } else
735
- console.error(e);
736
- }
737
- let he = !1, ve = !1;
738
- const R = [];
739
- let j = 0;
740
- const Q = [];
741
- let T = null, A = 0;
742
- const yt = /* @__PURE__ */ Promise.resolve();
743
- let Be = null;
744
- const er = 100;
745
- function tr(e) {
746
- const t = Be || yt;
747
- return e ? t.then(this ? e.bind(this) : e) : t;
748
- }
749
- function nr(e) {
750
- let t = j + 1, n = R.length;
751
- for (; t < n; ) {
752
- const s = t + n >>> 1;
753
- te(R[s]) < e ? t = s + 1 : n = s;
754
- }
755
- return t;
756
- }
757
- function Ue(e) {
758
- (!R.length || !R.includes(e, he && e.allowRecurse ? j + 1 : j)) && (e.id == null ? R.push(e) : R.splice(nr(e.id), 0, e), Dt());
759
- }
760
- function Dt() {
761
- !he && !ve && (ve = !0, Be = yt.then(Rt));
762
- }
763
- function It(e) {
764
- h(e) ? Q.push(...e) : (!T || !T.includes(e, e.allowRecurse ? A + 1 : A)) && Q.push(e), Dt();
765
- }
766
- function rr(e) {
767
- if (Q.length) {
768
- const t = [...new Set(Q)];
769
- if (Q.length = 0, T) {
770
- T.push(...t);
771
- return;
772
- }
773
- for (T = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), T.sort((n, s) => te(n) - te(s)), A = 0; A < T.length; A++)
774
- process.env.NODE_ENV !== "production" && $t(e, T[A]) || T[A]();
775
- T = null, A = 0;
776
- }
777
- }
778
- const te = (e) => e.id == null ? 1 / 0 : e.id, sr = (e, t) => {
779
- const n = te(e) - te(t);
780
- if (n === 0) {
781
- if (e.pre && !t.pre)
782
- return -1;
783
- if (t.pre && !e.pre)
784
- return 1;
785
- }
786
- return n;
787
- };
788
- function Rt(e) {
789
- ve = !1, he = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), R.sort(sr);
790
- const t = process.env.NODE_ENV !== "production" ? (n) => $t(e, n) : ct;
791
- try {
792
- for (j = 0; j < R.length; j++) {
793
- const n = R[j];
794
- if (n && n.active !== !1) {
795
- if (process.env.NODE_ENV !== "production" && t(n))
796
- continue;
797
- q(
798
- n,
799
- null,
800
- 14
801
- /* ErrorCodes.SCHEDULER */
802
- );
803
- }
804
- }
805
- } finally {
806
- j = 0, R.length = 0, rr(e), he = !1, Be = null, (R.length || Q.length) && Rt(e);
807
- }
808
- }
809
- function $t(e, t) {
810
- if (!e.has(t))
811
- e.set(t, 1);
812
- else {
813
- const n = e.get(t);
814
- if (n > er) {
815
- const s = t.ownerInstance, r = s && Wt(s.type);
816
- return w(`Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`), !0;
817
- } else
818
- e.set(t, n + 1);
24
+ return (l, b) => (n(), u(a(A), {
25
+ class: R(a(r)),
26
+ type: a(s),
27
+ role: "button"
28
+ }, v({ _: 2 }, [
29
+ h(l.$slots, (i, $) => ({
30
+ name: $,
31
+ fn: c(() => [
32
+ p(l.$slots, $)
33
+ ])
34
+ }))
35
+ ]), 1032, ["class", "type"]));
819
36
  }
820
- }
821
- const X = /* @__PURE__ */ new Set();
822
- process.env.NODE_ENV !== "production" && (pn().__VUE_HMR_RUNTIME__ = {
823
- createRecord: be(or),
824
- rerender: be(ir),
825
- reload: be(cr)
826
37
  });
827
- const _e = /* @__PURE__ */ new Map();
828
- function or(e, t) {
829
- return _e.has(e) ? !1 : (_e.set(e, {
830
- initialDef: k(t),
831
- instances: /* @__PURE__ */ new Set()
832
- }), !0);
833
- }
834
- function k(e) {
835
- return Ut(e) ? e.__vccOpts : e;
836
- }
837
- function ir(e, t) {
838
- const n = _e.get(e);
839
- n && (n.initialDef.render = t, [...n.instances].forEach((s) => {
840
- t && (s.render = t, k(s.type).render = t), s.renderCache = [], s.update();
841
- }));
842
- }
843
- function cr(e, t) {
844
- const n = _e.get(e);
845
- if (!n)
846
- return;
847
- t = k(t), nt(n.initialDef, t);
848
- const s = [...n.instances];
849
- for (const r of s) {
850
- const o = k(r.type);
851
- X.has(o) || (o !== n.initialDef && nt(o, t), X.add(o)), r.appContext.optionsCache.delete(r.type), r.ceReload ? (X.add(o), r.ceReload(t.styles), X.delete(o)) : r.parent ? Ue(r.parent.update) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn("[HMR] Root or manually mounted instance modified. Full reload required.");
852
- }
853
- It(() => {
854
- for (const r of s)
855
- X.delete(k(r.type));
38
+ const V = (e, t) => {
39
+ const s = e[t];
40
+ return s ? typeof s == "function" ? s() : Promise.resolve(s) : new Promise((r, l) => {
41
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(l.bind(null, new Error("Unknown variable dynamic import: " + t)));
856
42
  });
857
- }
858
- function nt(e, t) {
859
- v(e, t);
860
- for (const n in e)
861
- n !== "__file" && !(n in t) && delete e[n];
862
- }
863
- function be(e) {
864
- return (t, n) => {
865
- try {
866
- return e(t, n);
867
- } catch (s) {
868
- console.error(s), console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.");
869
- }
870
- };
871
- }
872
- let I = null, lr = null;
873
- const ur = (e) => e.__isSuspense;
874
- function ar(e, t) {
875
- t && t.pendingBranch ? h(e) ? t.effects.push(...e) : t.effects.push(e) : It(e);
876
- }
877
- const ae = {};
878
- function fr(e, t, { immediate: n, deep: s, flush: r, onTrack: o, onTrigger: i } = P) {
879
- process.env.NODE_ENV !== "production" && !t && (n !== void 0 && w('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'), s !== void 0 && w('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));
880
- const c = (_) => {
881
- w("Invalid watch source: ", _, "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.");
882
- }, u = hn() === M?.scope ? M : null;
883
- let f, d = !1, l = !1;
884
- if (S(e) ? (f = () => e.value, d = Ie(e)) : U(e) ? (f = () => e, s = !0) : h(e) ? (l = !0, d = e.some((_) => U(_) || Ie(_)), f = () => e.map((_) => {
885
- if (S(_))
886
- return _.value;
887
- if (U(_))
888
- return L(_);
889
- if (b(_))
890
- return q(
891
- _,
892
- u,
893
- 2
894
- /* ErrorCodes.WATCH_GETTER */
895
- );
896
- process.env.NODE_ENV !== "production" && c(_);
897
- })) : b(e) ? t ? f = () => q(
898
- e,
899
- u,
900
- 2
901
- /* ErrorCodes.WATCH_GETTER */
902
- ) : f = () => {
903
- if (!(u && u.isUnmounted))
904
- return a && a(), $e(e, u, 3, [m]);
905
- } : (f = ct, process.env.NODE_ENV !== "production" && c(e)), t && s) {
906
- const _ = f;
907
- f = () => L(_());
908
- }
909
- let a, m = (_) => {
910
- a = D.onStop = () => {
911
- q(
912
- _,
913
- u,
914
- 4
915
- /* ErrorCodes.WATCH_CLEANUP */
916
- );
917
- };
918
- }, E = l ? new Array(e.length).fill(ae) : ae;
919
- const x = () => {
920
- if (D.active)
921
- if (t) {
922
- const _ = D.run();
923
- (s || d || (l ? _.some((Jt, qt) => de(Jt, E[qt])) : de(_, E))) && (a && a(), $e(t, u, 3, [
924
- _,
925
- // pass undefined as the old value when it's changed for the first time
926
- E === ae ? void 0 : l && E[0] === ae ? [] : E,
927
- m
928
- ]), E = _);
929
- } else
930
- D.run();
931
- };
932
- x.allowRecurse = !!t;
933
- let ne;
934
- r === "sync" ? ne = x : r === "post" ? ne = () => ot(x, u && u.suspense) : (x.pre = !0, u && (x.id = u.uid), ne = () => Ue(x));
935
- const D = new mn(f, ne);
936
- return process.env.NODE_ENV !== "production" && (D.onTrack = o, D.onTrigger = i), t ? n ? x() : E = D.run() : r === "post" ? ot(D.run.bind(D), u && u.suspense) : D.run(), () => {
937
- D.stop(), u && u.scope && nn(u.scope.effects, D);
938
- };
939
- }
940
- function pr(e, t, n) {
941
- const s = this.proxy, r = C(e) ? e.includes(".") ? dr(s, e) : () => s[e] : e.bind(s, s);
942
- let o;
943
- b(t) ? o = t : (o = t.handler, n = t);
944
- const i = M;
945
- it(this);
946
- const c = fr(r, o.bind(s), n);
947
- return i ? it(i) : vr(), c;
948
- }
949
- function dr(e, t) {
950
- const n = t.split(".");
951
- return () => {
952
- let s = e;
953
- for (let r = 0; r < n.length && s; r++)
954
- s = s[n[r]];
955
- return s;
956
- };
957
- }
958
- function L(e, t) {
959
- if (!V(e) || e.__v_skip || (t = t || /* @__PURE__ */ new Set(), t.has(e)))
960
- return e;
961
- if (t.add(e), S(e))
962
- L(e.value, t);
963
- else if (h(e))
964
- for (let n = 0; n < e.length; n++)
965
- L(e[n], t);
966
- else if (sn(e) || Y(e))
967
- e.forEach((n) => {
968
- L(n, t);
969
- });
970
- else if (ln(e))
971
- for (const n in e)
972
- L(e[n], t);
973
- return e;
974
- }
975
- const hr = (e) => !!e.type.__asyncLoader, _r = Symbol();
976
- function gr(e, t, n = {}, s, r) {
977
- if (I.isCE || I.parent && hr(I.parent) && I.parent.isCE)
978
- return t !== "default" && (n.name = t), Je("slot", n, s && s());
979
- let o = e[t];
980
- process.env.NODE_ENV !== "production" && o && o.length > 1 && (w("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."), o = () => []), o && o._c && (o._d = !1), Tt();
981
- const i = o && vt(o(n)), c = Dr(
982
- Ne,
983
- {
984
- key: n.key || // slot content array of a dynamic conditional slot may have a branch
985
- // key attached in the `createSlots` helper, respect that
986
- i && i.key || `_${t}`
987
- },
988
- i || (s ? s() : []),
989
- i && e._ === 1 ? 64 : -2
990
- /* PatchFlags.BAIL */
991
- );
992
- return !r && c.scopeId && (c.slotScopeIds = [c.scopeId + "-s"]), o && o._c && (o._d = !0), c;
993
- }
994
- function vt(e) {
995
- return e.some((t) => Mt(t) ? !(t.type === Ct || t.type === Ne && !vt(t.children)) : !0) ? e : null;
996
- }
997
- const Ce = (e) => e ? Cr(e) ? Tr(e) || e.proxy : Ce(e.parent) : null, ee = (
998
- // Move PURE marker to new line to workaround compiler discarding it
999
- // due to type annotation
1000
- /* @__PURE__ */ v(/* @__PURE__ */ Object.create(null), {
1001
- $: (e) => e,
1002
- $el: (e) => e.vnode.el,
1003
- $data: (e) => e.data,
1004
- $props: (e) => process.env.NODE_ENV !== "production" ? ue(e.props) : e.props,
1005
- $attrs: (e) => process.env.NODE_ENV !== "production" ? ue(e.attrs) : e.attrs,
1006
- $slots: (e) => process.env.NODE_ENV !== "production" ? ue(e.slots) : e.slots,
1007
- $refs: (e) => process.env.NODE_ENV !== "production" ? ue(e.refs) : e.refs,
1008
- $parent: (e) => Ce(e.parent),
1009
- $root: (e) => Ce(e.root),
1010
- $emit: (e) => e.emit,
1011
- $options: (e) => wr(e),
1012
- $forceUpdate: (e) => e.f || (e.f = () => Ue(e.update)),
1013
- $nextTick: (e) => e.n || (e.n = tr.bind(e.proxy)),
1014
- $watch: (e) => pr.bind(e)
1015
- })
1016
- ), mr = (e) => e === "_" || e === "$", Oe = (e, t) => e !== P && !e.__isScriptSetup && g(e, t), Er = {
1017
- get({ _: e }, t) {
1018
- const { ctx: n, setupState: s, data: r, props: o, accessCache: i, type: c, appContext: u } = e;
1019
- if (process.env.NODE_ENV !== "production" && t === "__isVue")
1020
- return !0;
1021
- let f;
1022
- if (t[0] !== "$") {
1023
- const m = i[t];
1024
- if (m !== void 0)
1025
- switch (m) {
1026
- case 1:
1027
- return s[t];
1028
- case 2:
1029
- return r[t];
1030
- case 4:
1031
- return n[t];
1032
- case 3:
1033
- return o[t];
1034
- }
1035
- else {
1036
- if (Oe(s, t))
1037
- return i[t] = 1, s[t];
1038
- if (r !== P && g(r, t))
1039
- return i[t] = 2, r[t];
1040
- if (
1041
- // only cache other properties when instance has declared (thus stable)
1042
- // props
1043
- (f = e.propsOptions[0]) && g(f, t)
1044
- )
1045
- return i[t] = 3, o[t];
1046
- if (n !== P && g(n, t))
1047
- return i[t] = 4, n[t];
1048
- i[t] = 0;
1049
- }
1050
- }
1051
- const d = ee[t];
1052
- let l, a;
1053
- if (d)
1054
- return t === "$attrs" && (y(e, "get", t), process.env.NODE_ENV !== "production" && void 0), d(e);
1055
- if (
1056
- // css module (injected by vue-loader)
1057
- (l = c.__cssModules) && (l = l[t])
1058
- )
1059
- return l;
1060
- if (n !== P && g(n, t))
1061
- return i[t] = 4, n[t];
1062
- if (
1063
- // global properties
1064
- a = u.config.globalProperties, g(a, t)
1065
- )
1066
- return a[t];
1067
- process.env.NODE_ENV !== "production" && I && (!C(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
1068
- // to infinite warning loop
1069
- t.indexOf("__v") !== 0) && (r !== P && mr(t[0]) && g(r, t) ? w(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`) : e === I && w(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`));
1070
- },
1071
- set({ _: e }, t, n) {
1072
- const { data: s, setupState: r, ctx: o } = e;
1073
- return Oe(r, t) ? (r[t] = n, !0) : process.env.NODE_ENV !== "production" && r.__isScriptSetup && g(r, t) ? (w(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : s !== P && g(s, t) ? (s[t] = n, !0) : g(e.props, t) ? (process.env.NODE_ENV !== "production" && w(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && w(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(o, t, {
1074
- enumerable: !0,
1075
- configurable: !0,
1076
- value: n
1077
- }) : o[t] = n, !0);
1078
- },
1079
- has({ _: { data: e, setupState: t, accessCache: n, ctx: s, appContext: r, propsOptions: o } }, i) {
1080
- let c;
1081
- return !!n[i] || e !== P && g(e, i) || Oe(t, i) || (c = o[0]) && g(c, i) || g(s, i) || g(ee, i) || g(r.config.globalProperties, i);
43
+ }, T = { class: "ma-icon" }, ee = {
44
+ name: "MaIcon"
45
+ }, k = /* @__PURE__ */ o({
46
+ ...ee,
47
+ props: {
48
+ name: null
1082
49
  },
1083
- defineProperty(e, t, n) {
1084
- return n.get != null ? e._.accessCache[t] = 0 : g(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
50
+ setup(e) {
51
+ const t = e, s = j(() => V(/* @__PURE__ */ Object.assign({ "./assets/apple-logo.svg": () => import("./apple-logo-ff0ba2f9.mjs"), "./assets/chevron-down.svg": () => import("./chevron-down-a5f20f24.mjs"), "./assets/close.svg": () => import("./close-e94671b3.mjs"), "./assets/google-logo.svg": () => import("./google-logo-5b2d4f3f.mjs"), "./assets/linkedin-logo.svg": () => import("./linkedin-logo-60afbdbd.mjs"), "./assets/master-card.svg": () => import("./master-card-d3ac8324.mjs"), "./assets/message-text.svg": () => import("./message-text-6c2c83cb.mjs"), "./assets/plus.svg": () => import("./plus-f1ab5630.mjs") }), `./assets/${t.name}.svg`));
52
+ return (r, l) => (n(), m("span", T, [
53
+ (n(), u(H(a(s))))
54
+ ]));
1085
55
  }
1086
- };
1087
- process.env.NODE_ENV !== "production" && (Er.ownKeys = (e) => (w("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."), Reflect.ownKeys(e)));
1088
- function wr(e) {
1089
- const t = e.type, { mixins: n, extends: s } = t, { mixins: r, optionsCache: o, config: { optionMergeStrategies: i } } = e.appContext, c = o.get(t);
1090
- let u;
1091
- return c ? u = c : !r.length && !n && !s ? u = t : (u = {}, r.length && r.forEach((f) => ge(u, f, i, !0)), ge(u, t, i)), V(t) && o.set(t, u), u;
1092
- }
1093
- function ge(e, t, n, s = !1) {
1094
- const { mixins: r, extends: o } = t;
1095
- o && ge(e, o, n, !0), r && r.forEach((i) => ge(e, i, n, !0));
1096
- for (const i in t)
1097
- if (s && i === "expose")
1098
- process.env.NODE_ENV !== "production" && w('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');
1099
- else {
1100
- const c = Nr[i] || n && n[i];
1101
- e[i] = c ? c(e[i], t[i]) : t[i];
1102
- }
1103
- return e;
1104
- }
1105
- const Nr = {
1106
- data: rt,
1107
- props: H,
1108
- emits: H,
1109
- // objects
1110
- methods: H,
1111
- computed: H,
1112
- // lifecycle
1113
- beforeCreate: N,
1114
- created: N,
1115
- beforeMount: N,
1116
- mounted: N,
1117
- beforeUpdate: N,
1118
- updated: N,
1119
- beforeDestroy: N,
1120
- beforeUnmount: N,
1121
- destroyed: N,
1122
- unmounted: N,
1123
- activated: N,
1124
- deactivated: N,
1125
- errorCaptured: N,
1126
- serverPrefetch: N,
1127
- // assets
1128
- components: H,
1129
- directives: H,
1130
- // watch
1131
- watch: Or,
1132
- // provide / inject
1133
- provide: rt,
1134
- inject: br
1135
- };
1136
- function rt(e, t) {
1137
- return t ? e ? function() {
1138
- return v(b(e) ? e.call(this, this) : e, b(t) ? t.call(this, this) : t);
1139
- } : t : e;
1140
- }
1141
- function br(e, t) {
1142
- return H(st(e), st(t));
1143
- }
1144
- function st(e) {
1145
- if (h(e)) {
1146
- const t = {};
1147
- for (let n = 0; n < e.length; n++)
1148
- t[e[n]] = e[n];
1149
- return t;
1150
- }
1151
- return e;
1152
- }
1153
- function N(e, t) {
1154
- return e ? [...new Set([].concat(e, t))] : t;
1155
- }
1156
- function H(e, t) {
1157
- return e ? v(v(/* @__PURE__ */ Object.create(null), e), t) : t;
1158
- }
1159
- function Or(e, t) {
1160
- if (!e)
1161
- return t;
1162
- if (!t)
1163
- return e;
1164
- const n = v(/* @__PURE__ */ Object.create(null), e);
1165
- for (const s in t)
1166
- n[s] = N(e[s], t[s]);
1167
- return n;
1168
- }
1169
- const ot = ar, Sr = (e) => e.__isTeleport, Ne = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : void 0), Vr = Symbol(process.env.NODE_ENV !== "production" ? "Text" : void 0), Ct = Symbol(process.env.NODE_ENV !== "production" ? "Comment" : void 0);
1170
- Symbol(process.env.NODE_ENV !== "production" ? "Static" : void 0);
1171
- const fe = [];
1172
- let $ = null;
1173
- function Tt(e = !1) {
1174
- fe.push($ = e ? null : []);
1175
- }
1176
- function xr() {
1177
- fe.pop(), $ = fe[fe.length - 1] || null;
1178
- }
1179
- function Pt(e) {
1180
- return e.dynamicChildren = $ || kt, xr(), $ && $.push(e), e;
1181
- }
1182
- function yr(e, t, n, s, r, o) {
1183
- return Pt(jt(
1184
- e,
1185
- t,
1186
- n,
1187
- s,
1188
- r,
1189
- o,
1190
- !0
1191
- /* isBlock */
1192
- ));
1193
- }
1194
- function Dr(e, t, n, s, r) {
1195
- return Pt(Je(
1196
- e,
1197
- t,
1198
- n,
1199
- s,
1200
- r,
1201
- !0
1202
- /* isBlock: prevent a block from tracking itself */
1203
- ));
1204
- }
1205
- function Mt(e) {
1206
- return e ? e.__v_isVNode === !0 : !1;
1207
- }
1208
- const Ir = (...e) => zt(...e), Ft = "__vInternal", At = ({ key: e }) => e ?? null, pe = ({ ref: e, ref_key: t, ref_for: n }) => e != null ? C(e) || S(e) || b(e) ? { i: I, r: e, k: t, f: !!n } : e : null;
1209
- function jt(e, t = null, n = null, s = 0, r = null, o = e === Ne ? 0 : 1, i = !1, c = !1) {
1210
- const u = {
1211
- __v_isVNode: !0,
1212
- __v_skip: !0,
1213
- type: e,
1214
- props: t,
1215
- key: t && At(t),
1216
- ref: t && pe(t),
1217
- scopeId: lr,
1218
- slotScopeIds: null,
1219
- children: n,
1220
- component: null,
1221
- suspense: null,
1222
- ssContent: null,
1223
- ssFallback: null,
1224
- dirs: null,
1225
- transition: null,
1226
- el: null,
1227
- anchor: null,
1228
- target: null,
1229
- targetAnchor: null,
1230
- staticCount: 0,
1231
- shapeFlag: o,
1232
- patchFlag: s,
1233
- dynamicProps: r,
1234
- dynamicChildren: null,
1235
- appContext: null,
1236
- ctx: I
1237
- };
1238
- return c ? (qe(u, n), o & 128 && e.normalize(u)) : n && (u.shapeFlag |= C(n) ? 8 : 16), process.env.NODE_ENV !== "production" && u.key !== u.key && w("VNode created with invalid key (NaN). VNode type:", u.type), // avoid a block node from tracking itself
1239
- !i && // has current parent block
1240
- $ && // presence of a patch flag indicates this node needs patching on updates.
1241
- // component nodes also should always be patched, because even if the
1242
- // component doesn't need to update, it needs to persist the instance on to
1243
- // the next vnode so that it can be properly unmounted later.
1244
- (u.patchFlag > 0 || o & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
1245
- // vnode should not be considered dynamic due to handler caching.
1246
- u.patchFlag !== 32 && $.push(u), u;
1247
- }
1248
- const Je = process.env.NODE_ENV !== "production" ? Ir : zt;
1249
- function zt(e, t = null, n = null, s = 0, r = null, o = !1) {
1250
- if ((!e || e === _r) && (process.env.NODE_ENV !== "production" && !e && w(`Invalid vnode type when creating vnode: ${e}.`), e = Ct), Mt(e)) {
1251
- const c = me(
1252
- e,
1253
- t,
1254
- !0
1255
- /* mergeRef: true */
1256
- );
1257
- return n && qe(c, n), !o && $ && (c.shapeFlag & 6 ? $[$.indexOf(e)] = c : $.push(c)), c.patchFlag |= -2, c;
1258
- }
1259
- if (Ut(e) && (e = e.__vccOpts), t) {
1260
- t = Rr(t);
1261
- let { class: c, style: u } = t;
1262
- c && !C(c) && (t.class = Pe(c)), V(u) && (Re(u) && !h(u) && (u = v({}, u)), t.style = Te(u));
1263
- }
1264
- const i = C(e) ? 1 : ur(e) ? 128 : Sr(e) ? 64 : V(e) ? 4 : b(e) ? 2 : 0;
1265
- return process.env.NODE_ENV !== "production" && i & 4 && Re(e) && (e = p(e), w("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.", `
1266
- Component that was made reactive: `, e)), jt(e, t, n, s, r, i, o, !0);
1267
- }
1268
- function Rr(e) {
1269
- return e ? Re(e) || Ft in e ? v({}, e) : e : null;
1270
- }
1271
- function me(e, t, n = !1) {
1272
- const { props: s, ref: r, patchFlag: o, children: i } = e, c = t ? $r(s || {}, t) : s;
1273
- return {
1274
- __v_isVNode: !0,
1275
- __v_skip: !0,
1276
- type: e.type,
1277
- props: c,
1278
- key: c && At(c),
1279
- ref: t && t.ref ? (
1280
- // #2078 in the case of <component :is="vnode" ref="extra"/>
1281
- // if the vnode itself already has a ref, cloneVNode will need to merge
1282
- // the refs so the single vnode can be set on multiple refs
1283
- n && r ? h(r) ? r.concat(pe(t)) : [r, pe(t)] : pe(t)
1284
- ) : r,
1285
- scopeId: e.scopeId,
1286
- slotScopeIds: e.slotScopeIds,
1287
- children: process.env.NODE_ENV !== "production" && o === -1 && h(i) ? i.map(Kt) : i,
1288
- target: e.target,
1289
- targetAnchor: e.targetAnchor,
1290
- staticCount: e.staticCount,
1291
- shapeFlag: e.shapeFlag,
1292
- // if the vnode is cloned with extra props, we can no longer assume its
1293
- // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1294
- // note: preserve flag for fragments since they use the flag for children
1295
- // fast paths only.
1296
- patchFlag: t && e.type !== Ne ? o === -1 ? 16 : o | 16 : o,
1297
- dynamicProps: e.dynamicProps,
1298
- dynamicChildren: e.dynamicChildren,
1299
- appContext: e.appContext,
1300
- dirs: e.dirs,
1301
- transition: e.transition,
1302
- // These should technically only be non-null on mounted VNodes. However,
1303
- // they *should* be copied for kept-alive vnodes. So we just always copy
1304
- // them since them being non-null during a mount doesn't affect the logic as
1305
- // they will simply be overwritten.
1306
- component: e.component,
1307
- suspense: e.suspense,
1308
- ssContent: e.ssContent && me(e.ssContent),
1309
- ssFallback: e.ssFallback && me(e.ssFallback),
1310
- el: e.el,
1311
- anchor: e.anchor,
1312
- ctx: e.ctx,
1313
- ce: e.ce
1314
- };
1315
- }
1316
- function Kt(e) {
1317
- const t = me(e);
1318
- return h(e.children) && (t.children = e.children.map(Kt)), t;
1319
- }
1320
- function Ht(e = " ", t = 0) {
1321
- return Je(Vr, null, e, t);
1322
- }
1323
- function qe(e, t) {
1324
- let n = 0;
1325
- const { shapeFlag: s } = e;
1326
- if (t == null)
1327
- t = null;
1328
- else if (h(t))
1329
- n = 16;
1330
- else if (typeof t == "object")
1331
- if (s & 65) {
1332
- const r = t.default;
1333
- r && (r._c && (r._d = !1), qe(e, r()), r._c && (r._d = !0));
1334
- return;
1335
- } else {
1336
- n = 32;
1337
- const r = t._;
1338
- !r && !(Ft in t) ? t._ctx = I : r === 3 && I && (I.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
1339
- }
1340
- else
1341
- b(t) ? (t = { default: t, _ctx: I }, n = 32) : (t = String(t), s & 64 ? (n = 16, t = [Ht(t)]) : n = 8);
1342
- e.children = t, e.shapeFlag |= n;
1343
- }
1344
- function $r(...e) {
1345
- const t = {};
1346
- for (let n = 0; n < e.length; n++) {
1347
- const s = e[n];
1348
- for (const r in s)
1349
- if (r === "class")
1350
- t.class !== s.class && (t.class = Pe([t.class, s.class]));
1351
- else if (r === "style")
1352
- t.style = Te([t.style, s.style]);
1353
- else if (tn(r)) {
1354
- const o = t[r], i = s[r];
1355
- i && o !== i && !(h(o) && o.includes(i)) && (t[r] = o ? [].concat(o, i) : i);
1356
- } else
1357
- r !== "" && (t[r] = s[r]);
56
+ });
57
+ const se = {
58
+ name: "MaAvatar"
59
+ }, te = /* @__PURE__ */ o({
60
+ ...se,
61
+ setup(e) {
62
+ return (t, s) => (n(), u(a(K), E(U(t.$attrs)), null, 16));
1358
63
  }
1359
- return t;
1360
- }
1361
- let M = null;
1362
- const it = (e) => {
1363
- M = e, e.scope.on();
1364
- }, vr = () => {
1365
- M && M.scope.off(), M = null;
1366
- };
1367
- function Cr(e) {
1368
- return e.vnode.shapeFlag & 4;
1369
- }
1370
- function Tr(e) {
1371
- if (e.exposed)
1372
- return e.exposeProxy || (e.exposeProxy = new Proxy(qn(Bn(e.exposed)), {
1373
- get(t, n) {
1374
- if (n in t)
1375
- return t[n];
1376
- if (n in ee)
1377
- return ee[n](e);
64
+ });
65
+ const ne = /* @__PURE__ */ o({
66
+ __name: "index",
67
+ setup(e) {
68
+ return o({
69
+ name: "MaSelect"
70
+ }), (t, s) => (n(), u(a(Q), E(U(t.$attrs)), v({ _: 2 }, [
71
+ h(t.$slots, (r, l) => ({
72
+ name: l,
73
+ fn: c(() => [
74
+ p(t.$slots, l)
75
+ ])
76
+ }))
77
+ ]), 1040));
78
+ }
79
+ }), ae = [
80
+ { label: "USD", value: "USD" },
81
+ { label: "EUR", value: "EUR" },
82
+ { label: "GBP", value: "GBP" },
83
+ { label: "JPY", value: "JPY" }
84
+ ];
85
+ var f = /* @__PURE__ */ ((e) => (e.text = "text", e.password = "password", e.textarea = "textarea", e.number = "number", e.email = "email", e.url = "url", e.tel = "tel", e.amount = "amount", e.creditCard = "creditCard", e.userInfo = "userInfo", e))(f || {}), I = /* @__PURE__ */ ((e) => (e.small = "small", e.medium = "medium", e.large = "large", e))(I || {});
86
+ const re = {
87
+ key: 0,
88
+ class: "ma-input__title"
89
+ }, le = {
90
+ key: 1,
91
+ class: "ma-input__wrapper"
92
+ }, oe = {
93
+ key: 2,
94
+ class: "ma-input__textarea-wrapper"
95
+ }, ue = {
96
+ key: 3,
97
+ class: "ma-input__hint-text"
98
+ }, ce = {
99
+ name: "MaInput"
100
+ }, he = /* @__PURE__ */ o({
101
+ ...ce,
102
+ props: {
103
+ type: { default: f.text },
104
+ size: { default: I.small },
105
+ title: null,
106
+ hintText: null,
107
+ hasError: { type: Boolean },
108
+ placeholder: null,
109
+ disabled: { type: Boolean },
110
+ addonBefore: null,
111
+ addonAfter: null,
112
+ avatarUrl: null,
113
+ modelValue: null,
114
+ amountCurrency: null,
115
+ amountCurrencySymbol: null,
116
+ hint: null
117
+ },
118
+ emits: ["change", "currency-change"],
119
+ setup(e, { emit: t }) {
120
+ const s = e, r = _(() => s.type === f.amount || s.type === f.creditCard ? "number" : s.type === f.userInfo ? "text" : s.type), l = _(() => [
121
+ `ma-input ma-input--${s.type} ma-input--${s.size}`,
122
+ {
123
+ "ma-input--has-error": s.hasError
1378
124
  },
1379
- has(t, n) {
1380
- return n in t || n in ee;
125
+ {
126
+ "ma-input--disabled": s.disabled
1381
127
  }
1382
- }));
1383
- }
1384
- const Pr = /(?:^|[-_])(\w)/g, Mr = (e) => e.replace(Pr, (t) => t.toUpperCase()).replace(/[-_]/g, "");
1385
- function Wt(e, t = !0) {
1386
- return b(e) ? e.displayName || e.name : e.name || t && e.__name;
1387
- }
1388
- function Bt(e, t, n = !1) {
1389
- let s = Wt(t);
1390
- if (!s && t.__file) {
1391
- const r = t.__file.match(/([^/\\]+)\.\w+$/);
1392
- r && (s = r[1]);
1393
- }
1394
- if (!s && e && e.parent) {
1395
- const r = (o) => {
1396
- for (const i in o)
1397
- if (o[i] === t)
1398
- return i;
128
+ ]), b = _(() => s.type === f.amount ? s.amountCurrencySymbol : void 0), i = _(() => {
129
+ let d = {
130
+ placeholder: s.placeholder,
131
+ disabled: s.disabled,
132
+ addonBefore: s.addonBefore || s.type === "url" ? "https://" : void 0,
133
+ addonAfter: s.addonAfter,
134
+ bordered: !1
135
+ };
136
+ return s.type !== "textarea" && (d = {
137
+ ...d,
138
+ prefix: b.value
139
+ }), d;
140
+ }), $ = (d) => {
141
+ t("change", d);
142
+ }, Y = (d) => {
143
+ t("currency-change", d);
1399
144
  };
1400
- s = r(e.components || e.parent.type.components) || r(e.appContext.components);
1401
- }
1402
- return s ? Mr(s) : n ? "App" : "Anonymous";
1403
- }
1404
- function Ut(e) {
1405
- return b(e) && "__vccOpts" in e;
1406
- }
1407
- Symbol(process.env.NODE_ENV !== "production" ? "ssrContext" : "");
1408
- function Se(e) {
1409
- return !!(e && e.__v_isShallow);
1410
- }
1411
- function Fr() {
1412
- if (process.env.NODE_ENV === "production" || typeof window > "u")
1413
- return;
1414
- const e = { style: "color:#3ba776" }, t = { style: "color:#0b1bc9" }, n = { style: "color:#b62e24" }, s = { style: "color:#9d288c" }, r = {
1415
- header(l) {
1416
- return V(l) ? l.__isVue ? ["div", e, "VueInstance"] : S(l) ? [
1417
- "div",
1418
- {},
1419
- ["span", e, d(l)],
1420
- "<",
1421
- c(l.value),
1422
- ">"
1423
- ] : U(l) ? [
1424
- "div",
1425
- {},
1426
- ["span", e, Se(l) ? "ShallowReactive" : "Reactive"],
1427
- "<",
1428
- c(l),
1429
- `>${G(l) ? " (readonly)" : ""}`
1430
- ] : G(l) ? [
1431
- "div",
1432
- {},
1433
- ["span", e, Se(l) ? "ShallowReadonly" : "Readonly"],
1434
- "<",
1435
- c(l),
1436
- ">"
1437
- ] : null : null;
1438
- },
1439
- hasBody(l) {
1440
- return l && l.__isVue;
1441
- },
1442
- body(l) {
1443
- if (l && l.__isVue)
1444
- return [
1445
- "div",
1446
- {},
1447
- ...o(l.$)
1448
- ];
1449
- }
1450
- };
1451
- function o(l) {
1452
- const a = [];
1453
- l.type.props && l.props && a.push(i("props", p(l.props))), l.setupState !== P && a.push(i("setup", l.setupState)), l.data !== P && a.push(i("data", p(l.data)));
1454
- const m = u(l, "computed");
1455
- m && a.push(i("computed", m));
1456
- const E = u(l, "inject");
1457
- return E && a.push(i("injected", E)), a.push([
1458
- "div",
1459
- {},
1460
- [
1461
- "span",
1462
- {
1463
- style: s.style + ";opacity:0.66"
1464
- },
1465
- "$ (internal): "
1466
- ],
1467
- ["object", { object: l }]
1468
- ]), a;
145
+ return (d, fe) => (n(), m("div", {
146
+ class: R(a(l))
147
+ }, [
148
+ p(d.$slots, "title"),
149
+ s.title ? (n(), m("div", re, w(s.title), 1)) : y("", !0),
150
+ s.type !== "textarea" ? (n(), m("div", le, [
151
+ g(a(W), C({
152
+ type: a(r),
153
+ value: s.modelValue
154
+ }, a(i), {
155
+ class: "ma-input__input",
156
+ onChange: $
157
+ }), v({
158
+ prefix: c(() => [
159
+ s.type === "email" ? (n(), u(k, {
160
+ key: 0,
161
+ name: "message-text"
162
+ })) : y("", !0),
163
+ s.type === "creditCard" ? (n(), u(k, {
164
+ key: 1,
165
+ name: "master-card"
166
+ })) : y("", !0),
167
+ s.type === "userInfo" ? (n(), u(te, {
168
+ key: 2,
169
+ size: 20,
170
+ src: s.avatarUrl,
171
+ disabled: s.disabled
172
+ }, null, 8, ["src", "disabled"])) : y("", !0)
173
+ ]),
174
+ _: 2
175
+ }, [
176
+ s.type === "amount" ? {
177
+ name: "suffix",
178
+ fn: c(() => [
179
+ s.type === "amount" ? (n(), u(ne, {
180
+ key: 0,
181
+ options: a(ae),
182
+ value: s.amountCurrency,
183
+ bordered: !1,
184
+ disabled: s.disabled,
185
+ size: "small",
186
+ onChange: Y
187
+ }, {
188
+ suffixIcon: c(() => [
189
+ g(k, { name: "chevron-down" })
190
+ ]),
191
+ _: 1
192
+ }, 8, ["options", "value", "disabled"])) : y("", !0)
193
+ ]),
194
+ key: "0"
195
+ } : void 0
196
+ ]), 1040, ["type", "value"])
197
+ ])) : (n(), m("div", oe, [
198
+ g(a(X), C({
199
+ value: s.modelValue
200
+ }, a(i), {
201
+ class: "ma-input__input",
202
+ onChange: $,
203
+ rows: 5
204
+ }), null, 16, ["value"])
205
+ ])),
206
+ p(d.$slots, "hint"),
207
+ s.hintText ? (n(), m("div", ue, w(s.hintText), 1)) : y("", !0)
208
+ ], 2));
1469
209
  }
1470
- function i(l, a) {
1471
- return a = v({}, a), Object.keys(a).length ? [
1472
- "div",
1473
- { style: "line-height:1.25em;margin-bottom:0.6em" },
1474
- [
1475
- "div",
1476
- {
1477
- style: "color:#476582"
1478
- },
1479
- l
1480
- ],
1481
- [
1482
- "div",
1483
- {
1484
- style: "padding-left:1.25em"
1485
- },
1486
- ...Object.keys(a).map((m) => [
1487
- "div",
1488
- {},
1489
- ["span", s, m + ": "],
1490
- c(a[m], !1)
210
+ });
211
+ var N = /* @__PURE__ */ ((e) => (e.button = "button", e.check = "check", e))(N || {});
212
+ const ie = {
213
+ name: "MaRadio",
214
+ emits: ["click"]
215
+ }, be = /* @__PURE__ */ o({
216
+ ...ie,
217
+ props: {
218
+ type: { default: N.button },
219
+ hint: null,
220
+ disabled: { type: Boolean }
221
+ },
222
+ setup(e) {
223
+ const t = e, s = _(() => [`ma-radio ma-radio--${t.type}`]);
224
+ return (r, l) => (n(), u(a(Z), C(r.$attrs, { class: a(s) }), v({ _: 2 }, [
225
+ h(r.$slots, (b, i) => ({
226
+ name: i,
227
+ fn: c(() => [
228
+ p(r.$slots, i),
229
+ t.hint ? (n(), m("div", {
230
+ key: i,
231
+ class: "ma-radio__hint-text"
232
+ }, w(t.hint), 1)) : y("", !0)
1491
233
  ])
1492
- ]
1493
- ] : ["span", {}];
234
+ }))
235
+ ]), 1040, ["class"]));
1494
236
  }
1495
- function c(l, a = !0) {
1496
- return typeof l == "number" ? ["span", t, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", s, l] : V(l) ? ["object", { object: a ? p(l) : l }] : ["span", n, String(l)];
237
+ });
238
+ const xe = /* @__PURE__ */ o({
239
+ __name: "group",
240
+ setup(e) {
241
+ return o({
242
+ name: "MaRadioGroup"
243
+ }), (t, s) => (n(), u(a(B), E(U(t.$attrs)), v({ _: 2 }, [
244
+ h(t.$slots, (r, l) => ({
245
+ name: l,
246
+ fn: c(() => [
247
+ p(t.$slots, l)
248
+ ])
249
+ }))
250
+ ]), 1040));
1497
251
  }
1498
- function u(l, a) {
1499
- const m = l.type;
1500
- if (b(m))
1501
- return;
1502
- const E = {};
1503
- for (const x in l.ctx)
1504
- f(m, x, a) && (E[x] = l.ctx[x]);
1505
- return E;
252
+ });
253
+ var S = /* @__PURE__ */ ((e) => (e.dark = "dark", e.blue = "blue", e.green = "green", e.orange = "orange", e.red = "red", e.purple = "purple", e))(S || {}), q = /* @__PURE__ */ ((e) => (e.primary = "primary", e.secondary = "secondary", e.line = "line", e.dashed = "dashed", e.icon = "icon", e))(q || {}), z = /* @__PURE__ */ ((e) => (e.small = "small", e.medium = "medium", e.large = "large", e))(z || {});
254
+ const de = {
255
+ name: "MaBadge",
256
+ emits: ["click"]
257
+ }, ke = /* @__PURE__ */ o({
258
+ ...de,
259
+ props: {
260
+ type: { default: q.primary },
261
+ variant: { default: S.dark },
262
+ size: { default: z.small }
263
+ },
264
+ setup(e) {
265
+ const t = e, s = _(() => [
266
+ `ma-badge ma-badge--${t.variant}--${t.type} ma-badge--${t.size}`
267
+ ]);
268
+ return (r, l) => (n(), m("div", {
269
+ class: R(a(s))
270
+ }, [
271
+ p(r.$slots, "default")
272
+ ], 2));
1506
273
  }
1507
- function f(l, a, m) {
1508
- const E = l[m];
1509
- if (h(E) && E.includes(a) || V(E) && a in E || l.extends && f(l.extends, a, m) || l.mixins && l.mixins.some((x) => f(x, a, m)))
1510
- return !0;
274
+ });
275
+ var J = /* @__PURE__ */ ((e) => (e.dark = "dark", e.blue = "blue", e.green = "green", e.orange = "orange", e.red = "red", e))(J || {}), O = /* @__PURE__ */ ((e) => (e.primary = "primary", e.secondary = "secondary", e))(O || {});
276
+ const me = {
277
+ name: "MaAlert"
278
+ }, Ce = /* @__PURE__ */ o({
279
+ ...me,
280
+ props: {
281
+ variant: { default: J.dark },
282
+ type: { default: O.primary },
283
+ message: null,
284
+ closable: { type: Boolean },
285
+ showIcon: { type: Boolean }
286
+ },
287
+ setup(e) {
288
+ const t = e, s = _(() => [`ma-alert ma-alert--${t.variant}--${t.type}`]);
289
+ return (r, l) => (n(), u(a(M), C(r.$attrs, {
290
+ class: a(s),
291
+ message: e.message,
292
+ closable: e.closable,
293
+ showIcon: e.showIcon
294
+ }), v({
295
+ closeIcon: c(() => [
296
+ g(k, { name: "close" })
297
+ ]),
298
+ message: c(() => [
299
+ p(r.$slots, "default")
300
+ ]),
301
+ _: 2
302
+ }, [
303
+ h(r.$slots, (b, i) => ({
304
+ name: i,
305
+ fn: c(() => [
306
+ p(r.$slots, i)
307
+ ])
308
+ }))
309
+ ]), 1040, ["class", "message", "closable", "showIcon"]));
1511
310
  }
1512
- function d(l) {
1513
- return Se(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
311
+ });
312
+ const _e = { class: "ma-sandbox" }, pe = /* @__PURE__ */ F("h1", null, "This is sandbox component!", -1), ye = {
313
+ name: "MaSandboxComponent"
314
+ }, we = /* @__PURE__ */ o({
315
+ ...ye,
316
+ setup(e) {
317
+ return (t, s) => (n(), m("div", _e, [
318
+ pe,
319
+ g(a(A), null, {
320
+ default: c(() => [
321
+ L("Add")
322
+ ]),
323
+ _: 1
324
+ })
325
+ ]));
1514
326
  }
1515
- window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
1516
- }
1517
- function Ar() {
1518
- Fr();
1519
- }
1520
- process.env.NODE_ENV !== "production" && Ar();
1521
- const jr = (e, t) => {
1522
- const n = e.__vccOpts || e;
1523
- for (const [s, r] of t)
1524
- n[s] = r;
1525
- return n;
1526
- }, zr = { class: "base-button" };
1527
- function Kr(e, t, n, s, r, o) {
1528
- return Tt(), yr("button", zr, [
1529
- Ht(" here base button/! "),
1530
- gr(e.$slots, "default")
1531
- ]);
1532
- }
1533
- const Wr = /* @__PURE__ */ jr(Gt, [["render", Kr]]);
327
+ });
1534
328
  export {
1535
- Wr as MaBaseButton
329
+ Ce as MaAlert,
330
+ te as MaAvatar,
331
+ ke as MaBadge,
332
+ ge as MaButton,
333
+ be as MaCheckbox,
334
+ xe as MaCheckboxGroup,
335
+ k as MaIcon,
336
+ he as MaInput,
337
+ be as MaRadio,
338
+ xe as MaRadioGroup,
339
+ we as MaSandbox
1536
340
  };
1537
341
  //# sourceMappingURL=index.es.js.map