impact-ui 5.0.5-beta.1 → 5.0.5-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/_virtual/index15.js +2 -2
  2. package/dist/_virtual/index16.js +2 -2
  3. package/dist/_virtual/index3.js +2 -4
  4. package/dist/_virtual/index4.js +3 -3
  5. package/dist/_virtual/index5.js +4 -2
  6. package/dist/components/EmptyState/index.js +1 -1
  7. package/dist/components/Header/ChristmasCursorSparkles.d.ts.map +1 -1
  8. package/dist/components/Header/ChristmasCursorSparkles.js +3 -25
  9. package/dist/components/Header/ChristmasHeaderAssetVars.d.ts.map +1 -1
  10. package/dist/components/Header/ChristmasHeaderAssetVars.js +7 -6
  11. package/dist/components/Header/ChristmasHeaderLights.d.ts +1 -1
  12. package/dist/components/Header/ChristmasHeaderLights.d.ts.map +1 -1
  13. package/dist/components/Header/ChristmasHeaderLights.js +6 -4
  14. package/dist/components/Header/ChristmasSnowfall.d.ts +1 -1
  15. package/dist/components/Header/ChristmasSnowfall.d.ts.map +1 -1
  16. package/dist/components/Header/ChristmasSnowfall.js +3 -25
  17. package/dist/components/Header/christmasThemeAssets.d.ts +4 -2
  18. package/dist/components/Header/christmasThemeAssets.d.ts.map +1 -1
  19. package/dist/components/Header/christmasThemeAssets.js +12 -3
  20. package/dist/components/Header/index.js +1 -1
  21. package/dist/components/Header/winterHolidayInterfaceStyle.d.ts +4 -0
  22. package/dist/components/Header/winterHolidayInterfaceStyle.d.ts.map +1 -0
  23. package/dist/components/Header/winterHolidayInterfaceStyle.js +35 -0
  24. package/dist/components/InterfaceStyleIntro/InterfaceStyleIntroProvider.d.ts.map +1 -1
  25. package/dist/components/InterfaceStyleIntro/InterfaceStyleIntroProvider.js +65 -15
  26. package/dist/components/InterfaceStyleIntro/assets/icon-double-arrow-right.svg.js +4 -0
  27. package/dist/components/Loader/InterfaceStyleLoaderSlides.d.ts.map +1 -1
  28. package/dist/components/Loader/InterfaceStyleLoaderSlides.js +73 -45
  29. package/dist/components/Loader/index.js +1 -1
  30. package/dist/components/MonthRangePicker/index.d.ts.map +1 -1
  31. package/dist/components/MonthRangePicker/index.js +3 -2
  32. package/dist/components/TableChat/EmptyContainer.js +1 -1
  33. package/dist/components/TableChat/TableChatSidePanel.js +1 -1
  34. package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +1 -1
  35. package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +1 -1
  36. package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +1 -1
  37. package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +1 -1
  38. package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +1 -1
  39. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +1 -1
  40. package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +1 -1
  41. package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +1 -1
  42. package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +1 -1
  43. package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +1 -1
  44. package/dist/components/TableChat/components/TextEditor/EditorToolbar.js +1 -1
  45. package/dist/components/TableChat/components/TextEditor/Mention.js +1 -1
  46. package/dist/components/TableChat/components/TextEditor/MentionList.js +1 -1
  47. package/dist/components/TableV36/index.js +1 -1
  48. package/dist/components/ThemingPanel/ThemingPanel.d.ts.map +1 -1
  49. package/dist/components/ThemingPanel/ThemingPanel.js +7 -5
  50. package/dist/components/ThemingPanel/ThemingPanel.types.d.ts +1 -1
  51. package/dist/components/ThemingPanel/ThemingPanel.types.d.ts.map +1 -1
  52. package/dist/components/ThemingPanel/themingPanel.constants.d.ts.map +1 -1
  53. package/dist/components/ThemingPanel/themingPanel.constants.js +5 -2
  54. package/dist/components/common/MentionEditor/MentionList/index.js +1 -1
  55. package/dist/components/common/MentionEditor/index.js +1 -1
  56. package/dist/interfaceStyles/config.d.ts +12 -0
  57. package/dist/interfaceStyles/config.d.ts.map +1 -1
  58. package/dist/interfaceStyles/config.js +17 -0
  59. package/dist/interfaceStyles/winterHolidayInterfaceStyle.d.ts +8 -0
  60. package/dist/interfaceStyles/winterHolidayInterfaceStyle.d.ts.map +1 -0
  61. package/dist/interfaceStyles/winterHolidayInterfaceStyle.js +13 -0
  62. package/dist/locales/de-DE.json.d.ts +2 -1
  63. package/dist/locales/de-DE.json.js +2 -1
  64. package/dist/locales/en-US.json.d.ts +2 -1
  65. package/dist/locales/en-US.json.js +2 -1
  66. package/dist/locales/es-ES.json.d.ts +2 -1
  67. package/dist/locales/es-ES.json.js +2 -1
  68. package/dist/mcp-component-registry.json +1 -1
  69. package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +1142 -196
  70. package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
  71. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
  72. package/dist/node_modules/is-symbol/index.js +1 -1
  73. package/dist/node_modules/object-inspect/index.js +288 -23
  74. package/dist/node_modules/object-inspect/stringWidth.js +73 -0
  75. package/dist/node_modules/object-inspect/stringWidthRanges.js +41 -0
  76. package/dist/node_modules/react-is/index.js +1 -1
  77. package/dist/styles/style.css +1 -1
  78. package/dist/tokens/impactUiPreferences.d.ts +1 -1
  79. package/dist/tokens/impactUiPreferences.d.ts.map +1 -1
  80. package/dist/tokens/impactUiPreferences.js +2 -1
  81. package/dist/tokens/interfaceStyleDom.d.ts.map +1 -1
  82. package/dist/tokens/interfaceStyleDom.js +2 -1
  83. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- var reactIs = { exports: {} };
1
+ var isSymbol = { exports: {} };
2
2
  export {
3
- reactIs as __module
3
+ isSymbol as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var isSymbol = { exports: {} };
1
+ var reactIs = { exports: {} };
2
2
  export {
3
- isSymbol as __module
3
+ reactIs as __module
4
4
  };
@@ -1,6 +1,4 @@
1
- import { getAugmentedNamespace } from "./_commonjsHelpers.js";
2
- import * as index from "../node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/index.js";
3
- const require$$1 = /* @__PURE__ */ getAugmentedNamespace(index);
1
+ var reactIs = { exports: {} };
4
2
  export {
5
- require$$1 as default
3
+ reactIs as __module
6
4
  };
@@ -1,6 +1,6 @@
1
1
  import { getAugmentedNamespace } from "./_commonjsHelpers.js";
2
- import * as index from "../node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/index.js";
3
- const require$$2 = /* @__PURE__ */ getAugmentedNamespace(index);
2
+ import * as index from "../node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/index.js";
3
+ const require$$1 = /* @__PURE__ */ getAugmentedNamespace(index);
4
4
  export {
5
- require$$2 as default
5
+ require$$1 as default
6
6
  };
@@ -1,4 +1,6 @@
1
- var reactIs = { exports: {} };
1
+ import { getAugmentedNamespace } from "./_commonjsHelpers.js";
2
+ import * as index from "../node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/index.js";
3
+ const require$$2 = /* @__PURE__ */ getAugmentedNamespace(index);
2
4
  export {
3
- reactIs as __module
5
+ require$$2 as default
4
6
  };
@@ -1,4 +1,4 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.impact_emptystate{align-items:center;background-color:var(--iu-bg-surface-layer-bg);border:1px solid var(--iu-border-default);border-radius:12px;box-sizing:border-box;display:flex;flex-direction:column;height:auto;justify-content:center;margin:0 auto;overflow:hidden;padding:40px 20px;position:relative;text-align:center;width:884px}[data-iu-interface-style=christmas] .impact_emptystate:before{background-image:var(--iu-style-empty-state-bg-snow-overlay,none);background-position:50%;background-repeat:no-repeat;background-size:100% 100%;content:"";height:110.5px;left:78.5px;pointer-events:none;position:absolute;top:26px;width:min(750.5px,100% - 157px);z-index:0}.impact_emptystate .impact_emptystate-interface-style-corner-overlay{background-image:var(--iu-style-empty-state-card-corner-overlay);background-position:0 0;background-repeat:no-repeat;display:none;height:100%;pointer-events:none;position:absolute;width:168px;z-index:0}[data-iu-interface-style] .impact_emptystate .impact_emptystate-interface-style-corner-overlay{display:block}.impact_emptystate .impact_emptystate-interface-style-corner-overlay--top-left{left:0;top:0}.impact_emptystate .impact_emptystate-interface-style-corner-overlay--top-right{background-image:var(--iu-style-empty-state-card-corner-overlay-high);background-position:100% 0;right:0;top:10%}.impact_emptystate .impact_emptystate-interface-style-side-accent{background-position:50%;background-repeat:no-repeat;background-size:contain;display:none;height:96px;pointer-events:none;position:absolute;width:96px;z-index:0}[data-iu-interface-style] .impact_emptystate .impact_emptystate-interface-style-side-accent{display:block}.impact_emptystate .impact_emptystate-interface-style-side-accent--left{background-image:var(--iu-style-empty-state-side-accent);left:72px;top:108px}.impact_emptystate .impact_emptystate-interface-style-side-accent--right{background-image:var(--iu-style-empty-state-side-accent-trailing,var(--iu-style-empty-state-side-accent));right:86px;top:108px}[data-iu-interface-style=halloween] .impact_emptystate .impact_emptystate-interface-style-side-accent--right{transform:scaleX(-1)}.impact_emptystate :is(.bottom_cta_container,.impact_center_svg,.impact_heading,.impact_paragraph){position:relative;z-index:1}.impact_emptystate .impact_center_svg{align-items:center;display:flex;height:150px;justify-content:center;margin-bottom:12px;min-height:180px;overflow:hidden;position:relative;width:225px}.impact_emptystate .impact_center_svg_with_icon{background:none!important;min-height:180px}.impact_emptystate .impact_heading{color:var(--iu-on-surface-body);font-size:20px;font-weight:700;margin-bottom:16px}.impact_emptystate .impact_paragraph{color:var(--iu-on-surface-label);font-size:16px;font-weight:500;line-height:21px;margin-bottom:40px;margin-top:12px;text-align:center;width:650px}.impact_emptystate .bottom_cta_container{align-items:center;display:flex;flex-wrap:wrap;gap:16px;justify-content:center}.impact_emptystate .bottom_cta_container .primary_btn{border:none;border-radius:8px}.impact_emptystate .bottom_cta_container .primary_btn,.impact_emptystate .bottom_cta_container .secondary_btn{box-sizing:border-box;cursor:pointer;font-size:14px;font-weight:500;height:32px;line-height:20px;padding:6px 12px;text-transform:capitalize}.impact_emptystate .bottom_cta_container .secondary_btn{background:var(--iu-bg-surface-layer-bg);border:1px solid var(--iu-bg-disabled-2);border-radius:8px;color:var(--iu-on-surface-body)}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.impact_emptystate{align-items:center;background-color:var(--iu-bg-surface-layer-bg);border:1px solid var(--iu-border-default);border-radius:12px;box-sizing:border-box;display:flex;flex-direction:column;height:auto;justify-content:center;margin:0 auto;overflow:hidden;padding:40px 20px;position:relative;text-align:center;width:884px}:is([data-iu-interface-style=christmas],[data-iu-interface-style=holiday]) .impact_emptystate:before{background-image:var(--iu-style-empty-state-bg-snow-overlay,none);background-position:50%;background-repeat:no-repeat;background-size:100% 100%;content:"";height:110.5px;left:78.5px;pointer-events:none;position:absolute;top:26px;width:min(750.5px,100% - 157px);z-index:0}.impact_emptystate .impact_emptystate-interface-style-corner-overlay{background-image:var(--iu-style-empty-state-card-corner-overlay);background-position:0 0;background-repeat:no-repeat;display:none;height:100%;pointer-events:none;position:absolute;width:168px;z-index:0}[data-iu-interface-style] .impact_emptystate .impact_emptystate-interface-style-corner-overlay{display:block}.impact_emptystate .impact_emptystate-interface-style-corner-overlay--top-left{left:0;top:0}.impact_emptystate .impact_emptystate-interface-style-corner-overlay--top-right{background-image:var(--iu-style-empty-state-card-corner-overlay-high);background-position:100% 0;right:0;top:30%}.impact_emptystate .impact_emptystate-interface-style-side-accent{background-position:50%;background-repeat:no-repeat;background-size:contain;display:none;height:96px;pointer-events:none;position:absolute;width:96px;z-index:0}[data-iu-interface-style] .impact_emptystate .impact_emptystate-interface-style-side-accent{display:block}.impact_emptystate .impact_emptystate-interface-style-side-accent--left{background-image:var(--iu-style-empty-state-side-accent);left:72px;top:108px}.impact_emptystate .impact_emptystate-interface-style-side-accent--right{background-image:var(--iu-style-empty-state-side-accent-trailing,var(--iu-style-empty-state-side-accent));right:86px;top:108px}[data-iu-interface-style=halloween] .impact_emptystate .impact_emptystate-interface-style-side-accent--right{transform:scaleX(-1)}.impact_emptystate :is(.bottom_cta_container,.impact_center_svg,.impact_heading,.impact_paragraph){position:relative;z-index:1}.impact_emptystate .impact_center_svg{align-items:center;display:flex;height:150px;justify-content:center;margin-bottom:12px;min-height:180px;overflow:hidden;position:relative;width:225px}.impact_emptystate .impact_center_svg_with_icon{background:none!important;min-height:180px}.impact_emptystate .impact_heading{color:var(--iu-on-surface-body);font-size:20px;font-weight:700;margin-bottom:16px}.impact_emptystate .impact_paragraph{color:var(--iu-on-surface-label);font-size:16px;font-weight:500;line-height:21px;margin-bottom:40px;margin-top:12px;text-align:center;width:650px}.impact_emptystate .bottom_cta_container{align-items:center;display:flex;flex-wrap:wrap;gap:16px;justify-content:center}.impact_emptystate .bottom_cta_container .primary_btn{border:none;border-radius:8px}.impact_emptystate .bottom_cta_container .primary_btn,.impact_emptystate .bottom_cta_container .secondary_btn{box-sizing:border-box;cursor:pointer;font-size:14px;font-weight:500;height:32px;line-height:20px;padding:6px 12px;text-transform:capitalize}.impact_emptystate .bottom_cta_container .secondary_btn{background:var(--iu-bg-surface-layer-bg);border:1px solid var(--iu-bg-disabled-2);border-radius:8px;color:var(--iu-on-surface-body)}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import { Button } from "../Button/index.js";
4
4
  import { EmptyStateImage } from "./EmptyStateImage.js";
@@ -1 +1 @@
1
- {"version":3,"file":"ChristmasCursorSparkles.d.ts","sourceRoot":"","sources":["../../../src/components/Header/ChristmasCursorSparkles.tsx"],"names":[],"mappings":"AAuLA,wBAAgB,uBAAuB,uCAkDtC"}
1
+ {"version":3,"file":"ChristmasCursorSparkles.d.ts","sourceRoot":"","sources":["../../../src/components/Header/ChristmasCursorSparkles.tsx"],"names":[],"mappings":"AAkLA,wBAAgB,uBAAuB,uCA2BtC"}
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useRef, useState, useEffect } from "react";
2
+ import { useRef, useEffect } from "react";
3
3
  import { createPortal } from "react-dom";
4
- import { readImpactUiInterfaceStyleFromDom, IMPACT_UI_INTERFACE_STYLE_CHANGE } from "../../tokens/interfaceStyleDom.js";
5
4
  import { CHRISTMAS_CURSOR_SPARKLE_COLORS } from "./christmasCursorSparkles.constants.js";
5
+ import { useWinterHolidayInterfaceStyleEnabled } from "./winterHolidayInterfaceStyle.js";
6
6
  const TRAIL_MOVE_MIN_PX = 14;
7
7
  const TRAIL_DECAY = 0.026;
8
8
  const BURST_COUNT = 8;
@@ -135,29 +135,7 @@ function runCursorSparkles(canvas, colors, reducedMotion) {
135
135
  }
136
136
  function ChristmasCursorSparkles() {
137
137
  const canvasRef = useRef(null);
138
- const [enabled, setEnabled] = useState(
139
- () => typeof document !== "undefined" && readImpactUiInterfaceStyleFromDom() === "christmas"
140
- );
141
- useEffect(() => {
142
- const sync = () => {
143
- setEnabled(readImpactUiInterfaceStyleFromDom() === "christmas");
144
- };
145
- sync();
146
- const onStyle = (event) => {
147
- const { detail } = event;
148
- setEnabled(detail.style === "christmas");
149
- };
150
- window.addEventListener(IMPACT_UI_INTERFACE_STYLE_CHANGE, onStyle);
151
- const observer = new MutationObserver(sync);
152
- observer.observe(document.documentElement, {
153
- attributes: true,
154
- attributeFilter: ["data-iu-interface-style"]
155
- });
156
- return () => {
157
- window.removeEventListener(IMPACT_UI_INTERFACE_STYLE_CHANGE, onStyle);
158
- observer.disconnect();
159
- };
160
- }, []);
138
+ const enabled = useWinterHolidayInterfaceStyleEnabled();
161
139
  useEffect(() => {
162
140
  if (!enabled) return void 0;
163
141
  const reducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
@@ -1 +1 @@
1
- {"version":3,"file":"ChristmasHeaderAssetVars.d.ts","sourceRoot":"","sources":["../../../src/components/Header/ChristmasHeaderAssetVars.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AA8ClD,qFAAqF;AACrF,wBAAgB,wBAAwB,CAAC,EACvC,SAAS,GACV,EAAE;IACD,SAAS,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAC1C,QAyCA"}
1
+ {"version":3,"file":"ChristmasHeaderAssetVars.d.ts","sourceRoot":"","sources":["../../../src/components/Header/ChristmasHeaderAssetVars.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AA+ClD,qFAAqF;AACrF,wBAAgB,wBAAwB,CAAC,EACvC,SAAS,GACV,EAAE;IACD,SAAS,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAC1C,QA4CA"}
@@ -1,7 +1,8 @@
1
1
  import { useEffect } from "react";
2
+ import { isWinterHolidayInterfaceStyle } from "../../interfaceStyles/winterHolidayInterfaceStyle.js";
2
3
  import { IMPACT_UI_INTERFACE_STYLE_CHANGE, readImpactUiInterfaceStyleFromDom } from "../../tokens/interfaceStyleDom.js";
3
4
  import { IMPACT_UI_THEME_CHANGE } from "../../tokens/themeDom.js";
4
- import { getChristmasThemeAssetUrl, getChristmasHeaderLogoAsset, getChristmasHeaderTrailingAccentAsset, getChristmasHeaderSnowAsset } from "./christmasThemeAssets.js";
5
+ import { getWinterHolidayThemeAssetUrl, getChristmasHeaderLogoAsset, getChristmasHeaderTrailingAccentAsset, getChristmasHeaderSnowAsset } from "./christmasThemeAssets.js";
5
6
  const VARS = {
6
7
  logo: "--iu-header-logo-src-interface-style",
7
8
  wreath: "--iu-style-header-trailing-accent",
@@ -10,7 +11,7 @@ const VARS = {
10
11
  function applyChristmasHeaderAssetVars(getHeaderEl) {
11
12
  const headerEl = getHeaderEl();
12
13
  if (!headerEl) return;
13
- if (readImpactUiInterfaceStyleFromDom() !== "christmas") {
14
+ if (!isWinterHolidayInterfaceStyle(readImpactUiInterfaceStyleFromDom())) {
14
15
  headerEl.style.removeProperty(VARS.logo);
15
16
  headerEl.style.removeProperty(VARS.wreath);
16
17
  headerEl.style.removeProperty(VARS.snow);
@@ -18,15 +19,15 @@ function applyChristmasHeaderAssetVars(getHeaderEl) {
18
19
  }
19
20
  headerEl.style.setProperty(
20
21
  VARS.logo,
21
- `url("${getChristmasThemeAssetUrl(getChristmasHeaderLogoAsset())}")`
22
+ `url("${getWinterHolidayThemeAssetUrl(getChristmasHeaderLogoAsset())}")`
22
23
  );
23
24
  headerEl.style.setProperty(
24
25
  VARS.wreath,
25
- `url("${getChristmasThemeAssetUrl(getChristmasHeaderTrailingAccentAsset())}")`
26
+ `url("${getWinterHolidayThemeAssetUrl(getChristmasHeaderTrailingAccentAsset())}")`
26
27
  );
27
28
  headerEl.style.setProperty(
28
29
  VARS.snow,
29
- `url("${getChristmasThemeAssetUrl(getChristmasHeaderSnowAsset())}")`
30
+ `url("${getWinterHolidayThemeAssetUrl(getChristmasHeaderSnowAsset())}")`
30
31
  );
31
32
  }
32
33
  function ChristmasHeaderAssetVars({
@@ -40,7 +41,7 @@ function ChristmasHeaderAssetVars({
40
41
  apply();
41
42
  const onInterfaceStyle = (event) => {
42
43
  const { detail } = event;
43
- if (detail.style === "christmas" || readImpactUiInterfaceStyleFromDom() === "christmas") {
44
+ if (isWinterHolidayInterfaceStyle(detail.style) || isWinterHolidayInterfaceStyle(readImpactUiInterfaceStyleFromDom())) {
44
45
  apply();
45
46
  } else {
46
47
  applyChristmasHeaderAssetVars(getHeaderEl);
@@ -1,3 +1,3 @@
1
- /** Christmas string lights — CSS filter glow (PlanSmart / Figma). */
1
+ /** Winter holiday string lights — CSS filter glow (PlanSmart / Figma). */
2
2
  export declare function ChristmasHeaderLights(): import("react").JSX.Element;
3
3
  //# sourceMappingURL=ChristmasHeaderLights.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChristmasHeaderLights.d.ts","sourceRoot":"","sources":["../../../src/components/Header/ChristmasHeaderLights.tsx"],"names":[],"mappings":"AAMA,qEAAqE;AACrE,wBAAgB,qBAAqB,gCAmCpC"}
1
+ {"version":3,"file":"ChristmasHeaderLights.d.ts","sourceRoot":"","sources":["../../../src/components/Header/ChristmasHeaderLights.tsx"],"names":[],"mappings":"AAOA,0EAA0E;AAC1E,wBAAgB,qBAAqB,gCAqCpC"}
@@ -1,9 +1,11 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { CHRISTMAS_HEADER_BULBS, CHRISTMAS_BULB_GLASS_FILES } from "./christmasHeaderLights.constants.js";
3
- import { getChristmasThemeAssetUrl, CHRISTMAS_HEADER_ASSETS } from "./christmasThemeAssets.js";
3
+ import { getWinterHolidayThemeAssetUrl, CHRISTMAS_HEADER_ASSETS } from "./christmasThemeAssets.js";
4
+ import { useWinterHolidayInterfaceStyleEnabled } from "./winterHolidayInterfaceStyle.js";
4
5
  function ChristmasHeaderLights() {
5
- const wireSrc = getChristmasThemeAssetUrl(CHRISTMAS_HEADER_ASSETS.wire);
6
- const socketSrc = getChristmasThemeAssetUrl(CHRISTMAS_HEADER_ASSETS.socket);
6
+ useWinterHolidayInterfaceStyleEnabled();
7
+ const wireSrc = getWinterHolidayThemeAssetUrl(CHRISTMAS_HEADER_ASSETS.wire);
8
+ const socketSrc = getWinterHolidayThemeAssetUrl(CHRISTMAS_HEADER_ASSETS.socket);
7
9
  return /* @__PURE__ */ jsx("div", { "aria-hidden": true, className: "iu-header-christmas-garland", children: /* @__PURE__ */ jsxs("div", { className: "iu-header-christmas-lights", children: [
8
10
  /* @__PURE__ */ jsx("img", { alt: "", className: "iu-header-christmas-wire", draggable: false, src: wireSrc }),
9
11
  CHRISTMAS_HEADER_BULBS.map((bulb, i) => /* @__PURE__ */ jsxs(
@@ -19,7 +21,7 @@ function ChristmasHeaderLights() {
19
21
  className: "iu-header-christmas-bulb__glass",
20
22
  draggable: false,
21
23
  height: 13.2,
22
- src: getChristmasThemeAssetUrl(CHRISTMAS_BULB_GLASS_FILES[bulb.color]),
24
+ src: getWinterHolidayThemeAssetUrl(CHRISTMAS_BULB_GLASS_FILES[bulb.color]),
23
25
  width: 9.6
24
26
  }
25
27
  ),
@@ -1,3 +1,3 @@
1
- /** Full-viewport falling snow when `data-iu-interface-style="christmas"`. */
1
+ /** Full-viewport falling snow when `data-iu-interface-style` is `christmas` or `holiday`. */
2
2
  export declare function ChristmasSnowfall(): import('react').ReactPortal | null;
3
3
  //# sourceMappingURL=ChristmasSnowfall.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChristmasSnowfall.d.ts","sourceRoot":"","sources":["../../../src/components/Header/ChristmasSnowfall.tsx"],"names":[],"mappings":"AAyIA,6EAA6E;AAC7E,wBAAgB,iBAAiB,uCAyChC"}
1
+ {"version":3,"file":"ChristmasSnowfall.d.ts","sourceRoot":"","sources":["../../../src/components/Header/ChristmasSnowfall.tsx"],"names":[],"mappings":"AAsIA,6FAA6F;AAC7F,wBAAgB,iBAAiB,uCAkBhC"}
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useRef, useState, useEffect } from "react";
2
+ import { useRef, useEffect } from "react";
3
3
  import { createPortal } from "react-dom";
4
- import { readImpactUiInterfaceStyleFromDom, IMPACT_UI_INTERFACE_STYLE_CHANGE } from "../../tokens/interfaceStyleDom.js";
5
4
  import { readImpactUiThemeModeFromDom } from "../../tokens/themeDom.js";
5
+ import { useWinterHolidayInterfaceStyleEnabled } from "./winterHolidayInterfaceStyle.js";
6
6
  const MAX_FLAKES = 160;
7
7
  const FLAKE_DENSITY_DIVISOR = 11e3;
8
8
  const CURSOR_PUSH_RADIUS = 90;
@@ -101,29 +101,7 @@ function runSnow(canvas, reducedMotion) {
101
101
  }
102
102
  function ChristmasSnowfall() {
103
103
  const canvasRef = useRef(null);
104
- const [enabled, setEnabled] = useState(
105
- () => typeof document !== "undefined" && readImpactUiInterfaceStyleFromDom() === "christmas"
106
- );
107
- useEffect(() => {
108
- const sync = () => {
109
- setEnabled(readImpactUiInterfaceStyleFromDom() === "christmas");
110
- };
111
- sync();
112
- const onStyle = (event) => {
113
- const { detail } = event;
114
- setEnabled(detail.style === "christmas");
115
- };
116
- window.addEventListener(IMPACT_UI_INTERFACE_STYLE_CHANGE, onStyle);
117
- const observer = new MutationObserver(sync);
118
- observer.observe(document.documentElement, {
119
- attributes: true,
120
- attributeFilter: ["data-iu-interface-style"]
121
- });
122
- return () => {
123
- window.removeEventListener(IMPACT_UI_INTERFACE_STYLE_CHANGE, onStyle);
124
- observer.disconnect();
125
- };
126
- }, []);
104
+ const enabled = useWinterHolidayInterfaceStyleEnabled();
127
105
  useEffect(() => {
128
106
  if (!enabled || !canvasRef.current) return void 0;
129
107
  const reducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
@@ -1,4 +1,4 @@
1
- /** CDN folder: `images/theme/christmas/` on the Impact UI asset base. */
1
+ /** @deprecated Use {@link getWinterHolidayThemeCdnDir} for the active winter style. */
2
2
  export declare const CHRISTMAS_THEME_CDN_DIR = "images/theme/christmas";
3
3
  export declare const CHRISTMAS_HEADER_ASSETS: {
4
4
  readonly logoLight: "header-logo-light.svg";
@@ -14,7 +14,9 @@ export declare const CHRISTMAS_HEADER_ASSETS: {
14
14
  readonly bulbGreen: "christmas-bulb-green.svg";
15
15
  readonly bulbBlue: "christmas-bulb-blue.svg";
16
16
  };
17
- /** Header Christmas bundle on the asset CDN. */
17
+ /** Asset URL for the active winter holiday interface style (`christmas` or `holiday`). */
18
+ export declare function getWinterHolidayThemeAssetUrl(file: string): string;
19
+ /** @deprecated Use {@link getWinterHolidayThemeAssetUrl}. */
18
20
  export declare function getChristmasThemeAssetUrl(file: string): string;
19
21
  export declare function getChristmasHeaderLogoAsset(): string;
20
22
  export declare function getChristmasHeaderSnowAsset(): string;
@@ -1 +1 @@
1
- {"version":3,"file":"christmasThemeAssets.d.ts","sourceRoot":"","sources":["../../../src/components/Header/christmasThemeAssets.ts"],"names":[],"mappings":"AAGA,yEAAyE;AACzE,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAEhE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;CAa1B,CAAC;AAEX,gDAAgD;AAChD,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED,wBAAgB,2BAA2B,IAAI,MAAM,CAGpD;AAED,wBAAgB,2BAA2B,IAAI,MAAM,CAGpD;AAED,wBAAgB,qCAAqC,IAAI,MAAM,CAG9D"}
1
+ {"version":3,"file":"christmasThemeAssets.d.ts","sourceRoot":"","sources":["../../../src/components/Header/christmasThemeAssets.ts"],"names":[],"mappings":"AAQA,uFAAuF;AACvF,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAEhE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;CAa1B,CAAC;AAUX,0FAA0F;AAC1F,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,6DAA6D;AAC7D,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED,wBAAgB,2BAA2B,IAAI,MAAM,CAGpD;AAED,wBAAgB,2BAA2B,IAAI,MAAM,CAGpD;AAED,wBAAgB,qCAAqC,IAAI,MAAM,CAG9D"}
@@ -1,3 +1,5 @@
1
+ import { isWinterHolidayInterfaceStyle, getWinterHolidayThemeCdnDir } from "../../interfaceStyles/winterHolidayInterfaceStyle.js";
2
+ import { readImpactUiInterfaceStyleFromDom } from "../../tokens/interfaceStyleDom.js";
1
3
  import { readImpactUiThemeModeFromDom } from "../../tokens/themeDom.js";
2
4
  import { getAssetUrl } from "../../utils/assetBase.js";
3
5
  const CHRISTMAS_THEME_CDN_DIR = "images/theme/christmas";
@@ -15,8 +17,15 @@ const CHRISTMAS_HEADER_ASSETS = {
15
17
  bulbGreen: "christmas-bulb-green.svg",
16
18
  bulbBlue: "christmas-bulb-blue.svg"
17
19
  };
18
- function getChristmasThemeAssetUrl(file) {
19
- return getAssetUrl(`${CHRISTMAS_THEME_CDN_DIR}/${file}`);
20
+ function winterHolidayThemeCdnDirFromDom() {
21
+ const style = readImpactUiInterfaceStyleFromDom();
22
+ if (isWinterHolidayInterfaceStyle(style)) {
23
+ return getWinterHolidayThemeCdnDir(style);
24
+ }
25
+ return CHRISTMAS_THEME_CDN_DIR;
26
+ }
27
+ function getWinterHolidayThemeAssetUrl(file) {
28
+ return getAssetUrl(`${winterHolidayThemeCdnDirFromDom()}/${file}`);
20
29
  }
21
30
  function getChristmasHeaderLogoAsset() {
22
31
  const dark = readImpactUiThemeModeFromDom() === "dark";
@@ -36,5 +45,5 @@ export {
36
45
  getChristmasHeaderLogoAsset,
37
46
  getChristmasHeaderSnowAsset,
38
47
  getChristmasHeaderTrailingAccentAsset,
39
- getChristmasThemeAssetUrl
48
+ getWinterHolidayThemeAssetUrl
40
49
  };
@@ -1,4 +1,4 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.impact-header-container{align-items:center;background-color:var(--iu-bg-surface-layer-bg);box-shadow:var(--iu-effect-shadow-header-bar-elevation);display:flex;height:56px;justify-content:space-between;left:64px;min-width:700px;overflow:hidden;padding:0 24px;position:fixed;top:0;width:calc(100% - 64px);z-index:1199}.impact-header-container-left-side,.impact-header-container-right-side{position:relative;z-index:1}.impact-header-container-left-side{align-items:center;display:flex;flex-direction:row;gap:14px;justify-content:flex-start}.impact-header-logo{flex:none;height:36px;width:91px}.impact-header-logo:hover{cursor:pointer}.iu-header-interface-style-leading-accent,.iu-header-interface-style-trailing-accent{display:none}[data-iu-interface-style] :is(.iu-header-interface-style-leading-accent,.iu-header-interface-style-trailing-accent){display:block}.iu-header-interface-style-leading-accent{background-image:var(--iu-style-header-leading-accent);background-position:50%;background-repeat:no-repeat;background-size:contain;height:32px;width:29px}.iu-header-interface-style-trailing-accent{background-image:var(--iu-style-header-trailing-accent);background-position:50%;background-repeat:no-repeat;background-size:contain;height:31px;width:77px}.iu-header-interface-style-trailing-corner-overlay{background-image:var(--iu-style-header-trailing-corner-overlay);background-position:100% 0;background-repeat:no-repeat;background-size:auto 100%;display:none;height:100%;left:68%;overflow:hidden;pointer-events:none;position:absolute;top:0;transform:translate(-50%);width:224px;z-index:0}[data-iu-interface-style=halloween] .iu-header-interface-style-trailing-corner-overlay{background-size:100% 100%;height:215px;transform:translate(-50%,-50%)}[data-iu-interface-style] .impact-header-container .iu-header-interface-style-trailing-corner-overlay{display:block}.impact-header-logo-mark{background-image:var(--iu-header-logo-src-interface-style,var(--iu-header-logo-src));background-position:50%;background-repeat:no-repeat;background-size:contain;display:block;height:100%;width:100%}.impact-header-separator{background-color:var(--iu-border-disabled);display:block;height:24px;width:1px}.impact-header-title{color:var(--iu-on-surface-body);font-size:16px;font-weight:800;line-height:24px}.impact-header-container-right-side{align-items:center;align-self:stretch;display:flex;flex-direction:row;gap:24px;justify-content:flex-start}.impact-header-avatar:hover,.impact-header-comments-button:hover,.impact-header-help-container:hover,.impact-header-language-button:hover,.impact-header-message-container:hover,.impact-header-notification-container:hover{cursor:pointer}.impact-header-language-button,.impact-header-language-container{align-items:center;display:flex}.impact-header-language-button{gap:4px;height:20px;justify-content:center}.impact-header-language-icon-placeholder{border:1.5px solid var(--iu-on-surface-body);border-radius:50%;display:inline-block;height:20px;width:20px}.impact-header-language-flag-placeholder{background-color:var(--iu-bg-surface-lighter);border:1px solid var(--iu-border-disabled);border-radius:2px;display:inline-block;height:14px;width:20px}.impact-header-comments-container{align-items:center;display:flex;position:relative}.impact-header-comments-button{align-items:center;border-radius:4px;display:flex;justify-content:center;padding:4px}.header-comments-dropdown{background-color:var(--iu-bg-surface-layer-bg);border-radius:8px;box-shadow:var(--iu-effect-shadow-header-dropdown-elevated);overflow:hidden;position:absolute;right:0;top:calc(100% + 8px);z-index:10000}.header-comments-dropdown .comment-panel-main-container{max-height:500px;position:relative}.header-comments-dropdown .comment-panel-main-container.display-comment-panel{bottom:unset;max-height:500px;min-height:400px}.header-comments-dropdown .comment-panel-main-container .comment-panel-body{flex:1;overflow:auto;position:relative;top:auto}.header-comments-dropdown .comment-panel-main-container .impact_emptystate{border:none;border-radius:0;margin:0;min-height:auto;padding:20px;width:auto}.header-comments-dropdown .comment-panel-main-container .impact_emptystate .impact_center_svg_with_icon{min-height:0}.header-comments-dropdown .comment-panel-main-container .impact_emptystate .impact_center_svg{height:auto}.header-comments-dropdown .comment-panel-main-container .impact_emptystate .impact_heading{font-size:14px;line-height:21px;margin-bottom:0}.header-comments-dropdown .comment-panel-main-container .impact_emptystate .impact_paragraph{color:var(--iu-on-surface-caption);font-size:10px;font-weight:500;line-height:14px;margin-top:0;width:285px}.header-comments-dropdown .comment-panel-main-container .comment-panel-content{bottom:auto;max-height:380px;position:relative;top:auto}.impact-header-bot-container{align-items:center;background-color:var(--iu-legacy-chatbot-bg);background:var(--iu-effect-gradient-header-smart-bot-main);background-size:400% 400%;border-radius:8px;cursor:pointer;display:flex;height:34px;padding-inline:11px;position:relative}.impact-header-bot-container:after{background:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/smartBot.svg) no-repeat;background-position:50%;background-size:16px;content:"";height:16px;position:absolute;width:16px}.impact-header-bot-container:before{background:var(--iu-effect-gradient-header-smart-bot-border);border-radius:9px;bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:-1}.impact-header-bot-container:hover:not(.impact-header-bot-container-disabled){animation:gradient 2s ease infinite;background:var(--iu-effect-gradient-header-smart-bot-hover);background-size:400% 400%}.impact-header-bot-container:hover:not(.impact-header-bot-container-disabled):before{background:none}.impact-header-bot-container{animation:gradient 5s ease infinite}.impact-header-bot-container .impact-header-bot-container-text{color:var(--iu-on-primary-text);font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding-left:23px}@keyframes gradient{0%{background-position:0 20% 40% 60% 80%}50%{background-position:80% 50%}to{background-position:0 20% 40% 60% 80%}}.impact-header-bot-container-disabled{animation:none;background-color:var(--iu-border-disabled);background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/smartBot.svg),none;background-position:10px 50%;background-repeat:no-repeat;background-size:20px 20px;cursor:not-allowed}.impact-header-bot-container-disabled:before{background:none}.impact-header-notification-container{position:relative}.impact-header-notification-dnd-container{height:16px;left:14px;position:absolute;top:-5px;width:16px}.impact-header-notification-indicator-container{height:8px;left:14px;position:absolute;top:0;width:8px}.impact-header-notification-indicator-outer-circle{animation:waves 1.5s ease-out infinite;background-color:var(--iu-bg-error-subtle);border-radius:50%;height:10px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:10px}.impact-header-notification-indicator-inner-circle{background-color:var(--iu-badge-error-on-default);border-radius:50%;height:8px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}.impact-header-avatar .ia-avatar{background-color:var(--iu-primitive-color-green-500)!important;border-radius:8px;color:var(--iu-on-primary-text);line-height:30px}.impact-header-lang-label{color:var(--iu-on-surface-label);font-size:14px;font-weight:600}@keyframes waves{0%{height:8px;width:8px}to{height:16px;width:16px}}.iu-christmas-snowfall{z-index:70}.iu-christmas-cursor-sparkles,.iu-christmas-snowfall{height:100vh;top:0;right:0;bottom:0;left:0;pointer-events:none;position:fixed;width:100vw}.iu-christmas-cursor-sparkles{z-index:1400}.iu-header-christmas-garland{display:none;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none;position:absolute;z-index:0}[data-iu-interface-style=christmas] .impact-header-container{isolation:isolate}[data-iu-interface-style=christmas] .iu-header-christmas-garland{display:block;z-index:1}[data-iu-interface-style=christmas] :is(.impact-header-container-left-side,.impact-header-container-right-side){z-index:2}[data-iu-interface-style=christmas] .impact-header-container>:not(.iu-header-christmas-garland){position:relative;z-index:2}[data-iu-interface-style=christmas] .iu-header-interface-style-leading-accent{display:none!important}[data-iu-interface-style=christmas] .impact-header-logo{height:35px;width:98px}[data-iu-interface-style=christmas] .iu-header-interface-style-trailing-accent{background-position:50%;background-size:contain;flex-shrink:0;height:32px;width:32px}[data-iu-interface-style=christmas] .iu-header-interface-style-trailing-corner-overlay{display:none!important}[data-iu-interface-style=christmas] .impact-header-container:before{background-image:var(--iu-style-header-snowflake-pattern);background-position:50%;background-repeat:no-repeat;background-size:100% 100%;content:"";top:0;right:0;bottom:0;left:0;opacity:1;pointer-events:none;position:absolute;z-index:0}[data-iu-interface-style=christmas][data-iu-theme=dark] .impact-header-container:before{background-position:top;background-size:cover;opacity:.55}.iu-header-christmas-lights{height:100%;left:18.005%;position:absolute;top:0;width:63.512%}.iu-header-christmas-wire{height:69.8px;left:0;max-width:none;position:absolute;top:-36px;width:100%}.iu-header-christmas-bulb{--c:255,33,51;--bright:drop-shadow(0 0 14px rgba(var(--c),.5)) drop-shadow(0 0 7px rgba(var(--c),.65)) drop-shadow(0 0 3px rgba(var(--c),.75));--dim:drop-shadow(0 0 8px rgba(var(--c),.18)) drop-shadow(0 0 4px rgba(var(--c),.32)) drop-shadow(0 0 2px rgba(var(--c),.35));animation:iu-christmas-bulb-pulse 2s ease-in-out infinite;animation-delay:var(--delay,0s);background:#0000;border:0;filter:var(--bright);height:16.8px;padding:0;position:absolute;width:9.6px}.iu-header-christmas-bulb--red{--c:255,33,51}.iu-header-christmas-bulb--gold{--c:255,178,26;--delay:-1.5s}.iu-header-christmas-bulb--green{--c:26,217,120;--delay:-1s}.iu-header-christmas-bulb--blue{--c:31,135,255;--delay:-.5s}.iu-header-christmas-bulb__glass{animation:iu-christmas-bulb-glass-pulse 2s ease-in-out infinite;animation-delay:var(--delay,0s);height:13.2px;left:0;position:absolute;top:3.6px;width:9.6px}.iu-header-christmas-bulb__socket{height:4.4px;left:2.4px;position:absolute;top:0;width:4.8px}@keyframes iu-christmas-bulb-pulse{0%,to{filter:var(--bright)}50%{filter:var(--dim)}}@keyframes iu-christmas-bulb-glass-pulse{0%,to{filter:none}50%{filter:brightness(.78) saturate(.82)}}@media (prefers-reduced-motion:reduce){.iu-header-christmas-bulb,.iu-header-christmas-bulb__glass{animation:none;filter:var(--bright)}.iu-header-christmas-bulb__glass{filter:none}}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.impact-header-container{align-items:center;background-color:var(--iu-bg-surface-layer-bg);box-shadow:var(--iu-effect-shadow-header-bar-elevation);display:flex;height:56px;justify-content:space-between;left:64px;min-width:700px;overflow:hidden;padding:0 24px;position:fixed;top:0;width:calc(100% - 64px);z-index:1199}.impact-header-container-left-side,.impact-header-container-right-side{position:relative;z-index:1}.impact-header-container-left-side{align-items:center;display:flex;flex-direction:row;gap:14px;justify-content:flex-start}.impact-header-logo{flex:none;height:36px;width:91px}.impact-header-logo:hover{cursor:pointer}.iu-header-interface-style-leading-accent,.iu-header-interface-style-trailing-accent{display:none}[data-iu-interface-style] :is(.iu-header-interface-style-leading-accent,.iu-header-interface-style-trailing-accent){display:block}.iu-header-interface-style-leading-accent{background-image:var(--iu-style-header-leading-accent);background-position:50%;background-repeat:no-repeat;background-size:contain;height:32px;width:29px}.iu-header-interface-style-trailing-accent{background-image:var(--iu-style-header-trailing-accent);background-position:50%;background-repeat:no-repeat;background-size:contain;height:31px;width:77px}.iu-header-interface-style-trailing-corner-overlay{background-image:var(--iu-style-header-trailing-corner-overlay);background-position:100% 0;background-repeat:no-repeat;background-size:auto 100%;display:none;height:100%;left:68%;overflow:hidden;pointer-events:none;position:absolute;top:0;transform:translate(-50%);width:224px;z-index:0}[data-iu-interface-style=halloween] .iu-header-interface-style-trailing-corner-overlay{background-size:100% 100%;height:215px;transform:translate(-50%,-50%)}[data-iu-interface-style] .impact-header-container .iu-header-interface-style-trailing-corner-overlay{display:block}.impact-header-logo-mark{background-image:var(--iu-header-logo-src-interface-style,var(--iu-header-logo-src));background-position:50%;background-repeat:no-repeat;background-size:contain;display:block;height:100%;width:100%}.impact-header-separator{background-color:var(--iu-border-disabled);display:block;height:24px;width:1px}.impact-header-title{color:var(--iu-on-surface-body);font-size:16px;font-weight:800;line-height:24px}.impact-header-container-right-side{align-items:center;align-self:stretch;display:flex;flex-direction:row;gap:24px;justify-content:flex-start}.impact-header-avatar:hover,.impact-header-comments-button:hover,.impact-header-help-container:hover,.impact-header-language-button:hover,.impact-header-message-container:hover,.impact-header-notification-container:hover{cursor:pointer}.impact-header-language-button,.impact-header-language-container{align-items:center;display:flex}.impact-header-language-button{gap:4px;height:20px;justify-content:center}.impact-header-language-icon-placeholder{border:1.5px solid var(--iu-on-surface-body);border-radius:50%;display:inline-block;height:20px;width:20px}.impact-header-language-flag-placeholder{background-color:var(--iu-bg-surface-lighter);border:1px solid var(--iu-border-disabled);border-radius:2px;display:inline-block;height:14px;width:20px}.impact-header-comments-container{align-items:center;display:flex;position:relative}.impact-header-comments-button{align-items:center;border-radius:4px;display:flex;justify-content:center;padding:4px}.header-comments-dropdown{background-color:var(--iu-bg-surface-layer-bg);border-radius:8px;box-shadow:var(--iu-effect-shadow-header-dropdown-elevated);overflow:hidden;position:absolute;right:0;top:calc(100% + 8px);z-index:10000}.header-comments-dropdown .comment-panel-main-container{max-height:500px;position:relative}.header-comments-dropdown .comment-panel-main-container.display-comment-panel{bottom:unset;max-height:500px;min-height:400px}.header-comments-dropdown .comment-panel-main-container .comment-panel-body{flex:1;overflow:auto;position:relative;top:auto}.header-comments-dropdown .comment-panel-main-container .impact_emptystate{border:none;border-radius:0;margin:0;min-height:auto;padding:20px;width:auto}.header-comments-dropdown .comment-panel-main-container .impact_emptystate .impact_center_svg_with_icon{min-height:0}.header-comments-dropdown .comment-panel-main-container .impact_emptystate .impact_center_svg{height:auto}.header-comments-dropdown .comment-panel-main-container .impact_emptystate .impact_heading{font-size:14px;line-height:21px;margin-bottom:0}.header-comments-dropdown .comment-panel-main-container .impact_emptystate .impact_paragraph{color:var(--iu-on-surface-caption);font-size:10px;font-weight:500;line-height:14px;margin-top:0;width:285px}.header-comments-dropdown .comment-panel-main-container .comment-panel-content{bottom:auto;max-height:380px;position:relative;top:auto}.impact-header-bot-container{align-items:center;background-color:var(--iu-legacy-chatbot-bg);background:var(--iu-effect-gradient-header-smart-bot-main);background-size:400% 400%;border-radius:8px;cursor:pointer;display:flex;height:34px;padding-inline:11px;position:relative}.impact-header-bot-container:after{background:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/smartBot.svg) no-repeat;background-position:50%;background-size:16px;content:"";height:16px;position:absolute;width:16px}.impact-header-bot-container:before{background:var(--iu-effect-gradient-header-smart-bot-border);border-radius:9px;bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:-1}.impact-header-bot-container:hover:not(.impact-header-bot-container-disabled){animation:gradient 2s ease infinite;background:var(--iu-effect-gradient-header-smart-bot-hover);background-size:400% 400%}.impact-header-bot-container:hover:not(.impact-header-bot-container-disabled):before{background:none}.impact-header-bot-container{animation:gradient 5s ease infinite}.impact-header-bot-container .impact-header-bot-container-text{color:var(--iu-on-primary-text);font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding-left:23px}@keyframes gradient{0%{background-position:0 20% 40% 60% 80%}50%{background-position:80% 50%}to{background-position:0 20% 40% 60% 80%}}.impact-header-bot-container-disabled{animation:none;background-color:var(--iu-border-disabled);background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/smartBot.svg),none;background-position:10px 50%;background-repeat:no-repeat;background-size:20px 20px;cursor:not-allowed}.impact-header-bot-container-disabled:before{background:none}.impact-header-notification-container{position:relative}.impact-header-notification-dnd-container{height:16px;left:14px;position:absolute;top:-5px;width:16px}.impact-header-notification-indicator-container{height:8px;left:14px;position:absolute;top:0;width:8px}.impact-header-notification-indicator-outer-circle{animation:waves 1.5s ease-out infinite;background-color:var(--iu-bg-error-subtle);border-radius:50%;height:10px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:10px}.impact-header-notification-indicator-inner-circle{background-color:var(--iu-badge-error-on-default);border-radius:50%;height:8px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}.impact-header-avatar .ia-avatar{background-color:var(--iu-primitive-color-green-500)!important;border-radius:8px;color:var(--iu-on-primary-text);line-height:30px}.impact-header-lang-label{color:var(--iu-on-surface-label);font-size:14px;font-weight:600}@keyframes waves{0%{height:8px;width:8px}to{height:16px;width:16px}}.iu-christmas-snowfall{z-index:70}.iu-christmas-cursor-sparkles,.iu-christmas-snowfall{height:100vh;top:0;right:0;bottom:0;left:0;pointer-events:none;position:fixed;width:100vw}.iu-christmas-cursor-sparkles{z-index:1400}.iu-header-christmas-garland{display:none;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none;position:absolute;z-index:0}:is([data-iu-interface-style=christmas],[data-iu-interface-style=holiday]) .impact-header-container{isolation:isolate}:is([data-iu-interface-style=christmas],[data-iu-interface-style=holiday]) .iu-header-christmas-garland{display:block;z-index:1}[data-iu-interface-style=christmas] .impact-header-container-left-side,[data-iu-interface-style=christmas] .impact-header-container-right-side,[data-iu-interface-style=holiday] .impact-header-container-left-side,[data-iu-interface-style=holiday] .impact-header-container-right-side{z-index:2}:is([data-iu-interface-style=christmas],[data-iu-interface-style=holiday]) .impact-header-container>:not(.iu-header-christmas-garland){position:relative;z-index:2}:is([data-iu-interface-style=christmas],[data-iu-interface-style=holiday]) .iu-header-interface-style-leading-accent{display:none!important}:is([data-iu-interface-style=christmas],[data-iu-interface-style=holiday]) .impact-header-logo{height:35px;width:98px}:is([data-iu-interface-style=christmas],[data-iu-interface-style=holiday]) .iu-header-interface-style-trailing-accent{background-position:50%;background-size:contain;flex-shrink:0;height:32px;width:32px}:is([data-iu-interface-style=christmas],[data-iu-interface-style=holiday]) .iu-header-interface-style-trailing-corner-overlay{display:none!important}:is([data-iu-interface-style=christmas],[data-iu-interface-style=holiday]) .impact-header-container:before{background-image:var(--iu-style-header-snowflake-pattern);background-position:50%;background-repeat:no-repeat;background-size:100% 100%;content:"";top:0;right:0;bottom:0;left:0;opacity:1;pointer-events:none;position:absolute;z-index:0}:is([data-iu-interface-style=christmas][data-iu-theme=dark],[data-iu-interface-style=holiday][data-iu-theme=dark]) .impact-header-container:before{background-position:top;background-size:cover;opacity:.55}:is([data-iu-interface-style=christmas][data-iu-theme=dark],[data-iu-interface-style=holiday][data-iu-theme=dark]) .iu-header-christmas-bulb{--bright:drop-shadow(0 0 6px rgba(var(--c),.32)) drop-shadow(0 0 3px rgba(var(--c),.42)) drop-shadow(0 0 1.5px rgba(var(--c),.48));--dim:drop-shadow(0 0 4px rgba(var(--c),.12)) drop-shadow(0 0 2px rgba(var(--c),.22))}:is([data-iu-interface-style=christmas][data-iu-theme=dark],[data-iu-interface-style=holiday][data-iu-theme=dark]) .iu-header-christmas-bulb__glass{animation-name:iu-christmas-bulb-glass-pulse-dark}.iu-header-christmas-lights{height:100%;left:18.005%;pointer-events:auto;position:absolute;top:0;user-select:none;-webkit-user-select:none;width:63.512%}.iu-header-christmas-wire{height:69.8px;left:0;max-width:none;position:absolute;top:-36px;width:100%}.iu-header-christmas-bulb{--c:255,33,51;--bright:drop-shadow(0 0 14px rgba(var(--c),.5)) drop-shadow(0 0 7px rgba(var(--c),.65)) drop-shadow(0 0 3px rgba(var(--c),.75));--dim:drop-shadow(0 0 8px rgba(var(--c),.18)) drop-shadow(0 0 4px rgba(var(--c),.32)) drop-shadow(0 0 2px rgba(var(--c),.35));background:#0000;border:0;height:16.8px;padding:0;position:absolute;user-select:none;-webkit-user-select:none;width:9.6px;-webkit-user-drag:none;animation:iu-christmas-bulb-pulse 2s ease-in-out infinite;animation-delay:var(--delay,0s);filter:var(--bright)}.iu-header-christmas-bulb--red{--c:255,33,51}.iu-header-christmas-bulb--gold{--c:255,178,26;--delay:-1.5s}.iu-header-christmas-bulb--green{--c:26,217,120;--delay:-1s}.iu-header-christmas-bulb--blue{--c:31,135,255;--delay:-.5s}.iu-header-christmas-bulb__glass{animation:iu-christmas-bulb-glass-pulse 2s ease-in-out infinite;animation-delay:var(--delay,0s);height:13.2px;left:0;position:absolute;top:3.6px;width:9.6px}.iu-header-christmas-bulb__socket{height:4.4px;left:2.4px;position:absolute;top:0;width:4.8px}@keyframes iu-christmas-bulb-pulse{0%,to{filter:var(--bright)}50%{filter:var(--dim)}}@keyframes iu-christmas-bulb-glass-pulse{0%,to{filter:none}50%{filter:brightness(.78) saturate(.82)}}@keyframes iu-christmas-bulb-glass-pulse-dark{0%,to{filter:none}50%{filter:brightness(.85) saturate(.88)}}@media (prefers-reduced-motion:reduce){.iu-header-christmas-bulb,.iu-header-christmas-bulb__glass{animation:none;filter:var(--bright)}.iu-header-christmas-bulb__glass,:is([data-iu-interface-style=christmas][data-iu-theme=dark],[data-iu-interface-style=holiday][data-iu-theme=dark]) .iu-header-christmas-bulb__glass{filter:none}}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import { useRef, useState, useMemo, useEffect } from "react";
4
4
  import { KeyboardShortcutIcon as KeyboardShortcutIcon_default, HelpIcon as HelpIcon_default, Globe as Globe_default, MessageIconDisabled as MessageIconDisabled_default, MessageIcon as MessageIcon_default, NotificationDnd as NotificationDnd_default, Bell as Bell_default, CommentGray as CommentGray_default } from "../../node_modules/@impactsmartsuite/impact-icons/dist/index.js";
@@ -0,0 +1,4 @@
1
+ export declare function readWinterHolidayInterfaceStyleEnabled(): boolean;
2
+ /** Re-render consumers when `christmas` / `holiday` is toggled on `<html>`. */
3
+ export declare function useWinterHolidayInterfaceStyleEnabled(): boolean;
4
+ //# sourceMappingURL=winterHolidayInterfaceStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"winterHolidayInterfaceStyle.d.ts","sourceRoot":"","sources":["../../../src/components/Header/winterHolidayInterfaceStyle.ts"],"names":[],"mappings":"AASA,wBAAgB,sCAAsC,IAAI,OAAO,CAGhE;AAED,+EAA+E;AAC/E,wBAAgB,qCAAqC,IAAI,OAAO,CA4B/D"}
@@ -0,0 +1,35 @@
1
+ import { useState, useEffect } from "react";
2
+ import { isWinterHolidayInterfaceStyle } from "../../interfaceStyles/winterHolidayInterfaceStyle.js";
3
+ import { IMPACT_UI_INTERFACE_STYLE_CHANGE, readImpactUiInterfaceStyleFromDom } from "../../tokens/interfaceStyleDom.js";
4
+ function readWinterHolidayInterfaceStyleEnabled() {
5
+ if (typeof document === "undefined") return false;
6
+ return isWinterHolidayInterfaceStyle(readImpactUiInterfaceStyleFromDom());
7
+ }
8
+ function useWinterHolidayInterfaceStyleEnabled() {
9
+ const [enabled, setEnabled] = useState(() => readWinterHolidayInterfaceStyleEnabled());
10
+ useEffect(() => {
11
+ const sync = () => {
12
+ setEnabled(readWinterHolidayInterfaceStyleEnabled());
13
+ };
14
+ sync();
15
+ const onStyle = (event) => {
16
+ const { detail } = event;
17
+ setEnabled(isWinterHolidayInterfaceStyle(detail.style));
18
+ };
19
+ window.addEventListener(IMPACT_UI_INTERFACE_STYLE_CHANGE, onStyle);
20
+ const observer = new MutationObserver(sync);
21
+ observer.observe(document.documentElement, {
22
+ attributes: true,
23
+ attributeFilter: ["data-iu-interface-style"]
24
+ });
25
+ return () => {
26
+ window.removeEventListener(IMPACT_UI_INTERFACE_STYLE_CHANGE, onStyle);
27
+ observer.disconnect();
28
+ };
29
+ }, []);
30
+ return enabled;
31
+ }
32
+ export {
33
+ readWinterHolidayInterfaceStyleEnabled,
34
+ useWinterHolidayInterfaceStyleEnabled
35
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"InterfaceStyleIntroProvider.d.ts","sourceRoot":"","sources":["../../../src/components/InterfaceStyleIntro/InterfaceStyleIntroProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAIf,OAAO,EAIL,KAAK,gCAAgC,EACtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,EAIL,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EACnC,MAAM,iCAAiC,CAAC;AAUzC,OAAO,mCAAmC,CAAC;AAE3C,MAAM,WAAW,+BAA+B;IAC9C,iGAAiG;IACjG,IAAI,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,8BAA8B,KAAK,IAAI,CAAC;IACjF,iHAAiH;IACjH,cAAc,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,OAAO,CAAC;IAC7D,kGAAkG;IAClG,kBAAkB,EAAE,gCAAgC,GAAG,SAAS,CAAC;CAClE;AAID,wBAAgB,sBAAsB,IAAI,+BAA+B,GAAG,IAAI,CAE/E;AAED,sDAAsD;AACtD,eAAO,MAAM,sBAAsB,+BAAyB,CAAC;AAE7D,+DAA+D;AAC/D,MAAM,MAAM,+BAA+B,GAAG,+BAA+B,CAAC;AAE9E,UAAU,gCAAgC;IACxC,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,yBAAyB,CAAC,EAAE,6BAA6B,CAAC;IAC1D,yDAAyD;IACzD,cAAc,CAAC,EAAE,6BAA6B,CAAC;IAC/C,yDAAyD;IACzD,uBAAuB,CAAC,EAAE,6BAA6B,CAAC;IACxD;;;OAGG;IACH,kBAAkB,CAAC,EAAE,gCAAgC,CAAC;CACvD;AAuBD,wBAAgB,2BAA2B,CAAC,EAC1C,QAAQ,EACR,yBAAyB,EACzB,cAAc,EACd,uBAAuB,EACvB,kBAAkB,GACnB,EAAE,gCAAgC,+BAwSlC;AAED,2DAA2D;AAC3D,eAAO,MAAM,2BAA2B,oCAA8B,CAAC"}
1
+ {"version":3,"file":"InterfaceStyleIntroProvider.d.ts","sourceRoot":"","sources":["../../../src/components/InterfaceStyleIntro/InterfaceStyleIntroProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAIf,OAAO,EAIL,KAAK,gCAAgC,EACtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAIlE,OAAO,EAIL,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EACnC,MAAM,iCAAiC,CAAC;AAUzC,OAAO,mCAAmC,CAAC;AAE3C,MAAM,WAAW,+BAA+B;IAC9C,iGAAiG;IACjG,IAAI,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,8BAA8B,KAAK,IAAI,CAAC;IACjF,iHAAiH;IACjH,cAAc,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,OAAO,CAAC;IAC7D,kGAAkG;IAClG,kBAAkB,EAAE,gCAAgC,GAAG,SAAS,CAAC;CAClE;AAID,wBAAgB,sBAAsB,IAAI,+BAA+B,GAAG,IAAI,CAE/E;AAED,sDAAsD;AACtD,eAAO,MAAM,sBAAsB,+BAAyB,CAAC;AAE7D,+DAA+D;AAC/D,MAAM,MAAM,+BAA+B,GAAG,+BAA+B,CAAC;AAE9E,UAAU,gCAAgC;IACxC,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,yBAAyB,CAAC,EAAE,6BAA6B,CAAC;IAC1D,yDAAyD;IACzD,cAAc,CAAC,EAAE,6BAA6B,CAAC;IAC/C,yDAAyD;IACzD,uBAAuB,CAAC,EAAE,6BAA6B,CAAC;IACxD;;;OAGG;IACH,kBAAkB,CAAC,EAAE,gCAAgC,CAAC;CACvD;AAuBD,wBAAgB,2BAA2B,CAAC,EAC1C,QAAQ,EACR,yBAAyB,EACzB,cAAc,EACd,uBAAuB,EACvB,kBAAkB,GACnB,EAAE,gCAAgC,+BA8UlC;AAED,2DAA2D;AAC3D,eAAO,MAAM,2BAA2B,oCAA8B,CAAC"}
@@ -1,11 +1,12 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ia-halloween-style-intro,.ia-interface-style-intro{background:#000;display:flex;flex-direction:column;top:0;right:0;bottom:0;left:0;opacity:1;position:fixed;transition:opacity .5s ease-out;z-index:2147483000}.ia-halloween-style-intro--exiting,.ia-interface-style-intro--exiting{opacity:0;pointer-events:none}.ia-halloween-style-intro--frosted-backdrop,.ia-interface-style-intro--frosted-backdrop{background:#0000}.ia-halloween-style-intro--frosted-backdrop:before,.ia-interface-style-intro--frosted-backdrop:before{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);background:var(--iu-interface-style-intro-frosted-scrim);content:"";top:0;right:0;bottom:0;left:0;pointer-events:none;position:absolute;z-index:0}.ia-halloween-style-intro--frosted-backdrop .ia-halloween-style-intro__frame,.ia-halloween-style-intro--frosted-backdrop .ia-halloween-style-intro__video,.ia-halloween-style-intro--frosted-backdrop .ia-interface-style-intro__frame,.ia-halloween-style-intro--frosted-backdrop .ia-interface-style-intro__video,.ia-interface-style-intro--frosted-backdrop .ia-halloween-style-intro__frame,.ia-interface-style-intro--frosted-backdrop .ia-halloween-style-intro__video,.ia-interface-style-intro--frosted-backdrop .ia-interface-style-intro__frame,.ia-interface-style-intro--frosted-backdrop .ia-interface-style-intro__video{background:#0000;position:relative;z-index:1}.ia-halloween-style-intro--frosted-backdrop[data-iu-theme=light],.ia-interface-style-intro--frosted-backdrop[data-iu-theme=light]{--iu-interface-style-intro-frosted-scrim:color-mix(in srgb,var(--iu-bg-surface-canvas,#f4f6fb) 62%,#0000)}.ia-halloween-style-intro--frosted-backdrop[data-iu-theme=dark],.ia-interface-style-intro--frosted-backdrop[data-iu-theme=dark]{--iu-interface-style-intro-frosted-scrim:color-mix(in srgb,var(--iu-bg-surface-overlay-bg,#0b0d12) 56%,#0000)}.ia-halloween-style-intro--transparent-overlay,.ia-interface-style-intro--transparent-overlay{background:#0000}.ia-halloween-style-intro--transparent-overlay.ia-interface-style-intro--frosted-backdrop:before,.ia-interface-style-intro--transparent-overlay.ia-interface-style-intro--frosted-backdrop:before{display:none}.ia-halloween-style-intro--transparent-overlay .ia-halloween-style-intro__frame,.ia-halloween-style-intro--transparent-overlay .ia-halloween-style-intro__video,.ia-halloween-style-intro--transparent-overlay .ia-interface-style-intro__frame,.ia-halloween-style-intro--transparent-overlay .ia-interface-style-intro__video,.ia-interface-style-intro--transparent-overlay .ia-halloween-style-intro__frame,.ia-interface-style-intro--transparent-overlay .ia-halloween-style-intro__video,.ia-interface-style-intro--transparent-overlay .ia-interface-style-intro__frame,.ia-interface-style-intro--transparent-overlay .ia-interface-style-intro__video{background:#0000}.ia-halloween-style-intro__frame,.ia-interface-style-intro__frame{background:#000;border:0;display:block;flex:1;height:100%;width:100%}.ia-halloween-style-intro__video,.ia-interface-style-intro__video{height:100%;object-fit:cover;width:100%}.ia-halloween-style-intro__play-prompt,.ia-interface-style-intro__play-prompt{background:#0000008c;border:0;color:#f5f5f5;cursor:pointer;font:500 16px/1.3 Manrope,system-ui,sans-serif;top:0;right:0;bottom:0;left:0;letter-spacing:.02em;margin:0;padding:0 24px;position:absolute;z-index:2}.ia-halloween-style-intro__play-prompt:hover,.ia-interface-style-intro__play-prompt:hover{background:#000000b3}.ia-halloween-style-intro__play-prompt:focus-visible,.ia-interface-style-intro__play-prompt:focus-visible{outline:2px solid #fff;outline-offset:-4px}.ia-halloween-style-intro__error,.ia-interface-style-intro__error{background:#000000bf;border-radius:8px;bottom:18%;color:#f5f5f5;font:400 14px/1.45 Manrope,system-ui,sans-serif;left:50%;margin:0;max-width:min(420px,90vw);padding:12px 16px;position:absolute;text-align:center;transform:translate(-50%);z-index:3}.ia-halloween-style-intro__dont-show-again,.ia-interface-style-intro__dont-show-again{background:#0000;border:0;bottom:60px;color:#9e9ea6f2;cursor:pointer;font:400 14px/1.25 Manrope,system-ui,sans-serif;left:50%;letter-spacing:.01em;margin:0;padding:4px 6px;pointer-events:auto;position:absolute;text-decoration:none;transform:translate(-50%);white-space:nowrap;z-index:4}.ia-halloween-style-intro__dont-show-again:hover,.ia-interface-style-intro__dont-show-again:hover{color:#bebec6fa}.ia-halloween-style-intro__dont-show-again:focus-visible,.ia-interface-style-intro__dont-show-again:focus-visible{border-radius:2px;outline:1px solid #ffffff73;outline-offset:3px}.ia-halloween-style-intro__skip,.ia-interface-style-intro__skip{background:#00000073;border:1px solid #ffffff59;border-radius:8px;color:#f5f5f5;cursor:pointer;font:500 13px/1.2 Manrope,system-ui,sans-serif;margin:0;padding:8px 14px;position:absolute;right:12px;top:12px;z-index:3}.ia-halloween-style-intro__skip:hover,.ia-interface-style-intro__skip:hover{background:#000000a6}.ia-halloween-style-intro__skip:focus-visible,.ia-interface-style-intro__skip:focus-visible{outline:2px solid #fff;outline-offset:2px}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('@keyframes ia-interface-style-intro-chrome-enter{0%{opacity:0;transform:translate(-50%,16px)}to{opacity:1;transform:translate(-50%)}}.ia-halloween-style-intro,.ia-interface-style-intro{background:#000;display:flex;flex-direction:column;top:0;right:0;bottom:0;left:0;opacity:1;position:fixed;transition:opacity .5s ease-out;z-index:2147483000}.ia-halloween-style-intro--exiting,.ia-interface-style-intro--exiting{opacity:0;pointer-events:none}.ia-halloween-style-intro--frosted-backdrop,.ia-interface-style-intro--frosted-backdrop{background:#0000}.ia-halloween-style-intro--frosted-backdrop:before,.ia-interface-style-intro--frosted-backdrop:before{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);background:var(--iu-interface-style-intro-frosted-scrim);content:"";top:0;right:0;bottom:0;left:0;pointer-events:none;position:absolute;z-index:0}.ia-halloween-style-intro--frosted-backdrop .ia-halloween-style-intro__frame,.ia-halloween-style-intro--frosted-backdrop .ia-halloween-style-intro__video,.ia-halloween-style-intro--frosted-backdrop .ia-interface-style-intro__frame,.ia-halloween-style-intro--frosted-backdrop .ia-interface-style-intro__video,.ia-interface-style-intro--frosted-backdrop .ia-halloween-style-intro__frame,.ia-interface-style-intro--frosted-backdrop .ia-halloween-style-intro__video,.ia-interface-style-intro--frosted-backdrop .ia-interface-style-intro__frame,.ia-interface-style-intro--frosted-backdrop .ia-interface-style-intro__video{background:#0000;position:relative;z-index:1}.ia-halloween-style-intro--frosted-backdrop[data-iu-theme=light],.ia-interface-style-intro--frosted-backdrop[data-iu-theme=light]{--iu-interface-style-intro-frosted-scrim:color-mix(in srgb,var(--iu-bg-surface-canvas,#f4f6fb) 62%,#0000)}.ia-halloween-style-intro--frosted-backdrop[data-iu-theme=dark],.ia-interface-style-intro--frosted-backdrop[data-iu-theme=dark]{--iu-interface-style-intro-frosted-scrim:color-mix(in srgb,var(--iu-bg-surface-overlay-bg,#0b0d12) 56%,#0000)}.ia-halloween-style-intro--transparent-overlay,.ia-interface-style-intro--transparent-overlay{background:#0000}.ia-halloween-style-intro--transparent-overlay.ia-interface-style-intro--frosted-backdrop:before,.ia-interface-style-intro--transparent-overlay.ia-interface-style-intro--frosted-backdrop:before{display:none}.ia-halloween-style-intro--transparent-overlay .ia-halloween-style-intro__frame,.ia-halloween-style-intro--transparent-overlay .ia-halloween-style-intro__video,.ia-halloween-style-intro--transparent-overlay .ia-interface-style-intro__frame,.ia-halloween-style-intro--transparent-overlay .ia-interface-style-intro__video,.ia-interface-style-intro--transparent-overlay .ia-halloween-style-intro__frame,.ia-interface-style-intro--transparent-overlay .ia-halloween-style-intro__video,.ia-interface-style-intro--transparent-overlay .ia-interface-style-intro__frame,.ia-interface-style-intro--transparent-overlay .ia-interface-style-intro__video{background:#0000}.ia-halloween-style-intro__frame,.ia-interface-style-intro__frame{background:#000;border:0;display:block;flex:1;height:100%;width:100%}.ia-halloween-style-intro__video,.ia-interface-style-intro__video{height:100%;object-fit:cover;width:100%}.ia-halloween-style-intro__play-prompt,.ia-interface-style-intro__play-prompt{background:#0000008c;border:0;color:#f5f5f5;cursor:pointer;font:500 16px/1.3 Manrope,system-ui,sans-serif;top:0;right:0;bottom:0;left:0;letter-spacing:.02em;margin:0;padding:0 24px;position:absolute;z-index:2}.ia-halloween-style-intro__play-prompt:hover,.ia-interface-style-intro__play-prompt:hover{background:#000000b3}.ia-halloween-style-intro__play-prompt:focus-visible,.ia-interface-style-intro__play-prompt:focus-visible{outline:2px solid #fff;outline-offset:-4px}.ia-halloween-style-intro__error,.ia-interface-style-intro__error{background:#000000bf;border-radius:8px;bottom:18%;color:#f5f5f5;font:400 14px/1.45 Manrope,system-ui,sans-serif;left:50%;margin:0;max-width:min(420px,90vw);padding:12px 16px;position:absolute;text-align:center;transform:translate(-50%);z-index:3}.ia-halloween-style-intro__skip,.ia-interface-style-intro__skip{background:#00000073;border:1px solid #ffffff59;border-radius:8px;color:#f5f5f5;cursor:pointer;font:500 13px/1.2 Manrope,system-ui,sans-serif;margin:0;padding:8px 14px;white-space:nowrap}.ia-halloween-style-intro__skip:hover,.ia-interface-style-intro__skip:hover{background:#000000a6}.ia-halloween-style-intro__skip:focus-visible,.ia-interface-style-intro__skip:focus-visible{outline:2px solid #fff;outline-offset:2px}.ia-halloween-style-intro__skip,.ia-interface-style-intro__skip{position:absolute;right:12px;top:12px;z-index:3}.ia-halloween-style-intro__video-chrome,.ia-interface-style-intro__video-chrome{align-items:center;animation:ia-interface-style-intro-chrome-enter .48s cubic-bezier(.22,1,.36,1) 1.2s both;background:#121521cc;border-radius:8px;bottom:60px;display:flex;gap:24px;justify-content:space-between;left:50%;max-width:min(420px,100vw - 32px);padding:12px 16px;pointer-events:auto;position:absolute;transform:translate(-50%);width:fit-content;z-index:4}.ia-halloween-style-intro__dont-show-toggle,.ia-interface-style-intro__dont-show-toggle{align-items:center;background:#0000;border:0;color:var(--iu-fg-text-label,#d5dbe5);cursor:pointer;display:flex;font:500 14px/20px Manrope,system-ui,sans-serif;gap:6px;margin:0;padding:0;text-transform:capitalize}:is(.ia-halloween-style-intro__dont-show-toggle:hover,.ia-interface-style-intro__dont-show-toggle:hover) .ia-interface-style-intro__dont-show-label{color:var(--iu-fg-text-body,#e8ebf2)}.ia-halloween-style-intro__dont-show-toggle:focus-visible,.ia-interface-style-intro__dont-show-toggle:focus-visible{border-radius:4px;outline:2px solid #fff;outline-offset:4px}.ia-halloween-style-intro__dont-show-checkbox,.ia-interface-style-intro__dont-show-checkbox{background:#0f1218;border:1px solid #5d6b82;border-radius:4px;box-sizing:border-box;flex-shrink:0;height:16px;position:relative;width:16px}.ia-halloween-style-intro__dont-show-checkbox--checked:after,.ia-interface-style-intro__dont-show-checkbox--checked:after{border:solid #d5dbe5;border-width:0 2px 2px 0;content:"";height:9px;left:4px;position:absolute;top:1px;transform:rotate(45deg);width:5px}.ia-halloween-style-intro__dont-show-label,.ia-interface-style-intro__dont-show-label{white-space:nowrap}.ia-halloween-style-intro__skip-action,.ia-interface-style-intro__skip-action{align-items:center;background:#0f1218;border:1px solid #5d6b82;border-radius:8px;color:var(--iu-fg-text-body,#d9dde7);cursor:pointer;display:inline-flex;font:500 14px/20px Manrope,system-ui,sans-serif;gap:4px;justify-content:center;margin:0;max-height:28px;min-width:56px;padding:4px 12px;text-transform:capitalize;white-space:nowrap}.ia-halloween-style-intro__skip-action:hover,.ia-interface-style-intro__skip-action:hover{background:#151a24;border-color:#6d7c96}.ia-halloween-style-intro__skip-action:focus-visible,.ia-interface-style-intro__skip-action:focus-visible{outline:2px solid #fff;outline-offset:2px}.ia-halloween-style-intro__skip-icon,.ia-interface-style-intro__skip-icon{display:block;flex-shrink:0;height:16px;width:16px}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
2
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
3
  import { useState, useRef, useCallback, useEffect, useMemo, useContext, createContext } from "react";
4
4
  import { flushSync, createPortal } from "react-dom";
5
5
  import { isInterfaceStyleIntroAllowed, interfaceStyleIntroSupportsHtml, interfaceStyleIntroVideoOverlay } from "../../interfaceStyles/intro.js";
6
+ import skipDoubleArrowIcon from "./assets/icon-double-arrow-right.svg.js";
6
7
  import { HalloweenStyleIntroIframe } from "./HalloweenStyleIntroIframe.js";
7
8
  import { HALLOWEEN_INTERFACE_STYLE_THEME, INTERFACE_STYLE_INTRO_PLAY_EVENT } from "./interfaceStyleIntro.constants.js";
8
- import { isInterfaceStyleIntroDismissed, setInterfaceStyleIntroDismissed } from "./interfaceStyleIntroDismissal.js";
9
+ import { setInterfaceStyleIntroDismissed, isInterfaceStyleIntroDismissed } from "./interfaceStyleIntroDismissal.js";
9
10
  import { getInterfaceStyleIntroVideoFallbackMs, interfaceStyleIntroUsesVideo, getInterfaceStyleIntroVideoUrl } from "./interfaceStyleIntroVideo.js";
10
11
 
11
12
  import { useTranslation } from "../../i18n/useTranslation.js";
@@ -45,6 +46,7 @@ function InterfaceStyleIntroProvider({
45
46
  const [isExiting, setIsExiting] = useState(false);
46
47
  const [needsPlayPrompt, setNeedsPlayPrompt] = useState(false);
47
48
  const [loadError, setLoadError] = useState(false);
49
+ const [dontShowAgainChecked, setDontShowAgainChecked] = useState(false);
48
50
  const videoRef = useRef(null);
49
51
  const playFromUserGestureRef = useRef(false);
50
52
  const fallbackDismissRef = useRef(void 0);
@@ -55,6 +57,9 @@ function InterfaceStyleIntroProvider({
55
57
  }
56
58
  }, []);
57
59
  const dismiss = useCallback(() => {
60
+ if (dontShowAgainChecked && (session == null ? void 0 : session.theme)) {
61
+ setInterfaceStyleIntroDismissed(session.theme);
62
+ }
58
63
  const video = videoRef.current;
59
64
  if (video) {
60
65
  video.pause();
@@ -63,7 +68,7 @@ function InterfaceStyleIntroProvider({
63
68
  setIsExiting(true);
64
69
  setNeedsPlayPrompt(false);
65
70
  setLoadError(false);
66
- }, [clearFallbackDismiss]);
71
+ }, [clearFallbackDismiss, dontShowAgainChecked, session == null ? void 0 : session.theme]);
67
72
  const scheduleFallbackDismiss = useCallback(
68
73
  (video) => {
69
74
  clearFallbackDismiss();
@@ -160,12 +165,14 @@ function InterfaceStyleIntroProvider({
160
165
  },
161
166
  [runPlayback]
162
167
  );
163
- const handleDontShowAgain = useCallback(() => {
164
- if (session == null ? void 0 : session.theme) {
165
- setInterfaceStyleIntroDismissed(session.theme);
166
- }
168
+ const handleSkipIntro = useCallback(() => {
167
169
  dismiss();
168
- }, [dismiss, session == null ? void 0 : session.theme]);
170
+ }, [dismiss]);
171
+ useEffect(() => {
172
+ if (session) {
173
+ setDontShowAgainChecked(false);
174
+ }
175
+ }, [session]);
169
176
  useEffect(() => {
170
177
  if (!isExiting) {
171
178
  return;
@@ -230,7 +237,6 @@ function InterfaceStyleIntroProvider({
230
237
  "data-iu-theme": session.resolvedMode,
231
238
  role: "dialog",
232
239
  children: usesVideoForSession ? /* @__PURE__ */ jsxs(Fragment, { children: [
233
- /* @__PURE__ */ jsx("button", { className: "ia-interface-style-intro__skip", type: "button", onClick: dismiss, children: t("themingPanel.interfaceStyleIntro.skip") }),
234
240
  /* @__PURE__ */ jsx(
235
241
  "video",
236
242
  {
@@ -266,13 +272,57 @@ function InterfaceStyleIntroProvider({
266
272
  children: t("themingPanel.interfaceStyleIntro.playWithSound")
267
273
  }
268
274
  ) : null,
269
- !loadError ? /* @__PURE__ */ jsx(
270
- "button",
275
+ !loadError ? /* @__PURE__ */ jsxs(
276
+ "div",
271
277
  {
272
- className: "ia-interface-style-intro__dont-show-again",
273
- type: "button",
274
- onClick: handleDontShowAgain,
275
- children: t("themingPanel.interfaceStyleIntro.dontShowAgain")
278
+ "aria-label": t("themingPanel.interfaceStyleIntro.ariaLabel"),
279
+ className: "ia-interface-style-intro__video-chrome",
280
+ role: "group",
281
+ children: [
282
+ /* @__PURE__ */ jsxs(
283
+ "button",
284
+ {
285
+ "aria-pressed": dontShowAgainChecked,
286
+ className: "ia-interface-style-intro__dont-show-toggle",
287
+ type: "button",
288
+ onClick: () => {
289
+ setDontShowAgainChecked((checked) => !checked);
290
+ },
291
+ children: [
292
+ /* @__PURE__ */ jsx(
293
+ "span",
294
+ {
295
+ "aria-hidden": true,
296
+ className: `ia-interface-style-intro__dont-show-checkbox${dontShowAgainChecked ? " ia-interface-style-intro__dont-show-checkbox--checked" : ""}`
297
+ }
298
+ ),
299
+ /* @__PURE__ */ jsx("span", { className: "ia-interface-style-intro__dont-show-label", children: t("themingPanel.interfaceStyleIntro.dontShowAgain") })
300
+ ]
301
+ }
302
+ ),
303
+ /* @__PURE__ */ jsxs(
304
+ "button",
305
+ {
306
+ className: "ia-interface-style-intro__skip-action",
307
+ type: "button",
308
+ onClick: handleSkipIntro,
309
+ children: [
310
+ /* @__PURE__ */ jsx("span", { children: t("themingPanel.interfaceStyleIntro.skip") }),
311
+ /* @__PURE__ */ jsx(
312
+ "img",
313
+ {
314
+ alt: "",
315
+ className: "ia-interface-style-intro__skip-icon",
316
+ decoding: "async",
317
+ height: 16,
318
+ src: skipDoubleArrowIcon,
319
+ width: 16
320
+ }
321
+ )
322
+ ]
323
+ }
324
+ )
325
+ ]
276
326
  }
277
327
  ) : null
278
328
  ] }) : /* @__PURE__ */ jsx(
@@ -0,0 +1,4 @@
1
+ const skipDoubleArrowIcon = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon%20/%20DoubleArrowRight'%3e%3cpath%20id='Vector'%20d='M5.16309%208.42569L1.28809%2012.3257C1.10476%2012.509%201.00892%2012.7382%201.00059%2013.0132C0.992258%2013.2882%201.08809%2013.5257%201.28809%2013.7257C1.47142%2013.909%201.70476%2014.0007%201.98809%2014.0007C2.27142%2014.0007%202.50476%2013.909%202.68809%2013.7257L7.28809%209.12569C7.38809%209.02569%207.45892%208.91736%207.50059%208.80069C7.54226%208.68402%207.56309%208.55902%207.56309%208.42569C7.56309%208.29236%207.54226%208.16736%207.50059%208.05069C7.45892%207.93402%207.38809%207.82569%207.28809%207.72569L2.68809%203.12569C2.50476%202.94236%202.27559%202.84652%202.00059%202.83819C1.72559%202.82986%201.48809%202.92569%201.28809%203.12569C1.10476%203.30902%201.01309%203.54236%201.01309%203.82569C1.01309%204.10902%201.10476%204.34236%201.28809%204.52569L5.16309%208.42569ZM11.7631%208.42569L7.88809%2012.3257C7.70476%2012.509%207.60892%2012.7382%207.60059%2013.0132C7.59226%2013.2882%207.68809%2013.5257%207.88809%2013.7257C8.07142%2013.909%208.30476%2014.0007%208.58809%2014.0007C8.87142%2014.0007%209.10476%2013.909%209.28809%2013.7257L13.8881%209.12569C13.9881%209.02569%2014.0589%208.91736%2014.1006%208.80069C14.1423%208.68402%2014.1631%208.55902%2014.1631%208.42569C14.1631%208.29236%2014.1423%208.16736%2014.1006%208.05069C14.0589%207.93402%2013.9881%207.82569%2013.8881%207.72569L9.28809%203.12569C9.10476%202.94236%208.87559%202.84652%208.60059%202.83819C8.32559%202.82986%208.08809%202.92569%207.88809%203.12569C7.70476%203.30902%207.61309%203.54236%207.61309%203.82569C7.61309%204.10902%207.70476%204.34236%207.88809%204.52569L11.7631%208.42569Z'%20fill='%23D9DDE7'/%3e%3c/g%3e%3c/svg%3e";
2
+ export {
3
+ skipDoubleArrowIcon as default
4
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"InterfaceStyleLoaderSlides.d.ts","sourceRoot":"","sources":["../../../src/components/Loader/InterfaceStyleLoaderSlides.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAMjD,UAAU,+BAA+B;IACvC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,wBAAgB,0BAA0B,CAAC,EAAE,IAAI,EAAE,EAAE,+BAA+B,sCA8EnF"}
1
+ {"version":3,"file":"InterfaceStyleLoaderSlides.d.ts","sourceRoot":"","sources":["../../../src/components/Loader/InterfaceStyleLoaderSlides.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAKjD,UAAU,+BAA+B;IACvC,IAAI,EAAE,UAAU,CAAC;CAClB;AAqBD,wBAAgB,0BAA0B,CAAC,EAAE,IAAI,EAAE,EAAE,+BAA+B,sCAiGnF"}