@rypen-dev/shared-components 8.1.9 → 8.1.10

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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { computed as E, createElementBlock as d, openBlock as u, createTextVNode as P, createCommentVNode as C, toDisplayString as b, Fragment as N, createElementVNode as e, unref as X, normalizeClass as M, ref as I, withKeys as _, onBeforeMount as he, onMounted as G, watch as O, withDirectives as z, vModelText as oe, renderList as R, renderSlot as q, useSlots as ve, createBlock as ee, Transition as Ae, withCtx as j, createVNode as F, reactive as U, normalizeStyle as K, resolveDirective as te, nextTick as pe } from "vue";
1
+ import { computed as E, createElementBlock as d, openBlock as u, createTextVNode as P, createCommentVNode as C, toDisplayString as b, Fragment as N, createElementVNode as e, unref as X, normalizeClass as k, ref as I, withKeys as _, onBeforeMount as he, onMounted as G, watch as O, withDirectives as z, vModelText as oe, renderList as R, renderSlot as q, useSlots as ve, createBlock as ee, Transition as Ae, withCtx as j, createVNode as F, reactive as U, normalizeStyle as K, resolveDirective as te, nextTick as pe } from "vue";
2
2
  import le from "moment";
3
3
  var Z = { exports: {} }, ne;
4
4
  function ye() {
@@ -73,9 +73,9 @@ function ye() {
73
73
  return arguments.length > 1 && arguments[1] !== void 0 && arguments[1] ? /^[ABCEGHJKLMNPRSTVXYabceghjklmnprstvxy]{1}\d{1}[A-Za-z]{1}\d{1}[A-Za-z]{1}\d{1}$/.test(i) : /^[0-9]{5}$/.test(i);
74
74
  }, y = function(i) {
75
75
  return /^[0-9]{10}$/.test(i);
76
- }, k = /^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)$/, h = /^[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/;
76
+ }, M = /^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)$/, h = /^[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/;
77
77
  s.empty = o, s.validEmail = g, s.validZip = A, s.validPhone = y, s.validUrl = function(i) {
78
- return arguments.length > 1 && arguments[1] !== void 0 && !arguments[1] ? h.test(i) : k.test(i);
78
+ return arguments.length > 1 && arguments[1] !== void 0 && !arguments[1] ? h.test(i) : M.test(i);
79
79
  }, s.validCardNumber = function(i) {
80
80
  return function(p) {
81
81
  if (!/^[\d\-\s]+$/.test(p)) return !1;
@@ -106,11 +106,11 @@ function ye() {
106
106
  return new Promise(function(f, g) {
107
107
  var A = document.scrollingElement;
108
108
  typeof a == "string" && (a = document.querySelector(a) || g()), typeof a != "number" && (a = a.getBoundingClientRect().top + A.scrollTop), a += o;
109
- var y = A.scrollTop, k = a - y, h = 0;
109
+ var y = A.scrollTop, M = a - y, h = 0;
110
110
  (function i() {
111
111
  var p = function(x, S, w, m) {
112
112
  return (x /= m / 2) < 1 ? w / 2 * x * x + S : -w / 2 * (--x * (x - 2) - 1) + S;
113
- }(h += 20, y, k, r);
113
+ }(h += 20, y, M, r);
114
114
  A.scrollTop = p, h < r ? setTimeout(i, 20) : f();
115
115
  })();
116
116
  });
@@ -176,8 +176,8 @@ function ye() {
176
176
  var f = !(arguments.length > 2 && arguments[2] !== void 0) || arguments[2], g = a(r, o);
177
177
  if (g) {
178
178
  var A = g.split("_"), y = "";
179
- return f ? A.forEach(function(k, h) {
180
- y = y + (h === 0 ? "" : " ") + k.charAt(0).toUpperCase() + k.slice(1).toLowerCase();
179
+ return f ? A.forEach(function(M, h) {
180
+ y = y + (h === 0 ? "" : " ") + M.charAt(0).toUpperCase() + M.slice(1).toLowerCase();
181
181
  }) : y = A.join(" "), y;
182
182
  }
183
183
  return "";
@@ -289,7 +289,7 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
289
289
  setup(t) {
290
290
  return (c, n) => (u(), d("svg", Be, [
291
291
  e("g", {
292
- class: M(["error-icon", { on: t.on }])
292
+ class: k(["error-icon", { on: t.on }])
293
293
  }, n[0] || (n[0] = [
294
294
  e("path", {
295
295
  class: "path outline",
@@ -350,7 +350,7 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
350
350
  return c({
351
351
  triggerBlur: g
352
352
  }), (A, y) => (u(), d("div", {
353
- class: M(["input-container date", t.cssClass])
353
+ class: k(["input-container date", t.cssClass])
354
354
  }, [
355
355
  e("input", {
356
356
  type: "date",
@@ -393,7 +393,7 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
393
393
  s.value = "", l("change", "");
394
394
  }
395
395
  return (g, A) => (u(), d("div", {
396
- class: M(["input-container", t.cssClass])
396
+ class: k(["input-container", t.cssClass])
397
397
  }, [
398
398
  e("input", {
399
399
  type: "text",
@@ -462,7 +462,7 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
462
462
  he(() => {
463
463
  l.image && l.image.ImageUrl && (o.value = l.imageBasePath + l.image.ImageUrl), r.value = new FileReader(), r.value.addEventListener("load", w);
464
464
  }), G(() => {
465
- a.value = k(), a.value && g.value && (["drag", "drop"].forEach((m) => {
465
+ a.value = M(), a.value && g.value && (["drag", "drop"].forEach((m) => {
466
466
  g.value.addEventListener(m, (v) => {
467
467
  v.preventDefault(), v.stopPropagation();
468
468
  });
@@ -476,7 +476,7 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
476
476
  });
477
477
  }), g.value.addEventListener("drop", h));
478
478
  });
479
- function k() {
479
+ function M() {
480
480
  const m = document.createElement("div");
481
481
  return ("draggable" in m || "ondragstart" in m && "ondrop" in m) && "FormData" in window && "FileReader" in window;
482
482
  }
@@ -516,10 +516,10 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
516
516
  ]))) : C("", !0)
517
517
  ])) : C("", !0),
518
518
  e("div", {
519
- class: M(["file-upload-drop", y.value])
519
+ class: k(["file-upload-drop", y.value])
520
520
  }, [
521
521
  e("div", {
522
- class: M(["drop-target", { over: f.value }]),
522
+ class: k(["drop-target", { over: f.value }]),
523
523
  ref_key: "droptargetref",
524
524
  ref: g
525
525
  }, [
@@ -592,7 +592,7 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
592
592
  n.file && (a.value = n.assetBasePath + n.file), s.value = new FileReader(), s.value.addEventListener("load", g);
593
593
  });
594
594
  function o(y) {
595
- const { value: k, files: h } = y.target;
595
+ const { value: M, files: h } = y.target;
596
596
  h[0] && (f(h[0]), l("change", h[0]));
597
597
  }
598
598
  function f(y) {
@@ -602,15 +602,15 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
602
602
  a.value = s.value.result;
603
603
  }
604
604
  const A = E(() => (n.disabled || n.updating ? "disabled" : "") + " " + (n.cssClass || ""));
605
- return (y, k) => (u(), d("span", Re, [
605
+ return (y, M) => (u(), d("span", Re, [
606
606
  t.showFilePath && t.file ? (u(), d("span", Te, [
607
- k[0] || (k[0] = e("i", { class: "fa-regular fa-circle-check" }, null, -1)),
607
+ M[0] || (M[0] = e("i", { class: "fa-regular fa-circle-check" }, null, -1)),
608
608
  P(" " + b(t.file.name), 1)
609
609
  ])) : C("", !0),
610
610
  e("span", Ve, [
611
611
  e("label", {
612
612
  for: t.id,
613
- class: M(["button", A.value])
613
+ class: k(["button", A.value])
614
614
  }, b(t.text), 11, Fe),
615
615
  e("input", {
616
616
  type: "file",
@@ -692,9 +692,9 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
692
692
  emits: ["search", "select", "enter"],
693
693
  setup(t, { expose: c, emit: n }) {
694
694
  const l = t, s = n, a = I(""), r = I(""), o = I(!1), f = I(null), g = I(null), A = E(() => r.value && r.value.length >= l.minimumLength && o.value && (!l.loading || l.suggestions.length > 0)), y = W.debounce((m) => {
695
- r.value = m, k();
695
+ r.value = m, M();
696
696
  });
697
- function k() {
697
+ function M() {
698
698
  const m = l.useExternalValue ? l.externalValue : a.value;
699
699
  (m.length === 0 || m.length >= l.minimumLength) && s("search", m);
700
700
  }
@@ -726,10 +726,10 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
726
726
  }, { immediate: !0 }), c({
727
727
  focusInput: p
728
728
  }), (m, v) => (u(), d("div", {
729
- class: M(["lookup-container", { small: t.small }])
729
+ class: k(["lookup-container", { small: t.small }])
730
730
  }, [
731
731
  e("div", {
732
- class: M(["input-container", { loading: t.loading, suggestions: A.value, small: t.small, error: t.invalid }])
732
+ class: k(["input-container", { loading: t.loading, suggestions: A.value, small: t.small, error: t.invalid }])
733
733
  }, [
734
734
  t.useExternalValue ? (u(), d("input", {
735
735
  key: 0,
@@ -782,7 +782,7 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
782
782
  },
783
783
  setup(t) {
784
784
  return (c, n) => (u(), d("div", {
785
- class: M(["generic-loader", t.cssClass])
785
+ class: k(["generic-loader", t.cssClass])
786
786
  }, n[0] || (n[0] = [
787
787
  e("span", null, null, -1)
788
788
  ]), 2));
@@ -888,11 +888,11 @@ const tt = /* @__PURE__ */ Q(Xe, [["render", et]]), at = { class: "modal-wrapper
888
888
  return (o, f) => (u(), ee(Ae, { name: "modal" }, {
889
889
  default: j(() => [
890
890
  e("div", {
891
- class: M(["modal-mask hide-for-print", t.maskCssClass]),
891
+ class: k(["modal-mask hide-for-print", t.maskCssClass]),
892
892
  onClick: r
893
893
  }, [
894
894
  e("div", {
895
- class: M(["modal-container", t.cssClass])
895
+ class: k(["modal-container", t.cssClass])
896
896
  }, [
897
897
  t.closeable ? (u(), d("a", {
898
898
  key: 0,
@@ -913,7 +913,7 @@ const tt = /* @__PURE__ */ Q(Xe, [["render", et]]), at = { class: "modal-wrapper
913
913
  ])) : C("", !0),
914
914
  e("div", at, [
915
915
  e("div", {
916
- class: M(["modal-grid", { "with-footer": a.value }])
916
+ class: k(["modal-grid", { "with-footer": a.value }])
917
917
  }, [
918
918
  e("div", nt, [
919
919
  e("div", rt, [
@@ -974,7 +974,8 @@ const tt = /* @__PURE__ */ Q(Xe, [["render", et]]), at = { class: "modal-wrapper
974
974
  emitOnInput: {
975
975
  type: Boolean,
976
976
  default: !1
977
- }
977
+ },
978
+ cssClass: String
978
979
  },
979
980
  emits: ["change"],
980
981
  setup(t, { emit: c }) {
@@ -992,7 +993,7 @@ const tt = /* @__PURE__ */ Q(Xe, [["render", et]]), at = { class: "modal-wrapper
992
993
  const v = m.clipboardData || window.clipboardData;
993
994
  v && !n.test(v.getData("text")) && m.preventDefault();
994
995
  }
995
- function k(m) {
996
+ function M(m) {
996
997
  const { key: v } = m;
997
998
  v === "ArrowUp" ? x() : v === "ArrowDown" ? S() : v === "Enter" ? a.value.blur() : l.enforceNumbersOnly && v.length === 1 && !m.ctrlKey && !m.shiftKey && isNaN(v) && m.preventDefault();
998
999
  }
@@ -1028,12 +1029,13 @@ const tt = /* @__PURE__ */ Q(Xe, [["render", et]]), at = { class: "modal-wrapper
1028
1029
  inputmode: "numeric",
1029
1030
  ref_key: "inputref",
1030
1031
  ref: a,
1031
- onKeydown: k,
1032
+ onKeydown: M,
1032
1033
  onInput: f,
1033
1034
  onBlur: g,
1034
1035
  onFocus: A,
1035
- onPaste: y
1036
- }, null, 40, it));
1036
+ onPaste: y,
1037
+ class: k(t.cssClass)
1038
+ }, null, 42, it));
1037
1039
  }
1038
1040
  }, dt = { class: "pagination" }, gt = { key: 1 }, mt = { key: 0 }, ft = ["onClick"], ht = {
1039
1041
  key: 0,
@@ -1081,7 +1083,7 @@ const tt = /* @__PURE__ */ Q(Xe, [["render", et]]), at = { class: "modal-wrapper
1081
1083
  function y(h) {
1082
1084
  h !== n.pageIndex && (l("navigate", h), l("top"));
1083
1085
  }
1084
- function k() {
1086
+ function M() {
1085
1087
  if (s.splice(0), a.value = !1, r.splice(0), f.value = !1, o.splice(0), n.totalPages > 0)
1086
1088
  if (n.totalPages > n.maxVisiblePages) {
1087
1089
  let h = 0;
@@ -1095,11 +1097,11 @@ const tt = /* @__PURE__ */ Q(Xe, [["render", et]]), at = { class: "modal-wrapper
1095
1097
  r.push(h);
1096
1098
  }
1097
1099
  return O(() => n.loading, (h, i) => {
1098
- !h && i && k();
1100
+ !h && i && M();
1099
1101
  }), (h, i) => (u(), d("nav", null, [
1100
1102
  e("ul", dt, [
1101
1103
  e("li", {
1102
- class: M(["pagination-previous", { disabled: !t.hasPreviousPage }])
1104
+ class: k(["pagination-previous", { disabled: !t.hasPreviousPage }])
1103
1105
  }, [
1104
1106
  t.hasPreviousPage ? (u(), d("a", {
1105
1107
  key: 0,
@@ -1112,7 +1114,7 @@ const tt = /* @__PURE__ */ Q(Xe, [["render", et]]), at = { class: "modal-wrapper
1112
1114
  ], 2),
1113
1115
  t.totalPages > 0 ? (u(), d(N, { key: 0 }, [
1114
1116
  (u(!0), d(N, null, R(s, (p) => (u(), d("li", {
1115
- class: M({ current: p === t.pageIndex })
1117
+ class: k({ current: p === t.pageIndex })
1116
1118
  }, [
1117
1119
  p === t.pageIndex ? (u(), d("span", mt, b(p + 1), 1)) : (u(), d("a", {
1118
1120
  key: 1,
@@ -1121,7 +1123,7 @@ const tt = /* @__PURE__ */ Q(Xe, [["render", et]]), at = { class: "modal-wrapper
1121
1123
  ], 2))), 256)),
1122
1124
  a.value ? (u(), d("li", ht)) : C("", !0),
1123
1125
  (u(!0), d(N, null, R(r, (p) => (u(), d("li", {
1124
- class: M({ current: p === t.pageIndex })
1126
+ class: k({ current: p === t.pageIndex })
1125
1127
  }, [
1126
1128
  p === t.pageIndex ? (u(), d("span", vt, b(p + 1), 1)) : (u(), d("a", {
1127
1129
  key: 1,
@@ -1130,7 +1132,7 @@ const tt = /* @__PURE__ */ Q(Xe, [["render", et]]), at = { class: "modal-wrapper
1130
1132
  ], 2))), 256)),
1131
1133
  f.value ? (u(), d("li", pt)) : C("", !0),
1132
1134
  (u(!0), d(N, null, R(o, (p) => (u(), d("li", {
1133
- class: M({ current: p === t.pageIndex })
1135
+ class: k({ current: p === t.pageIndex })
1134
1136
  }, [
1135
1137
  p === t.pageIndex ? (u(), d("span", yt, b(p + 1), 1)) : (u(), d("a", {
1136
1138
  key: 1,
@@ -1141,7 +1143,7 @@ const tt = /* @__PURE__ */ Q(Xe, [["render", et]]), at = { class: "modal-wrapper
1141
1143
  e("span", { class: "disabled" }, "1", -1)
1142
1144
  ]))),
1143
1145
  e("li", {
1144
- class: M(["pagination-next", { disabled: !t.hasNextPage }])
1146
+ class: k(["pagination-next", { disabled: !t.hasNextPage }])
1145
1147
  }, [
1146
1148
  t.hasNextPage ? (u(), d("a", {
1147
1149
  key: 0,
@@ -1224,12 +1226,12 @@ const re = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = { class: "image-selecto
1224
1226
  return n.selectedImage && (n.variant && n.variant.ImageUrl === D || n.product && n.product.PrimaryImage && n.product.PrimaryImage.ImageUrl === D);
1225
1227
  });
1226
1228
  function A() {
1227
- k(-1);
1229
+ M(-1);
1228
1230
  }
1229
1231
  function y() {
1230
- k(1);
1232
+ M(1);
1231
1233
  }
1232
- function k(D) {
1234
+ function M(D) {
1233
1235
  let T = s.value + D;
1234
1236
  T < 0 ? T = 0 : T > x.value && (T = x.value), s.value = T;
1235
1237
  }
@@ -1242,7 +1244,7 @@ const re = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = { class: "image-selecto
1242
1244
  e("div", kt, [
1243
1245
  e("div", Mt, [
1244
1246
  e("div", {
1245
- class: M(["image-container", { empty: t.showEmpty && t.selectedImage === "" }]),
1247
+ class: k(["image-container", { empty: t.showEmpty && t.selectedImage === "" }]),
1246
1248
  style: K(m.value)
1247
1249
  }, [
1248
1250
  ge.value ? (u(), d("small", Et, "*Image may not be representative of actual product with options currently selected")) : C("", !0)
@@ -1269,10 +1271,10 @@ const re = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = { class: "image-selecto
1269
1271
  })
1270
1272
  ], 8, Pt)) : C("", !0),
1271
1273
  e("div", {
1272
- class: M(["image-nav-list", B.value])
1274
+ class: k(["image-nav-list", B.value])
1273
1275
  }, [
1274
1276
  e("a", {
1275
- class: M(["variant-image", { current: g.value }]),
1277
+ class: k(["variant-image", { current: g.value }]),
1276
1278
  onClick: f,
1277
1279
  style: K(H.value)
1278
1280
  }, [
@@ -1283,7 +1285,7 @@ const re = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = { class: "image-selecto
1283
1285
  ], 6),
1284
1286
  t.product ? (u(), d(N, { key: 0 }, [
1285
1287
  (u(!0), d(N, null, R(t.product.AdditionalImages, (V, me) => (u(), d("a", {
1286
- class: M({ current: r(V) }),
1288
+ class: k({ current: r(V) }),
1287
1289
  onClick: (fe) => o(V),
1288
1290
  style: K(H.value)
1289
1291
  }, [
@@ -1293,7 +1295,7 @@ const re = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = { class: "image-selecto
1293
1295
  }, null, 8, Rt)
1294
1296
  ], 14, Lt))), 256)),
1295
1297
  (u(!0), d(N, null, R(t.product.LifeStyleImages, (V, me) => (u(), d("a", {
1296
- class: M({ current: r(V) }),
1298
+ class: k({ current: r(V) }),
1297
1299
  onClick: (fe) => o(V),
1298
1300
  style: K(H.value)
1299
1301
  }, [
@@ -1381,7 +1383,7 @@ const re = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = { class: "image-selecto
1381
1383
  w = l.options.slice();
1382
1384
  f.splice(0), f.push(...w);
1383
1385
  }
1384
- function k(w) {
1386
+ function M(w) {
1385
1387
  w.value = w, s("update", w), g.value && g.value.blur(), o.value = !1;
1386
1388
  }
1387
1389
  function h() {
@@ -1416,7 +1418,7 @@ const re = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = { class: "image-selecto
1416
1418
  tabindex: "0"
1417
1419
  }, [
1418
1420
  e("div", {
1419
- class: M(["input-container select false-select", S.value])
1421
+ class: k(["input-container select false-select", S.value])
1420
1422
  }, [
1421
1423
  e("span", Qt, b(a.value ? a.value.Name : "Select"), 1),
1422
1424
  e("div", Yt, [
@@ -1447,8 +1449,8 @@ const re = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = { class: "image-selecto
1447
1449
  (u(!0), d(N, null, R(f, (v) => (u(), d("a", {
1448
1450
  key: v.Id,
1449
1451
  role: "option",
1450
- class: M(["option", { active: a.value && a.value.Id === v.Id }]),
1451
- onClick: (B) => k(v)
1452
+ class: k(["option", { active: a.value && a.value.Id === v.Id }]),
1453
+ onClick: (B) => M(v)
1452
1454
  }, b(v.Name), 11, Jt))), 128))
1453
1455
  ], 8, Gt)
1454
1456
  ])
@@ -1513,12 +1515,12 @@ const re = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = { class: "image-selecto
1513
1515
  }
1514
1516
  const g = I(0);
1515
1517
  function A() {
1516
- k(h.value);
1518
+ M(h.value);
1517
1519
  }
1518
1520
  function y() {
1519
- k(i.value);
1521
+ M(i.value);
1520
1522
  }
1521
- function k(x) {
1523
+ function M(x) {
1522
1524
  o(), g.value = x, l("change", x), a();
1523
1525
  }
1524
1526
  const h = E(() => g.value === 0 ? n.slides.length - 1 : g.value - 1), i = E(() => g.value === n.slides.length - 1 ? 0 : g.value + 1);
@@ -1529,14 +1531,14 @@ const re = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = { class: "image-selecto
1529
1531
  const w = te("touch"), m = te("touch-options");
1530
1532
  return t.slides.length > 1 ? (u(), d("div", {
1531
1533
  key: 0,
1532
- class: M(["slideshow", { small: t.small }]),
1534
+ class: k(["slideshow", { small: t.small }]),
1533
1535
  onMouseover: o,
1534
1536
  onMouseout: a
1535
1537
  }, [
1536
1538
  e("div", qt, [
1537
1539
  z((u(), d("div", null, [
1538
1540
  (u(!0), d(N, null, R(t.slides, (v, B) => (u(), d("div", {
1539
- class: M(["slide", { current: B == g.value, prev: B === h.value, next: B === i.value }]),
1541
+ class: k(["slide", { current: B == g.value, prev: B === h.value, next: B === i.value }]),
1540
1542
  style: K(p(v))
1541
1543
  }, null, 6))), 256))
1542
1544
  ])), [
@@ -1568,8 +1570,8 @@ const re = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = { class: "image-selecto
1568
1570
  e("nav", jt, [
1569
1571
  (u(!0), d(N, null, R(t.slides, (v, B) => (u(), d("a", {
1570
1572
  "aria-label": B,
1571
- class: M({ current: B == g.value }),
1572
- onClick: (H) => k(B)
1573
+ class: k({ current: B == g.value }),
1574
+ onClick: (H) => M(B)
1573
1575
  }, null, 10, Wt))), 256))
1574
1576
  ])
1575
1577
  ], 34)) : (u(), d("div", zt, [
@@ -1612,7 +1614,7 @@ const re = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = { class: "image-selecto
1612
1614
  return O(() => n.value, (r) => {
1613
1615
  r !== s.value && (s.value = r);
1614
1616
  }, { immediate: !0 }), (r, o) => (u(), d("div", {
1615
- class: M(["switch", t.cssClass])
1617
+ class: k(["switch", t.cssClass])
1616
1618
  }, [
1617
1619
  e("input", {
1618
1620
  id: t.id,
@@ -1649,7 +1651,7 @@ const re = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = { class: "image-selecto
1649
1651
  setup(t) {
1650
1652
  return (c, n) => (u(), d("svg", Xt, [
1651
1653
  e("g", {
1652
- class: M(["success-icon", { on: t.on }])
1654
+ class: k(["success-icon", { on: t.on }])
1653
1655
  }, n[0] || (n[0] = [
1654
1656
  e("path", {
1655
1657
  class: "path circle",
@@ -1705,9 +1707,9 @@ const re = /* @__PURE__ */ Q(Ct, [["render", St]]), Bt = { class: "image-selecto
1705
1707
  f(h, y);
1706
1708
  }
1707
1709
  function y() {
1708
- s("update", k.value, l.name);
1710
+ s("update", M.value, l.name);
1709
1711
  }
1710
- const k = E(() => {
1712
+ const M = E(() => {
1711
1713
  let h = a.value;
1712
1714
  return r.value === n.WEEKS ? h = h * 7 : r.value === n.YEARS && (h = h * 365), h;
1713
1715
  });