@mozaic-ds/vue 2.6.0 → 2.7.0

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 (128) hide show
  1. package/README.md +3 -3
  2. package/dist/mozaic-vue.css +1 -1
  3. package/dist/mozaic-vue.d.ts +334 -274
  4. package/dist/mozaic-vue.js +1215 -1144
  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 +9 -7
  9. package/src/components/Contributing.mdx +1 -1
  10. package/src/components/GettingStarted.mdx +1 -1
  11. package/src/components/Introduction.mdx +1 -1
  12. package/src/components/Support.mdx +1 -1
  13. package/src/components/avatar/MAvatar.stories.ts +1 -0
  14. package/src/components/avatar/MAvatar.vue +2 -2
  15. package/src/components/avatar/README.md +16 -0
  16. package/src/components/breadcrumb/MBreadcrumb.stories.ts +1 -0
  17. package/src/components/breadcrumb/MBreadcrumb.vue +3 -3
  18. package/src/components/breadcrumb/README.md +11 -0
  19. package/src/components/button/MButton.stories.ts +1 -2
  20. package/src/components/button/MButton.vue +7 -2
  21. package/src/components/button/README.md +24 -0
  22. package/src/components/callout/MCallout.stories.ts +1 -0
  23. package/src/components/callout/MCallout.vue +5 -5
  24. package/src/components/callout/README.md +19 -0
  25. package/src/components/checkbox/MCheckbox.vue +5 -1
  26. package/src/components/checkbox/README.md +23 -0
  27. package/src/components/checkboxgroup/MCheckboxGroup.stories.ts +1 -1
  28. package/src/components/checkboxgroup/MCheckboxGroup.vue +1 -1
  29. package/src/components/checkboxgroup/README.md +20 -0
  30. package/src/components/circularprogressbar/MCircularProgressbar.stories.ts +1 -0
  31. package/src/components/circularprogressbar/MCircularProgressbar.vue +2 -2
  32. package/src/components/circularprogressbar/README.md +14 -0
  33. package/src/components/container/MContainer.stories.ts +11 -3
  34. package/src/components/container/MContainer.vue +3 -3
  35. package/src/components/container/README.md +16 -0
  36. package/src/components/datepicker/MDatepicker.stories.ts +2 -1
  37. package/src/components/datepicker/MDatepicker.vue +7 -3
  38. package/src/components/datepicker/README.md +24 -0
  39. package/src/components/divider/MDivider.spec.ts +5 -5
  40. package/src/components/divider/MDivider.stories.ts +8 -13
  41. package/src/components/divider/MDivider.vue +8 -8
  42. package/src/components/divider/README.md +18 -0
  43. package/src/components/drawer/MDrawer.spec.ts +28 -0
  44. package/src/components/drawer/MDrawer.stories.ts +1 -0
  45. package/src/components/drawer/MDrawer.vue +16 -5
  46. package/src/components/drawer/README.md +29 -0
  47. package/src/components/field/MField.vue +1 -1
  48. package/src/components/field/README.md +24 -0
  49. package/src/components/fieldgroup/README.md +22 -0
  50. package/src/components/flag/MFlag.vue +2 -2
  51. package/src/components/flag/README.md +11 -0
  52. package/src/components/iconbutton/MIconButton.stories.ts +1 -0
  53. package/src/components/iconbutton/MIconButton.vue +2 -2
  54. package/src/components/iconbutton/README.md +21 -0
  55. package/src/components/linearprogressbarbuffer/MLinearProgressbarBuffer.stories.ts +1 -0
  56. package/src/components/linearprogressbarbuffer/MLinearProgressbarBuffer.vue +5 -1
  57. package/src/components/linearprogressbarbuffer/README.md +11 -0
  58. package/src/components/linearprogressbarpercentage/MLinearProgressbarPercentage.stories.ts +1 -0
  59. package/src/components/linearprogressbarpercentage/MLinearProgressbarPercentage.vue +4 -0
  60. package/src/components/linearprogressbarpercentage/README.md +10 -0
  61. package/src/components/link/MLink.stories.ts +2 -2
  62. package/src/components/link/MLink.vue +22 -12
  63. package/src/components/link/README.md +23 -0
  64. package/src/components/loader/MLoader.vue +1 -1
  65. package/src/components/loader/README.md +12 -0
  66. package/src/components/loadingoverlay/MLoadingOverlay.stories.ts +1 -1
  67. package/src/components/loadingoverlay/MLoadingOverlay.vue +4 -0
  68. package/src/components/loadingoverlay/README.md +11 -0
  69. package/src/components/modal/MModal.vue +11 -7
  70. package/src/components/modal/README.md +28 -0
  71. package/src/components/numberbadge/MNumberBadge.vue +4 -4
  72. package/src/components/numberbadge/README.md +12 -0
  73. package/src/components/overlay/MOverlay.stories.ts +1 -1
  74. package/src/components/overlay/MOverlay.vue +2 -2
  75. package/src/components/overlay/README.md +17 -0
  76. package/src/components/pagination/MPagination.stories.ts +1 -0
  77. package/src/components/pagination/MPagination.vue +1 -1
  78. package/src/components/pagination/README.md +20 -0
  79. package/src/components/passwordinput/MPasswordInput.vue +6 -2
  80. package/src/components/passwordinput/README.md +25 -0
  81. package/src/components/pincode/MPincode.spec.ts +4 -1
  82. package/src/components/pincode/MPincode.stories.ts +2 -1
  83. package/src/components/pincode/MPincode.vue +10 -2
  84. package/src/components/pincode/README.md +22 -0
  85. package/src/components/quantityselector/MQuantitySelector.stories.ts +1 -1
  86. package/src/components/quantityselector/MQuantitySelector.vue +6 -2
  87. package/src/components/quantityselector/README.md +27 -0
  88. package/src/components/radio/MRadio.vue +5 -1
  89. package/src/components/radio/README.md +21 -0
  90. package/src/components/radiogroup/MRadioGroup.vue +1 -1
  91. package/src/components/radiogroup/README.md +21 -0
  92. package/src/components/segmentedcontrol/MSegmentedControl.spec.ts +116 -0
  93. package/src/components/segmentedcontrol/MSegmentedControl.stories.ts +78 -0
  94. package/src/components/segmentedcontrol/MSegmentedControl.vue +92 -0
  95. package/src/components/segmentedcontrol/README.md +19 -0
  96. package/src/components/select/MSelect.vue +6 -2
  97. package/src/components/select/README.md +24 -0
  98. package/src/components/statusbadge/MStatusBadge.stories.ts +1 -1
  99. package/src/components/statusbadge/MStatusBadge.vue +3 -3
  100. package/src/components/statusbadge/README.md +11 -0
  101. package/src/components/statusdot/MStatusDot.stories.ts +1 -0
  102. package/src/components/statusdot/MStatusDot.vue +3 -3
  103. package/src/components/statusdot/README.md +11 -0
  104. package/src/components/statusnotification/MStatusNotification.vue +3 -3
  105. package/src/components/statusnotification/README.md +25 -0
  106. package/src/components/tabs/MTabs.stories.ts +23 -1
  107. package/src/components/tabs/MTabs.vue +8 -0
  108. package/src/components/tabs/Mtabs.spec.ts +30 -9
  109. package/src/components/tabs/README.md +20 -0
  110. package/src/components/tag/MTag.stories.ts +1 -1
  111. package/src/components/tag/MTag.vue +4 -0
  112. package/src/components/tag/README.md +25 -0
  113. package/src/components/textarea/MTextArea.vue +5 -1
  114. package/src/components/textarea/README.md +25 -0
  115. package/src/components/textinput/MTextInput.vue +10 -6
  116. package/src/components/textinput/README.md +32 -0
  117. package/src/components/toaster/MToaster.stories.ts +1 -0
  118. package/src/components/toaster/MToaster.vue +4 -4
  119. package/src/components/toaster/README.md +28 -0
  120. package/src/components/toggle/MToggle.vue +6 -2
  121. package/src/components/toggle/README.md +21 -0
  122. package/src/components/togglegroup/MToggleGroup.vue +2 -2
  123. package/src/components/togglegroup/README.md +20 -0
  124. package/src/components/tooltip/MTooltip.vue +8 -10
  125. package/src/components/tooltip/README.md +19 -0
  126. package/src/components/usingIcons.mdx +1 -1
  127. package/src/components/usingPresets.mdx +1 -1
  128. package/src/main.ts +6 -4
@@ -1,101 +1,103 @@
1
- import { defineComponent as $, computed as v, createElementBlock as i, openBlock as o, normalizeClass as g, renderSlot as k, createBlock as B, resolveDynamicComponent as F, withCtx as M, createCommentVNode as h, createElementVNode as d, Fragment as P, renderList as D, createVNode as w, createTextVNode as q, toDisplayString as b, normalizeStyle as H, mergeProps as I, ref as z, watch as T, withKeys as R, withDirectives as K, vModelDynamic as ee, nextTick as ae, vModelText as te, onMounted as se, onBeforeUnmount as oe } from "vue";
2
- const le = /* @__PURE__ */ $({
1
+ import { defineComponent as _, computed as b, createElementBlock as o, openBlock as s, normalizeClass as h, renderSlot as y, createBlock as C, resolveDynamicComponent as D, mergeProps as V, withCtx as B, createCommentVNode as f, createElementVNode as c, Fragment as T, renderList as S, createVNode as k, createTextVNode as P, toDisplayString as p, normalizeStyle as U, ref as M, watch as z, withKeys as N, withDirectives as K, vModelDynamic as te, nextTick as ae, vModelText as se, onMounted as le, onBeforeUnmount as ne } from "vue";
2
+ const oe = /* @__PURE__ */ _({
3
3
  __name: "MAvatar",
4
4
  props: {
5
5
  size: { default: "s" }
6
6
  },
7
- setup(r) {
8
- const e = r, a = v(() => ({
9
- [`mc-avatar--${e.size}`]: e.size && e.size != "s"
7
+ setup(e) {
8
+ const a = e, t = b(() => ({
9
+ [`mc-avatar--${a.size}`]: a.size && a.size != "s"
10
10
  }));
11
- return (t, n) => (o(), i("span", {
12
- class: g(["mc-avatar", a.value])
11
+ return (l, n) => (s(), o("span", {
12
+ class: h(["mc-avatar", t.value])
13
13
  }, [
14
- k(t.$slots, "default", {}, void 0, !0)
14
+ y(l.$slots, "default", {}, void 0, !0)
15
15
  ], 2));
16
16
  }
17
- }), m = (r, e) => {
18
- const a = r.__vccOpts || r;
19
- for (const [t, n] of e)
20
- a[t] = n;
21
- return a;
22
- }, Ys = /* @__PURE__ */ m(le, [["__scopeId", "data-v-4fdb6762"]]), ne = {
17
+ }), v = (e, a) => {
18
+ const t = e.__vccOpts || e;
19
+ for (const [l, n] of a)
20
+ t[l] = n;
21
+ return t;
22
+ }, Ys = /* @__PURE__ */ v(oe, [["__scopeId", "data-v-9ebdb5d7"]]), ie = {
23
23
  key: 0,
24
24
  class: "mc-link__icon",
25
25
  "aria-hidden": "true"
26
- }, ie = { class: "mc-link__label" }, re = {
26
+ }, ce = { class: "mc-link__label" }, de = {
27
27
  key: 1,
28
28
  class: "mc-link__icon",
29
29
  "aria-hidden": "true"
30
- }, de = /* @__PURE__ */ $({
30
+ }, re = /* @__PURE__ */ _({
31
31
  __name: "MLink",
32
32
  props: {
33
33
  iconPosition: { default: "left" },
34
34
  appearance: { default: "standard" },
35
35
  size: { default: "s" },
36
- href: { default: void 0 },
37
- target: { default: void 0 },
36
+ href: {},
37
+ target: {},
38
38
  inline: { type: Boolean },
39
39
  router: { type: Boolean }
40
40
  },
41
- setup(r) {
42
- const e = r, a = v(() => ({
43
- [`mc-link--${e.appearance}`]: e.appearance && e.appearance != "standard",
44
- [`mc-link--${e.size}`]: e.size && e.size != "s",
45
- "mc-link--inline": e.inline,
46
- "mc-link--stand-alone": !e.inline
47
- }));
48
- return (t, n) => (o(), B(F(t.router ? "router-link" : "a"), {
49
- class: g(["mc-link", a.value]),
50
- href: t.href,
51
- target: t.target,
52
- to: t.router ? t.href : void 0
53
- }, {
54
- default: M(() => [
55
- t.$slots.icon && t.iconPosition == "left" ? (o(), i("span", ne, [
56
- k(t.$slots, "icon", {}, void 0, !0)
57
- ])) : h("", !0),
58
- d("span", ie, [
59
- k(t.$slots, "default", {}, void 0, !0)
41
+ setup(e) {
42
+ const a = e, t = b(() => ({
43
+ [`mc-link--${a.appearance}`]: a.appearance && a.appearance != "standard",
44
+ [`mc-link--${a.size}`]: a.size && a.size != "s",
45
+ "mc-link--inline": a.inline,
46
+ "mc-link--stand-alone": !a.inline
47
+ })), l = b(() => a.router ? {
48
+ to: a.href,
49
+ target: a.target
50
+ } : {
51
+ href: a.href,
52
+ target: a.target
53
+ });
54
+ return (n, i) => (s(), C(D(e.router ? "router-link" : "a"), V({
55
+ class: ["mc-link", t.value]
56
+ }, l.value), {
57
+ default: B(() => [
58
+ n.$slots.icon && e.iconPosition == "left" ? (s(), o("span", ie, [
59
+ y(n.$slots, "icon", {}, void 0, !0)
60
+ ])) : f("", !0),
61
+ c("span", ce, [
62
+ y(n.$slots, "default", {}, void 0, !0)
60
63
  ]),
61
- t.$slots.icon && t.iconPosition == "right" ? (o(), i("span", re, [
62
- k(t.$slots, "icon", {}, void 0, !0)
63
- ])) : h("", !0)
64
+ n.$slots.icon && e.iconPosition == "right" ? (s(), o("span", de, [
65
+ y(n.$slots, "icon", {}, void 0, !0)
66
+ ])) : f("", !0)
64
67
  ]),
65
68
  _: 3
66
- }, 8, ["class", "href", "target", "to"]));
69
+ }, 16, ["class"]));
67
70
  }
68
- }), ce = /* @__PURE__ */ m(de, [["__scopeId", "data-v-df607c25"]]), ue = { class: "mc-breadcrumb__container" }, pe = /* @__PURE__ */ $({
71
+ }), ue = /* @__PURE__ */ v(re, [["__scopeId", "data-v-b300cd23"]]), me = { class: "mc-breadcrumb__container" }, ve = /* @__PURE__ */ _({
69
72
  __name: "MBreadcrumb",
70
73
  props: {
71
74
  appearance: {},
72
75
  links: {}
73
76
  },
74
- setup(r) {
75
- const e = r, a = v(() => ({
76
- [`mc-breadcrumb--${e.appearance}`]: e.appearance && e.appearance != "standard"
77
- })), t = (n) => n === (e.links?.length ?? 0) - 1;
78
- return (n, s) => (o(), i("nav", {
79
- class: g(["mc-breadcrumb", a.value]),
80
- "aria-label": "Breadcrumb"
77
+ setup(e) {
78
+ const a = e, t = b(() => ({
79
+ [`mc-breadcrumb--${a.appearance}`]: a.appearance && a.appearance != "standard"
80
+ })), l = (n) => n === (a.links?.length ?? 0) - 1;
81
+ return (n, i) => (s(), o("nav", {
82
+ class: h(["mc-breadcrumb", t.value])
81
83
  }, [
82
- d("ul", ue, [
83
- (o(!0), i(P, null, D(n.links, (l, p) => (o(), i("li", {
84
+ c("ul", me, [
85
+ (s(!0), o(T, null, S(e.links, (d, u) => (s(), o("li", {
84
86
  class: "mc-breadcrumb__item",
85
- key: `breadcrumb-${p}`
87
+ key: `breadcrumb-${u}`
86
88
  }, [
87
- w(ce, {
88
- href: l.href,
89
- router: l.router,
90
- appearance: n.appearance,
89
+ k(ue, {
90
+ href: d.href,
91
+ router: d.router,
92
+ appearance: e.appearance,
91
93
  inline: "",
92
- class: g({
93
- "mc-breadcrumb__current": t(p)
94
+ class: h({
95
+ "mc-breadcrumb__current": l(u)
94
96
  }),
95
- "aria-current": t(p) ? "page" : void 0
97
+ "aria-current": l(u) ? "page" : void 0
96
98
  }, {
97
- default: M(() => [
98
- q(b(l.label), 1)
99
+ default: B(() => [
100
+ P(p(d.label), 1)
99
101
  ]),
100
102
  _: 2
101
103
  }, 1032, ["href", "router", "appearance", "class", "aria-current"])
@@ -103,84 +105,84 @@ const le = /* @__PURE__ */ $({
103
105
  ])
104
106
  ], 2));
105
107
  }
106
- }), Zs = /* @__PURE__ */ m(pe, [["__scopeId", "data-v-41249412"]]), me = { class: "mc-loader__spinner" }, _e = ["viewBox"], ve = ["r"], be = {
108
+ }), Zs = /* @__PURE__ */ v(ve, [["__scopeId", "data-v-0cf6e2a5"]]), be = { class: "mc-loader__spinner" }, pe = ["viewBox"], fe = ["r"], _e = {
107
109
  key: 0,
108
110
  class: "mc-loader__text",
109
111
  role: "status"
110
- }, fe = /* @__PURE__ */ $({
112
+ }, he = /* @__PURE__ */ _({
111
113
  __name: "MLoader",
112
114
  props: {
113
115
  appearance: { default: "standard" },
114
116
  size: { default: "m" },
115
117
  text: {}
116
118
  },
117
- setup(r) {
118
- const e = r, a = v(() => ({
119
- [`mc-loader--${e.size}`]: e.size && e.size !== "m",
120
- [`mc-loader--${e.appearance}`]: e.appearance && e.appearance !== "standard",
121
- "mc-loader--text-visible": e.text
122
- })), t = v(() => {
123
- let s;
124
- switch (e.size) {
119
+ setup(e) {
120
+ const a = e, t = b(() => ({
121
+ [`mc-loader--${a.size}`]: a.size && a.size !== "m",
122
+ [`mc-loader--${a.appearance}`]: a.appearance && a.appearance !== "standard",
123
+ "mc-loader--text-visible": a.text
124
+ })), l = b(() => {
125
+ let i;
126
+ switch (a.size) {
125
127
  case "s":
126
- s = "0 0 24 24";
128
+ i = "0 0 24 24";
127
129
  break;
128
130
  case "l":
129
- s = "0 0 64 64";
131
+ i = "0 0 64 64";
130
132
  break;
131
133
  default:
132
- s = "0 0 32 32";
134
+ i = "0 0 32 32";
133
135
  }
134
- return s;
135
- }), n = v(() => {
136
- let s;
137
- switch (e.size) {
136
+ return i;
137
+ }), n = b(() => {
138
+ let i;
139
+ switch (a.size) {
138
140
  case "s":
139
- s = 6;
141
+ i = 6;
140
142
  break;
141
143
  case "l":
142
- s = 19;
144
+ i = 19;
143
145
  break;
144
146
  default:
145
- s = 9;
147
+ i = 9;
146
148
  }
147
- return s;
149
+ return i;
148
150
  });
149
- return (s, l) => (o(), i("div", {
150
- class: g(["mc-loader", a.value])
151
+ return (i, d) => (s(), o("div", {
152
+ class: h(["mc-loader", t.value])
151
153
  }, [
152
- d("span", me, [
153
- (o(), i("svg", {
154
+ c("span", be, [
155
+ (s(), o("svg", {
154
156
  class: "mc-loader__icon",
155
157
  xmlns: "http://www.w3.org/2000/svg",
156
- viewBox: t.value,
158
+ viewBox: l.value,
157
159
  "aria-hidden": "true"
158
160
  }, [
159
- d("circle", {
161
+ c("circle", {
160
162
  class: "mc-loader__path",
161
163
  cx: "50%",
162
164
  cy: "50%",
163
165
  r: n.value
164
- }, null, 8, ve)
165
- ], 8, _e))
166
+ }, null, 8, fe)
167
+ ], 8, pe))
166
168
  ]),
167
- s.text ? (o(), i("p", be, b(s.text), 1)) : h("", !0)
169
+ e.text ? (s(), o("p", _e, p(e.text), 1)) : f("", !0)
168
170
  ], 2));
169
171
  }
170
- }), E = /* @__PURE__ */ m(fe, [["__scopeId", "data-v-998c550b"]]), he = ["disabled", "type"], $e = {
172
+ }), H = /* @__PURE__ */ v(he, [["__scopeId", "data-v-8561f851"]]), $e = ["disabled", "type"], ge = {
171
173
  key: 0,
172
174
  class: "mc-button__icon"
173
- }, ge = {
175
+ }, ye = {
174
176
  key: 1,
175
177
  class: "mc-button__icon",
176
178
  style: { position: "absolute" }
177
- }, ye = {
179
+ }, ke = {
178
180
  key: 2,
179
181
  class: "mc-button__icon"
180
- }, ke = {
182
+ }, we = {
181
183
  key: 4,
182
184
  class: "mc-button__icon"
183
- }, we = /* @__PURE__ */ $({
185
+ }, Ve = /* @__PURE__ */ _({
184
186
  __name: "MButton",
185
187
  props: {
186
188
  appearance: { default: "standard" },
@@ -192,45 +194,76 @@ const le = /* @__PURE__ */ $({
192
194
  type: { default: "button" },
193
195
  isLoading: { type: Boolean }
194
196
  },
195
- setup(r) {
196
- const e = r, a = v(() => ({
197
- [`mc-button--${e.appearance}`]: e.appearance && e.appearance != "standard",
198
- [`mc-button--${e.size}`]: e.size && e.size != "m",
199
- "mc-button--ghost": e.ghost,
200
- "mc-button--outlined": e.outlined,
201
- "mc-button--icon-only": e.iconPosition == "only"
197
+ setup(e) {
198
+ const a = e, t = b(() => ({
199
+ [`mc-button--${a.appearance}`]: a.appearance && a.appearance != "standard",
200
+ [`mc-button--${a.size}`]: a.size && a.size != "m",
201
+ "mc-button--ghost": a.ghost,
202
+ "mc-button--outlined": a.outlined,
203
+ "mc-button--icon-only": a.iconPosition == "only"
202
204
  }));
203
- return (t, n) => (o(), i("button", {
204
- class: g(["mc-button", a.value]),
205
- disabled: t.disabled,
206
- type: t.type
205
+ return (l, n) => (s(), o("button", {
206
+ class: h(["mc-button", t.value]),
207
+ disabled: e.disabled,
208
+ type: e.type
207
209
  }, [
208
- t.$slots.icon && t.iconPosition == "left" && !t.isLoading ? (o(), i("span", $e, [
209
- k(t.$slots, "icon", {}, void 0, !0)
210
- ])) : h("", !0),
211
- t.isLoading ? (o(), i("span", ge, [
212
- w(E, {
210
+ l.$slots.icon && e.iconPosition == "left" && !e.isLoading ? (s(), o("span", ge, [
211
+ y(l.$slots, "icon", {}, void 0, !0)
212
+ ])) : f("", !0),
213
+ e.isLoading ? (s(), o("span", ye, [
214
+ k(H, {
213
215
  style: { color: "currentColor" },
214
216
  size: "s"
215
217
  })
216
- ])) : h("", !0),
217
- t.$slots.icon && t.iconPosition == "only" ? (o(), i("span", ye, [
218
- k(t.$slots, "icon", {}, void 0, !0)
219
- ])) : (o(), i("span", {
218
+ ])) : f("", !0),
219
+ l.$slots.icon && e.iconPosition == "only" ? (s(), o("span", ke, [
220
+ y(l.$slots, "icon", {}, void 0, !0)
221
+ ])) : (s(), o("span", {
220
222
  key: 3,
221
223
  class: "mc-button__label",
222
- style: H({ visibility: t.isLoading ? "hidden" : "visible" })
224
+ style: U({ visibility: e.isLoading ? "hidden" : "visible" })
223
225
  }, [
224
- k(t.$slots, "default", {}, () => [
225
- n[0] || (n[0] = q("Button Label", -1))
226
+ y(l.$slots, "default", {}, () => [
227
+ n[0] || (n[0] = P("Button Label", -1))
226
228
  ], !0)
227
229
  ], 4)),
228
- t.$slots.icon && t.iconPosition == "right" && !t.isLoading ? (o(), i("span", ke, [
229
- k(t.$slots, "icon", {}, void 0, !0)
230
- ])) : h("", !0)
231
- ], 10, he));
230
+ l.$slots.icon && e.iconPosition == "right" && !e.isLoading ? (s(), o("span", we, [
231
+ y(l.$slots, "icon", {}, void 0, !0)
232
+ ])) : f("", !0)
233
+ ], 10, $e));
234
+ }
235
+ }), F = /* @__PURE__ */ v(Ve, [["__scopeId", "data-v-e66a02e3"]]), Ie = { class: "mc-callout__icon" }, Ce = { class: "mc-callout__content" }, xe = { class: "mc-callout__title" }, Be = { class: "mc-callout__message" }, Me = {
236
+ key: 0,
237
+ class: "mc-callout__footer"
238
+ }, ze = /* @__PURE__ */ _({
239
+ __name: "MCallout",
240
+ props: {
241
+ title: {},
242
+ description: {},
243
+ appearance: { default: "standard" }
244
+ },
245
+ setup(e) {
246
+ const a = e, t = b(() => ({
247
+ [`mc-callout--${a.appearance}`]: a.appearance && a.appearance != "standard"
248
+ }));
249
+ return (l, n) => (s(), o("section", {
250
+ class: h(["mc-callout", t.value]),
251
+ role: "status"
252
+ }, [
253
+ c("div", Ie, [
254
+ y(l.$slots, "icon", {}, void 0, !0)
255
+ ]),
256
+ c("div", Ce, [
257
+ c("h2", xe, p(e.title), 1),
258
+ c("p", Be, p(e.description), 1),
259
+ l.$slots.footer ? (s(), o("div", Me, [
260
+ y(l.$slots, "footer", {}, void 0, !0)
261
+ ])) : f("", !0)
262
+ ])
263
+ ], 2));
232
264
  }
233
- }), N = /* @__PURE__ */ m(we, [["__scopeId", "data-v-f4f43ab6"]]), Ve = ["id", "name", "checked", "indeterminate", "disabled", "aria-invalid"], Ie = ["for"], Be = /* @__PURE__ */ $({
265
+ }), el = /* @__PURE__ */ v(ze, [["__scopeId", "data-v-0f26ffb7"]]), Le = ["id", "name", "checked", "indeterminate", "disabled", "aria-invalid"], je = ["for"], Oe = /* @__PURE__ */ _({
266
+ inheritAttrs: !1,
234
267
  __name: "MCheckbox",
235
268
  props: {
236
269
  id: {},
@@ -243,35 +276,35 @@ const le = /* @__PURE__ */ $({
243
276
  indented: { type: Boolean }
244
277
  },
245
278
  emits: ["update:modelValue"],
246
- setup(r, { emit: e }) {
247
- const a = r, t = v(() => ({
248
- "is-invalid": a.isInvalid
249
- })), n = v(() => ({
250
- "mc-checkbox--indented": a.indented
251
- })), s = e;
252
- return (l, p) => (o(), i("div", {
253
- class: g(["mc-checkbox", n.value])
279
+ setup(e, { emit: a }) {
280
+ const t = e, l = b(() => ({
281
+ "is-invalid": t.isInvalid
282
+ })), n = b(() => ({
283
+ "mc-checkbox--indented": t.indented
284
+ })), i = a;
285
+ return (d, u) => (s(), o("div", {
286
+ class: h(["mc-checkbox", n.value])
254
287
  }, [
255
- d("input", I({
256
- id: l.id,
288
+ c("input", V({
289
+ id: e.id,
257
290
  type: "checkbox",
258
- class: ["mc-checkbox__input", t.value],
259
- name: l.name,
260
- checked: l.modelValue,
261
- indeterminate: l.indeterminate,
262
- disabled: l.disabled,
263
- "aria-invalid": l.isInvalid
264
- }, l.$attrs, {
265
- onChange: p[0] || (p[0] = (u) => s("update:modelValue", u.target.checked))
266
- }), null, 16, Ve),
267
- l.label ? (o(), i("label", {
291
+ class: ["mc-checkbox__input", l.value],
292
+ name: e.name,
293
+ checked: e.modelValue,
294
+ indeterminate: e.indeterminate,
295
+ disabled: e.disabled,
296
+ "aria-invalid": e.isInvalid
297
+ }, d.$attrs, {
298
+ onChange: u[0] || (u[0] = (m) => i("update:modelValue", m.target.checked))
299
+ }), null, 16, Le),
300
+ e.label ? (s(), o("label", {
268
301
  key: 0,
269
- for: l.id,
302
+ for: e.id,
270
303
  class: "mc-checkbox__label"
271
- }, b(l.label), 9, Ie)) : h("", !0)
304
+ }, p(e.label), 9, je)) : f("", !0)
272
305
  ], 2));
273
306
  }
274
- }), Ce = /* @__PURE__ */ m(Be, [["__scopeId", "data-v-cb502704"]]), Me = /* @__PURE__ */ $({
307
+ }), Te = /* @__PURE__ */ v(Oe, [["__scopeId", "data-v-829485d4"]]), Se = /* @__PURE__ */ _({
275
308
  __name: "MCheckboxGroup",
276
309
  props: {
277
310
  name: {},
@@ -280,50 +313,50 @@ const le = /* @__PURE__ */ $({
280
313
  inline: { type: Boolean }
281
314
  },
282
315
  emits: ["update:modelValue"],
283
- setup(r, { emit: e }) {
284
- const a = r, t = z([]);
285
- T(
286
- () => a.modelValue,
287
- (u) => {
288
- t.value = u || [];
316
+ setup(e, { emit: a }) {
317
+ const t = e, l = M([]);
318
+ z(
319
+ () => t.modelValue,
320
+ (m) => {
321
+ l.value = m || [];
289
322
  },
290
323
  { immediate: !0 }
291
324
  );
292
- const n = (u, _) => {
293
- let c = [...t.value];
294
- u && !c.includes(_) ? c.push(_) : c = c.filter((f) => f !== _), p("update:modelValue", c), t.value = c;
295
- }, s = v(() => ({
296
- "mc-field__container--inline": a.inline
297
- })), l = v(() => ({
298
- "mc-field__container--inline__item": a.inline
299
- })), p = e;
300
- return (u, _) => (o(), i("div", {
301
- class: g(["mc-field__container", s.value])
325
+ const n = (m, g) => {
326
+ let r = [...l.value];
327
+ m && !r.includes(g) ? r.push(g) : r = r.filter(($) => $ !== g), u("update:modelValue", r), l.value = r;
328
+ }, i = b(() => ({
329
+ "mc-field__container--inline": t.inline
330
+ })), d = b(() => ({
331
+ "mc-field__container--inline__item": t.inline
332
+ })), u = a;
333
+ return (m, g) => (s(), o("div", {
334
+ class: h(["mc-field__container", i.value])
302
335
  }, [
303
- (o(!0), i(P, null, D(u.options, (c) => (o(), B(Ce, {
304
- id: c.id,
305
- key: c.id,
306
- label: c.label,
307
- "is-invalid": c.isInvalid,
308
- name: u.name,
309
- class: g(["mc-field__item", l.value]),
310
- "model-value": u.modelValue ? u.modelValue.includes(c.value) : void 0,
311
- disabled: c.disabled,
312
- indented: c.indented,
313
- "onUpdate:modelValue": (f) => n(f, c.value)
336
+ (s(!0), o(T, null, S(e.options, (r) => (s(), C(Te, {
337
+ id: r.id,
338
+ key: r.id,
339
+ label: r.label,
340
+ "is-invalid": r.isInvalid,
341
+ name: e.name,
342
+ class: h(["mc-field__item", d.value]),
343
+ "model-value": e.modelValue ? e.modelValue.includes(r.value) : void 0,
344
+ disabled: r.disabled,
345
+ indented: r.indented,
346
+ "onUpdate:modelValue": ($) => n($, r.value)
314
347
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "indented", "onUpdate:modelValue"]))), 128))
315
348
  ], 2));
316
349
  }
317
- }), xs = /* @__PURE__ */ m(Me, [["__scopeId", "data-v-b5cb6446"]]), ze = ["aria-valuenow"], Le = {
350
+ }), tl = /* @__PURE__ */ v(Se, [["__scopeId", "data-v-ede2973f"]]), Ae = ["aria-valuenow"], Pe = {
318
351
  key: 0,
319
352
  class: "mc-circular-progressbar__percentage"
320
- }, je = { class: "mc-circular-progressbar__value" }, Oe = {
353
+ }, De = { class: "mc-circular-progressbar__value" }, qe = {
321
354
  key: 1,
322
355
  class: "mc-circular-progressbar__content"
323
- }, Te = { class: "mc-circular-progressbar__number" }, Se = {
356
+ }, Fe = { class: "mc-circular-progressbar__number" }, Ne = {
324
357
  key: 0,
325
358
  class: "mc-circular-progressbar__text"
326
- }, Pe = /* @__PURE__ */ $({
359
+ }, Re = /* @__PURE__ */ _({
327
360
  __name: "MCircularProgressbar",
328
361
  props: {
329
362
  size: {},
@@ -332,93 +365,63 @@ const le = /* @__PURE__ */ $({
332
365
  contentValue: {},
333
366
  additionalInfo: {}
334
367
  },
335
- setup(r) {
336
- const e = r, a = v(() => ({
337
- [`mc-circular-progressbar--${e.size}`]: e.size && e.size != "l"
368
+ setup(e) {
369
+ const a = e, t = b(() => ({
370
+ [`mc-circular-progressbar--${a.size}`]: a.size && a.size != "l"
338
371
  }));
339
- return (t, n) => (o(), i("div", {
340
- class: g(["mc-circular-progressbar", a.value]),
372
+ return (l, n) => (s(), o("div", {
373
+ class: h(["mc-circular-progressbar", t.value]),
341
374
  role: "progressbar",
342
- style: H(`--progress-value: ${t.value};`),
343
- "aria-valuenow": t.value,
375
+ style: U(`--progress-value: ${e.value};`),
376
+ "aria-valuenow": e.value,
344
377
  "aria-valuemin": 0,
345
378
  "aria-valuemax": 100
346
379
  }, [
347
- n[1] || (n[1] = d("svg", {
380
+ n[1] || (n[1] = c("svg", {
348
381
  class: "mc-circular-progressbar__line",
349
382
  xmlns: "http://www.w3.org/2000/svg",
350
383
  "aria-hidden": "true",
351
384
  viewBox: "0 0 100 100"
352
385
  }, [
353
- d("circle", {
386
+ c("circle", {
354
387
  class: "mc-circular-progressbar__track",
355
388
  cx: "50",
356
389
  cy: "50",
357
390
  r: "46"
358
391
  }),
359
- d("circle", {
392
+ c("circle", {
360
393
  class: "mc-circular-progressbar__indicator",
361
394
  cx: "50",
362
395
  cy: "50",
363
396
  r: "46"
364
397
  })
365
398
  ], -1)),
366
- t.type === "percentage" ? (o(), i("div", Le, [
367
- d("p", je, b(t.value), 1),
368
- n[0] || (n[0] = d("p", { class: "mc-circular-progressbar__unit" }, "%", -1))
369
- ])) : h("", !0),
370
- t.type === "content" ? (o(), i("div", Oe, [
371
- d("p", Te, b(t.contentValue), 1),
372
- t.additionalInfo ? (o(), i("p", Se, b(t.additionalInfo), 1)) : h("", !0)
373
- ])) : h("", !0)
374
- ], 14, ze));
375
- }
376
- }), eo = /* @__PURE__ */ m(Pe, [["__scopeId", "data-v-ec931b7f"]]), De = { class: "mc-callout__icon" }, qe = { class: "mc-callout__content" }, Fe = { class: "mc-callout__title" }, Ae = { class: "mc-callout__message" }, Ne = {
377
- key: 0,
378
- class: "mc-callout__footer"
379
- }, Re = /* @__PURE__ */ $({
380
- __name: "MCallout",
381
- props: {
382
- title: {},
383
- description: {},
384
- appearance: { default: "standard" }
385
- },
386
- setup(r) {
387
- const e = r, a = v(() => ({
388
- [`mc-callout--${e.appearance}`]: e.appearance && e.appearance != "standard"
389
- }));
390
- return (t, n) => (o(), i("section", {
391
- class: g(["mc-callout", a.value]),
392
- role: "status"
393
- }, [
394
- d("div", De, [
395
- k(t.$slots, "icon", {}, void 0, !0)
396
- ]),
397
- d("div", qe, [
398
- d("h2", Fe, b(t.title), 1),
399
- d("p", Ae, b(t.description), 1),
400
- t.$slots.footer ? (o(), i("div", Ne, [
401
- k(t.$slots, "footer", {}, void 0, !0)
402
- ])) : h("", !0)
403
- ])
404
- ], 2));
399
+ e.type === "percentage" ? (s(), o("div", Pe, [
400
+ c("p", De, p(e.value), 1),
401
+ n[0] || (n[0] = c("p", { class: "mc-circular-progressbar__unit" }, "%", -1))
402
+ ])) : f("", !0),
403
+ e.type === "content" ? (s(), o("div", qe, [
404
+ c("p", Fe, p(e.contentValue), 1),
405
+ e.additionalInfo ? (s(), o("p", Ne, p(e.additionalInfo), 1)) : f("", !0)
406
+ ])) : f("", !0)
407
+ ], 14, Ae));
405
408
  }
406
- }), ao = /* @__PURE__ */ m(Re, [["__scopeId", "data-v-b8152dc3"]]), Ge = /* @__PURE__ */ $({
409
+ }), al = /* @__PURE__ */ v(Re, [["__scopeId", "data-v-f37d31c9"]]), Ge = /* @__PURE__ */ _({
407
410
  __name: "MContainer",
408
411
  props: {
409
412
  fluid: { type: Boolean }
410
413
  },
411
- setup(r) {
412
- const e = r, a = v(() => ({
413
- "ml-container--fluid": e.fluid
414
+ setup(e) {
415
+ const a = e, t = b(() => ({
416
+ "ml-container--fluid": a.fluid
414
417
  }));
415
- return (t, n) => (o(), i("div", {
416
- class: g(["ml-container", a.value])
418
+ return (l, n) => (s(), o("div", {
419
+ class: h(["ml-container", t.value])
417
420
  }, [
418
- k(t.$slots, "default", {}, void 0, !0)
421
+ y(l.$slots, "default", {}, void 0, !0)
419
422
  ], 2));
420
423
  }
421
- }), to = /* @__PURE__ */ m(Ge, [["__scopeId", "data-v-7e690cca"]]), Ue = {
424
+ }), sl = /* @__PURE__ */ v(Ge, [["__scopeId", "data-v-e0acf0a2"]]), Ue = {
422
425
  name: "CrossCircleFilled24",
423
426
  props: {
424
427
  /**
@@ -429,26 +432,27 @@ const le = /* @__PURE__ */ $({
429
432
  default: "currentColor"
430
433
  }
431
434
  }
432
- }, He = ["fill"];
433
- function Ke(r, e, a, t, n, s) {
434
- return o(), i("svg", {
435
+ }, Ke = ["fill"];
436
+ function He(e, a, t, l, n, i) {
437
+ return s(), o("svg", {
435
438
  "aria-hidden": "true",
436
- fill: a.color,
439
+ fill: t.color,
437
440
  xmlns: "http://www.w3.org/2000/svg",
438
441
  viewBox: "0 0 24 24",
439
442
  width: "24",
440
443
  height: "24"
441
- }, [...e[0] || (e[0] = [
442
- d("path", {
444
+ }, [...a[0] || (a[0] = [
445
+ c("path", {
443
446
  "fill-rule": "evenodd",
444
447
  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"
445
448
  }, null, -1)
446
- ])], 8, He);
449
+ ])], 8, Ke);
447
450
  }
448
- const A = /* @__PURE__ */ m(Ue, [["render", Ke]]), Ee = ["id", "value", "name", "disabled", "aria-invalid", "readonly"], Qe = {
451
+ const q = /* @__PURE__ */ v(Ue, [["render", He]]), Ee = ["id", "value", "name", "disabled", "aria-invalid", "readonly"], Qe = {
449
452
  key: 0,
450
453
  class: "mc-datepicker__controls-options mc-controls-options"
451
- }, Je = { class: "mc-controls-options__label" }, We = /* @__PURE__ */ $({
454
+ }, Je = { class: "mc-controls-options__label" }, We = /* @__PURE__ */ _({
455
+ inheritAttrs: !1,
452
456
  __name: "MDatepicker",
453
457
  props: {
454
458
  id: {},
@@ -462,64 +466,64 @@ const A = /* @__PURE__ */ m(Ue, [["render", Ke]]), Ee = ["id", "value", "name",
462
466
  clearLabel: { default: "clear content" }
463
467
  },
464
468
  emits: ["update:modelValue"],
465
- setup(r, { emit: e }) {
466
- const a = r, t = v(() => ({
467
- [`mc-text-input--${a.size} mc-datepicker--${a.size}`]: a.size && a.size != "m",
468
- "is-invalid": a.isInvalid
469
- })), n = z(a.modelValue), s = () => {
470
- n.value = "", l("update:modelValue", "");
471
- }, l = e;
472
- return (p, u) => (o(), i("div", {
473
- class: g(["mc-datepicker mc-text-input", t.value])
469
+ setup(e, { emit: a }) {
470
+ const t = e, l = b(() => ({
471
+ [`mc-text-input--${t.size} mc-datepicker--${t.size}`]: t.size && t.size != "m",
472
+ "is-invalid": t.isInvalid
473
+ })), n = M(t.modelValue), i = () => {
474
+ n.value = "", d("update:modelValue", "");
475
+ }, d = a;
476
+ return (u, m) => (s(), o("div", {
477
+ class: h(["mc-datepicker mc-text-input", l.value])
474
478
  }, [
475
- d("input", I({
476
- id: p.id,
479
+ c("input", V({
480
+ id: e.id,
477
481
  class: "mc-datepicker__control mc-text-input__control",
478
482
  value: n.value,
479
483
  type: "date",
480
- name: p.name,
481
- disabled: p.disabled,
482
- "aria-invalid": p.isInvalid,
483
- readonly: p.readonly
484
- }, p.$attrs, {
485
- onInput: u[0] || (u[0] = (_) => l("update:modelValue", _.target.value))
484
+ name: e.name,
485
+ disabled: e.disabled,
486
+ "aria-invalid": e.isInvalid,
487
+ readonly: e.readonly
488
+ }, u.$attrs, {
489
+ onInput: m[0] || (m[0] = (g) => d("update:modelValue", g.target.value))
486
490
  }), null, 16, Ee),
487
- p.isClearable && n.value ? (o(), i("div", Qe, [
488
- d("button", {
491
+ e.isClearable && n.value ? (s(), o("div", Qe, [
492
+ c("button", {
489
493
  type: "button",
490
494
  class: "mc-controls-options__button",
491
- onClick: s
495
+ onClick: i
492
496
  }, [
493
- w(A, {
497
+ k(q, {
494
498
  class: "mc-controls-options__icon",
495
499
  "aria-hidden": "true"
496
500
  }),
497
- d("span", Je, b(p.clearLabel), 1)
501
+ c("span", Je, p(e.clearLabel), 1)
498
502
  ])
499
- ])) : h("", !0)
503
+ ])) : f("", !0)
500
504
  ], 2));
501
505
  }
502
- }), so = /* @__PURE__ */ m(We, [["__scopeId", "data-v-0c5cddc2"]]), Xe = { class: "mc-divider" }, Ye = /* @__PURE__ */ $({
506
+ }), ll = /* @__PURE__ */ v(We, [["__scopeId", "data-v-e9a7bac9"]]), Xe = { class: "mc-divider" }, Ye = /* @__PURE__ */ _({
503
507
  __name: "MDivider",
504
508
  props: {
505
509
  orientation: { default: "horizontal" },
506
- style: { default: "primary" },
510
+ appearance: { default: "primary" },
507
511
  size: { default: "s" }
508
512
  },
509
- setup(r) {
510
- const e = r, a = v(() => ({
511
- [`mc-divider-${e.orientation}`]: e.orientation,
512
- [`mc-divider-horizontal--${e.style}`]: e.style && e.style != "primary",
513
- [`mc-divider-horizontal--${e.size}`]: e.size && e.size != "s"
513
+ setup(e) {
514
+ const a = e, t = b(() => ({
515
+ [`mc-divider-${a.orientation}`]: a.orientation,
516
+ [`mc-divider-horizontal--${a.appearance}`]: a.appearance && a.appearance != "primary",
517
+ [`mc-divider-horizontal--${a.size}`]: a.size && a.size != "s"
514
518
  }));
515
- return (t, n) => (o(), i("div", Xe, [
516
- d("div", {
517
- class: g(a.value)
519
+ return (l, n) => (s(), o("div", Xe, [
520
+ c("div", {
521
+ class: h(t.value)
518
522
  }, null, 2),
519
- k(t.$slots, "default", {}, void 0, !0)
523
+ y(l.$slots, "default", {}, void 0, !0)
520
524
  ]));
521
525
  }
522
- }), Ze = /* @__PURE__ */ m(Ye, [["__scopeId", "data-v-9af5a704"]]), xe = {
526
+ }), Ze = /* @__PURE__ */ v(Ye, [["__scopeId", "data-v-49acd035"]]), et = {
523
527
  name: "ArrowBack24",
524
528
  props: {
525
529
  /**
@@ -530,23 +534,23 @@ const A = /* @__PURE__ */ m(Ue, [["render", Ke]]), Ee = ["id", "value", "name",
530
534
  default: "currentColor"
531
535
  }
532
536
  }
533
- }, ea = ["fill"];
534
- function aa(r, e, a, t, n, s) {
535
- return o(), i("svg", {
537
+ }, tt = ["fill"];
538
+ function at(e, a, t, l, n, i) {
539
+ return s(), o("svg", {
536
540
  "aria-hidden": "true",
537
- fill: a.color,
541
+ fill: t.color,
538
542
  xmlns: "http://www.w3.org/2000/svg",
539
543
  viewBox: "0 0 24 24",
540
544
  width: "24",
541
545
  height: "24"
542
- }, [...e[0] || (e[0] = [
543
- d("path", {
546
+ }, [...a[0] || (a[0] = [
547
+ c("path", {
544
548
  "fill-rule": "evenodd",
545
549
  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"
546
550
  }, null, -1)
547
- ])], 8, ea);
551
+ ])], 8, tt);
548
552
  }
549
- const ta = /* @__PURE__ */ m(xe, [["render", aa]]), sa = {
553
+ const st = /* @__PURE__ */ v(et, [["render", at]]), lt = {
550
554
  name: "Cross24",
551
555
  props: {
552
556
  /**
@@ -557,23 +561,23 @@ const ta = /* @__PURE__ */ m(xe, [["render", aa]]), sa = {
557
561
  default: "currentColor"
558
562
  }
559
563
  }
560
- }, oa = ["fill"];
561
- function la(r, e, a, t, n, s) {
562
- return o(), i("svg", {
564
+ }, nt = ["fill"];
565
+ function ot(e, a, t, l, n, i) {
566
+ return s(), o("svg", {
563
567
  "aria-hidden": "true",
564
- fill: a.color,
568
+ fill: t.color,
565
569
  xmlns: "http://www.w3.org/2000/svg",
566
570
  viewBox: "0 0 24 24",
567
571
  width: "24",
568
572
  height: "24"
569
- }, [...e[0] || (e[0] = [
570
- d("path", {
573
+ }, [...a[0] || (a[0] = [
574
+ c("path", {
571
575
  "fill-rule": "evenodd",
572
576
  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"
573
577
  }, null, -1)
574
- ])], 8, oa);
578
+ ])], 8, nt);
575
579
  }
576
- const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia = { class: "mc-button__icon" }, ra = /* @__PURE__ */ $({
580
+ const E = /* @__PURE__ */ v(lt, [["render", ot]]), it = ["disabled", "type"], ct = { class: "mc-button__icon" }, dt = /* @__PURE__ */ _({
577
581
  __name: "MIconButton",
578
582
  props: {
579
583
  appearance: { default: "standard" },
@@ -583,58 +587,56 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
583
587
  outlined: { type: Boolean },
584
588
  type: { default: "button" }
585
589
  },
586
- setup(r) {
587
- const e = r, a = v(() => ({
588
- [`mc-button--${e.appearance}`]: e.appearance && e.appearance != "standard",
589
- [`mc-button--${e.size}`]: e.size && e.size != "m",
590
- "mc-button--ghost": e.ghost,
591
- "mc-button--outlined": e.outlined
590
+ setup(e) {
591
+ const a = e, t = b(() => ({
592
+ [`mc-button--${a.appearance}`]: a.appearance && a.appearance != "standard",
593
+ [`mc-button--${a.size}`]: a.size && a.size != "m",
594
+ "mc-button--ghost": a.ghost,
595
+ "mc-button--outlined": a.outlined
592
596
  }));
593
- return (t, n) => (o(), i("button", {
594
- class: g(["mc-button mc-button--icon-button", a.value]),
595
- disabled: t.disabled,
596
- type: t.type
597
+ return (l, n) => (s(), o("button", {
598
+ class: h(["mc-button mc-button--icon-button", t.value]),
599
+ disabled: e.disabled,
600
+ type: e.type
597
601
  }, [
598
- d("span", ia, [
599
- k(t.$slots, "icon", {}, void 0, !0)
602
+ c("span", ct, [
603
+ y(l.$slots, "icon", {}, void 0, !0)
600
604
  ])
601
- ], 10, na));
605
+ ], 10, it));
602
606
  }
603
- }), S = /* @__PURE__ */ m(ra, [["__scopeId", "data-v-abf78562"]]), da = ["aria-labelledby"], ca = /* @__PURE__ */ $({
607
+ }), A = /* @__PURE__ */ v(dt, [["__scopeId", "data-v-a6332bf4"]]), rt = ["aria-labelledby"], ut = /* @__PURE__ */ _({
604
608
  __name: "MOverlay",
605
609
  props: {
606
610
  isVisible: { type: Boolean },
607
611
  dialogLabel: {}
608
612
  },
609
- setup(r) {
610
- return (e, a) => (o(), i("div", {
611
- class: g(["mc-overlay", { "is-visible": e.isVisible }])
613
+ setup(e) {
614
+ return (a, t) => (s(), o("div", {
615
+ class: h(["mc-overlay", { "is-visible": e.isVisible }])
612
616
  }, [
613
- d("div", {
617
+ c("div", {
614
618
  role: "dialog",
615
619
  tabindex: "-1",
616
620
  "aria-labelledby": e.dialogLabel
617
621
  }, [
618
- k(e.$slots, "default", {}, void 0, !0)
619
- ], 8, da)
622
+ y(a.$slots, "default", {}, void 0, !0)
623
+ ], 8, rt)
620
624
  ], 2));
621
625
  }
622
- }), J = /* @__PURE__ */ m(ca, [["__scopeId", "data-v-db90fdb3"]]), ua = ["aria-modal", "aria-hidden"], pa = {
626
+ }), Q = /* @__PURE__ */ v(ut, [["__scopeId", "data-v-c69efda4"]]), mt = ["aria-modal", "aria-hidden"], vt = {
623
627
  class: "mc-drawer__dialog",
624
628
  role: "document"
625
- }, ma = { class: "mc-drawer__header" }, _a = {
626
- class: "mc-drawer__title",
627
- id: "drawerTitle"
628
- }, va = { class: "mc-drawer__body" }, ba = {
629
+ }, bt = { class: "mc-drawer__header" }, pt = { class: "mc-drawer__body" }, ft = {
629
630
  class: "mc-drawer__content",
630
631
  tabindex: "0"
631
- }, fa = {
632
+ }, _t = {
632
633
  key: 0,
633
634
  class: "mc-drawer__content__title"
634
- }, ha = {
635
+ }, ht = {
635
636
  key: 0,
636
637
  class: "mc-drawer__footer"
637
- }, $a = /* @__PURE__ */ $({
638
+ }, $t = /* @__PURE__ */ _({
639
+ inheritAttrs: !1,
638
640
  __name: "MDrawer",
639
641
  props: {
640
642
  open: { type: Boolean },
@@ -645,82 +647,92 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
645
647
  contentTitle: {}
646
648
  },
647
649
  emits: ["update:open", "back"],
648
- setup(r, { emit: e }) {
649
- const a = r, t = v(() => ({
650
- "is-open": a.open,
651
- "mc-drawer--extend": a.extended,
652
- [`mc-drawer--${a.position}`]: a.position && a.position != "right"
650
+ setup(e, { emit: a }) {
651
+ const t = e, l = b(() => ({
652
+ "is-open": t.open,
653
+ "mc-drawer--extend": t.extended,
654
+ [`mc-drawer--${t.position}`]: t.position && t.position != "right"
653
655
  }));
654
- T(
655
- () => a.open,
656
- (l) => {
657
- s("update:open", l);
656
+ z(
657
+ () => t.open,
658
+ (u) => {
659
+ d("update:open", u);
658
660
  }
659
661
  );
660
- const n = () => {
661
- s("update:open", !1);
662
- }, s = e;
663
- return (l, p) => (o(), B(J, {
664
- "is-visible": l.open,
662
+ const n = M(null);
663
+ z(() => t.open, (u) => {
664
+ u && n.value && n.value.focus();
665
+ });
666
+ const i = () => {
667
+ d("update:open", !1);
668
+ }, d = a;
669
+ return (u, m) => (s(), C(Q, {
670
+ "is-visible": e.open,
665
671
  dialogLabel: "drawerTitle"
666
672
  }, {
667
- default: M(() => [
668
- d("section", I({
669
- class: ["mc-drawer", t.value],
673
+ default: B(() => [
674
+ c("section", V({
675
+ class: ["mc-drawer", l.value],
670
676
  role: "dialog",
671
677
  "aria-labelledby": "drawerTitle",
672
- "aria-modal": l.open ? "true" : "false",
678
+ "aria-modal": e.open ? "true" : "false",
673
679
  tabindex: "-1",
674
- "aria-hidden": !l.open
675
- }, l.$attrs, {
676
- onKeydown: R(n, ["esc"])
680
+ "aria-hidden": !e.open
681
+ }, u.$attrs, {
682
+ onKeydown: N(i, ["esc"])
677
683
  }), [
678
- d("div", pa, [
679
- d("div", ma, [
680
- l.back ? (o(), B(S, {
684
+ c("div", vt, [
685
+ c("div", bt, [
686
+ e.back ? (s(), C(A, {
681
687
  key: 0,
682
688
  class: "mc-drawer__back",
683
689
  "aria-label": "Back",
684
690
  ghost: "",
685
- onClick: p[0] || (p[0] = (u) => s("back"))
691
+ onClick: m[0] || (m[0] = (g) => d("back"))
686
692
  }, {
687
- icon: M(() => [
688
- w(ta, { "aria-hidden": "true" })
693
+ icon: B(() => [
694
+ k(st, { "aria-hidden": "true" })
689
695
  ]),
690
696
  _: 1
691
- })) : h("", !0),
692
- d("h2", _a, b(l.title), 1),
693
- w(S, {
697
+ })) : f("", !0),
698
+ c("h2", {
699
+ class: "mc-drawer__title",
700
+ tabindex: "-1",
701
+ id: "drawerTitle",
702
+ ref_key: "titleRef",
703
+ ref: n
704
+ }, p(e.title), 513),
705
+ k(A, {
694
706
  class: "mc-drawer__close",
695
707
  "aria-label": "Close",
696
708
  ghost: "",
697
- onClick: n
709
+ onClick: i
698
710
  }, {
699
- icon: M(() => [
700
- w(Q, { "aria-hidden": "true" })
711
+ icon: B(() => [
712
+ k(E, { "aria-hidden": "true" })
701
713
  ]),
702
714
  _: 1
703
715
  })
704
716
  ]),
705
- d("div", va, [
706
- d("div", ba, [
707
- l.contentTitle ? (o(), i("h2", fa, b(l.contentTitle), 1)) : h("", !0),
708
- k(l.$slots, "default", {}, void 0, !0)
717
+ c("div", pt, [
718
+ c("div", ft, [
719
+ e.contentTitle ? (s(), o("h2", _t, p(e.contentTitle), 1)) : f("", !0),
720
+ y(u.$slots, "default", {}, void 0, !0)
709
721
  ])
710
722
  ]),
711
- l.$slots.footer ? (o(), i("div", ha, [
712
- k(l.$slots, "footer", {}, void 0, !0)
713
- ])) : h("", !0)
723
+ u.$slots.footer ? (s(), o("div", ht, [
724
+ y(u.$slots, "footer", {}, void 0, !0)
725
+ ])) : f("", !0)
714
726
  ])
715
- ], 16, ua)
727
+ ], 16, mt)
716
728
  ]),
717
729
  _: 3
718
730
  }, 8, ["is-visible"]));
719
731
  }
720
- }), oo = /* @__PURE__ */ m($a, [["__scopeId", "data-v-673a796c"]]), ga = { class: "mc-field" }, ya = ["for"], ka = {
732
+ }), nl = /* @__PURE__ */ v($t, [["__scopeId", "data-v-89771581"]]), gt = { class: "mc-field" }, yt = ["for"], kt = {
721
733
  key: 0,
722
734
  class: "mc-field__requirement"
723
- }, wa = ["id"], Va = { class: "mc-field__content" }, Ia = ["id"], Ba = /* @__PURE__ */ $({
735
+ }, wt = ["id"], Vt = { class: "mc-field__content" }, It = ["id"], Ct = /* @__PURE__ */ _({
724
736
  __name: "MField",
725
737
  props: {
726
738
  id: {},
@@ -733,41 +745,41 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
733
745
  messageId: {},
734
746
  message: {}
735
747
  },
736
- setup(r) {
737
- const e = r, a = v(() => ({
738
- "is-valid": e.isValid,
739
- "is-invalid": e.isInvalid
748
+ setup(e) {
749
+ const a = e, t = b(() => ({
750
+ "is-valid": a.isValid,
751
+ "is-invalid": a.isInvalid
740
752
  }));
741
- return (t, n) => (o(), i("div", ga, [
742
- d("label", {
753
+ return (l, n) => (s(), o("div", gt, [
754
+ c("label", {
743
755
  class: "mc-field__label",
744
- for: t.id
756
+ for: e.id
745
757
  }, [
746
- q(b(t.label) + " ", 1),
747
- t.requirementText ? (o(), i("span", ka, "(" + b(t.requirementText) + ")", 1)) : h("", !0)
748
- ], 8, ya),
749
- t.helpId && t.helpText ? (o(), i("span", {
758
+ P(p(e.label) + " ", 1),
759
+ e.requirementText ? (s(), o("span", kt, "(" + p(e.requirementText) + ")", 1)) : f("", !0)
760
+ ], 8, yt),
761
+ e.helpId && e.helpText ? (s(), o("span", {
750
762
  key: 0,
751
- id: t.helpId,
763
+ id: e.helpId,
752
764
  class: "mc-field__help"
753
- }, b(t.helpText), 9, wa)) : h("", !0),
754
- d("div", Va, [
755
- k(t.$slots, "default", {}, void 0, !0)
765
+ }, p(e.helpText), 9, wt)) : f("", !0),
766
+ c("div", Vt, [
767
+ y(l.$slots, "default", {}, void 0, !0)
756
768
  ]),
757
- (t.isValid || t.isInvalid) && t.message ? (o(), i("span", {
769
+ (e.isValid || e.isInvalid) && e.message ? (s(), o("span", {
758
770
  key: 1,
759
- class: g(["mc-field__validation-message", a.value]),
760
- id: t.messageId
761
- }, b(t.message), 11, Ia)) : h("", !0)
771
+ class: h(["mc-field__validation-message", t.value]),
772
+ id: e.messageId
773
+ }, p(e.message), 11, It)) : f("", !0)
762
774
  ]));
763
775
  }
764
- }), lo = /* @__PURE__ */ m(Ba, [["__scopeId", "data-v-ead078c4"]]), Ca = { class: "mc-field--group" }, Ma = ["for"], za = {
776
+ }), ol = /* @__PURE__ */ v(Ct, [["__scopeId", "data-v-1a3a8141"]]), xt = { class: "mc-field--group" }, Bt = ["for"], Mt = {
765
777
  key: 0,
766
778
  class: "mc-field__requirement"
767
- }, La = {
779
+ }, zt = {
768
780
  key: 0,
769
781
  class: "mc-field__help"
770
- }, ja = { class: "mc-field__content" }, Oa = /* @__PURE__ */ $({
782
+ }, Lt = { class: "mc-field__content" }, jt = /* @__PURE__ */ _({
771
783
  __name: "MFieldGroup",
772
784
  props: {
773
785
  id: {},
@@ -778,81 +790,132 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
778
790
  isInvalid: { type: Boolean },
779
791
  message: {}
780
792
  },
781
- setup(r) {
782
- const e = r, a = v(() => ({
783
- "is-valid": e.isValid,
784
- "is-invalid": e.isInvalid
793
+ setup(e) {
794
+ const a = e, t = b(() => ({
795
+ "is-valid": a.isValid,
796
+ "is-invalid": a.isInvalid
785
797
  }));
786
- return (t, n) => (o(), i("fieldset", Ca, [
787
- d("legend", {
798
+ return (l, n) => (s(), o("fieldset", xt, [
799
+ c("legend", {
788
800
  class: "mc-field__legend",
789
- for: t.id
801
+ for: e.id
790
802
  }, [
791
- q(b(t.legend) + " ", 1),
792
- t.requirementText ? (o(), i("span", za, "(" + b(t.requirementText) + ")", 1)) : h("", !0)
793
- ], 8, Ma),
794
- t.helpText ? (o(), i("span", La, b(t.helpText), 1)) : h("", !0),
795
- d("div", ja, [
796
- k(t.$slots, "default", {}, void 0, !0)
803
+ P(p(e.legend) + " ", 1),
804
+ e.requirementText ? (s(), o("span", Mt, "(" + p(e.requirementText) + ")", 1)) : f("", !0)
805
+ ], 8, Bt),
806
+ e.helpText ? (s(), o("span", zt, p(e.helpText), 1)) : f("", !0),
807
+ c("div", Lt, [
808
+ y(l.$slots, "default", {}, void 0, !0)
797
809
  ]),
798
- (t.isValid || t.isInvalid) && t.message ? (o(), i("span", {
810
+ (e.isValid || e.isInvalid) && e.message ? (s(), o("span", {
799
811
  key: 1,
800
- class: g(["mc-field__validation-message", a.value])
801
- }, b(t.message), 3)) : h("", !0)
812
+ class: h(["mc-field__validation-message", t.value])
813
+ }, p(e.message), 3)) : f("", !0)
802
814
  ]));
803
815
  }
804
- }), no = /* @__PURE__ */ m(Oa, [["__scopeId", "data-v-fc0c08dc"]]), Ta = { class: "mc-flag__label" }, Sa = /* @__PURE__ */ $({
816
+ }), il = /* @__PURE__ */ v(jt, [["__scopeId", "data-v-fc0c08dc"]]), Ot = { class: "mc-flag__label" }, Tt = /* @__PURE__ */ _({
805
817
  __name: "MFlag",
806
818
  props: {
807
819
  label: {},
808
820
  appearance: {}
809
821
  },
810
- setup(r) {
811
- const e = r, a = v(() => ({
812
- [`mc-flag--${e.appearance}`]: e.appearance && e.appearance != "standard"
822
+ setup(e) {
823
+ const a = e, t = b(() => ({
824
+ [`mc-flag--${a.appearance}`]: a.appearance && a.appearance != "standard"
825
+ }));
826
+ return (l, n) => (s(), o("div", {
827
+ class: h(["mc-flag", t.value])
828
+ }, [
829
+ c("span", Ot, p(e.label), 1)
830
+ ], 2));
831
+ }
832
+ }), cl = /* @__PURE__ */ v(Tt, [["__scopeId", "data-v-dae5e572"]]), St = ["aria-valuenow"], At = /* @__PURE__ */ _({
833
+ inheritAttrs: !1,
834
+ __name: "MLinearProgressbarBuffer",
835
+ props: {
836
+ size: {},
837
+ value: { default: 0 }
838
+ },
839
+ setup(e) {
840
+ const a = e, t = b(() => ({
841
+ [`mc-linear-progressbar-buffer--${a.size}`]: a.size && a.size != "m"
813
842
  }));
814
- return (t, n) => (o(), i("div", {
815
- class: g(["mc-flag", a.value])
843
+ return (l, n) => (s(), o("div", {
844
+ class: h(["mc-linear-progressbar-buffer", t.value])
816
845
  }, [
817
- d("span", Ta, b(t.label), 1)
846
+ c("div", V({
847
+ class: "mc-linear-progressbar-buffer__indicator",
848
+ role: "progressbar",
849
+ style: `--progress-value: ${e.value};`,
850
+ "aria-valuenow": e.value,
851
+ "aria-valuemin": 0,
852
+ "aria-valuemax": 100
853
+ }, l.$attrs), null, 16, St)
818
854
  ], 2));
819
855
  }
820
- }), io = /* @__PURE__ */ m(Sa, [["__scopeId", "data-v-9245f79e"]]), Pa = ["aria-label"], Da = /* @__PURE__ */ $({
856
+ }), Pt = /* @__PURE__ */ v(At, [["__scopeId", "data-v-5306d571"]]), Dt = { class: "mc-linear-progressbar-percentage" }, qt = ["aria-valuenow"], Ft = { class: "mc-linear-progressbar-percentage__label" }, Nt = { class: "mc-linear-progressbar-percentage__value" }, Rt = /* @__PURE__ */ _({
857
+ inheritAttrs: !1,
858
+ __name: "MLinearProgressbarPercentage",
859
+ props: {
860
+ value: { default: 0 }
861
+ },
862
+ setup(e) {
863
+ return (a, t) => (s(), o("div", Dt, [
864
+ c("div", V({
865
+ class: "mc-linear-progressbar-percentage__indicator",
866
+ role: "progressbar",
867
+ style: `--progress-value: ${e.value};`,
868
+ "aria-valuenow": e.value,
869
+ "aria-valuemin": 0,
870
+ "aria-valuemax": 100
871
+ }, a.$attrs), [
872
+ c("div", Ft, [
873
+ c("p", Nt, [
874
+ P(p(e.value), 1),
875
+ t[0] || (t[0] = c("span", { class: "mc-linear-progressbar-percentage__unit" }, "%", -1))
876
+ ])
877
+ ])
878
+ ], 16, qt)
879
+ ]));
880
+ }
881
+ }), dl = /* @__PURE__ */ v(Rt, [["__scopeId", "data-v-01197cd0"]]), Gt = ["aria-label"], Ut = /* @__PURE__ */ _({
882
+ inheritAttrs: !1,
821
883
  __name: "MLoadingOverlay",
822
884
  props: {
823
885
  isVisible: { type: Boolean },
824
886
  text: {}
825
887
  },
826
- setup(r) {
827
- return (e, a) => (o(), i("div", {
828
- class: g(["mc-loading-loader", { "is-visible": e.isVisible }])
888
+ setup(e) {
889
+ return (a, t) => (s(), o("div", {
890
+ class: h(["mc-loading-loader", { "is-visible": e.isVisible }])
829
891
  }, [
830
- d("div", I({
892
+ c("div", V({
831
893
  role: "dialog",
832
894
  tabindex: "-1",
833
895
  "aria-label": e.text
834
- }, e.$attrs), [
835
- w(E, {
896
+ }, a.$attrs), [
897
+ k(H, {
836
898
  size: "l",
837
899
  appearance: "inverse",
838
900
  text: e.text
839
901
  }, null, 8, ["text"])
840
- ], 16, Pa)
902
+ ], 16, Gt)
841
903
  ], 2));
842
904
  }
843
- }), ro = /* @__PURE__ */ m(Da, [["__scopeId", "data-v-eae6b1f2"]]), qa = ["aria-modal", "aria-hidden"], Fa = {
905
+ }), rl = /* @__PURE__ */ v(Ut, [["__scopeId", "data-v-d5adc90d"]]), Kt = ["aria-modal", "aria-hidden"], Ht = {
844
906
  class: "mc-modal__dialog",
845
907
  role: "document"
846
- }, Aa = { class: "mc-modal__header" }, Na = {
908
+ }, Et = { class: "mc-modal__header" }, Qt = {
847
909
  key: 0,
848
910
  class: "mc-modal__icon"
849
- }, Ra = {
911
+ }, Jt = {
850
912
  class: "mc-modal__title",
851
913
  id: "modalTitle"
852
- }, Ga = { class: "mc-modal__body" }, Ua = {
914
+ }, Wt = { class: "mc-modal__body" }, Xt = {
853
915
  key: 0,
854
916
  class: "mc-modal__footer"
855
- }, Ha = { class: "mc-modal__link" }, Ka = /* @__PURE__ */ $({
917
+ }, Yt = { class: "mc-modal__link" }, Zt = /* @__PURE__ */ _({
918
+ inheritAttrs: !1,
856
919
  __name: "MModal",
857
920
  props: {
858
921
  open: { type: Boolean },
@@ -861,90 +924,91 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
861
924
  closable: { type: Boolean, default: !0 }
862
925
  },
863
926
  emits: ["update:open"],
864
- setup(r, { emit: e }) {
865
- const a = r, t = v(() => ({
866
- "is-open": a.open
927
+ setup(e, { emit: a }) {
928
+ const t = e, l = b(() => ({
929
+ "is-open": t.open
867
930
  }));
868
- T(
869
- () => a.open,
870
- (l) => {
871
- s("update:open", l);
931
+ z(
932
+ () => t.open,
933
+ (d) => {
934
+ i("update:open", d);
872
935
  }
873
936
  );
874
937
  const n = () => {
875
- s("update:open", !1);
876
- }, s = e;
877
- return (l, p) => (o(), B(J, {
878
- "is-visible": l.open,
938
+ i("update:open", !1);
939
+ }, i = a;
940
+ return (d, u) => (s(), C(Q, {
941
+ "is-visible": e.open,
879
942
  dialogLabel: "modalTitle"
880
943
  }, {
881
- default: M(() => [
882
- d("section", I({
883
- class: ["mc-modal", t.value],
944
+ default: B(() => [
945
+ c("section", V({
946
+ class: ["mc-modal", l.value],
884
947
  role: "dialog",
885
948
  "aria-labelledby": "modalTitle",
886
- "aria-modal": l.open ? "true" : "false",
949
+ "aria-modal": e.open ? "true" : "false",
887
950
  tabindex: "-1",
888
- "aria-hidden": !l.open
889
- }, l.$attrs, {
890
- onKeydown: R(n, ["esc"])
951
+ "aria-hidden": !e.open
952
+ }, d.$attrs, {
953
+ onKeydown: N(n, ["esc"])
891
954
  }), [
892
- d("div", Fa, [
893
- d("header", Aa, [
894
- l.$slots.icon ? (o(), i("span", Na, [
895
- k(l.$slots, "icon", {}, void 0, !0)
896
- ])) : h("", !0),
897
- d("h2", Ra, b(l.title), 1),
898
- l.closable ? (o(), B(S, {
955
+ c("div", Ht, [
956
+ c("header", Et, [
957
+ d.$slots.icon ? (s(), o("span", Qt, [
958
+ y(d.$slots, "icon", {}, void 0, !0)
959
+ ])) : f("", !0),
960
+ c("h2", Jt, p(e.title), 1),
961
+ e.closable ? (s(), C(A, {
899
962
  key: 1,
900
963
  class: "mc-modal__close",
901
964
  "aria-label": "Close",
902
965
  ghost: "",
903
966
  onClick: n
904
967
  }, {
905
- icon: M(() => [
906
- w(Q, { "aria-hidden": "true" })
968
+ icon: B(() => [
969
+ k(E, { "aria-hidden": "true" })
907
970
  ]),
908
971
  _: 1
909
- })) : h("", !0)
972
+ })) : f("", !0)
910
973
  ]),
911
- d("main", Ga, [
912
- d("p", null, b(l.description), 1),
913
- k(l.$slots, "default", {}, void 0, !0)
974
+ c("main", Wt, [
975
+ c("p", null, p(e.description), 1),
976
+ y(d.$slots, "default", {}, void 0, !0)
914
977
  ]),
915
- l.$slots.footer ? (o(), i("footer", Ua, [
916
- d("span", Ha, [
917
- k(l.$slots, "link", {}, void 0, !0)
978
+ d.$slots.footer ? (s(), o("footer", Xt, [
979
+ c("span", Yt, [
980
+ y(d.$slots, "link", {}, void 0, !0)
918
981
  ]),
919
- k(l.$slots, "footer", {}, void 0, !0)
920
- ])) : h("", !0)
982
+ y(d.$slots, "footer", {}, void 0, !0)
983
+ ])) : f("", !0)
921
984
  ])
922
- ], 16, qa)
985
+ ], 16, Kt)
923
986
  ]),
924
987
  _: 3
925
988
  }, 8, ["is-visible"]));
926
989
  }
927
- }), co = /* @__PURE__ */ m(Ka, [["__scopeId", "data-v-20ce36b2"]]), Ea = /* @__PURE__ */ $({
990
+ }), ul = /* @__PURE__ */ v(Zt, [["__scopeId", "data-v-41ee6da9"]]), ea = /* @__PURE__ */ _({
928
991
  __name: "MNumberBadge",
929
992
  props: {
930
993
  label: {},
931
994
  appearance: { default: "standard" },
932
995
  size: { default: "s" }
933
996
  },
934
- setup(r) {
935
- const e = r, a = v(() => ({
936
- [`mc-number-badge--${e.appearance}`]: e.appearance && e.appearance != "standard",
937
- [`mc-number-badge--${e.size}`]: e.size && e.size != "s"
997
+ setup(e) {
998
+ const a = e, t = b(() => ({
999
+ [`mc-number-badge--${a.appearance}`]: a.appearance && a.appearance != "standard",
1000
+ [`mc-number-badge--${a.size}`]: a.size && a.size != "s"
938
1001
  }));
939
- return (t, n) => (o(), i("span", {
940
- class: g(["mc-number-badge", a.value])
941
- }, b(t.label), 3));
1002
+ return (l, n) => (s(), o("span", {
1003
+ class: h(["mc-number-badge", t.value])
1004
+ }, p(e.label), 3));
942
1005
  }
943
- }), Qa = /* @__PURE__ */ m(Ea, [["__scopeId", "data-v-7e6acb92"]]), Ja = ["id", "name", "value", "disabled"], Wa = {
1006
+ }), J = /* @__PURE__ */ v(ea, [["__scopeId", "data-v-7b35d96e"]]), ta = ["id", "name", "value", "disabled"], aa = {
944
1007
  key: 0,
945
1008
  value: "",
946
1009
  disabled: ""
947
- }, Xa = ["value", "disabled"], Ya = /* @__PURE__ */ $({
1010
+ }, sa = ["value", "disabled"], la = /* @__PURE__ */ _({
1011
+ inheritAttrs: !1,
948
1012
  __name: "MSelect",
949
1013
  props: {
950
1014
  id: {},
@@ -958,31 +1022,31 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
958
1022
  readonly: { type: Boolean }
959
1023
  },
960
1024
  emits: ["update:modelValue"],
961
- setup(r, { emit: e }) {
962
- const a = r, t = v(() => ({
963
- [`mc-select--${a.size}`]: a.size && a.size != "m",
964
- "mc-select--readonly": a.readonly,
965
- "is-invalid": a.isInvalid
966
- })), n = e;
967
- return (s, l) => (o(), i("select", I({
968
- id: s.id,
969
- class: ["mc-select", t.value],
970
- name: s.name,
971
- value: s.modelValue,
972
- disabled: s.disabled
973
- }, s.$attrs, {
974
- onChange: l[0] || (l[0] = (p) => n("update:modelValue", p.target.value))
1025
+ setup(e, { emit: a }) {
1026
+ const t = e, l = b(() => ({
1027
+ [`mc-select--${t.size}`]: t.size && t.size != "m",
1028
+ "mc-select--readonly": t.readonly,
1029
+ "is-invalid": t.isInvalid
1030
+ })), n = a;
1031
+ return (i, d) => (s(), o("select", V({
1032
+ id: e.id,
1033
+ class: ["mc-select", l.value],
1034
+ name: e.name,
1035
+ value: e.modelValue,
1036
+ disabled: e.disabled
1037
+ }, i.$attrs, {
1038
+ onChange: d[0] || (d[0] = (u) => n("update:modelValue", u.target.value))
975
1039
  }), [
976
- s.placeholder ? (o(), i("option", Wa, " -- " + b(s.placeholder) + " -- ", 1)) : h("", !0),
977
- (o(!0), i(P, null, D(s.options, (p, u) => (o(), i("option", I({
978
- key: u,
979
- value: p.value
980
- }, { ref_for: !0 }, p.attributes, {
981
- disabled: p.disabled
982
- }), b(p.text), 17, Xa))), 128))
983
- ], 16, Ja));
1040
+ e.placeholder ? (s(), o("option", aa, " -- " + p(e.placeholder) + " -- ", 1)) : f("", !0),
1041
+ (s(!0), o(T, null, S(e.options, (u, m) => (s(), o("option", V({
1042
+ key: m,
1043
+ value: u.value
1044
+ }, { ref_for: !0 }, u.attributes, {
1045
+ disabled: u.disabled
1046
+ }), p(u.text), 17, sa))), 128))
1047
+ ], 16, ta));
984
1048
  }
985
- }), Za = /* @__PURE__ */ m(Ya, [["__scopeId", "data-v-68c735e4"]]), xa = {
1049
+ }), na = /* @__PURE__ */ v(la, [["__scopeId", "data-v-ded98964"]]), oa = {
986
1050
  name: "ChevronLeft24",
987
1051
  props: {
988
1052
  /**
@@ -993,23 +1057,23 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
993
1057
  default: "currentColor"
994
1058
  }
995
1059
  }
996
- }, et = ["fill"];
997
- function at(r, e, a, t, n, s) {
998
- return o(), i("svg", {
1060
+ }, ia = ["fill"];
1061
+ function ca(e, a, t, l, n, i) {
1062
+ return s(), o("svg", {
999
1063
  "aria-hidden": "true",
1000
- fill: a.color,
1064
+ fill: t.color,
1001
1065
  xmlns: "http://www.w3.org/2000/svg",
1002
1066
  viewBox: "0 0 24 24",
1003
1067
  width: "24",
1004
1068
  height: "24"
1005
- }, [...e[0] || (e[0] = [
1006
- d("path", {
1069
+ }, [...a[0] || (a[0] = [
1070
+ c("path", {
1007
1071
  "fill-rule": "evenodd",
1008
1072
  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"
1009
1073
  }, null, -1)
1010
- ])], 8, et);
1074
+ ])], 8, ia);
1011
1075
  }
1012
- const G = /* @__PURE__ */ m(xa, [["render", at]]), tt = {
1076
+ const R = /* @__PURE__ */ v(oa, [["render", ca]]), da = {
1013
1077
  name: "ChevronRight24",
1014
1078
  props: {
1015
1079
  /**
@@ -1020,34 +1084,33 @@ const G = /* @__PURE__ */ m(xa, [["render", at]]), tt = {
1020
1084
  default: "currentColor"
1021
1085
  }
1022
1086
  }
1023
- }, st = ["fill"];
1024
- function ot(r, e, a, t, n, s) {
1025
- return o(), i("svg", {
1087
+ }, ra = ["fill"];
1088
+ function ua(e, a, t, l, n, i) {
1089
+ return s(), o("svg", {
1026
1090
  "aria-hidden": "true",
1027
- fill: a.color,
1091
+ fill: t.color,
1028
1092
  xmlns: "http://www.w3.org/2000/svg",
1029
1093
  viewBox: "0 0 24 24",
1030
1094
  width: "24",
1031
1095
  height: "24"
1032
- }, [...e[0] || (e[0] = [
1033
- d("path", {
1096
+ }, [...a[0] || (a[0] = [
1097
+ c("path", {
1034
1098
  "fill-rule": "evenodd",
1035
1099
  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"
1036
1100
  }, null, -1)
1037
- ])], 8, st);
1101
+ ])], 8, ra);
1038
1102
  }
1039
- const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
1103
+ const G = /* @__PURE__ */ v(da, [["render", ua]]), ma = {
1040
1104
  class: "mc-pagination",
1041
- role: "navigation",
1042
- "aria-label": "pagination"
1043
- }, nt = {
1105
+ role: "navigation"
1106
+ }, va = {
1044
1107
  key: 2,
1045
1108
  class: "mc-pagination__field"
1046
- }, it = {
1109
+ }, ba = {
1047
1110
  key: 3,
1048
1111
  class: "mc-pagination__label",
1049
1112
  "aria-current": "page"
1050
- }, rt = /* @__PURE__ */ $({
1113
+ }, pa = /* @__PURE__ */ _({
1051
1114
  __name: "MPagination",
1052
1115
  props: {
1053
1116
  id: {},
@@ -1057,93 +1120,94 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
1057
1120
  selectLabel: {}
1058
1121
  },
1059
1122
  emits: ["update:modelValue"],
1060
- setup(r, { emit: e }) {
1061
- const a = r, t = e, n = z(a.modelValue);
1062
- T(n, (c) => {
1063
- c !== a.modelValue && t("update:modelValue", c);
1123
+ setup(e, { emit: a }) {
1124
+ const t = e, l = a, n = M(t.modelValue);
1125
+ z(n, (r) => {
1126
+ r !== t.modelValue && l("update:modelValue", r);
1064
1127
  });
1065
- const s = v(
1066
- () => a.options.findIndex((c) => c.value === n.value)
1067
- ), l = v(() => s.value === 0), p = v(
1068
- () => s.value === a.options.length - 1
1069
- ), u = () => {
1070
- const c = a.options.findIndex(
1071
- (f) => f.value === n.value
1128
+ const i = b(
1129
+ () => t.options.findIndex((r) => r.value === n.value)
1130
+ ), d = b(() => i.value === 0), u = b(
1131
+ () => i.value === t.options.length - 1
1132
+ ), m = () => {
1133
+ const r = t.options.findIndex(
1134
+ ($) => $.value === n.value
1072
1135
  );
1073
- c > 0 && (n.value = a.options[c - 1].value, t("update:modelValue", a.options[c - 1].value));
1074
- }, _ = () => {
1075
- const c = a.options.findIndex(
1076
- (f) => f.value === n.value
1136
+ r > 0 && (n.value = t.options[r - 1].value, l("update:modelValue", t.options[r - 1].value));
1137
+ }, g = () => {
1138
+ const r = t.options.findIndex(
1139
+ ($) => $.value === n.value
1077
1140
  );
1078
- c < a.options.length - 1 && (n.value = a.options[c + 1].value, t("update:modelValue", a.options[c + 1].value));
1141
+ r < t.options.length - 1 && (n.value = t.options[r + 1].value, l("update:modelValue", t.options[r + 1].value));
1079
1142
  };
1080
- return (c, f) => (o(), i("nav", lt, [
1081
- c.compact ? (o(), B(S, {
1143
+ return (r, $) => (s(), o("nav", ma, [
1144
+ e.compact ? (s(), C(A, {
1082
1145
  key: 1,
1083
1146
  outlined: "",
1084
1147
  "aria-label": "Previous page",
1085
- disabled: l.value,
1086
- onClick: u
1148
+ disabled: d.value,
1149
+ onClick: m
1087
1150
  }, {
1088
- icon: M(() => [
1089
- w(G)
1151
+ icon: B(() => [
1152
+ k(R)
1090
1153
  ]),
1091
1154
  _: 1
1092
- }, 8, ["disabled"])) : (o(), B(N, {
1155
+ }, 8, ["disabled"])) : (s(), C(F, {
1093
1156
  key: 0,
1094
1157
  "icon-position": "only",
1095
1158
  "aria-label": "Previous page",
1096
- disabled: l.value,
1097
- onClick: u
1159
+ disabled: d.value,
1160
+ onClick: m
1098
1161
  }, {
1099
- icon: M(() => [
1100
- w(G)
1162
+ icon: B(() => [
1163
+ k(R)
1101
1164
  ]),
1102
1165
  _: 1
1103
1166
  }, 8, ["disabled"])),
1104
- c.compact ? h("", !0) : (o(), i("div", nt, [
1105
- w(Za, {
1167
+ e.compact ? f("", !0) : (s(), o("div", va, [
1168
+ k(na, {
1106
1169
  class: "mc-pagination__select",
1107
- id: c.id,
1170
+ id: e.id,
1108
1171
  modelValue: n.value,
1109
1172
  "onUpdate:modelValue": [
1110
- f[0] || (f[0] = (C) => n.value = C),
1111
- f[1] || (f[1] = (C) => t("update:modelValue", Number(C)))
1173
+ $[0] || ($[0] = (x) => n.value = x),
1174
+ $[1] || ($[1] = (x) => l("update:modelValue", Number(x)))
1112
1175
  ],
1113
- options: c.options,
1114
- "aria-label": c.selectLabel
1176
+ options: e.options,
1177
+ "aria-label": e.selectLabel
1115
1178
  }, null, 8, ["id", "modelValue", "options", "aria-label"])
1116
1179
  ])),
1117
- c.compact ? (o(), i("span", it, b(c.options.find((C) => C.value === n.value)?.text), 1)) : h("", !0),
1118
- c.compact ? (o(), B(S, {
1180
+ e.compact ? (s(), o("span", ba, p(e.options.find((x) => x.value === n.value)?.text), 1)) : f("", !0),
1181
+ e.compact ? (s(), C(A, {
1119
1182
  key: 5,
1120
1183
  outlined: "",
1121
1184
  "aria-label": "Next page",
1122
- disabled: p.value,
1123
- onClick: _
1185
+ disabled: u.value,
1186
+ onClick: g
1124
1187
  }, {
1125
- icon: M(() => [
1126
- w(U)
1188
+ icon: B(() => [
1189
+ k(G)
1127
1190
  ]),
1128
1191
  _: 1
1129
- }, 8, ["disabled"])) : (o(), B(N, {
1192
+ }, 8, ["disabled"])) : (s(), C(F, {
1130
1193
  key: 4,
1131
1194
  "icon-position": "only",
1132
1195
  "aria-label": "Next page",
1133
- disabled: p.value,
1134
- onClick: _
1196
+ disabled: u.value,
1197
+ onClick: g
1135
1198
  }, {
1136
- icon: M(() => [
1137
- w(U)
1199
+ icon: B(() => [
1200
+ k(G)
1138
1201
  ]),
1139
1202
  _: 1
1140
1203
  }, 8, ["disabled"]))
1141
1204
  ]));
1142
1205
  }
1143
- }), uo = /* @__PURE__ */ m(rt, [["__scopeId", "data-v-3b9257ac"]]), dt = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], ct = {
1206
+ }), ml = /* @__PURE__ */ v(pa, [["__scopeId", "data-v-4cb89be1"]]), fa = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], _a = {
1144
1207
  key: 0,
1145
1208
  class: "mc-controls-options"
1146
- }, ut = { class: "mc-controls-options__label" }, pt = /* @__PURE__ */ $({
1209
+ }, ha = { class: "mc-controls-options__label" }, $a = /* @__PURE__ */ _({
1210
+ inheritAttrs: !1,
1147
1211
  __name: "MPasswordInput",
1148
1212
  props: {
1149
1213
  id: {},
@@ -1158,61 +1222,62 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
1158
1222
  buttonLabel: { default: () => ({ show: "Show", hide: "Hide" }) }
1159
1223
  },
1160
1224
  emits: ["update:modelValue"],
1161
- setup(r, { emit: e }) {
1162
- const a = r, t = v(() => ({
1163
- "is-invalid": a.isInvalid
1164
- })), n = z(a.modelValue), s = z(!1), l = () => {
1165
- n.value = "", c("update:modelValue", "");
1166
- }, p = () => {
1167
- s.value = !s.value;
1168
- }, u = v(() => s.value ? "text" : "password"), _ = v(() => s.value ? "true" : "false"), c = e;
1169
- return (f, C) => (o(), i("div", {
1170
- class: g(["mc-password-input mc-text-input", t.value])
1225
+ setup(e, { emit: a }) {
1226
+ const t = e, l = b(() => ({
1227
+ "is-invalid": t.isInvalid
1228
+ })), n = M(t.modelValue), i = M(!1), d = () => {
1229
+ n.value = "", r("update:modelValue", "");
1230
+ }, u = () => {
1231
+ i.value = !i.value;
1232
+ }, m = b(() => i.value ? "text" : "password"), g = b(() => i.value ? "true" : "false"), r = a;
1233
+ return ($, x) => (s(), o("div", {
1234
+ class: h(["mc-password-input mc-text-input", l.value])
1171
1235
  }, [
1172
- K(d("input", I({
1236
+ K(c("input", V({
1173
1237
  class: "mc-password-input__control mc-text-input__control",
1174
- "onUpdate:modelValue": C[0] || (C[0] = (y) => n.value = y),
1175
- id: f.id,
1176
- type: u.value,
1177
- name: f.name,
1178
- placeholder: f.placeholder,
1179
- disabled: f.disabled,
1180
- "aria-invalid": f.isInvalid,
1181
- readonly: f.readonly
1182
- }, f.$attrs, {
1183
- onInput: C[1] || (C[1] = (y) => c("update:modelValue", y.target.value))
1184
- }), null, 16, dt), [
1185
- [ee, n.value]
1238
+ "onUpdate:modelValue": x[0] || (x[0] = (w) => n.value = w),
1239
+ id: e.id,
1240
+ type: m.value,
1241
+ name: e.name,
1242
+ placeholder: e.placeholder,
1243
+ disabled: e.disabled,
1244
+ "aria-invalid": e.isInvalid,
1245
+ readonly: e.readonly
1246
+ }, $.$attrs, {
1247
+ onInput: x[1] || (x[1] = (w) => r("update:modelValue", w.target.value))
1248
+ }), null, 16, fa), [
1249
+ [te, n.value]
1186
1250
  ]),
1187
- f.isClearable && n.value ? (o(), i("div", ct, [
1188
- d("button", {
1251
+ e.isClearable && n.value ? (s(), o("div", _a, [
1252
+ c("button", {
1189
1253
  class: "mc-controls-options__button",
1190
- onClick: l
1254
+ onClick: d
1191
1255
  }, [
1192
- w(A, {
1256
+ k(q, {
1193
1257
  class: "mc-controls-options__icon",
1194
1258
  "aria-hidden": "true"
1195
1259
  }),
1196
- d("span", ut, b(f.clearLabel), 1)
1260
+ c("span", ha, p(e.clearLabel), 1)
1197
1261
  ])
1198
- ])) : h("", !0),
1199
- w(N, {
1262
+ ])) : f("", !0),
1263
+ k(F, {
1200
1264
  ref: "button",
1201
1265
  role: "switch",
1202
- "aria-checked": _.value,
1203
- disabled: f.disabled,
1204
- onClick: p,
1266
+ "aria-checked": g.value,
1267
+ disabled: e.disabled,
1268
+ onClick: u,
1205
1269
  size: "s",
1206
1270
  ghost: ""
1207
1271
  }, {
1208
- default: M(() => [
1209
- q(b(s.value ? f.buttonLabel.hide : f.buttonLabel.show), 1)
1272
+ default: B(() => [
1273
+ P(p(i.value ? e.buttonLabel.hide : e.buttonLabel.show), 1)
1210
1274
  ]),
1211
1275
  _: 1
1212
1276
  }, 8, ["aria-checked", "disabled"])
1213
1277
  ], 2));
1214
1278
  }
1215
- }), po = /* @__PURE__ */ m(pt, [["__scopeId", "data-v-167f10e2"]]), mt = ["id", "name", "disabled", "readonly", "value", "onInput", "onKeydown"], _t = /* @__PURE__ */ $({
1279
+ }), vl = /* @__PURE__ */ v($a, [["__scopeId", "data-v-47bbb809"]]), ga = ["id", "name", "disabled", "readonly", "value", "onInput", "onKeydown"], ya = /* @__PURE__ */ _({
1280
+ inheritAttrs: !1,
1216
1281
  __name: "MPincode",
1217
1282
  props: {
1218
1283
  id: {},
@@ -1224,110 +1289,63 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
1224
1289
  readonly: { type: Boolean }
1225
1290
  },
1226
1291
  emits: ["update:modelValue"],
1227
- setup(r, { emit: e }) {
1228
- const a = r, t = v(() => ({
1229
- "is-invalid": a.isInvalid
1230
- })), n = e, s = z(Array(a.length).fill("")), l = z([]), p = (y, V) => {
1231
- l.value[V] = y;
1292
+ setup(e, { emit: a }) {
1293
+ const t = e, l = b(() => ({
1294
+ "is-invalid": t.isInvalid
1295
+ })), n = a, i = M(Array(t.length).fill("")), d = M([]), u = (w, I) => {
1296
+ d.value[I] = w;
1232
1297
  };
1233
- T(
1234
- () => a.modelValue,
1235
- (y) => {
1236
- const V = String(y ?? "");
1237
- s.value = Array.from({ length: a.length }, (O, L) => V[L] ?? "");
1298
+ z(
1299
+ () => t.modelValue,
1300
+ (w) => {
1301
+ const I = String(w ?? "");
1302
+ i.value = Array.from({ length: t.length }, (O, L) => I[L] ?? "");
1238
1303
  },
1239
1304
  { immediate: !0 }
1240
1305
  );
1241
- const u = (y) => {
1242
- ae(() => l.value[y]?.focus());
1243
- }, _ = (y, V) => {
1244
- const O = y.target.value.replace(/\D/g, "");
1245
- O ? (s.value[V] = O[0], n("update:modelValue", s.value.join("")), V + 1 < a.length && u(V + 1)) : (s.value[V] = "", n("update:modelValue", s.value.join("")));
1246
- }, c = (y, V) => {
1247
- y.key === "ArrowLeft" && V > 0 ? u(V - 1) : y.key === "ArrowRight" && V < a.length - 1 ? u(V + 1) : y.key === "Backspace" && f(y, V);
1248
- }, f = (y, V) => {
1249
- s.value[V] === "" && V > 0 && (s.value[V - 1] = "", n("update:modelValue", s.value.join("")), u(V - 1));
1250
- }, C = (y) => {
1251
- y.preventDefault();
1252
- const O = (y.clipboardData?.getData("text") ?? "").replace(/\D/g, "").slice(0, a.length).split("");
1253
- s.value = Array.from({ length: a.length }, (L, j) => O[j] ?? ""), n("update:modelValue", s.value.join("")), u(Math.min(O.length, a.length - 1));
1306
+ const m = (w) => {
1307
+ ae(() => d.value[w]?.focus());
1308
+ }, g = (w, I) => {
1309
+ const O = w.target.value.replace(/\D/g, "");
1310
+ O ? (i.value[I] = O[0], n("update:modelValue", i.value.join("")), I + 1 < t.length && m(I + 1)) : (i.value[I] = "", n("update:modelValue", i.value.join("")));
1311
+ }, r = (w, I) => {
1312
+ w.key === "ArrowLeft" && I > 0 ? m(I - 1) : w.key === "ArrowRight" && I < t.length - 1 ? m(I + 1) : w.key === "Backspace" && $(w, I);
1313
+ }, $ = (w, I) => {
1314
+ i.value[I] === "" && I > 0 && (i.value[I - 1] = "", n("update:modelValue", i.value.join("")), m(I - 1));
1315
+ }, x = (w) => {
1316
+ w.preventDefault();
1317
+ const O = (w.clipboardData?.getData("text") ?? "").replace(/\D/g, "").slice(0, t.length).split("");
1318
+ i.value = Array.from({ length: t.length }, (L, j) => O[j] ?? ""), n("update:modelValue", i.value.join("")), m(Math.min(O.length, t.length - 1));
1254
1319
  };
1255
- return (y, V) => (o(), i("div", {
1256
- class: g(["mc-pincode-input", t.value]),
1257
- onPaste: C
1320
+ return (w, I) => (s(), o("div", {
1321
+ class: "mc-pincode-input",
1322
+ onPaste: x
1258
1323
  }, [
1259
- (o(!0), i(P, null, D(s.value, (O, L) => (o(), i("input", I({
1324
+ (s(!0), o(T, null, S(i.value, (O, L) => (s(), o("input", V({
1260
1325
  key: L,
1261
1326
  id: `pincodeItem${L}`,
1262
1327
  ref_for: !0,
1263
- ref: (j) => p(j, L),
1328
+ ref: (j) => u(j, L),
1264
1329
  type: "text",
1265
1330
  inputmode: "numeric",
1266
1331
  maxlength: "1",
1267
1332
  pattern: "\\d*",
1268
1333
  autocomplete: "one-time-code",
1269
- name: y.name || `pincode-${y.id}`,
1270
- class: "mc-pincode-input__control",
1271
- disabled: y.disabled,
1272
- readonly: y.readonly,
1334
+ name: e.name || `pincode-${e.id}`,
1335
+ class: ["mc-pincode-input__control", l.value],
1336
+ disabled: e.disabled,
1337
+ readonly: e.readonly,
1273
1338
  value: O
1274
- }, { ref_for: !0 }, y.$attrs, {
1275
- onInput: (j) => _(j, L),
1339
+ }, { ref_for: !0 }, w.$attrs, {
1340
+ onInput: (j) => g(j, L),
1276
1341
  onKeydown: [
1277
- R((j) => f(j, L), ["backspace"]),
1278
- (j) => c(j, L)
1342
+ N((j) => $(j, L), ["backspace"]),
1343
+ (j) => r(j, L)
1279
1344
  ]
1280
- }), null, 16, mt))), 128))
1281
- ], 34));
1282
- }
1283
- }), mo = /* @__PURE__ */ m(_t, [["__scopeId", "data-v-b2202545"]]), vt = ["aria-valuenow"], bt = /* @__PURE__ */ $({
1284
- __name: "MLinearProgressbarBuffer",
1285
- props: {
1286
- size: {},
1287
- value: { default: 0 }
1288
- },
1289
- setup(r) {
1290
- const e = r, a = v(() => ({
1291
- [`mc-linear-progressbar-buffer--${e.size}`]: e.size && e.size != "m"
1292
- }));
1293
- return (t, n) => (o(), i("div", {
1294
- class: g(["mc-linear-progressbar-buffer", a.value])
1295
- }, [
1296
- d("div", I({
1297
- class: "mc-linear-progressbar-buffer__indicator",
1298
- role: "progressbar",
1299
- style: `--progress-value: ${t.value};`,
1300
- "aria-valuenow": t.value,
1301
- "aria-valuemin": 0,
1302
- "aria-valuemax": 100
1303
- }, t.$attrs), null, 16, vt)
1304
- ], 2));
1305
- }
1306
- }), ft = /* @__PURE__ */ m(bt, [["__scopeId", "data-v-aa64aedc"]]), ht = { class: "mc-linear-progressbar-percentage" }, $t = ["aria-valuenow"], gt = { class: "mc-linear-progressbar-percentage__label" }, yt = { class: "mc-linear-progressbar-percentage__value" }, kt = /* @__PURE__ */ $({
1307
- __name: "MLinearProgressbarPercentage",
1308
- props: {
1309
- value: { default: 0 }
1310
- },
1311
- setup(r) {
1312
- return (e, a) => (o(), i("div", ht, [
1313
- d("div", I({
1314
- class: "mc-linear-progressbar-percentage__indicator",
1315
- role: "progressbar",
1316
- style: `--progress-value: ${e.value};`,
1317
- "aria-valuenow": e.value,
1318
- "aria-valuemin": 0,
1319
- "aria-valuemax": 100
1320
- }, e.$attrs), [
1321
- d("div", gt, [
1322
- d("p", yt, [
1323
- q(b(e.value), 1),
1324
- a[0] || (a[0] = d("span", { class: "mc-linear-progressbar-percentage__unit" }, "%", -1))
1325
- ])
1326
- ])
1327
- ], 16, $t)
1328
- ]));
1345
+ }), null, 16, ga))), 128))
1346
+ ], 32));
1329
1347
  }
1330
- }), _o = /* @__PURE__ */ m(kt, [["__scopeId", "data-v-14fbed65"]]), wt = {
1348
+ }), bl = /* @__PURE__ */ v(ya, [["__scopeId", "data-v-635e677f"]]), ka = {
1331
1349
  name: "More24",
1332
1350
  props: {
1333
1351
  /**
@@ -1338,23 +1356,23 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
1338
1356
  default: "currentColor"
1339
1357
  }
1340
1358
  }
1341
- }, Vt = ["fill"];
1342
- function It(r, e, a, t, n, s) {
1343
- return o(), i("svg", {
1359
+ }, wa = ["fill"];
1360
+ function Va(e, a, t, l, n, i) {
1361
+ return s(), o("svg", {
1344
1362
  "aria-hidden": "true",
1345
- fill: a.color,
1363
+ fill: t.color,
1346
1364
  xmlns: "http://www.w3.org/2000/svg",
1347
1365
  viewBox: "0 0 24 24",
1348
1366
  width: "24",
1349
1367
  height: "24"
1350
- }, [...e[0] || (e[0] = [
1351
- d("path", {
1368
+ }, [...a[0] || (a[0] = [
1369
+ c("path", {
1352
1370
  "fill-rule": "evenodd",
1353
1371
  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"
1354
1372
  }, null, -1)
1355
- ])], 8, Vt);
1373
+ ])], 8, wa);
1356
1374
  }
1357
- const Bt = /* @__PURE__ */ m(wt, [["render", It]]), Ct = {
1375
+ const Ia = /* @__PURE__ */ v(ka, [["render", Va]]), Ca = {
1358
1376
  name: "Less24",
1359
1377
  props: {
1360
1378
  /**
@@ -1365,23 +1383,24 @@ const Bt = /* @__PURE__ */ m(wt, [["render", It]]), Ct = {
1365
1383
  default: "currentColor"
1366
1384
  }
1367
1385
  }
1368
- }, Mt = ["fill"];
1369
- function zt(r, e, a, t, n, s) {
1370
- return o(), i("svg", {
1386
+ }, xa = ["fill"];
1387
+ function Ba(e, a, t, l, n, i) {
1388
+ return s(), o("svg", {
1371
1389
  "aria-hidden": "true",
1372
- fill: a.color,
1390
+ fill: t.color,
1373
1391
  xmlns: "http://www.w3.org/2000/svg",
1374
1392
  viewBox: "0 0 24 24",
1375
1393
  width: "24",
1376
1394
  height: "24"
1377
- }, [...e[0] || (e[0] = [
1378
- d("path", {
1395
+ }, [...a[0] || (a[0] = [
1396
+ c("path", {
1379
1397
  "fill-rule": "evenodd",
1380
1398
  d: "M6 12a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1"
1381
1399
  }, null, -1)
1382
- ])], 8, Mt);
1400
+ ])], 8, xa);
1383
1401
  }
1384
- const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disabled", "min", "max", "step", "readonly", "aria-invalid", "aria-valuemin", "aria-valuemax", "aria-valuenow"], Ot = ["aria-controls", "disabled"], Tt = { class: "mc-quantity-selector__icon" }, St = { class: "mc-quantity-selector__label" }, Pt = ["aria-controls", "disabled"], Dt = { class: "mc-quantity-selector__icon" }, qt = { class: "mc-quantity-selector__label" }, Ft = /* @__PURE__ */ $({
1402
+ const Ma = /* @__PURE__ */ v(Ca, [["render", Ba]]), za = ["id", "name", "disabled", "min", "max", "step", "readonly", "aria-invalid", "aria-valuemin", "aria-valuemax", "aria-valuenow"], La = ["aria-controls", "disabled"], ja = { class: "mc-quantity-selector__icon" }, Oa = { class: "mc-quantity-selector__label" }, Ta = ["aria-controls", "disabled"], Sa = { class: "mc-quantity-selector__icon" }, Aa = { class: "mc-quantity-selector__label" }, Pa = /* @__PURE__ */ _({
1403
+ inheritAttrs: !1,
1385
1404
  __name: "MQuantitySelector",
1386
1405
  props: {
1387
1406
  id: {},
@@ -1398,75 +1417,76 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
1398
1417
  decrementLabel: { default: "Decrement" }
1399
1418
  },
1400
1419
  emits: ["update:modelValue"],
1401
- setup(r, { emit: e }) {
1402
- const a = r, t = z(a.modelValue);
1403
- T(t, (_) => {
1404
- _ !== a.modelValue && u("update:modelValue", _);
1420
+ setup(e, { emit: a }) {
1421
+ const t = e, l = M(t.modelValue);
1422
+ z(l, (g) => {
1423
+ g !== t.modelValue && m("update:modelValue", g);
1405
1424
  });
1406
- const n = v(() => ({
1407
- [`mc-quantity-selector--${a.size}`]: a.size && a.size != "m",
1408
- "is-invalid": a.isInvalid
1409
- })), s = () => {
1410
- t.value + a.step <= a.max ? t.value += a.step : t.value = a.max;
1411
- }, l = () => {
1412
- t.value - a.step > a.min ? t.value -= a.step : t.value = a.min;
1413
- }, p = (_) => {
1414
- t.value = _, t.value > a.max && (t.value = a.max), t.value <= a.min && (t.value = a.min), u("update:modelValue", t.value);
1415
- }, u = e;
1416
- return (_, c) => (o(), i("div", {
1417
- class: g(["mc-quantity-selector", n.value])
1425
+ const n = b(() => ({
1426
+ [`mc-quantity-selector--${t.size}`]: t.size && t.size != "m",
1427
+ "is-invalid": t.isInvalid
1428
+ })), i = () => {
1429
+ l.value + t.step <= t.max ? l.value += t.step : l.value = t.max;
1430
+ }, d = () => {
1431
+ l.value - t.step > t.min ? l.value -= t.step : l.value = t.min;
1432
+ }, u = (g) => {
1433
+ l.value = g, l.value > t.max && (l.value = t.max), l.value <= t.min && (l.value = t.min), m("update:modelValue", l.value);
1434
+ }, m = a;
1435
+ return (g, r) => (s(), o("div", {
1436
+ class: h(["mc-quantity-selector", n.value])
1418
1437
  }, [
1419
- K(d("input", I({
1420
- id: _.id,
1421
- "onUpdate:modelValue": c[0] || (c[0] = (f) => t.value = f),
1438
+ K(c("input", V({
1439
+ id: e.id,
1440
+ "onUpdate:modelValue": r[0] || (r[0] = ($) => l.value = $),
1422
1441
  class: "mc-quantity-selector__control",
1423
1442
  type: "number",
1424
- name: _.name,
1425
- disabled: _.disabled,
1426
- min: _.min,
1427
- max: _.max,
1428
- step: _.step,
1429
- readonly: _.readonly,
1430
- "aria-invalid": _.isInvalid,
1431
- "aria-valuemin": _.min,
1432
- "aria-valuemax": _.max,
1433
- "aria-valuenow": t.value
1434
- }, _.$attrs, {
1435
- onChange: c[1] || (c[1] = (f) => p(Number(f.target.value)))
1436
- }), null, 16, jt), [
1437
- [te, t.value]
1443
+ name: e.name,
1444
+ disabled: e.disabled,
1445
+ min: e.min,
1446
+ max: e.max,
1447
+ step: e.step,
1448
+ readonly: e.readonly,
1449
+ "aria-invalid": e.isInvalid,
1450
+ "aria-valuemin": e.min,
1451
+ "aria-valuemax": e.max,
1452
+ "aria-valuenow": l.value
1453
+ }, g.$attrs, {
1454
+ onChange: r[1] || (r[1] = ($) => u(Number($.target.value)))
1455
+ }), null, 16, za), [
1456
+ [se, l.value]
1438
1457
  ]),
1439
- _.readonly ? h("", !0) : (o(), i("button", {
1458
+ e.readonly ? f("", !0) : (s(), o("button", {
1440
1459
  key: 0,
1441
1460
  type: "button",
1442
- "aria-controls": _.id,
1461
+ "aria-controls": e.id,
1443
1462
  class: "mc-quantity-selector__button mc-quantity-selector__button--increase",
1444
1463
  tabindex: "-1",
1445
- disabled: _.disabled || t.value === _.max,
1446
- onClick: s
1464
+ disabled: e.disabled || l.value === e.max,
1465
+ onClick: i
1447
1466
  }, [
1448
- d("span", Tt, [
1449
- w(Bt)
1467
+ c("span", ja, [
1468
+ k(Ia)
1450
1469
  ]),
1451
- d("span", St, b(_.incrementlabel), 1)
1452
- ], 8, Ot)),
1453
- _.readonly ? h("", !0) : (o(), i("button", {
1470
+ c("span", Oa, p(e.incrementlabel), 1)
1471
+ ], 8, La)),
1472
+ e.readonly ? f("", !0) : (s(), o("button", {
1454
1473
  key: 1,
1455
1474
  type: "button",
1456
- "aria-controls": _.id,
1475
+ "aria-controls": e.id,
1457
1476
  class: "mc-quantity-selector__button mc-quantity-selector__button--decrease",
1458
1477
  tabindex: "-1",
1459
- disabled: _.disabled || t.value === _.min,
1460
- onClick: l
1478
+ disabled: e.disabled || l.value === e.min,
1479
+ onClick: d
1461
1480
  }, [
1462
- d("span", Dt, [
1463
- w(Lt)
1481
+ c("span", Sa, [
1482
+ k(Ma)
1464
1483
  ]),
1465
- d("span", qt, b(_.decrementLabel), 1)
1466
- ], 8, Pt))
1484
+ c("span", Aa, p(e.decrementLabel), 1)
1485
+ ], 8, Ta))
1467
1486
  ], 2));
1468
1487
  }
1469
- }), vo = /* @__PURE__ */ m(Ft, [["__scopeId", "data-v-a732650a"]]), At = { class: "mc-radio" }, Nt = ["id", "name", "checked", "disabled", "aria-invalid"], Rt = ["for"], Gt = /* @__PURE__ */ $({
1488
+ }), pl = /* @__PURE__ */ v(Pa, [["__scopeId", "data-v-c0a83c82"]]), Da = { class: "mc-radio" }, qa = ["id", "name", "checked", "disabled", "aria-invalid"], Fa = ["for"], Na = /* @__PURE__ */ _({
1489
+ inheritAttrs: !1,
1470
1490
  __name: "MRadio",
1471
1491
  props: {
1472
1492
  id: {},
@@ -1477,30 +1497,30 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
1477
1497
  disabled: { type: Boolean }
1478
1498
  },
1479
1499
  emits: ["update:modelValue"],
1480
- setup(r, { emit: e }) {
1481
- const a = r, t = v(() => ({
1482
- "is-invalid": a.isInvalid
1483
- })), n = e;
1484
- return (s, l) => (o(), i("div", At, [
1485
- d("input", I({
1486
- id: s.id,
1500
+ setup(e, { emit: a }) {
1501
+ const t = e, l = b(() => ({
1502
+ "is-invalid": t.isInvalid
1503
+ })), n = a;
1504
+ return (i, d) => (s(), o("div", Da, [
1505
+ c("input", V({
1506
+ id: e.id,
1487
1507
  type: "radio",
1488
- class: ["mc-radio__input", t.value],
1489
- name: s.name,
1490
- checked: s.modelValue,
1491
- disabled: s.disabled,
1492
- "aria-invalid": s.isInvalid
1493
- }, s.$attrs, {
1494
- onChange: l[0] || (l[0] = (p) => n("update:modelValue", p.target.checked))
1495
- }), null, 16, Nt),
1496
- s.label ? (o(), i("label", {
1508
+ class: ["mc-radio__input", l.value],
1509
+ name: e.name,
1510
+ checked: e.modelValue,
1511
+ disabled: e.disabled,
1512
+ "aria-invalid": e.isInvalid
1513
+ }, i.$attrs, {
1514
+ onChange: d[0] || (d[0] = (u) => n("update:modelValue", u.target.checked))
1515
+ }), null, 16, qa),
1516
+ e.label ? (s(), o("label", {
1497
1517
  key: 0,
1498
- for: s.id,
1518
+ for: e.id,
1499
1519
  class: "mc-radio__label"
1500
- }, b(s.label), 9, Rt)) : h("", !0)
1520
+ }, p(e.label), 9, Fa)) : f("", !0)
1501
1521
  ]));
1502
1522
  }
1503
- }), Ut = /* @__PURE__ */ m(Gt, [["__scopeId", "data-v-da78938c"]]), Ht = /* @__PURE__ */ $({
1523
+ }), Ra = /* @__PURE__ */ v(Na, [["__scopeId", "data-v-98a8422f"]]), Ga = /* @__PURE__ */ _({
1504
1524
  __name: "MRadioGroup",
1505
1525
  props: {
1506
1526
  name: {},
@@ -1510,61 +1530,100 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
1510
1530
  inline: { type: Boolean }
1511
1531
  },
1512
1532
  emits: ["update:modelValue"],
1513
- setup(r, { emit: e }) {
1514
- const a = r, t = v(() => ({
1515
- "mc-field__container--inline": a.inline
1516
- })), n = v(() => ({
1517
- "mc-field__container--inline__item": a.inline
1518
- })), s = e;
1519
- return (l, p) => (o(), i("div", {
1520
- class: g(["mc-field__container", t.value])
1533
+ setup(e, { emit: a }) {
1534
+ const t = e, l = b(() => ({
1535
+ "mc-field__container--inline": t.inline
1536
+ })), n = b(() => ({
1537
+ "mc-field__container--inline__item": t.inline
1538
+ })), i = a;
1539
+ return (d, u) => (s(), o("div", {
1540
+ class: h(["mc-field__container", l.value])
1521
1541
  }, [
1522
- (o(!0), i(P, null, D(l.options, (u) => (o(), B(Ut, {
1523
- id: u.id,
1524
- key: u.id,
1525
- label: u.label,
1526
- "is-invalid": l.isInvalid,
1527
- name: l.name,
1528
- class: g(["mc-field__item", n.value]),
1529
- "model-value": l.modelValue === u.value,
1530
- disabled: u.disabled,
1531
- "onUpdate:modelValue": (_) => _ ? s("update:modelValue", u.value) : null
1542
+ (s(!0), o(T, null, S(e.options, (m) => (s(), C(Ra, {
1543
+ id: m.id,
1544
+ key: m.id,
1545
+ label: m.label,
1546
+ "is-invalid": e.isInvalid,
1547
+ name: e.name,
1548
+ class: h(["mc-field__item", n.value]),
1549
+ "model-value": e.modelValue === m.value,
1550
+ disabled: m.disabled,
1551
+ "onUpdate:modelValue": (g) => g ? i("update:modelValue", m.value) : null
1532
1552
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
1533
1553
  ], 2));
1534
1554
  }
1535
- }), bo = /* @__PURE__ */ m(Ht, [["__scopeId", "data-v-d2f5e103"]]), Kt = /* @__PURE__ */ $({
1555
+ }), fl = /* @__PURE__ */ v(Ga, [["__scopeId", "data-v-74a1b650"]]), Ua = ["aria-checked", "onClick"], Ka = /* @__PURE__ */ _({
1556
+ __name: "MSegmentedControl",
1557
+ props: {
1558
+ modelValue: { default: 0 },
1559
+ full: { type: Boolean },
1560
+ size: { default: "s" },
1561
+ segments: {}
1562
+ },
1563
+ emits: ["update:modelValue"],
1564
+ setup(e, { emit: a }) {
1565
+ const t = e, l = b(() => ({
1566
+ "mc-segmented-control--full": t.full,
1567
+ [`mc-segmented-control--${t.size}`]: t.size && t.size != "s"
1568
+ })), n = M(t.modelValue);
1569
+ z(
1570
+ () => t.modelValue,
1571
+ (m) => {
1572
+ n.value = m;
1573
+ }
1574
+ );
1575
+ const i = (m) => {
1576
+ m !== n.value && (n.value = m, u("update:modelValue", m));
1577
+ }, d = (m) => n.value === m, u = a;
1578
+ return (m, g) => (s(), o("div", {
1579
+ class: h(["mc-segmented-control", l.value]),
1580
+ role: "radiogroup"
1581
+ }, [
1582
+ (s(!0), o(T, null, S(e.segments, (r, $) => (s(), o("button", {
1583
+ key: `segment-${$}`,
1584
+ type: "button",
1585
+ class: h(["mc-segmented-control__segment", {
1586
+ "mc-segmented-control__segment--selected": d($)
1587
+ }]),
1588
+ "aria-checked": d($),
1589
+ role: "radio",
1590
+ onClick: (x) => i($)
1591
+ }, p(r.label), 11, Ua))), 128))
1592
+ ], 2));
1593
+ }
1594
+ }), _l = /* @__PURE__ */ v(Ka, [["__scopeId", "data-v-ee2129c0"]]), Ha = /* @__PURE__ */ _({
1536
1595
  __name: "MStatusDot",
1537
1596
  props: {
1538
1597
  status: { default: "info" },
1539
1598
  size: {}
1540
1599
  },
1541
- setup(r) {
1542
- const e = r, a = v(() => ({
1543
- [`mc-status-dot--${e.status}`]: e.status && e.status != "info",
1544
- [`mc-status-dot--${e.size}`]: e.size && e.size != "m"
1600
+ setup(e) {
1601
+ const a = e, t = b(() => ({
1602
+ [`mc-status-dot--${a.status}`]: a.status && a.status != "info",
1603
+ [`mc-status-dot--${a.size}`]: a.size && a.size != "m"
1545
1604
  }));
1546
- return (t, n) => (o(), i("span", {
1547
- class: g(["mc-status-dot", a.value])
1605
+ return (l, n) => (s(), o("span", {
1606
+ class: h(["mc-status-dot", t.value])
1548
1607
  }, null, 2));
1549
1608
  }
1550
- }), Et = /* @__PURE__ */ m(Kt, [["__scopeId", "data-v-417b563f"]]), Qt = { class: "mc-status-badge__label" }, Jt = /* @__PURE__ */ $({
1609
+ }), Ea = /* @__PURE__ */ v(Ha, [["__scopeId", "data-v-113b7e8f"]]), Qa = { class: "mc-status-badge__label" }, Ja = /* @__PURE__ */ _({
1551
1610
  __name: "MStatusBadge",
1552
1611
  props: {
1553
1612
  label: {},
1554
1613
  status: { default: "info" }
1555
1614
  },
1556
- setup(r) {
1557
- const e = r, a = v(() => ({
1558
- [`mc-status-badge--${e.status}`]: e.status && e.status != "info"
1615
+ setup(e) {
1616
+ const a = e, t = b(() => ({
1617
+ [`mc-status-badge--${a.status}`]: a.status && a.status != "info"
1559
1618
  }));
1560
- return (t, n) => (o(), i("div", {
1561
- class: g(["mc-status-badge", a.value])
1619
+ return (l, n) => (s(), o("div", {
1620
+ class: h(["mc-status-badge", t.value])
1562
1621
  }, [
1563
- w(Et, { status: t.status }, null, 8, ["status"]),
1564
- d("span", Qt, b(t.label), 1)
1622
+ k(Ea, { status: e.status }, null, 8, ["status"]),
1623
+ c("span", Qa, p(e.label), 1)
1565
1624
  ], 2));
1566
1625
  }
1567
- }), fo = /* @__PURE__ */ m(Jt, [["__scopeId", "data-v-3e437a03"]]), Wt = {
1626
+ }), hl = /* @__PURE__ */ v(Ja, [["__scopeId", "data-v-744550c6"]]), Wa = {
1568
1627
  name: "Cross20",
1569
1628
  props: {
1570
1629
  /**
@@ -1575,23 +1634,23 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
1575
1634
  default: "currentColor"
1576
1635
  }
1577
1636
  }
1578
- }, Xt = ["fill"];
1579
- function Yt(r, e, a, t, n, s) {
1580
- return o(), i("svg", {
1637
+ }, Xa = ["fill"];
1638
+ function Ya(e, a, t, l, n, i) {
1639
+ return s(), o("svg", {
1581
1640
  "aria-hidden": "true",
1582
- fill: a.color,
1641
+ fill: t.color,
1583
1642
  xmlns: "http://www.w3.org/2000/svg",
1584
1643
  viewBox: "0 0 20 20",
1585
1644
  width: "20",
1586
1645
  height: "20"
1587
- }, [...e[0] || (e[0] = [
1588
- d("path", {
1646
+ }, [...a[0] || (a[0] = [
1647
+ c("path", {
1589
1648
  "fill-rule": "evenodd",
1590
1649
  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"
1591
1650
  }, null, -1)
1592
- ])], 8, Xt);
1651
+ ])], 8, Xa);
1593
1652
  }
1594
- const W = /* @__PURE__ */ m(Wt, [["render", Yt]]), Zt = {
1653
+ const W = /* @__PURE__ */ v(Wa, [["render", Ya]]), Za = {
1595
1654
  name: "InfoCircleFilled32",
1596
1655
  props: {
1597
1656
  /**
@@ -1602,23 +1661,23 @@ const W = /* @__PURE__ */ m(Wt, [["render", Yt]]), Zt = {
1602
1661
  default: "currentColor"
1603
1662
  }
1604
1663
  }
1605
- }, xt = ["fill"];
1606
- function es(r, e, a, t, n, s) {
1607
- return o(), i("svg", {
1664
+ }, es = ["fill"];
1665
+ function ts(e, a, t, l, n, i) {
1666
+ return s(), o("svg", {
1608
1667
  "aria-hidden": "true",
1609
- fill: a.color,
1668
+ fill: t.color,
1610
1669
  xmlns: "http://www.w3.org/2000/svg",
1611
1670
  viewBox: "0 0 32 32",
1612
1671
  width: "32",
1613
1672
  height: "32"
1614
- }, [...e[0] || (e[0] = [
1615
- d("path", {
1673
+ }, [...a[0] || (a[0] = [
1674
+ c("path", {
1616
1675
  "fill-rule": "evenodd",
1617
1676
  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"
1618
1677
  }, null, -1)
1619
- ])], 8, xt);
1678
+ ])], 8, es);
1620
1679
  }
1621
- const X = /* @__PURE__ */ m(Zt, [["render", es]]), as = {
1680
+ const X = /* @__PURE__ */ v(Za, [["render", ts]]), as = {
1622
1681
  name: "WarningCircleFilled32",
1623
1682
  props: {
1624
1683
  /**
@@ -1629,23 +1688,23 @@ const X = /* @__PURE__ */ m(Zt, [["render", es]]), as = {
1629
1688
  default: "currentColor"
1630
1689
  }
1631
1690
  }
1632
- }, ts = ["fill"];
1633
- function ss(r, e, a, t, n, s) {
1634
- return o(), i("svg", {
1691
+ }, ss = ["fill"];
1692
+ function ls(e, a, t, l, n, i) {
1693
+ return s(), o("svg", {
1635
1694
  "aria-hidden": "true",
1636
- fill: a.color,
1695
+ fill: t.color,
1637
1696
  xmlns: "http://www.w3.org/2000/svg",
1638
1697
  viewBox: "0 0 32 32",
1639
1698
  width: "32",
1640
1699
  height: "32"
1641
- }, [...e[0] || (e[0] = [
1642
- d("path", {
1700
+ }, [...a[0] || (a[0] = [
1701
+ c("path", {
1643
1702
  "fill-rule": "evenodd",
1644
1703
  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"
1645
1704
  }, null, -1)
1646
- ])], 8, ts);
1705
+ ])], 8, ss);
1647
1706
  }
1648
- const Y = /* @__PURE__ */ m(as, [["render", ss]]), os = {
1707
+ const Y = /* @__PURE__ */ v(as, [["render", ls]]), ns = {
1649
1708
  name: "CrossCircleFilled32",
1650
1709
  props: {
1651
1710
  /**
@@ -1656,23 +1715,23 @@ const Y = /* @__PURE__ */ m(as, [["render", ss]]), os = {
1656
1715
  default: "currentColor"
1657
1716
  }
1658
1717
  }
1659
- }, ls = ["fill"];
1660
- function ns(r, e, a, t, n, s) {
1661
- return o(), i("svg", {
1718
+ }, os = ["fill"];
1719
+ function is(e, a, t, l, n, i) {
1720
+ return s(), o("svg", {
1662
1721
  "aria-hidden": "true",
1663
- fill: a.color,
1722
+ fill: t.color,
1664
1723
  xmlns: "http://www.w3.org/2000/svg",
1665
1724
  viewBox: "0 0 32 32",
1666
1725
  width: "32",
1667
1726
  height: "32"
1668
- }, [...e[0] || (e[0] = [
1669
- d("path", {
1727
+ }, [...a[0] || (a[0] = [
1728
+ c("path", {
1670
1729
  "fill-rule": "evenodd",
1671
1730
  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"
1672
1731
  }, null, -1)
1673
- ])], 8, ls);
1732
+ ])], 8, os);
1674
1733
  }
1675
- const Z = /* @__PURE__ */ m(os, [["render", ns]]), is = {
1734
+ const Z = /* @__PURE__ */ v(ns, [["render", is]]), cs = {
1676
1735
  name: "CheckCircleFilled32",
1677
1736
  props: {
1678
1737
  /**
@@ -1683,26 +1742,26 @@ const Z = /* @__PURE__ */ m(os, [["render", ns]]), is = {
1683
1742
  default: "currentColor"
1684
1743
  }
1685
1744
  }
1686
- }, rs = ["fill"];
1687
- function ds(r, e, a, t, n, s) {
1688
- return o(), i("svg", {
1745
+ }, ds = ["fill"];
1746
+ function rs(e, a, t, l, n, i) {
1747
+ return s(), o("svg", {
1689
1748
  "aria-hidden": "true",
1690
- fill: a.color,
1749
+ fill: t.color,
1691
1750
  xmlns: "http://www.w3.org/2000/svg",
1692
1751
  viewBox: "0 0 32 32",
1693
1752
  width: "32",
1694
1753
  height: "32"
1695
- }, [...e[0] || (e[0] = [
1696
- d("path", {
1754
+ }, [...a[0] || (a[0] = [
1755
+ c("path", {
1697
1756
  "fill-rule": "evenodd",
1698
1757
  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"
1699
1758
  }, null, -1)
1700
- ])], 8, rs);
1759
+ ])], 8, ds);
1701
1760
  }
1702
- const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-notification__content" }, us = { class: "mc-status-notification__title" }, ps = { class: "mc-status-notification__message" }, ms = {
1761
+ const ee = /* @__PURE__ */ v(cs, [["render", rs]]), us = { class: "mc-status-notification__content" }, ms = { class: "mc-status-notification__title" }, vs = { class: "mc-status-notification__message" }, bs = {
1703
1762
  key: 0,
1704
1763
  class: "mc-status-notification__footer"
1705
- }, _s = /* @__PURE__ */ $({
1764
+ }, ps = /* @__PURE__ */ _({
1706
1765
  __name: "MStatusNotification",
1707
1766
  props: {
1708
1767
  title: {},
@@ -1711,13 +1770,13 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
1711
1770
  closable: { type: Boolean }
1712
1771
  },
1713
1772
  emits: ["close"],
1714
- setup(r, { emit: e }) {
1715
- const a = r, t = v(() => ({
1716
- [`mc-status-notification--${a.status}`]: a.status && a.status != "info"
1717
- })), n = v(() => {
1718
- switch (a.status) {
1773
+ setup(e, { emit: a }) {
1774
+ const t = e, l = b(() => ({
1775
+ [`mc-status-notification--${t.status}`]: t.status && t.status != "info"
1776
+ })), n = b(() => {
1777
+ switch (t.status) {
1719
1778
  case "success":
1720
- return x;
1779
+ return ee;
1721
1780
  case "warning":
1722
1781
  return Y;
1723
1782
  case "error":
@@ -1726,44 +1785,47 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
1726
1785
  default:
1727
1786
  return X;
1728
1787
  }
1729
- }), s = e;
1730
- return (l, p) => (o(), i("section", {
1731
- class: g(["mc-status-notification", t.value]),
1788
+ }), i = a;
1789
+ return (d, u) => (s(), o("section", {
1790
+ class: h(["mc-status-notification", l.value]),
1732
1791
  role: "status"
1733
1792
  }, [
1734
- (o(), B(F(n.value), {
1793
+ (s(), C(D(n.value), {
1735
1794
  class: "mc-status-notification__icon",
1736
1795
  "aria-hidden": "true"
1737
1796
  })),
1738
- d("div", cs, [
1739
- d("h2", us, b(l.title), 1),
1740
- d("p", ps, b(l.description), 1),
1741
- l.$slots.footer ? (o(), i("div", ms, [
1742
- k(l.$slots, "footer", {}, void 0, !0)
1743
- ])) : h("", !0)
1797
+ c("div", us, [
1798
+ c("h2", ms, p(e.title), 1),
1799
+ c("p", vs, p(e.description), 1),
1800
+ d.$slots.footer ? (s(), o("div", bs, [
1801
+ y(d.$slots, "footer", {}, void 0, !0)
1802
+ ])) : f("", !0)
1744
1803
  ]),
1745
- l.closable ? (o(), B(S, {
1804
+ e.closable ? (s(), C(A, {
1746
1805
  key: 0,
1747
1806
  class: "mc-status-notification-closable__close",
1748
1807
  size: "s",
1749
1808
  ghost: "",
1750
1809
  "aria-label": "Close",
1751
- onClick: p[0] || (p[0] = (u) => s("close"))
1810
+ onClick: u[0] || (u[0] = (m) => i("close"))
1752
1811
  }, {
1753
- icon: M(() => [
1754
- w(W, {
1812
+ icon: B(() => [
1813
+ k(W, {
1755
1814
  class: "mc-button__icon",
1756
1815
  "aria-hidden": "true"
1757
1816
  })
1758
1817
  ]),
1759
1818
  _: 1
1760
- })) : h("", !0)
1819
+ })) : f("", !0)
1761
1820
  ], 2));
1762
1821
  }
1763
- }), ho = /* @__PURE__ */ m(_s, [["__scopeId", "data-v-2c7c85ad"]]), vs = ["aria-label"], bs = ["aria-selected", "onClick"], fs = {
1822
+ }), $l = /* @__PURE__ */ v(ps, [["__scopeId", "data-v-a7c71513"]]), fs = ["aria-label"], _s = ["aria-selected", "onClick"], hs = {
1764
1823
  key: 0,
1765
1824
  class: "mc-tabs__icon"
1766
- }, hs = { class: "mc-tabs__label" }, $s = /* @__PURE__ */ $({
1825
+ }, $s = { class: "mc-tabs__label" }, gs = {
1826
+ key: 1,
1827
+ class: "mc-tabs__badge"
1828
+ }, ys = /* @__PURE__ */ _({
1767
1829
  __name: "MTabs",
1768
1830
  props: {
1769
1831
  description: {},
@@ -1773,50 +1835,56 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
1773
1835
  tabs: {}
1774
1836
  },
1775
1837
  emits: ["update:modelValue"],
1776
- setup(r, { emit: e }) {
1777
- const a = r, t = v(() => ({
1778
- "mc-tabs--centered": a.centered
1779
- })), n = z(a.modelValue), s = (u) => {
1780
- a.tabs[u].disabled || u !== n.value && (n.value = u, p("update:modelValue", u));
1781
- }, l = (u) => n.value === u, p = e;
1782
- return (u, _) => (o(), i("nav", {
1783
- class: g(["mc-tabs", t.value])
1838
+ setup(e, { emit: a }) {
1839
+ const t = e, l = b(() => ({
1840
+ "mc-tabs--centered": t.centered
1841
+ })), n = M(t.modelValue), i = (m) => {
1842
+ t.tabs[m].disabled || m !== n.value && (n.value = m, u("update:modelValue", m));
1843
+ }, d = (m) => n.value === m, u = a;
1844
+ return (m, g) => (s(), o("nav", {
1845
+ class: h(["mc-tabs", l.value])
1784
1846
  }, [
1785
- d("ul", {
1847
+ c("ul", {
1786
1848
  role: "tablist",
1787
1849
  class: "mc-tabs__list",
1788
- "aria-label": u.description
1850
+ "aria-label": e.description
1789
1851
  }, [
1790
- (o(!0), i(P, null, D(u.tabs, (c, f) => (o(), i("li", {
1791
- key: `tab-${f}`,
1852
+ (s(!0), o(T, null, S(e.tabs, (r, $) => (s(), o("li", {
1853
+ key: `tab-${$}`,
1792
1854
  role: "presentation",
1793
1855
  class: "mc-tabs__item"
1794
1856
  }, [
1795
- d("button", {
1857
+ c("button", {
1796
1858
  ref_for: !0,
1797
1859
  ref: "tab",
1798
1860
  role: "tab",
1799
- class: g(["mc-tabs__tab", {
1800
- "mc-tabs__tab--selected": l(f),
1801
- "mc-tabs__tab--disabled": c.disabled
1861
+ class: h(["mc-tabs__tab", {
1862
+ "mc-tabs__tab--selected": d($),
1863
+ "mc-tabs__tab--disabled": r.disabled
1802
1864
  }]),
1803
- "aria-selected": l(f),
1865
+ "aria-selected": d($),
1804
1866
  type: "button",
1805
- onClick: (C) => s(f)
1867
+ onClick: (x) => i($)
1806
1868
  }, [
1807
- c.icon ? (o(), i("span", fs, [
1808
- (o(), B(F(c.icon)))
1809
- ])) : h("", !0),
1810
- d("div", hs, [
1811
- d("span", null, b(c.label), 1)
1812
- ])
1813
- ], 10, bs)
1869
+ r.icon ? (s(), o("span", hs, [
1870
+ (s(), C(D(r.icon)))
1871
+ ])) : f("", !0),
1872
+ c("div", $s, [
1873
+ c("span", null, p(r.label), 1)
1874
+ ]),
1875
+ r.badge ? (s(), o("span", gs, [
1876
+ k(J, {
1877
+ label: r.badge
1878
+ }, null, 8, ["label"])
1879
+ ])) : f("", !0)
1880
+ ], 10, _s)
1814
1881
  ]))), 128))
1815
- ], 8, vs),
1816
- u.divider ? (o(), B(Ze, { key: 0 })) : h("", !0)
1882
+ ], 8, fs),
1883
+ e.divider ? (s(), C(Ze, { key: 0 })) : f("", !0)
1817
1884
  ], 2));
1818
1885
  }
1819
- }), $o = /* @__PURE__ */ m($s, [["__scopeId", "data-v-3919f834"]]), gs = ["for"], ys = ["id", "name", "checked", "disabled"], ks = { class: "mc-tag__label" }, ws = ["disabled"], Vs = { class: "mc-tag__label" }, Is = ["disabled"], Bs = { class: "mc-tag__label" }, Cs = { class: "mc-tag__label" }, Ms = { class: "mc-tag__label" }, zs = /* @__PURE__ */ $({
1886
+ }), gl = /* @__PURE__ */ v(ys, [["__scopeId", "data-v-05fb9ae0"]]), ks = ["for"], ws = ["id", "name", "checked", "disabled"], Vs = { class: "mc-tag__label" }, Is = ["disabled"], Cs = { class: "mc-tag__label" }, xs = ["disabled"], Bs = { class: "mc-tag__label" }, Ms = { class: "mc-tag__label" }, zs = { class: "mc-tag__label" }, Ls = /* @__PURE__ */ _({
1887
+ inheritAttrs: !1,
1820
1888
  __name: "MTag",
1821
1889
  props: {
1822
1890
  type: { default: "informative" },
@@ -1830,69 +1898,70 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
1830
1898
  removableLabel: {}
1831
1899
  },
1832
1900
  emits: ["update:modelValue", "remove-tag"],
1833
- setup(r, { emit: e }) {
1834
- const a = r, t = v(() => ({
1835
- [`mc-tag-${a.type}`]: a.type && a.type != "informative",
1836
- [`mc-tag--${a.size}`]: a.size && a.size != "m"
1837
- })), n = e;
1838
- return (s, l) => s.type === "selectable" ? (o(), i("label", {
1901
+ setup(e, { emit: a }) {
1902
+ const t = e, l = b(() => ({
1903
+ [`mc-tag-${t.type}`]: t.type && t.type != "informative",
1904
+ [`mc-tag--${t.size}`]: t.size && t.size != "m"
1905
+ })), n = a;
1906
+ return (i, d) => e.type === "selectable" ? (s(), o("label", {
1839
1907
  key: 0,
1840
- for: s.id,
1841
- class: g(["mc-tag", t.value])
1908
+ for: e.id,
1909
+ class: h(["mc-tag", l.value])
1842
1910
  }, [
1843
- d("input", I({
1911
+ c("input", V({
1844
1912
  type: "checkbox",
1845
1913
  class: "mc-tag__input",
1846
- id: s.id,
1847
- name: s.name,
1848
- checked: s.modelValue,
1849
- disabled: s.disabled,
1850
- onChange: l[0] || (l[0] = (p) => n("update:modelValue", p.target.checked))
1851
- }, s.$attrs), null, 16, ys),
1852
- d("span", ks, b(s.label), 1)
1853
- ], 10, gs)) : s.type === "interactive" ? (o(), i("button", I({
1914
+ id: e.id,
1915
+ name: e.name,
1916
+ checked: e.modelValue,
1917
+ disabled: e.disabled,
1918
+ onChange: d[0] || (d[0] = (u) => n("update:modelValue", u.target.checked))
1919
+ }, i.$attrs), null, 16, ws),
1920
+ c("span", Vs, p(e.label), 1)
1921
+ ], 10, ks)) : e.type === "interactive" ? (s(), o("button", V({
1854
1922
  key: 1,
1855
- class: ["mc-tag", t.value],
1923
+ class: ["mc-tag", l.value],
1856
1924
  type: "button",
1857
- disabled: s.disabled
1858
- }, s.$attrs), [
1859
- d("span", Vs, b(s.label), 1)
1860
- ], 16, ws)) : s.type === "contextualised" ? (o(), i("button", I({
1925
+ disabled: e.disabled
1926
+ }, i.$attrs), [
1927
+ c("span", Cs, p(e.label), 1)
1928
+ ], 16, Is)) : e.type === "contextualised" ? (s(), o("button", V({
1861
1929
  key: 2,
1862
- class: ["mc-tag", t.value],
1930
+ class: ["mc-tag", l.value],
1863
1931
  type: "button",
1864
- disabled: s.disabled
1865
- }, s.$attrs), [
1866
- w(Qa, {
1932
+ disabled: e.disabled
1933
+ }, i.$attrs), [
1934
+ k(J, {
1867
1935
  appearance: "inverse",
1868
- label: s.contextualisedNumber,
1869
- size: s.size === "l" ? "m" : void 0
1936
+ label: e.contextualisedNumber,
1937
+ size: e.size === "l" ? "m" : void 0
1870
1938
  }, null, 8, ["label", "size"]),
1871
- d("span", Bs, b(s.label), 1)
1872
- ], 16, Is)) : s.type === "removable" ? (o(), i("span", I({
1939
+ c("span", Bs, p(e.label), 1)
1940
+ ], 16, xs)) : e.type === "removable" ? (s(), o("span", V({
1873
1941
  key: 3,
1874
- class: ["mc-tag", t.value]
1875
- }, s.$attrs), [
1876
- d("span", Cs, b(s.label), 1),
1877
- d("button", {
1942
+ class: ["mc-tag", l.value]
1943
+ }, i.$attrs), [
1944
+ c("span", Ms, p(e.label), 1),
1945
+ c("button", {
1878
1946
  class: "mc-tag-removable__remove",
1879
1947
  type: "button",
1880
- onClick: l[1] || (l[1] = (p) => s.id && n("remove-tag", s.id))
1948
+ onClick: d[1] || (d[1] = (u) => e.id && n("remove-tag", e.id))
1881
1949
  }, [
1882
- w(A, {
1950
+ k(q, {
1883
1951
  class: "mc-tag-removable__icon",
1884
1952
  "aria-hidden": "true"
1885
1953
  }),
1886
- l[2] || (l[2] = d("span", { class: "mc-tag-removable__text" }, "removableLabel", -1))
1954
+ d[2] || (d[2] = c("span", { class: "mc-tag-removable__text" }, "removableLabel", -1))
1887
1955
  ])
1888
- ], 16)) : (o(), i("span", I({
1956
+ ], 16)) : (s(), o("span", V({
1889
1957
  key: 4,
1890
- class: ["mc-tag", t.value]
1891
- }, s.$attrs), [
1892
- d("span", Ms, b(s.label), 1)
1958
+ class: ["mc-tag", l.value]
1959
+ }, i.$attrs), [
1960
+ c("span", zs, p(e.label), 1)
1893
1961
  ], 16));
1894
1962
  }
1895
- }), go = /* @__PURE__ */ m(zs, [["__scopeId", "data-v-a3166010"]]), Ls = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], js = /* @__PURE__ */ $({
1963
+ }), yl = /* @__PURE__ */ v(Ls, [["__scopeId", "data-v-ff87c7bd"]]), js = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], Os = /* @__PURE__ */ _({
1964
+ inheritAttrs: !1,
1896
1965
  __name: "MTextArea",
1897
1966
  props: {
1898
1967
  id: {},
@@ -1907,33 +1976,34 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
1907
1976
  readonly: { type: Boolean }
1908
1977
  },
1909
1978
  emits: ["update:modelValue"],
1910
- setup(r, { emit: e }) {
1911
- const a = r, t = v(() => ({
1912
- "is-invalid": a.isInvalid
1913
- })), n = e;
1914
- return (s, l) => (o(), i("textarea", I({
1915
- id: s.id,
1916
- class: ["mc-textarea", t.value],
1917
- "aria-invalid": s.isInvalid,
1918
- value: s.modelValue,
1919
- name: s.name,
1920
- placeholder: s.placeholder,
1921
- disabled: s.disabled,
1922
- minlength: s.minLength,
1923
- maxlength: s.maxLength,
1924
- rows: s.rows,
1925
- readonly: s.readonly
1926
- }, s.$attrs, {
1927
- onInput: l[0] || (l[0] = (p) => n("update:modelValue", p.target.value))
1928
- }), null, 16, Ls));
1979
+ setup(e, { emit: a }) {
1980
+ const t = e, l = b(() => ({
1981
+ "is-invalid": t.isInvalid
1982
+ })), n = a;
1983
+ return (i, d) => (s(), o("textarea", V({
1984
+ id: e.id,
1985
+ class: ["mc-textarea", l.value],
1986
+ "aria-invalid": e.isInvalid,
1987
+ value: e.modelValue,
1988
+ name: e.name,
1989
+ placeholder: e.placeholder,
1990
+ disabled: e.disabled,
1991
+ minlength: e.minLength,
1992
+ maxlength: e.maxLength,
1993
+ rows: e.rows,
1994
+ readonly: e.readonly
1995
+ }, i.$attrs, {
1996
+ onInput: d[0] || (d[0] = (u) => n("update:modelValue", u.target.value))
1997
+ }), null, 16, js));
1929
1998
  }
1930
- }), yo = /* @__PURE__ */ m(js, [["__scopeId", "data-v-8184b69c"]]), Os = {
1999
+ }), kl = /* @__PURE__ */ v(Os, [["__scopeId", "data-v-92dbf400"]]), Ts = {
1931
2000
  key: 0,
1932
2001
  class: "mc-text-input__icon"
1933
- }, Ts = ["id", "value", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Ss = {
2002
+ }, Ss = ["id", "value", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], As = {
1934
2003
  key: 1,
1935
2004
  class: "mc-controls-options"
1936
- }, Ps = /* @__PURE__ */ $({
2005
+ }, Ps = /* @__PURE__ */ _({
2006
+ inheritAttrs: !1,
1937
2007
  __name: "MTextInput",
1938
2008
  props: {
1939
2009
  id: {},
@@ -1949,51 +2019,51 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
1949
2019
  clearLabel: { default: "clear content" }
1950
2020
  },
1951
2021
  emits: ["update:modelValue"],
1952
- setup(r, { emit: e }) {
1953
- const a = r, t = v(() => ({
1954
- [`mc-text-input--${a.size}`]: a.size && a.size != "m",
1955
- "is-invalid": a.isInvalid
2022
+ setup(e, { emit: a }) {
2023
+ const t = e, l = b(() => ({
2024
+ [`mc-text-input--${t.size}`]: t.size && t.size != "m",
2025
+ "is-invalid": t.isInvalid
1956
2026
  })), n = () => {
1957
- s("update:modelValue", "");
1958
- }, s = e;
1959
- return (l, p) => (o(), i("div", {
1960
- class: g(["mc-text-input", t.value])
2027
+ i("update:modelValue", "");
2028
+ }, i = a;
2029
+ return (d, u) => (s(), o("div", {
2030
+ class: h(["mc-text-input", l.value])
1961
2031
  }, [
1962
- l.$slots.icon ? (o(), i("span", Os, [
1963
- k(l.$slots, "icon", {}, void 0, !0)
1964
- ])) : h("", !0),
1965
- d("input", I({
1966
- id: l.id,
2032
+ d.$slots.icon ? (s(), o("span", Ts, [
2033
+ y(d.$slots, "icon", {}, void 0, !0)
2034
+ ])) : f("", !0),
2035
+ c("input", V({
2036
+ id: e.id,
1967
2037
  class: "mc-text-input__control",
1968
- value: l.modelValue,
1969
- type: l.inputType,
1970
- name: l.name,
1971
- placeholder: l.placeholder,
1972
- disabled: l.disabled,
1973
- "aria-invalid": l.isInvalid,
1974
- readonly: l.readonly
1975
- }, l.$attrs, {
1976
- onInput: p[0] || (p[0] = (u) => s("update:modelValue", u.target.value))
1977
- }), null, 16, Ts),
1978
- l.isClearable && l.modelValue ? (o(), i("div", Ss, [
1979
- d("button", {
2038
+ value: e.modelValue,
2039
+ type: e.inputType,
2040
+ name: e.name,
2041
+ placeholder: e.placeholder,
2042
+ disabled: e.disabled,
2043
+ "aria-invalid": e.isInvalid,
2044
+ readonly: e.readonly
2045
+ }, d.$attrs, {
2046
+ onInput: u[0] || (u[0] = (m) => i("update:modelValue", m.target.value))
2047
+ }), null, 16, Ss),
2048
+ e.isClearable && e.modelValue ? (s(), o("div", As, [
2049
+ c("button", {
1980
2050
  type: "button",
1981
2051
  class: "mc-controls-options__button",
1982
2052
  onClick: n
1983
2053
  }, [
1984
- w(A, {
2054
+ k(q, {
1985
2055
  class: "mc-controls-options__icon",
1986
2056
  "aria-hidden": "true"
1987
2057
  }),
1988
- p[1] || (p[1] = d("span", { class: "mc-controls-options__label" }, "{clearLabel}", -1))
2058
+ u[1] || (u[1] = c("span", { class: "mc-controls-options__label" }, "{clearLabel}", -1))
1989
2059
  ])
1990
- ])) : h("", !0)
2060
+ ])) : f("", !0)
1991
2061
  ], 2));
1992
2062
  }
1993
- }), ko = /* @__PURE__ */ m(Ps, [["__scopeId", "data-v-d7b75fa8"]]), Ds = { class: "mc-toaster__content" }, qs = { class: "mc-toaster__message" }, Fs = {
2063
+ }), wl = /* @__PURE__ */ v(Ps, [["__scopeId", "data-v-8e8fe88e"]]), Ds = { class: "mc-toaster__content" }, qs = { class: "mc-toaster__message" }, Fs = {
1994
2064
  key: 0,
1995
2065
  class: "mc-toaster__action"
1996
- }, As = /* @__PURE__ */ $({
2066
+ }, Ns = /* @__PURE__ */ _({
1997
2067
  __name: "MToaster",
1998
2068
  props: {
1999
2069
  open: { type: Boolean },
@@ -2005,15 +2075,15 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
2005
2075
  timeout: {}
2006
2076
  },
2007
2077
  emits: ["update:open"],
2008
- setup(r, { emit: e }) {
2009
- const a = r, t = v(() => ({
2010
- "is-open": a.open,
2011
- [`mc-toaster--${a.status}`]: a.status && a.status != "info",
2012
- [`mc-toaster--${a.position}`]: a.position && a.position != "top"
2013
- })), n = v(() => {
2014
- switch (a.status) {
2078
+ setup(e, { emit: a }) {
2079
+ const t = e, l = b(() => ({
2080
+ "is-open": t.open,
2081
+ [`mc-toaster--${t.status}`]: t.status && t.status != "info",
2082
+ [`mc-toaster--${t.position}`]: t.position && t.position != "top"
2083
+ })), n = b(() => {
2084
+ switch (t.status) {
2015
2085
  case "success":
2016
- return x;
2086
+ return ee;
2017
2087
  case "warning":
2018
2088
  return Y;
2019
2089
  case "error":
@@ -2023,68 +2093,69 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
2023
2093
  return X;
2024
2094
  }
2025
2095
  });
2026
- T(
2027
- () => a.open,
2028
- (c) => {
2029
- l("update:open", c);
2096
+ z(
2097
+ () => t.open,
2098
+ (r) => {
2099
+ d("update:open", r);
2030
2100
  }
2031
2101
  );
2032
- const s = () => {
2033
- l("update:open", !1);
2034
- }, l = e, p = z(0);
2035
- let u = null, _ = null;
2036
- return se(() => {
2037
- if (a.timeout)
2038
- if (a.progress) {
2039
- const C = 100 / (a.timeout / 100);
2040
- u = setInterval(() => {
2041
- p.value += C, p.value >= 100 && (p.value = 100, s(), clearInterval(u));
2102
+ const i = () => {
2103
+ d("update:open", !1);
2104
+ }, d = a, u = M(0);
2105
+ let m = null, g = null;
2106
+ return le(() => {
2107
+ if (t.timeout)
2108
+ if (t.progress) {
2109
+ const x = 100 / (t.timeout / 100);
2110
+ m = setInterval(() => {
2111
+ u.value += x, u.value >= 100 && (u.value = 100, i(), clearInterval(m));
2042
2112
  }, 100);
2043
2113
  } else
2044
- _ = setTimeout(() => {
2045
- s();
2046
- }, a.timeout);
2047
- }), oe(() => {
2048
- a.timeout && (u && clearInterval(u), _ && clearTimeout(_));
2049
- }), (c, f) => (o(), i("section", {
2050
- class: g(["mc-toaster", t.value]),
2114
+ g = setTimeout(() => {
2115
+ i();
2116
+ }, t.timeout);
2117
+ }), ne(() => {
2118
+ t.timeout && (m && clearInterval(m), g && clearTimeout(g));
2119
+ }), (r, $) => (s(), o("section", {
2120
+ class: h(["mc-toaster", l.value]),
2051
2121
  role: "status"
2052
2122
  }, [
2053
- (o(), B(F(n.value), {
2123
+ (s(), C(D(n.value), {
2054
2124
  class: "mc-toaster__icon",
2055
2125
  "aria-hidden": "true"
2056
2126
  })),
2057
- d("div", Ds, [
2058
- d("p", qs, b(c.description), 1),
2059
- c.$slots.action ? (o(), i("div", Fs, [
2060
- k(c.$slots, "action", {}, void 0, !0)
2061
- ])) : h("", !0)
2127
+ c("div", Ds, [
2128
+ c("p", qs, p(e.description), 1),
2129
+ r.$slots.action ? (s(), o("div", Fs, [
2130
+ y(r.$slots, "action", {}, void 0, !0)
2131
+ ])) : f("", !0)
2062
2132
  ]),
2063
- c.closable ? (o(), B(S, {
2133
+ e.closable ? (s(), C(A, {
2064
2134
  key: 0,
2065
2135
  class: "mc-toaster__close",
2066
2136
  appearance: "inverse",
2067
2137
  size: "s",
2068
2138
  ghost: "",
2069
2139
  "aria-label": "Close",
2070
- onClick: s
2140
+ onClick: i
2071
2141
  }, {
2072
- icon: M(() => [
2073
- w(W, {
2142
+ icon: B(() => [
2143
+ k(W, {
2074
2144
  class: "mc-button__icon",
2075
2145
  "aria-hidden": "true"
2076
2146
  })
2077
2147
  ]),
2078
2148
  _: 1
2079
- })) : h("", !0),
2080
- c.progress ? (o(), B(ft, {
2149
+ })) : f("", !0),
2150
+ e.progress ? (s(), C(Pt, {
2081
2151
  key: 1,
2082
2152
  class: "mc-toaster__indicator",
2083
- value: p.value
2084
- }, null, 8, ["value"])) : h("", !0)
2153
+ value: u.value
2154
+ }, null, 8, ["value"])) : f("", !0)
2085
2155
  ], 2));
2086
2156
  }
2087
- }), wo = /* @__PURE__ */ m(As, [["__scopeId", "data-v-8a753ebd"]]), Ns = ["for"], Rs = ["id", "name", "checked", "disabled"], Gs = ["for"], Us = /* @__PURE__ */ $({
2157
+ }), Vl = /* @__PURE__ */ v(Ns, [["__scopeId", "data-v-c7799abc"]]), Rs = ["for"], Gs = ["id", "name", "checked", "disabled"], Us = ["for"], Ks = /* @__PURE__ */ _({
2158
+ inheritAttrs: !1,
2088
2159
  __name: "MToggle",
2089
2160
  props: {
2090
2161
  id: {},
@@ -2095,63 +2166,36 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
2095
2166
  disabled: { type: Boolean }
2096
2167
  },
2097
2168
  emits: ["update:modelValue"],
2098
- setup(r, { emit: e }) {
2099
- const a = r, t = v(() => ({
2100
- [`mc-toggle--${a.size}`]: a.size && a.size != "s"
2101
- })), n = e;
2102
- return (s, l) => (o(), i("div", {
2103
- class: g(["mc-toggle", t.value])
2169
+ setup(e, { emit: a }) {
2170
+ const t = e, l = b(() => ({
2171
+ [`mc-toggle--${t.size}`]: t.size && t.size != "s"
2172
+ })), n = a;
2173
+ return (i, d) => (s(), o("div", {
2174
+ class: h(["mc-toggle", l.value])
2104
2175
  }, [
2105
- d("label", {
2176
+ c("label", {
2106
2177
  class: "mc-toggle__container",
2107
- for: s.id
2178
+ for: e.id
2108
2179
  }, [
2109
- d("input", I({
2110
- id: s.id,
2180
+ c("input", V({
2181
+ id: e.id,
2111
2182
  type: "checkbox",
2112
2183
  class: "mc-toggle__input",
2113
- name: s.name,
2114
- checked: s.modelValue,
2115
- disabled: s.disabled
2116
- }, s.$attrs, {
2117
- onChange: l[0] || (l[0] = (p) => n("update:modelValue", p.target.checked))
2118
- }), null, 16, Rs),
2119
- s.label ? (o(), i("span", {
2184
+ name: e.name,
2185
+ checked: e.modelValue,
2186
+ disabled: e.disabled
2187
+ }, i.$attrs, {
2188
+ onChange: d[0] || (d[0] = (u) => n("update:modelValue", u.target.checked))
2189
+ }), null, 16, Gs),
2190
+ e.label ? (s(), o("span", {
2120
2191
  key: 0,
2121
- for: s.id,
2192
+ for: e.id,
2122
2193
  class: "mc-toggle__label"
2123
- }, b(s.label), 9, Gs)) : h("", !0)
2124
- ], 8, Ns)
2194
+ }, p(e.label), 9, Us)) : f("", !0)
2195
+ ], 8, Rs)
2125
2196
  ], 2));
2126
2197
  }
2127
- }), Hs = /* @__PURE__ */ m(Us, [["__scopeId", "data-v-5be734e7"]]), Ks = { class: "tooltip-story-wrapper" }, Es = ["aria-describedby"], Qs = ["id"], Js = /* @__PURE__ */ $({
2128
- __name: "MTooltip",
2129
- props: {
2130
- id: {},
2131
- text: {},
2132
- position: { default: "top" },
2133
- pointer: { type: Boolean, default: !0 }
2134
- },
2135
- setup(r) {
2136
- const e = r, a = v(() => ({
2137
- [`mc-tooltip--${e.position}`]: e.position,
2138
- "mc-tooltip--no-pointer": !e.pointer
2139
- }));
2140
- return (t, n) => (o(), i("div", Ks, [
2141
- d("div", {
2142
- class: g(["mc-tooltip", a.value]),
2143
- "aria-describedby": t.id
2144
- }, [
2145
- k(t.$slots, "default", {}, void 0, !0),
2146
- d("span", {
2147
- id: t.id,
2148
- class: "mc-tooltip__content",
2149
- role: "tooltip"
2150
- }, b(t.text), 9, Qs)
2151
- ], 10, Es)
2152
- ]));
2153
- }
2154
- }), Vo = /* @__PURE__ */ m(Js, [["__scopeId", "data-v-f90a7be6"]]), Ws = /* @__PURE__ */ $({
2198
+ }), Hs = /* @__PURE__ */ v(Ks, [["__scopeId", "data-v-3f62827d"]]), Es = /* @__PURE__ */ _({
2155
2199
  __name: "MToggleGroup",
2156
2200
  props: {
2157
2201
  name: {},
@@ -2160,80 +2204,107 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
2160
2204
  inline: { type: Boolean }
2161
2205
  },
2162
2206
  emits: ["update:modelValue"],
2163
- setup(r, { emit: e }) {
2164
- const a = r, t = z([]);
2165
- T(
2166
- () => a.modelValue,
2167
- (u) => {
2168
- t.value = u || [];
2207
+ setup(e, { emit: a }) {
2208
+ const t = e, l = M([]);
2209
+ z(
2210
+ () => t.modelValue,
2211
+ (m) => {
2212
+ l.value = m || [];
2169
2213
  },
2170
2214
  { immediate: !0 }
2171
2215
  );
2172
- const n = (u, _) => {
2173
- let c = [...t.value];
2174
- u && !c.includes(_) ? c.push(_) : c = c.filter((f) => f !== _), p("update:modelValue", c), t.value = c;
2175
- }, s = v(() => ({
2176
- "mc-field__container--inline": a.inline
2177
- })), l = v(() => ({
2178
- "mc-field__container--inline__item": a.inline
2179
- })), p = e;
2180
- return (u, _) => (o(), i("div", {
2181
- class: g(s.value)
2216
+ const n = (m, g) => {
2217
+ let r = [...l.value];
2218
+ m && !r.includes(g) ? r.push(g) : r = r.filter(($) => $ !== g), u("update:modelValue", r), l.value = r;
2219
+ }, i = b(() => ({
2220
+ "mc-field__container--inline": t.inline
2221
+ })), d = b(() => ({
2222
+ "mc-field__container--inline__item": t.inline
2223
+ })), u = a;
2224
+ return (m, g) => (s(), o("div", {
2225
+ class: h(i.value)
2182
2226
  }, [
2183
- (o(!0), i(P, null, D(u.options, (c) => (o(), B(Hs, {
2184
- id: c.id,
2185
- key: c.id,
2186
- label: c.label,
2187
- "is-invalid": c.isInvalid,
2188
- name: u.name,
2189
- class: g(l.value),
2190
- "model-value": u.modelValue ? u.modelValue.includes(c.value) : void 0,
2191
- disabled: c.disabled,
2192
- "onUpdate:modelValue": (f) => n(f, c.value)
2227
+ (s(!0), o(T, null, S(e.options, (r) => (s(), C(Hs, {
2228
+ id: r.id,
2229
+ key: r.id,
2230
+ label: r.label,
2231
+ "is-invalid": r.isInvalid,
2232
+ name: e.name,
2233
+ class: h(d.value),
2234
+ "model-value": e.modelValue ? e.modelValue.includes(r.value) : void 0,
2235
+ disabled: r.disabled,
2236
+ "onUpdate:modelValue": ($) => n($, r.value)
2193
2237
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
2194
2238
  ], 2));
2195
2239
  }
2196
- }), Io = /* @__PURE__ */ m(Ws, [["__scopeId", "data-v-c6b10172"]]);
2240
+ }), Il = /* @__PURE__ */ v(Es, [["__scopeId", "data-v-7c4df292"]]), Qs = ["aria-describedby"], Js = ["id"], Ws = /* @__PURE__ */ _({
2241
+ __name: "MTooltip",
2242
+ props: {
2243
+ id: {},
2244
+ text: {},
2245
+ position: { default: "top" },
2246
+ pointer: { type: Boolean, default: !0 }
2247
+ },
2248
+ setup(e) {
2249
+ const a = e, t = b(() => ({
2250
+ [`mc-tooltip--${a.position}`]: a.position,
2251
+ "mc-tooltip--no-pointer": !a.pointer
2252
+ }));
2253
+ return (l, n) => (s(), o("div", {
2254
+ class: h(["mc-tooltip", t.value]),
2255
+ "aria-describedby": e.id
2256
+ }, [
2257
+ y(l.$slots, "default", {}, void 0, !0),
2258
+ c("span", {
2259
+ id: e.id,
2260
+ class: "mc-tooltip__content",
2261
+ role: "tooltip"
2262
+ }, p(e.text), 9, Js)
2263
+ ], 10, Qs));
2264
+ }
2265
+ }), Cl = /* @__PURE__ */ v(Ws, [["__scopeId", "data-v-424718c4"]]);
2197
2266
  export {
2198
2267
  Ys as MAvatar,
2199
2268
  Zs as MBreadcrumb,
2200
- N as MButton,
2201
- ao as MCallout,
2202
- Ce as MCheckbox,
2203
- xs as MCheckboxGroup,
2204
- eo as MCircularProgressbar,
2205
- to as MContainer,
2206
- so as MDatepicker,
2269
+ F as MButton,
2270
+ el as MCallout,
2271
+ Te as MCheckbox,
2272
+ tl as MCheckboxGroup,
2273
+ al as MCircularProgressbar,
2274
+ sl as MContainer,
2275
+ ll as MDatepicker,
2207
2276
  Ze as MDivider,
2208
- oo as MDrawer,
2209
- lo as MField,
2210
- no as MFieldGroup,
2211
- io as MFlag,
2212
- S as MIconButton,
2213
- ft as MLinearProgressbarBuffer,
2214
- _o as MLinearProgressbarPercentage,
2215
- ce as MLink,
2216
- E as MLoader,
2217
- ro as MLoadingOverlay,
2218
- co as MModal,
2219
- Qa as MNumberBadge,
2220
- J as MOverlay,
2221
- uo as MPagination,
2222
- po as MPasswordInput,
2223
- mo as MPincode,
2224
- vo as MQuantitySelector,
2225
- Ut as MRadio,
2226
- bo as MRadioGroup,
2227
- Za as MSelect,
2228
- fo as MStatusBadge,
2229
- ho as MStatusNotification,
2230
- $o as MTabs,
2231
- go as MTag,
2232
- yo as MTextArea,
2233
- ko as MTextInput,
2234
- wo as MToaster,
2277
+ nl as MDrawer,
2278
+ ol as MField,
2279
+ il as MFieldGroup,
2280
+ cl as MFlag,
2281
+ A as MIconButton,
2282
+ Pt as MLinearProgressbarBuffer,
2283
+ dl as MLinearProgressbarPercentage,
2284
+ ue as MLink,
2285
+ H as MLoader,
2286
+ rl as MLoadingOverlay,
2287
+ ul as MModal,
2288
+ J as MNumberBadge,
2289
+ Q as MOverlay,
2290
+ ml as MPagination,
2291
+ vl as MPasswordInput,
2292
+ bl as MPincode,
2293
+ pl as MQuantitySelector,
2294
+ Ra as MRadio,
2295
+ fl as MRadioGroup,
2296
+ _l as MSegmentedControl,
2297
+ na as MSelect,
2298
+ hl as MStatusBadge,
2299
+ Ea as MStatusDot,
2300
+ $l as MStatusNotification,
2301
+ gl as MTabs,
2302
+ yl as MTag,
2303
+ kl as MTextArea,
2304
+ wl as MTextInput,
2305
+ Vl as MToaster,
2235
2306
  Hs as MToggle,
2236
- Io as MToggleGroup,
2237
- Vo as MTooltip
2307
+ Il as MToggleGroup,
2308
+ Cl as MTooltip
2238
2309
  };
2239
2310
  //# sourceMappingURL=mozaic-vue.js.map