@ubnt/store.core 9.37.0-beta.7 → 9.37.0-beta.8

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 (57) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/lib/assets/attention.svg +5 -5
  3. package/lib/assets/attention2.svg +5 -5
  4. package/lib/assets/icons/wizard/plus.svg.js +1 -1
  5. package/lib/assets/icons/wizard/plus.svg.mjs +2 -2
  6. package/lib/assets/plus.svg +4 -22
  7. package/lib/assets/plus2.svg +22 -4
  8. package/lib/assets/ucgMax.jpg +0 -0
  9. package/lib/assets/ucgMax2.jpg +0 -0
  10. package/lib/assets/ucgUltra.jpg +0 -0
  11. package/lib/assets/ucgUltra2.jpg +0 -0
  12. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
  13. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
  14. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
  15. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
  16. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
  17. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
  18. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
  19. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
  20. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
  21. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
  22. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
  23. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
  24. package/lib/components/ModelCompareV3/data/CloudGateways.js +6 -6
  25. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +4 -4
  26. package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
  27. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
  28. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
  29. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
  30. package/lib/components/ProductWizard/ProductWizard.js +1 -1
  31. package/lib/components/ProductWizard/ProductWizard.mjs +1 -1
  32. package/lib/components/QuantityInput/QuantityInput.js +1 -1
  33. package/lib/components/QuantityInput/QuantityInput.mjs +1 -1
  34. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  35. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  36. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  37. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  38. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  39. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  40. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  41. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  42. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  43. package/lib/constants/icons/options/colors/index.js +3 -3
  44. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  45. package/lib/constants/icons/options/styles/index.js +3 -3
  46. package/lib/constants/optionIcons.js +6 -6
  47. package/lib/constants/optionIcons.mjs +4 -4
  48. package/lib/utils/nextjs/ssr/registry.d.ts +1 -1
  49. package/lib/utils/nextjs/ssr/registry.js +6 -3
  50. package/lib/utils/nextjs/ssr/registry.js.map +1 -1
  51. package/lib/utils/nextjs/ssr/registry.mjs +6 -3
  52. package/lib/utils/nextjs/ssr/registry.mjs.map +1 -1
  53. package/lib/utils/nextjs/ssr/style-inject.js +1 -1
  54. package/lib/utils/nextjs/ssr/style-inject.js.map +1 -1
  55. package/lib/utils/nextjs/ssr/style-inject.mjs +1 -1
  56. package/lib/utils/nextjs/ssr/style-inject.mjs.map +1 -1
  57. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@
6
6
 
7
7
  ## Releases
8
8
 
9
+ ### 9.37.0-beta.8
10
+
11
+ - [Feat] Change how CSS is injected
12
+
9
13
  ### 9.37.0-beta.7
10
14
 
11
15
  - [Feat] [MIC-474](https://ubiquiti.atlassian.net/browse/MIC-474) Update compare data
@@ -1,6 +1,6 @@
1
- <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="9" cy="9" r="9" fill="#F7D55E"/>
3
- <path d="M9.73071 4.64062C9.40595 4.07813 8.59405 4.07812 8.26929 4.64062L4.37218 11.3906C4.04742 11.9531 4.45336 12.6562 5.10288 12.6562H12.8971C13.5466 12.6562 13.9526 11.9531 13.6278 11.3906L9.73071 4.64062Z" stroke="white" stroke-width="0.5625"/>
4
- <path d="M9.22274 9.12833L9.48295 7.30685C9.52494 7.01295 9.29688 6.75 9 6.75C8.70312 6.75 8.47506 7.01295 8.51705 7.30685L8.77726 9.12833C8.81406 9.3859 9.18594 9.3859 9.22274 9.12833Z" fill="white"/>
5
- <circle cx="9" cy="10.6875" r="0.5625" fill="#F7D55E"/>
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="8" cy="8" r="8" fill="#A4A7B5"/>
3
+ <path d="M12.1136 10.125L8.64952 4.125C8.36084 3.625 7.63916 3.625 7.35048 4.125L3.88638 10.125C3.5977 10.625 3.95855 11.25 4.5359 11.25H11.4641C12.0415 11.25 12.4023 10.625 12.1136 10.125Z" stroke="white" stroke-width="0.5"/>
4
+ <path d="M8.19799 8.11407L8.42929 6.49497C8.46661 6.23373 8.2639 6 8 6C7.7361 6 7.53339 6.23373 7.57071 6.49497L7.80201 8.11407C7.83472 8.34302 8.16528 8.34303 8.19799 8.11407Z" fill="white"/>
5
+ <circle cx="8" cy="9.5" r="0.5" fill="white"/>
6
6
  </svg>
@@ -1,6 +1,6 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="8" cy="8" r="8" fill="#A4A7B5"/>
3
- <path d="M12.1136 10.125L8.64952 4.125C8.36084 3.625 7.63916 3.625 7.35048 4.125L3.88638 10.125C3.5977 10.625 3.95855 11.25 4.5359 11.25H11.4641C12.0415 11.25 12.4023 10.625 12.1136 10.125Z" stroke="white" stroke-width="0.5"/>
4
- <path d="M8.19799 8.11407L8.42929 6.49497C8.46661 6.23373 8.2639 6 8 6C7.7361 6 7.53339 6.23373 7.57071 6.49497L7.80201 8.11407C7.83472 8.34302 8.16528 8.34303 8.19799 8.11407Z" fill="white"/>
5
- <circle cx="8" cy="9.5" r="0.5" fill="white"/>
1
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="9" cy="9" r="9" fill="#F7D55E"/>
3
+ <path d="M9.73071 4.64062C9.40595 4.07813 8.59405 4.07812 8.26929 4.64062L4.37218 11.3906C4.04742 11.9531 4.45336 12.6562 5.10288 12.6562H12.8971C13.5466 12.6562 13.9526 11.9531 13.6278 11.3906L9.73071 4.64062Z" stroke="white" stroke-width="0.5625"/>
4
+ <path d="M9.22274 9.12833L9.48295 7.30685C9.52494 7.01295 9.29688 6.75 9 6.75C8.70312 6.75 8.47506 7.01295 8.51705 7.30685L8.77726 9.12833C8.81406 9.3859 9.18594 9.3859 9.22274 9.12833Z" fill="white"/>
5
+ <circle cx="9" cy="10.6875" r="0.5625" fill="#F7D55E"/>
6
6
  </svg>
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var plus = require("../../plus.svg");
6
+ var plus = require("../../plus2.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../plus.svg";
2
- export { default } from "../../plus.svg";
1
+ export * from "../../plus2.svg";
2
+ export { default } from "../../plus2.svg";
3
3
  //# sourceMappingURL=plus.svg.mjs.map
@@ -1,22 +1,4 @@
1
- <svg
2
- width="10"
3
- height="10"
4
- viewBox="0 0 10 10"
5
- fill="none"
6
- xmlns="http://www.w3.org/2000/svg"
7
- >
8
- <rect
9
- y="4.5"
10
- width="10"
11
- height="1"
12
- fill="#838691"
13
- />
14
- <rect
15
- x="4.5"
16
- y="10"
17
- width="10"
18
- height="1"
19
- transform="rotate(-90 4.5 10)"
20
- fill="#838691"
21
- />
22
- </svg>
1
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none"
2
+ xmlns="http://www.w3.org/2000/svg">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M8 1C8 0.453333 7.54667 0 7 0C6.45333 0 6 0.453333 6 1V6H1C0.453333 6 0 6.45333 0 7C0 7.54667 0.453333 8 1 8H6V13C6 13.5467 6.45333 14 7 14C7.54667 14 8 13.5467 8 13V8H13C13.5467 8 14 7.54667 14 7C14 6.45333 13.5467 6 13 6H8V1Z" fill="currentColor"/>
4
+ </svg>
@@ -1,4 +1,22 @@
1
- <svg width="14" height="14" viewBox="0 0 14 14" fill="none"
2
- xmlns="http://www.w3.org/2000/svg">
3
- <path fill-rule="evenodd" clip-rule="evenodd" d="M8 1C8 0.453333 7.54667 0 7 0C6.45333 0 6 0.453333 6 1V6H1C0.453333 6 0 6.45333 0 7C0 7.54667 0.453333 8 1 8H6V13C6 13.5467 6.45333 14 7 14C7.54667 14 8 13.5467 8 13V8H13C13.5467 8 14 7.54667 14 7C14 6.45333 13.5467 6 13 6H8V1Z" fill="currentColor"/>
4
- </svg>
1
+ <svg
2
+ width="10"
3
+ height="10"
4
+ viewBox="0 0 10 10"
5
+ fill="none"
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ >
8
+ <rect
9
+ y="4.5"
10
+ width="10"
11
+ height="1"
12
+ fill="#838691"
13
+ />
14
+ <rect
15
+ x="4.5"
16
+ y="10"
17
+ width="10"
18
+ height="1"
19
+ transform="rotate(-90 4.5 10)"
20
+ fill="#838691"
21
+ />
22
+ </svg>
Binary file
Binary file
Binary file
Binary file
@@ -5,7 +5,7 @@ require('../../StyleableSvgImage/index.js');
5
5
  require('../assets/plus.svg.js');
6
6
  var AllFeaturesButton_styles = require('./AllFeaturesButton.styles.js');
7
7
  var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
8
- var PlusIcon = require("../../../assets/plus2.svg");
8
+ var PlusIcon = require("../../../assets/plus.svg");
9
9
  function _interopDefault(e) {
10
10
  return e && e.__esModule ? e : {
11
11
  default: e
@@ -3,7 +3,7 @@ import '../../StyleableSvgImage/index.mjs';
3
3
  import '../assets/plus.svg.mjs';
4
4
  import { StyledButton, InnerWrap } from './AllFeaturesButton.styles.mjs';
5
5
  import { StyleableSvgImage } from '../../StyleableSvgImage/StyleableSvgImage.mjs';
6
- import PlusIcon__default from "../../../assets/plus2.svg";
6
+ import PlusIcon__default from "../../../assets/plus.svg";
7
7
  "use strict";
8
8
  const AllFeaturesButton = ({
9
9
  className,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var PlusIcon = require("../../../assets/plus2.svg");
6
+ var PlusIcon = require("../../../assets/plus.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../assets/plus2.svg";
2
- export { default } from "../../../assets/plus2.svg";
1
+ export * from "../../../assets/plus.svg";
2
+ export { default } from "../../../assets/plus.svg";
3
3
  //# sourceMappingURL=plus.svg.mjs.map
@@ -3,24 +3,24 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var _externalAssets_DfjB$I0W = require("../../../../../assets/ucgMax.jpg");
6
+ var _externalAssets_ReJhRoVe = require("../../../../../assets/ucgMax2.jpg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var _externalAssets_DfjB$I0W__default = /*#__PURE__*/_interopDefault(_externalAssets_DfjB$I0W);
12
+ var _externalAssets_ReJhRoVe__default = /*#__PURE__*/_interopDefault(_externalAssets_ReJhRoVe);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return _externalAssets_DfjB$I0W__default["default"];
16
+ return _externalAssets_ReJhRoVe__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(_externalAssets_DfjB$I0W).forEach(function (k) {
19
+ Object.keys(_externalAssets_ReJhRoVe).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return _externalAssets_DfjB$I0W[k];
23
+ return _externalAssets_ReJhRoVe[k];
24
24
  }
25
25
  });
26
26
  });
@@ -1,3 +1,3 @@
1
- export * from "../../../../../assets/ucgMax.jpg";
2
- export { default } from "../../../../../assets/ucgMax.jpg";
1
+ export * from "../../../../../assets/ucgMax2.jpg";
2
+ export { default } from "../../../../../assets/ucgMax2.jpg";
3
3
  //# sourceMappingURL=ucgMax.jpg.mjs.map
@@ -3,24 +3,24 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var _externalAssets_BGAVPUHK = require("../../../../../assets/ucgUltra.jpg");
6
+ var _externalAssets_sWF40Ihh = require("../../../../../assets/ucgUltra2.jpg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var _externalAssets_BGAVPUHK__default = /*#__PURE__*/_interopDefault(_externalAssets_BGAVPUHK);
12
+ var _externalAssets_sWF40Ihh__default = /*#__PURE__*/_interopDefault(_externalAssets_sWF40Ihh);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return _externalAssets_BGAVPUHK__default["default"];
16
+ return _externalAssets_sWF40Ihh__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(_externalAssets_BGAVPUHK).forEach(function (k) {
19
+ Object.keys(_externalAssets_sWF40Ihh).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return _externalAssets_BGAVPUHK[k];
23
+ return _externalAssets_sWF40Ihh[k];
24
24
  }
25
25
  });
26
26
  });
@@ -1,3 +1,3 @@
1
- export * from "../../../../../assets/ucgUltra.jpg";
2
- export { default } from "../../../../../assets/ucgUltra.jpg";
1
+ export * from "../../../../../assets/ucgUltra2.jpg";
2
+ export { default } from "../../../../../assets/ucgUltra2.jpg";
3
3
  //# sourceMappingURL=ucgUltra.jpg.mjs.map
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var image = require("../../../../assets/ucgMax2.jpg");
6
+ var image = require("../../../../assets/ucgMax.jpg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../assets/ucgMax2.jpg";
2
- export { default } from "../../../../assets/ucgMax2.jpg";
1
+ export * from "../../../../assets/ucgMax.jpg";
2
+ export { default } from "../../../../assets/ucgMax.jpg";
3
3
  //# sourceMappingURL=ucgMax.jpg.mjs.map
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var image = require("../../../../assets/ucgUltra2.jpg");
6
+ var image = require("../../../../assets/ucgUltra.jpg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../assets/ucgUltra2.jpg";
2
- export { default } from "../../../../assets/ucgUltra2.jpg";
1
+ export * from "../../../../assets/ucgUltra.jpg";
2
+ export { default } from "../../../../assets/ucgUltra.jpg";
3
3
  //# sourceMappingURL=ucgUltra.jpg.mjs.map
@@ -26,8 +26,8 @@ var _externalAssets_CmLfPohF = require("../../../assets/udmProMax.jpg");
26
26
  var _externalAssets_pESvYnSE = require("../../../assets/udmPro.jpg");
27
27
  var _externalAssets_BUotdZNw = require("../../../assets/udmProSpecial.jpg");
28
28
  var image = require("../../../assets/udw2.jpg");
29
- var _externalAssets_DfjB$I0W = require("../../../assets/ucgMax.jpg");
30
- var _externalAssets_BGAVPUHK = require("../../../assets/ucgUltra.jpg");
29
+ var _externalAssets_ReJhRoVe = require("../../../assets/ucgMax2.jpg");
30
+ var _externalAssets_sWF40Ihh = require("../../../assets/ucgUltra2.jpg");
31
31
  var image$1 = require("../../../assets/udr2.jpg");
32
32
  var image$2 = require("../../../assets/express.jpg");
33
33
  var nextAiInspection = require('./properties/nextAiInspection.js');
@@ -40,8 +40,8 @@ var _externalAssets_CmLfPohF__default = /*#__PURE__*/_interopDefault(_externalAs
40
40
  var _externalAssets_pESvYnSE__default = /*#__PURE__*/_interopDefault(_externalAssets_pESvYnSE);
41
41
  var _externalAssets_BUotdZNw__default = /*#__PURE__*/_interopDefault(_externalAssets_BUotdZNw);
42
42
  var image__default = /*#__PURE__*/_interopDefault(image);
43
- var _externalAssets_DfjB$I0W__default = /*#__PURE__*/_interopDefault(_externalAssets_DfjB$I0W);
44
- var _externalAssets_BGAVPUHK__default = /*#__PURE__*/_interopDefault(_externalAssets_BGAVPUHK);
43
+ var _externalAssets_ReJhRoVe__default = /*#__PURE__*/_interopDefault(_externalAssets_ReJhRoVe);
44
+ var _externalAssets_sWF40Ihh__default = /*#__PURE__*/_interopDefault(_externalAssets_sWF40Ihh);
45
45
  var image__default$1 = /*#__PURE__*/_interopDefault(image$1);
46
46
  var image__default$2 = /*#__PURE__*/_interopDefault(image$2);
47
47
  "use strict";
@@ -75,12 +75,12 @@ const udw = {
75
75
  };
76
76
  const ucgMax = {
77
77
  ...ucgMax$1.ucgMax,
78
- image: getImage(_externalAssets_DfjB$I0W__default["default"]),
78
+ image: getImage(_externalAssets_ReJhRoVe__default["default"]),
79
79
  notes: ["ucgMax.note.accessory"]
80
80
  };
81
81
  const ucgUltra = {
82
82
  ...ucgUltra$1.ucgUltra,
83
- image: getImage(_externalAssets_BGAVPUHK__default["default"])
83
+ image: getImage(_externalAssets_sWF40Ihh__default["default"])
84
84
  };
85
85
  const udr = {
86
86
  ...udr$1.udr,
@@ -24,8 +24,8 @@ import _externalAssets_CmLfPohF__default from "../../../assets/udmProMax.jpg";
24
24
  import _externalAssets_pESvYnSE__default from "../../../assets/udmPro.jpg";
25
25
  import _externalAssets_BUotdZNw__default from "../../../assets/udmProSpecial.jpg";
26
26
  import image__default from "../../../assets/udw2.jpg";
27
- import _externalAssets_DfjB$I0W__default from "../../../assets/ucgMax.jpg";
28
- import _externalAssets_BGAVPUHK__default from "../../../assets/ucgUltra.jpg";
27
+ import _externalAssets_ReJhRoVe__default from "../../../assets/ucgMax2.jpg";
28
+ import _externalAssets_sWF40Ihh__default from "../../../assets/ucgUltra2.jpg";
29
29
  import image__default$1 from "../../../assets/udr2.jpg";
30
30
  import image__default$2 from "../../../assets/express.jpg";
31
31
  import { nextAiInspection } from './properties/nextAiInspection.mjs';
@@ -60,12 +60,12 @@ const udw = {
60
60
  };
61
61
  const ucgMax = {
62
62
  ...ucgMax$1,
63
- image: getImage(_externalAssets_DfjB$I0W__default),
63
+ image: getImage(_externalAssets_ReJhRoVe__default),
64
64
  notes: ["ucgMax.note.accessory"]
65
65
  };
66
66
  const ucgUltra = {
67
67
  ...ucgUltra$1,
68
- image: getImage(_externalAssets_BGAVPUHK__default)
68
+ image: getImage(_externalAssets_sWF40Ihh__default)
69
69
  };
70
70
  const udr = {
71
71
  ...udr$1,
@@ -9,7 +9,7 @@ require('../../assets/applications.svg.js');
9
9
  require('../../assets/Consoles/ucgMax.jpg.js');
10
10
  require('../properties/index.js');
11
11
  var integratedWiFi6 = require('../properties/integratedWiFi6.js');
12
- var image = require("../../../../assets/ucgMax2.jpg");
12
+ var image = require("../../../../assets/ucgMax.jpg");
13
13
  var unifiAppSuite = require('../properties/unifiAppSuite.js');
14
14
  var StyleableSvgImage = require('../../../StyleableSvgImage/StyleableSvgImage.js');
15
15
  var applications = require("../../../../assets/applications.svg");
@@ -7,7 +7,7 @@ import '../../assets/applications.svg.mjs';
7
7
  import '../../assets/Consoles/ucgMax.jpg.mjs';
8
8
  import '../properties/index.mjs';
9
9
  import { integratedWiFi6 } from '../properties/integratedWiFi6.mjs';
10
- import image__default from "../../../../assets/ucgMax2.jpg";
10
+ import image__default from "../../../../assets/ucgMax.jpg";
11
11
  import { unifiAppSuite } from '../properties/unifiAppSuite.mjs';
12
12
  import { StyleableSvgImage } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
13
13
  import applications__default from "../../../../assets/applications.svg";
@@ -21,7 +21,7 @@ var unifiAppSuite = require('../properties/unifiAppSuite.js');
21
21
  var unifiDevices = require('../properties/unifiDevices.js');
22
22
  var wanPorts = require('../properties/wanPorts.js');
23
23
  var StyleableSvgImage$1 = require('../../../StyleableSvgImage/StyleableSvgImage.js');
24
- var image = require("../../../../assets/ucgUltra2.jpg");
24
+ var image = require("../../../../assets/ucgUltra.jpg");
25
25
  var applications = require("../../../../assets/wifi-device.svg");
26
26
  var nextAiInspection = require('../properties/nextAiInspection.js');
27
27
  function _interopDefault(e) {
@@ -19,7 +19,7 @@ import { unifiAppSuite } from '../properties/unifiAppSuite.mjs';
19
19
  import { unifiDevices } from '../properties/unifiDevices.mjs';
20
20
  import { wanPorts } from '../properties/wanPorts.mjs';
21
21
  import { StyleableSvgImage as StyleableSvgImage$1 } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
22
- import image__default from "../../../../assets/ucgUltra2.jpg";
22
+ import image__default from "../../../../assets/ucgUltra.jpg";
23
23
  import applications__default from "../../../../assets/wifi-device.svg";
24
24
  import { nextAiInspection } from '../properties/nextAiInspection.mjs';
25
25
  "use strict";
@@ -10,7 +10,7 @@ var ProductWizard_styles = require('./ProductWizard.styles.js');
10
10
  var Options = require('./Options/Options.js');
11
11
  var NormalisedImage = require('../NormalisedImage/NormalisedImage.js');
12
12
  var minus = require("../../assets/minus.svg");
13
- var plus = require("../../assets/plus.svg");
13
+ var plus = require("../../assets/plus2.svg");
14
14
  var ProductWizardFootnotes = require('../ProductWizardFootnotes/ProductWizardFootnotes.js');
15
15
  function _interopDefault(e) {
16
16
  return e && e.__esModule ? e : {
@@ -8,7 +8,7 @@ import { WizardContainer, AddToCartContainer, QuantityAdjustWrap, MinusAdjustBut
8
8
  import { ProductWizardOptions } from './Options/Options.mjs';
9
9
  import { NormalisedImage } from '../NormalisedImage/NormalisedImage.mjs';
10
10
  import minus__default from "../../assets/minus.svg";
11
- import plus__default from "../../assets/plus.svg";
11
+ import plus__default from "../../assets/plus2.svg";
12
12
  import { ProductWizardFootnotes } from '../ProductWizardFootnotes/ProductWizardFootnotes.mjs';
13
13
  "use strict";
14
14
  const ProductWizard = function ProductWizard2({
@@ -6,7 +6,7 @@ require('../StyleableSvgImage/index.js');
6
6
  var QuantityInput_styles = require('./QuantityInput.styles.js');
7
7
  var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
8
8
  var minus = require("../../assets/minus.svg");
9
- var plus = require("../../assets/plus.svg");
9
+ var plus = require("../../assets/plus2.svg");
10
10
  function _interopDefault(e) {
11
11
  return e && e.__esModule ? e : {
12
12
  default: e
@@ -4,7 +4,7 @@ import '../StyleableSvgImage/index.mjs';
4
4
  import { Container, Label, QuantityAdjustWrap, MinusAdjustButton, QuantityInput as QuantityInput$1, PlusAdjustButton } from './QuantityInput.styles.mjs';
5
5
  import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
6
6
  import minus__default from "../../assets/minus.svg";
7
- import plus__default from "../../assets/plus.svg";
7
+ import plus__default from "../../assets/plus2.svg";
8
8
  "use strict";
9
9
  const QuantityInput = ({
10
10
  quantity,
@@ -12,7 +12,7 @@ require('./assets/attention.svg.js');
12
12
  var InputCard_styles = require('./InputCard.styles.js');
13
13
  require('./InputSections/index.js');
14
14
  var CustomImage = require('../../../../CustomImage/CustomImage.js');
15
- var attentionIcon = require("../../../../../assets/attention2.svg");
15
+ var attentionIcon = require("../../../../../assets/attention.svg");
16
16
  var OptionSelectSection = require('./InputSections/OptionSelectSection.js');
17
17
  var SliderSection = require('./InputSections/SliderSection.js');
18
18
  var CounterSection = require('./InputSections/CounterSection.js');
@@ -10,7 +10,7 @@ import './assets/attention.svg.mjs';
10
10
  import { Card, Header, HeaderHeadingSection, HeadingIcon, HeadingTitle, HeaderActionSection, SubduedInfo, OverlayFilter, NotAvailableNoteWrap, NotAvailableNoteIcon, InputBody, InputSectionSpacing, Footer, FooterContent, FooterNote } from './InputCard.styles.mjs';
11
11
  import './InputSections/index.mjs';
12
12
  import { CustomImage } from '../../../../CustomImage/CustomImage.mjs';
13
- import attentionIcon__default from "../../../../../assets/attention2.svg";
13
+ import attentionIcon__default from "../../../../../assets/attention.svg";
14
14
  import { OptionSelectSection } from './InputSections/OptionSelectSection.mjs';
15
15
  import { SliderSection } from './InputSections/SliderSection.mjs';
16
16
  import { CounterSection } from './InputSections/CounterSection.mjs';
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var attentionIcon = require("../../../../../../assets/attention2.svg");
6
+ var attentionIcon = require("../../../../../../assets/attention.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../../../assets/attention2.svg";
2
- export { default } from "../../../../../../assets/attention2.svg";
1
+ export * from "../../../../../../assets/attention.svg";
2
+ export { default } from "../../../../../../assets/attention.svg";
3
3
  //# sourceMappingURL=attention.svg.mjs.map
@@ -6,7 +6,7 @@ var asset = require('../../../../../utils/asset.js');
6
6
  require('./assets/attention.svg.js');
7
7
  var Part = require('./Part.js');
8
8
  var ProgressBarChart_styles = require('./ProgressBarChart.styles.js');
9
- var attentionIcon = require("../../../../../assets/attention.svg");
9
+ var attentionIcon = require("../../../../../assets/attention2.svg");
10
10
  function _interopDefault(e) {
11
11
  return e && e.__esModule ? e : {
12
12
  default: e
@@ -4,7 +4,7 @@ import { imageSrc } from '../../../../../utils/asset.mjs';
4
4
  import './assets/attention.svg.mjs';
5
5
  import { PART_GAP_PX, PART_WIDTH_PX, Part } from './Part.mjs';
6
6
  import { ProgressBarChartContainer, ProgressBarChartHeader, ProgressBarChartTitle, ProgressBarWrapper, ProgressBarPartsContainer, ProgressBarAttentionLabel, ProgressBarAttentionLabelIcon } from './ProgressBarChart.styles.mjs';
7
- import attentionIcon__default from "../../../../../assets/attention.svg";
7
+ import attentionIcon__default from "../../../../../assets/attention2.svg";
8
8
  "use strict";
9
9
  const ProgressBarChart = ({
10
10
  title,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var attentionIcon = require("../../../../../../assets/attention.svg");
6
+ var attentionIcon = require("../../../../../../assets/attention2.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../../../assets/attention.svg";
2
- export { default } from "../../../../../../assets/attention.svg";
1
+ export * from "../../../../../../assets/attention2.svg";
2
+ export { default } from "../../../../../../assets/attention2.svg";
3
3
  //# sourceMappingURL=attention.svg.mjs.map
@@ -3,24 +3,24 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var _externalAssets_WKvVtlSv = require("../../../../assets/black.svg");
6
+ var _externalAssets_NxsKXHyJ = require("../../../../assets/black.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var _externalAssets_WKvVtlSv__default = /*#__PURE__*/_interopDefault(_externalAssets_WKvVtlSv);
12
+ var _externalAssets_NxsKXHyJ__default = /*#__PURE__*/_interopDefault(_externalAssets_NxsKXHyJ);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return _externalAssets_WKvVtlSv__default["default"];
16
+ return _externalAssets_NxsKXHyJ__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(_externalAssets_WKvVtlSv).forEach(function (k) {
19
+ Object.keys(_externalAssets_NxsKXHyJ).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return _externalAssets_WKvVtlSv[k];
23
+ return _externalAssets_NxsKXHyJ[k];
24
24
  }
25
25
  });
26
26
  });
@@ -6,7 +6,7 @@ require('./darkGrey.svg.js');
6
6
  require('./grey.svg.js');
7
7
  require('./lightGrey.svg.js');
8
8
  require('./white.svg.js');
9
- var _externalAssets_WKvVtlSv = require("../../../../assets/black.svg");
9
+ var _externalAssets_NxsKXHyJ = require("../../../../assets/black.svg");
10
10
  var _externalAssets_DTFMFQ51 = require("../../../../assets/blue.svg");
11
11
  var _externalAssets_B1Gj17va = require("../../../../assets/darkGrey.svg");
12
12
  var _externalAssets_So87DWAv = require("../../../../assets/grey.svg");
@@ -17,7 +17,7 @@ function _interopDefault(e) {
17
17
  default: e
18
18
  };
19
19
  }
20
- var _externalAssets_WKvVtlSv__default = /*#__PURE__*/_interopDefault(_externalAssets_WKvVtlSv);
20
+ var _externalAssets_NxsKXHyJ__default = /*#__PURE__*/_interopDefault(_externalAssets_NxsKXHyJ);
21
21
  var _externalAssets_DTFMFQ51__default = /*#__PURE__*/_interopDefault(_externalAssets_DTFMFQ51);
22
22
  var _externalAssets_B1Gj17va__default = /*#__PURE__*/_interopDefault(_externalAssets_B1Gj17va);
23
23
  var _externalAssets_So87DWAv__default = /*#__PURE__*/_interopDefault(_externalAssets_So87DWAv);
@@ -27,7 +27,7 @@ var _externalAssets_Dh1AHi98__default = /*#__PURE__*/_interopDefault(_externalAs
27
27
  Object.defineProperty(exports, "black", {
28
28
  enumerable: true,
29
29
  get: function () {
30
- return _externalAssets_WKvVtlSv__default["default"];
30
+ return _externalAssets_NxsKXHyJ__default["default"];
31
31
  }
32
32
  });
33
33
  Object.defineProperty(exports, "blue", {
@@ -3,24 +3,24 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var _externalAssets_NxsKXHyJ = require("../../../../assets/black.svg");
6
+ var _externalAssets_WKvVtlSv = require("../../../../assets/black.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var _externalAssets_NxsKXHyJ__default = /*#__PURE__*/_interopDefault(_externalAssets_NxsKXHyJ);
12
+ var _externalAssets_WKvVtlSv__default = /*#__PURE__*/_interopDefault(_externalAssets_WKvVtlSv);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return _externalAssets_NxsKXHyJ__default["default"];
16
+ return _externalAssets_WKvVtlSv__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(_externalAssets_NxsKXHyJ).forEach(function (k) {
19
+ Object.keys(_externalAssets_WKvVtlSv).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return _externalAssets_NxsKXHyJ[k];
23
+ return _externalAssets_WKvVtlSv[k];
24
24
  }
25
25
  });
26
26
  });
@@ -6,7 +6,7 @@ require('./camo.png.js');
6
6
  require('./concrete.png.js');
7
7
  require('./marble.png.js');
8
8
  require('./wood.png.js');
9
- var _externalAssets_NxsKXHyJ = require("../../../../assets/black.svg");
9
+ var _externalAssets_WKvVtlSv = require("../../../../assets/black.svg");
10
10
  var _externalAssets_DxR_vr6$ = require("../../../../assets/blackFabric.png");
11
11
  var _externalAssets_D_2KPJKL = require("../../../../assets/camo.png");
12
12
  var _externalAssets_AeQRmq$G = require("../../../../assets/concrete.png");
@@ -17,7 +17,7 @@ function _interopDefault(e) {
17
17
  default: e
18
18
  };
19
19
  }
20
- var _externalAssets_NxsKXHyJ__default = /*#__PURE__*/_interopDefault(_externalAssets_NxsKXHyJ);
20
+ var _externalAssets_WKvVtlSv__default = /*#__PURE__*/_interopDefault(_externalAssets_WKvVtlSv);
21
21
  var _externalAssets_DxR_vr6$__default = /*#__PURE__*/_interopDefault(_externalAssets_DxR_vr6$);
22
22
  var _externalAssets_D_2KPJKL__default = /*#__PURE__*/_interopDefault(_externalAssets_D_2KPJKL);
23
23
  var _externalAssets_AeQRmq$G__default = /*#__PURE__*/_interopDefault(_externalAssets_AeQRmq$G);
@@ -27,7 +27,7 @@ var _externalAssets_kQL$tT0V__default = /*#__PURE__*/_interopDefault(_externalAs
27
27
  Object.defineProperty(exports, "black", {
28
28
  enumerable: true,
29
29
  get: function () {
30
- return _externalAssets_NxsKXHyJ__default["default"];
30
+ return _externalAssets_WKvVtlSv__default["default"];
31
31
  }
32
32
  });
33
33
  Object.defineProperty(exports, "blackFabric", {
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  require('./icons/index.js');
4
- var _externalAssets_NxsKXHyJ = require("../assets/black.svg");
4
+ var _externalAssets_WKvVtlSv = require("../assets/black.svg");
5
5
  var _externalAssets_DxR_vr6$ = require("../assets/blackFabric.png");
6
6
  var _externalAssets_D_2KPJKL = require("../assets/camo.png");
7
7
  var _externalAssets_AeQRmq$G = require("../assets/concrete.png");
8
8
  var _externalAssets_CoJwwvt7 = require("../assets/marble.png");
9
9
  var _externalAssets_kQL$tT0V = require("../assets/wood.png");
10
- var _externalAssets_WKvVtlSv = require("../assets/black.svg");
10
+ var _externalAssets_NxsKXHyJ = require("../assets/black.svg");
11
11
  var _externalAssets_DTFMFQ51 = require("../assets/blue.svg");
12
12
  var _externalAssets_Dh1AHi98 = require("../assets/white.svg");
13
13
  var _externalAssets_B1Gj17va = require("../assets/darkGrey.svg");
@@ -18,13 +18,13 @@ function _interopDefault(e) {
18
18
  default: e
19
19
  };
20
20
  }
21
- var _externalAssets_NxsKXHyJ__default = /*#__PURE__*/_interopDefault(_externalAssets_NxsKXHyJ);
21
+ var _externalAssets_WKvVtlSv__default = /*#__PURE__*/_interopDefault(_externalAssets_WKvVtlSv);
22
22
  var _externalAssets_DxR_vr6$__default = /*#__PURE__*/_interopDefault(_externalAssets_DxR_vr6$);
23
23
  var _externalAssets_D_2KPJKL__default = /*#__PURE__*/_interopDefault(_externalAssets_D_2KPJKL);
24
24
  var _externalAssets_AeQRmq$G__default = /*#__PURE__*/_interopDefault(_externalAssets_AeQRmq$G);
25
25
  var _externalAssets_CoJwwvt7__default = /*#__PURE__*/_interopDefault(_externalAssets_CoJwwvt7);
26
26
  var _externalAssets_kQL$tT0V__default = /*#__PURE__*/_interopDefault(_externalAssets_kQL$tT0V);
27
- var _externalAssets_WKvVtlSv__default = /*#__PURE__*/_interopDefault(_externalAssets_WKvVtlSv);
27
+ var _externalAssets_NxsKXHyJ__default = /*#__PURE__*/_interopDefault(_externalAssets_NxsKXHyJ);
28
28
  var _externalAssets_DTFMFQ51__default = /*#__PURE__*/_interopDefault(_externalAssets_DTFMFQ51);
29
29
  var _externalAssets_Dh1AHi98__default = /*#__PURE__*/_interopDefault(_externalAssets_Dh1AHi98);
30
30
  var _externalAssets_B1Gj17va__default = /*#__PURE__*/_interopDefault(_externalAssets_B1Gj17va);
@@ -53,7 +53,7 @@ var OptionColors = /* @__PURE__ */(OptionColors2 => {
53
53
  return OptionColors2;
54
54
  })(OptionColors || {});
55
55
  const optionStyle = {
56
- ["black" /* black */]: _externalAssets_NxsKXHyJ__default["default"],
56
+ ["black" /* black */]: _externalAssets_WKvVtlSv__default["default"],
57
57
  ["black-fabric" /* blackFabric */]: _externalAssets_DxR_vr6$__default["default"],
58
58
  ["camo" /* camo */]: _externalAssets_D_2KPJKL__default["default"],
59
59
  ["concrete" /* concrete */]: _externalAssets_AeQRmq$G__default["default"],
@@ -62,7 +62,7 @@ const optionStyle = {
62
62
  };
63
63
  const optionColors = {
64
64
  // Common
65
- ["black" /* black */]: _externalAssets_WKvVtlSv__default["default"],
65
+ ["black" /* black */]: _externalAssets_NxsKXHyJ__default["default"],
66
66
  ["blue" /* blue */]: _externalAssets_DTFMFQ51__default["default"],
67
67
  ["white" /* white */]: _externalAssets_Dh1AHi98__default["default"],
68
68
  // US English
@@ -1,11 +1,11 @@
1
1
  import './icons/index.mjs';
2
- import _externalAssets_NxsKXHyJ__default from "../assets/black.svg";
2
+ import _externalAssets_WKvVtlSv__default from "../assets/black.svg";
3
3
  import _externalAssets_DxR_vr6$__default from "../assets/blackFabric.png";
4
4
  import _externalAssets_D_2KPJKL__default from "../assets/camo.png";
5
5
  import _externalAssets_AeQRmq$G__default from "../assets/concrete.png";
6
6
  import _externalAssets_CoJwwvt7__default from "../assets/marble.png";
7
7
  import _externalAssets_kQL$tT0V__default from "../assets/wood.png";
8
- import _externalAssets_WKvVtlSv__default from "../assets/black.svg";
8
+ import _externalAssets_NxsKXHyJ__default from "../assets/black.svg";
9
9
  import _externalAssets_DTFMFQ51__default from "../assets/blue.svg";
10
10
  import _externalAssets_Dh1AHi98__default from "../assets/white.svg";
11
11
  import _externalAssets_B1Gj17va__default from "../assets/darkGrey.svg";
@@ -34,7 +34,7 @@ var OptionColors = /* @__PURE__ */(OptionColors2 => {
34
34
  return OptionColors2;
35
35
  })(OptionColors || {});
36
36
  const optionStyle = {
37
- ["black" /* black */]: _externalAssets_NxsKXHyJ__default,
37
+ ["black" /* black */]: _externalAssets_WKvVtlSv__default,
38
38
  ["black-fabric" /* blackFabric */]: _externalAssets_DxR_vr6$__default,
39
39
  ["camo" /* camo */]: _externalAssets_D_2KPJKL__default,
40
40
  ["concrete" /* concrete */]: _externalAssets_AeQRmq$G__default,
@@ -43,7 +43,7 @@ const optionStyle = {
43
43
  };
44
44
  const optionColors = {
45
45
  // Common
46
- ["black" /* black */]: _externalAssets_WKvVtlSv__default,
46
+ ["black" /* black */]: _externalAssets_NxsKXHyJ__default,
47
47
  ["blue" /* blue */]: _externalAssets_DTFMFQ51__default,
48
48
  ["white" /* white */]: _externalAssets_Dh1AHi98__default,
49
49
  // US English
@@ -49,4 +49,4 @@
49
49
  * }
50
50
  * }
51
51
  */
52
- export declare const UiComponentsSsrStyleRegistryPagesRouter: () => JSX.Element;
52
+ export declare const UiComponentsSsrStyleRegistryPagesRouter: import("react").NamedExoticComponent<object>;
@@ -1,9 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
+ var react = require('react');
4
5
  var constants = require('./constants.js');
5
6
  "use strict";
6
- const UiComponentsSsrStyleRegistryPagesRouter = () => {
7
+ const UiComponentsSsrStyleRegistryPagesRouter = react.memo(function UiComponentsSsrStyleRegistryPagesRouter2() {
7
8
  const injections = globalThis[constants.SSR_INJECT_ID];
8
9
  const injectionsExist = !!injections && Array.isArray(injections) && !!injections.length;
9
10
  return /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
@@ -11,9 +12,11 @@ const UiComponentsSsrStyleRegistryPagesRouter = () => {
11
12
  "data-uic-style": ""
12
13
  }, "data-uic-reference"), injectionsExist && injections?.map(module => /* @__PURE__ */jsxRuntime.jsx("style", {
13
14
  "data-uic-style": module.id,
14
- children: module.css
15
+ dangerouslySetInnerHTML: {
16
+ __html: module.css
17
+ }
15
18
  }, module.id))]
16
19
  });
17
- };
20
+ });
18
21
  exports.UiComponentsSsrStyleRegistryPagesRouter = UiComponentsSsrStyleRegistryPagesRouter;
19
22
  //# sourceMappingURL=registry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sources":["../../../../src/utils/nextjs/ssr/registry.tsx"],"sourcesContent":["import { SSR_INJECT_ID } from \"./constants\";\nimport type { InjectedModule } from \"./types\";\n\n/**\n * Helper to read injected styles from SSR and inject them into header so first-render is styled correctly.\n * See `./style-inject.ts` for more info!\n *\n * Based on:\n * @see https://github.com/egoist/style-inject/pull/28/files\n *\n * @example\n * \\/**\n * * Add styled-components server-side render support\n * * Taken from https://github.com/vercel/next.js/blob/master/examples/with-styled-components/pages/_document.js\n * *\\/\n * static override async getInitialProps(ctx: DocumentContext): Promise<{\n * styles: JSX.Element;\n * html: string;\n * head?: (JSX.Element | null)[] | undefined;\n * }> {\n * const sheet = new ServerStyleSheet();\n * const originalRenderPage = ctx.renderPage;\n *\n * try {\n * ctx.renderPage = () =>\n * originalRenderPage({\n * enhanceApp: (App) =>\n * function AppEnhanced(props) {\n * return sheet.collectStyles(<App {...props} />);\n * },\n * });\n *\n * const initialProps = await Document.getInitialProps(ctx);\n * return {\n * ...initialProps,\n * styles: (\n * <>\n * {\\/**\n * * Order of injecting important so we:\n * * 1. Inject global css from next\n * * 2. Inject ui-component styles\n * * 3. Inject our styled-component styles (with possible overrides ui-component overrides)\n * *\\/}\n * {initialProps.styles}\n * <UiComponentsSsrStyleRegistry />\n * {sheet.getStyleElement()}\n * </>\n * ),\n * };\n * } finally {\n * sheet.seal();\n * }\n * }\n */\nexport const UiComponentsSsrStyleRegistryPagesRouter = () => {\n // @ts-expect-error Dangerously accessing globalThis\n const injections = globalThis[SSR_INJECT_ID] as unknown as\n | InjectedModule[]\n | undefined;\n\n const injectionsExist =\n !!injections && Array.isArray(injections) && !!injections.length;\n\n // TODO: For app router will have to migrate to using `useServerInsertedHTML`, see\n // https://nextjs.org/docs/app/building-your-application/styling/css-in-js#styled-components\n\n // Create a style element for each injection\n return (\n <>\n {/* Empty style element as \"bookmark\" for style-inject to know for first insertion where to place first style tag */}\n <noscript data-uic-style=\"\" key=\"data-uic-reference\" />\n {injectionsExist &&\n injections?.map((module: { id: string; css: string }) => (\n <style data-uic-style={module.id} key={module.id}>\n {module.css}\n </style>\n ))}\n </>\n );\n};\n"],"names":["UiComponentsSsrStyleRegistryPagesRouter","injections","globalThis","SSR_INJECT_ID","injectionsExist","Array","isArray","length","jsxs","Fragment","children","jsx","map","module","id","css"],"mappings":";;;;;AAsDO,MAAMA,0CAA0CA,CAAA,KAAM;EAErD,MAAAC,UAAA,GAAaC,WAAWC,SAAAA,CAAAA,aAAa,CAAA;EAIrC,MAAAC,eAAA,GACJ,CAAC,CAACH,UAAc,IAAAI,KAAA,CAAMC,QAAQL,UAAU,CAAA,IAAK,CAAC,CAACA,UAAW,CAAAM,MAAA;EAM5D,sBAGIC,UAAA,CAAAA,IAAA,CAAAC,mBAAA,EAAA;IAAAC,QAAA,EAAA,CAACC,eAAAA,UAAAA,CAAAA,GAAA,CAAA,UAAA,EAAA;MAAS,gBAAe,EAAA;IAAA,CAAA,EAAO,oBAAqB,CAAA,EACpDP,eACC,IAAAH,UAAA,EAAYW,GAAI,CAACC,UACdF,eAAAA,UAAAA,CAAAA,GAAA,CAAA,OAAA,EAAA;MAAM,gBAAgB,EAAAE,MAAA,CAAOC,EAC3B;MAAAJ,QAAA,EAAAG,MAAA,CAAOE;IAD6B,CAAA,EAAAF,MAAA,CAAOC,EAE9C,CACD,CAAA;EACL,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"registry.js","sources":["../../../../src/utils/nextjs/ssr/registry.tsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { SSR_INJECT_ID } from \"./constants\";\nimport type { InjectedModule } from \"./types\";\n\n/**\n * Helper to read injected styles from SSR and inject them into header so first-render is styled correctly.\n * See `./style-inject.ts` for more info!\n *\n * Based on:\n * @see https://github.com/egoist/style-inject/pull/28/files\n *\n * @example\n * \\/**\n * * Add styled-components server-side render support\n * * Taken from https://github.com/vercel/next.js/blob/master/examples/with-styled-components/pages/_document.js\n * *\\/\n * static override async getInitialProps(ctx: DocumentContext): Promise<{\n * styles: JSX.Element;\n * html: string;\n * head?: (JSX.Element | null)[] | undefined;\n * }> {\n * const sheet = new ServerStyleSheet();\n * const originalRenderPage = ctx.renderPage;\n *\n * try {\n * ctx.renderPage = () =>\n * originalRenderPage({\n * enhanceApp: (App) =>\n * function AppEnhanced(props) {\n * return sheet.collectStyles(<App {...props} />);\n * },\n * });\n *\n * const initialProps = await Document.getInitialProps(ctx);\n * return {\n * ...initialProps,\n * styles: (\n * <>\n * {\\/**\n * * Order of injecting important so we:\n * * 1. Inject global css from next\n * * 2. Inject ui-component styles\n * * 3. Inject our styled-component styles (with possible overrides ui-component overrides)\n * *\\/}\n * {initialProps.styles}\n * <UiComponentsSsrStyleRegistry />\n * {sheet.getStyleElement()}\n * </>\n * ),\n * };\n * } finally {\n * sheet.seal();\n * }\n * }\n */\nexport const UiComponentsSsrStyleRegistryPagesRouter = memo(\n function UiComponentsSsrStyleRegistryPagesRouter() {\n // @ts-expect-error Dangerously accessing globalThis\n const injections = globalThis[SSR_INJECT_ID] as unknown as\n | InjectedModule[]\n | undefined;\n\n const injectionsExist =\n !!injections && Array.isArray(injections) && !!injections.length;\n\n // TODO: For app router will have to migrate to using `useServerInsertedHTML`, see\n // https://nextjs.org/docs/app/building-your-application/styling/css-in-js#styled-components\n\n // Create a style element for each injection\n return (\n <>\n {/* Empty style element as \"bookmark\" for style-inject to know for first insertion where to place first style tag */}\n <noscript data-uic-style=\"\" key=\"data-uic-reference\" />\n {injectionsExist &&\n injections?.map((module: { id: string; css: string }) => (\n <style\n data-uic-style={module.id}\n key={module.id}\n // Dangerouslt set inner HTML to inject the CSS to not escape `content: \"\"`\n dangerouslySetInnerHTML={{ __html: module.css }}\n />\n ))}\n </>\n );\n },\n);\n"],"names":["UiComponentsSsrStyleRegistryPagesRouter","memo","UiComponentsSsrStyleRegistryPagesRouter2","injections","globalThis","SSR_INJECT_ID","injectionsExist","Array","isArray","length","jsxs","Fragment","children","jsx","map","module","id","dangerouslySetInnerHTML","__html","css"],"mappings":";;;;;;AAwDO,MAAMA,uCAA0C,GAAAC,KAAA,CAAAA,IAAA,CACrD,SAASD,wCAA0CE,CAAA,EAAA;EAE3C,MAAAC,UAAA,GAAaC,WAAWC,SAAAA,CAAAA,aAAa,CAAA;EAIrC,MAAAC,eAAA,GACJ,CAAC,CAACH,UAAc,IAAAI,KAAA,CAAMC,QAAQL,UAAU,CAAA,IAAK,CAAC,CAACA,UAAW,CAAAM,MAAA;EAM5D,sBAGIC,UAAA,CAAAA,IAAA,CAAAC,mBAAA,EAAA;IAAAC,QAAA,EAAA,CAACC,eAAAA,UAAAA,CAAAA,GAAA,CAAA,UAAA,EAAA;MAAS,gBAAe,EAAA;IAAA,CAAA,EAAO,oBAAqB,CAAA,EACpDP,eACC,IAAAH,UAAA,EAAYW,GAAI,CAACC,MACf,IAAA,eAAAF,UAAA,CAAAA,GAAA,CAAC,OAAA,EAAA;MACC,kBAAgBE,MAAO,CAAAC,EAAA;MAGvBC,uBAAyB,EAAA;QAAEC,MAAQ,EAAAH,MAAA,CAAOI;MAAI;IAAA,CAAA,EAFzCJ,MAAO,CAAAC,EAAA,CAIf,CAAA;EACL,CAAA,CAAA;AAEJ,CACF,CAAA;"}
@@ -1,7 +1,8 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
+ import { memo } from 'react';
2
3
  import { SSR_INJECT_ID } from './constants.mjs';
3
4
  "use strict";
4
- const UiComponentsSsrStyleRegistryPagesRouter = () => {
5
+ const UiComponentsSsrStyleRegistryPagesRouter = memo(function UiComponentsSsrStyleRegistryPagesRouter2() {
5
6
  const injections = globalThis[SSR_INJECT_ID];
6
7
  const injectionsExist = !!injections && Array.isArray(injections) && !!injections.length;
7
8
  return /* @__PURE__ */jsxs(Fragment, {
@@ -9,9 +10,11 @@ const UiComponentsSsrStyleRegistryPagesRouter = () => {
9
10
  "data-uic-style": ""
10
11
  }, "data-uic-reference"), injectionsExist && injections?.map(module => /* @__PURE__ */jsx("style", {
11
12
  "data-uic-style": module.id,
12
- children: module.css
13
+ dangerouslySetInnerHTML: {
14
+ __html: module.css
15
+ }
13
16
  }, module.id))]
14
17
  });
15
- };
18
+ });
16
19
  export { UiComponentsSsrStyleRegistryPagesRouter };
17
20
  //# sourceMappingURL=registry.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.mjs","sources":["../../../../src/utils/nextjs/ssr/registry.tsx"],"sourcesContent":["import { SSR_INJECT_ID } from \"./constants\";\nimport type { InjectedModule } from \"./types\";\n\n/**\n * Helper to read injected styles from SSR and inject them into header so first-render is styled correctly.\n * See `./style-inject.ts` for more info!\n *\n * Based on:\n * @see https://github.com/egoist/style-inject/pull/28/files\n *\n * @example\n * \\/**\n * * Add styled-components server-side render support\n * * Taken from https://github.com/vercel/next.js/blob/master/examples/with-styled-components/pages/_document.js\n * *\\/\n * static override async getInitialProps(ctx: DocumentContext): Promise<{\n * styles: JSX.Element;\n * html: string;\n * head?: (JSX.Element | null)[] | undefined;\n * }> {\n * const sheet = new ServerStyleSheet();\n * const originalRenderPage = ctx.renderPage;\n *\n * try {\n * ctx.renderPage = () =>\n * originalRenderPage({\n * enhanceApp: (App) =>\n * function AppEnhanced(props) {\n * return sheet.collectStyles(<App {...props} />);\n * },\n * });\n *\n * const initialProps = await Document.getInitialProps(ctx);\n * return {\n * ...initialProps,\n * styles: (\n * <>\n * {\\/**\n * * Order of injecting important so we:\n * * 1. Inject global css from next\n * * 2. Inject ui-component styles\n * * 3. Inject our styled-component styles (with possible overrides ui-component overrides)\n * *\\/}\n * {initialProps.styles}\n * <UiComponentsSsrStyleRegistry />\n * {sheet.getStyleElement()}\n * </>\n * ),\n * };\n * } finally {\n * sheet.seal();\n * }\n * }\n */\nexport const UiComponentsSsrStyleRegistryPagesRouter = () => {\n // @ts-expect-error Dangerously accessing globalThis\n const injections = globalThis[SSR_INJECT_ID] as unknown as\n | InjectedModule[]\n | undefined;\n\n const injectionsExist =\n !!injections && Array.isArray(injections) && !!injections.length;\n\n // TODO: For app router will have to migrate to using `useServerInsertedHTML`, see\n // https://nextjs.org/docs/app/building-your-application/styling/css-in-js#styled-components\n\n // Create a style element for each injection\n return (\n <>\n {/* Empty style element as \"bookmark\" for style-inject to know for first insertion where to place first style tag */}\n <noscript data-uic-style=\"\" key=\"data-uic-reference\" />\n {injectionsExist &&\n injections?.map((module: { id: string; css: string }) => (\n <style data-uic-style={module.id} key={module.id}>\n {module.css}\n </style>\n ))}\n </>\n );\n};\n"],"names":["UiComponentsSsrStyleRegistryPagesRouter","injections","globalThis","SSR_INJECT_ID","injectionsExist","Array","isArray","length","jsxs","Fragment","children","jsx","map","module","id","css"],"mappings":";;;AAsDO,MAAMA,0CAA0CA,CAAA,KAAM;EAErD,MAAAC,UAAA,GAAaC,WAAWC,aAAa,CAAA;EAIrC,MAAAC,eAAA,GACJ,CAAC,CAACH,UAAc,IAAAI,KAAA,CAAMC,QAAQL,UAAU,CAAA,IAAK,CAAC,CAACA,UAAW,CAAAM,MAAA;EAM5D,sBAGIC,IAAA,CAAAC,QAAA,EAAA;IAAAC,QAAA,EAAA,CAAC,eAAAC,GAAA,CAAA,UAAA,EAAA;MAAS,gBAAe,EAAA;IAAA,CAAA,EAAO,oBAAqB,CAAA,EACpDP,eACC,IAAAH,UAAA,EAAYW,GAAI,CAACC,UACd,eAAAF,GAAA,CAAA,OAAA,EAAA;MAAM,gBAAgB,EAAAE,MAAA,CAAOC,EAC3B;MAAAJ,QAAA,EAAAG,MAAA,CAAOE;IAD6B,CAAA,EAAAF,MAAA,CAAOC,EAE9C,CACD,CAAA;EACL,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"registry.mjs","sources":["../../../../src/utils/nextjs/ssr/registry.tsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { SSR_INJECT_ID } from \"./constants\";\nimport type { InjectedModule } from \"./types\";\n\n/**\n * Helper to read injected styles from SSR and inject them into header so first-render is styled correctly.\n * See `./style-inject.ts` for more info!\n *\n * Based on:\n * @see https://github.com/egoist/style-inject/pull/28/files\n *\n * @example\n * \\/**\n * * Add styled-components server-side render support\n * * Taken from https://github.com/vercel/next.js/blob/master/examples/with-styled-components/pages/_document.js\n * *\\/\n * static override async getInitialProps(ctx: DocumentContext): Promise<{\n * styles: JSX.Element;\n * html: string;\n * head?: (JSX.Element | null)[] | undefined;\n * }> {\n * const sheet = new ServerStyleSheet();\n * const originalRenderPage = ctx.renderPage;\n *\n * try {\n * ctx.renderPage = () =>\n * originalRenderPage({\n * enhanceApp: (App) =>\n * function AppEnhanced(props) {\n * return sheet.collectStyles(<App {...props} />);\n * },\n * });\n *\n * const initialProps = await Document.getInitialProps(ctx);\n * return {\n * ...initialProps,\n * styles: (\n * <>\n * {\\/**\n * * Order of injecting important so we:\n * * 1. Inject global css from next\n * * 2. Inject ui-component styles\n * * 3. Inject our styled-component styles (with possible overrides ui-component overrides)\n * *\\/}\n * {initialProps.styles}\n * <UiComponentsSsrStyleRegistry />\n * {sheet.getStyleElement()}\n * </>\n * ),\n * };\n * } finally {\n * sheet.seal();\n * }\n * }\n */\nexport const UiComponentsSsrStyleRegistryPagesRouter = memo(\n function UiComponentsSsrStyleRegistryPagesRouter() {\n // @ts-expect-error Dangerously accessing globalThis\n const injections = globalThis[SSR_INJECT_ID] as unknown as\n | InjectedModule[]\n | undefined;\n\n const injectionsExist =\n !!injections && Array.isArray(injections) && !!injections.length;\n\n // TODO: For app router will have to migrate to using `useServerInsertedHTML`, see\n // https://nextjs.org/docs/app/building-your-application/styling/css-in-js#styled-components\n\n // Create a style element for each injection\n return (\n <>\n {/* Empty style element as \"bookmark\" for style-inject to know for first insertion where to place first style tag */}\n <noscript data-uic-style=\"\" key=\"data-uic-reference\" />\n {injectionsExist &&\n injections?.map((module: { id: string; css: string }) => (\n <style\n data-uic-style={module.id}\n key={module.id}\n // Dangerouslt set inner HTML to inject the CSS to not escape `content: \"\"`\n dangerouslySetInnerHTML={{ __html: module.css }}\n />\n ))}\n </>\n );\n },\n);\n"],"names":["UiComponentsSsrStyleRegistryPagesRouter","memo","UiComponentsSsrStyleRegistryPagesRouter2","injections","globalThis","SSR_INJECT_ID","injectionsExist","Array","isArray","length","jsxs","Fragment","children","jsx","map","module","id","dangerouslySetInnerHTML","__html","css"],"mappings":";;;;AAwDO,MAAMA,uCAA0C,GAAAC,IAAA,CACrD,SAASD,wCAA0CE,CAAA,EAAA;EAE3C,MAAAC,UAAA,GAAaC,WAAWC,aAAa,CAAA;EAIrC,MAAAC,eAAA,GACJ,CAAC,CAACH,UAAc,IAAAI,KAAA,CAAMC,QAAQL,UAAU,CAAA,IAAK,CAAC,CAACA,UAAW,CAAAM,MAAA;EAM5D,sBAGIC,IAAA,CAAAC,QAAA,EAAA;IAAAC,QAAA,EAAA,CAAC,eAAAC,GAAA,CAAA,UAAA,EAAA;MAAS,gBAAe,EAAA;IAAA,CAAA,EAAO,oBAAqB,CAAA,EACpDP,eACC,IAAAH,UAAA,EAAYW,GAAI,CAACC,MACf,IAAA,eAAAF,GAAA,CAAC,OAAA,EAAA;MACC,kBAAgBE,MAAO,CAAAC,EAAA;MAGvBC,uBAAyB,EAAA;QAAEC,MAAQ,EAAAH,MAAA,CAAOI;MAAI;IAAA,CAAA,EAFzCJ,MAAO,CAAAC,EAAA,CAIf,CAAA;EACL,CAAA,CAAA;AAEJ,CACF,CAAA;"}
@@ -33,7 +33,7 @@ function styleInject(css, id) {
33
33
  }
34
34
  const style = document.createElement("style");
35
35
  style.setAttribute(SSR_NODE_DATA_ID, id);
36
- style.textContent = css;
36
+ style.innerHTML = css;
37
37
  if (injectedStylesLength) {
38
38
  const lastStyle = injectedStyles[injectedStylesLength - 1];
39
39
  if (lastStyle) {
@@ -1 +1 @@
1
- {"version":3,"file":"style-inject.js","sources":["../../../../src/utils/nextjs/ssr/style-inject.ts"],"sourcesContent":["// #############################################################################\n// ! This file can't contain any imports, as it's copy-pasted into the bundled code!\n// #############################################################################\n\n/**\n * Name for the global object that will be used to store the SSR modules when injecting them into the page.\n */\nconst SSR_INJECT_ID = \"__styleInject_SSR_MODULES\";\n\n/**\n * Data attribute that indicates that given `<style>` node was injected by us\n */\nconst SSR_NODE_DATA_ID = \"data-uic-style\";\n\ntype InjectedModule = {\n /**\n * The ID of the style tag (typically some stable unique hash derived CSS content)\n */\n id: string;\n /**\n * The CSS string to inject\n */\n css: string;\n};\n\n// #############################################################################\n\n/**\n * Util to inject styles into the DOM, this is a patched version of the original styled-inject.\n *\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/rollup.config.js\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/scripts/rollup-plugin-local-style-inject.js\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/src/docs/helpers/style-inject.es.js\n * - Original styled-inject: https://github.com/egoist/style-inject/blob/master/src/index.js\n * - SSR Patch: https://github.com/egoist/style-inject/pull/28/files\n */\nexport default function styleInject(\n css: InjectedModule[\"css\"],\n id: InjectedModule[\"id\"],\n) {\n // Nothing to inject\n if (!css) {\n return;\n }\n\n // Patch missing global variable\n // @ts-expect-error Dangerously accessing globalThis\n if (!globalThis[SSR_INJECT_ID]) {\n // @ts-expect-error Dangerously accessing globalThis\n globalThis[SSR_INJECT_ID] = [];\n }\n\n // Exit early if the style is already injected/registered\n // @ts-expect-error Dangerously accessing globalThis\n if (globalThis[SSR_INJECT_ID].find((item) => item.id === id)) {\n return;\n }\n\n // Register the injected module\n // @ts-expect-error Dangerously accessing globalThis\n globalThis[SSR_INJECT_ID].push({ id, css });\n\n // Exit early as we can't inject styles on the server, registering is enough\n if (typeof document === \"undefined\") {\n return;\n }\n\n // Try to find either bookmark `<noscript/>` or last injected `<style/>`\n const injectedStyles = document.head.querySelectorAll(\n `:scope > [${SSR_NODE_DATA_ID}]`,\n );\n const injectedStylesLength = injectedStyles.length;\n\n // Check if the style is already injected and return early if needed\n for (let i = 0; i < injectedStylesLength; i++) {\n const style = injectedStyles[i];\n\n if (!!style && style.getAttribute(SSR_NODE_DATA_ID) === id) {\n return;\n }\n }\n\n // Create a style tag\n const style = document.createElement(\"style\");\n // Set a data element so for next DOM inject we can append to the last element we appended\n style.setAttribute(SSR_NODE_DATA_ID, id);\n // Set CSS content via a safe text escaped approach\n style.textContent = css;\n\n // Attempt to append the style (to preserve overriding logic with styled-components)\n if (injectedStylesLength) {\n const lastStyle = injectedStyles[injectedStylesLength - 1];\n\n if (lastStyle) {\n lastStyle.after(style);\n return;\n }\n }\n\n // If that didn't work append to end of head (should have been handled by the bookmark, but just in case)\n document.head.appendChild(style);\n}\n"],"names":["SSR_INJECT_ID","SSR_NODE_DATA_ID","styleInject","css","id","globalThis","find","item","push","document","injectedStyles","head","querySelectorAll","injectedStylesLength","length","i","style","getAttribute","createElement","setAttribute","textContent","lastStyle","after","appendChild"],"mappings":";;;;;;AAOA,MAAMA,aAAgB,GAAA,2BAAA;AAKtB,MAAMC,gBAAmB,GAAA,gBAAA;AAwBD,SAAAC,WAAAA,CACtBC,KACAC,EACA,EAAA;EAEA,IAAI,CAACD,GAAK,EAAA;IACR;EACF;EAII,IAAA,CAACE,UAAW,CAAAL,aAAa,CAAG,EAAA;IAEnBK,UAAA,CAAAL,aAAa,IAAI,EAAC;EAC/B;EAII,IAAAK,UAAA,CAAWL,aAAa,CAAE,CAAAM,IAAA,CAAMC,IAAS,IAAAA,IAAA,CAAKH,EAAO,KAAAA,EAAE,CAAG,EAAA;IAC5D;EACF;EAIAC,UAAA,CAAWL,aAAa,CAAE,CAAAQ,IAAA,CAAK;IAAEJ,EAAA;IAAID;GAAK,CAAA;EAGtC,IAAA,OAAOM,aAAa,WAAa,EAAA;IACnC;EACF;EAGM,MAAAC,cAAA,GAAiBD,SAASE,IAAK,CAAAC,gBAAA,CACnC,aAAaX,gBAAgB,GAAA,CAC/B;EACA,MAAMY,uBAAuBH,cAAe,CAAAI,MAAA;EAG5C,KAAA,IAASC,CAAI,GAAA,CAAA,EAAGA,CAAI,GAAAF,oBAAA,EAAsBE,CAAK,EAAA,EAAA;IACvCC,MAAAA,MAAAA,GAAQN,eAAeK,CAAC,CAAA;IAE9B,IAAI,CAAC,CAACC,MAAAA,IAASA,OAAMC,YAAa,CAAAhB,gBAAgB,MAAMG,EAAI,EAAA;MAC1D;IACF;EACF;EAGM,MAAAY,KAAA,GAAQP,QAAS,CAAAS,aAAA,CAAc,OAAO,CAAA;EAEtCF,KAAA,CAAAG,YAAA,CAAalB,kBAAkBG,EAAE,CAAA;EAEvCY,KAAA,CAAMI,WAAc,GAAAjB,GAAA;EAGpB,IAAIU,oBAAsB,EAAA;IAClB,MAAAQ,SAAA,GAAYX,cAAe,CAAAG,oBAAA,GAAuB,CAAC,CAAA;IAEzD,IAAIQ,SAAW,EAAA;MACbA,SAAA,CAAUC,MAAMN,KAAK,CAAA;MACrB;IACF;EACF;EAGSP,QAAA,CAAAE,IAAA,CAAKY,YAAYP,KAAK,CAAA;AACjC;"}
1
+ {"version":3,"file":"style-inject.js","sources":["../../../../src/utils/nextjs/ssr/style-inject.ts"],"sourcesContent":["// #############################################################################\n// ! This file can't contain any imports, as it's copy-pasted into the bundled code!\n// #############################################################################\n\n/**\n * Name for the global object that will be used to store the SSR modules when injecting them into the page.\n */\nconst SSR_INJECT_ID = \"__styleInject_SSR_MODULES\";\n\n/**\n * Data attribute that indicates that given `<style>` node was injected by us\n */\nconst SSR_NODE_DATA_ID = \"data-uic-style\";\n\ntype InjectedModule = {\n /**\n * The ID of the style tag (typically some stable unique hash derived CSS content)\n */\n id: string;\n /**\n * The CSS string to inject\n */\n css: string;\n};\n\n// #############################################################################\n\n/**\n * Util to inject styles into the DOM, this is a patched version of the original styled-inject.\n *\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/rollup.config.js\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/scripts/rollup-plugin-local-style-inject.js\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/src/docs/helpers/style-inject.es.js\n * - Original styled-inject: https://github.com/egoist/style-inject/blob/master/src/index.js\n * - SSR Patch: https://github.com/egoist/style-inject/pull/28/files\n */\nexport default function styleInject(\n css: InjectedModule[\"css\"],\n id: InjectedModule[\"id\"],\n) {\n // Nothing to inject\n if (!css) {\n return;\n }\n\n // Patch missing global variable\n // @ts-expect-error Dangerously accessing globalThis\n if (!globalThis[SSR_INJECT_ID]) {\n // @ts-expect-error Dangerously accessing globalThis\n globalThis[SSR_INJECT_ID] = [];\n }\n\n // Exit early if the style is already injected/registered\n // @ts-expect-error Dangerously accessing globalThis\n if (globalThis[SSR_INJECT_ID].find((item) => item.id === id)) {\n return;\n }\n\n // Register the injected module\n // @ts-expect-error Dangerously accessing globalThis\n globalThis[SSR_INJECT_ID].push({ id, css });\n\n // Exit early as we can't inject styles on the server, registering is enough\n if (typeof document === \"undefined\") {\n return;\n }\n\n // Try to find either bookmark `<noscript/>` or last injected `<style/>`\n const injectedStyles = document.head.querySelectorAll(\n `:scope > [${SSR_NODE_DATA_ID}]`,\n );\n const injectedStylesLength = injectedStyles.length;\n\n // Check if the style is already injected and return early if needed\n for (let i = 0; i < injectedStylesLength; i++) {\n const style = injectedStyles[i];\n\n if (!!style && style.getAttribute(SSR_NODE_DATA_ID) === id) {\n return;\n }\n }\n\n // Create a style tag\n const style = document.createElement(\"style\");\n // Set a data element so for next DOM inject we can append to the last element we appended\n style.setAttribute(SSR_NODE_DATA_ID, id);\n /**\n * Experimented with various ways of injecting the CSS as many approaches escapes certain CSS. E.g. `content: \"\";` -->\n * `content:&qout;&qout;;;` which would partially break the given style tag and cause random layout issues as partial\n * styles would be applied.\n *\n * - Didn't work as escaped the CSS content:\n * - `style.textContent = css;`\n * - `style.innerText = css;`\n * Old way:\n * - `style.styleSheet.cssText = css`\n * Worked:\n * - `style.innerHTML = css;\n * TODO: maybe in 2025 look at `CSSStyleSheet` constructor and `insertRule` method - https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet\n */\n style.innerHTML = css;\n\n // Attempt to append the style (to preserve overriding logic with styled-components)\n if (injectedStylesLength) {\n const lastStyle = injectedStyles[injectedStylesLength - 1];\n\n if (lastStyle) {\n lastStyle.after(style);\n return;\n }\n }\n\n // If that didn't work append to end of head (should have been handled by the bookmark, but just in case)\n document.head.appendChild(style);\n}\n"],"names":["SSR_INJECT_ID","SSR_NODE_DATA_ID","styleInject","css","id","globalThis","find","item","push","document","injectedStyles","head","querySelectorAll","injectedStylesLength","length","i","style","getAttribute","createElement","setAttribute","innerHTML","lastStyle","after","appendChild"],"mappings":";;;;;;AAOA,MAAMA,aAAgB,GAAA,2BAAA;AAKtB,MAAMC,gBAAmB,GAAA,gBAAA;AAwBD,SAAAC,WAAAA,CACtBC,KACAC,EACA,EAAA;EAEA,IAAI,CAACD,GAAK,EAAA;IACR;EACF;EAII,IAAA,CAACE,UAAW,CAAAL,aAAa,CAAG,EAAA;IAEnBK,UAAA,CAAAL,aAAa,IAAI,EAAC;EAC/B;EAII,IAAAK,UAAA,CAAWL,aAAa,CAAE,CAAAM,IAAA,CAAMC,IAAS,IAAAA,IAAA,CAAKH,EAAO,KAAAA,EAAE,CAAG,EAAA;IAC5D;EACF;EAIAC,UAAA,CAAWL,aAAa,CAAE,CAAAQ,IAAA,CAAK;IAAEJ,EAAA;IAAID;GAAK,CAAA;EAGtC,IAAA,OAAOM,aAAa,WAAa,EAAA;IACnC;EACF;EAGM,MAAAC,cAAA,GAAiBD,SAASE,IAAK,CAAAC,gBAAA,CACnC,aAAaX,gBAAgB,GAAA,CAC/B;EACA,MAAMY,uBAAuBH,cAAe,CAAAI,MAAA;EAG5C,KAAA,IAASC,CAAI,GAAA,CAAA,EAAGA,CAAI,GAAAF,oBAAA,EAAsBE,CAAK,EAAA,EAAA;IACvCC,MAAAA,MAAAA,GAAQN,eAAeK,CAAC,CAAA;IAE9B,IAAI,CAAC,CAACC,MAAAA,IAASA,OAAMC,YAAa,CAAAhB,gBAAgB,MAAMG,EAAI,EAAA;MAC1D;IACF;EACF;EAGM,MAAAY,KAAA,GAAQP,QAAS,CAAAS,aAAA,CAAc,OAAO,CAAA;EAEtCF,KAAA,CAAAG,YAAA,CAAalB,kBAAkBG,EAAE,CAAA;EAevCY,KAAA,CAAMI,SAAY,GAAAjB,GAAA;EAGlB,IAAIU,oBAAsB,EAAA;IAClB,MAAAQ,SAAA,GAAYX,cAAe,CAAAG,oBAAA,GAAuB,CAAC,CAAA;IAEzD,IAAIQ,SAAW,EAAA;MACbA,SAAA,CAAUC,MAAMN,KAAK,CAAA;MACrB;IACF;EACF;EAGSP,QAAA,CAAAE,IAAA,CAAKY,YAAYP,KAAK,CAAA;AACjC;"}
@@ -29,7 +29,7 @@ function styleInject(css, id) {
29
29
  }
30
30
  const style = document.createElement("style");
31
31
  style.setAttribute(SSR_NODE_DATA_ID, id);
32
- style.textContent = css;
32
+ style.innerHTML = css;
33
33
  if (injectedStylesLength) {
34
34
  const lastStyle = injectedStyles[injectedStylesLength - 1];
35
35
  if (lastStyle) {
@@ -1 +1 @@
1
- {"version":3,"file":"style-inject.mjs","sources":["../../../../src/utils/nextjs/ssr/style-inject.ts"],"sourcesContent":["// #############################################################################\n// ! This file can't contain any imports, as it's copy-pasted into the bundled code!\n// #############################################################################\n\n/**\n * Name for the global object that will be used to store the SSR modules when injecting them into the page.\n */\nconst SSR_INJECT_ID = \"__styleInject_SSR_MODULES\";\n\n/**\n * Data attribute that indicates that given `<style>` node was injected by us\n */\nconst SSR_NODE_DATA_ID = \"data-uic-style\";\n\ntype InjectedModule = {\n /**\n * The ID of the style tag (typically some stable unique hash derived CSS content)\n */\n id: string;\n /**\n * The CSS string to inject\n */\n css: string;\n};\n\n// #############################################################################\n\n/**\n * Util to inject styles into the DOM, this is a patched version of the original styled-inject.\n *\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/rollup.config.js\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/scripts/rollup-plugin-local-style-inject.js\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/src/docs/helpers/style-inject.es.js\n * - Original styled-inject: https://github.com/egoist/style-inject/blob/master/src/index.js\n * - SSR Patch: https://github.com/egoist/style-inject/pull/28/files\n */\nexport default function styleInject(\n css: InjectedModule[\"css\"],\n id: InjectedModule[\"id\"],\n) {\n // Nothing to inject\n if (!css) {\n return;\n }\n\n // Patch missing global variable\n // @ts-expect-error Dangerously accessing globalThis\n if (!globalThis[SSR_INJECT_ID]) {\n // @ts-expect-error Dangerously accessing globalThis\n globalThis[SSR_INJECT_ID] = [];\n }\n\n // Exit early if the style is already injected/registered\n // @ts-expect-error Dangerously accessing globalThis\n if (globalThis[SSR_INJECT_ID].find((item) => item.id === id)) {\n return;\n }\n\n // Register the injected module\n // @ts-expect-error Dangerously accessing globalThis\n globalThis[SSR_INJECT_ID].push({ id, css });\n\n // Exit early as we can't inject styles on the server, registering is enough\n if (typeof document === \"undefined\") {\n return;\n }\n\n // Try to find either bookmark `<noscript/>` or last injected `<style/>`\n const injectedStyles = document.head.querySelectorAll(\n `:scope > [${SSR_NODE_DATA_ID}]`,\n );\n const injectedStylesLength = injectedStyles.length;\n\n // Check if the style is already injected and return early if needed\n for (let i = 0; i < injectedStylesLength; i++) {\n const style = injectedStyles[i];\n\n if (!!style && style.getAttribute(SSR_NODE_DATA_ID) === id) {\n return;\n }\n }\n\n // Create a style tag\n const style = document.createElement(\"style\");\n // Set a data element so for next DOM inject we can append to the last element we appended\n style.setAttribute(SSR_NODE_DATA_ID, id);\n // Set CSS content via a safe text escaped approach\n style.textContent = css;\n\n // Attempt to append the style (to preserve overriding logic with styled-components)\n if (injectedStylesLength) {\n const lastStyle = injectedStyles[injectedStylesLength - 1];\n\n if (lastStyle) {\n lastStyle.after(style);\n return;\n }\n }\n\n // If that didn't work append to end of head (should have been handled by the bookmark, but just in case)\n document.head.appendChild(style);\n}\n"],"names":["SSR_INJECT_ID","SSR_NODE_DATA_ID","styleInject","css","id","globalThis","find","item","push","document","injectedStyles","head","querySelectorAll","injectedStylesLength","length","i","style","getAttribute","createElement","setAttribute","textContent","lastStyle","after","appendChild"],"mappings":";;AAOA,MAAMA,aAAgB,GAAA,2BAAA;AAKtB,MAAMC,gBAAmB,GAAA,gBAAA;AAwBD,SAAAC,WAAAA,CACtBC,KACAC,EACA,EAAA;EAEA,IAAI,CAACD,GAAK,EAAA;IACR;EACF;EAII,IAAA,CAACE,UAAW,CAAAL,aAAa,CAAG,EAAA;IAEnBK,UAAA,CAAAL,aAAa,IAAI,EAAC;EAC/B;EAII,IAAAK,UAAA,CAAWL,aAAa,CAAE,CAAAM,IAAA,CAAMC,IAAS,IAAAA,IAAA,CAAKH,EAAO,KAAAA,EAAE,CAAG,EAAA;IAC5D;EACF;EAIAC,UAAA,CAAWL,aAAa,CAAE,CAAAQ,IAAA,CAAK;IAAEJ,EAAA;IAAID;GAAK,CAAA;EAGtC,IAAA,OAAOM,aAAa,WAAa,EAAA;IACnC;EACF;EAGM,MAAAC,cAAA,GAAiBD,SAASE,IAAK,CAAAC,gBAAA,CACnC,aAAaX,gBAAgB,GAAA,CAC/B;EACA,MAAMY,uBAAuBH,cAAe,CAAAI,MAAA;EAG5C,KAAA,IAASC,CAAI,GAAA,CAAA,EAAGA,CAAI,GAAAF,oBAAA,EAAsBE,CAAK,EAAA,EAAA;IACvCC,MAAAA,MAAAA,GAAQN,eAAeK,CAAC,CAAA;IAE9B,IAAI,CAAC,CAACC,MAAAA,IAASA,OAAMC,YAAa,CAAAhB,gBAAgB,MAAMG,EAAI,EAAA;MAC1D;IACF;EACF;EAGM,MAAAY,KAAA,GAAQP,QAAS,CAAAS,aAAA,CAAc,OAAO,CAAA;EAEtCF,KAAA,CAAAG,YAAA,CAAalB,kBAAkBG,EAAE,CAAA;EAEvCY,KAAA,CAAMI,WAAc,GAAAjB,GAAA;EAGpB,IAAIU,oBAAsB,EAAA;IAClB,MAAAQ,SAAA,GAAYX,cAAe,CAAAG,oBAAA,GAAuB,CAAC,CAAA;IAEzD,IAAIQ,SAAW,EAAA;MACbA,SAAA,CAAUC,MAAMN,KAAK,CAAA;MACrB;IACF;EACF;EAGSP,QAAA,CAAAE,IAAA,CAAKY,YAAYP,KAAK,CAAA;AACjC;"}
1
+ {"version":3,"file":"style-inject.mjs","sources":["../../../../src/utils/nextjs/ssr/style-inject.ts"],"sourcesContent":["// #############################################################################\n// ! This file can't contain any imports, as it's copy-pasted into the bundled code!\n// #############################################################################\n\n/**\n * Name for the global object that will be used to store the SSR modules when injecting them into the page.\n */\nconst SSR_INJECT_ID = \"__styleInject_SSR_MODULES\";\n\n/**\n * Data attribute that indicates that given `<style>` node was injected by us\n */\nconst SSR_NODE_DATA_ID = \"data-uic-style\";\n\ntype InjectedModule = {\n /**\n * The ID of the style tag (typically some stable unique hash derived CSS content)\n */\n id: string;\n /**\n * The CSS string to inject\n */\n css: string;\n};\n\n// #############################################################################\n\n/**\n * Util to inject styles into the DOM, this is a patched version of the original styled-inject.\n *\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/rollup.config.js\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/scripts/rollup-plugin-local-style-inject.js\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/src/docs/helpers/style-inject.es.js\n * - Original styled-inject: https://github.com/egoist/style-inject/blob/master/src/index.js\n * - SSR Patch: https://github.com/egoist/style-inject/pull/28/files\n */\nexport default function styleInject(\n css: InjectedModule[\"css\"],\n id: InjectedModule[\"id\"],\n) {\n // Nothing to inject\n if (!css) {\n return;\n }\n\n // Patch missing global variable\n // @ts-expect-error Dangerously accessing globalThis\n if (!globalThis[SSR_INJECT_ID]) {\n // @ts-expect-error Dangerously accessing globalThis\n globalThis[SSR_INJECT_ID] = [];\n }\n\n // Exit early if the style is already injected/registered\n // @ts-expect-error Dangerously accessing globalThis\n if (globalThis[SSR_INJECT_ID].find((item) => item.id === id)) {\n return;\n }\n\n // Register the injected module\n // @ts-expect-error Dangerously accessing globalThis\n globalThis[SSR_INJECT_ID].push({ id, css });\n\n // Exit early as we can't inject styles on the server, registering is enough\n if (typeof document === \"undefined\") {\n return;\n }\n\n // Try to find either bookmark `<noscript/>` or last injected `<style/>`\n const injectedStyles = document.head.querySelectorAll(\n `:scope > [${SSR_NODE_DATA_ID}]`,\n );\n const injectedStylesLength = injectedStyles.length;\n\n // Check if the style is already injected and return early if needed\n for (let i = 0; i < injectedStylesLength; i++) {\n const style = injectedStyles[i];\n\n if (!!style && style.getAttribute(SSR_NODE_DATA_ID) === id) {\n return;\n }\n }\n\n // Create a style tag\n const style = document.createElement(\"style\");\n // Set a data element so for next DOM inject we can append to the last element we appended\n style.setAttribute(SSR_NODE_DATA_ID, id);\n /**\n * Experimented with various ways of injecting the CSS as many approaches escapes certain CSS. E.g. `content: \"\";` -->\n * `content:&qout;&qout;;;` which would partially break the given style tag and cause random layout issues as partial\n * styles would be applied.\n *\n * - Didn't work as escaped the CSS content:\n * - `style.textContent = css;`\n * - `style.innerText = css;`\n * Old way:\n * - `style.styleSheet.cssText = css`\n * Worked:\n * - `style.innerHTML = css;\n * TODO: maybe in 2025 look at `CSSStyleSheet` constructor and `insertRule` method - https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet\n */\n style.innerHTML = css;\n\n // Attempt to append the style (to preserve overriding logic with styled-components)\n if (injectedStylesLength) {\n const lastStyle = injectedStyles[injectedStylesLength - 1];\n\n if (lastStyle) {\n lastStyle.after(style);\n return;\n }\n }\n\n // If that didn't work append to end of head (should have been handled by the bookmark, but just in case)\n document.head.appendChild(style);\n}\n"],"names":["SSR_INJECT_ID","SSR_NODE_DATA_ID","styleInject","css","id","globalThis","find","item","push","document","injectedStyles","head","querySelectorAll","injectedStylesLength","length","i","style","getAttribute","createElement","setAttribute","innerHTML","lastStyle","after","appendChild"],"mappings":";;AAOA,MAAMA,aAAgB,GAAA,2BAAA;AAKtB,MAAMC,gBAAmB,GAAA,gBAAA;AAwBD,SAAAC,WAAAA,CACtBC,KACAC,EACA,EAAA;EAEA,IAAI,CAACD,GAAK,EAAA;IACR;EACF;EAII,IAAA,CAACE,UAAW,CAAAL,aAAa,CAAG,EAAA;IAEnBK,UAAA,CAAAL,aAAa,IAAI,EAAC;EAC/B;EAII,IAAAK,UAAA,CAAWL,aAAa,CAAE,CAAAM,IAAA,CAAMC,IAAS,IAAAA,IAAA,CAAKH,EAAO,KAAAA,EAAE,CAAG,EAAA;IAC5D;EACF;EAIAC,UAAA,CAAWL,aAAa,CAAE,CAAAQ,IAAA,CAAK;IAAEJ,EAAA;IAAID;GAAK,CAAA;EAGtC,IAAA,OAAOM,aAAa,WAAa,EAAA;IACnC;EACF;EAGM,MAAAC,cAAA,GAAiBD,SAASE,IAAK,CAAAC,gBAAA,CACnC,aAAaX,gBAAgB,GAAA,CAC/B;EACA,MAAMY,uBAAuBH,cAAe,CAAAI,MAAA;EAG5C,KAAA,IAASC,CAAI,GAAA,CAAA,EAAGA,CAAI,GAAAF,oBAAA,EAAsBE,CAAK,EAAA,EAAA;IACvCC,MAAAA,MAAAA,GAAQN,eAAeK,CAAC,CAAA;IAE9B,IAAI,CAAC,CAACC,MAAAA,IAASA,OAAMC,YAAa,CAAAhB,gBAAgB,MAAMG,EAAI,EAAA;MAC1D;IACF;EACF;EAGM,MAAAY,KAAA,GAAQP,QAAS,CAAAS,aAAA,CAAc,OAAO,CAAA;EAEtCF,KAAA,CAAAG,YAAA,CAAalB,kBAAkBG,EAAE,CAAA;EAevCY,KAAA,CAAMI,SAAY,GAAAjB,GAAA;EAGlB,IAAIU,oBAAsB,EAAA;IAClB,MAAAQ,SAAA,GAAYX,cAAe,CAAAG,oBAAA,GAAuB,CAAC,CAAA;IAEzD,IAAIQ,SAAW,EAAA;MACbA,SAAA,CAAUC,MAAMN,KAAK,CAAA;MACrB;IACF;EACF;EAGSP,QAAA,CAAAE,IAAA,CAAKY,YAAYP,KAAK,CAAA;AACjC;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubnt/store.core",
3
- "version": "9.37.0-beta.7",
3
+ "version": "9.37.0-beta.8",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "scripts": {