@useinsider/guido 3.24.0-beta.2a3ba08 → 3.24.0-beta.778cb85

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 (48) hide show
  1. package/README.md +6 -2
  2. package/dist/@types/config/schemas.js +7 -9
  3. package/dist/components/Guido.vue.js +1 -1
  4. package/dist/components/Guido.vue2.js +77 -79
  5. package/dist/composables/useHtmlCompiler.js +2 -0
  6. package/dist/composables/useModuleRepair.js +12 -14
  7. package/dist/composables/useStripo.js +70 -70
  8. package/dist/config/compiler/htmlCompilerRules.js +14 -6
  9. package/dist/config/migrator/index.js +15 -16
  10. package/dist/extensions/Blocks/Items/block.js +77 -115
  11. package/dist/extensions/Blocks/Items/constants/currency.js +14 -59
  12. package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +22 -33
  13. package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +51 -62
  14. package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +17 -18
  15. package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +31 -42
  16. package/dist/extensions/Blocks/Items/controls/settingsControl.js +120 -141
  17. package/dist/extensions/Blocks/Items/enums/controlEnums.js +1 -1
  18. package/dist/extensions/Blocks/Items/extension.js +8 -9
  19. package/dist/extensions/Blocks/Items/items.css.js +0 -19
  20. package/dist/extensions/Blocks/Items/settingsPanel.js +25 -34
  21. package/dist/extensions/Blocks/Items/template.js +212 -250
  22. package/dist/extensions/Blocks/Recommendation/utils/priceFormatter.js +0 -1
  23. package/dist/guido.css +1 -1
  24. package/dist/package.json.js +2 -2
  25. package/dist/src/@types/config/schemas.d.ts +0 -4
  26. package/dist/src/composables/useConfig.d.ts +0 -2
  27. package/dist/src/composables/useStripo.d.ts +1 -1
  28. package/dist/src/config/migrator/index.d.ts +1 -4
  29. package/dist/src/extensions/Blocks/Items/block.d.ts +9 -6
  30. package/dist/src/extensions/Blocks/Items/constants/currency.d.ts +0 -32
  31. package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +0 -1
  32. package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +0 -1
  33. package/dist/src/extensions/Blocks/Items/template.d.ts +1 -4
  34. package/dist/src/extensions/Blocks/Items/utils/nodeConfigUtils.d.ts +0 -3
  35. package/dist/src/extensions/Blocks/Recommendation/utils/priceFormatter.d.ts +0 -12
  36. package/dist/src/stores/config.d.ts +0 -20
  37. package/dist/src/utils/itemsCurrencyRepair.d.ts +1 -5
  38. package/dist/src/utils/trimHrefWhitespace.d.ts +5 -0
  39. package/dist/utils/itemsCurrencyRepair.js +24 -29
  40. package/dist/utils/pairProductVariables.js +99 -119
  41. package/dist/utils/trimHrefWhitespace.js +10 -0
  42. package/package.json +1 -1
  43. package/dist/config/migrator/itemsPriceFormatMigrator.js +0 -20
  44. package/dist/extensions/Blocks/Items/controls/priceFormat.js +0 -145
  45. package/dist/extensions/Blocks/Items/utils/priceFormatOps.js +0 -185
  46. package/dist/src/config/migrator/itemsPriceFormatMigrator.d.ts +0 -1
  47. package/dist/src/extensions/Blocks/Items/controls/priceFormat.d.ts +0 -23
  48. package/dist/src/extensions/Blocks/Items/utils/priceFormatOps.d.ts +0 -61
@@ -25,6 +25,5 @@ function f(c) {
25
25
  return r === "before" ? `${e} ${a}` : `${a} ${e}`;
26
26
  }
27
27
  export {
28
- d as formatNumber,
29
28
  f as formatPrice
30
29
  };
package/dist/guido.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-9d988e4b] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.color-vision-select__dropdown[data-v-64cb50da]{z-index:20;width:387px}.accessibility-toolbar[data-v-391019bc]{gap:16px}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button svg{margin-right:0}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button .clearfix:after{content:none}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-actions-menu__dropdown[data-v-bdb3b37a]{z-index:20;width:222px}.editor-actions[data-v-9a028d08]{gap:16px}.editor-actions__divider[data-v-9a028d08]{width:1px;height:40px;background-color:#e1e1e1}.right-slot[data-v-77451c9a]{gap:16px}.header-wrapper[data-v-3c713746]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-d0aed8ae]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-d0aed8ae]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-d0aed8ae]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.guido-tab-bar-onboarding[data-v-219b4f7c]{z-index:21}[data-v-f16f20f8] .vueperslides__bullets{pointer-events:none!important}[data-v-f16f20f8] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-bb3cca55] .vueperslides__bullets{pointer-events:none!important}[data-v-bb3cca55] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-19d8cb42] .vueperslides__bullets,[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd]{width:100%;max-width:none}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-skeleton{width:100%!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-dropdown-box__container{width:413px}.assign-strategy-drawer .spaced-dot-sep{background-image:linear-gradient(90deg,#91949f 20%,#fff0 0);background-position:center bottom;background-repeat:repeat-x;background-size:5px 1px}.assign-strategy-drawer .spaced-dot-sep--top{background-position:center top}.assign-strategy-drawer .spaced-dot-sep--fc-n:first-child{background:none}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}
1
+ @charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-9d988e4b] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.color-vision-select__dropdown[data-v-64cb50da]{z-index:20;width:387px}.accessibility-toolbar[data-v-391019bc]{gap:16px}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button svg{margin-right:0}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button .clearfix:after{content:none}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-actions-menu__dropdown[data-v-bdb3b37a]{z-index:20;width:222px}.editor-actions[data-v-9a028d08]{gap:16px}.editor-actions__divider[data-v-9a028d08]{width:1px;height:40px;background-color:#e1e1e1}.right-slot[data-v-77451c9a]{gap:16px}.header-wrapper[data-v-3c713746]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-0191951d]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-0191951d]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-0191951d]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.guido-tab-bar-onboarding[data-v-219b4f7c]{z-index:21}[data-v-f16f20f8] .vueperslides__bullets{pointer-events:none!important}[data-v-f16f20f8] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-bb3cca55] .vueperslides__bullets{pointer-events:none!important}[data-v-bb3cca55] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-19d8cb42] .vueperslides__bullets,[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd]{width:100%;max-width:none}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-skeleton{width:100%!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-dropdown-box__container{width:413px}.assign-strategy-drawer .spaced-dot-sep{background-image:linear-gradient(90deg,#91949f 20%,#fff0 0);background-position:center bottom;background-repeat:repeat-x;background-size:5px 1px}.assign-strategy-drawer .spaced-dot-sep--top{background-position:center top}.assign-strategy-drawer .spaced-dot-sep--fc-n:first-child{background:none}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}
@@ -1,9 +1,9 @@
1
- const o = "3.24.0-beta.2a3ba08", s = { stripo: { version: "2.83.1" } }, a = {
1
+ const o = "3.24.0-beta.778cb85", s = { stripo: { version: "2.83.1" } }, t = {
2
2
  version: o,
3
3
  guido: s
4
4
  };
5
5
  export {
6
- a as default,
6
+ t as default,
7
7
  s as guido,
8
8
  o as version
9
9
  };
@@ -415,8 +415,6 @@ export declare const FeaturesSchema: v.ObjectSchema<{
415
415
  /** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
416
416
  readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
417
417
  readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
418
- /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
419
- readonly itemsPriceFormatting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
420
418
  }, undefined>;
421
419
  /**
422
420
  * Default block types available in Stripo
@@ -836,8 +834,6 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
836
834
  /** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
837
835
  readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
838
836
  readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
839
- /** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
840
- readonly itemsPriceFormatting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
841
837
  }, undefined>, {}>;
842
838
  /** Block configuration */
843
839
  readonly blocks: v.OptionalSchema<v.ObjectSchema<{
@@ -105,7 +105,6 @@ export declare const useConfig: () => {
105
105
  linkTrackingIds: boolean;
106
106
  allowSaveWithErrors: boolean;
107
107
  reusableRecommendationStrategy: boolean;
108
- itemsPriceFormatting: boolean;
109
108
  };
110
109
  blocks: {
111
110
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -246,7 +245,6 @@ export declare const useConfig: () => {
246
245
  linkTrackingIds: boolean;
247
246
  allowSaveWithErrors: boolean;
248
247
  reusableRecommendationStrategy: boolean;
249
- itemsPriceFormatting: boolean;
250
248
  } | null>;
251
249
  blocks: import("vue").ComputedRef<{
252
250
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1,6 +1,6 @@
1
1
  import type { EditorOpenMetrics } from '@@/Composables/useEditorOpenMetrics';
2
2
  import type { Metadata, Options, Template } from '@@/Types/stripo';
3
3
  export declare const useStripo: (openMetrics: EditorOpenMetrics) => {
4
- initPlugin: (template: Template, metadata: Metadata, options: Options) => Promise<void>;
4
+ initPlugin: (template: Template, metadata: Metadata, options: Options, htmlChanged?: boolean) => Promise<void>;
5
5
  preloadRuntime: () => void;
6
6
  };
@@ -1,6 +1,3 @@
1
1
  import type { LegacyRecommendationConfig } from '@@/Types/config';
2
2
  import { type PartnerScopeMigrationOptions } from './recommendationPartnerMigrator';
3
- export interface MigrationFeatureFlags {
4
- itemsPriceFormatting?: boolean;
5
- }
6
- export declare const migrate: (html: string, recommendationConfigs?: Record<string, LegacyRecommendationConfig>, partnerScope?: PartnerScopeMigrationOptions, features?: MigrationFeatureFlags) => Promise<string>;
3
+ export declare const migrate: (html: string, recommendationConfigs?: Record<string, LegacyRecommendationConfig>, partnerScope?: PartnerScopeMigrationOptions) => Promise<string>;
@@ -71,12 +71,15 @@ export declare class ItemsBlock extends Block {
71
71
  */
72
72
  private _resolveInstanceId;
73
73
  /**
74
- * Single self-heal slot: the flag only decides whether a legacy root is converted; a root
75
- * already in the new format is reconciled from config regardless. Returns whether anything was queued.
74
+ * Stamps the export-read currency attrs onto every price `<p>` from config, so a template whose
75
+ * attrs drifted (e.g. a location toggle before the sync fix) self-heals to match the editor.
76
+ * Config is the source of truth — never derive from visible text.
77
+ *
78
+ * Authority split lives in `currencyAttrTargets` (SD-147588) — position only when a location
79
+ * is recorded, symbol only when customized — so this heal and the module-drop repair can't drift.
80
+ *
81
+ * Returns true only when an attr actually changed, so the caller can skip an empty apply that
82
+ * would otherwise re-trigger onDocumentChanged and loop.
76
83
  */
77
84
  private _reconcileCurrencyDomAttributes;
78
- /** Legacy `<p>` contract via `currencyAttrTargets`: position when recorded, symbol only when custom. */
79
- private _reconcileLegacyCurrencyAttributes;
80
- private _priceParagraphs;
81
- private _isPriceFormattingEnabled;
82
85
  }
@@ -41,35 +41,3 @@ export declare function currencyAttrTargets(config: {
41
41
  priceCurrencyLocation?: string;
42
42
  priceCurrencySymbol?: string;
43
43
  }): CurrencyAttrTargets;
44
- export declare const ITEMS_PRICE_FORMAT_ATTR: {
45
- readonly SYMBOL: "currency-symbol";
46
- readonly ALIGNMENT: "currency-alignment";
47
- readonly THOUSAND_SEPARATOR: "currency-thousand-separator";
48
- readonly DECIMAL_SEPARATOR: "currency-decimal-separator";
49
- readonly DECIMAL_COUNT: "currency-decimal-count";
50
- readonly SINGLE_PRICE: "data-single_price";
51
- };
52
- /** Price `<p>` attrs of the legacy model; a new-format block carries none of them. */
53
- export declare const LEGACY_PRICE_PARAGRAPH_ATTRS: readonly ["data-formated", "data-single_price", "data-curency", "data-currency_symbol"];
54
- export declare const PRICE_FORMAT_CONFIG_KEYS: readonly ["priceThousandSeparator", "priceDecimalSeparator", "priceDecimalCount"];
55
- export interface ItemsPriceFormat {
56
- thousandSeparator: string;
57
- decimalSeparator: string;
58
- decimalCount: number;
59
- }
60
- /** en-US, the shape the legacy pre-formatted price tags produced. */
61
- export declare const DEFAULT_ITEMS_PRICE_FORMAT: ItemsPriceFormat;
62
- export interface PriceFormatConfigSlice {
63
- priceThousandSeparator?: string;
64
- priceDecimalSeparator?: string;
65
- priceDecimalCount?: number;
66
- }
67
- export declare function normalizeDecimalCount(value: unknown): number;
68
- /** Config → format, defaulting each missing key independently. */
69
- export declare function priceFormatFromConfig(config: PriceFormatConfigSlice | null | undefined): ItemsPriceFormat;
70
- export declare function isNewPriceFormatConfig(config: PriceFormatConfigSlice | null | undefined): boolean;
71
- export interface AttributeReader {
72
- getAttribute(name: string): string | null | undefined;
73
- }
74
- /** The export/control switch: a root carrying `currency-decimal-count` is in the new format. */
75
- export declare function isNewPriceFormatRoot(root: AttributeReader | null | undefined): boolean;
@@ -35,7 +35,6 @@ export declare class ItemsBlockControl extends CommonControl {
35
35
  _reFillTemplate(itemsType?: ProductType): void;
36
36
  _recalculateTrimming(): void;
37
37
  private _getParagraphFromBlock;
38
- private _replacePriceText;
39
38
  private _escapeRegex;
40
39
  private _removeCurrencySymbol;
41
40
  private _replacePriceNumber;
@@ -46,7 +46,6 @@ export declare enum ItemsBlockControlId {
46
46
  PRICE_CURRENCY_SYMBOL = "items-block-price-currency-symbol-control",
47
47
  PRICE_CURRENCY_LOCATION = "items-block-price-currency-location-control",
48
48
  PRICE_ORIENTATION = "items-block-price-orientation-control",
49
- PRICE_FORMAT = "items-block-price-format-control",
50
49
  NAME_ALIGN = "items-block-name-align-control",
51
50
  NAME_COLOR = "items-block-name-color-control",
52
51
  NAME_SIZE = "items-block-name-size-control",
@@ -1,4 +1,3 @@
1
- import { type ItemsPriceFormat } from './constants/currency';
2
1
  import { type ItemsBlockConfig } from './utils/nodeConfigUtils';
3
2
  declare const migrationTemplate = "ADD YOUR MIGRATION HERE";
4
3
  type ProductType = 'CART_ITEMS' | 'BROWSED_ITEMS' | 'PURCHASED_ITEMS';
@@ -37,8 +36,6 @@ type TemplateParameters = {
37
36
  quantityStyles?: string;
38
37
  /** Price orientation within the card ('vertical' = stacked, 'horizontal' = side-by-side) */
39
38
  priceOrientation?: PriceOrientationType;
40
- /** New price model (itemsPriceFormatting): root attrs + raw dummy amounts; absent = legacy output. */
41
- priceFormat?: ItemsPriceFormat;
42
39
  };
43
40
  /**
44
41
  * Applies price orientation styles to the generated HTML template.
@@ -70,5 +67,5 @@ export declare const applyPriceOrientationStyles: (html: string, layoutOrientati
70
67
  * @param params.formattedPrice - Whether to use formatted price display
71
68
  * @returns HTML template string for the Items Block
72
69
  */
73
- export declare function getDefaultTemplate({ orientation, itemsType, itemId, currencySymbol, currencyLocation, migrate, formattedPrice, configBlockAttributes, nodeConfig, nameStyles, buttonStyles, priceStyles, originalPriceStyles, quantityStyles, priceOrientation, priceFormat, }: TemplateParameters): string;
70
+ export declare function getDefaultTemplate({ orientation, itemsType, itemId, currencySymbol, currencyLocation, migrate, formattedPrice, configBlockAttributes, nodeConfig, nameStyles, buttonStyles, priceStyles, originalPriceStyles, quantityStyles, priceOrientation, }: TemplateParameters): string;
74
71
  export default migrationTemplate;
@@ -18,9 +18,6 @@ export interface ItemsBlockConfig {
18
18
  priceCurrencySymbol: string;
19
19
  priceCurrencyLocation: string;
20
20
  priceOrientation: 'vertical' | 'horizontal';
21
- priceThousandSeparator?: string;
22
- priceDecimalSeparator?: string;
23
- priceDecimalCount?: number;
24
21
  quantityControlEnabled: boolean;
25
22
  buttonLink: string;
26
23
  imageLink: string;
@@ -14,18 +14,6 @@ export interface FormatPriceOptions {
14
14
  /** Currency configuration */
15
15
  currency: CurrencyConfig;
16
16
  }
17
- export interface FormatNumberOptions {
18
- thousandSeparator: string;
19
- decimalSeparator: string;
20
- decimalCount: number;
21
- }
22
- /**
23
- * Formats a number with custom thousand and decimal separators
24
- * @param value - The numeric value to format
25
- * @param options - Formatting options
26
- * @returns Formatted number string
27
- */
28
- export declare function formatNumber(value: number, options: FormatNumberOptions): string;
29
17
  /**
30
18
  * Formats a numeric price according to currency settings
31
19
  * @example
@@ -110,7 +110,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
110
110
  linkTrackingIds: boolean;
111
111
  allowSaveWithErrors: boolean;
112
112
  reusableRecommendationStrategy: boolean;
113
- itemsPriceFormatting: boolean;
114
113
  };
115
114
  blocks: {
116
115
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -257,7 +256,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
257
256
  linkTrackingIds: boolean;
258
257
  allowSaveWithErrors: boolean;
259
258
  reusableRecommendationStrategy: boolean;
260
- itemsPriceFormatting: boolean;
261
259
  };
262
260
  blocks: {
263
261
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -404,7 +402,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
404
402
  linkTrackingIds: boolean;
405
403
  allowSaveWithErrors: boolean;
406
404
  reusableRecommendationStrategy: boolean;
407
- itemsPriceFormatting: boolean;
408
405
  };
409
406
  blocks: {
410
407
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -551,7 +548,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
551
548
  linkTrackingIds: boolean;
552
549
  allowSaveWithErrors: boolean;
553
550
  reusableRecommendationStrategy: boolean;
554
- itemsPriceFormatting: boolean;
555
551
  };
556
552
  blocks: {
557
553
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -698,7 +694,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
698
694
  linkTrackingIds: boolean;
699
695
  allowSaveWithErrors: boolean;
700
696
  reusableRecommendationStrategy: boolean;
701
- itemsPriceFormatting: boolean;
702
697
  };
703
698
  blocks: {
704
699
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -845,7 +840,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
845
840
  linkTrackingIds: boolean;
846
841
  allowSaveWithErrors: boolean;
847
842
  reusableRecommendationStrategy: boolean;
848
- itemsPriceFormatting: boolean;
849
843
  };
850
844
  blocks: {
851
845
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -992,7 +986,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
992
986
  linkTrackingIds: boolean;
993
987
  allowSaveWithErrors: boolean;
994
988
  reusableRecommendationStrategy: boolean;
995
- itemsPriceFormatting: boolean;
996
989
  };
997
990
  blocks: {
998
991
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1139,7 +1132,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1139
1132
  linkTrackingIds: boolean;
1140
1133
  allowSaveWithErrors: boolean;
1141
1134
  reusableRecommendationStrategy: boolean;
1142
- itemsPriceFormatting: boolean;
1143
1135
  };
1144
1136
  blocks: {
1145
1137
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1286,7 +1278,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1286
1278
  linkTrackingIds: boolean;
1287
1279
  allowSaveWithErrors: boolean;
1288
1280
  reusableRecommendationStrategy: boolean;
1289
- itemsPriceFormatting: boolean;
1290
1281
  };
1291
1282
  blocks: {
1292
1283
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1433,7 +1424,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1433
1424
  linkTrackingIds: boolean;
1434
1425
  allowSaveWithErrors: boolean;
1435
1426
  reusableRecommendationStrategy: boolean;
1436
- itemsPriceFormatting: boolean;
1437
1427
  };
1438
1428
  blocks: {
1439
1429
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1580,7 +1570,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1580
1570
  linkTrackingIds: boolean;
1581
1571
  allowSaveWithErrors: boolean;
1582
1572
  reusableRecommendationStrategy: boolean;
1583
- itemsPriceFormatting: boolean;
1584
1573
  };
1585
1574
  blocks: {
1586
1575
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1727,7 +1716,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1727
1716
  linkTrackingIds: boolean;
1728
1717
  allowSaveWithErrors: boolean;
1729
1718
  reusableRecommendationStrategy: boolean;
1730
- itemsPriceFormatting: boolean;
1731
1719
  };
1732
1720
  blocks: {
1733
1721
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1874,7 +1862,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1874
1862
  linkTrackingIds: boolean;
1875
1863
  allowSaveWithErrors: boolean;
1876
1864
  reusableRecommendationStrategy: boolean;
1877
- itemsPriceFormatting: boolean;
1878
1865
  };
1879
1866
  blocks: {
1880
1867
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -2021,7 +2008,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2021
2008
  linkTrackingIds: boolean;
2022
2009
  allowSaveWithErrors: boolean;
2023
2010
  reusableRecommendationStrategy: boolean;
2024
- itemsPriceFormatting: boolean;
2025
2011
  };
2026
2012
  blocks: {
2027
2013
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -2168,7 +2154,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2168
2154
  linkTrackingIds: boolean;
2169
2155
  allowSaveWithErrors: boolean;
2170
2156
  reusableRecommendationStrategy: boolean;
2171
- itemsPriceFormatting: boolean;
2172
2157
  };
2173
2158
  blocks: {
2174
2159
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -2315,7 +2300,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2315
2300
  linkTrackingIds: boolean;
2316
2301
  allowSaveWithErrors: boolean;
2317
2302
  reusableRecommendationStrategy: boolean;
2318
- itemsPriceFormatting: boolean;
2319
2303
  };
2320
2304
  blocks: {
2321
2305
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -2462,7 +2446,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2462
2446
  linkTrackingIds: boolean;
2463
2447
  allowSaveWithErrors: boolean;
2464
2448
  reusableRecommendationStrategy: boolean;
2465
- itemsPriceFormatting: boolean;
2466
2449
  };
2467
2450
  blocks: {
2468
2451
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -2621,7 +2604,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2621
2604
  linkTrackingIds: boolean;
2622
2605
  allowSaveWithErrors: boolean;
2623
2606
  reusableRecommendationStrategy: boolean;
2624
- itemsPriceFormatting: boolean;
2625
2607
  };
2626
2608
  blocks: {
2627
2609
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -2768,7 +2750,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2768
2750
  linkTrackingIds: boolean;
2769
2751
  allowSaveWithErrors: boolean;
2770
2752
  reusableRecommendationStrategy: boolean;
2771
- itemsPriceFormatting: boolean;
2772
2753
  };
2773
2754
  blocks: {
2774
2755
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -2917,7 +2898,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
2917
2898
  linkTrackingIds: boolean;
2918
2899
  allowSaveWithErrors: boolean;
2919
2900
  reusableRecommendationStrategy: boolean;
2920
- itemsPriceFormatting: boolean;
2921
2901
  };
2922
2902
  blocks: {
2923
2903
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1,7 +1,3 @@
1
- export interface ItemsCurrencyRepairOptions {
2
- /** Convert legacy-model blocks to the root price-format contract (itemsPriceFormatting). */
3
- convertToPriceFormat?: boolean;
4
- }
5
1
  /**
6
2
  * Heals stale price currency attributes on every v2 Items block inside a dropped
7
3
  * saved module, driving `data-curency` / `data-currency_symbol` from each block's
@@ -18,4 +14,4 @@ export interface ItemsCurrencyRepairOptions {
18
14
  * recommendationMigrator wraps). If the wrap fails to capture the blocks (non-`<td>`
19
15
  * root foster-parented out), it bails to the original string.
20
16
  */
21
- export declare function repairItemsCurrencyAttributes(html: string, { convertToPriceFormat }?: ItemsCurrencyRepairOptions): string;
17
+ export declare function repairItemsCurrencyAttributes(html: string): string;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Browsers ignore whitespace around an href, but the send-time link rewrite does not:
3
+ * a trailing space ends up inside the path and a leading one skips the tracking params.
4
+ */
5
+ export declare function trimHrefWhitespace(html: string): string;
@@ -1,44 +1,39 @@
1
- import { isNewPriceFormatRoot as a, currencyAttrTargets as f, ITEMS_CURRENCY_ATTR as c } from "../extensions/Blocks/Items/constants/currency.js";
2
- import { ItemsBlockId as p } from "../extensions/Blocks/Items/enums/controlEnums.js";
3
- import { snapshotPriceFormatFromElement as m, planPriceFormatOps as y, applyPriceFormatOpsToElement as d } from "../extensions/Blocks/Items/utils/priceFormatOps.js";
4
- const u = "items-block-v2";
5
- function S(e, i) {
6
- if (i || a(e)) {
7
- const t = m(e), l = y(t, { convertLegacy: i });
8
- return d(e, l);
9
- }
10
- const n = e.getAttribute("esd-ext-config");
11
- if (!n)
1
+ import { currencyAttrTargets as u, ITEMS_CURRENCY_ATTR as c } from "../extensions/Blocks/Items/constants/currency.js";
2
+ import { ItemsBlockId as l } from "../extensions/Blocks/Items/enums/controlEnums.js";
3
+ const s = "items-block-v2";
4
+ function f(e) {
5
+ const i = e.getAttribute("esd-ext-config");
6
+ if (!i)
12
7
  return !1;
13
- let r, o;
8
+ let t, r;
14
9
  try {
15
- ({ position: r, symbol: o } = f(JSON.parse(n)));
10
+ ({ position: t, symbol: r } = u(JSON.parse(i)));
16
11
  } catch {
17
12
  return !1;
18
13
  }
19
- let s = !1;
20
- return e.querySelectorAll(`.${p.PRICE} p`).forEach((t) => {
21
- r !== void 0 && t.getAttribute(c.POSITION) !== r && (t.setAttribute(c.POSITION, r), s = !0), o !== void 0 && t.getAttribute(c.SYMBOL) !== o && (t.setAttribute(c.SYMBOL, o), s = !0);
22
- }), s;
14
+ let o = !1;
15
+ return e.querySelectorAll(`.${l.PRICE} p`).forEach((n) => {
16
+ t !== void 0 && n.getAttribute(c.POSITION) !== t && (n.setAttribute(c.POSITION, t), o = !0), r !== void 0 && n.getAttribute(c.SYMBOL) !== r && (n.setAttribute(c.SYMBOL, r), o = !0);
17
+ }), o;
23
18
  }
24
- function I(e, { convertToPriceFormat: i = !1 } = {}) {
25
- if (typeof e != "string" || !e.includes(u))
19
+ function S(e) {
20
+ if (typeof e != "string" || !e.includes(s))
26
21
  return e;
27
22
  try {
28
- const r = new DOMParser().parseFromString(
23
+ const t = new DOMParser().parseFromString(
29
24
  `<table><tbody><tr>${e}</tr></tbody></table>`,
30
25
  "text/html"
31
- ).querySelector("tr"), o = r.querySelectorAll(`.${u}`);
32
- if (o.length === 0)
26
+ ).querySelector("tr"), r = t.querySelectorAll(`.${s}`);
27
+ if (r.length === 0)
33
28
  return e;
34
- let s = !1;
35
- return o.forEach((t) => {
36
- S(t, i) && (s = !0);
37
- }), s ? r.innerHTML : e;
38
- } catch (n) {
39
- return console.error("Failed to repair items currency on module add:", n), e;
29
+ let o = !1;
30
+ return r.forEach((n) => {
31
+ f(n) && (o = !0);
32
+ }), o ? t.innerHTML : e;
33
+ } catch (i) {
34
+ return console.error("Failed to repair items currency on module add:", i), e;
40
35
  }
41
36
  }
42
37
  export {
43
- I as repairItemsCurrencyAttributes
38
+ S as repairItemsCurrencyAttributes
44
39
  };