@ag2/weave 0.18.0 → 0.20.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/dist/components/account-card/AccountCard.css.d.ts +2 -0
- package/dist/components/account-card/AccountCard.d.ts +14 -0
- package/dist/components/account-card/index.d.ts +1 -0
- package/dist/components/color-swatch-picker/ColorSwatchPicker.css.d.ts +4 -0
- package/dist/components/color-swatch-picker/ColorSwatchPicker.d.ts +17 -0
- package/dist/components/color-swatch-picker/index.d.ts +1 -0
- package/dist/components/form/Form.d.ts +2 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/media-frame/MediaFrame.css.d.ts +6 -0
- package/dist/components/media-frame/MediaFrame.d.ts +19 -0
- package/dist/components/media-frame/index.d.ts +1 -0
- package/dist/components/onboarding-button/OnboardingButton.css.d.ts +1 -0
- package/dist/components/onboarding-button/OnboardingButton.d.ts +19 -0
- package/dist/components/onboarding-button/index.d.ts +1 -0
- package/dist/components/onboarding-chip/OnboardingChip.css.d.ts +2 -0
- package/dist/components/onboarding-chip/OnboardingChip.d.ts +10 -0
- package/dist/components/onboarding-chip/index.d.ts +1 -0
- package/dist/components/onboarding-key-button/OnboardingKeyButton.css.d.ts +4 -0
- package/dist/components/onboarding-key-button/OnboardingKeyButton.d.ts +12 -0
- package/dist/components/onboarding-key-button/index.d.ts +1 -0
- package/dist/components/onboarding-motion/OnboardingMotion.css.d.ts +6 -0
- package/dist/components/onboarding-motion/OnboardingMotion.d.ts +34 -0
- package/dist/components/onboarding-motion/index.d.ts +1 -0
- package/dist/components/onboarding-setup/OnboardingSetup.css.d.ts +21 -0
- package/dist/components/onboarding-setup/OnboardingSetup.d.ts +91 -0
- package/dist/components/onboarding-setup/index.d.ts +1 -0
- package/dist/components/option-card/OptionCard.css.d.ts +7 -0
- package/dist/components/option-card/OptionCard.d.ts +18 -0
- package/dist/components/option-card/index.d.ts +1 -0
- package/dist/components/orb-background/OrbBackground.d.ts +3 -2
- package/dist/components/orb-background/orbField.d.ts +16 -1
- package/dist/index.js +1025 -110
- package/dist/index.js.map +1 -1
- package/dist/style.css +750 -1
- package/dist/theme/agentColors.d.ts +47 -0
- package/dist/theme/auraColors.d.ts +39 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/onboarding.d.ts +13 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -862,6 +862,50 @@ const readingTypography = {
|
|
|
862
862
|
measure: "75ch"
|
|
863
863
|
}
|
|
864
864
|
};
|
|
865
|
+
const onboardingTokens = {
|
|
866
|
+
surface: colorScale.Neutral[0],
|
|
867
|
+
ink: brandColors.Ink,
|
|
868
|
+
keyFill: brandColors.Ink,
|
|
869
|
+
keyInk: colorScale.Neutral[0],
|
|
870
|
+
keyPressedInk: brandColors.Ink,
|
|
871
|
+
keyGradient: `linear-gradient(105deg, ${brandColors.Sky}, ${brandColors.Pink} 52%, ${brandColors.Orange})`,
|
|
872
|
+
cardShadow: `0 8px 32px color-mix(in srgb, ${brandColors.Ink} 9%, transparent)`,
|
|
873
|
+
/** Brand/Ember inner glow on white: Brand buttons, selected option cards. */
|
|
874
|
+
brandGlow: `inset 2px 2px 10px color-mix(in srgb, ${brandColors.Orange} 30%, transparent), inset -2px -2px 10px color-mix(in srgb, ${brandColors.Orange} 30%, transparent)`,
|
|
875
|
+
brandGlowStrong: `inset 2px 2px 12px color-mix(in srgb, ${brandColors.Orange} 45%, transparent), inset -2px -2px 12px color-mix(in srgb, ${brandColors.Orange} 45%, transparent)`
|
|
876
|
+
};
|
|
877
|
+
const agentColorTokens = {
|
|
878
|
+
ember: { label: "Ember", center: brandColors.Orange, rim: colorScale.Orange[600] },
|
|
879
|
+
pink: { label: "Pink", center: brandColors.Pink, rim: colorScale.Pink[500] },
|
|
880
|
+
sky: { label: "Sky", center: brandColors.Sky, rim: brandColors.Indigo },
|
|
881
|
+
mint: { label: "Mint", center: brandColors.Mint, rim: brandColors.Green },
|
|
882
|
+
lemon: { label: "Lemon", center: brandColors.PaleYellow, rim: brandColors.Yellow },
|
|
883
|
+
lilac: { label: "Lilac", center: colorScale.Indigo[100], rim: colorScale.Indigo[300] },
|
|
884
|
+
peach: { label: "Peach", center: brandColors.Peach, rim: brandColors.Orange }
|
|
885
|
+
};
|
|
886
|
+
const agentColors = Object.keys(agentColorTokens);
|
|
887
|
+
const agentIdentityFamilies = {
|
|
888
|
+
ember: "Orange",
|
|
889
|
+
pink: "Pink",
|
|
890
|
+
sky: "Blue",
|
|
891
|
+
mint: "Mint",
|
|
892
|
+
lemon: "Yellow",
|
|
893
|
+
lilac: "Indigo",
|
|
894
|
+
peach: "Peach"
|
|
895
|
+
};
|
|
896
|
+
const agentIdentityIndex = (color2) => identityFamilies.indexOf(agentIdentityFamilies[color2]);
|
|
897
|
+
const isAgentColor = (value) => typeof value === "string" && Object.prototype.hasOwnProperty.call(agentColorTokens, value);
|
|
898
|
+
const auraColorTokens = {
|
|
899
|
+
ember: { center: "#f9a358", rim: "#f2661e" },
|
|
900
|
+
pink: { center: "#f8cefe", rim: "#e58af0" },
|
|
901
|
+
sky: { center: "#addbff", rim: "#4a5fd0" },
|
|
902
|
+
mint: { center: "#a0e2bf", rim: "#2e8f5e" },
|
|
903
|
+
lemon: { center: "#f0e345", rim: "#8dbf3a" },
|
|
904
|
+
lilac: { center: "#f2d4ff", rim: "#9aa6ff" },
|
|
905
|
+
peach: { center: "#ffe0cd", rim: "#f9a358" },
|
|
906
|
+
forest: { center: "#0a8a44", rim: "#045a2c" },
|
|
907
|
+
cream: { center: "#f4f6ba", rim: "#c9a14a" }
|
|
908
|
+
};
|
|
865
909
|
const canAlignXStart = (anchor, target, offset2) => anchor.x + offset2 + target.width <= document.documentElement.clientWidth;
|
|
866
910
|
const canAlignXCenter = (anchor, target, offset2) => {
|
|
867
911
|
const xCenter = anchor.x + anchor.width / 2;
|
|
@@ -1250,8 +1294,8 @@ const Box = as(
|
|
|
1250
1294
|
)
|
|
1251
1295
|
);
|
|
1252
1296
|
const Button_css_ts_vanilla = "";
|
|
1253
|
-
var Button$
|
|
1254
|
-
const Button$
|
|
1297
|
+
var Button$4 = createRuntimeFn({ defaultClassName: "_1atfpl9e _8nex5a1 _8nex5a0 _1atfpl9d x4g6301", variantClassNames: { size: { "300": "_1atfpl9f", "400": "_1atfpl9g", "500": "_1atfpl9h" }, variant: { Primary: "_1atfpl9i", Secondary: "_1atfpl9j", Success: "_1atfpl9k", Warning: "_1atfpl9l", Critical: "_1atfpl9m" }, fill: { Solid: "_1atfpl9n", Soft: "_1atfpl9o", None: "_1atfpl9p" }, outlined: { true: "_1atfpl9q" }, radii: { "0": "ebramc1", "300": "ebramc2", "400": "ebramc3", "500": "ebramc4", Inherit: "ebramc0", Pill: "ebramc5" } }, defaultVariants: { size: "400", variant: "Primary", fill: "Solid", radii: "Pill" }, compoundVariants: [[{ variant: "Secondary", fill: "Solid" }, "_1atfpl9x"], [{ variant: "Secondary", fill: "None" }, "_1atfpl9y"], [{ variant: "Critical", fill: "Soft" }, "_1atfpl9z"], [{ variant: "Critical", fill: "Solid" }, "_1atfpl910"], [{ fill: "Solid", outlined: true }, "_1atfpl911"], [{ variant: "Primary", fill: "Solid" }, "_1atfpl912"]] });
|
|
1298
|
+
const Button$3 = as(
|
|
1255
1299
|
({
|
|
1256
1300
|
as: AsButton = "button",
|
|
1257
1301
|
className,
|
|
@@ -1267,7 +1311,7 @@ const Button$1 = as(
|
|
|
1267
1311
|
}, ref) => /* @__PURE__ */ jsxs(
|
|
1268
1312
|
AsButton,
|
|
1269
1313
|
{
|
|
1270
|
-
className: classNames(Button$
|
|
1314
|
+
className: classNames(Button$4({ size: size2, variant, fill, outlined, radii }), className),
|
|
1271
1315
|
"data-ui-before": before ? true : void 0,
|
|
1272
1316
|
"data-ui-after": after ? true : void 0,
|
|
1273
1317
|
...props,
|
|
@@ -6053,8 +6097,8 @@ const Checkbox = forwardRef(
|
|
|
6053
6097
|
] })
|
|
6054
6098
|
);
|
|
6055
6099
|
const Chip_css_ts_vanilla = "";
|
|
6056
|
-
var Chip$
|
|
6057
|
-
const Chip = as(
|
|
6100
|
+
var Chip$2 = createRuntimeFn({ defaultClassName: "tg8exa6 _8nex5a1 _8nex5a0 x4g6300 x4g6301", variantClassNames: { variant: { Background: "tg8exa7", Surface: "tg8exa8", SurfaceVariant: "tg8exa9", Primary: "tg8exaa", Secondary: "tg8exab", Info: "tg8exac", Success: "tg8exad", Warning: "tg8exae", Critical: "tg8exaf" }, size: { "400": "tg8exag", "500": "tg8exah" }, fill: { Soft: "tg8exai", None: "tg8exaj" }, outlined: { true: "tg8exak" }, radii: { "0": "ebramc1", "300": "ebramc2", "400": "ebramc3", "500": "ebramc4", Inherit: "ebramc0", Pill: "ebramc5" } }, defaultVariants: { variant: "Surface", fill: "Soft", size: "400", radii: "400" }, compoundVariants: [[{ variant: "Info", outlined: true }, "tg8exar"], [{ variant: "Success", outlined: true }, "tg8exas"], [{ variant: "Warning", outlined: true }, "tg8exat"], [{ variant: "Critical", outlined: true }, "tg8exau"]] });
|
|
6101
|
+
const Chip$1 = as(
|
|
6058
6102
|
({
|
|
6059
6103
|
as: AsChip = "button",
|
|
6060
6104
|
className,
|
|
@@ -6071,7 +6115,7 @@ const Chip = as(
|
|
|
6071
6115
|
AsChip,
|
|
6072
6116
|
{
|
|
6073
6117
|
className: classNames(
|
|
6074
|
-
Chip$
|
|
6118
|
+
Chip$2({
|
|
6075
6119
|
variant,
|
|
6076
6120
|
fill,
|
|
6077
6121
|
size: size2,
|
|
@@ -6161,16 +6205,16 @@ const Input = forwardRef(
|
|
|
6161
6205
|
}
|
|
6162
6206
|
);
|
|
6163
6207
|
const Form_css_ts_vanilla = "";
|
|
6164
|
-
var Body$
|
|
6165
|
-
var Card = "_1699xxt8";
|
|
6208
|
+
var Body$4 = "_1699xxt1";
|
|
6209
|
+
var Card$4 = "_1699xxt8";
|
|
6166
6210
|
var CardTone = createRuntimeFn({ defaultClassName: "", variantClassNames: { variant: { Surface: "_1699xxt9", SurfaceVariant: "_1699xxta", Background: "_1699xxtb", Primary: "_1699xxtc", Secondary: "_1699xxtd", Success: "_1699xxte", Warning: "_1699xxtf", Critical: "_1699xxtg" } }, defaultVariants: {}, compoundVariants: [] });
|
|
6167
6211
|
var Children = "_1699xxt4";
|
|
6168
6212
|
var Control = "_1699xxt5";
|
|
6169
|
-
var Description$
|
|
6213
|
+
var Description$3 = "_1699xxt3";
|
|
6170
6214
|
var Error$1 = "_1699xxt7";
|
|
6171
6215
|
var Field$1 = "_1699xxt6";
|
|
6172
|
-
var Label$
|
|
6173
|
-
var Row$
|
|
6216
|
+
var Label$5 = "_1699xxt2";
|
|
6217
|
+
var Row$2 = "_1699xxt0";
|
|
6174
6218
|
const FormRow = forwardRef(
|
|
6175
6219
|
({ title, description, before, after, children, className, ...props }, ref) => {
|
|
6176
6220
|
const id = useId$1();
|
|
@@ -6182,11 +6226,11 @@ const FormRow = forwardRef(
|
|
|
6182
6226
|
"aria-describedby": descriptionId,
|
|
6183
6227
|
...after.props
|
|
6184
6228
|
}) : after;
|
|
6185
|
-
return /* @__PURE__ */ jsx(FormContext.Provider, { value: context, children: /* @__PURE__ */ jsxs("div", { ref, ...props, "data-weave-form-row": true, className: classNames(Row$
|
|
6229
|
+
return /* @__PURE__ */ jsx(FormContext.Provider, { value: context, children: /* @__PURE__ */ jsxs("div", { ref, ...props, "data-weave-form-row": true, className: classNames(Row$2, className), children: [
|
|
6186
6230
|
before && /* @__PURE__ */ jsx("div", { "data-weave-form-before": true, children: before }),
|
|
6187
|
-
/* @__PURE__ */ jsxs("div", { className: Body$
|
|
6188
|
-
title && /* @__PURE__ */ jsx("div", { className: Label$
|
|
6189
|
-
description && /* @__PURE__ */ jsx("div", { className: Description$
|
|
6231
|
+
/* @__PURE__ */ jsxs("div", { className: Body$4, "data-weave-form-body": true, children: [
|
|
6232
|
+
title && /* @__PURE__ */ jsx("div", { className: Label$5, id: labelId, children: title }),
|
|
6233
|
+
description && /* @__PURE__ */ jsx("div", { className: Description$3, id: descriptionId, children: description }),
|
|
6190
6234
|
children && /* @__PURE__ */ jsx("div", { className: Children, "data-weave-form-children": true, children })
|
|
6191
6235
|
] }),
|
|
6192
6236
|
control2 && /* @__PURE__ */ jsx("div", { className: Control, "data-weave-form-control": true, children: control2 })
|
|
@@ -6195,7 +6239,7 @@ const FormRow = forwardRef(
|
|
|
6195
6239
|
);
|
|
6196
6240
|
FormRow.displayName = "FormRow";
|
|
6197
6241
|
const Field = forwardRef(
|
|
6198
|
-
({ label, description, error, children, className, ...props }, ref) => {
|
|
6242
|
+
({ label, description, error, density = "comfortable", children, className, ...props }, ref) => {
|
|
6199
6243
|
const id = useId$1();
|
|
6200
6244
|
const [controlId, setControlId] = useState(`${id}-control`);
|
|
6201
6245
|
const registerControlId = useCallback(
|
|
@@ -6217,12 +6261,22 @@ const Field = forwardRef(
|
|
|
6217
6261
|
}),
|
|
6218
6262
|
[id, controlId, registerControlId, descriptionId, errorId, error]
|
|
6219
6263
|
);
|
|
6220
|
-
return /* @__PURE__ */ jsx(FormContext.Provider, { value: context, children: /* @__PURE__ */ jsxs(
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6264
|
+
return /* @__PURE__ */ jsx(FormContext.Provider, { value: context, children: /* @__PURE__ */ jsxs(
|
|
6265
|
+
"div",
|
|
6266
|
+
{
|
|
6267
|
+
ref,
|
|
6268
|
+
...props,
|
|
6269
|
+
className: classNames(Field$1, className),
|
|
6270
|
+
"data-weave-field": true,
|
|
6271
|
+
"data-density": density,
|
|
6272
|
+
children: [
|
|
6273
|
+
/* @__PURE__ */ jsx("label", { htmlFor: context.controlId, id: context.labelId, className: Label$5, children: label }),
|
|
6274
|
+
description && /* @__PURE__ */ jsx("p", { id: descriptionId, className: Description$3, children: description }),
|
|
6275
|
+
children,
|
|
6276
|
+
error && /* @__PURE__ */ jsx("p", { id: errorId, className: Error$1, role: "alert", children: error })
|
|
6277
|
+
]
|
|
6278
|
+
}
|
|
6279
|
+
) });
|
|
6226
6280
|
}
|
|
6227
6281
|
);
|
|
6228
6282
|
Field.displayName = "Field";
|
|
@@ -6235,7 +6289,7 @@ const FormCard = as(
|
|
|
6235
6289
|
gap: "0",
|
|
6236
6290
|
...props,
|
|
6237
6291
|
ref,
|
|
6238
|
-
className: classNames(Card, CardTone({ variant }), className),
|
|
6292
|
+
className: classNames(Card$4, CardTone({ variant }), className),
|
|
6239
6293
|
"data-weave-form-card": true
|
|
6240
6294
|
}
|
|
6241
6295
|
)
|
|
@@ -11532,7 +11586,7 @@ SelectContent.displayName = CONTENT_NAME;
|
|
|
11532
11586
|
var CONTENT_MARGIN = 10;
|
|
11533
11587
|
var [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME);
|
|
11534
11588
|
var CONTENT_IMPL_NAME = "SelectContentImpl";
|
|
11535
|
-
var Slot = /* @__PURE__ */ createSlot$4("SelectContent.RemoveScroll");
|
|
11589
|
+
var Slot$1 = /* @__PURE__ */ createSlot$4("SelectContent.RemoveScroll");
|
|
11536
11590
|
var SelectContentImpl = a$U.forwardRef(
|
|
11537
11591
|
(props, forwardedRef) => {
|
|
11538
11592
|
const {
|
|
@@ -11702,7 +11756,7 @@ var SelectContentImpl = a$U.forwardRef(
|
|
|
11702
11756
|
position,
|
|
11703
11757
|
isPositioned,
|
|
11704
11758
|
searchRef,
|
|
11705
|
-
children: /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(
|
|
11759
|
+
children: /* @__PURE__ */ jsx(RemoveScroll, { as: Slot$1, allowPinchZoom: true, children: /* @__PURE__ */ jsx(
|
|
11706
11760
|
FocusScope,
|
|
11707
11761
|
{
|
|
11708
11762
|
asChild: true,
|
|
@@ -12436,9 +12490,9 @@ var Value$1 = SelectValue;
|
|
|
12436
12490
|
var Icon$1 = SelectIcon;
|
|
12437
12491
|
var Portal$1 = SelectPortal;
|
|
12438
12492
|
var Content2 = SelectContent;
|
|
12439
|
-
var Viewport$
|
|
12440
|
-
var Group = SelectGroup$1;
|
|
12441
|
-
var Label$
|
|
12493
|
+
var Viewport$2 = SelectViewport;
|
|
12494
|
+
var Group$2 = SelectGroup$1;
|
|
12495
|
+
var Label$4 = SelectLabel$1;
|
|
12442
12496
|
var Item$2 = SelectItem$1;
|
|
12443
12497
|
var ItemText = SelectItemText;
|
|
12444
12498
|
var ItemIndicator = SelectItemIndicator;
|
|
@@ -12447,15 +12501,15 @@ var ScrollDownButton = SelectScrollDownButton;
|
|
|
12447
12501
|
const Select_css_ts_vanilla = "";
|
|
12448
12502
|
var Chevron$1 = "_8n0hf12";
|
|
12449
12503
|
var Content$1 = "_8n0hf14";
|
|
12450
|
-
var Description = "_8n0hf1b";
|
|
12451
|
-
var Indicator = "_8n0hf17";
|
|
12504
|
+
var Description$2 = "_8n0hf1b";
|
|
12505
|
+
var Indicator$2 = "_8n0hf17";
|
|
12452
12506
|
var Item$1 = "_8n0hf16";
|
|
12453
|
-
var Label$
|
|
12507
|
+
var Label$3 = "_8n0hf19";
|
|
12454
12508
|
var Root$1 = "_8n0hf10";
|
|
12455
12509
|
var ScrollButton = "_8n0hf18";
|
|
12456
12510
|
var Select$1 = "_8n0hf11";
|
|
12457
12511
|
var Value = "_8n0hf1a";
|
|
12458
|
-
var Viewport = "_8n0hf15";
|
|
12512
|
+
var Viewport$1 = "_8n0hf15";
|
|
12459
12513
|
const Select = forwardRef(
|
|
12460
12514
|
({
|
|
12461
12515
|
children,
|
|
@@ -12566,7 +12620,7 @@ const Select = forwardRef(
|
|
|
12566
12620
|
},
|
|
12567
12621
|
children: [
|
|
12568
12622
|
/* @__PURE__ */ jsx(ScrollUpButton, { className: ScrollButton, children: /* @__PURE__ */ jsx(Icon$2, { src: Icons.ChevronTop, size: "100", "aria-hidden": true }) }),
|
|
12569
|
-
/* @__PURE__ */ jsx(Viewport$
|
|
12623
|
+
/* @__PURE__ */ jsx(Viewport$2, { className: Viewport$1, children }),
|
|
12570
12624
|
/* @__PURE__ */ jsx(ScrollDownButton, { className: ScrollButton, children: /* @__PURE__ */ jsx(Icon$2, { src: Icons.ChevronBottom, size: "100", "aria-hidden": true }) })
|
|
12571
12625
|
]
|
|
12572
12626
|
}
|
|
@@ -12579,13 +12633,13 @@ const Select = forwardRef(
|
|
|
12579
12633
|
Select.displayName = "Select";
|
|
12580
12634
|
const SelectItem = forwardRef(({ children, description, className, ...props }, ref) => /* @__PURE__ */ jsxs(Item$2, { ref, ...props, className: classNames(Item$1, className), children: [
|
|
12581
12635
|
/* @__PURE__ */ jsx(ItemText, { children }),
|
|
12582
|
-
description && /* @__PURE__ */ jsx("span", { className: Description, children: description }),
|
|
12583
|
-
/* @__PURE__ */ jsx(ItemIndicator, { className: Indicator, children: /* @__PURE__ */ jsx(Icon$2, { src: Icons.Check, size: "100", "aria-hidden": true }) })
|
|
12636
|
+
description && /* @__PURE__ */ jsx("span", { className: Description$2, children: description }),
|
|
12637
|
+
/* @__PURE__ */ jsx(ItemIndicator, { className: Indicator$2, children: /* @__PURE__ */ jsx(Icon$2, { src: Icons.Check, size: "100", "aria-hidden": true }) })
|
|
12584
12638
|
] }));
|
|
12585
12639
|
SelectItem.displayName = "SelectItem";
|
|
12586
|
-
const SelectGroup = Group;
|
|
12640
|
+
const SelectGroup = Group$2;
|
|
12587
12641
|
const SelectLabel = forwardRef(
|
|
12588
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx(Label$
|
|
12642
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(Label$4, { ref, ...props, className: classNames(Label$3, className) })
|
|
12589
12643
|
);
|
|
12590
12644
|
SelectLabel.displayName = "SelectLabel";
|
|
12591
12645
|
const Line_css_ts_vanilla = "";
|
|
@@ -12600,6 +12654,70 @@ const Line$1 = as(
|
|
|
12600
12654
|
}
|
|
12601
12655
|
)
|
|
12602
12656
|
);
|
|
12657
|
+
const MediaFrame_css_ts_vanilla = "";
|
|
12658
|
+
var Caption = "ep6cux5";
|
|
12659
|
+
var Frame = "ep6cux0 _8nex5a1 _8nex5a0";
|
|
12660
|
+
var Media = "ep6cux3";
|
|
12661
|
+
var Outlined = "ep6cux1";
|
|
12662
|
+
var Overlay$2 = "ep6cux4";
|
|
12663
|
+
var Viewport = "ep6cux2";
|
|
12664
|
+
const positive = (value, fallback) => Number.isFinite(value) && value > 0 ? value : fallback;
|
|
12665
|
+
const MediaFrame = as(
|
|
12666
|
+
({
|
|
12667
|
+
as: Component = "div",
|
|
12668
|
+
aspectRatio = 1,
|
|
12669
|
+
minWidth = 120,
|
|
12670
|
+
maxWidth = 400,
|
|
12671
|
+
minHeight = 48,
|
|
12672
|
+
maxHeight = 600,
|
|
12673
|
+
outlined = true,
|
|
12674
|
+
children,
|
|
12675
|
+
overlay,
|
|
12676
|
+
caption,
|
|
12677
|
+
className,
|
|
12678
|
+
style,
|
|
12679
|
+
...props
|
|
12680
|
+
}, ref) => {
|
|
12681
|
+
const widthLimit = positive(maxWidth, 400);
|
|
12682
|
+
const heightLimit = positive(maxHeight, 600);
|
|
12683
|
+
const widthFloor = Math.min(positive(minWidth, 120), widthLimit);
|
|
12684
|
+
const heightFloor = Math.min(positive(minHeight, 48), heightLimit);
|
|
12685
|
+
const ratio = Math.min(
|
|
12686
|
+
widthLimit / heightFloor,
|
|
12687
|
+
Math.max(widthFloor / heightLimit, positive(aspectRatio, 1))
|
|
12688
|
+
);
|
|
12689
|
+
return /* @__PURE__ */ jsxs(
|
|
12690
|
+
Component,
|
|
12691
|
+
{
|
|
12692
|
+
...props,
|
|
12693
|
+
ref,
|
|
12694
|
+
className: classNames(Frame, outlined && Outlined, className),
|
|
12695
|
+
style: {
|
|
12696
|
+
width: `min(100%, ${toRem(Math.min(widthLimit, heightLimit * ratio))})`,
|
|
12697
|
+
...style
|
|
12698
|
+
},
|
|
12699
|
+
children: [
|
|
12700
|
+
/* @__PURE__ */ jsxs(
|
|
12701
|
+
"div",
|
|
12702
|
+
{
|
|
12703
|
+
className: Viewport,
|
|
12704
|
+
style: {
|
|
12705
|
+
aspectRatio: String(ratio),
|
|
12706
|
+
minHeight: toRem(heightFloor),
|
|
12707
|
+
maxHeight: toRem(heightLimit)
|
|
12708
|
+
},
|
|
12709
|
+
children: [
|
|
12710
|
+
/* @__PURE__ */ jsx("div", { className: Media, children }),
|
|
12711
|
+
overlay != null && /* @__PURE__ */ jsx("div", { className: Overlay$2, children: overlay })
|
|
12712
|
+
]
|
|
12713
|
+
}
|
|
12714
|
+
),
|
|
12715
|
+
caption != null && /* @__PURE__ */ jsx("div", { className: Caption, children: caption })
|
|
12716
|
+
]
|
|
12717
|
+
}
|
|
12718
|
+
);
|
|
12719
|
+
}
|
|
12720
|
+
);
|
|
12603
12721
|
const MenuItem_css_ts_vanilla = "";
|
|
12604
12722
|
var MenuItem$1 = createRuntimeFn({ defaultClassName: "_189azi66 _8nex5a1 _8nex5a0 x4g6300 x4g6301", variantClassNames: { variant: { Background: "_189azi67", Surface: "_189azi68", SurfaceVariant: "_189azi69", Primary: "_189azi6a", Secondary: "_189azi6b", Success: "_189azi6c", Warning: "_189azi6d", Critical: "_189azi6e" }, fill: { Soft: "_189azi6f", None: "_189azi6g" }, size: { "300": "_189azi6h", "400": "_189azi6i" }, radii: { "0": "ebramc1", "300": "ebramc2", "400": "ebramc3", "500": "ebramc4", Inherit: "ebramc0", Pill: "ebramc5" } }, defaultVariants: { variant: "Surface", fill: "Soft", size: "400", radii: "0" }, compoundVariants: [] });
|
|
12605
12723
|
const MenuItem = as(
|
|
@@ -14041,6 +14159,7 @@ var RadioGroupIndicator = a$U.forwardRef(
|
|
|
14041
14159
|
RadioGroupIndicator.displayName = INDICATOR_NAME2;
|
|
14042
14160
|
var Root2 = RadioGroup$1;
|
|
14043
14161
|
var Item2 = RadioGroupItem$1;
|
|
14162
|
+
var Indicator$1 = RadioGroupIndicator;
|
|
14044
14163
|
const RadioGroup = forwardRef((props, ref) => /* @__PURE__ */ jsx(Root2, { ...props, ref }));
|
|
14045
14164
|
RadioGroup.displayName = "RadioGroup";
|
|
14046
14165
|
const RadioGroupItem = forwardRef(({ className, variant, size: size2, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
@@ -15511,9 +15630,9 @@ function mountAliveMark(container, opts) {
|
|
|
15511
15630
|
var clip = container.querySelector(".am-clip");
|
|
15512
15631
|
var dream = container.querySelector(".am-dream");
|
|
15513
15632
|
var eyes = look.parentNode;
|
|
15514
|
-
var
|
|
15633
|
+
var reduced2 = false;
|
|
15515
15634
|
try {
|
|
15516
|
-
|
|
15635
|
+
reduced2 = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
15517
15636
|
} catch (e2) {
|
|
15518
15637
|
}
|
|
15519
15638
|
var running = true, raf = 0, last = 0;
|
|
@@ -15546,7 +15665,7 @@ function mountAliveMark(container, opts) {
|
|
|
15546
15665
|
var e2 = t2 - a2.t0;
|
|
15547
15666
|
if (e2 >= a2.dur)
|
|
15548
15667
|
return 1;
|
|
15549
|
-
var edge =
|
|
15668
|
+
var edge = reduced2 ? 0 : Math.min(a2.edge, a2.dur / 2);
|
|
15550
15669
|
var p2 = 1;
|
|
15551
15670
|
if (edge > 0) {
|
|
15552
15671
|
if (e2 < edge)
|
|
@@ -15559,7 +15678,7 @@ function mountAliveMark(container, opts) {
|
|
|
15559
15678
|
}
|
|
15560
15679
|
function scheduleBlink() {
|
|
15561
15680
|
clearTimeout(blinkT);
|
|
15562
|
-
var mult =
|
|
15681
|
+
var mult = reduced2 ? 2 : 1;
|
|
15563
15682
|
blinkT = setTimeout(function() {
|
|
15564
15683
|
if (!sleeping)
|
|
15565
15684
|
doBlink(Math.random() < o2.doubleBlinkChance);
|
|
@@ -15589,7 +15708,7 @@ function mountAliveMark(container, opts) {
|
|
|
15589
15708
|
var t2 = now();
|
|
15590
15709
|
animL = animR = { t0: t2, dur: o2.squintMs, edge: Math.min(110, o2.squintMs / 2), to: o2.squintTo };
|
|
15591
15710
|
tiltCur = c2.tilt + o2.tiltNudge;
|
|
15592
|
-
if (!
|
|
15711
|
+
if (!reduced2) {
|
|
15593
15712
|
tgtX = 0;
|
|
15594
15713
|
tgtY = -o2.driftY;
|
|
15595
15714
|
}
|
|
@@ -15597,7 +15716,7 @@ function mountAliveMark(container, opts) {
|
|
|
15597
15716
|
function scheduleDrift() {
|
|
15598
15717
|
clearTimeout(driftT);
|
|
15599
15718
|
driftT = setTimeout(function() {
|
|
15600
|
-
if (!
|
|
15719
|
+
if (!reduced2 && !sleeping && !gazing) {
|
|
15601
15720
|
tgtX = rnd2(-o2.driftX, o2.driftX);
|
|
15602
15721
|
tgtY = rnd2(-o2.driftY, o2.driftY);
|
|
15603
15722
|
}
|
|
@@ -15610,7 +15729,7 @@ function mountAliveMark(container, opts) {
|
|
|
15610
15729
|
var dt = last ? Math.min(0.05, (t2 - last) / 1e3) : 0.016;
|
|
15611
15730
|
last = t2;
|
|
15612
15731
|
var ease2 = function(tau) {
|
|
15613
|
-
return
|
|
15732
|
+
return reduced2 ? 1 : 1 - Math.exp(-dt / tau);
|
|
15614
15733
|
};
|
|
15615
15734
|
if (t2 - rectAt > 250) {
|
|
15616
15735
|
rect = svg.getBoundingClientRect();
|
|
@@ -15632,7 +15751,7 @@ function mountAliveMark(container, opts) {
|
|
|
15632
15751
|
if (dreamAmt > 0.999)
|
|
15633
15752
|
dreamAmt = 1;
|
|
15634
15753
|
var gx = null, gy = null;
|
|
15635
|
-
if (!
|
|
15754
|
+
if (!reduced2 && !sleeping && pointer && rect && o2.pointerMode !== "off") {
|
|
15636
15755
|
var cxp = rect.left + rect.width / 2, cyp = rect.top + rect.height / 2;
|
|
15637
15756
|
var dx = pointer.x - cxp, dy = pointer.y - cyp;
|
|
15638
15757
|
var d = Math.max(1e-3, Math.sqrt(dx * dx + dy * dy));
|
|
@@ -15665,7 +15784,7 @@ function mountAliveMark(container, opts) {
|
|
|
15665
15784
|
if (gazing) {
|
|
15666
15785
|
tgtX = gx;
|
|
15667
15786
|
tgtY = gy;
|
|
15668
|
-
} else if (wasGazing ||
|
|
15787
|
+
} else if (wasGazing || reduced2 || sleeping) {
|
|
15669
15788
|
tgtX = 0;
|
|
15670
15789
|
tgtY = 0;
|
|
15671
15790
|
}
|
|
@@ -15818,16 +15937,16 @@ const StackedAvatar = as(
|
|
|
15818
15937
|
)
|
|
15819
15938
|
);
|
|
15820
15939
|
const ComposeIcon = Icons.Compose;
|
|
15821
|
-
const
|
|
15822
|
-
|
|
15823
|
-
|
|
15824
|
-
sky: { c: [173, 219, 255], r: [74, 95, 208] },
|
|
15825
|
-
mint: { c: [160, 226, 191], r: [46, 143, 94] },
|
|
15826
|
-
lemon: { c: [240, 227, 69], r: [141, 191, 58] },
|
|
15827
|
-
lilac: { c: [242, 212, 255], r: [154, 166, 255] },
|
|
15828
|
-
forest: { c: [10, 138, 68], r: [4, 90, 44] },
|
|
15829
|
-
cream: { c: [244, 246, 186], r: [201, 161, 74] }
|
|
15940
|
+
const rgb = (value) => {
|
|
15941
|
+
const hex = toSrgbHex(value);
|
|
15942
|
+
return [1, 3, 5].map((offset2) => parseInt(hex.slice(offset2, offset2 + 2), 16));
|
|
15830
15943
|
};
|
|
15944
|
+
const PAL = Object.fromEntries(
|
|
15945
|
+
Object.entries(auraColorTokens).map(([name, token]) => [
|
|
15946
|
+
name,
|
|
15947
|
+
{ c: rgb(token.center), r: rgb(token.rim) }
|
|
15948
|
+
])
|
|
15949
|
+
);
|
|
15831
15950
|
const W = 1200;
|
|
15832
15951
|
const H = 800;
|
|
15833
15952
|
const TILT = -46.7 * Math.PI / 180;
|
|
@@ -15855,11 +15974,12 @@ const make = (x, y, vx, vy, r2, name, from) => ({
|
|
|
15855
15974
|
wob: from ? 1 : 0
|
|
15856
15975
|
});
|
|
15857
15976
|
const cur = (o2) => ({ c: mix(o2.c0, o2.c, ease(o2.ct)), r: mix(o2.r0, o2.rr, ease(o2.ct)) });
|
|
15858
|
-
function startOrbField(element) {
|
|
15977
|
+
function startOrbField(element, initial = {}) {
|
|
15978
|
+
let options = initial;
|
|
15859
15979
|
const canvas = element;
|
|
15860
15980
|
const ctx = canvas.getContext("2d");
|
|
15861
15981
|
if (!ctx)
|
|
15862
|
-
return () => void 0;
|
|
15982
|
+
return Object.assign(() => void 0, { update: () => void 0 });
|
|
15863
15983
|
let orbs = [];
|
|
15864
15984
|
let target = 3;
|
|
15865
15985
|
let targetTime = 0;
|
|
@@ -15869,9 +15989,10 @@ function startOrbField(element) {
|
|
|
15869
15989
|
const motion2 = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
15870
15990
|
const pickName = (exclude = []) => {
|
|
15871
15991
|
const taken = /* @__PURE__ */ new Set([...exclude, ...orbs.filter((o2) => !o2.leaving).map((o2) => o2.name)]);
|
|
15872
|
-
|
|
15992
|
+
const eligible = (n2) => n2 !== "ember" && (n2 !== "peach" || Boolean(options.agentColor)) && n2 !== options.agentColor && !(options.agentColor === "ember" && n2 === "peach");
|
|
15993
|
+
let pool = Object.keys(PAL).filter((n2) => !taken.has(n2) && eligible(n2));
|
|
15873
15994
|
if (!pool.length)
|
|
15874
|
-
pool = Object.keys(PAL).filter((n2) => !exclude.includes(n2) && n2
|
|
15995
|
+
pool = Object.keys(PAL).filter((n2) => !exclude.includes(n2) && eligible(n2));
|
|
15875
15996
|
return pool[Math.floor(Math.random() * pool.length)];
|
|
15876
15997
|
};
|
|
15877
15998
|
[
|
|
@@ -15890,6 +16011,44 @@ function startOrbField(element) {
|
|
|
15890
16011
|
o2.age = 2;
|
|
15891
16012
|
orbs.push(o2);
|
|
15892
16013
|
});
|
|
16014
|
+
let previousColor;
|
|
16015
|
+
let colorsInitialized = false;
|
|
16016
|
+
const enforceColors = () => {
|
|
16017
|
+
const active = orbs.filter((o2) => !o2.leaving);
|
|
16018
|
+
const kept = previousColor === options.agentColor ? active.find((o2) => o2.agent) : void 0;
|
|
16019
|
+
const carrier = options.agentColor ? kept ?? [...active].sort((a2, b) => b.r - a2.r)[0] : void 0;
|
|
16020
|
+
const used = /* @__PURE__ */ new Set();
|
|
16021
|
+
const recolor = (orb, name) => {
|
|
16022
|
+
const o2 = orb;
|
|
16023
|
+
if (o2.name === name)
|
|
16024
|
+
return;
|
|
16025
|
+
const from = cur(o2);
|
|
16026
|
+
o2.name = name;
|
|
16027
|
+
o2.c0 = from.c;
|
|
16028
|
+
o2.r0 = from.r;
|
|
16029
|
+
o2.c = PAL[name].c.slice();
|
|
16030
|
+
o2.rr = PAL[name].r.slice();
|
|
16031
|
+
o2.ct = motion2.matches || !colorsInitialized ? 1 : 0;
|
|
16032
|
+
};
|
|
16033
|
+
if (carrier && options.agentColor) {
|
|
16034
|
+
recolor(carrier, options.agentColor);
|
|
16035
|
+
used.add(options.agentColor);
|
|
16036
|
+
}
|
|
16037
|
+
orbs.forEach((orb) => {
|
|
16038
|
+
const o2 = orb;
|
|
16039
|
+
o2.agent = o2 === carrier;
|
|
16040
|
+
if (motion2.matches)
|
|
16041
|
+
o2.ct = 1;
|
|
16042
|
+
if (o2 === carrier)
|
|
16043
|
+
return;
|
|
16044
|
+
if (used.has(o2.name) || o2.name === options.agentColor || options.agentColor === "ember" && o2.name === "peach" || o2.name === "ember" && (options.agentColor !== "ember" || used.has("peach"))) {
|
|
16045
|
+
recolor(o2, pickName([...used]));
|
|
16046
|
+
}
|
|
16047
|
+
used.add(o2.name);
|
|
16048
|
+
});
|
|
16049
|
+
previousColor = options.agentColor;
|
|
16050
|
+
colorsInitialized = true;
|
|
16051
|
+
};
|
|
15893
16052
|
const spawn = () => {
|
|
15894
16053
|
const side = Math.floor(Math.random() * 4);
|
|
15895
16054
|
const r2 = rnd(120, 180);
|
|
@@ -15930,17 +16089,19 @@ function startOrbField(element) {
|
|
|
15930
16089
|
const cs = cur(small);
|
|
15931
16090
|
const cb = cur(big);
|
|
15932
16091
|
const k = Math.min(0.08, da / (big.r * big.r));
|
|
15933
|
-
big.
|
|
15934
|
-
|
|
15935
|
-
|
|
15936
|
-
|
|
16092
|
+
if (!big.agent && !small.agent) {
|
|
16093
|
+
big.c0 = mix(cb.c, cs.c, k * 3);
|
|
16094
|
+
big.r0 = mix(cb.r, cs.r, k * 3);
|
|
16095
|
+
big.c = mix(big.c, cs.c, k * 3);
|
|
16096
|
+
big.rr = mix(big.rr, cs.r, k * 3);
|
|
16097
|
+
}
|
|
15937
16098
|
small.x += (big.x - small.x) * 0.05;
|
|
15938
16099
|
small.y += (big.y - small.y) * 0.05;
|
|
15939
16100
|
if (small.r < 10) {
|
|
15940
16101
|
orbs.splice(orbs.indexOf(small), 1);
|
|
15941
16102
|
big.wob = 1;
|
|
15942
16103
|
const c2 = cur(big);
|
|
15943
|
-
big.name = pickName([big.name]);
|
|
16104
|
+
big.name = big.agent && options.agentColor ? options.agentColor : pickName([big.name]);
|
|
15944
16105
|
big.c0 = c2.c;
|
|
15945
16106
|
big.r0 = c2.r;
|
|
15946
16107
|
big.c = PAL[big.name].c.slice();
|
|
@@ -15988,7 +16149,7 @@ function startOrbField(element) {
|
|
|
15988
16149
|
}
|
|
15989
16150
|
}
|
|
15990
16151
|
}
|
|
15991
|
-
if (spawnTime > 2.4 && orbs.
|
|
16152
|
+
if (spawnTime > 2.4 && orbs.length < target) {
|
|
15992
16153
|
spawnTime = 0;
|
|
15993
16154
|
spawn();
|
|
15994
16155
|
}
|
|
@@ -16041,13 +16202,29 @@ function startOrbField(element) {
|
|
|
16041
16202
|
});
|
|
16042
16203
|
};
|
|
16043
16204
|
const draw = () => {
|
|
16205
|
+
enforceColors();
|
|
16206
|
+
const { finish } = options;
|
|
16207
|
+
const progress = finish && !motion2.matches ? Math.min(1, Math.max(0, (performance.now() - finish.startedAt) / 1e3)) : Number(Boolean(finish));
|
|
16208
|
+
const width = Math.max(1, canvas.clientWidth);
|
|
16209
|
+
const height = Math.max(1, canvas.clientHeight);
|
|
16210
|
+
const scale = Math.max(width / W, height / H);
|
|
16211
|
+
const fx = finish ? (Math.min(1, Math.max(0, finish.origin.x)) * width - (width - W * scale) / 2) / scale : W / 2;
|
|
16212
|
+
const fy = finish ? (Math.min(1, Math.max(0, finish.origin.y)) * height - (height - H * scale) / 2) / scale : H / 2;
|
|
16044
16213
|
ctx.clearRect(0, 0, W, H);
|
|
16045
16214
|
orbs.forEach((o2) => {
|
|
16046
16215
|
const c2 = cur(o2);
|
|
16047
16216
|
const w2 = o2.rd * 1.35;
|
|
16048
16217
|
const wob = o2.wob > 0 ? Math.sin((1 - o2.wob) * 20) * 0.16 * o2.wob : 0;
|
|
16049
16218
|
ctx.save();
|
|
16050
|
-
|
|
16219
|
+
const angle = progress * Math.PI * 1.5;
|
|
16220
|
+
const dx = o2.x - fx;
|
|
16221
|
+
const dy = o2.y - fy;
|
|
16222
|
+
ctx.translate(
|
|
16223
|
+
fx + (dx * Math.cos(angle) - dy * Math.sin(angle)) * (1 - progress),
|
|
16224
|
+
fy + (dx * Math.sin(angle) + dy * Math.cos(angle)) * (1 - progress)
|
|
16225
|
+
);
|
|
16226
|
+
ctx.globalAlpha = 1 - progress;
|
|
16227
|
+
ctx.scale(1 - progress * 0.9, 1 - progress * 0.9);
|
|
16051
16228
|
ctx.rotate(TILT);
|
|
16052
16229
|
ctx.scale(1 + wob, (1 - wob) * RATIO);
|
|
16053
16230
|
const gradient = ctx.createRadialGradient(0, 0, 0, 0, 0, w2);
|
|
@@ -16079,29 +16256,41 @@ function startOrbField(element) {
|
|
|
16079
16256
|
draw();
|
|
16080
16257
|
};
|
|
16081
16258
|
const tick = (now) => {
|
|
16082
|
-
|
|
16259
|
+
if (!options.finish)
|
|
16260
|
+
step(Math.min(0.05, (now - last) / 1e3));
|
|
16083
16261
|
last = now;
|
|
16084
16262
|
draw();
|
|
16085
|
-
|
|
16263
|
+
if (!options.finish || now - options.finish.startedAt < 1e3)
|
|
16264
|
+
raf = window.requestAnimationFrame(tick);
|
|
16086
16265
|
};
|
|
16087
16266
|
const syncMotion = () => {
|
|
16088
16267
|
window.cancelAnimationFrame(raf);
|
|
16089
16268
|
last = performance.now();
|
|
16090
|
-
if (!motion2.matches && !document.hidden)
|
|
16269
|
+
if (!motion2.matches && !document.hidden && (!options.finish || last - options.finish.startedAt < 1e3))
|
|
16091
16270
|
raf = window.requestAnimationFrame(tick);
|
|
16271
|
+
draw();
|
|
16092
16272
|
};
|
|
16093
16273
|
resize();
|
|
16094
|
-
|
|
16274
|
+
if (!motion2.matches && !document.hidden)
|
|
16275
|
+
raf = window.requestAnimationFrame(tick);
|
|
16095
16276
|
const observer = new ResizeObserver(resize);
|
|
16096
16277
|
observer.observe(canvas);
|
|
16097
16278
|
motion2.addEventListener("change", syncMotion);
|
|
16098
16279
|
document.addEventListener("visibilitychange", syncMotion);
|
|
16099
|
-
return (
|
|
16100
|
-
|
|
16101
|
-
|
|
16102
|
-
|
|
16103
|
-
|
|
16104
|
-
|
|
16280
|
+
return Object.assign(
|
|
16281
|
+
() => {
|
|
16282
|
+
window.cancelAnimationFrame(raf);
|
|
16283
|
+
observer.disconnect();
|
|
16284
|
+
motion2.removeEventListener("change", syncMotion);
|
|
16285
|
+
document.removeEventListener("visibilitychange", syncMotion);
|
|
16286
|
+
},
|
|
16287
|
+
{
|
|
16288
|
+
update: (next) => {
|
|
16289
|
+
options = next;
|
|
16290
|
+
syncMotion();
|
|
16291
|
+
}
|
|
16292
|
+
}
|
|
16293
|
+
);
|
|
16105
16294
|
}
|
|
16106
16295
|
const orbOpacityForSurface = (surface, prefersDark) => {
|
|
16107
16296
|
const perceptual = surface.match(/^okl(?:ab|ch)\(\s*([\d.]+)(%?)/);
|
|
@@ -16123,13 +16312,29 @@ const orbOpacityForSurface = (surface, prefersDark) => {
|
|
|
16123
16312
|
const OrbBackground_css_ts_vanilla = "";
|
|
16124
16313
|
var OrbBackground$1 = "gde17n1";
|
|
16125
16314
|
var OrbBackgroundHost = "gde17n0";
|
|
16126
|
-
const OrbBackground = ({
|
|
16315
|
+
const OrbBackground = ({
|
|
16316
|
+
className,
|
|
16317
|
+
appearance,
|
|
16318
|
+
agentColor,
|
|
16319
|
+
finish
|
|
16320
|
+
}) => {
|
|
16127
16321
|
const ref = useRef(null);
|
|
16322
|
+
const controller = useRef();
|
|
16323
|
+
const initialOptions = useRef({ agentColor, finish });
|
|
16128
16324
|
useEffect(() => {
|
|
16129
16325
|
if (!ref.current)
|
|
16130
16326
|
return void 0;
|
|
16131
|
-
|
|
16327
|
+
const field = startOrbField(ref.current, initialOptions.current);
|
|
16328
|
+
controller.current = field;
|
|
16329
|
+
return () => {
|
|
16330
|
+
field();
|
|
16331
|
+
controller.current = void 0;
|
|
16332
|
+
};
|
|
16132
16333
|
}, []);
|
|
16334
|
+
useEffect(() => {
|
|
16335
|
+
var _a;
|
|
16336
|
+
(_a = controller.current) == null ? void 0 : _a.update({ agentColor, finish });
|
|
16337
|
+
}, [agentColor, finish]);
|
|
16133
16338
|
useEffect(() => {
|
|
16134
16339
|
var _a;
|
|
16135
16340
|
const canvas = ref.current;
|
|
@@ -17315,14 +17520,14 @@ const UnreadBadge = as(
|
|
|
17315
17520
|
const ActivityRow_css_ts_vanilla = "";
|
|
17316
17521
|
var ActivityRow$1 = createRuntimeFn({ defaultClassName: "_3hdcuo0 _8nex5a1 _8nex5a0 x4g6300 x4g6301", variantClassNames: { layout: { panel: "_3hdcuo1", card: "_3hdcuo2" }, unread: { true: "_3hdcuo3" }, read: { true: "_3hdcuo4" }, selected: { true: "_3hdcuo5" } }, defaultVariants: { layout: "panel" }, compoundVariants: [] });
|
|
17317
17522
|
var Avatar = "_3hdcuo6";
|
|
17318
|
-
var Body$
|
|
17523
|
+
var Body$3 = "_3hdcuo7";
|
|
17319
17524
|
var Footer$1 = "_3hdcuoh";
|
|
17320
17525
|
var Header = "_3hdcuo8";
|
|
17321
17526
|
var Meta = "_3hdcuoi";
|
|
17322
17527
|
var Preview = "_3hdcuog";
|
|
17323
17528
|
var Reason = createRuntimeFn({ defaultClassName: "_3hdcuo9", variantClassNames: { tone: { you: "_3hdcuoa", agent: "_3hdcuob", participant: "_3hdcuoc" } }, defaultVariants: {}, compoundVariants: [] });
|
|
17324
17529
|
var Time$2 = "_3hdcuoe";
|
|
17325
|
-
var Title$
|
|
17530
|
+
var Title$3 = "_3hdcuof";
|
|
17326
17531
|
var Where = "_3hdcuod";
|
|
17327
17532
|
const ActivityRow = as(
|
|
17328
17533
|
({
|
|
@@ -17356,7 +17561,7 @@ const ActivityRow = as(
|
|
|
17356
17561
|
ref,
|
|
17357
17562
|
children: [
|
|
17358
17563
|
/* @__PURE__ */ jsx("span", { className: Avatar, children: avatar }),
|
|
17359
|
-
/* @__PURE__ */ jsxs("span", { className: Body$
|
|
17564
|
+
/* @__PURE__ */ jsxs("span", { className: Body$3, children: [
|
|
17360
17565
|
/* @__PURE__ */ jsxs("span", { className: Header, children: [
|
|
17361
17566
|
/* @__PURE__ */ jsx("span", { className: Reason({ tone: read ? "participant" : reasonTone }), children: reason2 }),
|
|
17362
17567
|
/* @__PURE__ */ jsxs("span", { className: Where, children: [
|
|
@@ -17364,7 +17569,7 @@ const ActivityRow = as(
|
|
|
17364
17569
|
where
|
|
17365
17570
|
] })
|
|
17366
17571
|
] }),
|
|
17367
|
-
layout === "card" && title && /* @__PURE__ */ jsx("span", { className: Title$
|
|
17572
|
+
layout === "card" && title && /* @__PURE__ */ jsx("span", { className: Title$3, children: title }),
|
|
17368
17573
|
/* @__PURE__ */ jsx("span", { className: Preview, children: preview }),
|
|
17369
17574
|
/* @__PURE__ */ jsxs("span", { className: Footer$1, children: [
|
|
17370
17575
|
!read && (count2 > 0 || unread > 0) && /* @__PURE__ */ jsx(UnreadBadgeCenter, { children: /* @__PURE__ */ jsx(
|
|
@@ -17386,7 +17591,7 @@ const ActivityRow = as(
|
|
|
17386
17591
|
);
|
|
17387
17592
|
const ActivityGroup_css_ts_vanilla = "";
|
|
17388
17593
|
var ActivityGroup$1 = "_1ybkglv0";
|
|
17389
|
-
var Label$
|
|
17594
|
+
var Label$2 = "_1ybkglv1 _8nex5a1 _8nex5a0";
|
|
17390
17595
|
const ActivityGroup = as(
|
|
17391
17596
|
({ as: Component = "section", label, count: count2, children, className, ...props }, ref) => {
|
|
17392
17597
|
const headingId = useId$1();
|
|
@@ -17398,7 +17603,7 @@ const ActivityGroup = as(
|
|
|
17398
17603
|
...props,
|
|
17399
17604
|
ref,
|
|
17400
17605
|
children: [
|
|
17401
|
-
/* @__PURE__ */ jsx("h3", { id: headingId, className: Label$
|
|
17606
|
+
/* @__PURE__ */ jsx("h3", { id: headingId, className: Label$2, children: `${label}${count2 !== void 0 ? ` ${count2}` : ""}` }),
|
|
17402
17607
|
children
|
|
17403
17608
|
]
|
|
17404
17609
|
}
|
|
@@ -17517,7 +17722,7 @@ const ToggleChip_css_ts_vanilla = "";
|
|
|
17517
17722
|
var ToggleChip$1 = "_1wh5y420";
|
|
17518
17723
|
const ToggleChip = as(
|
|
17519
17724
|
({ as: Component = "button", pressed, onToggle, className, onClick, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
17520
|
-
Chip,
|
|
17725
|
+
Chip$1,
|
|
17521
17726
|
{
|
|
17522
17727
|
as: Component,
|
|
17523
17728
|
type: Component === "button" ? "button" : void 0,
|
|
@@ -17596,7 +17801,7 @@ var Count = "e7d7gk5";
|
|
|
17596
17801
|
var CountPill = "e7d7gk6";
|
|
17597
17802
|
var Folds = "e7d7gk9";
|
|
17598
17803
|
var Glyph$2 = "e7d7gk3";
|
|
17599
|
-
var Label = "e7d7gk8";
|
|
17804
|
+
var Label$1 = "e7d7gk8";
|
|
17600
17805
|
var PanelSwitch$1 = "e7d7gk2 _8nex5a1 _8nex5a0 x4g6300 x4g6301";
|
|
17601
17806
|
var PanelSwitchGroup$1 = "e7d7gk0 _8nex5a1 _8nex5a0";
|
|
17602
17807
|
const PanelSwitchGroup = as(({ as: Component = "div", className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
@@ -17650,7 +17855,7 @@ const PanelSwitch = as(
|
|
|
17650
17855
|
/* @__PURE__ */ jsx(Icon$2, { src: icon2, size: "compact" }),
|
|
17651
17856
|
attention && !selected && /* @__PURE__ */ jsx("span", { className: Attention$1 })
|
|
17652
17857
|
] }),
|
|
17653
|
-
showLabel && /* @__PURE__ */ jsx(Text, { as: "span", size: "H6", className: classNames(Label, Folds), "aria-hidden": true, children: label }),
|
|
17858
|
+
showLabel && /* @__PURE__ */ jsx(Text, { as: "span", size: "H6", className: classNames(Label$1, Folds), "aria-hidden": true, children: label }),
|
|
17654
17859
|
showCount && /* @__PURE__ */ jsx(
|
|
17655
17860
|
Text,
|
|
17656
17861
|
{
|
|
@@ -17672,7 +17877,7 @@ var Faces = "kev8vj1";
|
|
|
17672
17877
|
var Live = "kev8vj3";
|
|
17673
17878
|
var PeopleLine$1 = "kev8vj0 _8nex5a1 _8nex5a0";
|
|
17674
17879
|
var Summary = "kev8vj4";
|
|
17675
|
-
var Working = "kev8vj6";
|
|
17880
|
+
var Working$1 = "kev8vj6";
|
|
17676
17881
|
const PeopleLineFace = as(
|
|
17677
17882
|
({ as: Component = "span", size: size2 = "small", className, ...props }, ref) => /* @__PURE__ */ jsx(Component, { "data-size": size2, className: classNames(Face$2, className), ...props, ref })
|
|
17678
17883
|
);
|
|
@@ -17687,7 +17892,7 @@ const PeopleLine = as(
|
|
|
17687
17892
|
children: [
|
|
17688
17893
|
status === "Call" && /* @__PURE__ */ jsx("span", { className: Live, "aria-hidden": true }),
|
|
17689
17894
|
Children$1.toArray(faces).length > 0 && /* @__PURE__ */ jsx("span", { className: Faces, "aria-hidden": true, children: faces }),
|
|
17690
|
-
/* @__PURE__ */ jsx("span", { className: classNames(Summary, status === "Working" && Working), children })
|
|
17895
|
+
/* @__PURE__ */ jsx("span", { className: classNames(Summary, status === "Working" && Working$1), children })
|
|
17691
17896
|
]
|
|
17692
17897
|
}
|
|
17693
17898
|
)
|
|
@@ -17699,7 +17904,7 @@ var Identity = "cv0ofl3";
|
|
|
17699
17904
|
var Mark$1 = "cv0ofl2";
|
|
17700
17905
|
var Name$4 = "cv0ofl4";
|
|
17701
17906
|
var RoomHeader$1 = "cv0ofl0 _8nex5a1 _8nex5a0";
|
|
17702
|
-
var Row = "cv0ofl1";
|
|
17907
|
+
var Row$1 = "cv0ofl1";
|
|
17703
17908
|
var Spacer$1 = "cv0ofl5";
|
|
17704
17909
|
const RoomHeaderMark = as(
|
|
17705
17910
|
({ as: Component = "span", faces, className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
@@ -17723,7 +17928,7 @@ const RoomHeader = as(
|
|
|
17723
17928
|
panels,
|
|
17724
17929
|
className,
|
|
17725
17930
|
...props
|
|
17726
|
-
}, ref) => /* @__PURE__ */ jsx(Component, { className: classNames(RoomHeader$1, className), ...props, ref, children: /* @__PURE__ */ jsxs("div", { className: Row, children: [
|
|
17931
|
+
}, ref) => /* @__PURE__ */ jsx(Component, { className: classNames(RoomHeader$1, className), ...props, ref, children: /* @__PURE__ */ jsxs("div", { className: Row$1, children: [
|
|
17727
17932
|
mark,
|
|
17728
17933
|
/* @__PURE__ */ jsxs("div", { className: Identity, children: [
|
|
17729
17934
|
/* @__PURE__ */ jsx(Text, { as: nameAs, size: "H5", truncate: true, className: Name$4, children: name }),
|
|
@@ -17736,7 +17941,7 @@ const RoomHeader = as(
|
|
|
17736
17941
|
] }) })
|
|
17737
17942
|
);
|
|
17738
17943
|
const Composer_css_ts_vanilla = "";
|
|
17739
|
-
var Actions$
|
|
17944
|
+
var Actions$2 = "_1ejw1qz3";
|
|
17740
17945
|
var ActionsAfter = "_1ejw1qz5";
|
|
17741
17946
|
var ActionsBefore = "_1ejw1qz4";
|
|
17742
17947
|
var Composer$1 = "_1ejw1qz0";
|
|
@@ -17758,7 +17963,7 @@ const Composer = as(
|
|
|
17758
17963
|
/* @__PURE__ */ jsxs("div", { className: Surface, children: [
|
|
17759
17964
|
context,
|
|
17760
17965
|
/* @__PURE__ */ jsx("div", { className: Content, children }),
|
|
17761
|
-
(actionsBefore || actionsAfter) && /* @__PURE__ */ jsxs("div", { className: Actions$
|
|
17966
|
+
(actionsBefore || actionsAfter) && /* @__PURE__ */ jsxs("div", { className: Actions$2, children: [
|
|
17762
17967
|
/* @__PURE__ */ jsx("div", { className: ActionsBefore, children: actionsBefore }),
|
|
17763
17968
|
/* @__PURE__ */ jsx("div", { className: ActionsAfter, children: actionsAfter })
|
|
17764
17969
|
] }),
|
|
@@ -18115,11 +18320,11 @@ const InspectorTab = as(
|
|
|
18115
18320
|
);
|
|
18116
18321
|
const ActivityItem_css_ts_vanilla = "";
|
|
18117
18322
|
var Action = "_1wyqgiii _8nex5a1 _8nex5a0 x4g6300";
|
|
18118
|
-
var Actions = "_1wyqgiid _1wyqgii8";
|
|
18323
|
+
var Actions$1 = "_1wyqgiid _1wyqgii8";
|
|
18119
18324
|
var ActivityItem$1 = "_1wyqgii0 _8nex5a1 _8nex5a0";
|
|
18120
18325
|
var Attention = "_1wyqgiie";
|
|
18121
18326
|
var AttentionBreathing = "_1wyqgiih";
|
|
18122
|
-
var Body = "_1wyqgii9 _1wyqgii8";
|
|
18327
|
+
var Body$2 = "_1wyqgii9 _1wyqgii8";
|
|
18123
18328
|
var Face$1 = "_1wyqgii4";
|
|
18124
18329
|
var Head$1 = "_1wyqgii3";
|
|
18125
18330
|
var Main = "_1wyqgii2 _8nex5a1 _8nex5a0 x4g6300";
|
|
@@ -18187,7 +18392,7 @@ const ActivityItem = as(
|
|
|
18187
18392
|
/* @__PURE__ */ jsx(Text, { as: "span", size: "T300", className: What$1, children: what }),
|
|
18188
18393
|
/* @__PURE__ */ jsx(Text, { as: "span", size: "T200", className: Time$1, children: time })
|
|
18189
18394
|
] }),
|
|
18190
|
-
body && /* @__PURE__ */ jsx(Text, { as: "span", size: "T300", className: Body, children: body })
|
|
18395
|
+
body && /* @__PURE__ */ jsx(Text, { as: "span", size: "T300", className: Body$2, children: body })
|
|
18191
18396
|
]
|
|
18192
18397
|
}
|
|
18193
18398
|
),
|
|
@@ -18199,7 +18404,7 @@ const ActivityItem = as(
|
|
|
18199
18404
|
replies.unread
|
|
18200
18405
|
] })
|
|
18201
18406
|
] }),
|
|
18202
|
-
actions && /* @__PURE__ */ jsx("div", { className: Actions, "data-pinned": actionsShown || void 0, children: actions })
|
|
18407
|
+
actions && /* @__PURE__ */ jsx("div", { className: Actions$1, "data-pinned": actionsShown || void 0, children: actions })
|
|
18203
18408
|
]
|
|
18204
18409
|
}
|
|
18205
18410
|
)
|
|
@@ -18224,12 +18429,12 @@ const ActivityHeader_css_ts_vanilla = "";
|
|
|
18224
18429
|
var ActivityHeader$1 = "_1yfy4k20 _8nex5a1 _8nex5a0";
|
|
18225
18430
|
var Controls = "_1yfy4k23";
|
|
18226
18431
|
var Spacer = "_1yfy4k24";
|
|
18227
|
-
var Title = "_1yfy4k22";
|
|
18432
|
+
var Title$2 = "_1yfy4k22";
|
|
18228
18433
|
var TitleRow = "_1yfy4k21";
|
|
18229
18434
|
const ActivityHeader = as(
|
|
18230
18435
|
({ as: Component = "div", title, actions, filters, after, className, ...props }, ref) => /* @__PURE__ */ jsxs(Component, { className: classNames(ActivityHeader$1, className), ...props, ref, children: [
|
|
18231
18436
|
/* @__PURE__ */ jsxs("div", { className: TitleRow, children: [
|
|
18232
|
-
/* @__PURE__ */ jsx(Text, { as: "h2", size: "H6", className: Title, children: title }),
|
|
18437
|
+
/* @__PURE__ */ jsx(Text, { as: "h2", size: "H6", className: Title$2, children: title }),
|
|
18233
18438
|
actions
|
|
18234
18439
|
] }),
|
|
18235
18440
|
(filters || after) && /* @__PURE__ */ jsxs("div", { className: Controls, children: [
|
|
@@ -18385,7 +18590,7 @@ var AddAgentRow = "pkh0681u _8nex5a1 _8nex5a0 x4g6300";
|
|
|
18385
18590
|
var AgentChoice = "pkh068w _8nex5a1 _8nex5a0";
|
|
18386
18591
|
var AgentTile = "pkh06817 _8nex5a1 _8nex5a0";
|
|
18387
18592
|
var AllSetCheck = "pkh068l";
|
|
18388
|
-
var Button = "pkh068e _8nex5a1 _8nex5a0 x4g6300";
|
|
18593
|
+
var Button$2 = "pkh068e _8nex5a1 _8nex5a0 x4g6300";
|
|
18389
18594
|
var ButtonFull = "pkh068h";
|
|
18390
18595
|
var ButtonType = { Dark: "pkh068f", Outline: "pkh068g" };
|
|
18391
18596
|
var CardText = "pkh06816";
|
|
@@ -18394,7 +18599,7 @@ var Dot = { live: "pkh0681b", off: "pkh0681c", needsYou: "pkh0681d" };
|
|
|
18394
18599
|
var GetStarted = "pkh068i _8nex5a1 _8nex5a0";
|
|
18395
18600
|
var GetStartedHead = "pkh068j";
|
|
18396
18601
|
var GetStartedTitle = "pkh068k";
|
|
18397
|
-
var Glow = "pkh068t";
|
|
18602
|
+
var Glow$1 = "pkh068t";
|
|
18398
18603
|
var Hero = "pkh0686";
|
|
18399
18604
|
var HeroAside = "pkh068a";
|
|
18400
18605
|
var HeroText = "pkh0687";
|
|
@@ -18409,8 +18614,8 @@ var PageFrame = "pkh0684";
|
|
|
18409
18614
|
var Person = "pkh0681q _8nex5a1 _8nex5a0 x4g6300";
|
|
18410
18615
|
var PersonFace = "pkh0681r";
|
|
18411
18616
|
var PersonName = "pkh0681s";
|
|
18412
|
-
var Progress = "pkh068m";
|
|
18413
|
-
var ProgressFill = "pkh068o";
|
|
18617
|
+
var Progress$1 = "pkh068m";
|
|
18618
|
+
var ProgressFill$1 = "pkh068o";
|
|
18414
18619
|
var ProgressTrack = "pkh068n";
|
|
18415
18620
|
var Resume = "pkh0681f _8nex5a1 _8nex5a0 x4g6300";
|
|
18416
18621
|
var RoomCard = "pkh0681g _8nex5a1 _8nex5a0";
|
|
@@ -18462,7 +18667,7 @@ const LobbyButton = as(
|
|
|
18462
18667
|
Component,
|
|
18463
18668
|
{
|
|
18464
18669
|
type: Component === "button" ? "button" : void 0,
|
|
18465
|
-
className: classNames(Button, ButtonType[variant], full && ButtonFull, className),
|
|
18670
|
+
className: classNames(Button$2, ButtonType[variant], full && ButtonFull, className),
|
|
18466
18671
|
...props,
|
|
18467
18672
|
ref,
|
|
18468
18673
|
children: /* @__PURE__ */ jsx(Text, { as: "span", size: "B300", children })
|
|
@@ -18470,7 +18675,7 @@ const LobbyButton = as(
|
|
|
18470
18675
|
)
|
|
18471
18676
|
);
|
|
18472
18677
|
const LobbyProgress = as(
|
|
18473
|
-
({ as: Component = "div", done, total = 3, className, ...props }, ref) => /* @__PURE__ */ jsxs(Component, { className: classNames(Progress, className), ...props, ref, children: [
|
|
18678
|
+
({ as: Component = "div", done, total = 3, className, ...props }, ref) => /* @__PURE__ */ jsxs(Component, { className: classNames(Progress$1, className), ...props, ref, children: [
|
|
18474
18679
|
/* @__PURE__ */ jsx(
|
|
18475
18680
|
"span",
|
|
18476
18681
|
{
|
|
@@ -18480,7 +18685,7 @@ const LobbyProgress = as(
|
|
|
18480
18685
|
"aria-valuemax": total,
|
|
18481
18686
|
"aria-valuenow": done,
|
|
18482
18687
|
"aria-label": "Get started progress",
|
|
18483
|
-
children: /* @__PURE__ */ jsx("span", { className: ProgressFill, style: { width: `${done / total * 100}%` } })
|
|
18688
|
+
children: /* @__PURE__ */ jsx("span", { className: ProgressFill$1, style: { width: `${done / total * 100}%` } })
|
|
18484
18689
|
}
|
|
18485
18690
|
),
|
|
18486
18691
|
/* @__PURE__ */ jsxs(Text, { as: "span", size: "C400", className: classNames(Secondary, Upright), children: [
|
|
@@ -18558,7 +18763,7 @@ const LobbyAgentChoice = as(
|
|
|
18558
18763
|
({ as: Component = "div", mark, name, description, recommended, onAdd, className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
18559
18764
|
Component,
|
|
18560
18765
|
{
|
|
18561
|
-
className: classNames(AgentChoice, recommended && Glow, className),
|
|
18766
|
+
className: classNames(AgentChoice, recommended && Glow$1, className),
|
|
18562
18767
|
...props,
|
|
18563
18768
|
ref,
|
|
18564
18769
|
children: [
|
|
@@ -18658,7 +18863,7 @@ const LobbyRoomCard = as(
|
|
|
18658
18863
|
}, ref) => /* @__PURE__ */ jsxs(
|
|
18659
18864
|
Component,
|
|
18660
18865
|
{
|
|
18661
|
-
className: classNames(RoomCard, suggested && Glow, className),
|
|
18866
|
+
className: classNames(RoomCard, suggested && Glow$1, className),
|
|
18662
18867
|
...props,
|
|
18663
18868
|
ref,
|
|
18664
18869
|
children: [
|
|
@@ -18762,6 +18967,693 @@ const SidebarAddAgent = as(
|
|
|
18762
18967
|
}
|
|
18763
18968
|
)
|
|
18764
18969
|
);
|
|
18970
|
+
const AccountCard_css_ts_vanilla = "";
|
|
18971
|
+
var Card$3 = "dzm7ge0 _8nex5a1 _8nex5a0";
|
|
18972
|
+
var Slot = "dzm7ge1";
|
|
18973
|
+
const AccountCard = forwardRef(
|
|
18974
|
+
({ header: header2, footer, size: size2 = "default", children, className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
18975
|
+
"div",
|
|
18976
|
+
{
|
|
18977
|
+
...props,
|
|
18978
|
+
"data-weave-account-card": true,
|
|
18979
|
+
"data-size": size2,
|
|
18980
|
+
ref,
|
|
18981
|
+
className: classNames(lightTheme, Card$3, className),
|
|
18982
|
+
children: [
|
|
18983
|
+
header2 && /* @__PURE__ */ jsx("div", { className: Slot, children: header2 }),
|
|
18984
|
+
/* @__PURE__ */ jsx("div", { className: Slot, children }),
|
|
18985
|
+
footer && /* @__PURE__ */ jsx("div", { className: Slot, children: footer })
|
|
18986
|
+
]
|
|
18987
|
+
}
|
|
18988
|
+
)
|
|
18989
|
+
);
|
|
18990
|
+
AccountCard.displayName = "AccountCard";
|
|
18991
|
+
const OnboardingKeyButton_css_ts_vanilla = "";
|
|
18992
|
+
var Button$1 = "_1idz8s11 _8nex5a1 _8nex5a0";
|
|
18993
|
+
var Fill = "_1idz8s13";
|
|
18994
|
+
var Glow = "_1idz8s12";
|
|
18995
|
+
var Label = "_1idz8s14";
|
|
18996
|
+
const OnboardingKeyButton = forwardRef(
|
|
18997
|
+
({ children, className, type = "button", finishing = false, fullWidth = false, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
18998
|
+
"button",
|
|
18999
|
+
{
|
|
19000
|
+
...props,
|
|
19001
|
+
"data-finishing": finishing || void 0,
|
|
19002
|
+
"data-full-width": fullWidth || void 0,
|
|
19003
|
+
ref,
|
|
19004
|
+
type,
|
|
19005
|
+
className: classNames(Button$1, className),
|
|
19006
|
+
children: [
|
|
19007
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: Glow }),
|
|
19008
|
+
/* @__PURE__ */ jsx("span", { "data-weave-key-fill": true, "aria-hidden": "true", className: Fill }),
|
|
19009
|
+
/* @__PURE__ */ jsx("span", { className: Label, children })
|
|
19010
|
+
]
|
|
19011
|
+
}
|
|
19012
|
+
)
|
|
19013
|
+
);
|
|
19014
|
+
OnboardingKeyButton.displayName = "OnboardingKeyButton";
|
|
19015
|
+
const OnboardingButton_css_ts_vanilla = "";
|
|
19016
|
+
var Button = "j7dz860 _8nex5a1 _8nex5a0";
|
|
19017
|
+
const OnboardingButton = forwardRef(
|
|
19018
|
+
({ className, type = "button", variant = "Ghost", fullWidth = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
19019
|
+
"button",
|
|
19020
|
+
{
|
|
19021
|
+
...props,
|
|
19022
|
+
ref,
|
|
19023
|
+
type,
|
|
19024
|
+
"data-variant": variant,
|
|
19025
|
+
"data-full-width": fullWidth || void 0,
|
|
19026
|
+
className: classNames(Button, className)
|
|
19027
|
+
}
|
|
19028
|
+
)
|
|
19029
|
+
);
|
|
19030
|
+
OnboardingButton.displayName = "OnboardingButton";
|
|
19031
|
+
const OnboardingChip_css_ts_vanilla = "";
|
|
19032
|
+
var Check$1 = "ck5bid1";
|
|
19033
|
+
var Chip = "ck5bid0 _8nex5a1 _8nex5a0";
|
|
19034
|
+
const OnboardingChip = forwardRef(
|
|
19035
|
+
({ pressed, onPressedChange, onClick, children, className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
19036
|
+
"button",
|
|
19037
|
+
{
|
|
19038
|
+
...props,
|
|
19039
|
+
ref,
|
|
19040
|
+
type: "button",
|
|
19041
|
+
"aria-pressed": pressed,
|
|
19042
|
+
className: classNames(Chip, className),
|
|
19043
|
+
onClick: (event) => {
|
|
19044
|
+
onClick == null ? void 0 : onClick(event);
|
|
19045
|
+
if (!event.defaultPrevented)
|
|
19046
|
+
onPressedChange(!pressed);
|
|
19047
|
+
},
|
|
19048
|
+
children: [
|
|
19049
|
+
pressed && /* @__PURE__ */ jsx(Icon$2, { "aria-hidden": true, src: Icons.Check, size: "50", className: Check$1 }),
|
|
19050
|
+
children
|
|
19051
|
+
]
|
|
19052
|
+
}
|
|
19053
|
+
)
|
|
19054
|
+
);
|
|
19055
|
+
OnboardingChip.displayName = "OnboardingChip";
|
|
19056
|
+
const OptionCard_css_ts_vanilla = "";
|
|
19057
|
+
var Body$1 = "g3b1zp2";
|
|
19058
|
+
var Card$2 = "g3b1zp1 _8nex5a1 _8nex5a0";
|
|
19059
|
+
var Description$1 = "g3b1zp4";
|
|
19060
|
+
var Group$1 = "g3b1zp0";
|
|
19061
|
+
var Indicator = "g3b1zp6";
|
|
19062
|
+
var Status$1 = "g3b1zp5";
|
|
19063
|
+
var Title$1 = "g3b1zp3";
|
|
19064
|
+
const OptionCardGroup = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Root2, { ...props, ref, className: classNames(Group$1, className) }));
|
|
19065
|
+
OptionCardGroup.displayName = "OptionCardGroup";
|
|
19066
|
+
const OptionCard = forwardRef(
|
|
19067
|
+
({ title, description, before, status, className, ...props }, ref) => {
|
|
19068
|
+
const id = useId$1();
|
|
19069
|
+
return /* @__PURE__ */ jsxs(
|
|
19070
|
+
Item2,
|
|
19071
|
+
{
|
|
19072
|
+
"aria-labelledby": `${id}-title`,
|
|
19073
|
+
"aria-describedby": [description && `${id}-description`, status && `${id}-status`].filter(Boolean).join(" ") || void 0,
|
|
19074
|
+
...props,
|
|
19075
|
+
ref,
|
|
19076
|
+
className: classNames(Card$2, className),
|
|
19077
|
+
children: [
|
|
19078
|
+
before && /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: before }),
|
|
19079
|
+
/* @__PURE__ */ jsxs("span", { className: Body$1, children: [
|
|
19080
|
+
/* @__PURE__ */ jsx("span", { id: `${id}-title`, className: Title$1, children: title }),
|
|
19081
|
+
description && /* @__PURE__ */ jsx("span", { id: `${id}-description`, className: Description$1, children: description }),
|
|
19082
|
+
status && /* @__PURE__ */ jsx("span", { id: `${id}-status`, className: Status$1, children: status })
|
|
19083
|
+
] }),
|
|
19084
|
+
/* @__PURE__ */ jsx("span", { className: Indicator, "aria-hidden": "true", children: /* @__PURE__ */ jsx(Indicator$1, { children: "✓" }) })
|
|
19085
|
+
]
|
|
19086
|
+
}
|
|
19087
|
+
);
|
|
19088
|
+
}
|
|
19089
|
+
);
|
|
19090
|
+
OptionCard.displayName = "OptionCard";
|
|
19091
|
+
const ColorSwatchPicker_css_ts_vanilla = "";
|
|
19092
|
+
var Check = "_1z0ew4o3";
|
|
19093
|
+
var Group = "_1z0ew4o0";
|
|
19094
|
+
var Paint = "_1z0ew4o2";
|
|
19095
|
+
var Swatch = "_1z0ew4o1 _8nex5a1 _8nex5a0";
|
|
19096
|
+
const ColorSwatchPicker = forwardRef(
|
|
19097
|
+
({
|
|
19098
|
+
colors = agentColors,
|
|
19099
|
+
disabledColors = [],
|
|
19100
|
+
onValueChange,
|
|
19101
|
+
className,
|
|
19102
|
+
value: selectedValue,
|
|
19103
|
+
defaultValue,
|
|
19104
|
+
...props
|
|
19105
|
+
}, ref) => /* @__PURE__ */ jsx(
|
|
19106
|
+
Root2,
|
|
19107
|
+
{
|
|
19108
|
+
"aria-label": "Agent colour",
|
|
19109
|
+
...props,
|
|
19110
|
+
ref,
|
|
19111
|
+
value: selectedValue === void 0 || isAgentColor(selectedValue) ? selectedValue : "",
|
|
19112
|
+
defaultValue: isAgentColor(defaultValue) ? defaultValue : void 0,
|
|
19113
|
+
className: classNames(Group, className),
|
|
19114
|
+
onValueChange: (value) => onValueChange == null ? void 0 : onValueChange(value),
|
|
19115
|
+
children: [...new Set(colors)].filter(isAgentColor).map((value) => {
|
|
19116
|
+
const token = agentColorTokens[value];
|
|
19117
|
+
return /* @__PURE__ */ jsxs(
|
|
19118
|
+
Item2,
|
|
19119
|
+
{
|
|
19120
|
+
value,
|
|
19121
|
+
"aria-label": token.label,
|
|
19122
|
+
disabled: props.disabled || disabledColors.includes(value),
|
|
19123
|
+
className: Swatch,
|
|
19124
|
+
children: [
|
|
19125
|
+
/* @__PURE__ */ jsx(
|
|
19126
|
+
"span",
|
|
19127
|
+
{
|
|
19128
|
+
"aria-hidden": "true",
|
|
19129
|
+
className: Paint,
|
|
19130
|
+
style: { background: `radial-gradient(circle, ${token.center}, ${token.rim})` }
|
|
19131
|
+
}
|
|
19132
|
+
),
|
|
19133
|
+
/* @__PURE__ */ jsx(Indicator$1, { "aria-hidden": "true", className: Check, children: "✓" })
|
|
19134
|
+
]
|
|
19135
|
+
},
|
|
19136
|
+
value
|
|
19137
|
+
);
|
|
19138
|
+
})
|
|
19139
|
+
}
|
|
19140
|
+
)
|
|
19141
|
+
);
|
|
19142
|
+
ColorSwatchPicker.displayName = "ColorSwatchPicker";
|
|
19143
|
+
const OnboardingSetup_css_ts_vanilla = "";
|
|
19144
|
+
var Actions = "_10w4f9zc";
|
|
19145
|
+
var Body = "_10w4f9z5";
|
|
19146
|
+
var Card$1 = "_10w4f9zd";
|
|
19147
|
+
var CardBar = "_10w4f9zk";
|
|
19148
|
+
var CardBarFill = "_10w4f9zn";
|
|
19149
|
+
var CardBarInset = "var(--_10w4f9zj)";
|
|
19150
|
+
var CardHeading = "_10w4f9ze";
|
|
19151
|
+
var CardMeta = "_10w4f9zg";
|
|
19152
|
+
var CardStatus = "_10w4f9zi";
|
|
19153
|
+
var CardTitle = "_10w4f9zf";
|
|
19154
|
+
var Description = "_10w4f9z7";
|
|
19155
|
+
var Hidden = "_10w4f9zo";
|
|
19156
|
+
var Navigation = "_10w4f9zb";
|
|
19157
|
+
var Progress = "_10w4f9z0";
|
|
19158
|
+
var ProgressFill = "_10w4f9z2";
|
|
19159
|
+
var ProgressInset = "var(--_10w4f9z1)";
|
|
19160
|
+
var Row = "_10w4f9z3";
|
|
19161
|
+
var Status = "_10w4f9z8";
|
|
19162
|
+
var Title = "_10w4f9z6";
|
|
19163
|
+
var Well = "_10w4f9z4";
|
|
19164
|
+
var Working = "_10w4f9za";
|
|
19165
|
+
const OnboardingProgress = forwardRef(
|
|
19166
|
+
({ value, max: max2, label, className, ...props }, ref) => {
|
|
19167
|
+
const end = Number.isFinite(max2) && max2 >= 1 ? Math.floor(max2) : 1;
|
|
19168
|
+
const current2 = Number.isFinite(value) ? Math.floor(Math.min(end, Math.max(0, value))) : 0;
|
|
19169
|
+
return /* @__PURE__ */ jsx(
|
|
19170
|
+
"div",
|
|
19171
|
+
{
|
|
19172
|
+
...props,
|
|
19173
|
+
ref,
|
|
19174
|
+
className: classNames(Progress, className),
|
|
19175
|
+
role: "progressbar",
|
|
19176
|
+
"aria-label": label,
|
|
19177
|
+
"aria-valuemin": 0,
|
|
19178
|
+
"aria-valuemax": end,
|
|
19179
|
+
"aria-valuenow": current2,
|
|
19180
|
+
"aria-valuetext": props["aria-valuetext"] ?? `Step ${current2} of ${end}`,
|
|
19181
|
+
children: /* @__PURE__ */ jsx(
|
|
19182
|
+
"div",
|
|
19183
|
+
{
|
|
19184
|
+
className: ProgressFill,
|
|
19185
|
+
style: {
|
|
19186
|
+
[ProgressInset.slice(4, -1)]: `${100 * (1 - current2 / end)}%`
|
|
19187
|
+
}
|
|
19188
|
+
}
|
|
19189
|
+
)
|
|
19190
|
+
}
|
|
19191
|
+
);
|
|
19192
|
+
}
|
|
19193
|
+
);
|
|
19194
|
+
OnboardingProgress.displayName = "OnboardingProgress";
|
|
19195
|
+
const statusLabels = {
|
|
19196
|
+
idle: "Not started",
|
|
19197
|
+
working: "Working…",
|
|
19198
|
+
ready: "Ready",
|
|
19199
|
+
error: "Could not finish"
|
|
19200
|
+
};
|
|
19201
|
+
const SetupStatusRow = forwardRef(
|
|
19202
|
+
({
|
|
19203
|
+
title,
|
|
19204
|
+
description,
|
|
19205
|
+
icon: icon2,
|
|
19206
|
+
state,
|
|
19207
|
+
statusText = statusLabels[state],
|
|
19208
|
+
action: action2,
|
|
19209
|
+
className,
|
|
19210
|
+
...props
|
|
19211
|
+
}, ref) => {
|
|
19212
|
+
const id = useId$1();
|
|
19213
|
+
const statusRef = useRef(null);
|
|
19214
|
+
const actionRef = useRef(null);
|
|
19215
|
+
const bindAction = useCallback((node) => {
|
|
19216
|
+
var _a;
|
|
19217
|
+
if (!node && actionRef.current === document.activeElement)
|
|
19218
|
+
(_a = statusRef.current) == null ? void 0 : _a.focus();
|
|
19219
|
+
actionRef.current = node;
|
|
19220
|
+
}, []);
|
|
19221
|
+
return /* @__PURE__ */ jsxs("div", { ...props, ref, className: classNames(Row, className), children: [
|
|
19222
|
+
icon2 && /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: Well, children: icon2 }),
|
|
19223
|
+
/* @__PURE__ */ jsxs("div", { className: Body, children: [
|
|
19224
|
+
/* @__PURE__ */ jsx("p", { className: Title, children: title }),
|
|
19225
|
+
description && /* @__PURE__ */ jsx("div", { className: Description, children: description })
|
|
19226
|
+
] }),
|
|
19227
|
+
/* @__PURE__ */ jsxs(
|
|
19228
|
+
"span",
|
|
19229
|
+
{
|
|
19230
|
+
id,
|
|
19231
|
+
role: "status",
|
|
19232
|
+
ref: statusRef,
|
|
19233
|
+
tabIndex: -1,
|
|
19234
|
+
"aria-atomic": "true",
|
|
19235
|
+
"data-state": state,
|
|
19236
|
+
className: Status,
|
|
19237
|
+
children: [
|
|
19238
|
+
/* @__PURE__ */ jsxs("span", { className: Hidden, children: [
|
|
19239
|
+
title,
|
|
19240
|
+
": "
|
|
19241
|
+
] }),
|
|
19242
|
+
state === "working" && /* @__PURE__ */ jsxs("span", { "aria-hidden": "true", className: Working, children: [
|
|
19243
|
+
"●",
|
|
19244
|
+
" "
|
|
19245
|
+
] }),
|
|
19246
|
+
state === "ready" && /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: "✓ " }),
|
|
19247
|
+
statusText
|
|
19248
|
+
]
|
|
19249
|
+
}
|
|
19250
|
+
),
|
|
19251
|
+
action2 && /* @__PURE__ */ jsx(
|
|
19252
|
+
OnboardingButton,
|
|
19253
|
+
{
|
|
19254
|
+
variant: "Brand",
|
|
19255
|
+
ref: bindAction,
|
|
19256
|
+
"aria-disabled": action2.disabled || state === "working" || void 0,
|
|
19257
|
+
onClick: () => {
|
|
19258
|
+
if (!action2.disabled && state !== "working")
|
|
19259
|
+
action2.onClick();
|
|
19260
|
+
},
|
|
19261
|
+
"aria-label": `${action2.label}: ${title}`,
|
|
19262
|
+
children: action2.label
|
|
19263
|
+
}
|
|
19264
|
+
)
|
|
19265
|
+
] });
|
|
19266
|
+
}
|
|
19267
|
+
);
|
|
19268
|
+
SetupStatusRow.displayName = "SetupStatusRow";
|
|
19269
|
+
const SetupProgressCard = forwardRef(
|
|
19270
|
+
({
|
|
19271
|
+
title,
|
|
19272
|
+
meta: meta2,
|
|
19273
|
+
state = "working",
|
|
19274
|
+
statusText,
|
|
19275
|
+
value,
|
|
19276
|
+
max: max2 = 100,
|
|
19277
|
+
progressLabel,
|
|
19278
|
+
className,
|
|
19279
|
+
...props
|
|
19280
|
+
}, ref) => {
|
|
19281
|
+
const end = Number.isFinite(max2) && max2 > 0 ? max2 : 100;
|
|
19282
|
+
const known = value !== void 0 && Number.isFinite(value);
|
|
19283
|
+
let amount;
|
|
19284
|
+
if (state === "ready")
|
|
19285
|
+
amount = end;
|
|
19286
|
+
else if (known)
|
|
19287
|
+
amount = Math.min(end, Math.max(0, value));
|
|
19288
|
+
const indeterminate = state === "working" && amount === void 0;
|
|
19289
|
+
return /* @__PURE__ */ jsxs("div", { ...props, ref, "data-state": state, className: classNames(Card$1, className), children: [
|
|
19290
|
+
/* @__PURE__ */ jsxs("p", { className: CardHeading, children: [
|
|
19291
|
+
/* @__PURE__ */ jsx("span", { className: CardTitle, children: title }),
|
|
19292
|
+
meta2 && /* @__PURE__ */ jsx("span", { className: CardMeta, children: meta2 })
|
|
19293
|
+
] }),
|
|
19294
|
+
/* @__PURE__ */ jsxs("span", { role: "status", "aria-atomic": "true", "data-state": state, className: CardStatus, children: [
|
|
19295
|
+
/* @__PURE__ */ jsxs("span", { className: Hidden, children: [
|
|
19296
|
+
title,
|
|
19297
|
+
": "
|
|
19298
|
+
] }),
|
|
19299
|
+
statusText
|
|
19300
|
+
] }),
|
|
19301
|
+
state !== "error" && /* @__PURE__ */ jsx(
|
|
19302
|
+
"div",
|
|
19303
|
+
{
|
|
19304
|
+
role: "progressbar",
|
|
19305
|
+
"aria-label": progressLabel ?? title,
|
|
19306
|
+
"aria-valuemin": indeterminate ? void 0 : 0,
|
|
19307
|
+
"aria-valuemax": indeterminate ? void 0 : end,
|
|
19308
|
+
"aria-valuenow": indeterminate ? void 0 : amount,
|
|
19309
|
+
"data-indeterminate": indeterminate || void 0,
|
|
19310
|
+
className: CardBar,
|
|
19311
|
+
children: /* @__PURE__ */ jsx(
|
|
19312
|
+
"div",
|
|
19313
|
+
{
|
|
19314
|
+
className: CardBarFill,
|
|
19315
|
+
style: indeterminate ? void 0 : {
|
|
19316
|
+
[CardBarInset.slice(4, -1)]: `${100 * (1 - (amount ?? 0) / end)}%`
|
|
19317
|
+
}
|
|
19318
|
+
}
|
|
19319
|
+
)
|
|
19320
|
+
}
|
|
19321
|
+
)
|
|
19322
|
+
] });
|
|
19323
|
+
}
|
|
19324
|
+
);
|
|
19325
|
+
SetupProgressCard.displayName = "SetupProgressCard";
|
|
19326
|
+
const permissionStates = {
|
|
19327
|
+
"not-allowed": "idle",
|
|
19328
|
+
waiting: "working",
|
|
19329
|
+
allowed: "ready",
|
|
19330
|
+
error: "error"
|
|
19331
|
+
};
|
|
19332
|
+
const permissionLabels = {
|
|
19333
|
+
"not-allowed": "Not allowed",
|
|
19334
|
+
waiting: "Waiting for permission…",
|
|
19335
|
+
allowed: "Allowed",
|
|
19336
|
+
error: "Access not granted"
|
|
19337
|
+
};
|
|
19338
|
+
const PermissionRow = forwardRef(
|
|
19339
|
+
({ state, onAllow, disabled, statusText, actionLabel, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
19340
|
+
SetupStatusRow,
|
|
19341
|
+
{
|
|
19342
|
+
...props,
|
|
19343
|
+
ref,
|
|
19344
|
+
state: permissionStates[state],
|
|
19345
|
+
statusText: statusText ?? permissionLabels[state],
|
|
19346
|
+
action: onAllow && state !== "allowed" ? {
|
|
19347
|
+
label: actionLabel ?? (state === "error" ? "Try again" : "Allow"),
|
|
19348
|
+
onClick: onAllow,
|
|
19349
|
+
disabled
|
|
19350
|
+
} : void 0
|
|
19351
|
+
}
|
|
19352
|
+
)
|
|
19353
|
+
);
|
|
19354
|
+
PermissionRow.displayName = "PermissionRow";
|
|
19355
|
+
const OnboardingNavigation = forwardRef(
|
|
19356
|
+
({ back, secondary, primary, className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { ...props, ref, className: classNames(Navigation, className), children: [
|
|
19357
|
+
back,
|
|
19358
|
+
/* @__PURE__ */ jsxs("div", { className: Actions, children: [
|
|
19359
|
+
secondary,
|
|
19360
|
+
primary
|
|
19361
|
+
] })
|
|
19362
|
+
] })
|
|
19363
|
+
);
|
|
19364
|
+
OnboardingNavigation.displayName = "OnboardingNavigation";
|
|
19365
|
+
const OnboardingMotion_css_ts_vanilla = "";
|
|
19366
|
+
var Card = "_1b5rjjx3";
|
|
19367
|
+
var Finish = "_1b5rjjx2";
|
|
19368
|
+
var Light = "_1b5rjjx5";
|
|
19369
|
+
var Room = "_1b5rjjx4";
|
|
19370
|
+
var Snapshot = "_1b5rjjx1";
|
|
19371
|
+
var Stage = "_1b5rjjx0";
|
|
19372
|
+
const reduced = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
19373
|
+
const centre = (element) => {
|
|
19374
|
+
const rect = element.getBoundingClientRect();
|
|
19375
|
+
return { x: rect.left + rect.width / 2, y: rect.top + rect.height / 2 };
|
|
19376
|
+
};
|
|
19377
|
+
class OnboardingTransition extends a__default.Component {
|
|
19378
|
+
constructor() {
|
|
19379
|
+
super(...arguments);
|
|
19380
|
+
this.live = a__default.createRef();
|
|
19381
|
+
this.overlay = a__default.createRef();
|
|
19382
|
+
this.running = [];
|
|
19383
|
+
}
|
|
19384
|
+
getSnapshotBeforeUpdate(previous) {
|
|
19385
|
+
const { stepKey } = this.props;
|
|
19386
|
+
const element = this.live.current;
|
|
19387
|
+
if (previous.stepKey === stepKey || !element)
|
|
19388
|
+
return null;
|
|
19389
|
+
const snapshot = element.cloneNode(true);
|
|
19390
|
+
const originals = element.querySelectorAll("input, textarea, select");
|
|
19391
|
+
const copies = snapshot.querySelectorAll("input, textarea, select");
|
|
19392
|
+
originals.forEach((original, index2) => {
|
|
19393
|
+
const copy = copies[index2];
|
|
19394
|
+
if (original instanceof HTMLInputElement && copy instanceof HTMLInputElement) {
|
|
19395
|
+
if (original.type !== "file")
|
|
19396
|
+
copy.value = original.value;
|
|
19397
|
+
copy.checked = original.checked;
|
|
19398
|
+
} else if (original instanceof HTMLTextAreaElement && copy instanceof HTMLTextAreaElement) {
|
|
19399
|
+
copy.value = original.value;
|
|
19400
|
+
} else if (original instanceof HTMLSelectElement && copy instanceof HTMLSelectElement) {
|
|
19401
|
+
Array.from(original.options).forEach((option, optionIndex) => {
|
|
19402
|
+
copy.options[optionIndex].selected = option.selected;
|
|
19403
|
+
});
|
|
19404
|
+
}
|
|
19405
|
+
});
|
|
19406
|
+
snapshot.setAttribute("inert", "");
|
|
19407
|
+
snapshot.setAttribute("aria-hidden", "true");
|
|
19408
|
+
snapshot.querySelectorAll("[id], [name]").forEach((node) => {
|
|
19409
|
+
node.removeAttribute("id");
|
|
19410
|
+
node.removeAttribute("name");
|
|
19411
|
+
});
|
|
19412
|
+
return snapshot;
|
|
19413
|
+
}
|
|
19414
|
+
componentDidUpdate(...args) {
|
|
19415
|
+
const [previous, , snapshot] = args;
|
|
19416
|
+
const { stepKey, direction } = this.props;
|
|
19417
|
+
if (previous.stepKey === stepKey)
|
|
19418
|
+
return;
|
|
19419
|
+
this.clearExit();
|
|
19420
|
+
const element = this.live.current;
|
|
19421
|
+
const host = this.overlay.current;
|
|
19422
|
+
if (!element || !host || !snapshot)
|
|
19423
|
+
return;
|
|
19424
|
+
host.append(snapshot);
|
|
19425
|
+
const offset2 = direction === "back" ? -24 : 24;
|
|
19426
|
+
const simple = reduced();
|
|
19427
|
+
const enter = element.animate(
|
|
19428
|
+
simple ? [{ opacity: 0 }, { opacity: 1 }] : [
|
|
19429
|
+
{ opacity: 0, transform: `translateX(${offset2}px)` },
|
|
19430
|
+
{ opacity: 1, transform: "translateX(0)" }
|
|
19431
|
+
],
|
|
19432
|
+
{ duration: 240, easing: "ease-out" }
|
|
19433
|
+
);
|
|
19434
|
+
const leave = snapshot.animate(
|
|
19435
|
+
simple ? [{ opacity: 1 }, { opacity: 0 }] : [
|
|
19436
|
+
{ opacity: 1, transform: "translateX(0)" },
|
|
19437
|
+
{ opacity: 0, transform: `translateX(${-offset2}px)` }
|
|
19438
|
+
],
|
|
19439
|
+
{ duration: 200, easing: "ease-out", fill: "forwards" }
|
|
19440
|
+
);
|
|
19441
|
+
leave.onfinish = () => snapshot.remove();
|
|
19442
|
+
this.running = [enter, leave];
|
|
19443
|
+
}
|
|
19444
|
+
componentWillUnmount() {
|
|
19445
|
+
this.clearExit();
|
|
19446
|
+
}
|
|
19447
|
+
clearExit() {
|
|
19448
|
+
var _a;
|
|
19449
|
+
this.running.forEach((animation) => animation.cancel());
|
|
19450
|
+
this.running = [];
|
|
19451
|
+
(_a = this.overlay.current) == null ? void 0 : _a.replaceChildren();
|
|
19452
|
+
}
|
|
19453
|
+
render() {
|
|
19454
|
+
const { children } = this.props;
|
|
19455
|
+
return /* @__PURE__ */ jsxs("div", { className: Stage, children: [
|
|
19456
|
+
/* @__PURE__ */ jsx("div", { ref: this.overlay, className: Snapshot, "aria-hidden": "true" }),
|
|
19457
|
+
/* @__PURE__ */ jsx("div", { ref: this.live, children })
|
|
19458
|
+
] });
|
|
19459
|
+
}
|
|
19460
|
+
}
|
|
19461
|
+
function useAgentColorMotion() {
|
|
19462
|
+
const cleanup = useRef(() => void 0);
|
|
19463
|
+
useLayoutEffect(() => () => cleanup.current(), []);
|
|
19464
|
+
return useCallback((source2, target, color2) => {
|
|
19465
|
+
cleanup.current();
|
|
19466
|
+
const animations = [];
|
|
19467
|
+
const start = centre(source2);
|
|
19468
|
+
const end = centre(target);
|
|
19469
|
+
const orb = document.createElement("span");
|
|
19470
|
+
orb.setAttribute("aria-hidden", "true");
|
|
19471
|
+
orb.className = Light;
|
|
19472
|
+
Object.assign(orb.style, {
|
|
19473
|
+
left: `${start.x - 120}px`,
|
|
19474
|
+
top: `${start.y - 120}px`,
|
|
19475
|
+
background: `radial-gradient(circle, ${agentColorTokens[color2].center}, ${agentColorTokens[color2].rim})`
|
|
19476
|
+
});
|
|
19477
|
+
document.body.append(orb);
|
|
19478
|
+
const flight = orb.animate(
|
|
19479
|
+
reduced() ? [{ opacity: 0 }, { opacity: 0 }] : [
|
|
19480
|
+
{ transform: "translate(0, 0) scale(.1)", opacity: 1 },
|
|
19481
|
+
{
|
|
19482
|
+
transform: `translate(${end.x - start.x}px, ${end.y - start.y}px) scale(.1)`,
|
|
19483
|
+
opacity: 1
|
|
19484
|
+
}
|
|
19485
|
+
],
|
|
19486
|
+
{ duration: reduced() ? 0 : 240, easing: "cubic-bezier(.55,0,1,.45)", fill: "forwards" }
|
|
19487
|
+
);
|
|
19488
|
+
animations.push(flight);
|
|
19489
|
+
flight.onfinish = () => {
|
|
19490
|
+
orb.style.left = `${end.x - 120}px`;
|
|
19491
|
+
orb.style.top = `${end.y - 120}px`;
|
|
19492
|
+
flight.cancel();
|
|
19493
|
+
const bloom = orb.animate(
|
|
19494
|
+
reduced() ? [{ opacity: 0.3 }, { opacity: 0 }] : [
|
|
19495
|
+
{ transform: "scale(.08)", opacity: 1 },
|
|
19496
|
+
{ transform: "scale(.6)", opacity: 0 }
|
|
19497
|
+
],
|
|
19498
|
+
{ duration: 300 }
|
|
19499
|
+
);
|
|
19500
|
+
animations.push(bloom);
|
|
19501
|
+
bloom.onfinish = () => orb.remove();
|
|
19502
|
+
if (!reduced())
|
|
19503
|
+
animations.push(
|
|
19504
|
+
target.animate(
|
|
19505
|
+
[{ transform: "scale(1)" }, { transform: "scale(1.12)" }, { transform: "scale(1)" }],
|
|
19506
|
+
{ duration: 300 }
|
|
19507
|
+
)
|
|
19508
|
+
);
|
|
19509
|
+
};
|
|
19510
|
+
cleanup.current = () => {
|
|
19511
|
+
animations.forEach((animation) => animation.cancel());
|
|
19512
|
+
orb.remove();
|
|
19513
|
+
};
|
|
19514
|
+
}, []);
|
|
19515
|
+
}
|
|
19516
|
+
const OnboardingFinish = ({
|
|
19517
|
+
active,
|
|
19518
|
+
color: color2,
|
|
19519
|
+
originRef,
|
|
19520
|
+
destinationRef,
|
|
19521
|
+
card: card2,
|
|
19522
|
+
room,
|
|
19523
|
+
roomLabel = "Your first room",
|
|
19524
|
+
className
|
|
19525
|
+
}) => {
|
|
19526
|
+
const host = useRef(null);
|
|
19527
|
+
const cardRef = useRef(null);
|
|
19528
|
+
const roomRef = useRef(null);
|
|
19529
|
+
const latestColor = useRef(color2);
|
|
19530
|
+
latestColor.current = color2;
|
|
19531
|
+
const wasActive = useRef(false);
|
|
19532
|
+
const [fieldFinish, setFieldFinish] = useState();
|
|
19533
|
+
useLayoutEffect(() => {
|
|
19534
|
+
var _a;
|
|
19535
|
+
const cardElement = cardRef.current;
|
|
19536
|
+
const roomElement = roomRef.current;
|
|
19537
|
+
if (!active || !host.current || !cardElement || !roomElement) {
|
|
19538
|
+
setFieldFinish(void 0);
|
|
19539
|
+
if (wasActive.current && document.activeElement === document.body) {
|
|
19540
|
+
(_a = cardElement == null ? void 0 : cardElement.querySelector(
|
|
19541
|
+
'button:not([disabled]):not([aria-disabled="true"]):not([tabindex="-1"]), input:not([disabled]):not([type="hidden"]):not([tabindex="-1"]), [tabindex]:not([disabled]):not([aria-disabled="true"]):not([tabindex="-1"])'
|
|
19542
|
+
)) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
19543
|
+
}
|
|
19544
|
+
wasActive.current = false;
|
|
19545
|
+
return void 0;
|
|
19546
|
+
}
|
|
19547
|
+
wasActive.current = true;
|
|
19548
|
+
const start = centre(originRef.current ?? cardElement);
|
|
19549
|
+
const end = centre(destinationRef.current ?? roomElement);
|
|
19550
|
+
const bounds = host.current.getBoundingClientRect();
|
|
19551
|
+
const cardCentre = centre(cardElement);
|
|
19552
|
+
const simple = reduced();
|
|
19553
|
+
setFieldFinish({
|
|
19554
|
+
origin: {
|
|
19555
|
+
x: (start.x - bounds.left) / (bounds.width || 1),
|
|
19556
|
+
y: (start.y - bounds.top) / (bounds.height || 1)
|
|
19557
|
+
},
|
|
19558
|
+
startedAt: performance.now()
|
|
19559
|
+
});
|
|
19560
|
+
const animations = [];
|
|
19561
|
+
const focusWasInCard = cardElement.contains(document.activeElement);
|
|
19562
|
+
cardElement.setAttribute("inert", "");
|
|
19563
|
+
cardElement.setAttribute("aria-hidden", "true");
|
|
19564
|
+
if (focusWasInCard)
|
|
19565
|
+
roomElement.focus({ preventScroll: true });
|
|
19566
|
+
animations.push(
|
|
19567
|
+
cardElement.animate(
|
|
19568
|
+
simple ? [{ opacity: 1 }, { opacity: 0 }] : [
|
|
19569
|
+
{ opacity: 1, transform: "translate(0, 0) scale(1)", filter: "blur(0px)" },
|
|
19570
|
+
{
|
|
19571
|
+
opacity: 0,
|
|
19572
|
+
transform: `translate(${start.x - cardCentre.x}px, ${start.y - cardCentre.y}px) scale(.03)`,
|
|
19573
|
+
filter: "blur(18px)"
|
|
19574
|
+
}
|
|
19575
|
+
],
|
|
19576
|
+
{ duration: simple ? 180 : 650, easing: "ease-in", fill: "forwards" }
|
|
19577
|
+
)
|
|
19578
|
+
);
|
|
19579
|
+
animations.push(
|
|
19580
|
+
roomElement.animate([{ opacity: 0 }, { opacity: 1 }], {
|
|
19581
|
+
duration: simple ? 180 : 600,
|
|
19582
|
+
delay: simple ? 0 : 800,
|
|
19583
|
+
fill: "both"
|
|
19584
|
+
})
|
|
19585
|
+
);
|
|
19586
|
+
const light = document.createElement("span");
|
|
19587
|
+
light.className = Light;
|
|
19588
|
+
light.setAttribute("aria-hidden", "true");
|
|
19589
|
+
Object.assign(light.style, {
|
|
19590
|
+
left: `${start.x - 120}px`,
|
|
19591
|
+
top: `${start.y - 120}px`,
|
|
19592
|
+
background: agentColorTokens[latestColor.current].center
|
|
19593
|
+
});
|
|
19594
|
+
document.body.append(light);
|
|
19595
|
+
if (!simple) {
|
|
19596
|
+
const reveal = light.animate(
|
|
19597
|
+
[
|
|
19598
|
+
{ transform: "translate(0, 0) scale(.05)", opacity: 0, filter: "blur(0px)", offset: 0 },
|
|
19599
|
+
{
|
|
19600
|
+
transform: "translate(0, 0) scale(5)",
|
|
19601
|
+
opacity: 0.85,
|
|
19602
|
+
filter: "blur(20px)",
|
|
19603
|
+
offset: 0.625
|
|
19604
|
+
},
|
|
19605
|
+
{
|
|
19606
|
+
transform: `translate(${end.x - start.x}px, ${end.y - start.y}px) scale(.15)`,
|
|
19607
|
+
opacity: 0,
|
|
19608
|
+
filter: "blur(0px)",
|
|
19609
|
+
offset: 1
|
|
19610
|
+
}
|
|
19611
|
+
],
|
|
19612
|
+
{ duration: 1600, easing: "ease-in-out" }
|
|
19613
|
+
);
|
|
19614
|
+
animations.push(reveal);
|
|
19615
|
+
reveal.onfinish = () => {
|
|
19616
|
+
light.remove();
|
|
19617
|
+
if (destinationRef.current && !reduced())
|
|
19618
|
+
animations.push(
|
|
19619
|
+
destinationRef.current.animate(
|
|
19620
|
+
[{ transform: "scale(1)" }, { transform: "scale(1.15)" }, { transform: "scale(1)" }],
|
|
19621
|
+
{ duration: 200 }
|
|
19622
|
+
)
|
|
19623
|
+
);
|
|
19624
|
+
};
|
|
19625
|
+
} else
|
|
19626
|
+
light.remove();
|
|
19627
|
+
const preference = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
19628
|
+
const stopMovement = () => {
|
|
19629
|
+
if (!preference.matches)
|
|
19630
|
+
return;
|
|
19631
|
+
animations.forEach((animation) => animation.finish());
|
|
19632
|
+
light.remove();
|
|
19633
|
+
};
|
|
19634
|
+
preference.addEventListener("change", stopMovement);
|
|
19635
|
+
return () => {
|
|
19636
|
+
preference.removeEventListener("change", stopMovement);
|
|
19637
|
+
animations.forEach((animation) => animation.cancel());
|
|
19638
|
+
light.remove();
|
|
19639
|
+
cardElement.removeAttribute("inert");
|
|
19640
|
+
cardElement.removeAttribute("aria-hidden");
|
|
19641
|
+
};
|
|
19642
|
+
}, [active, originRef, destinationRef]);
|
|
19643
|
+
return /* @__PURE__ */ jsxs("div", { ref: host, className: [Finish, className].filter(Boolean).join(" "), children: [
|
|
19644
|
+
/* @__PURE__ */ jsx(OrbBackground, { agentColor: color2, finish: fieldFinish }),
|
|
19645
|
+
/* @__PURE__ */ jsx(
|
|
19646
|
+
"div",
|
|
19647
|
+
{
|
|
19648
|
+
ref: cardRef,
|
|
19649
|
+
className: Card,
|
|
19650
|
+
style: active ? { position: "absolute", inset: 0, pointerEvents: "none" } : void 0,
|
|
19651
|
+
children: card2
|
|
19652
|
+
}
|
|
19653
|
+
),
|
|
19654
|
+
active && /* @__PURE__ */ jsx("div", { ref: roomRef, className: Room, role: "region", "aria-label": roomLabel, tabIndex: -1, children: room })
|
|
19655
|
+
] });
|
|
19656
|
+
};
|
|
18765
19657
|
function ActionGroup({ actions, hint: hint$1 }) {
|
|
18766
19658
|
return /* @__PURE__ */ jsxs("div", { className: actionSection, children: [
|
|
18767
19659
|
/* @__PURE__ */ jsx("div", { className: actionGroup, role: "group", "aria-label": "Draft a PR request", children: actions.map((action$1) => /* @__PURE__ */ jsxs(
|
|
@@ -18785,6 +19677,7 @@ export {
|
|
|
18785
19677
|
AGENT_MARK_PLATE_DEFAULT,
|
|
18786
19678
|
AGENT_MARK_PLATE_VAR,
|
|
18787
19679
|
AGENT_STATE_MARKS,
|
|
19680
|
+
AccountCard,
|
|
18788
19681
|
ActionGroup,
|
|
18789
19682
|
ActivityGroup,
|
|
18790
19683
|
ActivityHeader,
|
|
@@ -18800,9 +19693,10 @@ export {
|
|
|
18800
19693
|
AvatarImage,
|
|
18801
19694
|
Badge,
|
|
18802
19695
|
Box,
|
|
18803
|
-
Button$
|
|
19696
|
+
Button$3 as Button,
|
|
18804
19697
|
Checkbox,
|
|
18805
|
-
Chip,
|
|
19698
|
+
Chip$1 as Chip,
|
|
19699
|
+
ColorSwatchPicker,
|
|
18806
19700
|
CommonsTab,
|
|
18807
19701
|
CommonsTabStrip,
|
|
18808
19702
|
ComposeIcon,
|
|
@@ -18853,11 +19747,21 @@ export {
|
|
|
18853
19747
|
LobbyStep,
|
|
18854
19748
|
LobbyYourAgentCard,
|
|
18855
19749
|
MOBILE_BREAKPOINT,
|
|
19750
|
+
MediaFrame,
|
|
18856
19751
|
MemberTypeTag,
|
|
18857
19752
|
Menu,
|
|
18858
19753
|
MenuItem,
|
|
18859
19754
|
Modal,
|
|
18860
19755
|
NavCollapseRow,
|
|
19756
|
+
OnboardingButton,
|
|
19757
|
+
OnboardingChip,
|
|
19758
|
+
OnboardingFinish,
|
|
19759
|
+
OnboardingKeyButton,
|
|
19760
|
+
OnboardingNavigation,
|
|
19761
|
+
OnboardingProgress,
|
|
19762
|
+
OnboardingTransition,
|
|
19763
|
+
OptionCard,
|
|
19764
|
+
OptionCardGroup,
|
|
18861
19765
|
OrbBackground,
|
|
18862
19766
|
OrbBackgroundHost,
|
|
18863
19767
|
Overlay,
|
|
@@ -18882,6 +19786,7 @@ export {
|
|
|
18882
19786
|
PeopleGlyph,
|
|
18883
19787
|
PeopleLine,
|
|
18884
19788
|
PeopleLineFace,
|
|
19789
|
+
PermissionRow,
|
|
18885
19790
|
PopOut,
|
|
18886
19791
|
PopOutContainerProvider,
|
|
18887
19792
|
Portal,
|
|
@@ -18906,6 +19811,8 @@ export {
|
|
|
18906
19811
|
SequenceCard,
|
|
18907
19812
|
ServerBadge,
|
|
18908
19813
|
FormRow as SettingTile,
|
|
19814
|
+
SetupProgressCard,
|
|
19815
|
+
SetupStatusRow,
|
|
18909
19816
|
Sidebar,
|
|
18910
19817
|
SidebarAddAgent,
|
|
18911
19818
|
SidebarAvatar,
|
|
@@ -18945,7 +19852,12 @@ export {
|
|
|
18945
19852
|
UnreadBadge,
|
|
18946
19853
|
UnreadBadgeCenter,
|
|
18947
19854
|
abbreviateCount,
|
|
19855
|
+
agentColorTokens,
|
|
19856
|
+
agentColors,
|
|
19857
|
+
agentIdentityFamilies,
|
|
19858
|
+
agentIdentityIndex,
|
|
18948
19859
|
as,
|
|
19860
|
+
auraColorTokens,
|
|
18949
19861
|
avatarRadii,
|
|
18950
19862
|
avatarSizes,
|
|
18951
19863
|
blueAccent,
|
|
@@ -18969,11 +19881,13 @@ export {
|
|
|
18969
19881
|
getScreenSize,
|
|
18970
19882
|
identityFamilies,
|
|
18971
19883
|
identityValues,
|
|
19884
|
+
isAgentColor,
|
|
18972
19885
|
lightClass,
|
|
18973
19886
|
lightColorValues,
|
|
18974
19887
|
lightTheme,
|
|
18975
19888
|
motion,
|
|
18976
19889
|
mountAliveMark,
|
|
19890
|
+
onboardingTokens,
|
|
18977
19891
|
percent,
|
|
18978
19892
|
personAvatarInk,
|
|
18979
19893
|
personAvatarTones,
|
|
@@ -18985,6 +19899,7 @@ export {
|
|
|
18985
19899
|
toSrgbHex,
|
|
18986
19900
|
typeTileIcon,
|
|
18987
19901
|
uiFontFamily,
|
|
19902
|
+
useAgentColorMotion,
|
|
18988
19903
|
useElementSizeObserver,
|
|
18989
19904
|
useOverlayContainer,
|
|
18990
19905
|
usePopOutContainer,
|