@gem-sdk/components 2.0.0-dev.693 → 2.0.0-dev.695

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist/cjs/builder.js +6 -12
  2. package/dist/cjs/index.js +32 -34
  3. package/dist/cjs/index.liquid.js +10 -16
  4. package/dist/cjs/next.js +1 -3
  5. package/dist/cjs/product/components/ProductImagesV2/common/common.js +2 -1
  6. package/dist/cjs/product/index.js +4 -6
  7. package/dist/cjs/product/next.js +0 -4
  8. package/dist/cjs/setting.js +76 -78
  9. package/dist/esm/builder.js +0 -6
  10. package/dist/esm/index.js +0 -1
  11. package/dist/esm/index.liquid.js +0 -3
  12. package/dist/esm/next.js +1 -3
  13. package/dist/esm/product/components/ProductImagesV2/common/common.js +2 -1
  14. package/dist/esm/product/index.js +24 -26
  15. package/dist/esm/product/next.js +0 -4
  16. package/dist/esm/setting.js +0 -2
  17. package/dist/types/index.d.ts +116 -551
  18. package/package.json +4 -4
  19. package/dist/cjs/product/components/ProductImagesV3/common/common.js +0 -360
  20. package/dist/cjs/product/components/ProductImagesV3/common/getAttr.js +0 -192
  21. package/dist/cjs/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -26
  22. package/dist/cjs/product/components/ProductImagesV3/common/getClasses.js +0 -94
  23. package/dist/cjs/product/components/ProductImagesV3/common/getStyle.js +0 -303
  24. package/dist/cjs/product/components/ProductImagesV3/common/hoverAction.js +0 -95
  25. package/dist/cjs/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -59
  26. package/dist/cjs/product/components/ProductImagesV3/common/productGallery.js +0 -266
  27. package/dist/cjs/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -63
  28. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -36
  29. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -109
  30. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -139
  31. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -100
  32. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -77
  33. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -300
  34. package/dist/cjs/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -44
  35. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -83
  36. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -182
  37. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -30
  38. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -239
  39. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -28
  40. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -144
  41. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -14
  42. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -54
  43. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -53
  44. package/dist/cjs/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -55
  45. package/dist/cjs/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -41
  46. package/dist/cjs/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -134
  47. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -203
  48. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -87
  49. package/dist/cjs/product/components/ProductImagesV3/index.js +0 -291
  50. package/dist/cjs/product/components/ProductImagesV3/index.liquid.js +0 -153
  51. package/dist/cjs/product/setting/product-image-v3/ProductFeatureImage.js +0 -252
  52. package/dist/cjs/product/setting/product-image-v3/ProductGalleryImage.js +0 -251
  53. package/dist/cjs/product/setting/product-image-v3/ProductImages.js +0 -74
  54. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -388
  55. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -519
  56. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/index.js +0 -337
  57. package/dist/cjs/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -118
  58. package/dist/cjs/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -119
  59. package/dist/cjs/product/setting/product-image-v3/configs/uiV1.js +0 -237
  60. package/dist/cjs/product/setting/product-image-v3/configs/uiV2.js +0 -491
  61. package/dist/cjs/swiper-carousel/arrow/Arrow.js +0 -52
  62. package/dist/cjs/swiper-carousel/arrow/Arrow.liquid.js +0 -46
  63. package/dist/cjs/swiper-carousel/arrow/common/common.js +0 -119
  64. package/dist/cjs/swiper-carousel/arrow/common/getClass.js +0 -50
  65. package/dist/cjs/swiper-carousel/arrow/common/getStyle.js +0 -84
  66. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.js +0 -34
  67. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -38
  68. package/dist/cjs/swiper-carousel/carousel-item/common/getClass.js +0 -29
  69. package/dist/cjs/swiper-carousel/carousel-item/common/getStyle.js +0 -79
  70. package/dist/cjs/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -22
  71. package/dist/cjs/swiper-carousel/components/common/carousel.js +0 -98
  72. package/dist/cjs/swiper-carousel/components/const/index.js +0 -5
  73. package/dist/cjs/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -34
  74. package/dist/cjs/swiper-carousel/components/plugins/AnimationPlugin.js +0 -42
  75. package/dist/cjs/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -105
  76. package/dist/cjs/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -15
  77. package/dist/cjs/swiper-carousel/components/plugins/MutationPlugin.js +0 -45
  78. package/dist/cjs/swiper-carousel/dots/Dots.js +0 -51
  79. package/dist/cjs/swiper-carousel/dots/Dots.liquid.js +0 -26
  80. package/dist/cjs/swiper-carousel/dots/common/common.js +0 -28
  81. package/dist/cjs/swiper-carousel/dots/common/getClass.js +0 -40
  82. package/dist/cjs/swiper-carousel/dots/common/getStyle.js +0 -33
  83. package/dist/cjs/swiper-carousel/dots/hook/useDotsSetting.js +0 -21
  84. package/dist/cjs/swiper-carousel/index.js +0 -17
  85. package/dist/cjs/swiper-carousel/next.js +0 -22
  86. package/dist/cjs/swiper-carousel/root/Swiper.js +0 -128
  87. package/dist/cjs/swiper-carousel/root/Swiper.liquid.js +0 -104
  88. package/dist/cjs/swiper-carousel/root/common/getAttr.js +0 -25
  89. package/dist/cjs/swiper-carousel/root/common/getClass.js +0 -135
  90. package/dist/cjs/swiper-carousel/root/common/getData.js +0 -56
  91. package/dist/cjs/swiper-carousel/root/common/getStyle.js +0 -66
  92. package/dist/cjs/swiper-carousel/root/hook/useCarousel.js +0 -482
  93. package/dist/cjs/swiper-carousel/setting/Swiper.js +0 -42
  94. package/dist/cjs/swiper-carousel/setting/SwiperItem.js +0 -40
  95. package/dist/cjs/swiper-carousel/setting/configs/presets.js +0 -87
  96. package/dist/cjs/swiper-carousel/setting/configs/settingV2.js +0 -822
  97. package/dist/cjs/swiper-carousel/setting/configs/uiV2.js +0 -718
  98. package/dist/esm/product/components/ProductImagesV3/common/common.js +0 -344
  99. package/dist/esm/product/components/ProductImagesV3/common/getAttr.js +0 -189
  100. package/dist/esm/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -24
  101. package/dist/esm/product/components/ProductImagesV3/common/getClasses.js +0 -83
  102. package/dist/esm/product/components/ProductImagesV3/common/getStyle.js +0 -292
  103. package/dist/esm/product/components/ProductImagesV3/common/hoverAction.js +0 -92
  104. package/dist/esm/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -53
  105. package/dist/esm/product/components/ProductImagesV3/common/productGallery.js +0 -251
  106. package/dist/esm/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -59
  107. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -32
  108. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -105
  109. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -135
  110. package/dist/esm/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -96
  111. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -73
  112. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -296
  113. package/dist/esm/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -40
  114. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -79
  115. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -178
  116. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -26
  117. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -235
  118. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -24
  119. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -140
  120. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -12
  121. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -52
  122. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -51
  123. package/dist/esm/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -53
  124. package/dist/esm/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -39
  125. package/dist/esm/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -132
  126. package/dist/esm/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -201
  127. package/dist/esm/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -85
  128. package/dist/esm/product/components/ProductImagesV3/index.js +0 -287
  129. package/dist/esm/product/components/ProductImagesV3/index.liquid.js +0 -149
  130. package/dist/esm/product/setting/product-image-v3/ProductFeatureImage.js +0 -248
  131. package/dist/esm/product/setting/product-image-v3/ProductGalleryImage.js +0 -248
  132. package/dist/esm/product/setting/product-image-v3/ProductImages.js +0 -70
  133. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -384
  134. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -516
  135. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/index.js +0 -335
  136. package/dist/esm/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -116
  137. package/dist/esm/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -117
  138. package/dist/esm/product/setting/product-image-v3/configs/uiV1.js +0 -235
  139. package/dist/esm/product/setting/product-image-v3/configs/uiV2.js +0 -489
  140. package/dist/esm/swiper-carousel/arrow/Arrow.js +0 -48
  141. package/dist/esm/swiper-carousel/arrow/Arrow.liquid.js +0 -42
  142. package/dist/esm/swiper-carousel/arrow/common/common.js +0 -111
  143. package/dist/esm/swiper-carousel/arrow/common/getClass.js +0 -48
  144. package/dist/esm/swiper-carousel/arrow/common/getStyle.js +0 -82
  145. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.js +0 -30
  146. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -34
  147. package/dist/esm/swiper-carousel/carousel-item/common/getClass.js +0 -27
  148. package/dist/esm/swiper-carousel/carousel-item/common/getStyle.js +0 -77
  149. package/dist/esm/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -20
  150. package/dist/esm/swiper-carousel/components/common/carousel.js +0 -93
  151. package/dist/esm/swiper-carousel/components/const/index.js +0 -3
  152. package/dist/esm/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -30
  153. package/dist/esm/swiper-carousel/components/plugins/AnimationPlugin.js +0 -35
  154. package/dist/esm/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -103
  155. package/dist/esm/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -13
  156. package/dist/esm/swiper-carousel/components/plugins/MutationPlugin.js +0 -43
  157. package/dist/esm/swiper-carousel/dots/Dots.js +0 -47
  158. package/dist/esm/swiper-carousel/dots/Dots.liquid.js +0 -22
  159. package/dist/esm/swiper-carousel/dots/common/common.js +0 -26
  160. package/dist/esm/swiper-carousel/dots/common/getClass.js +0 -38
  161. package/dist/esm/swiper-carousel/dots/common/getStyle.js +0 -31
  162. package/dist/esm/swiper-carousel/dots/hook/useDotsSetting.js +0 -19
  163. package/dist/esm/swiper-carousel/index.js +0 -15
  164. package/dist/esm/swiper-carousel/next.js +0 -18
  165. package/dist/esm/swiper-carousel/root/Swiper.js +0 -124
  166. package/dist/esm/swiper-carousel/root/Swiper.liquid.js +0 -100
  167. package/dist/esm/swiper-carousel/root/common/getAttr.js +0 -23
  168. package/dist/esm/swiper-carousel/root/common/getClass.js +0 -133
  169. package/dist/esm/swiper-carousel/root/common/getData.js +0 -54
  170. package/dist/esm/swiper-carousel/root/common/getStyle.js +0 -64
  171. package/dist/esm/swiper-carousel/root/hook/useCarousel.js +0 -480
  172. package/dist/esm/swiper-carousel/setting/Swiper.js +0 -38
  173. package/dist/esm/swiper-carousel/setting/SwiperItem.js +0 -36
  174. package/dist/esm/swiper-carousel/setting/configs/presets.js +0 -85
  175. package/dist/esm/swiper-carousel/setting/configs/settingV2.js +0 -818
  176. package/dist/esm/swiper-carousel/setting/configs/uiV2.js +0 -713
@@ -1,287 +0,0 @@
1
- 'use client';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import { setDefaultWhenUndefineSetting, getAspectRatio } from './common/common.js';
4
- import { useProductShopifyEditLink, useProduct, useCurrentDevice, useCurrentVariant, useSelectedOption, useEditorMode, useProductStore, getResponsiveValueByScreen, filterToolbarPreview } from '@gem-sdk/core';
5
- import { useMemo, useState, useEffect, Children, isValidElement } from 'react';
6
- import FeatureImageWithGallery from './components/feature-gallery/FeatureImageWithGallery.js';
7
- import OnlyFeatureImage from './components/feature-only/OnlyFeatureImage.js';
8
- import ProductImagesLightBox from './components/lightbox/ProductImagesLightBox.js';
9
- import NoDataState from '../../../common/components/NoDataState.js';
10
- import { getProductImagesClassName } from './composables/getProductImagesClassName.js';
11
- import { getBorderActiveCss } from './common/getBorderActiveCss.js';
12
- import GalleryGrid from './components/gallery-grid/GalleryGrid.js';
13
-
14
- const getProductGallery = (product)=>{
15
- return product?.medias?.edges.map((img)=>{
16
- return img?.node;
17
- });
18
- };
19
- const LAYOUT_FEATURE_IMAGE_GALLERY = [
20
- 'bottom-left',
21
- 'bottom-center',
22
- 'left',
23
- 'right',
24
- 'inside-left',
25
- 'inside-right',
26
- 'inside-bottom'
27
- ];
28
- const ProductImagesV3 = (props)=>{
29
- const productImageProps = useMemo(()=>{
30
- return setDefaultWhenUndefineSetting(props);
31
- }, [
32
- props
33
- ]);
34
- const { redirectProductShopifyLink } = useProductShopifyEditLink();
35
- const { setting, styles, builderProps, builderAttrs, style, children } = productImageProps;
36
- const product = useProduct();
37
- const currentDevice = useCurrentDevice();
38
- const currentVariant = useCurrentVariant();
39
- const { isChangeSelectedOption } = useSelectedOption();
40
- const mode = useEditorMode();
41
- const setProductFeaturedImage = useProductStore((s)=>s.setProductFeaturedImage);
42
- // State
43
- const [openLightBox, setOpenLightBox] = useState(false);
44
- const getFirstVideo = (product)=>{
45
- return product?.medias?.edges.find((item)=>[
46
- 'VIDEO',
47
- 'EXTERNAL_VIDEO'
48
- ].includes(item?.node?.contentType ?? ''))?.node;
49
- };
50
- const getFirstImage = (product)=>{
51
- return product?.featuredImage;
52
- };
53
- const getFirst3DModal = (product)=>{
54
- return product?.medias?.edges.find((item)=>item?.node?.contentType === 'MODEL_3D')?.node;
55
- };
56
- const isFirstActiveFeatureImage = useMemo(()=>setting?.typeDisplay === 'all-images' && !isChangeSelectedOption, [
57
- isChangeSelectedOption,
58
- setting?.typeDisplay
59
- ]);
60
- const priorityFeatureImage = useMemo(()=>{
61
- if (isFirstActiveFeatureImage) {
62
- let priorityItem;
63
- switch(setting?.preDisplay){
64
- case '1st-images':
65
- priorityItem = getFirstImage(product);
66
- break;
67
- case '1st-3d-mode':
68
- priorityItem = getFirst3DModal(product);
69
- break;
70
- case '1st-video':
71
- priorityItem = getFirstVideo(product);
72
- break;
73
- case '1st-available-variant':
74
- priorityItem = currentVariant?.media;
75
- break;
76
- }
77
- setProductFeaturedImage(priorityItem);
78
- return priorityItem;
79
- }
80
- }, [
81
- isFirstActiveFeatureImage,
82
- setting?.preDisplay,
83
- setProductFeaturedImage,
84
- product,
85
- currentVariant?.media
86
- ]);
87
- const gallery = useMemo(()=>{
88
- const images = getProductGallery(product);
89
- if (!images?.length) return [
90
- {
91
- id: product?.featuredImage?.id || 'noImageError',
92
- src: product?.featuredImage?.src || 'https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif',
93
- width: product?.featuredImage?.width || 480,
94
- height: product?.featuredImage?.height || 480
95
- }
96
- ];
97
- return images;
98
- }, [
99
- product
100
- ]);
101
- const galleryIndex = useMemo(()=>{
102
- return gallery.reduce((curr, value, index)=>{
103
- if (value) {
104
- return {
105
- ...curr,
106
- [value.id]: index
107
- };
108
- }
109
- return curr;
110
- }, {});
111
- }, [
112
- gallery
113
- ]);
114
- const layout = useMemo(()=>{
115
- return getResponsiveValueByScreen(styles?.position, currentDevice);
116
- }, [
117
- currentDevice,
118
- styles?.position
119
- ]);
120
- const handleGalleryClick = (imageID, enableOpenLightBox)=>{
121
- handleClickSwitchImage(imageID);
122
- enableOpenLightBox && handleOpenLightBox();
123
- };
124
- const handleOpenLightBox = ()=>{
125
- setOpenLightBox(true);
126
- };
127
- const handleClickSwitchImage = (imageID)=>{
128
- if (!imageID) return;
129
- const index = galleryIndex[imageID];
130
- if (index !== undefined) {
131
- const fImage = gallery[index];
132
- if (fImage) {
133
- setProductFeaturedImage(fImage);
134
- }
135
- }
136
- };
137
- useEffect(()=>{
138
- if (currentVariant && !isFirstActiveFeatureImage) {
139
- const index = galleryIndex[currentVariant?.mediaId];
140
- if (index !== undefined) {
141
- const fImage = gallery[index] ?? product?.featuredImage;
142
- if (fImage) {
143
- setProductFeaturedImage(fImage);
144
- }
145
- }
146
- }
147
- }, [
148
- currentVariant,
149
- galleryIndex,
150
- gallery,
151
- product?.featuredImage,
152
- setProductFeaturedImage,
153
- isFirstActiveFeatureImage
154
- ]);
155
- const isRenderLightBox = useMemo(()=>{
156
- const isRender = getResponsiveValueByScreen(setting?.ftClickOpenLightBox, currentDevice) === 'popup' || getResponsiveValueByScreen(setting?.clickOpenLightBox, currentDevice);
157
- if (!isRender && mode === 'edit') {
158
- window?.parent?.postMessage?.(JSON.stringify({
159
- type: 'active-modal',
160
- value: open
161
- }), '*');
162
- }
163
- return isRender;
164
- }, [
165
- setting?.ftClickOpenLightBox,
166
- setting?.clickOpenLightBox,
167
- currentDevice,
168
- mode
169
- ]);
170
- const renderProductBadge = ()=>{
171
- return gallery.length > 0 ? Children.map(filterToolbarPreview(children), (child)=>{
172
- if (/*#__PURE__*/ isValidElement(child)) {
173
- return /*#__PURE__*/ jsx(child.type, {
174
- ...child.props,
175
- isInsideProductImage: true,
176
- navigationPosition: setting?.ftNavigationPosition,
177
- imageData: {
178
- imageShape: styles?.ftShape,
179
- imageAlign: styles?.align,
180
- imageLayout: styles?.position
181
- },
182
- dotData: {
183
- dotSize: setting?.ftDotSize,
184
- dotGapToCarousel: setting?.ftDotGapToCarousel,
185
- dotStyle: setting?.ftDotStyle
186
- }
187
- });
188
- }
189
- return null;
190
- }) : null;
191
- };
192
- const svg = `
193
- <svg viewBox="0 0 452 400" fill="none" xmlns="http://www.w3.org/2000/svg">
194
- <path d="M0 7.99999C0 3.58171 3.58172 0 8 0H444C448.418 0 452 3.58172 452 8V392C452 396.418 448.418 400 444 400H8C3.58173 400 0 396.418 0 392V7.99999Z" fill="#F9F9F9"/>
195
- <path d="M208.148 348.801C239.683 348.75 265.245 347.272 265.242 345.499C265.239 343.726 239.673 342.33 208.138 342.381C176.603 342.432 151.041 343.91 151.044 345.683C151.047 347.456 176.614 348.851 208.148 348.801Z" fill="#E6E6E6"/>
196
- <path d="M225.946 320.879C225.946 320.879 169.954 292.883 177.953 214.227C185.952 135.571 183.286 143.57 183.286 143.57C183.286 143.57 196.617 99.5762 220.614 83.5784C220.614 83.5784 163.289 24.9199 117.962 131.572C117.962 131.572 105.963 195.563 115.295 238.224C124.627 280.884 145.958 315.546 145.958 315.546C145.958 315.546 165.955 335.543 188.618 335.543C211.282 335.543 225.946 320.879 225.946 320.879Z" fill="#CCCCCC"/>
197
- <path d="M318.6 273.553C318.6 273.553 286.605 358.875 186.619 342.877C86.6325 326.879 113.295 153.57 113.295 153.57C113.295 153.57 102.123 282.854 160.581 320.874C176.779 331.409 197.935 331.504 213.408 319.93C223.66 312.261 232.445 298.883 231.279 275.553L318.6 273.553Z" fill="#E6E6E6"/>
198
- <path d="M315.483 111.223C315.483 111.223 269.94 28.9197 171.287 56.9158C110.135 82.9705 111.274 150.057 111.274 150.057C103.9 261.289 183.264 259.493 201.95 140.904C205.231 120.082 198.617 108.242 198.617 108.242C198.617 108.242 189.285 136.238 160.622 142.237C131.915 148.246 127.007 138.688 127.96 124.24C127.97 124.095 127.979 123.952 127.989 123.809C128.775 112.106 133.316 100.968 140.937 92.0518C157.37 72.918 193.19 44.9769 231.279 103.576L233.945 110.169C233.945 110.169 281.036 122.87 315.483 111.223Z" fill="#E6E6E6"/>
199
- <path d="M241.931 108.909C235.042 108.916 228.438 111.656 223.567 116.528C218.696 121.399 215.956 128.003 215.948 134.892V257.167C215.956 264.339 218.809 271.214 223.88 276.286C228.951 281.357 235.827 284.21 242.999 284.218H307.331C315.974 284.208 324.26 280.77 330.371 274.659C336.483 268.547 339.921 260.261 339.931 251.618V141.762C339.921 133.052 336.456 124.701 330.297 118.542C324.138 112.383 315.787 108.918 307.077 108.909L241.931 108.909Z" fill="#ADADAD"/>
200
- <path d="M253.087 114.24C249.426 114.244 245.916 115.7 243.327 118.289C240.738 120.878 239.282 124.388 239.278 128.049V265.741C239.282 269.402 240.738 272.912 243.327 275.501C245.916 278.09 249.426 279.546 253.087 279.55H314.265C321.6 279.542 328.631 276.624 333.818 271.438C339.004 266.251 341.922 259.219 341.93 251.885V138.614C341.923 132.152 339.353 125.956 334.783 121.387C330.214 116.817 324.018 114.247 317.556 114.24H253.087Z" fill="#D2D2D2"/>
201
- <path opacity="0.1" d="M250.832 115.006C249.11 116.287 247.711 117.953 246.747 119.87C245.782 121.788 245.279 123.904 245.277 126.05V263.742C245.281 267.403 246.737 270.913 249.326 273.502C251.915 276.091 255.425 277.547 259.086 277.551H320.264C322.585 277.542 324.895 277.24 327.14 276.651C323.01 278.99 318.344 280.218 313.598 280.217H252.421C248.759 280.213 245.249 278.757 242.66 276.168C240.072 273.579 238.615 270.069 238.611 266.408V128.716C238.616 125.331 239.863 122.065 242.116 119.538C244.368 117.011 247.469 115.399 250.832 115.006Z" fill="black"/>
202
- <path d="M220.614 180.899C227.977 180.899 233.945 173.439 233.945 164.235C233.945 155.032 227.977 147.571 220.614 147.571C213.251 147.571 207.282 155.032 207.282 164.235C207.282 173.439 213.251 180.899 220.614 180.899Z" fill="#D6D6D6"/>
203
- <path opacity="0.2" d="M229.946 164.235C229.946 156.173 225.366 149.45 219.281 147.905C220.152 147.684 221.048 147.571 221.947 147.571C229.31 147.571 235.278 155.032 235.278 164.235C235.278 173.439 229.31 180.9 221.947 180.9C221.048 180.899 220.152 180.787 219.281 180.565C225.366 179.021 229.946 172.297 229.946 164.235Z" fill="black"/>
204
- <path d="M217.948 206.895V241.556C217.948 242.794 218.439 243.981 219.314 244.856C220.189 245.731 221.376 246.222 222.614 246.222C223.851 246.222 225.038 245.731 225.913 244.856C226.788 243.981 227.28 242.794 227.28 241.556V206.895C227.28 205.657 226.788 204.47 225.913 203.595C225.038 202.72 223.851 202.229 222.614 202.229C221.376 202.229 220.189 202.72 219.314 203.595C218.439 204.47 217.948 205.657 217.948 206.895Z" fill="#D6D6D6"/>
205
- <path opacity="0.2" d="M225.28 241.556V206.895C225.276 205.893 224.95 204.92 224.35 204.119C223.749 203.317 222.907 202.731 221.947 202.446C222.378 202.308 222.828 202.235 223.28 202.229C224.517 202.23 225.703 202.722 226.578 203.597C227.453 204.472 227.945 205.657 227.946 206.895V241.556C227.945 242.793 227.453 243.979 226.578 244.854C225.703 245.729 224.517 246.221 223.28 246.222C222.828 246.216 222.378 246.143 221.947 246.005C222.907 245.72 223.749 245.134 224.35 244.332C224.95 243.531 225.276 242.558 225.28 241.556Z" fill="black"/>
206
- <path d="M151.29 278.218C154.972 278.218 157.956 275.234 157.956 271.552C157.956 267.871 154.972 264.887 151.29 264.887C147.609 264.887 144.624 267.871 144.624 271.552C144.624 275.234 147.609 278.218 151.29 278.218Z" fill="white"/>
207
- <path opacity="0.3" d="M155.29 271.552C155.289 270.016 154.759 268.527 153.787 267.337C152.815 266.147 151.462 265.329 149.957 265.021C150.925 264.824 151.926 264.844 152.885 265.081C153.845 265.317 154.74 265.765 155.505 266.39C156.27 267.015 156.887 267.802 157.311 268.695C157.735 269.588 157.954 270.564 157.954 271.552C157.954 272.541 157.735 273.517 157.311 274.41C156.887 275.302 156.27 276.09 155.505 276.715C154.74 277.34 153.845 277.787 152.885 278.024C151.926 278.261 150.925 278.281 149.957 278.084C151.462 277.776 152.815 276.958 153.787 275.768C154.759 274.578 155.289 273.089 155.29 271.552Z" fill="black"/>
208
- <path d="M148.284 251.766C151.966 251.766 154.95 248.782 154.95 245.1C154.95 241.419 151.966 238.435 148.284 238.435C144.603 238.435 141.618 241.419 141.618 245.1C141.618 248.782 144.603 251.766 148.284 251.766Z" fill="white"/>
209
- <path opacity="0.3" d="M152.284 245.1C152.283 243.564 151.753 242.075 150.781 240.885C149.809 239.694 148.456 238.876 146.951 238.569C147.919 238.371 148.92 238.392 149.879 238.629C150.839 238.865 151.734 239.312 152.499 239.938C153.264 240.563 153.881 241.35 154.305 242.243C154.729 243.136 154.948 244.112 154.948 245.1C154.948 246.089 154.729 247.065 154.305 247.957C153.881 248.85 153.264 249.638 152.499 250.263C151.734 250.888 150.839 251.335 149.879 251.572C148.92 251.809 147.919 251.829 146.951 251.632C148.456 251.324 149.809 250.506 150.781 249.316C151.753 248.126 152.283 246.637 152.284 245.1Z" fill="black"/>
210
- <path d="M155.29 130.239C158.971 130.239 161.955 127.254 161.955 123.573C161.955 119.892 158.971 116.907 155.29 116.907C151.608 116.907 148.624 119.892 148.624 123.573C148.624 127.254 151.608 130.239 155.29 130.239Z" fill="white"/>
211
- <path opacity="0.3" d="M159.289 123.573C159.289 122.037 158.758 120.547 157.786 119.357C156.815 118.167 155.462 117.349 153.956 117.042C154.925 116.844 155.925 116.865 156.885 117.101C157.844 117.338 158.739 117.785 159.504 118.41C160.27 119.035 160.887 119.823 161.31 120.716C161.734 121.609 161.954 122.585 161.954 123.573C161.954 124.561 161.734 125.537 161.31 126.43C160.887 127.323 160.27 128.111 159.504 128.736C158.739 129.361 157.844 129.808 156.885 130.045C155.925 130.281 154.925 130.302 153.956 130.104C155.462 129.797 156.815 128.979 157.786 127.789C158.758 126.599 159.289 125.109 159.289 123.573Z" fill="black"/>
212
- <path opacity="0.2" d="M293.196 217.389C300.559 217.389 306.528 209.928 306.528 200.724C306.528 191.521 300.559 184.06 293.196 184.06C285.833 184.06 279.865 191.521 279.865 200.724C279.865 209.928 285.833 217.389 293.196 217.389Z" fill="white"/>
213
- <path opacity="0.2" d="M293.196 231.862C306.954 231.862 318.106 217.921 318.106 200.724C318.106 183.527 306.954 169.586 293.196 169.586C279.439 169.586 268.286 183.527 268.286 200.724C268.286 217.921 279.439 231.862 293.196 231.862Z" fill="white"/>
214
- <path opacity="0.2" d="M293.196 247.637C313.923 247.637 330.726 226.634 330.726 200.725C330.726 174.816 313.923 153.812 293.196 153.812C272.469 153.812 255.666 174.816 255.666 200.725C255.666 226.634 272.469 247.637 293.196 247.637Z" fill="white"/>
215
- </svg>
216
- `;
217
- const noDataChildren = /*#__PURE__*/ jsx(NoDataState, {
218
- elementType: "secondary",
219
- description: "Catch your customer's attention with attracted media.",
220
- descriptionActions: [
221
- {
222
- text: 'Add image',
223
- callback: redirectProductShopifyLink
224
- },
225
- {
226
- text: 'sync data',
227
- callback: 'syncProduct'
228
- }
229
- ],
230
- additionalMedia: svg
231
- });
232
- const { wrapperClasses } = getProductImagesClassName(props);
233
- return /*#__PURE__*/ jsxs("div", {
234
- ...builderAttrs,
235
- className: wrapperClasses,
236
- style: style,
237
- children: [
238
- /*#__PURE__*/ jsx("style", {
239
- dangerouslySetInnerHTML: {
240
- __html: getBorderActiveCss({
241
- settings: {
242
- ...setting,
243
- ...styles
244
- },
245
- uid: builderProps?.uid,
246
- type: 'React'
247
- })
248
- }
249
- }),
250
- LAYOUT_FEATURE_IMAGE_GALLERY.includes(layout) && /*#__PURE__*/ jsx(FeatureImageWithGallery, {
251
- ...productImageProps,
252
- gallery: gallery,
253
- priorityFeatureImage: priorityFeatureImage,
254
- onHandleClickImage: (imageID, enableOpenLightBox)=>handleGalleryClick(imageID || '', enableOpenLightBox),
255
- noDataChildren: noDataChildren,
256
- children: renderProductBadge()
257
- }),
258
- layout === 'only-feature' && /*#__PURE__*/ jsx(OnlyFeatureImage, {
259
- gallery: gallery,
260
- ...productImageProps,
261
- onHandleClickImage: (imageID, enableOpenLightBox)=>handleGalleryClick(imageID || '', enableOpenLightBox),
262
- noDataChildren: noDataChildren,
263
- children: renderProductBadge()
264
- }),
265
- [
266
- 'one-col',
267
- 'two-col'
268
- ].includes(layout) && /*#__PURE__*/ jsx(GalleryGrid, {
269
- gallery: gallery,
270
- ...productImageProps,
271
- onHandleClickImage: (imageID, enableOpenLightBox)=>handleGalleryClick(imageID || '', enableOpenLightBox),
272
- noDataChildren: noDataChildren,
273
- children: renderProductBadge()
274
- }),
275
- isRenderLightBox && /*#__PURE__*/ jsx(ProductImagesLightBox, {
276
- productImages: gallery,
277
- builderPropUID: builderProps?.uid,
278
- open: openLightBox,
279
- onHandleClose: ()=>setOpenLightBox(false),
280
- imageRatio: getAspectRatio(styles?.ftShape)
281
- }),
282
- filterToolbarPreview(children, true)
283
- ]
284
- });
285
- };
286
-
287
- export { ProductImagesV3 as default };
@@ -1,149 +0,0 @@
1
- import { template, isLocalEnv, baseAssetURL, WrapRenderChildren, RenderChildren } from '@gem-sdk/core';
2
- import { getConditionRenderGalleryImages, getStyleInsideLayout, setDefaultWhenUndefineSetting } from './common/common.js';
3
- import FeatureImageWithGallery from './components/feature-gallery/FeatureImageWithGallery.liquid.js';
4
- import ProductGalleryCarousel from './components/gallery-carousel/GalleryCarousel.liquid.js';
5
- import ProductGalleryGrid from './components/gallery-grid/GalleryGrid.liquid.js';
6
- import { getSettingPreloadData } from '../../../helpers.js';
7
- import { getShapeByLayout, sizeSettingDefaultForNewLayout } from './common/productGallery.js';
8
- import { getProductImagesClassName } from './composables/getProductImagesClassName.js';
9
- import { getProductImagesStyles } from './composables/getProductImagesStyles.js';
10
- import { createAttr, LiquidIf, createClass, If, Liquid } from '@gem-sdk/system';
11
- import { getBorderActiveCss } from './common/getBorderActiveCss.js';
12
- import { getStyleOfObject } from '../../helpers/function.js';
13
-
14
- const ProductImages = (props)=>{
15
- const productImageProps = setDefaultWhenUndefineSetting(props);
16
- const { setting, styles, builderProps, style } = productImageProps;
17
- const { rawChildren, pageContext, enableLazyLoadImage } = props;
18
- const settings = {
19
- ...setting,
20
- ...styles
21
- };
22
- const gpData = `
23
- {
24
- "id":${JSON.stringify(builderProps?.uid)},
25
- "pageContext": ${JSON.stringify(pageContext)},
26
- "setting":${JSON.stringify(setting)},
27
- "styles":${JSON.stringify(styles)},
28
- "productUrl":{{product.url | json | escape}},
29
- "product":{{product | json | escape}},
30
- "collectionUrl": {{ collection.url | json | escape }},
31
- "collection": {{ collection | json | escape}}
32
- }
33
- `;
34
- const gpProductImagesAttrs = createAttr({
35
- 'section-id': '{{section.id}}',
36
- 'data-id': `${builderProps?.uid}`
37
- });
38
- const dataOnlyImageAttrs = createAttr({
39
- 'data-only-image': LiquidIf('product.media.size > 1', 'false', 'true')
40
- });
41
- const { wrapperClasses, productImagesGalleryClasses } = getProductImagesClassName(props);
42
- const wrapContainerClasses = createClass({
43
- 'gp-grid gp-w-full !gp-m-0 gp-relative': true
44
- });
45
- const wrapContainerClassesOnlyOneImage = createClass({
46
- 'gp-w-full !gp-m-0 gp-relative': true
47
- });
48
- const { wrapContainerStyle, wrapContainerStyleOnlyOneImage, galleryImageStyle } = getProductImagesStyles(settings);
49
- const { isOnlyFeatureAllDevices } = getConditionRenderGalleryImages(settings?.position);
50
- const shapeByLayout = getShapeByLayout({
51
- shape: settings.shape,
52
- shapeForBottom: settings.shapeForBottom,
53
- shapeFor1Col: settings.shapeFor1Col,
54
- shapeFor2Col: settings.shapeFor2Col,
55
- shapeForFtOnly: settings.shapeForFtOnly,
56
- shapeForInsideBottom: settings.shapeForInsideBottom ?? sizeSettingDefaultForNewLayout,
57
- shapeForInside: settings.shapeForInside ?? sizeSettingDefaultForNewLayout
58
- }, settings.position);
59
- const styleInsideLayout = getStyleInsideLayout(settings.position, shapeByLayout, settings?.spacing);
60
- const renderProductBadge = ()=>{
61
- return template`
62
- ${WrapRenderChildren({
63
- uid: builderProps?.uid || '',
64
- customProps: rawChildren?.[0].customProps
65
- }, rawChildren?.map((child)=>{
66
- if (child) {
67
- return template`${RenderChildren({
68
- ...child,
69
- isInsideProductImage: true,
70
- imageData: {
71
- imageShape: styles?.ftShape,
72
- imageAlign: styles?.align,
73
- imageLayout: styles?.position
74
- },
75
- dotData: {
76
- dotSize: setting?.ftDotSize,
77
- dotGapToCarousel: setting?.ftDotGapToCarousel,
78
- dotStyle: setting?.ftDotStyle
79
- }
80
- })}`;
81
- }
82
- }))}
83
- `;
84
- };
85
- const renderProductGalleryImages = ()=>{
86
- return template`
87
- <div
88
- class="${productImagesGalleryClasses}"
89
- style="${getStyleOfObject(galleryImageStyle)}"
90
- ${{
91
- ...dataOnlyImageAttrs
92
- }}
93
- >
94
- ${ProductGalleryCarousel({
95
- builderPropUID: `gp-gallery-${builderProps?.uid}`,
96
- ...settings
97
- })}
98
- </div>
99
- ${ProductGalleryGrid({
100
- builderPropUID: builderProps?.uid,
101
- wrapperStyle: {
102
- ...styleInsideLayout
103
- },
104
- children: renderProductBadge(),
105
- ...settings
106
- })}
107
- `;
108
- };
109
- const isEnableBorderActive = ()=>{
110
- return setting?.borderActive?.border !== 'none';
111
- };
112
- return template`
113
- ${If(isEnableBorderActive(), `<style>${getBorderActiveCss({
114
- settings,
115
- uid: builderProps?.uid,
116
- type: 'Liquid'
117
- })}</style>`)}
118
- ${Liquid(`
119
- {% assign featured_image = product.featured_image %}
120
- ${LiquidIf(`variant != null and variant.featured_image != null`, `{% assign featured_image = variant.featured_image %}`)}
121
- `)}
122
- <gp-product-images-v3
123
- gp-data='${gpData}'
124
- ${{
125
- ...gpProductImagesAttrs
126
- }}
127
- style="${{
128
- ...style
129
- }}"
130
- class="${wrapperClasses}"
131
- >
132
- <div
133
- class="${LiquidIf('product.media.size > 1', `${wrapContainerClasses}`, `${wrapContainerClassesOnlyOneImage}`)}"
134
- style="${LiquidIf('product.media.size > 1', getStyleOfObject(wrapContainerStyle), getStyleOfObject(wrapContainerStyleOnlyOneImage))}"
135
- >
136
- ${FeatureImageWithGallery({
137
- builderPropUID: `gp-carousel-${builderProps?.uid}`,
138
- ...settings,
139
- children: renderProductBadge(),
140
- enableLazyLoadImage
141
- })}
142
- ${If(!isOnlyFeatureAllDevices, LiquidIf('product.media.size > 1', renderProductGalleryImages()))}
143
- </div>
144
- </gp-product-images-v3>
145
- ${If(isLocalEnv, `<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="{{ 'gp-product-images-v3.js' | asset_url }}" defer="defer"></script>`, `<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="${baseAssetURL}/assets-v2/gp-product-images-v3.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
146
- `;
147
- };
148
-
149
- export { ProductImages as default };
@@ -1,248 +0,0 @@
1
- const productFeatureImageUI = [
2
- {
3
- type: 'control',
4
- setting: {
5
- id: 'ftShape'
6
- },
7
- layout: 'vertical',
8
- controlChangeTrigger: {
9
- settings: [
10
- {
11
- condition: "ftShape.shape === 'original'",
12
- source: [
13
- 'ftShape'
14
- ],
15
- action: {
16
- controlId: 'ftLayout',
17
- newValue: 'contain',
18
- groupType: 'style',
19
- controlType: 'style'
20
- }
21
- }
22
- ],
23
- options: {
24
- noRecordHistory: true
25
- }
26
- }
27
- },
28
- {
29
- type: 'control',
30
- condition: "ftShape.shape !== 'original'",
31
- label: {
32
- en: 'Image scale'
33
- },
34
- setting: {
35
- id: 'ftLayout'
36
- },
37
- isMoreSetting: true
38
- },
39
- {
40
- type: 'control',
41
- label: {
42
- en: 'Hover effect'
43
- },
44
- setting: {
45
- id: 'hoverEffect'
46
- },
47
- isMoreSetting: true
48
- },
49
- {
50
- type: 'control',
51
- label: {
52
- en: 'Zoom type'
53
- },
54
- condition: 'hoverEffect == "zoom"',
55
- setting: {
56
- id: 'zoomType'
57
- },
58
- isMoreSetting: true
59
- },
60
- {
61
- type: 'control',
62
- label: {
63
- en: 'Zoom value'
64
- },
65
- condition: 'hoverEffect == "zoom"',
66
- setting: {
67
- id: 'zoom'
68
- },
69
- isMoreSetting: true
70
- },
71
- {
72
- type: 'control',
73
- label: {
74
- en: 'Other image'
75
- },
76
- condition: 'hoverEffect == "other"',
77
- setting: {
78
- id: 'otherImage'
79
- },
80
- isMoreSetting: true
81
- },
82
- {
83
- type: 'control',
84
- label: {
85
- en: 'Click effect'
86
- },
87
- setting: {
88
- id: 'ftClickOpenLightBox'
89
- },
90
- isMoreSetting: true
91
- },
92
- {
93
- type: 'control',
94
- label: {
95
- en: 'Open link in'
96
- },
97
- setting: {
98
- id: 'ftClickOpenNewTab'
99
- },
100
- condition: `ftClickOpenLightBox === "product-link"`,
101
- isMoreSetting: true
102
- },
103
- {
104
- type: 'control',
105
- label: {
106
- en: 'Corner'
107
- },
108
- setting: {
109
- id: 'ftCorner'
110
- },
111
- isMoreSetting: true
112
- },
113
- {
114
- type: 'control',
115
- label: {
116
- en: 'Drag to scroll'
117
- },
118
- setting: {
119
- id: 'ftDragToScroll'
120
- },
121
- isMoreSetting: true
122
- },
123
- {
124
- type: 'control',
125
- label: {
126
- en: 'Loop'
127
- },
128
- setting: {
129
- id: 'ftLoop'
130
- },
131
- isMoreSetting: true
132
- },
133
- {
134
- type: 'control',
135
- label: {
136
- en: 'Slide speed'
137
- },
138
- setting: {
139
- id: 'ftAnimationSpeed'
140
- },
141
- isMoreSetting: true
142
- },
143
- {
144
- type: 'control',
145
- label: {
146
- en: 'Animation'
147
- },
148
- setting: {
149
- id: 'ftAnimationMode'
150
- },
151
- isMoreSetting: true
152
- }
153
- ];
154
- const productSelectImage = [
155
- // tạm ẩn khi hỗ trợ đủ 2 option sẽ mở
156
- // {
157
- // type: 'control',
158
- // setting: {
159
- // id: 'typeDisplay',
160
- // },
161
- // layout: 'vertical',
162
- // },
163
- {
164
- type: 'control',
165
- label: {
166
- en: 'Pre-display'
167
- },
168
- setting: {
169
- id: 'preDisplay'
170
- }
171
- },
172
- {
173
- type: 'control',
174
- label: {
175
- en: 'Preload'
176
- },
177
- setting: {
178
- id: 'preload'
179
- }
180
- }
181
- ];
182
- const productFeatureImageNavigationUI = [
183
- {
184
- type: 'control',
185
- label: {
186
- en: 'Navigation'
187
- },
188
- setting: {
189
- id: 'ftNavigationPosition'
190
- },
191
- layout: 'vertical'
192
- },
193
- {
194
- type: 'control',
195
- layout: 'vertical',
196
- condition: 'ftNavigationPosition !== "none"',
197
- setting: {
198
- id: 'ftArrowIcon'
199
- },
200
- isMoreSetting: true
201
- },
202
- {
203
- type: 'control',
204
- condition: 'ftNavigationPosition !== "none"',
205
- label: {
206
- en: 'Icon color'
207
- },
208
- setting: {
209
- id: 'ftArrowIconColor'
210
- },
211
- isMoreSetting: true
212
- },
213
- {
214
- type: 'control',
215
- condition: 'ftNavigationPosition !== "none"',
216
- label: {
217
- en: 'Nav. color'
218
- },
219
- setting: {
220
- id: 'ftArrowNavColor'
221
- },
222
- isMoreSetting: true
223
- },
224
- {
225
- type: 'control',
226
- condition: 'ftNavigationPosition !== "none"',
227
- label: {
228
- en: 'Nav. border'
229
- },
230
- setting: {
231
- id: 'ftArrowNavBorder'
232
- },
233
- isMoreSetting: true
234
- },
235
- {
236
- type: 'control',
237
- condition: 'ftNavigationPosition !== "none"',
238
- label: {
239
- en: 'Nav. corner'
240
- },
241
- setting: {
242
- id: 'ftArrowNavRadius'
243
- },
244
- isMoreSetting: true
245
- }
246
- ];
247
-
248
- export { productFeatureImageNavigationUI, productFeatureImageUI, productSelectImage };