@useinsider/guido 3.2.0-beta.e69fb3b → 3.2.0-beta.ecc7c6c

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 (231) hide show
  1. package/dist/@types/config/schemas.js +1 -1
  2. package/dist/@types/config/validator.js +34 -27
  3. package/dist/components/Guido.vue.js +1 -1
  4. package/dist/components/Guido.vue2.js +81 -76
  5. package/dist/components/organisms/base/Toaster.vue2.js +11 -10
  6. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +12 -12
  7. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +6 -6
  8. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +15 -9
  9. package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +40 -31
  10. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +20 -19
  11. package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +14 -11
  12. package/dist/components/organisms/header/EditorActions.vue.js +12 -11
  13. package/dist/components/organisms/header/EditorActions.vue2.js +22 -18
  14. package/dist/components/organisms/header/HeaderWrapper.vue2.js +15 -12
  15. package/dist/components/organisms/header/LeftSlot.vue2.js +19 -16
  16. package/dist/components/organisms/header/MiddleSlot.vue2.js +11 -14
  17. package/dist/components/organisms/header/RightSlot.vue2.js +17 -14
  18. package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +12 -11
  19. package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +26 -24
  20. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +12 -11
  21. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +44 -41
  22. package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +12 -11
  23. package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +38 -36
  24. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +21 -18
  25. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +31 -27
  26. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +12 -11
  27. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +32 -30
  28. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +12 -11
  29. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +23 -21
  30. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +9 -8
  31. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +10 -9
  32. package/dist/composables/useActionsApi.js +38 -37
  33. package/dist/composables/useBlocksConfig.js +26 -26
  34. package/dist/composables/useFullStoryBridge.js +9 -8
  35. package/dist/composables/useHtmlCompiler.js +26 -34
  36. package/dist/composables/useHtmlValidator.js +114 -101
  37. package/dist/composables/useHttp.js +30 -30
  38. package/dist/composables/usePartner.js +1 -1
  39. package/dist/composables/useRecommendation.js +15 -14
  40. package/dist/composables/useRibbonOffset.js +15 -15
  41. package/dist/composables/useSave.js +23 -19
  42. package/dist/composables/useStripo.js +48 -53
  43. package/dist/composables/useSyncModuleExtractor.js +29 -31
  44. package/dist/composables/useTimerClone.js +25 -24
  45. package/dist/composables/useTranslations.js +3 -2
  46. package/dist/composables/useValidation.js +8 -7
  47. package/dist/composables/validators/useCouponBlockValidator.js +24 -0
  48. package/dist/composables/validators/useLiquidValidator.js +13 -13
  49. package/dist/config/compiler/recommendationCompilerRules.js +27 -27
  50. package/dist/config/compiler/unsubscribeCompilerRules.js +19 -17
  51. package/dist/config/compiler/utils/recommendationCompilerUtils.js +11 -10
  52. package/dist/config/migrator/checkboxMigrator.js +21 -20
  53. package/dist/config/migrator/couponBlockMigrator.js +19 -18
  54. package/dist/config/migrator/itemsBlockMigrator.js +89 -87
  55. package/dist/config/migrator/radioButtonMigrator.js +63 -42
  56. package/dist/config/migrator/recommendationMigrator.js +109 -106
  57. package/dist/config/migrator/unsubscribeMigrator.js +11 -10
  58. package/dist/enums/unsubscribe.js +19 -18
  59. package/dist/extensions/Blocks/Items/block.js +9 -9
  60. package/dist/extensions/Blocks/Items/controls/button/link.js +14 -14
  61. package/dist/extensions/Blocks/Items/controls/cardComposition.js +97 -89
  62. package/dist/extensions/Blocks/Items/controls/image/link.js +14 -14
  63. package/dist/extensions/Blocks/Items/controls/name/trimming.js +24 -23
  64. package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +14 -13
  65. package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +47 -44
  66. package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +38 -38
  67. package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +11 -11
  68. package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +40 -38
  69. package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +35 -35
  70. package/dist/extensions/Blocks/Items/controls/settingsControl.js +162 -155
  71. package/dist/extensions/Blocks/Items/enums/productEnums.js +14 -9
  72. package/dist/extensions/Blocks/Items/template.js +210 -210
  73. package/dist/extensions/Blocks/RadioButton/template.js +1 -1
  74. package/dist/extensions/Blocks/Recommendation/controls/button/index.js +36 -36
  75. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +133 -128
  76. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/index.js +9 -9
  77. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +10 -10
  78. package/dist/extensions/Blocks/Recommendation/controls/image/index.js +9 -9
  79. package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +18 -17
  80. package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +6 -4
  81. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +90 -82
  82. package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +18 -18
  83. package/dist/extensions/Blocks/Recommendation/controls/main/productCount.js +4 -4
  84. package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +36 -35
  85. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +135 -134
  86. package/dist/extensions/Blocks/Recommendation/controls/name/index.js +24 -24
  87. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +10 -10
  88. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +24 -24
  89. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +24 -24
  90. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +4 -4
  91. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +4 -4
  92. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +24 -24
  93. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +4 -4
  94. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +4 -4
  95. package/dist/extensions/Blocks/Recommendation/controls/price/index.js +24 -24
  96. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +32 -32
  97. package/dist/extensions/Blocks/Recommendation/controls/syncInfoMessage.js +20 -18
  98. package/dist/extensions/Blocks/Recommendation/extension.js +32 -31
  99. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +16 -8
  100. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +64 -54
  101. package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +23 -22
  102. package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +10 -10
  103. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +10 -10
  104. package/dist/extensions/Blocks/Recommendation/templates/index.js +6 -6
  105. package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +25 -24
  106. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +1 -1
  107. package/dist/extensions/Blocks/Recommendation/templates/utils.js +47 -45
  108. package/dist/extensions/Blocks/Recommendation/validation/filterSchema.js +16 -13
  109. package/dist/extensions/Blocks/Recommendation/validation/requiredFields.js +33 -0
  110. package/dist/extensions/Blocks/Unsubscribe/control.js +13 -11
  111. package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +18 -16
  112. package/dist/extensions/Blocks/common-control.js +26 -25
  113. package/dist/extensions/DynamicContent/dynamic-content.js +58 -53
  114. package/dist/guido.css +1 -1
  115. package/dist/library.js +12 -11
  116. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +234 -233
  117. package/dist/node_modules/lodash-es/_DataView.js +6 -0
  118. package/dist/node_modules/lodash-es/_Promise.js +6 -0
  119. package/dist/node_modules/lodash-es/_Set.js +6 -0
  120. package/dist/node_modules/lodash-es/_SetCache.js +13 -0
  121. package/dist/node_modules/lodash-es/_Stack.js +18 -0
  122. package/dist/node_modules/lodash-es/_Uint8Array.js +5 -0
  123. package/dist/node_modules/lodash-es/_WeakMap.js +6 -0
  124. package/dist/node_modules/lodash-es/_arrayFilter.js +10 -0
  125. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +20 -0
  126. package/dist/node_modules/lodash-es/_arrayMap.js +8 -0
  127. package/dist/node_modules/lodash-es/_arrayPush.js +8 -0
  128. package/dist/node_modules/lodash-es/_arraySome.js +9 -0
  129. package/dist/node_modules/lodash-es/_baseEach.js +6 -0
  130. package/dist/node_modules/lodash-es/_baseFlatten.js +13 -0
  131. package/dist/node_modules/lodash-es/_baseFor.js +5 -0
  132. package/dist/node_modules/lodash-es/_baseForOwn.js +8 -0
  133. package/dist/node_modules/lodash-es/_baseGet.js +11 -0
  134. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  135. package/dist/node_modules/lodash-es/_baseHasIn.js +6 -0
  136. package/dist/node_modules/lodash-es/_baseIsArguments.js +9 -0
  137. package/dist/node_modules/lodash-es/_baseIsEqual.js +8 -0
  138. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +32 -0
  139. package/dist/node_modules/lodash-es/_baseIsMatch.js +29 -0
  140. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +12 -0
  141. package/dist/node_modules/lodash-es/_baseIteratee.js +11 -0
  142. package/dist/node_modules/lodash-es/_baseKeys.js +14 -0
  143. package/dist/node_modules/lodash-es/_baseMap.js +11 -0
  144. package/dist/node_modules/lodash-es/_baseMatches.js +12 -0
  145. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
  146. package/dist/node_modules/lodash-es/_baseProperty.js +8 -0
  147. package/dist/node_modules/lodash-es/_basePropertyDeep.js +9 -0
  148. package/dist/node_modules/lodash-es/_baseRange.js +9 -0
  149. package/dist/node_modules/lodash-es/_baseTimes.js +8 -0
  150. package/dist/node_modules/lodash-es/_baseToString.js +18 -0
  151. package/dist/node_modules/lodash-es/_baseTrim.js +8 -0
  152. package/dist/node_modules/lodash-es/_baseUnary.js +8 -0
  153. package/dist/node_modules/lodash-es/_cacheHas.js +6 -0
  154. package/dist/node_modules/lodash-es/_castPath.js +10 -0
  155. package/dist/node_modules/lodash-es/_createBaseEach.js +15 -0
  156. package/dist/node_modules/lodash-es/_createBaseFor.js +13 -0
  157. package/dist/node_modules/lodash-es/_createRange.js +11 -0
  158. package/dist/node_modules/lodash-es/_equalArrays.js +40 -0
  159. package/dist/node_modules/lodash-es/_equalByTag.js +45 -0
  160. package/dist/node_modules/lodash-es/_equalObjects.js +36 -0
  161. package/dist/node_modules/lodash-es/_getAllKeys.js +9 -0
  162. package/dist/node_modules/lodash-es/_getMatchData.js +12 -0
  163. package/dist/node_modules/lodash-es/_getSymbols.js +10 -0
  164. package/dist/node_modules/lodash-es/_getTag.js +28 -0
  165. package/dist/node_modules/lodash-es/_getValue.js +1 -1
  166. package/dist/node_modules/lodash-es/_hasPath.js +19 -0
  167. package/dist/node_modules/lodash-es/_isFlattenable.js +10 -0
  168. package/dist/node_modules/lodash-es/_isIndex.js +8 -0
  169. package/dist/node_modules/lodash-es/_isIterateeCall.js +13 -0
  170. package/dist/node_modules/lodash-es/_isKey.js +12 -0
  171. package/dist/node_modules/lodash-es/_isPrototype.js +8 -0
  172. package/dist/node_modules/lodash-es/_isStrictComparable.js +7 -0
  173. package/dist/node_modules/lodash-es/_mapToArray.js +9 -0
  174. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
  175. package/dist/node_modules/lodash-es/_memoizeCapped.js +11 -0
  176. package/dist/node_modules/lodash-es/_nativeKeys.js +5 -0
  177. package/dist/node_modules/lodash-es/_nodeUtil.js +11 -0
  178. package/dist/node_modules/lodash-es/_overArg.js +8 -0
  179. package/dist/node_modules/lodash-es/_setCacheAdd.js +7 -0
  180. package/dist/node_modules/lodash-es/_setCacheHas.js +6 -0
  181. package/dist/node_modules/lodash-es/_setToArray.js +9 -0
  182. package/dist/node_modules/lodash-es/_stackClear.js +7 -0
  183. package/dist/node_modules/lodash-es/_stackDelete.js +7 -0
  184. package/dist/node_modules/lodash-es/_stackGet.js +6 -0
  185. package/dist/node_modules/lodash-es/_stackHas.js +6 -0
  186. package/dist/node_modules/lodash-es/_stackSet.js +17 -0
  187. package/dist/node_modules/lodash-es/_stringToPath.js +10 -0
  188. package/dist/node_modules/lodash-es/_toKey.js +10 -0
  189. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
  190. package/dist/node_modules/lodash-es/flatMap.js +8 -0
  191. package/dist/node_modules/lodash-es/get.js +8 -0
  192. package/dist/node_modules/lodash-es/hasIn.js +8 -0
  193. package/dist/node_modules/lodash-es/identity.js +6 -0
  194. package/dist/node_modules/lodash-es/isArguments.js +10 -0
  195. package/dist/node_modules/lodash-es/isArray.js +4 -0
  196. package/dist/node_modules/lodash-es/isArrayLike.js +8 -0
  197. package/dist/node_modules/lodash-es/isBuffer.js +6 -0
  198. package/dist/node_modules/lodash-es/isLength.js +7 -0
  199. package/dist/node_modules/lodash-es/isObjectLike.js +6 -0
  200. package/dist/node_modules/lodash-es/isSymbol.js +9 -0
  201. package/dist/node_modules/lodash-es/isTypedArray.js +7 -0
  202. package/dist/node_modules/lodash-es/keys.js +9 -0
  203. package/dist/node_modules/lodash-es/map.js +11 -0
  204. package/dist/node_modules/lodash-es/property.js +10 -0
  205. package/dist/node_modules/lodash-es/range.js +5 -0
  206. package/dist/node_modules/lodash-es/stubArray.js +6 -0
  207. package/dist/node_modules/lodash-es/stubFalse.js +6 -0
  208. package/dist/node_modules/lodash-es/toFinite.js +14 -0
  209. package/dist/node_modules/lodash-es/toNumber.js +22 -0
  210. package/dist/node_modules/lodash-es/toString.js +7 -0
  211. package/dist/node_modules/valibot/dist/index.js +126 -122
  212. package/dist/services/recommendationApi.js +17 -14
  213. package/dist/services/templateLibraryApi.js +40 -38
  214. package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
  215. package/dist/src/composables/useHtmlCompiler.d.ts +2 -1
  216. package/dist/src/composables/validators/useCouponBlockValidator.d.ts +3 -0
  217. package/dist/src/extensions/Blocks/RadioButton/template.d.ts +1 -1
  218. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +7 -1
  219. package/dist/src/extensions/Blocks/Recommendation/validation/requiredFields.d.ts +21 -0
  220. package/dist/src/stores/dynamic-content.d.ts +3 -3
  221. package/dist/stores/config.js +81 -25
  222. package/dist/stores/dynamic-content.js +11 -6
  223. package/dist/stores/onboarding.js +1 -1
  224. package/dist/stores/preview.js +9 -6
  225. package/dist/stores/unsubscribe.js +4 -1
  226. package/dist/utils/dateUtil.js +10 -7
  227. package/dist/utils/genericUtil.js +13 -10
  228. package/dist/utils/pairProductVariables.js +89 -87
  229. package/package.json +1 -6
  230. package/dist/enums/displayConditions.js +0 -80
  231. package/dist/src/enums/displayConditions.d.ts +0 -2
@@ -1,55 +1,55 @@
1
- import { BlockType as f, BlockAttr as y } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { ItemsBlockId as b } from "./enums/controlEnums.js";
3
- import { productPairs as A, templateFirstLine as H } from "./enums/productEnums.js";
4
- import { ItemInCartOptions as Y, SETTINGS_ENUMS as w, DefaultConfigValues as k } from "./enums/settingsEnums.js";
1
+ import { BlockType as b, BlockAttr as N } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
+ import { ItemsBlockId as O } from "./enums/controlEnums.js";
3
+ import { productPairs as A, templateFirstLine as C } from "./enums/productEnums.js";
4
+ import { ItemInCartOptions as Y, SETTINGS_ENUMS as x, DefaultConfigValues as D } from "./enums/settingsEnums.js";
5
5
  import j from "./layouts/horizontal.html.js";
6
6
  import q from "./layouts/vertical.html.js";
7
- import { escapeReplacement as M } from "./utils/nodeConfigUtils.js";
8
- let [F] = A.PAIRS_FOR_EXTENSION.imageSrc.CART_ITEMS.DEFAULT, [m] = A.PAIRS_FOR_EXTENSION.name.CART_ITEMS.DEFAULT, [x] = A.PAIRS_FOR_EXTENSION.price.CART_ITEMS.DEFAULT_PRICE_FORMATTED, [N] = A.PAIRS_FOR_EXTENSION.originalPrice.CART_ITEMS.DEFAULT_PRICE_FORMATTED, [C] = A.PAIRS_FOR_EXTENSION.quantity.CART_ITEMS.DEFAULT;
9
- const L = (e, t) => e.split(";").map((n) => n.trim()).filter((n) => !n.toLowerCase().startsWith(t.toLowerCase())).join("; ").replace(/;\s*$/, ""), S = (e) => L(e, "text-align"), R = (e, t) => {
10
- const n = new RegExp(`${t}\\s*:\\s*([^;]+)`, "i"), a = e.match(n);
7
+ import { escapeReplacement as V } from "./utils/nodeConfigUtils.js";
8
+ let [g] = A.PAIRS_FOR_EXTENSION.imageSrc.CART_ITEMS.DEFAULT, [L] = A.PAIRS_FOR_EXTENSION.name.CART_ITEMS.DEFAULT, [m] = A.PAIRS_FOR_EXTENSION.price.CART_ITEMS.DEFAULT_PRICE_FORMATTED, [S] = A.PAIRS_FOR_EXTENSION.originalPrice.CART_ITEMS.DEFAULT_PRICE_FORMATTED, [M] = A.PAIRS_FOR_EXTENSION.quantity.CART_ITEMS.DEFAULT;
9
+ const U = (s, e) => s.split(";").map((r) => r.trim()).filter((r) => !r.toLowerCase().startsWith(e.toLowerCase())).join("; ").replace(/;\s*$/, ""), F = (s) => U(s, "text-align"), w = (s, e) => {
10
+ const r = new RegExp(`${e}\\s*:\\s*([^;]+)`, "i"), a = s.match(r);
11
11
  return a ? a[1].trim() : null;
12
- }, U = (e, t, n) => new RegExp(`(${t}\\s*:\\s*)[^;]+`, "gi").test(e) ? e.replace(
13
- new RegExp(`(${t}\\s*:\\s*)[^;]+`, "gi"),
14
- `$1${n}`
15
- ) : e, Z = (e, t, n, a) => {
16
- const l = n || k.productImageHeight, r = a?.imageVisible === !1 ? "display: none; " : "";
12
+ }, v = (s, e, r) => new RegExp(`(${e}\\s*:\\s*)[^;]+`, "gi").test(s) ? s.replace(
13
+ new RegExp(`(${e}\\s*:\\s*)[^;]+`, "gi"),
14
+ `$1${r}`
15
+ ) : s, Z = (s, e, r, a) => {
16
+ const i = r || D.productImageHeight, n = (a == null ? void 0 : a.imageVisible) === !1 ? "display: none; " : "";
17
17
  return `
18
18
  <td class="esd-block-image document-node-component default-block-component selectable ng-star-inserted"
19
19
  align="center"
20
- esd-extension-block-id="${b.IMAGE}"
20
+ esd-extension-block-id="${O.IMAGE}"
21
21
  data-slot-1=""
22
22
  product-attr="imageSrc"
23
- data-type="${e}"
24
- data-number="${t}"
25
- style="${r}font-size: 0px;">
23
+ data-type="${s}"
24
+ data-number="${e}"
25
+ style="${n}font-size: 0px;">
26
26
  <a class="document-node-component ng-star-inserted"
27
27
  target="_blank"
28
28
  href="#!">
29
29
  <img class="adapt-img document-node-component ng-star-inserted"
30
30
  style="object-fit: contain;"
31
- src="${F}"
32
- alt="${m}"
33
- width="${l}"
34
- height="${l}">
31
+ src="${g}"
32
+ alt="${L}"
33
+ width="${i}"
34
+ height="${i}">
35
35
  </a>
36
36
  </td>
37
37
  `;
38
- }, J = (e, t) => `
39
- <${f.BLOCK_IMAGE}
40
- ${y.BLOCK_IMAGE.src}="${F}"
41
- ${y.BLOCK_IMAGE.alt}="${m}"
42
- ${y.BLOCK_IMAGE.href}="#!"
43
- ${y.BLOCK_IMAGE.width}="${k.productImageWidth}"
44
- ${y.BLOCK_IMAGE.height}="${k.productImageWidth}"
45
- esd-extension-block-id="${b.IMAGE}"
38
+ }, J = (s, e) => `
39
+ <${b.BLOCK_IMAGE}
40
+ ${N.BLOCK_IMAGE.src}="${g}"
41
+ ${N.BLOCK_IMAGE.alt}="${L}"
42
+ ${N.BLOCK_IMAGE.href}="#!"
43
+ ${N.BLOCK_IMAGE.width}="${D.productImageWidth}"
44
+ ${N.BLOCK_IMAGE.height}="${D.productImageWidth}"
45
+ esd-extension-block-id="${O.IMAGE}"
46
46
  data-slot-1
47
47
  product-attr="imageSrc"
48
- data-type="${e}"
49
- data-number="${t}"
48
+ data-type="${s}"
49
+ data-number="${e}"
50
50
  />
51
- `, tt = (e, t, n, a, l) => {
52
- const c = `
51
+ `, tt = (s, e, r, a, i) => {
52
+ const o = `
53
53
  text-decoration:none;
54
54
  font-size: inherit;
55
55
  font-weight: inherit;
@@ -59,50 +59,50 @@ const L = (e, t) => e.split(";").map((n) => n.trim()).filter((n) => !n.toLowerCa
59
59
  display: block;
60
60
  word-wrap:break-word;
61
61
  white-space: nowrap;
62
- width: ${n === w.ORIENTATION.HORIZONTAL ? "130px" : "520px"};
62
+ width: ${r === x.ORIENTATION.HORIZONTAL ? "130px" : "520px"};
63
63
  overflow: hidden;
64
64
  text-overflow: ellipsis;
65
65
  `;
66
- if (t) {
67
- const o = R(a || "", "text-align") || "center", s = S(a || c), $ = R(s, "color"), i = R(s, "font-size"), u = R(s, "font-family"), T = R(s, "font-weight"), _ = R(s, "font-style"), O = T === "bold" || T === "700", p = _ === "italic", g = [
66
+ if (e) {
67
+ const c = w(a || "", "text-align") || "center", l = F(a || o), $ = w(l, "color"), t = w(l, "font-size"), E = w(l, "font-family"), _ = w(l, "font-weight"), u = w(l, "font-style"), P = _ === "bold" || _ === "700", p = u === "italic", R = [
68
68
  $ ? `color: ${$}` : "",
69
- i ? `font-size: ${i}` : "",
70
- u ? `font-family: ${u}` : ""
69
+ t ? `font-size: ${t}` : "",
70
+ E ? `font-family: ${E}` : ""
71
71
  ].filter(Boolean).join("; ");
72
- let d = U(
73
- U(s, "color", "inherit"),
72
+ let d = v(
73
+ v(l, "color", "inherit"),
74
74
  "font-size",
75
75
  "inherit"
76
76
  );
77
- d = L(d, "font-weight"), d = L(d, "font-style");
78
- const E = l?.nameVisible === !1 ? "display: none;" : "display: table-cell;";
77
+ d = U(d, "font-weight"), d = U(d, "font-style");
78
+ const T = (i == null ? void 0 : i.nameVisible) === !1 ? "display: none;" : "display: table-cell;";
79
79
  let h = `<a
80
80
  href="#!"
81
81
  style="${d}"
82
82
  product-attr="name"
83
83
  data-slot-2
84
84
  width="100%">
85
- ${m}
85
+ ${L}
86
86
  </a>`;
87
- return O && (h = `<strong>${h}</strong>`), p && (h = `<em>${h}</em>`), `
87
+ return P && (h = `<strong>${h}</strong>`), p && (h = `<em>${h}</em>`), `
88
88
  <td class="esd-block-text es-p10"
89
- align="${o}"
89
+ align="${c}"
90
90
  width="100%"
91
- data-type="${e}"
92
- esd-extension-block-id="${b.NAME}"
93
- style="${E}">
94
- <p contenteditable="false" path="1"${g ? ` style="${g}"` : ""}>
91
+ data-type="${s}"
92
+ esd-extension-block-id="${O.NAME}"
93
+ style="${T}">
94
+ <p contenteditable="false" path="1"${R ? ` style="${R}"` : ""}>
95
95
  ${h}
96
96
  </p>
97
97
  </td>
98
98
  `;
99
99
  }
100
- return `<${f.BLOCK_TEXT}
100
+ return `<${b.BLOCK_TEXT}
101
101
  width="100%"
102
102
  align="center"
103
103
  class="es-p10"
104
- data-type="${e}"
105
- esd-extension-block-id="${b.NAME}"
104
+ data-type="${s}"
105
+ esd-extension-block-id="${O.NAME}"
106
106
  >
107
107
  <p contenteditable="false">
108
108
  <a
@@ -124,43 +124,43 @@ const L = (e, t) => e.split(";").map((n) => n.trim()).filter((n) => !n.toLowerCa
124
124
  product-attr="name"
125
125
  data-slot-2
126
126
  width="100%">
127
- ${m}
127
+ ${L}
128
128
  </a>
129
129
  </p>
130
- </${f.BLOCK_TEXT}>
130
+ </${b.BLOCK_TEXT}>
131
131
  `;
132
- }, et = (e, t, n, a, l, r, c, o, s, $) => {
133
- let i = x;
132
+ }, et = (s, e, r, a, i, n, o, c, l, $) => {
133
+ let t = m;
134
134
  if (a && a.trim()) {
135
- const E = `${a.trim()}`;
136
- i = (l || "0") === "1" ? `${x}&nbsp;${E}` : `${E}&nbsp;${x}`;
135
+ const T = `${a.trim()}`;
136
+ t = (i || "0") === "1" ? `${m}&nbsp;${T}` : `${T}&nbsp;${m}`;
137
137
  }
138
- const u = l === "1" ? "after" : "before", T = `data-formated="${n ? "true" : "false"}"`, _ = `data-curency="${u}"`, O = a ? `data-currency_symbol="${a}"` : "", p = `data-single_price="${o ? "true" : "false"}"`, d = s === w.ORIENTATION.VERTICAL ? " es-p10b es-p10t" : "";
139
- if (r) {
140
- const I = S(c || "color: #060606; white-space: nowrap; font-size: 20px;"), h = $ ? "" : ' style="display: none;"';
138
+ const E = i === "1" ? "after" : "before", _ = `data-formated="${r ? "true" : "false"}"`, u = `data-curency="${E}"`, P = a ? `data-currency_symbol="${a}"` : "", p = `data-single_price="${c ? "true" : "false"}"`, d = l === x.ORIENTATION.VERTICAL ? " es-p10b es-p10t" : "";
139
+ if (n) {
140
+ const I = F(o || "color: #060606; white-space: nowrap; font-size: 20px;"), h = $ ? "" : ' style="display: none;"';
141
141
  return `
142
142
  <td class="esd-block-text items-block-price${d}"
143
143
  align="center"
144
- esd-extension-block-id="${b.PRICE}"
144
+ esd-extension-block-id="${O.PRICE}"
145
145
  width="100%"
146
146
  ${h}>
147
147
  <p product-attr="price"
148
148
  contenteditable="false"
149
149
  data-slot-4
150
- data-type="${e}"
151
- data-number="${t}"
152
- ${T}
150
+ data-type="${s}"
151
+ data-number="${e}"
153
152
  ${_}
154
- ${O}
153
+ ${u}
154
+ ${P}
155
155
  ${p}
156
156
  style="${I}">
157
- ${i}
157
+ ${t}
158
158
  </p>
159
159
  </td>`;
160
160
  }
161
161
  return `
162
- <${f.BLOCK_TEXT}
163
- esd-extension-block-id="${b.PRICE}"
162
+ <${b.BLOCK_TEXT}
163
+ esd-extension-block-id="${O.PRICE}"
164
164
  class="items-block-price ${d}"
165
165
  width="100%"
166
166
  align="center"
@@ -169,281 +169,281 @@ const L = (e, t) => e.split(";").map((n) => n.trim()).filter((n) => !n.toLowerCa
169
169
  product-attr="price"
170
170
  contenteditable="false"
171
171
  data-slot-4
172
- data-type="${e}"
173
- data-number="${t}"
174
- ${T}
172
+ data-type="${s}"
173
+ data-number="${e}"
175
174
  ${_}
175
+ ${u}
176
176
  ${a ? `data-currency_symbol="${a}"` : ""}
177
177
  ${p}
178
178
  >
179
- ${i}
179
+ ${t}
180
180
  </p>
181
- </${f.BLOCK_TEXT}>
181
+ </${b.BLOCK_TEXT}>
182
182
  `;
183
- }, at = (e, t, n, a, l, r, c = !0, o, s, $) => {
184
- let i = N;
183
+ }, at = (s, e, r, a, i, n, o = !0, c, l, $) => {
184
+ let t = S;
185
185
  if (a && a.trim()) {
186
- const E = `${a.trim()}`;
187
- i = (l || "0") === "1" ? `${N}&nbsp;${E}` : `${E}&nbsp;${N}`;
186
+ const T = `${a.trim()}`;
187
+ t = (i || "0") === "1" ? `${S}&nbsp;${T}` : `${T}&nbsp;${S}`;
188
188
  }
189
- const u = l === "1" ? "after" : "before", T = `data-formated="${n ? "true" : "false"}"`, _ = `data-curency="${u}"`, O = c ? "" : ' style="display: none;"', p = `data-single_price="${s ? "true" : "false"}"`, d = $ === w.ORIENTATION.VERTICAL ? " es-p10b es-p10t" : "";
190
- if (r) {
191
- const I = S(o || "color: #cc0000; white-space: nowrap; font-size: 19px;");
189
+ const E = i === "1" ? "after" : "before", _ = `data-formated="${r ? "true" : "false"}"`, u = `data-curency="${E}"`, P = o ? "" : ' style="display: none;"', p = `data-single_price="${l ? "true" : "false"}"`, d = $ === x.ORIENTATION.VERTICAL ? " es-p10b es-p10t" : "";
190
+ if (n) {
191
+ const I = F(c || "color: #cc0000; white-space: nowrap; font-size: 19px;");
192
192
  return `
193
193
  <td class="esd-block-text items-block-price${d}"
194
- esd-extension-block-id="${b.ORIGINAL_PRICE}"
194
+ esd-extension-block-id="${O.ORIGINAL_PRICE}"
195
195
  width="100%"
196
- align="center"${O}>
196
+ align="center"${P}>
197
197
  <p
198
198
  product-attr="originalPrice"
199
199
  contenteditable="false"
200
200
  data-slot-5
201
- data-type="${e}"
202
- data-number="${t}"
203
- ${T}
201
+ data-type="${s}"
202
+ data-number="${e}"
204
203
  ${_}
204
+ ${u}
205
205
  ${a ? `data-currency_symbol="${a}"` : ""}
206
206
  ${p}
207
207
  style="${I}">
208
- <s>${i}</s>
208
+ <s>${t}</s>
209
209
  </p>
210
210
  </td>
211
211
  `;
212
212
  }
213
213
  return `
214
- <${f.BLOCK_TEXT}
214
+ <${b.BLOCK_TEXT}
215
215
  class="items-block-price ${d}"
216
- esd-extension-block-id="${b.ORIGINAL_PRICE}"
216
+ esd-extension-block-id="${O.ORIGINAL_PRICE}"
217
217
  width="100%"
218
218
  align="center"
219
- ${c ? "" : 'style="display: none;"'}
219
+ ${o ? "" : 'style="display: none;"'}
220
220
  >
221
221
  <p
222
222
  product-attr="originalPrice"
223
223
  contenteditable="false"
224
224
  data-slot-5
225
225
  style="color: #cc0000"
226
- data-type="${e}"
227
- data-number="${t}"
228
- ${T}
226
+ data-type="${s}"
227
+ data-number="${e}"
229
228
  ${_}
229
+ ${u}
230
230
  ${a ? `data-currency_symbol="${a}"` : ""}
231
231
  ${p}
232
232
  >
233
- <s>${i}</s>
233
+ <s>${t}</s>
234
234
  </p>
235
- </${f.BLOCK_TEXT}>
235
+ </${b.BLOCK_TEXT}>
236
236
  `;
237
- }, nt = (e = !0, t, n) => {
238
- const a = e ? "" : 'style="display: none;"';
239
- if (t) {
240
- const l = "font-size: 14px;", r = R(n || "", "text-align") || "center", c = S(n || l);
237
+ }, st = (s = !0, e, r) => {
238
+ const a = s ? "" : 'style="display: none;"';
239
+ if (e) {
240
+ const i = "font-size: 14px;", n = w(r || "", "text-align") || "center", o = F(r || i);
241
241
  return `
242
242
  <td class="esd-block-text es-p10 document-node-component default-block-component selectable"
243
- width="100%" align="${r}"
244
- esd-extension-block-id="${b.QUANTITY}"
243
+ width="100%" align="${n}"
244
+ esd-extension-block-id="${O.QUANTITY}"
245
245
  ${a}>
246
246
  <p product-attr="quantity"
247
247
  data-slot-3=""
248
248
  contenteditable="false"
249
249
  width="100%"
250
250
  path="1"
251
- style="${c}">
252
- ${C}
251
+ style="${o}">
252
+ ${M}
253
253
  </p>
254
254
  </td>`;
255
255
  }
256
256
  return `
257
- <${f.BLOCK_TEXT}
257
+ <${b.BLOCK_TEXT}
258
258
  width="100%"
259
259
  align="center"
260
260
  class="es-p10"
261
- esd-extension-block-id="${b.QUANTITY}"
262
- ${e ? "" : 'style="display: none;"'}
261
+ esd-extension-block-id="${O.QUANTITY}"
262
+ ${s ? "" : 'style="display: none;"'}
263
263
  >
264
264
  <p
265
265
  product-attr="quantity"
266
266
  data-slot-3
267
267
  contenteditable="false"
268
268
  width="100%">
269
- ${C}
269
+ ${M}
270
270
  </p>
271
- </${f.BLOCK_TEXT}>
271
+ </${b.BLOCK_TEXT}>
272
272
  `;
273
- }, it = (e, t, n = "Buy", a, l, r = !0, c = !0) => {
273
+ }, lt = (s, e, r = "Buy", a, i, n = !0, o = !0) => {
274
274
  if (a) {
275
- const o = R(l || "", "background") || R(l || "", "background-color"), s = o ? `border-width: 0px; background: ${o};` : "border-width: 0px;", $ = r ? "es-fw" : "es-il", i = (l || "").replace("border-width: 0;", "");
275
+ const c = w(i || "", "background") || w(i || "", "background-color"), l = c ? `border-width: 0px; background: ${c};` : "border-width: 0px;", $ = n ? "es-fw" : "es-il", t = (i || "").replace("border-width: 0;", "");
276
276
  return `
277
277
  <td class="esd-block-button ins-button default-block-component selectable"
278
- align="center" width="100%" name="buy-button" caption="${n}"
279
- esd-extension-block-id="${b.BUTTON}"
280
- product-attr="button" data-slot-6="" data-type="${e}" data-number="${t}"
281
- ${c ? "" : ' style="display: none;"'}>
282
- <span class="es-button-border ${$}" style="${s}">
278
+ align="center" width="100%" name="buy-button" caption="${r}"
279
+ esd-extension-block-id="${O.BUTTON}"
280
+ product-attr="button" data-slot-6="" data-type="${s}" data-number="${e}"
281
+ ${o ? "" : ' style="display: none;"'}>
282
+ <span class="es-button-border ${$}" style="${l}">
283
283
  <a
284
284
  class="es-button"
285
285
  href="#!"
286
286
  target="_blank"
287
- style="${i} padding: 5px 12px;">
288
- ${n}
287
+ style="${t} padding: 5px 12px;">
288
+ ${r}
289
289
  </a>
290
290
  </span>
291
291
  </td>`;
292
292
  }
293
293
  return `
294
- <${f.BLOCK_BUTTON}
294
+ <${b.BLOCK_BUTTON}
295
295
  width="100%"
296
296
  class="ins-button"
297
297
  name="buy-button"
298
- caption="${n}"
298
+ caption="${r}"
299
299
  align="center"
300
- esd-extension-block-id="${b.BUTTON}"
300
+ esd-extension-block-id="${O.BUTTON}"
301
301
  product-attr="button"
302
302
  data-slot-6
303
- data-type="${e}"
304
- data-number="${t}"
305
- >${n}
306
- </${f.BLOCK_BUTTON}>
303
+ data-type="${s}"
304
+ data-number="${e}"
305
+ >${r}
306
+ </${b.BLOCK_BUTTON}>
307
307
  `;
308
- }, st = (e, t, n, a = !0, l = !0) => {
309
- const r = t === w.ORIENTATION.VERTICAL, c = n === "horizontal";
310
- if (r) {
311
- const o = !c, s = o || !l ? "100%" : "50%", $ = o || !a ? "100%" : "50%";
312
- let i = e.replace(
308
+ }, rt = (s, e, r, a = !0, i = !0) => {
309
+ const n = e === x.ORIENTATION.VERTICAL, o = r === "horizontal";
310
+ if (n) {
311
+ const c = !o, l = c || !i ? "100%" : "50%", $ = c || !a ? "100%" : "50%";
312
+ let t = s.replace(
313
313
  /<td\s+[^>]*class="([^"]*product-price-class[^"]*)"[^>]*>/gi,
314
- (u) => u.replace(/width="[^"]*"/gi, `width="${s}"`).replace(/width:\s*[^;]+;/gi, `width: ${s};`)
314
+ (E) => E.replace(/width="[^"]*"/gi, `width="${l}"`).replace(/width:\s*[^;]+;/gi, `width: ${l};`)
315
315
  );
316
- return i = i.replace(
316
+ return t = t.replace(
317
317
  /<td\s+[^>]*class="([^"]*product-original-price-class[^"]*)"[^>]*>/gi,
318
- (u) => u.replace(/width="[^"]*"/gi, `width="${$}"`).replace(/width:\s*[^;]+;/gi, `width: ${$};`)
319
- ), i;
318
+ (E) => E.replace(/width="[^"]*"/gi, `width="${$}"`).replace(/width:\s*[^;]+;/gi, `width: ${$};`)
319
+ ), t;
320
320
  }
321
- return c ? e : e.replace(
321
+ return o ? s : s.replace(
322
322
  /<td\s+[^>]*class="[^"]*horizontal-price[^"]*"[^>]*>/gi,
323
- (o) => /style\s*=\s*"/i.test(o) ? o.replace(/style\s*=\s*"([^"]*)"/i, 'style="display: none; $1"') : o.replace(/>$/, ' style="display: none;">')
323
+ (c) => /style\s*=\s*"/i.test(c) ? c.replace(/style\s*=\s*"([^"]*)"/i, 'style="display: none; $1"') : c.replace(/>$/, ' style="display: none;">')
324
324
  ).replace(
325
325
  /<td\s+[^>]*class="[^"]*vertical-price[^"]*"[^>]*>/gi,
326
- (o) => o.replace(/display:\s*none;?/gi, "display: table-cell;")
326
+ (c) => c.replace(/display:\s*none;?/gi, "display: table-cell;")
327
327
  );
328
- }, lt = (e) => e ? `<td align="center"
328
+ }, it = (s) => s ? `<td align="center"
329
329
  esd-extension-block-id="items-block" width="560"
330
330
  data-number="4"
331
- class="ins-product-td items-block items-block-v2 esd-items-block esd-extension-block esd-container-frame">` : H, V = (e, t, n, a, l, r, c, o, s, $, i, u, T, _ = "horizontal", O, p, g, d) => {
332
- const h = `${`data-type="${t}" data-number="${n}"`} data-orientation="${a}"`, P = e.replace(
331
+ class="ins-product-td items-block items-block-v2 esd-items-block esd-extension-block esd-container-frame">` : C, z = (s, e, r, a, i, n, o, c, l, $, t, E, _, u = "horizontal", P, p, R, d) => {
332
+ const h = `${`data-type="${e}" data-number="${r}"`} data-orientation="${a}"`, y = s.replace(
333
333
  /<td([^>]*class="[^"]*ins-product-td[^"]*"[^>]*)>/,
334
334
  `<td$1 ${h}>`
335
- ), v = s?.["data-product_image_control_image-height"], z = r ? Z(t, n, v, i) : J(t, n), X = i?.buttonLabel || "Buy", G = i?.buttonFullWidth !== void 0 ? i.buttonFullWidth : !0, K = t === w.ITEMS_TYPE.BROWSED_ITEMS ? !1 : i?.quantityControlEnabled, W = i?.buttonVisible !== void 0 ? i.buttonVisible : s?.["data-product_button_control_enabled"] !== "false", B = i?.priceVisible !== void 0 ? i.priceVisible : s?.["data-product_price_control_enabled"] !== "false", D = i?.originalPriceVisible !== void 0 ? i.originalPriceVisible : s?.["data-product_original_price_control_enabled"] !== "false", Q = P.replace("{-{-TEMPLATE_FIRST_LINE-}-}", lt(r)).replace("{-{-PRODUCT_IMAGE-}-}", z).replace("{-{-PRODUCT_NAME-}-}", tt(t, r, a, u, i)).replaceAll(
335
+ ), X = l == null ? void 0 : l["data-product_image_control_image-height"], G = n ? Z(e, r, X, t) : J(e, r), K = (t == null ? void 0 : t.buttonLabel) || "Buy", B = (t == null ? void 0 : t.buttonFullWidth) !== void 0 ? t.buttonFullWidth : !0, W = e === x.ITEMS_TYPE.BROWSED_ITEMS ? !1 : t == null ? void 0 : t.quantityControlEnabled, Q = (t == null ? void 0 : t.buttonVisible) !== void 0 ? t.buttonVisible : (l == null ? void 0 : l["data-product_button_control_enabled"]) !== "false", k = (t == null ? void 0 : t.priceVisible) !== void 0 ? t.priceVisible : (l == null ? void 0 : l["data-product_price_control_enabled"]) !== "false", f = (t == null ? void 0 : t.originalPriceVisible) !== void 0 ? t.originalPriceVisible : (l == null ? void 0 : l["data-product_original_price_control_enabled"]) !== "false", H = y.replace("{-{-TEMPLATE_FIRST_LINE-}-}", it(n)).replace("{-{-PRODUCT_IMAGE-}-}", G).replace("{-{-PRODUCT_NAME-}-}", tt(e, n, a, E, t)).replaceAll(
336
336
  "{-{-PRODUCT_PRICE-}-}",
337
- M(et(
338
- t,
339
- n,
340
- l,
341
- c,
342
- o,
337
+ V(et(
338
+ e,
343
339
  r,
344
- O,
340
+ i,
341
+ o,
342
+ c,
343
+ n,
344
+ P,
345
345
  d,
346
346
  a,
347
- B
347
+ k
348
348
  ))
349
349
  ).replaceAll(
350
350
  "{-{-PRODUCT_ORIGINAL_PRICE-}-}",
351
- M(at(
352
- t,
353
- n,
354
- l,
355
- c,
356
- o,
351
+ V(at(
352
+ e,
357
353
  r,
358
- D,
354
+ i,
355
+ o,
356
+ c,
357
+ n,
358
+ f,
359
359
  p,
360
360
  d,
361
361
  a
362
362
  ))
363
- ).replace("{-{-PRODUCT_QUANTITY-}-}", nt(K, r, g)).replace(
363
+ ).replace("{-{-PRODUCT_QUANTITY-}-}", st(W, n, R)).replace(
364
364
  "{-{-PRODUCT_BUTTON-}-}",
365
- it(t, n, X, r, T, G, W)
365
+ lt(e, r, K, n, _, B, Q)
366
366
  );
367
- return st(
368
- Q,
367
+ return rt(
368
+ H,
369
369
  a,
370
- _,
371
- B,
372
- D
370
+ u,
371
+ k,
372
+ f
373
373
  );
374
374
  };
375
- function Et({
376
- orientation: e,
377
- itemsType: t = w.ITEMS_TYPE.CART_ITEMS,
378
- itemId: n,
375
+ function Tt({
376
+ orientation: s,
377
+ itemsType: e = x.ITEMS_TYPE.CART_ITEMS,
378
+ itemId: r,
379
379
  currencySymbol: a,
380
- currencyLocation: l,
381
- migrate: r = !1,
382
- formattedPrice: c = !0,
383
- configBlockAttributes: o,
384
- nodeConfig: s,
380
+ currencyLocation: i,
381
+ migrate: n = !1,
382
+ formattedPrice: o = !0,
383
+ configBlockAttributes: c,
384
+ nodeConfig: l,
385
385
  nameStyles: $,
386
- buttonStyles: i,
387
- priceStyles: u,
388
- originalPriceStyles: T,
389
- quantityStyles: _,
390
- priceOrientation: O
386
+ buttonStyles: t,
387
+ priceStyles: E,
388
+ originalPriceStyles: _,
389
+ quantityStyles: u,
390
+ priceOrientation: P
391
391
  }) {
392
- const p = Y[t].findIndex((P) => P.value === n);
393
- let g = "1";
392
+ const p = Y[e].findIndex((y) => y.value === r);
393
+ let R = "1";
394
394
  if (p >= 0)
395
- g = String(p + 1);
396
- else if (n) {
397
- const P = n.match(/\((\d+)\)/);
398
- P && P[1] && ([, g] = P);
395
+ R = String(p + 1);
396
+ else if (r) {
397
+ const y = r.match(/\((\d+)\)/);
398
+ y && y[1] && ([, R] = y);
399
399
  }
400
- const d = s?.priceSinglePrice ?? o?.["data-product_price_control_single_price"] === "1" ?? !1;
401
- F = A.PAIRS_FOR_EXTENSION.imageSrc[t].DEFAULT[p >= 0 ? p : 0], m = A.PAIRS_FOR_EXTENSION.name[t].DEFAULT[p >= 0 ? p : 0];
402
- const E = A.PAIRS_FOR_EXTENSION.price[t], I = A.PAIRS_FOR_EXTENSION.originalPrice[t];
403
- d ? (x = c ? E.DEFAULT_SINGLE_PRICE_FORMATTED : E.DEFAULT_SINGLE_PRICE, N = c ? I.DEFAULT_SINGLE_PRICE_FORMATTED : I.DEFAULT_SINGLE_PRICE) : (x = c ? E.DEFAULT_PRICE_FORMATTED : E.DEFAULT_PRICE, N = c ? I.DEFAULT_PRICE_FORMATTED : I.DEFAULT_PRICE), C = A.PAIRS_FOR_EXTENSION.quantity[t].DEFAULT;
404
- const h = O || s?.priceOrientation || "horizontal";
405
- return e === w.ORIENTATION.VERTICAL ? V(
400
+ const d = (l == null ? void 0 : l.priceSinglePrice) ?? (c == null ? void 0 : c["data-product_price_control_single_price"]) === "1" ?? !1;
401
+ g = A.PAIRS_FOR_EXTENSION.imageSrc[e].DEFAULT[p >= 0 ? p : 0], L = A.PAIRS_FOR_EXTENSION.name[e].DEFAULT[p >= 0 ? p : 0];
402
+ const T = A.PAIRS_FOR_EXTENSION.price[e], I = A.PAIRS_FOR_EXTENSION.originalPrice[e];
403
+ d ? (m = o ? T.DEFAULT_SINGLE_PRICE_FORMATTED : T.DEFAULT_SINGLE_PRICE, S = o ? I.DEFAULT_SINGLE_PRICE_FORMATTED : I.DEFAULT_SINGLE_PRICE) : (m = o ? T.DEFAULT_PRICE_FORMATTED : T.DEFAULT_PRICE, S = o ? I.DEFAULT_PRICE_FORMATTED : I.DEFAULT_PRICE), M = A.PAIRS_FOR_EXTENSION.quantity[e].DEFAULT;
404
+ const h = P || (l == null ? void 0 : l.priceOrientation) || "horizontal";
405
+ return s === x.ORIENTATION.VERTICAL ? z(
406
406
  q,
407
- t,
408
- g,
409
407
  e,
410
- c,
411
- r,
412
- a,
413
- l,
408
+ R,
409
+ s,
414
410
  o,
411
+ n,
412
+ a,
413
+ i,
414
+ c,
415
415
  void 0,
416
416
  // nodup
417
- s,
417
+ l,
418
418
  $,
419
- i,
419
+ t,
420
420
  h,
421
- u,
422
- T,
421
+ E,
423
422
  _,
423
+ u,
424
424
  d
425
- ) : V(
425
+ ) : z(
426
426
  j,
427
- t,
428
- g,
429
427
  e,
430
- c,
431
- r,
432
- a,
433
- l,
428
+ R,
429
+ s,
434
430
  o,
431
+ n,
432
+ a,
433
+ i,
434
+ c,
435
435
  void 0,
436
436
  // nodup
437
- s,
437
+ l,
438
438
  $,
439
- i,
439
+ t,
440
440
  h,
441
- u,
442
- T,
441
+ E,
443
442
  _,
443
+ u,
444
444
  d
445
445
  );
446
446
  }
447
447
  export {
448
- Et as getDefaultTemplate
448
+ Tt as getDefaultTemplate
449
449
  };