ui-mathilde-web 0.10.21 → 0.10.23
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/style.css +1 -1
- package/dist/ui-mathilde-web.js +148 -145
- package/dist/ui-mathilde-web.umd.cjs +11 -11
- package/package.json +1 -1
package/dist/ui-mathilde-web.js
CHANGED
|
@@ -9722,7 +9722,7 @@ const ib = Me(
|
|
|
9722
9722
|
}
|
|
9723
9723
|
);
|
|
9724
9724
|
ib.displayName = "Table";
|
|
9725
|
-
const
|
|
9725
|
+
const Qe = Object.assign(ib, {
|
|
9726
9726
|
Head: ab,
|
|
9727
9727
|
Body: tb,
|
|
9728
9728
|
Row: sb,
|
|
@@ -11260,7 +11260,7 @@ class fO {
|
|
|
11260
11260
|
e.forEach((n) => n(this));
|
|
11261
11261
|
}
|
|
11262
11262
|
}
|
|
11263
|
-
var
|
|
11263
|
+
var Je = /* @__PURE__ */ new fO({
|
|
11264
11264
|
_scriptable: (t) => !t.startsWith("on"),
|
|
11265
11265
|
_indexable: (t) => t !== "events",
|
|
11266
11266
|
hover: {
|
|
@@ -11418,7 +11418,7 @@ function pn(t) {
|
|
|
11418
11418
|
return e.width = e.left + e.right, e.height = e.top + e.bottom, e;
|
|
11419
11419
|
}
|
|
11420
11420
|
function Lt(t, e) {
|
|
11421
|
-
t = t || {}, e = e ||
|
|
11421
|
+
t = t || {}, e = e || Je.font;
|
|
11422
11422
|
let n = Te(t.size, e.size);
|
|
11423
11423
|
typeof n == "string" && (n = parseInt(n, 10));
|
|
11424
11424
|
let r = Te(t.style, e.style);
|
|
@@ -12036,7 +12036,7 @@ class Yb {
|
|
|
12036
12036
|
configure(e) {
|
|
12037
12037
|
if (!we(e))
|
|
12038
12038
|
return;
|
|
12039
|
-
const n = Object.keys(
|
|
12039
|
+
const n = Object.keys(Je.animation), r = this._properties;
|
|
12040
12040
|
Object.getOwnPropertyNames(e).forEach((a) => {
|
|
12041
12041
|
const o = e[a];
|
|
12042
12042
|
if (!we(o))
|
|
@@ -12475,7 +12475,7 @@ class jo {
|
|
|
12475
12475
|
] : [
|
|
12476
12476
|
e,
|
|
12477
12477
|
""
|
|
12478
|
-
], f = c.getOptionScopes(this.getDataset(), d), h = Object.keys(
|
|
12478
|
+
], f = c.getOptionScopes(this.getDataset(), d), h = Object.keys(Je.elements[e]), g = () => this.getContext(r, a, n), m = c.resolveNamedOptions(f, h, g, u);
|
|
12479
12479
|
return m.$shared && (m.$shared = l, o[s] = Object.freeze(Eh(m, l))), m;
|
|
12480
12480
|
}
|
|
12481
12481
|
_resolveAnimations(e, n, r) {
|
|
@@ -14248,30 +14248,30 @@ class Hs {
|
|
|
14248
14248
|
const a = this.items, o = e.id, s = this.scope + "." + o;
|
|
14249
14249
|
if (!o)
|
|
14250
14250
|
throw new Error("class does not have id: " + e);
|
|
14251
|
-
return o in a || (a[o] = e, YD(e, s, r), this.override &&
|
|
14251
|
+
return o in a || (a[o] = e, YD(e, s, r), this.override && Je.override(e.id, e.overrides)), s;
|
|
14252
14252
|
}
|
|
14253
14253
|
get(e) {
|
|
14254
14254
|
return this.items[e];
|
|
14255
14255
|
}
|
|
14256
14256
|
unregister(e) {
|
|
14257
14257
|
const n = this.items, r = e.id, a = this.scope;
|
|
14258
|
-
r in n && delete n[r], a && r in
|
|
14258
|
+
r in n && delete n[r], a && r in Je[a] && (delete Je[a][r], this.override && delete ia[r]);
|
|
14259
14259
|
}
|
|
14260
14260
|
}
|
|
14261
14261
|
function YD(t, e, n) {
|
|
14262
14262
|
const r = Ko(/* @__PURE__ */ Object.create(null), [
|
|
14263
|
-
n ?
|
|
14264
|
-
|
|
14263
|
+
n ? Je.get(n) : {},
|
|
14264
|
+
Je.get(e),
|
|
14265
14265
|
t.defaults
|
|
14266
14266
|
]);
|
|
14267
|
-
|
|
14267
|
+
Je.set(e, r), t.defaultRoutes && VD(e, t.defaultRoutes), t.descriptors && Je.describe(e, t.descriptors);
|
|
14268
14268
|
}
|
|
14269
14269
|
function VD(t, e) {
|
|
14270
14270
|
Object.keys(e).forEach((n) => {
|
|
14271
14271
|
const r = n.split("."), a = r.pop(), o = [
|
|
14272
14272
|
t
|
|
14273
14273
|
].concat(r).join("."), s = e[n].split("."), i = s.pop(), l = s.join(".");
|
|
14274
|
-
|
|
14274
|
+
Je.route(o, a, l, i);
|
|
14275
14275
|
});
|
|
14276
14276
|
}
|
|
14277
14277
|
function qD(t) {
|
|
@@ -14441,7 +14441,7 @@ function ZD(t, { plugin: e, local: n }, r, a) {
|
|
|
14441
14441
|
});
|
|
14442
14442
|
}
|
|
14443
14443
|
function nd(t, e) {
|
|
14444
|
-
const n =
|
|
14444
|
+
const n = Je.datasets[t] || {};
|
|
14445
14445
|
return ((e.datasets || {})[t] || {}).indexAxis || e.indexAxis || n.indexAxis || "x";
|
|
14446
14446
|
}
|
|
14447
14447
|
function JD(t, e) {
|
|
@@ -14495,7 +14495,7 @@ function rC(t, e) {
|
|
|
14495
14495
|
return console.error(`Invalid scale configuration for scale: ${s}`);
|
|
14496
14496
|
if (i._proxy)
|
|
14497
14497
|
return console.warn(`Ignoring resolver passed as options for scale: ${s}`);
|
|
14498
|
-
const l = rd(s, i, nC(s, t),
|
|
14498
|
+
const l = rd(s, i, nC(s, t), Je.scales[i.type]), c = eC(l, a), d = n.scales || {};
|
|
14499
14499
|
o[s] = Fo(/* @__PURE__ */ Object.create(null), [
|
|
14500
14500
|
{
|
|
14501
14501
|
axis: l
|
|
@@ -14519,8 +14519,8 @@ function rC(t, e) {
|
|
|
14519
14519
|
}), Object.keys(o).forEach((s) => {
|
|
14520
14520
|
const i = o[s];
|
|
14521
14521
|
Fo(i, [
|
|
14522
|
-
|
|
14523
|
-
|
|
14522
|
+
Je.scales[i.type],
|
|
14523
|
+
Je.scale
|
|
14524
14524
|
]);
|
|
14525
14525
|
}), o;
|
|
14526
14526
|
}
|
|
@@ -14628,7 +14628,7 @@ class oC {
|
|
|
14628
14628
|
return i;
|
|
14629
14629
|
const l = /* @__PURE__ */ new Set();
|
|
14630
14630
|
n.forEach((d) => {
|
|
14631
|
-
e && (l.add(e), d.forEach((u) => wo(l, e, u))), d.forEach((u) => wo(l, a, u)), d.forEach((u) => wo(l, ia[o] || {}, u)), d.forEach((u) => wo(l,
|
|
14631
|
+
e && (l.add(e), d.forEach((u) => wo(l, e, u))), d.forEach((u) => wo(l, a, u)), d.forEach((u) => wo(l, ia[o] || {}, u)), d.forEach((u) => wo(l, Je, u)), d.forEach((u) => wo(l, ed, u));
|
|
14632
14632
|
});
|
|
14633
14633
|
const c = Array.from(l);
|
|
14634
14634
|
return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), Jb.has(n) && s.set(n, c), c;
|
|
@@ -14638,11 +14638,11 @@ class oC {
|
|
|
14638
14638
|
return [
|
|
14639
14639
|
e,
|
|
14640
14640
|
ia[n] || {},
|
|
14641
|
-
|
|
14641
|
+
Je.datasets[n] || {},
|
|
14642
14642
|
{
|
|
14643
14643
|
type: n
|
|
14644
14644
|
},
|
|
14645
|
-
|
|
14645
|
+
Je,
|
|
14646
14646
|
ed
|
|
14647
14647
|
];
|
|
14648
14648
|
}
|
|
@@ -14864,7 +14864,7 @@ let Ml = (hr = class {
|
|
|
14864
14864
|
if (s.type && s.type !== i && (this._destroyDatasetMeta(r), s = this.getDatasetMeta(r)), s.type = i, s.indexAxis = o.indexAxis || nd(i, this.options), s.order = o.order || 0, s.index = r, s.label = "" + o.label, s.visible = this.isDatasetVisible(r), s.controller)
|
|
14865
14865
|
s.controller.updateIndex(r), s.controller.linkScales();
|
|
14866
14866
|
else {
|
|
14867
|
-
const l = _n.getController(i), { datasetElementType: c, dataElementType: d } =
|
|
14867
|
+
const l = _n.getController(i), { datasetElementType: c, dataElementType: d } = Je.datasets[i];
|
|
14868
14868
|
Object.assign(l, {
|
|
14869
14869
|
dataElementType: _n.getElement(d),
|
|
14870
14870
|
datasetElementType: c && _n.getElement(c)
|
|
@@ -15212,7 +15212,7 @@ let Ml = (hr = class {
|
|
|
15212
15212
|
const o = this.options.hover;
|
|
15213
15213
|
return this.getElementsAtEventForMode(e, o.mode, o, a);
|
|
15214
15214
|
}
|
|
15215
|
-
}, J(hr, "defaults",
|
|
15215
|
+
}, J(hr, "defaults", Je), J(hr, "instances", si), J(hr, "overrides", ia), J(hr, "registry", _n), J(hr, "version", lC), J(hr, "getChart", Uh), hr);
|
|
15216
15216
|
function Xh() {
|
|
15217
15217
|
return Ee(Ml.instances, (t) => t._plugins.invalidate());
|
|
15218
15218
|
}
|
|
@@ -15499,7 +15499,7 @@ class Kh extends fs {
|
|
|
15499
15499
|
}
|
|
15500
15500
|
}
|
|
15501
15501
|
_draw() {
|
|
15502
|
-
const { options: e, columnSizes: n, lineWidths: r, ctx: a } = this, { align: o, labels: s } = e, i =
|
|
15502
|
+
const { options: e, columnSizes: n, lineWidths: r, ctx: a } = this, { align: o, labels: s } = e, i = Je.color, l = Na(e.rtl, this.left, this.width), c = Lt(s.font), { padding: d } = s, u = c.size, f = u / 2;
|
|
15503
15503
|
let h;
|
|
15504
15504
|
this.drawTitle(), a.textAlign = l.textAlign("left"), a.textBaseline = "middle", a.lineWidth = 0.5, a.font = c.string;
|
|
15505
15505
|
const { boxWidth: g, boxHeight: m, itemHeight: b } = Gh(s, u), y = function(_, P, C) {
|
|
@@ -20505,11 +20505,11 @@ const U5 = "Tag-module__tag-status-active__sxB2B", X5 = "Tag-module__tag-status-
|
|
|
20505
20505
|
tagPlatformTk: rT,
|
|
20506
20506
|
"tag-platform-mth": "Tag-module__tag-platform-mth__qnGxi",
|
|
20507
20507
|
tagPlatformMth: aT
|
|
20508
|
-
}, om = ({ variant: t,
|
|
20508
|
+
}, om = ({ variant: t, children: e }) => /* @__PURE__ */ p(
|
|
20509
20509
|
"span",
|
|
20510
20510
|
{
|
|
20511
|
-
className: `inline-flex items-center text-[10px]
|
|
20512
|
-
children:
|
|
20511
|
+
className: `inline-flex items-center text-[10px] rounded-[10px] px-2 py-1 ${oT[t.bg]}`,
|
|
20512
|
+
children: e
|
|
20513
20513
|
}
|
|
20514
20514
|
), sT = { bg: "bg-gray-100", text: "text-gray-500" }, sm = (t, e) => {
|
|
20515
20515
|
const n = e.normalize ? e.normalize(t) : t.toLowerCase().trim();
|
|
@@ -20603,14 +20603,14 @@ const U5 = "Tag-module__tag-status-active__sxB2B", X5 = "Tag-module__tag-status-
|
|
|
20603
20603
|
}
|
|
20604
20604
|
) }) }),
|
|
20605
20605
|
/* @__PURE__ */ z("div", { className: "mt-0", children: [
|
|
20606
|
-
/* @__PURE__ */ p("div", { className: "overflow-x-auto", children: /* @__PURE__ */ z(
|
|
20606
|
+
/* @__PURE__ */ p("div", { className: "overflow-x-auto", children: /* @__PURE__ */ z(Qe, { children: [
|
|
20607
20607
|
/* @__PURE__ */ z(
|
|
20608
|
-
|
|
20608
|
+
Qe.Head,
|
|
20609
20609
|
{
|
|
20610
20610
|
className: `mth_head_table ${o}`,
|
|
20611
20611
|
children: [
|
|
20612
20612
|
l && /* @__PURE__ */ p(
|
|
20613
|
-
|
|
20613
|
+
Qe.HeadCell,
|
|
20614
20614
|
{
|
|
20615
20615
|
children: /* @__PURE__ */ p(
|
|
20616
20616
|
qo,
|
|
@@ -20626,7 +20626,7 @@ const U5 = "Tag-module__tag-status-active__sxB2B", X5 = "Tag-module__tag-status-
|
|
|
20626
20626
|
`${l}-checkbox`
|
|
20627
20627
|
),
|
|
20628
20628
|
t.map((S, O) => /* @__PURE__ */ p(
|
|
20629
|
-
|
|
20629
|
+
Qe.HeadCell,
|
|
20630
20630
|
{
|
|
20631
20631
|
className: "cursor-pointer text-xs",
|
|
20632
20632
|
onClick: () => S.sortable !== !1 && B(S.relation),
|
|
@@ -20640,13 +20640,13 @@ const U5 = "Tag-module__tag-status-active__sxB2B", X5 = "Tag-module__tag-status-
|
|
|
20640
20640
|
]
|
|
20641
20641
|
}
|
|
20642
20642
|
),
|
|
20643
|
-
/* @__PURE__ */ p(
|
|
20644
|
-
|
|
20643
|
+
/* @__PURE__ */ p(Qe.Body, { className: `divide-y text-xs md:text-base lg:text-base mth_body_table ${s}`, children: w.map((S) => /* @__PURE__ */ z(
|
|
20644
|
+
Qe.Row,
|
|
20645
20645
|
{
|
|
20646
20646
|
className: "bg-white dark:border-gray-700 dark:bg-gray-800",
|
|
20647
20647
|
children: [
|
|
20648
20648
|
l && /* @__PURE__ */ p(
|
|
20649
|
-
|
|
20649
|
+
Qe.Cell,
|
|
20650
20650
|
{
|
|
20651
20651
|
children: /* @__PURE__ */ p(
|
|
20652
20652
|
qo,
|
|
@@ -20659,7 +20659,7 @@ const U5 = "Tag-module__tag-status-active__sxB2B", X5 = "Tag-module__tag-status-
|
|
|
20659
20659
|
`${S.id}-checkbox`
|
|
20660
20660
|
),
|
|
20661
20661
|
t.map((O, M) => /* @__PURE__ */ p(
|
|
20662
|
-
|
|
20662
|
+
Qe.Cell,
|
|
20663
20663
|
{
|
|
20664
20664
|
className: "whitespace-nowrap font-medium text-gray-900 dark:text-white",
|
|
20665
20665
|
children: F(O, S)
|
|
@@ -21210,14 +21210,14 @@ const VT = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
|
|
|
21210
21210
|
}, UT = (t) => {
|
|
21211
21211
|
if (!t.input)
|
|
21212
21212
|
return;
|
|
21213
|
-
if (!
|
|
21214
|
-
ha(`Unexpected type of input! Expected ${Object.keys(
|
|
21213
|
+
if (!Ze[t.input]) {
|
|
21214
|
+
ha(`Unexpected type of input! Expected ${Object.keys(Ze).join(" | ")}, got "${t.input}"`);
|
|
21215
21215
|
return;
|
|
21216
21216
|
}
|
|
21217
21217
|
const e = rw(t.input);
|
|
21218
21218
|
if (!e)
|
|
21219
21219
|
return;
|
|
21220
|
-
const n =
|
|
21220
|
+
const n = Ze[t.input](e, t);
|
|
21221
21221
|
pt(e), t.inputAutoFocus && setTimeout(() => {
|
|
21222
21222
|
ew(n);
|
|
21223
21223
|
});
|
|
@@ -21257,29 +21257,29 @@ const VT = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
|
|
|
21257
21257
|
] || q.input);
|
|
21258
21258
|
}, Hi = (t, e) => {
|
|
21259
21259
|
["string", "number"].includes(typeof e) ? t.value = `${e}` : Iu(e) || Tt(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`);
|
|
21260
|
-
},
|
|
21261
|
-
|
|
21260
|
+
}, Ze = {};
|
|
21261
|
+
Ze.text = Ze.email = Ze.password = Ze.number = Ze.tel = Ze.url = Ze.search = Ze.date = Ze["datetime-local"] = Ze.time = Ze.week = Ze.month = /** @type {(input: Input | HTMLElement, params: SweetAlertOptions) => Input} */
|
|
21262
21262
|
(t, e) => (Hi(t, e.inputValue), vs(t, t, e), Hu(t, e), t.type = e.input, t);
|
|
21263
|
-
|
|
21264
|
-
|
|
21263
|
+
Ze.file = (t, e) => (vs(t, t, e), Hu(t, e), t);
|
|
21264
|
+
Ze.range = (t, e) => {
|
|
21265
21265
|
const n = t.querySelector("input"), r = t.querySelector("output");
|
|
21266
21266
|
return Hi(n, e.inputValue), n.type = e.input, Hi(r, e.inputValue), vs(n, t, e), t;
|
|
21267
21267
|
};
|
|
21268
|
-
|
|
21268
|
+
Ze.select = (t, e) => {
|
|
21269
21269
|
if (t.textContent = "", e.inputPlaceholder) {
|
|
21270
21270
|
const n = document.createElement("option");
|
|
21271
21271
|
nn(n, e.inputPlaceholder), n.value = "", n.disabled = !0, n.selected = !0, t.appendChild(n);
|
|
21272
21272
|
}
|
|
21273
21273
|
return vs(t, t, e), t;
|
|
21274
21274
|
};
|
|
21275
|
-
|
|
21276
|
-
|
|
21275
|
+
Ze.radio = (t) => (t.textContent = "", t);
|
|
21276
|
+
Ze.checkbox = (t, e) => {
|
|
21277
21277
|
const n = jl(ve(), "checkbox");
|
|
21278
21278
|
n.value = "1", n.checked = !!e.inputValue;
|
|
21279
21279
|
const r = t.querySelector("span");
|
|
21280
21280
|
return nn(r, e.inputPlaceholder || e.inputLabel), n;
|
|
21281
21281
|
};
|
|
21282
|
-
|
|
21282
|
+
Ze.textarea = (t, e) => {
|
|
21283
21283
|
Hi(t, e.inputValue), Hu(t, e), vs(t, t, e);
|
|
21284
21284
|
const n = (r) => parseInt(window.getComputedStyle(r).marginLeft) + parseInt(window.getComputedStyle(r).marginRight);
|
|
21285
21285
|
return setTimeout(() => {
|
|
@@ -22352,7 +22352,7 @@ https://sweetalert2.github.io/#ajax-request`), HN(t), typeof t.title == "string"
|
|
|
22352
22352
|
}
|
|
22353
22353
|
let Dn;
|
|
22354
22354
|
var Gs = /* @__PURE__ */ new WeakMap();
|
|
22355
|
-
class
|
|
22355
|
+
class nt {
|
|
22356
22356
|
/**
|
|
22357
22357
|
* @param {...(SweetAlertOptions | string)} args
|
|
22358
22358
|
* @this {SweetAlert}
|
|
@@ -22450,31 +22450,31 @@ const VN = (t, e, n) => new Promise((r, a) => {
|
|
|
22450
22450
|
}, QN = (t, e) => e.focusDeny && Bt(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && Bt(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && Bt(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, ZN = () => {
|
|
22451
22451
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
22452
22452
|
};
|
|
22453
|
-
|
|
22454
|
-
|
|
22455
|
-
|
|
22456
|
-
|
|
22457
|
-
|
|
22458
|
-
|
|
22459
|
-
|
|
22460
|
-
|
|
22461
|
-
|
|
22462
|
-
|
|
22463
|
-
|
|
22464
|
-
|
|
22465
|
-
|
|
22466
|
-
|
|
22467
|
-
|
|
22468
|
-
|
|
22469
|
-
Object.assign(
|
|
22453
|
+
nt.prototype.disableButtons = Ow;
|
|
22454
|
+
nt.prototype.enableButtons = Sw;
|
|
22455
|
+
nt.prototype.getInput = xw;
|
|
22456
|
+
nt.prototype.disableInput = Cw;
|
|
22457
|
+
nt.prototype.enableInput = Dw;
|
|
22458
|
+
nt.prototype.hideLoading = Xi;
|
|
22459
|
+
nt.prototype.disableLoading = Xi;
|
|
22460
|
+
nt.prototype.showValidationMessage = Mw;
|
|
22461
|
+
nt.prototype.resetValidationMessage = Ew;
|
|
22462
|
+
nt.prototype.close = wr;
|
|
22463
|
+
nt.prototype.closePopup = wr;
|
|
22464
|
+
nt.prototype.closeModal = wr;
|
|
22465
|
+
nt.prototype.closeToast = wr;
|
|
22466
|
+
nt.prototype.rejectPromise = bw;
|
|
22467
|
+
nt.prototype.update = Iw;
|
|
22468
|
+
nt.prototype._destroy = Aw;
|
|
22469
|
+
Object.assign(nt, CN);
|
|
22470
22470
|
Object.keys(sN).forEach((t) => {
|
|
22471
|
-
|
|
22471
|
+
nt[t] = function(...e) {
|
|
22472
22472
|
return Dn && Dn[t] ? Dn[t](...e) : null;
|
|
22473
22473
|
};
|
|
22474
22474
|
});
|
|
22475
|
-
|
|
22476
|
-
|
|
22477
|
-
const Qa =
|
|
22475
|
+
nt.DismissReason = co;
|
|
22476
|
+
nt.version = "11.26.4";
|
|
22477
|
+
const Qa = nt;
|
|
22478
22478
|
Qa.default = Qa;
|
|
22479
22479
|
typeof document < "u" && function(t, e) {
|
|
22480
22480
|
var n = t.createElement("style");
|
|
@@ -25519,7 +25519,7 @@ class x4 extends Se {
|
|
|
25519
25519
|
return r.era = a, n.setFullYear(a, 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
25520
25520
|
}
|
|
25521
25521
|
}
|
|
25522
|
-
const
|
|
25522
|
+
const et = {
|
|
25523
25523
|
month: /^(1[0-2]|0?\d)/,
|
|
25524
25524
|
// 0 to 12
|
|
25525
25525
|
date: /^(3[0-1]|[0-2]?\d)/,
|
|
@@ -25564,7 +25564,7 @@ const Je = {
|
|
|
25564
25564
|
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
25565
25565
|
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
25566
25566
|
};
|
|
25567
|
-
function
|
|
25567
|
+
function tt(t, e) {
|
|
25568
25568
|
return t && {
|
|
25569
25569
|
value: e(t.value),
|
|
25570
25570
|
rest: t.rest
|
|
@@ -25593,18 +25593,18 @@ function Rn(t, e) {
|
|
|
25593
25593
|
};
|
|
25594
25594
|
}
|
|
25595
25595
|
function Rv(t) {
|
|
25596
|
-
return qe(
|
|
25596
|
+
return qe(et.anyDigitsSigned, t);
|
|
25597
25597
|
}
|
|
25598
25598
|
function Ge(t, e) {
|
|
25599
25599
|
switch (t) {
|
|
25600
25600
|
case 1:
|
|
25601
|
-
return qe(
|
|
25601
|
+
return qe(et.singleDigit, e);
|
|
25602
25602
|
case 2:
|
|
25603
|
-
return qe(
|
|
25603
|
+
return qe(et.twoDigits, e);
|
|
25604
25604
|
case 3:
|
|
25605
|
-
return qe(
|
|
25605
|
+
return qe(et.threeDigits, e);
|
|
25606
25606
|
case 4:
|
|
25607
|
-
return qe(
|
|
25607
|
+
return qe(et.fourDigits, e);
|
|
25608
25608
|
default:
|
|
25609
25609
|
return qe(new RegExp("^\\d{1," + t + "}"), e);
|
|
25610
25610
|
}
|
|
@@ -25612,13 +25612,13 @@ function Ge(t, e) {
|
|
|
25612
25612
|
function sl(t, e) {
|
|
25613
25613
|
switch (t) {
|
|
25614
25614
|
case 1:
|
|
25615
|
-
return qe(
|
|
25615
|
+
return qe(et.singleDigitSigned, e);
|
|
25616
25616
|
case 2:
|
|
25617
|
-
return qe(
|
|
25617
|
+
return qe(et.twoDigitsSigned, e);
|
|
25618
25618
|
case 3:
|
|
25619
|
-
return qe(
|
|
25619
|
+
return qe(et.threeDigitsSigned, e);
|
|
25620
25620
|
case 4:
|
|
25621
|
-
return qe(
|
|
25621
|
+
return qe(et.fourDigitsSigned, e);
|
|
25622
25622
|
default:
|
|
25623
25623
|
return qe(new RegExp("^-?\\d{1," + t + "}"), e);
|
|
25624
25624
|
}
|
|
@@ -25667,16 +25667,16 @@ class k4 extends Se {
|
|
|
25667
25667
|
});
|
|
25668
25668
|
switch (r) {
|
|
25669
25669
|
case "y":
|
|
25670
|
-
return
|
|
25670
|
+
return tt(Ge(4, n), o);
|
|
25671
25671
|
case "yo":
|
|
25672
|
-
return
|
|
25672
|
+
return tt(
|
|
25673
25673
|
a.ordinalNumber(n, {
|
|
25674
25674
|
unit: "year"
|
|
25675
25675
|
}),
|
|
25676
25676
|
o
|
|
25677
25677
|
);
|
|
25678
25678
|
default:
|
|
25679
|
-
return
|
|
25679
|
+
return tt(Ge(r.length, n), o);
|
|
25680
25680
|
}
|
|
25681
25681
|
}
|
|
25682
25682
|
validate(n, r) {
|
|
@@ -25722,16 +25722,16 @@ class _4 extends Se {
|
|
|
25722
25722
|
});
|
|
25723
25723
|
switch (r) {
|
|
25724
25724
|
case "Y":
|
|
25725
|
-
return
|
|
25725
|
+
return tt(Ge(4, n), o);
|
|
25726
25726
|
case "Yo":
|
|
25727
|
-
return
|
|
25727
|
+
return tt(
|
|
25728
25728
|
a.ordinalNumber(n, {
|
|
25729
25729
|
unit: "year"
|
|
25730
25730
|
}),
|
|
25731
25731
|
o
|
|
25732
25732
|
);
|
|
25733
25733
|
default:
|
|
25734
|
-
return
|
|
25734
|
+
return tt(Ge(r.length, n), o);
|
|
25735
25735
|
}
|
|
25736
25736
|
}
|
|
25737
25737
|
validate(n, r) {
|
|
@@ -25945,14 +25945,14 @@ class M4 extends Se {
|
|
|
25945
25945
|
const o = (s) => s - 1;
|
|
25946
25946
|
switch (r) {
|
|
25947
25947
|
case "M":
|
|
25948
|
-
return
|
|
25949
|
-
qe(
|
|
25948
|
+
return tt(
|
|
25949
|
+
qe(et.month, n),
|
|
25950
25950
|
o
|
|
25951
25951
|
);
|
|
25952
25952
|
case "MM":
|
|
25953
|
-
return
|
|
25953
|
+
return tt(Ge(2, n), o);
|
|
25954
25954
|
case "Mo":
|
|
25955
|
-
return
|
|
25955
|
+
return tt(
|
|
25956
25956
|
a.ordinalNumber(n, {
|
|
25957
25957
|
unit: "month"
|
|
25958
25958
|
}),
|
|
@@ -26007,14 +26007,14 @@ class E4 extends Se {
|
|
|
26007
26007
|
const o = (s) => s - 1;
|
|
26008
26008
|
switch (r) {
|
|
26009
26009
|
case "L":
|
|
26010
|
-
return
|
|
26011
|
-
qe(
|
|
26010
|
+
return tt(
|
|
26011
|
+
qe(et.month, n),
|
|
26012
26012
|
o
|
|
26013
26013
|
);
|
|
26014
26014
|
case "LL":
|
|
26015
|
-
return
|
|
26015
|
+
return tt(Ge(2, n), o);
|
|
26016
26016
|
case "Lo":
|
|
26017
|
-
return
|
|
26017
|
+
return tt(
|
|
26018
26018
|
a.ordinalNumber(n, {
|
|
26019
26019
|
unit: "month"
|
|
26020
26020
|
}),
|
|
@@ -26072,7 +26072,7 @@ class T4 extends Se {
|
|
|
26072
26072
|
parse(n, r, a) {
|
|
26073
26073
|
switch (r) {
|
|
26074
26074
|
case "w":
|
|
26075
|
-
return qe(
|
|
26075
|
+
return qe(et.week, n);
|
|
26076
26076
|
case "wo":
|
|
26077
26077
|
return a.ordinalNumber(n, { unit: "week" });
|
|
26078
26078
|
default:
|
|
@@ -26114,7 +26114,7 @@ class P4 extends Se {
|
|
|
26114
26114
|
parse(n, r, a) {
|
|
26115
26115
|
switch (r) {
|
|
26116
26116
|
case "I":
|
|
26117
|
-
return qe(
|
|
26117
|
+
return qe(et.week, n);
|
|
26118
26118
|
case "Io":
|
|
26119
26119
|
return a.ordinalNumber(n, { unit: "week" });
|
|
26120
26120
|
default:
|
|
@@ -26165,7 +26165,7 @@ class I4 extends Se {
|
|
|
26165
26165
|
parse(n, r, a) {
|
|
26166
26166
|
switch (r) {
|
|
26167
26167
|
case "d":
|
|
26168
|
-
return qe(
|
|
26168
|
+
return qe(et.date, n);
|
|
26169
26169
|
case "do":
|
|
26170
26170
|
return a.ordinalNumber(n, { unit: "date" });
|
|
26171
26171
|
default:
|
|
@@ -26207,7 +26207,7 @@ class A4 extends Se {
|
|
|
26207
26207
|
switch (r) {
|
|
26208
26208
|
case "D":
|
|
26209
26209
|
case "DD":
|
|
26210
|
-
return qe(
|
|
26210
|
+
return qe(et.dayOfYear, n);
|
|
26211
26211
|
case "Do":
|
|
26212
26212
|
return a.ordinalNumber(n, { unit: "date" });
|
|
26213
26213
|
default:
|
|
@@ -26294,9 +26294,9 @@ class F4 extends Se {
|
|
|
26294
26294
|
switch (r) {
|
|
26295
26295
|
case "e":
|
|
26296
26296
|
case "ee":
|
|
26297
|
-
return
|
|
26297
|
+
return tt(Ge(r.length, n), s);
|
|
26298
26298
|
case "eo":
|
|
26299
|
-
return
|
|
26299
|
+
return tt(
|
|
26300
26300
|
a.ordinalNumber(n, {
|
|
26301
26301
|
unit: "day"
|
|
26302
26302
|
}),
|
|
@@ -26359,9 +26359,9 @@ class $4 extends Se {
|
|
|
26359
26359
|
switch (r) {
|
|
26360
26360
|
case "c":
|
|
26361
26361
|
case "cc":
|
|
26362
|
-
return
|
|
26362
|
+
return tt(Ge(r.length, n), s);
|
|
26363
26363
|
case "co":
|
|
26364
|
-
return
|
|
26364
|
+
return tt(
|
|
26365
26365
|
a.ordinalNumber(n, {
|
|
26366
26366
|
unit: "day"
|
|
26367
26367
|
}),
|
|
@@ -26429,7 +26429,7 @@ class W4 extends Se {
|
|
|
26429
26429
|
case "io":
|
|
26430
26430
|
return a.ordinalNumber(n, { unit: "day" });
|
|
26431
26431
|
case "iii":
|
|
26432
|
-
return
|
|
26432
|
+
return tt(
|
|
26433
26433
|
a.day(n, {
|
|
26434
26434
|
width: "abbreviated",
|
|
26435
26435
|
context: "formatting"
|
|
@@ -26443,7 +26443,7 @@ class W4 extends Se {
|
|
|
26443
26443
|
o
|
|
26444
26444
|
);
|
|
26445
26445
|
case "iiiii":
|
|
26446
|
-
return
|
|
26446
|
+
return tt(
|
|
26447
26447
|
a.day(n, {
|
|
26448
26448
|
width: "narrow",
|
|
26449
26449
|
context: "formatting"
|
|
@@ -26451,7 +26451,7 @@ class W4 extends Se {
|
|
|
26451
26451
|
o
|
|
26452
26452
|
);
|
|
26453
26453
|
case "iiiiii":
|
|
26454
|
-
return
|
|
26454
|
+
return tt(
|
|
26455
26455
|
a.day(n, {
|
|
26456
26456
|
width: "short",
|
|
26457
26457
|
context: "formatting"
|
|
@@ -26463,7 +26463,7 @@ class W4 extends Se {
|
|
|
26463
26463
|
);
|
|
26464
26464
|
case "iiii":
|
|
26465
26465
|
default:
|
|
26466
|
-
return
|
|
26466
|
+
return tt(
|
|
26467
26467
|
a.day(n, {
|
|
26468
26468
|
width: "wide",
|
|
26469
26469
|
context: "formatting"
|
|
@@ -26620,7 +26620,7 @@ class H4 extends Se {
|
|
|
26620
26620
|
parse(n, r, a) {
|
|
26621
26621
|
switch (r) {
|
|
26622
26622
|
case "h":
|
|
26623
|
-
return qe(
|
|
26623
|
+
return qe(et.hour12h, n);
|
|
26624
26624
|
case "ho":
|
|
26625
26625
|
return a.ordinalNumber(n, { unit: "hour" });
|
|
26626
26626
|
default:
|
|
@@ -26644,7 +26644,7 @@ class Y4 extends Se {
|
|
|
26644
26644
|
parse(n, r, a) {
|
|
26645
26645
|
switch (r) {
|
|
26646
26646
|
case "H":
|
|
26647
|
-
return qe(
|
|
26647
|
+
return qe(et.hour23h, n);
|
|
26648
26648
|
case "Ho":
|
|
26649
26649
|
return a.ordinalNumber(n, { unit: "hour" });
|
|
26650
26650
|
default:
|
|
@@ -26667,7 +26667,7 @@ class V4 extends Se {
|
|
|
26667
26667
|
parse(n, r, a) {
|
|
26668
26668
|
switch (r) {
|
|
26669
26669
|
case "K":
|
|
26670
|
-
return qe(
|
|
26670
|
+
return qe(et.hour11h, n);
|
|
26671
26671
|
case "Ko":
|
|
26672
26672
|
return a.ordinalNumber(n, { unit: "hour" });
|
|
26673
26673
|
default:
|
|
@@ -26690,7 +26690,7 @@ class q4 extends Se {
|
|
|
26690
26690
|
parse(n, r, a) {
|
|
26691
26691
|
switch (r) {
|
|
26692
26692
|
case "k":
|
|
26693
|
-
return qe(
|
|
26693
|
+
return qe(et.hour24h, n);
|
|
26694
26694
|
case "ko":
|
|
26695
26695
|
return a.ordinalNumber(n, { unit: "hour" });
|
|
26696
26696
|
default:
|
|
@@ -26714,7 +26714,7 @@ class U4 extends Se {
|
|
|
26714
26714
|
parse(n, r, a) {
|
|
26715
26715
|
switch (r) {
|
|
26716
26716
|
case "m":
|
|
26717
|
-
return qe(
|
|
26717
|
+
return qe(et.minute, n);
|
|
26718
26718
|
case "mo":
|
|
26719
26719
|
return a.ordinalNumber(n, { unit: "minute" });
|
|
26720
26720
|
default:
|
|
@@ -26737,7 +26737,7 @@ class X4 extends Se {
|
|
|
26737
26737
|
parse(n, r, a) {
|
|
26738
26738
|
switch (r) {
|
|
26739
26739
|
case "s":
|
|
26740
|
-
return qe(
|
|
26740
|
+
return qe(et.second, n);
|
|
26741
26741
|
case "so":
|
|
26742
26742
|
return a.ordinalNumber(n, { unit: "second" });
|
|
26743
26743
|
default:
|
|
@@ -26759,7 +26759,7 @@ class G4 extends Se {
|
|
|
26759
26759
|
}
|
|
26760
26760
|
parse(n, r) {
|
|
26761
26761
|
const a = (o) => Math.trunc(o * Math.pow(10, -r.length + 3));
|
|
26762
|
-
return
|
|
26762
|
+
return tt(Ge(r.length, n), a);
|
|
26763
26763
|
}
|
|
26764
26764
|
set(n, r, a) {
|
|
26765
26765
|
return n.setMilliseconds(a), n;
|
|
@@ -28125,7 +28125,7 @@ Object.defineProperty(Ql, "__esModule", {
|
|
|
28125
28125
|
value: !0
|
|
28126
28126
|
});
|
|
28127
28127
|
Ql.default = void 0;
|
|
28128
|
-
var Xr = tx(te), Ae = pL(sr), Jv = tx(rr),
|
|
28128
|
+
var Xr = tx(te), Ae = pL(sr), Jv = tx(rr), rt = pa, mL = lr;
|
|
28129
28129
|
function pL(t) {
|
|
28130
28130
|
return t && t.__esModule ? t : { default: t };
|
|
28131
28131
|
}
|
|
@@ -28162,13 +28162,13 @@ function bL(t, e, n) {
|
|
|
28162
28162
|
const r = /* @__PURE__ */ new Date();
|
|
28163
28163
|
return /* @__PURE__ */ Xr.default.createElement("div", {
|
|
28164
28164
|
className: t.weekDays
|
|
28165
|
-
}, (0,
|
|
28166
|
-
start: (0,
|
|
28167
|
-
end: (0,
|
|
28165
|
+
}, (0, rt.eachDayOfInterval)({
|
|
28166
|
+
start: (0, rt.startOfWeek)(r, e),
|
|
28167
|
+
end: (0, rt.endOfWeek)(r, e)
|
|
28168
28168
|
}).map((a, o) => /* @__PURE__ */ Xr.default.createElement("span", {
|
|
28169
28169
|
className: t.weekDay,
|
|
28170
28170
|
key: o
|
|
28171
|
-
}, (0,
|
|
28171
|
+
}, (0, rt.format)(a, n, e))));
|
|
28172
28172
|
}
|
|
28173
28173
|
class ff extends Xr.PureComponent {
|
|
28174
28174
|
render() {
|
|
@@ -28179,7 +28179,7 @@ class ff extends Xr.PureComponent {
|
|
|
28179
28179
|
styles: o,
|
|
28180
28180
|
disabledDates: s,
|
|
28181
28181
|
disabledDay: i
|
|
28182
|
-
} = this.props, l = this.props.minDate && (0,
|
|
28182
|
+
} = this.props, l = this.props.minDate && (0, rt.startOfDay)(this.props.minDate), c = this.props.maxDate && (0, rt.endOfDay)(this.props.maxDate), d = (0, mL.getMonthDisplayRange)(this.props.month, this.props.dateOptions, this.props.fixedHeight);
|
|
28183
28183
|
let u = this.props.ranges;
|
|
28184
28184
|
if (n === "dateRange" && a.status) {
|
|
28185
28185
|
let {
|
|
@@ -28198,27 +28198,27 @@ class ff extends Xr.PureComponent {
|
|
|
28198
28198
|
style: this.props.style
|
|
28199
28199
|
}, this.props.showMonthName ? /* @__PURE__ */ Xr.default.createElement("div", {
|
|
28200
28200
|
className: o.monthName
|
|
28201
|
-
}, (0,
|
|
28201
|
+
}, (0, rt.format)(this.props.month, this.props.monthDisplayFormat, this.props.dateOptions)) : null, this.props.showWeekDays && bL(o, this.props.dateOptions, this.props.weekdayDisplayFormat), /* @__PURE__ */ Xr.default.createElement("div", {
|
|
28202
28202
|
className: o.days,
|
|
28203
28203
|
onMouseLeave: this.props.onMouseLeave
|
|
28204
|
-
}, (0,
|
|
28204
|
+
}, (0, rt.eachDayOfInterval)({
|
|
28205
28205
|
start: d.start,
|
|
28206
28206
|
end: d.end
|
|
28207
28207
|
}).map((h, g) => {
|
|
28208
|
-
const m = (0,
|
|
28208
|
+
const m = (0, rt.isSameDay)(h, d.startDateOfMonth), b = (0, rt.isSameDay)(h, d.endDateOfMonth), y = l && (0, rt.isBefore)(h, l) || c && (0, rt.isAfter)(h, c), v = s.some((x) => (0, rt.isSameDay)(x, h)), k = i(h);
|
|
28209
28209
|
return /* @__PURE__ */ Xr.default.createElement(Jv.default, Sd({}, this.props, {
|
|
28210
28210
|
ranges: u,
|
|
28211
28211
|
day: h,
|
|
28212
28212
|
preview: f ? this.props.preview : null,
|
|
28213
|
-
isWeekend: (0,
|
|
28214
|
-
isToday: (0,
|
|
28215
|
-
isStartOfWeek: (0,
|
|
28216
|
-
isEndOfWeek: (0,
|
|
28213
|
+
isWeekend: (0, rt.isWeekend)(h, this.props.dateOptions),
|
|
28214
|
+
isToday: (0, rt.isSameDay)(h, e),
|
|
28215
|
+
isStartOfWeek: (0, rt.isSameDay)(h, (0, rt.startOfWeek)(h, this.props.dateOptions)),
|
|
28216
|
+
isEndOfWeek: (0, rt.isSameDay)(h, (0, rt.endOfWeek)(h, this.props.dateOptions)),
|
|
28217
28217
|
isStartOfMonth: m,
|
|
28218
28218
|
isEndOfMonth: b,
|
|
28219
28219
|
key: g,
|
|
28220
28220
|
disabled: y || v || k,
|
|
28221
|
-
isPassive: !(0,
|
|
28221
|
+
isPassive: !(0, rt.isWithinInterval)(h, {
|
|
28222
28222
|
start: d.startDateOfMonth,
|
|
28223
28223
|
end: d.endDateOfMonth
|
|
28224
28224
|
}),
|
|
@@ -31694,7 +31694,7 @@ const cl = ({
|
|
|
31694
31694
|
const ne = Z[R.relation];
|
|
31695
31695
|
if (R.isToggle) {
|
|
31696
31696
|
const $ = !!ne;
|
|
31697
|
-
return /* @__PURE__ */ z("div", { className: "flex items-center gap-
|
|
31697
|
+
return /* @__PURE__ */ z("div", { className: "flex items-center gap-1", children: [
|
|
31698
31698
|
/* @__PURE__ */ p(
|
|
31699
31699
|
Vy,
|
|
31700
31700
|
{
|
|
@@ -31745,9 +31745,9 @@ const cl = ({
|
|
|
31745
31745
|
}
|
|
31746
31746
|
) }) }),
|
|
31747
31747
|
/* @__PURE__ */ z("div", { className: "mt-0", children: [
|
|
31748
|
-
/* @__PURE__ */ p("div", { className: "overflow-x-auto", children: /* @__PURE__ */ z(
|
|
31749
|
-
/* @__PURE__ */ z(
|
|
31750
|
-
l && /* @__PURE__ */ p(
|
|
31748
|
+
/* @__PURE__ */ p("div", { className: "overflow-x-auto", children: /* @__PURE__ */ z(Qe, { children: [
|
|
31749
|
+
/* @__PURE__ */ z(Qe.Head, { className: `mth_head_table ${o}`, children: [
|
|
31750
|
+
l && /* @__PURE__ */ p(Qe.HeadCell, { children: /* @__PURE__ */ p(
|
|
31751
31751
|
qo,
|
|
31752
31752
|
{
|
|
31753
31753
|
className: "bg-transparent",
|
|
@@ -31759,7 +31759,7 @@ const cl = ({
|
|
|
31759
31759
|
}
|
|
31760
31760
|
) }, "checkbox-head"),
|
|
31761
31761
|
t.map((R, Z) => /* @__PURE__ */ p(
|
|
31762
|
-
|
|
31762
|
+
Qe.HeadCell,
|
|
31763
31763
|
{
|
|
31764
31764
|
className: "cursor-pointer text-xs",
|
|
31765
31765
|
onClick: () => R.sortable !== !1 && H(R.relation),
|
|
@@ -31771,16 +31771,19 @@ const cl = ({
|
|
|
31771
31771
|
`column-${Z}-${R.relation}`
|
|
31772
31772
|
))
|
|
31773
31773
|
] }),
|
|
31774
|
-
/* @__PURE__ */ p(
|
|
31774
|
+
/* @__PURE__ */ p(Qe.Body, { className: `divide-y text-xs md:text-base lg:text-base mth_body_table ${s}`, children: N.map((R) => {
|
|
31775
31775
|
const Z = v ? v(R) : [], ne = h && Z.length > 0, $ = ne && M.includes(R.id);
|
|
31776
31776
|
return /* @__PURE__ */ z(j.Fragment, { children: [
|
|
31777
|
-
/* @__PURE__ */ z(
|
|
31778
|
-
l && /* @__PURE__ */ p(
|
|
31779
|
-
t.map((ae, oe) => ae.relation === k ? /* @__PURE__ */ p(
|
|
31777
|
+
/* @__PURE__ */ z(Qe.Row, { className: `${$ ? Hc["mth-parent-row"] : ""} ${w}`, children: [
|
|
31778
|
+
l && /* @__PURE__ */ p(Qe.Cell, { children: /* @__PURE__ */ p(qo, { className: "bg-transparent", checked: c.has(R.id), onChange: () => A(R.id) }) }),
|
|
31779
|
+
t.map((ae, oe) => ae.relation === k ? /* @__PURE__ */ p(Qe.Cell, { className: "whitespace-nowrap font-medium ", children: X(ae, R, ne, $) }, `${R.id}-${oe}`) : /* @__PURE__ */ p(Qe.Cell, { className: "whitespace-nowrap font-medium", children: Q(ae, R) }, `${R.id}-${oe}`))
|
|
31780
31780
|
] }),
|
|
31781
|
-
ne && $ && Z.map((ae, oe) => /* @__PURE__ */ z(
|
|
31782
|
-
l && /* @__PURE__ */ p(
|
|
31783
|
-
t.map((le, me) => /* @__PURE__ */ p(
|
|
31781
|
+
ne && $ && Z.map((ae, oe) => /* @__PURE__ */ z(Qe.Row, { className: `${$ ? Hc["mth-sub-row"] : ""} ${_}`, children: [
|
|
31782
|
+
l && /* @__PURE__ */ p(Qe.Cell, { className: `${$ ? Hc["mth-sub-empty-cell"] : ""}` }),
|
|
31783
|
+
t.map((le, me) => le.relation === k ? /* @__PURE__ */ p(Qe.Cell, { className: "whitespace-nowrap font-normal", children: /* @__PURE__ */ z("div", { className: "flex items-center gap-1", children: [
|
|
31784
|
+
/* @__PURE__ */ p("span", { className: "mth-collapse-spacer" }),
|
|
31785
|
+
Q(le, ae)
|
|
31786
|
+
] }) }, `${R.id}-sub-${oe}-${me}`) : /* @__PURE__ */ p(Qe.Cell, { className: "whitespace-nowrap font-normal", children: Q(le, ae) }, `${R.id}-sub-${oe}-${me}`))
|
|
31784
31787
|
] }, `${R.id}-sub-${oe}`))
|
|
31785
31788
|
] }, R.id);
|
|
31786
31789
|
}) })
|
|
@@ -32101,7 +32104,7 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, OF
|
|
|
32101
32104
|
return /* @__PURE__ */ p(
|
|
32102
32105
|
"div",
|
|
32103
32106
|
{
|
|
32104
|
-
className: `
|
|
32107
|
+
className: `flex max-w-[200px] items-center rounded-[5px] border border-qb-border px-3 py-1.5 text-sm font-light text-black transition-all hover:bg-qb-chip-hover ${n ? "cursor-grabbing opacity-50" : "cursor-grab"}`,
|
|
32105
32108
|
draggable: !0,
|
|
32106
32109
|
onDragStart: (s) => {
|
|
32107
32110
|
r(!0), a(o), s.dataTransfer.effectAllowed = "copy", s.dataTransfer.setData("application/json", JSON.stringify(o));
|
|
@@ -32119,9 +32122,9 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, OF
|
|
|
32119
32122
|
const s = document.getElementById("drag-cursor-override");
|
|
32120
32123
|
s && s.remove();
|
|
32121
32124
|
},
|
|
32122
|
-
children: /* @__PURE__ */ z("span", { className: "select-none
|
|
32123
|
-
/* @__PURE__ */ p(ac, { className: "
|
|
32124
|
-
t.label
|
|
32125
|
+
children: /* @__PURE__ */ z("span", { className: "flex min-w-0 flex-1 select-none items-start gap-2", children: [
|
|
32126
|
+
/* @__PURE__ */ p(ac, { className: "mt-0.5 size-4 shrink-0 text-qb-primary" }),
|
|
32127
|
+
/* @__PURE__ */ p("span", { className: "min-w-0 break-words", children: t.label })
|
|
32125
32128
|
] })
|
|
32126
32129
|
}
|
|
32127
32130
|
);
|
|
@@ -32151,14 +32154,14 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, OF
|
|
|
32151
32154
|
classes: "p-1",
|
|
32152
32155
|
titleClasses: "text-sm",
|
|
32153
32156
|
containerButtonClasses: "border-none",
|
|
32154
|
-
content: /* @__PURE__ */ p("div", { className: "space-y-1", children: a.items.map((o) => /* @__PURE__ */ p(TF, { item: o, categoryId: a.id }, o.id)) })
|
|
32157
|
+
content: /* @__PURE__ */ p("div", { className: "space-y-1 max-h-[200px] overflow-y-auto", children: a.items.map((o) => /* @__PURE__ */ p(TF, { item: o, categoryId: a.id }, o.id)) })
|
|
32155
32158
|
}))
|
|
32156
32159
|
},
|
|
32157
32160
|
n ?? "accordion-categories"
|
|
32158
32161
|
) })
|
|
32159
|
-
] }), NF = ({ groupId: t, conditions: e, onRemoveCondition: n }) => /* @__PURE__ */ p("div", { className: "flex flex-col gap-2", children: e.map((r) => /* @__PURE__ */ p("div", { className: "flex items-center
|
|
32160
|
-
/* @__PURE__ */ p(ac, { className: "size-4 text-qb-primary" }),
|
|
32161
|
-
/* @__PURE__ */ p("span", { children: r.label }),
|
|
32162
|
+
] }), NF = ({ groupId: t, conditions: e, onRemoveCondition: n }) => /* @__PURE__ */ p("div", { className: "flex flex-col gap-2", children: e.map((r) => /* @__PURE__ */ p("div", { className: "flex items-center", children: /* @__PURE__ */ z("div", { className: "flex w-[180px] items-start gap-1 rounded-[5px] border border-qb-border px-3 py-1.5 text-sm", children: [
|
|
32163
|
+
/* @__PURE__ */ p(ac, { className: "mt-0.5 size-4 shrink-0 text-qb-primary" }),
|
|
32164
|
+
/* @__PURE__ */ p("span", { className: "min-w-0 flex-1 break-words", children: r.label }),
|
|
32162
32165
|
/* @__PURE__ */ p(
|
|
32163
32166
|
Zr,
|
|
32164
32167
|
{
|
|
@@ -32205,8 +32208,8 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, OF
|
|
|
32205
32208
|
};
|
|
32206
32209
|
e(t.id, null, h);
|
|
32207
32210
|
},
|
|
32208
|
-
children: s ? /* @__PURE__ */ p("div", { className: "flex flex-col items-start
|
|
32209
|
-
u > 0 && /* @__PURE__ */ p("div", { className: "flex items-center justify-center my-
|
|
32211
|
+
children: s ? /* @__PURE__ */ p("div", { className: "flex flex-col items-start gap-1 xl:flex-row xl:flex-wrap xl:gap-1", children: t.groups.map((d, u) => /* @__PURE__ */ z(Cd, { children: [
|
|
32212
|
+
u > 0 && /* @__PURE__ */ p("div", { className: "flex items-center justify-center my-1 xl:my-0 xl:px-2", children: /* @__PURE__ */ p("span", { className: "px-2 py-1 bg-qb-primary text-white text-xs font-semibold rounded", children: "AND" }) }),
|
|
32210
32213
|
/* @__PURE__ */ p("div", { className: "shrink-0", children: /* @__PURE__ */ p(
|
|
32211
32214
|
NF,
|
|
32212
32215
|
{
|