@mozaic-ds/vue 1.0.0-beta.8 → 1.0.0-beta.9

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 (64) hide show
  1. package/README.md +1 -1
  2. package/dist/mozaic-vue.css +1 -1
  3. package/dist/mozaic-vue.d.ts +410 -198
  4. package/dist/mozaic-vue.js +1100 -777
  5. package/dist/mozaic-vue.js.map +1 -1
  6. package/dist/mozaic-vue.umd.cjs +1 -1
  7. package/dist/mozaic-vue.umd.cjs.map +1 -1
  8. package/package.json +8 -11
  9. package/src/components/Contributing.mdx +1 -1
  10. package/src/components/GettingStarted.mdx +2 -7
  11. package/src/components/Introduction.mdx +41 -21
  12. package/src/components/Support.mdx +1 -1
  13. package/src/components/breadcrumb/MBreadcrumb.stories.ts +11 -13
  14. package/src/components/breadcrumb/MBreadcrumb.vue +1 -1
  15. package/src/components/button/MButton.stories.ts +1 -8
  16. package/src/components/checkbox/MCheckbox.stories.ts +2 -2
  17. package/src/components/checkboxgroup/MCheckboxGroup.stories.ts +2 -2
  18. package/src/components/divider/MDivider.stories.ts +2 -2
  19. package/src/components/divider/MDivider.vue +2 -2
  20. package/src/components/drawer/MDrawer.spec.ts +100 -0
  21. package/src/components/drawer/MDrawer.stories.ts +128 -0
  22. package/src/components/drawer/MDrawer.vue +140 -0
  23. package/src/components/field/MField.stories.ts +2 -9
  24. package/src/components/fieldgroup/MFieldGroup.stories.ts +2 -9
  25. package/src/components/iconbutton/MIconButton.stories.ts +12 -4
  26. package/src/components/link/MLink.stories.ts +3 -12
  27. package/src/components/loader/MLoader.stories.ts +3 -5
  28. package/src/components/loader/MLoader.vue +1 -0
  29. package/src/components/loadingoverlay/MLoadingOverlay.spec.ts +37 -0
  30. package/src/components/loadingoverlay/MLoadingOverlay.stories.ts +40 -0
  31. package/src/components/loadingoverlay/MLoadingOverlay.vue +28 -0
  32. package/src/components/modal/MModal.spec.ts +103 -0
  33. package/src/components/modal/MModal.stories.ts +127 -0
  34. package/src/components/modal/MModal.vue +131 -0
  35. package/src/components/numberbadge/MNumberBadge.stories.ts +3 -5
  36. package/src/components/overlay/MOverlay.stories.ts +3 -8
  37. package/src/components/pagination/MPagination.stories.ts +3 -3
  38. package/src/components/pagination/MPagination.vue +5 -3
  39. package/src/components/passwordinput/MPasswordInput.stories.ts +2 -2
  40. package/src/components/passwordinput/MPasswordInput.vue +2 -5
  41. package/src/components/pincode/MPincode.spec.ts +126 -0
  42. package/src/components/pincode/MPincode.stories.ts +68 -0
  43. package/src/components/pincode/MPincode.vue +139 -0
  44. package/src/components/quantityselector/MQuantitySelector.stories.ts +2 -2
  45. package/src/components/radio/MRadio.stories.ts +2 -2
  46. package/src/components/radiogroup/MRadioGroup.stories.ts +2 -2
  47. package/src/components/select/MSelect.stories.ts +2 -2
  48. package/src/components/statusbadge/MStatusBadge.stories.ts +1 -1
  49. package/src/components/statusdot/MStatusDot.stories.ts +1 -1
  50. package/src/components/statusnotification/MStatusNotification.spec.ts +12 -8
  51. package/src/components/statusnotification/MStatusNotification.stories.ts +2 -9
  52. package/src/components/statusnotification/MStatusNotification.vue +8 -8
  53. package/src/components/tabs/MTabs.stories.ts +4 -4
  54. package/src/components/tabs/MTabs.vue +2 -2
  55. package/src/components/tabs/Mtabs.spec.ts +56 -61
  56. package/src/components/tag/MTag.stories.ts +2 -2
  57. package/src/components/tag/MTag.vue +1 -4
  58. package/src/components/textarea/MTextArea.stories.ts +2 -2
  59. package/src/components/textinput/MTextInput.stories.ts +2 -9
  60. package/src/components/toggle/MToggle.stories.ts +2 -2
  61. package/src/components/togglegroup/MToggleGroup.stories.ts +2 -2
  62. package/src/components/usingIcons.mdx +5 -13
  63. package/src/components/usingPresets.mdx +12 -9
  64. package/src/main.ts +4 -0
@@ -1,13 +1,13 @@
1
- import { defineComponent as y, computed as b, createBlock as C, openBlock as l, resolveDynamicComponent as j, normalizeClass as $, withCtx as M, createElementBlock as n, createCommentVNode as h, createElementVNode as i, renderSlot as V, Fragment as z, renderList as L, createVNode as g, createTextVNode as S, toDisplayString as f, normalizeStyle as U, mergeProps as k, ref as B, watch as O, withDirectives as D, vModelDynamic as F, vModelText as G } from "vue";
2
- const R = {
1
+ import { defineComponent as y, computed as b, createBlock as I, openBlock as l, resolveDynamicComponent as N, normalizeClass as g, withCtx as C, createElementBlock as n, createCommentVNode as h, createElementVNode as r, renderSlot as V, Fragment as O, renderList as S, createVNode as w, createTextVNode as D, toDisplayString as f, normalizeStyle as J, mergeProps as B, ref as L, watch as q, withKeys as A, withDirectives as K, vModelDynamic as X, nextTick as Y, vModelText as Z } from "vue";
2
+ const x = {
3
3
  key: 0,
4
4
  class: "mc-link__icon",
5
5
  "aria-hidden": "true"
6
- }, A = { class: "mc-link__label" }, H = {
6
+ }, ee = { class: "mc-link__label" }, ae = {
7
7
  key: 1,
8
8
  class: "mc-link__icon",
9
9
  "aria-hidden": "true"
10
- }, E = /* @__PURE__ */ y({
10
+ }, te = /* @__PURE__ */ y({
11
11
  __name: "MLink",
12
12
  props: {
13
13
  iconPosition: { default: "left" },
@@ -19,71 +19,71 @@ const R = {
19
19
  router: { type: Boolean }
20
20
  },
21
21
  setup(d) {
22
- const a = d, s = b(() => ({
23
- [`mc-link--${a.appearance}`]: a.appearance && a.appearance != "standard",
24
- [`mc-link--${a.size}`]: a.size && a.size != "s",
25
- "mc-link--inline": a.inline,
26
- "mc-link--stand-alone": !a.inline
22
+ const e = d, a = b(() => ({
23
+ [`mc-link--${e.appearance}`]: e.appearance && e.appearance != "standard",
24
+ [`mc-link--${e.size}`]: e.size && e.size != "s",
25
+ "mc-link--inline": e.inline,
26
+ "mc-link--stand-alone": !e.inline
27
27
  }));
28
- return (e, o) => (l(), C(j(e.router ? "router-link" : "a"), {
29
- class: $(["mc-link", s.value]),
30
- href: e.href,
31
- target: e.target,
32
- to: e.router ? e.href : void 0
28
+ return (t, o) => (l(), I(N(t.router ? "router-link" : "a"), {
29
+ class: g(["mc-link", a.value]),
30
+ href: t.href,
31
+ target: t.target,
32
+ to: t.router ? t.href : void 0
33
33
  }, {
34
- default: M(() => [
35
- e.$slots.icon && e.iconPosition == "left" ? (l(), n("span", R, [
36
- V(e.$slots, "icon", {}, void 0, !0)
34
+ default: C(() => [
35
+ t.$slots.icon && t.iconPosition == "left" ? (l(), n("span", x, [
36
+ V(t.$slots, "icon", {}, void 0, !0)
37
37
  ])) : h("", !0),
38
- i("span", A, [
39
- V(e.$slots, "default", {}, void 0, !0)
38
+ r("span", ee, [
39
+ V(t.$slots, "default", {}, void 0, !0)
40
40
  ]),
41
- e.$slots.icon && e.iconPosition == "right" ? (l(), n("span", H, [
42
- V(e.$slots, "icon", {}, void 0, !0)
41
+ t.$slots.icon && t.iconPosition == "right" ? (l(), n("span", ae, [
42
+ V(t.$slots, "icon", {}, void 0, !0)
43
43
  ])) : h("", !0)
44
44
  ]),
45
45
  _: 3
46
46
  }, 8, ["class", "href", "target", "to"]));
47
47
  }
48
- }), v = (d, a) => {
49
- const s = d.__vccOpts || d;
50
- for (const [e, o] of a)
51
- s[e] = o;
52
- return s;
53
- }, Q = /* @__PURE__ */ v(E, [["__scopeId", "data-v-df607c25"]]), W = { class: "mc-breadcrumb__container" }, J = /* @__PURE__ */ y({
48
+ }), _ = (d, e) => {
49
+ const a = d.__vccOpts || d;
50
+ for (const [t, o] of e)
51
+ a[t] = o;
52
+ return a;
53
+ }, se = /* @__PURE__ */ _(te, [["__scopeId", "data-v-df607c25"]]), le = { class: "mc-breadcrumb__container" }, oe = /* @__PURE__ */ y({
54
54
  __name: "MBreadcrumb",
55
55
  props: {
56
56
  appearance: {},
57
57
  links: {}
58
58
  },
59
59
  setup(d) {
60
- const a = d, s = b(() => ({
61
- [`mc-breadcrumb--${a.appearance}`]: a.appearance && a.appearance != "standard"
62
- })), e = (o) => {
63
- var t;
64
- return o === (((t = a.links) == null ? void 0 : t.length) ?? 0) - 1;
60
+ const e = d, a = b(() => ({
61
+ [`mc-breadcrumb--${e.appearance}`]: e.appearance && e.appearance != "standard"
62
+ })), t = (o) => {
63
+ var s;
64
+ return o === (((s = e.links) == null ? void 0 : s.length) ?? 0) - 1;
65
65
  };
66
- return (o, t) => (l(), n("nav", {
67
- class: $(["mc-breadcrumb", s.value]),
66
+ return (o, s) => (l(), n("nav", {
67
+ class: g(["mc-breadcrumb", a.value]),
68
68
  "aria-label": "Breadcrumb"
69
69
  }, [
70
- i("ul", W, [
71
- (l(!0), n(z, null, L(o.links, (c, u) => (l(), n("li", {
70
+ r("ul", le, [
71
+ (l(!0), n(O, null, S(o.links, (i, u) => (l(), n("li", {
72
72
  class: "mc-breadcrumb__item",
73
73
  key: `breadcrumb-${u}`
74
74
  }, [
75
- g(Q, {
76
- href: c.href,
77
- router: c.router,
75
+ w(se, {
76
+ href: i.href,
77
+ router: i.router,
78
78
  appearance: o.appearance,
79
79
  inline: "",
80
- class: $({
81
- "mc-breadcrumb__current": e(u)
80
+ class: g({
81
+ "mc-breadcrumb__current": t(u)
82
82
  }),
83
- "aria-current": e(u) ? "page" : void 0
83
+ "aria-current": t(u) ? "page" : void 0
84
84
  }, {
85
- default: M(() => [
86
- S(f(c.label), 1)
85
+ default: C(() => [
86
+ D(f(i.label), 1)
87
87
  ]),
88
88
  _: 2
89
89
  }, 1032, ["href", "router", "appearance", "class", "aria-current"])
@@ -91,11 +91,11 @@ const R = {
91
91
  ])
92
92
  ], 2));
93
93
  }
94
- }), Lt = /* @__PURE__ */ v(J, [["__scopeId", "data-v-09df4905"]]), K = { class: "mc-loader__spinner" }, X = ["viewBox"], Y = ["r"], x = {
94
+ }), _s = /* @__PURE__ */ _(oe, [["__scopeId", "data-v-41249412"]]), ne = { class: "mc-loader__spinner" }, ie = ["viewBox"], de = ["r"], re = {
95
95
  key: 0,
96
96
  class: "mc-loader__text",
97
97
  role: "status"
98
- }, ee = /* @__PURE__ */ y({
98
+ }, ce = /* @__PURE__ */ y({
99
99
  __name: "MLoader",
100
100
  props: {
101
101
  appearance: { default: "standard" },
@@ -103,71 +103,72 @@ const R = {
103
103
  text: {}
104
104
  },
105
105
  setup(d) {
106
- const a = d, s = b(() => ({
107
- [`mc-loader--${a.size}`]: a.size && a.size !== "m",
108
- [`mc-loader--${a.appearance}`]: a.appearance && a.appearance !== "standard"
109
- })), e = b(() => {
110
- let t;
111
- switch (a.size) {
106
+ const e = d, a = b(() => ({
107
+ [`mc-loader--${e.size}`]: e.size && e.size !== "m",
108
+ [`mc-loader--${e.appearance}`]: e.appearance && e.appearance !== "standard",
109
+ "mc-loader--text-visible": e.text
110
+ })), t = b(() => {
111
+ let s;
112
+ switch (e.size) {
112
113
  case "s":
113
- t = "0 0 24 24";
114
+ s = "0 0 24 24";
114
115
  break;
115
116
  case "l":
116
- t = "0 0 64 64";
117
+ s = "0 0 64 64";
117
118
  break;
118
119
  default:
119
- t = "0 0 32 32";
120
+ s = "0 0 32 32";
120
121
  }
121
- return t;
122
+ return s;
122
123
  }), o = b(() => {
123
- let t;
124
- switch (a.size) {
124
+ let s;
125
+ switch (e.size) {
125
126
  case "s":
126
- t = 6;
127
+ s = 6;
127
128
  break;
128
129
  case "l":
129
- t = 19;
130
+ s = 19;
130
131
  break;
131
132
  default:
132
- t = 9;
133
+ s = 9;
133
134
  }
134
- return t;
135
+ return s;
135
136
  });
136
- return (t, c) => (l(), n("div", {
137
- class: $(["mc-loader", s.value])
137
+ return (s, i) => (l(), n("div", {
138
+ class: g(["mc-loader", a.value])
138
139
  }, [
139
- i("span", K, [
140
+ r("span", ne, [
140
141
  (l(), n("svg", {
141
142
  class: "mc-loader__icon",
142
143
  xmlns: "http://www.w3.org/2000/svg",
143
- viewBox: e.value,
144
+ viewBox: t.value,
144
145
  "aria-hidden": "true"
145
146
  }, [
146
- i("circle", {
147
+ r("circle", {
147
148
  class: "mc-loader__path",
148
149
  cx: "50%",
149
150
  cy: "50%",
150
151
  r: o.value
151
- }, null, 8, Y)
152
- ], 8, X))
152
+ }, null, 8, de)
153
+ ], 8, ie))
153
154
  ]),
154
- t.text ? (l(), n("p", x, f(t.text), 1)) : h("", !0)
155
+ s.text ? (l(), n("p", re, f(s.text), 1)) : h("", !0)
155
156
  ], 2));
156
157
  }
157
- }), ae = /* @__PURE__ */ v(ee, [["__scopeId", "data-v-56c66912"]]), te = ["disabled", "type"], se = {
158
+ }), H = /* @__PURE__ */ _(ce, [["__scopeId", "data-v-998c550b"]]), ue = ["disabled", "type"], pe = {
158
159
  key: 0,
159
160
  class: "mc-button__icon"
160
- }, le = {
161
+ }, me = {
161
162
  key: 1,
162
163
  class: "mc-button__icon",
163
164
  style: { position: "absolute" }
164
- }, ne = {
165
+ }, _e = {
165
166
  key: 2,
166
167
  class: "mc-button__icon"
167
- }, oe = {
168
+ }, ve = {
168
169
  key: 4,
169
170
  class: "mc-button__icon"
170
- }, ie = /* @__PURE__ */ y({
171
+ }, be = /* @__PURE__ */ y({
171
172
  __name: "MButton",
172
173
  props: {
173
174
  appearance: { default: "standard" },
@@ -180,44 +181,44 @@ const R = {
180
181
  isLoading: { type: Boolean }
181
182
  },
182
183
  setup(d) {
183
- const a = d, s = b(() => ({
184
- [`mc-button--${a.appearance}`]: a.appearance && a.appearance != "standard",
185
- [`mc-button--${a.size}`]: a.size && a.size != "m",
186
- "mc-button--ghost": a.ghost,
187
- "mc-button--outlined": a.outlined,
188
- "mc-button--icon-only": a.iconPosition == "only"
184
+ const e = d, a = b(() => ({
185
+ [`mc-button--${e.appearance}`]: e.appearance && e.appearance != "standard",
186
+ [`mc-button--${e.size}`]: e.size && e.size != "m",
187
+ "mc-button--ghost": e.ghost,
188
+ "mc-button--outlined": e.outlined,
189
+ "mc-button--icon-only": e.iconPosition == "only"
189
190
  }));
190
- return (e, o) => (l(), n("button", {
191
- class: $(["mc-button", s.value]),
192
- disabled: e.disabled,
193
- type: e.type
191
+ return (t, o) => (l(), n("button", {
192
+ class: g(["mc-button", a.value]),
193
+ disabled: t.disabled,
194
+ type: t.type
194
195
  }, [
195
- e.$slots.icon && e.iconPosition == "left" && !e.isLoading ? (l(), n("span", se, [
196
- V(e.$slots, "icon", {}, void 0, !0)
196
+ t.$slots.icon && t.iconPosition == "left" && !t.isLoading ? (l(), n("span", pe, [
197
+ V(t.$slots, "icon", {}, void 0, !0)
197
198
  ])) : h("", !0),
198
- e.isLoading ? (l(), n("span", le, [
199
- g(ae, {
199
+ t.isLoading ? (l(), n("span", me, [
200
+ w(H, {
200
201
  style: { color: "currentColor" },
201
202
  size: "s"
202
203
  })
203
204
  ])) : h("", !0),
204
- e.$slots.icon && e.iconPosition == "only" ? (l(), n("span", ne, [
205
- V(e.$slots, "icon", {}, void 0, !0)
205
+ t.$slots.icon && t.iconPosition == "only" ? (l(), n("span", _e, [
206
+ V(t.$slots, "icon", {}, void 0, !0)
206
207
  ])) : (l(), n("span", {
207
208
  key: 3,
208
209
  class: "mc-button__label",
209
- style: U({ visibility: e.isLoading ? "hidden" : "visible" })
210
+ style: J({ visibility: t.isLoading ? "hidden" : "visible" })
210
211
  }, [
211
- V(e.$slots, "default", {}, () => [
212
- o[0] || (o[0] = S("Button Label"))
212
+ V(t.$slots, "default", {}, () => [
213
+ o[0] || (o[0] = D("Button Label"))
213
214
  ], !0)
214
215
  ], 4)),
215
- e.$slots.icon && e.iconPosition == "right" && !e.isLoading ? (l(), n("span", oe, [
216
- V(e.$slots, "icon", {}, void 0, !0)
216
+ t.$slots.icon && t.iconPosition == "right" && !t.isLoading ? (l(), n("span", ve, [
217
+ V(t.$slots, "icon", {}, void 0, !0)
217
218
  ])) : h("", !0)
218
- ], 10, te));
219
+ ], 10, ue));
219
220
  }
220
- }), T = /* @__PURE__ */ v(ie, [["__scopeId", "data-v-f4f43ab6"]]), de = { class: "mc-checkbox" }, re = ["id", "name", "checked", "indeterminate", "disabled", "aria-invalid"], ce = ["for"], ue = /* @__PURE__ */ y({
221
+ }), F = /* @__PURE__ */ _(be, [["__scopeId", "data-v-f4f43ab6"]]), fe = { class: "mc-checkbox" }, he = ["id", "name", "checked", "indeterminate", "disabled", "aria-invalid"], $e = ["for"], ye = /* @__PURE__ */ y({
221
222
  __name: "MCheckbox",
222
223
  props: {
223
224
  id: {},
@@ -229,31 +230,31 @@ const R = {
229
230
  disabled: { type: Boolean }
230
231
  },
231
232
  emits: ["update:modelValue"],
232
- setup(d, { emit: a }) {
233
- const s = d, e = b(() => ({
234
- "is-invalid": s.isInvalid
235
- })), o = a;
236
- return (t, c) => (l(), n("div", de, [
237
- i("input", k({
238
- id: t.id,
233
+ setup(d, { emit: e }) {
234
+ const a = d, t = b(() => ({
235
+ "is-invalid": a.isInvalid
236
+ })), o = e;
237
+ return (s, i) => (l(), n("div", fe, [
238
+ r("input", B({
239
+ id: s.id,
239
240
  type: "checkbox",
240
- class: ["mc-checkbox__input", e.value],
241
- name: t.name,
242
- checked: t.modelValue,
243
- indeterminate: t.indeterminate,
244
- disabled: t.disabled,
245
- "aria-invalid": t.isInvalid
246
- }, t.$attrs, {
247
- onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.checked))
248
- }), null, 16, re),
249
- t.label ? (l(), n("label", {
241
+ class: ["mc-checkbox__input", t.value],
242
+ name: s.name,
243
+ checked: s.modelValue,
244
+ indeterminate: s.indeterminate,
245
+ disabled: s.disabled,
246
+ "aria-invalid": s.isInvalid
247
+ }, s.$attrs, {
248
+ onChange: i[0] || (i[0] = (u) => o("update:modelValue", u.target.checked))
249
+ }), null, 16, he),
250
+ s.label ? (l(), n("label", {
250
251
  key: 0,
251
- for: t.id,
252
+ for: s.id,
252
253
  class: "mc-checkbox__label"
253
- }, f(t.label), 9, ce)) : h("", !0)
254
+ }, f(s.label), 9, $e)) : h("", !0)
254
255
  ]));
255
256
  }
256
- }), pe = /* @__PURE__ */ v(ue, [["__scopeId", "data-v-37fd0a35"]]), me = /* @__PURE__ */ y({
257
+ }), ge = /* @__PURE__ */ _(ye, [["__scopeId", "data-v-37fd0a35"]]), ke = /* @__PURE__ */ y({
257
258
  __name: "MCheckboxGroup",
258
259
  props: {
259
260
  name: {},
@@ -262,40 +263,40 @@ const R = {
262
263
  inline: { type: Boolean }
263
264
  },
264
265
  emits: ["update:modelValue"],
265
- setup(d, { emit: a }) {
266
- const s = d, e = B([]);
267
- O(
268
- () => s.modelValue,
266
+ setup(d, { emit: e }) {
267
+ const a = d, t = L([]);
268
+ q(
269
+ () => a.modelValue,
269
270
  (p) => {
270
- e.value = p || [];
271
+ t.value = p || [];
271
272
  },
272
273
  { immediate: !0 }
273
274
  );
274
275
  const o = (p, m) => {
275
- let r = [...e.value];
276
- p && !r.includes(m) ? r.push(m) : r = r.filter((_) => _ !== m), u("update:modelValue", r), e.value = r;
277
- }, t = b(() => ({
278
- "mc-field__container--inline": s.inline
279
- })), c = b(() => ({
280
- "mc-field__container--inline__item": s.inline
281
- })), u = a;
276
+ let c = [...t.value];
277
+ p && !c.includes(m) ? c.push(m) : c = c.filter((v) => v !== m), u("update:modelValue", c), t.value = c;
278
+ }, s = b(() => ({
279
+ "mc-field__container--inline": a.inline
280
+ })), i = b(() => ({
281
+ "mc-field__container--inline__item": a.inline
282
+ })), u = e;
282
283
  return (p, m) => (l(), n("div", {
283
- class: $(["mc-field__container", t.value])
284
+ class: g(["mc-field__container", s.value])
284
285
  }, [
285
- (l(!0), n(z, null, L(p.options, (r) => (l(), C(pe, {
286
- id: r.id,
287
- key: r.id,
288
- label: r.label,
289
- "is-invalid": r.isInvalid,
286
+ (l(!0), n(O, null, S(p.options, (c) => (l(), I(ge, {
287
+ id: c.id,
288
+ key: c.id,
289
+ label: c.label,
290
+ "is-invalid": c.isInvalid,
290
291
  name: p.name,
291
- class: $(["mc-field__item", c.value]),
292
- "model-value": p.modelValue ? p.modelValue.includes(r.value) : void 0,
293
- disabled: r.disabled,
294
- "onUpdate:modelValue": (_) => o(_, r.value)
292
+ class: g(["mc-field__item", i.value]),
293
+ "model-value": p.modelValue ? p.modelValue.includes(c.value) : void 0,
294
+ disabled: c.disabled,
295
+ "onUpdate:modelValue": (v) => o(v, c.value)
295
296
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
296
297
  ], 2));
297
298
  }
298
- }), St = /* @__PURE__ */ v(me, [["__scopeId", "data-v-8ee4699f"]]), _e = { class: "mc-divider" }, ve = /* @__PURE__ */ y({
299
+ }), vs = /* @__PURE__ */ _(ke, [["__scopeId", "data-v-8ee4699f"]]), we = { class: "mc-divider" }, Ve = /* @__PURE__ */ y({
299
300
  __name: "MDivider",
300
301
  props: {
301
302
  orientation: { default: "horizontal" },
@@ -303,22 +304,220 @@ const R = {
303
304
  size: { default: "s" }
304
305
  },
305
306
  setup(d) {
306
- const a = d, s = b(() => ({
307
- [`mc-divider-${a.orientation}`]: a.orientation,
308
- [`mc-divider-horizontal--${a.style}`]: a.style && a.style != "primary",
309
- [`mc-divider-horizontal--${a.size}`]: a.size && a.size != "s"
307
+ const e = d, a = b(() => ({
308
+ [`mc-divider-${e.orientation}`]: e.orientation,
309
+ [`mc-divider-horizontal--${e.style}`]: e.style && e.style != "primary",
310
+ [`mc-divider-horizontal--${e.size}`]: e.size && e.size != "s"
310
311
  }));
311
- return (e, o) => (l(), n("div", _e, [
312
- i("div", {
313
- class: $(s.value)
312
+ return (t, o) => (l(), n("div", we, [
313
+ r("div", {
314
+ class: g(a.value)
314
315
  }, null, 2),
315
- V(e.$slots, "default", {}, void 0, !0)
316
+ V(t.$slots, "default", {}, void 0, !0)
316
317
  ]));
317
318
  }
318
- }), be = /* @__PURE__ */ v(ve, [["__scopeId", "data-v-b2b223a3"]]), fe = { class: "mc-field" }, he = ["for"], $e = {
319
+ }), Be = /* @__PURE__ */ _(Ve, [["__scopeId", "data-v-f8e160af"]]), Ie = {
320
+ name: "ArrowBack24",
321
+ props: {
322
+ /**
323
+ * Icon color
324
+ */
325
+ color: {
326
+ type: String,
327
+ default: "currentColor"
328
+ }
329
+ }
330
+ }, Ce = ["fill"];
331
+ function Me(d, e, a, t, o, s) {
332
+ return l(), n("svg", {
333
+ "aria-hidden": "true",
334
+ fill: a.color,
335
+ xmlns: "http://www.w3.org/2000/svg",
336
+ viewBox: "0 0 24 24",
337
+ width: "24",
338
+ height: "24"
339
+ }, e[0] || (e[0] = [
340
+ r("path", {
341
+ "fill-rule": "evenodd",
342
+ d: "M8.707 6.293a1 1 0 0 1 0 1.414L5.414 11H21a1 1 0 1 1 0 2H5.414l3.293 3.293a1 1 0 1 1-1.414 1.414l-5-5a1 1 0 0 1 0-1.414l5-5a1 1 0 0 1 1.414 0"
343
+ }, null, -1)
344
+ ]), 8, Ce);
345
+ }
346
+ const ze = /* @__PURE__ */ _(Ie, [["render", Me]]), Le = {
347
+ name: "Cross24",
348
+ props: {
349
+ /**
350
+ * Icon color
351
+ */
352
+ color: {
353
+ type: String,
354
+ default: "currentColor"
355
+ }
356
+ }
357
+ }, Te = ["fill"];
358
+ function je(d, e, a, t, o, s) {
359
+ return l(), n("svg", {
360
+ "aria-hidden": "true",
361
+ fill: a.color,
362
+ xmlns: "http://www.w3.org/2000/svg",
363
+ viewBox: "0 0 24 24",
364
+ width: "24",
365
+ height: "24"
366
+ }, e[0] || (e[0] = [
367
+ r("path", {
368
+ "fill-rule": "evenodd",
369
+ d: "M17.707 7.707a1 1 0 0 0-1.414-1.414L12 10.586 7.707 6.293a1 1 0 0 0-1.414 1.414L10.586 12l-4.293 4.293a1 1 0 1 0 1.414 1.414L12 13.414l4.293 4.293a1 1 0 0 0 1.414-1.414L13.414 12z"
370
+ }, null, -1)
371
+ ]), 8, Te);
372
+ }
373
+ const E = /* @__PURE__ */ _(Le, [["render", je]]), Oe = ["disabled", "type"], Se = { class: "mc-button__icon" }, qe = /* @__PURE__ */ y({
374
+ __name: "MIconButton",
375
+ props: {
376
+ appearance: { default: "standard" },
377
+ size: { default: "m" },
378
+ disabled: { type: Boolean },
379
+ ghost: { type: Boolean },
380
+ outlined: { type: Boolean },
381
+ type: { default: "button" }
382
+ },
383
+ setup(d) {
384
+ const e = d, a = b(() => ({
385
+ [`mc-button--${e.appearance}`]: e.appearance && e.appearance != "standard",
386
+ [`mc-button--${e.size}`]: e.size && e.size != "m",
387
+ "mc-button--ghost": e.ghost,
388
+ "mc-button--outlined": e.outlined
389
+ }));
390
+ return (t, o) => (l(), n("button", {
391
+ class: g(["mc-button mc-button--icon-button", a.value]),
392
+ disabled: t.disabled,
393
+ type: t.type
394
+ }, [
395
+ r("span", Se, [
396
+ V(t.$slots, "icon", {}, void 0, !0)
397
+ ])
398
+ ], 10, Oe));
399
+ }
400
+ }), P = /* @__PURE__ */ _(qe, [["__scopeId", "data-v-abf78562"]]), Pe = ["aria-labelledby"], De = /* @__PURE__ */ y({
401
+ __name: "MOverlay",
402
+ props: {
403
+ isVisible: { type: Boolean },
404
+ dialogLabel: {}
405
+ },
406
+ setup(d) {
407
+ return (e, a) => (l(), n("div", {
408
+ class: g(["mc-overlay", { "is-visible": e.isVisible }])
409
+ }, [
410
+ r("div", {
411
+ role: "dialog",
412
+ tabindex: "-1",
413
+ "aria-labelledby": e.dialogLabel
414
+ }, [
415
+ V(e.$slots, "default", {}, void 0, !0)
416
+ ], 8, Pe)
417
+ ], 2));
418
+ }
419
+ }), Q = /* @__PURE__ */ _(De, [["__scopeId", "data-v-db90fdb3"]]), Fe = ["aria-modal", "aria-hidden"], Ne = {
420
+ class: "mc-drawer__dialog",
421
+ role: "document"
422
+ }, Ae = { class: "mc-drawer__header" }, Re = {
423
+ class: "mc-drawer__title",
424
+ id: "drawerTitle"
425
+ }, Ge = { class: "mc-drawer__body" }, Ue = {
426
+ class: "mc-drawer__content",
427
+ tabindex: "0"
428
+ }, Ke = {
429
+ key: 0,
430
+ class: "mc-drawer__content__title"
431
+ }, He = {
432
+ key: 0,
433
+ class: "mc-drawer__footer"
434
+ }, Ee = /* @__PURE__ */ y({
435
+ __name: "MDrawer",
436
+ props: {
437
+ open: { type: Boolean },
438
+ position: {},
439
+ extended: { type: Boolean },
440
+ back: { type: Boolean },
441
+ title: {},
442
+ contentTitle: {}
443
+ },
444
+ emits: ["update:open", "back"],
445
+ setup(d, { emit: e }) {
446
+ const a = d, t = b(() => ({
447
+ "is-open": a.open,
448
+ "mc-drawer--extend": a.extended,
449
+ [`mc-drawer--${a.position}`]: a.position && a.position != "right"
450
+ }));
451
+ q(
452
+ () => a.open,
453
+ (i) => {
454
+ s("update:open", i);
455
+ }
456
+ );
457
+ const o = () => {
458
+ s("update:open", !1);
459
+ }, s = e;
460
+ return (i, u) => (l(), I(Q, {
461
+ "is-visible": i.open,
462
+ dialogLabel: "drawerTitle"
463
+ }, {
464
+ default: C(() => [
465
+ r("section", B({
466
+ class: ["mc-drawer", t.value],
467
+ role: "dialog",
468
+ "aria-labelledby": "drawerTitle",
469
+ "aria-modal": i.open ? "true" : "false",
470
+ tabindex: "-1",
471
+ "aria-hidden": !i.open
472
+ }, i.$attrs, {
473
+ onKeydown: A(o, ["esc"])
474
+ }), [
475
+ r("div", Ne, [
476
+ r("div", Ae, [
477
+ i.back ? (l(), I(P, {
478
+ key: 0,
479
+ class: "mc-drawer__back",
480
+ "aria-label": "Back",
481
+ ghost: "",
482
+ onClick: u[0] || (u[0] = (p) => s("back"))
483
+ }, {
484
+ icon: C(() => [
485
+ w(ze, { "aria-hidden": "true" })
486
+ ]),
487
+ _: 1
488
+ })) : h("", !0),
489
+ r("h2", Re, f(i.title), 1),
490
+ w(P, {
491
+ class: "mc-drawer__close",
492
+ "aria-label": "Close",
493
+ ghost: "",
494
+ onClick: o
495
+ }, {
496
+ icon: C(() => [
497
+ w(E, { "aria-hidden": "true" })
498
+ ]),
499
+ _: 1
500
+ })
501
+ ]),
502
+ r("div", Ge, [
503
+ r("div", Ue, [
504
+ i.contentTitle ? (l(), n("h2", Ke, f(i.contentTitle), 1)) : h("", !0),
505
+ V(i.$slots, "default", {}, void 0, !0)
506
+ ])
507
+ ]),
508
+ i.$slots.footer ? (l(), n("div", He, [
509
+ V(i.$slots, "footer", {}, void 0, !0)
510
+ ])) : h("", !0)
511
+ ])
512
+ ], 16, Fe)
513
+ ]),
514
+ _: 3
515
+ }, 8, ["is-visible"]));
516
+ }
517
+ }), bs = /* @__PURE__ */ _(Ee, [["__scopeId", "data-v-673a796c"]]), Qe = { class: "mc-field" }, We = ["for"], Je = {
319
518
  key: 0,
320
519
  class: "mc-field__requirement"
321
- }, ye = ["id"], ge = { class: "mc-field__content" }, ke = ["id"], Ve = /* @__PURE__ */ y({
520
+ }, Xe = ["id"], Ye = { class: "mc-field__content" }, Ze = ["id"], xe = /* @__PURE__ */ y({
322
521
  __name: "MField",
323
522
  props: {
324
523
  id: {},
@@ -332,40 +531,40 @@ const R = {
332
531
  message: {}
333
532
  },
334
533
  setup(d) {
335
- const a = d, s = b(() => ({
336
- "is-valid": a.isValid,
337
- "is-invalid": a.isInvalid
534
+ const e = d, a = b(() => ({
535
+ "is-valid": e.isValid,
536
+ "is-invalid": e.isInvalid
338
537
  }));
339
- return (e, o) => (l(), n("div", fe, [
340
- i("label", {
538
+ return (t, o) => (l(), n("div", Qe, [
539
+ r("label", {
341
540
  class: "mc-field__label",
342
- for: e.id
541
+ for: t.id
343
542
  }, [
344
- S(f(e.label) + " ", 1),
345
- e.requirementText ? (l(), n("span", $e, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
346
- ], 8, he),
347
- e.helpId && e.helpText ? (l(), n("span", {
543
+ D(f(t.label) + " ", 1),
544
+ t.requirementText ? (l(), n("span", Je, "(" + f(t.requirementText) + ")", 1)) : h("", !0)
545
+ ], 8, We),
546
+ t.helpId && t.helpText ? (l(), n("span", {
348
547
  key: 0,
349
- id: e.helpId,
548
+ id: t.helpId,
350
549
  class: "mc-field__help"
351
- }, f(e.helpText), 9, ye)) : h("", !0),
352
- i("div", ge, [
353
- V(e.$slots, "default", {}, void 0, !0)
550
+ }, f(t.helpText), 9, Xe)) : h("", !0),
551
+ r("div", Ye, [
552
+ V(t.$slots, "default", {}, void 0, !0)
354
553
  ]),
355
- (e.isValid || e.isInvalid) && e.message ? (l(), n("span", {
554
+ (t.isValid || t.isInvalid) && t.message ? (l(), n("span", {
356
555
  key: 1,
357
- class: $(["mc-field__validation-message", s.value]),
358
- id: e.messageId
359
- }, f(e.message), 11, ke)) : h("", !0)
556
+ class: g(["mc-field__validation-message", a.value]),
557
+ id: t.messageId
558
+ }, f(t.message), 11, Ze)) : h("", !0)
360
559
  ]));
361
560
  }
362
- }), Ot = /* @__PURE__ */ v(Ve, [["__scopeId", "data-v-ead078c4"]]), Ce = { class: "mc-field--group" }, we = ["for"], Ie = {
561
+ }), fs = /* @__PURE__ */ _(xe, [["__scopeId", "data-v-ead078c4"]]), ea = { class: "mc-field--group" }, aa = ["for"], ta = {
363
562
  key: 0,
364
563
  class: "mc-field__requirement"
365
- }, Be = {
564
+ }, sa = {
366
565
  key: 0,
367
566
  class: "mc-field__help"
368
- }, Me = { class: "mc-field__content" }, ze = /* @__PURE__ */ y({
567
+ }, la = { class: "mc-field__content" }, oa = /* @__PURE__ */ y({
369
568
  __name: "MFieldGroup",
370
569
  props: {
371
570
  id: {},
@@ -377,56 +576,136 @@ const R = {
377
576
  message: {}
378
577
  },
379
578
  setup(d) {
380
- const a = d, s = b(() => ({
381
- "is-valid": a.isValid,
382
- "is-invalid": a.isInvalid
579
+ const e = d, a = b(() => ({
580
+ "is-valid": e.isValid,
581
+ "is-invalid": e.isInvalid
383
582
  }));
384
- return (e, o) => (l(), n("fieldset", Ce, [
385
- i("legend", {
583
+ return (t, o) => (l(), n("fieldset", ea, [
584
+ r("legend", {
386
585
  class: "mc-field__legend",
387
- for: e.id
586
+ for: t.id
388
587
  }, [
389
- S(f(e.legend) + " ", 1),
390
- e.requirementText ? (l(), n("span", Ie, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
391
- ], 8, we),
392
- e.helpText ? (l(), n("span", Be, f(e.helpText), 1)) : h("", !0),
393
- i("div", Me, [
394
- V(e.$slots, "default", {}, void 0, !0)
588
+ D(f(t.legend) + " ", 1),
589
+ t.requirementText ? (l(), n("span", ta, "(" + f(t.requirementText) + ")", 1)) : h("", !0)
590
+ ], 8, aa),
591
+ t.helpText ? (l(), n("span", sa, f(t.helpText), 1)) : h("", !0),
592
+ r("div", la, [
593
+ V(t.$slots, "default", {}, void 0, !0)
395
594
  ]),
396
- (e.isValid || e.isInvalid) && e.message ? (l(), n("span", {
595
+ (t.isValid || t.isInvalid) && t.message ? (l(), n("span", {
397
596
  key: 1,
398
- class: $(["mc-field__validation-message", s.value])
399
- }, f(e.message), 3)) : h("", !0)
597
+ class: g(["mc-field__validation-message", a.value])
598
+ }, f(t.message), 3)) : h("", !0)
400
599
  ]));
401
600
  }
402
- }), Tt = /* @__PURE__ */ v(ze, [["__scopeId", "data-v-fc0c08dc"]]), Le = ["disabled", "type"], Se = { class: "mc-button__icon" }, Oe = /* @__PURE__ */ y({
403
- __name: "MIconButton",
601
+ }), hs = /* @__PURE__ */ _(oa, [["__scopeId", "data-v-fc0c08dc"]]), na = ["aria-label"], ia = /* @__PURE__ */ y({
602
+ __name: "MLoadingOverlay",
404
603
  props: {
405
- appearance: { default: "standard" },
406
- size: { default: "m" },
407
- disabled: { type: Boolean },
408
- ghost: { type: Boolean },
409
- outlined: { type: Boolean },
410
- type: { default: "button" }
604
+ isVisible: { type: Boolean },
605
+ text: {}
411
606
  },
412
607
  setup(d) {
413
- const a = d, s = b(() => ({
414
- [`mc-button--${a.appearance}`]: a.appearance && a.appearance != "standard",
415
- [`mc-button--${a.size}`]: a.size && a.size != "m",
416
- "mc-button--ghost": a.ghost,
417
- "mc-button--outlined": a.outlined
418
- }));
419
- return (e, o) => (l(), n("button", {
420
- class: $(["mc-button mc-button--icon-button", s.value]),
421
- disabled: e.disabled,
422
- type: e.type
608
+ return (e, a) => (l(), n("div", {
609
+ class: g(["mc-loading-loader", { "is-visible": e.isVisible }])
423
610
  }, [
424
- i("span", Se, [
425
- V(e.$slots, "icon", {}, void 0, !0)
426
- ])
427
- ], 10, Le));
611
+ r("div", B({
612
+ role: "dialog",
613
+ tabindex: "-1",
614
+ "aria-label": e.text
615
+ }, e.$attrs), [
616
+ w(H, {
617
+ size: "l",
618
+ appearance: "inverse",
619
+ text: e.text
620
+ }, null, 8, ["text"])
621
+ ], 16, na)
622
+ ], 2));
623
+ }
624
+ }), $s = /* @__PURE__ */ _(ia, [["__scopeId", "data-v-eae6b1f2"]]), da = ["aria-modal", "aria-hidden"], ra = {
625
+ class: "mc-modal__dialog",
626
+ role: "document"
627
+ }, ca = { class: "mc-modal__header" }, ua = {
628
+ key: 0,
629
+ class: "mc-modal__icon"
630
+ }, pa = {
631
+ class: "mc-modal__title",
632
+ id: "modalTitle"
633
+ }, ma = { class: "mc-modal__body" }, _a = {
634
+ key: 0,
635
+ class: "mc-modal__footer"
636
+ }, va = { class: "mc-modal__link" }, ba = /* @__PURE__ */ y({
637
+ __name: "MModal",
638
+ props: {
639
+ open: { type: Boolean },
640
+ title: {},
641
+ description: {},
642
+ closable: { type: Boolean, default: !0 }
643
+ },
644
+ emits: ["update:open"],
645
+ setup(d, { emit: e }) {
646
+ const a = d, t = b(() => ({
647
+ "is-open": a.open
648
+ }));
649
+ q(
650
+ () => a.open,
651
+ (i) => {
652
+ s("update:open", i);
653
+ }
654
+ );
655
+ const o = () => {
656
+ s("update:open", !1);
657
+ }, s = e;
658
+ return (i, u) => (l(), I(Q, {
659
+ "is-visible": i.open,
660
+ dialogLabel: "modalTitle"
661
+ }, {
662
+ default: C(() => [
663
+ r("section", B({
664
+ class: ["mc-modal", t.value],
665
+ role: "dialog",
666
+ "aria-labelledby": "modalTitle",
667
+ "aria-modal": i.open ? "true" : "false",
668
+ tabindex: "-1",
669
+ "aria-hidden": !i.open
670
+ }, i.$attrs, {
671
+ onKeydown: A(o, ["esc"])
672
+ }), [
673
+ r("div", ra, [
674
+ r("header", ca, [
675
+ i.$slots.icon ? (l(), n("span", ua, [
676
+ V(i.$slots, "icon", {}, void 0, !0)
677
+ ])) : h("", !0),
678
+ r("h2", pa, f(i.title), 1),
679
+ i.closable ? (l(), I(P, {
680
+ key: 1,
681
+ class: "mc-modal__close",
682
+ "aria-label": "Close",
683
+ ghost: "",
684
+ onClick: o
685
+ }, {
686
+ icon: C(() => [
687
+ w(E, { "aria-hidden": "true" })
688
+ ]),
689
+ _: 1
690
+ })) : h("", !0)
691
+ ]),
692
+ r("main", ma, [
693
+ r("p", null, f(i.description), 1),
694
+ V(i.$slots, "default", {}, void 0, !0)
695
+ ]),
696
+ i.$slots.footer ? (l(), n("footer", _a, [
697
+ r("span", va, [
698
+ V(i.$slots, "link", {}, void 0, !0)
699
+ ]),
700
+ V(i.$slots, "footer", {}, void 0, !0)
701
+ ])) : h("", !0)
702
+ ])
703
+ ], 16, da)
704
+ ]),
705
+ _: 3
706
+ }, 8, ["is-visible"]));
428
707
  }
429
- }), P = /* @__PURE__ */ v(Oe, [["__scopeId", "data-v-abf78562"]]), Te = /* @__PURE__ */ y({
708
+ }), ys = /* @__PURE__ */ _(ba, [["__scopeId", "data-v-20ce36b2"]]), fa = /* @__PURE__ */ y({
430
709
  __name: "MNumberBadge",
431
710
  props: {
432
711
  label: {},
@@ -434,38 +713,19 @@ const R = {
434
713
  size: { default: "s" }
435
714
  },
436
715
  setup(d) {
437
- const a = d, s = b(() => ({
438
- [`mc-number-badge--${a.appearance}`]: a.appearance && a.appearance != "standard",
439
- [`mc-number-badge--${a.size}`]: a.size && a.size != "s"
716
+ const e = d, a = b(() => ({
717
+ [`mc-number-badge--${e.appearance}`]: e.appearance && e.appearance != "standard",
718
+ [`mc-number-badge--${e.size}`]: e.size && e.size != "s"
440
719
  }));
441
- return (e, o) => (l(), n("span", {
442
- class: $(["mc-number-badge", s.value])
443
- }, f(e.label), 3));
444
- }
445
- }), je = /* @__PURE__ */ v(Te, [["__scopeId", "data-v-7e6acb92"]]), qe = ["aria-labelledby"], Pe = /* @__PURE__ */ y({
446
- __name: "MOverlay",
447
- props: {
448
- isVisible: { type: Boolean },
449
- dialogLabel: {}
450
- },
451
- setup(d) {
452
- return (a, s) => (l(), n("div", {
453
- class: $(["mc-overlay", { "is-visible": a.isVisible }])
454
- }, [
455
- i("div", {
456
- role: "dialog",
457
- tabindex: "-1",
458
- "aria-labelledby": a.dialogLabel
459
- }, [
460
- V(a.$slots, "default", {}, void 0, !0)
461
- ], 8, qe)
462
- ], 2));
720
+ return (t, o) => (l(), n("span", {
721
+ class: g(["mc-number-badge", a.value])
722
+ }, f(t.label), 3));
463
723
  }
464
- }), jt = /* @__PURE__ */ v(Pe, [["__scopeId", "data-v-db90fdb3"]]), Ze = ["id", "name", "value", "disabled"], Ne = {
724
+ }), ha = /* @__PURE__ */ _(fa, [["__scopeId", "data-v-7e6acb92"]]), $a = ["id", "name", "value", "disabled"], ya = {
465
725
  key: 0,
466
726
  value: "",
467
727
  disabled: ""
468
- }, De = ["value", "disabled"], Ue = /* @__PURE__ */ y({
728
+ }, ga = ["value", "disabled"], ka = /* @__PURE__ */ y({
469
729
  __name: "MSelect",
470
730
  props: {
471
731
  id: {},
@@ -479,31 +739,31 @@ const R = {
479
739
  readonly: { type: Boolean }
480
740
  },
481
741
  emits: ["update:modelValue"],
482
- setup(d, { emit: a }) {
483
- const s = d, e = b(() => ({
484
- [`mc-select--${s.size}`]: s.size && s.size != "m",
485
- "mc-select--readonly": s.readonly,
486
- "is-invalid": s.isInvalid
487
- })), o = a;
488
- return (t, c) => (l(), n("select", k({
489
- id: t.id,
490
- class: ["mc-select", e.value],
491
- name: t.name,
492
- value: t.modelValue,
493
- disabled: t.disabled
494
- }, t.$attrs, {
495
- onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.value))
742
+ setup(d, { emit: e }) {
743
+ const a = d, t = b(() => ({
744
+ [`mc-select--${a.size}`]: a.size && a.size != "m",
745
+ "mc-select--readonly": a.readonly,
746
+ "is-invalid": a.isInvalid
747
+ })), o = e;
748
+ return (s, i) => (l(), n("select", B({
749
+ id: s.id,
750
+ class: ["mc-select", t.value],
751
+ name: s.name,
752
+ value: s.modelValue,
753
+ disabled: s.disabled
754
+ }, s.$attrs, {
755
+ onChange: i[0] || (i[0] = (u) => o("update:modelValue", u.target.value))
496
756
  }), [
497
- t.placeholder ? (l(), n("option", Ne, " -- " + f(t.placeholder) + " -- ", 1)) : h("", !0),
498
- (l(!0), n(z, null, L(t.options, (u, p) => (l(), n("option", k({
757
+ s.placeholder ? (l(), n("option", ya, " -- " + f(s.placeholder) + " -- ", 1)) : h("", !0),
758
+ (l(!0), n(O, null, S(s.options, (u, p) => (l(), n("option", B({
499
759
  key: p,
500
760
  value: u.value
501
761
  }, { ref_for: !0 }, u.attributes, {
502
762
  disabled: u.disabled
503
- }), f(u.text), 17, De))), 128))
504
- ], 16, Ze));
763
+ }), f(u.text), 17, ga))), 128))
764
+ ], 16, $a));
505
765
  }
506
- }), Fe = /* @__PURE__ */ v(Ue, [["__scopeId", "data-v-68c735e4"]]), Ge = {
766
+ }), wa = /* @__PURE__ */ _(ka, [["__scopeId", "data-v-68c735e4"]]), Va = {
507
767
  name: "ChevronLeft24",
508
768
  props: {
509
769
  /**
@@ -514,30 +774,23 @@ const R = {
514
774
  default: "currentColor"
515
775
  }
516
776
  }
517
- }, Re = {
518
- xmlns: "http://www.w3.org/2000/svg",
519
- viewBox: "0 0 24 24"
520
- };
521
- function Ae(d, a, s, e, o, t) {
522
- return l(), n("svg", Re, a[0] || (a[0] = [
523
- i("g", { "clip-path": "url(#a)" }, [
524
- i("path", {
525
- "fill-rule": "evenodd",
526
- d: "M15.207 6.293a1 1 0 0 1 0 1.414L10.914 12l4.293 4.293a1 1 0 0 1-1.414 1.414l-5-5a1 1 0 0 1 0-1.414l5-5a1 1 0 0 1 1.414 0Z"
527
- })
528
- ], -1),
529
- i("defs", null, [
530
- i("clipPath", { id: "a" }, [
531
- i("rect", {
532
- width: "24",
533
- height: "24",
534
- fill: "#fff"
535
- })
536
- ])
537
- ], -1)
538
- ]));
777
+ }, Ba = ["fill"];
778
+ function Ia(d, e, a, t, o, s) {
779
+ return l(), n("svg", {
780
+ "aria-hidden": "true",
781
+ fill: a.color,
782
+ xmlns: "http://www.w3.org/2000/svg",
783
+ viewBox: "0 0 24 24",
784
+ width: "24",
785
+ height: "24"
786
+ }, e[0] || (e[0] = [
787
+ r("path", {
788
+ "fill-rule": "evenodd",
789
+ d: "M14.207 6.293a1 1 0 0 1 0 1.414L9.914 12l4.293 4.293a1 1 0 0 1-1.414 1.414l-5-5a1 1 0 0 1 0-1.414l5-5a1 1 0 0 1 1.414 0"
790
+ }, null, -1)
791
+ ]), 8, Ba);
539
792
  }
540
- const Z = /* @__PURE__ */ v(Ge, [["render", Ae]]), He = {
793
+ const G = /* @__PURE__ */ _(Va, [["render", Ia]]), Ca = {
541
794
  name: "ChevronRight24",
542
795
  props: {
543
796
  /**
@@ -548,41 +801,34 @@ const Z = /* @__PURE__ */ v(Ge, [["render", Ae]]), He = {
548
801
  default: "currentColor"
549
802
  }
550
803
  }
551
- }, Ee = {
552
- xmlns: "http://www.w3.org/2000/svg",
553
- viewBox: "0 0 24 24"
554
- };
555
- function Qe(d, a, s, e, o, t) {
556
- return l(), n("svg", Ee, a[0] || (a[0] = [
557
- i("g", { "clip-path": "url(#a)" }, [
558
- i("path", {
559
- "fill-rule": "evenodd",
560
- d: "M8.793 6.293a1 1 0 0 1 1.414 0l5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414-1.414L13.086 12 8.793 7.707a1 1 0 0 1 0-1.414Z"
561
- })
562
- ], -1),
563
- i("defs", null, [
564
- i("clipPath", { id: "a" }, [
565
- i("rect", {
566
- width: "24",
567
- height: "24",
568
- fill: "#fff"
569
- })
570
- ])
571
- ], -1)
572
- ]));
804
+ }, Ma = ["fill"];
805
+ function za(d, e, a, t, o, s) {
806
+ return l(), n("svg", {
807
+ "aria-hidden": "true",
808
+ fill: a.color,
809
+ xmlns: "http://www.w3.org/2000/svg",
810
+ viewBox: "0 0 24 24",
811
+ width: "24",
812
+ height: "24"
813
+ }, e[0] || (e[0] = [
814
+ r("path", {
815
+ "fill-rule": "evenodd",
816
+ d: "M9.793 6.293a1 1 0 0 1 1.414 0l5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414-1.414L14.086 12 9.793 7.707a1 1 0 0 1 0-1.414"
817
+ }, null, -1)
818
+ ]), 8, Ma);
573
819
  }
574
- const N = /* @__PURE__ */ v(He, [["render", Qe]]), We = {
820
+ const U = /* @__PURE__ */ _(Ca, [["render", za]]), La = {
575
821
  class: "mc-pagination",
576
822
  role: "navigation",
577
823
  "aria-label": "pagination"
578
- }, Je = {
824
+ }, Ta = {
579
825
  key: 2,
580
826
  class: "mc-pagination__field"
581
- }, Ke = {
827
+ }, ja = {
582
828
  key: 3,
583
829
  class: "mc-pagination__label",
584
830
  "aria-current": "page"
585
- }, Xe = /* @__PURE__ */ y({
831
+ }, Oa = /* @__PURE__ */ y({
586
832
  __name: "MPagination",
587
833
  props: {
588
834
  id: {},
@@ -592,91 +838,93 @@ const N = /* @__PURE__ */ v(He, [["render", Qe]]), We = {
592
838
  selectLabel: {}
593
839
  },
594
840
  emits: ["update:modelValue"],
595
- setup(d, { emit: a }) {
596
- const s = d, e = a, o = B(s.modelValue);
597
- O(o, (r) => {
598
- r !== s.modelValue && e("update:modelValue", r);
841
+ setup(d, { emit: e }) {
842
+ const a = d, t = e, o = L(a.modelValue);
843
+ q(o, (c) => {
844
+ c !== a.modelValue && t("update:modelValue", c);
599
845
  });
600
- const t = b(
601
- () => s.options.findIndex((r) => r.value === o.value)
602
- ), c = b(() => t.value === 0), u = b(() => t.value === s.options.length - 1), p = () => {
603
- const r = s.options.findIndex(
604
- (_) => _.value === o.value
846
+ const s = b(
847
+ () => a.options.findIndex((c) => c.value === o.value)
848
+ ), i = b(() => s.value === 0), u = b(
849
+ () => s.value === a.options.length - 1
850
+ ), p = () => {
851
+ const c = a.options.findIndex(
852
+ (v) => v.value === o.value
605
853
  );
606
- r > 0 && (o.value = s.options[r - 1].value, e("update:modelValue", s.options[r - 1].value));
854
+ c > 0 && (o.value = a.options[c - 1].value, t("update:modelValue", a.options[c - 1].value));
607
855
  }, m = () => {
608
- const r = s.options.findIndex(
609
- (_) => _.value === o.value
856
+ const c = a.options.findIndex(
857
+ (v) => v.value === o.value
610
858
  );
611
- r < s.options.length - 1 && (o.value = s.options[r + 1].value, e("update:modelValue", s.options[r + 1].value));
859
+ c < a.options.length - 1 && (o.value = a.options[c + 1].value, t("update:modelValue", a.options[c + 1].value));
612
860
  };
613
- return (r, _) => {
614
- var I;
615
- return l(), n("nav", We, [
616
- r.compact ? (l(), C(P, {
861
+ return (c, v) => {
862
+ var z;
863
+ return l(), n("nav", La, [
864
+ c.compact ? (l(), I(P, {
617
865
  key: 1,
618
866
  outlined: "",
619
867
  "aria-label": "Previous page",
620
- disabled: c.value,
868
+ disabled: i.value,
621
869
  onClick: p
622
870
  }, {
623
- icon: M(() => [
624
- g(Z)
871
+ icon: C(() => [
872
+ w(G)
625
873
  ]),
626
874
  _: 1
627
- }, 8, ["disabled"])) : (l(), C(T, {
875
+ }, 8, ["disabled"])) : (l(), I(F, {
628
876
  key: 0,
629
877
  "icon-position": "only",
630
878
  "aria-label": "Previous page",
631
- disabled: c.value,
879
+ disabled: i.value,
632
880
  onClick: p
633
881
  }, {
634
- icon: M(() => [
635
- g(Z)
882
+ icon: C(() => [
883
+ w(G)
636
884
  ]),
637
885
  _: 1
638
886
  }, 8, ["disabled"])),
639
- r.compact ? h("", !0) : (l(), n("div", Je, [
640
- g(Fe, {
887
+ c.compact ? h("", !0) : (l(), n("div", Ta, [
888
+ w(wa, {
641
889
  class: "mc-pagination__select",
642
- id: r.id,
890
+ id: c.id,
643
891
  modelValue: o.value,
644
892
  "onUpdate:modelValue": [
645
- _[0] || (_[0] = (w) => o.value = w),
646
- _[1] || (_[1] = (w) => e("update:modelValue", Number(w)))
893
+ v[0] || (v[0] = ($) => o.value = $),
894
+ v[1] || (v[1] = ($) => t("update:modelValue", Number($)))
647
895
  ],
648
- options: r.options,
649
- "aria-label": r.selectLabel
896
+ options: c.options,
897
+ "aria-label": c.selectLabel
650
898
  }, null, 8, ["id", "modelValue", "options", "aria-label"])
651
899
  ])),
652
- r.compact ? (l(), n("span", Ke, f((I = r.options.find((w) => w.value === o.value)) == null ? void 0 : I.text), 1)) : h("", !0),
653
- r.compact ? (l(), C(P, {
900
+ c.compact ? (l(), n("span", ja, f((z = c.options.find(($) => $.value === o.value)) == null ? void 0 : z.text), 1)) : h("", !0),
901
+ c.compact ? (l(), I(P, {
654
902
  key: 5,
655
903
  outlined: "",
656
904
  "aria-label": "Next page",
657
905
  disabled: u.value,
658
906
  onClick: m
659
907
  }, {
660
- icon: M(() => [
661
- g(N)
908
+ icon: C(() => [
909
+ w(U)
662
910
  ]),
663
911
  _: 1
664
- }, 8, ["disabled"])) : (l(), C(T, {
912
+ }, 8, ["disabled"])) : (l(), I(F, {
665
913
  key: 4,
666
914
  "icon-position": "only",
667
915
  "aria-label": "Next page",
668
916
  disabled: u.value,
669
917
  onClick: m
670
918
  }, {
671
- icon: M(() => [
672
- g(N)
919
+ icon: C(() => [
920
+ w(U)
673
921
  ]),
674
922
  _: 1
675
923
  }, 8, ["disabled"]))
676
924
  ]);
677
925
  };
678
926
  }
679
- }), qt = /* @__PURE__ */ v(Xe, [["__scopeId", "data-v-f959ec90"]]), Ye = {
927
+ }), gs = /* @__PURE__ */ _(Oa, [["__scopeId", "data-v-3b9257ac"]]), Sa = {
680
928
  name: "CrossCircleFilled24",
681
929
  props: {
682
930
  /**
@@ -687,22 +935,26 @@ const N = /* @__PURE__ */ v(He, [["render", Qe]]), We = {
687
935
  default: "currentColor"
688
936
  }
689
937
  }
690
- }, xe = {
691
- xmlns: "http://www.w3.org/2000/svg",
692
- viewBox: "0 0 24 24"
693
- };
694
- function ea(d, a, s, e, o, t) {
695
- return l(), n("svg", xe, a[0] || (a[0] = [
696
- i("path", {
938
+ }, qa = ["fill"];
939
+ function Pa(d, e, a, t, o, s) {
940
+ return l(), n("svg", {
941
+ "aria-hidden": "true",
942
+ fill: a.color,
943
+ xmlns: "http://www.w3.org/2000/svg",
944
+ viewBox: "0 0 24 24",
945
+ width: "24",
946
+ height: "24"
947
+ }, e[0] || (e[0] = [
948
+ r("path", {
697
949
  "fill-rule": "evenodd",
698
- d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2ZM8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z"
950
+ d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414"
699
951
  }, null, -1)
700
- ]));
952
+ ]), 8, qa);
701
953
  }
702
- const q = /* @__PURE__ */ v(Ye, [["render", ea]]), aa = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], ta = {
954
+ const R = /* @__PURE__ */ _(Sa, [["render", Pa]]), Da = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Fa = {
703
955
  key: 0,
704
956
  class: "mc-controls-options"
705
- }, sa = { class: "mc-controls-options__label" }, la = /* @__PURE__ */ y({
957
+ }, Na = { class: "mc-controls-options__label" }, Aa = /* @__PURE__ */ y({
706
958
  __name: "MPasswordInput",
707
959
  props: {
708
960
  id: {},
@@ -717,61 +969,133 @@ const q = /* @__PURE__ */ v(Ye, [["render", ea]]), aa = ["id", "type", "name", "
717
969
  buttonLabel: { default: () => ({ show: "Show", hide: "Hide" }) }
718
970
  },
719
971
  emits: ["update:modelValue"],
720
- setup(d, { emit: a }) {
721
- const s = d, e = b(() => ({
722
- "is-invalid": s.isInvalid
723
- })), o = B(s.modelValue), t = B(!1), c = () => {
724
- o.value = "", r("update:modelValue", "");
972
+ setup(d, { emit: e }) {
973
+ const a = d, t = b(() => ({
974
+ "is-invalid": a.isInvalid
975
+ })), o = L(a.modelValue), s = L(!1), i = () => {
976
+ o.value = "", c("update:modelValue", "");
725
977
  }, u = () => {
726
- t.value = !t.value;
727
- }, p = b(() => t.value ? "text" : "password"), m = b(() => t.value ? "true" : "false"), r = a;
728
- return (_, I) => (l(), n("div", {
729
- class: $(["mc-password-input mc-text-input", e.value])
978
+ s.value = !s.value;
979
+ }, p = b(() => s.value ? "text" : "password"), m = b(() => s.value ? "true" : "false"), c = e;
980
+ return (v, z) => (l(), n("div", {
981
+ class: g(["mc-password-input mc-text-input", t.value])
730
982
  }, [
731
- D(i("input", k({
983
+ K(r("input", B({
732
984
  class: "mc-password-input__control mc-text-input__control",
733
- "onUpdate:modelValue": I[0] || (I[0] = (w) => o.value = w),
734
- id: _.id,
985
+ "onUpdate:modelValue": z[0] || (z[0] = ($) => o.value = $),
986
+ id: v.id,
735
987
  type: p.value,
736
- name: _.name,
737
- placeholder: _.placeholder,
738
- disabled: _.disabled,
739
- "aria-invalid": _.isInvalid,
740
- readonly: _.readonly
741
- }, _.$attrs, {
742
- onInput: I[1] || (I[1] = (w) => r("update:modelValue", w.target.value))
743
- }), null, 16, aa), [
744
- [F, o.value]
988
+ name: v.name,
989
+ placeholder: v.placeholder,
990
+ disabled: v.disabled,
991
+ "aria-invalid": v.isInvalid,
992
+ readonly: v.readonly
993
+ }, v.$attrs, {
994
+ onInput: z[1] || (z[1] = ($) => c("update:modelValue", $.target.value))
995
+ }), null, 16, Da), [
996
+ [X, o.value]
745
997
  ]),
746
- _.isClearable && o.value ? (l(), n("div", ta, [
747
- i("button", {
998
+ v.isClearable && o.value ? (l(), n("div", Fa, [
999
+ r("button", {
748
1000
  class: "mc-controls-options__button",
749
- onClick: c
1001
+ onClick: i
750
1002
  }, [
751
- g(q, {
1003
+ w(R, {
752
1004
  class: "mc-controls-options__icon",
753
1005
  "aria-hidden": "true"
754
1006
  }),
755
- i("span", sa, f(_.clearLabel), 1)
1007
+ r("span", Na, f(v.clearLabel), 1)
756
1008
  ])
757
1009
  ])) : h("", !0),
758
- g(T, {
1010
+ w(F, {
759
1011
  ref: "button",
760
1012
  role: "switch",
761
1013
  "aria-checked": m.value,
762
- disabled: _.disabled,
1014
+ disabled: v.disabled,
763
1015
  onClick: u,
764
1016
  size: "s",
765
1017
  ghost: ""
766
1018
  }, {
767
- default: M(() => [
768
- S(f(t.value ? _.buttonLabel.hide : _.buttonLabel.show), 1)
1019
+ default: C(() => [
1020
+ D(f(s.value ? v.buttonLabel.hide : v.buttonLabel.show), 1)
769
1021
  ]),
770
1022
  _: 1
771
1023
  }, 8, ["aria-checked", "disabled"])
772
1024
  ], 2));
773
1025
  }
774
- }), Pt = /* @__PURE__ */ v(la, [["__scopeId", "data-v-a5164b59"]]), na = {
1026
+ }), ks = /* @__PURE__ */ _(Aa, [["__scopeId", "data-v-167f10e2"]]), Ra = ["id", "name", "disabled", "readonly", "value", "onInput", "onKeydown"], Ga = /* @__PURE__ */ y({
1027
+ __name: "MPincode",
1028
+ props: {
1029
+ id: {},
1030
+ length: { default: 6 },
1031
+ name: {},
1032
+ modelValue: {},
1033
+ isInvalid: { type: Boolean },
1034
+ disabled: { type: Boolean },
1035
+ readonly: { type: Boolean }
1036
+ },
1037
+ emits: ["update:modelValue"],
1038
+ setup(d, { emit: e }) {
1039
+ const a = d, t = b(() => ({
1040
+ "is-invalid": a.isInvalid
1041
+ })), o = e, s = L(Array(a.length).fill("")), i = L([]), u = ($, k) => {
1042
+ i.value[k] = $;
1043
+ };
1044
+ q(
1045
+ () => a.modelValue,
1046
+ ($) => {
1047
+ const k = String($ ?? "");
1048
+ s.value = Array.from({ length: a.length }, (T, M) => k[M] ?? "");
1049
+ },
1050
+ { immediate: !0 }
1051
+ );
1052
+ const p = ($) => {
1053
+ Y(() => {
1054
+ var k;
1055
+ return (k = i.value[$]) == null ? void 0 : k.focus();
1056
+ });
1057
+ }, m = ($, k) => {
1058
+ const T = $.target.value.replace(/\D/g, "");
1059
+ T ? (s.value[k] = T[0], o("update:modelValue", s.value.join("")), k + 1 < a.length && p(k + 1)) : (s.value[k] = "", o("update:modelValue", s.value.join("")));
1060
+ }, c = ($, k) => {
1061
+ $.key === "ArrowLeft" && k > 0 ? p(k - 1) : $.key === "ArrowRight" && k < a.length - 1 ? p(k + 1) : $.key === "Backspace" && v($, k);
1062
+ }, v = ($, k) => {
1063
+ s.value[k] === "" && k > 0 && (s.value[k - 1] = "", o("update:modelValue", s.value.join("")), p(k - 1));
1064
+ }, z = ($) => {
1065
+ var M;
1066
+ $.preventDefault();
1067
+ const T = (((M = $.clipboardData) == null ? void 0 : M.getData("text")) ?? "").replace(/\D/g, "").slice(0, a.length).split("");
1068
+ s.value = Array.from({ length: a.length }, (j, W) => T[W] ?? ""), o("update:modelValue", s.value.join("")), p(Math.min(T.length, a.length - 1));
1069
+ };
1070
+ return ($, k) => (l(), n("div", {
1071
+ class: g(["mc-pincode-input", t.value]),
1072
+ onPaste: z
1073
+ }, [
1074
+ (l(!0), n(O, null, S(s.value, (T, M) => (l(), n("input", B({
1075
+ key: M,
1076
+ id: `pincodeItem${M}`,
1077
+ ref_for: !0,
1078
+ ref: (j) => u(j, M),
1079
+ type: "text",
1080
+ inputmode: "numeric",
1081
+ maxlength: "1",
1082
+ pattern: "\\d*",
1083
+ autocomplete: "one-time-code",
1084
+ name: $.name || `pincode-${$.id}`,
1085
+ class: "mc-pincode-input__control",
1086
+ disabled: $.disabled,
1087
+ readonly: $.readonly,
1088
+ value: T
1089
+ }, { ref_for: !0 }, $.$attrs, {
1090
+ onInput: (j) => m(j, M),
1091
+ onKeydown: [
1092
+ A((j) => v(j, M), ["backspace"]),
1093
+ (j) => c(j, M)
1094
+ ]
1095
+ }), null, 16, Ra))), 128))
1096
+ ], 34));
1097
+ }
1098
+ }), ws = /* @__PURE__ */ _(Ga, [["__scopeId", "data-v-1bcac0ce"]]), Ua = {
775
1099
  name: "More24",
776
1100
  props: {
777
1101
  /**
@@ -782,30 +1106,23 @@ const q = /* @__PURE__ */ v(Ye, [["render", ea]]), aa = ["id", "type", "name", "
782
1106
  default: "currentColor"
783
1107
  }
784
1108
  }
785
- }, oa = {
786
- xmlns: "http://www.w3.org/2000/svg",
787
- viewBox: "0 0 24 24"
788
- };
789
- function ia(d, a, s, e, o, t) {
790
- return l(), n("svg", oa, a[0] || (a[0] = [
791
- i("g", { "clip-path": "url(#a)" }, [
792
- i("path", {
793
- "fill-rule": "evenodd",
794
- d: "M13 5a1 1 0 1 0-2 0v6H5a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V5Z"
795
- })
796
- ], -1),
797
- i("defs", null, [
798
- i("clipPath", { id: "a" }, [
799
- i("rect", {
800
- width: "24",
801
- height: "24",
802
- fill: "#fff"
803
- })
804
- ])
805
- ], -1)
806
- ]));
1109
+ }, Ka = ["fill"];
1110
+ function Ha(d, e, a, t, o, s) {
1111
+ return l(), n("svg", {
1112
+ "aria-hidden": "true",
1113
+ fill: a.color,
1114
+ xmlns: "http://www.w3.org/2000/svg",
1115
+ viewBox: "0 0 24 24",
1116
+ width: "24",
1117
+ height: "24"
1118
+ }, e[0] || (e[0] = [
1119
+ r("path", {
1120
+ "fill-rule": "evenodd",
1121
+ d: "M13 5a1 1 0 1 0-2 0v6H5a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6z"
1122
+ }, null, -1)
1123
+ ]), 8, Ka);
807
1124
  }
808
- const da = /* @__PURE__ */ v(na, [["render", ia]]), ra = {
1125
+ const Ea = /* @__PURE__ */ _(Ua, [["render", Ha]]), Qa = {
809
1126
  name: "Less24",
810
1127
  props: {
811
1128
  /**
@@ -816,30 +1133,23 @@ const da = /* @__PURE__ */ v(na, [["render", ia]]), ra = {
816
1133
  default: "currentColor"
817
1134
  }
818
1135
  }
819
- }, ca = {
820
- xmlns: "http://www.w3.org/2000/svg",
821
- viewBox: "0 0 24 24"
822
- };
823
- function ua(d, a, s, e, o, t) {
824
- return l(), n("svg", ca, a[0] || (a[0] = [
825
- i("g", { "clip-path": "url(#a)" }, [
826
- i("path", {
827
- "fill-rule": "evenodd",
828
- d: "M6 12a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z"
829
- })
830
- ], -1),
831
- i("defs", null, [
832
- i("clipPath", { id: "a" }, [
833
- i("rect", {
834
- width: "24",
835
- height: "24",
836
- fill: "#fff"
837
- })
838
- ])
839
- ], -1)
840
- ]));
1136
+ }, Wa = ["fill"];
1137
+ function Ja(d, e, a, t, o, s) {
1138
+ return l(), n("svg", {
1139
+ "aria-hidden": "true",
1140
+ fill: a.color,
1141
+ xmlns: "http://www.w3.org/2000/svg",
1142
+ viewBox: "0 0 24 24",
1143
+ width: "24",
1144
+ height: "24"
1145
+ }, e[0] || (e[0] = [
1146
+ r("path", {
1147
+ "fill-rule": "evenodd",
1148
+ d: "M6 12a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1"
1149
+ }, null, -1)
1150
+ ]), 8, Wa);
841
1151
  }
842
- const pa = /* @__PURE__ */ v(ra, [["render", ua]]), ma = ["id", "name", "disabled", "min", "max", "step", "readonly", "aria-invalid", "aria-valuemin", "aria-valuemax", "aria-valuenow"], _a = ["aria-controls", "disabled"], va = { class: "mc-quantity-selector__icon" }, ba = { class: "mc-quantity-selector__label" }, fa = ["aria-controls", "disabled"], ha = { class: "mc-quantity-selector__icon" }, $a = { class: "mc-quantity-selector__label" }, ya = /* @__PURE__ */ y({
1152
+ const Xa = /* @__PURE__ */ _(Qa, [["render", Ja]]), Ya = ["id", "name", "disabled", "min", "max", "step", "readonly", "aria-invalid", "aria-valuemin", "aria-valuemax", "aria-valuenow"], Za = ["aria-controls", "disabled"], xa = { class: "mc-quantity-selector__icon" }, et = { class: "mc-quantity-selector__label" }, at = ["aria-controls", "disabled"], tt = { class: "mc-quantity-selector__icon" }, st = { class: "mc-quantity-selector__label" }, lt = /* @__PURE__ */ y({
843
1153
  __name: "MQuantitySelector",
844
1154
  props: {
845
1155
  id: {},
@@ -856,27 +1166,27 @@ const pa = /* @__PURE__ */ v(ra, [["render", ua]]), ma = ["id", "name", "disable
856
1166
  decrementLabel: { default: "Decrement" }
857
1167
  },
858
1168
  emits: ["update:modelValue"],
859
- setup(d, { emit: a }) {
860
- const s = d, e = B(s.modelValue);
861
- O(e, (m) => {
862
- m !== s.modelValue && p("update:modelValue", m);
1169
+ setup(d, { emit: e }) {
1170
+ const a = d, t = L(a.modelValue);
1171
+ q(t, (m) => {
1172
+ m !== a.modelValue && p("update:modelValue", m);
863
1173
  });
864
1174
  const o = b(() => ({
865
- [`mc-quantity-selector--${s.size}`]: s.size && s.size != "m",
866
- "is-invalid": s.isInvalid
867
- })), t = () => {
868
- e.value + s.step <= s.max ? e.value += s.step : e.value = s.max;
869
- }, c = () => {
870
- e.value - s.step > s.min ? e.value -= s.step : e.value = s.min;
1175
+ [`mc-quantity-selector--${a.size}`]: a.size && a.size != "m",
1176
+ "is-invalid": a.isInvalid
1177
+ })), s = () => {
1178
+ t.value + a.step <= a.max ? t.value += a.step : t.value = a.max;
1179
+ }, i = () => {
1180
+ t.value - a.step > a.min ? t.value -= a.step : t.value = a.min;
871
1181
  }, u = (m) => {
872
- e.value = m, e.value > s.max && (e.value = s.max), e.value <= s.min && (e.value = s.min), p("update:modelValue", e.value);
873
- }, p = a;
874
- return (m, r) => (l(), n("div", {
875
- class: $(["mc-quantity-selector", o.value])
1182
+ t.value = m, t.value > a.max && (t.value = a.max), t.value <= a.min && (t.value = a.min), p("update:modelValue", t.value);
1183
+ }, p = e;
1184
+ return (m, c) => (l(), n("div", {
1185
+ class: g(["mc-quantity-selector", o.value])
876
1186
  }, [
877
- D(i("input", k({
1187
+ K(r("input", B({
878
1188
  id: m.id,
879
- "onUpdate:modelValue": r[0] || (r[0] = (_) => e.value = _),
1189
+ "onUpdate:modelValue": c[0] || (c[0] = (v) => t.value = v),
880
1190
  class: "mc-quantity-selector__control",
881
1191
  type: "number",
882
1192
  name: m.name,
@@ -888,11 +1198,11 @@ const pa = /* @__PURE__ */ v(ra, [["render", ua]]), ma = ["id", "name", "disable
888
1198
  "aria-invalid": m.isInvalid,
889
1199
  "aria-valuemin": m.min,
890
1200
  "aria-valuemax": m.max,
891
- "aria-valuenow": e.value
1201
+ "aria-valuenow": t.value
892
1202
  }, m.$attrs, {
893
- onChange: r[1] || (r[1] = (_) => u(Number(_.target.value)))
894
- }), null, 16, ma), [
895
- [G, e.value]
1203
+ onChange: c[1] || (c[1] = (v) => u(Number(v.target.value)))
1204
+ }), null, 16, Ya), [
1205
+ [Z, t.value]
896
1206
  ]),
897
1207
  m.readonly ? h("", !0) : (l(), n("button", {
898
1208
  key: 0,
@@ -900,31 +1210,31 @@ const pa = /* @__PURE__ */ v(ra, [["render", ua]]), ma = ["id", "name", "disable
900
1210
  "aria-controls": m.id,
901
1211
  class: "mc-quantity-selector__button mc-quantity-selector__button--increase",
902
1212
  tabindex: "-1",
903
- disabled: m.disabled || e.value === m.max,
904
- onClick: t
1213
+ disabled: m.disabled || t.value === m.max,
1214
+ onClick: s
905
1215
  }, [
906
- i("span", va, [
907
- g(da)
1216
+ r("span", xa, [
1217
+ w(Ea)
908
1218
  ]),
909
- i("span", ba, f(m.incrementlabel), 1)
910
- ], 8, _a)),
1219
+ r("span", et, f(m.incrementlabel), 1)
1220
+ ], 8, Za)),
911
1221
  m.readonly ? h("", !0) : (l(), n("button", {
912
1222
  key: 1,
913
1223
  type: "button",
914
1224
  "aria-controls": m.id,
915
1225
  class: "mc-quantity-selector__button mc-quantity-selector__button--decrease",
916
1226
  tabindex: "-1",
917
- disabled: m.disabled || e.value === m.min,
918
- onClick: c
1227
+ disabled: m.disabled || t.value === m.min,
1228
+ onClick: i
919
1229
  }, [
920
- i("span", ha, [
921
- g(pa)
1230
+ r("span", tt, [
1231
+ w(Xa)
922
1232
  ]),
923
- i("span", $a, f(m.decrementLabel), 1)
924
- ], 8, fa))
1233
+ r("span", st, f(m.decrementLabel), 1)
1234
+ ], 8, at))
925
1235
  ], 2));
926
1236
  }
927
- }), Zt = /* @__PURE__ */ v(ya, [["__scopeId", "data-v-a732650a"]]), ga = { class: "mc-radio" }, ka = ["id", "name", "checked", "disabled", "aria-invalid"], Va = ["for"], Ca = /* @__PURE__ */ y({
1237
+ }), Vs = /* @__PURE__ */ _(lt, [["__scopeId", "data-v-a732650a"]]), ot = { class: "mc-radio" }, nt = ["id", "name", "checked", "disabled", "aria-invalid"], it = ["for"], dt = /* @__PURE__ */ y({
928
1238
  __name: "MRadio",
929
1239
  props: {
930
1240
  id: {},
@@ -935,30 +1245,30 @@ const pa = /* @__PURE__ */ v(ra, [["render", ua]]), ma = ["id", "name", "disable
935
1245
  disabled: { type: Boolean }
936
1246
  },
937
1247
  emits: ["update:modelValue"],
938
- setup(d, { emit: a }) {
939
- const s = d, e = b(() => ({
940
- "is-invalid": s.isInvalid
941
- })), o = a;
942
- return (t, c) => (l(), n("div", ga, [
943
- i("input", k({
944
- id: t.id,
1248
+ setup(d, { emit: e }) {
1249
+ const a = d, t = b(() => ({
1250
+ "is-invalid": a.isInvalid
1251
+ })), o = e;
1252
+ return (s, i) => (l(), n("div", ot, [
1253
+ r("input", B({
1254
+ id: s.id,
945
1255
  type: "radio",
946
- class: ["mc-radio__input", e.value],
947
- name: t.name,
948
- checked: t.modelValue,
949
- disabled: t.disabled,
950
- "aria-invalid": t.isInvalid
951
- }, t.$attrs, {
952
- onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.checked))
953
- }), null, 16, ka),
954
- t.label ? (l(), n("label", {
1256
+ class: ["mc-radio__input", t.value],
1257
+ name: s.name,
1258
+ checked: s.modelValue,
1259
+ disabled: s.disabled,
1260
+ "aria-invalid": s.isInvalid
1261
+ }, s.$attrs, {
1262
+ onChange: i[0] || (i[0] = (u) => o("update:modelValue", u.target.checked))
1263
+ }), null, 16, nt),
1264
+ s.label ? (l(), n("label", {
955
1265
  key: 0,
956
- for: t.id,
1266
+ for: s.id,
957
1267
  class: "mc-radio__label"
958
- }, f(t.label), 9, Va)) : h("", !0)
1268
+ }, f(s.label), 9, it)) : h("", !0)
959
1269
  ]));
960
1270
  }
961
- }), wa = /* @__PURE__ */ v(Ca, [["__scopeId", "data-v-da78938c"]]), Ia = /* @__PURE__ */ y({
1271
+ }), rt = /* @__PURE__ */ _(dt, [["__scopeId", "data-v-da78938c"]]), ct = /* @__PURE__ */ y({
962
1272
  __name: "MRadioGroup",
963
1273
  props: {
964
1274
  name: {},
@@ -968,61 +1278,61 @@ const pa = /* @__PURE__ */ v(ra, [["render", ua]]), ma = ["id", "name", "disable
968
1278
  inline: { type: Boolean }
969
1279
  },
970
1280
  emits: ["update:modelValue"],
971
- setup(d, { emit: a }) {
972
- const s = d, e = b(() => ({
973
- "mc-field__container--inline": s.inline
1281
+ setup(d, { emit: e }) {
1282
+ const a = d, t = b(() => ({
1283
+ "mc-field__container--inline": a.inline
974
1284
  })), o = b(() => ({
975
- "mc-field__container--inline__item": s.inline
976
- })), t = a;
977
- return (c, u) => (l(), n("div", {
978
- class: $(["mc-field__container", e.value])
1285
+ "mc-field__container--inline__item": a.inline
1286
+ })), s = e;
1287
+ return (i, u) => (l(), n("div", {
1288
+ class: g(["mc-field__container", t.value])
979
1289
  }, [
980
- (l(!0), n(z, null, L(c.options, (p) => (l(), C(wa, {
1290
+ (l(!0), n(O, null, S(i.options, (p) => (l(), I(rt, {
981
1291
  id: p.id,
982
1292
  key: p.id,
983
1293
  label: p.label,
984
- "is-invalid": c.isInvalid,
985
- name: c.name,
986
- class: $(["mc-field__item", o.value]),
987
- "model-value": c.modelValue === p.value,
1294
+ "is-invalid": i.isInvalid,
1295
+ name: i.name,
1296
+ class: g(["mc-field__item", o.value]),
1297
+ "model-value": i.modelValue === p.value,
988
1298
  disabled: p.disabled,
989
- "onUpdate:modelValue": (m) => m ? t("update:modelValue", p.value) : null
1299
+ "onUpdate:modelValue": (m) => m ? s("update:modelValue", p.value) : null
990
1300
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
991
1301
  ], 2));
992
1302
  }
993
- }), Nt = /* @__PURE__ */ v(Ia, [["__scopeId", "data-v-d2f5e103"]]), Ba = /* @__PURE__ */ y({
1303
+ }), Bs = /* @__PURE__ */ _(ct, [["__scopeId", "data-v-d2f5e103"]]), ut = /* @__PURE__ */ y({
994
1304
  __name: "MStatusDot",
995
1305
  props: {
996
1306
  status: { default: "info" },
997
1307
  size: {}
998
1308
  },
999
1309
  setup(d) {
1000
- const a = d, s = b(() => ({
1001
- [`mc-status-dot--${a.status}`]: a.status && a.status != "info",
1002
- [`mc-status-dot--${a.size}`]: a.size && a.size != "m"
1310
+ const e = d, a = b(() => ({
1311
+ [`mc-status-dot--${e.status}`]: e.status && e.status != "info",
1312
+ [`mc-status-dot--${e.size}`]: e.size && e.size != "m"
1003
1313
  }));
1004
- return (e, o) => (l(), n("span", {
1005
- class: $(["mc-status-dot", s.value])
1314
+ return (t, o) => (l(), n("span", {
1315
+ class: g(["mc-status-dot", a.value])
1006
1316
  }, null, 2));
1007
1317
  }
1008
- }), Ma = /* @__PURE__ */ v(Ba, [["__scopeId", "data-v-417b563f"]]), za = { class: "mc-status-badge__label" }, La = /* @__PURE__ */ y({
1318
+ }), pt = /* @__PURE__ */ _(ut, [["__scopeId", "data-v-417b563f"]]), mt = { class: "mc-status-badge__label" }, _t = /* @__PURE__ */ y({
1009
1319
  __name: "MStatusBadge",
1010
1320
  props: {
1011
1321
  label: {},
1012
1322
  status: { default: "info" }
1013
1323
  },
1014
1324
  setup(d) {
1015
- const a = d, s = b(() => ({
1016
- [`mc-status-badge--${a.status}`]: a.status && a.status != "info"
1325
+ const e = d, a = b(() => ({
1326
+ [`mc-status-badge--${e.status}`]: e.status && e.status != "info"
1017
1327
  }));
1018
- return (e, o) => (l(), n("div", {
1019
- class: $(["mc-status-badge", s.value])
1328
+ return (t, o) => (l(), n("div", {
1329
+ class: g(["mc-status-badge", a.value])
1020
1330
  }, [
1021
- g(Ma, { status: e.status }, null, 8, ["status"]),
1022
- i("span", za, f(e.label), 1)
1331
+ w(pt, { status: t.status }, null, 8, ["status"]),
1332
+ r("span", mt, f(t.label), 1)
1023
1333
  ], 2));
1024
1334
  }
1025
- }), Dt = /* @__PURE__ */ v(La, [["__scopeId", "data-v-3e437a03"]]), Sa = {
1335
+ }), Is = /* @__PURE__ */ _(_t, [["__scopeId", "data-v-3e437a03"]]), vt = {
1026
1336
  name: "Cross20",
1027
1337
  props: {
1028
1338
  /**
@@ -1033,31 +1343,24 @@ const pa = /* @__PURE__ */ v(ra, [["render", ua]]), ma = ["id", "name", "disable
1033
1343
  default: "currentColor"
1034
1344
  }
1035
1345
  }
1036
- }, Oa = {
1037
- xmlns: "http://www.w3.org/2000/svg",
1038
- viewBox: "0 0 20 20"
1039
- };
1040
- function Ta(d, a, s, e, o, t) {
1041
- return l(), n("svg", Oa, a[0] || (a[0] = [
1042
- i("g", { "clip-path": "url(#a)" }, [
1043
- i("path", {
1044
- "fill-rule": "evenodd",
1045
- d: "M16.364 4.697a.75.75 0 1 0-1.061-1.06L10 8.938 4.697 3.636a.75.75 0 0 0-1.06 1.06L8.938 10l-5.303 5.303a.75.75 0 0 0 1.061 1.06L10 11.06l5.303 5.303a.75.75 0 0 0 1.06-1.06L11.062 10l5.303-5.303Z"
1046
- })
1047
- ], -1),
1048
- i("defs", null, [
1049
- i("clipPath", { id: "a" }, [
1050
- i("rect", {
1051
- width: "20",
1052
- height: "20",
1053
- fill: "#fff"
1054
- })
1055
- ])
1056
- ], -1)
1057
- ]));
1346
+ }, bt = ["fill"];
1347
+ function ft(d, e, a, t, o, s) {
1348
+ return l(), n("svg", {
1349
+ "aria-hidden": "true",
1350
+ fill: a.color,
1351
+ xmlns: "http://www.w3.org/2000/svg",
1352
+ viewBox: "0 0 20 20",
1353
+ width: "20",
1354
+ height: "20"
1355
+ }, e[0] || (e[0] = [
1356
+ r("path", {
1357
+ "fill-rule": "evenodd",
1358
+ d: "M14.697 6.364a.75.75 0 1 0-1.061-1.061L10 8.939 6.363 5.303a.75.75 0 0 0-1.06 1.06L8.939 10l-3.636 3.636a.75.75 0 1 0 1.06 1.06L10 11.062l3.636 3.636a.75.75 0 0 0 1.06-1.06L11.06 10z"
1359
+ }, null, -1)
1360
+ ]), 8, bt);
1058
1361
  }
1059
- const ja = /* @__PURE__ */ v(Sa, [["render", Ta]]), qa = {
1060
- name: "InfoCircle32",
1362
+ const ht = /* @__PURE__ */ _(vt, [["render", ft]]), $t = {
1363
+ name: "InfoCircleFilled32",
1061
1364
  props: {
1062
1365
  /**
1063
1366
  * Icon color
@@ -1067,20 +1370,24 @@ const ja = /* @__PURE__ */ v(Sa, [["render", Ta]]), qa = {
1067
1370
  default: "currentColor"
1068
1371
  }
1069
1372
  }
1070
- }, Pa = {
1071
- xmlns: "http://www.w3.org/2000/svg",
1072
- viewBox: "0 0 32 32"
1073
- };
1074
- function Za(d, a, s, e, o, t) {
1075
- return l(), n("svg", Pa, a[0] || (a[0] = [
1076
- i("path", {
1373
+ }, yt = ["fill"];
1374
+ function gt(d, e, a, t, o, s) {
1375
+ return l(), n("svg", {
1376
+ "aria-hidden": "true",
1377
+ fill: a.color,
1378
+ xmlns: "http://www.w3.org/2000/svg",
1379
+ viewBox: "0 0 32 32",
1380
+ width: "32",
1381
+ height: "32"
1382
+ }, e[0] || (e[0] = [
1383
+ r("path", {
1077
1384
  "fill-rule": "evenodd",
1078
- d: "M16 5C9.925 5 5 9.925 5 16s4.925 11 11 11 11-4.925 11-11S22.075 5 16 5ZM3 16C3 8.82 8.82 3 16 3s13 5.82 13 13-5.82 13-13 13S3 23.18 3 16Zm13-2.333a1 1 0 0 1 1 1v6.666a1 1 0 1 1-2 0v-6.666a1 1 0 0 1 1-1ZM16 12a1.333 1.333 0 1 0 0-2.667A1.333 1.333 0 0 0 16 12Z"
1385
+ d: "M16 3C8.82 3 3 8.82 3 16s5.82 13 13 13 13-5.82 13-13S23.18 3 16 3m0 9a1.333 1.333 0 1 0 0-2.667A1.333 1.333 0 0 0 16 12m1 2.667a1 1 0 1 0-2 0v6.666a1 1 0 1 0 2 0z"
1079
1386
  }, null, -1)
1080
- ]));
1387
+ ]), 8, yt);
1081
1388
  }
1082
- const Na = /* @__PURE__ */ v(qa, [["render", Za]]), Da = {
1083
- name: "WarningCircle32",
1389
+ const kt = /* @__PURE__ */ _($t, [["render", gt]]), wt = {
1390
+ name: "WarningCircleFilled32",
1084
1391
  props: {
1085
1392
  /**
1086
1393
  * Icon color
@@ -1090,20 +1397,24 @@ const Na = /* @__PURE__ */ v(qa, [["render", Za]]), Da = {
1090
1397
  default: "currentColor"
1091
1398
  }
1092
1399
  }
1093
- }, Ua = {
1094
- xmlns: "http://www.w3.org/2000/svg",
1095
- viewBox: "0 0 32 32"
1096
- };
1097
- function Fa(d, a, s, e, o, t) {
1098
- return l(), n("svg", Ua, a[0] || (a[0] = [
1099
- i("path", {
1400
+ }, Vt = ["fill"];
1401
+ function Bt(d, e, a, t, o, s) {
1402
+ return l(), n("svg", {
1403
+ "aria-hidden": "true",
1404
+ fill: a.color,
1405
+ xmlns: "http://www.w3.org/2000/svg",
1406
+ viewBox: "0 0 32 32",
1407
+ width: "32",
1408
+ height: "32"
1409
+ }, e[0] || (e[0] = [
1410
+ r("path", {
1100
1411
  "fill-rule": "evenodd",
1101
- d: "M16 5C9.925 5 5 9.925 5 16s4.925 11 11 11 11-4.925 11-11S22.075 5 16 5ZM3 16C3 8.82 8.82 3 16 3s13 5.82 13 13-5.82 13-13 13S3 23.18 3 16Zm13-6.333a1 1 0 0 1 1 1v6.666a1 1 0 1 1-2 0v-6.666a1 1 0 0 1 1-1Zm0 13A1.333 1.333 0 1 0 16 20a1.333 1.333 0 0 0 0 2.667Z"
1412
+ d: "M16 3C8.82 3 3 8.82 3 16s5.82 13 13 13 13-5.82 13-13S23.18 3 16 3m1 7.667a1 1 0 1 0-2 0v6.666a1 1 0 1 0 2 0zm-1 12A1.333 1.333 0 1 0 16 20a1.333 1.333 0 0 0 0 2.667"
1102
1413
  }, null, -1)
1103
- ]));
1414
+ ]), 8, Vt);
1104
1415
  }
1105
- const Ga = /* @__PURE__ */ v(Da, [["render", Fa]]), Ra = {
1106
- name: "CrossCircle32",
1416
+ const It = /* @__PURE__ */ _(wt, [["render", Bt]]), Ct = {
1417
+ name: "CrossCircleFilled32",
1107
1418
  props: {
1108
1419
  /**
1109
1420
  * Icon color
@@ -1113,20 +1424,24 @@ const Ga = /* @__PURE__ */ v(Da, [["render", Fa]]), Ra = {
1113
1424
  default: "currentColor"
1114
1425
  }
1115
1426
  }
1116
- }, Aa = {
1117
- xmlns: "http://www.w3.org/2000/svg",
1118
- viewBox: "0 0 32 32"
1119
- };
1120
- function Ha(d, a, s, e, o, t) {
1121
- return l(), n("svg", Aa, a[0] || (a[0] = [
1122
- i("path", {
1427
+ }, Mt = ["fill"];
1428
+ function zt(d, e, a, t, o, s) {
1429
+ return l(), n("svg", {
1430
+ "aria-hidden": "true",
1431
+ fill: a.color,
1432
+ xmlns: "http://www.w3.org/2000/svg",
1433
+ viewBox: "0 0 32 32",
1434
+ width: "32",
1435
+ height: "32"
1436
+ }, e[0] || (e[0] = [
1437
+ r("path", {
1123
1438
  "fill-rule": "evenodd",
1124
- d: "M5 16C5 9.925 9.925 5 16 5s11 4.925 11 11-4.925 11-11 11S5 22.075 5 16ZM16 3C8.82 3 3 8.82 3 16s5.82 13 13 13 13-5.82 13-13S23.18 3 16 3Zm-3.293 8.293a1 1 0 0 0-1.414 1.414L14.586 16l-3.293 3.293a1 1 0 0 0 1.414 1.414L16 17.414l3.293 3.293a1 1 0 0 0 1.414-1.414L17.414 16l3.293-3.293a1 1 0 0 0-1.414-1.414L16 14.586l-3.293-3.293Z"
1439
+ d: "M16 3C8.82 3 3 8.82 3 16s5.82 13 13 13 13-5.82 13-13S23.18 3 16 3m-4.707 8.293a1 1 0 0 1 1.414 0L16 14.586l3.293-3.293a1 1 0 0 1 1.414 1.414L17.414 16l3.293 3.293a1 1 0 0 1-1.414 1.414L16 17.414l-3.293 3.293a1 1 0 0 1-1.414-1.414L14.586 16l-3.293-3.293a1 1 0 0 1 0-1.414"
1125
1440
  }, null, -1)
1126
- ]));
1441
+ ]), 8, Mt);
1127
1442
  }
1128
- const Ea = /* @__PURE__ */ v(Ra, [["render", Ha]]), Qa = {
1129
- name: "CheckCircle32",
1443
+ const Lt = /* @__PURE__ */ _(Ct, [["render", zt]]), Tt = {
1444
+ name: "CheckCircleFilled32",
1130
1445
  props: {
1131
1446
  /**
1132
1447
  * Icon color
@@ -1136,22 +1451,26 @@ const Ea = /* @__PURE__ */ v(Ra, [["render", Ha]]), Qa = {
1136
1451
  default: "currentColor"
1137
1452
  }
1138
1453
  }
1139
- }, Wa = {
1140
- xmlns: "http://www.w3.org/2000/svg",
1141
- viewBox: "0 0 32 32"
1142
- };
1143
- function Ja(d, a, s, e, o, t) {
1144
- return l(), n("svg", Wa, a[0] || (a[0] = [
1145
- i("path", {
1454
+ }, jt = ["fill"];
1455
+ function Ot(d, e, a, t, o, s) {
1456
+ return l(), n("svg", {
1457
+ "aria-hidden": "true",
1458
+ fill: a.color,
1459
+ xmlns: "http://www.w3.org/2000/svg",
1460
+ viewBox: "0 0 32 32",
1461
+ width: "32",
1462
+ height: "32"
1463
+ }, e[0] || (e[0] = [
1464
+ r("path", {
1146
1465
  "fill-rule": "evenodd",
1147
- d: "M5 16C5 9.925 9.925 5 16 5s11 4.925 11 11-4.925 11-11 11S5 22.075 5 16ZM16 3C8.82 3 3 8.82 3 16s5.82 13 13 13 13-5.82 13-13S23.18 3 16 3Zm6.707 10.374a1 1 0 0 0-1.414-1.414l-6.626 6.626-3.293-3.293a1 1 0 0 0-1.414 1.414l4 4a1 1 0 0 0 1.414 0l7.333-7.333Z"
1466
+ d: "M16 3C8.82 3 3 8.82 3 16s5.82 13 13 13 13-5.82 13-13S23.18 3 16 3m6.707 8.96a1 1 0 0 1 0 1.414l-7.333 7.333a1 1 0 0 1-1.414 0l-4-4a1 1 0 1 1 1.414-1.414l3.293 3.293 6.626-6.626a1 1 0 0 1 1.414 0"
1148
1467
  }, null, -1)
1149
- ]));
1468
+ ]), 8, jt);
1150
1469
  }
1151
- const Ka = /* @__PURE__ */ v(Qa, [["render", Ja]]), Xa = { class: "mc-status-notification__content" }, Ya = { class: "mc-status-notification__title" }, xa = { class: "mc-status-notification__message" }, et = {
1470
+ const St = /* @__PURE__ */ _(Tt, [["render", Ot]]), qt = { class: "mc-status-notification__content" }, Pt = { class: "mc-status-notification__title" }, Dt = { class: "mc-status-notification__message" }, Ft = {
1152
1471
  key: 0,
1153
1472
  class: "mc-status-notification__footer"
1154
- }, at = /* @__PURE__ */ y({
1473
+ }, Nt = /* @__PURE__ */ y({
1155
1474
  __name: "MStatusNotification",
1156
1475
  props: {
1157
1476
  title: {},
@@ -1160,54 +1479,54 @@ const Ka = /* @__PURE__ */ v(Qa, [["render", Ja]]), Xa = { class: "mc-status-not
1160
1479
  closable: { type: Boolean }
1161
1480
  },
1162
1481
  emits: ["close"],
1163
- setup(d, { emit: a }) {
1164
- const s = d, e = b(() => ({
1165
- [`mc-status-notification--${s.status}`]: s.status && s.status != "info"
1482
+ setup(d, { emit: e }) {
1483
+ const a = d, t = b(() => ({
1484
+ [`mc-status-notification--${a.status}`]: a.status && a.status != "info"
1166
1485
  })), o = b(() => {
1167
- switch (s.status) {
1486
+ switch (a.status) {
1168
1487
  case "success":
1169
- return Ka;
1488
+ return St;
1170
1489
  case "warning":
1171
- return Ga;
1490
+ return It;
1172
1491
  case "error":
1173
- return Ea;
1492
+ return Lt;
1174
1493
  case "info":
1175
1494
  default:
1176
- return Na;
1495
+ return kt;
1177
1496
  }
1178
- }), t = a;
1179
- return (c, u) => (l(), n("section", {
1180
- class: $(["mc-status-notification", e.value]),
1497
+ }), s = e;
1498
+ return (i, u) => (l(), n("section", {
1499
+ class: g(["mc-status-notification", t.value]),
1181
1500
  role: "status"
1182
1501
  }, [
1183
- (l(), C(j(o.value), {
1502
+ (l(), I(N(o.value), {
1184
1503
  class: "mc-status-notification__icon",
1185
1504
  "aria-hidden": "true"
1186
1505
  })),
1187
- i("div", Xa, [
1188
- i("h2", Ya, f(c.title), 1),
1189
- i("p", xa, f(c.description), 1),
1190
- c.$slots.footer ? (l(), n("div", et, [
1191
- V(c.$slots, "footer", {}, void 0, !0)
1506
+ r("div", qt, [
1507
+ r("h2", Pt, f(i.title), 1),
1508
+ r("p", Dt, f(i.description), 1),
1509
+ i.$slots.footer ? (l(), n("div", Ft, [
1510
+ V(i.$slots, "footer", {}, void 0, !0)
1192
1511
  ])) : h("", !0)
1193
1512
  ]),
1194
- c.closable ? (l(), n("button", {
1513
+ i.closable ? (l(), n("button", {
1195
1514
  key: 0,
1196
1515
  class: "mc-status-notification-closable__close",
1197
- onClick: u[0] || (u[0] = (p) => t("close"))
1516
+ onClick: u[0] || (u[0] = (p) => s("close"))
1198
1517
  }, [
1199
- g(ja, {
1518
+ w(ht, {
1200
1519
  class: "mc-status-notification-closable__icon",
1201
1520
  "aria-hidden": "true"
1202
1521
  }),
1203
- u[1] || (u[1] = i("span", { class: "mc-status-notification-closable__text" }, "Close", -1))
1522
+ u[1] || (u[1] = r("span", { class: "mc-status-notification-closable__text" }, "Close", -1))
1204
1523
  ])) : h("", !0)
1205
1524
  ], 2));
1206
1525
  }
1207
- }), Ut = /* @__PURE__ */ v(at, [["__scopeId", "data-v-d6e3be16"]]), tt = ["aria-label"], st = ["aria-selected", "onClick"], lt = {
1526
+ }), Cs = /* @__PURE__ */ _(Nt, [["__scopeId", "data-v-457733a1"]]), At = ["aria-label"], Rt = ["aria-selected", "onClick"], Gt = {
1208
1527
  key: 0,
1209
1528
  class: "mc-tabs__icon"
1210
- }, nt = { class: "mc-tabs__label" }, ot = /* @__PURE__ */ y({
1529
+ }, Ut = { class: "mc-tabs__label" }, Kt = /* @__PURE__ */ y({
1211
1530
  __name: "MTabs",
1212
1531
  props: {
1213
1532
  description: {},
@@ -1217,50 +1536,50 @@ const Ka = /* @__PURE__ */ v(Qa, [["render", Ja]]), Xa = { class: "mc-status-not
1217
1536
  tabs: {}
1218
1537
  },
1219
1538
  emits: ["update:modelValue"],
1220
- setup(d, { emit: a }) {
1221
- const s = d, e = b(() => ({
1222
- "mc-tabs--centered": s.centered
1223
- })), o = B(s.modelValue), t = (p) => {
1224
- s.tabs[p].disabled || p !== o.value && (o.value = p, u("update:modelValue", p));
1225
- }, c = (p) => o.value === p, u = a;
1539
+ setup(d, { emit: e }) {
1540
+ const a = d, t = b(() => ({
1541
+ "mc-tabs--centered": a.centered
1542
+ })), o = L(a.modelValue), s = (p) => {
1543
+ a.tabs[p].disabled || p !== o.value && (o.value = p, u("update:modelValue", p));
1544
+ }, i = (p) => o.value === p, u = e;
1226
1545
  return (p, m) => (l(), n("nav", {
1227
- class: $(["mc-tabs", e.value])
1546
+ class: g(["mc-tabs", t.value])
1228
1547
  }, [
1229
- i("ul", {
1548
+ r("ul", {
1230
1549
  role: "tablist",
1231
1550
  class: "mc-tabs__list",
1232
1551
  "aria-label": p.description
1233
1552
  }, [
1234
- (l(!0), n(z, null, L(p.tabs, (r, _) => (l(), n("li", {
1235
- key: `tab-${_}`,
1553
+ (l(!0), n(O, null, S(p.tabs, (c, v) => (l(), n("li", {
1554
+ key: `tab-${v}`,
1236
1555
  role: "presentation",
1237
1556
  class: "mc-tabs__item"
1238
1557
  }, [
1239
- i("button", {
1558
+ r("button", {
1240
1559
  ref_for: !0,
1241
1560
  ref: "tab",
1242
1561
  role: "tab",
1243
- class: $(["mc-tabs__tab", {
1244
- "mc-tabs__tab--selected": c(_),
1245
- "mc-tabs__tab--disabled": r.disabled
1562
+ class: g(["mc-tabs__tab", {
1563
+ "mc-tabs__tab--selected": i(v),
1564
+ "mc-tabs__tab--disabled": c.disabled
1246
1565
  }]),
1247
- "aria-selected": c(_),
1566
+ "aria-selected": i(v),
1248
1567
  type: "button",
1249
- onClick: (I) => t(_)
1568
+ onClick: (z) => s(v)
1250
1569
  }, [
1251
- r.icon ? (l(), n("span", lt, [
1252
- (l(), C(j(r.icon)))
1570
+ c.icon ? (l(), n("span", Gt, [
1571
+ (l(), I(N(c.icon)))
1253
1572
  ])) : h("", !0),
1254
- i("div", nt, [
1255
- i("span", null, f(r.label), 1)
1573
+ r("div", Ut, [
1574
+ r("span", null, f(c.label), 1)
1256
1575
  ])
1257
- ], 10, st)
1576
+ ], 10, Rt)
1258
1577
  ]))), 128))
1259
- ], 8, tt),
1260
- p.divider ? (l(), C(be, { key: 0 })) : h("", !0)
1578
+ ], 8, At),
1579
+ p.divider ? (l(), I(Be, { key: 0 })) : h("", !0)
1261
1580
  ], 2));
1262
1581
  }
1263
- }), Ft = /* @__PURE__ */ v(ot, [["__scopeId", "data-v-fcad128f"]]), it = ["for"], dt = ["id", "name", "checked", "disabled"], rt = { class: "mc-tag__label" }, ct = ["disabled"], ut = { class: "mc-tag__label" }, pt = ["disabled"], mt = { class: "mc-tag__label" }, _t = { class: "mc-tag__label" }, vt = { class: "mc-tag__label" }, bt = /* @__PURE__ */ y({
1582
+ }), Ms = /* @__PURE__ */ _(Kt, [["__scopeId", "data-v-3919f834"]]), Ht = ["for"], Et = ["id", "name", "checked", "disabled"], Qt = { class: "mc-tag__label" }, Wt = ["disabled"], Jt = { class: "mc-tag__label" }, Xt = ["disabled"], Yt = { class: "mc-tag__label" }, Zt = { class: "mc-tag__label" }, xt = { class: "mc-tag__label" }, es = /* @__PURE__ */ y({
1264
1583
  __name: "MTag",
1265
1584
  props: {
1266
1585
  type: { default: "informative" },
@@ -1274,69 +1593,69 @@ const Ka = /* @__PURE__ */ v(Qa, [["render", Ja]]), Xa = { class: "mc-status-not
1274
1593
  removableLabel: {}
1275
1594
  },
1276
1595
  emits: ["update:modelValue", "remove-tag"],
1277
- setup(d, { emit: a }) {
1278
- const s = d, e = b(() => ({
1279
- [`mc-tag-${s.type}`]: s.type && s.type != "informative",
1280
- [`mc-tag--${s.size}`]: s.size && s.size != "m"
1281
- })), o = a;
1282
- return (t, c) => t.type === "selectable" ? (l(), n("label", {
1596
+ setup(d, { emit: e }) {
1597
+ const a = d, t = b(() => ({
1598
+ [`mc-tag-${a.type}`]: a.type && a.type != "informative",
1599
+ [`mc-tag--${a.size}`]: a.size && a.size != "m"
1600
+ })), o = e;
1601
+ return (s, i) => s.type === "selectable" ? (l(), n("label", {
1283
1602
  key: 0,
1284
- for: t.id,
1285
- class: $(["mc-tag", e.value])
1603
+ for: s.id,
1604
+ class: g(["mc-tag", t.value])
1286
1605
  }, [
1287
- i("input", k({
1606
+ r("input", B({
1288
1607
  type: "checkbox",
1289
1608
  class: "mc-tag__input",
1290
- id: t.id,
1291
- name: t.name,
1292
- checked: t.modelValue,
1293
- disabled: t.disabled,
1294
- onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.checked))
1295
- }, t.$attrs), null, 16, dt),
1296
- i("span", rt, f(t.label), 1)
1297
- ], 10, it)) : t.type === "interactive" ? (l(), n("button", k({
1609
+ id: s.id,
1610
+ name: s.name,
1611
+ checked: s.modelValue,
1612
+ disabled: s.disabled,
1613
+ onChange: i[0] || (i[0] = (u) => o("update:modelValue", u.target.checked))
1614
+ }, s.$attrs), null, 16, Et),
1615
+ r("span", Qt, f(s.label), 1)
1616
+ ], 10, Ht)) : s.type === "interactive" ? (l(), n("button", B({
1298
1617
  key: 1,
1299
- class: ["mc-tag", e.value],
1618
+ class: ["mc-tag", t.value],
1300
1619
  type: "button",
1301
- disabled: t.disabled
1302
- }, t.$attrs), [
1303
- i("span", ut, f(t.label), 1)
1304
- ], 16, ct)) : t.type === "contextualised" ? (l(), n("button", k({
1620
+ disabled: s.disabled
1621
+ }, s.$attrs), [
1622
+ r("span", Jt, f(s.label), 1)
1623
+ ], 16, Wt)) : s.type === "contextualised" ? (l(), n("button", B({
1305
1624
  key: 2,
1306
- class: ["mc-tag", e.value],
1625
+ class: ["mc-tag", t.value],
1307
1626
  type: "button",
1308
- disabled: t.disabled
1309
- }, t.$attrs), [
1310
- g(je, {
1627
+ disabled: s.disabled
1628
+ }, s.$attrs), [
1629
+ w(ha, {
1311
1630
  appearance: "inverse",
1312
- label: t.contextualisedNumber,
1313
- size: t.size === "l" ? "m" : void 0
1631
+ label: s.contextualisedNumber,
1632
+ size: s.size === "l" ? "m" : void 0
1314
1633
  }, null, 8, ["label", "size"]),
1315
- i("span", mt, f(t.label), 1)
1316
- ], 16, pt)) : t.type === "removable" ? (l(), n("span", k({
1634
+ r("span", Yt, f(s.label), 1)
1635
+ ], 16, Xt)) : s.type === "removable" ? (l(), n("span", B({
1317
1636
  key: 3,
1318
- class: ["mc-tag", e.value]
1319
- }, t.$attrs), [
1320
- i("span", _t, f(t.label), 1),
1321
- i("button", {
1637
+ class: ["mc-tag", t.value]
1638
+ }, s.$attrs), [
1639
+ r("span", Zt, f(s.label), 1),
1640
+ r("button", {
1322
1641
  class: "mc-tag-removable__remove",
1323
1642
  type: "button",
1324
- onClick: c[1] || (c[1] = (u) => t.id && o("remove-tag", t.id))
1643
+ onClick: i[1] || (i[1] = (u) => s.id && o("remove-tag", s.id))
1325
1644
  }, [
1326
- g(q, {
1645
+ w(R, {
1327
1646
  class: "mc-tag-removable__icon",
1328
1647
  "aria-hidden": "true"
1329
1648
  }),
1330
- c[2] || (c[2] = i("span", { class: "mc-tag-removable__text" }, "removableLabel", -1))
1649
+ i[2] || (i[2] = r("span", { class: "mc-tag-removable__text" }, "removableLabel", -1))
1331
1650
  ])
1332
- ], 16)) : (l(), n("span", k({
1651
+ ], 16)) : (l(), n("span", B({
1333
1652
  key: 4,
1334
- class: ["mc-tag", e.value]
1335
- }, t.$attrs), [
1336
- i("span", vt, f(t.label), 1)
1653
+ class: ["mc-tag", t.value]
1654
+ }, s.$attrs), [
1655
+ r("span", xt, f(s.label), 1)
1337
1656
  ], 16));
1338
1657
  }
1339
- }), Gt = /* @__PURE__ */ v(bt, [["__scopeId", "data-v-6a66ee2d"]]), ft = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], ht = /* @__PURE__ */ y({
1658
+ }), zs = /* @__PURE__ */ _(es, [["__scopeId", "data-v-a3166010"]]), as = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], ts = /* @__PURE__ */ y({
1340
1659
  __name: "MTextArea",
1341
1660
  props: {
1342
1661
  id: {},
@@ -1351,33 +1670,33 @@ const Ka = /* @__PURE__ */ v(Qa, [["render", Ja]]), Xa = { class: "mc-status-not
1351
1670
  readonly: { type: Boolean }
1352
1671
  },
1353
1672
  emits: ["update:modelValue"],
1354
- setup(d, { emit: a }) {
1355
- const s = d, e = b(() => ({
1356
- "is-invalid": s.isInvalid
1357
- })), o = a;
1358
- return (t, c) => (l(), n("textarea", k({
1359
- id: t.id,
1360
- class: ["mc-textarea", e.value],
1361
- "aria-invalid": t.isInvalid,
1362
- value: t.modelValue,
1363
- name: t.name,
1364
- placeholder: t.placeholder,
1365
- disabled: t.disabled,
1366
- minlength: t.minLength,
1367
- maxlength: t.maxLength,
1368
- rows: t.rows,
1369
- readonly: t.readonly
1370
- }, t.$attrs, {
1371
- onInput: c[0] || (c[0] = (u) => o("update:modelValue", u.target.value))
1372
- }), null, 16, ft));
1673
+ setup(d, { emit: e }) {
1674
+ const a = d, t = b(() => ({
1675
+ "is-invalid": a.isInvalid
1676
+ })), o = e;
1677
+ return (s, i) => (l(), n("textarea", B({
1678
+ id: s.id,
1679
+ class: ["mc-textarea", t.value],
1680
+ "aria-invalid": s.isInvalid,
1681
+ value: s.modelValue,
1682
+ name: s.name,
1683
+ placeholder: s.placeholder,
1684
+ disabled: s.disabled,
1685
+ minlength: s.minLength,
1686
+ maxlength: s.maxLength,
1687
+ rows: s.rows,
1688
+ readonly: s.readonly
1689
+ }, s.$attrs, {
1690
+ onInput: i[0] || (i[0] = (u) => o("update:modelValue", u.target.value))
1691
+ }), null, 16, as));
1373
1692
  }
1374
- }), Rt = /* @__PURE__ */ v(ht, [["__scopeId", "data-v-8184b69c"]]), $t = {
1693
+ }), Ls = /* @__PURE__ */ _(ts, [["__scopeId", "data-v-8184b69c"]]), ss = {
1375
1694
  key: 0,
1376
1695
  class: "mc-text-input__icon"
1377
- }, yt = ["id", "value", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], gt = {
1696
+ }, ls = ["id", "value", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], os = {
1378
1697
  key: 1,
1379
1698
  class: "mc-controls-options"
1380
- }, kt = /* @__PURE__ */ y({
1699
+ }, ns = /* @__PURE__ */ y({
1381
1700
  __name: "MTextInput",
1382
1701
  props: {
1383
1702
  id: {},
@@ -1393,20 +1712,20 @@ const Ka = /* @__PURE__ */ v(Qa, [["render", Ja]]), Xa = { class: "mc-status-not
1393
1712
  clearLabel: { default: "clear content" }
1394
1713
  },
1395
1714
  emits: ["update:modelValue"],
1396
- setup(d, { emit: a }) {
1397
- const s = d, e = b(() => ({
1398
- [`mc-text-input--${s.size}`]: s.size && s.size != "m",
1399
- "is-invalid": s.isInvalid
1400
- })), o = B(s.modelValue), t = () => {
1401
- o.value = "", c("update:modelValue", "");
1402
- }, c = a;
1715
+ setup(d, { emit: e }) {
1716
+ const a = d, t = b(() => ({
1717
+ [`mc-text-input--${a.size}`]: a.size && a.size != "m",
1718
+ "is-invalid": a.isInvalid
1719
+ })), o = L(a.modelValue), s = () => {
1720
+ o.value = "", i("update:modelValue", "");
1721
+ }, i = e;
1403
1722
  return (u, p) => (l(), n("div", {
1404
- class: $(["mc-text-input", e.value])
1723
+ class: g(["mc-text-input", t.value])
1405
1724
  }, [
1406
- u.$slots.icon ? (l(), n("span", $t, [
1725
+ u.$slots.icon ? (l(), n("span", ss, [
1407
1726
  V(u.$slots, "icon", {}, void 0, !0)
1408
1727
  ])) : h("", !0),
1409
- i("input", k({
1728
+ r("input", B({
1410
1729
  id: u.id,
1411
1730
  class: "mc-text-input__control",
1412
1731
  value: o.value,
@@ -1417,24 +1736,24 @@ const Ka = /* @__PURE__ */ v(Qa, [["render", Ja]]), Xa = { class: "mc-status-not
1417
1736
  "aria-invalid": u.isInvalid,
1418
1737
  readonly: u.readonly
1419
1738
  }, u.$attrs, {
1420
- onInput: p[0] || (p[0] = (m) => c("update:modelValue", m.target.value))
1421
- }), null, 16, yt),
1422
- u.isClearable && o.value ? (l(), n("div", gt, [
1423
- i("button", {
1739
+ onInput: p[0] || (p[0] = (m) => i("update:modelValue", m.target.value))
1740
+ }), null, 16, ls),
1741
+ u.isClearable && o.value ? (l(), n("div", os, [
1742
+ r("button", {
1424
1743
  type: "button",
1425
1744
  class: "mc-controls-options__button",
1426
- onClick: t
1745
+ onClick: s
1427
1746
  }, [
1428
- g(q, {
1747
+ w(R, {
1429
1748
  class: "mc-controls-options__icon",
1430
1749
  "aria-hidden": "true"
1431
1750
  }),
1432
- p[1] || (p[1] = i("span", { class: "mc-controls-options__label" }, "{clearLabel}", -1))
1751
+ p[1] || (p[1] = r("span", { class: "mc-controls-options__label" }, "{clearLabel}", -1))
1433
1752
  ])
1434
1753
  ])) : h("", !0)
1435
1754
  ], 2));
1436
1755
  }
1437
- }), At = /* @__PURE__ */ v(kt, [["__scopeId", "data-v-38f67338"]]), Vt = ["for"], Ct = ["id", "name", "checked", "disabled"], wt = ["for"], It = /* @__PURE__ */ y({
1756
+ }), Ts = /* @__PURE__ */ _(ns, [["__scopeId", "data-v-38f67338"]]), is = ["for"], ds = ["id", "name", "checked", "disabled"], rs = ["for"], cs = /* @__PURE__ */ y({
1438
1757
  __name: "MToggle",
1439
1758
  props: {
1440
1759
  id: {},
@@ -1445,36 +1764,36 @@ const Ka = /* @__PURE__ */ v(Qa, [["render", Ja]]), Xa = { class: "mc-status-not
1445
1764
  disabled: { type: Boolean }
1446
1765
  },
1447
1766
  emits: ["update:modelValue"],
1448
- setup(d, { emit: a }) {
1449
- const s = d, e = b(() => ({
1450
- [`mc-toggle--${s.size}`]: s.size && s.size != "s"
1451
- })), o = a;
1452
- return (t, c) => (l(), n("div", {
1453
- class: $(["mc-toggle", e.value])
1767
+ setup(d, { emit: e }) {
1768
+ const a = d, t = b(() => ({
1769
+ [`mc-toggle--${a.size}`]: a.size && a.size != "s"
1770
+ })), o = e;
1771
+ return (s, i) => (l(), n("div", {
1772
+ class: g(["mc-toggle", t.value])
1454
1773
  }, [
1455
- i("label", {
1774
+ r("label", {
1456
1775
  class: "mc-toggle__container",
1457
- for: t.id
1776
+ for: s.id
1458
1777
  }, [
1459
- i("input", k({
1460
- id: t.id,
1778
+ r("input", B({
1779
+ id: s.id,
1461
1780
  type: "checkbox",
1462
1781
  class: "mc-toggle__input",
1463
- name: t.name,
1464
- checked: t.modelValue,
1465
- disabled: t.disabled
1466
- }, t.$attrs, {
1467
- onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.checked))
1468
- }), null, 16, Ct),
1469
- t.label ? (l(), n("span", {
1782
+ name: s.name,
1783
+ checked: s.modelValue,
1784
+ disabled: s.disabled
1785
+ }, s.$attrs, {
1786
+ onChange: i[0] || (i[0] = (u) => o("update:modelValue", u.target.checked))
1787
+ }), null, 16, ds),
1788
+ s.label ? (l(), n("span", {
1470
1789
  key: 0,
1471
- for: t.id,
1790
+ for: s.id,
1472
1791
  class: "mc-toggle__label"
1473
- }, f(t.label), 9, wt)) : h("", !0)
1474
- ], 8, Vt)
1792
+ }, f(s.label), 9, rs)) : h("", !0)
1793
+ ], 8, is)
1475
1794
  ], 2));
1476
1795
  }
1477
- }), Bt = /* @__PURE__ */ v(It, [["__scopeId", "data-v-5be734e7"]]), Mt = /* @__PURE__ */ y({
1796
+ }), us = /* @__PURE__ */ _(cs, [["__scopeId", "data-v-5be734e7"]]), ps = /* @__PURE__ */ y({
1478
1797
  __name: "MToggleGroup",
1479
1798
  props: {
1480
1799
  name: {},
@@ -1483,66 +1802,70 @@ const Ka = /* @__PURE__ */ v(Qa, [["render", Ja]]), Xa = { class: "mc-status-not
1483
1802
  inline: { type: Boolean }
1484
1803
  },
1485
1804
  emits: ["update:modelValue"],
1486
- setup(d, { emit: a }) {
1487
- const s = d, e = B([]);
1488
- O(
1489
- () => s.modelValue,
1805
+ setup(d, { emit: e }) {
1806
+ const a = d, t = L([]);
1807
+ q(
1808
+ () => a.modelValue,
1490
1809
  (p) => {
1491
- e.value = p || [];
1810
+ t.value = p || [];
1492
1811
  },
1493
1812
  { immediate: !0 }
1494
1813
  );
1495
1814
  const o = (p, m) => {
1496
- let r = [...e.value];
1497
- p && !r.includes(m) ? r.push(m) : r = r.filter((_) => _ !== m), u("update:modelValue", r), e.value = r;
1498
- }, t = b(() => ({
1499
- "mc-field__container--inline": s.inline
1500
- })), c = b(() => ({
1501
- "mc-field__container--inline__item": s.inline
1502
- })), u = a;
1815
+ let c = [...t.value];
1816
+ p && !c.includes(m) ? c.push(m) : c = c.filter((v) => v !== m), u("update:modelValue", c), t.value = c;
1817
+ }, s = b(() => ({
1818
+ "mc-field__container--inline": a.inline
1819
+ })), i = b(() => ({
1820
+ "mc-field__container--inline__item": a.inline
1821
+ })), u = e;
1503
1822
  return (p, m) => (l(), n("div", {
1504
- class: $(t.value)
1823
+ class: g(s.value)
1505
1824
  }, [
1506
- (l(!0), n(z, null, L(p.options, (r) => (l(), C(Bt, {
1507
- id: r.id,
1508
- key: r.id,
1509
- label: r.label,
1510
- "is-invalid": r.isInvalid,
1825
+ (l(!0), n(O, null, S(p.options, (c) => (l(), I(us, {
1826
+ id: c.id,
1827
+ key: c.id,
1828
+ label: c.label,
1829
+ "is-invalid": c.isInvalid,
1511
1830
  name: p.name,
1512
- class: $(c.value),
1513
- "model-value": p.modelValue ? p.modelValue.includes(r.value) : void 0,
1514
- disabled: r.disabled,
1515
- "onUpdate:modelValue": (_) => o(_, r.value)
1831
+ class: g(i.value),
1832
+ "model-value": p.modelValue ? p.modelValue.includes(c.value) : void 0,
1833
+ disabled: c.disabled,
1834
+ "onUpdate:modelValue": (v) => o(v, c.value)
1516
1835
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
1517
1836
  ], 2));
1518
1837
  }
1519
- }), Ht = /* @__PURE__ */ v(Mt, [["__scopeId", "data-v-c6b10172"]]);
1838
+ }), js = /* @__PURE__ */ _(ps, [["__scopeId", "data-v-c6b10172"]]);
1520
1839
  export {
1521
- Lt as MBreadcrumb,
1522
- T as MButton,
1523
- pe as MCheckbox,
1524
- St as MCheckboxGroup,
1525
- be as MDivider,
1526
- Ot as MField,
1527
- Tt as MFieldGroup,
1840
+ _s as MBreadcrumb,
1841
+ F as MButton,
1842
+ ge as MCheckbox,
1843
+ vs as MCheckboxGroup,
1844
+ Be as MDivider,
1845
+ bs as MDrawer,
1846
+ fs as MField,
1847
+ hs as MFieldGroup,
1528
1848
  P as MIconButton,
1529
- Q as MLink,
1530
- ae as MLoader,
1531
- je as MNumberBadge,
1532
- jt as MOverlay,
1533
- qt as MPagination,
1534
- Pt as MPasswordInput,
1535
- Zt as MQuantitySelector,
1536
- wa as MRadio,
1537
- Nt as MRadioGroup,
1538
- Fe as MSelect,
1539
- Dt as MStatusBadge,
1540
- Ut as MStatusNotification,
1541
- Ft as MTabs,
1542
- Gt as MTag,
1543
- Rt as MTextArea,
1544
- At as MTextInput,
1545
- Bt as MToggle,
1546
- Ht as MToggleGroup
1849
+ se as MLink,
1850
+ H as MLoader,
1851
+ $s as MLoadingOverlay,
1852
+ ys as MModal,
1853
+ ha as MNumberBadge,
1854
+ Q as MOverlay,
1855
+ gs as MPagination,
1856
+ ks as MPasswordInput,
1857
+ ws as MPincode,
1858
+ Vs as MQuantitySelector,
1859
+ rt as MRadio,
1860
+ Bs as MRadioGroup,
1861
+ wa as MSelect,
1862
+ Is as MStatusBadge,
1863
+ Cs as MStatusNotification,
1864
+ Ms as MTabs,
1865
+ zs as MTag,
1866
+ Ls as MTextArea,
1867
+ Ts as MTextInput,
1868
+ us as MToggle,
1869
+ js as MToggleGroup
1547
1870
  };
1548
1871
  //# sourceMappingURL=mozaic-vue.js.map