@ubnt/store.core 9.59.0-alpha.0 → 9.59.0-alpha.1
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 +5 -1
- package/lib/assets/ai-bullet.jpg +0 -0
- package/lib/assets/ai-bullet2.jpg +0 -0
- package/lib/assets/ai-dslr.jpg +0 -0
- package/lib/assets/ai-dslr2.jpg +0 -0
- package/lib/assets/ai-turret.jpg +0 -0
- package/lib/assets/ai-turret2.jpg +0 -0
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/e7-audience.jpg +0 -0
- package/lib/assets/e7-audience2.jpg +0 -0
- package/lib/assets/flex.jpg +0 -0
- package/lib/assets/flex2.jpg +0 -0
- package/lib/assets/g4-instant.jpg +0 -0
- package/lib/assets/g4-instant2.jpg +0 -0
- package/lib/assets/g5-dome.jpg +0 -0
- package/lib/assets/g5-dome2.jpg +0 -0
- package/lib/assets/g5-flex.jpg +0 -0
- package/lib/assets/g5-flex2.jpg +0 -0
- package/lib/assets/g5-turret-ultra.jpg +0 -0
- package/lib/assets/g5-turret-ultra2.jpg +0 -0
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/payment-apple-pay.svg +12 -1
- package/lib/assets/payment-card.svg +12 -1
- package/lib/assets/payment-google-pay.svg +1 -1
- package/lib/assets/reader-lite.jpg +0 -0
- package/lib/assets/reader-lite2.jpg +0 -0
- 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/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js.map +1 -1
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.mjs +5 -5
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/ai-bullet.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/ai-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-turret.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-turret.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/reader-lite.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/reader-lite.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Switching/flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Switching/flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/WiFi/e7-audience.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/WiFi/e7-audience.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-bullet.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g4-instant.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g4-instant.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-turret.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-turret.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/reader-lite.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/reader-lite.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/mega-capacity/e7-audience.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/mega-capacity/e7-audience.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiBullet.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiBullet.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiDslr.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiDslr.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiTurret.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiTurret.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/flex.js +2 -2
- package/lib/constants/modelCompareData/data/products/flex.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g4Instant.js +2 -2
- package/lib/constants/modelCompareData/data/products/g4Instant.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Dome.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Dome.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Flex.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Flex.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5TurretUltra.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5TurretUltra.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/readerLite.js +2 -2
- package/lib/constants/modelCompareData/data/products/readerLite.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/shared-product-data/e7Audience.js +2 -2
- package/lib/constants/modelCompareData/data/products/shared-product-data/e7Audience.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
-
> Place here the list of unreleased changes
|
|
6
5
|
|
|
7
6
|
## Releases
|
|
8
7
|
|
|
8
|
+
## 9.59.0-alpha.1
|
|
9
|
+
|
|
10
|
+
[NEP-4053]: Fix Footnotes Icons alignment
|
|
11
|
+
|
|
12
|
+
|
|
9
13
|
### 9.59.0-alpha.0
|
|
10
14
|
|
|
11
15
|
- [Feat] [NEP-4145](https://ubiquiti.atlassian.net/browse/NEP-4145) Add "drag-scroll" functionality for Card Section and Scroll Wrapper
|
package/lib/assets/ai-bullet.jpg
CHANGED
|
Binary file
|
|
Binary file
|
package/lib/assets/ai-dslr.jpg
CHANGED
|
Binary file
|
package/lib/assets/ai-dslr2.jpg
CHANGED
|
Binary file
|
package/lib/assets/ai-turret.jpg
CHANGED
|
Binary file
|
|
Binary file
|
package/lib/assets/attention.svg
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<circle cx="
|
|
3
|
-
<path d="
|
|
4
|
-
<path d="
|
|
5
|
-
<circle cx="
|
|
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="
|
|
2
|
-
<circle cx="
|
|
3
|
-
<path d="
|
|
4
|
-
<path d="
|
|
5
|
-
<circle cx="
|
|
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>
|
|
Binary file
|
|
Binary file
|
package/lib/assets/flex.jpg
CHANGED
|
Binary file
|
package/lib/assets/flex2.jpg
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/assets/g5-dome.jpg
CHANGED
|
Binary file
|
package/lib/assets/g5-dome2.jpg
CHANGED
|
Binary file
|
package/lib/assets/g5-flex.jpg
CHANGED
|
Binary file
|
package/lib/assets/g5-flex2.jpg
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/assets/pause.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/pause2.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>
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="26" height="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="26" height="21" viewBox="0 0 26 19">
|
|
2
|
+
<g clip-path="url(#a)">
|
|
3
|
+
<path fill="#000" d="M22.871 2.083H2.846l-.208.004a3.127 3.127 0 0 0-.453.038c-.152.027-.293.07-.431.138a1.445 1.445 0 0 0-.633.612 1.44 1.44 0 0 0-.142.417 2.813 2.813 0 0 0-.04.438 9.56 9.56 0 0 0-.003.2v11.223c0 .067.001.134.003.2.004.147.013.294.04.439a1.398 1.398 0 0 0 .408.771c.108.104.232.191.367.258.138.068.279.11.43.137.15.026.303.035.454.039l.208.002.247.001h20.025c.07 0 .139-.002.209-.003.15-.004.303-.013.453-.039.151-.026.293-.07.43-.137a1.435 1.435 0 0 0 .633-.613c.07-.133.115-.27.142-.416.027-.145.036-.292.04-.438a9 9 0 0 0 .003-.201l.001-.24V3.93l-.004-.2a2.814 2.814 0 0 0-.04-.438 1.429 1.429 0 0 0-.408-.772 1.444 1.444 0 0 0-.367-.257 1.569 1.569 0 0 0-.43-.138 3.135 3.135 0 0 0-.453-.038l-.209-.003h-.247Z"/>
|
|
4
|
+
<path fill="#fff" d="M22.871 2.581h.243l.198.003c.116.003.25.01.376.031.11.02.201.048.29.092a.93.93 0 0 1 .407.395.945.945 0 0 1 .094.279c.023.12.029.25.032.363.002.063.003.127.003.191V15.151l-.003.19c-.003.112-.01.243-.032.364a.903.903 0 0 1-.503.673 1.03 1.03 0 0 1-.287.091 2.707 2.707 0 0 1-.374.031c-.067.002-.133.003-.201.003H2.848c-.066 0-.133-.001-.197-.003a2.712 2.712 0 0 1-.376-.03c-.109-.02-.2-.048-.289-.092a.922.922 0 0 1-.502-.674 2.38 2.38 0 0 1-.032-.363 8.957 8.957 0 0 1-.002-.19V3.934c0-.064 0-.128.002-.191.004-.112.01-.242.033-.364a.899.899 0 0 1 .502-.673c.087-.044.18-.073.288-.092.126-.022.26-.028.377-.03.065-.002.131-.003.197-.003l.244-.001H22.87Z"/>
|
|
5
|
+
<path fill="#000" d="M7.514 7.102c.207-.25.347-.586.31-.928a1.35 1.35 0 0 0-.885.443c-.192.214-.362.563-.318.892.34.028.68-.164.893-.407ZM7.817 7.57c-.492-.028-.91.271-1.146.271-.235 0-.595-.256-.984-.25a1.46 1.46 0 0 0-1.235.726c-.529.882-.14 2.19.375 2.908.25.355.551.746.948.732.375-.014.522-.235.977-.235.455 0 .588.235.985.228.411-.007.668-.355.918-.711.287-.405.404-.796.411-.818-.007-.007-.793-.298-.8-1.173-.008-.732.617-1.08.646-1.102-.353-.504-.904-.561-1.095-.575ZM12.104 6.58c1.07 0 1.815.714 1.815 1.752 0 1.042-.76 1.76-1.842 1.76h-1.185v1.821h-.856V6.58h2.068Zm-1.212 2.816h.982c.745 0 1.17-.388 1.17-1.06 0-.673-.425-1.057-1.166-1.057h-.986v2.117ZM14.142 10.809c0-.68.54-1.098 1.495-1.15l1.1-.063v-.3c0-.431-.302-.69-.806-.69-.478 0-.776.222-.848.569h-.78c.046-.702.665-1.22 1.658-1.22.975 0 1.598.5 1.598 1.28v2.679h-.791v-.64h-.02c-.232.433-.74.706-1.268.706-.787 0-1.338-.473-1.338-1.171Zm2.595-.352v-.306l-.99.059c-.493.033-.772.244-.772.576 0 .34.29.562.734.562.577 0 1.028-.384 1.028-.89ZM18.306 13.344v-.647c.06.015.198.015.267.015.382 0 .589-.155.715-.554 0-.008.072-.237.072-.24l-1.452-3.892h.894l1.017 3.163h.015l1.017-3.163h.871l-1.506 4.09c-.343.943-.74 1.246-1.574 1.246-.069 0-.275-.007-.336-.018Z"/>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="a">
|
|
9
|
+
<path fill="#fff" d="M.934.744h24.927v17.45H.934z"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none"
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="26" height="21" viewBox="0 0 24 25">
|
|
2
|
+
<g clip-path="url(#a)">
|
|
3
|
+
<path stroke="#000" stroke-opacity=".65" stroke-width=".85" d="M.707 6.44c0-.491.43-.932 1.016-.932h20.173c.586 0 1.016.44 1.016.931v12.205c0 .49-.43.931-1.016.931H1.723c-.586 0-1.016-.44-1.016-.931V6.439Z"/>
|
|
4
|
+
<path stroke="#000" stroke-opacity=".65" stroke-width="2.493" d="M1.13 10.122h21.357"/>
|
|
5
|
+
<rect width="3.64" height="2.427" x="17.231" y="15.033" fill="#000" fill-opacity=".65" rx="1.213"/>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="a">
|
|
9
|
+
<path fill="#fff" d="M.282.628h23.681V24.31H.283z"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="26" height="21" viewBox="0 0 30 19"><g clip-path="url(#a)"><path fill="#fff" d="M20.71 2.07H7.72C3.662 2.07.34 5.428.34 9.534S3.661 17 7.72 17h12.99c4.06 0 7.381-3.36 7.381-7.465 0-4.106-3.321-7.466-7.38-7.466Z"/><path fill="#3C4043" d="M20.71 2.674a6.63 6.63 0 0 1 2.632.541A6.883 6.883 0 0 1 25.5 14.38a6.795 6.795 0 0 1-2.16 1.475 6.629 6.629 0 0 1-2.63.541H7.72a6.629 6.629 0 0 1-2.631-.54 6.883 6.883 0 0 1-3.617-8.98 6.925 6.925 0 0 1 1.458-2.185A6.797 6.797 0 0 1 5.09 3.215a6.63 6.63 0 0 1 2.63-.541h12.99Zm0-.605H7.72C3.662 2.07.34 5.43.34 9.535S3.661 17 7.72 17h12.99c4.06 0 7.381-3.36 7.381-7.465 0-4.106-3.321-7.466-7.38-7.466Z"/><path fill="#3C4043" d="M13.572 10.065v2.258h-.708V6.746h1.878c.476 0 .882.16 1.214.482.34.32.51.713.51 1.175 0 .474-.17.866-.51 1.184-.328.317-.734.474-1.214.474h-1.17v.004Zm0-2.632v1.945h1.185a.94.94 0 0 0 .701-.288.945.945 0 0 0 .284-.683.935.935 0 0 0-.284-.675.914.914 0 0 0-.701-.295h-1.185v-.004ZM18.318 8.38c.524 0 .938.143 1.24.426.303.284.454.672.454 1.165v2.352h-.675v-.53h-.03c-.291.436-.682.653-1.17.653-.416 0-.763-.123-1.044-.373-.28-.25-.42-.56-.42-.934 0-.395.147-.709.442-.94.296-.235.69-.351 1.181-.351.42 0 .768.078 1.037.235v-.164c0-.25-.096-.46-.291-.635a.994.994 0 0 0-.687-.261c-.395 0-.708.168-.937.508l-.624-.396c.343-.504.853-.754 1.524-.754Zm-.915 2.77c0 .187.078.344.236.467.155.123.34.187.55.187.3 0 .565-.112.797-.336a1.06 1.06 0 0 0 .35-.788c-.22-.175-.527-.265-.922-.265-.288 0-.527.071-.72.21-.195.145-.29.32-.29.525ZM23.865 8.505l-2.362 5.494h-.73l.878-1.922-1.557-3.572h.77l1.123 2.74h.015l1.092-2.74h.771Z"/><path fill="#4285F4" d="M10.754 9.61c0-.235-.02-.458-.059-.673h-2.97v1.232h1.71c-.069.41-.292.76-.635.993v.8H9.82c.595-.558.935-1.38.935-2.353Z"/><path fill="#34A853" d="M8.8 11.16c-.284.194-.649.307-1.076.307-.824 0-1.524-.562-1.775-1.32H4.9v.825a3.158 3.158 0 0 0 2.825 1.76c.854 0 1.572-.283 2.094-.772l-1.018-.8Z"/><path fill="#FABB05" d="M5.852 9.537c0-.213.035-.418.099-.612v-.824H4.9c-.216.432-.337.92-.337 1.436 0 .517.122 1.004.336 1.436l1.05-.824a1.948 1.948 0 0 1-.098-.612Z"/><path fill="#E94235" d="M7.724 7.604c.466 0 .884.163 1.213.48l.903-.912a3.018 3.018 0 0 0-2.116-.833A3.159 3.159 0 0 0 4.9 8.1l1.05.824c.25-.757.95-1.32 1.775-1.32Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M.34.744h28.667v17.45H.34z"/></clipPath></defs></svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -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/pause2.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/pause2.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/pause2.svg";
|
|
2
|
+
export { default } from "../../../assets/pause2.svg";
|
|
3
3
|
//# sourceMappingURL=pause.svg.mjs.map
|
|
@@ -33,20 +33,20 @@ const PaymentGooglePaySrcLink = typeof PaymentGooglePay__default["default"] ===
|
|
|
33
33
|
const PaymentCardSrc = {
|
|
34
34
|
src: PaymentCardSrcLink,
|
|
35
35
|
alt: "Card",
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
36
|
+
width: 26,
|
|
37
|
+
height: 21
|
|
38
38
|
};
|
|
39
39
|
const PaymentApplePaySrc = {
|
|
40
40
|
src: PaymentApplePaySrcLink,
|
|
41
41
|
alt: "Apple Pay",
|
|
42
42
|
width: 26,
|
|
43
|
-
height:
|
|
43
|
+
height: 21
|
|
44
44
|
};
|
|
45
45
|
const PaymentGooglePaySrc = {
|
|
46
46
|
src: PaymentGooglePaySrcLink,
|
|
47
47
|
alt: "Google Pay",
|
|
48
|
-
width:
|
|
49
|
-
height:
|
|
48
|
+
width: 26,
|
|
49
|
+
height: 21
|
|
50
50
|
};
|
|
51
51
|
const getPaymentIcon = type => {
|
|
52
52
|
switch (type) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductWizardFootnotes.js","sources":["../../../src/components/ProductWizardFootnotes/ProductWizardFootnotes.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\n\nimport PaymentApplePay from \"../../assets/icons/payment-apple-pay.svg\";\nimport PaymentCard from \"../../assets/icons/payment-card.svg\";\nimport PaymentGooglePay from \"../../assets/icons/payment-google-pay.svg\";\nimport {\n box,\n // hand,\n warranty,\n} from \"../../assets/icons/wizard\";\nimport { BackInStock } from \"../BackInStock\";\nimport type { PaymentTypes } from \"../ProductWizard/ProductWizard.types\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./ProductWizardFootnotes.styles\";\nimport type { ProductWizardFootnotesProps } from \"./ProductWizardFootnotes.types\";\n\nconst PaymentCardSrcLink =\n typeof PaymentCard === \"string\" ? PaymentCard : PaymentCard.src;\nconst PaymentApplePaySrcLink =\n typeof PaymentApplePay === \"string\" ? PaymentApplePay : PaymentApplePay.src;\nconst PaymentGooglePaySrcLink =\n typeof PaymentGooglePay === \"string\"\n ? PaymentGooglePay\n : PaymentGooglePay.src;\n\nconst PaymentCardSrc = {\n src: PaymentCardSrcLink,\n alt: \"Card\",\n width: 24,\n height: 25,\n};\n\nconst PaymentApplePaySrc = {\n src: PaymentApplePaySrcLink,\n alt: \"Apple Pay\",\n width: 26,\n height: 19,\n};\n\nconst PaymentGooglePaySrc = {\n src: PaymentGooglePaySrcLink,\n alt: \"Google Pay\",\n width: 30,\n height: 19,\n};\n\nconst getPaymentIcon = (type: keyof PaymentTypes) => {\n switch (type) {\n case \"applePay\": {\n return PaymentApplePaySrc;\n }\n case \"googlePay\": {\n return PaymentGooglePaySrc;\n }\n case \"card\": {\n return PaymentCardSrc;\n }\n }\n};\n\nexport const ProductWizardFootnotes = ({\n maxRelevantLimitAddToCartQuantity,\n // relevantLimitQuantity,\n limitsDisabled,\n requiresLogin,\n showLimitError,\n translations,\n enableLimitAndBackInStock,\n backInStockProps,\n className,\n availablePaymentMethods,\n renderImage,\n}: ProductWizardFootnotesProps) => {\n // #############################################################################\n // Limitations\n // #############################################################################\n const limitErrorNode = useMemo(() => {\n if (limitsDisabled) {\n return;\n }\n\n if (requiresLogin) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitedToBuy}\n </S.ErrorText>\n );\n }\n\n if (maxRelevantLimitAddToCartQuantity === 0) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitReached}\n </S.ErrorText>\n );\n }\n\n if (\n maxRelevantLimitAddToCartQuantity != null &&\n maxRelevantLimitAddToCartQuantity > 0 &&\n showLimitError\n ) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitErrorPer}\n </S.ErrorText>\n );\n }\n\n return undefined;\n }, [\n limitsDisabled,\n requiresLogin,\n maxRelevantLimitAddToCartQuantity,\n showLimitError,\n translations.errors.limitedToBuy,\n translations.errors.limitReached,\n translations.errors.limitErrorPer,\n ]);\n\n const getCardIcons = useCallback(() => {\n const hasPaymentMethods =\n availablePaymentMethods &&\n Object.keys(availablePaymentMethods).filter((item) => {\n return !!availablePaymentMethods[\n item as keyof typeof availablePaymentMethods\n ];\n }).length > 0;\n\n if (!availablePaymentMethods || !hasPaymentMethods) {\n return;\n }\n\n return (\n <S.ImageWrap>\n {Object.keys(availablePaymentMethods).map((key) => {\n const src = getPaymentIcon(key);\n\n return (\n <S.PaymentImage\n key={key}\n renderImage={renderImage}\n asset={src}\n sizes={`${src.width}px`}\n />\n );\n })}\n </S.ImageWrap>\n );\n }, [availablePaymentMethods, renderImage]);\n\n const footnotes = useMemo(\n () => (\n <>\n {getCardIcons()}\n {translations?.footnotes?.shipping?.loading ? (\n <S.SkeletonFootnote maxWidth={120} />\n ) : (\n translations?.footnotes?.shipping?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={box} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.shipping.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )}\n {translations?.footnotes?.warranty && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={warranty} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>{translations.footnotes.warranty}</S.FootnoteText>\n </S.IconTextWrap>\n )}\n {/* Hide limits */}\n {/* {translations?.footnotes?.limit?.loading ? (\n <S.SkeletonFootnote maxWidth={200} />\n ) : (\n !!relevantLimitQuantity &&\n translations?.footnotes?.limit?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={hand} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.limit.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )} */}\n </>\n ),\n [\n getCardIcons,\n translations.footnotes.shipping?.loading,\n translations.footnotes.shipping.value,\n translations.footnotes.warranty,\n ],\n );\n\n /**\n * Does the footnotes have any content\n */\n const hasFootnotes = useMemo(\n () => !!footnotes.props.children.filter((child: unknown) => !!child).length,\n [footnotes.props.children],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!hasFootnotes && !enableLimitAndBackInStock && !limitErrorNode) {\n return null;\n }\n\n return (\n <S.Wrap className={className}>\n {enableLimitAndBackInStock && (\n <>\n {backInStockProps && <BackInStock {...backInStockProps} />}\n {limitErrorNode}\n </>\n )}\n <S.FootnoteWrap>{footnotes}</S.FootnoteWrap>\n </S.Wrap>\n );\n};\n"],"names":["PaymentCardSrcLink","PaymentCard","src","PaymentApplePaySrcLink","PaymentApplePay","PaymentGooglePaySrcLink","PaymentGooglePay","PaymentCardSrc","alt","width","height","PaymentApplePaySrc","PaymentGooglePaySrc","getPaymentIcon","type","ProductWizardFootnotes","maxRelevantLimitAddToCartQuantity","limitsDisabled","requiresLogin","showLimitError","translations","enableLimitAndBackInStock","backInStockProps","className","availablePaymentMethods","renderImage","limitErrorNode","useMemo","jsx","S.ErrorText","children","errors","limitedToBuy","limitReached","limitErrorPer","getCardIcons","useCallback","hasPaymentMethods","Object","keys","filter","item","length","S.ImageWrap","map","key","S.PaymentImage","PaymentImage","asset","sizes","footnotes","jsxs","Fragment","shipping","loading","S.SkeletonFootnote","maxWidth","value","S.IconTextWrap","S.IconWrap","StyleableSvgImage","box","S.FootnoteText","FootnoteText","warranty","hasFootnotes","props","child","S.Wrap","BackInStock","S.FootnoteWrap","FootnoteWrap"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAMA,kBACJ,GAAA,OAAOC,oBAAAA,CAAAA,SAAAA,CAAgB,KAAA,QAAA,GAAWA,oBAAAA,CAAAA,SAAAA,IAAcA,oBAAAA,CAAAA,SAAAA,CAAY,CAAAC,GAAA;AAC9D,MAAMC,sBACJ,GAAA,OAAOC,wBAAAA,CAAAA,SAAAA,CAAoB,KAAA,QAAA,GAAWA,wBAAAA,CAAAA,SAAAA,IAAkBA,wBAAAA,CAAAA,SAAAA,CAAgB,CAAAF,GAAA;AAC1E,MAAMG,uBACJ,GAAA,OAAOC,yBAAAA,CAAAA,SAAAA,CAAqB,KAAA,QAAA,GACxBA,yBAAAA,CAAAA,SAAAA,IACAA,yBAAAA,CAAAA,SAAAA,CAAiB,CAAAJ,GAAA;AAEvB,MAAMK,cAAiB,GAAA;EACrBL,GAAK,EAAAF,kBAAA;EACLQ,GAAK,EAAA,MAAA;EACLC,KAAO,EAAA,EAAA;EACPC,MAAQ,EAAA;AACV,CAAA;AAEA,MAAMC,kBAAqB,GAAA;EACzBT,GAAK,EAAAC,sBAAA;EACLK,GAAK,EAAA,WAAA;EACLC,KAAO,EAAA,EAAA;EACPC,MAAQ,EAAA;AACV,CAAA;AAEA,MAAME,mBAAsB,GAAA;EAC1BV,GAAK,EAAAG,uBAAA;EACLG,GAAK,EAAA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AAA,CAAC,CAACA,KAAK,CAAE,CAAAzB,MAAA,EACrE,CAACQ,SAAU,CAAAgB,KAAA,CAAMpC,QAAQ,CAAA,CAC3B;EAKA,IAAI,CAACmC,YAAA,IAAgB,CAAC5C,yBAAA,IAA6B,CAACK,cAAgB,EAAA;IAC3D,OAAA,IAAA;EACT;EAEA,OAAA,eACGyB,eAAA,CAAAiB,6BAAAA,CAAAA,IAAA,EAAA;IAAO7C,SACL;IAAAO,QAAA,EAAA,CAAAT,yBAAA,mBAEI8B,UAAA,CAAAA,IAAA,CAAAC,mBAAA,EAAA;MAAAtB,QAAA,EAAA,CAAoBR,gBAAA,IAAAM,eAAAA,UAAAA,CAAAA,GAAA,CAACyC,WAAAA,CAAAA,WAAa,EAAA;QAAA,GAAG/C;MAAkB,CAAA,CAAA,EACvDI,cAAA;KACH,CAAA,EAEDE,eAAAA,UAAAA,CAAAA,GAAA,CAAA0C,6BAAA,CAAAC,YAAA,EAAA;MAAgBzC,QAAU,EAAAoB;IAAA,CAAA,CAAA;EAC7B,CAAA,CAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"ProductWizardFootnotes.js","sources":["../../../src/components/ProductWizardFootnotes/ProductWizardFootnotes.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\n\nimport PaymentApplePay from \"../../assets/icons/payment-apple-pay.svg\";\nimport PaymentCard from \"../../assets/icons/payment-card.svg\";\nimport PaymentGooglePay from \"../../assets/icons/payment-google-pay.svg\";\nimport {\n box,\n // hand,\n warranty,\n} from \"../../assets/icons/wizard\";\nimport { BackInStock } from \"../BackInStock\";\nimport type { PaymentTypes } from \"../ProductWizard/ProductWizard.types\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./ProductWizardFootnotes.styles\";\nimport type { ProductWizardFootnotesProps } from \"./ProductWizardFootnotes.types\";\n\nconst PaymentCardSrcLink =\n typeof PaymentCard === \"string\" ? PaymentCard : PaymentCard.src;\nconst PaymentApplePaySrcLink =\n typeof PaymentApplePay === \"string\" ? PaymentApplePay : PaymentApplePay.src;\nconst PaymentGooglePaySrcLink =\n typeof PaymentGooglePay === \"string\"\n ? PaymentGooglePay\n : PaymentGooglePay.src;\n\nconst PaymentCardSrc = {\n src: PaymentCardSrcLink,\n alt: \"Card\",\n width: 26,\n height: 21,\n};\n\nconst PaymentApplePaySrc = {\n src: PaymentApplePaySrcLink,\n alt: \"Apple Pay\",\n width: 26,\n height: 21,\n};\n\nconst PaymentGooglePaySrc = {\n src: PaymentGooglePaySrcLink,\n alt: \"Google Pay\",\n width: 26,\n height: 21,\n};\n\nconst getPaymentIcon = (type: keyof PaymentTypes) => {\n switch (type) {\n case \"applePay\": {\n return PaymentApplePaySrc;\n }\n case \"googlePay\": {\n return PaymentGooglePaySrc;\n }\n case \"card\": {\n return PaymentCardSrc;\n }\n }\n};\n\nexport const ProductWizardFootnotes = ({\n maxRelevantLimitAddToCartQuantity,\n // relevantLimitQuantity,\n limitsDisabled,\n requiresLogin,\n showLimitError,\n translations,\n enableLimitAndBackInStock,\n backInStockProps,\n className,\n availablePaymentMethods,\n renderImage,\n}: ProductWizardFootnotesProps) => {\n // #############################################################################\n // Limitations\n // #############################################################################\n const limitErrorNode = useMemo(() => {\n if (limitsDisabled) {\n return;\n }\n\n if (requiresLogin) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitedToBuy}\n </S.ErrorText>\n );\n }\n\n if (maxRelevantLimitAddToCartQuantity === 0) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitReached}\n </S.ErrorText>\n );\n }\n\n if (\n maxRelevantLimitAddToCartQuantity != null &&\n maxRelevantLimitAddToCartQuantity > 0 &&\n showLimitError\n ) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitErrorPer}\n </S.ErrorText>\n );\n }\n\n return undefined;\n }, [\n limitsDisabled,\n requiresLogin,\n maxRelevantLimitAddToCartQuantity,\n showLimitError,\n translations.errors.limitedToBuy,\n translations.errors.limitReached,\n translations.errors.limitErrorPer,\n ]);\n\n const getCardIcons = useCallback(() => {\n const hasPaymentMethods =\n availablePaymentMethods &&\n Object.keys(availablePaymentMethods).filter((item) => {\n return !!availablePaymentMethods[\n item as keyof typeof availablePaymentMethods\n ];\n }).length > 0;\n\n if (!availablePaymentMethods || !hasPaymentMethods) {\n return;\n }\n\n return (\n <S.ImageWrap>\n {Object.keys(availablePaymentMethods).map((key) => {\n const src = getPaymentIcon(key);\n\n return (\n <S.PaymentImage\n key={key}\n renderImage={renderImage}\n asset={src}\n sizes={`${src.width}px`}\n />\n );\n })}\n </S.ImageWrap>\n );\n }, [availablePaymentMethods, renderImage]);\n\n const footnotes = useMemo(\n () => (\n <>\n {getCardIcons()}\n {translations?.footnotes?.shipping?.loading ? (\n <S.SkeletonFootnote maxWidth={120} />\n ) : (\n translations?.footnotes?.shipping?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={box} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.shipping.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )}\n {translations?.footnotes?.warranty && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={warranty} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>{translations.footnotes.warranty}</S.FootnoteText>\n </S.IconTextWrap>\n )}\n {/* Hide limits */}\n {/* {translations?.footnotes?.limit?.loading ? (\n <S.SkeletonFootnote maxWidth={200} />\n ) : (\n !!relevantLimitQuantity &&\n translations?.footnotes?.limit?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={hand} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.limit.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )} */}\n </>\n ),\n [\n getCardIcons,\n translations.footnotes.shipping?.loading,\n translations.footnotes.shipping.value,\n translations.footnotes.warranty,\n ],\n );\n\n /**\n * Does the footnotes have any content\n */\n const hasFootnotes = useMemo(\n () => !!footnotes.props.children.filter((child: unknown) => !!child).length,\n [footnotes.props.children],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!hasFootnotes && !enableLimitAndBackInStock && !limitErrorNode) {\n return null;\n }\n\n return (\n <S.Wrap className={className}>\n {enableLimitAndBackInStock && (\n <>\n {backInStockProps && <BackInStock {...backInStockProps} />}\n {limitErrorNode}\n </>\n )}\n <S.FootnoteWrap>{footnotes}</S.FootnoteWrap>\n </S.Wrap>\n );\n};\n"],"names":["PaymentCardSrcLink","PaymentCard","src","PaymentApplePaySrcLink","PaymentApplePay","PaymentGooglePaySrcLink","PaymentGooglePay","PaymentCardSrc","alt","width","height","PaymentApplePaySrc","PaymentGooglePaySrc","getPaymentIcon","type","ProductWizardFootnotes","maxRelevantLimitAddToCartQuantity","limitsDisabled","requiresLogin","showLimitError","translations","enableLimitAndBackInStock","backInStockProps","className","availablePaymentMethods","renderImage","limitErrorNode","useMemo","jsx","S.ErrorText","children","errors","limitedToBuy","limitReached","limitErrorPer","getCardIcons","useCallback","hasPaymentMethods","Object","keys","filter","item","length","S.ImageWrap","map","key","S.PaymentImage","PaymentImage","asset","sizes","footnotes","jsxs","Fragment","shipping","loading","S.SkeletonFootnote","maxWidth","value","S.IconTextWrap","S.IconWrap","StyleableSvgImage","box","S.FootnoteText","FootnoteText","warranty","hasFootnotes","props","child","S.Wrap","BackInStock","S.FootnoteWrap","FootnoteWrap"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAMA,kBACJ,GAAA,OAAOC,oBAAAA,CAAAA,SAAAA,CAAgB,KAAA,QAAA,GAAWA,oBAAAA,CAAAA,SAAAA,IAAcA,oBAAAA,CAAAA,SAAAA,CAAY,CAAAC,GAAA;AAC9D,MAAMC,sBACJ,GAAA,OAAOC,wBAAAA,CAAAA,SAAAA,CAAoB,KAAA,QAAA,GAAWA,wBAAAA,CAAAA,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|
@@ -21,20 +21,20 @@ const PaymentGooglePaySrcLink = typeof PaymentGooglePay__default === "string" ?
|
|
|
21
21
|
const PaymentCardSrc = {
|
|
22
22
|
src: PaymentCardSrcLink,
|
|
23
23
|
alt: "Card",
|
|
24
|
-
width:
|
|
25
|
-
height:
|
|
24
|
+
width: 26,
|
|
25
|
+
height: 21
|
|
26
26
|
};
|
|
27
27
|
const PaymentApplePaySrc = {
|
|
28
28
|
src: PaymentApplePaySrcLink,
|
|
29
29
|
alt: "Apple Pay",
|
|
30
30
|
width: 26,
|
|
31
|
-
height:
|
|
31
|
+
height: 21
|
|
32
32
|
};
|
|
33
33
|
const PaymentGooglePaySrc = {
|
|
34
34
|
src: PaymentGooglePaySrcLink,
|
|
35
35
|
alt: "Google Pay",
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
36
|
+
width: 26,
|
|
37
|
+
height: 21
|
|
38
38
|
};
|
|
39
39
|
const getPaymentIcon = type => {
|
|
40
40
|
switch (type) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductWizardFootnotes.mjs","sources":["../../../src/components/ProductWizardFootnotes/ProductWizardFootnotes.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\n\nimport PaymentApplePay from \"../../assets/icons/payment-apple-pay.svg\";\nimport PaymentCard from \"../../assets/icons/payment-card.svg\";\nimport PaymentGooglePay from \"../../assets/icons/payment-google-pay.svg\";\nimport {\n box,\n // hand,\n warranty,\n} from \"../../assets/icons/wizard\";\nimport { BackInStock } from \"../BackInStock\";\nimport type { PaymentTypes } from \"../ProductWizard/ProductWizard.types\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./ProductWizardFootnotes.styles\";\nimport type { ProductWizardFootnotesProps } from \"./ProductWizardFootnotes.types\";\n\nconst PaymentCardSrcLink =\n typeof PaymentCard === \"string\" ? PaymentCard : PaymentCard.src;\nconst PaymentApplePaySrcLink =\n typeof PaymentApplePay === \"string\" ? PaymentApplePay : PaymentApplePay.src;\nconst PaymentGooglePaySrcLink =\n typeof PaymentGooglePay === \"string\"\n ? PaymentGooglePay\n : PaymentGooglePay.src;\n\nconst PaymentCardSrc = {\n src: PaymentCardSrcLink,\n alt: \"Card\",\n width: 24,\n height: 25,\n};\n\nconst PaymentApplePaySrc = {\n src: PaymentApplePaySrcLink,\n alt: \"Apple Pay\",\n width: 26,\n height: 19,\n};\n\nconst PaymentGooglePaySrc = {\n src: PaymentGooglePaySrcLink,\n alt: \"Google Pay\",\n width: 30,\n height: 19,\n};\n\nconst getPaymentIcon = (type: keyof PaymentTypes) => {\n switch (type) {\n case \"applePay\": {\n return PaymentApplePaySrc;\n }\n case \"googlePay\": {\n return PaymentGooglePaySrc;\n }\n case \"card\": {\n return PaymentCardSrc;\n }\n }\n};\n\nexport const ProductWizardFootnotes = ({\n maxRelevantLimitAddToCartQuantity,\n // relevantLimitQuantity,\n limitsDisabled,\n requiresLogin,\n showLimitError,\n translations,\n enableLimitAndBackInStock,\n backInStockProps,\n className,\n availablePaymentMethods,\n renderImage,\n}: ProductWizardFootnotesProps) => {\n // #############################################################################\n // Limitations\n // #############################################################################\n const limitErrorNode = useMemo(() => {\n if (limitsDisabled) {\n return;\n }\n\n if (requiresLogin) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitedToBuy}\n </S.ErrorText>\n );\n }\n\n if (maxRelevantLimitAddToCartQuantity === 0) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitReached}\n </S.ErrorText>\n );\n }\n\n if (\n maxRelevantLimitAddToCartQuantity != null &&\n maxRelevantLimitAddToCartQuantity > 0 &&\n showLimitError\n ) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitErrorPer}\n </S.ErrorText>\n );\n }\n\n return undefined;\n }, [\n limitsDisabled,\n requiresLogin,\n maxRelevantLimitAddToCartQuantity,\n showLimitError,\n translations.errors.limitedToBuy,\n translations.errors.limitReached,\n translations.errors.limitErrorPer,\n ]);\n\n const getCardIcons = useCallback(() => {\n const hasPaymentMethods =\n availablePaymentMethods &&\n Object.keys(availablePaymentMethods).filter((item) => {\n return !!availablePaymentMethods[\n item as keyof typeof availablePaymentMethods\n ];\n }).length > 0;\n\n if (!availablePaymentMethods || !hasPaymentMethods) {\n return;\n }\n\n return (\n <S.ImageWrap>\n {Object.keys(availablePaymentMethods).map((key) => {\n const src = getPaymentIcon(key);\n\n return (\n <S.PaymentImage\n key={key}\n renderImage={renderImage}\n asset={src}\n sizes={`${src.width}px`}\n />\n );\n })}\n </S.ImageWrap>\n );\n }, [availablePaymentMethods, renderImage]);\n\n const footnotes = useMemo(\n () => (\n <>\n {getCardIcons()}\n {translations?.footnotes?.shipping?.loading ? (\n <S.SkeletonFootnote maxWidth={120} />\n ) : (\n translations?.footnotes?.shipping?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={box} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.shipping.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )}\n {translations?.footnotes?.warranty && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={warranty} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>{translations.footnotes.warranty}</S.FootnoteText>\n </S.IconTextWrap>\n )}\n {/* Hide limits */}\n {/* {translations?.footnotes?.limit?.loading ? (\n <S.SkeletonFootnote maxWidth={200} />\n ) : (\n !!relevantLimitQuantity &&\n translations?.footnotes?.limit?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={hand} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.limit.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )} */}\n </>\n ),\n [\n getCardIcons,\n translations.footnotes.shipping?.loading,\n translations.footnotes.shipping.value,\n translations.footnotes.warranty,\n ],\n );\n\n /**\n * Does the footnotes have any content\n */\n const hasFootnotes = useMemo(\n () => !!footnotes.props.children.filter((child: unknown) => !!child).length,\n [footnotes.props.children],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!hasFootnotes && !enableLimitAndBackInStock && !limitErrorNode) {\n return null;\n }\n\n return (\n <S.Wrap className={className}>\n {enableLimitAndBackInStock && (\n <>\n {backInStockProps && <BackInStock {...backInStockProps} />}\n {limitErrorNode}\n </>\n )}\n <S.FootnoteWrap>{footnotes}</S.FootnoteWrap>\n </S.Wrap>\n );\n};\n"],"names":["PaymentCardSrcLink","PaymentCard","src","PaymentApplePaySrcLink","PaymentApplePay","PaymentGooglePaySrcLink","PaymentGooglePay","PaymentCardSrc","alt","width","height","PaymentApplePaySrc","PaymentGooglePaySrc","getPaymentIcon","type","ProductWizardFootnotes","maxRelevantLimitAddToCartQuantity","limitsDisabled","requiresLogin","showLimitError","translations","enableLimitAndBackInStock","backInStockProps","className","availablePaymentMethods","renderImage","limitErrorNode","useMemo","jsx","S.ErrorText","children","errors","limitedToBuy","limitReached","limitErrorPer","getCardIcons","useCallback","hasPaymentMethods","Object","keys","filter","item","length","S.ImageWrap","map","key","S.PaymentImage","asset","sizes","footnotes","jsxs","Fragment","shipping","loading","S.SkeletonFootnote","maxWidth","value","S.IconTextWrap","S.IconWrap","StyleableSvgImage","box","S.FootnoteText","warranty","hasFootnotes","props","child","S.Wrap","BackInStock","S.FootnoteWrap"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,MAAMA,kBACJ,GAAA,OAAOC,oBAAgB,KAAA,QAAA,GAAWA,uBAAcA,oBAAY,CAAAC,GAAA;AAC9D,MAAMC,sBACJ,GAAA,OAAOC,wBAAoB,KAAA,QAAA,GAAWA,2BAAkBA,wBAAgB,CAAAF,GAAA;AAC1E,MAAMG,uBACJ,GAAA,OAAOC,yBAAqB,KAAA,QAAA,GACxBA,4BACAA,yBAAiB,CAAAJ,GAAA;AAEvB,MAAMK,cAAiB,GAAA;EACrBL,GAAK,EAAAF,kBAAA;EACL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AACiC,YAAA,IAAgB,CAAC1C,yBAAA,IAA6B,CAACK,cAAgB,EAAA;IAC3D,OAAA,IAAA;EACT;EAEA,OAAA,eACGwB,IAAA,CAAAgB,IAAA,EAAA;IAAO3C,SACL;IAAAO,QAAA,EAAA,CAAAT,yBAAA,mBAEI6B,IAAA,CAAAC,QAAA,EAAA;MAAArB,QAAA,EAAA,CAAoBR,gBAAA,IAAA,eAAAM,GAAA,CAACuC,WAAa,EAAA;QAAA,GAAG7C;MAAkB,CAAA,CAAA,EACvDI,cAAA;KACH,CAAA,EAED,eAAAE,GAAA,CAAAwC,YAAA,EAAA;MAAgBtC,QAAU,EAAAmB;IAAA,CAAA,CAAA;EAC7B,CAAA,CAAA;AAEJ,CAAA;"}
|
|
1
|
+
{"version":3,"file":"ProductWizardFootnotes.mjs","sources":["../../../src/components/ProductWizardFootnotes/ProductWizardFootnotes.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\n\nimport PaymentApplePay from \"../../assets/icons/payment-apple-pay.svg\";\nimport PaymentCard from \"../../assets/icons/payment-card.svg\";\nimport PaymentGooglePay from \"../../assets/icons/payment-google-pay.svg\";\nimport {\n box,\n // hand,\n warranty,\n} from \"../../assets/icons/wizard\";\nimport { BackInStock } from \"../BackInStock\";\nimport type { PaymentTypes } from \"../ProductWizard/ProductWizard.types\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./ProductWizardFootnotes.styles\";\nimport type { ProductWizardFootnotesProps } from \"./ProductWizardFootnotes.types\";\n\nconst PaymentCardSrcLink =\n typeof PaymentCard === \"string\" ? PaymentCard : PaymentCard.src;\nconst PaymentApplePaySrcLink =\n typeof PaymentApplePay === \"string\" ? PaymentApplePay : PaymentApplePay.src;\nconst PaymentGooglePaySrcLink =\n typeof PaymentGooglePay === \"string\"\n ? PaymentGooglePay\n : PaymentGooglePay.src;\n\nconst PaymentCardSrc = {\n src: PaymentCardSrcLink,\n alt: \"Card\",\n width: 26,\n height: 21,\n};\n\nconst PaymentApplePaySrc = {\n src: PaymentApplePaySrcLink,\n alt: \"Apple Pay\",\n width: 26,\n height: 21,\n};\n\nconst PaymentGooglePaySrc = {\n src: PaymentGooglePaySrcLink,\n alt: \"Google Pay\",\n width: 26,\n height: 21,\n};\n\nconst getPaymentIcon = (type: keyof PaymentTypes) => {\n switch (type) {\n case \"applePay\": {\n return PaymentApplePaySrc;\n }\n case \"googlePay\": {\n return PaymentGooglePaySrc;\n }\n case \"card\": {\n return PaymentCardSrc;\n }\n }\n};\n\nexport const ProductWizardFootnotes = ({\n maxRelevantLimitAddToCartQuantity,\n // relevantLimitQuantity,\n limitsDisabled,\n requiresLogin,\n showLimitError,\n translations,\n enableLimitAndBackInStock,\n backInStockProps,\n className,\n availablePaymentMethods,\n renderImage,\n}: ProductWizardFootnotesProps) => {\n // #############################################################################\n // Limitations\n // #############################################################################\n const limitErrorNode = useMemo(() => {\n if (limitsDisabled) {\n return;\n }\n\n if (requiresLogin) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitedToBuy}\n </S.ErrorText>\n );\n }\n\n if (maxRelevantLimitAddToCartQuantity === 0) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitReached}\n </S.ErrorText>\n );\n }\n\n if (\n maxRelevantLimitAddToCartQuantity != null &&\n maxRelevantLimitAddToCartQuantity > 0 &&\n showLimitError\n ) {\n return (\n <S.ErrorText data-test-id=\"max-limit-error\">\n {translations.errors.limitErrorPer}\n </S.ErrorText>\n );\n }\n\n return undefined;\n }, [\n limitsDisabled,\n requiresLogin,\n maxRelevantLimitAddToCartQuantity,\n showLimitError,\n translations.errors.limitedToBuy,\n translations.errors.limitReached,\n translations.errors.limitErrorPer,\n ]);\n\n const getCardIcons = useCallback(() => {\n const hasPaymentMethods =\n availablePaymentMethods &&\n Object.keys(availablePaymentMethods).filter((item) => {\n return !!availablePaymentMethods[\n item as keyof typeof availablePaymentMethods\n ];\n }).length > 0;\n\n if (!availablePaymentMethods || !hasPaymentMethods) {\n return;\n }\n\n return (\n <S.ImageWrap>\n {Object.keys(availablePaymentMethods).map((key) => {\n const src = getPaymentIcon(key);\n\n return (\n <S.PaymentImage\n key={key}\n renderImage={renderImage}\n asset={src}\n sizes={`${src.width}px`}\n />\n );\n })}\n </S.ImageWrap>\n );\n }, [availablePaymentMethods, renderImage]);\n\n const footnotes = useMemo(\n () => (\n <>\n {getCardIcons()}\n {translations?.footnotes?.shipping?.loading ? (\n <S.SkeletonFootnote maxWidth={120} />\n ) : (\n translations?.footnotes?.shipping?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={box} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.shipping.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )}\n {translations?.footnotes?.warranty && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={warranty} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>{translations.footnotes.warranty}</S.FootnoteText>\n </S.IconTextWrap>\n )}\n {/* Hide limits */}\n {/* {translations?.footnotes?.limit?.loading ? (\n <S.SkeletonFootnote maxWidth={200} />\n ) : (\n !!relevantLimitQuantity &&\n translations?.footnotes?.limit?.value && (\n <S.IconTextWrap>\n <S.IconWrap>\n <StyleableSvgImage src={hand} width={20} height={20} />\n </S.IconWrap>\n\n <S.FootnoteText>\n {translations.footnotes.limit.value}\n </S.FootnoteText>\n </S.IconTextWrap>\n )\n )} */}\n </>\n ),\n [\n getCardIcons,\n translations.footnotes.shipping?.loading,\n translations.footnotes.shipping.value,\n translations.footnotes.warranty,\n ],\n );\n\n /**\n * Does the footnotes have any content\n */\n const hasFootnotes = useMemo(\n () => !!footnotes.props.children.filter((child: unknown) => !!child).length,\n [footnotes.props.children],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n if (!hasFootnotes && !enableLimitAndBackInStock && !limitErrorNode) {\n return null;\n }\n\n return (\n <S.Wrap className={className}>\n {enableLimitAndBackInStock && (\n <>\n {backInStockProps && <BackInStock {...backInStockProps} />}\n {limitErrorNode}\n </>\n )}\n <S.FootnoteWrap>{footnotes}</S.FootnoteWrap>\n </S.Wrap>\n );\n};\n"],"names":["PaymentCardSrcLink","PaymentCard","src","PaymentApplePaySrcLink","PaymentApplePay","PaymentGooglePaySrcLink","PaymentGooglePay","PaymentCardSrc","alt","width","height","PaymentApplePaySrc","PaymentGooglePaySrc","getPaymentIcon","type","ProductWizardFootnotes","maxRelevantLimitAddToCartQuantity","limitsDisabled","requiresLogin","showLimitError","translations","enableLimitAndBackInStock","backInStockProps","className","availablePaymentMethods","renderImage","limitErrorNode","useMemo","jsx","S.ErrorText","children","errors","limitedToBuy","limitReached","limitErrorPer","getCardIcons","useCallback","hasPaymentMethods","Object","keys","filter","item","length","S.ImageWrap","map","key","S.PaymentImage","asset","sizes","footnotes","jsxs","Fragment","shipping","loading","S.SkeletonFootnote","maxWidth","value","S.IconTextWrap","S.IconWrap","StyleableSvgImage","box","S.FootnoteText","warranty","hasFootnotes","props","child","S.Wrap","BackInStock","S.FootnoteWrap"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,MAAMA,kBACJ,GAAA,OAAOC,oBAAgB,KAAA,QAAA,GAAWA,uBAAcA,oBAAY,CAAAC,GAAA;AAC9D,MAAMC,sBACJ,GAAA,OAAOC,wBAAoB,KAAA,QAAA,GAAWA,2BAAkBA,wBAAgB,CAAAF,GAAA;AAC1E,MAAMG,uBACJ,GAAA,OAAOC,yBAAqB,KAAA,QAAA,GACxBA,4BACAA,yBAAiB,CAAAJ,GAAA;AAEvB,MAAMK,cAAiB,GAAA;EACrBL,GAAK,EAAAF,kBAAA;EACLQ,GAAK,EAAA,MAAA;EACLC,KAAO,EAAA,EAAA;EACPC,MAAQ,EAAA;AACV,CAAA;AAEA,MAAMC,kBAAqB,GAAA;EACzBT,GAAK,EAAAC,sBAAA;EACLK,GAAK,EAAA,WAAA;EACLC,KAAO,EAA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yBAAA,mBAEI6B,IAAA,CAAAC,QAAA,EAAA;MAAArB,QAAA,EAAA,CAAoBR,gBAAA,IAAA,eAAAM,GAAA,CAACuC,WAAa,EAAA;QAAA,GAAG7C;MAAkB,CAAA,CAAA,EACvDI,cAAA;KACH,CAAA,EAED,eAAAE,GAAA,CAAAwC,YAAA,EAAA;MAAgBtC,QAAU,EAAAmB;IAAA,CAAA,CAAA;EAC7B,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -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/
|
|
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/
|
|
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/
|
|
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/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/attention2.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/attention2.svg";
|
|
3
3
|
//# sourceMappingURL=attention.svg.mjs.map
|
|
@@ -14,7 +14,7 @@ require('./assets/volume-on.svg.js');
|
|
|
14
14
|
var VideoPlayer_styles = require('./VideoPlayer.styles.js');
|
|
15
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/pause.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");
|
|
@@ -12,7 +12,7 @@ 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
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/pause.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/pause.svg";
|
|
2
|
+
export { default } from "../../../assets/pause.svg";
|
|
3
3
|
//# sourceMappingURL=pause.svg.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../assets/ai-
|
|
2
|
-
export { default } from "../../../../assets/ai-
|
|
1
|
+
export * from "../../../../assets/ai-bullet2.jpg";
|
|
2
|
+
export { default } from "../../../../assets/ai-bullet2.jpg";
|
|
3
3
|
//# sourceMappingURL=ai-bullet.jpg.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../assets/ai-
|
|
2
|
-
export { default } from "../../../../assets/ai-
|
|
1
|
+
export * from "../../../../assets/ai-dslr.jpg";
|
|
2
|
+
export { default } from "../../../../assets/ai-dslr.jpg";
|
|
3
3
|
//# sourceMappingURL=ai-dslr.jpg.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var image = require("../../../../assets/g4-
|
|
6
|
+
var image = require("../../../../assets/g4-instant.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/g4-
|
|
2
|
-
export { default } from "../../../../assets/g4-
|
|
1
|
+
export * from "../../../../assets/g4-instant.jpg";
|
|
2
|
+
export { default } from "../../../../assets/g4-instant.jpg";
|
|
3
3
|
//# sourceMappingURL=g4-instant.jpg.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../assets/g5-
|
|
2
|
-
export { default } from "../../../../assets/g5-
|
|
1
|
+
export * from "../../../../assets/g5-flex2.jpg";
|
|
2
|
+
export { default } from "../../../../assets/g5-flex2.jpg";
|
|
3
3
|
//# sourceMappingURL=g5-flex.jpg.mjs.map
|