maz-ui 3.36.0 → 3.36.2

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 (35) hide show
  1. package/components/MazDialog.mjs +1 -1
  2. package/components/MazDialogPromise.mjs +1 -1
  3. package/components/MazPagination.d.ts +4 -3
  4. package/components/MazPagination.mjs +1 -1
  5. package/components/MazPhoneNumberInput.mjs +1 -1
  6. package/components/MazSelect.mjs +1 -1
  7. package/components/MazTable.mjs +1 -1
  8. package/components/assets/MazDialog.css +1 -1
  9. package/components/assets/MazDialogPromise.css +1 -1
  10. package/components/assets/MazPagination.css +1 -1
  11. package/components/assets/MazPhoneNumberInput.css +1 -1
  12. package/components/assets/MazSelect.css +1 -1
  13. package/components/assets/MazTable.css +1 -1
  14. package/components/chunks/{MazBtn-GCCDnqJA.mjs → MazBtn-CvXujRc7.mjs} +2 -2
  15. package/components/chunks/{MazBtn-BL-LWc8X.mjs → MazBtn-DE96LeuR.mjs} +2 -2
  16. package/components/chunks/{MazBtn-CEuoZU_j.mjs → MazBtn-DlN53_hE.mjs} +2 -2
  17. package/components/chunks/{MazBtn-pY3gOUjM.mjs → MazBtn-kLavxmjX.mjs} +2 -2
  18. package/components/chunks/{MazCheckbox-BAC8XgFg.mjs → MazCheckbox-CEH7cTwM.mjs} +1 -1
  19. package/components/chunks/{MazCheckbox-EG8AZPtG.mjs → MazCheckbox-RBgGXFPZ.mjs} +1 -1
  20. package/components/chunks/{MazDialog-DtQm-sV0.mjs → MazDialog-CW8YIBc1.mjs} +2 -2
  21. package/components/chunks/{MazDialogPromise-CWl8N4Af.mjs → MazDialogPromise-Cd5B1cpr.mjs} +3 -3
  22. package/components/chunks/{MazIcon-pcOKJiIX.mjs → MazIcon-BHpbiW6o.mjs} +1 -1
  23. package/components/chunks/{MazPagination-Ch7JcLI8.mjs → MazPagination-BOia4I5Z.mjs} +2 -2
  24. package/components/chunks/{MazPhoneNumberInput-dbbjH9lI.mjs → MazPhoneNumberInput-DswH2fTx.mjs} +60 -57
  25. package/components/chunks/{MazSelect-8_n2ovqP.mjs → MazSelect-D3ti4T0X.mjs} +70 -67
  26. package/components/chunks/{MazSpinner-Dty6fcnV.mjs → MazSpinner-5mIQ-J1u.mjs} +1 -1
  27. package/components/chunks/{MazSpinner-DtdabLA2.mjs → MazSpinner-BwOdmgr3.mjs} +1 -1
  28. package/components/chunks/{MazSpinner-CB4XzJJF.mjs → MazSpinner-Bxelx5NH.mjs} +1 -1
  29. package/components/chunks/{MazSpinner-D3U6NnSV.mjs → MazSpinner-CISWLcK7.mjs} +1 -1
  30. package/components/chunks/{MazSpinner-CjKNs7lm.mjs → MazSpinner-CJw_tVej.mjs} +1 -1
  31. package/components/chunks/{MazSpinner-CRYzqbIv.mjs → MazSpinner-DaehD0ZC.mjs} +1 -1
  32. package/components/chunks/{MazTable-DECLgD3Z.mjs → MazTable-BrIKi66i.mjs} +54 -51
  33. package/nuxt/index.json +1 -1
  34. package/package.json +9 -9
  35. package/types/components/MazPagination.vue.d.ts +4 -3
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazCheckbox.css";
2
2
  import { defineComponent as C, useCssVars as g, getCurrentInstance as I, computed as l, openBlock as S, createElementBlock as _, unref as r, normalizeClass as i, normalizeStyle as w, createElementVNode as m, mergeProps as A, createVNode as B, renderSlot as N } from "vue";
3
- import { u as M, _ as E } from "./MazSelect-8_n2ovqP.mjs";
3
+ import { u as M, _ as E } from "./MazSelect-D3ti4T0X.mjs";
4
4
  import q from "./check-7UA4j2f2.mjs";
5
5
  const D = ["for", "aria-checked"], H = ["id", "checked", "disabled", "name"], K = /* @__PURE__ */ C({
6
6
  inheritAttrs: !1,
@@ -147,7 +147,7 @@ const M = "--backdrop-present", I = /* @__PURE__ */ T({
147
147
  "open"
148
148
  ],
149
149
  setup(n) {
150
- const c = S(() => import("./MazBtn-CEuoZU_j.mjs")), i = S(() => import("./x-mark-BP8zWe_C.mjs")), s = x(), u = w(() => ({
150
+ const c = S(() => import("./MazBtn-DE96LeuR.mjs")), i = S(() => import("./x-mark-BP8zWe_C.mjs")), s = x(), u = w(() => ({
151
151
  ...s,
152
152
  class: void 0,
153
153
  style: void 0
@@ -247,7 +247,7 @@ const M = "--backdrop-present", I = /* @__PURE__ */ T({
247
247
  for (const [s, u] of c)
248
248
  i[s] = u;
249
249
  return i;
250
- }, R = /* @__PURE__ */ G(j, [["__scopeId", "data-v-a9f3580e"]]);
250
+ }, R = /* @__PURE__ */ G(j, [["__scopeId", "data-v-3981521c"]]);
251
251
  export {
252
252
  R as M,
253
253
  G as _
@@ -171,7 +171,7 @@ const G = j(), b = j([]), J = (t, n) => new Promise((r, i) => {
171
171
  "open"
172
172
  ],
173
173
  setup(t) {
174
- const n = M(() => import("./MazBtn-pY3gOUjM.mjs")), r = M(() => import("./x-mark-BP8zWe_C.mjs")), i = U(), c = T(() => ({
174
+ const n = M(() => import("./MazBtn-kLavxmjX.mjs")), r = M(() => import("./x-mark-BP8zWe_C.mjs")), i = U(), c = T(() => ({
175
175
  ...i,
176
176
  class: void 0,
177
177
  style: void 0
@@ -271,7 +271,7 @@ const G = j(), b = j([]), J = (t, n) => new Promise((r, i) => {
271
271
  for (const [i, c] of n)
272
272
  r[i] = c;
273
273
  return r;
274
- }, oe = /* @__PURE__ */ te(ee, [["__scopeId", "data-v-a9f3580e"]]), ne = { class: "maz-space-x-2" }, ae = /* @__PURE__ */ V({
274
+ }, oe = /* @__PURE__ */ te(ee, [["__scopeId", "data-v-3981521c"]]), ne = { class: "maz-space-x-2" }, ae = /* @__PURE__ */ V({
275
275
  __name: "MazDialogPromise",
276
276
  props: {
277
277
  /** Dialog Data - type DialogData */
@@ -282,7 +282,7 @@ const G = j(), b = j([]), J = (t, n) => new Promise((r, i) => {
282
282
  buttons: { type: Array, default: () => [] }
283
283
  },
284
284
  setup(t) {
285
- const n = M(() => import("./MazBtn-pY3gOUjM.mjs")), r = t, { dialogState: i, rejectDialog: c, resolveDialog: u } = Q(), o = T(
285
+ const n = M(() => import("./MazBtn-kLavxmjX.mjs")), r = t, { dialogState: i, rejectDialog: c, resolveDialog: u } = Q(), o = T(
286
286
  () => i.value.find(({ id: s }) => s === r.identifier)
287
287
  );
288
288
  return (s, l) => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, ref as f, computed as g, onMounted as P, watchEffect as _, openBlock as p, createElementBlock as h, Fragment as A, createCommentVNode as s, mergeProps as C, nextTick as $ } from "vue";
2
- import { i as q } from "./MazTable-DECLgD3Z.mjs";
2
+ import { i as q } from "./MazTable-BrIKi66i.mjs";
3
3
  const H = ["innerHTML"], G = /* @__PURE__ */ b({
4
4
  __name: "MazIcon",
5
5
  props: {
@@ -25,7 +25,7 @@ const X = /* @__PURE__ */ q({
25
25
  contentClass: { default: void 0 }
26
26
  },
27
27
  setup(y) {
28
- const V = L(() => import("./MazSpinner-CB4XzJJF.mjs")), d = L(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: P, to: C } = H(), B = J(), e = y;
28
+ const V = L(() => import("./MazSpinner-Bxelx5NH.mjs")), d = L(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: P, to: C } = H(), B = J(), e = y;
29
29
  K(() => {
30
30
  e.icon && !e.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
31
31
  });
@@ -382,7 +382,7 @@ const X = /* @__PURE__ */ q({
382
382
  ])
383
383
  ]));
384
384
  }
385
- }), ie = /* @__PURE__ */ G(ne, [["__scopeId", "data-v-0b7b19dd"]]);
385
+ }), ie = /* @__PURE__ */ G(ne, [["__scopeId", "data-v-372731c9"]]);
386
386
  export {
387
387
  ie as M,
388
388
  G as _
@@ -1,6 +1,6 @@
1
1
  import "../assets/MazPhoneNumberInput.css";
2
- import { computed as f, defineComponent as ke, defineAsyncComponent as O, ref as h, getCurrentInstance as Se, onMounted as Ee, useSlots as Me, openBlock as v, createElementBlock as k, normalizeClass as E, normalizeStyle as ae, createElementVNode as q, createCommentVNode as y, renderSlot as Y, createBlock as D, unref as V, resolveDynamicComponent as Be, withDirectives as De, mergeProps as $e, toHandlers as Ue, vModelDynamic as Re, createTextVNode as Ce, toDisplayString as X, withModifiers as pe, withCtx as fe, createVNode as Z, useCssVars as He, onBeforeMount as Oe, Transition as qe, Fragment as Le, renderList as We, nextTick as x, reactive as Ye, watch as ce } from "vue";
3
- import { isSupportedCountry as je, getCountryCallingCode as Ve, getExampleNumber as Qe, getCountries as Ge, parsePhoneNumberFromString as Je, AsYouType as Xe } from "libphonenumber-js";
2
+ import { computed as f, defineComponent as ke, defineAsyncComponent as H, ref as h, getCurrentInstance as Se, onMounted as Ee, useSlots as Me, openBlock as v, createElementBlock as k, normalizeClass as E, normalizeStyle as ae, createElementVNode as q, createCommentVNode as y, renderSlot as Y, createBlock as D, unref as V, resolveDynamicComponent as Be, withDirectives as De, mergeProps as $e, toHandlers as Ue, vModelDynamic as Oe, createTextVNode as Ce, toDisplayString as X, withModifiers as pe, withCtx as fe, createVNode as Z, useCssVars as Re, onBeforeMount as He, Transition as qe, Fragment as Le, renderList as We, nextTick as x, reactive as Ye, watch as ce } from "vue";
3
+ import { isSupportedCountry as je, getCountryCallingCode as Ve, getExampleNumber as Ge, getCountries as Qe, parsePhoneNumberFromString as Je, AsYouType as Xe } from "libphonenumber-js";
4
4
  function Ne(u) {
5
5
  return !!u;
6
6
  }
@@ -41,7 +41,7 @@ function to(u, s) {
41
41
  function lo(u) {
42
42
  var s;
43
43
  try {
44
- return u ? (s = Qe(u, we)) == null ? void 0 : s.formatNational() : void 0;
44
+ return u ? (s = Ge(u, we)) == null ? void 0 : s.formatNational() : void 0;
45
45
  } catch (a) {
46
46
  console.error(`[maz-ui](MazPhoneNumberInput) ${a}`);
47
47
  }
@@ -53,7 +53,7 @@ function no(u) {
53
53
  return !s && !a ? u.replaceAll(/[^\d.]/g, "") : u;
54
54
  }
55
55
  function ao(u, s) {
56
- const a = [], L = Ge();
56
+ const a = [], L = Qe();
57
57
  u = u ?? Te().browserLocale ?? "en-US";
58
58
  for (const $ of L) {
59
59
  const W = xe(u, $, s);
@@ -195,7 +195,7 @@ const fo = {
195
195
  },
196
196
  emits: ["update:model-value", "focus", "blur", "click", "change"],
197
197
  setup(u, { emit: s }) {
198
- const a = O(() => import("./MazBtn-GCCDnqJA.mjs")), L = O(() => import("./MazIcon-Cxrv3_OK.mjs")), $ = O(() => import("./eye-slash-tjfxO0LK.mjs")), W = O(() => import("./eye-DqO_Jx56.mjs")), U = O(() => import("./check-7UA4j2f2.mjs")), t = u, P = s, A = h(!1), m = h(!1), c = h(), re = Se(), ue = Pe({
198
+ const a = H(() => import("./MazBtn-CvXujRc7.mjs")), L = H(() => import("./MazIcon-Cxrv3_OK.mjs")), $ = H(() => import("./eye-slash-tjfxO0LK.mjs")), W = H(() => import("./eye-DqO_Jx56.mjs")), U = H(() => import("./check-7UA4j2f2.mjs")), t = u, P = s, A = h(!1), m = h(!1), c = h(), re = Se(), ue = Pe({
199
199
  componentName: "MazInput",
200
200
  instance: re,
201
201
  providedId: t.id
@@ -232,11 +232,11 @@ const fo = {
232
232
  }
233
233
  return "--default-border";
234
234
  }
235
- }), N = Me(), R = f(() => {
235
+ }), N = Me(), O = f(() => {
236
236
  const { required: l, placeholder: g } = t;
237
237
  if (g)
238
238
  return l ? `${g} *` : g;
239
- }), H = f(() => M.value !== void 0 && M.value !== ""), T = po(
239
+ }), R = f(() => M.value !== void 0 && M.value !== ""), T = po(
240
240
  (l) => {
241
241
  M.value = l;
242
242
  },
@@ -248,14 +248,14 @@ const fo = {
248
248
  return T(l);
249
249
  P("update:model-value", l);
250
250
  }
251
- }), ee = f(() => (!!t.label || !!t.hint) && (m.value || !!H.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), oe = f(() => !!t.label || !!t.hint);
251
+ }), ee = f(() => (!!t.label || !!t.hint) && (m.value || !!R.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), oe = f(() => !!t.label || !!t.hint);
252
252
  function w() {
253
253
  return !!N["right-icon"] || j.value || !!N["valid-button"] || t.validButton || !!t.rightIcon;
254
254
  }
255
- function Q() {
255
+ function G() {
256
256
  return !!N["left-icon"] || !!t.leftIcon;
257
257
  }
258
- function G(l) {
258
+ function Q(l) {
259
259
  P("focus", l), m.value = !0;
260
260
  }
261
261
  function b(l) {
@@ -294,7 +294,7 @@ const fo = {
294
294
  ]])
295
295
  },
296
296
  [
297
- Q() ? (v(), k("div", fo, [
297
+ G() ? (v(), k("div", fo, [
298
298
  y(`
299
299
  @slot left-icon - The icon to display on the left of the input
300
300
  `),
@@ -319,7 +319,7 @@ const fo = {
319
319
  name: l.name
320
320
  }, l.$attrs, {
321
321
  inputmode: l.inputmode,
322
- placeholder: R.value,
322
+ placeholder: O.value,
323
323
  "aria-label": l.label || l.placeholder,
324
324
  disabled: l.disabled,
325
325
  readonly: l.readonly,
@@ -327,12 +327,12 @@ const fo = {
327
327
  class: "m-input-input"
328
328
  }, Ue({
329
329
  blur: b,
330
- focus: G,
330
+ focus: Q,
331
331
  change: B
332
332
  }, !0), {
333
333
  onClick: g[1] || (g[1] = (z) => l.$emit("click", z))
334
334
  }), null, 16, yo), [
335
- [Re, M.value]
335
+ [Oe, M.value]
336
336
  ]),
337
337
  l.label || l.hint ? (v(), k(
338
338
  "span",
@@ -465,12 +465,12 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
465
465
  },
466
466
  emits: ["close", "open", "blur", "focus", "change", "update:model-value", "selected-option"],
467
467
  setup(u, { emit: s }) {
468
- He((e) => ({
469
- "021d98d9": j.value,
470
- "3f038458": re.value,
471
- c194e680: ue.value
468
+ Re((e) => ({
469
+ "39733c9a": j.value,
470
+ "014b4cd9": re.value,
471
+ 56278181: ue.value
472
472
  }));
473
- const a = O(() => import("./MazCheckbox-BAC8XgFg.mjs")), L = O(() => import("./magnifying-glass-DZGg7953.mjs")), $ = O(() => import("./chevron-down-CzMH-gFW.mjs")), W = O(() => import("./no-symbol-QAqP9IlR.mjs")), U = Se(), t = u, P = s, A = h(!1), m = h(), c = f(
473
+ const a = H(() => import("./MazCheckbox-CEH7cTwM.mjs")), L = H(() => import("./magnifying-glass-DZGg7953.mjs")), $ = H(() => import("./chevron-down-CzMH-gFW.mjs")), W = H(() => import("./no-symbol-QAqP9IlR.mjs")), U = Se(), t = u, P = s, A = h(!1), m = h(), c = f(
474
474
  () => ["black", "transparent", "white"].includes(t.color)
475
475
  ), re = f(
476
476
  () => c.value ? "var(--maz-color-black)" : `var(--maz-color-${t.color}-800)`
@@ -490,7 +490,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
490
490
  [t.optionInputValueKey]: e
491
491
  };
492
492
  }
493
- function R(e) {
493
+ function O(e) {
494
494
  return {
495
495
  ...e,
496
496
  [t.optionValueKey]: e[t.optionValueKey],
@@ -498,46 +498,49 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
498
498
  [t.optionInputValueKey]: e[t.optionInputValueKey]
499
499
  };
500
500
  }
501
- const H = f(() => {
501
+ const R = f(() => {
502
502
  var n;
503
503
  const e = [];
504
504
  if (!((n = t.options) != null && n.length))
505
505
  return [];
506
506
  for (const r of t.options)
507
507
  typeof r == "string" || typeof r == "number" || typeof r == "boolean" ? e.push(N(r)) : "options" in r && Array.isArray(r.options) ? e.push(
508
- { label: r.label },
508
+ { label: r.label, isOptGroup: !0 },
509
509
  ...r.options.map(
510
- (i) => typeof i == "string" || typeof i == "number" || typeof i == "boolean" ? N(i) : R(i)
510
+ (i) => typeof i == "string" || typeof i == "number" || typeof i == "boolean" ? N(i) : O(i)
511
511
  )
512
- ) : e.push(R(r));
512
+ ) : e.push(O(r));
513
513
  return e;
514
514
  }), T = f(
515
515
  () => {
516
516
  var e;
517
- return ((e = H.value) == null ? void 0 : e.filter((n) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(n[t.optionValueKey]) && !w(n[t.optionValueKey]) : !1 : t.modelValue === n[t.optionValueKey] && !w(n[t.optionValueKey]))) ?? [];
517
+ return ((e = R.value) == null ? void 0 : e.filter((n) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(n[t.optionValueKey]) && !w(n[t.optionValueKey]) : !1 : t.modelValue === n[t.optionValueKey] && !w(n[t.optionValueKey]))) ?? [];
518
518
  }
519
519
  );
520
- Oe(() => {
520
+ He(() => {
521
521
  var e;
522
522
  (e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), o();
523
523
  });
524
524
  const _ = h(), M = h(), ee = h(), oe = h(), w = (e) => e == null;
525
- function Q(e) {
525
+ function G(e) {
526
526
  var r;
527
527
  return (((r = T.value) == null ? void 0 : r.some(
528
528
  (i) => i[t.optionValueKey] === e[t.optionValueKey]
529
529
  )) ?? !1) && !w(e[t.optionValueKey]);
530
530
  }
531
- const G = f(() => {
532
- var e, n;
533
- return t.multiple && t.modelValue && Array.isArray(t.modelValue) ? t.modelValue.map(
534
- (r) => {
535
- var i, p;
536
- return (p = (i = H.value) == null ? void 0 : i.find((C) => C[t.optionValueKey] === r)) == null ? void 0 : p[t.optionInputValueKey];
537
- }
538
- ).join(", ") : (n = (e = H.value) == null ? void 0 : e.find(
539
- (r) => t.modelValue && r[t.optionValueKey] === t.modelValue
540
- )) == null ? void 0 : n[t.optionInputValueKey];
531
+ const Q = f(() => {
532
+ var n;
533
+ if (t.multiple && t.modelValue && Array.isArray(t.modelValue))
534
+ return t.modelValue.map(
535
+ (r) => {
536
+ var i, p;
537
+ return (p = (i = R.value) == null ? void 0 : i.find((C) => C[t.optionValueKey] === r)) == null ? void 0 : p[t.optionInputValueKey];
538
+ }
539
+ ).join(", ");
540
+ const e = (n = R.value) == null ? void 0 : n.find(
541
+ (r) => r[t.optionValueKey] === t.modelValue
542
+ );
543
+ return w(t.modelValue) || e == null ? void 0 : e[t.optionInputValueKey];
541
544
  }), b = f(
542
545
  () => t.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
543
546
  ), B = h(""), l = h("");
@@ -549,10 +552,10 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
549
552
  );
550
553
  function I(e) {
551
554
  var n;
552
- return e ? (n = H.value) == null ? void 0 : n.filter((r) => {
555
+ return e ? (n = R.value) == null ? void 0 : n.filter((r) => {
553
556
  const i = r[t.optionLabelKey], p = r[t.optionValueKey], C = r[t.optionInputValueKey];
554
557
  return z(i, e) || z(p, e) || z(C, e);
555
- }) : H.value;
558
+ }) : R.value;
556
559
  }
557
560
  const F = f(() => I(B.value)), te = async (e) => {
558
561
  var n;
@@ -653,7 +656,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
653
656
  required: e.required,
654
657
  "border-active": A.value,
655
658
  color: e.color,
656
- "model-value": G.value,
659
+ "model-value": Q.value,
657
660
  autocomplete: "off",
658
661
  size: e.size,
659
662
  disabled: e.disabled,
@@ -734,7 +737,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
734
737
  @slot Custom optgroup label
735
738
  @binding {String} label - the label of the optgroup
736
739
  `),
737
- r.label && w(r[e.optionValueKey]) ? Y(e.$slots, "optgroup", {
740
+ r.label && r.isOptGroup ? Y(e.$slots, "optgroup", {
738
741
  key: 0,
739
742
  label: r.label
740
743
  }, () => [
@@ -752,7 +755,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
752
755
  class: E(["m-select-list-item maz-custom maz-flex-none", [
753
756
  {
754
757
  "--is-keyboard-selected": m.value === i,
755
- "--is-selected": Q(r),
758
+ "--is-selected": G(r),
756
759
  "--is-none-value": w(r[e.optionValueKey])
757
760
  }
758
761
  ]]),
@@ -762,7 +765,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
762
765
  e.multiple ? (v(), D(V(a), {
763
766
  key: 0,
764
767
  tabindex: "-1",
765
- "model-value": Q(r),
768
+ "model-value": G(r),
766
769
  size: "sm",
767
770
  color: e.color
768
771
  }, null, 8, ["model-value", "color"])) : y("v-if", !0),
@@ -773,7 +776,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
773
776
  `),
774
777
  Y(e.$slots, "default", {
775
778
  option: r,
776
- isSelected: Q(r)
779
+ isSelected: G(r)
777
780
  }, () => [
778
781
  q(
779
782
  "span",
@@ -805,7 +808,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
805
808
  /* CLASS, STYLE, NEED_HYDRATION */
806
809
  ));
807
810
  }
808
- }), So = /* @__PURE__ */ Ae(ko, [["__scopeId", "data-v-48c93d79"]]), $o = ["id"], Po = {
811
+ }), So = /* @__PURE__ */ Ae(ko, [["__scopeId", "data-v-6be8854d"]]), $o = ["id"], Po = {
809
812
  key: 0,
810
813
  class: "maz-text-lg"
811
814
  }, Ao = /* @__PURE__ */ ke({
@@ -864,9 +867,9 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
864
867
  start: 0,
865
868
  end: 0,
866
869
  cursorAtEnd: !0
867
- }), N = h(!1), R = h(!1), H = f(() => U(c.countryLocale, c.customCountriesList)), T = f(() => {
870
+ }), N = h(!1), O = h(!1), R = f(() => U(c.countryLocale, c.customCountriesList)), T = f(() => {
868
871
  var o;
869
- return (o = H.value) == null ? void 0 : o.filter((d) => {
872
+ return (o = R.value) == null ? void 0 : o.filter((d) => {
870
873
  var e;
871
874
  return !((e = c.ignoredCountries) != null && e.includes(d.iso2));
872
875
  });
@@ -893,7 +896,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
893
896
  }), w = f(() => ({
894
897
  ...Ze,
895
898
  ...c.translations
896
- })), Q = f(() => {
899
+ })), G = f(() => {
897
900
  if (c.placeholder)
898
901
  return c.placeholder;
899
902
  const o = w.value.phoneInput.placeholder;
@@ -903,17 +906,17 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
903
906
  const d = t(b.value);
904
907
  return I.value.isValid || !d ? o : `${w.value.phoneInput.example} ${d}`;
905
908
  }
906
- }), G = h(
909
+ }), Q = h(
907
910
  c.countryCode || c.defaultCountryCode
908
911
  );
909
912
  ce(
910
913
  () => c.countryCode || c.defaultCountryCode,
911
914
  (o) => {
912
- G.value = o;
915
+ Q.value = o;
913
916
  }
914
917
  );
915
918
  const b = f({
916
- get: () => G.value,
919
+ get: () => Q.value,
917
920
  set: (o) => {
918
921
  m("country-code", o), m("update:country-code", o), o && (he(o), me(z.value));
919
922
  }
@@ -999,7 +1002,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
999
1002
  }
1000
1003
  function le(o, d = !1) {
1001
1004
  try {
1002
- ro(o) && (G.value = o, d && de());
1005
+ ro(o) && (Q.value = o, d && de());
1003
1006
  } catch (e) {
1004
1007
  console.error(`[maz-ui](MazPhoneNumberInput) ${e}`);
1005
1008
  }
@@ -1089,7 +1092,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
1089
1092
  style: ae({
1090
1093
  width: o.countrySelectorWidth
1091
1094
  }),
1092
- onFocus: d[1] || (d[1] = (p) => R.value = !1)
1095
+ onFocus: d[1] || (d[1] = (p) => O.value = !1)
1093
1096
  }, {
1094
1097
  default: fe(({ option: p, isSelected: C }) => [
1095
1098
  q(
@@ -1151,7 +1154,7 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
1151
1154
  ref_key: "PhoneNumberInput",
1152
1155
  ref: j,
1153
1156
  "model-value": z.value,
1154
- label: Q.value,
1157
+ label: G.value,
1155
1158
  disabled: o.disabled,
1156
1159
  color: o.color,
1157
1160
  error: o.error || (o.noValidationError ? !1 : !!z.value && !((n = I.value) != null && n.isValid))
@@ -1165,10 +1168,10 @@ const zo = ["aria-label"], Co = { class: "m-select-list__no-results" }, Vo = {
1165
1168
  class: ["m-phone-number-input__input maz-flex-1", {
1166
1169
  "--border-radius": !o.noCountrySelector,
1167
1170
  "--error": o.error || !((i = I.value) != null && i.isValid),
1168
- "--focused": R.value
1171
+ "--focused": O.value
1169
1172
  }],
1170
- onFocus: d[2] || (d[2] = (p) => R.value = !0),
1171
- onBlur: d[3] || (d[3] = (p) => R.value = !1),
1173
+ onFocus: d[2] || (d[2] = (p) => O.value = !0),
1174
+ onBlur: d[3] || (d[3] = (p) => O.value = !1),
1172
1175
  "onUpdate:modelValue": d[4] || (d[4] = (p) => me(p))
1173
1176
  }), null, 16, ["id", "model-value", "label", "disabled", "color", "error", "size", "success", "class"])
1174
1177
  ], 14, $o);