@producteca/producteca-ui-kit 1.78.1 → 1.78.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/patterns/pickChannelModal/pickChannelModal.examples.d.ts +1 -0
- package/dist/components/patterns/pickChannelModal/pickChannelModal.types.d.ts +2 -0
- package/dist/locales/description.d.ts +2 -1
- package/dist/locales/es.d.ts +2 -0
- package/dist/producteca-ui-kit.es.js +294 -291
- package/dist/producteca-ui-kit.umd.js +31 -31
- package/package.json +1 -1
|
@@ -19709,7 +19709,7 @@ El componente \`ConditionalOperator\` permite elegir entre operador lógico "Y"
|
|
|
19709
19709
|
const pickChannelModalExample = `
|
|
19710
19710
|
## Uso del componente
|
|
19711
19711
|
|
|
19712
|
-
El componente \`PickChannelModal\` muestra un modal con una grilla de canales seleccionables. Recibe el listado \`channels\` con \`{ clientId, iconUrl, name? }\`. Opcionalmente, mediante \`showGeneralEdition\`, agrega una sección superior con la opción Producteca (exportada como \`productecaStrategy\`) para editar atributos generales — se comporta como un canal más y se notifica por el mismo \`onSelectChannel\`. El header acepta cualquier \`ModalTitleProps\` vía \`titleProps\` (\`title\`, \`icon\`, \`subtitle\`, \`helpArticleUrl\`, \`helpTooltip\`).
|
|
19712
|
+
El componente \`PickChannelModal\` muestra un modal con una grilla de canales seleccionables. Recibe el listado \`channels\` con \`{ clientId, iconUrl, name?, disabled?, tooltipMessage? }\`. Un canal con \`disabled\` se muestra atenuado y no dispara \`onSelectChannel\` al clickearlo; \`tooltipMessage\` agrega un tooltip a la card, visible al pasar el mouse. Opcionalmente, mediante \`showGeneralEdition\`, agrega una sección superior con la opción Producteca (exportada como \`productecaStrategy\`) para editar atributos generales — se comporta como un canal más y se notifica por el mismo \`onSelectChannel\`. El header acepta cualquier \`ModalTitleProps\` vía \`titleProps\` (\`title\`, \`icon\`, \`subtitle\`, \`helpArticleUrl\`, \`helpTooltip\`).
|
|
19713
19713
|
|
|
19714
19714
|
### Ejemplo básico:
|
|
19715
19715
|
|
|
@@ -19747,6 +19747,9 @@ Muestra el modal con una gran cantidad de canales para verificar que el contenid
|
|
|
19747
19747
|
const pickChannelModalWithoutText = `
|
|
19748
19748
|
Sin \`channelEditionTitle\` ni \`channelEditionDescription\` (ni los textos de edición general): los \`<h3>\` y \`<p>\` no se renderizan y la grilla de cards queda sin margen superior. Verifica el render condicional de los textos opcionales y el margen condicional del grid.
|
|
19749
19749
|
`;
|
|
19750
|
+
const pickChannelModalWithDisabledChannel = `
|
|
19751
|
+
Uno de los canales se pasa con \`disabled\` y \`tooltipMessage\`: la card se muestra atenuada, no dispara \`onSelectChannel\` al clickearla y expone un tooltip explicando el motivo al pasar el mouse.
|
|
19752
|
+
`;
|
|
19750
19753
|
const emptyStateExample = `
|
|
19751
19754
|
## Uso del componente
|
|
19752
19755
|
|
|
@@ -20162,7 +20165,8 @@ const es$3 = {
|
|
|
20162
20165
|
customTexts: pickChannelModalCustomTexts,
|
|
20163
20166
|
withFullTitle: pickChannelModalWithFullTitle,
|
|
20164
20167
|
scrollableContent: pickChannelModalScrollableContent,
|
|
20165
|
-
withoutText: pickChannelModalWithoutText
|
|
20168
|
+
withoutText: pickChannelModalWithoutText,
|
|
20169
|
+
withDisabledChannel: pickChannelModalWithDisabledChannel
|
|
20166
20170
|
},
|
|
20167
20171
|
copyButton: {
|
|
20168
20172
|
example: copyButtonExample
|
|
@@ -20350,6 +20354,7 @@ const es$3 = {
|
|
|
20350
20354
|
channelEditionDescription: "Edita los atributos específicos y obligatorios según la categoría del canal",
|
|
20351
20355
|
channelName: "Cuenta {{number}}",
|
|
20352
20356
|
openModal: "Abrir selector de canales",
|
|
20357
|
+
disabledChannelTooltip: "Este canal está deshabilitado. Pasa el mouse para más información.",
|
|
20353
20358
|
fullTitle: {
|
|
20354
20359
|
title: "Editar atributos del producto",
|
|
20355
20360
|
subtitle: "Seleccioná en qué canal querés editar los atributos",
|
|
@@ -21065,293 +21070,287 @@ const VisibilityIcon = ({ showPassword, setShowPassword }) => {
|
|
|
21065
21070
|
return /* @__PURE__ */ jsx$1("div", { "data-testid": "visibility-toggle", onClick: () => setShowPassword(!showPassword), children: showPassword ? /* @__PURE__ */ jsx$1(Visibility, {}) : /* @__PURE__ */ jsx$1(VisibilityOff, {}) });
|
|
21066
21071
|
};
|
|
21067
21072
|
var dayjs_min = { exports: {} };
|
|
21068
|
-
|
|
21069
|
-
function
|
|
21070
|
-
|
|
21071
|
-
|
|
21072
|
-
|
|
21073
|
-
|
|
21074
|
-
|
|
21075
|
-
}
|
|
21076
|
-
var
|
|
21077
|
-
|
|
21078
|
-
|
|
21079
|
-
|
|
21080
|
-
|
|
21081
|
-
|
|
21082
|
-
|
|
21083
|
-
|
|
21084
|
-
|
|
21085
|
-
|
|
21086
|
-
|
|
21087
|
-
|
|
21088
|
-
|
|
21089
|
-
|
|
21090
|
-
|
|
21091
|
-
|
|
21092
|
-
|
|
21093
|
-
|
|
21094
|
-
|
|
21095
|
-
|
|
21096
|
-
|
|
21097
|
-
|
|
21098
|
-
|
|
21099
|
-
|
|
21100
|
-
|
|
21101
|
-
|
|
21102
|
-
if (
|
|
21103
|
-
|
|
21104
|
-
|
|
21105
|
-
|
|
21106
|
-
|
|
21107
|
-
|
|
21108
|
-
|
|
21109
|
-
|
|
21110
|
-
|
|
21111
|
-
|
|
21112
|
-
|
|
21113
|
-
|
|
21114
|
-
|
|
21115
|
-
|
|
21116
|
-
|
|
21117
|
-
|
|
21118
|
-
|
|
21119
|
-
}
|
|
21120
|
-
var
|
|
21121
|
-
|
|
21122
|
-
|
|
21123
|
-
|
|
21124
|
-
|
|
21125
|
-
|
|
21126
|
-
|
|
21127
|
-
|
|
21128
|
-
|
|
21129
|
-
if (
|
|
21130
|
-
|
|
21131
|
-
|
|
21132
|
-
var r3 = e2.match($);
|
|
21133
|
-
if (r3) {
|
|
21134
|
-
var i2 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
|
|
21135
|
-
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);
|
|
21136
|
-
}
|
|
21073
|
+
(function(module, exports) {
|
|
21074
|
+
!function(t, e) {
|
|
21075
|
+
module.exports = e();
|
|
21076
|
+
}(commonjsGlobal, function() {
|
|
21077
|
+
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) {
|
|
21078
|
+
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
|
21079
|
+
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
|
21080
|
+
} }, m = function(t2, e2, n2) {
|
|
21081
|
+
var r3 = String(t2);
|
|
21082
|
+
return !r3 || r3.length >= e2 ? t2 : "" + Array(e2 + 1 - r3.length).join(n2) + t2;
|
|
21083
|
+
}, v = { s: m, z: function(t2) {
|
|
21084
|
+
var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r3 = Math.floor(n2 / 60), i2 = n2 % 60;
|
|
21085
|
+
return (e2 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i2, 2, "0");
|
|
21086
|
+
}, m: function t2(e2, n2) {
|
|
21087
|
+
if (e2.date() < n2.date()) return -t2(n2, e2);
|
|
21088
|
+
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);
|
|
21089
|
+
return +(-(r3 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
21090
|
+
}, a: function(t2) {
|
|
21091
|
+
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
21092
|
+
}, p: function(t2) {
|
|
21093
|
+
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$/, "");
|
|
21094
|
+
}, u: function(t2) {
|
|
21095
|
+
return void 0 === t2;
|
|
21096
|
+
} }, g = "en", D = {};
|
|
21097
|
+
D[g] = M;
|
|
21098
|
+
var p = "$isDayjsObject", S = function(t2) {
|
|
21099
|
+
return t2 instanceof _ || !(!t2 || !t2[p]);
|
|
21100
|
+
}, w2 = function t2(e2, n2, r3) {
|
|
21101
|
+
var i2;
|
|
21102
|
+
if (!e2) return g;
|
|
21103
|
+
if ("string" == typeof e2) {
|
|
21104
|
+
var s2 = e2.toLowerCase();
|
|
21105
|
+
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
21106
|
+
var u2 = e2.split("-");
|
|
21107
|
+
if (!i2 && u2.length > 1) return t2(u2[0]);
|
|
21108
|
+
} else {
|
|
21109
|
+
var a2 = e2.name;
|
|
21110
|
+
D[a2] = e2, i2 = a2;
|
|
21111
|
+
}
|
|
21112
|
+
return !r3 && i2 && (g = i2), i2 || !r3 && g;
|
|
21113
|
+
}, O = function(t2, e2) {
|
|
21114
|
+
if (S(t2)) return t2.clone();
|
|
21115
|
+
var n2 = "object" == typeof e2 ? e2 : {};
|
|
21116
|
+
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
21117
|
+
}, b = v;
|
|
21118
|
+
b.l = w2, b.i = S, b.w = function(t2, e2) {
|
|
21119
|
+
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
21120
|
+
};
|
|
21121
|
+
var _ = function() {
|
|
21122
|
+
function M2(t2) {
|
|
21123
|
+
this.$L = w2(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
|
|
21124
|
+
}
|
|
21125
|
+
var m2 = M2.prototype;
|
|
21126
|
+
return m2.parse = function(t2) {
|
|
21127
|
+
this.$d = function(t3) {
|
|
21128
|
+
var e2 = t3.date, n2 = t3.utc;
|
|
21129
|
+
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
21130
|
+
if (b.u(e2)) return /* @__PURE__ */ new Date();
|
|
21131
|
+
if (e2 instanceof Date) return new Date(e2);
|
|
21132
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
21133
|
+
var r3 = e2.match($);
|
|
21134
|
+
if (r3) {
|
|
21135
|
+
var i2 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
|
|
21136
|
+
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);
|
|
21137
21137
|
}
|
|
21138
|
-
return new Date(e2);
|
|
21139
|
-
}(t2), this.init();
|
|
21140
|
-
}, m2.init = function() {
|
|
21141
|
-
var t2 = this.$d;
|
|
21142
|
-
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();
|
|
21143
|
-
}, m2.$utils = function() {
|
|
21144
|
-
return b;
|
|
21145
|
-
}, m2.isValid = function() {
|
|
21146
|
-
return !(this.$d.toString() === l);
|
|
21147
|
-
}, m2.isSame = function(t2, e2) {
|
|
21148
|
-
var n2 = O(t2);
|
|
21149
|
-
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
21150
|
-
}, m2.isAfter = function(t2, e2) {
|
|
21151
|
-
return O(t2) < this.startOf(e2);
|
|
21152
|
-
}, m2.isBefore = function(t2, e2) {
|
|
21153
|
-
return this.endOf(e2) < O(t2);
|
|
21154
|
-
}, m2.$g = function(t2, e2, n2) {
|
|
21155
|
-
return b.u(t2) ? this[e2] : this.set(n2, t2);
|
|
21156
|
-
}, m2.unix = function() {
|
|
21157
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
21158
|
-
}, m2.valueOf = function() {
|
|
21159
|
-
return this.$d.getTime();
|
|
21160
|
-
}, m2.startOf = function(t2, e2) {
|
|
21161
|
-
var n2 = this, r3 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
|
21162
|
-
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
21163
|
-
return r3 ? i2 : i2.endOf(a);
|
|
21164
|
-
}, $2 = function(t3, e3) {
|
|
21165
|
-
return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
21166
|
-
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
21167
|
-
switch (f2) {
|
|
21168
|
-
case h:
|
|
21169
|
-
return r3 ? l2(1, 0) : l2(31, 11);
|
|
21170
|
-
case c:
|
|
21171
|
-
return r3 ? l2(1, M3) : l2(0, M3 + 1);
|
|
21172
|
-
case o:
|
|
21173
|
-
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
21174
|
-
return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
21175
|
-
case a:
|
|
21176
|
-
case d:
|
|
21177
|
-
return $2(v2 + "Hours", 0);
|
|
21178
|
-
case u:
|
|
21179
|
-
return $2(v2 + "Minutes", 1);
|
|
21180
|
-
case s:
|
|
21181
|
-
return $2(v2 + "Seconds", 2);
|
|
21182
|
-
case i:
|
|
21183
|
-
return $2(v2 + "Milliseconds", 3);
|
|
21184
|
-
default:
|
|
21185
|
-
return this.clone();
|
|
21186
|
-
}
|
|
21187
|
-
}, m2.endOf = function(t2) {
|
|
21188
|
-
return this.startOf(t2, false);
|
|
21189
|
-
}, m2.$set = function(t2, e2) {
|
|
21190
|
-
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;
|
|
21191
|
-
if (o2 === c || o2 === h) {
|
|
21192
|
-
var y2 = this.clone().set(d, 1);
|
|
21193
|
-
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
21194
|
-
} else l2 && this.$d[l2]($2);
|
|
21195
|
-
return this.init(), this;
|
|
21196
|
-
}, m2.set = function(t2, e2) {
|
|
21197
|
-
return this.clone().$set(t2, e2);
|
|
21198
|
-
}, m2.get = function(t2) {
|
|
21199
|
-
return this[b.p(t2)]();
|
|
21200
|
-
}, m2.add = function(r3, f2) {
|
|
21201
|
-
var d2, l2 = this;
|
|
21202
|
-
r3 = Number(r3);
|
|
21203
|
-
var $2 = b.p(f2), y2 = function(t2) {
|
|
21204
|
-
var e2 = O(l2);
|
|
21205
|
-
return b.w(e2.date(e2.date() + Math.round(t2 * r3)), l2);
|
|
21206
|
-
};
|
|
21207
|
-
if ($2 === c) return this.set(c, this.$M + r3);
|
|
21208
|
-
if ($2 === h) return this.set(h, this.$y + r3);
|
|
21209
|
-
if ($2 === a) return y2(1);
|
|
21210
|
-
if ($2 === o) return y2(7);
|
|
21211
|
-
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
|
|
21212
|
-
return b.w(m3, this);
|
|
21213
|
-
}, m2.subtract = function(t2, e2) {
|
|
21214
|
-
return this.add(-1 * t2, e2);
|
|
21215
|
-
}, m2.format = function(t2) {
|
|
21216
|
-
var e2 = this, n2 = this.$locale();
|
|
21217
|
-
if (!this.isValid()) return n2.invalidDate || l;
|
|
21218
|
-
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) {
|
|
21219
|
-
return t3 && (t3[n3] || t3(e2, r3)) || i3[n3].slice(0, s3);
|
|
21220
|
-
}, d2 = function(t3) {
|
|
21221
|
-
return b.s(s2 % 12 || 12, t3, "0");
|
|
21222
|
-
}, $2 = f2 || function(t3, e3, n3) {
|
|
21223
|
-
var r4 = t3 < 12 ? "AM" : "PM";
|
|
21224
|
-
return n3 ? r4.toLowerCase() : r4;
|
|
21225
|
-
};
|
|
21226
|
-
return r3.replace(y, function(t3, r4) {
|
|
21227
|
-
return r4 || function(t4) {
|
|
21228
|
-
switch (t4) {
|
|
21229
|
-
case "YY":
|
|
21230
|
-
return String(e2.$y).slice(-2);
|
|
21231
|
-
case "YYYY":
|
|
21232
|
-
return b.s(e2.$y, 4, "0");
|
|
21233
|
-
case "M":
|
|
21234
|
-
return a2 + 1;
|
|
21235
|
-
case "MM":
|
|
21236
|
-
return b.s(a2 + 1, 2, "0");
|
|
21237
|
-
case "MMM":
|
|
21238
|
-
return h2(n2.monthsShort, a2, c2, 3);
|
|
21239
|
-
case "MMMM":
|
|
21240
|
-
return h2(c2, a2);
|
|
21241
|
-
case "D":
|
|
21242
|
-
return e2.$D;
|
|
21243
|
-
case "DD":
|
|
21244
|
-
return b.s(e2.$D, 2, "0");
|
|
21245
|
-
case "d":
|
|
21246
|
-
return String(e2.$W);
|
|
21247
|
-
case "dd":
|
|
21248
|
-
return h2(n2.weekdaysMin, e2.$W, o2, 2);
|
|
21249
|
-
case "ddd":
|
|
21250
|
-
return h2(n2.weekdaysShort, e2.$W, o2, 3);
|
|
21251
|
-
case "dddd":
|
|
21252
|
-
return o2[e2.$W];
|
|
21253
|
-
case "H":
|
|
21254
|
-
return String(s2);
|
|
21255
|
-
case "HH":
|
|
21256
|
-
return b.s(s2, 2, "0");
|
|
21257
|
-
case "h":
|
|
21258
|
-
return d2(1);
|
|
21259
|
-
case "hh":
|
|
21260
|
-
return d2(2);
|
|
21261
|
-
case "a":
|
|
21262
|
-
return $2(s2, u2, true);
|
|
21263
|
-
case "A":
|
|
21264
|
-
return $2(s2, u2, false);
|
|
21265
|
-
case "m":
|
|
21266
|
-
return String(u2);
|
|
21267
|
-
case "mm":
|
|
21268
|
-
return b.s(u2, 2, "0");
|
|
21269
|
-
case "s":
|
|
21270
|
-
return String(e2.$s);
|
|
21271
|
-
case "ss":
|
|
21272
|
-
return b.s(e2.$s, 2, "0");
|
|
21273
|
-
case "SSS":
|
|
21274
|
-
return b.s(e2.$ms, 3, "0");
|
|
21275
|
-
case "Z":
|
|
21276
|
-
return i2;
|
|
21277
|
-
}
|
|
21278
|
-
return null;
|
|
21279
|
-
}(t3) || i2.replace(":", "");
|
|
21280
|
-
});
|
|
21281
|
-
}, m2.utcOffset = function() {
|
|
21282
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
21283
|
-
}, m2.diff = function(r3, d2, l2) {
|
|
21284
|
-
var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
21285
|
-
return b.m(y2, m3);
|
|
21286
|
-
};
|
|
21287
|
-
switch (M3) {
|
|
21288
|
-
case h:
|
|
21289
|
-
$2 = D2() / 12;
|
|
21290
|
-
break;
|
|
21291
|
-
case c:
|
|
21292
|
-
$2 = D2();
|
|
21293
|
-
break;
|
|
21294
|
-
case f:
|
|
21295
|
-
$2 = D2() / 3;
|
|
21296
|
-
break;
|
|
21297
|
-
case o:
|
|
21298
|
-
$2 = (g2 - v2) / 6048e5;
|
|
21299
|
-
break;
|
|
21300
|
-
case a:
|
|
21301
|
-
$2 = (g2 - v2) / 864e5;
|
|
21302
|
-
break;
|
|
21303
|
-
case u:
|
|
21304
|
-
$2 = g2 / n;
|
|
21305
|
-
break;
|
|
21306
|
-
case s:
|
|
21307
|
-
$2 = g2 / e;
|
|
21308
|
-
break;
|
|
21309
|
-
case i:
|
|
21310
|
-
$2 = g2 / t;
|
|
21311
|
-
break;
|
|
21312
|
-
default:
|
|
21313
|
-
$2 = g2;
|
|
21314
21138
|
}
|
|
21315
|
-
return
|
|
21316
|
-
},
|
|
21317
|
-
|
|
21318
|
-
|
|
21319
|
-
|
|
21320
|
-
|
|
21321
|
-
|
|
21322
|
-
|
|
21323
|
-
|
|
21324
|
-
|
|
21325
|
-
|
|
21326
|
-
|
|
21327
|
-
|
|
21328
|
-
|
|
21329
|
-
|
|
21330
|
-
|
|
21331
|
-
|
|
21332
|
-
|
|
21333
|
-
|
|
21334
|
-
|
|
21335
|
-
}
|
|
21336
|
-
|
|
21337
|
-
|
|
21338
|
-
|
|
21139
|
+
return new Date(e2);
|
|
21140
|
+
}(t2), this.init();
|
|
21141
|
+
}, m2.init = function() {
|
|
21142
|
+
var t2 = this.$d;
|
|
21143
|
+
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();
|
|
21144
|
+
}, m2.$utils = function() {
|
|
21145
|
+
return b;
|
|
21146
|
+
}, m2.isValid = function() {
|
|
21147
|
+
return !(this.$d.toString() === l);
|
|
21148
|
+
}, m2.isSame = function(t2, e2) {
|
|
21149
|
+
var n2 = O(t2);
|
|
21150
|
+
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
21151
|
+
}, m2.isAfter = function(t2, e2) {
|
|
21152
|
+
return O(t2) < this.startOf(e2);
|
|
21153
|
+
}, m2.isBefore = function(t2, e2) {
|
|
21154
|
+
return this.endOf(e2) < O(t2);
|
|
21155
|
+
}, m2.$g = function(t2, e2, n2) {
|
|
21156
|
+
return b.u(t2) ? this[e2] : this.set(n2, t2);
|
|
21157
|
+
}, m2.unix = function() {
|
|
21158
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
21159
|
+
}, m2.valueOf = function() {
|
|
21160
|
+
return this.$d.getTime();
|
|
21161
|
+
}, m2.startOf = function(t2, e2) {
|
|
21162
|
+
var n2 = this, r3 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
|
21163
|
+
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
21164
|
+
return r3 ? i2 : i2.endOf(a);
|
|
21165
|
+
}, $2 = function(t3, e3) {
|
|
21166
|
+
return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
21167
|
+
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
21168
|
+
switch (f2) {
|
|
21169
|
+
case h:
|
|
21170
|
+
return r3 ? l2(1, 0) : l2(31, 11);
|
|
21171
|
+
case c:
|
|
21172
|
+
return r3 ? l2(1, M3) : l2(0, M3 + 1);
|
|
21173
|
+
case o:
|
|
21174
|
+
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
21175
|
+
return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
21176
|
+
case a:
|
|
21177
|
+
case d:
|
|
21178
|
+
return $2(v2 + "Hours", 0);
|
|
21179
|
+
case u:
|
|
21180
|
+
return $2(v2 + "Minutes", 1);
|
|
21181
|
+
case s:
|
|
21182
|
+
return $2(v2 + "Seconds", 2);
|
|
21183
|
+
case i:
|
|
21184
|
+
return $2(v2 + "Milliseconds", 3);
|
|
21185
|
+
default:
|
|
21186
|
+
return this.clone();
|
|
21187
|
+
}
|
|
21188
|
+
}, m2.endOf = function(t2) {
|
|
21189
|
+
return this.startOf(t2, false);
|
|
21190
|
+
}, m2.$set = function(t2, e2) {
|
|
21191
|
+
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;
|
|
21192
|
+
if (o2 === c || o2 === h) {
|
|
21193
|
+
var y2 = this.clone().set(d, 1);
|
|
21194
|
+
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
21195
|
+
} else l2 && this.$d[l2]($2);
|
|
21196
|
+
return this.init(), this;
|
|
21197
|
+
}, m2.set = function(t2, e2) {
|
|
21198
|
+
return this.clone().$set(t2, e2);
|
|
21199
|
+
}, m2.get = function(t2) {
|
|
21200
|
+
return this[b.p(t2)]();
|
|
21201
|
+
}, m2.add = function(r3, f2) {
|
|
21202
|
+
var d2, l2 = this;
|
|
21203
|
+
r3 = Number(r3);
|
|
21204
|
+
var $2 = b.p(f2), y2 = function(t2) {
|
|
21205
|
+
var e2 = O(l2);
|
|
21206
|
+
return b.w(e2.date(e2.date() + Math.round(t2 * r3)), l2);
|
|
21339
21207
|
};
|
|
21340
|
-
|
|
21341
|
-
|
|
21342
|
-
|
|
21343
|
-
|
|
21344
|
-
|
|
21345
|
-
|
|
21346
|
-
|
|
21347
|
-
|
|
21348
|
-
}
|
|
21349
|
-
var
|
|
21208
|
+
if ($2 === c) return this.set(c, this.$M + r3);
|
|
21209
|
+
if ($2 === h) return this.set(h, this.$y + r3);
|
|
21210
|
+
if ($2 === a) return y2(1);
|
|
21211
|
+
if ($2 === o) return y2(7);
|
|
21212
|
+
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
|
|
21213
|
+
return b.w(m3, this);
|
|
21214
|
+
}, m2.subtract = function(t2, e2) {
|
|
21215
|
+
return this.add(-1 * t2, e2);
|
|
21216
|
+
}, m2.format = function(t2) {
|
|
21217
|
+
var e2 = this, n2 = this.$locale();
|
|
21218
|
+
if (!this.isValid()) return n2.invalidDate || l;
|
|
21219
|
+
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) {
|
|
21220
|
+
return t3 && (t3[n3] || t3(e2, r3)) || i3[n3].slice(0, s3);
|
|
21221
|
+
}, d2 = function(t3) {
|
|
21222
|
+
return b.s(s2 % 12 || 12, t3, "0");
|
|
21223
|
+
}, $2 = f2 || function(t3, e3, n3) {
|
|
21224
|
+
var r4 = t3 < 12 ? "AM" : "PM";
|
|
21225
|
+
return n3 ? r4.toLowerCase() : r4;
|
|
21226
|
+
};
|
|
21227
|
+
return r3.replace(y, function(t3, r4) {
|
|
21228
|
+
return r4 || function(t4) {
|
|
21229
|
+
switch (t4) {
|
|
21230
|
+
case "YY":
|
|
21231
|
+
return String(e2.$y).slice(-2);
|
|
21232
|
+
case "YYYY":
|
|
21233
|
+
return b.s(e2.$y, 4, "0");
|
|
21234
|
+
case "M":
|
|
21235
|
+
return a2 + 1;
|
|
21236
|
+
case "MM":
|
|
21237
|
+
return b.s(a2 + 1, 2, "0");
|
|
21238
|
+
case "MMM":
|
|
21239
|
+
return h2(n2.monthsShort, a2, c2, 3);
|
|
21240
|
+
case "MMMM":
|
|
21241
|
+
return h2(c2, a2);
|
|
21242
|
+
case "D":
|
|
21243
|
+
return e2.$D;
|
|
21244
|
+
case "DD":
|
|
21245
|
+
return b.s(e2.$D, 2, "0");
|
|
21246
|
+
case "d":
|
|
21247
|
+
return String(e2.$W);
|
|
21248
|
+
case "dd":
|
|
21249
|
+
return h2(n2.weekdaysMin, e2.$W, o2, 2);
|
|
21250
|
+
case "ddd":
|
|
21251
|
+
return h2(n2.weekdaysShort, e2.$W, o2, 3);
|
|
21252
|
+
case "dddd":
|
|
21253
|
+
return o2[e2.$W];
|
|
21254
|
+
case "H":
|
|
21255
|
+
return String(s2);
|
|
21256
|
+
case "HH":
|
|
21257
|
+
return b.s(s2, 2, "0");
|
|
21258
|
+
case "h":
|
|
21259
|
+
return d2(1);
|
|
21260
|
+
case "hh":
|
|
21261
|
+
return d2(2);
|
|
21262
|
+
case "a":
|
|
21263
|
+
return $2(s2, u2, true);
|
|
21264
|
+
case "A":
|
|
21265
|
+
return $2(s2, u2, false);
|
|
21266
|
+
case "m":
|
|
21267
|
+
return String(u2);
|
|
21268
|
+
case "mm":
|
|
21269
|
+
return b.s(u2, 2, "0");
|
|
21270
|
+
case "s":
|
|
21271
|
+
return String(e2.$s);
|
|
21272
|
+
case "ss":
|
|
21273
|
+
return b.s(e2.$s, 2, "0");
|
|
21274
|
+
case "SSS":
|
|
21275
|
+
return b.s(e2.$ms, 3, "0");
|
|
21276
|
+
case "Z":
|
|
21277
|
+
return i2;
|
|
21278
|
+
}
|
|
21279
|
+
return null;
|
|
21280
|
+
}(t3) || i2.replace(":", "");
|
|
21281
|
+
});
|
|
21282
|
+
}, m2.utcOffset = function() {
|
|
21283
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
21284
|
+
}, m2.diff = function(r3, d2, l2) {
|
|
21285
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
21286
|
+
return b.m(y2, m3);
|
|
21287
|
+
};
|
|
21288
|
+
switch (M3) {
|
|
21289
|
+
case h:
|
|
21290
|
+
$2 = D2() / 12;
|
|
21291
|
+
break;
|
|
21292
|
+
case c:
|
|
21293
|
+
$2 = D2();
|
|
21294
|
+
break;
|
|
21295
|
+
case f:
|
|
21296
|
+
$2 = D2() / 3;
|
|
21297
|
+
break;
|
|
21298
|
+
case o:
|
|
21299
|
+
$2 = (g2 - v2) / 6048e5;
|
|
21300
|
+
break;
|
|
21301
|
+
case a:
|
|
21302
|
+
$2 = (g2 - v2) / 864e5;
|
|
21303
|
+
break;
|
|
21304
|
+
case u:
|
|
21305
|
+
$2 = g2 / n;
|
|
21306
|
+
break;
|
|
21307
|
+
case s:
|
|
21308
|
+
$2 = g2 / e;
|
|
21309
|
+
break;
|
|
21310
|
+
case i:
|
|
21311
|
+
$2 = g2 / t;
|
|
21312
|
+
break;
|
|
21313
|
+
default:
|
|
21314
|
+
$2 = g2;
|
|
21315
|
+
}
|
|
21316
|
+
return l2 ? $2 : b.a($2);
|
|
21317
|
+
}, m2.daysInMonth = function() {
|
|
21318
|
+
return this.endOf(c).$D;
|
|
21319
|
+
}, m2.$locale = function() {
|
|
21320
|
+
return D[this.$L];
|
|
21321
|
+
}, m2.locale = function(t2, e2) {
|
|
21322
|
+
if (!t2) return this.$L;
|
|
21323
|
+
var n2 = this.clone(), r3 = w2(t2, e2, true);
|
|
21324
|
+
return r3 && (n2.$L = r3), n2;
|
|
21325
|
+
}, m2.clone = function() {
|
|
21326
|
+
return b.w(this.$d, this);
|
|
21327
|
+
}, m2.toDate = function() {
|
|
21328
|
+
return new Date(this.valueOf());
|
|
21329
|
+
}, m2.toJSON = function() {
|
|
21330
|
+
return this.isValid() ? this.toISOString() : null;
|
|
21331
|
+
}, m2.toISOString = function() {
|
|
21332
|
+
return this.$d.toISOString();
|
|
21333
|
+
}, m2.toString = function() {
|
|
21334
|
+
return this.$d.toUTCString();
|
|
21335
|
+
}, M2;
|
|
21336
|
+
}(), k = _.prototype;
|
|
21337
|
+
return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
|
|
21338
|
+
k[t2[1]] = function(e2) {
|
|
21339
|
+
return this.$g(e2, t2[0], t2[1]);
|
|
21340
|
+
};
|
|
21341
|
+
}), O.extend = function(t2, e2) {
|
|
21342
|
+
return t2.$i || (t2(e2, _, O), t2.$i = true), O;
|
|
21343
|
+
}, O.locale = w2, O.isDayjs = S, O.unix = function(t2) {
|
|
21344
|
+
return O(1e3 * t2);
|
|
21345
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
21346
|
+
});
|
|
21347
|
+
})(dayjs_min);
|
|
21348
|
+
var dayjs_minExports = dayjs_min.exports;
|
|
21350
21349
|
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
21351
21350
|
var es$2 = { exports: {} };
|
|
21352
21351
|
(function(module, exports) {
|
|
21353
21352
|
!function(e, o) {
|
|
21354
|
-
module.exports = o(
|
|
21353
|
+
module.exports = o(dayjs_minExports);
|
|
21355
21354
|
}(commonjsGlobal, function(e) {
|
|
21356
21355
|
function o(e2) {
|
|
21357
21356
|
return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
|
|
@@ -67723,15 +67722,19 @@ const ChannelIcon = ({ iconUrl, name }) => /* @__PURE__ */ jsx$1(
|
|
|
67723
67722
|
sx: { height: "36px", maxHeight: "36px", maxWidth: "128px", width: "128px" }
|
|
67724
67723
|
}
|
|
67725
67724
|
);
|
|
67726
|
-
const ChannelCard = ({ channel, onSelect }) =>
|
|
67727
|
-
|
|
67728
|
-
{
|
|
67729
|
-
|
|
67730
|
-
|
|
67731
|
-
|
|
67732
|
-
|
|
67733
|
-
|
|
67734
|
-
)
|
|
67725
|
+
const ChannelCard = ({ channel, onSelect }) => {
|
|
67726
|
+
const { name, iconUrl, disabled: disabled2, tooltipMessage } = channel;
|
|
67727
|
+
return /* @__PURE__ */ jsx$1(WithTooltip, { content: tooltipMessage, shouldShowTooltip: !!tooltipMessage, children: /* @__PURE__ */ jsx$1("div", { children: /* @__PURE__ */ jsx$1(
|
|
67728
|
+
Card,
|
|
67729
|
+
{
|
|
67730
|
+
disabled: disabled2,
|
|
67731
|
+
description: name,
|
|
67732
|
+
sx: { width: "200px", height: "88px" },
|
|
67733
|
+
onClick: () => !disabled2 && onSelect(channel),
|
|
67734
|
+
icon: /* @__PURE__ */ jsx$1(ChannelIcon, { iconUrl, name })
|
|
67735
|
+
}
|
|
67736
|
+
) }) });
|
|
67737
|
+
};
|
|
67735
67738
|
const productecaStrategy = {
|
|
67736
67739
|
clientId: 1,
|
|
67737
67740
|
iconUrl: "https://imagesproducteca.blob.core.windows.net/producteca/isologo-producteca.svg"
|