@useinsider/guido 1.0.3-beta.0eb82c3 → 1.0.3-beta.0f92b5e
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.
- package/README.md +0 -32
- package/dist/{src/@types → @types}/generic.d.ts +0 -13
- package/dist/{src/components → components}/Guido.vue.d.ts +2 -2
- package/dist/components/Guido.vue.js +7 -7
- package/dist/components/Guido.vue2.js +68 -74
- package/dist/{src/components → components}/wrappers/WpDrawer.vue.d.ts +4 -6
- package/dist/components/wrappers/WpDrawer.vue.js +4 -6
- package/dist/composables/useStripo.js +35 -46
- package/dist/config/compiler/unsubscribeCompilerRules.js +29 -42
- package/dist/config/migrator/index.d.ts +1 -0
- package/dist/config/migrator/index.js +5 -7
- package/dist/enums/defaults.js +3 -6
- package/dist/enums/unsubscribe.d.ts +15 -0
- package/dist/enums/unsubscribe.js +6 -43
- package/dist/{src/extensions → extensions}/Blocks/Checkbox/block.d.ts +0 -2
- package/dist/extensions/Blocks/Checkbox/block.js +24 -18
- package/dist/extensions/Blocks/Checkbox/control.js +67 -55
- package/dist/extensions/Blocks/Checkbox/extension.js +16 -5
- package/dist/extensions/Blocks/Checkbox/settingsPanel.js +25 -12
- package/dist/extensions/Blocks/Checkbox/template.js +16 -5
- package/dist/{src/extensions → extensions}/Blocks/CouponBlock/block.d.ts +0 -1
- package/dist/extensions/Blocks/CouponBlock/block.js +23 -14
- package/dist/extensions/Blocks/CouponBlock/extension.js +16 -5
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +29 -16
- package/dist/extensions/Blocks/CouponBlock/template.d.ts +3 -0
- package/dist/extensions/Blocks/CouponBlock/template.js +8 -13
- package/dist/{src/extensions → extensions}/Blocks/RadioButton/block.d.ts +0 -2
- package/dist/extensions/Blocks/RadioButton/block.js +22 -16
- package/dist/extensions/Blocks/RadioButton/control.js +52 -40
- package/dist/extensions/Blocks/RadioButton/extension.js +15 -4
- package/dist/extensions/Blocks/RadioButton/settingsPanel.js +26 -13
- package/dist/extensions/Blocks/RadioButton/template.js +24 -13
- package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/block.d.ts +0 -1
- package/dist/extensions/DynamicContent/dynamic-content.js +45 -31
- package/dist/extensions/DynamicContent/extension.js +18 -6
- package/dist/guido.css +1 -1
- package/dist/icons/coupon.svg +3 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +75 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +77 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +123 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js +12 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +119 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js +12 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +7 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +24 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +24 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +11 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +33 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +22 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +40 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +5 -0
- package/dist/static/styles/customEditorStyle.css.js +0 -4
- package/dist/{src/stores → stores}/editor.d.ts +0 -21
- package/dist/stores/editor.js +1 -2
- package/dist/stores/unsubscribe.d.ts +8 -0
- package/dist/stores/unsubscribe.js +6 -126
- package/dist/{src/utils → utils}/genericUtil.d.ts +0 -1
- package/dist/utils/templatePreparation.js +16 -17
- package/package.json +4 -16
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +0 -28
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +0 -38
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.js +0 -17
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +0 -37
- package/dist/components/organisms/extensions/recommendation/Filters.vue.js +0 -20
- package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +0 -44
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.js +0 -17
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +0 -27
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +0 -16
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +0 -24
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +0 -64
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +0 -107
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue2.js +0 -12
- package/dist/config/migrator/couponBlockMigrator.js +0 -67
- package/dist/config/migrator/unsubscribeMigrator.js +0 -124
- package/dist/enums/extensions/recommendationBlock.js +0 -80
- package/dist/extensions/Blocks/Checkbox/iconsRegistry.js +0 -18
- package/dist/extensions/Blocks/CouponBlock/iconsRegistry.js +0 -33
- package/dist/extensions/Blocks/Items/block.js +0 -35
- package/dist/extensions/Blocks/Items/controls/button/align.js +0 -12
- package/dist/extensions/Blocks/Items/controls/button/border.js +0 -12
- package/dist/extensions/Blocks/Items/controls/button/borderRadius.js +0 -12
- package/dist/extensions/Blocks/Items/controls/button/color.js +0 -12
- package/dist/extensions/Blocks/Items/controls/button/fitToContent.js +0 -12
- package/dist/extensions/Blocks/Items/controls/button/fontFamily.js +0 -12
- package/dist/extensions/Blocks/Items/controls/button/link.js +0 -34
- package/dist/extensions/Blocks/Items/controls/button/margin.js +0 -12
- package/dist/extensions/Blocks/Items/controls/button/padding.js +0 -12
- package/dist/extensions/Blocks/Items/controls/button/text.js +0 -12
- package/dist/extensions/Blocks/Items/controls/button/textSize.js +0 -12
- package/dist/extensions/Blocks/Items/controls/button/textStyleAndFontColor.js +0 -12
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +0 -98
- package/dist/extensions/Blocks/Items/controls/image/link.js +0 -34
- package/dist/extensions/Blocks/Items/controls/image/margin.js +0 -13
- package/dist/extensions/Blocks/Items/controls/image/size.js +0 -13
- package/dist/extensions/Blocks/Items/controls/name/align.js +0 -12
- package/dist/extensions/Blocks/Items/controls/name/color.js +0 -12
- package/dist/extensions/Blocks/Items/controls/name/fontFamily.js +0 -12
- package/dist/extensions/Blocks/Items/controls/name/padding.js +0 -14
- package/dist/extensions/Blocks/Items/controls/name/size.js +0 -12
- package/dist/extensions/Blocks/Items/controls/name/style.js +0 -13
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +0 -41
- package/dist/extensions/Blocks/Items/controls/originalPrice/align.js +0 -12
- package/dist/extensions/Blocks/Items/controls/originalPrice/color.js +0 -12
- package/dist/extensions/Blocks/Items/controls/originalPrice/fontFamily.js +0 -12
- package/dist/extensions/Blocks/Items/controls/originalPrice/padding.js +0 -14
- package/dist/extensions/Blocks/Items/controls/originalPrice/size.js +0 -12
- package/dist/extensions/Blocks/Items/controls/originalPrice/style.js +0 -13
- package/dist/extensions/Blocks/Items/controls/price/align.js +0 -12
- package/dist/extensions/Blocks/Items/controls/price/color.js +0 -12
- package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +0 -57
- package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +0 -78
- package/dist/extensions/Blocks/Items/controls/price/fontFamily.js +0 -12
- package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +0 -39
- package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +0 -37
- package/dist/extensions/Blocks/Items/controls/price/padding.js +0 -14
- package/dist/extensions/Blocks/Items/controls/price/size.js +0 -12
- package/dist/extensions/Blocks/Items/controls/price/style.js +0 -13
- package/dist/extensions/Blocks/Items/controls/quantity/align.js +0 -12
- package/dist/extensions/Blocks/Items/controls/quantity/color.js +0 -12
- package/dist/extensions/Blocks/Items/controls/quantity/fontFamily.js +0 -12
- package/dist/extensions/Blocks/Items/controls/quantity/padding.js +0 -14
- package/dist/extensions/Blocks/Items/controls/quantity/size.js +0 -12
- package/dist/extensions/Blocks/Items/controls/quantity/style.js +0 -13
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +0 -197
- package/dist/extensions/Blocks/Items/enums/productEnums.js +0 -176
- package/dist/extensions/Blocks/Items/enums/settingsEnums.js +0 -55
- package/dist/extensions/Blocks/Items/extension.js +0 -55
- package/dist/extensions/Blocks/Items/iconsRegistry.js +0 -32
- package/dist/extensions/Blocks/Items/items.css.js +0 -23
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +0 -58
- package/dist/extensions/Blocks/Items/layouts/vertical.html.js +0 -65
- package/dist/extensions/Blocks/Items/settingsPanel.js +0 -105
- package/dist/extensions/Blocks/Items/template.js +0 -86
- package/dist/extensions/Blocks/RadioButton/iconsRegistry.js +0 -14
- package/dist/extensions/Blocks/Recommendation/block.js +0 -27
- package/dist/extensions/Blocks/Recommendation/control.js +0 -277
- package/dist/extensions/Blocks/Recommendation/extension.js +0 -10
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +0 -51
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +0 -19
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +0 -32
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +0 -266
- package/dist/extensions/Blocks/Recommendation/template.js +0 -200
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +0 -28
- package/dist/extensions/Blocks/Unsubscribe/block.js +0 -131
- package/dist/extensions/Blocks/Unsubscribe/control.js +0 -167
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +0 -42
- package/dist/extensions/Blocks/Unsubscribe/extension.js +0 -21
- package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.js +0 -21
- package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +0 -35
- package/dist/extensions/Blocks/Unsubscribe/styles.css.js +0 -42
- package/dist/extensions/Blocks/Unsubscribe/tagRegistry.js +0 -10
- package/dist/extensions/Blocks/Unsubscribe/template.js +0 -22
- package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +0 -11
- package/dist/extensions/Blocks/Unsubscribe/utils/utils.js +0 -6
- package/dist/extensions/Blocks/common-control.js +0 -127
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +0 -839
- package/dist/package.json.js +0 -7
- package/dist/services/recommendationApi.js +0 -37
- package/dist/services/unsubscribeApi.js +0 -16
- package/dist/src/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +0 -19
- package/dist/src/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts +0 -2
- package/dist/src/components/organisms/extensions/recommendation/Filters.vue.d.ts +0 -2
- package/dist/src/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +0 -16
- package/dist/src/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -2
- package/dist/src/components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -2
- package/dist/src/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -2
- package/dist/src/components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -2
- package/dist/src/config/migrator/couponBlockMigrator.d.ts +0 -1
- package/dist/src/config/migrator/index.d.ts +0 -1
- package/dist/src/config/migrator/unsubscribeMigrator.d.ts +0 -1
- package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -16
- package/dist/src/enums/unsubscribe.d.ts +0 -38
- package/dist/src/extensions/Blocks/Checkbox/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/CouponBlock/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +0 -3
- package/dist/src/extensions/Blocks/Items/block.d.ts +0 -11
- package/dist/src/extensions/Blocks/Items/controls/button/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/button/border.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/button/borderRadius.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/button/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/button/fitToContent.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/button/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/button/link.d.ts +0 -8
- package/dist/src/extensions/Blocks/Items/controls/button/margin.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/button/padding.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/button/text.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/button/textSize.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/button/textStyleAndFontColor.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/cardComposition.d.ts +0 -20
- package/dist/src/extensions/Blocks/Items/controls/image/link.d.ts +0 -8
- package/dist/src/extensions/Blocks/Items/controls/image/margin.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/image/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/name/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/name/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/name/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/name/padding.d.ts +0 -6
- package/dist/src/extensions/Blocks/Items/controls/name/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/name/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/name/trimming.d.ts +0 -8
- package/dist/src/extensions/Blocks/Items/controls/originalPrice/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/originalPrice/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/originalPrice/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/originalPrice/padding.d.ts +0 -6
- package/dist/src/extensions/Blocks/Items/controls/originalPrice/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/originalPrice/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/price/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/price/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/price/currencyLocation.d.ts +0 -8
- package/dist/src/extensions/Blocks/Items/controls/price/currencySymbol.d.ts +0 -10
- package/dist/src/extensions/Blocks/Items/controls/price/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/price/formattedPrice.d.ts +0 -8
- package/dist/src/extensions/Blocks/Items/controls/price/hideDiscount.d.ts +0 -8
- package/dist/src/extensions/Blocks/Items/controls/price/padding.d.ts +0 -6
- package/dist/src/extensions/Blocks/Items/controls/price/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/price/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/quantity/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/quantity/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/quantity/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/quantity/padding.d.ts +0 -6
- package/dist/src/extensions/Blocks/Items/controls/quantity/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/quantity/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +0 -33
- package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +0 -135
- package/dist/src/extensions/Blocks/Items/enums/settingsEnums.d.ts +0 -25
- package/dist/src/extensions/Blocks/Items/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/Items/template.d.ts +0 -13
- package/dist/src/extensions/Blocks/RadioButton/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -10
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -29
- package/dist/src/extensions/Blocks/Recommendation/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/Recommendation/settingsPanel.d.ts +0 -4
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +0 -555
- package/dist/src/extensions/Blocks/Recommendation/template.d.ts +0 -6
- package/dist/src/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +0 -7
- package/dist/src/extensions/Blocks/Unsubscribe/block.d.ts +0 -32
- package/dist/src/extensions/Blocks/Unsubscribe/control.d.ts +0 -29
- package/dist/src/extensions/Blocks/Unsubscribe/elements/preview.d.ts +0 -11
- package/dist/src/extensions/Blocks/Unsubscribe/extension.d.ts +0 -2
- package/dist/src/extensions/Blocks/Unsubscribe/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/Unsubscribe/settingsPanel.d.ts +0 -4
- package/dist/src/extensions/Blocks/Unsubscribe/tagRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/Unsubscribe/template.d.ts +0 -12
- package/dist/src/extensions/Blocks/Unsubscribe/utils/constants.d.ts +0 -9
- package/dist/src/extensions/Blocks/Unsubscribe/utils/utils.d.ts +0 -7
- package/dist/src/extensions/Blocks/_Boilerplate/extension.d.ts +0 -2
- package/dist/src/extensions/Blocks/_Boilerplate/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
- package/dist/src/extensions/Blocks/common-control.d.ts +0 -80
- package/dist/src/extensions/DynamicContent/extension.d.ts +0 -2
- package/dist/src/mock/api/recommendation.d.ts +0 -2
- package/dist/src/services/recommendationApi.d.ts +0 -6
- package/dist/src/services/unsubscribeApi.d.ts +0 -4
- package/dist/src/stores/config.d.ts +0 -96
- package/dist/src/stores/unsubscribe.d.ts +0 -256
- package/dist/stores/config.js +0 -17
- /package/dist/{src/@types → @types}/events.d.ts +0 -0
- /package/dist/{src/@types → @types}/save-as-template.d.ts +0 -0
- /package/dist/{src/App.vue.d.ts → App.vue.d.ts} +0 -0
- /package/dist/{src/components → components}/organisms/LoadingWrapper.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/base/Toaster.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/email-preview/PreviewContainer.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/header/HeaderWrapper.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/header/LeftSlot.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/header/MiddleSlot.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/header/RightSlot.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/header/ViewOptions.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/header/version-history/RestoreButton.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/header/version-history/VersionHistory.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/header/version-history/VersionHistoryItem.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/header/version-history/ViewOptions.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -0
- /package/dist/{src/components → components}/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -0
- /package/dist/{src/components → components}/wrappers/WpModal.vue.d.ts +0 -0
- /package/dist/{src/composables → composables}/useActionsApi.d.ts +0 -0
- /package/dist/{src/composables → composables}/useApiExample.d.ts +0 -0
- /package/dist/{src/composables → composables}/useCodeEditorApi.d.ts +0 -0
- /package/dist/{src/composables → composables}/useConfig.d.ts +0 -0
- /package/dist/{src/composables → composables}/useCustomInterfaceAppearance.d.ts +0 -0
- /package/dist/{src/composables → composables}/useDebounce.d.ts +0 -0
- /package/dist/{src/composables → composables}/useExport.d.ts +0 -0
- /package/dist/{src/composables → composables}/useGuidoActions.d.ts +0 -0
- /package/dist/{src/composables → composables}/useHtmlCompiler.d.ts +0 -0
- /package/dist/{src/composables → composables}/useHtmlValidator.d.ts +0 -0
- /package/dist/{src/composables → composables}/useHttp.d.ts +0 -0
- /package/dist/{src/composables → composables}/usePartner.d.ts +0 -0
- /package/dist/{src/composables → composables}/usePreviewMode.d.ts +0 -0
- /package/dist/{src/composables → composables}/useProvideInject.d.ts +0 -0
- /package/dist/{src/composables → composables}/useRecommendation.d.ts +0 -0
- /package/dist/{src/composables → composables}/useResponsivePreview.d.ts +0 -0
- /package/dist/{src/composables → composables}/useSave.d.ts +0 -0
- /package/dist/{src/composables → composables}/useStripo.d.ts +0 -0
- /package/dist/{src/composables → composables}/useStripoEventHandler.d.ts +0 -0
- /package/dist/{src/composables → composables}/useToaster.d.ts +0 -0
- /package/dist/{src/composables → composables}/useTranslations.d.ts +0 -0
- /package/dist/{src/composables → composables}/useValidation.d.ts +0 -0
- /package/dist/{src/composables → composables}/useVersionHistoryApi.d.ts +0 -0
- /package/dist/{src/composables → composables}/validators/saveAsTemplate.d.ts +0 -0
- /package/dist/{src/config → config}/compiler/htmlCompilerRules.d.ts +0 -0
- /package/dist/{src/config → config}/compiler/outlookCompilerRules.d.ts +0 -0
- /package/dist/{src/config → config}/compiler/recommendationCompilerRules.d.ts +0 -0
- /package/dist/{src/config → config}/compiler/socialCompilerRules.d.ts +0 -0
- /package/dist/{src/config → config}/compiler/unsubscribeCompilerRules.d.ts +0 -0
- /package/dist/{src/config → config}/migrator/checkboxMigrator.d.ts +0 -0
- /package/dist/{src/config → config}/migrator/radioButtonMigrator.d.ts +0 -0
- /package/dist/{src/enums → enums}/defaults.d.ts +0 -0
- /package/dist/{src/enums → enums}/displayConditions.d.ts +0 -0
- /package/dist/{src/enums → enums}/html-validator.d.ts +0 -0
- /package/dist/{src/enums → enums}/onboarding.d.ts +0 -0
- /package/dist/{src/enums → enums}/preview.d.ts +0 -0
- /package/dist/{src/enums → enums}/recommendation.d.ts +0 -0
- /package/dist/{src/enums → enums}/toaster.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Checkbox/control.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Checkbox/extension.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Checkbox/settingsPanel.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/Checkbox/template.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/extension.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/settingsPanel.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/RadioButton/control.d.ts +0 -0
- /package/dist/{src/extensions/Blocks/Items → extensions/Blocks/RadioButton}/extension.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/RadioButton/settingsPanel.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/RadioButton/template.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/control.d.ts +0 -0
- /package/dist/{src/extensions/Blocks/RadioButton → extensions/Blocks/_Boilerplate}/extension.d.ts +0 -0
- /package/dist/{src/extensions/Blocks/Items → extensions/Blocks/_Boilerplate}/settingsPanel.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/template.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/DynamicContent/dynamic-content-modal.d.ts +0 -0
- /package/dist/{src/extensions → extensions}/DynamicContent/dynamic-content.d.ts +0 -0
- /package/dist/{src/extensions/Blocks/Recommendation → extensions/DynamicContent}/extension.d.ts +0 -0
- /package/dist/{src/library.d.ts → library.d.ts} +0 -0
- /package/dist/{src/main.d.ts → main.d.ts} +0 -0
- /package/dist/{src/mock → mock}/api/auth.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/custom-fonts.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/default-template.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/template-library.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/unsubscribe.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/user-modal-state.d.ts +0 -0
- /package/dist/{src/mock → mock}/api/validator.d.ts +0 -0
- /package/dist/{src/mock → mock}/browser.d.ts +0 -0
- /package/dist/{src/mock → mock}/handlers.d.ts +0 -0
- /package/dist/{src/services → services}/onboardingApi.d.ts +0 -0
- /package/dist/{src/services → services}/stripoApi.d.ts +0 -0
- /package/dist/{src/services → services}/templateLibraryApi.d.ts +0 -0
- /package/dist/{src/stores → stores}/dynamic-content.d.ts +0 -0
- /package/dist/{src/stores → stores}/onboarding.d.ts +0 -0
- /package/dist/{src/stores → stores}/preview.d.ts +0 -0
- /package/dist/{src/stores → stores}/recommendation.d.ts +0 -0
- /package/dist/{src/stores → stores}/save-as-template.d.ts +0 -0
- /package/dist/{src/stores → stores}/toaster.d.ts +0 -0
- /package/dist/{src/stores → stores}/version-history.d.ts +0 -0
- /package/dist/{src/utils → utils}/arrayUtil.d.ts +0 -0
- /package/dist/{src/utils → utils}/base64.d.ts +0 -0
- /package/dist/{src/utils → utils}/dateUtil.d.ts +0 -0
- /package/dist/{src/utils → utils}/htmlCompiler.d.ts +0 -0
- /package/dist/{src/utils → utils}/templatePreparation.d.ts +0 -0
- /package/dist/{src/utils → utils}/tooltipUtils.d.ts +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, computed as o, ref as h } from "vue";
|
|
2
|
-
import { useTranslations as G } from "../../../../composables/useTranslations.js";
|
|
3
|
-
import { useRecommendationExtensionStore as g } from "../../../../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
4
|
-
import { InButtonV2 as v, InSegments as f } from "@useinsider/design-system-vue";
|
|
5
|
-
import _ from "./FilterItem.vue.js";
|
|
6
|
-
import A from "./LogicAdapter.vue.js";
|
|
7
|
-
const E = /* @__PURE__ */ m({
|
|
8
|
-
__name: "Filters",
|
|
9
|
-
setup(R) {
|
|
10
|
-
const i = G(), l = g(), u = o(() => l.getFilterGroupCount), t = o(() => Array.from({ length: u.value }, (e, a) => ({
|
|
11
|
-
text: (a + 1).toString(),
|
|
12
|
-
value: a + 1
|
|
13
|
-
}))), r = h(1), s = (e) => {
|
|
14
|
-
r.value = e;
|
|
15
|
-
}, d = () => {
|
|
16
|
-
const e = t.value.length + 1;
|
|
17
|
-
console.debug("handleAddFilterGroup", e), t.value.push({
|
|
18
|
-
text: e.toString(),
|
|
19
|
-
value: e
|
|
20
|
-
}), l.addFilterGroup(e);
|
|
21
|
-
}, p = o(() => t.value.length >= 3), n = o(() => l.getSelectedFilterGroup(r.value)), c = o(() => n.value.length > 1), F = o(() => t.value.length > 1);
|
|
22
|
-
return { __sfc: !0, MAX_FILTER_GROUP_COUNT: 3, trans: i, store: l, filterGroupCount: u, filterGroupList: t, selectedFilterGroup: r, changeFilterGroup: s, handleAddFilterGroup: d, isMaxFilterGroupCount: p, selectedFilterGroupFilters: n, hasLogicAdapter: c, hasRemoveFilterButton: F, handleAddFilter: () => {
|
|
23
|
-
l.addFilter({
|
|
24
|
-
type: "standardFilter",
|
|
25
|
-
attribute: "",
|
|
26
|
-
operatorReplace: "",
|
|
27
|
-
operator: "",
|
|
28
|
-
innerGroupOperator: "*",
|
|
29
|
-
outerGroupOperator: "*",
|
|
30
|
-
filterNumber: n.value.length + 1,
|
|
31
|
-
filterGroup: r.value,
|
|
32
|
-
isValid: !1,
|
|
33
|
-
value: ""
|
|
34
|
-
}), console.debug("handleAddFilter");
|
|
35
|
-
}, handleDeleteFilter: (e) => {
|
|
36
|
-
console.debug("handleDeleteFilter: ", e), l.deleteFilter(e);
|
|
37
|
-
}, handleDeleteFilterGroup: () => {
|
|
38
|
-
t.value.length !== 1 && (console.debug("handleDeleteFilterGroup"), t.value.splice(r.value - 1, 1), r.value > 1 && r.value--);
|
|
39
|
-
}, InSegments: f, InButtonV2: v, FilterItem: _, LogicAdapter: A };
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
export {
|
|
43
|
-
E as default
|
|
44
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import s from "./LogicAdapter.vue2.js";
|
|
2
|
-
import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var o = function() {
|
|
4
|
-
var t = this, r = t._self._c, e = t._self._setupProxy;
|
|
5
|
-
return r(e.InSegments, { staticClass: "guido__logic-adapter f-g-1", attrs: { "segment-list": e.logicAdapterList, selected: e.selectedLogicAdapter, "with-icon": !1 }, on: { click: e.changeLogicAdapter } });
|
|
6
|
-
}, a = [], c = /* @__PURE__ */ n(
|
|
7
|
-
s,
|
|
8
|
-
o,
|
|
9
|
-
a,
|
|
10
|
-
!1,
|
|
11
|
-
null,
|
|
12
|
-
null
|
|
13
|
-
);
|
|
14
|
-
const p = c.exports;
|
|
15
|
-
export {
|
|
16
|
-
p as default
|
|
17
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, ref as n } from "vue";
|
|
2
|
-
import { InSegments as p } from "@useinsider/design-system-vue";
|
|
3
|
-
const l = /* @__PURE__ */ s({
|
|
4
|
-
__name: "LogicAdapter",
|
|
5
|
-
props: {
|
|
6
|
-
logic: null
|
|
7
|
-
},
|
|
8
|
-
emits: ["change"],
|
|
9
|
-
setup(r, { emit: e }) {
|
|
10
|
-
const t = r, a = n([
|
|
11
|
-
{
|
|
12
|
-
text: "and",
|
|
13
|
-
value: "*"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
text: "or",
|
|
17
|
-
value: "|"
|
|
18
|
-
}
|
|
19
|
-
]), o = n(t.logic || "*");
|
|
20
|
-
return { __sfc: !0, logicAdapterList: a, emit: e, props: t, selectedLogicAdapter: o, changeLogicAdapter: (c) => {
|
|
21
|
-
o.value = c, e("change", c);
|
|
22
|
-
}, InSegments: p };
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
export {
|
|
26
|
-
l as default
|
|
27
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import s from "./UnsubscribeBreadcrumb.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import a from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var o = function() {
|
|
5
|
-
var e = this, t = e._self._c, r = e._self._setupProxy;
|
|
6
|
-
return t(r.InBreadcrumb, { staticClass: "c-p", attrs: { "without-router": "", "active-tab": r.unsubscribeStore.activeType, "home-icon": !1, list: r.breadcrumbs, routes: [] }, on: { click: r.navigate } });
|
|
7
|
-
}, c = [], n = /* @__PURE__ */ a(
|
|
8
|
-
s,
|
|
9
|
-
o,
|
|
10
|
-
c,
|
|
11
|
-
!1,
|
|
12
|
-
null,
|
|
13
|
-
"70835920"
|
|
14
|
-
);
|
|
15
|
-
const f = n.exports;
|
|
16
|
-
export {
|
|
17
|
-
f as default
|
|
18
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, computed as n } from "vue";
|
|
2
|
-
import { TYPE_TRANSLATIONS as s } from "../../../enums/unsubscribe.js";
|
|
3
|
-
import { useUnsubscribeStore as c } from "../../../stores/unsubscribe.js";
|
|
4
|
-
import { InBreadcrumb as m } from "@useinsider/design-system-vue";
|
|
5
|
-
const f = /* @__PURE__ */ o({
|
|
6
|
-
__name: "UnsubscribeBreadcrumb",
|
|
7
|
-
setup(a) {
|
|
8
|
-
const r = c(), t = n(() => r.getSelectedCollection.map((e) => ({ value: e, text: s[e] })));
|
|
9
|
-
return { __sfc: !0, unsubscribeStore: r, breadcrumbs: t, navigate: (e) => {
|
|
10
|
-
r.activeType = e.value;
|
|
11
|
-
}, InBreadcrumb: m };
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
export {
|
|
15
|
-
f as default
|
|
16
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import a from "./UnsubscribePageSelection.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import n from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var o = function() {
|
|
5
|
-
var r = this, e = r._self._c, t = r._self._setupProxy;
|
|
6
|
-
return e(t.WpDrawer, { attrs: { id: "unsubscribe-modal", "description-status": "", size: "large", "footer-button-group-options": t.footerButtonGroupOptions, status: t.unsubscribeStore.pageSelectionDrawerStatus, "title-text": t.trans("newsletter.select-a-template") }, on: { cancelOrBackButtonEvent: t.handleBack, onCloseEvent: t.closeModal, primaryButtonEvent: t.handleSave }, scopedSlots: r._u([{ key: "headerBottomSlot", fn: function() {
|
|
7
|
-
return [e(t.UnsubscribeBreadcrumb, { staticClass: "px-5 py-3" })];
|
|
8
|
-
}, proxy: !0 }]) }, [e("div", { staticClass: "d-g templates-wrapper" }, r._l(t.unsubscribeStore.getTemplatesByActiveType, function(s) {
|
|
9
|
-
return e("div", { key: s.id, staticClass: "template-wrapper", on: { click: function(u) {
|
|
10
|
-
return t.selectTemplate(s.id);
|
|
11
|
-
} } }, [e(t.InContainer, { staticClass: "template-container o-h", class: { selected: t.unsubscribeStore.getSelectedTemplateByActiveType === s.id }, attrs: { border: t.getBorderClass(s.id) } }, [e("div", { staticClass: "w-1 h-1 d-f j-c-c a-i-c" }, [e("img", { staticClass: "w-1 h-1 thumbnail o-h", attrs: { alt: s.name, src: s.thumbnail } })])]), e("div", { staticClass: "mt-1 f-s-1" }, [r._v(" " + r._s(s.name) + " ")])], 1);
|
|
12
|
-
}), 0)]);
|
|
13
|
-
}, i = [], c = /* @__PURE__ */ n(
|
|
14
|
-
a,
|
|
15
|
-
o,
|
|
16
|
-
i,
|
|
17
|
-
!1,
|
|
18
|
-
null,
|
|
19
|
-
"a86fc486"
|
|
20
|
-
);
|
|
21
|
-
const _ = c.exports;
|
|
22
|
-
export {
|
|
23
|
-
_ as default
|
|
24
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, ref as y, computed as n, watch as T } from "vue";
|
|
2
|
-
import g from "../../wrappers/WpDrawer.vue.js";
|
|
3
|
-
import { useToaster as S } from "../../../composables/useToaster.js";
|
|
4
|
-
import { useTranslations as v } from "../../../composables/useTranslations.js";
|
|
5
|
-
import { ToasterTypeOptions as B } from "../../../enums/toaster.js";
|
|
6
|
-
import { useUnsubscribeStore as w } from "../../../stores/unsubscribe.js";
|
|
7
|
-
import { InContainer as C } from "@useinsider/design-system-vue";
|
|
8
|
-
import h from "./UnsubscribeBreadcrumb.vue.js";
|
|
9
|
-
const E = /* @__PURE__ */ f({
|
|
10
|
-
__name: "UnsubscribePageSelection",
|
|
11
|
-
setup(_) {
|
|
12
|
-
const s = v(), e = w(), { showToaster: a } = S(), o = y(!1), c = n(() => e.isActiveTypeLastInCollection ? o.value ? s("unsubscription-preference.applying-changes") : s("statistics.apply") : s("products.select-and-continue")), i = n(() => e.pageSelectionUpdateStatus && e.isActiveTypeFirstInCollection ? s("products.cancel") : s("newsletter.back")), p = n(() => ({
|
|
13
|
-
primaryButton: {
|
|
14
|
-
styling: "solid",
|
|
15
|
-
type: "primary",
|
|
16
|
-
labelText: c.value,
|
|
17
|
-
loadingStatus: o.value,
|
|
18
|
-
disabledStatus: !1
|
|
19
|
-
},
|
|
20
|
-
cancelOrBackButton: {
|
|
21
|
-
styling: "ghost",
|
|
22
|
-
type: "secondary",
|
|
23
|
-
labelText: i.value,
|
|
24
|
-
disabledStatus: o.value
|
|
25
|
-
}
|
|
26
|
-
})), u = (t) => e.getSelectedTemplateByActiveType === t ? "bor-w-3 bor-s-s bor-c-7" : "bor-w-1 bor-s-s bor-c-6", r = (t) => {
|
|
27
|
-
e.pageSelectionDrawerStatus = !1, t && setTimeout(() => {
|
|
28
|
-
t();
|
|
29
|
-
}, 500);
|
|
30
|
-
}, m = () => {
|
|
31
|
-
if (e.isActiveTypeFirstInCollection) {
|
|
32
|
-
r(), e.pageSelectionUpdateStatus || (e.typeSelectionDrawerStatus = !0);
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
e.setPreviousType();
|
|
36
|
-
}, d = () => {
|
|
37
|
-
if (e.isActiveTypeLastInCollection) {
|
|
38
|
-
o.value = !0;
|
|
39
|
-
const t = e.selectedCollectionType, l = e.getSelectedTemplatesByCollection(t);
|
|
40
|
-
e.addUnsubscribePages(l), document.dispatchEvent(new CustomEvent("unsubscribe:select", {
|
|
41
|
-
detail: {
|
|
42
|
-
collectionType: t,
|
|
43
|
-
selectedPages: l
|
|
44
|
-
}
|
|
45
|
-
})), r(() => {
|
|
46
|
-
o.value = !1, a({
|
|
47
|
-
type: B.Success,
|
|
48
|
-
message: s("global-unsubscribe.pages-were-attached")
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
e.setNextType();
|
|
54
|
-
}, b = (t) => {
|
|
55
|
-
e.setSelectedTemplate(t);
|
|
56
|
-
};
|
|
57
|
-
return T(() => e.pageSelectionDrawerStatus, (t) => {
|
|
58
|
-
t && e.pageSelectionUpdateStatus && e.fetchTemplates();
|
|
59
|
-
}), { __sfc: !0, trans: s, unsubscribeStore: e, showToaster: a, isApplying: o, getPrimaryButtonText: c, getCancelOrBackButtonText: i, footerButtonGroupOptions: p, getBorderClass: u, closeModal: r, handleBack: m, handleSave: d, selectTemplate: b, WpDrawer: g, InContainer: C, UnsubscribeBreadcrumb: h };
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
export {
|
|
63
|
-
E as default
|
|
64
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import n from "./UnsubscribeTypeSelection.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var i = function() {
|
|
5
|
-
var e = this, s = e._self._c, t = e._self._setupProxy;
|
|
6
|
-
return s(t.WpDrawer, { attrs: { id: "unsubscribe-modal", "description-status": "", "description-text": t.descriptionText, "footer-button-group-options": t.footerButtonGroupOptions, status: t.unsubscribeStore.typeSelectionDrawerStatus, "title-text": t.trans("unsubscription-preference.select-unsubscribe-page-title") }, on: { cancelOrBackButtonEvent: t.closeModal, onCloseEvent: t.closeModal, primaryButtonEvent: t.selectCollection } }, [s(t.InSegments, { staticClass: "w-1", attrs: { "with-icon": "", align: "vertical", disable: t.isSelecting, "segment-list": t.segmentList, selected: t.selectedCollection, "skeleton-sizing": { width: 495, height: 180 }, "skeleton-status": t.skeletonStatus }, on: { click: t.changeCollection } })], 1);
|
|
7
|
-
}, r = [], c = /* @__PURE__ */ o(
|
|
8
|
-
n,
|
|
9
|
-
i,
|
|
10
|
-
r,
|
|
11
|
-
!1,
|
|
12
|
-
null,
|
|
13
|
-
"dd57102d"
|
|
14
|
-
);
|
|
15
|
-
const d = c.exports;
|
|
16
|
-
export {
|
|
17
|
-
d as default
|
|
18
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, ref as b, computed as m, watch as _ } from "vue";
|
|
2
|
-
import v from "../../wrappers/WpDrawer.vue.js";
|
|
3
|
-
import { useToaster as B } from "../../../composables/useToaster.js";
|
|
4
|
-
import { useTranslations as N } from "../../../composables/useTranslations.js";
|
|
5
|
-
import { ToasterTypeOptions as U } from "../../../enums/toaster.js";
|
|
6
|
-
import { PAGE_TYPES as l, ACADEMY_LINK as w, UNSUBSCRIBE_PAGES_LINK as P, TYPE_TRANSLATIONS as R } from "../../../enums/unsubscribe.js";
|
|
7
|
-
import { useUnsubscribeStore as D } from "../../../stores/unsubscribe.js";
|
|
8
|
-
import { InSegments as I } from "@useinsider/design-system-vue";
|
|
9
|
-
const z = /* @__PURE__ */ h({
|
|
10
|
-
__name: "UnsubscribeTypeSelection",
|
|
11
|
-
setup(G) {
|
|
12
|
-
const e = N(), { showToaster: f } = B(), t = D(), n = b(!1), i = b(!0), o = b(l.GLOBAL_UNSUBSCRIBE), S = e(
|
|
13
|
-
"unsubscription-preference.select-unsubscribe-page-description",
|
|
14
|
-
{ action: `<a href="${w}" target="_blank">${e("ds-rules.visit-academy")}</a>` }
|
|
15
|
-
), T = m(() => [
|
|
16
|
-
{
|
|
17
|
-
description: e("unsubscription-preference.type-global-unsubscribe-description"),
|
|
18
|
-
icon: "line-contact-global-unsub-page",
|
|
19
|
-
text: e("unsubscription-preference.type-global-unsubscribe"),
|
|
20
|
-
value: l.GLOBAL_UNSUBSCRIBE,
|
|
21
|
-
disable: t.isGlobalUnsubscribeDisabled,
|
|
22
|
-
position: "bottom",
|
|
23
|
-
tooltipText: t.isGlobalUnsubscribeDisabled ? e("unsubscription-preference.global-unsub-added") : ""
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
description: e("unsubscription-preference.type-subscription-preferences-center-description"),
|
|
27
|
-
icon: "line-contact-sub-pref-center-page",
|
|
28
|
-
text: e("unsubscription-preference.type-subscription-preferences-center"),
|
|
29
|
-
value: l.SUBSCRIPTION_PREFERENCE_CENTER,
|
|
30
|
-
disable: t.isSubscriptionPreferencesCenterDisabled,
|
|
31
|
-
tooltipText: t.isSubscriptionPreferencesCenterDisabled ? e("unsubscription-preference.pref-center-added") : ""
|
|
32
|
-
}
|
|
33
|
-
]), y = m(() => ({
|
|
34
|
-
primaryButton: {
|
|
35
|
-
styling: "solid",
|
|
36
|
-
type: "primary",
|
|
37
|
-
labelText: e(
|
|
38
|
-
n.value ? "unsubscription-preference.selecting-type" : "products.select-and-continue"
|
|
39
|
-
),
|
|
40
|
-
loadingStatus: n.value,
|
|
41
|
-
disabledStatus: !1,
|
|
42
|
-
skeletonStatus: i.value,
|
|
43
|
-
skeletonSizing: { width: 168, height: 40 }
|
|
44
|
-
},
|
|
45
|
-
cancelOrBackButton: {
|
|
46
|
-
styling: "ghost",
|
|
47
|
-
type: "secondary",
|
|
48
|
-
labelText: e("products.cancel"),
|
|
49
|
-
disabledStatus: n.value,
|
|
50
|
-
skeletonStatus: i.value,
|
|
51
|
-
skeletonSizing: { width: 78, height: 40 }
|
|
52
|
-
}
|
|
53
|
-
})), d = (s) => {
|
|
54
|
-
t.typeSelectionDrawerStatus = !1, document.dispatchEvent(new CustomEvent("unsubscribe:cancel")), s && setTimeout(() => {
|
|
55
|
-
s();
|
|
56
|
-
}, 500);
|
|
57
|
-
}, E = (s) => {
|
|
58
|
-
o.value = s;
|
|
59
|
-
}, g = () => {
|
|
60
|
-
const s = t.hasTemplatesByCollectionType, r = [];
|
|
61
|
-
if (Object.entries(s).forEach(([c, p]) => {
|
|
62
|
-
p || r.push(Number(c));
|
|
63
|
-
}), r.length === 0)
|
|
64
|
-
return !0;
|
|
65
|
-
const a = r.map((c) => R[c]);
|
|
66
|
-
let u = "";
|
|
67
|
-
if (r.length === 1)
|
|
68
|
-
u = e("unsubscription-preference.create-page-to-continue", {
|
|
69
|
-
page: a[0]
|
|
70
|
-
});
|
|
71
|
-
else if (r.length === 2)
|
|
72
|
-
u = e("unsubscription-preference.create-pages-to-continue", {
|
|
73
|
-
page1: a[0],
|
|
74
|
-
page2: a[1]
|
|
75
|
-
});
|
|
76
|
-
else {
|
|
77
|
-
const c = a.pop() ?? "", p = a.join(", ");
|
|
78
|
-
u = e("unsubscription-preference.create-multiple-pages-to-continue", {
|
|
79
|
-
pages: p,
|
|
80
|
-
lastPage: c
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
return f({
|
|
84
|
-
type: U.Warning,
|
|
85
|
-
message: u,
|
|
86
|
-
actionButton: {
|
|
87
|
-
text: "Go to Unsubscribe Pages",
|
|
88
|
-
onClick: () => {
|
|
89
|
-
window.location.href = P;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}), !1;
|
|
93
|
-
}, C = async () => {
|
|
94
|
-
if (n.value = !0, await t.fetchTemplates(), t.setCollection(o.value), !g()) {
|
|
95
|
-
n.value = !1, d();
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
n.value = !1, t.typeSelectionDrawerStatus = !1, t.pageSelectionDrawerStatus = !0;
|
|
99
|
-
};
|
|
100
|
-
return _(() => t.typeSelectionDrawerStatus, (s) => {
|
|
101
|
-
s && (i.value = !0, o.value = l.GLOBAL_UNSUBSCRIBE, t.isGlobalUnsubscribeDisabled && (o.value = t.isSubscriptionPreferencesCenterDisabled ? 0 : l.SUBSCRIPTION_PREFERENCE_CENTER), i.value = !1);
|
|
102
|
-
}), { __sfc: !0, trans: e, showToaster: f, unsubscribeStore: t, isSelecting: n, skeletonStatus: i, selectedCollection: o, descriptionText: S, segmentList: T, footerButtonGroupOptions: y, closeModal: d, changeCollection: E, validateTemplates: g, selectCollection: C, WpDrawer: v, InSegments: I };
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
export {
|
|
106
|
-
z as default
|
|
107
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import o from "./UnsubscribeWrapper.vue2.js";
|
|
2
|
-
import t from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var _ = function() {
|
|
4
|
-
var s;
|
|
5
|
-
var e = this, n = e._self._c, r = e._self._setupProxy;
|
|
6
|
-
return (s = r.config.extensions) != null && s.unsubscribe ? n("div", [n(r.UnsubscribeTypeSelection), n(r.UnsubscribePageSelection)], 1) : e._e();
|
|
7
|
-
}, c = [], i = /* @__PURE__ */ t(
|
|
8
|
-
o,
|
|
9
|
-
_,
|
|
10
|
-
c,
|
|
11
|
-
!1,
|
|
12
|
-
null,
|
|
13
|
-
null
|
|
14
|
-
);
|
|
15
|
-
const l = i.exports;
|
|
16
|
-
export {
|
|
17
|
-
l as default
|
|
18
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { defineComponent as t, defineAsyncComponent as e } from "vue";
|
|
2
|
-
import { useConfig as r } from "../../../composables/useConfig.js";
|
|
3
|
-
const m = /* @__PURE__ */ t({
|
|
4
|
-
__name: "UnsubscribeWrapper",
|
|
5
|
-
setup(i) {
|
|
6
|
-
const n = e(() => import("./UnsubscribePageSelection.vue.js")), o = e(() => import("./UnsubscribeTypeSelection.vue.js")), { config: s } = r();
|
|
7
|
-
return { __sfc: !0, UnsubscribePageSelection: n, UnsubscribeTypeSelection: o, config: s };
|
|
8
|
-
}
|
|
9
|
-
});
|
|
10
|
-
export {
|
|
11
|
-
m as default
|
|
12
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
var k = Object.defineProperty;
|
|
2
|
-
var m = (o, t, e) => t in o ? k(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
-
var x = (o, t, e) => m(o, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import h from "../../extensions/Blocks/CouponBlock/template.js";
|
|
5
|
-
class y {
|
|
6
|
-
constructor() {
|
|
7
|
-
x(this, "parser");
|
|
8
|
-
this.parser = new DOMParser();
|
|
9
|
-
}
|
|
10
|
-
migrate(t) {
|
|
11
|
-
try {
|
|
12
|
-
const e = this.parser.parseFromString(t, "text/html"), n = e.querySelectorAll("td.coupon-block.ins-coupon-code:not([esd-extension-block-id])");
|
|
13
|
-
return n.length === 0 ? t : (n.forEach((s) => {
|
|
14
|
-
const i = this.extractText(s), c = this.extractAttributes(s), l = h.replace("{@COUPON_CODE}", i).replace(
|
|
15
|
-
'class="coupon-block coupon-block-v2 ins-coupon-code esd-block-text esd-extension-block"',
|
|
16
|
-
c.class
|
|
17
|
-
).replace(
|
|
18
|
-
'esd-extension-block-id="coupon-block"',
|
|
19
|
-
`esd-extension-block-id="coupon-block"${c.block}`
|
|
20
|
-
).replace(
|
|
21
|
-
'<p class="ins-title"',
|
|
22
|
-
`<p class="ins-title"${c.text}`
|
|
23
|
-
);
|
|
24
|
-
s.outerHTML = l;
|
|
25
|
-
}), e.documentElement.outerHTML);
|
|
26
|
-
} catch (e) {
|
|
27
|
-
return console.error("CouponBlockMigrator failed:", e), t;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
extractText(t) {
|
|
31
|
-
var g;
|
|
32
|
-
const e = t.querySelector(".ins-title");
|
|
33
|
-
if (!e)
|
|
34
|
-
return "{@COUPON_CODE}";
|
|
35
|
-
const n = ((g = e.textContent) == null ? void 0 : g.trim()) || "{@COUPON_CODE}", s = e.getAttribute("style") || "", i = /font-weight\s*:\s*bold/i.test(s), c = /font-style\s*:\s*italic/i.test(s), l = /text-decoration[^;]*underline/i.test(s), u = /text-decoration[^;]*line-through/i.test(s), a = /vertical-align\s*:\s*sub/i.test(s), p = /vertical-align\s*:\s*super/i.test(s);
|
|
36
|
-
return [
|
|
37
|
-
[i, "strong"],
|
|
38
|
-
[c, "em"],
|
|
39
|
-
[l, "u"],
|
|
40
|
-
[u, "s"],
|
|
41
|
-
[a, "sub"],
|
|
42
|
-
[p, "sup"]
|
|
43
|
-
].reduce((b, [f, d]) => f ? `<${d}>${b}</${d}>` : b, n);
|
|
44
|
-
}
|
|
45
|
-
extractAttributes(t) {
|
|
46
|
-
const e = t.querySelector(".ins-title"), n = t.className.split(" ").filter((r) => r.startsWith("es-")), s = t.getAttribute("align"), i = t.getAttribute("bgcolor"), c = t.getAttribute("style"), l = e == null ? void 0 : e.getAttribute("style");
|
|
47
|
-
let u = 'class="coupon-block coupon-block-v2 ins-coupon-code esd-block-text esd-extension-block';
|
|
48
|
-
n.length && (u += ` ${n.join(" ")}`), u += '"';
|
|
49
|
-
let a = "";
|
|
50
|
-
if (s && (a += ` align="${s}"`), i && (a += ` bgcolor="${i}"`), c) {
|
|
51
|
-
const r = c.replace(/background-color[^;]+;?/gi, "").replace(/;+/g, ";").trim();
|
|
52
|
-
r && (a += ` style="${r.replace(/"/g, "'")}"`);
|
|
53
|
-
}
|
|
54
|
-
let p = "";
|
|
55
|
-
if (l) {
|
|
56
|
-
const r = l.replace(/"/g, '"').replace(/font-weight\s*:\s*[^;]+;?/gi, "").replace(/font-style\s*:\s*[^;]+;?/gi, "").replace(/text-decoration\s*:\s*[^;]+;?/gi, "").replace(/vertical-align\s*:\s*[^;]+;?/gi, "").replace(/;+/g, ";").replace(/^;|;$/g, "").trim().replace(/"/g, "'");
|
|
57
|
-
r && (p = ` style="${r}"`);
|
|
58
|
-
}
|
|
59
|
-
return { class: u, block: a, text: p };
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function C(o) {
|
|
63
|
-
return new y().migrate(o);
|
|
64
|
-
}
|
|
65
|
-
export {
|
|
66
|
-
C as migrateCouponBlock
|
|
67
|
-
};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
var h = Object.defineProperty;
|
|
2
|
-
var x = (l, e, t) => e in l ? h(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
|
|
3
|
-
var S = (l, e, t) => x(l, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { MERGE_TAGS as k, PAGE_TYPES as p } from "../../enums/unsubscribe.js";
|
|
5
|
-
import { DATA_ATTRIBUTES as A } from "../../extensions/Blocks/Unsubscribe/utils/constants.js";
|
|
6
|
-
import { useUnsubscribeStore as T } from "../../stores/unsubscribe.js";
|
|
7
|
-
class C {
|
|
8
|
-
constructor() {
|
|
9
|
-
S(this, "parser");
|
|
10
|
-
this.parser = new DOMParser();
|
|
11
|
-
}
|
|
12
|
-
async migrate(e) {
|
|
13
|
-
try {
|
|
14
|
-
const t = this.parser.parseFromString(e, "text/html"), i = t.querySelectorAll("td.unsubscribe-block");
|
|
15
|
-
if (!i.length)
|
|
16
|
-
return e;
|
|
17
|
-
const o = T();
|
|
18
|
-
return await o.fetchTemplates(), i.forEach((r) => {
|
|
19
|
-
const c = r.getAttribute("id"), g = this.extractPaddingClass(r), u = r.getAttribute("bgcolor") || "", n = this.extractUnsubscribeContent(r), s = this.getCollectionTypeFromMergeTag(n.linkHref), b = o.getSelectedUnsubscribePagesByCollection(s);
|
|
20
|
-
console.debug("[UnsubscribeMigrator]", {
|
|
21
|
-
mergeTag: n.linkHref,
|
|
22
|
-
collectionType: s,
|
|
23
|
-
pageIds: b,
|
|
24
|
-
paddingClass: g,
|
|
25
|
-
bgColor: u
|
|
26
|
-
});
|
|
27
|
-
const f = this.buildUnsubscribeBlock(
|
|
28
|
-
n,
|
|
29
|
-
s,
|
|
30
|
-
b,
|
|
31
|
-
g,
|
|
32
|
-
u
|
|
33
|
-
), a = this.parser.parseFromString(
|
|
34
|
-
`<table id="tempDoc"><tbody><tr>${f}</tr></tbody></table>`,
|
|
35
|
-
"text/html"
|
|
36
|
-
).querySelector(".unsubscribe-block-v2");
|
|
37
|
-
a && r.parentNode && (a.setAttribute("id", c || ""), r.parentNode.replaceChild(a, r));
|
|
38
|
-
}), t.documentElement.outerHTML;
|
|
39
|
-
} catch (t) {
|
|
40
|
-
return console.error("UnsubscribeMigrator failed:", t), e;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
extractPaddingClass(e) {
|
|
44
|
-
const i = (e.getAttribute("class") || "").match(/\bes-p\d+\b/);
|
|
45
|
-
return i ? i[0] : "";
|
|
46
|
-
}
|
|
47
|
-
extractUnsubscribeContent(e) {
|
|
48
|
-
var m;
|
|
49
|
-
const t = e.querySelector("p");
|
|
50
|
-
if (!t)
|
|
51
|
-
return {
|
|
52
|
-
textBefore: "You can ",
|
|
53
|
-
linkText: "unsubscribe",
|
|
54
|
-
linkHref: "{{ins-unsubscribe-link}}",
|
|
55
|
-
linkStyle: "",
|
|
56
|
-
textAfter: " from our emails, if you need to.",
|
|
57
|
-
isBold: !1,
|
|
58
|
-
isItalic: !1,
|
|
59
|
-
align: "center",
|
|
60
|
-
paragraphStyle: ""
|
|
61
|
-
};
|
|
62
|
-
const i = e.getAttribute("align") || t.getAttribute("align") || "center", o = t.getAttribute("style") || "", r = t.querySelector("a.unsubscribe-link") || t.querySelector('a[href*="unsubscribe"]');
|
|
63
|
-
if (!r)
|
|
64
|
-
return {
|
|
65
|
-
textBefore: "You can ",
|
|
66
|
-
linkText: "unsubscribe",
|
|
67
|
-
linkHref: "{{ins-unsubscribe-link}}",
|
|
68
|
-
linkStyle: "",
|
|
69
|
-
textAfter: " from our emails, if you need to.",
|
|
70
|
-
isBold: !1,
|
|
71
|
-
isItalic: !1,
|
|
72
|
-
align: i,
|
|
73
|
-
paragraphStyle: o
|
|
74
|
-
};
|
|
75
|
-
const c = ((m = r.textContent) == null ? void 0 : m.trim()) || "unsubscribe", g = r.getAttribute("href") || "{{ins-unsubscribe-link}}", u = r.getAttribute("style") || "", n = t.textContent || "", s = n.indexOf(c), b = s >= 0 ? n.substring(0, s).trim() : "You can ", f = s >= 0 ? n.substring(s + c.length).trim() : " from our emails, if you need to.", d = !!t.querySelector("b, strong"), a = !!t.querySelector("i, em");
|
|
76
|
-
return {
|
|
77
|
-
textBefore: b,
|
|
78
|
-
linkText: c,
|
|
79
|
-
linkHref: this.normalizeUnsubscribeHref(g),
|
|
80
|
-
linkStyle: u,
|
|
81
|
-
textAfter: f,
|
|
82
|
-
isBold: d,
|
|
83
|
-
isItalic: a,
|
|
84
|
-
align: i,
|
|
85
|
-
paragraphStyle: o
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
buildUnsubscribeBlock(e, t, i, o, r) {
|
|
89
|
-
const c = e.linkStyle ? ` style="${e.linkStyle}"` : "", u = `<a ${`href="${e.linkHref}" class="unsubscribe-link" target="_blank" data-unsubscribe-link="true"`}${c}>${e.linkText}</a>`, n = [];
|
|
90
|
-
e.textBefore && n.push(e.textBefore), n.push(u), e.textAfter && n.push(e.textAfter);
|
|
91
|
-
let s = n.join(" ");
|
|
92
|
-
e.isBold && e.isItalic ? s = `<strong path="1,0"><em path="1,0,0">${s}</em></strong>` : e.isBold ? s = `<strong path="1,0">${s}</strong>` : e.isItalic && (s = `<em path="1,0">${s}</em>`);
|
|
93
|
-
const b = e.align ? ` align="${e.align}"` : "", f = r ? ` bgcolor="${r}"` : "", d = e.paragraphStyle ? ` style="${e.paragraphStyle}"` : "", a = i.length > 0 ? ` ${A.PAGE_LIST}="${i.join(",")}"` : "", m = ` ${A.PAGE_TYPE}="${t}"`, y = "esd-block-text unsubscribe-block-v2 esd-block-unsubscribe esd-unsubscribe-block esd-extension-block";
|
|
94
|
-
return `
|
|
95
|
-
<td
|
|
96
|
-
data-migration="true"
|
|
97
|
-
esd-extension-block-id="unsubscribe-block"
|
|
98
|
-
class="${o ? `${y} ${o}` : y}"
|
|
99
|
-
${b}${f}${m}${a}
|
|
100
|
-
>
|
|
101
|
-
<p path="1"${d}>
|
|
102
|
-
${s}
|
|
103
|
-
</p>
|
|
104
|
-
</td>
|
|
105
|
-
`;
|
|
106
|
-
}
|
|
107
|
-
getCollectionTypeFromMergeTag(e) {
|
|
108
|
-
return e === k[p.SUBSCRIPTION_PREFERENCE_CENTER] ? p.SUBSCRIPTION_PREFERENCE_CENTER : e === k[p.GLOBAL_UNSUBSCRIBE] ? p.GLOBAL_UNSUBSCRIBE : p.GLOBAL_UNSUBSCRIBE;
|
|
109
|
-
}
|
|
110
|
-
normalizeUnsubscribeHref(e) {
|
|
111
|
-
if (Object.values(k).includes(e))
|
|
112
|
-
return e;
|
|
113
|
-
const i = e.match(/{{ins-(?:global-)?(?:preferences-)?unsubscribe-link}}/);
|
|
114
|
-
return i ? i[0] : e.includes("unsubscribe") || e.includes("unsub") ? (console.warn(
|
|
115
|
-
`[UnsubscribeMigrator] Unrecognized unsubscribe href format: "${e}". Defaulting to {{ins-unsubscribe-link}}`
|
|
116
|
-
), "{{ins-unsubscribe-link}}") : e;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
async function M(l) {
|
|
120
|
-
return new C().migrate(l);
|
|
121
|
-
}
|
|
122
|
-
export {
|
|
123
|
-
M as migrateUnsubscribe
|
|
124
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
const s = {
|
|
2
|
-
RECOMMENDATION_API_URL: "http://recommendationv2.api.useinsider.com"
|
|
3
|
-
}, i = [
|
|
4
|
-
{ id: 11, key: "similarViewed", name: "Viewed Together", path: "viewed-together" },
|
|
5
|
-
{ id: 12, key: "similarBought", name: "Purchased Together", path: "purchased-together" },
|
|
6
|
-
{ id: 13, key: "userBased", name: "User Based", path: "user-based" },
|
|
7
|
-
{ id: 36, key: "highestDiscounted", name: "Highest Discounted Items", path: "highest-discounted" },
|
|
8
|
-
{ id: 38, key: "manualMerchandising", name: "Manual Merchandising", path: "manual-merchandising" },
|
|
9
|
-
{ id: 39, key: "newArrivals", name: "New Arrivals", path: "new-arrivals" },
|
|
10
|
-
{ id: 40, key: "trendingProducts", name: "Trending Products", path: "trending" },
|
|
11
|
-
{ id: 46, key: "mostValuableOfPartner", name: "Most Valuable Products", path: "most-valuable" },
|
|
12
|
-
{ id: 61, key: "mostPopular", name: "Most Popular Items", path: "most-popular" },
|
|
13
|
-
{ id: 62, key: "mostPurchased", name: "Top Sellers", path: "top-sellers" }
|
|
14
|
-
], u = ["discount", "omnibus_price", "omnibus_discount", "price", "original_price"], l = [
|
|
15
|
-
{ text: "before the amount", value: "0" },
|
|
16
|
-
{ text: "after the amount", value: "1" }
|
|
17
|
-
], c = [
|
|
18
|
-
{ text: "dot(.)", value: "." },
|
|
19
|
-
{ text: "comma(,)", value: "," }
|
|
20
|
-
], d = [
|
|
21
|
-
{ text: "0", value: "0" },
|
|
22
|
-
{ text: "1", value: "1" },
|
|
23
|
-
{ text: "2", value: "2" },
|
|
24
|
-
{ text: "3", value: "3" },
|
|
25
|
-
{ text: "4", value: "4" },
|
|
26
|
-
{ text: "5", value: "5" }
|
|
27
|
-
], e = [
|
|
28
|
-
{ text: "is exactly", value: "=" },
|
|
29
|
-
{ text: "contains", value: "~" },
|
|
30
|
-
{ text: "does not contain", value: "!~" },
|
|
31
|
-
{ text: "any of", value: "||" }
|
|
32
|
-
], a = [
|
|
33
|
-
{ text: "is exactly", value: "=" },
|
|
34
|
-
{ text: "is not exactly", value: "!==" },
|
|
35
|
-
{ text: "contains", value: "~" },
|
|
36
|
-
{ text: "does not contain", value: "!~" },
|
|
37
|
-
{ text: "any of", value: "||" }
|
|
38
|
-
], r = [
|
|
39
|
-
{ text: "is equal to", value: "=" },
|
|
40
|
-
{ text: "is greater than", value: ">" },
|
|
41
|
-
{ text: "is less than", value: "<" }
|
|
42
|
-
], o = [
|
|
43
|
-
{ text: "is equal to", value: "=" },
|
|
44
|
-
{ text: "after", value: ">" },
|
|
45
|
-
{ text: "before", value: "<" }
|
|
46
|
-
], n = [
|
|
47
|
-
{ text: "true", value: "==" },
|
|
48
|
-
{ text: "false", value: "!=" }
|
|
49
|
-
], p = (t) => {
|
|
50
|
-
if (!t)
|
|
51
|
-
return e;
|
|
52
|
-
switch (t) {
|
|
53
|
-
case "Boolean":
|
|
54
|
-
return n;
|
|
55
|
-
case "Date":
|
|
56
|
-
return o;
|
|
57
|
-
case "Number":
|
|
58
|
-
return r;
|
|
59
|
-
case "String":
|
|
60
|
-
return e;
|
|
61
|
-
case "Strings":
|
|
62
|
-
return a;
|
|
63
|
-
default:
|
|
64
|
-
return e;
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
export {
|
|
68
|
-
u as PriceAttributes,
|
|
69
|
-
i as RecommendationFeedSourceMaps,
|
|
70
|
-
s as URLS,
|
|
71
|
-
d as currencyDecimalCounts,
|
|
72
|
-
l as currencyLocationMaps,
|
|
73
|
-
c as currencyOperators,
|
|
74
|
-
p as getOperatorOptions,
|
|
75
|
-
a as operatorOptionsForArrayOfStrings,
|
|
76
|
-
n as operatorOptionsForBooleans,
|
|
77
|
-
o as operatorOptionsForDates,
|
|
78
|
-
r as operatorOptionsForNumbers,
|
|
79
|
-
e as operatorOptionsForStrings
|
|
80
|
-
};
|