@intuned/browser-dev 2.2.3-unify-sdks.20

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 (195) hide show
  1. package/.babelrc +21 -0
  2. package/.eslintignore +10 -0
  3. package/.eslintrc.js +39 -0
  4. package/LICENSE +43 -0
  5. package/dist/ai-extractors/AnthropicClient/index.js +23 -0
  6. package/dist/ai-extractors/export.d.js +5 -0
  7. package/dist/ai-extractors/export.d.ts +422 -0
  8. package/dist/ai-extractors/extractStructuredData.js +79 -0
  9. package/dist/ai-extractors/extractionHelpers/extractStructuredDataUsingAi/constants.js +7 -0
  10. package/dist/ai-extractors/extractionHelpers/extractStructuredDataUsingAi/errors.js +42 -0
  11. package/dist/ai-extractors/extractionHelpers/extractStructuredDataUsingAi/extractStructuredDataUsingClaude.js +149 -0
  12. package/dist/ai-extractors/extractionHelpers/extractStructuredDataUsingAi/extractStructuredDataUsingGoogle.js +37 -0
  13. package/dist/ai-extractors/extractionHelpers/extractStructuredDataUsingAi/extractStructuredDataUsingOpenAi.js +144 -0
  14. package/dist/ai-extractors/extractionHelpers/extractStructuredDataUsingAi/extractStrucutredDataUsingAiInstance.js +123 -0
  15. package/dist/ai-extractors/extractionHelpers/extractStructuredDataUsingAi/index.js +55 -0
  16. package/dist/ai-extractors/extractionHelpers/extractStructuredDataUsingAi/isItemTableHeaderOrFooter.js +96 -0
  17. package/dist/ai-extractors/extractionHelpers/extractStructuredDataUsingAi/screenshotHelpers.js +55 -0
  18. package/dist/ai-extractors/extractionHelpers/extractStructuredDataUsingAi/types.js +5 -0
  19. package/dist/ai-extractors/extractionHelpers/extractStructuredDataUsingAi/utils.js +53 -0
  20. package/dist/ai-extractors/extractionHelpers/types.js +5 -0
  21. package/dist/ai-extractors/fileExtractors.js +176 -0
  22. package/dist/ai-extractors/index.js +31 -0
  23. package/dist/ai-extractors/jsonSchema.d.js +5 -0
  24. package/dist/ai-extractors/jsonSchema.d.ts +49 -0
  25. package/dist/ai-extractors/openAiClients/index.js +23 -0
  26. package/dist/ai-extractors/validators.js +239 -0
  27. package/dist/browser/ai/export.d.js +3 -0
  28. package/dist/browser/ai/export.d.ts +587 -0
  29. package/dist/browser/ai/extractMarkdown.js +15 -0
  30. package/dist/browser/ai/extractStructuredData.js +231 -0
  31. package/dist/browser/ai/extractStructuredDataUsingAi.js +140 -0
  32. package/dist/browser/ai/extractionHelpers/screenshotHelpers.js +55 -0
  33. package/dist/browser/ai/extractionHelpers/validateSchema.js +148 -0
  34. package/dist/browser/ai/index.d.ts +587 -0
  35. package/dist/browser/ai/index.js +19 -0
  36. package/dist/browser/ai/isPageLoaded.js +67 -0
  37. package/dist/browser/ai/prompt.js +39 -0
  38. package/dist/browser/ai/tests/testCheckAllTypesAreStrings.spec.js +143 -0
  39. package/dist/browser/ai/tests/testExtractStructuredData.spec.js +622 -0
  40. package/dist/browser/ai/tools/index.js +48 -0
  41. package/dist/browser/ai/types/errors.js +67 -0
  42. package/dist/browser/ai/types/models.js +45 -0
  43. package/dist/browser/ai/types/types.js +48 -0
  44. package/dist/browser/ai/validators.js +136 -0
  45. package/dist/common/Logger/index.js +60 -0
  46. package/dist/common/Logger/types.js +5 -0
  47. package/dist/common/SdkError.js +50 -0
  48. package/dist/common/aiModelsValidations.js +50 -0
  49. package/dist/common/browser_scripts.js +2596 -0
  50. package/dist/common/ensureBrowserScripts.js +17 -0
  51. package/dist/common/environmentVariables.js +16 -0
  52. package/dist/common/eventTracking/getAiTrackingHeaders.js +31 -0
  53. package/dist/common/eventTracking/getFileTrackingHeaders.js +23 -0
  54. package/dist/common/extendedTest.js +148 -0
  55. package/dist/common/extractionHelpers.js +19 -0
  56. package/dist/common/formatZodError.js +18 -0
  57. package/dist/common/fuzzySearch/fuzzySearch.test.js +250 -0
  58. package/dist/common/fuzzySearch/levenshtein-search.js +298 -0
  59. package/dist/common/fuzzySearch/utils.js +23 -0
  60. package/dist/common/getModelProvider.js +18 -0
  61. package/dist/common/getSimplifiedHtml.js +122 -0
  62. package/dist/common/hashObject.js +32 -0
  63. package/dist/common/html2markdown/convertElementToMarkdown.js +469 -0
  64. package/dist/common/html2markdown/index.js +19 -0
  65. package/dist/common/jwtTokenManager.js +18 -0
  66. package/dist/common/loadRuntime.js +16 -0
  67. package/dist/common/locatorHelpers.js +41 -0
  68. package/dist/common/matching/collectStrings.js +32 -0
  69. package/dist/common/matching/levenshtein.js +40 -0
  70. package/dist/common/matching/matching.js +317 -0
  71. package/dist/common/matching/types.js +1 -0
  72. package/dist/common/noEmpty.js +9 -0
  73. package/dist/common/saveSnapshotWithExamples.js +60 -0
  74. package/dist/common/tests/testEnsureBrowserScript.spec.js +31 -0
  75. package/dist/common/xpathMapping.js +107 -0
  76. package/dist/helpers/downloadFile.js +125 -0
  77. package/dist/helpers/export.d.js +1 -0
  78. package/dist/helpers/export.d.ts +1294 -0
  79. package/dist/helpers/extractMarkdown.js +35 -0
  80. package/dist/helpers/filterEmptyValues.js +54 -0
  81. package/dist/helpers/gotoUrl.js +93 -0
  82. package/dist/helpers/index.d.ts +1294 -0
  83. package/dist/helpers/index.js +115 -0
  84. package/dist/helpers/processDate.js +25 -0
  85. package/dist/helpers/resolveUrl.js +63 -0
  86. package/dist/helpers/sanitizeHtml.js +73 -0
  87. package/dist/helpers/saveFileToS3.js +46 -0
  88. package/dist/helpers/scrollToLoadContent.js +50 -0
  89. package/dist/helpers/tests/extendedTest.js +130 -0
  90. package/dist/helpers/tests/testDownloadFile.spec.js +197 -0
  91. package/dist/helpers/tests/testFilterEmptyValues.spec.js +151 -0
  92. package/dist/helpers/tests/testGoToUrl.spec.js +37 -0
  93. package/dist/helpers/tests/testIsPageLoaded.spec.js +285 -0
  94. package/dist/helpers/tests/testProcessDate.spec.js +13 -0
  95. package/dist/helpers/tests/testResolveUrl.spec.js +341 -0
  96. package/dist/helpers/tests/testSanitizeHtml.spec.js +330 -0
  97. package/dist/helpers/tests/testSimplifyHtml.spec.js +251 -0
  98. package/dist/helpers/tests/testValidateDataUsingSchema.spec.js +380 -0
  99. package/dist/helpers/tests/testWaitForDomSettled.spec.js +169 -0
  100. package/dist/helpers/tests/testWaitForNetworkIdle.spec.js +115 -0
  101. package/dist/helpers/types/Attachment.js +81 -0
  102. package/dist/helpers/types/CustomTypeRegistry.js +48 -0
  103. package/dist/helpers/types/RunEnvironment.js +18 -0
  104. package/dist/helpers/types/ValidationError.js +17 -0
  105. package/dist/helpers/types/index.js +51 -0
  106. package/dist/helpers/uploadFileToS3.js +153 -0
  107. package/dist/helpers/utils/getS3Client.js +21 -0
  108. package/dist/helpers/utils/index.js +73 -0
  109. package/dist/helpers/utils/isDownload.js +10 -0
  110. package/dist/helpers/utils/isGenerateCodeMode.js +9 -0
  111. package/dist/helpers/utils/isLocator.js +9 -0
  112. package/dist/helpers/utils/jwtTokenManager.js +18 -0
  113. package/dist/helpers/validateDataUsingSchema.js +119 -0
  114. package/dist/helpers/waitForDomSettled.js +182 -0
  115. package/dist/helpers/waitForNetworkIdle.js +191 -0
  116. package/dist/index.d.js +82 -0
  117. package/dist/index.d.ts +11 -0
  118. package/dist/index.js +84 -0
  119. package/dist/intunedServices/ApiGateway/aiApiGateway.js +87 -0
  120. package/dist/intunedServices/ApiGateway/factory.js +13 -0
  121. package/dist/intunedServices/ApiGateway/providers/Anthropic.js +26 -0
  122. package/dist/intunedServices/ApiGateway/providers/Gemini.js +29 -0
  123. package/dist/intunedServices/ApiGateway/providers/OpenAI.js +29 -0
  124. package/dist/intunedServices/ApiGateway/tests/testApiGateway.spec.js +221 -0
  125. package/dist/intunedServices/ApiGateway/types.js +11 -0
  126. package/dist/intunedServices/cache/cache.js +61 -0
  127. package/dist/intunedServices/cache/index.js +12 -0
  128. package/dist/intunedServices/cache/tests/testCache.spec.js +117 -0
  129. package/dist/optimized-extractors/common/buildExamplesPrompt.js +12 -0
  130. package/dist/optimized-extractors/common/buildImagesFromPage.js +55 -0
  131. package/dist/optimized-extractors/common/extractStructuredDataUsingClaude.js +149 -0
  132. package/dist/optimized-extractors/common/extractStructuredDataUsingGoogle.js +37 -0
  133. package/dist/optimized-extractors/common/extractStructuredDataUsingOpenAi.js +145 -0
  134. package/dist/optimized-extractors/common/extractStrucutredDataUsingAiInstance.js +122 -0
  135. package/dist/optimized-extractors/common/findTableHeaders.js +175 -0
  136. package/dist/optimized-extractors/common/index.js +55 -0
  137. package/dist/optimized-extractors/common/isTableHeaderOrFooter.js +97 -0
  138. package/dist/optimized-extractors/common/matching/matching.js +212 -0
  139. package/dist/optimized-extractors/common/matching/matching.test.js +655 -0
  140. package/dist/optimized-extractors/common/matching/types.js +18 -0
  141. package/dist/optimized-extractors/common/matching/utils.js +184 -0
  142. package/dist/optimized-extractors/common/utils.js +58 -0
  143. package/dist/optimized-extractors/export.d.js +5 -0
  144. package/dist/optimized-extractors/export.d.ts +397 -0
  145. package/dist/optimized-extractors/extractArray.js +120 -0
  146. package/dist/optimized-extractors/extractObject.js +104 -0
  147. package/dist/optimized-extractors/index.d.ts +397 -0
  148. package/dist/optimized-extractors/index.js +31 -0
  149. package/dist/optimized-extractors/listExtractionHelpers/__tests__/dynamicListExtractor.spec.js +312 -0
  150. package/dist/optimized-extractors/listExtractionHelpers/__tests__/findSetOfXpathsToCreateAnArrayExtractor.test.js +22 -0
  151. package/dist/optimized-extractors/listExtractionHelpers/__tests__/getContainerElement.test.js +21 -0
  152. package/dist/optimized-extractors/listExtractionHelpers/__tests__/partOfSameArrayXpath.test.js +42 -0
  153. package/dist/optimized-extractors/listExtractionHelpers/__tests__/verifyThatAllXpathsArePartOfSameArray.test.js +9 -0
  154. package/dist/optimized-extractors/listExtractionHelpers/dynamicListExtractor.js +152 -0
  155. package/dist/optimized-extractors/listExtractionHelpers/errors.js +46 -0
  156. package/dist/optimized-extractors/listExtractionHelpers/getListMatches.js +14 -0
  157. package/dist/optimized-extractors/listExtractionHelpers/runAiExtraction.js +240 -0
  158. package/dist/optimized-extractors/listExtractionHelpers/typesAndSchema.js +5 -0
  159. package/dist/optimized-extractors/listExtractionHelpers/utils/extractPropertiesUsingGPTFromArray.js +277 -0
  160. package/dist/optimized-extractors/listExtractionHelpers/utils/extractStructuredListUsingAi.js +44 -0
  161. package/dist/optimized-extractors/listExtractionHelpers/utils/getListContainerXpath.js +94 -0
  162. package/dist/optimized-extractors/listExtractionHelpers/utils/getRelativeContainerXpathSelector.js +20 -0
  163. package/dist/optimized-extractors/listExtractionHelpers/utils/getSimplifiedHtmlPerListItem.js +21 -0
  164. package/dist/optimized-extractors/listExtractionHelpers/utils/tablesUtils.js +48 -0
  165. package/dist/optimized-extractors/listExtractionHelpers/utils/validateOptions.js +52 -0
  166. package/dist/optimized-extractors/models/anthropicModel.js +23 -0
  167. package/dist/optimized-extractors/models/openaiModel.js +23 -0
  168. package/dist/optimized-extractors/objectExtractionHelpers/AIExtractors.js +73 -0
  169. package/dist/optimized-extractors/objectExtractionHelpers/__tests__/checksumUtils.test.js +103 -0
  170. package/dist/optimized-extractors/objectExtractionHelpers/__tests__/testObjectExtractorFromLocator.spec.js +107 -0
  171. package/dist/optimized-extractors/objectExtractionHelpers/__tests__/testObjectExtractorFromPage.spec.js +107 -0
  172. package/dist/optimized-extractors/objectExtractionHelpers/calculateObjectExampleHash.js +28 -0
  173. package/dist/optimized-extractors/objectExtractionHelpers/captureSnapshot.js +26 -0
  174. package/dist/optimized-extractors/objectExtractionHelpers/checksumUtils.js +32 -0
  175. package/dist/optimized-extractors/objectExtractionHelpers/constants.js +7 -0
  176. package/dist/optimized-extractors/objectExtractionHelpers/dynamicObjectExtractor.js +106 -0
  177. package/dist/optimized-extractors/objectExtractionHelpers/errors.js +42 -0
  178. package/dist/optimized-extractors/objectExtractionHelpers/findDomMatches.js +54 -0
  179. package/dist/optimized-extractors/objectExtractionHelpers/getSimplifiedHtml.js +122 -0
  180. package/dist/optimized-extractors/objectExtractionHelpers/typesAndSchemas.js +5 -0
  181. package/dist/optimized-extractors/objectExtractionHelpers/validateDynamicObjectExtractorOptions.js +52 -0
  182. package/dist/optimized-extractors/types/aiModelsValidation.js +45 -0
  183. package/dist/optimized-extractors/types/errors.js +42 -0
  184. package/dist/optimized-extractors/types/jsonSchema.d.js +5 -0
  185. package/dist/optimized-extractors/types/jsonSchema.d.ts +50 -0
  186. package/dist/optimized-extractors/types/types.js +5 -0
  187. package/dist/optimized-extractors/validators.js +152 -0
  188. package/dist/vite-env.d.js +1 -0
  189. package/dist/vite-env.d.ts +9 -0
  190. package/docs.md +14 -0
  191. package/how-to-run-tests.md +10 -0
  192. package/intuned-runtime-setup.md +13 -0
  193. package/package.json +124 -0
  194. package/tsconfig.eslint.json +5 -0
  195. package/tsconfig.json +26 -0
@@ -0,0 +1,330 @@
1
+ "use strict";
2
+
3
+ var _extendedTest = require("./extendedTest");
4
+ var _ = require("..");
5
+ (0, _extendedTest.describe)("Sanitize HTML Tests", () => {
6
+ (0, _extendedTest.test)("sanitize html", async () => {
7
+ const html = "<div>Hello</div>";
8
+ (0, _extendedTest.expect)((0, _.sanitizeHtml)({
9
+ html
10
+ })).toBe("<div>Hello</div>");
11
+ });
12
+ (0, _extendedTest.test)("sanitize html with custom options", async () => {
13
+ const html = `<div>
14
+ <script>alert('test')</script>
15
+ <style>.test { color: red; }</style>
16
+ <p>Content</p>
17
+ </div>`;
18
+ const result = (0, _.sanitizeHtml)({
19
+ html,
20
+ removeScripts: true,
21
+ removeStyles: false
22
+ });
23
+ (0, _extendedTest.expect)(result).not.toContain("<script>");
24
+ (0, _extendedTest.expect)(result).toContain("<style>");
25
+ (0, _extendedTest.expect)(result).toContain("Content");
26
+ });
27
+ (0, _extendedTest.test)("control attribute preservation", async () => {
28
+ const html = `<div data-long="${"x".repeat(600)}" class="test" style="color: red;">Content</div>`;
29
+ const result = (0, _.sanitizeHtml)({
30
+ html,
31
+ maxAttributeLength: 10,
32
+ preserveAttributes: ["class", "style"]
33
+ });
34
+ (0, _extendedTest.expect)(result).toContain('class="test"');
35
+ (0, _extendedTest.expect)(result).toContain('style="color: red;"');
36
+ (0, _extendedTest.expect)(result).not.toContain("data-long");
37
+ });
38
+ (0, _extendedTest.test)("clean long attribute values", async () => {
39
+ const html = `<div class="hdt-card-product__wrapper">
40
+ <div class="hdt-card-product__media hdt-relative hdt-oh hdt-has-size-list" calc-nav="">
41
+
42
+ <a data-pr-url="" href="/collections/ver-todo-bebe-nina/products/745049-015520" data-instant="" calc-nav=""
43
+ class="hdt-card-product__media-wrapp hdt-ratio custom-card-img-url"
44
+ style="--aspect-ratioapt: 0.7917656373713381"><img
45
+ src="//www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-1.jpg?v=1721784699&amp;width=1000"
46
+ alt="Vestido con body y manga corta rosado"
47
+ srcset="//www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-1.jpg?v=1721784699&amp;width=360 360w, //www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-1.jpg?v=1721784699&amp;width=533 533w, //www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-1.jpg?v=1721784699&amp;width=668 668w, //www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-1.jpg?v=1721784699&amp;width=720 720w, //www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-1.jpg?v=1721784699&amp;width=940 940w, //www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-1.jpg?v=1721784699&amp;width=940 940w"
48
+ width="1000" height="1263" loading="lazy" sizes="
49
+ (max-width: 767px) calc(100vw / 6), (max-width: 1149px) calc(100vw / 3), calc((100vw - 100px) / 3 - (30px / 3 * 2))"
50
+ data-widths="[360, 533, 668, 720, 940, 940, 1066, 1200, 1450]" class="hdt-card-product__media--main"><img
51
+ src="//www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-2.jpg?v=1721784699&amp;width=1000"
52
+ alt="Vestido con body y manga corta rosado"
53
+ srcset="//www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-2.jpg?v=1721784699&amp;width=360 360w, //www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-2.jpg?v=1721784699&amp;width=533 533w, //www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-2.jpg?v=1721784699&amp;width=668 668w, //www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-2.jpg?v=1721784699&amp;width=720 720w, //www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-2.jpg?v=1721784699&amp;width=940 940w, //www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-2.jpg?v=1721784699&amp;width=940 940w"
54
+ width="1000" height="1263" loading="lazy" sizes="
55
+ (max-width: 767px) calc(100vw / 6), (max-width: 1149px) calc(100vw / 3), calc((100vw - 100px) / 3 - (30px / 3 * 2))"
56
+ class="hdt-card-product__media--hover"></a>
57
+ <div class="hdt-badge__wrapp hdt-pe-none "></div>
58
+ <div class="hdt-absolute hdt-product-btns-12">
59
+
60
+
61
+
62
+
63
+
64
+ <fieldset class="hdt-text-center">
65
+ <p class="hdt-text-center">Selecciona la talla</p><input type="radio"
66
+ class="single-option-selector-template--23524841488756__main t4-swatch-init" value="0-3M" data-index="option1"
67
+ name="talla" id="SingleOptionSelector-9493229895974-0">
68
+ <label for="SingleOptionSelector-9493229895974-0" data-value="0-3M">
69
+ 0-3M
70
+ </label><input type="radio" class="single-option-selector-template--23524841488756__main t4-swatch-init"
71
+ value="3-6M" data-index="option1" name="talla" id="SingleOptionSelector-9493229895974-1">
72
+ <label for="SingleOptionSelector-9493229895974-1" data-value="3-6M">
73
+ 3-6M
74
+ </label><input type="radio" class="single-option-selector-template--23524841488756__main t4-swatch-init"
75
+ value="6-9M" data-index="option1" name="talla" id="SingleOptionSelector-9493229895974-2">
76
+ <label for="SingleOptionSelector-9493229895974-2" data-value="6-9M">
77
+ 6-9M
78
+ </label><input type="radio" class="single-option-selector-template--23524841488756__main t4-swatch-init"
79
+ value="9-12M" data-index="option1" name="talla" id="SingleOptionSelector-9493229895974-3">
80
+ <label for="SingleOptionSelector-9493229895974-3" data-value="9-12M">
81
+ 9-12M
82
+ </label><input type="radio" class="single-option-selector-template--23524841488756__main t4-swatch-init"
83
+ value="12-18M" data-index="option1" name="talla" id="SingleOptionSelector-9493229895974-4">
84
+ <label for="SingleOptionSelector-9493229895974-4" data-value="12-18M">
85
+ 12-18M
86
+ </label><input type="radio" class="single-option-selector-template--23524841488756__main t4-swatch-init"
87
+ value="18-24M" data-index="option1" name="talla" id="SingleOptionSelector-9493229895974-5">
88
+ <label for="SingleOptionSelector-9493229895974-5" data-value="18-24M">
89
+ 18-24M
90
+ </label>
91
+ </fieldset>
92
+
93
+
94
+
95
+
96
+ </div>
97
+
98
+
99
+
100
+
101
+ </div>
102
+ <div class="hdt-card-product__info hdt-card-align-left">
103
+ <div class="custom-price__badge">
104
+ <a data-pr-url="" href="/collections/ver-todo-bebe-nina/products/745049-015520"
105
+ class="hdt-card-product__title hdt-text-lg hdt-font-light hdt-line-clamp" data-instant="">Vestido con body y
106
+ manga corta rosado</a>
107
+ <div class="hdt-product-badges hdt-product-badges__collection"><span class="badge-item badge-item-new"
108
+ style="display: none;">NEW</span>
109
+ <span class="badge-item badge-item-sale" style="display: none;">Sale</span>
110
+ </div>
111
+ </div>
112
+ <div class="hdt-price-wrapp hdt-text-base hdt-font-medium">
113
+ <div class="hdt-price__list"><hdt-price class="hdt-price">
114
+ <span class="sr-only sr-only--inline">Descuento</span><span class="hdt-money">$89.990</span></hdt-price></div>
115
+ </div>
116
+
117
+
118
+ <div class="t4s-product-colors">
119
+ <fieldset is="hdt-color-list" class="hdt-color-list hdt-color-list-style-1" maximum="4" event="click"
120
+ action-all="">
121
+ <div class="hdt-color-list-item">
122
+
123
+
124
+
125
+ <span
126
+ class="t4s-pr-color__item t4-variant-custom hdt-color-list-color hdt-rounded-full is-swatch--selected t4-initied"
127
+ data-section-id="template--23524841488756__main"
128
+ data-options="[{&quot;name&quot;:&quot;Talla&quot;,&quot;position&quot;:1,&quot;values&quot;:[&quot;0-3M&quot;,&quot;3-6M&quot;,&quot;6-9M&quot;,&quot;9-12M&quot;,&quot;12-18M&quot;,&quot;18-24M&quot;]}]"
129
+ data-compare-price="8999000" data-price-min="" data-price-max=""
130
+ data-product="{&quot;id&quot;:9493229895974,&quot;title&quot;:&quot;Vestido con body y manga corta rosado&quot;,&quot;handle&quot;:&quot;745049-015520&quot;,&quot;description&quot;:&quot;\\u003cul\\u003e\\n\\u003cli\\u003eVestido corto con body cuello redondo manga corta\\u003c\\/li\\u003e\\n\\u003cli\\u003eElaborado en algodón el cual Proporciona suavida d y frescura ideal para la piel del bebe\\u003c\\/li\\u003e\\n\\u003cli\\u003ePerilla en frente para facilidad al vestir\\u003c\\/li\\u003e\\n\\u003cli\\u003eBotones de pres ión en entrepierna para mayor facilidad al vestir\\u003c\\/li\\u003e\\n\\u003cli\\u003eCon marquilla estampada para mayor comodidad\\u003c\\/li\\u003e\\n\\u003c\\/ul\\u003e&quot;,&quot;published_at&quot;:&quot;2024-07-24T10:10:16-05:00&quot;,&quot;created_at&quot;:&quot;2024-07-23T16:16:36-05:00&quot;,&quot;vendor&quot;:&quot;Baby Fresh&quot;,&quot;type&quot;:&quot;Bebitas&quot;,&quot;tags&quot;:[&quot;0-3M&quot;,&quot;12-18M&quot;,&quot;18-24M&quot;,&quot;3-6M&quot;,&quot;6-9M&quot;,&quot;9-12M&quot;,&quot;Bebé niña&quot;,&quot;Fexar&quot;,&quot;Kilogramos&quot;,&quot;Prueba&quot;,&quot;Vestidos&quot;],&quot;price&quot;:8999000,&quot;price_min&quot;:8999000,&quot;price_max&quot;:8999000,&quot;available&quot;:true,&quot;price_varies&quot;:false,&quot;compare_at_price&quot;:8999000,&quot;compare_at_price_min&quot;:8999000,&quot;compare_at_price_max&quot;:8999000,&quot;compare_at_price_varies&quot;:false,&quot;variants&quot;:[{&quot;id&quot;:49284929290534,&quot;title&quot;:&quot;0-3M&quot;,&quot;option1&quot;:&quot;0-3M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259093993&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta rosado - 0-3M&quot;,&quot;public_title&quot;:&quot;0-3M&quot;,&quot;options&quot;:[&quot;0-3M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-015520&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929323302,&quot;title&quot;:&quot;3-6M&quot;,&quot;option1&quot;:&quot;3-6M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094013&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta rosado - 3-6M&quot;,&quot;public_title&quot;:&quot;3-6M&quot;,&quot;options&quot;:[&quot;3-6M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-015520&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929356070,&quot;title&quot;:&quot;6-9M&quot;,&quot;option1&quot;:&quot;6-9M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094037&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta rosado - 6-9M&quot;,&quot;public_title&quot;:&quot;6-9M&quot;,&quot;options&quot;:[&quot;6-9M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-015520&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929388838,&quot;title&quot;:&quot;9-12M&quot;,&quot;option1&quot;:&quot;9-12M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094075&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta rosado - 9-12M&quot;,&quot;public_title&quot;:&quot;9-12M&quot;,&quot;options&quot;:[&quot;9-12M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-015520&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929421606,&quot;title&quot;:&quot;12-18M&quot;,&quot;option1&quot;:&quot;12-18M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094112&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta rosado - 12-18M&quot;,&quot;public_title&quot;:&quot;12-18M&quot;,&quot;options&quot;:[&quot;12-18M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-015520&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929454374,&quot;title&quot;:&quot;18-24M&quot;,&quot;option1&quot;:&quot;18-24M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094150&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta rosado - 18-24M&quot;,&quot;public_title&quot;:&quot;18-24M&quot;,&quot;options&quot;:[&quot;18-24M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-015520&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}}],&quot;images&quot;:[&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-1.jpg?v=1721784699&quot;,&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-2.jpg?v=1721784699&quot;,&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-3.jpg?v=1721784699&quot;,&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-4.jpg?v=1721784699&quot;,&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-5_2e9bd38b-0ec7-40e9-9e15-5413d3ea4f3f.jpg?v=1724944530&quot;],&quot;featured_image&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-1.jpg?v=1721784699&quot;,&quot;options&quot;:[&quot;Talla&quot;],&quot;media&quot;:[{&quot;alt&quot;:null,&quot;id&quot;:40256577470758,&quot;position&quot;:1,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-1.jpg?v=1721784699&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-1.jpg?v=1721784699&quot;,&quot;width&quot;:1000},{&quot;alt&quot;:null,&quot;id&quot;:40256577536294,&quot;position&quot;:2,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-2.jpg?v=1721784699&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-2.jpg?v=1721784699&quot;,&quot;width&quot;:1000},{&quot;alt&quot;:null,&quot;id&quot;:40256577569062,&quot;position&quot;:3,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-3.jpg?v=1721784699&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-3.jpg?v=1721784699&quot;,&quot;width&quot;:1000},{&quot;alt&quot;:null,&quot;id&quot;:40256577601830,&quot;position&quot;:4,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-4.jpg?v=1721784699&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-4.jpg?v=1721784699&quot;,&quot;width&quot;:1000},{&quot;alt&quot;:null,&quot;id&quot;:40599026630950,&quot;position&quot;:5,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-5_2e9bd38b-0ec7-40e9-9e15-5413d3ea4f3f.jpg?v=1724944530&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-rosado-15520-745049_015520-5_2e9bd38b-0ec7-40e9-9e15-5413d3ea4f3f.jpg?v=1724944530&quot;,&quot;width&quot;:1000}],&quot;requires_selling_plan&quot;:false,&quot;selling_plan_groups&quot;:[],&quot;content&quot;:&quot;\\u003cul\\u003e\\n\\u003cli\\u003eVestido corto con body cuello redondo manga corta\\u003c\\/li\\u003e\\n\\u003cli\\u003eElaborado en algodón el cual Proporciona suavida d y frescura ideal para la piel del bebe\\u003c\\/li\\u003e\\n\\u003cli\\u003ePerilla en frente para facilidad al vestir\\u003c\\/li\\u003e\\n\\u003cli\\u003eBotones de pres ión en entrepierna para mayor facilidad al vestir\\u003c\\/li\\u003e\\n\\u003cli\\u003eCon marquilla estampada para mayor comodidad\\u003c\\/li\\u003e\\n\\u003c\\/ul\\u003e&quot;}"
131
+ data-id="9493229895974" data-url="/products/745049-015520"
132
+ data-image="//www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-1.jpg?v=1721784699&amp;width=270"
133
+ data-price="8999000" data-ratio="1" data-new=""
134
+ data-variants="[[{&quot;id&quot;:49284929290534,&quot;title&quot;:&quot;0-3M&quot;,&quot;option1&quot;:&quot;0-3M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259093993&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta rosado - 0-3M&quot;,&quot;public_title&quot;:&quot;0-3M&quot;,&quot;options&quot;:[&quot;0-3M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-015520&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929323302,&quot;title&quot;:&quot;3-6M&quot;,&quot;option1&quot;:&quot;3-6M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094013&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta rosado - 3-6M&quot;,&quot;public_title&quot;:&quot;3-6M&quot;,&quot;options&quot;:[&quot;3-6M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-015520&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929356070,&quot;title&quot;:&quot;6-9M&quot;,&quot;option1&quot;:&quot;6-9M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094037&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta rosado - 6-9M&quot;,&quot;public_title&quot;:&quot;6-9M&quot;,&quot;options&quot;:[&quot;6-9M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-015520&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929388838,&quot;title&quot;:&quot;9-12M&quot;,&quot;option1&quot;:&quot;9-12M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094075&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta rosado - 9-12M&quot;,&quot;public_title&quot;:&quot;9-12M&quot;,&quot;options&quot;:[&quot;9-12M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-015520&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929421606,&quot;title&quot;:&quot;12-18M&quot;,&quot;option1&quot;:&quot;12-18M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094112&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta rosado - 12-18M&quot;,&quot;public_title&quot;:&quot;12-18M&quot;,&quot;options&quot;:[&quot;12-18M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-015520&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929454374,&quot;title&quot;:&quot;18-24M&quot;,&quot;option1&quot;:&quot;18-24M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094150&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta rosado - 18-24M&quot;,&quot;public_title&quot;:&quot;18-24M&quot;,&quot;options&quot;:[&quot;18-24M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-015520&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}}]]">
135
+ <span class="t4s-pr-color__value lazyloadt4s"
136
+ style="background: url(//www.babyfresh.co/cdn/shop/files/fexar-rosado-15520-745049_015520-1.jpg?v=1721784699&amp;width=50);"></span>
137
+ </span>
138
+ <span class="t4s-pr-color__item t4-variant-custom hdt-color-list-color hdt-rounded-full t4-initied"
139
+ data-section-id="template--23524841488756__main"
140
+ data-options="[{&quot;name&quot;:&quot;Talla&quot;,&quot;position&quot;:1,&quot;values&quot;:[&quot;0-3M&quot;,&quot;3-6M&quot;,&quot;6-9M&quot;,&quot;9-12M&quot;,&quot;12-18M&quot;,&quot;18-24M&quot;]}]"
141
+ data-compare-price="7999000" data-price-min="" data-price-max=""
142
+ data-product="{&quot;id&quot;:9493230092582,&quot;title&quot;:&quot;Vestido con body y manga corta beige estampado&quot;,&quot;handle&quot;:&quot;745049-040769&quot;,&quot;description&quot;:&quot;\\u003cul\\u003e\\n\\u003cli\\u003eVestido corto con body cuello redondo manga corta\\u003c\\/li\\u003e\\n\\u003cli\\u003eElaborado en algodón el cual Proporciona suavida d y frescura ideal para la piel del bebe\\u003c\\/li\\u003e\\n\\u003cli\\u003ePerilla en frente para facilidad al vestir\\u003c\\/li\\u003e\\n\\u003cli\\u003eBotones de pres ión en entrepierna para mayor facilidad al vestir\\u003c\\/li\\u003e\\n\\u003cli\\u003eCon marquilla estampada para mayor comodidad\\u003c\\/li\\u003e\\n\\u003c\\/ul\\u003e&quot;,&quot;published_at&quot;:&quot;2024-08-12T12:52:44-05:00&quot;,&quot;created_at&quot;:&quot;2024-07-23T16:16:39-05:00&quot;,&quot;vendor&quot;:&quot;Baby Fresh&quot;,&quot;type&quot;:&quot;Bebitas&quot;,&quot;tags&quot;:[&quot;0-3M&quot;,&quot;12-18M&quot;,&quot;18-24M&quot;,&quot;3-6M&quot;,&quot;6-9M&quot;,&quot;9-12M&quot;,&quot;Bebé niña&quot;,&quot;Fexar&quot;,&quot;Kilogramos&quot;,&quot;Oferta&quot;,&quot;Prueba&quot;,&quot;Vestidos&quot;],&quot;price&quot;:6999000,&quot;price_min&quot;:6999000,&quot;price_max&quot;:6999000,&quot;available&quot;:true,&quot;price_varies&quot;:false,&quot;compare_at_price&quot;:7999000,&quot;compare_at_price_min&quot;:7999000,&quot;compare_at_price_max&quot;:7999000,&quot;compare_at_price_varies&quot;:false,&quot;variants&quot;:[{&quot;id&quot;:49284929650982,&quot;title&quot;:&quot;0-3M&quot;,&quot;option1&quot;:&quot;0-3M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094006&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 0-3M&quot;,&quot;public_title&quot;:&quot;0-3M&quot;,&quot;options&quot;:[&quot;0-3M&quot;],&quot;price&quot;:6999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:7999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-040769&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929683750,&quot;title&quot;:&quot;3-6M&quot;,&quot;option1&quot;:&quot;3-6M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094020&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 3-6M&quot;,&quot;public_title&quot;:&quot;3-6M&quot;,&quot;options&quot;:[&quot;3-6M&quot;],&quot;price&quot;:6999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:7999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-040769&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929716518,&quot;title&quot;:&quot;6-9M&quot;,&quot;option1&quot;:&quot;6-9M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094051&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 6-9M&quot;,&quot;public_title&quot;:&quot;6-9M&quot;,&quot;options&quot;:[&quot;6-9M&quot;],&quot;price&quot;:6999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:7999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-040769&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929749286,&quot;title&quot;:&quot;9-12M&quot;,&quot;option1&quot;:&quot;9-12M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094099&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 9-12M&quot;,&quot;public_title&quot;:&quot;9-12M&quot;,&quot;options&quot;:[&quot;9-12M&quot;],&quot;price&quot;:6999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:7999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-040769&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929782054,&quot;title&quot;:&quot;12-18M&quot;,&quot;option1&quot;:&quot;12-18M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094136&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 12-18M&quot;,&quot;public_title&quot;:&quot;12-18M&quot;,&quot;options&quot;:[&quot;12-18M&quot;],&quot;price&quot;:6999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:7999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-040769&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929814822,&quot;title&quot;:&quot;18-24M&quot;,&quot;option1&quot;:&quot;18-24M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094174&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 18-24M&quot;,&quot;public_title&quot;:&quot;18-24M&quot;,&quot;options&quot;:[&quot;18-24M&quot;],&quot;price&quot;:6999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:7999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-040769&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}}],&quot;images&quot;:[&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-1.jpg?v=1721784690&quot;,&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-2_717dc0ac-a641-4025-bf01-d11a9445d416.jpg?v=1725462754&quot;,&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-2.jpg?v=1721784690&quot;,&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-3.jpg?v=1721784690&quot;,&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-4.jpg?v=1721784690&quot;,&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-5.jpg?v=1721784690&quot;],&quot;featured_image&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-1.jpg?v=1721784690&quot;,&quot;options&quot;:[&quot;Talla&quot;],&quot;media&quot;:[{&quot;alt&quot;:null,&quot;id&quot;:40256576323878,&quot;position&quot;:1,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-1.jpg?v=1721784690&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-1.jpg?v=1721784690&quot;,&quot;width&quot;:1000},{&quot;alt&quot;:null,&quot;id&quot;:40641627390246,&quot;position&quot;:2,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-2_717dc0ac-a641-4025-bf01-d11a9445d416.jpg?v=1725462754&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-2_717dc0ac-a641-4025-bf01-d11a9445d416.jpg?v=1725462754&quot;,&quot;width&quot;:1000},{&quot;alt&quot;:null,&quot;id&quot;:40256576356646,&quot;position&quot;:3,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-2.jpg?v=1721784690&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-2.jpg?v=1721784690&quot;,&quot;width&quot;:1000},{&quot;alt&quot;:null,&quot;id&quot;:40256576389414,&quot;position&quot;:4,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-3.jpg?v=1721784690&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-3.jpg?v=1721784690&quot;,&quot;width&quot;:1000},{&quot;alt&quot;:null,&quot;id&quot;:40256576422182,&quot;position&quot;:5,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-4.jpg?v=1721784690&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-4.jpg?v=1721784690&quot;,&quot;width&quot;:1000},{&quot;alt&quot;:null,&quot;id&quot;:40256576454950,&quot;position&quot;:6,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-5.jpg?v=1721784690&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-40769-745049_040769-5.jpg?v=1721784690&quot;,&quot;width&quot;:1000}],&quot;requires_selling_plan&quot;:false,&quot;selling_plan_groups&quot;:[],&quot;content&quot;:&quot;\\u003cul\\u003e\\n\\u003cli\\u003eVestido corto con body cuello redondo manga corta\\u003c\\/li\\u003e\\n\\u003cli\\u003eElaborado en algodón el cual Proporciona suavida d y frescura ideal para la piel del bebe\\u003c\\/li\\u003e\\n\\u003cli\\u003ePerilla en frente para facilidad al vestir\\u003c\\/li\\u003e\\n\\u003cli\\u003eBotones de pres ión en entrepierna para mayor facilidad al vestir\\u003c\\/li\\u003e\\n\\u003cli\\u003eCon marquilla estampada para mayor comodidad\\u003c\\/li\\u003e\\n\\u003c\\/ul\\u003e&quot;}"
143
+ data-id="9493230092582" data-url="/products/745049-040769"
144
+ data-image="//www.babyfresh.co/cdn/shop/files/fexar-beige-estampado-40769-745049_040769-1.jpg?v=1721784690&amp;width=270"
145
+ data-price="6999000" data-ratio="1" data-new=""
146
+ data-variants="[[{&quot;id&quot;:49284929650982,&quot;title&quot;:&quot;0-3M&quot;,&quot;option1&quot;:&quot;0-3M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094006&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 0-3M&quot;,&quot;public_title&quot;:&quot;0-3M&quot;,&quot;options&quot;:[&quot;0-3M&quot;],&quot;price&quot;:6999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:7999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-040769&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929683750,&quot;title&quot;:&quot;3-6M&quot;,&quot;option1&quot;:&quot;3-6M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094020&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 3-6M&quot;,&quot;public_title&quot;:&quot;3-6M&quot;,&quot;options&quot;:[&quot;3-6M&quot;],&quot;price&quot;:6999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:7999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-040769&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929716518,&quot;title&quot;:&quot;6-9M&quot;,&quot;option1&quot;:&quot;6-9M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094051&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 6-9M&quot;,&quot;public_title&quot;:&quot;6-9M&quot;,&quot;options&quot;:[&quot;6-9M&quot;],&quot;price&quot;:6999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:7999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-040769&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929749286,&quot;title&quot;:&quot;9-12M&quot;,&quot;option1&quot;:&quot;9-12M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094099&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 9-12M&quot;,&quot;public_title&quot;:&quot;9-12M&quot;,&quot;options&quot;:[&quot;9-12M&quot;],&quot;price&quot;:6999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:7999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-040769&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929782054,&quot;title&quot;:&quot;12-18M&quot;,&quot;option1&quot;:&quot;12-18M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094136&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 12-18M&quot;,&quot;public_title&quot;:&quot;12-18M&quot;,&quot;options&quot;:[&quot;12-18M&quot;],&quot;price&quot;:6999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:7999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-040769&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49284929814822,&quot;title&quot;:&quot;18-24M&quot;,&quot;option1&quot;:&quot;18-24M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259094174&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 18-24M&quot;,&quot;public_title&quot;:&quot;18-24M&quot;,&quot;options&quot;:[&quot;18-24M&quot;],&quot;price&quot;:6999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:7999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-040769&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}}]]">
147
+ <span class="t4s-pr-color__value lazyloadt4s"
148
+ style="background: url(//www.babyfresh.co/cdn/shop/files/fexar-beige-estampado-40769-745049_040769-1.jpg?v=1721784690&amp;width=50);"></span>
149
+ </span>
150
+ <span class="t4s-pr-color__item t4-variant-custom hdt-color-list-color hdt-rounded-full t4-initied"
151
+ data-section-id="template--23524841488756__main"
152
+ data-options="[{&quot;name&quot;:&quot;Talla&quot;,&quot;position&quot;:1,&quot;values&quot;:[&quot;0-3M&quot;,&quot;3-6M&quot;,&quot;6-9M&quot;,&quot;9-12M&quot;,&quot;12-18M&quot;,&quot;18-24M&quot;]}]"
153
+ data-compare-price="8999000" data-price-min="" data-price-max=""
154
+ data-product="{&quot;id&quot;:9493297201446,&quot;title&quot;:&quot;Vestido con body y manga corta beige estampado&quot;,&quot;handle&quot;:&quot;745049-046593&quot;,&quot;description&quot;:&quot;\\u003cul\\u003e\\n\\u003cli\\u003eVestido corto con body cuello redondo sin manga con bolero en sisa\\u003c\\/li\\u003e\\n\\u003cli\\u003eElaborado en algodón con elastan o\\u003c\\/li\\u003e\\n\\u003cli\\u003eProporciona suavidad y frescura ideal para la piel del bebé\\u003c\\/li\\u003e\\n\\u003cli\\u003eTejido ligeramente elástico que se ad apta mejor al cuerpo y brindar mayor comodidad\\u003c\\/li\\u003e\\n\\u003cli\\u003ePerilla en frente con botones funcionales y botones d e presión en entrepierna del body para mayor facilidad al vestir\\u003c\\/li\\u003e\\n\\u003cli\\u003eCon marquilla estampada para mayor comodidad\\u003c\\/li\\u003e\\n\\u003c\\/ul\\u003e&quot;,&quot;published_at&quot;:&quot;2024-08-24T08:20:26-05:00&quot;,&quot;created_at&quot;:&quot;2024-07-23T16:39:26-05:00&quot;,&quot;vendor&quot;:&quot;Baby Fresh&quot;,&quot;type&quot;:&quot;Bebitas&quot;,&quot;tags&quot;:[&quot;0-3M&quot;,&quot;12-18M&quot;,&quot;18-24M&quot;,&quot;3-6M&quot;,&quot;6-9M&quot;,&quot;9-12M&quot;,&quot;Bautizo&quot;,&quot;Bebé niña&quot;,&quot;Fexar&quot;,&quot;Kilogramos&quot;,&quot;Prueba&quot;,&quot;Vestidos&quot;],&quot;price&quot;:8999000,&quot;price_min&quot;:8999000,&quot;price_max&quot;:8999000,&quot;available&quot;:true,&quot;price_varies&quot;:false,&quot;compare_at_price&quot;:8999000,&quot;compare_at_price_min&quot;:8999000,&quot;compare_at_price_max&quot;:8999000,&quot;compare_at_price_varies&quot;:false,&quot;variants&quot;:[{&quot;id&quot;:49285132615974,&quot;title&quot;:&quot;0-3M&quot;,&quot;option1&quot;:&quot;0-3M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259191217&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 0-3M&quot;,&quot;public_title&quot;:&quot;0-3M&quot;,&quot;options&quot;:[&quot;0-3M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-046593&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49285132648742,&quot;title&quot;:&quot;3-6M&quot;,&quot;option1&quot;:&quot;3-6M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259191224&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 3-6M&quot;,&quot;public_title&quot;:&quot;3-6M&quot;,&quot;options&quot;:[&quot;3-6M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-046593&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49285132681510,&quot;title&quot;:&quot;6-9M&quot;,&quot;option1&quot;:&quot;6-9M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259191231&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 6-9M&quot;,&quot;public_title&quot;:&quot;6-9M&quot;,&quot;options&quot;:[&quot;6-9M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-046593&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49285132714278,&quot;title&quot;:&quot;9-12M&quot;,&quot;option1&quot;:&quot;9-12M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259191248&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 9-12M&quot;,&quot;public_title&quot;:&quot;9-12M&quot;,&quot;options&quot;:[&quot;9-12M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-046593&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49285132747046,&quot;title&quot;:&quot;12-18M&quot;,&quot;option1&quot;:&quot;12-18M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259191255&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 12-18M&quot;,&quot;public_title&quot;:&quot;12-18M&quot;,&quot;options&quot;:[&quot;12-18M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-046593&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49285132779814,&quot;title&quot;:&quot;18-24M&quot;,&quot;option1&quot;:&quot;18-24M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259191262&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 18-24M&quot;,&quot;public_title&quot;:&quot;18-24M&quot;,&quot;options&quot;:[&quot;18-24M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-046593&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}}],&quot;images&quot;:[&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-1_a5f84e6b-50d2-4fe2-bf97-01fb6688c9ce.jpg?v=1723725552&quot;,&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-2_69fe5b9d-475f-4277-a0ba-c54e8e8cbd8f.jpg?v=1723725552&quot;,&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-3_d30ebbfd-de94-4c6a-94d5-e2e8f0d9f56b.jpg?v=1723725552&quot;,&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-4_74768f37-8b78-44f9-aa0f-57d68fb420fc.jpg?v=1723725552&quot;,&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-5_ebf66abb-dc02-47af-8206-cd9037e92135.jpg?v=1724944514&quot;],&quot;featured_image&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-1_a5f84e6b-50d2-4fe2-bf97-01fb6688c9ce.jpg?v=1723725552&quot;,&quot;options&quot;:[&quot;Talla&quot;],&quot;media&quot;:[{&quot;alt&quot;:null,&quot;id&quot;:40459456250150,&quot;position&quot;:1,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-1_a5f84e6b-50d2-4fe2-bf97-01fb6688c9ce.jpg?v=1723725552&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-1_a5f84e6b-50d2-4fe2-bf97-01fb6688c9ce.jpg?v=1723725552&quot;,&quot;width&quot;:1000},{&quot;alt&quot;:null,&quot;id&quot;:40459456282918,&quot;position&quot;:2,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-2_69fe5b9d-475f-4277-a0ba-c54e8e8cbd8f.jpg?v=1723725552&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-2_69fe5b9d-475f-4277-a0ba-c54e8e8cbd8f.jpg?v=1723725552&quot;,&quot;width&quot;:1000},{&quot;alt&quot;:null,&quot;id&quot;:40459456315686,&quot;position&quot;:3,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-3_d30ebbfd-de94-4c6a-94d5-e2e8f0d9f56b.jpg?v=1723725552&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-3_d30ebbfd-de94-4c6a-94d5-e2e8f0d9f56b.jpg?v=1723725552&quot;,&quot;width&quot;:1000},{&quot;alt&quot;:null,&quot;id&quot;:40459456348454,&quot;position&quot;:4,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-4_74768f37-8b78-44f9-aa0f-57d68fb420fc.jpg?v=1723725552&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-4_74768f37-8b78-44f9-aa0f-57d68fb420fc.jpg?v=1723725552&quot;,&quot;width&quot;:1000},{&quot;alt&quot;:null,&quot;id&quot;:40599021584678,&quot;position&quot;:5,&quot;preview_image&quot;:{&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;width&quot;:1000,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-5_ebf66abb-dc02-47af-8206-cd9037e92135.jpg?v=1724944514&quot;},&quot;aspect_ratio&quot;:0.792,&quot;height&quot;:1263,&quot;media_type&quot;:&quot;image&quot;,&quot;src&quot;:&quot;\\/\\/www.babyfresh.co\\/cdn\\/shop\\/files\\/fexar-beige-estampado-46593-745049_046593-5_ebf66abb-dc02-47af-8206-cd9037e92135.jpg?v=1724944514&quot;,&quot;width&quot;:1000}],&quot;requires_selling_plan&quot;:false,&quot;selling_plan_groups&quot;:[],&quot;content&quot;:&quot;\\u003cul\\u003e\\n\\u003cli\\u003eVestido corto con body cuello redondo sin manga con bolero en sisa\\u003c\\/li\\u003e\\n\\u003cli\\u003eElaborado en algodón con elastan o\\u003c\\/li\\u003e\\n\\u003cli\\u003eProporciona suavidad y frescura ideal para la piel del bebé\\u003c\\/li\\u003e\\n\\u003cli\\u003eTejido ligeramente elástico que se ad apta mejor al cuerpo y brindar mayor comodidad\\u003c\\/li\\u003e\\n\\u003cli\\u003ePerilla en frente con botones funcionales y botones d e presión en entrepierna del body para mayor facilidad al vestir\\u003c\\/li\\u003e\\n\\u003cli\\u003eCon marquilla estampada para mayor comodidad\\u003c\\/li\\u003e\\n\\u003c\\/ul\\u003e&quot;}"
155
+ data-id="9493297201446" data-url="/products/745049-046593"
156
+ data-image="//www.babyfresh.co/cdn/shop/files/fexar-beige-estampado-46593-745049_046593-1_a5f84e6b-50d2-4fe2-bf97-01fb6688c9ce.jpg?v=1723725552&amp;width=270"
157
+ data-price="8999000" data-ratio="1" data-new=""
158
+ data-variants="[[{&quot;id&quot;:49285132615974,&quot;title&quot;:&quot;0-3M&quot;,&quot;option1&quot;:&quot;0-3M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259191217&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 0-3M&quot;,&quot;public_title&quot;:&quot;0-3M&quot;,&quot;options&quot;:[&quot;0-3M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-046593&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49285132648742,&quot;title&quot;:&quot;3-6M&quot;,&quot;option1&quot;:&quot;3-6M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259191224&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 3-6M&quot;,&quot;public_title&quot;:&quot;3-6M&quot;,&quot;options&quot;:[&quot;3-6M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-046593&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49285132681510,&quot;title&quot;:&quot;6-9M&quot;,&quot;option1&quot;:&quot;6-9M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259191231&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 6-9M&quot;,&quot;public_title&quot;:&quot;6-9M&quot;,&quot;options&quot;:[&quot;6-9M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-046593&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49285132714278,&quot;title&quot;:&quot;9-12M&quot;,&quot;option1&quot;:&quot;9-12M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259191248&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 9-12M&quot;,&quot;public_title&quot;:&quot;9-12M&quot;,&quot;options&quot;:[&quot;9-12M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-046593&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49285132747046,&quot;title&quot;:&quot;12-18M&quot;,&quot;option1&quot;:&quot;12-18M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259191255&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 12-18M&quot;,&quot;public_title&quot;:&quot;12-18M&quot;,&quot;options&quot;:[&quot;12-18M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-046593&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}},{&quot;id&quot;:49285132779814,&quot;title&quot;:&quot;18-24M&quot;,&quot;option1&quot;:&quot;18-24M&quot;,&quot;option2&quot;:null,&quot;option3&quot;:null,&quot;sku&quot;:&quot;7703259191262&quot;,&quot;requires_shipping&quot;:true,&quot;taxable&quot;:true,&quot;featured_image&quot;:null,&quot;available&quot;:true,&quot;name&quot;:&quot;Vestido con body y manga corta beige estampado - 18-24M&quot;,&quot;public_title&quot;:&quot;18-24M&quot;,&quot;options&quot;:[&quot;18-24M&quot;],&quot;price&quot;:8999000,&quot;weight&quot;:0,&quot;compare_at_price&quot;:8999000,&quot;inventory_management&quot;:&quot;shopify&quot;,&quot;barcode&quot;:&quot;745049-046593&quot;,&quot;requires_selling_plan&quot;:false,&quot;selling_plan_allocations&quot;:[],&quot;quantity_rule&quot;:{&quot;min&quot;:1,&quot;max&quot;:null,&quot;increment&quot;:1}}]]">
159
+ <span class="t4s-pr-color__value lazyloadt4s"
160
+ style="background: url(//www.babyfresh.co/cdn/shop/files/fexar-beige-estampado-46593-745049_046593-1_a5f84e6b-50d2-4fe2-bf97-01fb6688c9ce.jpg?v=1723725552&amp;width=50);"></span>
161
+ </span>
162
+ </div>
163
+ </fieldset>
164
+ </div>
165
+
166
+
167
+ </div>
168
+ </div>`;
169
+ const sanitizedHtml = (0, _.sanitizeHtml)({
170
+ html
171
+ });
172
+ (0, _extendedTest.expect)(sanitizedHtml).not.toContain("data-product");
173
+ (0, _extendedTest.expect)(sanitizedHtml).toContain("Selecciona la talla");
174
+ (0, _extendedTest.expect)(sanitizedHtml).not.toContain("style=");
175
+ });
176
+ (0, _extendedTest.test)("sanitize html doesnt clean content larger than 500 chars", async () => {
177
+ const html = `<div>${"ahmad".repeat(100)}</div>`;
178
+ const sanitizedHtml = (0, _.sanitizeHtml)({
179
+ html
180
+ });
181
+ (0, _extendedTest.expect)(sanitizedHtml).toBe(html);
182
+ });
183
+ (0, _extendedTest.test)("remove scripts option", async () => {
184
+ const html = `<div><script>alert('xss')</script><p>Content</p></div>`;
185
+ const resultRemove = (0, _.sanitizeHtml)({
186
+ html,
187
+ removeScripts: true
188
+ });
189
+ (0, _extendedTest.expect)(resultRemove).not.toContain("<script>");
190
+ (0, _extendedTest.expect)(resultRemove).toContain("Content");
191
+ const resultKeep = (0, _.sanitizeHtml)({
192
+ html,
193
+ removeScripts: false
194
+ });
195
+ (0, _extendedTest.expect)(resultKeep).toContain("<script>");
196
+ (0, _extendedTest.expect)(resultKeep).toContain("Content");
197
+ });
198
+ (0, _extendedTest.test)("remove styles option", async () => {
199
+ const html = `<div><style>.test { color: red; }</style><p>Content</p></div>`;
200
+ const resultRemove = (0, _.sanitizeHtml)({
201
+ html,
202
+ removeStyles: true
203
+ });
204
+ (0, _extendedTest.expect)(resultRemove).not.toContain("<style>");
205
+ (0, _extendedTest.expect)(resultRemove).toContain("Content");
206
+ const resultKeep = (0, _.sanitizeHtml)({
207
+ html,
208
+ removeStyles: false
209
+ });
210
+ (0, _extendedTest.expect)(resultKeep).toContain("<style>");
211
+ (0, _extendedTest.expect)(resultKeep).toContain("Content");
212
+ });
213
+ (0, _extendedTest.test)("remove svgs option", async () => {
214
+ const html = `<div><svg><circle r="10"/></svg><p>Content</p></div>`;
215
+ const resultRemove = (0, _.sanitizeHtml)({
216
+ html,
217
+ removeSvgs: true
218
+ });
219
+ (0, _extendedTest.expect)(resultRemove).not.toContain("<svg>");
220
+ (0, _extendedTest.expect)(resultRemove).toContain("Content");
221
+ const resultKeep = (0, _.sanitizeHtml)({
222
+ html,
223
+ removeSvgs: false
224
+ });
225
+ (0, _extendedTest.expect)(resultKeep).toContain("<svg>");
226
+ (0, _extendedTest.expect)(resultKeep).toContain("Content");
227
+ });
228
+ (0, _extendedTest.test)("remove comments option", async () => {
229
+ const html = `<div><!-- This is a comment --><p>Content</p></div>`;
230
+ const resultRemove = (0, _.sanitizeHtml)({
231
+ html,
232
+ removeComments: true
233
+ });
234
+ (0, _extendedTest.expect)(resultRemove).not.toContain("<!-- This is a comment -->");
235
+ (0, _extendedTest.expect)(resultRemove).toContain("Content");
236
+ const resultKeep = (0, _.sanitizeHtml)({
237
+ html,
238
+ removeComments: false
239
+ });
240
+ (0, _extendedTest.expect)(resultKeep).toContain("<!-- This is a comment -->");
241
+ (0, _extendedTest.expect)(resultKeep).toContain("Content");
242
+ });
243
+ (0, _extendedTest.test)("max attribute length option", async () => {
244
+ const html = `<div data-long="this-is-a-very-long-attribute-value" data-short="ok" class="test">Content</div>`;
245
+ const result = (0, _.sanitizeHtml)({
246
+ html,
247
+ maxAttributeLength: 10,
248
+ preserveAttributes: ["class", "data-short"]
249
+ });
250
+ (0, _extendedTest.expect)(result).not.toContain("data-long");
251
+ (0, _extendedTest.expect)(result).toContain("data-short");
252
+ (0, _extendedTest.expect)(result).toContain("class");
253
+ (0, _extendedTest.expect)(result).toContain("Content");
254
+ });
255
+ (0, _extendedTest.test)("preserve attributes option", async () => {
256
+ const html = `<div id="test" class="container" data-value="1234567899" style="color: red;">Content</div>`;
257
+ const result = (0, _.sanitizeHtml)({
258
+ html,
259
+ preserveAttributes: ["id", "class", "data-value"],
260
+ maxAttributeLength: 7
261
+ });
262
+ (0, _extendedTest.expect)(result).toContain('id="test"');
263
+ (0, _extendedTest.expect)(result).toContain('class="container"');
264
+ (0, _extendedTest.expect)(result).toContain("data-value");
265
+ (0, _extendedTest.expect)(result).not.toContain("style");
266
+ (0, _extendedTest.expect)(result).toContain("Content");
267
+ });
268
+ (0, _extendedTest.test)("remove empty tags option", async () => {
269
+ const html = `<div><span></span><p>Content</p><div></div></div>`;
270
+ const resultRemove = (0, _.sanitizeHtml)({
271
+ html,
272
+ removeEmptyTags: true
273
+ });
274
+ (0, _extendedTest.expect)(resultRemove).not.toContain("<span></span>");
275
+ (0, _extendedTest.expect)(resultRemove).not.toContain("<div></div>");
276
+ (0, _extendedTest.expect)(resultRemove).toContain("Content");
277
+ const resultKeep = (0, _.sanitizeHtml)({
278
+ html,
279
+ removeEmptyTags: false
280
+ });
281
+ (0, _extendedTest.expect)(resultKeep).toContain("<span></span>");
282
+ (0, _extendedTest.expect)(resultKeep).toContain("Content");
283
+ });
284
+ (0, _extendedTest.test)("minify whitespace option", async () => {
285
+ const html = `<div>
286
+
287
+ <p> Content </p>
288
+
289
+
290
+ </div>`;
291
+ const resultMinify = (0, _.sanitizeHtml)({
292
+ html,
293
+ minifyWhitespace: true
294
+ });
295
+ (0, _extendedTest.expect)(resultMinify).not.toContain("\n\n");
296
+ (0, _extendedTest.expect)(resultMinify).not.toContain(" ");
297
+ (0, _extendedTest.expect)(resultMinify).toContain("Content");
298
+ const resultKeep = (0, _.sanitizeHtml)({
299
+ html,
300
+ minifyWhitespace: false
301
+ });
302
+ (0, _extendedTest.expect)(resultKeep).toContain("Content");
303
+ });
304
+ (0, _extendedTest.test)("combined options", async () => {
305
+ const html = `<div>
306
+ <script>alert('test')</script>
307
+ <style>.test { color: red; }</style>
308
+ <!-- comment -->
309
+ <p data-long="${"x".repeat(100)}" class="keep">Content</p>
310
+ <span></span>
311
+ </div>`;
312
+ const result = (0, _.sanitizeHtml)({
313
+ html,
314
+ removeScripts: true,
315
+ removeStyles: false,
316
+ removeComments: true,
317
+ maxAttributeLength: 20,
318
+ preserveAttributes: ["class"],
319
+ removeEmptyTags: true,
320
+ minifyWhitespace: true
321
+ });
322
+ (0, _extendedTest.expect)(result).not.toContain("<script>");
323
+ (0, _extendedTest.expect)(result).toContain("<style>");
324
+ (0, _extendedTest.expect)(result).not.toContain("<!-- comment -->");
325
+ (0, _extendedTest.expect)(result).not.toContain("data-long");
326
+ (0, _extendedTest.expect)(result).toContain('class="keep"');
327
+ (0, _extendedTest.expect)(result).not.toContain("<span></span>");
328
+ (0, _extendedTest.expect)(result).toContain("Content");
329
+ });
330
+ });