@gem-sdk/components 2.0.0-dev.278 → 2.0.0-dev.288

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 (300) hide show
  1. package/dist/cjs/accordion/components/Accordion.js +60 -179
  2. package/dist/cjs/accordion/components/Accordion.liquid.js +77 -101
  3. package/dist/cjs/accordion/components/AccordionItem.js +126 -280
  4. package/dist/cjs/accordion/components/AccordionItem.liquid.js +77 -215
  5. package/dist/cjs/accordion/components/common/classes.js +55 -0
  6. package/dist/cjs/accordion/components/common/index.js +146 -0
  7. package/dist/cjs/accordion/components/common/styles.js +131 -0
  8. package/dist/cjs/accordion/hooks/useAccordion.js +145 -0
  9. package/dist/cjs/accordion/hooks/useAccordionItem.js +119 -0
  10. package/dist/cjs/article/components/ArticleImage.js +0 -1
  11. package/dist/cjs/article/components/ArticlePagination.js +1 -1
  12. package/dist/cjs/article/components/ArticlePagination.liquid.js +3 -3
  13. package/dist/cjs/article/setting/configs/ArticleImage/settings.js +5 -5
  14. package/dist/cjs/banner/components/HeroBannerItem.js +0 -6
  15. package/dist/cjs/banner/components/HeroBannerItem.liquid.js +3 -0
  16. package/dist/cjs/banner/setting/setting.js +28 -3
  17. package/dist/cjs/banner/setting/uiV2.js +10 -97
  18. package/dist/cjs/builder.js +18 -20
  19. package/dist/cjs/cart/components/CartLineImage.js +0 -2
  20. package/dist/cjs/code/common/classes.js +11 -0
  21. package/dist/cjs/code/common/styles.js +15 -0
  22. package/dist/cjs/code/components/CSSCode.js +9 -99
  23. package/dist/cjs/code/components/CSSCode.liquid.js +11 -11
  24. package/dist/cjs/code/hooks/useCSSCode.js +102 -0
  25. package/dist/cjs/code/setting/CSSCode.js +7 -121
  26. package/dist/cjs/code/setting/config/setting.js +77 -0
  27. package/dist/cjs/code/setting/config/uiV1.js +52 -0
  28. package/dist/cjs/code/setting/config/uiV2.js +58 -0
  29. package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +4 -1
  30. package/dist/cjs/form/components/contact/Contact.js +6 -2
  31. package/dist/cjs/form/components/contact/common/composeStyles.js +21 -0
  32. package/dist/cjs/form/components/form-checkbox/FormCheckbox.js +6 -4
  33. package/dist/cjs/form/components/form-checkbox/FormCheckbox.liquid.js +2 -4
  34. package/dist/cjs/form/components/form-checkbox/common/composeClasses.js +2 -2
  35. package/dist/cjs/form/components/form-checkbox/common/composeStyles.js +23 -10
  36. package/dist/cjs/form/components/form-dropdown/common/composeClasses.js +1 -1
  37. package/dist/cjs/form/components/form-email/FormEmail.js +18 -10
  38. package/dist/cjs/form/components/form-email/common/composeClasses.js +2 -1
  39. package/dist/cjs/form/components/newsletter/Newsletter.js +7 -2
  40. package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +1 -1
  41. package/dist/cjs/form/components/newsletter/common/composeStyles.js +4 -2
  42. package/dist/cjs/form/components/textarea/TextArea.js +16 -8
  43. package/dist/cjs/form/components/textarea/common/composeClasses.js +1 -1
  44. package/dist/cjs/form/components/textfield/TextField.js +17 -9
  45. package/dist/cjs/form/components/textfield/common/composeClasses.js +2 -2
  46. package/dist/cjs/form/setting/contact/Contact.js +5 -1
  47. package/dist/cjs/form/setting/form-checkbox/configs/settings.js +153 -6
  48. package/dist/cjs/form/setting/form-checkbox/configs/uiV2.js +137 -0
  49. package/dist/cjs/form/setting/form-dropdown/configs/settings.js +147 -0
  50. package/dist/cjs/form/setting/form-dropdown/configs/uiV2.js +156 -4
  51. package/dist/cjs/form/setting/newsletter/configs/settings.js +132 -3
  52. package/dist/cjs/form/setting/newsletter/configs/uiV2.js +93 -0
  53. package/dist/cjs/form/setting/submit-button/configs/settings.js +37 -0
  54. package/dist/cjs/form/setting/submit-button/configs/uiV2.js +13 -0
  55. package/dist/cjs/grid/row/commons/getInnerRadius.js +11 -10
  56. package/dist/cjs/grid/row/setting/configs/uiV2.js +1 -1
  57. package/dist/cjs/header/components/kind/basic/index.js +1 -0
  58. package/dist/cjs/header/components/kind/modern/index.js +1 -1
  59. package/dist/cjs/helpers.js +53 -0
  60. package/dist/cjs/icon-list/setting/configs/uiV2.js +1 -1
  61. package/dist/cjs/icon-list-v2/setting/configs/settings.js +5 -5
  62. package/dist/cjs/image/components/AdaptiveImage.js +63 -49
  63. package/dist/cjs/image/components/AdaptiveImage.liquid.js +56 -44
  64. package/dist/cjs/image/components/Image.js +65 -154
  65. package/dist/cjs/image/components/Image.liquid.js +68 -103
  66. package/dist/cjs/image/components/Modal3d.liquid.js +54 -21
  67. package/dist/cjs/image/components/NextImage.js +26 -59
  68. package/dist/cjs/image/components/NextImage.liquid.js +27 -115
  69. package/dist/cjs/image/components/Video.liquid.js +38 -13
  70. package/dist/cjs/image/components/common/attributes.js +115 -0
  71. package/dist/cjs/image/components/common/classes.js +57 -0
  72. package/dist/cjs/image/components/common/constants.js +15 -0
  73. package/dist/cjs/image/components/common/data.js +24 -0
  74. package/dist/cjs/image/components/common/helpers.js +75 -0
  75. package/dist/cjs/image/components/common/styles.js +88 -0
  76. package/dist/cjs/image/components/helpers/getNextImageLiquidAttrs.js +80 -0
  77. package/dist/cjs/image/components/helpers/getNextImageReactAttrs.js +40 -0
  78. package/dist/cjs/image/components/hooks/useCheckNoImage.js +25 -0
  79. package/dist/cjs/image/helpers/getSrcSet.js +0 -2
  80. package/dist/cjs/image/next.js +1 -5
  81. package/dist/cjs/image/setting/configs/settings.js +14 -8
  82. package/dist/cjs/image/setting/configs/uiV2.js +61 -15
  83. package/dist/cjs/image/setting/index.js +1 -3
  84. package/dist/cjs/image-comparison/components/CompareImage.js +1 -1
  85. package/dist/cjs/image-comparison/components/CompareImage.liquid.js +1 -1
  86. package/dist/cjs/index.js +91 -91
  87. package/dist/cjs/index.liquid.js +8 -8
  88. package/dist/cjs/post-purchase/callout-banner/components/CalloutText.js +2 -1
  89. package/dist/cjs/post-purchase/callout-banner/components/common/getClasses.js +5 -2
  90. package/dist/cjs/post-purchase/callout-banner/components/common/getStyles.js +2 -4
  91. package/dist/cjs/post-purchase/callout-banner/setting/config/callout-box/setting.js +4 -10
  92. package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +1 -11
  93. package/dist/cjs/post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js +9 -23
  94. package/dist/cjs/post-purchase/countdown-timer/components/TextCountdown.js +12 -26
  95. package/dist/cjs/post-purchase/countdown-timer/components/common/getClasses.js +24 -0
  96. package/dist/cjs/post-purchase/countdown-timer/components/common/getStyles.js +21 -0
  97. package/dist/cjs/post-purchase/countdown-timer/hooks/useCountdownTimer.js +18 -1
  98. package/dist/cjs/post-purchase/countdown-timer/hooks/useGetTimeExpired.js +18 -0
  99. package/dist/cjs/post-purchase/countdown-timer/settings/CountdownTimer.js +9 -358
  100. package/dist/cjs/post-purchase/countdown-timer/settings/config/preset.js +26 -0
  101. package/dist/cjs/post-purchase/countdown-timer/settings/config/setting.js +243 -0
  102. package/dist/cjs/post-purchase/countdown-timer/settings/config/uiV1.js +125 -0
  103. package/dist/cjs/post-purchase/countdown-timer/settings/config/uiV2.js +185 -0
  104. package/dist/cjs/post-purchase/image/common/getClasses.js +1 -1
  105. package/dist/cjs/post-purchase/image/setting/setting-v2.js +5 -5
  106. package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +24 -26
  107. package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +5 -5
  108. package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/settings.js +2 -2
  109. package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
  110. package/dist/cjs/product/components/FileUpload/components/common/index.js +3 -0
  111. package/dist/cjs/product/components/ProductBundle/common/classes.js +25 -0
  112. package/dist/cjs/product/components/ProductBundle/common/index.js +5 -0
  113. package/dist/cjs/product/components/ProductBundle/common/styles.js +89 -0
  114. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscount.js +82 -0
  115. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscount.liquid.js +74 -0
  116. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +69 -0
  117. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +46 -0
  118. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountItem.js +23 -0
  119. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountItem.liquid.js +14 -0
  120. package/dist/cjs/product/components/{ProductBundleDiscount.js → ProductBundle/hooks/useProductBundleDataState.js} +20 -215
  121. package/dist/cjs/product/components/ProductBundle/hooks/useProductBundleDiscountState.js +56 -0
  122. package/dist/cjs/product/{setting → components/ProductBundle/setting}/ProductBundleDiscount.js +7 -7
  123. package/dist/cjs/product/{setting → components/ProductBundle/setting}/ProductBundleDiscountItem.js +3 -0
  124. package/dist/cjs/product/components/ProductButton.js +2 -2
  125. package/dist/cjs/product/components/ProductButton.liquid.js +2 -2
  126. package/dist/cjs/product/components/ProductPrice/common/getAttr.js +23 -0
  127. package/dist/cjs/product/components/ProductPrice/common/getClasses.js +19 -0
  128. package/dist/cjs/product/components/ProductPrice/common/getTextData.js +40 -0
  129. package/dist/cjs/product/components/ProductPrice/hooks/useGpPrice.js +126 -0
  130. package/dist/cjs/product/components/ProductPrice/index.js +54 -0
  131. package/dist/cjs/product/components/ProductPrice/index.liquid.js +43 -0
  132. package/dist/cjs/product/components/ProductQuickView/ProductQuickView.js +5 -5
  133. package/dist/cjs/product/next.js +3 -3
  134. package/dist/cjs/product/setting/index.js +2 -2
  135. package/dist/cjs/product/setting/product/configs/presets.js +1 -0
  136. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +6 -7
  137. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +11 -12
  138. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +6 -5
  139. package/dist/cjs/product/setting/product-list/configs/settingsV2.js +10 -8
  140. package/dist/cjs/setting.js +5 -2
  141. package/dist/esm/accordion/components/Accordion.js +61 -180
  142. package/dist/esm/accordion/components/Accordion.liquid.js +78 -102
  143. package/dist/esm/accordion/components/AccordionItem.js +129 -281
  144. package/dist/esm/accordion/components/AccordionItem.liquid.js +76 -214
  145. package/dist/esm/accordion/components/common/classes.js +44 -0
  146. package/dist/esm/accordion/components/common/index.js +136 -0
  147. package/dist/esm/accordion/components/common/styles.js +122 -0
  148. package/dist/esm/accordion/hooks/useAccordion.js +141 -0
  149. package/dist/esm/accordion/hooks/useAccordionItem.js +115 -0
  150. package/dist/esm/article/components/ArticleImage.js +0 -1
  151. package/dist/esm/article/components/ArticlePagination.js +1 -1
  152. package/dist/esm/article/components/ArticlePagination.liquid.js +3 -3
  153. package/dist/esm/article/setting/configs/ArticleImage/settings.js +5 -5
  154. package/dist/esm/banner/components/HeroBannerItem.js +0 -6
  155. package/dist/esm/banner/components/HeroBannerItem.liquid.js +3 -0
  156. package/dist/esm/banner/setting/setting.js +28 -3
  157. package/dist/esm/banner/setting/uiV2.js +10 -97
  158. package/dist/esm/builder.js +3 -5
  159. package/dist/esm/cart/components/CartLineImage.js +0 -2
  160. package/dist/esm/code/common/classes.js +9 -0
  161. package/dist/esm/code/common/styles.js +13 -0
  162. package/dist/esm/code/components/CSSCode.js +9 -99
  163. package/dist/esm/code/components/CSSCode.liquid.js +12 -12
  164. package/dist/esm/code/hooks/useCSSCode.js +98 -0
  165. package/dist/esm/code/setting/CSSCode.js +7 -121
  166. package/dist/esm/code/setting/config/setting.js +75 -0
  167. package/dist/esm/code/setting/config/uiV1.js +50 -0
  168. package/dist/esm/code/setting/config/uiV2.js +56 -0
  169. package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +4 -1
  170. package/dist/esm/form/components/contact/Contact.js +7 -3
  171. package/dist/esm/form/components/contact/common/composeStyles.js +19 -0
  172. package/dist/esm/form/components/form-checkbox/FormCheckbox.js +7 -5
  173. package/dist/esm/form/components/form-checkbox/FormCheckbox.liquid.js +3 -5
  174. package/dist/esm/form/components/form-checkbox/common/composeClasses.js +2 -2
  175. package/dist/esm/form/components/form-checkbox/common/composeStyles.js +25 -11
  176. package/dist/esm/form/components/form-dropdown/common/composeClasses.js +1 -1
  177. package/dist/esm/form/components/form-email/FormEmail.js +18 -10
  178. package/dist/esm/form/components/form-email/common/composeClasses.js +2 -1
  179. package/dist/esm/form/components/newsletter/Newsletter.js +8 -3
  180. package/dist/esm/form/components/newsletter/Newsletter.liquid.js +1 -1
  181. package/dist/esm/form/components/newsletter/common/composeStyles.js +4 -2
  182. package/dist/esm/form/components/textarea/TextArea.js +16 -8
  183. package/dist/esm/form/components/textarea/common/composeClasses.js +1 -1
  184. package/dist/esm/form/components/textfield/TextField.js +17 -9
  185. package/dist/esm/form/components/textfield/common/composeClasses.js +2 -2
  186. package/dist/esm/form/setting/contact/Contact.js +5 -1
  187. package/dist/esm/form/setting/form-checkbox/configs/settings.js +153 -6
  188. package/dist/esm/form/setting/form-checkbox/configs/uiV2.js +137 -0
  189. package/dist/esm/form/setting/form-dropdown/configs/settings.js +147 -0
  190. package/dist/esm/form/setting/form-dropdown/configs/uiV2.js +156 -4
  191. package/dist/esm/form/setting/newsletter/configs/settings.js +132 -3
  192. package/dist/esm/form/setting/newsletter/configs/uiV2.js +93 -0
  193. package/dist/esm/form/setting/submit-button/configs/settings.js +37 -0
  194. package/dist/esm/form/setting/submit-button/configs/uiV2.js +13 -0
  195. package/dist/esm/grid/row/commons/getInnerRadius.js +11 -10
  196. package/dist/esm/grid/row/setting/configs/uiV2.js +1 -1
  197. package/dist/esm/header/components/kind/basic/index.js +1 -0
  198. package/dist/esm/header/components/kind/modern/index.js +1 -1
  199. package/dist/esm/helpers.js +52 -1
  200. package/dist/esm/icon-list/setting/configs/uiV2.js +1 -1
  201. package/dist/esm/icon-list-v2/setting/configs/settings.js +5 -5
  202. package/dist/esm/image/components/AdaptiveImage.js +64 -50
  203. package/dist/esm/image/components/AdaptiveImage.liquid.js +57 -45
  204. package/dist/esm/image/components/Image.js +66 -155
  205. package/dist/esm/image/components/Image.liquid.js +69 -104
  206. package/dist/esm/image/components/Modal3d.liquid.js +55 -22
  207. package/dist/esm/image/components/NextImage.js +26 -59
  208. package/dist/esm/image/components/NextImage.liquid.js +28 -116
  209. package/dist/esm/image/components/Video.liquid.js +38 -13
  210. package/dist/esm/image/components/common/attributes.js +108 -0
  211. package/dist/esm/image/components/common/classes.js +51 -0
  212. package/dist/esm/image/components/common/constants.js +11 -0
  213. package/dist/esm/image/components/common/data.js +22 -0
  214. package/dist/esm/image/components/common/helpers.js +69 -0
  215. package/dist/esm/image/components/common/styles.js +80 -0
  216. package/dist/esm/image/components/helpers/getNextImageLiquidAttrs.js +78 -0
  217. package/dist/esm/image/components/helpers/getNextImageReactAttrs.js +38 -0
  218. package/dist/esm/image/components/hooks/useCheckNoImage.js +23 -0
  219. package/dist/esm/image/helpers/getSrcSet.js +1 -2
  220. package/dist/esm/image/next.js +1 -5
  221. package/dist/esm/image/setting/configs/settings.js +14 -8
  222. package/dist/esm/image/setting/configs/uiV2.js +61 -15
  223. package/dist/esm/image/setting/index.js +1 -3
  224. package/dist/esm/image-comparison/components/CompareImage.js +1 -1
  225. package/dist/esm/image-comparison/components/CompareImage.liquid.js +1 -1
  226. package/dist/esm/index.js +4 -5
  227. package/dist/esm/index.liquid.js +3 -3
  228. package/dist/esm/post-purchase/callout-banner/components/CalloutText.js +2 -1
  229. package/dist/esm/post-purchase/callout-banner/components/common/getClasses.js +5 -2
  230. package/dist/esm/post-purchase/callout-banner/components/common/getStyles.js +2 -4
  231. package/dist/esm/post-purchase/callout-banner/setting/config/callout-box/setting.js +4 -10
  232. package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +1 -11
  233. package/dist/esm/post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js +9 -23
  234. package/dist/esm/post-purchase/countdown-timer/components/TextCountdown.js +13 -27
  235. package/dist/esm/post-purchase/countdown-timer/components/common/getClasses.js +21 -0
  236. package/dist/esm/post-purchase/countdown-timer/components/common/getStyles.js +19 -0
  237. package/dist/esm/post-purchase/countdown-timer/hooks/useCountdownTimer.js +19 -3
  238. package/dist/esm/post-purchase/countdown-timer/hooks/useGetTimeExpired.js +16 -0
  239. package/dist/esm/post-purchase/countdown-timer/settings/CountdownTimer.js +9 -358
  240. package/dist/esm/post-purchase/countdown-timer/settings/config/preset.js +24 -0
  241. package/dist/esm/post-purchase/countdown-timer/settings/config/setting.js +241 -0
  242. package/dist/esm/post-purchase/countdown-timer/settings/config/uiV1.js +123 -0
  243. package/dist/esm/post-purchase/countdown-timer/settings/config/uiV2.js +183 -0
  244. package/dist/esm/post-purchase/image/common/getClasses.js +1 -1
  245. package/dist/esm/post-purchase/image/setting/setting-v2.js +5 -5
  246. package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +25 -27
  247. package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +5 -5
  248. package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/settings.js +2 -2
  249. package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
  250. package/dist/esm/product/components/FileUpload/components/common/index.js +3 -0
  251. package/dist/esm/product/components/ProductBundle/common/classes.js +19 -0
  252. package/dist/esm/product/components/ProductBundle/common/index.js +3 -0
  253. package/dist/esm/product/components/ProductBundle/common/styles.js +80 -0
  254. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscount.js +78 -0
  255. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscount.liquid.js +70 -0
  256. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +65 -0
  257. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +42 -0
  258. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountItem.js +19 -0
  259. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountItem.liquid.js +10 -0
  260. package/dist/esm/product/components/{ProductBundleDiscount.js → ProductBundle/hooks/useProductBundleDataState.js} +21 -216
  261. package/dist/esm/product/components/ProductBundle/hooks/useProductBundleDiscountState.js +52 -0
  262. package/dist/esm/product/{setting → components/ProductBundle/setting}/ProductBundleDiscount.js +7 -7
  263. package/dist/esm/product/{setting → components/ProductBundle/setting}/ProductBundleDiscountItem.js +3 -0
  264. package/dist/esm/product/components/ProductButton.js +1 -1
  265. package/dist/esm/product/components/ProductButton.liquid.js +1 -1
  266. package/dist/esm/product/components/ProductPrice/common/getAttr.js +21 -0
  267. package/dist/esm/product/components/ProductPrice/common/getClasses.js +17 -0
  268. package/dist/esm/product/components/ProductPrice/common/getTextData.js +38 -0
  269. package/dist/esm/product/components/ProductPrice/hooks/useGpPrice.js +124 -0
  270. package/dist/esm/product/components/ProductPrice/index.js +50 -0
  271. package/dist/esm/product/components/ProductPrice/index.liquid.js +38 -0
  272. package/dist/esm/product/components/ProductQuickView/ProductQuickView.js +1 -1
  273. package/dist/esm/product/next.js +3 -3
  274. package/dist/esm/product/setting/index.js +2 -2
  275. package/dist/esm/product/setting/product/configs/presets.js +1 -0
  276. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +6 -7
  277. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +11 -12
  278. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +6 -5
  279. package/dist/esm/product/setting/product-list/configs/settingsV2.js +10 -8
  280. package/dist/esm/setting.js +5 -2
  281. package/dist/types/index.d.ts +174 -257
  282. package/package.json +2 -2
  283. package/dist/cjs/image/components/BackgroundImage.js +0 -102
  284. package/dist/cjs/image/components/Img.js +0 -28
  285. package/dist/cjs/image/components/helpers.js +0 -12
  286. package/dist/cjs/image/setting/BackgroundImage.js +0 -364
  287. package/dist/cjs/product/components/ProductBundleDiscount.liquid.js +0 -81
  288. package/dist/cjs/product/components/ProductBundleDiscountItem.js +0 -42
  289. package/dist/cjs/product/components/ProductBundleDiscountItem.liquid.js +0 -103
  290. package/dist/cjs/product/components/ProductPrice.js +0 -209
  291. package/dist/cjs/product/components/ProductPrice.liquid.js +0 -88
  292. package/dist/esm/image/components/BackgroundImage.js +0 -98
  293. package/dist/esm/image/components/Img.js +0 -24
  294. package/dist/esm/image/components/helpers.js +0 -9
  295. package/dist/esm/image/setting/BackgroundImage.js +0 -360
  296. package/dist/esm/product/components/ProductBundleDiscount.liquid.js +0 -77
  297. package/dist/esm/product/components/ProductBundleDiscountItem.js +0 -36
  298. package/dist/esm/product/components/ProductBundleDiscountItem.liquid.js +0 -99
  299. package/dist/esm/product/components/ProductPrice.js +0 -205
  300. package/dist/esm/product/components/ProductPrice.liquid.js +0 -83
@@ -1,100 +1,16 @@
1
1
  'use client';
2
2
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
3
- import { useCallback, useMemo } from 'react';
4
- import { useEditorMode, makeStyleResponsive, getStyleBackgroundByDevice, cls } from '@gem-sdk/core';
5
3
  import Head from 'next/head';
4
+ import useCSSCode from '../hooks/useCSSCode.js';
5
+ import { createStyle, createClass } from '@gem-sdk/system';
6
+ import { getCodeStyle } from '../common/styles.js';
7
+ import { getCodeClasses } from '../common/classes.js';
6
8
 
7
- const EMPTY_TAGS = [
8
- 'SCRIPT'
9
- ];
10
- const ALLOWED_EMPTY_TAG = [
11
- 'EMBED',
12
- 'IMG',
13
- 'INPUT',
14
- 'PICTURE',
15
- 'VIDEO'
16
- ];
17
9
  const CSSCode = ({ setting, style, advanced, builderAttrs, builderProps, children })=>{
18
10
  const { editorData } = advanced;
19
- const mode = useEditorMode();
20
- const getEmptyContent = useCallback((css, javascript, html)=>{
21
- return `<p class="gp-text-center gp-text-sm gp-py-4 gp-leading-6 gp-text-light-500 gp-flex gp-flex-col gp-gap-[4px]">
22
- <span>${editorData?.customLabel || 'Custom Code'}</span>
23
- ${css || javascript || html ? '<span class="gp-text-[#676767] gp-text-12 gp-leading-5">Preview or Publish the page to see the content.</span>' : ``}</p>`;
24
- }, [
25
- editorData?.customLabel
26
- ]);
27
- const getHtmlContent = (html, javascript)=>{
28
- const $element = document.createElement('div');
29
- $element.innerHTML = html;
30
- const childrenRoot = $element.childNodes;
31
- let hasScript = false;
32
- let empty = true;
33
- if (childrenRoot.length > 0) {
34
- childrenRoot.forEach((child)=>{
35
- //@ts-expect-error
36
- if (EMPTY_TAGS.includes(child?.tagName)) {
37
- hasScript = true;
38
- child?.remove();
39
- }
40
- });
41
- const children = $element.childNodes;
42
- children.forEach((child)=>{
43
- //@ts-expect-error
44
- if (ALLOWED_EMPTY_TAG.includes(child?.tagName)) {
45
- empty = false;
46
- } else if (child?.nodeName !== '#comment') {
47
- const content = child?.textContent?.trim();
48
- if (content) {
49
- empty = false;
50
- }
51
- }
52
- });
53
- }
54
- if (empty) {
55
- empty = !$element?.textContent?.trim();
56
- }
57
- if (javascript) {
58
- hasScript = true;
59
- }
60
- return {
61
- empty,
62
- hasScript
63
- };
64
- };
65
- const htmlPlainText = useMemo(()=>{
66
- if (mode === 'edit') {
67
- const { empty, hasScript } = getHtmlContent(editorData?.html || '', editorData?.javascript || '');
68
- if (hasScript) {
69
- return `<p class="gp-text-center gp-text-sm gp-font-[sans-serif] gp-py-4 gp-leading-[21px] gp-text-[#676767] gp-bg-[#eee]">
70
- Publish the page to see the content.
71
- </p>`;
72
- }
73
- if (empty) {
74
- return getEmptyContent(editorData?.css || '', editorData?.javascript || '', editorData?.html || '');
75
- }
76
- return editorData?.html?.trim();
77
- }
78
- return editorData?.html?.trim();
79
- }, [
80
- editorData?.css,
81
- editorData?.html,
82
- editorData?.javascript,
83
- mode,
84
- getEmptyContent
85
- ]);
86
- const handleDoubleClickCustomCode = (e)=>{
87
- switch(e.detail){
88
- case 2:
89
- {
90
- const event = new CustomEvent('editor:toolbar:open-custom-code', {
91
- bubbles: true
92
- });
93
- window.dispatchEvent(event);
94
- break;
95
- }
96
- }
97
- };
11
+ const { handleDoubleClickCustomCode, htmlPlainText, mode } = useCSSCode(advanced);
12
+ const composeCodeStyle = createStyle(getCodeStyle(style, setting, false));
13
+ const composeCodeClasses = createClass(getCodeClasses(builderProps?.uid, mode !== 'edit' && !editorData?.html, advanced?.cssClass));
98
14
  return /*#__PURE__*/ jsxs(Fragment, {
99
15
  children: [
100
16
  /*#__PURE__*/ jsx(Head, {
@@ -121,15 +37,9 @@ const CSSCode = ({ setting, style, advanced, builderAttrs, builderProps, childre
121
37
  /*#__PURE__*/ jsxs("div", {
122
38
  onClick: handleDoubleClickCustomCode,
123
39
  "aria-hidden": "true",
124
- style: {
125
- ...style,
126
- ...makeStyleResponsive('ta', setting?.align),
127
- ...getStyleBackgroundByDevice(setting?.background)
128
- },
40
+ style: composeCodeStyle,
129
41
  ...builderAttrs,
130
- className: cls(builderProps?.uid, {
131
- 'gp-sr-only': mode !== 'edit' && !editorData?.html
132
- }, 'gp-cursor-pointer'),
42
+ className: composeCodeClasses,
133
43
  children: [
134
44
  /*#__PURE__*/ jsx("div", {
135
45
  dangerouslySetInnerHTML: {
@@ -1,27 +1,27 @@
1
- import { template, RenderIf, getStyleBackgroundByDevice, makeStyleResponsive, cls } from '@gem-sdk/core';
1
+ import { template, RenderIf } from '@gem-sdk/core';
2
+ import { getCodeStyle } from '../common/styles.js';
3
+ import { createStyle, createClass } from '@gem-sdk/system';
4
+ import { getCodeClasses } from '../common/classes.js';
2
5
 
3
6
  const CSSCode = ({ setting, style, advanced, builderAttrs, builderProps })=>{
4
7
  const { background, preloadBgImage } = setting ?? {};
5
8
  const editorData = advanced?.editorData;
6
9
  const htmlPlainText = editorData?.html?.trim();
10
+ const composeCodeStyle = createStyle(getCodeStyle(style, setting, true));
11
+ const composeCodeClasses = createClass(getCodeClasses(builderProps?.uid, !editorData?.html && !background, advanced?.cssClass));
7
12
  return template`
8
13
  ${RenderIf(!!preloadBgImage, `${RenderIf(!!background?.desktop?.image?.src, `<link rel="preload" href="${background?.desktop?.image?.src}" as="image" />`)}${RenderIf(!!background?.tablet?.image?.src, `<link rel="preload" href="${background?.tablet?.image?.src}" as="image" />`)}${RenderIf(!!background?.mobile?.image?.src, `<link rel="preload" href="${background?.mobile?.image?.src}" as="image" />`)}`)}
9
14
  <div
10
15
  ${{
11
16
  ...builderAttrs
12
17
  }}
13
- style="${{
14
- ...style,
15
- ...getStyleBackgroundByDevice(background, {
16
- liquid: true
17
- }),
18
- ...makeStyleResponsive('ta', setting?.align)
19
- }}"
18
+ style="${composeCodeStyle}"
20
19
  data-keep-class="true"
21
- class="${cls(builderProps?.uid, {
22
- 'gp-sr-only': !editorData?.html && !background
23
- })} ${advanced?.cssClass}"
24
- ><div>${htmlPlainText}</div></div>
20
+ class="${composeCodeClasses}">
21
+ <div>
22
+ ${htmlPlainText}
23
+ </div>
24
+ </div>
25
25
  `;
26
26
  };
27
27
 
@@ -0,0 +1,98 @@
1
+ import { useEditorMode } from '@gem-sdk/core';
2
+ import { useCallback, useMemo } from 'react';
3
+
4
+ const EMPTY_TAGS = [
5
+ 'SCRIPT'
6
+ ];
7
+ const ALLOWED_EMPTY_TAG = [
8
+ 'EMBED',
9
+ 'IMG',
10
+ 'INPUT',
11
+ 'PICTURE',
12
+ 'VIDEO'
13
+ ];
14
+ const useCSSCode = (advanced)=>{
15
+ const mode = useEditorMode();
16
+ const { editorData } = advanced;
17
+ const getEmptyContent = useCallback((css, javascript, html)=>{
18
+ return `<p class="gp-text-center gp-text-sm gp-py-4 gp-leading-6 gp-text-light-500 gp-flex gp-flex-col gp-gap-[4px]">
19
+ <span>${editorData?.customLabel || 'Custom Code'}</span>
20
+ ${css || javascript || html ? '<span class="gp-text-[#676767] gp-text-12 gp-leading-5">Preview or Publish the page to see the content.</span>' : ``}</p>`;
21
+ }, [
22
+ editorData?.customLabel
23
+ ]);
24
+ const getHtmlContent = (html, javascript)=>{
25
+ const $element = document.createElement('div');
26
+ $element.innerHTML = html;
27
+ const childrenRoot = $element.childNodes;
28
+ let hasScript = false;
29
+ let empty = true;
30
+ if (childrenRoot.length > 0) {
31
+ childrenRoot.forEach((child)=>{
32
+ //@ts-expect-error
33
+ if (EMPTY_TAGS.includes(child?.tagName)) {
34
+ hasScript = true;
35
+ child?.remove();
36
+ }
37
+ });
38
+ const children = $element.childNodes;
39
+ children.forEach((child)=>{
40
+ //@ts-expect-error
41
+ if (ALLOWED_EMPTY_TAG.includes(child?.tagName)) {
42
+ empty = false;
43
+ } else if (child?.nodeName !== '#comment') {
44
+ const content = child?.textContent?.trim();
45
+ if (content) {
46
+ empty = false;
47
+ }
48
+ }
49
+ });
50
+ }
51
+ if (empty) {
52
+ empty = !$element?.textContent?.trim();
53
+ }
54
+ if (javascript) {
55
+ hasScript = true;
56
+ }
57
+ return {
58
+ empty,
59
+ hasScript
60
+ };
61
+ };
62
+ const htmlPlainText = useMemo(()=>{
63
+ if (mode === 'edit') {
64
+ const { empty, hasScript } = getHtmlContent(editorData?.html || '', editorData?.javascript || '');
65
+ if (hasScript) {
66
+ return `<p class="gp-text-center gp-text-sm gp-font-[sans-serif] gp-py-4 gp-leading-[21px] gp-text-[#676767] gp-bg-[#eee]">
67
+ Publish the page to see the content.
68
+ </p>`;
69
+ }
70
+ if (empty) {
71
+ return getEmptyContent(editorData?.css || '', editorData?.javascript || '', editorData?.html || '');
72
+ }
73
+ return editorData?.html?.trim();
74
+ }
75
+ return editorData?.html?.trim();
76
+ }, [
77
+ editorData?.css,
78
+ editorData?.html,
79
+ editorData?.javascript,
80
+ mode,
81
+ getEmptyContent
82
+ ]);
83
+ const handleDoubleClickCustomCode = (e)=>{
84
+ if (e.detail === 2) {
85
+ const event = new CustomEvent('editor:toolbar:open-custom-code', {
86
+ bubbles: true
87
+ });
88
+ window.dispatchEvent(event);
89
+ }
90
+ };
91
+ return {
92
+ mode,
93
+ htmlPlainText,
94
+ handleDoubleClickCustomCode
95
+ };
96
+ };
97
+
98
+ export { useCSSCode as default };
@@ -1,3 +1,7 @@
1
+ import { SettingCode } from './config/setting.js';
2
+ import { SettingUIV1 } from './config/uiV1.js';
3
+ import { SettingUIV2 } from './config/uiV2.js';
4
+
1
5
  const config = {
2
6
  tag: 'CSSCode',
3
7
  label: 'Custom Code',
@@ -5,127 +9,9 @@ const config = {
5
9
  icon: `
6
10
  <svg width="40" viewBox="0 0 24 24"><path fill="currentColor" d="m24 12l-5.657 5.657l-1.414-1.414L21.172 12l-4.243-4.243l1.414-1.414L24 12zM2.828 12l4.243 4.243l-1.414 1.414L0 12l5.657-5.657L7.07 7.757L2.828 12zm6.96 9H7.66l6.552-18h2.128L9.788 21z"/></svg>
7
11
  `,
8
- settings: [
9
- {
10
- id: 'setting',
11
- controls: [
12
- {
13
- id: 'editorData',
14
- type: 'customCodeEditor'
15
- },
16
- {
17
- id: 'background',
18
- type: 'background',
19
- label: 'Background',
20
- devices: {
21
- desktop: {
22
- default: {
23
- type: 'color',
24
- color: 'transparent',
25
- image: {
26
- src: '',
27
- width: 0,
28
- height: 0
29
- },
30
- size: 'cover',
31
- position: {
32
- x: 50,
33
- y: 50
34
- },
35
- repeat: 'no-repeat',
36
- attachment: 'scroll'
37
- }
38
- }
39
- }
40
- },
41
- {
42
- id: 'align',
43
- label: 'Alignment',
44
- type: 'segment',
45
- options: [
46
- {
47
- label: 'Left',
48
- value: 'left',
49
- type: 'align'
50
- },
51
- {
52
- label: 'Center',
53
- value: 'center',
54
- type: 'align'
55
- },
56
- {
57
- label: 'Right',
58
- value: 'right',
59
- type: 'align'
60
- }
61
- ],
62
- devices: {
63
- desktop: {
64
- default: 'left'
65
- }
66
- }
67
- },
68
- {
69
- id: 'preloadBgImage',
70
- type: 'toggle',
71
- label: 'Preload',
72
- default: false
73
- }
74
- ]
75
- },
76
- {
77
- id: 'style',
78
- controls: []
79
- }
80
- ],
81
- ui: [
82
- {
83
- type: 'control',
84
- setting: {
85
- id: 'editorData'
86
- },
87
- layout: 'vertical'
88
- },
89
- {
90
- type: 'group',
91
- controls: [
92
- {
93
- type: 'control',
94
- setting: {
95
- id: 'background'
96
- },
97
- label: {
98
- en: 'Background'
99
- },
100
- layout: 'vertical',
101
- options: {
102
- styleLabel: {
103
- marginBottom: '4px'
104
- }
105
- }
106
- },
107
- {
108
- label: {
109
- en: 'Preload'
110
- },
111
- type: 'control',
112
- setting: {
113
- id: 'preloadBgImage'
114
- },
115
- condition: 'background.type == "image"'
116
- }
117
- ]
118
- },
119
- {
120
- type: 'control',
121
- label: {
122
- en: 'Align'
123
- },
124
- setting: {
125
- id: 'align'
126
- }
127
- }
128
- ],
12
+ settings: SettingCode,
13
+ ui: SettingUIV1,
14
+ uiV2: SettingUIV2,
129
15
  editorConfigs: {
130
16
  sideBar: {
131
17
  tab: {
@@ -0,0 +1,75 @@
1
+ const SettingCode = [
2
+ {
3
+ id: 'setting',
4
+ controls: [
5
+ {
6
+ id: 'editorData',
7
+ type: 'customCodeEditor'
8
+ },
9
+ {
10
+ id: 'background',
11
+ type: 'background',
12
+ label: 'Background',
13
+ devices: {
14
+ desktop: {
15
+ default: {
16
+ type: 'color',
17
+ color: 'transparent',
18
+ image: {
19
+ src: '',
20
+ width: 0,
21
+ height: 0
22
+ },
23
+ size: 'cover',
24
+ position: {
25
+ x: 50,
26
+ y: 50
27
+ },
28
+ repeat: 'no-repeat',
29
+ attachment: 'scroll'
30
+ }
31
+ }
32
+ }
33
+ },
34
+ {
35
+ id: 'align',
36
+ label: 'Alignment',
37
+ type: 'segment',
38
+ options: [
39
+ {
40
+ label: 'Left',
41
+ value: 'left',
42
+ type: 'align'
43
+ },
44
+ {
45
+ label: 'Center',
46
+ value: 'center',
47
+ type: 'align'
48
+ },
49
+ {
50
+ label: 'Right',
51
+ value: 'right',
52
+ type: 'align'
53
+ }
54
+ ],
55
+ devices: {
56
+ desktop: {
57
+ default: 'left'
58
+ }
59
+ }
60
+ },
61
+ {
62
+ id: 'preloadBgImage',
63
+ type: 'toggle',
64
+ label: 'Preload',
65
+ default: false
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ id: 'style',
71
+ controls: []
72
+ }
73
+ ];
74
+
75
+ export { SettingCode };
@@ -0,0 +1,50 @@
1
+ const SettingUIV1 = [
2
+ {
3
+ type: 'control',
4
+ setting: {
5
+ id: 'editorData'
6
+ },
7
+ layout: 'vertical'
8
+ },
9
+ {
10
+ type: 'group',
11
+ controls: [
12
+ {
13
+ type: 'control',
14
+ setting: {
15
+ id: 'background'
16
+ },
17
+ label: {
18
+ en: 'Background'
19
+ },
20
+ layout: 'vertical',
21
+ options: {
22
+ styleLabel: {
23
+ marginBottom: '4px'
24
+ }
25
+ }
26
+ },
27
+ {
28
+ label: {
29
+ en: 'Preload'
30
+ },
31
+ type: 'control',
32
+ setting: {
33
+ id: 'preloadBgImage'
34
+ },
35
+ condition: 'background.type == "image"'
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ type: 'control',
41
+ label: {
42
+ en: 'Align'
43
+ },
44
+ setting: {
45
+ id: 'align'
46
+ }
47
+ }
48
+ ];
49
+
50
+ export { SettingUIV1 };
@@ -0,0 +1,56 @@
1
+ const SettingUIV2 = [
2
+ {
3
+ controls: [
4
+ {
5
+ type: 'control',
6
+ setting: {
7
+ id: 'editorData'
8
+ },
9
+ layout: 'vertical'
10
+ }
11
+ ]
12
+ },
13
+ {
14
+ controls: [
15
+ {
16
+ type: 'control',
17
+ setting: {
18
+ id: 'background'
19
+ },
20
+ label: {
21
+ en: 'Background'
22
+ },
23
+ layout: 'vertical'
24
+ },
25
+ {
26
+ label: {
27
+ en: 'Preload'
28
+ },
29
+ type: 'control',
30
+ setting: {
31
+ id: 'preloadBgImage'
32
+ },
33
+ conditionDisplay: 'background.type == "image"'
34
+ }
35
+ ]
36
+ },
37
+ {
38
+ controls: [
39
+ {
40
+ label: {
41
+ en: 'Align'
42
+ },
43
+ type: 'control',
44
+ setting: {
45
+ id: 'align'
46
+ },
47
+ options: {
48
+ labelVariant: 'primary',
49
+ fullWidth: true
50
+ }
51
+ }
52
+ ]
53
+ }
54
+ ];
55
+
56
+ export { SettingUIV2 };
@@ -4,13 +4,16 @@ import { getDynamicSourceLocales, getSettingPreloadData } from '../../helpers.js
4
4
  import 'react/jsx-runtime';
5
5
  import 'react';
6
6
  import 'next/link';
7
- import '../../product/components/ProductVariants/variants/index.js';
8
7
  import Text from '../../text/components/Text.liquid.js';
8
+ import '../../product/components/ProductVariants/variants/index.js';
9
+ import '../../product/components/ProductBundle/common/styles.js';
10
+ import '../../product/components/ProductBundle/common/classes.js';
9
11
  import '../../product/components/ProductBadge/constants.js';
10
12
  import '../../product/components/constants/product-bundle.js';
11
13
  import '../../product/components/ProductBadge/types.js';
12
14
  import '../../product/components/ProductBadge/utils/shape.js';
13
15
  import '../../accordion/setting/configs/settings.js';
16
+ import '../../accordion/components/common/classes.js';
14
17
  import '@gem-sdk/keen-slider/react';
15
18
  import 'next/head';
16
19
  import 'next/image';
@@ -1,10 +1,14 @@
1
1
  'use client';
2
- import { jsx, Fragment } from 'react/jsx-runtime';
2
+ import { jsx } from 'react/jsx-runtime';
3
3
  import { isEmptyChildren } from '@gem-sdk/core';
4
4
  import ChildrenDroppable from '../../../grid/components/ChildrenDroppable.js';
5
+ import { composeContainerStyles } from './common/composeStyles.js';
6
+ import { createStyle } from '@gem-sdk/system';
5
7
 
6
- const ContactForm = ({ children })=>{
7
- return /*#__PURE__*/ jsx(Fragment, {
8
+ const ContactForm = ({ children, styles, setting })=>{
9
+ const containerStyle = createStyle(composeContainerStyles(setting, styles));
10
+ return /*#__PURE__*/ jsx("div", {
11
+ style: containerStyle,
8
12
  children: isEmptyChildren(children) ? /*#__PURE__*/ jsx(ChildrenDroppable, {}) : children
9
13
  });
10
14
  };
@@ -0,0 +1,19 @@
1
+ import { filterTruthy } from '../../../helpers/common.js';
2
+ import { makeGlobalSize, getStyleBackgroundByDevice } from '@gem-sdk/core';
3
+
4
+ const composeStyles = (styles)=>filterTruthy(styles);
5
+ const composeContainerStyles = (setting, styles)=>{
6
+ const { background } = setting ?? {};
7
+ const { globalSize } = styles ?? {};
8
+ const composeGlobalSize = makeGlobalSize(globalSize);
9
+ return composeStyles({
10
+ ...styles,
11
+ ...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
12
+ '--w': '100%'
13
+ },
14
+ ...composeGlobalSize.padding,
15
+ ...getStyleBackgroundByDevice(background)
16
+ });
17
+ };
18
+
19
+ export { composeContainerStyles };
@@ -1,18 +1,21 @@
1
1
  'use client';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { createStyle, createClass } from '@gem-sdk/system';
4
- import { composeContainerStyles, composeFormCheckboxSpanStyles, composeFormCheckboxStyles, composeFormCheckboxInputStyles } from './common/composeStyles.js';
4
+ import { composeContainerStyles, composeFormCheckboxStyles, composeFormCheckboxInputStyles } from './common/composeStyles.js';
5
5
  import { composeContainerClasses, composeFormCheckboxInputClasses, composeFormCheckboxLabelClasses } from './common/composeClasses.js';
6
6
 
7
- const FormCheckbox = ({ builderProps, setting, advanced })=>{
7
+ const FormCheckbox = ({ builderProps, setting, advanced, styles })=>{
8
8
  const { name, description, selected, required } = setting ?? {};
9
9
  const composedContainerStyles = createStyle(composeContainerStyles(setting));
10
- const composedFormCheckboxSpanStyles = createStyle(composeFormCheckboxSpanStyles(setting));
11
- const composedFormCheckboxStyles = createStyle(composeFormCheckboxStyles(setting));
10
+ const composedFormCheckboxStyles = createStyle(composeFormCheckboxStyles(setting, styles, builderProps));
12
11
  const composedFormCheckboxInputStyles = createStyle(composeFormCheckboxInputStyles());
13
12
  const composedContainerClasses = createClass(composeContainerClasses(setting, advanced, builderProps));
14
13
  const composedFormCheckboxInputClasses = createClass(composeFormCheckboxInputClasses());
15
14
  const composedFormCheckboxLabelClasses = createClass(composeFormCheckboxLabelClasses());
15
+ console.log({
16
+ setting,
17
+ styles
18
+ });
16
19
  return /*#__PURE__*/ jsx("div", {
17
20
  "data-id": builderProps?.uid,
18
21
  style: composedContainerStyles,
@@ -31,7 +34,6 @@ const FormCheckbox = ({ builderProps, setting, advanced })=>{
31
34
  }),
32
35
  /*#__PURE__*/ jsx("span", {
33
36
  className: composedFormCheckboxLabelClasses,
34
- style: composedFormCheckboxSpanStyles,
35
37
  children: description
36
38
  })
37
39
  ]