@pantheon-systems/pds-toolkit-react 2.0.0-alpha.78 → 2.0.0-alpha.79
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/buttons/IconButton/IconButton.d.ts +1 -1
- package/dist/components/buttons/MenuButton/MenuButton.d.ts +1 -1
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/css/component-css/pds-icon-button.css +1 -1
- package/dist/css/component-css/pds-index.css +3 -3
- package/dist/css/component-css/pds-section-message.css +1 -1
- package/dist/css/component-css/pds-status-checker.css +1 -1
- package/dist/css/pds-components.css +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +530 -534
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import e, { Children as t, Fragment as n, cloneElement as r, createContext as i,
|
|
|
2
2
|
import v from "hash-sum";
|
|
3
3
|
import { FloatingArrow as y, FloatingFocusManager as b, FloatingNode as x, FloatingOverlay as S, FloatingPortal as C, FloatingTree as w, arrow as T, autoUpdate as E, flip as D, offset as O, safePolygon as k, shift as A, size as j, useClick as M, useDismiss as N, useFloating as P, useFloatingNodeId as F, useFloatingParentNodeId as I, useFocus as L, useHover as R, useId as z, useInteractions as B, useListNavigation as V, useRole as H, useTransitionStyles as U, useTypeahead as W } from "@floating-ui/react";
|
|
4
4
|
import { useHotkeys as G } from "react-hotkeys-hook";
|
|
5
|
-
import { Bar as K, BarChart as q, CartesianGrid as J, Cell as ee, Line as te, LineChart as ne, Pie as re, PieChart as ie, Rectangle as ae, ReferenceLine as oe, ResponsiveContainer as se, Tooltip as Y, XAxis as
|
|
5
|
+
import { Bar as K, BarChart as q, CartesianGrid as J, Cell as ee, Line as te, LineChart as ne, Pie as re, PieChart as ie, Rectangle as ae, ReferenceLine as oe, ResponsiveContainer as se, Tooltip as Y, XAxis as ce, YAxis as X } from "recharts";
|
|
6
6
|
import { CodeBlock as le } from "react-code-block";
|
|
7
7
|
import { useCombobox as ue, useMultipleSelection as de } from "downshift";
|
|
8
8
|
import { CalendarDate as fe, Time as pe, createCalendar as me, endOfMonth as he, endOfWeek as ge, fromDate as _e, getLocalTimeZone as ve, startOfMonth as ye, startOfWeek as be, toCalendarDateTime as xe, toTimeZone as Se, toZoned as Ce, today as we } from "@internationalized/date";
|
|
@@ -2970,6 +2970,9 @@ var Dn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
|
|
|
2970
2970
|
scaleIn: `${v}--scaleIn`
|
|
2971
2971
|
}, w, T;
|
|
2972
2972
|
switch (p) {
|
|
2973
|
+
case "xs":
|
|
2974
|
+
T = "m", w = 6;
|
|
2975
|
+
break;
|
|
2973
2976
|
case "s":
|
|
2974
2977
|
T = "m", w = 8;
|
|
2975
2978
|
break;
|
|
@@ -3481,7 +3484,7 @@ var Dn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
|
|
|
3481
3484
|
}));
|
|
3482
3485
|
}, er = ({ children: t, className: n, ...r }) => {
|
|
3483
3486
|
let { floatingStyles: i, getFloatingProps: a, isMounted: o, nodeId: s, refs: c, transitionStyles: l } = Xn();
|
|
3484
|
-
return o ? /* @__PURE__ */ e.createElement(x, { id: s }, /* @__PURE__ */ e.createElement("ul", {
|
|
3487
|
+
return o ? /* @__PURE__ */ e.createElement(x, { id: s }, /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("ul", {
|
|
3485
3488
|
ref: c.setFloating,
|
|
3486
3489
|
className: Z(["pds-dropdown__panel", n ?? ""]),
|
|
3487
3490
|
style: {
|
|
@@ -3490,7 +3493,7 @@ var Dn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
|
|
|
3490
3493
|
},
|
|
3491
3494
|
...a(),
|
|
3492
3495
|
...r
|
|
3493
|
-
}, t)) : null;
|
|
3496
|
+
}, t))) : null;
|
|
3494
3497
|
}, tr = ({ children: t, className: n, closeOnSelect: r = !0, description: i, disabled: a, icon: o, index: s, isActive: c, isCritical: l, onClick: u, onKeyDown: d, trailingIcon: f, ...p }) => {
|
|
3495
3498
|
let { activeIndex: m, getItemProps: h, listRef: g, setIsOpen: _ } = Xn(), v = "pds-dropdown", y = m === s, b = y ? `${v}__item--focused` : null, x = c ? `${v}__item--active` : null, S = l ? `${v}__item--critical` : null, C = a ? `${v}__item--disabled` : null, w = (e) => {
|
|
3496
3499
|
u?.(e), r && _(!1);
|
|
@@ -4295,29 +4298,29 @@ var sr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4295
4298
|
}, Cr = ({ autoWidth: t = !1, className: n, defaultValue: r, disabled: i, icon: a, id: o, inputWidth: s, label: c, labelStrings: l = {
|
|
4296
4299
|
selectOptionText: "Select an option...",
|
|
4297
4300
|
triggerButton: "Toggle dropdown menu"
|
|
4298
|
-
}, message: d, onBlur: f, onFocus: p, onOptionSelect: m, options: h, required: _ = !1, showLabel: v = !0, showSelectedIcon: y = !0, size: b = "s", tooltipText: x = null, validationMessage: S, validationStatus:
|
|
4299
|
-
let
|
|
4300
|
-
|
|
4301
|
-
let
|
|
4301
|
+
}, message: d, onBlur: f, onFocus: p, onOptionSelect: m, options: h, required: _ = !1, showLabel: v = !0, showSelectedIcon: y = !0, size: b = "s", tooltipText: x = null, validationMessage: S, validationStatus: w, value: T, ...E }) => {
|
|
4302
|
+
let D = cn(s), O = "pds-select", k = t ? `${O}--auto-width` : null, A = b === "s" ? null : `${O}--${b}`, j = i ? $.disabled : null, M = _ && !i ? $.required : null, N = w === "error" ? $.error : null, P = w === "success" ? $.success : null, F = null;
|
|
4303
|
+
w === "error" && (F = "error"), w === "success" && (F = "success");
|
|
4304
|
+
let I = S || d, L = T !== void 0, R = r !== void 0, z = ((e) => e.reduce((e, t) => yn(t) ? [...e, ...t.options] : [...e, t], []))(h), B = (e) => z.findIndex((t) => t.value === e), V = L && B(T) >= 0 ? B(T) : null, H = R ? B(r) : null, [U, W] = g((V || H) ?? null), { activeIndex: G, floatingStyles: K, getFloatingProps: q, getItemProps: J, getReferenceProps: ee, isMounted: te, listRef: ne, refs: re, setIsOpen: ie, transitionStyles: ae } = Rn({
|
|
4302
4305
|
enableClick: !i,
|
|
4303
4306
|
enableTypeahead: !0,
|
|
4304
4307
|
role: "listbox",
|
|
4305
|
-
selectedIndex:
|
|
4308
|
+
selectedIndex: U,
|
|
4306
4309
|
variant: "input"
|
|
4307
|
-
}),
|
|
4308
|
-
let t =
|
|
4309
|
-
|
|
4310
|
+
}), oe = U === null ? void 0 : z[U]?.label, se = U === null ? void 0 : z[U]?.icon, Y = U === null ? void 0 : z[U]?.value, ce = (e) => {
|
|
4311
|
+
let t = z[e];
|
|
4312
|
+
L || (W(e), ie(!1)), m && m(t);
|
|
4310
4313
|
};
|
|
4311
4314
|
u(() => {
|
|
4312
|
-
|
|
4313
|
-
}, [
|
|
4315
|
+
L && (W(B(T)), ie(!1));
|
|
4316
|
+
}, [T]);
|
|
4314
4317
|
let X = () => {
|
|
4315
|
-
f && f(
|
|
4316
|
-
}, ce = () => {
|
|
4317
|
-
p && p(se);
|
|
4318
|
+
f && f(Y);
|
|
4318
4319
|
}, le = () => {
|
|
4319
|
-
|
|
4320
|
-
}, ue = (
|
|
4320
|
+
p && p(Y);
|
|
4321
|
+
}, ue = () => {
|
|
4322
|
+
re.reference.current.focus();
|
|
4323
|
+
}, de = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(fr, {
|
|
4321
4324
|
className: n,
|
|
4322
4325
|
platformType: t,
|
|
4323
4326
|
size: "m"
|
|
@@ -4325,7 +4328,7 @@ var sr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4325
4328
|
className: n,
|
|
4326
4329
|
iconName: t,
|
|
4327
4330
|
size: "m"
|
|
4328
|
-
}),
|
|
4331
|
+
}), fe = (t) => {
|
|
4329
4332
|
let n = 0;
|
|
4330
4333
|
return t.map((t) => {
|
|
4331
4334
|
if (yn(t)) {
|
|
@@ -4334,20 +4337,20 @@ var sr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4334
4337
|
return /* @__PURE__ */ e.createElement(bn, {
|
|
4335
4338
|
key: r,
|
|
4336
4339
|
ref: (e) => {
|
|
4337
|
-
|
|
4340
|
+
ne.current[r] = e;
|
|
4338
4341
|
},
|
|
4339
4342
|
"aria-disabled": t?.disabled,
|
|
4340
|
-
"aria-selected": r ===
|
|
4341
|
-
tabIndex: r ===
|
|
4342
|
-
...!t?.disabled &&
|
|
4343
|
+
"aria-selected": r === U && r === G,
|
|
4344
|
+
tabIndex: r === G ? 0 : -1,
|
|
4345
|
+
...!t?.disabled && J({
|
|
4343
4346
|
onClick() {
|
|
4344
|
-
|
|
4347
|
+
ce(r);
|
|
4345
4348
|
},
|
|
4346
4349
|
onKeyDown(e) {
|
|
4347
|
-
e.key === "Enter" && (e.preventDefault(),
|
|
4350
|
+
e.key === "Enter" && (e.preventDefault(), ce(r), re.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), re.reference.current.focus());
|
|
4348
4351
|
}
|
|
4349
4352
|
})
|
|
4350
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
4353
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${O}__option-label` }, t.icon && de(t.icon, `${O}__option-icon`), t.label), y && U === r && /* @__PURE__ */ e.createElement(sr, null));
|
|
4351
4354
|
});
|
|
4352
4355
|
return /* @__PURE__ */ e.createElement(Sr, {
|
|
4353
4356
|
key: t.groupLabel,
|
|
@@ -4358,44 +4361,44 @@ var sr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4358
4361
|
return /* @__PURE__ */ e.createElement(bn, {
|
|
4359
4362
|
key: r,
|
|
4360
4363
|
ref: (e) => {
|
|
4361
|
-
|
|
4364
|
+
ne.current[r] = e;
|
|
4362
4365
|
},
|
|
4363
4366
|
"aria-disabled": t?.disabled,
|
|
4364
|
-
"aria-selected": r ===
|
|
4365
|
-
tabIndex: r ===
|
|
4366
|
-
...!t?.disabled &&
|
|
4367
|
+
"aria-selected": r === U && r === G,
|
|
4368
|
+
tabIndex: r === G ? 0 : -1,
|
|
4369
|
+
...!t?.disabled && J({
|
|
4367
4370
|
onClick() {
|
|
4368
|
-
|
|
4371
|
+
ce(r);
|
|
4369
4372
|
},
|
|
4370
4373
|
onKeyDown(e) {
|
|
4371
|
-
e.key === "Enter" && (e.preventDefault(),
|
|
4374
|
+
e.key === "Enter" && (e.preventDefault(), ce(r), re.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), re.reference.current.focus());
|
|
4372
4375
|
}
|
|
4373
4376
|
})
|
|
4374
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
4377
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${O}__option-label` }, t.icon && de(t.icon, `${O}__option-icon`), t.label), y && U === r && /* @__PURE__ */ e.createElement(sr, null));
|
|
4375
4378
|
});
|
|
4376
4379
|
};
|
|
4377
4380
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4378
4381
|
className: Z([
|
|
4379
4382
|
$.base,
|
|
4380
|
-
D,
|
|
4381
4383
|
O,
|
|
4382
4384
|
k,
|
|
4383
4385
|
A,
|
|
4384
4386
|
j,
|
|
4385
4387
|
M,
|
|
4386
4388
|
N,
|
|
4389
|
+
P,
|
|
4387
4390
|
n ?? ""
|
|
4388
4391
|
]),
|
|
4389
|
-
style: s ?
|
|
4390
|
-
...
|
|
4392
|
+
style: s ? D : null,
|
|
4393
|
+
...E
|
|
4391
4394
|
}, t && !s && /* @__PURE__ */ e.createElement("div", {
|
|
4392
4395
|
"aria-hidden": "true",
|
|
4393
|
-
className: `${
|
|
4394
|
-
},
|
|
4396
|
+
className: `${O}__sizer`
|
|
4397
|
+
}, z.map((t) => /* @__PURE__ */ e.createElement("span", {
|
|
4395
4398
|
key: t.value,
|
|
4396
|
-
className: `${
|
|
4397
|
-
},
|
|
4398
|
-
className: `${
|
|
4399
|
+
className: `${O}__input-wrapper`
|
|
4400
|
+
}, w !== void 0 && /* @__PURE__ */ e.createElement(mn, { variant: "error" }), /* @__PURE__ */ e.createElement("span", { className: `${O}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${O}__option-text` }, t.icon && de(t.icon, `${O}__icon`), t.label), /* @__PURE__ */ e.createElement(Q, {
|
|
4401
|
+
className: `${O}__trigger-icon`,
|
|
4399
4402
|
iconName: "angleDown"
|
|
4400
4403
|
}))))), /* @__PURE__ */ e.createElement(dn, {
|
|
4401
4404
|
disabled: i,
|
|
@@ -4405,37 +4408,37 @@ var sr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4405
4408
|
showLabel: v,
|
|
4406
4409
|
tooltipText: x
|
|
4407
4410
|
}), /* @__PURE__ */ e.createElement("span", {
|
|
4408
|
-
ref:
|
|
4411
|
+
ref: re.setReference,
|
|
4409
4412
|
"aria-autocomplete": "none",
|
|
4410
4413
|
"aria-labelledby": `${o}-label`,
|
|
4411
|
-
className: `${
|
|
4414
|
+
className: `${O}__input-wrapper`,
|
|
4412
4415
|
id: o,
|
|
4413
4416
|
tabIndex: 0,
|
|
4414
|
-
...
|
|
4415
|
-
onClick:
|
|
4417
|
+
...ee({
|
|
4418
|
+
onClick: ue,
|
|
4416
4419
|
onBlur: X,
|
|
4417
|
-
onFocus:
|
|
4420
|
+
onFocus: le
|
|
4418
4421
|
})
|
|
4419
|
-
},
|
|
4420
|
-
className: `${
|
|
4422
|
+
}, F && /* @__PURE__ */ e.createElement(mn, { variant: F }), /* @__PURE__ */ e.createElement("span", { className: `${O}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${O}__option-text` }, (se || !oe && a) && de(se || a, `${O}__icon`), /* @__PURE__ */ e.createElement("span", { className: `${O}__option-label-text` }, oe ?? l.selectOptionText)), /* @__PURE__ */ e.createElement(Q, {
|
|
4423
|
+
className: `${O}__trigger-icon`,
|
|
4421
4424
|
iconName: "angleDown"
|
|
4422
|
-
}))),
|
|
4423
|
-
ref:
|
|
4424
|
-
className: `pds-dropdown__panel ${
|
|
4425
|
+
}))), te && /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
|
|
4426
|
+
ref: re.setFloating,
|
|
4427
|
+
className: `pds-dropdown__panel ${O}__dropdown`,
|
|
4425
4428
|
style: {
|
|
4426
|
-
...
|
|
4429
|
+
...K,
|
|
4427
4430
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
4428
4431
|
},
|
|
4429
|
-
...
|
|
4430
|
-
}, /* @__PURE__ */ e.createElement("div", { style: { ...
|
|
4431
|
-
className: `${
|
|
4432
|
+
...q()
|
|
4433
|
+
}, /* @__PURE__ */ e.createElement("div", { style: { ...ae } }, /* @__PURE__ */ e.createElement("ul", {
|
|
4434
|
+
className: `${O}__options`,
|
|
4432
4435
|
role: "group"
|
|
4433
|
-
},
|
|
4436
|
+
}, fe(h))))), I && /* @__PURE__ */ e.createElement(fn, {
|
|
4434
4437
|
hasValidationMessage: !!S,
|
|
4435
4438
|
id: o,
|
|
4436
|
-
message:
|
|
4439
|
+
message: I,
|
|
4437
4440
|
validationMessageHasDecorators: !1,
|
|
4438
|
-
validationStatus:
|
|
4441
|
+
validationStatus: w
|
|
4439
4442
|
}));
|
|
4440
4443
|
}, wr = {
|
|
4441
4444
|
"sequential-blue": 2,
|
|
@@ -4919,7 +4922,7 @@ var sr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4919
4922
|
stroke: "var(--pds-color-border-default)",
|
|
4920
4923
|
strokeDasharray: "3 3",
|
|
4921
4924
|
vertical: Te
|
|
4922
|
-
}), /* @__PURE__ */ e.createElement(
|
|
4925
|
+
}), /* @__PURE__ */ e.createElement(ce, {
|
|
4923
4926
|
axisLine: ie,
|
|
4924
4927
|
dataKey: Te ? void 0 : "label",
|
|
4925
4928
|
hide: !ie,
|
|
@@ -4936,7 +4939,7 @@ var sr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
4936
4939
|
tickLine: !1,
|
|
4937
4940
|
tickMargin: 10,
|
|
4938
4941
|
type: Te ? "number" : "category"
|
|
4939
|
-
}), /* @__PURE__ */ e.createElement(
|
|
4942
|
+
}), /* @__PURE__ */ e.createElement(X, {
|
|
4940
4943
|
axisLine: ie,
|
|
4941
4944
|
dataKey: Te ? "label" : void 0,
|
|
4942
4945
|
domain: N,
|
|
@@ -5093,7 +5096,7 @@ var sr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5093
5096
|
}, V && /* @__PURE__ */ e.createElement(J, {
|
|
5094
5097
|
stroke: "var(--pds-color-border-default)",
|
|
5095
5098
|
strokeDasharray: "3 3"
|
|
5096
|
-
}), /* @__PURE__ */ e.createElement(
|
|
5099
|
+
}), /* @__PURE__ */ e.createElement(ce, {
|
|
5097
5100
|
axisLine: H,
|
|
5098
5101
|
dataKey: "label",
|
|
5099
5102
|
hide: !H,
|
|
@@ -5107,7 +5110,7 @@ var sr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
|
|
|
5107
5110
|
tick: H ? Mr : !1,
|
|
5108
5111
|
tickLine: !1,
|
|
5109
5112
|
tickMargin: 10
|
|
5110
|
-
}), /* @__PURE__ */ e.createElement(
|
|
5113
|
+
}), /* @__PURE__ */ e.createElement(X, {
|
|
5111
5114
|
axisLine: H,
|
|
5112
5115
|
domain: D,
|
|
5113
5116
|
hide: !H,
|
|
@@ -7147,17 +7150,17 @@ var Xr = {
|
|
|
7147
7150
|
inputInstructions: "Type to search options",
|
|
7148
7151
|
searchShortcut: "Press / to focus the search field",
|
|
7149
7152
|
triggerButton: "Toggle dropdown menu"
|
|
7150
|
-
}, loadingText: v = "Loading results...", message: y, noResultsText: b = "No results found", onBlur: x, onChange: S, onClear:
|
|
7151
|
-
let
|
|
7152
|
-
o && (
|
|
7153
|
-
let
|
|
7154
|
-
let t =
|
|
7153
|
+
}, loadingText: v = "Loading results...", message: y, noResultsText: b = "No results found", onBlur: x, onChange: S, onClear: w, onFocus: T, onOptionSelect: k, options: A, placeholder: M, required: N = !1, showLabel: F = !0, showUnfilteredOptions: I = !1, size: L = "s", tooltipText: R = null, validationMessage: z, validationStatus: B, value: V, ...H }, W) => {
|
|
7154
|
+
let G = cn(d), K = "pds-combobox", q = L === "s" ? null : `${K}--${L}`, J = r ? $.disabled : null, ee = N && !r ? $.required : null, te = B === "error" ? $.error : null, ne = B === "success" ? $.success : null, re = null;
|
|
7155
|
+
o && (re = "search"), B === "error" && (re = "error"), B === "success" && (re = "success");
|
|
7156
|
+
let ie = z || y, ae = V !== void 0, oe = n !== void 0, se = (e) => {
|
|
7157
|
+
let t = A.find((t) => t.value === e);
|
|
7155
7158
|
return t ? t.label : "";
|
|
7156
|
-
}, [
|
|
7159
|
+
}, [Y, ce] = g(oe ? n : void 0), [X, le] = g(ae ? V ?? "" : oe ? se(n) : ""), de = s && !X;
|
|
7157
7160
|
u(() => {
|
|
7158
|
-
|
|
7159
|
-
}, [
|
|
7160
|
-
let
|
|
7161
|
+
ae && le(V ?? "");
|
|
7162
|
+
}, [ae, V]);
|
|
7163
|
+
let fe = h(null), pe = (e) => e.map(({ label: e, optionDisplay: t, searchIndex: n, value: r, ...i }) => {
|
|
7161
7164
|
let a = r || e, o = [e, r];
|
|
7162
7165
|
return n && o.push(...n), {
|
|
7163
7166
|
label: e,
|
|
@@ -7166,27 +7169,27 @@ var Xr = {
|
|
|
7166
7169
|
optionDisplay: t,
|
|
7167
7170
|
...i
|
|
7168
7171
|
};
|
|
7169
|
-
}),
|
|
7170
|
-
let e =
|
|
7171
|
-
if (!X && !
|
|
7172
|
+
}), me = m(() => {
|
|
7173
|
+
let e = pe(A);
|
|
7174
|
+
if (!X && !I) return [];
|
|
7172
7175
|
let t = (X ?? "").toLowerCase();
|
|
7173
7176
|
return e.filter((e) => (e.searchIndex?.map((e) => e.toLowerCase()) ?? []).some((e) => e.includes(t)));
|
|
7174
7177
|
}, [
|
|
7175
|
-
|
|
7178
|
+
A,
|
|
7176
7179
|
X,
|
|
7177
|
-
|
|
7180
|
+
I,
|
|
7178
7181
|
f
|
|
7179
|
-
]), { getInputProps:
|
|
7182
|
+
]), { getInputProps: he, getItemProps: ge, getMenuProps: _e, highlightedIndex: ve, isOpen: ye, openMenu: be, reset: xe } = ue({
|
|
7180
7183
|
id: l,
|
|
7181
7184
|
inputId: `input-${l}`,
|
|
7182
|
-
items:
|
|
7185
|
+
items: me,
|
|
7183
7186
|
itemToString: (e) => e ? e.label : "",
|
|
7184
7187
|
inputValue: X,
|
|
7185
7188
|
onInputValueChange: ({ inputValue: e }) => {
|
|
7186
|
-
|
|
7189
|
+
le(e ?? "");
|
|
7187
7190
|
},
|
|
7188
7191
|
onSelectedItemChange: ({ selectedItem: e }) => {
|
|
7189
|
-
e && (
|
|
7192
|
+
e && (ae || le(e.label), ce(e.value), k?.(e));
|
|
7190
7193
|
},
|
|
7191
7194
|
stateReducer: (e, { changes: t, type: n }) => {
|
|
7192
7195
|
if (n === ue.stateChangeTypes.InputBlur) return {
|
|
@@ -7194,7 +7197,7 @@ var Xr = {
|
|
|
7194
7197
|
inputValue: e.inputValue
|
|
7195
7198
|
};
|
|
7196
7199
|
if (n === ue.stateChangeTypes.InputClick) {
|
|
7197
|
-
if (
|
|
7200
|
+
if (I) return {
|
|
7198
7201
|
...t,
|
|
7199
7202
|
isOpen: !0
|
|
7200
7203
|
};
|
|
@@ -7205,11 +7208,11 @@ var Xr = {
|
|
|
7205
7208
|
}
|
|
7206
7209
|
return t;
|
|
7207
7210
|
}
|
|
7208
|
-
}), { context:
|
|
7209
|
-
open:
|
|
7211
|
+
}), { context: Se, floatingStyles: Ce, refs: we } = P({
|
|
7212
|
+
open: ye,
|
|
7210
7213
|
whileElementsMounted: E,
|
|
7211
7214
|
placement: "bottom-start",
|
|
7212
|
-
strategy: "
|
|
7215
|
+
strategy: "fixed",
|
|
7213
7216
|
middleware: [
|
|
7214
7217
|
O(({ placement: e }) => e.startsWith("top") ? 16 : 0),
|
|
7215
7218
|
j({
|
|
@@ -7229,7 +7232,7 @@ var Xr = {
|
|
|
7229
7232
|
}),
|
|
7230
7233
|
D({ padding: 24 })
|
|
7231
7234
|
]
|
|
7232
|
-
}), { isMounted:
|
|
7235
|
+
}), { isMounted: Te, styles: Ee } = U(Se, {
|
|
7233
7236
|
duration: {
|
|
7234
7237
|
open: 300,
|
|
7235
7238
|
close: 150
|
|
@@ -7237,103 +7240,103 @@ var Xr = {
|
|
|
7237
7240
|
initial: { opacity: 0 },
|
|
7238
7241
|
open: { opacity: 1 },
|
|
7239
7242
|
close: { opacity: 0 }
|
|
7240
|
-
}),
|
|
7241
|
-
|
|
7242
|
-
}, [
|
|
7243
|
-
|
|
7244
|
-
},
|
|
7245
|
-
|
|
7246
|
-
}, ke = (e) => {
|
|
7247
|
-
x?.(se);
|
|
7243
|
+
}), De = c((e) => {
|
|
7244
|
+
we.setReference(e), typeof W == "function" ? W(e) : W && "current" in W && (W.current = e);
|
|
7245
|
+
}, [W, we]), Oe = () => {
|
|
7246
|
+
ye ? xe() : be();
|
|
7247
|
+
}, ke = () => {
|
|
7248
|
+
ae || le(""), ce(void 0), xe(), fe.current?.focus(), I && be(), w?.();
|
|
7248
7249
|
}, Ae = (e) => {
|
|
7249
|
-
|
|
7250
|
-
}, je = () =>
|
|
7250
|
+
x?.(Y);
|
|
7251
|
+
}, je = (e) => {
|
|
7252
|
+
I && be(), T?.(Y);
|
|
7253
|
+
}, Me = () => me.map((t, n) => /* @__PURE__ */ e.createElement(bn, {
|
|
7251
7254
|
key: t.value,
|
|
7252
|
-
className:
|
|
7253
|
-
...
|
|
7255
|
+
className: ve === n ? "pds-dropdown__item--focused" : "",
|
|
7256
|
+
...ge({
|
|
7254
7257
|
item: t,
|
|
7255
7258
|
index: n
|
|
7256
7259
|
})
|
|
7257
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
7260
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${K}__option-label` }, t.optionDisplay || t.label)));
|
|
7258
7261
|
return /* @__PURE__ */ e.createElement("div", {
|
|
7259
7262
|
className: Z([
|
|
7260
7263
|
$.base,
|
|
7261
|
-
G,
|
|
7262
7264
|
K,
|
|
7263
7265
|
q,
|
|
7264
7266
|
J,
|
|
7265
7267
|
ee,
|
|
7266
7268
|
te,
|
|
7269
|
+
ne,
|
|
7267
7270
|
t ?? ""
|
|
7268
7271
|
]),
|
|
7269
|
-
style: d ?
|
|
7270
|
-
...
|
|
7272
|
+
style: d ? G : null,
|
|
7273
|
+
...H
|
|
7271
7274
|
}, /* @__PURE__ */ e.createElement(dn, {
|
|
7272
7275
|
disabled: r,
|
|
7273
7276
|
id: `input-${l}`,
|
|
7274
7277
|
label: p,
|
|
7275
|
-
required:
|
|
7276
|
-
showLabel:
|
|
7277
|
-
tooltipText:
|
|
7278
|
+
required: N,
|
|
7279
|
+
showLabel: F,
|
|
7280
|
+
tooltipText: R
|
|
7278
7281
|
}), /* @__PURE__ */ e.createElement("span", {
|
|
7279
|
-
ref:
|
|
7280
|
-
"aria-describedby":
|
|
7282
|
+
ref: De,
|
|
7283
|
+
"aria-describedby": ie ? `${l}__message` : null,
|
|
7281
7284
|
"aria-disabled": r ? !0 : null,
|
|
7282
|
-
"aria-invalid":
|
|
7283
|
-
"aria-required":
|
|
7284
|
-
className: Z([`${
|
|
7285
|
+
"aria-invalid": B === "error" ? !0 : null,
|
|
7286
|
+
"aria-required": N ? !0 : null,
|
|
7287
|
+
className: Z([`${K}__input-wrapper`, de ? `${K}__input-wrapper--has-search-shortcut` : null]),
|
|
7285
7288
|
id: l
|
|
7286
|
-
},
|
|
7287
|
-
ref:
|
|
7289
|
+
}, re && /* @__PURE__ */ e.createElement(mn, { variant: re }), /* @__PURE__ */ e.createElement("input", {
|
|
7290
|
+
ref: fe,
|
|
7288
7291
|
autoComplete: "off",
|
|
7289
|
-
className: `${
|
|
7292
|
+
className: `${K}__input`,
|
|
7290
7293
|
id: `input-${l}`,
|
|
7291
|
-
...
|
|
7294
|
+
...he({
|
|
7292
7295
|
"aria-label": _.inputInstructions,
|
|
7293
7296
|
disabled: r,
|
|
7294
|
-
placeholder:
|
|
7295
|
-
onBlur:
|
|
7297
|
+
placeholder: M,
|
|
7298
|
+
onBlur: Ae,
|
|
7296
7299
|
onChange: (e) => {
|
|
7297
7300
|
S?.(e);
|
|
7298
7301
|
},
|
|
7299
|
-
onFocus:
|
|
7302
|
+
onFocus: je
|
|
7300
7303
|
})
|
|
7301
7304
|
}), X && i && /* @__PURE__ */ e.createElement(gn, {
|
|
7302
7305
|
clearLabel: _.clearButton,
|
|
7303
|
-
handleClearInput:
|
|
7306
|
+
handleClearInput: ke,
|
|
7304
7307
|
id: `input-${l}`
|
|
7305
|
-
}),
|
|
7308
|
+
}), de && /* @__PURE__ */ e.createElement(hn, {
|
|
7306
7309
|
inputId: `input-${l}`,
|
|
7307
7310
|
shortcutLabel: _.searchShortcut
|
|
7308
7311
|
}), a && /* @__PURE__ */ e.createElement("button", {
|
|
7309
|
-
"aria-expanded":
|
|
7312
|
+
"aria-expanded": ye,
|
|
7310
7313
|
"aria-label": _.triggerButton,
|
|
7311
|
-
className: `${
|
|
7314
|
+
className: `${K}__trigger`,
|
|
7312
7315
|
disabled: r,
|
|
7313
|
-
onClick:
|
|
7316
|
+
onClick: Oe,
|
|
7314
7317
|
type: "button"
|
|
7315
7318
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
7316
|
-
className: `${
|
|
7319
|
+
className: `${K}__trigger-icon`,
|
|
7317
7320
|
iconName: "angleDown",
|
|
7318
7321
|
size: "m"
|
|
7319
|
-
}))), /* @__PURE__ */ e.createElement("div", {
|
|
7320
|
-
ref:
|
|
7321
|
-
className: `pds-dropdown__panel ${
|
|
7322
|
-
style:
|
|
7323
|
-
...
|
|
7324
|
-
...
|
|
7322
|
+
}))), /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
|
|
7323
|
+
ref: we.setFloating,
|
|
7324
|
+
className: `pds-dropdown__panel ${K}__dropdown`,
|
|
7325
|
+
style: Te ? {
|
|
7326
|
+
...Ce,
|
|
7327
|
+
...Ee,
|
|
7325
7328
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7326
7329
|
} : { display: "none" }
|
|
7327
|
-
},
|
|
7328
|
-
className: `${
|
|
7329
|
-
...
|
|
7330
|
-
style:
|
|
7331
|
-
},
|
|
7332
|
-
hasValidationMessage: !!
|
|
7330
|
+
}, Te && f && /* @__PURE__ */ e.createElement("div", { className: `${K}__loading` }, v), Te && !f && me.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, b), /* @__PURE__ */ e.createElement("ul", {
|
|
7331
|
+
className: `${K}__options`,
|
|
7332
|
+
..._e(),
|
|
7333
|
+
style: Te && !f && me.length > 0 ? void 0 : { display: "none" }
|
|
7334
|
+
}, Te && !f && Me()))), ie && /* @__PURE__ */ e.createElement(fn, {
|
|
7335
|
+
hasValidationMessage: !!z,
|
|
7333
7336
|
id: l,
|
|
7334
|
-
message:
|
|
7337
|
+
message: ie,
|
|
7335
7338
|
validationMessageHasDecorators: !1,
|
|
7336
|
-
validationStatus:
|
|
7339
|
+
validationStatus: B
|
|
7337
7340
|
}));
|
|
7338
7341
|
}), di = (e, t, n) => {
|
|
7339
7342
|
let r = n.toLowerCase();
|
|
@@ -7349,33 +7352,33 @@ var Xr = {
|
|
|
7349
7352
|
inputInstructions: "Type to search options",
|
|
7350
7353
|
triggerButton: "Toggle dropdown menu"
|
|
7351
7354
|
}, loadingText: u = "Loading results...", noResultsText: d = "No results found", onChange: f, options: p, placeholder: _ = "Filter", required: v = !1, showAllTags: y = !1, showLabel: b = !0, size: x = "s", ...S }) => {
|
|
7352
|
-
let
|
|
7355
|
+
let w = cn(o), T = "pds-combobox-multi", k = x === "s" ? null : `${T}--${x}`, A = r ? $.disabled : null, M = v && !r ? $.required : null, F = y ? `${T}--show-all-tags` : null, [I, L] = g(""), [R, z] = g(a), [V, H] = g(null), [U, W] = g(!1), G = m(() => di(p, R, I), [
|
|
7353
7356
|
p,
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
]),
|
|
7357
|
+
R,
|
|
7358
|
+
I
|
|
7359
|
+
]), K = m(() => t?.items?.map((e) => ({
|
|
7357
7360
|
...e,
|
|
7358
|
-
isAlreadySelected:
|
|
7359
|
-
})) || [], [t?.items,
|
|
7360
|
-
|
|
7361
|
-
}, { getDropdownProps:
|
|
7362
|
-
selectedItems:
|
|
7361
|
+
isAlreadySelected: R.some((t) => t.id === e.id)
|
|
7362
|
+
})) || [], [t?.items, R]), q = (e) => {
|
|
7363
|
+
z(e), f?.(e);
|
|
7364
|
+
}, { getDropdownProps: J, getSelectedItemProps: ee, removeSelectedItem: te } = de({
|
|
7365
|
+
selectedItems: R,
|
|
7363
7366
|
onStateChange: ({ selectedItems: e, type: t }) => {
|
|
7364
7367
|
if (!r) switch (t) {
|
|
7365
7368
|
case de.stateChangeTypes.SelectedItemKeyDownBackspace:
|
|
7366
7369
|
case de.stateChangeTypes.SelectedItemKeyDownDelete:
|
|
7367
7370
|
case de.stateChangeTypes.DropdownKeyDownBackspace:
|
|
7368
7371
|
case de.stateChangeTypes.FunctionRemoveSelectedItem:
|
|
7369
|
-
|
|
7372
|
+
q(e || []);
|
|
7370
7373
|
break;
|
|
7371
7374
|
default: break;
|
|
7372
7375
|
}
|
|
7373
7376
|
}
|
|
7374
|
-
}), { closeMenu:
|
|
7375
|
-
items:
|
|
7377
|
+
}), { closeMenu: ne, getInputProps: re, getItemProps: ie, getMenuProps: ae, getToggleButtonProps: oe, highlightedIndex: se, isOpen: Y, openMenu: ce, selectedItem: X } = ue({
|
|
7378
|
+
items: G,
|
|
7376
7379
|
itemToString: (e) => e ? e.label : "",
|
|
7377
7380
|
selectedItem: null,
|
|
7378
|
-
inputValue:
|
|
7381
|
+
inputValue: I,
|
|
7379
7382
|
isOpen: r ? !1 : void 0,
|
|
7380
7383
|
stateReducer: (e, { changes: t, type: n }) => {
|
|
7381
7384
|
if (r) return e;
|
|
@@ -7394,28 +7397,31 @@ var Xr = {
|
|
|
7394
7397
|
case ue.stateChangeTypes.InputKeyDownEnter:
|
|
7395
7398
|
case ue.stateChangeTypes.ItemClick:
|
|
7396
7399
|
case ue.stateChangeTypes.InputBlur:
|
|
7397
|
-
n && (n.isAlreadySelected ?
|
|
7400
|
+
n && (n.isAlreadySelected ? q(R.filter((e) => e.id !== n.id)) : q([...R, n]), L(""), H(null));
|
|
7398
7401
|
break;
|
|
7399
7402
|
case ue.stateChangeTypes.InputChange:
|
|
7400
|
-
|
|
7403
|
+
L(e || ""), H(null);
|
|
7401
7404
|
break;
|
|
7402
7405
|
case ue.stateChangeTypes.ToggleButtonClick:
|
|
7403
7406
|
case ue.stateChangeTypes.FunctionOpenMenu:
|
|
7404
|
-
t &&
|
|
7407
|
+
t && W(!1);
|
|
7405
7408
|
break;
|
|
7406
7409
|
default: break;
|
|
7407
7410
|
}
|
|
7408
7411
|
}
|
|
7409
|
-
}), { floatingStyles:
|
|
7410
|
-
open:
|
|
7412
|
+
}), { floatingStyles: le, refs: fe } = P({
|
|
7413
|
+
open: Y,
|
|
7411
7414
|
whileElementsMounted: E,
|
|
7412
7415
|
placement: "bottom-start",
|
|
7413
|
-
strategy: "
|
|
7416
|
+
strategy: "fixed",
|
|
7414
7417
|
middleware: [
|
|
7415
7418
|
O(({ placement: e }) => e.startsWith("top") ? 16 : 0),
|
|
7416
7419
|
j({
|
|
7417
|
-
apply({ availableHeight: e, elements: t }) {
|
|
7418
|
-
Object.assign(t.floating.style, {
|
|
7420
|
+
apply({ availableHeight: e, elements: t, rects: n }) {
|
|
7421
|
+
Object.assign(t.floating.style, {
|
|
7422
|
+
maxHeight: `${e}px`,
|
|
7423
|
+
width: `${n.reference.width}px`
|
|
7424
|
+
});
|
|
7419
7425
|
},
|
|
7420
7426
|
padding: {
|
|
7421
7427
|
top: 12,
|
|
@@ -7426,12 +7432,12 @@ var Xr = {
|
|
|
7426
7432
|
}),
|
|
7427
7433
|
D({ padding: 24 })
|
|
7428
7434
|
]
|
|
7429
|
-
}), { context:
|
|
7430
|
-
open:
|
|
7431
|
-
onOpenChange:
|
|
7435
|
+
}), { context: pe, floatingStyles: me, refs: he } = P({
|
|
7436
|
+
open: U,
|
|
7437
|
+
onOpenChange: W,
|
|
7432
7438
|
whileElementsMounted: E,
|
|
7433
7439
|
placement: "bottom-start",
|
|
7434
|
-
strategy: "
|
|
7440
|
+
strategy: "fixed",
|
|
7435
7441
|
middleware: [
|
|
7436
7442
|
O(({ placement: e }) => e.startsWith("top") ? 16 : 4),
|
|
7437
7443
|
j({ apply({ elements: e, rects: t }) {
|
|
@@ -7439,44 +7445,44 @@ var Xr = {
|
|
|
7439
7445
|
} }),
|
|
7440
7446
|
D({ padding: 24 })
|
|
7441
7447
|
]
|
|
7442
|
-
}), { getFloatingProps:
|
|
7448
|
+
}), { getFloatingProps: ge } = B([N(pe)]), _e = (e) => {
|
|
7443
7449
|
if (e.stopPropagation(), r) return;
|
|
7444
|
-
let t = !
|
|
7445
|
-
|
|
7446
|
-
},
|
|
7447
|
-
r || (e.isAlreadySelected ?
|
|
7448
|
-
}, ve = () => {
|
|
7449
|
-
U(!1), t?.onClose?.();
|
|
7450
|
+
let t = !U;
|
|
7451
|
+
W(t), t && Y && ne();
|
|
7452
|
+
}, ve = (e) => {
|
|
7453
|
+
r || (e.isAlreadySelected ? q(R.filter((t) => t.id !== e.id)) : q([...R, e]));
|
|
7450
7454
|
}, ye = () => {
|
|
7451
|
-
t?.
|
|
7455
|
+
W(!1), t?.onClose?.();
|
|
7452
7456
|
}, be = () => {
|
|
7453
|
-
|
|
7457
|
+
t?.onRefresh?.();
|
|
7458
|
+
}, xe = () => {
|
|
7459
|
+
if (V === null) H(R.length - 1);
|
|
7454
7460
|
else {
|
|
7455
|
-
let e = [...
|
|
7456
|
-
e.splice(
|
|
7461
|
+
let e = [...R];
|
|
7462
|
+
e.splice(V, 1), q(e), H(null);
|
|
7457
7463
|
}
|
|
7458
|
-
},
|
|
7459
|
-
r || (
|
|
7460
|
-
}, Ce = (e) => {
|
|
7461
|
-
xe.current = se, !r && e.currentTarget.setAttribute("data-focus-method", "mouse");
|
|
7464
|
+
}, Se = h(!1), Ce = () => {
|
|
7465
|
+
r || (Se.current ? ne() : ce());
|
|
7462
7466
|
}, we = (e) => {
|
|
7463
|
-
|
|
7464
|
-
}, Te =
|
|
7465
|
-
|
|
7467
|
+
Se.current = Y, !r && e.currentTarget.setAttribute("data-focus-method", "mouse");
|
|
7468
|
+
}, Te = (e) => {
|
|
7469
|
+
e.currentTarget.setAttribute("data-focus-method", "keyboard"), !r && ((e.key === "Backspace" || e.key === "Delete") && !I && R.length > 0 && (e.preventDefault(), xe()), e.key === "Enter" && V !== null && (e.preventDefault(), xe()), !Y && (e.key === "Enter" || e.key === "ArrowDown") && (e.preventDefault(), ce()));
|
|
7470
|
+
}, Ee = re({
|
|
7471
|
+
...J({ preventKeyAction: Y }),
|
|
7466
7472
|
disabled: r,
|
|
7467
|
-
onKeyDown:
|
|
7468
|
-
}),
|
|
7473
|
+
onKeyDown: Te
|
|
7474
|
+
}), De = R.length === 2 ? /* @__PURE__ */ e.createElement("span", { className: `${T}__counter-item` }, R.length - 1) : R.length === 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${T}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${T}__counter-item` }, R.length - 1)) : R.length > 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${T}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${T}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${T}__counter-item` }, R.length - 1)) : "";
|
|
7469
7475
|
return /* @__PURE__ */ e.createElement("div", {
|
|
7470
7476
|
className: Z([
|
|
7471
7477
|
$.base,
|
|
7472
|
-
w,
|
|
7473
7478
|
T,
|
|
7474
7479
|
k,
|
|
7475
7480
|
A,
|
|
7476
7481
|
M,
|
|
7482
|
+
F,
|
|
7477
7483
|
n ?? ""
|
|
7478
7484
|
]),
|
|
7479
|
-
style: o ?
|
|
7485
|
+
style: o ? w : null,
|
|
7480
7486
|
...S
|
|
7481
7487
|
}, /* @__PURE__ */ e.createElement(dn, {
|
|
7482
7488
|
disabled: r,
|
|
@@ -7486,31 +7492,31 @@ var Xr = {
|
|
|
7486
7492
|
showLabel: b
|
|
7487
7493
|
}), /* @__PURE__ */ e.createElement("div", {
|
|
7488
7494
|
ref: (e) => {
|
|
7489
|
-
|
|
7495
|
+
fe.setReference(e), he.setReference(e);
|
|
7490
7496
|
},
|
|
7491
7497
|
"aria-disabled": r ? !0 : null,
|
|
7492
7498
|
"aria-required": v ? !0 : null,
|
|
7493
|
-
className: `${
|
|
7494
|
-
onClick:
|
|
7495
|
-
onKeyDown:
|
|
7496
|
-
onMouseDown:
|
|
7499
|
+
className: `${T}__input-wrapper`,
|
|
7500
|
+
onClick: Ce,
|
|
7501
|
+
onKeyDown: Te,
|
|
7502
|
+
onMouseDown: we,
|
|
7497
7503
|
tabIndex: r ? -1 : 0
|
|
7498
|
-
},
|
|
7504
|
+
}, R.length > 1 && !y && /* @__PURE__ */ e.createElement("div", { className: `${T}__counter` }, /* @__PURE__ */ e.createElement("span", { className: `${T}__counter-wrapper` }, De)), R.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${T}__items-wrapper` }, R.map((t, n) => /* @__PURE__ */ e.createElement("span", {
|
|
7499
7505
|
key: `selected-item-${n}`,
|
|
7500
7506
|
className: `
|
|
7501
|
-
${
|
|
7502
|
-
${n ===
|
|
7507
|
+
${T}__selected-item
|
|
7508
|
+
${n === V ? `${T}__selected-item--marked-for-deletion` : ""}
|
|
7503
7509
|
`,
|
|
7504
|
-
...
|
|
7510
|
+
...ee({
|
|
7505
7511
|
selectedItem: t,
|
|
7506
7512
|
index: n
|
|
7507
7513
|
}),
|
|
7508
7514
|
tabIndex: -1
|
|
7509
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
7515
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${T}__selected-item-text` }, t.label), /* @__PURE__ */ e.createElement("button", {
|
|
7510
7516
|
"aria-label": `Remove ${t.label}`,
|
|
7511
|
-
className: `${
|
|
7517
|
+
className: `${T}__selected-item-remove`,
|
|
7512
7518
|
onClick: (e) => {
|
|
7513
|
-
e.stopPropagation(),
|
|
7519
|
+
e.stopPropagation(), te(t);
|
|
7514
7520
|
},
|
|
7515
7521
|
onKeyDown: (e) => {
|
|
7516
7522
|
(e.key === "Enter" || e.key === " ") && e.stopPropagation();
|
|
@@ -7519,95 +7525,95 @@ var Xr = {
|
|
|
7519
7525
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
7520
7526
|
iconName: "xmark",
|
|
7521
7527
|
size: "s"
|
|
7522
|
-
}))))), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
7528
|
+
}))))), /* @__PURE__ */ e.createElement("div", { className: `${T}__end-actions` }, t && /* @__PURE__ */ e.createElement("button", {
|
|
7523
7529
|
"aria-label": l.aiPanelButton,
|
|
7524
|
-
className: Z([`${
|
|
7530
|
+
className: Z([`${T}__ai-button`, A ?? ""]),
|
|
7525
7531
|
disabled: r,
|
|
7526
|
-
onClick:
|
|
7532
|
+
onClick: _e,
|
|
7527
7533
|
type: "button"
|
|
7528
7534
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
7529
|
-
className: `${
|
|
7535
|
+
className: `${T}__ai-icon`,
|
|
7530
7536
|
iconName: "sparkles",
|
|
7531
7537
|
size: "s"
|
|
7532
7538
|
})), /* @__PURE__ */ e.createElement("button", {
|
|
7533
7539
|
"aria-label": l.triggerButton,
|
|
7534
|
-
className: `${
|
|
7540
|
+
className: `${T}__trigger ${A}`,
|
|
7535
7541
|
disabled: r,
|
|
7536
7542
|
type: "button",
|
|
7537
|
-
...
|
|
7543
|
+
...oe({ onClick: (e) => e.stopPropagation() })
|
|
7538
7544
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
7539
|
-
className: `${
|
|
7545
|
+
className: `${T}__trigger-icon`,
|
|
7540
7546
|
iconName: "angleDown",
|
|
7541
7547
|
size: "m"
|
|
7542
|
-
})))), /* @__PURE__ */ e.createElement("div", {
|
|
7543
|
-
...
|
|
7544
|
-
ref:
|
|
7545
|
-
className: `pds-dropdown__panel ${
|
|
7546
|
-
style:
|
|
7547
|
-
...
|
|
7548
|
+
})))), /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
|
|
7549
|
+
...J(),
|
|
7550
|
+
ref: fe.setFloating,
|
|
7551
|
+
className: `pds-dropdown__panel ${T}__dropdown`,
|
|
7552
|
+
style: Y ? {
|
|
7553
|
+
...le,
|
|
7548
7554
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7549
7555
|
} : { display: "none" }
|
|
7550
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
7556
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${T}__dropdown-input-wrapper` }, /* @__PURE__ */ e.createElement(mn, { variant: "search" }), /* @__PURE__ */ e.createElement("input", {
|
|
7551
7557
|
"aria-label": l.inputInstructions,
|
|
7552
|
-
className: `${
|
|
7558
|
+
className: `${T}__dropdown-input`,
|
|
7553
7559
|
placeholder: _,
|
|
7554
|
-
...
|
|
7560
|
+
...Ee,
|
|
7555
7561
|
onClick: (e) => {
|
|
7556
7562
|
e.stopPropagation();
|
|
7557
7563
|
}
|
|
7558
|
-
})),
|
|
7559
|
-
className: `${
|
|
7560
|
-
...
|
|
7561
|
-
style:
|
|
7562
|
-
},
|
|
7564
|
+
})), Y && s && /* @__PURE__ */ e.createElement("div", { className: `${T}__loading` }, u), Y && !s && G.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, d), /* @__PURE__ */ e.createElement("ul", {
|
|
7565
|
+
className: `${T}__dropdown-list`,
|
|
7566
|
+
...ae(),
|
|
7567
|
+
style: Y && !s && G.length > 0 ? void 0 : { display: "none" }
|
|
7568
|
+
}, Y && !s && G.map((t, n) => /* @__PURE__ */ e.createElement(bn, {
|
|
7563
7569
|
key: `${t.id}-${n}`,
|
|
7564
|
-
className: `${
|
|
7565
|
-
${
|
|
7566
|
-
${X === t ? `${
|
|
7570
|
+
className: `${T}__dropdown-item
|
|
7571
|
+
${se === n ? "pds-dropdown__item--focused" : ""}
|
|
7572
|
+
${X === t ? `${T}__dropdown-item--selected` : ""}
|
|
7567
7573
|
${t.isAlreadySelected ? "pds-dropdown__item--active" : ""}`,
|
|
7568
|
-
...
|
|
7574
|
+
...ie({
|
|
7569
7575
|
item: t,
|
|
7570
7576
|
index: n
|
|
7571
7577
|
})
|
|
7572
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
7578
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${T}__dropdown-item-label` }, /* @__PURE__ */ e.createElement("span", { className: `${T}__dropdown-item-text` }, t.label, t.badge === "ai" && /* @__PURE__ */ e.createElement("span", { className: `${T}__dropdown-item-badge` }, /* @__PURE__ */ e.createElement(Q, {
|
|
7573
7579
|
iconName: "sparkles",
|
|
7574
7580
|
size: "s"
|
|
7575
|
-
}), /* @__PURE__ */ e.createElement("span", null, l.aiBadgeLabel))), t.isAlreadySelected && /* @__PURE__ */ e.createElement(sr, null)))))),
|
|
7576
|
-
ref:
|
|
7577
|
-
className: `${
|
|
7581
|
+
}), /* @__PURE__ */ e.createElement("span", null, l.aiBadgeLabel))), t.isAlreadySelected && /* @__PURE__ */ e.createElement(sr, null))))))), U && t && /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
|
|
7582
|
+
ref: he.setFloating,
|
|
7583
|
+
className: `${T}__aux-panel`,
|
|
7578
7584
|
style: {
|
|
7579
|
-
...
|
|
7585
|
+
...me,
|
|
7580
7586
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7581
7587
|
},
|
|
7582
|
-
...
|
|
7583
|
-
}, t.content ? /* @__PURE__ */ e.createElement("div", { className: `${
|
|
7584
|
-
className: `${
|
|
7588
|
+
...ge()
|
|
7589
|
+
}, t.content ? /* @__PURE__ */ e.createElement("div", { className: `${T}__aux-panel-content` }, t.content) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Q, {
|
|
7590
|
+
className: `${T}__aux-panel-icon`,
|
|
7585
7591
|
iconName: "sparkles",
|
|
7586
7592
|
size: "m"
|
|
7587
|
-
}), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
7593
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${T}__aux-panel-items` }, K.map((t) => /* @__PURE__ */ e.createElement("button", {
|
|
7588
7594
|
key: t.id,
|
|
7589
|
-
className: Z([`${
|
|
7590
|
-
onClick: () =>
|
|
7595
|
+
className: Z([`${T}__aux-panel-item`, t.isAlreadySelected ? `${T}__aux-panel-item--selected` : ""]),
|
|
7596
|
+
onClick: () => ve(t),
|
|
7591
7597
|
type: "button"
|
|
7592
|
-
}, t.label)))), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
7598
|
+
}, t.label)))), /* @__PURE__ */ e.createElement("div", { className: `${T}__aux-panel-header` }, /* @__PURE__ */ e.createElement("button", {
|
|
7593
7599
|
"aria-label": l.aiPanelRefresh,
|
|
7594
|
-
className: `${
|
|
7600
|
+
className: `${T}__aux-panel-button`,
|
|
7595
7601
|
disabled: t.isFetching || t.disableRefresh,
|
|
7596
|
-
onClick:
|
|
7602
|
+
onClick: be,
|
|
7597
7603
|
type: "button"
|
|
7598
7604
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
7599
|
-
className: Z([`${
|
|
7605
|
+
className: Z([`${T}__aux-panel-refresh-icon`, t.isFetching ? `${T}__aux-panel-button-icon--rotating` : ""]),
|
|
7600
7606
|
iconName: "rotate",
|
|
7601
7607
|
size: "m"
|
|
7602
7608
|
})), /* @__PURE__ */ e.createElement("button", {
|
|
7603
7609
|
"aria-label": l.aiPanelClose,
|
|
7604
|
-
className: `${
|
|
7605
|
-
onClick:
|
|
7610
|
+
className: `${T}__aux-panel-button`,
|
|
7611
|
+
onClick: ye,
|
|
7606
7612
|
type: "button"
|
|
7607
7613
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
7608
7614
|
iconName: "xmark",
|
|
7609
7615
|
size: "m"
|
|
7610
|
-
})))));
|
|
7616
|
+
}))))));
|
|
7611
7617
|
}, pi = (e) => String(e).padStart(2, "0"), mi = (e) => {
|
|
7612
7618
|
let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
|
|
7613
7619
|
if (!t) return null;
|
|
@@ -7854,164 +7860,164 @@ var Xr = {
|
|
|
7854
7860
|
state: r,
|
|
7855
7861
|
timeZone: i
|
|
7856
7862
|
}) : /* @__PURE__ */ e.createElement("td", { key: o }))))));
|
|
7857
|
-
}, ji = ({ allowCustomRange: t = !0, allowDateRangeSelection: n = !0, className: r, disabled: i = !1, footerNote: a, id: o, inputWidth: s, label: c, locale: l, maxDate: d, message: f, minDate: p, mode: m = "single", onChange: _, placeholder: v, presets: y, required: b = !1, showLabel: x = !0, showPresetCalendar: S = !0, showTime:
|
|
7858
|
-
let
|
|
7863
|
+
}, ji = ({ allowCustomRange: t = !0, allowDateRangeSelection: n = !0, className: r, disabled: i = !1, footerNote: a, id: o, inputWidth: s, label: c, locale: l, maxDate: d, message: f, minDate: p, mode: m = "single", onChange: _, placeholder: v, presets: y, required: b = !1, showLabel: x = !0, showPresetCalendar: S = !0, showTime: w = !1, showTimeZoneSwitcher: T = !1, timeZone: E = ve(), tooltipText: D, translationStrings: O, validationMessage: k, validationStatus: A, value: j, visibleMonths: M = 2, ...N }) => {
|
|
7864
|
+
let P = m === "range", F = {
|
|
7859
7865
|
...Oi,
|
|
7860
|
-
...
|
|
7861
|
-
},
|
|
7862
|
-
|
|
7863
|
-
let { locale:
|
|
7866
|
+
...O
|
|
7867
|
+
}, I = P && !!y && y.length > 0;
|
|
7868
|
+
T && !w && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `showTimeZoneSwitcher` has no effect unless `showTime` is also true."), y && y.length > 0 && !P && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `presets` requires `mode=\"range\"` — every preset computes a date range."), !t && !I && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `allowCustomRange` has no effect unless `presets` is also set.");
|
|
7869
|
+
let { locale: L } = Pe(), R = l?.code ?? L, [z, B] = g(j), [V, H] = g("local"), U = T && V === "utc" ? "UTC" : E, [W, G] = g(void 0), [K, q] = g(S), J = !I || K, ee = !I || S || t, te = M === 1 ? P && w ? 400 : 280 : 550, ne = h(null), re = W === void 0 && (P ? !!z?.from : !!z), ie = (e, t) => P && w ? e ?? t : e, [ae, oe] = g(() => ie(Si(P ? j?.from : j, U), wi)), [se, Y] = g(() => ie(Si(j?.to, U), Ti)), ce = cn(s), X = "pds-datepicker", le = i ? $.disabled : null, ue = b && !i ? $.required : null, de = A === "error" ? $.error : null, fe = A === "success" ? $.success : null, pe = k || f, he = /* @__PURE__ */ e.createElement("div", { className: `${X}__timezone-switcher` }, /* @__PURE__ */ e.createElement("span", { className: `${X}__timezone-switcher-label` }, F.timeZoneSwitcherLabel), /* @__PURE__ */ e.createElement(lr, {
|
|
7864
7870
|
id: `${o}-timezone-switcher`,
|
|
7865
|
-
label:
|
|
7866
|
-
onChange: (e) =>
|
|
7871
|
+
label: F.timeZoneSwitcherLabel || "",
|
|
7872
|
+
onChange: (e) => H(e),
|
|
7867
7873
|
options: [{
|
|
7868
|
-
label:
|
|
7874
|
+
label: F.localTimeZoneLabel || "",
|
|
7869
7875
|
value: "local"
|
|
7870
7876
|
}, {
|
|
7871
|
-
label:
|
|
7877
|
+
label: F.utcTimeZoneLabel || "",
|
|
7872
7878
|
value: "utc"
|
|
7873
7879
|
}],
|
|
7874
7880
|
size: "s",
|
|
7875
|
-
value:
|
|
7876
|
-
})), { floatingStyles:
|
|
7881
|
+
value: V
|
|
7882
|
+
})), { floatingStyles: ge, getFloatingProps: _e, getReferenceProps: ye, isMounted: be, isOpen: xe, refs: Se, setIsOpen: Ce } = Rn({
|
|
7877
7883
|
enableListNavigation: !1,
|
|
7878
7884
|
offsetValue: 8,
|
|
7879
7885
|
placement: "bottom-start",
|
|
7880
7886
|
role: "dialog",
|
|
7881
7887
|
shiftPadding: 16,
|
|
7882
7888
|
variant: "default"
|
|
7883
|
-
}),
|
|
7884
|
-
|
|
7885
|
-
|
|
7889
|
+
}), Te = vi(p, U), De = vi(d, U), Ae = (e, t, n = !1) => {
|
|
7890
|
+
B(e), G(t), _?.(e), !P && n && setTimeout(() => {
|
|
7891
|
+
Ce(!1);
|
|
7886
7892
|
}, 300);
|
|
7887
|
-
},
|
|
7893
|
+
}, je = Le({
|
|
7888
7894
|
createCalendar: me,
|
|
7889
|
-
locale:
|
|
7890
|
-
maxValue:
|
|
7891
|
-
minValue:
|
|
7895
|
+
locale: R,
|
|
7896
|
+
maxValue: De,
|
|
7897
|
+
minValue: Te,
|
|
7892
7898
|
onChange: (e) => {
|
|
7893
|
-
|
|
7899
|
+
P || Ae(Ci(e, w ? ae : void 0, U), void 0, !w);
|
|
7894
7900
|
},
|
|
7895
|
-
value:
|
|
7896
|
-
}),
|
|
7901
|
+
value: P ? null : vi(z, U) ?? null
|
|
7902
|
+
}), Me = h(null), Ne = Re({
|
|
7897
7903
|
createCalendar: me,
|
|
7898
|
-
locale:
|
|
7899
|
-
maxValue:
|
|
7900
|
-
minValue:
|
|
7901
|
-
visibleDuration: { months:
|
|
7904
|
+
locale: R,
|
|
7905
|
+
maxValue: De,
|
|
7906
|
+
minValue: Te,
|
|
7907
|
+
visibleDuration: { months: M },
|
|
7902
7908
|
onChange: (e) => {
|
|
7903
|
-
|
|
7904
|
-
from: Ci(e.start,
|
|
7905
|
-
to: Ci(e.end,
|
|
7909
|
+
P && e && Ae({
|
|
7910
|
+
from: Ci(e.start, w ? ae : void 0, U),
|
|
7911
|
+
to: Ci(e.end, w ? se : void 0, U)
|
|
7906
7912
|
});
|
|
7907
7913
|
},
|
|
7908
|
-
value:
|
|
7909
|
-
let e =
|
|
7914
|
+
value: P ? (() => {
|
|
7915
|
+
let e = z, t = vi(e?.from, U), n = vi(e?.to, U);
|
|
7910
7916
|
return t && n ? {
|
|
7911
7917
|
start: t,
|
|
7912
7918
|
end: n
|
|
7913
7919
|
} : null;
|
|
7914
7920
|
})() : null
|
|
7915
|
-
}),
|
|
7921
|
+
}), Ie = P ? Ne : je, { calendarProps: ze, nextButtonProps: Be, prevButtonProps: Ve } = ke({}, je), { calendarProps: He, nextButtonProps: Ue, prevButtonProps: We } = Fe({}, Ne, Me), Ge = P ? He : ze, Ke = P ? Ue : Be, qe = P ? We : Ve, Je = (e) => new Intl.DateTimeFormat(R, {
|
|
7916
7922
|
month: "long",
|
|
7917
7923
|
year: "numeric"
|
|
7918
|
-
}).format(e.toDate(ve())),
|
|
7919
|
-
|
|
7920
|
-
},
|
|
7921
|
-
|
|
7922
|
-
},
|
|
7923
|
-
let e = we(
|
|
7924
|
-
|
|
7925
|
-
},
|
|
7924
|
+
}).format(e.toDate(ve())), Ye = P ? Array.from({ length: M }, (e, t) => t) : [0], Xe = Ye.map((e) => Je(Ie.visibleRange.start.add({ months: e }))), Ze = h(null), Qe = h(null), { buttonProps: $e } = Oe(qe, Ze), { buttonProps: et } = Oe(Ke, Qe), tt = () => {
|
|
7925
|
+
B(void 0), G(void 0), _?.(void 0), w && (oe(P ? wi : void 0), Y(P ? Ti : void 0)), P ? Ne.setValue(null) : je.setValue(null);
|
|
7926
|
+
}, nt = () => !P || !Ne.anchorDate ? !1 : (Ne.selectDate(Ne.anchorDate), !0), rt = () => {
|
|
7927
|
+
nt(), Ce(!1);
|
|
7928
|
+
}, it = () => {
|
|
7929
|
+
let e = we(U);
|
|
7930
|
+
Ie.setFocusedDate(e), P ? (Ne.setValue(null), B(void 0), G(void 0), _?.(void 0)) : (je.setValue(e), Ae(Ci(e, w ? ae : void 0, U), void 0, !w));
|
|
7931
|
+
}, at = (e) => {
|
|
7926
7932
|
let t = Di(e, {
|
|
7927
|
-
locale:
|
|
7928
|
-
timeZone:
|
|
7933
|
+
locale: R,
|
|
7934
|
+
timeZone: U
|
|
7929
7935
|
}), n = e.hours !== void 0 || e.minutes !== void 0;
|
|
7930
|
-
|
|
7931
|
-
from: Ci(vi(t.from,
|
|
7932
|
-
to: Ci(vi(t.to,
|
|
7936
|
+
q(S), w && n ? (oe(Si(t.from, U)), Y(Si(t.to, U)), Ae(t, e.label)) : Ae(w ? {
|
|
7937
|
+
from: Ci(vi(t.from, U), ae, U),
|
|
7938
|
+
to: Ci(vi(t.to, U), se, U)
|
|
7933
7939
|
} : t, e.label);
|
|
7934
|
-
let r = vi(t.from,
|
|
7935
|
-
r &&
|
|
7936
|
-
|
|
7940
|
+
let r = vi(t.from, U);
|
|
7941
|
+
r && Ie.setFocusedDate(r), S || setTimeout(() => {
|
|
7942
|
+
Ce(!1);
|
|
7937
7943
|
}, 300);
|
|
7938
|
-
},
|
|
7939
|
-
if (
|
|
7940
|
-
let t =
|
|
7941
|
-
t?.from && t?.to &&
|
|
7942
|
-
from: Ci(vi(t.from,
|
|
7944
|
+
}, ot = (e) => {
|
|
7945
|
+
if (oe(e), P) {
|
|
7946
|
+
let t = z;
|
|
7947
|
+
t?.from && t?.to && Ae({
|
|
7948
|
+
from: Ci(vi(t.from, U), e, U),
|
|
7943
7949
|
to: t.to
|
|
7944
7950
|
});
|
|
7945
7951
|
} else {
|
|
7946
|
-
let t =
|
|
7947
|
-
t &&
|
|
7952
|
+
let t = z;
|
|
7953
|
+
t && Ae(Ci(vi(t, U), e, U));
|
|
7948
7954
|
}
|
|
7949
|
-
},
|
|
7950
|
-
|
|
7951
|
-
let t =
|
|
7952
|
-
t?.from && t?.to &&
|
|
7955
|
+
}, st = (e) => {
|
|
7956
|
+
Y(e);
|
|
7957
|
+
let t = z;
|
|
7958
|
+
t?.from && t?.to && Ae({
|
|
7953
7959
|
from: t.from,
|
|
7954
|
-
to: Ci(vi(t.to,
|
|
7960
|
+
to: Ci(vi(t.to, U), e, U)
|
|
7955
7961
|
});
|
|
7956
7962
|
};
|
|
7957
7963
|
u(() => {
|
|
7958
|
-
|
|
7959
|
-
}, [
|
|
7960
|
-
if (
|
|
7961
|
-
let e =
|
|
7962
|
-
|
|
7963
|
-
} else
|
|
7964
|
+
B(j);
|
|
7965
|
+
}, [j]), u(() => {
|
|
7966
|
+
if (w) if (P) {
|
|
7967
|
+
let e = z;
|
|
7968
|
+
oe(Si(e?.from, U) ?? wi), Y(Si(e?.to, U) ?? Ti);
|
|
7969
|
+
} else oe(Si(z, U));
|
|
7964
7970
|
}, [
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7971
|
+
z,
|
|
7972
|
+
U,
|
|
7973
|
+
P,
|
|
7974
|
+
w
|
|
7969
7975
|
]), u(() => {
|
|
7970
|
-
n ||
|
|
7976
|
+
n || nt();
|
|
7971
7977
|
}, [
|
|
7972
|
-
|
|
7978
|
+
P,
|
|
7973
7979
|
n,
|
|
7974
|
-
|
|
7980
|
+
Ne.anchorDate
|
|
7975
7981
|
]), u(() => {
|
|
7976
|
-
if (
|
|
7977
|
-
let e = vi(
|
|
7978
|
-
|
|
7982
|
+
if (xe) {
|
|
7983
|
+
let e = vi(P ? z?.from : z, U);
|
|
7984
|
+
Ie.setFocusedDate(e ?? we(U)), q(S);
|
|
7979
7985
|
}
|
|
7980
|
-
}, [
|
|
7981
|
-
|
|
7982
|
-
}, [
|
|
7983
|
-
let
|
|
7984
|
-
let t = y?.find((e) => e.label ===
|
|
7986
|
+
}, [xe]), u(() => {
|
|
7987
|
+
ne.current && (ne.current.inert = !J);
|
|
7988
|
+
}, [J]);
|
|
7989
|
+
let ct = () => {
|
|
7990
|
+
let t = y?.find((e) => e.label === W);
|
|
7985
7991
|
if (t) {
|
|
7986
7992
|
let e = t.hours !== void 0 || t.minutes !== void 0;
|
|
7987
7993
|
if (t.showLabelInTrigger ?? e) return t.label;
|
|
7988
7994
|
}
|
|
7989
|
-
if (
|
|
7990
|
-
let t =
|
|
7991
|
-
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null, Ei(t.from, l,
|
|
7995
|
+
if (P) {
|
|
7996
|
+
let t = z;
|
|
7997
|
+
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null, Ei(t.from, l, U), /* @__PURE__ */ e.createElement("span", { className: `${X}__separator` }, " – "), Ei(t.to, l, U)) : Ei(t.from, l, U) : v || "";
|
|
7992
7998
|
} else {
|
|
7993
|
-
let e =
|
|
7994
|
-
return e ? Ei(e, l,
|
|
7999
|
+
let e = z;
|
|
8000
|
+
return e ? Ei(e, l, U) : v || "";
|
|
7995
8001
|
}
|
|
7996
|
-
},
|
|
7997
|
-
if (
|
|
7998
|
-
let e =
|
|
7999
|
-
return !e?.from && t ? `${
|
|
8002
|
+
}, lt = () => P ? !z?.from : !z, ut = () => {
|
|
8003
|
+
if (P) {
|
|
8004
|
+
let e = z, t = Ne.anchorDate;
|
|
8005
|
+
return !e?.from && t ? `${F.selectedStartDate}${Ei(yi(t, U), l, U)}${F.pleaseSelectEndDate}` : e?.from ? e.to ? `${F.selectedDateRange}${Ei(e.from, l, U)}${F.to}${Ei(e.to, l, U)}` : `${F.selectedStartDate}${Ei(e.from, l, U)}${F.pleaseSelectEndDate}` : F.noDateRangeSelected || "";
|
|
8000
8006
|
} else {
|
|
8001
|
-
let e =
|
|
8002
|
-
return e ? `${
|
|
8007
|
+
let e = z;
|
|
8008
|
+
return e ? `${F.selectedDate}${Ei(e, l, U)}` : F.noDateSelected || "";
|
|
8003
8009
|
}
|
|
8004
|
-
},
|
|
8005
|
-
...
|
|
8006
|
-
ref:
|
|
8010
|
+
}, dt = P ? z : void 0, ft = /* @__PURE__ */ e.createElement("div", {
|
|
8011
|
+
...Ge,
|
|
8012
|
+
ref: P ? Me : void 0,
|
|
8007
8013
|
className: `${X}__calendar`
|
|
8008
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${X}__grids` },
|
|
8014
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${X}__grids` }, Ye.map((t, n) => /* @__PURE__ */ e.createElement("div", {
|
|
8009
8015
|
key: t,
|
|
8010
8016
|
className: `${X}__month`
|
|
8011
8017
|
}, /* @__PURE__ */ e.createElement("div", { className: `${X}__nav` }, n === 0 ? /* @__PURE__ */ e.createElement("button", {
|
|
8012
|
-
|
|
8013
|
-
ref:
|
|
8014
|
-
"aria-label":
|
|
8018
|
+
...$e,
|
|
8019
|
+
ref: Ze,
|
|
8020
|
+
"aria-label": F.previousMonthLabel,
|
|
8015
8021
|
className: `${X}__nav-button`,
|
|
8016
8022
|
type: "button"
|
|
8017
8023
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
@@ -8023,10 +8029,10 @@ var Xr = {
|
|
|
8023
8029
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8024
8030
|
iconName: "angleLeft",
|
|
8025
8031
|
size: "m"
|
|
8026
|
-
})), /* @__PURE__ */ e.createElement("div", { className: `${X}__nav-title` },
|
|
8027
|
-
|
|
8028
|
-
ref:
|
|
8029
|
-
"aria-label":
|
|
8032
|
+
})), /* @__PURE__ */ e.createElement("div", { className: `${X}__nav-title` }, Xe[n]), n === Ye.length - 1 ? /* @__PURE__ */ e.createElement("button", {
|
|
8033
|
+
...et,
|
|
8034
|
+
ref: Qe,
|
|
8035
|
+
"aria-label": F.nextMonthLabel,
|
|
8030
8036
|
className: `${X}__nav-button`,
|
|
8031
8037
|
type: "button"
|
|
8032
8038
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
@@ -8041,127 +8047,127 @@ var Xr = {
|
|
|
8041
8047
|
}))), /* @__PURE__ */ e.createElement(Ai, {
|
|
8042
8048
|
baseClass: X,
|
|
8043
8049
|
monthOffset: t,
|
|
8044
|
-
state:
|
|
8045
|
-
timeZone:
|
|
8046
|
-
})))),
|
|
8047
|
-
anchorDate: vi(
|
|
8050
|
+
state: Ie,
|
|
8051
|
+
timeZone: U
|
|
8052
|
+
})))), w && /* @__PURE__ */ e.createElement("div", { className: `${X}__time-section` }, P ? /* @__PURE__ */ e.createElement("div", { className: `${X}__time-fields` }, /* @__PURE__ */ e.createElement(_i, {
|
|
8053
|
+
anchorDate: vi(dt?.from, U),
|
|
8048
8054
|
id: `${o}-start-time`,
|
|
8049
|
-
label:
|
|
8050
|
-
onChange:
|
|
8055
|
+
label: F.startTimeLabel || "",
|
|
8056
|
+
onChange: ot,
|
|
8051
8057
|
size: "s",
|
|
8052
|
-
timeZone:
|
|
8053
|
-
value:
|
|
8058
|
+
timeZone: U,
|
|
8059
|
+
value: ae
|
|
8054
8060
|
}), /* @__PURE__ */ e.createElement(_i, {
|
|
8055
|
-
anchorDate: vi(
|
|
8061
|
+
anchorDate: vi(dt?.to, U),
|
|
8056
8062
|
id: `${o}-end-time`,
|
|
8057
|
-
label:
|
|
8058
|
-
onChange:
|
|
8063
|
+
label: F.endTimeLabel || "",
|
|
8064
|
+
onChange: st,
|
|
8059
8065
|
size: "s",
|
|
8060
|
-
timeZone:
|
|
8061
|
-
value:
|
|
8062
|
-
})) :
|
|
8063
|
-
anchorDate: vi(
|
|
8066
|
+
timeZone: U,
|
|
8067
|
+
value: se
|
|
8068
|
+
})) : z && /* @__PURE__ */ e.createElement("div", { className: `${X}__time-fields` }, /* @__PURE__ */ e.createElement(_i, {
|
|
8069
|
+
anchorDate: vi(z, U),
|
|
8064
8070
|
id: `${o}-time`,
|
|
8065
|
-
label:
|
|
8066
|
-
onChange:
|
|
8071
|
+
label: F.timeLabel || "",
|
|
8072
|
+
onChange: ot,
|
|
8067
8073
|
size: "s",
|
|
8068
|
-
timeZone:
|
|
8069
|
-
value:
|
|
8070
|
-
})),
|
|
8074
|
+
timeZone: U,
|
|
8075
|
+
value: ae
|
|
8076
|
+
})), T && !I && he), a && /* @__PURE__ */ e.createElement("div", { className: `${X}__footer-note` }, a), /* @__PURE__ */ e.createElement("div", { className: `${X}__actions` }, /* @__PURE__ */ e.createElement(jn, {
|
|
8071
8077
|
className: `${X}__action-button ${X}__action-button--today`,
|
|
8072
|
-
label:
|
|
8073
|
-
onClick:
|
|
8078
|
+
label: F.todayButton,
|
|
8079
|
+
onClick: it,
|
|
8074
8080
|
size: "s",
|
|
8075
8081
|
type: "button",
|
|
8076
8082
|
variant: "secondary"
|
|
8077
8083
|
}), /* @__PURE__ */ e.createElement("div", { className: `${X}__actions-group` }, /* @__PURE__ */ e.createElement(jn, {
|
|
8078
8084
|
className: `${X}__action-button ${X}__action-button--clear`,
|
|
8079
|
-
label:
|
|
8080
|
-
onClick:
|
|
8085
|
+
label: F.clearButton,
|
|
8086
|
+
onClick: tt,
|
|
8081
8087
|
size: "s",
|
|
8082
8088
|
type: "button",
|
|
8083
8089
|
variant: "secondary"
|
|
8084
|
-
}), (
|
|
8090
|
+
}), (P || w) && /* @__PURE__ */ e.createElement(jn, {
|
|
8085
8091
|
className: `${X}__action-button ${X}__action-button--done`,
|
|
8086
|
-
label:
|
|
8087
|
-
onClick:
|
|
8092
|
+
label: F.doneButton,
|
|
8093
|
+
onClick: rt,
|
|
8088
8094
|
size: "s",
|
|
8089
8095
|
type: "button",
|
|
8090
8096
|
variant: "highlight"
|
|
8091
8097
|
}))));
|
|
8092
|
-
return /* @__PURE__ */ e.createElement(Ee, { locale:
|
|
8098
|
+
return /* @__PURE__ */ e.createElement(Ee, { locale: R }, /* @__PURE__ */ e.createElement("div", {
|
|
8093
8099
|
className: Z([
|
|
8094
8100
|
$.base,
|
|
8095
8101
|
X,
|
|
8096
|
-
ce,
|
|
8097
|
-
ue,
|
|
8098
8102
|
le,
|
|
8099
8103
|
de,
|
|
8104
|
+
ue,
|
|
8105
|
+
fe,
|
|
8100
8106
|
r ?? ""
|
|
8101
8107
|
]),
|
|
8102
|
-
style: s ?
|
|
8103
|
-
...
|
|
8108
|
+
style: s ? ce : null,
|
|
8109
|
+
...N
|
|
8104
8110
|
}, /* @__PURE__ */ e.createElement(dn, {
|
|
8105
8111
|
disabled: i,
|
|
8106
8112
|
id: o,
|
|
8107
8113
|
label: c,
|
|
8108
8114
|
required: b,
|
|
8109
8115
|
showLabel: x,
|
|
8110
|
-
tooltipText:
|
|
8116
|
+
tooltipText: D
|
|
8111
8117
|
}), /* @__PURE__ */ e.createElement("div", { className: `${X}__input-wrapper` }, /* @__PURE__ */ e.createElement("button", {
|
|
8112
|
-
ref:
|
|
8113
|
-
"aria-describedby":
|
|
8114
|
-
"aria-expanded":
|
|
8118
|
+
ref: Se.setReference,
|
|
8119
|
+
"aria-describedby": pe ? `${o}__message` : null,
|
|
8120
|
+
"aria-expanded": xe,
|
|
8115
8121
|
"aria-haspopup": "dialog",
|
|
8116
|
-
"aria-invalid":
|
|
8117
|
-
className: Z([`${X}__trigger`,
|
|
8122
|
+
"aria-invalid": A === "error" ? !0 : null,
|
|
8123
|
+
className: Z([`${X}__trigger`, xe ? `${X}__trigger--open` : null]),
|
|
8118
8124
|
disabled: i,
|
|
8119
8125
|
type: "button",
|
|
8120
|
-
...
|
|
8126
|
+
...ye()
|
|
8121
8127
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8122
8128
|
className: `${X}__trigger-icon`,
|
|
8123
8129
|
iconName: "calendarDays"
|
|
8124
|
-
}), /* @__PURE__ */ e.createElement("span", { className: Z([`${X}__trigger-text`,
|
|
8125
|
-
hasValidationMessage: !!
|
|
8130
|
+
}), /* @__PURE__ */ e.createElement("span", { className: Z([`${X}__trigger-text`, lt() ? `${X}__trigger-text--placeholder` : null]) }, ct()))), pe && /* @__PURE__ */ e.createElement(fn, {
|
|
8131
|
+
hasValidationMessage: !!k,
|
|
8126
8132
|
id: o,
|
|
8127
|
-
message:
|
|
8128
|
-
validationStatus:
|
|
8129
|
-
}),
|
|
8130
|
-
ref:
|
|
8133
|
+
message: pe,
|
|
8134
|
+
validationStatus: A
|
|
8135
|
+
}), be && /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
|
|
8136
|
+
ref: Se.setFloating,
|
|
8131
8137
|
className: `${X}__popover`,
|
|
8132
|
-
style:
|
|
8133
|
-
...
|
|
8134
|
-
},
|
|
8135
|
-
"aria-label":
|
|
8138
|
+
style: ge,
|
|
8139
|
+
..._e()
|
|
8140
|
+
}, I && /* @__PURE__ */ e.createElement("div", { className: Z([`${X}__presets`, J ? null : `${X}__presets--collapsed`]) }, /* @__PURE__ */ e.createElement("div", {
|
|
8141
|
+
"aria-label": F.presetsGroupLabel,
|
|
8136
8142
|
className: `${X}__preset-list`,
|
|
8137
8143
|
role: "group"
|
|
8138
8144
|
}, y?.map((t) => /* @__PURE__ */ e.createElement("button", {
|
|
8139
8145
|
key: t.label,
|
|
8140
|
-
"aria-pressed":
|
|
8141
|
-
className: Z([`${X}__preset-item`,
|
|
8142
|
-
onClick: () =>
|
|
8146
|
+
"aria-pressed": W === t.label,
|
|
8147
|
+
className: Z([`${X}__preset-item`, W === t.label ? `${X}__preset-item--active` : null]),
|
|
8148
|
+
onClick: () => at(t),
|
|
8143
8149
|
type: "button"
|
|
8144
8150
|
}, t.label)), t && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
|
|
8145
8151
|
"aria-hidden": "true",
|
|
8146
8152
|
className: `${X}__preset-divider`
|
|
8147
8153
|
}), /* @__PURE__ */ e.createElement("button", {
|
|
8148
|
-
"aria-pressed":
|
|
8149
|
-
className: Z([`${X}__preset-item`,
|
|
8154
|
+
"aria-pressed": re,
|
|
8155
|
+
className: Z([`${X}__preset-item`, re ? `${X}__preset-item--active` : null]),
|
|
8150
8156
|
onClick: () => {
|
|
8151
|
-
|
|
8157
|
+
G(void 0), q(!0);
|
|
8152
8158
|
},
|
|
8153
8159
|
type: "button"
|
|
8154
|
-
},
|
|
8160
|
+
}, F.customPresetLabel, !S && /* @__PURE__ */ e.createElement(Q, {
|
|
8155
8161
|
iconName: "angleRight",
|
|
8156
8162
|
size: "s"
|
|
8157
|
-
})))),
|
|
8158
|
-
ref:
|
|
8163
|
+
})))), w && T && he), /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, ut()), I ? ee && /* @__PURE__ */ e.createElement("div", {
|
|
8164
|
+
ref: ne,
|
|
8159
8165
|
className: `${X}__calendar-wrapper`,
|
|
8160
|
-
style: { flexBasis:
|
|
8166
|
+
style: { flexBasis: J ? te : 0 }
|
|
8161
8167
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
8162
8168
|
className: `${X}__calendar-wrapper-inner`,
|
|
8163
|
-
style: { width:
|
|
8164
|
-
},
|
|
8169
|
+
style: { width: te }
|
|
8170
|
+
}, ft)) : ft))));
|
|
8165
8171
|
}, Mi = o(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, labelStrings: l = {
|
|
8166
8172
|
chooseFile: "Choose file",
|
|
8167
8173
|
clearButton: "Clear selected file"
|
|
@@ -9549,9 +9555,9 @@ var Xr = {
|
|
|
9549
9555
|
submenu: "submenu",
|
|
9550
9556
|
toggle: "Toggle"
|
|
9551
9557
|
}, menuItems: a, ...o }) => {
|
|
9552
|
-
let s = "pds-tree-nav", c = `${s}__item`, l = `${s}__menu`, [d, f] = g(!1), [p, m] = g([]), _ = h(null), v = h([]), y = h(-1);
|
|
9558
|
+
let s = "pds-tree-nav", c = `${s}__item`, l = `${s}__menu`, [d, f] = g(!1), [p, m] = g([]), _ = h(null), v = h([]), y = h(-1), b = h(null);
|
|
9553
9559
|
u(() => {
|
|
9554
|
-
|
|
9560
|
+
w();
|
|
9555
9561
|
}, [a, p]), u(() => {
|
|
9556
9562
|
if (!_.current || a.length === 0) return;
|
|
9557
9563
|
let e = Array.from(_.current.querySelectorAll(`.${c}--active`)), t = Array.from(_.current.querySelectorAll(`.${c}`)), n = e.map((e) => {
|
|
@@ -9559,47 +9565,63 @@ var Xr = {
|
|
|
9559
9565
|
return n ? t.indexOf(n) : -1;
|
|
9560
9566
|
}).filter((e) => e !== -1);
|
|
9561
9567
|
m(Array.from(new Set(n)));
|
|
9562
|
-
}, [a])
|
|
9563
|
-
|
|
9568
|
+
}, [a]), u(() => {
|
|
9569
|
+
let e = b.current;
|
|
9570
|
+
if (!e) return;
|
|
9571
|
+
if (b.current = null, w(), e.focusFirstChild) {
|
|
9572
|
+
let t = E(e.toggleButton)?.querySelector("a");
|
|
9573
|
+
if (t) {
|
|
9574
|
+
t.focus(), y.current = v.current.indexOf(t);
|
|
9575
|
+
return;
|
|
9576
|
+
}
|
|
9577
|
+
}
|
|
9578
|
+
let t = e.toggleButton.closest(`.${c}`)?.querySelector("a") || e.toggleButton;
|
|
9579
|
+
t.focus(), y.current = v.current.indexOf(t);
|
|
9580
|
+
}, [p]);
|
|
9581
|
+
let x = (e) => !e || !_.current ? -1 : Array.from(_.current.querySelectorAll(`.${c}`)).indexOf(e), S = (e, t) => {
|
|
9582
|
+
let n = -1;
|
|
9583
|
+
return _.current && e.path && (n = x(_.current.querySelector(`.${c}[data-item-path="${e.path}"]`))), {
|
|
9584
|
+
isExpanded: n === -1 ? t : p.includes(n),
|
|
9585
|
+
itemIndex: n
|
|
9586
|
+
};
|
|
9587
|
+
}, C = (e) => {
|
|
9588
|
+
e !== -1 && m((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
|
|
9589
|
+
}, w = () => {
|
|
9564
9590
|
_.current && (v.current = Array.from(_.current.querySelectorAll(".pds-tree-nav__menu a, button.pds-tree-nav__toggle")).filter((e) => {
|
|
9565
9591
|
if (window.getComputedStyle(e).display === "none") return !1;
|
|
9566
9592
|
let t = e.closest(`.${l}`);
|
|
9567
9593
|
return !(t && !t.classList.contains(`${l}--expanded`) && !t.classList.contains(`${l}--top-level`));
|
|
9568
9594
|
}));
|
|
9569
|
-
},
|
|
9595
|
+
}, T = (e) => {
|
|
9570
9596
|
let t = e.closest(`.${c}-wrapper`);
|
|
9571
9597
|
if (t) return t.querySelector(`.${s}__toggle`);
|
|
9572
9598
|
let n = e.closest(`.${c}`);
|
|
9573
9599
|
return n ? n.querySelector(`.${s}__toggle`) : null;
|
|
9574
|
-
},
|
|
9600
|
+
}, E = (e) => {
|
|
9575
9601
|
if (e.classList.contains(`${s}__toggle`)) return e.closest(`.${c}-wrapper`)?.nextElementSibling || null;
|
|
9576
9602
|
let t = e.closest(`.${c}`);
|
|
9577
9603
|
return t ? t.querySelector(`.${l}`) : null;
|
|
9578
|
-
},
|
|
9604
|
+
}, D = (e) => {
|
|
9579
9605
|
if (e.classList.contains(`${s}__toggle`)) return !0;
|
|
9580
9606
|
let t = e.closest(`.${c}-wrapper`);
|
|
9581
9607
|
return t ? !!t.querySelector(`.${s}__toggle`) : !1;
|
|
9582
|
-
},
|
|
9608
|
+
}, O = (e) => {
|
|
9583
9609
|
if (!d) return;
|
|
9584
9610
|
let t = v.current[y.current];
|
|
9585
9611
|
if (t) switch (e.key) {
|
|
9586
9612
|
case "ArrowDown":
|
|
9587
|
-
e.preventDefault(),
|
|
9613
|
+
e.preventDefault(), k(1);
|
|
9588
9614
|
break;
|
|
9589
9615
|
case "ArrowUp":
|
|
9590
|
-
e.preventDefault(),
|
|
9616
|
+
e.preventDefault(), k(-1);
|
|
9591
9617
|
break;
|
|
9592
9618
|
case "ArrowRight":
|
|
9593
|
-
if (e.preventDefault(),
|
|
9594
|
-
let e = t.classList.contains(`${s}__toggle`) ? t :
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
let e = t.querySelector("a");
|
|
9600
|
-
e && (e.focus(), y.current = v.current.indexOf(e));
|
|
9601
|
-
}
|
|
9602
|
-
}
|
|
9619
|
+
if (e.preventDefault(), D(t)) {
|
|
9620
|
+
let e = t.classList.contains(`${s}__toggle`) ? t : T(t), n = e ? x(e.closest(`.${c}`)) : -1;
|
|
9621
|
+
e && n !== -1 && !p.includes(n) && (b.current = {
|
|
9622
|
+
focusFirstChild: !0,
|
|
9623
|
+
toggleButton: e
|
|
9624
|
+
}, C(n));
|
|
9603
9625
|
}
|
|
9604
9626
|
break;
|
|
9605
9627
|
case "ArrowLeft": {
|
|
@@ -9608,75 +9630,43 @@ var Xr = {
|
|
|
9608
9630
|
if (n && !n.classList.contains(`${l}--top-level`)) {
|
|
9609
9631
|
let e = n.parentElement;
|
|
9610
9632
|
if (e && e.classList.contains(c)) {
|
|
9611
|
-
let t = e.querySelector(`.${s}__toggle`);
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
}
|
|
9633
|
+
let t = e.querySelector(`.${s}__toggle`), n = x(e);
|
|
9634
|
+
t && n !== -1 && p.includes(n) && (b.current = {
|
|
9635
|
+
focusFirstChild: !1,
|
|
9636
|
+
toggleButton: t
|
|
9637
|
+
}, C(n));
|
|
9617
9638
|
}
|
|
9618
|
-
} else if (
|
|
9619
|
-
let e = t.classList.contains(`${s}__toggle`) ? t :
|
|
9620
|
-
e &&
|
|
9639
|
+
} else if (D(t)) {
|
|
9640
|
+
let e = t.classList.contains(`${s}__toggle`) ? t : T(t), n = e ? x(e.closest(`.${c}`)) : -1;
|
|
9641
|
+
e && n !== -1 && p.includes(n) && C(n);
|
|
9621
9642
|
}
|
|
9622
9643
|
break;
|
|
9623
9644
|
}
|
|
9624
9645
|
}
|
|
9625
|
-
},
|
|
9646
|
+
}, k = (e) => {
|
|
9626
9647
|
let t = v.current;
|
|
9627
9648
|
if (t.length === 0) return;
|
|
9628
9649
|
let n = y.current + e;
|
|
9629
9650
|
n < 0 && (n = t.length - 1), n >= t.length && (n = 0), y.current = n, t[n]?.focus();
|
|
9630
|
-
},
|
|
9651
|
+
}, A = (e) => {
|
|
9631
9652
|
if (e.key === "Tab" && d && !e.shiftKey) {
|
|
9632
9653
|
e.preventDefault(), f(!1), y.current = -1;
|
|
9633
9654
|
let t = Array.from(document.querySelectorAll("a, button, input, select, textarea, [tabindex]:not([tabindex=\"-1\"])")), n = t.indexOf(_.current);
|
|
9634
9655
|
n !== -1 && n < t.length - 1 && t[n + 1].focus();
|
|
9635
9656
|
}
|
|
9636
|
-
},
|
|
9637
|
-
if (e.target === _.current && !d) e.preventDefault(), f(!0),
|
|
9657
|
+
}, j = (e) => {
|
|
9658
|
+
if (e.target === _.current && !d) e.preventDefault(), f(!0), w(), v.current.length > 0 && (y.current = 0, v.current[0]?.focus());
|
|
9638
9659
|
else if (e.target !== _.current && !d) {
|
|
9639
|
-
|
|
9660
|
+
w();
|
|
9640
9661
|
let t = v.current.indexOf(e.target);
|
|
9641
9662
|
t !== -1 && (f(!0), y.current = t);
|
|
9642
9663
|
}
|
|
9643
|
-
},
|
|
9644
|
-
let t =
|
|
9645
|
-
if (!n) return;
|
|
9646
|
-
let r = t.getAttribute("aria-expanded") === "false";
|
|
9647
|
-
t.classList.toggle(`${s}__toggle--expanded`, r), t.setAttribute("aria-expanded", r ? "true" : "false");
|
|
9648
|
-
let i = t.closest(`.${c}`);
|
|
9649
|
-
if (i) {
|
|
9650
|
-
i.setAttribute("aria-expanded", r ? "true" : "false");
|
|
9651
|
-
let e = Array.from(_.current?.querySelectorAll(`.${c}`) || []).indexOf(i);
|
|
9652
|
-
m((t) => r && !t.includes(e) && e !== -1 ? [...t, e] : r ? t : t.filter((t) => t !== e));
|
|
9653
|
-
}
|
|
9654
|
-
r ? k(n) : A(n);
|
|
9655
|
-
}, k = (e) => {
|
|
9656
|
-
Object.assign(e.style, {
|
|
9657
|
-
height: "auto",
|
|
9658
|
-
opacity: "1",
|
|
9659
|
-
display: "flex"
|
|
9660
|
-
}), e.classList.add(`${l}--expanded`), b();
|
|
9661
|
-
}, A = (e) => {
|
|
9662
|
-
e.classList.remove(`${l}--expanded`), Object.assign(e.style, {
|
|
9663
|
-
opacity: "0",
|
|
9664
|
-
height: "",
|
|
9665
|
-
display: "none"
|
|
9666
|
-
}), b();
|
|
9667
|
-
}, j = (t, n, r) => {
|
|
9668
|
-
let a = da[t], o = `${l}--${a}-level`, u = `${c}--${a}-level`, d = t + 1, f = Yi(n);
|
|
9669
|
-
if (_.current && n.path) {
|
|
9670
|
-
let e = _.current.querySelector(`.${c}[data-item-path="${n.path}"]`);
|
|
9671
|
-
if (e) {
|
|
9672
|
-
let t = Array.from(_.current.querySelectorAll(`.${c}`)).indexOf(e);
|
|
9673
|
-
f = p.includes(t);
|
|
9674
|
-
}
|
|
9675
|
-
}
|
|
9664
|
+
}, M = (t, n, r) => {
|
|
9665
|
+
let a = da[t], o = `${l}--${a}-level`, u = `${c}--${a}-level`, d = t + 1, { isExpanded: f, itemIndex: p } = S(n, Yi(n));
|
|
9676
9666
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, /* @__PURE__ */ e.createElement("button", {
|
|
9677
9667
|
"aria-expanded": f,
|
|
9678
9668
|
className: Z([`${s}__toggle`, f ? `${s}__toggle--expanded` : null]),
|
|
9679
|
-
onClick:
|
|
9669
|
+
onClick: () => C(p),
|
|
9680
9670
|
type: "button"
|
|
9681
9671
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
9682
9672
|
iconName: "angleDown",
|
|
@@ -9690,10 +9680,10 @@ var Xr = {
|
|
|
9690
9680
|
]),
|
|
9691
9681
|
role: "group"
|
|
9692
9682
|
}, n.links.map((t, n) => {
|
|
9693
|
-
let r = Yi(t);
|
|
9683
|
+
let r = Yi(t), { isExpanded: i } = S(t, r);
|
|
9694
9684
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9695
9685
|
key: `${n}-${a}`,
|
|
9696
|
-
"aria-expanded": t.links ?
|
|
9686
|
+
"aria-expanded": t.links ? i : void 0,
|
|
9697
9687
|
"aria-selected": r,
|
|
9698
9688
|
className: Z([
|
|
9699
9689
|
c,
|
|
@@ -9702,13 +9692,13 @@ var Xr = {
|
|
|
9702
9692
|
]),
|
|
9703
9693
|
"data-item-path": t.path || "",
|
|
9704
9694
|
role: "treeitem"
|
|
9705
|
-
}, t.links && d in da ?
|
|
9695
|
+
}, t.links && d in da ? M(d, t, t.links) : t.linkContent);
|
|
9706
9696
|
})));
|
|
9707
|
-
},
|
|
9708
|
-
let { linkContent: r, links: i } = t, a = Yi(t);
|
|
9697
|
+
}, N = (t, n) => {
|
|
9698
|
+
let { linkContent: r, links: i } = t, a = Yi(t), { isExpanded: o } = S(t, a);
|
|
9709
9699
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9710
9700
|
key: n,
|
|
9711
|
-
"aria-expanded": i ?
|
|
9701
|
+
"aria-expanded": i ? o : void 0,
|
|
9712
9702
|
"aria-selected": a,
|
|
9713
9703
|
className: Z([
|
|
9714
9704
|
c,
|
|
@@ -9717,15 +9707,15 @@ var Xr = {
|
|
|
9717
9707
|
]),
|
|
9718
9708
|
"data-item-path": t.path || "",
|
|
9719
9709
|
role: "treeitem"
|
|
9720
|
-
}, i ?
|
|
9710
|
+
}, i ? M(2, t, i) : r);
|
|
9721
9711
|
};
|
|
9722
9712
|
return /* @__PURE__ */ e.createElement("nav", {
|
|
9723
9713
|
ref: _,
|
|
9724
9714
|
"aria-label": t,
|
|
9725
9715
|
className: Z([s, n ?? ""]),
|
|
9726
|
-
onFocus:
|
|
9716
|
+
onFocus: j,
|
|
9727
9717
|
onKeyDown: (e) => {
|
|
9728
|
-
|
|
9718
|
+
O(e), A(e);
|
|
9729
9719
|
},
|
|
9730
9720
|
tabIndex: 0,
|
|
9731
9721
|
...o
|
|
@@ -9733,7 +9723,7 @@ var Xr = {
|
|
|
9733
9723
|
"aria-label": t,
|
|
9734
9724
|
className: `${s}__menu ${s}__menu--top-level`,
|
|
9735
9725
|
role: "tree"
|
|
9736
|
-
}, a.map((e, t) =>
|
|
9726
|
+
}, a.map((e, t) => N(e, t))));
|
|
9737
9727
|
}, pa = {
|
|
9738
9728
|
light: "sunBright",
|
|
9739
9729
|
dark: "moon",
|
|
@@ -9873,7 +9863,7 @@ var Xr = {
|
|
|
9873
9863
|
iconName: t.iconName,
|
|
9874
9864
|
size: "m"
|
|
9875
9865
|
}));
|
|
9876
|
-
}),
|
|
9866
|
+
}), ce = i.map((t, n) => {
|
|
9877
9867
|
let r = S.current[n], i = `${k}__item`, a = t.disabled ? `${i}--disabled` : null;
|
|
9878
9868
|
return /* @__PURE__ */ e.createElement("li", {
|
|
9879
9869
|
key: r,
|
|
@@ -9889,14 +9879,14 @@ var Xr = {
|
|
|
9889
9879
|
iconName: t.iconName,
|
|
9890
9880
|
size: "m"
|
|
9891
9881
|
}));
|
|
9892
|
-
}),
|
|
9882
|
+
}), X = /* @__PURE__ */ e.createElement("span", { className: `${k}__toggle-left` }, ne, f ?? l);
|
|
9893
9883
|
return /* @__PURE__ */ e.createElement("span", {
|
|
9894
9884
|
className: Z([k, n ?? ""]),
|
|
9895
9885
|
...p
|
|
9896
|
-
}, x ? /* @__PURE__ */ e.createElement(zn, { label:
|
|
9886
|
+
}, x ? /* @__PURE__ */ e.createElement(zn, { label: X }, /* @__PURE__ */ e.createElement("ul", {
|
|
9897
9887
|
className: Z([j, `${j}--mobile`]),
|
|
9898
9888
|
role: "menu"
|
|
9899
|
-
}, re, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ie,
|
|
9889
|
+
}, re, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ie, ce)) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
9900
9890
|
ref: L.setReference,
|
|
9901
9891
|
"aria-label": t,
|
|
9902
9892
|
className: `${k}__trigger`,
|
|
@@ -10079,81 +10069,87 @@ var Xr = {
|
|
|
10079
10069
|
...Bn,
|
|
10080
10070
|
neutral: "Notice"
|
|
10081
10071
|
}, ...c }) => {
|
|
10082
|
-
let l = r === "marketing", [d, f] = g(t), [p, m] = g(null), [
|
|
10072
|
+
let l = r === "marketing", [d, f] = g(t), [p, m] = g(null), [_, v] = g(null), [y, b] = g({}), x = h(/* @__PURE__ */ new Set());
|
|
10083
10073
|
u(() => {
|
|
10084
|
-
|
|
10074
|
+
let e = new Set(t.map((e) => e.id));
|
|
10075
|
+
x.current.forEach((t) => {
|
|
10076
|
+
e.has(t) || x.current.delete(t);
|
|
10077
|
+
}), f((e) => {
|
|
10078
|
+
let n = new Map(t.map((e) => [e.id, e])), r = new Set(e.map((e) => e.id)), i = e.filter((e) => n.has(e.id)).map((e) => n.get(e.id)), a = t.filter((e) => !r.has(e.id) && !x.current.has(e.id));
|
|
10079
|
+
return [...i, ...a];
|
|
10080
|
+
});
|
|
10085
10081
|
}, [t]);
|
|
10086
|
-
let
|
|
10087
|
-
if (
|
|
10088
|
-
let
|
|
10089
|
-
critical: `${
|
|
10090
|
-
discovery: `${
|
|
10091
|
-
info: `${
|
|
10092
|
-
neutral: `${
|
|
10093
|
-
warning: `${
|
|
10094
|
-
},
|
|
10082
|
+
let S = d.length;
|
|
10083
|
+
if (S === 0) return null;
|
|
10084
|
+
let C = "pds-banner", w = S > 1 ? `${C}-group--multiple` : null, T = {
|
|
10085
|
+
critical: `${C}--critical`,
|
|
10086
|
+
discovery: `${C}--discovery`,
|
|
10087
|
+
info: `${C}--info`,
|
|
10088
|
+
neutral: `${C}--neutral`,
|
|
10089
|
+
warning: `${C}--warning`
|
|
10090
|
+
}, E = d[0].type, D = E ? `${C}-group--${E}` : null, O = (e) => 500 - e, k = (e) => e === 0 ? 0 : -1, A = () => {
|
|
10095
10091
|
m(d[0].id), setTimeout(() => {
|
|
10096
10092
|
f((e) => [...e.slice(1), e[0]]), m(null);
|
|
10097
10093
|
}, va);
|
|
10098
|
-
},
|
|
10099
|
-
|
|
10094
|
+
}, j = () => {
|
|
10095
|
+
b({
|
|
10100
10096
|
[d[0].id]: 502,
|
|
10101
|
-
[d[
|
|
10097
|
+
[d[S - 1].id]: 501
|
|
10102
10098
|
}), setTimeout(() => {
|
|
10103
10099
|
m(d[0].id);
|
|
10104
10100
|
}, ya), setTimeout(() => {
|
|
10105
|
-
f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null),
|
|
10101
|
+
f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null), b({});
|
|
10106
10102
|
}, va);
|
|
10107
|
-
},
|
|
10108
|
-
let { iconName: r, id: a, isDismissible: o, message: c, onDismiss: u, type: d } = t, m = d === "critical" ? "alert" : "status",
|
|
10109
|
-
e.preventDefault(),
|
|
10110
|
-
u?.(),
|
|
10103
|
+
}, M = (t, n) => {
|
|
10104
|
+
let { iconName: r, id: a, isDismissible: o, message: c, onDismiss: u, type: d } = t, m = d === "critical" ? "alert" : "status", h = `${s[d]}: `, g = (e) => {
|
|
10105
|
+
e.preventDefault(), v(a), setTimeout(() => {
|
|
10106
|
+
u?.(), v(null), x.current.add(a), f((e) => e.filter((e) => e.id !== a));
|
|
10111
10107
|
}, va);
|
|
10112
|
-
}, b =
|
|
10108
|
+
}, b = y[a] ?? O(n);
|
|
10113
10109
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10114
10110
|
key: a,
|
|
10115
10111
|
className: Z([
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
p === a ? `${
|
|
10119
|
-
|
|
10112
|
+
C,
|
|
10113
|
+
T[d],
|
|
10114
|
+
p === a ? `${C}--fading` : null,
|
|
10115
|
+
_ === a ? `${C}--dismissing` : null
|
|
10120
10116
|
]),
|
|
10121
10117
|
id: a,
|
|
10122
10118
|
role: m,
|
|
10123
10119
|
style: { zIndex: b }
|
|
10124
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10125
|
-
className: `${
|
|
10120
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${C}__content` }, /* @__PURE__ */ e.createElement(Q, {
|
|
10121
|
+
className: `${C}__icon ${C}__icon--${t.type}`,
|
|
10126
10122
|
iconName: d === "neutral" ? r : _a[d],
|
|
10127
10123
|
size: l ? "l" : "m"
|
|
10128
|
-
}), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10129
|
-
className: `${
|
|
10130
|
-
onClick:
|
|
10131
|
-
tabIndex:
|
|
10124
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${C}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h, " "), c)), o && /* @__PURE__ */ e.createElement("button", {
|
|
10125
|
+
className: `${C}__dismiss-button`,
|
|
10126
|
+
onClick: g,
|
|
10127
|
+
tabIndex: k(n),
|
|
10132
10128
|
type: "button"
|
|
10133
10129
|
}, i));
|
|
10134
10130
|
};
|
|
10135
10131
|
return /* @__PURE__ */ e.createElement("div", {
|
|
10136
10132
|
className: Z([
|
|
10137
|
-
`${
|
|
10138
|
-
|
|
10139
|
-
|
|
10133
|
+
`${C}-group`,
|
|
10134
|
+
D,
|
|
10135
|
+
w,
|
|
10140
10136
|
n ?? ""
|
|
10141
10137
|
]),
|
|
10142
10138
|
"data-context": r,
|
|
10143
10139
|
...c
|
|
10144
|
-
},
|
|
10140
|
+
}, S > 1 ? /* @__PURE__ */ e.createElement("div", { className: `${C}__navigation` }, /* @__PURE__ */ e.createElement(Pn, {
|
|
10145
10141
|
ariaLabel: o,
|
|
10146
|
-
className: `${
|
|
10142
|
+
className: `${C}__nav-button ${C}__nav-button--prev`,
|
|
10147
10143
|
iconName: "angleLeft",
|
|
10148
|
-
onClick:
|
|
10144
|
+
onClick: j,
|
|
10149
10145
|
size: "m"
|
|
10150
10146
|
}), /* @__PURE__ */ e.createElement(Pn, {
|
|
10151
10147
|
ariaLabel: a,
|
|
10152
|
-
className: `${
|
|
10148
|
+
className: `${C}__nav-button ${C}__nav-button--next`,
|
|
10153
10149
|
iconName: "angleRight",
|
|
10154
|
-
onClick:
|
|
10150
|
+
onClick: A,
|
|
10155
10151
|
size: "m"
|
|
10156
|
-
}), d.map((e, t) =>
|
|
10152
|
+
}), d.map((e, t) => M(e, t))) : M(d[0], 0));
|
|
10157
10153
|
}, xa = {
|
|
10158
10154
|
info: "circleInfo",
|
|
10159
10155
|
warning: "triangleExclamation",
|
|
@@ -11628,7 +11624,7 @@ var No = 24, Po = { droppable: { strategy: Ze.Always } }, Fo = o(function({ chil
|
|
|
11628
11624
|
J,
|
|
11629
11625
|
_,
|
|
11630
11626
|
se
|
|
11631
|
-
]),
|
|
11627
|
+
]), ce = c((e) => j && Y(j) ? null : at(e), [Y, j]), X = m(() => {
|
|
11632
11628
|
if (!T || !j || oe.size === 0 || T === j || Y(j)) return /* @__PURE__ */ new Set();
|
|
11633
11629
|
let e = J.findIndex((e) => e.id === T), t = J.findIndex((e) => e.id === j);
|
|
11634
11630
|
if (e === -1 || t === -1) return /* @__PURE__ */ new Set();
|
|
@@ -11800,7 +11796,7 @@ var No = 24, Po = { droppable: { strategy: Ze.Always } }, Fo = o(function({ chil
|
|
|
11800
11796
|
sensors: ie
|
|
11801
11797
|
}, /* @__PURE__ */ e.createElement(nt, {
|
|
11802
11798
|
items: ne,
|
|
11803
|
-
strategy:
|
|
11799
|
+
strategy: ce
|
|
11804
11800
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
11805
11801
|
className: Z([
|
|
11806
11802
|
w,
|
|
@@ -11843,7 +11839,7 @@ var No = 24, Po = { droppable: { strategy: Ze.Always } }, Fo = o(function({ chil
|
|
|
11843
11839
|
}) : /* @__PURE__ */ e.createElement("div", { key: t.id }, r);
|
|
11844
11840
|
}))), /* @__PURE__ */ e.createElement(Ye, null, T && ue ? /* @__PURE__ */ e.createElement("div", { className: Z([
|
|
11845
11841
|
"pds-sortable-list pds-sortable-list--overlay",
|
|
11846
|
-
|
|
11842
|
+
X ? "pds-sortable-list--overlay-invalid" : null,
|
|
11847
11843
|
O ? "pds-sortable-list--overlay-keyboard" : null
|
|
11848
11844
|
]) }, (() => {
|
|
11849
11845
|
let t = le?.depth ?? 0, n = O ? Math.max(0, Math.min(_, t + R)) : t, r = {
|
|
@@ -12206,7 +12202,7 @@ var Lo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12206
12202
|
};
|
|
12207
12203
|
}, []), n;
|
|
12208
12204
|
}, qo = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", detailPanelNav: s = !0, detailPanelTitle: c, detailPanelWidth: l, emptyState: f, emptyStateHeading: p = "No results found.", emptyStateMessage: _, footer: v, getDetailPanelPositionLabel: y = (e, t) => `${e} of ${t}`, getPageSizeLabel: b = (e) => `Show ${e} rows per page`, getRowClassName: x, getRowId: S, getRowSelectDisabledReason: C, getSelectRowLabel: w = (e, t) => `Select row ${t}`, getSortLabel: T = (e) => `Sort by ${e}`, hasMobileCards: E = !1, hasMobileDetailSheet: D = !0, inspectedRowId: O, isLoading: k = !1, isRowSelectable: A = () => !0, itemsPerPage: j, loadingRowCount: M = 5, maxHeight: N, minHeight: P, nextDetailPanelRowLabel: F = "Next row", onDetailPanelNext: I, onDetailPanelPrev: L, onPageChange: R, onPageSizeChange: z, onRowInspect: B, onRowSelectionChange: V, onSort: H, pageSizeOptions: U, pageSizeSelectLabel: W = "Rows per page", paginationLabels: G, panel: K, prevDetailPanelRowLabel: q = "Previous row", renderDetailPanel: J, renderDetailPanelFooter: ee, rowData: te, selectAllLabel: ne = "Select all rows", selectedRows: re, sortKey: ie, sortOrder: ae, totalItemCount: oe, ...se }) => {
|
|
12209
|
-
let Y = "pds-table",
|
|
12205
|
+
let Y = "pds-table", ce = d(), X = d(), le = h(null), ue = Ko() === "sm" && E, de = K && !ue, fe = r.some((e) => e.cardVisible) ? r.filter((e) => e.cardVisible) : r.slice(0, 1), pe = J !== void 0 || B === void 0 && D, me = J !== void 0 || B !== void 0 || D, he = H !== void 0, ge = R !== void 0, _e = z !== void 0, ve = ge || j !== void 0 || U !== void 0, ye = te.length > 0 || ge && (oe ?? 0) > 0, [be, xe] = g({
|
|
12210
12206
|
key: a ?? "",
|
|
12211
12207
|
order: a === void 0 ? "asc" : o
|
|
12212
12208
|
}), Se = m(() => {
|
|
@@ -12359,7 +12355,7 @@ var Lo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12359
12355
|
}, Ie && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(si, {
|
|
12360
12356
|
checked: Be.has(i),
|
|
12361
12357
|
disabled: !s,
|
|
12362
|
-
id: `${
|
|
12358
|
+
id: `${X}-row-${i}`,
|
|
12363
12359
|
inputProps: c ? { title: c } : void 0,
|
|
12364
12360
|
label: u,
|
|
12365
12361
|
onChange: () => ut(i),
|
|
@@ -12430,7 +12426,7 @@ var Lo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12430
12426
|
...se
|
|
12431
12427
|
}, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, Ie && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(si, {
|
|
12432
12428
|
checked: ct,
|
|
12433
|
-
id:
|
|
12429
|
+
id: X,
|
|
12434
12430
|
indeterminate: lt,
|
|
12435
12431
|
label: ne,
|
|
12436
12432
|
onChange: dt,
|
|
@@ -12454,7 +12450,7 @@ var Lo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12454
12450
|
size: "m"
|
|
12455
12451
|
})))) : /* @__PURE__ */ e.createElement("span", null, t.header))))), /* @__PURE__ */ e.createElement("tbody", null, k ? Array.from({ length: M }, (e, t) => ft(t)) : rt.length === 0 ? pt() : rt.map((e, t) => mt(e, t))))), ve && !k && ye && /* @__PURE__ */ e.createElement("div", { className: Z(["pds-table-wrapper__pagination", ue ? "pds-table-wrapper__pagination--center" : null]) }, U && U.length > 0 && /* @__PURE__ */ e.createElement(Cr, {
|
|
12456
12452
|
autoWidth: !0,
|
|
12457
|
-
id:
|
|
12453
|
+
id: ce,
|
|
12458
12454
|
label: W,
|
|
12459
12455
|
onOptionSelect: (e) => Fe(Number(e.value)),
|
|
12460
12456
|
options: U.map((e) => ({
|
|
@@ -12898,13 +12894,13 @@ var Lo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12898
12894
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
12899
12895
|
className: `${N}__main-inner`,
|
|
12900
12896
|
style: { maxWidth: L }
|
|
12901
|
-
}, q)),
|
|
12897
|
+
}, q)), ce = /* @__PURE__ */ e.createElement("div", {
|
|
12902
12898
|
className: `${N}__content-column`,
|
|
12903
12899
|
style: { backgroundColor: m || void 0 }
|
|
12904
12900
|
}, Y, ee && /* @__PURE__ */ e.createElement("div", { className: `${N}__footer` }, /* @__PURE__ */ e.createElement("div", {
|
|
12905
12901
|
className: `${N}__footer-inner`,
|
|
12906
12902
|
style: { maxWidth: L }
|
|
12907
|
-
}, ee))),
|
|
12903
|
+
}, ee))), X = /* @__PURE__ */ e.createElement(e.Fragment, null, (te || oe) && /* @__PURE__ */ e.createElement("div", {
|
|
12908
12904
|
...O,
|
|
12909
12905
|
className: Z([
|
|
12910
12906
|
`${N}__sidebar`,
|
|
@@ -12931,7 +12927,7 @@ var Lo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12931
12927
|
crossAxis: -96
|
|
12932
12928
|
},
|
|
12933
12929
|
preferredPlacement: "right-end"
|
|
12934
|
-
}), /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-inner` }, se)),
|
|
12930
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-inner` }, se)), ce);
|
|
12935
12931
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
|
|
12936
12932
|
ref: G,
|
|
12937
12933
|
className: Z([
|
|
@@ -12944,7 +12940,7 @@ var Lo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
|
|
|
12944
12940
|
}, /* @__PURE__ */ e.createElement(Ui, {
|
|
12945
12941
|
destination: I,
|
|
12946
12942
|
text: F.skipToContent
|
|
12947
|
-
}), J ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, J), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` },
|
|
12943
|
+
}), J ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, J), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, X)) : X), o && /* @__PURE__ */ e.createElement(Va, {
|
|
12948
12944
|
...i,
|
|
12949
12945
|
isOpen: c,
|
|
12950
12946
|
placement: "left",
|