@orbitcommerce/constellation 1.2.1 → 1.3.0
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/CHANGELOG.md +22 -0
- package/dist/{chunk-TTKDPWIV.cjs → chunk-UY22Q2WO.cjs} +11 -0
- package/dist/icons.cjs +2 -2
- package/dist/index.cjs +338 -306
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/modules/chunks/{chunk-XFXOVQ62.js → chunk-7DNZLQW6.js} +1 -1
- package/dist/modules/chunks/{chunk-YY2LLGRU.js → chunk-LWZNQ5D2.js} +1 -1
- package/dist/modules/chunks/{chunk-5BVMPVB3.js → chunk-QJDMT2X6.js} +29 -3
- package/dist/modules/chunks/{chunk-YZB2D4AP.js → chunk-T4URSDXR.js} +2 -2
- package/dist/modules/chunks/{chunk-QOYDJQTO.js → chunk-XGKIOBY6.js} +1 -1
- package/dist/modules/components/AddFilter.js +1 -1
- package/dist/modules/components/ChatComposer.js +3 -3
- package/dist/modules/components/Composer.js +3 -3
- package/dist/modules/components/ContextMenu.js +1 -1
- package/dist/modules/components/DeviceSwitcher.js +1 -1
- package/dist/modules/components/GradientEditor.js +1 -1
- package/dist/modules/components/Menu.js +1 -1
- package/dist/modules/components/NumberInput.js +1 -1
- package/dist/modules/components/RadiusControl.js +2 -2
- package/dist/modules/components/RichTextEditor.js +2 -2
- package/dist/modules/components/SectionRail.js +7 -1
- package/dist/modules/components/SettingRow.js +1 -1
- package/dist/modules/components/SpacingBox.js +2 -2
- package/dist/modules/components/SplitButton.js +1 -1
- package/dist/modules/components/Toolbar.js +2 -2
- package/dist/modules/components/UnitInput.js +2 -2
- package/dist/modules/components/builder/ElementToolbar.js +2 -2
- package/dist/modules/icons/lucide.js +16 -0
- package/dist/styles/components/dialog.css +1 -1
- package/dist/styles/components/rich-text-editor.css +10 -1
- package/dist/styles/components/sheet.css +1 -1
- package/dist/styles/components/shell.css +4 -0
- package/dist/styles/core.css +1 -0
- package/dist/styles.css +17 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
var
|
|
125
|
+
var _chunkUY22Q2WOcjs = require('./chunk-UY22Q2WO.cjs');
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
|
|
@@ -1002,7 +1002,7 @@ var Link = _react.forwardRef.call(void 0, function Link2({
|
|
|
1002
1002
|
...rest
|
|
1003
1003
|
}, ref) {
|
|
1004
1004
|
const Comp = asChild ? _reactslot.Slot : "a";
|
|
1005
|
-
const glyph = _nullishCoalesce(iconEnd, () => ( (external ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1005
|
+
const glyph = _nullishCoalesce(iconEnd, () => ( (external ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowSquareOutIcon, {}) : null)));
|
|
1006
1006
|
const mark = glyph != null && glyph !== false ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-link__icon", "aria-hidden": "true", children: glyph }) : null;
|
|
1007
1007
|
const child = asChild && external && _react.isValidElement.call(void 0, children) ? _react.cloneElement.call(void 0, children, { rel: externalRel(`${_nullishCoalesce(rel, () => ( ""))} ${_nullishCoalesce(children.props.rel, () => ( ""))}`) }) : children;
|
|
1008
1008
|
const swallow2 = (event, own) => {
|
|
@@ -2013,7 +2013,7 @@ var Chip = _react.forwardRef.call(void 0, function Chip2({
|
|
|
2013
2013
|
});
|
|
2014
2014
|
}
|
|
2015
2015
|
},
|
|
2016
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2016
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, { weight: "bold", "aria-hidden": "true" })
|
|
2017
2017
|
}
|
|
2018
2018
|
) : null
|
|
2019
2019
|
]
|
|
@@ -2353,7 +2353,7 @@ var FieldHelp = _react.forwardRef.call(void 0, function FieldHelp2({
|
|
|
2353
2353
|
"aria-label": label,
|
|
2354
2354
|
"aria-labelledby": labelledBy,
|
|
2355
2355
|
...rest,
|
|
2356
|
-
children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2356
|
+
children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.QuestionIcon, { "aria-hidden": "true" })))
|
|
2357
2357
|
}
|
|
2358
2358
|
) }),
|
|
2359
2359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -3890,7 +3890,7 @@ function SortableListImpl({
|
|
|
3890
3890
|
handlePlacement = "start",
|
|
3891
3891
|
listId,
|
|
3892
3892
|
activationDistance,
|
|
3893
|
-
handleIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3893
|
+
handleIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DotsSixVerticalIcon, { size: 16, "aria-hidden": "true" }),
|
|
3894
3894
|
labels: labelsProp,
|
|
3895
3895
|
className,
|
|
3896
3896
|
onBlur,
|
|
@@ -4627,14 +4627,14 @@ var TagInput = _react.forwardRef.call(void 0, function TagInput2({
|
|
|
4627
4627
|
"data-reorderable": dataFlag(entry !== void 0),
|
|
4628
4628
|
"data-tone": _optionalChain([chip, 'access', _223 => _223.display, 'optionalAccess', _224 => _224.tone]) && chip.display.tone !== "neutral" ? chip.display.tone : void 0,
|
|
4629
4629
|
children: [
|
|
4630
|
-
entry ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { ...sortable.handleProps(entry), className: "o-tag-input__grip", "aria-label": labels.reorder(chip.text), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4630
|
+
entry ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { ...sortable.handleProps(entry), className: "o-tag-input__grip", "aria-label": labels.reorder(chip.text), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DotsSixVerticalIcon, { weight: "bold", "aria-hidden": "true" }) }) : null,
|
|
4631
4631
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4632
4632
|
Chip,
|
|
4633
4633
|
{
|
|
4634
4634
|
size: size === "lg" ? "md" : "sm",
|
|
4635
4635
|
disabled,
|
|
4636
4636
|
color: _optionalChain([chip, 'access', _225 => _225.display, 'optionalAccess', _226 => _226.color]),
|
|
4637
|
-
icon: chip.busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 12 }) : chip.problem !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4637
|
+
icon: chip.busy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 12 }) : chip.problem !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningCircleIcon, { weight: "bold" }) : void 0,
|
|
4638
4638
|
onRemove: canRemove && !chip.busy && chip.index >= 0 ? () => removeAt(chip.index) : void 0,
|
|
4639
4639
|
removeLabel: labels.remove(chip.text),
|
|
4640
4640
|
children: [
|
|
@@ -4791,7 +4791,7 @@ var TagInput = _react.forwardRef.call(void 0, function TagInput2({
|
|
|
4791
4791
|
setMessage(null);
|
|
4792
4792
|
},
|
|
4793
4793
|
children: [
|
|
4794
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__thumb", "data-create": "", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4794
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__thumb", "data-create": "", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, {}) }),
|
|
4795
4795
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__label", children: labels.create(row.name) })
|
|
4796
4796
|
]
|
|
4797
4797
|
},
|
|
@@ -4836,7 +4836,7 @@ var TagInput = _react.forwardRef.call(void 0, function TagInput2({
|
|
|
4836
4836
|
type: "button",
|
|
4837
4837
|
variant: "secondary",
|
|
4838
4838
|
size: size === "lg" ? "lg" : size === "sm" ? "sm" : "md",
|
|
4839
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4839
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, { weight: "bold" }),
|
|
4840
4840
|
disabled: disabled || readOnly || closed || Boolean(saving),
|
|
4841
4841
|
onMouseDown: (event) => event.preventDefault(),
|
|
4842
4842
|
onClick: () => {
|
|
@@ -4869,7 +4869,7 @@ var TagInput = _react.forwardRef.call(void 0, function TagInput2({
|
|
|
4869
4869
|
disabled: closed || Boolean(saving),
|
|
4870
4870
|
onClick: () => addSuggestion(suggestion),
|
|
4871
4871
|
children: [
|
|
4872
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4872
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, { weight: "bold", "aria-hidden": "true" }),
|
|
4873
4873
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: words2 }),
|
|
4874
4874
|
suggestion.meta ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-tag-input__suggestion-meta", children: suggestion.meta }) : null
|
|
4875
4875
|
]
|
|
@@ -4994,7 +4994,7 @@ var Avatar = _react.forwardRef.call(void 0, function Avatar2({ src, name, alt, s
|
|
|
4994
4994
|
}
|
|
4995
4995
|
) : null,
|
|
4996
4996
|
status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-avatar__status", "data-status": status, "aria-hidden": "true" }) : null,
|
|
4997
|
-
activity === "editing" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-avatar__activity", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4997
|
+
activity === "editing" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-avatar__activity", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PencilSimpleIcon, { weight: "bold" }) }) : null
|
|
4998
4998
|
]
|
|
4999
4999
|
}
|
|
5000
5000
|
);
|
|
@@ -5423,7 +5423,7 @@ var Thumbnail = _react.forwardRef.call(void 0, function Thumbnail2({
|
|
|
5423
5423
|
const initials = name ? initialsOf(name, "store") : "";
|
|
5424
5424
|
const named = Boolean(alt);
|
|
5425
5425
|
const imageRole = named ? { role: "img", "aria-label": alt } : { "aria-hidden": true };
|
|
5426
|
-
const fallbackDrawn = _nullishCoalesce(fallback, () => ( (kind === "model" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5426
|
+
const fallbackDrawn = _nullishCoalesce(fallback, () => ( (kind === "model" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CubeIcon, {}) : initials || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PictureGlyph, {}))));
|
|
5427
5427
|
const kindWord = kind === "video" ? labels.video : kind === "model" ? labels.model : null;
|
|
5428
5428
|
const media = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5429
5429
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-thumbnail__fallback", "aria-hidden": "true", children: fallbackDrawn }),
|
|
@@ -5486,9 +5486,9 @@ var Thumbnail = _react.forwardRef.call(void 0, function Thumbnail2({
|
|
|
5486
5486
|
...rest,
|
|
5487
5487
|
children: [
|
|
5488
5488
|
framed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { ref: pictureRef, className: "o-thumbnail__picture", tabIndex: -1, ...imageRole, children: media }) : media,
|
|
5489
|
-
kind === "video" && load !== "failed" && (frameVideo || source2) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-thumbnail__play", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5489
|
+
kind === "video" && load !== "failed" && (frameVideo || source2) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-thumbnail__play", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlayIcon, { weight: "fill" }) }) : null,
|
|
5490
5490
|
kindWord ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-thumbnail__kind", "aria-hidden": "true", children: [
|
|
5491
|
-
kind === "model" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5491
|
+
kind === "model" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CubeIcon, { weight: "bold" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlayIcon, { weight: "fill" }),
|
|
5492
5492
|
kindWord
|
|
5493
5493
|
] }) : null,
|
|
5494
5494
|
hasContent(badge) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-thumbnail__badge", "aria-hidden": "true", children: badge }) : null,
|
|
@@ -5498,12 +5498,12 @@ var Thumbnail = _react.forwardRef.call(void 0, function Thumbnail2({
|
|
|
5498
5498
|
attempt > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-thumbnail__retrying", children: labels.retrying(attempt, retries) }) : null
|
|
5499
5499
|
] }) : null,
|
|
5500
5500
|
retrying ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-thumbnail__retry", children: [
|
|
5501
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5501
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ImageBrokenIcon, { className: "o-thumbnail__broken", "aria-hidden": "true" }),
|
|
5502
5502
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5503
5503
|
Button,
|
|
5504
5504
|
{
|
|
5505
5505
|
size: "xs",
|
|
5506
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5506
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowClockwiseIcon, { weight: "bold" }),
|
|
5507
5507
|
loading: manual && isLoading,
|
|
5508
5508
|
onClick: (event) => {
|
|
5509
5509
|
event.stopPropagation();
|
|
@@ -5939,7 +5939,7 @@ var DangerZone = _react.forwardRef.call(void 0, function DangerZone2({
|
|
|
5939
5939
|
const hasDescription = hasContent(description);
|
|
5940
5940
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Card, { asChild: true, variant: "outline", padding: "lg", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { ref, className: cx("o-danger-zone", className), "aria-labelledby": titleId, ...rest, children: [
|
|
5941
5941
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-danger-zone__head", "data-has-description": dataFlag(hasDescription), children: [
|
|
5942
|
-
icon === null ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconTile, { tone, children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5942
|
+
icon === null ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconTile, { tone, children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningIcon, { size: 16 }))) }),
|
|
5943
5943
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-danger-zone__heading", children: [
|
|
5944
5944
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-danger-zone__title-row", children: [
|
|
5945
5945
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Title5, { className: "o-danger-zone__title", id: titleId, children: title }),
|
|
@@ -6130,12 +6130,12 @@ function wordsOf(text) {
|
|
|
6130
6130
|
return [".o-empty__title", ".o-empty__description"].map((part2) => _nullishCoalesce(_optionalChain([text, 'access', _273 => _273.querySelector, 'call', _274 => _274(part2), 'optionalAccess', _275 => _275.textContent, 'optionalAccess', _276 => _276.trim, 'call', _277 => _277()]), () => ( ""))).filter(Boolean).map((words2) => ENDS_A_SENTENCE.test(words2) ? words2 : `${words2}.`).join(" ");
|
|
6131
6131
|
}
|
|
6132
6132
|
function ErrorMark({ glyph }) {
|
|
6133
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-empty__tile", "aria-hidden": "true", children: _nullishCoalesce(glyph, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6133
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-empty__tile", "aria-hidden": "true", children: _nullishCoalesce(glyph, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningCircleIcon, {}))) });
|
|
6134
6134
|
}
|
|
6135
6135
|
var OUTCOME_DISC_TONE = { waiting: "neutral", success: "positive", failed: "negative" };
|
|
6136
6136
|
var OUTCOME_SPINNER = { sm: 20, md: 32, lg: 48 };
|
|
6137
6137
|
function OutcomeDisc({ size, state }) {
|
|
6138
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconTile, { size: size === "sm" ? "xl" : "2xl", shape: "circle", tone: OUTCOME_DISC_TONE[state], children: state === "waiting" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: OUTCOME_SPINNER[size] }) : state === "success" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6138
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconTile, { size: size === "sm" ? "xl" : "2xl", shape: "circle", tone: OUTCOME_DISC_TONE[state], children: state === "waiting" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: OUTCOME_SPINNER[size] }) : state === "success" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, {}) });
|
|
6139
6139
|
}
|
|
6140
6140
|
var EmptyState = _react.forwardRef.call(void 0, function EmptyState2({
|
|
6141
6141
|
title,
|
|
@@ -6224,7 +6224,7 @@ var EmptyState = _react.forwardRef.call(void 0, function EmptyState2({
|
|
|
6224
6224
|
] }) : null,
|
|
6225
6225
|
hasContent(technicalDetails) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "details", { className: "o-empty__technical", children: [
|
|
6226
6226
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "summary", { className: "o-empty__technical-summary", children: [
|
|
6227
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6227
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretDownIcon, { className: "o-empty__technical-caret", weight: "bold", "aria-hidden": "true" }),
|
|
6228
6228
|
technicalDetailsLabel
|
|
6229
6229
|
] }),
|
|
6230
6230
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-empty__technical-body", children: technicalDetails })
|
|
@@ -7003,7 +7003,7 @@ var TableExpandAll = _react.forwardRef.call(void 0, function TableExpandAll2({ e
|
|
|
7003
7003
|
ref,
|
|
7004
7004
|
variant,
|
|
7005
7005
|
size,
|
|
7006
|
-
icon: expanded ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7006
|
+
icon: expanded ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowsInLineVerticalIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowsOutLineVerticalIcon, {}),
|
|
7007
7007
|
onClick: () => onExpandedChange(!expanded),
|
|
7008
7008
|
...rest,
|
|
7009
7009
|
children: expanded ? words2.collapseAll : words2.expandAll
|
|
@@ -7033,7 +7033,7 @@ function TableHelp({ help, label, className, onClick, ...rest }) {
|
|
|
7033
7033
|
setOpen(true);
|
|
7034
7034
|
},
|
|
7035
7035
|
...rest,
|
|
7036
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7036
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.InfoIcon, { "aria-hidden": "true" })
|
|
7037
7037
|
}
|
|
7038
7038
|
) });
|
|
7039
7039
|
}
|
|
@@ -7876,14 +7876,14 @@ function CheckboxGroupImpl({
|
|
|
7876
7876
|
"aria-expanded": shown,
|
|
7877
7877
|
"aria-controls": bodyId,
|
|
7878
7878
|
"data-open": dataFlag(shown),
|
|
7879
|
-
iconEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7879
|
+
iconEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretDownIcon, { weight: "bold" }),
|
|
7880
7880
|
onClick: () => setOpen((now) => !now),
|
|
7881
7881
|
children: shown ? labels.hide : labels.show(allOptions.length)
|
|
7882
7882
|
}
|
|
7883
7883
|
) : null,
|
|
7884
7884
|
body,
|
|
7885
7885
|
heldNote ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "o-checkbox-group__note", children: [
|
|
7886
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.InfoIcon, { "aria-hidden": "true" }),
|
|
7887
7887
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: labels.held(_nullishCoalesce(min, () => ( 1))) })
|
|
7888
7888
|
] }) : null,
|
|
7889
7889
|
name != null ? checked.map((each) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", name, value: each }, each)) : null,
|
|
@@ -8079,6 +8079,29 @@ var MenuPrimitivesProvider = MenuPartsContext.Provider;
|
|
|
8079
8079
|
var useParts = () => _react.useContext.call(void 0, MenuPartsContext);
|
|
8080
8080
|
var Menu = MenuPrimitive.Root;
|
|
8081
8081
|
var refusesToOpen = (element) => element.getAttribute("aria-disabled") === "true";
|
|
8082
|
+
var CLICK_SLOP = 10;
|
|
8083
|
+
function holdOpeningRelease(down) {
|
|
8084
|
+
if (down.button !== 0 || down.ctrlKey !== false) return;
|
|
8085
|
+
const x = down.clientX;
|
|
8086
|
+
const y = down.clientY;
|
|
8087
|
+
const pointerId = down.pointerId;
|
|
8088
|
+
const doc = down.currentTarget.ownerDocument;
|
|
8089
|
+
const release2 = (up) => {
|
|
8090
|
+
if (up.pointerId !== pointerId) return;
|
|
8091
|
+
stop();
|
|
8092
|
+
if (Math.abs(up.clientX - x) <= CLICK_SLOP && Math.abs(up.clientY - y) <= CLICK_SLOP) up.preventDefault();
|
|
8093
|
+
};
|
|
8094
|
+
const cancelled = (event) => {
|
|
8095
|
+
if (event.pointerId !== pointerId) return;
|
|
8096
|
+
stop();
|
|
8097
|
+
};
|
|
8098
|
+
const stop = () => {
|
|
8099
|
+
doc.removeEventListener("pointerup", release2, true);
|
|
8100
|
+
doc.removeEventListener("pointercancel", cancelled, true);
|
|
8101
|
+
};
|
|
8102
|
+
doc.addEventListener("pointerup", release2, true);
|
|
8103
|
+
doc.addEventListener("pointercancel", cancelled, true);
|
|
8104
|
+
}
|
|
8082
8105
|
var MenuTrigger = _react.forwardRef.call(void 0, function MenuTrigger2({ onPointerDown, onKeyDown, ...rest }, ref) {
|
|
8083
8106
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8084
8107
|
MenuPrimitive.Trigger,
|
|
@@ -8086,9 +8109,12 @@ var MenuTrigger = _react.forwardRef.call(void 0, function MenuTrigger2({ onPoint
|
|
|
8086
8109
|
ref,
|
|
8087
8110
|
onPointerDown: (event) => {
|
|
8088
8111
|
_optionalChain([onPointerDown, 'optionalCall', _335 => _335(event)]);
|
|
8089
|
-
if (
|
|
8090
|
-
|
|
8091
|
-
|
|
8112
|
+
if (refusesToOpen(event.currentTarget)) {
|
|
8113
|
+
event.preventDefault();
|
|
8114
|
+
event.currentTarget.focus();
|
|
8115
|
+
return;
|
|
8116
|
+
}
|
|
8117
|
+
if (!event.defaultPrevented) holdOpeningRelease(event);
|
|
8092
8118
|
},
|
|
8093
8119
|
onKeyDown: (event) => {
|
|
8094
8120
|
_optionalChain([onKeyDown, 'optionalCall', _336 => _336(event)]);
|
|
@@ -8562,11 +8588,11 @@ var _reactdialog = require('@radix-ui/react-dialog'); var DialogPrimitive = _int
|
|
|
8562
8588
|
|
|
8563
8589
|
|
|
8564
8590
|
var ICONS = {
|
|
8565
|
-
neutral: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8566
|
-
info: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8567
|
-
success: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8568
|
-
warning: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8569
|
-
critical: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8591
|
+
neutral: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.InfoIcon, { weight: "duotone" }),
|
|
8592
|
+
info: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.InfoIcon, { weight: "duotone" }),
|
|
8593
|
+
success: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckCircleIcon, { weight: "duotone" }),
|
|
8594
|
+
warning: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningIcon, { weight: "duotone" }),
|
|
8595
|
+
critical: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningCircleIcon, { weight: "duotone" })
|
|
8570
8596
|
};
|
|
8571
8597
|
var noSubscribe2 = () => () => {
|
|
8572
8598
|
};
|
|
@@ -9809,7 +9835,7 @@ var ColorPicker = _react.forwardRef.call(void 0, function ColorPicker2({
|
|
|
9809
9835
|
}
|
|
9810
9836
|
}
|
|
9811
9837
|
),
|
|
9812
|
-
canPick ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { size: "sm", variant: "ghost", label: labels.eyedropper, disabled, onClick: pick, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9838
|
+
canPick ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { size: "sm", variant: "ghost", label: labels.eyedropper, disabled, onClick: pick, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.EyedropperIcon, { size: 16 }) }) : null
|
|
9813
9839
|
] }),
|
|
9814
9840
|
presets && presets.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-color-picker__presets", role: "group", "aria-label": labels.presets, children: presets.map((preset) => {
|
|
9815
9841
|
const hex2 = normaliseHex(preset, { alpha: false });
|
|
@@ -10090,7 +10116,7 @@ var TabsTrigger = _react.forwardRef.call(void 0, function TabsTrigger2({
|
|
|
10090
10116
|
children: count
|
|
10091
10117
|
}
|
|
10092
10118
|
) : null,
|
|
10093
|
-
invalid ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-tabs__invalid", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10119
|
+
invalid ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-tabs__invalid", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningCircleIcon, { weight: "fill" }) }) : null,
|
|
10094
10120
|
spoken ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-sr-only", children: `, ${spoken}` }) : null,
|
|
10095
10121
|
invalid && invalidLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-sr-only", children: `, ${invalidLabel}` }) : null,
|
|
10096
10122
|
variant === "line" && active2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10494,7 +10520,7 @@ var ColorField = _react.forwardRef.call(void 0, function ColorField2(props, ref)
|
|
|
10494
10520
|
role ? (
|
|
10495
10521
|
// Over the reference's text while the text is not being edited: the role by name. Presses reach the text.
|
|
10496
10522
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-color-field__role", "aria-hidden": "true", children: [
|
|
10497
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10523
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.LinkIcon, { weight: "bold" }),
|
|
10498
10524
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-color-field__role-name", children: role.label })
|
|
10499
10525
|
] })
|
|
10500
10526
|
) : null
|
|
@@ -10733,7 +10759,7 @@ function normaliseValue(value) {
|
|
|
10733
10759
|
var DIGIT = /\p{Nd}/u;
|
|
10734
10760
|
function sanitise(text, locale, decimals, allowNegative) {
|
|
10735
10761
|
const { decimal, group } = localeSeparators(locale);
|
|
10736
|
-
const
|
|
10762
|
+
const wholeNumber = decimals === 0;
|
|
10737
10763
|
let kept = "";
|
|
10738
10764
|
for (const char of text) {
|
|
10739
10765
|
if (DIGIT.test(char)) {
|
|
@@ -10741,7 +10767,7 @@ function sanitise(text, locale, decimals, allowNegative) {
|
|
|
10741
10767
|
} else if (char === "-" || char === "\u2212") {
|
|
10742
10768
|
if (allowNegative) kept += char;
|
|
10743
10769
|
} else if (char === decimal || char === group || char === "," || char === "." || char === "\u066B" || char === "\u066C") {
|
|
10744
|
-
if (!
|
|
10770
|
+
if (!wholeNumber || char === decimal) kept += char;
|
|
10745
10771
|
} else if (/\s/.test(char)) {
|
|
10746
10772
|
kept += char;
|
|
10747
10773
|
}
|
|
@@ -11710,7 +11736,7 @@ var InlineEdit = _react.forwardRef.call(void 0, function InlineEdit2({
|
|
|
11710
11736
|
size: hasHeading ? "xs" : actionSize === "lg" ? "md" : "sm",
|
|
11711
11737
|
"aria-describedby": valueId,
|
|
11712
11738
|
onClick: startEditing,
|
|
11713
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11739
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PencilSimpleIcon, {})
|
|
11714
11740
|
}
|
|
11715
11741
|
) });
|
|
11716
11742
|
const iconActions = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-inline-edit__actions", children: [
|
|
@@ -11726,7 +11752,7 @@ var InlineEdit = _react.forwardRef.call(void 0, function InlineEdit2({
|
|
|
11726
11752
|
onClick: () => {
|
|
11727
11753
|
if (!pending) save(draft);
|
|
11728
11754
|
},
|
|
11729
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11755
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, {})
|
|
11730
11756
|
}
|
|
11731
11757
|
) }),
|
|
11732
11758
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tooltip, { content: labels.cancel, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11739,7 +11765,7 @@ var InlineEdit = _react.forwardRef.call(void 0, function InlineEdit2({
|
|
|
11739
11765
|
"aria-disabled": pending ? true : void 0,
|
|
11740
11766
|
onMouseDown: keepFieldFocus,
|
|
11741
11767
|
onClick: cancel,
|
|
11742
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11768
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, {})
|
|
11743
11769
|
}
|
|
11744
11770
|
) })
|
|
11745
11771
|
] });
|
|
@@ -11847,7 +11873,7 @@ var InlineEdit = _react.forwardRef.call(void 0, function InlineEdit2({
|
|
|
11847
11873
|
"aria-label": labels.edit(label),
|
|
11848
11874
|
"aria-describedby": valueId,
|
|
11849
11875
|
onClick: startEditing,
|
|
11850
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11876
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PencilSimpleIcon, { className: "o-inline-edit__pencil", "aria-hidden": "true" })
|
|
11851
11877
|
}
|
|
11852
11878
|
)
|
|
11853
11879
|
] });
|
|
@@ -12249,7 +12275,7 @@ var PasswordField = _react.forwardRef.call(void 0, function PasswordField2({
|
|
|
12249
12275
|
disabled,
|
|
12250
12276
|
onMouseDown: (event) => event.preventDefault(),
|
|
12251
12277
|
onClick: toggle,
|
|
12252
|
-
children: revealed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12278
|
+
children: revealed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.EyeSlashIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.EyeIcon, {})
|
|
12253
12279
|
}
|
|
12254
12280
|
) : void 0,
|
|
12255
12281
|
...rest
|
|
@@ -12558,7 +12584,7 @@ var OtpInput = _react.forwardRef.call(void 0, function OtpInput2({
|
|
|
12558
12584
|
|
|
12559
12585
|
|
|
12560
12586
|
function Thumb({ option }) {
|
|
12561
|
-
return option.image ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: option.image, alt: "", "aria-hidden": "true", loading: "lazy", className: "o-combobox__thumb" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: "o-combobox__thumb", "data-empty": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12587
|
+
return option.image ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: option.image, alt: "", "aria-hidden": "true", loading: "lazy", className: "o-combobox__thumb" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: "o-combobox__thumb", "data-empty": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ImageIcon, {}) });
|
|
12562
12588
|
}
|
|
12563
12589
|
function filled2(node) {
|
|
12564
12590
|
return node != null && node !== false && node !== "";
|
|
@@ -12610,7 +12636,7 @@ function ComboboxPicked({
|
|
|
12610
12636
|
"data-tone": option.tone && option.tone !== "neutral" ? option.tone : void 0,
|
|
12611
12637
|
children: [
|
|
12612
12638
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__chip-label", children: option.label }),
|
|
12613
|
-
mayChange && !locked ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "o-combobox__chip-remove", "aria-label": labels.remove(option.label), onClick: () => onRemove(value), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12639
|
+
mayChange && !locked ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "o-combobox__chip-remove", "aria-label": labels.remove(option.label), onClick: () => onRemove(value), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, { "aria-hidden": "true" }) }) : null
|
|
12614
12640
|
]
|
|
12615
12641
|
},
|
|
12616
12642
|
value
|
|
@@ -12646,7 +12672,7 @@ function ComboboxPicked({
|
|
|
12646
12672
|
filled2(option.description) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__desc", children: option.description }) : null
|
|
12647
12673
|
] }),
|
|
12648
12674
|
filled2(option.aside) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__aside", children: option.aside }) : null,
|
|
12649
|
-
mayChange && !locked ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "o-combobox__picked-remove", "aria-label": labels.remove(option.label), onClick: () => onRemove(value), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12675
|
+
mayChange && !locked ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "o-combobox__picked-remove", "aria-label": labels.remove(option.label), onClick: () => onRemove(value), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, { "aria-hidden": "true" }) }) : null
|
|
12650
12676
|
] }, value);
|
|
12651
12677
|
}) })
|
|
12652
12678
|
] }),
|
|
@@ -13197,7 +13223,7 @@ var Combobox = _react.forwardRef.call(void 0, function Combobox2(props, ref) {
|
|
|
13197
13223
|
"aria-labelledby": field ? `${clearId} ${field.labelId}` : void 0,
|
|
13198
13224
|
onMouseDown: (event) => event.preventDefault(),
|
|
13199
13225
|
onClick: clear,
|
|
13200
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13226
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, {})
|
|
13201
13227
|
}
|
|
13202
13228
|
) : null;
|
|
13203
13229
|
const suffix = clearButton || countPill || chevron ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -13234,7 +13260,7 @@ var Combobox = _react.forwardRef.call(void 0, function Combobox2(props, ref) {
|
|
|
13234
13260
|
] }),
|
|
13235
13261
|
filled2(option.aside) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__aside", children: option.aside }) : null
|
|
13236
13262
|
] }),
|
|
13237
|
-
!isMulti && isSelected ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13263
|
+
!isMulti && isSelected ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, { "aria-hidden": "true", className: "o-combobox__tick" }) : null
|
|
13238
13264
|
]
|
|
13239
13265
|
},
|
|
13240
13266
|
option.value
|
|
@@ -13255,7 +13281,7 @@ var Combobox = _react.forwardRef.call(void 0, function Combobox2(props, ref) {
|
|
|
13255
13281
|
onMouseMove: () => current !== createIndex && !stale && setActive(createIndex),
|
|
13256
13282
|
onClick: () => void create(),
|
|
13257
13283
|
children: [
|
|
13258
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__thumb", "data-create": "", "aria-hidden": "true", children: creating ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 14 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13284
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__thumb", "data-create": "", "aria-hidden": "true", children: creating ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 14 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, {}) }),
|
|
13259
13285
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__label", children: labels.create(term.trim()) })
|
|
13260
13286
|
]
|
|
13261
13287
|
}
|
|
@@ -13293,7 +13319,7 @@ var Combobox = _react.forwardRef.call(void 0, function Combobox2(props, ref) {
|
|
|
13293
13319
|
id,
|
|
13294
13320
|
className: "o-combobox__input",
|
|
13295
13321
|
size,
|
|
13296
|
-
icon: searchable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13322
|
+
icon: searchable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MagnifyingGlassIcon, {}) : void 0,
|
|
13297
13323
|
suffix,
|
|
13298
13324
|
invalid,
|
|
13299
13325
|
disabled,
|
|
@@ -13381,7 +13407,7 @@ var Combobox = _react.forwardRef.call(void 0, function Combobox2(props, ref) {
|
|
|
13381
13407
|
onMouseMove: () => current !== actionIndex && !stale && setActive(actionIndex),
|
|
13382
13408
|
onClick: runAction,
|
|
13383
13409
|
children: [
|
|
13384
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__thumb", "data-create": "", "aria-hidden": "true", children: _nullishCoalesce(action.icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13410
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__thumb", "data-create": "", "aria-hidden": "true", children: _nullishCoalesce(action.icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, {}))) }),
|
|
13385
13411
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__label", children: action.label })
|
|
13386
13412
|
]
|
|
13387
13413
|
}
|
|
@@ -13645,7 +13671,7 @@ var CopyButton = _react.forwardRef.call(void 0, function CopyButton2({
|
|
|
13645
13671
|
"data-status": done ? status : void 0,
|
|
13646
13672
|
onClick: handleClick,
|
|
13647
13673
|
...rest,
|
|
13648
|
-
children: status === "copied" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13674
|
+
children: status === "copied" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CopyIcon, {})
|
|
13649
13675
|
}
|
|
13650
13676
|
);
|
|
13651
13677
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -13695,7 +13721,7 @@ var CopyTextButton = _react.forwardRef.call(void 0, function CopyTextButton2({
|
|
|
13695
13721
|
size,
|
|
13696
13722
|
disabled,
|
|
13697
13723
|
loading: status === "loading",
|
|
13698
|
-
icon: status === "copied" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13724
|
+
icon: status === "copied" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CopyIcon, {}),
|
|
13699
13725
|
className: cx("o-copy-button", "o-copy-text-button", className),
|
|
13700
13726
|
"data-status": done ? status : void 0,
|
|
13701
13727
|
onClick: handleClick,
|
|
@@ -13720,7 +13746,7 @@ function LabelledCopy({ value, size, label, copiedLabel, failedLabel, disabled,
|
|
|
13720
13746
|
{
|
|
13721
13747
|
variant: "secondary",
|
|
13722
13748
|
size,
|
|
13723
|
-
icon: status === "copied" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13749
|
+
icon: status === "copied" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CopyIcon, {}),
|
|
13724
13750
|
loading: status === "loading",
|
|
13725
13751
|
disabled,
|
|
13726
13752
|
className: "o-copy-field__button",
|
|
@@ -13842,7 +13868,7 @@ var CopyField = _react.forwardRef.call(void 0, function CopyField2({
|
|
|
13842
13868
|
loading: loading3,
|
|
13843
13869
|
onMouseDown: (event) => event.preventDefault(),
|
|
13844
13870
|
onClick: toggleEye,
|
|
13845
|
-
children: shown ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13871
|
+
children: shown ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.EyeSlashIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.EyeIcon, {})
|
|
13846
13872
|
}
|
|
13847
13873
|
) : null;
|
|
13848
13874
|
const suffix = action === "icon" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -14040,7 +14066,7 @@ var CodeBlock = _react.forwardRef.call(void 0, function CodeBlock2(props, ref) {
|
|
|
14040
14066
|
onCopyFailed
|
|
14041
14067
|
}
|
|
14042
14068
|
) : null,
|
|
14043
|
-
download != null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant: "secondary", size: "sm", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14069
|
+
download != null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant: "secondary", size: "sm", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DownloadSimpleIcon, {}), onClick: saveCodes, children: downloadLabel }) : null,
|
|
14044
14070
|
actions
|
|
14045
14071
|
] }) : copyable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14046
14072
|
CopyButton,
|
|
@@ -14614,7 +14640,7 @@ function FigureFooter({
|
|
|
14614
14640
|
"aria-controls": controls,
|
|
14615
14641
|
"data-open": dataFlag(open),
|
|
14616
14642
|
onClick: onToggle,
|
|
14617
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14643
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretDownIcon, {})
|
|
14618
14644
|
}
|
|
14619
14645
|
) : null
|
|
14620
14646
|
] });
|
|
@@ -15083,7 +15109,7 @@ function DescriptionRow({ item, labels, idBase }) {
|
|
|
15083
15109
|
"data-open": dataFlag(open),
|
|
15084
15110
|
onClick: toggle,
|
|
15085
15111
|
children: [
|
|
15086
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15112
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretRightIcon, { className: "o-description__chevron", weight: "bold" }),
|
|
15087
15113
|
details.label
|
|
15088
15114
|
]
|
|
15089
15115
|
}
|
|
@@ -15754,7 +15780,7 @@ var ValueChange = _react.forwardRef.call(void 0, function ValueChange2({ before,
|
|
|
15754
15780
|
const labels = _react.useMemo.call(void 0, () => withDefaultLabels(valueChangeLabels, labelsProp), [labelsProp]);
|
|
15755
15781
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { ref, className: cx("o-value-change", className), "data-layout": layout, ...rest, children: [
|
|
15756
15782
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ValueSide, { kind: "before", value: before, labels }),
|
|
15757
|
-
layout === "inline" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-value-change__arrow", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15783
|
+
layout === "inline" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-value-change__arrow", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowRightIcon, { size: 12 }) }) : null,
|
|
15758
15784
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ValueSide, { kind: "after", value: after, labels })
|
|
15759
15785
|
] });
|
|
15760
15786
|
});
|
|
@@ -16092,22 +16118,22 @@ var STATUS_LABELS2 = {
|
|
|
16092
16118
|
optional: "Optional"
|
|
16093
16119
|
};
|
|
16094
16120
|
var STEP_GLYPHS = {
|
|
16095
|
-
done: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16096
|
-
todo: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16097
|
-
warn: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16098
|
-
fail: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16099
|
-
neutral: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16100
|
-
skipped: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16101
|
-
optional: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16121
|
+
done: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckCircleIcon, { "aria-hidden": "true" }),
|
|
16122
|
+
todo: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CircleIcon, { "aria-hidden": "true" }),
|
|
16123
|
+
warn: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningIcon, { "aria-hidden": "true" }),
|
|
16124
|
+
fail: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XCircleIcon, { "aria-hidden": "true" }),
|
|
16125
|
+
neutral: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MinusCircleIcon, { "aria-hidden": "true" }),
|
|
16126
|
+
skipped: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ProhibitIcon, { "aria-hidden": "true" }),
|
|
16127
|
+
optional: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CircleDashedIcon, { "aria-hidden": "true" })
|
|
16102
16128
|
};
|
|
16103
16129
|
var SIGNAL_GLYPHS = {
|
|
16104
|
-
done: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16105
|
-
todo: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16106
|
-
warn: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16107
|
-
fail: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16108
|
-
neutral: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16109
|
-
skipped: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16110
|
-
optional: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16130
|
+
done: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, { "aria-hidden": "true" }),
|
|
16131
|
+
todo: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CircleIcon, { "aria-hidden": "true" }),
|
|
16132
|
+
warn: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningIcon, { "aria-hidden": "true" }),
|
|
16133
|
+
fail: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, { "aria-hidden": "true" }),
|
|
16134
|
+
neutral: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MinusIcon, { "aria-hidden": "true" }),
|
|
16135
|
+
skipped: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ProhibitIcon, { "aria-hidden": "true" }),
|
|
16136
|
+
optional: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CircleDashedIcon, { "aria-hidden": "true" })
|
|
16111
16137
|
};
|
|
16112
16138
|
var GLYPH_PX2 = {
|
|
16113
16139
|
steps: { md: 20, sm: 16 },
|
|
@@ -16330,7 +16356,7 @@ var ChecklistCard = _react.forwardRef.call(void 0, function ChecklistCard2({
|
|
|
16330
16356
|
onHide ? compact ? (
|
|
16331
16357
|
// In words, as the vendor dashboard's compact card has it; the full name stays for a screen reader.
|
|
16332
16358
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant: "ghost", size: "sm", onClick: onHide, "aria-label": labels.hide, children: labels.hideShort })
|
|
16333
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { label: labels.hide, variant: "ghost", size: "sm", onClick: onHide, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16359
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { label: labels.hide, variant: "ghost", size: "sm", onClick: onHide, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, {}) }) : null
|
|
16334
16360
|
] }) : null
|
|
16335
16361
|
] }),
|
|
16336
16362
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-checklist-card__body", children: loading3 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Placeholders, { rows, minColumnWidth, size }) : allDone && hasContent(complete) ? complete : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16364,7 +16390,7 @@ function withEnd(item, labels) {
|
|
|
16364
16390
|
days !== void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-checklist-card__days", "data-urgent": dataFlag(days <= URGENT_DAYS), children: labels.daysLeft(days) }) : null,
|
|
16365
16391
|
optional ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { size: "sm", variant: "outline", children: labels.optional }) : null,
|
|
16366
16392
|
step.action,
|
|
16367
|
-
chevron ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16393
|
+
chevron ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretRightIcon, { className: "o-checklist-card__chevron" }) : null
|
|
16368
16394
|
] })
|
|
16369
16395
|
};
|
|
16370
16396
|
}
|
|
@@ -24805,7 +24831,7 @@ function CountryMenu({ pool, preferredCodes, country, labels, onPick, numberRef,
|
|
|
24805
24831
|
"+",
|
|
24806
24832
|
entry.dial
|
|
24807
24833
|
] }),
|
|
24808
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-phone-input__option-tick", "aria-hidden": "true", children: selected ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24834
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-phone-input__option-tick", "aria-hidden": "true", children: selected ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, {}) : null })
|
|
24809
24835
|
]
|
|
24810
24836
|
},
|
|
24811
24837
|
entry.code
|
|
@@ -24846,7 +24872,7 @@ function CountryMenu({ pool, preferredCodes, country, labels, onPick, numberRef,
|
|
|
24846
24872
|
Input,
|
|
24847
24873
|
{
|
|
24848
24874
|
size: "sm",
|
|
24849
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24875
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MagnifyingGlassIcon, {}),
|
|
24850
24876
|
role: "combobox",
|
|
24851
24877
|
"aria-label": labels.search,
|
|
24852
24878
|
"aria-expanded": true,
|
|
@@ -24969,28 +24995,28 @@ var linkPickerLabels = {
|
|
|
24969
24995
|
results: (count) => count === 1 ? "1 result" : `${count} results`
|
|
24970
24996
|
};
|
|
24971
24997
|
var storefrontLinkTypes = [
|
|
24972
|
-
{ id: "home", label: "Home page", group: "Store", href: "/", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24973
|
-
{ id: "search", label: "Search", group: "Store", href: "/search", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24998
|
+
{ id: "home", label: "Home page", group: "Store", href: "/", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.HouseIcon, {}) },
|
|
24999
|
+
{ id: "search", label: "Search", group: "Store", href: "/search", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MagnifyingGlassIcon, {}) },
|
|
24974
25000
|
{
|
|
24975
25001
|
id: "categories",
|
|
24976
25002
|
label: "Categories",
|
|
24977
25003
|
group: "Store",
|
|
24978
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25004
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.SquaresFourIcon, {}),
|
|
24979
25005
|
shortcuts: [{ id: "all-categories", label: "All categories", href: "/categories" }]
|
|
24980
25006
|
},
|
|
24981
25007
|
{
|
|
24982
25008
|
id: "products",
|
|
24983
25009
|
label: "Products",
|
|
24984
25010
|
group: "Store",
|
|
24985
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25011
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PackageIcon, {}),
|
|
24986
25012
|
shortcuts: [{ id: "all-products", label: "All products", href: "/products" }]
|
|
24987
25013
|
},
|
|
24988
|
-
{ id: "brands", label: "Brands", group: "Store", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24989
|
-
{ id: "pages", label: "Pages", group: "Store", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24990
|
-
{ id: "blogs", label: "Blogs", group: "Store", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24991
|
-
{ id: "blog-posts", label: "Blog posts", group: "Store", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24992
|
-
{ id: "media", label: "Media files", group: "Store", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24993
|
-
{ id: "orders", label: "My orders", group: "Account", href: "/account/orders", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25014
|
+
{ id: "brands", label: "Brands", group: "Store", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TrademarkIcon, {}) },
|
|
25015
|
+
{ id: "pages", label: "Pages", group: "Store", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.FileTextIcon, {}) },
|
|
25016
|
+
{ id: "blogs", label: "Blogs", group: "Store", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.NotebookIcon, {}) },
|
|
25017
|
+
{ id: "blog-posts", label: "Blog posts", group: "Store", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArticleIcon, {}) },
|
|
25018
|
+
{ id: "media", label: "Media files", group: "Store", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ImageIcon, {}) },
|
|
25019
|
+
{ id: "orders", label: "My orders", group: "Account", href: "/account/orders", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ShoppingBagIcon, {}) }
|
|
24994
25020
|
];
|
|
24995
25021
|
function linkPickerHandlesEscape(event) {
|
|
24996
25022
|
return event.target instanceof Element && event.target.closest("[data-link-picker-escape]") !== null;
|
|
@@ -25136,7 +25162,7 @@ var LinkPicker = _react.forwardRef.call(void 0, function LinkPicker2({
|
|
|
25136
25162
|
return {
|
|
25137
25163
|
key: "custom",
|
|
25138
25164
|
kind: "custom",
|
|
25139
|
-
icon: kind === "email" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25165
|
+
icon: kind === "email" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.EnvelopeSimpleIcon, {}) : kind === "phone" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PhoneIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.LinkSimpleIcon, {}),
|
|
25140
25166
|
label: query.trim(),
|
|
25141
25167
|
description: kind === "email" ? labels.emailLink : kind === "phone" ? labels.phoneLink : labels.customLink,
|
|
25142
25168
|
onPick: () => pickCustom()
|
|
@@ -25147,7 +25173,7 @@ var LinkPicker = _react.forwardRef.call(void 0, function LinkPicker2({
|
|
|
25147
25173
|
const backRow = {
|
|
25148
25174
|
key: "back",
|
|
25149
25175
|
kind: "back",
|
|
25150
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25176
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowLeftIcon, {}),
|
|
25151
25177
|
label: labels.back,
|
|
25152
25178
|
end: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-link-picker__crumb", children: type.label }),
|
|
25153
25179
|
onPick: back
|
|
@@ -25171,7 +25197,7 @@ var LinkPicker = _react.forwardRef.call(void 0, function LinkPicker2({
|
|
|
25171
25197
|
status = message;
|
|
25172
25198
|
} else if (data.status === "error") {
|
|
25173
25199
|
message = labels.loadError(typeName(type));
|
|
25174
|
-
rows2.push({ key: "retry", kind: "retry", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25200
|
+
rows2.push({ key: "retry", kind: "retry", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowClockwiseIcon, {}), label: labels.retry, onPick: () => loaded.retry(type.id, term) });
|
|
25175
25201
|
status = labels.loadError(typeName(type));
|
|
25176
25202
|
} else if (items.length === 0 && shortcuts.length === 0) {
|
|
25177
25203
|
message = term ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -25242,7 +25268,7 @@ var LinkPicker = _react.forwardRef.call(void 0, function LinkPicker2({
|
|
|
25242
25268
|
icon: t.icon,
|
|
25243
25269
|
label: t.label,
|
|
25244
25270
|
description: t.href,
|
|
25245
|
-
end: t.href === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25271
|
+
end: t.href === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretRightIcon, { className: "o-link-picker__chevron", "aria-hidden": "true" }) : null,
|
|
25246
25272
|
onPick: () => t.href === void 0 ? openType(t) : pick({ href: t.href, label: t.label, type: t.id })
|
|
25247
25273
|
}))
|
|
25248
25274
|
});
|
|
@@ -25317,7 +25343,7 @@ var LinkPicker = _react.forwardRef.call(void 0, function LinkPicker2({
|
|
|
25317
25343
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: cx("o-link-picker", className), ...rest, children: [
|
|
25318
25344
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-link-picker__box", children: [
|
|
25319
25345
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-link-picker__search", children: [
|
|
25320
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25346
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MagnifyingGlassIcon, { className: "o-link-picker__search-icon", "aria-hidden": "true" }),
|
|
25321
25347
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25322
25348
|
"input",
|
|
25323
25349
|
{
|
|
@@ -25408,7 +25434,7 @@ var LinkPicker = _react.forwardRef.call(void 0, function LinkPicker2({
|
|
|
25408
25434
|
] }),
|
|
25409
25435
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "status", className: "o-sr-only", children: status }),
|
|
25410
25436
|
value ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-link-picker__current", role: "group", "aria-label": labels.current, children: [
|
|
25411
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-link-picker__current-icon", "aria-hidden": "true", children: value.type === "email" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25437
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-link-picker__current-icon", "aria-hidden": "true", children: value.type === "email" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.EnvelopeSimpleIcon, {}) : value.type === "phone" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PhoneIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.LinkSimpleIcon, {}) }),
|
|
25412
25438
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-link-picker__text", children: [
|
|
25413
25439
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-link-picker__label", children: value.label }),
|
|
25414
25440
|
value.label !== value.href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-link-picker__description", children: value.href }) : null
|
|
@@ -25423,7 +25449,7 @@ var LinkPicker = _react.forwardRef.call(void 0, function LinkPicker2({
|
|
|
25423
25449
|
onValueChange(null);
|
|
25424
25450
|
_optionalChain([inputRef, 'access', _866 => _866.current, 'optionalAccess', _867 => _867.focus, 'call', _868 => _868()]);
|
|
25425
25451
|
},
|
|
25426
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25452
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, {})
|
|
25427
25453
|
}
|
|
25428
25454
|
)
|
|
25429
25455
|
] }) : null,
|
|
@@ -25768,7 +25794,7 @@ var ToolbarMenu = _react.forwardRef.call(void 0, function ToolbarMenu2({
|
|
|
25768
25794
|
...triggerProps,
|
|
25769
25795
|
children: [
|
|
25770
25796
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-toolbar__select-text", children: text }),
|
|
25771
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25797
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretDownIcon, { className: "o-toolbar__select-caret" })
|
|
25772
25798
|
]
|
|
25773
25799
|
}
|
|
25774
25800
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { ref, variant: "ghost", size: toolbar.size, label, disabled, className, ...triggerProps, children: icon });
|
|
@@ -26138,17 +26164,17 @@ function RichTextEditorImpl({
|
|
|
26138
26164
|
onSelect: () => runCommand(build)
|
|
26139
26165
|
});
|
|
26140
26166
|
const history = [
|
|
26141
|
-
commandTool("undo", labels.undo, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26142
|
-
commandTool("redo", labels.redo, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26167
|
+
commandTool("undo", labels.undo, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowCounterClockwiseIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _914 => _914.undo, 'optionalCall', _915 => _915()]), has("undo")),
|
|
26168
|
+
commandTool("redo", labels.redo, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowClockwiseIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _916 => _916.redo, 'optionalCall', _917 => _917()]), has("redo"))
|
|
26143
26169
|
].filter((tool) => tool.present);
|
|
26144
26170
|
const marks = [
|
|
26145
|
-
commandTool("bold", labels.bold, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26146
|
-
commandTool("italic", labels.italic, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26147
|
-
commandTool("underline", labels.underline, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26148
|
-
commandTool("strike", labels.strike, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26149
|
-
commandTool("code", labels.code, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26150
|
-
commandTool("subscript", labels.subscript, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26151
|
-
commandTool("superscript", labels.superscript, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26171
|
+
commandTool("bold", labels.bold, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TextBIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _918 => _918.toggleBold, 'optionalCall', _919 => _919()]), has("toggleBold"), active2("bold")),
|
|
26172
|
+
commandTool("italic", labels.italic, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TextItalicIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _920 => _920.toggleItalic, 'optionalCall', _921 => _921()]), has("toggleItalic"), active2("italic")),
|
|
26173
|
+
commandTool("underline", labels.underline, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TextUnderlineIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _922 => _922.toggleUnderline, 'optionalCall', _923 => _923()]), has("toggleUnderline"), active2("underline")),
|
|
26174
|
+
commandTool("strike", labels.strike, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TextStrikethroughIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _924 => _924.toggleStrike, 'optionalCall', _925 => _925()]), has("toggleStrike"), active2("strike")),
|
|
26175
|
+
commandTool("code", labels.code, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CodeSimpleIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _926 => _926.toggleCode, 'optionalCall', _927 => _927()]), has("toggleCode"), active2("code")),
|
|
26176
|
+
commandTool("subscript", labels.subscript, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TextSubscriptIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _928 => _928.toggleSubscript, 'optionalCall', _929 => _929()]), has("toggleSubscript"), active2("subscript")),
|
|
26177
|
+
commandTool("superscript", labels.superscript, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TextSuperscriptIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _930 => _930.toggleSuperscript, 'optionalCall', _931 => _931()]), has("toggleSuperscript"), active2("superscript"))
|
|
26152
26178
|
].filter((tool) => tool.present);
|
|
26153
26179
|
const colourKinds = [...has("setColor") ? ["text"] : [], ...has("setHighlight") ? ["background"] : []];
|
|
26154
26180
|
const colourAt = (name) => {
|
|
@@ -26177,7 +26203,7 @@ function RichTextEditorImpl({
|
|
|
26177
26203
|
{
|
|
26178
26204
|
kind,
|
|
26179
26205
|
label: kind === "text" ? labels.textColour : labels.highlight,
|
|
26180
|
-
icon: kind === "text" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26206
|
+
icon: kind === "text" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TextAUnderlineIcon, { size: 14 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.HighlighterIcon, { size: 14 }),
|
|
26181
26207
|
colour: colours[kind],
|
|
26182
26208
|
disabled: toolsOff || !editor,
|
|
26183
26209
|
kinds: colourKinds,
|
|
@@ -26199,22 +26225,22 @@ function RichTextEditorImpl({
|
|
|
26199
26225
|
};
|
|
26200
26226
|
const imageWidth = editor && imageActive ? editor.getAttributes("image").width : void 0;
|
|
26201
26227
|
const lists = [
|
|
26202
|
-
commandTool("bullet-list", labels.bulletList, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26203
|
-
commandTool("ordered-list", labels.orderedList, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26204
|
-
commandTool("quote", labels.quote, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26228
|
+
commandTool("bullet-list", labels.bulletList, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ListBulletsIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _951 => _951.toggleBulletList, 'optionalCall', _952 => _952()]), has("toggleBulletList"), active2("bulletList")),
|
|
26229
|
+
commandTool("ordered-list", labels.orderedList, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ListNumbersIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _953 => _953.toggleOrderedList, 'optionalCall', _954 => _954()]), has("toggleOrderedList"), active2("orderedList")),
|
|
26230
|
+
commandTool("quote", labels.quote, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.QuotesIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _955 => _955.toggleBlockquote, 'optionalCall', _956 => _956()]), has("toggleBlockquote"), active2("blockquote"))
|
|
26205
26231
|
].filter((tool) => tool.present);
|
|
26206
26232
|
const alignPresent = has("setTextAlign");
|
|
26207
26233
|
const alignments = [
|
|
26208
|
-
commandTool("align-left", labels.alignLeft, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26209
|
-
commandTool("align-center", labels.alignCenter, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26210
|
-
commandTool("align-right", labels.alignRight, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26211
|
-
commandTool("align-justify", labels.alignJustify, /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26234
|
+
commandTool("align-left", labels.alignLeft, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TextAlignLeftIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _957 => _957.setTextAlign, 'optionalCall', _958 => _958("left")]), alignPresent, activeAttrs({ textAlign: "left" })),
|
|
26235
|
+
commandTool("align-center", labels.alignCenter, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TextAlignCenterIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _959 => _959.setTextAlign, 'optionalCall', _960 => _960("center")]), alignPresent, activeAttrs({ textAlign: "center" })),
|
|
26236
|
+
commandTool("align-right", labels.alignRight, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TextAlignRightIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _961 => _961.setTextAlign, 'optionalCall', _962 => _962("right")]), alignPresent, activeAttrs({ textAlign: "right" })),
|
|
26237
|
+
commandTool("align-justify", labels.alignJustify, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TextAlignJustifyIcon, { size: 16 }), (chain) => _optionalChain([chain, 'access', _963 => _963.setTextAlign, 'optionalCall', _964 => _964("justify")]), alignPresent, activeAttrs({ textAlign: "justify" }))
|
|
26212
26238
|
].filter((tool) => tool.present);
|
|
26213
26239
|
const linkTool = {
|
|
26214
26240
|
id: "link",
|
|
26215
26241
|
present: has("setLink"),
|
|
26216
26242
|
label: labels.link,
|
|
26217
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26243
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.LinkSimpleIcon, { size: 16 }),
|
|
26218
26244
|
pressed: active2("link"),
|
|
26219
26245
|
// Not a dry run of setLink: TipTap's link extension refuses an empty address, which would hold the tool off for good.
|
|
26220
26246
|
disabled: toolsOff || !editor,
|
|
@@ -26241,7 +26267,7 @@ function RichTextEditorImpl({
|
|
|
26241
26267
|
id: "image",
|
|
26242
26268
|
present: true,
|
|
26243
26269
|
label: labels.image,
|
|
26244
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26270
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ImageIcon, { size: 16 }),
|
|
26245
26271
|
disabled: toolsOff || !editor,
|
|
26246
26272
|
onSelect: () => onImageRequest()
|
|
26247
26273
|
} : null;
|
|
@@ -26351,7 +26377,7 @@ function RichTextEditorImpl({
|
|
|
26351
26377
|
ToolbarButton,
|
|
26352
26378
|
{
|
|
26353
26379
|
label: labels.imageSmaller,
|
|
26354
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26380
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MinusIcon, { size: 14 }),
|
|
26355
26381
|
disabled,
|
|
26356
26382
|
onClick: () => resizeImage((m) => m.shown - m.text * IMAGE_STEP / 100)
|
|
26357
26383
|
}
|
|
@@ -26374,7 +26400,7 @@ function RichTextEditorImpl({
|
|
|
26374
26400
|
ToolbarButton,
|
|
26375
26401
|
{
|
|
26376
26402
|
label: labels.imageLarger,
|
|
26377
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26403
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, { size: 14 }),
|
|
26378
26404
|
disabled,
|
|
26379
26405
|
onClick: () => resizeImage((m) => m.shown + m.text * IMAGE_STEP / 100)
|
|
26380
26406
|
}
|
|
@@ -26387,7 +26413,7 @@ function RichTextEditorImpl({
|
|
|
26387
26413
|
{
|
|
26388
26414
|
"data-rich-text-tool": "",
|
|
26389
26415
|
label: labels.htmlSource,
|
|
26390
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26416
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CodeIcon, { size: 16 }),
|
|
26391
26417
|
pressed: sourceShown,
|
|
26392
26418
|
disabled,
|
|
26393
26419
|
onClick: toggleSource
|
|
@@ -27221,10 +27247,10 @@ function ToastControls({ id, tone, action, closable }) {
|
|
|
27221
27247
|
] });
|
|
27222
27248
|
}
|
|
27223
27249
|
var ICONS2 = {
|
|
27224
|
-
success: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27225
|
-
info: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27226
|
-
warning: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27227
|
-
error: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27250
|
+
success: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckCircleIcon, { weight: "fill", "aria-hidden": "true" }),
|
|
27251
|
+
info: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.InfoIcon, { weight: "fill", "aria-hidden": "true" }),
|
|
27252
|
+
warning: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningIcon, { weight: "fill", "aria-hidden": "true" }),
|
|
27253
|
+
error: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningCircleIcon, { weight: "fill", "aria-hidden": "true" }),
|
|
27228
27254
|
loading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 16 }),
|
|
27229
27255
|
close: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CloseGlyph, {})
|
|
27230
27256
|
};
|
|
@@ -27395,7 +27421,7 @@ function JobActions({ job, labels, onDismiss, onBeforeDismiss, renderLink, dismi
|
|
|
27395
27421
|
canView ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { size, variant, onClick: job.onOpen, children: labels.viewProgress }) : null,
|
|
27396
27422
|
canCancel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { size, variant: "ghost", onClick: job.onCancel, children: labels.cancel }) : null,
|
|
27397
27423
|
canRetry ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { size, variant, onClick: job.onRetry, children: labels.retry }) : null,
|
|
27398
|
-
canDownload ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { size, variant, icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27424
|
+
canDownload ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { size, variant, icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DownloadSimpleIcon, {}), loading: downloading, onClick: download, children: job.downloaded ? labels.downloadAgain : labels.download }) : null,
|
|
27399
27425
|
canOpenLink ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { asChild: true, size, variant, children: renderLink ? renderLink({ href: job.href, className: "o-job-indicator__open", children: labels.open }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { className: "o-job-indicator__open", href: job.href, children: labels.open }) }) : null,
|
|
27400
27426
|
canOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { size, variant, onClick: job.onOpen, children: labels.open }) : null,
|
|
27401
27427
|
canDismiss ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -27428,9 +27454,9 @@ function JobSummary({ counts, labels }) {
|
|
|
27428
27454
|
}
|
|
27429
27455
|
function JobGlyph({ status }) {
|
|
27430
27456
|
if (status === "running" || status === "queued") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 16 });
|
|
27431
|
-
if (status === "done") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27432
|
-
if (status === "failed") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27433
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27457
|
+
if (status === "done") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckCircleIcon, { weight: "fill" });
|
|
27458
|
+
if (status === "failed") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningCircleIcon, { weight: "fill" });
|
|
27459
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MinusCircleIcon, { weight: "fill" });
|
|
27434
27460
|
}
|
|
27435
27461
|
function JobBody({
|
|
27436
27462
|
job,
|
|
@@ -27533,7 +27559,7 @@ function JobCard({ jobs, labels, onDismiss, onBeforeDismiss, renderLink, headlin
|
|
|
27533
27559
|
labels.percent(overallPercent)
|
|
27534
27560
|
] }) : null
|
|
27535
27561
|
] }),
|
|
27536
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27562
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretDownIcon, { className: "o-job-card__caret", "aria-hidden": "true", weight: "bold" })
|
|
27537
27563
|
]
|
|
27538
27564
|
}
|
|
27539
27565
|
),
|
|
@@ -27670,7 +27696,7 @@ var JobIndicator = _react.forwardRef.call(void 0, function JobIndicator2({
|
|
|
27670
27696
|
restoreRef.current = nextFocusOutside(rootRef.current, panel);
|
|
27671
27697
|
}
|
|
27672
27698
|
};
|
|
27673
|
-
const glyph = active2.length > 0 ? indeterminate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 16 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ProgressRing, { value: _nullishCoalesce(overall, () => ( 0)), max: 1, size: 18, stroke: 2.5 }) : allDone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27699
|
+
const glyph = active2.length > 0 ? indeterminate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 16 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ProgressRing, { value: _nullishCoalesce(overall, () => ( 0)), max: 1, size: 18, stroke: 2.5 }) : allDone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckCircleIcon, { size: 16, weight: "fill" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningCircleIcon, { size: 16, weight: "fill" });
|
|
27674
27700
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
27675
27701
|
"div",
|
|
27676
27702
|
{
|
|
@@ -28279,7 +28305,7 @@ var FileChip = _react.forwardRef.call(void 0, function FileChip2({
|
|
|
28279
28305
|
const row = variant === "row";
|
|
28280
28306
|
const pill = variant === "pill";
|
|
28281
28307
|
const glyph = row ? 16 : 20;
|
|
28282
|
-
const statusIcon = status === "uploading" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: glyph - 2 }) : status === "done" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28308
|
+
const statusIcon = status === "uploading" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: glyph - 2 }) : status === "done" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckCircleIcon, { size: glyph, weight: "fill" }) : status === "error" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningCircleIcon, { size: glyph, weight: "fill" }) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.FileTextIcon, { size: glyph })));
|
|
28283
28309
|
const refusal = onReject ? void 0 : _optionalChain([drop, 'access', _1067 => _1067.rejections, 'access', _1068 => _1068[0], 'optionalAccess', _1069 => _1069.message]);
|
|
28284
28310
|
const secondLine = status === "uploading" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28285
28311
|
"span",
|
|
@@ -28319,7 +28345,7 @@ var FileChip = _react.forwardRef.call(void 0, function FileChip2({
|
|
|
28319
28345
|
...rest,
|
|
28320
28346
|
children: [
|
|
28321
28347
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-file-chip__main", children: [
|
|
28322
|
-
preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { className: "o-file-chip__preview", src: preview, alt: "", draggable: false }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-file-chip__icon", "aria-hidden": "true", children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28348
|
+
preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { className: "o-file-chip__preview", src: preview, alt: "", draggable: false }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-file-chip__icon", "aria-hidden": "true", children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.FileTextIcon, { size: 14 }))) }),
|
|
28323
28349
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-file-chip__name", title: name, children: name }),
|
|
28324
28350
|
uploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-file-chip__busy", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 12 }) }) : null,
|
|
28325
28351
|
status === "error" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-file-chip__failed", role: "alert", children: [
|
|
@@ -28340,7 +28366,7 @@ var FileChip = _react.forwardRef.call(void 0, function FileChip2({
|
|
|
28340
28366
|
onClick: () => {
|
|
28341
28367
|
if (!disabled) onRemove();
|
|
28342
28368
|
},
|
|
28343
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28369
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, {})
|
|
28344
28370
|
}
|
|
28345
28371
|
) }) : null,
|
|
28346
28372
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true", children: spoken })
|
|
@@ -28380,7 +28406,7 @@ var FileChip = _react.forwardRef.call(void 0, function FileChip2({
|
|
|
28380
28406
|
{
|
|
28381
28407
|
variant: "ghost",
|
|
28382
28408
|
size: "sm",
|
|
28383
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28409
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowClockwiseIcon, {}),
|
|
28384
28410
|
"aria-disabled": disabled || void 0,
|
|
28385
28411
|
onClick: () => {
|
|
28386
28412
|
if (!disabled) onRetry();
|
|
@@ -28413,7 +28439,7 @@ var FileChip = _react.forwardRef.call(void 0, function FileChip2({
|
|
|
28413
28439
|
onClick: () => {
|
|
28414
28440
|
if (!disabled) onRemove();
|
|
28415
28441
|
},
|
|
28416
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28442
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, {})
|
|
28417
28443
|
}
|
|
28418
28444
|
) : null
|
|
28419
28445
|
] }) : null,
|
|
@@ -28529,7 +28555,7 @@ var AvatarUpload = _react.forwardRef.call(void 0, function AvatarUpload2({
|
|
|
28529
28555
|
disabled,
|
|
28530
28556
|
"aria-disabled": busy || void 0,
|
|
28531
28557
|
onClick: drop.open,
|
|
28532
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28558
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CameraIcon, {})
|
|
28533
28559
|
}
|
|
28534
28560
|
)
|
|
28535
28561
|
] }),
|
|
@@ -28544,7 +28570,7 @@ var AvatarUpload = _react.forwardRef.call(void 0, function AvatarUpload2({
|
|
|
28544
28570
|
ref: uploadRef,
|
|
28545
28571
|
variant: "secondary",
|
|
28546
28572
|
size: "sm",
|
|
28547
|
-
icon: uploadingNow ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28573
|
+
icon: uploadingNow ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.UploadSimpleIcon, {}) : void 0,
|
|
28548
28574
|
loading: uploadingNow,
|
|
28549
28575
|
disabled,
|
|
28550
28576
|
"aria-disabled": busy || void 0,
|
|
@@ -28557,7 +28583,7 @@ var AvatarUpload = _react.forwardRef.call(void 0, function AvatarUpload2({
|
|
|
28557
28583
|
{
|
|
28558
28584
|
variant: "ghost",
|
|
28559
28585
|
size: "sm",
|
|
28560
|
-
icon: removing ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28586
|
+
icon: removing ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TrashIcon, {}) : void 0,
|
|
28561
28587
|
loading: removing,
|
|
28562
28588
|
disabled,
|
|
28563
28589
|
onClick: () => track(onRemove, setRemoving),
|
|
@@ -30587,7 +30613,7 @@ var LinkRow = _react.forwardRef.call(void 0, function LinkRow2({
|
|
|
30587
30613
|
const size = _nullishCoalesce(_nullishCoalesce(sizeProp, () => ( _optionalChain([list, 'optionalAccess', _1208 => _1208.size]))), () => ( "md"));
|
|
30588
30614
|
const isButton = !asChild && href === void 0;
|
|
30589
30615
|
const tile = hasContent(icon) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconTile, { className: "o-link-row__tile", size: size === "sm" || variant === "card" ? "md" : "lg", tone: lead ? "accent" : "neutral", children: icon }) : null;
|
|
30590
|
-
const end = trailing === null || trailing === false ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-link-row__trailing", "aria-hidden": "true", children: trailing === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30616
|
+
const end = trailing === null || trailing === false ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-link-row__trailing", "aria-hidden": "true", children: trailing === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowRightIcon, {}) : trailing });
|
|
30591
30617
|
const inCard = variant === "card";
|
|
30592
30618
|
const words2 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-link-row__text", children: [
|
|
30593
30619
|
inCard ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-link-row__head", children: [
|
|
@@ -32462,9 +32488,9 @@ var SIDE_BY_SIDE_DEVICES = ["desktop", "phone"];
|
|
|
32462
32488
|
var SCREEN_RATIO = { tablet: 768 / 1024, phone: 390 / 844 };
|
|
32463
32489
|
var isHeight = (value) => typeof value === "number" && Number.isFinite(value) && value > 0;
|
|
32464
32490
|
var DEVICE_ICONS = {
|
|
32465
|
-
desktop: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32466
|
-
tablet: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32467
|
-
phone: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32491
|
+
desktop: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DesktopIcon, {}),
|
|
32492
|
+
tablet: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DeviceTabletIcon, {}),
|
|
32493
|
+
phone: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DeviceMobileIcon, {})
|
|
32468
32494
|
};
|
|
32469
32495
|
var MEDIA = "img, svg, video, canvas, picture, iframe, object, embed";
|
|
32470
32496
|
var NOT_DRAWN = /* @__PURE__ */ new Set(["style", "script", "template", "noscript", "link", "meta"]);
|
|
@@ -32537,8 +32563,8 @@ function ToolbarActions({
|
|
|
32537
32563
|
end
|
|
32538
32564
|
}) {
|
|
32539
32565
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-preview-frame__actions", children: [
|
|
32540
|
-
showReload ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { variant: "ghost", size: "sm", label: labels.reload, onClick: onReload, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32541
|
-
src ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { asChild: true, variant: "ghost", size: "sm", label: labels.openInNewTab, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: src, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32566
|
+
showReload ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { variant: "ghost", size: "sm", label: labels.reload, onClick: onReload, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowClockwiseIcon, {}) }) : null,
|
|
32567
|
+
src ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { asChild: true, variant: "ghost", size: "sm", label: labels.openInNewTab, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: src, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowSquareOutIcon, {}) }) }) : null,
|
|
32542
32568
|
end
|
|
32543
32569
|
] });
|
|
32544
32570
|
}
|
|
@@ -32808,7 +32834,7 @@ var SingleFrame = _react.forwardRef.call(void 0, function SingleFrame2({
|
|
|
32808
32834
|
const showSwitch = devices.length > 1;
|
|
32809
32835
|
const showToolbar = toolbar && !thumbnail && (Boolean(toolbarStart) || Boolean(toolbarEnd) || showSwitch || showReload || Boolean(src));
|
|
32810
32836
|
const tile = reason ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-preview-frame__fallback", "data-reason": reason, children: _nullishCoalesce(fallback, () => ( /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
32811
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-preview-frame__fallback-icon", children: reason === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32837
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-preview-frame__fallback-icon", children: reason === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ImageBrokenIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.LayoutIcon, {}) }),
|
|
32812
32838
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-preview-frame__fallback-text", children: failedStill ? error : reason === "failed" ? labels.unavailable : labels.empty })
|
|
32813
32839
|
] }))) }) : null;
|
|
32814
32840
|
const sandboxed = srcDoc !== void 0 ? typeof sandbox === "string" ? sandbox : SRC_DOC_SANDBOX : sandbox === false ? void 0 : _nullishCoalesce(sandbox, () => ( SRC_SANDBOX));
|
|
@@ -33306,7 +33332,7 @@ var Stepper = _react.forwardRef.call(void 0, function Stepper2({
|
|
|
33306
33332
|
const hiddenWord = problem ? labels.error : position === "done" ? labels.done : void 0;
|
|
33307
33333
|
const labelId = `${baseId}-label-${index}`;
|
|
33308
33334
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
33309
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-stepper__marker", "aria-hidden": "true", children: problem ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33335
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-stepper__marker", "aria-hidden": "true", children: problem ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningIcon, {}) : position === "done" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, {}) : index + 1 }),
|
|
33310
33336
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-stepper__body", children: [
|
|
33311
33337
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-stepper__label", id: labelId, children: [
|
|
33312
33338
|
step.label,
|
|
@@ -33521,7 +33547,7 @@ function RepeaterInner({
|
|
|
33521
33547
|
ref: withRef && index === 0 ? addRef : void 0,
|
|
33522
33548
|
className: "o-repeater__add",
|
|
33523
33549
|
variant: _nullishCoalesce(action.variant, () => ( (index === 0 ? "secondary" : "ghost"))),
|
|
33524
|
-
icon: _nullishCoalesce(action.icon, () => ( (index === 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33550
|
+
icon: _nullishCoalesce(action.icon, () => ( (index === 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, {}) : void 0))),
|
|
33525
33551
|
"aria-disabled": addDisabled ? true : void 0,
|
|
33526
33552
|
"aria-describedby": describedBy,
|
|
33527
33553
|
onClick: () => add(action.onSelect),
|
|
@@ -33537,7 +33563,7 @@ function RepeaterInner({
|
|
|
33537
33563
|
ref: withRef ? addRef : void 0,
|
|
33538
33564
|
className: "o-repeater__add",
|
|
33539
33565
|
variant: "secondary",
|
|
33540
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33566
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, {}),
|
|
33541
33567
|
"aria-disabled": addDisabled ? true : void 0,
|
|
33542
33568
|
"aria-describedby": describedBy,
|
|
33543
33569
|
onClick: () => add(onAdd),
|
|
@@ -33599,7 +33625,7 @@ function RepeaterInner({
|
|
|
33599
33625
|
"data-move": "up",
|
|
33600
33626
|
"aria-disabled": upHeld ? true : void 0,
|
|
33601
33627
|
onClick: () => move(index, -1, upHeld),
|
|
33602
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33628
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowUpIcon, {})
|
|
33603
33629
|
}
|
|
33604
33630
|
),
|
|
33605
33631
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33611,7 +33637,7 @@ function RepeaterInner({
|
|
|
33611
33637
|
"data-move": "down",
|
|
33612
33638
|
"aria-disabled": downHeld ? true : void 0,
|
|
33613
33639
|
onClick: () => move(index, 1, downHeld),
|
|
33614
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33640
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowDownIcon, {})
|
|
33615
33641
|
}
|
|
33616
33642
|
)
|
|
33617
33643
|
] }) : null,
|
|
@@ -33623,7 +33649,7 @@ function RepeaterInner({
|
|
|
33623
33649
|
size: "sm",
|
|
33624
33650
|
"aria-disabled": removeHeld ? true : void 0,
|
|
33625
33651
|
onClick: () => remove(index, removeHeld),
|
|
33626
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33652
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TrashIcon, {})
|
|
33627
33653
|
}
|
|
33628
33654
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { className: "o-repeater__required", size: "sm", children: labels.required })
|
|
33629
33655
|
] });
|
|
@@ -33729,9 +33755,15 @@ function useSectionSpy(ids, options = {}) {
|
|
|
33729
33755
|
const line = offset + travel * progress;
|
|
33730
33756
|
const containerTop = root ? root.getBoundingClientRect().top : 0;
|
|
33731
33757
|
let found = first;
|
|
33758
|
+
let nearest = -Infinity;
|
|
33732
33759
|
for (const id of list) {
|
|
33733
33760
|
const section = document.getElementById(id);
|
|
33734
|
-
if (section
|
|
33761
|
+
if (!section) continue;
|
|
33762
|
+
const top = section.getBoundingClientRect().top - containerTop;
|
|
33763
|
+
if (top <= line && top > nearest) {
|
|
33764
|
+
nearest = top;
|
|
33765
|
+
found = id;
|
|
33766
|
+
}
|
|
33735
33767
|
}
|
|
33736
33768
|
setCurrent(found);
|
|
33737
33769
|
};
|
|
@@ -34044,11 +34076,11 @@ var BRAND_MARK_ALIASES = {
|
|
|
34044
34076
|
// src/brand/marks/BrandMark.tsx
|
|
34045
34077
|
|
|
34046
34078
|
var CATEGORY_ICON = {
|
|
34047
|
-
card:
|
|
34048
|
-
wallet:
|
|
34049
|
-
bnpl:
|
|
34050
|
-
bank:
|
|
34051
|
-
other:
|
|
34079
|
+
card: _chunkUY22Q2WOcjs.CreditCardIcon,
|
|
34080
|
+
wallet: _chunkUY22Q2WOcjs.WalletIcon,
|
|
34081
|
+
bnpl: _chunkUY22Q2WOcjs.CalendarDotsIcon,
|
|
34082
|
+
bank: _chunkUY22Q2WOcjs.BankIcon,
|
|
34083
|
+
other: _chunkUY22Q2WOcjs.CoinsIcon
|
|
34052
34084
|
};
|
|
34053
34085
|
var CHIP_EXTRA = 10;
|
|
34054
34086
|
var BrandMarkContext = _react.createContext.call(void 0, {});
|
|
@@ -34066,7 +34098,7 @@ function brandMarkFor(id, marks) {
|
|
|
34066
34098
|
}
|
|
34067
34099
|
var round12 = (value) => Math.round(value * 10) / 10;
|
|
34068
34100
|
function NeutralChip({ category }) {
|
|
34069
|
-
const Glyph = _nullishCoalesce(CATEGORY_ICON[category], () => (
|
|
34101
|
+
const Glyph = _nullishCoalesce(CATEGORY_ICON[category], () => ( _chunkUY22Q2WOcjs.CoinsIcon));
|
|
34070
34102
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Glyph, { className: "o-brand-mark__glyph", size: 16 });
|
|
34071
34103
|
}
|
|
34072
34104
|
function SignInMark({ id, size }) {
|
|
@@ -34466,7 +34498,7 @@ var TableDragHandle = _react.forwardRef.call(void 0, function TableDragHandle2(p
|
|
|
34466
34498
|
"aria-disabled": reason !== null ? true : rest["aria-disabled"],
|
|
34467
34499
|
"aria-describedby": reason !== null ? cx(rest["aria-describedby"], reasonId) : rest["aria-describedby"],
|
|
34468
34500
|
children: [
|
|
34469
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34501
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DotsSixVerticalIcon, { "aria-hidden": "true", weight: "bold" }),
|
|
34470
34502
|
reason !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: reasonId, className: "o-sr-only", children: reason }) : null
|
|
34471
34503
|
]
|
|
34472
34504
|
}
|
|
@@ -34482,7 +34514,7 @@ var TableUndo = _react.forwardRef.call(void 0, function TableUndo2({ label, labe
|
|
|
34482
34514
|
ref,
|
|
34483
34515
|
size,
|
|
34484
34516
|
variant,
|
|
34485
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34517
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowCounterClockwiseIcon, {}),
|
|
34486
34518
|
className: cx("o-table__undo", className),
|
|
34487
34519
|
"aria-label": label ? labels.undoNamed(label) : void 0,
|
|
34488
34520
|
"data-table-undo": "",
|
|
@@ -34609,7 +34641,7 @@ var RecordPager = _react.forwardRef.call(void 0, function RecordPager2({ previou
|
|
|
34609
34641
|
const button = (direction, target) => {
|
|
34610
34642
|
const label = direction === "previous" ? labels.previous : labels.next;
|
|
34611
34643
|
const name = _optionalChain([target, 'optionalAccess', _1393 => _1393.name]) ? labels.withName(label, target.name) : label;
|
|
34612
|
-
const glyph = direction === "previous" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34644
|
+
const glyph = direction === "previous" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretLeftIcon, { weight: "bold", className: "o-record-pager__glyph" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretRightIcon, { weight: "bold", className: "o-record-pager__glyph" });
|
|
34613
34645
|
const key = direction === "previous" !== rtl ? "left" : "right";
|
|
34614
34646
|
const setButton = (element) => {
|
|
34615
34647
|
buttons.current[direction] = element;
|
|
@@ -34694,7 +34726,7 @@ var FacetFilters = _react.forwardRef.call(void 0, function FacetFilters2({
|
|
|
34694
34726
|
ref,
|
|
34695
34727
|
variant,
|
|
34696
34728
|
size,
|
|
34697
|
-
icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34729
|
+
icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.SlidersHorizontalIcon, {}))),
|
|
34698
34730
|
className: cx("o-facets", className),
|
|
34699
34731
|
"aria-label": active2 > 0 ? labels.buttonActive(active2) : void 0,
|
|
34700
34732
|
...rest,
|
|
@@ -34933,7 +34965,7 @@ var UrlUploadInput = _react.forwardRef.call(void 0, function UrlUploadInput2({
|
|
|
34933
34965
|
if (busy === null) drop.open();
|
|
34934
34966
|
},
|
|
34935
34967
|
children: [
|
|
34936
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-url-upload__glyph", "aria-hidden": "true", children: busy !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 14 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34968
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-url-upload__glyph", "aria-hidden": "true", children: busy !== null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 14 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.UploadSimpleIcon, {}) }),
|
|
34937
34969
|
busy !== null ? labels.uploading : labels.upload
|
|
34938
34970
|
]
|
|
34939
34971
|
}
|
|
@@ -34971,7 +35003,7 @@ var UrlUploadInput = _react.forwardRef.call(void 0, function UrlUploadInput2({
|
|
|
34971
35003
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { ...drop.inputProps }),
|
|
34972
35004
|
url ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-url-upload__file", children: [
|
|
34973
35005
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-url-upload__name", children: [
|
|
34974
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35006
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.FileIcon, { "aria-hidden": "true" }),
|
|
34975
35007
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-url-upload__name-text", children: name })
|
|
34976
35008
|
] }),
|
|
34977
35009
|
locked ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "o-url-upload__clear", "aria-label": labels.clear(name), onClick: clear, children: labels.clearText })
|
|
@@ -35265,7 +35297,7 @@ var AddressAutocomplete = _react.forwardRef.call(void 0, function AddressAutocom
|
|
|
35265
35297
|
onMouseMove: () => index !== active2 && setActive(index),
|
|
35266
35298
|
onClick: () => void pick(suggestion),
|
|
35267
35299
|
children: [
|
|
35268
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-address-autocomplete__pin", "aria-hidden": "true", children: resolving === suggestion.id ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 14 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35300
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-address-autocomplete__pin", "aria-hidden": "true", children: resolving === suggestion.id ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 14 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MapPinIcon, {}) }),
|
|
35269
35301
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-address-autocomplete__text", children: [
|
|
35270
35302
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-address-autocomplete__label", children: suggestion.label }),
|
|
35271
35303
|
suggestion.description ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-address-autocomplete__desc", children: suggestion.description }) : null
|
|
@@ -35552,7 +35584,7 @@ var TranslationField = _react.forwardRef.call(void 0, function TranslationField2
|
|
|
35552
35584
|
children: labels.origin[origin]
|
|
35553
35585
|
}
|
|
35554
35586
|
),
|
|
35555
|
-
stale ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { size: "sm", tone: "warning", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35587
|
+
stale ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { size: "sm", tone: "warning", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningIcon, {}), className: "o-translation__stale", children: labels.stale }) : null
|
|
35556
35588
|
] }),
|
|
35557
35589
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-translation__actions", children: [
|
|
35558
35590
|
onReset && origin !== "none" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { type: "button", variant: "secondary", size: "sm", loading: resetting, onClick: reset, "aria-disabled": saving || disabled || void 0, children: labels.resetToAuto }) : null,
|
|
@@ -36714,7 +36746,7 @@ var iconPickerIcons = [
|
|
|
36714
36746
|
{ value: "fingerprint", label: "Fingerprint" },
|
|
36715
36747
|
{ value: "cookie", label: "Cookie" }
|
|
36716
36748
|
];
|
|
36717
|
-
var glyphOf = (option, value) => _nullishCoalesce(_optionalChain([option, 'optionalAccess', _1464 => _1464.icon]), () => ( (value ?
|
|
36749
|
+
var glyphOf = (option, value) => _nullishCoalesce(_optionalChain([option, 'optionalAccess', _1464 => _1464.icon]), () => ( (value ? _chunkUY22Q2WOcjs.lucideIcon.call(void 0, value) : null)));
|
|
36718
36750
|
var IconPicker = _react.forwardRef.call(void 0, function IconPicker2({
|
|
36719
36751
|
value: valueProp,
|
|
36720
36752
|
defaultValue = null,
|
|
@@ -36909,7 +36941,7 @@ var IconPicker = _react.forwardRef.call(void 0, function IconPicker2({
|
|
|
36909
36941
|
children: [
|
|
36910
36942
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-icon-picker__tile", "aria-hidden": "true", children: ChosenGlyph ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChosenGlyph, { weight: "regular" }) : null }),
|
|
36911
36943
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-icon-picker__name", id: valueId, "data-placeholder": dataFlag(!value), children: _nullishCoalesce(_nullishCoalesce(_optionalChain([chosen, 'optionalAccess', _1483 => _1483.label]), () => ( value)), () => ( labels.placeholder)) }),
|
|
36912
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36944
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretDownIcon, { className: "o-icon-picker__caret", weight: "bold", "aria-hidden": "true" })
|
|
36913
36945
|
]
|
|
36914
36946
|
}
|
|
36915
36947
|
) }),
|
|
@@ -36950,7 +36982,7 @@ var ratingLabels = {
|
|
|
36950
36982
|
none: "No ratings",
|
|
36951
36983
|
star: (value) => value === 1 ? "1 star" : `${value} stars`
|
|
36952
36984
|
};
|
|
36953
|
-
var FACES = [
|
|
36985
|
+
var FACES = [_chunkUY22Q2WOcjs.SmileyAngryIcon, _chunkUY22Q2WOcjs.SmileySadIcon, _chunkUY22Q2WOcjs.SmileyMehIcon, _chunkUY22Q2WOcjs.SmileyIcon, _chunkUY22Q2WOcjs.SmileyWinkIcon];
|
|
36954
36986
|
function faceIndex(value, min, max) {
|
|
36955
36987
|
if (max <= min) return 4;
|
|
36956
36988
|
const share = (value - min) / (max - min);
|
|
@@ -36992,8 +37024,8 @@ var Rating = _react.forwardRef.call(void 0, function Rating2({
|
|
|
36992
37024
|
} else {
|
|
36993
37025
|
const stars = compact ? [Math.min(1, halves)] : Array.from({ length: max }, (_, at) => Math.min(1, Math.max(0, halves - at)));
|
|
36994
37026
|
marks = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-rating__stars", children: stars.map((share, at) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-rating__star", style: { "--o-rating-fill": `${share * 100}%` }, children: [
|
|
36995
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
36996
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
37027
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.StarIcon, { weight: "fill", className: "o-rating__track" }),
|
|
37028
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.StarIcon, { weight: "fill", className: "o-rating__glyph" })
|
|
36997
37029
|
] }, at)) });
|
|
36998
37030
|
}
|
|
36999
37031
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -37129,7 +37161,7 @@ var RatingInput = _react.forwardRef.call(void 0, function RatingInput2({
|
|
|
37129
37161
|
onClick: onItemClick(step),
|
|
37130
37162
|
onKeyDown: onItemKeyDown(step),
|
|
37131
37163
|
onPointerEnter: onItemPointerEnter(step),
|
|
37132
|
-
children: Face ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Face, { weight: on ? "fill" : "regular", className: "o-rating-input__glyph" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
37164
|
+
children: Face ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Face, { weight: on ? "fill" : "regular", className: "o-rating-input__glyph" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.StarIcon, { weight: on ? "fill" : "regular", className: "o-rating-input__glyph" })
|
|
37133
37165
|
},
|
|
37134
37166
|
step
|
|
37135
37167
|
);
|
|
@@ -37323,7 +37355,7 @@ var CommentBox = _react.forwardRef.call(void 0, function CommentBox2({
|
|
|
37323
37355
|
{
|
|
37324
37356
|
size: "sm",
|
|
37325
37357
|
variant: "primary",
|
|
37326
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
37358
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PaperPlaneRightIcon, {}),
|
|
37327
37359
|
loading: busy,
|
|
37328
37360
|
"aria-disabled": empty ? true : void 0,
|
|
37329
37361
|
onClick: post,
|
|
@@ -37333,7 +37365,7 @@ var CommentBox = _react.forwardRef.call(void 0, function CommentBox2({
|
|
|
37333
37365
|
] })
|
|
37334
37366
|
] }),
|
|
37335
37367
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-comment-box__notice", role: "status", "aria-live": "polite", children: showNotify && notify2 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
37336
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
37368
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.InfoIcon, { "aria-hidden": "true" }),
|
|
37337
37369
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: labels.notifyNotice })
|
|
37338
37370
|
] }) : null })
|
|
37339
37371
|
] }) })
|
|
@@ -38564,7 +38596,7 @@ var TreeRowView = _react.memo.call(void 0, function TreeRowView2({
|
|
|
38564
38596
|
event.stopPropagation();
|
|
38565
38597
|
actions.toggle(node);
|
|
38566
38598
|
},
|
|
38567
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38599
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretRightIcon, { className: "o-tree__chevron", weight: "bold" })
|
|
38568
38600
|
}
|
|
38569
38601
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-tree__toggle", "data-leaf": "", "aria-hidden": "true" }),
|
|
38570
38602
|
renderStart ? renderStart(node, state) : null,
|
|
@@ -38587,7 +38619,7 @@ var TreeRowView = _react.memo.call(void 0, function TreeRowView2({
|
|
|
38587
38619
|
label: labels.hide(node.label),
|
|
38588
38620
|
"aria-pressed": state.hidden,
|
|
38589
38621
|
onClick: () => onHiddenChange(node, !state.hidden),
|
|
38590
|
-
children: state.hidden ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38622
|
+
children: state.hidden ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.EyeSlashIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.EyeIcon, {})
|
|
38591
38623
|
}
|
|
38592
38624
|
) : null,
|
|
38593
38625
|
own
|
|
@@ -39085,7 +39117,7 @@ var TreeSelect = _react.forwardRef.call(void 0, function TreeSelect2({
|
|
|
39085
39117
|
if (term !== "") setTerm("");
|
|
39086
39118
|
focusQuietly();
|
|
39087
39119
|
},
|
|
39088
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39120
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, {})
|
|
39089
39121
|
}
|
|
39090
39122
|
) : null;
|
|
39091
39123
|
const optionRow = (row, index) => {
|
|
@@ -39106,7 +39138,7 @@ var TreeSelect = _react.forwardRef.call(void 0, function TreeSelect2({
|
|
|
39106
39138
|
onClick: () => pick(row),
|
|
39107
39139
|
children: [
|
|
39108
39140
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__text", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__label", children: labels.none }) }),
|
|
39109
|
-
isChosen2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39141
|
+
isChosen2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, { "aria-hidden": "true", className: "o-combobox__tick" }) : null
|
|
39110
39142
|
]
|
|
39111
39143
|
},
|
|
39112
39144
|
NONE2
|
|
@@ -39136,7 +39168,7 @@ var TreeSelect = _react.forwardRef.call(void 0, function TreeSelect2({
|
|
|
39136
39168
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__label", children: searchingTree || trimmed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HighlightText, { text: node.label, query: trimmed }) : node.label }),
|
|
39137
39169
|
row.trail ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__desc", children: row.trail }) : hasContent(node.description) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-combobox__desc", children: node.description }) : null
|
|
39138
39170
|
] }),
|
|
39139
|
-
isChosen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39171
|
+
isChosen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, { "aria-hidden": "true", className: "o-combobox__tick" }) : null,
|
|
39140
39172
|
showDrill ? (
|
|
39141
39173
|
// For a pointer: the keyboard goes in with the right arrow, which the hint says. A button inside an option would
|
|
39142
39174
|
// be a control inside a control.
|
|
@@ -39149,7 +39181,7 @@ var TreeSelect = _react.forwardRef.call(void 0, function TreeSelect2({
|
|
|
39149
39181
|
event.stopPropagation();
|
|
39150
39182
|
drill(node);
|
|
39151
39183
|
},
|
|
39152
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39184
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretRightIcon, {})
|
|
39153
39185
|
}
|
|
39154
39186
|
)
|
|
39155
39187
|
) : null
|
|
@@ -39190,7 +39222,7 @@ var TreeSelect = _react.forwardRef.call(void 0, function TreeSelect2({
|
|
|
39190
39222
|
id,
|
|
39191
39223
|
className: "o-combobox__input",
|
|
39192
39224
|
size,
|
|
39193
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39225
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MagnifyingGlassIcon, {}),
|
|
39194
39226
|
suffix: _nullishCoalesce(clearButton, () => ( void 0)),
|
|
39195
39227
|
invalid,
|
|
39196
39228
|
disabled,
|
|
@@ -39246,7 +39278,7 @@ var TreeSelect = _react.forwardRef.call(void 0, function TreeSelect2({
|
|
|
39246
39278
|
onTouchMove: (event) => event.stopPropagation(),
|
|
39247
39279
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, FieldContext.Provider, { value: null, children: [
|
|
39248
39280
|
!searchingTree && path.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-tree-select__crumbs", children: [
|
|
39249
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "o-tree-select__back", tabIndex: -1, "aria-label": labels.back, onClick: goUp, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39281
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "o-tree-select__back", tabIndex: -1, "aria-label": labels.back, onClick: goUp, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretLeftIcon, { "aria-hidden": "true" }) }),
|
|
39250
39282
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-tree-select__trail", children: [
|
|
39251
39283
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", className: "o-tree-select__crumb", tabIndex: -1, onClick: () => goTo(0), children: labels.top }),
|
|
39252
39284
|
path.map((step, depth) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-tree-select__step", children: [
|
|
@@ -39853,7 +39885,7 @@ var ConditionBuilder = _react.forwardRef.call(void 0, function ConditionBuilder2
|
|
|
39853
39885
|
announce(labels.groupRemoved(groupIndex + 1));
|
|
39854
39886
|
setGroups(value.filter((each) => each.id !== group.id));
|
|
39855
39887
|
},
|
|
39856
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39888
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TrashIcon, {})
|
|
39857
39889
|
}
|
|
39858
39890
|
) : null
|
|
39859
39891
|
] }),
|
|
@@ -39933,7 +39965,7 @@ var ConditionBuilder = _react.forwardRef.call(void 0, function ConditionBuilder2
|
|
|
39933
39965
|
ref: addGroupRef,
|
|
39934
39966
|
className: "o-condition-builder__add-group",
|
|
39935
39967
|
variant: "ghost",
|
|
39936
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
39968
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, {}),
|
|
39937
39969
|
onClick: () => {
|
|
39938
39970
|
pendingGroup.current = { kind: "add" };
|
|
39939
39971
|
announce(labels.groupAdded(value.length + 1));
|
|
@@ -40013,7 +40045,7 @@ var SortableCard = _react.forwardRef.call(void 0, function SortableCard2({
|
|
|
40013
40045
|
"aria-controls": bodyId,
|
|
40014
40046
|
"aria-label": shown ? labels.collapse(name) : labels.expand(name),
|
|
40015
40047
|
onClick: toggle,
|
|
40016
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40048
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretRightIcon, { size: 14, weight: "bold", "aria-hidden": "true" })
|
|
40017
40049
|
}
|
|
40018
40050
|
) : null,
|
|
40019
40051
|
leading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-sortable-card__leading", children: leading }) : null,
|
|
@@ -40184,8 +40216,8 @@ function RuleListInner({
|
|
|
40184
40216
|
}),
|
|
40185
40217
|
actions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
40186
40218
|
onEnabledChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Switch, { size: "sm", checked: enabled2, "aria-label": labels.enabled(name), onCheckedChange: (on) => onEnabledChange(item, index, on) }) : null,
|
|
40187
|
-
onDuplicate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { size: "sm", variant: "ghost", label: labels.duplicate(name), onClick: () => duplicate(item, index), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40188
|
-
onRemove ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { size: "sm", variant: "ghost", label: labels.remove(name), onClick: () => remove(item, index), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40219
|
+
onDuplicate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { size: "sm", variant: "ghost", label: labels.duplicate(name), onClick: () => duplicate(item, index), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CopyIcon, {}) }) : null,
|
|
40220
|
+
onRemove ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { size: "sm", variant: "ghost", label: labels.remove(name), onClick: () => remove(item, index), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TrashIcon, {}) }) : null
|
|
40189
40221
|
] }),
|
|
40190
40222
|
children: renderRule(item, { index, open: isOpen, enabled: enabled2 })
|
|
40191
40223
|
}
|
|
@@ -40215,7 +40247,7 @@ function RuleListInner({
|
|
|
40215
40247
|
labels.undoLine,
|
|
40216
40248
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant: "secondary", size: "sm", onClick: restore, children: labels.undo })
|
|
40217
40249
|
] }) : null,
|
|
40218
|
-
onAdd ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { ref: addRef, className: "o-rule-list__add", variant: "secondary", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40250
|
+
onAdd ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { ref: addRef, className: "o-rule-list__add", variant: "secondary", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, {}), onClick: add, children: _nullishCoalesce(addLabel, () => ( labels.add)) }) : null,
|
|
40219
40251
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true", children: spoken })
|
|
40220
40252
|
] });
|
|
40221
40253
|
}
|
|
@@ -40425,11 +40457,11 @@ var RuleTest = _react.forwardRef.call(void 0, function RuleTest2({ onTest, disab
|
|
|
40425
40457
|
] }) : null,
|
|
40426
40458
|
result && !failure ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-rule-test__result", "data-matched": dataFlag(result.matched), children: [
|
|
40427
40459
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-rule-test__verdict", children: [
|
|
40428
|
-
result.matched ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40460
|
+
result.matched ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckCircleIcon, { weight: "fill", "aria-hidden": "true" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XCircleIcon, { "aria-hidden": "true" }),
|
|
40429
40461
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: result.matched ? labels.matched : labels.notMatched })
|
|
40430
40462
|
] }),
|
|
40431
40463
|
result.conditions.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "o-rule-test__conditions", children: result.conditions.map((condition, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "li", { className: "o-rule-test__condition", "data-matched": dataFlag(condition.matched), children: [
|
|
40432
|
-
condition.matched ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40464
|
+
condition.matched ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckCircleIcon, { "aria-hidden": "true" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MinusCircleIcon, { "aria-hidden": "true" }),
|
|
40433
40465
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
|
|
40434
40466
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-rule-test__condition-label", children: condition.label }),
|
|
40435
40467
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-sr-only", children: [
|
|
@@ -41620,7 +41652,7 @@ var SpacingBox = _react.forwardRef.call(void 0, function SpacingBox2({
|
|
|
41620
41652
|
disabled,
|
|
41621
41653
|
className: "o-spacing-box__link",
|
|
41622
41654
|
onClick: toggleLink,
|
|
41623
|
-
children: linked ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
41655
|
+
children: linked ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.LinkSimpleIcon, { size: 16 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.LinkSimpleBreakIcon, { size: 16 })
|
|
41624
41656
|
}
|
|
41625
41657
|
) }) }),
|
|
41626
41658
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-spacing-box__corner", children: units ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -41685,10 +41717,10 @@ function radiusToCss(value, unit) {
|
|
|
41685
41717
|
return `${tl} ${tr} ${br} ${bl}`;
|
|
41686
41718
|
}
|
|
41687
41719
|
var CORNER_ICONS = {
|
|
41688
|
-
topLeft:
|
|
41689
|
-
topRight:
|
|
41690
|
-
bottomRight:
|
|
41691
|
-
bottomLeft:
|
|
41720
|
+
topLeft: _chunkUY22Q2WOcjs.CornerTopLeftIcon,
|
|
41721
|
+
topRight: _chunkUY22Q2WOcjs.CornerTopRightIcon,
|
|
41722
|
+
bottomRight: _chunkUY22Q2WOcjs.CornerBottomRightIcon,
|
|
41723
|
+
bottomLeft: _chunkUY22Q2WOcjs.CornerBottomLeftIcon
|
|
41692
41724
|
};
|
|
41693
41725
|
function CornerMark({ corner }) {
|
|
41694
41726
|
const Corner = CORNER_ICONS[corner];
|
|
@@ -41872,7 +41904,7 @@ var RadiusControl = _react.forwardRef.call(void 0, function RadiusControl2({
|
|
|
41872
41904
|
disabled,
|
|
41873
41905
|
className: "o-radius-control__link",
|
|
41874
41906
|
onClick: toggleLink,
|
|
41875
|
-
children: linked ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
41907
|
+
children: linked ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.LinkSimpleIcon, { size: 16 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.LinkSimpleBreakIcon, { size: 16 })
|
|
41876
41908
|
}
|
|
41877
41909
|
) })
|
|
41878
41910
|
] }),
|
|
@@ -41915,9 +41947,9 @@ var RadiusControl = _react.forwardRef.call(void 0, function RadiusControl2({
|
|
|
41915
41947
|
|
|
41916
41948
|
var ALL_DEVICES2 = ["desktop", "tablet", "mobile"];
|
|
41917
41949
|
var DEVICE_ICONS2 = {
|
|
41918
|
-
desktop: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
41919
|
-
tablet: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
41920
|
-
mobile: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
41950
|
+
desktop: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MonitorIcon, {}),
|
|
41951
|
+
tablet: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DeviceTabletIcon, {}),
|
|
41952
|
+
mobile: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DeviceMobileIcon, {})
|
|
41921
41953
|
};
|
|
41922
41954
|
var deviceSwitcherLabels = {
|
|
41923
41955
|
group: "Preview device",
|
|
@@ -42042,7 +42074,7 @@ var StyleStateSwitcher = _react.forwardRef.call(void 0, function StyleStateSwitc
|
|
|
42042
42074
|
disabled,
|
|
42043
42075
|
className,
|
|
42044
42076
|
onClick: () => setState(on ? "normal" : only),
|
|
42045
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42077
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CursorClickIcon, {})
|
|
42046
42078
|
}
|
|
42047
42079
|
) });
|
|
42048
42080
|
}
|
|
@@ -42057,7 +42089,7 @@ var StyleStateSwitcher = _react.forwardRef.call(void 0, function StyleStateSwitc
|
|
|
42057
42089
|
size: buttonSize,
|
|
42058
42090
|
className,
|
|
42059
42091
|
"data-pressed": editing ? "" : void 0,
|
|
42060
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42092
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CursorClickIcon, {})
|
|
42061
42093
|
}
|
|
42062
42094
|
) }) }),
|
|
42063
42095
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, MenuContent, { align: "end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -42515,7 +42547,7 @@ var GradientEditor = _react.forwardRef.call(void 0, function GradientEditor2({
|
|
|
42515
42547
|
onClick: () => {
|
|
42516
42548
|
if (count < maxStops) addInGap();
|
|
42517
42549
|
},
|
|
42518
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42550
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, {})
|
|
42519
42551
|
}
|
|
42520
42552
|
),
|
|
42521
42553
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -42527,7 +42559,7 @@ var GradientEditor = _react.forwardRef.call(void 0, function GradientEditor2({
|
|
|
42527
42559
|
"aria-disabled": count <= minStops || void 0,
|
|
42528
42560
|
disabled,
|
|
42529
42561
|
onClick: () => remove(active2.id, false),
|
|
42530
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42562
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TrashIcon, {})
|
|
42531
42563
|
}
|
|
42532
42564
|
)
|
|
42533
42565
|
] }),
|
|
@@ -43041,7 +43073,7 @@ var FontPicker = _react.forwardRef.call(void 0, function FontPicker2({
|
|
|
43041
43073
|
{
|
|
43042
43074
|
ref: searchRef,
|
|
43043
43075
|
size: "sm",
|
|
43044
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43076
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MagnifyingGlassIcon, {}),
|
|
43045
43077
|
role: "combobox",
|
|
43046
43078
|
"aria-label": labels.search,
|
|
43047
43079
|
"aria-expanded": true,
|
|
@@ -43123,7 +43155,7 @@ var FontPicker = _react.forwardRef.call(void 0, function FontPicker2({
|
|
|
43123
43155
|
onMouseDown: (event) => event.preventDefault(),
|
|
43124
43156
|
onClick: () => pick(row),
|
|
43125
43157
|
children: [
|
|
43126
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-font-picker__check", "aria-hidden": "true", children: selected ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43158
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-font-picker__check", "aria-hidden": "true", children: selected ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, { weight: "bold" }) : null }),
|
|
43127
43159
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43128
43160
|
"span",
|
|
43129
43161
|
{
|
|
@@ -43144,7 +43176,7 @@ var FontPicker = _react.forwardRef.call(void 0, function FontPicker2({
|
|
|
43144
43176
|
event.stopPropagation();
|
|
43145
43177
|
handOff(() => setDeleting(row.family));
|
|
43146
43178
|
},
|
|
43147
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43179
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TrashIcon, {})
|
|
43148
43180
|
}
|
|
43149
43181
|
)
|
|
43150
43182
|
) : null
|
|
@@ -43167,7 +43199,7 @@ var FontPicker = _react.forwardRef.call(void 0, function FontPicker2({
|
|
|
43167
43199
|
{
|
|
43168
43200
|
size: "sm",
|
|
43169
43201
|
variant: "ghost",
|
|
43170
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43202
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, {}),
|
|
43171
43203
|
onClick: () => handOff(() => setUploading(true)),
|
|
43172
43204
|
children: labels.upload
|
|
43173
43205
|
}
|
|
@@ -43177,7 +43209,7 @@ var FontPicker = _react.forwardRef.call(void 0, function FontPicker2({
|
|
|
43177
43209
|
{
|
|
43178
43210
|
size: "sm",
|
|
43179
43211
|
variant: "ghost",
|
|
43180
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43212
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TrashIcon, {}),
|
|
43181
43213
|
className: "o-font-picker__foot-delete",
|
|
43182
43214
|
onClick: () => handOff(() => setDeleting(activeRow.family)),
|
|
43183
43215
|
children: labels.delete(activeRow.family)
|
|
@@ -43751,7 +43783,7 @@ function SearchSheet({
|
|
|
43751
43783
|
},
|
|
43752
43784
|
children: [
|
|
43753
43785
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-search-menu__search", children: [
|
|
43754
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43786
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MagnifyingGlassIcon, { className: "o-search-menu__search-icon", "aria-hidden": "true" }),
|
|
43755
43787
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43756
43788
|
"input",
|
|
43757
43789
|
{
|
|
@@ -43909,7 +43941,7 @@ function SearchMenu({
|
|
|
43909
43941
|
description: item.description,
|
|
43910
43942
|
end: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
43911
43943
|
item.token ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-search-menu__token-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "code", { className: "o-search-menu__token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HighlightText, { text: item.token, query: filter === false ? "" : query, truncate: false }) }) }) : item.aside != null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-search-menu__aside", children: item.aside }) : null,
|
|
43912
|
-
chosen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43944
|
+
chosen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, { className: "o-search-menu__tick", "aria-hidden": "true" }) : null
|
|
43913
43945
|
] })
|
|
43914
43946
|
}
|
|
43915
43947
|
)
|
|
@@ -44082,7 +44114,7 @@ function DrillMenu({
|
|
|
44082
44114
|
end: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
44083
44115
|
category === currentCategory ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-drill-menu__current", "aria-hidden": "true" }) : null,
|
|
44084
44116
|
count !== void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-search-menu__aside", children: numbers7.format(count) }) : null,
|
|
44085
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44117
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretRightIcon, { className: "o-drill-menu__chevron", "aria-hidden": "true" })
|
|
44086
44118
|
] })
|
|
44087
44119
|
}
|
|
44088
44120
|
)
|
|
@@ -44129,7 +44161,7 @@ function DrillMenu({
|
|
|
44129
44161
|
event.stopPropagation();
|
|
44130
44162
|
_optionalChain([starred, 'optionalCall', _1829 => _1829()]);
|
|
44131
44163
|
},
|
|
44132
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44164
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.StarIcon, { weight: entry.isDefault ? "fill" : "regular" })
|
|
44133
44165
|
}
|
|
44134
44166
|
) : null
|
|
44135
44167
|
] })
|
|
@@ -44158,7 +44190,7 @@ function DrillMenu({
|
|
|
44158
44190
|
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44159
44191
|
RowBody,
|
|
44160
44192
|
{
|
|
44161
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44193
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowLeftIcon, {}),
|
|
44162
44194
|
label: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
44163
44195
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-sr-only", children: [
|
|
44164
44196
|
labels.back,
|
|
@@ -44187,7 +44219,7 @@ function DrillMenu({
|
|
|
44187
44219
|
key: "create",
|
|
44188
44220
|
kind: "footer",
|
|
44189
44221
|
onPick: () => setCreating(true),
|
|
44190
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RowBody, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44222
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RowBody, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, {}), label: labels.create })
|
|
44191
44223
|
});
|
|
44192
44224
|
}
|
|
44193
44225
|
} else if (searching) {
|
|
@@ -44262,7 +44294,7 @@ function DrillMenu({
|
|
|
44262
44294
|
] }) : null;
|
|
44263
44295
|
const crumbs = currentEntry ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-drill-menu__crumbs", children: [
|
|
44264
44296
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-drill-menu__crumb", children: currentCategory.label }),
|
|
44265
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44297
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretRightIcon, { className: "o-drill-menu__crumb-gap", "aria-hidden": "true" }),
|
|
44266
44298
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-drill-menu__crumb", "data-last": "", children: currentEntry.label })
|
|
44267
44299
|
] }) : labels.choose;
|
|
44268
44300
|
const button = _nullishCoalesce(trigger, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -44271,7 +44303,7 @@ function DrillMenu({
|
|
|
44271
44303
|
size: "sm",
|
|
44272
44304
|
"aria-label": currentEntry ? `${currentCategory.label}, ${currentEntry.label}` : void 0,
|
|
44273
44305
|
icon: _optionalChain([currentCategory, 'optionalAccess', _1845 => _1845.icon]),
|
|
44274
|
-
iconEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44306
|
+
iconEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretDownIcon, {}),
|
|
44275
44307
|
className: className ? `o-drill-menu__trigger ${className}` : "o-drill-menu__trigger",
|
|
44276
44308
|
style,
|
|
44277
44309
|
children: crumbs
|
|
@@ -45009,7 +45041,7 @@ var ColumnMapper = _react.forwardRef.call(void 0, function ColumnMapper2({
|
|
|
45009
45041
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-column-mapper__summary", children: [
|
|
45010
45042
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: labels.mapped(mappedCount, columns.length) }),
|
|
45011
45043
|
missing.length ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-column-mapper__missing", children: [
|
|
45012
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45044
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningIcon, { weight: "fill", "aria-hidden": "true" }),
|
|
45013
45045
|
labels.requiredMissing(missing.length)
|
|
45014
45046
|
] }) : null
|
|
45015
45047
|
] }),
|
|
@@ -45043,7 +45075,7 @@ var ColumnMapper = _react.forwardRef.call(void 0, function ColumnMapper2({
|
|
|
45043
45075
|
column.sample ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-column-mapper__sample", title: column.sample, children: cut3(column.sample) }) : null,
|
|
45044
45076
|
column.hint ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-column-mapper__hint", children: column.hint }) : null
|
|
45045
45077
|
] }),
|
|
45046
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45078
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowRightIcon, { className: "o-column-mapper__arrow", "aria-hidden": "true" }),
|
|
45047
45079
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-column-mapper__target", children: creating ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-column-mapper__create", children: [
|
|
45048
45080
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { size: "sm", tone: "info", children: _nullishCoalesce(_optionalChain([entry, 'optionalAccess', _1864 => _1864.badge]), () => ( labels.newField)) }),
|
|
45049
45081
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -45172,10 +45204,10 @@ var OUTCOME_TONE = {
|
|
|
45172
45204
|
skipped: "neutral"
|
|
45173
45205
|
};
|
|
45174
45206
|
var OUTCOME_GLYPH = {
|
|
45175
|
-
success: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45176
|
-
partial: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45177
|
-
failed: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45178
|
-
skipped: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45207
|
+
success: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, {}),
|
|
45208
|
+
partial: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningIcon, {}),
|
|
45209
|
+
failed: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, {}),
|
|
45210
|
+
skipped: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MinusIcon, {})
|
|
45179
45211
|
};
|
|
45180
45212
|
var ENDS_A_SENTENCE2 = /[.!?…。!?]$/;
|
|
45181
45213
|
function wordsOf2(panel) {
|
|
@@ -45212,7 +45244,7 @@ function IssueList({ list, issues, pageSize, downloadName, labels }) {
|
|
|
45212
45244
|
"aria-controls": bodyId,
|
|
45213
45245
|
onClick: () => setOpen((was) => !was),
|
|
45214
45246
|
children: [
|
|
45215
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45247
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretDownIcon, { className: "o-import-result__caret", weight: "bold", "aria-hidden": "true" }),
|
|
45216
45248
|
labels[words2.title](issues.length)
|
|
45217
45249
|
]
|
|
45218
45250
|
}
|
|
@@ -45222,7 +45254,7 @@ function IssueList({ list, issues, pageSize, downloadName, labels }) {
|
|
|
45222
45254
|
{
|
|
45223
45255
|
variant: "ghost",
|
|
45224
45256
|
size: "sm",
|
|
45225
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45257
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DownloadSimpleIcon, { "aria-hidden": "true" }),
|
|
45226
45258
|
"aria-label": labels[words2.download],
|
|
45227
45259
|
onClick: download,
|
|
45228
45260
|
children: labels.download
|
|
@@ -45262,10 +45294,10 @@ function IssueList({ list, issues, pageSize, downloadName, labels }) {
|
|
|
45262
45294
|
] });
|
|
45263
45295
|
}
|
|
45264
45296
|
var COUNT_GLYPH = {
|
|
45265
|
-
created: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45266
|
-
updated: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45267
|
-
skipped: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45268
|
-
failed: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45297
|
+
created: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, { weight: "bold" }),
|
|
45298
|
+
updated: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, { weight: "bold" }),
|
|
45299
|
+
skipped: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MinusCircleIcon, { weight: "bold" }),
|
|
45300
|
+
failed: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, { weight: "bold" })
|
|
45269
45301
|
};
|
|
45270
45302
|
var ImportResult = _react.forwardRef.call(void 0, function ImportResult2({
|
|
45271
45303
|
state,
|
|
@@ -45302,7 +45334,7 @@ var ImportResult = _react.forwardRef.call(void 0, function ImportResult2({
|
|
|
45302
45334
|
setSpoken(from === "running" && state === "done" ? wordsOf2(panelRef.current) : "");
|
|
45303
45335
|
}, [state]);
|
|
45304
45336
|
const tone = running ? "neutral" : requestFailed ? "negative" : OUTCOME_TONE[outcome];
|
|
45305
|
-
const glyph = running ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 32 }) : requestFailed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45337
|
+
const glyph = running ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 32 }) : requestFailed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, {}) : OUTCOME_GLYPH[outcome];
|
|
45306
45338
|
const heading = _nullishCoalesce(title, () => ( (running ? labels.running : requestFailed ? labels.requestFailedTitle : labels[`${outcome}Title`])));
|
|
45307
45339
|
const line = _nullishCoalesce(description, () => ( (running ? labels.runningHint : requestFailed ? labels.requestFailedHint : labels[`${outcome}Hint`])));
|
|
45308
45340
|
const value = Number.isFinite(progress) ? Math.min(Math.max(progress, 0), 100) : 0;
|
|
@@ -45563,7 +45595,7 @@ var ClampText = _react.forwardRef.call(void 0, function ClampText2({
|
|
|
45563
45595
|
onBlur: () => setFocused(false),
|
|
45564
45596
|
children: [
|
|
45565
45597
|
words2,
|
|
45566
|
-
open ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45598
|
+
open ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretUpIcon, { weight: "bold", "aria-hidden": "true" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretDownIcon, { weight: "bold", "aria-hidden": "true" })
|
|
45567
45599
|
]
|
|
45568
45600
|
}
|
|
45569
45601
|
) : null
|
|
@@ -45687,7 +45719,7 @@ var SwatchPicker = _react.forwardRef.call(void 0, function SwatchPicker2({ color
|
|
|
45687
45719
|
style: colourStyle(colour.hex),
|
|
45688
45720
|
"data-ink": colour.ink,
|
|
45689
45721
|
"aria-label": labels.swatch(words2),
|
|
45690
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioGroupPrimitive3.Indicator, { className: "o-swatch-picker__tick", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45722
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RadioGroupPrimitive3.Indicator, { className: "o-swatch-picker__tick", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, { weight: "bold", "aria-hidden": "true" }) })
|
|
45691
45723
|
},
|
|
45692
45724
|
raw
|
|
45693
45725
|
))
|
|
@@ -45964,15 +45996,15 @@ var AddressBlock = _react.forwardRef.call(void 0, function AddressBlock2({
|
|
|
45964
45996
|
] }) : null,
|
|
45965
45997
|
!anything ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "o-address__empty", children: sentence }) : contact ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "address", { className: "o-address__body", children: [
|
|
45966
45998
|
mail !== "" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-address__row", children: [
|
|
45967
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45999
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.EnvelopeSimpleIcon, { className: "o-address__icon" }),
|
|
45968
46000
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { className: "o-address__link", href: `mailto:${mail}`, children: mail })
|
|
45969
46001
|
] }) : null,
|
|
45970
46002
|
tel !== "" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-address__row", children: [
|
|
45971
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
46003
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PhoneIcon, { className: "o-address__icon" }),
|
|
45972
46004
|
telHref ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { className: "o-address__link", href: telHref, children: tel }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-address__text", children: tel })
|
|
45973
46005
|
] }) : null,
|
|
45974
46006
|
hasAddress ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-address__row", "data-multiline": "", children: [
|
|
45975
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
46007
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MapPinIcon, { className: "o-address__icon" }),
|
|
45976
46008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-address__lines", children: lines.map((line, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-address__line", children: line }, index)) })
|
|
45977
46009
|
] }) : null
|
|
45978
46010
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "address", { className: "o-address__body", children: [
|
|
@@ -46028,7 +46060,7 @@ var TaskCard = _react.forwardRef.call(void 0, function TaskCard2({ title, status
|
|
|
46028
46060
|
hasContent(error) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "o-task-card__error", children: error }) : null,
|
|
46029
46061
|
hasFoot ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-task-card__foot", children: [
|
|
46030
46062
|
canCancel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { size: "sm", variant: "secondary", onClick: onCancel, children: labels.cancel }) : null,
|
|
46031
|
-
onViewConversation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { size: "sm", variant: "ghost", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
46063
|
+
onViewConversation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { size: "sm", variant: "ghost", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ChatCircleIcon, {}), onClick: onViewConversation, children: labels.viewConversation }) : null,
|
|
46032
46064
|
actions
|
|
46033
46065
|
] }) : null,
|
|
46034
46066
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-sr-only", role: "status", children: announced })
|
|
@@ -46668,7 +46700,7 @@ var PlanCard = _react.forwardRef.call(void 0, function PlanCard2({
|
|
|
46668
46700
|
const feature = typeof entry === "string" ? { label: entry } : entry;
|
|
46669
46701
|
const included = feature.included !== false;
|
|
46670
46702
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "li", { "data-included": dataFlag(included), children: [
|
|
46671
|
-
included ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
46703
|
+
included ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, { "aria-hidden": "true", weight: "bold" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.XIcon, { "aria-hidden": "true", weight: "bold" }),
|
|
46672
46704
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
|
|
46673
46705
|
feature.label,
|
|
46674
46706
|
included ? null : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-sr-only", children: [
|
|
@@ -46838,7 +46870,7 @@ function textOf6(node) {
|
|
|
46838
46870
|
function Value2({ value, words: words2 }) {
|
|
46839
46871
|
if (value === true) {
|
|
46840
46872
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
46841
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-plan-compare__mark", "data-mark": "included", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
46873
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-plan-compare__mark", "data-mark": "included", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, { weight: "bold" }) }),
|
|
46842
46874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-sr-only", children: words2.included })
|
|
46843
46875
|
] });
|
|
46844
46876
|
}
|
|
@@ -46951,7 +46983,7 @@ var PlanChangeSummary = _react.forwardRef.call(void 0, function PlanChangeSummar
|
|
|
46951
46983
|
className: cx("o-plan-change", className),
|
|
46952
46984
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-plan-change__row", children: [
|
|
46953
46985
|
box(current, words2.currentPlan, false),
|
|
46954
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-plan-change__arrow", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
46986
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-plan-change__arrow", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowRightIcon, { weight: "bold" }) }),
|
|
46955
46987
|
box(next, words2.newPlan, true)
|
|
46956
46988
|
] })
|
|
46957
46989
|
}
|
|
@@ -47483,22 +47515,22 @@ var ModelViewer = _react.forwardRef.call(void 0, function ModelViewer2({
|
|
|
47483
47515
|
// The viewer's own progress bar would run over the kit's spinner: an empty slot stands in for it.
|
|
47484
47516
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { slot: "progress-bar" }, "progress"),
|
|
47485
47517
|
ar ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "button", { slot: "ar-button", type: "button", className: "o-model-viewer__ar", children: [
|
|
47486
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
47518
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CubeIcon, { "aria-hidden": "true" }),
|
|
47487
47519
|
labels.ar
|
|
47488
47520
|
] }, "ar") : null
|
|
47489
47521
|
) : null,
|
|
47490
47522
|
status === "empty" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-model-viewer__state", children: [
|
|
47491
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
47523
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CubeIcon, { size: 32, "aria-hidden": "true" }),
|
|
47492
47524
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: labels.empty })
|
|
47493
47525
|
] }) : null,
|
|
47494
47526
|
status === "waiting" || status === "loading" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-model-viewer__state", "data-cover": "", children: [
|
|
47495
|
-
poster ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { className: "o-model-viewer__poster", src: poster, alt: name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
47527
|
+
poster ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { className: "o-model-viewer__poster", src: poster, alt: name }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CubeIcon, { size: 36, "aria-hidden": "true" }),
|
|
47496
47528
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-model-viewer__spinner", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 24, label: labels.loading }) })
|
|
47497
47529
|
] }) : null,
|
|
47498
47530
|
status === "error" || status === "unavailable" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-model-viewer__state", "data-cover": "", children: [
|
|
47499
47531
|
poster && status === "unavailable" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { className: "o-model-viewer__poster", src: poster, alt: name }) : null,
|
|
47500
47532
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-model-viewer__message", children: [
|
|
47501
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
47533
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningCircleIcon, { size: 20, "aria-hidden": "true" }),
|
|
47502
47534
|
status === "error" ? labels.error : labels.unavailable
|
|
47503
47535
|
] })
|
|
47504
47536
|
] }) : null
|
|
@@ -47884,7 +47916,7 @@ var ImageCropper = _react.forwardRef.call(void 0, function ImageCropper2({
|
|
|
47884
47916
|
onClick: () => {
|
|
47885
47917
|
if (ready && zoom > 1) setZoom(zoom - ZOOM_STEP * 2.5);
|
|
47886
47918
|
},
|
|
47887
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
47919
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MagnifyingGlassMinusIcon, {})
|
|
47888
47920
|
}
|
|
47889
47921
|
),
|
|
47890
47922
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -47915,7 +47947,7 @@ var ImageCropper = _react.forwardRef.call(void 0, function ImageCropper2({
|
|
|
47915
47947
|
onClick: () => {
|
|
47916
47948
|
if (ready && zoom < maxZoom) setZoom(zoom + ZOOM_STEP * 2.5);
|
|
47917
47949
|
},
|
|
47918
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
47950
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.MagnifyingGlassPlusIcon, {})
|
|
47919
47951
|
}
|
|
47920
47952
|
)
|
|
47921
47953
|
] })
|
|
@@ -48067,7 +48099,7 @@ var Gallery = _react.forwardRef.call(void 0, function Gallery2({
|
|
|
48067
48099
|
"data-side": "previous",
|
|
48068
48100
|
"aria-label": labels.previous,
|
|
48069
48101
|
onClick: () => show2(index - 1),
|
|
48070
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48102
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretLeftIcon, { weight: "bold", "aria-hidden": "true" })
|
|
48071
48103
|
}
|
|
48072
48104
|
),
|
|
48073
48105
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -48078,7 +48110,7 @@ var Gallery = _react.forwardRef.call(void 0, function Gallery2({
|
|
|
48078
48110
|
"data-side": "next",
|
|
48079
48111
|
"aria-label": labels.next,
|
|
48080
48112
|
onClick: () => show2(index + 1),
|
|
48081
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48113
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretRightIcon, { weight: "bold", "aria-hidden": "true" })
|
|
48082
48114
|
}
|
|
48083
48115
|
)
|
|
48084
48116
|
] }) : null
|
|
@@ -48165,7 +48197,7 @@ var Carousel = _react.forwardRef.call(void 0, function Carousel2({ children, ite
|
|
|
48165
48197
|
onClick: () => {
|
|
48166
48198
|
if (!edges.atStart) page(-1);
|
|
48167
48199
|
},
|
|
48168
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48200
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretLeftIcon, { weight: "bold", "aria-hidden": "true" })
|
|
48169
48201
|
}
|
|
48170
48202
|
),
|
|
48171
48203
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -48179,7 +48211,7 @@ var Carousel = _react.forwardRef.call(void 0, function Carousel2({ children, ite
|
|
|
48179
48211
|
onClick: () => {
|
|
48180
48212
|
if (!edges.atEnd) page(1);
|
|
48181
48213
|
},
|
|
48182
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48214
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretRightIcon, { weight: "bold", "aria-hidden": "true" })
|
|
48183
48215
|
}
|
|
48184
48216
|
)
|
|
48185
48217
|
] }) : null
|
|
@@ -48511,7 +48543,7 @@ var ImageField = _react.forwardRef.call(void 0, function ImageField2({
|
|
|
48511
48543
|
actions.push({
|
|
48512
48544
|
key: "upload",
|
|
48513
48545
|
words: busy === "upload" ? labels.uploading : showingDefault && !onPick ? labels.useDifferent : state === "empty" ? labels.upload : labels.replace,
|
|
48514
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48546
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.UploadSimpleIcon, {}),
|
|
48515
48547
|
run: drop.open,
|
|
48516
48548
|
action: "upload"
|
|
48517
48549
|
});
|
|
@@ -48520,7 +48552,7 @@ var ImageField = _react.forwardRef.call(void 0, function ImageField2({
|
|
|
48520
48552
|
actions.push({
|
|
48521
48553
|
key: "pick",
|
|
48522
48554
|
words: showingDefault ? labels.useDifferent : onUpload ? labels.library : state === "empty" ? labels.choose : labels.change,
|
|
48523
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48555
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ImagesIcon, {}),
|
|
48524
48556
|
run: onPick,
|
|
48525
48557
|
action: "pick"
|
|
48526
48558
|
});
|
|
@@ -48529,7 +48561,7 @@ var ImageField = _react.forwardRef.call(void 0, function ImageField2({
|
|
|
48529
48561
|
actions.push({
|
|
48530
48562
|
key: "generate",
|
|
48531
48563
|
words: busy === "generate" ? labels.generating : labels.generate,
|
|
48532
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48564
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.SparkleIcon, {}),
|
|
48533
48565
|
run: () => track("generate", onGenerate),
|
|
48534
48566
|
action: "generate"
|
|
48535
48567
|
});
|
|
@@ -48538,7 +48570,7 @@ var ImageField = _react.forwardRef.call(void 0, function ImageField2({
|
|
|
48538
48570
|
actions.push({
|
|
48539
48571
|
key: "remove",
|
|
48540
48572
|
words: inheritedMode ? labels.useDefault : labels.remove,
|
|
48541
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48573
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TrashIcon, {}),
|
|
48542
48574
|
run: () => track("remove", onRemove),
|
|
48543
48575
|
action: "remove",
|
|
48544
48576
|
variant: "ghost"
|
|
@@ -48603,7 +48635,7 @@ var ImageField = _react.forwardRef.call(void 0, function ImageField2({
|
|
|
48603
48635
|
"aria-label": label
|
|
48604
48636
|
},
|
|
48605
48637
|
shown
|
|
48606
|
-
) : broken === shown ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-image-field__broken", role: "img", "aria-label": label, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48638
|
+
) : broken === shown ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-image-field__broken", role: "img", "aria-label": label, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ImageBrokenIcon, { "aria-hidden": "true" }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48607
48639
|
"img",
|
|
48608
48640
|
{
|
|
48609
48641
|
className: "o-image-field__image",
|
|
@@ -48615,10 +48647,10 @@ var ImageField = _react.forwardRef.call(void 0, function ImageField2({
|
|
|
48615
48647
|
},
|
|
48616
48648
|
shown
|
|
48617
48649
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-image-field__empty", "aria-hidden": "true", children: [
|
|
48618
|
-
onUpload && !onPick ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48650
|
+
onUpload && !onPick ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.UploadSimpleIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ImageSquareIcon, {}),
|
|
48619
48651
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-image-field__add", children: drop.dragging ? labels.dropActive : labels.add })
|
|
48620
48652
|
] }),
|
|
48621
|
-
state === "filled" && clickable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-image-field__change", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48653
|
+
state === "filled" && clickable ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-image-field__change", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PencilSimpleIcon, { weight: "bold" }) }) : null,
|
|
48622
48654
|
busy === "upload" || busy === "generate" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-image-field__busy", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: variant === "favicon" ? 14 : 20 }) }) : null
|
|
48623
48655
|
]
|
|
48624
48656
|
}
|
|
@@ -48795,7 +48827,7 @@ var SitePreview = _react.forwardRef.call(void 0, function SitePreview2({ name, d
|
|
|
48795
48827
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-site-preview__address", children: domain || labels.noDomain })
|
|
48796
48828
|
] }),
|
|
48797
48829
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-site-preview__page", children: [
|
|
48798
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-site-preview__initial", children: initial || /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48830
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-site-preview__initial", children: initial || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.StorefrontIcon, {}) }),
|
|
48799
48831
|
state === "generating" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-site-preview__generating", children: [
|
|
48800
48832
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 12 }),
|
|
48801
48833
|
labels.generating
|
|
@@ -49036,7 +49068,7 @@ var BackToTopPreview = _react.forwardRef.call(void 0, function BackToTopPreview2
|
|
|
49036
49068
|
},
|
|
49037
49069
|
...rest,
|
|
49038
49070
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-widget__button", "data-shape": "circle", children: [
|
|
49039
|
-
showIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-widget__icon", children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
49071
|
+
showIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-widget__icon", children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretUpIcon, { weight: "bold" }))) }) : null,
|
|
49040
49072
|
showLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-widget__words", children: _nullishCoalesce(label, () => ( words2.backToTop)) }) : null
|
|
49041
49073
|
] })
|
|
49042
49074
|
}
|
|
@@ -49079,7 +49111,7 @@ var ContactButtonPreview = _react.forwardRef.call(void 0, function ContactButton
|
|
|
49079
49111
|
},
|
|
49080
49112
|
...rest,
|
|
49081
49113
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-widget__button", "data-shape": shape, children: [
|
|
49082
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-widget__icon", children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
49114
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-widget__icon", children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ChatCircleIcon, { weight: "fill" }))) }),
|
|
49083
49115
|
showLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-widget__words", children: _nullishCoalesce(label, () => ( words2.contact)) }) : null
|
|
49084
49116
|
] })
|
|
49085
49117
|
}
|
|
@@ -49102,7 +49134,7 @@ var LiveChatPreview = _react.forwardRef.call(void 0, function LiveChatPreview2({
|
|
|
49102
49134
|
...style
|
|
49103
49135
|
},
|
|
49104
49136
|
...rest,
|
|
49105
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-widget__button", "data-shape": "circle", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-widget__icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
49137
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-widget__button", "data-shape": "circle", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-widget__icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ChatTeardropDotsIcon, { weight: "fill" }) }) })
|
|
49106
49138
|
}
|
|
49107
49139
|
);
|
|
49108
49140
|
});
|
|
@@ -51147,7 +51179,7 @@ function KanbanColumnView({
|
|
|
51147
51179
|
onClick,
|
|
51148
51180
|
children: [
|
|
51149
51181
|
renderCard(item, state),
|
|
51150
|
-
held2 ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { ...list.handleProps(entry), className: "o-kanban__handle", "aria-label": labels.handle(entry.label), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51182
|
+
held2 ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { ...list.handleProps(entry), className: "o-kanban__handle", "aria-label": labels.handle(entry.label), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DotsSixVerticalIcon, { size: 14, weight: "bold", "aria-hidden": "true" }) })
|
|
51151
51183
|
]
|
|
51152
51184
|
},
|
|
51153
51185
|
entry.reactKey
|
|
@@ -51367,7 +51399,7 @@ var DealCard = _react.forwardRef.call(void 0, function DealCard2({
|
|
|
51367
51399
|
status === "won" || status === "lost" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Badge, { size: "sm", tone: status === "won" ? "positive" : "negative", children: status === "won" ? labels.won : labels.lost }) : null
|
|
51368
51400
|
] }) : null,
|
|
51369
51401
|
customer ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-deal-card__customer", children: [
|
|
51370
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51402
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.UserIcon, { size: 14, "aria-hidden": "true" }),
|
|
51371
51403
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-deal-card__customer-name", children: customer })
|
|
51372
51404
|
] }) : null,
|
|
51373
51405
|
closeText || owner ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-deal-card__foot", children: [
|
|
@@ -51378,7 +51410,7 @@ var DealCard = _react.forwardRef.call(void 0, function DealCard2({
|
|
|
51378
51410
|
tone: overdue ? "negative" : "neutral",
|
|
51379
51411
|
className: "o-deal-card__close",
|
|
51380
51412
|
"data-overdue": dataFlag(overdue),
|
|
51381
|
-
icon: overdue ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51413
|
+
icon: overdue ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningCircleIcon, { size: 12, weight: "bold" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CalendarDotsIcon, { size: 12 }),
|
|
51382
51414
|
children: [
|
|
51383
51415
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", children: closeText }),
|
|
51384
51416
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-sr-only", children: overdue ? labels.overdue(closeText) : labels.closes(closeText) })
|
|
@@ -51941,7 +51973,7 @@ var SortableTree = _react.forwardRef.call(void 0, function SortableTree2({
|
|
|
51941
51973
|
"data-rtl": dataFlag(grab.current.rtl),
|
|
51942
51974
|
style: { "--o-sortable-tree-grab": `${grab.current.at}px`, "--o-sortable-tree-clear": `${grab.current.clear}px` },
|
|
51943
51975
|
children: [
|
|
51944
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51976
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DotsSixVerticalIcon, { className: "o-sortable-tree__lifted-grip", weight: "bold" }),
|
|
51945
51977
|
hasContent(row.node.icon) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-sortable-tree__lifted-icon", children: row.node.icon }) : null,
|
|
51946
51978
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-sortable-tree__lifted-label", children: row.node.label }),
|
|
51947
51979
|
(_nullishCoalesce(_optionalChain([row, 'access', _2162 => _2162.node, 'access', _2163 => _2163.children, 'optionalAccess', _2164 => _2164.length]), () => ( 0))) > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-tree__count", children: `+${countTreeNodes(row.node.children)}` }) : null
|
|
@@ -52135,7 +52167,7 @@ var SortableTree = _react.forwardRef.call(void 0, function SortableTree2({
|
|
|
52135
52167
|
toggleEditorNow.current = toggleEditor;
|
|
52136
52168
|
const drawStart = _react.useCallback.call(void 0,
|
|
52137
52169
|
(node, state) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
52138
|
-
disabled ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-sortable-tree__grip", "data-sortable-handle": "", "data-drag-handle": "", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52170
|
+
disabled ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-sortable-tree__grip", "data-sortable-handle": "", "data-drag-handle": "", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DotsSixVerticalIcon, { weight: "bold" }) }),
|
|
52139
52171
|
_optionalChain([renderStart, 'optionalCall', _2188 => _2188(node, state)])
|
|
52140
52172
|
] }),
|
|
52141
52173
|
[disabled, renderStart]
|
|
@@ -52159,7 +52191,7 @@ var SortableTree = _react.forwardRef.call(void 0, function SortableTree2({
|
|
|
52159
52191
|
if (!onAddChild && !renderEditor && !hasContent(theirs)) return null;
|
|
52160
52192
|
const room = maxDepth === void 0 || treeDepthOf(node.id, parents) + 2 <= maxDepth;
|
|
52161
52193
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
52162
|
-
onAddChild && room ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { size: "xs", variant: "ghost", label: labels.addChild(node.label), onClick: () => onAddChild(node), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52194
|
+
onAddChild && room ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { size: "xs", variant: "ghost", label: labels.addChild(node.label), onClick: () => onAddChild(node), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, {}) }) : null,
|
|
52163
52195
|
renderEditor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52164
52196
|
IconButton,
|
|
52165
52197
|
{
|
|
@@ -52169,7 +52201,7 @@ var SortableTree = _react.forwardRef.call(void 0, function SortableTree2({
|
|
|
52169
52201
|
"aria-expanded": isEditing,
|
|
52170
52202
|
"aria-controls": isEditing ? `${baseId}-editor-${encodeURIComponent(node.id)}` : void 0,
|
|
52171
52203
|
onClick: () => toggleEditorNow.current(node),
|
|
52172
|
-
children: isEditing ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52204
|
+
children: isEditing ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PencilSimpleIcon, {})
|
|
52173
52205
|
}
|
|
52174
52206
|
) : null,
|
|
52175
52207
|
theirs
|
|
@@ -52282,10 +52314,10 @@ var LEAVE_MS = 240;
|
|
|
52282
52314
|
var MARKS2 = {
|
|
52283
52315
|
unsaved: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-save-status__dot" }),
|
|
52284
52316
|
saving: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 12 }),
|
|
52285
|
-
saved: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52286
|
-
invalid: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52287
|
-
failed: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52288
|
-
local: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52317
|
+
saved: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CheckIcon, { weight: "bold" }),
|
|
52318
|
+
invalid: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningCircleIcon, { weight: "fill" }),
|
|
52319
|
+
failed: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CloudSlashIcon, { weight: "bold" }),
|
|
52320
|
+
local: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningIcon, { weight: "fill" })
|
|
52289
52321
|
};
|
|
52290
52322
|
var SaveStatus = _react.forwardRef.call(void 0, function SaveStatus2({ status, savedAt, locale = "en-GB", hideSavedAfter, compact = false, tooltip = true, labels, className, ...rest }, ref) {
|
|
52291
52323
|
const words2 = withDefaultLabels(saveStatusLabels, labels);
|
|
@@ -52384,7 +52416,7 @@ function useDragSource() {
|
|
|
52384
52416
|
var EMPTY_IMAGE = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
|
|
52385
52417
|
function glyphOf2(icon) {
|
|
52386
52418
|
if (typeof icon === "string") {
|
|
52387
|
-
const Glyph =
|
|
52419
|
+
const Glyph = _chunkUY22Q2WOcjs.lucideIcon.call(void 0, icon);
|
|
52388
52420
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Glyph, {});
|
|
52389
52421
|
}
|
|
52390
52422
|
return icon;
|
|
@@ -53097,7 +53129,7 @@ var CanvasBreadcrumb = _react.forwardRef.call(void 0, function CanvasBreadcrumb2
|
|
|
53097
53129
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { ref: setRef5, "aria-label": label, className: cx("o-canvas-breadcrumb", className), ...rest, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "o-canvas-breadcrumb__list", children: items.map((item, index) => {
|
|
53098
53130
|
const last = index === items.length - 1;
|
|
53099
53131
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "li", { className: "o-canvas-breadcrumb__item", children: [
|
|
53100
|
-
index > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-canvas-breadcrumb__sep", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53132
|
+
index > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-canvas-breadcrumb__sep", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretRightIcon, { weight: "bold" }) }) : null,
|
|
53101
53133
|
last ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-canvas-breadcrumb__crumb", "aria-current": "true", title: item.label, children: item.label }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53102
53134
|
"button",
|
|
53103
53135
|
{
|
|
@@ -53232,7 +53264,7 @@ var SectionSlotMarker = _react.forwardRef.call(void 0, function SectionSlotMarke
|
|
|
53232
53264
|
"aria-hidden": "true",
|
|
53233
53265
|
...rest,
|
|
53234
53266
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-section-slot__label", children: [
|
|
53235
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53267
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PlusIcon, { weight: "bold" }),
|
|
53236
53268
|
label
|
|
53237
53269
|
] })
|
|
53238
53270
|
}
|
|
@@ -53345,7 +53377,7 @@ var ElementToolbarGrip = _react.forwardRef.call(void 0, function ElementToolbarG
|
|
|
53345
53377
|
ElementToolbarButton,
|
|
53346
53378
|
{
|
|
53347
53379
|
ref: setRef5,
|
|
53348
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53380
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DotsSixVerticalIcon, { weight: "bold" }),
|
|
53349
53381
|
label,
|
|
53350
53382
|
className: cx("o-element-toolbar__grip", className),
|
|
53351
53383
|
...rest
|
|
@@ -53369,7 +53401,7 @@ var ElementToolbarPill = _react.forwardRef.call(void 0, function ElementToolbarP
|
|
|
53369
53401
|
"aria-pressed": pressed,
|
|
53370
53402
|
...rest,
|
|
53371
53403
|
children: [
|
|
53372
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-element-toolbar__pill-icon", "aria-hidden": "true", children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53404
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-element-toolbar__pill-icon", "aria-hidden": "true", children: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.SparkleIcon, { weight: "fill" }))) }),
|
|
53373
53405
|
children
|
|
53374
53406
|
]
|
|
53375
53407
|
}
|
|
@@ -53377,7 +53409,7 @@ var ElementToolbarPill = _react.forwardRef.call(void 0, function ElementToolbarP
|
|
|
53377
53409
|
return label ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tooltip, { content: label, side: "top", children: pill }) : pill;
|
|
53378
53410
|
});
|
|
53379
53411
|
function ElementToolbarMenu({ label = elementToolbarLabels.more, icon, children }) {
|
|
53380
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolbarMenu, { label, icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53412
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolbarMenu, { label, icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.DotsThreeVerticalIcon, { weight: "bold" }))), align: "end", className: "o-element-toolbar__button", children });
|
|
53381
53413
|
}
|
|
53382
53414
|
var ElementToolbarDelete = _react.forwardRef.call(void 0, function ElementToolbarDelete2({ name, onDelete, onUndo, disabledReason, labels, ...rest }, ref) {
|
|
53383
53415
|
const words2 = withDefaultLabels(elementToolbarLabels, labels);
|
|
@@ -53385,7 +53417,7 @@ var ElementToolbarDelete = _react.forwardRef.call(void 0, function ElementToolba
|
|
|
53385
53417
|
ElementToolbarButton,
|
|
53386
53418
|
{
|
|
53387
53419
|
ref,
|
|
53388
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53420
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.TrashIcon, {}),
|
|
53389
53421
|
label: words2.delete,
|
|
53390
53422
|
tone: disabledReason ? void 0 : "critical",
|
|
53391
53423
|
disabledReason,
|
|
@@ -53519,11 +53551,11 @@ var ElementToolbar = _react.forwardRef.call(void 0, function ElementToolbar2({
|
|
|
53519
53551
|
const grip = dragRef !== void 0 || onDragPointerDown !== void 0;
|
|
53520
53552
|
const folded = [];
|
|
53521
53553
|
if (compact) {
|
|
53522
|
-
if (onInsertAbove) folded.push({ key: "above", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53523
|
-
if (onInsertBelow) folded.push({ key: "below", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53524
|
-
if (onDuplicate) folded.push({ key: "duplicate", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53525
|
-
if (onMoveUp) folded.push({ key: "up", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53526
|
-
if (onMoveDown) folded.push({ key: "down", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53554
|
+
if (onInsertAbove) folded.push({ key: "above", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowLineUpIcon, {}), label: words2.insertAbove, run: onInsertAbove });
|
|
53555
|
+
if (onInsertBelow) folded.push({ key: "below", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowLineDownIcon, {}), label: words2.insertBelow, run: onInsertBelow });
|
|
53556
|
+
if (onDuplicate) folded.push({ key: "duplicate", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CopyIcon, {}), label: words2.duplicate, run: onDuplicate });
|
|
53557
|
+
if (onMoveUp) folded.push({ key: "up", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretUpIcon, {}), label: words2.moveUp, run: onMoveUp });
|
|
53558
|
+
if (onMoveDown) folded.push({ key: "down", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretDownIcon, {}), label: words2.moveDown, run: onMoveDown });
|
|
53527
53559
|
}
|
|
53528
53560
|
const menuRows = folded.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
53529
53561
|
folded.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MenuItem, { icon: row.icon, onSelect: row.run, children: row.label }, row.key)),
|
|
@@ -53562,17 +53594,17 @@ var ElementToolbar = _react.forwardRef.call(void 0, function ElementToolbar2({
|
|
|
53562
53594
|
style: { touchAction: "none" }
|
|
53563
53595
|
}
|
|
53564
53596
|
) : null,
|
|
53565
|
-
onSelectParent ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarButton, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53597
|
+
onSelectParent ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarButton, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowElbowLeftUpIcon, {}), label: words2.selectParent, onClick: onSelectParent }) : null,
|
|
53566
53598
|
compact ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarName, { name, flags }),
|
|
53567
53599
|
onRewrite ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarPill, { label: words2.rewriteLabel, pressed: rewriteOpen, onClick: onRewrite, children: words2.rewrite }) : null,
|
|
53568
53600
|
extra,
|
|
53569
|
-
onAddColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarButton, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53570
|
-
onInsertAbove && !compact ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarButton, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53571
|
-
onInsertBelow && !compact ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarButton, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53601
|
+
onAddColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarButton, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ColumnsPlusRightIcon, {}), label: words2.addColumn, onClick: onAddColumn }) : null,
|
|
53602
|
+
onInsertAbove && !compact ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarButton, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowLineUpIcon, {}), label: words2.insertAbove, onClick: onInsertAbove }) : null,
|
|
53603
|
+
onInsertBelow && !compact ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarButton, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowLineDownIcon, {}), label: words2.insertBelow, onClick: onInsertBelow }) : null,
|
|
53572
53604
|
menuRows ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarMenu, { label: words2.more, children: menuRows }) : null,
|
|
53573
|
-
onDuplicate && !compact ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarButton, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53574
|
-
onMoveUp && !compact ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarButton, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53575
|
-
onMoveDown && !compact ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarButton, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53605
|
+
onDuplicate && !compact ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarButton, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CopyIcon, {}), label: words2.duplicate, onClick: onDuplicate }) : null,
|
|
53606
|
+
onMoveUp && !compact ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarButton, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretUpIcon, {}), label: words2.moveUp, onClick: onMoveUp }) : null,
|
|
53607
|
+
onMoveDown && !compact ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ElementToolbarButton, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.CaretDownIcon, {}), label: words2.moveDown, onClick: onMoveDown }) : null,
|
|
53576
53608
|
onDelete || deleteDisabledReason ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53577
53609
|
ElementToolbarDelete,
|
|
53578
53610
|
{
|
|
@@ -53778,7 +53810,7 @@ var WorkingStatus = _react.forwardRef.call(void 0, function WorkingStatus2({
|
|
|
53778
53810
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-working__indicator", "aria-hidden": "true", children: indicator === "dots" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WorkingDots, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrbitSpinner, { size: 12 }) }),
|
|
53779
53811
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-working__words", children: words2 })
|
|
53780
53812
|
] }) : null,
|
|
53781
|
-
busy && onStop ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "o-working__stop", variant: "secondary", size: "xs", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53813
|
+
busy && onStop ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "o-working__stop", variant: "secondary", size: "xs", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.StopIcon, { weight: "fill" }), onClick: onStop, children: labels.stop }) : null,
|
|
53782
53814
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, LiveStatus, { children: said })
|
|
53783
53815
|
]
|
|
53784
53816
|
}
|
|
@@ -54676,7 +54708,7 @@ function ComposerImpl({
|
|
|
54676
54708
|
className: "o-composer__send",
|
|
54677
54709
|
"data-stop": "",
|
|
54678
54710
|
onClick: onStop,
|
|
54679
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54711
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.StopIcon, { weight: "fill" })
|
|
54680
54712
|
},
|
|
54681
54713
|
"stop"
|
|
54682
54714
|
) : sendAppearance === "text" && !pill ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -54704,7 +54736,7 @@ function ComposerImpl({
|
|
|
54704
54736
|
"aria-disabled": !canSend && !pending ? true : void 0,
|
|
54705
54737
|
disabledReason: sendReason,
|
|
54706
54738
|
onClick: () => send(),
|
|
54707
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54739
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowUpIcon, { weight: "bold" })
|
|
54708
54740
|
},
|
|
54709
54741
|
"send"
|
|
54710
54742
|
);
|
|
@@ -54713,7 +54745,7 @@ function ComposerImpl({
|
|
|
54713
54745
|
ToolbarButton,
|
|
54714
54746
|
{
|
|
54715
54747
|
label: labels.attach,
|
|
54716
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54748
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PaperclipIcon, {}),
|
|
54717
54749
|
className: "o-composer__tool",
|
|
54718
54750
|
disabledReason: attachReason,
|
|
54719
54751
|
onClick: () => {
|
|
@@ -54731,7 +54763,7 @@ function ComposerImpl({
|
|
|
54731
54763
|
onClick: () => {
|
|
54732
54764
|
if (!attachReason) drop.open();
|
|
54733
54765
|
},
|
|
54734
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54766
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PaperclipIcon, {})
|
|
54735
54767
|
}
|
|
54736
54768
|
) }),
|
|
54737
54769
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { ...input, ref: inputRef })
|
|
@@ -54744,7 +54776,7 @@ function ComposerImpl({
|
|
|
54744
54776
|
ToolbarButton,
|
|
54745
54777
|
{
|
|
54746
54778
|
label: labels.expand,
|
|
54747
|
-
icon: expanded ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54779
|
+
icon: expanded ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowsInSimpleIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowsOutSimpleIcon, {}),
|
|
54748
54780
|
className: "o-composer__tool",
|
|
54749
54781
|
pressed: expanded,
|
|
54750
54782
|
onClick: toggleExpanded
|
|
@@ -54758,7 +54790,7 @@ function ComposerImpl({
|
|
|
54758
54790
|
className: "o-composer__tool",
|
|
54759
54791
|
pressed: expanded,
|
|
54760
54792
|
onClick: toggleExpanded,
|
|
54761
|
-
children: expanded ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54793
|
+
children: expanded ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowsInSimpleIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowsOutSimpleIcon, {})
|
|
54762
54794
|
}
|
|
54763
54795
|
) });
|
|
54764
54796
|
const attachmentRow = attachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FileChipRow, { "aria-label": labels.attachments, className: "o-composer__attachments", children: attachments.map((attachment) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -54954,7 +54986,7 @@ var ReplyFeedback = _react.forwardRef.call(void 0, function ReplyFeedback2({ onR
|
|
|
54954
54986
|
pressed: given === "up" ? true : void 0,
|
|
54955
54987
|
"aria-disabled": given ? true : void 0,
|
|
54956
54988
|
onClick: () => vote("up"),
|
|
54957
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54989
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ThumbsUpIcon, { weight: given === "up" ? "fill" : "regular" })
|
|
54958
54990
|
}
|
|
54959
54991
|
) }),
|
|
54960
54992
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tooltip, { content: labels.down, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -54976,7 +55008,7 @@ var ReplyFeedback = _react.forwardRef.call(void 0, function ReplyFeedback2({ onR
|
|
|
54976
55008
|
if (reasons.length === 0) vote("down");
|
|
54977
55009
|
else setPicking((open) => !open);
|
|
54978
55010
|
},
|
|
54979
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
55011
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ThumbsDownIcon, { weight: given === "down" ? "fill" : "regular" })
|
|
54980
55012
|
}
|
|
54981
55013
|
) }),
|
|
54982
55014
|
picking && !given ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id: reasonsId, role: "group", "aria-label": labels.reasons, className: "o-reply-feedback__reasons", onKeyDown: onReasonsKeyDown, children: reasons.map((reason) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -55823,7 +55855,7 @@ var MessageBubble = _react.forwardRef.call(void 0, function MessageBubble2({
|
|
|
55823
55855
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "video", { className: "o-message__video", src: url, controls: true, preload: "metadata", "aria-label": label }, attachment.id);
|
|
55824
55856
|
}
|
|
55825
55857
|
const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
55826
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-message__file-icon", "aria-hidden": "true", children: attachmentSize === "sm" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
55858
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-message__file-icon", "aria-hidden": "true", children: attachmentSize === "sm" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.FileTextIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.PaperclipIcon, {}) }),
|
|
55827
55859
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-message__file-text", children: [
|
|
55828
55860
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-message__file-name", children: label }),
|
|
55829
55861
|
attachmentSize === "lg" && attachment.size ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-message__file-size", children: formatFileSize(attachment.size) }) : null
|
|
@@ -55849,7 +55881,7 @@ var MessageBubble = _react.forwardRef.call(void 0, function MessageBubble2({
|
|
|
55849
55881
|
present(time) && present(delivery) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", children: " \xB7 " }) : null,
|
|
55850
55882
|
present(delivery) ? present(deliveryDetail) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
55851
55883
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tooltip, { content: deliveryDetail, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "button", { type: "button", className: "o-message__delivery", "aria-describedby": detailId, children: [
|
|
55852
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
55884
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.EnvelopeSimpleIcon, { "aria-hidden": "true" }),
|
|
55853
55885
|
delivery
|
|
55854
55886
|
] }) }),
|
|
55855
55887
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: detailId, hidden: true, children: deliveryDetail })
|
|
@@ -55867,7 +55899,7 @@ var MessageBubble = _react.forwardRef.call(void 0, function MessageBubble2({
|
|
|
55867
55899
|
present(name) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-message__name", children: name }) : null
|
|
55868
55900
|
] }) : null;
|
|
55869
55901
|
const errorCard = failed ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-message__error", children: [
|
|
55870
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
55902
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.WarningCircleIcon, { className: "o-message__error-icon", weight: "fill", "aria-hidden": "true" }),
|
|
55871
55903
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-message__error-text", children: [
|
|
55872
55904
|
present(errorTitle) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "o-message__error-title", children: errorTitle }) : null,
|
|
55873
55905
|
present(error) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-message__error-body", children: error }) : null
|
|
@@ -55875,10 +55907,10 @@ var MessageBubble = _react.forwardRef.call(void 0, function MessageBubble2({
|
|
|
55875
55907
|
] }) : null;
|
|
55876
55908
|
const safeLink = link && safeMessageUrl(link.href) ? link : void 0;
|
|
55877
55909
|
const extras = kind === "assistant" || kind === "bot" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
55878
|
-
onStop && !failed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-message__stop", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant: "secondary", size: "xs", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
55910
|
+
onStop && !failed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-message__stop", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { variant: "secondary", size: "xs", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.StopIcon, { weight: "fill" }), onClick: onStop, children: _nullishCoalesce(stopLabel, () => ( labels.stop)) }) }) : null,
|
|
55879
55911
|
!failed && present(actions) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-message__actions", children: actions }) : null,
|
|
55880
55912
|
!failed && !streaming && present(feedback) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-message__feedback", children: feedback }) : null,
|
|
55881
|
-
safeLink && !failed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-message__link", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { asChild: true, variant: "secondary", size: "sm", iconEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
55913
|
+
safeLink && !failed ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-message__link", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { asChild: true, variant: "secondary", size: "sm", iconEnd: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowSquareOutIcon, {}), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: safeLink.href, target: "_blank", rel: "noopener noreferrer", children: safeLink.label }) }) }) : null,
|
|
55882
55914
|
options && options.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-message__options", role: "group", "aria-label": labels.options, children: options.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Chip, { onAction: () => _optionalChain([onSelectOption, 'optionalCall', _2368 => _2368(option)]), children: option }, option)) }) : null
|
|
55883
55915
|
] }) : null;
|
|
55884
55916
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -56024,7 +56056,7 @@ var MessageThread = _react.forwardRef.call(void 0, function MessageThread2({ lab
|
|
|
56024
56056
|
children,
|
|
56025
56057
|
typing ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-message-thread__typing", children: typing }) : null
|
|
56026
56058
|
] }),
|
|
56027
|
-
jump ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-message-thread__jump", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { size: "xs", variant: "secondary", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56059
|
+
jump ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-message-thread__jump", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { size: "xs", variant: "secondary", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowDownIcon, {}), onClick: toEnd, children: labels.jump }) }) : null,
|
|
56028
56060
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "o-sr-only o-message-thread__status", role: "status", children: said.text ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: said.text }, said.key) : null })
|
|
56029
56061
|
]
|
|
56030
56062
|
}
|
|
@@ -56187,7 +56219,7 @@ var ChatComposer = _react.forwardRef.call(void 0, function ChatComposer2({
|
|
|
56187
56219
|
ToolbarButton,
|
|
56188
56220
|
{
|
|
56189
56221
|
label: labels.emoji,
|
|
56190
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56222
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.SmileyIcon, {}),
|
|
56191
56223
|
className: "o-composer__tool",
|
|
56192
56224
|
disabledReason: disabled ? disabledReason : void 0,
|
|
56193
56225
|
"aria-disabled": disabled || void 0
|
|
@@ -56205,7 +56237,7 @@ var ChatComposer = _react.forwardRef.call(void 0, function ChatComposer2({
|
|
|
56205
56237
|
ToolbarButton,
|
|
56206
56238
|
{
|
|
56207
56239
|
label: labels.gif,
|
|
56208
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56240
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.GifIcon, {}),
|
|
56209
56241
|
className: "o-composer__tool",
|
|
56210
56242
|
disabledReason: disabled ? disabledReason : void 0,
|
|
56211
56243
|
"aria-disabled": disabled || void 0
|
|
@@ -56218,7 +56250,7 @@ var ChatComposer = _react.forwardRef.call(void 0, function ChatComposer2({
|
|
|
56218
56250
|
ToolbarButton,
|
|
56219
56251
|
{
|
|
56220
56252
|
label: labels.savedReplies,
|
|
56221
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56253
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ChatTextIcon, {}),
|
|
56222
56254
|
className: "o-composer__tool",
|
|
56223
56255
|
pressed: listOpen,
|
|
56224
56256
|
disabledReason: disabled ? disabledReason : void 0,
|
|
@@ -56296,7 +56328,7 @@ var ChatComposer = _react.forwardRef.call(void 0, function ChatComposer2({
|
|
|
56296
56328
|
),
|
|
56297
56329
|
undo !== null ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "o-chat-composer__undo", children: [
|
|
56298
56330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: labels.assistApplied }),
|
|
56299
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tooltip, { content: labels.assistUndo, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { label: labels.assistUndo, variant: "ghost", size: "xs", onClick: takeBack, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56331
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tooltip, { content: labels.assistUndo, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconButton, { label: labels.assistUndo, variant: "ghost", size: "xs", onClick: takeBack, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowCounterClockwiseIcon, {}) }) })
|
|
56300
56332
|
] }) : null,
|
|
56301
56333
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, LiveStatus, { className: "o-chat-composer__status", children: undo !== null ? `${labels.assistApplied}${"\u200B".repeat(swaps % 2)}` : "" })
|
|
56302
56334
|
]
|
|
@@ -56335,7 +56367,7 @@ function Layers({ sweep, tint = false }) {
|
|
|
56335
56367
|
tint ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-ai-highlight__tint", "aria-hidden": "true" }) : null,
|
|
56336
56368
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-ai-highlight__bloom", "aria-hidden": "true" }),
|
|
56337
56369
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-ai-highlight__ring", "aria-hidden": "true", children: sweep ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-ai-highlight__sweep", "aria-hidden": "true" }) : null }),
|
|
56338
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-ai-highlight__mark", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56370
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-ai-highlight__mark", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.SparkleIcon, { weight: "fill" }) })
|
|
56339
56371
|
] });
|
|
56340
56372
|
}
|
|
56341
56373
|
var AiHighlight = _react.forwardRef.call(void 0, function AiHighlight2({
|
|
@@ -56860,7 +56892,7 @@ var CollabField = _react.forwardRef.call(void 0, function CollabField2({
|
|
|
56860
56892
|
updated.value ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
56861
56893
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "o-collab-field__wash", "data-leaving": dataFlag(updated.leaving), "aria-hidden": "true" }),
|
|
56862
56894
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "o-collab-field__updated", "data-leaving": dataFlag(updated.leaving), children: [
|
|
56863
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56895
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY22Q2WOcjs.ArrowsClockwiseIcon, { weight: "bold", "aria-hidden": "true" }),
|
|
56864
56896
|
labels.justUpdated(firstName(updated.value.name))
|
|
56865
56897
|
] })
|
|
56866
56898
|
] }) : null,
|