@rypen-dev/shared-components 8.1.4 → 8.1.6

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 b, toDisplayString as S, Fragment as N, createElementVNode as e, unref as X, normalizeClass as k, ref as C, withKeys as _, onBeforeMount as he, onMounted as G, watch as Y, 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 M, ref as I, withKeys as _, onBeforeMount as he, onMounted as G, watch as Y, 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() {
@@ -13,8 +13,8 @@ function ye() {
13
13
  var o = s[r] = { i: r, l: !1, exports: {} };
14
14
  return l[r].call(o.exports, o, o.exports, a), o.l = !0, o.exports;
15
15
  }
16
- return a.m = l, a.c = s, a.d = function(r, o, m) {
17
- a.o(r, o) || Object.defineProperty(r, o, { configurable: !1, enumerable: !0, get: m });
16
+ return a.m = l, a.c = s, a.d = function(r, o, f) {
17
+ a.o(r, o) || Object.defineProperty(r, o, { configurable: !1, enumerable: !0, get: f });
18
18
  }, a.r = function(r) {
19
19
  Object.defineProperty(r, "__esModule", { value: !0 });
20
20
  }, a.n = function(r) {
@@ -29,17 +29,17 @@ function ye() {
29
29
  }, a.p = "", a(a.s = 11);
30
30
  }([function(l, s) {
31
31
  l.exports = function(a, r) {
32
- var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "text/csv;charset=utf-8;", m = new Blob([a], { type: o }), g = URL.createObjectURL(m), h = document.createElement("a");
33
- h.href = g, h.setAttribute("download", r), h.click();
32
+ var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "text/csv;charset=utf-8;", f = new Blob([a], { type: o }), g = URL.createObjectURL(f), A = document.createElement("a");
33
+ A.href = g, A.setAttribute("download", r), A.click();
34
34
  };
35
35
  }, function(l, s) {
36
36
  l.exports = function(a) {
37
- var r, o = this, m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500;
37
+ var r, o = this, f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500;
38
38
  return function() {
39
- for (var g = arguments.length, h = new Array(g), x = 0; x < g; x++) h[x] = arguments[x];
39
+ for (var g = arguments.length, A = new Array(g), y = 0; y < g; y++) A[y] = arguments[y];
40
40
  clearTimeout(r), r = setTimeout(function() {
41
- a.apply(o, h);
42
- }, m);
41
+ a.apply(o, A);
42
+ }, f);
43
43
  };
44
44
  };
45
45
  }, function(l, s) {
@@ -47,15 +47,15 @@ function ye() {
47
47
  if (a) {
48
48
  var r = "", o = null;
49
49
  if (a.indexOf("x") > -1) {
50
- var m = a.split("x");
51
- o = m[1], a = m[0];
50
+ var f = a.split("x");
51
+ o = f[1], a = f[0];
52
52
  }
53
53
  var g = a.replace(/[^0-9]/g, "");
54
54
  if (g.length === 7) r = "".concat(g.substring(0, 3), "-").concat(g.substring(3, 7));
55
55
  else if (g.length === 10) r = "(".concat(g.substring(0, 3), ") ").concat(g.substring(3, 6), "-").concat(g.substring(6, 10));
56
56
  else if (g.length > 10) {
57
- var h = g.length - 10;
58
- r = "+".concat(g.substring(0, h), " (").concat(g.substring(h, 3 + h), ") ").concat(g.substring(3 + h, 6 + h), "-").concat(g.substring(6 + h, 10 + h));
57
+ var A = g.length - 10;
58
+ r = "+".concat(g.substring(0, A), " (").concat(g.substring(A, 3 + A), ") ").concat(g.substring(3 + A, 6 + A), "-").concat(g.substring(6 + A, 10 + A));
59
59
  }
60
60
  return r + (o ? ", ext. " + o : "");
61
61
  }
@@ -65,61 +65,61 @@ function ye() {
65
65
  l.exports = n;
66
66
  }, function(l, s, a) {
67
67
  var r = a(3), o = function(i) {
68
- var A = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
69
- return typeof i == "string" ? !i || i.length === 0 || i.trim().length === 0 : i === 0 && !A || i !== 0 && (!i || i.length === 0);
70
- }, m = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,24}))$/, g = function(i) {
71
- return m.test(i);
72
- }, h = function(i) {
68
+ var p = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
69
+ return typeof i == "string" ? !i || i.length === 0 || i.trim().length === 0 : i === 0 && !p || i !== 0 && (!i || i.length === 0);
70
+ }, f = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,24}))$/, g = function(i) {
71
+ return f.test(i);
72
+ }, A = function(i) {
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
- }, x = function(i) {
74
+ }, y = function(i) {
75
75
  return /^[0-9]{10}$/.test(i);
76
- }, B = /^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)$/, f = /^[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/;
77
- s.empty = o, s.validEmail = g, s.validZip = h, s.validPhone = x, s.validUrl = function(i) {
78
- return arguments.length > 1 && arguments[1] !== void 0 && !arguments[1] ? f.test(i) : B.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()@:%_\+.~#?&//=]*)$/;
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);
79
79
  }, s.validCardNumber = function(i) {
80
- return function(A) {
81
- if (!/^[\d\-\s]+$/.test(A)) return !1;
82
- for (var I = 0, y = 0, p = !1, v = A.replace(/\D/g, ""), w = v.length - 1; w >= 0; w--) {
83
- var M = v.charAt(w);
84
- y = parseInt(M, 10), p && (y *= 2) > 9 && (y -= 9), I += y, p = !p;
80
+ return function(p) {
81
+ if (!/^[\d\-\s]+$/.test(p)) return !1;
82
+ for (var x = 0, S = 0, w = !1, m = p.replace(/\D/g, ""), v = m.length - 1; v >= 0; v--) {
83
+ var B = m.charAt(v);
84
+ S = parseInt(B, 10), w && (S *= 2) > 9 && (S -= 9), x += S, w = !w;
85
85
  }
86
- return I % 10 == 0;
86
+ return x % 10 == 0;
87
87
  }(i);
88
88
  }, s.validCardCode = function(i) {
89
89
  return /^[0-9]{3,4}$/.test(i);
90
90
  }, s.validExpirationDate = function(i) {
91
91
  if (!/^[0-9]{4}$/.test(i)) return !1;
92
- var A = i.substring(0, 2), I = i.substring(2), y = r((I = "20" + I) + "-" + A + "-01");
93
- return !(!y.isValid() || y.isBefore(r(), "month"));
92
+ var p = i.substring(0, 2), x = i.substring(2), S = r((x = "20" + x) + "-" + p + "-01");
93
+ return !(!S.isValid() || S.isBefore(r(), "month"));
94
94
  }, s.emptyAddress = function(i) {
95
- var A = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], I = !0;
96
- return arguments.length > 2 && arguments[2] !== void 0 && !arguments[2] ? o(i.PostalCode) || o(i.Street) || (I = !1) : (o(i.PostalCode) && o(i.Street) && o(i.City) && o(i.State) || (I = !1), A && (o(i.CareOf) && o(i.ContactEmail) && o(i.PhoneNumber) || (I = !1))), I;
95
+ var p = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], x = !0;
96
+ return arguments.length > 2 && arguments[2] !== void 0 && !arguments[2] ? o(i.PostalCode) || o(i.Street) || (x = !1) : (o(i.PostalCode) && o(i.Street) && o(i.City) && o(i.State) || (x = !1), p && (o(i.CareOf) && o(i.ContactEmail) && o(i.PhoneNumber) || (x = !1))), x;
97
97
  }, s.validAddress = function(i) {
98
- var A = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], I = !(arguments.length > 2 && arguments[2] !== void 0) || arguments[2], y = !0;
99
- return o(i.PostalCode) ? y = !1 : h(i.PostalCode, function(p) {
100
- return p.Country === "CA";
101
- }(i)) || (y = !1), A && I && (o(i.CareOf) || !o(i.ContactEmail) && !g(i.ContactEmail) || o(i.PhoneNumber) || !x(i.PhoneNumber)) && (y = !1), (o(i.FirstName) && o(i.LastName) || o(i.Street) || o(i.Country) || o(i.City) || o(i.State)) && (y = !1), y;
98
+ var p = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], x = !(arguments.length > 2 && arguments[2] !== void 0) || arguments[2], S = !0;
99
+ return o(i.PostalCode) ? S = !1 : A(i.PostalCode, function(w) {
100
+ return w.Country === "CA";
101
+ }(i)) || (S = !1), p && x && (o(i.CareOf) || !o(i.ContactEmail) && !g(i.ContactEmail) || o(i.PhoneNumber) || !y(i.PhoneNumber)) && (S = !1), (o(i.FirstName) && o(i.LastName) || o(i.Street) || o(i.Country) || o(i.City) || o(i.State)) && (S = !1), S;
102
102
  };
103
103
  }, function(l, s) {
104
104
  l.exports = function(a) {
105
105
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
106
- return new Promise(function(m, g) {
107
- var h = document.scrollingElement;
108
- typeof a == "string" && (a = document.querySelector(a) || g()), typeof a != "number" && (a = a.getBoundingClientRect().top + h.scrollTop), a += o;
109
- var x = h.scrollTop, B = a - x, f = 0;
106
+ return new Promise(function(f, g) {
107
+ var A = document.scrollingElement;
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;
110
110
  (function i() {
111
- var A = function(I, y, p, v) {
112
- return (I /= v / 2) < 1 ? p / 2 * I * I + y : -p / 2 * (--I * (I - 2) - 1) + y;
113
- }(f += 20, x, B, r);
114
- h.scrollTop = A, f < r ? setTimeout(i, 20) : m();
111
+ var p = function(x, S, w, m) {
112
+ return (x /= m / 2) < 1 ? w / 2 * x * x + S : -w / 2 * (--x * (x - 2) - 1) + S;
113
+ }(h += 20, y, k, r);
114
+ A.scrollTop = p, h < r ? setTimeout(i, 20) : f();
115
115
  })();
116
116
  });
117
117
  };
118
118
  }, function(l, s) {
119
119
  l.exports = function(a) {
120
120
  for (var r = window.location.search.substring(1).split("&"), o = 0; o < r.length; o++) {
121
- var m = r[o].split("=");
122
- if (m[0].toLowerCase() === a.toLowerCase()) return m[1];
121
+ var f = r[o].split("=");
122
+ if (f[0].toLowerCase() === a.toLowerCase()) return f[1];
123
123
  }
124
124
  return !1;
125
125
  };
@@ -134,16 +134,16 @@ function ye() {
134
134
  return r && r === "AmericanExpress" ? "AMEX" : r;
135
135
  }, s.formatMaskedCreditCard = function(r) {
136
136
  if (r) {
137
- var o = r.replace(/X/g, "*"), m = o.lastIndexOf("*");
138
- return o.slice(0, m + 1) + " " + o.slice(m + 1);
137
+ var o = r.replace(/X/g, "*"), f = o.lastIndexOf("*");
138
+ return o.slice(0, f + 1) + " " + o.slice(f + 1);
139
139
  }
140
140
  return r;
141
141
  }, s.cardType = function(r) {
142
- for (var o = [{ reg: /^4[0-9]{5}/gi, type: a.VISA }, { reg: /^5[1-5][0-9]{4}/gi, type: a.MASTER_CARD }, { reg: /^3[47][0-9]{3}/gi, type: a.AMERICAN_EXPRESS }, { reg: /^6(?:011|5[0-9]{2})/gi, type: a.DISCOVER }, { reg: /^(5[06-8]\d{4}|6\d{5})/gi, type: a.MAESTRO }], m = "", g = 0; g < o.length; g++) if (r.match(o[g].reg)) {
143
- m = o[g].type;
142
+ for (var o = [{ reg: /^4[0-9]{5}/gi, type: a.VISA }, { reg: /^5[1-5][0-9]{4}/gi, type: a.MASTER_CARD }, { reg: /^3[47][0-9]{3}/gi, type: a.AMERICAN_EXPRESS }, { reg: /^6(?:011|5[0-9]{2})/gi, type: a.DISCOVER }, { reg: /^(5[06-8]\d{4}|6\d{5})/gi, type: a.MAESTRO }], f = "", g = 0; g < o.length; g++) if (r.match(o[g].reg)) {
143
+ f = o[g].type;
144
144
  break;
145
145
  }
146
- return m && (m = m.toLowerCase().replace(/ /g, "-")), m;
146
+ return f && (f = f.toLowerCase().replace(/ /g, "-")), f;
147
147
  };
148
148
  }, function(l, s) {
149
149
  s.processError = function(a) {
@@ -168,22 +168,22 @@ function ye() {
168
168
  };
169
169
  }, function(l, s) {
170
170
  var a = function(r, o) {
171
- return Object.keys(r).find(function(m) {
172
- return r[m] === o;
171
+ return Object.keys(r).find(function(f) {
172
+ return r[f] === o;
173
173
  });
174
174
  };
175
175
  s.getKeyByValue = a, s.transformEnumForDisplay = function(r, o) {
176
- var m = !(arguments.length > 2 && arguments[2] !== void 0) || arguments[2], g = a(r, o);
176
+ var f = !(arguments.length > 2 && arguments[2] !== void 0) || arguments[2], g = a(r, o);
177
177
  if (g) {
178
- var h = g.split("_"), x = "";
179
- return m ? h.forEach(function(B, f) {
180
- x = x + (f === 0 ? "" : " ") + B.charAt(0).toUpperCase() + B.slice(1).toLowerCase();
181
- }) : x = h.join(" "), x;
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();
181
+ }) : y = A.join(" "), y;
182
182
  }
183
183
  return "";
184
184
  }, s.addressesAreEqual = function(r, o) {
185
- var m = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], g = !0;
186
- return r.FirstName == o.FirstName && r.LastName == o.LastName && r.Company == o.Company && r.Street == o.Street && r.Street2 == o.Street2 && r.City == o.City && r.State == o.State && r.PostalCode == o.PostalCode || (g = !1), !m || r.Type == o.Type && r.CareOf == o.CareOf && r.PhoneNumber == o.PhoneNumber && r.ContactEmail == o.ContactEmail || (g = !1), g;
185
+ var f = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], g = !0;
186
+ return r.FirstName == o.FirstName && r.LastName == o.LastName && r.Company == o.Company && r.Street == o.Street && r.Street2 == o.Street2 && r.City == o.City && r.State == o.State && r.PostalCode == o.PostalCode || (g = !1), !f || r.Type == o.Type && r.CareOf == o.CareOf && r.PhoneNumber == o.PhoneNumber && r.ContactEmail == o.ContactEmail || (g = !1), g;
187
187
  };
188
188
  }, function(l, s, a) {
189
189
  var r = a(10), o = a(9);
@@ -229,45 +229,45 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
229
229
  }
230
230
  const l = E(() => c.excludeName ? null : (c.address.FirstName || "") + (c.address.FirstName && c.address.LastName ? " " : "") + (c.address.LastName || ""));
231
231
  return (s, a) => (u(), d("div", null, [
232
- P(S(l.value), 1),
233
- l.value ? (u(), d("br", we)) : b("", !0),
232
+ P(b(l.value), 1),
233
+ l.value ? (u(), d("br", we)) : C("", !0),
234
234
  t.address.Company ? (u(), d(N, { key: 1 }, [
235
- P(S(t.address.Company) + " ", 1),
235
+ P(b(t.address.Company) + " ", 1),
236
236
  a[0] || (a[0] = e("br", null, null, -1))
237
- ], 64)) : b("", !0),
238
- P(" " + S(t.address.Street), 1),
239
- t.address.Street ? (u(), d("br", Ie)) : b("", !0),
237
+ ], 64)) : C("", !0),
238
+ P(" " + b(t.address.Street), 1),
239
+ t.address.Street ? (u(), d("br", Ie)) : C("", !0),
240
240
  t.address.Street2 ? (u(), d(N, { key: 3 }, [
241
- P(S(t.address.Street2) + " ", 1),
241
+ P(b(t.address.Street2) + " ", 1),
242
242
  a[1] || (a[1] = e("br", null, null, -1))
243
- ], 64)) : b("", !0),
244
- P(" " + S(t.address.City ? t.address.City + ", " : "") + S(t.address.State) + " " + S(t.address.PostalCode) + " ", 1),
243
+ ], 64)) : C("", !0),
244
+ P(" " + b(t.address.City ? t.address.City + ", " : "") + b(t.address.State) + " " + b(t.address.PostalCode) + " ", 1),
245
245
  t.includeCountry && t.address.Country && t.address.Country !== "US" && t.address.Country !== "USA" ? (u(), d(N, { key: 4 }, [
246
246
  a[2] || (a[2] = e("br", null, null, -1)),
247
- P(S(n(t.address.Country)), 1)
248
- ], 64)) : b("", !0),
249
- !t.separateContactInfo && t.includePhone && t.address.PhoneNumber || t.includeHours && t.address.Hours ? (u(), d("br", Ce)) : b("", !0),
247
+ P(b(n(t.address.Country)), 1)
248
+ ], 64)) : C("", !0),
249
+ !t.separateContactInfo && t.includePhone && t.address.PhoneNumber || t.includeHours && t.address.Hours ? (u(), d("br", Ce)) : C("", !0),
250
250
  !t.separateContactInfo && t.includePhone && t.address.PhoneNumber ? (u(), d(N, { key: 6 }, [
251
251
  a[3] || (a[3] = e("br", null, null, -1)),
252
252
  a[4] || (a[4] = e("i", { class: "fa-solid fa-phone color-text-gray" }, null, -1)),
253
- P(" " + S(X(W.formatter).formatPhone(t.address.PhoneNumber)), 1)
254
- ], 64)) : b("", !0),
253
+ P(" " + b(X(W.formatter).formatPhone(t.address.PhoneNumber)), 1)
254
+ ], 64)) : C("", !0),
255
255
  t.includeHours && t.address.Hours ? (u(), d(N, { key: 7 }, [
256
256
  a[5] || (a[5] = e("br", null, null, -1)),
257
- P("Hours: " + S(t.address.Hours), 1)
258
- ], 64)) : b("", !0),
257
+ P("Hours: " + b(t.address.Hours), 1)
258
+ ], 64)) : C("", !0),
259
259
  t.separateContactInfo && (t.address.CareOf || t.address.ContactEmail || t.address.PhoneNumber) ? (u(), d(N, { key: 8 }, [
260
260
  a[8] || (a[8] = e("br", null, null, -1)),
261
- t.address.CareOf ? (u(), d("br", be)) : b("", !0),
262
- P(S(t.address.CareOf) + " ", 1),
263
- t.address.ContactEmail ? (u(), d("br", Se)) : b("", !0),
264
- P(S(t.address.ContactEmail) + " ", 1),
261
+ t.address.CareOf ? (u(), d("br", be)) : C("", !0),
262
+ P(b(t.address.CareOf) + " ", 1),
263
+ t.address.ContactEmail ? (u(), d("br", Se)) : C("", !0),
264
+ P(b(t.address.ContactEmail) + " ", 1),
265
265
  t.address.PhoneNumber ? (u(), d(N, { key: 2 }, [
266
266
  a[6] || (a[6] = e("br", null, null, -1)),
267
267
  a[7] || (a[7] = e("i", { class: "fa-solid fa-phone color-text-gray" }, null, -1)),
268
- P(" " + S(X(W.formatter).formatPhone(t.address.PhoneNumber)), 1)
269
- ], 64)) : b("", !0)
270
- ], 64)) : b("", !0)
268
+ P(" " + b(X(W.formatter).formatPhone(t.address.PhoneNumber)), 1)
269
+ ], 64)) : C("", !0)
270
+ ], 64)) : C("", !0)
271
271
  ]));
272
272
  }
273
273
  }, Be = {
@@ -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: k(["error-icon", { on: t.on }])
292
+ class: M(["error-icon", { on: t.on }])
293
293
  }, n[0] || (n[0] = [
294
294
  e("path", {
295
295
  class: "path outline",
@@ -333,24 +333,24 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
333
333
  },
334
334
  emits: ["change", "truechange"],
335
335
  setup(t, { expose: c, emit: n }) {
336
- const l = t, s = n, a = C(null);
337
- function r(h) {
338
- let x = le(h);
339
- return x.isValid() ? x.format("YYYY-MM-DD") : "";
336
+ const l = t, s = n, a = I(null);
337
+ function r(A) {
338
+ let y = le(A);
339
+ return y.isValid() ? y.format("YYYY-MM-DD") : "";
340
340
  }
341
- function o(h) {
342
- r(l.value) !== r(h.target.value) && s("truechange", h.target.value);
341
+ function o(A) {
342
+ r(l.value) !== r(A.target.value) && s("truechange", A.target.value);
343
343
  }
344
- function m(h) {
345
- r(l.value) !== r(h.target.value) && s("change", h.target.value);
344
+ function f(A) {
345
+ r(l.value) !== r(A.target.value) && s("change", A.target.value);
346
346
  }
347
347
  function g() {
348
348
  a.value && a.value.blur();
349
349
  }
350
350
  return c({
351
351
  triggerBlur: g
352
- }), (h, x) => (u(), d("div", {
353
- class: k(["input-container date", t.cssClass])
352
+ }), (A, y) => (u(), d("div", {
353
+ class: M(["input-container date", t.cssClass])
354
354
  }, [
355
355
  e("input", {
356
356
  type: "date",
@@ -361,7 +361,7 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
361
361
  ref_key: "inputref",
362
362
  ref: a,
363
363
  onChange: o,
364
- onBlur: m,
364
+ onBlur: f,
365
365
  onKeyup: _(g, ["enter"])
366
366
  }, null, 40, ke)
367
367
  ], 2));
@@ -382,18 +382,18 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
382
382
  },
383
383
  emits: ["change"],
384
384
  setup(t, { emit: c }) {
385
- const n = t, l = c, s = C(n.initialValue || ""), a = C(n.initialValue || ""), r = W.debounce((g) => {
385
+ const n = t, l = c, s = I(n.initialValue || ""), a = I(n.initialValue || ""), r = W.debounce((g) => {
386
386
  a.value = g, l("change", g);
387
387
  });
388
388
  function o(g) {
389
- const h = g.target.value;
390
- s.value = h, r(h);
389
+ const A = g.target.value;
390
+ s.value = A, r(A);
391
391
  }
392
- function m() {
392
+ function f() {
393
393
  s.value = "", l("change", "");
394
394
  }
395
- return (g, h) => (u(), d("div", {
396
- class: k(["input-container", t.cssClass])
395
+ return (g, A) => (u(), d("div", {
396
+ class: M(["input-container", t.cssClass])
397
397
  }, [
398
398
  e("input", {
399
399
  type: "text",
@@ -404,10 +404,10 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
404
404
  t.includeClear && s.value.length ? (u(), d("a", {
405
405
  key: 0,
406
406
  class: "clear-button",
407
- onClick: m
408
- }, h[0] || (h[0] = [
407
+ onClick: f
408
+ }, A[0] || (A[0] = [
409
409
  e("i", { class: "fa-solid fa-times" }, null, -1)
410
- ]))) : b("", !0)
410
+ ]))) : C("", !0)
411
411
  ], 2));
412
412
  }
413
413
  }, Ee = { class: "file-upload-drop-wrapper" }, Ne = {
@@ -454,71 +454,76 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
454
454
  }
455
455
  },
456
456
  emits: ["change", "remove"],
457
- setup(t, { emit: c }) {
458
- const n = t, l = c, s = C(!1), a = C(null), r = C(""), o = C(!1), m = C(null), g = C(null), h = E(() => {
459
- let y = "";
460
- return n.showImage || (y += "no-image"), n.cssClass && (y += " " + n.cssClass), y;
457
+ setup(t, { expose: c, emit: n }) {
458
+ const l = t, s = n, a = I(!1), r = I(null), o = I(""), f = I(!1), g = I(null), A = I(null), y = E(() => {
459
+ let m = "";
460
+ return l.showImage || (m += "no-image"), l.cssClass && (m += " " + l.cssClass), m;
461
461
  });
462
462
  he(() => {
463
- n.image && n.image.ImageUrl && (r.value = n.imageBasePath + n.image.ImageUrl), a.value = new FileReader(), a.value.addEventListener("load", I);
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
- s.value = x(), s.value && m.value && (["drag", "drop"].forEach((y) => {
466
- m.value.addEventListener(y, (p) => {
467
- p.preventDefault(), p.stopPropagation();
465
+ a.value = k(), a.value && g.value && (["drag", "drop"].forEach((m) => {
466
+ g.value.addEventListener(m, (v) => {
467
+ v.preventDefault(), v.stopPropagation();
468
468
  });
469
- }), ["dragstart", "dragenter", "dragover"].forEach((y) => {
470
- m.value.addEventListener(y, (p) => {
471
- p.preventDefault(), p.stopPropagation(), o.value = !0;
469
+ }), ["dragstart", "dragenter", "dragover"].forEach((m) => {
470
+ g.value.addEventListener(m, (v) => {
471
+ v.preventDefault(), v.stopPropagation(), f.value = !0;
472
472
  });
473
- }), ["dragend", "dragleave"].forEach((y) => {
474
- m.value.addEventListener(y, (p) => {
475
- p.preventDefault(), p.stopPropagation(), o.value = !1;
473
+ }), ["dragend", "dragleave"].forEach((m) => {
474
+ g.value.addEventListener(m, (v) => {
475
+ v.preventDefault(), v.stopPropagation(), f.value = !1;
476
476
  });
477
- }), m.value.addEventListener("drop", B));
477
+ }), g.value.addEventListener("drop", h));
478
478
  });
479
- function x() {
480
- const y = document.createElement("div");
481
- return ("draggable" in y || "ondragstart" in y && "ondrop" in y) && "FormData" in window && "FileReader" in window;
479
+ function k() {
480
+ const m = document.createElement("div");
481
+ return ("draggable" in m || "ondragstart" in m && "ondrop" in m) && "FormData" in window && "FileReader" in window;
482
482
  }
483
- function B(y) {
484
- o.value = !1;
485
- let p = y.dataTransfer.files;
486
- A(p[0]), l("change", p[0]);
483
+ function h(m) {
484
+ f.value = !1;
485
+ let v = m.dataTransfer.files;
486
+ S(v[0]), s("change", v[0]);
487
487
  }
488
- function f(y) {
489
- const { value: p, files: v } = y.target;
490
- A(v[0]), l("change", v[0]);
488
+ function i(m) {
489
+ const { value: v, files: B } = m.target;
490
+ S(B[0]), s("change", B[0]);
491
491
  }
492
- function i() {
493
- r.value = "", l("remove");
492
+ function p() {
493
+ x(), s("remove");
494
+ }
495
+ function x() {
496
+ o.value = "";
494
497
  }
495
- function A(y) {
496
- y && y.type.startsWith("image/") && a.value.readAsDataURL(y);
498
+ function S(m) {
499
+ m && m.type.startsWith("image/") && r.value.readAsDataURL(m);
497
500
  }
498
- function I() {
499
- r.value = a.value.result;
501
+ function w() {
502
+ o.value = r.value.result;
500
503
  }
501
- return (y, p) => (u(), d("div", Ee, [
502
- t.showImage && r.value ? (u(), d("div", Ne, [
503
- e("img", { src: r.value }, null, 8, Pe),
504
+ return c({
505
+ clearImage: x
506
+ }), (m, v) => (u(), d("div", Ee, [
507
+ t.showImage && o.value ? (u(), d("div", Ne, [
508
+ e("img", { src: o.value }, null, 8, Pe),
504
509
  t.showRemove ? (u(), d("a", {
505
510
  key: 0,
506
511
  class: "color-callout remove",
507
512
  title: "Remove image",
508
- onClick: i
509
- }, p[0] || (p[0] = [
513
+ onClick: p
514
+ }, v[0] || (v[0] = [
510
515
  e("i", { class: "fa-solid fa-xmark" }, null, -1)
511
- ]))) : b("", !0)
512
- ])) : b("", !0),
516
+ ]))) : C("", !0)
517
+ ])) : C("", !0),
513
518
  e("div", {
514
- class: k(["file-upload-drop", h.value])
519
+ class: M(["file-upload-drop", y.value])
515
520
  }, [
516
521
  e("div", {
517
- class: k(["drop-target", { over: o.value }]),
522
+ class: M(["drop-target", { over: f.value }]),
518
523
  ref_key: "droptargetref",
519
- ref: m
524
+ ref: g
520
525
  }, [
521
- p[1] || (p[1] = e("div", null, [
526
+ v[1] || (v[1] = e("div", null, [
522
527
  e("i", { class: "fa-solid fa-download" })
523
528
  ], -1)),
524
529
  e("input", {
@@ -526,17 +531,17 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
526
531
  id: t.id,
527
532
  class: "show-for-sr",
528
533
  disabled: t.disabled || t.updating,
529
- onChange: f,
534
+ onChange: i,
530
535
  accept: t.accept,
531
536
  ref_key: "fileuploadref",
532
- ref: g
537
+ ref: A
533
538
  }, null, 40, De),
534
539
  e("label", {
535
540
  for: t.id,
536
541
  class: "main-label"
537
542
  }, [
538
- e("strong", null, S(t.chooseText), 1),
539
- P(" " + S(s.value ? t.dragText : null), 1)
543
+ e("strong", null, b(t.chooseText), 1),
544
+ P(" " + b(a.value ? t.dragText : null), 1)
540
545
  ], 8, Le)
541
546
  ], 2)
542
547
  ], 2)
@@ -582,31 +587,31 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
582
587
  },
583
588
  emits: ["change"],
584
589
  setup(t, { emit: c }) {
585
- const n = t, l = c, s = C(null), a = C(""), r = C(null);
590
+ const n = t, l = c, s = I(null), a = I(""), r = I(null);
586
591
  G(() => {
587
592
  n.file && (a.value = n.assetBasePath + n.file), s.value = new FileReader(), s.value.addEventListener("load", g);
588
593
  });
589
- function o(x) {
590
- const { value: B, files: f } = x.target;
591
- f[0] && (m(f[0]), l("change", f[0]));
594
+ function o(y) {
595
+ const { value: k, files: h } = y.target;
596
+ h[0] && (f(h[0]), l("change", h[0]));
592
597
  }
593
- function m(x) {
594
- s.value.readAsDataURL(x);
598
+ function f(y) {
599
+ s.value.readAsDataURL(y);
595
600
  }
596
601
  function g() {
597
602
  a.value = s.value.result;
598
603
  }
599
- const h = E(() => (n.disabled || n.updating ? "disabled" : "") + " " + (n.cssClass || ""));
600
- return (x, B) => (u(), d("span", Re, [
604
+ const A = E(() => (n.disabled || n.updating ? "disabled" : "") + " " + (n.cssClass || ""));
605
+ return (y, k) => (u(), d("span", Re, [
601
606
  t.showFilePath && t.file ? (u(), d("span", Te, [
602
- B[0] || (B[0] = e("i", { class: "fa-regular fa-circle-check" }, null, -1)),
603
- P(" " + S(t.file.name), 1)
604
- ])) : b("", !0),
607
+ k[0] || (k[0] = e("i", { class: "fa-regular fa-circle-check" }, null, -1)),
608
+ P(" " + b(t.file.name), 1)
609
+ ])) : C("", !0),
605
610
  e("span", Ve, [
606
611
  e("label", {
607
612
  for: t.id,
608
- class: k(["button", h.value])
609
- }, S(t.text), 11, Fe),
613
+ class: M(["button", A.value])
614
+ }, b(t.text), 11, Fe),
610
615
  e("input", {
611
616
  type: "file",
612
617
  id: t.id,
@@ -686,45 +691,45 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
686
691
  },
687
692
  emits: ["search", "select", "enter"],
688
693
  setup(t, { expose: c, emit: n }) {
689
- const l = t, s = n, a = C(""), r = C(""), o = C(!1), m = C(null), g = C(null), h = E(() => r.value && r.value.length >= l.minimumLength && o.value && (!l.loading || l.suggestions.length > 0)), x = W.debounce((v) => {
690
- r.value = v, B();
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();
691
696
  });
692
- function B() {
693
- const v = l.useExternalValue ? l.externalValue : a.value;
694
- (v.length === 0 || v.length >= l.minimumLength) && s("search", v);
697
+ function k() {
698
+ const m = l.useExternalValue ? l.externalValue : a.value;
699
+ (m.length === 0 || m.length >= l.minimumLength) && s("search", m);
695
700
  }
696
- function f(v) {
697
- let w = v;
698
- l.nameOnly && (w = v.Name), s("select", w);
701
+ function h(m) {
702
+ let v = m;
703
+ l.nameOnly && (v = m.Name), s("select", v);
699
704
  }
700
- function i(v) {
701
- s("select", v.target.value);
705
+ function i(m) {
706
+ s("select", m.target.value);
702
707
  }
703
- function A() {
704
- l.useExternalValue && g.value ? g.value.focus() : m.value && m.value.focus();
708
+ function p() {
709
+ l.useExternalValue && g.value ? g.value.focus() : f.value && f.value.focus();
705
710
  }
706
- function I() {
711
+ function x() {
707
712
  o.value = !0;
708
713
  }
709
- function y() {
714
+ function S() {
710
715
  setTimeout(() => {
711
716
  o.value = !1, a.value = "";
712
717
  }, 200);
713
718
  }
714
- function p() {
719
+ function w() {
715
720
  s("enter");
716
721
  }
717
- return Y(() => l.externalValue, (v) => {
718
- l.useExternalValue && x(v);
719
- }, { immediate: !0 }), Y(a, (v) => {
720
- l.useExternalValue || x(v);
722
+ return Y(() => l.externalValue, (m) => {
723
+ l.useExternalValue && y(m);
724
+ }, { immediate: !0 }), Y(a, (m) => {
725
+ l.useExternalValue || y(m);
721
726
  }, { immediate: !0 }), c({
722
- focusInput: A
723
- }), (v, w) => (u(), d("div", {
724
- class: k(["lookup-container", { small: t.small }])
727
+ focusInput: p
728
+ }), (m, v) => (u(), d("div", {
729
+ class: M(["lookup-container", { small: t.small }])
725
730
  }, [
726
731
  e("div", {
727
- class: k(["input-container", { loading: t.loading, suggestions: h.value, small: t.small, error: t.invalid }])
732
+ class: M(["input-container", { loading: t.loading, suggestions: A.value, small: t.small, error: t.invalid }])
728
733
  }, [
729
734
  t.useExternalValue ? (u(), d("input", {
730
735
  key: 0,
@@ -735,39 +740,39 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
735
740
  value: t.externalValue,
736
741
  maxlength: t.maxLength,
737
742
  onInput: i,
738
- onFocus: I,
739
- onBlur: y,
740
- onKeyup: _(p, ["enter"]),
743
+ onFocus: x,
744
+ onBlur: S,
745
+ onKeyup: _(w, ["enter"]),
741
746
  disabled: t.disabled
742
747
  }, null, 40, Ge)) : z((u(), d("input", {
743
748
  key: 1,
744
749
  ref_key: "inputref",
745
- ref: m,
750
+ ref: f,
746
751
  type: "text",
747
752
  autocomplete: "off",
748
- "onUpdate:modelValue": w[0] || (w[0] = (M) => a.value = M),
753
+ "onUpdate:modelValue": v[0] || (v[0] = (B) => a.value = B),
749
754
  maxlength: t.maxLength,
750
- onFocus: I,
751
- onBlur: y,
752
- onKeyup: _(p, ["enter"]),
755
+ onFocus: x,
756
+ onBlur: S,
757
+ onKeyup: _(w, ["enter"]),
753
758
  disabled: t.disabled
754
759
  }, null, 40, Ue)), [
755
760
  [oe, a.value]
756
761
  ]),
757
- t.loading ? (u(), d("span", Je)) : b("", !0)
762
+ t.loading ? (u(), d("span", Je)) : C("", !0)
758
763
  ], 2),
759
- h.value ? (u(), d("div", qe, [
764
+ A.value ? (u(), d("div", qe, [
760
765
  e("ul", null, [
761
- t.suggestions.length === 0 ? (u(), d("li", je, "No " + S(t.searchType) + " found", 1)) : b("", !0),
762
- (u(!0), d(N, null, R(t.suggestions, (M) => (u(), d("li", {
763
- key: M.Id
766
+ t.suggestions.length === 0 ? (u(), d("li", je, "No " + b(t.searchType) + " found", 1)) : C("", !0),
767
+ (u(!0), d(N, null, R(t.suggestions, (B) => (u(), d("li", {
768
+ key: B.Id
764
769
  }, [
765
770
  e("a", {
766
- onClick: (H) => f(M)
767
- }, S(M.Name), 9, We)
771
+ onClick: (H) => h(B)
772
+ }, b(B.Name), 9, We)
768
773
  ]))), 128))
769
774
  ])
770
- ])) : b("", !0)
775
+ ])) : C("", !0)
771
776
  ], 2));
772
777
  }
773
778
  }, ze = {
@@ -777,7 +782,7 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
777
782
  },
778
783
  setup(t) {
779
784
  return (c, n) => (u(), d("div", {
780
- class: k(["generic-loader", t.cssClass])
785
+ class: M(["generic-loader", t.cssClass])
781
786
  }, n[0] || (n[0] = [
782
787
  e("span", null, null, -1)
783
788
  ]), 2));
@@ -816,7 +821,7 @@ const xe = /* @__PURE__ */ JSON.parse(`[{"name":"United States","code":"US"},{"n
816
821
  e("title", {
817
822
  id: t.iconName,
818
823
  lang: "en"
819
- }, S(t.title), 9, $e),
824
+ }, b(t.title), 9, $e),
820
825
  e("g", null, [
821
826
  q(c.$slots, "default")
822
827
  ])
@@ -880,19 +885,19 @@ const tt = /* @__PURE__ */ O(Xe, [["render", et]]), at = { class: "modal-wrapper
880
885
  function r(o) {
881
886
  s.closeable && o.target === o.currentTarget && l("close");
882
887
  }
883
- return (o, m) => (u(), ee(Ae, { name: "modal" }, {
888
+ return (o, f) => (u(), ee(Ae, { name: "modal" }, {
884
889
  default: j(() => [
885
890
  e("div", {
886
- class: k(["modal-mask hide-for-print", t.maskCssClass]),
891
+ class: M(["modal-mask hide-for-print", t.maskCssClass]),
887
892
  onClick: r
888
893
  }, [
889
894
  e("div", {
890
- class: k(["modal-container", t.cssClass])
895
+ class: M(["modal-container", t.cssClass])
891
896
  }, [
892
897
  t.closeable ? (u(), d("a", {
893
898
  key: 0,
894
899
  class: "close",
895
- onClick: m[0] || (m[0] = (g) => o.$emit("close"))
900
+ onClick: f[0] || (f[0] = (g) => o.$emit("close"))
896
901
  }, [
897
902
  F(ae, {
898
903
  "icon-name": "close",
@@ -905,17 +910,17 @@ const tt = /* @__PURE__ */ O(Xe, [["render", et]]), at = { class: "modal-wrapper
905
910
  ]),
906
911
  _: 1
907
912
  })
908
- ])) : b("", !0),
913
+ ])) : C("", !0),
909
914
  e("div", at, [
910
915
  e("div", {
911
- class: k(["modal-grid", { "with-footer": a.value }])
916
+ class: M(["modal-grid", { "with-footer": a.value }])
912
917
  }, [
913
918
  e("div", nt, [
914
919
  e("div", rt, [
915
920
  t.header || t.subheader ? (u(), d("h3", st, [
916
- P(S(t.header) + " ", 1),
917
- t.subheader ? (u(), d("small", ot, S(t.subheader), 1)) : b("", !0)
918
- ])) : b("", !0)
921
+ P(b(t.header) + " ", 1),
922
+ t.subheader ? (u(), d("small", ot, b(t.subheader), 1)) : C("", !0)
923
+ ])) : C("", !0)
919
924
  ]),
920
925
  e("div", lt, [
921
926
  q(o.$slots, "body")
@@ -923,7 +928,7 @@ const tt = /* @__PURE__ */ O(Xe, [["render", et]]), at = { class: "modal-wrapper
923
928
  ]),
924
929
  a.value ? (u(), d("div", ct, [
925
930
  q(o.$slots, "footer")
926
- ])) : b("", !0)
931
+ ])) : C("", !0)
927
932
  ], 2)
928
933
  ])
929
934
  ], 2)
@@ -973,48 +978,48 @@ const tt = /* @__PURE__ */ O(Xe, [["render", et]]), at = { class: "modal-wrapper
973
978
  },
974
979
  emits: ["change"],
975
980
  setup(t, { emit: c }) {
976
- const n = /^-?(?:\d+|\d+\.\d+|\.\d+)(?:[eE][-+]?\d+)?$/, l = t, s = c, a = C(null), r = C(l.value), o = C(l.value);
977
- function m(v) {
978
- l.emitOnInput && i(v.target.value, !0);
981
+ const n = /^-?(?:\d+|\d+\.\d+|\.\d+)(?:[eE][-+]?\d+)?$/, l = t, s = c, a = I(null), r = I(l.value), o = I(l.value);
982
+ function f(m) {
983
+ l.emitOnInput && i(m.target.value, !0);
979
984
  }
980
- function g(v) {
981
- l.emitOnInput || i(v.target.value);
985
+ function g(m) {
986
+ l.emitOnInput || i(m.target.value);
982
987
  }
983
- function h(v) {
984
- l.selectOnFocus && v.target.select();
988
+ function A(m) {
989
+ l.selectOnFocus && m.target.select();
985
990
  }
986
- function x(v) {
987
- const w = v.clipboardData || window.clipboardData;
988
- w && !n.test(w.getData("text")) && v.preventDefault();
991
+ function y(m) {
992
+ const v = m.clipboardData || window.clipboardData;
993
+ v && !n.test(v.getData("text")) && m.preventDefault();
989
994
  }
990
- function B(v) {
991
- const { key: w } = v;
992
- w === "ArrowUp" ? I() : w === "ArrowDown" ? y() : w === "Enter" ? a.value.blur() : l.enforceNumbersOnly && w.length === 1 && !v.ctrlKey && !v.shiftKey && isNaN(w) && v.preventDefault();
995
+ function k(m) {
996
+ const { key: v } = m;
997
+ v === "ArrowUp" ? x() : v === "ArrowDown" ? S() : v === "Enter" ? a.value.blur() : l.enforceNumbersOnly && v.length === 1 && !m.ctrlKey && !m.shiftKey && isNaN(v) && m.preventDefault();
993
998
  }
994
- function f(v, w, M) {
995
- return v <= M ? Math.min(M, Math.max(v, w)) : w;
999
+ function h(m, v, B) {
1000
+ return m <= B ? Math.min(B, Math.max(m, v)) : v;
996
1001
  }
997
- function i(v, w = !1) {
998
- let M = Math.round(v);
999
- l.min <= l.max && (M = f(l.min, M, l.max)), r.value = M, a.value.value != M && (a.value.value = M), (!w || l.emitOnInput) && p();
1002
+ function i(m, v = !1) {
1003
+ let B = Math.round(m);
1004
+ l.min <= l.max && (B = h(l.min, B, l.max)), r.value = B, a.value.value != B && (a.value.value = B), (!v || l.emitOnInput) && w();
1000
1005
  }
1001
- function A(v = !0) {
1002
- let w = l.step;
1003
- v || (w = -w), r.value += w, l.emitOnInput && p();
1006
+ function p(m = !0) {
1007
+ let v = l.step;
1008
+ m || (v = -v), r.value += v, l.emitOnInput && w();
1004
1009
  }
1005
- function I(v) {
1006
- r.value < l.max && A();
1010
+ function x(m) {
1011
+ r.value < l.max && p();
1007
1012
  }
1008
- function y(v) {
1009
- r.value > l.min && A(!1);
1013
+ function S(m) {
1014
+ r.value > l.min && p(!1);
1010
1015
  }
1011
- function p() {
1016
+ function w() {
1012
1017
  r.value != o.value && (o.value = r.value, s("change", r.value));
1013
1018
  }
1014
- return Y(() => l.value, (v) => {
1015
- const w = parseInt(v);
1016
- !isNaN(w) && w !== r.value && i(w);
1017
- }, { immediate: !0 }), (v, w) => (u(), d("input", {
1019
+ return Y(() => l.value, (m) => {
1020
+ const v = parseInt(m);
1021
+ !isNaN(v) && v !== r.value && i(v);
1022
+ }, { immediate: !0 }), (m, v) => (u(), d("input", {
1018
1023
  type: "number",
1019
1024
  value: r.value,
1020
1025
  placeholder: t.placeholder,
@@ -1023,11 +1028,11 @@ const tt = /* @__PURE__ */ O(Xe, [["render", et]]), at = { class: "modal-wrapper
1023
1028
  inputmode: "numeric",
1024
1029
  ref_key: "inputref",
1025
1030
  ref: a,
1026
- onKeydown: B,
1027
- onInput: m,
1031
+ onKeydown: k,
1032
+ onInput: f,
1028
1033
  onBlur: g,
1029
- onFocus: h,
1030
- onPaste: x
1034
+ onFocus: A,
1035
+ onPaste: y
1031
1036
  }, null, 40, it));
1032
1037
  }
1033
1038
  }, dt = { class: "pagination" }, gt = { key: 1 }, mt = { key: 0 }, ft = ["onClick"], ht = {
@@ -1066,39 +1071,39 @@ const tt = /* @__PURE__ */ O(Xe, [["render", et]]), at = { class: "modal-wrapper
1066
1071
  },
1067
1072
  emits: ["navigate", "top"],
1068
1073
  setup(t, { emit: c }) {
1069
- const n = t, l = c, s = U([]), a = C(!1), r = U([]), o = U([]), m = C(!1);
1074
+ const n = t, l = c, s = U([]), a = I(!1), r = U([]), o = U([]), f = I(!1);
1070
1075
  function g() {
1071
- n.hasNextPage && x(n.pageIndex + 1);
1076
+ n.hasNextPage && y(n.pageIndex + 1);
1072
1077
  }
1073
- function h() {
1074
- n.hasPreviousPage && x(n.pageIndex - 1);
1078
+ function A() {
1079
+ n.hasPreviousPage && y(n.pageIndex - 1);
1075
1080
  }
1076
- function x(f) {
1077
- f !== n.pageIndex && (l("navigate", f), l("top"));
1081
+ function y(h) {
1082
+ h !== n.pageIndex && (l("navigate", h), l("top"));
1078
1083
  }
1079
- function B() {
1080
- if (s.splice(0), a.value = !1, r.splice(0), m.value = !1, o.splice(0), n.totalPages > 0)
1084
+ function k() {
1085
+ if (s.splice(0), a.value = !1, r.splice(0), f.value = !1, o.splice(0), n.totalPages > 0)
1081
1086
  if (n.totalPages > n.maxVisiblePages) {
1082
- let f = 0;
1087
+ let h = 0;
1083
1088
  const i = Math.floor(n.maxVisiblePages / 2);
1084
- n.pageIndex > n.totalPages - i - 1 ? f = n.totalPages - n.maxVisiblePages : n.pageIndex > i && (f = n.pageIndex - i), f > 0 && (s.push(0), a.value = !0);
1085
- for (let A = f; A < f + n.maxVisiblePages; A++)
1086
- r.push(A);
1087
- f < n.totalPages - n.maxVisiblePages && (m.value = !0, o.push(n.totalPages - 1));
1089
+ n.pageIndex > n.totalPages - i - 1 ? h = n.totalPages - n.maxVisiblePages : n.pageIndex > i && (h = n.pageIndex - i), h > 0 && (s.push(0), a.value = !0);
1090
+ for (let p = h; p < h + n.maxVisiblePages; p++)
1091
+ r.push(p);
1092
+ h < n.totalPages - n.maxVisiblePages && (f.value = !0, o.push(n.totalPages - 1));
1088
1093
  } else
1089
- for (let f = 0; f < n.totalPages; f++)
1090
- r.push(f);
1094
+ for (let h = 0; h < n.totalPages; h++)
1095
+ r.push(h);
1091
1096
  }
1092
- return Y(() => n.loading, (f, i) => {
1093
- !f && i && B();
1094
- }), (f, i) => (u(), d("nav", null, [
1097
+ return Y(() => n.loading, (h, i) => {
1098
+ !h && i && k();
1099
+ }), (h, i) => (u(), d("nav", null, [
1095
1100
  e("ul", dt, [
1096
1101
  e("li", {
1097
- class: k(["pagination-previous", { disabled: !t.hasPreviousPage }])
1102
+ class: M(["pagination-previous", { disabled: !t.hasPreviousPage }])
1098
1103
  }, [
1099
1104
  t.hasPreviousPage ? (u(), d("a", {
1100
1105
  key: 0,
1101
- onClick: h
1106
+ onClick: A
1102
1107
  }, i[0] || (i[0] = [
1103
1108
  e("span", null, "Previous", -1)
1104
1109
  ]))) : (u(), d("span", gt, i[1] || (i[1] = [
@@ -1106,37 +1111,37 @@ const tt = /* @__PURE__ */ O(Xe, [["render", et]]), at = { class: "modal-wrapper
1106
1111
  ])))
1107
1112
  ], 2),
1108
1113
  t.totalPages > 0 ? (u(), d(N, { key: 0 }, [
1109
- (u(!0), d(N, null, R(s, (A) => (u(), d("li", {
1110
- class: k({ current: A === t.pageIndex })
1114
+ (u(!0), d(N, null, R(s, (p) => (u(), d("li", {
1115
+ class: M({ current: p === t.pageIndex })
1111
1116
  }, [
1112
- A === t.pageIndex ? (u(), d("span", mt, S(A + 1), 1)) : (u(), d("a", {
1117
+ p === t.pageIndex ? (u(), d("span", mt, b(p + 1), 1)) : (u(), d("a", {
1113
1118
  key: 1,
1114
- onClick: (I) => x(A)
1115
- }, S(A + 1), 9, ft))
1119
+ onClick: (x) => y(p)
1120
+ }, b(p + 1), 9, ft))
1116
1121
  ], 2))), 256)),
1117
- a.value ? (u(), d("li", ht)) : b("", !0),
1118
- (u(!0), d(N, null, R(r, (A) => (u(), d("li", {
1119
- class: k({ current: A === t.pageIndex })
1122
+ a.value ? (u(), d("li", ht)) : C("", !0),
1123
+ (u(!0), d(N, null, R(r, (p) => (u(), d("li", {
1124
+ class: M({ current: p === t.pageIndex })
1120
1125
  }, [
1121
- A === t.pageIndex ? (u(), d("span", vt, S(A + 1), 1)) : (u(), d("a", {
1126
+ p === t.pageIndex ? (u(), d("span", vt, b(p + 1), 1)) : (u(), d("a", {
1122
1127
  key: 1,
1123
- onClick: (I) => x(A)
1124
- }, S(A + 1), 9, At))
1128
+ onClick: (x) => y(p)
1129
+ }, b(p + 1), 9, At))
1125
1130
  ], 2))), 256)),
1126
- m.value ? (u(), d("li", pt)) : b("", !0),
1127
- (u(!0), d(N, null, R(o, (A) => (u(), d("li", {
1128
- class: k({ current: A === t.pageIndex })
1131
+ f.value ? (u(), d("li", pt)) : C("", !0),
1132
+ (u(!0), d(N, null, R(o, (p) => (u(), d("li", {
1133
+ class: M({ current: p === t.pageIndex })
1129
1134
  }, [
1130
- A === t.pageIndex ? (u(), d("span", yt, S(A + 1), 1)) : (u(), d("a", {
1135
+ p === t.pageIndex ? (u(), d("span", yt, b(p + 1), 1)) : (u(), d("a", {
1131
1136
  key: 1,
1132
- onClick: (I) => x(A)
1133
- }, S(A + 1), 9, xt))
1137
+ onClick: (x) => y(p)
1138
+ }, b(p + 1), 9, xt))
1134
1139
  ], 2))), 256))
1135
1140
  ], 64)) : (u(), d("li", wt, i[2] || (i[2] = [
1136
1141
  e("span", { class: "disabled" }, "1", -1)
1137
1142
  ]))),
1138
1143
  e("li", {
1139
- class: k(["pagination-next", { disabled: !t.hasNextPage }])
1144
+ class: M(["pagination-next", { disabled: !t.hasNextPage }])
1140
1145
  }, [
1141
1146
  t.hasNextPage ? (u(), d("a", {
1142
1147
  key: 0,
@@ -1204,51 +1209,51 @@ const re = /* @__PURE__ */ O(Ct, [["render", St]]), Bt = { class: "image-selecto
1204
1209
  },
1205
1210
  emits: ["update"],
1206
1211
  setup(t, { emit: c }) {
1207
- const n = t, l = c, s = C(0), a = C(6);
1212
+ const n = t, l = c, s = I(0), a = I(6);
1208
1213
  function r(D) {
1209
1214
  return n.selectedImage.replace(n.imageBasePath, "") === D.ImageUrl;
1210
1215
  }
1211
1216
  function o(D) {
1212
1217
  n.disabled || l("update", D);
1213
1218
  }
1214
- function m() {
1219
+ function f() {
1215
1220
  n.disabled || (n.variant ? l("update", n.variant) : l("update", n.product.PrimaryImage));
1216
1221
  }
1217
1222
  const g = E(() => {
1218
1223
  const D = n.selectedImage.replace(n.imageBasePath, "");
1219
1224
  return n.selectedImage && (n.variant && n.variant.ImageUrl === D || n.product && n.product.PrimaryImage && n.product.PrimaryImage.ImageUrl === D);
1220
1225
  });
1221
- function h() {
1222
- B(-1);
1226
+ function A() {
1227
+ k(-1);
1223
1228
  }
1224
- function x() {
1225
- B(1);
1229
+ function y() {
1230
+ k(1);
1226
1231
  }
1227
- function B(D) {
1232
+ function k(D) {
1228
1233
  let T = s.value + D;
1229
- T < 0 ? T = 0 : T > I.value && (T = I.value), s.value = T;
1234
+ T < 0 ? T = 0 : T > x.value && (T = x.value), s.value = T;
1230
1235
  }
1231
- const f = E(() => n.product ? n.product.AdditionalImages.length + n.product.LifeStyleImages.length : 0), i = E(() => f.value + (n.hasVariants ? 1 : 0)), A = E(() => i.value > a.value), I = E(() => i.value - a.value);
1232
- function y(D) {
1236
+ const h = E(() => n.product ? n.product.AdditionalImages.length + n.product.LifeStyleImages.length : 0), i = E(() => h.value + (n.hasVariants ? 1 : 0)), p = E(() => i.value > a.value), x = E(() => i.value - a.value);
1237
+ function S(D) {
1233
1238
  return D && D.ImageUrl ? n.imageBasePath + D.ImageUrl + ";width=100;height=100" : null;
1234
1239
  }
1235
- const p = E(() => n.selectedImage ? (n.usePathPrefix ? n.imageBasePath : "") + n.selectedImage : null), v = E(() => p.value ? { "background-image": 'url("' + p.value + (n.usePathPrefix ? ";width=1200;height=1200" : "") + '")' } : null), w = E(() => n.variant && n.variant.ImageUrl ? n.imageBasePath + n.variant.ImageUrl + ";width=100;height=100" : n.product ? n.imageBasePath + n.product.PrimaryImage.ImageUrl + ";width=100;height=100" : null), M = E(() => "up-" + Math.min(i.value, a.value)), H = E(() => ({ left: "-" + s.value * (100 / a.value) + "%" })), ge = E(() => g.value && n.variant && n.variant.SubstitutedImage);
1240
+ const w = E(() => n.selectedImage ? (n.usePathPrefix ? n.imageBasePath : "") + n.selectedImage : null), m = E(() => w.value ? { "background-image": 'url("' + w.value + (n.usePathPrefix ? ";width=1200;height=1200" : "") + '")' } : null), v = E(() => n.variant && n.variant.ImageUrl ? n.imageBasePath + n.variant.ImageUrl + ";width=100;height=100" : n.product ? n.imageBasePath + n.product.PrimaryImage.ImageUrl + ";width=100;height=100" : null), B = E(() => "up-" + Math.min(i.value, a.value)), H = E(() => ({ left: "-" + s.value * (100 / a.value) + "%" })), ge = E(() => g.value && n.variant && n.variant.SubstitutedImage);
1236
1241
  return (D, T) => (u(), d("div", Bt, [
1237
1242
  e("div", kt, [
1238
1243
  e("div", Mt, [
1239
1244
  e("div", {
1240
- class: k(["image-container", { empty: t.showEmpty && t.selectedImage === "" }]),
1241
- style: K(v.value)
1245
+ class: M(["image-container", { empty: t.showEmpty && t.selectedImage === "" }]),
1246
+ style: K(m.value)
1242
1247
  }, [
1243
- ge.value ? (u(), d("small", Et, "*Image may not be representative of actual product with options currently selected")) : b("", !0)
1248
+ ge.value ? (u(), d("small", Et, "*Image may not be representative of actual product with options currently selected")) : C("", !0)
1244
1249
  ], 6)
1245
1250
  ])
1246
1251
  ]),
1247
1252
  t.product || t.forceNav ? (u(), d("nav", Nt, [
1248
- A.value ? (u(), d("a", {
1253
+ p.value ? (u(), d("a", {
1249
1254
  key: 0,
1250
1255
  class: "arrow rotate-90 show-for-medium",
1251
- onClick: h,
1256
+ onClick: A,
1252
1257
  disabled: s.value === 0
1253
1258
  }, [
1254
1259
  F(ae, {
@@ -1262,48 +1267,48 @@ const re = /* @__PURE__ */ O(Ct, [["render", St]]), Bt = { class: "image-selecto
1262
1267
  ]),
1263
1268
  _: 1
1264
1269
  })
1265
- ], 8, Pt)) : b("", !0),
1270
+ ], 8, Pt)) : C("", !0),
1266
1271
  e("div", {
1267
- class: k(["image-nav-list", M.value])
1272
+ class: M(["image-nav-list", B.value])
1268
1273
  }, [
1269
1274
  e("a", {
1270
- class: k(["variant-image", { current: g.value }]),
1271
- onClick: m,
1275
+ class: M(["variant-image", { current: g.value }]),
1276
+ onClick: f,
1272
1277
  style: K(H.value)
1273
1278
  }, [
1274
1279
  e("img", {
1275
- src: w.value,
1280
+ src: v.value,
1276
1281
  alt: ""
1277
1282
  }, null, 8, Dt)
1278
1283
  ], 6),
1279
1284
  t.product ? (u(), d(N, { key: 0 }, [
1280
1285
  (u(!0), d(N, null, R(t.product.AdditionalImages, (V, me) => (u(), d("a", {
1281
- class: k({ current: r(V) }),
1286
+ class: M({ current: r(V) }),
1282
1287
  onClick: (fe) => o(V),
1283
1288
  style: K(H.value)
1284
1289
  }, [
1285
1290
  e("img", {
1286
- src: y(V),
1291
+ src: S(V),
1287
1292
  alt: ""
1288
1293
  }, null, 8, Rt)
1289
1294
  ], 14, Lt))), 256)),
1290
1295
  (u(!0), d(N, null, R(t.product.LifeStyleImages, (V, me) => (u(), d("a", {
1291
- class: k({ current: r(V) }),
1296
+ class: M({ current: r(V) }),
1292
1297
  onClick: (fe) => o(V),
1293
1298
  style: K(H.value)
1294
1299
  }, [
1295
1300
  e("img", {
1296
- src: y(V),
1301
+ src: S(V),
1297
1302
  alt: ""
1298
1303
  }, null, 8, Vt)
1299
1304
  ], 14, Tt))), 256))
1300
- ], 64)) : b("", !0)
1305
+ ], 64)) : C("", !0)
1301
1306
  ], 2),
1302
- A.value ? (u(), d("a", {
1307
+ p.value ? (u(), d("a", {
1303
1308
  key: 1,
1304
1309
  class: "arrow rotate-270 show-for-medium",
1305
- onClick: x,
1306
- disabled: s.value === I.value
1310
+ onClick: y,
1311
+ disabled: s.value === x.value
1307
1312
  }, [
1308
1313
  F(ae, {
1309
1314
  width: "32",
@@ -1316,8 +1321,8 @@ const re = /* @__PURE__ */ O(Ct, [["render", St]]), Bt = { class: "image-selecto
1316
1321
  ]),
1317
1322
  _: 1
1318
1323
  })
1319
- ], 8, Ft)) : b("", !0)
1320
- ])) : b("", !0)
1324
+ ], 8, Ft)) : C("", !0)
1325
+ ])) : C("", !0)
1321
1326
  ]));
1322
1327
  }
1323
1328
  }, Ot = ["id"], Qt = { class: "value" }, Yt = { class: "options-list-container" }, Ht = { class: "input-container search small" }, Kt = ["aria-controls", "aria-expanded", "maxlength", "disabled"], Gt = ["aria-label", "id"], Ut = {
@@ -1361,71 +1366,71 @@ const re = /* @__PURE__ */ O(Ct, [["render", St]]), Bt = { class: "image-selecto
1361
1366
  },
1362
1367
  emits: ["update"],
1363
1368
  setup(t, { expose: c, emit: n }) {
1364
- const l = t, s = n, a = C(null), r = C(""), o = C(!1), m = U([]), g = C(null), h = C(null);
1369
+ const l = t, s = n, a = I(null), r = I(""), o = I(!1), f = U([]), g = I(null), A = I(null);
1365
1370
  G(() => {
1366
- l.externalValueId && l.externalValueName && (a.value = { Id: l.externalValueId, Name: l.externalValueName }), l.options.length && (m.splice(0), m.push(...l.options));
1371
+ l.externalValueId && l.externalValueName && (a.value = { Id: l.externalValueId, Name: l.externalValueName }), l.options.length && (f.splice(0), f.push(...l.options));
1367
1372
  });
1368
- function x() {
1369
- let p = [];
1373
+ function y() {
1374
+ let w = [];
1370
1375
  if (r.value) {
1371
- const v = r.value.toLowerCase();
1372
- l.options.forEach((w) => {
1373
- w.Name && w.Name.toLowerCase().indexOf(v) > -1 && p.push(w);
1376
+ const m = r.value.toLowerCase();
1377
+ l.options.forEach((v) => {
1378
+ v.Name && v.Name.toLowerCase().indexOf(m) > -1 && w.push(v);
1374
1379
  });
1375
1380
  } else
1376
- p = l.options.slice();
1377
- m.splice(0), m.push(...p);
1381
+ w = l.options.slice();
1382
+ f.splice(0), f.push(...w);
1378
1383
  }
1379
- function B(p) {
1380
- p.value = p, s("update", p), g.value && g.value.blur(), o.value = !1;
1384
+ function k(w) {
1385
+ w.value = w, s("update", w), g.value && g.value.blur(), o.value = !1;
1381
1386
  }
1382
- function f() {
1387
+ function h() {
1383
1388
  o.value = !0;
1384
1389
  }
1385
1390
  function i() {
1386
- o.value = !0, h.value && h.value.focus();
1391
+ o.value = !0, A.value && A.value.focus();
1387
1392
  }
1388
- function A(p) {
1393
+ function p(w) {
1389
1394
  o.value = !0;
1390
1395
  }
1391
- function I(p) {
1396
+ function x(w) {
1392
1397
  setTimeout(() => {
1393
1398
  (!g.value || !document.activeElement || document.activeElement.id !== l.id + "-container" && !g.value.contains(document.activeElement)) && (o.value = !1, r.value = "");
1394
1399
  }, 200);
1395
1400
  }
1396
- const y = E(() => (l.cssClass || "") + (o.value ? " open" : "") + (l.invalid ? " error" : ""));
1397
- return Y(() => l.loading, (p, v) => {
1398
- !p && v && (r.value = "", x());
1399
- }), Y(() => r.value, (p) => {
1400
- x();
1401
+ const S = E(() => (l.cssClass || "") + (o.value ? " open" : "") + (l.invalid ? " error" : ""));
1402
+ return Y(() => l.loading, (w, m) => {
1403
+ !w && m && (r.value = "", y());
1404
+ }), Y(() => r.value, (w) => {
1405
+ y();
1401
1406
  }), c({
1402
- focusInput: f,
1407
+ focusInput: h,
1403
1408
  focusSearchInput: i
1404
- }), (p, v) => (u(), d("div", {
1409
+ }), (w, m) => (u(), d("div", {
1405
1410
  id: t.id + "-container",
1406
1411
  ref_key: "containerref",
1407
1412
  ref: g,
1408
1413
  class: "input-container searchable-dropdown-container",
1409
- onFocusin: A,
1410
- onFocusout: I,
1414
+ onFocusin: p,
1415
+ onFocusout: x,
1411
1416
  tabindex: "0"
1412
1417
  }, [
1413
1418
  e("div", {
1414
- class: k(["input-container select false-select", y.value])
1419
+ class: M(["input-container select false-select", S.value])
1415
1420
  }, [
1416
- e("span", Qt, S(a.value ? a.value.Name : "Select"), 1),
1421
+ e("span", Qt, b(a.value ? a.value.Name : "Select"), 1),
1417
1422
  e("div", Yt, [
1418
1423
  e("div", Ht, [
1419
1424
  z(e("input", {
1420
1425
  ref_key: "inputref",
1421
- ref: h,
1426
+ ref: A,
1422
1427
  type: "text",
1423
1428
  autocomplete: "off",
1424
1429
  role: "combobox",
1425
1430
  "aria-controls": t.id + "-list",
1426
1431
  "aria-autocomplete": "list",
1427
1432
  "aria-expanded": o.value,
1428
- "onUpdate:modelValue": v[0] || (v[0] = (w) => r.value = w),
1433
+ "onUpdate:modelValue": m[0] || (m[0] = (v) => r.value = v),
1429
1434
  maxlength: t.maxLength,
1430
1435
  disabled: t.disabled
1431
1436
  }, null, 8, Kt), [
@@ -1438,13 +1443,13 @@ const re = /* @__PURE__ */ O(Ct, [["render", St]]), Bt = { class: "image-selecto
1438
1443
  "aria-label": t.label,
1439
1444
  id: t.id + "-list"
1440
1445
  }, [
1441
- m.length === 0 ? (u(), d("span", Ut, "No " + S(t.searchType) + " found", 1)) : b("", !0),
1442
- (u(!0), d(N, null, R(m, (w) => (u(), d("a", {
1443
- key: w.Id,
1446
+ f.length === 0 ? (u(), d("span", Ut, "No " + b(t.searchType) + " found", 1)) : C("", !0),
1447
+ (u(!0), d(N, null, R(f, (v) => (u(), d("a", {
1448
+ key: v.Id,
1444
1449
  role: "option",
1445
- class: k(["option", { active: a.value && a.value.Id === w.Id }]),
1446
- onClick: (M) => B(w)
1447
- }, S(w.Name), 11, Jt))), 128))
1450
+ class: M(["option", { active: a.value && a.value.Id === v.Id }]),
1451
+ onClick: (B) => k(v)
1452
+ }, b(v.Name), 11, Jt))), 128))
1448
1453
  ], 8, Gt)
1449
1454
  ])
1450
1455
  ], 2)
@@ -1493,82 +1498,82 @@ const re = /* @__PURE__ */ O(Ct, [["render", St]]), Bt = { class: "image-selecto
1493
1498
  G(() => {
1494
1499
  a();
1495
1500
  });
1496
- const s = C(null);
1501
+ const s = I(null);
1497
1502
  function a() {
1498
1503
  n.auto && r();
1499
1504
  }
1500
1505
  function r() {
1501
- n.slides.length > 0 && (s.value !== null && clearTimeout(s.value), s.value = setTimeout(x, n.delay));
1506
+ n.slides.length > 0 && (s.value !== null && clearTimeout(s.value), s.value = setTimeout(y, n.delay));
1502
1507
  }
1503
1508
  function o() {
1504
- n.auto && m();
1509
+ n.auto && f();
1505
1510
  }
1506
- function m() {
1511
+ function f() {
1507
1512
  s.value !== null && (clearTimeout(s.value), s.value = null);
1508
1513
  }
1509
- const g = C(0);
1510
- function h() {
1511
- B(f.value);
1514
+ const g = I(0);
1515
+ function A() {
1516
+ k(h.value);
1512
1517
  }
1513
- function x() {
1514
- B(i.value);
1518
+ function y() {
1519
+ k(i.value);
1515
1520
  }
1516
- function B(I) {
1517
- o(), g.value = I, l("change", I), a();
1521
+ function k(x) {
1522
+ o(), g.value = x, l("change", x), a();
1518
1523
  }
1519
- const f = E(() => g.value === 0 ? n.slides.length - 1 : g.value - 1), i = E(() => g.value === n.slides.length - 1 ? 0 : g.value + 1);
1520
- function A(I) {
1521
- return { backgroundImage: 'url("' + (n.usePrefix ? n.imageBasePath : "") + I + (n.widthSuffix ? ";width=" + n.widthSuffix : "") + '")' };
1524
+ 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);
1525
+ function p(x) {
1526
+ return { backgroundImage: 'url("' + (n.usePrefix ? n.imageBasePath : "") + x + (n.widthSuffix ? ";width=" + n.widthSuffix : "") + '")' };
1522
1527
  }
1523
- return (I, y) => {
1524
- const p = te("touch"), v = te("touch-options");
1528
+ return (x, S) => {
1529
+ const w = te("touch"), m = te("touch-options");
1525
1530
  return t.slides.length > 1 ? (u(), d("div", {
1526
1531
  key: 0,
1527
- class: k(["slideshow", { small: t.small }]),
1532
+ class: M(["slideshow", { small: t.small }]),
1528
1533
  onMouseover: o,
1529
1534
  onMouseout: a
1530
1535
  }, [
1531
1536
  e("div", qt, [
1532
1537
  z((u(), d("div", null, [
1533
- (u(!0), d(N, null, R(t.slides, (w, M) => (u(), d("div", {
1534
- class: k(["slide", { current: M == g.value, prev: M === f.value, next: M === i.value }]),
1535
- style: K(A(w))
1538
+ (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 }]),
1540
+ style: K(p(v))
1536
1541
  }, null, 6))), 256))
1537
1542
  ])), [
1538
1543
  [
1539
- p,
1540
- x,
1544
+ w,
1545
+ y,
1541
1546
  "swipe",
1542
1547
  { left: !0 }
1543
1548
  ],
1544
1549
  [
1545
- p,
1546
- h,
1550
+ w,
1551
+ A,
1547
1552
  "swipe",
1548
1553
  { right: !0 }
1549
1554
  ],
1550
- [v, { swipeTolerance: 50 }]
1555
+ [m, { swipeTolerance: 50 }]
1551
1556
  ]),
1552
1557
  t.slides.length > 1 || t.forceNav ? (u(), d("a", {
1553
1558
  key: 0,
1554
1559
  class: "nav prev show-for-medium",
1555
- onClick: h
1556
- })) : b("", !0),
1560
+ onClick: A
1561
+ })) : C("", !0),
1557
1562
  t.slides.length > 1 || t.forceNav ? (u(), d("a", {
1558
1563
  key: 1,
1559
1564
  class: "nav next show-for-medium",
1560
- onClick: x
1561
- })) : b("", !0)
1565
+ onClick: y
1566
+ })) : C("", !0)
1562
1567
  ]),
1563
1568
  e("nav", jt, [
1564
- (u(!0), d(N, null, R(t.slides, (w, M) => (u(), d("a", {
1565
- "aria-label": M,
1566
- class: k({ current: M == g.value }),
1567
- onClick: (H) => B(M)
1569
+ (u(!0), d(N, null, R(t.slides, (v, B) => (u(), d("a", {
1570
+ "aria-label": B,
1571
+ class: M({ current: B == g.value }),
1572
+ onClick: (H) => k(B)
1568
1573
  }, null, 10, Wt))), 256))
1569
1574
  ])
1570
1575
  ], 34)) : (u(), d("div", zt, [
1571
- q(I.$slots, "default")
1576
+ q(x.$slots, "default")
1572
1577
  ]));
1573
1578
  };
1574
1579
  }
@@ -1599,12 +1604,12 @@ const re = /* @__PURE__ */ O(Ct, [["render", St]]), Bt = { class: "image-selecto
1599
1604
  },
1600
1605
  emits: ["change"],
1601
1606
  setup(t, { emit: c }) {
1602
- const n = t, l = c, s = C(n.value);
1607
+ const n = t, l = c, s = I(n.value);
1603
1608
  function a() {
1604
1609
  s.value = !s.value, l("change", s.value);
1605
1610
  }
1606
1611
  return (r, o) => (u(), d("div", {
1607
- class: k(["switch", t.cssClass])
1612
+ class: M(["switch", t.cssClass])
1608
1613
  }, [
1609
1614
  e("input", {
1610
1615
  id: t.id,
@@ -1641,7 +1646,7 @@ const re = /* @__PURE__ */ O(Ct, [["render", St]]), Bt = { class: "image-selecto
1641
1646
  setup(t) {
1642
1647
  return (c, n) => (u(), d("svg", Xt, [
1643
1648
  e("g", {
1644
- class: k(["success-icon", { on: t.on }])
1649
+ class: M(["success-icon", { on: t.on }])
1645
1650
  }, n[0] || (n[0] = [
1646
1651
  e("path", {
1647
1652
  class: "path circle",
@@ -1677,37 +1682,37 @@ const re = /* @__PURE__ */ O(Ct, [["render", St]]), Bt = { class: "image-selecto
1677
1682
  DAYS: "DAYS",
1678
1683
  WEEKS: "WEEKS",
1679
1684
  YEARS: "YEARS"
1680
- }, l = t, s = c, a = C(0), r = C(n.DAYS);
1685
+ }, l = t, s = c, a = I(0), r = I(n.DAYS);
1681
1686
  G(() => {
1682
1687
  o();
1683
1688
  });
1684
1689
  function o() {
1685
- let f = l.initialValue, i = n.DAYS;
1686
- f && !isNaN(f) && (f % 365 === 0 ? (f = f / 365, i = n.YEARS) : f % 7 === 0 && (f = f / 7, i = n.WEEKS)), a.value = f, r.value = i;
1690
+ let h = l.initialValue, i = n.DAYS;
1691
+ h && !isNaN(h) && (h % 365 === 0 ? (h = h / 365, i = n.YEARS) : h % 7 === 0 && (h = h / 7, i = n.WEEKS)), a.value = h, r.value = i;
1687
1692
  }
1688
- function m(f, i) {
1689
- let A = f, I = r.value;
1690
- isNaN(f) ? (A = l.initialValue, I = n.DAYS) : f > 0 && (r.value === n.DAYS ? A % 365 === 0 ? (A = A / 365, I = n.YEARS) : A % 7 === 0 && (A = A / 7, I = n.WEEKS) : r.value === n.WEEKS && f % 52 === 0 && (A = f / 52, I = n.YEARS)), a.value = A, r.value = I, i !== void 0 && pe(i);
1693
+ function f(h, i) {
1694
+ let p = h, x = r.value;
1695
+ isNaN(h) ? (p = l.initialValue, x = n.DAYS) : h > 0 && (r.value === n.DAYS ? p % 365 === 0 ? (p = p / 365, x = n.YEARS) : p % 7 === 0 && (p = p / 7, x = n.WEEKS) : r.value === n.WEEKS && h % 52 === 0 && (p = h / 52, x = n.YEARS)), a.value = p, r.value = x, i !== void 0 && pe(i);
1691
1696
  }
1692
- function g(f) {
1693
- const { value: i } = f.target;
1694
- r.value = i, m(a.value, x);
1697
+ function g(h) {
1698
+ const { value: i } = h.target;
1699
+ r.value = i, f(a.value, y);
1695
1700
  }
1696
- function h(f) {
1697
- m(f, x);
1701
+ function A(h) {
1702
+ f(h, y);
1698
1703
  }
1699
- function x() {
1700
- s("update", B.value, l.name);
1704
+ function y() {
1705
+ s("update", k.value, l.name);
1701
1706
  }
1702
- const B = E(() => {
1703
- let f = a.value;
1704
- return r.value === n.WEEKS ? f = f * 7 : r.value === n.YEARS && (f = f * 365), f;
1707
+ const k = E(() => {
1708
+ let h = a.value;
1709
+ return r.value === n.WEEKS ? h = h * 7 : r.value === n.YEARS && (h = h * 365), h;
1705
1710
  });
1706
- return (f, i) => (u(), d("div", _t, [
1711
+ return (h, i) => (u(), d("div", _t, [
1707
1712
  e("div", ea, [
1708
1713
  F(ut, {
1709
1714
  value: a.value,
1710
- onChange: h,
1715
+ onChange: A,
1711
1716
  min: 0,
1712
1717
  max: 9999
1713
1718
  }, null, 8, ["value"])