@ubnt/store.core 9.37.0-beta.5 → 9.37.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/assets/close2.svg +3 -2
- package/lib/assets/close3.svg +2 -3
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +6 -6
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/aiLpr.js +1 -1
- package/lib/components/ModelCompareV3/data/products/aiLpr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aiLpr.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/aiLpr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/utils/nextjs/ssr/style-inject.js +9 -3
- package/lib/utils/nextjs/ssr/style-inject.js.map +1 -1
- package/lib/utils/nextjs/ssr/style-inject.mjs +9 -3
- package/lib/utils/nextjs/ssr/style-inject.mjs.map +1 -1
- package/lib/utils/nextjs/ssr/transform-css-module.d.ts +0 -1
- package/lib/utils/nextjs/ssr/transform-css-module.js.map +1 -1
- package/lib/utils/nextjs/ssr/transform-css-module.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
## Releases
|
|
8
8
|
|
|
9
|
+
### 9.37.0-beta.7
|
|
10
|
+
|
|
11
|
+
- [Feat] [MIC-474](https://ubiquiti.atlassian.net/browse/MIC-474) Update compare data
|
|
12
|
+
|
|
13
|
+
### 9.37.0-beta.6
|
|
14
|
+
|
|
15
|
+
- [fix] Fix duplicate style injection
|
|
16
|
+
|
|
9
17
|
### 9.37.0-beta.5
|
|
10
18
|
|
|
11
19
|
- [feat] Improve SSR transformer to deduplicate variables
|
package/lib/assets/close2.svg
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
|
|
3
4
|
</svg>
|
package/lib/assets/close3.svg
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.7175 18.6475C5.4275 18.9375 5.4275 19.4175 5.7175 19.7075C6.0075 19.9975 6.4875 19.9975 6.7775 19.7075L12.9675 13.5175L19.1575 19.7075C19.4475 19.9975 19.9275 19.9975 20.2175 19.7075C20.5075 19.4175 20.5075 18.9375 20.2175 18.6475L14.0275 12.4675L20.2175 6.2775C20.5075 5.9875 20.5075 5.5075 20.2175 5.2175C19.9275 4.9275 19.4475 4.9275 19.1575 5.2175L12.9675 11.4075L6.7775 5.2175C6.4875 4.9275 6.0075 4.9275 5.7175 5.2175C5.4275 5.5075 5.4275 5.9875 5.7175 6.2775L11.9075 12.4675L5.7175 18.6475Z" fill="#36373C"/>
|
|
4
3
|
</svg>
|
package/lib/assets/minus4.svg
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
1
|
+
<svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
|
|
3
|
+
<g clip-path="url(#clip0_426_15898)">
|
|
4
|
+
<path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
|
|
5
5
|
</g>
|
|
6
6
|
</mask>
|
|
7
|
-
<g mask="url(#
|
|
8
|
-
<rect x="0.
|
|
7
|
+
<g mask="url(#mask0_426_15898)">
|
|
8
|
+
<rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
|
|
9
9
|
</g>
|
|
10
10
|
<defs>
|
|
11
|
-
<clipPath id="
|
|
12
|
-
<rect width="
|
|
11
|
+
<clipPath id="clip0_426_15898">
|
|
12
|
+
<rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
|
|
13
13
|
</clipPath>
|
|
14
14
|
</defs>
|
|
15
15
|
</svg>
|
package/lib/assets/minus5.svg
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
1
|
+
<svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
|
|
3
|
+
<g clip-path="url(#clip0_658_406)">
|
|
4
|
+
<path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
|
|
5
5
|
</g>
|
|
6
6
|
</mask>
|
|
7
|
-
<g mask="url(#
|
|
8
|
-
<rect x="0.
|
|
7
|
+
<g mask="url(#mask0_658_406)">
|
|
8
|
+
<rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
|
|
9
9
|
</g>
|
|
10
10
|
<defs>
|
|
11
|
-
<clipPath id="
|
|
12
|
-
<rect width="
|
|
11
|
+
<clipPath id="clip0_658_406">
|
|
12
|
+
<rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
|
|
13
13
|
</clipPath>
|
|
14
14
|
</defs>
|
|
15
15
|
</svg>
|
package/lib/assets/pause.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<rect x="
|
|
3
|
-
<rect x="
|
|
1
|
+
<svg width="13" height="17" viewBox="0 0 13 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="0.232422" width="4" height="17" rx="2" fill="#393A3F"/>
|
|
3
|
+
<rect x="8.23242" width="4" height="17" rx="2" fill="#393A3F"/>
|
|
4
4
|
</svg>
|
package/lib/assets/pause2.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<rect x="
|
|
3
|
-
<rect x="
|
|
1
|
+
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="6" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
|
|
3
|
+
<rect x="12" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
|
|
4
4
|
</svg>
|
package/lib/assets/plus5.svg
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
5
|
-
<path d="
|
|
1
|
+
<svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
|
|
3
|
+
<g clip-path="url(#clip0_426_15903)">
|
|
4
|
+
<path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
|
|
5
|
+
<path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
|
|
6
6
|
</g>
|
|
7
7
|
</mask>
|
|
8
|
-
<g mask="url(#
|
|
9
|
-
<rect x="0.
|
|
8
|
+
<g mask="url(#mask0_426_15903)">
|
|
9
|
+
<rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
|
|
10
10
|
</g>
|
|
11
11
|
<defs>
|
|
12
|
-
<clipPath id="
|
|
13
|
-
<rect width="
|
|
12
|
+
<clipPath id="clip0_426_15903">
|
|
13
|
+
<rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
|
|
14
14
|
</clipPath>
|
|
15
15
|
</defs>
|
|
16
16
|
</svg>
|
package/lib/assets/plus6.svg
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
5
|
-
<path d="
|
|
1
|
+
<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
|
|
3
|
+
<g clip-path="url(#clip0_658_411)">
|
|
4
|
+
<path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
|
|
5
|
+
<path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
|
|
6
6
|
</g>
|
|
7
7
|
</mask>
|
|
8
|
-
<g mask="url(#
|
|
9
|
-
<rect x="0.
|
|
8
|
+
<g mask="url(#mask0_658_411)">
|
|
9
|
+
<rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
|
|
10
10
|
</g>
|
|
11
11
|
<defs>
|
|
12
|
-
<clipPath id="
|
|
13
|
-
<rect width="
|
|
12
|
+
<clipPath id="clip0_658_411">
|
|
13
|
+
<rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
|
|
14
14
|
</clipPath>
|
|
15
15
|
</defs>
|
|
16
16
|
</svg>
|
package/lib/assets/ucgMax.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgMax2.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgUltra.jpg
CHANGED
|
Binary file
|
package/lib/assets/ucgUltra2.jpg
CHANGED
|
Binary file
|
|
@@ -14,7 +14,7 @@ var FeaturesSection_styles = require('./FeaturesSection.styles.js');
|
|
|
14
14
|
var useLockBodyScrollCustom = require('../../hooks/useLockBodyScrollCustom.js');
|
|
15
15
|
var Container = require('../Container/Container.js');
|
|
16
16
|
var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
|
|
17
|
-
var CloseSvg = require("../../assets/
|
|
17
|
+
var CloseSvg = require("../../assets/close2.svg");
|
|
18
18
|
function _interopDefault(e) {
|
|
19
19
|
return e && e.__esModule ? e : {
|
|
20
20
|
default: e
|
|
@@ -12,7 +12,7 @@ import { WrapOuter, OverlayWrap, OverlayClose, Wrap, MetaWrap, SubHeading, Headi
|
|
|
12
12
|
import { useLockBodyScrollCustom } from '../../hooks/useLockBodyScrollCustom.mjs';
|
|
13
13
|
import { Container } from '../Container/Container.mjs';
|
|
14
14
|
import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
15
|
-
import CloseSvg__default from "../../assets/
|
|
15
|
+
import CloseSvg__default from "../../assets/close2.svg";
|
|
16
16
|
"use strict";
|
|
17
17
|
const FEATURES_DEFAULT_PLAYBACK = 500;
|
|
18
18
|
const parseTime = time => parseFloat(time.toFixed(3));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/close2.svg";
|
|
2
|
+
export { default } from "../../../assets/close2.svg";
|
|
3
3
|
//# sourceMappingURL=close.svg.mjs.map
|
|
@@ -11,7 +11,7 @@ require('./assets/play.svg.js');
|
|
|
11
11
|
var MicrositeVideoSlideshow_styles = require('./MicrositeVideoSlideshow.styles.js');
|
|
12
12
|
var MicrositeSectionWrap = require('../MicrositeSectionWrap/MicrositeSectionWrap.js');
|
|
13
13
|
var PlayIcon = require("../../assets/play.svg");
|
|
14
|
-
var PauseIcon = require("../../assets/
|
|
14
|
+
var PauseIcon = require("../../assets/pause.svg");
|
|
15
15
|
var ActiveIconBox = require("../../assets/active-icon-box.svg");
|
|
16
16
|
function _interopDefault(e) {
|
|
17
17
|
return e && e.__esModule ? e : {
|
|
@@ -9,7 +9,7 @@ import './assets/play.svg.mjs';
|
|
|
9
9
|
import { VideoBlock, Video, VideoControls, VideoInnerWrap, ProgressCircle, PlayIcon, PauseIcon, SlideRow, Slide, FeatureIconWrap, FeatureIconActiveBackground, FeatureIcon, FeatureTitle, MicrositeBuyButton } from './MicrositeVideoSlideshow.styles.mjs';
|
|
10
10
|
import { MicrositeSectionWrap } from '../MicrositeSectionWrap/MicrositeSectionWrap.mjs';
|
|
11
11
|
import PlayIcon__default from "../../assets/play.svg";
|
|
12
|
-
import PauseIcon__default from "../../assets/
|
|
12
|
+
import PauseIcon__default from "../../assets/pause.svg";
|
|
13
13
|
import ActiveIconBox__default from "../../assets/active-icon-box.svg";
|
|
14
14
|
"use strict";
|
|
15
15
|
const MicrositeVideoSlideshow = ({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/pause.svg";
|
|
2
|
+
export { default } from "../../../assets/pause.svg";
|
|
3
3
|
//# sourceMappingURL=pause.svg.mjs.map
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
6
|
+
var _externalAssets_DfjB$I0W = require("../../../../../assets/ucgMax.jpg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var _externalAssets_DfjB$I0W__default = /*#__PURE__*/_interopDefault(_externalAssets_DfjB$I0W);
|
|
13
13
|
Object.defineProperty(exports, "default", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function () {
|
|
16
|
-
return
|
|
16
|
+
return _externalAssets_DfjB$I0W__default["default"];
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
Object.keys(
|
|
19
|
+
Object.keys(_externalAssets_DfjB$I0W).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
|
|
23
|
+
return _externalAssets_DfjB$I0W[k];
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../assets/
|
|
1
|
+
export * from "../../../../../assets/ucgMax.jpg";
|
|
2
|
+
export { default } from "../../../../../assets/ucgMax.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
|
|
6
|
+
var _externalAssets_BGAVPUHK = require("../../../../../assets/ucgUltra.jpg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var _externalAssets_BGAVPUHK__default = /*#__PURE__*/_interopDefault(_externalAssets_BGAVPUHK);
|
|
13
13
|
Object.defineProperty(exports, "default", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function () {
|
|
16
|
-
return
|
|
16
|
+
return _externalAssets_BGAVPUHK__default["default"];
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
Object.keys(
|
|
19
|
+
Object.keys(_externalAssets_BGAVPUHK).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
|
|
23
|
+
return _externalAssets_BGAVPUHK[k];
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../assets/
|
|
1
|
+
export * from "../../../../../assets/ucgUltra.jpg";
|
|
2
|
+
export { default } from "../../../../../assets/ucgUltra.jpg";
|
|
3
3
|
//# sourceMappingURL=ucgUltra.jpg.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../assets/
|
|
2
|
-
export { default } from "../../../../assets/
|
|
1
|
+
export * from "../../../../assets/ucgMax2.jpg";
|
|
2
|
+
export { default } from "../../../../assets/ucgMax2.jpg";
|
|
3
3
|
//# sourceMappingURL=ucgMax.jpg.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../assets/
|
|
2
|
-
export { default } from "../../../../assets/
|
|
1
|
+
export * from "../../../../assets/ucgUltra2.jpg";
|
|
2
|
+
export { default } from "../../../../assets/ucgUltra2.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
|
|
30
|
-
var
|
|
29
|
+
var _externalAssets_DfjB$I0W = require("../../../assets/ucgMax.jpg");
|
|
30
|
+
var _externalAssets_BGAVPUHK = require("../../../assets/ucgUltra.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
|
|
44
|
-
var
|
|
43
|
+
var _externalAssets_DfjB$I0W__default = /*#__PURE__*/_interopDefault(_externalAssets_DfjB$I0W);
|
|
44
|
+
var _externalAssets_BGAVPUHK__default = /*#__PURE__*/_interopDefault(_externalAssets_BGAVPUHK);
|
|
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(
|
|
78
|
+
image: getImage(_externalAssets_DfjB$I0W__default["default"]),
|
|
79
79
|
notes: ["ucgMax.note.accessory"]
|
|
80
80
|
};
|
|
81
81
|
const ucgUltra = {
|
|
82
82
|
...ucgUltra$1.ucgUltra,
|
|
83
|
-
image: getImage(
|
|
83
|
+
image: getImage(_externalAssets_BGAVPUHK__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
|
|
28
|
-
import
|
|
27
|
+
import _externalAssets_DfjB$I0W__default from "../../../assets/ucgMax.jpg";
|
|
28
|
+
import _externalAssets_BGAVPUHK__default from "../../../assets/ucgUltra.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(
|
|
63
|
+
image: getImage(_externalAssets_DfjB$I0W__default),
|
|
64
64
|
notes: ["ucgMax.note.accessory"]
|
|
65
65
|
};
|
|
66
66
|
const ucgUltra = {
|
|
67
67
|
...ucgUltra$1,
|
|
68
|
-
image: getImage(
|
|
68
|
+
image: getImage(_externalAssets_BGAVPUHK__default)
|
|
69
69
|
};
|
|
70
70
|
const udr = {
|
|
71
71
|
...udr$1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiLpr.js","sources":["../../../../../src/components/ModelCompareV3/data/products/aiLpr.tsx"],"sourcesContent":["import image from \"../../assets/Bullet/ai-lpr.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport { bullet } from \"../product-groups/Bullet\";\nimport {\n cameraAudio,\n cameraResolution,\n deployment,\n enhancedDetections,\n fieldOfView,\n licensePlateRecognition,\n nightVision,\n opticalZoom,\n outdoorReady,\n smartDetections,\n} from \"../properties\";\nimport { tamperResistance } from \"../properties/tamperResistance\";\n\nexport const aiLpr: Product = {\n id: \"aiLpr\",\n title: \"aiLpr.title\",\n description: \"aiLpr.description\",\n image: {\n src: image,\n width: 201,\n height: 182,\n },\n isNew: true,\n isComingSoon: true,\n productGroup: bullet,\n propertyValues: [\n {\n propertyId: cameraResolution.id,\n value: { type: \"string\", value: \"4K\" },\n },\n {\n propertyId: fieldOfView.id,\n value: { type: \"translation\", value: \"aiLpr.fieldOfView\" },\n },\n {\n propertyId: nightVision.id,\n value: { type: \"translation\", value: \"aiLpr.nightVision\" },\n },\n {\n propertyId: opticalZoom.id,\n value: { type: \"translation\", value: \"aiLpr.opticalZoom\" },\n },\n {\n propertyId: smartDetections.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: enhancedDetections.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: licensePlateRecognition.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: cameraAudio.id,\n value: {\n type: \"translation\",\n value: \"aiLpr.cameraAudio\",\n },\n },\n {\n propertyId: outdoorReady.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: tamperResistance.id,\n value: {\n type: \"string\",\n value: \"IK04\",\n },\n },\n {\n propertyId: deployment.id,\n value: {\n type: \"string\",\n value: \"PoE
|
|
1
|
+
{"version":3,"file":"aiLpr.js","sources":["../../../../../src/components/ModelCompareV3/data/products/aiLpr.tsx"],"sourcesContent":["import image from \"../../assets/Bullet/ai-lpr.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport { bullet } from \"../product-groups/Bullet\";\nimport {\n cameraAudio,\n cameraResolution,\n deployment,\n enhancedDetections,\n fieldOfView,\n licensePlateRecognition,\n nightVision,\n opticalZoom,\n outdoorReady,\n smartDetections,\n} from \"../properties\";\nimport { tamperResistance } from \"../properties/tamperResistance\";\n\nexport const aiLpr: Product = {\n id: \"aiLpr\",\n title: \"aiLpr.title\",\n description: \"aiLpr.description\",\n image: {\n src: image,\n width: 201,\n height: 182,\n },\n isNew: true,\n isComingSoon: true,\n productGroup: bullet,\n propertyValues: [\n {\n propertyId: cameraResolution.id,\n value: { type: \"string\", value: \"4K\" },\n },\n {\n propertyId: fieldOfView.id,\n value: { type: \"translation\", value: \"aiLpr.fieldOfView\" },\n },\n {\n propertyId: nightVision.id,\n value: { type: \"translation\", value: \"aiLpr.nightVision\" },\n },\n {\n propertyId: opticalZoom.id,\n value: { type: \"translation\", value: \"aiLpr.opticalZoom\" },\n },\n {\n propertyId: smartDetections.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: enhancedDetections.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: licensePlateRecognition.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: cameraAudio.id,\n value: {\n type: \"translation\",\n value: \"aiLpr.cameraAudio\",\n },\n },\n {\n propertyId: outdoorReady.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: tamperResistance.id,\n value: {\n type: \"string\",\n value: \"IK04\",\n },\n },\n {\n propertyId: deployment.id,\n value: {\n type: \"string\",\n value: \"PoE+\",\n },\n },\n ],\n};\n"],"names":["aiLpr","id","title","description","image","src","width","height","isNew","isComingSoon","productGroup","bullet","propertyValues","propertyId","cameraResolution","value","type","fieldOfView","nightVision","opticalZoom","smartDetections","enhancedDetections","licensePlateRecognition","cameraAudio","outdoorReady","tamperResistance","deployment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAiBO,MAAMA,KAAiB,GAAA;EAC5BC,EAAI,EAAA,OAAA;EACJC,KAAO,EAAA,aAAA;EACPC,WAAa,EAAA,mBAAA;EACbC,KAAO,EAAA;IACLC,GAAK,EAAAD,cAAA,CAAA,SAAA,CAAA;IACLE,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,KAAO,EAAA,IAAA;EACPC,YAAc,EAAA,IAAA;EACdC,YAAc,EAAAC,MAAA,CAAAA,MAAA;EACdC,cAAgB,EAAA,CACd;IACEC,YAAYC,gBAAiB,CAAAA,gBAAA,CAAAb,EAAA;IAC7Bc,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAK;EACvC,CAAA,EACA;IACEF,YAAYI,WAAY,CAAAA,WAAA,CAAAhB,EAAA;IACxBc,KAAO,EAAA;MAAEC,IAAM,EAAA,aAAA;MAAeD,OAAO;IAAoB;EAC3D,CAAA,EACA;IACEF,YAAYK,WAAY,CAAAA,WAAA,CAAAjB,EAAA;IACxBc,KAAO,EAAA;MAAEC,IAAM,EAAA,aAAA;MAAeD,OAAO;IAAoB;EAC3D,CAAA,EACA;IACEF,YAAYM,WAAY,CAAAA,WAAA,CAAAlB,EAAA;IACxBc,KAAO,EAAA;MAAEC,IAAM,EAAA,aAAA;MAAeD,OAAO;IAAoB;EAC3D,CAAA,EACA;IACEF,YAAYO,eAAgB,CAAAA,eAAA,CAAAnB,EAAA;IAC5Bc,KAAO,EAAA;MACLC,IAAM,EAAA,SAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYQ,iBAAmB,CAAAA,kBAAA,CAAApB,EAAA;IAC/Bc,KAAO,EAAA;MACLC,IAAM,EAAA,SAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYS,uBAAwB,CAAAA,uBAAA,CAAArB,EAAA;IACpCc,KAAO,EAAA;MACLC,IAAM,EAAA,SAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYU,WAAY,CAAAA,WAAA,CAAAtB,EAAA;IACxBc,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYW,YAAa,CAAAA,YAAA,CAAAvB,EAAA;IACzBc,KAAO,EAAA;MACLC,IAAM,EAAA,SAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYY,gBAAiB,CAAAA,gBAAA,CAAAxB,EAAA;IAC7Bc,KAAO,EAAA;MACLC,IAAM,EAAA,QAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYa,UAAW,CAAAA,UAAA,CAAAzB,EAAA;IACvBc,KAAO,EAAA;MACLC,IAAM,EAAA,QAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA;AAEJ,CAAA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiLpr.mjs","sources":["../../../../../src/components/ModelCompareV3/data/products/aiLpr.tsx"],"sourcesContent":["import image from \"../../assets/Bullet/ai-lpr.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport { bullet } from \"../product-groups/Bullet\";\nimport {\n cameraAudio,\n cameraResolution,\n deployment,\n enhancedDetections,\n fieldOfView,\n licensePlateRecognition,\n nightVision,\n opticalZoom,\n outdoorReady,\n smartDetections,\n} from \"../properties\";\nimport { tamperResistance } from \"../properties/tamperResistance\";\n\nexport const aiLpr: Product = {\n id: \"aiLpr\",\n title: \"aiLpr.title\",\n description: \"aiLpr.description\",\n image: {\n src: image,\n width: 201,\n height: 182,\n },\n isNew: true,\n isComingSoon: true,\n productGroup: bullet,\n propertyValues: [\n {\n propertyId: cameraResolution.id,\n value: { type: \"string\", value: \"4K\" },\n },\n {\n propertyId: fieldOfView.id,\n value: { type: \"translation\", value: \"aiLpr.fieldOfView\" },\n },\n {\n propertyId: nightVision.id,\n value: { type: \"translation\", value: \"aiLpr.nightVision\" },\n },\n {\n propertyId: opticalZoom.id,\n value: { type: \"translation\", value: \"aiLpr.opticalZoom\" },\n },\n {\n propertyId: smartDetections.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: enhancedDetections.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: licensePlateRecognition.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: cameraAudio.id,\n value: {\n type: \"translation\",\n value: \"aiLpr.cameraAudio\",\n },\n },\n {\n propertyId: outdoorReady.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: tamperResistance.id,\n value: {\n type: \"string\",\n value: \"IK04\",\n },\n },\n {\n propertyId: deployment.id,\n value: {\n type: \"string\",\n value: \"PoE
|
|
1
|
+
{"version":3,"file":"aiLpr.mjs","sources":["../../../../../src/components/ModelCompareV3/data/products/aiLpr.tsx"],"sourcesContent":["import image from \"../../assets/Bullet/ai-lpr.jpg\";\nimport type { Product } from \"../../ModelCompareV3.types\";\nimport { bullet } from \"../product-groups/Bullet\";\nimport {\n cameraAudio,\n cameraResolution,\n deployment,\n enhancedDetections,\n fieldOfView,\n licensePlateRecognition,\n nightVision,\n opticalZoom,\n outdoorReady,\n smartDetections,\n} from \"../properties\";\nimport { tamperResistance } from \"../properties/tamperResistance\";\n\nexport const aiLpr: Product = {\n id: \"aiLpr\",\n title: \"aiLpr.title\",\n description: \"aiLpr.description\",\n image: {\n src: image,\n width: 201,\n height: 182,\n },\n isNew: true,\n isComingSoon: true,\n productGroup: bullet,\n propertyValues: [\n {\n propertyId: cameraResolution.id,\n value: { type: \"string\", value: \"4K\" },\n },\n {\n propertyId: fieldOfView.id,\n value: { type: \"translation\", value: \"aiLpr.fieldOfView\" },\n },\n {\n propertyId: nightVision.id,\n value: { type: \"translation\", value: \"aiLpr.nightVision\" },\n },\n {\n propertyId: opticalZoom.id,\n value: { type: \"translation\", value: \"aiLpr.opticalZoom\" },\n },\n {\n propertyId: smartDetections.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: enhancedDetections.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: licensePlateRecognition.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: cameraAudio.id,\n value: {\n type: \"translation\",\n value: \"aiLpr.cameraAudio\",\n },\n },\n {\n propertyId: outdoorReady.id,\n value: {\n type: \"boolean\",\n value: true,\n },\n },\n {\n propertyId: tamperResistance.id,\n value: {\n type: \"string\",\n value: \"IK04\",\n },\n },\n {\n propertyId: deployment.id,\n value: {\n type: \"string\",\n value: \"PoE+\",\n },\n },\n ],\n};\n"],"names":["aiLpr","id","title","description","image","src","width","height","isNew","isComingSoon","productGroup","bullet","propertyValues","propertyId","cameraResolution","value","type","fieldOfView","nightVision","opticalZoom","smartDetections","enhancedDetections","licensePlateRecognition","cameraAudio","outdoorReady","tamperResistance","deployment"],"mappings":";;;;;;;;;;;;;;;;AAiBO,MAAMA,KAAiB,GAAA;EAC5BC,EAAI,EAAA,OAAA;EACJC,KAAO,EAAA,aAAA;EACPC,WAAa,EAAA,mBAAA;EACbC,KAAO,EAAA;IACLC,GAAK,EAAAD,cAAA;IACLE,KAAO,EAAA,GAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,KAAO,EAAA,IAAA;EACPC,YAAc,EAAA,IAAA;EACdC,YAAc,EAAAC,MAAA;EACdC,cAAgB,EAAA,CACd;IACEC,YAAYC,gBAAiB,CAAAb,EAAA;IAC7Bc,KAAO,EAAA;MAAEC,IAAM,EAAA,QAAA;MAAUD,OAAO;IAAK;EACvC,CAAA,EACA;IACEF,YAAYI,WAAY,CAAAhB,EAAA;IACxBc,KAAO,EAAA;MAAEC,IAAM,EAAA,aAAA;MAAeD,OAAO;IAAoB;EAC3D,CAAA,EACA;IACEF,YAAYK,WAAY,CAAAjB,EAAA;IACxBc,KAAO,EAAA;MAAEC,IAAM,EAAA,aAAA;MAAeD,OAAO;IAAoB;EAC3D,CAAA,EACA;IACEF,YAAYM,WAAY,CAAAlB,EAAA;IACxBc,KAAO,EAAA;MAAEC,IAAM,EAAA,aAAA;MAAeD,OAAO;IAAoB;EAC3D,CAAA,EACA;IACEF,YAAYO,eAAgB,CAAAnB,EAAA;IAC5Bc,KAAO,EAAA;MACLC,IAAM,EAAA,SAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYQ,kBAAmB,CAAApB,EAAA;IAC/Bc,KAAO,EAAA;MACLC,IAAM,EAAA,SAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYS,uBAAwB,CAAArB,EAAA;IACpCc,KAAO,EAAA;MACLC,IAAM,EAAA,SAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYU,WAAY,CAAAtB,EAAA;IACxBc,KAAO,EAAA;MACLC,IAAM,EAAA,aAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYW,YAAa,CAAAvB,EAAA;IACzBc,KAAO,EAAA;MACLC,IAAM,EAAA,SAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYY,gBAAiB,CAAAxB,EAAA;IAC7Bc,KAAO,EAAA;MACLC,IAAM,EAAA,QAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA,EACA;IACEF,YAAYa,UAAW,CAAAzB,EAAA;IACvBc,KAAO,EAAA;MACLC,IAAM,EAAA,QAAA;MACND,KAAO,EAAA;IACT;EACF,CAAA;AAEJ,CAAA;"}
|
|
@@ -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/
|
|
12
|
+
var image = require("../../../../assets/ucgMax2.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/
|
|
10
|
+
import image__default from "../../../../assets/ucgMax2.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/
|
|
24
|
+
var image = require("../../../../assets/ucgUltra2.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/
|
|
22
|
+
import image__default from "../../../../assets/ucgUltra2.jpg";
|
|
23
23
|
import applications__default from "../../../../assets/wifi-device.svg";
|
|
24
24
|
import { nextAiInspection } from '../properties/nextAiInspection.mjs';
|
|
25
25
|
"use strict";
|
|
@@ -11,8 +11,8 @@ require('../assets/plus.svg.js');
|
|
|
11
11
|
var Layout_styles = require('./Layout.styles.js');
|
|
12
12
|
var CustomImage = require('../../../../../CustomImage/CustomImage.js');
|
|
13
13
|
var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
14
|
-
var MinusIcon = require("../../../../../../assets/
|
|
15
|
-
var PlusIcon = require("../../../../../../assets/
|
|
14
|
+
var MinusIcon = require("../../../../../../assets/minus5.svg");
|
|
15
|
+
var PlusIcon = require("../../../../../../assets/plus6.svg");
|
|
16
16
|
function _interopDefault(e) {
|
|
17
17
|
return e && e.__esModule ? e : {
|
|
18
18
|
default: e
|
|
@@ -9,8 +9,8 @@ import '../assets/plus.svg.mjs';
|
|
|
9
9
|
import { InputWrapper, Label, InputFlexWrapper } from './Layout.styles.mjs';
|
|
10
10
|
import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
|
|
11
11
|
import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
12
|
-
import MinusIcon__default from "../../../../../../assets/
|
|
13
|
-
import PlusIcon__default from "../../../../../../assets/
|
|
12
|
+
import MinusIcon__default from "../../../../../../assets/minus5.svg";
|
|
13
|
+
import PlusIcon__default from "../../../../../../assets/plus6.svg";
|
|
14
14
|
"use strict";
|
|
15
15
|
const CounterSection = ({
|
|
16
16
|
value,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var MinusIcon = require("../../../../../../assets/
|
|
6
|
+
var MinusIcon = require("../../../../../../assets/minus5.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/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/minus5.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/minus5.svg";
|
|
3
3
|
//# sourceMappingURL=minus.svg.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var PlusIcon = require("../../../../../../assets/
|
|
6
|
+
var PlusIcon = require("../../../../../../assets/plus6.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/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/plus6.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/plus6.svg";
|
|
3
3
|
//# sourceMappingURL=plus.svg.mjs.map
|
|
@@ -19,8 +19,8 @@ var ComputeResourceCalculator_types = require('../../../../ComputeResourceCalcul
|
|
|
19
19
|
var CustomImage = require('../../../../../CustomImage/CustomImage.js');
|
|
20
20
|
var SearchIcon = require("../../../../../../assets/search2.svg");
|
|
21
21
|
var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
22
|
-
var MinusIcon = require("../../../../../../assets/
|
|
23
|
-
var PlusIcon = require("../../../../../../assets/
|
|
22
|
+
var MinusIcon = require("../../../../../../assets/minus4.svg");
|
|
23
|
+
var PlusIcon = require("../../../../../../assets/plus5.svg");
|
|
24
24
|
function _interopDefault(e) {
|
|
25
25
|
return e && e.__esModule ? e : {
|
|
26
26
|
default: e
|
|
@@ -17,8 +17,8 @@ import { isMessageFormatted } from '../../../../ComputeResourceCalculator/Comput
|
|
|
17
17
|
import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
|
|
18
18
|
import SearchIcon__default from "../../../../../../assets/search2.svg";
|
|
19
19
|
import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
20
|
-
import MinusIcon__default from "../../../../../../assets/
|
|
21
|
-
import PlusIcon__default from "../../../../../../assets/
|
|
20
|
+
import MinusIcon__default from "../../../../../../assets/minus4.svg";
|
|
21
|
+
import PlusIcon__default from "../../../../../../assets/plus5.svg";
|
|
22
22
|
"use strict";
|
|
23
23
|
const NoopPlaceholder = () => /* @__PURE__ */jsx(Fragment, {});
|
|
24
24
|
const PoeConsumerSelectModal = ({
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var MinusIcon = require("../../../../../../assets/
|
|
6
|
+
var MinusIcon = require("../../../../../../assets/minus4.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/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/minus4.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/minus4.svg";
|
|
3
3
|
//# sourceMappingURL=minus.svg.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var PlusIcon = require("../../../../../../assets/
|
|
6
|
+
var PlusIcon = require("../../../../../../assets/plus5.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/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/plus5.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/plus5.svg";
|
|
3
3
|
//# sourceMappingURL=plus.svg.mjs.map
|
|
@@ -12,9 +12,9 @@ require('./assets/play.svg.js');
|
|
|
12
12
|
require('./assets/volume-off.svg.js');
|
|
13
13
|
require('./assets/volume-on.svg.js');
|
|
14
14
|
var VideoPlayer_styles = require('./VideoPlayer.styles.js');
|
|
15
|
-
var CloseIcon = require("../../assets/
|
|
15
|
+
var CloseIcon = require("../../assets/close3.svg");
|
|
16
16
|
var BackIcon = require("../../assets/back.svg");
|
|
17
|
-
var PauseIcon = require("../../assets/
|
|
17
|
+
var PauseIcon = require("../../assets/pause2.svg");
|
|
18
18
|
var PlayIcon = require("../../assets/play.svg");
|
|
19
19
|
var VolumeOffIcon = require("../../assets/volume-off.svg");
|
|
20
20
|
var VolumeOnIcon = require("../../assets/volume-on.svg");
|
|
@@ -10,9 +10,9 @@ import './assets/play.svg.mjs';
|
|
|
10
10
|
import './assets/volume-off.svg.mjs';
|
|
11
11
|
import './assets/volume-on.svg.mjs';
|
|
12
12
|
import { Wrap, IconWrap, Icon, Video, ControlWrap, TimelineWrap, Timeline, Controls, LeftSide, IconButton, VolumeWrap, VolumeSliderWrap, VolumeSlider, Time, Center, RightSide } from './VideoPlayer.styles.mjs';
|
|
13
|
-
import CloseIcon__default from "../../assets/
|
|
13
|
+
import CloseIcon__default from "../../assets/close3.svg";
|
|
14
14
|
import BackIcon__default from "../../assets/back.svg";
|
|
15
|
-
import PauseIcon__default from "../../assets/
|
|
15
|
+
import PauseIcon__default from "../../assets/pause2.svg";
|
|
16
16
|
import PlayIcon__default from "../../assets/play.svg";
|
|
17
17
|
import VolumeOffIcon__default from "../../assets/volume-off.svg";
|
|
18
18
|
import VolumeOnIcon__default from "../../assets/volume-on.svg";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/close3.svg";
|
|
2
|
+
export { default } from "../../../assets/close3.svg";
|
|
3
3
|
//# sourceMappingURL=close.svg.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/pause2.svg";
|
|
2
|
+
export { default } from "../../../assets/pause2.svg";
|
|
3
3
|
//# sourceMappingURL=pause.svg.mjs.map
|
|
@@ -23,12 +23,18 @@ function styleInject(css, id) {
|
|
|
23
23
|
if (typeof document === "undefined") {
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
+
const injectedStyles = document.head.querySelectorAll(`:scope > [${SSR_NODE_DATA_ID}]`);
|
|
27
|
+
const injectedStylesLength = injectedStyles.length;
|
|
28
|
+
for (let i = 0; i < injectedStylesLength; i++) {
|
|
29
|
+
const style2 = injectedStyles[i];
|
|
30
|
+
if (!!style2 && style2.getAttribute(SSR_NODE_DATA_ID) === id) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
26
34
|
const style = document.createElement("style");
|
|
27
35
|
style.setAttribute(SSR_NODE_DATA_ID, id);
|
|
28
36
|
style.textContent = css;
|
|
29
|
-
|
|
30
|
-
const injectedStylesLength = injectedStyles.length;
|
|
31
|
-
if (injectedStyles.length) {
|
|
37
|
+
if (injectedStylesLength) {
|
|
32
38
|
const lastStyle = injectedStyles[injectedStylesLength - 1];
|
|
33
39
|
if (lastStyle) {
|
|
34
40
|
lastStyle.after(style);
|
|
@@ -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 // Create a style tag\n const style = document.createElement(\"style\");\n
|
|
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;"}
|
|
@@ -19,12 +19,18 @@ function styleInject(css, id) {
|
|
|
19
19
|
if (typeof document === "undefined") {
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
+
const injectedStyles = document.head.querySelectorAll(`:scope > [${SSR_NODE_DATA_ID}]`);
|
|
23
|
+
const injectedStylesLength = injectedStyles.length;
|
|
24
|
+
for (let i = 0; i < injectedStylesLength; i++) {
|
|
25
|
+
const style2 = injectedStyles[i];
|
|
26
|
+
if (!!style2 && style2.getAttribute(SSR_NODE_DATA_ID) === id) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
22
30
|
const style = document.createElement("style");
|
|
23
31
|
style.setAttribute(SSR_NODE_DATA_ID, id);
|
|
24
32
|
style.textContent = css;
|
|
25
|
-
|
|
26
|
-
const injectedStylesLength = injectedStyles.length;
|
|
27
|
-
if (injectedStyles.length) {
|
|
33
|
+
if (injectedStylesLength) {
|
|
28
34
|
const lastStyle = injectedStyles[injectedStylesLength - 1];
|
|
29
35
|
if (lastStyle) {
|
|
30
36
|
lastStyle.after(style);
|
|
@@ -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 // Create a style tag\n const style = document.createElement(\"style\");\n
|
|
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;"}
|
|
@@ -6,7 +6,6 @@ type Plugin = PluginObj<{
|
|
|
6
6
|
* FIXME: Currently this plugin won't:
|
|
7
7
|
* - Handle existing source maps correctly and would strip from the output: "//#
|
|
8
8
|
* sourceMappingURL=BubbleContainer.module.css.js.map"
|
|
9
|
-
* - CSS modules contain 2 arguments that are the same string, need to extend script to convert that as well
|
|
10
9
|
*/
|
|
11
10
|
export declare const transformCssModule: () => Plugin;
|
|
12
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform-css-module.js","sources":["../../../../src/utils/nextjs/ssr/transform-css-module.ts"],"sourcesContent":["import type { PluginObj } from \"@babel/core\";\nimport * as t from \"@babel/types\";\nimport crypto from \"node:crypto\";\n\nfunction generateMd5(input: string): string {\n return crypto.createHash(\"md5\").update(input).digest(\"hex\");\n}\n\ntype Plugin = PluginObj<{\n // Store the name of the default import identifier for \"style-inject.es.js\"\n defaultImportName: null | string;\n}>;\n\n/**\n * FIXME: Currently this plugin won't:\n * - Handle existing source maps correctly and would strip from the output: \"//#\n * sourceMappingURL=BubbleContainer.module.css.js.map\"\n
|
|
1
|
+
{"version":3,"file":"transform-css-module.js","sources":["../../../../src/utils/nextjs/ssr/transform-css-module.ts"],"sourcesContent":["import type { PluginObj } from \"@babel/core\";\nimport * as t from \"@babel/types\";\nimport crypto from \"node:crypto\";\n\nfunction generateMd5(input: string): string {\n return crypto.createHash(\"md5\").update(input).digest(\"hex\");\n}\n\ntype Plugin = PluginObj<{\n // Store the name of the default import identifier for \"style-inject.es.js\"\n defaultImportName: null | string;\n}>;\n\n/**\n * FIXME: Currently this plugin won't:\n * - Handle existing source maps correctly and would strip from the output: \"//#\n * sourceMappingURL=BubbleContainer.module.css.js.map\"\n */\nexport const transformCssModule = (): Plugin => {\n return {\n visitor: {\n // Step 0: Setup state\n Program(_path, state) {\n state[\"defaultImportName\"] = null;\n },\n // Step 1: Find the default import from \"style-inject.es.js\"\n ImportDeclaration(path, state) {\n // Skip, if the default import name is already found (assuming there is only one per-file)\n if (state[\"defaultImportName\"]) {\n return;\n }\n\n // Look for imports for \"style-inject.es.js\" file\n const importSource = path.node.source.value;\n if (!importSource.endsWith(\"style-inject.es.js\")) {\n return;\n }\n\n // Check for default import specifier\n const defaultSpecifier = path.node.specifiers.find((specifier) =>\n t.isImportDefaultSpecifier(specifier),\n ) as t.ImportDefaultSpecifier | undefined;\n\n // Store the default import name\n if (defaultSpecifier) {\n // Fail if two instances of file is found\n state[\"defaultImportName\"] = defaultSpecifier.local.name;\n } else {\n throw new Error(\n \"Import for `style-inject.es.js` file not found in file\",\n );\n }\n },\n\n // Step 2: Find all calls to the imported identifier\n CallExpression(path, state) {\n // Ignore if the default import name is not found\n if (!state[\"defaultImportName\"]) {\n return;\n }\n\n // Check if the callee is the default import identifier\n const callee = path.node.callee;\n if (\n t.isIdentifier(callee) &&\n callee.name === state[\"defaultImportName\"]\n ) {\n const args = path.node.arguments;\n\n // If arguments are not between 1 and 2, fail\n if (!(args.length >= 1 && args.length <= 2)) {\n throw new Error(\"Unexpected number of arguments\");\n }\n\n /**\n * Validates that the function arguments are:\n * 1. needs to be a string literal or variable holding string\n * 2. (optional) string literal\n */\n if (\n !(\n (t.isStringLiteral(args[0]) || t.isIdentifier(args[0])) &&\n (!args[1] || t.isStringLiteral(args[1]))\n )\n ) {\n throw new Error(\"Unexpected argument types\");\n }\n\n // CSS string\n let cssString: string = \"\";\n\n // Try to remove duplicate string literal as first argument and instead re-use the a already generated variable\n if (t.isStringLiteral(args[0])) {\n cssString = args[0].value;\n\n let reusedVariable = null;\n path.scope.path.traverse({\n VariableDeclarator(variablePath) {\n const { id, init } = variablePath.node;\n\n // Match variables initialized with the same string value.\n if (t.isStringLiteral(init, { value: cssString })) {\n reusedVariable = id;\n variablePath.stop(); // Stop traversing once a match is found.\n }\n },\n });\n\n // Replace the string literal with the existing variable reference.\n if (reusedVariable) {\n path.node.arguments[0] = reusedVariable;\n }\n } else if (t.isIdentifier(args[0])) {\n // Extract value from variable\n const binding = path.scope.getBinding(args[0].name);\n if (\n binding &&\n t.isVariableDeclarator(binding.path.node) &&\n t.isStringLiteral(binding.path.node.init)\n ) {\n cssString = binding.path.node.init.value;\n }\n }\n\n if (!cssString) {\n throw new Error(\"Invalid first argument value\");\n }\n\n // Generate MD5 hash of the first argument's value\n // TODO: Looked into that styled-components use murmurhash. Also it's possible to use sha1 for longer key\n // (less % of collision)\n const hash = generateMd5(cssString);\n\n // Add the hash as the second argument\n const hashArg = t.stringLiteral(hash);\n if (args.length > 1) {\n // If a second argument exists, replace it\n args[1] = hashArg;\n } else {\n // Otherwise, add it as a new second argument\n args.push(hashArg);\n }\n }\n },\n },\n } satisfies Plugin;\n};\n"],"names":["generateMd5","input","crypto","createHash","update","digest","transformCssModule","visitor","Program","_path","state","ImportDeclaration","path","importSource","node","source","value","endsWith","defaultSpecifier","specifiers","find","specifier","t","isImportDefaultSpecifier","local","name","Error","CallExpression","callee","isIdentifier","args","arguments","length","isStringLiteral","cssString","reusedVariable","scope","traverse","VariableDeclarator","variablePath","id","init","stop","binding","getBinding","isVariableDeclarator","hash","hashArg","stringLiteral","push"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform-css-module.mjs","sources":["../../../../src/utils/nextjs/ssr/transform-css-module.ts"],"sourcesContent":["import type { PluginObj } from \"@babel/core\";\nimport * as t from \"@babel/types\";\nimport crypto from \"node:crypto\";\n\nfunction generateMd5(input: string): string {\n return crypto.createHash(\"md5\").update(input).digest(\"hex\");\n}\n\ntype Plugin = PluginObj<{\n // Store the name of the default import identifier for \"style-inject.es.js\"\n defaultImportName: null | string;\n}>;\n\n/**\n * FIXME: Currently this plugin won't:\n * - Handle existing source maps correctly and would strip from the output: \"//#\n * sourceMappingURL=BubbleContainer.module.css.js.map\"\n
|
|
1
|
+
{"version":3,"file":"transform-css-module.mjs","sources":["../../../../src/utils/nextjs/ssr/transform-css-module.ts"],"sourcesContent":["import type { PluginObj } from \"@babel/core\";\nimport * as t from \"@babel/types\";\nimport crypto from \"node:crypto\";\n\nfunction generateMd5(input: string): string {\n return crypto.createHash(\"md5\").update(input).digest(\"hex\");\n}\n\ntype Plugin = PluginObj<{\n // Store the name of the default import identifier for \"style-inject.es.js\"\n defaultImportName: null | string;\n}>;\n\n/**\n * FIXME: Currently this plugin won't:\n * - Handle existing source maps correctly and would strip from the output: \"//#\n * sourceMappingURL=BubbleContainer.module.css.js.map\"\n */\nexport const transformCssModule = (): Plugin => {\n return {\n visitor: {\n // Step 0: Setup state\n Program(_path, state) {\n state[\"defaultImportName\"] = null;\n },\n // Step 1: Find the default import from \"style-inject.es.js\"\n ImportDeclaration(path, state) {\n // Skip, if the default import name is already found (assuming there is only one per-file)\n if (state[\"defaultImportName\"]) {\n return;\n }\n\n // Look for imports for \"style-inject.es.js\" file\n const importSource = path.node.source.value;\n if (!importSource.endsWith(\"style-inject.es.js\")) {\n return;\n }\n\n // Check for default import specifier\n const defaultSpecifier = path.node.specifiers.find((specifier) =>\n t.isImportDefaultSpecifier(specifier),\n ) as t.ImportDefaultSpecifier | undefined;\n\n // Store the default import name\n if (defaultSpecifier) {\n // Fail if two instances of file is found\n state[\"defaultImportName\"] = defaultSpecifier.local.name;\n } else {\n throw new Error(\n \"Import for `style-inject.es.js` file not found in file\",\n );\n }\n },\n\n // Step 2: Find all calls to the imported identifier\n CallExpression(path, state) {\n // Ignore if the default import name is not found\n if (!state[\"defaultImportName\"]) {\n return;\n }\n\n // Check if the callee is the default import identifier\n const callee = path.node.callee;\n if (\n t.isIdentifier(callee) &&\n callee.name === state[\"defaultImportName\"]\n ) {\n const args = path.node.arguments;\n\n // If arguments are not between 1 and 2, fail\n if (!(args.length >= 1 && args.length <= 2)) {\n throw new Error(\"Unexpected number of arguments\");\n }\n\n /**\n * Validates that the function arguments are:\n * 1. needs to be a string literal or variable holding string\n * 2. (optional) string literal\n */\n if (\n !(\n (t.isStringLiteral(args[0]) || t.isIdentifier(args[0])) &&\n (!args[1] || t.isStringLiteral(args[1]))\n )\n ) {\n throw new Error(\"Unexpected argument types\");\n }\n\n // CSS string\n let cssString: string = \"\";\n\n // Try to remove duplicate string literal as first argument and instead re-use the a already generated variable\n if (t.isStringLiteral(args[0])) {\n cssString = args[0].value;\n\n let reusedVariable = null;\n path.scope.path.traverse({\n VariableDeclarator(variablePath) {\n const { id, init } = variablePath.node;\n\n // Match variables initialized with the same string value.\n if (t.isStringLiteral(init, { value: cssString })) {\n reusedVariable = id;\n variablePath.stop(); // Stop traversing once a match is found.\n }\n },\n });\n\n // Replace the string literal with the existing variable reference.\n if (reusedVariable) {\n path.node.arguments[0] = reusedVariable;\n }\n } else if (t.isIdentifier(args[0])) {\n // Extract value from variable\n const binding = path.scope.getBinding(args[0].name);\n if (\n binding &&\n t.isVariableDeclarator(binding.path.node) &&\n t.isStringLiteral(binding.path.node.init)\n ) {\n cssString = binding.path.node.init.value;\n }\n }\n\n if (!cssString) {\n throw new Error(\"Invalid first argument value\");\n }\n\n // Generate MD5 hash of the first argument's value\n // TODO: Looked into that styled-components use murmurhash. Also it's possible to use sha1 for longer key\n // (less % of collision)\n const hash = generateMd5(cssString);\n\n // Add the hash as the second argument\n const hashArg = t.stringLiteral(hash);\n if (args.length > 1) {\n // If a second argument exists, replace it\n args[1] = hashArg;\n } else {\n // Otherwise, add it as a new second argument\n args.push(hashArg);\n }\n }\n },\n },\n } satisfies Plugin;\n};\n"],"names":["generateMd5","input","crypto","createHash","update","digest","transformCssModule","visitor","Program","_path","state","ImportDeclaration","path","importSource","node","source","value","endsWith","defaultSpecifier","specifiers","find","specifier","t","isImportDefaultSpecifier","local","name","Error","CallExpression","callee","isIdentifier","args","arguments","length","isStringLiteral","cssString","reusedVariable","scope","traverse","VariableDeclarator","variablePath","id","init","stop","binding","getBinding","isVariableDeclarator","hash","hashArg","stringLiteral","push"],"mappings":"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"}
|