@useinsider/guido 3.2.0-beta.565bfaf → 3.2.0-beta.570fb6d

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 (282) hide show
  1. package/dist/@types/config/schemas.js +1 -1
  2. package/dist/@types/config/validator.js +27 -34
  3. package/dist/components/Guido.vue.js +1 -1
  4. package/dist/components/Guido.vue2.js +76 -81
  5. package/dist/components/organisms/base/Toaster.vue2.js +10 -11
  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 +9 -15
  9. package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +31 -40
  10. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +19 -20
  11. package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +11 -14
  12. package/dist/components/organisms/header/EditorActions.vue.js +11 -12
  13. package/dist/components/organisms/header/EditorActions.vue2.js +18 -22
  14. package/dist/components/organisms/header/HeaderWrapper.vue2.js +12 -15
  15. package/dist/components/organisms/header/LeftSlot.vue2.js +16 -19
  16. package/dist/components/organisms/header/MiddleSlot.vue2.js +14 -11
  17. package/dist/components/organisms/header/RightSlot.vue2.js +14 -17
  18. package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +11 -12
  19. package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +20 -22
  20. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +11 -12
  21. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +38 -41
  22. package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +11 -12
  23. package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +38 -43
  24. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +18 -21
  25. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +27 -31
  26. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +11 -12
  27. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +27 -29
  28. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +11 -12
  29. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +19 -21
  30. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +8 -9
  31. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +9 -10
  32. package/dist/composables/useActionsApi.js +37 -38
  33. package/dist/composables/useBlocksConfig.js +26 -26
  34. package/dist/composables/useFullStoryBridge.js +13 -0
  35. package/dist/composables/useHtmlCompiler.js +34 -26
  36. package/dist/composables/useHtmlValidator.js +101 -109
  37. package/dist/composables/useHttp.js +30 -30
  38. package/dist/composables/usePartner.js +1 -1
  39. package/dist/composables/useRecommendation.js +14 -15
  40. package/dist/composables/useSave.js +21 -22
  41. package/dist/composables/useStripo.js +47 -42
  42. package/dist/composables/useSyncModuleExtractor.js +31 -29
  43. package/dist/composables/useTimerClone.js +24 -25
  44. package/dist/composables/useTranslations.js +23 -16
  45. package/dist/composables/useValidation.js +7 -8
  46. package/dist/composables/validators/useLiquidValidator.js +13 -13
  47. package/dist/config/compiler/recommendationCompilerRules.js +72 -67
  48. package/dist/config/compiler/unsubscribeCompilerRules.js +38 -37
  49. package/dist/config/compiler/utils/recommendationCompilerUtils.js +36 -34
  50. package/dist/config/migrator/checkboxMigrator.js +20 -21
  51. package/dist/config/migrator/couponBlockMigrator.js +18 -19
  52. package/dist/config/migrator/itemsBlockMigrator.js +87 -89
  53. package/dist/config/migrator/radioButtonMigrator.js +12 -13
  54. package/dist/config/migrator/recommendationMigrator.js +107 -110
  55. package/dist/config/migrator/unsubscribeMigrator.js +10 -11
  56. package/dist/enums/displayConditions.js +78 -82
  57. package/dist/enums/extensions/recommendationBlock.js +41 -95
  58. package/dist/enums/unsubscribe.js +35 -30
  59. package/dist/extensions/Blocks/Checkbox/control.js +23 -23
  60. package/dist/extensions/Blocks/Items/block.js +9 -9
  61. package/dist/extensions/Blocks/Items/controls/button/link.js +14 -14
  62. package/dist/extensions/Blocks/Items/controls/cardComposition.js +89 -97
  63. package/dist/extensions/Blocks/Items/controls/image/link.js +14 -14
  64. package/dist/extensions/Blocks/Items/controls/name/trimming.js +23 -24
  65. package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +13 -14
  66. package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +44 -47
  67. package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +38 -38
  68. package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +11 -11
  69. package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +38 -40
  70. package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +35 -35
  71. package/dist/extensions/Blocks/Items/controls/settingsControl.js +155 -162
  72. package/dist/extensions/Blocks/Items/enums/productEnums.js +21 -14
  73. package/dist/extensions/Blocks/Items/template.js +210 -210
  74. package/dist/extensions/Blocks/RadioButton/control.js +15 -15
  75. package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +1 -1
  76. package/dist/extensions/Blocks/Recommendation/controls/button/index.js +36 -36
  77. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +128 -133
  78. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/index.js +23 -20
  79. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +99 -0
  80. package/dist/extensions/Blocks/Recommendation/controls/image/index.js +9 -9
  81. package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +19 -20
  82. package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +4 -6
  83. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +84 -90
  84. package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +18 -18
  85. package/dist/extensions/Blocks/Recommendation/controls/main/productCount.js +4 -4
  86. package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +35 -36
  87. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +134 -135
  88. package/dist/extensions/Blocks/Recommendation/controls/name/index.js +24 -24
  89. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +27 -57
  90. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +24 -24
  91. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +24 -24
  92. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +4 -4
  93. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +4 -4
  94. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +24 -24
  95. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +4 -4
  96. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +4 -4
  97. package/dist/extensions/Blocks/Recommendation/controls/price/index.js +24 -24
  98. package/dist/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.js +14 -0
  99. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +32 -32
  100. package/dist/extensions/Blocks/Recommendation/controls/syncInfoMessage.js +18 -20
  101. package/dist/extensions/Blocks/Recommendation/extension.js +31 -32
  102. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +25 -32
  103. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +72 -69
  104. package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +22 -23
  105. package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +10 -10
  106. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +10 -10
  107. package/dist/extensions/Blocks/Recommendation/templates/index.js +6 -6
  108. package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +24 -25
  109. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +11 -11
  110. package/dist/extensions/Blocks/Recommendation/templates/utils.js +45 -47
  111. package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +17 -14
  112. package/dist/extensions/Blocks/Recommendation/validation/filterSchema.js +13 -16
  113. package/dist/extensions/Blocks/Unsubscribe/block.js +11 -11
  114. package/dist/extensions/Blocks/Unsubscribe/control.js +11 -13
  115. package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +16 -18
  116. package/dist/extensions/Blocks/common-control.js +25 -26
  117. package/dist/extensions/DynamicContent/dynamic-content.js +53 -58
  118. package/dist/guido.css +1 -1
  119. package/dist/library.js +11 -12
  120. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +272 -167
  121. package/dist/node_modules/valibot/dist/index.js +122 -126
  122. package/dist/package.json.js +1 -1
  123. package/dist/services/recommendationApi.js +14 -17
  124. package/dist/services/templateLibraryApi.js +37 -38
  125. package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
  126. package/dist/src/composables/useActionsApi.d.ts +1 -1
  127. package/dist/src/composables/useFullStoryBridge.d.ts +11 -0
  128. package/dist/src/composables/useHtmlCompiler.d.ts +1 -2
  129. package/dist/src/composables/useTranslations.d.ts +1 -1
  130. package/dist/src/enums/displayConditions.d.ts +1 -5
  131. package/dist/src/enums/extensions/recommendationBlock.d.ts +1 -5
  132. package/dist/src/enums/unsubscribe.d.ts +8 -8
  133. package/dist/src/extensions/Blocks/Recommendation/constants/controlIds.d.ts +1 -0
  134. package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/index.d.ts +3 -0
  135. package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.d.ts +35 -0
  136. package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +3 -20
  137. package/dist/src/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.d.ts +29 -0
  138. package/dist/src/stores/dynamic-content.d.ts +3 -3
  139. package/dist/static/styles/components/button.css.js +16 -9
  140. package/dist/static/styles/components/loader.css.js +4 -0
  141. package/dist/static/styles/components/narrow-panel.css.js +52 -0
  142. package/dist/stores/config.js +25 -81
  143. package/dist/stores/dynamic-content.js +6 -11
  144. package/dist/stores/onboarding.js +5 -5
  145. package/dist/stores/preview.js +6 -9
  146. package/dist/stores/unsubscribe.js +1 -4
  147. package/dist/utils/dateUtil.js +7 -10
  148. package/dist/utils/genericUtil.js +10 -13
  149. package/dist/utils/pairProductVariables.js +13 -14
  150. package/package.json +8 -5
  151. package/dist/node_modules/lodash-es/_DataView.js +0 -6
  152. package/dist/node_modules/lodash-es/_Hash.js +0 -20
  153. package/dist/node_modules/lodash-es/_ListCache.js +0 -20
  154. package/dist/node_modules/lodash-es/_Map.js +0 -6
  155. package/dist/node_modules/lodash-es/_MapCache.js +0 -20
  156. package/dist/node_modules/lodash-es/_Promise.js +0 -6
  157. package/dist/node_modules/lodash-es/_Set.js +0 -6
  158. package/dist/node_modules/lodash-es/_SetCache.js +0 -13
  159. package/dist/node_modules/lodash-es/_Stack.js +0 -18
  160. package/dist/node_modules/lodash-es/_Symbol.js +0 -5
  161. package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
  162. package/dist/node_modules/lodash-es/_WeakMap.js +0 -6
  163. package/dist/node_modules/lodash-es/_arrayFilter.js +0 -10
  164. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -20
  165. package/dist/node_modules/lodash-es/_arrayMap.js +0 -8
  166. package/dist/node_modules/lodash-es/_arrayPush.js +0 -8
  167. package/dist/node_modules/lodash-es/_arraySome.js +0 -9
  168. package/dist/node_modules/lodash-es/_assocIndexOf.js +0 -10
  169. package/dist/node_modules/lodash-es/_baseEach.js +0 -6
  170. package/dist/node_modules/lodash-es/_baseFlatten.js +0 -13
  171. package/dist/node_modules/lodash-es/_baseFor.js +0 -5
  172. package/dist/node_modules/lodash-es/_baseForOwn.js +0 -8
  173. package/dist/node_modules/lodash-es/_baseGet.js +0 -11
  174. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  175. package/dist/node_modules/lodash-es/_baseGetTag.js +0 -10
  176. package/dist/node_modules/lodash-es/_baseHasIn.js +0 -6
  177. package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
  178. package/dist/node_modules/lodash-es/_baseIsEqual.js +0 -8
  179. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +0 -32
  180. package/dist/node_modules/lodash-es/_baseIsMatch.js +0 -29
  181. package/dist/node_modules/lodash-es/_baseIsNative.js +0 -16
  182. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
  183. package/dist/node_modules/lodash-es/_baseIteratee.js +0 -11
  184. package/dist/node_modules/lodash-es/_baseKeys.js +0 -14
  185. package/dist/node_modules/lodash-es/_baseMap.js +0 -11
  186. package/dist/node_modules/lodash-es/_baseMatches.js +0 -12
  187. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
  188. package/dist/node_modules/lodash-es/_baseProperty.js +0 -8
  189. package/dist/node_modules/lodash-es/_basePropertyDeep.js +0 -9
  190. package/dist/node_modules/lodash-es/_baseRange.js +0 -9
  191. package/dist/node_modules/lodash-es/_baseTimes.js +0 -8
  192. package/dist/node_modules/lodash-es/_baseToString.js +0 -18
  193. package/dist/node_modules/lodash-es/_baseTrim.js +0 -8
  194. package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
  195. package/dist/node_modules/lodash-es/_cacheHas.js +0 -6
  196. package/dist/node_modules/lodash-es/_castPath.js +0 -10
  197. package/dist/node_modules/lodash-es/_coreJsData.js +0 -5
  198. package/dist/node_modules/lodash-es/_createBaseEach.js +0 -15
  199. package/dist/node_modules/lodash-es/_createBaseFor.js +0 -13
  200. package/dist/node_modules/lodash-es/_createRange.js +0 -11
  201. package/dist/node_modules/lodash-es/_equalArrays.js +0 -40
  202. package/dist/node_modules/lodash-es/_equalByTag.js +0 -45
  203. package/dist/node_modules/lodash-es/_equalObjects.js +0 -36
  204. package/dist/node_modules/lodash-es/_freeGlobal.js +0 -4
  205. package/dist/node_modules/lodash-es/_getAllKeys.js +0 -9
  206. package/dist/node_modules/lodash-es/_getMapData.js +0 -8
  207. package/dist/node_modules/lodash-es/_getMatchData.js +0 -12
  208. package/dist/node_modules/lodash-es/_getNative.js +0 -9
  209. package/dist/node_modules/lodash-es/_getRawTag.js +0 -15
  210. package/dist/node_modules/lodash-es/_getSymbols.js +0 -10
  211. package/dist/node_modules/lodash-es/_getTag.js +0 -28
  212. package/dist/node_modules/lodash-es/_getValue.js +0 -6
  213. package/dist/node_modules/lodash-es/_hasPath.js +0 -19
  214. package/dist/node_modules/lodash-es/_hashClear.js +0 -7
  215. package/dist/node_modules/lodash-es/_hashDelete.js +0 -7
  216. package/dist/node_modules/lodash-es/_hashGet.js +0 -13
  217. package/dist/node_modules/lodash-es/_hashHas.js +0 -9
  218. package/dist/node_modules/lodash-es/_hashSet.js +0 -9
  219. package/dist/node_modules/lodash-es/_isFlattenable.js +0 -10
  220. package/dist/node_modules/lodash-es/_isIndex.js +0 -8
  221. package/dist/node_modules/lodash-es/_isIterateeCall.js +0 -13
  222. package/dist/node_modules/lodash-es/_isKey.js +0 -12
  223. package/dist/node_modules/lodash-es/_isKeyable.js +0 -7
  224. package/dist/node_modules/lodash-es/_isMasked.js +0 -11
  225. package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
  226. package/dist/node_modules/lodash-es/_isStrictComparable.js +0 -7
  227. package/dist/node_modules/lodash-es/_listCacheClear.js +0 -6
  228. package/dist/node_modules/lodash-es/_listCacheDelete.js +0 -12
  229. package/dist/node_modules/lodash-es/_listCacheGet.js +0 -8
  230. package/dist/node_modules/lodash-es/_listCacheHas.js +0 -7
  231. package/dist/node_modules/lodash-es/_listCacheSet.js +0 -8
  232. package/dist/node_modules/lodash-es/_mapCacheClear.js +0 -13
  233. package/dist/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  234. package/dist/node_modules/lodash-es/_mapCacheGet.js +0 -7
  235. package/dist/node_modules/lodash-es/_mapCacheHas.js +0 -7
  236. package/dist/node_modules/lodash-es/_mapCacheSet.js +0 -8
  237. package/dist/node_modules/lodash-es/_mapToArray.js +0 -9
  238. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +0 -8
  239. package/dist/node_modules/lodash-es/_memoizeCapped.js +0 -11
  240. package/dist/node_modules/lodash-es/_nativeCreate.js +0 -5
  241. package/dist/node_modules/lodash-es/_nativeKeys.js +0 -5
  242. package/dist/node_modules/lodash-es/_nodeUtil.js +0 -11
  243. package/dist/node_modules/lodash-es/_objectToString.js +0 -7
  244. package/dist/node_modules/lodash-es/_overArg.js +0 -8
  245. package/dist/node_modules/lodash-es/_root.js +0 -5
  246. package/dist/node_modules/lodash-es/_setCacheAdd.js +0 -7
  247. package/dist/node_modules/lodash-es/_setCacheHas.js +0 -6
  248. package/dist/node_modules/lodash-es/_setToArray.js +0 -9
  249. package/dist/node_modules/lodash-es/_stackClear.js +0 -7
  250. package/dist/node_modules/lodash-es/_stackDelete.js +0 -7
  251. package/dist/node_modules/lodash-es/_stackGet.js +0 -6
  252. package/dist/node_modules/lodash-es/_stackHas.js +0 -6
  253. package/dist/node_modules/lodash-es/_stackSet.js +0 -17
  254. package/dist/node_modules/lodash-es/_stringToPath.js +0 -10
  255. package/dist/node_modules/lodash-es/_toKey.js +0 -10
  256. package/dist/node_modules/lodash-es/_toSource.js +0 -17
  257. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
  258. package/dist/node_modules/lodash-es/eq.js +0 -6
  259. package/dist/node_modules/lodash-es/flatMap.js +0 -8
  260. package/dist/node_modules/lodash-es/get.js +0 -8
  261. package/dist/node_modules/lodash-es/hasIn.js +0 -8
  262. package/dist/node_modules/lodash-es/identity.js +0 -6
  263. package/dist/node_modules/lodash-es/isArguments.js +0 -10
  264. package/dist/node_modules/lodash-es/isArray.js +0 -4
  265. package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
  266. package/dist/node_modules/lodash-es/isBuffer.js +0 -6
  267. package/dist/node_modules/lodash-es/isFunction.js +0 -12
  268. package/dist/node_modules/lodash-es/isLength.js +0 -7
  269. package/dist/node_modules/lodash-es/isObject.js +0 -7
  270. package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
  271. package/dist/node_modules/lodash-es/isSymbol.js +0 -9
  272. package/dist/node_modules/lodash-es/isTypedArray.js +0 -7
  273. package/dist/node_modules/lodash-es/keys.js +0 -9
  274. package/dist/node_modules/lodash-es/map.js +0 -11
  275. package/dist/node_modules/lodash-es/memoize.js +0 -18
  276. package/dist/node_modules/lodash-es/property.js +0 -10
  277. package/dist/node_modules/lodash-es/range.js +0 -5
  278. package/dist/node_modules/lodash-es/stubArray.js +0 -6
  279. package/dist/node_modules/lodash-es/stubFalse.js +0 -6
  280. package/dist/node_modules/lodash-es/toFinite.js +0 -14
  281. package/dist/node_modules/lodash-es/toNumber.js +0 -22
  282. package/dist/node_modules/lodash-es/toString.js +0 -7
@@ -1,8 +1,6 @@
1
- import "../@types/config/schemas.js";
2
- import "../@types/config/defaults.js";
3
- import { parseConfig as n } from "../@types/config/validator.js";
4
- import { defineStore as o } from "pinia";
5
- const s = o("guido-config", {
1
+ import { defineStore as n } from "pinia";
2
+ import { parseConfig as t } from "../@types/config/validator.js";
3
+ const a = n("guido-config", {
6
4
  state: () => ({
7
5
  initialized: !1,
8
6
  config: null
@@ -11,137 +9,83 @@ const s = o("guido-config", {
11
9
  /**
12
10
  * Get the identity configuration
13
11
  */
14
- identity: (i) => {
15
- var e;
16
- return ((e = i.config) == null ? void 0 : e.identity) ?? null;
17
- },
12
+ identity: (e) => e.config?.identity ?? null,
18
13
  /**
19
14
  * Get the partner configuration
20
15
  */
21
- partner: (i) => {
22
- var e;
23
- return ((e = i.config) == null ? void 0 : e.partner) ?? null;
24
- },
16
+ partner: (e) => e.config?.partner ?? null,
25
17
  /**
26
18
  * Get the template configuration
27
19
  */
28
- template: (i) => {
29
- var e;
30
- return ((e = i.config) == null ? void 0 : e.template) ?? null;
31
- },
20
+ template: (e) => e.config?.template ?? null,
32
21
  /**
33
22
  * Get the editor configuration
34
23
  */
35
- editor: (i) => {
36
- var e;
37
- return ((e = i.config) == null ? void 0 : e.editor) ?? null;
38
- },
24
+ editor: (e) => e.config?.editor ?? null,
39
25
  /**
40
26
  * Get the UI configuration
41
27
  */
42
- ui: (i) => {
43
- var e;
44
- return ((e = i.config) == null ? void 0 : e.ui) ?? null;
45
- },
28
+ ui: (e) => e.config?.ui ?? null,
46
29
  /**
47
30
  * Get the features configuration
48
31
  */
49
- features: (i) => {
50
- var e;
51
- return ((e = i.config) == null ? void 0 : e.features) ?? null;
52
- },
32
+ features: (e) => e.config?.features ?? null,
53
33
  /**
54
34
  * Get the blocks configuration
55
35
  */
56
- blocks: (i) => {
57
- var e;
58
- return ((e = i.config) == null ? void 0 : e.blocks) ?? null;
59
- },
36
+ blocks: (e) => e.config?.blocks ?? null,
60
37
  /**
61
38
  * Get the compiler configuration
62
39
  */
63
- compiler: (i) => {
64
- var e;
65
- return ((e = i.config) == null ? void 0 : e.compiler) ?? null;
66
- },
40
+ compiler: (e) => e.config?.compiler ?? null,
67
41
  /**
68
42
  * Get the callbacks configuration
69
43
  */
70
- callbacks: (i) => {
71
- var e;
72
- return ((e = i.config) == null ? void 0 : e.callbacks) ?? null;
73
- },
44
+ callbacks: (e) => e.config?.callbacks ?? null,
74
45
  /**
75
46
  * Get the template ID
76
47
  */
77
- templateId: (i) => {
78
- var e;
79
- return ((e = i.config) == null ? void 0 : e.identity.templateId) ?? "";
80
- },
48
+ templateId: (e) => e.config?.identity.templateId ?? "",
81
49
  /**
82
50
  * Get the user ID
83
51
  */
84
- userId: (i) => {
85
- var e;
86
- return ((e = i.config) == null ? void 0 : e.identity.userId) ?? "";
87
- },
52
+ userId: (e) => e.config?.identity.userId ?? "",
88
53
  /**
89
54
  * Get the variation ID
90
55
  */
91
- variationId: (i) => {
92
- var e;
93
- return ((e = i.config) == null ? void 0 : e.identity.variationId) ?? "";
94
- },
56
+ variationId: (e) => e.config?.identity.variationId ?? "",
95
57
  /**
96
58
  * Get the partner name
97
59
  */
98
- partnerName: (i) => {
99
- var e;
100
- return ((e = i.config) == null ? void 0 : e.partner.name) ?? "";
101
- },
60
+ partnerName: (e) => e.config?.partner.name ?? "",
102
61
  /**
103
62
  * Get the product type
104
63
  */
105
- productType: (i) => {
106
- var e;
107
- return ((e = i.config) == null ? void 0 : e.partner.productType) ?? 60;
108
- },
64
+ productType: (e) => e.config?.partner.productType ?? 60,
109
65
  /**
110
66
  * Get the message type
111
67
  */
112
- messageType: (i) => {
113
- var e;
114
- return ((e = i.config) == null ? void 0 : e.partner.messageType) ?? 1;
115
- },
68
+ messageType: (e) => e.config?.partner.messageType ?? 1,
116
69
  /**
117
70
  * Get the username
118
71
  */
119
- username: (i) => {
120
- var e;
121
- return ((e = i.config) == null ? void 0 : e.partner.username) ?? "Guido User";
122
- },
72
+ username: (e) => e.config?.partner.username ?? "Guido User",
123
73
  /**
124
74
  * Check if header should be shown
125
75
  */
126
- showHeader: (i) => {
127
- var e;
128
- return ((e = i.config) == null ? void 0 : e.ui.showHeader) ?? !0;
129
- },
76
+ showHeader: (e) => e.config?.ui.showHeader ?? !0,
130
77
  /**
131
78
  * Check if a specific feature is enabled
132
79
  */
133
- isFeatureEnabled: (i) => (e) => {
134
- var t;
135
- return ((t = i.config) == null ? void 0 : t.features[e]) ?? !0;
136
- }
80
+ isFeatureEnabled: (e) => (i) => e.config?.features[i] ?? !0
137
81
  },
138
82
  actions: {
139
83
  /**
140
84
  * Initialize the config store with validated configuration
141
85
  */
142
- init(i) {
143
- const e = n(i);
144
- this.config = e, this.initialized = !0;
86
+ init(e) {
87
+ const i = t(e);
88
+ this.config = i, this.initialized = !0;
145
89
  },
146
90
  /**
147
91
  * Reset the config store
@@ -152,5 +96,5 @@ const s = o("guido-config", {
152
96
  }
153
97
  });
154
98
  export {
155
- s as useConfigStore
99
+ a as useConfigStore
156
100
  };
@@ -1,22 +1,17 @@
1
- import { removeDuplicatesFromArray as n } from "../utils/arrayUtil.js";
2
- import { defineStore as a } from "pinia";
3
- const s = a("guidoDynamicContent", {
1
+ import { removeDuplicatesFromArray as t } from "../utils/arrayUtil.js";
2
+ import { defineStore as n } from "pinia";
3
+ const s = n("guidoDynamicContent", {
4
4
  state: () => ({
5
5
  selectedDynamicContent: { text: "", value: "" },
6
6
  selectedDynamicContentList: []
7
7
  }),
8
8
  actions: {
9
- setSelectedDynamicContent(t) {
10
- this.selectedDynamicContent = t, this.selectedDynamicContentList.push(t);
9
+ setSelectedDynamicContent(e) {
10
+ this.selectedDynamicContent = e, this.selectedDynamicContentList.push(e);
11
11
  }
12
12
  },
13
13
  getters: {
14
- getSelectedDynamicContentList: (t) => n(t.selectedDynamicContentList).map((e) => ({
15
- text: e.text,
16
- value: e.value,
17
- fallback: e.fallback,
18
- format: e.format
19
- })) || []
14
+ getSelectedDynamicContentList: (e) => t(e.selectedDynamicContentList)
20
15
  }
21
16
  });
22
17
  export {
@@ -1,5 +1,5 @@
1
1
  import { useOnboardingApi as r } from "../services/onboardingApi.js";
2
- import { defineStore as e } from "pinia";
2
+ import { defineStore as s } from "pinia";
3
3
  const t = () => ({
4
4
  cardIndex: 0,
5
5
  isActive: !1,
@@ -15,7 +15,7 @@ const t = () => ({
15
15
  },
16
16
  userModalState: {},
17
17
  isFetched: !1
18
- }), c = e("guidoOnboarding", {
18
+ }), c = s("guidoOnboarding", {
19
19
  state: () => a(),
20
20
  getters: {
21
21
  getOnboarding: (n) => (i) => n.onboardings[i],
@@ -46,7 +46,7 @@ const t = () => ({
46
46
  },
47
47
  shouldShowOnboarding: (n) => (i) => {
48
48
  const o = n.userModalState.Guido;
49
- return i === "newVersionPopup" && (o != null && o.genericOnboarding) ? !1 : o ? !o[i] : !0;
49
+ return i === "newVersionPopup" && o?.genericOnboarding ? !1 : o ? !o[i] : !0;
50
50
  }
51
51
  },
52
52
  actions: {
@@ -93,8 +93,8 @@ const t = () => ({
93
93
  this.userModalState = i, this.isFetched = !0;
94
94
  },
95
95
  async setUserModalState(n, i, o) {
96
- const { setUserModalState: s } = r();
97
- await s(n, i, o), this.isFetched = !1, await this.fetchUserModalState();
96
+ const { setUserModalState: e } = r();
97
+ await e(n, i, o), this.isFetched = !1, await this.fetchUserModalState();
98
98
  }
99
99
  }
100
100
  });
@@ -1,5 +1,5 @@
1
- import { defineStore as e } from "pinia";
2
- const i = () => ({
1
+ import { defineStore as r } from "pinia";
2
+ const e = () => ({
3
3
  emailFormat: "html",
4
4
  ampHtml: "",
5
5
  ampErrors: [],
@@ -7,17 +7,14 @@ const i = () => ({
7
7
  isLoaded: !1,
8
8
  isAMPErrorModalVisible: !1,
9
9
  emailSizeKB: 0
10
- }), a = e("guidoPreview", {
11
- state: () => i(),
10
+ }), s = r("guidoPreview", {
11
+ state: () => e(),
12
12
  getters: {
13
13
  isAMPModeEnabled: (t) => t.emailFormat === "AMP",
14
14
  previewHtml() {
15
15
  return this.isAMPModeEnabled ? this.ampHtml : this.templateHtml;
16
16
  },
17
- hasAMP: (t) => {
18
- var r;
19
- return !!((r = t.ampHtml) != null && r.trim());
20
- },
17
+ hasAMP: (t) => !!t.ampHtml?.trim(),
21
18
  hasAMPErrors: (t) => t.ampErrors.length > 0,
22
19
  showAMPErrorButton() {
23
20
  return this.isAMPModeEnabled && this.hasAMPErrors;
@@ -42,5 +39,5 @@ const i = () => ({
42
39
  }
43
40
  });
44
41
  export {
45
- a as usePreviewStore
42
+ s as usePreviewStore
46
43
  };
@@ -19,10 +19,7 @@ const r = () => ({
19
19
  getSelectedCollection: (e) => i[e.selectedCollectionType],
20
20
  getSelectedTemplateByActiveType: (e) => e.selectedTemplates[e.activeType],
21
21
  getTemplatesByActiveType: (e) => e.templates.filter((t) => t.type === e.activeType),
22
- getThumbnailByTemplateId: (e) => (t) => {
23
- var l;
24
- return ((l = e.templates.find((s) => s.id === t)) == null ? void 0 : l.thumbnail) ?? "";
25
- },
22
+ getThumbnailByTemplateId: (e) => (t) => e.templates.find((l) => l.id === t)?.thumbnail ?? "",
26
23
  getSelectedUnsubscribePagesByCollection: (e) => (t) => {
27
24
  const l = i[t];
28
25
  if (!l)
@@ -1,11 +1,8 @@
1
1
  import { DEFAULT_LOCALE as r, DEFAULT as a, DEFAULT_TZ as c } from "../enums/date.js";
2
2
  const m = (t) => t ? t instanceof Date ? t : typeof t == "string" ? t.length === 10 ? new Date(Number(t) * 1e3) : new Date(t) : typeof t == "number" ? t.toString().length === 10 ? new Date(t * 1e3) : new Date(t) : /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(), s = () => {
3
3
  const t = window.l10n;
4
- return (t == null ? void 0 : t.locale) === a ? r : (t == null ? void 0 : t.locale) || r;
5
- }, u = new Intl.DateTimeFormat().resolvedOptions().timeZone, f = () => {
6
- const t = window.l10n;
7
- return (t == null ? void 0 : t.timezone) || u || c;
8
- }, D = (t, e = s(), n = f()) => {
4
+ return t?.locale === a ? r : t?.locale || r;
5
+ }, u = new Intl.DateTimeFormat().resolvedOptions().timeZone, f = () => window.l10n?.timezone || u || c, l = (t, e = s(), n = f()) => {
9
6
  const o = {
10
7
  year: "numeric",
11
8
  month: "2-digit",
@@ -13,7 +10,7 @@ const m = (t) => t ? t instanceof Date ? t : typeof t == "string" ? t.length ===
13
10
  timeZone: n
14
11
  }, i = m(t);
15
12
  return new Intl.DateTimeFormat(e, o).format(i);
16
- }, T = (t) => {
13
+ }, D = (t) => {
17
14
  if (!t)
18
15
  return "";
19
16
  const e = new Date(t);
@@ -25,12 +22,12 @@ const m = (t) => t ? t instanceof Date ? t : typeof t == "string" ? t.length ===
25
22
  second: "2-digit",
26
23
  hour12: !1
27
24
  }).format(e);
28
- }, h = (t) => t ? Math.floor(Date.now() / 1e3) >= t : !1;
25
+ }, T = (t) => t ? Math.floor(Date.now() / 1e3) >= t : !1;
29
26
  export {
30
27
  m as convertToDateObject,
31
- T as formatPatchDate,
32
- D as formatShortDate,
33
- h as isAfterDate,
28
+ D as formatPatchDate,
29
+ l as formatShortDate,
30
+ T as isAfterDate,
34
31
  u as localTz,
35
32
  s as locale,
36
33
  f as timezone
@@ -1,20 +1,20 @@
1
- const s = (e) => {
2
- const a = e.value.match(/\{\{([^}]+)\}\}/)[1].split("|").map((l) => l.trim()), [n] = a, c = {
3
- text: e.label,
1
+ const s = (c) => {
2
+ const a = c.value.match(/\{\{([^}]+)\}\}/)[1].split("|").map((l) => l.trim()), [n] = a, e = {
3
+ text: c.label,
4
4
  value: n || ""
5
5
  };
6
6
  if (a.length >= 2) {
7
7
  const [, l, r] = a;
8
8
  if (l.startsWith("default:")) {
9
9
  let t = l.slice(8).trim();
10
- t.startsWith('"') && t.endsWith('"') && (t = t.slice(1, -1)), c.fallback = t;
10
+ t.startsWith('"') && t.endsWith('"') && (t = t.slice(1, -1)), e.fallback = t;
11
11
  } else {
12
12
  const t = l.includes("=") ? { key: l.split("=")[0].trim(), value: l.split("=")[1].trim() } : null;
13
- t ? c.format = t : r || (c.fallback = l), r && (c.fallback = r);
13
+ t ? e.format = t : r || (e.fallback = l), r && (e.fallback = r);
14
14
  }
15
15
  }
16
- return c;
17
- }, u = (e, f = !1) => e.map((a) => {
16
+ return e;
17
+ }, u = (c, f = !1) => c.map((a) => {
18
18
  if (a.format)
19
19
  return {
20
20
  label: `${a.text} | ${a.format.key}=${a.format.value}`,
@@ -26,20 +26,17 @@ const s = (e) => {
26
26
  label: a.text,
27
27
  value: `{{ ${a.value} }}`
28
28
  };
29
- const c = !Number.isNaN(Number(a.fallback)) && a.fallback.trim() !== "" ? a.fallback : `"${a.fallback}"`;
29
+ const e = !Number.isNaN(Number(a.fallback)) && a.fallback.trim() !== "" ? a.fallback : `"${a.fallback}"`;
30
30
  return {
31
31
  label: `${a.text} | ${a.fallback}`,
32
- value: `{{ ${a.value} | default: ${c} }}`
32
+ value: `{{ ${a.value} | default: ${e} }}`
33
33
  };
34
34
  }
35
35
  return {
36
36
  label: a.fallback ? `${a.text} | ${a.fallback}` : a.text,
37
37
  value: a.fallback ? `{{${a.value}|${a.fallback}}}` : `{{${a.value}}}`
38
38
  };
39
- }), o = () => {
40
- var e;
41
- return ((e = document.head.querySelector('meta[name="csrf-token"]')) == null ? void 0 : e.getAttribute("content")) ?? "";
42
- };
39
+ }), o = () => document.head.querySelector('meta[name="csrf-token"]')?.getAttribute("content") ?? "";
43
40
  export {
44
41
  u as dynamicContentToMergeTags,
45
42
  o as getCsrfToken,
@@ -1,11 +1,10 @@
1
- import { productPairs as P } from "../extensions/Blocks/Items/enums/productEnums.js";
2
- function L(F) {
3
- const R = F.replaceAll("{%", "<!--{%").replaceAll("%}", "%}-->"), $ = new DOMParser().parseFromString(R, "text/html"), y = P.PAIRS_FOR_EXTENSION;
1
+ import { productPairs as M } from "../extensions/Blocks/Items/enums/productEnums.js";
2
+ function D(k) {
3
+ const R = k.replaceAll("{%", "<!--{%").replaceAll("%}", "%}-->"), $ = new DOMParser().parseFromString(R, "text/html"), y = M.PAIRS_FOR_EXTENSION;
4
4
  Object.entries(y).forEach(([n, l]) => {
5
5
  $.querySelectorAll(".ins-product-td").forEach((c) => {
6
6
  const E = c.getAttribute("data-number") || "1", T = c.getAttribute("data-type") || "CART_ITEMS";
7
7
  c.querySelectorAll(`[product-attr="${n}"]`).forEach((e) => {
8
- var H;
9
8
  const b = e.getAttribute("data-type") || T, u = e.getAttribute("data-number") || E, p = l[b];
10
9
  if (p)
11
10
  switch (n) {
@@ -22,7 +21,7 @@ function L(F) {
22
21
  }) && (t.src = `{{${a}_${u}}}`);
23
22
  }
24
23
  if (o) {
25
- const r = (H = y.itemLink) == null ? void 0 : H[b];
24
+ const r = y.itemLink?.[b];
26
25
  if (r) {
27
26
  const d = r.HREF, f = r.DEFAULT_HREF || "#!", s = o.href;
28
27
  (s === "#" || s === "" || s.endsWith("#!") || s.endsWith(f) || s === `${window.location.href}${f}` || !s || s === window.location.href) && (o.href = `{{${d}_${u}}}`);
@@ -48,8 +47,8 @@ function L(F) {
48
47
  const s = t.CURRENCY;
49
48
  let _ = `{{${f}_${u}}}`;
50
49
  if (s) {
51
- const k = `{{${s}_${u}}}`;
52
- _ = d === "after" ? `${_} ${k}` : `${k} ${_}`;
50
+ const H = `{{${s}_${u}}}`;
51
+ _ = d === "after" ? `${_} ${H}` : `${H} ${_}`;
53
52
  }
54
53
  e.textContent = _;
55
54
  break;
@@ -86,9 +85,9 @@ function L(F) {
86
85
  });
87
86
  });
88
87
  });
89
- const S = R.match(/<!DOCTYPE[^>]*>/i), I = S ? `${S[0]}
90
- ` : "", w = $.querySelectorAll(".ins-product-td"), m = [];
91
- w.forEach((n) => {
88
+ const S = R.match(/<!DOCTYPE[^>]*>/i), F = S ? `${S[0]}
89
+ ` : "", I = $.querySelectorAll(".ins-product-td"), m = [];
90
+ I.forEach((n) => {
92
91
  const l = n.getAttribute("data-type") || "CART_ITEMS", A = n.getAttribute("data-number") || "1", c = n.getAttribute("data-nodup"), E = n.outerHTML;
93
92
  m.push({
94
93
  element: n,
@@ -98,7 +97,7 @@ function L(F) {
98
97
  nodup: c || void 0
99
98
  });
100
99
  });
101
- let h = I + $.documentElement.outerHTML;
100
+ let h = F + $.documentElement.outerHTML;
102
101
  m.reverse().forEach(({ outerHtml: n, type: l, number: A }) => {
103
102
  let c = "";
104
103
  switch (l) {
@@ -117,8 +116,8 @@ function L(F) {
117
116
  h = h.replace(n, b);
118
117
  }
119
118
  });
120
- const M = $.querySelectorAll('[product-attr="originalPrice"][data-type="CART_ITEMS"]'), g = [];
121
- return M.forEach((n) => {
119
+ const w = $.querySelectorAll('[product-attr="originalPrice"][data-type="CART_ITEMS"]'), g = [];
120
+ return w.forEach((n) => {
122
121
  const l = n.getAttribute("data-number"), A = n.getAttribute("data-type");
123
122
  if (!l || A !== "CART_ITEMS")
124
123
  return;
@@ -136,5 +135,5 @@ function L(F) {
136
135
  }), h.replaceAll("<!--{%", "{%").replaceAll("%}-->", "%}").replaceAll("&lt;!--{%", "{%").replaceAll("%}--&gt;", "%}");
137
136
  }
138
137
  export {
139
- L as pairProductVariables
138
+ D as pairProductVariables
140
139
  };
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.2.0-beta.565bfaf",
3
+ "version": "3.2.0-beta.570fb6d",
4
4
  "description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
5
5
  "main": "./dist/guido.umd.cjs",
6
6
  "module": "./dist/library.js",
7
7
  "type": "module",
8
+ "sideEffects": [
9
+ "*.css",
10
+ "*.scss",
11
+ "*.vue"
12
+ ],
8
13
  "files": [
9
14
  "dist"
10
15
  ],
@@ -32,10 +37,9 @@
32
37
  "author": "",
33
38
  "license": "ISC",
34
39
  "dependencies": {
35
- "@stripoinc/ui-editor-extensions": "3.5.0",
40
+ "@stripoinc/ui-editor-extensions": "3.7.0",
36
41
  "@useinsider/design-system-vue": "1.1.0-beta.73ec2fa",
37
42
  "@vueuse/core": "11.3.0",
38
- "lodash-es": "4.17.21",
39
43
  "pinia": "2.3.1",
40
44
  "valibot": "1.1.0",
41
45
  "vite": "6.3.5",
@@ -53,7 +57,6 @@
53
57
  "@types/eslint": "8.56.12",
54
58
  "@types/eslint__eslintrc": "2.1.2",
55
59
  "@types/eslint__js": "8.42.3",
56
- "@types/lodash-es": "4.17.12",
57
60
  "@types/node": "20.10.4",
58
61
  "@typescript-eslint/eslint-plugin": "7.18.0",
59
62
  "@typescript-eslint/parser": "7.18.0",
@@ -86,7 +89,7 @@
86
89
  },
87
90
  "guido": {
88
91
  "stripo": {
89
- "version": "2.54.0"
92
+ "version": "2.60.0"
90
93
  }
91
94
  }
92
95
  }
@@ -1,6 +0,0 @@
1
- import t from "./_getNative.js";
2
- import a from "./_root.js";
3
- var e = t(a, "DataView");
4
- export {
5
- e as default
6
- };
@@ -1,20 +0,0 @@
1
- import p from "./_hashClear.js";
2
- import a from "./_hashDelete.js";
3
- import l from "./_hashGet.js";
4
- import s from "./_hashHas.js";
5
- import m from "./_hashSet.js";
6
- function t(o) {
7
- var e = -1, h = o == null ? 0 : o.length;
8
- for (this.clear(); ++e < h; ) {
9
- var r = o[e];
10
- this.set(r[0], r[1]);
11
- }
12
- }
13
- t.prototype.clear = p;
14
- t.prototype.delete = a;
15
- t.prototype.get = l;
16
- t.prototype.has = s;
17
- t.prototype.set = m;
18
- export {
19
- t as default
20
- };
@@ -1,20 +0,0 @@
1
- import p from "./_listCacheClear.js";
2
- import a from "./_listCacheDelete.js";
3
- import i from "./_listCacheGet.js";
4
- import h from "./_listCacheHas.js";
5
- import s from "./_listCacheSet.js";
6
- function t(e) {
7
- var o = -1, l = e == null ? 0 : e.length;
8
- for (this.clear(); ++o < l; ) {
9
- var r = e[o];
10
- this.set(r[0], r[1]);
11
- }
12
- }
13
- t.prototype.clear = p;
14
- t.prototype.delete = a;
15
- t.prototype.get = i;
16
- t.prototype.has = h;
17
- t.prototype.set = s;
18
- export {
19
- t as default
20
- };
@@ -1,6 +0,0 @@
1
- import o from "./_getNative.js";
2
- import r from "./_root.js";
3
- var p = o(r, "Map");
4
- export {
5
- p as default
6
- };
@@ -1,20 +0,0 @@
1
- import r from "./_mapCacheClear.js";
2
- import m from "./_mapCacheDelete.js";
3
- import h from "./_mapCacheGet.js";
4
- import l from "./_mapCacheHas.js";
5
- import c from "./_mapCacheSet.js";
6
- function e(t) {
7
- var o = -1, a = t == null ? 0 : t.length;
8
- for (this.clear(); ++o < a; ) {
9
- var p = t[o];
10
- this.set(p[0], p[1]);
11
- }
12
- }
13
- e.prototype.clear = r;
14
- e.prototype.delete = m;
15
- e.prototype.get = h;
16
- e.prototype.has = l;
17
- e.prototype.set = c;
18
- export {
19
- e as default
20
- };
@@ -1,6 +0,0 @@
1
- import o from "./_getNative.js";
2
- import r from "./_root.js";
3
- var m = o(r, "Promise");
4
- export {
5
- m as default
6
- };
@@ -1,6 +0,0 @@
1
- import t from "./_getNative.js";
2
- import o from "./_root.js";
3
- var a = t(o, "Set");
4
- export {
5
- a as default
6
- };
@@ -1,13 +0,0 @@
1
- import p from "./_MapCache.js";
2
- import h from "./_setCacheAdd.js";
3
- import r from "./_setCacheHas.js";
4
- function e(t) {
5
- var o = -1, a = t == null ? 0 : t.length;
6
- for (this.__data__ = new p(); ++o < a; )
7
- this.add(t[o]);
8
- }
9
- e.prototype.add = e.prototype.push = h;
10
- e.prototype.has = r;
11
- export {
12
- e as default
13
- };
@@ -1,18 +0,0 @@
1
- import r from "./_ListCache.js";
2
- import a from "./_stackClear.js";
3
- import p from "./_stackDelete.js";
4
- import s from "./_stackGet.js";
5
- import i from "./_stackHas.js";
6
- import m from "./_stackSet.js";
7
- function t(o) {
8
- var e = this.__data__ = new r(o);
9
- this.size = e.size;
10
- }
11
- t.prototype.clear = a;
12
- t.prototype.delete = p;
13
- t.prototype.get = s;
14
- t.prototype.has = i;
15
- t.prototype.set = m;
16
- export {
17
- t as default
18
- };
@@ -1,5 +0,0 @@
1
- import o from "./_root.js";
2
- var m = o.Symbol;
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import r from "./_root.js";
2
- var a = r.Uint8Array;
3
- export {
4
- a as default
5
- };
@@ -1,6 +0,0 @@
1
- import a from "./_getNative.js";
2
- import o from "./_root.js";
3
- var e = a(o, "WeakMap");
4
- export {
5
- e as default
6
- };
@@ -1,10 +0,0 @@
1
- function d(e, i) {
2
- for (var n = -1, r = e == null ? 0 : e.length, u = 0, t = []; ++n < r; ) {
3
- var l = e[n];
4
- i(l, n, e) && (t[u++] = l);
5
- }
6
- return t;
7
- }
8
- export {
9
- d as default
10
- };