@producteca/producteca-ui-kit 1.77.5 → 1.77.7

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.
@@ -20808,11 +20808,16 @@ const SelectFieldBase = (props) => {
20808
20808
  tooltipProps
20809
20809
  } = props;
20810
20810
  const value = input?.value ?? props.value;
20811
- const defaultOption = filter$1(
20812
- options,
20813
- (option) => includes$1(value, _valueGetter(option, getOptionValue4))
20811
+ const isControlled = input !== void 0 || props.value !== void 0;
20812
+ const resolveSelected = (raw) => {
20813
+ if (raw === null || raw === void 0) return isMultiple ? [] : null;
20814
+ const val = isArray$h(raw) ? raw : [raw];
20815
+ const matchingOptions = filter$1(options, (option) => includes$1(val, _valueGetter(option, getOptionValue4)));
20816
+ return isMultiple ? matchingOptions : matchingOptions[0] || null;
20817
+ };
20818
+ const [optionSelected, setOptionSelected] = useState(
20819
+ () => resolveSelected(isControlled ? value : defaultValue2)
20814
20820
  );
20815
- const [optionSelected, setOptionSelected] = useState(defaultOption || null);
20816
20821
  const [isFocused, setIsFocused] = useState(false);
20817
20822
  const validationProps = { meta, value, isValid: isValid2, required };
20818
20823
  const validated = formValidation(validationProps);
@@ -20841,12 +20846,15 @@ const SelectFieldBase = (props) => {
20841
20846
  setOptionSelected(selected2);
20842
20847
  };
20843
20848
  useEffect(() => {
20844
- if (defaultValue2 && options.length > 0) {
20845
- const val = isArray$h(defaultValue2) ? defaultValue2 : [defaultValue2];
20846
- const matchingOptions = filter$1(options, (option) => includes$1(val, _valueGetter(option, getOptionValue4)));
20847
- setOptionSelected(isMultiple ? matchingOptions : matchingOptions[0] || null);
20849
+ if (isControlled) {
20850
+ setOptionSelected(resolveSelected(value));
20851
+ }
20852
+ }, [value, options]);
20853
+ useEffect(() => {
20854
+ if (defaultValue2 != null && options.length > 0) {
20855
+ setOptionSelected(resolveSelected(defaultValue2));
20848
20856
  }
20849
- }, [defaultValue2, options]);
20857
+ }, [options]);
20850
20858
  const OptionWithFormat = (optionProps) => /* @__PURE__ */ jsx$1(Option$1, { ...optionProps, formatOption, tooltipProps });
20851
20859
  const SingleValueWithFormat = (singleValueProps) => /* @__PURE__ */ jsx$1(SingleValue2, { ...singleValueProps, getOptionLabel: getOptionLabel4 });
20852
20860
  const MultiValueWithFormat = (multiValueProps) => /* @__PURE__ */ jsx$1(MultiValue2, { ...multiValueProps, formatOption });
@@ -21057,293 +21065,287 @@ const VisibilityIcon = ({ showPassword, setShowPassword }) => {
21057
21065
  return /* @__PURE__ */ jsx$1("div", { "data-testid": "visibility-toggle", onClick: () => setShowPassword(!showPassword), children: showPassword ? /* @__PURE__ */ jsx$1(Visibility, {}) : /* @__PURE__ */ jsx$1(VisibilityOff, {}) });
21058
21066
  };
21059
21067
  var dayjs_min = { exports: {} };
21060
- var hasRequiredDayjs_min;
21061
- function requireDayjs_min() {
21062
- if (hasRequiredDayjs_min) return dayjs_min.exports;
21063
- hasRequiredDayjs_min = 1;
21064
- (function(module, exports) {
21065
- !function(t, e) {
21066
- module.exports = e();
21067
- }(commonjsGlobal, function() {
21068
- var t = 1e3, e = 6e4, n = 36e5, r2 = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
21069
- var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
21070
- return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
21071
- } }, m = function(t2, e2, n2) {
21072
- var r3 = String(t2);
21073
- return !r3 || r3.length >= e2 ? t2 : "" + Array(e2 + 1 - r3.length).join(n2) + t2;
21074
- }, v = { s: m, z: function(t2) {
21075
- var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r3 = Math.floor(n2 / 60), i2 = n2 % 60;
21076
- return (e2 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i2, 2, "0");
21077
- }, m: function t2(e2, n2) {
21078
- if (e2.date() < n2.date()) return -t2(n2, e2);
21079
- var r3 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r3, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r3 + (s2 ? -1 : 1), c);
21080
- return +(-(r3 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
21081
- }, a: function(t2) {
21082
- return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
21083
- }, p: function(t2) {
21084
- return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r2, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
21085
- }, u: function(t2) {
21086
- return void 0 === t2;
21087
- } }, g = "en", D = {};
21088
- D[g] = M;
21089
- var p = "$isDayjsObject", S = function(t2) {
21090
- return t2 instanceof _ || !(!t2 || !t2[p]);
21091
- }, w2 = function t2(e2, n2, r3) {
21092
- var i2;
21093
- if (!e2) return g;
21094
- if ("string" == typeof e2) {
21095
- var s2 = e2.toLowerCase();
21096
- D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
21097
- var u2 = e2.split("-");
21098
- if (!i2 && u2.length > 1) return t2(u2[0]);
21099
- } else {
21100
- var a2 = e2.name;
21101
- D[a2] = e2, i2 = a2;
21102
- }
21103
- return !r3 && i2 && (g = i2), i2 || !r3 && g;
21104
- }, O = function(t2, e2) {
21105
- if (S(t2)) return t2.clone();
21106
- var n2 = "object" == typeof e2 ? e2 : {};
21107
- return n2.date = t2, n2.args = arguments, new _(n2);
21108
- }, b = v;
21109
- b.l = w2, b.i = S, b.w = function(t2, e2) {
21110
- return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
21111
- };
21112
- var _ = function() {
21113
- function M2(t2) {
21114
- this.$L = w2(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
21115
- }
21116
- var m2 = M2.prototype;
21117
- return m2.parse = function(t2) {
21118
- this.$d = function(t3) {
21119
- var e2 = t3.date, n2 = t3.utc;
21120
- if (null === e2) return /* @__PURE__ */ new Date(NaN);
21121
- if (b.u(e2)) return /* @__PURE__ */ new Date();
21122
- if (e2 instanceof Date) return new Date(e2);
21123
- if ("string" == typeof e2 && !/Z$/i.test(e2)) {
21124
- var r3 = e2.match($);
21125
- if (r3) {
21126
- var i2 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
21127
- return n2 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2);
21128
- }
21068
+ (function(module, exports) {
21069
+ !function(t, e) {
21070
+ module.exports = e();
21071
+ }(commonjsGlobal, function() {
21072
+ var t = 1e3, e = 6e4, n = 36e5, r2 = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
21073
+ var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
21074
+ return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
21075
+ } }, m = function(t2, e2, n2) {
21076
+ var r3 = String(t2);
21077
+ return !r3 || r3.length >= e2 ? t2 : "" + Array(e2 + 1 - r3.length).join(n2) + t2;
21078
+ }, v = { s: m, z: function(t2) {
21079
+ var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r3 = Math.floor(n2 / 60), i2 = n2 % 60;
21080
+ return (e2 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i2, 2, "0");
21081
+ }, m: function t2(e2, n2) {
21082
+ if (e2.date() < n2.date()) return -t2(n2, e2);
21083
+ var r3 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r3, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r3 + (s2 ? -1 : 1), c);
21084
+ return +(-(r3 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
21085
+ }, a: function(t2) {
21086
+ return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
21087
+ }, p: function(t2) {
21088
+ return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r2, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
21089
+ }, u: function(t2) {
21090
+ return void 0 === t2;
21091
+ } }, g = "en", D = {};
21092
+ D[g] = M;
21093
+ var p = "$isDayjsObject", S = function(t2) {
21094
+ return t2 instanceof _ || !(!t2 || !t2[p]);
21095
+ }, w2 = function t2(e2, n2, r3) {
21096
+ var i2;
21097
+ if (!e2) return g;
21098
+ if ("string" == typeof e2) {
21099
+ var s2 = e2.toLowerCase();
21100
+ D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
21101
+ var u2 = e2.split("-");
21102
+ if (!i2 && u2.length > 1) return t2(u2[0]);
21103
+ } else {
21104
+ var a2 = e2.name;
21105
+ D[a2] = e2, i2 = a2;
21106
+ }
21107
+ return !r3 && i2 && (g = i2), i2 || !r3 && g;
21108
+ }, O = function(t2, e2) {
21109
+ if (S(t2)) return t2.clone();
21110
+ var n2 = "object" == typeof e2 ? e2 : {};
21111
+ return n2.date = t2, n2.args = arguments, new _(n2);
21112
+ }, b = v;
21113
+ b.l = w2, b.i = S, b.w = function(t2, e2) {
21114
+ return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
21115
+ };
21116
+ var _ = function() {
21117
+ function M2(t2) {
21118
+ this.$L = w2(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
21119
+ }
21120
+ var m2 = M2.prototype;
21121
+ return m2.parse = function(t2) {
21122
+ this.$d = function(t3) {
21123
+ var e2 = t3.date, n2 = t3.utc;
21124
+ if (null === e2) return /* @__PURE__ */ new Date(NaN);
21125
+ if (b.u(e2)) return /* @__PURE__ */ new Date();
21126
+ if (e2 instanceof Date) return new Date(e2);
21127
+ if ("string" == typeof e2 && !/Z$/i.test(e2)) {
21128
+ var r3 = e2.match($);
21129
+ if (r3) {
21130
+ var i2 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
21131
+ return n2 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2);
21129
21132
  }
21130
- return new Date(e2);
21131
- }(t2), this.init();
21132
- }, m2.init = function() {
21133
- var t2 = this.$d;
21134
- this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
21135
- }, m2.$utils = function() {
21136
- return b;
21137
- }, m2.isValid = function() {
21138
- return !(this.$d.toString() === l);
21139
- }, m2.isSame = function(t2, e2) {
21140
- var n2 = O(t2);
21141
- return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
21142
- }, m2.isAfter = function(t2, e2) {
21143
- return O(t2) < this.startOf(e2);
21144
- }, m2.isBefore = function(t2, e2) {
21145
- return this.endOf(e2) < O(t2);
21146
- }, m2.$g = function(t2, e2, n2) {
21147
- return b.u(t2) ? this[e2] : this.set(n2, t2);
21148
- }, m2.unix = function() {
21149
- return Math.floor(this.valueOf() / 1e3);
21150
- }, m2.valueOf = function() {
21151
- return this.$d.getTime();
21152
- }, m2.startOf = function(t2, e2) {
21153
- var n2 = this, r3 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
21154
- var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
21155
- return r3 ? i2 : i2.endOf(a);
21156
- }, $2 = function(t3, e3) {
21157
- return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
21158
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
21159
- switch (f2) {
21160
- case h:
21161
- return r3 ? l2(1, 0) : l2(31, 11);
21162
- case c:
21163
- return r3 ? l2(1, M3) : l2(0, M3 + 1);
21164
- case o:
21165
- var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
21166
- return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
21167
- case a:
21168
- case d:
21169
- return $2(v2 + "Hours", 0);
21170
- case u:
21171
- return $2(v2 + "Minutes", 1);
21172
- case s:
21173
- return $2(v2 + "Seconds", 2);
21174
- case i:
21175
- return $2(v2 + "Milliseconds", 3);
21176
- default:
21177
- return this.clone();
21178
- }
21179
- }, m2.endOf = function(t2) {
21180
- return this.startOf(t2, false);
21181
- }, m2.$set = function(t2, e2) {
21182
- var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r2] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
21183
- if (o2 === c || o2 === h) {
21184
- var y2 = this.clone().set(d, 1);
21185
- y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
21186
- } else l2 && this.$d[l2]($2);
21187
- return this.init(), this;
21188
- }, m2.set = function(t2, e2) {
21189
- return this.clone().$set(t2, e2);
21190
- }, m2.get = function(t2) {
21191
- return this[b.p(t2)]();
21192
- }, m2.add = function(r3, f2) {
21193
- var d2, l2 = this;
21194
- r3 = Number(r3);
21195
- var $2 = b.p(f2), y2 = function(t2) {
21196
- var e2 = O(l2);
21197
- return b.w(e2.date(e2.date() + Math.round(t2 * r3)), l2);
21198
- };
21199
- if ($2 === c) return this.set(c, this.$M + r3);
21200
- if ($2 === h) return this.set(h, this.$y + r3);
21201
- if ($2 === a) return y2(1);
21202
- if ($2 === o) return y2(7);
21203
- var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
21204
- return b.w(m3, this);
21205
- }, m2.subtract = function(t2, e2) {
21206
- return this.add(-1 * t2, e2);
21207
- }, m2.format = function(t2) {
21208
- var e2 = this, n2 = this.$locale();
21209
- if (!this.isValid()) return n2.invalidDate || l;
21210
- var r3 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
21211
- return t3 && (t3[n3] || t3(e2, r3)) || i3[n3].slice(0, s3);
21212
- }, d2 = function(t3) {
21213
- return b.s(s2 % 12 || 12, t3, "0");
21214
- }, $2 = f2 || function(t3, e3, n3) {
21215
- var r4 = t3 < 12 ? "AM" : "PM";
21216
- return n3 ? r4.toLowerCase() : r4;
21217
- };
21218
- return r3.replace(y, function(t3, r4) {
21219
- return r4 || function(t4) {
21220
- switch (t4) {
21221
- case "YY":
21222
- return String(e2.$y).slice(-2);
21223
- case "YYYY":
21224
- return b.s(e2.$y, 4, "0");
21225
- case "M":
21226
- return a2 + 1;
21227
- case "MM":
21228
- return b.s(a2 + 1, 2, "0");
21229
- case "MMM":
21230
- return h2(n2.monthsShort, a2, c2, 3);
21231
- case "MMMM":
21232
- return h2(c2, a2);
21233
- case "D":
21234
- return e2.$D;
21235
- case "DD":
21236
- return b.s(e2.$D, 2, "0");
21237
- case "d":
21238
- return String(e2.$W);
21239
- case "dd":
21240
- return h2(n2.weekdaysMin, e2.$W, o2, 2);
21241
- case "ddd":
21242
- return h2(n2.weekdaysShort, e2.$W, o2, 3);
21243
- case "dddd":
21244
- return o2[e2.$W];
21245
- case "H":
21246
- return String(s2);
21247
- case "HH":
21248
- return b.s(s2, 2, "0");
21249
- case "h":
21250
- return d2(1);
21251
- case "hh":
21252
- return d2(2);
21253
- case "a":
21254
- return $2(s2, u2, true);
21255
- case "A":
21256
- return $2(s2, u2, false);
21257
- case "m":
21258
- return String(u2);
21259
- case "mm":
21260
- return b.s(u2, 2, "0");
21261
- case "s":
21262
- return String(e2.$s);
21263
- case "ss":
21264
- return b.s(e2.$s, 2, "0");
21265
- case "SSS":
21266
- return b.s(e2.$ms, 3, "0");
21267
- case "Z":
21268
- return i2;
21269
- }
21270
- return null;
21271
- }(t3) || i2.replace(":", "");
21272
- });
21273
- }, m2.utcOffset = function() {
21274
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
21275
- }, m2.diff = function(r3, d2, l2) {
21276
- var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
21277
- return b.m(y2, m3);
21278
- };
21279
- switch (M3) {
21280
- case h:
21281
- $2 = D2() / 12;
21282
- break;
21283
- case c:
21284
- $2 = D2();
21285
- break;
21286
- case f:
21287
- $2 = D2() / 3;
21288
- break;
21289
- case o:
21290
- $2 = (g2 - v2) / 6048e5;
21291
- break;
21292
- case a:
21293
- $2 = (g2 - v2) / 864e5;
21294
- break;
21295
- case u:
21296
- $2 = g2 / n;
21297
- break;
21298
- case s:
21299
- $2 = g2 / e;
21300
- break;
21301
- case i:
21302
- $2 = g2 / t;
21303
- break;
21304
- default:
21305
- $2 = g2;
21306
21133
  }
21307
- return l2 ? $2 : b.a($2);
21308
- }, m2.daysInMonth = function() {
21309
- return this.endOf(c).$D;
21310
- }, m2.$locale = function() {
21311
- return D[this.$L];
21312
- }, m2.locale = function(t2, e2) {
21313
- if (!t2) return this.$L;
21314
- var n2 = this.clone(), r3 = w2(t2, e2, true);
21315
- return r3 && (n2.$L = r3), n2;
21316
- }, m2.clone = function() {
21317
- return b.w(this.$d, this);
21318
- }, m2.toDate = function() {
21319
- return new Date(this.valueOf());
21320
- }, m2.toJSON = function() {
21321
- return this.isValid() ? this.toISOString() : null;
21322
- }, m2.toISOString = function() {
21323
- return this.$d.toISOString();
21324
- }, m2.toString = function() {
21325
- return this.$d.toUTCString();
21326
- }, M2;
21327
- }(), k = _.prototype;
21328
- return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
21329
- k[t2[1]] = function(e2) {
21330
- return this.$g(e2, t2[0], t2[1]);
21134
+ return new Date(e2);
21135
+ }(t2), this.init();
21136
+ }, m2.init = function() {
21137
+ var t2 = this.$d;
21138
+ this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
21139
+ }, m2.$utils = function() {
21140
+ return b;
21141
+ }, m2.isValid = function() {
21142
+ return !(this.$d.toString() === l);
21143
+ }, m2.isSame = function(t2, e2) {
21144
+ var n2 = O(t2);
21145
+ return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
21146
+ }, m2.isAfter = function(t2, e2) {
21147
+ return O(t2) < this.startOf(e2);
21148
+ }, m2.isBefore = function(t2, e2) {
21149
+ return this.endOf(e2) < O(t2);
21150
+ }, m2.$g = function(t2, e2, n2) {
21151
+ return b.u(t2) ? this[e2] : this.set(n2, t2);
21152
+ }, m2.unix = function() {
21153
+ return Math.floor(this.valueOf() / 1e3);
21154
+ }, m2.valueOf = function() {
21155
+ return this.$d.getTime();
21156
+ }, m2.startOf = function(t2, e2) {
21157
+ var n2 = this, r3 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
21158
+ var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
21159
+ return r3 ? i2 : i2.endOf(a);
21160
+ }, $2 = function(t3, e3) {
21161
+ return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
21162
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
21163
+ switch (f2) {
21164
+ case h:
21165
+ return r3 ? l2(1, 0) : l2(31, 11);
21166
+ case c:
21167
+ return r3 ? l2(1, M3) : l2(0, M3 + 1);
21168
+ case o:
21169
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
21170
+ return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
21171
+ case a:
21172
+ case d:
21173
+ return $2(v2 + "Hours", 0);
21174
+ case u:
21175
+ return $2(v2 + "Minutes", 1);
21176
+ case s:
21177
+ return $2(v2 + "Seconds", 2);
21178
+ case i:
21179
+ return $2(v2 + "Milliseconds", 3);
21180
+ default:
21181
+ return this.clone();
21182
+ }
21183
+ }, m2.endOf = function(t2) {
21184
+ return this.startOf(t2, false);
21185
+ }, m2.$set = function(t2, e2) {
21186
+ var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r2] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
21187
+ if (o2 === c || o2 === h) {
21188
+ var y2 = this.clone().set(d, 1);
21189
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
21190
+ } else l2 && this.$d[l2]($2);
21191
+ return this.init(), this;
21192
+ }, m2.set = function(t2, e2) {
21193
+ return this.clone().$set(t2, e2);
21194
+ }, m2.get = function(t2) {
21195
+ return this[b.p(t2)]();
21196
+ }, m2.add = function(r3, f2) {
21197
+ var d2, l2 = this;
21198
+ r3 = Number(r3);
21199
+ var $2 = b.p(f2), y2 = function(t2) {
21200
+ var e2 = O(l2);
21201
+ return b.w(e2.date(e2.date() + Math.round(t2 * r3)), l2);
21331
21202
  };
21332
- }), O.extend = function(t2, e2) {
21333
- return t2.$i || (t2(e2, _, O), t2.$i = true), O;
21334
- }, O.locale = w2, O.isDayjs = S, O.unix = function(t2) {
21335
- return O(1e3 * t2);
21336
- }, O.en = D[g], O.Ls = D, O.p = {}, O;
21337
- });
21338
- })(dayjs_min);
21339
- return dayjs_min.exports;
21340
- }
21341
- var dayjs_minExports = requireDayjs_min();
21203
+ if ($2 === c) return this.set(c, this.$M + r3);
21204
+ if ($2 === h) return this.set(h, this.$y + r3);
21205
+ if ($2 === a) return y2(1);
21206
+ if ($2 === o) return y2(7);
21207
+ var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
21208
+ return b.w(m3, this);
21209
+ }, m2.subtract = function(t2, e2) {
21210
+ return this.add(-1 * t2, e2);
21211
+ }, m2.format = function(t2) {
21212
+ var e2 = this, n2 = this.$locale();
21213
+ if (!this.isValid()) return n2.invalidDate || l;
21214
+ var r3 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
21215
+ return t3 && (t3[n3] || t3(e2, r3)) || i3[n3].slice(0, s3);
21216
+ }, d2 = function(t3) {
21217
+ return b.s(s2 % 12 || 12, t3, "0");
21218
+ }, $2 = f2 || function(t3, e3, n3) {
21219
+ var r4 = t3 < 12 ? "AM" : "PM";
21220
+ return n3 ? r4.toLowerCase() : r4;
21221
+ };
21222
+ return r3.replace(y, function(t3, r4) {
21223
+ return r4 || function(t4) {
21224
+ switch (t4) {
21225
+ case "YY":
21226
+ return String(e2.$y).slice(-2);
21227
+ case "YYYY":
21228
+ return b.s(e2.$y, 4, "0");
21229
+ case "M":
21230
+ return a2 + 1;
21231
+ case "MM":
21232
+ return b.s(a2 + 1, 2, "0");
21233
+ case "MMM":
21234
+ return h2(n2.monthsShort, a2, c2, 3);
21235
+ case "MMMM":
21236
+ return h2(c2, a2);
21237
+ case "D":
21238
+ return e2.$D;
21239
+ case "DD":
21240
+ return b.s(e2.$D, 2, "0");
21241
+ case "d":
21242
+ return String(e2.$W);
21243
+ case "dd":
21244
+ return h2(n2.weekdaysMin, e2.$W, o2, 2);
21245
+ case "ddd":
21246
+ return h2(n2.weekdaysShort, e2.$W, o2, 3);
21247
+ case "dddd":
21248
+ return o2[e2.$W];
21249
+ case "H":
21250
+ return String(s2);
21251
+ case "HH":
21252
+ return b.s(s2, 2, "0");
21253
+ case "h":
21254
+ return d2(1);
21255
+ case "hh":
21256
+ return d2(2);
21257
+ case "a":
21258
+ return $2(s2, u2, true);
21259
+ case "A":
21260
+ return $2(s2, u2, false);
21261
+ case "m":
21262
+ return String(u2);
21263
+ case "mm":
21264
+ return b.s(u2, 2, "0");
21265
+ case "s":
21266
+ return String(e2.$s);
21267
+ case "ss":
21268
+ return b.s(e2.$s, 2, "0");
21269
+ case "SSS":
21270
+ return b.s(e2.$ms, 3, "0");
21271
+ case "Z":
21272
+ return i2;
21273
+ }
21274
+ return null;
21275
+ }(t3) || i2.replace(":", "");
21276
+ });
21277
+ }, m2.utcOffset = function() {
21278
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
21279
+ }, m2.diff = function(r3, d2, l2) {
21280
+ var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
21281
+ return b.m(y2, m3);
21282
+ };
21283
+ switch (M3) {
21284
+ case h:
21285
+ $2 = D2() / 12;
21286
+ break;
21287
+ case c:
21288
+ $2 = D2();
21289
+ break;
21290
+ case f:
21291
+ $2 = D2() / 3;
21292
+ break;
21293
+ case o:
21294
+ $2 = (g2 - v2) / 6048e5;
21295
+ break;
21296
+ case a:
21297
+ $2 = (g2 - v2) / 864e5;
21298
+ break;
21299
+ case u:
21300
+ $2 = g2 / n;
21301
+ break;
21302
+ case s:
21303
+ $2 = g2 / e;
21304
+ break;
21305
+ case i:
21306
+ $2 = g2 / t;
21307
+ break;
21308
+ default:
21309
+ $2 = g2;
21310
+ }
21311
+ return l2 ? $2 : b.a($2);
21312
+ }, m2.daysInMonth = function() {
21313
+ return this.endOf(c).$D;
21314
+ }, m2.$locale = function() {
21315
+ return D[this.$L];
21316
+ }, m2.locale = function(t2, e2) {
21317
+ if (!t2) return this.$L;
21318
+ var n2 = this.clone(), r3 = w2(t2, e2, true);
21319
+ return r3 && (n2.$L = r3), n2;
21320
+ }, m2.clone = function() {
21321
+ return b.w(this.$d, this);
21322
+ }, m2.toDate = function() {
21323
+ return new Date(this.valueOf());
21324
+ }, m2.toJSON = function() {
21325
+ return this.isValid() ? this.toISOString() : null;
21326
+ }, m2.toISOString = function() {
21327
+ return this.$d.toISOString();
21328
+ }, m2.toString = function() {
21329
+ return this.$d.toUTCString();
21330
+ }, M2;
21331
+ }(), k = _.prototype;
21332
+ return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
21333
+ k[t2[1]] = function(e2) {
21334
+ return this.$g(e2, t2[0], t2[1]);
21335
+ };
21336
+ }), O.extend = function(t2, e2) {
21337
+ return t2.$i || (t2(e2, _, O), t2.$i = true), O;
21338
+ }, O.locale = w2, O.isDayjs = S, O.unix = function(t2) {
21339
+ return O(1e3 * t2);
21340
+ }, O.en = D[g], O.Ls = D, O.p = {}, O;
21341
+ });
21342
+ })(dayjs_min);
21343
+ var dayjs_minExports = dayjs_min.exports;
21342
21344
  const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
21343
21345
  var es$2 = { exports: {} };
21344
21346
  (function(module, exports) {
21345
21347
  !function(e, o) {
21346
- module.exports = o(requireDayjs_min());
21348
+ module.exports = o(dayjs_minExports);
21347
21349
  }(commonjsGlobal, function(e) {
21348
21350
  function o(e2) {
21349
21351
  return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
@@ -68520,6 +68522,7 @@ const MenuAction = ({
68520
68522
  const title$1 = "warningModal-module_title_kZiTR";
68521
68523
  const styles$6 = {
68522
68524
  "custom-header": "warningModal-module_custom-header_kflIT",
68525
+ "help-container": "warningModal-module_help-container_hsnyD",
68523
68526
  "header-icon": "warningModal-module_header-icon_qOIRS",
68524
68527
  title: title$1,
68525
68528
  "warning-modal": "warningModal-module_warning-modal_Nlamu",
@@ -68555,7 +68558,7 @@ const WarningModalBase = ({
68555
68558
  ariaLabel: typeof title2 === "string" ? title2 : void 0,
68556
68559
  children: [
68557
68560
  /* @__PURE__ */ jsxs("div", { className: styles$6["custom-header"], children: [
68558
- /* @__PURE__ */ jsx$1(HelpArticleLink, { href: helpArticleHref, tooltip: locale("guide") }),
68561
+ /* @__PURE__ */ jsx$1("div", { className: styles$6["help-container"], children: /* @__PURE__ */ jsx$1(HelpArticleLink, { href: helpArticleHref, tooltip: locale("guide") }) }),
68559
68562
  /* @__PURE__ */ jsxs("div", { className: styles$6["header-icon"], children: [
68560
68563
  !!icon2 ? icon2 : DefaultIcon,
68561
68564
  /* @__PURE__ */ jsx$1("div", { className: styles$6["title"], children: title2 })