{"version":3,"sources":["vendor/ember-cli/app-prefix.js","additive-mc/adapters/-json-api.js","additive-mc/adapters/ad-campaign.js","additive-mc/adapters/advertisement.js","additive-mc/adapters/application.js","additive-mc/adapters/collection.js","additive-mc/adapters/depiction.js","additive-mc/adapters/email-campaign-contribution.js","additive-mc/adapters/email-campaign-landingpage.js","additive-mc/adapters/email-campaign-voucher.js","additive-mc/adapters/email-campaign.js","additive-mc/adapters/email-preview.js","additive-mc/adapters/email-series.js","additive-mc/adapters/email.js","additive-mc/adapters/extension.js","additive-mc/adapters/folder.js","additive-mc/adapters/keyword.js","additive-mc/adapters/medium.js","additive-mc/adapters/on-page-campaign.js","additive-mc/adapters/on-page-content.js","additive-mc/adapters/organization-campaign.js","additive-mc/adapters/organization.js","additive-mc/adapters/search-ad-campaign.js","additive-mc/adapters/search-ad-template.js","additive-mc/adapters/subscriber.js","additive-mc/adapters/target-group.js","additive-mc/adapters/trigger-email-campaign-contribution.js","additive-mc/adapters/trigger-email-campaign-email-series.js","additive-mc/adapters/trigger-email-campaign-email.js","additive-mc/adapters/trigger-email-campaign.js","additive-mc/adapters/trigger-email.js","additive-mc/adapters/widget.js","additive-mc/app.js","additive-mc/authenticators/authorization-code-grant.js","additive-mc/classes/query-parameters.js","additive-mc/component-managers/glimmer.js","additive-mc/components/-dynamic-element-alt.js","additive-mc/components/-dynamic-element.js","additive-mc/components/ae-configurations.js","additive-mc/components/ae-configurations/apps/accommodations.js","additive-mc/components/ae-configurations/apps/custom-link.js","additive-mc/components/ae-configurations/apps/enquiry-channel.js","additive-mc/components/ae-configurations/apps/enquiry-establishments.js","additive-mc/components/ae-configurations/apps/journal-post.js","additive-mc/components/ae-configurations/apps/journal-widget.js","additive-mc/components/ae-configurations/apps/newsletter-widget.js","additive-mc/components/ae-configurations/apps/offer.js","additive-mc/components/ae-configurations/apps/survey.js","additive-mc/components/ae-configurations/apps/voucher-widget.js","additive-mc/components/ae-configurations/apps/voucher.js","additive-mc/components/ae-configurations/code.js","additive-mc/components/ae-configurations/color.js","additive-mc/components/ae-configurations/content-categories.js","additive-mc/components/ae-configurations/contents.js","additive-mc/components/ae-configurations/date-ranges.js","additive-mc/components/ae-configurations/image.js","additive-mc/components/ae-configurations/images.js","additive-mc/components/ae-configurations/item.js","additive-mc/components/ae-configurations/media-gallery.js","additive-mc/components/ae-configurations/typography.js","additive-mc/components/amc-campaign/ads/advertisement-detail.js","additive-mc/components/amc-campaign/ads/advertisements/create-dialog.js","additive-mc/components/amc-campaign/ads/advertisements/depiction-detail/nested-multiselect.js","additive-mc/components/amc-campaign/ads/advertisements/depiction-detail/nested-multiselect/select-option.js","additive-mc/components/amc-campaign/ads/advertisements/depiction-preview.js","additive-mc/components/amc-campaign/ads/advertisements/depiction-select-dialog.js","additive-mc/components/amc-campaign/ads/advertisements/depiction-update-dialog.js","additive-mc/components/amc-campaign/ads/advertisements/depiction-variants.js","additive-mc/components/amc-campaign/ads/advertisements/publish-dialog.js","additive-mc/components/amc-campaign/ads/advertisements/publish-dialog/item.js","additive-mc/components/amc-campaign/ads/advertisements/target-group-update-dialog.js","additive-mc/components/amc-campaign/ads/configuration.js","additive-mc/components/amc-campaign/ads/configurations-navdrawer.js","additive-mc/components/amc-campaign/ads/create-dialog.js","additive-mc/components/amc-campaign/ads/detail-wrapper.js","additive-mc/components/amc-campaign/ads/general-settings-navdrawer.js","additive-mc/components/amc-campaign/ads/lead-preview.js","additive-mc/components/amc-campaign/ads/list-info-item.js","additive-mc/components/amc-campaign/ads/list-view.js","additive-mc/components/amc-campaign/ads/list.js","additive-mc/components/amc-campaign/ads/preview.js","additive-mc/components/amc-campaign/ads/text-detail.js","additive-mc/components/amc-campaign/ads/tik-tok-target-groups-modal.js","additive-mc/components/amc-campaign/ads/tik-tok-target-groups-modal/setting-block.js","additive-mc/components/amc-campaign/category-card.js","additive-mc/components/amc-campaign/configuration-item.js","additive-mc/components/amc-campaign/configuration-item/-multilingual-text.js","additive-mc/components/amc-campaign/configuration-item/array.js","additive-mc/components/amc-campaign/configuration-item/boolean.js","additive-mc/components/amc-campaign/configuration-item/datetime.js","additive-mc/components/amc-campaign/configuration-item/delivery-time.js","additive-mc/components/amc-campaign/configuration-item/master-details-multiselect.js","additive-mc/components/amc-campaign/configuration-item/money.js","additive-mc/components/amc-campaign/configuration-item/multilingual-link.js","additive-mc/components/amc-campaign/configuration-item/multilingual-text.js","additive-mc/components/amc-campaign/configuration-item/multilingual-texts.js","additive-mc/components/amc-campaign/configuration-item/multimedia.js","additive-mc/components/amc-campaign/configuration-item/multiselect.js","additive-mc/components/amc-campaign/configuration-item/number.js","additive-mc/components/amc-campaign/configuration-item/percentage-distribution.js","additive-mc/components/amc-campaign/configuration-item/select.js","additive-mc/components/amc-campaign/configuration-item/text.js","additive-mc/components/amc-campaign/configuration-item/time.js","additive-mc/components/amc-campaign/configuration-item/timespan.js","additive-mc/components/amc-campaign/configuration-item/utm-parameter.js","additive-mc/components/amc-campaign/configuration-item/widget-display-variant.js","additive-mc/components/amc-campaign/configuration-item/widget-trigger-event.js","additive-mc/components/amc-campaign/configuration-item/with-modal.js","additive-mc/components/amc-campaign/configuration-item/yeardate.js","additive-mc/components/amc-campaign/create-email-campaign-dialog.js","additive-mc/components/amc-campaign/detail-header.js","additive-mc/components/amc-campaign/email-campaign/configuration-item/array.js","additive-mc/components/amc-campaign/email-campaign/configuration-item/boolean.js","additive-mc/components/amc-campaign/email-campaign/configuration-item/number.js","additive-mc/components/amc-campaign/email-campaign/configuration-item/parametrized-string.js","additive-mc/components/amc-campaign/email-campaign/configuration-item/text.js","additive-mc/components/amc-campaign/email-campaign/configuration-item/timespan.js","additive-mc/components/amc-campaign/email-campaign/configuration-item/yeardate.js","additive-mc/components/amc-campaign/email-campaign/create-dialog.js","additive-mc/components/amc-campaign/email-campaign/detail-view.js","additive-mc/components/amc-campaign/email-campaign/email-dialog.js","additive-mc/components/amc-campaign/email-campaign/email-dialog/referral.js","additive-mc/components/amc-campaign/email-campaign/email-dialog/survey.js","additive-mc/components/amc-campaign/email-campaign/email-list.js","additive-mc/components/amc-campaign/email-campaign/email-series-dialog.js","additive-mc/components/amc-campaign/email-campaign/email-series-preview.js","additive-mc/components/amc-campaign/email-campaign/email-series-table.js","additive-mc/components/amc-campaign/email-campaign/information-drawer.js","additive-mc/components/amc-campaign/email-campaign/preview.js","additive-mc/components/amc-campaign/email-campaign/publish-dialog.js","additive-mc/components/amc-campaign/email-campaign/publish-dialog/changes-list.js","additive-mc/components/amc-campaign/email-campaign/publish-dialog/dependency-check.js","additive-mc/components/amc-campaign/email-campaign/publish-dialog/schedule-settings.js","additive-mc/components/amc-campaign/email-campaign/trigger.js","additive-mc/components/amc-campaign/info-item.js","additive-mc/components/amc-campaign/on-page/content-dialog.js","additive-mc/components/amc-campaign/on-page/create-dialog.js","additive-mc/components/amc-campaign/on-page/on-page-content-list.js","additive-mc/components/amc-campaign/on-page/set-campaign-name-dialog.js","additive-mc/components/amc-campaign/search-ad/ad-set-create-dialog.js","additive-mc/components/amc-campaign/search-ad/ad-set-preview.js","additive-mc/components/amc-campaign/search-ad/ads/create-dialog.js","additive-mc/components/amc-campaign/search-ad/ads/edit-dialog.js","additive-mc/components/amc-campaign/search-ad/ads/preview-item.js","additive-mc/components/amc-campaign/search-ad/create-dialog.js","additive-mc/components/amc-campaign/search-ad/extensions/create-dialog.js","additive-mc/components/amc-campaign/search-ad/extensions/list.js","additive-mc/components/amc-campaign/search-ad/pending-updates-dialog.js","additive-mc/components/amc-campaign/search-ad/pending-updates-dialog/item.js","additive-mc/components/amc-campaign/search-ad/pending-updates-dialog/list.js","additive-mc/components/amc-campaign/search-ad/target-groups/create-dialog.js","additive-mc/components/amc-campaign/test-email-dialog.js","additive-mc/components/amc-campaign/trigger-email-campaign/create-dialog.js","additive-mc/components/amc-campaign/trigger-email-campaign/detail-view.js","additive-mc/components/amc-campaign/trigger-email-campaign/information-drawer.js","additive-mc/components/amc-campaign/trigger-email-campaign/publish-dialog.js","additive-mc/components/amc-campaign/trigger-email-campaign/steps/configuration.js","additive-mc/components/amc-campaign/trigger-email-campaign/steps/contribution.js","additive-mc/components/amc-campaign/trigger-email-campaign/steps/emails.js","additive-mc/components/amc-campaign/trigger-email-campaign/steps/trigger.js","additive-mc/components/amc-campaign/voucher-dialog.js","additive-mc/components/amc-campaign/voucher-preview-dialog.js","additive-mc/components/amc-campaign/voucher-preview-iframe.js","additive-mc/components/amc-campaign/voucher.js","additive-mc/components/amc-dashboard/charts.js","additive-mc/components/amc-dashboard/key-indicators.js","additive-mc/components/amc-dashboard/progress-indicator.js","additive-mc/components/amc-dashboard/progress-indicators.js","additive-mc/components/amc-date-filter.js","additive-mc/components/amc-delete-model.js","additive-mc/components/amc-legals.js","additive-mc/components/amc-preview/email-preview.js","additive-mc/components/amc-preview/upcoming-emails-subscriber.js","additive-mc/components/amc-preview/upcoming-emails.js","additive-mc/components/amc-reports/ad-metrics.js","additive-mc/components/amc-reports/conversions.js","additive-mc/components/amc-reports/email-metrics.js","additive-mc/components/amc-reports/key-indicators.js","additive-mc/components/amc-reports/lead-performance-campaigns-insights.js","additive-mc/components/amc-reports/lead-performance-metrics.js","additive-mc/components/amc-reports/leads.js","additive-mc/components/amc-reports/on-page-metrics.js","additive-mc/components/amc-reports/past-marketing-actions.js","additive-mc/components/amc-reports/reservations.js","additive-mc/components/amc-reports/social-metrics.js","additive-mc/components/amc-reports/value-added.js","additive-mc/components/amc-route-card.js","additive-mc/components/amc-settings.js","additive-mc/components/amc-settings/birthday-voucher-link.js","additive-mc/components/amc-settings/facebook-connect.js","additive-mc/components/amc-settings/tik-tok-connect.js","additive-mc/components/amc-table-dialog.js","additive-mc/components/amc-toggle-activation.js","additive-mc/components/amc-url-preview.js","additive-mc/components/amc-widget-configuration/colors.js","additive-mc/components/amc-widget-configuration/general.js","additive-mc/components/amc-widget-dialog.js","additive-mc/components/animated-beacon.js","additive-mc/components/animated-container.js","additive-mc/components/animated-each.js","additive-mc/components/animated-if.js","additive-mc/components/animated-orphans.js","additive-mc/components/animated-value.js","additive-mc/components/aw-colors-menu.js","additive-mc/components/aw-configurator.js","additive-mc/components/aw-configurator/content-editor.js","additive-mc/components/aw-configurator/content-editor/sidebar-button.js","additive-mc/components/aw-configurator/content-editor/sidebar.js","additive-mc/components/aw-configurator/editor.js","additive-mc/components/aw-configurator/preview.js","additive-mc/components/aw-configurator/style-editor.js","additive-mc/components/aw-configurator/style-editor/sidebar-button.js","additive-mc/components/aw-configurator/style-editor/sidebar.js","additive-mc/components/aw-custom-colors-menu.js","additive-mc/components/aw-font-name-dialog.js","additive-mc/components/aw-typography-dialog.js","additive-mc/components/aw-typography-list.js","additive-mc/components/aw-typography-list/item.js","additive-mc/components/aw-typography-settings.js","additive-mc/components/basic-dropdown-content.js","additive-mc/components/basic-dropdown-trigger.js","additive-mc/components/basic-dropdown.js","additive-mc/components/ea-list-element.js","additive-mc/components/file-dropzone.js","additive-mc/components/file-upload.js","additive-mc/components/grid.js","additive-mc/components/link-to-external.js","additive-mc/components/maybe-in-element.js","additive-mc/components/mm-cropper-view.js","additive-mc/components/mm-cropper.js","additive-mc/components/mm-external-search.js","additive-mc/components/mm-external-search/image-list.js","additive-mc/components/mm-external-search/video-list.js","additive-mc/components/mm-folder-tree.js","additive-mc/components/mm-fullscreen-view.js","additive-mc/components/mm-image-transforms.js","additive-mc/components/mm-media-gallery.js","additive-mc/components/mm-media-gallery/header-left.js","additive-mc/components/mm-media-gallery/header-right.js","additive-mc/components/mm-medium-item.js","additive-mc/components/mm-medium-item/file-name.js","additive-mc/components/mm-medium-item/medium-container.js","additive-mc/components/mm-multimedia-overlay.js","additive-mc/components/mm-picture-tag.js","additive-mc/components/mm-poi.js","additive-mc/components/mm-poi/movable-container.js","additive-mc/components/mm-resource-gallery.js","additive-mc/components/mm-resource-gallery/attributes-dialog.js","additive-mc/components/mm-video.js","additive-mc/components/mm-youtube-video.js","additive-mc/components/panel-group.js","additive-mc/components/panel.js","additive-mc/components/power-calendar-multiple.js","additive-mc/components/power-calendar-multiple/days.js","additive-mc/components/power-calendar-range.js","additive-mc/components/power-calendar-range/days.js","additive-mc/components/power-calendar.js","additive-mc/components/power-calendar/days.js","additive-mc/components/power-calendar/nav.js","additive-mc/components/ui-accordion.js","additive-mc/components/ui-action-button.js","additive-mc/components/ui-additive-basic-dropdown.js","additive-mc/components/ui-ai-button.js","additive-mc/components/ui-application-navigation-drawer.js","additive-mc/components/ui-application-navigation-drawer/account-switch.js","additive-mc/components/ui-application-navigation-drawer/account-switch/wrapper.js","additive-mc/components/ui-application-navigation-drawer/apps-list.js","additive-mc/components/ui-application-navigation-drawer/menu-item.js","additive-mc/components/ui-application-navigation-drawer/user-button.js","additive-mc/components/ui-audit-log.js","additive-mc/components/ui-badge.js","additive-mc/components/ui-blank-template.js","additive-mc/components/ui-breadcrumbs.js","additive-mc/components/ui-button.js","additive-mc/components/ui-card.js","additive-mc/components/ui-card/footer/content/default.js","additive-mc/components/ui-card/footer/content/index.js","additive-mc/components/ui-card/footer/content/title.js","additive-mc/components/ui-card/footer/index.js","additive-mc/components/ui-card/footer/menu/index.js","additive-mc/components/ui-card/footer/menu/item.js","additive-mc/components/ui-card/footer/popover.js","additive-mc/components/ui-card/footer/status.js","additive-mc/components/ui-card/header/accessories.js","additive-mc/components/ui-card/header/accessories/drag-handle.js","additive-mc/components/ui-card/header/accessories/index.js","additive-mc/components/ui-card/header/content/iframe.js","additive-mc/components/ui-card/header/content/image.js","additive-mc/components/ui-card/header/content/index.js","additive-mc/components/ui-card/header/index.js","additive-mc/components/ui-card/index.js","additive-mc/components/ui-carousel.js","additive-mc/components/ui-carousel/container.js","additive-mc/components/ui-carousel/grow-container.js","additive-mc/components/ui-carousel/trigger.js","additive-mc/components/ui-category-card.js","additive-mc/components/ui-category-grid.js","additive-mc/components/ui-category-item.js","additive-mc/components/ui-chart-legend.js","additive-mc/components/ui-chart.js","additive-mc/components/ui-checkbox.js","additive-mc/components/ui-chip.js","additive-mc/components/ui-collapsible-table.js","additive-mc/components/ui-collapsible-table/head.js","additive-mc/components/ui-collapsible-table/head/row.js","additive-mc/components/ui-collapsible-table/head/row/column.js","additive-mc/components/ui-collapsible-table/row.js","additive-mc/components/ui-collapsible-table/row/first-column.js","additive-mc/components/ui-collapsible-table/row/tooltip.js","additive-mc/components/ui-collapsible-table/row/value-column.js","additive-mc/components/ui-collapsible-table/rows.js","additive-mc/components/ui-color-composition.js","additive-mc/components/ui-colored-tile.js","additive-mc/components/ui-comparison.js","additive-mc/components/ui-content-count.js","additive-mc/components/ui-content-hero.js","additive-mc/components/ui-content-info.js","additive-mc/components/ui-content-rating.js","additive-mc/components/ui-content-views.js","additive-mc/components/ui-content-views/center.js","additive-mc/components/ui-content-views/content.js","additive-mc/components/ui-content-wizard.js","additive-mc/components/ui-content-wizard/step-content.js","additive-mc/components/ui-content-wizard/step.js","additive-mc/components/ui-content.js","additive-mc/components/ui-control-panel-group.js","additive-mc/components/ui-control-panel.js","additive-mc/components/ui-create-content-dialog.js","additive-mc/components/ui-data-table.js","additive-mc/components/ui-date-filter.js","additive-mc/components/ui-datepicker.js","additive-mc/components/ui-datepicker/nav.js","additive-mc/components/ui-datetime-picker.js","additive-mc/components/ui-datetime-range-picker.js","additive-mc/components/ui-dd-sort.js","additive-mc/components/ui-dd-sort/item.js","additive-mc/components/ui-dialog-service.js","additive-mc/components/ui-discard-changes.js","additive-mc/components/ui-dom-hide.js","additive-mc/components/ui-dropzone.js","additive-mc/components/ui-editor-legacy.js","additive-mc/components/ui-editor.js","additive-mc/components/ui-editor/action-bar.js","additive-mc/components/ui-editor/action.js","additive-mc/components/ui-editor/custom-color-dialog.js","additive-mc/components/ui-editor/heading-actions.js","additive-mc/components/ui-editor/mobile-actions.js","additive-mc/components/ui-faq-dialog.js","additive-mc/components/ui-filter-inputs.js","additive-mc/components/ui-filter-inputs/date.js","additive-mc/components/ui-filter-inputs/daterange.js","additive-mc/components/ui-filter-inputs/group-label.js","additive-mc/components/ui-filter-inputs/inputs.js","additive-mc/components/ui-filter-inputs/multi.js","additive-mc/components/ui-filter-inputs/query.js","additive-mc/components/ui-filter-inputs/query/single.js","additive-mc/components/ui-filter-inputs/range.js","additive-mc/components/ui-filter-inputs/single.js","additive-mc/components/ui-filter-inputs/text.js","additive-mc/components/ui-filterable.js","additive-mc/components/ui-form-control.js","additive-mc/components/ui-form-dialog.js","additive-mc/components/ui-form-message.js","additive-mc/components/ui-form-view.js","additive-mc/components/ui-fullscreen-illustration.js","additive-mc/components/ui-icon-button.js","additive-mc/components/ui-info-item.js","additive-mc/components/ui-inline-edit.js","additive-mc/components/ui-inline-notification.js","additive-mc/components/ui-input-item.js","additive-mc/components/ui-input.js","additive-mc/components/ui-intro.js","additive-mc/components/ui-item-group.js","additive-mc/components/ui-item-menu.js","additive-mc/components/ui-item.js","additive-mc/components/ui-label.js","additive-mc/components/ui-lang-select.js","additive-mc/components/ui-language-tag.js","additive-mc/components/ui-list-item.js","additive-mc/components/ui-list-item/thumbnail.js","additive-mc/components/ui-list-view.js","additive-mc/components/ui-list.js","additive-mc/components/ui-loading-page.js","additive-mc/components/ui-loading.js","additive-mc/components/ui-menu-content-inner.js","additive-mc/components/ui-menu-content.js","additive-mc/components/ui-menu-item.js","additive-mc/components/ui-menu.js","additive-mc/components/ui-metric-item.js","additive-mc/components/ui-modal.js","additive-mc/components/ui-modal/content.js","additive-mc/components/ui-modal/footer.js","additive-mc/components/ui-modal/header.js","additive-mc/components/ui-modal/inner.js","additive-mc/components/ui-month-day-picker.js","additive-mc/components/ui-multi-form-control.js","additive-mc/components/ui-multi-form-control/input.js","additive-mc/components/ui-multilingual-modal.js","additive-mc/components/ui-multimedia.js","additive-mc/components/ui-navigation-bar-filterable.js","additive-mc/components/ui-navigation-bar.js","additive-mc/components/ui-navigation-drawer.js","additive-mc/components/ui-notification.js","additive-mc/components/ui-onboarding.js","additive-mc/components/ui-page-not-found.js","additive-mc/components/ui-pagination-arrow.js","additive-mc/components/ui-pagination-page-item.js","additive-mc/components/ui-pagination.js","additive-mc/components/ui-popover-trigger.js","additive-mc/components/ui-popover.js","additive-mc/components/ui-preview-dialog.js","additive-mc/components/ui-progress-bar.js","additive-mc/components/ui-property-watcher.js","additive-mc/components/ui-publish-resource.js","additive-mc/components/ui-pusher.js","additive-mc/components/ui-radio-button-group.js","additive-mc/components/ui-radio-button.js","additive-mc/components/ui-range-slider.js","additive-mc/components/ui-rating.js","additive-mc/components/ui-reports/card.js","additive-mc/components/ui-routable-tabs.js","additive-mc/components/ui-searchbar.js","additive-mc/components/ui-select-option.js","additive-mc/components/ui-select.js","additive-mc/components/ui-selectable-chip.js","additive-mc/components/ui-selectable.js","additive-mc/components/ui-selectable/content.js","additive-mc/components/ui-selectable/trigger.js","additive-mc/components/ui-selection-container.js","additive-mc/components/ui-selection-container/action-bar.js","additive-mc/components/ui-selection-container/actions.js","additive-mc/components/ui-skeleton-card.js","additive-mc/components/ui-skeleton.js","additive-mc/components/ui-slider.js","additive-mc/components/ui-status-badge.js","additive-mc/components/ui-status.js","additive-mc/components/ui-switch.js","additive-mc/components/ui-tab-item.js","additive-mc/components/ui-table.js","additive-mc/components/ui-table/body.js","additive-mc/components/ui-table/head-cell.js","additive-mc/components/ui-table/head.js","additive-mc/components/ui-table/row.js","additive-mc/components/ui-tabs-content.js","additive-mc/components/ui-tabs-header.js","additive-mc/components/ui-tabs-pane.js","additive-mc/components/ui-tags-input-modal.js","additive-mc/components/ui-tags-input.js","additive-mc/components/ui-tags.js","additive-mc/components/ui-timepicker.js","additive-mc/components/ui-toast-container.js","additive-mc/components/ui-toast.js","additive-mc/components/ui-toggle-group.js","additive-mc/components/ui-toggle-group/item.js","additive-mc/components/ui-toolbar.js","additive-mc/components/ui-view-modes.js","additive-mc/components/ui-view-modes/content.js","additive-mc/components/ui-view-modes/toggle.js","additive-mc/components/ui-when.js","additive-mc/components/widget-config-group.js","additive-mc/config/asset-manifest.js","additive-mc/controllers/application.js","additive-mc/controllers/auth/callback.js","additive-mc/controllers/instance.js","additive-mc/controllers/instance/auditlog.js","additive-mc/controllers/instance/campaigns/ad/content-ads/depictions.js","additive-mc/controllers/instance/campaigns/ad/index.js","additive-mc/controllers/instance/campaigns/ad/lead-ads.js","additive-mc/controllers/instance/campaigns/ad/lead-ads/lead-ad.js","additive-mc/controllers/instance/campaigns/ad/lead-ads/lead-ad/edit.js","additive-mc/controllers/instance/campaigns/ad/tiktok-lead-ads.js","additive-mc/controllers/instance/campaigns/ad/tiktok-lead-ads/depictions.js","additive-mc/controllers/instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction.js","additive-mc/controllers/instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction/edit.js","additive-mc/controllers/instance/campaigns/ad/tiktok-lead-ads/index.js","additive-mc/controllers/instance/campaigns/ad/tiktok-lead-ads/index/lead-ad.js","additive-mc/controllers/instance/campaigns/ad/tiktok-lead-ads/index/lead-ad/edit.js","additive-mc/controllers/instance/campaigns/email.js","additive-mc/controllers/instance/campaigns/email/detail.js","additive-mc/controllers/instance/campaigns/email/detail/email-series.js","additive-mc/controllers/instance/campaigns/email/detail/email-series/email-series.js","additive-mc/controllers/instance/campaigns/email/detail/index.js","additive-mc/controllers/instance/campaigns/email/detail/index/edit.js","additive-mc/controllers/instance/campaigns/email/detail/index/email.js","additive-mc/controllers/instance/campaigns/email/detail/index/voucher.js","additive-mc/controllers/instance/campaigns/index.js","additive-mc/controllers/instance/campaigns/on-page.js","additive-mc/controllers/instance/campaigns/on-page/detail.js","additive-mc/controllers/instance/campaigns/on-page/detail/content/content.js","additive-mc/controllers/instance/campaigns/on-page/detail/voucher.js","additive-mc/controllers/instance/campaigns/search-ad.js","additive-mc/controllers/instance/campaigns/search-ad/ad-templates.js","additive-mc/controllers/instance/campaigns/search-ad/extensions.js","additive-mc/controllers/instance/campaigns/search-ad/index.js","additive-mc/controllers/instance/campaigns/search-ad/index/search-ad.js","additive-mc/controllers/instance/campaigns/search-ad/index/search-ad/edit.js","additive-mc/controllers/instance/campaigns/search-ad/target-groups.js","additive-mc/controllers/instance/campaigns/trigger-email.js","additive-mc/controllers/instance/campaigns/trigger-email/detail.js","additive-mc/controllers/instance/campaigns/trigger-email/detail/email-series.js","additive-mc/controllers/instance/campaigns/trigger-email/detail/email-series/email-series.js","additive-mc/controllers/instance/campaigns/trigger-email/detail/index.js","additive-mc/controllers/instance/campaigns/trigger-email/detail/index/edit.js","additive-mc/controllers/instance/campaigns/trigger-email/detail/index/email.js","additive-mc/controllers/instance/campaigns/trigger-email/detail/index/voucher.js","additive-mc/controllers/instance/dashboard.js","additive-mc/controllers/instance/preview/email.js","additive-mc/controllers/instance/reports/ad/index.js","additive-mc/controllers/instance/reports/email/index.js","additive-mc/controllers/instance/reports/index.js","additive-mc/controllers/instance/reports/leads/index.js","additive-mc/controllers/instance/reports/on-page/index.js","additive-mc/controllers/instance/reports/trigger-email/index.js","additive-mc/controllers/instance/settings.js","additive-mc/controllers/instance/settings/index.js","additive-mc/controllers/instance/settings/legals.js","additive-mc/controllers/instance/widgets.js","additive-mc/controllers/instance/widgets/widget.js","additive-mc/data-adapter.js","additive-mc/formats.js","additive-mc/helpers/-element.js","additive-mc/helpers/access-guard.js","additive-mc/helpers/amc-campaign-configuration-value.js","additive-mc/helpers/amc-ember-array-to-array.js","additive-mc/helpers/amc-html-safe.js","additive-mc/helpers/amc-inner-text.js","additive-mc/helpers/amc-not.js","additive-mc/helpers/amc-or.js","additive-mc/helpers/amc-state-to-color-class.js","additive-mc/helpers/and.js","additive-mc/helpers/app-version.js","additive-mc/helpers/append.js","additive-mc/helpers/array-find.js","additive-mc/helpers/assign.js","additive-mc/helpers/call.js","additive-mc/helpers/cancel-all.js","additive-mc/helpers/cents-to-amount.js","additive-mc/helpers/changeset-get.js","additive-mc/helpers/changeset-set.js","additive-mc/helpers/changeset.js","additive-mc/helpers/chunk.js","additive-mc/helpers/compact.js","additive-mc/helpers/compute.js","additive-mc/helpers/contains.js","additive-mc/helpers/currency-symbol.js","additive-mc/helpers/currency.js","additive-mc/helpers/date-format.js","additive-mc/helpers/dec.js","additive-mc/helpers/drop.js","additive-mc/helpers/element.js","additive-mc/helpers/ember-power-calendar-day-classes.js","additive-mc/helpers/ensure-safe-component.js","additive-mc/helpers/entries.js","additive-mc/helpers/eq.js","additive-mc/helpers/equal.js","additive-mc/helpers/file-queue.js","additive-mc/helpers/filter-by.js","additive-mc/helpers/filter.js","additive-mc/helpers/find-by.js","additive-mc/helpers/flatten.js","additive-mc/helpers/format-date-time.js","additive-mc/helpers/format-date.js","additive-mc/helpers/format-message.js","additive-mc/helpers/format-number.js","additive-mc/helpers/format-relative.js","additive-mc/helpers/format-time.js","additive-mc/helpers/from-entries.js","additive-mc/helpers/group-by.js","additive-mc/helpers/gt.js","additive-mc/helpers/gte.js","additive-mc/helpers/has-next.js","additive-mc/helpers/has-previous.js","additive-mc/helpers/html-safe.js","additive-mc/helpers/inc.js","additive-mc/helpers/includes.js","additive-mc/helpers/intersect.js","additive-mc/helpers/invoke.js","additive-mc/helpers/is-array.js","additive-mc/helpers/is-empty.js","additive-mc/helpers/is-equal.js","additive-mc/helpers/is-none.js","additive-mc/helpers/join.js","additive-mc/helpers/keys.js","additive-mc/helpers/loc.js","additive-mc/helpers/loop.js","additive-mc/helpers/lt.js","additive-mc/helpers/lte.js","additive-mc/helpers/map-by.js","additive-mc/helpers/map.js","additive-mc/helpers/mm-medium-url-options.js","additive-mc/helpers/next.js","additive-mc/helpers/noop.js","additive-mc/helpers/not-eq.js","additive-mc/helpers/not.js","additive-mc/helpers/object-at.js","additive-mc/helpers/optional.js","additive-mc/helpers/or.js","additive-mc/helpers/perform.js","additive-mc/helpers/pick.js","additive-mc/helpers/pipe-action.js","additive-mc/helpers/pipe.js","additive-mc/helpers/pluralize.js","additive-mc/helpers/power-calendar-format-date.js","additive-mc/helpers/previous.js","additive-mc/helpers/queue.js","additive-mc/helpers/range.js","additive-mc/helpers/reduce.js","additive-mc/helpers/reject-by.js","additive-mc/helpers/repeat.js","additive-mc/helpers/reverse.js","additive-mc/helpers/shuffle.js","additive-mc/helpers/singularize.js","additive-mc/helpers/slice.js","additive-mc/helpers/sort-by.js","additive-mc/helpers/svg-jar.js","additive-mc/helpers/t.js","additive-mc/helpers/take.js","additive-mc/helpers/task.js","additive-mc/helpers/toggle-action.js","additive-mc/helpers/toggle.js","additive-mc/helpers/ui-array-includes.js","additive-mc/helpers/ui-country-name.js","additive-mc/helpers/ui-days-left.js","additive-mc/helpers/ui-format-currency.js","additive-mc/helpers/ui-optional-action.js","additive-mc/helpers/ui-parse-int.js","additive-mc/helpers/ui-synced-value.js","additive-mc/helpers/ui-to-string.js","additive-mc/helpers/union.js","additive-mc/helpers/values.js","additive-mc/helpers/without.js","additive-mc/helpers/xor.js","additive-mc/initializers/app-version.js","additive-mc/initializers/container-debug-adapter.js","additive-mc/initializers/ember-cli-mirage.js","additive-mc/initializers/ember-data-data-adapter.js","additive-mc/initializers/ember-data.js","additive-mc/initializers/ember-simple-auth.js","additive-mc/initializers/engines.js","additive-mc/initializers/export-application-global.js","additive-mc/instance-initializers/ember-cli-mirage-autostart.js","additive-mc/instance-initializers/ember-data.js","additive-mc/instance-initializers/ember-simple-auth.js","additive-mc/instance-initializers/full-story.js","additive-mc/instance-initializers/google-analytics.js","additive-mc/instance-initializers/load-asset-manifest.js","additive-mc/instance-initializers/sentry-performance.js","additive-mc/instance-initializers/sentry.js","additive-mc/instance-initializers/ui-body.js","additive-mc/mirage-factories/list.js","additive-mc/mirage-models/folder.js","additive-mc/mirage-models/list.js","additive-mc/mirage-models/voucher.js","additive-mc/mirage/config.js","additive-mc/mirage/factories/ad-campaign.js","additive-mc/mirage/factories/ad-facebook.js","additive-mc/mirage/factories/ad-past-marketing-action.js","additive-mc/mirage/factories/ad-preview.js","additive-mc/mirage/factories/advertisement.js","additive-mc/mirage/factories/app.js","additive-mc/mirage/factories/depiction.js","additive-mc/mirage/factories/email-campaign-landingpage.js","additive-mc/mirage/factories/email-campaign-voucher.js","additive-mc/mirage/factories/email-campaign.js","additive-mc/mirage/factories/email-past-marketing-action.js","additive-mc/mirage/factories/email-preview.js","additive-mc/mirage/factories/email-series.js","additive-mc/mirage/factories/email.js","additive-mc/mirage/factories/extension.js","additive-mc/mirage/factories/image.js","additive-mc/mirage/factories/legal.js","additive-mc/mirage/factories/on-page-campaign.js","additive-mc/mirage/factories/on-page-content.js","additive-mc/mirage/factories/organization.js","additive-mc/mirage/factories/past-marketing-action.js","additive-mc/mirage/factories/reports-ad.js","additive-mc/mirage/factories/reports-email.js","additive-mc/mirage/factories/reports-social-posting.js","additive-mc/mirage/factories/search-ad-campaign.js","additive-mc/mirage/factories/search-ad-template.js","additive-mc/mirage/factories/search-ad.js","additive-mc/mirage/factories/setting.js","additive-mc/mirage/factories/social-past-marketing-action.js","additive-mc/mirage/factories/social-preview.js","additive-mc/mirage/factories/subscriber.js","additive-mc/mirage/factories/target-group.js","additive-mc/mirage/factories/trigger-email-campaign.js","additive-mc/mirage/factories/trigger-email-series.js","additive-mc/mirage/factories/trigger-email.js","additive-mc/mirage/factories/trigger.js","additive-mc/mirage/factories/user.js","additive-mc/mirage/factories/value-added.js","additive-mc/mirage/factories/widget.js","additive-mc/mirage/models/ad-campaign.js","additive-mc/mirage/models/ad-facebook.js","additive-mc/mirage/models/ad-past-marketing-action.js","additive-mc/mirage/models/ad-preview.js","additive-mc/mirage/models/advertisement.js","additive-mc/mirage/models/depiction.js","additive-mc/mirage/models/email-campaign-voucher.js","additive-mc/mirage/models/email-campaign.js","additive-mc/mirage/models/email-past-marketing-action.js","additive-mc/mirage/models/email-preview.js","additive-mc/mirage/models/email-series.js","additive-mc/mirage/models/email.js","additive-mc/mirage/models/extension.js","additive-mc/mirage/models/image.js","additive-mc/mirage/models/legal.js","additive-mc/mirage/models/on-page-campaign.js","additive-mc/mirage/models/on-page-content.js","additive-mc/mirage/models/reports-ad.js","additive-mc/mirage/models/reports-email.js","additive-mc/mirage/models/reports-social-posting.js","additive-mc/mirage/models/search-ad-campaign.js","additive-mc/mirage/models/search-ad-template.js","additive-mc/mirage/models/search-ad.js","additive-mc/mirage/models/setting.js","additive-mc/mirage/models/social-past-marketing-action.js","additive-mc/mirage/models/social-preview.js","additive-mc/mirage/models/subscriber.js","additive-mc/mirage/models/target-group.js","additive-mc/mirage/models/transaction.js","additive-mc/mirage/models/trigger-email-campaign.js","additive-mc/mirage/models/trigger-email-series.js","additive-mc/mirage/models/trigger-email.js","additive-mc/mirage/models/trigger.js","additive-mc/mirage/models/value-added.js","additive-mc/mirage/models/widget.js","additive-mc/mirage/routes/campaigns/ad.js","additive-mc/mirage/routes/campaigns/email.js","additive-mc/mirage/routes/campaigns/index.js","additive-mc/mirage/routes/campaigns/lead-ad.js","additive-mc/mirage/routes/campaigns/on-page.js","additive-mc/mirage/routes/campaigns/search-ad.js","additive-mc/mirage/routes/campaigns/social.js","additive-mc/mirage/routes/campaigns/tiktok-lead-ad.js","additive-mc/mirage/routes/campaigns/trigger-email.js","additive-mc/mirage/routes/dashboard/ad-campaigns.js","additive-mc/mirage/routes/dashboard/charts.js","additive-mc/mirage/routes/dashboard/email-campaigns.js","additive-mc/mirage/routes/dashboard/index.js","additive-mc/mirage/routes/dashboard/key-indicators.js","additive-mc/mirage/routes/dashboard/overview.js","additive-mc/mirage/routes/helpers/response.js","additive-mc/mirage/routes/preview/email-preview-html.js","additive-mc/mirage/routes/preview/email-preview.js","additive-mc/mirage/routes/preview/index.js","additive-mc/mirage/routes/preview/overview.js","additive-mc/mirage/routes/reports/ad.js","additive-mc/mirage/routes/reports/email.js","additive-mc/mirage/routes/reports/index.js","additive-mc/mirage/routes/reports/leads.js","additive-mc/mirage/routes/reports/onPage.js","additive-mc/mirage/routes/reports/overview.js","additive-mc/mirage/routes/reports/social.js","additive-mc/mirage/routes/settings/index.js","additive-mc/mirage/routes/settings/legals.js","additive-mc/mirage/routes/settings/settings.js","additive-mc/mirage/routes/transactions/index.js","additive-mc/mirage/routes/widgets/corporate-design.js","additive-mc/mirage/routes/widgets/widgets.js","additive-mc/mirage/scenarios/app/default.js","additive-mc/mirage/scenarios/default.js","additive-mc/mirage/scenarios/organization.js","additive-mc/mirage/scenarios/test/default.js","additive-mc/mirage/scenarios/user.js","additive-mc/mirage/serializers/application.js","additive-mc/mirage/serializers/email-campaign-voucher.js","additive-mc/mirage/serializers/email-campaign.js","additive-mc/mirage/serializers/email-series.js","additive-mc/mirage/serializers/email.js","additive-mc/mirage/serializers/landingpage.js","additive-mc/mirage/serializers/legal.js","additive-mc/mirage/serializers/on-page-content.js","additive-mc/mirage/serializers/promotions.js","additive-mc/mirage/serializers/setting.js","additive-mc/mirage/serializers/trigger-email-campaign.js","additive-mc/mirage/serializers/trigger-email-series.js","additive-mc/mirage/serializers/trigger-email.js","additive-mc/mirage/serializers/voucher.js","additive-mc/mirage/utils/constants.js","additive-mc/mirage/utils/generate-chart-data.js","additive-mc/models/ad-campaign.js","additive-mc/models/advertisement.js","additive-mc/models/app.js","additive-mc/models/campaign.js","additive-mc/models/collection.js","additive-mc/models/depiction.js","additive-mc/models/email-campaign-contribution.js","additive-mc/models/email-campaign-landingpage.js","additive-mc/models/email-campaign-voucher.js","additive-mc/models/email-campaign.js","additive-mc/models/email-preview.js","additive-mc/models/email-series.js","additive-mc/models/email.js","additive-mc/models/extension.js","additive-mc/models/folder.js","additive-mc/models/keyword.js","additive-mc/models/medium.js","additive-mc/models/on-page-campaign.js","additive-mc/models/on-page-content.js","additive-mc/models/organization.js","additive-mc/models/search-ad-campaign.js","additive-mc/models/search-ad-template.js","additive-mc/models/subscriber.js","additive-mc/models/tag.js","additive-mc/models/target-group.js","additive-mc/models/trigger-email-campaign-contribution.js","additive-mc/models/trigger-email-campaign-email-series.js","additive-mc/models/trigger-email-campaign-email.js","additive-mc/models/trigger-email-campaign.js","additive-mc/models/trigger.js","additive-mc/models/ui-transactionable-model.js","additive-mc/models/user.js","additive-mc/models/widget.js","additive-mc/modifiers/did-insert.js","additive-mc/modifiers/did-update.js","additive-mc/modifiers/style.js","additive-mc/modifiers/will-destroy.js","additive-mc/objects/sidenav-state.js","additive-mc/router.js","additive-mc/routes/application-loading.js","additive-mc/routes/application.js","additive-mc/routes/auth/callback.js","additive-mc/routes/index.js","additive-mc/routes/instance.js","additive-mc/routes/instance/auditlog.js","additive-mc/routes/instance/campaigns.js","additive-mc/routes/instance/campaigns/ad.js","additive-mc/routes/instance/campaigns/ad/index.js","additive-mc/routes/instance/campaigns/ad/lead-ads.js","additive-mc/routes/instance/campaigns/ad/lead-ads/lead-ad.js","additive-mc/routes/instance/campaigns/ad/lead-ads/lead-ad/edit.js","additive-mc/routes/instance/campaigns/ad/tiktok-lead-ads.js","additive-mc/routes/instance/campaigns/ad/tiktok-lead-ads/depictions.js","additive-mc/routes/instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction.js","additive-mc/routes/instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction/edit.js","additive-mc/routes/instance/campaigns/ad/tiktok-lead-ads/index.js","additive-mc/routes/instance/campaigns/ad/tiktok-lead-ads/index/lead-ad.js","additive-mc/routes/instance/campaigns/ad/tiktok-lead-ads/index/lead-ad/edit.js","additive-mc/routes/instance/campaigns/email.js","additive-mc/routes/instance/campaigns/email/detail.js","additive-mc/routes/instance/campaigns/email/detail/email-series.js","additive-mc/routes/instance/campaigns/email/detail/email-series/create.js","additive-mc/routes/instance/campaigns/email/detail/email-series/email-series.js","additive-mc/routes/instance/campaigns/email/detail/index.js","additive-mc/routes/instance/campaigns/email/detail/index/create.js","additive-mc/routes/instance/campaigns/email/detail/index/edit.js","additive-mc/routes/instance/campaigns/email/detail/index/email.js","additive-mc/routes/instance/campaigns/email/detail/index/voucher.js","additive-mc/routes/instance/campaigns/index.js","additive-mc/routes/instance/campaigns/on-page.js","additive-mc/routes/instance/campaigns/on-page/detail.js","additive-mc/routes/instance/campaigns/on-page/detail/content/content.js","additive-mc/routes/instance/campaigns/on-page/detail/content/create.js","additive-mc/routes/instance/campaigns/search-ad.js","additive-mc/routes/instance/campaigns/search-ad/ad-templates.js","additive-mc/routes/instance/campaigns/search-ad/extensions.js","additive-mc/routes/instance/campaigns/search-ad/index.js","additive-mc/routes/instance/campaigns/search-ad/index/search-ad.js","additive-mc/routes/instance/campaigns/search-ad/index/search-ad/edit.js","additive-mc/routes/instance/campaigns/search-ad/target-groups.js","additive-mc/routes/instance/campaigns/trigger-email.js","additive-mc/routes/instance/campaigns/trigger-email/detail.js","additive-mc/routes/instance/campaigns/trigger-email/detail/email-series.js","additive-mc/routes/instance/campaigns/trigger-email/detail/email-series/create.js","additive-mc/routes/instance/campaigns/trigger-email/detail/email-series/email-series.js","additive-mc/routes/instance/campaigns/trigger-email/detail/index.js","additive-mc/routes/instance/campaigns/trigger-email/detail/index/create.js","additive-mc/routes/instance/campaigns/trigger-email/detail/index/edit.js","additive-mc/routes/instance/campaigns/trigger-email/detail/index/email.js","additive-mc/routes/instance/campaigns/trigger-email/detail/index/voucher.js","additive-mc/routes/instance/dashboard.js","additive-mc/routes/instance/preview.js","additive-mc/routes/instance/preview/email.js","additive-mc/routes/instance/reports.js","additive-mc/routes/instance/reports/ad.js","additive-mc/routes/instance/reports/ad/past-marketing-actions.js","additive-mc/routes/instance/reports/email.js","additive-mc/routes/instance/reports/email/past-marketing-actions.js","additive-mc/routes/instance/reports/index.js","additive-mc/routes/instance/reports/leads.js","additive-mc/routes/instance/reports/on-page.js","additive-mc/routes/instance/reports/social.js","additive-mc/routes/instance/reports/social/index.js","additive-mc/routes/instance/reports/social/past-marketing-actions.js","additive-mc/routes/instance/reports/trigger-email.js","additive-mc/routes/instance/settings.js","additive-mc/routes/instance/settings/index.js","additive-mc/routes/instance/settings/legals.js","additive-mc/routes/instance/widgets.js","additive-mc/routes/instance/widgets/widget.js","additive-mc/routes/page-not-found.js","additive-mc/serializers/-default.js","additive-mc/serializers/-json-api.js","additive-mc/serializers/-rest.js","additive-mc/serializers/advertisement.js","additive-mc/serializers/application.js","additive-mc/serializers/email-campaign-contribution.js","additive-mc/serializers/email-campaign-voucher.js","additive-mc/serializers/email-campaign.js","additive-mc/serializers/email-series.js","additive-mc/serializers/email.js","additive-mc/serializers/folder.js","additive-mc/serializers/medium.js","additive-mc/serializers/on-page-campaign.js","additive-mc/serializers/on-page-content.js","additive-mc/serializers/organization.js","additive-mc/serializers/trigger-email-campaign-contribution.js","additive-mc/serializers/trigger-email-campaign-email-series.js","additive-mc/serializers/trigger-email-campaign-email.js","additive-mc/serializers/trigger-email-campaign.js","additive-mc/serializers/user.js","additive-mc/services/-ea-motion.js","additive-mc/services/-ensure-registered.js","additive-mc/services/ae-save-stack.js","additive-mc/services/asset-loader.js","additive-mc/services/auth-utils.js","additive-mc/services/authenticated-fetch.js","additive-mc/services/cookies.js","additive-mc/services/current-user.js","additive-mc/services/file-queue.js","additive-mc/services/google-connection-state.js","additive-mc/services/intl.js","additive-mc/services/localization.js","additive-mc/services/multimedia.js","additive-mc/services/power-calendar.js","additive-mc/services/s3-upload-file.js","additive-mc/services/session.js","additive-mc/services/store.js","additive-mc/services/ui-app-settings.js","additive-mc/services/ui-backdrop.js","additive-mc/services/ui-dialog.js","additive-mc/services/ui-filter.js","additive-mc/services/ui-locale.js","additive-mc/services/ui-paths.js","additive-mc/services/ui-pusher.js","additive-mc/services/ui-query-params.js","additive-mc/services/ui-state.js","additive-mc/services/ui-toast.js","additive-mc/services/ui-transaction-manager.js","additive-mc/session-stores/application.js","additive-mc/templates/application-loading.js","additive-mc/templates/application.js","additive-mc/templates/auth/callback.js","additive-mc/templates/components/amc-campaign/category-card.js","additive-mc/templates/components/amc-campaign/configuration-item.js","additive-mc/templates/components/amc-campaign/configuration-item/array.js","additive-mc/templates/components/amc-campaign/configuration-item/boolean.js","additive-mc/templates/components/amc-campaign/configuration-item/datetime.js","additive-mc/templates/components/amc-campaign/configuration-item/money.js","additive-mc/templates/components/amc-campaign/configuration-item/multilingual-link.js","additive-mc/templates/components/amc-campaign/configuration-item/multilingual-text.js","additive-mc/templates/components/amc-campaign/configuration-item/multilingual-texts.js","additive-mc/templates/components/amc-campaign/configuration-item/multimedia.js","additive-mc/templates/components/amc-campaign/configuration-item/multiselect.js","additive-mc/templates/components/amc-campaign/configuration-item/percentage-distribution.js","additive-mc/templates/components/amc-campaign/configuration-item/select.js","additive-mc/templates/components/amc-campaign/configuration-item/text.js","additive-mc/templates/components/amc-campaign/configuration-item/time.js","additive-mc/templates/components/amc-campaign/configuration-item/timespan.js","additive-mc/templates/components/amc-campaign/configuration-item/with-modal.js","additive-mc/templates/components/amc-campaign/configuration-item/yeardate.js","additive-mc/templates/components/amc-campaign/email-campaign/email-list.js","additive-mc/templates/components/amc-campaign/email-campaign/email-series-table.js","additive-mc/templates/components/amc-campaign/info-item.js","additive-mc/templates/components/amc-campaign/voucher-dialog.js","additive-mc/templates/components/amc-campaign/voucher.js","additive-mc/templates/components/amc-dashboard/campaign-metrics.js","additive-mc/templates/components/amc-dashboard/campaign-placeholder.js","additive-mc/templates/components/amc-dashboard/charts.js","additive-mc/templates/components/amc-dashboard/key-indicators.js","additive-mc/templates/components/amc-delete-model.js","additive-mc/templates/components/amc-legals.js","additive-mc/templates/components/amc-preview/upcoming-emails-subscriber.js","additive-mc/templates/components/amc-preview/upcoming-emails.js","additive-mc/templates/components/amc-reports/conversions.js","additive-mc/templates/components/amc-reports/email-metrics.js","additive-mc/templates/components/amc-reports/key-indicators.js","additive-mc/templates/components/amc-reports/past-marketing-actions.js","additive-mc/templates/components/amc-reports/reservations.js","additive-mc/templates/components/amc-reports/social-metrics.js","additive-mc/templates/components/amc-reports/value-added.js","additive-mc/templates/components/amc-route-card.js","additive-mc/templates/components/amc-toggle-activation.js","additive-mc/templates/components/basic-dropdown-content.js","additive-mc/templates/components/basic-dropdown-trigger.js","additive-mc/templates/components/basic-dropdown.js","additive-mc/templates/components/ui-create-content-dialog.js","additive-mc/templates/filter.js","additive-mc/templates/filter/medium.js","additive-mc/templates/instance.js","additive-mc/templates/instance/auditlog.js","additive-mc/templates/instance/campaigns.js","additive-mc/templates/instance/campaigns/ad.js","additive-mc/templates/instance/campaigns/ad/content-ads/index/content-ad.js","additive-mc/templates/instance/campaigns/ad/index.js","additive-mc/templates/instance/campaigns/ad/index/detail/index.js","additive-mc/templates/instance/campaigns/ad/lead-ads.js","additive-mc/templates/instance/campaigns/ad/lead-ads/advertisements/advertisement.js","additive-mc/templates/instance/campaigns/ad/lead-ads/lead-ad.js","additive-mc/templates/instance/campaigns/ad/lead-ads/lead-ad/edit.js","additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads.js","additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/depictions.js","additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction.js","additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction/edit.js","additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/index.js","additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/index/lead-ad.js","additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/index/lead-ad/edit.js","additive-mc/templates/instance/campaigns/email.js","additive-mc/templates/instance/campaigns/email/detail.js","additive-mc/templates/instance/campaigns/email/detail/email-series.js","additive-mc/templates/instance/campaigns/email/detail/email-series/create.js","additive-mc/templates/instance/campaigns/email/detail/email-series/email-series.js","additive-mc/templates/instance/campaigns/email/detail/index.js","additive-mc/templates/instance/campaigns/email/detail/index/create.js","additive-mc/templates/instance/campaigns/email/detail/index/edit.js","additive-mc/templates/instance/campaigns/email/detail/index/email.js","additive-mc/templates/instance/campaigns/email/detail/index/voucher.js","additive-mc/templates/instance/campaigns/index.js","additive-mc/templates/instance/campaigns/on-page.js","additive-mc/templates/instance/campaigns/on-page/detail.js","additive-mc/templates/instance/campaigns/on-page/detail/content/content.js","additive-mc/templates/instance/campaigns/on-page/detail/content/create.js","additive-mc/templates/instance/campaigns/search-ad.js","additive-mc/templates/instance/campaigns/search-ad/ad-templates.js","additive-mc/templates/instance/campaigns/search-ad/extensions.js","additive-mc/templates/instance/campaigns/search-ad/index.js","additive-mc/templates/instance/campaigns/search-ad/index/search-ad.js","additive-mc/templates/instance/campaigns/search-ad/index/search-ad/edit.js","additive-mc/templates/instance/campaigns/search-ad/target-groups.js","additive-mc/templates/instance/campaigns/trigger-email.js","additive-mc/templates/instance/campaigns/trigger-email/detail.js","additive-mc/templates/instance/campaigns/trigger-email/detail/email-series.js","additive-mc/templates/instance/campaigns/trigger-email/detail/email-series/create.js","additive-mc/templates/instance/campaigns/trigger-email/detail/email-series/email-series.js","additive-mc/templates/instance/campaigns/trigger-email/detail/index.js","additive-mc/templates/instance/campaigns/trigger-email/detail/index/create.js","additive-mc/templates/instance/campaigns/trigger-email/detail/index/edit.js","additive-mc/templates/instance/campaigns/trigger-email/detail/index/email.js","additive-mc/templates/instance/campaigns/trigger-email/detail/index/voucher.js","additive-mc/templates/instance/dashboard.js","additive-mc/templates/instance/preview.js","additive-mc/templates/instance/preview/email.js","additive-mc/templates/instance/preview/index.js","additive-mc/templates/instance/reports.js","additive-mc/templates/instance/reports/ad/index.js","additive-mc/templates/instance/reports/ad/past-marketing-actions.js","additive-mc/templates/instance/reports/email/index.js","additive-mc/templates/instance/reports/email/past-marketing-actions.js","additive-mc/templates/instance/reports/index.js","additive-mc/templates/instance/reports/leads/index.js","additive-mc/templates/instance/reports/on-page/index.js","additive-mc/templates/instance/reports/trigger-email/index.js","additive-mc/templates/instance/settings.js","additive-mc/templates/instance/settings/index.js","additive-mc/templates/instance/settings/legals.js","additive-mc/templates/instance/widgets.js","additive-mc/templates/instance/widgets/widget.js","additive-mc/templates/page-not-found.js","additive-mc/transforms/amc-configurations.js","additive-mc/transforms/boolean.js","additive-mc/transforms/date.js","additive-mc/transforms/number.js","additive-mc/transforms/string.js","additive-mc/transitions.js","additive-mc/transitions/tab-transition.js","additive-mc/utils/app-utils.js","additive-mc/utils/calculate-position.js","additive-mc/utils/chart-defaults.js","additive-mc/utils/chart-draw-value-plugin.js","additive-mc/utils/chart-tooltip-plugin.js","additive-mc/utils/close-tab-utils.js","additive-mc/utils/colors.js","additive-mc/utils/constants-fonts.js","additive-mc/utils/constants.js","additive-mc/utils/country-utils.js","additive-mc/utils/currency-serialization.js","additive-mc/utils/currency-util.js","additive-mc/utils/date-util.js","additive-mc/utils/dom-util.js","additive-mc/utils/editor-util.js","additive-mc/utils/errors.js","additive-mc/utils/facebook.js","additive-mc/utils/filter-util.js","additive-mc/utils/fonts.js","additive-mc/utils/format-currency.js","additive-mc/utils/function-util.js","additive-mc/utils/helpers.js","additive-mc/utils/intl/missing-message.js","additive-mc/utils/iso-duration.js","additive-mc/utils/iso-duration/parse.js","additive-mc/utils/iso-duration/to-string.js","additive-mc/utils/local-storage.js","additive-mc/utils/locale-util.js","additive-mc/utils/model-action.js","additive-mc/utils/object-assign.js","additive-mc/utils/pages-util.js","additive-mc/utils/parse-url.js","additive-mc/utils/plans.js","additive-mc/utils/posthog.js","additive-mc/utils/query-param-util.js","additive-mc/utils/roles-map.js","additive-mc/utils/sort-util.js","additive-mc/utils/table-util.js","additive-mc/utils/url.js","additive-mc/utils/viewport.js","additive-mc/utils/widget-constants.js","additive-mc/utils/widget-default.js","additive-mc/utils/widget-utils.js","additive-mc/validations/advertisement.js","additive-mc/validations/campaign-configurations.js","additive-mc/validations/email-campaign.js","additive-mc/validations/iso-duration.js","additive-mc/validations/on-page-campaign.js","additive-mc/validations/search-ad-campaign.js","additive-mc/validations/settings.js","additive-mc/validators/currency.js","additive-mc/validators/date.js","additive-mc/validators/depiction-placeholders.js","additive-mc/validators/editor-links.js","additive-mc/validators/html-length.js","additive-mc/validators/numeral.js","additive-mc/validators/test-email-validator.js","additive-mc/validators/valid-color.js","vendor/ember-cli/app-suffix.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"sourcesContent":["'use strict';\n\n\n","define(\"additive-mc/adapters/-json-api\", [\"exports\", \"@ember-data/adapter/json-api\"], function (_exports, _jsonApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _jsonApi.default;\n    }\n  });\n});","define(\"additive-mc/adapters/ad-campaign\", [\"exports\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'ad'\n  });\n});","define(\"additive-mc/adapters/advertisement\", [\"exports\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'ad-campaigns',\n    handleResponse(status) {\n      if (status >= 400 && status < 500) {\n        const error = arguments[2];\n        if (error) {\n          return new Error(JSON.stringify(error));\n        } else {\n          return new Error(status);\n        }\n      }\n      return this._super(...arguments);\n    },\n    urlForMultiple(_, snapshot) {\n      var _snapshot$adapterOpti, _snapshot$adapterOpti2;\n      let url = this.buildURL() + `/organisation-campaigns/${this.type}`;\n      if (snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti = snapshot.adapterOptions) !== null && _snapshot$adapterOpti !== void 0 && _snapshot$adapterOpti.type) {\n        url += `/${snapshot.adapterOptions.type}`;\n      }\n      if (snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti2 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti2 !== void 0 && _snapshot$adapterOpti2.campaignId) {\n        url += `/${snapshot.adapterOptions.campaignId}`;\n      }\n      return `${url}/advertisements`;\n    }\n  });\n});","define(\"additive-mc/adapters/application\", [\"exports\", \"additive-mc/config/environment\", \"@additive-apps/auth/adapters/application\", \"@ember/service\", \"@ember/string\"], function (_exports, _environment, _application, _service, _string) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let ApplicationAdapter = _exports.default = (_class = class ApplicationAdapter extends _application.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor2, this);\n      _defineProperty(this, \"host\", _environment.default.APP.apiBaseHost);\n    }\n    get currentLocale() {\n      var _this$uiAppSettings;\n      return (_this$uiAppSettings = this.uiAppSettings) === null || _this$uiAppSettings === void 0 ? void 0 : _this$uiAppSettings.currentLocale;\n    }\n    get headers() {\n      const headers = {\n        Accept: 'application/vnd.additive+json',\n        'Accept-Language': this.currentLocale || 'de',\n        'Content-Type': 'application/json'\n      };\n      return Object.assign({}, super.headers, headers);\n    }\n    get namespace() {\n      var _this$currentUser;\n      return `${(_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id}`;\n    }\n    pathForType() {\n      return (0, _string.dasherize)(super.pathForType(...arguments));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/adapters/collection\", [\"exports\", \"@additive-apps/media/adapters/collection\"], function (_exports, _collection) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _collection.default;\n    }\n  });\n});","define(\"additive-mc/adapters/depiction\", [\"exports\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'ad-campaigns',\n    handleResponse(status) {\n      if (status >= 400 && status < 500) {\n        const error = arguments[2];\n        if (error) {\n          return error;\n        } else {\n          return new Error(status);\n        }\n      }\n      return this._super(...arguments);\n    },\n    urlForMultiple(_, snapshot) {\n      var _snapshot$adapterOpti, _snapshot$adapterOpti2;\n      let url = this.buildURL() + `/organisation-campaigns/${this.type}`;\n      if (snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti = snapshot.adapterOptions) !== null && _snapshot$adapterOpti !== void 0 && _snapshot$adapterOpti.type) {\n        url += `/${snapshot.adapterOptions.type}`;\n      }\n      if (snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti2 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti2 !== void 0 && _snapshot$adapterOpti2.campaignId) {\n        url += `/${snapshot.adapterOptions.campaignId}`;\n      }\n      return `${url}/depictions`;\n    }\n  });\n});","define(\"additive-mc/adapters/email-campaign-contribution\", [\"exports\", \"additive-mc/config/environment\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _environment, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'guest-lifecycle-mail-campaigns',\n    urlForMultiple(modelName, snapshot) {\n      var _snapshot$adapterOpti;\n      let url = `${this.buildURL()}/${this.type}`;\n      if (snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti = snapshot.adapterOptions) !== null && _snapshot$adapterOpti !== void 0 && _snapshot$adapterOpti.campaignId) {\n        url += `/${snapshot.adapterOptions.campaignId}`;\n      }\n      return `${url}/contributions`;\n    },\n    urlForSingle(id, modelName, snapshot) {\n      return `${this.urlForMultiple(modelName, snapshot)}/${id}`;\n    },\n    urlForFindRecord() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      return this.urlForSingle(...arguments);\n    },\n    urlForQuery() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      return this.urlForMultiple(...arguments);\n    }\n  });\n});","define(\"additive-mc/adapters/email-campaign-landingpage\", [\"exports\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'email',\n    urlForMultiple() {\n      return `${this._super(...arguments)}/landing-page`;\n    }\n  });\n});","define(\"additive-mc/adapters/email-campaign-voucher\", [\"exports\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'email',\n    urlForMultiple() {\n      return `${this._super(...arguments)}/vouchers`;\n    }\n  });\n});","define(\"additive-mc/adapters/email-campaign\", [\"exports\", \"additive-mc/config/environment\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _environment, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'guest-lifecycle-mail-campaigns',\n    urlForMultiple(modelName, snapshot) {\n      var _snapshot$adapterOpti;\n      let url = this.buildURL() + `${this.type === 'email' ? '/organisation-campaigns' : ''}/${this.type}`;\n      if (snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti = snapshot.adapterOptions) !== null && _snapshot$adapterOpti !== void 0 && _snapshot$adapterOpti.campaignId) {\n        url += `/${snapshot.adapterOptions.campaignId}`;\n      }\n      return url;\n    },\n    urlForSingle(id, modelName, snapshot) {\n      return `${this.urlForMultiple(modelName, snapshot)}/${id}`;\n    },\n    urlForFindRecord(id, modelName, snapshot) {\n      var _snapshot$adapterOpti2, _snapshot$adapterOpti3;\n      this.host = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti2 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti2 !== void 0 && _snapshot$adapterOpti2.useNewApi ? _environment.default.APP.apiBaseHostV2 : _environment.default.APP.apiBaseHost;\n      this.type = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti3 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti3 !== void 0 && _snapshot$adapterOpti3.useNewApi ? 'guest-lifecycle-mail-campaigns' : 'email';\n      return this.urlForSingle(...arguments);\n    },\n    urlForUpdateRecord(id, modelName, snapshot) {\n      var _snapshot$adapterOpti4, _snapshot$adapterOpti5;\n      this.host = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti4 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti4 !== void 0 && _snapshot$adapterOpti4.useNewApi ? _environment.default.APP.apiBaseHostV2 : _environment.default.APP.apiBaseHost;\n      this.type = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti5 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti5 !== void 0 && _snapshot$adapterOpti5.useNewApi ? 'guest-lifecycle-mail-campaigns' : 'email';\n      return this.urlForSingle(...arguments);\n    },\n    urlForFindAll(modelName, snapshot) {\n      var _snapshot$adapterOpti6, _snapshot$adapterOpti7;\n      this.host = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti6 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti6 !== void 0 && _snapshot$adapterOpti6.useNewApi ? _environment.default.APP.apiBaseHostV2 : _environment.default.APP.apiBaseHost;\n      this.type = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti7 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti7 !== void 0 && _snapshot$adapterOpti7.useNewApi ? 'guest-lifecycle-mail-campaigns' : 'email';\n      return this.urlForMultiple(...arguments);\n    },\n    urlForQuery() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      this.type = 'guest-lifecycle-mail-campaigns';\n      return this.urlForMultiple(...arguments);\n    }\n  });\n});","define(\"additive-mc/adapters/email-preview\", [\"exports\", \"additive-mc/adapters/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    pathForType() {\n      return 'preview/email-campaigns';\n    }\n  });\n});","define(\"additive-mc/adapters/email-series\", [\"exports\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'email',\n    urlForMultiple() {\n      return `${this._super(...arguments)}/email-series`;\n    },\n    handleResponse(status) {\n      if (status >= 400 && status < 500) {\n        const error = arguments[2];\n        if (error) {\n          return new Error(JSON.stringify(error));\n        } else {\n          return new Error(status);\n        }\n      }\n      return this._super(...arguments);\n    }\n  });\n});","define(\"additive-mc/adapters/email\", [\"exports\", \"additive-mc/config/environment\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _environment, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'email',\n    urlForMultiple(modelName, snapshot) {\n      var _snapshot$adapterOpti, _snapshot$adapterOpti2;\n      let url = this.buildURL() + `${this.type === 'email' ? '/organisation-campaigns' : ''}/${this.type}`;\n      if (snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti = snapshot.adapterOptions) !== null && _snapshot$adapterOpti !== void 0 && _snapshot$adapterOpti.campaignId) {\n        url += `/${snapshot.adapterOptions.campaignId}`;\n      }\n      if (snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti2 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti2 !== void 0 && _snapshot$adapterOpti2.emailSeriesId) {\n        url += `/email-series/${snapshot.adapterOptions.emailSeriesId}`;\n      }\n      return `${url}/emails`;\n    },\n    urlForSingle(id, modelName, snapshot) {\n      return `${this.urlForMultiple(modelName, snapshot)}/${id}`;\n    },\n    urlForFindRecord(id, modelName, snapshot) {\n      var _snapshot$adapterOpti3, _snapshot$adapterOpti4;\n      this.host = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti3 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti3 !== void 0 && _snapshot$adapterOpti3.useNewApi ? _environment.default.APP.apiBaseHostV2 : _environment.default.APP.apiBaseHost;\n      this.type = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti4 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti4 !== void 0 && _snapshot$adapterOpti4.useNewApi ? 'guest-lifecycle-mail-campaigns' : 'email';\n      return this.urlForSingle(...arguments);\n    },\n    urlForQuery() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      return this.urlForMultiple(...arguments);\n    },\n    handleResponse(status) {\n      if (status >= 400 && status < 500) {\n        const error = arguments[2];\n        if (error) {\n          return new Error(JSON.stringify(error));\n        } else {\n          return new Error(status);\n        }\n      }\n      return this._super(...arguments);\n    }\n  });\n});","define(\"additive-mc/adapters/extension\", [\"exports\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class ExtensionAdapter extends _organizationCampaign.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"type\", 'search-ads');\n    }\n    handleResponse(status) {\n      if (status >= 400 && status < 500) {\n        const error = arguments[2];\n        if (error) {\n          return error;\n        } else {\n          return new Error(status);\n        }\n      }\n      return super.handleResponse(...arguments);\n    }\n    urlForMultiple() {\n      let url = this.buildURL() + `/organisation-campaigns/${this.type}`;\n      return `${url}/extensions`;\n    }\n  }\n  _exports.default = ExtensionAdapter;\n});","define(\"additive-mc/adapters/folder\", [\"exports\", \"@additive-apps/media/adapters/folder\"], function (_exports, _folder) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _folder.default;\n    }\n  });\n});","define(\"additive-mc/adapters/keyword\", [\"exports\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class KeywordAdapter extends _organizationCampaign.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"type\", 'google/search-ads');\n    }\n    handleResponse(status) {\n      if (status >= 400 && status < 500) {\n        const error = arguments[2];\n        if (error) {\n          return error;\n        } else {\n          return new Error(status);\n        }\n      }\n      return super.handleResponse(...arguments);\n    }\n    urlForMultiple() {\n      let url = this.buildURL() + `/organisation-campaigns/${this.type}`;\n      return `${url}/keywords`;\n    }\n  }\n  _exports.default = KeywordAdapter;\n});","define(\"additive-mc/adapters/medium\", [\"exports\", \"@additive-apps/media/adapters/medium\"], function (_exports, _medium) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _medium.default;\n    }\n  });\n});","define(\"additive-mc/adapters/on-page-campaign\", [\"exports\", \"additive-mc/config/environment\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _environment, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'on-page',\n    urlForMultiple(modelName, snapshot) {\n      var _snapshot$adapterOpti;\n      let url = `${this.buildURL()}/organisation-campaigns/${this.type}`;\n      if (snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti = snapshot.adapterOptions) !== null && _snapshot$adapterOpti !== void 0 && _snapshot$adapterOpti.campaignId) {\n        url += `/${snapshot.adapterOptions.campaignId}`;\n      }\n      return url;\n    },\n    urlForSingle(id, modelName, snapshot) {\n      return `${this.urlForMultiple(modelName, snapshot)}/${id}`;\n    },\n    urlForFindRecord() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      return this.urlForSingle(...arguments);\n    },\n    urlForQuery() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      return this.urlForMultiple(...arguments);\n    }\n  });\n});","define(\"additive-mc/adapters/on-page-content\", [\"exports\", \"additive-mc/config/environment\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _environment, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'on-page',\n    urlForMultiple() {\n      return `${this._super(...arguments)}/contents`;\n    },\n    urlForSingle(id, modelName, snapshot) {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      return `${this.urlForMultiple(modelName, snapshot)}/${id}`;\n    },\n    urlForFindAll() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      return this.urlForMultiple(...arguments);\n    },\n    urlForCreateRecord() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      return this.urlForMultiple(...arguments);\n    },\n    urlForQuery() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      return this.urlForMultiple(...arguments);\n    },\n    handleResponse(status) {\n      if (status >= 400 && status < 500) {\n        const error = arguments[2];\n        if (error) {\n          return new Error(JSON.stringify(error));\n        } else {\n          return new Error(status);\n        }\n      }\n      return this._super(...arguments);\n    }\n  });\n});","define(\"additive-mc/adapters/organization-campaign\", [\"exports\", \"additive-mc/adapters/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Base adapter for all organization-campaign types,\n   * intended to be extended per type.\n   * `type` must be set\n   */\n  var _default = _exports.default = _application.default.extend({\n    type: null,\n    urlForMultiple(modelName, snapshot) {\n      var _snapshot$adapterOpti;\n      let url = this.buildURL() + `/organisation-campaigns/${this.type}`;\n      if (snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti = snapshot.adapterOptions) !== null && _snapshot$adapterOpti !== void 0 && _snapshot$adapterOpti.campaignId) {\n        url += `/${snapshot.adapterOptions.campaignId}`;\n      }\n      return url;\n    },\n    urlForSingle(id, modelName, snapshot) {\n      return `${this.urlForMultiple(modelName, snapshot)}/${id}`;\n    },\n    urlForFindAll() {\n      return this.urlForMultiple(...arguments);\n    },\n    urlForCreateRecord() {\n      return this.urlForMultiple(...arguments);\n    },\n    urlForDeleteRecord() {\n      return this.urlForSingle(...arguments);\n    },\n    urlForFindRecord() {\n      return this.urlForSingle(...arguments);\n    },\n    urlForUpdateRecord() {\n      return this.urlForSingle(...arguments);\n    },\n    urlForQuery() {\n      return this.urlForMultiple(...arguments);\n    }\n  });\n});","define(\"additive-mc/adapters/organization\", [\"exports\", \"@additive-apps/auth/adapters/organization\"], function (_exports, _organization) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _organization.default;\n    }\n  });\n});","define(\"additive-mc/adapters/search-ad-campaign\", [\"exports\", \"additive-mc/adapters/organization-campaign\", \"@ember-data/adapter/error\", \"@ember/service\"], function (_exports, _organizationCampaign, _error, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let SearchAdCampaignOrganizationCampaign = _exports.default = (_class = class SearchAdCampaignOrganizationCampaign extends _organizationCampaign.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiState\", _descriptor4, this);\n      _initializerDefineProperty(this, \"googleConnectionState\", _descriptor5, this);\n      _defineProperty(this, \"type\", 'google/search-ads');\n    }\n    handleResponse(status, _, payload) {\n      if (status === 422) {\n        return new _error.default([{\n          status: status,\n          payload: payload\n        }]);\n      }\n      if (status === 500 && (payload === null || payload === void 0 ? void 0 : payload.code) === 'GOOGLE_CONNECTION_ERROR') {\n        this.uiDialog.showConfirm(this.intl.t('searchAdCampaigns.errors.missingGoogleConnection.title'), this.intl.t('searchAdCampaigns.errors.missingGoogleConnection.description'), () => {\n          this.router.transitionTo('instance.settings');\n        }, this.intl.t('searchAdCampaigns.errors.missingGoogleConnection.action'), false, true);\n        this.googleConnectionState.isError = true;\n        return;\n      }\n      return super.handleResponse(...arguments);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"googleConnectionState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/adapters/search-ad-template\", [\"exports\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class GoogleSearchAdTemplateAdapter extends _organizationCampaign.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"type\", 'search-ads');\n    }\n    handleResponse(status) {\n      if (status >= 400 && status < 500) {\n        const error = arguments[2];\n        if (error) {\n          return error;\n        } else {\n          return new Error(status);\n        }\n      }\n      return super.handleResponse(...arguments);\n    }\n    urlForMultiple() {\n      let url = this.buildURL() + `/organisation-campaigns/${this.type}`;\n      return `${url}/ad-templates`;\n    }\n  }\n  _exports.default = GoogleSearchAdTemplateAdapter;\n});","define(\"additive-mc/adapters/subscriber\", [\"exports\", \"additive-mc/adapters/email-preview\", \"@ember/service\"], function (_exports, _emailPreview, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emailPreview.default.extend({\n    router: (0, _service.inject)(),\n    _urlForMultiple(modelName, snapshot) {\n      let url = '';\n      if (snapshot && snapshot.adapterOptions && snapshot.adapterOptions.previewId) {\n        url = this.buildURL('email-preview', snapshot.adapterOptions.previewId) + '/subscribers';\n      } else {\n        url = this._super(...arguments);\n      }\n      return url;\n    },\n    urlForFindAll() {\n      return this._urlForMultiple(...arguments);\n    },\n    // TODO: find a way to get id without router\n    urlForQuery() {\n      const routeParams = this.router && this.router.currentRoute && this.router.currentRoute.params;\n      const emailId = routeParams && routeParams['email_id'];\n      return this.buildURL('email-preview', emailId) + '/subscribers';\n    }\n  });\n});","define(\"additive-mc/adapters/target-group\", [\"exports\", \"additive-mc/adapters/organization-campaign\", \"@ember/service\"], function (_exports, _organizationCampaign, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let TargetGroupAdapter = _exports.default = (_class = class TargetGroupAdapter extends _organizationCampaign.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiState\", _descriptor4, this);\n      _initializerDefineProperty(this, \"googleConnectionState\", _descriptor5, this);\n      _defineProperty(this, \"type\", 'search-ads');\n    }\n    handleResponse(status, _, payload) {\n      if (status >= 400 && status < 500) {\n        const error = arguments[2];\n        if (error) {\n          return error;\n        } else {\n          return new Error(status);\n        }\n      } else if (status === 500 && payload.code === 'GOOGLE_CONNECTION_ERROR') {\n        this.uiDialog.showConfirm(this.intl.t('searchAdCampaigns.errors.missingGoogleConnection.title'), this.intl.t('searchAdCampaigns.errors.missingGoogleConnection.description'), () => {\n          this.router.transitionTo('instance.settings');\n        }, this.intl.t('searchAdCampaigns.errors.missingGoogleConnection.action'), false, true);\n        this.googleConnectionState.isError = true;\n        return;\n      }\n      return super.handleResponse(...arguments);\n    }\n    urlForMultiple() {\n      let url = this.buildURL() + `/organisation-campaigns/${this.type}`;\n      return `${url}/target-groups`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"googleConnectionState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/adapters/trigger-email-campaign-contribution\", [\"exports\", \"additive-mc/config/environment\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _environment, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'trigger-mail-campaigns',\n    urlForMultiple(modelName, snapshot) {\n      var _snapshot$adapterOpti;\n      let url = `${this.buildURL()}/${this.type}`;\n      if (snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti = snapshot.adapterOptions) !== null && _snapshot$adapterOpti !== void 0 && _snapshot$adapterOpti.campaignId) {\n        url += `/${snapshot.adapterOptions.campaignId}`;\n      }\n      return `${url}/contributions`;\n    },\n    urlForSingle(id, modelName, snapshot) {\n      return `${this.urlForMultiple(modelName, snapshot)}/${id}`;\n    },\n    urlForFindRecord() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      return this.urlForSingle(...arguments);\n    },\n    urlForQuery() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      return this.urlForMultiple(...arguments);\n    }\n  });\n});","define(\"additive-mc/adapters/trigger-email-campaign-email-series\", [\"exports\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'email',\n    urlForMultiple() {\n      return `${this._super(...arguments)}/email-series`;\n    },\n    handleResponse(status) {\n      if (status >= 400 && status < 500) {\n        const error = arguments[2];\n        if (error) {\n          return new Error(JSON.stringify(error));\n        } else {\n          return new Error(status);\n        }\n      }\n      return this._super(...arguments);\n    }\n  });\n});","define(\"additive-mc/adapters/trigger-email-campaign-email\", [\"exports\", \"additive-mc/config/environment\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _environment, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'email',\n    urlForMultiple(modelName, snapshot) {\n      var _snapshot$adapterOpti, _snapshot$adapterOpti2;\n      let url = this.buildURL() + `${this.type === 'email' ? '/organisation-campaigns' : ''}/${this.type}`;\n      if (snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti = snapshot.adapterOptions) !== null && _snapshot$adapterOpti !== void 0 && _snapshot$adapterOpti.campaignId) {\n        url += `/${snapshot.adapterOptions.campaignId}`;\n      }\n      if (snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti2 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti2 !== void 0 && _snapshot$adapterOpti2.emailSeriesId) {\n        url += `/email-series/${snapshot.adapterOptions.emailSeriesId}`;\n      }\n      return `${url}/emails`;\n    },\n    urlForSingle(id, modelName, snapshot) {\n      return `${this.urlForMultiple(modelName, snapshot)}/${id}`;\n    },\n    urlForFindRecord(id, modelName, snapshot) {\n      var _snapshot$adapterOpti3, _snapshot$adapterOpti4;\n      this.host = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti3 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti3 !== void 0 && _snapshot$adapterOpti3.useNewApi ? _environment.default.APP.apiBaseHostV2 : _environment.default.APP.apiBaseHost;\n      this.type = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti4 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti4 !== void 0 && _snapshot$adapterOpti4.useNewApi ? 'trigger-mail-campaigns' : 'email';\n      return this.urlForSingle(...arguments);\n    },\n    urlForQuery() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      return this.urlForMultiple(...arguments);\n    },\n    handleResponse(status) {\n      if (status >= 400 && status < 500) {\n        const error = arguments[2];\n        if (error) {\n          return new Error(JSON.stringify(error));\n        } else {\n          return new Error(status);\n        }\n      }\n      return this._super(...arguments);\n    }\n  });\n});","define(\"additive-mc/adapters/trigger-email-campaign\", [\"exports\", \"additive-mc/config/environment\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _environment, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'trigger-email-campaigns',\n    urlForMultiple(modelName, snapshot) {\n      var _snapshot$adapterOpti;\n      let url = this.buildURL() + `${this.type === 'trigger-mail' ? '/organisation-campaigns' : ''}/${this.type}`;\n      if (snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti = snapshot.adapterOptions) !== null && _snapshot$adapterOpti !== void 0 && _snapshot$adapterOpti.campaignId) {\n        url += `/${snapshot.adapterOptions.campaignId}`;\n      }\n      return url;\n    },\n    urlForSingle(id, modelName, snapshot) {\n      return `${this.urlForMultiple(modelName, snapshot)}/${id}`;\n    },\n    urlForFindRecord(id, modelName, snapshot) {\n      var _snapshot$adapterOpti2, _snapshot$adapterOpti3;\n      this.host = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti2 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti2 !== void 0 && _snapshot$adapterOpti2.useNewApi ? _environment.default.APP.apiBaseHostV2 : _environment.default.APP.apiBaseHost;\n      this.type = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti3 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti3 !== void 0 && _snapshot$adapterOpti3.useNewApi ? 'trigger-mail-campaigns' : 'trigger-email';\n      return this.urlForSingle(...arguments);\n    },\n    urlForFindAll(modelName, snapshot) {\n      var _snapshot$adapterOpti4, _snapshot$adapterOpti5;\n      this.host = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti4 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti4 !== void 0 && _snapshot$adapterOpti4.useNewApi ? _environment.default.APP.apiBaseHostV2 : _environment.default.APP.apiBaseHost;\n      this.type = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti5 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti5 !== void 0 && _snapshot$adapterOpti5.useNewApi ? 'trigger-mail-campaigns' : 'trigger-email';\n      return this.urlForMultiple(...arguments);\n    },\n    urlForQuery() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      this.type = 'trigger-mail-campaigns';\n      return this.urlForMultiple(...arguments);\n    },\n    urlForCreateRecord(modelName, snapshot) {\n      var _snapshot$adapterOpti6, _snapshot$adapterOpti7;\n      this.host = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti6 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti6 !== void 0 && _snapshot$adapterOpti6.useNewApi ? _environment.default.APP.apiBaseHostV2 : _environment.default.APP.apiBaseHost;\n      this.type = snapshot !== null && snapshot !== void 0 && (_snapshot$adapterOpti7 = snapshot.adapterOptions) !== null && _snapshot$adapterOpti7 !== void 0 && _snapshot$adapterOpti7.useNewApi ? 'trigger-mail-campaigns' : 'trigger-email';\n      return this.urlForMultiple(...arguments);\n    }\n  });\n});","define(\"additive-mc/adapters/trigger-email\", [\"exports\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _organizationCampaign.default.extend({\n    type: 'trigger-email',\n    urlForMultiple() {\n      return `${this._super(...arguments)}/emails`;\n    },\n    handleResponse(status) {\n      if (status >= 400 && status < 500) {\n        const error = arguments[2];\n        if (error) {\n          return new Error(JSON.stringify(error));\n        } else {\n          return new Error(status);\n        }\n      }\n      return this._super(...arguments);\n    }\n  });\n});","define(\"additive-mc/adapters/widget\", [\"exports\", \"additive-mc/config/environment\", \"additive-mc/adapters/organization-campaign\"], function (_exports, _environment, _organizationCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class WidgetAdapter extends _organizationCampaign.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"type\", 'widgets');\n    }\n    urlForMultiple() {\n      const url = `${this.buildURL()}/${this.type}`;\n      return url;\n    }\n    urlForSingle(id, modelName, snapshot) {\n      return `${this.urlForMultiple(modelName, snapshot)}/${id}`;\n    }\n    urlForFindRecord() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      return this.urlForSingle(...arguments);\n    }\n    urlForQuery() {\n      this.host = _environment.default.APP.apiBaseHostV2;\n      return this.urlForMultiple(...arguments);\n    }\n  }\n  _exports.default = WidgetAdapter;\n});","define(\"additive-mc/app\", [\"exports\", \"@ember/application\", \"ember-resolver\", \"ember-load-initializers\", \"additive-mc/config/environment\"], function (_exports, _application, _emberResolver, _emberLoadInitializers, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class App extends _application.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"modulePrefix\", _environment.default.modulePrefix);\n      _defineProperty(this, \"podModulePrefix\", _environment.default.podModulePrefix);\n      _defineProperty(this, \"Resolver\", _emberResolver.default);\n      _defineProperty(this, \"engines\", {\n        '@additive-apps/multimedia-engine': {\n          dependencies: {\n            services: ['authenticatedFetch', 'currentUser', 'intl', 'store', 'multimedia', 'router', 'uiAppSettings']\n          }\n        }\n      });\n    }\n  }\n  _exports.default = App;\n  (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n});","define(\"additive-mc/authenticators/authorization-code-grant\", [\"exports\", \"@additive-apps/auth/authenticators/authorization-code-grant\"], function (_exports, _authorizationCodeGrant) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _authorizationCodeGrant.default;\n    }\n  });\n});","define(\"additive-mc/classes/query-parameters\", [\"exports\", \"@additive-apps/ui/classes/QueryParameters\"], function (_exports, _QueryParameters) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _QueryParameters.default;\n    }\n  });\n});","define(\"additive-mc/component-managers/glimmer\", [\"exports\", \"@glimmer/component/-private/ember-component-manager\"], function (_exports, _emberComponentManager) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _emberComponentManager.default;\n    }\n  });\n});","define(\"additive-mc/components/-dynamic-element-alt\", [\"exports\", \"@ember/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // This component is not needed anymore. However we can only safely remove it once we have an Embroider release that\n  // has the special dependency rule for this addon removed:\n  // https://github.com/embroider-build/embroider/blob/4fad67f16f811e7f93199a1ee92dba8254c42978/packages/compat/src/addon-dependency-rules/ember-element-helper.ts\n  var _default = _exports.default = _component.default.extend();\n});","define(\"additive-mc/components/-dynamic-element\", [\"exports\", \"@ember/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // This component is not needed anymore. However we can only safely remove it once we have an Embroider release that\n  // has the special dependency rule for this addon removed:\n  // https://github.com/embroider-build/embroider/blob/4fad67f16f811e7f93199a1ee92dba8254c42978/packages/compat/src/addon-dependency-rules/ember-element-helper.ts\n  var _default = _exports.default = _component.default.extend();\n});","define(\"additive-mc/components/ae-configurations\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations\"], function (_exports, _aeConfigurations) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _aeConfigurations.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/apps/accommodations\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/apps/accommodations\"], function (_exports, _accommodations) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _accommodations.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/apps/custom-link\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/apps/custom-link\"], function (_exports, _customLink) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _customLink.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/apps/enquiry-channel\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/apps/enquiry-channel\"], function (_exports, _enquiryChannel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _enquiryChannel.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/apps/enquiry-establishments\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/apps/enquiry-establishments\"], function (_exports, _enquiryEstablishments) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _enquiryEstablishments.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/apps/journal-post\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/apps/journal-post\"], function (_exports, _journalPost) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _journalPost.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/apps/journal-widget\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/apps/journal-widget\"], function (_exports, _journalWidget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _journalWidget.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/apps/newsletter-widget\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/apps/newsletter-widget\"], function (_exports, _newsletterWidget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _newsletterWidget.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/apps/offer\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/apps/offer\"], function (_exports, _offer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _offer.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/apps/survey\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/apps/survey\"], function (_exports, _survey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _survey.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/apps/voucher-widget\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/apps/voucher-widget\"], function (_exports, _voucherWidget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _voucherWidget.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/apps/voucher\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/apps/voucher\"], function (_exports, _voucher) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _voucher.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/code\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/code\"], function (_exports, _code) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _code.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/color\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/color\"], function (_exports, _color) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _color.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/content-categories\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/content-categories\"], function (_exports, _contentCategories) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _contentCategories.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/contents\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/contents\"], function (_exports, _contents) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _contents.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/date-ranges\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/date-ranges\"], function (_exports, _dateRanges) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _dateRanges.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/image\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/image\"], function (_exports, _image) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _image.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/images\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/images\"], function (_exports, _images) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _images.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/item\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/item\"], function (_exports, _item) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _item.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/media-gallery\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/media-gallery\"], function (_exports, _mediaGallery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mediaGallery.default;\n    }\n  });\n});","define(\"additive-mc/components/ae-configurations/typography\", [\"exports\", \"@additive-apps/configurator/components/ae-configurations/typography\"], function (_exports, _typography) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _typography.default;\n    }\n  });\n});","define(\"additive-mc/components/amc-campaign/ads/advertisement-detail\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@ember/component/template-only\"], function (_exports, _component, _templateFactory, _templateOnly) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-insert (perform this.setup)}}></div>\n  <UiModal\n    @title={{this.title}}\n    @onClose={{this.close}}\n    @size=\"sm\"\n    @modalClassNames=\"amc-target-audience\"\n    @isLoading={{this.setup.isRunning}} as |m|\n  >\n    <m.header />\n    <m.content as |c|>\n      <c.body>\n        <UiInput\n          @label={{t \"socialCampaigns.socialCampaign.campaigns.detail.label\"}}\n          @value={{this.changeset.label}}\n          @errorMessage={{this.changeset.error.label.validation}}\n          @isTouched={{this.isTouched}}\n        />\n  \n        <UiInput\n          @label={{t \"socialCampaigns.socialCampaign.campaigns.detail.campaignPostfix\"}}\n          @value={{this.changeset.campaignPostfix}}\n          @isReadOnly={{this.isReadOnly}}\n          @errorMessage={{this.changeset.error.campaignPostfix.validation}}\n          @isTouched={{this.isTouched}}\n        />\n  \n        <UiSelect\n          @label={{t \"socialCampaigns.socialCampaign.campaigns.columns.targetAudience\"}}\n          @options={{this.meta.targetAudiences}}\n          @selected={{get\n            (array-find this.changeset.targetAudience this.meta.targetAudiences)\n            \"label\"\n          }}\n          @isReadOnly={{this.isReadOnly}}\n          @onChange={{fn this.onSelectChange \"targetAudience\"}}\n          @errorMessage={{this.changeset.error.targetAudience.validation}}\n          @isTouched={{this.isTouched}} as |optionComponent option|\n        >\n          <optionComponent.item @value={{option}}>\n            {{option.label}}\n          </optionComponent.item>\n        </UiSelect>\n  \n        <UiDatetimePicker\n          @classNames=\"flex-row\"\n          @dateLabel={{t \"socialCampaigns.socialCampaign.campaigns.detail.startDate\"}}\n          @minDate={{this.minDate}}\n          @initialDate={{this.changeset.startDate}}\n          @isReadOnly={{this.isReadOnly}}\n          @dateErrorMessage={{this.changeset.error.startDate.validation}}\n          @isTouched={{this.isTouched}}\n          @onChange={{fn (mut this.changeset.startDate)}}\n        />\n  \n        <UiDatetimePicker\n          @classNames=\"flex-row\"\n          @initialDate={{this.changeset.endDate}}\n          @dateLabel={{t \"socialCampaigns.socialCampaign.campaigns.detail.endDate\"}}\n          @minDate={{this.minEndDate}}\n          @dateErrorMessage={{this.changeset.error.endDate.validation}}\n          @isTouched={{this.isTouched}}\n          @onChange={{fn (mut this.changeset.endDate)}}\n        />\n  \n        <UiInput\n          @label={{t \"socialCampaigns.socialCampaign.campaigns.detail.budget\"}}\n          @value={{this.changeset.totalBudget}}\n          @errorMessage={{this.changeset.error.totalBudget.validation}}\n          @isTouched={{this.isTouched}} as |input|\n        >\n          <input.right>\n            €\n          </input.right>\n        </UiInput>\n  \n        <UiSelect\n          @label={{t \"socialCampaigns.socialCampaign.campaigns.detail.contents\"}}\n          @options={{this.meta.contents}}\n          @selected={{this.selectedContents}}\n          @isMultiSelect={{true}}\n          @objectKey=\"label\"\n          @isReadOnly={{this.isReadOnly}}\n          @onChange={{fn this.onSelectChange \"promotedContents\"}}\n          @errorMessage={{this.changeset.error.promotedContents.validation}}\n          @isTouched={{this.isTouched}} as |optionComponent option|\n        >\n          <optionComponent.item @value={{option}}>\n            {{option.label}}\n          </optionComponent.item>\n        </UiSelect>\n  \n        <UiSelect\n          @label={{t \"socialCampaigns.socialCampaign.campaigns.detail.pixel\"}}\n          @options={{this.meta.pixels}}\n          @selected={{get (array-find this.changeset.fbPixel this.meta.pixels) \"label\"}}\n          @isReadOnly={{this.isReadOnly}}\n          @errorMessage={{this.changeset.error.fbPixel.validation}}\n          @isTouched={{this.isTouched}}\n          @onChange={{fn this.onSelectChange \"fbPixel\"}} as |optionComponent option|\n        >\n          <optionComponent.item @value={{option}}>\n            {{option.label}}\n          </optionComponent.item>\n        </UiSelect>\n      </c.body>\n    </m.content>\n  \n    <m.footer>\n      <UiButton @isSecondary={{true}} @onClick={{this.save}} @isPromise={{true}}>\n        {{t \"global.actions.save\"}}\n      </UiButton>\n    </m.footer>\n  </UiModal>\n  \n  <UiDiscardChanges @isOpen={{this.isDiscardChangesDialog}} @onDiscard={{this.confirmDiscard}} />\n  */\n  {\n    \"id\": \"k93v7+oY\",\n    \"block\": \"[[[11,0],[4,[38,0],[[28,[37,1],[[30,0,[\\\"setup\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@onClose\\\",\\\"@size\\\",\\\"@modalClassNames\\\",\\\"@isLoading\\\"],[[30,0,[\\\"title\\\"]],[30,0,[\\\"close\\\"]],\\\"sm\\\",\\\"amc-target-audience\\\",[30,0,[\\\"setup\\\",\\\"isRunning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,4],[\\\"socialCampaigns.socialCampaign.campaigns.detail.label\\\"],null],[30,0,[\\\"changeset\\\",\\\"label\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"label\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,3],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,4],[\\\"socialCampaigns.socialCampaign.campaigns.detail.campaignPostfix\\\"],null],[30,0,[\\\"changeset\\\",\\\"campaignPostfix\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"campaignPostfix\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,5],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,4],[\\\"socialCampaigns.socialCampaign.campaigns.columns.targetAudience\\\"],null],[30,0,[\\\"meta\\\",\\\"targetAudiences\\\"]],[28,[37,6],[[28,[37,7],[[30,0,[\\\"changeset\\\",\\\"targetAudience\\\"]],[30,0,[\\\"meta\\\",\\\"targetAudiences\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"isReadOnly\\\"]],[28,[37,8],[[30,0,[\\\"onSelectChange\\\"]],\\\"targetAudience\\\"],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"targetAudience\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,4,[\\\"label\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[3,4]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,9],null,[[\\\"@classNames\\\",\\\"@dateLabel\\\",\\\"@minDate\\\",\\\"@initialDate\\\",\\\"@isReadOnly\\\",\\\"@dateErrorMessage\\\",\\\"@isTouched\\\",\\\"@onChange\\\"],[\\\"flex-row\\\",[28,[37,4],[\\\"socialCampaigns.socialCampaign.campaigns.detail.startDate\\\"],null],[30,0,[\\\"minDate\\\"]],[30,0,[\\\"changeset\\\",\\\"startDate\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"startDate\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[28,[37,8],[[28,[37,10],[[30,0,[\\\"changeset\\\",\\\"startDate\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,9],null,[[\\\"@classNames\\\",\\\"@initialDate\\\",\\\"@dateLabel\\\",\\\"@minDate\\\",\\\"@dateErrorMessage\\\",\\\"@isTouched\\\",\\\"@onChange\\\"],[\\\"flex-row\\\",[30,0,[\\\"changeset\\\",\\\"endDate\\\"]],[28,[37,4],[\\\"socialCampaigns.socialCampaign.campaigns.detail.endDate\\\"],null],[30,0,[\\\"minEndDate\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"endDate\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[28,[37,8],[[28,[37,10],[[30,0,[\\\"changeset\\\",\\\"endDate\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,3],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,4],[\\\"socialCampaigns.socialCampaign.campaigns.detail.budget\\\"],null],[30,0,[\\\"changeset\\\",\\\"totalBudget\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"totalBudget\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,5,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          €\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[5]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,5],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,4],[\\\"socialCampaigns.socialCampaign.campaigns.detail.contents\\\"],null],[30,0,[\\\"meta\\\",\\\"contents\\\"]],[30,0,[\\\"selectedContents\\\"]],true,\\\"label\\\",[30,0,[\\\"isReadOnly\\\"]],[28,[37,8],[[30,0,[\\\"onSelectChange\\\"]],\\\"promotedContents\\\"],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"promotedContents\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,6,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,7]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,7,[\\\"label\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[6,7]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,5],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@isReadOnly\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@onChange\\\"],[[28,[37,4],[\\\"socialCampaigns.socialCampaign.campaigns.detail.pixel\\\"],null],[30,0,[\\\"meta\\\",\\\"pixels\\\"]],[28,[37,6],[[28,[37,7],[[30,0,[\\\"changeset\\\",\\\"fbPixel\\\"]],[30,0,[\\\"meta\\\",\\\"pixels\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"fbPixel\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[28,[37,8],[[30,0,[\\\"onSelectChange\\\"]],\\\"fbPixel\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,8,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,9]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,9,[\\\"label\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[8,9]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,11],null,[[\\\"@isSecondary\\\",\\\"@onClick\\\",\\\"@isPromise\\\"],[true,[30,0,[\\\"save\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"global.actions.save\\\"],null]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,12],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChangesDialog\\\"]],[30,0,[\\\"confirmDiscard\\\"]]]],null]],[\\\"m\\\",\\\"c\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"input\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"did-insert\\\",\\\"perform\\\",\\\"ui-modal\\\",\\\"ui-input\\\",\\\"t\\\",\\\"ui-select\\\",\\\"get\\\",\\\"array-find\\\",\\\"fn\\\",\\\"ui-datetime-picker\\\",\\\"mut\\\",\\\"ui-button\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/advertisement-detail.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"additive-mc/components/amc-campaign/ads/advertisements/create-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-changeset-validations/validators\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberChangeset, _emberChangesetValidations, _validators, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{this.title}}\n    @onClose={{this.close}}\n    @modalClassNames=\"ads-advertisements-create-dialog\" as |m|\n  >\n    <m.header />\n    <m.content as |c|>\n      <c.body {{did-insert this.didInsert}}>\n        <UiInput\n          @label={{t \"adCampaigns.properties.title\"}}\n          @value={{get this.changeset this.nameProperty}}\n          @errorMessage={{get (get this.changeset.error this.nameProperty) \"validation.firstObject\"}}\n          @isTouched={{this.isTouched}}\n        />\n  \n        {{#if (and (eq this.filterName \"lead-ads\") this.model.isNew)}}\n          <UiSwitch\n            @label={{t\n              \"components.amcCampaign.ads.advertisements.createDialog.properties.isDynamicCreative\"\n            }}\n            @value={{this.changeset.isDynamicCreative}}\n            @onChange={{changeset-set this.changeset \"isDynamicCreative\"}}\n          />\n        {{/if}}\n      </c.body>\n    </m.content>\n    <m.footer>\n      <UiButton @isSecondary={{true}} @label={{t \"global.actions.save\"}} @onClick={{this.save}} />\n    </m.footer>\n  </UiModal>\n  \n  <UiDiscardChanges\n    @isOpen={{this.isDiscardChanges}}\n    @onDiscard={{this.discardChanges}}\n    @onClose={{fn (mut this.isDiscardChanges)}}\n  />\n  */\n  {\n    \"id\": \"DFiSeEOf\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@onClose\\\",\\\"@modalClassNames\\\"],[[30,0,[\\\"title\\\"]],[30,0,[\\\"close\\\"]],\\\"ads-advertisements-create-dialog\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],[[4,[38,1],[[30,0,[\\\"didInsert\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,3],[\\\"adCampaigns.properties.title\\\"],null],[28,[37,4],[[30,0,[\\\"changeset\\\"]],[30,0,[\\\"nameProperty\\\"]]],null],[28,[37,4],[[28,[37,4],[[30,0,[\\\"changeset\\\",\\\"error\\\"]],[30,0,[\\\"nameProperty\\\"]]],null],\\\"validation.firstObject\\\"],null],[30,0,[\\\"isTouched\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[[28,[37,7],[[30,0,[\\\"filterName\\\"]],\\\"lead-ads\\\"],null],[30,0,[\\\"model\\\",\\\"isNew\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,8],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\"],[[28,[37,3],[\\\"components.amcCampaign.ads.advertisements.createDialog.properties.isDynamicCreative\\\"],null],[30,0,[\\\"changeset\\\",\\\"isDynamicCreative\\\"]],[28,[37,9],[[30,0,[\\\"changeset\\\"]],\\\"isDynamicCreative\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,10],null,[[\\\"@isSecondary\\\",\\\"@label\\\",\\\"@onClick\\\"],[true,[28,[37,3],[\\\"global.actions.save\\\"],null],[30,0,[\\\"save\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,11],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\",\\\"@onClose\\\"],[[30,0,[\\\"isDiscardChanges\\\"]],[30,0,[\\\"discardChanges\\\"]],[28,[37,12],[[28,[37,13],[[30,0,[\\\"isDiscardChanges\\\"]]],null]],null]]],null]],[\\\"m\\\",\\\"c\\\"],false,[\\\"ui-modal\\\",\\\"did-insert\\\",\\\"ui-input\\\",\\\"t\\\",\\\"get\\\",\\\"if\\\",\\\"and\\\",\\\"eq\\\",\\\"ui-switch\\\",\\\"changeset-set\\\",\\\"ui-button\\\",\\\"ui-discard-changes\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/advertisements/create-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignAdsAdvertisementsCreateDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec4 = (0, _emberArgTypes.arg)(_propTypes.object), _dec5 = (0, _emberArgTypes.arg)(_propTypes.string), _dec6 = (0, _emberArgTypes.arg)(_propTypes.string), _dec7 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignAdsAdvertisementsCreateDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor4, this);\n      /**\n       * the created model\n       *\n       * @argument model\n       * @type {DS.Model}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor5, this);\n      /**\n       * the name of the filter\n       *\n       * @argument filterName\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"filterName\", _descriptor6, this);\n      /**\n       * whether the item should be added to the filter\n       *\n       * @argument addItemToFilter\n       * @type {boolean}\n       */\n      _initializerDefineProperty(this, \"addItemToFilter\", _descriptor7, this);\n      /**\n       * the adapteroptions to save the model\n       *\n       * @argument adapterOptions\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"adapterOptions\", _descriptor8, this);\n      /**\n       * the property for the name\n       *\n       * @argument nameProperty\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"nameProperty\", _descriptor9, this);\n      /**\n       * the title of the dialog\n       *\n       * @argument nameProperty\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"title\", _descriptor10, this);\n      /**\n       * the changeset for the model\n       *\n       * @property changeset\n       * @type {Changeset}\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor11, this);\n      /**\n       * whether the discard changes dialog is open\n       *\n       * @property isDiscardChanges\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChanges\", _descriptor12, this);\n      /**\n       * whether the form has been touched\n       *\n       * @property isTouched\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor13, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor14, this);\n    }\n    didInsert() {\n      const validation = {\n        [this.nameProperty]: (0, _validators.validatePresence)({\n          presence: true,\n          message: this.intl.t('errors.required')\n        })\n      };\n      this.changeset = new _emberChangeset.default(this.model, (0, _emberChangesetValidations.default)(validation), validation);\n    }\n    close() {\n      if (this.changeset.get('isDirty')) {\n        this.isDiscardChanges = true;\n      } else {\n        if (this.model.isNew) {\n          this.model.destroyRecord();\n        }\n        this.onClose();\n      }\n    }\n    discardChanges() {\n      if (this.model.isNew) {\n        this.model.destroyRecord();\n      }\n      this.isDiscardChanges = false;\n      this.onClose();\n    }\n    async save() {\n      try {\n        this.isTouched = true;\n        const {\n          isNew\n        } = this.model;\n        await this.changeset.validate();\n        if (this.changeset.get('isInvalid')) {\n          return;\n        }\n        const newAdvertisement = await this.changeset.save({\n          adapterOptions: this.adapterOptions\n        });\n        if (this.addItemToFilter && isNew) {\n          this.uiFilter.addItem(this.filterName, newAdvertisement);\n        }\n        await this.onClose();\n        await this.uiFilter.loadModel(this.adapterOptions.type);\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      } catch (e) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"filterName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"addItemToFilter\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"adapterOptions\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"nameProperty\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 'title';\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsAdvertisementsCreateDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/advertisements/depiction-detail/nested-multiselect\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@glimmer/tracking\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _tracking, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class=\"ui-select\n  \n  \n      {{if this._isOpen \"ui-select--is-open\"}}\n  \n  \n  \n      {{if this.isReadOnly \"ui-select--readonly\"}}\"\n  >\n    <UiSelectable\n      @options={{this._options}}\n      @onChange={{this.onChange}}\n      @valueKey=\"value\"\n      @isReadOnly={{this.isReadOnly}} as |selectable|\n    >\n      <selectable.trigger>\n        <div class=\"select-inner relative\" tabindex=\"0\">\n          <UiInput\n            @classNames={{if this.isReadOnly \"\" \"cpointer\"}}\n            @label={{this.label}}\n            @placeholder={{this.placeholder}}\n            @isTouched={{@isTouched}}\n            @errorMessage={{this.errorMessage}}\n            @value={{this._selected}}\n            @isReadOnly={{true}}\n            @theme={{this.theme}}\n            @helperText={{this.helperText}}\n            @onHelp={{this.onHelp}} as |input|\n          >\n            <input.left>\n              <UiCheckbox\n                @isChecked={{this._isAllSelected}}\n                @isPartiallyChecked={{this._isPartiallySelected}}\n                @isDisabled={{this.isReadOnly}}\n                @onChange={{this.onToggleAll}}\n                @classNames=\"blue mr1\"\n                @bubbles={{false}}\n              />\n            </input.left>\n  \n            <input.right>\n              <div class=\"caret-container primary flex items-center justify-center\">\n                {{svg-jar \"caret\" class=\"caret\"}}\n              </div>\n            </input.right>\n          </UiInput>\n        </div>\n      </selectable.trigger>\n  \n      <selectable.content>\n        {{#if this.isEmpty}}\n          <UiSelectOption\n            @isDisabled={{true}}\n            @isActive={{false}}\n            @class=\"ui-select-option--empty flex flex-column items-center ma2 font-sm secondary\"\n          >\n            {{t \"select.empty\"}}\n          </UiSelectOption>\n        {{else}}\n          {{#each this._options as |item index|}}\n            {{yield\n              (hash\n                item=(component\n                  \"amc-campaign/ads/advertisements/depiction-detail/nested-multiselect/select-option\"\n                  classNames=(concat \"flex pv1 font-sm\" (if item.parentType \" pl4 pr2\" \" ph2\"))\n                  onClick=this.onChange\n                  item=item\n                  isChecked=item.checked\n                  isPartiallyChecked=item.partiallyChecked\n                )\n                toggle=selectable.toggleDropdown\n              )\n              item\n              index\n            }}\n          {{/each}}\n        {{/if}}\n      </selectable.content>\n    </UiSelectable>\n  </div>\n  */\n  {\n    \"id\": \"9ijwASIl\",\n    \"block\": \"[[[10,0],[15,0,[29,[\\\"ui-select\\\\n\\\\n\\\\n    \\\",[52,[30,0,[\\\"_isOpen\\\"]],\\\"ui-select--is-open\\\"],\\\"\\\\n\\\\n\\\\n\\\\n    \\\",[52,[30,0,[\\\"isReadOnly\\\"]],\\\"ui-select--readonly\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@options\\\",\\\"@onChange\\\",\\\"@valueKey\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"_options\\\"]],[30,0,[\\\"onChange\\\"]],\\\"value\\\",[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"select-inner relative\\\"],[14,\\\"tabindex\\\",\\\"0\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,2],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@isTouched\\\",\\\"@errorMessage\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@theme\\\",\\\"@helperText\\\",\\\"@onHelp\\\"],[[52,[30,0,[\\\"isReadOnly\\\"]],\\\"\\\",\\\"cpointer\\\"],[30,0,[\\\"label\\\"]],[30,0,[\\\"placeholder\\\"]],[30,2],[30,0,[\\\"errorMessage\\\"]],[30,0,[\\\"_selected\\\"]],true,[30,0,[\\\"theme\\\"]],[30,0,[\\\"helperText\\\"]],[30,0,[\\\"onHelp\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"left\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,3],null,[[\\\"@isChecked\\\",\\\"@isPartiallyChecked\\\",\\\"@isDisabled\\\",\\\"@onChange\\\",\\\"@classNames\\\",\\\"@bubbles\\\"],[[30,0,[\\\"_isAllSelected\\\"]],[30,0,[\\\"_isPartiallySelected\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"onToggleAll\\\"]],\\\"blue mr1\\\",false]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[30,3,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"caret-container primary flex items-center justify-center\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"caret\\\"],[[\\\"class\\\"],[\\\"caret\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[3]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEmpty\\\"]],[[[1,\\\"        \\\"],[8,[39,5],null,[[\\\"@isDisabled\\\",\\\"@isActive\\\",\\\"@class\\\"],[true,false,\\\"ui-select-option--empty flex flex-column items-center ma2 font-sm secondary\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"select.empty\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"_options\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[18,6,[[28,[37,10],null,[[\\\"item\\\",\\\"toggle\\\"],[[50,\\\"amc-campaign/ads/advertisements/depiction-detail/nested-multiselect/select-option\\\",0,null,[[\\\"classNames\\\",\\\"onClick\\\",\\\"item\\\",\\\"isChecked\\\",\\\"isPartiallyChecked\\\"],[[28,[37,12],[\\\"flex pv1 font-sm\\\",[52,[30,4,[\\\"parentType\\\"]],\\\" pl4 pr2\\\",\\\" ph2\\\"]],null],[30,0,[\\\"onChange\\\"]],[30,4],[30,4,[\\\"checked\\\"]],[30,4,[\\\"partiallyChecked\\\"]]]]],[30,1,[\\\"toggleDropdown\\\"]]]]],[30,4],[30,5]]],[1,\\\"\\\\n\\\"]],[4,5]],null]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"selectable\\\",\\\"@isTouched\\\",\\\"input\\\",\\\"item\\\",\\\"index\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"ui-selectable\\\",\\\"ui-input\\\",\\\"ui-checkbox\\\",\\\"svg-jar\\\",\\\"ui-select-option\\\",\\\"t\\\",\\\"each\\\",\\\"-track-array\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/advertisements/depiction-detail/nested-multiselect.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignAdsAdvertisementsDepictionDetailNestedMultiselectComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.array | _propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec4 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec5 = (0, _emberArgTypes.arg)(_propTypes.array), _dec6 = (0, _emberArgTypes.arg)(_propTypes.array), _dec7 = (0, _emberArgTypes.arg)(_propTypes.func), _dec8 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignAdsAdvertisementsDepictionDetailNestedMultiselectComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      /**\n       * the error message to be displayed\n       *\n       * @argument errorMessage\n       * @type {String}\n       * @default undefined\n       */\n      _initializerDefineProperty(this, \"errorMessage\", _descriptor, this);\n      /**\n       * the label of the select\n       *\n       * @argument label\n       * @type {String}\n       * @default undefined\n       */\n      _initializerDefineProperty(this, \"label\", _descriptor2, this);\n      /**\n       * whether the select is read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor3, this);\n      /**\n       * whether the select was touched\n       *\n       * @argument isTouched\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor4, this);\n      /**\n       * the options\n       *\n       * @property options\n       * @type {Array}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"options\", _descriptor5, this);\n      /**\n       * the selected options\n       *\n       * @property selected\n       * @type {Array}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"selected\", _descriptor6, this);\n      /**\n       * onChange event.\n       * Gets called everytime an option is clicked\n       *\n       * @event onChange\n       * @param {Any} option the clicked option\n       * @param {Event} event The click event\n       * @return {Array}\n       */\n      _initializerDefineProperty(this, \"onChange\", _descriptor7, this);\n      /**\n       * triggered when the user clicks on the input checkbox\n       *\n       * @function onToggleAll\n       */\n      _initializerDefineProperty(this, \"onToggleAll\", _descriptor8, this);\n    }\n    /**\n     * whether the options array is empty and a placeholder should be displayed\n     *\n     * @computed isEmpty\n     * @type {Boolean}\n     */\n    get isEmpty() {\n      return this._options.length === 0;\n    }\n\n    /**\n     * whether the options array is fully selected\n     *\n     * @computed _isAllSelected\n     * @type {Boolean}\n     */\n    get _isAllSelected() {\n      if (!Array.isArray(this.options) || !Array.isArray(this.selected)) {\n        return false;\n      }\n      let isChecked = true;\n      this.options.forEach(option => {\n        const selectedOption = this.selected.find(selectedOption => selectedOption.value === option.value);\n        if (!selectedOption || selectedOption.subTypes) {\n          isChecked = false;\n        }\n      });\n      return isChecked;\n    }\n\n    /**\n     * whether the options array is partially selected\n     *\n     * @computed _isPartiallySelected\n     * @type {Boolean}\n     */\n    get _isPartiallySelected() {\n      var _this$selected;\n      return !this._isAllSelected && ((_this$selected = this.selected) === null || _this$selected === void 0 ? void 0 : _this$selected.length) > 0;\n    }\n\n    /**\n     * Internal options array\n     *\n     * @computed _options\n     * @type {Array}\n     * @private\n     */\n    get _options() {\n      if (!this.options) {\n        return [];\n      }\n      const options = [];\n      this.options.forEach(option => {\n        var _this$selected2, _option$subTypes;\n        const selectedOption = (_this$selected2 = this.selected) === null || _this$selected2 === void 0 ? void 0 : _this$selected2.find(selectedOption => selectedOption.value === option.value);\n        options.push({\n          value: option.value,\n          label: option.label,\n          checked: selectedOption && !selectedOption.subTypes,\n          partiallyChecked: !!(selectedOption !== null && selectedOption !== void 0 && selectedOption.subTypes)\n        });\n        (_option$subTypes = option.subTypes) === null || _option$subTypes === void 0 || _option$subTypes.forEach(subType => {\n          var _selectedOption$subTy;\n          const selectedSubType = selectedOption === null || selectedOption === void 0 || (_selectedOption$subTy = selectedOption.subTypes) === null || _selectedOption$subTy === void 0 ? void 0 : _selectedOption$subTy.find(selectedSubType => selectedSubType === subType.value);\n          options.push({\n            value: subType.value,\n            label: subType.label,\n            checked: selectedOption && (!selectedOption.subTypes || selectedSubType),\n            parentType: option.value\n          });\n        });\n      });\n      return options;\n    }\n\n    /**\n     * The selected text\n     *\n     * @computed _selected\n     * @private\n     */\n    get _selected() {\n      if (!Array.isArray(this.options) || !this.selected) {\n        return null;\n      }\n      let selectedOptions = [];\n      this.options.forEach(option => {\n        const selectedOption = this.selected.find(selectedOption => selectedOption.value === option.value);\n        if (selectedOption) {\n          if (selectedOption.subTypes) {\n            var _selectedOption$subTy2;\n            (_selectedOption$subTy2 = selectedOption.subTypes) === null || _selectedOption$subTy2 === void 0 || _selectedOption$subTy2.forEach(selectedSubType => {\n              const optionSubType = option.subTypes.find(optionSubType => optionSubType.value === selectedSubType);\n              if (optionSubType) {\n                selectedOptions.push(optionSubType.label);\n              }\n            });\n          } else {\n            selectedOptions.push(option.label);\n          }\n        }\n      });\n      return selectedOptions.join(', ');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"errorMessage\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return undefined;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"label\", [_dec2, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return undefined;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec3, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_dec4, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"options\", [_dec5, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selected\", [_dec6, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"onToggleAll\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsAdvertisementsDepictionDetailNestedMultiselectComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/advertisements/depiction-detail/nested-multiselect/select-option\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@glimmer/tracking\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _tracking, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class=\"ui-select-option relative flex items-center cpointer\n  \n      {{if (or this.isChecked this.isPartiallyChecked) \"ui-select-option--checked\"}}\n  \n  \n  \n      {{this.classNames}}\"\n    role=\"button\"\n    {{on \"click\" (fn this.onClick this.item)}}\n  >\n    <UiCheckbox\n      @bubbles={{true}}\n      @classNames=\"mr1\"\n      @isPartiallyChecked={{this.isPartiallyChecked}}\n      @theme={{if (or this.isChecked this.isPartiallyChecked) \"white\" \"blue\"}}\n      @value={{this.isChecked}}\n    />\n  \n    {{yield (hash item=this.item)}}\n  </div>\n  */\n  {\n    \"id\": \"Mym/ueZr\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"ui-select-option relative flex items-center cpointer\\\\n\\\\n    \\\",[52,[28,[37,1],[[30,0,[\\\"isChecked\\\"]],[30,0,[\\\"isPartiallyChecked\\\"]]],null],\\\"ui-select-option--checked\\\"],\\\"\\\\n\\\\n\\\\n\\\\n    \\\",[30,0,[\\\"classNames\\\"]]]]],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,0,[\\\"onClick\\\"]],[30,0,[\\\"item\\\"]]],null]],null],[12],[1,\\\"\\\\n  \\\"],[8,[39,4],null,[[\\\"@bubbles\\\",\\\"@classNames\\\",\\\"@isPartiallyChecked\\\",\\\"@theme\\\",\\\"@value\\\"],[true,\\\"mr1\\\",[30,0,[\\\"isPartiallyChecked\\\"]],[52,[28,[37,1],[[30,0,[\\\"isChecked\\\"]],[30,0,[\\\"isPartiallyChecked\\\"]]],null],\\\"white\\\",\\\"blue\\\"],[30,0,[\\\"isChecked\\\"]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[18,1,[[28,[37,6],null,[[\\\"item\\\"],[[30,0,[\\\"item\\\"]]]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"or\\\",\\\"on\\\",\\\"fn\\\",\\\"ui-checkbox\\\",\\\"yield\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/advertisements/depiction-detail/nested-multiselect/select-option.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignAdsAdvertisementsDepictionDetailNestedMultiselectSelectOptionComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec4 = (0, _emberArgTypes.arg)(_propTypes.object), _dec5 = (0, _emberArgTypes.arg)(_propTypes.object), _dec6 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignAdsAdvertisementsDepictionDetailNestedMultiselectSelectOptionComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      /**\n       * the class names\n       *\n       * @argument classNames\n       * @type {String}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"classNames\", _descriptor, this);\n      /**\n       * whether the option is checked\n       *\n       * @argument isChecked\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isChecked\", _descriptor2, this);\n      /**\n       * whether the option is partially checked\n       *\n       * @argument isPartiallyChecked\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isPartiallyChecked\", _descriptor3, this);\n      /**\n       * the item data\n       *\n       * @argument item\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor4, this);\n      /**\n       * the item data\n       *\n       * @argument item\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"value\", _descriptor5, this);\n      _initializerDefineProperty(this, \"onClick\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"classNames\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return '';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isChecked\", [_dec2, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isPartiallyChecked\", [_dec3, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec4, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"value\", [_dec5, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsAdvertisementsDepictionDetailNestedMultiselectSelectOptionComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/advertisements/depiction-preview\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _service, _tracking, _object, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Grid\n    @gap=\"16\"\n    @rowGap=\"16\"\n    @columns=\"1,2,3\"\n    {{did-insert this.setInitialValues}}\n    {{did-update this.setInitialValues this.depictions this.depiction}}\n  >\n    {{#unless this.hideDepictionSelect}}\n      <UiSelect\n        @label={{t \"components.amcCampaign.ads.advertisements.depictionPreview.depiction\"}}\n        @selected={{get this.selectedDepiction \"name\"}}\n        @placeholder={{t\n          \"components.amcCampaign.ads.advertisements.depictionPreview.chooseDepiction\"\n        }}\n        @valueKey=\"id\"\n        @options={{this.formattedDepictions}}\n        @onChange={{this.onSelectDepiction}} as |optionComponent option|\n      >\n        <optionComponent.item @value={{option}}>\n          {{option.name}}\n        </optionComponent.item>\n      </UiSelect>\n    {{/unless}}\n  \n    <UiSelect\n      @label={{t \"components.amcCampaign.ads.advertisements.depictionPreview.variants\"}}\n      @placeholder={{t \"components.amcCampaign.ads.advertisements.depictionPreview.chooseVariant\"}}\n      @selected={{get this.selectedVariant \"name\"}}\n      @valueKey=\"id\"\n      @options={{this.variantOptions}}\n      @onChange={{fn (mut this.selectedVariant)}} as |optionComponent option|\n    >\n      <optionComponent.item @value={{option}}>\n        {{option.name}}\n      </optionComponent.item>\n    </UiSelect>\n  \n    <UiSelect\n      @label={{t\n        (concat\n          \"components.amcCampaign.ads.advertisements.depictionPreview.\"\n          (if this.onlyVideos \"video\" \"media\")\n        )\n      }}\n      @selected={{get this.selectedMedia \"name\"}}\n      @placeholder={{t\n        (concat\n          \"components.amcCampaign.ads.advertisements.depictionPreview.\"\n          (if this.onlyVideos \"chooseVideo\" \"chooseMedia\")\n        )\n      }}\n      @valueKey=\"mediumId\"\n      @options={{this.mediaOptions}}\n      @onChange={{fn (mut this.selectedMedia)}} as |optionComponent option|\n    >\n      <optionComponent.item @value={{option}}>\n        {{#if (equal this.selectedMedia.type \"video\")}}\n          <img\n            class=\"depiction-preview__thumbnail mr2\"\n            src={{mm-medium-url-options\n              option.thumbnailUrl\n              (hash size=\"24x24\" poi=option.transformations.poi)\n            }}\n            alt={{this.selectedMedia.name}}\n          />\n        {{else}}\n          <img\n            class=\"depiction-preview__thumbnail mr2\"\n            src={{mm-medium-url-options\n              option.url\n              (hash size=\"24x24\" poi=option.transformations.poi)\n            }}\n            alt={{this.selectedMedia.name}}\n          />\n        {{/if}}\n        {{option.name}}\n      </optionComponent.item>\n    </UiSelect>\n  </Grid>\n  \n  <Grid @gap=\"24\" @rowGap=\"24\" @columns=\"1,2\">\n    {{#if this.selectedMedia.labels}}\n      {{#each this.selectedMedia.labels as |label|}}\n        {{#if (eq label \"portrait\")}}\n          <div class=\"depiction-preview__grid-row-3\">\n            <AmcCampaign::Ads::Preview\n              @cta={{this.content.ctaText}}\n              @headline={{this.content.headline}}\n              @text={{this.content.text}}\n              @title={{this.content.title}}\n              @media={{this.selectedMedia}}\n              @type=\"portrait\"\n            />\n          </div>\n        {{else}}\n          <AmcCampaign::Ads::Preview\n            @cta={{this.content.ctaText}}\n            @headline={{this.content.headline}}\n            @text={{this.content.text}}\n            @title={{this.content.title}}\n            @media={{this.selectedMedia}}\n            @type={{label}}\n          />\n        {{/if}}\n      {{/each}}\n    {{else}}\n      <div class=\"depiction-preview__grid-row-3\">\n        <AmcCampaign::Ads::Preview\n          @cta={{this.content.ctaText}}\n          @headline={{this.content.headline}}\n          @text={{this.content.text}}\n          @title={{this.content.title}}\n          @media={{this.selectedMedia}}\n          @type=\"portrait\"\n        />\n      </div>\n    {{/if}}\n  </Grid>\n  */\n  {\n    \"id\": \"mKnM4pj2\",\n    \"block\": \"[[[8,[39,0],[[4,[38,1],[[30,0,[\\\"setInitialValues\\\"]]],null],[4,[38,2],[[30,0,[\\\"setInitialValues\\\"]],[30,0,[\\\"depictions\\\"]],[30,0,[\\\"depiction\\\"]]],null]],[[\\\"@gap\\\",\\\"@rowGap\\\",\\\"@columns\\\"],[\\\"16\\\",\\\"16\\\",\\\"1,2,3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"hideDepictionSelect\\\"]]],[[[1,\\\"    \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@selected\\\",\\\"@placeholder\\\",\\\"@valueKey\\\",\\\"@options\\\",\\\"@onChange\\\"],[[28,[37,5],[\\\"components.amcCampaign.ads.advertisements.depictionPreview.depiction\\\"],null],[28,[37,6],[[30,0,[\\\"selectedDepiction\\\"]],\\\"name\\\"],null],[28,[37,5],[\\\"components.amcCampaign.ads.advertisements.depictionPreview.chooseDepiction\\\"],null],\\\"id\\\",[30,0,[\\\"formattedDepictions\\\"]],[30,0,[\\\"onSelectDepiction\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,2]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[1,2]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@placeholder\\\",\\\"@selected\\\",\\\"@valueKey\\\",\\\"@options\\\",\\\"@onChange\\\"],[[28,[37,5],[\\\"components.amcCampaign.ads.advertisements.depictionPreview.variants\\\"],null],[28,[37,5],[\\\"components.amcCampaign.ads.advertisements.depictionPreview.chooseVariant\\\"],null],[28,[37,6],[[30,0,[\\\"selectedVariant\\\"]],\\\"name\\\"],null],\\\"id\\\",[30,0,[\\\"variantOptions\\\"]],[28,[37,7],[[28,[37,8],[[30,0,[\\\"selectedVariant\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[3,4]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@selected\\\",\\\"@placeholder\\\",\\\"@valueKey\\\",\\\"@options\\\",\\\"@onChange\\\"],[[28,[37,5],[[28,[37,9],[\\\"components.amcCampaign.ads.advertisements.depictionPreview.\\\",[52,[30,0,[\\\"onlyVideos\\\"]],\\\"video\\\",\\\"media\\\"]],null]],null],[28,[37,6],[[30,0,[\\\"selectedMedia\\\"]],\\\"name\\\"],null],[28,[37,5],[[28,[37,9],[\\\"components.amcCampaign.ads.advertisements.depictionPreview.\\\",[52,[30,0,[\\\"onlyVideos\\\"]],\\\"chooseVideo\\\",\\\"chooseMedia\\\"]],null]],null],\\\"mediumId\\\",[30,0,[\\\"mediaOptions\\\"]],[28,[37,7],[[28,[37,8],[[30,0,[\\\"selectedMedia\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,5,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,6]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"selectedMedia\\\",\\\"type\\\"]],\\\"video\\\"],null],[[[1,\\\"        \\\"],[10,\\\"img\\\"],[14,0,\\\"depiction-preview__thumbnail mr2\\\"],[15,\\\"src\\\",[28,[37,12],[[30,6,[\\\"thumbnailUrl\\\"]],[28,[37,13],null,[[\\\"size\\\",\\\"poi\\\"],[\\\"24x24\\\",[30,6,[\\\"transformations\\\",\\\"poi\\\"]]]]]],null]],[15,\\\"alt\\\",[30,0,[\\\"selectedMedia\\\",\\\"name\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"img\\\"],[14,0,\\\"depiction-preview__thumbnail mr2\\\"],[15,\\\"src\\\",[28,[37,12],[[30,6,[\\\"url\\\"]],[28,[37,13],null,[[\\\"size\\\",\\\"poi\\\"],[\\\"24x24\\\",[30,6,[\\\"transformations\\\",\\\"poi\\\"]]]]]],null]],[15,\\\"alt\\\",[30,0,[\\\"selectedMedia\\\",\\\"name\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[1,[30,6,[\\\"name\\\"]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[5,6]]]]],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,0],null,[[\\\"@gap\\\",\\\"@rowGap\\\",\\\"@columns\\\"],[\\\"24\\\",\\\"24\\\",\\\"1,2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedMedia\\\",\\\"labels\\\"]],[[[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"selectedMedia\\\",\\\"labels\\\"]]],null]],null],null,[[[41,[28,[37,16],[[30,7],\\\"portrait\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"depiction-preview__grid-row-3\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@cta\\\",\\\"@headline\\\",\\\"@text\\\",\\\"@title\\\",\\\"@media\\\",\\\"@type\\\"],[[30,0,[\\\"content\\\",\\\"ctaText\\\"]],[30,0,[\\\"content\\\",\\\"headline\\\"]],[30,0,[\\\"content\\\",\\\"text\\\"]],[30,0,[\\\"content\\\",\\\"title\\\"]],[30,0,[\\\"selectedMedia\\\"]],\\\"portrait\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,17],null,[[\\\"@cta\\\",\\\"@headline\\\",\\\"@text\\\",\\\"@title\\\",\\\"@media\\\",\\\"@type\\\"],[[30,0,[\\\"content\\\",\\\"ctaText\\\"]],[30,0,[\\\"content\\\",\\\"headline\\\"]],[30,0,[\\\"content\\\",\\\"text\\\"]],[30,0,[\\\"content\\\",\\\"title\\\"]],[30,0,[\\\"selectedMedia\\\"]],[30,7]]],null],[1,\\\"\\\\n\\\"]],[]]]],[7]],null]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"depiction-preview__grid-row-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@cta\\\",\\\"@headline\\\",\\\"@text\\\",\\\"@title\\\",\\\"@media\\\",\\\"@type\\\"],[[30,0,[\\\"content\\\",\\\"ctaText\\\"]],[30,0,[\\\"content\\\",\\\"headline\\\"]],[30,0,[\\\"content\\\",\\\"text\\\"]],[30,0,[\\\"content\\\",\\\"title\\\"]],[30,0,[\\\"selectedMedia\\\"]],\\\"portrait\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]]]],[\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"label\\\"],false,[\\\"grid\\\",\\\"did-insert\\\",\\\"did-update\\\",\\\"unless\\\",\\\"ui-select\\\",\\\"t\\\",\\\"get\\\",\\\"fn\\\",\\\"mut\\\",\\\"concat\\\",\\\"if\\\",\\\"equal\\\",\\\"mm-medium-url-options\\\",\\\"hash\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"amc-campaign/ads/preview\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/advertisements/depiction-preview.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignAdsAdvertisementsDepictionPreviewComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.array), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec4 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec5 = (0, _emberArgTypes.arg)(_propTypes.string), _dec6 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec7 = (0, _emberArgTypes.arg)(_propTypes.object), _dec8 = (0, _object.computed)('depiction', 'depictionMeta.ctaTypes', 'formattedDepictions', 'hideDepictionSelect', 'selectedDepiction.id', 'selectedMedia', 'selectedVariant.id'), _dec9 = (0, _object.computed)('depiction', 'formattedDepictions', 'hideDepictionSelect', 'mediaKey', 'selectedDepiction.id'), _dec10 = (0, _object.computed)('depiction.variants.length', 'formattedDepictions', 'hideDepictionSelect', 'selectedDepiction.{id,variants.length}'), _class = class AmcCampaignAdsAdvertisementsDepictionPreviewComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      /**\n       * the depictions\n       *\n       * @property depictions\n       * @type {Array}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"depictions\", _descriptor2, this);\n      /**\n       * single depiction\n       *\n       * @property depiction\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"depiction\", _descriptor3, this);\n      /**\n       * whether only videos are selectable\n       *\n       * @property onlyVideos\n       * @type {Boolean}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"onlyVideos\", _descriptor4, this);\n      /**\n       * whether only the portrait preview should be visible\n       *\n       * @property onlyPortrait\n       * @type {Boolean}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"onlyPortrait\", _descriptor5, this);\n      /**\n       * the key which is used for the media\n       *\n       * @property mediaKey\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"mediaKey\", _descriptor6, this);\n      /**\n       * Hide depiction select\n       *\n       * @property hideDepictionSelect\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"hideDepictionSelect\", _descriptor7, this);\n      /**\n       * the depiction meta\n       *\n       * @property depictionMeta\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"depictionMeta\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedVariant\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectedDepiction\", _descriptor10, this);\n      _initializerDefineProperty(this, \"selectedMedia\", _descriptor11, this);\n    }\n    get content() {\n      var _this$depictionMeta;\n      if (!this.hideDepictionSelect && (!this.selectedDepiction || !this.selectedVariant || !this.depictionMeta) || this.hideDepictionSelect && (!this.depiction || !this.selectedVariant || !this.depictionMeta)) {\n        return null;\n      }\n      let depiction;\n      if (this.depiction) {\n        depiction = this.depiction;\n      } else {\n        depiction = this.formattedDepictions.find(depiction => depiction.id === this.selectedDepiction.id);\n      }\n      let ctaText = '';\n      if ((_this$depictionMeta = this.depictionMeta) !== null && _this$depictionMeta !== void 0 && _this$depictionMeta.ctaTypes) {\n        var _this$depictionMeta$c;\n        ctaText = (_this$depictionMeta$c = this.depictionMeta.ctaTypes.find(ctaType => ctaType.value === depiction.ctaType)) === null || _this$depictionMeta$c === void 0 ? void 0 : _this$depictionMeta$c.label;\n      }\n      const variant = depiction.variants[this.selectedVariant.id - 1];\n      if (!variant) {\n        return null;\n      }\n      const {\n        title,\n        text\n      } = variant;\n      const {\n        headline\n      } = depiction;\n      return {\n        title: title || '',\n        headline: headline || '',\n        text: text || '',\n        ctaText: ctaText || ''\n      };\n    }\n    get formattedDepictions() {\n      if (!this.depictions) {\n        return [];\n      }\n      return this.depictions.map(depiction => {\n        return {\n          id: depiction.id,\n          name: depiction.name,\n          headline: depiction.headline,\n          variants: depiction.variants,\n          [this.mediaKey]: depiction[this.mediaKey],\n          ctaType: depiction.ctaType\n        };\n      });\n    }\n    get mediaOptions() {\n      if (!this.hideDepictionSelect && !this.selectedDepiction || this.hideDepictionSelect && !this.depiction) {\n        return [];\n      }\n      if (this.depiction) {\n        return this.depiction[this.mediaKey];\n      }\n      const depiction = this.formattedDepictions.find(depiction => depiction.id === this.selectedDepiction.id);\n      if (!depiction) {\n        return [];\n      }\n      return depiction[this.mediaKey];\n    }\n    get variantOptions() {\n      let {\n        hideDepictionSelect,\n        selectedDepiction,\n        depiction\n      } = this;\n      if (!hideDepictionSelect && !selectedDepiction || hideDepictionSelect && (!depiction || !depiction.variants)) {\n        return [];\n      }\n      const maybeMapVariants = depiction => {\n        return ((depiction === null || depiction === void 0 ? void 0 : depiction.variants) || []).map((variant, index) => {\n          return {\n            name: this.intl.t('components.amcCampaign.ads.advertisements.depictionPreview.variant', {\n              count: index + 1\n            }),\n            id: index + 1\n          };\n        });\n      };\n      if (depiction) {\n        return maybeMapVariants(depiction);\n      }\n      depiction = this.formattedDepictions.find(depiction => depiction.id === this.selectedDepiction.id);\n      return maybeMapVariants(depiction);\n    }\n    setInitialValues() {\n      let initialSelectedDepiction;\n      if (this.depiction) {\n        initialSelectedDepiction = this.depiction;\n      } else {\n        initialSelectedDepiction = this.formattedDepictions[0];\n      }\n      if (!initialSelectedDepiction.variants || initialSelectedDepiction.variants.length === 0 || !initialSelectedDepiction[this.mediaKey] || initialSelectedDepiction[this.mediaKey].length === 0) {\n        return;\n      }\n      const initialSelectedMedia = initialSelectedDepiction[this.mediaKey][0];\n      this.selectedDepiction = initialSelectedDepiction;\n      this.selectedMedia = initialSelectedMedia;\n      this.selectedVariant = {\n        name: this.intl.t('components.amcCampaign.ads.advertisements.depictionPreview.variant', {\n          count: 1\n        }),\n        id: 1\n      };\n    }\n    onSelectDepiction(selectedDepiction) {\n      this.selectedDepiction = selectedDepiction;\n\n      // depiction has changed, update variant\n      if (this.selectedVariant) {\n        var _depiction$this$media, _depiction$this$media2;\n        const depiction = this.formattedDepictions.find(depiction => depiction.id === selectedDepiction.id);\n        let selectedMedia = (_depiction$this$media = (_depiction$this$media2 = depiction[this.mediaKey]) === null || _depiction$this$media2 === void 0 ? void 0 : _depiction$this$media2[0]) !== null && _depiction$this$media !== void 0 ? _depiction$this$media : null;\n        let selectedVariant = null;\n        if (selectedMedia) {\n          selectedVariant = {\n            name: this.intl.t('components.amcCampaign.ads.advertisements.depictionPreview.variant', {\n              count: 1\n            }),\n            id: 1\n          };\n        }\n        this.selectedVariant = selectedVariant;\n        this.selectedMedia = selectedMedia;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"depictions\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"depiction\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"onlyVideos\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"onlyPortrait\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"mediaKey\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 'images';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"hideDepictionSelect\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"depictionMeta\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"selectedVariant\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"selectedDepiction\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"selectedMedia\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"content\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"content\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"mediaOptions\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"mediaOptions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"variantOptions\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"variantOptions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setInitialValues\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setInitialValues\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectDepiction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectDepiction\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsAdvertisementsDepictionPreviewComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/advertisements/depiction-select-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"@ember/object/computed\", \"prop-types\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _computed, _propTypes, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{t \"components.amcCampaign.ads.advertisements.depictionSelect.title\"}}\n    @size=\"md\"\n    @onClose={{this.close}} as |m|\n  >\n    <m.header />\n    <m.content as |c|>\n      <c.body>\n        {{#if this.isEmpty}}\n          <div class=\"flex flex-column items-center justify-center text-center pv4 mv4\">\n            {{svg-jar \"empty-content-grey\"}}\n            <div class=\"font-sm secondary\">\n              {{t \"components.amcCampaign.ads.advertisements.depictionSelect.empty\" htmlSafe=true}}\n            </div>\n          </div>\n        {{else}}\n          <UiSelectionContainer\n            @class=\"mt3\"\n            @items={{this.formattedDepictions}}\n            @initialSelection={{this.initialSelected}}\n            @onSelectionChange={{fn (mut this.selectedDepictions)}}\n            @onSelectionAdd={{fn (mut this.selectedDepictions)}} as |selection|\n          >\n            <UiList @items={{selection.items}} as |list item|>\n              <list.item\n                @class=\"items-center\"\n                @title={{item.name}}\n                @isCheckboxFixed={{true}}\n                @isSelected={{ui-array-includes item selection.selectedKeys}} as |controls|\n              >\n                <controls.thumbnail\n                  @src={{mm-medium-url-options item.image (hash size=\"48x48\")}}\n                  @alt={{item.title}}\n                />\n  \n                <controls.right>\n                  <div class=\"flex justify-center items-center\">\n                    <controls.checkbox\n                      @isChecked={{controls.isSelected}}\n                      @onChange={{fn selection.selectItem item}}\n                    />\n                  </div>\n                </controls.right>\n              </list.item>\n            </UiList>\n          </UiSelectionContainer>\n        {{/if}}\n      </c.body>\n    </m.content>\n    <m.footer>\n      <UiButton\n        @label={{t \"adCampaigns.facebookContentAds.edit.addDepiction\"}}\n        @isSecondary={{true}}\n        @onClick={{this.addDepictions}}\n      />\n    </m.footer>\n  </UiModal>\n  \n  <UiDiscardChanges\n    @isOpen={{this.isDiscardChanges}}\n    @onDiscard={{this.onClose}}\n    @onClose={{fn (mut this.isDiscardChanges)}}\n  />\n  */\n  {\n    \"id\": \"50MXQIcT\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@size\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.depictionSelect.title\\\"],null],\\\"md\\\",[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEmpty\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pv4 mv4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"components.amcCampaign.ads.advertisements.depictionSelect.empty\\\"],[[\\\"htmlSafe\\\"],[true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,4],null,[[\\\"@class\\\",\\\"@items\\\",\\\"@initialSelection\\\",\\\"@onSelectionChange\\\",\\\"@onSelectionAdd\\\"],[\\\"mt3\\\",[30,0,[\\\"formattedDepictions\\\"]],[30,0,[\\\"initialSelected\\\"]],[28,[37,5],[[28,[37,6],[[30,0,[\\\"selectedDepictions\\\"]]],null]],null],[28,[37,5],[[28,[37,6],[[30,0,[\\\"selectedDepictions\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,7],null,[[\\\"@items\\\"],[[30,3,[\\\"items\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,4,[\\\"item\\\"]],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@isCheckboxFixed\\\",\\\"@isSelected\\\"],[\\\"items-center\\\",[30,5,[\\\"name\\\"]],true,[28,[37,8],[[30,5],[30,3,[\\\"selectedKeys\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,6,[\\\"thumbnail\\\"]],null,[[\\\"@src\\\",\\\"@alt\\\"],[[28,[37,9],[[30,5,[\\\"image\\\"]],[28,[37,10],null,[[\\\"size\\\"],[\\\"48x48\\\"]]]],null],[30,5,[\\\"title\\\"]]]],null],[1,\\\"\\\\n\\\\n              \\\"],[8,[30,6,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"flex justify-center items-center\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[30,6,[\\\"checkbox\\\"]],null,[[\\\"@isChecked\\\",\\\"@onChange\\\"],[[30,6,[\\\"isSelected\\\"]],[28,[37,5],[[30,3,[\\\"selectItem\\\"]],[30,5]],null]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[6]]]]],[1,\\\"\\\\n          \\\"]],[4,5]]]]],[1,\\\"\\\\n        \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,11],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"adCampaigns.facebookContentAds.edit.addDepiction\\\"],null],true,[30,0,[\\\"addDepictions\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,12],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\",\\\"@onClose\\\"],[[30,0,[\\\"isDiscardChanges\\\"]],[30,0,[\\\"onClose\\\"]],[28,[37,5],[[28,[37,6],[[30,0,[\\\"isDiscardChanges\\\"]]],null]],null]]],null]],[\\\"m\\\",\\\"c\\\",\\\"selection\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\"],false,[\\\"ui-modal\\\",\\\"t\\\",\\\"if\\\",\\\"svg-jar\\\",\\\"ui-selection-container\\\",\\\"fn\\\",\\\"mut\\\",\\\"ui-list\\\",\\\"ui-array-includes\\\",\\\"mm-medium-url-options\\\",\\\"hash\\\",\\\"ui-button\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/advertisements/depiction-select-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignAdsAdvertisementsDepictionSelectDialogComponent = _exports.default = (_dec = (0, _computed.equal)('depictions.length', 0), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _emberArgTypes.arg)(_propTypes.array), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _dec6 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignAdsAdvertisementsDepictionSelectDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      /**\n       * whether the depictions list is empty\n       *\n       * @computed isEmpty\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isEmpty\", _descriptor2, this);\n      /**\n       * the adapter options\n       *\n       * @argument adapterOptions\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"adapterOptions\", _descriptor3, this);\n      /**\n       * the depictions model\n       *\n       * @property depictions\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"depictions\", _descriptor4, this);\n      /**\n       * the initial selected depictions\n       *\n       * @property initialSelected\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"initialSelected\", _descriptor5, this);\n      /**\n       * whether the discard changes dialog is open\n       *\n       * @property isDiscardChanges\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChanges\", _descriptor6, this);\n      /**\n       * the selected depictions\n       *\n       * @property depictions\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"selectedDepictions\", _descriptor7, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor8, this);\n      /**\n       * callback function to save the selected depictions\n       *\n       * @argument onSave\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onAdd\", _descriptor9, this);\n    }\n    get formattedDepictions() {\n      var _this$depictions;\n      if (!this.depictions) {\n        return [];\n      }\n      return (_this$depictions = this.depictions) === null || _this$depictions === void 0 ? void 0 : _this$depictions.filter(depiction => !depiction.isNew).map(depiction => {\n        var _depiction$images;\n        const formattedDepiction = {\n          id: depiction.id,\n          name: depiction.name\n        };\n        if ((depiction === null || depiction === void 0 || (_depiction$images = depiction.images) === null || _depiction$images === void 0 ? void 0 : _depiction$images.length) > 0) {\n          let imageUrl;\n          if (depiction.images[0].thumbnailUrl) {\n            imageUrl = depiction.images[0].thumbnailUrl;\n          } else {\n            imageUrl = depiction.images[0].url;\n          }\n          formattedDepiction.hasImage = true;\n          formattedDepiction.image = imageUrl;\n        }\n        return formattedDepiction;\n      });\n    }\n    async addDepictions() {\n      if (this.selectedDepictions.length > 0) {\n        this.onAdd(this.selectedDepictions);\n      }\n      this.onClose();\n    }\n    close() {\n      if (this.selectedDepictions.length > 0) {\n        this.isDiscardChanges = true;\n      } else {\n        this.onClose();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isEmpty\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"adapterOptions\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"depictions\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"initialSelected\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"selectedDepictions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"onAdd\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"addDepictions\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addDepictions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsAdvertisementsDepictionSelectDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/advertisements/depiction-update-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"@ember/object/computed\", \"prop-types\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _computed, _propTypes, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{t \"components.amcCampaign.ads.advertisements.depictionUpdateDialog.title\"}}\n    @size=\"md\"\n    @onClose={{this.close}} as |m|\n  >\n    <m.header />\n    <m.content as |c|>\n      <c.body>\n        {{#if this.addedDepictions.length}}\n          <UiList\n            @items={{this.addedDepictions}}\n            @hasMobileSpacing={{true}}\n            @title={{t\n              \"components.amcCampaign.ads.advertisements.depictionUpdateDialog.newDepictions\"\n            }}\n            @classNames=\"pb3\" as |list item|\n          >\n            <list.item\n              @description={{t\n                \"components.amcCampaign.ads.advertisements.depictionUpdateDialog.byUser\"\n                user=item.user.name\n              }}\n              @state={{\"success\"}} as |controls|\n            >\n              <controls.state />\n              <controls.title>\n                <span class=\"ellipsis mr1\">\n                  {{item.name}}\n                </span>\n                <UiIconButton @icon=\"new-window\" @onClick={{fn this.openDepiction item.id}} />\n              </controls.title>\n  \n              <controls.right>\n                <UiSwitch\n                  @value={{ui-array-includes item this.selectedDepictionIds}}\n                  @onChange={{fn this.selectDepiction item.id}}\n                />\n              </controls.right>\n            </list.item>\n          </UiList>\n        {{/if}}\n  \n        {{#if this.updatedDepictions.length}}\n          <UiList\n            @items={{this.updatedDepictions}}\n            @hasMobileSpacing={{true}}\n            @title={{t\n              \"components.amcCampaign.ads.advertisements.depictionUpdateDialog.updatedDepictions\"\n            }}\n            @classNames=\"pb3\" as |list item|\n          >\n            <list.item\n              @description={{t\n                \"components.amcCampaign.ads.advertisements.depictionUpdateDialog.byUser\"\n                user=item.user.name\n              }}\n              @state={{\"warning\"}} as |controls|\n            >\n              <controls.state />\n              <controls.title>\n                <span class=\"ellipsis mr1\">\n                  {{item.name}}\n                </span>\n                <UiIconButton @icon=\"new-window\" @onClick={{fn this.openDepiction item.id}} />\n              </controls.title>\n  \n              <controls.right>\n                <UiSwitch\n                  @value={{ui-array-includes item this.selectedDepictionIds}}\n                  @onChange={{fn this.selectDepiction item.id}}\n                />\n              </controls.right>\n            </list.item>\n          </UiList>\n        {{/if}}\n  \n        {{#if this.removedDepictions.length}}\n          <UiList\n            @items={{this.removedDepictions}}\n            @hasMobileSpacing={{true}}\n            @title={{t\n              \"components.amcCampaign.ads.advertisements.depictionUpdateDialog.removedDepictions\"\n            }}\n            @classNames=\"pb3\" as |list item|\n          >\n            <list.item\n              @description={{t\n                \"components.amcCampaign.ads.advertisements.depictionUpdateDialog.byUser\"\n                user=item.user.name\n              }}\n              @state={{\"error\"}} as |controls|\n            >\n              <controls.state />\n              <controls.title>\n                <span class=\"ellipsis mr1\">\n                  {{item.name}}\n                </span>\n                <UiIconButton @icon=\"new-window\" @onClick={{fn this.openDepiction item.id}} />\n              </controls.title>\n  \n              <controls.right>\n                <UiSwitch\n                  @value={{ui-array-includes item this.selectedDepictionIds}}\n                  @onChange={{fn this.selectDepiction item.id}}\n                />\n              </controls.right>\n            </list.item>\n          </UiList>\n        {{/if}}\n      </c.body>\n    </m.content>\n    <m.footer>\n      <UiButton @label={{t \"global.actions.update\"}} @isSecondary={{true}} @onClick={{this.update}} />\n    </m.footer>\n  </UiModal>\n  \n  <UiDiscardChanges\n    @isOpen={{this.isDiscardChangesDialog}}\n    @onDiscard={{this.confirmDiscard}}\n    @onClose={{fn (mut this.isDiscardChangesDialog)}}\n  />\n  */\n  {\n    \"id\": \"Pm2dZEcp\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@size\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.depictionUpdateDialog.title\\\"],null],\\\"md\\\",[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addedDepictions\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@hasMobileSpacing\\\",\\\"@title\\\",\\\"@classNames\\\"],[[30,0,[\\\"addedDepictions\\\"]],true,[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.depictionUpdateDialog.newDepictions\\\"],null],\\\"pb3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@description\\\",\\\"@state\\\"],[[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.depictionUpdateDialog.byUser\\\"],[[\\\"user\\\"],[[30,4,[\\\"user\\\",\\\"name\\\"]]]]],\\\"success\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"ellipsis mr1\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,4],null,[[\\\"@icon\\\",\\\"@onClick\\\"],[\\\"new-window\\\",[28,[37,5],[[30,0,[\\\"openDepiction\\\"]],[30,4,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,5,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@onChange\\\"],[[28,[37,7],[[30,4],[30,0,[\\\"selectedDepictionIds\\\"]]],null],[28,[37,5],[[30,0,[\\\"selectDepiction\\\"]],[30,4,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[5]]]]],[1,\\\"\\\\n        \\\"]],[3,4]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updatedDepictions\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@hasMobileSpacing\\\",\\\"@title\\\",\\\"@classNames\\\"],[[30,0,[\\\"updatedDepictions\\\"]],true,[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.depictionUpdateDialog.updatedDepictions\\\"],null],\\\"pb3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,6,[\\\"item\\\"]],null,[[\\\"@description\\\",\\\"@state\\\"],[[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.depictionUpdateDialog.byUser\\\"],[[\\\"user\\\"],[[30,7,[\\\"user\\\",\\\"name\\\"]]]]],\\\"warning\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,8,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n            \\\"],[8,[30,8,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"ellipsis mr1\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,4],null,[[\\\"@icon\\\",\\\"@onClick\\\"],[\\\"new-window\\\",[28,[37,5],[[30,0,[\\\"openDepiction\\\"]],[30,7,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,8,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@onChange\\\"],[[28,[37,7],[[30,7],[30,0,[\\\"selectedDepictionIds\\\"]]],null],[28,[37,5],[[30,0,[\\\"selectDepiction\\\"]],[30,7,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[8]]]]],[1,\\\"\\\\n        \\\"]],[6,7]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"removedDepictions\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@hasMobileSpacing\\\",\\\"@title\\\",\\\"@classNames\\\"],[[30,0,[\\\"removedDepictions\\\"]],true,[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.depictionUpdateDialog.removedDepictions\\\"],null],\\\"pb3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,9,[\\\"item\\\"]],null,[[\\\"@description\\\",\\\"@state\\\"],[[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.depictionUpdateDialog.byUser\\\"],[[\\\"user\\\"],[[30,10,[\\\"user\\\",\\\"name\\\"]]]]],\\\"error\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,11,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n            \\\"],[8,[30,11,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"ellipsis mr1\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,10,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,4],null,[[\\\"@icon\\\",\\\"@onClick\\\"],[\\\"new-window\\\",[28,[37,5],[[30,0,[\\\"openDepiction\\\"]],[30,10,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,11,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@onChange\\\"],[[28,[37,7],[[30,10],[30,0,[\\\"selectedDepictionIds\\\"]]],null],[28,[37,5],[[30,0,[\\\"selectDepiction\\\"]],[30,10,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[11]]]]],[1,\\\"\\\\n        \\\"]],[9,10]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,8],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.update\\\"],null],true,[30,0,[\\\"update\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,9],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\",\\\"@onClose\\\"],[[30,0,[\\\"isDiscardChangesDialog\\\"]],[30,0,[\\\"confirmDiscard\\\"]],[28,[37,5],[[28,[37,10],[[30,0,[\\\"isDiscardChangesDialog\\\"]]],null]],null]]],null]],[\\\"m\\\",\\\"c\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\"],false,[\\\"ui-modal\\\",\\\"t\\\",\\\"if\\\",\\\"ui-list\\\",\\\"ui-icon-button\\\",\\\"fn\\\",\\\"ui-switch\\\",\\\"ui-array-includes\\\",\\\"ui-button\\\",\\\"ui-discard-changes\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/advertisements/depiction-update-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignAdsAdvertisementsDepictionUpdateDialogComponent = _exports.default = (_dec = (0, _computed.alias)('uiAppSettings.languages.defaultLanguage'), _dec2 = (0, _emberArgTypes.arg)(_propTypes.array), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _emberArgTypes.arg)(_propTypes.object), _dec5 = (0, _emberArgTypes.arg)(_propTypes.string), _dec6 = (0, _computed.filterBy)('depictionUpdates', 'type', 'added'), _dec7 = (0, _computed.filterBy)('depictionUpdates', 'type', 'removed'), _dec8 = (0, _computed.filterBy)('depictionUpdates', 'type', 'updated'), _dec9 = (0, _emberArgTypes.arg)(_propTypes.func), _dec10 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignAdsAdvertisementsDepictionUpdateDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"defaultLanguage\", _descriptor7, this);\n      /**\n       * the depiction updates\n       * @property depictionUpdates\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"depictionUpdates\", _descriptor8, this);\n      /**\n       * the adapteroptions to save the model\n       *\n       * @argument adapterOptions\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"adapterOptions\", _descriptor9, this);\n      /**\n       * the model\n       *\n       * @property depictions\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor10, this);\n      /**\n       * the depiction route\n       *\n       * @property depictionRoute\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"depictionRoute\", _descriptor11, this);\n      /**\n       * the selected depictions\n       * @property selectedDepictionIds\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"selectedDepictionIds\", _descriptor12, this);\n      /**\n       * whether the discard changes dialog is open\n       * @property isDiscardChangesDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChangesDialog\", _descriptor13, this);\n      _initializerDefineProperty(this, \"addedDepictions\", _descriptor14, this);\n      _initializerDefineProperty(this, \"removedDepictions\", _descriptor15, this);\n      _initializerDefineProperty(this, \"updatedDepictions\", _descriptor16, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor17, this);\n      /**\n       * callback function for successful update\n       *\n       * @argument onUpdate\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onUpdate\", _descriptor18, this);\n    }\n    async update() {\n      // Get selected depictions by their IDs\n      const selectedDepictions = this.selectedDepictionIds.map(depictionId => {\n        return this.depictionUpdates.find(depiction => depiction.id == depictionId);\n      });\n      try {\n        const adapter = this.store.adapterFor('advertisement');\n        const url = adapter.urlForFindAll('advertisement', {\n          adapterOptions: this.adapterOptions\n        });\n        const endpoint = `${url}/${this.model.id}/pendingDepictionUpdates`;\n        const response = await this.authenticatedFetch.fetch(endpoint, {\n          headers: {\n            'Accept-Language': this.defaultLanguage || 'de'\n          },\n          method: 'PUT',\n          body: JSON.stringify(selectedDepictions)\n        });\n        if (!response || !response.ok) {\n          throw new Error(`[DEPICTION-UPDATE] ${response}`);\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        this.onUpdate();\n      } catch (e) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }\n    selectDepiction(depictionId, checked) {\n      let selectedDepictionIds = this.selectedDepictionIds;\n      if (checked) {\n        selectedDepictionIds.push(depictionId);\n      } else {\n        selectedDepictionIds = selectedDepictionIds.filter(id => id !== depictionId);\n      }\n      this.selectedDepictionIds = selectedDepictionIds;\n    }\n    openDepiction(id) {\n      this.router.transitionTo(this.depictionRoute, id);\n    }\n    close() {\n      if (this.selectedDepictionIds.length === 0) {\n        this.onClose();\n      }\n      this.isDiscardChangesDialog = true;\n    }\n    confirmDiscard() {\n      this.isDiscardChangesDialog = false;\n      this.onClose();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"defaultLanguage\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"depictionUpdates\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"adapterOptions\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return {};\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"depictionRoute\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"selectedDepictionIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChangesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"addedDepictions\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"removedDepictions\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"updatedDepictions\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"onUpdate\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"update\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"update\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectDepiction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectDepiction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openDepiction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openDepiction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"confirmDiscard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"confirmDiscard\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsAdvertisementsDepictionUpdateDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/advertisements/depiction-variants\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"amc-campaign-depiction-variant flex\">\n    {{#each this.variants as |variant index|}}\n      <div\n        class={{concat\n          \"variant-item flex items-center cpointer br1 ba mr1 \"\n          (if\n            (equal this.activeVariant index) \"bg-blue--10 selected blue\" \"b--secondary-10 secondary\"\n          )\n        }}\n        role=\"button\"\n        {{action \"selectVariant\" index bubbles=false}}\n      >\n        <div class=\"font-sm mr1\">\n          {{t \"components.amcCampaign.ads.advertisements.depictionVariants.name\" count=variant}}\n        </div>\n        {{#unless this.hideRemoveAction}}\n          {{! template-lint-disable }}\n          <div role=\"button\" {{action \"onRemoveVariant\" index bubbles=false}}>\n            {{svg-jar \"close\" width=\"16\" height=\"16\"}}\n          </div>\n          {{! template-lint-enable  }}\n        {{/unless}}\n      </div>\n    {{/each}}\n  \n    {{#unless @isReadOnly}}\n      <div\n        class=\"variant-item selected flex items-center pv05 ph1 cpointer br1 bg-blue--10 ba mr1\"\n        role=\"button\"\n        {{action \"onAddVariant\"}}\n      >\n        <div class=\"font-sm blue mr1\">\n          {{t \"components.amcCampaign.ads.advertisements.depictionVariants.addVariant\"}}\n        </div>\n        {{svg-jar \"plus\" width=\"16\" height=\"16\" class=\"blue\"}}\n      </div>\n    {{/unless}}\n  </div>\n  */\n  {\n    \"id\": \"xaRrLFbv\",\n    \"block\": \"[[[10,0],[14,0,\\\"amc-campaign-depiction-variant flex\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"variants\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[11,0],[16,0,[28,[37,2],[\\\"variant-item flex items-center cpointer br1 ba mr1 \\\",[52,[28,[37,4],[[30,0,[\\\"activeVariant\\\"]],[30,2]],null],\\\"bg-blue--10 selected blue\\\",\\\"b--secondary-10 secondary\\\"]],null]],[24,\\\"role\\\",\\\"button\\\"],[4,[38,5],[[30,0],\\\"selectVariant\\\",[30,2]],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm mr1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"components.amcCampaign.ads.advertisements.depictionVariants.name\\\"],[[\\\"count\\\"],[[30,1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"hideRemoveAction\\\"]]],[[[1,\\\"        \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[4,[38,5],[[30,0],\\\"onRemoveVariant\\\",[30,2]],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"close\\\"],[[\\\"width\\\",\\\"height\\\"],[\\\"16\\\",\\\"16\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,3]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"variant-item selected flex items-center pv05 ph1 cpointer br1 bg-blue--10 ba mr1\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,5],[[30,0],\\\"onAddVariant\\\"],null],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm blue mr1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"components.amcCampaign.ads.advertisements.depictionVariants.addVariant\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[\\\"plus\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"16\\\",\\\"16\\\",\\\"blue\\\"]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"variant\\\",\\\"index\\\",\\\"@isReadOnly\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"concat\\\",\\\"if\\\",\\\"equal\\\",\\\"action\\\",\\\"t\\\",\\\"unless\\\",\\\"svg-jar\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/advertisements/depiction-variants.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignAdsAdvertisementsDepictionVariantsComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.number), _dec2 = (0, _emberArgTypes.arg)(_propTypes.number), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _dec6 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignAdsAdvertisementsDepictionVariantsComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"numberOfVariants\", _descriptor, this);\n      _initializerDefineProperty(this, \"activeVariant\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor3, this);\n      /**\n       * callback function to add a new variant\n       *\n       * @argument onAddVariant\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onAddVariant\", _descriptor4, this);\n      /**\n       * callback function to remove a variant\n       *\n       * @argument onRemoveVariant\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onRemoveVariant\", _descriptor5, this);\n      /**\n       * callback function to select a variant\n       *\n       * @argument onSelectVariant\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onSelectVariant\", _descriptor6, this);\n    }\n    get variants() {\n      return Array.from({\n        length: this.numberOfVariants\n      }, (_, i) => i + 1);\n    }\n    get hideRemoveAction() {\n      return this.numberOfVariants <= 1 || this.isReadOnly;\n    }\n    selectVariant(variant) {\n      if (this.activeVariant === variant) {\n        return;\n      }\n      this.onSelectVariant(variant);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberOfVariants\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 0;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"activeVariant\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 0;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"onAddVariant\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"onRemoveVariant\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"onSelectVariant\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"selectVariant\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectVariant\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsAdvertisementsDepictionVariantsComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/advertisements/publish-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{t (concat this.intlBaseKey \".title\")}}\n    @modalClassNames=\"publish-dialog\"\n    @size=\"md\"\n    @onClose={{this.onClose}} as |modal|\n  >\n    <modal.header />\n    <modal.content @classNames=\"pb0\" as |content|>\n      <content.body>\n        <div class=\"bb b--secondary-10 w-100\"></div>\n        {{#each this.validationItems as |item|}}\n          <AmcCampaign::Ads::Advertisements::PublishDialog::Item\n            @title={{item.title}}\n            @successMessage={{item.successMessage}}\n            @errorMessage={{item.errorMessage}}\n          />\n        {{/each}}\n      </content.body>\n    </modal.content>\n    <modal.footer>\n      <UiButton\n        @label={{t \"global.actions.publish\"}}\n        @isDisabled={{this.isPublishDisabled}}\n        @isSecondary={{true}}\n        @onClick={{this.publish}}\n      />\n    </modal.footer>\n  </UiModal>\n  */\n  {\n    \"id\": \"t+QMGvad\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@modalClassNames\\\",\\\"@size\\\",\\\"@onClose\\\"],[[28,[37,1],[[28,[37,2],[[30,0,[\\\"intlBaseKey\\\"]],\\\".title\\\"],null]],null],\\\"publish-dialog\\\",\\\"md\\\",[30,0,[\\\"onClose\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@classNames\\\"],[\\\"pb0\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"bb b--secondary-10 w-100\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"validationItems\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,5],null,[[\\\"@title\\\",\\\"@successMessage\\\",\\\"@errorMessage\\\"],[[30,3,[\\\"title\\\"]],[30,3,[\\\"successMessage\\\"]],[30,3,[\\\"errorMessage\\\"]]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,6],null,[[\\\"@label\\\",\\\"@isDisabled\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.publish\\\"],null],[30,0,[\\\"isPublishDisabled\\\"]],true,[30,0,[\\\"publish\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\",\\\"content\\\",\\\"item\\\"],false,[\\\"ui-modal\\\",\\\"t\\\",\\\"concat\\\",\\\"each\\\",\\\"-track-array\\\",\\\"amc-campaign/ads/advertisements/publish-dialog/item\\\",\\\"ui-button\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/advertisements/publish-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignAdsAdvertisementsPublishDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.array), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _dec6 = (0, _object.computed)('changeset', 'intlBaseKey', 'validationProperties'), _class = class AmcCampaignAdsAdvertisementsPublishDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      /**\n       * current changeset\n       *\n       * @argument changeset\n       * @type {Changeset}\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor2, this);\n      /**\n       * the base key for the translations\n       *\n       * @argument intlBaseKey\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"intlBaseKey\", _descriptor3, this);\n      /**\n       * the name of the propertys which should be validated\n       *\n       * @argument Array\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"validationProperties\", _descriptor4, this);\n      /**\n       * whether the publish button is disabled\n       *\n       * @property isPublishDisabled\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isPublishDisabled\", _descriptor5, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor6, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onPublish\", _descriptor7, this);\n      this.validate();\n    }\n    get validationItems() {\n      const items = [];\n      this.validationProperties.forEach(key => {\n        const successMessage = this.intl.t(`${this.intlBaseKey}.successMessages.${key}`);\n        const title = this.intl.t(`${this.intlBaseKey}.properties.${key}`);\n        let errorMessage;\n        const errors = this.changeset.get(`errors`);\n        if (errors.length > 0) {\n          var _error$validation;\n          const error = errors.find(error => error.key === key);\n          errorMessage = error ? error === null || error === void 0 || (_error$validation = error.validation) === null || _error$validation === void 0 ? void 0 : _error$validation[0] : '';\n        }\n        items.push({\n          title,\n          successMessage,\n          errorMessage\n        });\n      });\n      return items;\n    }\n    async validate() {\n      await this.changeset.validate();\n      const isValid = this.changeset.get('isValid');\n      this.isPublishDisabled = isValid ? false : true;\n    }\n    publish() {\n      if (this.isPublishDisabled) {\n        return;\n      }\n      this.onPublish();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intlBaseKey\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 'adCampaigns.facebookContentAds.publishDialog';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"validationProperties\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isPublishDisabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"onPublish\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"validationItems\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"validationItems\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"validate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"publish\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"publish\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsAdvertisementsPublishDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/advertisements/publish-dialog/item\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/object/computed\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _computed, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class={{concat\n      \"publish-dialog__item flex items-center ph2 pv1 font-sm primary bb b--black-10 \"\n      (if this.isError \"error bg-red\" \"\")\n    }}\n  >\n    <UiLoading @state={{this.state}} />\n    <div class=\"flex flex-column flex-row-sm justify-between w-100\">\n      <div class=\"ml2 flex flex-column flex-row-sm flex-grow-1 items-center-sm\">\n        <span class={{concat \"title pv1-sm \" (if this.isError \"white\" \"primary\")}}>\n          {{this.title}}\n        </span>\n        <span class={{if this.isError \"white\" \"secondary\"}}>\n          {{#if this.isError}}\n            {{this.errorMessage}}\n          {{else}}\n            {{this.successMessage}}\n          {{/if}}\n        </span>\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"SMeof3LZ\",\n    \"block\": \"[[[10,0],[15,0,[28,[37,0],[\\\"publish-dialog__item flex items-center ph2 pv1 font-sm primary bb b--black-10 \\\",[52,[30,0,[\\\"isError\\\"]],\\\"error bg-red\\\",\\\"\\\"]],null]],[12],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@state\\\"],[[30,0,[\\\"state\\\"]]]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex flex-column flex-row-sm justify-between w-100\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"ml2 flex flex-column flex-row-sm flex-grow-1 items-center-sm\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[15,0,[28,[37,0],[\\\"title pv1-sm \\\",[52,[30,0,[\\\"isError\\\"]],\\\"white\\\",\\\"primary\\\"]],null]],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"title\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[15,0,[52,[30,0,[\\\"isError\\\"]],\\\"white\\\",\\\"secondary\\\"]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isError\\\"]],[[[1,\\\"          \\\"],[1,[30,0,[\\\"errorMessage\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[30,0,[\\\"successMessage\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"concat\\\",\\\"if\\\",\\\"ui-loading\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/advertisements/publish-dialog/item.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignAdsAdvertisementsPublishDialogItemComponent = _exports.default = (_dec = (0, _computed.equal)('state', 'success'), _dec2 = (0, _computed.equal)('state', 'error'), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.string), _dec5 = (0, _emberArgTypes.arg)(_propTypes.string), _dec6 = (0, _object.computed)('errorMessage'), _class = class AmcCampaignAdsAdvertisementsPublishDialogItemComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"isSuccess\", _descriptor, this);\n      _initializerDefineProperty(this, \"isError\", _descriptor2, this);\n      /**\n       * the title of the item\n       *\n       * @argument title\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"title\", _descriptor3, this);\n      /**\n       * the success message of the item\n       *\n       * @argument successMessage\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"successMessage\", _descriptor4, this);\n      /**\n       * the error message of the item\n       *\n       * @argument errorMessage\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"errorMessage\", _descriptor5, this);\n    }\n    /**\n     * the state of the item\n     *  - error\n     *  - success\n     *\n     * @computed state\n     * @type {String}\n     */\n    get state() {\n      if (this.errorMessage) {\n        return 'error';\n      }\n      return 'success';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isSuccess\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isError\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"successMessage\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"errorMessage\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"state\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"state\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsAdvertisementsPublishDialogItemComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/advertisements/target-group-update-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"@ember/object/computed\", \"prop-types\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _computed, _propTypes, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{t \"components.amcCampaign.ads.advertisements.targetGroupUpdateDialog.title\"}}\n    @onClose={{this.close}}\n    @theme=\"grey\" as |m|\n  >\n    <m.header />\n    <m.content as |c|>\n      <c.body>\n        {{#if this.addedTargetGroups.length}}\n          <UiList\n            @items={{this.addedTargetGroups}}\n            @hasMobileSpacing={{true}}\n            @title={{t\n              \"components.amcCampaign.ads.advertisements.targetGroupUpdateDialog.newTargetGroups\"\n            }}\n            @classNames=\"pb3\" as |list item|\n          >\n            <list.item\n              @description={{t\n                \"components.amcCampaign.ads.advertisements.targetGroupUpdateDialog.byUser\"\n                user=item.user.name\n              }}\n              @state={{\"success\"}} as |controls|\n            >\n              <controls.state />\n              <controls.title>\n                <span class=\"ellipsis mr1\">\n                  {{item.name}}\n                </span>\n              </controls.title>\n  \n              <controls.right>\n                <UiSwitch\n                  @value={{ui-array-includes item this.selectedTargetGroupIds}}\n                  @onChange={{fn this.selectTargetGroup item.id}}\n                />\n              </controls.right>\n            </list.item>\n          </UiList>\n        {{/if}}\n  \n        {{#if this.updatedTargetGroups.length}}\n          <UiList\n            @items={{this.updatedTargetGroups}}\n            @hasMobileSpacing={{true}}\n            @title={{t\n              \"components.amcCampaign.ads.advertisements.targetGroupUpdateDialog.updatedTargetGroups\"\n            }}\n            @classNames=\"pb3\" as |list item|\n          >\n            <list.item\n              @description={{t\n                \"components.amcCampaign.ads.advertisements.targetGroupUpdateDialog.byUser\"\n                user=item.user.name\n              }}\n              @state={{\"warning\"}} as |controls|\n            >\n              <controls.state />\n              <controls.title>\n                <span class=\"ellipsis mr1\">\n                  {{item.name}}\n                </span>\n              </controls.title>\n  \n              <controls.right>\n                <UiSwitch\n                  @value={{ui-array-includes item this.selectedTargetGroupIds}}\n                  @onChange={{fn this.selectTargetGroup item.id}}\n                />\n              </controls.right>\n            </list.item>\n          </UiList>\n        {{/if}}\n  \n        {{#if this.removedTargetGroups.length}}\n          <UiList\n            @items={{this.removedTargetGroups}}\n            @hasMobileSpacing={{true}}\n            @title={{t\n              \"components.amcCampaign.ads.advertisements.targetGroupUpdateDialog.removedTargetGroups\"\n            }}\n            @classNames=\"pb3\" as |list item|\n          >\n            <list.item\n              @description={{t\n                \"components.amcCampaign.ads.advertisements.targetGroupUpdateDialog.byUser\"\n                user=item.user.name\n              }}\n              @state={{\"error\"}} as |controls|\n            >\n              <controls.state />\n              <controls.title>\n                <span class=\"ellipsis mr1\">\n                  {{item.name}}\n                </span>\n              </controls.title>\n  \n              <controls.right>\n                <UiSwitch\n                  @value={{ui-array-includes item this.selectedTargetGroupIds}}\n                  @onChange={{fn this.selectTargetGroup item.id}}\n                />\n              </controls.right>\n            </list.item>\n          </UiList>\n        {{/if}}\n      </c.body>\n    </m.content>\n    <m.footer>\n      <UiButton @label={{t \"global.actions.update\"}} @isSecondary={{true}} @onClick={{this.update}} />\n    </m.footer>\n  </UiModal>\n  \n  <UiDiscardChanges @isOpen={{this.isDiscardChangesDialog}} @onDiscard={{this.confirmDiscard}} />\n  */\n  {\n    \"id\": \"1UxVORsu\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@onClose\\\",\\\"@theme\\\"],[[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.targetGroupUpdateDialog.title\\\"],null],[30,0,[\\\"close\\\"]],\\\"grey\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addedTargetGroups\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@hasMobileSpacing\\\",\\\"@title\\\",\\\"@classNames\\\"],[[30,0,[\\\"addedTargetGroups\\\"]],true,[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.targetGroupUpdateDialog.newTargetGroups\\\"],null],\\\"pb3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@description\\\",\\\"@state\\\"],[[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.targetGroupUpdateDialog.byUser\\\"],[[\\\"user\\\"],[[30,4,[\\\"user\\\",\\\"name\\\"]]]]],\\\"success\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"ellipsis mr1\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,5,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,4],null,[[\\\"@value\\\",\\\"@onChange\\\"],[[28,[37,5],[[30,4],[30,0,[\\\"selectedTargetGroupIds\\\"]]],null],[28,[37,6],[[30,0,[\\\"selectTargetGroup\\\"]],[30,4,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[5]]]]],[1,\\\"\\\\n        \\\"]],[3,4]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updatedTargetGroups\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@hasMobileSpacing\\\",\\\"@title\\\",\\\"@classNames\\\"],[[30,0,[\\\"updatedTargetGroups\\\"]],true,[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.targetGroupUpdateDialog.updatedTargetGroups\\\"],null],\\\"pb3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,6,[\\\"item\\\"]],null,[[\\\"@description\\\",\\\"@state\\\"],[[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.targetGroupUpdateDialog.byUser\\\"],[[\\\"user\\\"],[[30,7,[\\\"user\\\",\\\"name\\\"]]]]],\\\"warning\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,8,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n            \\\"],[8,[30,8,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"ellipsis mr1\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,8,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,4],null,[[\\\"@value\\\",\\\"@onChange\\\"],[[28,[37,5],[[30,7],[30,0,[\\\"selectedTargetGroupIds\\\"]]],null],[28,[37,6],[[30,0,[\\\"selectTargetGroup\\\"]],[30,7,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[8]]]]],[1,\\\"\\\\n        \\\"]],[6,7]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"removedTargetGroups\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@hasMobileSpacing\\\",\\\"@title\\\",\\\"@classNames\\\"],[[30,0,[\\\"removedTargetGroups\\\"]],true,[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.targetGroupUpdateDialog.removedTargetGroups\\\"],null],\\\"pb3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,9,[\\\"item\\\"]],null,[[\\\"@description\\\",\\\"@state\\\"],[[28,[37,1],[\\\"components.amcCampaign.ads.advertisements.targetGroupUpdateDialog.byUser\\\"],[[\\\"user\\\"],[[30,10,[\\\"user\\\",\\\"name\\\"]]]]],\\\"error\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,11,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n            \\\"],[8,[30,11,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"ellipsis mr1\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,10,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,11,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,4],null,[[\\\"@value\\\",\\\"@onChange\\\"],[[28,[37,5],[[30,10],[30,0,[\\\"selectedTargetGroupIds\\\"]]],null],[28,[37,6],[[30,0,[\\\"selectTargetGroup\\\"]],[30,10,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[11]]]]],[1,\\\"\\\\n        \\\"]],[9,10]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.update\\\"],null],true,[30,0,[\\\"update\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,8],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChangesDialog\\\"]],[30,0,[\\\"confirmDiscard\\\"]]]],null]],[\\\"m\\\",\\\"c\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\"],false,[\\\"ui-modal\\\",\\\"t\\\",\\\"if\\\",\\\"ui-list\\\",\\\"ui-switch\\\",\\\"ui-array-includes\\\",\\\"fn\\\",\\\"ui-button\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/advertisements/target-group-update-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignAdsAdvertisementsTargetGroupUpdateDialogComponent = _exports.default = (_dec = (0, _computed.alias)('uiAppSettings.languages.defaultLanguage'), _dec2 = (0, _emberArgTypes.arg)(_propTypes.array), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _emberArgTypes.arg)(_propTypes.object), _dec5 = (0, _computed.filterBy)('updates', 'type', 'added'), _dec6 = (0, _computed.filterBy)('updates', 'type', 'removed'), _dec7 = (0, _computed.filterBy)('updates', 'type', 'updated'), _dec8 = (0, _emberArgTypes.arg)(_propTypes.func), _dec9 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignAdsAdvertisementsTargetGroupUpdateDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"defaultLanguage\", _descriptor8, this);\n      /**\n       * the target-group updates\n       * @property updates\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"updates\", _descriptor9, this);\n      /**\n       * the adapter options to save the model\n       *\n       * @argument adapterOptions\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"adapterOptions\", _descriptor10, this);\n      /**\n       * the model\n       *\n       * @property model\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor11, this);\n      /**\n       * the selected target-groups\n       * @property selectedTargetGroupIds\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"selectedTargetGroupIds\", _descriptor12, this);\n      /**\n       * whether the discard changes dialog is open\n       * @property isDiscardChangesDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChangesDialog\", _descriptor13, this);\n      _initializerDefineProperty(this, \"addedTargetGroups\", _descriptor14, this);\n      _initializerDefineProperty(this, \"removedTargetGroups\", _descriptor15, this);\n      _initializerDefineProperty(this, \"updatedTargetGroups\", _descriptor16, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor17, this);\n      /**\n       * callback function for successful update\n       *\n       * @argument onUpdate\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onUpdate\", _descriptor18, this);\n    }\n    async update() {\n      // Get selected target-groups by their IDs\n      const selectedTargetGroups = this.selectedTargetGroupIds.map(targetGroupId => {\n        return this.updates.find(targetGroup => targetGroup.id == targetGroupId);\n      });\n      try {\n        const adapter = this.store.adapterFor('advertisement');\n        const url = adapter.urlForFindAll('advertisement', {\n          adapterOptions: this.adapterOptions\n        });\n        const endpoint = `${url}/${this.model.id}/pendingTargetGroupUpdates`;\n        const response = await this.authenticatedFetch.fetch(endpoint, {\n          headers: {\n            'Accept-Language': this.defaultLanguage || 'de'\n          },\n          method: 'PUT',\n          body: JSON.stringify(selectedTargetGroups)\n        });\n        if (!(response !== null && response !== void 0 && response.ok)) {\n          const {\n            message\n          } = await response.json();\n          throw new Error(message);\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        this.onUpdate();\n      } catch (e) {\n        this.uiDialog.showError(null, e.message);\n      }\n    }\n    selectTargetGroup(targetGroupId, checked) {\n      let selectedTargetGroupIds = this.selectedTargetGroupIds;\n      if (checked) {\n        selectedTargetGroupIds.push(targetGroupId);\n      } else {\n        selectedTargetGroupIds = selectedTargetGroupIds.filter(id => id !== targetGroupId);\n      }\n      this.selectedTargetGroupIds = selectedTargetGroupIds;\n    }\n    close() {\n      if (this.selectedTargetGroupIds.length === 0) {\n        this.onClose();\n      }\n      this.isDiscardChangesDialog = true;\n    }\n    confirmDiscard() {\n      this.isDiscardChangesDialog = false;\n      this.onClose();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"defaultLanguage\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"updates\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"adapterOptions\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return {};\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"selectedTargetGroupIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChangesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"addedTargetGroups\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"removedTargetGroups\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"updatedTargetGroups\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"onUpdate\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"update\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"update\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectTargetGroup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectTargetGroup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"confirmDiscard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"confirmDiscard\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsAdvertisementsTargetGroupUpdateDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/configuration\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@ember/object/computed\", \"prop-types\", \"ember-arg-types\", \"@additive-apps/auth/utils/roles-map\", \"@additive-apps/utils/utils/errors\"], function (_exports, _component, _templateFactory, _component2, _service, _object, _computed, _propTypes, _emberArgTypes, _rolesMap, _errors) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! iterate over array keys to avoid rerender on change of configuration items }}\n  {{#each this._configurationIds as |configurationId|}}\n    <AmcCampaign::ConfigurationItem\n      @item={{get this._orderedConfigurationsById configurationId}}\n      @isEdit={{false}}\n      @isReadOnly={{this._isReadOnly}}\n      @onSave={{action \"onConfigurationSave\"}} as |configurationItem|\n    >\n      <configurationItem.multimediaOverlayContent>\n        {{yield}}\n      </configurationItem.multimediaOverlayContent>\n    </AmcCampaign::ConfigurationItem>\n  {{/each}}\n  */\n  {\n    \"id\": \"9WF2mWg5\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"_configurationIds\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@item\\\",\\\"@isEdit\\\",\\\"@isReadOnly\\\",\\\"@onSave\\\"],[[28,[37,3],[[30,0,[\\\"_orderedConfigurationsById\\\"]],[30,1]],null],false,[30,0,[\\\"_isReadOnly\\\"]],[28,[37,4],[[30,0],\\\"onConfigurationSave\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"multimediaOverlayContent\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[18,3,null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[1]],null]],[\\\"configurationId\\\",\\\"configurationItem\\\",\\\"&default\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"amc-campaign/configuration-item\\\",\\\"get\\\",\\\"action\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/configuration.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   *  Component for the campaign configuration\n   *\n   * @class AmcCampagnConfigurationComponent\n   */\n  let AmcCampagnConfigurationComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _computed.alias)('currentUser.user'), _dec3 = (0, _object.computed)('model.orderedConfigurations'), _dec4 = (0, _object.computed)('model.orderedConfigurations'), _dec5 = (0, _object.computed)('user.role'), _class = class AmcCampagnConfigurationComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"model\", _descriptor7, this);\n      _initializerDefineProperty(this, \"user\", _descriptor8, this);\n    }\n    get _configurationIds() {\n      var _this$model;\n      let ids = [];\n      (_this$model = this.model) === null || _this$model === void 0 || (_this$model = _this$model.orderedConfigurations) === null || _this$model === void 0 || _this$model.forEach(config => config.id && ids.push(config.id));\n      return ids;\n    }\n    get _orderedConfigurationsById() {\n      const configurations = this.model && this.model.orderedConfigurations;\n      let configurationsById = {};\n      configurations.forEach(config => config.id && (configurationsById[config.id] = config));\n      return configurationsById;\n    }\n    get _isReadOnly() {\n      var _this$user;\n      if ((0, _rolesMap.hasAccess)(_rolesMap.ROLE_MANAGER, (_this$user = this.user) === null || _this$user === void 0 ? void 0 : _this$user.role)) {\n        return false;\n      }\n      return true;\n    }\n    onConfigurationSave() {\n      const promise = this.model.save();\n      promise.catch(error => {\n        this.model.rollbackAttributes();\n        if (error) {\n          const errorDetail = (0, _errors.getAdapterError)(error);\n          if (errorDetail.custom) {\n            this.uiDialog.showAlert(this.intl.t('campaigns.configurations.errors.custom.title'), errorDetail && errorDetail.custom);\n            return null;\n          }\n        }\n        this.uiDialog.showError();\n      });\n      return promise;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"user\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"_configurationIds\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"_configurationIds\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_orderedConfigurationsById\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"_orderedConfigurationsById\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_isReadOnly\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"_isReadOnly\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onConfigurationSave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onConfigurationSave\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampagnConfigurationComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/configurations-navdrawer\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/service\", \"prop-types\", \"ember-arg-types\"], function (_exports, _component, _templateFactory, _component2, _service, _propTypes, _emberArgTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiNavigationDrawer\n    @navDrawerStateKey={{this.stateKey}}\n    @isRight={{true}}\n    @isPermanent={{false}} as |navDrawer|\n  >\n    <navDrawer.navbar\n      @title={{t \"routes.settings.title\"}}\n      @isMenuHidden={{true}}\n      @onClose={{this.onClose}}\n      @classNames=\"ui-navigation-bar--full-screen\"\n    />\n  \n    <navDrawer.content>\n      <div class=\"flex flex-column pt3\">\n        <div class=\"font-sm secondary\">\n          {{this.model.title}}\n        </div>\n        <div class=\"font-lg primary\">\n          {{t \"socialCampaigns.socialCampaign.configurations\"}}\n        </div>\n      </div>\n  \n      <div class=\"ac-settings-navdrawer flex flex-column pb2 pt4 pb3-sm\">\n        <AmcCampaign::Ads::Configuration @model={{this.model}} />\n      </div>\n    </navDrawer.content>\n  </UiNavigationDrawer>\n  */\n  {\n    \"id\": \"6cLIpMBq\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@navDrawerStateKey\\\",\\\"@isRight\\\",\\\"@isPermanent\\\"],[[30,0,[\\\"stateKey\\\"]],true,false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,[[\\\"@title\\\",\\\"@isMenuHidden\\\",\\\"@onClose\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"routes.settings.title\\\"],null],true,[30,0,[\\\"onClose\\\"]],\\\"ui-navigation-bar--full-screen\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column pt3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"title\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-lg primary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"socialCampaigns.socialCampaign.configurations\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"ac-settings-navdrawer flex flex-column pb2 pt4 pb3-sm\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@model\\\"],[[30,0,[\\\"model\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"navDrawer\\\"],false,[\\\"ui-navigation-drawer\\\",\\\"t\\\",\\\"amc-campaign/ads/configuration\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/configurations-navdrawer.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   *  Component used to for a content types settings\n   *\n   * @class AmcCampaignAdsConfigurationsNavdrawer\n   */\n  let AmcCampaignAdsConfigurationsNavdrawerComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignAdsConfigurationsNavdrawerComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"stateKey\", _descriptor6, this);\n      _initializerDefineProperty(this, \"model\", _descriptor7, this);\n      _initializerDefineProperty(this, \"onClose\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"stateKey\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsConfigurationsNavdrawerComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/create-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-changeset-validations/validators\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberChangeset, _emberChangesetValidations, _validators, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this._isSelectTypeDialog}}\n    <UiModal\n      @modalClassNames=\"h-auto\"\n      @title={{t \"components.amcCampaign.ads.createDialog.title\"}}\n      @size=\"md\"\n      @onClose={{this.close}}\n      as |dialog|\n    >\n      <dialog.header />\n      <dialog.content as |content|>\n        <content.body class=\"pb1\">\n          <UiItemGroup as |group|>\n            {{#each this._availableCampaigns as |campaign|}}\n              <group.item\n                @icon={{campaign.icon}}\n                @onClick={{fn this.onSelectType campaign.type}}\n                as |item|\n              >\n                <item.intro\n                  @title={{t\n                    (concat \"components.amcCampaign.ads.createDialog.types.\" campaign.type \".name\")\n                  }}\n                  @description={{t\n                    (concat\n                      \"components.amcCampaign.ads.createDialog.types.\" campaign.type \".description\"\n                    )\n                  }}\n                />\n  \n                {{#if\n                  (or\n                    (eq campaign.type \"FacebookContentAdCampaign\")\n                    (eq campaign.type \"TikTokLeadAdCampaign\")\n                  )\n                }}\n                  <UiStatusBadge @class=\"blue bg-blue--10 font-sm mv1\">\n                    Beta\n                  </UiStatusBadge>\n                {{/if}}\n              </group.item>\n            {{/each}}\n          </UiItemGroup>\n        </content.body>\n      </dialog.content>\n    </UiModal>\n  {{else}}\n    <UiModal\n      @title={{t (concat \"components.amcCampaign.ads.createDialog.types.\" this._model.type \".title\")}}\n      @onClose={{this.close}}\n      as |dialog|\n    >\n      <dialog.header />\n      <dialog.content as |content|>\n        <content.body>\n          <UiInput\n            @label={{t \"components.amcCampaign.ads.createDialog.properties.title\"}}\n            @value={{this._changeset.title}}\n            @errorMessage={{this._changeset.error.title.validation}}\n            @isTouched={{this._isTouched}}\n          />\n        </content.body>\n      </dialog.content>\n  \n      <dialog.footer>\n        <UiButton @label={{t \"global.actions.save\"}} @isSecondary={{true}} @onClick={{this.save}} />\n      </dialog.footer>\n    </UiModal>\n  {{/if}}\n  \n  <UiDiscardChanges\n    @isOpen={{this.isDiscardChanges}}\n    @onDiscard={{this.discardChanges}}\n    @onClose={{fn (mut this.isDiscardChanges)}}\n  />\n  */\n  {\n    \"id\": \"YfU3IZoc\",\n    \"block\": \"[[[41,[30,0,[\\\"_isSelectTypeDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@modalClassNames\\\",\\\"@title\\\",\\\"@size\\\",\\\"@onClose\\\"],[\\\"h-auto\\\",[28,[37,2],[\\\"components.amcCampaign.ads.createDialog.title\\\"],null],\\\"md\\\",[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"body\\\"]],[[24,0,\\\"pb1\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,3],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"_availableCampaigns\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@icon\\\",\\\"@onClick\\\"],[[30,4,[\\\"icon\\\"]],[28,[37,6],[[30,0,[\\\"onSelectType\\\"]],[30,4,[\\\"type\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"intro\\\"]],null,[[\\\"@title\\\",\\\"@description\\\"],[[28,[37,2],[[28,[37,7],[\\\"components.amcCampaign.ads.createDialog.types.\\\",[30,4,[\\\"type\\\"]],\\\".name\\\"],null]],null],[28,[37,2],[[28,[37,7],[\\\"components.amcCampaign.ads.createDialog.types.\\\",[30,4,[\\\"type\\\"]],\\\".description\\\"],null]],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,8],[[28,[37,9],[[30,4,[\\\"type\\\"]],\\\"FacebookContentAdCampaign\\\"],null],[28,[37,9],[[30,4,[\\\"type\\\"]],\\\"TikTokLeadAdCampaign\\\"],null]],null],[[[1,\\\"                \\\"],[8,[39,10],null,[[\\\"@class\\\"],[\\\"blue bg-blue--10 font-sm mv1\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  Beta\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"        \\\"]],[3]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@title\\\",\\\"@onClose\\\"],[[28,[37,2],[[28,[37,7],[\\\"components.amcCampaign.ads.createDialog.types.\\\",[30,0,[\\\"_model\\\",\\\"type\\\"]],\\\".title\\\"],null]],null],[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,6,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,6,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,7,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,2],[\\\"components.amcCampaign.ads.createDialog.properties.title\\\"],null],[30,0,[\\\"_changeset\\\",\\\"title\\\"]],[30,0,[\\\"_changeset\\\",\\\"error\\\",\\\"title\\\",\\\"validation\\\"]],[30,0,[\\\"_isTouched\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[7]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,6,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,12],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"global.actions.save\\\"],null],true,[30,0,[\\\"save\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[8,[39,13],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\",\\\"@onClose\\\"],[[30,0,[\\\"isDiscardChanges\\\"]],[30,0,[\\\"discardChanges\\\"]],[28,[37,6],[[28,[37,14],[[30,0,[\\\"isDiscardChanges\\\"]]],null]],null]]],null]],[\\\"dialog\\\",\\\"content\\\",\\\"group\\\",\\\"campaign\\\",\\\"item\\\",\\\"dialog\\\",\\\"content\\\"],false,[\\\"if\\\",\\\"ui-modal\\\",\\\"t\\\",\\\"ui-item-group\\\",\\\"each\\\",\\\"-track-array\\\",\\\"fn\\\",\\\"concat\\\",\\\"or\\\",\\\"eq\\\",\\\"ui-status-badge\\\",\\\"ui-input\\\",\\\"ui-button\\\",\\\"ui-discard-changes\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/create-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignAdsCreateDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignAdsCreateDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiPaths\", _descriptor8, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor9, this);\n      /**\n       * the name of the filter\n       *\n       * @argument filterName\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"filterName\", _descriptor10, this);\n      /**\n       * whether the discard changes dialog is open\n       *\n       * @property isDiscardChanges\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChanges\", _descriptor11, this);\n      /**\n       * the changeset for the model\n       *\n       * @property _changeset\n       * @type {Changeset}\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_changeset\", _descriptor12, this);\n      /**\n       * whether the select type dialog is open\n       *\n       * @property _isSelectTypeDialog\n       * @type {Boolean}\n       * @default true\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isSelectTypeDialog\", _descriptor13, this);\n      /**\n       * whether the form has been touched\n       *\n       * @property _isTouched\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isTouched\", _descriptor14, this);\n      /**\n       * the created model\n       *\n       * @property _model\n       * @type {Model}\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_model\", _descriptor15, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor16, this);\n    }\n    get _availableCampaigns() {\n      return [{\n        type: 'FacebookLeadAdCampaign',\n        icon: 'target'\n      }, {\n        type: 'TikTokLeadAdCampaign',\n        icon: 'tiktok'\n      }];\n    }\n    get organizationSlug() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id;\n    }\n    close() {\n      if (!this._changeset) {\n        this.onClose();\n      } else if (this._changeset.get('isDirty')) {\n        this.isDiscardChanges = true;\n      } else {\n        if (this._model.isNew) {\n          this._model.destroyRecord();\n        }\n        this.onClose();\n      }\n    }\n    discardChanges() {\n      if (this._model.isNew) {\n        this._model.destroyRecord();\n      }\n      this.isDiscardChanges = false;\n      this.onClose();\n    }\n    onSelectType(type) {\n      this._model = this.store.createRecord('ad-campaign', {\n        group: 'ad-campaigns',\n        type\n      });\n      const validation = {\n        title: (0, _validators.validatePresence)({\n          presence: true,\n          message: this.intl.t('errors.required')\n        })\n      };\n      this._changeset = new _emberChangeset.default(this._model, (0, _emberChangesetValidations.default)(validation), validation);\n      this._isSelectTypeDialog = false;\n    }\n    async save() {\n      try {\n        this._isTouched = true;\n        const {\n          isNew\n        } = this._model;\n        await this._changeset.validate();\n        if (this._changeset.get('isInvalid')) {\n          return;\n        }\n        const newAdCampaign = await this._changeset.save();\n        if (isNew) {\n          this.uiFilter.addItem(this.filterName, newAdCampaign);\n        }\n        let detailPathPart = '';\n        if (newAdCampaign.isLeadAdCampaign) {\n          detailPathPart = 'lead-ads';\n        } else if (newAdCampaign.isTikTokLeadAdCampaign) {\n          detailPathPart = 'tiktok-lead-ads';\n        }\n        this.router.transitionTo(`instance.campaigns.ad.${detailPathPart}`, newAdCampaign.id);\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        this.onClose();\n      } catch (e) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiPaths\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"filterName\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"_changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"_isSelectTypeDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"_isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"_model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectType\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsCreateDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/detail-wrapper\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@ember/component/template-only\"], function (_exports, _component, _templateFactory, _templateOnly) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"flex flex-column pb3\">\n    <span class=\"secondary font-sm pb05\">\n      {{@label}}\n    </span>\n    <div class=\"font-md\">\n      {{#if @content}}\n        {{@content}}\n      {{else}}\n        {{yield}}\n      {{/if}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"vVoc8/3c\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex flex-column pb3\\\"],[12],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"secondary font-sm pb05\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,1]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"font-md\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"      \\\"],[1,[30,2]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[18,3,null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@label\\\",\\\"@content\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/detail-wrapper.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"additive-mc/components/amc-campaign/ads/general-settings-navdrawer\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-changeset-validations/validators\", \"@ember/service\", \"@ember/object\", \"@ember/object/computed\", \"@glimmer/tracking\", \"ember-arg-types\", \"prop-types\", \"ember-concurrency\"], function (_exports, _component, _templateFactory, _environment, _component2, _emberChangeset, _emberChangesetValidations, _validators, _service, _object, _computed, _tracking, _emberArgTypes, _propTypes, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiNavigationDrawer\n    @navDrawerStateKey={{this.stateKey}}\n    @isRight={{true}}\n    @isPermanent={{false}}\n    as |navDrawer|\n  >\n    <navDrawer.navbar\n      @title={{t \"routes.settings.title\"}}\n      @isMenuHidden={{true}}\n      @onClose={{this.toggleDrawer}}\n    />\n  \n    <navDrawer.content>\n      {{#each this.adSpendThresholdSettings as |settings|}}\n        <div class=\"flex flex-column\">\n          <div class=\"font-lg primary\">\n            {{t \"adCampaigns.adGeneralSettings.title\"}}\n          </div>\n          <div class=\"pv3\">\n            <hr class=\"b--secondary-10\" />\n          </div>\n        </div>\n        <div\n          class=\"{{unless @isReadOnly 'cpointer'}}\"\n          role=\"button\"\n          {{on \"click\" this.openThresholdDialog}}\n        >\n          <div class=\"flex pb2 font-md\">\n            <div>\n              {{settings.description}}\n            </div>\n            <span class=\"flex flex-grow-1\"></span>\n            <div class=\"secondary\">\n              {{concat (or settings.value \"0\") \"€\"}}\n            </div>\n          </div>\n          <div class=\"flex flex-column\">\n            <div class=\"flex secondary font-sm\">\n              {{t \"adCampaigns.adGeneralSettings.threshold.description\"}}\n            </div>\n            <div class=\"pv3\">\n              <hr class=\"b--secondary-10\" />\n            </div>\n          </div>\n        </div>\n      {{/each}}\n  \n      <div class=\"flex flex-column\">\n        <div class=\"font-sm secondary pb2\">\n          {{t \"adCampaigns.adGeneralSettings.settings.title\"}}\n        </div>\n  \n        <div class=\"flex space-between items-center w-100 pv2 bt bb b--secondary-10\">\n          <div class=\"flex w-100 items-center\">\n            {{svg-jar \"target\"}}\n            <div class=\"font-sm primary pr2 pl1\">\n              {{t \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.label\"}}\n            </div>\n            <div class=\"font-xs secondary\">\n              {{t\n                \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.value\"\n                count=this.tikTokTargetGroups.length\n              }}\n            </div>\n          </div>\n          <UiIconButton\n            @icon=\"edit\"\n            @isSecondary={{true}}\n            @onClick={{fn (mut this.isTikTokTargetGroupsDialog) true}}\n          />\n        </div>\n      </div>\n    </navDrawer.content>\n  </UiNavigationDrawer>\n  \n  {{#if this.isTikTokTargetGroupsDialog}}\n    <AmcCampaign::Ads::TikTokTargetGroupsModal\n      @targetGroups={{this.tikTokTargetGroups}}\n      @isReadOnly={{@isReadOnly}}\n      @onClose={{this.onCloseTikTokTargetGroupsDialog}}\n      @onSave={{perform this.saveTikTokTargetGroups}}\n    />\n  {{/if}}\n  \n  {{#if this.isThresholdDialogOpen}}\n    <UiModal\n      @title={{t \"adCampaigns.adGeneralSettings.threshold.dialog.title\"}}\n      @size=\"sm\"\n      @onClose={{this.closeThresholdDialog}}\n      as |modal|\n    >\n      <modal.header />\n      <modal.content as |content|>\n        <content.body>\n          <div class=\"font-md pb2\">\n            {{t \"adCampaigns.adGeneralSettings.threshold.dialog.description\"}}\n          </div>\n          <UiInput\n            @label={{t \"adCampaigns.adGeneralSettings.threshold.title\"}}\n            @errorMessage={{this.changeset.error.value.validation.firstObject}}\n            @value={{this.changeset.value}}\n            as |input|\n          >\n            <input.right>\n              {{t \"adCampaigns.adGeneralSettings.threshold.dialog.currency\"}}\n            </input.right>\n          </UiInput>\n        </content.body>\n      </modal.content>\n      <modal.footer>\n        <UiButton\n          @label={{t \"global.actions.save\"}}\n          @isSecondary={{true}}\n          @onClick={{perform this.postThreshold this.changeset}}\n        />\n      </modal.footer>\n    </UiModal>\n  {{/if}}\n  */\n  {\n    \"id\": \"4UGCc1/W\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@navDrawerStateKey\\\",\\\"@isRight\\\",\\\"@isPermanent\\\"],[[30,0,[\\\"stateKey\\\"]],true,false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,[[\\\"@title\\\",\\\"@isMenuHidden\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"routes.settings.title\\\"],null],true,[30,0,[\\\"toggleDrawer\\\"]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"adSpendThresholdSettings\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-lg primary\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"adCampaigns.adGeneralSettings.title\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"pv3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"hr\\\"],[14,0,\\\"b--secondary-10\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,0],[16,0,[29,[[52,[51,[30,3]],\\\"cpointer\\\"]]]],[24,\\\"role\\\",\\\"button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"openThresholdDialog\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex pb2 font-md\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"description\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"flex flex-grow-1\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[[28,[37,7],[[30,2,[\\\"value\\\"]],\\\"0\\\"],null],\\\"€\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex secondary font-sm\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"adCampaigns.adGeneralSettings.threshold.description\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"pv3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"hr\\\"],[14,0,\\\"b--secondary-10\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm secondary pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"adCampaigns.adGeneralSettings.settings.title\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex space-between items-center w-100 pv2 bt bb b--secondary-10\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex w-100 items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"target\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm primary pr2 pl1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.label\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-xs secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.value\\\"],[[\\\"count\\\"],[[30,0,[\\\"tikTokTargetGroups\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"edit\\\",true,[28,[37,10],[[28,[37,11],[[30,0,[\\\"isTikTokTargetGroupsDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isTikTokTargetGroupsDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,13],null,[[\\\"@targetGroups\\\",\\\"@isReadOnly\\\",\\\"@onClose\\\",\\\"@onSave\\\"],[[30,0,[\\\"tikTokTargetGroups\\\"]],[30,3],[30,0,[\\\"onCloseTikTokTargetGroupsDialog\\\"]],[28,[37,14],[[30,0,[\\\"saveTikTokTargetGroups\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isThresholdDialogOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,15],null,[[\\\"@title\\\",\\\"@size\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"adCampaigns.adGeneralSettings.threshold.dialog.title\\\"],null],\\\"sm\\\",[30,0,[\\\"closeThresholdDialog\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,4,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,4,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,5,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-md pb2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"adCampaigns.adGeneralSettings.threshold.dialog.description\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@label\\\",\\\"@errorMessage\\\",\\\"@value\\\"],[[28,[37,1],[\\\"adCampaigns.adGeneralSettings.threshold.title\\\"],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"value\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,0,[\\\"changeset\\\",\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,6,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"adCampaigns.adGeneralSettings.threshold.dialog.currency\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[6]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[5]]]]],[1,\\\"\\\\n    \\\"],[8,[30,4,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.save\\\"],null],true,[28,[37,14],[[30,0,[\\\"postThreshold\\\"]],[30,0,[\\\"changeset\\\"]]],null]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"navDrawer\\\",\\\"settings\\\",\\\"@isReadOnly\\\",\\\"modal\\\",\\\"content\\\",\\\"input\\\"],false,[\\\"ui-navigation-drawer\\\",\\\"t\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\",\\\"on\\\",\\\"concat\\\",\\\"or\\\",\\\"svg-jar\\\",\\\"ui-icon-button\\\",\\\"fn\\\",\\\"mut\\\",\\\"if\\\",\\\"amc-campaign/ads/tik-tok-target-groups-modal\\\",\\\"perform\\\",\\\"ui-modal\\\",\\\"ui-input\\\",\\\"ui-button\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/general-settings-navdrawer.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   *  Component used for general settings of ads\n   *\n   * @class AmcCampaignAdsConfigurationsNavdrawer\n   */\n  let AmcCampaignAdsGeneralSettingsNavdrawerComponent = _exports.default = (_dec = (0, _computed.alias)('currentUser.currentOrganization.id'), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec4 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const url = `${_environment.default.APP.apiBaseHost}/${this.organizationSlug}/organisation-campaigns/ad/settings`;\n      const response = yield this.authenticatedFetch.fetch(url, {\n        method: 'GET'\n      });\n      if (!response.ok) throw new Error();\n      const json = yield response.json();\n      this.adSpendThresholdSettings = json.settings;\n    } catch (e) {\n      this.isError = true;\n      this.uiDialog.showError();\n    }\n  }), _dec5 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const url = `${_environment.default.APP.apiBaseHost}/${this.organizationSlug}/organisation-campaigns/ad/settings/tik-tok-target-groups`;\n      const response = yield this.authenticatedFetch.fetch(url, {\n        method: 'GET'\n      });\n      if (!response.ok) throw new Error();\n      const json = yield response.json();\n      this.tikTokTargetGroups = json.targetGroups;\n    } catch (e) {\n      this.isError = true;\n      this.uiDialog.showError();\n    }\n  }), _dec6 = (0, _emberConcurrency.task)(function* (changeset) {\n    try {\n      const targetGroups = changeset.get('targetGroups');\n      const url = `${_environment.default.APP.apiBaseHost}/${this.organizationSlug}/organisation-campaigns/ad/settings/tik-tok-target-groups`;\n      const response = yield this.authenticatedFetch.fetch(url, {\n        method: 'POST'\n      }, targetGroups);\n      if (!response.ok) throw new Error();\n      const json = yield response.json();\n      this.tikTokTargetGroups = json === null || json === void 0 ? void 0 : json.targetGroups;\n    } catch (e) {\n      this.isError = true;\n      this.uiDialog.showError();\n    }\n  }), _dec7 = (0, _emberConcurrency.task)(function* (changeset) {\n    try {\n      yield this.changeset.validate();\n      if (this.changeset.get('isInvalid')) {\n        return;\n      }\n      const body = {\n        settings: [{\n          id: changeset.get('id'),\n          type: changeset.get('type'),\n          value: changeset.get('value')\n        }]\n      };\n      const url = `${_environment.default.APP.apiBaseHost}/${this.organizationSlug}/organisation-campaigns/ad/settings`;\n      const response = yield this.authenticatedFetch.fetch(url, {\n        method: 'POST'\n      }, body);\n      if (!response.ok) throw new Error();\n      const json = yield response.json();\n      this.adSpendThresholdSettings = json.settings;\n      this.isThresholdDialogOpen = false;\n      this.uiToast.showToast({\n        title: this.intl.t('toast.success'),\n        type: 'success'\n      });\n    } catch (e) {\n      this.isError = true;\n      this.uiDialog.showError();\n    }\n  }), _class = class AmcCampaignAdsGeneralSettingsNavdrawerComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiState\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor7, this);\n      /**\n       * The stateKey of the navdrawer\n       *\n       * @argument stateKey\n       * @type {String}\n       * @default 'integrity-drawer'\n       */\n      _initializerDefineProperty(this, \"stateKey\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor9, this);\n      /**\n       * the adSpend threshold settings array\n       *\n       * @property adSpendThresholdSettings\n       * @type {Array}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"adSpendThresholdSettings\", _descriptor10, this);\n      /**\n       * the fetched tiktok target groups\n       *\n       * @property tikTokTargetGroups\n       * @type {Array}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"tikTokTargetGroups\", _descriptor11, this);\n      /**\n       * whether the treshold dialog is open\n       *\n       * @property isThresholdDialogOpen\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isThresholdDialogOpen\", _descriptor12, this);\n      /**\n       * whether the TikTok target groups dialog is open\n       *\n       * @property isTikTokTargetGroupsDialog\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isTikTokTargetGroupsDialog\", _descriptor13, this);\n      /**\n       * the changeset for the settings\n       *\n       * @property changeset\n       * @type {Changeset}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor14, this);\n      /**\n       * whether an error occurred\n       *\n       * @property isError\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isError\", _descriptor15, this);\n      /**\n       * fetches the adSpend threshold\n       *\n       * @function fetchThreshold\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchThreshold\", _descriptor16, this);\n      /**\n       * fetches the TikTok target groups\n       *\n       * @function fetchTikTokTargetGroups\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchTikTokTargetGroups\", _descriptor17, this);\n      /**\n       * saves the TikTok target groups\n       *\n       * @function saveTikTokTargetGroups\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"saveTikTokTargetGroups\", _descriptor18, this);\n      /**\n       * posts the adSpend threshold\n       *\n       * @function postThreshold\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"postThreshold\", _descriptor19, this);\n      this.fetchThreshold.perform();\n      this.fetchTikTokTargetGroups.perform();\n    }\n    setupChangeset() {\n      const validation = {\n        value: [(0, _validators.validatePresence)({\n          presence: true,\n          message: this.intl.t('errors.required')\n        }), (0, _validators.validateNumber)({\n          positive: true,\n          allowBlank: false,\n          message: this.intl.t('errors.positiveNumber')\n        })]\n      };\n      const resource = Object.assign({}, this.adSpendThresholdSettings[0], {\n        value: null\n      });\n      this.changeset = new _emberChangeset.default(resource, (0, _emberChangesetValidations.default)(validation), validation);\n    }\n    toggleDrawer() {\n      this.uiState.getState(this.stateKey).toggle();\n    }\n    openThresholdDialog() {\n      if (this.isReadOnly) return;\n      this.setupChangeset();\n      this.isThresholdDialogOpen = true;\n    }\n    closeThresholdDialog() {\n      if (this.changeset.isDirty) {\n        this.changeset.rollback();\n        this.isThresholdDialogOpen = false;\n      }\n      this.isThresholdDialogOpen = false;\n    }\n    onCloseTikTokTargetGroupsDialog() {\n      this.isTikTokTargetGroupsDialog = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"stateKey\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 'settings-drawer';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec3, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"adSpendThresholdSettings\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"tikTokTargetGroups\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isThresholdDialogOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isTikTokTargetGroupsDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"fetchThreshold\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"fetchTikTokTargetGroups\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"saveTikTokTargetGroups\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"postThreshold\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupChangeset\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setupChangeset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleDrawer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDrawer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openThresholdDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openThresholdDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeThresholdDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeThresholdDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCloseTikTokTargetGroupsDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onCloseTikTokTargetGroupsDialog\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsGeneralSettingsNavdrawerComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/lead-preview\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"mt05\">\n    <Grid @gap=\"24\" @rowGap=\"24\" @columns=\"1,2\">\n      {{#each this.content.multimediaVariants as |variant|}}\n        <AmcCampaign::Ads::Preview\n          @cta={{this.cta}}\n          @headline={{this.content.headline}}\n          @text={{this.content.text}}\n          @title={{this.content.title}}\n          @media={{variant}}\n          @type={{or (get variant.labels 0) this.type}}\n        />\n      {{/each}}\n    </Grid>\n  </div>\n  */\n  {\n    \"id\": \"ungSE/Zc\",\n    \"block\": \"[[[10,0],[14,0,\\\"mt05\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,0],null,[[\\\"@gap\\\",\\\"@rowGap\\\",\\\"@columns\\\"],[\\\"24\\\",\\\"24\\\",\\\"1,2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"content\\\",\\\"multimediaVariants\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[39,3],null,[[\\\"@cta\\\",\\\"@headline\\\",\\\"@text\\\",\\\"@title\\\",\\\"@media\\\",\\\"@type\\\"],[[30,0,[\\\"cta\\\"]],[30,0,[\\\"content\\\",\\\"headline\\\"]],[30,0,[\\\"content\\\",\\\"text\\\"]],[30,0,[\\\"content\\\",\\\"title\\\"]],[30,1],[28,[37,4],[[28,[37,5],[[30,1,[\\\"labels\\\"]],0],null],[30,0,[\\\"type\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"variant\\\"],false,[\\\"grid\\\",\\\"each\\\",\\\"-track-array\\\",\\\"amc-campaign/ads/preview\\\",\\\"or\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/lead-preview.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Component which generates a preview of all possible ad variations\n   *\n   * @class AmcCampaignAdsLeadPreviewComponent\n   */\n  let AmcCampaignAdsLeadPreviewComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _class = class AmcCampaignAdsLeadPreviewComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      /**\n       * The adCreative property of the lead ad\n       *\n       * @argument content\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"content\", _descriptor, this);\n      /**\n       * The cta text\n       *\n       * @argument cta\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"cta\", _descriptor2, this);\n      /**\n       * Preview type\n       *\n       * @argument type\n       * @type {String}\n       * @default 'landscape'\n       */\n      _initializerDefineProperty(this, \"type\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"content\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"cta\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"type\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 'landscape';\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsLeadPreviewComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/list-info-item\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@ember/component/template-only\"], function (_exports, _component, _templateFactory, _templateOnly) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"amc-list-info-item flex flex-column font-sm\">\n    {{#if @display}}\n      <div>\n        {{yield}}\n      </div>\n      <div class=\"secondary mt05\">\n        {{@label}}\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"PSMZmn4T\",\n    \"block\": \"[[[10,0],[14,0,\\\"amc-list-info-item flex flex-column font-sm\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"    \\\"],[10,0],[12],[1,\\\"\\\\n      \\\"],[18,3,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"secondary mt05\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,2]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@display\\\",\\\"@label\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/list-info-item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"additive-mc/components/amc-campaign/ads/list-view\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/service\", \"@ember/object/computed\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\"], function (_exports, _component, _templateFactory, _component2, _service, _computed, _emberArgTypes, _propTypes, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.activeAds.length}}\n    <AmcCampaign::Ads::List\n      @items={{this.activeAds}}\n      @renameAction={{this.renameAction}}\n      @archiveAction={{this.archiveAction}}\n      @deleteAction={{this.deleteAction}}\n      @uiAppSettings={{this.uiAppSettings}}\n      @isReadOnly={{@isReadOnly}}\n      @meta={{this.meta}}\n      @title={{t \"adCampaigns.leadAds.activeAds\"}}\n      @type={{this.type}}\n      data-test-ad-campaign-list-active\n    />\n  {{/if}}\n  {{#if this.expiredAds.length}}\n    <AmcCampaign::Ads::List\n      @items={{this.expiredAds}}\n      @renameAction={{this.renameAction}}\n      @archiveAction={{this.archiveAction}}\n      @deleteAction={{this.deleteAction}}\n      @uiAppSettings={{this.uiAppSettings}}\n      @isReadOnly={{@isReadOnly}}\n      @hideActions={{true}}\n      @meta={{this.meta}}\n      @title={{t \"adCampaigns.leadAds.expiredAds\"}}\n      @type={{this.type}}\n      data-test-ad-campaign-list-expired\n    />\n  {{/if}}\n  {{#if this.archivedAds.length}}\n    <AmcCampaign::Ads::List\n      @items={{this.archivedAds}}\n      @uiAppSettings={{this.uiAppSettings}}\n      @isReadOnly={{@isReadOnly}}\n      @hideActions={{true}}\n      @meta={{this.meta}}\n      @title={{t \"adCampaigns.leadAds.archivedAds\"}}\n      @type={{this.type}}\n      data-test-ad-campaign-list-archived\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"d5Oretem\",\n    \"block\": \"[[[41,[30,0,[\\\"activeAds\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[8,[39,1],[[24,\\\"data-test-ad-campaign-list-active\\\",\\\"\\\"]],[[\\\"@items\\\",\\\"@renameAction\\\",\\\"@archiveAction\\\",\\\"@deleteAction\\\",\\\"@uiAppSettings\\\",\\\"@isReadOnly\\\",\\\"@meta\\\",\\\"@title\\\",\\\"@type\\\"],[[30,0,[\\\"activeAds\\\"]],[30,0,[\\\"renameAction\\\"]],[30,0,[\\\"archiveAction\\\"]],[30,0,[\\\"deleteAction\\\"]],[30,0,[\\\"uiAppSettings\\\"]],[30,1],[30,0,[\\\"meta\\\"]],[28,[37,2],[\\\"adCampaigns.leadAds.activeAds\\\"],null],[30,0,[\\\"type\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"expiredAds\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[8,[39,1],[[24,\\\"data-test-ad-campaign-list-expired\\\",\\\"\\\"]],[[\\\"@items\\\",\\\"@renameAction\\\",\\\"@archiveAction\\\",\\\"@deleteAction\\\",\\\"@uiAppSettings\\\",\\\"@isReadOnly\\\",\\\"@hideActions\\\",\\\"@meta\\\",\\\"@title\\\",\\\"@type\\\"],[[30,0,[\\\"expiredAds\\\"]],[30,0,[\\\"renameAction\\\"]],[30,0,[\\\"archiveAction\\\"]],[30,0,[\\\"deleteAction\\\"]],[30,0,[\\\"uiAppSettings\\\"]],[30,1],true,[30,0,[\\\"meta\\\"]],[28,[37,2],[\\\"adCampaigns.leadAds.expiredAds\\\"],null],[30,0,[\\\"type\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"archivedAds\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[8,[39,1],[[24,\\\"data-test-ad-campaign-list-archived\\\",\\\"\\\"]],[[\\\"@items\\\",\\\"@uiAppSettings\\\",\\\"@isReadOnly\\\",\\\"@hideActions\\\",\\\"@meta\\\",\\\"@title\\\",\\\"@type\\\"],[[30,0,[\\\"archivedAds\\\"]],[30,0,[\\\"uiAppSettings\\\"]],[30,1],true,[30,0,[\\\"meta\\\"]],[28,[37,2],[\\\"adCampaigns.leadAds.archivedAds\\\"],null],[30,0,[\\\"type\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@isReadOnly\\\"],false,[\\\"if\\\",\\\"amc-campaign/ads/list\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/list-view.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Splits the lead ad advertisements list into sub lists\n   *\n   * @class AmcCampaignAdsListView\n   */\n  let AmcCampaignAdsListViewComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.array | _propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec4 = (0, _emberArgTypes.arg)(_propTypes.string), _dec5 = (0, _computed.filterBy)('items', 'isActive', true), _dec6 = (0, _computed.filterBy)('items', 'isArchived', true), _dec7 = (0, _computed.filterBy)('items', 'isExpired', true), _dec8 = (0, _emberArgTypes.arg)(_propTypes.func), _dec9 = (0, _emberArgTypes.arg)(_propTypes.func), _dec10 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignAdsListViewComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor, this);\n      /**\n       * the list items\n       *\n       * @argument items\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"items\", _descriptor2, this);\n      /**\n       * The meta information\n       *\n       * @argument meta\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"meta\", _descriptor3, this);\n      /**\n       * whether the component is read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor4, this);\n      /**\n       * The items type\n       *\n       * @argument type\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"type\", _descriptor5, this);\n      _initializerDefineProperty(this, \"activeAds\", _descriptor6, this);\n      _initializerDefineProperty(this, \"archivedAds\", _descriptor7, this);\n      _initializerDefineProperty(this, \"expiredAds\", _descriptor8, this);\n      _initializerDefineProperty(this, \"archiveAction\", _descriptor9, this);\n      _initializerDefineProperty(this, \"renameAction\", _descriptor10, this);\n      _initializerDefineProperty(this, \"deleteAction\", _descriptor11, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"items\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"type\", [_dec4, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"activeAds\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"archivedAds\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"expiredAds\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"archiveAction\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"renameAction\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"deleteAction\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsListViewComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/list\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/service\"], function (_exports, _component, _templateFactory, _component2, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiList\n    @items={{@items}}\n    @hasMobileSpacing={{true}}\n    @title={{@title}}\n    @classNames=\"pb3\"\n    ...attributes\n    as |list item|\n  >\n    <list.item\n      @linkTo={{if\n        (eq @type \"leadAds\")\n        \"instance.campaigns.ad.lead-ads.lead-ad\"\n        \"instance.campaigns.ad.tiktok-lead-ads.index.lead-ad\"\n      }}\n      @linkToParam={{item.id}}\n      @isActive={{eq item.id this._currentItem}}\n      @description={{get (array-find item.targetAudience @meta.targetAudiences) \"label\"}}\n      @state={{item.publishedState}}\n      as |controls|\n    >\n      <controls.state />\n      <controls.thumbnail\n        @src={{if\n          item.image\n          (mm-medium-url-options\n            (if item.image.thumbnailUrl item.image.thumbnailUrl item.image.url) (hash size=\"72x72\")\n          )\n        }}\n        @alt={{item.name}}\n      />\n      <controls.title>\n        <span class=\"ellipsis\">\n          {{item.label}}\n        </span>\n      </controls.title>\n      <controls.content @class=\"justify-around flex-wrap ohidden w-60\">\n        <AmcCampaign::Ads::ListInfoItem\n          @label={{t \"adCampaigns.properties.timespan\"}}\n          @display={{and item.startDate item.endDate}}\n        >\n          {{date-format item.startDate}}\n          --\n          {{if\n            item.unlimitedDuration\n            (t \"socialCampaigns.socialCampaign.campaigns.detail.unlimitedDuration\")\n            (date-format item.endDate)\n          }}\n        </AmcCampaign::Ads::ListInfoItem>\n        <AmcCampaign::Ads::ListInfoItem\n          @label={{t (concat \"adCampaigns.properties.budgets.\" item.budget.type)}}\n          @display={{or item.totalBudget item.budget.amount}}\n        >\n          {{#if (eq item.budget.type \"lifetime\")}}\n            {{ui-format-currency\n              (or item.budgetSpend.value 0)\n              \"EUR\"\n              this.currentUser.user.language\n              0\n              2\n              1\n            }}\n            /\n            {{ui-format-currency\n              (or item.totalBudget item.budget.amount)\n              \"EUR\"\n              this.currentUser.user.language\n              0\n              2\n              1\n            }}\n            <span class=\"secondary\">\n              (\n              {{format-number item.budgetSpend.percentage minimumFractionDigits=\"0\"}}\n              %)\n            </span>\n          {{else}}\n            {{ui-format-currency\n              (or item.totalBudget item.budget.amount)\n              \"EUR\"\n              this.currentUser.user.language\n              0\n              2\n              1\n            }}\n          {{/if}}\n        </AmcCampaign::Ads::ListInfoItem>\n      </controls.content>\n      <controls.right>\n        {{#if (or @hideActions @isReadOnly)}}\n          {{! add dummy element to have to equal spacing in list elements }}\n          <div class=\"ph1 mh05\"></div>\n        {{else}}\n          <UiItemMenu as |content|>\n            <content.menuItem\n              @label={{t \"global.actions.rename\"}}\n              @isDisabled={{item.isPublic}}\n              @onClick={{fn @renameAction item}}\n            />\n            <content.menuItem\n              @label={{t \"global.actions.archive\"}}\n              @isDisabled={{item.isPublic}}\n              @onClick={{fn @archiveAction item}}\n            />\n            <content.menuItem\n              @label={{t \"global.actions.delete\"}}\n              @isDisabled={{item.isPublic}}\n              @onClick={{fn @deleteAction item}}\n            />\n          </UiItemMenu>\n        {{/if}}\n      </controls.right>\n    </list.item>\n  </UiList>\n  */\n  {\n    \"id\": \"lOUCSSuy\",\n    \"block\": \"[[[8,[39,0],[[17,1]],[[\\\"@items\\\",\\\"@hasMobileSpacing\\\",\\\"@title\\\",\\\"@classNames\\\"],[[30,2],true,[30,3],\\\"pb3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,4,[\\\"item\\\"]],null,[[\\\"@linkTo\\\",\\\"@linkToParam\\\",\\\"@isActive\\\",\\\"@description\\\",\\\"@state\\\"],[[52,[28,[37,2],[[30,6],\\\"leadAds\\\"],null],\\\"instance.campaigns.ad.lead-ads.lead-ad\\\",\\\"instance.campaigns.ad.tiktok-lead-ads.index.lead-ad\\\"],[30,5,[\\\"id\\\"]],[28,[37,2],[[30,5,[\\\"id\\\"]],[30,0,[\\\"_currentItem\\\"]]],null],[28,[37,3],[[28,[37,4],[[30,5,[\\\"targetAudience\\\"]],[30,7,[\\\"targetAudiences\\\"]]],null],\\\"label\\\"],null],[30,5,[\\\"publishedState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,8,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,8,[\\\"thumbnail\\\"]],null,[[\\\"@src\\\",\\\"@alt\\\"],[[52,[30,5,[\\\"image\\\"]],[28,[37,5],[[52,[30,5,[\\\"image\\\",\\\"thumbnailUrl\\\"]],[30,5,[\\\"image\\\",\\\"thumbnailUrl\\\"]],[30,5,[\\\"image\\\",\\\"url\\\"]]],[28,[37,6],null,[[\\\"size\\\"],[\\\"72x72\\\"]]]],null]],[30,5,[\\\"name\\\"]]]],null],[1,\\\"\\\\n    \\\"],[8,[30,8,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,5,[\\\"label\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,8,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"justify-around flex-wrap ohidden w-60\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,7],null,[[\\\"@label\\\",\\\"@display\\\"],[[28,[37,8],[\\\"adCampaigns.properties.timespan\\\"],null],[28,[37,9],[[30,5,[\\\"startDate\\\"]],[30,5,[\\\"endDate\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[[30,5,[\\\"startDate\\\"]]],null]],[1,\\\"\\\\n        --\\\\n        \\\"],[1,[52,[30,5,[\\\"unlimitedDuration\\\"]],[28,[37,8],[\\\"socialCampaigns.socialCampaign.campaigns.detail.unlimitedDuration\\\"],null],[28,[37,10],[[30,5,[\\\"endDate\\\"]]],null]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[39,7],null,[[\\\"@label\\\",\\\"@display\\\"],[[28,[37,8],[[28,[37,11],[\\\"adCampaigns.properties.budgets.\\\",[30,5,[\\\"budget\\\",\\\"type\\\"]]],null]],null],[28,[37,12],[[30,5,[\\\"totalBudget\\\"]],[30,5,[\\\"budget\\\",\\\"amount\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,5,[\\\"budget\\\",\\\"type\\\"]],\\\"lifetime\\\"],null],[[[1,\\\"          \\\"],[1,[28,[35,13],[[28,[37,12],[[30,5,[\\\"budgetSpend\\\",\\\"value\\\"]],0],null],\\\"EUR\\\",[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],0,2,1],null]],[1,\\\"\\\\n          /\\\\n          \\\"],[1,[28,[35,13],[[28,[37,12],[[30,5,[\\\"totalBudget\\\"]],[30,5,[\\\"budget\\\",\\\"amount\\\"]]],null],\\\"EUR\\\",[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],0,2,1],null]],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"secondary\\\"],[12],[1,\\\"\\\\n            (\\\\n            \\\"],[1,[28,[35,14],[[30,5,[\\\"budgetSpend\\\",\\\"percentage\\\"]]],[[\\\"minimumFractionDigits\\\"],[\\\"0\\\"]]]],[1,\\\"\\\\n            %)\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,13],[[28,[37,12],[[30,5,[\\\"totalBudget\\\"]],[30,5,[\\\"budget\\\",\\\"amount\\\"]]],null],\\\"EUR\\\",[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],0,2,1],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,8,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,9],[30,10]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"ph1 mh05\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,15],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,11,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,8],[\\\"global.actions.rename\\\"],null],[30,5,[\\\"isPublic\\\"]],[28,[37,16],[[30,12],[30,5]],null]]],null],[1,\\\"\\\\n          \\\"],[8,[30,11,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,8],[\\\"global.actions.archive\\\"],null],[30,5,[\\\"isPublic\\\"]],[28,[37,16],[[30,13],[30,5]],null]]],null],[1,\\\"\\\\n          \\\"],[8,[30,11,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,8],[\\\"global.actions.delete\\\"],null],[30,5,[\\\"isPublic\\\"]],[28,[37,16],[[30,14],[30,5]],null]]],null],[1,\\\"\\\\n        \\\"]],[11]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[8]]]]],[1,\\\"\\\\n\\\"]],[4,5]]]]]],[\\\"&attrs\\\",\\\"@items\\\",\\\"@title\\\",\\\"list\\\",\\\"item\\\",\\\"@type\\\",\\\"@meta\\\",\\\"controls\\\",\\\"@hideActions\\\",\\\"@isReadOnly\\\",\\\"content\\\",\\\"@renameAction\\\",\\\"@archiveAction\\\",\\\"@deleteAction\\\"],false,[\\\"ui-list\\\",\\\"if\\\",\\\"eq\\\",\\\"get\\\",\\\"array-find\\\",\\\"mm-medium-url-options\\\",\\\"hash\\\",\\\"amc-campaign/ads/list-info-item\\\",\\\"t\\\",\\\"and\\\",\\\"date-format\\\",\\\"concat\\\",\\\"or\\\",\\\"ui-format-currency\\\",\\\"format-number\\\",\\\"ui-item-menu\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/list.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * List of advertisements\n   *\n   * @class AmcCampaignAdsList\n   */\n  let AmcCampaignAdsListComponent = _exports.default = (_class = class AmcCampaignAdsListComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    get _currentItem() {\n      var _this$router, _this$router2, _this$router$currentR, _this$router$currentR2;\n      if (((_this$router = this.router) === null || _this$router === void 0 || (_this$router = _this$router.currentRouteName) === null || _this$router === void 0 ? void 0 : _this$router.indexOf('instance.campaigns.ad.lead-ads.lead-ad')) === -1 && ((_this$router2 = this.router) === null || _this$router2 === void 0 || (_this$router2 = _this$router2.currentRouteName) === null || _this$router2 === void 0 ? void 0 : _this$router2.indexOf('instance.campaigns.ad.catalog-ads.index.catalog-ad')) === -1) {\n        return false;\n      }\n      return ((_this$router$currentR = this.router.currentRoute.attributes) === null || _this$router$currentR === void 0 || (_this$router$currentR = _this$router$currentR.catalogAd) === null || _this$router$currentR === void 0 ? void 0 : _this$router$currentR.id) || ((_this$router$currentR2 = this.router.currentRoute.attributes) === null || _this$router$currentR2 === void 0 ? void 0 : _this$router$currentR2.id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsListComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/preview\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _propTypes, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"ad-preview relative ba b--secondary-10 br1\">\n    {{#if (or (equal this.type \"landscape\") (equal this.type \"square\"))}}\n      <div class=\"head\">\n        <div class=\"flex items-center\">\n          <div class=\"placeholder-32 br-100 bg-secondary--10\"></div>\n          <div class=\"pa05 pl1 flex flex-column justify-between h1\">\n            <div class=\"placeholder-120 br1 bg-secondary--10\"></div>\n            <div class=\"placeholder-80 br1 bg-secondary--10\"></div>\n          </div>\n          <div class=\"ml-auto\">\n            {{svg-jar \"dots\"}}\n          </div>\n        </div>\n        <div class=\"headline font-sm\">\n          {{this.text}}\n        </div>\n      </div>\n    {{else}}\n      <div class=\"portrait-head absolute left-2 top-2 flex flex-column\">\n        <div class=\"flex items-center justify-center mb05\">\n          <div class=\"placeholder-100 w-100 br1 bg-white mr05\"></div>\n          <div class=\"placeholder-100 w-100 br1 bg-white--60 mr05\"></div>\n          <div class=\"placeholder-100 w-100 br1 bg-white--60 mr05\"></div>\n          <div class=\"placeholder-100 w-100 br1 bg-white--60 mr05\"></div>\n        </div>\n        <div class=\"flex mt1\">\n          <div class=\"placeholder-32 br-100 bg-white--60\"></div>\n          <div class=\"flex flex-column ml1\">\n            <div class=\"placeholder-120 br1 bg-white--60 mb05\"></div>\n            <div class=\"placeholder-80 br1 bg-white--60\"></div>\n          </div>\n        </div>\n      </div>\n    {{/if}}\n    {{#if this.media}}\n      {{#if (equal this.media.type \"video\")}}\n        <div\n          class=\"w-100 relative\"\n          {{did-insert (fn this.onDidUpdatePreview this.media.thumbnailUrl)}}\n          {{did-update (fn this.onDidUpdatePreview this.media.thumbnailUrl) this.media.thumbnailUrl}}\n        >\n          {{#if this.isPreviewLoading}}\n            <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{720}} @gap={{0}} />\n          {{/if}}\n          <div\n            class=\"play br-100 white flex items-center justify-center absolute absolute--fill m-auto\"\n          >\n            {{svg-jar \"play\"}}\n          </div>\n          <img\n            class={{concat \"amc-campaign-ads-preview-video video db \" this.type}}\n            src={{mm-medium-url-options\n              this.media.thumbnailUrl\n              (hash size=this.mediaSize poi=this.media.transformations.poi)\n            }}\n            alt={{this.headline}}\n          />\n        </div>\n      {{else}}\n        <img\n          class=\"w-100 db\"\n          src={{mm-medium-url-options\n            this.media.url\n            (hash size=this.mediaSize poi=this.media.transformations.poi)\n          }}\n          alt={{this.headline}}\n        />\n      {{/if}}\n    {{else}}\n      <div\n        class={{concat\n          \"placeholder-image w-100 relative flex items-center justify-center bg-secondary--20 \"\n          this.type\n        }}\n      >\n        {{svg-jar \"placeholder-image\" class=\"secondary--40\"}}\n      </div>\n    {{/if}}\n  \n    {{#if (or (equal this.type \"landscape\") (equal this.type \"square\"))}}\n      <div class=\"text-container flex items-center bg-secondary--10\">\n        <div>\n          <div class=\"placeholder-92 br1 bg-secondary--10\"></div>\n          <p class=\"font-sm\">\n            {{this.title}}\n          </p>\n          <p class=\"font-xs\">\n            {{this.headline}}\n          </p>\n        </div>\n        <div class=\"cta ba br1 pv05 ph1 font-xs ws-nowrap ml-auto\">\n          {{this.cta}}\n        </div>\n      </div>\n      <div class=\"footer\">\n        <div class=\"flex items-center container\">\n          <div class=\"placeholder-12 br-100 bg-secondary--40\"></div>\n          <div class=\"placeholder-12 br-100 bg-secondary--40\"></div>\n          <div class=\"placeholder-12 br-100 bg-secondary--40\"></div>\n          <div class=\"placeholder-80 br1 bg-secondary--10 mw25p\"></div>\n          <div class=\"placeholder-80 br1 bg-secondary--10 ml-auto mw25p\"></div>\n        </div>\n        <hr class=\"parting-line bg-secondary--10\" />\n        <div class=\"flex container justify-between\">\n          <div class=\"placeholder-92 br1 bg-secondary--10 mw30p\"></div>\n          <div class=\"placeholder-92 br1 bg-secondary--10 mw30p\"></div>\n          <div class=\"placeholder-92 br1 bg-secondary--10 mw30p\"></div>\n        </div>\n      </div>\n    {{else}}\n      <div class=\"absolute left-0 bottom-1 flex flex-column items-center justify-center w-100\">\n        {{svg-jar \"arrow-up-circle\" class=\"white--60 mb1 br-100\"}}\n        <div class=\"placeholder-80 br1 bg-white--60\"></div>\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"8ojzHmN8\",\n    \"block\": \"[[[10,0],[14,0,\\\"ad-preview relative ba b--secondary-10 br1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[28,[37,2],[[30,0,[\\\"type\\\"]],\\\"landscape\\\"],null],[28,[37,2],[[30,0,[\\\"type\\\"]],\\\"square\\\"],null]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"head\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-32 br-100 bg-secondary--10\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"pa05 pl1 flex flex-column justify-between h1\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"placeholder-120 br1 bg-secondary--10\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"placeholder-80 br1 bg-secondary--10\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"ml-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"dots\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"headline font-sm\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"text\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"portrait-head absolute left-2 top-2 flex flex-column\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex items-center justify-center mb05\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-100 w-100 br1 bg-white mr05\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-100 w-100 br1 bg-white--60 mr05\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-100 w-100 br1 bg-white--60 mr05\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-100 w-100 br1 bg-white--60 mr05\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex mt1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-32 br-100 bg-white--60\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex flex-column ml1\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"placeholder-120 br1 bg-white--60 mb05\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"placeholder-80 br1 bg-white--60\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[30,0,[\\\"media\\\"]],[[[41,[28,[37,2],[[30,0,[\\\"media\\\",\\\"type\\\"]],\\\"video\\\"],null],[[[1,\\\"      \\\"],[11,0],[24,0,\\\"w-100 relative\\\"],[4,[38,4],[[28,[37,5],[[30,0,[\\\"onDidUpdatePreview\\\"]],[30,0,[\\\"media\\\",\\\"thumbnailUrl\\\"]]],null]],null],[4,[38,6],[[28,[37,5],[[30,0,[\\\"onDidUpdatePreview\\\"]],[30,0,[\\\"media\\\",\\\"thumbnailUrl\\\"]]],null],[30,0,[\\\"media\\\",\\\"thumbnailUrl\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isPreviewLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,1,720,0]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"play br-100 white flex items-center justify-center absolute absolute--fill m-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"play\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"img\\\"],[15,0,[28,[37,8],[\\\"amc-campaign-ads-preview-video video db \\\",[30,0,[\\\"type\\\"]]],null]],[15,\\\"src\\\",[28,[37,9],[[30,0,[\\\"media\\\",\\\"thumbnailUrl\\\"]],[28,[37,10],null,[[\\\"size\\\",\\\"poi\\\"],[[30,0,[\\\"mediaSize\\\"]],[30,0,[\\\"media\\\",\\\"transformations\\\",\\\"poi\\\"]]]]]],null]],[15,\\\"alt\\\",[30,0,[\\\"headline\\\"]]],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,\\\"img\\\"],[14,0,\\\"w-100 db\\\"],[15,\\\"src\\\",[28,[37,9],[[30,0,[\\\"media\\\",\\\"url\\\"]],[28,[37,10],null,[[\\\"size\\\",\\\"poi\\\"],[[30,0,[\\\"mediaSize\\\"]],[30,0,[\\\"media\\\",\\\"transformations\\\",\\\"poi\\\"]]]]]],null]],[15,\\\"alt\\\",[30,0,[\\\"headline\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[15,0,[28,[37,8],[\\\"placeholder-image w-100 relative flex items-center justify-center bg-secondary--20 \\\",[30,0,[\\\"type\\\"]]],null]],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"placeholder-image\\\"],[[\\\"class\\\"],[\\\"secondary--40\\\"]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[28,[37,2],[[30,0,[\\\"type\\\"]],\\\"landscape\\\"],null],[28,[37,2],[[30,0,[\\\"type\\\"]],\\\"square\\\"],null]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"text-container flex items-center bg-secondary--10\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-92 br1 bg-secondary--10\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"font-sm\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"title\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"font-xs\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"headline\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"cta ba br1 pv05 ph1 font-xs ws-nowrap ml-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"cta\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex items-center container\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-12 br-100 bg-secondary--40\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-12 br-100 bg-secondary--40\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-12 br-100 bg-secondary--40\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-80 br1 bg-secondary--10 mw25p\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-80 br1 bg-secondary--10 ml-auto mw25p\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"hr\\\"],[14,0,\\\"parting-line bg-secondary--10\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex container justify-between\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-92 br1 bg-secondary--10 mw30p\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-92 br1 bg-secondary--10 mw30p\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"placeholder-92 br1 bg-secondary--10 mw30p\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"absolute left-0 bottom-1 flex flex-column items-center justify-center w-100\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"arrow-up-circle\\\"],[[\\\"class\\\"],[\\\"white--60 mb1 br-100\\\"]]]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"placeholder-80 br1 bg-white--60\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"if\\\",\\\"or\\\",\\\"equal\\\",\\\"svg-jar\\\",\\\"did-insert\\\",\\\"fn\\\",\\\"did-update\\\",\\\"ui-skeleton\\\",\\\"concat\\\",\\\"mm-medium-url-options\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/preview.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Component which generates a preview with the given data\n   *\n   * @class AmcCampaignAdsPreviewComponent\n   */\n  let AmcCampaignAdsPreviewComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _emberArgTypes.arg)(_propTypes.string), _dec5 = (0, _emberArgTypes.arg)(_propTypes.string), _dec6 = (0, _emberArgTypes.arg)(_propTypes.string), _class = class AmcCampaignAdsPreviewComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      /**\n       * The preview cta\n       *\n       * @argument cta\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"cta\", _descriptor, this);\n      /**\n       * The preview headline\n       *\n       * @argument headline\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"headline\", _descriptor2, this);\n      /**\n       * The preview media\n       *\n       * @argument media\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"media\", _descriptor3, this);\n      /**\n       * The preview text\n       *\n       * @argument text\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"text\", _descriptor4, this);\n      /**\n       * The ad type (portrait/squre/landscape)\n       *\n       * @argument type\n       * @type {String}\n       * @default landscape\n       */\n      _initializerDefineProperty(this, \"type\", _descriptor5, this);\n      /**\n       * The preview title\n       *\n       * @argument title\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"title\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isPreviewLoading\", _descriptor7, this);\n      _initializerDefineProperty(this, \"lastThumbnailUrl\", _descriptor8, this);\n    }\n    get mediaSize() {\n      if (this.type === 'square') {\n        return '348x348';\n      }\n      if (this.type === 'portrait') {\n        return '348x620';\n      }\n      return '348x188';\n    }\n    onDidUpdatePreview(url) {\n      if (url !== this.lastThumbnailUrl) {\n        this.lastThumbnailUrl = url;\n        const previewImage = document.querySelector('.amc-campaign-ads-preview-video');\n        previewImage.style.display = 'none';\n        if (previewImage) {\n          this.isPreviewLoading = true;\n\n          // When the gif is loaded, hide the loading image\n          previewImage === null || previewImage === void 0 || previewImage.addEventListener('load', () => {\n            previewImage.style.display = 'block';\n            this.isPreviewLoading = false;\n          });\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"cta\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"headline\", [_dec2, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"media\", [_dec3, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"text\", [_dec4, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"type\", [_dec5, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 'landscape';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec6, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isPreviewLoading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"lastThumbnailUrl\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onDidUpdatePreview\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDidUpdatePreview\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsPreviewComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/text-detail\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@ember/component/template-only\"], function (_exports, _component, _templateFactory, _templateOnly) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-insert (perform this.setup)}}></div>\n  {{#if this.isLoading}}\n    <UiModal @isLoading={{true}} />\n  {{else if this.text}}\n    <UiMultilingualModal\n      @title={{this.title}}\n      @resource={{this.text}}\n      @modelName=\"text\"\n      @modelOptions={{hash adapterOptions=(hash campaignId=this.campaign.id)}}\n      @multilingualProperties=\"text\"\n      @validation={{this.validation}}\n      @onClose={{this.close}}\n      @isEdit={{if this.isNew true false}}\n      @size=\"sm\" as |m|\n    >\n      <m.content>\n        <UiInput\n          @label={{t \"socialCampaigns.socialCampaign.campaigns.detail.text.text\"}}\n          @value={{m.changeset.text}}\n          @errorMessage={{m.changeset.error.text.validation}}\n          @isTouched={{this.isTouched}}\n          @textarea={{true}}\n          @isReadOnly={{m.isReadOnly}}\n        />\n  \n        <UiSelect\n          @label={{t \"socialCampaigns.socialCampaign.campaigns.detail.contents\"}}\n          @options={{this.meta.contents}}\n          @selected={{this.selectedContents}}\n          @isMultiSelect={{true}}\n          @objectKey=\"label\"\n          @onChange={{fn this.onSelectChange m.changeset}}\n          @errorMessage={{m.changeset.error.promotedContents.validation}}\n          @isTouched={{this.isTouched}}\n          @isReadOnly={{m.isReadOnly}} as |optionComponent option|\n        >\n          <optionComponent.item @value={{option}}>\n            {{option.label}}\n          </optionComponent.item>\n        </UiSelect>\n      </m.content>\n    </UiMultilingualModal>\n  {{/if}}\n  */\n  {\n    \"id\": \"CshvnJ7Q\",\n    \"block\": \"[[[11,0],[4,[38,0],[[28,[37,1],[[30,0,[\\\"setup\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,3],null,[[\\\"@isLoading\\\"],[true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"text\\\"]],[[[1,\\\"  \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@resource\\\",\\\"@modelName\\\",\\\"@modelOptions\\\",\\\"@multilingualProperties\\\",\\\"@validation\\\",\\\"@onClose\\\",\\\"@isEdit\\\",\\\"@size\\\"],[[30,0,[\\\"title\\\"]],[30,0,[\\\"text\\\"]],\\\"text\\\",[28,[37,5],null,[[\\\"adapterOptions\\\"],[[28,[37,5],null,[[\\\"campaignId\\\"],[[30,0,[\\\"campaign\\\",\\\"id\\\"]]]]]]]],\\\"text\\\",[30,0,[\\\"validation\\\"]],[30,0,[\\\"close\\\"]],[52,[30,0,[\\\"isNew\\\"]],true,false],\\\"sm\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@textarea\\\",\\\"@isReadOnly\\\"],[[28,[37,7],[\\\"socialCampaigns.socialCampaign.campaigns.detail.text.text\\\"],null],[30,1,[\\\"changeset\\\",\\\"text\\\"]],[30,1,[\\\"changeset\\\",\\\"error\\\",\\\"text\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],true,[30,1,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,8],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@onChange\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[[28,[37,7],[\\\"socialCampaigns.socialCampaign.campaigns.detail.contents\\\"],null],[30,0,[\\\"meta\\\",\\\"contents\\\"]],[30,0,[\\\"selectedContents\\\"]],true,\\\"label\\\",[28,[37,9],[[30,0,[\\\"onSelectChange\\\"]],[30,1,[\\\"changeset\\\"]]],null],[30,1,[\\\"changeset\\\",\\\"error\\\",\\\"promotedContents\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,1,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,3]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,3,[\\\"label\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2,3]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[\\\"m\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"did-insert\\\",\\\"perform\\\",\\\"if\\\",\\\"ui-modal\\\",\\\"ui-multilingual-modal\\\",\\\"hash\\\",\\\"ui-input\\\",\\\"t\\\",\\\"ui-select\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/text-detail.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"additive-mc/components/amc-campaign/ads/tik-tok-target-groups-modal\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"ember-changeset\", \"@ember/object\", \"ember-concurrency\", \"@glimmer/tracking\", \"ember-arg-types\", \"@ember/object/computed\", \"@ember/service\", \"@ember/string\", \"ember-changeset-validations\", \"additive-mc/validations/advertisement\"], function (_exports, _component, _templateFactory, _environment, _component2, _emberChangeset, _object, _emberConcurrency, _tracking, _emberArgTypes, _computed, _service, _string, _emberChangesetValidations, _advertisement) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{t \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.label\"}}\n    @size=\"md\"\n    @onClose={{this.close}} as |m|\n  >\n    <m.header />\n    <m.content as |c|>\n      <c.body class=\"pt3\">\n        {{#if this.isEmpty}}\n          <div class=\"flex flex-column items-center justify-center text-center pv4 mv4\">\n            {{svg-jar \"empty-content-grey\"}}\n            <div class=\"font-sm secondary\">\n              {{t \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.empty\"}}\n            </div>\n          </div>\n        {{/if}}\n        <div class=\"tik-tok-settings-list\">\n          {{#each this.changeset.targetGroups as |targetGroup index|}}\n            <div class=\"flex space-between items-center w-100 pv2 bt bb b--secondary-10\">\n              <div class=\"flex w-100 items-center font-sm primary ph2\">\n                {{targetGroup.label}}\n              </div>\n              <UiIconButton\n                @icon=\"edit\"\n                @isSecondary={{true}}\n                @onClick={{fn this.edit targetGroup}}\n              />\n              {{#unless @isReadOnly}}\n                <UiIconButton @icon=\"delete\" @isDanger={{true}} @onClick={{fn this.delete index}} />\n              {{/unless}}\n            </div>\n          {{/each}}\n        </div>\n      </c.body>\n    </m.content>\n  \n    {{#unless @isReadOnly}}\n      <m.footer>\n        <UiButton @icon=\"plus\" @isFabButton={{true}} @onClick={{this.add}} />\n      </m.footer>\n    {{/unless}}\n  </UiModal>\n  \n  {{#if this.isEditDialog}}\n    <UiModal\n      @title={{t \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.title\"}}\n      @size=\"md\"\n      @onClose={{this.closeEditDialog}} as |m|\n    >\n      <m.header />\n      <m.content as |c|>\n        <c.body {{did-insert this.didInsert}}>\n          {{#if this.fetchMetaData.isRunning}}\n            <UiSkeleton\n              @itemsPerRow={{1}}\n              @items={{5}}\n              @itemsSmartphone={{5}}\n              @cardHeight={{64}}\n              @gap={{32}}\n            />\n            <UiSkeleton\n              @itemsPerRow={{1}}\n              @items={{3}}\n              @itemsSmartphone={{3}}\n              @cardHeight={{82}}\n              @gap={{8}}\n            />\n          {{else}}\n            <UiInput\n              @label={{t\n                \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.label\"\n              }}\n              @value={{this.targetGroupChangeset.label}}\n              @isTouched={{this.isTouched}}\n              @isReadOnly={{@isReadOnly}}\n              @errorMessage={{this.targetGroupChangeset.error.label.validation}}\n            />\n  \n            <UiSelect\n              @label={{t\n                \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.location\"\n              }}\n              @isMultiSelect={{true}}\n              @objectKey=\"label\"\n              @isSearchable={{true}}\n              @isCollapsible={{true}}\n              @useFullTextSearch={{true}}\n              @initialValue={{this.targetGroupChangeset.location}}\n              @selected={{this.targetGroupChangeset.location}}\n              @options={{this.meta.locations}}\n              @errorMessage={{this.targetGroupChangeset.error.location.validation}}\n              @isTouched={{this.isTouched}}\n              @isReadOnly={{@isReadOnly}}\n              @onChange={{fn this.onMultiSelectChange \"location\"}} as |optionComponent option|\n            >\n              <optionComponent.item @value={{option}}>\n                {{option.label}}\n              </optionComponent.item>\n            </UiSelect>\n  \n            <UiSelect\n              @label={{t\n                \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.language\"\n              }}\n              @isMultiSelect={{true}}\n              @objectKey=\"label\"\n              @isSearchable={{true}}\n              @useFullTextSearch={{true}}\n              @initialValue={{this.targetGroupChangeset.language}}\n              @selected={{this.targetGroupChangeset.language}}\n              @options={{this.meta.availableLanguages}}\n              @errorMessage={{this.targetGroupChangeset.error.language.validation}}\n              @isTouched={{this.isTouched}}\n              @isReadOnly={{@isReadOnly}}\n              @onChange={{fn this.onMultiSelectChange \"language\"}} as |optionComponent option|\n            >\n              <optionComponent.item @value={{option}}>\n                {{option.label}}\n              </optionComponent.item>\n            </UiSelect>\n  \n            <div class=\"font-sm secondary pb2\">\n              {{t\n                \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.gender.label\"\n              }}\n            </div>\n            <UiRadioButtonGroup\n              @class=\"pb2\"\n              @options={{this.genderOptions}}\n              @selected={{this.targetGroupChangeset.gender}} as |group option|\n            >\n              <group.option\n                @class=\"mr3\"\n                @label={{option.label}}\n                @isDisabled={{@isReadOnly}}\n                @value={{option.value}}\n              />\n            </UiRadioButtonGroup>\n  \n            <UiSelect\n              @label={{t \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.age\"}}\n              @isMultiSelect={{true}}\n              @objectKey=\"label\"\n              @initialValue={{this.targetGroupChangeset.age}}\n              @selected={{this.targetGroupChangeset.age}}\n              @options={{this.meta.age}}\n              @errorMessage={{this.targetGroupChangeset.error.age.validation}}\n              @isTouched={{this.isTouched}}\n              @isReadOnly={{@isReadOnly}}\n              @onChange={{fn this.onMultiSelectChange \"age\"}} as |optionComponent option|\n            >\n              <optionComponent.item @value={{option}}>\n                {{option.label}}\n              </optionComponent.item>\n            </UiSelect>\n  \n            <AmcCampaign::Ads::TikTokTargetGroupsModal::SettingBlock\n              @classNames=\"mb1\"\n              @selected={{this.targetGroupChangeset.interests}}\n              @intlBaseKey=\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.interests\"\n            >\n              <div class=\"bt b--black-10\">\n                <div class=\"font-sm secondary pt2\">\n                  {{t\n                    \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.interests.targetInterests\"\n                  }}\n                </div>\n                <UiSelect\n                  @isPlain={{true}}\n                  @isMultiSelect={{true}}\n                  @isCollapsible={{true}}\n                  @isSearchable={{true}}\n                  @useFullTextSearch={{true}}\n                  @objectKey=\"label\"\n                  @initialValue={{this.targetGroupChangeset.interests}}\n                  @selected={{this.targetGroupChangeset.interests}}\n                  @options={{this.meta.interests}}\n                  @errorMessage={{this.targetGroupChangeset.error.interests.validation}}\n                  @isTouched={{this.isTouched}}\n                  @isReadOnly={{@isReadOnly}}\n                  @onChange={{fn this.onMultiSelectChange \"interests\"}} as |optionComponent option|\n                >\n                  <optionComponent.item @value={{option}}>\n                    {{option.label}}\n                  </optionComponent.item>\n                </UiSelect>\n  \n                <div class=\"flex flex-wrap\">\n                  {{#each this.targetGroupChangeset.interests as |item index|}}\n                    {{#unless item.subData}}\n                      <UiChip\n                        @classNames=\"mr1 mb1\"\n                        @isReadOnly={{@isReadOnly}}\n                        @theme=\"grey\"\n                        @onChange={{fn this.removeSelection \"interests\" index}}\n                      >\n                        <div class=\"flex justify-center items-center\">\n                          <div class=\"mr1\">\n                            {{item.label}}\n                          </div>\n                          {{svg-jar \"close\" height=\"16\" width=\"16\"}}\n                        </div>\n                      </UiChip>\n                    {{/unless}}\n                  {{/each}}\n                </div>\n              </div>\n            </AmcCampaign::Ads::TikTokTargetGroupsModal::SettingBlock>\n  \n            <AmcCampaign::Ads::TikTokTargetGroupsModal::SettingBlock\n              @classNames=\"mb1\"\n              @selected={{this.targetGroupChangeset.videoInteractions}}\n              @intlBaseKey=\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.videoInteractions\"\n            >\n              <div class=\"bt b--black-10 pb2\">\n                <div class=\"font-sm secondary pt2\">\n                  {{t\n                    \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.videoInteractions.interactionType\"\n                  }}\n                </div>\n                <UiSelect\n                  @isPlain={{true}}\n                  @objectKey=\"label\"\n                  @isMultiSelect={{true}}\n                  @initialValue={{this.targetGroupChangeset.videoInteractionType}}\n                  @selected={{this.targetGroupChangeset.videoInteractionType}}\n                  @options={{this.meta.videoInteractionTypes}}\n                  @errorMessage={{this.targetGroupChangeset.error.videoInteractionType.validation}}\n                  @isTouched={{this.isTouched}}\n                  @isReadOnly={{@isReadOnly}}\n                  @onChange={{fn\n                    this.onMultiSelectChange\n                    \"videoInteractionType\"\n                  }} as |optionComponent option|\n                >\n                  <optionComponent.item @value={{option}}>\n                    {{option.label}}\n                  </optionComponent.item>\n                </UiSelect>\n              </div>\n              <div class=\"bt b--black-10\">\n                <div class=\"font-sm secondary pt2\">\n                  {{t\n                    \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.videoInteractions.interactedVideos\"\n                  }}\n                </div>\n                <UiSelect\n                  @isPlain={{true}}\n                  @isMultiSelect={{true}}\n                  @isCollapsible={{true}}\n                  @isSearchable={{true}}\n                  @useFullTextSearch={{true}}\n                  @objectKey=\"label\"\n                  @initialValue={{this.targetGroupChangeset.videoInteractions}}\n                  @selected={{this.targetGroupChangeset.videoInteractions}}\n                  @options={{this.meta.videoInteractions}}\n                  @errorMessage={{this.targetGroupChangeset.error.videoInteractions.validation}}\n                  @isTouched={{this.isTouched}}\n                  @isReadOnly={{@isReadOnly}}\n                  @onChange={{fn\n                    this.onMultiSelectChange\n                    \"videoInteractions\"\n                  }} as |optionComponent option|\n                >\n                  <optionComponent.item @value={{option}}>\n                    {{option.label}}\n                  </optionComponent.item>\n                </UiSelect>\n  \n                <div class=\"flex flex-wrap\">\n                  {{#each this.targetGroupChangeset.videoInteractions as |item index|}}\n                    {{#unless item.subData}}\n                      <UiChip\n                        @classNames=\"mr1 mb1\"\n                        @isReadOnly={{@isReadOnly}}\n                        @theme=\"grey\"\n                        @onChange={{fn this.removeSelection \"videoInteractions\" index}}\n                      >\n                        <div class=\"flex justify-center items-center\">\n                          <div class=\"mr1\">\n                            {{item.label}}\n                          </div>\n                          {{svg-jar \"close\" height=\"16\" width=\"16\"}}\n                        </div>\n                      </UiChip>\n                    {{/unless}}\n                  {{/each}}\n                </div>\n              </div>\n            </AmcCampaign::Ads::TikTokTargetGroupsModal::SettingBlock>\n  \n            <AmcCampaign::Ads::TikTokTargetGroupsModal::SettingBlock\n              @classNames=\"mb1\"\n              @selected={{this.targetGroupChangeset.creatorInteractions}}\n              @intlBaseKey=\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.creatorInteractions\"\n            >\n              <div class=\"bt b--black-10 pb2\">\n                <div class=\"font-sm secondary pt2\">\n                  {{t\n                    \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.creatorInteractions.interactionType\"\n                  }}\n                </div>\n                <UiSelect\n                  @isPlain={{true}}\n                  @objectKey=\"label\"\n                  @isMultiSelect={{true}}\n                  @initialValue={{this.targetGroupChangeset.creatorInteractionType}}\n                  @selected={{this.targetGroupChangeset.creatorInteractionType}}\n                  @options={{this.meta.creatorInteractionTypes}}\n                  @errorMessage={{this.targetGroupChangeset.error.creatorInteractionType.validation}}\n                  @isTouched={{this.isTouched}}\n                  @isReadOnly={{@isReadOnly}}\n                  @onChange={{fn\n                    this.onMultiSelectChange\n                    \"creatorInteractionType\"\n                  }} as |optionComponent option|\n                >\n                  <optionComponent.item @value={{option}}>\n                    {{option.label}}\n                  </optionComponent.item>\n                </UiSelect>\n              </div>\n              <div class=\"bt b--black-10\">\n                <div class=\"font-sm secondary pt2\">\n                  {{t\n                    \"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.creatorInteractions.interactedCreators\"\n                  }}\n                </div>\n                <UiSelect\n                  @isPlain={{true}}\n                  @isMultiSelect={{true}}\n                  @isCollapsible={{true}}\n                  @isSearchable={{true}}\n                  @useFullTextSearch={{true}}\n                  @objectKey=\"label\"\n                  @initialValue={{this.targetGroupChangeset.creatorInteractions}}\n                  @selected={{this.targetGroupChangeset.creatorInteractions}}\n                  @options={{this.meta.creatorInteractions}}\n                  @errorMessage={{this.targetGroupChangeset.error.creatorInteractions.validation}}\n                  @isTouched={{this.isTouched}}\n                  @isReadOnly={{@isReadOnly}}\n                  @onChange={{fn\n                    this.onMultiSelectChange\n                    \"creatorInteractions\"\n                  }} as |optionComponent option|\n                >\n                  <optionComponent.item @value={{option}}>\n                    {{option.label}}\n                  </optionComponent.item>\n                </UiSelect>\n  \n                <div class=\"flex flex-wrap\">\n                  {{#each this.targetGroupChangeset.creatorInteractions as |item index|}}\n                    {{#unless item.subData}}\n                      <UiChip\n                        @classNames=\"mr1 mb1\"\n                        @isReadOnly={{@isReadOnly}}\n                        @theme=\"grey\"\n                        @onChange={{fn this.removeSelection \"creatorInteractions\" index}}\n                      >\n                        <div class=\"flex justify-center items-center\">\n                          <div class=\"mr1\">\n                            {{item.label}}\n                          </div>\n                          {{svg-jar \"close\" height=\"16\" width=\"16\"}}\n                        </div>\n                      </UiChip>\n                    {{/unless}}\n                  {{/each}}\n                </div>\n              </div>\n            </AmcCampaign::Ads::TikTokTargetGroupsModal::SettingBlock>\n          {{/if}}\n  \n          {{#if this.isInitializingHashtags}}\n            <UiSkeleton\n              @itemsPerRow={{1}}\n              @items={{1}}\n              @itemsSmartphone={{1}}\n              @cardHeight={{82}}\n              @gap={{8}}\n            />\n          {{else}}\n            <AmcCampaign::Ads::TikTokTargetGroupsModal::SettingBlock\n              @classNames=\"mb1\"\n              @selected={{this.targetGroupChangeset.hashtagInteractions}}\n              @intlBaseKey=\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.hashtagInteractions\"\n            >\n              <div class=\"bt b--black-10\">\n                <UiSelect\n                  @classNames=\"pt2\"\n                  @isPlain={{true}}\n                  @isMultiSelect={{true}}\n                  @isSearchable={{true}}\n                  @isLoading={{this.isLoadingHashtags}}\n                  @objectKey=\"label\"\n                  @valueKey=\"value\"\n                  @initialValue={{this.targetGroupChangeset.hashtagInteractions}}\n                  @selected={{this.targetGroupChangeset.hashtagInteractions}}\n                  @options={{this.selectableHashtags}}\n                  @errorMessage={{this.targetGroupChangeset.error.hashtagInteractions.validation}}\n                  @isTouched={{this.isTouched}}\n                  @isReadOnly={{@isReadOnly}}\n                  @onSearch={{perform this.fetchHashtags}}\n                  @onChange={{fn\n                    this.onMultiSelectChange\n                    \"hashtagInteractions\"\n                  }} as |optionComponent option|\n                >\n                  <optionComponent.item @value={{option}}>\n                    {{option.label}}\n                  </optionComponent.item>\n                </UiSelect>\n  \n                <div class=\"flex flex-wrap\">\n                  {{#each this.targetGroupChangeset.hashtagInteractions as |item index|}}\n                    {{#unless item.subData}}\n                      <UiChip\n                        @classNames=\"mr1 mb1\"\n                        @isReadOnly={{@isReadOnly}}\n                        @theme=\"grey\"\n                        @onChange={{fn this.removeSelection \"hashtagInteractions\" index}}\n                      >\n                        <div class=\"flex justify-center items-center\">\n                          <div class=\"mr1\">\n                            {{item.label}}\n                          </div>\n                          {{svg-jar \"close\" height=\"16\" width=\"16\"}}\n                        </div>\n                      </UiChip>\n                    {{/unless}}\n                  {{/each}}\n                </div>\n              </div>\n            </AmcCampaign::Ads::TikTokTargetGroupsModal::SettingBlock>\n          {{/if}}\n        </c.body>\n      </m.content>\n  \n      <m.footer>\n        <UiButton\n          @label={{t \"global.actions.save\"}}\n          @isSecondary={{true}}\n          @isDisabled={{@isReadOnly}}\n          @onClick={{this.saveTargetGroup}}\n        />\n      </m.footer>\n    </UiModal>\n  {{/if}}\n  \n  <UiDiscardChanges @isOpen={{this.isDiscardChanges}} @onDiscard={{this.discardChanges}} />\n  */\n  {\n    \"id\": \"gIe+1QZZ\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@size\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.label\\\"],null],\\\"md\\\",[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],[[24,0,\\\"pt3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEmpty\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pv4 mv4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.empty\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"tik-tok-settings-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"changeset\\\",\\\"targetGroups\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex space-between items-center w-100 pv2 bt bb b--secondary-10\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex w-100 items-center font-sm primary ph2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,3,[\\\"label\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"edit\\\",true,[28,[37,7],[[30,0,[\\\"edit\\\"]],[30,3]],null]]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,5]],[[[1,\\\"              \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[\\\"delete\\\",true,[28,[37,7],[[30,0,[\\\"delete\\\"]],[30,4]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,5]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"plus\\\",true,[30,0,[\\\"add\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@title\\\",\\\"@size\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.title\\\"],null],\\\"md\\\",[30,0,[\\\"closeEditDialog\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,6,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,6,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,7,[\\\"body\\\"]],[[4,[38,10],[[30,0,[\\\"didInsert\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fetchMetaData\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[8,[39,11],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,5,5,64,32]],null],[1,\\\"\\\\n          \\\"],[8,[39,11],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,3,3,82,8]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,12],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@errorMessage\\\"],[[28,[37,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.label\\\"],null],[30,0,[\\\"targetGroupChangeset\\\",\\\"label\\\"]],[30,0,[\\\"isTouched\\\"]],[30,5],[30,0,[\\\"targetGroupChangeset\\\",\\\"error\\\",\\\"label\\\",\\\"validation\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@isCollapsible\\\",\\\"@useFullTextSearch\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.location\\\"],null],true,\\\"label\\\",true,true,true,[30,0,[\\\"targetGroupChangeset\\\",\\\"location\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"location\\\"]],[30,0,[\\\"meta\\\",\\\"locations\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"error\\\",\\\"location\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,5],[28,[37,7],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"location\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,8,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,9]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,9,[\\\"label\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[8,9]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.language\\\"],null],true,\\\"label\\\",true,true,[30,0,[\\\"targetGroupChangeset\\\",\\\"language\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"language\\\"]],[30,0,[\\\"meta\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"error\\\",\\\"language\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,5],[28,[37,7],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"language\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,10,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,11]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,11,[\\\"label\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[10,11]]]]],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary pb2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.gender.label\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,14],null,[[\\\"@class\\\",\\\"@options\\\",\\\"@selected\\\"],[\\\"pb2\\\",[30,0,[\\\"genderOptions\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"gender\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,12,[\\\"option\\\"]],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@value\\\"],[\\\"mr3\\\",[30,13,[\\\"label\\\"]],[30,5],[30,13,[\\\"value\\\"]]]],null],[1,\\\"\\\\n          \\\"]],[12,13]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.age\\\"],null],true,\\\"label\\\",[30,0,[\\\"targetGroupChangeset\\\",\\\"age\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"age\\\"]],[30,0,[\\\"meta\\\",\\\"age\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"error\\\",\\\"age\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,5],[28,[37,7],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"age\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,14,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,15]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,15,[\\\"label\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[14,15]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,15],null,[[\\\"@classNames\\\",\\\"@selected\\\",\\\"@intlBaseKey\\\"],[\\\"mb1\\\",[30,0,[\\\"targetGroupChangeset\\\",\\\"interests\\\"]],\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.interests\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"bt b--black-10\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"font-sm secondary pt2\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.interests.targetInterests\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,13],null,[[\\\"@isPlain\\\",\\\"@isMultiSelect\\\",\\\"@isCollapsible\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@objectKey\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[true,true,true,true,true,\\\"label\\\",[30,0,[\\\"targetGroupChangeset\\\",\\\"interests\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"interests\\\"]],[30,0,[\\\"meta\\\",\\\"interests\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"error\\\",\\\"interests\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,5],[28,[37,7],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"interests\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,16,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,17]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,17,[\\\"label\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[16,17]]]]],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"targetGroupChangeset\\\",\\\"interests\\\"]]],null]],null],null,[[[41,[51,[30,18,[\\\"subData\\\"]]],[[[1,\\\"                    \\\"],[8,[39,16],null,[[\\\"@classNames\\\",\\\"@isReadOnly\\\",\\\"@theme\\\",\\\"@onChange\\\"],[\\\"mr1 mb1\\\",[30,5],\\\"grey\\\",[28,[37,7],[[30,0,[\\\"removeSelection\\\"]],\\\"interests\\\",[30,19]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"flex justify-center items-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"mr1\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[30,18,[\\\"label\\\"]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[1,[28,[35,3],[\\\"close\\\"],[[\\\"height\\\",\\\"width\\\"],[\\\"16\\\",\\\"16\\\"]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[18,19]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,15],null,[[\\\"@classNames\\\",\\\"@selected\\\",\\\"@intlBaseKey\\\"],[\\\"mb1\\\",[30,0,[\\\"targetGroupChangeset\\\",\\\"videoInteractions\\\"]],\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.videoInteractions\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"bt b--black-10 pb2\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"font-sm secondary pt2\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.videoInteractions.interactionType\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,13],null,[[\\\"@isPlain\\\",\\\"@objectKey\\\",\\\"@isMultiSelect\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[true,\\\"label\\\",true,[30,0,[\\\"targetGroupChangeset\\\",\\\"videoInteractionType\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"videoInteractionType\\\"]],[30,0,[\\\"meta\\\",\\\"videoInteractionTypes\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"error\\\",\\\"videoInteractionType\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,5],[28,[37,7],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"videoInteractionType\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,20,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,21]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,21,[\\\"label\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[20,21]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"bt b--black-10\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"font-sm secondary pt2\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.videoInteractions.interactedVideos\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,13],null,[[\\\"@isPlain\\\",\\\"@isMultiSelect\\\",\\\"@isCollapsible\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@objectKey\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[true,true,true,true,true,\\\"label\\\",[30,0,[\\\"targetGroupChangeset\\\",\\\"videoInteractions\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"videoInteractions\\\"]],[30,0,[\\\"meta\\\",\\\"videoInteractions\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"error\\\",\\\"videoInteractions\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,5],[28,[37,7],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"videoInteractions\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,22,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,23]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,23,[\\\"label\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[22,23]]]]],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"targetGroupChangeset\\\",\\\"videoInteractions\\\"]]],null]],null],null,[[[41,[51,[30,24,[\\\"subData\\\"]]],[[[1,\\\"                    \\\"],[8,[39,16],null,[[\\\"@classNames\\\",\\\"@isReadOnly\\\",\\\"@theme\\\",\\\"@onChange\\\"],[\\\"mr1 mb1\\\",[30,5],\\\"grey\\\",[28,[37,7],[[30,0,[\\\"removeSelection\\\"]],\\\"videoInteractions\\\",[30,25]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"flex justify-center items-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"mr1\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[30,24,[\\\"label\\\"]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[1,[28,[35,3],[\\\"close\\\"],[[\\\"height\\\",\\\"width\\\"],[\\\"16\\\",\\\"16\\\"]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[24,25]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,15],null,[[\\\"@classNames\\\",\\\"@selected\\\",\\\"@intlBaseKey\\\"],[\\\"mb1\\\",[30,0,[\\\"targetGroupChangeset\\\",\\\"creatorInteractions\\\"]],\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.creatorInteractions\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"bt b--black-10 pb2\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"font-sm secondary pt2\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.creatorInteractions.interactionType\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,13],null,[[\\\"@isPlain\\\",\\\"@objectKey\\\",\\\"@isMultiSelect\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[true,\\\"label\\\",true,[30,0,[\\\"targetGroupChangeset\\\",\\\"creatorInteractionType\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"creatorInteractionType\\\"]],[30,0,[\\\"meta\\\",\\\"creatorInteractionTypes\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"error\\\",\\\"creatorInteractionType\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,5],[28,[37,7],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"creatorInteractionType\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,26,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,27]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,27,[\\\"label\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[26,27]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"bt b--black-10\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"font-sm secondary pt2\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.creatorInteractions.interactedCreators\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,13],null,[[\\\"@isPlain\\\",\\\"@isMultiSelect\\\",\\\"@isCollapsible\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@objectKey\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[true,true,true,true,true,\\\"label\\\",[30,0,[\\\"targetGroupChangeset\\\",\\\"creatorInteractions\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"creatorInteractions\\\"]],[30,0,[\\\"meta\\\",\\\"creatorInteractions\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"error\\\",\\\"creatorInteractions\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,5],[28,[37,7],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"creatorInteractions\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,28,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,29]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,29,[\\\"label\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[28,29]]]]],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"targetGroupChangeset\\\",\\\"creatorInteractions\\\"]]],null]],null],null,[[[41,[51,[30,30,[\\\"subData\\\"]]],[[[1,\\\"                    \\\"],[8,[39,16],null,[[\\\"@classNames\\\",\\\"@isReadOnly\\\",\\\"@theme\\\",\\\"@onChange\\\"],[\\\"mr1 mb1\\\",[30,5],\\\"grey\\\",[28,[37,7],[[30,0,[\\\"removeSelection\\\"]],\\\"creatorInteractions\\\",[30,31]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"flex justify-center items-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"mr1\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[30,30,[\\\"label\\\"]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[1,[28,[35,3],[\\\"close\\\"],[[\\\"height\\\",\\\"width\\\"],[\\\"16\\\",\\\"16\\\"]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[30,31]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isInitializingHashtags\\\"]],[[[1,\\\"          \\\"],[8,[39,11],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,1,1,82,8]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,15],null,[[\\\"@classNames\\\",\\\"@selected\\\",\\\"@intlBaseKey\\\"],[\\\"mb1\\\",[30,0,[\\\"targetGroupChangeset\\\",\\\"hashtagInteractions\\\"]],\\\"adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.hashtagInteractions\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"bt b--black-10\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,13],null,[[\\\"@classNames\\\",\\\"@isPlain\\\",\\\"@isMultiSelect\\\",\\\"@isSearchable\\\",\\\"@isLoading\\\",\\\"@objectKey\\\",\\\"@valueKey\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onSearch\\\",\\\"@onChange\\\"],[\\\"pt2\\\",true,true,true,[30,0,[\\\"isLoadingHashtags\\\"]],\\\"label\\\",\\\"value\\\",[30,0,[\\\"targetGroupChangeset\\\",\\\"hashtagInteractions\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"hashtagInteractions\\\"]],[30,0,[\\\"selectableHashtags\\\"]],[30,0,[\\\"targetGroupChangeset\\\",\\\"error\\\",\\\"hashtagInteractions\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,5],[28,[37,17],[[30,0,[\\\"fetchHashtags\\\"]]],null],[28,[37,7],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"hashtagInteractions\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,32,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,33]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,33,[\\\"label\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[32,33]]]]],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"targetGroupChangeset\\\",\\\"hashtagInteractions\\\"]]],null]],null],null,[[[41,[51,[30,34,[\\\"subData\\\"]]],[[[1,\\\"                    \\\"],[8,[39,16],null,[[\\\"@classNames\\\",\\\"@isReadOnly\\\",\\\"@theme\\\",\\\"@onChange\\\"],[\\\"mr1 mb1\\\",[30,5],\\\"grey\\\",[28,[37,7],[[30,0,[\\\"removeSelection\\\"]],\\\"hashtagInteractions\\\",[30,35]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"flex justify-center items-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,0],[14,0,\\\"mr1\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[30,34,[\\\"label\\\"]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                        \\\"],[1,[28,[35,3],[\\\"close\\\"],[[\\\"height\\\",\\\"width\\\"],[\\\"16\\\",\\\"16\\\"]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[34,35]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[7]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,6,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.save\\\"],null],true,[30,5],[30,0,[\\\"saveTargetGroup\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,18],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChanges\\\"]],[30,0,[\\\"discardChanges\\\"]]]],null]],[\\\"m\\\",\\\"c\\\",\\\"targetGroup\\\",\\\"index\\\",\\\"@isReadOnly\\\",\\\"m\\\",\\\"c\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"group\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"item\\\",\\\"index\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"item\\\",\\\"index\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"item\\\",\\\"index\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"item\\\",\\\"index\\\"],false,[\\\"ui-modal\\\",\\\"t\\\",\\\"if\\\",\\\"svg-jar\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ui-icon-button\\\",\\\"fn\\\",\\\"unless\\\",\\\"ui-button\\\",\\\"did-insert\\\",\\\"ui-skeleton\\\",\\\"ui-input\\\",\\\"ui-select\\\",\\\"ui-radio-button-group\\\",\\\"amc-campaign/ads/tik-tok-target-groups-modal/setting-block\\\",\\\"ui-chip\\\",\\\"perform\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/tik-tok-target-groups-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  const TARGET_GROUP_SETTINGS = {\n    label: '',\n    language: [],\n    location: [],\n    gender: '',\n    age: []\n  };\n\n  /**\n   * Modal for TikTok target groups\n   *\n   * @class AmcCampaignAdsTikTokTargetGroupsModalComponent\n   */\n  let AmcCampaignAdsTikTokTargetGroupsModalComponent = _exports.default = (_dec = (0, _computed.equal)('changeset.targetGroups.length', 0), _dec2 = (0, _computed.alias)('currentUser.currentOrganization.id'), _dec3 = (0, _emberArgTypes.arg)(_emberArgTypes.array), _dec4 = (0, _emberArgTypes.arg)(_emberArgTypes.func), _dec5 = (0, _emberArgTypes.arg)(_emberArgTypes.func), _dec6 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const url = `${_environment.default.APP.apiBaseHost}/${this.organizationSlug}/organisation-campaigns/ad/settings/tik-tok-target-groups/metadata`;\n      const response = yield this.authenticatedFetch.fetch(url, {\n        method: 'GET'\n      });\n      if (!response.ok) throw new Error();\n      this.meta = yield response.json();\n    } catch (e) {\n      this.uiDialog.showError();\n    }\n  }), _dec7 = (0, _emberConcurrency.task)(function* (searchValue) {\n    try {\n      this.isLoadingHashtags = true;\n      const keyword = searchValue || '';\n      const url = `${_environment.default.APP.apiBaseHost}/${this.organizationSlug}/organisation-campaigns/ad/settings/tik-tok-hashtags?keyword=${keyword}`;\n      const response = yield this.authenticatedFetch.fetch(url, {\n        method: 'GET'\n      });\n      if (!response.ok) throw new Error();\n      const data = yield response.json();\n      let selectableHashtags = data.map(item => {\n        return {\n          label: item.label,\n          value: item.id\n        };\n      });\n\n      // Add already selected hashtags to the list of selectable hashtags\n      if (this.targetGroupChangeset) {\n        let selectedHashtags = this.targetGroupChangeset.get('hashtagInteractions');\n        if (selectedHashtags) {\n          // Check for duplicate entries and remove them\n          selectedHashtags = selectedHashtags.filter(selectedHashtag => {\n            return !selectableHashtags.some(hashtag => {\n              return selectedHashtag.value === hashtag.value;\n            });\n          });\n          selectableHashtags = selectedHashtags.concat(selectableHashtags);\n        }\n      }\n      this.selectableHashtags = selectableHashtags;\n    } catch (e) {\n      this.uiDialog.showError();\n    } finally {\n      this.isLoadingHashtags = false;\n      this.isInitializingHashtags = false;\n    }\n  }), _class = class AmcCampaignAdsTikTokTargetGroupsModalComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      /**\n       * whether the target groups are empty\n       *\n       * @computed isEmpty\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isEmpty\", _descriptor6, this);\n      /**\n       * the current organization slug\n       *\n       * @computed organizationSlug\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor7, this);\n      /**\n       * The target groups fetched from API\n       *\n       * @argument targetGroups\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"targetGroups\", _descriptor8, this);\n      /**\n       * The changeset which contains all target groups\n       *\n       * @property changeset\n       * @type {Changeset}\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor9, this);\n      /**\n       * The changeset of a single target group\n       *\n       * @property targetGroupChangeset\n       * @type {Changeset}\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"targetGroupChangeset\", _descriptor10, this);\n      /**\n       * Whether the Edit/New dialog is opened\n       *\n       * @property isEditDialog\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"isEditDialog\", _descriptor11, this);\n      /**\n       * the fetched metadata for tiktok target groups\n       *\n       * @property meta\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"meta\", _descriptor12, this);\n      /**\n       * the fetched hashtags for tiktok target groups\n       *\n       * @property meta\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"selectableHashtags\", _descriptor13, this);\n      /**\n       * whether the hashtags are currently initializing (first loading)\n       *\n       * @property isInitializingHashtags\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isInitializingHashtags\", _descriptor14, this);\n      /**\n       * whether the hashtags are currently loading\n       *\n       * @property isLoadingHashtags\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isLoadingHashtags\", _descriptor15, this);\n      /**\n       * the selectable gender options\n       *\n       * @property genderOptions\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"genderOptions\", _descriptor16, this);\n      /**\n       * Whether a new target group is created\n       *\n       * @property isNew\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"isNew\", _descriptor17, this);\n      /**\n       * whether the form has been touched\n       *\n       * @property isTouched\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor18, this);\n      /**\n       * whether the discard changes dialog is open\n       *\n       * @property isDiscardChanges\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChanges\", _descriptor19, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor20, this);\n      /**\n       * callback function to save the changes\n       *\n       * @argument onSave\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onSave\", _descriptor21, this);\n      /**\n       * fetches metadata for TikTok target groups\n       *\n       * @function fetchMetaData\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchMetaData\", _descriptor22, this);\n      /**\n       * fetches selectable hashtags for TikTok target groups\n       *\n       * @function fetchHashtags\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchHashtags\", _descriptor23, this);\n      this.fetchMetaData.perform();\n      this.genderOptions = [{\n        label: this.intl.t('adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.gender.noLimit'),\n        value: null\n      }, {\n        label: this.intl.t('adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.gender.male'),\n        value: 'm'\n      }, {\n        label: this.intl.t('adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.gender.female'),\n        value: 'f'\n      }];\n      const changeset = new _emberChangeset.default({\n        targetGroups: this.targetGroups\n      });\n      this.changeset = changeset;\n    }\n    didInsert() {\n      this.isInitializingHashtags = true;\n      this.fetchHashtags.perform();\n    }\n    onMultiSelectChange(key, option, checked) {\n      let options = (this.targetGroupChangeset.get(key) || []).slice(0);\n      const checkedValue = option.value;\n      if (checked) {\n        // Only push if not allready in\n        if (!options.findBy('value', checkedValue)) {\n          options.pushObject(option);\n        }\n      } else {\n        // Remove unchecked option\n        options = options.filter(_option => _option.value === checkedValue ? false : true);\n      }\n      this.targetGroupChangeset.set(key, options);\n      this.targetGroupChangeset.execute();\n    }\n    close() {\n      this.onClose();\n    }\n    closeEditDialog() {\n      if (this.targetGroupChangeset.get('isDirty')) {\n        this.isDiscardChanges = true;\n      } else {\n        this.isNew = false;\n        this.isEditDialog = false;\n      }\n    }\n    discardChanges() {\n      this.isDiscardChanges = false;\n      this.isNew = false;\n      this.isEditDialog = false;\n    }\n    edit(targetGroup) {\n      const targetGroupValidation = (0, _advertisement.adTikTokTargetGroupValidation)(this.intl);\n      this.targetGroupChangeset = new _emberChangeset.default(targetGroup, (0, _emberChangesetValidations.default)(targetGroupValidation), targetGroupValidation);\n      this.isNew = false;\n      this.isEditDialog = true;\n    }\n    add() {\n      const targetGroupValidation = (0, _advertisement.adTikTokTargetGroupValidation)(this.intl);\n      this.targetGroupChangeset = new _emberChangeset.default(TARGET_GROUP_SETTINGS, (0, _emberChangesetValidations.default)(targetGroupValidation), targetGroupValidation);\n      this.isNew = true;\n      this.isEditDialog = true;\n    }\n    delete(index) {\n      this.uiDialog.showConfirm(this.intl.t('adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.deleteDialog.title'), (0, _string.htmlSafe)(this.intl.t('adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.deleteDialog.description')), () => this.onDelete(index), this.intl.t('global.actions.delete'), false, true);\n    }\n    onDelete(index) {\n      const targetGroups = this.changeset.get('targetGroups');\n      targetGroups.splice(index, 1);\n      this.changeset.set('targetGroups', targetGroups);\n      this.onSave(this.changeset);\n    }\n    async saveTargetGroup() {\n      this.isTouched = true;\n      await this.targetGroupChangeset.validate();\n      if (this.targetGroupChangeset.get('isInvalid')) {\n        return;\n      }\n\n      // Only send selected sub-options to API and remove the parent options\n      const keys = ['interests', 'videoInteractions', 'creatorInteractions', 'location'];\n      keys.forEach(key => {\n        let items = this.targetGroupChangeset.get(key);\n        if (!items || items.length === 0) {\n          return;\n        }\n        items = items.filter(item => item.subData.length === 0);\n        this.targetGroupChangeset.set(key, items);\n      });\n      if (this.isNew) {\n        const targetGroups = this.changeset.get('targetGroups');\n        targetGroups.push({\n          label: this.targetGroupChangeset.get('label'),\n          location: this.targetGroupChangeset.get('location'),\n          language: this.targetGroupChangeset.get('language'),\n          gender: this.targetGroupChangeset.get('gender'),\n          age: this.targetGroupChangeset.get('age'),\n          interests: this.targetGroupChangeset.get('interests'),\n          videoInteractionType: this.targetGroupChangeset.get('videoInteractionType'),\n          videoInteractions: this.targetGroupChangeset.get('videoInteractions'),\n          creatorInteractionType: this.targetGroupChangeset.get('creatorInteractionType'),\n          creatorInteractions: this.targetGroupChangeset.get('creatorInteractions'),\n          hashtagInteractions: this.targetGroupChangeset.get('hashtagInteractions')\n        });\n        this.changeset.set('targetGroups', targetGroups);\n      } else {\n        this.targetGroupChangeset.save();\n      }\n      await this.onSave(this.changeset);\n      this.isNew = false;\n      this.isEditDialog = false;\n    }\n    removeSelection(key, index) {\n      const values = this.targetGroupChangeset.get(key);\n      values.splice(index, 1);\n      this.targetGroupChangeset.set(key, values);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isEmpty\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"targetGroups\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"targetGroupChangeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isEditDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"selectableHashtags\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"isInitializingHashtags\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isLoadingHashtags\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"genderOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"isNew\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"fetchMetaData\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"fetchHashtags\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onMultiSelectChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onMultiSelectChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeEditDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeEditDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"edit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"edit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"add\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"add\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"delete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"delete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDelete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveTargetGroup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveTargetGroup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSelection\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSelection\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsTikTokTargetGroupsModalComponent);\n});","define(\"additive-mc/components/amc-campaign/ads/tik-tok-target-groups-modal/setting-block\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"prop-types\", \"ember-arg-types\", \"ember-animated/transitions/fade\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _propTypes, _emberArgTypes, _fade) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"{{this._classNames}} flex flex-column pa2 br1 w-100\">\n    <div\n      class={{concat \"flex cpointer \" (if this.isExpanded \"pb3\" \"pb1\")}}\n      {{did-insert this._onInsertElement}}\n      {{will-destroy this._onWillDestroy}}\n    >\n      {{#if this._isEmpty}}\n        {{svg-jar \"plus\" height=\"20\" width=\"20\"}}\n      {{else}}\n        {{svg-jar\n          \"drop-down\"\n          class=(if this.isExpanded \"dropdown--open\" \"dropdown\")\n          height=\"20\"\n          width=\"20\"\n        }}\n      {{/if}}\n      <div class=\"flex flex-column ml1\">\n        <div class=\"font-sm primary\">\n          {{t (concat this.intlBaseKey \".add\")}}\n        </div>\n  \n        <div class=\"font-sm secondary\">\n          {{this._descriptionText}}\n        </div>\n      </div>\n    </div>\n  \n    <AnimatedContainer class=\"ohidden\">\n      {{#animated-if this.isExpanded animation=this._animatedTransition}}\n        {{yield}}\n      {{/animated-if}}\n    </AnimatedContainer>\n  </div>\n  */\n  {\n    \"id\": \"BowRI6Vp\",\n    \"block\": \"[[[10,0],[15,0,[29,[[30,0,[\\\"_classNames\\\"]],\\\" flex flex-column pa2 br1 w-100\\\"]]],[12],[1,\\\"\\\\n  \\\"],[11,0],[16,0,[28,[37,0],[\\\"flex cpointer \\\",[52,[30,0,[\\\"isExpanded\\\"]],\\\"pb3\\\",\\\"pb1\\\"]],null]],[4,[38,2],[[30,0,[\\\"_onInsertElement\\\"]]],null],[4,[38,3],[[30,0,[\\\"_onWillDestroy\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isEmpty\\\"]],[[[1,\\\"      \\\"],[1,[28,[35,4],[\\\"plus\\\"],[[\\\"height\\\",\\\"width\\\"],[\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[1,[28,[35,4],[\\\"drop-down\\\"],[[\\\"class\\\",\\\"height\\\",\\\"width\\\"],[[52,[30,0,[\\\"isExpanded\\\"]],\\\"dropdown--open\\\",\\\"dropdown\\\"],\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-column ml1\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm primary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[[28,[37,0],[[30,0,[\\\"intlBaseKey\\\"]],\\\".add\\\"],null]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"_descriptionText\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],[[24,0,\\\"ohidden\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[6,[39,7],[[30,0,[\\\"isExpanded\\\"]]],[[\\\"animation\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"      \\\"],[18,1,null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"concat\\\",\\\"if\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"svg-jar\\\",\\\"t\\\",\\\"animated-container\\\",\\\"animated-if\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/ads/tik-tok-target-groups-modal/setting-block.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcTikTokTargetGroupsSettingBlockComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.array), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _class = class AmcTikTokTargetGroupsSettingBlockComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      /**\n       * the class names\n       *\n       * @argument classNames\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"classNames\", _descriptor2, this);\n      /**\n       * the selected values\n       *\n       * @argument selected\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"selected\", _descriptor3, this);\n      /**\n       * the base key for the translations\n       *\n       * @argument intlBaseKey\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"intlBaseKey\", _descriptor4, this);\n      /**\n       * whether the component is expanded\n       *\n       * @argument isExpanded\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isExpanded\", _descriptor5, this);\n      _defineProperty(this, \"_animatedTransition\", _fade.default);\n    }\n    get _classNames() {\n      const styles = this.isExpanded ? 'bg-white ba b--secondary-10' : 'bg-secondary--10';\n      return `amc-tik-tok-target-groups-modal-setting-block ${this.classNames} ${styles}`;\n    }\n    get _isEmpty() {\n      if (this.selected.length === 0) {\n        return true;\n      }\n      return false;\n    }\n    get _descriptionText() {\n      if (this._isEmpty) {\n        return this.intl.t(`${this.intlBaseKey}.text`);\n      }\n      const selected = this.selected.filter(item => item.subData ? item.subData.length === 0 : true);\n      return this.intl.t(`${this.intlBaseKey}.selectedCount`, {\n        count: selected.length\n      });\n    }\n    _onInsertElement(element) {\n      if (!element) {\n        return;\n      }\n      element.addEventListener('click', this._expandSettings, false);\n    }\n    _onWillDestroy(element) {\n      if (!element) {\n        return;\n      }\n      element.removeEventListener('click', this._expandSettings, false);\n    }\n    _expandSettings() {\n      const value = this.isExpanded;\n      this.isExpanded = !value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"classNames\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"selected\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intlBaseKey\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 'adCampaigns.adGeneralSettings.settings.tikTokTargetGroups.editDialog.interests';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isExpanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_onInsertElement\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onInsertElement\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_onWillDestroy\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onWillDestroy\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_expandSettings\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_expandSettings\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcTikTokTargetGroupsSettingBlockComponent);\n});","define(\"additive-mc/components/amc-campaign/category-card\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _service, _object, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class=\"amc-campaign-category-card relative flex flex-column items-center br1 ph2 pv3 pa4-md text-center bg-secondary--10 bg-secondary--20--hover\n  \n  \n      {{unless @isDisabled \"cpointer\"}}\"\n    disabled={{@isDisabled}}\n    role=\"button\"\n    ...attributes\n    {{on \"click\" this._onClick}}\n  >\n    {{yield}}\n  \n    {{#if this.svg}}\n      {{svg-jar this.svg}}\n    {{/if}}\n    <div class=\"font-lg primary\">\n      {{@title}}\n    </div>\n    <div class=\"font-sm secondary pt2\">\n      {{@description}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"YQKJs5WG\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"amc-campaign-category-card relative flex flex-column items-center br1 ph2 pv3 pa4-md text-center bg-secondary--10 bg-secondary--20--hover\\\\n\\\\n\\\\n    \\\",[52,[51,[30,1]],\\\"cpointer\\\"]]]],[16,\\\"disabled\\\",[30,1]],[24,\\\"role\\\",\\\"button\\\"],[17,2],[4,[38,1],[\\\"click\\\",[30,0,[\\\"_onClick\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,5,null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"svg\\\"]],[[[1,\\\"    \\\"],[1,[28,[35,4],[[30,0,[\\\"svg\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,0],[14,0,\\\"font-lg primary\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,3]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"font-sm secondary pt2\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,4]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@isDisabled\\\",\\\"&attrs\\\",\\\"@title\\\",\\\"@description\\\",\\\"&default\\\"],false,[\\\"unless\\\",\\\"on\\\",\\\"yield\\\",\\\"if\\\",\\\"svg-jar\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/category-card.hbs\",\n    \"isStrictMode\": false\n  });\n  let CategoryCard = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.string), _dec5 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec6 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class CategoryCard extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"type\", _descriptor2, this);\n      _initializerDefineProperty(this, \"title\", _descriptor3, this);\n      _initializerDefineProperty(this, \"description\", _descriptor4, this);\n      _initializerDefineProperty(this, \"svg\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isDisabled\", _descriptor6, this);\n      _initializerDefineProperty(this, \"onClick\", _descriptor7, this);\n    }\n    _onClick() {\n      if (this.isDisabled || !this.type) return;\n      return this.router.transitionTo(`instance.campaigns.${this.type}`);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"type\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return '';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"description\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"svg\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return '';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isDisabled\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_onClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onClick\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, CategoryCard);\n});","define(\"additive-mc/components/amc-campaign/configuration-item\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\"], function (_exports, _component, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _component.default.extend({\n    uiAppSettings: (0, _service.inject)(),\n    classNames: ['amc-campaign__configuration-item', 'items-center bt b--black-10'],\n    classNameBindings: ['hasNoAction:amc-campaign__configuration-item--has-no-action'],\n    isToggable: _object.computed.equal('item.type', 'boolean'),\n    hasNoAction: (0, _object.computed)('item.type', {\n      get() {\n        return this.item.type === 'string' || this.item.type === 'label';\n      }\n    }),\n    /**\n     * whether the configuration item is editable\n     *\n     * @property isEdit\n     * @type {Boolean}\n     * @default true\n     */\n    isEdit: true,\n    model: null,\n    /**\n     * computed options used to format the configuration values\n     *\n     * @computed configurationValueOptions\n     * @returns {Object}\n     */\n    configurationValueOptions: (0, _object.computed)('uiAppSettings.currency', {\n      get() {\n        return {\n          currency: this.uiAppSettings.currency\n        };\n      }\n    }),\n    /**\n     * the component which should be rendered\n     *\n     * @computed componentType\n     * @returns {String}\n     */\n    componentType: (0, _object.computed)('item.type', {\n      get() {\n        let {\n          item: {\n            type\n          }\n        } = this;\n        if (type === 'parametrized-string') {\n          return 'text';\n        }\n        return type;\n      }\n    }),\n    onSave() {}\n  });\n});","define(\"additive-mc/components/amc-campaign/configuration-item/-multilingual-text\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/object/computed\", \"@glimmer/tracking\", \"@ember/service\", \"ember-concurrency\"], function (_exports, _component, _object, _computed, _tracking, _service, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  /**\n   * Base component impl for multilingual-text and multilingual-link\n   *\n   * @module amc-campaigns\n   */\n  let BaseMultilingualTextComponent = _exports.default = (_dec = (0, _object.computed)(), _dec2 = (0, _computed.readOnly)('uiAppSettings.languages.contentLanguages'), _dec3 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    const snapshot = Object.assign({}, this.item.value);\n    try {\n      // Will update the underlying object, which in this case is `this._resource`\n      this._changeset.execute();\n      (0, _object.set)(this, 'item.value', this._resource);\n      tasks.push(this.onSave());\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      yield (0, _emberConcurrency.all)(tasks);\n      if (this.closeOnSave) {\n        yield this.onClose();\n      }\n    } catch (error) {\n      // reset\n      (0, _object.set)(this, 'item.value', snapshot);\n    }\n  }), _class = class BaseMultilingualTextComponent extends _component.default {\n    /**\n     * The internal changeset of the item\n     *\n     * @computed _changeset\n     * @private\n     */\n    get _changeset() {\n      return this._createChangeset();\n    }\n\n    /**\n     * Changesets underlying object\n     *\n     * @property _resource\n     * @default null\n     * @private\n     */\n\n    /**\n     * Whether is disabled\n     *\n     * @computed _isDisabled\n     * @default false\n     * @private\n     */\n    get _isDisabled() {\n      return this.isReadOnly || this._save.isRunning;\n    }\n\n    /**\n     * @computed read only array of content languages\n     * @returns {Array}\n     */\n\n    /**\n     * All activated languages for the current organization mapped as select options\n     *\n     * @computed _organizationLanguages\n     * @type {Array}\n     * @private\n     */\n    get _organizationLanguages() {\n      const {\n        contentLanguages\n      } = this;\n      if (!contentLanguages) {\n        return null;\n      }\n      return contentLanguages.map(language => {\n        return {\n          name: this.intl.t(`global.languages.${language}`),\n          value: language\n        };\n      });\n    }\n\n    /**\n     * Save event\n     *\n     * @function onSave\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onSave() {}\n\n    /**\n     * Close event\n     *\n     * @function onClose\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onClose() {}\n\n    /**\n     * Override to create a Changeset\n     *\n     * @overload\n     * @protected\n     * @returns {Changeset}\n     */\n    createChangeset(/*resource*/\n    ) {\n      throw new Error(\"Override and don't call super\");\n    }\n\n    /**\n     * Sets `_resource` based on `item` and the Changeset\n     *\n     * @returns {Changeset}\n     */\n    _createChangeset() {\n      let resource = this.item && this.item.value || {};\n      this._resource = resource;\n      return this.createChangeset(resource);\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor3, this);\n      /**\n       * The configuration-item\n       *\n       * @property item\n       * @default null\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor4, this);\n      /**\n       * Whether its read only\n       *\n       * @property isReadOnly\n       * @default false\n       */\n      _defineProperty(this, \"isReadOnly\", false);\n      /**\n       * Whether onClose should be executed after save or not\n       *\n       * @property closeOnSave\n       * @type {Boolean}\n       * @default true\n       */\n      _defineProperty(this, \"closeOnSave\", true);\n      _initializerDefineProperty(this, \"_resource\", _descriptor5, this);\n      /**\n       * The currently selected language\n       *\n       * @property _selectedLanguage\n       * @default undefined\n       * @private\n       */\n      _initializerDefineProperty(this, \"_selectedLanguage\", _descriptor6, this);\n      _initializerDefineProperty(this, \"contentLanguages\", _descriptor7, this);\n      /**\n       * Sets options it to parents changeset and trigger save\n       *\n       * @function _save\n       * @type {Task}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_save\", _descriptor8, this);\n      this._selectedLanguage = this.uiAppSettings.languages.defaultLanguage || 'de';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_changeset\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"_changeset\"), _class.prototype), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_resource\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"_selectedLanguage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"contentLanguages\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"_save\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/components/amc-campaign/configuration-item/array\", [\"exports\", \"@glimmer/component\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\"], function (_exports, _component, _emberChangeset, _emberChangesetValidations, _emberArgTypes, _propTypes, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  /**\n   * Component which handles campaigns configuration-item for `array`.\n   *\n   * `array` is an array of strings\n   *\n   * @class amc-campaigns/configuration-item/array\n   * @module amc-campaigns\n   */\n  let AmcCampaignConfigurationItemArrayComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignConfigurationItemArrayComponent extends _component.default {\n    constructor() {\n      super(...arguments);\n      /**\n       * The configuration-item\n       *\n       * @property item\n       * @default null\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor, this);\n      /**\n       * Whether the component is read only\n       *\n       * @argument isReadOnly\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor2, this);\n      /**\n       * the internal changeset\n       *\n       * @property _changeset\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_changeset\", _descriptor3, this);\n      _initializerDefineProperty(this, \"onSave\", _descriptor4, this);\n      _initializerDefineProperty(this, \"onClose\", _descriptor5, this);\n      this._changeset = new _emberChangeset.default(this.item, (0, _emberChangesetValidations.default)(this.validation || true), this.validation || true);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n});","define(\"additive-mc/components/amc-campaign/configuration-item/boolean\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ember-concurrency\", \"@ember/service\"], function (_exports, _component, _object, _emberConcurrency, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @class amc-campaigns/configuration-item/interval\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    intl: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    tagName: '',\n    item: null,\n    /**\n     * Whether its read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    onSave() {},\n    actions: {\n      async save(val) {\n        const snapshot = Object.assign({}, this.item);\n        try {\n          (0, _object.set)(this, 'item.value', val);\n          await (0, _emberConcurrency.all)([this.onSave(), (0, _emberConcurrency.timeout)(400)]);\n          this.uiToast.showToast({\n            title: this.intl.t('toast.success'),\n            type: 'success'\n          });\n        } catch (error) {\n          // reset\n          (0, _object.set)(this, 'item', snapshot);\n        }\n      }\n    }\n  });\n});","define(\"additive-mc/components/amc-campaign/configuration-item/datetime\", [\"exports\", \"@ember/component\", \"@ember/object\", \"rsvp\", \"ember-concurrency\", \"date-fns\"], function (_exports, _component, _object, _rsvp, _emberConcurrency, _dateFns) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which handles campaigns configuration-item for `datetime`.\n   *\n   * @class amc-campaigns/configuration-item/datetime\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    tagName: '',\n    model: null,\n    /**\n     * The configuration-item\n     *\n     * @property item\n     * @default null\n     */\n    item: null,\n    /**\n     * Whether its read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * Whether the content is valid\n     *\n     * @property _contentIsValid\n     * @private\n     */\n    _contentIsValid: false,\n    /**\n     * The initial value\n     *\n     * @property _initialValue\n     * @private\n     */\n    _initialValue: null,\n    minDate: null,\n    maxDate: null,\n    init() {\n      this._super(...arguments);\n\n      //TODO: Use validation to check the date\n      if (this.item.key === 'start-date') {\n        this.set('minDate', new Date());\n        const endDate = this.model.configurations.findBy('key', 'end-date').value;\n        this.set('maxDate', endDate);\n      } else if (this.item.key === 'end-date') {\n        const startDate = this.model.configurations.findBy('key', 'start-date').value;\n        this.set('minDate', (0, _dateFns.addDays)(new Date(startDate || new Date()), 1));\n      }\n      this._initialValue = this.item && this.item.value;\n    },\n    /**\n     * Save event\n     *\n     * @function onSave\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onSave() {},\n    /**\n     * Close event\n     *\n     * @function onClose\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onClose() {},\n    /**\n     * Save wrapper to reset item.value on error\n     */\n    _save: (0, _emberConcurrency.task)(function* () {\n      const tasks = [];\n      try {\n        tasks.push(this.onSave());\n        tasks.push((0, _emberConcurrency.timeout)(400));\n        yield (0, _emberConcurrency.all)(tasks);\n      } catch (error) {\n        // reset\n        (0, _object.set)(this, 'item.value', this._initialValue);\n      }\n    }),\n    actions: {\n      beforeSave() {\n        return (0, _rsvp.resolve)(this._contentIsValid);\n      }\n    }\n  });\n});","define(\"additive-mc/components/amc-campaign/configuration-item/delivery-time\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@ember/object\", \"@glimmer/component\", \"ember-concurrency\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\", \"@ember/service\", \"rsvp\", \"additive-mc/validations/campaign-configurations\"], function (_exports, _component, _templateFactory, _object, _component2, _emberConcurrency, _emberArgTypes, _propTypes, _tracking, _service, _rsvp, _campaignConfigurations) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <AmcCampaign::ConfigurationItem::WithModal\n    @onSave={{perform this.save}}\n    @onClose={{this.onClose}}\n    @item={{this.item}}\n    @validation={{this.validation}}\n    @beforeSave={{this.beforeSave}}\n    @isReadOnly={{this.isReadOnly}} as |modal|\n  >\n    <modal.content>\n      <UiSelect\n        @classNames=\"w-100\"\n        @label={{t \"components.amc-campaign-configuration.deliveryTime.day\"}}\n        @selected={{get this.selectedDay \"label\"}}\n        @options={{this.selectOptions}}\n        @isReadOnly={{this.isReadOnly}}\n        @errorMessage={{modal.changeset.error.value.deliveryType.validation.firstObject}}\n        @isTouched={{this.isTouched}}\n        @onChange={{fn this.onSelectChange modal.changeset}} as |optionComponent option|\n      >\n        <optionComponent.item @value={{option.value}}>\n          {{option.label}}\n        </optionComponent.item>\n      </UiSelect>\n  \n      {{#unless this.isTimePickerDisabled}}\n        <UiTimepicker\n          @allowEmptyValue={{false}}\n          @useChangeset={{true}}\n          @label={{t \"components.amc-campaign-configuration.deliveryTime.time\"}}\n          @minTime=\"00:00\"\n          @maxTime=\"23:59\"\n          @initialValue={{this.item.value.daytime}}\n          @onChange={{fn this.onTimeChange modal.changeset}}\n          @isTouched={{this.isTouched}}\n          @isReadOnly={{this.isTimePickerDisabled}}\n        />\n      {{/unless}}\n    </modal.content>\n  </AmcCampaign::ConfigurationItem::WithModal>\n  */\n  {\n    \"id\": \"cIJvj1Ve\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onSave\\\",\\\"@onClose\\\",\\\"@item\\\",\\\"@validation\\\",\\\"@beforeSave\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0,[\\\"save\\\"]]],null],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"validation\\\"]],[30,0,[\\\"beforeSave\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@isReadOnly\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@onChange\\\"],[\\\"w-100\\\",[28,[37,3],[\\\"components.amc-campaign-configuration.deliveryTime.day\\\"],null],[28,[37,4],[[30,0,[\\\"selectedDay\\\"]],\\\"label\\\"],null],[30,0,[\\\"selectOptions\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,1,[\\\"changeset\\\",\\\"error\\\",\\\"value\\\",\\\"deliveryType\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,0,[\\\"isTouched\\\"]],[28,[37,5],[[30,0,[\\\"onSelectChange\\\"]],[30,1,[\\\"changeset\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,3,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,3,[\\\"label\\\"]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2,3]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isTimePickerDisabled\\\"]]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@allowEmptyValue\\\",\\\"@useChangeset\\\",\\\"@label\\\",\\\"@minTime\\\",\\\"@maxTime\\\",\\\"@initialValue\\\",\\\"@onChange\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[false,true,[28,[37,3],[\\\"components.amc-campaign-configuration.deliveryTime.time\\\"],null],\\\"00:00\\\",\\\"23:59\\\",[30,0,[\\\"item\\\",\\\"value\\\",\\\"daytime\\\"]],[28,[37,5],[[30,0,[\\\"onTimeChange\\\"]],[30,1,[\\\"changeset\\\"]]],null],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isTimePickerDisabled\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"perform\\\",\\\"ui-select\\\",\\\"t\\\",\\\"get\\\",\\\"fn\\\",\\\"unless\\\",\\\"ui-timepicker\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/configuration-item/delivery-time.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Component which handles the delivery time of an email campaign.\n   *\n   * @class amc-campaigns/configuration-item/delivery-time\n   * @module amc-campaigns\n   */\n  let AmcCampaignConfigurationItemWidgetDeliveryTimeComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _dec5 = (0, _object.computed)('item.value.{deliveryType,offsetInDays}', 'selectOptions'), _dec6 = (0, _object.computed)('item.value.deliveryType'), _dec7 = (0, _emberConcurrency.task)(function* () {\n    let copy = Object.assign({}, this.item);\n    const tasks = [];\n    try {\n      tasks.push(this.onSave());\n      tasks.push((0, _emberConcurrency.timeout)(400));\n      yield (0, _emberConcurrency.all)(tasks);\n    } catch (error) {\n      // reset\n      this.item = copy;\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class AmcCampaignConfigurationItemWidgetDeliveryTimeComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor2, this);\n      /**\n       * the configuration-item\n       *\n       * @argument item\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor3, this);\n      /**\n       * whether its read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor4, this);\n      /**\n       * whether the modal is touched\n       *\n       * @property isTouched\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor5, this);\n      /**\n       * the function that is executed when the dialog is closed\n       *\n       * @argument onSave\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onSave\", _descriptor6, this);\n      /**\n       * the function that is executed when the dialog is closed\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor7, this);\n      /**\n       * checks if the changeset is valid and saves the model\n       *\n       * @type {Task}\n       * @function save\n       * @private\n       */\n      _initializerDefineProperty(this, \"save\", _descriptor8, this);\n      this.validation = _campaignConfigurations.deliveryTimeValidation;\n\n      // Initialize select options\n      let options = [{\n        label: this.intl.t('components.amc-campaign-configuration.deliveryTime.options.immediately'),\n        value: 'immediately'\n      }, {\n        label: this.intl.t('components.amc-campaign-configuration.deliveryTime.options.today'),\n        value: 'today'\n      }, {\n        label: this.intl.t('components.amc-campaign-configuration.deliveryTime.options.tomorrow'),\n        value: 1\n      }];\n      for (let day = 2; day <= 7; day++) {\n        options.push({\n          label: this.intl.t('components.amc-campaign-configuration.deliveryTime.options.days', {\n            count: day\n          }),\n          value: day\n        });\n      }\n      (0, _object.set)(this, 'selectOptions', options);\n    }\n\n    /**\n     * Compute the selected option of the \"day\" select\n     *\n     * @computed selectedDay\n     * @type {Object}\n     */\n    get selectedDay() {\n      if (!this.item.value) {\n        return null;\n      }\n      let {\n        deliveryType,\n        offsetInDays\n      } = this.item.value;\n      if (offsetInDays === 0) {\n        offsetInDays = 'today';\n      }\n      const selected = this.selectOptions.find(option => option.value === deliveryType || option.value === offsetInDays);\n      return selected;\n    }\n\n    /**\n     * Compute the selected option of the \"day\" select\n     *\n     * @computed selectedDay\n     * @type {Object}\n     */\n    get isTimePickerDisabled() {\n      var _this$item;\n      if (((_this$item = this.item) === null || _this$item === void 0 || (_this$item = _this$item.value) === null || _this$item === void 0 ? void 0 : _this$item.deliveryType) === 'immediately') {\n        return true;\n      }\n      return false;\n    }\n    /**\n     * the function that is executed before save\n     *\n     * @function beforeSave\n     */\n    beforeSave(changeset) {\n      this.isTouched = true;\n      const type = changeset.get('value.deliveryType');\n      const time = changeset.get('value.daytime');\n      if (type === 'delayed' && !time) {\n        (0, _rsvp.resolve)(false);\n      }\n    }\n\n    /**\n     * the function is executed on \"select\" change\n     *\n     * @function onSelectChange\n     * @param changeset\n     * @param value\n     */\n    onSelectChange(changeset, value) {\n      if (value === 'immediately') {\n        // Reset \"value\" if delivery type is immediately\n        changeset.set('value', {});\n        changeset.execute();\n\n        // Set delivery type \"immediately\"\n        changeset.set('value.deliveryType', 'immediately');\n        changeset.execute();\n        return;\n      }\n\n      // Set delivery type\n      changeset.set('value.deliveryType', 'delayed');\n      changeset.execute();\n\n      // Set days\n      if (value === 'today') {\n        changeset.set('value.offsetInDays', 0);\n      } else {\n        changeset.set('value.offsetInDays', value);\n      }\n      changeset.execute();\n    }\n\n    /**\n     * the function is executed on \"time\" change\n     *\n     * @function onTimeChange\n     * @param changeset\n     * @param value\n     */\n    onTimeChange(changeset, date) {\n      if (!(date instanceof Date)) {\n        /* Update changeset */\n        changeset.set('value.daytime', null);\n        changeset.execute();\n        return;\n      }\n      let [hours, minutes] = [date.getHours(), date.getMinutes()];\n      /* ensure it uses 2 digits (1 -> 01) */\n      hours = ('0' + hours).slice(-2);\n      minutes = ('0' + minutes).slice(-2);\n\n      /* Update changeset */\n      changeset.set('value.daytime', `${hours}:${minutes}`);\n      changeset.execute();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"selectedDay\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"selectedDay\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isTimePickerDisabled\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"isTimePickerDisabled\"), _class.prototype), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"save\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"beforeSave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"beforeSave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onTimeChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onTimeChange\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignConfigurationItemWidgetDeliveryTimeComponent);\n});","define(\"additive-mc/components/amc-campaign/configuration-item/master-details-multiselect\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-concurrency\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\"], function (_exports, _component, _templateFactory, _component2, _emberConcurrency, _emberArgTypes, _propTypes, _tracking, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <AmcCampaign::ConfigurationItem::WithModal\n    @onSave={{perform this.save}}\n    @onClose={{this.onClose}}\n    @item={{this.item}}\n    @isReadOnly={{this.isModalReadOnly}} as |modal|\n  >\n    <modal.content>\n      <UiSelect\n        @classNames=\"w-100\"\n        @label={{modal.changeset.label}}\n        @selected={{get this.selectedTrigger \"label\"}}\n        @options={{this.selectOptions}}\n        @isReadOnly={{this.isReadOnly}}\n        @onChange={{fn this.onSelectChange modal.changeset}} as |optionComponent option|\n      >\n        <optionComponent.item @value={{option.value}}>\n          {{option.label}}\n        </optionComponent.item>\n      </UiSelect>\n  \n      {{#if this.showMultiselect}}\n        <UiSelect\n          @classNames=\"w-100\"\n          @label={{this.multiselectLabel}}\n          @selected={{this.selectedOptions}}\n          @options={{this.multiselectOptions}}\n          @isMultiSelect={{true}}\n          @objectKey=\"label\"\n          @isReadOnly={{this.isReadOnly}}\n          @onChange={{fn this.onMultiselectChange modal.changeset}} as |optionComponent option|\n        >\n          <optionComponent.item @value={{option}}>\n            {{option.label}}\n          </optionComponent.item>\n        </UiSelect>\n      {{/if}}\n  \n      {{#if (eq this.selectedTrigger.value \"interests\")}}\n        <UiSelect\n          @classNames=\"w-100\"\n          @label={{t \"components.amc-campaign-configuration.surveys.label\"}}\n          @selected={{modal.changeset.value.interests.values.surveys}}\n          @options={{this.surveyOptions}}\n          @isMultiSelect={{true}}\n          @objectKey=\"label\"\n          @isReadOnly={{this.readOnly}}\n          @onChange={{fn this.onSurveySelectChange modal.changeset}} as |optionComponent option|\n        >\n          <optionComponent.item @value={{option}}>\n            {{option.label}}\n          </optionComponent.item>\n        </UiSelect>\n      {{/if}}\n    </modal.content>\n  </AmcCampaign::ConfigurationItem::WithModal>\n  */\n  {\n    \"id\": \"g5lW6GOF\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onSave\\\",\\\"@onClose\\\",\\\"@item\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0,[\\\"save\\\"]]],null],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"isModalReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[\\\"w-100\\\",[30,1,[\\\"changeset\\\",\\\"label\\\"]],[28,[37,3],[[30,0,[\\\"selectedTrigger\\\"]],\\\"label\\\"],null],[30,0,[\\\"selectOptions\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,4],[[30,0,[\\\"onSelectChange\\\"]],[30,1,[\\\"changeset\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,3,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,3,[\\\"label\\\"]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2,3]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showMultiselect\\\"]],[[[1,\\\"      \\\"],[8,[39,2],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[\\\"w-100\\\",[30,0,[\\\"multiselectLabel\\\"]],[30,0,[\\\"selectedOptions\\\"]],[30,0,[\\\"multiselectOptions\\\"]],true,\\\"label\\\",[30,0,[\\\"isReadOnly\\\"]],[28,[37,4],[[30,0,[\\\"onMultiselectChange\\\"]],[30,1,[\\\"changeset\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,5]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,5,[\\\"label\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[4,5]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,0,[\\\"selectedTrigger\\\",\\\"value\\\"]],\\\"interests\\\"],null],[[[1,\\\"      \\\"],[8,[39,2],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[\\\"w-100\\\",[28,[37,7],[\\\"components.amc-campaign-configuration.surveys.label\\\"],null],[30,1,[\\\"changeset\\\",\\\"value\\\",\\\"interests\\\",\\\"values\\\",\\\"surveys\\\"]],[30,0,[\\\"surveyOptions\\\"]],true,\\\"label\\\",[30,0,[\\\"readOnly\\\"]],[28,[37,4],[[30,0,[\\\"onSurveySelectChange\\\"]],[30,1,[\\\"changeset\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,6,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,7]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,7,[\\\"label\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[6,7]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"perform\\\",\\\"ui-select\\\",\\\"get\\\",\\\"fn\\\",\\\"if\\\",\\\"eq\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/configuration-item/master-details-multiselect.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Component which handles trigger-email campaigns configuration-item for `email-activity-trigger`.\n   *\n   * @class amc-campaigns/configuration-item/master-details-multiselect\n   * @module amc-campaigns\n   */\n  let AmcCampaignConfigurationItemWidgetMasterDetailsMultiselectComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _dec5 = (0, _object.computed)('isReadOnly', 'selectedOptions.[]'), _dec6 = (0, _object.computed)('item.allowedValues'), _dec7 = (0, _object.computed)('item.{allowedValues,value.[]}'), _dec8 = (0, _object.computed)('item.{allowedValues,value.[]}'), _dec9 = (0, _object.computed)('item.value.[]'), _dec10 = (0, _object.computed)('item.value.{interests,surveys,enquiry_channels,address_books,address_books_groups}.values.{interests,surveys}.[]'), _dec11 = (0, _object.computed)('item.value.[]', 'selectOptions'), _dec12 = (0, _emberConcurrency.task)(function* () {\n    let copy = Object.assign({}, this.item);\n    const tasks = [];\n    try {\n      tasks.push(this.onSave());\n      tasks.push((0, _emberConcurrency.timeout)(400));\n      yield (0, _emberConcurrency.all)(tasks);\n    } catch (error) {\n      // reset\n      this.item = copy;\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class AmcCampaignConfigurationItemWidgetMasterDetailsMultiselectComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor3, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor4, this);\n      /**\n       * The configuration-item\n       *\n       * @argument item\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor5, this);\n      /**\n       * Whether the multiselect is visible\n       *\n       * @argument showMultiselect\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"showMultiselect\", _descriptor6, this);\n      /**\n       * Whether its read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor7, this);\n      /**\n       * the function that is executed when the dialog is closed\n       *\n       * @argument onSave\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onSave\", _descriptor8, this);\n      /**\n       * the function that is executed when the dialog is closed\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor9, this);\n      /**\n       * checks if the changeset is valid and saves the model\n       *\n       * @type {Task}\n       * @function save\n       * @private\n       */\n      _initializerDefineProperty(this, \"save\", _descriptor10, this);\n    }\n    /**\n     * whether the modal should be \"readOnly\"\n     *\n     * @computed isModalReadOnly\n     * @type {Boolean}\n     */\n    get isModalReadOnly() {\n      return this.isReadOnly || this.selectedOptions.length === 0;\n    }\n\n    /**\n     * compute options for select \"trigger\"\n     *\n     * @computed selectOptions\n     * @type {Array}\n     */\n    get selectOptions() {\n      const {\n        allowedValues\n      } = this.item;\n      const options = [];\n      allowedValues.forEach(value => {\n        options.push({\n          value: value.key,\n          label: value.label\n        });\n      });\n      return options;\n    }\n\n    /**\n     * compute options for multi-select\n     *\n     * @computed multiselectOptions\n     * @type {Array}\n     */\n    get multiselectOptions() {\n      var _this$item, _this$item2;\n      if (this.item.value && Object.keys((_this$item = this.item) === null || _this$item === void 0 ? void 0 : _this$item.value).length > 0 && (_this$item2 = this.item) !== null && _this$item2 !== void 0 && _this$item2.allowedValues) {\n        const selectedTriggerKey = Object.keys(this.item.value)[0];\n        const multiselect = this.item.allowedValues.find(item => (item === null || item === void 0 ? void 0 : item.key) === selectedTriggerKey);\n        return multiselect.allowedValues;\n      }\n      return [];\n    }\n    get surveyOptions() {\n      var _this$item$allowedVal;\n      const multiselect = (_this$item$allowedVal = this.item.allowedValues) === null || _this$item$allowedVal === void 0 ? void 0 : _this$item$allowedVal.find(item => item.key === 'interests');\n      return (multiselect === null || multiselect === void 0 ? void 0 : multiselect.allowedValuesSurveys) || [];\n    }\n\n    /**\n     * compute the label of the multi-select\n     *\n     * @computed multiselectLabel\n     * @type {String}\n     */\n    get multiselectLabel() {\n      if (this.item.value) {\n        var _this$item3;\n        const selectedTriggerKey = Object.keys((_this$item3 = this.item) === null || _this$item3 === void 0 ? void 0 : _this$item3.value)[0];\n        return this.item.value[selectedTriggerKey].label;\n      }\n      return '';\n    }\n\n    /**\n     * Compute the selected options of the multi-select\n     *\n     * @computed selectedOptions\n     * @type {Array}\n     */\n    get selectedOptions() {\n      var _this$item4;\n      if (this.item.value && Object.keys((_this$item4 = this.item) === null || _this$item4 === void 0 ? void 0 : _this$item4.value).length > 0) {\n        var _this$item$value$key, _this$item$value$key2;\n        const selectedTriggerKey = Object.keys(this.item.value);\n        const key = selectedTriggerKey.length > 0 ? selectedTriggerKey[0] : null;\n        return ((_this$item$value$key = this.item.value[key]) === null || _this$item$value$key === void 0 || (_this$item$value$key = _this$item$value$key.values) === null || _this$item$value$key === void 0 ? void 0 : _this$item$value$key.interests) || (Array.isArray((_this$item$value$key2 = this.item.value[key]) === null || _this$item$value$key2 === void 0 ? void 0 : _this$item$value$key2.values) ? this.item.value[key].values : []);\n      }\n      return [];\n    }\n\n    /**\n     * Compute the selected option of the \"trigger\" select\n     *\n     * @computed selectedTrigger\n     * @type {Object}\n     */\n    get selectedTrigger() {\n      var _this$item5;\n      if (this.item.value && Object.keys((_this$item5 = this.item) === null || _this$item5 === void 0 ? void 0 : _this$item5.value).length > 0 && this.selectOptions) {\n        // eslint-disable-next-line ember/no-side-effects\n        this.showMultiselect = true;\n        return this.selectOptions.find(option => option.value === Object.keys(this.item.value)[0]);\n      }\n      return null;\n    }\n    /**\n     * the function is executed on \"select\" change\n     *\n     * @function onSelectChange\n     * @param changeset\n     * @param value\n     */\n    onSelectChange(changeset, value) {\n      changeset.set('value', {});\n      changeset.execute();\n      const label = this.item.allowedValues.find(item => item.key === value).label;\n      changeset.set(`value.${value}`, {\n        label: label,\n        values: []\n      });\n      changeset.execute();\n\n      // Show multi-select\n      this.showMultiselect = true;\n    }\n\n    /**\n     * the function is executed on \"multi-select\" change\n     *\n     * @function onMultiselectChange\n     * @param changeset\n     * @param option\n     * @param checked\n     */\n    onMultiselectChange(changeset, option, checked) {\n      const selectedTriggerKey = Object.keys(this.item.value)[0];\n      const changesetPath = `value.${selectedTriggerKey}.values${selectedTriggerKey === 'interests' ? '.interests' : ''}`;\n      let options = (changeset.get(changesetPath) || []).slice(0);\n      this._onSelectOptions(changeset, options, option, checked, changesetPath);\n    }\n    onSurveySelectChange(changeset, option, checked) {\n      let options = (changeset.get('value.interests.values.surveys') || []).slice(0);\n      this._onSelectOptions(changeset, options, option, checked, 'value.interests.values.surveys');\n    }\n    _onSelectOptions(changeset, options, option, checked, changesetPath) {\n      let _options = options;\n      if (checked) {\n        if (!options.find(_option => _option.value === option.value)) {\n          _options.push(option);\n        }\n      } else {\n        _options = options.filter(_option => !(_option.value === option.value));\n      }\n      changeset.set(changesetPath, _options);\n      changeset.execute();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"showMultiselect\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isModalReadOnly\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"isModalReadOnly\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectOptions\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"selectOptions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"multiselectOptions\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"multiselectOptions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"surveyOptions\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"surveyOptions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"multiselectLabel\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"multiselectLabel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectedOptions\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"selectedOptions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectedTrigger\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"selectedTrigger\"), _class.prototype), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"save\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onSelectChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onMultiselectChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onMultiselectChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSurveySelectChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSurveySelectChange\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignConfigurationItemWidgetMasterDetailsMultiselectComponent);\n});","define(\"additive-mc/components/amc-campaign/configuration-item/money\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/object/computed\", \"@ember/service\", \"ember-changeset\", \"ember-changeset-validations\", \"additive-mc/validations/campaign-configurations\", \"additive-mc/utils/currency-serialization\", \"ember-concurrency\"], function (_exports, _component, _object, _computed, _service, _emberChangeset, _emberChangesetValidations, _campaignConfigurations, _currencySerialization, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which handles campaigns configuration-item for `money`.\n   *\n   * `money` is a decimal number\n   *\n   * @class amc-campaigns/configuration-item/money\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    intl: (0, _service.inject)(),\n    uiAppSettings: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    tagName: '',\n    /**\n     * The configuration-item\n     *\n     * @property item\n     * @default null\n     */\n    item: null,\n    /**\n     * Whether its read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * The internal changeset of the item\n     *\n     * @property _moneyChangeset\n     * @default null\n     * @private\n     */\n    _moneyChangeset: null,\n    /**\n     * The underlying object of the changeset\n     *\n     * @property _resource\n     * @default null\n     * @private\n     */\n    _resource: null,\n    /**\n     * Whether is disabled\n     *\n     * @computed _isDisabled\n     * @default false\n     * @private\n     */\n    _isDisabled: (0, _computed.or)('isReadOnly', '_save.isRunning'),\n    /**\n     * Save event\n     *\n     * @function onSave\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onSave() {},\n    init() {\n      this._super(...arguments);\n      let resource = {\n        value: 0\n      };\n      if (this.item && this.item.value) {\n        resource.value = (0, _currencySerialization.centsToAmount)(this.item.value);\n      }\n      const validation = (0, _campaignConfigurations.moneyValidation)(this.intl);\n      const changeset = new _emberChangeset.default(resource, (0, _emberChangesetValidations.default)(validation), validation);\n      (0, _object.setProperties)(this, {\n        _moneyChangeset: changeset,\n        _resource: resource\n      });\n    },\n    /**\n     * Convert value to cents, sets it to parents changeset and trigger save\n     *\n     * @function _save\n     * @type {Task}\n     * @param {Changeset} parentChangeset The changeset of the `with-modal` hoc\n     * @private\n     */\n    _save: (0, _emberConcurrency.task)(function* (parentChangeset) {\n      const tasks = [];\n      const snapshot = this.item.value;\n      try {\n        yield this._moneyChangeset.validate();\n        if (this._moneyChangeset.get('isInvalid')) {\n          return;\n        }\n\n        // Will update the underlying object, which in this case is `this._resource`\n        this._moneyChangeset.execute();\n        parentChangeset.set('value', (0, _currencySerialization.amountToCents)(this._resource.value));\n        parentChangeset.execute();\n        tasks.push(this.onSave());\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        yield (0, _emberConcurrency.all)(tasks);\n      } catch (error) {\n        // reset\n        (0, _object.set)(this, 'item.value', snapshot);\n      }\n    })\n  });\n});","define(\"additive-mc/components/amc-campaign/configuration-item/multilingual-link\", [\"exports\", \"additive-mc/components/amc-campaign/configuration-item/-multilingual-text\", \"@ember/object\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-changeset-validations/validators\", \"@ember/service\"], function (_exports, _multilingualText, _object, _emberChangeset, _emberChangesetValidations, _validators, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  /**\n   * Component which handles campaigns configuration-item for `multilingual-link`.\n   *\n   * @class amc-campaigns/configuration-item/multilingual-link\n   * @module amc-campaigns\n   */\n  let MultilingualLinkComponent = _exports.default = (_class = class MultilingualLinkComponent extends _multilingualText.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    createChangeset(resource) {\n      let {\n        intl,\n        contentLanguages\n      } = this;\n      let validation = contentLanguages.reduce((hash, key) => {\n        hash[key] = (0, _validators.validateFormat)({\n          type: 'url',\n          message: intl.t('errors.url'),\n          allowBlank: true\n        });\n        return hash;\n      }, {});\n      return new _emberChangeset.default(resource, (0, _emberChangesetValidations.default)(validation), validation);\n    }\n    async selectLanguage(language) {\n      let {\n        _selectedLanguage: key,\n        _changeset: changeset\n      } = this;\n      await changeset.validate(key);\n      if (changeset.error[key]) {\n        return;\n      }\n      this._selectedLanguage = language;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"selectLanguage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectLanguage\"), _class.prototype), _class);\n});","define(\"additive-mc/components/amc-campaign/configuration-item/multilingual-text\", [\"exports\", \"additive-mc/components/amc-campaign/configuration-item/-multilingual-text\", \"ember-changeset\"], function (_exports, _multilingualText, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which handles campaigns configuration-item for `multilingual-text`.\n   *\n   * @module amc-campaigns\n   */\n  class MultilingualTextComponent extends _multilingualText.default {\n    createChangeset(resource) {\n      return new _emberChangeset.default(resource);\n    }\n  }\n  _exports.default = MultilingualTextComponent;\n});","define(\"additive-mc/components/amc-campaign/configuration-item/multilingual-texts\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"@ember/string\", \"@ember/utils\", \"ember-concurrency\", \"rsvp\"], function (_exports, _component, _object, _service, _string, _utils, _emberConcurrency, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which handles campaigns configuration-item for `multilingual-texts`.\n   *\n   * @class amc-campaigns/configuration-item/multilingual-texts\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    intl: (0, _service.inject)(),\n    uiAppSettings: (0, _service.inject)(),\n    uiDialog: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    tagName: '',\n    /**\n     * The configuration-item\n     *\n     * @property item\n     * @default null\n     */\n    item: null,\n    /**\n     * Whether its read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * The value of the configuration item\n     *\n     * @property _resource\n     * @default null\n     * @private\n     */\n    _resource: null,\n    /**\n     * The currently selected language\n     *\n     * @property _selectedLanguage\n     * @default undefined\n     * @private\n     */\n    _selectedLanguage: null,\n    /**\n     * The currently selected text variant\n     *\n     * @property _selectedTextVariant\n     * @default null\n     * @private\n     */\n    _selectedTextVariant: null,\n    /**\n     * Whether text variant is being edited\n     *\n     * @property _isEditMode\n     * @default false\n     * @private\n     */\n    _isEditMode: false,\n    /**\n     * All activated languages for the current organization\n     *\n     * @computed _organizationLanguages\n     * @default null\n     * @private\n     */\n    _organizationLanguages: _object.computed.alias('uiAppSettings.languages.contentLanguages'),\n    /**\n     * Available text variants\n     *\n     * @computed _textVariants\n     * @default null\n     * @private\n     */\n    _textVariants: (0, _object.computed)('_organizationLanguages', '_resource', {\n      get() {\n        const resource = this._resource || [];\n        const textVariantName = this.intl.t('components.amc-campaign-configuration.multilingual-texts.textVariant');\n        let textVariants = [];\n        resource.forEach((_textVariant, index) => {\n          let textVariant = {\n            label: `${textVariantName} ${index + 1}`,\n            description: (0, _string.htmlSafe)(this._organizationLanguages.map(language => {\n              const color = _textVariant[language] ? 'green' : 'red';\n              return `<span class=\"font-sm pr1 ${color}\">${language.toUpperCase()}</span>`;\n            }).join('')),\n            value: _textVariant,\n            index\n          };\n          textVariants.push(textVariant);\n        });\n        return textVariants;\n      }\n    }),\n    /**\n     * Close event\n     *\n     * @function onClose\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onClose() {},\n    /**\n     * Save event\n     *\n     * @function onSave\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onSave() {},\n    init() {\n      this._super(...arguments);\n      const resource = this.item && this.item.value || [];\n      (0, _object.set)(this, '_resource', resource);\n    },\n    /**\n     * Save the model\n     *\n     * @function _save\n     * @type {Task}\n     * @private\n     */\n    _save: (0, _emberConcurrency.task)(function* () {\n      let copy = Object.assign({}, this.item);\n      try {\n        const resource = this._resource;\n        if (!resource) {\n          throw new Error();\n        }\n        (0, _object.set)(this, 'item.value', resource);\n        yield (0, _emberConcurrency.all)([this.onSave(), (0, _emberConcurrency.timeout)(400)]);\n        (0, _object.setProperties)(this, {\n          _isEditMode: false,\n          _selectedTextVariant: null\n        });\n        return (0, _rsvp.resolve)();\n      } catch (error) {\n        // reset\n        (0, _object.set)(this, 'item', copy);\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }),\n    _deleteTextVariant: (0, _emberConcurrency.task)(function* (textVariant) {\n      const resource = this._resource;\n      if (resource && (0, _utils.isPresent)(textVariant.index)) {\n        resource.splice(textVariant.index, 1);\n        (0, _object.set)(this, '_resource', [...resource]);\n        yield this._save.perform();\n      }\n    }),\n    actions: {\n      addTextVariant() {\n        (0, _object.setProperties)(this, {\n          _selectedTextVariant: {\n            label: this.intl.t('components.amc-campaign-configuration.multilingual-texts.newTextVariant'),\n            value: {}\n          },\n          _isEditMode: true\n        });\n      },\n      editTextVariant(textVariant) {\n        (0, _object.setProperties)(this, {\n          _selectedTextVariant: textVariant,\n          _isEditMode: true\n        });\n      },\n      saveTextVariant() {\n        try {\n          const selectedTextVariant = this._selectedTextVariant;\n          const resource = this._resource;\n          if (!selectedTextVariant || !resource) {\n            throw new Error();\n          }\n\n          // check if saved text variant has texts\n          let hasTexts = false;\n          Object.keys(selectedTextVariant.value).forEach(language => {\n            if ((0, _utils.isPresent)(selectedTextVariant.value[language])) {\n              hasTexts = true;\n            }\n          });\n\n          // if text variant is saved without texts, show confirm dialog to delete it\n          if (!hasTexts) {\n            if ((0, _utils.isPresent)(selectedTextVariant.index)) {\n              this.send('showConfirmDeleteDialog', selectedTextVariant, true);\n              return (0, _rsvp.resolve)();\n            }\n          }\n\n          // if the text variant has an index it existed already, so we modify it\n          if ((0, _utils.isPresent)(selectedTextVariant.index)) {\n            resource[selectedTextVariant.index] = selectedTextVariant.value;\n          } else {\n            // else it's a new text variant and we can push it to the array\n            resource.push(selectedTextVariant.value);\n          }\n          (0, _object.set)(this, '_resource', [...resource]);\n          return this._save.perform();\n        } catch (error) {\n          this.uiToast.showToast({\n            title: this.intl.t('toast.unexpectedError'),\n            type: 'error'\n          });\n        }\n      },\n      showConfirmDeleteDialog(textVariant) {\n        let isEmpty = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n        const translationPath = isEmpty ? 'deleteEmptyTextVariant' : 'deleteTextVariant';\n        const intl = this.intl;\n        this.uiDialog.showConfirm(intl.t(`components.amc-campaign-configuration.multilingual-texts.${translationPath}.title`), (0, _string.htmlSafe)(intl.t(`components.amc-campaign-configuration.multilingual-texts.${translationPath}.description`)), () => {\n          this._deleteTextVariant.perform(textVariant);\n        }, intl.t('global.actions.delete'));\n      }\n    }\n  });\n});","define(\"additive-mc/components/amc-campaign/configuration-item/multimedia\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ember-changeset\", \"ember-concurrency\", \"@ember/service\"], function (_exports, _component, _object, _emberChangeset, _emberConcurrency, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which handles campaigns configuration-item for `multimedia`.\n   *\n   * @class amc-campaigns/configuration-item/multimedia\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    intl: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    multimedia: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    tagName: '',\n    /**\n     * The configuration-item\n     *\n     * @property item\n     * @default null\n     */\n    item: null,\n    /**\n     * Whether its read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * The internal changeset of the item\n     *\n     * @property _multimediaChangeset\n     * @default null\n     * @private\n     */\n    _multimediaChangeset: null,\n    /**\n     * Changesets underlying object\n     *\n     * @property _resource\n     * @default null\n     * @private\n     */\n    _resource: null,\n    /**\n     * Save event\n     *\n     * @function onSave\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onSave() {},\n    init() {\n      this._super(...arguments);\n\n      // set options for media selection\n      this.multimedia.setSelectionOptions({\n        maxCount: 1\n      });\n      let resource = {\n        medium: []\n      };\n      if (this.item && this.item.value) {\n        resource.medium = this.item.value;\n      }\n      const changeset = new _emberChangeset.default(resource);\n      (0, _object.setProperties)(this, {\n        _multimediaChangeset: changeset,\n        _resource: resource\n      });\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n      this.multimedia.resetSelectionOptions();\n    },\n    /**\n     * Sets options it to parents changeset and trigger save\n     *\n     * @function _save\n     * @type {Task}\n     * @param {Changeset} parentChangeset The changeset of the `with-modal` hoc\n     * @private\n     */\n    _save: (0, _emberConcurrency.task)(function* (parentChangeset) {\n      const tasks = [];\n      const snapshot = this.item.value && Object.assign({}, this.item.value) || null;\n      try {\n        yield this._multimediaChangeset.validate();\n        if (this._multimediaChangeset.get('isInvalid')) {\n          return;\n        }\n\n        // Will update the underlying object, which in this case is `this._resource`\n        this._multimediaChangeset.execute();\n        parentChangeset.set('value', this._resource.medium);\n        parentChangeset.execute();\n        tasks.push(this.onSave());\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        yield (0, _emberConcurrency.all)(tasks);\n      } catch (error) {\n        (0, _object.set)(this, 'item.value', snapshot);\n      }\n    }).drop(),\n    actions: {\n      _closeMultimedia() {\n        /* TODO: dynamic type, currently only used for ad-campaign-types */\n        this.router.transitionTo('instance.campaigns.ad.index.detail');\n      },\n      _openMultimedia() {\n        /* TODO: dynamic type, currently only used for ad-campaign-types */\n        this.router.transitionTo('instance.campaigns.ad.index.detail.additive-multimedia-engine');\n      },\n      _onResourceRemove() {\n        this._multimediaChangeset.set('medium', null);\n      },\n      _onResourceAdd(_, _ref) {\n        let [resource] = _ref;\n        this._multimediaChangeset.set('medium', resource);\n      }\n    }\n  });\n});","define(\"additive-mc/components/amc-campaign/configuration-item/multiselect\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ember-changeset\", \"ember-concurrency\", \"@ember/service\"], function (_exports, _component, _object, _emberChangeset, _emberConcurrency, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which handles campaigns configuration-item for `multiselect`.\n   *\n   * @class amc-campaigns/configuration-item/multiselect\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    intl: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    tagName: '',\n    /**\n     * The configuration-item\n     *\n     * @property item\n     * @default null\n     */\n    item: null,\n    /**\n     * Whether its read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * The internal changeset of the item\n     *\n     * @property _multiselectChangeset\n     * @default null\n     * @private\n     */\n    _multiselectChangeset: null,\n    /**\n     * Changesets underlying object\n     *\n     * @property _resource\n     * @default null\n     * @private\n     */\n    _resource: null,\n    /**\n     * Save event\n     *\n     * @function onSave\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onSave() {},\n    init() {\n      this._super(...arguments);\n      let resource = {\n        options: []\n      };\n      if (this.item && this.item.value && Array.isArray(this.item.value)) {\n        resource.options = this.item.value.slice(0);\n      }\n      const changeset = new _emberChangeset.default(resource);\n      (0, _object.setProperties)(this, {\n        _multiselectChangeset: changeset,\n        _resource: resource\n      });\n    },\n    /**\n     * Sets options it to parents changeset and trigger save\n     *\n     * @function _save\n     * @type {Task}\n     * @param {Changeset} parentChangeset The changeset of the `with-modal` hoc\n     * @private\n     */\n    _save: (0, _emberConcurrency.task)(function* (parentChangeset) {\n      const tasks = [];\n      yield this._multiselectChangeset.validate();\n      if (this._multiselectChangeset.get('isInvalid')) {\n        return;\n      }\n\n      // Will update the underlying object, which in this case is `this._resource`\n      this._multiselectChangeset.execute();\n      parentChangeset.set('value', this._resource.options);\n      parentChangeset.execute();\n      tasks.push(this.onSave());\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      yield (0, _emberConcurrency.all)(tasks);\n    }).drop(),\n    actions: {\n      onSelectChange(option, checked) {\n        // Create clone and re-set whole array, otherwise changeset does not detect \"changes\"\n        let options = (this._multiselectChangeset.get('options') || []).slice(0);\n        const checkedValue = option.value;\n        if (checked) {\n          // Only push if not allready in\n          if (!options.findBy('value', checkedValue)) {\n            options.pushObject(option);\n          }\n        } else {\n          // Remove unchecked option\n          options = options.filter(_option => _option.value === checkedValue ? false : true);\n        }\n        this._multiselectChangeset.set('options', options);\n        this._multiselectChangeset.execute();\n      }\n    }\n  });\n});","define(\"additive-mc/components/amc-campaign/configuration-item/number\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\", \"additive-mc/validations/campaign-configurations\", \"ember-concurrency\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _propTypes, _tracking, _campaignConfigurations, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <AmcCampaign::ConfigurationItem::WithModal\n    @onSave={{perform this._save}}\n    @onClose={{this.onClose}}\n    @item={{this.item}}\n    @validation={{this._validation}}\n    @isReadOnly={{this.isReadOnly}} as |modal|\n  >\n    <modal.content>\n      <UiInput\n        @label={{this.item.label}}\n        @value={{modal.changeset.value}}\n        @isDisabled={{amc-or modal.isLoading this.isReadOnly}}\n        @errorMessage={{get modal.changeset.error.value \"validation\"}}\n      />\n    </modal.content>\n  </AmcCampaign::ConfigurationItem::WithModal>\n  */\n  {\n    \"id\": \"Cvc/7nQv\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onSave\\\",\\\"@onClose\\\",\\\"@item\\\",\\\"@validation\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0,[\\\"_save\\\"]]],null],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"_validation\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isDisabled\\\",\\\"@errorMessage\\\"],[[30,0,[\\\"item\\\",\\\"label\\\"]],[30,1,[\\\"changeset\\\",\\\"value\\\"]],[28,[37,3],[[30,1,[\\\"isLoading\\\"]],[30,0,[\\\"isReadOnly\\\"]]],null],[28,[37,4],[[30,1,[\\\"changeset\\\",\\\"error\\\",\\\"value\\\"]],\\\"validation\\\"],null]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"perform\\\",\\\"ui-input\\\",\\\"amc-or\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/configuration-item/number.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Component which handles campaigns configuration-item for `number`.\n   *\n   * `number` is a positive integer\n   *\n   * @class amc-campaigns/configuration-item/number\n   * @module amc-campaigns\n   */\n  let AmcCampaignConfigurationItemComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _dec5 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    try {\n      tasks.push(this.onSave());\n      tasks.push((0, _emberConcurrency.timeout)(400));\n      yield (0, _emberConcurrency.all)(tasks);\n    } catch (error) {\n      // reset\n      this.item.value = this._initialValue;\n    }\n  }), _class = class AmcCampaignConfigurationItemComponent extends _component2.default {\n    constructor() {\n      var _this$item;\n      super(...arguments);\n      /**\n       * The configuration-item\n       *\n       * @argument item\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor, this);\n      /**\n       * Whether its read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor2, this);\n      /**\n       * The initial value\n       *\n       * @property _initialValue\n       * @type {String}\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_initialValue\", _descriptor3, this);\n      /**\n       * The validation\n       *\n       * @property _validation\n       * @type {any}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"_validation\", _descriptor4, this);\n      /**\n       * Save event\n       *\n       * @function onSave\n       * @return {Promise} Returns a promise\n       * @public\n       */\n      _initializerDefineProperty(this, \"onSave\", _descriptor5, this);\n      /**\n       * On Close Event\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor6, this);\n      /**\n       * Save wrapper to reset item.value on error\n       */\n      _initializerDefineProperty(this, \"_save\", _descriptor7, this);\n      this._initialValue = (_this$item = this.item) === null || _this$item === void 0 ? void 0 : _this$item.value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_initialValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_validation\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return _campaignConfigurations.numberValidation;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"_save\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignConfigurationItemComponent);\n});","define(\"additive-mc/components/amc-campaign/configuration-item/percentage-distribution\", [\"exports\", \"@ember/component\", \"@ember/object\", \"additive-mc/validations/campaign-configurations\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-concurrency\", \"@ember/service\", \"rsvp\"], function (_exports, _component, _object, _campaignConfigurations, _emberChangeset, _emberChangesetValidations, _emberConcurrency, _service, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which handles campaigns configuration-item for `percentage-distribution`.\n   *\n   * `percentage-distribution` is a combination of array elements object where each has a value.\n   * The sum of those values must be 100. It can not be lower nor greater than 100.\n   * But the value can be 0.\n   *\n   * The array could look like so:\n   *\n   *``js\n    [\n      {\n        key: 'key-1',\n        label: 'Key 1',\n        value: 20\n      },\n      {\n        key: 'key-2',\n        label: 'Key 2',\n        value: 0\n      },\n      {\n        key: 'key-3',\n        label: 'Key 3',\n        value: 80\n      }\n    ]\n  ]\n   ``\n   *\n   * @class amc-campaigns/configuration-item/percentage-distribution\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    intl: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    tagName: '',\n    /**\n     * The configuration-item\n     *\n     * @property item\n     * @default null\n     */\n    item: null,\n    /**\n     * Whether its read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * The internal changeset of the item\n     *\n     * @property _changeset\n     * @default null\n     * @private\n     */\n    _changeset: null,\n    /**\n     * The initial value\n     *\n     * @property _initialValue\n     * @private\n     */\n    _initialValue: null,\n    /**\n     * Changesets underlying object;\n     *\n     * @property _resource\n     * @default null\n     * @private\n     */\n    _resource: null,\n    /**\n     * Save event\n     *\n     * @function onSave\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onSave() {},\n    /**\n     * Close event\n     *\n     * @function onClose\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onClose() {},\n    init() {\n      this._super(...arguments);\n      let resource = {\n        value: [],\n        /* Dummy property to set error on sum */\n        sum: 0\n      };\n      if (this.item && this.item.value && Array.isArray(this.item.value)) {\n        (0, _object.set)(resource, 'value', this.item.value.slice(0));\n      }\n      const _validation = (0, _campaignConfigurations.percentageDistributionValidation)(this.intl);\n      const changeset = new _emberChangeset.default(resource, (0, _emberChangesetValidations.default)(_validation), _validation);\n      (0, _object.setProperties)(this, {\n        _changeset: changeset,\n        _resource: resource,\n        _initialValue: (this.item.value || []).map(element => Object.assign({}, element))\n      });\n    },\n    /**\n     * Build duration string, sets it to parents changeset and trigger save\n     *\n     * @function _save\n     * @type {Task}\n     * @param {Changeset} parentChangeset The changeset of the `with-modal` hoc\n     * @private\n     */\n    _save: (0, _emberConcurrency.task)(function* (parentChangeset) {\n      const tasks = [];\n      try {\n        yield this._changeset.validate();\n        if (this._changeset.get('isInvalid')) {\n          return;\n        }\n\n        // Will update the underlying object, which in this case is `this._resource`\n        this._changeset.execute();\n        parentChangeset.set('value', this._resource.value);\n        parentChangeset.execute();\n        tasks.push(this.onSave());\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        yield (0, _emberConcurrency.all)(tasks);\n      } catch (error) {\n        // reset\n        (0, _object.set)(this, 'item.value', this._initialValue);\n      }\n    }),\n    /**\n     * Sum values and set to changesets `sum` property\n     *\n     * @function _setSum\n     * @type {Task}\n     * @private\n     */\n    _setSum: (0, _emberConcurrency.task)(function* () {\n      try {\n        const value = this._changeset.get('value');\n        const sum = value.reduce((accumulator, _ref) => {\n          let {\n            value\n          } = _ref;\n          return accumulator + parseInt(value) || 0;\n        }, 0);\n        yield this._changeset.set('sum', sum);\n        return (0, _rsvp.resolve)(true);\n      } catch (error) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    })\n  });\n});","define(\"additive-mc/components/amc-campaign/configuration-item/select\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ember-concurrency\"], function (_exports, _component, _object, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which handles campaigns configuration-item for `select`.\n   *\n   * @class amc-campaigns/configuration-item/select\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    tagName: '',\n    /**\n     * The configuration-item\n     *\n     * @property item\n     * @default null\n     */\n    item: null,\n    /**\n     * Whether its read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * The initial value\n     *\n     * @property _initialValue\n     * @private\n     */\n    _initialValue: null,\n    init() {\n      this._super(...arguments);\n      this._initialValue = this.item && this.item.value;\n    },\n    /**\n     * Save event\n     *\n     * @function onSave\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onSave() {},\n    /**\n     * Close event\n     *\n     * @function onClose\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onClose() {},\n    /**\n     * Save wrapper to reset item.value on error\n     */\n    _save: (0, _emberConcurrency.task)(function* () {\n      const tasks = [];\n      try {\n        tasks.push(this.onSave());\n        tasks.push((0, _emberConcurrency.timeout)(400));\n        yield (0, _emberConcurrency.all)(tasks);\n      } catch (error) {\n        // reset\n        (0, _object.set)(this, 'item.value', this._initialValue);\n      }\n    })\n  });\n});","define(\"additive-mc/components/amc-campaign/configuration-item/text\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ember-concurrency\"], function (_exports, _component, _object, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which handles campaigns configuration-item for `text`.\n   *\n   * `text` is an unformatted string\n   *\n   * @class amc-campaigns/configuration-item/text\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    tagName: '',\n    /**\n     * The configuration-item\n     *\n     * @property item\n     * @default null\n     */\n    item: null,\n    /**\n     * Whether its read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * The initial value\n     *\n     * @property _initialValue\n     * @private\n     */\n    _initialValue: null,\n    init() {\n      this._super(...arguments);\n      this._initialValue = this.item && this.item.value;\n    },\n    /**\n     * Save event\n     *\n     * @function onSave\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onSave() {},\n    /**\n     * Close event\n     *\n     * @function onClose\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onClose() {},\n    /**\n     * Save wrapper to reset item.value on error\n     */\n    _save: (0, _emberConcurrency.task)(function* () {\n      const tasks = [];\n      try {\n        tasks.push(this.onSave());\n        tasks.push((0, _emberConcurrency.timeout)(400));\n        yield (0, _emberConcurrency.all)(tasks);\n      } catch (error) {\n        // reset\n        (0, _object.set)(this, 'item.value', this._initialValue);\n      }\n    })\n  });\n});","define(\"additive-mc/components/amc-campaign/configuration-item/time\", [\"exports\", \"@ember/component\", \"rsvp\", \"@ember/utils\", \"@ember/object\", \"ember-concurrency\"], function (_exports, _component, _rsvp, _utils, _object, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which handles campaigns configuration-item for `time`.\n   *\n   * `time` is a string with HOURS-MINUTES: `8:30` format HH:MM\n   *\n   * @class amc-campaigns/configuration-item/time\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    tagName: '',\n    /**\n     * The configuration-item\n     *\n     * @property item\n     * @default null\n     */\n    item: null,\n    /**\n     * Whether its read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * Whether the content is valid\n     *\n     * @property _contentIsValid\n     * @private\n     */\n    _contentIsValid: false,\n    /**\n     * The initial value\n     *\n     * @property _initialValue\n     * @private\n     */\n    _initialValue: null,\n    init() {\n      this._super(...arguments);\n      (0, _utils.isPresent)(this.item.value) && (0, _object.set)(this, '_contentIsValid', true);\n      this._initialValue = this.item && this.item.value;\n    },\n    /**\n     * Save event\n     *\n     * @function onSave\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onSave() {},\n    /**\n     * Close event\n     *\n     * @function onClose\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onClose() {},\n    /**\n     * Save wrapper to reset item.value on error\n     */\n    _save: (0, _emberConcurrency.task)(function* () {\n      const tasks = [];\n      try {\n        tasks.push(this.onSave());\n        tasks.push((0, _emberConcurrency.timeout)(400));\n        yield (0, _emberConcurrency.all)(tasks);\n      } catch (error) {\n        // reset\n        (0, _object.set)(this, 'item.value', this._initialValue);\n      }\n    }),\n    actions: {\n      onSave(parentChangeset) {\n        /* Execute and save */\n        parentChangeset.execute();\n        this.onSave(parentChangeset);\n      },\n      onTimePickerChange(parentChangeset, date) {\n        if (!(date instanceof Date)) {\n          /* Update changeset */\n          parentChangeset.set('value', null);\n          return;\n        }\n        let [hours, minutes] = [date.getHours(), date.getMinutes()];\n        /* ensure it uses 2 digits (1 -> 01) */\n        hours = ('0' + hours).slice(-2);\n        minutes = ('0' + minutes).slice(-2);\n\n        /* Update changeset */\n        parentChangeset.set('value', `${hours}:${minutes}`);\n      },\n      beforeSave() {\n        return (0, _rsvp.resolve)(this._contentIsValid);\n      }\n    }\n  });\n});","define(\"additive-mc/components/amc-campaign/configuration-item/timespan\", [\"exports\", \"@ember/component\", \"@ember/object\", \"additive-mc/utils/iso-duration\", \"additive-mc/validations/iso-duration\", \"@ember/service\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-concurrency\"], function (_exports, _component, _object, _isoDuration, _isoDuration2, _service, _emberChangeset, _emberChangesetValidations, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which handles campaigns configuration-item for `timespan`.\n   *\n   * `timespan` is a iso8601-duration value which indicates a duration\n   *\n   * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n   *\n   * @class amc-campaigns/configuration-item/timespan\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    intl: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    tagName: '',\n    /**\n     * The configuration-item\n     *\n     * @property item\n     * @default null\n     */\n    item: null,\n    /**\n     * Whether its read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * The internal changeset of the item\n     *\n     * @property _durationChangeset\n     * @default null\n     * @private\n     */\n    _durationChangeset: null,\n    /**\n     * Changesets underlying object;\n     *\n     * @property _resource\n     * @default null\n     * @private\n     */\n    _resource: null,\n    /**\n     * Save event\n     *\n     * @function onSave\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onSave() {},\n    init() {\n      this._super(...arguments);\n      let resource = {\n        years: 0,\n        months: 0,\n        days: 0,\n        hours: 0,\n        minutes: 0,\n        seconds: 0\n      };\n      if (this.item && this.item.value) {\n        resource = Object.assign(resource, (0, _isoDuration.parse)(this.item.value));\n      }\n      const validation = (0, _isoDuration2.isoDurationValidation)(this.intl);\n      const changeset = new _emberChangeset.default(resource, (0, _emberChangesetValidations.default)(validation), validation);\n      (0, _object.setProperties)(this, {\n        _durationChangeset: changeset,\n        _resource: resource\n      });\n    },\n    /**\n     * Build duration string, sets it to parents changeset and trigger save\n     *\n     * @function _save\n     * @type {Task}\n     * @param {Changeset} parentChangeset The changeset of the `with-modal` hoc\n     * @private\n     */\n    _save: (0, _emberConcurrency.task)(function* (parentChangeset) {\n      const tasks = [];\n      const snapshot = this.item.value;\n      try {\n        yield this._durationChangeset.validate();\n        if (this._durationChangeset.get('isInvalid')) {\n          return;\n        }\n\n        // Will update the underlying object, which in this case is `this._resource`\n        this._durationChangeset.execute();\n        parentChangeset.set('value', (0, _isoDuration.toString)(this._resource));\n        parentChangeset.execute();\n        tasks.push(this.onSave());\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        yield (0, _emberConcurrency.all)(tasks);\n      } catch (error) {\n        // reset\n        (0, _object.set)(this, 'item.value', snapshot);\n      }\n    })\n  });\n});","define(\"additive-mc/components/amc-campaign/configuration-item/utm-parameter\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@ember/object\", \"@glimmer/component\", \"ember-concurrency\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\", \"@ember/service\", \"additive-mc/utils/widget-constants\"], function (_exports, _component, _templateFactory, _object, _component2, _emberConcurrency, _emberArgTypes, _propTypes, _tracking, _service, _widgetConstants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <AmcCampaign::ConfigurationItem::WithModal\n    @onSave={{perform this.save}}\n    @beforeSave={{this.beforeSave}}\n    @onClose={{this.onClose}}\n    @item={{this.item}}\n    @isReadOnly={{this.isReadOnly}}\n    as |modal|\n  >\n    <modal.content>\n      {{#if modal.changeset.description}}\n        <div class=\"description\">\n          {{modal.changeset.description}}\n        </div>\n      {{/if}}\n  \n      {{#each this._utmParameters as |entry index|}}\n        {{#if (gt index 0)}}\n          <div class=\"bt b--black-10 mv2\" />\n        {{/if}}\n        <UiSelect\n          @classNames=\"w-100\"\n          @label={{t \"components.amc-campaign-configuration.utm-parameter.fields.type\"}}\n          @selected={{get (array-find entry.type this.utmOptions) \"label\"}}\n          @options={{this.utmOptions}}\n          @onChange={{fn this.setUtmType index}}\n          @isReadOnly={{amc-or modal.isLoading this.isReadOnly}}\n          as |optionComponent option|\n        >\n          <optionComponent.item @value={{option.value}}>\n            {{option.label}}\n          </optionComponent.item>\n        </UiSelect>\n  \n        <UiInput\n          @classNames=\"w-100\"\n          @label={{t \"components.amc-campaign-configuration.utm-parameter.fields.parameter\"}}\n          @value={{entry.value}}\n          @onChange={{fn this.setUtmValue index}}\n          @isReadOnly={{amc-or modal.isLoading this.isReadOnly}}\n        />\n  \n        {{#unless this.isReadOnly}}\n          <UiActionButton\n            @label={{t \"global.actions.delete\"}}\n            @isTertiary={{true}}\n            @onClick={{fn this.removeUtmParameter index}}\n            @isDisabled={{amc-or\n              modal.isLoading\n              (and (eq this._utmParameters.length 1) (not entry.type) (not entry.value))\n            }}\n          />\n        {{/unless}}\n      {{/each}}\n  \n      {{#unless this.isReadOnly}}\n        <div class=\"bt b--black-10 mv2\" />\n        <UiButton\n          @label={{t \"components.amc-campaign-configuration.utm-parameter.actions.addParameter\"}}\n          @isSecondary={{true}}\n          @onClick={{this.addUtmParameter}}\n          @isDisabled={{modal.isLoading}}\n        />\n      {{/unless}}\n    </modal.content>\n  </AmcCampaign::ConfigurationItem::WithModal>\n  */\n  {\n    \"id\": \"6JSfNgku\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onSave\\\",\\\"@beforeSave\\\",\\\"@onClose\\\",\\\"@item\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0,[\\\"save\\\"]]],null],[30,0,[\\\"beforeSave\\\"]],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"changeset\\\",\\\"description\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"description\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"changeset\\\",\\\"description\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"_utmParameters\\\"]]],null]],null],null,[[[41,[28,[37,5],[[30,3],0],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"bt b--black-10 mv2\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\",\\\"@isReadOnly\\\"],[\\\"w-100\\\",[28,[37,7],[\\\"components.amc-campaign-configuration.utm-parameter.fields.type\\\"],null],[28,[37,8],[[28,[37,9],[[30,2,[\\\"type\\\"]],[30,0,[\\\"utmOptions\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"utmOptions\\\"]],[28,[37,10],[[30,0,[\\\"setUtmType\\\"]],[30,3]],null],[28,[37,11],[[30,1,[\\\"isLoading\\\"]],[30,0,[\\\"isReadOnly\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,5,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,5,[\\\"label\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[4,5]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,12],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\",\\\"@isReadOnly\\\"],[\\\"w-100\\\",[28,[37,7],[\\\"components.amc-campaign-configuration.utm-parameter.fields.parameter\\\"],null],[30,2,[\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"setUtmValue\\\"]],[30,3]],null],[28,[37,11],[[30,1,[\\\"isLoading\\\"]],[30,0,[\\\"isReadOnly\\\"]]],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@label\\\",\\\"@isTertiary\\\",\\\"@onClick\\\",\\\"@isDisabled\\\"],[[28,[37,7],[\\\"global.actions.delete\\\"],null],true,[28,[37,10],[[30,0,[\\\"removeUtmParameter\\\"]],[30,3]],null],[28,[37,11],[[30,1,[\\\"isLoading\\\"]],[28,[37,15],[[28,[37,16],[[30,0,[\\\"_utmParameters\\\",\\\"length\\\"]],1],null],[28,[37,17],[[30,2,[\\\"type\\\"]]],null],[28,[37,17],[[30,2,[\\\"value\\\"]]],null]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[2,3]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"bt b--black-10 mv2\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\",\\\"@isDisabled\\\"],[[28,[37,7],[\\\"components.amc-campaign-configuration.utm-parameter.actions.addParameter\\\"],null],true,[30,0,[\\\"addUtmParameter\\\"]],[30,1,[\\\"isLoading\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\",\\\"entry\\\",\\\"index\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"perform\\\",\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"gt\\\",\\\"ui-select\\\",\\\"t\\\",\\\"get\\\",\\\"array-find\\\",\\\"fn\\\",\\\"amc-or\\\",\\\"ui-input\\\",\\\"unless\\\",\\\"ui-action-button\\\",\\\"and\\\",\\\"eq\\\",\\\"not\\\",\\\"ui-button\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/configuration-item/utm-parameter.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Component which handles campaigns configuration-item for `utm-parameter`.\n   *\n   * Supports multiple UTM parameter entries, each with a type (campaign, medium, source)\n   * and a value string.\n   *\n   * @class amc-campaigns/configuration-item/utm-parameter\n   * @module amc-campaigns\n   */\n  let AmcCampaignConfigurationItemUtmParameterComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _dec5 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    try {\n      tasks.push(this.onSave());\n      tasks.push((0, _emberConcurrency.timeout)(400));\n      yield (0, _emberConcurrency.all)(tasks);\n    } catch (error) {\n      // reset\n      (0, _object.set)(this, 'item.value', this.initialValue);\n    }\n  }), _class = class AmcCampaignConfigurationItemUtmParameterComponent extends _component2.default {\n    constructor() {\n      var _this$item;\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      /**\n       * The configuration-item\n       *\n       * @argument item\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor2, this);\n      /**\n       * Whether its read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor3, this);\n      /**\n       * The initial value (used for reset on error)\n       *\n       * @property initialValue\n       * @type {Array}\n       * @private\n       */\n      _initializerDefineProperty(this, \"initialValue\", _descriptor4, this);\n      /**\n       * Internal tracked array of UTM parameter entries\n       *\n       * @property _utmParameters\n       * @type {Array}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_utmParameters\", _descriptor5, this);\n      /**\n       * the function that is executed when the dialog is closed\n       *\n       * @argument onSave\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onSave\", _descriptor6, this);\n      /**\n       * the function that is executed when the dialog is closed\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor7, this);\n      _initializerDefineProperty(this, \"save\", _descriptor8, this);\n      this.utmOptions = _widgetConstants.UTM_OPTIONS.filter(value => value !== 'none').map(value => ({\n        label: this.intl.t(`components.amc-campaign-configuration.utm-parameter.options.${value}`),\n        value\n      }));\n      this.initialValue = this.item && this.item.value;\n      if (Array.isArray((_this$item = this.item) === null || _this$item === void 0 ? void 0 : _this$item.value) && this.item.value.length > 0) {\n        this._utmParameters = this.item.value.map(entry => _objectSpread({}, entry));\n      } else {\n        this._utmParameters = [{\n          type: null,\n          value: null\n        }];\n      }\n    }\n\n    /**\n     * Adds a new empty UTM parameter entry\n     *\n     * @function addUtmParameter\n     */\n    addUtmParameter() {\n      this._utmParameters = [...this._utmParameters, {\n        type: null,\n        value: null\n      }];\n    }\n\n    /**\n     * Removes a UTM parameter entry at the given index\n     *\n     * @function removeUtmParameter\n     * @param {Number} index\n     */\n    removeUtmParameter(index) {\n      if (this._utmParameters.length === 1) {\n        this._utmParameters = [{\n          type: null,\n          value: null\n        }];\n      } else {\n        this._utmParameters = this._utmParameters.filter((_, i) => i !== index);\n      }\n    }\n\n    /**\n     * Updates the type of a UTM parameter entry at the given index\n     *\n     * @function setUtmType\n     * @param {Number} index\n     * @param {String} typeValue\n     */\n    setUtmType(index, typeValue) {\n      this._utmParameters = this._utmParameters.map((entry, i) => i === index ? _objectSpread(_objectSpread({}, entry), {}, {\n        type: typeValue || null\n      }) : entry);\n    }\n\n    /**\n     * Updates the value of a UTM parameter entry at the given index\n     *\n     * @function setUtmValue\n     * @param {Number} index\n     * @param {String} value\n     */\n    setUtmValue(index, value) {\n      this._utmParameters[index].value = value;\n    }\n\n    /**\n     * the function that is executed before save\n     * Filters out incomplete entries and sets the cleaned array on the changeset\n     *\n     * @function beforeSave\n     * @param {Changeset} changeset\n     */\n    beforeSave(changeset) {\n      this._utmParameters = this._utmParameters.map(entry => _objectSpread({}, entry));\n      const filtered = this._utmParameters.filter(entry => entry.type && entry.value);\n      changeset.set('value', filtered);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"initialValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_utmParameters\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"addUtmParameter\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addUtmParameter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeUtmParameter\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeUtmParameter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setUtmType\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setUtmType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setUtmValue\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setUtmValue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"beforeSave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"beforeSave\"), _class.prototype), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"save\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignConfigurationItemUtmParameterComponent);\n});","define(\"additive-mc/components/amc-campaign/configuration-item/widget-display-variant\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@ember/object\", \"@glimmer/component\", \"ember-concurrency\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\", \"@ember/service\", \"additive-mc/utils/widget-constants\"], function (_exports, _component, _templateFactory, _object, _component2, _emberConcurrency, _emberArgTypes, _propTypes, _tracking, _service, _widgetConstants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <AmcCampaign::ConfigurationItem::WithModal\n    @onSave={{perform this.save}}\n    @onClose={{this.onClose}}\n    @item={{this.item}}\n    @isReadOnly={{this.isReadOnly}} as |modal|\n  >\n    {{#if modal.changeset.description}}\n      <modal.content>\n        <div class=\"description\">\n          {{modal.changeset.description}}\n        </div>\n      </modal.content>\n    {{/if}}\n    <modal.content>\n      <UiSelect\n        @classNames=\"w-100\"\n        @label={{t \"components.amc-campaign-configuration.widget-display-variant.fields.size\"}}\n        @initialValue={{modal.changeset.value}}\n        @selected={{get (array-find modal.changeset.value.size this.sizeOptions) \"label\"}}\n        @options={{this.sizeOptions}}\n        @onChange={{fn this.setSize modal.changeset}}\n        @isReadOnly={{amc-or modal.isLoading this.isReadOnly}} as |optionComponent option|\n      >\n        <optionComponent.item @value={{option.value}}>\n          {{option.label}}\n        </optionComponent.item>\n      </UiSelect>\n    </modal.content>\n  \n    <modal.content>\n      <UiSelect\n        @classNames=\"w-100\"\n        @label={{t \"components.amc-campaign-configuration.widget-display-variant.fields.position\"}}\n        @initialValue={{modal.changeset.value}}\n        @selected={{get\n          (array-find\n            modal.changeset.value.position (get this.positionOptions modal.changeset.value.size)\n          )\n          \"label\"\n        }}\n        @options={{get this.positionOptions modal.changeset.value.size}}\n        @onChange={{fn this.setPosition modal.changeset}}\n        @isReadOnly={{amc-or modal.isLoading this.isReadOnly}} as |optionComponent option|\n      >\n        <optionComponent.item @value={{option.value}}>\n          {{option.label}}\n        </optionComponent.item>\n      </UiSelect>\n    </modal.content>\n  </AmcCampaign::ConfigurationItem::WithModal>\n  */\n  {\n    \"id\": \"l5C99X9i\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onSave\\\",\\\"@onClose\\\",\\\"@item\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0,[\\\"save\\\"]]],null],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"changeset\\\",\\\"description\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"description\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"changeset\\\",\\\"description\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\",\\\"@isReadOnly\\\"],[\\\"w-100\\\",[28,[37,4],[\\\"components.amc-campaign-configuration.widget-display-variant.fields.size\\\"],null],[30,1,[\\\"changeset\\\",\\\"value\\\"]],[28,[37,5],[[28,[37,6],[[30,1,[\\\"changeset\\\",\\\"value\\\",\\\"size\\\"]],[30,0,[\\\"sizeOptions\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"sizeOptions\\\"]],[28,[37,7],[[30,0,[\\\"setSize\\\"]],[30,1,[\\\"changeset\\\"]]],null],[28,[37,8],[[30,1,[\\\"isLoading\\\"]],[30,0,[\\\"isReadOnly\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,3,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,3,[\\\"label\\\"]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2,3]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\",\\\"@isReadOnly\\\"],[\\\"w-100\\\",[28,[37,4],[\\\"components.amc-campaign-configuration.widget-display-variant.fields.position\\\"],null],[30,1,[\\\"changeset\\\",\\\"value\\\"]],[28,[37,5],[[28,[37,6],[[30,1,[\\\"changeset\\\",\\\"value\\\",\\\"position\\\"]],[28,[37,5],[[30,0,[\\\"positionOptions\\\"]],[30,1,[\\\"changeset\\\",\\\"value\\\",\\\"size\\\"]]],null]],null],\\\"label\\\"],null],[28,[37,5],[[30,0,[\\\"positionOptions\\\"]],[30,1,[\\\"changeset\\\",\\\"value\\\",\\\"size\\\"]]],null],[28,[37,7],[[30,0,[\\\"setPosition\\\"]],[30,1,[\\\"changeset\\\"]]],null],[28,[37,8],[[30,1,[\\\"isLoading\\\"]],[30,0,[\\\"isReadOnly\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,4,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,5,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,5,[\\\"label\\\"]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[4,5]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"perform\\\",\\\"if\\\",\\\"ui-select\\\",\\\"t\\\",\\\"get\\\",\\\"array-find\\\",\\\"fn\\\",\\\"amc-or\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/configuration-item/widget-display-variant.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Component which handles campaigns configuration-item for `widget-display-variant`.\n   *\n   * @class amc-campaigns/configuration-item/widget-display-variant\n   * @module amc-campaigns\n   */\n  let AmcCampaignConfigurationItemWidgetDisplayVariantComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _dec5 = (0, _emberConcurrency.task)(function* () {\n    try {\n      yield this.onSave();\n    } catch (error) {\n      this.item.value = this.initialValue;\n    }\n  }), _class = class AmcCampaignConfigurationItemWidgetDisplayVariantComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      /**\n       * The configuration-item\n       *\n       * @argument item\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor2, this);\n      /**\n       * Whether its read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor3, this);\n      /**\n       * The initial value\n       *\n       * @property initialValue\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"initialValue\", _descriptor4, this);\n      /**\n       * The internal size options\n       *\n       * @property sizeOptions\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"sizeOptions\", _descriptor5, this);\n      /**\n       * The internal position options\n       *\n       * @property positionOptions\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"positionOptions\", _descriptor6, this);\n      _initializerDefineProperty(this, \"onSave\", _descriptor7, this);\n      _initializerDefineProperty(this, \"onClose\", _descriptor8, this);\n      _initializerDefineProperty(this, \"save\", _descriptor9, this);\n      this.sizeOptions = _widgetConstants.SIZE_OPTIONS.map(value => ({\n        label: this.intl.t(`components.amc-campaign-configuration.widget-display-variant.sizeOptions.${value}`),\n        value\n      }));\n      this.positionOptions = Object.fromEntries(Object.entries(_widgetConstants.POSITION_OPTIONS).map(_ref2 => {\n        let [key, values] = _ref2;\n        const modifiedValues = values.map(value => ({\n          label: this.intl.t(`components.amc-campaign-configuration.widget-display-variant.positionOptions.${value}`),\n          value\n        }));\n        return [key, modifiedValues];\n      }));\n      this.initialValue = this.item && this.item.value;\n      if (!this.item.value) {\n        (0, _object.set)(this, 'item.value', {\n          size: this.sizeOptions[0].value,\n          position: _widgetConstants.POSITION_OPTIONS[this.sizeOptions[0].value][0]\n        });\n      }\n    }\n    setSize(changeset, value) {\n      changeset.set('value.size', value);\n      changeset.set('value.position', _widgetConstants.POSITION_OPTIONS[value][0]);\n      changeset.execute();\n    }\n    setPosition(changeset, value) {\n      changeset.set('value.position', value);\n      changeset.execute();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"initialValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"sizeOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"positionOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"save\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setSize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setSize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setPosition\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setPosition\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignConfigurationItemWidgetDisplayVariantComponent);\n});","define(\"additive-mc/components/amc-campaign/configuration-item/widget-trigger-event\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@ember/object\", \"@glimmer/component\", \"ember-concurrency\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\", \"@ember/service\", \"additive-mc/validations/campaign-configurations\", \"additive-mc/utils/widget-constants\"], function (_exports, _component, _templateFactory, _object, _component2, _emberConcurrency, _emberArgTypes, _propTypes, _tracking, _service, _campaignConfigurations, _widgetConstants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <AmcCampaign::ConfigurationItem::WithModal\n    @onSave={{perform this.save}}\n    @beforeSave={{this.beforeSave}}\n    @onClose={{this.onClose}}\n    @item={{this.item}}\n    @validation={{this.validation}}\n    @isReadOnly={{this.isReadOnly}} as |modal|\n  >\n    {{#if modal.changeset.description}}\n      <modal.content>\n        <div class=\"mb3\">\n          {{modal.changeset.description}}\n        </div>\n      </modal.content>\n    {{/if}}\n    <modal.content>\n      <UiSelect\n        @classNames=\"w-100\"\n        @label={{t \"components.amc-campaign-configuration.widget-trigger-event.fields.rule\"}}\n        @initialValue={{modal.changeset.value.trigger}}\n        @selected={{get (array-find modal.changeset.value.trigger this.eventOptions) \"label\"}}\n        @options={{this.eventOptions}}\n        @onChange={{fn (mut modal.changeset.value.trigger)}}\n        @isReadOnly={{amc-or modal.isLoading this.isReadOnly}} as |optionComponent option|\n      >\n        <optionComponent.item @value={{option.value}}>\n          {{option.label}}\n        </optionComponent.item>\n      </UiSelect>\n    </modal.content>\n  \n    {{#if this.showAdditionalValueInput}}\n      <modal.content>\n        <UiInput\n          @classNames=\"w-100\"\n          @label={{t\n            (concat\n              \"components.amc-campaign-configuration.widget-trigger-event.fields.\"\n              modal.changeset.value.trigger\n            )\n          }}\n          @value={{modal.changeset.value.value}}\n          @isDisabled={{amc-or modal.isLoading this.isReadOnly}}\n          @type=\"Number\"\n          @errorMessage={{modal.changeset.error.value.value.validation}} as |input|\n        >\n          <input.right @class=\"secondary\">\n            {{t\n              (concat\n                \"components.amc-campaign-configuration.widget-trigger-event.unit.\"\n                modal.changeset.value.trigger\n              )\n            }}\n          </input.right>\n        </UiInput>\n      </modal.content>\n    {{/if}}\n  </AmcCampaign::ConfigurationItem::WithModal>\n  */\n  {\n    \"id\": \"QU7ZesNE\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onSave\\\",\\\"@beforeSave\\\",\\\"@onClose\\\",\\\"@item\\\",\\\"@validation\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0,[\\\"save\\\"]]],null],[30,0,[\\\"beforeSave\\\"]],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"validation\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"changeset\\\",\\\"description\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mb3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"changeset\\\",\\\"description\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\",\\\"@isReadOnly\\\"],[\\\"w-100\\\",[28,[37,4],[\\\"components.amc-campaign-configuration.widget-trigger-event.fields.rule\\\"],null],[30,1,[\\\"changeset\\\",\\\"value\\\",\\\"trigger\\\"]],[28,[37,5],[[28,[37,6],[[30,1,[\\\"changeset\\\",\\\"value\\\",\\\"trigger\\\"]],[30,0,[\\\"eventOptions\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"eventOptions\\\"]],[28,[37,7],[[28,[37,8],[[30,1,[\\\"changeset\\\",\\\"value\\\",\\\"trigger\\\"]]],null]],null],[28,[37,9],[[30,1,[\\\"isLoading\\\"]],[30,0,[\\\"isReadOnly\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,3,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,3,[\\\"label\\\"]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2,3]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showAdditionalValueInput\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@value\\\",\\\"@isDisabled\\\",\\\"@type\\\",\\\"@errorMessage\\\"],[\\\"w-100\\\",[28,[37,4],[[28,[37,11],[\\\"components.amc-campaign-configuration.widget-trigger-event.fields.\\\",[30,1,[\\\"changeset\\\",\\\"value\\\",\\\"trigger\\\"]]],null]],null],[30,1,[\\\"changeset\\\",\\\"value\\\",\\\"value\\\"]],[28,[37,9],[[30,1,[\\\"isLoading\\\"]],[30,0,[\\\"isReadOnly\\\"]]],null],\\\"Number\\\",[30,1,[\\\"changeset\\\",\\\"error\\\",\\\"value\\\",\\\"value\\\",\\\"validation\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"right\\\"]],null,[[\\\"@class\\\"],[\\\"secondary\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[[28,[37,11],[\\\"components.amc-campaign-configuration.widget-trigger-event.unit.\\\",[30,1,[\\\"changeset\\\",\\\"value\\\",\\\"trigger\\\"]]],null]],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[4]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"modal\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"input\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"perform\\\",\\\"if\\\",\\\"ui-select\\\",\\\"t\\\",\\\"get\\\",\\\"array-find\\\",\\\"fn\\\",\\\"mut\\\",\\\"amc-or\\\",\\\"ui-input\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/configuration-item/widget-trigger-event.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Component which handles campaigns configuration-item for `widget-trigger-event`.\n   *\n   * @class amc-campaigns/configuration-item/widget-trigger-event\n   * @module amc-campaigns\n   */\n  let AmcCampaignConfigurationItemWidgetTriggerEventComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec3 = (0, _object.computed)('item.value.trigger'), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _dec6 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    try {\n      tasks.push(this.onSave());\n      tasks.push((0, _emberConcurrency.timeout)(400));\n      yield (0, _emberConcurrency.all)(tasks);\n    } catch (error) {\n      // reset\n      (0, _object.set)(this, 'item.value', this.initialValue);\n    }\n  }), _class = class AmcCampaignConfigurationItemWidgetTriggerEventComponent extends _component2.default {\n    /**\n     * true, if onScroll or time trigger is selected\n     *\n     * @computed showAdditionalValueInput\n     * @type {Boolean}\n     */\n    get showAdditionalValueInput() {\n      return this.item.value.trigger === 'on-scroll' || this.item.value.trigger === 'on-view';\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      /**\n       * The configuration-item\n       *\n       * @argument item\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor2, this);\n      /**\n       * Whether its read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor3, this);\n      /**\n       * The initial value\n       *\n       * @argument initialValue\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"initialValue\", _descriptor4, this);\n      /**\n       * the function that is executed after save\n       *\n       * @argument onSave\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onSave\", _descriptor5, this);\n      /**\n       * the function that is executed when the dialog is closed\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor6, this);\n      _initializerDefineProperty(this, \"save\", _descriptor7, this);\n      this.eventOptions = _widgetConstants.EVENT_OPTIONS.map(value => ({\n        label: this.intl.t(`components.amc-campaign-configuration.widget-trigger-event.options.${value}`),\n        value\n      }));\n      this.initialValue = this.item && this.item.value;\n      this.validation = _campaignConfigurations.triggerEventValidation;\n    }\n\n    /**\n     * the function that is executed before save\n     *\n     * @function beforeSave\n     * @param changeset\n     */\n    beforeSave(changeset) {\n      let value = this.item.value.value;\n      if (typeof value === 'number') {\n        value = value.toString();\n      }\n      changeset.set('value.value', value);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"initialValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"showAdditionalValueInput\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"showAdditionalValueInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"beforeSave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"beforeSave\"), _class.prototype), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"save\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignConfigurationItemWidgetTriggerEventComponent);\n});","define(\"additive-mc/components/amc-campaign/configuration-item/with-modal\", [\"exports\", \"@ember/component\", \"ember-changeset\", \"ember-changeset-validations\", \"@ember/object\", \"ember-concurrency\", \"@ember/service\", \"rsvp\", \"lodash.clonedeep\", \"lodash.isequal\"], function (_exports, _component, _emberChangeset, _emberChangesetValidations, _object, _emberConcurrency, _service, _rsvp, _lodash, _lodash2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * HOC which renders a modal\n   * and provides basic logic which is needed for the modal\n   * like changeset, triggern save and stuff\n   *\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    uiToast: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    tagName: '',\n    /**\n     * The childs changeset which will be validated as well\n     *\n     * @property childChangeset\n     * @default null\n     */\n    childChangeset: null,\n    /**\n     * The description\n     *\n     * @property description\n     * @default null\n     */\n    description: null,\n    /**\n     * The configuration-item\n     *\n     * @property item\n     * @default null\n     */\n    item: null,\n    /**\n     * Whether its read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * Validation for the changeset\n     *\n     * @property item\n     * @default null\n     */\n    validation: null,\n    /**\n     * The internal changeset of the item\n     *\n     * @property _changeset\n     * @default null\n     * @private\n     */\n    _changeset: null,\n    /**\n     * Whether discard changes dialog should be open\n     *\n     * @property _isDiscardChangesDialog\n     * @default null\n     * @private\n     */\n    _isDiscardChangesDialog: false,\n    /**\n     * The initial configuration-item\n     *\n     * @property item\n     * @default null\n     * @private\n     */\n    _initialItem: null,\n    /**\n     * Computed description, priority:\n     *\n     * - this.args.item.description\n     * - this.args.description\n     * - ''\n     *\n     * @computed _description\n     * @default ''\n     * @private\n     */\n    _description: (0, _object.computed)('item.description', 'description', {\n      get() {\n        if (this.item && this.item.description) {\n          return this.item.description;\n        }\n        return this.description || '';\n      }\n    }),\n    /**\n     * Save event\n     *\n     * @function onSave\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onSave() {},\n    /**\n     * Close event\n     *\n     * @function onClose\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onClose() {},\n    /**\n     * Event which will be trigger before validation or saving.\n     * Aborting save is possible by returning a promise which resolves with false\n     *\n     * @function beforeSave\n     * @return {Promise}  Returns a promise\n     *                    which should resolve with a boolean\n     *                    whether it should continue saving or not\n     * @public\n     */\n    beforeSave() {\n      return (0, _rsvp.resolve)(true);\n    },\n    init() {\n      this._super(...arguments);\n      let changeset = null;\n      if (this.validation && typeof this.validation === 'function') {\n        const validation = this.validation(this.intl);\n        changeset = new _emberChangeset.default(this.item, (0, _emberChangesetValidations.default)(validation), validation);\n      } else {\n        changeset = new _emberChangeset.default(this.item);\n      }\n      (0, _object.set)(this, '_changeset', changeset);\n      (0, _object.set)(this, '_initialItem', (0, _lodash.default)(this.item));\n    },\n    /**\n     * Validate changeset and childChangeset and trigger onSave\n     *\n     * @function _save\n     * @type {Task}\n     * @param {Changeset} parentChangeset The changeset of the `with-modal` hoc\n     * @private\n     */\n    save: (0, _emberConcurrency.task)(function* () {\n      const changeset = this._changeset;\n      const shouldContinue = yield this.beforeSave(changeset);\n      if (shouldContinue === false) {\n        return;\n      }\n\n      /* When childChangeset is present we additionally validate it */\n      const childChangeset = this.childChangeset;\n      if (childChangeset) {\n        yield childChangeset.validate();\n        if (childChangeset.get('isInvalid')) {\n          return;\n        }\n      }\n      yield changeset.validate();\n      if (changeset.get('isInvalid')) {\n        return;\n      }\n      changeset.execute();\n      yield (0, _emberConcurrency.all)([this.onSave(changeset), (0, _emberConcurrency.timeout)(400)]);\n      yield this.onClose();\n      return (0, _rsvp.resolve)();\n    }),\n    actions: {\n      onClose() {\n        const tasks = [];\n        tasks.push(this._changeset.validate());\n        this.childChangeset && tasks.push(this.childChangeset.validate());\n        return (0, _emberConcurrency.all)(tasks).then(() => {\n          /* Validate changeset and child changeset if present */\n          if (this._changeset.get('isPristine') && (!this.childChangeset || this.childChangeset.get('isPristine'))) {\n            if (this.item.value && !(0, _lodash2.default)(this.item.value, this._initialItem.value)) {\n              (0, _object.set)(this, '_isDiscardChangesDialog', true);\n              return (0, _rsvp.resolve)();\n            }\n            return this.onClose(this._changeset);\n          } else {\n            (0, _object.set)(this, '_isDiscardChangesDialog', true);\n            return (0, _rsvp.resolve)();\n          }\n        });\n      },\n      confirmDiscard() {\n        if (this.item.value && !(0, _lodash2.default)(this.item.value, this._initialItem.value)) {\n          (0, _object.set)(this, 'item.value', this._initialItem.value);\n          (0, _object.set)(this, '_changeset', new _emberChangeset.default(this._initialItem));\n        }\n        (0, _object.set)(this, '_isDiscardChangesDialog', false);\n        return this.onClose(this._changeset);\n      }\n    }\n  });\n});","define(\"additive-mc/components/amc-campaign/configuration-item/yeardate\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"ember-concurrency\", \"ember-changeset\"], function (_exports, _component, _object, _service, _emberConcurrency, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which handles campaigns configuration-item for `yeardate`.\n   *\n   * `yeardate` is a string with MONTH-DATE: `08-11` format MM-TT\n   *\n   * @class amc-campaigns/configuration-item/yeardate\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    intl: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    tagName: '',\n    /**\n     * The configuration-item\n     *\n     * @property item\n     * @default null\n     */\n    item: null,\n    /**\n     * Whether its read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * Internal changeset\n     *\n     * @property _dayOptions\n     * @default null\n     * @private\n     */\n    _changeset: null,\n    /**\n     * Select options for day\n     *\n     * @property _dayOptions\n     * @default null\n     * @private\n     */\n    _dayOptions: null,\n    /**\n     * Select options for month\n     *\n     * @property _dayOptions\n     * @default null\n     * @private\n     */\n    _monthOptions: null,\n    /**\n     * Save event\n     *\n     * @function onSave\n     * @return {Promise} Returns a promise\n     * @public\n     */\n    onSave() {},\n    init() {\n      this._super(...arguments);\n      let resource = {};\n      if (this.item && this.item.value) {\n        const [month, day] = this.item.value.split('-');\n        resource = {\n          month,\n          day\n        };\n      } else {\n        resource = {\n          month: 1,\n          day: 1\n        };\n      }\n      const changeset = new _emberChangeset.default(resource);\n      (0, _object.setProperties)(this, {\n        _dayOptions: new Array(31).fill(null).map((_, index) => {\n          return {\n            value: index + 1\n          };\n        }),\n        _monthOptions: new Array(12).fill(null).map((_, index) => {\n          return {\n            value: index + 1\n          };\n        }),\n        _changeset: changeset\n      });\n    },\n    /**\n     * Build yeardate string, sets it to parents changeset and trigger save\n     *\n     * @function _save\n     * @type {Task}\n     * @param {Changeset} parentChangeset The changeset of the `with-modal` hoc\n     * @private\n     */\n    _save: (0, _emberConcurrency.task)(function* (parentChangeset) {\n      const tasks = [];\n      const snaphsot = this.item.value;\n      try {\n        yield this._changeset.validate();\n        this._changeset.execute();\n        let month = this._changeset.get('month');\n        let day = this._changeset.get('day');\n\n        /* ensure it uses 2 digits (1 -> 01) */\n        month = ('0' + month).slice(-2);\n        day = ('0' + day).slice(-2);\n        parentChangeset.set('value', `${month}-${day}`);\n        parentChangeset.execute();\n        tasks.push(this.onSave());\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        yield (0, _emberConcurrency.all)(tasks);\n      } catch (error) {\n        // reset\n        (0, _object.set)(this, 'item.value', snaphsot);\n      }\n    })\n  });\n});","define(\"additive-mc/components/amc-campaign/create-email-campaign-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-concurrency\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-changeset-validations/validators\", \"ember-arg-types\", \"prop-types\", \"additive-mc/utils/constants\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberConcurrency, _emberChangeset, _emberChangesetValidations, _validators, _emberArgTypes, _propTypes, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless this.showTitleDialog}}\n    <UiModal\n      @modalClassNames=\"h-auto\"\n      @title={{this.title}}\n      @size=\"md\"\n      @onClose={{this.close}}\n      as |m|\n    >\n      <m.header />\n      <m.content as |c|>\n        <c.body class=\"pb1\" {{did-insert this.didInsert}}>\n          <UiItemGroup as |group|>\n            {{#each this.availableCampaigns as |campaign|}}\n              <group.item\n                @icon={{campaign.icon}}\n                @isDisabled={{campaign.upgradeRequired}}\n                @onClick={{fn this.setCampaignType campaign}}\n                as |item|\n              >\n                <item.intro\n                  @title={{t (concat \"triggerEmailCampaigns.new.\" campaign.type \".title\")}}\n                  @description={{t\n                    (concat \"triggerEmailCampaigns.new.\" campaign.type \".description\")\n                  }}\n                />\n              </group.item>\n            {{/each}}\n          </UiItemGroup>\n          {{#if this.upgradeAvailable}}\n            <UiIconButton\n              @class=\"ml4 pl1\"\n              @icon=\"arrow-up-circle\"\n              @label={{t \"campaigns.upgradeMessage\"}}\n              @href=\"https://www.additive.eu/en/marketing-software/additive-marketing-automation-hotel?utm_source=additive_mc&utm_medium=banner&utm_campaign=upgrade\"\n              @target=\"_blank\"\n            />\n          {{/if}}\n        </c.body>\n      </m.content>\n    </UiModal>\n  {{/unless}}\n  \n  {{#if this.showTitleDialog}}\n    <UiModal\n      @title={{t (concat \"triggerEmailCampaigns.new.\" this.changeset.campaignType \".new\")}}\n      @onClose={{this.close}}\n      as |m|\n    >\n      <m.header />\n      <m.content as |c|>\n        <c.body class=\"pb1\">\n          <UiInput\n            @label={{t \"triggerEmailCampaigns.new.campaignTitle\"}}\n            @value={{this.changeset.campaignTitle}}\n            @errorMessage={{this.changeset.error.campaignTitle.validation}}\n            @isTouched={{this.isTouched}}\n          />\n        </c.body>\n      </m.content>\n      <m.footer>\n        <UiButton\n          @label={{t \"global.actions.save\"}}\n          @isSecondary={{true}}\n          @onClick={{perform this.addCampaign}}\n        />\n      </m.footer>\n    </UiModal>\n  {{/if}}\n  \n  <UiDiscardChanges @isOpen={{this.isDiscardChanges}} @onDiscard={{this.discardChanges}} />\n  */\n  {\n    \"id\": \"a/rWAf4O\",\n    \"block\": \"[[[41,[51,[30,0,[\\\"showTitleDialog\\\"]]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@modalClassNames\\\",\\\"@title\\\",\\\"@size\\\",\\\"@onClose\\\"],[\\\"h-auto\\\",[30,0,[\\\"title\\\"]],\\\"md\\\",[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"body\\\"]],[[24,0,\\\"pb1\\\"],[4,[38,2],[[30,0,[\\\"didInsert\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,3],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"availableCampaigns\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@icon\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[30,4,[\\\"icon\\\"]],[30,4,[\\\"upgradeRequired\\\"]],[28,[37,6],[[30,0,[\\\"setCampaignType\\\"]],[30,4]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"intro\\\"]],null,[[\\\"@title\\\",\\\"@description\\\"],[[28,[37,7],[[28,[37,8],[\\\"triggerEmailCampaigns.new.\\\",[30,4,[\\\"type\\\"]],\\\".title\\\"],null]],null],[28,[37,7],[[28,[37,8],[\\\"triggerEmailCampaigns.new.\\\",[30,4,[\\\"type\\\"]],\\\".description\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"        \\\"]],[3]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"upgradeAvailable\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@href\\\",\\\"@target\\\"],[\\\"ml4 pl1\\\",\\\"arrow-up-circle\\\",[28,[37,7],[\\\"campaigns.upgradeMessage\\\"],null],\\\"https://www.additive.eu/en/marketing-software/additive-marketing-automation-hotel?utm_source=additive_mc&utm_medium=banner&utm_campaign=upgrade\\\",\\\"_blank\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showTitleDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@title\\\",\\\"@onClose\\\"],[[28,[37,7],[[28,[37,8],[\\\"triggerEmailCampaigns.new.\\\",[30,0,[\\\"changeset\\\",\\\"campaignType\\\"]],\\\".new\\\"],null]],null],[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,6,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,6,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,7,[\\\"body\\\"]],[[24,0,\\\"pb1\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,7],[\\\"triggerEmailCampaigns.new.campaignTitle\\\"],null],[30,0,[\\\"changeset\\\",\\\"campaignTitle\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"campaignTitle\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[7]]]]],[1,\\\"\\\\n    \\\"],[8,[30,6,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,12],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,7],[\\\"global.actions.save\\\"],null],true,[28,[37,13],[[30,0,[\\\"addCampaign\\\"]]],null]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,14],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChanges\\\"]],[30,0,[\\\"discardChanges\\\"]]]],null]],[\\\"m\\\",\\\"c\\\",\\\"group\\\",\\\"campaign\\\",\\\"item\\\",\\\"m\\\",\\\"c\\\"],false,[\\\"unless\\\",\\\"ui-modal\\\",\\\"did-insert\\\",\\\"ui-item-group\\\",\\\"each\\\",\\\"-track-array\\\",\\\"fn\\\",\\\"t\\\",\\\"concat\\\",\\\"if\\\",\\\"ui-icon-button\\\",\\\"ui-input\\\",\\\"ui-button\\\",\\\"perform\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/create-email-campaign-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignCreateEmailCampaignDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _dec5 = (0, _emberConcurrency.task)(function* () {\n    try {\n      this.isTouched = true;\n      yield this.changeset.validate();\n      if (this.changeset.get('isInvalid')) {\n        return;\n      }\n      const modelRef = this.store.createRecord(this.modelName, {\n        title: this.changeset.get('campaignTitle'),\n        type: this.changeset.get('campaignType')\n      });\n      const tasks = [];\n      tasks.push(modelRef.save());\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const data = yield response;\n      yield this.uiFilter.addItem(this.filterName, data);\n      yield this.onClose();\n      this.router.transitionTo('instance.campaigns.trigger-email.detail.index', data.id);\n      this.uiToast.showToast({\n        title: this.intl.t('toast.success'),\n        type: 'success'\n      });\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class AmcCampaignCreateEmailCampaignDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n\n      // Set available campaigns\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor6, this);\n      /**\n       * the name of the model\n       *\n       * @argument modelName\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"modelName\", _descriptor7, this);\n      /**\n       * the name of the filter\n       *\n       * @argument filterName\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"filterName\", _descriptor8, this);\n      /**\n       * the title of the dialog\n       *\n       * @argument title\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"title\", _descriptor9, this);\n      /**\n       * the changeset for the model\n       *\n       * @property changeset\n       * @type {Changeset}\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor10, this);\n      /**\n       * the created model\n       *\n       * @argument model\n       * @type {DS.Model}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor11, this);\n      /**\n       * whether the discard changes dialog is open\n       *\n       * @property isDiscardChanges\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChanges\", _descriptor12, this);\n      /**\n       * Whether the campaign-name input is touched\n       *\n       * @argument isTouched\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor13, this);\n      /**\n       * wheter the dialog with the title input should be shown.\n       *\n       * @property showTitleDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"showTitleDialog\", _descriptor14, this);\n      /**\n       * The function that is executed when the dialog is closed\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor15, this);\n      /**\n       * Adds the new campaign\n       *\n       * @type {Task}\n       * @function addCampaign\n       */\n      _initializerDefineProperty(this, \"addCampaign\", _descriptor16, this);\n      if (this.uiAppSettings.isEnterprisePlan) {\n        this.availableCampaigns = _constants.TRIGGER_EMAIL_CAMPAIGN_TYPES.enterprise;\n      } else {\n        this.availableCampaigns = _constants.TRIGGER_EMAIL_CAMPAIGN_TYPES.starter;\n      }\n      this.upgradeAvailable = !!this.availableCampaigns.filter(e => e.upgradeRequired).length;\n    }\n    didInsert() {\n      const modelClass = this.store.modelFor(this.modelName);\n      this.model = modelClass;\n      const validation = {\n        campaignTitle: (0, _validators.validatePresence)({\n          presence: true,\n          message: this.intl.t('errors.required')\n        })\n      };\n      this.changeset = new _emberChangeset.default(this.model, (0, _emberChangesetValidations.default)(validation), validation);\n    }\n    setCampaignType(campaignType) {\n      this.changeset.set('campaignType', campaignType.type);\n      this.showTitleDialog = true;\n    }\n    close() {\n      if (this.changeset.get('isDirty')) {\n        this.isDiscardChanges = true;\n      } else {\n        if (this.model.isNew) {\n          this.model.destroyRecord();\n        }\n        this.onClose();\n      }\n    }\n    discardChanges() {\n      if (this.model.isNew) {\n        this.model.destroyRecord();\n      }\n      this.isDiscardChanges = false;\n      this.onClose();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"modelName\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"filterName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"showTitleDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"addCampaign\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setCampaignType\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setCampaignType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignCreateEmailCampaignDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/detail-header\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"flex mb2\" ...attributes>\n    {{#let\n      (if\n        (eq this.state \"active\") \"success\" (if (eq this.state \"deactivated\") \"error\" \"warning\")\n      ) as |s|\n    }}\n      <UiStatusBadge @state={{s}}>\n        <div class=\"flex items-center pr1\">\n          <UiPopover as |pop|>\n            <pop.trigger>\n              <UiStatus @state={{s}} />\n            </pop.trigger>\n            <pop.content>\n              {{#if this.message}}\n                {{this.message}}\n              {{else}}\n                {{t\n                  (concat\n                    \"global.stateMessage.\"\n                    (if\n                      (eq this.state \"active\")\n                      \"active\"\n                      (if (eq this.state \"deactivated\") \"inactive\" \"incomplete\")\n                    )\n                  )\n                }}\n              {{/if}}\n            </pop.content>\n          </UiPopover>\n  \n          {{t\n            (concat\n              \"global.states.\"\n              (if\n                (eq this.state \"active\")\n                \"active\"\n                (if (eq this.state \"deactivated\") \"inactive\" \"incomplete\")\n              )\n            )\n          }}\n        </div>\n      </UiStatusBadge>\n    {{/let}}\n  </div>\n  <UiIntro @title={{this.title}} @description={{this.description}} @size=\"xl\" @classNames=\"mb4\" />\n  */\n  {\n    \"id\": \"N9lLpzl3\",\n    \"block\": \"[[[11,0],[24,0,\\\"flex mb2\\\"],[17,1],[12],[1,\\\"\\\\n\\\"],[44,[[52,[28,[37,2],[[30,0,[\\\"state\\\"]],\\\"active\\\"],null],\\\"success\\\",[52,[28,[37,2],[[30,0,[\\\"state\\\"]],\\\"deactivated\\\"],null],\\\"error\\\",\\\"warning\\\"]]],[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@state\\\"],[[30,2]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex items-center pr1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,4],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@state\\\"],[[30,2]]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"message\\\"]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"message\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[[28,[37,7],[\\\"global.stateMessage.\\\",[52,[28,[37,2],[[30,0,[\\\"state\\\"]],\\\"active\\\"],null],\\\"active\\\",[52,[28,[37,2],[[30,0,[\\\"state\\\"]],\\\"deactivated\\\"],null],\\\"inactive\\\",\\\"incomplete\\\"]]],null]],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n        \\\"],[1,[28,[35,6],[[28,[37,7],[\\\"global.states.\\\",[52,[28,[37,2],[[30,0,[\\\"state\\\"]],\\\"active\\\"],null],\\\"active\\\",[52,[28,[37,2],[[30,0,[\\\"state\\\"]],\\\"deactivated\\\"],null],\\\"inactive\\\",\\\"incomplete\\\"]]],null]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[2]]],[13],[1,\\\"\\\\n\\\"],[8,[39,8],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@classNames\\\"],[[30,0,[\\\"title\\\"]],[30,0,[\\\"description\\\"]],\\\"xl\\\",\\\"mb4\\\"]],null]],[\\\"&attrs\\\",\\\"s\\\",\\\"pop\\\"],false,[\\\"let\\\",\\\"if\\\",\\\"eq\\\",\\\"ui-status-badge\\\",\\\"ui-popover\\\",\\\"ui-status\\\",\\\"t\\\",\\\"concat\\\",\\\"ui-intro\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/detail-header.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignDetailHeaderComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _class = class AmcCampaignDetailHeaderComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      /**\n       * title\n       * @argument title\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"title\", _descriptor, this);\n      /**\n       * message\n       * @argument message\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"message\", _descriptor2, this);\n      /**\n       * state\n       * @argument state\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"state\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"message\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"state\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignDetailHeaderComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/configuration-item/array\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _component, _templateFactory, _component2, _emberChangeset, _emberChangesetValidations, _emberArgTypes, _propTypes, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"mr1\">\n    <UiTagsInput\n      @inputLabel={{this.item.label}}\n      @changeset={{this._changeset}}\n      @changesetProperty={{this.item.key}}\n      @isReadOnly={{this.isReadOnly}}\n      @isPlain={{this.isPlain}}\n      @onSave={{this.change}}\n    />\n  </div>\n  */\n  {\n    \"id\": \"PILpQb9z\",\n    \"block\": \"[[[10,0],[14,0,\\\"mr1\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,0],null,[[\\\"@inputLabel\\\",\\\"@changeset\\\",\\\"@changesetProperty\\\",\\\"@isReadOnly\\\",\\\"@isPlain\\\",\\\"@onSave\\\"],[[30,0,[\\\"item\\\",\\\"label\\\"]],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"item\\\",\\\"key\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"isPlain\\\"]],[30,0,[\\\"change\\\"]]]],null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"ui-tags-input\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/configuration-item/array.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignConfigurationItemArrayComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec3 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignConfigurationItemArrayComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      /**\n       * The configuration-item\n       *\n       * @property item\n       * @default null\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor, this);\n      /**\n       * Whether the component is read only\n       *\n       * @argument isReadOnly\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor2, this);\n      /**\n       * Whether the label should be hidden\n       *\n       * @argument isPlain\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isPlain\", _descriptor3, this);\n      /**\n       * the internal changeset\n       *\n       * @property _changeset\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_changeset\", _descriptor4, this);\n      _initializerDefineProperty(this, \"onChange\", _descriptor5, this);\n      this._changeset = new _emberChangeset.default({\n        [this.item.key]: this.item.value\n      }, (0, _emberChangesetValidations.default)(this.validation || true), this.validation || true);\n    }\n    change() {\n      const value = this._changeset.get(this.item.key);\n      this.onChange(value);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isPlain\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"change\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"change\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignConfigurationItemArrayComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/configuration-item/boolean\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/service\", \"ember-arg-types\", \"@glimmer/tracking\", \"prop-types\", \"@ember/object\"], function (_exports, _component, _templateFactory, _component2, _service, _emberArgTypes, _tracking, _propTypes, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"flex justify-between br1 bg-secondary--10 pa2\">\n    <div class=\"font-sm primary\">\n      {{this.item.label}}\n    </div>\n    <UiSwitch @value={{this._value}} @onChange={{this.change}} />\n  </div>\n  */\n  {\n    \"id\": \"cBLswsaf\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex justify-between br1 bg-secondary--10 pa2\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"font-sm primary\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"item\\\",\\\"label\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,0],null,[[\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"_value\\\"]],[30,0,[\\\"change\\\"]]]],null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"ui-switch\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/configuration-item/boolean.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignConfigurationItemBooleanComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignConfigurationItemBooleanComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor2, this);\n      /**\n       * The configuration-item\n       *\n       * @property item\n       * @default null\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor3, this);\n      _initializerDefineProperty(this, \"_value\", _descriptor4, this);\n      /**\n       * Whether the component is read only\n       *\n       * @argument isReadOnly\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor5, this);\n      _initializerDefineProperty(this, \"onChange\", _descriptor6, this);\n      this._value = this.item.value;\n    }\n    async change(value) {\n      this._value = value;\n      await this.onChange(value);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_value\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"change\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"change\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignConfigurationItemBooleanComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/configuration-item/number\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _propTypes, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiInput\n    @label={{this.item.label}}\n    @value={{this.item.value}}\n    @isPlain={{this.isPlain}}\n    @isDisabled={{this.isReadOnly}}\n    @onBlur={{this.onChange}}\n    @type=\"number\"\n  />\n  */\n  {\n    \"id\": \"mRXqyo7T\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isPlain\\\",\\\"@isDisabled\\\",\\\"@onBlur\\\",\\\"@type\\\"],[[30,0,[\\\"item\\\",\\\"label\\\"]],[30,0,[\\\"item\\\",\\\"value\\\"]],[30,0,[\\\"isPlain\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"onChange\\\"]],\\\"number\\\"]],null]],[],false,[\\\"ui-input\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/configuration-item/number.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignConfigurationItemNumberComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignConfigurationItemNumberComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      /**\n       * The configuration-item\n       *\n       * @argument item\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor, this);\n      /**\n       * Whether its read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor2, this);\n      /**\n       * Whether the label should be hidden\n       *\n       * @argument isPlain\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isPlain\", _descriptor3, this);\n      /**\n       * Save event\n       *\n       * @function onSave\n       * @return {Promise} Returns a promise\n       * @public\n       */\n      _initializerDefineProperty(this, \"onChange\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isPlain\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignConfigurationItemNumberComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/configuration-item/parametrized-string\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _propTypes, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiInput\n    @label={{this.item.label}}\n    @value={{this.item.value}}\n    @isPlain={{this.isPlain}}\n    @isDisabled={{this.isReadOnly}}\n    @onBlur={{this.onChange}}\n  />\n  */\n  {\n    \"id\": \"/z0dUXSI\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isPlain\\\",\\\"@isDisabled\\\",\\\"@onBlur\\\"],[[30,0,[\\\"item\\\",\\\"label\\\"]],[30,0,[\\\"item\\\",\\\"value\\\"]],[30,0,[\\\"isPlain\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"onChange\\\"]]]],null]],[],false,[\\\"ui-input\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/configuration-item/parametrized-string.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignEmailCampaignConfigurationItemParametrizedStringComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignEmailCampaignConfigurationItemParametrizedStringComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      /**\n       * The configuration-item\n       *\n       * @argument item\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor, this);\n      /**\n       * Whether its read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor2, this);\n      /**\n       * Whether the label should be hidden\n       *\n       * @argument isPlain\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isPlain\", _descriptor3, this);\n      /**\n       * On change event\n       *\n       * @function onChange\n       * @public\n       */\n      _initializerDefineProperty(this, \"onChange\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isPlain\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignConfigurationItemParametrizedStringComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/configuration-item/text\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _propTypes, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiInput\n    @label={{this.item.label}}\n    @value={{this.item.value}}\n    @isPlain={{this.isPlain}}\n    @isDisabled={{this.isReadOnly}}\n    @onBlur={{this.onChange}}\n  />\n  */\n  {\n    \"id\": \"TTckhxN+\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isPlain\\\",\\\"@isDisabled\\\",\\\"@onBlur\\\"],[[30,0,[\\\"item\\\",\\\"label\\\"]],[30,0,[\\\"item\\\",\\\"value\\\"]],[30,0,[\\\"isPlain\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"onChange\\\"]]]],null]],[],false,[\\\"ui-input\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/configuration-item/text.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignEmailCampaignConfigurationItemTextComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignEmailCampaignConfigurationItemTextComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      /**\n       * The configuration-item\n       *\n       * @argument item\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor, this);\n      /**\n       * Whether its read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor2, this);\n      /**\n       * Whether the label should be hidden\n       *\n       * @argument isPlain\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isPlain\", _descriptor3, this);\n      /**\n       * On change event\n       *\n       * @function onChange\n       * @public\n       */\n      _initializerDefineProperty(this, \"onChange\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isPlain\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignConfigurationItemTextComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/configuration-item/timespan\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"additive-mc/utils/iso-duration\", \"@ember/service\", \"@glimmer/tracking\", \"ember-arg-types\", \"prop-types\", \"@ember/object\"], function (_exports, _component, _templateFactory, _component2, _isoDuration, _service, _tracking, _emberArgTypes, _propTypes, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless this.hideDateInputs}}\n    <div class=\"flex flex-row\">\n      <UiInput\n        @class=\"mr1\"\n        @label={{t \"global.dates.years\" value=2}}\n        @placeholder={{t \"global.dates.years\" value=2}}\n        @type=\"number\"\n        @minValue={{0}}\n        @value={{this._resource.years}}\n        @isReadOnly={{this.isReadOnly}}\n        @onBlur={{fn this._onChange \"years\"}}\n      />\n      <UiInput\n        @class=\"mr1\"\n        @label={{t \"global.dates.months\" value=2}}\n        @placeholder={{t \"global.dates.months\" value=2}}\n        @type=\"number\"\n        @minValue={{0}}\n        @value={{this._resource.months}}\n        @isReadOnly={{this.isReadOnly}}\n        @onBlur={{fn this._onChange \"months\"}}\n      />\n      <UiInput\n        @class=\"mr1\"\n        @label={{t \"global.dates.days\" value=2}}\n        @placeholder={{t \"global.dates.days\" value=2}}\n        @type=\"number\"\n        @minValue={{0}}\n        @value={{this._resource.days}}\n        @isReadOnly={{this.isReadOnly}}\n        @onBlur={{fn this._onChange \"days\"}}\n      />\n    </div>\n  {{/unless}}\n  \n  {{#unless this.hideTimeInputs}}\n    <div class=\"flex flex-row\">\n      <UiInput\n        @class=\"mr1\"\n        @label={{t \"global.dates.hours\" value=2}}\n        @placeholder={{t \"global.dates.hours\" value=2}}\n        @type=\"number\"\n        @minValue={{0}}\n        @value={{this._resource.hours}}\n        @isReadOnly={{this.isReadOnly}}\n        @onBlur={{fn this._onChange \"hours\"}}\n      />\n      <UiInput\n        @class=\"mr1\"\n        @label={{t \"global.dates.minutes\" value=2}}\n        @placeholder={{t \"global.dates.minutes\" value=2}}\n        @type=\"number\"\n        @minValue={{0}}\n        @value={{this._resource.minutes}}\n        @isReadOnly={{this.isReadOnly}}\n        @onBlur={{fn this._onChange \"minutes\"}}\n      />\n      <UiInput\n        @class=\"mr1\"\n        @label={{t \"global.dates.seconds\" value=2}}\n        @placeholder={{t \"global.dates.seconds\" value=2}}\n        @type=\"number\"\n        @minValue={{0}}\n        @value={{this._resource.seconds}}\n        @isReadOnly={{this.isReadOnly}}\n        @onBlur={{fn this._onChange \"seconds\"}}\n      />\n    </div>\n  {{/unless}}\n  */\n  {\n    \"id\": \"VCCoK0Lr\",\n    \"block\": \"[[[41,[51,[30,0,[\\\"hideDateInputs\\\"]]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"flex flex-row\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@type\\\",\\\"@minValue\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@onBlur\\\"],[\\\"mr1\\\",[28,[37,2],[\\\"global.dates.years\\\"],[[\\\"value\\\"],[2]]],[28,[37,2],[\\\"global.dates.years\\\"],[[\\\"value\\\"],[2]]],\\\"number\\\",0,[30,0,[\\\"_resource\\\",\\\"years\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,3],[[30,0,[\\\"_onChange\\\"]],\\\"years\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@type\\\",\\\"@minValue\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@onBlur\\\"],[\\\"mr1\\\",[28,[37,2],[\\\"global.dates.months\\\"],[[\\\"value\\\"],[2]]],[28,[37,2],[\\\"global.dates.months\\\"],[[\\\"value\\\"],[2]]],\\\"number\\\",0,[30,0,[\\\"_resource\\\",\\\"months\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,3],[[30,0,[\\\"_onChange\\\"]],\\\"months\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@type\\\",\\\"@minValue\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@onBlur\\\"],[\\\"mr1\\\",[28,[37,2],[\\\"global.dates.days\\\"],[[\\\"value\\\"],[2]]],[28,[37,2],[\\\"global.dates.days\\\"],[[\\\"value\\\"],[2]]],\\\"number\\\",0,[30,0,[\\\"_resource\\\",\\\"days\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,3],[[30,0,[\\\"_onChange\\\"]],\\\"days\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"hideTimeInputs\\\"]]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"flex flex-row\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@type\\\",\\\"@minValue\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@onBlur\\\"],[\\\"mr1\\\",[28,[37,2],[\\\"global.dates.hours\\\"],[[\\\"value\\\"],[2]]],[28,[37,2],[\\\"global.dates.hours\\\"],[[\\\"value\\\"],[2]]],\\\"number\\\",0,[30,0,[\\\"_resource\\\",\\\"hours\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,3],[[30,0,[\\\"_onChange\\\"]],\\\"hours\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@type\\\",\\\"@minValue\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@onBlur\\\"],[\\\"mr1\\\",[28,[37,2],[\\\"global.dates.minutes\\\"],[[\\\"value\\\"],[2]]],[28,[37,2],[\\\"global.dates.minutes\\\"],[[\\\"value\\\"],[2]]],\\\"number\\\",0,[30,0,[\\\"_resource\\\",\\\"minutes\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,3],[[30,0,[\\\"_onChange\\\"]],\\\"minutes\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@type\\\",\\\"@minValue\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@onBlur\\\"],[\\\"mr1\\\",[28,[37,2],[\\\"global.dates.seconds\\\"],[[\\\"value\\\"],[2]]],[28,[37,2],[\\\"global.dates.seconds\\\"],[[\\\"value\\\"],[2]]],\\\"number\\\",0,[30,0,[\\\"_resource\\\",\\\"seconds\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,3],[[30,0,[\\\"_onChange\\\"]],\\\"seconds\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"unless\\\",\\\"ui-input\\\",\\\"t\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/configuration-item/timespan.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Component which handles campaigns configuration-item for `timespan`.\n   *\n   * `timespan` is a iso8601-duration value which indicates a duration\n   *\n   * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n   *\n   * @class amc-campaigns/configuration-item/timespan\n   * @module amc-campaigns\n   */\n  let AmcCampaignConfigurationItemTimeSpanComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec3 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec4 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignConfigurationItemTimeSpanComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor2, this);\n      /**\n       * The configuration-item\n       *\n       * @property item\n       * @default null\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor3, this);\n      /**\n       * Whether the date inputs (years, months, days) should be hidden\n       *\n       * @property hideDateInputs\n       * @default false\n       */\n      _initializerDefineProperty(this, \"hideDateInputs\", _descriptor4, this);\n      /**\n       * Whether the time inputs (hours, minutes, seconds) should be hidden\n       *\n       * @property hideTimeInputs\n       * @default true\n       */\n      _initializerDefineProperty(this, \"hideTimeInputs\", _descriptor5, this);\n      /**\n       * Whether the component is read only\n       *\n       * @argument isReadOnly\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor6, this);\n      /**\n       * Changesets underlying object;\n       *\n       * @property _resource\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"resource\", _descriptor7, this);\n      _initializerDefineProperty(this, \"onChange\", _descriptor8, this);\n      let resource = {\n        years: 0,\n        months: 0,\n        days: 0,\n        hours: 0,\n        minutes: 0,\n        seconds: 0\n      };\n      if (this.item && this.item.value) {\n        resource = Object.assign(resource, (0, _isoDuration.parse)(this.item.value));\n      }\n      this._resource = resource;\n    }\n    _onChange(key, value) {\n      this._resource[key] = !value || value == '' ? 0 : value;\n      const isoDurationString = (0, _isoDuration.toString)(this._resource);\n      this.onChange(isoDurationString ? isoDurationString : 'P0Y0M0D');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hideDateInputs\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hideTimeInputs\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"resource\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_onChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onChange\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignConfigurationItemTimeSpanComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/configuration-item/yeardate\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"prop-types\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"date-fns\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _propTypes, _service, _tracking, _object, _dateFns) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"flex\">\n    <UiSelect\n      @class=\"pr1\"\n      @label={{t \"global.dates.months\" value=1}}\n      @selected={{get (array-find this._selectedMonth this._monthOptions) \"label\"}}\n      @options={{this._monthOptions}}\n      @onChange={{this._onChangeMonth}}\n      @objectKey=\"label\"\n      @isReadOnly={{this.isReadOnly}}\n      as |option item|\n    >\n      <option.item @value={{item.value}}>\n        {{item.label}}\n      </option.item>\n    </UiSelect>\n  \n    <UiSelect\n      @label={{t \"global.dates.days\" value=1}}\n      @selected={{get (array-find this._selectedDay this._dayOptions) \"label\"}}\n      @options={{this._dayOptions}}\n      @onChange={{this._onChangeDay}}\n      @objectKey=\"label\"\n      @isReadOnly={{this._isDaySelectReadOnly}}\n      as |option item|\n    >\n      <option.item @value={{item.value}}>\n        {{item.label}}\n      </option.item>\n    </UiSelect>\n  </div>\n  */\n  {\n    \"id\": \"SM5pU3Q/\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,0],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\",\\\"@objectKey\\\",\\\"@isReadOnly\\\"],[\\\"pr1\\\",[28,[37,1],[\\\"global.dates.months\\\"],[[\\\"value\\\"],[1]]],[28,[37,2],[[28,[37,3],[[30,0,[\\\"_selectedMonth\\\"]],[30,0,[\\\"_monthOptions\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"_monthOptions\\\"]],[30,0,[\\\"_onChangeMonth\\\"]],\\\"label\\\",[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,2,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[30,2,[\\\"label\\\"]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[1,2]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,0],null,[[\\\"@label\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\",\\\"@objectKey\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"global.dates.days\\\"],[[\\\"value\\\"],[1]]],[28,[37,2],[[28,[37,3],[[30,0,[\\\"_selectedDay\\\"]],[30,0,[\\\"_dayOptions\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"_dayOptions\\\"]],[30,0,[\\\"_onChangeDay\\\"]],\\\"label\\\",[30,0,[\\\"_isDaySelectReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,4,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[30,4,[\\\"label\\\"]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[3,4]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"option\\\",\\\"item\\\",\\\"option\\\",\\\"item\\\"],false,[\\\"ui-select\\\",\\\"t\\\",\\\"get\\\",\\\"array-find\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/configuration-item/yeardate.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignEmailCampaignConfigurationItemYearDataeComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignEmailCampaignConfigurationItemYearDataeComponent extends _component2.default {\n    get _isDaySelectReadOnly() {\n      return this.isReadOnly || !this._selectedMonth;\n    }\n    get _dayOptions() {\n      if (!this._selectedMonth) {\n        return [];\n      }\n      const year = new Date().getFullYear(); // Optional: Adjust for leap years if required\n\n      const daysInMonth = new Date(year, this._selectedMonth, 0).getDate();\n      const days = new Array(daysInMonth).fill(null).map((_, index) => {\n        return {\n          label: index + 1,\n          value: index + 1\n        };\n      });\n      return days;\n    }\n\n    /**\n     * Returns given month number as long month string\n     *\n     * @function _getLongMonthByNumber\n     * @param {Number} month The month number (1, 2, 5, 12...)\n     */\n    _getLongMonthByNumber(month) {\n      if (!month) {\n        return null;\n      }\n      try {\n        /* Dummy date */\n        const date = new Date(2020, 5, 5, 12);\n        date.setMonth(month - 1);\n        return (0, _dateFns.format)(date, 'MMMM', {\n          locale: this.uiLocale.dateFnsLocale\n        });\n      } catch (error) {\n        return null;\n      }\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiLocale\", _descriptor, this);\n      /**\n       * The configuration-item\n       *\n       * @argument item\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"item\", _descriptor2, this);\n      /**\n       * Whether its read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor3, this);\n      /**\n       * Whether the label should be hidden\n       *\n       * @argument isPlain\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isPlain\", _descriptor4, this);\n      /**\n       * Select options for month\n       *\n       * @property _dayOptions\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_monthOptions\", _descriptor5, this);\n      /**\n       * The selected day\n       *\n       * @property _selectedDay\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_selectedDay\", _descriptor6, this);\n      /**\n       * The selected month\n       *\n       * @property _selectedMonth\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_selectedMonth\", _descriptor7, this);\n      /**\n       * On change event\n       *\n       * @function onChange\n       * @public\n       */\n      _initializerDefineProperty(this, \"onChange\", _descriptor8, this);\n      let resource = {};\n      if (this.item && this.item.value) {\n        const [month, day] = this.item.value.split('-');\n        resource = {\n          month: Number(month),\n          day: Number(day)\n        };\n      } else {\n        resource = {\n          month: null,\n          day: null\n        };\n      }\n      this._selectedDay = resource.day;\n      this._selectedMonth = resource.month;\n      this._monthOptions = new Array(12).fill(null).map((_, index) => {\n        return {\n          value: index + 1,\n          label: this._getLongMonthByNumber(index + 1)\n        };\n      });\n    }\n    change(selectedMonth, selectedDay) {\n      if (!selectedMonth | !selectedDay) {\n        return;\n      }\n\n      /* ensure it uses 2 digits (1 -> 01) */\n      const month = ('0' + selectedMonth).slice(-2);\n      const day = ('0' + selectedDay).slice(-2);\n      this.onChange(`${month}-${day}`);\n    }\n    _onChangeDay(value) {\n      this._selectedDay = value;\n      this.change(this._selectedMonth, value);\n    }\n    _onChangeMonth(value) {\n      this._selectedDay = null;\n      this._selectedMonth = value;\n      this.change(value, this._selectedDay);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiLocale\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isPlain\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_monthOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"_selectedDay\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"_selectedMonth\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"change\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"change\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_onChangeDay\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onChangeDay\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_onChangeMonth\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onChangeMonth\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignConfigurationItemYearDataeComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/create-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/object/internals\", \"@ember/service\", \"ember-concurrency\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _tracking, _object, _internals, _service, _emberConcurrency, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isOpen}}\n    <UiModal @modalClassNames=\"campaign-create-dialog\" @onClose={{this._onClose}} @size=\"lg\" as |m|>\n      <m.header />\n  \n      <m.content @class=\"flex flex-grow-1\" {{did-insert this.onDidInsert}} as |c|>\n        <c.body class=\"ph4 {{if (and this.isDetailView this.isCampaignCreatable) 'pb0' 'pb4'}}\">\n          {{#if this.isDetailView}}\n            {{#if this.isCampaignCreatable}}\n              <div class=\"flex mb1 mh3\">\n                <div\n                  role=\"button\"\n                  class=\"font-lg font-medium secondary cpointer\"\n                  {{on \"click\" this.closeDetailView}}\n                >\n                  {{@title}}\n                </div>\n                <span class=\"secondary\">\n                  &nbsp;&nbsp;/&nbsp;&nbsp;\n                </span>\n                <div class=\"font-lg font-medium primary\">\n                  {{this.selectedCampaign.name}}\n                </div>\n              </div>\n            {{else}}\n              <div class=\"font-lg font-medium primary mb1 mh3\">\n                {{this.selectedCampaign.name}}\n              </div>\n            {{/if}}\n  \n            <div class=\"mt4 mh3\">\n              {{#each this.selectedCampaign.descriptions.details as |detail index|}}\n                <div class=\"flex {{if index 'mt4'}}\">\n                  {{svg-jar detail.icon width=\"24\" height=\"24\" class=\"db mr2 flex-shrink-0\"}}\n                  <div class=\"flex flex-column\">\n                    <div class=\"font-medium mb05\">\n                      {{detail.title}}\n                    </div>\n                    {{detail.description}}\n                  </div>\n                </div>\n              {{/each}}\n            </div>\n          {{else}}\n            <div class=\"mh3 mb3\">\n              <div class=\"font-lg font-medium primary mb1\">\n                {{@title}}\n              </div>\n              <div class=\"mb3 mt1\">\n                {{@description}}\n              </div>\n  \n              {{#if this.fetchCampaignTypes.isRunning}}\n                <UiSkeleton\n                  @itemsPerRow={{3}}\n                  @items={{14}}\n                  @itemsSmartphone={{6}}\n                  @cardHeight={{160}}\n                  @gap={{16}}\n                />\n              {{else if this._isError}}\n                <div class=\"flex flex-column w-100 justify-center items-center pt3\">\n                  <span class=\"pb2 font-sm secondary\">\n                    {{t \"emailCampaigns.createDialog.error\"}}\n                  </span>\n                  <UiButton\n                    @label={{t \"global.actions.retry\"}}\n                    @onClick={{perform this.fetchCampaignTypes}}\n                  />\n                </div>\n              {{else}}\n                <Grid @gap=\"16\" @columns=\"1,2,3\">\n                  {{#each this._formattedCampaignTypes as |campaignType|}}\n                    <div\n                      role=\"button\"\n                      class=\"flex flex-column justify-between pa2 br1\n                        {{unless\n                          campaignType.isDisabled\n                          'bg-secondary--10 cpointer'\n                          'ba b--secondary-10'\n                        }}\"\n                      {{on \"click\" (fn this.onCampaignClick campaignType)}}\n                    >\n                      <div>\n                        <div class=\"primary font-sm font-medium pb05\">\n                          {{campaignType.name}}\n                        </div>\n                        <div class=\"secondary font-sm font-medium pb2\">\n                          {{campaignType.descriptions.summary}}\n                        </div>\n                      </div>\n  \n                      {{#unless campaignType.isDisabled}}\n                        <div class=\"flex justify-end w-100\">\n                          {{svg-jar \"ascending-arrow\" class=\"secondary\"}}\n                        </div>\n                      {{/unless}}\n                    </div>\n                  {{/each}}\n                </Grid>\n              {{/if}}\n            </div>\n          {{/if}}\n  \n          {{#if (and this.isDetailView (not this.isCampaignCreatable))}}\n            <div class=\"pb2\"></div>\n          {{/if}}\n        </c.body>\n      </m.content>\n  \n      {{#if (and this.isDetailView this.isCampaignCreatable)}}\n        <m.footer>\n          <UiButton\n            @icon=\"plus\"\n            @label={{t \"emailCampaigns.createDialog.create\"}}\n            @onClick={{this.createCampaign}}\n          />\n        </m.footer>\n      {{/if}}\n    </UiModal>\n  {{/if}}\n  */\n  {\n    \"id\": \"uv5p1qq4\",\n    \"block\": \"[[[41,[30,0,[\\\"isOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@modalClassNames\\\",\\\"@onClose\\\",\\\"@size\\\"],[\\\"campaign-create-dialog\\\",[30,0,[\\\"_onClose\\\"]],\\\"lg\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,1,[\\\"content\\\"]],[[4,[38,2],[[30,0,[\\\"onDidInsert\\\"]]],null]],[[\\\"@class\\\"],[\\\"flex flex-grow-1\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"body\\\"]],[[16,0,[29,[\\\"ph4 \\\",[52,[28,[37,3],[[30,0,[\\\"isDetailView\\\"]],[30,0,[\\\"isCampaignCreatable\\\"]]],null],\\\"pb0\\\",\\\"pb4\\\"]]]]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDetailView\\\"]],[[[41,[30,0,[\\\"isCampaignCreatable\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex mb1 mh3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"font-lg font-medium secondary cpointer\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"closeDetailView\\\"]]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,3]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"secondary\\\"],[12],[1,\\\"\\\\n                  /  \\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"font-lg font-medium primary\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"selectedCampaign\\\",\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"font-lg font-medium primary mb1 mh3\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"selectedCampaign\\\",\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mt4 mh3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"selectedCampaign\\\",\\\"descriptions\\\",\\\"details\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[15,0,[29,[\\\"flex \\\",[52,[30,5],\\\"mt4\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[[30,4,[\\\"icon\\\"]]],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"24\\\",\\\"24\\\",\\\"db mr2 flex-shrink-0\\\"]]]],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"font-medium mb05\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,4,[\\\"title\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[1,[30,4,[\\\"description\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4,5]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mh3 mb3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"font-lg font-medium primary mb1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,3]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mb3 mt1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,6]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"fetchCampaignTypes\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[8,[39,8],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[3,14,6,160,16]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"_isError\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"flex flex-column w-100 justify-center items-center pt3\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"pb2 font-sm secondary\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,9],[\\\"emailCampaigns.createDialog.error\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,10],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,9],[\\\"global.actions.retry\\\"],null],[28,[37,11],[[30,0,[\\\"fetchCampaignTypes\\\"]]],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[8,[39,12],null,[[\\\"@gap\\\",\\\"@columns\\\"],[\\\"16\\\",\\\"1,2,3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"_formattedCampaignTypes\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[\\\"flex flex-column justify-between pa2 br1\\\\n                      \\\",[52,[51,[30,7,[\\\"isDisabled\\\"]]],\\\"bg-secondary--10 cpointer\\\",\\\"ba b--secondary-10\\\"]]]],[4,[38,4],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"onCampaignClick\\\"]],[30,7]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[10,0],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"primary font-sm font-medium pb05\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"secondary font-sm font-medium pb2\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[30,7,[\\\"descriptions\\\",\\\"summary\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,7,[\\\"isDisabled\\\"]]],[[[1,\\\"                      \\\"],[10,0],[14,0,\\\"flex justify-end w-100\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,7],[\\\"ascending-arrow\\\"],[[\\\"class\\\"],[\\\"secondary\\\"]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,0,[\\\"isDetailView\\\"]],[28,[37,15],[[30,0,[\\\"isCampaignCreatable\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"pb2\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[[30,0,[\\\"isDetailView\\\"]],[30,0,[\\\"isCampaignCreatable\\\"]]],null],[[[1,\\\"      \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,10],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"plus\\\",[28,[37,9],[\\\"emailCampaigns.createDialog.create\\\"],null],[30,0,[\\\"createCampaign\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"m\\\",\\\"c\\\",\\\"@title\\\",\\\"detail\\\",\\\"index\\\",\\\"@description\\\",\\\"campaignType\\\"],false,[\\\"if\\\",\\\"ui-modal\\\",\\\"did-insert\\\",\\\"and\\\",\\\"on\\\",\\\"each\\\",\\\"-track-array\\\",\\\"svg-jar\\\",\\\"ui-skeleton\\\",\\\"t\\\",\\\"ui-button\\\",\\\"perform\\\",\\\"grid\\\",\\\"unless\\\",\\\"fn\\\",\\\"not\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/create-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Create dialog for guest lifecycle emails\n   *\n   * @class email-dialog\n   */\n  let AmcCampaignEmailCampaignCreateDialog = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec4 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec5 = (0, _emberArgTypes.arg)(_propTypes.object), _dec6 = (0, _emberConcurrency.task)(function* () {\n    this._isError = false;\n    try {\n      const adapter = this.store.adapterFor('email-campaign');\n      const baseUrl = adapter.urlForFindAll('email-campaign', {\n        adapterOptions: {\n          useNewApi: true\n        }\n      });\n      const tasks = [];\n      tasks.push(this.authenticatedFetch.fetch(`${baseUrl}/campaign-types`));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      if (!response.ok) {\n        throw new Error('Failed to fetch campaign types');\n      }\n      const json = yield response.json();\n      if (!(json !== null && json !== void 0 && json.campaignTypes)) {\n        throw new Error('Invalid response');\n      }\n      this._campaignTypes = json.campaignTypes;\n    } catch (e) {\n      this._isError = true;\n    }\n  }), _dec7 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignEmailCampaignCreateDialog extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"title\", _descriptor4, this);\n      _initializerDefineProperty(this, \"description\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isCampaignCreatable\", _descriptor6, this);\n      /**\n       * whether the dialog is open\n       *\n       * @argument isOpen\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isOpen\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isDetailView\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedCampaign\", _descriptor9, this);\n      _initializerDefineProperty(this, \"model\", _descriptor10, this);\n      /**\n       * the fetched campaign types\n       *\n       * @property _campaignTypes\n       * @type {Array}\n       * @default []\n       * @private\n       */\n      _initializerDefineProperty(this, \"_campaignTypes\", _descriptor11, this);\n      /**\n       * whether an error occurred while fetching campaign types\n       *\n       * @property _isError\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isError\", _descriptor12, this);\n      _initializerDefineProperty(this, \"fetchCampaignTypes\", _descriptor13, this);\n      _initializerDefineProperty(this, \"onClose\", _descriptor14, this);\n    }\n    get _formattedCampaignTypes() {\n      return this._campaignTypes.map(campaign => {\n        var _campaign$creatableCh;\n        return _objectSpread(_objectSpread({}, campaign), {}, {\n          isDisabled: ((_campaign$creatableCh = campaign.creatableChecks) === null || _campaign$creatableCh === void 0 ? void 0 : _campaign$creatableCh.length) > 0\n        });\n      });\n    }\n    async onDidInsert() {\n      if (!this.isCampaignCreatable) {\n        // No campaign is createable.\n        // The component is only used to visualize information about the campaign.\n        this.isDetailView = true;\n        this.selectedCampaign = this.model;\n        return;\n      }\n      if (this._campaignTypes.length > 0) {\n        return;\n      }\n      this.fetchCampaignTypes.perform();\n    }\n    onCampaignClick(campaign) {\n      if (campaign.isDisabled) {\n        return;\n      }\n      this.selectedCampaign = campaign;\n      this.isDetailView = true;\n      const dialog = document.querySelector('.campaign-create-dialog');\n      if (dialog) {\n        dialog.scrollIntoView();\n      }\n    }\n    async createCampaign() {\n      // clear campaign types to force refetch on next open\n      this._campaignTypes = [];\n      const newCampaign = this.store.createRecord('email-campaign', {\n        name: this.selectedCampaign.name,\n        type: this.selectedCampaign.type,\n        code: this.selectedCampaign.code,\n        descriptions: this.selectedCampaign.descriptions\n      });\n\n      // Fetch metadata\n      await newCampaign.fetchMeta.perform();\n\n      // assign temporary id\n      newCampaign.id = `tmp-${(0, _internals.guidFor)(newCampaign)}`;\n      this.router.transitionTo('instance.campaigns.email.detail.index.edit', newCampaign.id);\n      this._onClose();\n    }\n    closeDetailView() {\n      this.selectedCampaign = null;\n      this.isDetailView = false;\n    }\n    _onClose() {\n      if (this.isCampaignCreatable) {\n        this.closeDetailView();\n      }\n      this.onClose();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isCampaignCreatable\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isOpen\", [_dec4, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isDetailView\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"selectedCampaign\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"_campaignTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"_isError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"fetchCampaignTypes\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onDidInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDidInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCampaignClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onCampaignClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createCampaign\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createCampaign\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeDetailView\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeDetailView\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onClose\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignCreateDialog);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/detail-view\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/string\", \"ember-concurrency\", \"ember-arg-types\", \"prop-types\", \"dompurify\", \"additive-mc/utils/constants\"], function (_exports, _component, _templateFactory, _environment, _component2, _tracking, _object, _service, _string, _emberConcurrency, _emberArgTypes, _propTypes, _dompurify, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiContentViews @title={{@model.name}} as |view|>\n    <view.navbar @onClose={{@onClose}} data-test-detail-navbar={{true}} as |nav|>\n      {{#unless this.isReadOnly}}\n        <nav.action\n          @label={{t \"global.actions.publish\"}}\n          @icon=\"publish\"\n          @isDisabled={{not this.model.availableLanguages.length}}\n          @onClick={{this.onPublish}}\n        />\n        <nav.action\n          @label={{t \"emailCampaigns.steps.emails.actions.sendTestEmails\"}}\n          @icon=\"send\"\n          @isDisabled={{not this.model.availableLanguages.length}}\n          @onClick={{fn this.openSendTestEmailDialog this.model true}}\n        />\n      {{/unless}}\n  \n      <nav.action\n        @label={{t \"global.properties.information\"}}\n        @icon=\"info\"\n        @onClick={{this.toggleDrawer}}\n      />\n    </view.navbar>\n  \n    <view.content>\n      <div class=\"flex items-center font-xl primary pb2\">\n        {{@model.name}}\n      </div>\n  \n      {{#if this.isLoading}}\n        <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{64}} />\n      {{else}}\n        <div class=\"primary font-md pb2 mw6\">\n          {{@model.descriptions.summary}}\n        </div>\n  \n        <UiIconButton\n          @isTertiary={{true}}\n          @icon=\"info\"\n          @label={{t \"emailCampaigns.moreInformation\"}}\n          @onClick={{fn (mut this.isCampaignInformationDialog) true}}\n        />\n      {{/if}}\n  \n      {{#if this.isLoading}}\n        <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{32}} />\n      {{else}}\n        {{#if this.model.availableLanguages.length}}\n          <div class=\"mt3\">\n            <UiLangSelect\n              @languages={{this.model.availableLanguages}}\n              @publishedLanguages={{this.model.publishedLanguages}}\n              @hideLanguageActions={{true}}\n              @selected={{if this.model.language this.model.language this.currentLocale}}\n              @onSelect={{perform this.changeLanguage}}\n            />\n          </div>\n        {{/if}}\n      {{/if}}\n  \n      <div class=\"bt b--secondary-10 mb4 mt4\"></div>\n  \n      {{#if (or this.changeLanguage.isRunning this.model.fetchMeta.isRunning this.isLoading)}}\n        <div class=\"mt4\">\n          <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{116}} />\n        </div>\n        <div class=\"mt3\">\n          <UiSkeleton @items={{2}} @itemsPerRow={{1}} @cardHeight={{360}} @gap={{40}} />\n        </div>\n      {{else}}\n        <div class=\"flex justify-between mb2 mt4\">\n          <div class=\"flex items-center font-lg\">\n            {{svg-jar \"click\" class=\"mr05\" width=\"20\" height=\"20\"}}\n            {{t \"emailCampaigns.steps.emails.trigger\"}}\n          </div>\n  \n          {{#unless this.isTriggerReadOnly}}\n            <UiButton\n              @icon=\"edit\"\n              @label={{t \"global.actions.edit\"}}\n              @isSecondary={{true}}\n              @onClick={{fn this.openEditorStep \"trigger\"}}\n            />\n          {{/unless}}\n        </div>\n  \n        <div class=\"mb3 pb1\">\n          <div class=\"flex flex pa3 br1 bg-secondary--10 w-100\">\n            {{svg-jar \"bolt-filled\" class=\"mr05\" height=\"20\"}}\n            <div class=\"flex flex-column\">\n              <div class=\"flex\">\n                <div class=\"font-sm font-medium primary mr1\">\n                  {{this.model.descriptions.trigger.event}}\n                </div>\n  \n                <UiPopover as |pop|>\n                  <pop.trigger>\n                    {{svg-jar \"info\" class=\"secondary mr2\" width=\"20\" height=\"20\"}}\n                  </pop.trigger>\n                  <pop.content>\n                    {{this.model.descriptions.trigger.details}}\n                  </pop.content>\n                </UiPopover>\n              </div>\n  \n              {{#each this.triggerSettingsMeta as |triggerSetting|}}\n                <div class=\"flex font-sm mt05 secondary\">\n                  <UiIconButton\n                    @class={{unless this.isReadOnly \"text-underline cpointer\"}}\n                    @isTertiary={{true}}\n                    @label={{triggerSetting.label}}\n                    @onClick={{fn this.openEditorStep \"trigger\"}}\n                  />\n  \n                  :\n                  {{#if\n                    (get (array-find triggerSetting.key this.model.configurations \"key\") \"value\")\n                  }}\n                    <div class=\"ml05\">\n                      {{amc-campaign-configuration-value\n                        (hash\n                          value=(get\n                            (array-find triggerSetting.key this.model.configurations \"key\") \"value\"\n                          )\n                          type=triggerSetting.type\n                        )\n                        this.configurationValueOptions\n                      }}\n                    </div>\n                  {{else}}\n                    <div class=\"ml05\">\n                      -\n                    </div>\n                  {{/if}}\n                </div>\n              {{/each}}\n            </div>\n          </div>\n        </div>\n  \n        <div class=\"flex justify-between mb2 mt4\">\n          <div class=\"flex items-center font-lg\">\n            {{svg-jar \"mail\" class=\"mr05\" width=\"20\" height=\"20\"}}\n            {{t \"emailCampaigns.steps.emails.title\"}}\n          </div>\n  \n          {{#unless this.isReadOnly}}\n            <UiButton\n              @icon=\"edit\"\n              @label={{t \"global.actions.edit\"}}\n              @isSecondary={{true}}\n              @onClick={{fn this.openEditorStep \"emails\"}}\n            />\n          {{/unless}}\n        </div>\n  \n        {{#unless this.emailSeries.length}}\n          <div class=\"flex flex-column pa3 br1 bg-secondary--10 w-100 items-center\">\n            <div class=\"font-md font-medium primary\">\n              {{t \"emailCampaigns.steps.emails.empty\"}}\n            </div>\n  \n            <UiIconButton\n              @class=\"mt1 {{unless this.isReadOnly 'cpointer'}}\"\n              @label={{t \"emailCampaigns.steps.emails.actions.createFirstEmailStep\"}}\n              @onClick={{fn this.openEditorStep \"emails\"}}\n            />\n          </div>\n        {{/unless}}\n  \n        {{#each this.emailSeries as |emailSeries index|}}\n          <div class=\"flex flex-column pa3 br1 bg-secondary--10 w-100\">\n            <div class=\"font-sm primary\">\n              {{if\n                emailSeries.label\n                (concat (t \"emailCampaigns.steps.emails.emailSeriesCount\" count=(inc index)) \" - \")\n                (t \"emailCampaigns.steps.emails.emailSeriesCount\" count=(inc index))\n              }}\n              <UiIconButton\n                @class={{unless this.isReadOnly \"text-underline cpointer\"}}\n                @isSecondary={{true}}\n                @label={{if emailSeries.label emailSeries.label \" - \"}}\n                @onClick={{fn this.openEmailSeries emailSeries}}\n              />\n            </div>\n  \n            <div\n              class=\"flex items-center font-sm font-medium mt1 {{unless this.isReadOnly 'cpointer'}}\"\n              role=\"button\"\n              {{on \"click\" (fn this.openEmailSeries emailSeries)}}\n            >\n              <div\n                class=\"flex items-center justify-center bg-blue--10 bg-blue--40--hover blue br1 ph05\"\n              >\n                {{svg-jar \"watch\" width=\"16\" height=\"16\"}}\n                {{#if (equal emailSeries.offsetInDays 0)}}\n                  {{t \"emailCampaigns.immediately\"}}\n                {{else}}\n                  {{t \"emailCampaigns.daysCount\" count=emailSeries.offsetInDays}}\n                {{/if}}\n              </div>\n              <div class=\"secondary ml05\">\n                {{t \"emailCampaigns.afterTrigger\"}}\n              </div>\n            </div>\n  \n            <div class=\"mt2\">\n              <div class=\"font-sm primary mb1\">\n                {{t \"emailCampaigns.steps.emails.variants\"}}\n              </div>\n  \n              {{#unless emailSeries.emails.length}}\n                <div class=\"flex flex-column items-center\">\n                  <div class=\"font-md font-medium primary\">\n                    {{t \"emailCampaigns.steps.emails.email.empty\"}}\n                  </div>\n  \n                  <UiIconButton\n                    @class=\"mt1 {{unless this.isReadOnly 'cpointer'}}\"\n                    @label={{t \"emailCampaigns.steps.emails.email.actions.createFirstEmailVariant\"}}\n                    @onClick={{fn this.createFirstEmail emailSeries}}\n                  />\n                </div>\n              {{/unless}}\n  \n              <UiList @items={{emailSeries.emails}} as |list email emailIndex|>\n                <list.item\n                  @title={{if\n                    (includes email.language email.availableLanguages)\n                    (if\n                      email.subject\n                      email.subject\n                      (t \"emailCampaigns.steps.emails.email.subjectMissing\")\n                    )\n                    (t \"emailCampaigns.steps.emails.email.placeholderText\")\n                  }}\n                  @description={{t \"emailCampaigns.steps.emails.variant\" count=(inc emailIndex)}}\n                  @onClick={{perform this.openPreviewDialog \"email\" email}}\n                  as |controls|\n                >\n                  <controls.left>\n                    <div class=\"flex items-center mr1\">\n                      <UiStatus @class=\"mr2\" @state={{if email.active \"success\" \"error\"}} />\n                      {{svg-jar \"mail\" width=\"20\" height=\"20\"}}\n                    </div>\n                  </controls.left>\n  \n                  {{#unless this.isReadOnly}}\n                    <controls.right>\n                      <div class=\"flex items-center mt1 pt05\">\n                        <UiItemMenu as |menu|>\n                          <menu.menuItem\n                            @label={{t \"global.actions.edit\"}}\n                            @onClick={{fn this.openEmail emailSeries email}}\n                          />\n                          <menu.menuItem\n                            @label={{t \"emailCampaigns.steps.emails.email.actions.sendTestEmail\"}}\n                            @onClick={{fn this.openSendTestEmailDialog email false}}\n                          />\n                        </UiItemMenu>\n                      </div>\n                    </controls.right>\n                  {{/unless}}\n                </list.item>\n              </UiList>\n            </div>\n          </div>\n  \n          {{#if (not (equal (inc index) this.model.emailSeries.length))}}\n            <div class=\"flex justify-center w-100\">\n              {{svg-jar \"arrow-down\" class=\"secondary mv1\"}}\n            </div>\n          {{/if}}\n        {{/each}}\n  \n        {{#if this.hasContributionStep}}\n          <div\n            class=\"flex justify-between mb2 mt4 pt1\"\n            {{did-insert (fn this.initVoucherPreview this.model.contribution)}}\n            {{did-update\n              (fn this.initVoucherPreview this.model.contribution)\n              this.model.contribution\n              this.model.contribution.value\n              this.model.contribution.image\n              this.model.contribution.policies\n              this.model.contribution.greeting\n            }}\n          >\n            <div class=\"flex items-center font-lg\">\n              {{svg-jar \"gift\" class=\"mr05\" width=\"20\" height=\"20\"}}\n              {{t \"emailCampaigns.steps.contribution.title\"}}\n            </div>\n  \n            {{#unless this.isReadOnly}}\n              <UiButton\n                @icon=\"edit\"\n                @label={{t \"global.actions.edit\"}}\n                @isSecondary={{true}}\n                @onClick={{fn this.openEditorStep \"contribution\"}}\n              />\n            {{/unless}}\n          </div>\n  \n          <div class=\"flex flex-column flex-row-sm bg-secondary--10 pa3 br1\">\n            <div class=\"flex flex-column w-100\">\n              {{#if this.model.contribution}}\n                <div class=\"flex mb3\">\n                  <UiBadge @state={{if this.model.contribution.active \"info\"}}>\n                    {{#if this.model.contribution.active}}\n                      {{t \"emailCampaigns.steps.contribution.states.active\"}}\n                    {{else}}\n                      {{t \"emailCampaigns.steps.contribution.states.inactive\"}}\n                    {{/if}}\n                  </UiBadge>\n                </div>\n              {{/if}}\n  \n              <div class=\"flex flex-column font-sm secondary\">\n                <div>\n                  <UiIconButton\n                    @class={{unless this.isReadOnly \"text-underline cpointer\"}}\n                    @isTertiary={{true}}\n                    @label={{t \"emailCampaigns.steps.contribution.value\"}}\n                    @onClick={{fn this.openEditorStep \"contribution\"}}\n                  />\n                </div>\n  \n                <div class=\"primary\">\n                  {{#if (or this.model.contribution.amount (equal this.model.contribution.amount 0))}}\n                    {{currency this.model.contribution.amount format=this.uiAppSettings.currency}}\n                  {{else}}\n                    -\n                  {{/if}}\n                </div>\n              </div>\n  \n              <div class=\"flex flex-column font-sm mt3 secondary\">\n                <div>\n                  <UiIconButton\n                    @class={{unless this.isReadOnly \"text-underline cpointer\"}}\n                    @isTertiary={{true}}\n                    @label={{t \"emailCampaigns.steps.contribution.policies\"}}\n                    @onClick={{fn this.openEditorStep \"contribution\"}}\n                  />\n                </div>\n  \n                <div class=\"primary break-all\">\n                  {{this._contributionPolicies}}\n                </div>\n              </div>\n  \n              <div class=\"flex flex-column font-sm mt3 secondary\">\n                <div>\n                  <UiIconButton\n                    @class={{unless this.isReadOnly \"text-underline cpointer\"}}\n                    @isTertiary={{true}}\n                    @label={{t \"emailCampaigns.steps.contribution.greeting\"}}\n                    @onClick={{fn this.openEditorStep \"contribution\"}}\n                  />\n                </div>\n                <div class=\"primary break-all\">\n                  {{this._contributionGreeting}}\n                </div>\n              </div>\n  \n              {{#if this._contributionCustomType}}\n                <div class=\"flex flex-column font-sm mt3 secondary\">\n                  <div>\n                    <UiIconButton\n                      @class={{unless this.isReadOnly \"text-underline cpointer\"}}\n                      @isTertiary={{true}}\n                      @label={{t \"emailCampaigns.steps.contribution.customType\"}}\n                      @onClick={{fn this.openEditorStep \"contribution\"}}\n                    />\n                  </div>\n                  <div class=\"primary break-all\">\n                    {{this._contributionCustomType}}\n                  </div>\n                </div>\n              {{/if}}\n            </div>\n  \n            <div class=\"flex mt2 mt0-sm\">\n              <div class=\"h-100 dn db-sm br b--secondary-20 mh4\"></div>\n              <div>\n                <AmcCampaign::EmailCampaign::Preview\n                  @onClick={{perform this.openPreviewDialog \"voucher\" this.model.contribution}}\n                  @isDisabled={{not this.model.contribution}}\n                  as |preview|\n                >\n                  <preview.content>\n                    {{#if (or this.isVoucherPreviewError (not this.model.contribution))}}\n                      <div\n                        class=\"w-100 h-100 flex justify-center items-center bg-secondary--20\"\n                      ></div>\n                    {{else}}\n                      <iframe\n                        id=\"voucher-thumbnail-iframe\"\n                        title=\"voucher-thumbnail-iframe\"\n                        class=\"w-100 h-100 br1\"\n                        frameBorder=\"0\"\n                      >\n                      </iframe>\n                    {{/if}}\n                  </preview.content>\n                </AmcCampaign::EmailCampaign::Preview>\n              </div>\n            </div>\n          </div>\n        {{/if}}\n  \n        {{#if this.hasConfigurationStep}}\n          <div class=\"flex justify-between mb2 mt4 pt1\">\n            <div class=\"flex items-center font-lg\">\n              {{svg-jar \"settings\" class=\"mr05\" width=\"20\" height=\"20\"}}\n              {{t \"emailCampaigns.steps.configurations.title\"}}\n            </div>\n  \n            {{#unless this.isReadOnly}}\n              <UiButton\n                @icon=\"edit\"\n                @label={{t \"global.actions.edit\"}}\n                @isSecondary={{true}}\n                @onClick={{fn this.openEditorStep \"configuration\"}}\n              />\n            {{/unless}}\n          </div>\n  \n          {{#each this.configurationsMeta as |config|}}\n            <div class=\"flex font-sm mt2 bg-secondary--10 primary pa3 br1\">\n              <UiIconButton\n                @class=\"secondary mr3 {{unless this.isReadOnly 'text-underline cpointer'}}\"\n                @isTertiary={{true}}\n                @label={{config.label}}\n                @onClick={{fn this.openEditorStep \"configuration\"}}\n              />\n  \n              {{#if (get (array-find config.key this.model.configurations \"key\") \"value\")}}\n                {{#if (equal config.type \"array\")}}\n                  <div class=\"flex flex-wrap ml3\">\n                    {{#each\n                      (get (array-find config.key this.model.configurations \"key\") \"value\")\n                      as |item|\n                    }}\n                      <UiChip @classNames=\"mr1 mb1\" @theme=\"grey\" @isReadOnly={{true}}>\n                        {{item}}\n                      </UiChip>\n                    {{/each}}\n                  </div>\n                {{else if (equal config.type \"boolean\")}}\n                  <UiSwitch\n                    @class=\"ml3\"\n                    @value={{get (array-find config.key this.model.configurations \"key\") \"value\"}}\n                    @isReadOnly={{true}}\n                  />\n                {{else}}\n                  <div class=\"primary ml3\">\n                    {{amc-campaign-configuration-value\n                      (hash\n                        value=(get (array-find config.key this.model.configurations \"key\") \"value\")\n                        type=config.type\n                      )\n                      this.configurationValueOptions\n                    }}\n                  </div>\n                {{/if}}\n              {{else}}\n                {{#if (equal config.type \"boolean\")}}\n                  <UiSwitch @class=\"ml3\" @value={{false}} @isReadOnly={{true}} />\n                {{else}}\n                  <div class=\"primary mb1 ml3\">\n                    -\n                  </div>\n                {{/if}}\n              {{/if}}\n            </div>\n          {{/each}}\n        {{/if}}\n      {{/if}}\n    </view.content>\n  \n    {{#unless this.isReadOnly}}\n      <view.footer>\n        <UiButton\n          @class=\"absolute bottom-3 right-3\"\n          @icon=\"edit\"\n          @isFabButton={{true}}\n          @onClick={{this.transitionToEdit}}\n        />\n      </view.footer>\n    {{/unless}}\n  </UiContentViews>\n  \n  <AmcCampaign::EmailCampaign::InformationDrawer\n    @stateKey={{this.stateKey}}\n    @onClose={{this.toggleDrawer}}\n    @model={{this.model}}\n  />\n  \n  {{#if this.isSendTestEmailDialogOpen}}\n    <AmcCampaign::TestEmailDialog\n      @model={{this.selectedModel}}\n      @campaignId={{this.model.id}}\n      @onClose={{fn (mut this.isSendTestEmailDialogOpen) false}}\n      @isBulk={{this.isBulkAction}}\n      @campaignType={{@model.type}}\n    />\n  {{/if}}\n  \n  {{#if this.isVoucherPreviewDialog}}\n    <UiPreviewDialog\n      @title={{t \"emailCampaigns.steps.contribution.previewDialog.title\"}}\n      @availableLanguages={{this.selectedVoucherModel.availableLanguages}}\n      @language={{this.selectedVoucherPreviewLanguage}}\n      @isLoading={{this.openPreviewDialog.isRunning}}\n      @onLanguageChange={{perform this.openPreviewDialog \"voucher\" this.selectedVoucherModel}}\n      @onClose={{fn (mut this.isVoucherPreviewDialog) false}}\n      as |preview|\n    >\n      <preview.content>\n        <iframe\n          title={{t \"emailCampaigns.steps.voucher.previewDialog.title\"}}\n          id=\"voucher-preview-iframe\"\n          class=\"w-100 h-100 dn flex flex-column flex-grow-1\"\n          frameBorder=\"0\"\n        >\n        </iframe>\n      </preview.content>\n    </UiPreviewDialog>\n  {{/if}}\n  \n  {{#if this.isEmailPreviewDialog}}\n    <UiPreviewDialog\n      @title={{t \"emailCampaigns.steps.emails.email.previewDialog.title\"}}\n      @availableLanguages={{this.selectedEmailModel.availableLanguages}}\n      @language={{this.selectedEmailPreviewLanguage}}\n      @isLoading={{this.openPreviewDialog.isRunning}}\n      @onLanguageChange={{perform this.openPreviewDialog \"email\" this.selectedEmailModel}}\n      @onClose={{fn (mut this.isEmailPreviewDialog) false}}\n      as |preview|\n    >\n      <preview.content>\n        <iframe\n          title={{t \"emailCampaigns.steps.emails.email.previewDialog.title\"}}\n          id=\"email-preview-iframe\"\n          class=\"w-100 h-100 dn flex flex-column flex-grow-1\"\n          frameBorder=\"0\"\n        >\n        </iframe>\n      </preview.content>\n    </UiPreviewDialog>\n  {{/if}}\n  \n  {{#if this.isLandingPagePreviewDialog}}\n    <UiPreviewDialog\n      @title={{t \"emailCampaigns.steps.landingPage.previewDialog.title\"}}\n      @availableLanguages={{this.model.availableLanguages}}\n      @language={{this.currentLocale}}\n      @isLoading={{this.openPreviewDialog.isRunning}}\n      @onLanguageChange={{perform this.openPreviewDialog \"landing-page\" this.model}}\n      @onClose={{fn (mut this.isLandingPagePreviewDialog) false}}\n      as |preview|\n    >\n      <preview.content>\n        <iframe\n          title={{t \"emailCampaigns.steps.landingPage.previewDialog.title\"}}\n          id=\"landing-page-preview-iframe\"\n          class=\"w-100 h-100 dn flex flex-column flex-grow-1\"\n          frameBorder=\"0\"\n        >\n        </iframe>\n      </preview.content>\n    </UiPreviewDialog>\n  {{/if}}\n  \n  <AmcCampaign::EmailCampaign::CreateDialog\n    @title={{t \"emailCampaigns.createDialog.title\"}}\n    @description={{t \"emailCampaigns.createDialog.description\"}}\n    @isOpen={{this.isCampaignInformationDialog}}\n    @isCampaignCreatable={{false}}\n    @model={{this.model}}\n    @onClose={{fn (mut this.isCampaignInformationDialog) false}}\n  />\n  */\n  {\n    \"id\": \"oXtYOF17\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\"],[[30,1,[\\\"name\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,2,[\\\"navbar\\\"]],[[16,\\\"data-test-detail-navbar\\\",true]],[[\\\"@onClose\\\"],[[30,3]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"      \\\"],[8,[30,4,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"global.actions.publish\\\"],null],\\\"publish\\\",[28,[37,3],[[30,0,[\\\"model\\\",\\\"availableLanguages\\\",\\\"length\\\"]]],null],[30,0,[\\\"onPublish\\\"]]]],null],[1,\\\"\\\\n      \\\"],[8,[30,4,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"emailCampaigns.steps.emails.actions.sendTestEmails\\\"],null],\\\"send\\\",[28,[37,3],[[30,0,[\\\"model\\\",\\\"availableLanguages\\\",\\\"length\\\"]]],null],[28,[37,4],[[30,0,[\\\"openSendTestEmailDialog\\\"]],[30,0,[\\\"model\\\"]],true],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[30,4,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"global.properties.information\\\"],null],\\\"info\\\",[30,0,[\\\"toggleDrawer\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[4]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex items-center font-xl primary pb2\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,64]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"primary font-md pb2 mw6\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"descriptions\\\",\\\"summary\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,7],null,[[\\\"@isTertiary\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onClick\\\"],[true,\\\"info\\\",[28,[37,2],[\\\"emailCampaigns.moreInformation\\\"],null],[28,[37,4],[[28,[37,8],[[30,0,[\\\"isCampaignInformationDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,32]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"availableLanguages\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mt3\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@languages\\\",\\\"@publishedLanguages\\\",\\\"@hideLanguageActions\\\",\\\"@selected\\\",\\\"@onSelect\\\"],[[30,0,[\\\"model\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"model\\\",\\\"publishedLanguages\\\"]],true,[52,[30,0,[\\\"model\\\",\\\"language\\\"]],[30,0,[\\\"model\\\",\\\"language\\\"]],[30,0,[\\\"currentLocale\\\"]]],[28,[37,10],[[30,0,[\\\"changeLanguage\\\"]]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"bt b--secondary-10 mb4 mt4\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"changeLanguage\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"fetchMeta\\\",\\\"isRunning\\\"]],[30,0,[\\\"isLoading\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mt4\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,116]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mt3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[2,1,360,40]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"flex justify-between mb2 mt4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex items-center font-lg\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,12],[\\\"click\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"mr05\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,2],[\\\"emailCampaigns.steps.emails.trigger\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isTriggerReadOnly\\\"]]],[[[1,\\\"          \\\"],[8,[39,13],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"edit\\\",[28,[37,2],[\\\"global.actions.edit\\\"],null],true,[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"trigger\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mb3 pb1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex flex pa3 br1 bg-secondary--10 w-100\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,12],[\\\"bolt-filled\\\"],[[\\\"class\\\",\\\"height\\\"],[\\\"mr05\\\",\\\"20\\\"]]]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"font-sm font-medium primary mr1\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"model\\\",\\\"descriptions\\\",\\\"trigger\\\",\\\"event\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[8,[39,14],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,5,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[28,[35,12],[\\\"info\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"secondary mr2\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[8,[30,5,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"model\\\",\\\"descriptions\\\",\\\"trigger\\\",\\\"details\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[5]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"triggerSettingsMeta\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,0,\\\"flex font-sm mt05 secondary\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@isTertiary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"],true,[30,6,[\\\"label\\\"]],[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"trigger\\\"],null]]],null],[1,\\\"\\\\n\\\\n                :\\\\n\\\"],[41,[28,[37,17],[[28,[37,18],[[30,6,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"ml05\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,19],[[28,[37,20],null,[[\\\"value\\\",\\\"type\\\"],[[28,[37,17],[[28,[37,18],[[30,6,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null],[30,6,[\\\"type\\\"]]]]],[30,0,[\\\"configurationValueOptions\\\"]]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"ml05\\\"],[12],[1,\\\"\\\\n                    -\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex justify-between mb2 mt4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex items-center font-lg\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,12],[\\\"mail\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"mr05\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,2],[\\\"emailCampaigns.steps.emails.title\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"          \\\"],[8,[39,13],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"edit\\\",[28,[37,2],[\\\"global.actions.edit\\\"],null],true,[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"emails\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"emailSeries\\\",\\\"length\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column pa3 br1 bg-secondary--10 w-100 items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-md font-medium primary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,2],[\\\"emailCampaigns.steps.emails.empty\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@onClick\\\"],[[29,[\\\"mt1 \\\",[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"cpointer\\\"]]],[28,[37,2],[\\\"emailCampaigns.steps.emails.actions.createFirstEmailStep\\\"],null],[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"emails\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"emailSeries\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column pa3 br1 bg-secondary--10 w-100\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm primary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[52,[30,7,[\\\"label\\\"]],[28,[37,21],[[28,[37,2],[\\\"emailCampaigns.steps.emails.emailSeriesCount\\\"],[[\\\"count\\\"],[[28,[37,22],[[30,8]],null]]]],\\\" - \\\"],null],[28,[37,2],[\\\"emailCampaigns.steps.emails.emailSeriesCount\\\"],[[\\\"count\\\"],[[28,[37,22],[[30,8]],null]]]]]],[1,\\\"\\\\n            \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@isSecondary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"],true,[52,[30,7,[\\\"label\\\"]],[30,7,[\\\"label\\\"]],\\\" - \\\"],[28,[37,4],[[30,0,[\\\"openEmailSeries\\\"]],[30,7]],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[11,0],[16,0,[29,[\\\"flex items-center font-sm font-medium mt1 \\\",[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"cpointer\\\"]]]],[24,\\\"role\\\",\\\"button\\\"],[4,[38,23],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"openEmailSeries\\\"]],[30,7]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex items-center justify-center bg-blue--10 bg-blue--40--hover blue br1 ph05\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,12],[\\\"watch\\\"],[[\\\"width\\\",\\\"height\\\"],[\\\"16\\\",\\\"16\\\"]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,7,[\\\"offsetInDays\\\"]],0],null],[[[1,\\\"                \\\"],[1,[28,[35,2],[\\\"emailCampaigns.immediately\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,2],[\\\"emailCampaigns.daysCount\\\"],[[\\\"count\\\"],[[30,7,[\\\"offsetInDays\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"secondary ml05\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],[\\\"emailCampaigns.afterTrigger\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"font-sm primary mb1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],[\\\"emailCampaigns.steps.emails.variants\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,7,[\\\"emails\\\",\\\"length\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"flex flex-column items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"font-md font-medium primary\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,2],[\\\"emailCampaigns.steps.emails.email.empty\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@onClick\\\"],[[29,[\\\"mt1 \\\",[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"cpointer\\\"]]],[28,[37,2],[\\\"emailCampaigns.steps.emails.email.actions.createFirstEmailVariant\\\"],null],[28,[37,4],[[30,0,[\\\"createFirstEmail\\\"]],[30,7]],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[8,[39,25],null,[[\\\"@items\\\"],[[30,7,[\\\"emails\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,9,[\\\"item\\\"]],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@onClick\\\"],[[52,[28,[37,26],[[30,10,[\\\"language\\\"]],[30,10,[\\\"availableLanguages\\\"]]],null],[52,[30,10,[\\\"subject\\\"]],[30,10,[\\\"subject\\\"]],[28,[37,2],[\\\"emailCampaigns.steps.emails.email.subjectMissing\\\"],null]],[28,[37,2],[\\\"emailCampaigns.steps.emails.email.placeholderText\\\"],null]],[28,[37,2],[\\\"emailCampaigns.steps.emails.variant\\\"],[[\\\"count\\\"],[[28,[37,22],[[30,11]],null]]]],[28,[37,10],[[30,0,[\\\"openPreviewDialog\\\"]],\\\"email\\\",[30,10]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,12,[\\\"left\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"flex items-center mr1\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,27],null,[[\\\"@class\\\",\\\"@state\\\"],[\\\"mr2\\\",[52,[30,10,[\\\"active\\\"]],\\\"success\\\",\\\"error\\\"]]],null],[1,\\\"\\\\n                    \\\"],[1,[28,[35,12],[\\\"mail\\\"],[[\\\"width\\\",\\\"height\\\"],[\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"                  \\\"],[8,[30,12,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"flex items-center mt1 pt05\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,28],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[8,[30,13,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"global.actions.edit\\\"],null],[28,[37,4],[[30,0,[\\\"openEmail\\\"]],[30,7],[30,10]],null]]],null],[1,\\\"\\\\n                        \\\"],[8,[30,13,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"emailCampaigns.steps.emails.email.actions.sendTestEmail\\\"],null],[28,[37,4],[[30,0,[\\\"openSendTestEmailDialog\\\"]],[30,10],false],null]]],null],[1,\\\"\\\\n                      \\\"]],[13]]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"]],[12]]]]],[1,\\\"\\\\n            \\\"]],[9,10,11]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[[28,[37,24],[[28,[37,22],[[30,8]],null],[30,0,[\\\"model\\\",\\\"emailSeries\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex justify-center w-100\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,12],[\\\"arrow-down\\\"],[[\\\"class\\\"],[\\\"secondary mv1\\\"]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[7,8]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasContributionStep\\\"]],[[[1,\\\"        \\\"],[11,0],[24,0,\\\"flex justify-between mb2 mt4 pt1\\\"],[4,[38,29],[[28,[37,4],[[30,0,[\\\"initVoucherPreview\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\"]]],null]],null],[4,[38,30],[[28,[37,4],[[30,0,[\\\"initVoucherPreview\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\"]]],null],[30,0,[\\\"model\\\",\\\"contribution\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"image\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"policies\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"greeting\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex items-center font-lg\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,12],[\\\"gift\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"mr05\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n            \\\"],[1,[28,[35,2],[\\\"emailCampaigns.steps.contribution.title\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"            \\\"],[8,[39,13],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"edit\\\",[28,[37,2],[\\\"global.actions.edit\\\"],null],true,[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"contribution\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"flex flex-column flex-row-sm bg-secondary--10 pa3 br1\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex flex-column w-100\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"contribution\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"flex mb3\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,31],null,[[\\\"@state\\\"],[[52,[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"active\\\"]],\\\"info\\\"]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"active\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,2],[\\\"emailCampaigns.steps.contribution.states.active\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[1,[28,[35,2],[\\\"emailCampaigns.steps.contribution.states.inactive\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex flex-column font-sm secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@isTertiary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"],true,[28,[37,2],[\\\"emailCampaigns.steps.contribution.value\\\"],null],[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"contribution\\\"],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"primary\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"amount\\\"]],[28,[37,24],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"amount\\\"]],0],null]],null],[[[1,\\\"                  \\\"],[1,[28,[35,32],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"amount\\\"]]],[[\\\"format\\\"],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  -\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"flex flex-column font-sm mt3 secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@isTertiary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"],true,[28,[37,2],[\\\"emailCampaigns.steps.contribution.policies\\\"],null],[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"contribution\\\"],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"primary break-all\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"_contributionPolicies\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"flex flex-column font-sm mt3 secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@isTertiary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"],true,[28,[37,2],[\\\"emailCampaigns.steps.contribution.greeting\\\"],null],[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"contribution\\\"],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"primary break-all\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"_contributionGreeting\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_contributionCustomType\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"flex flex-column font-sm mt3 secondary\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[12],[1,\\\"\\\\n                  \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@isTertiary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"],true,[28,[37,2],[\\\"emailCampaigns.steps.contribution.customType\\\"],null],[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"contribution\\\"],null]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"primary break-all\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"_contributionCustomType\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"flex mt2 mt0-sm\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"h-100 dn db-sm br b--secondary-20 mh4\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[8,[39,33],null,[[\\\"@onClick\\\",\\\"@isDisabled\\\"],[[28,[37,10],[[30,0,[\\\"openPreviewDialog\\\"]],\\\"voucher\\\",[30,0,[\\\"model\\\",\\\"contribution\\\"]]],null],[28,[37,3],[[30,0,[\\\"model\\\",\\\"contribution\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,14,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"isVoucherPreviewError\\\"]],[28,[37,3],[[30,0,[\\\"model\\\",\\\"contribution\\\"]]],null]],null],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"w-100 h-100 flex justify-center items-center bg-secondary--20\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,\\\"iframe\\\"],[14,1,\\\"voucher-thumbnail-iframe\\\"],[14,\\\"title\\\",\\\"voucher-thumbnail-iframe\\\"],[14,0,\\\"w-100 h-100 br1\\\"],[14,\\\"frameBorder\\\",\\\"0\\\"],[12],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[14]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasConfigurationStep\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex justify-between mb2 mt4 pt1\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex items-center font-lg\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,12],[\\\"settings\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"mr05\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n            \\\"],[1,[28,[35,2],[\\\"emailCampaigns.steps.configurations.title\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"            \\\"],[8,[39,13],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"edit\\\",[28,[37,2],[\\\"global.actions.edit\\\"],null],true,[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"configuration\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"configurationsMeta\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex font-sm mt2 bg-secondary--10 primary pa3 br1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@isTertiary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[29,[\\\"secondary mr3 \\\",[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"]]],true,[30,15,[\\\"label\\\"]],[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"configuration\\\"],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,17],[[28,[37,18],[[30,15,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null],[[[41,[28,[37,24],[[30,15,[\\\"type\\\"]],\\\"array\\\"],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"flex flex-wrap ml3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[28,[37,17],[[28,[37,18],[[30,15,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null]],null]],null],null,[[[1,\\\"                    \\\"],[8,[39,34],null,[[\\\"@classNames\\\",\\\"@theme\\\",\\\"@isReadOnly\\\"],[\\\"mr1 mb1\\\",\\\"grey\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[1,[30,16]],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[16]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,24],[[30,15,[\\\"type\\\"]],\\\"boolean\\\"],null],[[[1,\\\"                \\\"],[8,[39,35],null,[[\\\"@class\\\",\\\"@value\\\",\\\"@isReadOnly\\\"],[\\\"ml3\\\",[28,[37,17],[[28,[37,18],[[30,15,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"primary ml3\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,19],[[28,[37,20],null,[[\\\"value\\\",\\\"type\\\"],[[28,[37,17],[[28,[37,18],[[30,15,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null],[30,15,[\\\"type\\\"]]]]],[30,0,[\\\"configurationValueOptions\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"]],[]]]],[]]]],[]],[[[41,[28,[37,24],[[30,15,[\\\"type\\\"]],\\\"boolean\\\"],null],[[[1,\\\"                \\\"],[8,[39,35],null,[[\\\"@class\\\",\\\"@value\\\",\\\"@isReadOnly\\\"],[\\\"ml3\\\",false,true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"primary mb1 ml3\\\"],[12],[1,\\\"\\\\n                  -\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[15]],null]],[]],null]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"    \\\"],[8,[30,2,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"edit\\\",true,[30,0,[\\\"transitionToEdit\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[2]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,36],null,[[\\\"@stateKey\\\",\\\"@onClose\\\",\\\"@model\\\"],[[30,0,[\\\"stateKey\\\"]],[30,0,[\\\"toggleDrawer\\\"]],[30,0,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isSendTestEmailDialogOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,37],null,[[\\\"@model\\\",\\\"@campaignId\\\",\\\"@onClose\\\",\\\"@isBulk\\\",\\\"@campaignType\\\"],[[30,0,[\\\"selectedModel\\\"]],[30,0,[\\\"model\\\",\\\"id\\\"]],[28,[37,4],[[28,[37,8],[[30,0,[\\\"isSendTestEmailDialogOpen\\\"]]],null],false],null],[30,0,[\\\"isBulkAction\\\"]],[30,1,[\\\"type\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isVoucherPreviewDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@title\\\",\\\"@availableLanguages\\\",\\\"@language\\\",\\\"@isLoading\\\",\\\"@onLanguageChange\\\",\\\"@onClose\\\"],[[28,[37,2],[\\\"emailCampaigns.steps.contribution.previewDialog.title\\\"],null],[30,0,[\\\"selectedVoucherModel\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"selectedVoucherPreviewLanguage\\\"]],[30,0,[\\\"openPreviewDialog\\\",\\\"isRunning\\\"]],[28,[37,10],[[30,0,[\\\"openPreviewDialog\\\"]],\\\"voucher\\\",[30,0,[\\\"selectedVoucherModel\\\"]]],null],[28,[37,4],[[28,[37,8],[[30,0,[\\\"isVoucherPreviewDialog\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,17,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"iframe\\\"],[15,\\\"title\\\",[28,[37,2],[\\\"emailCampaigns.steps.voucher.previewDialog.title\\\"],null]],[14,1,\\\"voucher-preview-iframe\\\"],[14,0,\\\"w-100 h-100 dn flex flex-column flex-grow-1\\\"],[14,\\\"frameBorder\\\",\\\"0\\\"],[12],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[17]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEmailPreviewDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@title\\\",\\\"@availableLanguages\\\",\\\"@language\\\",\\\"@isLoading\\\",\\\"@onLanguageChange\\\",\\\"@onClose\\\"],[[28,[37,2],[\\\"emailCampaigns.steps.emails.email.previewDialog.title\\\"],null],[30,0,[\\\"selectedEmailModel\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"selectedEmailPreviewLanguage\\\"]],[30,0,[\\\"openPreviewDialog\\\",\\\"isRunning\\\"]],[28,[37,10],[[30,0,[\\\"openPreviewDialog\\\"]],\\\"email\\\",[30,0,[\\\"selectedEmailModel\\\"]]],null],[28,[37,4],[[28,[37,8],[[30,0,[\\\"isEmailPreviewDialog\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,18,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"iframe\\\"],[15,\\\"title\\\",[28,[37,2],[\\\"emailCampaigns.steps.emails.email.previewDialog.title\\\"],null]],[14,1,\\\"email-preview-iframe\\\"],[14,0,\\\"w-100 h-100 dn flex flex-column flex-grow-1\\\"],[14,\\\"frameBorder\\\",\\\"0\\\"],[12],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[18]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLandingPagePreviewDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@title\\\",\\\"@availableLanguages\\\",\\\"@language\\\",\\\"@isLoading\\\",\\\"@onLanguageChange\\\",\\\"@onClose\\\"],[[28,[37,2],[\\\"emailCampaigns.steps.landingPage.previewDialog.title\\\"],null],[30,0,[\\\"model\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"currentLocale\\\"]],[30,0,[\\\"openPreviewDialog\\\",\\\"isRunning\\\"]],[28,[37,10],[[30,0,[\\\"openPreviewDialog\\\"]],\\\"landing-page\\\",[30,0,[\\\"model\\\"]]],null],[28,[37,4],[[28,[37,8],[[30,0,[\\\"isLandingPagePreviewDialog\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,19,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"iframe\\\"],[15,\\\"title\\\",[28,[37,2],[\\\"emailCampaigns.steps.landingPage.previewDialog.title\\\"],null]],[14,1,\\\"landing-page-preview-iframe\\\"],[14,0,\\\"w-100 h-100 dn flex flex-column flex-grow-1\\\"],[14,\\\"frameBorder\\\",\\\"0\\\"],[12],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[19]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,39],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@isOpen\\\",\\\"@isCampaignCreatable\\\",\\\"@model\\\",\\\"@onClose\\\"],[[28,[37,2],[\\\"emailCampaigns.createDialog.title\\\"],null],[28,[37,2],[\\\"emailCampaigns.createDialog.description\\\"],null],[30,0,[\\\"isCampaignInformationDialog\\\"]],false,[30,0,[\\\"model\\\"]],[28,[37,4],[[28,[37,8],[[30,0,[\\\"isCampaignInformationDialog\\\"]]],null],false],null]]],null]],[\\\"@model\\\",\\\"view\\\",\\\"@onClose\\\",\\\"nav\\\",\\\"pop\\\",\\\"triggerSetting\\\",\\\"emailSeries\\\",\\\"index\\\",\\\"list\\\",\\\"email\\\",\\\"emailIndex\\\",\\\"controls\\\",\\\"menu\\\",\\\"preview\\\",\\\"config\\\",\\\"item\\\",\\\"preview\\\",\\\"preview\\\",\\\"preview\\\"],false,[\\\"ui-content-views\\\",\\\"unless\\\",\\\"t\\\",\\\"not\\\",\\\"fn\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-icon-button\\\",\\\"mut\\\",\\\"ui-lang-select\\\",\\\"perform\\\",\\\"or\\\",\\\"svg-jar\\\",\\\"ui-button\\\",\\\"ui-popover\\\",\\\"each\\\",\\\"-track-array\\\",\\\"get\\\",\\\"array-find\\\",\\\"amc-campaign-configuration-value\\\",\\\"hash\\\",\\\"concat\\\",\\\"inc\\\",\\\"on\\\",\\\"equal\\\",\\\"ui-list\\\",\\\"includes\\\",\\\"ui-status\\\",\\\"ui-item-menu\\\",\\\"did-insert\\\",\\\"did-update\\\",\\\"ui-badge\\\",\\\"currency\\\",\\\"amc-campaign/email-campaign/preview\\\",\\\"ui-chip\\\",\\\"ui-switch\\\",\\\"amc-campaign/email-campaign/information-drawer\\\",\\\"amc-campaign/test-email-dialog\\\",\\\"ui-preview-dialog\\\",\\\"amc-campaign/email-campaign/create-dialog\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/detail-view.hbs\",\n    \"isStrictMode\": false\n  });\n  const STATE_KEY = 'information-drawer';\n\n  /**\n   * Component which represents a single email (or new) in dialog\n   *\n   * @class email-dialog\n   */\n  let AmcCampaignEmailCampaignDetailView = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberConcurrency.task)(function* (locale) {\n    if (locale === this.currentLocale) {\n      return;\n    }\n    this.isVoucherPreviewError = false;\n    this.uiAppSettings.setLocale(locale);\n    yield this.model.reload({\n      adapterOptions: {\n        useNewApi: true\n      }\n    });\n    yield this.model.fetchMeta.perform(locale);\n  }), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _dec6 = (0, _emberArgTypes.arg)(_propTypes.func), _dec7 = (0, _emberArgTypes.arg)(_propTypes.func), _dec8 = (0, _emberConcurrency.task)(function* (type, model, selectedLanguage) {\n    const language = selectedLanguage && typeof selectedLanguage === 'string' ? selectedLanguage : model.language || this.currentLocale;\n    const baseUrl = `${_environment.default.APP.publicHost}/${this.organizationId}`;\n    let url;\n    if (type === 'voucher') {\n      this.isVoucherPreviewDialog = true;\n      this.selectedVoucherPreviewLanguage = language;\n      this.selectedVoucherModel = model;\n      url = `${baseUrl}/contributions/${model.id}/preview`;\n    } else if (type === 'email') {\n      this.isEmailPreviewDialog = true;\n      this.selectedEmailPreviewLanguage = language;\n      this.selectedEmailModel = model;\n      url = `${baseUrl}/emails/${model.id}/preview`;\n    }\n    try {\n      // Fetch and display content for preview dialog\n      const response = yield this.authenticatedFetch.fetch(url, {\n        headers: {\n          'Accept-Language': language\n        }\n      });\n      if (!response || !response.ok) {\n        throw new Error();\n      }\n      const html = yield response.text();\n      const iframe = document.getElementById(`${type}-preview-iframe`);\n      const iframeDocument = iframe.contentDocument;\n      iframeDocument.open();\n      iframeDocument.write((0, _string.htmlSafe)(html));\n      iframeDocument.close();\n    } catch (error) {\n      if (type === 'voucher') {\n        this.isVoucherPreviewDialog = false;\n      } else if (type === 'email') {\n        this.isEmailPreviewDialog = false;\n      }\n    }\n  }), _class = class AmcCampaignEmailCampaignDetailView extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor2, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiState\", _descriptor5, this);\n      _defineProperty(this, \"stateKey\", STATE_KEY);\n      _initializerDefineProperty(this, \"model\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isVoucherPreviewDialog\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedVoucherModel\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isEmailPreviewDialog\", _descriptor10, this);\n      _initializerDefineProperty(this, \"selectedEmailModel\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isLandingPagePreviewDialog\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isSendTestEmailDialogOpen\", _descriptor13, this);\n      _initializerDefineProperty(this, \"isCampaignInformationDialog\", _descriptor14, this);\n      _initializerDefineProperty(this, \"isBulkAction\", _descriptor15, this);\n      _initializerDefineProperty(this, \"selectedModel\", _descriptor16, this);\n      _initializerDefineProperty(this, \"isVoucherPreviewError\", _descriptor17, this);\n      _initializerDefineProperty(this, \"selectedEmailPreviewLanguage\", _descriptor18, this);\n      _initializerDefineProperty(this, \"selectedVoucherPreviewLanguage\", _descriptor19, this);\n      _initializerDefineProperty(this, \"changeLanguage\", _descriptor20, this);\n      _initializerDefineProperty(this, \"onClose\", _descriptor21, this);\n      _initializerDefineProperty(this, \"onPublish\", _descriptor22, this);\n      _initializerDefineProperty(this, \"setInitialEditorStep\", _descriptor23, this);\n      _initializerDefineProperty(this, \"createEmail\", _descriptor24, this);\n      _initializerDefineProperty(this, \"openPreviewDialog\", _descriptor25, this);\n    }\n    get currentLocale() {\n      var _this$uiAppSettings;\n      return (_this$uiAppSettings = this.uiAppSettings) === null || _this$uiAppSettings === void 0 ? void 0 : _this$uiAppSettings.currentLocale;\n    }\n    get organizationId() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id;\n    }\n    get isLoading() {\n      var _this$model;\n      if (!((_this$model = this.model) !== null && _this$model !== void 0 && _this$model.code)) {\n        return true;\n      }\n      return false;\n    }\n    get emailSeries() {\n      if (this.model.emailSeries.length <= 1) {\n        return this.model.emailSeries;\n      }\n      return this.model.emailSeries.toArray().sort((a, b) => a.offsetInDays - b.offsetInDays);\n    }\n    get triggerSettingsMeta() {\n      var _this$model2, _this$model3;\n      if (!((_this$model2 = this.model) !== null && _this$model2 !== void 0 && _this$model2.meta) || ((_this$model3 = this.model) === null || _this$model3 === void 0 || (_this$model3 = _this$model3.meta) === null || _this$model3 === void 0 || (_this$model3 = _this$model3.configurations) === null || _this$model3 === void 0 ? void 0 : _this$model3.length) <= 0) {\n        return [];\n      }\n      const keys = Object.keys(this.model.meta).sort()[0];\n      const triggerSettingKeys = ['time_before_arrival', 'time_since_departure', 'time_since_inquiry', 'first_mailing_interval', 'delivery_interval_to_birthday', 'time_since_voucher'];\n      const triggerSettingsMeta = this.model.meta[keys].configurations.filter(config => triggerSettingKeys.includes(config.key));\n      return triggerSettingsMeta;\n    }\n    get configurationsMeta() {\n      var _this$model4, _this$model5;\n      if (!((_this$model4 = this.model) !== null && _this$model4 !== void 0 && _this$model4.meta) || ((_this$model5 = this.model) === null || _this$model5 === void 0 || (_this$model5 = _this$model5.meta) === null || _this$model5 === void 0 || (_this$model5 = _this$model5.configurations) === null || _this$model5 === void 0 ? void 0 : _this$model5.length) <= 0) {\n        return [];\n      }\n      const key = Object.keys(this.model.meta).sort()[0];\n      const triggerSettingKeys = ['time_before_arrival', 'time_since_departure', 'time_since_inquiry', 'first_mailing_interval', 'delivery_interval_to_birthday', 'time_since_voucher'];\n      const configurations = this.model.meta[key].configurations.filter(config => !triggerSettingKeys.includes(config.key));\n      return configurations;\n    }\n    get hasConfigurationStep() {\n      if (this.model.fetchMeta.isRunning || !_constants.EMAIL_CAMPAIGN_TYPES[this.model.code]) {\n        return false;\n      }\n      const {\n        steps\n      } = _constants.EMAIL_CAMPAIGN_TYPES[this.model.code];\n      return steps.includes('configuration') && this.configurationsMeta.length > 0;\n    }\n    get hasContributionStep() {\n      if (this.model.fetchMeta.isRunning || !_constants.EMAIL_CAMPAIGN_TYPES[this.model.code]) {\n        return false;\n      }\n      const {\n        steps\n      } = _constants.EMAIL_CAMPAIGN_TYPES[this.model.code];\n      return steps.includes('voucher');\n    }\n    get hasTriggerStep() {\n      if (this.model.fetchMeta.isRunning || !_constants.EMAIL_CAMPAIGN_TYPES[this.model.code]) {\n        return false;\n      }\n      const {\n        steps\n      } = _constants.EMAIL_CAMPAIGN_TYPES[this.model.code];\n      return steps.includes('trigger') && this.triggerSettingsMeta.length > 0;\n    }\n    get isTriggerReadOnly() {\n      return this.isReadOnly || this.triggerSettingsMeta.length === 0;\n    }\n    get _contributionGreeting() {\n      var _this$model$contribut;\n      if ((_this$model$contribut = this.model.contribution) !== null && _this$model$contribut !== void 0 && _this$model$contribut.greeting) {\n        return (0, _string.htmlSafe)(_dompurify.default.sanitize(this.model.contribution.greeting));\n      } else if (this.model.contribution) {\n        return (0, _string.htmlSafe)(_dompurify.default.sanitize(this.defaultGreetingMessage));\n      }\n      return '-';\n    }\n    get _contributionCustomType() {\n      var _this$model$contribut2;\n      if ((_this$model$contribut2 = this.model.contribution) !== null && _this$model$contribut2 !== void 0 && _this$model$contribut2.customType) {\n        return (0, _string.htmlSafe)(_dompurify.default.sanitize(this.model.contribution.customType));\n      }\n      return null;\n    }\n    get _contributionPolicies() {\n      var _this$model$contribut3;\n      if ((_this$model$contribut3 = this.model.contribution) !== null && _this$model$contribut3 !== void 0 && _this$model$contribut3.policies) {\n        return (0, _string.htmlSafe)(_dompurify.default.sanitize(this.model.contribution.policies));\n      }\n      return '-';\n    }\n\n    /**\n     * computed options used to format the configuration values\n     *\n     * @computed configurationValueOptions\n     * @returns {Object}\n     */\n    get configurationValueOptions() {\n      return {\n        currency: this.uiAppSettings.currency\n      };\n    }\n    get defaultGreetingMessage() {\n      var _this$model6, _this$model7, _this$model$meta;\n      if (!((_this$model6 = this.model) !== null && _this$model6 !== void 0 && _this$model6.meta) || !((_this$model7 = this.model) !== null && _this$model7 !== void 0 && (_this$model7 = _this$model7.meta) !== null && _this$model7 !== void 0 && (_this$model7 = _this$model7[this.model.language]) !== null && _this$model7 !== void 0 && (_this$model7 = _this$model7.contribution) !== null && _this$model7 !== void 0 && _this$model7.greeting)) {\n        return '-';\n      }\n      return (_this$model$meta = this.model.meta) === null || _this$model$meta === void 0 ? void 0 : _this$model$meta[this.model.language].contribution.greeting;\n    }\n    transitionToEdit() {\n      if (this.isReadOnly) return;\n      this.router.transitionTo('instance.campaigns.email.detail.index.edit', this.model.id);\n      this.setInitialEditorStep(this.hasTriggerStep ? 'trigger' : 'emails');\n    }\n    openEmail(emailSeries, email) {\n      if (this.isReadOnly) return;\n      this.router.transitionTo('instance.campaigns.email.detail.index.edit', this.model.id);\n      this.setInitialEditorStep(`emails.${emailSeries.id}.${email.id}`);\n    }\n    openEmailSeries(emailSeries) {\n      if (this.isReadOnly) return;\n      this.router.transitionTo('instance.campaigns.email.detail.index.edit', this.model.id);\n      this.setInitialEditorStep(`emails.${emailSeries.id}`);\n    }\n    createFirstEmail(emailSeries) {\n      if (this.isReadOnly) return;\n      this.router.transitionTo('instance.campaigns.email.detail.index.edit', this.model.id);\n      this.setInitialEditorStep(`emails.${emailSeries.id}`);\n      this.createEmail(emailSeries, `emails.${emailSeries.id}`);\n    }\n    openEditorStep(step) {\n      if (this.isReadOnly) return;\n      this.router.transitionTo('instance.campaigns.email.detail.index.edit', this.model.id);\n      this.setInitialEditorStep(step);\n    }\n    toggleDrawer() {\n      this.uiState.getState(this.stateKey).toggle();\n    }\n    async initVoucherPreview(model) {\n      // Avoid that preview is fetched when content-wizard is opened\n      if (!this.router.isActive('instance.campaigns.email.detail.index.index') || !this.model.contribution) {\n        return;\n      }\n      this.isVoucherPreviewError = false;\n      const baseUrl = `${_environment.default.APP.publicHost}/${this.organizationId}`;\n      const url = `${baseUrl}/contributions/${model.id}/preview`;\n      const language = this.currentLocale;\n      try {\n        // Fetch and display content for preview dialog\n        const response = await this.authenticatedFetch.fetch(url, {\n          headers: {\n            'Accept-Language': language\n          }\n        });\n        if (!response || !response.ok) {\n          throw new Error();\n        }\n        const html = await response.text();\n        const iframe = document.getElementById('voucher-thumbnail-iframe');\n        const iframeDocument = iframe.contentDocument;\n        iframeDocument.open();\n        iframeDocument.write((0, _string.htmlSafe)(html));\n        iframeDocument.close();\n      } catch (error) {\n        this.isVoucherPreviewError = true;\n      }\n    }\n    openSendTestEmailDialog(model, isBulk) {\n      this.isBulkAction = isBulk;\n      this.selectedModel = model;\n      this.isSendTestEmailDialogOpen = true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isVoucherPreviewDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"selectedVoucherModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isEmailPreviewDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"selectedEmailModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isLandingPagePreviewDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isSendTestEmailDialogOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"isCampaignInformationDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isBulkAction\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"selectedModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"isVoucherPreviewError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"selectedEmailPreviewLanguage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"selectedVoucherPreviewLanguage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"changeLanguage\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"onPublish\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"setInitialEditorStep\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"createEmail\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"transitionToEdit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"transitionToEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openEmail\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openEmail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openEmailSeries\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openEmailSeries\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createFirstEmail\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createFirstEmail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openEditorStep\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openEditorStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleDrawer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDrawer\"), _class.prototype), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"openPreviewDialog\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"initVoucherPreview\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"initVoucherPreview\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openSendTestEmailDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openSendTestEmailDialog\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignDetailView);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/email-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@ember/object\", \"@glimmer/component\", \"@ember/object/computed\", \"@ember/service\", \"@ember/template\", \"@glimmer/tracking\", \"ember-arg-types\", \"prop-types\", \"ember-concurrency\", \"dompurify\", \"additive-mc/utils/constants\", \"additive-mc/validations/email-campaign\"], function (_exports, _component, _templateFactory, _object, _component2, _computed, _service, _template, _tracking, _emberArgTypes, _propTypes, _emberConcurrency, _dompurify, _constants, _emailCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiMultilingualModal\n    @title={{t \"emailCampaigns.emails.dialog.title\"}}\n    @backRoute={{concat \"instance.campaigns.\" this.campaignType \".detail.index\"}}\n    @resource={{this._model}}\n    @modelName=\"email\"\n    @modelOptions={{hash adapterOptions=(hash campaignId=this._campaignId)}}\n    @multilingualProperties=\"subject,body,ctaText,ctaLink\"\n    @validation={{this.validation}}\n    @save={{this.save}}\n    @onClose={{action \"onClose\"}}\n    @isEdit={{this._isEdit}}\n    @isLoading={{this.isLoading}}\n    @isReadOnly={{@isReadOnly}} as |modal|\n  >\n    {{#unless @isReadOnly}}\n      {{#if modal.isReadOnly}}\n        <AmcDeleteModel\n          @modelOptions={{hash adapterOptions=(hash campaignId=this._campaignId)}}\n          @resourceId={{this._model.id}}\n          @modelName=\"email\"\n          @afterDelete={{action \"afterDelete\" this._model}} as |dm|\n        >\n          {{#let this._model.active \"emailCampaigns.emails.toggle.confirmation.\" as |active prefix|}}\n            <AmcToggleActivation\n              @modelOptions={{hash adapterOptions=(hash campaignId=this._campaignId)}}\n              @modelName=\"email\"\n              @resourceId={{this._model.id}}\n              @isActive={{active}}\n              @confirmation={{hash\n                label=(t (concat prefix \"label\") active=active)\n                description=(t (concat prefix \"description\") active=active)\n                action=(t (concat prefix \"action\") active=active)\n              }} as |ta|\n            >\n              <modal.headerAction\n                @label={{t (concat \"global.actions.\" (if active \"deactivate\" \"activate\"))}}\n                @onClick={{ta.toggleAction}}\n              />\n              <modal.headerAction\n                @label={{t \"global.actions.delete\"}}\n                @isDanger={{true}}\n                @onClick={{dm.deleteAction}}\n              />\n            </AmcToggleActivation>\n          {{/let}}\n        </AmcDeleteModel>\n      {{/if}}\n    {{/unless}}\n  \n    <modal.content>\n      <div\n        {{did-insert (fn this.setChangeset modal.changeset)}}\n        {{did-update (fn this.setChangeset modal.changeset) modal.changeset}}\n      ></div>\n      {{#if modal.isReadOnly}}\n        <UiInput\n          @label={{t \"emailCampaigns.emails.dialog.emailSeries\"}}\n          @value={{if\n            modal.changeset.emailSeriesId\n            (get (array-find modal.changeset.emailSeriesId this._emailSeriesOptions) \"name\")\n            \"\"\n          }}\n          @isReadOnly={{true}}\n        />\n      {{else}}\n        <UiSelect\n          @classNames=\"w-100\"\n          @label={{t \"emailCampaigns.emails.dialog.emailSeries\"}}\n          @initialValue={{modal.changeset.emailSeriesId}}\n          @selected={{if\n            modal.changeset.emailSeriesId\n            (get (array-find modal.changeset.emailSeriesId this._emailSeriesOptions) \"name\")\n            \"\"\n          }}\n          @options={{this._emailSeriesOptions}}\n          @onChange={{action (mut modal.changeset.emailSeriesId)}}\n          @isTouched={{modal.isValidated}}\n          @errorMessage={{modal.changeset.error.ctaType.validation.firstObject\n          }} as |optionComponent option|\n        >\n          <optionComponent.item @value={{option.value}}>\n            {{option.name}}\n          </optionComponent.item>\n        </UiSelect>\n      {{/if}}\n  \n      <UiInput\n        @label={{t \"global.properties.subject\"}}\n        @value={{modal.changeset.subject}}\n        @isReadOnly={{modal.isReadOnly}}\n        @errorMessage={{modal.changeset.error.subject.validation.firstObject}}\n        @isTouched={{modal.isValidated}}\n      />\n  \n      {{#if modal.isReadOnly}}\n        <UiFormControl @label={{t \"global.properties.text\"}} as |container|>\n          <container.content>\n            <div class=\"ph1\">\n              {{this._body}}\n            </div>\n          </container.content>\n        </UiFormControl>\n      {{else}}\n        <UiEditor\n          @label={{t \"global.properties.text\"}}\n          @initialValue={{modal.changeset.body}}\n          @onChange={{changeset-set modal.changeset \"body\"}}\n          @isTouched={{modal.isValidated}}\n          @infoMessage={{t \"emailCampaigns.emails.dialog.cta.editorHelp\" htmlSafe=true}}\n        />\n      {{/if}}\n  \n      {{#if modal.isReadOnly}}\n        <UiInput\n          @label={{t \"emailCampaigns.emails.dialog.cta.type\"}}\n          @value={{this._selectedCtaTypeLabel}}\n          @isReadOnly={{true}}\n        />\n      {{else}}\n        <UiSelect\n          @classNames=\"w-100\"\n          @label={{t \"emailCampaigns.emails.dialog.cta.type\"}}\n          @initialValue={{modal.changeset.ctaType}}\n          @selected={{this._selectedCtaTypeLabel}}\n          @options={{this._ctaTypeOptions}}\n          @onChange={{this.setCtaType}}\n          @isTouched={{modal.isValidated}}\n          @objectKey=\"label\"\n          @errorMessage={{modal.changeset.error.ctaType.validation.firstObject\n          }} as |optionComponent option|\n        >\n          <optionComponent.item @value={{option}}>\n            {{option.label}}\n          </optionComponent.item>\n        </UiSelect>\n      {{/if}}\n  \n      {{#if (amc-not modal.changeset.ctaType null)}}\n        {{#if (equal modal.changeset.ctaType \"cta\")}}\n          <UiInput\n            @label={{t \"emailCampaigns.emails.dialog.cta.link\"}}\n            @value={{modal.changeset.ctaLink}}\n            @isReadOnly={{modal.isReadOnly}}\n            @isTouched={{modal.isValidated}}\n            @errorMessage={{modal.changeset.error.ctaLink.validation.firstObject}}\n          />\n        {{/if}}\n  \n        {{#if (equal modal.changeset.ctaType \"survey\")}}\n          <AmcCampaign::EmailCampaign::EmailDialog::Survey\n            @campaign={{this._campaign}}\n            @changeset={{modal.changeset}}\n            @locale={{this.uiAppSettings.currentLocale}}\n            @isTouched={{modal.isValidated}}\n            @isReadOnly={{modal.isReadOnly}}\n          />\n        {{/if}}\n  \n        {{#if (equal modal.changeset.ctaType \"referral\")}}\n          <AmcCampaign::EmailCampaign::EmailDialog::Referral\n            @campaign={{this._campaign}}\n            @changeset={{modal.changeset}}\n            @locale={{this.uiAppSettings.currentLocale}}\n            @isTouched={{modal.isValidated}}\n            @isReadOnly={{modal.isReadOnly}}\n          />\n        {{/if}}\n  \n        <UiInput\n          @label={{t \"emailCampaigns.emails.dialog.cta.text\"}}\n          @value={{modal.changeset.ctaText}}\n          @isReadOnly={{modal.isReadOnly}}\n          @isTouched={{modal.isValidated}}\n          @errorMessage={{modal.changeset.error.ctaText.validation.firstObject}}\n        />\n      {{/if}}\n  \n      <div class=\"mt2\">\n        <MmResourceGallery\n          @resources={{changeset-get modal.changeset \"image\"}}\n          @isImageAddable={{true}}\n          @onDropzoneClick={{action \"openMultimedia\"}}\n          @onResourceRemove={{action \"onResourceRemove\" modal.changeset}}\n          @onResourceEdit={{action (changeset-set modal.changeset \"image\")}}\n          @isReadOnly={{modal.isReadOnly}}\n          @mediumType=\"image\"\n        />\n      </div>\n  \n      <MmMultimediaOverlay\n        @onClose={{action \"closeMultimedia\"}}\n        @onAddMedium={{action \"addMedium\" modal.changeset}}\n      >\n        {{yield (hash multimediaOverlayContent=(component \"ui-blank-template\"))}}\n      </MmMultimediaOverlay>\n    </modal.content>\n  </UiMultilingualModal>\n  */\n  {\n    \"id\": \"RvgHIyda\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@backRoute\\\",\\\"@resource\\\",\\\"@modelName\\\",\\\"@modelOptions\\\",\\\"@multilingualProperties\\\",\\\"@validation\\\",\\\"@save\\\",\\\"@onClose\\\",\\\"@isEdit\\\",\\\"@isLoading\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"emailCampaigns.emails.dialog.title\\\"],null],[28,[37,2],[\\\"instance.campaigns.\\\",[30,0,[\\\"campaignType\\\"]],\\\".detail.index\\\"],null],[30,0,[\\\"_model\\\"]],\\\"email\\\",[28,[37,3],null,[[\\\"adapterOptions\\\"],[[28,[37,3],null,[[\\\"campaignId\\\"],[[30,0,[\\\"_campaignId\\\"]]]]]]]],\\\"subject,body,ctaText,ctaLink\\\",[30,0,[\\\"validation\\\"]],[30,0,[\\\"save\\\"]],[28,[37,4],[[30,0],\\\"onClose\\\"],null],[30,0,[\\\"_isEdit\\\"]],[30,0,[\\\"isLoading\\\"]],[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,1]],[[[41,[30,2,[\\\"isReadOnly\\\"]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@modelOptions\\\",\\\"@resourceId\\\",\\\"@modelName\\\",\\\"@afterDelete\\\"],[[28,[37,3],null,[[\\\"adapterOptions\\\"],[[28,[37,3],null,[[\\\"campaignId\\\"],[[30,0,[\\\"_campaignId\\\"]]]]]]]],[30,0,[\\\"_model\\\",\\\"id\\\"]],\\\"email\\\",[28,[37,4],[[30,0],\\\"afterDelete\\\",[30,0,[\\\"_model\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[30,0,[\\\"_model\\\",\\\"active\\\"]],\\\"emailCampaigns.emails.toggle.confirmation.\\\"],[[[1,\\\"          \\\"],[8,[39,9],null,[[\\\"@modelOptions\\\",\\\"@modelName\\\",\\\"@resourceId\\\",\\\"@isActive\\\",\\\"@confirmation\\\"],[[28,[37,3],null,[[\\\"adapterOptions\\\"],[[28,[37,3],null,[[\\\"campaignId\\\"],[[30,0,[\\\"_campaignId\\\"]]]]]]]],\\\"email\\\",[30,0,[\\\"_model\\\",\\\"id\\\"]],[30,4],[28,[37,3],null,[[\\\"label\\\",\\\"description\\\",\\\"action\\\"],[[28,[37,1],[[28,[37,2],[[30,5],\\\"label\\\"],null]],[[\\\"active\\\"],[[30,4]]]],[28,[37,1],[[28,[37,2],[[30,5],\\\"description\\\"],null]],[[\\\"active\\\"],[[30,4]]]],[28,[37,1],[[28,[37,2],[[30,5],\\\"action\\\"],null]],[[\\\"active\\\"],[[30,4]]]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"headerAction\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,1],[[28,[37,2],[\\\"global.actions.\\\",[52,[30,4],\\\"deactivate\\\",\\\"activate\\\"]],null]],null],[30,6,[\\\"toggleAction\\\"]]]],null],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"headerAction\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.delete\\\"],null],true,[30,3,[\\\"deleteAction\\\"]]]],null],[1,\\\"\\\\n          \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[4,5]]],[1,\\\"      \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[4,[38,10],[[28,[37,11],[[30,0,[\\\"setChangeset\\\"]],[30,2,[\\\"changeset\\\"]]],null]],null],[4,[38,12],[[28,[37,11],[[30,0,[\\\"setChangeset\\\"]],[30,2,[\\\"changeset\\\"]]],null],[30,2,[\\\"changeset\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isReadOnly\\\"]],[[[1,\\\"      \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"emailCampaigns.emails.dialog.emailSeries\\\"],null],[52,[30,2,[\\\"changeset\\\",\\\"emailSeriesId\\\"]],[28,[37,14],[[28,[37,15],[[30,2,[\\\"changeset\\\",\\\"emailSeriesId\\\"]],[30,0,[\\\"_emailSeriesOptions\\\"]]],null],\\\"name\\\"],null],\\\"\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,16],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\",\\\"@isTouched\\\",\\\"@errorMessage\\\"],[\\\"w-100\\\",[28,[37,1],[\\\"emailCampaigns.emails.dialog.emailSeries\\\"],null],[30,2,[\\\"changeset\\\",\\\"emailSeriesId\\\"]],[52,[30,2,[\\\"changeset\\\",\\\"emailSeriesId\\\"]],[28,[37,14],[[28,[37,15],[[30,2,[\\\"changeset\\\",\\\"emailSeriesId\\\"]],[30,0,[\\\"_emailSeriesOptions\\\"]]],null],\\\"name\\\"],null],\\\"\\\"],[30,0,[\\\"_emailSeriesOptions\\\"]],[28,[37,4],[[30,0],[28,[37,17],[[30,2,[\\\"changeset\\\",\\\"emailSeriesId\\\"]]],null]],null],[30,2,[\\\"isValidated\\\"]],[30,2,[\\\"changeset\\\",\\\"error\\\",\\\"ctaType\\\",\\\"validation\\\",\\\"firstObject\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,7,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,8,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,8,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[7,8]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n    \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,1],[\\\"global.properties.subject\\\"],null],[30,2,[\\\"changeset\\\",\\\"subject\\\"]],[30,2,[\\\"isReadOnly\\\"]],[30,2,[\\\"changeset\\\",\\\"error\\\",\\\"subject\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,2,[\\\"isValidated\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2,[\\\"isReadOnly\\\"]],[[[1,\\\"      \\\"],[8,[39,18],null,[[\\\"@label\\\"],[[28,[37,1],[\\\"global.properties.text\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,9,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ph1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"_body\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[9]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,19],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@onChange\\\",\\\"@isTouched\\\",\\\"@infoMessage\\\"],[[28,[37,1],[\\\"global.properties.text\\\"],null],[30,2,[\\\"changeset\\\",\\\"body\\\"]],[28,[37,20],[[30,2,[\\\"changeset\\\"]],\\\"body\\\"],null],[30,2,[\\\"isValidated\\\"]],[28,[37,1],[\\\"emailCampaigns.emails.dialog.cta.editorHelp\\\"],[[\\\"htmlSafe\\\"],[true]]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isReadOnly\\\"]],[[[1,\\\"      \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"emailCampaigns.emails.dialog.cta.type\\\"],null],[30,0,[\\\"_selectedCtaTypeLabel\\\"]],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,16],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\",\\\"@isTouched\\\",\\\"@objectKey\\\",\\\"@errorMessage\\\"],[\\\"w-100\\\",[28,[37,1],[\\\"emailCampaigns.emails.dialog.cta.type\\\"],null],[30,2,[\\\"changeset\\\",\\\"ctaType\\\"]],[30,0,[\\\"_selectedCtaTypeLabel\\\"]],[30,0,[\\\"_ctaTypeOptions\\\"]],[30,0,[\\\"setCtaType\\\"]],[30,2,[\\\"isValidated\\\"]],\\\"label\\\",[30,2,[\\\"changeset\\\",\\\"error\\\",\\\"ctaType\\\",\\\"validation\\\",\\\"firstObject\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,10,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,11]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,11,[\\\"label\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[10,11]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,21],[[30,2,[\\\"changeset\\\",\\\"ctaType\\\"]],null],null],[[[41,[28,[37,22],[[30,2,[\\\"changeset\\\",\\\"ctaType\\\"]],\\\"cta\\\"],null],[[[1,\\\"        \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@isTouched\\\",\\\"@errorMessage\\\"],[[28,[37,1],[\\\"emailCampaigns.emails.dialog.cta.link\\\"],null],[30,2,[\\\"changeset\\\",\\\"ctaLink\\\"]],[30,2,[\\\"isReadOnly\\\"]],[30,2,[\\\"isValidated\\\"]],[30,2,[\\\"changeset\\\",\\\"error\\\",\\\"ctaLink\\\",\\\"validation\\\",\\\"firstObject\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,22],[[30,2,[\\\"changeset\\\",\\\"ctaType\\\"]],\\\"survey\\\"],null],[[[1,\\\"        \\\"],[8,[39,23],null,[[\\\"@campaign\\\",\\\"@changeset\\\",\\\"@locale\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"_campaign\\\"]],[30,2,[\\\"changeset\\\"]],[30,0,[\\\"uiAppSettings\\\",\\\"currentLocale\\\"]],[30,2,[\\\"isValidated\\\"]],[30,2,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,22],[[30,2,[\\\"changeset\\\",\\\"ctaType\\\"]],\\\"referral\\\"],null],[[[1,\\\"        \\\"],[8,[39,24],null,[[\\\"@campaign\\\",\\\"@changeset\\\",\\\"@locale\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"_campaign\\\"]],[30,2,[\\\"changeset\\\"]],[30,0,[\\\"uiAppSettings\\\",\\\"currentLocale\\\"]],[30,2,[\\\"isValidated\\\"]],[30,2,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@isTouched\\\",\\\"@errorMessage\\\"],[[28,[37,1],[\\\"emailCampaigns.emails.dialog.cta.text\\\"],null],[30,2,[\\\"changeset\\\",\\\"ctaText\\\"]],[30,2,[\\\"isReadOnly\\\"]],[30,2,[\\\"isValidated\\\"]],[30,2,[\\\"changeset\\\",\\\"error\\\",\\\"ctaText\\\",\\\"validation\\\",\\\"firstObject\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,25],null,[[\\\"@resources\\\",\\\"@isImageAddable\\\",\\\"@onDropzoneClick\\\",\\\"@onResourceRemove\\\",\\\"@onResourceEdit\\\",\\\"@isReadOnly\\\",\\\"@mediumType\\\"],[[28,[37,26],[[30,2,[\\\"changeset\\\"]],\\\"image\\\"],null],true,[28,[37,4],[[30,0],\\\"openMultimedia\\\"],null],[28,[37,4],[[30,0],\\\"onResourceRemove\\\",[30,2,[\\\"changeset\\\"]]],null],[28,[37,4],[[30,0],[28,[37,20],[[30,2,[\\\"changeset\\\"]],\\\"image\\\"],null]],null],[30,2,[\\\"isReadOnly\\\"]],\\\"image\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,27],null,[[\\\"@onClose\\\",\\\"@onAddMedium\\\"],[[28,[37,4],[[30,0],\\\"closeMultimedia\\\"],null],[28,[37,4],[[30,0],\\\"addMedium\\\",[30,2,[\\\"changeset\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[18,12,[[28,[37,3],null,[[\\\"multimediaOverlayContent\\\"],[[50,\\\"ui-blank-template\\\",0,null,null]]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[2]]]]]],[\\\"@isReadOnly\\\",\\\"modal\\\",\\\"dm\\\",\\\"active\\\",\\\"prefix\\\",\\\"ta\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"container\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"&default\\\"],false,[\\\"ui-multilingual-modal\\\",\\\"t\\\",\\\"concat\\\",\\\"hash\\\",\\\"action\\\",\\\"unless\\\",\\\"if\\\",\\\"amc-delete-model\\\",\\\"let\\\",\\\"amc-toggle-activation\\\",\\\"did-insert\\\",\\\"fn\\\",\\\"did-update\\\",\\\"ui-input\\\",\\\"get\\\",\\\"array-find\\\",\\\"ui-select\\\",\\\"mut\\\",\\\"ui-form-control\\\",\\\"ui-editor\\\",\\\"changeset-set\\\",\\\"amc-not\\\",\\\"equal\\\",\\\"amc-campaign/email-campaign/email-dialog/survey\\\",\\\"amc-campaign/email-campaign/email-dialog/referral\\\",\\\"mm-resource-gallery\\\",\\\"changeset-get\\\",\\\"mm-multimedia-overlay\\\",\\\"yield\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/email-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Component which represents a single email (or new) in dialog\n   *\n   * @class email-dialog\n   */\n  let AmcCampaignEmailCampaignEmailDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.string), _dec5 = (0, _computed.alias)('_fetchEmailSeries.isRunning'), _dec6 = (0, _object.computed)('_model.body'), _dec7 = (0, _object.computed)('_changeset.ctaType', '_ctaTypeOptions'), _dec8 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const [emailSeries] = yield (0, _emberConcurrency.all)([this.store.findAll('email-series', Object.assign({}, this._adapterOptions, {\n        reload: true\n      })), (0, _emberConcurrency.timeout)(250)]);\n      let emailSeriesOptions = emailSeries.map(option => {\n        return {\n          name: `${option.label} (${option.offsetInDays} ${this.intl.t('global.dates.days', {\n            value: option.offsetInDays\n          })})`,\n          value: Number(option.id)\n        };\n      });\n      emailSeriesOptions.push('');\n      this._emailSeriesOptions = emailSeriesOptions;\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec9 = (0, _emberConcurrency.task)(function* () {\n    const {\n      _changeset\n    } = this;\n    yield _changeset.validate();\n    if (!_changeset.get('isValid')) {\n      return;\n    } else if (_changeset.get('isPristine')) {\n      // dont send request if changeset is valid and pristine\n      this._isEdit = false;\n      return;\n    }\n    try {\n      const isNewModel = this._model.isNew;\n      const savedModel = yield _changeset.save(this._adapterOptions);\n      this.uiToast.showToast({\n        title: this.intl.t('toast.success'),\n        type: 'success'\n      });\n\n      // go back to readOnly after saving\n      this._isEdit = false;\n      return this.onSave(savedModel, isNewModel);\n    } catch (error) {\n      try {\n        const errorDetail = JSON.parse(error.message);\n        if (errorDetail.errors) {\n          Object.keys(errorDetail.errors).forEach(function (key) {\n            _changeset.addError(key, errorDetail.message);\n          });\n        } else {\n          this.uiToast.showToast({\n            title: errorDetail.message,\n            type: 'error'\n          });\n        }\n      } catch (e) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }\n  }), _class = class AmcCampaignEmailCampaignEmailDialogComponent extends _component2.default {\n    /**\n     * HTML-Safe variant of models body\n     *\n     * @computed _body\n     * @private\n     */\n    get _body() {\n      var _this$_model;\n      return (0, _template.htmlSafe)(_dompurify.default.sanitize((_this$_model = this._model) === null || _this$_model === void 0 ? void 0 : _this$_model.body));\n    }\n\n    /**\n     * The campaign id\n     *\n     * @computed _campaignId\n     * @type {String}\n     * @private\n     */\n    get _campaignId() {\n      var _this$_model2;\n      return this.campaignId || ((_this$_model2 = this._model) === null || _this$_model2 === void 0 ? void 0 : _this$_model2.campaignId);\n    }\n\n    /**\n     * Whether parents campaign is a campaign with a deactivated voucher\n     *\n     * @computed _isCampaignWithDeactivatedVoucher\n     * @private\n     */\n    get _isCampaignWithDeactivatedVoucher() {\n      var _campaign$voucher;\n      const campaign = this._campaignId && this.store.peekRecord(`${this.campaignType}-campaign`, this._campaignId);\n      return !(campaign !== null && campaign !== void 0 && (_campaign$voucher = campaign.voucher) !== null && _campaign$voucher !== void 0 && _campaign$voucher.get('active'));\n    }\n    get _adapterOptions() {\n      return {\n        adapterOptions: {\n          campaignId: this._campaignId\n        }\n      };\n    }\n    get _selectedCtaTypeLabel() {\n      var _this$_changeset;\n      const selected = (_this$_changeset = this._changeset) === null || _this$_changeset === void 0 ? void 0 : _this$_changeset.get('ctaType');\n      const selectedOption = this._ctaTypeOptions.find(option => option.value === selected);\n      return (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label) || '';\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"multimedia\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor6, this);\n      /**\n       * The parents campaignId\n       *\n       * @argument campaignId\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"campaignId\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor8, this);\n      /**\n       * The email id\n       *\n       * @argument modelId\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"modelId\", _descriptor9, this);\n      /**\n       * The campaign type (email/trigger-email)\n       *\n       * @argument campaignType\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"campaignType\", _descriptor10, this);\n      /**\n       * The campaign model\n       *\n       * @property _campaign\n       * @type {Object}\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_campaign\", _descriptor11, this);\n      /**\n       * The changeset of the email\n       *\n       * @property _changeset\n       * @type {Object}\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_changeset\", _descriptor12, this);\n      /**\n       * the fetched email series\n       *\n       * @property _emailSeriesOptions\n       * @type {Array}\n       * @default []\n       * @private\n       */\n      _initializerDefineProperty(this, \"_emailSeriesOptions\", _descriptor13, this);\n      /**\n       * Whether we are in edit mode\n       *\n       * @property _isEdit\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isEdit\", _descriptor14, this);\n      /**\n       * The email model\n       *\n       * @argument _model\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"_model\", _descriptor15, this);\n      /**\n       * Property to know if we are still\n       * fetching data\n       *\n       * @computed isLoading\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isLoading\", _descriptor16, this);\n      /**\n       * fetches the email series for the current campaign\n       *\n       * @type {Task}\n       * @function _fetchEmailSeries\n       * @private\n       */\n      _initializerDefineProperty(this, \"_fetchEmailSeries\", _descriptor17, this);\n      /**\n       * checks if the changeset is valid and saves the model\n       *\n       * @function save\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"save\", _descriptor18, this);\n      this.validation = (0, _emailCampaign.emailValidation)(this.intl, this._isCampaignWithDeactivatedVoucher);\n      if (this.modelId) {\n        this._model = this.store.peekRecord('email', this.modelId);\n      } else {\n        this._model = this.store.createRecord('email', this._isCampaignWithDeactivatedVoucher ? {\n          ctaType: null\n        } : {\n          ctaType: _constants.EMAIL_CAMPAIGN_CTA_TYPE_VOUCHER\n        });\n        this._isEdit = true;\n      }\n      const campaignModel = this.store.peekRecord(`${this.campaignType}-campaign`, this._campaignId);\n      this._campaign = campaignModel;\n      const campaignMeta = campaignModel.meta;\n      let ctaTypeOptions = [];\n      if (campaignMeta && Object.keys(campaignMeta).length > 0) {\n        const firstKey = Object.keys(campaignMeta)[0];\n        ctaTypeOptions = campaignMeta[firstKey].ctaTypes;\n      }\n      (0, _object.set)(this, '_ctaTypeOptions', ctaTypeOptions);\n\n      // set options for media selection\n      this.multimedia.setSelectionOptions({\n        maxCount: 1,\n        type: 'image',\n        warningMessage: this.intl.t('global.warnings.multimedia.image')\n      });\n      this._fetchEmailSeries.perform();\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.multimedia.resetSelectionOptions();\n    }\n    onSave(newModel, isNewModel) {\n      if (isNewModel) {\n        this.router.transitionTo(`instance.campaigns.${this.campaignType}.detail.index.email`, newModel.id);\n      }\n    }\n    openMultimedia() {\n      if (this._model.isNew) {\n        this.router.transitionTo(`instance.campaigns.${this.campaignType}.detail.index.create.additive-multimedia-engine`);\n      } else {\n        this.router.transitionTo(`instance.campaigns.${this.campaignType}.detail.index.email.additive-multimedia-engine`);\n      }\n    }\n    setChangeset(changeset) {\n      this._changeset = changeset;\n    }\n    setCtaType(ctaType) {\n      var _this$_changeset2, _this$_changeset3;\n      (_this$_changeset2 = this._changeset) === null || _this$_changeset2 === void 0 || _this$_changeset2.set('ctaType', ctaType.value);\n      (_this$_changeset3 = this._changeset) === null || _this$_changeset3 === void 0 || _this$_changeset3.set('ctaLink', null);\n    }\n    closeMultimedia() {\n      if (this._model.isNew) {\n        this.router.transitionTo(`instance.campaigns.${this.campaignType}.detail.index.create`);\n      } else {\n        this.router.transitionTo(`instance.campaigns.${this.campaignType}.detail.index.email`);\n      }\n    }\n    onResourceRemove(changeset) {\n      changeset.set('image', null);\n      changeset.execute();\n    }\n    addMedium(changeset, _, _ref2) {\n      let [resource] = _ref2;\n      changeset.set('image', resource);\n    }\n    afterDelete() {\n      this.router.transitionTo(`instance.campaigns.${this.campaignType}.detail.index`);\n    }\n    onClose() {\n      if (this._model.isNew) {\n        this._model.destroyRecord();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"multimedia\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"modelId\", [_dec3, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"campaignType\", [_dec4, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"_campaign\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"_changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"_emailSeriesOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"_isEdit\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"_model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"_body\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"_body\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_selectedCtaTypeLabel\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"_selectedCtaTypeLabel\"), _class.prototype), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"_fetchEmailSeries\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"save\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setChangeset\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setChangeset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setCtaType\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setCtaType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onResourceRemove\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onResourceRemove\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addMedium\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addMedium\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"afterDelete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClose\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignEmailDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/email-dialog/referral\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _tracking, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-update this.getReferrals this.locale}}>\n    {{#if this.isReadOnly}}\n      <UiInput\n        @label={{t \"emailCampaigns.emails.dialog.referrals.label\"}}\n        @value={{this._selectedReferral}}\n        @isReadOnly={{true}}\n      />\n    {{else}}\n      <UiSelect\n        @classNames=\"w-100\"\n        @label={{t \"emailCampaigns.emails.dialog.referrals.label\"}}\n        @placeholder={{t \"emailCampaigns.emails.dialog.referrals.placeholder\"}}\n        @selected={{this._selectedReferral}}\n        @options={{this._referrals}}\n        @onChange={{this.onChange}}\n        @isTouched={{@isTouched}}\n        @objectKey=\"label\"\n        @errorMessage={{@changeset.error.ctaLink.validation.firstObject}} as |optionComponent option|\n      >\n        <optionComponent.item @value={{option}}>\n          {{option.label}}\n        </optionComponent.item>\n      </UiSelect>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"gJmA9bda\",\n    \"block\": \"[[[11,0],[4,[38,0],[[30,0,[\\\"getReferrals\\\"]],[30,0,[\\\"locale\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isReadOnly\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\"],[[28,[37,3],[\\\"emailCampaigns.emails.dialog.referrals.label\\\"],null],[30,0,[\\\"_selectedReferral\\\"]],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,4],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\",\\\"@isTouched\\\",\\\"@objectKey\\\",\\\"@errorMessage\\\"],[\\\"w-100\\\",[28,[37,3],[\\\"emailCampaigns.emails.dialog.referrals.label\\\"],null],[28,[37,3],[\\\"emailCampaigns.emails.dialog.referrals.placeholder\\\"],null],[30,0,[\\\"_selectedReferral\\\"]],[30,0,[\\\"_referrals\\\"]],[30,0,[\\\"onChange\\\"]],[30,1],\\\"label\\\",[30,2,[\\\"error\\\",\\\"ctaLink\\\",\\\"validation\\\",\\\"firstObject\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,4,[\\\"label\\\"]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[3,4]]]]],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"@isTouched\\\",\\\"@changeset\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"did-update\\\",\\\"if\\\",\\\"ui-input\\\",\\\"t\\\",\\\"ui-select\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/email-dialog/referral.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Component which represents a single email (or new) in dialog\n   *\n   * @class AmcCampaignEmailCampaignEmailDialogSurveyComponent\n   */\n  let AmcCampaignEmailCampaignEmailDialogReferralComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.boolean), _class = class AmcCampaignEmailCampaignEmailDialogReferralComponent extends _component2.default {\n    get isLoading() {\n      var _this$_fetchCampaignM;\n      return (_this$_fetchCampaignM = this._fetchCampaignMeta) === null || _this$_fetchCampaignM === void 0 ? void 0 : _this$_fetchCampaignM.isRunning;\n    }\n    get _selectedReferral() {\n      var _this$changeset, _this$_referrals;\n      let selectedUrl = (_this$changeset = this.changeset) === null || _this$changeset === void 0 ? void 0 : _this$changeset.get('ctaLink');\n      if (!selectedUrl) {\n        return null;\n      }\n\n      // deconstruct referral link to get referral id\n      selectedUrl = selectedUrl.replace('{#', '').replace('#}', '');\n      const urlParts = selectedUrl.split(':');\n      const referralId = urlParts[urlParts.length - 1];\n      const referral = (_this$_referrals = this._referrals) === null || _this$_referrals === void 0 ? void 0 : _this$_referrals.find(referral => referral.value === referralId);\n      return referral === null || referral === void 0 ? void 0 : referral.label;\n    }\n    constructor() {\n      super(...arguments);\n      /**\n       * The email campaign model\n       *\n       * @argument campaign\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"campaign\", _descriptor, this);\n      /**\n       * The email changeset\n       *\n       * @argument changeset\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor2, this);\n      /**\n       * The current locale\n       *\n       * @argument locale\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"locale\", _descriptor3, this);\n      /**\n       * Whether the form is touched\n       *\n       * @argument isTouched\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor4, this);\n      /**\n       * Whether the input is read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor5, this);\n      /**\n       * The referral campaigns\n       *\n       * @property _referrals\n       * @type {Array}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"_referrals\", _descriptor6, this);\n      /**\n       * The task to fetch the campaign meta\n       *\n       * @property _fetchCampaignMeta\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"_fetchCampaignMeta\", _descriptor7, this);\n      if (!this.campaign) {\n        return;\n      }\n      this._fetchCampaignMeta = this.campaign.fetchMeta;\n      this.getReferrals(true);\n    }\n    async getReferrals() {\n      let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n      const meta = await this._fetchCampaignMeta.perform(this.locale);\n      this._referrals = meta.referrals;\n      if (!init) {\n        var _this$changeset2;\n        (_this$changeset2 = this.changeset) === null || _this$changeset2 === void 0 || _this$changeset2.set('ctaLink', null);\n      }\n    }\n    onChange(referral) {\n      var _this$changeset3;\n      if (!(referral !== null && referral !== void 0 && referral.value) || !this.locale) {\n        return;\n      }\n      (_this$changeset3 = this.changeset) === null || _this$changeset3 === void 0 || _this$changeset3.set('ctaLink', `{#MA-CAMPAIGN:REFERRAL:${this.locale}:${referral.value}#}`);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"campaign\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_dec2, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"locale\", [_dec3, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec4, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"_referrals\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"_fetchCampaignMeta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"getReferrals\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"getReferrals\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChange\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignEmailDialogReferralComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/email-dialog/survey\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/object/computed\", \"@glimmer/tracking\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _computed, _tracking, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-update this.getSurveys this.locale}}>\n    {{#if this.isReadOnly}}\n      <UiInput\n        @label={{t \"emailCampaigns.emails.dialog.surveys.label\"}}\n        @value={{this._selectedSurvey}}\n        @isReadOnly={{true}}\n      />\n    {{else}}\n      <UiSelect\n        @classNames=\"w-100\"\n        @label={{t \"emailCampaigns.emails.dialog.surveys.label\"}}\n        @placeholder={{t \"emailCampaigns.emails.dialog.surveys.placeholder\"}}\n        @selected={{this._selectedSurvey}}\n        @options={{this._surveys}}\n        @onChange={{this.onChange}}\n        @isTouched={{@isTouched}}\n        @objectKey=\"label\"\n        @errorMessage={{@changeset.error.ctaLink.validation.firstObject}} as |optionComponent option|\n      >\n        <optionComponent.item @value={{option}}>\n          {{option.label}}\n        </optionComponent.item>\n      </UiSelect>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"Kzw5AnBw\",\n    \"block\": \"[[[11,0],[4,[38,0],[[30,0,[\\\"getSurveys\\\"]],[30,0,[\\\"locale\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isReadOnly\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\"],[[28,[37,3],[\\\"emailCampaigns.emails.dialog.surveys.label\\\"],null],[30,0,[\\\"_selectedSurvey\\\"]],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,4],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\",\\\"@isTouched\\\",\\\"@objectKey\\\",\\\"@errorMessage\\\"],[\\\"w-100\\\",[28,[37,3],[\\\"emailCampaigns.emails.dialog.surveys.label\\\"],null],[28,[37,3],[\\\"emailCampaigns.emails.dialog.surveys.placeholder\\\"],null],[30,0,[\\\"_selectedSurvey\\\"]],[30,0,[\\\"_surveys\\\"]],[30,0,[\\\"onChange\\\"]],[30,1],\\\"label\\\",[30,2,[\\\"error\\\",\\\"ctaLink\\\",\\\"validation\\\",\\\"firstObject\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,4,[\\\"label\\\"]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[3,4]]]]],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"@isTouched\\\",\\\"@changeset\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"did-update\\\",\\\"if\\\",\\\"ui-input\\\",\\\"t\\\",\\\"ui-select\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/email-dialog/survey.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Component which represents a single email (or new) in dialog\n   *\n   * @class AmcCampaignEmailCampaignEmailDialogSurveyComponent\n   */\n  let AmcCampaignEmailCampaignEmailDialogSurveyComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec5 = (0, _computed.alias)('_fetchCampaignMeta.isRunning'), _class = class AmcCampaignEmailCampaignEmailDialogSurveyComponent extends _component2.default {\n    get _selectedSurvey() {\n      var _this$changeset, _this$_surveys;\n      let selectedUrl = (_this$changeset = this.changeset) === null || _this$changeset === void 0 ? void 0 : _this$changeset.get('ctaLink');\n      if (!selectedUrl) {\n        return null;\n      }\n\n      // deconstruct survey link to get survey id\n      selectedUrl = selectedUrl.replace('{#', '').replace('#}', '');\n      const urlParts = selectedUrl.split(':');\n      const surveyId = urlParts[urlParts.length - 1];\n      const survey = (_this$_surveys = this._surveys) === null || _this$_surveys === void 0 ? void 0 : _this$_surveys.find(survey => survey.value === surveyId);\n      return survey === null || survey === void 0 ? void 0 : survey.label;\n    }\n    constructor() {\n      super(...arguments);\n      /**\n       * The email campaign model\n       *\n       * @argument campaign\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"campaign\", _descriptor, this);\n      /**\n       * The email changeset\n       *\n       * @argument changeset\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor2, this);\n      /**\n       * The current locale\n       *\n       * @argument locale\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"locale\", _descriptor3, this);\n      /**\n       * Whether the form is touched\n       *\n       * @argument isTouched\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor4, this);\n      /**\n       * Whether the input is read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor5, this);\n      /**\n       * The surveys\n       *\n       * @property _surveys\n       * @type {Array}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"_surveys\", _descriptor6, this);\n      /**\n       * The task to fetch the campaign meta\n       *\n       * @property _fetchCampaignMeta\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"_fetchCampaignMeta\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isLoading\", _descriptor8, this);\n      if (!this.campaign) {\n        return;\n      }\n      this._fetchCampaignMeta = this.campaign.fetchMeta;\n      this.getSurveys(true);\n    }\n    async getSurveys() {\n      let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n      const meta = await this._fetchCampaignMeta.perform(this.locale);\n      this._surveys = meta.surveys;\n      if (!init) {\n        var _this$changeset2;\n        (_this$changeset2 = this.changeset) === null || _this$changeset2 === void 0 || _this$changeset2.set('ctaLink', null);\n      }\n    }\n    onChange(survey) {\n      var _this$changeset3;\n      if (!(survey !== null && survey !== void 0 && survey.value) || !this.locale) {\n        return;\n      }\n      (_this$changeset3 = this.changeset) === null || _this$changeset3 === void 0 || _this$changeset3.set('ctaLink', `{#LANDING-PAGE:SURVEY:${this.locale}:${survey.value}#}`);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"campaign\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_dec2, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"locale\", [_dec3, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec4, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"_surveys\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"_fetchCampaignMeta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"getSurveys\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"getSurveys\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChange\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignEmailDialogSurveyComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/email-list\", [\"exports\", \"@ember/component\", \"@ember/object\", \"ember-concurrency\", \"@ember/service\"], function (_exports, _component, _object, _emberConcurrency, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which represents email-campagnes email list\n   *\n   * @class email-list\n   */\n  var _default = _exports.default = _component.default.extend({\n    store: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    uiDialog: (0, _service.inject)(),\n    tagName: '',\n    /**\n     * The campaign type (email/trigger-email)\n     * @property campaignType\n     * @default null\n     */\n    campaignType: null,\n    campaignId: null,\n    isReadOnly: false,\n    /**\n     * Internal copy of the current campaign id\n     *\n     * @property _campaignId\n     * @default null\n     * @private\n     */\n    _campaignId: null,\n    /**\n     * whether the modal to send a test email is open\n     *\n     * @property _isTestEmailDialogOpen\n     * @type {Boolean}\n     * @default false\n     * @private\n     */\n    _isTestEmailDialogOpen: false,\n    /**\n     * whether the modal of the email preview is open\n     *\n     * @property _showEmailPreview\n     * @type {Boolean}\n     * @default false\n     * @private\n     */\n    _showEmailPreview: false,\n    /**\n     * The active campaign item for the dialogs\n     * @property activeItem\n     * @type {Object}\n     * @default null\n     */\n    activeItem: null,\n    _emails: null,\n    _emailSeries: null,\n    _adapterOptions: (0, _object.computed)('campaignId', {\n      get() {\n        return {\n          adapterOptions: {\n            campaignId: this.campaignId\n          }\n        };\n      }\n    }),\n    _setup() {\n      (0, _object.set)(this, '_campaignId', this.campaignId);\n      this._fetchEmails.perform();\n    },\n    didUpdateAttrs() {\n      this._super(...arguments);\n      if (this._campaignId === this.campaignId) {\n        return;\n      }\n\n      /* Re-setup on resource attribute change */\n      this._setup();\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      (0, _object.set)(this, '_emails', []);\n      (0, _object.set)(this, '_emailSeries', []);\n      this.router.on('routeWillChange', transition => {\n        if (this.isDestroying) {\n          return;\n        }\n\n        /**\n         * When we come from a email-detail route chances are the opened entity got deleted.\n         * So re-peek all models and set to internal value.\n         */\n        if (transition.from.name === `instance.campaigns.${this.campaignType}.detail.index.email.index`) {\n          const emailSeries = this.store.peekAll('email-series', this._adapterOptions);\n          (0, _object.set)(this, '_emailSeries', emailSeries);\n          let emails = this.store.peekAll('email', this._adapterOptions);\n          emails = this._appendEmailSeriesNames(emails);\n          (0, _object.set)(this, '_emails', this._filterDataByCampaign(emails));\n        }\n      });\n    },\n    async _fetchEmailSeries() {\n      try {\n        const emailSeries = await this.store.findAll('email-series', Object.assign({}, this._adapterOptions, {\n          reload: true\n        }));\n        (0, _object.set)(this, '_emailSeries', emailSeries);\n      } catch (error) {\n        throw new Error(error);\n      }\n    },\n    _appendEmailSeriesNames(emails) {\n      return emails.map(email => {\n        const seriesOfEmail = this._emailSeries.find(series => {\n          return email.emailSeriesId && series.id === email.emailSeriesId.toString();\n        });\n        seriesOfEmail && email.set('emailSeriesName', seriesOfEmail.label);\n        return email;\n      });\n    },\n    /**\n     * fetches the emails for the current campaign\n     *\n     * @type {Task}\n     * @function _fetchEmails\n     * @private\n     */\n    _fetchEmails: (0, _emberConcurrency.task)(function* () {\n      try {\n        let [emails] = yield (0, _emberConcurrency.all)([this.store.findAll('email', Object.assign({}, this._adapterOptions, {\n          reload: true\n        })), (0, _emberConcurrency.timeout)(250)]);\n        yield this._fetchEmailSeries();\n        emails = this._appendEmailSeriesNames(emails);\n        /* campaignId will be string, but emails' campaignId's are integeres, so convert to filter properly */\n        (0, _object.set)(this, '_emails', this._filterDataByCampaign(emails));\n      } catch (error) {\n        this.uiDialog.showError();\n      }\n    }).on('didInsertElement'),\n    _filterDataByCampaign(data) {\n      return (data || []).filterBy('campaignId', parseInt(this.campaignId));\n    },\n    actions: {\n      afterDelete(item) {\n        this._emails.removeObject(item);\n      },\n      reloadCampaign() {\n        if (this.campaignId) {\n          this.store.findRecord(`${this.campaignType}-campaign`, this.campaignId);\n        }\n      },\n      openTestEmailDialog(item) {\n        (0, _object.set)(this, '_isTestEmailDialogOpen', true);\n        (0, _object.set)(this, 'activeItem', item);\n      },\n      openEmailPreview(item) {\n        (0, _object.set)(this, '_showEmailPreview', true);\n        (0, _object.set)(this, 'activeItem', item);\n      }\n    }\n  });\n});","define(\"additive-mc/components/amc-campaign/email-campaign/email-series-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-arg-types\", \"prop-types\", \"ember-concurrency\", \"ember-changeset\", \"ember-changeset-validations\", \"@ember/object/computed\", \"lodash.clonedeep\", \"additive-mc/validations/email-campaign\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberArgTypes, _propTypes, _emberConcurrency, _emberChangeset, _emberChangesetValidations, _computed, _lodash, _emailCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-insert (perform this.setup)}}></div>\n  <UiModal\n    @title={{if\n      this.isNew\n      (t \"emailCampaigns.emailSeries.dialog.titleCreate\")\n      (t \"emailCampaigns.emailSeries.dialog.titleEdit\")\n    }}\n    @onClose={{this.close}}\n    @size=\"sm\" as |modal|\n  >\n    <modal.header />\n    <modal.content as |content|>\n      <content.body>\n        {{#if this.showNamePrefix}}\n          <UiInput\n            @label={{t \"emailCampaigns.emailSeries.dialog.name\"}}\n            @value={{this._namePrefix}}\n            @isReadOnly={{true}}\n          />\n        {{/if}}\n  \n        <UiInput\n          @label={{t \"emailCampaigns.emailSeries.dialog.label\"}}\n          @value={{this.changeset.label}}\n          @isReadOnly={{this._isReadOnly}}\n          @errorMessage={{this.changeset.error.label.validation}}\n          @isTouched={{this.isTouched}}\n        />\n        {{#unless this.isRenameDialog}}\n          <UiInput\n            @label={{if\n              this.offsetInDaysLabel\n              this.offsetInDaysLabel\n              (t \"emailCampaigns.emailSeries.dialog.daysPast\")\n            }}\n            @value={{this.changeset.offsetInDays}}\n            @type=\"number\"\n            @minValue={{0}}\n            @isReadOnly={{this._isReadOnly}}\n            @errorMessage={{if\n              this.notUniqueOffsetError\n              (t \"emailCampaigns.emailSeries.dialog.notUniqueDays\")\n              this.changeset.error.offsetInDays.validation\n            }}\n            @isTouched={{this.isTouched}} as |input|\n          >\n            <input.right>\n              {{t \"global.properties.days\"}}\n            </input.right>\n          </UiInput>\n        {{/unless}}\n      </content.body>\n    </modal.content>\n    <modal.footer>\n      <UiButton\n        @label={{t \"global.actions.save\"}}\n        @isSecondary={{true}}\n        @isPromise={{true}}\n        @isDisabled={{this._isReadOnly}}\n        @onClick={{this.save}}\n      />\n    </modal.footer>\n  </UiModal>\n  \n  <UiDiscardChanges @isOpen={{this.isDiscardChangesDialog}} @onDiscard={{this.confirmDiscard}} />\n  */\n  {\n    \"id\": \"eOIqSc1W\",\n    \"block\": \"[[[11,0],[4,[38,0],[[28,[37,1],[[30,0,[\\\"setup\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@onClose\\\",\\\"@size\\\"],[[52,[30,0,[\\\"isNew\\\"]],[28,[37,4],[\\\"emailCampaigns.emailSeries.dialog.titleCreate\\\"],null],[28,[37,4],[\\\"emailCampaigns.emailSeries.dialog.titleEdit\\\"],null]],[30,0,[\\\"close\\\"]],\\\"sm\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showNamePrefix\\\"]],[[[1,\\\"        \\\"],[8,[39,5],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\"],[[28,[37,4],[\\\"emailCampaigns.emailSeries.dialog.name\\\"],null],[30,0,[\\\"_namePrefix\\\"]],true]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,4],[\\\"emailCampaigns.emailSeries.dialog.label\\\"],null],[30,0,[\\\"changeset\\\",\\\"label\\\"]],[30,0,[\\\"_isReadOnly\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"label\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isRenameDialog\\\"]]],[[[1,\\\"        \\\"],[8,[39,5],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@type\\\",\\\"@minValue\\\",\\\"@isReadOnly\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[52,[30,0,[\\\"offsetInDaysLabel\\\"]],[30,0,[\\\"offsetInDaysLabel\\\"]],[28,[37,4],[\\\"emailCampaigns.emailSeries.dialog.daysPast\\\"],null]],[30,0,[\\\"changeset\\\",\\\"offsetInDays\\\"]],\\\"number\\\",0,[30,0,[\\\"_isReadOnly\\\"]],[52,[30,0,[\\\"notUniqueOffsetError\\\"]],[28,[37,4],[\\\"emailCampaigns.emailSeries.dialog.notUniqueDays\\\"],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"offsetInDays\\\",\\\"validation\\\"]]],[30,0,[\\\"isTouched\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"global.properties.days\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@isPromise\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,4],[\\\"global.actions.save\\\"],null],true,true,[30,0,[\\\"_isReadOnly\\\"]],[30,0,[\\\"save\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,8],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChangesDialog\\\"]],[30,0,[\\\"confirmDiscard\\\"]]]],null]],[\\\"modal\\\",\\\"content\\\",\\\"input\\\"],false,[\\\"did-insert\\\",\\\"perform\\\",\\\"ui-modal\\\",\\\"if\\\",\\\"t\\\",\\\"ui-input\\\",\\\"unless\\\",\\\"ui-button\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/email-series-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignEmailCampaignEmailSeriesDialogComponent = _exports.default = (_dec = (0, _computed.not)('currentUser.isManager'), _dec2 = (0, _computed.not)('currentUser.isAdditiveUser'), _dec3 = (0, _computed.not)('currentUser.isPartnerUser'), _dec4 = (0, _computed.or)('_isMember', '_isManaged'), _dec5 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec6 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec7 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec8 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec9 = (0, _emberArgTypes.arg)(_propTypes.string), _dec10 = (0, _emberArgTypes.arg)(_propTypes.string), _dec11 = (0, _emberArgTypes.arg)(_propTypes.object), _dec12 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec13 = (0, _emberArgTypes.arg)(_propTypes.string), _dec14 = (0, _emberArgTypes.arg)(_propTypes.string), _dec15 = (0, _emberArgTypes.arg)(_propTypes.func), _dec16 = (0, _emberArgTypes.arg)(_propTypes.func), _dec17 = (0, _emberConcurrency.task)(function* () {\n    var _this$model;\n    if ((_this$model = this.model) !== null && _this$model !== void 0 && _this$model.emailSeries && this.showNamePrefix) {\n      // Create internal copy of email-series\n      this._emailSeries = (0, _lodash.default)(this.model.emailSeries.map(series => series.toJSON()));\n    }\n    const tasks = [this.fetchEmailSeries(), (0, _emberConcurrency.timeout)(400)];\n    yield (0, _emberConcurrency.all)(tasks);\n  }), _class = class AmcCampaignEmailCampaignEmailSeriesDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor2, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_isMember\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_isNotAdditiveUser\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_isNotPartnerUser\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_isReadOnly\", _descriptor11, this);\n      /**\n       * whether the model has to be created\n       *\n       * @argument isNew\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isNew\", _descriptor12, this);\n      /**\n       * whether only the name can be changed\n       *\n       * @argument isRenameDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isRenameDialog\", _descriptor13, this);\n      /**\n       * whether the email-series name prefix should be displayed\n       *\n       * @argument showNamePrefix\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"showNamePrefix\", _descriptor14, this);\n      /**\n       * whether the email-series label is required\n       *\n       * @argument isLabelRequired\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isLabelRequired\", _descriptor15, this);\n      /**\n       * The campaign type (email/trigger-email)\n       *\n       * @argument campaignType\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"campaignType\", _descriptor16, this);\n      /**\n       * Label for offsetInDays input\n       *\n       * @argument offsetInDaysLabel\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"offsetInDaysLabel\", _descriptor17, this);\n      /**\n       * The email-series model\n       *\n       * @argument model\n       * @default null\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor18, this);\n      /**\n       * Internal copy of the email-series\n       *\n       * @argument _emailSeries\n       * @default null\n       */\n      _initializerDefineProperty(this, \"_emailSeries\", _descriptor19, this);\n      /**\n       * Whether a custom save function is passed\n       *\n       * @argument hasCustomSave\n       * @default false\n       */\n      _initializerDefineProperty(this, \"hasCustomSave\", _descriptor20, this);\n      /**\n       * the email campaignId the model belongs to\n       *\n       * @argument campaignId\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"campaignId\", _descriptor21, this);\n      /**\n       * the model id\n       *\n       * @argument emailSeriesId\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"emailSeriesId\", _descriptor22, this);\n      /**\n       * the function that is executed when the dialog is closed\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor23, this);\n      /**\n       * the function that is executed on save\n       *\n       * @argument onSave\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onSave\", _descriptor24, this);\n      /**\n       * the changeset of the model\n       *\n       * @property changeset\n       * @type {Changeset}\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor25, this);\n      /**\n       * whether the form is touched\n       *\n       * @property isTouched\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor26, this);\n      /**\n       * whether the discard changes dialog is open\n       *\n       * @property isDiscardChangesDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChangesDialog\", _descriptor27, this);\n      /**\n       * whether there is already an email-series with same offset in days\n       *\n       * @property notUniqueOffsetError\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"notUniqueOffsetError\", _descriptor28, this);\n      _initializerDefineProperty(this, \"setup\", _descriptor29, this);\n    }\n    get _isManaged() {\n      if (!this.uiAppSettings.managed) {\n        return false;\n      }\n      if (this.uiAppSettings.managedByPartner) {\n        return this._isNotPartnerUser && this._isNotAdditiveUser;\n      }\n      return this._isNotAdditiveUser;\n    }\n    get _namePrefix() {\n      if (!this.changeset || !this._emailSeries) {\n        return null;\n      }\n      const newOffsetInDays = Number(this.changeset.get('offsetInDays'));\n      if (this._emailSeries.length <= 0) {\n        return this.intl.t('emailCampaigns.steps.emails.emailSeriesCount', {\n          count: 1\n        });\n      }\n      const sorted = this._emailSeries.toArray().sort((a, b) => a.offsetInDays - b.offsetInDays);\n      const insertPosition = sorted.findIndex(item => newOffsetInDays < item.offsetInDays);\n      const newPosition = insertPosition === -1 ? sorted.length + 1 : insertPosition + 1;\n      return this.intl.t('emailCampaigns.steps.emails.emailSeriesCount', {\n        count: newPosition\n      });\n    }\n\n    /**\n     * sets up the changeset with the model\n     *\n     * @function fetchEmailSeries\n     */\n    async fetchEmailSeries() {\n      try {\n        if (this.isNew) {\n          this.emailSeries = this.store.createRecord('email-series');\n          this.emailSeries.offsetInDays = 0;\n        } else {\n          this.emailSeries = this.model;\n        }\n        const validation = (0, _emailCampaign.emailSeriesValidation)(this.intl, this.isLabelRequired);\n        this.changeset = new _emberChangeset.default(this.emailSeries, (0, _emberChangesetValidations.default)(validation), validation);\n      } catch (e) {\n        this.isError = true;\n      }\n    }\n    async save() {\n      let {\n        changeset\n      } = this;\n      this.isTouched = true;\n      this.notUniqueOffsetError = false;\n      await changeset.validate();\n      const changesetSnapshot = changeset.snapshot();\n      if (!changeset.get('isValid')) {\n        return;\n      }\n      if (this.hasCustomSave) {\n        await changeset.execute();\n        if (this.isRenameDialog) {\n          await this.onSave(changeset.data.label);\n        } else {\n          const emailSeries = this.model.get('emailSeries');\n          const isDuplicate = emailSeries.find(email => email.offsetInDays == changeset.data.offsetInDays);\n          if (isDuplicate) {\n            this.notUniqueOffsetError = true;\n            return;\n          }\n          await this.onSave(changeset.data);\n        }\n        return;\n      }\n      if (this.campaignId) {\n        this.store.findRecord(this.campaignType === 'trigger-email' ? 'trigger-email-campaign' : 'email-campaign', this.campaignId);\n      }\n      try {\n        await changeset.execute();\n        await this.emailSeries.save({\n          adapterOptions: {\n            campaignId: this.campaignId\n          }\n        });\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        this.onClose();\n      } catch (error) {\n        this.emailSeries.rollbackAttributes();\n\n        // create new model if it was deleted through rollbackAttributes\n        if (this.emailSeries.get('isDeleted')) {\n          this.emailSeries = this.store.createRecord('email-series');\n        }\n\n        // create new changeset\n        const validation = (0, _emailCampaign.emailSeriesValidation)(this.intl, this.isLabelRequired);\n        changeset = new _emberChangeset.default(this.emailSeries, (0, _emberChangesetValidations.default)(validation), validation);\n        changeset.restore(changesetSnapshot);\n        this.changeset = changeset;\n\n        // close dialog on 500 error from api\n        if (!error) {\n          this.onClose();\n        }\n        try {\n          const errorDetail = JSON.parse(error.message);\n          if (errorDetail.errors) {\n            Object.keys(errorDetail.errors).forEach(function (key) {\n              changeset.addError(key, errorDetail.message);\n            });\n          } else {\n            this.uiToast.showToast({\n              title: errorDetail.message,\n              type: 'error'\n            });\n          }\n        } catch (e) {\n          this.uiToast.showToast({\n            title: this.intl.t('toast.unexpectedError'),\n            type: 'error'\n          });\n        }\n      }\n    }\n    close() {\n      if (this.changeset.get('isPristine') && !this.isNew) {\n        return this.onClose();\n      }\n      this.isDiscardChangesDialog = true;\n    }\n    confirmDiscard() {\n      if (this.isNew) {\n        this.emailSeries.destroyRecord();\n      }\n      this.isDiscardChangesDialog = false;\n      this.onClose();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"_isMember\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"_isNotAdditiveUser\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"_isNotPartnerUser\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"_isReadOnly\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isNew\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isRenameDialog\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"showNamePrefix\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isLabelRequired\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"campaignType\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"offsetInDaysLabel\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"_emailSeries\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"hasCustomSave\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"emailSeriesId\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {\n        this.router.transitionTo(`instance.campaigns.${this.campaignType}.detail.email-series`);\n      };\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChangesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"notUniqueOffsetError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor29 = _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"confirmDiscard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"confirmDiscard\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignEmailSeriesDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/email-series-preview\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template\", \"@ember/service\", \"ember-concurrency\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _tracking, _object, _template, _service, _emberConcurrency, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div>\n    <UiModal\n      @title={{this.model.subject}}\n      @subtitle={{this.model.emailSeriesName}}\n      @modalClassNames=\"amc-email-preview\"\n      @size=\"lg\"\n      @onClose={{this.onClose}} as |dialog|\n    >\n      <dialog.header />\n      <dialog.content as |content|>\n        <content.top>\n          <UiStatusBadge @class=\"ml1 mt1 mb3\" @size=\"xs\">\n            <UiStatus @state={{if this.model.active \"success\" \"error\"}} />\n            <span class=\"pr05 font-sm\">\n              {{t\n                (if\n                  this.model.active\n                  \"emailCampaigns.emailSeries.columns.states.active\"\n                  \"emailCampaigns.emailSeries.columns.states.inactive\"\n                )\n              }}\n            </span>\n          </UiStatusBadge>\n        </content.top>\n        <content.body @classNames=\"flex-grow-1\">\n          <div\n            class=\"flex flex-column flex-grow-1 justify-center items-center w-100 bt mv1 b--black-10\"\n          >\n            {{#if this._isFrameLoading}}\n              <UiSkeleton @items={{1}} @cardHeight={{400}} />\n            {{else if this._isError}}\n              <div class=\"flex flex-column w-100 justify-center items-center pt3\">\n                <span class=\"pb2 font-sm secondary\">\n                  {{t \"emailCampaigns.emailSeries.preview.error\"}}\n                </span>\n                <UiButton\n                  @label={{t \"global.actions.retry\"}}\n                  @onClick={{perform this.loadMailContent}}\n                />\n              </div>\n            {{/if}}\n  \n            <iframe\n              title=\"mail-preview\"\n              id=\"email-series-preview-iframe\"\n              class=\"w-100 dn flex-column flex-grow-1\"\n              frameBorder=\"0\"\n              scrolling=\"no\"\n              onload={{this.updateIframeHeight}}\n              {{did-insert (perform this.loadMailContent)}}\n            ></iframe>\n          </div>\n        </content.body>\n      </dialog.content>\n    </UiModal>\n  </div>\n  */\n  {\n    \"id\": \"E6556wPg\",\n    \"block\": \"[[[10,0],[12],[1,\\\"\\\\n  \\\"],[8,[39,0],null,[[\\\"@title\\\",\\\"@subtitle\\\",\\\"@modalClassNames\\\",\\\"@size\\\",\\\"@onClose\\\"],[[30,0,[\\\"model\\\",\\\"subject\\\"]],[30,0,[\\\"model\\\",\\\"emailSeriesName\\\"]],\\\"amc-email-preview\\\",\\\"lg\\\",[30,0,[\\\"onClose\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"top\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@size\\\"],[\\\"ml1 mt1 mb3\\\",\\\"xs\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,2],null,[[\\\"@state\\\"],[[52,[30,0,[\\\"model\\\",\\\"active\\\"]],\\\"success\\\",\\\"error\\\"]]],null],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"pr05 font-sm\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[[52,[30,0,[\\\"model\\\",\\\"active\\\"]],\\\"emailCampaigns.emailSeries.columns.states.active\\\",\\\"emailCampaigns.emailSeries.columns.states.inactive\\\"]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"body\\\"]],null,[[\\\"@classNames\\\"],[\\\"flex-grow-1\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex flex-column flex-grow-1 justify-center items-center w-100 bt mv1 b--black-10\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isFrameLoading\\\"]],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@cardHeight\\\"],[1,400]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"_isError\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex flex-column w-100 justify-center items-center pt3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"pb2 font-sm secondary\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"emailCampaigns.emailSeries.preview.error\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,6],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,4],[\\\"global.actions.retry\\\"],null],[28,[37,7],[[30,0,[\\\"loadMailContent\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]],null]],[]]],[1,\\\"\\\\n          \\\"],[11,\\\"iframe\\\"],[24,\\\"title\\\",\\\"mail-preview\\\"],[24,1,\\\"email-series-preview-iframe\\\"],[24,0,\\\"w-100 dn flex-column flex-grow-1\\\"],[24,\\\"frameBorder\\\",\\\"0\\\"],[24,\\\"scrolling\\\",\\\"no\\\"],[16,\\\"onload\\\",[30,0,[\\\"updateIframeHeight\\\"]]],[4,[38,8],[[28,[37,7],[[30,0,[\\\"loadMailContent\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"dialog\\\",\\\"content\\\"],false,[\\\"ui-modal\\\",\\\"ui-status-badge\\\",\\\"ui-status\\\",\\\"if\\\",\\\"t\\\",\\\"ui-skeleton\\\",\\\"ui-button\\\",\\\"perform\\\",\\\"did-insert\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/email-series-preview.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignEmailCampaignEmailSeriesPreviewComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberConcurrency.task)(function* (iframe) {\n    this._isError = false;\n    if (!this._iframe) {\n      this._iframe = iframe || document.getElementById('email-series-preview-iframe');\n    }\n    this._iframe.classList.add('dn');\n    this._iframe.classList.remove('flex');\n    try {\n      const {\n        model\n      } = this;\n      const adapter = this.store.adapterFor(model.constructor.modelName);\n      const baseUrl = adapter.urlForFindAll(model.constructor.modelName, {\n        adapterOptions: {\n          campaignId: model.campaignId\n        }\n      });\n      const url = `${baseUrl}/${model.id}/preview`;\n      const tasks = [];\n      tasks.push(this.authenticatedFetch.fetch(url, {\n        headers: {\n          'Accept-Language': 'de'\n        },\n        method: 'GET'\n      }));\n      tasks.push((0, _emberConcurrency.timeout)(400));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const html = yield response.text();\n      if (!(response !== null && response !== void 0 && response.ok)) {\n        throw new Error('Response not ok');\n      }\n      const iframeDocument = this._iframe.contentDocument;\n      iframeDocument.open();\n      iframeDocument.write((0, _template.htmlSafe)(html));\n      iframeDocument.close();\n      this._iframe.classList.remove('dn');\n      this._iframe.classList.add('flex');\n    } catch (e) {\n      this._isError = true;\n    }\n  }), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignEmailCampaignEmailSeriesPreviewComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      /**\n       * the email campaign\n       *\n       * @argument model\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor4, this);\n      /**\n       * the iframe element\n       *\n       * @property _iframe\n       * @type {HTMLElement}\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_iframe\", _descriptor5, this);\n      /**\n       * whether an error occurred while fetching the preview\n       *\n       * @property _isError\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isError\", _descriptor6, this);\n      /**\n       * loads the email content and writes it into the iframe\n       *\n       * @function loadMailContent\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"loadMailContent\", _descriptor7, this);\n    }\n    /**\n     * whether the frame is loading\n     *\n     * @property model\n     * @type {Boolean}\n     * @default false\n     * @private\n     */\n    get _isFrameLoading() {\n      return this.loadMailContent.isRunning;\n    }\n    onClose() {}\n    updateIframeHeight() {\n      if (!this._iframe) {\n        return;\n      }\n      const iframeDocument = this._iframe.contentDocument;\n      this._iframe.style.height = `${iframeDocument.body.scrollHeight}px`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_iframe\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"_isError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"loadMailContent\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"onClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateIframeHeight\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateIframeHeight\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignEmailSeriesPreviewComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/email-series-table\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/object/computed\", \"ember-concurrency\", \"@ember/service\"], function (_exports, _component, _object, _computed, _emberConcurrency, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which represents email-series email series\n   *\n   * @class email-series\n   */\n  var _default = _exports.default = _component.default.extend({\n    store: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    uiDialog: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    tagName: '',\n    /**\n     * The current campaign id\n     *\n     * @property campaignId\n     * @default null\n     * @private\n     */\n    campaignId: null,\n    /**\n     * The campaign type (email/trigger-email)\n     * @property campaignType\n     * @default null\n     */\n    campaignType: null,\n    /**\n     * Whether the table is read-only\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * Property to know if we are still\n     * fetching data\n     *\n     * @computed isLoading\n     * @type {Boolean}\n     */\n    isLoading: (0, _computed.alias)('_fetchEmailSeries.isRunning'),\n    /**\n     * Internal copy of the current campaign id\n     *\n     * @property _campaignId\n     * @default null\n     * @private\n     */\n    _campaignId: null,\n    _emailSeries: null,\n    _adapterOptions: (0, _object.computed)('campaignId', {\n      get() {\n        return {\n          adapterOptions: {\n            campaignId: this.campaignId\n          }\n        };\n      }\n    }),\n    _setup() {\n      (0, _object.set)(this, '_campaignId', this.campaignId);\n      this._fetchEmailSeries.perform();\n    },\n    init() {\n      this._super(...arguments);\n      (0, _object.set)(this, 'tableHeaderOptions', [{\n        name: this.intl.t('emailCampaigns.emailSeries.columns.serialSteps'),\n        key: 'label',\n        minWidth: '224px',\n        sort: 'String'\n      }, {\n        name: this.intl.t('emailCampaigns.emailSeries.columns.timePast'),\n        key: 'offsetInDays',\n        minWidth: '184px',\n        classNames: 'text-right',\n        sort: 'Integer'\n      }, {\n        name: this.intl.t('emailCampaigns.emailSeries.columns.variants'),\n        key: 'mails_count',\n        minWidth: '128px',\n        classNames: 'text-right',\n        sort: 'Integer'\n      }, {\n        name: this.intl.t('emailCampaigns.emailSeries.columns.state'),\n        key: 'state',\n        minWidth: '40px',\n        sort: 'String'\n      }]);\n    },\n    didUpdateAttrs() {\n      this._super(...arguments);\n      if (this._campaignId === this.campaignId) {\n        return;\n      }\n\n      /* Re-setup on resource attribute change */\n      this._setup();\n    },\n    /**\n     * fetches the email series for the current campaign\n     *\n     * @type {Task}\n     * @function _fetchEmailSeries\n     * @private\n     */\n    _fetchEmailSeries: (0, _emberConcurrency.task)(function* () {\n      try {\n        const [emailSeries] = yield (0, _emberConcurrency.all)([this.store.findAll('email-series', Object.assign({}, this._adapterOptions, {\n          reload: true\n        })), (0, _emberConcurrency.timeout)(250)]);\n        (0, _object.set)(this, '_emailSeries', emailSeries);\n      } catch (error) {\n        this.uiDialog.showError();\n      }\n    }).on('didInsertElement'),\n    actions: {\n      afterDelete(item) {\n        this._emailSeries.removeObject(item);\n      },\n      onRowClick(item) {\n        this.router.transitionTo(`instance.campaigns.${this.campaignType}.detail.email-series.email-series`, item.id);\n      },\n      reloadCampaign() {\n        if (this.campaignId) {\n          this.store.findRecord(`${this.campaignType}-campaign`, this.campaignId);\n        }\n      }\n    }\n  });\n});","define(\"additive-mc/components/amc-campaign/email-campaign/information-drawer\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"prop-types\", \"ember-arg-types\"], function (_exports, _component, _templateFactory, _component2, _propTypes, _emberArgTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiNavigationDrawer\n    @navDrawerStateKey={{this.stateKey}}\n    @isRight={{true}}\n    @isPermanent={{false}} as |navDrawer|\n  >\n    <navDrawer.navbar\n      @title={{t \"global.properties.information\"}}\n      @isMenuHidden={{true}}\n      @onClose={{this.onClose}}\n      @classNames=\"ui-navigation-bar--full-screen\"\n    />\n  \n    <navDrawer.content>\n      <div class=\"flex flex-column\">\n        <div class=\"font-lg primary\">\n          {{this.model.name}}\n        </div>\n        <div class=\"font-sm font-medium primary mt3\">\n          {{t \"emailCampaigns.campaignInformation\"}}\n        </div>\n  \n        <div class=\"bt b--secondary-10 mv2\"></div>\n  \n        <div class=\"flex font-sm\">\n          <div class=\"flex-column flex-grow-1\">\n            <div class=\"secondary pb1\">\n              {{t \"emailCampaigns.configure.trackingCode\"}}\n            </div>\n  \n            {{#if this.hasCampaignStartDate}}\n              <div class=\"secondary pb1\">\n                {{t \"emailCampaigns.campaignStart\"}}\n              </div>\n            {{/if}}\n  \n            <div class=\"secondary pb1\">\n              {{t \"emailCampaigns.campaignEnd\"}}\n            </div>\n          </div>\n  \n          <div class=\"flex-column flex-grow-1\">\n            <div class=\"primary pb1\">\n              {{this.model.code}}\n            </div>\n  \n            {{#if this.hasCampaignStartDate}}\n              <div class=\"primary pb1\">\n                {{date-format this.model.startsAt}}\n              </div>\n            {{/if}}\n  \n            <div class=\"primary pb1\">\n              {{#if this.hasCampaignEndDate}}\n                {{date-format this.model.endsAt}}\n              {{else}}\n                {{t \"emailCampaigns.unlimitedDuration\"}}\n              {{/if}}\n            </div>\n          </div>\n        </div>\n      </div>\n    </navDrawer.content>\n  </UiNavigationDrawer>\n  */\n  {\n    \"id\": \"rInrlAoV\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@navDrawerStateKey\\\",\\\"@isRight\\\",\\\"@isPermanent\\\"],[[30,0,[\\\"stateKey\\\"]],true,false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,[[\\\"@title\\\",\\\"@isMenuHidden\\\",\\\"@onClose\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"global.properties.information\\\"],null],true,[30,0,[\\\"onClose\\\"]],\\\"ui-navigation-bar--full-screen\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-lg primary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"name\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm font-medium primary mt3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"emailCampaigns.campaignInformation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"bt b--secondary-10 mv2\\\"],[12],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex font-sm\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex-column flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"secondary pb1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"emailCampaigns.configure.trackingCode\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasCampaignStartDate\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"secondary pb1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"emailCampaigns.campaignStart\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"secondary pb1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"emailCampaigns.campaignEnd\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"flex-column flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"primary pb1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"model\\\",\\\"code\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasCampaignStartDate\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"primary pb1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[[30,0,[\\\"model\\\",\\\"startsAt\\\"]]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"primary pb1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasCampaignEndDate\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,3],[[30,0,[\\\"model\\\",\\\"endsAt\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,1],[\\\"emailCampaigns.unlimitedDuration\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"navDrawer\\\"],false,[\\\"ui-navigation-drawer\\\",\\\"t\\\",\\\"if\\\",\\\"date-format\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/information-drawer.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   *  Component used to show information about the current email-campaign\n   *\n   * @class AmcCampaignEmailCampaignInformationDrawer\n   */\n  let AmcCampaignEmailCampaignInformationDrawer = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignEmailCampaignInformationDrawer extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"stateKey\", _descriptor, this);\n      _initializerDefineProperty(this, \"model\", _descriptor2, this);\n      _initializerDefineProperty(this, \"onClose\", _descriptor3, this);\n    }\n    get hasCampaignEndDate() {\n      if (!this.model.isEndsAtEnabled) {\n        return false;\n      }\n      return this.model.endsAt ? true : false;\n    }\n    get hasCampaignStartDate() {\n      if (!this.model.isStartsAtEnabled) {\n        return false;\n      }\n      return this.model.startsAt ? true : false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"stateKey\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignInformationDrawer);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/preview\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _propTypes, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class=\"amc-email-campaign-preview relative ba b--secondary-10 br1\n  \n  \n      {{not this.isDisabled \"cpointer\"}}\"\n    role=\"button\"\n    style={{html-safe this._style}}\n  >\n    <UiActionButton\n      @classNames=\"amc-email-campaign-preview__preview-button\"\n      @isBlur={{true}}\n      @icon=\"popup\"\n      @onClick={{this.click}}\n      @isPromise={{true}}\n      @isDisabled={{this.isDisabled}}\n      @label={{t \"components.amc-email-campaign-preview.preview\"}}\n    />\n    <div\n      class=\"amc-email-campaign-preview__content w-100 h-100 br1\"\n      {{did-insert this.setupMutationObserver}}\n      {{will-destroy this.destroyMutationObserver}}\n    >\n      {{yield (hash content=(component \"ui-blank-template\"))}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"INuDH3X/\",\n    \"block\": \"[[[10,0],[15,0,[29,[\\\"amc-email-campaign-preview relative ba b--secondary-10 br1\\\\n\\\\n\\\\n    \\\",[28,[37,0],[[30,0,[\\\"isDisabled\\\"]],\\\"cpointer\\\"],null]]]],[14,\\\"role\\\",\\\"button\\\"],[15,5,[28,[37,1],[[30,0,[\\\"_style\\\"]]],null]],[12],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@classNames\\\",\\\"@isBlur\\\",\\\"@icon\\\",\\\"@onClick\\\",\\\"@isPromise\\\",\\\"@isDisabled\\\",\\\"@label\\\"],[\\\"amc-email-campaign-preview__preview-button\\\",true,\\\"popup\\\",[30,0,[\\\"click\\\"]],true,[30,0,[\\\"isDisabled\\\"]],[28,[37,3],[\\\"components.amc-email-campaign-preview.preview\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[11,0],[24,0,\\\"amc-email-campaign-preview__content w-100 h-100 br1\\\"],[4,[38,4],[[30,0,[\\\"setupMutationObserver\\\"]]],null],[4,[38,5],[[30,0,[\\\"destroyMutationObserver\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[18,1,[[28,[37,7],null,[[\\\"content\\\"],[[50,\\\"ui-blank-template\\\",0,null,null]]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"not\\\",\\\"html-safe\\\",\\\"ui-action-button\\\",\\\"t\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/preview.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignEmailCampaignPreviewComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberArgTypes.arg)(_propTypes.number), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignEmailCampaignPreviewComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"fitContent\", _descriptor, this);\n      _initializerDefineProperty(this, \"isDisabled\", _descriptor2, this);\n      _initializerDefineProperty(this, \"maxSize\", _descriptor3, this);\n      _initializerDefineProperty(this, \"_height\", _descriptor4, this);\n      _initializerDefineProperty(this, \"_width\", _descriptor5, this);\n      _initializerDefineProperty(this, \"onClick\", _descriptor6, this);\n    }\n    get _style() {\n      return `height: ${this._height}px;width: ${this._width}px;`;\n    }\n    setContentDimensions(element) {\n      const iFrame = element.querySelector('iframe');\n      if (!iFrame) {\n        this._height = 300;\n        this._width = 212;\n        return;\n      }\n      if (iFrame && this.fitContent) {\n        const borderWidth = 2;\n        iFrame.onload = () => {\n          const iFrameHeight = iFrame.contentWindow.document.body.scrollHeight;\n          const iFrameWidth = iFrame.contentWindow.document.body.scrollWidth;\n          let height;\n          let width;\n          if (iFrameWidth >= iFrameHeight) {\n            width = this.maxSize;\n            height = Math.round(iFrameHeight / iFrameWidth * this.maxSize);\n          } else {\n            height = this.maxSize;\n            width = Math.round(iFrameWidth / iFrameHeight * this.maxSize);\n          }\n          this._height = height + borderWidth;\n          this._width = width + borderWidth;\n          iFrame.style.height = `${height}px`;\n          iFrame.style.width = `${width}px`;\n        };\n      }\n    }\n    setupMutationObserver(element) {\n      this.setContentDimensions(element);\n\n      // Create a new instance of MutationObserver\n      this.mutationObserver = new MutationObserver(() => {\n        this.setContentDimensions(element);\n      });\n\n      // Start observing the element\n      this.mutationObserver.observe(element, {\n        childList: true\n      });\n    }\n    destroyMutationObserver() {\n      if (this.mutationObserver) {\n        this.mutationObserver.disconnect();\n      }\n    }\n    async click() {\n      if (this.isDisabled) {\n        return;\n      }\n      await this.onClick();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"fitContent\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isDisabled\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"maxSize\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 300;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_height\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_width\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupMutationObserver\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setupMutationObserver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"destroyMutationObserver\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"destroyMutationObserver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"click\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"click\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignPreviewComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/publish-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"ember-concurrency\", \"ember-arg-types\", \"@glimmer/tracking\", \"prop-types\", \"@ember/string\", \"lodash.clonedeep\", \"@ember/object/computed\", \"dompurify\", \"additive-mc/utils/currency-serialization\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _emberConcurrency, _emberArgTypes, _tracking, _propTypes, _string, _lodash, _computed, _dompurify, _currencySerialization) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{t \"emailCampaigns.publishDialog.title\"}}\n    @subtitle={{this.model.name}}\n    @onClose={{fn this.onClose false}}\n    @isBackButton={{this.hasBackButton}}\n    @size=\"lg\" as |m|\n  >\n    <m.header />\n    <m.content @class=\"flex flex-grow-1\" {{did-insert (perform this.setup)}} as |c|>\n      <c.body class=\"pb3\">\n        <div class=\"mb3\">\n          {{t \"emailCampaigns.publishDialog.description\"}}\n        </div>\n  \n        <div class=\"mb3\">\n          <div class=\"font-sm font-medium secondary mb1\">\n            {{t \"emailCampaigns.publishDialog.dependencies.title\"}}\n          </div>\n  \n          {{#if this._isLoading}}\n            <UiSkeleton @items={{1}} @cardHeight={{72}} @gap={{4}} />\n          {{else}}\n            <AmcCampaign::EmailCampaign::PublishDialog::DependencyCheck\n              @validations={{this.dependencyValidations}}\n              @isExpanded={{this.isDependencyCheckExpanded}}\n            />\n          {{/if}}\n        </div>\n  \n        <div class=\"mb3\">\n          <div class=\"font-sm font-medium secondary mb1\">\n            {{t \"emailCampaigns.publishDialog.globalChanges\"}}\n          </div>\n  \n          {{#if this._isLoading}}\n            <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{52}} @gap={{4}} />\n          {{else}}\n            <AmcCampaign::EmailCampaign::PublishDialog::ChangesList\n              @title={{t \"emailCampaigns.publishDialog.globalChanges\"}}\n              @hasLanguage={{false}}\n              @changes={{this.globalChanges}}\n              @validations={{this.globalValidations}}\n              @isExpanded={{this.isGlobalErrorsExpandend}}\n            />\n          {{/if}}\n        </div>\n  \n        <div class=\"mb3\">\n          <div class=\"font-sm font-medium secondary mb1\">\n            {{t \"emailCampaigns.publishDialog.languages\"}}\n          </div>\n  \n          {{#if this._isLoading}}\n            <UiSkeleton @items={{5}} @itemsPerRow={{1}} @cardHeight={{52}} @gap={{4}} />\n          {{else}}\n            {{#each-in this.languageSpecificChanges as |language changes|}}\n              <AmcCampaign::EmailCampaign::PublishDialog::ChangesList\n                @language={{language}}\n                @changes={{changes}}\n                @globalValidations={{this.globalValidations}}\n                @validations={{get this.languageSpecificValidations language}}\n                @onSelect={{this.onLanguageSelect}}\n                @publishedLanguages={{this.model.publishedLanguages}}\n              />\n            {{/each-in}}\n          {{/if}}\n        </div>\n  \n        <AmcCampaign::EmailCampaign::PublishDialog::ScheduleSettings\n          @model={{this.model}}\n          @isLoading={{this._isLoading}}\n        />\n      </c.body>\n    </m.content>\n    <m.footer>\n      <UiButton\n        @label={{if\n          this.hasBackButton\n          (t \"global.actions.saveAndPublish\")\n          (t \"global.actions.publish\")\n        }}\n        @icon=\"publish\"\n        @onClick={{this.publish}}\n      />\n    </m.footer>\n  </UiModal>\n  */\n  {\n    \"id\": \"U55R/VSZ\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@subtitle\\\",\\\"@onClose\\\",\\\"@isBackButton\\\",\\\"@size\\\"],[[28,[37,1],[\\\"emailCampaigns.publishDialog.title\\\"],null],[30,0,[\\\"model\\\",\\\"name\\\"]],[28,[37,2],[[30,0,[\\\"onClose\\\"]],false],null],[30,0,[\\\"hasBackButton\\\"]],\\\"lg\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],[[4,[38,3],[[28,[37,4],[[30,0,[\\\"setup\\\"]]],null]],null]],[[\\\"@class\\\"],[\\\"flex flex-grow-1\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],[[24,0,\\\"pb3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mb3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"emailCampaigns.publishDialog.description\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mb3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary mb1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"emailCampaigns.publishDialog.dependencies.title\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_isLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,72,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,7],null,[[\\\"@validations\\\",\\\"@isExpanded\\\"],[[30,0,[\\\"dependencyValidations\\\"]],[30,0,[\\\"isDependencyCheckExpanded\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mb3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary mb1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"emailCampaigns.publishDialog.globalChanges\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_isLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,1,52,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,8],null,[[\\\"@title\\\",\\\"@hasLanguage\\\",\\\"@changes\\\",\\\"@validations\\\",\\\"@isExpanded\\\"],[[28,[37,1],[\\\"emailCampaigns.publishDialog.globalChanges\\\"],null],false,[30,0,[\\\"globalChanges\\\"]],[30,0,[\\\"globalValidations\\\"]],[30,0,[\\\"isGlobalErrorsExpandend\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mb3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary mb1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"emailCampaigns.publishDialog.languages\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_isLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[5,1,52,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,10],[[30,0,[\\\"languageSpecificChanges\\\"]]],null],null,[[[1,\\\"            \\\"],[8,[39,8],null,[[\\\"@language\\\",\\\"@changes\\\",\\\"@globalValidations\\\",\\\"@validations\\\",\\\"@onSelect\\\",\\\"@publishedLanguages\\\"],[[30,4],[30,3],[30,0,[\\\"globalValidations\\\"]],[28,[37,11],[[30,0,[\\\"languageSpecificValidations\\\"]],[30,4]],null],[30,0,[\\\"onLanguageSelect\\\"]],[30,0,[\\\"model\\\",\\\"publishedLanguages\\\"]]]],null],[1,\\\"\\\\n\\\"]],[3,4]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,12],null,[[\\\"@model\\\",\\\"@isLoading\\\"],[[30,0,[\\\"model\\\"]],[30,0,[\\\"_isLoading\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[52,[30,0,[\\\"hasBackButton\\\"]],[28,[37,1],[\\\"global.actions.saveAndPublish\\\"],null],[28,[37,1],[\\\"global.actions.publish\\\"],null]],\\\"publish\\\",[30,0,[\\\"publish\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"m\\\",\\\"c\\\",\\\"changes\\\",\\\"language\\\"],false,[\\\"ui-modal\\\",\\\"t\\\",\\\"fn\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"amc-campaign/email-campaign/publish-dialog/dependency-check\\\",\\\"amc-campaign/email-campaign/publish-dialog/changes-list\\\",\\\"each\\\",\\\"-each-in\\\",\\\"get\\\",\\\"amc-campaign/email-campaign/publish-dialog/schedule-settings\\\",\\\"ui-button\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/publish-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignEmailCampaignPublishDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _computed.or)('setup.isRunning', '_isSaving'), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _dec5 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    const baseUrl = this.uiTransactionManager.baseUrl;\n    const url = `${baseUrl}/${this.uiTransactionManager.transactionId}/validate`;\n    try {\n      tasks.push(this.authenticatedFetch.fetch(url, {\n        headers: {\n          'Accept-Language': this.currentUserLanguage\n        }\n      }));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const data = yield response.json();\n      if (data !== null && data !== void 0 && data.validations) {\n        this.sortValidationErrors(data === null || data === void 0 ? void 0 : data.validations);\n      }\n    } catch (error) {\n      this.uiDialog.showError();\n      yield this.onClose(false);\n    }\n  }), _dec6 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    const baseUrl = this.uiTransactionManager.baseUrl;\n    const url = `${baseUrl}/${this.uiTransactionManager.transactionId}/${this.model.type}/${this.model.id}/languages/available`;\n    try {\n      var _this$model;\n      tasks.push(this.authenticatedFetch.fetch(url));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const {\n        languages\n      } = yield response.json();\n      const publishedLanguages = ((_this$model = this.model) === null || _this$model === void 0 ? void 0 : _this$model.publishedLanguages) || [];\n      const mergedLanguages = [...new Set([...languages, ...publishedLanguages])];\n      this.availableLanguages = mergedLanguages;\n      yield this.validate.perform();\n      this.sortChanges();\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class AmcCampaignEmailCampaignPublishDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor6, this);\n      _initializerDefineProperty(this, \"router\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor8, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor9, this);\n      _initializerDefineProperty(this, \"model\", _descriptor10, this);\n      _initializerDefineProperty(this, \"hasBackButton\", _descriptor11, this);\n      _initializerDefineProperty(this, \"selectedLanguages\", _descriptor12, this);\n      _initializerDefineProperty(this, \"globalValidations\", _descriptor13, this);\n      _initializerDefineProperty(this, \"availableLanguages\", _descriptor14, this);\n      _initializerDefineProperty(this, \"languageSpecificValidations\", _descriptor15, this);\n      _initializerDefineProperty(this, \"dependencyValidations\", _descriptor16, this);\n      _initializerDefineProperty(this, \"globalChanges\", _descriptor17, this);\n      _initializerDefineProperty(this, \"isGlobalErrorsExpandend\", _descriptor18, this);\n      _initializerDefineProperty(this, \"isDependencyCheckExpanded\", _descriptor19, this);\n      _initializerDefineProperty(this, \"languageSpecificChanges\", _descriptor20, this);\n      _initializerDefineProperty(this, \"_isSaving\", _descriptor21, this);\n      _initializerDefineProperty(this, \"_isLoading\", _descriptor22, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor23, this);\n      /**\n       * Sends a validation request to check the campaign for potential errors\n       *\n       * @type {Task}\n       * @function validate\n       * @private\n       */\n      _initializerDefineProperty(this, \"validate\", _descriptor24, this);\n      _initializerDefineProperty(this, \"setup\", _descriptor25, this);\n    }\n    get hasUncommitedChanges() {\n      return this.model.active || this.uiTransactionManager.hasChanges;\n    }\n    get currentUserLanguage() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.user) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.language;\n    }\n    getTranslationKey(modelName, propertyName) {\n      let modelNameKey = null;\n      let propertyKey = null;\n      if (modelName === 'email-series') {\n        modelNameKey = 'emails';\n        propertyKey = `${modelNameKey}.${propertyName}`;\n      } else if (modelName === 'email') {\n        modelNameKey = 'email';\n        propertyKey = `emails.${modelNameKey}.${propertyName}`;\n      } else if (modelName === 'email-campaign-contribution') {\n        modelNameKey = 'contribution';\n        propertyKey = `${modelNameKey}.${propertyName}`;\n      } else if (modelName === 'email-campaign-landingpage') {\n        modelNameKey = 'landingPage';\n        propertyKey = `${modelNameKey}.${propertyName}`;\n      } else {\n        modelNameKey = 'configurations';\n        propertyKey = `${modelNameKey}.${propertyName}`;\n      }\n      if (propertyName) {\n        return propertyKey;\n      }\n      return modelNameKey;\n    }\n    sortChanges() {\n      const {\n        changedModels\n      } = this.uiTransactionManager;\n      const {\n        availableLanguages\n      } = this;\n      const globalChanges = [];\n      const languageSpecificChanges = [];\n      availableLanguages.forEach(language => {\n        languageSpecificChanges[language] = [];\n      });\n      changedModels.forEach(changedModel => {\n        var _modelChanges$;\n        const modelChanges = (0, _lodash.default)(changedModel.changes);\n\n        // Set \"key\" for translations\n        modelChanges.forEach(change => {\n          const key = change.key.split('.');\n          const modelName = key[0];\n          const propertyName = key[1];\n          if ((change === null || change === void 0 ? void 0 : change.modelKey) === 'configurations') {\n            const configurationItem = changedModel === null || changedModel === void 0 ? void 0 : changedModel.configurations.find(configuration => configuration.key === propertyName);\n\n            // Get configuration type from metadata\n            const key = Object.keys(this.model.meta).sort()[0];\n            const configurationMeta = this.model.meta[key].configurations;\n            const configuration = configurationMeta.find(item => item.key === configurationItem.key);\n            if (configuration !== null && configuration !== void 0 && configuration.type) {\n              change.configurationType = configuration.type;\n            }\n            if (configuration !== null && configuration !== void 0 && configuration.label) {\n              change.label = configuration.label;\n            }\n          }\n          if (modelName === 'email-campaign-contribution' && change.key === 'email-campaign-contribution.value') {\n            change.old = (0, _currencySerialization.centsToAmount)(change.old);\n            change.new = (0, _currencySerialization.centsToAmount)(change.new);\n          }\n          if (typeof change.old === 'string' && (change === null || change === void 0 ? void 0 : change.modelKey) !== 'configurations') {\n            change.old = (0, _string.htmlSafe)(_dompurify.default.sanitize(change.old));\n          }\n          if (typeof change.new === 'string' && (change === null || change === void 0 ? void 0 : change.modelKey) !== 'configurations') {\n            change.new = (0, _string.htmlSafe)(_dompurify.default.sanitize(change.new));\n          }\n          change.key = this.getTranslationKey(modelName, propertyName);\n          if (change.type === 'changed' || change.type === 'added') {\n            const translationKey = this.getTranslationKey(modelName);\n            const translatedModelName = this.intl.t(`emailCampaigns.publishDialog.${translationKey}`);\n            if ((change === null || change === void 0 ? void 0 : change.modelKey) === 'configurations') {\n              change.label = `${translatedModelName} - \"${change.label}\"`;\n              change.useApiTranslation = true;\n            } else if (changedModel.title) {\n              change.label = `${translatedModelName} \"${changedModel.title}\"`;\n            } else if (changedModel.label) {\n              change.label = `${translatedModelName} \"${changedModel.label}\"`;\n            } else if (changedModel.subject) {\n              change.label = `${translatedModelName} \"${changedModel.subject}\"`;\n            } else {\n              change.label = translatedModelName;\n            }\n          }\n          if (change.type === 'activated' || change.type === 'deactivated') {\n            if (changedModel.title) {\n              change.value = changedModel.title;\n            } else if (changedModel.label) {\n              change.value = changedModel.label;\n            } else if (changedModel.subject) {\n              change.value = changedModel.subject;\n            } else {\n              change.value = '-';\n            }\n            change.key = this.getTranslationKey(modelName);\n          }\n        });\n        if (changedModel !== null && changedModel !== void 0 && changedModel.language && (modelChanges === null || modelChanges === void 0 || (_modelChanges$ = modelChanges[0]) === null || _modelChanges$ === void 0 ? void 0 : _modelChanges$.modelKey) !== 'configurations') {\n          if (!(languageSpecificChanges !== null && languageSpecificChanges !== void 0 && languageSpecificChanges[changedModel.language])) {\n            languageSpecificChanges[changedModel.language] = [];\n          }\n          if (changedModel !== null && changedModel !== void 0 && changedModel.availableLanguages) {\n            if (changedModel.availableLanguages.length === 0) {\n              changedModel.availableLanguages.push(changedModel.language);\n            }\n            changedModel.availableLanguages.forEach(language => {\n              if (!(languageSpecificChanges !== null && languageSpecificChanges !== void 0 && languageSpecificChanges[language])) {\n                languageSpecificChanges[language] = [];\n              }\n            });\n          }\n\n          // Change is language specific\n          if (changedModel.isDeleted) {\n            changedModel.type = 'deleted';\n            changedModel.availableLanguages.forEach(language => {\n              languageSpecificChanges[language].push(changedModel);\n            });\n          } else if (changedModel.isDeletedLanguage) {\n            changedModel.type = 'deleted';\n            languageSpecificChanges[changedModel.language].push(changedModel);\n          } else {\n            modelChanges.forEach(change => {\n              if (change.type === 'activated' || change.type === 'deactivated') {\n                changedModel.availableLanguages.forEach(language => {\n                  languageSpecificChanges[language].push(change);\n                });\n              } else {\n                languageSpecificChanges[changedModel.language].push(change);\n              }\n            });\n          }\n        } else {\n          // General change (not language specific)\n          if (changedModel.isDeleted) {\n            changedModel.type = 'deleted';\n            globalChanges.push(changedModel);\n          } else {\n            globalChanges.push(...modelChanges);\n          }\n        }\n      });\n      this.languageSpecificChanges = languageSpecificChanges;\n      this.globalChanges = globalChanges;\n    }\n    sortValidationErrors(validations) {\n      this.isGlobalErrorsExpandend = false;\n      this.isDependencyCheckExpanded = false;\n      const {\n        availableLanguages\n      } = this;\n      const globalValidations = [];\n      const dependencyValidations = [];\n      const languageSpecificValidations = [];\n      availableLanguages.forEach(language => {\n        languageSpecificValidations[language] = [];\n      });\n\n      // Sort validation errors according to type (dependency, language specific, general)\n      validations.forEach(validation => {\n        if ((validation === null || validation === void 0 ? void 0 : validation.category) === 'dependency') {\n          if (!(validation !== null && validation !== void 0 && validation.language)) {\n            dependencyValidations.push(validation);\n          } else {\n            if (!(validation.language in languageSpecificValidations)) {\n              languageSpecificValidations[validation.language] = [];\n            }\n            languageSpecificValidations[validation.language].push(validation);\n          }\n        } else if (!validation.language) {\n          globalValidations.push(validation);\n        } else {\n          if (!(validation.language in languageSpecificValidations)) {\n            languageSpecificValidations[validation.language] = [];\n          }\n          languageSpecificValidations[validation.language].push(validation);\n        }\n      });\n      if (globalValidations.length > 0) {\n        this.isGlobalErrorsExpandend = true;\n      }\n      if (dependencyValidations.length > 0) {\n        this.isDependencyCheckExpanded = true;\n      }\n      this.globalValidations = globalValidations;\n      this.languageSpecificValidations = languageSpecificValidations;\n      this.dependencyValidations = dependencyValidations;\n    }\n    async publish() {\n      this._isSaving = true;\n      let toast = this.uiToast.showToast({\n        title: this.intl.t('emailCampaigns.publishDialog.toast.publish.title'),\n        description: this.intl.t('emailCampaigns.publishDialog.toast.publish.text'),\n        type: 'loading',\n        duration: -1\n      });\n      const response = await this.uiTransactionManager.commitTransaction();\n      if (response !== null && response !== void 0 && response.errors && (response === null || response === void 0 ? void 0 : response.status) !== 409) {\n        this.sortValidationErrors(response.errors);\n        this._isSaving = false;\n        this.uiToast.destroyToast(toast);\n        this.uiToast.showToast({\n          title: this.intl.t('emailCampaigns.publishDialog.toast.publishFailed.title'),\n          description: this.intl.t('emailCampaigns.publishDialog.toast.publishFailed.text'),\n          type: 'error'\n        });\n      } else if (response !== null && response !== void 0 && response.message && (response === null || response === void 0 ? void 0 : response.status) === 409) {\n        this._isSaving = false;\n        this.uiToast.destroyToast(toast);\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n        this.uiDialog.showError(null, response.message);\n      } else {\n        const isNew = this.model.isNew;\n        if (isNew) {\n          const metadata = this.model.meta;\n\n          // Remove record with temporary id\n          await this.store.unloadRecord(this.model);\n\n          // Add campaign with permanent id to store\n          await this.store.pushPayload('email-campaign', {\n            emailCampaigns: response.campaign\n          });\n          let newEmailCampaign = await this.store.peekRecord('email-campaign', response.campaign.id);\n\n          // Set metadata\n          newEmailCampaign.meta = metadata;\n\n          // Add new campaign to filter\n          this.uiFilter.addItem('email', newEmailCampaign);\n\n          // Transition to new campaign needed, since the temporary ID is no longer available\n          this.router.transitionTo('instance.campaigns.email.detail', newEmailCampaign);\n        }\n        await this.onClose(true, isNew);\n        this._isSaving = false;\n        this.uiToast.destroyToast(toast);\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      }\n    }\n    async onLanguageSelect(language, isSelected) {\n      if (isSelected) {\n        await this.model.transactionPublish(language);\n      } else {\n        await this.model.transactionUnpublish(language);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"hasBackButton\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"selectedLanguages\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"globalValidations\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"availableLanguages\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"languageSpecificValidations\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"dependencyValidations\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"globalChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"isGlobalErrorsExpandend\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"isDependencyCheckExpanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"languageSpecificChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"_isSaving\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"_isLoading\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"validate\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"sortChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sortChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sortValidationErrors\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sortValidationErrors\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"publish\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"publish\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onLanguageSelect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onLanguageSelect\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignPublishDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/publish-dialog/changes-list\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-animated\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberAnimated, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"flex flex-column w-100 bg-secondary--10 mb05 br1 pa2\">\n    <div class=\"flex justify-between {{if this._isExpanded 'pb3'}}\">\n      <div class=\"flex\">\n        <UiPopover as |pop|>\n          <pop.trigger>\n            <UiStatus @class=\"mr1\" @state={{if this.validations.length \"error\" \"success\"}} />\n          </pop.trigger>\n          <pop.content>\n            {{t\n              (concat this.intlBaseKey \".publishDialog.stateInfo\")\n              changesCount=this.changes.length\n              errorsCount=this.validations.length\n              htmlSafe=true\n            }}\n          </pop.content>\n        </UiPopover>\n        {{#if this.hasLanguage}}\n          <div class=\"primary font-medium font-sm\">\n            {{t (concat \"global.languages.\" this.language)}}\n          </div>\n        {{else}}\n          <div class=\"primary font-medium font-sm\">\n            {{this.title}}\n          </div>\n        {{/if}}\n      </div>\n      <div class=\"flex\">\n        {{#if this.hasLanguage}}\n          <UiSwitch\n            @class=\"mr2\"\n            @value={{this._isSelected}}\n            @isReadOnly={{and\n              (or this.globalValidations.length this.validations.length)\n              (not this._isSelected)\n            }}\n            @onChange={{fn this.onSelect this.language (not this._isSelected)}}\n          />\n        {{/if}}\n  \n        <UiIconButton\n          @isSecondary={{true}}\n          @isDisabled={{this._isEmpty}}\n          @icon={{if this._isExpanded \"pointer-up\" \"pointer-down\"}}\n          @onClick={{this.toggle}}\n        />\n      </div>\n    </div>\n  \n    <AnimatedContainer class=\"ohidden\">\n      {{#animated-if this._isExpanded use=this._animatedTransition}}\n        <div class=\"ml3 pl05\">\n          {{#if this.validations.length}}\n            <div class=\"mb2\">\n              <div class=\"font-sm font-medium secondary mb2\">\n                {{t (concat this.intlBaseKey \".publishDialog.errors\")}}\n              </div>\n  \n              {{#each this.validations as |validation|}}\n                <div class=\"w-100 bg-secondary--10 br1 pv2 mb05\">\n                  <div class=\"secondary font-sm font-medium w-100 pl2 text-left\">\n                    {{validation.entityType}}\n                  </div>\n  \n                  <div class=\"flex justify-between mt05\">\n                    <div class=\"primary font-sm font-medium w-100 pl2 text-left\">\n                      {{validation.message}}\n                    </div>\n                    <UiStatusBadge @classNames=\"mr2 font-medium self-end\" @state=\"error\">\n                      {{t (concat this.intlBaseKey \".publishDialog.error\")}}\n                    </UiStatusBadge>\n                  </div>\n                </div>\n              {{/each}}\n            </div>\n          {{/if}}\n  \n          {{#if this.changes.length}}\n            <div class=\"font-sm font-medium secondary mb2\">\n              {{t (concat this.intlBaseKey \".publishDialog.changes\")}}\n            </div>\n            {{#each this.changes as |change|}}\n              <div class=\"w-100 bg-secondary--10 br1 pv2 mb05\">\n                {{#if (equal change.type \"changed\")}}\n                  <div class=\"secondary font-sm font-medium w-100 pl2 text-left\">\n                    {{change.label}}\n                    {{#unless change.useApiTranslation}}\n                      {{\" - \"}}\n                      {{t (concat this.intlBaseKey \".steps.\" change.key)}}\n                    {{/unless}}\n                  </div>\n                  <div class=\"flex justify-between mt05\">\n                    <div class=\"primary font-sm font-medium w-100 pl2 text-left\">\n                      {{#if change.old.url}}\n                        <img\n                          src={{mm-medium-url-options change.old.url (hash size=\"64x64\")}}\n                          width=\"64\"\n                          height=\"64\"\n                          alt={{change.old.name}}\n                        />\n                      {{else}}\n                        {{#if (equal change.key \"emails.offsetInDays\")}}\n                          {{change.old}}\n                          {{t \"global.properties.days\"}}\n                        {{else if (equal change.key \"contribution.value\")}}\n                          {{currency change.old format=this.uiAppSettings.currency}}\n                        {{else if (and change.modelKey (equal change.modelKey \"configurations\"))}}\n                          {{#if (equal change.configurationType \"boolean\")}}\n                            <UiSwitch @class=\"mt05\" @value={{change.old}} />\n                          {{else}}\n                            {{amc-campaign-configuration-value\n                              (hash type=change.configurationType value=change.old)\n                              this.configurationValueOptions\n                            }}\n                          {{/if}}\n                        {{else}}\n                          {{change.old}}\n                        {{/if}}\n                      {{/if}}\n                    </div>\n                    {{svg-jar\n                      \"arrow-right\"\n                      width=\"20\"\n                      height=\"20\"\n                      class=\"secondary mh2 flex-shrink-0 self-center\"\n                    }}\n  \n                    <div class=\"primary font-sm font-medium w-100 pr2 text-left\">\n                      {{#if change.new.url}}\n                        <img\n                          src={{mm-medium-url-options change.new.url (hash size=\"64x64\")}}\n                          width=\"64\"\n                          height=\"64\"\n                          alt={{change.new.name}}\n                        />\n                      {{else}}\n                        {{#if (equal change.key \"emails.offsetInDays\")}}\n                          {{change.new}}\n                          {{t \"global.properties.days\"}}\n                        {{else if (equal change.key \"contribution.value\")}}\n                          {{currency change.new format=this.uiAppSettings.currency}}\n                        {{else if (and change.modelKey (equal change.modelKey \"configurations\"))}}\n                          {{#if (equal change.configurationType \"boolean\")}}\n                            <UiSwitch @class=\"mt05\" @value={{change.new}} />\n                          {{else}}\n                            {{amc-campaign-configuration-value\n                              (hash type=change.configurationType value=change.new)\n                              this.configurationValueOptions\n                            }}\n                          {{/if}}\n                        {{else}}\n                          {{change.new}}\n                        {{/if}}\n                      {{/if}}\n                    </div>\n                    <UiStatusBadge @classNames=\"mr2 font-medium self-end\" @state=\"info\">\n                      {{t (concat this.intlBaseKey \".publishDialog.updated\")}}\n                    </UiStatusBadge>\n                  </div>\n                {{else if (equal change.type \"added\")}}\n                  <div class=\"secondary font-sm font-medium w-100 pl2 text-left\">\n                    {{change.label}}\n                    {{#unless change.useApiTranslation}}\n                      {{\" - \"}}\n                      {{t (concat this.intlBaseKey \".steps.\" change.key)}}\n                    {{/unless}}\n                  </div>\n  \n                  <div class=\"flex justify-between mt05\">\n                    <div class=\"primary font-sm font-medium w-100 pl2 text-left\">\n                      -\n                    </div>\n                    {{svg-jar\n                      \"arrow-right\"\n                      width=\"20\"\n                      height=\"20\"\n                      class=\"secondary mh2 flex-shrink-0 self-center\"\n                    }}\n  \n                    <div class=\"primary font-sm font-medium w-100 pr2 text-left\">\n                      {{#if change.new.url}}\n                        <img\n                          src={{mm-medium-url-options change.new.url (hash size=\"64x64\")}}\n                          width=\"64\"\n                          height=\"64\"\n                          alt={{change.new.name}}\n                        />\n                      {{else}}\n                        {{#if (equal change.key \"emails.offsetInDays\")}}\n                          {{change.new}}\n                          {{t \"global.properties.days\"}}\n                        {{else if (equal change.key \"contribution.value\")}}\n                          {{format-number change.new format=this.uiAppSettings.currency}}\n                        {{else if (and change.modelKey (equal change.modelKey \"configurations\"))}}\n                          {{amc-campaign-configuration-value\n                            (hash type=change.configurationType value=change.new)\n                            this.configurationValueOptions\n                          }}\n                        {{else}}\n                          {{change.new}}\n                        {{/if}}\n                      {{/if}}\n                    </div>\n                    <UiStatusBadge @classNames=\"mr2 font-medium self-end\" @state=\"success\">\n                      {{t (concat this.intlBaseKey \".publishDialog.created\")}}\n                    </UiStatusBadge>\n                  </div>\n                {{else if (equal change.type \"deleted\")}}\n                  <div class=\"secondary font-sm font-medium w-100 pl2 text-left\">\n                    {{#if\n                      (or\n                        (equal change.modelName \"email-campaign-contribution\")\n                        (equal change.modelName \"trigger-email-campaign-contribution\")\n                      )\n                    }}\n                      {{t (concat this.intlBaseKey \".publishDialog.contribution\")}}\n                    {{else if\n                      (or\n                        (equal change.modelName \"email-series\")\n                        (equal change.modelName \"trigger-email-campaign-email-series\")\n                      )\n                    }}\n                      {{t (concat this.intlBaseKey \".publishDialog.emails\")}}\n                    {{else if\n                      (or\n                        (equal change.modelName \"email\")\n                        (equal change.modelName \"trigger-email-campaign-email\")\n                      )\n                    }}\n                      {{t (concat this.intlBaseKey \".publishDialog.email\")}}\n                    {{/if}}\n                  </div>\n  \n                  <div class=\"flex justify-between mt05\">\n                    <div class=\"primary font-sm font-medium w-100 pl2 text-left\">\n                      {{#if change.title}}\n                        {{change.title}}\n                      {{else if change.label}}\n                        {{change.label}}\n                      {{else if change.subject}}\n                        {{change.subject}}\n                      {{else}}\n                        -\n                      {{/if}}\n                    </div>\n                    <UiStatusBadge @classNames=\"mr2 font-medium self-end\" @state=\"error\">\n                      {{t (concat this.intlBaseKey \".publishDialog.deleted\")}}\n                    </UiStatusBadge>\n                  </div>\n                {{else if (or (equal change.type \"activated\") (equal change.type \"deactivated\"))}}\n                  <div class=\"secondary font-sm font-medium w-100 pl2 text-left\">\n                    {{t (concat this.intlBaseKey \".publishDialog.\" change.key)}}\n                  </div>\n  \n                  <div class=\"flex justify-between mt05\">\n                    <div class=\"primary font-sm font-medium w-100 pl2 text-left\">\n                      {{change.value}}\n                    </div>\n                    <UiStatusBadge\n                      @classNames=\"mr2 font-medium self-end\"\n                      @state={{if (equal change.type \"activated\") \"success\" \"error\"}}\n                    >\n                      {{t (concat this.intlBaseKey \".publishDialog.\" change.type)}}\n                    </UiStatusBadge>\n                  </div>\n                {{/if}}\n              </div>\n            {{/each}}\n          {{/if}}\n        </div>\n      {{/animated-if}}\n    </AnimatedContainer>\n  </div>\n  */\n  {\n    \"id\": \"x0FY2LW4\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex flex-column w-100 bg-secondary--10 mb05 br1 pa2\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[29,[\\\"flex justify-between \\\",[52,[30,0,[\\\"_isExpanded\\\"]],\\\"pb3\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,1],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,2],null,[[\\\"@class\\\",\\\"@state\\\"],[\\\"mr1\\\",[52,[30,0,[\\\"validations\\\",\\\"length\\\"]],\\\"error\\\",\\\"success\\\"]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[[28,[37,4],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.stateInfo\\\"],null]],[[\\\"changesCount\\\",\\\"errorsCount\\\",\\\"htmlSafe\\\"],[[30,0,[\\\"changes\\\",\\\"length\\\"]],[30,0,[\\\"validations\\\",\\\"length\\\"]],true]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasLanguage\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"primary font-medium font-sm\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[[28,[37,4],[\\\"global.languages.\\\",[30,0,[\\\"language\\\"]]],null]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"primary font-medium font-sm\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"title\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasLanguage\\\"]],[[[1,\\\"        \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[\\\"mr2\\\",[30,0,[\\\"_isSelected\\\"]],[28,[37,6],[[28,[37,7],[[30,0,[\\\"globalValidations\\\",\\\"length\\\"]],[30,0,[\\\"validations\\\",\\\"length\\\"]]],null],[28,[37,8],[[30,0,[\\\"_isSelected\\\"]]],null]],null],[28,[37,9],[[30,0,[\\\"onSelect\\\"]],[30,0,[\\\"language\\\"]],[28,[37,8],[[30,0,[\\\"_isSelected\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@isSecondary\\\",\\\"@isDisabled\\\",\\\"@icon\\\",\\\"@onClick\\\"],[true,[30,0,[\\\"_isEmpty\\\"]],[52,[30,0,[\\\"_isExpanded\\\"]],\\\"pointer-up\\\",\\\"pointer-down\\\"],[30,0,[\\\"toggle\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,11],[[24,0,\\\"ohidden\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[6,[39,12],[[30,0,[\\\"_isExpanded\\\"]]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ml3 pl05\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"validations\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mb2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary mb2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[[28,[37,4],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.errors\\\"],null]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"validations\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,0,\\\"w-100 bg-secondary--10 br1 pv2 mb05\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"secondary font-sm font-medium w-100 pl2 text-left\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,2,[\\\"entityType\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"flex justify-between mt05\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"primary font-sm font-medium w-100 pl2 text-left\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,2,[\\\"message\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,15],null,[[\\\"@classNames\\\",\\\"@state\\\"],[\\\"mr2 font-medium self-end\\\",\\\"error\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,3],[[28,[37,4],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.error\\\"],null]],null]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"changes\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary mb2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[28,[37,4],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.changes\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"changes\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,0],[14,0,\\\"w-100 bg-secondary--10 br1 pv2 mb05\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,3,[\\\"type\\\"]],\\\"changed\\\"],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"secondary font-sm font-medium w-100 pl2 text-left\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,3,[\\\"label\\\"]]],[1,\\\"\\\\n\\\"],[41,[51,[30,3,[\\\"useApiTranslation\\\"]]],[[[1,\\\"                    \\\"],[1,\\\" - \\\"],[1,\\\"\\\\n                    \\\"],[1,[28,[35,3],[[28,[37,4],[[30,0,[\\\"intlBaseKey\\\"]],\\\".steps.\\\",[30,3,[\\\"key\\\"]]],null]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"flex justify-between mt05\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"primary font-sm font-medium w-100 pl2 text-left\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"old\\\",\\\"url\\\"]],[[[1,\\\"                      \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[28,[37,18],[[30,3,[\\\"old\\\",\\\"url\\\"]],[28,[37,19],null,[[\\\"size\\\"],[\\\"64x64\\\"]]]],null]],[14,\\\"width\\\",\\\"64\\\"],[14,\\\"height\\\",\\\"64\\\"],[15,\\\"alt\\\",[30,3,[\\\"old\\\",\\\"name\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,3,[\\\"key\\\"]],\\\"emails.offsetInDays\\\"],null],[[[1,\\\"                        \\\"],[1,[30,3,[\\\"old\\\"]]],[1,\\\"\\\\n                        \\\"],[1,[28,[35,3],[\\\"global.properties.days\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,3,[\\\"key\\\"]],\\\"contribution.value\\\"],null],[[[1,\\\"                        \\\"],[1,[28,[35,20],[[30,3,[\\\"old\\\"]]],[[\\\"format\\\"],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,3,[\\\"modelKey\\\"]],[28,[37,16],[[30,3,[\\\"modelKey\\\"]],\\\"configurations\\\"],null]],null],[[[41,[28,[37,16],[[30,3,[\\\"configurationType\\\"]],\\\"boolean\\\"],null],[[[1,\\\"                          \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@value\\\"],[\\\"mt05\\\",[30,3,[\\\"old\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          \\\"],[1,[28,[35,21],[[28,[37,19],null,[[\\\"type\\\",\\\"value\\\"],[[30,3,[\\\"configurationType\\\"]],[30,3,[\\\"old\\\"]]]]],[30,0,[\\\"configurationValueOptions\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"                        \\\"],[1,[30,3,[\\\"old\\\"]]],[1,\\\"\\\\n                      \\\"]],[]]]],[]]]],[]]]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,22],[\\\"arrow-right\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"secondary mh2 flex-shrink-0 self-center\\\"]]]],[1,\\\"\\\\n\\\\n                  \\\"],[10,0],[14,0,\\\"primary font-sm font-medium w-100 pr2 text-left\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"new\\\",\\\"url\\\"]],[[[1,\\\"                      \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[28,[37,18],[[30,3,[\\\"new\\\",\\\"url\\\"]],[28,[37,19],null,[[\\\"size\\\"],[\\\"64x64\\\"]]]],null]],[14,\\\"width\\\",\\\"64\\\"],[14,\\\"height\\\",\\\"64\\\"],[15,\\\"alt\\\",[30,3,[\\\"new\\\",\\\"name\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,3,[\\\"key\\\"]],\\\"emails.offsetInDays\\\"],null],[[[1,\\\"                        \\\"],[1,[30,3,[\\\"new\\\"]]],[1,\\\"\\\\n                        \\\"],[1,[28,[35,3],[\\\"global.properties.days\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,3,[\\\"key\\\"]],\\\"contribution.value\\\"],null],[[[1,\\\"                        \\\"],[1,[28,[35,20],[[30,3,[\\\"new\\\"]]],[[\\\"format\\\"],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,3,[\\\"modelKey\\\"]],[28,[37,16],[[30,3,[\\\"modelKey\\\"]],\\\"configurations\\\"],null]],null],[[[41,[28,[37,16],[[30,3,[\\\"configurationType\\\"]],\\\"boolean\\\"],null],[[[1,\\\"                          \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@value\\\"],[\\\"mt05\\\",[30,3,[\\\"new\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          \\\"],[1,[28,[35,21],[[28,[37,19],null,[[\\\"type\\\",\\\"value\\\"],[[30,3,[\\\"configurationType\\\"]],[30,3,[\\\"new\\\"]]]]],[30,0,[\\\"configurationValueOptions\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"                        \\\"],[1,[30,3,[\\\"new\\\"]]],[1,\\\"\\\\n                      \\\"]],[]]]],[]]]],[]]]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,15],null,[[\\\"@classNames\\\",\\\"@state\\\"],[\\\"mr2 font-medium self-end\\\",\\\"info\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,3],[[28,[37,4],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.updated\\\"],null]],null]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,3,[\\\"type\\\"]],\\\"added\\\"],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"secondary font-sm font-medium w-100 pl2 text-left\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,3,[\\\"label\\\"]]],[1,\\\"\\\\n\\\"],[41,[51,[30,3,[\\\"useApiTranslation\\\"]]],[[[1,\\\"                    \\\"],[1,\\\" - \\\"],[1,\\\"\\\\n                    \\\"],[1,[28,[35,3],[[28,[37,4],[[30,0,[\\\"intlBaseKey\\\"]],\\\".steps.\\\",[30,3,[\\\"key\\\"]]],null]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"flex justify-between mt05\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"primary font-sm font-medium w-100 pl2 text-left\\\"],[12],[1,\\\"\\\\n                    -\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,22],[\\\"arrow-right\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"secondary mh2 flex-shrink-0 self-center\\\"]]]],[1,\\\"\\\\n\\\\n                  \\\"],[10,0],[14,0,\\\"primary font-sm font-medium w-100 pr2 text-left\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"new\\\",\\\"url\\\"]],[[[1,\\\"                      \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[28,[37,18],[[30,3,[\\\"new\\\",\\\"url\\\"]],[28,[37,19],null,[[\\\"size\\\"],[\\\"64x64\\\"]]]],null]],[14,\\\"width\\\",\\\"64\\\"],[14,\\\"height\\\",\\\"64\\\"],[15,\\\"alt\\\",[30,3,[\\\"new\\\",\\\"name\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,3,[\\\"key\\\"]],\\\"emails.offsetInDays\\\"],null],[[[1,\\\"                        \\\"],[1,[30,3,[\\\"new\\\"]]],[1,\\\"\\\\n                        \\\"],[1,[28,[35,3],[\\\"global.properties.days\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,3,[\\\"key\\\"]],\\\"contribution.value\\\"],null],[[[1,\\\"                        \\\"],[1,[28,[35,23],[[30,3,[\\\"new\\\"]]],[[\\\"format\\\"],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,3,[\\\"modelKey\\\"]],[28,[37,16],[[30,3,[\\\"modelKey\\\"]],\\\"configurations\\\"],null]],null],[[[1,\\\"                        \\\"],[1,[28,[35,21],[[28,[37,19],null,[[\\\"type\\\",\\\"value\\\"],[[30,3,[\\\"configurationType\\\"]],[30,3,[\\\"new\\\"]]]]],[30,0,[\\\"configurationValueOptions\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[30,3,[\\\"new\\\"]]],[1,\\\"\\\\n                      \\\"]],[]]]],[]]]],[]]]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,15],null,[[\\\"@classNames\\\",\\\"@state\\\"],[\\\"mr2 font-medium self-end\\\",\\\"success\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,3],[[28,[37,4],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.created\\\"],null]],null]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,3,[\\\"type\\\"]],\\\"deleted\\\"],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"secondary font-sm font-medium w-100 pl2 text-left\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[28,[37,16],[[30,3,[\\\"modelName\\\"]],\\\"email-campaign-contribution\\\"],null],[28,[37,16],[[30,3,[\\\"modelName\\\"]],\\\"trigger-email-campaign-contribution\\\"],null]],null],[[[1,\\\"                    \\\"],[1,[28,[35,3],[[28,[37,4],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.contribution\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[28,[37,16],[[30,3,[\\\"modelName\\\"]],\\\"email-series\\\"],null],[28,[37,16],[[30,3,[\\\"modelName\\\"]],\\\"trigger-email-campaign-email-series\\\"],null]],null],[[[1,\\\"                    \\\"],[1,[28,[35,3],[[28,[37,4],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.emails\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[28,[37,16],[[30,3,[\\\"modelName\\\"]],\\\"email\\\"],null],[28,[37,16],[[30,3,[\\\"modelName\\\"]],\\\"trigger-email-campaign-email\\\"],null]],null],[[[1,\\\"                    \\\"],[1,[28,[35,3],[[28,[37,4],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.email\\\"],null]],null]],[1,\\\"\\\\n                  \\\"]],[]],null]],[]]]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"flex justify-between mt05\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"primary font-sm font-medium w-100 pl2 text-left\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"title\\\"]],[[[1,\\\"                      \\\"],[1,[30,3,[\\\"title\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,3,[\\\"label\\\"]],[[[1,\\\"                      \\\"],[1,[30,3,[\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,3,[\\\"subject\\\"]],[[[1,\\\"                      \\\"],[1,[30,3,[\\\"subject\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      -\\\\n                    \\\"]],[]]]],[]]]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,15],null,[[\\\"@classNames\\\",\\\"@state\\\"],[\\\"mr2 font-medium self-end\\\",\\\"error\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,3],[[28,[37,4],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.deleted\\\"],null]],null]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[28,[37,16],[[30,3,[\\\"type\\\"]],\\\"activated\\\"],null],[28,[37,16],[[30,3,[\\\"type\\\"]],\\\"deactivated\\\"],null]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"secondary font-sm font-medium w-100 pl2 text-left\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,3],[[28,[37,4],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.\\\",[30,3,[\\\"key\\\"]]],null]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"flex justify-between mt05\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"primary font-sm font-medium w-100 pl2 text-left\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,3,[\\\"value\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,15],null,[[\\\"@classNames\\\",\\\"@state\\\"],[\\\"mr2 font-medium self-end\\\",[52,[28,[37,16],[[30,3,[\\\"type\\\"]],\\\"activated\\\"],null],\\\"success\\\",\\\"error\\\"]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,3],[[28,[37,4],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.\\\",[30,3,[\\\"type\\\"]]],null]],null]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"]],[]],null]],[]]]],[]]]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"pop\\\",\\\"validation\\\",\\\"change\\\"],false,[\\\"if\\\",\\\"ui-popover\\\",\\\"ui-status\\\",\\\"t\\\",\\\"concat\\\",\\\"ui-switch\\\",\\\"and\\\",\\\"or\\\",\\\"not\\\",\\\"fn\\\",\\\"ui-icon-button\\\",\\\"animated-container\\\",\\\"animated-if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ui-status-badge\\\",\\\"equal\\\",\\\"unless\\\",\\\"mm-medium-url-options\\\",\\\"hash\\\",\\\"currency\\\",\\\"amc-campaign-configuration-value\\\",\\\"svg-jar\\\",\\\"format-number\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/publish-dialog/changes-list.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignEmailCampaignPublishDialogChangesListComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.string), _dec5 = (0, _emberArgTypes.arg)(_propTypes.array), _dec6 = (0, _emberArgTypes.arg)(_propTypes.array), _dec7 = (0, _emberArgTypes.arg)(_propTypes.array), _dec8 = (0, _emberArgTypes.arg)(_propTypes.array), _dec9 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec10 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignEmailCampaignPublishDialogChangesListComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasLanguage\", _descriptor3, this);\n      _initializerDefineProperty(this, \"title\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intlBaseKey\", _descriptor5, this);\n      _initializerDefineProperty(this, \"language\", _descriptor6, this);\n      _initializerDefineProperty(this, \"changes\", _descriptor7, this);\n      _initializerDefineProperty(this, \"validations\", _descriptor8, this);\n      _initializerDefineProperty(this, \"globalValidations\", _descriptor9, this);\n      _initializerDefineProperty(this, \"publishedLanguages\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isExpanded\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_isExpanded\", _descriptor12, this);\n      _defineProperty(this, \"_animatedTransition\", _emberAnimated.fade);\n      /**\n       * callback function on select\n       *\n       * @argument onSelect\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onSelect\", _descriptor13, this);\n      this._isExpanded = this.isExpanded;\n    }\n    get _isEmpty() {\n      return (!this.changes || this.changes.length === 0) && (!this.validations || this.validations.length === 0);\n    }\n    get _isSelected() {\n      if (!this.publishedLanguages || this.publishedLanguages.length === 0) {\n        return false;\n      }\n      return this.publishedLanguages.includes(this.language);\n    }\n\n    /**\n     * computed options used to format the configuration values\n     *\n     * @computed configurationValueOptions\n     * @returns {Object}\n     */\n    get configurationValueOptions() {\n      return {\n        currency: this.uiAppSettings.currency\n      };\n    }\n    toggle() {\n      const value = this._isExpanded;\n      this._isExpanded = !value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasLanguage\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intlBaseKey\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 'emailCampaigns';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"language\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"changes\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"validations\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"globalValidations\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"publishedLanguages\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isExpanded\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"_isExpanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"onSelect\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggle\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignPublishDialogChangesListComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/publish-dialog/dependency-check\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-animated\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberAnimated, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"flex flex-column w-100 bg-secondary--10 mb05 br1 pa2\">\n    <div class=\"flex justify-between {{if this._isExpanded 'pb3'}}\">\n      <div class=\"flex\">\n        <UiStatus @class=\"mr1\" @state={{this._status}} />\n  \n        <div class=\"flex flex-column\">\n          <div class=\"primary font-medium font-sm\">\n            {{t (concat this.intlBaseKey \".publishDialog.dependencies.title\")}}\n          </div>\n  \n          <div class=\"secondary font-medium font-sm mt05\">\n            {{#if this._isEmpty}}\n              {{t (concat this.intlBaseKey \".publishDialog.dependencies.correctlyConfigured\")}}\n            {{else}}\n              {{t (concat this.intlBaseKey \".publishDialog.dependencies.faultyConfigured\")}}\n            {{/if}}\n          </div>\n        </div>\n      </div>\n      <div class=\"flex\">\n        <UiIconButton\n          @isSecondary={{true}}\n          @isDisabled={{this._isEmpty}}\n          @icon={{if this._isExpanded \"pointer-up\" \"pointer-down\"}}\n          @onClick={{this.toggle}}\n        />\n      </div>\n    </div>\n  \n    <AnimatedContainer class=\"ohidden\">\n      {{#animated-if this._isExpanded use=this._animatedTransition}}\n        <div class=\"ml3 pl05\">\n          <div class=\"mb2\">\n            <div class=\"font-sm font-medium secondary mb2\">\n              {{t (concat this.intlBaseKey \".publishDialog.errors\")}}\n            </div>\n  \n            {{#each this.validations as |validation|}}\n              <div class=\"w-100 bg-secondary--10 br1 pv2 mb05\">\n                <div class=\"secondary font-sm font-medium w-100 pl2 text-left\">\n                  {{validation.entityType}}\n                </div>\n  \n                <div class=\"flex justify-between mt05\">\n                  <div class=\"primary font-sm font-medium w-100 pl2 text-left\">\n                    {{validation.message}}\n                  </div>\n                  <UiStatusBadge @classNames=\"mr2 font-medium self-end\" @state=\"error\">\n                    {{t (concat this.intlBaseKey \".publishDialog.error\")}}\n                  </UiStatusBadge>\n                </div>\n              </div>\n            {{/each}}\n          </div>\n        </div>\n      {{/animated-if}}\n    </AnimatedContainer>\n  </div>\n  */\n  {\n    \"id\": \"klUsW1dP\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex flex-column w-100 bg-secondary--10 mb05 br1 pa2\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[29,[\\\"flex justify-between \\\",[52,[30,0,[\\\"_isExpanded\\\"]],\\\"pb3\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@state\\\"],[\\\"mr1\\\",[30,0,[\\\"_status\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"primary font-medium font-sm\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,2],[[28,[37,3],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.dependencies.title\\\"],null]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"secondary font-medium font-sm mt05\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isEmpty\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,2],[[28,[37,3],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.dependencies.correctlyConfigured\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,2],[[28,[37,3],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.dependencies.faultyConfigured\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@isSecondary\\\",\\\"@isDisabled\\\",\\\"@icon\\\",\\\"@onClick\\\"],[true,[30,0,[\\\"_isEmpty\\\"]],[52,[30,0,[\\\"_isExpanded\\\"]],\\\"pointer-up\\\",\\\"pointer-down\\\"],[30,0,[\\\"toggle\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,5],[[24,0,\\\"ohidden\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[6,[39,6],[[30,0,[\\\"_isExpanded\\\"]]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ml3 pl05\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"mb2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary mb2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,2],[[28,[37,3],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.errors\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"validations\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,0],[14,0,\\\"w-100 bg-secondary--10 br1 pv2 mb05\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"secondary font-sm font-medium w-100 pl2 text-left\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"entityType\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"flex justify-between mt05\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"primary font-sm font-medium w-100 pl2 text-left\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,1,[\\\"message\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,9],null,[[\\\"@classNames\\\",\\\"@state\\\"],[\\\"mr2 font-medium self-end\\\",\\\"error\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[28,[35,2],[[28,[37,3],[[30,0,[\\\"intlBaseKey\\\"]],\\\".publishDialog.error\\\"],null]],null]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"validation\\\"],false,[\\\"if\\\",\\\"ui-status\\\",\\\"t\\\",\\\"concat\\\",\\\"ui-icon-button\\\",\\\"animated-container\\\",\\\"animated-if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ui-status-badge\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/publish-dialog/dependency-check.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignEmailCampaignPublishDialogDependencyCheckComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.array), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _class = class AmcCampaignEmailCampaignPublishDialogDependencyCheckComponent extends _component2.default {\n    get _isEmpty() {\n      var _this$validations;\n      return ((_this$validations = this.validations) === null || _this$validations === void 0 ? void 0 : _this$validations.length) === 0;\n    }\n    get _status() {\n      return this._isEmpty ? 'success' : 'error';\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"validations\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intlBaseKey\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isExpanded\", _descriptor4, this);\n      _initializerDefineProperty(this, \"_isExpanded\", _descriptor5, this);\n      _defineProperty(this, \"_animatedTransition\", _emberAnimated.fade);\n      this._isExpanded = this.isExpanded;\n    }\n    toggle() {\n      const value = this._isExpanded;\n      this._isExpanded = !value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"validations\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intlBaseKey\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 'emailCampaigns';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isExpanded\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_isExpanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggle\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignPublishDialogDependencyCheckComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/publish-dialog/schedule-settings\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-animated\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberAnimated, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"amc-email-campaign-schedule-settings\">\n    <div class=\"font-sm font-medium secondary mb1\">\n      {{t \"emailCampaigns.publishDialog.schedule.title\"}}\n    </div>\n  \n    {{#if this.isLoading}}\n      {{#if this.model.isStartsAtEnabled}}\n        <UiSkeleton @items={{1}} @cardHeight={{144}} @gap={{4}} />\n      {{else}}\n        <UiSkeleton @items={{1}} @cardHeight={{52}} @gap={{4}} />\n      {{/if}}\n  \n      {{#if this.model.isEndsAtEnabled}}\n        <UiSkeleton @items={{1}} @cardHeight={{144}} @gap={{4}} />\n      {{else}}\n        <UiSkeleton @items={{1}} @cardHeight={{52}} @gap={{4}} />\n      {{/if}}\n    {{else}}\n      <div\n        class=\"flex flex-column w-100 bg-secondary--10 mb05 br1 pa2\n          {{if this.model.isStartsAtEnabled 'pb0'}}\"\n      >\n        <div class=\"flex justify-between\">\n          <div class=\"primary font-medium font-sm\">\n            {{t \"emailCampaigns.publishDialog.schedule.setCampaignStart\"}}\n          </div>\n          <UiSwitch\n            @value={{this.model.isStartsAtEnabled}}\n            @onChange={{fn this.schedulePublication \"isStartsAtEnabled\"}}\n          />\n        </div>\n        <AnimatedContainer class=\"ohidden\">\n          {{#animated-if this.model.isStartsAtEnabled use=this._animatedTransition}}\n            <UiDatetimePicker\n              @classNames=\"flex-row mt2\"\n              @onChange={{fn this.schedulePublication \"startsAt\"}}\n              @isClearable={{true}}\n              @isTouched={{true}}\n              @initialDate={{this.model.startsAt}}\n              @dateErrorMessage={{this._startsAtError}}\n              @minDate={{this._minDate}}\n            />\n          {{/animated-if}}\n        </AnimatedContainer>\n      </div>\n  \n      <div\n        class=\"flex flex-column w-100 bg-secondary--10 mb05 br1 pa2\n          {{if this.model.isEndsAtEnabled 'pb0'}}\"\n      >\n        <div class=\"flex justify-between\">\n          <div class=\"primary font-medium font-sm\">\n            {{t \"emailCampaigns.publishDialog.schedule.setCampaignEnd\"}}\n          </div>\n          <UiSwitch\n            @value={{this.model.isEndsAtEnabled}}\n            @onChange={{fn this.schedulePublication \"isEndsAtEnabled\"}}\n          />\n        </div>\n        <AnimatedContainer class=\"ohidden\">\n          {{#animated-if this.model.isEndsAtEnabled use=this._animatedTransition}}\n            <UiDatetimePicker\n              @classNames=\"flex-row mt2\"\n              @onChange={{fn this.schedulePublication \"endsAt\"}}\n              @isClearable={{true}}\n              @isTouched={{true}}\n              @initialDate={{this.model.endsAt}}\n              @dateErrorMessage={{this._endsAtError}}\n              @minDate={{this._minDate}}\n            />\n          {{/animated-if}}\n        </AnimatedContainer>\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"PjCvwkqX\",\n    \"block\": \"[[[10,0],[14,0,\\\"amc-email-campaign-schedule-settings\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary mb1\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,0],[\\\"emailCampaigns.publishDialog.schedule.title\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"isStartsAtEnabled\\\"]],[[[1,\\\"      \\\"],[8,[39,2],null,[[\\\"@items\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,144,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,2],null,[[\\\"@items\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,52,4]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"isEndsAtEnabled\\\"]],[[[1,\\\"      \\\"],[8,[39,2],null,[[\\\"@items\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,144,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,2],null,[[\\\"@items\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,52,4]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[15,0,[29,[\\\"flex flex-column w-100 bg-secondary--10 mb05 br1 pa2\\\\n        \\\",[52,[30,0,[\\\"model\\\",\\\"isStartsAtEnabled\\\"]],\\\"pb0\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex justify-between\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"primary font-medium font-sm\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,0],[\\\"emailCampaigns.publishDialog.schedule.setCampaignStart\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,3],null,[[\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"isStartsAtEnabled\\\"]],[28,[37,4],[[30,0,[\\\"schedulePublication\\\"]],\\\"isStartsAtEnabled\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,5],[[24,0,\\\"ohidden\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[6,[39,6],[[30,0,[\\\"model\\\",\\\"isStartsAtEnabled\\\"]]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"          \\\"],[8,[39,7],null,[[\\\"@classNames\\\",\\\"@onChange\\\",\\\"@isClearable\\\",\\\"@isTouched\\\",\\\"@initialDate\\\",\\\"@dateErrorMessage\\\",\\\"@minDate\\\"],[\\\"flex-row mt2\\\",[28,[37,4],[[30,0,[\\\"schedulePublication\\\"]],\\\"startsAt\\\"],null],true,true,[30,0,[\\\"model\\\",\\\"startsAt\\\"]],[30,0,[\\\"_startsAtError\\\"]],[30,0,[\\\"_minDate\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,0,[29,[\\\"flex flex-column w-100 bg-secondary--10 mb05 br1 pa2\\\\n        \\\",[52,[30,0,[\\\"model\\\",\\\"isEndsAtEnabled\\\"]],\\\"pb0\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex justify-between\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"primary font-medium font-sm\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,0],[\\\"emailCampaigns.publishDialog.schedule.setCampaignEnd\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,3],null,[[\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"isEndsAtEnabled\\\"]],[28,[37,4],[[30,0,[\\\"schedulePublication\\\"]],\\\"isEndsAtEnabled\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,5],[[24,0,\\\"ohidden\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[6,[39,6],[[30,0,[\\\"model\\\",\\\"isEndsAtEnabled\\\"]]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"          \\\"],[8,[39,7],null,[[\\\"@classNames\\\",\\\"@onChange\\\",\\\"@isClearable\\\",\\\"@isTouched\\\",\\\"@initialDate\\\",\\\"@dateErrorMessage\\\",\\\"@minDate\\\"],[\\\"flex-row mt2\\\",[28,[37,4],[[30,0,[\\\"schedulePublication\\\"]],\\\"endsAt\\\"],null],true,true,[30,0,[\\\"model\\\",\\\"endsAt\\\"]],[30,0,[\\\"_endsAtError\\\"]],[30,0,[\\\"_minDate\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"t\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-switch\\\",\\\"fn\\\",\\\"animated-container\\\",\\\"animated-if\\\",\\\"ui-datetime-picker\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/publish-dialog/schedule-settings.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignEmailCampaignPublishDialogScheduleSettingsComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _class = class AmcCampaignEmailCampaignPublishDialogScheduleSettingsComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"model\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isLoading\", _descriptor3, this);\n      _initializerDefineProperty(this, \"_minDate\", _descriptor4, this);\n      _initializerDefineProperty(this, \"_startsAtError\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_endsAtError\", _descriptor6, this);\n      _defineProperty(this, \"_animatedTransition\", _emberAnimated.fade);\n    }\n    async schedulePublication(key, value) {\n      var _this$model, _this$model2;\n      if (key === 'isStartsAtEnabled' || key === 'isEndsAtEnabled') {\n        await this.model.transactionSchedulePublication(key, value);\n        return;\n      }\n      this._endsAtError = null;\n      this._startsAtError = null;\n      const startsAt = key === 'startsAt' ? value : this.model.startsAt;\n      const endsAt = key === 'endsAt' ? value : this.model.endsAt;\n      if (this.model.isEndsAtEnabled && (endsAt && startsAt > endsAt || !startsAt)) {\n        this._startsAtError = this.intl.t('errors.beforeEndDate');\n      }\n      if (this.model.isStartsAtEnabled && (startsAt && endsAt < startsAt || !endsAt)) {\n        this._endsAtError = this.intl.t('errors.afterStartDate');\n      }\n      if (key === 'startsAt' && (value === null || value === void 0 ? void 0 : value.getTime()) === ((_this$model = this.model) === null || _this$model === void 0 || (_this$model = _this$model.startsAt) === null || _this$model === void 0 ? void 0 : _this$model.getTime())) {\n        return;\n      }\n      if (key === 'endsAt' && (value === null || value === void 0 ? void 0 : value.getTime()) === ((_this$model2 = this.model) === null || _this$model2 === void 0 || (_this$model2 = _this$model2.endsAt) === null || _this$model2 === void 0 ? void 0 : _this$model2.getTime())) {\n        return;\n      }\n      await this.model.transactionSchedulePublication(key, value);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_minDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return new Date();\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_startsAtError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"_endsAtError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"schedulePublication\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"schedulePublication\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignPublishDialogScheduleSettingsComponent);\n});","define(\"additive-mc/components/amc-campaign/email-campaign/trigger\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/service\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _service, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.trigger}}\n    <div class=\"email-campaign-trigger flex flex-column\">\n      {{#unless this.hideLabel}}\n        <div\n          class=\"font-sm secondary pb2 {{if this.isLabelClickable \"cpointer text-underline\"}}\"\n          role=\"button\"\n          {{on \"click\" this.onLabelClick}}\n        >\n          {{t \"emailCampaigns.steps.emails.trigger\"}}\n        </div>\n      {{/unless}}\n  \n      <div class=\"flex items-center w-100 bg-secondary--10 br1\">\n        <div class=\"email-campaign-trigger__icon-container pa2 bg-secondary--20\">\n          {{svg-jar \"bolt-filled\" width=\"20\" height=\"20\"}}\n        </div>\n        <div class=\"ml2 font-sm primary w-100\">\n          {{this.model.descriptions.trigger.event}}\n        </div>\n  \n        <UiPopover as |pop|>\n          <pop.trigger>\n            {{svg-jar \"info\" class=\"secondary mr2\" width=\"20\" height=\"20\"}}\n          </pop.trigger>\n          <pop.content>\n            {{this.model.descriptions.trigger.details}}\n          </pop.content>\n        </UiPopover>\n      </div>\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"2rybdvqu\",\n    \"block\": \"[[[41,[30,0,[\\\"trigger\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"email-campaign-trigger flex flex-column\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"hideLabel\\\"]]],[[[1,\\\"      \\\"],[11,0],[16,0,[29,[\\\"font-sm secondary pb2 \\\",[52,[30,0,[\\\"isLabelClickable\\\"]],\\\"cpointer text-underline\\\"]]]],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"onLabelClick\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"emailCampaigns.steps.emails.trigger\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex items-center w-100 bg-secondary--10 br1\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"email-campaign-trigger__icon-container pa2 bg-secondary--20\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"bolt-filled\\\"],[[\\\"width\\\",\\\"height\\\"],[\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ml2 font-sm primary w-100\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"descriptions\\\",\\\"trigger\\\",\\\"event\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,5],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"info\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"secondary mr2\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"descriptions\\\",\\\"trigger\\\",\\\"details\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"pop\\\"],false,[\\\"if\\\",\\\"unless\\\",\\\"on\\\",\\\"t\\\",\\\"svg-jar\\\",\\\"ui-popover\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/email-campaign/trigger.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignEmailCampaignTriggerComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignEmailCampaignTriggerComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"model\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hideLabel\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isLabelClickable\", _descriptor4, this);\n      _initializerDefineProperty(this, \"onLabelClick\", _descriptor5, this);\n    }\n    get trigger() {\n      return this.intl.t(`emailCampaigns.${this.model.code}.trigger`);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hideLabel\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isLabelClickable\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"onLabelClick\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignEmailCampaignTriggerComponent);\n});","define(\"additive-mc/components/amc-campaign/info-item\", [\"exports\", \"@ember/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _component.default.extend({\n    classNames: ['amc-campaign__configuration-item', 'flex', 'items-center', 'h2', 'font-sm', 'bt', 'b--black-10'],\n    label: null,\n    value: null\n  });\n});","define(\"additive-mc/components/amc-campaign/on-page/content-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/template\", \"@glimmer/tracking\", \"ember-arg-types\", \"prop-types\", \"ember-concurrency\", \"dompurify\", \"additive-mc/validations/on-page-campaign\"], function (_exports, _component, _templateFactory, _environment, _component2, _object, _service, _template, _tracking, _emberArgTypes, _propTypes, _emberConcurrency, _dompurify, _onPageCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiMultilingualModal\n    @title={{t \"onPageCampaigns.content.dialog.title\"}}\n    @backRoute=\"instance.campaigns.on-page.detail\"\n    @resource={{this._model}}\n    @modelName=\"on-page-content\"\n    @modelOptions={{hash adapterOptions=(hash campaignId=this._campaignId)}}\n    @multilingualProperties=\"headline,text,ctaText\"\n    @validation={{this.validation}}\n    @save={{this.save}}\n    @onClose={{action \"onClose\"}}\n    @isEdit={{this._isEdit}}\n    @isLoading={{this.isLoading}}\n    @isReadOnly={{@isReadOnly}}\n    as |modal|\n  >\n    {{#unless @isReadOnly}}\n      {{#if modal.isReadOnly}}\n        <AmcDeleteModel\n          @modelOptions={{hash adapterOptions=(hash campaignId=this._campaignId)}}\n          @resourceId={{this._model.id}}\n          @modelName=\"on-page-content\"\n          @hasFilter={{false}}\n          @afterDelete={{action \"afterDelete\" this._model}}\n          as |dm|\n        >\n          {{#let\n            this._model.active \"onPageCampaigns.onPageCampaign.content.toggle.confirmation.\"\n            as |active prefix|\n          }}\n            <AmcToggleActivation\n              @modelOptions={{hash adapterOptions=(hash campaignId=this._campaignId)}}\n              @modelName=\"on-page-content\"\n              @resourceId={{this._model.id}}\n              @isActive={{active}}\n              @confirmation={{hash\n                label=(t (concat prefix \"label\") active=active)\n                description=(t (concat prefix \"description\") active=active)\n                action=(t (concat prefix \"action\") active=active)\n              }}\n              as |ta|\n            >\n              <modal.headerAction>\n                <UiItemMenu as |content|>\n                  <content.menuItem\n                    @label={{t (concat \"global.actions.\" (if active \"deactivate\" \"activate\"))}}\n                    @onClick={{ta.toggleAction}}\n                  />\n                  <content.menuItem\n                    @label={{t \"global.actions.delete\"}}\n                    @isDanger={{true}}\n                    @onClick={{dm.deleteAction}}\n                  />\n                </UiItemMenu>\n              </modal.headerAction>\n            </AmcToggleActivation>\n          {{/let}}\n        </AmcDeleteModel>\n      {{/if}}\n    {{/unless}}\n  \n    <modal.content>\n      <UiInput\n        @label={{t \"onPageCampaigns.content.dialog.headline\"}}\n        @value={{modal.changeset.headline}}\n        @isReadOnly={{modal.isReadOnly}}\n        @errorMessage={{modal.changeset.error.headline.validation.firstObject}}\n        @isTouched={{this.isTouched}}\n      />\n  \n      {{#if modal.isReadOnly}}\n        <UiFormControl @label={{t \"onPageCampaigns.content.dialog.text\"}} as |container|>\n          <container.content>\n            <div class=\"ph1\">\n              {{this._text}}\n            </div>\n          </container.content>\n        </UiFormControl>\n      {{else}}\n        <UiEditor\n          @label={{t \"onPageCampaigns.content.dialog.text\"}}\n          @initialValue={{modal.changeset.text}}\n          @onChange={{changeset-set modal.changeset \"text\"}}\n          @isTouched={{this.isTouched}}\n          @corporateDesignColors={{this.corporateDesignColors}}\n        />\n      {{/if}}\n  \n      {{#if modal.isReadOnly}}\n        <UiFormControl\n          @label={{t \"onPageCampaigns.content.dialog.termsAndConditions\"}}\n          as |container|\n        >\n          <container.content>\n            <div class=\"flex flex-column\">\n              <UiSwitch\n                @label={{t \"onPageCampaigns.content.dialog.showTermsAndConditions\"}}\n                @value={{modal.changeset.showTermsAndConditions}}\n                @isReadOnly={{true}}\n              />\n  \n              {{#if modal.changeset.showTermsAndConditions}}\n                <div class=\"flex mt1\">\n                  <UiSwitch\n                    @class=\"mr05\"\n                    @label={{t \"onPageCampaigns.content.dialog.expandTermsAndConditions\"}}\n                    @value={{modal.changeset.expandTermsAndConditions}}\n                    @isReadOnly={{true}}\n                  />\n  \n                  <UiPopover as |pop|>\n                    <pop.trigger>\n                      {{svg-jar \"info\" class=\"secondary\" width=\"20\" height=\"20\"}}\n                    </pop.trigger>\n                    <pop.content>\n                      {{t \"onPageCampaigns.content.dialog.expandTermsAndConditionsTooltip\"}}\n                    </pop.content>\n                  </UiPopover>\n                </div>\n  \n                <div class=\"mt05 ph1\">\n                  {{this._termsAndConditions}}\n                </div>\n              {{/if}}\n            </div>\n          </container.content>\n        </UiFormControl>\n      {{else}}\n        <div class={{unless modal.changeset.showTermsAndConditions \"mb2\"}}>\n          <div class=\"font-sm secondary mb05\">\n            {{t \"onPageCampaigns.content.dialog.termsAndConditions\"}}\n          </div>\n          <UiSwitch\n            @label={{t \"onPageCampaigns.content.dialog.showTermsAndConditions\"}}\n            @value={{modal.changeset.showTermsAndConditions}}\n            @onChange={{changeset-set modal.changeset \"showTermsAndConditions\"}}\n          />\n  \n          {{#if modal.changeset.showTermsAndConditions}}\n            <div class=\"flex mt1\">\n              <UiSwitch\n                @class=\"mr05\"\n                @label={{t \"onPageCampaigns.content.dialog.expandTermsAndConditions\"}}\n                @value={{modal.changeset.expandTermsAndConditions}}\n                @onChange={{changeset-set modal.changeset \"expandTermsAndConditions\"}}\n              />\n  \n              <UiPopover as |pop|>\n                <pop.trigger>\n                  {{svg-jar \"info\" class=\"secondary\" width=\"20\" height=\"20\"}}\n                </pop.trigger>\n                <pop.content>\n                  {{t \"onPageCampaigns.content.dialog.expandTermsAndConditionsTooltip\"}}\n                </pop.content>\n              </UiPopover>\n            </div>\n  \n            <UiEditor\n              @initialValue={{modal.changeset.termsAndConditions}}\n              @onChange={{changeset-set modal.changeset \"termsAndConditions\"}}\n              @errorMessage={{modal.changeset.error.termsAndConditions.validation.firstObject}}\n              @isTouched={{this.isTouched}}\n              @corporateDesignColors={{this.corporateDesignColors}}\n            />\n          {{/if}}\n        </div>\n      {{/if}}\n  \n      <UiInput\n        @label={{t \"onPageCampaigns.content.dialog.ctaText\"}}\n        @value={{modal.changeset.ctaText}}\n        @isReadOnly={{modal.isReadOnly}}\n        @isTouched={{this.isTouched}}\n        @errorMessage={{modal.changeset.error.ctaText.validation.firstObject}}\n      />\n  \n      <div class=\"mt2\">\n        <MmResourceGallery\n          @resources={{changeset-get modal.changeset \"image\"}}\n          @onDropzoneClick={{action \"openMultimedia\"}}\n          @onResourceRemove={{action \"onResourceRemove\" modal.changeset}}\n          @onResourceEdit={{action (changeset-set modal.changeset \"image\")}}\n          @isReadOnly={{modal.isReadOnly}}\n          @mediumType=\"image\"\n        />\n      </div>\n  \n      <MmMultimediaOverlay\n        @onClose={{action \"closeMultimedia\"}}\n        @onAddMedium={{action \"addMedium\" modal.changeset}}\n      >\n        {{yield (hash multimediaOverlayContent=(component \"ui-blank-template\"))}}\n      </MmMultimediaOverlay>\n  \n      <div class=\"mt2\">\n        <UiLabel @value={{t \"onPageCampaigns.content.dialog.form\"}} />\n        {{#each this._formOptions as |val|}}\n          <div class=\"flex items-center font-sm\">\n            <UiCheckbox\n              @value={{get modal.changeset.form val}}\n              @isDisabled={{modal.isReadOnly}}\n              @onChange={{fn this.toggleFormOption modal.changeset val}}\n              @label={{t (concat \"onPageCampaigns.content.dialog.formOptions.\" val)}}\n            />\n          </div>\n        {{/each}}\n      </div>\n    </modal.content>\n  </UiMultilingualModal>\n  */\n  {\n    \"id\": \"8itS69Id\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@backRoute\\\",\\\"@resource\\\",\\\"@modelName\\\",\\\"@modelOptions\\\",\\\"@multilingualProperties\\\",\\\"@validation\\\",\\\"@save\\\",\\\"@onClose\\\",\\\"@isEdit\\\",\\\"@isLoading\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"onPageCampaigns.content.dialog.title\\\"],null],\\\"instance.campaigns.on-page.detail\\\",[30,0,[\\\"_model\\\"]],\\\"on-page-content\\\",[28,[37,2],null,[[\\\"adapterOptions\\\"],[[28,[37,2],null,[[\\\"campaignId\\\"],[[30,0,[\\\"_campaignId\\\"]]]]]]]],\\\"headline,text,ctaText\\\",[30,0,[\\\"validation\\\"]],[30,0,[\\\"save\\\"]],[28,[37,3],[[30,0],\\\"onClose\\\"],null],[30,0,[\\\"_isEdit\\\"]],[30,0,[\\\"isLoading\\\"]],[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,1]],[[[41,[30,2,[\\\"isReadOnly\\\"]],[[[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@modelOptions\\\",\\\"@resourceId\\\",\\\"@modelName\\\",\\\"@hasFilter\\\",\\\"@afterDelete\\\"],[[28,[37,2],null,[[\\\"adapterOptions\\\"],[[28,[37,2],null,[[\\\"campaignId\\\"],[[30,0,[\\\"_campaignId\\\"]]]]]]]],[30,0,[\\\"_model\\\",\\\"id\\\"]],\\\"on-page-content\\\",false,[28,[37,3],[[30,0],\\\"afterDelete\\\",[30,0,[\\\"_model\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[30,0,[\\\"_model\\\",\\\"active\\\"]],\\\"onPageCampaigns.onPageCampaign.content.toggle.confirmation.\\\"],[[[1,\\\"          \\\"],[8,[39,8],null,[[\\\"@modelOptions\\\",\\\"@modelName\\\",\\\"@resourceId\\\",\\\"@isActive\\\",\\\"@confirmation\\\"],[[28,[37,2],null,[[\\\"adapterOptions\\\"],[[28,[37,2],null,[[\\\"campaignId\\\"],[[30,0,[\\\"_campaignId\\\"]]]]]]]],\\\"on-page-content\\\",[30,0,[\\\"_model\\\",\\\"id\\\"]],[30,4],[28,[37,2],null,[[\\\"label\\\",\\\"description\\\",\\\"action\\\"],[[28,[37,1],[[28,[37,9],[[30,5],\\\"label\\\"],null]],[[\\\"active\\\"],[[30,4]]]],[28,[37,1],[[28,[37,9],[[30,5],\\\"description\\\"],null]],[[\\\"active\\\"],[[30,4]]]],[28,[37,1],[[28,[37,9],[[30,5],\\\"action\\\"],null]],[[\\\"active\\\"],[[30,4]]]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"headerAction\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,10],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,7,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,1],[[28,[37,9],[\\\"global.actions.\\\",[52,[30,4],\\\"deactivate\\\",\\\"activate\\\"]],null]],null],[30,6,[\\\"toggleAction\\\"]]]],null],[1,\\\"\\\\n                \\\"],[8,[30,7,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.delete\\\"],null],true,[30,3,[\\\"deleteAction\\\"]]]],null],[1,\\\"\\\\n              \\\"]],[7]]]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[4,5]]],[1,\\\"      \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,11],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,1],[\\\"onPageCampaigns.content.dialog.headline\\\"],null],[30,2,[\\\"changeset\\\",\\\"headline\\\"]],[30,2,[\\\"isReadOnly\\\"]],[30,2,[\\\"changeset\\\",\\\"error\\\",\\\"headline\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,0,[\\\"isTouched\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2,[\\\"isReadOnly\\\"]],[[[1,\\\"      \\\"],[8,[39,12],null,[[\\\"@label\\\"],[[28,[37,1],[\\\"onPageCampaigns.content.dialog.text\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,8,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ph1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"_text\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[8]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@onChange\\\",\\\"@isTouched\\\",\\\"@corporateDesignColors\\\"],[[28,[37,1],[\\\"onPageCampaigns.content.dialog.text\\\"],null],[30,2,[\\\"changeset\\\",\\\"text\\\"]],[28,[37,14],[[30,2,[\\\"changeset\\\"]],\\\"text\\\"],null],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"corporateDesignColors\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isReadOnly\\\"]],[[[1,\\\"      \\\"],[8,[39,12],null,[[\\\"@label\\\"],[[28,[37,1],[\\\"onPageCampaigns.content.dialog.termsAndConditions\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,9,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"onPageCampaigns.content.dialog.showTermsAndConditions\\\"],null],[30,2,[\\\"changeset\\\",\\\"showTermsAndConditions\\\"]],true]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2,[\\\"changeset\\\",\\\"showTermsAndConditions\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"flex mt1\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,15],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\"],[\\\"mr05\\\",[28,[37,1],[\\\"onPageCampaigns.content.dialog.expandTermsAndConditions\\\"],null],[30,2,[\\\"changeset\\\",\\\"expandTermsAndConditions\\\"]],true]],null],[1,\\\"\\\\n\\\\n                \\\"],[8,[39,16],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[8,[30,10,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,17],[\\\"info\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"secondary\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                  \\\"],[8,[30,10,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,1],[\\\"onPageCampaigns.content.dialog.expandTermsAndConditionsTooltip\\\"],null]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                \\\"]],[10]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"mt05 ph1\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"_termsAndConditions\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[9]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[15,0,[52,[51,[30,2,[\\\"changeset\\\",\\\"showTermsAndConditions\\\"]]],\\\"mb2\\\"]],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-sm secondary mb05\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"onPageCampaigns.content.dialog.termsAndConditions\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"onPageCampaigns.content.dialog.showTermsAndConditions\\\"],null],[30,2,[\\\"changeset\\\",\\\"showTermsAndConditions\\\"]],[28,[37,14],[[30,2,[\\\"changeset\\\"]],\\\"showTermsAndConditions\\\"],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2,[\\\"changeset\\\",\\\"showTermsAndConditions\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex mt1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\"],[\\\"mr05\\\",[28,[37,1],[\\\"onPageCampaigns.content.dialog.expandTermsAndConditions\\\"],null],[30,2,[\\\"changeset\\\",\\\"expandTermsAndConditions\\\"]],[28,[37,14],[[30,2,[\\\"changeset\\\"]],\\\"expandTermsAndConditions\\\"],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,16],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,11,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,17],[\\\"info\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"secondary\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,11,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"onPageCampaigns.content.dialog.expandTermsAndConditionsTooltip\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[11]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,13],null,[[\\\"@initialValue\\\",\\\"@onChange\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@corporateDesignColors\\\"],[[30,2,[\\\"changeset\\\",\\\"termsAndConditions\\\"]],[28,[37,14],[[30,2,[\\\"changeset\\\"]],\\\"termsAndConditions\\\"],null],[30,2,[\\\"changeset\\\",\\\"error\\\",\\\"termsAndConditions\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"corporateDesignColors\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n    \\\"],[8,[39,11],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@isTouched\\\",\\\"@errorMessage\\\"],[[28,[37,1],[\\\"onPageCampaigns.content.dialog.ctaText\\\"],null],[30,2,[\\\"changeset\\\",\\\"ctaText\\\"]],[30,2,[\\\"isReadOnly\\\"]],[30,0,[\\\"isTouched\\\"]],[30,2,[\\\"changeset\\\",\\\"error\\\",\\\"ctaText\\\",\\\"validation\\\",\\\"firstObject\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@resources\\\",\\\"@onDropzoneClick\\\",\\\"@onResourceRemove\\\",\\\"@onResourceEdit\\\",\\\"@isReadOnly\\\",\\\"@mediumType\\\"],[[28,[37,19],[[30,2,[\\\"changeset\\\"]],\\\"image\\\"],null],[28,[37,3],[[30,0],\\\"openMultimedia\\\"],null],[28,[37,3],[[30,0],\\\"onResourceRemove\\\",[30,2,[\\\"changeset\\\"]]],null],[28,[37,3],[[30,0],[28,[37,14],[[30,2,[\\\"changeset\\\"]],\\\"image\\\"],null]],null],[30,2,[\\\"isReadOnly\\\"]],\\\"image\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,20],null,[[\\\"@onClose\\\",\\\"@onAddMedium\\\"],[[28,[37,3],[[30,0],\\\"closeMultimedia\\\"],null],[28,[37,3],[[30,0],\\\"addMedium\\\",[30,2,[\\\"changeset\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[18,13,[[28,[37,2],null,[[\\\"multimediaOverlayContent\\\"],[[50,\\\"ui-blank-template\\\",0,null,null]]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,23],null,[[\\\"@value\\\"],[[28,[37,1],[\\\"onPageCampaigns.content.dialog.form\\\"],null]]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,25],[[28,[37,25],[[30,0,[\\\"_formOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex items-center font-sm\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,26],null,[[\\\"@value\\\",\\\"@isDisabled\\\",\\\"@onChange\\\",\\\"@label\\\"],[[28,[37,27],[[30,2,[\\\"changeset\\\",\\\"form\\\"]],[30,12]],null],[30,2,[\\\"isReadOnly\\\"]],[28,[37,28],[[30,0,[\\\"toggleFormOption\\\"]],[30,2,[\\\"changeset\\\"]],[30,12]],null],[28,[37,1],[[28,[37,9],[\\\"onPageCampaigns.content.dialog.formOptions.\\\",[30,12]],null]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[2]]]]]],[\\\"@isReadOnly\\\",\\\"modal\\\",\\\"dm\\\",\\\"active\\\",\\\"prefix\\\",\\\"ta\\\",\\\"content\\\",\\\"container\\\",\\\"container\\\",\\\"pop\\\",\\\"pop\\\",\\\"val\\\",\\\"&default\\\"],false,[\\\"ui-multilingual-modal\\\",\\\"t\\\",\\\"hash\\\",\\\"action\\\",\\\"unless\\\",\\\"if\\\",\\\"amc-delete-model\\\",\\\"let\\\",\\\"amc-toggle-activation\\\",\\\"concat\\\",\\\"ui-item-menu\\\",\\\"ui-input\\\",\\\"ui-form-control\\\",\\\"ui-editor\\\",\\\"changeset-set\\\",\\\"ui-switch\\\",\\\"ui-popover\\\",\\\"svg-jar\\\",\\\"mm-resource-gallery\\\",\\\"changeset-get\\\",\\\"mm-multimedia-overlay\\\",\\\"yield\\\",\\\"component\\\",\\\"ui-label\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ui-checkbox\\\",\\\"get\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/on-page/content-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Component which represents a single content (or new) in dialog\n   *\n   * @class content-dialog\n   */\n  let AmcCampaignOnPageContentDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _object.computed)('_model.text'), _dec4 = (0, _object.computed)('_model.termsAndConditions'), _dec5 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const url = `${_environment.default.APP.apiBaseHostV2}/${this.organizationSlug}/corporate-design`;\n      const response = yield this.authenticatedFetch.fetch(url);\n      if (!(response !== null && response !== void 0 && response.ok)) return;\n      const {\n        corporateDesign\n      } = yield response.json();\n      this.corporateDesignColors = corporateDesign === null || corporateDesign === void 0 ? void 0 : corporateDesign.colors;\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec6 = (0, _emberConcurrency.task)(function* (changeset) {\n    this.isTouched = true;\n    yield changeset.validate();\n    if (!changeset.get('isValid')) {\n      return;\n    } else if (changeset.get('isPristine')) {\n      // dont send request if changeset is valid and pristine\n      this._isEdit = false;\n      return;\n    }\n    try {\n      const isNewModel = this._model.isNew;\n      const savedModel = yield changeset.save(this._adapterOptions);\n      this.uiToast.showToast({\n        title: this.intl.t('toast.success'),\n        type: 'success'\n      });\n\n      // go back to readOnly after saving\n      this._isEdit = false;\n      return this.onSave(savedModel, isNewModel);\n    } catch (error) {\n      try {\n        const errorDetail = JSON.parse(error.message);\n        if (errorDetail.errors) {\n          Object.keys(errorDetail.errors).forEach(function (key) {\n            changeset.addError(key, errorDetail.message);\n          });\n        } else {\n          this.uiToast.showToast({\n            title: errorDetail.message,\n            type: 'error'\n          });\n        }\n      } catch (e) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }\n  }), _class = class AmcCampaignOnPageContentDialogComponent extends _component2.default {\n    /**\n     * HTML-Safe variant of models text\n     *\n     * @computed _text\n     * @private\n     */\n    get _text() {\n      var _this$_model;\n      return (0, _template.htmlSafe)(_dompurify.default.sanitize((_this$_model = this._model) === null || _this$_model === void 0 ? void 0 : _this$_model.text));\n    }\n\n    /**\n     * HTML-Safe variant of models termsAndConditions\n     *\n     * @computed _termsAndConditions\n     * @private\n     */\n    get _termsAndConditions() {\n      var _this$_model2;\n      return (0, _template.htmlSafe)(_dompurify.default.sanitize((_this$_model2 = this._model) === null || _this$_model2 === void 0 ? void 0 : _this$_model2.termsAndConditions));\n    }\n\n    /**\n     * The campaign id\n     *\n     * @computed _campaignId\n     * @type {String}\n     * @private\n     */\n    get _campaignId() {\n      var _this$_model3;\n      return this.campaignId || ((_this$_model3 = this._model) === null || _this$_model3 === void 0 ? void 0 : _this$_model3.campaignId);\n    }\n    get organizationSlug() {\n      return this.currentUser.currentOrganization.id;\n    }\n    get _adapterOptions() {\n      return {\n        adapterOptions: {\n          campaignId: this._campaignId\n        }\n      };\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"multimedia\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor8, this);\n      /**\n       * The parents campaignId\n       *\n       * @argument campaignId\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"campaignId\", _descriptor9, this);\n      /**\n       * The content id\n       *\n       * @argument modelId\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"modelId\", _descriptor10, this);\n      /**\n       *  Whether the form is touched\n       *\n       * @property isTouched\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor11, this);\n      _initializerDefineProperty(this, \"corporateDesignColors\", _descriptor12, this);\n      /**\n       * Whether we are in edit mode\n       *\n       * @property _isEdit\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isEdit\", _descriptor13, this);\n      /**\n       * The content model\n       *\n       * @argument _model\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"_model\", _descriptor14, this);\n      /**\n       * The form checkbox options as array\n       *\n       * @property _formOptions\n       * @type {Array}\n       * @default ['includeSalutation']\n       * @private\n       */\n      _defineProperty(this, \"_formOptions\", ['includeSalutation']);\n      _initializerDefineProperty(this, \"fetchCorporateDesign\", _descriptor15, this);\n      /**\n       * checks if the changeset is valid and saves the model\n       *\n       * @function save\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"save\", _descriptor16, this);\n      this.validation = (0, _onPageCampaign.onPageContentValidation)(this.intl);\n      if (this.modelId) {\n        this._model = this.store.peekRecord('on-page-content', this.modelId);\n      } else {\n        this._model = this.store.createRecord('on-page-content', {\n          active: false\n        });\n        this._isEdit = true;\n      }\n      this.fetchCorporateDesign.perform();\n\n      // set options for media selection\n      this.multimedia.setSelectionOptions({\n        maxCount: 1,\n        type: 'image',\n        warningMessage: this.intl.t('global.warnings.multimedia.image')\n      });\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.multimedia.resetSelectionOptions();\n    }\n    onSave(newModel, isNewModel) {\n      if (isNewModel) {\n        this.router.transitionTo('instance.campaigns.on-page.detail.content.content', newModel);\n      }\n    }\n    openMultimedia() {\n      if (this._model.isNew) {\n        this.router.transitionTo('instance.campaigns.on-page.detail.content.create.additive-multimedia-engine');\n      } else {\n        this.router.transitionTo('instance.campaigns.on-page.detail.content.content.additive-multimedia-engine');\n      }\n    }\n    toggleFormOption(changeset, key) {\n      changeset.set(`form.${key}`, !changeset.get(`form.${key}`));\n      changeset.execute();\n    }\n    closeMultimedia() {\n      if (this._model.isNew) {\n        this.router.transitionTo('instance.campaigns.on-page.detail.content.create');\n      } else {\n        this.router.transitionTo('instance.campaigns.on-page.detail.content.content');\n      }\n    }\n    onResourceRemove(changeset) {\n      changeset.set('image', null);\n      changeset.execute();\n    }\n    addMedium(changeset, _, _ref2) {\n      let [resource] = _ref2;\n      changeset.set('image', resource);\n    }\n    afterDelete() {\n      this.router.transitionTo('instance.campaigns.on-page.detail');\n    }\n    onClose() {\n      if (this._model.isNew) {\n        this._model.destroyRecord();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"multimedia\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"modelId\", [_dec2, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"corporateDesignColors\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"_isEdit\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"_model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_text\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"_text\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_termsAndConditions\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"_termsAndConditions\"), _class.prototype), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"fetchCorporateDesign\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"save\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleFormOption\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleFormOption\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onResourceRemove\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onResourceRemove\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addMedium\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addMedium\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"afterDelete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClose\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignOnPageContentDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/on-page/create-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/service\", \"@glimmer/tracking\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _service, _tracking, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <AmcCampaign::onPage::SetCampaignNameDialog\n    @onClose={{this.onClose}}\n    @filterName={{this.filterName}}\n    @title={{t \"onPageCampaigns.create.types.leadCampaign.createTitle\"}}\n    @model={{this.model}}\n  />\n  */\n  {\n    \"id\": \"Hu5G4d/K\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onClose\\\",\\\"@filterName\\\",\\\"@title\\\",\\\"@model\\\"],[[30,0,[\\\"onClose\\\"]],[30,0,[\\\"filterName\\\"]],[28,[37,1],[\\\"onPageCampaigns.create.types.leadCampaign.createTitle\\\"],null],[30,0,[\\\"model\\\"]]]],null]],[],false,[\\\"amc-campaign/on-page/set-campaign-name-dialog\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/on-page/create-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignAdsCreateDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignAdsCreateDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor3, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor5, this);\n      /**\n       * the name of the filter\n       *\n       * @argument filterName\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"filterName\", _descriptor6, this);\n      /**\n       * the title of the dialog\n       *\n       * @argument nameProperty\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"title\", _descriptor7, this);\n      /**\n       * the created model\n       *\n       * @argument model\n       * @type {DS.Model}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor8, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor9, this);\n      this.model = this.store.createRecord('on-page-campaign', {\n        group: 'on-page-campaigns',\n        type: 'OnPageLeadCampaign'\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"filterName\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsCreateDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/on-page/on-page-content-list\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"prop-types\", \"@ember/service\", \"@glimmer/tracking\", \"ember-concurrency\", \"@ember/object\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _propTypes, _service, _tracking, _emberConcurrency, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-update this.setup this.campaignId}}></div>\n  <UiList\n    @items={{this.model}}\n    @placeholderCount={{5}}\n    @isLoading={{this.fetchOnPageContent.isRunning}}\n    @hasMobileSpacing={{true}} as |list item|\n  >\n    <list.empty>\n      <div class=\"flex flex-column justify-center items-center secondary\">\n        {{svg-jar \"empty-content-grey\"}}\n        <div class=\"font-sm secondary\">\n          {{t \"onPageCampaigns.content.empty\"}}\n        </div>\n      </div>\n    </list.empty>\n  \n    <list.item\n      @title={{item.headline}}\n      @state={{if item.active \"success\" \"error\"}}\n      @linkTo=\"instance.campaigns.on-page.detail.content.content\"\n      @linkToParam={{item.id}} as |controls|\n    >\n      <controls.state />\n  \n      <controls.title>\n        <span class=\"ellipsis\">\n          {{item.headline}}\n        </span>\n      </controls.title>\n  \n      <AmcDeleteModel\n        @modelOptions={{hash adapterOptions=(hash campaignId=item.campaignId)}}\n        @resourceId={{item.id}}\n        @modelName=\"on-page-content\"\n        @hasFilter={{false}}\n        @afterDelete={{action \"afterDelete\" item}} as |dm|\n      >\n        {{#let\n          item.active\n          \"onPageCampaigns.onPageCampaign.content.toggle.confirmation.\" as |active prefix|\n        }}\n          <AmcToggleActivation\n            @modelOptions={{hash adapterOptions=(hash campaignId=item.campaignId)}}\n            @modelName=\"on-page-content\"\n            @resourceId={{item.id}}\n            @isActive={{active}}\n            @confirmation={{hash\n              label=(t (concat prefix \"label\") active=active)\n              description=(t (concat prefix \"description\") active=active)\n              action=(t (concat prefix \"action\") active=active)\n            }} as |ta|\n          >\n            <controls.thumbnail\n              @src={{if item.image (mm-medium-url-options item.image.url (hash size=\"72x72\"))}}\n              @alt={{item.name}}\n            />\n            {{#unless @isReadOnly}}\n              <controls.right>\n                <div class=\"flex justify-center items-center\">\n                  <UiItemMenu as |content|>\n                    <content.menuItem\n                      @label={{t (concat \"global.actions.\" (if active \"deactivate\" \"activate\"))}}\n                      @onClick={{ta.toggleAction}}\n                    />\n                    <content.menuItem\n                      @label={{t \"global.actions.delete\"}}\n                      @isDanger={{true}}\n                      @onClick={{dm.deleteAction}}\n                    />\n                  </UiItemMenu>\n                </div>\n              </controls.right>\n            {{/unless}}\n          </AmcToggleActivation>\n        {{/let}}\n      </AmcDeleteModel>\n    </list.item>\n  </UiList>\n  */\n  {\n    \"id\": \"u0jozeRz\",\n    \"block\": \"[[[11,0],[4,[38,0],[[30,0,[\\\"setup\\\"]],[30,0,[\\\"campaignId\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[8,[39,1],null,[[\\\"@items\\\",\\\"@placeholderCount\\\",\\\"@isLoading\\\",\\\"@hasMobileSpacing\\\"],[[30,0,[\\\"model\\\"]],5,[30,0,[\\\"fetchOnPageContent\\\",\\\"isRunning\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"empty\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column justify-center items-center secondary\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,2],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"onPageCampaigns.content.empty\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"item\\\"]],null,[[\\\"@title\\\",\\\"@state\\\",\\\"@linkTo\\\",\\\"@linkToParam\\\"],[[30,2,[\\\"headline\\\"]],[52,[30,2,[\\\"active\\\"]],\\\"success\\\",\\\"error\\\"],\\\"instance.campaigns.on-page.detail.content.content\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,3,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,2,[\\\"headline\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,5],null,[[\\\"@modelOptions\\\",\\\"@resourceId\\\",\\\"@modelName\\\",\\\"@hasFilter\\\",\\\"@afterDelete\\\"],[[28,[37,6],null,[[\\\"adapterOptions\\\"],[[28,[37,6],null,[[\\\"campaignId\\\"],[[30,2,[\\\"campaignId\\\"]]]]]]]],[30,2,[\\\"id\\\"]],\\\"on-page-content\\\",false,[28,[37,7],[[30,0],\\\"afterDelete\\\",[30,2]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[30,2,[\\\"active\\\"]],\\\"onPageCampaigns.onPageCampaign.content.toggle.confirmation.\\\"],[[[1,\\\"        \\\"],[8,[39,9],null,[[\\\"@modelOptions\\\",\\\"@modelName\\\",\\\"@resourceId\\\",\\\"@isActive\\\",\\\"@confirmation\\\"],[[28,[37,6],null,[[\\\"adapterOptions\\\"],[[28,[37,6],null,[[\\\"campaignId\\\"],[[30,2,[\\\"campaignId\\\"]]]]]]]],\\\"on-page-content\\\",[30,2,[\\\"id\\\"]],[30,5],[28,[37,6],null,[[\\\"label\\\",\\\"description\\\",\\\"action\\\"],[[28,[37,3],[[28,[37,10],[[30,6],\\\"label\\\"],null]],[[\\\"active\\\"],[[30,5]]]],[28,[37,3],[[28,[37,10],[[30,6],\\\"description\\\"],null]],[[\\\"active\\\"],[[30,5]]]],[28,[37,3],[[28,[37,10],[[30,6],\\\"action\\\"],null]],[[\\\"active\\\"],[[30,5]]]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"thumbnail\\\"]],null,[[\\\"@src\\\",\\\"@alt\\\"],[[52,[30,2,[\\\"image\\\"]],[28,[37,11],[[30,2,[\\\"image\\\",\\\"url\\\"]],[28,[37,6],null,[[\\\"size\\\"],[\\\"72x72\\\"]]]],null]],[30,2,[\\\"name\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,8]],[[[1,\\\"            \\\"],[8,[30,3,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"flex justify-center items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,13],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[8,[30,9,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,3],[[28,[37,10],[\\\"global.actions.\\\",[52,[30,5],\\\"deactivate\\\",\\\"activate\\\"]],null]],null],[30,7,[\\\"toggleAction\\\"]]]],null],[1,\\\"\\\\n                  \\\"],[8,[30,9,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,3],[\\\"global.actions.delete\\\"],null],true,[30,4,[\\\"deleteAction\\\"]]]],null],[1,\\\"\\\\n                \\\"]],[9]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[7]]]]],[1,\\\"\\\\n\\\"]],[5,6]]],[1,\\\"    \\\"]],[4]]]]],[1,\\\"\\\\n  \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[1,2]]]]]],[\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"dm\\\",\\\"active\\\",\\\"prefix\\\",\\\"ta\\\",\\\"@isReadOnly\\\",\\\"content\\\"],false,[\\\"did-update\\\",\\\"ui-list\\\",\\\"svg-jar\\\",\\\"t\\\",\\\"if\\\",\\\"amc-delete-model\\\",\\\"hash\\\",\\\"action\\\",\\\"let\\\",\\\"amc-toggle-activation\\\",\\\"concat\\\",\\\"mm-medium-url-options\\\",\\\"unless\\\",\\\"ui-item-menu\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/on-page/on-page-content-list.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignAdsOnPageListComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const adapterOptions = {\n        adapterOptions: {\n          campaignId: this.campaignId\n        }\n      };\n      const [contents] = yield (0, _emberConcurrency.all)([this.store.findAll('on-page-content', Object.assign({}, adapterOptions, {\n        reload: true\n      })), (0, _emberConcurrency.timeout)(250)]);\n      this.model = contents;\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class AmcCampaignAdsOnPageListComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor5, this);\n      /**\n       * The parents campaignId\n       *\n       * @argument campaignId\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"campaignId\", _descriptor6, this);\n      /**\n       * The previous parents campaignId\n       *\n       * @property oldCampaignId\n       * @type {String}\n       */\n      _defineProperty(this, \"oldCampaignId\", null);\n      /**\n       * The fetched contents model\n       *\n       * @property model\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor7, this);\n      /**\n       * fetches the contents for the current campaign\n       *\n       * @type {Task}\n       * @function fetchOnPageContent\n       * @private\n       */\n      _initializerDefineProperty(this, \"fetchOnPageContent\", _descriptor8, this);\n      this.setup();\n    }\n    setup() {\n      if (this.campaignId === this.oldCampaignId) {\n        return;\n      }\n      this.oldCampaignId = this.campaignId;\n      this.fetchOnPageContent.perform();\n    }\n    afterDelete(item) {\n      this.model.removeObject(item);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"fetchOnPageContent\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"afterDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"afterDelete\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsOnPageListComponent);\n});","define(\"additive-mc/components/amc-campaign/on-page/set-campaign-name-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-changeset-validations/validators\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberChangeset, _emberChangesetValidations, _validators, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal @title={{this.title}} @onClose={{this.close}} as |m|>\n    <m.header />\n    <m.content as |c|>\n      <c.body {{did-insert this.didInsert}}>\n        <UiInput\n          @label={{t \"adCampaigns.properties.title\"}}\n          @value={{get this.changeset this.nameProperty}}\n          @errorMessage={{get (get this.changeset.error this.nameProperty) \"validation.firstObject\"}}\n          @isTouched={{this.isTouched}}\n        />\n      </c.body>\n    </m.content>\n    <m.footer>\n      <UiButton @label={{t \"global.actions.save\"}} @isSecondary={{true}} @onClick={{this.save}} />\n    </m.footer>\n  </UiModal>\n  \n  <UiDiscardChanges\n    @isOpen={{this.isDiscardChanges}}\n    @onDiscard={{this.discardChanges}}\n    @onClose={{fn (mut this.isDiscardChanges)}}\n  />\n  */\n  {\n    \"id\": \"1orfRpK1\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@onClose\\\"],[[30,0,[\\\"title\\\"]],[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],[[4,[38,1],[[30,0,[\\\"didInsert\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,3],[\\\"adCampaigns.properties.title\\\"],null],[28,[37,4],[[30,0,[\\\"changeset\\\"]],[30,0,[\\\"nameProperty\\\"]]],null],[28,[37,4],[[28,[37,4],[[30,0,[\\\"changeset\\\",\\\"error\\\"]],[30,0,[\\\"nameProperty\\\"]]],null],\\\"validation.firstObject\\\"],null],[30,0,[\\\"isTouched\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,3],[\\\"global.actions.save\\\"],null],true,[30,0,[\\\"save\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,6],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\",\\\"@onClose\\\"],[[30,0,[\\\"isDiscardChanges\\\"]],[30,0,[\\\"discardChanges\\\"]],[28,[37,7],[[28,[37,8],[[30,0,[\\\"isDiscardChanges\\\"]]],null]],null]]],null]],[\\\"m\\\",\\\"c\\\"],false,[\\\"ui-modal\\\",\\\"did-insert\\\",\\\"ui-input\\\",\\\"t\\\",\\\"get\\\",\\\"ui-button\\\",\\\"ui-discard-changes\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/on-page/set-campaign-name-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignAdsCreateDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _emberArgTypes.arg)(_propTypes.string), _dec5 = (0, _emberArgTypes.arg)(_propTypes.string), _dec6 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignAdsCreateDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      /**\n       * the created model\n       *\n       * @argument model\n       * @type {DS.Model}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor6, this);\n      /**\n       * the name of the filter\n       *\n       * @argument filterName\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"filterName\", _descriptor7, this);\n      /**\n       * the adapteroptions to save the model\n       *\n       * @argument adapterOptions\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"adapterOptions\", _descriptor8, this);\n      /**\n       * the property for the name\n       *\n       * @argument nameProperty\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"nameProperty\", _descriptor9, this);\n      /**\n       * the title of the dialog\n       *\n       * @argument nameProperty\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"title\", _descriptor10, this);\n      /**\n       * the changeset for the model\n       *\n       * @property changeset\n       * @type {Changeset}\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor11, this);\n      /**\n       * whether the discard changes dialog is open\n       *\n       * @property isDiscardChanges\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChanges\", _descriptor12, this);\n      /**\n       * whether the form has been touched\n       *\n       * @property isTouched\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor13, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor14, this);\n    }\n    didInsert() {\n      const validation = {\n        [this.nameProperty]: (0, _validators.validatePresence)({\n          presence: true,\n          message: this.intl.t('errors.required')\n        })\n      };\n      this.changeset = new _emberChangeset.default(this.model, (0, _emberChangesetValidations.default)(validation), validation);\n    }\n    close() {\n      if (this.changeset.get('isDirty')) {\n        this.isDiscardChanges = true;\n      } else {\n        if (this.model.isNew) {\n          this.model.destroyRecord();\n        }\n        this.onClose();\n      }\n    }\n    discardChanges() {\n      if (this.model.isNew) {\n        this.model.destroyRecord();\n      }\n      this.isDiscardChanges = false;\n      this.onClose();\n    }\n    async save() {\n      try {\n        this.isTouched = true;\n        const {\n          isNew\n        } = this.model;\n        await this.changeset.validate();\n        if (this.changeset.get('isInvalid')) {\n          return;\n        }\n        await this.changeset.save({\n          adapterOptions: this.adapterOptions\n        });\n        if (isNew) {\n          this.uiFilter.reset(this.filterName);\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        if (isNew) {\n          this.router.transitionTo('instance.campaigns.on-page.detail', this.changeset.get('id'));\n        }\n        this.onClose();\n      } catch (e) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"filterName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"adapterOptions\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"nameProperty\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 'title';\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignAdsCreateDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/search-ad/ad-set-create-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-arg-types\", \"prop-types\", \"ember-concurrency\", \"additive-mc/validations/search-ad-campaign\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberChangeset, _emberChangesetValidations, _emberArgTypes, _propTypes, _emberConcurrency, _searchAdCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{if\n      this.selectedAdSet\n      (t \"searchAdCampaigns.adSet.editAdSet\")\n      (t \"searchAdCampaigns.adSet.newAdSet\")\n    }}\n    @size=\"md\"\n    @onClose={{this.close}} as |m|\n  >\n    <m.header />\n    <m.content as |c|>\n      <c.body {{did-insert this.didInsert}}>\n        <UiInput\n          @label={{t \"searchAdCampaigns.adSet.properties.name\"}}\n          @value={{this.changeset.name}}\n          @errorMessage={{this.changeset.error.name.validation}}\n          @onChange={{this.onChangeName}}\n          @isTouched={{this.isTouched}}\n        />\n  \n        {{#if this.fetchAds.isRunning}}\n          <UiSkeleton\n            @class=\"mt1\"\n            @items={{1}}\n            @itemsPerRow={{1}}\n            @itemsPerRowSmartphone={{1}}\n            @cardHeight={{64}}\n          />\n        {{else}}\n          <UiSelect\n            @label={{t \"searchAdCampaigns.adSet.properties.ads\"}}\n            @isMultiSelect={{true}}\n            @objectKey=\"label\"\n            @valueKey=\"id\"\n            @isSearchable={{true}}\n            @useFullTextSearch={{true}}\n            @initialValue={{this.changeset.adTemplates}}\n            @selected={{this.changeset.adTemplates}}\n            @options={{this.selectableAds}}\n            @errorMessage={{this.changeset.error.adTemplates.validation}}\n            @isTouched={{this.isTouched}}\n            @onChange={{fn this.onMultiSelectChange \"adTemplates\"}} as |optionComponent option|\n          >\n            <optionComponent.item @value={{option}}>\n              {{option.label}}\n            </optionComponent.item>\n          </UiSelect>\n        {{/if}}\n  \n        <div class=\"font-sm font-medium secondary pb1\">\n          {{t \"searchAdCampaigns.adSet.keywordsText\" htmlSafe=true}}\n        </div>\n        <UiTags\n          @inputLabel={{t \"searchAdCampaigns.adSet.properties.keywords\"}}\n          @inputPlaceholder={{t \"searchAdCampaigns.adSet.properties.keywords\"}}\n          @hideAddableTags={{true}}\n          @tags={{this.changeset.keywords}}\n          @modelName=\"keyword\"\n          @isTouched={{this.isTouched}}\n          @errorMessage={{this.changeset.error.keywords.validation}}\n          @onChange={{this.onChangeKeywords}}\n        />\n      </c.body>\n    </m.content>\n    <m.footer>\n      <UiButton\n        @isSecondary={{true}}\n        @onClick={{perform this.save}}\n        @isPromise={{true}}\n        @label={{t \"global.actions.save\"}}\n      />\n    </m.footer>\n  </UiModal>\n  \n  <UiDiscardChanges @isOpen={{this.isDiscardChanges}} @onDiscard={{this.discardChanges}} />\n  */\n  {\n    \"id\": \"8BOs/wcS\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@size\\\",\\\"@onClose\\\"],[[52,[30,0,[\\\"selectedAdSet\\\"]],[28,[37,2],[\\\"searchAdCampaigns.adSet.editAdSet\\\"],null],[28,[37,2],[\\\"searchAdCampaigns.adSet.newAdSet\\\"],null]],\\\"md\\\",[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],[[4,[38,3],[[30,0,[\\\"didInsert\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@onChange\\\",\\\"@isTouched\\\"],[[28,[37,2],[\\\"searchAdCampaigns.adSet.properties.name\\\"],null],[30,0,[\\\"changeset\\\",\\\"name\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"name\\\",\\\"validation\\\"]],[30,0,[\\\"onChangeName\\\"]],[30,0,[\\\"isTouched\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"fetchAds\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\"],[\\\"mt1\\\",1,1,1,64]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@label\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@valueKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@onChange\\\"],[[28,[37,2],[\\\"searchAdCampaigns.adSet.properties.ads\\\"],null],true,\\\"label\\\",\\\"id\\\",true,true,[30,0,[\\\"changeset\\\",\\\"adTemplates\\\"]],[30,0,[\\\"changeset\\\",\\\"adTemplates\\\"]],[30,0,[\\\"selectableAds\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"adTemplates\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[28,[37,7],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"adTemplates\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,4,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[3,4]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary pb1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,2],[\\\"searchAdCampaigns.adSet.keywordsText\\\"],[[\\\"htmlSafe\\\"],[true]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@inputLabel\\\",\\\"@inputPlaceholder\\\",\\\"@hideAddableTags\\\",\\\"@tags\\\",\\\"@modelName\\\",\\\"@isTouched\\\",\\\"@errorMessage\\\",\\\"@onChange\\\"],[[28,[37,2],[\\\"searchAdCampaigns.adSet.properties.keywords\\\"],null],[28,[37,2],[\\\"searchAdCampaigns.adSet.properties.keywords\\\"],null],true,[30,0,[\\\"changeset\\\",\\\"keywords\\\"]],\\\"keyword\\\",[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"keywords\\\",\\\"validation\\\"]],[30,0,[\\\"onChangeKeywords\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,9],null,[[\\\"@isSecondary\\\",\\\"@onClick\\\",\\\"@isPromise\\\",\\\"@label\\\"],[true,[28,[37,10],[[30,0,[\\\"save\\\"]]],null],true,[28,[37,2],[\\\"global.actions.save\\\"],null]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,11],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChanges\\\"]],[30,0,[\\\"discardChanges\\\"]]]],null]],[\\\"m\\\",\\\"c\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"ui-modal\\\",\\\"if\\\",\\\"t\\\",\\\"did-insert\\\",\\\"ui-input\\\",\\\"ui-skeleton\\\",\\\"ui-select\\\",\\\"fn\\\",\\\"ui-tags\\\",\\\"ui-button\\\",\\\"perform\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/search-ad/ad-set-create-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignSearchAdAdSetCreateDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.func), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _dec4 = (0, _emberConcurrency.task)(function* () {\n    try {\n      let peekedAds = this.store.peekAll('search-ad-template');\n      if (peekedAds.length) {\n        const selectableAds = peekedAds.map(ad => {\n          return {\n            id: ad.id,\n            label: ad.name\n          };\n        });\n        this.selectableAds = selectableAds;\n        return;\n      }\n      let fetchAdsTask = this.store.findAll('search-ad-template');\n      let tasks = [];\n      tasks.push(fetchAdsTask);\n      tasks.push((0, _emberConcurrency.timeout)(400));\n      const [searchAdTemplates] = yield (0, _emberConcurrency.all)(tasks);\n      if (!searchAdTemplates || searchAdTemplates.length === 0) {\n        return;\n      }\n      const selectableAds = searchAdTemplates.map(ad => {\n        return {\n          id: ad.id,\n          label: ad.name\n        };\n      });\n      this.selectableAds = selectableAds;\n    } catch (e) {\n      this.uiDialog.showError();\n    }\n  }), _dec5 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    try {\n      this.isTouched = true;\n      yield this.changeset.validate();\n      if (this.changeset.get('isInvalid')) {\n        return;\n      }\n      tasks.push(this.onSave(this.changeset.data, this.selectedAdSet));\n      tasks.push((0, _emberConcurrency.timeout)(400));\n      yield (0, _emberConcurrency.all)(tasks);\n      this.onClose();\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class AmcCampaignSearchAdAdSetCreateDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor4, this);\n      /**\n       * the changeset\n       *\n       * @property changeset\n       * @type {Changeset}\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor5, this);\n      /**\n       * whether the discard changes dialog is open\n       *\n       * @property isDiscardChanges\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChanges\", _descriptor6, this);\n      /**\n       * whether the form has been touched\n       *\n       * @property isTouched\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor7, this);\n      /**\n       * the selectable ads\n       *\n       * @property selectableAds\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"selectableAds\", _descriptor8, this);\n      /**\n       * whether the form was changed\n       *\n       * @property isDirty\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDirty\", _descriptor9, this);\n      /**\n       * the selected ad set\n       *\n       * @property selectedAdSet\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"selectedAdSet\", _descriptor10, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor11, this);\n      /**\n       * callback function on save\n       *\n       * @argument onSave\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onSave\", _descriptor12, this);\n      /**\n       * Fetches the selectable ads\n       *\n       * @function fetchAds\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchAds\", _descriptor13, this);\n      _initializerDefineProperty(this, \"save\", _descriptor14, this);\n    }\n    didInsert() {\n      this.fetchAds.perform();\n      let resource = {\n        name: '',\n        adTemplates: [],\n        keywords: []\n      };\n      if (this.selectedAdSet) {\n        resource = Object.assign({}, this.selectedAdSet);\n      }\n      const validation = (0, _searchAdCampaign.searchAdCampaignAdSetValidation)(this.intl);\n      this.changeset = new _emberChangeset.default(resource, (0, _emberChangesetValidations.default)(validation), validation);\n    }\n    close() {\n      if (this.isDirty) {\n        this.isDiscardChanges = true;\n      } else {\n        this.onClose();\n      }\n    }\n    onChangeName(value) {\n      this.isDirty = true;\n      this.changeset.set('name', value);\n      this.changeset.execute();\n    }\n    onChangeKeywords(value) {\n      this.isDirty = true;\n      this.changeset.set('keywords', value);\n      this.changeset.execute();\n    }\n    discardChanges() {\n      this.isDiscardChanges = false;\n      this.onClose();\n    }\n    onMultiSelectChange(key, option, checked) {\n      this.isDirty = true;\n      let options = (this.changeset.get(key) || []).slice(0);\n      const checkedValue = option.id;\n      if (checked) {\n        // Only push if not allready in\n        if (!options.findBy('id', checkedValue)) {\n          options.pushObject(option);\n        }\n      } else {\n        // Remove unchecked option\n        options = options.filter(_option => _option.id === checkedValue ? false : true);\n      }\n      this.changeset.set(key, options);\n      this.changeset.execute();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"selectableAds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isDirty\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"selectedAdSet\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"fetchAds\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeName\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeName\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeKeywords\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeKeywords\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onMultiSelectChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onMultiSelectChange\"), _class.prototype), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"save\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignSearchAdAdSetCreateDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/search-ad/ad-set-preview\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@glimmer/tracking\", \"ember-arg-types\", \"ember-concurrency\", \"prop-types\", \"@ember/object\", \"@ember/service\"], function (_exports, _component, _templateFactory, _component2, _tracking, _emberArgTypes, _emberConcurrency, _propTypes, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"flex flex-column w-100 mb1\">\n    <div class=\"flex justify-between\">\n      <div class=\"flex flex-column\">\n        <div class=\"flex items-center\">\n          <UiPopover as |pop|>\n            <pop.trigger>\n              <UiStatus @state={{if (equal this.adSet.state \"enabled\") \"success\" \"warning\"}} />\n            </pop.trigger>\n            <pop.content>\n              {{#if (equal this.adSet.state \"enabled\")}}\n                {{t \"searchAdCampaigns.preview.states.active\"}}\n              {{else}}\n                {{t \"searchAdCampaigns.preview.states.paused\"}}\n              {{/if}}\n            </pop.content>\n          </UiPopover>\n          <div class=\"font-md font-medium primary ml05\">\n            {{this.adSet.name}}\n          </div>\n        </div>\n  \n        {{#if this.adSet.keywords.length}}\n          <div class=\"font-sm font-medium secondary mt05 ml3\">\n            {{t \"searchAdCampaigns.adSet.properties.keywords\"}}\n          </div>\n          <div class=\"flex flex-wrap mt1 ml3\">\n            {{#each this.adSet.keywords as |keyword|}}\n              <UiChip @classNames=\"mr1 mb1\" @theme=\"grey\" @isReadOnly={{true}}>\n                {{keyword.name}}\n              </UiChip>\n            {{/each}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <div class=\"flex flex-column\">\n        <UiActionButton\n          @class=\"transition {{if this.isToggled \"button-toggled\"}}\"\n          @icon=\"drop-down\"\n          @onClick={{this.toggle}}\n        />\n  \n        {{#unless @isReadOnly}}\n          {{#if (equal this.adSet.state \"enabled\")}}\n            <UiPopover as |pop|>\n              <pop.trigger>\n                <UiActionButton\n                  @classNames=\"mt1\"\n                  @icon={{\"pause\"}}\n                  @hideText={{true}}\n                  @onClick={{fn this.changeAdSetStatus \"pause\"}}\n                />\n              </pop.trigger>\n              <pop.content>\n                {{t \"searchAdCampaigns.preview.actions.ads.pause.button\"}}\n              </pop.content>\n            </UiPopover>\n          {{/if}}\n  \n          {{#if (equal this.adSet.state \"paused\")}}\n            <UiPopover as |pop|>\n              <pop.trigger>\n                <UiActionButton\n                  @classNames=\"mt1\"\n                  @icon={{\"success-circle\"}}\n                  @onClick={{fn this.changeAdSetStatus \"activate\"}}\n                />\n              </pop.trigger>\n              <pop.content>\n                {{t \"searchAdCampaigns.preview.actions.ads.activate.button\"}}\n              </pop.content>\n            </UiPopover>\n          {{/if}}\n        {{/unless}}\n      </div>\n    </div>\n  \n    {{#if this.isToggled}}\n      <div class=\"mt2 ml4\">\n        {{#if (or this.fetchAds.isRunning this.updateAds.isRunning)}}\n          <UiSkeleton @itemsPerRow={{1}} @items={{3}} @cardHeight={{114}} @gap={{8}} />\n        {{else}}\n          {{#each this.ads as |ad index|}}\n            <div class=\"mb1\">\n              <div class=\"flex\">\n                <UiPopover as |pop|>\n                  <pop.trigger>\n                    <UiStatus\n                      @class=\"mr1\"\n                      @state={{if\n                        (equal ad.state \"paused\")\n                        \"warning\"\n                        (if (equal ad.state \"enabled\") \"success\" \"error\")\n                      }}\n                    />\n                  </pop.trigger>\n                  <pop.content>\n                    {{#if (equal ad.state \"paused\")}}\n                      {{t \"searchAdCampaigns.preview.states.paused\"}}\n                    {{else if (equal ad.state \"enabled\")}}\n                      {{t \"searchAdCampaigns.preview.states.active\"}}\n                    {{/if}}\n                  </pop.content>\n                </UiPopover>\n                <AmcCampaign::SearchAd::Ads::PreviewItem\n                  @headlines={{ad.headlines}}\n                  @descriptions={{ad.descriptions}}\n                  @url={{ad.url}}\n                />\n                <div class=\"flex-flex-column ml1\">\n                  {{#unless @isReadOnly}}\n                    <UiActionButton @icon=\"edit\" @hideText={{true}} @onClick={{fn this.editAd ad}} />\n  \n                    {{#if (equal ad.state \"enabled\")}}\n                      <UiPopover as |pop|>\n                        <pop.trigger>\n                          <UiActionButton\n                            @classNames=\"mt1\"\n                            @icon={{\"pause\"}}\n                            @hideText={{true}}\n                            @onClick={{fn this.changeAdStatus index \"pause\"}}\n                          />\n                        </pop.trigger>\n                        <pop.content>\n                          {{t \"searchAdCampaigns.preview.actions.ads.pause.button\"}}\n                        </pop.content>\n                      </UiPopover>\n                    {{/if}}\n  \n                    {{#if (equal ad.state \"paused\")}}\n                      <UiPopover as |pop|>\n                        <pop.trigger>\n                          <UiActionButton\n                            @classNames=\"mt1\"\n                            @icon={{\"success-circle\"}}\n                            @variant=\"primary\"\n                            @hideText={{true}}\n                            @onClick={{fn this.changeAdStatus index \"activate\"}}\n                          />\n                        </pop.trigger>\n                        <pop.content>\n                          {{t \"searchAdCampaigns.preview.actions.ads.activate.button\"}}\n                        </pop.content>\n                      </UiPopover>\n                    {{/if}}\n                  {{/unless}}\n                </div>\n              </div>\n            </div>\n          {{/each}}\n        {{/if}}\n      </div>\n    {{/if}}\n  </div>\n  \n  {{#if this.isAdEditDialog}}\n    <AmcCampaign::SearchAd::Ads::EditDialog\n      @ad={{this.selectedAd}}\n      @onUpdate={{perform this.updateAds}}\n      @onClose={{fn (mut this.isAdEditDialog) false}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"f/d2/dn1\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex flex-column w-100 mb1\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex justify-between\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,1],null,[[\\\"@state\\\"],[[52,[28,[37,3],[[30,0,[\\\"adSet\\\",\\\"state\\\"]],\\\"enabled\\\"],null],\\\"success\\\",\\\"warning\\\"]]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,0,[\\\"adSet\\\",\\\"state\\\"]],\\\"enabled\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"searchAdCampaigns.preview.states.active\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"searchAdCampaigns.preview.states.paused\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-md font-medium primary ml05\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"adSet\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"adSet\\\",\\\"keywords\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary mt05 ml3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"searchAdCampaigns.adSet.properties.keywords\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex flex-wrap mt1 ml3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"adSet\\\",\\\"keywords\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,7],null,[[\\\"@classNames\\\",\\\"@theme\\\",\\\"@isReadOnly\\\"],[\\\"mr1 mb1\\\",\\\"grey\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[29,[\\\"transition \\\",[52,[30,0,[\\\"isToggled\\\"]],\\\"button-toggled\\\"]]],\\\"drop-down\\\",[30,0,[\\\"toggle\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,3]],[[[41,[28,[37,3],[[30,0,[\\\"adSet\\\",\\\"state\\\"]],\\\"enabled\\\"],null],[[[1,\\\"          \\\"],[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,4,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,8],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@hideText\\\",\\\"@onClick\\\"],[\\\"mt1\\\",\\\"pause\\\",true,[28,[37,10],[[30,0,[\\\"changeAdSetStatus\\\"]],\\\"pause\\\"],null]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,4,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"searchAdCampaigns.preview.actions.ads.pause.button\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,0,[\\\"adSet\\\",\\\"state\\\"]],\\\"paused\\\"],null],[[[1,\\\"          \\\"],[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,8],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@onClick\\\"],[\\\"mt1\\\",\\\"success-circle\\\",[28,[37,10],[[30,0,[\\\"changeAdSetStatus\\\"]],\\\"activate\\\"],null]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"searchAdCampaigns.preview.actions.ads.activate.button\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isToggled\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mt2 ml4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"fetchAds\\\",\\\"isRunning\\\"]],[30,0,[\\\"updateAds\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,12],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,3,114,8]],null],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"ads\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mb1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,8,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@state\\\"],[\\\"mr1\\\",[52,[28,[37,3],[[30,6,[\\\"state\\\"]],\\\"paused\\\"],null],\\\"warning\\\",[52,[28,[37,3],[[30,6,[\\\"state\\\"]],\\\"enabled\\\"],null],\\\"success\\\",\\\"error\\\"]]]],null],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[8,[30,8,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,6,[\\\"state\\\"]],\\\"paused\\\"],null],[[[1,\\\"                    \\\"],[1,[28,[35,4],[\\\"searchAdCampaigns.preview.states.paused\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[30,6,[\\\"state\\\"]],\\\"enabled\\\"],null],[[[1,\\\"                    \\\"],[1,[28,[35,4],[\\\"searchAdCampaigns.preview.states.active\\\"],null]],[1,\\\"\\\\n                  \\\"]],[]],null]],[]]],[1,\\\"                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[8]]]]],[1,\\\"\\\\n              \\\"],[8,[39,13],null,[[\\\"@headlines\\\",\\\"@descriptions\\\",\\\"@url\\\"],[[30,6,[\\\"headlines\\\"]],[30,6,[\\\"descriptions\\\"]],[30,6,[\\\"url\\\"]]]],null],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"flex-flex-column ml1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,3]],[[[1,\\\"                  \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@hideText\\\",\\\"@onClick\\\"],[\\\"edit\\\",true,[28,[37,10],[[30,0,[\\\"editAd\\\"]],[30,6]],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[[30,6,[\\\"state\\\"]],\\\"enabled\\\"],null],[[[1,\\\"                    \\\"],[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[8,[30,9,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[8,[39,8],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@hideText\\\",\\\"@onClick\\\"],[\\\"mt1\\\",\\\"pause\\\",true,[28,[37,10],[[30,0,[\\\"changeAdStatus\\\"]],[30,7],\\\"pause\\\"],null]]],null],[1,\\\"\\\\n                      \\\"]],[]]]]],[1,\\\"\\\\n                      \\\"],[8,[30,9,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[1,[28,[35,4],[\\\"searchAdCampaigns.preview.actions.ads.pause.button\\\"],null]],[1,\\\"\\\\n                      \\\"]],[]]]]],[1,\\\"\\\\n                    \\\"]],[9]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,6,[\\\"state\\\"]],\\\"paused\\\"],null],[[[1,\\\"                    \\\"],[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[8,[30,10,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[8,[39,8],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@variant\\\",\\\"@hideText\\\",\\\"@onClick\\\"],[\\\"mt1\\\",\\\"success-circle\\\",\\\"primary\\\",true,[28,[37,10],[[30,0,[\\\"changeAdStatus\\\"]],[30,7],\\\"activate\\\"],null]]],null],[1,\\\"\\\\n                      \\\"]],[]]]]],[1,\\\"\\\\n                      \\\"],[8,[30,10,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[1,[28,[35,4],[\\\"searchAdCampaigns.preview.actions.ads.activate.button\\\"],null]],[1,\\\"\\\\n                      \\\"]],[]]]]],[1,\\\"\\\\n                    \\\"]],[10]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[6,7]],null]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isAdEditDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@ad\\\",\\\"@onUpdate\\\",\\\"@onClose\\\"],[[30,0,[\\\"selectedAd\\\"]],[28,[37,15],[[30,0,[\\\"updateAds\\\"]]],null],[28,[37,10],[[28,[37,16],[[30,0,[\\\"isAdEditDialog\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"pop\\\",\\\"keyword\\\",\\\"@isReadOnly\\\",\\\"pop\\\",\\\"pop\\\",\\\"ad\\\",\\\"index\\\",\\\"pop\\\",\\\"pop\\\",\\\"pop\\\"],false,[\\\"ui-popover\\\",\\\"ui-status\\\",\\\"if\\\",\\\"equal\\\",\\\"t\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ui-chip\\\",\\\"ui-action-button\\\",\\\"unless\\\",\\\"fn\\\",\\\"or\\\",\\\"ui-skeleton\\\",\\\"amc-campaign/search-ad/ads/preview-item\\\",\\\"amc-campaign/search-ad/ads/edit-dialog\\\",\\\"perform\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/search-ad/ad-set-preview.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignSearchAdAdSetPreviewComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberConcurrency.task)(function* () {\n    var _this$ads;\n    if (this.ads && ((_this$ads = this.ads) === null || _this$ads === void 0 ? void 0 : _this$ads.length) > 0) {\n      return;\n    }\n    try {\n      const adSetId = this.adSet.id;\n      const adapter = this.store.adapterFor('search-ad-campaign');\n      const url = adapter.urlForSingle(this.model.searchAdCampaign.id, 'search-ad-campaign');\n      const endpoint = `${url}/ad-sets/${adSetId}/ads`;\n      const response = yield this.authenticatedFetch.fetch(endpoint);\n      const {\n        ads\n      } = yield response.json();\n      this.ads = ads;\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec4 = (0, _emberConcurrency.task)(function* (editedAd) {\n    try {\n      const adapter = this.store.adapterFor('search-ad-campaign');\n      const url = adapter.urlForSingle(this.model.searchAdCampaign.id, 'search-ad-campaign');\n      const endpoint = `${url}/ad-sets/${this.adSet.id}/ads/${editedAd.id}`;\n      const response = yield this.authenticatedFetch.fetch(endpoint, {\n        method: 'PUT',\n        body: JSON.stringify(editedAd)\n      });\n      const ad = yield response.json();\n      if (ad) {\n        const index = this.ads.findIndex(item => {\n          return item.id === ad.id;\n        });\n        this.ads[index] = ad;\n      }\n      this.uiToast.showToast({\n        title: this.intl.t('toast.success'),\n        type: 'success'\n      });\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignSearchAdAdSetPreviewComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      /**\n       * the created model\n       *\n       * @argument model\n       * @type {DS.Model}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor6, this);\n      _initializerDefineProperty(this, \"adSet\", _descriptor7, this);\n      _initializerDefineProperty(this, \"ads\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isToggled\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectedAd\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isAdEditDialog\", _descriptor11, this);\n      _initializerDefineProperty(this, \"fetchAds\", _descriptor12, this);\n      _initializerDefineProperty(this, \"updateAds\", _descriptor13, this);\n      _initializerDefineProperty(this, \"onAdSetChange\", _descriptor14, this);\n    }\n    changeAdStatus(index, action) {\n      if (action === 'pause') {\n        this.ads[index].state = 'paused';\n      } else if (action === 'activate') {\n        this.ads[index].state = 'enabled';\n      }\n      this.uiDialog.showConfirm(this.intl.t(`searchAdCampaigns.preview.actions.ads.${action}.title`), this.intl.t(`searchAdCampaigns.preview.actions.ads.${action}.description`), () => {\n        this.updateAds.perform(this.ads[index]);\n      }, this.intl.t(`searchAdCampaigns.preview.actions.ads.${action}.button`), false, action === 'pause');\n    }\n    changeAdSetStatus(action) {\n      const adSet = this.adSet;\n      if (action === 'pause') {\n        adSet.state = 'paused';\n      } else if (action === 'activate') {\n        adSet.state = 'enabled';\n      }\n      this.uiDialog.showConfirm(this.intl.t(`searchAdCampaigns.preview.actions.adSet.${action}.title`), this.intl.t(`searchAdCampaigns.preview.actions.adSet.${action}.description`), () => {\n        this.onAdSetChange(adSet);\n      }, this.intl.t(`searchAdCampaigns.preview.actions.adSet.${action}.button`), false, action === 'pause');\n    }\n    editAd(ad) {\n      this.selectedAd = ad;\n      this.isAdEditDialog = true;\n    }\n    toggle() {\n      if (!this.isToggled) {\n        this.fetchAds.perform();\n      }\n      this.isToggled = !this.isToggled;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"adSet\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"ads\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isToggled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"selectedAd\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isAdEditDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"fetchAds\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"updateAds\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"onAdSetChange\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"changeAdStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeAdStatus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeAdSetStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeAdSetStatus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editAd\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"editAd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggle\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignSearchAdAdSetPreviewComponent);\n});","define(\"additive-mc/components/amc-campaign/search-ad/ads/create-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-changeset-validations/validators\", \"ember-arg-types\", \"prop-types\", \"lodash.clonedeep\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberChangeset, _emberChangesetValidations, _validators, _emberArgTypes, _propTypes, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @modalClassNames=\"search-ad-create-dialog\"\n    @title={{if\n      this.isEdit\n      (t \"searchAdCampaigns.ads.createDialog.editTitle\")\n      (t \"searchAdCampaigns.ads.createDialog.title\")\n    }}\n    @size=\"md\"\n    @onClose={{this.close}} as |m|\n  >\n    <m.header />\n    <m.content as |c|>\n      <c.body {{did-insert this.didInsert}}>\n        <div class=\"mv3\">\n          <AmcCampaign::SearchAd::Ads::PreviewItem\n            @headlines={{this.changeset.headlines}}\n            @descriptions={{this.changeset.descriptions}}\n            @url={{this.changeset.url}}\n          />\n        </div>\n        <UiSelect\n          @classNames=\"flex\"\n          @label={{t \"searchAdCampaigns.ads.createDialog.language\"}}\n          @value={{this.changeset.language}}\n          @selected={{get (array-find this.changeset.language this.meta.availableLanguages) \"label\"}}\n          @options={{this.meta.availableLanguages}}\n          @errorMessage={{this.changeset.error.language.validation.firstObject}}\n          @isTouched={{this.isTouched}}\n          @onChange={{fn (mut this.changeset.language)}} as |optionComponent option|\n        >\n          <optionComponent.item @value={{option.value}}>\n            {{option.label}}\n          </optionComponent.item>\n        </UiSelect>\n  \n        <UiInput\n          @label={{t \"searchAdCampaigns.ads.createDialog.name\"}}\n          @value={{this.changeset.name}}\n          @onChange={{fn (mut this.changeset.name)}}\n          @isTouched={{this.isTouched}}\n          @isReadOnly={{@isReadOnly}}\n          @errorMessage={{this.changeset.error.name.validation.firstObject}}\n        />\n  \n        <div class=\"font-medium font-lg primary pt3 pb2\">\n          {{t \"searchAdCampaigns.ads.createDialog.headlines.title\"}}\n        </div>\n  \n        {{#if this.isHeadlineError}}\n          <div class=\"font-medium font-sm red pb1\">\n            {{this.headlineErrorMessage}}\n          </div>\n        {{/if}}\n        <div class=\"mb3\">\n          {{#each this.changeset.headlines as |headline index|}}\n            <div class=\"flex items-center\">\n              <div class=\"mr2 flex-grow-1\">\n                <UiInput\n                  @label={{t \"searchAdCampaigns.ads.createDialog.headlines.label\" count=(inc index)}}\n                  @value={{headline.text}}\n                  @isTouched={{this.isTouched}}\n                  @isReadOnly={{@isReadOnly}}\n                  @maxlength=\"30\"\n                  @onChange={{pipe\n                    (fn (mut headline.text))\n                    (fn this.executeChangeset headline index \"headlines\")\n                  }}\n                />\n              </div>\n              <div class=\"flex items-center\">\n                <UiSelect\n                  @class=\"mr2 mw4\"\n                  @label={{t \"searchAdCampaigns.ads.createDialog.position.label\"}}\n                  @options={{this._selectableHeadlinePositions}}\n                  @objectKey=\"label\"\n                  @placeholder={{t \"searchAdCampaigns.ads.createDialog.noPosition\"}}\n                  @selected={{get\n                    (array-find headline.position this._selectableHeadlinePositions \"value\")\n                    \"label\"\n                  }}\n                  @isTouched={{this.isTouched}}\n                  @isReadOnly={{@isReadOnly}}\n                  @onChange={{pipe\n                    (fn (mut headline.position))\n                    (fn this.executeChangeset headline index \"headlines\")\n                  }} as |optionComponent option|\n                >\n                  <optionComponent.item @value={{option.value}}>\n                    {{option.label}}\n                  </optionComponent.item>\n                </UiSelect>\n                {{#unless @isReadOnly}}\n                  <UiActionButton\n                    @classNames=\"remove-button flex items-center justify-center mt05\"\n                    @icon=\"close\"\n                    @onClick={{fn this.removeItem \"headlines\" index}}\n                    @hideText={{true}}\n                    @variant=\"error\"\n                  />\n                {{/unless}}\n              </div>\n            </div>\n          {{/each}}\n          {{#if (and (not this._isMaxHeadlines) (not @isReadOnly))}}\n            <UiButton\n              @onClick={{fn this.addItem \"headlines\"}}\n              @label={{t \"searchAdCampaigns.ads.createDialog.addHeadline\"}}\n            />\n          {{/if}}\n        </div>\n  \n        <div class=\"font-medium font-lg primary pt3 pb2\">\n          {{t \"searchAdCampaigns.ads.createDialog.descriptions.title\"}}\n        </div>\n  \n        {{#if this.isDescriptionError}}\n          <div class=\"font-medium font-sm red pb1\">\n            {{this.descriptionErrorMessage}}\n          </div>\n        {{/if}}\n  \n        <div class=\"mb3\">\n          {{#each this.changeset.descriptions as |description index|}}\n            <div class=\"flex items-start\">\n              <div class=\"mr2 flex-grow-1\">\n                <UiInput\n                  @label={{t\n                    \"searchAdCampaigns.ads.createDialog.descriptions.label\"\n                    count=(inc index)\n                  }}\n                  @textarea={{true}}\n                  @value={{description.text}}\n                  @onChange={{pipe\n                    (fn (mut description.text))\n                    (fn this.executeChangeset description index \"descriptions\")\n                  }}\n                  @isTouched={{this.isTouched}}\n                  @isReadOnly={{@isReadOnly}}\n                  @maxlength=\"90\"\n                />\n              </div>\n              <div class=\"flex items-center\">\n                <UiSelect\n                  @class=\"mr2 mw4\"\n                  @label={{t \"searchAdCampaigns.ads.createDialog.position.label\"}}\n                  @options={{this._selectableDescriptionPositions}}\n                  @placeholder={{t \"searchAdCampaigns.ads.createDialog.noPosition\"}}\n                  @objectKey=\"label\"\n                  @selected={{get\n                    (array-find description.position this._selectableDescriptionPositions \"value\")\n                    \"label\"\n                  }}\n                  @isTouched={{this.isTouched}}\n                  @isReadOnly={{@isReadOnly}}\n                  @onChange={{pipe\n                    (fn (mut description.position))\n                    (fn this.executeChangeset description index \"descriptions\")\n                  }} as |optionComponent option|\n                >\n                  <optionComponent.item @value={{option.value}}>\n                    {{option.label}}\n                  </optionComponent.item>\n                </UiSelect>\n                {{#unless @isReadOnly}}\n                  <UiActionButton\n                    @classNames=\"remove-button flex items-center justify-center mt05\"\n                    @icon=\"close\"\n                    @onClick={{fn this.removeItem \"descriptions\" index}}\n                    @hideText={{true}}\n                    @variant=\"error\"\n                  />\n                {{/unless}}\n              </div>\n            </div>\n          {{/each}}\n          {{#if (and (not this._isMaxDescriptions) (not @isReadOnly))}}\n            <UiButton\n              @onClick={{fn this.addItem \"descriptions\"}}\n              @isDisabled={{@isReadOnly}}\n              @label={{t \"searchAdCampaigns.ads.createDialog.addDescription\"}}\n            />\n          {{/if}}\n        </div>\n      </c.body>\n    </m.content>\n    <m.footer>\n      <div class=\"flex flex-column flex-grow-1 gap3\">\n        {{#if (or this.headlineErrorMessage this.descriptionErrorMessage)}}\n          <UiInlineNotification\n            @isError={{true}}\n            @icon=\"error-state\"\n            @title={{t \"searchAdCampaigns.pendingUpdatesDialog.ads.unableToSaveErrorMessage\"}}\n          />\n        {{/if}}\n        <div class=\"ml-auto\">\n          <UiButton\n            @isSecondary={{true}}\n            @onClick={{this.save}}\n            @isPromise={{true}}\n            @label={{t \"global.actions.save\"}}\n          />\n        </div>\n      </div>\n    </m.footer>\n  </UiModal>\n  \n  <UiDiscardChanges @isOpen={{this.isDiscardChanges}} @onDiscard={{this.discardChanges}} />\n  */\n  {\n    \"id\": \"Dns8sJ9q\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@modalClassNames\\\",\\\"@title\\\",\\\"@size\\\",\\\"@onClose\\\"],[\\\"search-ad-create-dialog\\\",[52,[30,0,[\\\"isEdit\\\"]],[28,[37,2],[\\\"searchAdCampaigns.ads.createDialog.editTitle\\\"],null],[28,[37,2],[\\\"searchAdCampaigns.ads.createDialog.title\\\"],null]],\\\"md\\\",[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],[[4,[38,3],[[30,0,[\\\"didInsert\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mv3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@headlines\\\",\\\"@descriptions\\\",\\\"@url\\\"],[[30,0,[\\\"changeset\\\",\\\"headlines\\\"]],[30,0,[\\\"changeset\\\",\\\"descriptions\\\"]],[30,0,[\\\"changeset\\\",\\\"url\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@value\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@onChange\\\"],[\\\"flex\\\",[28,[37,2],[\\\"searchAdCampaigns.ads.createDialog.language\\\"],null],[30,0,[\\\"changeset\\\",\\\"language\\\"]],[28,[37,6],[[28,[37,7],[[30,0,[\\\"changeset\\\",\\\"language\\\"]],[30,0,[\\\"meta\\\",\\\"availableLanguages\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"meta\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"language\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,0,[\\\"isTouched\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"changeset\\\",\\\"language\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,4,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,4,[\\\"label\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[3,4]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,10],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@errorMessage\\\"],[[28,[37,2],[\\\"searchAdCampaigns.ads.createDialog.name\\\"],null],[30,0,[\\\"changeset\\\",\\\"name\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"changeset\\\",\\\"name\\\"]]],null]],null],[30,0,[\\\"isTouched\\\"]],[30,5],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"name\\\",\\\"validation\\\",\\\"firstObject\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"font-medium font-lg primary pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,2],[\\\"searchAdCampaigns.ads.createDialog.headlines.title\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isHeadlineError\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"font-medium font-sm red pb1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"headlineErrorMessage\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"mb3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"changeset\\\",\\\"headlines\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mr2 flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@maxlength\\\",\\\"@onChange\\\"],[[28,[37,2],[\\\"searchAdCampaigns.ads.createDialog.headlines.label\\\"],[[\\\"count\\\"],[[28,[37,13],[[30,7]],null]]]],[30,6,[\\\"text\\\"]],[30,0,[\\\"isTouched\\\"]],[30,5],\\\"30\\\",[28,[37,14],[[28,[37,8],[[28,[37,9],[[30,6,[\\\"text\\\"]]],null]],null],[28,[37,8],[[30,0,[\\\"executeChangeset\\\"]],[30,6],[30,7],\\\"headlines\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex items-center\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@options\\\",\\\"@objectKey\\\",\\\"@placeholder\\\",\\\"@selected\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[\\\"mr2 mw4\\\",[28,[37,2],[\\\"searchAdCampaigns.ads.createDialog.position.label\\\"],null],[30,0,[\\\"_selectableHeadlinePositions\\\"]],\\\"label\\\",[28,[37,2],[\\\"searchAdCampaigns.ads.createDialog.noPosition\\\"],null],[28,[37,6],[[28,[37,7],[[30,6,[\\\"position\\\"]],[30,0,[\\\"_selectableHeadlinePositions\\\"]],\\\"value\\\"],null],\\\"label\\\"],null],[30,0,[\\\"isTouched\\\"]],[30,5],[28,[37,14],[[28,[37,8],[[28,[37,9],[[30,6,[\\\"position\\\"]]],null]],null],[28,[37,8],[[30,0,[\\\"executeChangeset\\\"]],[30,6],[30,7],\\\"headlines\\\"],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,8,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,9,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,9,[\\\"label\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[8,9]]]]],[1,\\\"\\\\n\\\"],[41,[51,[30,5]],[[[1,\\\"                \\\"],[8,[39,16],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@onClick\\\",\\\"@hideText\\\",\\\"@variant\\\"],[\\\"remove-button flex items-center justify-center mt05\\\",\\\"close\\\",[28,[37,8],[[30,0,[\\\"removeItem\\\"]],\\\"headlines\\\",[30,7]],null],true,\\\"error\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[6,7]],null],[41,[28,[37,17],[[28,[37,18],[[30,0,[\\\"_isMaxHeadlines\\\"]]],null],[28,[37,18],[[30,5]],null]],null],[[[1,\\\"          \\\"],[8,[39,19],null,[[\\\"@onClick\\\",\\\"@label\\\"],[[28,[37,8],[[30,0,[\\\"addItem\\\"]],\\\"headlines\\\"],null],[28,[37,2],[\\\"searchAdCampaigns.ads.createDialog.addHeadline\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"font-medium font-lg primary pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,2],[\\\"searchAdCampaigns.ads.createDialog.descriptions.title\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDescriptionError\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"font-medium font-sm red pb1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"descriptionErrorMessage\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mb3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"changeset\\\",\\\"descriptions\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex items-start\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mr2 flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,[[\\\"@label\\\",\\\"@textarea\\\",\\\"@value\\\",\\\"@onChange\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@maxlength\\\"],[[28,[37,2],[\\\"searchAdCampaigns.ads.createDialog.descriptions.label\\\"],[[\\\"count\\\"],[[28,[37,13],[[30,11]],null]]]],true,[30,10,[\\\"text\\\"]],[28,[37,14],[[28,[37,8],[[28,[37,9],[[30,10,[\\\"text\\\"]]],null]],null],[28,[37,8],[[30,0,[\\\"executeChangeset\\\"]],[30,10],[30,11],\\\"descriptions\\\"],null]],null],[30,0,[\\\"isTouched\\\"]],[30,5],\\\"90\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex items-center\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@options\\\",\\\"@placeholder\\\",\\\"@objectKey\\\",\\\"@selected\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[\\\"mr2 mw4\\\",[28,[37,2],[\\\"searchAdCampaigns.ads.createDialog.position.label\\\"],null],[30,0,[\\\"_selectableDescriptionPositions\\\"]],[28,[37,2],[\\\"searchAdCampaigns.ads.createDialog.noPosition\\\"],null],\\\"label\\\",[28,[37,6],[[28,[37,7],[[30,10,[\\\"position\\\"]],[30,0,[\\\"_selectableDescriptionPositions\\\"]],\\\"value\\\"],null],\\\"label\\\"],null],[30,0,[\\\"isTouched\\\"]],[30,5],[28,[37,14],[[28,[37,8],[[28,[37,9],[[30,10,[\\\"position\\\"]]],null]],null],[28,[37,8],[[30,0,[\\\"executeChangeset\\\"]],[30,10],[30,11],\\\"descriptions\\\"],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,12,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,13,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,13,[\\\"label\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[12,13]]]]],[1,\\\"\\\\n\\\"],[41,[51,[30,5]],[[[1,\\\"                \\\"],[8,[39,16],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@onClick\\\",\\\"@hideText\\\",\\\"@variant\\\"],[\\\"remove-button flex items-center justify-center mt05\\\",\\\"close\\\",[28,[37,8],[[30,0,[\\\"removeItem\\\"]],\\\"descriptions\\\",[30,11]],null],true,\\\"error\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[10,11]],null],[41,[28,[37,17],[[28,[37,18],[[30,0,[\\\"_isMaxDescriptions\\\"]]],null],[28,[37,18],[[30,5]],null]],null],[[[1,\\\"          \\\"],[8,[39,19],null,[[\\\"@onClick\\\",\\\"@isDisabled\\\",\\\"@label\\\"],[[28,[37,8],[[30,0,[\\\"addItem\\\"]],\\\"descriptions\\\"],null],[30,5],[28,[37,2],[\\\"searchAdCampaigns.ads.createDialog.addDescription\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column flex-grow-1 gap3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"headlineErrorMessage\\\"]],[30,0,[\\\"descriptionErrorMessage\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,21],null,[[\\\"@isError\\\",\\\"@icon\\\",\\\"@title\\\"],[true,\\\"error-state\\\",[28,[37,2],[\\\"searchAdCampaigns.pendingUpdatesDialog.ads.unableToSaveErrorMessage\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"ml-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@isSecondary\\\",\\\"@onClick\\\",\\\"@isPromise\\\",\\\"@label\\\"],[true,[30,0,[\\\"save\\\"]],true,[28,[37,2],[\\\"global.actions.save\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,22],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChanges\\\"]],[30,0,[\\\"discardChanges\\\"]]]],null]],[\\\"m\\\",\\\"c\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"@isReadOnly\\\",\\\"headline\\\",\\\"index\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"description\\\",\\\"index\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"ui-modal\\\",\\\"if\\\",\\\"t\\\",\\\"did-insert\\\",\\\"amc-campaign/search-ad/ads/preview-item\\\",\\\"ui-select\\\",\\\"get\\\",\\\"array-find\\\",\\\"fn\\\",\\\"mut\\\",\\\"ui-input\\\",\\\"each\\\",\\\"-track-array\\\",\\\"inc\\\",\\\"pipe\\\",\\\"unless\\\",\\\"ui-action-button\\\",\\\"and\\\",\\\"not\\\",\\\"ui-button\\\",\\\"or\\\",\\\"ui-inline-notification\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/search-ad/ads/create-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignSearchAdAdsCreateDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _emberArgTypes.arg)(_propTypes.string), _dec5 = (0, _emberArgTypes.arg)(_propTypes.object), _dec6 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignSearchAdAdsCreateDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor4, this);\n      /**\n       * the created model\n       *\n       * @argument model\n       * @type {DS.Model}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor5, this);\n      /**\n       * whether it is the edit dialog\n       *\n       * @property isEdit\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isEdit\", _descriptor6, this);\n      /**\n       * the ad meta-data\n       *\n       * @argument meta\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"meta\", _descriptor7, this);\n      /**\n       * the name of the filter\n       *\n       * @argument filterName\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"filterName\", _descriptor8, this);\n      /**\n       * the adapteroptions to save the model\n       *\n       * @argument adapterOptions\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"adapterOptions\", _descriptor9, this);\n      /**\n       * the changeset for the model\n       *\n       * @property changeset\n       * @type {Changeset}\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor10, this);\n      /**\n       * whether the discard changes dialog is open\n       *\n       * @property isDiscardChanges\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChanges\", _descriptor11, this);\n      /**\n       * whether the form has been touched\n       *\n       * @property isTouched\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor12, this);\n      /**\n       * whether the form was changed\n       *\n       * @property isDirty\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDirty\", _descriptor13, this);\n      /**\n       * copy of initial headlines\n       *\n       * @property initialHeadlines\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"initialHeadlines\", _descriptor14, this);\n      /**\n       * copy of initial descriptions\n       *\n       * @property initialDescriptions\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"initialDescriptions\", _descriptor15, this);\n      /**\n       * whether there is an error at the headlines section\n       *\n       * @property isHeadlineError\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isHeadlineError\", _descriptor16, this);\n      /**\n       * the headlines error-message\n       *\n       * @property headlineErrorMessage\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"headlineErrorMessage\", _descriptor17, this);\n      /**\n       * whether there is an error at the descriptions section\n       *\n       * @property isDescriptionError\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDescriptionError\", _descriptor18, this);\n      /**\n       * the descriptions error-message\n       *\n       * @property descriptionErrorMessage\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"descriptionErrorMessage\", _descriptor19, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor20, this);\n    }\n    get _selectableHeadlinePositions() {\n      return [{\n        label: this.intl.t('searchAdCampaigns.ads.createDialog.noPosition'),\n        value: ''\n      }, {\n        label: 1,\n        value: 1\n      }, {\n        label: 2,\n        value: 2\n      }, {\n        label: 3,\n        value: 3\n      }];\n    }\n    get _selectableDescriptionPositions() {\n      return [{\n        label: this.intl.t('searchAdCampaigns.ads.createDialog.noPosition'),\n        value: null\n      }, {\n        label: 1,\n        value: 1\n      }, {\n        label: 2,\n        value: 2\n      }];\n    }\n    get _isMaxHeadlines() {\n      if (!this.changeset) {\n        return false;\n      }\n      const headlines = this.changeset.get('headlines') || [];\n      return (headlines === null || headlines === void 0 ? void 0 : headlines.length) >= 15;\n    }\n    get _isMaxDescriptions() {\n      if (!this.changeset) {\n        return false;\n      }\n      const headlines = this.changeset.get('descriptions') || [];\n      return (headlines === null || headlines === void 0 ? void 0 : headlines.length) >= 4;\n    }\n    didInsert() {\n      const validation = {\n        language: (0, _validators.validatePresence)({\n          presence: true,\n          message: this.intl.t('errors.required')\n        }),\n        name: (0, _validators.validatePresence)({\n          presence: true,\n          message: this.intl.t('errors.required')\n        })\n      };\n      this.changeset = new _emberChangeset.default(this.model, (0, _emberChangesetValidations.default)(validation), validation);\n      this.initialDescriptions = (0, _lodash.default)(this.model.get('descriptions'));\n      this.initialHeadlines = (0, _lodash.default)(this.model.get('headlines'));\n    }\n    close() {\n      if (this.changeset.get('isDirty') || this.isDirty) {\n        this.isDiscardChanges = true;\n      } else {\n        if (this.model.isNew) {\n          this.model.destroyRecord();\n        }\n        this.onClose();\n      }\n    }\n    discardChanges() {\n      if (this.model.isNew) {\n        this.model.destroyRecord();\n      }\n      this.changeset.rollback();\n      this.changeset.set('headlines', this.initialHeadlines);\n      this.changeset.set('descriptions', this.initialDescriptions);\n      this.changeset.execute();\n      this.isDiscardChanges = false;\n      this.onClose();\n    }\n    areInputsValid() {\n      const headlines = this.changeset.get('headlines');\n      const descriptions = this.changeset.get('descriptions');\n\n      // Check if there are headlines\n      if (!headlines || headlines.length < 3) {\n        this.isHeadlineError = true;\n        this.headlineErrorMessage = this.intl.t('searchAdCampaigns.ads.createDialog.headlines.minError');\n      }\n      !this.isHeadlineError && headlines.forEach(headline => {\n        if (headline.text.trim().length === 0) {\n          this.isHeadlineError = true;\n          this.headlineErrorMessage = this.intl.t('searchAdCampaigns.ads.createDialog.headlines.empty');\n        }\n        if (headline.text.includes('!')) {\n          this.isHeadlineError = true;\n          this.headlineErrorMessage = this.intl.t('searchAdCampaigns.ads.createDialog.headlines.noExclamation');\n        }\n      });\n\n      // Check if there are descriptions\n      if (!descriptions || descriptions.length < 2) {\n        this.isDescriptionError = true;\n        this.descriptionErrorMessage = this.intl.t('searchAdCampaigns.ads.createDialog.descriptions.minError');\n      }\n      !this.isDescriptionError && descriptions.forEach(description => {\n        if (description.text.trim().length === 0) {\n          this.isDescriptionError = true;\n          this.descriptionErrorMessage = this.intl.t('searchAdCampaigns.ads.createDialog.descriptions.empty');\n        }\n      });\n      if (this.isHeadlineError || this.isDescriptionError) {\n        return false;\n      }\n\n      // Check the length of the headlines\n      headlines.forEach(headline => {\n        if (headline.text.length > 30) {\n          this.isHeadlineError = true;\n          this.headlineErrorMessage = this.intl.t('searchAdCampaigns.ads.createDialog.headlines.maxLength');\n        }\n      });\n\n      // Check the length of the descriptions\n      descriptions.forEach(description => {\n        if (description.text.length > 90) {\n          this.isDescriptionError = true;\n          this.descriptionErrorMessage = this.intl.t('searchAdCampaigns.ads.createDialog.descriptions.maxLength');\n        }\n      });\n      if (this.isHeadlineError || this.isDescriptionError) {\n        return false;\n      }\n\n      // Get the selected position of each headline\n      const headlinePositions = [];\n      const uniqueHeadlinePositions = [];\n      headlines.forEach(headline => {\n        if (headline.position && typeof headline.position !== 'object') {\n          headlinePositions.push(headline.position);\n          if (!uniqueHeadlinePositions.includes(headline.position)) {\n            uniqueHeadlinePositions.push(headline.position);\n          }\n        }\n      });\n\n      // Check if selected positions are valid\n      const isHeadlinePositionError = headlines.length - (headlinePositions.length + (3 - uniqueHeadlinePositions.length)) < 0;\n      if (isHeadlinePositionError) {\n        this.isHeadlineError = true;\n        this.headlineErrorMessage = this.intl.t('searchAdCampaigns.ads.createDialog.headlines.positionError');\n      }\n\n      // Get the selected position of each description\n      const descriptionPositions = [];\n      const uniqueDescriptionPositions = [];\n      descriptions.forEach(description => {\n        if (description.position && typeof description.position !== 'object') {\n          descriptionPositions.push(description.position);\n          if (!uniqueDescriptionPositions.includes(description.position)) {\n            uniqueDescriptionPositions.push(description.position);\n          }\n        }\n      });\n\n      // Check if selected positions are valid\n      const isDescriptionPositionError = descriptions.length - (descriptionPositions.length + (2 - uniqueDescriptionPositions.length)) < 0;\n      if (isDescriptionPositionError) {\n        this.isDescriptionError = true;\n        this.descriptionErrorMessage = this.intl.t('searchAdCampaigns.ads.createDialog.descriptions.positionError');\n      }\n      if (this.isHeadlineError || this.isDescriptionError) {\n        return false;\n      }\n      return true;\n    }\n    executeChangeset(item, index, key) {\n      this.isDirty = true;\n      const items = this.changeset.get(key);\n      if (typeof item.position === 'object') {\n        item.position = null;\n      }\n      items.splice(index, 1, item);\n      this.changeset.set('key', items);\n      this.changeset.execute();\n    }\n    addItem(key) {\n      this.isDirty = true;\n      const items = this.changeset.get(key) || [];\n      items.pushObject({\n        text: '',\n        position: null\n      });\n      this.changeset.set(key, items);\n      this.changeset.execute();\n    }\n    removeItem(key, index) {\n      this.isDirty = true;\n      const items = this.changeset.get(key);\n      items.splice(index, 1);\n      this.changeset.set(key, items);\n      this.changeset.execute();\n    }\n    async save() {\n      try {\n        const {\n          isNew\n        } = this.model;\n        this.isTouched = true;\n\n        // Reset errors\n        this.isHeadlineError = false;\n        this.isDescriptionError = false;\n        const areInputsValid = this.areInputsValid();\n        await this.changeset.validate();\n        if (this.changeset.get('isInvalid') || !areInputsValid) {\n          return;\n        }\n        this.changeset.set('type', 'GoogleSearchAd');\n        if (isNew) {\n          const newAd = await this.changeset.save({\n            adapterOptions: this.adapterOptions\n          });\n          this.uiFilter.addItem(this.filterName, newAd);\n          await this.uiFilter.reset('searchAdTemplate');\n        } else {\n          await this.changeset.save({\n            adapterOptions: this.adapterOptions\n          });\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        this.onClose();\n      } catch (e) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isEdit\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"filterName\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"adapterOptions\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return {};\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isDirty\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"initialHeadlines\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"initialDescriptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"isHeadlineError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"headlineErrorMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"isDescriptionError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"descriptionErrorMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"areInputsValid\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"areInputsValid\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"executeChangeset\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"executeChangeset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignSearchAdAdsCreateDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/search-ad/ads/edit-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-changeset-validations/validators\", \"ember-arg-types\", \"prop-types\", \"lodash.clonedeep\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberChangeset, _emberChangesetValidations, _validators, _emberArgTypes, _propTypes, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @modalClassNames=\"search-ad-create-dialog\"\n    @title={{t \"searchAdCampaigns.preview.editDialog.title\"}}\n    @size=\"md\"\n    @onClose={{this.close}} as |m|\n  >\n    <m.header />\n    <m.content as |c|>\n      <c.body {{did-insert this.didInsert}}>\n        <div class=\"mv3\">\n          <AmcCampaign::SearchAd::Ads::PreviewItem\n            @headlines={{this.changeset.headlines}}\n            @descriptions={{this.changeset.descriptions}}\n            @url={{this.changeset.url}}\n          />\n        </div>\n  \n        <UiInput\n          @label={{t \"searchAdCampaigns.preview.editDialog.name\"}}\n          @value={{this.changeset.name}}\n          @isReadOnly={{true}}\n        />\n  \n        <div class=\"font-medium font-lg primary pt3 pb2\">\n          {{t \"searchAdCampaigns.preview.editDialog.headlines.title\"}}\n        </div>\n        {{#if this.isHeadlineError}}\n          <div class=\"font-medium font-sm red pb1\">\n            {{this.headlineErrorMessage}}\n          </div>\n        {{/if}}\n        {{#each this.changeset.headlines as |headline index|}}\n          <UiInput\n            @label={{t \"searchAdCampaigns.preview.editDialog.headlines.label\" count=(inc index)}}\n            @value={{headline.text}}\n            @onChange={{pipe\n              (fn (mut headline.text))\n              (fn this.executeChangeset headline index \"headlines\")\n            }}\n            @isTouched={{this.isTouched}}\n            @maxlength=\"30\"\n          />\n        {{/each}}\n  \n        <div class=\"font-medium font-lg primary pt3 pb2\">\n          {{t \"searchAdCampaigns.preview.editDialog.descriptions.title\"}}\n        </div>\n        {{#if this.isDescriptionError}}\n          <div class=\"font-medium font-sm red pb1\">\n            {{this.descriptionErrorMessage}}\n          </div>\n        {{/if}}\n        {{#each this.changeset.descriptions as |description index|}}\n          <UiInput\n            @label={{t \"searchAdCampaigns.preview.editDialog.descriptions.label\" count=(inc index)}}\n            @value={{description.text}}\n            @textarea={{true}}\n            @onChange={{pipe\n              (fn (mut description.text))\n              (fn this.executeChangeset description index \"descriptions\")\n            }}\n            @isTouched={{this.isTouched}}\n            @maxlength=\"90\"\n          />\n        {{/each}}\n  \n        <div class=\"font-medium font-lg primary pt3 pb2\">\n          {{t \"searchAdCampaigns.preview.editDialog.url.title\"}}\n        </div>\n        <UiInput\n          @label={{t \"searchAdCampaigns.preview.editDialog.url.label\"}}\n          @value={{this.changeset.url}}\n          @errorMessage={{this.changeset.error.url.validation.firstObject}}\n          @isTouched={{this.isTouched}}\n        />\n      </c.body>\n    </m.content>\n    <m.footer>\n      <UiButton\n        @isSecondary={{true}}\n        @onClick={{this.save}}\n        @isPromise={{true}}\n        @label={{t \"global.actions.save\"}}\n      />\n    </m.footer>\n  </UiModal>\n  \n  <UiDiscardChanges @isOpen={{this.isDiscardChanges}} @onDiscard={{this.discardChanges}} />\n  */\n  {\n    \"id\": \"Bx4VbL9z\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@modalClassNames\\\",\\\"@title\\\",\\\"@size\\\",\\\"@onClose\\\"],[\\\"search-ad-create-dialog\\\",[28,[37,1],[\\\"searchAdCampaigns.preview.editDialog.title\\\"],null],\\\"md\\\",[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],[[4,[38,2],[[30,0,[\\\"didInsert\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mv3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,3],null,[[\\\"@headlines\\\",\\\"@descriptions\\\",\\\"@url\\\"],[[30,0,[\\\"changeset\\\",\\\"headlines\\\"]],[30,0,[\\\"changeset\\\",\\\"descriptions\\\"]],[30,0,[\\\"changeset\\\",\\\"url\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"searchAdCampaigns.preview.editDialog.name\\\"],null],[30,0,[\\\"changeset\\\",\\\"name\\\"]],true]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"font-medium font-lg primary pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.preview.editDialog.headlines.title\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isHeadlineError\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"font-medium font-sm red pb1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"headlineErrorMessage\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"changeset\\\",\\\"headlines\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\",\\\"@isTouched\\\",\\\"@maxlength\\\"],[[28,[37,1],[\\\"searchAdCampaigns.preview.editDialog.headlines.label\\\"],[[\\\"count\\\"],[[28,[37,8],[[30,4]],null]]]],[30,3,[\\\"text\\\"]],[28,[37,9],[[28,[37,10],[[28,[37,11],[[30,3,[\\\"text\\\"]]],null]],null],[28,[37,10],[[30,0,[\\\"executeChangeset\\\"]],[30,3],[30,4],\\\"headlines\\\"],null]],null],[30,0,[\\\"isTouched\\\"]],\\\"30\\\"]],null],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-medium font-lg primary pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.preview.editDialog.descriptions.title\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDescriptionError\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"font-medium font-sm red pb1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"descriptionErrorMessage\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"changeset\\\",\\\"descriptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@textarea\\\",\\\"@onChange\\\",\\\"@isTouched\\\",\\\"@maxlength\\\"],[[28,[37,1],[\\\"searchAdCampaigns.preview.editDialog.descriptions.label\\\"],[[\\\"count\\\"],[[28,[37,8],[[30,6]],null]]]],[30,5,[\\\"text\\\"]],true,[28,[37,9],[[28,[37,10],[[28,[37,11],[[30,5,[\\\"text\\\"]]],null]],null],[28,[37,10],[[30,0,[\\\"executeChangeset\\\"]],[30,5],[30,6],\\\"descriptions\\\"],null]],null],[30,0,[\\\"isTouched\\\"]],\\\"90\\\"]],null],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-medium font-lg primary pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.preview.editDialog.url.title\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,1],[\\\"searchAdCampaigns.preview.editDialog.url.label\\\"],null],[30,0,[\\\"changeset\\\",\\\"url\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"url\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,0,[\\\"isTouched\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,12],null,[[\\\"@isSecondary\\\",\\\"@onClick\\\",\\\"@isPromise\\\",\\\"@label\\\"],[true,[30,0,[\\\"save\\\"]],true,[28,[37,1],[\\\"global.actions.save\\\"],null]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,13],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChanges\\\"]],[30,0,[\\\"discardChanges\\\"]]]],null]],[\\\"m\\\",\\\"c\\\",\\\"headline\\\",\\\"index\\\",\\\"description\\\",\\\"index\\\"],false,[\\\"ui-modal\\\",\\\"t\\\",\\\"did-insert\\\",\\\"amc-campaign/search-ad/ads/preview-item\\\",\\\"ui-input\\\",\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"inc\\\",\\\"pipe\\\",\\\"fn\\\",\\\"mut\\\",\\\"ui-button\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/search-ad/ads/edit-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignSearchAdAdsEditDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.func), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignSearchAdAdsEditDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      /**\n       * the selected ad\n       *\n       * @argument ad\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"ad\", _descriptor2, this);\n      /**\n       * whether the form has been touched\n       *\n       * @property isTouched\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor3, this);\n      /**\n       * whether the form was changed\n       *\n       * @property isDirty\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDirty\", _descriptor4, this);\n      /**\n       * the changeset for the ad\n       *\n       * @property changeset\n       * @type {Changeset}\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor5, this);\n      /**\n       * whether the discard changes dialog is open\n       *\n       * @property isDiscardChanges\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChanges\", _descriptor6, this);\n      /**\n       * copy of initial headlines\n       *\n       * @property initialHeadlines\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"initialHeadlines\", _descriptor7, this);\n      /**\n       * copy of initial descriptions\n       *\n       * @property initialDescriptions\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"initialDescriptions\", _descriptor8, this);\n      /**\n       * whether there is an error at the headlines section\n       *\n       * @property isHeadlineError\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isHeadlineError\", _descriptor9, this);\n      /**\n       * the headlines error-message\n       *\n       * @property headlineErrorMessage\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"headlineErrorMessage\", _descriptor10, this);\n      /**\n       * whether there is an error at the descriptions section\n       *\n       * @property isDescriptionError\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDescriptionError\", _descriptor11, this);\n      /**\n       * the descriptions error-message\n       *\n       * @property descriptionErrorMessage\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"descriptionErrorMessage\", _descriptor12, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor13, this);\n      /**\n       * callback function to update the ad\n       *\n       * @argument onUpdate\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onUpdate\", _descriptor14, this);\n    }\n    executeChangeset(item, index, key) {\n      this.isDirty = true;\n      const items = this.changeset.get(key);\n      items.splice(index, 1, item);\n      this.changeset.set('key', items);\n      this.changeset.execute();\n    }\n    didInsert() {\n      const validation = {\n        url: [(0, _validators.validatePresence)({\n          presence: true,\n          message: this.intl.t('errors.required')\n        }), (0, _validators.validateFormat)({\n          // eslint-disable-next-line\n          regex: /^(http:\\/\\/www\\.|https:\\/\\/www\\.|http:\\/\\/|https:\\/\\/)?[A-Za-z0-9]+([\\-\\.]{1}[A-Za-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(\\/.*)?$/,\n          allowBlank: true,\n          message: this.intl.t('errors.invalidFormat')\n        })]\n      };\n      this.changeset = new _emberChangeset.default(this.ad, (0, _emberChangesetValidations.default)(validation), validation);\n      this.initialDescriptions = (0, _lodash.default)(this.ad.descriptions);\n      this.initialHeadlines = (0, _lodash.default)(this.ad.headlines);\n    }\n    areInputsValid() {\n      const headlines = this.changeset.get('headlines');\n      const descriptions = this.changeset.get('descriptions');\n\n      // Check if the headlines are valid\n      headlines.forEach(headline => {\n        if (headline.text.trim().length === 0) {\n          this.isHeadlineError = true;\n          this.headlineErrorMessage = this.intl.t('searchAdCampaigns.ads.createDialog.headlines.empty');\n        }\n      });\n\n      // Check if the descriptions are valid\n      descriptions.forEach(description => {\n        if (description.text.trim().length === 0) {\n          this.isDescriptionError = true;\n          this.descriptionErrorMessage = this.intl.t('searchAdCampaigns.ads.createDialog.descriptions.empty');\n        }\n      });\n      if (this.isHeadlineError || this.isDescriptionError) {\n        return false;\n      }\n\n      // Check the length of the headlines\n      headlines.forEach(headline => {\n        if (headline.text.length > 30) {\n          this.isHeadlineError = true;\n          this.headlineErrorMessage = this.intl.t('searchAdCampaigns.ads.createDialog.headlines.maxLength');\n        }\n      });\n\n      // Check the length of the descriptions\n      descriptions.forEach(description => {\n        if (description.text.length > 90) {\n          this.isDescriptionError = true;\n          this.descriptionErrorMessage = this.intl.t('searchAdCampaigns.ads.createDialog.descriptions.maxLength');\n        }\n      });\n      if (this.isHeadlineError || this.isDescriptionError) {\n        return false;\n      }\n      return true;\n    }\n    close() {\n      if (this.changeset.get('isDirty') || this.isDirty) {\n        this.isDiscardChanges = true;\n      } else {\n        this.onClose();\n      }\n    }\n    discardChanges() {\n      this.changeset.rollback();\n      this.changeset.set('headlines', this.initialHeadlines);\n      this.changeset.set('descriptions', this.initialDescriptions);\n      this.changeset.execute();\n      this.isDiscardChanges = false;\n      this.onClose();\n    }\n    async save() {\n      this.isTouched = true;\n\n      // Reset errors\n      this.isHeadlineError = false;\n      this.isDescriptionError = false;\n      const areInputsValid = this.areInputsValid();\n      await this.changeset.validate();\n      if (this.changeset.get('isInvalid') || !areInputsValid) {\n        return;\n      }\n      await this.onUpdate(this.changeset.get('data'));\n      this.onClose();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"ad\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isDirty\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"initialHeadlines\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"initialDescriptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isHeadlineError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"headlineErrorMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isDescriptionError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"descriptionErrorMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"onUpdate\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"executeChangeset\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"executeChangeset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"areInputsValid\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"areInputsValid\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignSearchAdAdsEditDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/search-ad/ads/preview-item\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/service\", \"@glimmer/tracking\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _service, _tracking, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"w-100 flex-column pa2 ba b--black-10\">\n    <div class=\"flex\">\n      <div class=\"font-sm font-medium {{if this.isDisabled \"secondary\" \"primary\"}}\">\n        {{t \"searchAdCampaigns.ads.preview.ad\"}}\n      </div>\n      <div class=\"font-sm font-medium secondary mr1 ml1\">\n        &middot;\n      </div>\n      <div class=\"font-sm font-medium secondary\">\n        {{this.urlText}}\n      </div>\n    </div>\n    <div class=\"font-lg font-medium {{if this.isDisabled \"secondary\" \"blue\"}} mv1\">\n      {{this.headlinesText}}\n    </div>\n    <div class=\"flex\">\n      <div class=\"font-sm font-medium secondary\">\n        {{this.descriptionsText}}\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"QBCBN/+y\",\n    \"block\": \"[[[10,0],[14,0,\\\"w-100 flex-column pa2 ba b--black-10\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[15,0,[29,[\\\"font-sm font-medium \\\",[52,[30,0,[\\\"isDisabled\\\"]],\\\"secondary\\\",\\\"primary\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.ads.preview.ad\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary mr1 ml1\\\"],[12],[1,\\\"\\\\n      ·\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"urlText\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[29,[\\\"font-lg font-medium \\\",[52,[30,0,[\\\"isDisabled\\\"]],\\\"secondary\\\",\\\"blue\\\"],\\\" mv1\\\"]]],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"headlinesText\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"descriptionsText\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"if\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/search-ad/ads/preview-item.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignSearchAdAdsPreviewItemComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.array), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberArgTypes.arg)(_propTypes.array), _dec4 = (0, _emberArgTypes.arg)(_propTypes.string), _class = class AmcCampaignSearchAdAdsPreviewItemComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      /**\n       * the search-ad headlines\n       *\n       * @argument headlines\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"headlines\", _descriptor2, this);\n      /**\n       * whether the preview-item is disabled\n       *\n       * @argument isDisabled\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDisabled\", _descriptor3, this);\n      /**\n       * the search-ad descriptions\n       *\n       * @argument descriptions\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"descriptions\", _descriptor4, this);\n      /**\n       * the search-ad url\n       *\n       * @argument url\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"url\", _descriptor5, this);\n    }\n    get urlText() {\n      if (this.url) {\n        return this.url;\n      }\n      return 'http://www.example.com';\n    }\n    get headlinesText() {\n      if (!this.headlines || this.headlines.length < 3) {\n        return this.intl.t('searchAdCampaigns.ads.createDialog.headlines.title');\n      }\n\n      // Get headlines sorted by different positions\n      const firstHeadlines = this.headlines.filter(headline => headline.position === 1 || !headline.position);\n      const secondHeadlines = this.headlines.filter(headline => headline.position === 2 || !headline.position);\n      const thirdHeadlines = this.headlines.filter(headline => headline.position === 3 || !headline.position);\n      if (firstHeadlines.length === 0 || secondHeadlines.length === 0 || thirdHeadlines.length === 0) {\n        return this.intl.t('searchAdCampaigns.ads.createDialog.headlines.title');\n      }\n      const firstHeadline = firstHeadlines[Math.floor(Math.random() * firstHeadlines.length)].text;\n      const secondHeadline = secondHeadlines[Math.floor(Math.random() * secondHeadlines.length)].text;\n      const thirdHeadline = thirdHeadlines[Math.floor(Math.random() * thirdHeadlines.length)].text;\n      return `${firstHeadline} | ${secondHeadline} | ${thirdHeadline}`;\n    }\n    get descriptionsText() {\n      if (!this.descriptions || this.descriptions.length < 2) {\n        return this.intl.t('searchAdCampaigns.ads.createDialog.descriptions.title');\n      }\n\n      // Get descriptions sorted by different positions\n      const firstDescriptions = this.descriptions.filter(description => description.position === 1 || !description.position);\n      const secondDescriptions = this.descriptions.filter(description => description.position === 2 || !description.position);\n      if (firstDescriptions.length === 0 || secondDescriptions.length === 0) {\n        return this.intl.t('searchAdCampaigns.ads.createDialog.descriptions.title');\n      }\n      const firstDescription = firstDescriptions[Math.floor(Math.random() * firstDescriptions.length)].text;\n      const secondDescription = secondDescriptions[Math.floor(Math.random() * secondDescriptions.length)].text;\n      return `${firstDescription} | ${secondDescription}`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"headlines\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isDisabled\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"descriptions\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"url\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignSearchAdAdsPreviewItemComponent);\n});","define(\"additive-mc/components/amc-campaign/search-ad/create-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-changeset-validations/validators\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberChangeset, _emberChangesetValidations, _validators, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{t \"searchAdCampaigns.create.types.googleSearchAdCampaign.title\"}}\n    @onClose={{this.close}} as |m|\n  >\n    <m.header />\n    <m.content as |c|>\n      <c.body {{did-insert this.didInsert}}>\n        <UiInput\n          @label={{t \"adCampaigns.properties.title\"}}\n          @value={{this.changeset.title}}\n          @errorMessage={{this.changeset.error.title.validation.firstObject}}\n          @isTouched={{this.isTouched}}\n        />\n      </c.body>\n    </m.content>\n    <m.footer>\n      <UiButton\n        @isSecondary={{true}}\n        @onClick={{this.save}}\n        @isPromise={{true}}\n        @label={{t \"global.actions.save\"}}\n      />\n    </m.footer>\n  </UiModal>\n  \n  <UiDiscardChanges @isOpen={{this.isDiscardChanges}} @onDiscard={{this.discardChanges}} />\n  */\n  {\n    \"id\": \"4b5c3MkG\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"searchAdCampaigns.create.types.googleSearchAdCampaign.title\\\"],null],[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],[[4,[38,2],[[30,0,[\\\"didInsert\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,1],[\\\"adCampaigns.properties.title\\\"],null],[30,0,[\\\"changeset\\\",\\\"title\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"title\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,0,[\\\"isTouched\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,4],null,[[\\\"@isSecondary\\\",\\\"@onClick\\\",\\\"@isPromise\\\",\\\"@label\\\"],[true,[30,0,[\\\"save\\\"]],true,[28,[37,1],[\\\"global.actions.save\\\"],null]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,5],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChanges\\\"]],[30,0,[\\\"discardChanges\\\"]]]],null]],[\\\"m\\\",\\\"c\\\"],false,[\\\"ui-modal\\\",\\\"t\\\",\\\"did-insert\\\",\\\"ui-input\\\",\\\"ui-button\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/search-ad/create-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignSearchAdCreateDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignSearchAdCreateDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor5, this);\n      /**\n       * the created model\n       *\n       * @argument model\n       * @type {DS.Model}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor6, this);\n      /**\n       * the name of the filter\n       *\n       * @argument filterName\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"filterName\", _descriptor7, this);\n      /**\n       * the adapteroptions to save the model\n       *\n       * @argument adapterOptions\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"adapterOptions\", _descriptor8, this);\n      /**\n       * the changeset for the model\n       *\n       * @property changeset\n       * @type {Changeset}\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor9, this);\n      /**\n       * whether the discard changes dialog is open\n       *\n       * @property isDiscardChanges\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChanges\", _descriptor10, this);\n      /**\n       * whether the form has been touched\n       *\n       * @property isTouched\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor11, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor12, this);\n    }\n    didInsert() {\n      const validation = {\n        title: (0, _validators.validatePresence)({\n          presence: true,\n          message: this.intl.t('errors.required')\n        })\n      };\n      this.changeset = new _emberChangeset.default(this.model, (0, _emberChangesetValidations.default)(validation), validation);\n    }\n    close() {\n      if (this.changeset.get('isDirty')) {\n        this.isDiscardChanges = true;\n      } else {\n        if (this.model.isNew) {\n          this.model.destroyRecord();\n        }\n        this.onClose();\n      }\n    }\n    discardChanges() {\n      if (this.model.isNew) {\n        this.model.destroyRecord();\n      }\n      this.isDiscardChanges = false;\n      this.onClose();\n    }\n    async save() {\n      try {\n        this.isTouched = true;\n        await this.changeset.validate();\n        if (this.changeset.get('isInvalid')) {\n          return;\n        }\n        this.changeset.set('type', 'Google::SearchAdsCampaign');\n        const newCampaign = await this.changeset.save({\n          adapterOptions: this.adapterOptions\n        });\n        this.uiFilter.addItem(this.filterName, newCampaign);\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        this.onClose();\n      } catch (e) {\n        var _errors$;\n        const errors = e === null || e === void 0 ? void 0 : e.errors;\n        if (errors !== null && errors !== void 0 && errors.length && ((_errors$ = errors[0]) === null || _errors$ === void 0 ? void 0 : _errors$.status) === 422) {\n          var _errors$0$payload;\n          const message = (_errors$0$payload = errors[0].payload) === null || _errors$0$payload === void 0 ? void 0 : _errors$0$payload.message;\n          return this.uiDialog.showError(this.intl.t('global.errors.title'), message);\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"filterName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"adapterOptions\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignSearchAdCreateDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/search-ad/extensions/create-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-changeset-validations/validators\", \"ember-arg-types\", \"prop-types\", \"additive-mc/utils/constants\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberChangeset, _emberChangesetValidations, _validators, _emberArgTypes, _propTypes, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isSelectExtensionDialog}}\n    <UiModal\n      @title={{t \"searchAdCampaigns.extensions.createDialog.title\"}}\n      @onClose={{this.closeSelectDialog}} as |m|\n    >\n      <m.header />\n      <m.content as |c|>\n        <c.body {{did-insert this.didInsertSelectTypeDialog}}>\n          <UiItemGroup @class=\"w-100 pv0\" as |group|>\n            <group.item @onClick={{fn this.createExtension \"site_link\"}} as |item|>\n              <div class=\"pr2\">\n                {{svg-jar \"people\"}}\n              </div>\n              <item.intro\n                @size=\"md\"\n                @title={{t \"searchAdCampaigns.extensions.createDialog.siteLink.label\"}}\n                @description={{t \"searchAdCampaigns.extensions.createDialog.siteLink.description\"}}\n              />\n            </group.item>\n            <group.item\n              @onClick={{fn this.createExtension \"additional_information\"}}\n              class={{unless this.hasIncentiveCampaigns \"secondary\"}} as |item|\n            >\n              <div class=\"pr2\">\n                {{svg-jar \"info\" class=\"primary\"}}\n              </div>\n              <item.intro\n                @size=\"md\"\n                @title={{t \"searchAdCampaigns.extensions.createDialog.additionalInformation.label\"}}\n                @description={{t\n                  \"searchAdCampaigns.extensions.createDialog.additionalInformation.description\"\n                }}\n              />\n            </group.item>\n          </UiItemGroup>\n        </c.body>\n      </m.content>\n    </UiModal>\n  {{/if}}\n  \n  {{#if this.isCreateExtensionDialog}}\n    <UiModal\n      @title={{if\n        this._isSiteLink\n        (t \"searchAdCampaigns.extensions.types.site_link\")\n        (t \"searchAdCampaigns.extensions.types.additional_information\")\n      }}\n      @onClose={{this.close}} as |m|\n    >\n      <m.header />\n      <m.content as |c|>\n        <c.body {{did-insert this.didInsert}}>\n          <UiSelect\n            @classNames=\"w-100\"\n            @label={{t \"searchAdCampaigns.extensions.createDialog.properties.language\"}}\n            @value={{this.changeset.language}}\n            @selected={{get\n              (array-find this.changeset.language this.meta.availableLanguages)\n              \"label\"\n            }}\n            @options={{this.meta.availableLanguages}}\n            @errorMessage={{this.changeset.error.language.validation.firstObject}}\n            @isTouched={{this.isTouched}}\n            @isReadOnly={{@isReadOnly}}\n            @onChange={{fn (mut this.changeset.language)}} as |optionComponent option|\n          >\n            <optionComponent.item @value={{option.value}}>\n              {{option.label}}\n            </optionComponent.item>\n          </UiSelect>\n  \n          <UiInput\n            @label={{t \"searchAdCampaigns.extensions.createDialog.properties.name\"}}\n            @value={{this.changeset.name}}\n            @maxlength={{25}}\n            @errorMessage={{this.changeset.error.name.validation.firstObject}}\n            @isTouched={{this.isTouched}}\n            @isReadOnly={{@isReadOnly}}\n          />\n  \n          {{#if this._isSiteLink}}\n            <UiInput\n              @label={{t \"searchAdCampaigns.extensions.createDialog.properties.link\"}}\n              @value={{this.changeset.link}}\n              @errorMessage={{this.changeset.error.link.validation.firstObject}}\n              @isTouched={{this.isTouched}}\n              @isReadOnly={{@isReadOnly}}\n            />\n          {{/if}}\n        </c.body>\n      </m.content>\n      <m.footer>\n        <UiButton\n          @isSecondary={{true}}\n          @isDisabled={{@isReadOnly}}\n          @label={{t \"global.actions.save\"}}\n          @onClick={{this.save}}\n        />\n      </m.footer>\n    </UiModal>\n  {{/if}}\n  <UiDiscardChanges @isOpen={{this.isDiscardChanges}} @onDiscard={{this.discardChanges}} />\n  */\n  {\n    \"id\": \"5E6T9iDU\",\n    \"block\": \"[[[41,[30,0,[\\\"isSelectExtensionDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@title\\\",\\\"@onClose\\\"],[[28,[37,2],[\\\"searchAdCampaigns.extensions.createDialog.title\\\"],null],[30,0,[\\\"closeSelectDialog\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"body\\\"]],[[4,[38,3],[[30,0,[\\\"didInsertSelectTypeDialog\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@class\\\"],[\\\"w-100 pv0\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@onClick\\\"],[[28,[37,5],[[30,0,[\\\"createExtension\\\"]],\\\"site_link\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"pr2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"people\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[30,4,[\\\"intro\\\"]],null,[[\\\"@size\\\",\\\"@title\\\",\\\"@description\\\"],[\\\"md\\\",[28,[37,2],[\\\"searchAdCampaigns.extensions.createDialog.siteLink.label\\\"],null],[28,[37,2],[\\\"searchAdCampaigns.extensions.createDialog.siteLink.description\\\"],null]]],null],[1,\\\"\\\\n          \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"item\\\"]],[[16,0,[52,[51,[30,0,[\\\"hasIncentiveCampaigns\\\"]]],\\\"secondary\\\"]]],[[\\\"@onClick\\\"],[[28,[37,5],[[30,0,[\\\"createExtension\\\"]],\\\"additional_information\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"pr2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"info\\\"],[[\\\"class\\\"],[\\\"primary\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"intro\\\"]],null,[[\\\"@size\\\",\\\"@title\\\",\\\"@description\\\"],[\\\"md\\\",[28,[37,2],[\\\"searchAdCampaigns.extensions.createDialog.additionalInformation.label\\\"],null],[28,[37,2],[\\\"searchAdCampaigns.extensions.createDialog.additionalInformation.description\\\"],null]]],null],[1,\\\"\\\\n          \\\"]],[5]]]]],[1,\\\"\\\\n        \\\"]],[3]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isCreateExtensionDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@title\\\",\\\"@onClose\\\"],[[52,[30,0,[\\\"_isSiteLink\\\"]],[28,[37,2],[\\\"searchAdCampaigns.extensions.types.site_link\\\"],null],[28,[37,2],[\\\"searchAdCampaigns.extensions.types.additional_information\\\"],null]],[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,6,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,6,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,7,[\\\"body\\\"]],[[4,[38,3],[[30,0,[\\\"didInsert\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@value\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[\\\"w-100\\\",[28,[37,2],[\\\"searchAdCampaigns.extensions.createDialog.properties.language\\\"],null],[30,0,[\\\"changeset\\\",\\\"language\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"changeset\\\",\\\"language\\\"]],[30,0,[\\\"meta\\\",\\\"availableLanguages\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"meta\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"language\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,0,[\\\"isTouched\\\"]],[30,8],[28,[37,5],[[28,[37,11],[[30,0,[\\\"changeset\\\",\\\"language\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,9,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,10,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,10,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[9,10]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,12],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@maxlength\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[[28,[37,2],[\\\"searchAdCampaigns.extensions.createDialog.properties.name\\\"],null],[30,0,[\\\"changeset\\\",\\\"name\\\"]],25,[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"name\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,0,[\\\"isTouched\\\"]],[30,8]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_isSiteLink\\\"]],[[[1,\\\"          \\\"],[8,[39,12],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[[28,[37,2],[\\\"searchAdCampaigns.extensions.createDialog.properties.link\\\"],null],[30,0,[\\\"changeset\\\",\\\"link\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"link\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,0,[\\\"isTouched\\\"]],[30,8]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[7]]]]],[1,\\\"\\\\n    \\\"],[8,[30,6,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@isSecondary\\\",\\\"@isDisabled\\\",\\\"@label\\\",\\\"@onClick\\\"],[true,[30,8],[28,[37,2],[\\\"global.actions.save\\\"],null],[30,0,[\\\"save\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[]],null],[8,[39,14],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChanges\\\"]],[30,0,[\\\"discardChanges\\\"]]]],null]],[\\\"m\\\",\\\"c\\\",\\\"group\\\",\\\"item\\\",\\\"item\\\",\\\"m\\\",\\\"c\\\",\\\"@isReadOnly\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"if\\\",\\\"ui-modal\\\",\\\"t\\\",\\\"did-insert\\\",\\\"ui-item-group\\\",\\\"fn\\\",\\\"svg-jar\\\",\\\"unless\\\",\\\"ui-select\\\",\\\"get\\\",\\\"array-find\\\",\\\"mut\\\",\\\"ui-input\\\",\\\"ui-button\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/search-ad/extensions/create-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignSearchAdExtensionsCreateDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.object), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignSearchAdExtensionsCreateDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor5, this);\n      /**\n       * the created model\n       *\n       * @argument model\n       * @type {DS.Model}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor6, this);\n      /**\n       * the extension meta data\n       *\n       * @argument meta\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"meta\", _descriptor7, this);\n      /**\n       * the name of the filter\n       *\n       * @argument filterName\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"filterName\", _descriptor8, this);\n      /**\n       * the adapteroptions to save the model\n       *\n       * @argument adapterOptions\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"adapterOptions\", _descriptor9, this);\n      /**\n       * the changeset for the model\n       *\n       * @property changeset\n       * @type {Changeset}\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor10, this);\n      /**\n       * whether the discard changes dialog is open\n       *\n       * @property isDiscardChanges\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChanges\", _descriptor11, this);\n      /**\n       * whether the form has been touched\n       *\n       * @property isTouched\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor12, this);\n      /**\n       * the selected extension type\n       *\n       * @property type\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"type\", _descriptor13, this);\n      /**\n       * whether the extension edit dialog is opened\n       *\n       * @property isCreateExtensionDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isCreateExtensionDialog\", _descriptor14, this);\n      /**\n       * whether the select extension type dialog is opened\n       *\n       * @property isSelectExtensionDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isSelectExtensionDialog\", _descriptor15, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor16, this);\n    }\n    get _isSiteLink() {\n      return this.type === _constants.GOOGLE_SEARCH_ADS_SITE_LINK;\n    }\n    didInsertSelectTypeDialog() {\n      if (!this.model.isNew) {\n        this.type = this.model.type;\n        this.isSelectExtensionDialog = false;\n        this.isCreateExtensionDialog = true;\n      }\n    }\n    didInsert() {\n      let validation;\n      if (this._isSiteLink) {\n        validation = {\n          language: (0, _validators.validatePresence)({\n            presence: true,\n            message: this.intl.t('errors.required')\n          }),\n          name: [(0, _validators.validatePresence)({\n            presence: true,\n            message: this.intl.t('errors.required')\n          }), (0, _validators.validateLength)({\n            max: 25,\n            message: this.intl.t('errors.maxLength', {\n              maxLength: 25\n            })\n          })],\n          link: [(0, _validators.validatePresence)({\n            presence: true,\n            message: this.intl.t('errors.required')\n          }), (0, _validators.validateFormat)({\n            // eslint-disable-next-line\n            regex: /^(http:\\/\\/www\\.|https:\\/\\/www\\.|http:\\/\\/|https:\\/\\/)?[A-Za-z0-9]+([\\-\\.]{1}[A-Za-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(\\/.*)?$/,\n            allowBlank: true,\n            message: this.intl.t('errors.invalidFormat')\n          })]\n        };\n      } else {\n        validation = {\n          language: (0, _validators.validatePresence)({\n            presence: true,\n            message: this.intl.t('errors.required')\n          }),\n          name: [(0, _validators.validatePresence)({\n            presence: true,\n            message: this.intl.t('errors.required')\n          }), (0, _validators.validateLength)({\n            max: 25,\n            message: this.intl.t('errors.maxLength', {\n              maxLength: 25\n            })\n          })]\n        };\n      }\n      this.changeset = new _emberChangeset.default(Object.assign(this.model, {\n        type: this.type\n      }), (0, _emberChangesetValidations.default)(validation), validation);\n    }\n    close() {\n      if (this.changeset.get('isDirty')) {\n        this.isDiscardChanges = true;\n      } else {\n        if (this.model.isNew) {\n          this.model.destroyRecord();\n        }\n        this.onClose();\n      }\n    }\n    discardChanges() {\n      if (this.model.isNew) {\n        this.model.destroyRecord();\n      }\n      this.isDiscardChanges = false;\n      this.onClose();\n    }\n    createExtension(type) {\n      if (type === 'site_link') {\n        this.type = _constants.GOOGLE_SEARCH_ADS_SITE_LINK;\n      } else {\n        this.type = _constants.GOOGLE_SEARCH_ADS_ADDITIONAL_INFORMATION;\n      }\n      this.isCreateExtensionDialog = true;\n      this.isSelectExtensionDialog = false;\n    }\n    closeSelectDialog() {\n      if (this.model.isNew) {\n        this.model.destroyRecord();\n      }\n      this.onClose();\n    }\n    async save() {\n      try {\n        const {\n          isNew\n        } = this.model;\n        this.isTouched = true;\n        await this.changeset.validate();\n        if (this.changeset.get('isInvalid')) {\n          return;\n        }\n        if (isNew) {\n          const newExtension = await this.changeset.save({\n            adapterOptions: this.adapterOptions\n          });\n          this.uiFilter.addItem(this.filterName, newExtension);\n        } else {\n          await this.changeset.save({\n            adapterOptions: this.adapterOptions\n          });\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        this.onClose();\n      } catch (e) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"filterName\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"adapterOptions\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return {};\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"type\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"isCreateExtensionDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isSelectExtensionDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsertSelectTypeDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertSelectTypeDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createExtension\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createExtension\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeSelectDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeSelectDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignSearchAdExtensionsCreateDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/search-ad/extensions/list\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/service\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _service, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.additionalInformationExtensions.length}}\n    <UiList\n      @title={{t \"searchAdCampaigns.extensions.lists.additionalInformation\"}}\n      @classNames=\"pb2\"\n      @items={{this.additionalInformationExtensions}}\n      @hasMobileSpacing={{true}} as |list item|\n    >\n      <list.item\n        @onClick={{fn this.onClick item}}\n        @description={{t \"searchAdCampaigns.extensions.types.additional_information\"}}\n        @state=\"success\" as |controls|\n      >\n        <controls.popover as |pop|>\n          <pop.trigger />\n          <pop.content>\n            {{get (array-find item.language this.meta.availableLanguages) \"label\"}}\n          </pop.content>\n        </controls.popover>\n  \n        <controls.title>\n          <span class=\"ellipsis\">\n            {{item.name}}\n          </span>\n        </controls.title>\n  \n        <controls.right>\n          <UiBadge @state=\"warning\">\n            Beta\n          </UiBadge>\n  \n          {{#unless @isReadOnly}}\n            <UiItemMenu as |content|>\n              <content.menuItem @onClick={{fn this.onDelete item}}>\n                <span class=\"red font-sm font-medium\">\n                  {{t \"global.actions.delete\"}}\n                </span>\n              </content.menuItem>\n            </UiItemMenu>\n          {{/unless}}\n        </controls.right>\n      </list.item>\n    </UiList>\n  {{/if}}\n  \n  {{#if this.siteLinkExtensions.length}}\n    <UiList\n      @title={{t \"searchAdCampaigns.extensions.lists.siteLinks\"}}\n      @items={{this.siteLinkExtensions}}\n      @hasMobileSpacing={{true}} as |list item|\n    >\n      <list.item\n        @onClick={{fn this.onClick item}}\n        @description={{t \"searchAdCampaigns.extensions.types.site_link\"}}\n        @state=\"success\" as |controls|\n      >\n        <controls.popover as |pop|>\n          <pop.trigger />\n          <pop.content>\n            {{get (array-find item.language this.meta.availableLanguages) \"label\"}}\n          </pop.content>\n        </controls.popover>\n  \n        <controls.title>\n          <span class=\"ellipsis\">\n            {{item.name}}\n          </span>\n        </controls.title>\n  \n        <controls.right>\n          <UiBadge @state=\"warning\">\n            Beta\n          </UiBadge>\n  \n          {{#unless @isReadOnly}}\n            <UiItemMenu as |content|>\n              <content.menuItem @onClick={{fn this.onDelete item}}>\n                <span class=\"red font-sm font-medium\">\n                  {{t \"global.actions.delete\"}}\n                </span>\n              </content.menuItem>\n            </UiItemMenu>\n          {{/unless}}\n        </controls.right>\n      </list.item>\n    </UiList>\n  {{/if}}\n  */\n  {\n    \"id\": \"XM/t/4h0\",\n    \"block\": \"[[[41,[30,0,[\\\"additionalInformationExtensions\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@title\\\",\\\"@classNames\\\",\\\"@items\\\",\\\"@hasMobileSpacing\\\"],[[28,[37,2],[\\\"searchAdCampaigns.extensions.lists.additionalInformation\\\"],null],\\\"pb2\\\",[30,0,[\\\"additionalInformationExtensions\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"item\\\"]],null,[[\\\"@onClick\\\",\\\"@description\\\",\\\"@state\\\"],[[28,[37,3],[[30,0,[\\\"onClick\\\"]],[30,2]],null],[28,[37,2],[\\\"searchAdCampaigns.extensions.types.additional_information\\\"],null],\\\"success\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,3,[\\\"popover\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"trigger\\\"]],null,null,null],[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[[28,[37,5],[[30,2,[\\\"language\\\"]],[30,0,[\\\"meta\\\",\\\"availableLanguages\\\"]]],null],\\\"label\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[4]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[30,3,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[30,3,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@state\\\"],[\\\"warning\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          Beta\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,5]],[[[1,\\\"          \\\"],[8,[39,8],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,6,[\\\"menuItem\\\"]],null,[[\\\"@onClick\\\"],[[28,[37,3],[[30,0,[\\\"onDelete\\\"]],[30,2]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"red font-sm font-medium\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,2],[\\\"global.actions.delete\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[3]]]]],[1,\\\"\\\\n  \\\"]],[1,2]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"siteLinkExtensions\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@title\\\",\\\"@items\\\",\\\"@hasMobileSpacing\\\"],[[28,[37,2],[\\\"searchAdCampaigns.extensions.lists.siteLinks\\\"],null],[30,0,[\\\"siteLinkExtensions\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,7,[\\\"item\\\"]],null,[[\\\"@onClick\\\",\\\"@description\\\",\\\"@state\\\"],[[28,[37,3],[[30,0,[\\\"onClick\\\"]],[30,8]],null],[28,[37,2],[\\\"searchAdCampaigns.extensions.types.site_link\\\"],null],\\\"success\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,9,[\\\"popover\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,10,[\\\"trigger\\\"]],null,null,null],[1,\\\"\\\\n        \\\"],[8,[30,10,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[[28,[37,5],[[30,8,[\\\"language\\\"]],[30,0,[\\\"meta\\\",\\\"availableLanguages\\\"]]],null],\\\"label\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[10]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[30,9,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,8,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[30,9,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@state\\\"],[\\\"warning\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          Beta\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,5]],[[[1,\\\"          \\\"],[8,[39,8],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,11,[\\\"menuItem\\\"]],null,[[\\\"@onClick\\\"],[[28,[37,3],[[30,0,[\\\"onDelete\\\"]],[30,8]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"red font-sm font-medium\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,2],[\\\"global.actions.delete\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[11]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[9]]]]],[1,\\\"\\\\n  \\\"]],[7,8]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"pop\\\",\\\"@isReadOnly\\\",\\\"content\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"pop\\\",\\\"content\\\"],false,[\\\"if\\\",\\\"ui-list\\\",\\\"t\\\",\\\"fn\\\",\\\"get\\\",\\\"array-find\\\",\\\"ui-badge\\\",\\\"unless\\\",\\\"ui-item-menu\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/search-ad/extensions/list.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Splits the extensions into sub lists\n   *\n   * @class AmcCampaignSearchAdExtensionsList\n   */\n  let AmcCampaignSearchAdExtensionsListComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.array | _propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignSearchAdExtensionsListComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor, this);\n      /**\n       * the list items\n       *\n       * @argument items\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"items\", _descriptor2, this);\n      /**\n       * The meta information\n       *\n       * @argument meta\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"meta\", _descriptor3, this);\n      /**\n       * whether the component is read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor4, this);\n      _initializerDefineProperty(this, \"onDelete\", _descriptor5, this);\n      _initializerDefineProperty(this, \"onClick\", _descriptor6, this);\n    }\n    get siteLinkExtensions() {\n      return this.items.filter(item => item.type === 'Google::SearchAds::Extension::SiteLink');\n    }\n    get additionalInformationExtensions() {\n      return this.items.filter(item => item.type === 'Google::SearchAds::Extension::AdditionalInformation');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"items\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"onDelete\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignSearchAdExtensionsListComponent);\n});","define(\"additive-mc/components/amc-campaign/search-ad/pending-updates-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object/computed\", \"ember-arg-types\", \"prop-types\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash.clonedeep\"], function (_exports, _component, _templateFactory, _component2, _computed, _emberArgTypes, _propTypes, _object, _tracking, _service, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{t \"searchAdCampaigns.pendingUpdatesDialog.title\"}}\n    @onClose={{this.close}}\n    @size=\"lg\"\n    @theme=\"grey\" as |m|\n  >\n    <m.header />\n    <m.content as |c|>\n      <c.body class=\"pb3\">\n        <AmcCampaign::SearchAd::PendingUpdatesDialog::List\n          @intlBaseKey={{\"searchAdCampaigns.pendingUpdatesDialog.ads\"}}\n          @addedItems={{this.addedAds}}\n          @removedItems={{this.removedAds}}\n          @updatedItems={{this.updatedAds}}\n          @selectedItems={{this.selectedAdIds}}\n          @onChange={{this.selectAd}}\n          @selectAll={{this.selectAllAds}}\n        />\n  \n        <AmcCampaign::SearchAd::PendingUpdatesDialog::List\n          @intlBaseKey={{\"searchAdCampaigns.pendingUpdatesDialog.extensions\"}}\n          @addedItems={{this.addedExtensions}}\n          @removedItems={{this.removedExtensions}}\n          @updatedItems={{this.updatedExtensions}}\n          @selectedItems={{this.selectedExtensionIds}}\n          @onChange={{this.selectExtension}}\n          @selectAll={{this.selectAllExtensions}}\n        />\n  \n        <AmcCampaign::SearchAd::PendingUpdatesDialog::List\n          @intlBaseKey={{\"searchAdCampaigns.pendingUpdatesDialog.targetGroups\"}}\n          @addedItems={{this.addedTargetGroups}}\n          @removedItems={{this.removedTargetGroups}}\n          @updatedItems={{this.updatedTargetGroups}}\n          @selectedItems={{this.selectedTargetGroupIds}}\n          @onChange={{this.selectTargetGroup}}\n          @selectAll={{this.selectAllTargetGroups}}\n        />\n      </c.body>\n    </m.content>\n    <m.footer>\n      <UiButton\n        @isSecondary={{true}}\n        @onClick={{this.update}}\n        @isPromise={{true}}\n        @label={{t \"global.actions.update\"}}\n      />\n    </m.footer>\n  </UiModal>\n  \n  <UiDiscardChanges\n    @isOpen={{this.isDiscardChangesDialog}}\n    @onDiscard={{this.confirmDiscard}}\n    @onClose={{fn (mut this.isDiscardChangesDialog)}}\n  />\n  */\n  {\n    \"id\": \"O9hLY1wX\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@onClose\\\",\\\"@size\\\",\\\"@theme\\\"],[[28,[37,1],[\\\"searchAdCampaigns.pendingUpdatesDialog.title\\\"],null],[30,0,[\\\"close\\\"]],\\\"lg\\\",\\\"grey\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],[[24,0,\\\"pb3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@intlBaseKey\\\",\\\"@addedItems\\\",\\\"@removedItems\\\",\\\"@updatedItems\\\",\\\"@selectedItems\\\",\\\"@onChange\\\",\\\"@selectAll\\\"],[\\\"searchAdCampaigns.pendingUpdatesDialog.ads\\\",[30,0,[\\\"addedAds\\\"]],[30,0,[\\\"removedAds\\\"]],[30,0,[\\\"updatedAds\\\"]],[30,0,[\\\"selectedAdIds\\\"]],[30,0,[\\\"selectAd\\\"]],[30,0,[\\\"selectAllAds\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,2],null,[[\\\"@intlBaseKey\\\",\\\"@addedItems\\\",\\\"@removedItems\\\",\\\"@updatedItems\\\",\\\"@selectedItems\\\",\\\"@onChange\\\",\\\"@selectAll\\\"],[\\\"searchAdCampaigns.pendingUpdatesDialog.extensions\\\",[30,0,[\\\"addedExtensions\\\"]],[30,0,[\\\"removedExtensions\\\"]],[30,0,[\\\"updatedExtensions\\\"]],[30,0,[\\\"selectedExtensionIds\\\"]],[30,0,[\\\"selectExtension\\\"]],[30,0,[\\\"selectAllExtensions\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,2],null,[[\\\"@intlBaseKey\\\",\\\"@addedItems\\\",\\\"@removedItems\\\",\\\"@updatedItems\\\",\\\"@selectedItems\\\",\\\"@onChange\\\",\\\"@selectAll\\\"],[\\\"searchAdCampaigns.pendingUpdatesDialog.targetGroups\\\",[30,0,[\\\"addedTargetGroups\\\"]],[30,0,[\\\"removedTargetGroups\\\"]],[30,0,[\\\"updatedTargetGroups\\\"]],[30,0,[\\\"selectedTargetGroupIds\\\"]],[30,0,[\\\"selectTargetGroup\\\"]],[30,0,[\\\"selectAllTargetGroups\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@isSecondary\\\",\\\"@onClick\\\",\\\"@isPromise\\\",\\\"@label\\\"],[true,[30,0,[\\\"update\\\"]],true,[28,[37,1],[\\\"global.actions.update\\\"],null]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,4],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\",\\\"@onClose\\\"],[[30,0,[\\\"isDiscardChangesDialog\\\"]],[30,0,[\\\"confirmDiscard\\\"]],[28,[37,5],[[28,[37,6],[[30,0,[\\\"isDiscardChangesDialog\\\"]]],null]],null]]],null]],[\\\"m\\\",\\\"c\\\"],false,[\\\"ui-modal\\\",\\\"t\\\",\\\"amc-campaign/search-ad/pending-updates-dialog/list\\\",\\\"ui-button\\\",\\\"ui-discard-changes\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/search-ad/pending-updates-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignSearchAdPendingUpdatesDialogComponent = _exports.default = (_dec = (0, _computed.alias)('uiAppSettings.languages.defaultLanguage'), _dec2 = (0, _computed.filterBy)('formattedUpdates.pendingExtensionUpdates', 'type', 'add'), _dec3 = (0, _computed.filterBy)('formattedUpdates.pendingExtensionUpdates', 'type', 'remove'), _dec4 = (0, _computed.filterBy)('formattedUpdates.pendingExtensionUpdates', 'type', 'update'), _dec5 = (0, _computed.filterBy)('formattedUpdates.pendingAdTemplateUpdates', 'type', 'add'), _dec6 = (0, _computed.filterBy)('formattedUpdates.pendingAdTemplateUpdates', 'type', 'remove'), _dec7 = (0, _computed.filterBy)('formattedUpdates.pendingAdTemplateUpdates', 'type', 'update'), _dec8 = (0, _computed.filterBy)('formattedUpdates.pendingTargetGroupUpdates', 'type', 'add'), _dec9 = (0, _computed.filterBy)('formattedUpdates.pendingTargetGroupUpdates', 'type', 'remove'), _dec10 = (0, _computed.filterBy)('formattedUpdates.pendingTargetGroupUpdates', 'type', 'update'), _dec11 = (0, _emberArgTypes.arg)(_propTypes.object), _dec12 = (0, _emberArgTypes.arg)(_propTypes.object), _dec13 = (0, _emberArgTypes.arg)(_propTypes.func), _dec14 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignSearchAdPendingUpdatesDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"defaultLanguage\", _descriptor7, this);\n      _initializerDefineProperty(this, \"addedExtensions\", _descriptor8, this);\n      _initializerDefineProperty(this, \"removedExtensions\", _descriptor9, this);\n      _initializerDefineProperty(this, \"updatedExtensions\", _descriptor10, this);\n      _initializerDefineProperty(this, \"addedAds\", _descriptor11, this);\n      _initializerDefineProperty(this, \"removedAds\", _descriptor12, this);\n      _initializerDefineProperty(this, \"updatedAds\", _descriptor13, this);\n      _initializerDefineProperty(this, \"addedTargetGroups\", _descriptor14, this);\n      _initializerDefineProperty(this, \"removedTargetGroups\", _descriptor15, this);\n      _initializerDefineProperty(this, \"updatedTargetGroups\", _descriptor16, this);\n      /**\n       * the model\n       *\n       * @property model\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor17, this);\n      /**\n       * the pending updates\n       * @property pendingUpdates\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"pendingUpdates\", _descriptor18, this);\n      /**\n       * the formatted pending updates\n       * @property formattedUpdates\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"formattedUpdates\", _descriptor19, this);\n      /**\n       * whether the discard changes dialog is open\n       * @property isDiscardChangesDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChangesDialog\", _descriptor20, this);\n      /**\n       * ids of selected ads\n       * @property selectedAdIds\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"selectedAdIds\", _descriptor21, this);\n      /**\n       * ids of selected extensions\n       * @property selectedExtensionIds\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"selectedExtensionIds\", _descriptor22, this);\n      /**\n       * ids of selected target-groups\n       * @property selectedTargetGroupIds\n       * @type {Array}\n       */\n      _initializerDefineProperty(this, \"selectedTargetGroupIds\", _descriptor23, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor24, this);\n      /**\n       * callback function for successful update\n       *\n       * @argument onUpdate\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onUpdate\", _descriptor25, this);\n      this.formattedUpdates = (0, _lodash.default)(this.pendingUpdates);\n      Object.keys(this.formattedUpdates).forEach(key => {\n        this.formatData(this.formattedUpdates[key]);\n      });\n    }\n    formatData(items) {\n      items.forEach(item => {\n        (item === null || item === void 0 ? void 0 : item.changes) && Object.entries(item === null || item === void 0 ? void 0 : item.changes).forEach(_ref2 => {\n          let [key, change] = _ref2;\n          if (key === 'headlines' || key === 'descriptions') {\n            let textOld = [];\n            let textNew = [];\n            change.new.forEach(newValue => {\n              textNew.push(newValue.text);\n            });\n            change.old.forEach(oldValue => {\n              textOld.push(oldValue.text);\n            });\n            change.old = textOld;\n            change.new = textNew;\n          } else if (key === 'locations') {\n            let oldLocations = [];\n            let newLocations = [];\n            change.new.forEach(newLocation => {\n              (newLocation === null || newLocation === void 0 ? void 0 : newLocation.label) && newLocations.push(newLocation.label);\n            });\n            change.old.forEach(oldLocation => {\n              (oldLocation === null || oldLocation === void 0 ? void 0 : oldLocation.label) && oldLocations.push(oldLocation.label);\n            });\n            change.old = oldLocations;\n            change.new = newLocations;\n          } else if (key === 'languages') {\n            let oldLanguages = [];\n            let newLanguages = [];\n            change.new.forEach(language => {\n              newLanguages.push(this.intl.t(`global.languages.${language}`));\n            });\n            change.old.forEach(language => {\n              oldLanguages.push(this.intl.t(`global.languages.${language}`));\n            });\n            change.new = newLanguages;\n            change.old = oldLanguages;\n          } else if (typeof change.old === 'string' && typeof change.new === 'string') {\n            if (key === 'language') {\n              change.old = this.intl.t(`global.languages.${change.old}`);\n              change.new = this.intl.t(`global.languages.${change.new}`);\n            }\n            change.old = [change.old];\n            change.new = [change.new];\n          }\n          change.old = change.old.length ? change.old.join(', ') : this.intl.t('searchAdCampaigns.pendingUpdatesDialog.noSelection');\n          change.new = change.new.length ? change.new.join(', ') : this.intl.t('searchAdCampaigns.pendingUpdatesDialog.noSelection');\n        });\n      });\n      return items;\n    }\n    selectAd(adId, checked) {\n      let selectedAdIds = this.selectedAdIds;\n      if (checked) {\n        selectedAdIds.push(adId);\n      } else {\n        selectedAdIds = selectedAdIds.filter(id => id !== adId);\n      }\n      this.selectedAdIds = selectedAdIds;\n    }\n    selectAllAds(checked) {\n      if (!checked) {\n        this.selectedAdIds = [];\n        return;\n      }\n      const items = [...this.addedAds, ...this.removedAds, ...this.updatedAds];\n      const selectedAdIds = items.map(item => item.id);\n      this.selectedAdIds = selectedAdIds;\n    }\n    selectExtension(extensionId, checked) {\n      let selectedExtensionIds = this.selectedExtensionIds;\n      if (checked) {\n        selectedExtensionIds.push(extensionId);\n      } else {\n        selectedExtensionIds = selectedExtensionIds.filter(id => id !== extensionId);\n      }\n      this.selectedExtensionIds = selectedExtensionIds;\n    }\n    selectAllExtensions(checked) {\n      if (!checked) {\n        this.selectedExtensionIds = [];\n        return;\n      }\n      const items = [...this.addedExtensions, ...this.removedExtensions, ...this.updatedExtensions];\n      const selectedExtensionIds = items.map(item => item.id);\n      this.selectedExtensionIds = selectedExtensionIds;\n    }\n    selectTargetGroup(targetGroupId, checked) {\n      let selectedTargetGroupIds = this.selectedTargetGroupIds;\n      if (checked) {\n        selectedTargetGroupIds.push(targetGroupId);\n      } else {\n        selectedTargetGroupIds = selectedTargetGroupIds.filter(id => id !== targetGroupId);\n      }\n      this.selectedTargetGroupIds = selectedTargetGroupIds;\n    }\n    selectAllTargetGroups(checked) {\n      if (!checked) {\n        this.selectedTargetGroupIds = [];\n        return;\n      }\n      const items = [...this.addedTargetGroups, ...this.removedTargetGroups, ...this.updatedTargetGroups];\n      const selectedTargetGroupIds = items.map(item => item.id);\n      this.selectedTargetGroupIds = selectedTargetGroupIds;\n    }\n    async update() {\n      try {\n        const {\n          pendingAdTemplateUpdates,\n          pendingExtensionUpdates,\n          pendingTargetGroupUpdates\n        } = this.formattedUpdates;\n\n        // Get selected ads by id\n        const selectedAds = this.selectedAdIds.map(adId => {\n          return pendingAdTemplateUpdates.find(ad => ad.id == adId);\n        });\n\n        // Get selected target-groups by id\n        const selectedTargetGroups = this.selectedTargetGroupIds.map(targetGroupId => {\n          return pendingTargetGroupUpdates.find(targetGroup => targetGroup.id == targetGroupId);\n        });\n\n        // Get selected extensions by id\n        const selectedExtensions = this.selectedExtensionIds.map(extensionId => {\n          return pendingExtensionUpdates.find(extension => extension.id == extensionId);\n        });\n        const pendingUpdates = {\n          pendingAdTemplateUpdates: selectedAds,\n          pendingExtensionUpdates: selectedExtensions,\n          pendingTargetGroupUpdates: selectedTargetGroups\n        };\n        const adapter = this.store.adapterFor('search-ad-campaign');\n        const url = adapter.urlForSingle(this.model.searchAdCampaign.id, 'search-ad-campaign');\n        const response = await this.authenticatedFetch.fetch(`${url}/pending-updates`, {\n          headers: {\n            'Accept-Language': this.defaultLanguage || 'de'\n          },\n          method: 'PUT',\n          body: JSON.stringify(pendingUpdates)\n        });\n        if (!response || !response.ok) {\n          throw new Error(`[SEARCH-AD-CAMPAIGN-UPDATE] ${response}`);\n        }\n        this.onUpdate();\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      } catch (e) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }\n    close() {\n      if (this.selectedAdIds.length === 0 && this.selectedExtensionIds.length === 0 && this.selectedTargetGroupIds.length === 0) {\n        this.onClose();\n      }\n      this.isDiscardChangesDialog = true;\n    }\n    confirmDiscard() {\n      this.isDiscardChangesDialog = false;\n      this.onClose();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"defaultLanguage\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"addedExtensions\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"removedExtensions\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"updatedExtensions\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"addedAds\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"removedAds\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"updatedAds\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"addedTargetGroups\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"removedTargetGroups\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"updatedTargetGroups\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"pendingUpdates\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"formattedUpdates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChangesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"selectedAdIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"selectedExtensionIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"selectedTargetGroupIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"onUpdate\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"formatData\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"formatData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectAd\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectAd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectAllAds\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectAllAds\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectExtension\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectExtension\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectAllExtensions\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectAllExtensions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectTargetGroup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectTargetGroup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectAllTargetGroups\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectAllTargetGroups\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"update\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"update\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"confirmDiscard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"confirmDiscard\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignSearchAdPendingUpdatesDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/search-ad/pending-updates-dialog/item\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"prop-types\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"ember-animated\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _propTypes, _object, _tracking, _service, _emberAnimated) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"flex items-start bb b--black-10 w-100 pv2\">\n    <div class=\"flex flex-column flex-grow-1\">\n      <div class=\"flex items-center justify-between\">\n        <div class=\"flex font-sm font-medium primary\">\n          {{t (concat this.intlBaseKey \".updated\") name=this.item.name}}\n          <div class=\"flex items-center secondary font-xs ml2\">\n            {{t \"searchAdCampaigns.pendingUpdatesDialog.byUser\" user=this.item.user.name}}\n          </div>\n        </div>\n        <div class=\"flex\">\n          <UiCheckbox\n            @isPlain={{true}}\n            @value={{ui-array-includes this.item this.selectedItems}}\n            @onChange={{fn this.onChange this.item.id}}\n          />\n          <UiActionButton\n            @class=\"ml2 transition {{if this.isToggled 'button-toggled'}}\"\n            @icon=\"drop-down\"\n            @onClick={{this.toggle}}\n          />\n        </div>\n      </div>\n  \n      <AnimatedContainer class=\"ohidden\">\n        {{#animated-if this.isToggled use=this._animatedTransition}}\n          {{#each-in this.item.changes as |key change|}}\n            <div class=\"mt1\">\n              <div class=\"font-sm font-medium secondary\">\n                {{t (concat this.intlBaseKey \".properties.\" key)}}\n              </div>\n              <div class=\"flex items-center font-sm font-medium\">\n                <div class=\"flex flex-column mr1 self-start red\">\n                  <div>\n                    {{change.old}}\n                  </div>\n                </div>\n                {{svg-jar \"arrow-right\" width=\"16\" height=\"16\" class=\"secondary flex-shrink-0\"}}\n                <div class=\"flex flex-column ml1 self-start green\">\n                  <div>\n                    {{change.new}}\n                  </div>\n                </div>\n              </div>\n            </div>\n          {{/each-in}}\n        {{/animated-if}}\n      </AnimatedContainer>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"PMcX//3Y\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex items-start bb b--black-10 w-100 pv2\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex flex-column flex-grow-1\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex items-center justify-between\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex font-sm font-medium primary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,0],[[28,[37,1],[[30,0,[\\\"intlBaseKey\\\"]],\\\".updated\\\"],null]],[[\\\"name\\\"],[[30,0,[\\\"item\\\",\\\"name\\\"]]]]]],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex items-center secondary font-xs ml2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,0],[\\\"searchAdCampaigns.pendingUpdatesDialog.byUser\\\"],[[\\\"user\\\"],[[30,0,[\\\"item\\\",\\\"user\\\",\\\"name\\\"]]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,2],null,[[\\\"@isPlain\\\",\\\"@value\\\",\\\"@onChange\\\"],[true,[28,[37,3],[[30,0,[\\\"item\\\"]],[30,0,[\\\"selectedItems\\\"]]],null],[28,[37,4],[[30,0,[\\\"onChange\\\"]],[30,0,[\\\"item\\\",\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[29,[\\\"ml2 transition \\\",[52,[30,0,[\\\"isToggled\\\"]],\\\"button-toggled\\\"]]],\\\"drop-down\\\",[30,0,[\\\"toggle\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,7],[[24,0,\\\"ohidden\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[6,[39,8],[[30,0,[\\\"isToggled\\\"]]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[42,[28,[37,10],[[30,0,[\\\"item\\\",\\\"changes\\\"]]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,0],[[28,[37,1],[[30,0,[\\\"intlBaseKey\\\"]],\\\".properties.\\\",[30,2]],null]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex items-center font-sm font-medium\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"flex flex-column mr1 self-start red\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[12],[1,\\\"\\\\n                  \\\"],[1,[30,1,[\\\"old\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,11],[\\\"arrow-right\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"16\\\",\\\"16\\\",\\\"secondary flex-shrink-0\\\"]]]],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"flex flex-column ml1 self-start green\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[12],[1,\\\"\\\\n                  \\\"],[1,[30,1,[\\\"new\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null]],[]]]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"change\\\",\\\"key\\\"],false,[\\\"t\\\",\\\"concat\\\",\\\"ui-checkbox\\\",\\\"ui-array-includes\\\",\\\"fn\\\",\\\"ui-action-button\\\",\\\"if\\\",\\\"animated-container\\\",\\\"animated-if\\\",\\\"each\\\",\\\"-each-in\\\",\\\"svg-jar\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/search-ad/pending-updates-dialog/item.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignSearchAdPendingUpdatesDialogItemComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.array), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignSearchAdPendingUpdatesDialogItemComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"item\", _descriptor2, this);\n      _initializerDefineProperty(this, \"selectedItems\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intlBaseKey\", _descriptor4, this);\n      _initializerDefineProperty(this, \"isToggled\", _descriptor5, this);\n      _defineProperty(this, \"_animatedTransition\", _emberAnimated.fade);\n      _initializerDefineProperty(this, \"onChange\", _descriptor6, this);\n    }\n    toggle() {\n      this.isToggled = !this.isToggled;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"selectedItems\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intlBaseKey\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isToggled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggle\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignSearchAdPendingUpdatesDialogItemComponent);\n});","define(\"additive-mc/components/amc-campaign/search-ad/pending-updates-dialog/list\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"prop-types\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _propTypes, _service, _object, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless this.isEmpty}}\n    <div class=\"pb2\">\n      <div class=\"font-md font-medium primary pt2\">\n        {{t (concat this.intlBaseKey \".title\")}}\n      </div>\n      <div class=\"flex bb b--black-10\">\n        <div class=\"flex-grow-1 font-sm font-medium primary pt2 pb3\">\n          {{t \"searchAdCampaigns.pendingUpdatesDialog.acceptAllChanges\"}}\n        </div>\n        <UiCheckbox\n          @isPlain={{true}}\n          @value={{this.isAcceptAll}}\n          @onChange={{this.accepptAllChanges}}\n        />\n      </div>\n  \n      {{#if this.addedItems.length}}\n        {{#each this.addedItems as |item|}}\n          <div class=\"flex items-center bb b--black-10 w-100 pv2\">\n            <div class=\"flex items-center font-sm font-medium primary flex-grow-1\">\n              {{t (concat this.intlBaseKey \".added\") name=item.name}}\n              <div class=\"secondary font-xs ml2\">\n                {{t \"searchAdCampaigns.pendingUpdatesDialog.byUser\" user=item.user.name}}\n              </div>\n            </div>\n            <UiCheckbox\n              @isPlain={{true}}\n              @value={{ui-array-includes item this.selectedItems}}\n              @onChange={{fn this.onChange item.id}}\n            />\n          </div>\n        {{/each}}\n      {{/if}}\n  \n      {{#if this.updatedItems.length}}\n        {{#each this.updatedItems as |item|}}\n          <AmcCampaign::SearchAd::PendingUpdatesDialog::Item\n            @item={{item}}\n            @selectedItems={{this.selectedItems}}\n            @onChange={{this.onChange}}\n            @intlBaseKey={{this.intlBaseKey}}\n          />\n        {{/each}}\n      {{/if}}\n  \n      {{#if this.removedItems.length}}\n        {{#each this.removedItems as |item|}}\n          <div class=\"flex items-center bb b--black-10 w-100 pv2\">\n            <div class=\"flex items-center font-sm font-medium primary flex-grow-1\">\n              {{t (concat this.intlBaseKey \".removed\") name=item.name}}\n              <div class=\"secondary font-xs ml2\">\n                {{t \"searchAdCampaigns.pendingUpdatesDialog.byUser\" user=item.user.name}}\n              </div>\n            </div>\n            <UiCheckbox\n              @isPlain={{true}}\n              @value={{ui-array-includes item this.selectedItems}}\n              @onChange={{fn this.onChange item.id}}\n            />\n          </div>\n        {{/each}}\n      {{/if}}\n    </div>\n  {{/unless}}\n  */\n  {\n    \"id\": \"Lu2G1SoS\",\n    \"block\": \"[[[41,[51,[30,0,[\\\"isEmpty\\\"]]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"pb2\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-md font-medium primary pt2\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,1],[[28,[37,2],[[30,0,[\\\"intlBaseKey\\\"]],\\\".title\\\"],null]],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex bb b--black-10\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex-grow-1 font-sm font-medium primary pt2 pb3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.pendingUpdatesDialog.acceptAllChanges\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@isPlain\\\",\\\"@value\\\",\\\"@onChange\\\"],[true,[30,0,[\\\"isAcceptAll\\\"]],[30,0,[\\\"accepptAllChanges\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"addedItems\\\",\\\"length\\\"]],[[[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"addedItems\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex items-center bb b--black-10 w-100 pv2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex items-center font-sm font-medium primary flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[[28,[37,2],[[30,0,[\\\"intlBaseKey\\\"]],\\\".added\\\"],null]],[[\\\"name\\\"],[[30,1,[\\\"name\\\"]]]]]],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"secondary font-xs ml2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.pendingUpdatesDialog.byUser\\\"],[[\\\"user\\\"],[[30,1,[\\\"user\\\",\\\"name\\\"]]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,3],null,[[\\\"@isPlain\\\",\\\"@value\\\",\\\"@onChange\\\"],[true,[28,[37,7],[[30,1],[30,0,[\\\"selectedItems\\\"]]],null],[28,[37,8],[[30,0,[\\\"onChange\\\"]],[30,1,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updatedItems\\\",\\\"length\\\"]],[[[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"updatedItems\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,9],null,[[\\\"@item\\\",\\\"@selectedItems\\\",\\\"@onChange\\\",\\\"@intlBaseKey\\\"],[[30,2],[30,0,[\\\"selectedItems\\\"]],[30,0,[\\\"onChange\\\"]],[30,0,[\\\"intlBaseKey\\\"]]]],null],[1,\\\"\\\\n\\\"]],[2]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"removedItems\\\",\\\"length\\\"]],[[[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"removedItems\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex items-center bb b--black-10 w-100 pv2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex items-center font-sm font-medium primary flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[[28,[37,2],[[30,0,[\\\"intlBaseKey\\\"]],\\\".removed\\\"],null]],[[\\\"name\\\"],[[30,3,[\\\"name\\\"]]]]]],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"secondary font-xs ml2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.pendingUpdatesDialog.byUser\\\"],[[\\\"user\\\"],[[30,3,[\\\"user\\\",\\\"name\\\"]]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,3],null,[[\\\"@isPlain\\\",\\\"@value\\\",\\\"@onChange\\\"],[true,[28,[37,7],[[30,3],[30,0,[\\\"selectedItems\\\"]]],null],[28,[37,8],[[30,0,[\\\"onChange\\\"]],[30,3,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"item\\\",\\\"item\\\",\\\"item\\\"],false,[\\\"unless\\\",\\\"t\\\",\\\"concat\\\",\\\"ui-checkbox\\\",\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ui-array-includes\\\",\\\"fn\\\",\\\"amc-campaign/search-ad/pending-updates-dialog/item\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/search-ad/pending-updates-dialog/list.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignSearchAdPendingUpdatesDialogListComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.array), _dec2 = (0, _emberArgTypes.arg)(_propTypes.array), _dec3 = (0, _emberArgTypes.arg)(_propTypes.array), _dec4 = (0, _emberArgTypes.arg)(_propTypes.string), _dec5 = (0, _emberArgTypes.arg)(_propTypes.array), _dec6 = (0, _emberArgTypes.arg)(_propTypes.string), _dec7 = (0, _emberArgTypes.arg)(_propTypes.func), _dec8 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignSearchAdPendingUpdatesDialogListComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"addedItems\", _descriptor2, this);\n      _initializerDefineProperty(this, \"removedItems\", _descriptor3, this);\n      _initializerDefineProperty(this, \"updatedItems\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intlBaseKey\", _descriptor5, this);\n      _initializerDefineProperty(this, \"selectedItems\", _descriptor6, this);\n      _initializerDefineProperty(this, \"title\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAcceptAll\", _descriptor8, this);\n      _initializerDefineProperty(this, \"onChange\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectAll\", _descriptor10, this);\n    }\n    get isEmpty() {\n      return this.addedItems.length === 0 && this.removedItems.length === 0 && this.updatedItems.length === 0;\n    }\n    accepptAllChanges(checked) {\n      this.isAcceptAll = checked;\n      this.selectAll(checked);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"addedItems\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"removedItems\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"updatedItems\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intlBaseKey\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedItems\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isAcceptAll\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"selectAll\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"accepptAllChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"accepptAllChanges\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignSearchAdPendingUpdatesDialogListComponent);\n});","define(\"additive-mc/components/amc-campaign/search-ad/target-groups/create-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-changeset-validations/validators\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberChangeset, _emberChangesetValidations, _validators, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{t \"searchAdCampaigns.targetGroups.createDialog.title\"}}\n    @onClose={{this.close}} as |m|\n  >\n    <m.header />\n    <m.content as |c|>\n      <c.body {{did-insert this.didInsert}}>\n        {{#if this.isLoading}}\n          <span class=\"pt3\"></span>\n          <UiSkeleton @itemsPerRow={{1}} @items={{1}} @cardHeight={{44}} @gap={{32}} />\n          <UiSkeleton @itemsPerRow={{1}} @items={{1}} @cardHeight={{44}} @gap={{32}} />\n          <UiSkeleton @itemsPerRow={{1}} @items={{1}} @cardHeight={{44}} @gap={{32}} />\n        {{else}}\n          <UiInput\n            @label={{t \"searchAdCampaigns.targetGroups.createDialog.properties.name\"}}\n            @value={{this.changeset.name}}\n            @errorMessage={{this.changeset.error.name.validation.firstObject}}\n            @isTouched={{this.isTouched}}\n            @isReadOnly={{@isReadOnly}}\n          />\n  \n          <UiSelect\n            @label={{t \"searchAdCampaigns.targetGroups.createDialog.properties.language\"}}\n            @isMultiSelect={{true}}\n            @objectKey=\"label\"\n            @isSearchable={{true}}\n            @useFullTextSearch={{true}}\n            @initialValue={{this.changeset.languages}}\n            @selected={{this.changeset.languages}}\n            @options={{this.meta.availableLanguages}}\n            @errorMessage={{this.changeset.error.languages.validation}}\n            @isTouched={{this.isTouched}}\n            @isReadOnly={{@isReadOnly}}\n            @onChange={{fn this.onMultiSelectChange \"languages\"}} as |optionComponent option|\n          >\n            <optionComponent.item @value={{option}}>\n              {{option.label}}\n            </optionComponent.item>\n          </UiSelect>\n  \n          <UiSelect\n            @label={{t \"searchAdCampaigns.targetGroups.createDialog.properties.location\"}}\n            @isMultiSelect={{true}}\n            @objectKey=\"label\"\n            @isSearchable={{true}}\n            @isCollapsible={{true}}\n            @useFullTextSearch={{true}}\n            @initialValue={{this.changeset.locations}}\n            @selected={{this.changeset.locations}}\n            @options={{this.meta.locations}}\n            @errorMessage={{this.changeset.error.locations.validation}}\n            @isTouched={{this.isTouched}}\n            @isReadOnly={{@isReadOnly}}\n            @onChange={{fn this.onMultiSelectChange \"locations\"}} as |optionComponent option|\n          >\n            <optionComponent.item @value={{option}}>\n              {{option.label}}\n            </optionComponent.item>\n          </UiSelect>\n        {{/if}}\n      </c.body>\n    </m.content>\n    <m.footer>\n      <UiButton\n        @isSecondary={{true}}\n        @onClick={{this.save}}\n        @isDisabled={{@isReadOnly}}\n        @label={{t \"global.actions.save\"}}\n      />\n    </m.footer>\n  </UiModal>\n  \n  <UiDiscardChanges @isOpen={{this.isDiscardChanges}} @onDiscard={{this.discardChanges}} />\n  */\n  {\n    \"id\": \"JR9pCxWD\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"searchAdCampaigns.targetGroups.createDialog.title\\\"],null],[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],[[4,[38,2],[[30,0,[\\\"didInsert\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"pt3\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,1,44,32]],null],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,1,44,32]],null],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,1,44,32]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,5],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"searchAdCampaigns.targetGroups.createDialog.properties.name\\\"],null],[30,0,[\\\"changeset\\\",\\\"name\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"name\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,0,[\\\"isTouched\\\"]],[30,3]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,6],null,[[\\\"@label\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"searchAdCampaigns.targetGroups.createDialog.properties.language\\\"],null],true,\\\"label\\\",true,true,[30,0,[\\\"changeset\\\",\\\"languages\\\"]],[30,0,[\\\"changeset\\\",\\\"languages\\\"]],[30,0,[\\\"meta\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"languages\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,3],[28,[37,7],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"languages\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,4,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,5]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,5,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[4,5]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,6],null,[[\\\"@label\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@isCollapsible\\\",\\\"@useFullTextSearch\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"searchAdCampaigns.targetGroups.createDialog.properties.location\\\"],null],true,\\\"label\\\",true,true,true,[30,0,[\\\"changeset\\\",\\\"locations\\\"]],[30,0,[\\\"changeset\\\",\\\"locations\\\"]],[30,0,[\\\"meta\\\",\\\"locations\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"locations\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,3],[28,[37,7],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"locations\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,6,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,7]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,7,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[6,7]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,8],null,[[\\\"@isSecondary\\\",\\\"@onClick\\\",\\\"@isDisabled\\\",\\\"@label\\\"],[true,[30,0,[\\\"save\\\"]],[30,3],[28,[37,1],[\\\"global.actions.save\\\"],null]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,9],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChanges\\\"]],[30,0,[\\\"discardChanges\\\"]]]],null]],[\\\"m\\\",\\\"c\\\",\\\"@isReadOnly\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"ui-modal\\\",\\\"t\\\",\\\"did-insert\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-input\\\",\\\"ui-select\\\",\\\"fn\\\",\\\"ui-button\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/search-ad/target-groups/create-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignSearchAdTargetGroupsCreateDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.object), _dec5 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec6 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignSearchAdTargetGroupsCreateDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor4, this);\n      /**\n       * the created model\n       *\n       * @argument model\n       * @type {DS.Model}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor5, this);\n      /**\n       * the target-group meta data\n       *\n       * @argument meta\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"meta\", _descriptor6, this);\n      /**\n       * the name of the filter\n       *\n       * @argument filterName\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"filterName\", _descriptor7, this);\n      /**\n       * the adapteroptions to save the model\n       *\n       * @argument adapterOptions\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"adapterOptions\", _descriptor8, this);\n      /**\n       * whether the dialog is loading\n       *\n       *  @argument isLoading\n       * @type {Boolean}\n       *\n       */\n      _initializerDefineProperty(this, \"isLoading\", _descriptor9, this);\n      /**\n       * the changeset for the model\n       *\n       * @property changeset\n       * @type {Changeset}\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor10, this);\n      /**\n       * whether the discard changes dialog is open\n       *\n       * @property isDiscardChanges\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChanges\", _descriptor11, this);\n      /**\n       * whether the form has been touched\n       *\n       * @property isTouched\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor12, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor13, this);\n    }\n    didInsert() {\n      const validation = {\n        name: (0, _validators.validatePresence)({\n          presence: true,\n          message: this.intl.t('errors.required')\n        })\n      };\n      this.changeset = new _emberChangeset.default(this.model, (0, _emberChangesetValidations.default)(validation), validation);\n    }\n    onMultiSelectChange(key, option, checked) {\n      let options = (this.changeset.get(key) || []).slice(0);\n      const checkedValue = option.value;\n      if (checked) {\n        // Only push if not already in\n        if (!options.findBy('value', checkedValue)) {\n          options.pushObject(option);\n        }\n      } else {\n        // Remove unchecked option\n        options = options.filter(_option => _option.value === checkedValue ? false : true);\n      }\n      this.changeset.set(key, options);\n      this.changeset.execute();\n    }\n    close() {\n      if (this.changeset.get('isDirty')) {\n        this.isDiscardChanges = true;\n      } else {\n        if (this.model.isNew) {\n          this.model.destroyRecord();\n        }\n        this.onClose();\n      }\n    }\n    discardChanges() {\n      if (this.model.isNew) {\n        this.model.destroyRecord();\n      }\n      this.isDiscardChanges = false;\n      this.onClose();\n    }\n    async save() {\n      try {\n        const {\n          isNew\n        } = this.model;\n        this.isTouched = true;\n        await this.changeset.validate();\n        if (this.changeset.get('isInvalid')) {\n          return;\n        }\n\n        // Only send selected sub-options to API and remove the parent options\n        let items = this.changeset.get('locations');\n        if (items && items.length > 0) {\n          items = items.filter(item => item.subData.length === 0);\n          this.changeset.set('locations', items);\n        }\n        this.changeset.execute();\n        if (isNew) {\n          const newTargetGroup = await this.changeset.save({\n            adapterOptions: this.adapterOptions\n          });\n          this.uiFilter.addItem(this.filterName, newTargetGroup);\n        } else {\n          await this.changeset.save({\n            adapterOptions: this.adapterOptions\n          });\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        this.onClose();\n      } catch (e) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"filterName\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"adapterOptions\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec5, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onMultiSelectChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onMultiSelectChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignSearchAdTargetGroupsCreateDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/test-email-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/service\", \"ember-concurrency\", \"@ember/object/computed\", \"ember-arg-types\", \"prop-types\", \"ember-changeset\", \"additive-mc/validations/email-campaign\", \"ember-changeset-validations\"], function (_exports, _component, _templateFactory, _environment, _component2, _tracking, _service, _emberConcurrency, _computed, _emberArgTypes, _propTypes, _emberChangeset, _emailCampaign, _emberChangesetValidations) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiTagsInputModal\n    @title={{t \"testEmail.title\"}}\n    @description={{if this.isBulk (t \"testEmail.descriptionBulk\") (t \"testEmail.description\")}}\n    @onClose={{this.onClose}}\n    @showDiscardChangesConfirm={{false}}\n    @changeset={{this.changeset}}\n    @changesetProperty={{\"email\"}}\n    @buttonLabel={{t \"testEmail.send\"}}\n    @onSave={{perform this.bulkSendTestEmail this.changeset.email}} as |modal|\n  >\n    <modal.top>\n      <div class=\"flex flex-column\">\n        <div class=\"mb2\">\n          <UiLangSelect\n            @languages={{this._availableLanguages}}\n            @publishedLanguages={{this._contentLanguages}}\n            @hideLanguageActions={{true}}\n            @selected={{this._currentLanguage}}\n            @onSelect={{fn (mut this._currentLanguage)}}\n          />\n        </div>\n      </div>\n    </modal.top>\n  </UiTagsInputModal>\n  */\n  {\n    \"id\": \"Xcy8XDgz\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@onClose\\\",\\\"@showDiscardChangesConfirm\\\",\\\"@changeset\\\",\\\"@changesetProperty\\\",\\\"@buttonLabel\\\",\\\"@onSave\\\"],[[28,[37,1],[\\\"testEmail.title\\\"],null],[52,[30,0,[\\\"isBulk\\\"]],[28,[37,1],[\\\"testEmail.descriptionBulk\\\"],null],[28,[37,1],[\\\"testEmail.description\\\"],null]],[30,0,[\\\"onClose\\\"]],false,[30,0,[\\\"changeset\\\"]],\\\"email\\\",[28,[37,1],[\\\"testEmail.send\\\"],null],[28,[37,3],[[30,0,[\\\"bulkSendTestEmail\\\"]],[30,0,[\\\"changeset\\\",\\\"email\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"top\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mb2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@languages\\\",\\\"@publishedLanguages\\\",\\\"@hideLanguageActions\\\",\\\"@selected\\\",\\\"@onSelect\\\"],[[30,0,[\\\"_availableLanguages\\\"]],[30,0,[\\\"_contentLanguages\\\"]],true,[30,0,[\\\"_currentLanguage\\\"]],[28,[37,5],[[28,[37,6],[[30,0,[\\\"_currentLanguage\\\"]]],null]],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\"],false,[\\\"ui-tags-input-modal\\\",\\\"t\\\",\\\"if\\\",\\\"perform\\\",\\\"ui-lang-select\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/test-email-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignTestEmailDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec4 = (0, _emberArgTypes.arg)(_propTypes.string), _dec5 = (0, _emberArgTypes.arg)(_propTypes.string), _dec6 = (0, _computed.alias)('uiAppSettings.languages.contentLanguages'), _dec7 = (0, _computed.alias)('currentUser.user'), _dec8 = (0, _emberConcurrency.task)(function* (email) {\n    try {\n      var _this$_user;\n      this.isTouched = true;\n      const {\n        model,\n        changeset\n      } = this;\n      yield changeset.validate();\n      if (!changeset.get('isValid')) return;\n      let url;\n      if (this.isTransaction) {\n        const {\n          baseUrl,\n          transactionId\n        } = this.uiTransactionManager;\n        url = `${baseUrl}/${transactionId}/${model.transactionUrl}/${this.isBulk ? 'test-emails' : 'test-email'}`;\n      } else if (this.isNewStructure) {\n        const baseUrl = `${_environment.default.APP.apiBaseHostV2}/${this.organizationSlug}/${this.campaignType}/${this.campaignId}`;\n        if (model.constructor.modelName === 'email' || model.constructor.modelName === 'trigger-email-campaign-email') {\n          url = `${baseUrl}/email-series/${model.emailSeriesId}/emails/${model.id}/test-email`;\n        } else {\n          url = this.isBulk ? `${baseUrl}/test-emails` : `${baseUrl}/test-email`;\n        }\n      } else {\n        const adapter = this.store.adapterFor(this.campaignType || model.constructor.modelName);\n        const baseUrl = adapter.urlForFindAll(this.campaignType || model.constructor.modelName, {\n          adapterOptions: {\n            campaignId: model.emailSeriesId ? model.campaignId : model.id\n          }\n        });\n        url = model.emailSeriesId ? `${baseUrl}/${model.id}/test-email` : `${baseUrl}/test-email`;\n      }\n      const body = {\n        language: this._currentLanguage,\n        receiver: Array.isArray(email) && email.join(',')\n      };\n      if (this.isTransaction || this.isNewStructure) {\n        delete body.language;\n        delete body.receiver;\n        body.recipients = email;\n      }\n      const options = {\n        method: this.isTransaction || this.isNewStructure ? 'POST' : 'PUT',\n        body: JSON.stringify(body)\n      };\n      if (this.isTransaction || this.isNewStructure) {\n        options.headers = {\n          'Accept-Language': this._currentLanguage\n        };\n      }\n      const response = yield this.authenticatedFetch.fetch(url, options);\n      if (!(response !== null && response !== void 0 && response.ok)) {\n        throw new Error('Response not ok');\n      }\n\n      // saves the email in the localStorage with user ID as key\n      yield localStorage.setItem(`${(_this$_user = this._user) === null || _this$_user === void 0 ? void 0 : _this$_user.id}-email`, email);\n      this.createChangeset();\n      this.onClose();\n      this.uiToast.showToast({\n        type: 'success',\n        title: this.intl.t('toast.success')\n      });\n    } catch (e) {\n      this.uiToast.showToast({\n        type: 'error',\n        title: this.intl.t('toast.unexpectedError'),\n        duration: 2500\n      });\n    }\n  }), _dec9 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignTestEmailDialogComponent extends _component2.default {\n    get _availableLanguages() {\n      var _this$model;\n      return ((_this$model = this.model) === null || _this$model === void 0 ? void 0 : _this$model.availableLanguages) || this._contentLanguages;\n    }\n\n    // TODO: remove this getter and all it's usages when the new structure is the default\n    get isNewStructure() {\n      var _this$model2;\n      if ((_this$model2 = this.model) !== null && _this$model2 !== void 0 && _this$model2.isNewStructure) {\n        return true;\n      }\n      const newStructureTypes = ['pre-stay-campaign', 'convert-ota-to-direct-booker-campaign', 'reactivate-enquirer-without-booking-campaign', 'trigger-campaign', 'reactivate-lost-guest-campaign', 'come-back-campaign', 'come-back-multiple-campaign', 'upselling-for-second-stay-campaign', 'early-booker-benefits-campaign', 'follow-up-on-voucher-campaign', 'birthday-gift-campaign', 'user-based-trigger-campaign', 'user-based-lead-campaign', 'birthday-voucher-from-friends-campaign', 'last-minute-deal-campaign', 'post-stay-campaign', 'birthday-wishes-campaign', 'user-based-trigger-campaign', 'user-based-lead-campaign'];\n      return newStructureTypes.includes(this.campaignType);\n    }\n    get organizationSlug() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id;\n    }\n    constructor() {\n      var _this$model3;\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor2, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor7, this);\n      /**\n       * the email campaign\n       *\n       * @argument model\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor8, this);\n      /**\n       * whether multiple test-emails will be send\n       *\n       * @argument isBulk\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isBulk\", _descriptor9, this);\n      /**\n       * whether its a transaction\n       *\n       * @argument isTransaction\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isTransaction\", _descriptor10, this);\n      /**\n       * the campaign type that can be manually set\n       *\n       * @argument campaignType\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"campaignType\", _descriptor11, this);\n      /**\n       * the campaign id\n       *\n       * @argument campaignId\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"campaignId\", _descriptor12, this);\n      /**\n       * the changeset for the model\n       *\n       * @property changeset\n       * @type {Changeset}\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor13, this);\n      /**\n       * whether the input should be considered as touched\n       *\n       * @property isTouched\n       * @type {Boolean}\n       */\n      _defineProperty(this, \"isTouched\", false);\n      /**\n       * Current selected language\n       *\n       * @property _currentLanguage\n       * @type {String}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_currentLanguage\", _descriptor14, this);\n      _initializerDefineProperty(this, \"_contentLanguages\", _descriptor15, this);\n      _initializerDefineProperty(this, \"_user\", _descriptor16, this);\n      /**\n       * Sends all emails for this campaign as test email to the given email\n       * @function sendTestEmail\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"bulkSendTestEmail\", _descriptor17, this);\n      if ((_this$model3 = this.model) !== null && _this$model3 !== void 0 && _this$model3.language) {\n        this._currentLanguage = this.model.language;\n      }\n      this.createChangeset();\n    }\n    createChangeset() {\n      var _this$_user2;\n      const savedEmail = localStorage.getItem(`${(_this$_user2 = this._user) === null || _this$_user2 === void 0 ? void 0 : _this$_user2.id}-email`);\n      const emailArray = savedEmail === null || savedEmail === void 0 ? void 0 : savedEmail.split(',');\n      const validation = (0, _emailCampaign.testEmailValidation)(this.intl);\n      const changeset = new _emberChangeset.default({\n        email: emailArray || []\n      }, (0, _emberChangesetValidations.default)(validation), validation);\n      this.changeset = changeset;\n    }\n    onClose() {}\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isBulk\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isTransaction\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"campaignType\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"_currentLanguage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 'de';\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"_contentLanguages\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"_user\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"bulkSendTestEmail\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"onClose\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignTestEmailDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/trigger-email-campaign/create-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/object/internals\", \"@ember/service\", \"ember-concurrency\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _tracking, _object, _internals, _service, _emberConcurrency, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isOpen}}\n    <UiModal @onClose={{this._onClose}} @size=\"lg\" as |m|>\n      <m.header />\n  \n      <m.content @class=\"flex flex-grow-1\" {{did-insert this.onDidInsert}} as |c|>\n        <c.body class=\"ph4 {{if (and this.isDetailView this.isCampaignCreatable) 'pb0' 'pb4'}}\">\n          <div class=\"mh3 mb3\">\n            <div class=\"font-lg font-medium primary mb1\">\n              {{@title}}\n            </div>\n            <div class=\"mb3 mt1\">\n              {{@description}}\n            </div>\n  \n            {{#if this.fetchCampaignTypes.isRunning}}\n              <UiSkeleton\n                @itemsPerRow={{3}}\n                @items={{9}}\n                @itemsSmartphone={{6}}\n                @cardHeight={{160}}\n                @gap={{16}}\n              />\n            {{else if this._isError}}\n              <div class=\"flex flex-column w-100 justify-center items-center pt3\">\n                <span class=\"pb2 font-sm secondary\">\n                  {{t \"triggerEmailCampaigns.createDialog.error\"}}\n                </span>\n                <UiButton\n                  @label={{t \"global.actions.retry\"}}\n                  @onClick={{perform this.fetchCampaignTypes}}\n                />\n              </div>\n            {{else}}\n              <Grid @gap=\"16\" @columns=\"1,2,3\">\n                {{#each this._formattedCampaignTypes as |campaignType|}}\n                  <div\n                    role=\"button\"\n                    class=\"flex flex-column justify-between pa2 br1\n                      {{if\n                        (or\n                          campaignType.isDisabled\n                          (and\n                            (not this._isTriggerCampaignAvailable)\n                            (not (eq campaignType.trigger 'lead-trigger-campaign'))\n                          )\n                        )\n                        'ba b--secondary-10'\n                        'bg-secondary--10 cpointer'\n                      }}\n                      {{if\n                        (equal campaignType.trigger this.selectedCampaign.trigger)\n                        'ui-category-card--is-selected'\n                      }}\n                      \"\n                    {{on \"click\" (fn this.onCampaignClick campaignType)}}\n                  >\n                    <div class=\"flex\">\n                      <div class=\"mr1\">\n                        {{svg-jar campaignType.icon width=\"20\" height=\"20\"}}\n                      </div>\n                      <div class=\"flex flex-column\">\n                        <div class=\"primary font-sm font-medium pb05\">\n                          {{campaignType.name}}\n                        </div>\n                        <div class=\"secondary font-sm font-medium pb2\">\n                          {{campaignType.descriptions.summary}}\n                        </div>\n                      </div>\n                    </div>\n  \n                    {{#if\n                      (and\n                        (not this._isTriggerCampaignAvailable)\n                        (not (eq campaignType.trigger \"lead-trigger-campaign\"))\n                      )\n                    }}\n                      <UiIconButton\n                        @icon=\"arrow-up-circle\"\n                        @label={{t \"triggerEmailCampaigns.createDialog.upgradeMessage\"}}\n                        @href=\"https://www.additive.eu/en/marketing-software/additive-vouchers-hotel?utm_source=additive_mc&utm_medium=banner&utm_campaign=upgrade\"\n                        @target=\"_blank\"\n                      />\n                    {{else}}\n                      <div class=\"flex justify-end w-100\">\n                        {{svg-jar \"ascending-arrow\" class=\"secondary\"}}\n                      </div>\n                    {{/if}}\n                  </div>\n                {{/each}}\n              </Grid>\n            {{/if}}\n          </div>\n        </c.body>\n      </m.content>\n  \n      <m.footer>\n        <UiButton\n          @icon=\"plus\"\n          @isDisabled={{not this.selectedCampaign}}\n          @label={{t \"triggerEmailCampaigns.createDialog.create\"}}\n          @onClick={{this.createCampaign}}\n        />\n      </m.footer>\n    </UiModal>\n  {{/if}}\n  \n  {{#if this.showTitleDialog}}\n    <UiModal\n      @title={{t (concat \"triggerEmailCampaigns.new.\" this.selectedCampaign.type \".new\")}}\n      @onClose={{this.closeTitleDialog}}\n      as |m|\n    >\n      <m.header />\n      <m.content as |c|>\n        <c.body class=\"pb1\">\n          <UiInput\n            @label={{t \"triggerEmailCampaigns.new.campaignTitle\"}}\n            @value={{this.selectedCampaign.name}}\n          />\n        </c.body>\n      </m.content>\n      <m.footer>\n        <UiButton\n          @label={{t \"global.actions.save\"}}\n          @isSecondary={{true}}\n          @onClick={{perform this.addCampaign}}\n        />\n      </m.footer>\n    </UiModal>\n  {{/if}}\n  */\n  {\n    \"id\": \"WjqPj0DU\",\n    \"block\": \"[[[41,[30,0,[\\\"isOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@size\\\"],[[30,0,[\\\"_onClose\\\"]],\\\"lg\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,1,[\\\"content\\\"]],[[4,[38,2],[[30,0,[\\\"onDidInsert\\\"]]],null]],[[\\\"@class\\\"],[\\\"flex flex-grow-1\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"body\\\"]],[[16,0,[29,[\\\"ph4 \\\",[52,[28,[37,3],[[30,0,[\\\"isDetailView\\\"]],[30,0,[\\\"isCampaignCreatable\\\"]]],null],\\\"pb0\\\",\\\"pb4\\\"]]]]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"mh3 mb3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-lg font-medium primary mb1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,3]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb3 mt1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,4]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"fetchCampaignTypes\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[8,[39,4],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[3,9,6,160,16]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"_isError\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex flex-column w-100 justify-center items-center pt3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"pb2 font-sm secondary\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,5],[\\\"triggerEmailCampaigns.createDialog.error\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,6],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,5],[\\\"global.actions.retry\\\"],null],[28,[37,7],[[30,0,[\\\"fetchCampaignTypes\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,8],null,[[\\\"@gap\\\",\\\"@columns\\\"],[\\\"16\\\",\\\"1,2,3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"_formattedCampaignTypes\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[\\\"flex flex-column justify-between pa2 br1\\\\n                    \\\",[52,[28,[37,11],[[30,5,[\\\"isDisabled\\\"]],[28,[37,3],[[28,[37,12],[[30,0,[\\\"_isTriggerCampaignAvailable\\\"]]],null],[28,[37,12],[[28,[37,13],[[30,5,[\\\"trigger\\\"]],\\\"lead-trigger-campaign\\\"],null]],null]],null]],null],\\\"ba b--secondary-10\\\",\\\"bg-secondary--10 cpointer\\\"],\\\"\\\\n                    \\\",[52,[28,[37,14],[[30,5,[\\\"trigger\\\"]],[30,0,[\\\"selectedCampaign\\\",\\\"trigger\\\"]]],null],\\\"ui-category-card--is-selected\\\"],\\\"\\\\n                    \\\"]]],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"onCampaignClick\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"mr1\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,17],[[30,5,[\\\"icon\\\"]]],[[\\\"width\\\",\\\"height\\\"],[\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"primary font-sm font-medium pb05\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[30,5,[\\\"name\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"secondary font-sm font-medium pb2\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[30,5,[\\\"descriptions\\\",\\\"summary\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[[28,[37,12],[[30,0,[\\\"_isTriggerCampaignAvailable\\\"]]],null],[28,[37,12],[[28,[37,13],[[30,5,[\\\"trigger\\\"]],\\\"lead-trigger-campaign\\\"],null]],null]],null],[[[1,\\\"                    \\\"],[8,[39,18],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@href\\\",\\\"@target\\\"],[\\\"arrow-up-circle\\\",[28,[37,5],[\\\"triggerEmailCampaigns.createDialog.upgradeMessage\\\"],null],\\\"https://www.additive.eu/en/marketing-software/additive-vouchers-hotel?utm_source=additive_mc&utm_medium=banner&utm_campaign=upgrade\\\",\\\"_blank\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"flex justify-end w-100\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,17],[\\\"ascending-arrow\\\"],[[\\\"class\\\"],[\\\"secondary\\\"]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@isDisabled\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"plus\\\",[28,[37,12],[[30,0,[\\\"selectedCampaign\\\"]]],null],[28,[37,5],[\\\"triggerEmailCampaigns.createDialog.create\\\"],null],[30,0,[\\\"createCampaign\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showTitleDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@title\\\",\\\"@onClose\\\"],[[28,[37,5],[[28,[37,19],[\\\"triggerEmailCampaigns.new.\\\",[30,0,[\\\"selectedCampaign\\\",\\\"type\\\"]],\\\".new\\\"],null]],null],[30,0,[\\\"closeTitleDialog\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,6,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,6,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,7,[\\\"body\\\"]],[[24,0,\\\"pb1\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,20],null,[[\\\"@label\\\",\\\"@value\\\"],[[28,[37,5],[\\\"triggerEmailCampaigns.new.campaignTitle\\\"],null],[30,0,[\\\"selectedCampaign\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[7]]]]],[1,\\\"\\\\n    \\\"],[8,[30,6,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,5],[\\\"global.actions.save\\\"],null],true,[28,[37,7],[[30,0,[\\\"addCampaign\\\"]]],null]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"m\\\",\\\"c\\\",\\\"@title\\\",\\\"@description\\\",\\\"campaignType\\\",\\\"m\\\",\\\"c\\\"],false,[\\\"if\\\",\\\"ui-modal\\\",\\\"did-insert\\\",\\\"and\\\",\\\"ui-skeleton\\\",\\\"t\\\",\\\"ui-button\\\",\\\"perform\\\",\\\"grid\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"not\\\",\\\"eq\\\",\\\"equal\\\",\\\"on\\\",\\\"fn\\\",\\\"svg-jar\\\",\\\"ui-icon-button\\\",\\\"concat\\\",\\\"ui-input\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/trigger-email-campaign/create-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Create dialog for trigger email campaigns\n   *\n   * @class email-dialog\n   */\n  let AmcCampaignTriggerEmailCampaignCreateDialog = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec4 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec5 = (0, _emberArgTypes.arg)(_propTypes.object), _dec6 = (0, _emberConcurrency.task)(function* () {\n    this._isError = false;\n    try {\n      const adapter = this.store.adapterFor('trigger-email-campaign');\n      const baseUrl = adapter.urlForFindAll('trigger-email-campaign', {\n        adapterOptions: {\n          useNewApi: true\n        }\n      });\n      const tasks = [];\n      tasks.push(this.authenticatedFetch.fetch(`${baseUrl}/campaign-types`));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      if (!response.ok) {\n        throw new Error('Failed to fetch campaign types');\n      }\n      const json = yield response.json();\n      if (!(json !== null && json !== void 0 && json.campaignTypes)) {\n        throw new Error('Invalid response');\n      }\n      this._campaignTypes = json.campaignTypes;\n    } catch (e) {\n      this._isError = true;\n    }\n  }), _dec7 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const campaign = this.store.createRecord('trigger-email-campaign', {\n        title: this.selectedCampaign.name,\n        name: this.selectedCampaign.name,\n        type: this.selectedCampaign.type\n      });\n      const tasks = [];\n      tasks.push(campaign.save());\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const data = yield response;\n      yield this.uiFilter.addItem('trigger-email', data);\n      this.showTitleDialog = false;\n      this.onClose();\n      this.router.transitionTo('instance.campaigns.trigger-email.detail.index', data.id);\n      this.uiToast.showToast({\n        title: this.intl.t('toast.success'),\n        type: 'success'\n      });\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec8 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignTriggerEmailCampaignCreateDialog extends _component2.default {\n    get _formattedCampaignTypes() {\n      return this._campaignTypes.map(campaign => {\n        var _campaign$creatableCh;\n        return _objectSpread(_objectSpread({}, campaign), {}, {\n          isDisabled: ((_campaign$creatableCh = campaign.creatableChecks) === null || _campaign$creatableCh === void 0 ? void 0 : _campaign$creatableCh.length) > 0\n        });\n      });\n    }\n    get _isTriggerCampaignAvailable() {\n      var _this$currentUser$cur;\n      const app = (_this$currentUser$cur = this.currentUser.currentOrganization) === null || _this$currentUser$cur === void 0 || (_this$currentUser$cur = _this$currentUser$cur.accessibleApps) === null || _this$currentUser$cur === void 0 ? void 0 : _this$currentUser$cur.find(app => app.id === 50);\n      return (app === null || app === void 0 ? void 0 : app.planName) === 'enterprise_yearly' || (app === null || app === void 0 ? void 0 : app.planName) === 'enterprise_monthly';\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor7, this);\n      _initializerDefineProperty(this, \"title\", _descriptor8, this);\n      _initializerDefineProperty(this, \"description\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isCampaignCreatable\", _descriptor10, this);\n      /**\n       * whether the dialog is open\n       *\n       * @argument isOpen\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isOpen\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isDetailView\", _descriptor12, this);\n      _initializerDefineProperty(this, \"selectedCampaign\", _descriptor13, this);\n      _initializerDefineProperty(this, \"showTitleDialog\", _descriptor14, this);\n      _initializerDefineProperty(this, \"model\", _descriptor15, this);\n      /**\n       * the fetched campaign types\n       *\n       * @property _campaignTypes\n       * @type {Array}\n       * @default []\n       * @private\n       */\n      _initializerDefineProperty(this, \"_campaignTypes\", _descriptor16, this);\n      /**\n       * whether an error occurred while fetching campaign types\n       *\n       * @property _isError\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isError\", _descriptor17, this);\n      _initializerDefineProperty(this, \"fetchCampaignTypes\", _descriptor18, this);\n      /**\n       * Adds a camapign type which still uses the old structure\n       * TODO: Remove this function as soon as all campaign-types are migrated\n       *\n       * @type {Task}\n       * @function addCampaign\n       */\n      _initializerDefineProperty(this, \"addCampaign\", _descriptor19, this);\n      _initializerDefineProperty(this, \"onClose\", _descriptor20, this);\n      if (this.isCampaignCreatable) {\n        return;\n      }\n\n      // No campaign is createable.\n      // The component is only used to visualize information about the campaign.\n      this.isDetailView = true;\n      this.selectedCampaign = this.model;\n    }\n    async onDidInsert() {\n      if (this._campaignTypes.length > 0 || !this.isCampaignCreatable) {\n        return;\n      }\n      this.fetchCampaignTypes.perform();\n    }\n    onCampaignClick(campaign) {\n      if (campaign.isDisabled || !this._isTriggerCampaignAvailable && campaign.trigger !== 'lead-trigger-campaign') {\n        return;\n      }\n      this.selectedCampaign = campaign;\n      this.isDetailView = true;\n    }\n    async createCampaign() {\n      const newCampaign = this.store.createRecord('trigger-email-campaign', {\n        name: this.selectedCampaign.name,\n        type: this.selectedCampaign.type,\n        trigger: this.selectedCampaign.trigger,\n        descriptions: this.selectedCampaign.descriptions\n      });\n\n      // TODO: Remove once all campaign-types are migrated\n      if (!newCampaign.isNewStructure) {\n        newCampaign.destroyRecord();\n        this.showTitleDialog = true;\n        return;\n      }\n\n      // Fetch metadata\n      await newCampaign.fetchMeta.perform();\n\n      // assign temporary id\n      newCampaign.id = `tmp-${(0, _internals.guidFor)(newCampaign)}`;\n      this.router.transitionTo('instance.campaigns.trigger-email.detail.index.edit', newCampaign.id);\n\n      // clear campaign types to force refetch on next open\n      this._campaignTypes = [];\n      this._onClose();\n    }\n    closeDetailView() {\n      this.selectedCampaign = null;\n      this.isDetailView = false;\n    }\n    closeTitleDialog() {\n      this.showTitleDialog = false;\n    }\n    _onClose() {\n      if (this.isCampaignCreatable) {\n        this.closeDetailView();\n      }\n      this.onClose();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isCampaignCreatable\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isOpen\", [_dec4, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isDetailView\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"selectedCampaign\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"showTitleDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"_campaignTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"_isError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"fetchCampaignTypes\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"addCampaign\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onDidInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDidInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCampaignClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onCampaignClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createCampaign\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createCampaign\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeDetailView\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeDetailView\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeTitleDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeTitleDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onClose\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignTriggerEmailCampaignCreateDialog);\n});","define(\"additive-mc/components/amc-campaign/trigger-email-campaign/detail-view\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/string\", \"ember-concurrency\", \"ember-arg-types\", \"prop-types\", \"date-fns/format\", \"date-fns/locale\", \"dompurify\", \"@additive-apps/ui/utils/date-util\"], function (_exports, _component, _templateFactory, _environment, _component2, _tracking, _object, _service, _string, _emberConcurrency, _emberArgTypes, _propTypes, _format, _locale, _dompurify, _dateUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiContentViews @title={{@model.name}} as |view|>\n    <view.navbar @onClose={{@onClose}} data-test-detail-navbar={{true}} as |nav|>\n      {{#unless this.isReadOnly}}\n        <nav.action\n          @label={{t \"global.actions.publish\"}}\n          @icon=\"publish\"\n          @isDisabled={{not this.model.availableLanguages.length}}\n          @onClick={{this.onPublish}}\n        />\n        <nav.action\n          @label={{t \"triggerEmailCampaigns.steps.emails.actions.sendTestEmails\"}}\n          @icon=\"send\"\n          @isDisabled={{not this.model.availableLanguages.length}}\n          @onClick={{fn this.openSendTestEmailDialog this.model true}}\n        />\n      {{/unless}}\n      <nav.action\n        @label={{t \"global.properties.information\"}}\n        @icon=\"info\"\n        @onClick={{this.toggleDrawer}}\n      />\n    </view.navbar>\n  \n    <view.content>\n      <div class=\"flex items-center font-xl primary pb2\" {{did-insert this.setup}}>\n        {{@model.name}}\n      </div>\n  \n      {{#if this.isLoading}}\n        <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{64}} />\n      {{else}}\n        <div class=\"primary font-md pb2 mw6\">\n          {{@model.descriptions.summary}}\n        </div>\n      {{/if}}\n  \n      {{#if this.isLoading}}\n        <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{32}} />\n      {{else}}\n        {{#if this.model.availableLanguages.length}}\n          <div class=\"mt1\">\n            <UiLangSelect\n              @languages={{this.model.availableLanguages}}\n              @publishedLanguages={{this.model.publishedLanguages}}\n              @hideLanguageActions={{true}}\n              @selected={{if this.model.language this.model.language this.currentLocale}}\n              @onSelect={{perform this.changeLanguage}}\n            />\n          </div>\n        {{/if}}\n      {{/if}}\n  \n      <div class=\"bt b--secondary-10 mb4 mt4\"></div>\n  \n      {{#if (or this.changeLanguage.isRunning this.fetchLeadCampaigns.isRunning this.isLoading)}}\n        <div class=\"mt4\">\n          <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{116}} />\n        </div>\n        <div class=\"mt3\">\n          <UiSkeleton @items={{2}} @itemsPerRow={{1}} @cardHeight={{360}} @gap={{40}} />\n        </div>\n      {{else}}\n        <div class=\"flex justify-between mb2 mt4\">\n          <div class=\"flex items-center font-lg\">\n            {{svg-jar \"click\" class=\"mr05\" width=\"20\" height=\"20\"}}\n            {{t \"triggerEmailCampaigns.steps.trigger.title\"}}\n          </div>\n  \n          {{#unless this.isReadOnly}}\n            <UiButton\n              @icon=\"edit\"\n              @label={{t \"global.actions.edit\"}}\n              @isSecondary={{true}}\n              @onClick={{fn this.openEditorStep \"trigger\"}}\n            />\n          {{/unless}}\n        </div>\n  \n        <div class=\"mb3 pb1\">\n          <div class=\"flex flex pa3 br1 bg-secondary--10 w-100\">\n            {{svg-jar \"bolt-filled\" class=\"mr05\" height=\"20\"}}\n            <div class=\"flex flex-column\">\n              <div class=\"flex\">\n                <div class=\"font-sm font-medium primary mr1\">\n                  {{this.model.descriptions.trigger.event}}\n                </div>\n  \n                <UiPopover as |pop|>\n                  <pop.trigger>\n                    {{svg-jar \"info\" class=\"secondary mr2\" width=\"20\" height=\"20\"}}\n                  </pop.trigger>\n                  <pop.content>\n                    {{this.model.descriptions.trigger.details}}\n                  </pop.content>\n                </UiPopover>\n              </div>\n  \n              {{#each this.triggerConfigurationsMeta as |triggerSetting|}}\n                <div class=\"flex font-sm mt05 secondary\">\n                  <UiIconButton\n                    @class={{unless this.isReadOnly \"text-underline cpointer\"}}\n                    @isTertiary={{true}}\n                    @label={{if\n                      (get\n                        (get (array-find triggerSetting.key this.model.configurations \"key\") \"value\")\n                        \"addressBooks\"\n                      )\n                      (t \"triggerEmailCampaigns.steps.trigger.addressBook\")\n                      triggerSetting.label\n                    }}\n                    @onClick={{fn this.openEditorStep \"trigger\"}}\n                  />\n                  :\n                  {{#if\n                    (get (array-find triggerSetting.key this.model.configurations \"key\") \"value\")\n                  }}\n                    <div class=\"ml05\">\n                      {{amc-campaign-configuration-value\n                        (hash\n                          value=(get\n                            (array-find triggerSetting.key this.model.configurations \"key\") \"value\"\n                          )\n                          type=triggerSetting.type\n                        )\n                        this.configurationValueOptions\n                      }}\n                    </div>\n                  {{else}}\n                    <div class=\"ml05\">\n                      -\n                    </div>\n                  {{/if}}\n                </div>\n              {{/each}}\n  \n              {{#if this.model.trigger.startsAt}}\n                <div class=\"flex font-sm font-medium secondary mt05\">\n                  <UiIconButton\n                    @class=\"mr05 {{unless this.isReadOnly 'text-underline cpointer'}}\"\n                    @isTertiary={{true}}\n                    @label={{concat\n                      (t \"triggerEmailCampaigns.steps.trigger.considerationPeriod.label\")\n                      \":\"\n                    }}\n                    @onClick={{fn this.openEditorStep \"trigger\"}}\n                  />\n  \n                  <div>\n                    {{this.triggerConsiderationPeriod}}\n                  </div>\n                </div>\n              {{/if}}\n            </div>\n          </div>\n        </div>\n  \n        <div class=\"flex justify-between mb2 mt4\">\n          <div class=\"flex items-center font-lg\">\n            {{svg-jar \"mail\" class=\"mr05\" width=\"20\" height=\"20\"}}\n            {{t \"triggerEmailCampaigns.steps.emails.title\"}}\n          </div>\n  \n          {{#unless this.isReadOnly}}\n            <UiButton\n              @icon=\"edit\"\n              @label={{t \"global.actions.edit\"}}\n              @isSecondary={{true}}\n              @onClick={{fn this.openEditorStep \"emails\"}}\n            />\n          {{/unless}}\n        </div>\n  \n        {{#unless this.emailSeries.length}}\n          <div class=\"flex flex-column pa3 br1 bg-secondary--10 w-100 items-center\">\n            <div class=\"font-md font-medium primary\">\n              {{t \"triggerEmailCampaigns.steps.emails.empty\"}}\n            </div>\n  \n            <div\n              class=\"font-sm font-medium blue mt1 {{unless this.isReadOnly 'cpointer'}}\"\n              role=\"button\"\n              {{on \"click\" (fn this.openEditorStep \"emails\")}}\n            >\n              {{t \"triggerEmailCampaigns.steps.emails.actions.createFirstEmailStep\"}}\n            </div>\n          </div>\n        {{/unless}}\n  \n        {{#each this.emailSeries as |emailSeries index|}}\n          <div class=\"flex flex-column pa3 br1 bg-secondary--10 w-100\">\n            <div class=\"font-sm primary\">\n              {{if\n                emailSeries.label\n                (concat\n                  (t \"triggerEmailCampaigns.steps.emails.emailSeriesCount\" count=(inc index)) \" - \"\n                )\n                (t \"triggerEmailCampaigns.steps.emails.emailSeriesCount\" count=(inc index))\n              }}\n              <UiIconButton\n                @class={{unless this.isReadOnly \"text-underline cpointer\"}}\n                @isSecondary={{true}}\n                @label={{if emailSeries.label emailSeries.label \" - \"}}\n                @onClick={{fn this.openEmailSeries emailSeries}}\n              />\n            </div>\n  \n            <div\n              class=\"flex items-center font-sm font-medium mt1 {{unless this.isReadOnly 'cpointer'}}\"\n              role=\"button\"\n              {{on \"click\" (fn this.openEmailSeries emailSeries)}}\n            >\n              <div\n                class=\"flex items-center justify-center bg-blue--10 bg-blue--40--hover blue br1 ph05\"\n              >\n                {{svg-jar \"watch\" width=\"16\" height=\"16\"}}\n                {{#if (equal emailSeries.offsetInDays 0)}}\n                  {{t \"triggerEmailCampaigns.immediately\"}}\n                {{else}}\n                  {{t \"triggerEmailCampaigns.daysCount\" count=emailSeries.offsetInDays}}\n                {{/if}}\n              </div>\n              <div class=\"secondary ml05\">\n                {{t \"triggerEmailCampaigns.afterTrigger\"}}\n              </div>\n            </div>\n  \n            <div class=\"mt2\">\n              <div class=\"font-sm primary mb1\">\n                {{t \"triggerEmailCampaigns.steps.emails.variants\"}}\n              </div>\n  \n              {{#unless emailSeries.emails.length}}\n                <div class=\"flex flex-column items-center\">\n                  <div class=\"font-md font-medium primary\">\n                    {{t \"triggerEmailCampaigns.steps.emails.email.empty\"}}\n                  </div>\n  \n                  <UiIconButton\n                    @class=\"mt1 {{unless this.isReadOnly 'cpointer'}}\"\n                    @label={{t\n                      \"triggerEmailCampaigns.steps.emails.email.actions.createFirstEmailVariant\"\n                    }}\n                    @onClick={{fn this.createFirstEmail emailSeries}}\n                  />\n                </div>\n              {{/unless}}\n  \n              <UiList @items={{emailSeries.emails}} as |list email emailIndex|>\n                <list.item\n                  @title={{if\n                    (includes email.language email.availableLanguages)\n                    (if\n                      email.subject\n                      email.subject\n                      (t \"triggerEmailCampaigns.steps.emails.email.subjectMissing\")\n                    )\n                    (t \"triggerEmailCampaigns.steps.emails.email.placeholderText\")\n                  }}\n                  @description={{t\n                    \"triggerEmailCampaigns.steps.emails.variant\"\n                    count=(inc emailIndex)\n                  }}\n                  @onClick={{perform this.openPreviewDialog \"email\" email}}\n                  as |controls|\n                >\n                  <controls.left>\n                    <div class=\"flex items-center mr1\">\n                      <UiStatus @class=\"mr2\" @state={{if email.active \"success\" \"error\"}} />\n                      {{svg-jar \"mail\" width=\"20\" height=\"20\"}}\n                    </div>\n                  </controls.left>\n  \n                  {{#unless this.isReadOnly}}\n                    <controls.right>\n                      <div class=\"flex items-center mt1 pt05\">\n                        <UiItemMenu as |menu|>\n                          <menu.menuItem\n                            @label={{t \"global.actions.edit\"}}\n                            @onClick={{fn this.openEmail emailSeries email}}\n                          />\n                          <menu.menuItem\n                            @label={{t\n                              \"triggerEmailCampaigns.steps.emails.email.actions.sendTestEmail\"\n                            }}\n                            @onClick={{fn this.openSendTestEmailDialog email false}}\n                          />\n                        </UiItemMenu>\n                      </div>\n                    </controls.right>\n                  {{/unless}}\n                </list.item>\n              </UiList>\n            </div>\n          </div>\n  \n          {{#if (not (equal (inc index) this.model.emailSeries.length))}}\n            <div class=\"flex justify-center w-100\">\n              {{svg-jar \"arrow-down\" class=\"secondary mv1\"}}\n            </div>\n          {{/if}}\n        {{/each}}\n  \n        <div\n          class=\"flex justify-between mb2 mt4\"\n          {{did-insert (fn this.initVoucherPreview this.model.contribution)}}\n          {{did-update\n            (fn this.initVoucherPreview this.model.contribution)\n            this.model.contribution\n            this.model.contribution.value\n            this.model.contribution.image\n            this.model.contribution.policies\n            this.model.contribution.greeting\n          }}\n        >\n          <div class=\"flex items-center font-lg\">\n            {{svg-jar \"gift\" class=\"mr05\" width=\"20\" height=\"20\"}}\n            {{t \"triggerEmailCampaigns.steps.contribution.title\"}}\n          </div>\n  \n          {{#unless this.isReadOnly}}\n            <UiButton\n              @icon=\"edit\"\n              @label={{t \"global.actions.edit\"}}\n              @isSecondary={{true}}\n              @onClick={{fn this.openEditorStep \"contribution\"}}\n            />\n          {{/unless}}\n        </div>\n  \n        <div class=\"flex flex-column flex-row-sm bg-secondary--10 pa3 br1\">\n          <div class=\"flex flex-column w-100\">\n            {{#if this.model.contribution}}\n              <div class=\"flex mb3\">\n                <UiBadge @state={{if this.model.contribution.active \"info\"}}>\n                  {{#if this.model.contribution.active}}\n                    {{t \"emailCampaigns.steps.contribution.states.active\"}}\n                  {{else}}\n                    {{t \"emailCampaigns.steps.contribution.states.inactive\"}}\n                  {{/if}}\n                </UiBadge>\n              </div>\n            {{/if}}\n  \n            <div class=\"flex flex-column font-sm secondary\">\n              <div>\n                <UiIconButton\n                  @class={{unless this.isReadOnly \"text-underline cpointer\"}}\n                  @isTertiary={{true}}\n                  @label={{t \"triggerEmailCampaigns.steps.contribution.value\"}}\n                  @onClick={{fn this.openEditorStep \"contribution\"}}\n                />\n              </div>\n  \n              <div class=\"primary\">\n                {{#if (or this.model.contribution.amount (equal this.model.contribution.amount 0))}}\n                  {{currency this.model.contribution.amount format=this.uiAppSettings.currency}}\n                {{else}}\n                  -\n                {{/if}}\n              </div>\n            </div>\n  \n            <div class=\"flex flex-column font-sm mt3 secondary\">\n              <div>\n                <UiIconButton\n                  @class={{unless this.isReadOnly \"text-underline cpointer\"}}\n                  @isTertiary={{true}}\n                  @label={{t \"triggerEmailCampaigns.steps.contribution.policies\"}}\n                  @onClick={{fn this.openEditorStep \"contribution\"}}\n                />\n              </div>\n  \n              <div class=\"primary break-all\">\n                {{this._contributionPolicies}}\n              </div>\n            </div>\n  \n            <div class=\"flex flex-column font-sm mt3 secondary\">\n              <div>\n                <UiIconButton\n                  @class={{unless this.isReadOnly \"text-underline cpointer\"}}\n                  @isTertiary={{true}}\n                  @label={{t \"triggerEmailCampaigns.steps.contribution.greeting\"}}\n                  @onClick={{fn this.openEditorStep \"contribution\"}}\n                />\n              </div>\n  \n              <div class=\"primary break-all\">\n                {{this._contributionGreeting}}\n              </div>\n            </div>\n  \n            {{#if this._contributionCustomType}}\n              <div class=\"flex flex-column font-sm mt3 secondary\">\n                <div>\n                  <UiIconButton\n                    @class={{unless this.isReadOnly \"text-underline cpointer\"}}\n                    @isTertiary={{true}}\n                    @label={{t \"triggerEmailCampaigns.steps.contribution.customType\"}}\n                    @onClick={{fn this.openEditorStep \"contribution\"}}\n                  />\n                </div>\n                <div class=\"primary break-all\">\n                  {{this._contributionCustomType}}\n                </div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <div class=\"flex mt2 mt0-sm\">\n            <div class=\"h-100 dn db-sm br b--secondary-20 mh4\"></div>\n            <div>\n              <AmcCampaign::EmailCampaign::Preview\n                @onClick={{perform this.openPreviewDialog \"voucher\" this.model.contribution}}\n                @isDisabled={{not this.model.contribution}}\n                as |preview|\n              >\n                <preview.content>\n                  {{#if this.isVoucherPreviewError}}\n                    <div class=\"w-100 h-100 flex justify-center items-center bg-secondary--20\">\n                      {{svg-jar \"placeholder-image\" class=\"secondary--40\"}}\n                    </div>\n                  {{else}}\n                    <iframe\n                      id=\"voucher-thumbnail-iframe\"\n                      title=\"voucher-thumbnail-iframe\"\n                      class=\"w-100 h-100 br1\"\n                      frameBorder=\"0\"\n                    >\n                    </iframe>\n                  {{/if}}\n                </preview.content>\n              </AmcCampaign::EmailCampaign::Preview>\n            </div>\n          </div>\n        </div>\n  \n        <div class=\"flex justify-between mb2 mt4\">\n          <div class=\"flex items-center font-lg\">\n            {{svg-jar \"settings\" class=\"mr05\" width=\"20\" height=\"20\"}}\n            {{t \"triggerEmailCampaigns.steps.configurations.title\"}}\n          </div>\n  \n          {{#unless this.isReadOnly}}\n            <UiButton\n              @icon=\"edit\"\n              @label={{t \"global.actions.edit\"}}\n              @isSecondary={{true}}\n              @onClick={{fn this.openEditorStep \"configuration\"}}\n            />\n          {{/unless}}\n        </div>\n  \n        {{#each this.configurationsMeta as |config|}}\n          <div class=\"flex font-sm mt2 bg-secondary--10 primary pa3 br1\">\n            <div\n              class=\"secondary mr3 {{unless this.isReadOnly 'text-underline cpointer'}}\"\n              role=\"button\"\n              {{on \"click\" (fn this.openEditorStep \"configuration\")}}\n            >\n              {{config.label}}\n            </div>\n            {{#if (get (array-find config.key this.model.configurations \"key\") \"value\")}}\n              {{#if (equal config.type \"array\")}}\n                <div class=\"flex flex-wrap ml3\">\n                  {{#each\n                    (get (array-find config.key this.model.configurations \"key\") \"value\")\n                    as |item|\n                  }}\n                    <UiChip @classNames=\"mr1 mb1\" @theme=\"grey\" @isReadOnly={{true}}>\n                      {{item}}\n                    </UiChip>\n                  {{/each}}\n                </div>\n              {{else if (equal config.type \"boolean\")}}\n                <UiSwitch\n                  @class=\"ml3\"\n                  @value={{get (array-find config.key this.model.configurations \"key\") \"value\"}}\n                  @isReadOnly={{true}}\n                />\n              {{else}}\n                <div class=\"primary ml3\">\n                  {{amc-campaign-configuration-value\n                    (hash\n                      value=(get (array-find config.key this.model.configurations \"key\") \"value\")\n                      type=config.type\n                    )\n                    this.configurationValueOptions\n                  }}\n                </div>\n              {{/if}}\n            {{else}}\n              <div class=\"primary mb1 ml3\">\n                -\n              </div>\n            {{/if}}\n          </div>\n        {{/each}}\n      {{/if}}\n    </view.content>\n  \n    {{#unless this.isReadOnly}}\n      <view.footer>\n        <UiButton\n          @class=\"absolute bottom-3 right-3\"\n          @icon=\"edit\"\n          @isFabButton={{true}}\n          @onClick={{this.transitionToEdit}}\n        />\n      </view.footer>\n    {{/unless}}\n  </UiContentViews>\n  \n  <AmcCampaign::EmailCampaign::InformationDrawer\n    @stateKey={{this.stateKey}}\n    @onClose={{this.toggleDrawer}}\n    @model={{this.model}}\n  />\n  \n  {{#if this.isSendTestEmailDialogOpen}}\n    <AmcCampaign::TestEmailDialog\n      @model={{this.selectedModel}}\n      @campaignId={{this.model.id}}\n      @onClose={{fn (mut this.isSendTestEmailDialogOpen) false}}\n      @isBulk={{this.isBulkAction}}\n      @campaignType={{@model.type}}\n    />\n  {{/if}}\n  \n  {{#if this.isVoucherPreviewDialog}}\n    <UiPreviewDialog\n      @title={{t \"triggerEmailCampaigns.steps.contribution.previewDialog.title\"}}\n      @availableLanguages={{this.selectedVoucherModel.availableLanguages}}\n      @language={{this.selectedVoucherPreviewLanguage}}\n      @isLoading={{this.openPreviewDialog.isRunning}}\n      @onLanguageChange={{perform this.openPreviewDialog \"voucher\" this.selectedVoucherModel}}\n      @onClose={{fn (mut this.isVoucherPreviewDialog) false}}\n      as |preview|\n    >\n      <preview.content>\n        <iframe\n          title={{t \"triggerEmailCampaigns.steps.voucher.previewDialog.title\"}}\n          id=\"voucher-preview-iframe\"\n          class=\"w-100 h-100 dn flex flex-column flex-grow-1\"\n          frameBorder=\"0\"\n        >\n        </iframe>\n      </preview.content>\n    </UiPreviewDialog>\n  {{/if}}\n  \n  {{#if this.isEmailPreviewDialog}}\n    <UiPreviewDialog\n      @title={{t \"triggerEmailCampaigns.steps.emails.email.previewDialog.title\"}}\n      @availableLanguages={{this.selectedEmailModel.availableLanguages}}\n      @language={{this.selectedEmailPreviewLanguage}}\n      @isLoading={{this.openPreviewDialog.isRunning}}\n      @onLanguageChange={{perform this.openPreviewDialog \"email\" this.selectedEmailModel}}\n      @onClose={{fn (mut this.isEmailPreviewDialog) false}}\n      as |preview|\n    >\n      <preview.content>\n        <iframe\n          title={{t \"triggerEmailCampaigns.steps.emails.email.previewDialog.title\"}}\n          id=\"email-preview-iframe\"\n          class=\"w-100 h-100 dn flex flex-column flex-grow-1\"\n          frameBorder=\"0\"\n        >\n        </iframe>\n      </preview.content>\n    </UiPreviewDialog>\n  {{/if}}\n  \n  <AmcCampaign::TriggerEmailCampaign::CreateDialog\n    @title={{t \"triggerEmailCampaigns.createDialog.title\"}}\n    @description={{t \"triggerEmailCampaigns.createDialog.description\"}}\n    @isOpen={{this.isCampaignInformationDialog}}\n    @isCampaignCreatable={{false}}\n    @model={{this.model}}\n    @onClose={{fn (mut this.isCampaignInformationDialog) false}}\n  />\n  */\n  {\n    \"id\": \"Wo6eE2bi\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\"],[[30,1,[\\\"name\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,2,[\\\"navbar\\\"]],[[16,\\\"data-test-detail-navbar\\\",true]],[[\\\"@onClose\\\"],[[30,3]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"      \\\"],[8,[30,4,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"global.actions.publish\\\"],null],\\\"publish\\\",[28,[37,3],[[30,0,[\\\"model\\\",\\\"availableLanguages\\\",\\\"length\\\"]]],null],[30,0,[\\\"onPublish\\\"]]]],null],[1,\\\"\\\\n      \\\"],[8,[30,4,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"triggerEmailCampaigns.steps.emails.actions.sendTestEmails\\\"],null],\\\"send\\\",[28,[37,3],[[30,0,[\\\"model\\\",\\\"availableLanguages\\\",\\\"length\\\"]]],null],[28,[37,4],[[30,0,[\\\"openSendTestEmailDialog\\\"]],[30,0,[\\\"model\\\"]],true],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[8,[30,4,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"global.properties.information\\\"],null],\\\"info\\\",[30,0,[\\\"toggleDrawer\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[4]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,0,\\\"flex items-center font-xl primary pb2\\\"],[4,[38,5],[[30,0,[\\\"setup\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,64]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"primary font-md pb2 mw6\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"descriptions\\\",\\\"summary\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,32]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"availableLanguages\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mt1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@languages\\\",\\\"@publishedLanguages\\\",\\\"@hideLanguageActions\\\",\\\"@selected\\\",\\\"@onSelect\\\"],[[30,0,[\\\"model\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"model\\\",\\\"publishedLanguages\\\"]],true,[52,[30,0,[\\\"model\\\",\\\"language\\\"]],[30,0,[\\\"model\\\",\\\"language\\\"]],[30,0,[\\\"currentLocale\\\"]]],[28,[37,9],[[30,0,[\\\"changeLanguage\\\"]]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"bt b--secondary-10 mb4 mt4\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"changeLanguage\\\",\\\"isRunning\\\"]],[30,0,[\\\"fetchLeadCampaigns\\\",\\\"isRunning\\\"]],[30,0,[\\\"isLoading\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mt4\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,116]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mt3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[2,1,360,40]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"flex justify-between mb2 mt4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex items-center font-lg\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"click\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"mr05\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,2],[\\\"triggerEmailCampaigns.steps.trigger.title\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"          \\\"],[8,[39,12],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"edit\\\",[28,[37,2],[\\\"global.actions.edit\\\"],null],true,[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"trigger\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mb3 pb1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex flex pa3 br1 bg-secondary--10 w-100\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"bolt-filled\\\"],[[\\\"class\\\",\\\"height\\\"],[\\\"mr05\\\",\\\"20\\\"]]]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"font-sm font-medium primary mr1\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"model\\\",\\\"descriptions\\\",\\\"trigger\\\",\\\"event\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[8,[39,13],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,5,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[28,[35,11],[\\\"info\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"secondary mr2\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[8,[30,5,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"model\\\",\\\"descriptions\\\",\\\"trigger\\\",\\\"details\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[5]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"triggerConfigurationsMeta\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,0,\\\"flex font-sm mt05 secondary\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],null,[[\\\"@class\\\",\\\"@isTertiary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"],true,[52,[28,[37,17],[[28,[37,17],[[28,[37,18],[[30,6,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null],\\\"addressBooks\\\"],null],[28,[37,2],[\\\"triggerEmailCampaigns.steps.trigger.addressBook\\\"],null],[30,6,[\\\"label\\\"]]],[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"trigger\\\"],null]]],null],[1,\\\"\\\\n                :\\\\n\\\"],[41,[28,[37,17],[[28,[37,18],[[30,6,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"ml05\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,19],[[28,[37,20],null,[[\\\"value\\\",\\\"type\\\"],[[28,[37,17],[[28,[37,18],[[30,6,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null],[30,6,[\\\"type\\\"]]]]],[30,0,[\\\"configurationValueOptions\\\"]]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"ml05\\\"],[12],[1,\\\"\\\\n                    -\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"trigger\\\",\\\"startsAt\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"flex font-sm font-medium secondary mt05\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],null,[[\\\"@class\\\",\\\"@isTertiary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[29,[\\\"mr05 \\\",[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"]]],true,[28,[37,21],[[28,[37,2],[\\\"triggerEmailCampaigns.steps.trigger.considerationPeriod.label\\\"],null],\\\":\\\"],null],[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"trigger\\\"],null]]],null],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"triggerConsiderationPeriod\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex justify-between mb2 mt4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex items-center font-lg\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"mail\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"mr05\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,2],[\\\"triggerEmailCampaigns.steps.emails.title\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"          \\\"],[8,[39,12],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"edit\\\",[28,[37,2],[\\\"global.actions.edit\\\"],null],true,[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"emails\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"emailSeries\\\",\\\"length\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column pa3 br1 bg-secondary--10 w-100 items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-md font-medium primary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,2],[\\\"triggerEmailCampaigns.steps.emails.empty\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[11,0],[16,0,[29,[\\\"font-sm font-medium blue mt1 \\\",[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"cpointer\\\"]]]],[24,\\\"role\\\",\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"emails\\\"],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,2],[\\\"triggerEmailCampaigns.steps.emails.actions.createFirstEmailStep\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"emailSeries\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column pa3 br1 bg-secondary--10 w-100\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm primary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[52,[30,7,[\\\"label\\\"]],[28,[37,21],[[28,[37,2],[\\\"triggerEmailCampaigns.steps.emails.emailSeriesCount\\\"],[[\\\"count\\\"],[[28,[37,23],[[30,8]],null]]]],\\\" - \\\"],null],[28,[37,2],[\\\"triggerEmailCampaigns.steps.emails.emailSeriesCount\\\"],[[\\\"count\\\"],[[28,[37,23],[[30,8]],null]]]]]],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@class\\\",\\\"@isSecondary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"],true,[52,[30,7,[\\\"label\\\"]],[30,7,[\\\"label\\\"]],\\\" - \\\"],[28,[37,4],[[30,0,[\\\"openEmailSeries\\\"]],[30,7]],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[11,0],[16,0,[29,[\\\"flex items-center font-sm font-medium mt1 \\\",[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"cpointer\\\"]]]],[24,\\\"role\\\",\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"openEmailSeries\\\"]],[30,7]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex items-center justify-center bg-blue--10 bg-blue--40--hover blue br1 ph05\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,11],[\\\"watch\\\"],[[\\\"width\\\",\\\"height\\\"],[\\\"16\\\",\\\"16\\\"]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,7,[\\\"offsetInDays\\\"]],0],null],[[[1,\\\"                \\\"],[1,[28,[35,2],[\\\"triggerEmailCampaigns.immediately\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,2],[\\\"triggerEmailCampaigns.daysCount\\\"],[[\\\"count\\\"],[[30,7,[\\\"offsetInDays\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"secondary ml05\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],[\\\"triggerEmailCampaigns.afterTrigger\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"font-sm primary mb1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],[\\\"triggerEmailCampaigns.steps.emails.variants\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,7,[\\\"emails\\\",\\\"length\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"flex flex-column items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"font-md font-medium primary\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,2],[\\\"triggerEmailCampaigns.steps.emails.email.empty\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[8,[39,16],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@onClick\\\"],[[29,[\\\"mt1 \\\",[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"cpointer\\\"]]],[28,[37,2],[\\\"triggerEmailCampaigns.steps.emails.email.actions.createFirstEmailVariant\\\"],null],[28,[37,4],[[30,0,[\\\"createFirstEmail\\\"]],[30,7]],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[8,[39,25],null,[[\\\"@items\\\"],[[30,7,[\\\"emails\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,9,[\\\"item\\\"]],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@onClick\\\"],[[52,[28,[37,26],[[30,10,[\\\"language\\\"]],[30,10,[\\\"availableLanguages\\\"]]],null],[52,[30,10,[\\\"subject\\\"]],[30,10,[\\\"subject\\\"]],[28,[37,2],[\\\"triggerEmailCampaigns.steps.emails.email.subjectMissing\\\"],null]],[28,[37,2],[\\\"triggerEmailCampaigns.steps.emails.email.placeholderText\\\"],null]],[28,[37,2],[\\\"triggerEmailCampaigns.steps.emails.variant\\\"],[[\\\"count\\\"],[[28,[37,23],[[30,11]],null]]]],[28,[37,9],[[30,0,[\\\"openPreviewDialog\\\"]],\\\"email\\\",[30,10]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,12,[\\\"left\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"flex items-center mr1\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,27],null,[[\\\"@class\\\",\\\"@state\\\"],[\\\"mr2\\\",[52,[30,10,[\\\"active\\\"]],\\\"success\\\",\\\"error\\\"]]],null],[1,\\\"\\\\n                    \\\"],[1,[28,[35,11],[\\\"mail\\\"],[[\\\"width\\\",\\\"height\\\"],[\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"                  \\\"],[8,[30,12,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"flex items-center mt1 pt05\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,28],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[8,[30,13,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"global.actions.edit\\\"],null],[28,[37,4],[[30,0,[\\\"openEmail\\\"]],[30,7],[30,10]],null]]],null],[1,\\\"\\\\n                        \\\"],[8,[30,13,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"triggerEmailCampaigns.steps.emails.email.actions.sendTestEmail\\\"],null],[28,[37,4],[[30,0,[\\\"openSendTestEmailDialog\\\"]],[30,10],false],null]]],null],[1,\\\"\\\\n                      \\\"]],[13]]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"]],[12]]]]],[1,\\\"\\\\n            \\\"]],[9,10,11]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[[28,[37,24],[[28,[37,23],[[30,8]],null],[30,0,[\\\"model\\\",\\\"emailSeries\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex justify-center w-100\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,11],[\\\"arrow-down\\\"],[[\\\"class\\\"],[\\\"secondary mv1\\\"]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[7,8]],null],[1,\\\"\\\\n      \\\"],[11,0],[24,0,\\\"flex justify-between mb2 mt4\\\"],[4,[38,5],[[28,[37,4],[[30,0,[\\\"initVoucherPreview\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\"]]],null]],null],[4,[38,29],[[28,[37,4],[[30,0,[\\\"initVoucherPreview\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\"]]],null],[30,0,[\\\"model\\\",\\\"contribution\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"image\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"policies\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"greeting\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex items-center font-lg\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"gift\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"mr05\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,2],[\\\"triggerEmailCampaigns.steps.contribution.title\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"          \\\"],[8,[39,12],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"edit\\\",[28,[37,2],[\\\"global.actions.edit\\\"],null],true,[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"contribution\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex flex-column flex-row-sm bg-secondary--10 pa3 br1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex flex-column w-100\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"contribution\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex mb3\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,30],null,[[\\\"@state\\\"],[[52,[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"active\\\"]],\\\"info\\\"]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"active\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,2],[\\\"emailCampaigns.steps.contribution.states.active\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,2],[\\\"emailCampaigns.steps.contribution.states.inactive\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex flex-column font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@class\\\",\\\"@isTertiary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"],true,[28,[37,2],[\\\"triggerEmailCampaigns.steps.contribution.value\\\"],null],[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"contribution\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"primary\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"amount\\\"]],[28,[37,24],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"amount\\\"]],0],null]],null],[[[1,\\\"                \\\"],[1,[28,[35,31],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"amount\\\"]]],[[\\\"format\\\"],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                -\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"flex flex-column font-sm mt3 secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@class\\\",\\\"@isTertiary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"],true,[28,[37,2],[\\\"triggerEmailCampaigns.steps.contribution.policies\\\"],null],[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"contribution\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"primary break-all\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"_contributionPolicies\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"flex flex-column font-sm mt3 secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@class\\\",\\\"@isTertiary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"],true,[28,[37,2],[\\\"triggerEmailCampaigns.steps.contribution.greeting\\\"],null],[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"contribution\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"primary break-all\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"_contributionGreeting\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_contributionCustomType\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex flex-column font-sm mt3 secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],null,[[\\\"@class\\\",\\\"@isTertiary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"],true,[28,[37,2],[\\\"triggerEmailCampaigns.steps.contribution.customType\\\"],null],[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"contribution\\\"],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"primary break-all\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"_contributionCustomType\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"flex mt2 mt0-sm\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"h-100 dn db-sm br b--secondary-20 mh4\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[8,[39,32],null,[[\\\"@onClick\\\",\\\"@isDisabled\\\"],[[28,[37,9],[[30,0,[\\\"openPreviewDialog\\\"]],\\\"voucher\\\",[30,0,[\\\"model\\\",\\\"contribution\\\"]]],null],[28,[37,3],[[30,0,[\\\"model\\\",\\\"contribution\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,14,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isVoucherPreviewError\\\"]],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"w-100 h-100 flex justify-center items-center bg-secondary--20\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,11],[\\\"placeholder-image\\\"],[[\\\"class\\\"],[\\\"secondary--40\\\"]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"iframe\\\"],[14,1,\\\"voucher-thumbnail-iframe\\\"],[14,\\\"title\\\",\\\"voucher-thumbnail-iframe\\\"],[14,0,\\\"w-100 h-100 br1\\\"],[14,\\\"frameBorder\\\",\\\"0\\\"],[12],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[14]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex justify-between mb2 mt4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex items-center font-lg\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"settings\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"mr05\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,2],[\\\"triggerEmailCampaigns.steps.configurations.title\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"          \\\"],[8,[39,12],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"edit\\\",[28,[37,2],[\\\"global.actions.edit\\\"],null],true,[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"configuration\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"configurationsMeta\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex font-sm mt2 bg-secondary--10 primary pa3 br1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,0],[16,0,[29,[\\\"secondary mr3 \\\",[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"text-underline cpointer\\\"]]]],[24,\\\"role\\\",\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"openEditorStep\\\"]],\\\"configuration\\\"],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[30,15,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[28,[37,18],[[30,15,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null],[[[41,[28,[37,24],[[30,15,[\\\"type\\\"]],\\\"array\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"flex flex-wrap ml3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[28,[37,17],[[28,[37,18],[[30,15,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null]],null]],null],null,[[[1,\\\"                  \\\"],[8,[39,33],null,[[\\\"@classNames\\\",\\\"@theme\\\",\\\"@isReadOnly\\\"],[\\\"mr1 mb1\\\",\\\"grey\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[30,16]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[16]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,24],[[30,15,[\\\"type\\\"]],\\\"boolean\\\"],null],[[[1,\\\"              \\\"],[8,[39,34],null,[[\\\"@class\\\",\\\"@value\\\",\\\"@isReadOnly\\\"],[\\\"ml3\\\",[28,[37,17],[[28,[37,18],[[30,15,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"primary ml3\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,19],[[28,[37,20],null,[[\\\"value\\\",\\\"type\\\"],[[28,[37,17],[[28,[37,18],[[30,15,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null],[30,15,[\\\"type\\\"]]]]],[30,0,[\\\"configurationValueOptions\\\"]]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]],[]]]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"primary mb1 ml3\\\"],[12],[1,\\\"\\\\n              -\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[15]],null]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"    \\\"],[8,[30,2,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,12],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"edit\\\",true,[30,0,[\\\"transitionToEdit\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[2]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,35],null,[[\\\"@stateKey\\\",\\\"@onClose\\\",\\\"@model\\\"],[[30,0,[\\\"stateKey\\\"]],[30,0,[\\\"toggleDrawer\\\"]],[30,0,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isSendTestEmailDialogOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,36],null,[[\\\"@model\\\",\\\"@campaignId\\\",\\\"@onClose\\\",\\\"@isBulk\\\",\\\"@campaignType\\\"],[[30,0,[\\\"selectedModel\\\"]],[30,0,[\\\"model\\\",\\\"id\\\"]],[28,[37,4],[[28,[37,37],[[30,0,[\\\"isSendTestEmailDialogOpen\\\"]]],null],false],null],[30,0,[\\\"isBulkAction\\\"]],[30,1,[\\\"type\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isVoucherPreviewDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@title\\\",\\\"@availableLanguages\\\",\\\"@language\\\",\\\"@isLoading\\\",\\\"@onLanguageChange\\\",\\\"@onClose\\\"],[[28,[37,2],[\\\"triggerEmailCampaigns.steps.contribution.previewDialog.title\\\"],null],[30,0,[\\\"selectedVoucherModel\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"selectedVoucherPreviewLanguage\\\"]],[30,0,[\\\"openPreviewDialog\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"openPreviewDialog\\\"]],\\\"voucher\\\",[30,0,[\\\"selectedVoucherModel\\\"]]],null],[28,[37,4],[[28,[37,37],[[30,0,[\\\"isVoucherPreviewDialog\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,17,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"iframe\\\"],[15,\\\"title\\\",[28,[37,2],[\\\"triggerEmailCampaigns.steps.voucher.previewDialog.title\\\"],null]],[14,1,\\\"voucher-preview-iframe\\\"],[14,0,\\\"w-100 h-100 dn flex flex-column flex-grow-1\\\"],[14,\\\"frameBorder\\\",\\\"0\\\"],[12],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[17]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEmailPreviewDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@title\\\",\\\"@availableLanguages\\\",\\\"@language\\\",\\\"@isLoading\\\",\\\"@onLanguageChange\\\",\\\"@onClose\\\"],[[28,[37,2],[\\\"triggerEmailCampaigns.steps.emails.email.previewDialog.title\\\"],null],[30,0,[\\\"selectedEmailModel\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"selectedEmailPreviewLanguage\\\"]],[30,0,[\\\"openPreviewDialog\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"openPreviewDialog\\\"]],\\\"email\\\",[30,0,[\\\"selectedEmailModel\\\"]]],null],[28,[37,4],[[28,[37,37],[[30,0,[\\\"isEmailPreviewDialog\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,18,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"iframe\\\"],[15,\\\"title\\\",[28,[37,2],[\\\"triggerEmailCampaigns.steps.emails.email.previewDialog.title\\\"],null]],[14,1,\\\"email-preview-iframe\\\"],[14,0,\\\"w-100 h-100 dn flex flex-column flex-grow-1\\\"],[14,\\\"frameBorder\\\",\\\"0\\\"],[12],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[18]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,39],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@isOpen\\\",\\\"@isCampaignCreatable\\\",\\\"@model\\\",\\\"@onClose\\\"],[[28,[37,2],[\\\"triggerEmailCampaigns.createDialog.title\\\"],null],[28,[37,2],[\\\"triggerEmailCampaigns.createDialog.description\\\"],null],[30,0,[\\\"isCampaignInformationDialog\\\"]],false,[30,0,[\\\"model\\\"]],[28,[37,4],[[28,[37,37],[[30,0,[\\\"isCampaignInformationDialog\\\"]]],null],false],null]]],null]],[\\\"@model\\\",\\\"view\\\",\\\"@onClose\\\",\\\"nav\\\",\\\"pop\\\",\\\"triggerSetting\\\",\\\"emailSeries\\\",\\\"index\\\",\\\"list\\\",\\\"email\\\",\\\"emailIndex\\\",\\\"controls\\\",\\\"menu\\\",\\\"preview\\\",\\\"config\\\",\\\"item\\\",\\\"preview\\\",\\\"preview\\\"],false,[\\\"ui-content-views\\\",\\\"unless\\\",\\\"t\\\",\\\"not\\\",\\\"fn\\\",\\\"did-insert\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-lang-select\\\",\\\"perform\\\",\\\"or\\\",\\\"svg-jar\\\",\\\"ui-button\\\",\\\"ui-popover\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ui-icon-button\\\",\\\"get\\\",\\\"array-find\\\",\\\"amc-campaign-configuration-value\\\",\\\"hash\\\",\\\"concat\\\",\\\"on\\\",\\\"inc\\\",\\\"equal\\\",\\\"ui-list\\\",\\\"includes\\\",\\\"ui-status\\\",\\\"ui-item-menu\\\",\\\"did-update\\\",\\\"ui-badge\\\",\\\"currency\\\",\\\"amc-campaign/email-campaign/preview\\\",\\\"ui-chip\\\",\\\"ui-switch\\\",\\\"amc-campaign/email-campaign/information-drawer\\\",\\\"amc-campaign/test-email-dialog\\\",\\\"mut\\\",\\\"ui-preview-dialog\\\",\\\"amc-campaign/trigger-email-campaign/create-dialog\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/trigger-email-campaign/detail-view.hbs\",\n    \"isStrictMode\": false\n  });\n  const STATE_KEY = 'information-drawer';\n  let AmcCampaignTriggerEmailCampaignDetailView = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberConcurrency.task)(function* (locale) {\n    if (locale === this.currentLocale) {\n      return;\n    }\n    this.isVoucherPreviewError = false;\n    this.uiAppSettings.setLocale(locale);\n    yield this.model.reload({\n      adapterOptions: {\n        useNewApi: true\n      }\n    });\n    yield this.model.fetchMeta.perform(locale);\n  }), _dec4 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const response = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.organizationId}/lead-campaigns`);\n      if (!response.ok) throw new Error();\n      const {\n        campaigns\n      } = yield response.json();\n      this._selectableLeadEmailCampaigns = campaigns;\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _dec6 = (0, _emberArgTypes.arg)(_propTypes.func), _dec7 = (0, _emberArgTypes.arg)(_propTypes.func), _dec8 = (0, _emberArgTypes.arg)(_propTypes.func), _dec9 = (0, _emberConcurrency.task)(function* (type, model, selectedLanguage) {\n    let language = selectedLanguage && typeof selectedLanguage === 'string' ? selectedLanguage : model.language || this.currentLocale;\n    const baseUrl = `${_environment.default.APP.publicHost}/${this.organizationId}`;\n    let url;\n    if (type === 'voucher') {\n      var _this$selectedVoucher;\n      this.isVoucherPreviewDialog = true;\n      this.selectedVoucherPreviewLanguage = language;\n      this.selectedVoucherModel = model;\n      if (((_this$selectedVoucher = this.selectedVoucherModel) === null || _this$selectedVoucher === void 0 || (_this$selectedVoucher = _this$selectedVoucher.availableLanguages) === null || _this$selectedVoucher === void 0 ? void 0 : _this$selectedVoucher.length) === 1) {\n        language = this.selectedVoucherModel.availableLanguages[0];\n        this.selectedVoucherPreviewLanguage = this.selectedVoucherModel.availableLanguages[0];\n      }\n      url = `${baseUrl}/contributions/${model.id}/preview`;\n    } else if (type === 'email') {\n      var _this$selectedEmailMo;\n      this.isEmailPreviewDialog = true;\n      this.selectedEmailPreviewLanguage = language;\n      this.selectedEmailModel = model;\n      if (((_this$selectedEmailMo = this.selectedEmailModel) === null || _this$selectedEmailMo === void 0 || (_this$selectedEmailMo = _this$selectedEmailMo.availableLanguages) === null || _this$selectedEmailMo === void 0 ? void 0 : _this$selectedEmailMo.length) === 1) {\n        language = this.selectedEmailModel.availableLanguages[0];\n        this.selectedEmailPreviewLanguage = this.selectedEmailModel.availableLanguages[0];\n      }\n      url = `${baseUrl}/emails/${model.id}/preview`;\n    }\n    try {\n      // Fetch and display content for preview dialog\n      const response = yield this.authenticatedFetch.fetch(url, {\n        headers: {\n          'Accept-Language': language\n        }\n      });\n      if (!response || !response.ok) {\n        throw new Error();\n      }\n      const html = yield response.text();\n      const iframe = document.getElementById(`${type}-preview-iframe`);\n      const iframeDocument = iframe.contentDocument;\n      iframeDocument.open();\n      iframeDocument.write((0, _string.htmlSafe)(html));\n      iframeDocument.close();\n    } catch (error) {\n      if (type === 'voucher') {\n        this.isVoucherPreviewDialog = false;\n      } else if (type === 'email') {\n        this.isEmailPreviewDialog = false;\n      }\n    }\n  }), _class = class AmcCampaignTriggerEmailCampaignDetailView extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor2, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiState\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor7, this);\n      _defineProperty(this, \"stateKey\", STATE_KEY);\n      _initializerDefineProperty(this, \"model\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isVoucherPreviewDialog\", _descriptor10, this);\n      _initializerDefineProperty(this, \"selectedVoucherModel\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isEmailPreviewDialog\", _descriptor12, this);\n      _initializerDefineProperty(this, \"selectedEmailModel\", _descriptor13, this);\n      _initializerDefineProperty(this, \"isSendTestEmailDialogOpen\", _descriptor14, this);\n      _initializerDefineProperty(this, \"isCampaignInformationDialog\", _descriptor15, this);\n      _initializerDefineProperty(this, \"isBulkAction\", _descriptor16, this);\n      _initializerDefineProperty(this, \"selectedModel\", _descriptor17, this);\n      _initializerDefineProperty(this, \"_selectableLeadEmailCampaigns\", _descriptor18, this);\n      _initializerDefineProperty(this, \"isVoucherPreviewError\", _descriptor19, this);\n      _initializerDefineProperty(this, \"selectedEmailPreviewLanguage\", _descriptor20, this);\n      _initializerDefineProperty(this, \"selectedVoucherPreviewLanguage\", _descriptor21, this);\n      _initializerDefineProperty(this, \"changeLanguage\", _descriptor22, this);\n      _initializerDefineProperty(this, \"fetchLeadCampaigns\", _descriptor23, this);\n      _initializerDefineProperty(this, \"onClose\", _descriptor24, this);\n      _initializerDefineProperty(this, \"onPublish\", _descriptor25, this);\n      _initializerDefineProperty(this, \"setInitialEditorStep\", _descriptor26, this);\n      _initializerDefineProperty(this, \"createEmail\", _descriptor27, this);\n      _initializerDefineProperty(this, \"openPreviewDialog\", _descriptor28, this);\n    }\n    get currentLocale() {\n      var _this$uiAppSettings;\n      return (_this$uiAppSettings = this.uiAppSettings) === null || _this$uiAppSettings === void 0 ? void 0 : _this$uiAppSettings.currentLocale;\n    }\n    get organizationId() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id;\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    get isLeadCampaign() {\n      return this.model.type === 'lead-campaign';\n    }\n    get isLoading() {\n      var _this$model;\n      if (!((_this$model = this.model) !== null && _this$model !== void 0 && _this$model.language)) {\n        return true;\n      }\n      return false;\n    }\n    get emailSeries() {\n      if (this.model.emailSeries.length <= 1) {\n        return this.model.emailSeries;\n      }\n      return this.model.emailSeries.toArray().sort((a, b) => a.offsetInDays - b.offsetInDays);\n    }\n    get triggerConfigurationsMeta() {\n      var _this$model2, _this$model3;\n      if (!((_this$model2 = this.model) !== null && _this$model2 !== void 0 && _this$model2.meta) || ((_this$model3 = this.model) === null || _this$model3 === void 0 || (_this$model3 = _this$model3.meta) === null || _this$model3 === void 0 || (_this$model3 = _this$model3.configurations) === null || _this$model3 === void 0 ? void 0 : _this$model3.length) <= 0) {\n        return [];\n      }\n      const key = Object.keys(this.model.meta).sort()[0];\n      const configurationKeys = ['utm_campaign_postfix', 'interrupts_email_sending'];\n      const configurations = this.model.meta[key].configurations.filter(config => !configurationKeys.includes(config.key));\n      return configurations === null || configurations === void 0 ? void 0 : configurations.reverse();\n    }\n    get configurationsMeta() {\n      var _this$model4, _this$model5;\n      if (!((_this$model4 = this.model) !== null && _this$model4 !== void 0 && _this$model4.meta) || ((_this$model5 = this.model) === null || _this$model5 === void 0 || (_this$model5 = _this$model5.meta) === null || _this$model5 === void 0 || (_this$model5 = _this$model5.configurations) === null || _this$model5 === void 0 ? void 0 : _this$model5.length) <= 0) {\n        return [];\n      }\n      const key = Object.keys(this.model.meta).sort()[0];\n      const configurationKeys = ['utm_campaign_postfix', 'interrupts_email_sending'];\n      const configurations = this.model.meta[key].configurations.filter(config => configurationKeys.includes(config.key));\n      return configurations;\n    }\n\n    /**\n     * computed options used to format the configuration values\n     *\n     * @computed configurationValueOptions\n     * @returns {Object}\n     */\n    get configurationValueOptions() {\n      return {\n        currency: this.uiAppSettings.currency,\n        hideLabels: true\n      };\n    }\n    get triggerConsiderationPeriod() {\n      if (!this.model.trigger.startsAt) {\n        return null;\n      }\n      const {\n        startsAt,\n        endsAt\n      } = this.model.trigger;\n      const dateFormat = 'dd.MM.yyyy';\n      const timeFormat = 'HH:mm';\n      const startDate = (0, _format.default)((0, _dateUtil.parseDate)(startsAt), dateFormat, {\n        locale: _locale.de\n      });\n      const startTime = (0, _format.default)((0, _dateUtil.parseDate)(startsAt), timeFormat, {\n        locale: _locale.de\n      });\n      if (!endsAt) {\n        return `${startDate}, ${startTime}`;\n      }\n      const endDate = (0, _format.default)((0, _dateUtil.parseDate)(endsAt), dateFormat, {\n        locale: _locale.de\n      });\n      const endTime = (0, _format.default)((0, _dateUtil.parseDate)(endsAt), timeFormat, {\n        locale: _locale.de\n      });\n      return `${startDate}, ${startTime} - ${endDate}, ${endTime}`;\n    }\n    get selectedLeadCampaigns() {\n      var _this$_selectableLead;\n      const campaigns = this.model.trigger.campaigns || [];\n      if (((_this$_selectableLead = this._selectableLeadEmailCampaigns) === null || _this$_selectableLead === void 0 ? void 0 : _this$_selectableLead.length) === 0 || campaigns.length === 0) {\n        return [];\n      }\n      const selectedCampaigns = [];\n      campaigns.forEach(_campaignValue => {\n        const campaign = this._selectableLeadEmailCampaigns.find(selectableCampaign => selectableCampaign.value === _campaignValue);\n        if (campaign) {\n          selectedCampaigns.push(campaign);\n        }\n      });\n      return selectedCampaigns;\n    }\n    get selectedDeliveryTime() {\n      if (!this.model.trigger || !this.model.trigger.deliveryTime) {\n        return null;\n      }\n      const {\n        type,\n        offsetInDays,\n        dayTime\n      } = this.model.trigger.deliveryTime;\n      if (type === 'immediately') {\n        return this.intl.t('triggerEmailCampaigns.steps.trigger.deliveryTimeOptions.immediately');\n      }\n      if (offsetInDays === 0) {\n        if (dayTime) {\n          return this.intl.t('triggerEmailCampaigns.steps.trigger.deliveryToday', {\n            time: dayTime\n          });\n        } else {\n          return this.intl.t('triggerEmailCampaigns.steps.trigger.deliveryTimeOptions.today');\n        }\n      }\n      if (offsetInDays === 1) {\n        if (dayTime) {\n          return this.intl.t('triggerEmailCampaigns.steps.trigger.deliveryTomorrow', {\n            time: dayTime\n          });\n        } else {\n          return this.intl.t('triggerEmailCampaigns.steps.trigger.deliveryTimeOptions.tomorrow');\n        }\n      }\n      if (dayTime) {\n        return this.intl.t('triggerEmailCampaigns.steps.trigger.deliveryDays', {\n          count: offsetInDays,\n          time: dayTime\n        });\n      } else {\n        return this.intl.t('triggerEmailCampaigns.steps.trigger.deliveryTimeOptions.days', {\n          count: offsetInDays\n        });\n      }\n    }\n    get defaultGreetingMessage() {\n      var _this$model6, _this$model7, _this$model$meta;\n      if (!((_this$model6 = this.model) !== null && _this$model6 !== void 0 && _this$model6.meta) || !((_this$model7 = this.model) !== null && _this$model7 !== void 0 && (_this$model7 = _this$model7.meta) !== null && _this$model7 !== void 0 && (_this$model7 = _this$model7[this.model.language]) !== null && _this$model7 !== void 0 && (_this$model7 = _this$model7.contribution) !== null && _this$model7 !== void 0 && _this$model7.greeting)) {\n        return '-';\n      }\n      return (_this$model$meta = this.model.meta) === null || _this$model$meta === void 0 ? void 0 : _this$model$meta[this.model.language].contribution.greeting;\n    }\n    get _contributionGreeting() {\n      var _this$model$contribut;\n      if ((_this$model$contribut = this.model.contribution) !== null && _this$model$contribut !== void 0 && _this$model$contribut.greeting) {\n        return (0, _string.htmlSafe)(_dompurify.default.sanitize(this.model.contribution.greeting));\n      } else if (this.model.contribution) {\n        return (0, _string.htmlSafe)(_dompurify.default.sanitize(this.defaultGreetingMessage));\n      }\n      return '-';\n    }\n    get _contributionCustomType() {\n      var _this$model$contribut2;\n      if ((_this$model$contribut2 = this.model.contribution) !== null && _this$model$contribut2 !== void 0 && _this$model$contribut2.customType) {\n        return (0, _string.htmlSafe)(_dompurify.default.sanitize(this.model.contribution.customType));\n      }\n      return null;\n    }\n    get _contributionPolicies() {\n      var _this$model$contribut3;\n      if ((_this$model$contribut3 = this.model.contribution) !== null && _this$model$contribut3 !== void 0 && _this$model$contribut3.policies) {\n        return (0, _string.htmlSafe)(_dompurify.default.sanitize(this.model.contribution.policies));\n      }\n      return '-';\n    }\n    async setup() {\n      if (this.isLeadCampaign) {\n        await this.fetchLeadCampaigns.perform();\n      }\n    }\n    transitionToEdit() {\n      if (this.isReadOnly) return;\n      this.router.transitionTo('instance.campaigns.trigger-email.detail.index.edit', this.model.id);\n      this.setInitialEditorStep('trigger');\n    }\n    createFirstEmail(emailSeries) {\n      if (this.isReadOnly) return;\n      this.router.transitionTo('instance.campaigns.trigger-email.detail.index.edit', this.model.id);\n      this.setInitialEditorStep(`emails.${emailSeries.id}`);\n      this.createEmail(emailSeries, `emails.${emailSeries.id}`);\n    }\n    openEmail(emailSeries, email) {\n      if (this.isReadOnly) return;\n      this.router.transitionTo('instance.campaigns.trigger-email.detail.index.edit', this.model.id);\n      this.setInitialEditorStep(`emails.${emailSeries.id}.${email.id}`);\n    }\n    openEmailSeries(emailSeries) {\n      if (this.isReadOnly) return;\n      this.router.transitionTo('instance.campaigns.trigger-email.detail.index.edit', this.model.id);\n      this.setInitialEditorStep(`emails.${emailSeries.id}`);\n    }\n    openEditorStep(step) {\n      if (this.isReadOnly) return;\n      this.router.transitionTo('instance.campaigns.trigger-email.detail.index.edit', this.model.id);\n      this.setInitialEditorStep(step);\n    }\n    toggleDrawer() {\n      this.uiState.getState(this.stateKey).toggle();\n    }\n    async initVoucherPreview(model) {\n      // Avoid that preview is fetched when content-wizard is opened\n      if (!this.router.isActive('instance.campaigns.trigger-email.detail.index.index')) {\n        return;\n      }\n      if (!this.model.contribution) {\n        const iframe = document.getElementById('voucher-thumbnail-iframe');\n        if (!(iframe !== null && iframe !== void 0 && iframe.contentDocument)) {\n          return;\n        }\n        const iframeDocument = iframe.contentDocument;\n        iframeDocument.open();\n        iframeDocument.write((0, _string.htmlSafe)(''));\n        iframeDocument.close();\n        return;\n      }\n      this.isVoucherPreviewError = false;\n      const baseUrl = `${_environment.default.APP.publicHost}/${this.organizationId}`;\n      const url = `${baseUrl}/contributions/${model.id}/preview`;\n      const language = this.currentLocale;\n      try {\n        // Fetch and display content for preview dialog\n        const response = await this.authenticatedFetch.fetch(url, {\n          headers: {\n            'Accept-Language': language\n          }\n        });\n        if (!response || !response.ok) {\n          throw new Error();\n        }\n        const html = await response.text();\n        const iframe = document.getElementById('voucher-thumbnail-iframe');\n        const iframeDocument = iframe.contentDocument;\n        iframeDocument.open();\n        iframeDocument.write((0, _string.htmlSafe)(html));\n        iframeDocument.close();\n      } catch (error) {\n        this.isVoucherPreviewError = true;\n      }\n    }\n    openSendTestEmailDialog(model, isBulk) {\n      this.isBulkAction = isBulk;\n      this.selectedModel = model;\n      this.isSendTestEmailDialogOpen = true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isVoucherPreviewDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"selectedVoucherModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isEmailPreviewDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"selectedEmailModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"isSendTestEmailDialogOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isCampaignInformationDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"isBulkAction\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"selectedModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"_selectableLeadEmailCampaigns\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"isVoucherPreviewError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"selectedEmailPreviewLanguage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"selectedVoucherPreviewLanguage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"changeLanguage\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"fetchLeadCampaigns\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"onPublish\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"setInitialEditorStep\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"createEmail\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transitionToEdit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"transitionToEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createFirstEmail\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createFirstEmail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openEmail\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openEmail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openEmailSeries\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openEmailSeries\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openEditorStep\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openEditorStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleDrawer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDrawer\"), _class.prototype), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"openPreviewDialog\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"initVoucherPreview\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"initVoucherPreview\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openSendTestEmailDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openSendTestEmailDialog\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignTriggerEmailCampaignDetailView);\n});","define(\"additive-mc/components/amc-campaign/trigger-email-campaign/information-drawer\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"prop-types\", \"ember-arg-types\"], function (_exports, _component, _templateFactory, _component2, _propTypes, _emberArgTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiNavigationDrawer\n    @navDrawerStateKey={{this.stateKey}}\n    @isRight={{true}}\n    @isPermanent={{false}} as |navDrawer|\n  >\n    <navDrawer.navbar\n      @title={{t \"global.properties.information\"}}\n      @isMenuHidden={{true}}\n      @onClose={{this.onClose}}\n      @classNames=\"ui-navigation-bar--full-screen\"\n    />\n  \n    <navDrawer.content>\n      <div class=\"flex flex-column\">\n        <div class=\"font-lg primary\">\n          {{this.model.name}}\n        </div>\n        <div class=\"font-sm font-medium primary mt3\">\n          {{t \"triggerEmailCampaigns.campaignInformation\"}}\n        </div>\n  \n        <div class=\"bt b--secondary-10 mv2\"></div>\n  \n        <div class=\"flex font-sm\">\n          <div class=\"flex-column flex-grow-1\">\n            <div class=\"secondary pb1\">\n              {{t \"triggerEmailCampaigns.configure.trackingCode\"}}\n            </div>\n  \n            {{#if this.hasCampaignStartDate}}\n              <div class=\"secondary pb1\">\n                {{t \"triggerEmailCampaigns.campaignStart\"}}\n              </div>\n            {{/if}}\n  \n            <div class=\"secondary pb1\">\n              {{t \"triggerEmailCampaigns.campaignEnd\"}}\n            </div>\n          </div>\n  \n          <div class=\"flex-column flex-grow-1\">\n            <div class=\"primary pb1\">\n              {{this.model.code}}\n            </div>\n  \n            {{#if this.hasCampaignStartDate}}\n              <div class=\"primary pb1\">\n                {{date-format this.model.startsAt}}\n              </div>\n            {{/if}}\n  \n            <div class=\"primary pb1\">\n              {{#if this.hasCampaignEndDate}}\n                {{date-format this.model.endsAt}}\n              {{else}}\n                {{t \"triggerEmailCampaigns.unlimitedDuration\"}}\n              {{/if}}\n            </div>\n          </div>\n        </div>\n      </div>\n    </navDrawer.content>\n  </UiNavigationDrawer>\n  */\n  {\n    \"id\": \"2B1TjZ2R\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@navDrawerStateKey\\\",\\\"@isRight\\\",\\\"@isPermanent\\\"],[[30,0,[\\\"stateKey\\\"]],true,false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,[[\\\"@title\\\",\\\"@isMenuHidden\\\",\\\"@onClose\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"global.properties.information\\\"],null],true,[30,0,[\\\"onClose\\\"]],\\\"ui-navigation-bar--full-screen\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-lg primary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"name\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm font-medium primary mt3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"triggerEmailCampaigns.campaignInformation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"bt b--secondary-10 mv2\\\"],[12],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex font-sm\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex-column flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"secondary pb1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"triggerEmailCampaigns.configure.trackingCode\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasCampaignStartDate\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"secondary pb1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"triggerEmailCampaigns.campaignStart\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"secondary pb1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"triggerEmailCampaigns.campaignEnd\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"flex-column flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"primary pb1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"model\\\",\\\"code\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasCampaignStartDate\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"primary pb1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[[30,0,[\\\"model\\\",\\\"startsAt\\\"]]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"primary pb1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasCampaignEndDate\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,3],[[30,0,[\\\"model\\\",\\\"endsAt\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,1],[\\\"triggerEmailCampaigns.unlimitedDuration\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"navDrawer\\\"],false,[\\\"ui-navigation-drawer\\\",\\\"t\\\",\\\"if\\\",\\\"date-format\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/trigger-email-campaign/information-drawer.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   *  Component used to show information about the current trigger email campaign\n   *\n   * @class AmcCampaignTriggerEmailCampaignInformationDrawer\n   */\n  let AmcCampaignTriggerEmailCampaignInformationDrawer = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignTriggerEmailCampaignInformationDrawer extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"stateKey\", _descriptor, this);\n      _initializerDefineProperty(this, \"model\", _descriptor2, this);\n      _initializerDefineProperty(this, \"onClose\", _descriptor3, this);\n    }\n    get hasCampaignEndDate() {\n      if (!this.model.isEndsAtEnabled) {\n        return false;\n      }\n      return this.model.endsAt ? true : false;\n    }\n    get hasCampaignStartDate() {\n      if (!this.model.isStartsAtEnabled) {\n        return false;\n      }\n      return this.model.startsAt ? true : false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"stateKey\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignTriggerEmailCampaignInformationDrawer);\n});","define(\"additive-mc/components/amc-campaign/trigger-email-campaign/publish-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"ember-concurrency\", \"ember-arg-types\", \"@glimmer/tracking\", \"prop-types\", \"@ember/string\", \"lodash.clonedeep\", \"@ember/object/computed\", \"date-fns/format\", \"date-fns/locale\", \"dompurify\", \"@additive-apps/ui/utils/date-util\", \"additive-mc/utils/currency-serialization\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _emberConcurrency, _emberArgTypes, _tracking, _propTypes, _string, _lodash, _computed, _format, _locale, _dompurify, _dateUtil, _currencySerialization) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{t \"triggerEmailCampaigns.publishDialog.title\"}}\n    @subtitle={{this.model.name}}\n    @onClose={{fn this.onClose false}}\n    @isBackButton={{this.hasBackButton}}\n    @size=\"lg\"\n    as |m|\n  >\n    <m.header />\n    <m.content @class=\"flex flex-grow-1\" {{did-insert (perform this.setup)}} as |c|>\n      <c.body class=\"pb3\">\n        <div class=\"mb3\">\n          {{t \"triggerEmailCampaigns.publishDialog.description\"}}\n        </div>\n  \n        <div class=\"mb3\">\n          <div class=\"font-sm font-medium secondary mb1\">\n            {{t \"triggerEmailCampaigns.publishDialog.dependencies.title\"}}\n          </div>\n  \n          {{#if this._isLoading}}\n            <UiSkeleton @items={{1}} @cardHeight={{72}} @gap={{4}} />\n          {{else}}\n            <AmcCampaign::EmailCampaign::PublishDialog::DependencyCheck\n              @validations={{this.dependencyValidations}}\n              @isExpanded={{this.isDependencyCheckExpanded}}\n              @intlBaseKey=\"triggerEmailCampaigns\"\n            />\n          {{/if}}\n        </div>\n  \n        <div class=\"mb3\">\n          <div class=\"font-sm font-medium secondary mb1\">\n            {{t \"triggerEmailCampaigns.publishDialog.globalChanges\"}}\n          </div>\n  \n          {{#if this._isLoading}}\n            <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{52}} @gap={{4}} />\n          {{else}}\n            <AmcCampaign::EmailCampaign::PublishDialog::ChangesList\n              @title={{t \"triggerEmailCampaigns.publishDialog.globalChanges\"}}\n              @hasLanguage={{false}}\n              @intlBaseKey=\"triggerEmailCampaigns\"\n              @changes={{this.globalChanges}}\n              @validations={{this.globalValidations}}\n              @isExpanded={{this.isGlobalErrorsExpandend}}\n            />\n          {{/if}}\n        </div>\n  \n        <div class=\"mb3\">\n          <div class=\"font-sm font-medium secondary mb1\">\n            {{t \"triggerEmailCampaigns.publishDialog.languages\"}}\n          </div>\n  \n          {{#if this._isLoading}}\n            <UiSkeleton @items={{5}} @itemsPerRow={{1}} @cardHeight={{52}} @gap={{4}} />\n          {{else}}\n            {{#each-in this.languageSpecificChanges as |language changes|}}\n              <AmcCampaign::EmailCampaign::PublishDialog::ChangesList\n                @language={{language}}\n                @changes={{changes}}\n                @intlBaseKey=\"triggerEmailCampaigns\"\n                @globalValidations={{this.globalValidations}}\n                @validations={{get this.languageSpecificValidations language}}\n                @onSelect={{this.onLanguageSelect}}\n                @publishedLanguages={{this.model.publishedLanguages}}\n              />\n            {{/each-in}}\n          {{/if}}\n        </div>\n  \n        <AmcCampaign::EmailCampaign::PublishDialog::ScheduleSettings\n          @model={{this.model}}\n          @isLoading={{this._isLoading}}\n        />\n      </c.body>\n    </m.content>\n    <m.footer class=\"flex {{if this.hasBackButton 'justify-end' 'justify-between'}}\">\n      {{#unless this.hasBackButton}}\n        <UiActionButton\n          @label={{\"Open Editor\"}}\n          @icon=\"popup\"\n          @onClick={{fn this.onClose false false true}}\n        />\n      {{/unless}}\n  \n      <UiButton\n        @label={{if\n          this.hasBackButton\n          (t \"global.actions.saveAndPublish\")\n          (t \"global.actions.publish\")\n        }}\n        @icon=\"publish\"\n        @onClick={{this.publish}}\n      />\n    </m.footer>\n  </UiModal>\n  */\n  {\n    \"id\": \"a0zVMxh5\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@subtitle\\\",\\\"@onClose\\\",\\\"@isBackButton\\\",\\\"@size\\\"],[[28,[37,1],[\\\"triggerEmailCampaigns.publishDialog.title\\\"],null],[30,0,[\\\"model\\\",\\\"name\\\"]],[28,[37,2],[[30,0,[\\\"onClose\\\"]],false],null],[30,0,[\\\"hasBackButton\\\"]],\\\"lg\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],[[4,[38,3],[[28,[37,4],[[30,0,[\\\"setup\\\"]]],null]],null]],[[\\\"@class\\\"],[\\\"flex flex-grow-1\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],[[24,0,\\\"pb3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mb3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"triggerEmailCampaigns.publishDialog.description\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mb3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary mb1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"triggerEmailCampaigns.publishDialog.dependencies.title\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_isLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,72,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,7],null,[[\\\"@validations\\\",\\\"@isExpanded\\\",\\\"@intlBaseKey\\\"],[[30,0,[\\\"dependencyValidations\\\"]],[30,0,[\\\"isDependencyCheckExpanded\\\"]],\\\"triggerEmailCampaigns\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mb3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary mb1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"triggerEmailCampaigns.publishDialog.globalChanges\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_isLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,1,52,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,8],null,[[\\\"@title\\\",\\\"@hasLanguage\\\",\\\"@intlBaseKey\\\",\\\"@changes\\\",\\\"@validations\\\",\\\"@isExpanded\\\"],[[28,[37,1],[\\\"triggerEmailCampaigns.publishDialog.globalChanges\\\"],null],false,\\\"triggerEmailCampaigns\\\",[30,0,[\\\"globalChanges\\\"]],[30,0,[\\\"globalValidations\\\"]],[30,0,[\\\"isGlobalErrorsExpandend\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mb3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary mb1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"triggerEmailCampaigns.publishDialog.languages\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_isLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[5,1,52,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,10],[[30,0,[\\\"languageSpecificChanges\\\"]]],null],null,[[[1,\\\"            \\\"],[8,[39,8],null,[[\\\"@language\\\",\\\"@changes\\\",\\\"@intlBaseKey\\\",\\\"@globalValidations\\\",\\\"@validations\\\",\\\"@onSelect\\\",\\\"@publishedLanguages\\\"],[[30,4],[30,3],\\\"triggerEmailCampaigns\\\",[30,0,[\\\"globalValidations\\\"]],[28,[37,11],[[30,0,[\\\"languageSpecificValidations\\\"]],[30,4]],null],[30,0,[\\\"onLanguageSelect\\\"]],[30,0,[\\\"model\\\",\\\"publishedLanguages\\\"]]]],null],[1,\\\"\\\\n\\\"]],[3,4]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,12],null,[[\\\"@model\\\",\\\"@isLoading\\\"],[[30,0,[\\\"model\\\"]],[30,0,[\\\"_isLoading\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],[[16,0,[29,[\\\"flex \\\",[52,[30,0,[\\\"hasBackButton\\\"]],\\\"justify-end\\\",\\\"justify-between\\\"]]]]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"hasBackButton\\\"]]],[[[1,\\\"      \\\"],[8,[39,14],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[\\\"Open Editor\\\",\\\"popup\\\",[28,[37,2],[[30,0,[\\\"onClose\\\"]],false,false,true],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[39,15],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[52,[30,0,[\\\"hasBackButton\\\"]],[28,[37,1],[\\\"global.actions.saveAndPublish\\\"],null],[28,[37,1],[\\\"global.actions.publish\\\"],null]],\\\"publish\\\",[30,0,[\\\"publish\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"m\\\",\\\"c\\\",\\\"changes\\\",\\\"language\\\"],false,[\\\"ui-modal\\\",\\\"t\\\",\\\"fn\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"amc-campaign/email-campaign/publish-dialog/dependency-check\\\",\\\"amc-campaign/email-campaign/publish-dialog/changes-list\\\",\\\"each\\\",\\\"-each-in\\\",\\\"get\\\",\\\"amc-campaign/email-campaign/publish-dialog/schedule-settings\\\",\\\"unless\\\",\\\"ui-action-button\\\",\\\"ui-button\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/trigger-email-campaign/publish-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignTriggerEmailCampaignPublishDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _computed.or)('setup.isRunning', '_isSaving'), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _dec5 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    const baseUrl = this.uiTransactionManager.baseUrl;\n    const url = `${baseUrl}/${this.uiTransactionManager.transactionId}/validate`;\n    try {\n      tasks.push(this.authenticatedFetch.fetch(url, {\n        headers: {\n          'Accept-Language': this.currentUserLanguage\n        }\n      }));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const data = yield response.json();\n      if (data !== null && data !== void 0 && data.validations) {\n        this.sortValidationErrors(data === null || data === void 0 ? void 0 : data.validations);\n      }\n    } catch (error) {\n      this.uiDialog.showError();\n      yield this.onClose(false);\n    }\n  }), _dec6 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    const baseUrl = this.uiTransactionManager.baseUrl;\n    const url = `${baseUrl}/${this.uiTransactionManager.transactionId}/${this.model.type}/${this.model.id}/languages/available`;\n    try {\n      var _this$model;\n      tasks.push(this.authenticatedFetch.fetch(url));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const {\n        languages\n      } = yield response.json();\n      const publishedLanguages = ((_this$model = this.model) === null || _this$model === void 0 ? void 0 : _this$model.publishedLanguages) || [];\n      const mergedLanguages = [...new Set([...languages, ...publishedLanguages])];\n      this.availableLanguages = mergedLanguages;\n      yield this.validate.perform();\n      this.sortChanges();\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class AmcCampaignTriggerEmailCampaignPublishDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor6, this);\n      _initializerDefineProperty(this, \"router\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor8, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor9, this);\n      _initializerDefineProperty(this, \"model\", _descriptor10, this);\n      _initializerDefineProperty(this, \"hasBackButton\", _descriptor11, this);\n      _initializerDefineProperty(this, \"selectedLanguages\", _descriptor12, this);\n      _initializerDefineProperty(this, \"globalValidations\", _descriptor13, this);\n      _initializerDefineProperty(this, \"availableLanguages\", _descriptor14, this);\n      _initializerDefineProperty(this, \"languageSpecificValidations\", _descriptor15, this);\n      _initializerDefineProperty(this, \"dependencyValidations\", _descriptor16, this);\n      _initializerDefineProperty(this, \"globalChanges\", _descriptor17, this);\n      _initializerDefineProperty(this, \"isGlobalErrorsExpandend\", _descriptor18, this);\n      _initializerDefineProperty(this, \"isDependencyCheckExpanded\", _descriptor19, this);\n      _initializerDefineProperty(this, \"languageSpecificChanges\", _descriptor20, this);\n      _initializerDefineProperty(this, \"_isSaving\", _descriptor21, this);\n      _initializerDefineProperty(this, \"_isLoading\", _descriptor22, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor23, this);\n      /**\n       * Sends a validation request to check the campaign for potential errors\n       *\n       * @type {Task}\n       * @function validate\n       * @private\n       */\n      _initializerDefineProperty(this, \"validate\", _descriptor24, this);\n      _initializerDefineProperty(this, \"setup\", _descriptor25, this);\n    }\n    get hasUncommitedChanges() {\n      return this.model.active || this.uiTransactionManager.hasChanges;\n    }\n    get currentUserLanguage() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.user) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.language;\n    }\n    getTranslationKey(_ref2) {\n      let {\n        modelName,\n        propertyName,\n        returnPropertyName = false\n      } = _ref2;\n      let modelNameKey = null;\n      let propertyKey = null;\n      const triggerSettings = ['trigger', 'activity_start_date', 'activity_end_date', 'delivery_time'];\n      if (returnPropertyName && triggerSettings.includes(propertyName)) {\n        return `trigger.${propertyName}`;\n      }\n      if (modelName === 'trigger-email-campaign-email-series') {\n        modelNameKey = 'emails';\n        propertyKey = `${modelNameKey}.${propertyName}`;\n      } else if (modelName === 'trigger-email-campaign-email') {\n        modelNameKey = 'email';\n        propertyKey = `emails.${modelNameKey}.${propertyName}`;\n      } else if (modelName === 'trigger-email-campaign-contribution') {\n        modelNameKey = 'contribution';\n        propertyKey = `${modelNameKey}.${propertyName}`;\n      } else {\n        modelNameKey = 'configurations';\n        if (propertyName && triggerSettings.includes(propertyName)) {\n          modelNameKey = 'trigger';\n        }\n        propertyKey = `${modelNameKey}.${propertyName}`;\n      }\n      if (returnPropertyName) {\n        return propertyKey;\n      }\n      return modelNameKey;\n    }\n    sortChanges() {\n      const {\n        changedModels\n      } = this.uiTransactionManager;\n      const {\n        availableLanguages\n      } = this;\n      const globalChanges = [];\n      const languageSpecificChanges = [];\n      availableLanguages.forEach(language => {\n        languageSpecificChanges[language] = [];\n      });\n      changedModels.forEach(changedModel => {\n        var _modelChanges$;\n        const modelChanges = (0, _lodash.default)(changedModel.changes);\n\n        // Set \"key\" for translations\n        modelChanges.forEach(change => {\n          const key = change.key.split('.');\n          const modelName = key[0];\n          const propertyName = key[1];\n          if ((change === null || change === void 0 ? void 0 : change.modelKey) === 'configurations') {\n            const configurationItem = changedModel === null || changedModel === void 0 ? void 0 : changedModel.configurations.find(configuration => configuration.key === propertyName);\n\n            // Get configuration type from metadata\n            const key = Object.keys(this.model.meta).sort()[0];\n            const configurationMeta = this.model.meta[key].configurations;\n            const configuration = configurationMeta.find(item => item.key === configurationItem.key);\n            if (configuration !== null && configuration !== void 0 && configuration.type) {\n              change.configurationType = configuration.type;\n            }\n          }\n          const dateFormat = 'dd.MM.yyyy';\n          const timeFormat = 'HH:mm';\n          if (modelName === 'trigger-email-campaign-contribution' && change.key === 'trigger-email-campaign-contribution.value') {\n            change.old = (0, _currencySerialization.centsToAmount)(change.old);\n            change.new = (0, _currencySerialization.centsToAmount)(change.new);\n          }\n          if (change.key === 'trigger.endsAt' || change.key === 'trigger.startsAt') {\n            const formattedDate = (0, _format.default)((0, _dateUtil.parseDate)(change.old), dateFormat, {\n              locale: _locale.de\n            });\n            const formattedTime = (0, _format.default)((0, _dateUtil.parseDate)(change.old), timeFormat, {\n              locale: _locale.de\n            });\n            change.old = `${formattedDate}, ${formattedTime}`;\n          } else if (typeof change.old === 'string' && (change === null || change === void 0 ? void 0 : change.modelKey) !== 'configurations') {\n            change.old = (0, _string.htmlSafe)(_dompurify.default.sanitize(change.old));\n          }\n          if (change.key === 'trigger.endsAt' || change.key === 'trigger.startsAt') {\n            const formattedDate = (0, _format.default)((0, _dateUtil.parseDate)(change.new), dateFormat, {\n              locale: _locale.de\n            });\n            const formattedTime = (0, _format.default)((0, _dateUtil.parseDate)(change.new), timeFormat, {\n              locale: _locale.de\n            });\n            change.new = `${formattedDate}, ${formattedTime}`;\n          } else if (typeof change.new === 'string' && (change === null || change === void 0 ? void 0 : change.modelKey) !== 'configurations') {\n            change.new = (0, _string.htmlSafe)(_dompurify.default.sanitize(change.new));\n          }\n          change.key = this.getTranslationKey({\n            modelName,\n            propertyName,\n            returnPropertyName: true\n          });\n          if (propertyName === 'trigger') {\n            change.key = null;\n          }\n          if (change.type === 'changed' || change.type === 'added') {\n            const translationKey = this.getTranslationKey({\n              modelName,\n              propertyName\n            });\n            const translatedModelName = this.intl.t(`triggerEmailCampaigns.publishDialog.${translationKey}`);\n            if (changedModel.title) {\n              change.label = `${translatedModelName} \"${changedModel.title}\"`;\n            } else if (changedModel.label) {\n              change.label = `${translatedModelName} \"${changedModel.label}\"`;\n            } else if (changedModel.subject) {\n              change.label = `${translatedModelName} \"${changedModel.subject}\"`;\n            } else {\n              change.label = translatedModelName;\n            }\n          }\n          if (change.type === 'activated' || change.type === 'deactivated') {\n            if (changedModel.title) {\n              change.value = changedModel.title;\n            } else if (changedModel.label) {\n              change.value = changedModel.label;\n            } else if (changedModel.subject) {\n              change.value = changedModel.subject;\n            } else {\n              change.value = '-';\n            }\n            change.key = this.getTranslationKey({\n              modelName\n            });\n          }\n        });\n        if (changedModel !== null && changedModel !== void 0 && changedModel.language && (modelChanges === null || modelChanges === void 0 || (_modelChanges$ = modelChanges[0]) === null || _modelChanges$ === void 0 ? void 0 : _modelChanges$.modelKey) !== 'configurations') {\n          if (!(languageSpecificChanges !== null && languageSpecificChanges !== void 0 && languageSpecificChanges[changedModel.language])) {\n            languageSpecificChanges[changedModel.language] = [];\n          }\n          if (changedModel !== null && changedModel !== void 0 && changedModel.availableLanguages) {\n            if (changedModel.availableLanguages.length === 0) {\n              changedModel.availableLanguages.push(changedModel.language);\n            }\n            changedModel.availableLanguages.forEach(language => {\n              if (!(languageSpecificChanges !== null && languageSpecificChanges !== void 0 && languageSpecificChanges[language])) {\n                languageSpecificChanges[language] = [];\n              }\n            });\n          }\n\n          // Change is language specific\n          if (changedModel.isDeleted) {\n            changedModel.type = 'deleted';\n            changedModel.availableLanguages.forEach(language => {\n              languageSpecificChanges[language].push(changedModel);\n            });\n          } else if (changedModel.isDeletedLanguage) {\n            changedModel.type = 'deleted';\n            languageSpecificChanges[changedModel.language].push(changedModel);\n          } else {\n            modelChanges.forEach(change => {\n              if (change.type === 'activated' || change.type === 'deactivated') {\n                changedModel.availableLanguages.forEach(language => {\n                  languageSpecificChanges[language].push(change);\n                });\n              } else {\n                languageSpecificChanges[changedModel.language].push(change);\n              }\n            });\n          }\n        } else {\n          // General change (not language specific)\n          if (changedModel.isDeleted) {\n            changedModel.type = 'deleted';\n            globalChanges.push(changedModel);\n          } else {\n            globalChanges.push(...modelChanges);\n          }\n        }\n      });\n      this.languageSpecificChanges = languageSpecificChanges;\n      this.globalChanges = globalChanges;\n    }\n    sortValidationErrors(validations) {\n      this.isGlobalErrorsExpandend = false;\n      this.isDependencyCheckExpanded = false;\n      const {\n        availableLanguages\n      } = this;\n      const globalValidations = [];\n      const dependencyValidations = [];\n      const languageSpecificValidations = [];\n      availableLanguages.forEach(language => {\n        languageSpecificValidations[language] = [];\n      });\n\n      // Sort validation errors according to type (dependency, language specific, general)\n      validations.forEach(validation => {\n        if ((validation === null || validation === void 0 ? void 0 : validation.category) === 'dependency') {\n          dependencyValidations.push(validation);\n        } else if (!validation.language) {\n          globalValidations.push(validation);\n        } else {\n          if (!(validation.language in languageSpecificValidations)) {\n            languageSpecificValidations[validation.language] = [];\n          }\n          languageSpecificValidations[validation.language].push(validation);\n        }\n      });\n      if (globalValidations.length > 0) {\n        this.isGlobalErrorsExpandend = true;\n      }\n      if (dependencyValidations.length > 0) {\n        this.isDependencyCheckExpanded = true;\n      }\n      this.globalValidations = globalValidations;\n      this.languageSpecificValidations = languageSpecificValidations;\n      this.dependencyValidations = dependencyValidations;\n    }\n    async publish() {\n      this._isSaving = true;\n      const response = await this.uiTransactionManager.commitTransaction();\n      if (response !== null && response !== void 0 && response.errors && (response === null || response === void 0 ? void 0 : response.status) !== 409) {\n        this.sortValidationErrors(response.errors);\n        this._isSaving = false;\n        this.uiToast.showToast({\n          title: this.intl.t('triggerEmailCampaigns.publishDialog.toast.publishFailed.title'),\n          description: this.intl.t('triggerEmailCampaigns.publishDialog.toast.publishFailed.text'),\n          type: 'error'\n        });\n      } else if (response !== null && response !== void 0 && response.message && (response === null || response === void 0 ? void 0 : response.status) === 409) {\n        this._isSaving = false;\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n        this.uiDialog.showError(null, response.message);\n      } else {\n        const isNew = this.model.isNew;\n        if (isNew) {\n          const metadata = this.model.meta;\n\n          // Remove record with temporary id\n          await this.store.unloadRecord(this.model);\n\n          // Add campaign with permanent id to store\n          await this.store.pushPayload('trigger-email-campaign', {\n            triggerEmailCampaigns: response.campaign\n          });\n          let newCampaign = await this.store.peekRecord('trigger-email-campaign', response.campaign.id);\n\n          // Set metadata\n          newCampaign.meta = metadata;\n\n          // Add new campaign to filter\n          this.uiFilter.addItem('trigger-email', newCampaign);\n\n          // Transition to new campaign needed, since the temporary ID is no longer available\n          this.router.transitionTo('instance.campaigns.trigger-email.detail', newCampaign);\n        }\n        this.uiFilter.loadModel('trigger-email');\n        await this.onClose(true, isNew);\n        this._isSaving = false;\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      }\n    }\n    async onLanguageSelect(language, isSelected) {\n      if (isSelected) {\n        await this.model.transactionPublish(language);\n      } else {\n        await this.model.transactionUnpublish(language);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"hasBackButton\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"selectedLanguages\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"globalValidations\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"availableLanguages\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"languageSpecificValidations\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"dependencyValidations\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"globalChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"isGlobalErrorsExpandend\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"isDependencyCheckExpanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"languageSpecificChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"_isSaving\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"_isLoading\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"validate\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"sortChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sortChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sortValidationErrors\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sortValidationErrors\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"publish\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"publish\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onLanguageSelect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onLanguageSelect\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignTriggerEmailCampaignPublishDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/trigger-email-campaign/steps/configuration\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-insert this.didInsert}}></div>\n  \n  <this.wizard.step\n    @id=\"configuration\"\n    @title={{t \"emailCampaigns.steps.configurations.title\"}}\n    @isTitleEditable={{false}}\n    @state=\"success\"\n    as |step|\n  >\n    <step.contentBody>\n      {{#if this._isLoading}}\n        <div class=\"mt2\">\n          <UiSkeleton @items={{3}} @itemsPerRow={{1}} @cardHeight={{108}} />\n        </div>\n      {{else}}\n        {{#each this.configurationItems as |configuration|}}\n          <div class=\"mt2\">\n            <div class=\"font-md font-medium primary\">\n              {{configuration.label}}\n            </div>\n  \n            {{#if configuration.description}}\n              <div class=\"primary font-md pt1 pb2\">\n                {{configuration.description}}\n              </div>\n            {{/if}}\n  \n            {{component\n              (concat \"amc-campaign/email-campaign/configuration-item/\" configuration.type)\n              item=(hash\n                type=configuration.type\n                key=configuration.key\n                label=configuration.label\n                value=(get (array-find configuration.key this.model.configurations \"key\") \"value\")\n              )\n              onChange=(fn this.model.transactionConfigurationChange configuration.key)\n            }}\n          </div>\n        {{/each}}\n      {{/if}}\n    </step.contentBody>\n  </this.wizard.step>\n  */\n  {\n    \"id\": \"eG31HLFF\",\n    \"block\": \"[[[11,0],[4,[38,0],[[30,0,[\\\"didInsert\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[30,0,[\\\"wizard\\\",\\\"step\\\"]],null,[[\\\"@id\\\",\\\"@title\\\",\\\"@isTitleEditable\\\",\\\"@state\\\"],[\\\"configuration\\\",[28,[37,1],[\\\"emailCampaigns.steps.configurations.title\\\"],null],false,\\\"success\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isLoading\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[3,1,108]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"configurationItems\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-md font-medium primary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2,[\\\"description\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"primary font-md pt1 pb2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,2,[\\\"description\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[46,[28,[37,7],[\\\"amc-campaign/email-campaign/configuration-item/\\\",[30,2,[\\\"type\\\"]]],null],null,[[\\\"item\\\",\\\"onChange\\\"],[[28,[37,8],null,[[\\\"type\\\",\\\"key\\\",\\\"label\\\",\\\"value\\\"],[[30,2,[\\\"type\\\"]],[30,2,[\\\"key\\\"]],[30,2,[\\\"label\\\"]],[28,[37,9],[[28,[37,10],[[30,2,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null]]]],[28,[37,11],[[30,0,[\\\"model\\\",\\\"transactionConfigurationChange\\\"]],[30,2,[\\\"key\\\"]]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"step\\\",\\\"configuration\\\"],false,[\\\"did-insert\\\",\\\"t\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"each\\\",\\\"-track-array\\\",\\\"component\\\",\\\"concat\\\",\\\"hash\\\",\\\"get\\\",\\\"array-find\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/trigger-email-campaign/steps/configuration.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignTriggerEmailCampaignStepsConfiguration = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _class = class AmcCampaignTriggerEmailCampaignStepsConfiguration extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"wizard\", _descriptor4, this);\n      _initializerDefineProperty(this, \"model\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isLoading\", _descriptor6, this);\n    }\n    get _isLoading() {\n      return this.isLoading;\n    }\n    get defaultLanguage() {\n      return this.uiAppSettings.languages.defaultLanguage;\n    }\n    get configurationItems() {\n      var _this$model;\n      if (((_this$model = this.model) === null || _this$model === void 0 || (_this$model = _this$model.meta) === null || _this$model === void 0 || (_this$model = _this$model.configurations) === null || _this$model === void 0 ? void 0 : _this$model.length) <= 0) {\n        return [];\n      }\n      const key = Object.keys(this.model.meta).sort()[0];\n      const configurationKeys = ['utm_campaign_postfix', 'interrupts_email_sending'];\n      const configurationMeta = this.model.meta[key].configurations.filter(config => configurationKeys.includes(config.key));\n      configurationMeta.forEach(configuration => {\n        var _this$model2, _this$model3;\n        if (!((_this$model2 = this.model) !== null && _this$model2 !== void 0 && _this$model2.configurations) || ((_this$model3 = this.model) === null || _this$model3 === void 0 || (_this$model3 = _this$model3.configurations) === null || _this$model3 === void 0 ? void 0 : _this$model3.length) <= 0) {\n          return;\n        }\n        const item = this.model.configurations.find(config => config.key === configuration.key);\n        configuration.value = (item === null || item === void 0 ? void 0 : item.value) || null;\n      });\n      return configurationMeta;\n    }\n    didInsert() {\n      if (!this.model.meta) {\n        return;\n      }\n      const metadataKey = Object.keys(this.model.meta).sort()[0];\n      const configurationMetadata = this.model.meta[metadataKey].configurations;\n      const configurations = this.model.configurations || [];\n\n      // Initialize configurations in model\n      // API does not send configurations which are not configured yet (null)\n      configurationMetadata.forEach(configuration => {\n        const configExist = configurations.find(modelConfig => modelConfig.key === configuration.key);\n        if (!configExist) {\n          if (configuration.key === 'trigger') {\n            if (this.model.trigger === 'interest-trigger-campaign') {\n              configurations.push({\n                key: configuration.key,\n                value: {\n                  interests: {\n                    values: {\n                      interests: [],\n                      surveys: []\n                    }\n                  }\n                }\n              });\n            } else if (this.model.trigger === 'survey-trigger-campaign') {\n              configurations.push({\n                key: configuration.key,\n                value: {\n                  surveys: {\n                    values: []\n                  }\n                }\n              });\n            } else if (this.model.trigger === 'inquiry-trigger-campaign') {\n              configurations.push({\n                key: configuration.key,\n                value: {\n                  enquiryChannels: {\n                    values: []\n                  }\n                }\n              });\n            } else if (this.model.trigger === 'newsletter-trigger-campaign') {\n              configurations.push({\n                key: configuration.key,\n                value: {\n                  addressBooks: {\n                    values: []\n                  }\n                }\n              });\n            } else if (this.model.trigger === 'lead-trigger-campaign') {\n              configurations.push({\n                key: configuration.key,\n                value: []\n              });\n            }\n          } else {\n            configurations.push({\n              key: configuration.key,\n              value: null\n            });\n          }\n        }\n      });\n      this.model.configurations = configurations;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"wizard\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignTriggerEmailCampaignStepsConfiguration);\n});","define(\"additive-mc/components/amc-campaign/trigger-email-campaign/steps/contribution\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/object/internals\", \"@ember/service\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _tracking, _object, _internals, _service, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <this.wizard.step\n    @id=\"contribution\"\n    @title={{t \"triggerEmailCampaigns.steps.contribution.title\"}}\n    @description={{if\n      this.model.contribution\n      (t \"triggerEmailCampaigns.steps.contribution.description\")\n      (t \"triggerEmailCampaigns.steps.contribution.createVoucherDescription\")\n    }}\n    @state={{if this.model.contribution.active \"success\" \"error\"}}\n    @isTitleEditable={{false}}\n    as |step|\n  >\n    {{#if this.model.contribution}}\n      {{#unless this._isLoading}}\n        <step.navbarAction @onClick={{this.model.contribution.transactionChangeModelState}}>\n          {{#if this.model.contribution.active}}\n            {{svg-jar \"activate\" width=\"20\" height=\"20\" class=\"blue\"}}\n            <div class=\"ui-action-button__label\">\n              {{t \"global.actions.deactivate\"}}\n            </div>\n          {{else}}\n            {{svg-jar \"deactivate\" width=\"20\" height=\"20\" class=\"blue\"}}\n            <div class=\"ui-action-button__label\">\n              {{t \"global.actions.activate\"}}\n            </div>\n          {{/if}}\n        </step.navbarAction>\n  \n        <step.navbarAction\n          @label={{t \"triggerEmailCampaigns.steps.contribution.actions.preview\"}}\n          @icon=\"popup\"\n          @onClick={{fn this.openPreviewDialog this.model.contribution \"voucher\"}}\n        />\n  \n        <step.navbarAction\n          @label={{t \"global.actions.delete\"}}\n          @icon=\"delete\"\n          @isDanger={{true}}\n          @isPromise={{true}}\n          @onClick={{fn this.onDelete this.model.contribution}}\n        />\n      {{/unless}}\n  \n      <step.contentBody>\n        <div\n          class=\"pt3\"\n          {{did-update\n            (perform this.model.fetchMeta this.model.contribution.language)\n            this.model.contribution.language\n          }}\n          {{did-insert (fn this.onEnterStep this.model.contribution \"voucher\")}}\n        >\n        </div>\n  \n        <UiLangSelect\n          @selected={{this.model.contribution.language}}\n          @languages={{this.model.contribution.availableLanguages}}\n          @publishedLanguages={{this.availableLanguages}}\n          @availableLanguages={{this.availableLanguages}}\n          @onSelect={{this.model.contribution.transactionChangeLanguage}}\n          @addLanguage={{this.model.contribution.transactionAddLanguage}}\n          @removeLanguage={{this.model.contribution.transactionDeleteLanguage}}\n          @hideState={{true}}\n        />\n  \n        {{#if\n          (or this.uiTransactionManager.isLoading this._isLoading this.model.fetchMeta.isRunning)\n        }}\n          <div class=\"pt2\">\n            <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{84}} />\n            <UiSkeleton @items={{3}} @itemsPerRow={{1}} @cardHeight={{190}} />\n          </div>\n        {{else}}\n          <UiInput\n            @classNames=\"pt2\"\n            @label={{concat (t \"triggerEmailCampaigns.steps.contribution.value\") \"*\"}}\n            @value={{this.contributionValue}}\n            @minValue={{0}}\n            @onBlur={{fn this.model.contribution.transactionChange \"value\"}}\n            @type=\"number\"\n            as |input|\n          >\n            <input.right>\n              {{currency-symbol this.uiAppSettings.currency}}\n            </input.right>\n          </UiInput>\n  \n          <UiEditor\n            @label={{concat (t \"triggerEmailCampaigns.steps.contribution.policies\") \"*\"}}\n            @initialValue={{this.model.contribution.policies}}\n            @corporateDesignColors={{this.corporateDesignColors}}\n            @onLinkInsert={{fn this.model.contribution.transactionChange \"policies\"}}\n            @onBlur={{fn this.model.contribution.transactionChange \"policies\"}}\n          />\n  \n          <UiEditor\n            @label={{t \"triggerEmailCampaigns.steps.contribution.greeting\"}}\n            @initialValue={{this.model.contribution.greeting}}\n            @placeholderText={{get\n              (get this.model.meta this.model.contribution.language)\n              \"contribution.greeting\"\n            }}\n            @corporateDesignColors={{this.corporateDesignColors}}\n            @onLinkInsert={{fn\n              this.model.contribution.transactionConfigurationChange\n              \"greeting\"\n              \"configuration\"\n            }}\n            @onBlur={{fn\n              this.model.contribution.transactionConfigurationChange\n              \"greeting\"\n              \"configuration\"\n            }}\n          />\n  \n          <div class=\"mt2\">\n            <div class=\"font-sm secondary mb05\">\n              {{concat (t \"triggerEmailCampaigns.steps.contribution.image\") \"*\"}}\n            </div>\n            <MmResourceGallery\n              @isImageAddable={{true}}\n              @isVideoAddable={{false}}\n              @resources={{this.model.contribution.image}}\n              @onDropzoneClick={{fn this.openMultimedia this.model.contribution}}\n              @onResourceRemove={{fn this.model.contribution.transactionChange \"image\" null}}\n              @onResourceEdit={{fn this.model.contribution.transactionChange \"image\"}}\n              @mediumType=\"image\"\n            />\n          </div>\n  \n          <UiInput\n            @classNames=\"pt2\"\n            @label={{t \"triggerEmailCampaigns.steps.contribution.customType\"}}\n            @infoMessage={{t \"triggerEmailCampaigns.steps.contribution.customTypeDescription\"}}\n            @isMultilineMessage={{true}}\n            @value={{this.contributionCustomType}}\n            @onBlur={{fn this.model.contribution.transactionChange \"customType\"}}\n          />\n        {{/if}}\n      </step.contentBody>\n    {{else}}\n      <step.contentBody>\n        {{#if this._skipIncentive}}\n          <div class=\"flex w-100 br1 bg-secondary--10 mt4 pa2\">\n            <div class=\"mr1\">\n              {{svg-jar \"bolt-filled\" width=\"24\" height=\"24\"}}\n            </div>\n  \n            <div class=\"font-md font-regular\">\n              {{t \"triggerEmailCampaigns.steps.contribution.skipIncentiveInfo\"}}\n            </div>\n          </div>\n  \n          <UiButton\n            @classNames=\"w-100 flex justify-center mt4\"\n            @label={{t \"triggerEmailCampaigns.steps.contribution.createVoucher\"}}\n            @icon=\"gift\"\n            @isLarge={{true}}\n            @isSecondary={{true}}\n            @isPromise={{true}}\n            @onClick={{this.createVoucher}}\n          />\n        {{else}}\n          <Grid @classNames=\"mt4\" @gap=\"16\" @columns=\"1,2\">\n            <div\n              role=\"button\"\n              class=\"flex pa2 br1 bg-secondary--10 cpointer\"\n              {{on \"click\" this.createVoucher}}\n            >\n              <div class=\"mr1\">\n                {{svg-jar \"voucher\" width=\"20\" height=\"20\"}}\n              </div>\n  \n              <div class=\"flex flex-column justify-between w-100\">\n                <div>\n                  <div class=\"primary font-sm font-medium pb05\">\n                    {{t \"triggerEmailCampaigns.steps.contribution.vouchers\"}}\n                  </div>\n                </div>\n  \n                <div class=\"flex justify-end w-100\">\n                  {{svg-jar \"ascending-arrow\" class=\"secondary\" width=\"20\" height=\"20\"}}\n                </div>\n              </div>\n            </div>\n  \n            <div\n              role=\"button\"\n              class=\"flex pa2 br1 bg-secondary--10 cpointer\"\n              {{on \"click\" (fn (mut this._skipIncentive) true)}}\n            >\n              <div class=\"mr1\">\n                {{svg-jar \"error\" width=\"20\" height=\"20\"}}\n              </div>\n  \n              <div class=\"flex flex-column justify-between w-100\">\n                <div>\n                  <div class=\"primary font-sm font-medium pb05\">\n                    {{t \"triggerEmailCampaigns.steps.contribution.skipIncentive\"}}\n                  </div>\n                </div>\n  \n                <div class=\"flex justify-end w-100\">\n                  {{svg-jar \"ascending-arrow\" class=\"secondary\" width=\"20\" height=\"20\"}}\n                </div>\n              </div>\n            </div>\n          </Grid>\n        {{/if}}\n      </step.contentBody>\n    {{/if}}\n  </this.wizard.step>\n  */\n  {\n    \"id\": \"Qo+C1gwD\",\n    \"block\": \"[[[8,[30,0,[\\\"wizard\\\",\\\"step\\\"]],null,[[\\\"@id\\\",\\\"@title\\\",\\\"@description\\\",\\\"@state\\\",\\\"@isTitleEditable\\\"],[\\\"contribution\\\",[28,[37,0],[\\\"triggerEmailCampaigns.steps.contribution.title\\\"],null],[52,[30,0,[\\\"model\\\",\\\"contribution\\\"]],[28,[37,0],[\\\"triggerEmailCampaigns.steps.contribution.description\\\"],null],[28,[37,0],[\\\"triggerEmailCampaigns.steps.contribution.createVoucherDescription\\\"],null]],[52,[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"active\\\"]],\\\"success\\\",\\\"error\\\"],false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"contribution\\\"]],[[[41,[51,[30,0,[\\\"_isLoading\\\"]]],[[[1,\\\"      \\\"],[8,[30,1,[\\\"navbarAction\\\"]],null,[[\\\"@onClick\\\"],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChangeModelState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"active\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,3],[\\\"activate\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"blue\\\"]]]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ui-action-button__label\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,0],[\\\"global.actions.deactivate\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,3],[\\\"deactivate\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"blue\\\"]]]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ui-action-button__label\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,0],[\\\"global.actions.activate\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[30,1,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.contribution.actions.preview\\\"],null],\\\"popup\\\",[28,[37,4],[[30,0,[\\\"openPreviewDialog\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\"]],\\\"voucher\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[30,1,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDanger\\\",\\\"@isPromise\\\",\\\"@onClick\\\"],[[28,[37,0],[\\\"global.actions.delete\\\"],null],\\\"delete\\\",true,true,[28,[37,4],[[30,0,[\\\"onDelete\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,0],[24,0,\\\"pt3\\\"],[4,[38,5],[[28,[37,6],[[30,0,[\\\"model\\\",\\\"fetchMeta\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"language\\\"]]],null],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"language\\\"]]],null],[4,[38,7],[[28,[37,4],[[30,0,[\\\"onEnterStep\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\"]],\\\"voucher\\\"],null]],null],[12],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,8],null,[[\\\"@selected\\\",\\\"@languages\\\",\\\"@publishedLanguages\\\",\\\"@availableLanguages\\\",\\\"@onSelect\\\",\\\"@addLanguage\\\",\\\"@removeLanguage\\\",\\\"@hideState\\\"],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"language\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChangeLanguage\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionAddLanguage\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionDeleteLanguage\\\"]],true]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"uiTransactionManager\\\",\\\"isLoading\\\"]],[30,0,[\\\"_isLoading\\\"]],[30,0,[\\\"model\\\",\\\"fetchMeta\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"pt2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,84]],null],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[3,1,190]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,11],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@value\\\",\\\"@minValue\\\",\\\"@onBlur\\\",\\\"@type\\\"],[\\\"pt2\\\",[28,[37,12],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.contribution.value\\\"],null],\\\"*\\\"],null],[30,0,[\\\"contributionValue\\\"]],0,[28,[37,4],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChange\\\"]],\\\"value\\\"],null],\\\"number\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,2,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,13],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,14],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@corporateDesignColors\\\",\\\"@onLinkInsert\\\",\\\"@onBlur\\\"],[[28,[37,12],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.contribution.policies\\\"],null],\\\"*\\\"],null],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"policies\\\"]],[30,0,[\\\"corporateDesignColors\\\"]],[28,[37,4],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChange\\\"]],\\\"policies\\\"],null],[28,[37,4],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChange\\\"]],\\\"policies\\\"],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,14],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@placeholderText\\\",\\\"@corporateDesignColors\\\",\\\"@onLinkInsert\\\",\\\"@onBlur\\\"],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.contribution.greeting\\\"],null],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"greeting\\\"]],[28,[37,15],[[28,[37,15],[[30,0,[\\\"model\\\",\\\"meta\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"language\\\"]]],null],\\\"contribution.greeting\\\"],null],[30,0,[\\\"corporateDesignColors\\\"]],[28,[37,4],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionConfigurationChange\\\"]],\\\"greeting\\\",\\\"configuration\\\"],null],[28,[37,4],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionConfigurationChange\\\"]],\\\"greeting\\\",\\\"configuration\\\"],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary mb05\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,12],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.contribution.image\\\"],null],\\\"*\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@isImageAddable\\\",\\\"@isVideoAddable\\\",\\\"@resources\\\",\\\"@onDropzoneClick\\\",\\\"@onResourceRemove\\\",\\\"@onResourceEdit\\\",\\\"@mediumType\\\"],[true,false,[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"image\\\"]],[28,[37,4],[[30,0,[\\\"openMultimedia\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\"]]],null],[28,[37,4],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChange\\\"]],\\\"image\\\",null],null],[28,[37,4],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChange\\\"]],\\\"image\\\"],null],\\\"image\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,11],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@infoMessage\\\",\\\"@isMultilineMessage\\\",\\\"@value\\\",\\\"@onBlur\\\"],[\\\"pt2\\\",[28,[37,0],[\\\"triggerEmailCampaigns.steps.contribution.customType\\\"],null],[28,[37,0],[\\\"triggerEmailCampaigns.steps.contribution.customTypeDescription\\\"],null],true,[30,0,[\\\"contributionCustomType\\\"]],[28,[37,4],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChange\\\"]],\\\"customType\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_skipIncentive\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex w-100 br1 bg-secondary--10 mt4 pa2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mr1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"bolt-filled\\\"],[[\\\"width\\\",\\\"height\\\"],[\\\"24\\\",\\\"24\\\"]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"font-md font-regular\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.steps.contribution.skipIncentiveInfo\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,17],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@isLarge\\\",\\\"@isSecondary\\\",\\\"@isPromise\\\",\\\"@onClick\\\"],[\\\"w-100 flex justify-center mt4\\\",[28,[37,0],[\\\"triggerEmailCampaigns.steps.contribution.createVoucher\\\"],null],\\\"gift\\\",true,true,true,[30,0,[\\\"createVoucher\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@classNames\\\",\\\"@gap\\\",\\\"@columns\\\"],[\\\"mt4\\\",\\\"16\\\",\\\"1,2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"flex pa2 br1 bg-secondary--10 cpointer\\\"],[4,[38,19],[\\\"click\\\",[30,0,[\\\"createVoucher\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mr1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[\\\"voucher\\\"],[[\\\"width\\\",\\\"height\\\"],[\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"flex flex-column justify-between w-100\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"primary font-sm font-medium pb05\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.steps.contribution.vouchers\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"flex justify-end w-100\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,3],[\\\"ascending-arrow\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"secondary\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"flex pa2 br1 bg-secondary--10 cpointer\\\"],[4,[38,19],[\\\"click\\\",[28,[37,4],[[28,[37,20],[[30,0,[\\\"_skipIncentive\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mr1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[\\\"error\\\"],[[\\\"width\\\",\\\"height\\\"],[\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"flex flex-column justify-between w-100\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"primary font-sm font-medium pb05\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.steps.contribution.skipIncentive\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"flex justify-end w-100\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,3],[\\\"ascending-arrow\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"secondary\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[1]]]]]],[\\\"step\\\",\\\"input\\\"],false,[\\\"t\\\",\\\"if\\\",\\\"unless\\\",\\\"svg-jar\\\",\\\"fn\\\",\\\"did-update\\\",\\\"perform\\\",\\\"did-insert\\\",\\\"ui-lang-select\\\",\\\"or\\\",\\\"ui-skeleton\\\",\\\"ui-input\\\",\\\"concat\\\",\\\"currency-symbol\\\",\\\"ui-editor\\\",\\\"get\\\",\\\"mm-resource-gallery\\\",\\\"ui-button\\\",\\\"grid\\\",\\\"on\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/trigger-email-campaign/steps/contribution.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignTriggerEmailCampaignStepsContribution = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec5 = (0, _emberArgTypes.arg)(_propTypes.number), _dec6 = (0, _emberArgTypes.arg)(_propTypes.string), _dec7 = (0, _emberArgTypes.arg)(_propTypes.func), _dec8 = (0, _emberArgTypes.arg)(_propTypes.func), _dec9 = (0, _emberArgTypes.arg)(_propTypes.func), _dec10 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignTriggerEmailCampaignStepsContribution extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"wizard\", _descriptor4, this);\n      _initializerDefineProperty(this, \"model\", _descriptor5, this);\n      _initializerDefineProperty(this, \"corporateDesignColors\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isLoading\", _descriptor7, this);\n      _initializerDefineProperty(this, \"contributionValue\", _descriptor8, this);\n      _initializerDefineProperty(this, \"contributionCustomType\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_skipIncentive\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_isCreatingVoucher\", _descriptor11, this);\n      _initializerDefineProperty(this, \"openPreviewDialog\", _descriptor12, this);\n      _initializerDefineProperty(this, \"openMultimedia\", _descriptor13, this);\n      _initializerDefineProperty(this, \"onDelete\", _descriptor14, this);\n      _initializerDefineProperty(this, \"onEnterStep\", _descriptor15, this);\n    }\n    get _isLoading() {\n      return this.isLoading || this._isCreatingVoucher;\n    }\n    get defaultLanguage() {\n      return this.uiAppSettings.languages.defaultLanguage;\n    }\n    get availableLanguages() {\n      return this.uiAppSettings.languages.contentLanguages;\n    }\n    async createVoucher() {\n      this._isCreatingVoucher = true;\n      const contribution = this.store.createRecord('trigger-email-campaign-contribution', {\n        active: false,\n        availableLanguages: [this.defaultLanguage],\n        language: this.defaultLanguage,\n        value: 0\n      });\n\n      // assign temporary id\n      contribution.id = `tmp-${(0, _internals.guidFor)(contribution)}`;\n      this.model.contribution = contribution;\n      await this.model.contribution.transactionCreateRecord();\n      this._isCreatingVoucher = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"wizard\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"corporateDesignColors\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"contributionValue\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 0;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"contributionCustomType\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"_skipIncentive\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"_isCreatingVoucher\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"openPreviewDialog\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"openMultimedia\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"onDelete\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"onEnterStep\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"createVoucher\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createVoucher\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignTriggerEmailCampaignStepsContribution);\n});","define(\"additive-mc/components/amc-campaign/trigger-email-campaign/steps/emails\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"ember-concurrency\", \"@ember/service\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _environment, _component2, _tracking, _object, _emberConcurrency, _service, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <this.wizard.step\n    @id=\"emails\"\n    @title={{t \"triggerEmailCampaigns.steps.emails.title\"}}\n    @description={{t \"triggerEmailCampaigns.steps.emails.description\"}}\n    @isTitleEditable={{false}}\n    @state={{this.stepState}}\n    as |step|\n  >\n    {{#unless this._isLoading}}\n      <step.navbarAction\n        @label={{t \"triggerEmailCampaigns.steps.emails.actions.sendTestEmails\"}}\n        @icon=\"send\"\n        @onClick={{fn this.openSendTestEmailDialog this.model true}}\n      />\n    {{/unless}}\n  \n    <step.contentBody>\n      {{#if this._isLoading}}\n        <div class=\"mt4\">\n          <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{20}} @gap={{16}} />\n          <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{54}} />\n          <UiSkeleton @items={{3}} @itemsPerRow={{1}} @cardHeight={{108}} @gap={{4}} />\n        </div>\n      {{else}}\n        <div class=\"mt4\">\n          <AmcCampaign::EmailCampaign::Trigger @model={{@model}} />\n        </div>\n        {{#if (and this.emailSeries.length (not this._isLoading))}}\n          <div class=\"flex h1 ml2 pl05 mr3\">\n            <div class=\"mh-100 h-100 br b--secondary-20 mh05\"></div>\n          </div>\n        {{/if}}\n  \n        {{#unless this.emailSeries.length}}\n          <UiButton\n            @classNames=\"w-100 flex justify-center mt4\"\n            @label={{t \"triggerEmailCampaigns.steps.emails.actions.createFirstEmailStep\"}}\n            @icon=\"plus\"\n            @isLarge={{true}}\n            @isSecondary={{true}}\n            @onClick={{this.openEmailSeriesCreateDialog}}\n          />\n        {{/unless}}\n  \n        <div class=\"mb1\">\n          {{#each this.emailSeries as |item index|}}\n            <div class=\"flex\">\n              <div class=\"flex flex-column mh-100 ml2 pl05 mr3\">\n                <div class=\"br-100 bg-secondary pa05 mv1\"></div>\n                {{#if (not (equal (inc index) this.emailSeries.length))}}\n                  <div class=\"mh-100 h-100 br b--secondary-20 mh05\">\n                  </div>\n                {{/if}}\n              </div>\n  \n              <UiListItem\n                @class=\"w-100\"\n                @state={{if (equal item.state \"active\") \"success\" \"error\"}}\n                @hasFixedHeight={{false}}\n                @onClick={{fn\n                  this.wizard.onChangeStep\n                  (get (get (get (get this.wizard.steps 2) \"substeps\") index) \"slug\")\n                }}\n                as |controls|\n              >\n                <controls.state />\n                <controls.title>\n                  <div class=\"flex flex-column mw-100 flex-grow-1\">\n                    <div class=\"flex primary items-center mw-100 w-100\">\n                      <div>\n                        {{t \"triggerEmailCampaigns.steps.emails.emailSeriesCount\" count=(inc index)}}\n                      </div>\n  \n                      <div>\n                        &nbsp;-&nbsp;\n                      </div>\n  \n                      <UiInlineEdit\n                        @classNames=\"font-sm font-medium ellipsis\"\n                        @value={{item.label}}\n                        @isCentered={{false}}\n                        @placeholder=\"\"\n                        @onBlur={{fn item.transactionChange \"label\"}}\n                      />\n                    </div>\n                    <div class=\"flex items-center font-sm font-medium mt1\">\n                      <div class=\"flex items-center justify-center bg-blue--10 blue br1 ph05\">\n                        {{svg-jar \"watch\" width=\"16\" height=\"16\"}}\n                        {{#if (or (equal item.offsetInDays 0) (equal item.offsetInDays \"0\"))}}\n                          {{t \"triggerEmailCampaigns.immediately\"}}\n                        {{else}}\n                          {{t \"triggerEmailCampaigns.daysCount\" count=item.offsetInDays}}\n                        {{/if}}\n                      </div>\n                      <div class=\"secondary ml05\">\n                        {{t \"triggerEmailCampaigns.afterTrigger\"}}\n                      </div>\n                    </div>\n                    <div class=\"flex secondary mt05\">\n                      {{t \"triggerEmailCampaigns.steps.emails.variantCount\" count=item.emails.length}}\n  \n                      {{#if (equal item.emails.length 0)}}\n                        <div\n                          class=\"blue\"\n                          role=\"button\"\n                          {{on\n                            \"click\"\n                            (fn\n                              this.createEmail\n                              item\n                              (get (get (get (get this.wizard.steps 2) \"substeps\") index) \"slug\")\n                            )\n                          }}\n                        >\n                          &nbsp;\n                          {{concat\n                            \"- \"\n                            (t\n                              \"triggerEmailCampaigns.steps.emails.email.actions.createFirstEmailVariant\"\n                            )\n                          }}\n                        </div>\n                      {{/if}}\n                    </div>\n                  </div>\n                </controls.title>\n                <controls.right>\n                  <UiItemMenu as |menu|>\n                    <menu.menuItem\n                      @label={{if\n                        (equal item.state \"active\")\n                        (t \"global.actions.deactivate\")\n                        (t \"global.actions.activate\")\n                      }}\n                      @onClick={{item.transactionChangeModelState}}\n                    />\n                    <menu.menuItem\n                      @label={{t \"global.actions.delete\"}}\n                      @isDanger={{true}}\n                      @onClick={{fn this.onDelete item}}\n                    />\n                  </UiItemMenu>\n                </controls.right>\n              </UiListItem>\n            </div>\n          {{/each}}\n        </div>\n  \n        {{#if this.emailSeries.length}}\n          <UiButton\n            @class=\"absolute bottom-3 right-3\"\n            @icon=\"plus\"\n            @isFabButton={{true}}\n            @onClick={{this.openEmailSeriesCreateDialog}}\n          />\n        {{/if}}\n      {{/if}}\n    </step.contentBody>\n  \n    {{#each this.emailSeries as |emailSeries emailSeriesIndex|}}\n      <step.substep\n        @id={{emailSeries.id}}\n        @title={{emailSeries.label}}\n        @titlePrefix={{concat\n          (t \"triggerEmailCampaigns.steps.emails.emailSeriesCount\" count=(inc emailSeriesIndex))\n          \" -\"\n        }}\n        @position={{emailSeriesIndex}}\n        @onTitleChange={{fn emailSeries.transactionChange \"label\"}}\n        @isTitleEditable={{true}}\n        @description={{t \"triggerEmailCampaigns.steps.emails.email.description\"}}\n        @state={{if (equal emailSeries.state \"active\") \"success\" \"error\"}}\n        as |substep|\n      >\n        {{#unless this._isLoading}}\n          <substep.navbarAction @onClick={{emailSeries.transactionChangeModelState}}>\n            {{#if (equal emailSeries.state \"active\")}}\n              {{svg-jar \"activate\" width=\"20\" height=\"20\" class=\"blue\"}}\n              <div class=\"ui-action-button__label\">\n                {{t \"global.actions.deactivate\"}}\n              </div>\n            {{else}}\n              {{svg-jar \"deactivate\" width=\"20\" height=\"20\" class=\"blue\"}}\n              <div class=\"ui-action-button__label\">\n                {{t \"global.actions.activate\"}}\n              </div>\n            {{/if}}\n          </substep.navbarAction>\n  \n          <substep.navbarAction\n            @label={{t \"global.actions.delete\"}}\n            @icon=\"delete\"\n            @isDanger={{true}}\n            @onClick={{fn this.onDelete emailSeries}}\n          />\n        {{/unless}}\n  \n        <substep.contentBody>\n          {{#if this._isLoading}}\n            <div class=\"mt4\">\n              <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{64}} />\n              <div class=\"mt2\">\n                <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{20}} />\n                <UiSkeleton @items={{3}} @itemsPerRow={{1}} @cardHeight={{72}} @gap={{4}} />\n              </div>\n            </div>\n          {{else}}\n            <UiInput\n              @classNames=\"pt4\"\n              @label={{t \"triggerEmailCampaigns.steps.emails.daysSinceTrigger\"}}\n              @value={{emailSeries.offsetInDays}}\n              @minValue={{0}}\n              @type=\"number\"\n              @isTouched={{true}}\n              @errorMessage={{if\n                this._isEmailSeriesOffsetError\n                (t \"triggerEmailCampaigns.emailSeries.dialog.notUniqueDays\")\n              }}\n              @onBlur={{fn this.changeEmailSeriesOffset emailSeries}}\n              as |input|\n            >\n              <input.right>\n                {{t \"global.properties.days\"}}\n              </input.right>\n            </UiInput>\n            <div class=\"mt2 pb1\">\n              {{#if (get (get this.wizard.steps 2) \"substeps\")}}\n                {{#let\n                  (get (get (get (get this.wizard.steps 2) \"substeps\") emailSeriesIndex) \"substeps\")\n                  as |emailSteps|\n                }}\n                  {{#if emailSeries.emails.length}}\n                    <div class=\"secondary font-sm font-medium pb2\">\n                      {{t \"triggerEmailCampaigns.steps.emails.variants\"}}\n                    </div>\n  \n                    <UiList @items={{emailSeries.emails}} as |list item index|>\n                      <list.item\n                        @title={{if\n                          (includes item.language item.availableLanguages)\n                          (if item.subject item.subject \"-\")\n                          (t \"triggerEmailCampaigns.steps.emails.email.placeholderText\")\n                        }}\n                        @state={{if item.active \"success\" \"error\"}}\n                        @onClick={{fn this.wizard.onChangeStep (get (get emailSteps index) \"slug\")}}\n                        as |controls|\n                      >\n                        <controls.popover as |pop|>\n                          <pop.trigger />\n                          <pop.content>\n                            {{#each item.availableLanguages as |language|}}\n                              <div class=\"flex items-center justify-between pv05\">\n                                <div class=\"pr2\">\n                                  {{t (concat \"global.languages.\" language)}}\n                                </div>\n                                {{#if item.active}}\n                                  <div class=\"green\">\n                                    {{t \"triggerEmailCampaigns.steps.emails.email.states.active\"}}\n                                  </div>\n                                {{else}}\n                                  <div class=\"red\">\n                                    {{t \"triggerEmailCampaigns.steps.emails.email.states.inactive\"}}\n                                  </div>\n                                {{/if}}\n                              </div>\n                            {{/each}}\n                          </pop.content>\n                        </controls.popover>\n                        <controls.thumbnail\n                          @src={{if\n                            item.image\n                            (mm-medium-url-options item.image.url (hash size=\"72x72\"))\n                          }}\n                          @alt={{if item.image item.name}}\n                        />\n                        <controls.right>\n                          <UiItemMenu as |menu|>\n                            <menu.menuItem\n                              @label={{if\n                                item.active\n                                (t \"global.actions.deactivate\")\n                                (t \"global.actions.activate\")\n                              }}\n                              @onClick={{item.transactionChangeModelState}}\n                            />\n                            <menu.menuItem\n                              @label={{t\n                                \"triggerEmailCampaigns.steps.emails.email.actions.sendTestEmail\"\n                              }}\n                              @onClick={{fn this.openSendTestEmailDialog item false}}\n                            />\n                            <menu.menuItem\n                              @label={{t \"triggerEmailCampaigns.steps.emails.email.actions.preview\"}}\n                              @onClick={{fn this.openPreviewDialog item \"email\"}}\n                            />\n                            <menu.menuItem\n                              @label={{t \"global.actions.delete\"}}\n                              @isDanger={{true}}\n                              @onClick={{fn this.onDelete item}}\n                            />\n                          </UiItemMenu>\n                        </controls.right>\n                      </list.item>\n                    </UiList>\n                  {{else}}\n                    <UiButton\n                      @classNames=\"w-100 flex justify-center\"\n                      @label={{t\n                        \"triggerEmailCampaigns.steps.emails.email.actions.createFirstEmailVariant\"\n                      }}\n                      @icon=\"plus\"\n                      @isLarge={{true}}\n                      @isSecondary={{true}}\n                      @onClick={{fn\n                        this.createEmail\n                        emailSeries\n                        (get (get (get (get this.wizard.steps 2) \"substeps\") emailSeriesIndex) \"slug\")\n                      }}\n                    />\n                  {{/if}}\n                {{/let}}\n              {{/if}}\n            </div>\n  \n            {{#if emailSeries.emails.length}}\n              <UiButton\n                @class=\"absolute bottom-3 right-3\"\n                @icon=\"plus\"\n                @isFabButton={{true}}\n                @onClick={{fn\n                  this.createEmail\n                  emailSeries\n                  (get (get (get (get this.wizard.steps 2) \"substeps\") emailSeriesIndex) \"slug\")\n                }}\n              />\n            {{/if}}\n          {{/if}}\n        </substep.contentBody>\n  \n        {{#each emailSeries.emails as |email|}}\n          <substep.substep\n            @id={{email.id}}\n            @title={{if\n              (includes email.language email.availableLanguages)\n              (if email.subject email.subject \"-\")\n              (t \"triggerEmailCampaigns.steps.emails.email.placeholderText\")\n            }}\n            @state={{if email.active \"success\" \"error\"}}\n            as |subsubstep|\n          >\n            {{#unless this._isLoading}}\n              <subsubstep.navbarAction @onClick={{email.transactionChangeModelState}}>\n                {{#if email.active}}\n                  {{svg-jar \"activate\" width=\"20\" height=\"20\" class=\"blue\"}}\n                  <div class=\"ui-action-button__label\">\n                    {{t \"global.actions.deactivate\"}}\n                  </div>\n                {{else}}\n                  {{svg-jar \"deactivate\" width=\"20\" height=\"20\" class=\"blue\"}}\n                  <div class=\"ui-action-button__label\">\n                    {{t \"global.actions.activate\"}}\n                  </div>\n                {{/if}}\n              </subsubstep.navbarAction>\n  \n              <subsubstep.navbarAction\n                @label={{t \"triggerEmailCampaigns.steps.emails.email.actions.preview\"}}\n                @icon=\"popup\"\n                @onClick={{fn this.openPreviewDialog email \"email\"}}\n              />\n  \n              <subsubstep.navbarAction\n                @label={{t \"triggerEmailCampaigns.steps.emails.email.actions.sendTestEmail\"}}\n                @icon=\"send\"\n                @onClick={{fn this.openSendTestEmailDialog email false}}\n              />\n  \n              <subsubstep.navbarAction\n                @label={{t \"global.actions.delete\"}}\n                @icon=\"delete\"\n                @isDanger={{true}}\n                @onClick={{fn this.onDelete email}}\n              />\n            {{/unless}}\n  \n            <subsubstep.contentBody>\n              <div\n                class=\"pt3\"\n                {{did-update (fn this._didUpdateEmailLanguage email) email.language}}\n                {{did-insert (fn this._onEnterStep email \"email\")}}\n              >\n                <UiLangSelect\n                  @selected={{email.language}}\n                  @languages={{email.availableLanguages}}\n                  @publishedLanguages={{this.availableLanguages}}\n                  @availableLanguages={{this.availableLanguages}}\n                  @onSelect={{email.transactionChangeLanguage}}\n                  @addLanguage={{email.transactionAddLanguage}}\n                  @removeLanguage={{email.transactionDeleteLanguage}}\n                  @hideState={{true}}\n                />\n              </div>\n  \n              {{#if (or this.uiTransactionManager.isLoading this._isLoading)}}\n                <div class=\"pt2\">\n                  <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{84}} />\n                  <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{190}} />\n                  <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{92}} />\n                  <div class=\"mt2\">\n                    <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{184}} />\n                  </div>\n                </div>\n              {{else}}\n                <UiInput\n                  @classNames=\"pt2\"\n                  @label={{concat (t \"triggerEmailCampaigns.steps.emails.email.subject\") \"*\"}}\n                  @value={{email.subject}}\n                  @onBlur={{fn email.transactionChange \"subject\"}}\n                />\n  \n                <UiEditor\n                  @label={{concat (t \"triggerEmailCampaigns.steps.emails.email.body\") \"*\"}}\n                  @initialValue={{email.body}}\n                  @allowedPlaceholders={{this.allowedPlaceholders}}\n                  @corporateDesignColors={{this.corporateDesignColors}}\n                  @onLinkInsert={{fn email.transactionChange \"body\"}}\n                  @onBlur={{fn email.transactionChange \"body\"}}\n                />\n                <div class=\"flex gap2\">\n                  <UiSelect\n                    @classNames=\"w-100\"\n                    @label={{t \"triggerEmailCampaigns.steps.emails.email.ctaType\"}}\n                    @objectKey=\"label\"\n                    @selected={{get (array-find email.ctaType this.ctaTypes) \"label\"}}\n                    @options={{this.ctaTypes}}\n                    @onChange={{perform this.onChangeEmailCtaType email}}\n                    as |optionComponent option|\n                  >\n                    <optionComponent.item @value={{option}}>\n                      {{option.label}}\n                    </optionComponent.item>\n                  </UiSelect>\n  \n                  {{#if email.ctaType}}\n                    <UiInput\n                      @label={{t \"triggerEmailCampaigns.steps.emails.email.ctaText\"}}\n                      @value={{email.ctaText}}\n                      @onBlur={{fn email.transactionChange \"ctaText\"}}\n                    />\n                  {{else}}\n                    <div class=\"w-100\"></div>\n                  {{/if}}\n                </div>\n  \n                {{#if (eq email.ctaType \"survey\")}}\n                  {{#if this.fetchSurveys.isRunning}}\n                    <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{92}} />\n                  {{else}}\n                    <UiSelect\n                      @classNames=\"w-100\"\n                      @label={{t \"triggerEmailCampaigns.steps.emails.email.survey\"}}\n                      @objectKey=\"label\"\n                      @selected={{get\n                        (array-find email.ctaLink (get this._surveys email.language))\n                        \"label\"\n                      }}\n                      @options={{get this._surveys email.language}}\n                      @onChange={{fn this.onChangeCtaLink email}}\n                      as |optionComponent option|\n                    >\n                      <optionComponent.item @value={{option}}>\n                        {{option.label}}\n                      </optionComponent.item>\n                    </UiSelect>\n                  {{/if}}\n                {{/if}}\n  \n                {{#if (eq email.ctaType \"referral\")}}\n                  {{#if this.fetchReferralCampaigns.isRunning}}\n                    <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{92}} />\n                  {{else}}\n                    <UiSelect\n                      @classNames=\"w-100\"\n                      @label={{t \"triggerEmailCampaigns.steps.emails.email.campaign\"}}\n                      @objectKey=\"label\"\n                      @selected={{get\n                        (array-find email.ctaLink (get this._referralCampaigns email.language))\n                        \"label\"\n                      }}\n                      @options={{get this._referralCampaigns email.language}}\n                      @onChange={{fn this.onChangeCtaLink email}}\n                      as |optionComponent option|\n                    >\n                      <optionComponent.item @value={{option}}>\n                        {{option.label}}\n                      </optionComponent.item>\n                    </UiSelect>\n                  {{/if}}\n                {{/if}}\n  \n                {{#if (eq email.ctaType \"cta\")}}\n                  <UiInput\n                    @label={{t \"triggerEmailCampaigns.steps.emails.email.ctaLink\"}}\n                    @value={{email.ctaLink}}\n                    @onBlur={{fn email.transactionChange \"ctaLink\"}}\n                  />\n                {{/if}}\n  \n                <div class=\"mt2\">\n                  <div class=\"font-sm secondary mb05\">\n                    {{concat (t \"triggerEmailCampaigns.steps.emails.email.image\") \"*\"}}\n                  </div>\n                  <MmResourceGallery\n                    @resources={{email.image}}\n                    @isImageAddable={{true}}\n                    @onDropzoneClick={{fn this.openMultimedia email}}\n                    @onResourceRemove={{fn email.transactionChange \"image\" null}}\n                    @onResourceEdit={{fn email.transactionChange \"image\"}}\n                    @mediumType=\"image\"\n                  />\n                </div>\n              {{/if}}\n            </subsubstep.contentBody>\n          </substep.substep>\n        {{/each}}\n      </step.substep>\n    {{/each}}\n  </this.wizard.step>\n  */\n  {\n    \"id\": \"asARMCk6\",\n    \"block\": \"[[[8,[30,0,[\\\"wizard\\\",\\\"step\\\"]],null,[[\\\"@id\\\",\\\"@title\\\",\\\"@description\\\",\\\"@isTitleEditable\\\",\\\"@state\\\"],[\\\"emails\\\",[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.title\\\"],null],[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.description\\\"],null],false,[30,0,[\\\"stepState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"_isLoading\\\"]]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.actions.sendTestEmails\\\"],null],\\\"send\\\",[28,[37,2],[[30,0,[\\\"openSendTestEmailDialog\\\"]],[30,0,[\\\"model\\\"]],true],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isLoading\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mt4\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,1,20,16]],null],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,54]],null],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[3,1,108,4]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mt4\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@model\\\"],[[30,2]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,0,[\\\"emailSeries\\\",\\\"length\\\"]],[28,[37,7],[[30,0,[\\\"_isLoading\\\"]]],null]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex h1 ml2 pl05 mr3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mh-100 h-100 br b--secondary-20 mh05\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"emailSeries\\\",\\\"length\\\"]]],[[[1,\\\"        \\\"],[8,[39,8],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@isLarge\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"w-100 flex justify-center mt4\\\",[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.actions.createFirstEmailStep\\\"],null],\\\"plus\\\",true,true,[30,0,[\\\"openEmailSeriesCreateDialog\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mb1\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"emailSeries\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex flex-column mh-100 ml2 pl05 mr3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"br-100 bg-secondary pa05 mv1\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[28,[37,11],[[28,[37,12],[[30,4]],null],[30,0,[\\\"emailSeries\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"mh-100 h-100 br b--secondary-20 mh05\\\"],[12],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@state\\\",\\\"@hasFixedHeight\\\",\\\"@onClick\\\"],[\\\"w-100\\\",[52,[28,[37,11],[[30,3,[\\\"state\\\"]],\\\"active\\\"],null],\\\"success\\\",\\\"error\\\"],false,[28,[37,2],[[30,0,[\\\"wizard\\\",\\\"onChangeStep\\\"]],[28,[37,14],[[28,[37,14],[[28,[37,14],[[28,[37,14],[[30,0,[\\\"wizard\\\",\\\"steps\\\"]],2],null],\\\"substeps\\\"],null],[30,4]],null],\\\"slug\\\"],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"flex flex-column mw-100 flex-grow-1\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"flex primary items-center mw-100 w-100\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.steps.emails.emailSeriesCount\\\"],[[\\\"count\\\"],[[28,[37,12],[[30,4]],null]]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[12],[1,\\\"\\\\n                       - \\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[8,[39,15],null,[[\\\"@classNames\\\",\\\"@value\\\",\\\"@isCentered\\\",\\\"@placeholder\\\",\\\"@onBlur\\\"],[\\\"font-sm font-medium ellipsis\\\",[30,3,[\\\"label\\\"]],false,\\\"\\\",[28,[37,2],[[30,3,[\\\"transactionChange\\\"]],\\\"label\\\"],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"flex items-center font-sm font-medium mt1\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"flex items-center justify-center bg-blue--10 blue br1 ph05\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,16],[\\\"watch\\\"],[[\\\"width\\\",\\\"height\\\"],[\\\"16\\\",\\\"16\\\"]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[28,[37,11],[[30,3,[\\\"offsetInDays\\\"]],0],null],[28,[37,11],[[30,3,[\\\"offsetInDays\\\"]],\\\"0\\\"],null]],null],[[[1,\\\"                        \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.immediately\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.daysCount\\\"],[[\\\"count\\\"],[[30,3,[\\\"offsetInDays\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"secondary ml05\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.afterTrigger\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"flex secondary mt05\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.steps.emails.variantCount\\\"],[[\\\"count\\\"],[[30,3,[\\\"emails\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,11],[[30,3,[\\\"emails\\\",\\\"length\\\"]],0],null],[[[1,\\\"                      \\\"],[11,0],[24,0,\\\"blue\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,18],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"createEmail\\\"]],[30,3],[28,[37,14],[[28,[37,14],[[28,[37,14],[[28,[37,14],[[30,0,[\\\"wizard\\\",\\\"steps\\\"]],2],null],\\\"substeps\\\"],null],[30,4]],null],\\\"slug\\\"],null]],null]],null],[12],[1,\\\"\\\\n                         \\\\n                        \\\"],[1,[28,[35,19],[\\\"- \\\",[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.actions.createFirstEmailVariant\\\"],null]],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[39,20],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[8,[30,6,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[52,[28,[37,11],[[30,3,[\\\"state\\\"]],\\\"active\\\"],null],[28,[37,0],[\\\"global.actions.deactivate\\\"],null],[28,[37,0],[\\\"global.actions.activate\\\"],null]],[30,3,[\\\"transactionChangeModelState\\\"]]]],null],[1,\\\"\\\\n                  \\\"],[8,[30,6,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,0],[\\\"global.actions.delete\\\"],null],true,[28,[37,2],[[30,0,[\\\"onDelete\\\"]],[30,3]],null]]],null],[1,\\\"\\\\n                \\\"]],[6]]]]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[5]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"emailSeries\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[8,[39,8],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[30,0,[\\\"openEmailSeriesCreateDialog\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"emailSeries\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[30,1,[\\\"substep\\\"]],null,[[\\\"@id\\\",\\\"@title\\\",\\\"@titlePrefix\\\",\\\"@position\\\",\\\"@onTitleChange\\\",\\\"@isTitleEditable\\\",\\\"@description\\\",\\\"@state\\\"],[[30,7,[\\\"id\\\"]],[30,7,[\\\"label\\\"]],[28,[37,19],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.emailSeriesCount\\\"],[[\\\"count\\\"],[[28,[37,12],[[30,8]],null]]]],\\\" -\\\"],null],[30,8],[28,[37,2],[[30,7,[\\\"transactionChange\\\"]],\\\"label\\\"],null],true,[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.description\\\"],null],[52,[28,[37,11],[[30,7,[\\\"state\\\"]],\\\"active\\\"],null],\\\"success\\\",\\\"error\\\"]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"_isLoading\\\"]]],[[[1,\\\"        \\\"],[8,[30,9,[\\\"navbarAction\\\"]],null,[[\\\"@onClick\\\"],[[30,7,[\\\"transactionChangeModelState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,7,[\\\"state\\\"]],\\\"active\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,16],[\\\"activate\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"blue\\\"]]]],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"ui-action-button__label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,0],[\\\"global.actions.deactivate\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,16],[\\\"deactivate\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"blue\\\"]]]],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"ui-action-button__label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,0],[\\\"global.actions.activate\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[30,9,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,0],[\\\"global.actions.delete\\\"],null],\\\"delete\\\",true,[28,[37,2],[[30,0,[\\\"onDelete\\\"]],[30,7]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[30,9,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isLoading\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt4\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,64]],null],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,4],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,20]],null],[1,\\\"\\\\n              \\\"],[8,[39,4],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[3,1,72,4]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,21],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@value\\\",\\\"@minValue\\\",\\\"@type\\\",\\\"@isTouched\\\",\\\"@errorMessage\\\",\\\"@onBlur\\\"],[\\\"pt4\\\",[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.daysSinceTrigger\\\"],null],[30,7,[\\\"offsetInDays\\\"]],0,\\\"number\\\",true,[52,[30,0,[\\\"_isEmailSeriesOffsetError\\\"]],[28,[37,0],[\\\"triggerEmailCampaigns.emailSeries.dialog.notUniqueDays\\\"],null]],[28,[37,2],[[30,0,[\\\"changeEmailSeriesOffset\\\"]],[30,7]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,10,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,0],[\\\"global.properties.days\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[10]]]]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mt2 pb1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[28,[37,14],[[30,0,[\\\"wizard\\\",\\\"steps\\\"]],2],null],\\\"substeps\\\"],null],[[[44,[[28,[37,14],[[28,[37,14],[[28,[37,14],[[28,[37,14],[[30,0,[\\\"wizard\\\",\\\"steps\\\"]],2],null],\\\"substeps\\\"],null],[30,8]],null],\\\"substeps\\\"],null]],[[[41,[30,7,[\\\"emails\\\",\\\"length\\\"]],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"secondary font-sm font-medium pb2\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.steps.emails.variants\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\\n                  \\\"],[8,[39,23],null,[[\\\"@items\\\"],[[30,7,[\\\"emails\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[8,[30,12,[\\\"item\\\"]],null,[[\\\"@title\\\",\\\"@state\\\",\\\"@onClick\\\"],[[52,[28,[37,24],[[30,13,[\\\"language\\\"]],[30,13,[\\\"availableLanguages\\\"]]],null],[52,[30,13,[\\\"subject\\\"]],[30,13,[\\\"subject\\\"]],\\\"-\\\"],[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.placeholderText\\\"],null]],[52,[30,13,[\\\"active\\\"]],\\\"success\\\",\\\"error\\\"],[28,[37,2],[[30,0,[\\\"wizard\\\",\\\"onChangeStep\\\"]],[28,[37,14],[[28,[37,14],[[30,11],[30,14]],null],\\\"slug\\\"],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[8,[30,15,[\\\"popover\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[8,[30,16,[\\\"trigger\\\"]],null,null,null],[1,\\\"\\\\n                        \\\"],[8,[30,16,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,13,[\\\"availableLanguages\\\"]]],null]],null],null,[[[1,\\\"                            \\\"],[10,0],[14,0,\\\"flex items-center justify-between pv05\\\"],[12],[1,\\\"\\\\n                              \\\"],[10,0],[14,0,\\\"pr2\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[28,[35,0],[[28,[37,19],[\\\"global.languages.\\\",[30,17]],null]],null]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,13,[\\\"active\\\"]],[[[1,\\\"                                \\\"],[10,0],[14,0,\\\"green\\\"],[12],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.steps.emails.email.states.active\\\"],null]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                \\\"],[10,0],[14,0,\\\"red\\\"],[12],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.steps.emails.email.states.inactive\\\"],null]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                            \\\"],[13],[1,\\\"\\\\n\\\"]],[17]],null],[1,\\\"                        \\\"]],[]]]]],[1,\\\"\\\\n                      \\\"]],[16]]]]],[1,\\\"\\\\n                      \\\"],[8,[30,15,[\\\"thumbnail\\\"]],null,[[\\\"@src\\\",\\\"@alt\\\"],[[52,[30,13,[\\\"image\\\"]],[28,[37,25],[[30,13,[\\\"image\\\",\\\"url\\\"]],[28,[37,26],null,[[\\\"size\\\"],[\\\"72x72\\\"]]]],null]],[52,[30,13,[\\\"image\\\"]],[30,13,[\\\"name\\\"]]]]],null],[1,\\\"\\\\n                      \\\"],[8,[30,15,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[8,[39,20],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                          \\\"],[8,[30,18,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[52,[30,13,[\\\"active\\\"]],[28,[37,0],[\\\"global.actions.deactivate\\\"],null],[28,[37,0],[\\\"global.actions.activate\\\"],null]],[30,13,[\\\"transactionChangeModelState\\\"]]]],null],[1,\\\"\\\\n                          \\\"],[8,[30,18,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.actions.sendTestEmail\\\"],null],[28,[37,2],[[30,0,[\\\"openSendTestEmailDialog\\\"]],[30,13],false],null]]],null],[1,\\\"\\\\n                          \\\"],[8,[30,18,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.actions.preview\\\"],null],[28,[37,2],[[30,0,[\\\"openPreviewDialog\\\"]],[30,13],\\\"email\\\"],null]]],null],[1,\\\"\\\\n                          \\\"],[8,[30,18,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,0],[\\\"global.actions.delete\\\"],null],true,[28,[37,2],[[30,0,[\\\"onDelete\\\"]],[30,13]],null]]],null],[1,\\\"\\\\n                        \\\"]],[18]]]]],[1,\\\"\\\\n                      \\\"]],[]]]]],[1,\\\"\\\\n                    \\\"]],[15]]]]],[1,\\\"\\\\n                  \\\"]],[12,13,14]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[8,[39,8],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@isLarge\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"w-100 flex justify-center\\\",[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.actions.createFirstEmailVariant\\\"],null],\\\"plus\\\",true,true,[28,[37,2],[[30,0,[\\\"createEmail\\\"]],[30,7],[28,[37,14],[[28,[37,14],[[28,[37,14],[[28,[37,14],[[30,0,[\\\"wizard\\\",\\\"steps\\\"]],2],null],\\\"substeps\\\"],null],[30,8]],null],\\\"slug\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[11]]]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,7,[\\\"emails\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,8],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[28,[37,2],[[30,0,[\\\"createEmail\\\"]],[30,7],[28,[37,14],[[28,[37,14],[[28,[37,14],[[28,[37,14],[[30,0,[\\\"wizard\\\",\\\"steps\\\"]],2],null],\\\"substeps\\\"],null],[30,8]],null],\\\"slug\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,7,[\\\"emails\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,9,[\\\"substep\\\"]],null,[[\\\"@id\\\",\\\"@title\\\",\\\"@state\\\"],[[30,19,[\\\"id\\\"]],[52,[28,[37,24],[[30,19,[\\\"language\\\"]],[30,19,[\\\"availableLanguages\\\"]]],null],[52,[30,19,[\\\"subject\\\"]],[30,19,[\\\"subject\\\"]],\\\"-\\\"],[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.placeholderText\\\"],null]],[52,[30,19,[\\\"active\\\"]],\\\"success\\\",\\\"error\\\"]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"_isLoading\\\"]]],[[[1,\\\"            \\\"],[8,[30,20,[\\\"navbarAction\\\"]],null,[[\\\"@onClick\\\"],[[30,19,[\\\"transactionChangeModelState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,19,[\\\"active\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,16],[\\\"activate\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"blue\\\"]]]],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"ui-action-button__label\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,0],[\\\"global.actions.deactivate\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,16],[\\\"deactivate\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"blue\\\"]]]],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"ui-action-button__label\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,0],[\\\"global.actions.activate\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"]],[]]]]],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,20,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.actions.preview\\\"],null],\\\"popup\\\",[28,[37,2],[[30,0,[\\\"openPreviewDialog\\\"]],[30,19],\\\"email\\\"],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,20,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.actions.sendTestEmail\\\"],null],\\\"send\\\",[28,[37,2],[[30,0,[\\\"openSendTestEmailDialog\\\"]],[30,19],false],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,20,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,0],[\\\"global.actions.delete\\\"],null],\\\"delete\\\",true,[28,[37,2],[[30,0,[\\\"onDelete\\\"]],[30,19]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[8,[30,20,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,0],[24,0,\\\"pt3\\\"],[4,[38,27],[[28,[37,2],[[30,0,[\\\"_didUpdateEmailLanguage\\\"]],[30,19]],null],[30,19,[\\\"language\\\"]]],null],[4,[38,28],[[28,[37,2],[[30,0,[\\\"_onEnterStep\\\"]],[30,19],\\\"email\\\"],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,29],null,[[\\\"@selected\\\",\\\"@languages\\\",\\\"@publishedLanguages\\\",\\\"@availableLanguages\\\",\\\"@onSelect\\\",\\\"@addLanguage\\\",\\\"@removeLanguage\\\",\\\"@hideState\\\"],[[30,19,[\\\"language\\\"]],[30,19,[\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,19,[\\\"transactionChangeLanguage\\\"]],[30,19,[\\\"transactionAddLanguage\\\"]],[30,19,[\\\"transactionDeleteLanguage\\\"]],true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,17],[[30,0,[\\\"uiTransactionManager\\\",\\\"isLoading\\\"]],[30,0,[\\\"_isLoading\\\"]]],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"pt2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,4],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,84]],null],[1,\\\"\\\\n                \\\"],[8,[39,4],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,190]],null],[1,\\\"\\\\n                \\\"],[8,[39,4],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,92]],null],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,4],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,184]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[8,[39,21],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@value\\\",\\\"@onBlur\\\"],[\\\"pt2\\\",[28,[37,19],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.subject\\\"],null],\\\"*\\\"],null],[30,19,[\\\"subject\\\"]],[28,[37,2],[[30,19,[\\\"transactionChange\\\"]],\\\"subject\\\"],null]]],null],[1,\\\"\\\\n\\\\n              \\\"],[8,[39,30],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@allowedPlaceholders\\\",\\\"@corporateDesignColors\\\",\\\"@onLinkInsert\\\",\\\"@onBlur\\\"],[[28,[37,19],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.body\\\"],null],\\\"*\\\"],null],[30,19,[\\\"body\\\"]],[30,0,[\\\"allowedPlaceholders\\\"]],[30,0,[\\\"corporateDesignColors\\\"]],[28,[37,2],[[30,19,[\\\"transactionChange\\\"]],\\\"body\\\"],null],[28,[37,2],[[30,19,[\\\"transactionChange\\\"]],\\\"body\\\"],null]]],null],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"flex gap2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,31],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@objectKey\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\"],[\\\"w-100\\\",[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.ctaType\\\"],null],\\\"label\\\",[28,[37,14],[[28,[37,32],[[30,19,[\\\"ctaType\\\"]],[30,0,[\\\"ctaTypes\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"ctaTypes\\\"]],[28,[37,33],[[30,0,[\\\"onChangeEmailCtaType\\\"]],[30,19]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[8,[30,21,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,22]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[30,22,[\\\"label\\\"]]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                \\\"]],[21,22]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,19,[\\\"ctaType\\\"]],[[[1,\\\"                  \\\"],[8,[39,21],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onBlur\\\"],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.ctaText\\\"],null],[30,19,[\\\"ctaText\\\"]],[28,[37,2],[[30,19,[\\\"transactionChange\\\"]],\\\"ctaText\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"w-100\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,34],[[30,19,[\\\"ctaType\\\"]],\\\"survey\\\"],null],[[[41,[30,0,[\\\"fetchSurveys\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[8,[39,4],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,92]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[8,[39,31],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@objectKey\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\"],[\\\"w-100\\\",[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.survey\\\"],null],\\\"label\\\",[28,[37,14],[[28,[37,32],[[30,19,[\\\"ctaLink\\\"]],[28,[37,14],[[30,0,[\\\"_surveys\\\"]],[30,19,[\\\"language\\\"]]],null]],null],\\\"label\\\"],null],[28,[37,14],[[30,0,[\\\"_surveys\\\"]],[30,19,[\\\"language\\\"]]],null],[28,[37,2],[[30,0,[\\\"onChangeCtaLink\\\"]],[30,19]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[8,[30,23,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,24]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[1,[30,24,[\\\"label\\\"]]],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n                  \\\"]],[23,24]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,34],[[30,19,[\\\"ctaType\\\"]],\\\"referral\\\"],null],[[[41,[30,0,[\\\"fetchReferralCampaigns\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[8,[39,4],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,92]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[8,[39,31],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@objectKey\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\"],[\\\"w-100\\\",[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.campaign\\\"],null],\\\"label\\\",[28,[37,14],[[28,[37,32],[[30,19,[\\\"ctaLink\\\"]],[28,[37,14],[[30,0,[\\\"_referralCampaigns\\\"]],[30,19,[\\\"language\\\"]]],null]],null],\\\"label\\\"],null],[28,[37,14],[[30,0,[\\\"_referralCampaigns\\\"]],[30,19,[\\\"language\\\"]]],null],[28,[37,2],[[30,0,[\\\"onChangeCtaLink\\\"]],[30,19]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[8,[30,25,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,26]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[1,[30,26,[\\\"label\\\"]]],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n                  \\\"]],[25,26]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,34],[[30,19,[\\\"ctaType\\\"]],\\\"cta\\\"],null],[[[1,\\\"                \\\"],[8,[39,21],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onBlur\\\"],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.ctaLink\\\"],null],[30,19,[\\\"ctaLink\\\"]],[28,[37,2],[[30,19,[\\\"transactionChange\\\"]],\\\"ctaLink\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"font-sm secondary mb05\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,19],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.emails.email.image\\\"],null],\\\"*\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,35],null,[[\\\"@resources\\\",\\\"@isImageAddable\\\",\\\"@onDropzoneClick\\\",\\\"@onResourceRemove\\\",\\\"@onResourceEdit\\\",\\\"@mediumType\\\"],[[30,19,[\\\"image\\\"]],true,[28,[37,2],[[30,0,[\\\"openMultimedia\\\"]],[30,19]],null],[28,[37,2],[[30,19,[\\\"transactionChange\\\"]],\\\"image\\\",null],null],[28,[37,2],[[30,19,[\\\"transactionChange\\\"]],\\\"image\\\"],null],\\\"image\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[20]]]]],[1,\\\"\\\\n\\\"]],[19]],null],[1,\\\"    \\\"]],[9]]]]],[1,\\\"\\\\n\\\"]],[7,8]],null]],[1]]]]]],[\\\"step\\\",\\\"@model\\\",\\\"item\\\",\\\"index\\\",\\\"controls\\\",\\\"menu\\\",\\\"emailSeries\\\",\\\"emailSeriesIndex\\\",\\\"substep\\\",\\\"input\\\",\\\"emailSteps\\\",\\\"list\\\",\\\"item\\\",\\\"index\\\",\\\"controls\\\",\\\"pop\\\",\\\"language\\\",\\\"menu\\\",\\\"email\\\",\\\"subsubstep\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"t\\\",\\\"unless\\\",\\\"fn\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"amc-campaign/email-campaign/trigger\\\",\\\"and\\\",\\\"not\\\",\\\"ui-button\\\",\\\"each\\\",\\\"-track-array\\\",\\\"equal\\\",\\\"inc\\\",\\\"ui-list-item\\\",\\\"get\\\",\\\"ui-inline-edit\\\",\\\"svg-jar\\\",\\\"or\\\",\\\"on\\\",\\\"concat\\\",\\\"ui-item-menu\\\",\\\"ui-input\\\",\\\"let\\\",\\\"ui-list\\\",\\\"includes\\\",\\\"mm-medium-url-options\\\",\\\"hash\\\",\\\"did-update\\\",\\\"did-insert\\\",\\\"ui-lang-select\\\",\\\"ui-editor\\\",\\\"ui-select\\\",\\\"array-find\\\",\\\"perform\\\",\\\"eq\\\",\\\"mm-resource-gallery\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/trigger-email-campaign/steps/emails.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignTriggerEmailCampaignStepsEmails = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _dec6 = (0, _emberArgTypes.arg)(_propTypes.func), _dec7 = (0, _emberArgTypes.arg)(_propTypes.func), _dec8 = (0, _emberArgTypes.arg)(_propTypes.func), _dec9 = (0, _emberArgTypes.arg)(_propTypes.func), _dec10 = (0, _emberArgTypes.arg)(_propTypes.func), _dec11 = (0, _emberArgTypes.arg)(_propTypes.func), _dec12 = (0, _emberConcurrency.task)(function* (language) {\n    var _this$_surveys;\n    if ((_this$_surveys = this._surveys) !== null && _this$_surveys !== void 0 && _this$_surveys[language]) {\n      return;\n    }\n    try {\n      const response = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.organizationId}/surveys?noFallback=1`, {\n        headers: {\n          'Accept-Language': language\n        }\n      });\n      if (!response.ok) throw new Error();\n      const {\n        surveys\n      } = yield response.json();\n      const surveysByLanguage = this._surveys || {};\n      if (!surveysByLanguage[language]) {\n        surveysByLanguage[language] = [];\n      }\n      surveysByLanguage[language] = surveys.map(survey => {\n        return {\n          value: `{#LANDING-PAGE:SURVEY:${language}:${survey.id}#}`,\n          label: survey.name\n        };\n      });\n      this._surveys = surveysByLanguage;\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec13 = (0, _emberConcurrency.task)(function* (language) {\n    var _this$_referralCampai;\n    if ((_this$_referralCampai = this._referralCampaigns) !== null && _this$_referralCampai !== void 0 && _this$_referralCampai[language]) {\n      return;\n    }\n    try {\n      const response = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHost}/${this.organizationId}/organisation-campaigns/referral?active=1&per_page=5000`, {\n        headers: {\n          'Accept-Language': language\n        }\n      });\n      if (!response.ok) throw new Error();\n      const {\n        referralCampaigns\n      } = yield response.json();\n      const referralCampaignsByLanguage = this._referralCampaigns || {};\n      if (!referralCampaignsByLanguage[language]) {\n        referralCampaignsByLanguage[language] = [];\n      }\n      referralCampaignsByLanguage[language] = referralCampaigns.map(campaign => {\n        return {\n          value: `{#MA-CAMPAIGN:REFERRAL:${language}:${campaign.id}#}`,\n          label: campaign.title\n        };\n      });\n      this._referralCampaigns = referralCampaignsByLanguage;\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec14 = (0, _emberConcurrency.task)(function* (email, option) {\n    const {\n      ctaLink,\n      ctaText,\n      ctaType\n    } = email;\n    const previousCtaType = this.ctaTypes.find(cta => cta.value === email.ctaType);\n    yield email.transactionChange('ctaType', option, previousCtaType);\n    if (option.value === 'survey') {\n      yield this.fetchSurveys.perform(email.language);\n    }\n    if (option.value === 'referral') {\n      yield this.fetchReferralCampaigns.perform(email.language);\n    }\n    if (ctaText) {\n      yield email.transactionChange('ctaText', null);\n    }\n    if (ctaLink) {\n      if (ctaType === 'referral' || ctaType === 'survey') {\n        yield this.onChangeCtaLink(email, null, ctaType);\n      } else {\n        yield email.transactionChange('ctaLink', null);\n      }\n    }\n  }).drop(), _class = class AmcCampaignTriggerEmailCampaignStepsEmails extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"wizard\", _descriptor7, this);\n      _initializerDefineProperty(this, \"model\", _descriptor8, this);\n      _initializerDefineProperty(this, \"corporateDesignColors\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isLoading\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_isEmailSeriesOffsetError\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_surveys\", _descriptor12, this);\n      _initializerDefineProperty(this, \"_referralCampaigns\", _descriptor13, this);\n      _initializerDefineProperty(this, \"openPreviewDialog\", _descriptor14, this);\n      _initializerDefineProperty(this, \"openMultimedia\", _descriptor15, this);\n      _initializerDefineProperty(this, \"onDelete\", _descriptor16, this);\n      _initializerDefineProperty(this, \"onEnterStep\", _descriptor17, this);\n      _initializerDefineProperty(this, \"openSendTestEmailDialog\", _descriptor18, this);\n      _initializerDefineProperty(this, \"openEmailSeriesCreateDialog\", _descriptor19, this);\n      _initializerDefineProperty(this, \"createEmail\", _descriptor20, this);\n      _initializerDefineProperty(this, \"fetchSurveys\", _descriptor21, this);\n      _initializerDefineProperty(this, \"fetchReferralCampaigns\", _descriptor22, this);\n      _initializerDefineProperty(this, \"onChangeEmailCtaType\", _descriptor23, this);\n    }\n    get _isLoading() {\n      return this.isLoading;\n    }\n    get availableLanguages() {\n      return this.uiAppSettings.languages.contentLanguages;\n    }\n    get defaultLanguage() {\n      return this.uiAppSettings.languages.defaultLanguage;\n    }\n    get currentLanguage() {\n      return this.uiAppSettings.currentLocale;\n    }\n    get organizationId() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id;\n    }\n    get ctaTypes() {\n      var _meta$language;\n      const {\n        meta\n      } = this.model;\n      const language = this.currentLanguage || this.defaultLanguage;\n      return (meta === null || meta === void 0 || (_meta$language = meta[language]) === null || _meta$language === void 0 ? void 0 : _meta$language.ctaTypes) || [];\n    }\n    get emailSeries() {\n      if (this.model.emailSeries.length <= 1) {\n        return this.model.emailSeries;\n      }\n      const sorted = this.model.emailSeries.toArray().sort((a, b) => a.offsetInDays - b.offsetInDays);\n      return sorted;\n    }\n    get allowedPlaceholders() {\n      return [{\n        label: 'Call-To-Action',\n        value: 'CTA'\n      }];\n    }\n    get stepState() {\n      var _this$model;\n      const emailSeries = (_this$model = this.model) === null || _this$model === void 0 ? void 0 : _this$model.emailSeries;\n      if (!emailSeries) {\n        return 'disabled';\n      }\n\n      // No email-series is created\n      if (emailSeries.length === 0) {\n        return 'disabled';\n      }\n      const inactiveEmailSeries = emailSeries.filter(serie => serie.state === 'inactive');\n      if (inactiveEmailSeries.length === emailSeries.length) {\n        // All email-series are inactive\n        return 'error';\n      }\n      if (inactiveEmailSeries.length > 0) {\n        // Some email-series are inactive\n        return 'warning';\n      }\n      return 'success';\n    }\n    async changeEmailSeriesOffset(model, value) {\n      this._isEmailSeriesOffsetError = false;\n      const isDuplicateOffset = this.emailSeries.find(emailSeries => emailSeries.offsetInDays == value && emailSeries.id !== model.id);\n      if (isDuplicateOffset) {\n        this._isEmailSeriesOffsetError = true;\n      }\n      await model.transactionChange('offsetInDays', value);\n    }\n    async _didUpdateEmailLanguage(email) {\n      await this.model.fetchMeta.perform(email.language);\n      if (email.ctaType === 'survey') {\n        await this.fetchSurveys.perform(email.language);\n      }\n      if (email.ctaType === 'referral') {\n        await this.fetchReferralCampaigns.perform(email.language);\n      }\n    }\n    async _onEnterStep(model, key) {\n      var _this$_surveys2, _this$_referralCampai2;\n      if (key === 'email' && (model === null || model === void 0 ? void 0 : model.ctaType) === 'survey' && !((_this$_surveys2 = this._surveys) !== null && _this$_surveys2 !== void 0 && _this$_surveys2[model.language])) {\n        // Fetch selectable surveys\n        await this.fetchSurveys.perform(model.language);\n      }\n      if (key === 'email' && (model === null || model === void 0 ? void 0 : model.ctaType) === 'referral' && !((_this$_referralCampai2 = this._referralCampaigns) !== null && _this$_referralCampai2 !== void 0 && _this$_referralCampai2[model.language])) {\n        // Fetch selectable referral campaigns\n        await this.fetchReferralCampaigns.perform(model.language);\n      }\n      await this.onEnterStep(model, key);\n    }\n    async onChangeCtaLink(email, option, type) {\n      const ctaType = type || email.ctaType;\n      let previousOption;\n      if (ctaType === 'referral') {\n        var _this$_referralCampai3;\n        previousOption = (_this$_referralCampai3 = this._referralCampaigns) === null || _this$_referralCampai3 === void 0 ? void 0 : _this$_referralCampai3[email.language].find(referral => referral.value === email.ctaLink);\n      } else {\n        var _this$_surveys3;\n        previousOption = (_this$_surveys3 = this._surveys) === null || _this$_surveys3 === void 0 ? void 0 : _this$_surveys3[email.language].find(survey => survey.value === email.ctaLink);\n      }\n      await email.transactionChange('ctaLink', option, previousOption);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"wizard\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"corporateDesignColors\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"_isEmailSeriesOffsetError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"_surveys\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"_referralCampaigns\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"openPreviewDialog\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"openMultimedia\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"onDelete\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"onEnterStep\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"openSendTestEmailDialog\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"openEmailSeriesCreateDialog\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"createEmail\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"fetchSurveys\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"fetchReferralCampaigns\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"changeEmailSeriesOffset\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeEmailSeriesOffset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_didUpdateEmailLanguage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_didUpdateEmailLanguage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_onEnterStep\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onEnterStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeCtaLink\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeCtaLink\"), _class.prototype), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"onChangeEmailCtaType\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignTriggerEmailCampaignStepsEmails);\n});","define(\"additive-mc/components/amc-campaign/trigger-email-campaign/steps/trigger\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"ember-concurrency\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\", \"lodash.clonedeep\", \"ember-animated\", \"@additive-apps/ui/utils/dom-util\"], function (_exports, _component, _templateFactory, _environment, _component2, _service, _object, _emberConcurrency, _emberArgTypes, _propTypes, _tracking, _lodash, _emberAnimated, _domUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <this.wizard.step\n    @id=\"trigger\"\n    @title={{t \"triggerEmailCampaigns.steps.trigger.title\"}}\n    @isTitleEditable={{false}}\n    @state=\"success\"\n    as |step|\n  >\n    <step.contentBody>\n      <div {{did-insert this.didInsert}}></div>\n  \n      {{#if this._isLoading}}\n        <div class=\"mt2\">\n          <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{20}} @gap={{16}} />\n          <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{54}} />\n        </div>\n  \n        <div class=\"mt1\">\n          <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{60}} />\n        </div>\n  \n        <div class=\"mt1\">\n          <UiSkeleton @items={{1}} @itemsPerRow={{1}} @cardHeight={{52}} />\n        </div>\n      {{else}}\n        <div class=\"mt2\" {{did-insert this.didInsertContent}}>\n          <AmcCampaign::EmailCampaign::Trigger @model={{@model}} />\n        </div>\n  \n        {{#if (equal this.model.trigger \"inquiry-trigger-campaign\")}}\n          <div class=\"flex font-sm secondary mb1 mt3\">\n            {{concat this._triggerConfigMeta.label \"*\"}}\n  \n            <UiPopover @classNames=\"w-100\" as |pop|>\n              <pop.trigger>\n                {{svg-jar \"info\" class=\"secondary ml1\" width=\"20\" height=\"20\"}}\n              </pop.trigger>\n              <pop.content>\n                {{this._triggerConfigMeta.description}}\n              </pop.content>\n            </UiPopover>\n          </div>\n  \n          <UiSelect\n            @isPlain={{true}}\n            @isMultiSelect={{true}}\n            @objectKey=\"label\"\n            @isSearchable={{true}}\n            @useFullTextSearch={{true}}\n            @initialValue={{this._selectedInquiryChannels}}\n            @selected={{this._selectedInquiryChannels}}\n            @options={{this._inquiryChannels}}\n            @onClose={{this.onInquiryChannelSelectClose}}\n            @onSelectAll={{this.onInquiryChannelSelectClose}}\n            @onDeselectAll={{this.onInquiryChannelSelectClose}}\n            @onChange={{this.onInquiryChannelChange}}\n            as |optionComponent option|\n          >\n            <optionComponent.item @value={{option}}>\n              {{option.label}}\n            </optionComponent.item>\n          </UiSelect>\n        {{/if}}\n  \n        {{#if (equal this.model.trigger \"survey-trigger-campaign\")}}\n          <div class=\"flex font-sm secondary mb1 mt3\">\n            {{concat this._triggerConfigMeta.label \"*\"}}\n  \n            <UiPopover @classNames=\"w-100\" as |pop|>\n              <pop.trigger>\n                {{svg-jar \"info\" class=\"secondary ml1\" width=\"20\" height=\"20\"}}\n              </pop.trigger>\n              <pop.content>\n                {{this._triggerConfigMeta.description}}\n              </pop.content>\n            </UiPopover>\n          </div>\n  \n          <UiSelect\n            @isPlain={{true}}\n            @isMultiSelect={{true}}\n            @objectKey=\"label\"\n            @isSearchable={{true}}\n            @useFullTextSearch={{true}}\n            @initialValue={{this._selectedSurveys}}\n            @selected={{this._selectedSurveys}}\n            @options={{this._surveys}}\n            @onClose={{this.onSurveySelectClose}}\n            @onSelectAll={{this.onSurveySelectClose}}\n            @onDeselectAll={{this.onSurveySelectClose}}\n            @onChange={{this.onSurveyChange}}\n            as |optionComponent option|\n          >\n            <optionComponent.item @value={{option}}>\n              {{option.label}}\n              {{#each option.publishedLanguages as |language|}}\n                <div class=\"primary font-xs bg-secondary--10 br1 pv05 ph1 ml1\">{{language}}</div>\n              {{/each}}\n            </optionComponent.item>\n          </UiSelect>\n        {{/if}}\n  \n        {{#if (equal this.model.trigger \"interest-trigger-campaign\")}}\n          <div class=\"flex flex-column font-sm mb1 mt3\">\n            <div class=\"font-sm font-medium primary font-medium primray mb1\">\n              {{this._triggerConfigMeta.label}}\n            </div>\n            <div class=\"font-sm font-medium secondary\">\n              {{this._triggerConfigMeta.description}}\n            </div>\n          </div>\n  \n          <UiSelect\n            @label={{concat (t \"triggerEmailCampaigns.steps.trigger.interests\") \"*\"}}\n            @isMultiSelect={{true}}\n            @objectKey=\"label\"\n            @isSearchable={{true}}\n            @useFullTextSearch={{true}}\n            @initialValue={{this._selectedInterests}}\n            @selected={{this._selectedInterests}}\n            @options={{this._interests}}\n            @onClose={{this.onInterestSelectClose}}\n            @onSelectAll={{this.onInterestSelectClose}}\n            @onDeselectAll={{this.onInterestSelectClose}}\n            @onChange={{this.onInterestChange}}\n            as |optionComponent option|\n          >\n            <optionComponent.item @value={{option}}>\n              {{option.label}}\n            </optionComponent.item>\n          </UiSelect>\n  \n          <UiSelect\n            @label={{t \"triggerEmailCampaigns.steps.trigger.surveys\"}}\n            @isMultiSelect={{true}}\n            @objectKey=\"label\"\n            @isSearchable={{true}}\n            @useFullTextSearch={{true}}\n            @initialValue={{this._selectedSurveys}}\n            @selected={{this._selectedSurveys}}\n            @options={{this._surveys}}\n            @onClose={{this.onSurveySelectClose}}\n            @onSelectAll={{this.onSurveySelectClose}}\n            @onDeselectAll={{this.onSurveySelectClose}}\n            @onChange={{this.onSurveyChange}}\n            as |optionComponent option|\n          >\n            <optionComponent.item @value={{option}}>\n              {{option.label}}\n              {{#each option.publishedLanguages as |language|}}\n                <div class=\"primary font-xs bg-secondary--10 br1 pv05 ph1 ml1\">{{language}}</div>\n              {{/each}}\n            </optionComponent.item>\n          </UiSelect>\n  \n        {{/if}}\n  \n        {{#if (equal this.model.trigger \"lead-trigger-campaign\")}}\n          <div class=\"flex font-sm secondary mb1 mt3\">\n            {{concat this._triggerConfigMeta.label \"*\"}}\n  \n            <UiPopover @classNames=\"w-100\" as |pop|>\n              <pop.trigger>\n                {{svg-jar \"info\" class=\"secondary ml1\" width=\"20\" height=\"20\"}}\n              </pop.trigger>\n              <pop.content>\n                {{this._triggerConfigMeta.description}}\n              </pop.content>\n            </UiPopover>\n          </div>\n  \n          <UiSelect\n            @isPlain={{true}}\n            @isMultiSelect={{true}}\n            @objectKey=\"label\"\n            @isSearchable={{true}}\n            @useFullTextSearch={{true}}\n            @initialValue={{this._selectedCampaigns}}\n            @selected={{this._selectedCampaigns}}\n            @options={{this._campaigns}}\n            @onClose={{this.onCampaignSelectClose}}\n            @onSelectAll={{this.onCampaignSelectClose}}\n            @onDeselectAll={{this.onCampaignSelectClose}}\n            @onChange={{this.onCampaignChange}}\n            as |optionComponent option|\n          >\n            <optionComponent.item @value={{option}}>\n              {{option.label}}\n            </optionComponent.item>\n          </UiSelect>\n        {{/if}}\n  \n        {{#if (equal this.model.trigger \"newsletter-trigger-campaign\")}}\n          <div class=\"flex flex-column font-sm mb1 mt3\">\n            <div class=\"font-sm font-medium primary font-medium primray mb1\">\n              {{this._triggerConfigMeta.label}}\n            </div>\n            <div class=\"font-sm font-medium secondary\">\n              {{this._triggerConfigMeta.description}}\n            </div>\n          </div>\n  \n          <div class=\"flex mt2\">\n            <div class=\"mr2 w-100\">\n              <div class=\"flex flex-column font-sm\">\n                <div class=\"font-sm font-medium secondary font-medium primray\">\n                  {{concat (t \"triggerEmailCampaigns.steps.trigger.addressBook\") \"*\"}}\n                </div>\n  \n              </div>\n              <UiSelect\n                @classNames=\"w-100\"\n                @isPlain={{true}}\n                @isMultiSelect={{true}}\n                @objectKey=\"label\"\n                @isSearchable={{true}}\n                @useFullTextSearch={{true}}\n                @initialValue={{this._selectedAddressBooks}}\n                @selected={{this._selectedAddressBooks}}\n                @options={{this._addressBooks}}\n                @onClose={{this.onAddressBookSelectClose}}\n                @onSelectAll={{this.onAddressBookSelectClose}}\n                @onDeselectAll={{this.onAddressBookSelectClose}}\n                @onChange={{this.onAddressBookChange}}\n                as |optionComponent option|\n              >\n                <optionComponent.item @value={{option}}>\n                  {{option.label}}\n                </optionComponent.item>\n              </UiSelect>\n            </div>\n  \n            {{#unless this.updateSelectableGroups.isRunning}}\n              <div class=\"w-100\">\n                <div class=\"flex font-sm secondary\">\n                  {{t \"triggerEmailCampaigns.steps.trigger.group\"}}\n  \n                  <UiPopover @classNames=\"w-100\" as |pop|>\n                    <pop.trigger>\n                      {{svg-jar \"info\" class=\"secondary ml1\" width=\"20\" height=\"20\"}}\n                    </pop.trigger>\n                    <pop.content>\n                      {{t \"triggerEmailCampaigns.steps.trigger.groupInfo\"}}\n                    </pop.content>\n                  </UiPopover>\n                </div>\n  \n                <UiSelect\n                  @classNames=\"w-100\"\n                  @isPlain={{true}}\n                  @isMultiSelect={{true}}\n                  @objectKey=\"label\"\n                  @isSearchable={{true}}\n                  @useFullTextSearch={{true}}\n                  @isReadOnly={{equal this._selectedAddressBooks.length 0}}\n                  @initialValue={{this._selectedGroups}}\n                  @selected={{this._selectedGroups}}\n                  @options={{this._groups}}\n                  @onClose={{this.onGroupSelectClose}}\n                  @onSelectAll={{this.onGroupSelectClose}}\n                  @onDeselectAll={{this.onGroupSelectClose}}\n                  @onChange={{this.onGroupChange}}\n                  as |optionComponent option|\n                >\n                  <optionComponent.item @value={{option}}>\n                    {{option.label}}\n                  </optionComponent.item>\n                </UiSelect>\n              </div>\n            {{/unless}}\n          </div>\n  \n        {{/if}}\n  \n        <div class=\"flex flex-column w-100 bg-secondary--10 mb05 br1 mt4\">\n          <div\n            class=\"flex justify-between pa2 cpointer {{if this._isExpanded 'pb1'}}\"\n            role=\"button\"\n            {{on \"click\" this.toggle}}\n          >\n            <div class=\"primary font-medium font-sm\">\n              {{t \"triggerEmailCampaigns.steps.trigger.advancedSettings.label\"}}\n            </div>\n  \n            {{#if this._isExpanded}}\n              {{svg-jar \"pointer-up\" width=\"20\"}}\n            {{else}}\n              {{svg-jar \"pointer-down\" width=\"20\"}}\n            {{/if}}\n          </div>\n  \n          <AnimatedContainer class=\"ohidden\">\n            {{#animated-if this._isExpanded use=this._animatedTransition}}\n              <div class=\"flex flex-column pa2 pt0\">\n                <div class=\"font-sm font-medium secondary\">\n                  {{t \"triggerEmailCampaigns.steps.trigger.advancedSettings.description\"}}\n                </div>\n  \n                {{#if this._deliveryTimeConfigurationMeta}}\n                  <div class=\"mt3\">\n                    <div class=\"font-sm font-medium font-medium primray mb1\">\n                      {{this._deliveryTimeConfigurationMeta.label}}\n                    </div>\n                    <div class=\"font-sm font-medium secondary\">\n                      {{this._deliveryTimeConfigurationMeta.description}}\n                    </div>\n  \n                    <div class=\"font-sm secondary mt2\">\n                      {{concat this._deliveryTimeConfigurationMeta.label \"*\"}}\n                    </div>\n                    <div class=\"flex gap2\">\n                      <UiSelect\n                        @classNames={{if\n                          (not (equal this._selectedDeliveryTime.value \"immediately\"))\n                          \"w-100\"\n                          \"w-50\"\n                        }}\n                        @isPlain={{true}}\n                        @objectKey=\"label\"\n                        @selected={{this._selectedDeliveryTime.label}}\n                        @options={{this._selectableDeliveryTimes}}\n                        @onChange={{this.changeDeliveryTime}}\n                        as |optionComponent option|\n                      >\n                        <optionComponent.item @value={{option}}>\n                          {{option.label}}\n                        </optionComponent.item>\n                      </UiSelect>\n  \n                      {{#if (not (equal this._selectedDeliveryTime.value \"immediately\"))}}\n                        <UiTimepicker\n                          @classNames=\"w-100\"\n                          @isPlain={{true}}\n                          @allowEmptyValue={{true}}\n                          @initialValue={{this._initialDeliveryDateTime}}\n                          @onChange={{this.changeTimePicker}}\n                        />\n                      {{/if}}\n                    </div>\n                  </div>\n                {{/if}}\n  \n                <div class=\"mt3\">\n                  <div class=\"font-sm font-medium primary mb1\">\n                    {{t \"triggerEmailCampaigns.steps.trigger.considerationPeriod.label\"}}\n                  </div>\n                  <div class=\"font-sm font-medium secondary\">\n                    {{t \"triggerEmailCampaigns.steps.trigger.considerationPeriod.description\"}}\n                  </div>\n                  <div class=\"flex gap2 mt2\">\n                    <UiDatetimePicker\n                      @classNames=\"flex-column\"\n                      @dateLabel={{t \"triggerEmailCampaigns.steps.trigger.startsAt\"}}\n                      @timeLabel={{t \"triggerEmailCampaigns.steps.trigger.startTime\"}}\n                      @onChange={{this.setTriggerStartDate}}\n                      @initialDate={{this._initialTriggerStartDate}}\n                      @isClearable={{true}}\n                    />\n  \n                    <UiDatetimePicker\n                      @classNames=\"flex-column\"\n                      @dateLabel={{t \"triggerEmailCampaigns.steps.trigger.endsAt\"}}\n                      @timeLabel={{t \"triggerEmailCampaigns.steps.trigger.endTime\"}}\n                      @onChange={{this.setTriggerEndDate}}\n                      @initialDate={{this._initialTriggerEndDate}}\n                      @minDate={{this._minDate}}\n                      @isClearable={{true}}\n                    />\n                  </div>\n                </div>\n              </div>\n            {{/animated-if}}\n          </AnimatedContainer>\n        </div>\n      {{/if}}\n  \n    </step.contentBody>\n  </this.wizard.step>\n  */\n  {\n    \"id\": \"q9Y51cqj\",\n    \"block\": \"[[[8,[30,0,[\\\"wizard\\\",\\\"step\\\"]],null,[[\\\"@id\\\",\\\"@title\\\",\\\"@isTitleEditable\\\",\\\"@state\\\"],[\\\"trigger\\\",[28,[37,0],[\\\"triggerEmailCampaigns.steps.trigger.title\\\"],null],false,\\\"success\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[4,[38,1],[[30,0,[\\\"didInsert\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_isLoading\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,1,20,16]],null],[1,\\\"\\\\n        \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,54]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mt1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,60]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mt1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,52]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[11,0],[24,0,\\\"mt2\\\"],[4,[38,1],[[30,0,[\\\"didInsertContent\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@model\\\"],[[30,2]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"model\\\",\\\"trigger\\\"]],\\\"inquiry-trigger-campaign\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex font-sm secondary mb1 mt3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[[30,0,[\\\"_triggerConfigMeta\\\",\\\"label\\\"]],\\\"*\\\"],null]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,7],null,[[\\\"@classNames\\\"],[\\\"w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,3,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"info\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"secondary ml1\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,3,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"_triggerConfigMeta\\\",\\\"description\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[3]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,9],null,[[\\\"@isPlain\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onClose\\\",\\\"@onSelectAll\\\",\\\"@onDeselectAll\\\",\\\"@onChange\\\"],[true,true,\\\"label\\\",true,true,[30,0,[\\\"_selectedInquiryChannels\\\"]],[30,0,[\\\"_selectedInquiryChannels\\\"]],[30,0,[\\\"_inquiryChannels\\\"]],[30,0,[\\\"onInquiryChannelSelectClose\\\"]],[30,0,[\\\"onInquiryChannelSelectClose\\\"]],[30,0,[\\\"onInquiryChannelSelectClose\\\"]],[30,0,[\\\"onInquiryChannelChange\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,4,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,5]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,5,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[4,5]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"model\\\",\\\"trigger\\\"]],\\\"survey-trigger-campaign\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex font-sm secondary mb1 mt3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[[30,0,[\\\"_triggerConfigMeta\\\",\\\"label\\\"]],\\\"*\\\"],null]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,7],null,[[\\\"@classNames\\\"],[\\\"w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,6,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"info\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"secondary ml1\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,6,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"_triggerConfigMeta\\\",\\\"description\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[6]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,9],null,[[\\\"@isPlain\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onClose\\\",\\\"@onSelectAll\\\",\\\"@onDeselectAll\\\",\\\"@onChange\\\"],[true,true,\\\"label\\\",true,true,[30,0,[\\\"_selectedSurveys\\\"]],[30,0,[\\\"_selectedSurveys\\\"]],[30,0,[\\\"_surveys\\\"]],[30,0,[\\\"onSurveySelectClose\\\"]],[30,0,[\\\"onSurveySelectClose\\\"]],[30,0,[\\\"onSurveySelectClose\\\"]],[30,0,[\\\"onSurveyChange\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,7,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,8]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,8,[\\\"label\\\"]]],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,8,[\\\"publishedLanguages\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,0,\\\"primary font-xs bg-secondary--10 br1 pv05 ph1 ml1\\\"],[12],[1,[30,9]],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[7,8]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"model\\\",\\\"trigger\\\"]],\\\"interest-trigger-campaign\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column font-sm mb1 mt3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm font-medium primary font-medium primray mb1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"_triggerConfigMeta\\\",\\\"label\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"_triggerConfigMeta\\\",\\\"description\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,9],null,[[\\\"@label\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onClose\\\",\\\"@onSelectAll\\\",\\\"@onDeselectAll\\\",\\\"@onChange\\\"],[[28,[37,6],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.trigger.interests\\\"],null],\\\"*\\\"],null],true,\\\"label\\\",true,true,[30,0,[\\\"_selectedInterests\\\"]],[30,0,[\\\"_selectedInterests\\\"]],[30,0,[\\\"_interests\\\"]],[30,0,[\\\"onInterestSelectClose\\\"]],[30,0,[\\\"onInterestSelectClose\\\"]],[30,0,[\\\"onInterestSelectClose\\\"]],[30,0,[\\\"onInterestChange\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,10,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,11]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,11,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[10,11]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,9],null,[[\\\"@label\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onClose\\\",\\\"@onSelectAll\\\",\\\"@onDeselectAll\\\",\\\"@onChange\\\"],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.trigger.surveys\\\"],null],true,\\\"label\\\",true,true,[30,0,[\\\"_selectedSurveys\\\"]],[30,0,[\\\"_selectedSurveys\\\"]],[30,0,[\\\"_surveys\\\"]],[30,0,[\\\"onSurveySelectClose\\\"]],[30,0,[\\\"onSurveySelectClose\\\"]],[30,0,[\\\"onSurveySelectClose\\\"]],[30,0,[\\\"onSurveyChange\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,12,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,13]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,13,[\\\"label\\\"]]],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,13,[\\\"publishedLanguages\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,0,\\\"primary font-xs bg-secondary--10 br1 pv05 ph1 ml1\\\"],[12],[1,[30,14]],[13],[1,\\\"\\\\n\\\"]],[14]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[12,13]]]]],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"model\\\",\\\"trigger\\\"]],\\\"lead-trigger-campaign\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex font-sm secondary mb1 mt3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[[30,0,[\\\"_triggerConfigMeta\\\",\\\"label\\\"]],\\\"*\\\"],null]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,7],null,[[\\\"@classNames\\\"],[\\\"w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,15,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"info\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"secondary ml1\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,15,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"_triggerConfigMeta\\\",\\\"description\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[15]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,9],null,[[\\\"@isPlain\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onClose\\\",\\\"@onSelectAll\\\",\\\"@onDeselectAll\\\",\\\"@onChange\\\"],[true,true,\\\"label\\\",true,true,[30,0,[\\\"_selectedCampaigns\\\"]],[30,0,[\\\"_selectedCampaigns\\\"]],[30,0,[\\\"_campaigns\\\"]],[30,0,[\\\"onCampaignSelectClose\\\"]],[30,0,[\\\"onCampaignSelectClose\\\"]],[30,0,[\\\"onCampaignSelectClose\\\"]],[30,0,[\\\"onCampaignChange\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,16,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,17]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,17,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[16,17]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"model\\\",\\\"trigger\\\"]],\\\"newsletter-trigger-campaign\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column font-sm mb1 mt3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm font-medium primary font-medium primray mb1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"_triggerConfigMeta\\\",\\\"label\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"_triggerConfigMeta\\\",\\\"description\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"flex mt2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mr2 w-100\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex flex-column font-sm\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary font-medium primray\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[[28,[37,0],[\\\"triggerEmailCampaigns.steps.trigger.addressBook\\\"],null],\\\"*\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@classNames\\\",\\\"@isPlain\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onClose\\\",\\\"@onSelectAll\\\",\\\"@onDeselectAll\\\",\\\"@onChange\\\"],[\\\"w-100\\\",true,true,\\\"label\\\",true,true,[30,0,[\\\"_selectedAddressBooks\\\"]],[30,0,[\\\"_selectedAddressBooks\\\"]],[30,0,[\\\"_addressBooks\\\"]],[30,0,[\\\"onAddressBookSelectClose\\\"]],[30,0,[\\\"onAddressBookSelectClose\\\"]],[30,0,[\\\"onAddressBookSelectClose\\\"]],[30,0,[\\\"onAddressBookChange\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,18,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,19]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[30,19,[\\\"label\\\"]]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[18,19]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"updateSelectableGroups\\\",\\\"isRunning\\\"]]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"w-100\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"flex font-sm secondary\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.steps.trigger.group\\\"],null]],[1,\\\"\\\\n\\\\n                \\\"],[8,[39,7],null,[[\\\"@classNames\\\"],[\\\"w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[8,[30,20,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,8],[\\\"info\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"secondary ml1\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                  \\\"],[8,[30,20,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.steps.trigger.groupInfo\\\"],null]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                \\\"]],[20]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[8,[39,9],null,[[\\\"@classNames\\\",\\\"@isPlain\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@isReadOnly\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onClose\\\",\\\"@onSelectAll\\\",\\\"@onDeselectAll\\\",\\\"@onChange\\\"],[\\\"w-100\\\",true,true,\\\"label\\\",true,true,[28,[37,5],[[30,0,[\\\"_selectedAddressBooks\\\",\\\"length\\\"]],0],null],[30,0,[\\\"_selectedGroups\\\"]],[30,0,[\\\"_selectedGroups\\\"]],[30,0,[\\\"_groups\\\"]],[30,0,[\\\"onGroupSelectClose\\\"]],[30,0,[\\\"onGroupSelectClose\\\"]],[30,0,[\\\"onGroupSelectClose\\\"]],[30,0,[\\\"onGroupChange\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,21,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,22]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,22,[\\\"label\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[21,22]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex flex-column w-100 bg-secondary--10 mb05 br1 mt4\\\"],[12],[1,\\\"\\\\n        \\\"],[11,0],[16,0,[29,[\\\"flex justify-between pa2 cpointer \\\",[52,[30,0,[\\\"_isExpanded\\\"]],\\\"pb1\\\"]]]],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"toggle\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"primary font-medium font-sm\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.steps.trigger.advancedSettings.label\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_isExpanded\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"pointer-up\\\"],[[\\\"width\\\"],[\\\"20\\\"]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"pointer-down\\\"],[[\\\"width\\\"],[\\\"20\\\"]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,14],[[24,0,\\\"ohidden\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[6,[39,15],[[30,0,[\\\"_isExpanded\\\"]]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex flex-column pa2 pt0\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.steps.trigger.advancedSettings.description\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_deliveryTimeConfigurationMeta\\\"]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"mt3\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"font-sm font-medium font-medium primray mb1\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,0,[\\\"_deliveryTimeConfigurationMeta\\\",\\\"label\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,0,[\\\"_deliveryTimeConfigurationMeta\\\",\\\"description\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\\n                  \\\"],[10,0],[14,0,\\\"font-sm secondary mt2\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[[30,0,[\\\"_deliveryTimeConfigurationMeta\\\",\\\"label\\\"]],\\\"*\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"flex gap2\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,9],null,[[\\\"@classNames\\\",\\\"@isPlain\\\",\\\"@objectKey\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\"],[[52,[28,[37,16],[[28,[37,5],[[30,0,[\\\"_selectedDeliveryTime\\\",\\\"value\\\"]],\\\"immediately\\\"],null]],null],\\\"w-100\\\",\\\"w-50\\\"],true,\\\"label\\\",[30,0,[\\\"_selectedDeliveryTime\\\",\\\"label\\\"]],[30,0,[\\\"_selectableDeliveryTimes\\\"]],[30,0,[\\\"changeDeliveryTime\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[8,[30,23,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,24]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[1,[30,24,[\\\"label\\\"]]],[1,\\\"\\\\n                      \\\"]],[]]]]],[1,\\\"\\\\n                    \\\"]],[23,24]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,16],[[28,[37,5],[[30,0,[\\\"_selectedDeliveryTime\\\",\\\"value\\\"]],\\\"immediately\\\"],null]],null],[[[1,\\\"                      \\\"],[8,[39,17],null,[[\\\"@classNames\\\",\\\"@isPlain\\\",\\\"@allowEmptyValue\\\",\\\"@initialValue\\\",\\\"@onChange\\\"],[\\\"w-100\\\",true,true,[30,0,[\\\"_initialDeliveryDateTime\\\"]],[30,0,[\\\"changeTimePicker\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mt3\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"font-sm font-medium primary mb1\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.steps.trigger.considerationPeriod.label\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.steps.trigger.considerationPeriod.description\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"flex gap2 mt2\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,18],null,[[\\\"@classNames\\\",\\\"@dateLabel\\\",\\\"@timeLabel\\\",\\\"@onChange\\\",\\\"@initialDate\\\",\\\"@isClearable\\\"],[\\\"flex-column\\\",[28,[37,0],[\\\"triggerEmailCampaigns.steps.trigger.startsAt\\\"],null],[28,[37,0],[\\\"triggerEmailCampaigns.steps.trigger.startTime\\\"],null],[30,0,[\\\"setTriggerStartDate\\\"]],[30,0,[\\\"_initialTriggerStartDate\\\"]],true]],null],[1,\\\"\\\\n\\\\n                  \\\"],[8,[39,18],null,[[\\\"@classNames\\\",\\\"@dateLabel\\\",\\\"@timeLabel\\\",\\\"@onChange\\\",\\\"@initialDate\\\",\\\"@minDate\\\",\\\"@isClearable\\\"],[\\\"flex-column\\\",[28,[37,0],[\\\"triggerEmailCampaigns.steps.trigger.endsAt\\\"],null],[28,[37,0],[\\\"triggerEmailCampaigns.steps.trigger.endTime\\\"],null],[30,0,[\\\"setTriggerEndDate\\\"]],[30,0,[\\\"_initialTriggerEndDate\\\"]],[30,0,[\\\"_minDate\\\"]],true]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"step\\\",\\\"@model\\\",\\\"pop\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"pop\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"language\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"language\\\",\\\"pop\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"pop\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"t\\\",\\\"did-insert\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"amc-campaign/email-campaign/trigger\\\",\\\"equal\\\",\\\"concat\\\",\\\"ui-popover\\\",\\\"svg-jar\\\",\\\"ui-select\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\",\\\"on\\\",\\\"animated-container\\\",\\\"animated-if\\\",\\\"not\\\",\\\"ui-timepicker\\\",\\\"ui-datetime-picker\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/trigger-email-campaign/steps/trigger.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignTriggerEmailCampaignStepsTrigger = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec4 = (0, _emberConcurrency.task)(function* () {\n    if (this.model.trigger !== 'interest-trigger-campaign') {\n      return;\n    }\n    try {\n      const response = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.organizationId}/interests`);\n      if (!response.ok) throw new Error();\n      const {\n        interests\n      } = yield response.json();\n      this._interests = interests;\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec5 = (0, _emberConcurrency.task)(function* () {\n    if (this.model.trigger !== 'lead-trigger-campaign') {\n      return;\n    }\n    try {\n      const response = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.organizationId}/lead-campaigns`);\n      if (!response.ok) throw new Error();\n      const {\n        leadCampaigns\n      } = yield response.json();\n      this._campaigns = leadCampaigns;\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec6 = (0, _emberConcurrency.task)(function* () {\n    if (this.model.trigger !== 'newsletter-trigger-campaign') {\n      return;\n    }\n    try {\n      const response = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.organizationId}/address_books`);\n      if (!response.ok) throw new Error();\n      const {\n        addressBooks\n      } = yield response.json();\n      this._addressBooks = addressBooks;\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec7 = (0, _emberConcurrency.task)(function* () {\n    if (this.model.trigger !== 'interest-trigger-campaign' && this.model.trigger !== 'survey-trigger-campaign') {\n      return;\n    }\n    try {\n      const response = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.organizationId}/surveys`);\n      if (!response.ok) throw new Error();\n      const {\n        surveys\n      } = yield response.json();\n      this._surveys = surveys.map(survey => {\n        const publishedLanguages = survey === null || survey === void 0 ? void 0 : survey.publishedLanguages.map(language => language.toUpperCase());\n        return {\n          label: survey === null || survey === void 0 ? void 0 : survey.name,\n          value: survey === null || survey === void 0 ? void 0 : survey.id,\n          publishedLanguages: publishedLanguages\n        };\n      });\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec8 = (0, _emberConcurrency.task)(function* () {\n    if (this.model.trigger !== 'inquiry-trigger-campaign') {\n      return;\n    }\n    try {\n      const response = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.organizationId}/channels`);\n      if (!response.ok) throw new Error();\n      const {\n        channels\n      } = yield response.json();\n      this._inquiryChannels = channels;\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec9 = (0, _emberConcurrency.task)(function* () {\n    var _config$value;\n    const selectableGroups = [];\n    this._selectedAddressBooks.forEach(addressBook => {\n      selectableGroups.push(...addressBook.groups);\n    });\n    const config = this.model.configurations.find(config => config.key === 'trigger');\n    const selectedGroupsConfig = (config === null || config === void 0 || (_config$value = config.value) === null || _config$value === void 0 || (_config$value = _config$value.addressBooksGroups) === null || _config$value === void 0 ? void 0 : _config$value.values) || [];\n    const existingGroupValues = new Set(selectableGroups.map(group => group.value));\n    selectedGroupsConfig.forEach(group => {\n      if (!existingGroupValues.has(group.value)) {\n        selectableGroups.push(group);\n        existingGroupValues.add(group.value);\n      }\n    });\n    this._groups = selectableGroups;\n    yield (0, _domUtil.nextTick)();\n  }), _class = class AmcCampaignTriggerEmailCampaignStepsTrigger extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _defineProperty(this, \"_animatedTransition\", _emberAnimated.fade);\n      _initializerDefineProperty(this, \"wizard\", _descriptor8, this);\n      _initializerDefineProperty(this, \"model\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isLoading\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_isExpanded\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_inquiryChannels\", _descriptor12, this);\n      _initializerDefineProperty(this, \"_selectedInquiryChannels\", _descriptor13, this);\n      _initializerDefineProperty(this, \"_interests\", _descriptor14, this);\n      _initializerDefineProperty(this, \"_selectedInterests\", _descriptor15, this);\n      _initializerDefineProperty(this, \"_surveys\", _descriptor16, this);\n      _initializerDefineProperty(this, \"_selectedSurveys\", _descriptor17, this);\n      _initializerDefineProperty(this, \"_addressBooks\", _descriptor18, this);\n      _initializerDefineProperty(this, \"_groups\", _descriptor19, this);\n      _initializerDefineProperty(this, \"_selectedGroups\", _descriptor20, this);\n      _initializerDefineProperty(this, \"_selectedAddressBooks\", _descriptor21, this);\n      _initializerDefineProperty(this, \"_selectedCampaigns\", _descriptor22, this);\n      _initializerDefineProperty(this, \"_campaigns\", _descriptor23, this);\n      _initializerDefineProperty(this, \"_selectedDeliveryTime\", _descriptor24, this);\n      _initializerDefineProperty(this, \"_selectedDeliveryDayTime\", _descriptor25, this);\n      _initializerDefineProperty(this, \"_minDate\", _descriptor26, this);\n      _initializerDefineProperty(this, \"fetchInterests\", _descriptor27, this);\n      _initializerDefineProperty(this, \"fetchCampaigns\", _descriptor28, this);\n      _initializerDefineProperty(this, \"fetchAddressBooks\", _descriptor29, this);\n      _initializerDefineProperty(this, \"fetchSurveys\", _descriptor30, this);\n      _initializerDefineProperty(this, \"fetchInquiryChannels\", _descriptor31, this);\n      _initializerDefineProperty(this, \"updateSelectableGroups\", _descriptor32, this);\n    }\n    get advancedSettings() {\n      var _this$model;\n      if (((_this$model = this.model) === null || _this$model === void 0 || (_this$model = _this$model.meta) === null || _this$model === void 0 || (_this$model = _this$model.configurations) === null || _this$model === void 0 ? void 0 : _this$model.length) <= 0) {\n        return [];\n      }\n      const key = Object.keys(this.model.meta).sort()[0];\n      const configurationKeys = ['delivery_time', 'activity_start_date', 'activity_end_date'];\n      const configurationMeta = this.model.meta[key].configurations.filter(config => configurationKeys.includes(config.key));\n      configurationMeta.forEach(configuration => {\n        var _this$model2, _this$model3;\n        if (!((_this$model2 = this.model) !== null && _this$model2 !== void 0 && _this$model2.configurations) || ((_this$model3 = this.model) === null || _this$model3 === void 0 || (_this$model3 = _this$model3.configurations) === null || _this$model3 === void 0 ? void 0 : _this$model3.length) <= 0) {\n          return;\n        }\n        const item = this.model.configurations.find(config => config.key === configuration.key);\n        configuration.value = (item === null || item === void 0 ? void 0 : item.value) || null;\n      });\n      return configurationMeta;\n    }\n    get _isLoading() {\n      return this.isLoading || this.fetchSurveys.isRunning || this.fetchInquiryChannels.isRunning || this.fetchInterests.isRunning || this.fetchAddressBooks.isRunning || this.fetchCampaigns.isRunning;\n    }\n    get organizationId() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id;\n    }\n    get _deliveryTimeConfigurationMeta() {\n      var _this$model4, _this$model5;\n      if (!((_this$model4 = this.model) !== null && _this$model4 !== void 0 && _this$model4.meta) || ((_this$model5 = this.model) === null || _this$model5 === void 0 || (_this$model5 = _this$model5.meta) === null || _this$model5 === void 0 || (_this$model5 = _this$model5.configurations) === null || _this$model5 === void 0 ? void 0 : _this$model5.length) <= 0) {\n        return null;\n      }\n      const keys = Object.keys(this.model.meta).sort()[0];\n      return this.model.meta[keys].configurations.find(config => config.key === 'delivery_time');\n    }\n    get _triggerConfigMeta() {\n      var _this$model6, _this$model7;\n      if (!((_this$model6 = this.model) !== null && _this$model6 !== void 0 && _this$model6.meta) || ((_this$model7 = this.model) === null || _this$model7 === void 0 || (_this$model7 = _this$model7.meta) === null || _this$model7 === void 0 || (_this$model7 = _this$model7.configurations) === null || _this$model7 === void 0 ? void 0 : _this$model7.length) <= 0) {\n        return null;\n      }\n      const keys = Object.keys(this.model.meta).sort()[0];\n      return this.model.meta[keys].configurations.find(config => config.key === 'trigger');\n    }\n    get _selectableDeliveryTimes() {\n      const selectableOptions = [{\n        label: this.intl.t('triggerEmailCampaigns.steps.trigger.deliveryTimeOptions.immediately'),\n        value: 'immediately'\n      }, {\n        label: this.intl.t('triggerEmailCampaigns.steps.trigger.deliveryTimeOptions.today'),\n        value: 'today'\n      }, {\n        label: this.intl.t('triggerEmailCampaigns.steps.trigger.deliveryTimeOptions.tomorrow'),\n        value: 1\n      }];\n      for (let day = 2; day <= 7; day++) {\n        selectableOptions.push({\n          label: this.intl.t('triggerEmailCampaigns.steps.trigger.deliveryTimeOptions.days', {\n            count: day\n          }),\n          value: day\n        });\n      }\n      return selectableOptions;\n    }\n    get _initialDeliveryDateTime() {\n      var _this$model8, _deliveryTimeConfig$v;\n      if (!this.model.configurations || ((_this$model8 = this.model) === null || _this$model8 === void 0 || (_this$model8 = _this$model8.configurations) === null || _this$model8 === void 0 ? void 0 : _this$model8.length) <= 0) {\n        return null;\n      }\n      const deliveryTimeConfig = this.model.configurations.find(config => config.key === 'delivery_time');\n      return deliveryTimeConfig === null || deliveryTimeConfig === void 0 || (_deliveryTimeConfig$v = deliveryTimeConfig.value) === null || _deliveryTimeConfig$v === void 0 ? void 0 : _deliveryTimeConfig$v.daytime;\n    }\n    get _initialTriggerStartDate() {\n      var _this$model9;\n      if (!this.model.configurations || ((_this$model9 = this.model) === null || _this$model9 === void 0 || (_this$model9 = _this$model9.configurations) === null || _this$model9 === void 0 ? void 0 : _this$model9.length) <= 0) {\n        return null;\n      }\n      const triggerStartConfig = this.model.configurations.find(config => config.key === 'activity_start_date');\n      return triggerStartConfig === null || triggerStartConfig === void 0 ? void 0 : triggerStartConfig.value;\n    }\n    get _initialTriggerEndDate() {\n      var _this$model10;\n      if (!this.model.configurations || ((_this$model10 = this.model) === null || _this$model10 === void 0 || (_this$model10 = _this$model10.configurations) === null || _this$model10 === void 0 ? void 0 : _this$model10.length) <= 0) {\n        return null;\n      }\n      const triggerStartConfig = this.model.configurations.find(config => config.key === 'activity_end_date');\n      return triggerStartConfig === null || triggerStartConfig === void 0 ? void 0 : triggerStartConfig.value;\n    }\n    getSelectedDeliveryTime() {\n      var _this$model11;\n      if (!this.model.configurations || ((_this$model11 = this.model) === null || _this$model11 === void 0 || (_this$model11 = _this$model11.configurations) === null || _this$model11 === void 0 ? void 0 : _this$model11.length) <= 0) {\n        return;\n      }\n      const deliveryTimeConfig = this.model.configurations.find(config => config.key === 'delivery_time');\n      if (!(deliveryTimeConfig !== null && deliveryTimeConfig !== void 0 && deliveryTimeConfig.value)) {\n        return this._selectableDeliveryTimes.find(deliveryTime => deliveryTime.value === 'immediately');\n      }\n      const {\n        deliveryType,\n        offsetInDays\n      } = deliveryTimeConfig === null || deliveryTimeConfig === void 0 ? void 0 : deliveryTimeConfig.value;\n      if (deliveryType === 'immediately') {\n        return this._selectableDeliveryTimes.find(deliveryTime => deliveryTime.value === 'immediately');\n      }\n      if (offsetInDays === 0) {\n        return this._selectableDeliveryTimes.find(deliveryTime => deliveryTime.value === 'today');\n      }\n      return this._selectableDeliveryTimes.find(deliveryTime => deliveryTime.value === offsetInDays);\n    }\n    getSelectedSurveys() {\n      var _this$model12, _this$_surveys, _surveys;\n      if (!this.model.configurations || ((_this$model12 = this.model) === null || _this$model12 === void 0 || (_this$model12 = _this$model12.configurations) === null || _this$model12 === void 0 ? void 0 : _this$model12.length) <= 0) {\n        return [];\n      }\n      const interestsConfig = this.model.configurations.find(config => config.key === 'trigger');\n      let surveys;\n      if (this.model.trigger === 'survey-trigger-campaign') {\n        var _interestsConfig$valu;\n        surveys = (interestsConfig === null || interestsConfig === void 0 || (_interestsConfig$valu = interestsConfig.value) === null || _interestsConfig$valu === void 0 || (_interestsConfig$valu = _interestsConfig$valu.surveys) === null || _interestsConfig$valu === void 0 ? void 0 : _interestsConfig$valu.values) || [];\n      } else {\n        var _interestsConfig$valu2;\n        surveys = (interestsConfig === null || interestsConfig === void 0 || (_interestsConfig$valu2 = interestsConfig.value) === null || _interestsConfig$valu2 === void 0 || (_interestsConfig$valu2 = _interestsConfig$valu2.interests) === null || _interestsConfig$valu2 === void 0 || (_interestsConfig$valu2 = _interestsConfig$valu2.values) === null || _interestsConfig$valu2 === void 0 ? void 0 : _interestsConfig$valu2.surveys) || [];\n      }\n      if (((_this$_surveys = this._surveys) === null || _this$_surveys === void 0 ? void 0 : _this$_surveys.length) === 0 || ((_surveys = surveys) === null || _surveys === void 0 ? void 0 : _surveys.length) === 0) {\n        return [];\n      }\n      const selectedSurveys = [];\n      surveys.forEach(_survey => {\n        const survey = this._surveys.find(selectableSurvey => selectableSurvey.value === (_survey === null || _survey === void 0 ? void 0 : _survey.value));\n        if (survey) {\n          selectedSurveys.push(survey);\n        }\n      });\n      return selectedSurveys;\n    }\n    getSelectedCampaigns() {\n      var _this$model13, _this$_campaigns;\n      if (!this.model.configurations || ((_this$model13 = this.model) === null || _this$model13 === void 0 || (_this$model13 = _this$model13.configurations) === null || _this$model13 === void 0 ? void 0 : _this$model13.length) <= 0) {\n        return [];\n      }\n      const config = this.model.configurations.find(config => config.key === 'trigger');\n      const campaigns = (config === null || config === void 0 ? void 0 : config.value) || [];\n      if (((_this$_campaigns = this._campaigns) === null || _this$_campaigns === void 0 ? void 0 : _this$_campaigns.length) === 0 || (campaigns === null || campaigns === void 0 ? void 0 : campaigns.length) === 0) {\n        return [];\n      }\n      const selectedCampaigns = [];\n      campaigns.forEach(_campaign => {\n        const campaign = this._campaigns.find(selectableCampaign => {\n          var _campaign$value;\n          return selectableCampaign.value === ((_campaign$value = _campaign === null || _campaign === void 0 ? void 0 : _campaign.value) !== null && _campaign$value !== void 0 ? _campaign$value : _campaign);\n        });\n        if (campaign) {\n          selectedCampaigns.push(campaign);\n        }\n      });\n      return selectedCampaigns;\n    }\n    getSelectedInterests() {\n      var _this$model14, _interestsConfig$valu3, _this$_interests;\n      if (!this.model.configurations || ((_this$model14 = this.model) === null || _this$model14 === void 0 || (_this$model14 = _this$model14.configurations) === null || _this$model14 === void 0 ? void 0 : _this$model14.length) <= 0) {\n        return [];\n      }\n      const interestsConfig = this.model.configurations.find(config => config.key === 'trigger');\n      const interests = (interestsConfig === null || interestsConfig === void 0 || (_interestsConfig$valu3 = interestsConfig.value) === null || _interestsConfig$valu3 === void 0 || (_interestsConfig$valu3 = _interestsConfig$valu3.interests) === null || _interestsConfig$valu3 === void 0 || (_interestsConfig$valu3 = _interestsConfig$valu3.values) === null || _interestsConfig$valu3 === void 0 ? void 0 : _interestsConfig$valu3.interests) || [];\n      if (((_this$_interests = this._interests) === null || _this$_interests === void 0 ? void 0 : _this$_interests.length) === 0 || (interests === null || interests === void 0 ? void 0 : interests.length) === 0) {\n        return [];\n      }\n      const selectedInterests = [];\n      interests.forEach(_interestValue => {\n        const interest = this._interests.find(selectableInterest => selectableInterest.value === (_interestValue === null || _interestValue === void 0 ? void 0 : _interestValue.value));\n        if (interest) {\n          selectedInterests.push(interest);\n        }\n      });\n      return selectedInterests;\n    }\n    getSelectedAddressBooks() {\n      var _this$model15, _config$value2, _this$_addressBooks, _addressBooks2;\n      if (!this.model.configurations || ((_this$model15 = this.model) === null || _this$model15 === void 0 || (_this$model15 = _this$model15.configurations) === null || _this$model15 === void 0 ? void 0 : _this$model15.length) <= 0) {\n        return [];\n      }\n      const config = this.model.configurations.find(config => config.key === 'trigger');\n      let addressBooks = (config === null || config === void 0 || (_config$value2 = config.value) === null || _config$value2 === void 0 || (_config$value2 = _config$value2.addressBooks) === null || _config$value2 === void 0 ? void 0 : _config$value2.values) || [];\n      if (((_this$_addressBooks = this._addressBooks) === null || _this$_addressBooks === void 0 ? void 0 : _this$_addressBooks.length) === 0) {\n        return [];\n      }\n      if (((_addressBooks2 = addressBooks) === null || _addressBooks2 === void 0 ? void 0 : _addressBooks2.length) === 0) {\n        var _config$value3;\n        const selectedGroups = (config === null || config === void 0 || (_config$value3 = config.value) === null || _config$value3 === void 0 || (_config$value3 = _config$value3.addressBooksGroups) === null || _config$value3 === void 0 ? void 0 : _config$value3.values) || [];\n        if (selectedGroups.length === 0) {\n          return [];\n        }\n        const selectedGroupValues = new Set(selectedGroups.map(group => group.value));\n        addressBooks = this._addressBooks.filter(addressBook => addressBook.groups.some(group => selectedGroupValues.has(group.value)));\n      }\n      const selectedAddressBooks = [];\n      addressBooks.forEach(_addressBooks => {\n        const addressBook = this._addressBooks.find(selectableAddressBook => selectableAddressBook.value === (_addressBooks === null || _addressBooks === void 0 ? void 0 : _addressBooks.value));\n        if (addressBook) {\n          selectedAddressBooks.push(addressBook);\n        }\n      });\n      return selectedAddressBooks;\n    }\n    getSelectedGroups() {\n      var _this$model16, _config$value4, _this$_groups;\n      if (!this.model.configurations || ((_this$model16 = this.model) === null || _this$model16 === void 0 || (_this$model16 = _this$model16.configurations) === null || _this$model16 === void 0 ? void 0 : _this$model16.length) <= 0) {\n        return [];\n      }\n      const config = this.model.configurations.find(config => config.key === 'trigger');\n      const groups = (config === null || config === void 0 || (_config$value4 = config.value) === null || _config$value4 === void 0 || (_config$value4 = _config$value4.addressBooksGroups) === null || _config$value4 === void 0 ? void 0 : _config$value4.values) || [];\n      if (((_this$_groups = this._groups) === null || _this$_groups === void 0 ? void 0 : _this$_groups.length) === 0 || (groups === null || groups === void 0 ? void 0 : groups.length) === 0) {\n        return [];\n      }\n      const selectedGroups = [];\n      groups.forEach(_group => {\n        const group = this._groups.find(selectableGroup => selectableGroup.value === (_group === null || _group === void 0 ? void 0 : _group.value));\n        if (group) {\n          selectedGroups.push(group);\n        }\n      });\n      return selectedGroups;\n    }\n    getSelectedInquiryChannels() {\n      var _this$model17, _inquiryChannelsConfi, _this$_inquiryChannel;\n      if (!this.model.configurations || ((_this$model17 = this.model) === null || _this$model17 === void 0 || (_this$model17 = _this$model17.configurations) === null || _this$model17 === void 0 ? void 0 : _this$model17.length) <= 0) {\n        return [];\n      }\n      const inquiryChannelsConfig = this.model.configurations.find(config => config.key === 'trigger');\n      const channels = (inquiryChannelsConfig === null || inquiryChannelsConfig === void 0 || (_inquiryChannelsConfi = inquiryChannelsConfig.value) === null || _inquiryChannelsConfi === void 0 || (_inquiryChannelsConfi = _inquiryChannelsConfi.enquiryChannels) === null || _inquiryChannelsConfi === void 0 ? void 0 : _inquiryChannelsConfi.values) || [];\n      if (((_this$_inquiryChannel = this._inquiryChannels) === null || _this$_inquiryChannel === void 0 ? void 0 : _this$_inquiryChannel.length) === 0 || (channels === null || channels === void 0 ? void 0 : channels.length) === 0) {\n        return [];\n      }\n      const selectedChannels = [];\n      channels.forEach(_channelValue => {\n        const channel = this._inquiryChannels.find(selectableChannel => selectableChannel.value === (_channelValue === null || _channelValue === void 0 ? void 0 : _channelValue.value));\n        if (channel) {\n          selectedChannels.push(channel);\n        }\n      });\n      return selectedChannels;\n    }\n    async didInsert() {\n      await this.fetchInquiryChannels.perform();\n      await this.fetchInterests.perform();\n      await this.fetchSurveys.perform();\n      await this.fetchAddressBooks.perform();\n      await this.fetchCampaigns.perform();\n    }\n    async didInsertContent() {\n      this._selectedDeliveryTime = this.getSelectedDeliveryTime();\n      if (this.model.trigger === 'interest-trigger-campaign' || this.model.trigger === 'survey-trigger-campaign') {\n        this._selectedSurveys = this.getSelectedSurveys();\n      }\n      if (this.model.trigger === 'interest-trigger-campaign') {\n        this._selectedInterests = this.getSelectedInterests();\n      }\n      if (this.model.trigger === 'inquiry-trigger-campaign') {\n        this._selectedInquiryChannels = this.getSelectedInquiryChannels();\n      }\n      if (this.model.trigger === 'newsletter-trigger-campaign') {\n        this._selectedAddressBooks = this.getSelectedAddressBooks();\n        this.updateSelectableGroups.perform();\n        this._selectedGroups = this.getSelectedGroups();\n      }\n      if (this.model.trigger === 'lead-trigger-campaign') {\n        this._selectedCampaigns = this.getSelectedCampaigns();\n      }\n    }\n    toggle() {\n      this._isExpanded = !this._isExpanded;\n    }\n    onInquiryChannelChange(option, checked) {\n      var _this$model18, _inquiryChannelsConfi2;\n      if (!this.model.configurations || ((_this$model18 = this.model) === null || _this$model18 === void 0 || (_this$model18 = _this$model18.configurations) === null || _this$model18 === void 0 ? void 0 : _this$model18.length) <= 0) {\n        return;\n      }\n      const inquiryChannelsConfig = this.model.configurations.find(config => config.key === 'trigger');\n      let options = (0, _lodash.default)(inquiryChannelsConfig === null || inquiryChannelsConfig === void 0 || (_inquiryChannelsConfi2 = inquiryChannelsConfig.value) === null || _inquiryChannelsConfi2 === void 0 || (_inquiryChannelsConfi2 = _inquiryChannelsConfi2.enquiryChannels) === null || _inquiryChannelsConfi2 === void 0 ? void 0 : _inquiryChannelsConfi2.values) || [];\n      if (checked) {\n        // Only push if not allready in\n        if (!options.find(_option => _option.value == option.value)) {\n          options.push(option);\n        }\n      } else {\n        // Remove unchecked option\n        options = options.filter(_option => _option.value != option.value);\n      }\n      this._selectedInquiryChannels = options;\n      inquiryChannelsConfig.value.enquiryChannels.values = options;\n    }\n    onInquiryChannelSelectClose() {\n      this.model.transactionConfigurationChange('trigger', {\n        enquiryChannels: {\n          label: 'Request submitted',\n          values: this._selectedInquiryChannels\n        }\n      });\n    }\n    onInterestChange(option, checked) {\n      var _this$model19, _interestConfig$value;\n      if (!this.model.configurations || ((_this$model19 = this.model) === null || _this$model19 === void 0 || (_this$model19 = _this$model19.configurations) === null || _this$model19 === void 0 ? void 0 : _this$model19.length) <= 0) {\n        return;\n      }\n      const interestConfig = this.model.configurations.find(config => config.key === 'trigger');\n      let options = (0, _lodash.default)(interestConfig === null || interestConfig === void 0 || (_interestConfig$value = interestConfig.value) === null || _interestConfig$value === void 0 || (_interestConfig$value = _interestConfig$value.interests) === null || _interestConfig$value === void 0 || (_interestConfig$value = _interestConfig$value.values) === null || _interestConfig$value === void 0 ? void 0 : _interestConfig$value.interests) || [];\n      if (checked) {\n        // Only push if not allready in\n        if (!options.find(_option => _option.value == option.value)) {\n          options.push(option);\n        }\n      } else {\n        // Remove unchecked option\n        options = options.filter(_option => _option.value != option.value);\n      }\n      this._selectedInterests = options;\n      interestConfig.value.interests.values.interests = options;\n    }\n    onInterestSelectClose() {\n      this.model.transactionConfigurationChange('trigger', {\n        interests: {\n          label: 'Interest confirmed',\n          values: {\n            interests: this._selectedInterests,\n            surveys: this._selectedSurveys\n          }\n        }\n      });\n    }\n    onCampaignChange(option, checked) {\n      var _this$model20;\n      if (!this.model.configurations || ((_this$model20 = this.model) === null || _this$model20 === void 0 || (_this$model20 = _this$model20.configurations) === null || _this$model20 === void 0 ? void 0 : _this$model20.length) <= 0) {\n        return;\n      }\n      const config = this.model.configurations.find(config => config.key === 'trigger');\n      let options = (config === null || config === void 0 ? void 0 : config.value) || [];\n      options = options.map(option => {\n        if (!(option !== null && option !== void 0 && option.label)) {\n          const campaign = this._campaigns.find(c => c.value === option);\n          return campaign ? campaign : {\n            label: option,\n            value: option\n          };\n        }\n        return option;\n      });\n      if (checked) {\n        // Only push if not allready in\n        if (!options.find(_option => _option.value == option.value)) {\n          options.push(option);\n        }\n      } else {\n        // Remove unchecked option\n        options = options.filter(_option => _option.value != option.value);\n      }\n      this._selectedCampaigns = options;\n      config.value = options;\n    }\n    onCampaignSelectClose() {\n      const body = this._selectedCampaigns.map(item => item.value);\n      this.model.transactionConfigurationChange('trigger', body);\n    }\n    onAddressBookChange(option, checked) {\n      var _this$model21;\n      if (!this.model.configurations || ((_this$model21 = this.model) === null || _this$model21 === void 0 || (_this$model21 = _this$model21.configurations) === null || _this$model21 === void 0 ? void 0 : _this$model21.length) <= 0) {\n        return;\n      }\n      let options = this._selectedAddressBooks;\n      if (checked) {\n        // Only push if not allready in\n        if (!options.find(_option => _option.value == option.value)) {\n          options.push(option);\n        }\n      } else {\n        // Remove unchecked option\n        options = options.filter(_option => _option.value != option.value);\n\n        // Remove selected groups of this address-book\n        const selectedGroupValues = new Set(this._selectedGroups.map(group => group.value));\n        option.groups.forEach(optionGroup => selectedGroupValues.delete(optionGroup.value));\n        const selectedGroups = this._selectedGroups.filter(group => selectedGroupValues.has(group.value));\n        if (selectedGroups.length !== this._selectedGroups.length) {\n          if (selectedGroups.length > 0) {\n            this.model.transactionConfigurationChange('trigger', {\n              addressBooksGroups: {\n                label: 'Newsletter subscription group',\n                values: selectedGroups\n              }\n            });\n          }\n          this._selectedGroups = selectedGroups;\n        }\n      }\n      this._selectedAddressBooks = options;\n      this.updateSelectableGroups.perform();\n    }\n    onAddressBookSelectClose() {\n      if (this._selectedGroups.length > 0) {\n        return;\n      }\n      this.model.transactionConfigurationChange('trigger', {\n        addressBooks: {\n          label: 'Newsletter subscription address book',\n          values: this._selectedAddressBooks\n        }\n      });\n    }\n    onGroupChange(option, checked) {\n      var _this$model22;\n      if (!this.model.configurations || ((_this$model22 = this.model) === null || _this$model22 === void 0 || (_this$model22 = _this$model22.configurations) === null || _this$model22 === void 0 ? void 0 : _this$model22.length) <= 0) {\n        return;\n      }\n      let options = this._selectedGroups;\n      if (checked) {\n        // Only push if not allready in\n        if (!options.find(_option => _option.value == option.value)) {\n          options.push(option);\n        }\n      } else {\n        // Remove unchecked option\n        options = options.filter(_option => _option.value != option.value);\n      }\n      this._selectedGroups = options;\n    }\n    onGroupSelectClose() {\n      if (this._selectedGroups.length === 0) {\n        this.model.transactionConfigurationChange('trigger', {\n          addressBooks: {\n            label: 'Newsletter subscription address book',\n            values: this._selectedAddressBooks\n          }\n        });\n      } else {\n        this.model.transactionConfigurationChange('trigger', {\n          addressBooksGroups: {\n            label: 'Newsletter subscription group',\n            values: this._selectedGroups\n          }\n        });\n      }\n    }\n    onSurveyChange(option, checked) {\n      var _this$model23;\n      if (!this.model.configurations || ((_this$model23 = this.model) === null || _this$model23 === void 0 || (_this$model23 = _this$model23.configurations) === null || _this$model23 === void 0 ? void 0 : _this$model23.length) <= 0) {\n        return;\n      }\n      const config = this.model.configurations.find(config => config.key === 'trigger');\n      let options;\n      if (this.model.trigger === 'survey-trigger-campaign') {\n        var _config$value5;\n        options = (0, _lodash.default)(config === null || config === void 0 || (_config$value5 = config.value) === null || _config$value5 === void 0 || (_config$value5 = _config$value5.surveys) === null || _config$value5 === void 0 ? void 0 : _config$value5.values) || [];\n      } else {\n        var _config$value6;\n        options = (0, _lodash.default)(config === null || config === void 0 || (_config$value6 = config.value) === null || _config$value6 === void 0 || (_config$value6 = _config$value6.interests) === null || _config$value6 === void 0 || (_config$value6 = _config$value6.values) === null || _config$value6 === void 0 ? void 0 : _config$value6.surveys) || [];\n      }\n      if (checked) {\n        // Only push if not allready in\n        if (!options.find(_option => _option.value == option.value)) {\n          options.push(option);\n        }\n      } else {\n        // Remove unchecked option\n        options = options.filter(_option => _option.value != option.value);\n      }\n      this._selectedSurveys = options;\n      if (this.model.trigger === 'survey-trigger-campaign') {\n        config.value.surveys.values = options;\n      } else {\n        config.value.interests.values.surveys = options;\n      }\n    }\n    onSurveySelectClose() {\n      let body;\n      if (this.model.trigger === 'survey-trigger-campaign') {\n        body = {\n          surveys: {\n            label: 'Participated in survey',\n            values: this._selectedSurveys\n          }\n        };\n      } else {\n        body = {\n          interests: {\n            label: 'Interest confirmed',\n            values: {\n              interests: this._selectedInterests,\n              surveys: this._selectedSurveys\n            }\n          }\n        };\n      }\n      this.model.transactionConfigurationChange('trigger', body);\n    }\n    async sendDeliveryTimeChangeRequest() {\n      const {\n        value\n      } = this._selectedDeliveryTime;\n      if (value === 'immediately') {\n        await this.model.transactionConfigurationChange('delivery_time', {\n          daytime: null,\n          offsetInDays: null,\n          deliveryType: 'immediately'\n        });\n      } else if (value === 'today') {\n        await this.model.transactionConfigurationChange('delivery_time', {\n          daytime: this._selectedDeliveryDayTime,\n          offsetInDays: 0,\n          deliveryType: 'delayed'\n        });\n      } else {\n        await this.model.transactionConfigurationChange('delivery_time', {\n          daytime: this._selectedDeliveryDayTime,\n          offsetInDays: value,\n          deliveryType: 'delayed'\n        });\n      }\n    }\n    async changeDeliveryTime(option) {\n      const {\n        value\n      } = option;\n      this._selectedDeliveryTime = option;\n      if (this._selectedDeliveryDayTime || value === 'immediately') {\n        this.sendDeliveryTimeChangeRequest();\n      }\n    }\n    async changeTimePicker(date) {\n      if (!(date instanceof Date)) {\n        this._selectedDeliveryDayTime = null;\n        return;\n      }\n      let [hours, minutes] = [date.getHours(), date.getMinutes()];\n      /* ensure it uses 2 digits (1 -> 01) */\n      hours = ('0' + hours).slice(-2);\n      minutes = ('0' + minutes).slice(-2);\n      this._selectedDeliveryDayTime = `${hours}:${minutes}`;\n      if (this._selectedDeliveryTime) {\n        this.sendDeliveryTimeChangeRequest();\n      }\n    }\n    async setTriggerStartDate(value) {\n      await this.model.transactionConfigurationChange('activity_start_date', value);\n    }\n    async setTriggerEndDate(value) {\n      await this.model.transactionConfigurationChange('activity_end_date', value);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"wizard\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"_isExpanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"_inquiryChannels\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"_selectedInquiryChannels\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"_interests\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"_selectedInterests\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"_surveys\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"_selectedSurveys\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"_addressBooks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"_groups\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"_selectedGroups\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"_selectedAddressBooks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"_selectedCampaigns\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"_campaigns\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"_selectedDeliveryTime\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"_selectedDeliveryDayTime\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"_minDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return new Date();\n    }\n  }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"fetchInterests\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"fetchCampaigns\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor29 = _applyDecoratedDescriptor(_class.prototype, \"fetchAddressBooks\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor30 = _applyDecoratedDescriptor(_class.prototype, \"fetchSurveys\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor31 = _applyDecoratedDescriptor(_class.prototype, \"fetchInquiryChannels\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor32 = _applyDecoratedDescriptor(_class.prototype, \"updateSelectableGroups\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didInsertContent\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertContent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onInquiryChannelChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onInquiryChannelChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onInquiryChannelSelectClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onInquiryChannelSelectClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onInterestChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onInterestChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onInterestSelectClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onInterestSelectClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCampaignChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onCampaignChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCampaignSelectClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onCampaignSelectClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAddressBookChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAddressBookChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAddressBookSelectClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAddressBookSelectClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onGroupChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onGroupChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onGroupSelectClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onGroupSelectClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSurveyChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSurveyChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSurveySelectClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSurveySelectClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sendDeliveryTimeChangeRequest\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sendDeliveryTimeChangeRequest\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeDeliveryTime\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeDeliveryTime\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeTimePicker\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeTimePicker\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setTriggerStartDate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setTriggerStartDate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setTriggerEndDate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setTriggerEndDate\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignTriggerEmailCampaignStepsTrigger);\n});","define(\"additive-mc/components/amc-campaign/voucher-dialog\", [\"exports\", \"additive-mc/config/environment\", \"@ember/component\", \"@ember/service\", \"ember-concurrency\", \"@ember/object\", \"additive-mc/validations/email-campaign\", \"@additive-apps/media/constants\"], function (_exports, _environment, _component, _service, _emberConcurrency, _object, _emailCampaign, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which represents the \"voucher\"-dialog part of an campaign with voucher\n   *\n   * @class componenents/amc-campaign/voucher-dialog\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    intl: (0, _service.inject)(),\n    multimedia: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    authenticatedFetch: (0, _service.inject)(),\n    uiAppSettings: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    currentUser: (0, _service.inject)(),\n    tagName: '',\n    /**\n     * The parents campaignId\n     *\n     * @property campaignId\n     * @default null\n     */\n    campaignId: null,\n    /**\n     * The campaign type (email/trigger-email)\n     *\n     * @property campaignType\n     * @default null\n     */\n    campaignType: null,\n    /**\n     * Whether its read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * The resource which contains the `voucher` child\n     *\n     * @property resource\n     * @default null\n     */\n    resource: null,\n    /**\n     * The type of the model (`email-campaign-voucher` or `on-page-campaign-voucher`)\n     *\n     * @property voucherModelType\n     * @default null\n     * @private\n     */\n    voucherModelType: null,\n    /**\n     * Internal copy of the current resource\n     *\n     * @property _resource\n     * @default null\n     * @private\n     */\n    _resource: null,\n    /**\n     * the preview url\n     *\n     * @property preview\n     * @type {String}\n     * @default null\n     */\n    preview: null,\n    /**\n     * Whether the voucher preview is shown\n     *\n     * @property _showVoucherPreview\n     * @type {Boolean}\n     * @default false\n     * @private\n     */\n    _showVoucherPreview: false,\n    /**\n     * default size for images\n     *\n     * @property defaultSize\n     * @type {String}\n     * @default 334x240\n     */\n    defaultSize: _constants.GRID_DEFAULT_SIZE,\n    _adapterOptions: (0, _object.computed)('campaignId', {\n      get() {\n        return {\n          adapterOptions: {\n            campaignId: this.campaignId\n          }\n        };\n      }\n    }),\n    _backRoute: (0, _object.computed)('campaignType', 'voucherModelType.length', {\n      get() {\n        if (this.voucherModelType === 'email-campaign-voucher') return `instance.campaigns.${this.campaignType}.detail.index`;else return `instance.campaigns.${this.voucherModelType.replace('-campaign-voucher', '')}.detail`;\n      }\n    }),\n    _setup() {\n      (0, _object.setProperties)(this, {\n        _validation: _emailCampaign.voucherValidation,\n        _resource: this.resource\n      });\n    },\n    init() {\n      this._super(...arguments);\n      this._setup();\n\n      // set options for media selection\n      this.multimedia.setSelectionOptions({\n        maxCount: 1,\n        type: 'image',\n        warningMessage: this.intl.t('global.warnings.multimedia.image')\n      });\n    },\n    didUpdateAttrs() {\n      this._super(...arguments);\n      if (this._resource && this._resource.id === this.resource.id) {\n        return;\n      }\n\n      /* Re-setup on resource attribute change */\n      this._setup();\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n      this.multimedia.resetSelectionOptions();\n    },\n    /**\n     * opens the voucher preview carousel\n     *\n     * @type {Task}\n     * @function openPreviewCarousel\n     * @private\n     */\n    openPreviewCarousel: (0, _emberConcurrency.task)(function* () {\n      (0, _object.set)(this, '_showVoucherPreview', true);\n      try {\n        const {\n          campaignType,\n          campaignId,\n          resource,\n          currentUser\n        } = this;\n        const url = `${_environment.default.APP.apiBaseHost}/${currentUser.currentOrganization.id}/organisation-campaigns/${campaignType}/${campaignId}/vouchers/${resource.id}/preview`;\n        const response = yield this.authenticatedFetch.fetch(url, {\n          method: 'GET',\n          headers: {\n            'Accept-Language': this.uiAppSettings.currentLocale\n          }\n        });\n        if (!(response !== null && response !== void 0 && response.ok)) {\n          throw new Error('Response not ok');\n        }\n        const json = yield response.json();\n        (0, _object.set)(this, 'preview', json[0]);\n      } catch (e) {\n        this.uiToast.showToast({\n          type: 'error',\n          title: this.intl.t('toast.unexpectedError')\n        });\n      }\n    }),\n    openMultimedia() {},\n    closeMultimedia() {},\n    actions: {\n      onChangeVoucherGreetingText(changeset, text) {\n        const greetingText = changeset.get('greetingText');\n        changeset.set('greetingText', Object.assign({}, greetingText, {\n          value: text\n        }));\n      },\n      onResourceRemove(changeset) {\n        changeset.set('image', null);\n        changeset.execute();\n      },\n      addMedium(changeset, _, _ref) {\n        let [resource] = _ref;\n        changeset.set('image', resource);\n      }\n    }\n  });\n});","define(\"additive-mc/components/amc-campaign/voucher-preview-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@glimmer/tracking\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _tracking, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal @modalClassNames={{this._modalClassNames}} @size=\"lg\">\n    <div class=\"mm-media-gallery__header flex flex-row justify-between absolute right-0 left-0 white\">\n      <div class=\"w-100 flex flex-row items-center\">\n        <MmMediaGallery::HeaderLeft @class=\"flex-grow-1\" @onClose={{this.onClose}} />\n        <MmMediaGallery::HeaderRight />\n      </div>\n    </div>\n  \n    {{#if this.preview}}\n      <div class=\"voucher-preview relative w-100 h-100 flex items-center justify-center\">\n        <AmcCampaign::VoucherPreviewIframe @url={{this.preview}} />\n      </div>\n    {{/if}}\n  \n    {{yield}}\n  </UiModal>\n  */\n  {\n    \"id\": \"DvxCV0nY\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@modalClassNames\\\",\\\"@size\\\"],[[30,0,[\\\"_modalClassNames\\\"]],\\\"lg\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"mm-media-gallery__header flex flex-row justify-between absolute right-0 left-0 white\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"w-100 flex flex-row items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@onClose\\\"],[\\\"flex-grow-1\\\",[30,0,[\\\"onClose\\\"]]]],null],[1,\\\"\\\\n      \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"preview\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"voucher-preview relative w-100 h-100 flex items-center justify-center\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@url\\\"],[[30,0,[\\\"preview\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[18,1,null],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"&default\\\"],false,[\\\"ui-modal\\\",\\\"mm-media-gallery/header-left\\\",\\\"mm-media-gallery/header-right\\\",\\\"if\\\",\\\"amc-campaign/voucher-preview-iframe\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/voucher-preview-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignVoucherPreviewDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcCampaignVoucherPreviewDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      /**\n       * The preview url\n       *\n       * @argument previews\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"preview\", _descriptor, this);\n      /**\n       * Boolean indicating if the dialog should fit the content or use default size\n       *\n       * @property fitContent\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"fitContent\", _descriptor2, this);\n      _initializerDefineProperty(this, \"onClose\", _descriptor3, this);\n    }\n    get _modalClassNames() {\n      const className = 'voucher-preview-dialog';\n      if (this.fitContent) {\n        return `h-auto ${className} ${className}__fit-content`;\n      }\n      return className;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"preview\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"fitContent\", [_dec2, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignVoucherPreviewDialogComponent);\n});","define(\"additive-mc/components/amc-campaign/voucher-preview-iframe\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\"], function (_exports, _component, _templateFactory, _component2, _object, _emberArgTypes, _propTypes, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class=\"voucher-preview-iframe relative mw-100 flex items-start justify-start\">\n    <div class={{this._widthWrapperClassName}} style={{this._maxWidthStyle}}>\n      <div class=\"voucher-template-preview-wrapper relative\">\n        <iframe\n          id=\"voucher-preview-image\"\n          title=\"voucher-preview\"\n          class={{this._wrapperClassNames}}\n          src={{this.url}}\n          frameborder=\"0\"\n          scrolling=\"no\"\n          {{did-insert this.onInsert}}\n          {{did-update this.onUpdate this.url}}\n        ></iframe>\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"PIERQVrN\",\n    \"block\": \"[[[10,0],[14,0,\\\"voucher-preview-iframe relative mw-100 flex items-start justify-start\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[30,0,[\\\"_widthWrapperClassName\\\"]]],[15,5,[30,0,[\\\"_maxWidthStyle\\\"]]],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"voucher-template-preview-wrapper relative\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"iframe\\\"],[24,1,\\\"voucher-preview-image\\\"],[24,\\\"title\\\",\\\"voucher-preview\\\"],[16,0,[30,0,[\\\"_wrapperClassNames\\\"]]],[16,\\\"src\\\",[30,0,[\\\"url\\\"]]],[24,\\\"frameborder\\\",\\\"0\\\"],[24,\\\"scrolling\\\",\\\"no\\\"],[4,[38,0],[[30,0,[\\\"onInsert\\\"]]],null],[4,[38,1],[[30,0,[\\\"onUpdate\\\"]],[30,0,[\\\"url\\\"]]],null],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"did-insert\\\",\\\"did-update\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-campaign/voucher-preview-iframe.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcCampaignVoucherPreviewIframeComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.bool), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _class = class AmcCampaignVoucherPreviewIframeComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      /**\n       * Boolean indicating if the iframe is interactive or not\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor, this);\n      /**\n       * The url of the voucher preview\n       *\n       * @argument url\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"url\", _descriptor2, this);\n      /**\n       * Boolean indicating if the content of the iframe is loaded or not\n       *\n       * @property _isLoading\n       * @type {Boolean}\n       * @default true\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isLoading\", _descriptor3, this);\n    }\n    /**\n     * Get the specified layout type (portrait/landscape)\n     *\n     * @computed layoutType\n     * @type {String}\n     * @private\n     */\n    get layoutType() {\n      // Get layout query param\n      let params = new URL(this.url).searchParams;\n      let layout = params.get('layout');\n      return layout;\n    }\n\n    /**\n     * The classnames of the iframe wrapper\n     *\n     * @computed _wrapperClassNames\n     * @type {String}\n     * @private\n     */\n    get _wrapperClassNames() {\n      return `absolute top-0 left-0 db w-100 h-100 voucher-preview-iframe ${this._isLoading ? 'voucher-preview-iframe__is-loading' : ''} ${this.isReadOnly ? 'voucher-preview-iframe__is-read-only' : ''}`;\n    }\n\n    /**\n     * The max-width style\n     *\n     * @computed _maxWidthStyle\n     * @type {String}\n     * @private\n     */\n    get _widthWrapperClassName() {\n      return `voucher-template-preview-width voucher-template-preview-width__${this.layoutType} relative`;\n    }\n    onInsert() {\n      // adds event listener for iframe onload\n      if (document) {\n        const iframe = document.getElementById('voucher-preview-image');\n        iframe && iframe.addEventListener('load', () => {\n          this._isLoading = false;\n        });\n      }\n    }\n    onUpdate() {\n      this._isLoading = true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"url\", [_dec2, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_isLoading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onUpdate\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcCampaignVoucherPreviewIframeComponent);\n});","define(\"additive-mc/components/amc-campaign/voucher\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"@ember/object/computed\"], function (_exports, _component, _service, _object, _computed) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which represents the \"voucher\"-part of an campaign with voucher\n   *\n   * @class componenents/amc-campaign/voucher\n   * @module amc-campaigns\n   */\n  var _default = _exports.default = _component.default.extend({\n    intl: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    uiAppSettings: (0, _service.inject)(),\n    currentUser: (0, _service.inject)(),\n    tagName: '',\n    /**\n     * Whether it is read only\n     *\n     * @property isReadOnly\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * The resource which contains the `voucher` child\n     *\n     * @property resource\n     * @default null\n     */\n    resource: null,\n    /**\n     * The type of the model (`email-campaign-voucher` or `on-page-campaign-voucher`)\n     *\n     * @property voucherModelType\n     * @default null\n     * @private\n     */\n    voucherModelType: null,\n    /**\n     * Internal copy of the current resource id\n     *\n     * @property _resourceId\n     * @default null\n     * @private\n     */\n    _resourceId: null,\n    /**\n     * The ember data model\n     *\n     * @property _voucherModel\n     * @default null\n     * @private\n     */\n    _voucherModel: null,\n    _contentLanguages: (0, _computed.alias)('uiAppSettings.languages.contentLanguages'),\n    _adapterOptions: (0, _object.computed)('resource.{campaignId,id}', {\n      get() {\n        return {\n          adapterOptions: {\n            campaignId: this.resource.id\n          }\n        };\n      }\n    }),\n    _languageState: (0, _object.computed)('_contentLanguages.[]', '_voucherModel.availableLanguages.[]', {\n      get() {\n        if (!this._contentLanguages || !Array.isArray(this._contentLanguages)) {\n          return 'error';\n        }\n        let isSuccess = true;\n        const {\n          availableLanguages\n        } = this._voucherModel;\n        this._contentLanguages.forEach(language => {\n          if (!isSuccess) {\n            return;\n          }\n          isSuccess = availableLanguages.indexOf(language) >= 0;\n        });\n        return isSuccess ? 'success' : availableLanguages.length === 0 ? 'error' : 'warning';\n      }\n    }),\n    _setup() {\n      const voucherModel = this.store.peekRecord(this.voucherModelType, this.resource.voucher.get('id'));\n      (0, _object.setProperties)(this, {\n        _voucherModel: voucherModel,\n        _resourceId: this.resource.id\n      });\n    },\n    init() {\n      this._super(...arguments);\n      this._setup();\n    },\n    didUpdateAttrs() {\n      this._super(...arguments);\n      if (this._resourceId === this.resource.id) {\n        return;\n      }\n\n      /* Re-setup on resource attribute change */\n      this._setup();\n    },\n    onVoucherDetailOpen() {}\n  });\n});","define(\"additive-mc/components/amc-dashboard/charts\", [\"exports\", \"additive-mc/config/environment\", \"@additive-apps/ui/components/ui-property-watcher\", \"@ember/object\", \"ember-concurrency\", \"@ember/service\", \"date-fns/format\", \"date-fns/locale/de\", \"additive-mc/utils/constants\", \"@additive-apps/ui/utils/query-param-util\", \"additive-mc/utils/currency-serialization\"], function (_exports, _environment, _uiPropertyWatcher, _object, _emberConcurrency, _service, _format, _de, _constants, _queryParamUtil, _currencySerialization) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * This component fetches the data and displays the charts in the dashboard. The data of the charts\n   * is updated everytime the organization slug changes.\n   *\n   * @class amc-dashboard/charts\n   */\n  var _default = _exports.default = _uiPropertyWatcher.default.extend({\n    authenticatedFetch: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    /**\n     * the date range object\n     *\n     * @property _dateRange\n     * @type {Object}\n     */\n    dateRange: null,\n    /**\n     * the current organization slug\n     *\n     * @property organizationSlug\n     * @type {String}\n     * @default null\n     */\n    organizationSlug: null,\n    /**\n     * the chart datasets for reservations and conversions\n     *\n     * @property _reservationsConversionsData\n     * @type {Object}\n     * @default null\n     */\n    _reservationsConversionsData: null,\n    /**\n     * whether the reservations and conversions fetch resulted in an error\n     *\n     * @property _isReservationsConversionsError\n     * @type {Boolean}\n     * @default false\n     * @private\n     */\n    _isReservationsConversionsError: false,\n    /**\n     * the chart datasets for added value\n     *\n     * @property _valueAddedData\n     * @type {Object}\n     * @default null\n     */\n    _valueAddedData: null,\n    /**\n     * whether the value added fetch resulted in an error\n     *\n     * @property _isValueAddedError\n     * @type {Boolean}\n     * @default false\n     * @private\n     */\n    _isValueAddedError: false,\n    /**\n     * query params for the charts requests\n     *\n     * @computed queryParams\n     * @type {String}\n     */\n    queryParams: (0, _object.computed)('dateRange.[]', {\n      get() {\n        const {\n          dateRange\n        } = this;\n        return dateRange ? (0, _queryParamUtil.getQueryParams)(dateRange) : '';\n      }\n    }),\n    init() {\n      this._super(...arguments);\n      (0, _object.set)(this, 'chartTabs', [{\n        title: this.intl.t('dashboard.charts.valueAdded.title'),\n        name: 'valueAdded'\n      }, {\n        title: this.intl.t('dashboard.charts.conversionsReservations.title'),\n        name: 'conversions-reservations'\n      }]);\n      (0, _object.set)(this, 'activeTab', this.chartTabs[0]);\n      (0, _object.setProperties)(this, {\n        // property watcher properties\n        _watchedProperties: ['dateRange', 'organizationSlug'],\n        _onPropertyChange: () => {\n          this.valueAddedChartData.perform();\n          (0, _object.set)(this, 'activeTab', this.chartTabs[0]);\n        }\n      });\n    },\n    /**\n     * fetches the datasets for the reservations\n     *\n     * @type {Task}\n     * @function conversionsReservationsChartData\n     */\n    conversionsReservationsChartData: (0, _emberConcurrency.task)(function* () {\n      this._isReservationsConversionsError = false;\n      const tasks = [];\n      const baseUrl = _environment.default.APP.apiBaseHost;\n      const chartsUrl = `${baseUrl}/${this.organizationSlug}/dashboard/conversions-reservations-graph${this.queryParams}`;\n      try {\n        var _chartData$conversion;\n        tasks.push(this.authenticatedFetch.fetch(chartsUrl, {}, null, [500]));\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        const [response] = yield (0, _emberConcurrency.all)(tasks);\n        if (!response.ok) {\n          throw new Error('Failed to fetch data');\n        }\n\n        // chart-data\n        const chartData = yield response.json();\n        if (chartData !== null && chartData !== void 0 && (_chartData$conversion = chartData.conversionsRerservationsGraph) !== null && _chartData$conversion !== void 0 && _chartData$conversion.datasets) {\n          const data = this._formatChartData(chartData.conversionsRerservationsGraph);\n          (0, _object.setProperties)(this, {\n            _reservationsConversionsData: data\n          });\n        }\n      } catch (error) {\n        this._isReservationsConversionsError = true;\n      }\n    }).restartable(),\n    /**\n     * fetches the datasets for the value added\n     *\n     * @type {Task}\n     * @function valueAddedChartData\n     */\n    valueAddedChartData: (0, _emberConcurrency.task)(function* () {\n      this._isValueAddedError = false;\n      const tasks = [];\n      const baseUrl = _environment.default.APP.apiBaseHost;\n      const chartsUrl = `${baseUrl}/${this.organizationSlug}/dashboard/added-value-graph${this.queryParams}`;\n      try {\n        var _chartData$addedValue;\n        tasks.push(this.authenticatedFetch.fetch(chartsUrl, {}, null, [500]));\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        const [response] = yield (0, _emberConcurrency.all)(tasks);\n        if (!response.ok) {\n          throw new Error('Failed to fetch data');\n        }\n\n        // chart-data\n        const chartData = yield response.json();\n        if (chartData !== null && chartData !== void 0 && (_chartData$addedValue = chartData.addedValueGraph) !== null && _chartData$addedValue !== void 0 && _chartData$addedValue.datasets) {\n          const data = this._formatChartData(chartData.addedValueGraph, true);\n          (0, _object.setProperties)(this, {\n            _valueAddedData: data\n          });\n        }\n      } catch (error) {\n        this._isValueAddedError = true;\n      }\n    }).restartable().on('init'),\n    /**\n     * Formats the apis response to the proper format in order to be\n     * consumed by the `ui-chart`-component\n     * @param {Object} data the data-object\n     * @param {boolean} reverse flag for reversing the order of the colors\n     */\n    _formatChartData(data, reverse) {\n      const chartData = Object.assign({}, data);\n      // format the date labels\n      const labels = chartData.labels.map(label => {\n        // Regex to check if the date contains days.\n        const regex = new RegExp('[0-9]{4}-[0-9]{2}-[0-9]{2}', 'g');\n        // We choose the correct date format by using the regex.\n        const dateFormat = regex.test(label) ? 'dd MMM' : 'MMM yyyy';\n        return (0, _format.default)(new Date(label), dateFormat, {\n          locale: _de.default\n        });\n      });\n      const datasets = chartData.datasets.map((dataset, i) => {\n        // format currency\n        if (dataset.format === 'currency') {\n          const data = dataset.data.map(cents => {\n            return (0, _currencySerialization.centsToAmount)(cents);\n          });\n          dataset.data = data;\n        }\n        if (reverse) {\n          return Object.assign({}, dataset, _constants.CHART_COLORS.reverse()[i]);\n        }\n        return Object.assign({}, dataset, _constants.CHART_COLORS[i]);\n      });\n      chartData.datasets = datasets;\n      chartData.labels = labels;\n      chartData.comparison = {\n        label: this.intl.t('dashboard.charts.comparison.lastYear')\n      };\n      return chartData;\n    },\n    actions: {\n      selected(_ref) {\n        let {\n          name\n        } = _ref;\n        switch (name) {\n          case 'conversions-reservations':\n            this.conversionsReservationsChartData.perform();\n            break;\n          case 'valueAdded':\n            this.valueAddedChartData.perform();\n            break;\n          default:\n            break;\n        }\n      }\n    }\n  });\n});","define(\"additive-mc/components/amc-dashboard/key-indicators\", [\"exports\", \"additive-mc/config/environment\", \"@additive-apps/ui/components/ui-property-watcher\", \"@ember/object\", \"ember-concurrency\", \"@ember/service\", \"@additive-apps/ui/utils/query-param-util\"], function (_exports, _environment, _uiPropertyWatcher, _object, _emberConcurrency, _service, _queryParamUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * This component fetches the data and displays the charts in the dashboard. The data of the charts\n   * is updated everytime the organization slug changes.\n   *\n   * @class amc-dashboard/key-metrics\n   */\n  var _default = _exports.default = _uiPropertyWatcher.default.extend({\n    authenticatedFetch: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    uiAppSettings: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    /**\n     * the date range object\n     *\n     * @property _dateRange\n     * @type {Object}\n     */\n    dateRange: null,\n    /**\n     * the current organization slug\n     *\n     * @property organizationSlug\n     * @type {String}\n     * @default null\n     */\n    organizationSlug: null,\n    /**\n     * AbortController for the current fetch\n     *\n     * @property _abortController\n     * @type {AbortController}\n     * @default null\n     * @private\n     */\n    _abortController: null,\n    init() {\n      this._super(...arguments);\n      (0, _object.setProperties)(this, {\n        // property watcher properties\n        _watchedProperties: ['dateRange', 'organizationSlug'],\n        _onPropertyChange: () => this.keyIndicators.perform()\n      });\n    },\n    /**\n     * fetches the datasets for the reservations\n     *\n     * @type {Task}\n     * @function reservationsChartData\n     */\n    keyIndicators: (0, _emberConcurrency.task)(function* () {\n      this._isError = false;\n      this._abortController && this._abortController.abort();\n      const tasks = [];\n      const baseUrl = _environment.default.APP.apiBaseHost;\n      const {\n        dateRange\n      } = this;\n      const qps = dateRange ? (0, _queryParamUtil.getQueryParams)(dateRange) : '';\n      const chartsUrl = `${baseUrl}/${this.organizationSlug}/dashboard/key-indicators${qps}`;\n      try {\n        this._abortController = new AbortController();\n        tasks.push(this.authenticatedFetch.fetch(chartsUrl, {\n          signal: this._abortController.signal\n        }, null, [500]));\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        const [response] = yield (0, _emberConcurrency.all)(tasks);\n        if (!response.ok) {\n          throw new Error('Failed to fetch data');\n        }\n\n        // chart-data\n        const {\n          valueAdded,\n          reservations,\n          conversions,\n          sessions\n        } = yield response.json();\n        (0, _object.setProperties)(this, {\n          valueAdded,\n          reservations,\n          conversions,\n          sessions\n        });\n        yield (0, _emberConcurrency.timeout)(100);\n      } catch (error) {\n        this._isError = true;\n      }\n    }).restartable().on('init')\n  });\n});","define(\"additive-mc/components/amc-dashboard/progress-indicator\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"@ember/object/computed\", \"@ember/object\", \"prop-types\", \"@ember/service\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _computed, _object, _propTypes, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class={{concat\n      \"amc-progress-indicator cpointer pa3 \"\n      (if this.isUpgradeNeeded \"white bg-blue\" (if this.isCampaignEmpty \"blue bg-blue--10\" \"primary\"))\n    }}\n  >\n    <div\n      class={{concat\n        \"flex flex-column \"\n        (if (or this.isUpgradeNeeded this.isCampaignEmpty) \"justify-between h-100\" \"\")\n      }}\n      role=\"button\"\n      onClick={{this.onClick}}\n    >\n      <div>\n        <div class=\"flex justify-between\">\n          <div class=\"font-sm\">\n            {{this.title}}\n          </div>\n  \n          {{#if (and (not this.isCampaignEmpty) (not this.isUpgradeNeeded))}}\n            {{svg-jar \"new-window\" width=\"20\" height=\"20\" class=\"secondary\"}}\n          {{/if}}\n        </div>\n  \n        {{#if this.isUpgradeNeeded}}\n          <div class=\"font-sm white--60 mt1\">\n            {{this.text}}\n          </div>\n        {{else if this.isCampaignEmpty}}\n          <div class=\"font-sm blue--40 mt1\">\n            {{this.text}}\n          </div>\n        {{/if}}\n      </div>\n  \n      {{#if this.isUpgradeNeeded}}\n        <div class=\"flex items-center white font-sm mt3\">\n          {{svg-jar \"arrow-up-circle\" class=\"white\"}}\n          <div class=\"ml05\">\n            {{t \"components.amc-progress-indicator.upgradeNow\"}}\n          </div>\n        </div>\n      {{else if this.isCampaignEmpty}}\n        <div class=\"flex items-center font-sm blue mt3\">\n          {{svg-jar \"new-window\" class=\"blue\"}}\n          <div class=\"ml05\">\n            {{t \"components.amc-progress-indicator.createCampaign\"}}\n          </div>\n        </div>\n      {{else}}\n        <div class=\"progress-bar flex mt2 mb1\">\n          {{#each (range 0 this.totalCount) as |item|}}\n            <div\n              class={{concat\n                \"progress-bar__item w-100 \"\n                (if (lt item this.activeCount) \"bg-blue\" \"bg-secondary--10\")\n              }}\n            ></div>\n          {{/each}}\n        </div>\n  \n        <div\n          class={{concat\n            \"font-xs mb2 \"\n            (if (equal this.totalCount this.activeCount) \"blue\" \"secondary\")\n          }}\n        >\n          {{this.text}}\n        </div>\n      {{/if}}\n    </div>\n  \n    {{#if (and (not this.isCampaignEmpty) (not this.isUpgradeNeeded))}}\n      <div class=\"flex flex-wrap\">\n        {{#each this.campaigns as |campaign|}}\n          <UiPopover\n            class=\"campaign-status\"\n            onClick={{fn this.openCampaign campaign.link}}\n            @state={{if\n              (equal campaign.state.code \"active\")\n              \"success\"\n              (if (equal campaign.state.code \"deactivated\") \"error\" \"warning\")\n            }} as |pop|\n          >\n            {{pop.trigger}}\n            <pop.content>\n              <div class=\"flex\">\n                <div class=\"mr1\">\n                  {{svg-jar \"new-window\" class=\"secondary\"}}\n                </div>\n                <div class=\"flex flex-column\">\n                  <div class=\"font-sm secondary\">\n                    {{campaign.type}}\n                  </div>\n                  <div class=\"font-sm\">\n                    {{campaign.name}}\n                  </div>\n                </div>\n              </div>\n            </pop.content>\n          </UiPopover>\n        {{/each}}\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"jJdZI63v\",\n    \"block\": \"[[[10,0],[15,0,[28,[37,0],[\\\"amc-progress-indicator cpointer pa3 \\\",[52,[30,0,[\\\"isUpgradeNeeded\\\"]],\\\"white bg-blue\\\",[52,[30,0,[\\\"isCampaignEmpty\\\"]],\\\"blue bg-blue--10\\\",\\\"primary\\\"]]],null]],[12],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[28,[37,0],[\\\"flex flex-column \\\",[52,[28,[37,2],[[30,0,[\\\"isUpgradeNeeded\\\"]],[30,0,[\\\"isCampaignEmpty\\\"]]],null],\\\"justify-between h-100\\\",\\\"\\\"]],null]],[14,\\\"role\\\",\\\"button\\\"],[15,\\\"onClick\\\",[30,0,[\\\"onClick\\\"]]],[12],[1,\\\"\\\\n    \\\"],[10,0],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex justify-between\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-sm\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"title\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[[28,[37,4],[[30,0,[\\\"isCampaignEmpty\\\"]]],null],[28,[37,4],[[30,0,[\\\"isUpgradeNeeded\\\"]]],null]],null],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"new-window\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"secondary\\\"]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isUpgradeNeeded\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"font-sm white--60 mt1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"text\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isCampaignEmpty\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"font-sm blue--40 mt1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"text\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isUpgradeNeeded\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"flex items-center white font-sm mt3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"arrow-up-circle\\\"],[[\\\"class\\\"],[\\\"white\\\"]]]],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"ml05\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.amc-progress-indicator.upgradeNow\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isCampaignEmpty\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"flex items-center font-sm blue mt3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"new-window\\\"],[[\\\"class\\\"],[\\\"blue\\\"]]]],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"ml05\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.amc-progress-indicator.createCampaign\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"progress-bar flex mt2 mb1\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[28,[37,9],[0,[30,0,[\\\"totalCount\\\"]]],null]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[15,0,[28,[37,0],[\\\"progress-bar__item w-100 \\\",[52,[28,[37,10],[[30,1],[30,0,[\\\"activeCount\\\"]]],null],\\\"bg-blue\\\",\\\"bg-secondary--10\\\"]],null]],[12],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[15,0,[28,[37,0],[\\\"font-xs mb2 \\\",[52,[28,[37,11],[[30,0,[\\\"totalCount\\\"]],[30,0,[\\\"activeCount\\\"]]],null],\\\"blue\\\",\\\"secondary\\\"]],null]],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"text\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[[28,[37,4],[[30,0,[\\\"isCampaignEmpty\\\"]]],null],[28,[37,4],[[30,0,[\\\"isUpgradeNeeded\\\"]]],null]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"campaigns\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,12],[[24,0,\\\"campaign-status\\\"],[16,\\\"onClick\\\",[28,[37,13],[[30,0,[\\\"openCampaign\\\"]],[30,2,[\\\"link\\\"]]],null]]],[[\\\"@state\\\"],[[52,[28,[37,11],[[30,2,[\\\"state\\\",\\\"code\\\"]],\\\"active\\\"],null],\\\"success\\\",[52,[28,[37,11],[[30,2,[\\\"state\\\",\\\"code\\\"]],\\\"deactivated\\\"],null],\\\"error\\\",\\\"warning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,3,[\\\"trigger\\\"]]],[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mr1\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,5],[\\\"new-window\\\"],[[\\\"class\\\"],[\\\"secondary\\\"]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,2,[\\\"type\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"font-sm\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"item\\\",\\\"campaign\\\",\\\"pop\\\"],false,[\\\"concat\\\",\\\"if\\\",\\\"or\\\",\\\"and\\\",\\\"not\\\",\\\"svg-jar\\\",\\\"t\\\",\\\"each\\\",\\\"-track-array\\\",\\\"range\\\",\\\"lt\\\",\\\"equal\\\",\\\"ui-popover\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-dashboard/progress-indicator.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcDashboardProgressIndicatorComponent = _exports.default = (_dec = (0, _computed.equal)('campaigns.length', 0), _dec2 = (0, _computed.equal)('totalCount', 0), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.string), _dec5 = (0, _emberArgTypes.arg)(_propTypes.string), _dec6 = (0, _emberArgTypes.arg)(_propTypes.number), _dec7 = (0, _emberArgTypes.arg)(_propTypes.number), _dec8 = (0, _emberArgTypes.arg)(_propTypes.array), _class = class AmcDashboardProgressIndicatorComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"isCampaignEmpty\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isUpgradeNeeded\", _descriptor3, this);\n      /**\n       * The title of the progress indicator\n       *\n       * @argument title\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"title\", _descriptor4, this);\n      /**\n       * The text of the progress indicator\n       *\n       * @argument title\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"text\", _descriptor5, this);\n      /**\n       * The link of the progress indicator\n       *\n       * @argument link\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"linkTo\", _descriptor6, this);\n      /**\n       * The number of active campaigns\n       *\n       * @argument activeCount\n       * @type {Number}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"activeCount\", _descriptor7, this);\n      /**\n       * The total number of campaigns\n       *\n       * @argument totalCount\n       * @type {Number}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"totalCount\", _descriptor8, this);\n      /**\n       * The campaigns data\n       *\n       * @argument campaigns\n       * @type {Array}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"campaigns\", _descriptor9, this);\n    }\n    onClick() {\n      if (!this.linkTo) {\n        return;\n      }\n      if (this.isUpgradeNeeded) {\n        window.open(this.linkTo, '_blank');\n      } else {\n        this.router.transitionTo(this.linkTo);\n      }\n    }\n    openCampaign(url) {\n      if (!url) {\n        return;\n      }\n      this.router.transitionTo(url);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isCampaignEmpty\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isUpgradeNeeded\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"text\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"linkTo\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"activeCount\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"totalCount\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"campaigns\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openCampaign\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openCampaign\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcDashboardProgressIndicatorComponent);\n});","define(\"additive-mc/components/amc-dashboard/progress-indicators\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"ember-arg-types\", \"@glimmer/tracking\", \"ember-concurrency\", \"prop-types\", \"@ember/service\"], function (_exports, _component, _templateFactory, _environment, _component2, _emberArgTypes, _tracking, _emberConcurrency, _propTypes, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.fetchCampaignsInfo.isRunning}}\n    <div class=\"flex flex-wrap pt2\">\n      <UiSkeleton\n        @items={{5}}\n        @itemsPerRow={{3}}\n        @itemsPerRowSmartphone={{1}}\n        @cardHeight={{130}}\n        @gap={{32}}\n      />\n    </div>\n  {{else}}\n    <div class=\"amc-progress-indicators flex flex-wrap pt2\">\n      {{#each this.campaignsInfo as |item|}}\n        <AmcDashboard::ProgressIndicator\n          @title={{item.header}}\n          @text={{item.text}}\n          @activeCount={{item.activeCount}}\n          @totalCount={{item.totalCount}}\n          @linkTo={{item.link}}\n          @campaigns={{item.campaigns}}\n        />\n      {{/each}}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"gjj8KdBA\",\n    \"block\": \"[[[41,[30,0,[\\\"fetchCampaignsInfo\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"flex flex-wrap pt2\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[5,3,1,130,32]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"amc-progress-indicators flex flex-wrap pt2\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"campaignsInfo\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@text\\\",\\\"@activeCount\\\",\\\"@totalCount\\\",\\\"@linkTo\\\",\\\"@campaigns\\\"],[[30,1,[\\\"header\\\"]],[30,1,[\\\"text\\\"]],[30,1,[\\\"activeCount\\\"]],[30,1,[\\\"totalCount\\\"]],[30,1,[\\\"link\\\"]],[30,1,[\\\"campaigns\\\"]]]],null],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"item\\\"],false,[\\\"if\\\",\\\"ui-skeleton\\\",\\\"each\\\",\\\"-track-array\\\",\\\"amc-dashboard/progress-indicator\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-dashboard/progress-indicators.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcDashboardProgressIndicatorsComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    const baseUrl = _environment.default.APP.apiBaseHost;\n    const url = `${baseUrl}/${this.organizationSlug}/dashboard/overview`;\n    try {\n      tasks.push(this.authenticatedFetch.fetch(url));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const data = yield response.json();\n      if (data) {\n        this.campaignsInfo = data;\n      }\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class AmcDashboardProgressIndicatorsComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      /**\n       * the current organization slug\n       *\n       * @property organizationSlug\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor4, this);\n      /**\n       * information about campaigns which is used for progress indicators\n       *\n       * @property campaignsInfo\n       * @type {Array}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"campaignsInfo\", _descriptor5, this);\n      /**\n       * fetches campaigns information used for the progress indicators\n       *\n       * @type {Task}\n       * @function fetchCampaignsInfo\n       * @private\n       */\n      _initializerDefineProperty(this, \"fetchCampaignsInfo\", _descriptor6, this);\n      this.fetchCampaignsInfo.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"campaignsInfo\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"fetchCampaignsInfo\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcDashboardProgressIndicatorsComponent);\n});","define(\"additive-mc/components/amc-date-filter\", [\"exports\", \"@additive-apps/ui/components/ui-date-filter\", \"additive-mc/utils/constants\", \"additive-mc/utils/helpers\"], function (_exports, _uiDateFilter, _constants, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class AmcDateFilter extends _uiDateFilter.default {\n    constructor() {\n      var _this$_initialRange, _this$_initialRange2;\n      super(...arguments);\n      _defineProperty(this, \"minDate\", _constants.MINIMUM_CALENDAR_DATE);\n      _defineProperty(this, \"maxDate\", new Date());\n      if (!((_this$_initialRange = this._initialRange) !== null && _this$_initialRange !== void 0 && _this$_initialRange.start) && !((_this$_initialRange2 = this._initialRange) !== null && _this$_initialRange2 !== void 0 && _this$_initialRange2.end)) {\n        this._initialRange = (0, _helpers.getDefaultFilterDates)();\n      }\n    }\n  }\n  _exports.default = AmcDateFilter;\n});","define(\"additive-mc/components/amc-delete-model\", [\"exports\", \"@ember/component\", \"@ember/service\", \"ember-concurrency\", \"@ember/object\"], function (_exports, _component, _service, _emberConcurrency, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * HOC which deletes a given model.\n   */\n  var _default = _exports.default = _component.default.extend({\n    store: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    uiDialog: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    uiFilter: (0, _service.inject)(),\n    tagName: '',\n    confirm: true,\n    resourceId: null,\n    modelName: null,\n    modelOptions: null,\n    hasFilter: true,\n    /**\n     * Send delete\n     *\n     * @type {Task}\n     * @function _send\n     * @private\n     */\n    _send: (0, _emberConcurrency.task)(function* () {\n      try {\n        const model = this.store.peekRecord(this.modelName, this.resourceId);\n        if (!model) {\n          throw new Error();\n        }\n        yield model.destroyRecord(this.modelOptions);\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        this.doAfterDelete();\n      } catch (error) {\n        try {\n          const errorDetail = JSON.parse(error.message);\n          this.uiToast.showToast({\n            title: errorDetail.message,\n            type: 'error'\n          });\n        } catch (e) {\n          this.uiToast.showToast({\n            title: this.intl.t('toast.unexpectedError'),\n            type: 'error'\n          });\n        }\n      }\n    }),\n    _delete() {\n      if (!this.confirm) {\n        this._send.perform();\n        return;\n      }\n      this.uiDialog.showConfirm(this.intl.t('components.amc-delete-model.confirm.title'), this.intl.t('components.amc-delete-model.confirm.description', {\n        htmlSafe: true\n      }), () => this._send.perform(), this.intl.t('global.actions.delete'), true, true);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      (0, _object.set)(this, 'modelOptions', this.modelOptions || {});\n    },\n    doAfterDelete() {\n      if (this.hasFilter) {\n        const filterName = this.modelName.split('-campaign')[0].replace(/([-][a-z])/g, group => group.toUpperCase().replace('-', ''));\n        this.uiFilter.reset(filterName);\n      }\n      this.afterDelete();\n    },\n    afterDelete() {}\n  });\n});","define(\"additive-mc/components/amc-legals\", [\"exports\", \"additive-mc/config/environment\", \"@ember/component\", \"ember-concurrency\", \"@ember/object\", \"@ember/service\", \"ember-changeset\", \"ember-changeset-validations\", \"additive-mc/validations/settings\", \"lodash.merge\", \"rsvp\"], function (_exports, _environment, _component, _emberConcurrency, _object, _service, _emberChangeset, _emberChangesetValidations, _settings, _lodash, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Component which represent apps legals page\n   *\n   * @class amc-legals\n   */\n  var _default = _exports.default = _component.default.extend({\n    authenticatedFetch: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    uiPaths: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    tagName: '',\n    /**\n     * Organizations available languages\n     *\n     * @property availableLanguages\n     * @type {String}\n     * @default null\n     */\n    availableLanguages: null,\n    /**\n     * the current organization slug\n     *\n     * @property organizationSlug\n     * @type {String}\n     * @default null\n     */\n    organizationSlug: null,\n    /**\n     * whether the component is read only\n     *\n     * @property isReadOnly\n     * @type {Boolean}\n     * @default false\n     */\n    isReadOnly: false,\n    /**\n     * Changeset of the resource\n     *\n     * @property _changeset\n     * @type {Changeset}\n     * @default null\n     * @private\n     */\n    _changeset: null,\n    /**\n     * Current selected language\n     *\n     * @property _currentLanguage\n     * @type {String}\n     * @private\n     */\n    _currentLanguage: 'de',\n    /**\n     * Legals resource\n     *\n     * @property _resource\n     * @type {Object}\n     * @default null\n     * @private\n     */\n    _resource: null,\n    /**\n     * Api url for legals\n     *\n     * @computed _apiUrl\n     * @private\n     */\n    _apiUrl: (0, _object.computed)('organizationSlug', {\n      get() {\n        const apiBaseHost = _environment.default.APP.apiBaseHostV2;\n        return `${apiBaseHost}/${this.organizationSlug}/legals`;\n      }\n    }),\n    init() {\n      this._super(...arguments);\n      (0, _object.setProperties)(this, {\n        _resource: {},\n        _changeset: {}\n      });\n    },\n    /**\n     * Loads legals\n     *\n     * @type {Task}\n     * @function _loadLegals\n     * @private\n     */\n    _loadLegals: (0, _emberConcurrency.task)(function () {\n      var _this = this;\n      let language = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'de';\n      return function* () {\n        try {\n          let tasks = [];\n          tasks.push(_this.authenticatedFetch.fetch(_this._apiUrl, {\n            headers: {\n              'Accept-Language': language || 'de'\n            }\n          }));\n          tasks.push((0, _emberConcurrency.timeout)(250));\n          const [response] = yield (0, _emberConcurrency.all)(tasks);\n          if (!response || !response.ok) {\n            throw new Error(`[Legals] ${response}`);\n          }\n          const json = yield response.json();\n          _this._handleApiResponse(json);\n          (0, _object.set)(_this, '_currentLanguage', language);\n        } catch (error) {\n          _this.uiToast.showToast({\n            title: _this.intl.t('toast.unexpectedError'),\n            type: 'error'\n          });\n        }\n      }();\n    }).on('init'),\n    /**\n     * Updates legals with data of given changeset\n     *\n     * @param {Object} changeset the changeset\n     * @type {Task}\n     * @function _updateLegalsWithChangeset\n     * @private\n     */\n    _updateLegalsWithChangeset: (0, _emberConcurrency.task)(function* (changeset, key) {\n      try {\n        yield changeset.validate();\n\n        // reject if there are errors or no changes have been made\n        if (changeset.get('isInvalid') || changeset.get('isPristine')) {\n          return (0, _rsvp.reject)();\n        }\n        let newResource = (0, _lodash.default)({}, this._resource);\n        (0, _object.setProperties)(newResource, {\n          'disclaimerUrl.value': changeset.get('disclaimerUrl'),\n          'privacyUrl.value': changeset.get('privacyUrl')\n        });\n        if (key === 'disclaimerUrl' || key === 'privacyUrl') {\n          newResource[key].sync = false;\n        }\n        yield this._updateLegals.perform(newResource);\n        /* Save changeset to reset dirty flag, otherwise it will trigger discard changes dialog */\n        yield changeset.save();\n      } catch (error) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }),\n    /**\n     * Updates legals with data of given resource\n     *\n     * @type {Task}\n     * @function _updateLegals\n     * @param {Object} resource The resource which should be saved\n     * @private\n     */\n    _updateLegals: (0, _emberConcurrency.task)(function* (resource) {\n      try {\n        const body = (0, _lodash.default)({}, resource);\n        const request = yield this.authenticatedFetch.fetch(this._apiUrl, {\n          headers: {\n            'Accept-Language': this._currentLanguage || 'de'\n          },\n          method: 'PUT',\n          body: JSON.stringify(body)\n        });\n        const [response] = yield (0, _emberConcurrency.all)([request, (0, _emberConcurrency.timeout)(250)]);\n        if (!response || !response.ok) {\n          throw new Error(`[LEGALS - UPDATE] general ${response}`);\n        } else {\n          const json = yield response.json();\n          this._handleApiResponse(json);\n          this.uiToast.showToast({\n            title: this.intl.t('toast.success'),\n            type: 'success'\n          });\n        }\n      } catch (error) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }),\n    /**\n     * Toggles sync value and update\n     *\n     * @param {String} name the property name\n     * @type {Task}\n     * @function _toggleSync\n     * @private\n     */\n    _toggleSync: (0, _emberConcurrency.task)(function* (name) {\n      try {\n        if (!name) return;\n        const synced = this._resource[name].sync;\n        /* Toggle value */\n        (0, _object.set)(this, `_resource.${name}.sync`, !synced);\n        yield this._updateLegals.perform(this._resource);\n      } catch (error) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }),\n    /**\n     * Manage apis response and set internal values\n     *\n     * @param {Object} response Apis response\n     * @function _handleApiResponse\n     */\n    _handleApiResponse(response) {\n      const {\n        legals\n      } = response;\n      const validation = (0, _settings.legalsValidations)(this.intl);\n      const changeset = new _emberChangeset.default({\n        disclaimerUrl: legals.disclaimerUrl.value,\n        privacyUrl: legals.privacyUrl.value\n      }, (0, _emberChangesetValidations.default)(validation), validation);\n      (0, _object.setProperties)(this, {\n        _resource: legals,\n        _changeset: changeset\n      });\n    },\n    actions: {\n      changeLanguage(lang) {\n        this._loadLegals.perform(lang);\n      }\n    }\n  });\n});","define(\"additive-mc/components/amc-preview/email-preview\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/service\", \"@ember/template\", \"ember-arg-types\", \"prop-types\", \"ember-concurrency\"], function (_exports, _component, _templateFactory, _component2, _service, _template, _emberArgTypes, _propTypes, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{this.subscriber.name}}\n    @subtitle={{this.subscriber.email}}\n    @modalClassNames=\"amc-email-preview\"\n    @size=\"lg\"\n    @onClose={{this.onClose}} as |dialog|\n  >\n    <dialog.header />\n    <dialog.content {{did-insert (perform this.loadMailContent)}} as |content|>\n      <content.top>\n        <UiStatusBadge @class=\"mt1 mb3\" @state={{this.subscriber.stateBadge}} @size=\"xs\">\n          <UiStatus @state={{this.subscriber.stateBadge}} />\n          <span class=\"pr05 font-sm\">\n            {{t (concat \"preview.upcomingEmails.subscribers.states.\" this.subscriber.state)}}\n          </span>\n        </UiStatusBadge>\n        <UiStatusBadge @class=\"ml1 mt1 mb3\" @size=\"xs\">\n          {{svg-jar \"watch\"}}\n          <span class=\"pr05 font-sm\">\n            {{format-date this.subscriber.deliveryDate}}\n          </span>\n        </UiStatusBadge>\n      </content.top>\n      <content.body @classNames=\"flex-grow-1\" @data-test-mail-preview-dialog={{true}}>\n        <div\n          class=\"flex flex-column flex-grow-1 justify-center items-center w-100 h-100 bt mt1 b--black-10\"\n        >\n          <iframe\n            title=\"mail-preview\"\n            id=\"mail-preview-iframe\"\n            class=\"w-100 h-100 dn flex flex-column flex-grow-1\"\n            frameBorder=\"0\"\n          ></iframe>\n          {{#if this.loadMailContent.isRunning}}\n            <UiLoading />\n          {{/if}}\n        </div>\n      </content.body>\n    </dialog.content>\n  </UiModal>\n  */\n  {\n    \"id\": \"AhcRaefX\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@subtitle\\\",\\\"@modalClassNames\\\",\\\"@size\\\",\\\"@onClose\\\"],[[30,0,[\\\"subscriber\\\",\\\"name\\\"]],[30,0,[\\\"subscriber\\\",\\\"email\\\"]],\\\"amc-email-preview\\\",\\\"lg\\\",[30,0,[\\\"onClose\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],[[4,[38,1],[[28,[37,2],[[30,0,[\\\"loadMailContent\\\"]]],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"top\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@class\\\",\\\"@state\\\",\\\"@size\\\"],[\\\"mt1 mb3\\\",[30,0,[\\\"subscriber\\\",\\\"stateBadge\\\"]],\\\"xs\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@state\\\"],[[30,0,[\\\"subscriber\\\",\\\"stateBadge\\\"]]]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"pr05 font-sm\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[[28,[37,6],[\\\"preview.upcomingEmails.subscribers.states.\\\",[30,0,[\\\"subscriber\\\",\\\"state\\\"]]],null]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@class\\\",\\\"@size\\\"],[\\\"ml1 mt1 mb3\\\",\\\"xs\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"watch\\\"],null]],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"pr05 font-sm\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[[30,0,[\\\"subscriber\\\",\\\"deliveryDate\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],null,[[\\\"@classNames\\\",\\\"@data-test-mail-preview-dialog\\\"],[\\\"flex-grow-1\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex flex-column flex-grow-1 justify-center items-center w-100 h-100 bt mt1 b--black-10\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"iframe\\\"],[14,\\\"title\\\",\\\"mail-preview\\\"],[14,1,\\\"mail-preview-iframe\\\"],[14,0,\\\"w-100 h-100 dn flex flex-column flex-grow-1\\\"],[14,\\\"frameBorder\\\",\\\"0\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"loadMailContent\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"dialog\\\",\\\"content\\\"],false,[\\\"ui-modal\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"ui-status-badge\\\",\\\"ui-status\\\",\\\"t\\\",\\\"concat\\\",\\\"svg-jar\\\",\\\"format-date\\\",\\\"if\\\",\\\"ui-loading\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-preview/email-preview.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Displays the email template of a subscriber\n   *\n   * @class AmcPreviewEmailPreview\n   */\n  let AmcPreviewEmailPreview = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const baseUrl = this.uiPaths.pathsByRouteName('instance.dashboard', this._organizationSlug).api().url;\n      const url = `${baseUrl}/preview/email-campaigns/${this.emailPreviewId}/subscribers/${this.subscriber.id}/html`;\n      const response = yield this.authenticatedFetch.fetch(url);\n      const html = yield response.text();\n      const iframe = document.getElementById('mail-preview-iframe');\n      iframe.onload = () => {\n        iframe.style.height = `${iframe.contentWindow.document.body.scrollHeight}px`;\n      };\n      const iframeDocument = iframe.contentDocument;\n      iframeDocument.open();\n      iframeDocument.write((0, _template.htmlSafe)(html));\n      iframeDocument.close();\n      iframe.classList.remove('dn');\n\n      // set height of iframe to content + 10% offset\n      // iframe.style.height = `${iframeDocument.body.scrollHeight * 1.1}px`;\n    } catch (e) {\n      this.uiDialog.showError();\n    }\n  }), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcPreviewEmailPreview extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiPaths\", _descriptor5, this);\n      /**\n       * the id of the email preview\n       *\n       * @property emailPreviewId\n       * @default null\n       */\n      _initializerDefineProperty(this, \"emailPreviewId\", _descriptor6, this);\n      /**\n       * the subscriber model\n       *\n       * @property subscriber\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"subscriber\", _descriptor7, this);\n      /**\n       * loads the email content and writes it into the iframe\n       *\n       * @function loadMailContent\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"loadMailContent\", _descriptor8, this);\n      _initializerDefineProperty(this, \"onClose\", _descriptor9, this);\n    }\n    /**\n     * the current organization slug\n     *\n     * @property _organizationSlug\n     * @type {String}\n     * @default null\n     */\n    get _organizationSlug() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiPaths\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"emailPreviewId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"subscriber\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"loadMailContent\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcPreviewEmailPreview);\n});","define(\"additive-mc/components/amc-preview/upcoming-emails-subscriber\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"@ember/object/computed\", \"ember-concurrency\"], function (_exports, _component, _object, _service, _computed, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @module amc-preview\n   */\n  var _default = _exports.default = _component.default.extend({\n    authenticatedFetch: (0, _service.inject)(),\n    currentUser: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    uiPaths: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    /**\n     * the current organization slug\n     *\n     * @property organizationSlug\n     * @type {String}\n     * @default null\n     */\n    organizationSlug: (0, _computed.alias)('currentUser.currentOrganization.id'),\n    /**\n     * whether the table is empty or not\n     *\n     * @computed isEmpty\n     * @type {Boolean}\n     */\n    isEmpty: (0, _computed.equal)('_subscribers.length', 0),\n    _adapterOptions: (0, _object.computed)('model.id', {\n      get() {\n        return {\n          adapterOptions: {\n            previewId: this.model.id\n          }\n        };\n      }\n    }),\n    /**\n     * the model of the current email preview\n     *\n     * @property model\n     * @type {Object}\n     * @default null\n     */\n    model: null,\n    /**\n     * the filter object\n     *\n     * @property filter\n     * @type {Object}\n     * @default null\n     */\n    filter: null,\n    /**\n     * whether the component is read only\n     *\n     * @property isReadOnly\n     * @type {Boolean}\n     * @default null\n     */\n    isReadOnly: null,\n    /**\n     * the list of subscribers\n     *\n     * @property _subscribers\n     * @type {Array}\n     * @default null\n     * @private\n     */\n    _subscribers: null,\n    /**\n     * the subscriber which html preview is shown in the dialog\n     *\n     * @property _previewSubscriber\n     * @type {Object}\n     * @default null\n     * @private\n     */\n    _previewSubscriber: null,\n    /**\n     * whether the dialog with the email content is show or not\n     *\n     * @property _showEmailPreview\n     * @type {Boolean}\n     * @default false\n     * @private\n     */\n    _showEmailPreview: false,\n    init() {\n      this._super(...arguments);\n      (0, _object.set)(this, '_subscribers', []);\n      (0, _object.set)(this, 'tableHeaderOptions', [{\n        i18n: 'preview.upcomingEmails.subscribers.columns.name',\n        minWidth: '80px'\n      }, {\n        i18n: 'preview.upcomingEmails.subscribers.columns.email',\n        minWidth: '80px'\n      }, {\n        i18n: 'preview.upcomingEmails.subscribers.columns.deliveryDate',\n        minWidth: '80px'\n      }, {\n        i18n: 'preview.upcomingEmails.subscribers.columns.state',\n        minWidth: '80px'\n      }]);\n    },\n    /**\n     * Calls the API endpoint to block, unblock or cancel the subscriber\n     * <slug>/preview/email-campaigns/<emailCampaignId>/subscribers/<subscriberId>/<action>\n     *\n     * @param {Object} subscriber\n     * @param {String} action\n     * @throws {Error}\n     */\n    _updateSubscriber: (0, _emberConcurrency.task)(function* (subscriber, action) {\n      try {\n        const {\n          model\n        } = this;\n        const baseUrl = this.uiPaths.pathsByRouteName('instance.dashboard', this.organizationSlug).api().url;\n        let url = `${baseUrl}/preview/email-campaigns/${model.id}/subscribers/${subscriber.id}/${action}`;\n        const [response] = yield (0, _emberConcurrency.all)([this.authenticatedFetch.fetch(url, {\n          method: 'put'\n        }), (0, _emberConcurrency.timeout)(400)]);\n        if (!response || !response.ok) {\n          throw new Error('[DASHBOARD] Error in response');\n        }\n        const payload = yield response.json();\n        this.store.pushPayload('subscriber', payload);\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      } catch (error) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }),\n    actions: {\n      cancelSubscriber(subscriber) {\n        if (subscriber !== null && subscriber !== void 0 && subscriber.notCancelable) {\n          return;\n        }\n        this._updateSubscriber.perform(subscriber, 'cancel');\n      },\n      openPreview(subscriber) {\n        (0, _object.setProperties)(this, {\n          _previewSubscriber: subscriber,\n          _showEmailPreview: true\n        });\n      }\n    }\n  });\n});","define(\"additive-mc/components/amc-preview/upcoming-emails\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"@ember/object/computed\", \"ember-concurrency\"], function (_exports, _component, _object, _service, _computed, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @module amc-preview\n   */\n  var _default = _exports.default = _component.default.extend({\n    authenticatedFetch: (0, _service.inject)(),\n    currentUser: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    uiPaths: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    /**\n     * the current organization slug\n     *\n     * @property organizationSlug\n     * @type {String}\n     * @default null\n     */\n    organizationSlug: (0, _computed.alias)('currentUser.currentOrganization.id'),\n    /**\n     * the organization slug of which the chart-data was fetched,\n     * used to detect whether the slug has changes\n     *\n     * @property _previousOrganization\n     * @type {String}\n     * @default null\n     * @private\n     */\n    _previousOrganization: null,\n    /**\n     * whether the table is empty\n     *\n     * @computed isEmpty\n     * @type {Boolean}\n     */\n    isEmpty: (0, _computed.equal)('previews.length', 0),\n    init() {\n      this._super(...arguments);\n      (0, _object.set)(this, 'tableHeaderOptions', [{\n        i18n: 'preview.upcomingEmails.columns.name',\n        minWidth: '80px'\n      }, {\n        i18n: 'preview.upcomingEmails.columns.campaignType',\n        minWidth: '80px'\n      }, {\n        i18n: 'preview.upcomingEmails.columns.count',\n        minWidth: '80px'\n      }]);\n      (0, _object.set)(this, 'previews', []);\n    },\n    /**\n     * <slug>/preview/email-campaigns\n     *\n     * @throws {Error}\n     */\n    previewData: (0, _emberConcurrency.task)(function* () {\n      try {\n        const [emailPreviews] = yield (0, _emberConcurrency.all)([this.store.findAll('email-preview'), (0, _emberConcurrency.timeout)(400)]);\n        (0, _object.set)(this, 'previews', emailPreviews);\n      } catch (error) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }).on('init'),\n    actions: {\n      transitionToDetail(id) {\n        this.router.transitionTo('instance.preview.email', id);\n      }\n    }\n  });\n});","define(\"additive-mc/components/amc-reports/ad-metrics\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"@ember/service\", \"ember-concurrency\", \"ember-arg-types\", \"@glimmer/tracking\", \"prop-types\", \"@additive-apps/ui/utils/query-param-util\", \"@ember/object\"], function (_exports, _component, _templateFactory, _environment, _component2, _service, _emberConcurrency, _emberArgTypes, _tracking, _propTypes, _queryParamUtil, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class=\"pv2 pv3-sm pv4-md {{@class}}\"\n    {{did-update (perform this.fetchCampaigns) this.organizationSlug this.dateRange}}\n  >\n    {{#if this.title}}\n      <UiIntro @class=\"pt2 pt3-sm pt4-md\" @title={{this.title}} @size=\"xl\" @isMultiline={{true}} />\n    {{/if}}\n  \n    {{#if this.fetchCampaigns.isRunning}}\n      <UiSkeleton\n        @class=\"mt2\"\n        @items={{4}}\n        @itemsPerRow={{4}}\n        @itemsPerRowSmartphone={{1}}\n        @cardHeight={{130}}\n        @gap={{4}}\n      />\n      <UiSkeleton @class=\"mt4\" @itemsPerRow={{1}} @items={{3}} @cardHeight={{52}} @gap={{4}} />\n    {{else}}\n      <div class=\"flex items-end flex-wrap flex-nowrap-md w-100 bg-white pb4 pt2\">\n        <div class=\"pb3 pb0-md w-100 w-50-sm w-25-md bg-white\">\n          <UiMetricItem\n            @title={{format-number (or this.metrics.ads.current.value 0)}}\n            @description={{t \"reports.adMetrics.ads\"}}\n            @compare={{this.metrics.ads.change}}\n            @size=\"lg\"\n            @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n            @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n          />\n        </div>\n        <div class=\"pb3 pb0-md w-100 w-50-sm w-25-md bg-white\">\n          <UiMetricItem\n            @title={{format-number (or this.metrics.impressions.current.value 0)}}\n            @description={{t \"reports.adMetrics.impressions\"}}\n            @compare={{this.metrics.impressions.change}}\n            @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n            @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n          />\n        </div>\n        <div class=\"pb3 pb0-md w-100 w-50-sm w-25-md bg-white\">\n          <UiMetricItem\n            @title={{format-number (or this.metrics.clicks.current.value 0)}}\n            @description={{t \"reports.adMetrics.clicks\"}}\n            @compare={{this.metrics.clicks.change}}\n            @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n            @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n          />\n        </div>\n        <div class=\"w-100 w-50-sm w-25-md bg-white\">\n          <UiMetricItem\n            @hasInvertedColor={{true}}\n            @title={{format-number\n              (or\n                (cents-to-amount\n                  (if\n                    (or (eq this.type \"lead-ad-metrics\") (eq this.type \"tik-tok-lead-ad-metrics\"))\n                    this.metrics.leadPrice.current.value\n                    this.metrics.conversionPrice.current.value\n                  )\n                )\n                0\n              )\n              minimumFractionDigits=\"2\"\n              maximumFractionDigits=\"2\"\n            }}\n            @description={{t\n              (concat\n                \"reports.adMetrics.\"\n                (if\n                  (or (eq this.type \"lead-ad-metrics\") (eq this.type \"tik-tok-lead-ad-metrics\"))\n                  \"leadPrice\"\n                  \"conversionPrice\"\n                )\n              )\n            }}\n            @compare={{if\n              (or (eq this.type \"lead-ad-metrics\") (eq this.type \"tik-tok-lead-ad-metrics\"))\n              this.metrics.leadPrice.change\n              this.metrics.conversionPrice.change\n            }}\n            @appendix={{currency-symbol this.uiAppSettings.currency}}\n            @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n            @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n          />\n        </div>\n      </div>\n  \n      <div class=\"pb2 pb3-sm pb4-md\">\n        {{#if this.isTableEmpty}}\n          <div class=\"flex flex-column items-center justify-center text-center\">\n            {{svg-jar \"empty-content-grey\"}}\n            <div class=\"font-sm secondary\">\n              {{t \"reports.adMetrics.empty\"}}\n            </div>\n          </div>\n        {{else}}\n          <UiTable\n            @classNames=\"no-shadow pt4\"\n            @columns={{this.tableHeaderOptions}}\n            @rows={{this.campaigns}}\n            as |ta columns|\n          >\n            <tr class=\"bb b--black-10\">\n              {{#each columns as |column index|}}\n                <th class=\"{{if index 'ph2 text-right' 'pr2 text-left'}} font-xs secondary\">\n                  {{t column.i18n}}\n                </th>\n              {{/each}}\n            </tr>\n  \n            <ta.body as |body row|>\n              <body.row @hasActions={{false}}>\n                <td class=\"pr2 pv2 font-sm\">\n                  {{get row \"campaign\"}}\n                </td>\n                <td class=\"pa2 text-right\">\n                  {{ui-format-currency\n                    row.spend.value\n                    row.spend.currency\n                    this.currentUser.user.language\n                    2\n                    2\n                  }}\n                </td>\n  \n                <td class=\"pa2 text-right\">\n                  {{format-number (or row.ads 0)}}\n                </td>\n                <td class=\"pa2 text-right\">\n                  {{format-number (or row.impressions 0)}}\n                </td>\n                <td class=\"pa2 text-right\">\n                  {{format-number (or row.clicks 0)}}\n                </td>\n                {{#if\n                  (or (equal this.type \"lead-ad-metrics\") (equal this.type \"tik-tok-lead-ad-metrics\"))\n                }}\n                  <td class=\"pa2 text-right\">\n                    {{format-number (or row.leads 0)}}\n                  </td>\n                {{/if}}\n              </body.row>\n            </ta.body>\n          </UiTable>\n        {{/if}}\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"l+SroB1N\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"pv2 pv3-sm pv4-md \\\",[30,1]]]],[4,[38,0],[[28,[37,1],[[30,0,[\\\"fetchCampaigns\\\"]]],null],[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"dateRange\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"title\\\"]],[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[\\\"pt2 pt3-sm pt4-md\\\",[30,0,[\\\"title\\\"]],\\\"xl\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fetchCampaigns\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,4],null,[[\\\"@class\\\",\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[\\\"mt2\\\",4,4,1,130,4]],null],[1,\\\"\\\\n    \\\"],[8,[39,4],null,[[\\\"@class\\\",\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[\\\"mt4\\\",1,3,52,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex items-end flex-wrap flex-nowrap-md w-100 bg-white pb4 pt2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pb3 pb0-md w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@size\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,6],[[28,[37,7],[[30,0,[\\\"metrics\\\",\\\"ads\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,8],[\\\"reports.adMetrics.ads\\\"],null],[30,0,[\\\"metrics\\\",\\\"ads\\\",\\\"change\\\"]],\\\"lg\\\",[28,[37,8],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,8],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pb3 pb0-md w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,6],[[28,[37,7],[[30,0,[\\\"metrics\\\",\\\"impressions\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,8],[\\\"reports.adMetrics.impressions\\\"],null],[30,0,[\\\"metrics\\\",\\\"impressions\\\",\\\"change\\\"]],[28,[37,8],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,8],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pb3 pb0-md w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,6],[[28,[37,7],[[30,0,[\\\"metrics\\\",\\\"clicks\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,8],[\\\"reports.adMetrics.clicks\\\"],null],[30,0,[\\\"metrics\\\",\\\"clicks\\\",\\\"change\\\"]],[28,[37,8],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,8],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@hasInvertedColor\\\",\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@appendix\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[true,[28,[37,6],[[28,[37,7],[[28,[37,9],[[52,[28,[37,7],[[28,[37,10],[[30,0,[\\\"type\\\"]],\\\"lead-ad-metrics\\\"],null],[28,[37,10],[[30,0,[\\\"type\\\"]],\\\"tik-tok-lead-ad-metrics\\\"],null]],null],[30,0,[\\\"metrics\\\",\\\"leadPrice\\\",\\\"current\\\",\\\"value\\\"]],[30,0,[\\\"metrics\\\",\\\"conversionPrice\\\",\\\"current\\\",\\\"value\\\"]]]],null],0],null]],[[\\\"minimumFractionDigits\\\",\\\"maximumFractionDigits\\\"],[\\\"2\\\",\\\"2\\\"]]],[28,[37,8],[[28,[37,11],[\\\"reports.adMetrics.\\\",[52,[28,[37,7],[[28,[37,10],[[30,0,[\\\"type\\\"]],\\\"lead-ad-metrics\\\"],null],[28,[37,10],[[30,0,[\\\"type\\\"]],\\\"tik-tok-lead-ad-metrics\\\"],null]],null],\\\"leadPrice\\\",\\\"conversionPrice\\\"]],null]],null],[52,[28,[37,7],[[28,[37,10],[[30,0,[\\\"type\\\"]],\\\"lead-ad-metrics\\\"],null],[28,[37,10],[[30,0,[\\\"type\\\"]],\\\"tik-tok-lead-ad-metrics\\\"],null]],null],[30,0,[\\\"metrics\\\",\\\"leadPrice\\\",\\\"change\\\"]],[30,0,[\\\"metrics\\\",\\\"conversionPrice\\\",\\\"change\\\"]]],[28,[37,12],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],[28,[37,8],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,8],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"pb2 pb3-sm pb4-md\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isTableEmpty\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,13],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"reports.adMetrics.empty\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@classNames\\\",\\\"@columns\\\",\\\"@rows\\\"],[\\\"no-shadow pt4\\\",[30,0,[\\\"tableHeaderOptions\\\"]],[30,0,[\\\"campaigns\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"bb b--black-10\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[30,3]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[15,0,[29,[[52,[30,5],\\\"ph2 text-right\\\",\\\"pr2 text-left\\\"],\\\" font-xs secondary\\\"]]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,8],[[30,4,[\\\"i18n\\\"]]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4,5]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[30,2,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,6,[\\\"row\\\"]],null,[[\\\"@hasActions\\\"],[false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"pr2 pv2 font-sm\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,17],[[30,7],\\\"campaign\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,18],[[30,7,[\\\"spend\\\",\\\"value\\\"]],[30,7,[\\\"spend\\\",\\\"currency\\\"]],[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],2,2],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[[28,[37,7],[[30,7,[\\\"ads\\\"]],0],null]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[[28,[37,7],[[30,7,[\\\"impressions\\\"]],0],null]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[[28,[37,7],[[30,7,[\\\"clicks\\\"]],0],null]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[28,[37,19],[[30,0,[\\\"type\\\"]],\\\"lead-ad-metrics\\\"],null],[28,[37,19],[[30,0,[\\\"type\\\"]],\\\"tik-tok-lead-ad-metrics\\\"],null]],null],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[[28,[37,7],[[30,7,[\\\"leads\\\"]],0],null]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[6,7]]]]],[1,\\\"\\\\n        \\\"]],[2,3]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"@class\\\",\\\"ta\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\",\\\"body\\\",\\\"row\\\"],false,[\\\"did-update\\\",\\\"perform\\\",\\\"if\\\",\\\"ui-intro\\\",\\\"ui-skeleton\\\",\\\"ui-metric-item\\\",\\\"format-number\\\",\\\"or\\\",\\\"t\\\",\\\"cents-to-amount\\\",\\\"eq\\\",\\\"concat\\\",\\\"currency-symbol\\\",\\\"svg-jar\\\",\\\"ui-table\\\",\\\"each\\\",\\\"-track-array\\\",\\\"get\\\",\\\"ui-format-currency\\\",\\\"equal\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-reports/ad-metrics.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcReportsAdCampaignMetricComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _emberArgTypes.arg)(_propTypes.object), _dec5 = (0, _emberArgTypes.arg)(_propTypes.string), _dec6 = (0, _object.computed)('campaigns.length', 'fetchCampaigns.isRunning'), _dec7 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    const baseUrl = _environment.default.APP.apiBaseHost;\n    const {\n      dateRange,\n      type\n    } = this;\n    const qps = dateRange ? (0, _queryParamUtil.getQueryParams)(dateRange) : '';\n    const url = `${baseUrl}/${this.organizationSlug}/reports/ad/${type}${qps}`;\n    try {\n      tasks.push(this.authenticatedFetch.fetch(url, {\n        signal: this.abortController && this.abortController.signal\n      }));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const {\n        metrics,\n        campaigns\n      } = yield response.json();\n      this.metrics = metrics;\n      this.campaigns = campaigns.models;\n    } catch (error) {\n      if (error && error.name === 'AbortError') {\n        return;\n      }\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class AmcReportsAdCampaignMetricComponent extends _component2.default {\n    /**\n     * Whether the table is empty\n     *\n     * @computed isCampaignsEmpty\n     */\n    get isTableEmpty() {\n      var _this$campaigns;\n      return !((_this$campaigns = this.campaigns) !== null && _this$campaigns !== void 0 && _this$campaigns.length) && !this.fetchCampaigns.isRunning;\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor4, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor5, this);\n      /**\n       * the current organization slug\n       *\n       * @property organizationSlug\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor6, this);\n      /**\n       * the title\n       *\n       * @property title\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"title\", _descriptor7, this);\n      /**\n       * Abort Controller for the current fetch\n       *\n       * @property abortController\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"abortController\", _descriptor8, this);\n      /**\n       * the selected date range\n       *\n       * @property dateRange\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"dateRange\", _descriptor9, this);\n      /**\n       * the campaign type\n       *\n       * @property type\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"type\", _descriptor10, this);\n      /**\n       * the fetched campaigns\n       *\n       * @property campaignData\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"campaigns\", _descriptor11, this);\n      /**\n       * the fetched metrics\n       *\n       * @property campaignData\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"metrics\", _descriptor12, this);\n      /**\n       * fetches the campaigns\n       *\n       * @type {Task}\n       * @function fetchCampaigns\n       */\n      _initializerDefineProperty(this, \"fetchCampaigns\", _descriptor13, this);\n      this.tableHeaderOptions = [{\n        i18n: 'reports.adMetrics.columns.campaign',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.adMetrics.columns.adSpend',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.adMetrics.columns.ads',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.adMetrics.columns.impressions',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.adMetrics.columns.clicks',\n        minWidth: '80px'\n      }, {\n        i18n: this.type === 'lead-ad-metrics' || this.type === 'tik-tok-lead-ad-metrics' ? 'reports.adMetrics.columns.leads' : 'reports.adMetrics.columns.conversions',\n        minWidth: '80px'\n      }];\n      this.fetchCampaigns.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"abortController\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"dateRange\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"type\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"campaigns\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"metrics\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isTableEmpty\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"isTableEmpty\"), _class.prototype), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"fetchCampaigns\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcReportsAdCampaignMetricComponent);\n});","define(\"additive-mc/components/amc-reports/conversions\", [\"exports\", \"additive-mc/config/environment\", \"@additive-apps/ui/components/ui-property-watcher\", \"@ember/object\", \"ember-concurrency\", \"@ember/service\", \"@additive-apps/ui/utils/query-param-util\"], function (_exports, _environment, _uiPropertyWatcher, _object, _emberConcurrency, _service, _queryParamUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @module amc-reports\n   */\n  var _default = _exports.default = _uiPropertyWatcher.default.extend({\n    authenticatedFetch: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    uiAppSettings: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    /**\n     * AbortController for the current fetch\n     *\n     * @property abortController\n     * @type {AbortController}\n     * @default null\n     */\n    abortController: null,\n    /**\n     * the filters object\n     *\n     * @property filters\n     * @type {Object}\n     */\n    filters: null,\n    /**\n     * the current organization slug\n     *\n     * @property organizationSlug\n     * @type {String}\n     * @default null\n     */\n    organizationSlug: null,\n    /**\n     * the type used for the path\n     *\n     * @property type\n     * @type {String}\n     * @default null\n     */\n    type: null,\n    /**\n     * The description of the ui-intro\n     *\n     * @computed _introDescription\n     * @type {String}\n     * @private\n     */\n    _introDescription: (0, _object.computed)('type', {\n      get() {\n        const type = this.type;\n        if (!type) {\n          return this.intl.t('reports.conversions.description');\n        }\n        return this.intl.t(`reports.${type}.conversions.description`);\n      }\n    }),\n    /**\n     * whether it should be displayed Leads or Leads / Incentive as description\n     * for the ui-metric\n     *\n     * @computed _leads\n     * @type {String}\n     * @private\n     */\n    _leads: (0, _object.computed)('uiAppSettings.planName', {\n      get() {\n        return this.uiAppSettings.planName === 'enterprise' ? 'leadsIncentive' : 'leads';\n      }\n    }),\n    init() {\n      this._super(...arguments);\n      (0, _object.setProperties)(this, {\n        // property watcher properties\n        _watchedProperties: ['filters', 'organizationSlug'],\n        _onPropertyChange: () => this.conversionsData.perform()\n      });\n    },\n    /**\n     * fetches the datasets for the reservations\n     *\n     * @type {Task}\n     * @function conversionsData\n     */\n    conversionsData: (0, _emberConcurrency.task)(function* () {\n      const tasks = [];\n      const baseUrl = _environment.default.APP.apiBaseHostV2;\n      const type = this.type;\n      const typePath = type ? `${type}/` : '';\n      const {\n        filters\n      } = this;\n      const qps = filters ? (0, _queryParamUtil.getQueryParams)(filters) : '';\n      const chartsUrl = `${baseUrl}/${this.organizationSlug}/reports/${typePath}conversions${qps}`;\n      try {\n        tasks.push(this.authenticatedFetch.fetch(chartsUrl, {\n          signal: this.abortController && this.abortController.signal\n        }));\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        const [response] = yield (0, _emberConcurrency.all)(tasks);\n        const {\n          conversions,\n          enquiries,\n          newsletterSubscriptions,\n          leadsIncentives,\n          vouchers,\n          bookings,\n          other\n        } = yield response.json();\n        (0, _object.setProperties)(this, {\n          conversions,\n          enquiries,\n          newsletterSubscriptions,\n          leadsIncentives,\n          vouchers,\n          bookings,\n          other\n        });\n      } catch (error) {\n        /* When AbortControllers signal gets aborted, this is intended, so do not show a toast */\n        if (error && error.name === 'AbortError') {\n          return;\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }).restartable().on('init')\n  });\n});","define(\"additive-mc/components/amc-reports/email-metrics\", [\"exports\", \"additive-mc/config/environment\", \"@additive-apps/ui/components/ui-property-watcher\", \"@ember/object\", \"ember-concurrency\", \"@ember/service\", \"@additive-apps/ui/utils/query-param-util\"], function (_exports, _environment, _uiPropertyWatcher, _object, _emberConcurrency, _service, _queryParamUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const DEFAULT_TYPE = 'email';\n\n  /**\n   * @class amc-reports/email-metrics\n   * @module amc-reports\n   */\n  var _default = _exports.default = _uiPropertyWatcher.default.extend({\n    authenticatedFetch: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    uiAppSettings: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    /**\n     * AbortController for the current fetch\n     *\n     * @property abortController\n     * @type {AbortController}\n     * @default null\n     */\n    abortController: null,\n    /**\n     * the date range object\n     *\n     * @property _dateRange\n     * @type {Object}\n     */\n    dateRange: null,\n    /**\n     * the current organization slug\n     *\n     * @property organizationSlug\n     * @type {String}\n     * @default null\n     */\n    organizationSlug: null,\n    /**\n     * the campaign type\n     *\n     * @property type\n     * @type {String}\n     * @default email\n     */\n    type: DEFAULT_TYPE,\n    /**\n     * Whether the campaigns table is empty\n     *\n     * @computed activeTableDataIsEmpty\n     * @type {Boolean}\n     */\n    get isTableEmpty() {\n      var _this$campaigns;\n      return !((_this$campaigns = this.campaigns) !== null && _this$campaigns !== void 0 && _this$campaigns.length) && !this.emailMetrics.isRunning;\n    },\n    init() {\n      this._super(...arguments);\n      (0, _object.setProperties)(this, {\n        _tableHeaderOptions: [{\n          i18n: 'reports.emailMetrics.columns.campaign',\n          minWidth: '80px'\n        }, {\n          i18n: 'reports.emailMetrics.columns.emails',\n          minWidth: '80px'\n        }, {\n          i18n: 'reports.emailMetrics.columns.uniqueOpenings',\n          minWidth: '80px'\n        }, {\n          i18n: 'reports.emailMetrics.columns.uniqueClicks',\n          minWidth: '80px'\n        }, {\n          i18n: 'reports.emailMetrics.columns.reservations',\n          minWidth: '80px'\n        }, {\n          i18n: 'reports.emailMetrics.columns.conversions',\n          minWidth: '80px'\n        }, {\n          i18n: 'reports.emailMetrics.columns.vouchers',\n          minWidth: '80px'\n        }],\n        // property watcher properties\n        _watchedProperties: ['dateRange', 'organizationSlug'],\n        _onPropertyChange: () => this.emailMetrics.perform()\n      });\n    },\n    /**\n     * fetches sent emails for the emails report\n     *\n     * @type {Task}\n     * @function emailMetrics\n     */\n    emailMetrics: (0, _emberConcurrency.task)(function* () {\n      const tasks = [];\n      const type = this.type || 'email';\n      try {\n        const qps = this.dateRange ? (0, _queryParamUtil.getQueryParams)(this.dateRange) : '';\n        const url = `${_environment.default.APP.apiBaseHostV2}/${this.organizationSlug}/reports/${type}/metrics${qps}`;\n        tasks.push(this.authenticatedFetch.fetch(url, {\n          signal: this.abortController && this.abortController.signal\n        }));\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        const [response] = yield (0, _emberConcurrency.all)(tasks);\n        const {\n          metrics,\n          campaigns\n        } = yield response.json();\n        (0, _object.setProperties)(this, {\n          metrics,\n          campaigns: campaigns.models\n        });\n      } catch (error) {\n        /* When AbortControllers signal gets aborted, this is intended, so do not show a toast */\n        if (error && error.name === 'AbortError') {\n          return;\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }).restartable().on('init')\n  });\n});","define(\"additive-mc/components/amc-reports/key-indicators\", [\"exports\", \"additive-mc/config/environment\", \"@additive-apps/ui/components/ui-property-watcher\", \"@ember/object\", \"ember-concurrency\", \"@ember/service\", \"@additive-apps/ui/utils/query-param-util\"], function (_exports, _environment, _uiPropertyWatcher, _object, _emberConcurrency, _service, _queryParamUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @class amc-reports/key-indicators\n   * @module amc-reports\n   */\n  var _default = _exports.default = _uiPropertyWatcher.default.extend({\n    authenticatedFetch: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    uiAppSettings: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    /**\n     * AbortController for the current fetch\n     *\n     * @property abortController\n     * @type {AbortController}\n     * @default null\n     */\n    abortController: null,\n    /**\n     * the filters\n     *\n     * @property filters\n     * @type {Object}\n     */\n    filters: null,\n    /**\n     * the current organization slug\n     *\n     * @property organizationSlug\n     * @type {String}\n     * @default null\n     */\n    organizationSlug: null,\n    /**\n     * the campaign type\n     *\n     * @property type\n     * @type {String}\n     * @default null\n     */\n    type: null,\n    init() {\n      this._super(...arguments);\n      (0, _object.setProperties)(this, {\n        // property watcher properties\n        _watchedProperties: ['filters', 'organizationSlug'],\n        _onPropertyChange: () => this.keyIndicators.perform()\n      });\n    },\n    /**\n     * fetches the key indicators\n     *\n     * @type {Task}\n     * @function keyIndicators\n     */\n    keyIndicators: (0, _emberConcurrency.task)(function* () {\n      const tasks = [];\n      const baseUrl = _environment.default.APP.apiBaseHostV2;\n      const type = this.type;\n      const typePath = type ? `${type}/` : '';\n      const {\n        filters\n      } = this;\n      const qps = filters ? (0, _queryParamUtil.getQueryParams)(filters) : '';\n      const url = `${baseUrl}/${this.organizationSlug}/reports/${typePath}key-indicators${qps}`;\n      try {\n        tasks.push(this.authenticatedFetch.fetch(url, {\n          signal: this.abortController && this.abortController.signal\n        }));\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        const [response] = yield (0, _emberConcurrency.all)(tasks);\n        const data = yield response.json();\n        (0, _object.setProperties)(this, {\n          data\n        });\n      } catch (error) {\n        /* When AbortControllers signal gets aborted, this is intended, so do not show a toast */\n        if (error && error.name === 'AbortError') {\n          return;\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }).on('init')\n  });\n});","define(\"additive-mc/components/amc-reports/lead-performance-campaigns-insights\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\", \"ember-concurrency\", \"@ember/service\", \"@additive-apps/ui/utils/query-param-util\", \"@additive-apps/ui/utils/table-util\", \"lodash.clonedeep\"], function (_exports, _component, _templateFactory, _environment, _component2, _emberArgTypes, _propTypes, _tracking, _emberConcurrency, _service, _queryParamUtil, _tableUtil, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-update (perform this._fetchData) this.filters}}></div>\n  \n  {{#if this._fetchData.isRunning}}\n    <UiSkeleton\n      @itemsPerRow={{1}}\n      @items={{6}}\n      @itemsSmartphone={{5}}\n      @cardHeight={{52}}\n      @gap={{4}}\n    />\n  {{else if this._showRetry}}\n    <div class=\"flex items-center justify-center pa4 mv4 w-100\">\n      <UiButton @label={{t \"global.actions.retry\"}} @onClick={{perform this._fetchData}} />\n    </div>\n  {{else}}\n    <UiCollapsibleTable\n      @columns={{this._tableHeader}}\n      @formats={{this._tableFormats}}\n      @hiddenColumns={{this.hiddenColumns}}\n      @rows={{this._tableData}}\n      @classNames=\"pb4\" as |ta|\n    >\n      <ta.head\n        @isStickyOnScroll={{true}}\n        @scrollContainerSelector={{this.scrollContainerSelector}}\n        @scrollOffset={{56}}\n      />\n  \n      <ta.body as |row|>\n        <row.valueColumn @classNames=\"text-right\" as |vc|>\n          {{#if vc.value.value}}\n            {{#if\n              (or\n                (equal vc.columnIndex this._reservationCellIndex)\n                (equal vc.columnIndex this._leadsCellIndex)\n              )\n            }}\n              <div\n                class=\"flex items-center justify-end cpointer\"\n                role=\"button\"\n                {{on\n                  \"click\"\n                  (fn\n                    this.onOpenDetailDialog\n                    (if (equal vc.columnIndex this._reservationCellIndex) \"reservations\" \"leads\")\n                    (get vc.row.rowData this._filterRowIndex)\n                  )\n                }}\n              >\n                {{vc.value.value}}\n                {{svg-jar \"modal-popup\" class=\"blue ml05\"}}\n              </div>\n            {{else}}\n              {{vc.value.value}}\n            {{/if}}\n            {{#if vc.value.percentage}}\n              <span class=\"secondary pl1\">\n                {{vc.value.percentage}}\n              </span>\n            {{/if}}\n          {{else}}\n            {{#if\n              (or\n                (equal vc.columnIndex this._reservationCellIndex)\n                (equal vc.columnIndex this._leadsCellIndex)\n              )\n            }}\n              <div\n                class=\"flex items-center justify-end cpointer\"\n                role=\"button\"\n                {{on\n                  \"click\"\n                  (fn\n                    this.onOpenDetailDialog\n                    (if (equal vc.columnIndex this._reservationCellIndex) \"reservations\" \"leads\")\n                    (get vc.row.rowData this._filterRowIndex)\n                  )\n                }}\n              >\n                {{vc.value}}\n                {{svg-jar \"modal-popup\" class=\"blue ml05\"}}\n              </div>\n            {{else}}\n              {{vc.value}}\n            {{/if}}\n          {{/if}}\n        </row.valueColumn>\n      </ta.body>\n    </UiCollapsibleTable>\n  {{/if}}\n  */\n  {\n    \"id\": \"JM1jPMWp\",\n    \"block\": \"[[[11,0],[4,[38,0],[[28,[37,1],[[30,0,[\\\"_fetchData\\\"]]],null],[30,0,[\\\"filters\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_fetchData\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,3],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,6,5,52,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"_showRetry\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"flex items-center justify-center pa4 mv4 w-100\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,5],[\\\"global.actions.retry\\\"],null],[28,[37,1],[[30,0,[\\\"_fetchData\\\"]]],null]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@columns\\\",\\\"@formats\\\",\\\"@hiddenColumns\\\",\\\"@rows\\\",\\\"@classNames\\\"],[[30,0,[\\\"_tableHeader\\\"]],[30,0,[\\\"_tableFormats\\\"]],[30,0,[\\\"hiddenColumns\\\"]],[30,0,[\\\"_tableData\\\"]],\\\"pb4\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"head\\\"]],null,[[\\\"@isStickyOnScroll\\\",\\\"@scrollContainerSelector\\\",\\\"@scrollOffset\\\"],[true,[30,0,[\\\"scrollContainerSelector\\\"]],56]],null],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,1,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"valueColumn\\\"]],null,[[\\\"@classNames\\\"],[\\\"text-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"value\\\",\\\"value\\\"]],[[[41,[28,[37,7],[[28,[37,8],[[30,3,[\\\"columnIndex\\\"]],[30,0,[\\\"_reservationCellIndex\\\"]]],null],[28,[37,8],[[30,3,[\\\"columnIndex\\\"]],[30,0,[\\\"_leadsCellIndex\\\"]]],null]],null],[[[1,\\\"            \\\"],[11,0],[24,0,\\\"flex items-center justify-end cpointer\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"onOpenDetailDialog\\\"]],[52,[28,[37,8],[[30,3,[\\\"columnIndex\\\"]],[30,0,[\\\"_reservationCellIndex\\\"]]],null],\\\"reservations\\\",\\\"leads\\\"],[28,[37,11],[[30,3,[\\\"row\\\",\\\"rowData\\\"]],[30,0,[\\\"_filterRowIndex\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[30,3,[\\\"value\\\",\\\"value\\\"]]],[1,\\\"\\\\n              \\\"],[1,[28,[35,12],[\\\"modal-popup\\\"],[[\\\"class\\\"],[\\\"blue ml05\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,3,[\\\"value\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[41,[30,3,[\\\"value\\\",\\\"percentage\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"secondary pl1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,3,[\\\"value\\\",\\\"percentage\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[28,[37,7],[[28,[37,8],[[30,3,[\\\"columnIndex\\\"]],[30,0,[\\\"_reservationCellIndex\\\"]]],null],[28,[37,8],[[30,3,[\\\"columnIndex\\\"]],[30,0,[\\\"_leadsCellIndex\\\"]]],null]],null],[[[1,\\\"            \\\"],[11,0],[24,0,\\\"flex items-center justify-end cpointer\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"onOpenDetailDialog\\\"]],[52,[28,[37,8],[[30,3,[\\\"columnIndex\\\"]],[30,0,[\\\"_reservationCellIndex\\\"]]],null],\\\"reservations\\\",\\\"leads\\\"],[28,[37,11],[[30,3,[\\\"row\\\",\\\"rowData\\\"]],[30,0,[\\\"_filterRowIndex\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[30,3,[\\\"value\\\"]]],[1,\\\"\\\\n              \\\"],[1,[28,[35,12],[\\\"modal-popup\\\"],[[\\\"class\\\"],[\\\"blue ml05\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,3,[\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"      \\\"]],[3]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"ta\\\",\\\"row\\\",\\\"vc\\\"],false,[\\\"did-update\\\",\\\"perform\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-button\\\",\\\"t\\\",\\\"ui-collapsible-table\\\",\\\"or\\\",\\\"equal\\\",\\\"on\\\",\\\"fn\\\",\\\"get\\\",\\\"svg-jar\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-reports/lead-performance-campaigns-insights.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcReportsLeadPerformanceCampaignsInsightsComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.string), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _dec6 = (0, _emberConcurrency.task)(function* () {\n    /* Reset var before re-fetching */\n    if (this._data) {\n      this._data = null;\n    }\n    this._showRetry = false;\n    const tasks = [];\n    const _filters = (0, _lodash.default)(this.filters);\n    const qps = _filters && (0, _queryParamUtil.getQueryParams)(_filters) || '';\n    const baseUrl = _environment.default.APP.apiBaseHost;\n    const dataUrl = `${baseUrl}/${this.organizationSlug}/reports/leads/campaigns-insights${qps}`;\n    try {\n      tasks.push(this.authenticatedFetch.fetch(dataUrl));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      if (!response.ok) {\n        throw new Error();\n      }\n      const data = yield response.json();\n      const jsonRootKeys = data && Object.keys(data);\n      if (!jsonRootKeys || jsonRootKeys.length !== 1) {\n        throw new Error();\n      }\n      this._data = data[jsonRootKeys[0]];\n    } catch (error) {\n      this._showRetry = true;\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class AmcReportsLeadPerformanceCampaignsInsightsComponent extends _component2.default {\n    /**\n     * the formats of the attribution table\n     *\n     * @computed _tableFormats\n     * @type {Object}\n     * @default null\n     */\n    get _tableFormats() {\n      var _this$uiAppSettings;\n      return Object.assign(_tableUtil.DEFAULT_FORMATS, {\n        currency: {\n          locale: 'de-DE',\n          options: {\n            currency: ((_this$uiAppSettings = this.uiAppSettings) === null || _this$uiAppSettings === void 0 ? void 0 : _this$uiAppSettings.currency) || 'EUR'\n          }\n        }\n      });\n    }\n\n    /**\n     * The row-data for the table\n     *\n     * @computed _tableData\n     * @type {Object[]}\n     * @private\n     */\n    get _tableData() {\n      const apiData = this._data;\n      if (!apiData || !apiData.labels || !apiData.data) {\n        return [];\n      }\n      return apiData.data;\n    }\n    get _reservationCellIndex() {\n      const element = this._data.labels.findIndex(el => el.key === 'reservations');\n      return element ? element - 1 : null;\n    }\n    get _leadsCellIndex() {\n      const element = this._data.labels.findIndex(el => el.key === 'leads');\n      return element ? element - 1 : null;\n    }\n    get _filterRowIndex() {\n      return this._data.labels.findIndex(el => el.key === 'filter');\n    }\n\n    /**\n     * The column-data for the table\n     *\n     * @computed _tableHeader\n     * @type {Object[]}\n     * @private\n     */\n    get _tableHeader() {\n      return (this._data && this._data.labels || []).map(label => {\n        if (typeof label === 'string') {\n          return {\n            name: label\n          };\n        }\n        return label;\n      });\n    }\n\n    /**\n     * on detail dialog open\n     *\n     * @argument onDetailOpen\n     * @type {Function}\n     */\n\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiPaths\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor6, this);\n      /**\n       * the base route\n       *\n       * @argument baseRoute\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"baseRoute\", _descriptor7, this);\n      /**\n       * the applied filters\n       *\n       * @property filters\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"filters\", _descriptor8, this);\n      /**\n       * the current organization slug\n       *\n       * @property organizationSlug\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor9, this);\n      /**\n       * query selector of the scrollable container around the table\n       *\n       * @property scrollContainerSelector\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"scrollContainerSelector\", _descriptor10, this);\n      /**\n       * Data from api\n       *\n       * @property _data\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"_data\", _descriptor11, this);\n      /**\n       * Whether it should show retry button\n       *\n       * @property _showRetry\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"_showRetry\", _descriptor12, this);\n      _initializerDefineProperty(this, \"hiddenColumns\", _descriptor13, this);\n      _initializerDefineProperty(this, \"onOpenDetailDialog\", _descriptor14, this);\n      /**\n       * fetches the datasets for the\n       *\n       * @type {Task}\n       * @function _fetchData\n       * @private\n       */\n      _initializerDefineProperty(this, \"_fetchData\", _descriptor15, this);\n      this._fetchData.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiPaths\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"baseRoute\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"scrollContainerSelector\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"_data\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"_showRetry\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"hiddenColumns\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return ['filter'];\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"onOpenDetailDialog\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"_fetchData\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcReportsLeadPerformanceCampaignsInsightsComponent);\n});","define(\"additive-mc/components/amc-reports/lead-performance-metrics\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"@ember/service\", \"@glimmer/tracking\", \"ember-concurrency\", \"@additive-apps/ui/utils/query-param-util\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _environment, _component2, _service, _tracking, _emberConcurrency, _queryParamUtil, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-update (perform this.fetchKeyIndicators) this.organizationSlug this.filters}}>\n    {{#if this.fetchKeyIndicators.isRunning}}\n      <div class=\"pb1\">\n        <UiSkeleton\n          @items={{6}}\n          @itemsPerRow={{4}}\n          @itemsPerRowSmartphone={{1}}\n          @cardHeight={{130}}\n          @gap={{4}}\n        />\n      </div>\n    {{else}}\n      <div class=\"pb1 bb b--black-10\">\n        <div class=\"flex items-start flex-wrap w-100 bg-white pb2 pb3-sm pb4-md\">\n          <div class=\"pb3 w-100 w-50-sm w-25-md bg-white\">\n            <UiMetricItem\n              @title={{format-number this.keyIndicators.totalValueAdded.current.value}}\n              @description={{t \"reports.leadPerformance.keyIndicators.totalValueAdded\"}}\n              @compare={{this.keyIndicators.totalValueAdded.change}}\n              @appendix={{currency-symbol this.uiAppSettings.currency}}\n              @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n              @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n              @size=\"lg\"\n            />\n          </div>\n  \n          <div class=\"pb3 w-100 w-50-sm w-25-md bg-white\">\n            <UiMetricItem\n              @title={{format-number this.keyIndicators.revenue.current.value}}\n              @description={{t \"reports.leadPerformance.keyIndicators.revenue\"}}\n              @compare={{this.keyIndicators.revenue.change}}\n              @appendix={{currency-symbol this.uiAppSettings.currency}}\n              @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n              @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n              @size=\"lg\"\n            />\n          </div>\n  \n          <div class=\"pb3 w-100 w-50-sm w-25-md bg-white\">\n            <UiMetricItem\n              @title={{format-number this.keyIndicators.valueAdded.current.value}}\n              @description={{t \"reports.leadPerformance.keyIndicators.valueAdded\"}}\n              @compare={{this.keyIndicators.valueAdded.change}}\n              @appendix={{currency-symbol this.uiAppSettings.currency}}\n              @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n              @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n              @size=\"lg\"\n            />\n          </div>\n  \n          <div class=\"pb3 w-100 w-50-sm w-25-md bg-white flex flex-column\">\n            <UiMetricItem\n              @title={{format-number this.keyIndicators.totalLeads.current.value}}\n              @description={{t \"reports.leadPerformance.keyIndicators.totalLeads\"}}\n              @compare={{this.keyIndicators.totalLeads.change}}\n              @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n              @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n              @size=\"lg\"\n            />\n            <UiIconButton\n              @icon=\"lead\"\n              @label={{t \"reports.leads.showLeads\"}}\n              @onClick={{fn this.onOpenDetailDialog \"leads\"}}\n              @class=\"mt2\"\n            />\n          </div>\n  \n          <div class=\"pb3 w-100 w-50-sm w-25-md bg-white\">\n            <UiMetricItem\n              @title={{format-number this.keyIndicators.requests.current.value}}\n              @description={{t \"reports.leadPerformance.keyIndicators.requests\"}}\n              @compare={{this.keyIndicators.requests.change}}\n              @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n              @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n              @size=\"lg\"\n            />\n          </div>\n  \n          <div class=\"pb3 w-100 w-50-sm w-25-md bg-white flex flex-column\">\n            <UiMetricItem\n              @title={{format-number this.keyIndicators.reservations.current.value}}\n              @description={{t \"reports.leadPerformance.keyIndicators.reservations\"}}\n              @compare={{this.keyIndicators.reservations.change}}\n              @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n              @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n              @size=\"lg\"\n            />\n            <UiIconButton\n              @icon=\"reception-bell\"\n              @label={{t \"reports.reservations.showReservations\"}}\n              @onClick={{fn this.onOpenDetailDialog \"reservations\"}}\n              @class=\"mt2\"\n            />\n          </div>\n  \n          <div class=\"pb3 w-100 w-50-sm w-25-md bg-white\">\n            <UiMetricItem\n              @hasInvertedColor={{true}}\n              @title={{concat\n                (format-number this.keyIndicators.leadsReservationsRatio.current.value)\n                \":1\"\n              }}\n              @description={{t \"reports.leadPerformance.keyIndicators.leadsReservationsRatio\"}}\n              @compare={{this.keyIndicators.leadsReservationsRatio.change}}\n              @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n              @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n              @size=\"lg\"\n            >\n              <span class=\"font-sm secondary\">\n                {{this.leadsToReservationsPercentage}}\n              </span>\n            </UiMetricItem>\n          </div>\n        </div>\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"uYgmQdP1\",\n    \"block\": \"[[[11,0],[4,[38,0],[[28,[37,1],[[30,0,[\\\"fetchKeyIndicators\\\"]]],null],[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"filters\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fetchKeyIndicators\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"pb1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[6,4,1,130,4]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"pb1 bb b--black-10\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex items-start flex-wrap w-100 bg-white pb2 pb3-sm pb4-md\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@appendix\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\",\\\"@size\\\"],[[28,[37,5],[[30,0,[\\\"keyIndicators\\\",\\\"totalValueAdded\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,6],[\\\"reports.leadPerformance.keyIndicators.totalValueAdded\\\"],null],[30,0,[\\\"keyIndicators\\\",\\\"totalValueAdded\\\",\\\"change\\\"]],[28,[37,7],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],[28,[37,6],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,6],[\\\"components.ui-metric-item.placeholder\\\"],null],\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@appendix\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\",\\\"@size\\\"],[[28,[37,5],[[30,0,[\\\"keyIndicators\\\",\\\"revenue\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,6],[\\\"reports.leadPerformance.keyIndicators.revenue\\\"],null],[30,0,[\\\"keyIndicators\\\",\\\"revenue\\\",\\\"change\\\"]],[28,[37,7],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],[28,[37,6],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,6],[\\\"components.ui-metric-item.placeholder\\\"],null],\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@appendix\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\",\\\"@size\\\"],[[28,[37,5],[[30,0,[\\\"keyIndicators\\\",\\\"valueAdded\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,6],[\\\"reports.leadPerformance.keyIndicators.valueAdded\\\"],null],[30,0,[\\\"keyIndicators\\\",\\\"valueAdded\\\",\\\"change\\\"]],[28,[37,7],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],[28,[37,6],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,6],[\\\"components.ui-metric-item.placeholder\\\"],null],\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"pb3 w-100 w-50-sm w-25-md bg-white flex flex-column\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\",\\\"@size\\\"],[[28,[37,5],[[30,0,[\\\"keyIndicators\\\",\\\"totalLeads\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,6],[\\\"reports.leadPerformance.keyIndicators.totalLeads\\\"],null],[30,0,[\\\"keyIndicators\\\",\\\"totalLeads\\\",\\\"change\\\"]],[28,[37,6],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,6],[\\\"components.ui-metric-item.placeholder\\\"],null],\\\"lg\\\"]],null],[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@onClick\\\",\\\"@class\\\"],[\\\"lead\\\",[28,[37,6],[\\\"reports.leads.showLeads\\\"],null],[28,[37,9],[[30,0,[\\\"onOpenDetailDialog\\\"]],\\\"leads\\\"],null],\\\"mt2\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\",\\\"@size\\\"],[[28,[37,5],[[30,0,[\\\"keyIndicators\\\",\\\"requests\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,6],[\\\"reports.leadPerformance.keyIndicators.requests\\\"],null],[30,0,[\\\"keyIndicators\\\",\\\"requests\\\",\\\"change\\\"]],[28,[37,6],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,6],[\\\"components.ui-metric-item.placeholder\\\"],null],\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"pb3 w-100 w-50-sm w-25-md bg-white flex flex-column\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\",\\\"@size\\\"],[[28,[37,5],[[30,0,[\\\"keyIndicators\\\",\\\"reservations\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,6],[\\\"reports.leadPerformance.keyIndicators.reservations\\\"],null],[30,0,[\\\"keyIndicators\\\",\\\"reservations\\\",\\\"change\\\"]],[28,[37,6],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,6],[\\\"components.ui-metric-item.placeholder\\\"],null],\\\"lg\\\"]],null],[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@onClick\\\",\\\"@class\\\"],[\\\"reception-bell\\\",[28,[37,6],[\\\"reports.reservations.showReservations\\\"],null],[28,[37,9],[[30,0,[\\\"onOpenDetailDialog\\\"]],\\\"reservations\\\"],null],\\\"mt2\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,4],null,[[\\\"@hasInvertedColor\\\",\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\",\\\"@size\\\"],[true,[28,[37,10],[[28,[37,5],[[30,0,[\\\"keyIndicators\\\",\\\"leadsReservationsRatio\\\",\\\"current\\\",\\\"value\\\"]]],null],\\\":1\\\"],null],[28,[37,6],[\\\"reports.leadPerformance.keyIndicators.leadsReservationsRatio\\\"],null],[30,0,[\\\"keyIndicators\\\",\\\"leadsReservationsRatio\\\",\\\"change\\\"]],[28,[37,6],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,6],[\\\"components.ui-metric-item.placeholder\\\"],null],\\\"lg\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"leadsToReservationsPercentage\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"did-update\\\",\\\"perform\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-metric-item\\\",\\\"format-number\\\",\\\"t\\\",\\\"currency-symbol\\\",\\\"ui-icon-button\\\",\\\"fn\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-reports/lead-performance-metrics.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcReportsLeadPerformanceMetricsComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _emberArgTypes.arg)(_propTypes.func), _dec5 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    const baseUrl = _environment.default.APP.apiBaseHost;\n    const {\n      filters\n    } = this;\n    const qps = filters ? (0, _queryParamUtil.getQueryParams)(filters) : '';\n    const url = `${baseUrl}/${this.organizationSlug}/reports/leads/key-indicators${qps}`;\n    try {\n      var _this$abortController;\n      tasks.push(this.authenticatedFetch.fetch(url, {\n        signal: (_this$abortController = this.abortController) === null || _this$abortController === void 0 ? void 0 : _this$abortController.signal\n      }));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      if (!(response !== null && response !== void 0 && response.ok)) throw response || new Error();\n      const {\n        metrics\n      } = yield response.json();\n      this.keyIndicators = metrics;\n    } catch (error) {\n      if ((error === null || error === void 0 ? void 0 : error.name) === 'AbortError') {\n        return;\n      }\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class AmcReportsLeadPerformanceMetricsComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor4, this);\n      /**\n       * the current organization slug\n       *\n       * @property organizationSlug\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor5, this);\n      /**\n       * Abort Controller for the current fetch\n       *\n       * @property abortController\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"abortController\", _descriptor6, this);\n      /**\n       * the applied filters\n       *\n       * @property filters\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"filters\", _descriptor7, this);\n      /**\n       * key-indicators for the leads performance report\n       *\n       * @property keyIndicators\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"keyIndicators\", _descriptor8, this);\n      /**\n       * On detail-dialog open\n       *\n       * @argument onOpenDetailDialog\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onOpenDetailDialog\", _descriptor9, this);\n      /**\n       * fetches the key-indicators for the leads performance report\n       *\n       * @type {Task}\n       * @function fetchKeyIndicators\n       */\n      _initializerDefineProperty(this, \"fetchKeyIndicators\", _descriptor10, this);\n      this.fetchKeyIndicators.perform();\n    }\n    get leadsToReservationsPercentage() {\n      var _this$keyIndicators;\n      const ratio = (_this$keyIndicators = this.keyIndicators) === null || _this$keyIndicators === void 0 || (_this$keyIndicators = _this$keyIndicators.leadsReservationsRatio) === null || _this$keyIndicators === void 0 || (_this$keyIndicators = _this$keyIndicators.current) === null || _this$keyIndicators === void 0 ? void 0 : _this$keyIndicators.value;\n      return ratio ? `${parseFloat((1 / ratio * 100).toFixed(2))} %` : '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"abortController\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"keyIndicators\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"onOpenDetailDialog\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"fetchKeyIndicators\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcReportsLeadPerformanceMetricsComponent);\n});","define(\"additive-mc/components/amc-reports/leads\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"@ember/service\", \"ember-concurrency\", \"ember-arg-types\", \"@glimmer/tracking\", \"prop-types\", \"@additive-apps/ui/utils/query-param-util\", \"additive-mc/utils/constants\"], function (_exports, _component, _templateFactory, _environment, _component2, _service, _emberConcurrency, _emberArgTypes, _tracking, _propTypes, _queryParamUtil, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-update (perform this.fetchLeads) this.organizationSlug this.filters}}>\n    <UiIntro\n      @class=\"mw6\"\n      @title={{t \"reports.leads.title\"}}\n      @description={{t \"reports.leads.description\"}}\n      @size=\"xl\"\n      @isMultiline={{true}}\n      as |intro|\n    >\n      <UiWhen @role=\"admin\">\n        <intro.title>\n          <button\n            type=\"button\"\n            class=\"no-default-styles blue db dib-sm m0 mt1 mb1 ml2-sm mb0-sm mt0-sm font-md font-medium cpointer h1\"\n            {{on \"click\" (fn (mut this.isLeadsDialog))}}\n          >\n            <span class=\"flex items-center\">\n              {{svg-jar \"lead\"}}\n              <span class=\"ml05\">\n                {{t \"reports.leads.showLeads\"}}\n              </span>\n            </span>\n          </button>\n        </intro.title>\n      </UiWhen>\n    </UiIntro>\n    {{#if this.fetchLeads.isRunning}}\n      <div class=\"pv2 pv3-sm pv4-md\">\n        <UiSkeleton\n          @items={{3}}\n          @itemsPerRow={{3}}\n          @itemsPerRowSmartphone={{1}}\n          @cardHeight={{138}}\n          @gap={{4}}\n        />\n      </div>\n    {{else}}\n      <div class=\"pb2 pb3-sm pb4-md bb b--black-10\">\n        <div class=\"flex items-end flex-wrap flex-nowrap-md w-100 bg-white pv2 pv3-sm pv4-md\">\n          <div class=\"pb0-md w-100 w-50-sm w-33-md bg-white\">\n            <UiMetricItem\n              @title={{format-number (or this.leads.leads.current.value 0)}}\n              @description={{t \"reports.leads.leads\"}}\n              @compare={{this.leads.leads.change}}\n              @appendix={{currency-symbol this.uiAppSettings.currency}}\n              @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n              @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n              @size=\"lg\"\n            />\n          </div>\n          <div class=\"pb0-md w-100 w-50-sm w-33-md bg-white\">\n            <UiMetricItem\n              @title={{format-number (or this.leads.onPage.current.value 0)}}\n              @description={{t \"reports.leads.onPageLeads\"}}\n              @compare={{this.leads.onPage.change}}\n              @appendix={{currency-symbol this.uiAppSettings.currency}}\n              @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n              @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n            />\n          </div>\n          <div class=\"w-100 w-50-sm w-33-md pb0-md bg-white\">\n            {{#if this.isUpgradeNeeded}}\n              <div class=\"w-100 br2 pa3 white bg-blue\">\n                <div class=\"flex flex-column justify-between h-100\">\n                  <div>\n                    <div class=\"flex justify-between\">\n                      <div class=\"font-sm\">\n                        {{t \"reports.leads.upgradeNeeded.title\"}}\n                      </div>\n                    </div>\n                    <div class=\"font-sm white--60 mt1\">\n                      {{t \"reports.leads.upgradeNeeded.description\"}}\n                    </div>\n                  </div>\n                  <UiIconButton\n                    @class=\"color-inherit mt3\"\n                    @icon=\"arrow-up-circle\"\n                    @label={{t \"reports.leads.upgradeNeeded.action\"}}\n                    @href={{this.upgradeEnquiryUrl}}\n                    @target=\"_blank\"\n                  />\n                </div>\n              </div>\n            {{else}}\n              <UiMetricItem\n                @title={{format-number (or this.leads.payed.current.value 0)}}\n                @description={{t \"reports.leads.paidLeads\"}}\n                @compare={{this.leads.payed.change}}\n                @appendix={{currency-symbol this.uiAppSettings.currency}}\n                @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n                @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n              />\n            {{/if}}\n          </div>\n        </div>\n      </div>\n    {{/if}}\n  </div>\n  {{#if this.isLeadsDialog}}\n    <AmcTableDialog\n      @filters={{this.filters}}\n      @onClose={{fn (mut this.isLeadsDialog) false}}\n      @dialogType=\"leads\"\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"tkbjLYhO\",\n    \"block\": \"[[[11,0],[4,[38,0],[[28,[37,1],[[30,0,[\\\"fetchLeads\\\"]]],null],[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"filters\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[\\\"mw6\\\",[28,[37,3],[\\\"reports.leads.title\\\"],null],[28,[37,3],[\\\"reports.leads.description\\\"],null],\\\"xl\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,4],null,[[\\\"@role\\\"],[\\\"admin\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"no-default-styles blue db dib-sm m0 mt1 mb1 ml2-sm mb0-sm mt0-sm font-md font-medium cpointer h1\\\"],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[28,[37,7],[[30,0,[\\\"isLeadsDialog\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"flex items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"lead\\\"],null]],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"ml05\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[\\\"reports.leads.showLeads\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fetchLeads\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"pv2 pv3-sm pv4-md\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[3,3,1,138,4]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"pb2 pb3-sm pb4-md bb b--black-10\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex items-end flex-wrap flex-nowrap-md w-100 bg-white pv2 pv3-sm pv4-md\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"pb0-md w-100 w-50-sm w-33-md bg-white\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,11],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@appendix\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\",\\\"@size\\\"],[[28,[37,12],[[28,[37,13],[[30,0,[\\\"leads\\\",\\\"leads\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,3],[\\\"reports.leads.leads\\\"],null],[30,0,[\\\"leads\\\",\\\"leads\\\",\\\"change\\\"]],[28,[37,14],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],[28,[37,3],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,3],[\\\"components.ui-metric-item.placeholder\\\"],null],\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"pb0-md w-100 w-50-sm w-33-md bg-white\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,11],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@appendix\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,12],[[28,[37,13],[[30,0,[\\\"leads\\\",\\\"onPage\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,3],[\\\"reports.leads.onPageLeads\\\"],null],[30,0,[\\\"leads\\\",\\\"onPage\\\",\\\"change\\\"]],[28,[37,14],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],[28,[37,3],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,3],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"w-100 w-50-sm w-33-md pb0-md bg-white\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isUpgradeNeeded\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"w-100 br2 pa3 white bg-blue\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"flex flex-column justify-between h-100\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"flex justify-between\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"font-sm\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,3],[\\\"reports.leads.upgradeNeeded.title\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"font-sm white--60 mt1\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,3],[\\\"reports.leads.upgradeNeeded.description\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,15],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@href\\\",\\\"@target\\\"],[\\\"color-inherit mt3\\\",\\\"arrow-up-circle\\\",[28,[37,3],[\\\"reports.leads.upgradeNeeded.action\\\"],null],[30,0,[\\\"upgradeEnquiryUrl\\\"]],\\\"_blank\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,11],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@appendix\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,12],[[28,[37,13],[[30,0,[\\\"leads\\\",\\\"payed\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,3],[\\\"reports.leads.paidLeads\\\"],null],[30,0,[\\\"leads\\\",\\\"payed\\\",\\\"change\\\"]],[28,[37,14],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],[28,[37,3],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,3],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLeadsDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,16],null,[[\\\"@filters\\\",\\\"@onClose\\\",\\\"@dialogType\\\"],[[30,0,[\\\"filters\\\"]],[28,[37,6],[[28,[37,7],[[30,0,[\\\"isLeadsDialog\\\"]]],null],false],null],\\\"leads\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"intro\\\"],false,[\\\"did-update\\\",\\\"perform\\\",\\\"ui-intro\\\",\\\"t\\\",\\\"ui-when\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"svg-jar\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-metric-item\\\",\\\"format-number\\\",\\\"or\\\",\\\"currency-symbol\\\",\\\"ui-icon-button\\\",\\\"amc-table-dialog\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-reports/leads.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcReportsLeadsComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    const baseUrl = _environment.default.APP.apiBaseHostV2;\n    const {\n      filters\n    } = this;\n    const qps = filters ? (0, _queryParamUtil.getQueryParams)(filters) : '';\n    const url = `${baseUrl}/${this.organizationSlug}/reports/leads${qps}`;\n    try {\n      tasks.push(this.authenticatedFetch.fetch(url, {\n        signal: this.abortController && this.abortController.signal\n      }));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const data = yield response.json();\n      this.leads = data;\n    } catch (error) {\n      if (error && error.name === 'AbortError') {\n        return;\n      }\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class AmcReportsLeadsComponent extends _component2.default {\n    get isUpgradeNeeded() {\n      var _this$currentUser$cur;\n      const app = (_this$currentUser$cur = this.currentUser.currentOrganization) === null || _this$currentUser$cur === void 0 || (_this$currentUser$cur = _this$currentUser$cur.accessibleApps) === null || _this$currentUser$cur === void 0 ? void 0 : _this$currentUser$cur.find(app => app.id === 50);\n      return (app === null || app === void 0 ? void 0 : app.planName) === 'professional_yearly' || (app === null || app === void 0 ? void 0 : app.planName) === 'professional_monthly';\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      /**\n       * the current organization slug\n       *\n       * @property organizationSlug\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor5, this);\n      /**\n       * the filters\n       *\n       * @property filters\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"filters\", _descriptor6, this);\n      /**\n       * the fetched leads\n       *\n       * @property leads\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"leads\", _descriptor7, this);\n      /**\n       * whether the leads dialog is open\n       *\n       * @property isLeadsDialog\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isLeadsDialog\", _descriptor8, this);\n      /**\n       * Abort Controller for the current fetch\n       *\n       * @property abortController\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"abortController\", _descriptor9, this);\n      /**\n       * the url to the plan upgrade page\n       *\n       * @property upgradeEnquiryUrl\n       * @type {String}\n       * @default UPGRADE_ENQUIRY_URL\n       */\n      _defineProperty(this, \"upgradeEnquiryUrl\", _constants.UPGRADE_ENQUIRY_URL);\n      /**\n       * fetches the leads\n       *\n       * @type {Task}\n       * @function fetchLeads\n       */\n      _initializerDefineProperty(this, \"fetchLeads\", _descriptor10, this);\n      this.fetchLeads.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"leads\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isLeadsDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"abortController\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"fetchLeads\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcReportsLeadsComponent);\n});","define(\"additive-mc/components/amc-reports/on-page-metrics\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"@ember/service\", \"@glimmer/tracking\", \"ember-concurrency\", \"@additive-apps/ui/utils/query-param-util\", \"ember-arg-types\", \"prop-types\", \"@ember/object\"], function (_exports, _component, _templateFactory, _environment, _component2, _service, _tracking, _emberConcurrency, _queryParamUtil, _emberArgTypes, _propTypes, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    {{did-update (perform this.fetchKeyIndicators) this.organizationSlug this.dateRange}}\n    {{did-update (perform this.fetchConversions) this.organizationSlug this.dateRange}}\n    {{did-update (perform this.fetchCampaigns) this.organizationSlug this.dateRange}}\n    {{did-update (perform this.fetchLocals) this.organizationSlug this.dateRange}}\n    {{did-update (perform this.fetchUtms) this.organizationSlug this.dateRange}}\n  >\n    {{#if this.fetchKeyIndicators.isRunning}}\n      <div class=\"pv2 pv3-sm pv4-md\">\n        <UiSkeleton\n          @items={{3}}\n          @itemsPerRow={{3}}\n          @itemsPerRowSmartphone={{1}}\n          @cardHeight={{130}}\n          @gap={{4}}\n        />\n      </div>\n    {{else}}\n      <div class=\"pb2 pb3-sm pb4-md bb b--black-10\">\n        <div class=\"flex items-end flex-wrap flex-nowrap-md w-100 bg-white pv2 pv3-sm pv4-md\">\n          <div class=\"pb3 pb0-md w-100 w-50-sm w-33-md bg-white\">\n            <UiMetricItem\n              @title={{format-number this.keyIndicators.impressions.current.value}}\n              @description={{t \"reports.onPageMetrics.impressions\"}}\n              @compare={{this.keyIndicators.impressions.change}}\n              @appendix={{currency-symbol this.uiAppSettings.currency}}\n              @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n              @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n              @size=\"lg\"\n            />\n          </div>\n  \n          <div class=\"pb3 pb0-md w-100 w-50-sm w-33-md bg-white\">\n            <UiMetricItem\n              @title={{format-number this.keyIndicators.conversions.current.value}}\n              @description={{t \"reports.onPageMetrics.onlineConversions\"}}\n              @descriptionHelpText={{t \"reports.onPageMetrics.confirmedLeadsTooltip\"}}\n              @compare={{this.keyIndicators.conversions.change}}\n              @appendix={{currency-symbol this.uiAppSettings.currency}}\n              @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n              @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n              @size=\"lg\"\n            />\n          </div>\n  \n          <div class=\"pb3 pb0-md w-100 w-50-sm w-33-md bg-white\">\n            <UiMetricItem\n              @hasInvertedColor={{true}}\n              @title={{concat\n                (format-number this.keyIndicators.impressionsConversionsRatio.current.value.value)\n                \":1\"\n              }}\n              @description={{t \"reports.onPageMetrics.impressionsConversions\"}}\n              @compare={{this.keyIndicators.impressionsConversionsRatio.change}}\n              @comparePeriod={{t \"components.ui-metric-item.comparePeriod\"}}\n              @comparePlaceholder={{t \"components.ui-metric-item.placeholder\"}}\n              @size=\"lg\"\n            >\n              <span class=\"font-sm secondary\">\n                {{this.keyIndicators.impressionsConversionsRatio.current.value.percentage}}&nbsp;%\n              </span>\n            </UiMetricItem>\n          </div>\n        </div>\n      </div>\n    {{/if}}\n  \n    <div class=\"w-100 bg-white pv2 pv3-sm pv4-md bb b--black-10\">\n      <UiIntro\n        @class=\"pv2 pv3-sm pv4-md\"\n        @title={{t \"reports.onPageMetrics.campaigns.title\"}}\n        @description={{t \"reports.onPageMetrics.campaigns.description\"}}\n        @size=\"xl\"\n        @isMultiline={{true}}\n      />\n      {{#if this.fetchCampaigns.isRunning}}\n        <UiSkeleton @itemsPerRow={{1}} @items={{6}} @cardHeight={{32}} @gap={{4}} />\n      {{else}}\n        {{#if this.isCampaignsEmpty}}\n          <div class=\"flex flex-column items-center justify-center text-center\">\n            {{svg-jar \"empty-content-grey\"}}\n            <div class=\"font-sm secondary\">\n              {{t \"reports.onPageMetrics.empty\"}}\n            </div>\n          </div>\n        {{else}}\n          <UiTable\n            @classNames=\"no-shadow pb2 pb3-sm pb4-md\"\n            @columns={{this.campaigns.columns}}\n            @rows={{this.campaigns.rows}}\n            as |ta|\n          >\n            <ta.head />\n            <ta.body as |body|>\n              <body.row @hasActions={{false}} />\n            </ta.body>\n          </UiTable>\n        {{/if}}\n      {{/if}}\n    </div>\n  \n    <div class=\"w-100 bg-white pv2 pv3-sm pv4-md bb b--black-10\">\n      <UiIntro\n        @class=\"pv2 pv3-sm pv4-md\"\n        @title={{t \"reports.onPageMetrics.locals.title\"}}\n        @description={{t \"reports.onPageMetrics.locals.description\"}}\n        @size=\"xl\"\n        @isMultiline={{true}}\n      />\n      {{#if this.fetchLocals.isRunning}}\n        <UiSkeleton @itemsPerRow={{1}} @items={{3}} @cardHeight={{32}} @gap={{4}} />\n      {{else}}\n        {{#if this.isLocalsEmpty}}\n          <div class=\"flex flex-column items-center justify-center text-center\">\n            {{svg-jar \"empty-content-grey\"}}\n            <div class=\"font-sm secondary\">\n              {{t \"reports.onPageMetrics.empty\"}}\n            </div>\n          </div>\n        {{else}}\n          <UiTable\n            @classNames=\"no-shadow pb2 pb3-sm pb4-md\"\n            @columns={{this.locals.columns}}\n            @rows={{this.locals.rows}}\n            as |ta|\n          >\n            <ta.head />\n            <ta.body as |body row|>\n              <body.row @hasActions={{false}}>\n                <td class=\"ph1 text-left\">{{row.local}}</td>\n                <td class=\"ph1 text-left\">{{format-number (or row.conversions 0)}}</td>\n                <td class=\"ph1 text-left\">{{format-number\n                    (or row.percentage 0)\n                    maximumFractionDigits=2\n                  }}\n                  %</td>\n                <td class=\"ph1 text-left\">{{format-number\n                    (or row.dailyConversions 0)\n                    maximumFractionDigits=2\n                  }}</td>\n                <td class=\"ph1 text-left\">{{format-number\n                    (or row.weeklyConversions 0)\n                    maximumFractionDigits=2\n                  }}</td>\n              </body.row>\n            </ta.body>\n          </UiTable>\n        {{/if}}\n      {{/if}}\n    </div>\n  \n    <div class=\"w-100 bg-white pv2 pv3-sm pv4-md bb b--black-10\">\n      <UiIntro\n        @class=\"pv2 pv3-sm pv4-md\"\n        @title={{t \"reports.onPageMetrics.utms.title\"}}\n        @description={{t \"reports.onPageMetrics.utms.description\"}}\n        @size=\"xl\"\n        @isMultiline={{true}}\n      />\n  \n      <UiRoutableTabs as |tabs|>\n        <tabs.header @activeTab={{this.activeUtmTab}} @isRoutable={{false}} as |header|>\n          {{#each this.utmTabs as |tab|}}\n            <header.tab @tabName={{tab.title}} @value={{tab}} @onClick={{this.setActiveUtmTab}} />\n          {{/each}}\n        </tabs.header>\n  \n        {{#if this.fetchUtms.isRunning}}\n          <UiSkeleton @itemsPerRow={{1}} @items={{4}} @cardHeight={{32}} @gap={{4}} />\n        {{else}}\n          {{#if this.isUtmsEmpty}}\n            <div class=\"flex flex-column items-center justify-center text-center\">\n              {{svg-jar \"empty-content-grey\"}}\n              <div class=\"font-sm secondary\">\n                {{t \"reports.onPageMetrics.empty\"}}\n              </div>\n            </div>\n          {{else}}\n            <UiTable\n              @classNames=\"no-shadow pb2 pb3-sm pb4-md\"\n              @columns={{this.utmColumns}}\n              @rows={{this.activeUtmRows}}\n              as |ta|\n            >\n              <ta.head />\n              <ta.body as |body row|>\n                <body.row @hasActions={{false}}>\n                  <td class=\"ph1 text-left\">{{row.title}}</td>\n                  <td class=\"ph1 text-left\">{{format-number (or row.conversions 0)}}</td>\n                  <td class=\"ph1 text-left\">{{format-number (or row.impressions 0)}}</td>\n                  <td class=\"ph1 text-left\">{{format-number\n                      (or row.percentage 0)\n                      maximumFractionDigits=2\n                    }}\n                    %</td>\n                  <td class=\"ph1 text-left\">{{format-number\n                      (or row.impressionsConversionsRatio 0)\n                      maximumFractionDigits=2\n                    }}\n                    : 1</td>\n                </body.row>\n              </ta.body>\n            </UiTable>\n          {{/if}}\n        {{/if}}\n      </UiRoutableTabs>\n    </div>\n  \n    <div class=\"w-100 bg-white pt2 pt3-sm pt4-md\">\n      <UiIntro\n        @class=\"pv2 pv3-sm pv4-md\"\n        @title={{t \"reports.onPageMetrics.conversions.title\"}}\n        @description={{t \"reports.onPageMetrics.conversions.description\"}}\n        @size=\"xl\"\n        @isMultiline={{true}}\n      />\n  \n      <UiRoutableTabs as |tabs|>\n        <tabs.header\n          @setActiveTab={{action (mut this.activeTab)}}\n          @activeTab={{this.activeTab}}\n          @isRoutable={{false}} as |header|\n        >\n          {{#each this.conversionTabs as |tab|}}\n            <header.tab\n              @tabName={{tab.title}}\n              @value={{tab}}\n              @onClick={{perform this.fetchConversions}}\n            />\n          {{/each}}\n        </tabs.header>\n  \n        {{#if this.fetchConversions.isRunning}}\n          <UiSkeleton\n            @items={{1}}\n            @itemsSmartphone={{1}}\n            @cardHeight={{300}}\n            @cardHeightSmartphone={{256}}\n          />\n        {{else}}\n          {{#if this.isConversionsEmpty}}\n            <div class=\"flex flex-column items-center justify-center text-center\">\n              {{svg-jar \"empty-content-grey\"}}\n              <div class=\"font-sm secondary\">\n                {{t \"reports.onPageMetrics.empty\"}}\n              </div>\n            </div>\n          {{else}}\n            <UiChart\n              @data={{this.conversions}}\n              @type=\"horizontalBar\"\n              @hasTooltip={{false}}\n              @classNames=\"pt1\"\n            />\n          {{/if}}\n        {{/if}}\n      </UiRoutableTabs>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"CehWA7rP\",\n    \"block\": \"[[[11,0],[4,[38,0],[[28,[37,1],[[30,0,[\\\"fetchKeyIndicators\\\"]]],null],[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"dateRange\\\"]]],null],[4,[38,0],[[28,[37,1],[[30,0,[\\\"fetchConversions\\\"]]],null],[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"dateRange\\\"]]],null],[4,[38,0],[[28,[37,1],[[30,0,[\\\"fetchCampaigns\\\"]]],null],[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"dateRange\\\"]]],null],[4,[38,0],[[28,[37,1],[[30,0,[\\\"fetchLocals\\\"]]],null],[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"dateRange\\\"]]],null],[4,[38,0],[[28,[37,1],[[30,0,[\\\"fetchUtms\\\"]]],null],[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"dateRange\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fetchKeyIndicators\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"pv2 pv3-sm pv4-md\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[3,3,1,130,4]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"pb2 pb3-sm pb4-md bb b--black-10\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex items-end flex-wrap flex-nowrap-md w-100 bg-white pv2 pv3-sm pv4-md\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"pb3 pb0-md w-100 w-50-sm w-33-md bg-white\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@appendix\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\",\\\"@size\\\"],[[28,[37,5],[[30,0,[\\\"keyIndicators\\\",\\\"impressions\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,6],[\\\"reports.onPageMetrics.impressions\\\"],null],[30,0,[\\\"keyIndicators\\\",\\\"impressions\\\",\\\"change\\\"]],[28,[37,7],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],[28,[37,6],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,6],[\\\"components.ui-metric-item.placeholder\\\"],null],\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"pb3 pb0-md w-100 w-50-sm w-33-md bg-white\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@descriptionHelpText\\\",\\\"@compare\\\",\\\"@appendix\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\",\\\"@size\\\"],[[28,[37,5],[[30,0,[\\\"keyIndicators\\\",\\\"conversions\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,6],[\\\"reports.onPageMetrics.onlineConversions\\\"],null],[28,[37,6],[\\\"reports.onPageMetrics.confirmedLeadsTooltip\\\"],null],[30,0,[\\\"keyIndicators\\\",\\\"conversions\\\",\\\"change\\\"]],[28,[37,7],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],[28,[37,6],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,6],[\\\"components.ui-metric-item.placeholder\\\"],null],\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"pb3 pb0-md w-100 w-50-sm w-33-md bg-white\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,4],null,[[\\\"@hasInvertedColor\\\",\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\",\\\"@size\\\"],[true,[28,[37,8],[[28,[37,5],[[30,0,[\\\"keyIndicators\\\",\\\"impressionsConversionsRatio\\\",\\\"current\\\",\\\"value\\\",\\\"value\\\"]]],null],\\\":1\\\"],null],[28,[37,6],[\\\"reports.onPageMetrics.impressionsConversions\\\"],null],[30,0,[\\\"keyIndicators\\\",\\\"impressionsConversionsRatio\\\",\\\"change\\\"]],[28,[37,6],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,6],[\\\"components.ui-metric-item.placeholder\\\"],null],\\\"lg\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"keyIndicators\\\",\\\"impressionsConversionsRatio\\\",\\\"current\\\",\\\"value\\\",\\\"percentage\\\"]]],[1,\\\" %\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"w-100 bg-white pv2 pv3-sm pv4-md bb b--black-10\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,9],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[\\\"pv2 pv3-sm pv4-md\\\",[28,[37,6],[\\\"reports.onPageMetrics.campaigns.title\\\"],null],[28,[37,6],[\\\"reports.onPageMetrics.campaigns.description\\\"],null],\\\"xl\\\",true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fetchCampaigns\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,3],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,6,32,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isCampaignsEmpty\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"reports.onPageMetrics.empty\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,11],null,[[\\\"@classNames\\\",\\\"@columns\\\",\\\"@rows\\\"],[\\\"no-shadow pb2 pb3-sm pb4-md\\\",[30,0,[\\\"campaigns\\\",\\\"columns\\\"]],[30,0,[\\\"campaigns\\\",\\\"rows\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"head\\\"]],null,null,null],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"row\\\"]],null,[[\\\"@hasActions\\\"],[false]],null],[1,\\\"\\\\n          \\\"]],[2]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"w-100 bg-white pv2 pv3-sm pv4-md bb b--black-10\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,9],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[\\\"pv2 pv3-sm pv4-md\\\",[28,[37,6],[\\\"reports.onPageMetrics.locals.title\\\"],null],[28,[37,6],[\\\"reports.onPageMetrics.locals.description\\\"],null],\\\"xl\\\",true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fetchLocals\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,3],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,3,32,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isLocalsEmpty\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"reports.onPageMetrics.empty\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,11],null,[[\\\"@classNames\\\",\\\"@columns\\\",\\\"@rows\\\"],[\\\"no-shadow pb2 pb3-sm pb4-md\\\",[30,0,[\\\"locals\\\",\\\"columns\\\"]],[30,0,[\\\"locals\\\",\\\"rows\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"head\\\"]],null,null,null],[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,4,[\\\"row\\\"]],null,[[\\\"@hasActions\\\"],[false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"ph1 text-left\\\"],[12],[1,[30,5,[\\\"local\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"ph1 text-left\\\"],[12],[1,[28,[35,5],[[28,[37,12],[[30,5,[\\\"conversions\\\"]],0],null]],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"ph1 text-left\\\"],[12],[1,[28,[35,5],[[28,[37,12],[[30,5,[\\\"percentage\\\"]],0],null]],[[\\\"maximumFractionDigits\\\"],[2]]]],[1,\\\"\\\\n                %\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"ph1 text-left\\\"],[12],[1,[28,[35,5],[[28,[37,12],[[30,5,[\\\"dailyConversions\\\"]],0],null]],[[\\\"maximumFractionDigits\\\"],[2]]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"ph1 text-left\\\"],[12],[1,[28,[35,5],[[28,[37,12],[[30,5,[\\\"weeklyConversions\\\"]],0],null]],[[\\\"maximumFractionDigits\\\"],[2]]]],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[4,5]]]]],[1,\\\"\\\\n        \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"w-100 bg-white pv2 pv3-sm pv4-md bb b--black-10\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,9],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[\\\"pv2 pv3-sm pv4-md\\\",[28,[37,6],[\\\"reports.onPageMetrics.utms.title\\\"],null],[28,[37,6],[\\\"reports.onPageMetrics.utms.description\\\"],null],\\\"xl\\\",true]],null],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,13],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,6,[\\\"header\\\"]],null,[[\\\"@activeTab\\\",\\\"@isRoutable\\\"],[[30,0,[\\\"activeUtmTab\\\"]],false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"utmTabs\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[30,7,[\\\"tab\\\"]],null,[[\\\"@tabName\\\",\\\"@value\\\",\\\"@onClick\\\"],[[30,8,[\\\"title\\\"]],[30,8],[30,0,[\\\"setActiveUtmTab\\\"]]]],null],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"      \\\"]],[7]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"fetchUtms\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,3],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,4,32,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isUtmsEmpty\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"reports.onPageMetrics.empty\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,11],null,[[\\\"@classNames\\\",\\\"@columns\\\",\\\"@rows\\\"],[\\\"no-shadow pb2 pb3-sm pb4-md\\\",[30,0,[\\\"utmColumns\\\"]],[30,0,[\\\"activeUtmRows\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,9,[\\\"head\\\"]],null,null,null],[1,\\\"\\\\n            \\\"],[8,[30,9,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,10,[\\\"row\\\"]],null,[[\\\"@hasActions\\\"],[false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"ph1 text-left\\\"],[12],[1,[30,11,[\\\"title\\\"]]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"ph1 text-left\\\"],[12],[1,[28,[35,5],[[28,[37,12],[[30,11,[\\\"conversions\\\"]],0],null]],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"ph1 text-left\\\"],[12],[1,[28,[35,5],[[28,[37,12],[[30,11,[\\\"impressions\\\"]],0],null]],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"ph1 text-left\\\"],[12],[1,[28,[35,5],[[28,[37,12],[[30,11,[\\\"percentage\\\"]],0],null]],[[\\\"maximumFractionDigits\\\"],[2]]]],[1,\\\"\\\\n                  %\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"ph1 text-left\\\"],[12],[1,[28,[35,5],[[28,[37,12],[[30,11,[\\\"impressionsConversionsRatio\\\"]],0],null]],[[\\\"maximumFractionDigits\\\"],[2]]]],[1,\\\"\\\\n                  : 1\\\"],[13],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[10,11]]]]],[1,\\\"\\\\n          \\\"]],[9]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"    \\\"]],[6]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"w-100 bg-white pt2 pt3-sm pt4-md\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,9],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[\\\"pv2 pv3-sm pv4-md\\\",[28,[37,6],[\\\"reports.onPageMetrics.conversions.title\\\"],null],[28,[37,6],[\\\"reports.onPageMetrics.conversions.description\\\"],null],\\\"xl\\\",true]],null],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,13],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,12,[\\\"header\\\"]],null,[[\\\"@setActiveTab\\\",\\\"@activeTab\\\",\\\"@isRoutable\\\"],[[28,[37,16],[[30,0],[28,[37,17],[[30,0,[\\\"activeTab\\\"]]],null]],null],[30,0,[\\\"activeTab\\\"]],false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"conversionTabs\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[30,13,[\\\"tab\\\"]],null,[[\\\"@tabName\\\",\\\"@value\\\",\\\"@onClick\\\"],[[30,14,[\\\"title\\\"]],[30,14],[28,[37,1],[[30,0,[\\\"fetchConversions\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[14]],null],[1,\\\"      \\\"]],[13]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"fetchConversions\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@cardHeightSmartphone\\\"],[1,1,300,256]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isConversionsEmpty\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"reports.onPageMetrics.empty\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,18],null,[[\\\"@data\\\",\\\"@type\\\",\\\"@hasTooltip\\\",\\\"@classNames\\\"],[[30,0,[\\\"conversions\\\"]],\\\"horizontalBar\\\",false,\\\"pt1\\\"]],null],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"    \\\"]],[12]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"ta\\\",\\\"body\\\",\\\"ta\\\",\\\"body\\\",\\\"row\\\",\\\"tabs\\\",\\\"header\\\",\\\"tab\\\",\\\"ta\\\",\\\"body\\\",\\\"row\\\",\\\"tabs\\\",\\\"header\\\",\\\"tab\\\"],false,[\\\"did-update\\\",\\\"perform\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-metric-item\\\",\\\"format-number\\\",\\\"t\\\",\\\"currency-symbol\\\",\\\"concat\\\",\\\"ui-intro\\\",\\\"svg-jar\\\",\\\"ui-table\\\",\\\"or\\\",\\\"ui-routable-tabs\\\",\\\"each\\\",\\\"-track-array\\\",\\\"action\\\",\\\"mut\\\",\\\"ui-chart\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-reports/on-page-metrics.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcReportsOnPageMetricsComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _object.computed)('campaigns.rows.length', 'fetchCampaigns.isRunning'), _dec5 = (0, _object.computed)('conversions.datasets.length', 'fetchConversions.isRunning'), _dec6 = (0, _object.computed)('locals.rows.length', 'fetchLocals.isRunning'), _dec7 = (0, _object.computed)('utms', 'activeUtmTab.name'), _dec8 = (0, _object.computed)('activeUtmRows.length', 'fetchUtms.isRunning'), _dec9 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    const baseUrl = _environment.default.APP.apiBaseHostV2;\n    const {\n      dateRange\n    } = this;\n    const qps = dateRange ? (0, _queryParamUtil.getQueryParams)(dateRange) : '';\n    const url = `${baseUrl}/${this.organizationSlug}/reports/on-page/key-indicators${qps}`;\n    try {\n      tasks.push(this.authenticatedFetch.fetch(url, {\n        signal: this.abortController && this.abortController.signal\n      }));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const data = yield response.json();\n      this.keyIndicators = data;\n    } catch (error) {\n      if (error && error.name === 'AbortError') {\n        return;\n      }\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec10 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    const baseUrl = _environment.default.APP.apiBaseHostV2;\n    const {\n      dateRange\n    } = this;\n    const qps = dateRange ? (0, _queryParamUtil.getQueryParams)(dateRange) : '';\n    const url = `${baseUrl}/${this.organizationSlug}/reports/on-page/campaigns${qps}`;\n    try {\n      tasks.push(this.authenticatedFetch.fetch(url, {\n        signal: this.abortController && this.abortController.signal\n      }));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const data = yield response.json();\n      this.campaigns = this.formatTableData(data);\n    } catch (error) {\n      if (error && error.name === 'AbortError') {\n        return;\n      }\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec11 = (0, _emberConcurrency.task)(function* (conversionType) {\n    const type = conversionType !== null && conversionType !== void 0 && conversionType.name ? conversionType.name : 'by-url';\n    const tasks = [];\n    const baseUrl = _environment.default.APP.apiBaseHostV2;\n    const {\n      dateRange\n    } = this;\n    const qps = dateRange ? (0, _queryParamUtil.getQueryParams)(dateRange) : '';\n    const url = `${baseUrl}/${this.organizationSlug}/reports/on-page/conversions-${type}${qps}`;\n    try {\n      tasks.push(this.authenticatedFetch.fetch(url, {\n        signal: this.abortController && this.abortController.signal\n      }));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const data = yield response.json();\n      this.conversions = this.formatChartData(data);\n    } catch (error) {\n      if (error && error.name === 'AbortError') {\n        return;\n      }\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec12 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    const baseUrl = _environment.default.APP.apiBaseHostV2;\n    const {\n      dateRange\n    } = this;\n    const qps = dateRange ? (0, _queryParamUtil.getQueryParams)(dateRange) : '';\n    const url = `${baseUrl}/${this.organizationSlug}/reports/on-page/locals${qps}`;\n    try {\n      tasks.push(this.authenticatedFetch.fetch(url, {\n        signal: this.abortController && this.abortController.signal\n      }));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const {\n        locals\n      } = yield response.json();\n      this.locals = this.formatLocalsData(locals);\n    } catch (error) {\n      if (error && error.name === 'AbortError') {\n        return;\n      }\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec13 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    const baseUrl = _environment.default.APP.apiBaseHostV2;\n    const {\n      dateRange\n    } = this;\n    const qps = dateRange ? (0, _queryParamUtil.getQueryParams)(dateRange) : '';\n    const url = `${baseUrl}/${this.organizationSlug}/reports/on-page/utms${qps}`;\n    try {\n      tasks.push(this.authenticatedFetch.fetch(url, {\n        signal: this.abortController && this.abortController.signal\n      }));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const {\n        utms\n      } = yield response.json();\n      this.utms = utms;\n    } catch (error) {\n      if (error && error.name === 'AbortError') {\n        return;\n      }\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class AmcReportsOnPageMetricsComponent extends _component2.default {\n    /**\n     * Whether the campaigns table is empty\n     *\n     * @computed isCampaignsEmpty\n     */\n    get isCampaignsEmpty() {\n      return !this.campaigns.rows.length && !this.fetchCampaigns.isRunning;\n    }\n\n    /**\n     * Whether the conversion chart is empty\n     *\n     * @computed isConversionsEmpty\n     */\n    get isConversionsEmpty() {\n      var _this$conversions;\n      return !((_this$conversions = this.conversions) !== null && _this$conversions !== void 0 && (_this$conversions = _this$conversions.datasets) !== null && _this$conversions !== void 0 && _this$conversions.length) && !this.fetchConversions.isRunning;\n    }\n\n    /**\n     * Whether the locals table is empty\n     *\n     * @computed isLocalsEmpty\n     */\n    get isLocalsEmpty() {\n      var _this$locals;\n      return !((_this$locals = this.locals) !== null && _this$locals !== void 0 && (_this$locals = _this$locals.rows) !== null && _this$locals !== void 0 && _this$locals.length) && !this.fetchLocals.isRunning;\n    }\n\n    /**\n     * rows of the active utm tab\n     *\n     * @computed activeUtmRows\n     */\n    get activeUtmRows() {\n      var _this$utms, _this$activeUtmTab;\n      return ((_this$utms = this.utms) === null || _this$utms === void 0 ? void 0 : _this$utms[(_this$activeUtmTab = this.activeUtmTab) === null || _this$activeUtmTab === void 0 ? void 0 : _this$activeUtmTab.name]) || [];\n    }\n\n    /**\n     * Whether the utms table is empty\n     *\n     * @computed isUtmsEmpty\n     */\n    get isUtmsEmpty() {\n      return !this.activeUtmRows.length && !this.fetchUtms.isRunning;\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      /**\n       * the current organization slug\n       *\n       * @property organizationSlug\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor4, this);\n      /**\n       * the date range object\n       *\n       * @property dateRange\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"dateRange\", _descriptor5, this);\n      /**\n       * Abort Controller for the current fetch\n       *\n       * @property abortController\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"abortController\", _descriptor6, this);\n      /**\n       * key-indicators for the on-page report\n       *\n       * @property keyIndicators\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"keyIndicators\", _descriptor7, this);\n      /**\n       * campaigns for the on-page report\n       *\n       * @property campaigns\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"campaigns\", _descriptor8, this);\n      /**\n       * conversions for the on-page report\n       *\n       * @property conversions\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"conversions\", _descriptor9, this);\n      /**\n       * tabs to switch between conversion tables\n       *\n       * @property conversionTabs\n       * @type {Array}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"conversionTabs\", _descriptor10, this);\n      /**\n       * the active tab\n       *\n       * @property activeTab\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"activeTab\", _descriptor11, this);\n      /**\n       * locals for the on-page report\n       *\n       * @property locals\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"locals\", _descriptor12, this);\n      /**\n       * utms for the on-page report\n       *\n       * @property utms\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"utms\", _descriptor13, this);\n      /**\n       * tabs to switch between utm tables\n       *\n       * @property utmTabs\n       * @type {Array}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"utmTabs\", _descriptor14, this);\n      /**\n       * the active utm tab\n       *\n       * @property activeUtmTab\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"activeUtmTab\", _descriptor15, this);\n      /**\n       * fetches the key-indicators for the on-page report\n       *\n       * @type {Task}\n       * @function fetchKeyIndicators\n       */\n      _initializerDefineProperty(this, \"fetchKeyIndicators\", _descriptor16, this);\n      /**\n       * fetches the campaigns for the on-page report\n       *\n       * @type {Task}\n       * @function fetchCampaigns\n       */\n      _initializerDefineProperty(this, \"fetchCampaigns\", _descriptor17, this);\n      /**\n       * fetches the conversions for the on-page report\n       *\n       * @type {Task}\n       * @function fetchConversions\n       */\n      _initializerDefineProperty(this, \"fetchConversions\", _descriptor18, this);\n      /**\n       * fetches the locals for the on-page report\n       *\n       * @type {Task}\n       * @function fetchLocals\n       */\n      _initializerDefineProperty(this, \"fetchLocals\", _descriptor19, this);\n      /**\n       * fetches the utms for the on-page report\n       *\n       * @type {Task}\n       * @function fetchUtms\n       */\n      _initializerDefineProperty(this, \"fetchUtms\", _descriptor20, this);\n      this.conversionTabs = [{\n        title: this.intl.t('reports.onPageMetrics.conversions.tabs.byUrl'),\n        name: 'by-url'\n      }, {\n        title: this.intl.t('reports.onPageMetrics.conversions.tabs.byDevice'),\n        name: 'by-device'\n      }];\n      this.activeTab = this.conversionTabs[0];\n      this.utmTabs = [{\n        title: this.intl.t('reports.onPageMetrics.utms.tabs.source'),\n        name: 'source'\n      }, {\n        title: this.intl.t('reports.onPageMetrics.utms.tabs.medium'),\n        name: 'medium'\n      }, {\n        title: this.intl.t('reports.onPageMetrics.utms.tabs.campaign'),\n        name: 'campaign'\n      }];\n      this.activeUtmTab = this.utmTabs[0];\n      this.utmColumns = [{\n        key: 'title',\n        name: this.intl.t('reports.onPageMetrics.utms.columns.title'),\n        classNames: 'text-left'\n      }, {\n        key: 'conversions',\n        name: this.intl.t('reports.onPageMetrics.utms.columns.conversions'),\n        classNames: 'text-left'\n      }, {\n        key: 'impressions',\n        name: this.intl.t('reports.onPageMetrics.utms.columns.impressions'),\n        classNames: 'text-left'\n      }, {\n        key: 'percentage',\n        name: this.intl.t('reports.onPageMetrics.utms.columns.percentage'),\n        classNames: 'text-left'\n      }, {\n        key: 'impressionsConversionsRatio',\n        name: this.intl.t('reports.onPageMetrics.utms.columns.impressionsConversionsRatio'),\n        classNames: 'text-left'\n      }];\n      this.fetchKeyIndicators.perform();\n      this.fetchCampaigns.perform();\n      this.fetchConversions.perform();\n      this.fetchLocals.perform();\n      this.fetchUtms.perform();\n    }\n    setActiveUtmTab(tab) {\n      this.activeUtmTab = tab;\n    }\n    formatTableData(data) {\n      const leadsIndex = (data.labels || []).findIndex(label => label.key === 'leads');\n      const columns = (data.labels || []).filter(label => label.key !== 'leads').map(label => {\n        return {\n          name: label.value,\n          classNames: 'text-left'\n        };\n      });\n      const openPopupIndex = (data.labels || []).findIndex(label => label.key === 'open-popup');\n      const rows = (data.data || []).map(row => {\n        var _rowData$openPopupInd;\n        const rowData = [...row.rowData];\n        if (openPopupIndex > -1 && ((_rowData$openPopupInd = rowData[openPopupIndex]) === null || _rowData$openPopupInd === void 0 ? void 0 : _rowData$openPopupInd.value) === 0) {\n          rowData[openPopupIndex] = '-';\n        }\n        return rowData.filter((_, index) => index !== leadsIndex);\n      });\n      return {\n        columns,\n        rows\n      };\n    }\n    formatLocalsData(locals) {\n      const columns = [{\n        key: 'local',\n        name: this.intl.t('reports.onPageMetrics.locals.columns.local'),\n        classNames: 'text-left'\n      }, {\n        key: 'conversions',\n        name: this.intl.t('reports.onPageMetrics.locals.columns.conversions'),\n        classNames: 'text-left'\n      }, {\n        key: 'percentage',\n        name: this.intl.t('reports.onPageMetrics.locals.columns.percentage'),\n        classNames: 'text-left'\n      }, {\n        key: 'dailyConversions',\n        name: this.intl.t('reports.onPageMetrics.locals.columns.dailyConversions'),\n        classNames: 'text-left'\n      }, {\n        key: 'weeklyConversions',\n        name: this.intl.t('reports.onPageMetrics.locals.columns.weeklyConversions'),\n        classNames: 'text-left'\n      }];\n      const rows = (locals || []).map(item => {\n        const key = `reports.onPageMetrics.locals.languageCodes.${item.local}`;\n        return _objectSpread(_objectSpread({}, item), {}, {\n          local: this.intl.exists(key) ? this.intl.t(key) : item.local\n        });\n      });\n      return {\n        columns,\n        rows\n      };\n    }\n    formatChartData(items) {\n      const labels = (items || []).map(item => {\n        return item.label;\n      });\n      const data = (items || []).map(item => {\n        return item.value.value;\n      });\n      return {\n        labels,\n        datasets: [{\n          data,\n          backgroundColor: '#4D76F1',\n          borderColor: '#4D76F1'\n        }]\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dateRange\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"abortController\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"keyIndicators\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"campaigns\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"conversions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"conversionTabs\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"activeTab\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"locals\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"utms\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"utmTabs\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"activeUtmTab\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isCampaignsEmpty\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"isCampaignsEmpty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isConversionsEmpty\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"isConversionsEmpty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isLocalsEmpty\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"isLocalsEmpty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"activeUtmRows\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"activeUtmRows\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isUtmsEmpty\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"isUtmsEmpty\"), _class.prototype), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"fetchKeyIndicators\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"fetchCampaigns\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"fetchConversions\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"fetchLocals\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"fetchUtms\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setActiveUtmTab\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setActiveUtmTab\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcReportsOnPageMetricsComponent);\n});","define(\"additive-mc/components/amc-reports/past-marketing-actions\", [\"exports\", \"additive-mc/config/environment\", \"@ember/component\", \"@ember/object\", \"@ember/object/computed\", \"@ember/service\", \"ember-concurrency\"], function (_exports, _environment, _component, _object, _computed, _service, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @module amc-reports\n   */\n  var _default = _exports.default = _component.default.extend({\n    authenticatedFetch: (0, _service.inject)(),\n    currentUser: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    organizationSlug: (0, _computed.alias)('currentUser.currentOrganization.id'),\n    /**\n     * the table header options\n     *\n     * @property tableHeaderOptions\n     * @type {Array}\n     * @default null\n     */\n    tableHeaderOptions: null,\n    /**\n     * the type of campaigns\n     *\n     * @property type\n     * @type {String}\n     * @default undefined\n     */\n    type: undefined,\n    /**\n     * fetches the past marketing actions\n     *\n     * @type {Task}\n     * @function pastMarketingActions\n     */\n    pastMarketingActions: (0, _emberConcurrency.task)(function* () {\n      const tasks = [];\n      const baseUrl = _environment.default.APP.apiBaseHost;\n      const base = `${baseUrl}/${this.organizationSlug}/reports/${this.type}/past-marketing-actions`;\n      try {\n        tasks.push(this.authenticatedFetch.fetch(base));\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        const [response] = yield (0, _emberConcurrency.all)(tasks);\n        const data = yield response.json();\n        (0, _object.set)(this, 'pastMarketingActions', data[`${this.type}PastMarketingActions`]);\n      } catch (error) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }).on('init'),\n    init() {\n      this._super(...arguments);\n      (0, _object.set)(this, 'tableHeaderOptions', [{\n        i18n: 'reports.pastMarketingActions.social.columns.title',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.pastMarketingActions.social.columns.type',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.pastMarketingActions.social.columns.publishedDate',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.pastMarketingActions.social.columns.impressions',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.pastMarketingActions.social.columns.clicks',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.pastMarketingActions.social.columns.conversions',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.pastMarketingActions.social.columns.reservations',\n        minWidth: '80px'\n      }]);\n    }\n  });\n});","define(\"additive-mc/components/amc-reports/reservations\", [\"exports\", \"additive-mc/config/environment\", \"@additive-apps/ui/components/ui-property-watcher\", \"@ember/object\", \"ember-concurrency\", \"@ember/service\", \"@additive-apps/ui/utils/query-param-util\"], function (_exports, _environment, _uiPropertyWatcher, _object, _emberConcurrency, _service, _queryParamUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @module amc-reports\n   */\n  var _default = _exports.default = _uiPropertyWatcher.default.extend({\n    authenticatedFetch: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    classNames: ['pt1 pt2-sm pt3-md'],\n    /**\n     * AbortController for the current fetch\n     *\n     * @property abortController\n     * @type {AbortController}\n     * @default null\n     */\n    abortController: null,\n    /**\n     * the filters\n     *\n     * @property filters\n     * @type {Object}\n     */\n    filters: null,\n    /**\n     * the current organization slug\n     *\n     * @property organizationSlug\n     * @type {String}\n     * @default null\n     */\n    organizationSlug: null,\n    /**\n     * the current organization slug\n     *\n     * @property organizationSlug\n     * @type {String}\n     * @default null\n     */\n    type: null,\n    init() {\n      this._super(...arguments);\n      (0, _object.setProperties)(this, {\n        // property watcher properties\n        _watchedProperties: ['filters', 'organizationSlug'],\n        _onPropertyChange: () => this.reservationData.perform()\n      });\n    },\n    /**\n     * fetches the datasets for the reservations\n     *\n     * @type {Task}\n     * @function reservationsData\n     */\n    reservationData: (0, _emberConcurrency.task)(function* () {\n      const tasks = [];\n      const baseUrl = _environment.default.APP.apiBaseHostV2;\n      const type = this.type;\n      const typePath = type ? `${type}/` : '';\n      const {\n        filters\n      } = this;\n      const qps = filters ? (0, _queryParamUtil.getQueryParams)(filters) : '';\n      const chartsUrl = `${baseUrl}/${this.organizationSlug}/reports/${typePath}reservations${qps}`;\n      try {\n        tasks.push(this.authenticatedFetch.fetch(chartsUrl, {\n          signal: this.abortController && this.abortController.signal\n        }));\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        const [response] = yield (0, _emberConcurrency.all)(tasks);\n\n        // chart-data\n        const {\n          reservations,\n          newGuests,\n          reactivatedGuests,\n          returningGuests,\n          hideReservationData\n        } = yield response.json();\n        (0, _object.setProperties)(this, {\n          reservations,\n          newGuests,\n          reactivatedGuests,\n          returningGuests,\n          hideReservationData\n        });\n      } catch (error) {\n        /* When AbortControllers signal gets aborted, this is intended, so do not show a toast */\n        if (error && error.name === 'AbortError') {\n          return;\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }).on('init')\n  });\n});","define(\"additive-mc/components/amc-reports/social-metrics\", [\"exports\", \"additive-mc/config/environment\", \"@additive-apps/ui/components/ui-property-watcher\", \"@ember/object\", \"ember-concurrency\", \"@ember/service\", \"@additive-apps/ui/utils/query-param-util\"], function (_exports, _environment, _uiPropertyWatcher, _object, _emberConcurrency, _service, _queryParamUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @class amc-reports/key-indicators\n   * @module amc-reports\n   */\n  var _default = _exports.default = _uiPropertyWatcher.default.extend({\n    authenticatedFetch: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    /**\n     * AbortController for the current fetch\n     *\n     * @property abortController\n     * @type {AbortController}\n     * @default null\n     */\n    abortController: null,\n    /**\n     * the date range object\n     *\n     * @property _dateRange\n     * @type {Object}\n     */\n    dateRange: null,\n    /**\n     * the current organization slug\n     *\n     * @property organizationSlug\n     * @type {String}\n     * @default null\n     */\n    organizationSlug: null,\n    /**\n     * Whether the table is empty\n     *\n     * @computed isTableEmpty\n     * @type {Boolean}\n     */\n    get isTableEmpty() {\n      var _this$campaigns;\n      return !((_this$campaigns = this.campaigns) !== null && _this$campaigns !== void 0 && _this$campaigns.length) && !this.socialMetrics.isRunning;\n    },\n    init() {\n      this._super(...arguments);\n      (0, _object.set)(this, 'tableHeaderOptions', [{\n        i18n: 'reports.socialMetrics.columns.campaign',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.socialMetrics.columns.postings',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.socialMetrics.columns.impressions',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.socialMetrics.columns.clicks',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.socialMetrics.columns.reservations',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.socialMetrics.columns.conversions',\n        minWidth: '80px'\n      }]);\n      (0, _object.setProperties)(this, {\n        // property watcher properties\n        _watchedProperties: ['dateRange', 'organizationSlug'],\n        _onPropertyChange: () => this.socialMetrics.perform()\n      });\n    },\n    /**\n     * fetches social metrics for the social report\n     *\n     * @type {Task}\n     * @function socialMetrics\n     */\n    socialMetrics: (0, _emberConcurrency.task)(function* () {\n      const tasks = [];\n      const baseUrl = _environment.default.APP.apiBaseHost;\n      const {\n        dateRange\n      } = this;\n      const qps = dateRange ? (0, _queryParamUtil.getQueryParams)(dateRange) : '';\n      const chartsUrl = `${baseUrl}/${this.organizationSlug}/reports/social/metrics${qps}`;\n      try {\n        tasks.push(this.authenticatedFetch.fetch(chartsUrl, {\n          signal: this.abortController && this.abortController.signal\n        }));\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        const [response] = yield (0, _emberConcurrency.all)(tasks);\n        const {\n          metrics,\n          campaigns\n        } = yield response.json();\n        (0, _object.setProperties)(this, {\n          metrics,\n          campaigns: campaigns.models\n        });\n      } catch (error) {\n        /* When AbortControllers signal gets aborted, this is intended, so do not show a toast */\n        if (error && error.name === 'AbortError') {\n          return;\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }).restartable().on('init')\n  });\n});","define(\"additive-mc/components/amc-reports/value-added\", [\"exports\", \"additive-mc/config/environment\", \"@additive-apps/ui/components/ui-property-watcher\", \"@ember/object\", \"@ember/service\", \"@ember/object/computed\", \"ember-concurrency\", \"@additive-apps/ui/utils/query-param-util\"], function (_exports, _environment, _uiPropertyWatcher, _object, _service, _computed, _emberConcurrency, _queryParamUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * @module amc-reports\n   */\n  var _default = _exports.default = _uiPropertyWatcher.default.extend({\n    authenticatedFetch: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    uiAppSettings: (0, _service.inject)(),\n    uiPaths: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    currentUser: (0, _service.inject)(),\n    /**\n     * AbortController for the current fetch\n     *\n     * @property abortController\n     * @type {AbortController}\n     * @default null\n     */\n    abortController: null,\n    /**\n     * the filters object\n     *\n     * @property filters\n     * @type {Object}\n     */\n    filters: null,\n    /**\n     * the current organization slug\n     *\n     * @property organizationSlug\n     * @type {String}\n     * @default null\n     */\n    organizationSlug: null,\n    /**\n     * whether the table is empty\n     *\n     * @computed isEmpty\n     * @type {Boolean}\n     */\n    isEmpty: (0, _computed.equal)('marketingActions.length', 0),\n    init() {\n      this._super(...arguments);\n      (0, _object.set)(this, 'tableHeaderOptions', [{\n        i18n: 'reports.valueAdded.columns.action',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.valueAdded.columns.count',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.valueAdded.columns.valuePerAction',\n        minWidth: '80px'\n      }, {\n        i18n: 'reports.valueAdded.columns.turnover',\n        minWidth: '80px'\n      }]);\n      (0, _object.setProperties)(this, {\n        // property watcher properties\n        _watchedProperties: ['filters', 'organizationSlug'],\n        _onPropertyChange: () => this.valueAddedData.perform(),\n        marketingActions: []\n      });\n    },\n    /**\n     * <slug>/reports/value-added\n     *\n     * @throws {Error}\n     */\n    valueAddedData: (0, _emberConcurrency.task)(function* () {\n      try {\n        let tasks = [];\n        const baseUrl = _environment.default.APP.apiBaseHostV2;\n        const {\n          filters\n        } = this;\n        const qps = filters ? (0, _queryParamUtil.getQueryParams)(filters) : '';\n        let url = `${baseUrl}/${this.organizationSlug}/reports/value-added${qps}`;\n\n        // load last orders\n        tasks.push(this.authenticatedFetch.fetch(url, {\n          signal: this.abortController && this.abortController.signal\n        }));\n        tasks.push((0, _emberConcurrency.timeout)(400));\n        const [response] = yield (0, _emberConcurrency.all)(tasks);\n        if (!response || !response.ok) {\n          throw new Error('[DASHBOARD] Error in response');\n        }\n        const {\n          valueAddeds\n        } = yield response.json();\n        (0, _object.set)(this, 'marketingActions', valueAddeds);\n      } catch (error) {\n        /* When AbortControllers signal gets aborted, this is intended, so do not show a toast */\n        if (error && error.name === 'AbortError') {\n          return;\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }).on('init')\n  });\n});","define(\"additive-mc/components/amc-route-card\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class=\"amc-route-card flex items-center pa2 br1 shadow-1 cpointer\"\n    role=\"button\"\n    ...attributes\n    {{on \"click\" this._onClick}}\n  >\n    {{#if this.isEmpty}}\n      {{svg-jar \"thumb-up\" class=\"white\"}}\n      <div class=\"font-sm white ph2\">\n        {{this.title}}\n      </div>\n    {{else}}\n      {{svg-jar this.svg class=\"blue\"}}\n      <div class=\"flex flex-column flex-grow-1 ph2\">\n        <div class=\"font-sm blue\">\n          {{this.title}}\n        </div>\n      </div>\n      {{svg-jar \"arrow-right\" class=\"blue\"}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"0jk6+4Di\",\n    \"block\": \"[[[11,0],[24,0,\\\"amc-route-card flex items-center pa2 br1 shadow-1 cpointer\\\"],[24,\\\"role\\\",\\\"button\\\"],[17,1],[4,[38,0],[\\\"click\\\",[30,0,[\\\"_onClick\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEmpty\\\"]],[[[1,\\\"    \\\"],[1,[28,[35,2],[\\\"thumb-up\\\"],[[\\\"class\\\"],[\\\"white\\\"]]]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-sm white ph2\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"title\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[1,[28,[35,2],[[30,0,[\\\"svg\\\"]]],[[\\\"class\\\"],[\\\"blue\\\"]]]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column flex-grow-1 ph2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm blue\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"title\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[1,[28,[35,2],[\\\"arrow-right\\\"],[[\\\"class\\\"],[\\\"blue\\\"]]]],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"&attrs\\\"],false,[\\\"on\\\",\\\"if\\\",\\\"svg-jar\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-route-card.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcRouteCard = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.string), _dec5 = (0, _emberArgTypes.arg)(_propTypes.string), _class = class AmcRouteCard extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"route\", _descriptor2, this);\n      _initializerDefineProperty(this, \"svg\", _descriptor3, this);\n      _initializerDefineProperty(this, \"title\", _descriptor4, this);\n      _initializerDefineProperty(this, \"start\", _descriptor5, this);\n      _initializerDefineProperty(this, \"end\", _descriptor6, this);\n    }\n    _onClick() {\n      if (!this.route) {\n        return;\n      }\n      this.router.transitionTo(this.route, {\n        queryParams: {\n          start: this.start,\n          end: this.end\n        }\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"route\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"svg\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return '';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"start\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return '';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"end\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_onClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onClick\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcRouteCard);\n});","define(\"additive-mc/components/amc-settings\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"ember-concurrency\", \"@ember/object\", \"@ember/service\", \"@ember/utils\", \"@glimmer/tracking\", \"ember-arg-types\", \"prop-types\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-changeset-validations/validators\", \"rsvp\", \"lodash.merge\", \"lodash.clonedeep\", \"@additive-apps/utils/utils/plans\", \"additive-mc/utils/facebook\", \"additive-mc/validations/settings\"], function (_exports, _component, _templateFactory, _environment, _component2, _emberConcurrency, _object, _service, _utils, _tracking, _emberArgTypes, _propTypes, _emberChangeset, _emberChangesetValidations, _validators, _rsvp, _lodash, _lodash2, _plans, _facebook, _settings) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _descriptor46, _descriptor47, _descriptor48, _descriptor49, _descriptor50, _descriptor51, _descriptor52;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiControlPanelGroup\n    @title={{t \"settings.organizationInfos\"}}\n    @placeholderCount={{4}}\n    @isLoading={{this._loadSettings.isRunning}}\n    @classNames=\"pb2\"\n    as |Group|\n  >\n    <Group.panel\n      @classNames={{unless this.isReadOnly \"amc-settings-name-panel\"}}\n      @label={{t \"settings.name.label\"}}\n      @value={{ui-synced-value\n        this._resource.name\n        sync=this._resource.name.sync\n        value=this._nameDisplay\n      }}\n      @changeset={{this._changeset}}\n      @isReadOnly={{this.isReadOnly}}\n      @onPanelClick={{fn (mut this._isNameDialog) (if this.isReadOnly false true)}}\n      as |panel|\n    >\n      <panel.right>\n        <UiPopover as |pop|>\n          <pop.trigger>\n            <UiIconButton\n              @icon=\"dna\"\n              @bubbles={{false}}\n              @isTertiary={{not this._resource.name.sync}}\n              @isDisabled={{this.isReadOnly}}\n              @onClick={{perform this._toggleSync \"name\"}}\n            />\n          </pop.trigger>\n          <pop.content>\n            {{t \"settings.inheritanceDescription\"}}\n          </pop.content>\n        </UiPopover>\n      </panel.right>\n    </Group.panel>\n    <Group.panel\n      @label={{t \"settings.email.label\"}}\n      @value={{ui-synced-value\n        this._resource.email\n        sync=this._resource.email.sync\n        value=this._resource.email.value\n      }}\n      @changeset={{this._changeset}}\n      @isReadOnly={{this.isReadOnly}}\n      @modal={{hash title=(t \"settings.email.modalTitle\") actionLabel=(t \"global.actions.save\")}}\n      @onClick={{perform this._updateSettingsWithChangeset this._changeset}}\n      as |panel|\n    >\n      <panel.right>\n        <UiPopover as |pop|>\n          <pop.trigger>\n            <UiIconButton\n              @icon=\"dna\"\n              @bubbles={{false}}\n              @isTertiary={{not this._resource.email.sync}}\n              @isDisabled={{this.isReadOnly}}\n              @onClick={{perform this._toggleSync \"email\"}}\n            />\n          </pop.trigger>\n          <pop.content>\n            {{t \"settings.inheritanceDescription\"}}\n          </pop.content>\n        </UiPopover>\n      </panel.right>\n      <panel.modal>\n        <Grid @columns=\"1,2\" @gap=\"16\">\n          <UiInput\n            @label={{concat (t \"settings.email.local.label\") \" *\"}}\n            @value={{this._senderLocal}}\n            @isTouched={{this._senderEmailEdited}}\n            @errorMessage={{get this._changeset.error.email \"validation\"}}\n            @onChange={{this.onSenderLocalChange}}\n          />\n          <UiSelect\n            @label={{concat (t \"settings.email.domain.label\") \" *\"}}\n            @options={{this._domainOptions}}\n            @selected={{this._selectedDomainLabel}}\n            @initialValue={{this._senderDomain}}\n            @objectKey=\"label\"\n            @onChange={{this.onSenderDomainChange}}\n            as |optionComponent option|\n          >\n            <optionComponent.item @value={{option.value}}>\n              {{option.label}}\n            </optionComponent.item>\n          </UiSelect>\n        </Grid>\n        <UiFormMessage\n          class=\"amc-sender-email-info\"\n          @value={{t \"settings.email.input.message\"}}\n        />\n      </panel.modal>\n    </Group.panel>\n  </UiControlPanelGroup>\n  <UiControlPanelGroup\n    @title={{t \"settings.emailNotifications.label\"}}\n    @placeholderCount={{2}}\n    @isLoading={{this._loadSettings.isRunning}}\n    @classNames=\"pb2\"\n    as |Group|\n  >\n    <Group.panel\n      @label={{t \"settings.emailNotifications.statistics.label\"}}\n      @value={{this._changeset.statisticsRecipients}}\n      @changeset={{this._changeset}}\n      @isReadOnly={{this.isReadOnly}}\n      @modal={{hash\n        title=(t \"settings.emailNotifications.statistics.label\")\n        actionLabel=(t \"global.actions.save\")\n      }}\n      @onClick={{perform this._updateSettingsWithChangeset this._changeset}}\n      as |panel|\n    >\n      <panel.modal>\n        <UiInput\n          @label={{t \"settings.emailNotifications.statistics.input.label\"}}\n          @infoMessage={{t \"settings.emailNotifications.statistics.input.message\"}}\n          @value={{this._changeset.statisticsRecipients}}\n        />\n      </panel.modal>\n    </Group.panel>\n  </UiControlPanelGroup>\n  \n  <UiControlPanelGroup\n    @title={{t \"settings.landingPageUrl.label\"}}\n    @placeholderCount={{1}}\n    @isLoading={{this._loadSettings.isRunning}}\n    @classNames=\"pb2\"\n    as |Group|\n  >\n    <Group.panel\n      @label={{t \"settings.landingPageUrl.label\"}}\n      @value={{this._changeset.landingPageUrl}}\n      @changeset={{this._changeset}}\n      @isReadOnly={{this.isReadOnly}}\n      @modal={{hash title=(t \"settings.landingPageUrl.label\") actionLabel=(t \"global.actions.save\")}}\n      @onClick={{perform this._updateSettingsWithChangeset this._changeset}}\n      as |panel|\n    >\n      <panel.modal>\n        <UiInput\n          @label={{t \"settings.landingPageUrl.input.label\"}}\n          @infoMessage={{t \"settings.landingPageUrl.input.message\"}}\n          @errorMessage={{get this._changeset.error.landingPageUrl \"validation\"}}\n          @value={{this._changeset.landingPageUrl}}\n        />\n      </panel.modal>\n    </Group.panel>\n  \n    {{#if this.isAdditive}}\n      <Group.panel\n        @label={{t \"settings.landingPage.label\"}}\n        @value={{get (array-find this._changeset.landingPage this._availableLandingPages) \"label\"}}\n        @changeset={{this._changeset}}\n        @isReadOnly={{this.isReadOnly}}\n        @modal={{hash title=(t \"settings.landingPage.label\") actionLabel=(t \"global.actions.save\")}}\n        @onClick={{perform this._updateSettingsWithChangeset this._changeset}}\n        as |panel|\n      >\n        <panel.right>\n          {{! TODO: remove once available to all }}\n          <div class=\"blue bg-blue--10 ph1 pv05 br1 font-xs\">\n            Beta\n          </div>\n        </panel.right>\n        <panel.modal>\n          <UiSelect\n            @label={{t \"settings.landingPage.input.label\"}}\n            @selected={{this._selectedLandingPage}}\n            @initialValue={{this._changeset.landingPage}}\n            @options={{this._availableLandingPages}}\n            @objectKey=\"label\"\n            @onChange={{this.onChangeLandingPage}}\n            as |optionComponent option|\n          >\n            <optionComponent.item @value={{option.value}}>\n              {{option.label}}\n            </optionComponent.item>\n          </UiSelect>\n        </panel.modal>\n      </Group.panel>\n    {{/if}}\n  </UiControlPanelGroup>\n  \n  <AmcSettings::BirthdayVoucherLink\n    @values={{this._changeset.voucherLink}}\n    @isReadOnly={{this.isReadOnly}}\n    @isLoading={{this._loadSettings.isRunning}}\n    @availableLanguages={{this._availableLanguages}}\n    @onSave={{this.onSaveVoucherLink}}\n  />\n  \n  <UiControlPanelGroup\n    @title={{t \"settings.vouchers.label\"}}\n    @placeholderCount={{1}}\n    @isLoading={{this._loadSettings.isRunning}}\n    @classNames=\"pb2\"\n    as |Group|\n  >\n    <Group.panel\n      @classNames={{unless this.isMember \"amc-settings-voucher-greeting-text-panel\"}}\n      @label={{t \"settings.vouchers.greetingText.label\"}}\n      @value={{this._voucherGreetingTextDisplay}}\n      @changeset={{this._changeset.voucherGreetingText}}\n      @isReadOnly={{this.isReadOnly}}\n      @onPanelClick={{fn (mut this._isVoucherGreetingTextDialog) (if this.isMember false true)}}\n    />\n    <Group.panel\n      @label={{t \"settings.vouchers.validityPeriod.label\"}}\n      @value={{get\n        (array-find this._resource.voucherValidityPeriod this._allowedVoucherValidityPeriods)\n        \"label\"\n      }}\n      @changeset={{this._changeset}}\n      @isReadOnly={{this.isReadOnly}}\n      @modal={{hash\n        title=(t \"settings.vouchers.validityPeriod.modalTitle\")\n        actionLabel=(t \"global.actions.save\")\n      }}\n      @onClick={{perform this._updateSettingsWithChangeset this._changeset}}\n      as |panel|\n    >\n      <panel.modal>\n        <UiSelect\n          @label={{t \"settings.vouchers.validityPeriod.label\"}}\n          @initialValue={{this._changeset.voucherValidityPeriod}}\n          @selected={{get\n            (array-find this._changeset.voucherValidityPeriod this._allowedVoucherValidityPeriods)\n            \"label\"\n          }}\n          @options={{this._allowedVoucherValidityPeriods}}\n          @objectKey=\"label\"\n          @onChange={{changeset-set this._changeset \"voucherValidityPeriod\"}}\n          as |optionComponent option|\n        >\n          <optionComponent.item @value={{option.value}}>\n            {{option.label}}\n          </optionComponent.item>\n        </UiSelect>\n      </panel.modal>\n    </Group.panel>\n  </UiControlPanelGroup>\n  <UiControlPanelGroup\n    @title={{t \"settings.freeRooms.label\"}}\n    @placeholderCount={{1}}\n    @isLoading={{this._loadSettings.isRunning}}\n    @classNames=\"pb2\"\n    as |Group|\n  >\n    <Group.panel\n      @label={{t \"settings.freeRooms.promote.label\"}}\n      @isReadOnly={{this.isReadOnly}}\n      @modal={{hash\n        title=(t \"settings.freeRooms.promote.modalTitle\" active=this._resource.promoteFreeRooms)\n        actionLabel=(t\n          (concat \"global.actions.\" (if this._resource.promoteFreeRooms \"deactivate\" \"activate\"))\n        )\n      }}\n      @onClick={{perform this._toggleValue \"promoteFreeRooms\"}}\n      @isSmall={{true}}\n      as |panel|\n    >\n      <panel.right>\n        <UiSwitch @value={{this._resource.promoteFreeRooms}} @isReadOnly={{this.isReadOnly}} />\n      </panel.right>\n      <panel.modal>\n        {{t \"settings.freeRooms.promote.modalDescription\" active=this._resource.promoteFreeRooms}}\n      </panel.modal>\n    </Group.panel>\n  </UiControlPanelGroup>\n  <UiControlPanelGroup\n    @title={{t \"settings.emailSending.label\"}}\n    @placeholderCount={{2}}\n    @isLoading={{this._loadSettings.isRunning}}\n    @classNames=\"pb2\"\n    as |Group|\n  >\n    <Group.panel\n      @label={{t \"settings.emailSending.sendAt.label\"}}\n      @changeset={{this._changeset}}\n      @value={{this._changeset.sendAt}}\n      @isReadOnly={{this.isReadOnly}}\n      @modal={{hash\n        title=(t \"settings.emailSending.sendAt.label\")\n        actionLabel=(t \"global.actions.save\")\n      }}\n      @onClick={{perform this._updateSettingsWithChangeset this._changeset}}\n      @onClose={{fn (mut this._sendAtIsValid) true}}\n      as |panel|\n    >\n      <panel.modal>\n        <UiTimepicker\n          @label={{t \"settings.emailSending.sendAt.label\"}}\n          @minTime=\"00:00\"\n          @maxTime=\"23:59\"\n          @initialValue={{this._changeset.sendAt}}\n          @onChange={{this.onSendAtChange}}\n          @onValidStateChange={{fn (mut this._sendAtIsValid)}}\n        />\n      </panel.modal>\n    </Group.panel>\n    <Group.panel\n      @label={{t \"settings.emailSending.standardEmailHeader.label\"}}\n      @changeset={{this._changeset}}\n      @value={{if\n        this._changeset.standardEmailHeader\n        (t \"settings.emailSending.standardEmailHeader.preview\")\n        null\n      }}\n      @modal={{hash\n        title=(t \"settings.emailSending.standardEmailHeader.label\")\n        actionLabel=(t \"global.actions.save\")\n        isReadOnly=this.isReadOnly\n      }}\n      @onClick={{perform this._updateSettingsWithChangeset this._changeset}}\n      @onClose={{fn (mut this._sendAtIsValid) true}}\n      as |panel|\n    >\n      <panel.modal>\n        <div class=\"flex\">\n          <MmResourceGallery\n            @class=\"w-100\"\n            @resources={{changeset-get this._changeset \"standardEmailHeader\"}}\n            @onDropzoneClick={{this.openMultimedia}}\n            @onResourceRemove={{this.onResourceRemove}}\n            @onResourceEdit={{fn (changeset-set this._changeset \"standardEmailHeader\")}}\n            @isReadOnly={{this.isReadOnly}}\n            @mediumType=\"image\"\n          />\n        </div>\n      </panel.modal>\n    </Group.panel>\n    <Group.panel\n      @label={{t \"settings.customEmailTemplate.label\"}}\n      @isReadOnly={{this.isReadOnly}}\n      @modal={{hash\n        title=(t\n          \"settings.customEmailTemplate.modalTitle\" active=this._resource.useCustomEmailTemplate\n        )\n        actionLabel=(t\n          (concat\n            \"global.actions.\" (if this._resource.useCustomEmailTemplate \"deactivate\" \"activate\")\n          )\n        )\n      }}\n      @onClick={{perform this._toggleValue \"useCustomEmailTemplate\"}}\n      @isSmall={{true}}\n      as |panel|\n    >\n      <panel.right>\n        <UiSwitch @value={{this._resource.useCustomEmailTemplate}} @isReadOnly={{this.isReadOnly}} />\n      </panel.right>\n      <panel.modal>\n        {{t\n          \"settings.customEmailTemplate.modalDescription\"\n          active=this._resource.useCustomEmailTemplate\n        }}\n      </panel.modal>\n    </Group.panel>\n    <Group.panel\n      @label={{t \"settings.emailReceivers.label\"}}\n      @changeset={{this._changeset}}\n      @value={{t\n        (concat\n          \"settings.emailReceivers.preference.labels.\" this._changeset.emailReceivers.preference.value\n        )\n      }}\n      @isReadOnly={{this.isReadOnly}}\n      @modal={{hash title=(t \"settings.emailReceivers.label\") actionLabel=(t \"global.actions.save\")}}\n      @onClick={{perform this._updateSettingsWithChangeset this._changeset}}\n      @onClose={{this.closeEmailReceiverDialog}}\n      as |panel|\n    >\n      <panel.modal>\n        <div {{did-insert (perform this._fetchEstimates)}}></div>\n        {{t \"settings.emailReceivers.preference.description\"}}\n        <span class=\"mb2\"></span>\n        {{#each this._emailReceiverOptions as |option|}}\n          <UiAccordion\n            @class=\"pt2\"\n            @title={{option.label}}\n            @description={{option.description}}\n            @value={{option.value}}\n            @selectedValue={{this._changeset.emailReceivers.preference.value}}\n            @isSelectable={{true}}\n            @onSelect={{fn this.onEmailReceiverChange option.value}}\n            as |accordion|\n          >\n            <accordion.content>\n              <UiBadge @class=\"flex dif mt05\" @state=\"info\">\n                {{#if this._fetchEstimates.isRunning}}\n                  <UiLoading @width={{16}} @height={{16}} @class=\"mr1\" />\n                  {{t \"settings.emailReceivers.preference.loading\"}}\n                {{else}}\n                  {{svg-jar \"people\" class=\"mr1\" width=\"16\" height=\"16\"}}\n                  {{format-number (or (get this._emailReceiverEstimates option.value) \"0\")}}\n                {{/if}}\n              </UiBadge>\n            </accordion.content>\n          </UiAccordion>\n        {{/each}}\n      </panel.modal>\n    </Group.panel>\n  </UiControlPanelGroup>\n  <UiControlPanelGroup\n    @title={{t \"settings.attributions.label\"}}\n    @placeholderCount={{3}}\n    @isLoading={{this._loadSettings.isRunning}}\n    @classNames=\"pb2\"\n    as |Group|\n  >\n    <Group.panel\n      @label={{t \"settings.attributions.calculateConverions.title\"}}\n      @isReadOnly={{or\n        this.isReadOnly\n        (not\n          (and\n            this._changeset.conversionRateRequestsToReservations\n            this._changeset.averageReservationRevenue\n          )\n        )\n      }}\n      @modal={{hash\n        title=(t\n          \"settings.attributions.calculateConverions.modalTitle\"\n          active=this._resource.calculateConversionValuesAsRevenue\n        )\n        actionLabel=(t\n          (concat\n            \"global.actions.\"\n            (if this._resource.calculateConversionValuesAsRevenue \"deactivate\" \"activate\")\n          )\n        )\n        size=\"md\"\n      }}\n      @onClick={{perform this._toggleValue \"useEmpiricalDataToCalculateRevenue\"}}\n      @isSmall={{true}}\n      as |panel|\n    >\n      <panel.right>\n        <UiSwitch\n          @value={{this._resource.calculateConversionValuesAsRevenue}}\n          @isReadOnly={{or\n            this.isReadOnly\n            (not\n              (and\n                this._changeset.conversionRateRequestsToReservations\n                this._changeset.averageReservationRevenue\n              )\n            )\n          }}\n        />\n      </panel.right>\n      <panel.modal>\n        {{t\n          \"settings.attributions.calculateConverions.modalDescription\"\n          active=this._resource.calculateConversionValuesAsRevenue\n          htmlSafe=true\n        }}\n      </panel.modal>\n    </Group.panel>\n    <Group.panel\n      @label={{t \"settings.attributions.useEmpiricalData.title\"}}\n      @isReadOnly={{or\n        this.isReadOnly\n        (not\n          (and\n            this._changeset.conversionRateRequestsToReservations\n            this._changeset.averageReservationRevenue\n          )\n        )\n      }}\n      @modal={{hash\n        title=(t\n          \"settings.attributions.useEmpiricalData.modalTitle\"\n          active=this._resource.useEmpiricalDataToCalculateRevenue\n        )\n        actionLabel=(t\n          (concat\n            \"global.actions.\"\n            (if this._resource.useEmpiricalDataToCalculateRevenue \"deactivate\" \"activate\")\n          )\n        )\n        size=\"md\"\n      }}\n      @onClick={{perform this._toggleValue \"useEmpiricalDataToCalculateRevenue\"}}\n      @isSmall={{true}}\n      as |panel|\n    >\n      <panel.right>\n        <UiSwitch\n          @value={{this._resource.useEmpiricalDataToCalculateRevenue}}\n          @isReadOnly={{or\n            this.isReadOnly\n            (not\n              (and\n                this._changeset.conversionRateRequestsToReservations\n                this._changeset.averageReservationRevenue\n              )\n            )\n          }}\n        />\n      </panel.right>\n      <panel.modal>\n        {{t\n          \"settings.attributions.useEmpiricalData.modalDescription\"\n          active=this._resource.useEmpiricalDataToCalculateRevenue\n          htmlSafe=true\n        }}\n      </panel.modal>\n    </Group.panel>\n    <Group.panel\n      @label={{t \"settings.attributions.conversionRate.title\"}}\n      @value={{this._changeset.conversionRateRequestsToReservations}}\n      @changeset={{this._changeset}}\n      @isReadOnly={{this.isReadOnly}}\n      @modal={{hash\n        title=(t \"settings.attributions.conversionRate.title\")\n        actionLabel=(t \"global.actions.save\")\n      }}\n      @onClick={{perform this._updateSettingsWithChangeset this._changeset}}\n      as |panel|\n    >\n      <panel.modal>\n        <UiInput\n          @label={{t \"settings.attributions.conversionRate.description\"}}\n          @errorMessage={{this._changeset.error.conversionRateRequestsToReservations.validation.firstObject}}\n          @value={{this._changeset.conversionRateRequestsToReservations}}\n        />\n      </panel.modal>\n    </Group.panel>\n    <Group.panel\n      @label={{t \"settings.attributions.averageReservationRevenue.title\"}}\n      @value={{if\n        this._changeset.averageReservationRevenue\n        (ui-format-currency\n          this._changeset.averageReservationRevenue\n          this.uiAppSettings.currency\n          this.currentUser.user.language\n          0\n          0\n          1\n        )\n        \"-\"\n      }}\n      @changeset={{this._changeset}}\n      @isReadOnly={{this.isReadOnly}}\n      @modal={{hash\n        title=(t \"settings.attributions.averageReservationRevenue.title\")\n        actionLabel=(t \"global.actions.save\")\n      }}\n      @onClick={{perform this._updateSettingsWithChangeset this._changeset}}\n      as |panel|\n    >\n      <panel.modal>\n        <UiInput\n          @label={{t\n            (concat\n              \"settings.attributions.averageReservationRevenue.description.\"\n              this.uiAppSettings.currency\n            )\n          }}\n          @errorMessage={{this._changeset.error.averageReservationRevenue.validation.firstObject}}\n          @value={{this._changeset.averageReservationRevenue}}\n          as |input|\n        >\n          <input.right>\n            {{currency-symbol this.uiAppSettings.currency}}\n          </input.right>\n        </UiInput>\n      </panel.modal>\n    </Group.panel>\n  </UiControlPanelGroup>\n  <UiControlPanelGroup\n    @title={{t \"settings.languages.label\"}}\n    @placeholderCount={{3}}\n    @isLoading={{this._loadSettings.isRunning}}\n    @classNames=\"pb2\"\n    as |Group|\n  >\n    {{#if this._availableLanguages}}\n      {{#each this._availableLanguages as |language|}}\n        <Group.panel\n          @label={{t (concat \"global.languages.\" language)}}\n          @isReadOnly={{this.isReadOnly}}\n          @modal={{hash\n            title=(t\n              \"settings.languages.modalTitle\"\n              language=(t (concat \"global.languages.\" language))\n              active=(get this._resource.languages language)\n            )\n            actionLabel=(t\n              (concat\n                \"global.actions.\" (if (get this._resource.languages language) \"deactivate\" \"activate\")\n              )\n            )\n          }}\n          @onClick={{perform this._toggleValue (concat \"languages.\" language)}}\n          @isSmall={{true}}\n          as |panel|\n        >\n          <panel.right>\n            <UiSwitch\n              @value={{get this._resource.languages language}}\n              @isReadOnly={{this.isReadOnly}}\n            />\n          </panel.right>\n          <panel.modal>\n            {{t\n              \"settings.languages.modalDescription\"\n              language=(t (concat \"global.languages.\" language))\n              active=(get this._resource.languages language)\n            }}\n          </panel.modal>\n        </Group.panel>\n      {{/each}}\n    {{/if}}\n  </UiControlPanelGroup>\n  {{#if this._showSocialNetworksConnection}}\n    <UiControlPanelGroup\n      @title={{t \"settings.socialNetworks.label\"}}\n      @placeholderCount={{1}}\n      @isLoading={{this._loadSettings.isRunning}}\n      @classNames=\"pb2\"\n      as |Group|\n    >\n      <AmcSettings::FacebookConnect\n        @isReadOnly={{this.isReadOnly}}\n        @changeset={{this._changeset}}\n        @value={{this._changeset.facebookOAuth}}\n        @onChange={{perform this.onFacebookLogin}}\n        @onClick={{this.openFacebookDialog}}\n        @onFacebookDisconnect={{this.onFacebookDisconnect}}\n        @controlPanelGroup={{Group}}\n        @onSubmit={{this.onLoginSubmit}}\n      />\n      {{#if this._isFBModalOpen}}\n        <UiModal\n          @size=\"md\"\n          @title={{t \"settings.socialNetworks.facebookInstagram.label\"}}\n          @onClose={{this.abortFBLogin}}\n          as |modal|\n        >\n          <modal.header />\n          <modal.content as |content|>\n            <content.body>\n              {{#if this.onFacebookLogin.isRunning}}\n                <UiSkeleton @classNames=\"mt3\" @cardHeight={{48}} @items={{1}} @itemsPerRow=\"1\" />\n              {{else}}\n                {{#unless this._useSystemUserFlow}}\n                  <UiSelect\n                    @label={{t\n                      \"settings.socialNetworks.facebookInstagram.input.businessManager.label\"\n                    }}\n                    @initialValue={{this._changeset.socialNetworks.businessManager.value}}\n                    @selected={{this._changeset.socialNetworks.businessManager.value.label}}\n                    @options={{this._businessManagerOptions}}\n                    @isSearchable={{true}}\n                    @objectKey=\"label\"\n                    @isReadOnly={{this._isFBModalReadOnly}}\n                    @useFullTextSearch={{true}}\n                    @onChange={{perform this.onBusinessManagerSelectChange}}\n                    as |optionComponent option|\n                  >\n                    <optionComponent.item @value={{option}}>\n                      {{option.label}}\n                    </optionComponent.item>\n                  </UiSelect>\n                {{/unless}}\n                {{#if this.onBusinessManagerSelectChange.isRunning}}\n                  <UiSkeleton\n                    @classNames=\"mt3\"\n                    @cardHeight={{48}}\n                    @items={{2}}\n                    @gap={{24}}\n                    @itemsPerRow=\"1\"\n                  />\n                {{else}}\n                  {{#if\n                    (or\n                      this._changeset.socialNetworks.businessManager.value.label\n                      this._useSystemUserFlow\n                    )\n                  }}\n                    <UiSelect\n                      @label={{t\n                        \"settings.socialNetworks.facebookInstagram.input.facebookPage.label\"\n                      }}\n                      @initialValue={{this._changeset.socialNetworks.facebookPage.value}}\n                      @selected={{this._changeset.socialNetworks.facebookPage.value.label}}\n                      @options={{this._facebookPageOptions}}\n                      @isSearchable={{true}}\n                      @objectKey=\"label\"\n                      @isReadOnly={{this._isFBModalReadOnly}}\n                      @useFullTextSearch={{true}}\n                      @onChange={{fn\n                        this.onSocialSelectChange\n                        (if this._useSystemUserFlow \"systemUserPage\" \"facebookPage\")\n                      }}\n                      as |optionComponent option|\n                    >\n                      <optionComponent.item @value={{option}}>\n                        {{option.label}}\n                      </optionComponent.item>\n                    </UiSelect>\n                  {{/if}}\n  \n                  {{#if\n                    (or this.fetchInstagramOptions.isRunning this.fetchFacebookAccounts.isRunning)\n                  }}\n                    <UiSkeleton @classNames=\"mt3\" @cardHeight={{48}} @items={{1}} @gap={{8}} />\n                  {{else}}\n                    {{#if this._instagramOptions.length}}\n                      <UiSelect\n                        @label={{t \"settings.socialNetworks.facebookInstagram.input.instagram.label\"}}\n                        @initialValue={{this._changeset.socialNetworks.instagram.value}}\n                        @selected={{this._changeset.socialNetworks.instagram.value.label}}\n                        @options={{this._instagramOptions}}\n                        @isSearchable={{true}}\n                        @objectKey=\"label\"\n                        @isReadOnly={{this._isFBModalReadOnly}}\n                        @useFullTextSearch={{true}}\n                        @onChange={{fn this.onSocialSelectChange \"instagram\"}}\n                        as |optionComponent option|\n                      >\n                        <optionComponent.item @value={{option}}>\n                          {{option.label}}\n                        </optionComponent.item>\n                      </UiSelect>\n                    {{/if}}\n                  {{/if}}\n  \n                  {{#if this.fetchFacebookAccounts.isRunning}}\n                    <UiSkeleton @classNames=\"mt3\" @cardHeight={{48}} @items={{1}} @gap={{8}} />\n                  {{else}}\n                    {{#if\n                      (or\n                        this._changeset.socialNetworks.businessManager.value.label\n                        (and\n                          this._useSystemUserFlow\n                          this._changeset.socialNetworks.facebookPage.value.label\n                        )\n                      )\n                    }}\n                      <UiSelect\n                        @label={{t \"settings.socialNetworks.facebookInstagram.input.adAccount.label\"}}\n                        @initialValue={{this._changeset.socialNetworks.adAccount.value}}\n                        @selected={{this._changeset.socialNetworks.adAccount.value.label}}\n                        @options={{this._adAccountOptions}}\n                        @isSearchable={{true}}\n                        @objectKey=\"label\"\n                        @isReadOnly={{this._isFBModalReadOnly}}\n                        @useFullTextSearch={{true}}\n                        @onChange={{fn\n                          this.onSocialSelectChange\n                          (if this._useSystemUserFlow \"systemUserAdAccount\" \"adAccount\")\n                        }}\n                        as |optionComponent option|\n                      >\n                        <optionComponent.item @value={{option}}>\n                          {{option.label}}\n                        </optionComponent.item>\n                      </UiSelect>\n                    {{/if}}\n                  {{/if}}\n  \n                  {{#if\n                    (or\n                      this.fetchFacebookPixelOptions.isRunning\n                      this.fetchSystemUserFacebookPixelOptions.isRunning\n                    )\n                  }}\n                    <UiSkeleton @classNames=\"mt3\" @cardHeight={{48}} @items={{1}} @gap={{8}} />\n                  {{else}}\n                    {{#if this._facebookPixelOptions.length}}\n                      <UiSelect\n                        @label={{t\n                          \"settings.socialNetworks.facebookInstagram.input.facebookPixel.label\"\n                        }}\n                        @initialValue={{this._changeset.socialNetworks.facebookPixel.value}}\n                        @selected={{this._changeset.socialNetworks.facebookPixel.value.label}}\n                        @options={{this._facebookPixelOptions}}\n                        @isSearchable={{true}}\n                        @objectKey=\"label\"\n                        @isReadOnly={{this._isFBModalReadOnly}}\n                        @useFullTextSearch={{true}}\n                        @onChange={{fn this.onSocialSelectChange \"facebookPixel\"}}\n                        as |optionComponent option|\n                      >\n                        <optionComponent.item @value={{option}}>\n                          {{option.label}}\n                        </optionComponent.item>\n                      </UiSelect>\n                    {{/if}}\n                  {{/if}}\n                {{/if}}\n              {{/if}}\n            </content.body>\n          </modal.content>\n          <modal.footer>\n            {{#unless this._isFBModalReadOnly}}\n              <UiButton\n                @isSecondary={{true}}\n                @isDisabled={{or\n                  this._isFBSavingDisabled\n                  this._updateSettingsWithChangeset.isRunning\n                }}\n                @label={{t \"global.actions.save\"}}\n                @onClick={{fn this.onLoginSubmit \"save\"}}\n              />\n            {{/unless}}\n          </modal.footer>\n        </UiModal>\n      {{/if}}\n  \n      <AmcSettings::TikTokConnect\n        @value={{this._changeset.tiktokOAuth}}\n        @adAccount={{this._changeset.socialNetworks.tiktok.value}}\n        @isReadOnly={{this.isReadOnly}}\n        @onClick={{this.openTikTokDialog}}\n        @onConnect={{this._connectTikTok}}\n        @controlPanelGroup={{Group}}\n        @onDisconnect={{this._disconnectTikTok}}\n      />\n      {{#if this._isTikTokModalOpen}}\n        <UiModal\n          @size=\"sm\"\n          @title={{t \"settings.socialNetworks.tiktokOAuth.dialog.title\"}}\n          @onClose={{this._abortTikTokLogin}}\n          as |modal|\n        >\n          <modal.header />\n          <modal.content as |content|>\n            <content.body>\n              <UiSelect\n                @label={{t \"settings.socialNetworks.tiktokOAuth.dialog.adAccount\"}}\n                @initialValue={{this._changeset.socialNetworks.tiktok.value}}\n                @selected={{this._changeset.socialNetworks.tiktok.value.label}}\n                @options={{this._availableTiktokAdAccounts}}\n                @objectKey=\"label\"\n                @isSearchable={{true}}\n                @useFullTextSearch={{true}}\n                @isReadOnly={{this._isTikTokModalReadOnly}}\n                @onChange={{fn this.onSocialSelectChange \"tiktok\"}}\n                as |optionComponent option|\n              >\n                <optionComponent.item @value={{option}}>\n                  {{option.label}}\n                </optionComponent.item>\n              </UiSelect>\n            </content.body>\n          </modal.content>\n          <modal.footer>\n            <UiButton\n              @isSecondary={{true}}\n              @isDisabled={{or\n                this._isTikTokModalReadOnly\n                (not this._changeset.socialNetworks.tiktok.value.value)\n              }}\n              @label={{t \"global.actions.save\"}}\n              @onClick={{this._onTikTokSubmit}}\n            />\n          </modal.footer>\n        </UiModal>\n      {{/if}}\n  \n    </UiControlPanelGroup>\n  {{/if}}\n  \n  <UiControlPanelGroup\n    @title={{t \"settings.demoMode.label\"}}\n    @placeholderCount={{1}}\n    @isLoading={{this._loadSettings.isRunning}}\n    @classNames=\"pb2\"\n    as |Group|\n  >\n    <Group.panel\n      @label={{t \"settings.demoMode.label\"}}\n      @isReadOnly={{this.isReadOnly}}\n      @modal={{hash\n        title=(t \"settings.demoMode.modalTitle\" active=this._resource.demoMode)\n        actionLabel=(t\n          (concat \"global.actions.\" (if this._resource.demoMode \"deactivate\" \"activate\"))\n        )\n      }}\n      @onClick={{perform this._toggleValue \"demoMode\"}}\n      @isSmall={{true}}\n      @classNames=\"mb2\"\n      as |panel|\n    >\n      <panel.right>\n        <UiSwitch @value={{this._resource.demoMode}} @isReadOnly={{this.isReadOnly}} />\n      </panel.right>\n      <panel.modal>\n        {{t \"settings.demoMode.modalDescription\" active=this._resource.demoMode}}\n      </panel.modal>\n    </Group.panel>\n  </UiControlPanelGroup>\n  \n  {{#if this._isNameDialog}}\n    <UiModal @title={{t \"settings.name.modalTitle\"}} @size=\"md\" @onClose={{this.onNameClose}} as |m|>\n      <m.header />\n      <m.content as |c|>\n        <c.body>\n          {{#each this._availableLanguages as |language|}}\n            <UiInput\n              @label={{t (concat \"global.languages.\" language)}}\n              @value={{get this._changeset.name.value language}}\n              @onChange={{fn this.onNameSingleLanguageChange language}}\n            />\n          {{/each}}\n        </c.body>\n      </m.content>\n      <m.footer>\n        <UiButton\n          @label={{t \"global.actions.save\"}}\n          @isSecondary={{true}}\n          @onClick={{this.onNameSave}}\n        />\n      </m.footer>\n    </UiModal>\n    <UiDiscardChanges\n      @isOpen={{this._isNameDiscardChangesDialog}}\n      @onDiscard={{this.confirmNameDiscard}}\n      @onClose={{fn (mut this._isNameDiscardChangesDialog)}}\n    />\n  {{/if}}\n  \n  {{#if this._isVoucherGreetingTextDialog}}\n    <UiModal\n      @title={{t \"settings.vouchers.greetingText.modalTitle\"}}\n      @size=\"md\"\n      @onClose={{this.onVoucherGreetingTextDialogClose}}\n      as |dialog|\n    >\n      <dialog.header />\n      <dialog.content as |c|>\n        <c.body @class=\"{{if this.isReadOnly 'pb2' ''}}\">\n          {{#each this._availableLanguages as |language|}}\n            <UiInput\n              @label={{t (concat \"global.languages.\" language)}}\n              @value={{get this._changeset.voucherGreetingText language}}\n              @textarea={{true}}\n              @maxlength={{200}}\n              @isReadOnly={{this.isReadOnly}}\n              @onChange={{fn this.onVoucherGreetingTextLanguageChange language}}\n              @errorMessage={{get\n                this._changeset.error.voucherGreetingText\n                (concat language \".validation\")\n              }}\n            />\n          {{/each}}\n        </c.body>\n      </dialog.content>\n      {{#unless this.isReadOnly}}\n        <dialog.footer>\n          <UiButton\n            @label={{t \"global.actions.save\"}}\n            @isSecondary={{true}}\n            @onClick={{this.onVoucherGreetingTextSave}}\n          />\n        </dialog.footer>\n      {{/unless}}\n    </UiModal>\n  {{/if}}\n  \n  <MmMultimediaOverlay @onClose={{this.closeMultimedia}} @onAddMedium={{this.addMedium}}>\n    {{yield}}\n  </MmMultimediaOverlay>\n  */\n  {\n    \"id\": \"LmlKHJfD\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@placeholderCount\\\",\\\"@isLoading\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"settings.organizationInfos\\\"],null],4,[30,0,[\\\"_loadSettings\\\",\\\"isRunning\\\"]],\\\"pb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"panel\\\"]],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@value\\\",\\\"@changeset\\\",\\\"@isReadOnly\\\",\\\"@onPanelClick\\\"],[[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"amc-settings-name-panel\\\"],[28,[37,1],[\\\"settings.name.label\\\"],null],[28,[37,3],[[30,0,[\\\"_resource\\\",\\\"name\\\"]]],[[\\\"sync\\\",\\\"value\\\"],[[30,0,[\\\"_resource\\\",\\\"name\\\",\\\"sync\\\"]],[30,0,[\\\"_nameDisplay\\\"]]]]],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,4],[[28,[37,5],[[30,0,[\\\"_isNameDialog\\\"]]],null],[52,[30,0,[\\\"isReadOnly\\\"]],false,true]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,7],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@bubbles\\\",\\\"@isTertiary\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"dna\\\",false,[28,[37,9],[[30,0,[\\\"_resource\\\",\\\"name\\\",\\\"sync\\\"]]],null],[30,0,[\\\"isReadOnly\\\"]],[28,[37,10],[[30,0,[\\\"_toggleSync\\\"]],\\\"name\\\"],null]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"settings.inheritanceDescription\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[3]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@changeset\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"settings.email.label\\\"],null],[28,[37,3],[[30,0,[\\\"_resource\\\",\\\"email\\\"]]],[[\\\"sync\\\",\\\"value\\\"],[[30,0,[\\\"_resource\\\",\\\"email\\\",\\\"sync\\\"]],[30,0,[\\\"_resource\\\",\\\"email\\\",\\\"value\\\"]]]]],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,1],[\\\"settings.email.modalTitle\\\"],null],[28,[37,1],[\\\"global.actions.save\\\"],null]]]],[28,[37,10],[[30,0,[\\\"_updateSettingsWithChangeset\\\"]],[30,0,[\\\"_changeset\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,4,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,7],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,5,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@bubbles\\\",\\\"@isTertiary\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"dna\\\",false,[28,[37,9],[[30,0,[\\\"_resource\\\",\\\"email\\\",\\\"sync\\\"]]],null],[30,0,[\\\"isReadOnly\\\"]],[28,[37,10],[[30,0,[\\\"_toggleSync\\\"]],\\\"email\\\"],null]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,5,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"settings.inheritanceDescription\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[5]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,4,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,12],null,[[\\\"@columns\\\",\\\"@gap\\\"],[\\\"1,2\\\",\\\"16\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isTouched\\\",\\\"@errorMessage\\\",\\\"@onChange\\\"],[[28,[37,14],[[28,[37,1],[\\\"settings.email.local.label\\\"],null],\\\" *\\\"],null],[30,0,[\\\"_senderLocal\\\"]],[30,0,[\\\"_senderEmailEdited\\\"]],[28,[37,15],[[30,0,[\\\"_changeset\\\",\\\"error\\\",\\\"email\\\"]],\\\"validation\\\"],null],[30,0,[\\\"onSenderLocalChange\\\"]]]],null],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@initialValue\\\",\\\"@objectKey\\\",\\\"@onChange\\\"],[[28,[37,14],[[28,[37,1],[\\\"settings.email.domain.label\\\"],null],\\\" *\\\"],null],[30,0,[\\\"_domainOptions\\\"]],[30,0,[\\\"_selectedDomainLabel\\\"]],[30,0,[\\\"_senderDomain\\\"]],\\\"label\\\",[30,0,[\\\"onSenderDomainChange\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,6,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,7,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,7,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[6,7]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[39,17],[[24,0,\\\"amc-sender-email-info\\\"]],[[\\\"@value\\\"],[[28,[37,1],[\\\"settings.email.input.message\\\"],null]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[8,[39,0],null,[[\\\"@title\\\",\\\"@placeholderCount\\\",\\\"@isLoading\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"settings.emailNotifications.label\\\"],null],2,[30,0,[\\\"_loadSettings\\\",\\\"isRunning\\\"]],\\\"pb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,8,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@changeset\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"settings.emailNotifications.statistics.label\\\"],null],[30,0,[\\\"_changeset\\\",\\\"statisticsRecipients\\\"]],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,1],[\\\"settings.emailNotifications.statistics.label\\\"],null],[28,[37,1],[\\\"global.actions.save\\\"],null]]]],[28,[37,10],[[30,0,[\\\"_updateSettingsWithChangeset\\\"]],[30,0,[\\\"_changeset\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,9,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@infoMessage\\\",\\\"@value\\\"],[[28,[37,1],[\\\"settings.emailNotifications.statistics.input.label\\\"],null],[28,[37,1],[\\\"settings.emailNotifications.statistics.input.message\\\"],null],[30,0,[\\\"_changeset\\\",\\\"statisticsRecipients\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[9]]]]],[1,\\\"\\\\n\\\"]],[8]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,0],null,[[\\\"@title\\\",\\\"@placeholderCount\\\",\\\"@isLoading\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"settings.landingPageUrl.label\\\"],null],1,[30,0,[\\\"_loadSettings\\\",\\\"isRunning\\\"]],\\\"pb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,10,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@changeset\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"settings.landingPageUrl.label\\\"],null],[30,0,[\\\"_changeset\\\",\\\"landingPageUrl\\\"]],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,1],[\\\"settings.landingPageUrl.label\\\"],null],[28,[37,1],[\\\"global.actions.save\\\"],null]]]],[28,[37,10],[[30,0,[\\\"_updateSettingsWithChangeset\\\"]],[30,0,[\\\"_changeset\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,11,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@infoMessage\\\",\\\"@errorMessage\\\",\\\"@value\\\"],[[28,[37,1],[\\\"settings.landingPageUrl.input.label\\\"],null],[28,[37,1],[\\\"settings.landingPageUrl.input.message\\\"],null],[28,[37,15],[[30,0,[\\\"_changeset\\\",\\\"error\\\",\\\"landingPageUrl\\\"]],\\\"validation\\\"],null],[30,0,[\\\"_changeset\\\",\\\"landingPageUrl\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[11]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isAdditive\\\"]],[[[1,\\\"    \\\"],[8,[30,10,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@changeset\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"settings.landingPage.label\\\"],null],[28,[37,15],[[28,[37,18],[[30,0,[\\\"_changeset\\\",\\\"landingPage\\\"]],[30,0,[\\\"_availableLandingPages\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,1],[\\\"settings.landingPage.label\\\"],null],[28,[37,1],[\\\"global.actions.save\\\"],null]]]],[28,[37,10],[[30,0,[\\\"_updateSettingsWithChangeset\\\"]],[30,0,[\\\"_changeset\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,12,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,0],[14,0,\\\"blue bg-blue--10 ph1 pv05 br1 font-xs\\\"],[12],[1,\\\"\\\\n          Beta\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,12,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@label\\\",\\\"@selected\\\",\\\"@initialValue\\\",\\\"@options\\\",\\\"@objectKey\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"settings.landingPage.input.label\\\"],null],[30,0,[\\\"_selectedLandingPage\\\"]],[30,0,[\\\"_changeset\\\",\\\"landingPage\\\"]],[30,0,[\\\"_availableLandingPages\\\"]],\\\"label\\\",[30,0,[\\\"onChangeLandingPage\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,13,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,14,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,14,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[13,14]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[12]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[10]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,19],null,[[\\\"@values\\\",\\\"@isReadOnly\\\",\\\"@isLoading\\\",\\\"@availableLanguages\\\",\\\"@onSave\\\"],[[30,0,[\\\"_changeset\\\",\\\"voucherLink\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"_loadSettings\\\",\\\"isRunning\\\"]],[30,0,[\\\"_availableLanguages\\\"]],[30,0,[\\\"onSaveVoucherLink\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[8,[39,0],null,[[\\\"@title\\\",\\\"@placeholderCount\\\",\\\"@isLoading\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"settings.vouchers.label\\\"],null],1,[30,0,[\\\"_loadSettings\\\",\\\"isRunning\\\"]],\\\"pb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,15,[\\\"panel\\\"]],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@value\\\",\\\"@changeset\\\",\\\"@isReadOnly\\\",\\\"@onPanelClick\\\"],[[52,[51,[30,0,[\\\"isMember\\\"]]],\\\"amc-settings-voucher-greeting-text-panel\\\"],[28,[37,1],[\\\"settings.vouchers.greetingText.label\\\"],null],[30,0,[\\\"_voucherGreetingTextDisplay\\\"]],[30,0,[\\\"_changeset\\\",\\\"voucherGreetingText\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,4],[[28,[37,5],[[30,0,[\\\"_isVoucherGreetingTextDialog\\\"]]],null],[52,[30,0,[\\\"isMember\\\"]],false,true]],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,15,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@changeset\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"settings.vouchers.validityPeriod.label\\\"],null],[28,[37,15],[[28,[37,18],[[30,0,[\\\"_resource\\\",\\\"voucherValidityPeriod\\\"]],[30,0,[\\\"_allowedVoucherValidityPeriods\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,1],[\\\"settings.vouchers.validityPeriod.modalTitle\\\"],null],[28,[37,1],[\\\"global.actions.save\\\"],null]]]],[28,[37,10],[[30,0,[\\\"_updateSettingsWithChangeset\\\"]],[30,0,[\\\"_changeset\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,16,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@objectKey\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"settings.vouchers.validityPeriod.label\\\"],null],[30,0,[\\\"_changeset\\\",\\\"voucherValidityPeriod\\\"]],[28,[37,15],[[28,[37,18],[[30,0,[\\\"_changeset\\\",\\\"voucherValidityPeriod\\\"]],[30,0,[\\\"_allowedVoucherValidityPeriods\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"_allowedVoucherValidityPeriods\\\"]],\\\"label\\\",[28,[37,20],[[30,0,[\\\"_changeset\\\"]],\\\"voucherValidityPeriod\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,17,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,18,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,18,[\\\"label\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[17,18]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[16]]]]],[1,\\\"\\\\n\\\"]],[15]]]]],[1,\\\"\\\\n\\\"],[8,[39,0],null,[[\\\"@title\\\",\\\"@placeholderCount\\\",\\\"@isLoading\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"settings.freeRooms.label\\\"],null],1,[30,0,[\\\"_loadSettings\\\",\\\"isRunning\\\"]],\\\"pb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,19,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\",\\\"@isSmall\\\"],[[28,[37,1],[\\\"settings.freeRooms.promote.label\\\"],null],[30,0,[\\\"isReadOnly\\\"]],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,1],[\\\"settings.freeRooms.promote.modalTitle\\\"],[[\\\"active\\\"],[[30,0,[\\\"_resource\\\",\\\"promoteFreeRooms\\\"]]]]],[28,[37,1],[[28,[37,14],[\\\"global.actions.\\\",[52,[30,0,[\\\"_resource\\\",\\\"promoteFreeRooms\\\"]],\\\"deactivate\\\",\\\"activate\\\"]],null]],null]]]],[28,[37,10],[[30,0,[\\\"_toggleValue\\\"]],\\\"promoteFreeRooms\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,20,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@value\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"_resource\\\",\\\"promoteFreeRooms\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,20,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,1],[\\\"settings.freeRooms.promote.modalDescription\\\"],[[\\\"active\\\"],[[30,0,[\\\"_resource\\\",\\\"promoteFreeRooms\\\"]]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[20]]]]],[1,\\\"\\\\n\\\"]],[19]]]]],[1,\\\"\\\\n\\\"],[8,[39,0],null,[[\\\"@title\\\",\\\"@placeholderCount\\\",\\\"@isLoading\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"settings.emailSending.label\\\"],null],2,[30,0,[\\\"_loadSettings\\\",\\\"isRunning\\\"]],\\\"pb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,21,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@changeset\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"settings.emailSending.sendAt.label\\\"],null],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"_changeset\\\",\\\"sendAt\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,1],[\\\"settings.emailSending.sendAt.label\\\"],null],[28,[37,1],[\\\"global.actions.save\\\"],null]]]],[28,[37,10],[[30,0,[\\\"_updateSettingsWithChangeset\\\"]],[30,0,[\\\"_changeset\\\"]]],null],[28,[37,4],[[28,[37,5],[[30,0,[\\\"_sendAtIsValid\\\"]]],null],true],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,22,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,22],null,[[\\\"@label\\\",\\\"@minTime\\\",\\\"@maxTime\\\",\\\"@initialValue\\\",\\\"@onChange\\\",\\\"@onValidStateChange\\\"],[[28,[37,1],[\\\"settings.emailSending.sendAt.label\\\"],null],\\\"00:00\\\",\\\"23:59\\\",[30,0,[\\\"_changeset\\\",\\\"sendAt\\\"]],[30,0,[\\\"onSendAtChange\\\"]],[28,[37,4],[[28,[37,5],[[30,0,[\\\"_sendAtIsValid\\\"]]],null]],null]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[22]]]]],[1,\\\"\\\\n  \\\"],[8,[30,21,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@changeset\\\",\\\"@value\\\",\\\"@modal\\\",\\\"@onClick\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"settings.emailSending.standardEmailHeader.label\\\"],null],[30,0,[\\\"_changeset\\\"]],[52,[30,0,[\\\"_changeset\\\",\\\"standardEmailHeader\\\"]],[28,[37,1],[\\\"settings.emailSending.standardEmailHeader.preview\\\"],null],null],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\",\\\"isReadOnly\\\"],[[28,[37,1],[\\\"settings.emailSending.standardEmailHeader.label\\\"],null],[28,[37,1],[\\\"global.actions.save\\\"],null],[30,0,[\\\"isReadOnly\\\"]]]]],[28,[37,10],[[30,0,[\\\"_updateSettingsWithChangeset\\\"]],[30,0,[\\\"_changeset\\\"]]],null],[28,[37,4],[[28,[37,5],[[30,0,[\\\"_sendAtIsValid\\\"]]],null],true],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,23,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,23],null,[[\\\"@class\\\",\\\"@resources\\\",\\\"@onDropzoneClick\\\",\\\"@onResourceRemove\\\",\\\"@onResourceEdit\\\",\\\"@isReadOnly\\\",\\\"@mediumType\\\"],[\\\"w-100\\\",[28,[37,24],[[30,0,[\\\"_changeset\\\"]],\\\"standardEmailHeader\\\"],null],[30,0,[\\\"openMultimedia\\\"]],[30,0,[\\\"onResourceRemove\\\"]],[28,[37,4],[[28,[37,20],[[30,0,[\\\"_changeset\\\"]],\\\"standardEmailHeader\\\"],null]],null],[30,0,[\\\"isReadOnly\\\"]],\\\"image\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[23]]]]],[1,\\\"\\\\n  \\\"],[8,[30,21,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\",\\\"@isSmall\\\"],[[28,[37,1],[\\\"settings.customEmailTemplate.label\\\"],null],[30,0,[\\\"isReadOnly\\\"]],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,1],[\\\"settings.customEmailTemplate.modalTitle\\\"],[[\\\"active\\\"],[[30,0,[\\\"_resource\\\",\\\"useCustomEmailTemplate\\\"]]]]],[28,[37,1],[[28,[37,14],[\\\"global.actions.\\\",[52,[30,0,[\\\"_resource\\\",\\\"useCustomEmailTemplate\\\"]],\\\"deactivate\\\",\\\"activate\\\"]],null]],null]]]],[28,[37,10],[[30,0,[\\\"_toggleValue\\\"]],\\\"useCustomEmailTemplate\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,24,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@value\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"_resource\\\",\\\"useCustomEmailTemplate\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,24,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,1],[\\\"settings.customEmailTemplate.modalDescription\\\"],[[\\\"active\\\"],[[30,0,[\\\"_resource\\\",\\\"useCustomEmailTemplate\\\"]]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[24]]]]],[1,\\\"\\\\n  \\\"],[8,[30,21,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@changeset\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"settings.emailReceivers.label\\\"],null],[30,0,[\\\"_changeset\\\"]],[28,[37,1],[[28,[37,14],[\\\"settings.emailReceivers.preference.labels.\\\",[30,0,[\\\"_changeset\\\",\\\"emailReceivers\\\",\\\"preference\\\",\\\"value\\\"]]],null]],null],[30,0,[\\\"isReadOnly\\\"]],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,1],[\\\"settings.emailReceivers.label\\\"],null],[28,[37,1],[\\\"global.actions.save\\\"],null]]]],[28,[37,10],[[30,0,[\\\"_updateSettingsWithChangeset\\\"]],[30,0,[\\\"_changeset\\\"]]],null],[30,0,[\\\"closeEmailReceiverDialog\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,25,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,0],[4,[38,25],[[28,[37,10],[[30,0,[\\\"_fetchEstimates\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,1],[\\\"settings.emailReceivers.preference.description\\\"],null]],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"mb2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,27],[[28,[37,27],[[30,0,[\\\"_emailReceiverOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,28],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@description\\\",\\\"@value\\\",\\\"@selectedValue\\\",\\\"@isSelectable\\\",\\\"@onSelect\\\"],[\\\"pt2\\\",[30,26,[\\\"label\\\"]],[30,26,[\\\"description\\\"]],[30,26,[\\\"value\\\"]],[30,0,[\\\"_changeset\\\",\\\"emailReceivers\\\",\\\"preference\\\",\\\"value\\\"]],true,[28,[37,4],[[30,0,[\\\"onEmailReceiverChange\\\"]],[30,26,[\\\"value\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,27,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,29],null,[[\\\"@class\\\",\\\"@state\\\"],[\\\"flex dif mt05\\\",\\\"info\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_fetchEstimates\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[8,[39,30],null,[[\\\"@width\\\",\\\"@height\\\",\\\"@class\\\"],[16,16,\\\"mr1\\\"]],null],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"settings.emailReceivers.preference.loading\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,31],[\\\"people\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"mr1\\\",\\\"16\\\",\\\"16\\\"]]]],[1,\\\"\\\\n                \\\"],[1,[28,[35,32],[[28,[37,33],[[28,[37,15],[[30,0,[\\\"_emailReceiverEstimates\\\"]],[30,26,[\\\"value\\\"]]],null],\\\"0\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[27]]]]],[1,\\\"\\\\n\\\"]],[26]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[25]]]]],[1,\\\"\\\\n\\\"]],[21]]]]],[1,\\\"\\\\n\\\"],[8,[39,0],null,[[\\\"@title\\\",\\\"@placeholderCount\\\",\\\"@isLoading\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"settings.attributions.label\\\"],null],3,[30,0,[\\\"_loadSettings\\\",\\\"isRunning\\\"]],\\\"pb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,28,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\",\\\"@isSmall\\\"],[[28,[37,1],[\\\"settings.attributions.calculateConverions.title\\\"],null],[28,[37,33],[[30,0,[\\\"isReadOnly\\\"]],[28,[37,9],[[28,[37,34],[[30,0,[\\\"_changeset\\\",\\\"conversionRateRequestsToReservations\\\"]],[30,0,[\\\"_changeset\\\",\\\"averageReservationRevenue\\\"]]],null]],null]],null],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\",\\\"size\\\"],[[28,[37,1],[\\\"settings.attributions.calculateConverions.modalTitle\\\"],[[\\\"active\\\"],[[30,0,[\\\"_resource\\\",\\\"calculateConversionValuesAsRevenue\\\"]]]]],[28,[37,1],[[28,[37,14],[\\\"global.actions.\\\",[52,[30,0,[\\\"_resource\\\",\\\"calculateConversionValuesAsRevenue\\\"]],\\\"deactivate\\\",\\\"activate\\\"]],null]],null],\\\"md\\\"]]],[28,[37,10],[[30,0,[\\\"_toggleValue\\\"]],\\\"useEmpiricalDataToCalculateRevenue\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,29,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@value\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"_resource\\\",\\\"calculateConversionValuesAsRevenue\\\"]],[28,[37,33],[[30,0,[\\\"isReadOnly\\\"]],[28,[37,9],[[28,[37,34],[[30,0,[\\\"_changeset\\\",\\\"conversionRateRequestsToReservations\\\"]],[30,0,[\\\"_changeset\\\",\\\"averageReservationRevenue\\\"]]],null]],null]],null]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,29,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,1],[\\\"settings.attributions.calculateConverions.modalDescription\\\"],[[\\\"active\\\",\\\"htmlSafe\\\"],[[30,0,[\\\"_resource\\\",\\\"calculateConversionValuesAsRevenue\\\"]],true]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[29]]]]],[1,\\\"\\\\n  \\\"],[8,[30,28,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\",\\\"@isSmall\\\"],[[28,[37,1],[\\\"settings.attributions.useEmpiricalData.title\\\"],null],[28,[37,33],[[30,0,[\\\"isReadOnly\\\"]],[28,[37,9],[[28,[37,34],[[30,0,[\\\"_changeset\\\",\\\"conversionRateRequestsToReservations\\\"]],[30,0,[\\\"_changeset\\\",\\\"averageReservationRevenue\\\"]]],null]],null]],null],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\",\\\"size\\\"],[[28,[37,1],[\\\"settings.attributions.useEmpiricalData.modalTitle\\\"],[[\\\"active\\\"],[[30,0,[\\\"_resource\\\",\\\"useEmpiricalDataToCalculateRevenue\\\"]]]]],[28,[37,1],[[28,[37,14],[\\\"global.actions.\\\",[52,[30,0,[\\\"_resource\\\",\\\"useEmpiricalDataToCalculateRevenue\\\"]],\\\"deactivate\\\",\\\"activate\\\"]],null]],null],\\\"md\\\"]]],[28,[37,10],[[30,0,[\\\"_toggleValue\\\"]],\\\"useEmpiricalDataToCalculateRevenue\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,30,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@value\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"_resource\\\",\\\"useEmpiricalDataToCalculateRevenue\\\"]],[28,[37,33],[[30,0,[\\\"isReadOnly\\\"]],[28,[37,9],[[28,[37,34],[[30,0,[\\\"_changeset\\\",\\\"conversionRateRequestsToReservations\\\"]],[30,0,[\\\"_changeset\\\",\\\"averageReservationRevenue\\\"]]],null]],null]],null]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,30,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,1],[\\\"settings.attributions.useEmpiricalData.modalDescription\\\"],[[\\\"active\\\",\\\"htmlSafe\\\"],[[30,0,[\\\"_resource\\\",\\\"useEmpiricalDataToCalculateRevenue\\\"]],true]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[30]]]]],[1,\\\"\\\\n  \\\"],[8,[30,28,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@changeset\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"settings.attributions.conversionRate.title\\\"],null],[30,0,[\\\"_changeset\\\",\\\"conversionRateRequestsToReservations\\\"]],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,1],[\\\"settings.attributions.conversionRate.title\\\"],null],[28,[37,1],[\\\"global.actions.save\\\"],null]]]],[28,[37,10],[[30,0,[\\\"_updateSettingsWithChangeset\\\"]],[30,0,[\\\"_changeset\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,31,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@errorMessage\\\",\\\"@value\\\"],[[28,[37,1],[\\\"settings.attributions.conversionRate.description\\\"],null],[30,0,[\\\"_changeset\\\",\\\"error\\\",\\\"conversionRateRequestsToReservations\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,0,[\\\"_changeset\\\",\\\"conversionRateRequestsToReservations\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[31]]]]],[1,\\\"\\\\n  \\\"],[8,[30,28,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@changeset\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"settings.attributions.averageReservationRevenue.title\\\"],null],[52,[30,0,[\\\"_changeset\\\",\\\"averageReservationRevenue\\\"]],[28,[37,35],[[30,0,[\\\"_changeset\\\",\\\"averageReservationRevenue\\\"]],[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]],[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],0,0,1],null],\\\"-\\\"],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,1],[\\\"settings.attributions.averageReservationRevenue.title\\\"],null],[28,[37,1],[\\\"global.actions.save\\\"],null]]]],[28,[37,10],[[30,0,[\\\"_updateSettingsWithChangeset\\\"]],[30,0,[\\\"_changeset\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,32,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@errorMessage\\\",\\\"@value\\\"],[[28,[37,1],[[28,[37,14],[\\\"settings.attributions.averageReservationRevenue.description.\\\",[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null]],null],[30,0,[\\\"_changeset\\\",\\\"error\\\",\\\"averageReservationRevenue\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,0,[\\\"_changeset\\\",\\\"averageReservationRevenue\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,33,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,36],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[33]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[32]]]]],[1,\\\"\\\\n\\\"]],[28]]]]],[1,\\\"\\\\n\\\"],[8,[39,0],null,[[\\\"@title\\\",\\\"@placeholderCount\\\",\\\"@isLoading\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"settings.languages.label\\\"],null],3,[30,0,[\\\"_loadSettings\\\",\\\"isRunning\\\"]],\\\"pb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_availableLanguages\\\"]],[[[42,[28,[37,27],[[28,[37,27],[[30,0,[\\\"_availableLanguages\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[30,34,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\",\\\"@isSmall\\\"],[[28,[37,1],[[28,[37,14],[\\\"global.languages.\\\",[30,35]],null]],null],[30,0,[\\\"isReadOnly\\\"]],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,1],[\\\"settings.languages.modalTitle\\\"],[[\\\"language\\\",\\\"active\\\"],[[28,[37,1],[[28,[37,14],[\\\"global.languages.\\\",[30,35]],null]],null],[28,[37,15],[[30,0,[\\\"_resource\\\",\\\"languages\\\"]],[30,35]],null]]]],[28,[37,1],[[28,[37,14],[\\\"global.actions.\\\",[52,[28,[37,15],[[30,0,[\\\"_resource\\\",\\\"languages\\\"]],[30,35]],null],\\\"deactivate\\\",\\\"activate\\\"]],null]],null]]]],[28,[37,10],[[30,0,[\\\"_toggleValue\\\"]],[28,[37,14],[\\\"languages.\\\",[30,35]],null]],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,36,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,21],null,[[\\\"@value\\\",\\\"@isReadOnly\\\"],[[28,[37,15],[[30,0,[\\\"_resource\\\",\\\"languages\\\"]],[30,35]],null],[30,0,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,36,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"settings.languages.modalDescription\\\"],[[\\\"language\\\",\\\"active\\\"],[[28,[37,1],[[28,[37,14],[\\\"global.languages.\\\",[30,35]],null]],null],[28,[37,15],[[30,0,[\\\"_resource\\\",\\\"languages\\\"]],[30,35]],null]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[36]]]]],[1,\\\"\\\\n\\\"]],[35]],null]],[]],null]],[34]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_showSocialNetworksConnection\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@title\\\",\\\"@placeholderCount\\\",\\\"@isLoading\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"settings.socialNetworks.label\\\"],null],1,[30,0,[\\\"_loadSettings\\\",\\\"isRunning\\\"]],\\\"pb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,37],null,[[\\\"@isReadOnly\\\",\\\"@changeset\\\",\\\"@value\\\",\\\"@onChange\\\",\\\"@onClick\\\",\\\"@onFacebookDisconnect\\\",\\\"@controlPanelGroup\\\",\\\"@onSubmit\\\"],[[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"_changeset\\\",\\\"facebookOAuth\\\"]],[28,[37,10],[[30,0,[\\\"onFacebookLogin\\\"]]],null],[30,0,[\\\"openFacebookDialog\\\"]],[30,0,[\\\"onFacebookDisconnect\\\"]],[30,37],[30,0,[\\\"onLoginSubmit\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isFBModalOpen\\\"]],[[[1,\\\"      \\\"],[8,[39,38],null,[[\\\"@size\\\",\\\"@title\\\",\\\"@onClose\\\"],[\\\"md\\\",[28,[37,1],[\\\"settings.socialNetworks.facebookInstagram.label\\\"],null],[30,0,[\\\"abortFBLogin\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,38,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n        \\\"],[8,[30,38,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,39,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onFacebookLogin\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[8,[39,39],null,[[\\\"@classNames\\\",\\\"@cardHeight\\\",\\\"@items\\\",\\\"@itemsPerRow\\\"],[\\\"mt3\\\",48,1,\\\"1\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[30,0,[\\\"_useSystemUserFlow\\\"]]],[[[1,\\\"                \\\"],[8,[39,16],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@isSearchable\\\",\\\"@objectKey\\\",\\\"@isReadOnly\\\",\\\"@useFullTextSearch\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"settings.socialNetworks.facebookInstagram.input.businessManager.label\\\"],null],[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"businessManager\\\",\\\"value\\\"]],[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"businessManager\\\",\\\"value\\\",\\\"label\\\"]],[30,0,[\\\"_businessManagerOptions\\\"]],true,\\\"label\\\",[30,0,[\\\"_isFBModalReadOnly\\\"]],true,[28,[37,10],[[30,0,[\\\"onBusinessManagerSelectChange\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[8,[30,40,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,41]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[30,41,[\\\"label\\\"]]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                \\\"]],[40,41]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"onBusinessManagerSelectChange\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[8,[39,39],null,[[\\\"@classNames\\\",\\\"@cardHeight\\\",\\\"@items\\\",\\\"@gap\\\",\\\"@itemsPerRow\\\"],[\\\"mt3\\\",48,2,24,\\\"1\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,33],[[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"businessManager\\\",\\\"value\\\",\\\"label\\\"]],[30,0,[\\\"_useSystemUserFlow\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,16],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@isSearchable\\\",\\\"@objectKey\\\",\\\"@isReadOnly\\\",\\\"@useFullTextSearch\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"settings.socialNetworks.facebookInstagram.input.facebookPage.label\\\"],null],[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"facebookPage\\\",\\\"value\\\"]],[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"facebookPage\\\",\\\"value\\\",\\\"label\\\"]],[30,0,[\\\"_facebookPageOptions\\\"]],true,\\\"label\\\",[30,0,[\\\"_isFBModalReadOnly\\\"]],true,[28,[37,4],[[30,0,[\\\"onSocialSelectChange\\\"]],[52,[30,0,[\\\"_useSystemUserFlow\\\"]],\\\"systemUserPage\\\",\\\"facebookPage\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[8,[30,42,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,43]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[1,[30,43,[\\\"label\\\"]]],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n                  \\\"]],[42,43]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,33],[[30,0,[\\\"fetchInstagramOptions\\\",\\\"isRunning\\\"]],[30,0,[\\\"fetchFacebookAccounts\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,39],null,[[\\\"@classNames\\\",\\\"@cardHeight\\\",\\\"@items\\\",\\\"@gap\\\"],[\\\"mt3\\\",48,1,8]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"_instagramOptions\\\",\\\"length\\\"]],[[[1,\\\"                    \\\"],[8,[39,16],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@isSearchable\\\",\\\"@objectKey\\\",\\\"@isReadOnly\\\",\\\"@useFullTextSearch\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"settings.socialNetworks.facebookInstagram.input.instagram.label\\\"],null],[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"instagram\\\",\\\"value\\\"]],[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"instagram\\\",\\\"value\\\",\\\"label\\\"]],[30,0,[\\\"_instagramOptions\\\"]],true,\\\"label\\\",[30,0,[\\\"_isFBModalReadOnly\\\"]],true,[28,[37,4],[[30,0,[\\\"onSocialSelectChange\\\"]],\\\"instagram\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[8,[30,44,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,45]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[1,[30,45,[\\\"label\\\"]]],[1,\\\"\\\\n                      \\\"]],[]]]]],[1,\\\"\\\\n                    \\\"]],[44,45]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fetchFacebookAccounts\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[8,[39,39],null,[[\\\"@classNames\\\",\\\"@cardHeight\\\",\\\"@items\\\",\\\"@gap\\\"],[\\\"mt3\\\",48,1,8]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,33],[[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"businessManager\\\",\\\"value\\\",\\\"label\\\"]],[28,[37,34],[[30,0,[\\\"_useSystemUserFlow\\\"]],[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"facebookPage\\\",\\\"value\\\",\\\"label\\\"]]],null]],null],[[[1,\\\"                    \\\"],[8,[39,16],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@isSearchable\\\",\\\"@objectKey\\\",\\\"@isReadOnly\\\",\\\"@useFullTextSearch\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"settings.socialNetworks.facebookInstagram.input.adAccount.label\\\"],null],[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"adAccount\\\",\\\"value\\\"]],[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"adAccount\\\",\\\"value\\\",\\\"label\\\"]],[30,0,[\\\"_adAccountOptions\\\"]],true,\\\"label\\\",[30,0,[\\\"_isFBModalReadOnly\\\"]],true,[28,[37,4],[[30,0,[\\\"onSocialSelectChange\\\"]],[52,[30,0,[\\\"_useSystemUserFlow\\\"]],\\\"systemUserAdAccount\\\",\\\"adAccount\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[8,[30,46,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,47]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[1,[30,47,[\\\"label\\\"]]],[1,\\\"\\\\n                      \\\"]],[]]]]],[1,\\\"\\\\n                    \\\"]],[46,47]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,33],[[30,0,[\\\"fetchFacebookPixelOptions\\\",\\\"isRunning\\\"]],[30,0,[\\\"fetchSystemUserFacebookPixelOptions\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,39],null,[[\\\"@classNames\\\",\\\"@cardHeight\\\",\\\"@items\\\",\\\"@gap\\\"],[\\\"mt3\\\",48,1,8]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"_facebookPixelOptions\\\",\\\"length\\\"]],[[[1,\\\"                    \\\"],[8,[39,16],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@isSearchable\\\",\\\"@objectKey\\\",\\\"@isReadOnly\\\",\\\"@useFullTextSearch\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"settings.socialNetworks.facebookInstagram.input.facebookPixel.label\\\"],null],[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"facebookPixel\\\",\\\"value\\\"]],[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"facebookPixel\\\",\\\"value\\\",\\\"label\\\"]],[30,0,[\\\"_facebookPixelOptions\\\"]],true,\\\"label\\\",[30,0,[\\\"_isFBModalReadOnly\\\"]],true,[28,[37,4],[[30,0,[\\\"onSocialSelectChange\\\"]],\\\"facebookPixel\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[8,[30,48,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,49]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[1,[30,49,[\\\"label\\\"]]],[1,\\\"\\\\n                      \\\"]],[]]]]],[1,\\\"\\\\n                    \\\"]],[48,49]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]]],[]]],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[39]]]]],[1,\\\"\\\\n        \\\"],[8,[30,38,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"_isFBModalReadOnly\\\"]]],[[[1,\\\"            \\\"],[8,[39,40],null,[[\\\"@isSecondary\\\",\\\"@isDisabled\\\",\\\"@label\\\",\\\"@onClick\\\"],[true,[28,[37,33],[[30,0,[\\\"_isFBSavingDisabled\\\"]],[30,0,[\\\"_updateSettingsWithChangeset\\\",\\\"isRunning\\\"]]],null],[28,[37,1],[\\\"global.actions.save\\\"],null],[28,[37,4],[[30,0,[\\\"onLoginSubmit\\\"]],\\\"save\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[38]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[39,41],null,[[\\\"@value\\\",\\\"@adAccount\\\",\\\"@isReadOnly\\\",\\\"@onClick\\\",\\\"@onConnect\\\",\\\"@controlPanelGroup\\\",\\\"@onDisconnect\\\"],[[30,0,[\\\"_changeset\\\",\\\"tiktokOAuth\\\"]],[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"tiktok\\\",\\\"value\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"openTikTokDialog\\\"]],[30,0,[\\\"_connectTikTok\\\"]],[30,37],[30,0,[\\\"_disconnectTikTok\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isTikTokModalOpen\\\"]],[[[1,\\\"      \\\"],[8,[39,38],null,[[\\\"@size\\\",\\\"@title\\\",\\\"@onClose\\\"],[\\\"sm\\\",[28,[37,1],[\\\"settings.socialNetworks.tiktokOAuth.dialog.title\\\"],null],[30,0,[\\\"_abortTikTokLogin\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,50,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n        \\\"],[8,[30,50,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,51,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"settings.socialNetworks.tiktokOAuth.dialog.adAccount\\\"],null],[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"tiktok\\\",\\\"value\\\"]],[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"tiktok\\\",\\\"value\\\",\\\"label\\\"]],[30,0,[\\\"_availableTiktokAdAccounts\\\"]],\\\"label\\\",true,true,[30,0,[\\\"_isTikTokModalReadOnly\\\"]],[28,[37,4],[[30,0,[\\\"onSocialSelectChange\\\"]],\\\"tiktok\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,52,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,53]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[30,53,[\\\"label\\\"]]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[52,53]]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[51]]]]],[1,\\\"\\\\n        \\\"],[8,[30,50,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,40],null,[[\\\"@isSecondary\\\",\\\"@isDisabled\\\",\\\"@label\\\",\\\"@onClick\\\"],[true,[28,[37,33],[[30,0,[\\\"_isTikTokModalReadOnly\\\"]],[28,[37,9],[[30,0,[\\\"_changeset\\\",\\\"socialNetworks\\\",\\\"tiktok\\\",\\\"value\\\",\\\"value\\\"]]],null]],null],[28,[37,1],[\\\"global.actions.save\\\"],null],[30,0,[\\\"_onTikTokSubmit\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[50]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"]],[37]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,0],null,[[\\\"@title\\\",\\\"@placeholderCount\\\",\\\"@isLoading\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"settings.demoMode.label\\\"],null],1,[30,0,[\\\"_loadSettings\\\",\\\"isRunning\\\"]],\\\"pb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,54,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\",\\\"@isSmall\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"settings.demoMode.label\\\"],null],[30,0,[\\\"isReadOnly\\\"]],[28,[37,11],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,1],[\\\"settings.demoMode.modalTitle\\\"],[[\\\"active\\\"],[[30,0,[\\\"_resource\\\",\\\"demoMode\\\"]]]]],[28,[37,1],[[28,[37,14],[\\\"global.actions.\\\",[52,[30,0,[\\\"_resource\\\",\\\"demoMode\\\"]],\\\"deactivate\\\",\\\"activate\\\"]],null]],null]]]],[28,[37,10],[[30,0,[\\\"_toggleValue\\\"]],\\\"demoMode\\\"],null],true,\\\"mb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,55,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@value\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"_resource\\\",\\\"demoMode\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,55,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,1],[\\\"settings.demoMode.modalDescription\\\"],[[\\\"active\\\"],[[30,0,[\\\"_resource\\\",\\\"demoMode\\\"]]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[55]]]]],[1,\\\"\\\\n\\\"]],[54]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_isNameDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@title\\\",\\\"@size\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"settings.name.modalTitle\\\"],null],\\\"md\\\",[30,0,[\\\"onNameClose\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,56,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,56,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,57,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,27],[[28,[37,27],[[30,0,[\\\"_availableLanguages\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\"],[[28,[37,1],[[28,[37,14],[\\\"global.languages.\\\",[30,58]],null]],null],[28,[37,15],[[30,0,[\\\"_changeset\\\",\\\"name\\\",\\\"value\\\"]],[30,58]],null],[28,[37,4],[[30,0,[\\\"onNameSingleLanguageChange\\\"]],[30,58]],null]]],null],[1,\\\"\\\\n\\\"]],[58]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[57]]]]],[1,\\\"\\\\n    \\\"],[8,[30,56,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,40],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.save\\\"],null],true,[30,0,[\\\"onNameSave\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[56]]]]],[1,\\\"\\\\n  \\\"],[8,[39,42],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\",\\\"@onClose\\\"],[[30,0,[\\\"_isNameDiscardChangesDialog\\\"]],[30,0,[\\\"confirmNameDiscard\\\"]],[28,[37,4],[[28,[37,5],[[30,0,[\\\"_isNameDiscardChangesDialog\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isVoucherGreetingTextDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@title\\\",\\\"@size\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"settings.vouchers.greetingText.modalTitle\\\"],null],\\\"md\\\",[30,0,[\\\"onVoucherGreetingTextDialogClose\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,59,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,59,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,60,[\\\"body\\\"]],null,[[\\\"@class\\\"],[[29,[[52,[30,0,[\\\"isReadOnly\\\"]],\\\"pb2\\\",\\\"\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,27],[[28,[37,27],[[30,0,[\\\"_availableLanguages\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@textarea\\\",\\\"@maxlength\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\",\\\"@errorMessage\\\"],[[28,[37,1],[[28,[37,14],[\\\"global.languages.\\\",[30,61]],null]],null],[28,[37,15],[[30,0,[\\\"_changeset\\\",\\\"voucherGreetingText\\\"]],[30,61]],null],true,200,[30,0,[\\\"isReadOnly\\\"]],[28,[37,4],[[30,0,[\\\"onVoucherGreetingTextLanguageChange\\\"]],[30,61]],null],[28,[37,15],[[30,0,[\\\"_changeset\\\",\\\"error\\\",\\\"voucherGreetingText\\\"]],[28,[37,14],[[30,61],\\\".validation\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[61]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[60]]]]],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"      \\\"],[8,[30,59,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,40],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.save\\\"],null],true,[30,0,[\\\"onVoucherGreetingTextSave\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[59]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,43],null,[[\\\"@onClose\\\",\\\"@onAddMedium\\\"],[[30,0,[\\\"closeMultimedia\\\"]],[30,0,[\\\"addMedium\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[18,62,null],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"Group\\\",\\\"panel\\\",\\\"pop\\\",\\\"panel\\\",\\\"pop\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"Group\\\",\\\"panel\\\",\\\"Group\\\",\\\"panel\\\",\\\"panel\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"Group\\\",\\\"panel\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"Group\\\",\\\"panel\\\",\\\"Group\\\",\\\"panel\\\",\\\"panel\\\",\\\"panel\\\",\\\"panel\\\",\\\"option\\\",\\\"accordion\\\",\\\"Group\\\",\\\"panel\\\",\\\"panel\\\",\\\"panel\\\",\\\"panel\\\",\\\"input\\\",\\\"Group\\\",\\\"language\\\",\\\"panel\\\",\\\"Group\\\",\\\"modal\\\",\\\"content\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"modal\\\",\\\"content\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"Group\\\",\\\"panel\\\",\\\"m\\\",\\\"c\\\",\\\"language\\\",\\\"dialog\\\",\\\"c\\\",\\\"language\\\",\\\"&default\\\"],false,[\\\"ui-control-panel-group\\\",\\\"t\\\",\\\"unless\\\",\\\"ui-synced-value\\\",\\\"fn\\\",\\\"mut\\\",\\\"if\\\",\\\"ui-popover\\\",\\\"ui-icon-button\\\",\\\"not\\\",\\\"perform\\\",\\\"hash\\\",\\\"grid\\\",\\\"ui-input\\\",\\\"concat\\\",\\\"get\\\",\\\"ui-select\\\",\\\"ui-form-message\\\",\\\"array-find\\\",\\\"amc-settings/birthday-voucher-link\\\",\\\"changeset-set\\\",\\\"ui-switch\\\",\\\"ui-timepicker\\\",\\\"mm-resource-gallery\\\",\\\"changeset-get\\\",\\\"did-insert\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ui-accordion\\\",\\\"ui-badge\\\",\\\"ui-loading\\\",\\\"svg-jar\\\",\\\"format-number\\\",\\\"or\\\",\\\"and\\\",\\\"ui-format-currency\\\",\\\"currency-symbol\\\",\\\"amc-settings/facebook-connect\\\",\\\"ui-modal\\\",\\\"ui-skeleton\\\",\\\"ui-button\\\",\\\"amc-settings/tik-tok-connect\\\",\\\"ui-discard-changes\\\",\\\"mm-multimedia-overlay\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-settings.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Component which represent apps settings page\n   *\n   * @class amc-settings\n   */\n  let AmcSettings = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.string), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec5 = (0, _object.computed)('_tiktokAdAccounts'), _dec6 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const domainsUrl = `${_environment.default.APP.apiBaseHostV2}/${this.organizationSlug}/sender-domains/verified`;\n      const [response, domainsResponse] = yield (0, _emberConcurrency.all)([this.authenticatedFetch.fetch(this._apiUrl), this.authenticatedFetch.fetch(domainsUrl), (0, _emberConcurrency.timeout)(250)]);\n      if (!response || !response.ok) {\n        throw new Error(`[SETTINGS] ${response}`);\n      }\n      if (!domainsResponse || !domainsResponse.ok) {\n        throw new Error('[SETTINGS] verified sender domains');\n      }\n      const domainsJson = yield domainsResponse.json();\n      if (!domainsJson || !Array.isArray(domainsJson.senderDomains)) {\n        throw new Error('[SETTINGS] verified sender domains');\n      }\n      this._verifiedSenderDomains = domainsJson.senderDomains;\n      const json = yield response.json();\n      this._handleApiResponse(json);\n\n      // Check if tiktok auth query params are set\n      if (this.redirect === 'tiktok' && this.authCode) {\n        const toast = this.uiToast.showToast({\n          type: 'loading',\n          title: this.intl.t('settings.socialNetworks.tiktokOAuth.loading'),\n          duration: -1\n        });\n        this._changeset.set('tiktokOAuth.authCode', this.authCode);\n        this._changeset.execute();\n        yield this._fetchTikTokAdAccounts.perform();\n        this.uiToast.destroyToast(toast);\n        this._isTikTokModalReadOnly = false;\n        this._isTikTokModalOpen = true;\n\n        // Remove query params after successful auth\n        window.history.replaceState(null, null, window.location.pathname);\n      }\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec7 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const url = `${this._apiUrl}/tiktok/advertisers?auth_code=${this.authCode}`;\n      const [response] = yield (0, _emberConcurrency.all)([this.authenticatedFetch.fetch(url), (0, _emberConcurrency.timeout)(250)]);\n      if (!response || !response.ok) {\n        throw new Error(`[SETTINGS] ${response}`);\n      }\n      const {\n        advertisers\n      } = yield response.json();\n      this._tiktokAdAccounts = advertisers || [];\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec8 = (0, _emberConcurrency.task)(function (changeset) {\n    var _this = this;\n    let skipValidation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n    return function* () {\n      try {\n        var _changeset$get, _changeset$get2;\n        yield changeset.validate();\n        // reject if there are errors or no changes have been made\n        if (!skipValidation && (changeset.get('isInvalid') || !_this._sendAtIsValid || changeset.get('isPristine'))) {\n          return (0, _rsvp.reject)();\n        }\n        let newResource = (0, _lodash.default)({}, _this._resource, {\n          email: {\n            value: changeset.get('email')\n          },\n          emailReceivers: {\n            preference: changeset.get('emailReceivers.preference')\n          },\n          landingPage: {\n            value: ((_changeset$get = changeset.get('landingPage')) === null || _changeset$get === void 0 ? void 0 : _changeset$get.value) === null ? null : changeset.get('landingPage')\n          },\n          name: changeset.get('name'),\n          sendAt: changeset.get('sendAt'),\n          standardEmailHeader: changeset.get('standardEmailHeader'),\n          promoteFreeRooms: changeset.get('promoteFreeRooms'),\n          useCustomEmailTemplate: changeset.get('useCustomEmailTemplate'),\n          languages: changeset.get('languages'),\n          demoMode: changeset.get('demoMode'),\n          averageReservationRevenue: changeset.get('averageReservationRevenue') ? Number(changeset.get('averageReservationRevenue')) : null,\n          conversionRateRequestsToReservations: typeof changeset.get('conversionRateRequestsToReservations') === 'string' && changeset.get('conversionRateRequestsToReservations') ? (_changeset$get2 = changeset.get('conversionRateRequestsToReservations')) === null || _changeset$get2 === void 0 || (_changeset$get2 = _changeset$get2.split(':')) === null || _changeset$get2 === void 0 ? void 0 : _changeset$get2.map(Number) : [],\n          calculateConversionValuesAsRevenue: changeset.get('useEmpiricalDataToCalculateRevenue'),\n          useEmpiricalDataToCalculateRevenue: changeset.get('useEmpiricalDataToCalculateRevenue'),\n          statisticsRecipients: changeset.get('statisticsRecipients'),\n          landingPageUrl: changeset.get('landingPageUrl'),\n          voucherValidityPeriod: changeset.get('voucherValidityPeriod'),\n          voucherGreetingText: changeset.get('voucherGreetingText'),\n          voucherLink: changeset.get('voucherLink'),\n          socialNetworks: Object.assign({\n            adAccount: {\n              value: {\n                label: null,\n                value: null\n              }\n            },\n            businessManager: {\n              value: {\n                label: null,\n                value: null\n              }\n            },\n            facebookPage: {\n              value: {\n                label: null,\n                value: null\n              }\n            },\n            facebookPixel: {\n              value: {\n                label: null,\n                value: null\n              }\n            },\n            instagram: {\n              value: {\n                label: null,\n                value: null\n              }\n            },\n            tiktok: {\n              value: {\n                label: null,\n                value: null\n              }\n            }\n          }, changeset.get('socialNetworks')),\n          facebookOAuth: changeset.get('facebookOAuth'),\n          tiktokOAuth: changeset.get('tiktokOAuth')\n        });\n        yield _this._updateSettings.perform(newResource);\n        /* Save changeset to reset dirty flag, otherwise it will trigger discard changes dialog */\n        yield changeset.save();\n      } catch (error) {\n        _this.uiToast.showToast({\n          title: _this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }();\n  }), _dec9 = (0, _emberConcurrency.task)(function* (resource) {\n    try {\n      const body = (0, _lodash.default)({}, resource);\n      if (typeof body.conversionRateRequestsToReservations === 'string') {\n        body.conversionRateRequestsToReservations = body.conversionRateRequestsToReservations ? body.conversionRateRequestsToReservations.split(':').map(Number) : [];\n      }\n      const request = yield this.authenticatedFetch.fetch(this._apiUrl, {\n        headers: {\n          'Accept-Language': this.currentLanguage || 'de'\n        },\n        method: 'PUT',\n        body: JSON.stringify(body)\n      }, null, [422]);\n      const [response] = yield (0, _emberConcurrency.all)([request, (0, _emberConcurrency.timeout)(250)]);\n      if (!(response !== null && response !== void 0 && response.ok)) throw response;\n      this._handleApiResponse(yield response.json(), body);\n      this.uiToast.showToast({\n        title: this.intl.t('toast.success'),\n        type: 'success'\n      });\n    } catch (e) {\n      const {\n        status,\n        message\n      } = yield e === null || e === void 0 ? void 0 : e.json();\n      if (status === 422) {\n        this.uiDialog.showError(this.intl.t('global.errors.title'), message);\n        return yield this._loadSettings.perform();\n      }\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec10 = (0, _emberConcurrency.task)(function* (name) {\n    try {\n      if (!name) return;\n      const synced = this._resource[name].sync;\n      /* Toggle value */\n      this._resource[name].sync = !synced;\n      yield this._updateSettings.perform(this._resource);\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec11 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const response = yield this.authenticatedFetch.fetch(`${this._apiUrl}/email-receivers-preference-estimates`);\n      if (!response.ok) throw response;\n      const json = yield response.json();\n      this._emailReceiverEstimates = json === null || json === void 0 ? void 0 : json.estimates;\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec12 = (0, _emberConcurrency.task)(function* (name) {\n    try {\n      var _resource$email, _resource$landingPage;\n      let resource = (0, _lodash2.default)(this._resource);\n\n      /* Toggle value */\n      const nameParts = name.split('.');\n      let value = this._resource;\n      nameParts.forEach(part => {\n        var _value;\n        value = (_value = value) === null || _value === void 0 ? void 0 : _value[part];\n      });\n      const [last, ...paths] = nameParts.reverse();\n      let nestedObject = paths.reduce((acc, el) => ({\n        [el]: acc\n      }), {\n        [last]: !value\n      });\n      resource = (0, _lodash.default)(resource, nestedObject);\n\n      /* create new changeset to not modifing resource during update */\n      const changeset = new _emberChangeset.default((0, _lodash.default)({}, resource, {\n        email: (_resource$email = resource.email) === null || _resource$email === void 0 ? void 0 : _resource$email.value,\n        landingPage: (_resource$landingPage = resource.landingPage) === null || _resource$landingPage === void 0 ? void 0 : _resource$landingPage.value,\n        sendAt: resource.sendAt,\n        languages: resource.languages\n      }));\n      yield this._updateSettingsWithChangeset.perform(changeset, true);\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec13 = (0, _emberConcurrency.task)(function* (facebookPage) {\n    try {\n      const instagramResponse = yield (0, _facebook.fbApiRequest)(`${facebookPage.value}/instagram_accounts?fields=username`, facebookPage.accessToken);\n      const instagramOptions = instagramResponse.map(item => ({\n        value: item.id,\n        label: item.username\n      }));\n      this._instagramOptions = instagramOptions;\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec14 = (0, _emberConcurrency.task)(function* (adAccountId) {\n    try {\n      const {\n        userToken\n      } = this._changeset.get('facebookOAuth');\n      const facebookPixelResponse = yield (0, _facebook.fbApiRequest)(`${adAccountId}/adspixels?fields=name`, userToken);\n      const facebookPixelOptions = facebookPixelResponse.map(item => ({\n        value: item.id,\n        label: item.name\n      }));\n      this._facebookPixelOptions = facebookPixelOptions;\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec15 = (0, _emberConcurrency.task)(function* (value, selected) {\n    try {\n      // Reset selected values\n      this._changeset.set('socialNetworks.adAccount.value', {\n        label: null,\n        value: null\n      });\n      this._changeset.set('socialNetworks.facebookPixel.value', {\n        label: null,\n        value: null\n      });\n      this._changeset.set('socialNetworks.instagram.value', {\n        label: null,\n        value: null\n      });\n      this._changeset.set('socialNetworks.facebookPage.value', value);\n      this._changeset.execute();\n      const [instagramResponse, adAccountsResponse] = yield (0, _emberConcurrency.all)([this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.organizationSlug}/connections/facebook/instagram-accounts?page_id=${selected.value}`), this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.organizationSlug}/connections/facebook/ad-accounts`)]);\n      if (!(instagramResponse !== null && instagramResponse !== void 0 && instagramResponse.ok) || !(adAccountsResponse !== null && adAccountsResponse !== void 0 && adAccountsResponse.ok)) throw Error('Error fetching accounts');\n      const [instagramResponseJson, adAccountsResponseJson] = yield (0, _emberConcurrency.all)([instagramResponse.json(), adAccountsResponse.json()]);\n      this._instagramOptions = instagramResponseJson;\n      this._adAccountOptions = adAccountsResponseJson;\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec16 = (0, _emberConcurrency.task)(function* (value, selected) {\n    try {\n      // Reset selected facebook pixel\n      this._changeset.set('socialNetworks.facebookPixel.value', {\n        label: null,\n        value: null\n      });\n      this._changeset.set('socialNetworks.adAccount.value', value);\n      this._changeset.execute();\n      const pixelsResponse = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.organizationSlug}/connections/facebook/adspixels?ad_account_id=${selected.value}`);\n      if (!(pixelsResponse !== null && pixelsResponse !== void 0 && pixelsResponse.ok)) throw pixelsResponse;\n      const pixelsResponseJson = yield pixelsResponse.json();\n      this._facebookPixelOptions = pixelsResponseJson;\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec17 = (0, _emberConcurrency.task)(function* (selected) {\n    try {\n      const value = {\n        label: selected.label,\n        value: selected.value\n      };\n\n      // Reset facebook data on business manager change\n      this.resetFacebookChangesetProperties();\n      this._adAccountOptions = null;\n      this._facebookPageOptions = null;\n      this._instagramOptions = null;\n      this._facebookPixelOptions = null;\n      this._changeset.set(`socialNetworks.businessManager.value`, value);\n      // to properly apply deep object changes\n      this._changeset.execute();\n      const {\n        userToken\n      } = this._changeset.get('facebookOAuth');\n\n      // Fetch ad-accounts and facebook pages\n      const [ownedAdAccountsResponse, clientAdAccountsResponse, ownedPagesResponse, clientPagesResponse] = yield Promise.all([(0, _facebook.fbApiRequest)(`${selected.value}/owned_ad_accounts?fields=name`, userToken), (0, _facebook.fbApiRequest)(`${selected.value}/client_ad_accounts?fields=name`, userToken), (0, _facebook.fbApiRequest)(`${selected.value}/owned_pages?fields=name,access_token`, userToken), (0, _facebook.fbApiRequest)(`${selected.value}/client_pages?fields=name,access_token`, userToken)]);\n      const adAccountsResponse = [...ownedAdAccountsResponse, ...clientAdAccountsResponse];\n      const adAccountOptions = adAccountsResponse.map(item => ({\n        value: item.id,\n        label: item.name\n      }));\n      this._adAccountOptions = adAccountOptions;\n      const pagesArray = [...ownedPagesResponse, ...clientPagesResponse];\n      const facebookPageOptions = pagesArray.map(item => ({\n        value: item.id,\n        label: item.name,\n        accessToken: item.access_token\n      }));\n      this._facebookPageOptions = facebookPageOptions;\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec18 = (0, _emberConcurrency.task)(function* (payload) {\n    // Save facebook access-token in changeset\n    const facebookData = this._changeset.get('facebookOAuth');\n    this._changeset.set('facebookOAuth', Object.assign({}, facebookData, payload));\n    if (payload !== null && payload !== void 0 && payload.useSystemUser) {\n      this._useSystemUserFlow = true;\n      this._changeset.set('facebookOAuth.userToken', null);\n      this._changeset.set('facebookOAuth.useSystemUser', true);\n      const pagesResponse = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.organizationSlug}/connections/facebook/pages`);\n      if (!(pagesResponse !== null && pagesResponse !== void 0 && pagesResponse.ok)) throw pagesResponse;\n      const pagesResponseJson = yield pagesResponse.json();\n      this._facebookPageOptions = pagesResponseJson;\n      return;\n    }\n    try {\n      // fetch available business managers\n      const businessManagers = yield (0, _facebook.fbApiRequest)(`/me/businesses`, payload.userToken);\n      this._changeset.set('facebookOAuth.useSystemUser', false);\n      const businessManagerOptions = businessManagers.map(item => ({\n        value: item.id,\n        label: item.name\n      }));\n      this._businessManagerOptions = businessManagerOptions;\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class AmcSettings extends _component2.default {\n    /**\n     * Api url for settings\n     *\n     * @computed _apiUrl\n     * @private\n     */\n    get _apiUrl() {\n      const apiBaseHost = _environment.default.APP.apiBaseHostV2;\n      return `${apiBaseHost}/${this.organizationSlug}/settings`;\n    }\n\n    /**\n     * domain select options, labeled with a leading @\n     *\n     * @computed _domainOptions\n     * @type {Array}\n     * @private\n     */\n    get _domainOptions() {\n      return (this._verifiedSenderDomains || []).map(domain => ({\n        value: domain,\n        label: `@${domain}`\n      }));\n    }\n\n    /**\n     * label of the selected domain, including the leading @\n     *\n     * @computed _selectedDomainLabel\n     * @type {String}\n     * @private\n     */\n    get _selectedDomainLabel() {\n      return this._senderDomain ? `@${this._senderDomain}` : null;\n    }\n    get _showSocialNetworksConnection() {\n      return this.uiAppSettings && !(0, _plans.is)(this.uiAppSettings.planName, _plans.PLAN_PROFESSIONAL);\n    }\n    get isAdditive() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.user) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.isAdditive;\n    }\n    get _availableLandingPages() {\n      var _this$_resource;\n      const allowedValues = ((_this$_resource = this._resource) === null || _this$_resource === void 0 || (_this$_resource = _this$_resource.landingPage) === null || _this$_resource === void 0 ? void 0 : _this$_resource.allowedValues) || [];\n      return [{\n        value: null,\n        label: this.intl.t('settings.landingPage.input.empty')\n      }, ...allowedValues];\n    }\n    get _selectedLandingPage() {\n      var _this$_availableLandi;\n      return ((_this$_availableLandi = this._availableLandingPages) === null || _this$_availableLandi === void 0 || (_this$_availableLandi = _this$_availableLandi.find(availableLandingPage => {\n        var _this$_changeset;\n        return (availableLandingPage === null || availableLandingPage === void 0 ? void 0 : availableLandingPage.value) === ((_this$_changeset = this._changeset) === null || _this$_changeset === void 0 ? void 0 : _this$_changeset.get('landingPage'));\n      })) === null || _this$_availableLandi === void 0 ? void 0 : _this$_availableLandi.label) || this.intl.t('settings.landingPage.input.empty');\n    }\n    get _isFBSavingDisabled() {\n      return !this._changeset.get('socialNetworks.facebookPage.value.value') || !this._changeset.get('socialNetworks.adAccount.value.value');\n    }\n\n    /**\n     * Joins each value of the name object for display purpose.\n     *\n     * @computed _nameDisplay\n     * @private\n     */\n    get _nameDisplay() {\n      const name = this._resource.name;\n      if (!name || !name.value) {\n        return null;\n      }\n      return Object.keys(name.value).map(key => name.value[key]).filter(value => value).join(', ');\n    }\n\n    /**\n     * Joins each value of the name object for display purpose.\n     *\n     * @computed _nameDisplay\n     * @private\n     */\n    get _voucherGreetingTextDisplay() {\n      const {\n        voucherGreetingText\n      } = this._resource;\n      if (!voucherGreetingText) {\n        return null;\n      }\n      return Object.keys(voucherGreetingText).map(key => voucherGreetingText[key]).filter(value => value).join(', ');\n    }\n\n    /**\n     * Property which builds a displayable value out of all socialNetworks selected values\n     *\n     * @computed _socialNetworkDisplay\n     * @private\n     */\n\n    get _socialNetworkDisplay() {\n      if (!this._resource || !this._resource.socialNetworks) {\n        return null;\n      }\n      const {\n        socialNetworks\n      } = this._resource;\n      const displayValue = Object.keys(socialNetworks).map(key => {\n        const value = socialNetworks[key].value;\n\n        /* Check if is multi-select, which ends up as a array */\n        if (Array.isArray(value)) {\n          if (value.length === 0) {\n            return null;\n          }\n          if (value.length === 1) {\n            return value[0].label;\n          }\n          return [value[0].label, `+${value.length - 1}`].join(' ');\n        } else {\n          if (!value || !value.label || (0, _utils.isEmpty)(value.label)) {\n            return null;\n          }\n          return value.label;\n        }\n      });\n      return displayValue.filter(value => (0, _utils.isPresent)(value)).join(', ');\n    }\n\n    /**\n     * Indicates socialNetworks fill state\n     *\n     *  - success - When all social-settings are properly set\n     *  - warning - when not all social-settings are properly set\n     *  - error - When no social-setting is properly set\n     *\n     * @computed _socialNetworkState\n     * @private\n     */\n    get _socialNetworkState() {\n      if (!this._resource || !this._resource.socialNetworks) {\n        return 'error';\n      }\n      const {\n        socialNetworks\n      } = this._resource;\n      const socialNetworkKeys = Object.keys(socialNetworks);\n      let missingValuesByKey = {};\n      socialNetworkKeys.forEach(key => {\n        const value = socialNetworks[key].value;\n        if (Array.isArray(value)) {\n          if (value.length === 0) {\n            missingValuesByKey[key] = true;\n          }\n        } else if (!value || !value.value || (0, _utils.isEmpty)(value.value)) {\n          missingValuesByKey[key] = true;\n        }\n      });\n      const missingValuesLength = Object.keys(missingValuesByKey).length;\n      return missingValuesLength === 0 ? 'success ' : socialNetworkKeys.length === missingValuesLength ? 'error' : 'warning';\n    }\n\n    /**\n     * Selectable Tiktok ad accounts\n     *\n     * @computed _availableTiktokAdAccounts\n     * @private\n     */\n    get _availableTiktokAdAccounts() {\n      var _this$_tiktokAdAccoun;\n      return (_this$_tiktokAdAccoun = this._tiktokAdAccounts) === null || _this$_tiktokAdAccoun === void 0 ? void 0 : _this$_tiktokAdAccoun.map(function (option) {\n        return {\n          label: option.name,\n          value: option.id\n        };\n      });\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"multimedia\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiPaths\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor8, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor9, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor10, this);\n      /**\n       * the tiktok auth-code\n       *\n       * @argument authCode\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"authCode\", _descriptor11, this);\n      /**\n       * the redirect source\n       *\n       * @property redirect\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"redirect\", _descriptor12, this);\n      /**\n       * the current organization slug\n       *\n       * @argument organizationSlug\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor13, this);\n      /**\n       * Whether the component is read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor14, this);\n      /**\n       * the allowed voucher validity periods\n       *\n       * @property _allowedVoucherValidityPeriods\n       * @type {Array}\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_allowedVoucherValidityPeriods\", _descriptor15, this);\n      /**\n       * Available languages\n       *\n       * @property _availableLanguages\n       * @type {Array}\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_availableLanguages\", _descriptor16, this);\n      /**\n       * Changeset of the settings resource\n       *\n       * @property _changeset\n       * @type {Changeset}\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_changeset\", _descriptor17, this);\n      /**\n       * Settings resource\n       *\n       * @property _resource\n       * @type {Object}\n       * @default {}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_resource\", _descriptor18, this);\n      /**\n       * sendAt valid state (inside timepicker)\n       *\n       * @property _sendAtIsValid\n       * @type {Boolean}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_sendAtIsValid\", _descriptor19, this);\n      /**\n       * whether the facebook account settings modal is open\n       *\n       * @property _isFBModalOpen\n       * @type {Boolean}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isFBModalOpen\", _descriptor20, this);\n      /**\n       * whether the facebook account settings modal is read-only\n       *\n       * @property _isFBModalReadOnly\n       * @type {Boolean}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isFBModalReadOnly\", _descriptor21, this);\n      /**\n       * whether the tiktok account settings modal is open\n       *\n       * @property _isTikTokModalOpen\n       * @type {Boolean}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isTikTokModalOpen\", _descriptor22, this);\n      /**\n       * whether the tiktok account settings modal is read-only\n       *\n       * @property _isTikTokModalReadOnly\n       * @type {Boolean}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isTikTokModalReadOnly\", _descriptor23, this);\n      /**\n       * whether the voucher greeting dialog is open\n       *\n       * @property _isVoucherGreetingTextDialog\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isVoucherGreetingTextDialog\", _descriptor24, this);\n      /**\n       * available facebook pages\n       *\n       * @property _facebookPageOptions\n       * @type {Array}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_facebookPageOptions\", _descriptor25, this);\n      /**\n       * available tiktok ad accounts\n       *\n       * @property _tiktokAdAccounts\n       * @type {Array}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_tiktokAdAccounts\", _descriptor26, this);\n      /**\n       * available ad accounts\n       *\n       * @property _adAccountOptions\n       * @type {Array}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_adAccountOptions\", _descriptor27, this);\n      /**\n       * available business managers\n       *\n       * @property _businessManagerOptions\n       * @type {Array}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_businessManagerOptions\", _descriptor28, this);\n      /**\n       * available facebook pixel accounts\n       *\n       * @property _facebookPixelOptions\n       * @type {Array}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_facebookPixelOptions\", _descriptor29, this);\n      /**\n       * available instagram accounts\n       *\n       * @property _instagramOptions\n       * @type {Array}\n       * @private\n       */\n      _initializerDefineProperty(this, \"_instagramOptions\", _descriptor30, this);\n      /**\n       * whether the discard changes dialog for the name is open\n       *\n       * @property _isNameDiscardChangesDialog\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isNameDiscardChangesDialog\", _descriptor31, this);\n      /**\n       * whether the name dialog is open\n       *\n       * @property _isNameDialog\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isNameDialog\", _descriptor32, this);\n      /**\n       * whether the Facebook system user flow connect is used\n       *\n       * @property _useSystemUserFlow\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_useSystemUserFlow\", _descriptor33, this);\n      /**\n       * The email receiver estimates\n       *\n       * @property _emailReceiverEstimates\n       * @type {Object}\n       * @private\n       * @default null\n       */\n      _initializerDefineProperty(this, \"_emailReceiverEstimates\", _descriptor34, this);\n      /**\n       * The email receiver options\n       *\n       * @property _emailReceiverOptions\n       * @type {Object}\n       * @private\n       * @default null\n       */\n      _initializerDefineProperty(this, \"_emailReceiverOptions\", _descriptor35, this);\n      /**\n       * verified sender domains that can be used as the email domain\n       *\n       * @property _verifiedSenderDomains\n       * @type {Array}\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_verifiedSenderDomains\", _descriptor36, this);\n      /**\n       * local part of the sender email, before @\n       *\n       * @property _senderLocal\n       * @type {String}\n       * @default ''\n       * @private\n       */\n      _initializerDefineProperty(this, \"_senderLocal\", _descriptor37, this);\n      /**\n       * selected verified sender domain, without @\n       *\n       * @property _senderDomain\n       * @type {String}\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_senderDomain\", _descriptor38, this);\n      /**\n       * whether the sender email fields were edited in this dialog\n       *\n       * @property _senderEmailEdited\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_senderEmailEdited\", _descriptor39, this);\n      /**\n       * Loads settings\n       *\n       * @type {Task}\n       * @function _loadSettings\n       * @private\n       */\n      _initializerDefineProperty(this, \"_loadSettings\", _descriptor40, this);\n      /**\n       * Fetch the tiktok ad accounts\n       *\n       * @type {Task}\n       * @function _fetchTikTokAdAccounts\n       * @private\n       */\n      _initializerDefineProperty(this, \"_fetchTikTokAdAccounts\", _descriptor41, this);\n      /**\n       * Updates settings with data of given changeset\n       *\n       * @param {Object} changeset the changeset\n       * @param {Boolean} skipValidation if true the validation gets skipped\n       * @type {Task}\n       * @function _updateSettingsWithChangeset\n       * @private\n       */\n      _initializerDefineProperty(this, \"_updateSettingsWithChangeset\", _descriptor42, this);\n      /**\n       * Updates settings with data of given resource\n       *\n       * @type {Task}\n       * @function _updateSettings\n       * @param {Object} resource The resource which should be saved\n       * @private\n       */\n      _initializerDefineProperty(this, \"_updateSettings\", _descriptor43, this);\n      /**\n       * Toggles sync value and update\n       *\n       * @param {String} name the property name\n       * @type {Task}\n       * @function _toggleSync\n       * @private\n       */\n      _initializerDefineProperty(this, \"_toggleSync\", _descriptor44, this);\n      _initializerDefineProperty(this, \"_fetchEstimates\", _descriptor45, this);\n      /**\n       * Toggles a value and update\n       *\n       * @param {String} name the property name\n       * @type {Task}\n       * @function _toggleValue\n       * @private\n       */\n      _initializerDefineProperty(this, \"_toggleValue\", _descriptor46, this);\n      _initializerDefineProperty(this, \"fetchInstagramOptions\", _descriptor47, this);\n      _initializerDefineProperty(this, \"fetchFacebookPixelOptions\", _descriptor48, this);\n      _initializerDefineProperty(this, \"fetchFacebookAccounts\", _descriptor49, this);\n      _initializerDefineProperty(this, \"fetchSystemUserFacebookPixelOptions\", _descriptor50, this);\n      _initializerDefineProperty(this, \"onBusinessManagerSelectChange\", _descriptor51, this);\n      _initializerDefineProperty(this, \"onFacebookLogin\", _descriptor52, this);\n      this._loadSettings.perform();\n      // set options for media selection\n      this.multimedia.setSelectionOptions({\n        maxCount: 1,\n        type: 'image',\n        warningMessage: this.intl.t('global.warnings.multimedia.image')\n      });\n    }\n    /**\n     * Manage apis response and set internal values\n     *\n     * @param {Object} response Apis response\n     * @function _handleApiResponse\n     */\n    _handleApiResponse(response, currentData) {\n      var _settings$conversionR, _settings$emailReceiv, _settings$email, _settings$landingPage, _settings$emailReceiv2, _settings$email2;\n      const {\n        settings\n      } = response;\n      this._availableLanguages = Object.keys(settings.languages) || [];\n      let facebookOAuth = settings.facebookOAuth;\n      if (!this._useSystemUserFlow && currentData !== null && currentData !== void 0 && currentData.facebookOAuth) {\n        // The API doesnt send the facebook API userToken, therefore we need\n        // to merge the facebookAuth settings so we dont lose the userToken\n        facebookOAuth = (0, _lodash.default)(settings.facebookOAuth, currentData.facebookOAuth);\n      }\n\n      // discard the google connection, it is no longer supported\n      const socialNetworks = _objectSpread({}, settings.socialNetworks);\n      delete socialNetworks.google;\n      let resource = {\n        calculateConversionValuesAsRevenue: settings.calculateConversionValuesAsRevenue,\n        useEmpiricalDataToCalculateRevenue: settings.useEmpiricalDataToCalculateRevenue,\n        conversionRateRequestsToReservations: Array.isArray(settings.conversionRateRequestsToReservations) ? (_settings$conversionR = settings.conversionRateRequestsToReservations) === null || _settings$conversionR === void 0 ? void 0 : _settings$conversionR.join(':') : '',\n        averageReservationRevenue: settings.averageReservationRevenue,\n        email: settings.email,\n        emailReceivers: {\n          preference: {\n            value: (_settings$emailReceiv = settings.emailReceivers) === null || _settings$emailReceiv === void 0 || (_settings$emailReceiv = _settings$emailReceiv.preference) === null || _settings$emailReceiv === void 0 ? void 0 : _settings$emailReceiv.value\n          }\n        },\n        promoteFreeRooms: settings.promoteFreeRooms,\n        sendAt: settings.sendAt,\n        standardEmailHeader: settings.standardEmailHeader,\n        useCustomEmailTemplate: settings.useCustomEmailTemplate,\n        name: settings.name,\n        languages: settings.languages,\n        demoMode: settings.demoMode,\n        statisticsRecipients: settings.statisticsRecipients,\n        landingPage: settings.landingPage,\n        landingPageUrl: settings.landingPageUrl,\n        socialNetworks,\n        facebookOAuth: facebookOAuth,\n        tiktokOAuth: settings.tiktokOAuth,\n        voucherGreetingText: settings.voucherGreetingText || {},\n        voucherLink: settings.voucherLink,\n        voucherValidityPeriod: settings.voucherValidityPeriod.value\n      };\n      const voucherGreetingTextValidations = {};\n      this._availableLanguages.forEach(language => {\n        var _resource$voucherLink;\n        voucherGreetingTextValidations[`voucherGreetingText.${language}`] = (0, _validators.validateLength)({\n          max: 200,\n          message: this.intl.t('errors.maxLength', {\n            maxLength: 200\n          })\n        });\n        if (!((_resource$voucherLink = resource.voucherLink) !== null && _resource$voucherLink !== void 0 && _resource$voucherLink[language])) {\n          resource.voucherLink = _objectSpread(_objectSpread({}, resource.voucherLink), {}, {\n            [language]: ''\n          });\n        }\n      });\n      const baseValidation = Object.assign({}, (0, _settings.settingsValidations)(this.intl, !settings.useEmpiricalDataToCalculateRevenue), voucherGreetingTextValidations);\n      const emailFormat = baseValidation.email;\n      const validation = _objectSpread(_objectSpread({}, baseValidation), {}, {\n        email: (key, newValue, oldValue, changes, content) => {\n          const local = (this._senderLocal || '').trim();\n          const domain = this._senderDomain || '';\n          const isPartial = local && !domain || !local && domain || local.includes('@');\n          if (this._senderEmailEdited && isPartial) {\n            return this.intl.t('errors.email');\n          }\n          return emailFormat(key, newValue, oldValue, changes, content);\n        }\n      });\n      const changeset = new _emberChangeset.default((0, _lodash2.default)((0, _lodash.default)({}, resource, {\n        email: (_settings$email = settings.email) === null || _settings$email === void 0 ? void 0 : _settings$email.value,\n        landingPage: (_settings$landingPage = settings.landingPage) === null || _settings$landingPage === void 0 ? void 0 : _settings$landingPage.value\n      })), (0, _emberChangesetValidations.default)(validation), validation);\n      this._resource = resource;\n      this._changeset = changeset;\n      this._allowedVoucherValidityPeriods = settings.voucherValidityPeriod.allowedValues;\n      this._emailReceiverOptions = (_settings$emailReceiv2 = settings.emailReceivers) === null || _settings$emailReceiv2 === void 0 || (_settings$emailReceiv2 = _settings$emailReceiv2.preference) === null || _settings$emailReceiv2 === void 0 ? void 0 : _settings$emailReceiv2.allowedValues;\n      this._senderEmailEdited = false;\n      this._splitSenderEmail((_settings$email2 = settings.email) === null || _settings$email2 === void 0 ? void 0 : _settings$email2.value);\n    }\n\n    /**\n     * splits a sender address into the local part and a verified domain\n     *\n     * @function _splitSenderEmail\n     * @param {String} email\n     * @private\n     */\n    _splitSenderEmail(email) {\n      const value = email || '';\n      const atIndex = value.lastIndexOf('@');\n      const local = atIndex === -1 ? value : value.slice(0, atIndex);\n      const domain = atIndex === -1 ? '' : value.slice(atIndex + 1);\n      const matchedDomain = (this._verifiedSenderDomains || []).find(verifiedDomain => verifiedDomain.toLowerCase() === domain.toLowerCase());\n      this._senderLocal = local;\n      this._senderDomain = matchedDomain || null;\n    }\n\n    /**\n     * writes the local part and domain back into the sender email changeset\n     *\n     * @function _syncSenderEmail\n     * @private\n     */\n    _syncSenderEmail() {\n      const local = (this._senderLocal || '').trim();\n      const domain = this._senderDomain || '';\n      let value = '';\n      if (local && domain) {\n        value = `${local}@${domain}`;\n      } else if (local) {\n        value = local;\n      } else if (domain) {\n        value = `@${domain}`;\n      }\n      this._changeset.set('email', value);\n    }\n    onEmailReceiverChange(value) {\n      this._changeset.set('emailReceivers.preference.value', value);\n      this._changeset.execute();\n    }\n    closeEmailReceiverDialog() {\n      var _this$_resource2;\n      this._changeset.set('emailReceivers.preference.value', (_this$_resource2 = this._resource) === null || _this$_resource2 === void 0 || (_this$_resource2 = _this$_resource2.emailReceivers) === null || _this$_resource2 === void 0 ? void 0 : _this$_resource2.preference.value);\n      this._changeset.execute();\n    }\n    onSendAtChange(date) {\n      let [hours, minutes] = [date.getHours(), date.getMinutes()];\n      /* Force leading 0 */\n      hours = ('0' + hours).slice(-2);\n      minutes = ('0' + minutes).slice(-2);\n      this._changeset.set('sendAt', `${hours}:${minutes}`);\n    }\n    async onSocialSelectChange(socialKey, selected) {\n      const value = {\n        label: selected.label,\n        value: selected.value\n      };\n      if (socialKey === 'facebookPage') {\n        // Fetch instagram accounts (using facebook page accessToken)\n        this.fetchInstagramOptions.perform(selected);\n      } else if (socialKey === 'systemUserPage') {\n        this.fetchFacebookAccounts.perform(value, selected);\n        return;\n      } else if (socialKey === 'systemUserAdAccount') {\n        this.fetchSystemUserFacebookPixelOptions.perform(value, selected);\n        return;\n      } else if (socialKey === 'adAccount') {\n        // Fetch facebook pixel options (using adAccount accessToken)\n        this.fetchFacebookPixelOptions.perform(selected.value);\n      }\n      this._changeset.set(`socialNetworks.${socialKey}.value`, value);\n      // to properly apply deep object changes\n      this._changeset.execute();\n    }\n    onSocialMultiSelectChange(socialKey, option, checked) {\n      var _socialNetworks$socia;\n      // Create clone and re-set whole object, otherwise changeset does not detect \"changes\"\n      let socialNetworks = (0, _lodash.default)({}, this._changeset.get('socialNetworks'));\n      let checkedValues = ((_socialNetworks$socia = socialNetworks[socialKey]) === null || _socialNetworks$socia === void 0 ? void 0 : _socialNetworks$socia.value) || [];\n      if (checked) {\n        // Only push if not allready in\n        if (!checkedValues.findBy('value', option.value)) {\n          checkedValues.pushObject(option);\n        }\n      } else {\n        // Remove unchecked option\n        checkedValues = checkedValues.filter(_option => _option.value === option.value ? false : true);\n      }\n      socialNetworks[socialKey].value = checkedValues;\n      this._changeset.set('socialNetworks', socialNetworks);\n      this._changeset.execute();\n    }\n    resetSocialNetworks() {\n      // Reset socialNetworks to changeset to ensure changeset.rollback did properly reset\n      this._changeset.set('socialNetworks', (0, _lodash.default)({}, this._resource.socialNetworks));\n      this._changeset.execute();\n      this._isFBModalOpen = false;\n      this._isFBModalReadOnly = false;\n    }\n    onChangeLandingPage(value) {\n      this._changeset.set('landingPage', value);\n    }\n\n    /**\n     * updates the local part and the composed sender email\n     *\n     * @function onSenderLocalChange\n     * @param {String} value\n     */\n    onSenderLocalChange(value) {\n      this._senderLocal = value;\n      this._senderEmailEdited = true;\n      this._syncSenderEmail();\n      this._changeset.validate();\n    }\n\n    /**\n     * updates the selected domain and the composed sender email\n     *\n     * @function onSenderDomainChange\n     * @param {Object|String} option\n     */\n    onSenderDomainChange(option) {\n      const domain = option && typeof option === 'object' ? option.value : option;\n      this._senderDomain = domain || null;\n      this._senderEmailEdited = true;\n      this._syncSenderEmail();\n      this._changeset.validate();\n    }\n    onNameSingleLanguageChange(language, value) {\n      let name = this._changeset.get('name');\n      name.value = Object.assign({}, name.value, {\n        [language]: value\n      });\n      this._changeset.set('name', Object.assign({}, name));\n    }\n    onNameClose() {\n      if (this._changeset.get('isPristine')) {\n        this._isNameDialog = false;\n        return;\n      }\n      this._isNameDiscardChangesDialog = true;\n    }\n    confirmNameDiscard() {\n      this._changeset.rollback();\n      this._changeset.set('name', this._resource.name);\n      this._isNameDialog = false;\n      this._isNameDiscardChangesDialog = false;\n    }\n    async onNameSave() {\n      await this._updateSettingsWithChangeset.perform(this._changeset);\n      this._isNameDialog = false;\n    }\n    async onSaveVoucherLink(data) {\n      this._changeset.set('voucherLink', data);\n      await this._updateSettingsWithChangeset.perform(this._changeset, true);\n    }\n    onVoucherGreetingTextLanguageChange(language, value) {\n      const voucherGreetingText = this._changeset.get('voucherGreetingText');\n      voucherGreetingText[language] = value;\n      this._changeset.set('voucherGreetingText', Object.assign({}, voucherGreetingText));\n      this._changeset.validate(`voucherGreetingText.${language}`);\n    }\n    onVoucherGreetingTextDialogClose() {\n      if (this._changeset.get('isPristine')) {\n        this._isVoucherGreetingTextDialog = false;\n        return;\n      }\n      this.uiDialog.showDiscardChangesConfirm(() => {\n        this._changeset.rollback();\n        const voucherGreetingText = this._resource.voucherGreetingText;\n        this._changeset.set('voucherGreetingText', Object.assign({}, voucherGreetingText));\n        this._isVoucherGreetingTextDialog = false;\n      });\n    }\n    async onVoucherGreetingTextSave() {\n      if (this._changeset.get('isPristine')) {\n        this._isVoucherGreetingTextDialog = false;\n        return;\n      }\n      this._changeset.validate('voucherGreetingText');\n      if (this._changeset.get('isInvalid')) {\n        return false;\n      }\n      await this._updateSettingsWithChangeset.perform(this._changeset, true);\n      this._isVoucherGreetingTextDialog = false;\n    }\n    openMultimedia() {\n      this.router.transitionTo('instance.settings.index.additive-multimedia-engine');\n    }\n    closeMultimedia() {\n      this.router.transitionTo('instance.settings.index');\n    }\n    onResourceRemove() {\n      this._changeset.set('standardEmailHeader', null);\n      this._changeset.execute();\n    }\n    addMedium(_, _ref2) {\n      let [resource] = _ref2;\n      this._changeset.set('standardEmailHeader', resource);\n    }\n    openFacebookDialog() {\n      // Set options for facebook dialog\n      const businessManagerOptions = this._changeset.get('socialNetworks.businessManager.value');\n      this._businessManagerOptions = [businessManagerOptions];\n      const facebookPageOptions = this._changeset.get('socialNetworks.facebookPage.value');\n      this._facebookPageOptions = [facebookPageOptions];\n      const instagramOptions = this._changeset.get('socialNetworks.instagram.value');\n      this._instagramOptions = [instagramOptions];\n      const adAccountOptions = this._changeset.get('socialNetworks.adAccount.value');\n      this._adAccountOptions = [adAccountOptions];\n      const faceookPixelOptions = this._changeset.get('socialNetworks.facebookPixel.value');\n      this._facebookPixelOptions = [faceookPixelOptions];\n\n      // Set dialog to be read only and display the dialog\n      this._isFBModalReadOnly = true;\n      this._isFBModalOpen = true;\n    }\n    openTikTokDialog() {\n      const availableTiktokAdAccounts = this._changeset.get('socialNetworks.tiktok.value');\n      this._availableTiktokAdAccounts = availableTiktokAdAccounts ? [availableTiktokAdAccounts] : [];\n\n      // Set dialog to be read only and display the dialog\n      this._isTikTokModalReadOnly = true;\n      this._isTikTokModalOpen = true;\n    }\n    async onFacebookDisconnect(payload) {\n      // Set facebook data (userToken, userName, userId) to null\n      const facebookData = this._changeset.get('facebookOAuth');\n\n      // Reset selected social networks\n      await this._changeset.set('facebookOAuth', Object.assign({}, facebookData, payload));\n      this.resetFacebookChangesetProperties();\n      await this._updateSettingsWithChangeset.perform(this._changeset);\n    }\n    async onLoginSubmit(type) {\n      if (type === 'save') {\n        await this._updateSettingsWithChangeset.perform(this._changeset);\n        this._isFBModalOpen = false;\n        this._useSystemUserFlow = false;\n      } else {\n        this.resetFacebookChangesetProperties();\n        this._adAccountOptions = null;\n        this._facebookPageOptions = null;\n        this._instagramOptions = null;\n        this._facebookPixelOptions = null;\n        this._isFBModalReadOnly = false;\n        this._isFBModalOpen = true;\n      }\n    }\n    abortFBLogin() {\n      if (this._isFBModalReadOnly) {\n        this._isFBModalOpen = false;\n        return;\n      }\n      this.uiDialog.showDiscardChangesConfirm(async () => {\n        var _this$_resource3;\n        if (this._useSystemUserFlow) {\n          this.resetFacebookChangesetProperties();\n          this._changeset.set('facebookOAuth.userToken', null);\n          await this._loadSettings.perform();\n          this._isFBModalOpen = false;\n          this._useSystemUserFlow = false;\n        } else if ((_this$_resource3 = this._resource) !== null && _this$_resource3 !== void 0 && (_this$_resource3 = _this$_resource3.socialNetworks) !== null && _this$_resource3 !== void 0 && (_this$_resource3 = _this$_resource3.businessManager) !== null && _this$_resource3 !== void 0 && (_this$_resource3 = _this$_resource3.value) !== null && _this$_resource3 !== void 0 && _this$_resource3.value) {\n          this.resetSocialNetworks();\n        } else {\n          this.resetSocialNetworks();\n          this.onFacebookLogin.perform({\n            hasUserToken: false,\n            userToken: null,\n            userId: null,\n            userName: null\n          });\n        }\n      }, this.intl.t('settings.socialNetworks.facebookOAuth.loginAbortDialog.title'), this.intl.t('settings.socialNetworks.facebookOAuth.loginAbortDialog.description'));\n    }\n    async _onTikTokSubmit() {\n      await this._updateSettingsWithChangeset.perform(this._changeset, true);\n      this._changeset.set('tiktokOAuth.hasUserToken', true);\n      this._changeset.execute();\n      this._isTikTokModalOpen = false;\n    }\n\n    /**\n     * handles the login over the tiktok API\n     *\n     * @function _connectTikTok\n     */\n    _connectTikTok() {\n      const url = `${_environment.default.APP.apiBaseHostV2}/auth/tiktok`;\n      const appId = this._changeset.get('tiktokOAuth.appId');\n      const authUrl = `https://ads.tiktok.com/marketing_api/auth?app_id=${appId}&state=${this.organizationSlug}&redirect_uri=${url}`;\n      window.open(authUrl, '_self');\n    }\n    async _disconnectTikTok() {\n      this._changeset.set('socialNetworks.tiktok.value', {\n        label: null,\n        value: null\n      });\n      this._changeset.set('tiktokOAuth.authCode', null);\n      this._changeset.set('tiktokOAuth.hasUserToken', false);\n      this._changeset.execute();\n      await this._updateSettingsWithChangeset.perform(this._changeset);\n    }\n    _abortTikTokLogin() {\n      if (this._isTikTokModalReadOnly) {\n        this._isTikTokModalOpen = false;\n        return;\n      }\n      this.uiDialog.showDiscardChangesConfirm(() => {\n        this._changeset.set('socialNetworks.tiktok.value', {\n          label: null,\n          value: null\n        });\n        this._changeset.set('tiktokOAuth.authCode', null);\n        this._changeset.set('tiktokOAuth.hasUserToken', false);\n        this._changeset.execute();\n        this._isTikTokModalOpen = false;\n      }, this.intl.t('settings.socialNetworks.tiktokOAuth.loginAbortDialog.title'), this.intl.t('settings.socialNetworks.tiktokOAuth.loginAbortDialog.description'));\n    }\n    copyToClipboard(text) {\n      var _navigator;\n      (_navigator = navigator) === null || _navigator === void 0 || (_navigator = _navigator.clipboard) === null || _navigator === void 0 || _navigator.writeText(text);\n      this.uiToast.showToast({\n        type: 'success',\n        title: this.intl.t('toast.copyUrlSuccess')\n      });\n    }\n    resetFacebookChangesetProperties() {\n      this._changeset.set('socialNetworks.adAccount.value', {\n        label: null,\n        value: null\n      });\n      this._changeset.set('socialNetworks.businessManager.value', {\n        label: null,\n        value: null\n      });\n      this._changeset.set('socialNetworks.facebookPage.value', {\n        label: null,\n        value: null\n      });\n      this._changeset.set('socialNetworks.facebookPixel.value', {\n        label: null,\n        value: null\n      });\n      this._changeset.set('socialNetworks.instagram.value', {\n        label: null,\n        value: null\n      });\n      this._changeset.execute();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"multimedia\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiPaths\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"authCode\", [_dec, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"redirect\", [_dec2, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec3, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec4, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"_allowedVoucherValidityPeriods\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"_availableLanguages\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"_changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"_resource\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return {};\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"_sendAtIsValid\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"_isFBModalOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"_isFBModalReadOnly\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"_isTikTokModalOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"_isTikTokModalReadOnly\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"_isVoucherGreetingTextDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"_facebookPageOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"_tiktokAdAccounts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"_adAccountOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"_businessManagerOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor29 = _applyDecoratedDescriptor(_class.prototype, \"_facebookPixelOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor30 = _applyDecoratedDescriptor(_class.prototype, \"_instagramOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor31 = _applyDecoratedDescriptor(_class.prototype, \"_isNameDiscardChangesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor32 = _applyDecoratedDescriptor(_class.prototype, \"_isNameDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor33 = _applyDecoratedDescriptor(_class.prototype, \"_useSystemUserFlow\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor34 = _applyDecoratedDescriptor(_class.prototype, \"_emailReceiverEstimates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor35 = _applyDecoratedDescriptor(_class.prototype, \"_emailReceiverOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor36 = _applyDecoratedDescriptor(_class.prototype, \"_verifiedSenderDomains\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor37 = _applyDecoratedDescriptor(_class.prototype, \"_senderLocal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return '';\n    }\n  }), _descriptor38 = _applyDecoratedDescriptor(_class.prototype, \"_senderDomain\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor39 = _applyDecoratedDescriptor(_class.prototype, \"_senderEmailEdited\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_availableTiktokAdAccounts\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"_availableTiktokAdAccounts\"), _class.prototype), _descriptor40 = _applyDecoratedDescriptor(_class.prototype, \"_loadSettings\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor41 = _applyDecoratedDescriptor(_class.prototype, \"_fetchTikTokAdAccounts\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor42 = _applyDecoratedDescriptor(_class.prototype, \"_updateSettingsWithChangeset\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor43 = _applyDecoratedDescriptor(_class.prototype, \"_updateSettings\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor44 = _applyDecoratedDescriptor(_class.prototype, \"_toggleSync\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor45 = _applyDecoratedDescriptor(_class.prototype, \"_fetchEstimates\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor46 = _applyDecoratedDescriptor(_class.prototype, \"_toggleValue\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor47 = _applyDecoratedDescriptor(_class.prototype, \"fetchInstagramOptions\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor48 = _applyDecoratedDescriptor(_class.prototype, \"fetchFacebookPixelOptions\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor49 = _applyDecoratedDescriptor(_class.prototype, \"fetchFacebookAccounts\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor50 = _applyDecoratedDescriptor(_class.prototype, \"fetchSystemUserFacebookPixelOptions\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onEmailReceiverChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onEmailReceiverChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeEmailReceiverDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeEmailReceiverDialog\"), _class.prototype), _descriptor51 = _applyDecoratedDescriptor(_class.prototype, \"onBusinessManagerSelectChange\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onSendAtChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSendAtChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSocialSelectChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSocialSelectChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSocialMultiSelectChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSocialMultiSelectChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resetSocialNetworks\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"resetSocialNetworks\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeLandingPage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeLandingPage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSenderLocalChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSenderLocalChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSenderDomainChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSenderDomainChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onNameSingleLanguageChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onNameSingleLanguageChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onNameClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onNameClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"confirmNameDiscard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"confirmNameDiscard\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onNameSave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onNameSave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSaveVoucherLink\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSaveVoucherLink\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onVoucherGreetingTextLanguageChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onVoucherGreetingTextLanguageChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onVoucherGreetingTextDialogClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onVoucherGreetingTextDialogClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onVoucherGreetingTextSave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onVoucherGreetingTextSave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onResourceRemove\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onResourceRemove\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addMedium\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addMedium\"), _class.prototype), _descriptor52 = _applyDecoratedDescriptor(_class.prototype, \"onFacebookLogin\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openFacebookDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openFacebookDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openTikTokDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openTikTokDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onFacebookDisconnect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onFacebookDisconnect\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onLoginSubmit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onLoginSubmit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"abortFBLogin\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"abortFBLogin\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_onTikTokSubmit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onTikTokSubmit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_connectTikTok\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_connectTikTok\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_disconnectTikTok\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_disconnectTikTok\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_abortTikTokLogin\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_abortTikTokLogin\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"copyToClipboard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"copyToClipboard\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcSettings);\n});","define(\"additive-mc/components/amc-settings/birthday-voucher-link\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"ember-changeset\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\", \"ember-changeset-validations/validators\", \"ember-changeset-validations\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _emberChangeset, _emberArgTypes, _propTypes, _tracking, _validators, _emberChangesetValidations) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiControlPanelGroup\n    @title={{t \"settings.voucherLink.label\"}}\n    @placeholderCount={{1}}\n    @isLoading={{this.isLoading}}\n    @classNames=\"pb2\"\n    as |Group|\n  >\n    <Group.panel\n      @label={{t \"settings.voucherLink.label\"}}\n      @value={{this.currentValue}}\n      @isReadOnly={{this.isReadOnly}}\n      @onPanelClick={{this.openModal}}\n      as |panel|\n    >\n      <panel.left>\n        {{svg-jar \"voucher\" width=48 height=48 class=\"br2 shadow-2 mr2\"}}\n        <UiStatus @state={{this.state}} />\n      </panel.left>\n    </Group.panel>\n  </UiControlPanelGroup>\n  \n  {{#if this._isModalOpen}}\n    <UiModal\n      @title={{t \"settings.voucherLink.label\"}}\n      @size=\"md\"\n      @onClose={{this.onClose}}\n      as |modal|\n    >\n      <modal.header />\n      <modal.content as |c|>\n        <c.body @class=\"{{if this.isReadOnly 'pb2' ''}}\">\n          <UiLangSelect\n            @languages={{this.availableLanguages}}\n            @publishedLanguages={{this.publishedLanguages}}\n            @onSelect={{this.changeLanguage}}\n            @selected={{this._currentLanguage}}\n            @hideLanguageActions={{true}}\n          />\n  \n          <UiInput\n            @classNames=\"pt2\"\n            @label={{t \"settings.voucherLink.input.label\"}}\n            @errorMessage={{get\n              (get this._changeset.error this._currentLanguage)\n              \"validation.firstObject\"\n            }}\n            @value={{this._value}}\n          />\n        </c.body>\n      </modal.content>\n      {{#unless this.isReadOnly}}\n        <modal.footer>\n          <UiButton @label={{t \"global.actions.save\"}} @isSecondary={{true}} @onClick={{this.save}} />\n        </modal.footer>\n      {{/unless}}\n    </UiModal>\n  {{/if}}\n  */\n  {\n    \"id\": \"/0gkubNj\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@placeholderCount\\\",\\\"@isLoading\\\",\\\"@classNames\\\"],[[28,[37,1],[\\\"settings.voucherLink.label\\\"],null],1,[30,0,[\\\"isLoading\\\"]],\\\"pb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@onPanelClick\\\"],[[28,[37,1],[\\\"settings.voucherLink.label\\\"],null],[30,0,[\\\"currentValue\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"openModal\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"left\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,2],[\\\"voucher\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[48,48,\\\"br2 shadow-2 mr2\\\"]]]],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@state\\\"],[[30,0,[\\\"state\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_isModalOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@title\\\",\\\"@size\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"settings.voucherLink.label\\\"],null],\\\"md\\\",[30,0,[\\\"onClose\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,4,[\\\"body\\\"]],null,[[\\\"@class\\\"],[[29,[[52,[30,0,[\\\"isReadOnly\\\"]],\\\"pb2\\\",\\\"\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@languages\\\",\\\"@publishedLanguages\\\",\\\"@onSelect\\\",\\\"@selected\\\",\\\"@hideLanguageActions\\\"],[[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"publishedLanguages\\\"]],[30,0,[\\\"changeLanguage\\\"]],[30,0,[\\\"_currentLanguage\\\"]],true]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,7],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@errorMessage\\\",\\\"@value\\\"],[\\\"pt2\\\",[28,[37,1],[\\\"settings.voucherLink.input.label\\\"],null],[28,[37,8],[[28,[37,8],[[30,0,[\\\"_changeset\\\",\\\"error\\\"]],[30,0,[\\\"_currentLanguage\\\"]]],null],\\\"validation.firstObject\\\"],null],[30,0,[\\\"_value\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[4]]]]],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"      \\\"],[8,[30,3,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,10],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.save\\\"],null],true,[30,0,[\\\"save\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"Group\\\",\\\"panel\\\",\\\"modal\\\",\\\"c\\\"],false,[\\\"ui-control-panel-group\\\",\\\"t\\\",\\\"svg-jar\\\",\\\"ui-status\\\",\\\"if\\\",\\\"ui-modal\\\",\\\"ui-lang-select\\\",\\\"ui-input\\\",\\\"get\\\",\\\"unless\\\",\\\"ui-button\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-settings/birthday-voucher-link.hbs\",\n    \"isStrictMode\": false\n  });\n  let BirthdayVoucherLink = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.bool), _dec2 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec3 = (0, _emberArgTypes.arg)(_propTypes.array), _dec4 = (0, _emberArgTypes.arg)(_propTypes.object), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class BirthdayVoucherLink extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      /**\n       * Whether the component is read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor4, this);\n      /**\n       * Whether data is currently loading\n       *\n       * @argument isLoading\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isLoading\", _descriptor5, this);\n      /**\n       * The available languages\n       *\n       * @argument availableLanguages\n       * @type {Array}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"availableLanguages\", _descriptor6, this);\n      /**\n       * The currently selected birthday target pages\n       *\n       * @argument values\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"values\", _descriptor7, this);\n      /**\n       * the changeset for the setting\n       *\n       * @property _changeset\n       * @type {Changeset}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"_changeset\", _descriptor8, this);\n      /**\n       * The currently edited value\n       *\n       * @property _value\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"_value\", _descriptor9, this);\n      /**\n       * Whether the modal is open\n       *\n       * @property _isModalOpen\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"_isModalOpen\", _descriptor10, this);\n      /**\n       * the language that is currently being edited\n       *\n       * @property _currentLanguage\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"_currentLanguage\", _descriptor11, this);\n      /**\n       * the callback function on save\n       *\n       * @function onSave\n       */\n      _initializerDefineProperty(this, \"onSave\", _descriptor12, this);\n    }\n    get publishedLanguages() {\n      return this.availableLanguages.filter(language => {\n        var _this$values;\n        return ((_this$values = this.values) === null || _this$values === void 0 ? void 0 : _this$values[language]) !== '';\n      });\n    }\n    get currentValue() {\n      var _this$values2;\n      return (_this$values2 = this.values) === null || _this$values2 === void 0 ? void 0 : _this$values2[this.uiAppSettings.currentLocale];\n    }\n    get state() {\n      const emptyLanguages = [];\n      this.availableLanguages.forEach(language => {\n        var _this$values3;\n        if (((_this$values3 = this.values) === null || _this$values3 === void 0 ? void 0 : _this$values3[language]) === '') {\n          emptyLanguages.push(language);\n        }\n      });\n      if (emptyLanguages.length === 0) {\n        return 'success';\n      }\n      if (emptyLanguages.length === this.availableLanguages.length) {\n        return 'error';\n      }\n      return 'warning';\n    }\n    openModal() {\n      const validation = {};\n      this.availableLanguages.forEach(language => {\n        validation[language] = (0, _validators.validateFormat)({\n          /* eslint-disable */\n          regex: /^(http:\\/\\/www\\.|https:\\/\\/www\\.|http:\\/\\/|https:\\/\\/)?[A-Za-z0-9]+([\\-\\.]{1}[A-Za-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(\\/.*)?$/,\n          /* eslint-enable */\n          allowBlank: true,\n          message: this.intl.t('errors.invalidFormat')\n        });\n      });\n      this._changeset = new _emberChangeset.default(this.values, (0, _emberChangesetValidations.default)(validation), validation);\n      this._value = this._changeset.get(this._currentLanguage);\n      this._isModalOpen = true;\n    }\n    changeLanguage(language) {\n      const previouslySelectedLanguage = this._currentLanguage;\n      this._changeset.set(this._currentLanguage, this._value);\n      this._changeset.validate();\n      // Prevent language change if there is an error\n      if (!this._changeset.isValid) {\n        this._currentLanguage = previouslySelectedLanguage;\n        return;\n      }\n      this._currentLanguage = language;\n      this._value = this._changeset.get(language);\n    }\n    async save() {\n      this._changeset.set(this._currentLanguage, this._value);\n      this._changeset.execute();\n      this._changeset.validate();\n      if (!this._changeset.isValid) {\n        return;\n      }\n      await this.onSave(this._changeset.data);\n      this.close();\n    }\n    close() {\n      this._isModalOpen = false;\n      this._currentLanguage = this.uiAppSettings.currentLocale;\n    }\n    onClose() {\n      this._changeset.set(this._currentLanguage, this._value);\n      if (!this._changeset.isDirty) {\n        this.close();\n        return;\n      }\n      this.uiDialog.showDiscardChangesConfirm(() => {\n        this._changeset.rollback();\n        this.close();\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"availableLanguages\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"values\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"_changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"_value\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"_isModalOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"_currentLanguage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return this.uiAppSettings.currentLocale || 'de';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"openModal\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeLanguage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeLanguage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClose\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BirthdayVoucherLink);\n});","define(\"additive-mc/components/amc-settings/facebook-connect\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"ember-arg-types\", \"prop-types\", \"@glimmer/tracking\"], function (_exports, _component, _templateFactory, _environment, _component2, _object, _service, _emberArgTypes, _propTypes, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <this.controlPanelGroup.panel\n    @label={{t \"settings.socialNetworks.facebookOAuth.label\"}}\n    @value={{this.connectedText}}\n    @noink={{true}} as |Panel|\n  >\n    <Panel.left>\n      <UiPopover @classNames=\"mb2\" as |pop|>\n        <pop.trigger>\n          <UiStatus @state={{this.facebookState}} />\n        </pop.trigger>\n        <pop.content>\n          {{#if this.isConnected}}\n            {{t \"settings.socialNetworks.facebookOAuth.connectedPopover\" user=this.value.userName}}\n          {{else}}\n            {{t \"settings.socialNetworks.facebookOAuth.disconnectedPopover\"}}\n          {{/if}}\n        </pop.content>\n      </UiPopover>\n    </Panel.left>\n    <Panel.right>\n      <div class=\"flex flex-column flex-start\">\n        {{#unless this.isReadOnly}}\n          {{#if this.isConnected}}\n            <div class=\"flex gap2\">\n              <UiIconButton\n                @icon=\"connect\"\n                @label={{t \"settings.socialNetworks.facebookOAuth.reconnect\"}}\n                @onClick={{fn (mut this.isConnectDialogOpen) true}}\n              />\n              <UiIconButton\n                @icon=\"disconnect\"\n                @label={{t \"settings.socialNetworks.facebookOAuth.disconnect\"}}\n                @isDanger={{true}}\n                @onClick={{this.disconnect}}\n              />\n              <UiIconButton @icon=\"info\" @isSecondary={{true}} @onClick={{this.onClick}} />\n            </div>\n          {{else}}\n            <UiIconButton\n              @icon=\"connect\"\n              @label={{t \"settings.socialNetworks.facebookOAuth.connect\"}}\n              @bubbles={{false}}\n              @onClick={{fn (mut this.isConnectDialogOpen) true}}\n            />\n          {{/if}}\n        {{/unless}}\n      </div>\n    </Panel.right>\n  </this.controlPanelGroup.panel>\n  {{#if this.isConnectDialogOpen}}\n    <UiModal\n      @modalClassNames=\"h-auto\"\n      @title={{t \"settings.socialNetworks.facebookOAuth.label\"}}\n      @size=\"md\"\n      @onClose={{fn (mut this.isConnectDialogOpen) false}} as |m|\n    >\n      <m.header />\n      <m.content as |c|>\n        <c.body>\n          <UiItemGroup @class=\"w-100 pv0\" as |group|>\n            {{#if this.isSystemUser}}\n              <group.item @icon=\"user-settings\" @onClick={{this.connectSystemUserFlow}} as |item|>\n                <item.intro\n                  @title={{t \"settings.socialNetworks.facebookOAuth.systemUser.title\"}}\n                  @description={{t \"settings.socialNetworks.facebookOAuth.systemUser.description\"}}\n                />\n              </group.item>\n            {{/if}}\n            <group.item @icon=\"connect\" @onClick={{this.connectFacebookFlow}} as |item|>\n              <item.intro\n                @title={{t \"settings.socialNetworks.facebookOAuth.facebookConnect.title\"}}\n                @description={{t \"settings.socialNetworks.facebookOAuth.facebookConnect.description\"}}\n              />\n            </group.item>\n          </UiItemGroup>\n        </c.body>\n      </m.content>\n    </UiModal>\n  {{/if}}\n  */\n  {\n    \"id\": \"RYBPlGEL\",\n    \"block\": \"[[[8,[30,0,[\\\"controlPanelGroup\\\",\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@noink\\\"],[[28,[37,0],[\\\"settings.socialNetworks.facebookOAuth.label\\\"],null],[30,0,[\\\"connectedText\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"left\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@classNames\\\"],[\\\"mb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,2],null,[[\\\"@state\\\"],[[30,0,[\\\"facebookState\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isConnected\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,0],[\\\"settings.socialNetworks.facebookOAuth.connectedPopover\\\"],[[\\\"user\\\"],[[30,0,[\\\"value\\\",\\\"userName\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,0],[\\\"settings.socialNetworks.facebookOAuth.disconnectedPopover\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column flex-start\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[41,[30,0,[\\\"isConnected\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex gap2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"connect\\\",[28,[37,0],[\\\"settings.socialNetworks.facebookOAuth.reconnect\\\"],null],[28,[37,6],[[28,[37,7],[[30,0,[\\\"isConnectDialogOpen\\\"]]],null],true],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[\\\"disconnect\\\",[28,[37,0],[\\\"settings.socialNetworks.facebookOAuth.disconnect\\\"],null],true,[30,0,[\\\"disconnect\\\"]]]],null],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"info\\\",true,[30,0,[\\\"onClick\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@bubbles\\\",\\\"@onClick\\\"],[\\\"connect\\\",[28,[37,0],[\\\"settings.socialNetworks.facebookOAuth.connect\\\"],null],false,[28,[37,6],[[28,[37,7],[[30,0,[\\\"isConnectDialogOpen\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isConnectDialogOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,8],null,[[\\\"@modalClassNames\\\",\\\"@title\\\",\\\"@size\\\",\\\"@onClose\\\"],[\\\"h-auto\\\",[28,[37,0],[\\\"settings.socialNetworks.facebookOAuth.label\\\"],null],\\\"md\\\",[28,[37,6],[[28,[37,7],[[30,0,[\\\"isConnectDialogOpen\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,4,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,9],null,[[\\\"@class\\\"],[\\\"w-100 pv0\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSystemUser\\\"]],[[[1,\\\"            \\\"],[8,[30,5,[\\\"item\\\"]],null,[[\\\"@icon\\\",\\\"@onClick\\\"],[\\\"user-settings\\\",[30,0,[\\\"connectSystemUserFlow\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,6,[\\\"intro\\\"]],null,[[\\\"@title\\\",\\\"@description\\\"],[[28,[37,0],[\\\"settings.socialNetworks.facebookOAuth.systemUser.title\\\"],null],[28,[37,0],[\\\"settings.socialNetworks.facebookOAuth.systemUser.description\\\"],null]]],null],[1,\\\"\\\\n            \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[30,5,[\\\"item\\\"]],null,[[\\\"@icon\\\",\\\"@onClick\\\"],[\\\"connect\\\",[30,0,[\\\"connectFacebookFlow\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,7,[\\\"intro\\\"]],null,[[\\\"@title\\\",\\\"@description\\\"],[[28,[37,0],[\\\"settings.socialNetworks.facebookOAuth.facebookConnect.title\\\"],null],[28,[37,0],[\\\"settings.socialNetworks.facebookOAuth.facebookConnect.description\\\"],null]]],null],[1,\\\"\\\\n          \\\"]],[7]]]]],[1,\\\"\\\\n        \\\"]],[5]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[4]]]]],[1,\\\"\\\\n  \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"Panel\\\",\\\"pop\\\",\\\"m\\\",\\\"c\\\",\\\"group\\\",\\\"item\\\",\\\"item\\\"],false,[\\\"t\\\",\\\"ui-popover\\\",\\\"ui-status\\\",\\\"if\\\",\\\"unless\\\",\\\"ui-icon-button\\\",\\\"fn\\\",\\\"mut\\\",\\\"ui-modal\\\",\\\"ui-item-group\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-settings/facebook-connect.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Panel component that handles the Facebook OAuth authentication\n   *\n   * @class AmcSettingsFacebookConnectComponent\n   */\n  let AmcSettingsFacebookConnectComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec5 = (0, _emberArgTypes.arg)(_emberArgTypes.func), _dec6 = (0, _emberArgTypes.arg)(_emberArgTypes.func), _dec7 = (0, _emberArgTypes.arg)(_emberArgTypes.func), _dec8 = (0, _emberArgTypes.arg)(_emberArgTypes.func), _class = class AmcSettingsFacebookConnectComponent extends _component2.default {\n    /**\n     * the state of the connection\n     *\n     * @computed facebookState\n     * @type {String}\n     */\n    get facebookState() {\n      var _this$value, _this$value2, _this$value3;\n      return (_this$value = this.value) !== null && _this$value !== void 0 && _this$value.userId && ((_this$value2 = this.value) !== null && _this$value2 !== void 0 && _this$value2.userToken || (_this$value3 = this.value) !== null && _this$value3 !== void 0 && _this$value3.hasUserToken) ? 'success' : '';\n    }\n\n    /**\n     * whether the user is a system user\n     *\n     * @computed isSystemUser\n     * @type {Boolean}\n     */\n    get isSystemUser() {\n      return this.isAdditive && this.isManagedByAdditive;\n    }\n    get isAdditive() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.user) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.isAdditive;\n    }\n    get isManagedByAdditive() {\n      var _this$uiAppSettings, _this$uiAppSettings2;\n      return ((_this$uiAppSettings = this.uiAppSettings) === null || _this$uiAppSettings === void 0 ? void 0 : _this$uiAppSettings.managed) && ((_this$uiAppSettings2 = this.uiAppSettings) === null || _this$uiAppSettings2 === void 0 ? void 0 : _this$uiAppSettings2.managedByAdditive);\n    }\n    get isAdditivePartner() {\n      var _this$currentUser2;\n      return ((_this$currentUser2 = this.currentUser) === null || _this$currentUser2 === void 0 || (_this$currentUser2 = _this$currentUser2.currentOrganization) === null || _this$currentUser2 === void 0 ? void 0 : _this$currentUser2.partnerSlug) === 'additive-eu';\n    }\n\n    /**\n     * whether there is a connection\n     *\n     * @computed isConnected\n     * @type {Boolean}\n     */\n    get isConnected() {\n      return this.facebookState === 'success';\n    }\n    get socialNetworks() {\n      var _this$changeset;\n      return (_this$changeset = this.changeset) === null || _this$changeset === void 0 ? void 0 : _this$changeset.get('socialNetworks');\n    }\n    get connectedText() {\n      var _this$changeset2, _this$changeset3;\n      if (!this.isConnected) {\n        return '';\n      }\n      const adAccount = (_this$changeset2 = this.changeset) === null || _this$changeset2 === void 0 ? void 0 : _this$changeset2.get('socialNetworks.adAccount.value.label');\n      const facebookPage = (_this$changeset3 = this.changeset) === null || _this$changeset3 === void 0 ? void 0 : _this$changeset3.get('socialNetworks.facebookPage.value.label');\n      return [facebookPage, adAccount].filter(account => account).join(', ');\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor5, this);\n      /**\n       * the ui-control-group\n       *\n       * @argument controlPanelGroup\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"controlPanelGroup\", _descriptor6, this);\n      /**\n       * the settings changeset\n       *\n       * @argument changeset\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor7, this);\n      /**\n       * the facebook oAuth object\n       *\n       * @argument value\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"value\", _descriptor8, this);\n      /**\n       * whether the component is read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor9, this);\n      /**\n       * whether the connect dialog is open\n       *\n       * @argument isConnectDialogOpen\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isConnectDialogOpen\", _descriptor10, this);\n      /**\n       * the callback function that saves the value\n       *\n       * @function onChange\n       */\n      _initializerDefineProperty(this, \"onChange\", _descriptor11, this);\n      /**\n       * the callback function on click\n       *\n       * @function onClick\n       */\n      _initializerDefineProperty(this, \"onClick\", _descriptor12, this);\n      /**\n       * the callback function when facebook is disconnected\n       *\n       * @function onFacebookDisconnect\n       */\n      _initializerDefineProperty(this, \"onFacebookDisconnect\", _descriptor13, this);\n      /**\n       * the callback function that triggers on submit\n       *\n       * @function onSubmit\n       */\n      _initializerDefineProperty(this, \"onSubmit\", _descriptor14, this);\n      const script = document.createElement('script');\n      const firstScript = document.getElementsByTagName('script')[0];\n      script.async = 1;\n      script.src = '//connect.facebook.net/en_US/sdk.js';\n      firstScript.parentNode.insertBefore(script, firstScript);\n      script.onload = () => {\n        var _this$value4;\n        window.FB.init({\n          appId: (_this$value4 = this.value) === null || _this$value4 === void 0 ? void 0 : _this$value4.appId,\n          version: 'v22.0'\n        });\n      };\n    }\n    /**\n     * handles the login over the facebook API\n     *\n     * @function connect\n     */\n    connect(type) {\n      var _ENV$emberCliMirage;\n      if (_environment.default !== null && _environment.default !== void 0 && (_ENV$emberCliMirage = _environment.default['ember-cli-mirage']) !== null && _ENV$emberCliMirage !== void 0 && _ENV$emberCliMirage.enabled) {\n        this.onChange({\n          userToken: '',\n          userId: ''\n        });\n        this.onSubmit();\n        return;\n      }\n      if (type === 'systemUser') {\n        this.onSubmit();\n        this.onChange({\n          useSystemUser: true\n        });\n        return;\n      }\n      window.FB.login(response => {\n        if (response.status === 'connected') {\n          const {\n            accessToken,\n            userID,\n            grantedScopes\n          } = response.authResponse;\n\n          // eslint-disable-next-line\n          console.log('Scopes', this.value.scope);\n          // eslint-disable-next-line\n          console.log('Granted scopes', grantedScopes);\n          if (this.value.scope.every(v => grantedScopes.split(',').includes(v))) {\n            this.onChange({\n              userToken: accessToken,\n              userId: userID\n            });\n            this.onSubmit();\n          } else {\n            this.uiDialog.showError(this.intl.t('settings.socialNetworks.facebookOAuth.missingPermissionsDialog.title'), this.intl.t('settings.socialNetworks.facebookOAuth.missingPermissionsDialog.error'));\n          }\n        } else {\n          this.uiToast.showToast({\n            title: this.intl.t('toast.unexpectedError'),\n            type: 'error'\n          });\n        }\n      }, {\n        scope: this.value.scope,\n        return_scopes: true\n      });\n    }\n    connectFacebookFlow() {\n      this.connect();\n      this.isConnectDialogOpen = false;\n    }\n    connectSystemUserFlow() {\n      this.connect('systemUser');\n      this.isConnectDialogOpen = false;\n    }\n\n    /**\n     * removes the connection to the facebook API\n     *\n     * @function disconnect\n     */\n    disconnect() {\n      this.uiDialog.showConfirm(this.intl.t('settings.socialNetworks.facebookOAuth.disconnectDialog.title'), this.intl.t('settings.socialNetworks.facebookOAuth.disconnectDialog.description'), () => this.onFacebookDisconnect({\n        hasUserToken: false,\n        userToken: null,\n        userId: null,\n        userName: null\n      }), this.intl.t('global.actions.disconnect'), true);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"controlPanelGroup\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"value\", [_dec3, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec4, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isConnectDialogOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"onFacebookDisconnect\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"onSubmit\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"connect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"connect\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"connectFacebookFlow\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"connectFacebookFlow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"connectSystemUserFlow\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"connectSystemUserFlow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"disconnect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"disconnect\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcSettingsFacebookConnectComponent);\n});","define(\"additive-mc/components/amc-settings/tik-tok-connect\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"ember-arg-types\", \"@ember/object\", \"@ember/service\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _emberArgTypes, _object, _service, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <this.controlPanelGroup.panel\n    @label={{t \"settings.socialNetworks.tiktokOAuth.label\"}}\n    @value={{this.connectedText}}\n    @noink={{true}} as |Panel|\n  >\n    <Panel.left>\n      <UiPopover as |pop|>\n        <pop.trigger>\n          <UiStatus @state={{this.tiktokState}} />\n        </pop.trigger>\n        <pop.content>\n          {{#if this.isConnected}}\n            {{t \"settings.socialNetworks.tiktokOAuth.connectedPopover\"}}\n            <br />\n          {{else}}\n            {{t \"settings.socialNetworks.tiktokOAuth.disconnectedPopover\"}}\n          {{/if}}\n        </pop.content>\n      </UiPopover>\n    </Panel.left>\n    <Panel.right>\n      <div class=\"flex flex-column flex-start\">\n        {{#unless this.isReadOnly}}\n          {{#if this.isConnected}}\n            <div class=\"flex gap2\">\n              <UiIconButton\n                @icon=\"connect\"\n                @label={{t \"settings.socialNetworks.tiktokOAuth.reconnect\"}}\n                @onClick={{this.onConnect}}\n              />\n              <UiIconButton\n                @icon=\"disconnect\"\n                @label={{t \"settings.socialNetworks.tiktokOAuth.disconnect\"}}\n                @isDanger={{true}}\n                @onClick={{this.disconnect}}\n              />\n              <UiIconButton @icon=\"info\" @isSecondary={{true}} @onClick={{this.onClick}} />\n            </div>\n          {{else}}\n            <UiIconButton\n              @icon=\"connect\"\n              @label={{t \"settings.socialNetworks.tiktokOAuth.connect\"}}\n              @onClick={{this.onConnect}}\n            />\n          {{/if}}\n        {{/unless}}\n      </div>\n    </Panel.right>\n  </this.controlPanelGroup.panel>\n  */\n  {\n    \"id\": \"5pyk+Wvn\",\n    \"block\": \"[[[8,[30,0,[\\\"controlPanelGroup\\\",\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@noink\\\"],[[28,[37,0],[\\\"settings.socialNetworks.tiktokOAuth.label\\\"],null],[30,0,[\\\"connectedText\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"left\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,1],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,2],null,[[\\\"@state\\\"],[[30,0,[\\\"tiktokState\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isConnected\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,0],[\\\"settings.socialNetworks.tiktokOAuth.connectedPopover\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,0],[\\\"settings.socialNetworks.tiktokOAuth.disconnectedPopover\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column flex-start\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[41,[30,0,[\\\"isConnected\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex gap2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"connect\\\",[28,[37,0],[\\\"settings.socialNetworks.tiktokOAuth.reconnect\\\"],null],[30,0,[\\\"onConnect\\\"]]]],null],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[\\\"disconnect\\\",[28,[37,0],[\\\"settings.socialNetworks.tiktokOAuth.disconnect\\\"],null],true,[30,0,[\\\"disconnect\\\"]]]],null],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"info\\\",true,[30,0,[\\\"onClick\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"connect\\\",[28,[37,0],[\\\"settings.socialNetworks.tiktokOAuth.connect\\\"],null],[30,0,[\\\"onConnect\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"Panel\\\",\\\"pop\\\"],false,[\\\"t\\\",\\\"ui-popover\\\",\\\"ui-status\\\",\\\"if\\\",\\\"unless\\\",\\\"ui-icon-button\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-settings/tik-tok-connect.hbs\",\n    \"isStrictMode\": false\n  });\n  /**\n   * Panel component that handles the TikTok OAuth authentication\n   *\n   * @class AmcSettingsTikTokConnectComponent\n   */\n  let AmcSettingsTikTokConnectComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.object), _dec4 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _dec6 = (0, _emberArgTypes.arg)(_propTypes.func), _dec7 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcSettingsTikTokConnectComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      /**\n       * the ui-control-group\n       *\n       * @argument controlPanelGroup\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"controlPanelGroup\", _descriptor3, this);\n      /**\n       * the tiktok oAuth object\n       *\n       * @argument value\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"value\", _descriptor4, this);\n      /**\n       * the current ad-account\n       *\n       * @argument adAccount\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"adAccount\", _descriptor5, this);\n      /**\n       * whether the component is read only\n       *\n       * @argument isReadOnly\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isReadOnly\", _descriptor6, this);\n      /**\n       * the callback function that handles the login over the tiktok API\n       *\n       * @function onConnect\n       */\n      _initializerDefineProperty(this, \"onConnect\", _descriptor7, this);\n      /**\n       * the callback function that removes the connection to the tiktok API\n       *\n       * @function onDisconnect\n       */\n      _initializerDefineProperty(this, \"onDisconnect\", _descriptor8, this);\n      /**\n       * the callback function on click\n       *\n       * @function onClick\n       */\n      _initializerDefineProperty(this, \"onClick\", _descriptor9, this);\n    }\n    /**\n     * the state of the connection\n     *\n     * @computed tiktokState\n     * @type {String}\n     */\n    get tiktokState() {\n      var _this$value;\n      if ((_this$value = this.value) !== null && _this$value !== void 0 && _this$value.hasUserToken) {\n        return 'success';\n      }\n      return '';\n    }\n\n    /**\n     * whether there is a connection\n     *\n     * @computed isConnected\n     * @type {Boolean}\n     */\n    get isConnected() {\n      return this.tiktokState === 'success';\n    }\n    get connectedText() {\n      var _this$adAccount;\n      if (!this.isConnected || !((_this$adAccount = this.adAccount) !== null && _this$adAccount !== void 0 && _this$adAccount.label)) {\n        return '';\n      }\n      return this.adAccount.label;\n    }\n    disconnect() {\n      this.uiDialog.showConfirm(this.intl.t('settings.socialNetworks.tiktokOAuth.disconnectDialog.title'), this.intl.t('settings.socialNetworks.tiktokOAuth.disconnectDialog.description'), () => {\n        this.onDisconnect();\n      }, this.intl.t('global.actions.disconnect'));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"controlPanelGroup\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"value\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"adAccount\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isReadOnly\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"onConnect\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"onDisconnect\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"disconnect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"disconnect\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcSettingsTikTokConnectComponent);\n});","define(\"additive-mc/components/amc-table-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"additive-mc/config/environment\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/template\", \"@additive-apps/ui/utils/sort-util\", \"@ember/object\", \"date-fns/format\", \"date-fns/locale\", \"ember-concurrency\", \"ember-arg-types\", \"prop-types\", \"ember-svg-jar/utils/make-svg\", \"dompurify\", \"@additive-apps/ui/utils/date-util\", \"@additive-apps/ui/utils/query-param-util\"], function (_exports, _component, _templateFactory, _environment, _component2, _tracking, _service, _template, _sortUtil, _object, _format, _locale, _emberConcurrency, _emberArgTypes, _propTypes, _makeSvg, _dompurify, _dateUtil, _queryParamUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{t (concat \"reports.\" this.dialogType \".title\")}}\n    @subtitle={{this.title}}\n    @onClose={{this.onClose}}\n    @size=\"lg\"\n    @modalClassNames=\"amc-table-dialog\" as |m|\n  >\n    <m.header as |header|>\n      {{#if (and this.hasDownloadAction (eq this.dialogType \"reservations\"))}}\n        <header.action\n          @label={{t \"global.actions.download\"}}\n          @icon=\"download\"\n          @onClick={{perform this.exportReservations}}\n        />\n      {{/if}}\n    </m.header>\n    <m.content {{did-insert (perform this.fetchTableData)}} as |c|>\n      <c.body class=\"ph1\">\n        <span class=\"pb1\">\n          {{format-date this.filters.start day=\"numeric\" month=\"short\" year=\"numeric\"}}\n          —\n          {{format-date this.filters.end day=\"numeric\" month=\"short\" year=\"numeric\"}}\n        </span>\n        {{#if this.fetchTableData.isRunning}}\n          <UiSkeleton\n            @itemsPerRow={{1}}\n            @items={{8}}\n            @itemsSmartphone={{5}}\n            @cardHeight={{52}}\n            @gap={{4}}\n          />\n        {{else if this.isTableEmpty}}\n          <div class=\"flex flex-column items-center justify-center text-center\">\n            {{svg-jar \"empty-content-grey\"}}\n            <div class=\"font-sm secondary\">\n              {{t (concat \"reports.\" this.dialogType \".empty\")}}\n            </div>\n          </div>\n        {{else}}\n          {{#if this.description}}\n            <div class=\"pv1\">\n              {{this.description}}\n            </div>\n          {{/if}}\n          <UiTable\n            @classNames=\"ph2\"\n            @columns={{this.columns}}\n            @rows={{this._currentRows}}\n            @onSort={{this._customSort}}\n            @formats={{this._formats}}\n            @isLoading={{this.fetchTableData.isRunning}}\n            @isError={{this.isError}}\n            @onReload={{perform this.fetchTableData}} as |Table|\n          >\n            <Table.head />\n            <Table.body as |Body|>\n              <Body.row @hasActions={{false}} />\n            </Table.body>\n          </UiTable>\n          <UiPagination\n            @isInput={{true}}\n            @total={{this._totalPages}}\n            @setCurrentPage={{fn (mut this._currentPage)}}\n            @currentPage={{this._currentPage}}\n          />\n        {{/if}}\n      </c.body>\n    </m.content>\n  </UiModal>\n  */\n  {\n    \"id\": \"Kzvi+vLU\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@subtitle\\\",\\\"@onClose\\\",\\\"@size\\\",\\\"@modalClassNames\\\"],[[28,[37,1],[[28,[37,2],[\\\"reports.\\\",[30,0,[\\\"dialogType\\\"]],\\\".title\\\"],null]],null],[30,0,[\\\"title\\\"]],[30,0,[\\\"onClose\\\"]],\\\"lg\\\",\\\"amc-table-dialog\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"hasDownloadAction\\\"]],[28,[37,5],[[30,0,[\\\"dialogType\\\"]],\\\"reservations\\\"],null]],null],[[[1,\\\"      \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.download\\\"],null],\\\"download\\\",[28,[37,6],[[30,0,[\\\"exportReservations\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],[[4,[38,7],[[28,[37,6],[[30,0,[\\\"fetchTableData\\\"]]],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"body\\\"]],[[24,0,\\\"ph1\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"pb1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[[30,0,[\\\"filters\\\",\\\"start\\\"]]],[[\\\"day\\\",\\\"month\\\",\\\"year\\\"],[\\\"numeric\\\",\\\"short\\\",\\\"numeric\\\"]]]],[1,\\\"\\\\n        —\\\\n        \\\"],[1,[28,[35,8],[[30,0,[\\\"filters\\\",\\\"end\\\"]]],[[\\\"day\\\",\\\"month\\\",\\\"year\\\"],[\\\"numeric\\\",\\\"short\\\",\\\"numeric\\\"]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fetchTableData\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,9],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,8,5,52,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isTableEmpty\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[[28,[37,2],[\\\"reports.\\\",[30,0,[\\\"dialogType\\\"]],\\\".empty\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"description\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"pv1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"description\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,11],null,[[\\\"@classNames\\\",\\\"@columns\\\",\\\"@rows\\\",\\\"@onSort\\\",\\\"@formats\\\",\\\"@isLoading\\\",\\\"@isError\\\",\\\"@onReload\\\"],[\\\"ph2\\\",[30,0,[\\\"columns\\\"]],[30,0,[\\\"_currentRows\\\"]],[30,0,[\\\"_customSort\\\"]],[30,0,[\\\"_formats\\\"]],[30,0,[\\\"fetchTableData\\\",\\\"isRunning\\\"]],[30,0,[\\\"isError\\\"]],[28,[37,6],[[30,0,[\\\"fetchTableData\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,4,[\\\"head\\\"]],null,null,null],[1,\\\"\\\\n          \\\"],[8,[30,4,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"row\\\"]],null,[[\\\"@hasActions\\\"],[false]],null],[1,\\\"\\\\n          \\\"]],[5]]]]],[1,\\\"\\\\n        \\\"]],[4]]]]],[1,\\\"\\\\n        \\\"],[8,[39,12],null,[[\\\"@isInput\\\",\\\"@total\\\",\\\"@setCurrentPage\\\",\\\"@currentPage\\\"],[true,[30,0,[\\\"_totalPages\\\"]],[28,[37,13],[[28,[37,14],[[30,0,[\\\"_currentPage\\\"]]],null]],null],[30,0,[\\\"_currentPage\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"m\\\",\\\"header\\\",\\\"c\\\",\\\"Table\\\",\\\"Body\\\"],false,[\\\"ui-modal\\\",\\\"t\\\",\\\"concat\\\",\\\"if\\\",\\\"and\\\",\\\"eq\\\",\\\"perform\\\",\\\"did-insert\\\",\\\"format-date\\\",\\\"ui-skeleton\\\",\\\"svg-jar\\\",\\\"ui-table\\\",\\\"ui-pagination\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-table-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  const leadsFormatingTableOptions = [{\n    sort: 'String',\n    classNames: 'ws-nowrap'\n  }, {\n    sort: 'Date',\n    classNames: 'ws-nowrap'\n  }, {\n    sort: 'String',\n    classNames: 'ws-nowrap'\n  }, {\n    sort: 'String',\n    classNames: 'ws-nowrap'\n  }];\n  const reservationsFormatingTableOptions = [{\n    sort: 'String',\n    classNames: 'ws-nowrap'\n  }, {\n    sort: 'String',\n    classNames: 'ws-nowrap'\n  }, {\n    sort: 'String',\n    classNames: 'ws-nowrap'\n  }, {\n    sort: 'String',\n    classNames: 'ws-nowrap'\n  }, {\n    sort: 'Date',\n    classNames: 'ws-nowrap'\n  }, {\n    sort: 'Number',\n    classNames: 'ws-nowrap'\n  }, {\n    sort: false,\n    classNames: 'ws-nowrap'\n  }, {\n    sort: 'String',\n    classNames: 'ws-nowrap'\n  }, {\n    sort: 'String',\n    classNames: 'ws-nowrap'\n  }, {\n    sort: 'String',\n    classNames: 'ws-nowrap'\n  }];\n  /**\n   * Dialog that shows the reservations and leads in a table\n   *\n   * @class AmcTableDialogComponent\n   */\n  let AmcTableDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.string), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.string), _dec4 = (0, _emberArgTypes.arg)(_propTypes.boolean), _dec5 = (0, _emberArgTypes.arg)(_propTypes.func), _dec6 = (0, _emberConcurrency.task)(function* () {\n    const requestPath = this.dialogType === 'reservations' ? 'reservations-table' : 'leads-list';\n    const tasks = [];\n    const baseUrl = _environment.default.APP.apiBaseHost;\n    const {\n      filters,\n      type\n    } = this;\n    const qps = (0, _queryParamUtil.getQueryParams)(filters);\n    const path = type ? `/${type}` : '';\n    const url = `${baseUrl}/${this.organizationSlug}/reports${path}/${requestPath}/${qps}`;\n    const formatingTableOptions = this.dialogType === 'reservations' ? reservationsFormatingTableOptions : leadsFormatingTableOptions;\n    try {\n      tasks.push(this.authenticatedFetch.fetch(url));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const json = yield response.json();\n      if (!json || !json.labels || !json.data) throw new Error();\n      this.columns = json.labels.map((name, index) => {\n        return Object.assign({\n          name,\n          key: index\n        }, formatingTableOptions[index]);\n      });\n      this.description = json.description;\n      this._fetchedRows = json.data;\n      this._sortedRows = json.data;\n    } catch (error) {\n      this.isError = true;\n    }\n  }), _dec7 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const baseUrl = _environment.default.APP.apiBaseHost;\n      const {\n        filters,\n        type\n      } = this;\n      const qps = (0, _queryParamUtil.getQueryParams)(filters);\n      const path = type ? `/${type}` : '';\n      const url = `${baseUrl}/${this.organizationSlug}/reports${path}/reservations-table/export${qps}`;\n      const response = yield this.authenticatedFetch.fetch(url);\n      if (!(response !== null && response !== void 0 && response.ok)) throw response;\n      const data = yield response.json();\n      const csvResponse = yield this.authenticatedFetch.fetch(data.url + qps);\n      if (!(csvResponse !== null && csvResponse !== void 0 && csvResponse.ok)) throw csvResponse;\n      const csv = yield csvResponse.text();\n      const blob = new Blob([csv], {\n        type: 'text/csv'\n      });\n      const blobURL = URL.createObjectURL(blob);\n      const filename = data.url.split('/').pop();\n      const link = document.createElement('a');\n      link.href = blobURL;\n      link.download = filename;\n      link.click();\n      this.uiToast.showToast({\n        type: 'success',\n        title: this.intl.t('global.toast.success.savedChanges')\n      });\n    } catch (error) {\n      this.uiDialog.showError();\n    }\n  }), _class = class AmcTableDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor6, this);\n      /**\n       * the api path for the table endpoint\n       * Currently supports: 'reservations' and 'leads'\n       * @argument path\n       * @type {String}\n       * @default 'reservations'\n       */\n      _initializerDefineProperty(this, \"dialogType\", _descriptor7, this);\n      /**\n       * the table columns\n       *\n       * @property columns\n       * @type {Array}\n       * @default []\n       */\n      _initializerDefineProperty(this, \"columns\", _descriptor8, this);\n      /**\n       * the table rows\n       *\n       * @property _sortedRows\n       * @type {Array}\n       * @default []\n       */\n      _initializerDefineProperty(this, \"_sortedRows\", _descriptor9, this);\n      /**\n       * whether an error has occured during the fetch\n       *\n       * @property isError\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isError\", _descriptor10, this);\n      /**\n       * the description of the table, coming from the API\n       *\n       * @property description\n       * @type {String}\n       * @default ''\n       */\n      _initializerDefineProperty(this, \"description\", _descriptor11, this);\n      /**\n       * the current page\n       *\n       * @property _currentPage\n       * @type {Number}\n       * @default 1\n       */\n      _initializerDefineProperty(this, \"_currentPage\", _descriptor12, this);\n      /**\n       * the fetched Rows\n       *\n       * @property _fetchedRows\n       * @type {Array}\n       * @default []\n       */\n      _initializerDefineProperty(this, \"_fetchedRows\", _descriptor13, this);\n      /*\n       * the date filter object\n       *\n       * @argument filters\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"filters\", _descriptor14, this);\n      /**\n       * the api path for the table endpoint\n       *\n       * @argument path\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"type\", _descriptor15, this);\n      /**\n       * whether the modal has a download action\n       *\n       * @argument hasDownloadAction\n       * @type {Boolean}\n       * @default true\n       */\n      _initializerDefineProperty(this, \"hasDownloadAction\", _descriptor16, this);\n      /**\n       * formatting options for the table\n       *\n       * @property _formats\n       * @type {Object}\n       * @private\n       */\n      _defineProperty(this, \"_formats\", {\n        custom: {\n          name: content => {\n            const div = document.createElement('div');\n            div.className = 'flex items-center';\n            const anchor = document.createElement('a');\n            anchor.href = content.link;\n            anchor.target = '_blank';\n            anchor.ref = 'noreferrer noopener';\n            anchor.className = 'flex blue ml05';\n            anchor.innerHTML = (0, _makeSvg.default)('new-window', {\n              width: '20px',\n              height: '20px'\n            },\n            // eslint-disable-next-line\n            id => require(`ember-svg-jar/inlined/${id}`).default);\n            div.innerHTML = `${_dompurify.default.sanitize(content.value)}${anchor.outerHTML}`;\n            return (0, _template.htmlSafe)(div.outerHTML);\n          },\n          campaign_name: content => {\n            const div = document.createElement('div');\n            div.className = 'flex items-center';\n            const anchor = document.createElement('a');\n            anchor.href = content.link;\n            anchor.target = '_blank';\n            anchor.ref = 'noreferrer noopener';\n            anchor.className = 'flex blue ml05';\n            anchor.innerHTML = (0, _makeSvg.default)('new-window', {\n              width: '20px',\n              height: '20px'\n            },\n            // eslint-disable-next-line\n            id => require(`ember-svg-jar/inlined/${id}`).default);\n            div.innerHTML = `${_dompurify.default.sanitize(content.value)}${anchor.outerHTML}`;\n            return (0, _template.htmlSafe)(div.outerHTML);\n          },\n          range: _ref2 => {\n            let {\n              value\n            } = _ref2;\n            const dateFormat = 'dd.MM.yyyy';\n            const start = (0, _format.default)((0, _dateUtil.parseDate)(value.start), dateFormat, {\n              locale: _locale.de\n            });\n            const end = (0, _format.default)((0, _dateUtil.parseDate)(value.end), dateFormat, {\n              locale: _locale.de\n            });\n            return `${start} - ${end}`;\n          }\n        }\n      });\n      /**\n       * fetches the table\n       *\n       * @function fetchTableData\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchTableData\", _descriptor17, this);\n      /**\n       * Export reservations as CSV\n       *\n       * @function exportReservations\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"exportReservations\", _descriptor18, this);\n    }\n    /**\n     * the on close callback function\n     *\n     * @argument onClose\n     * @type {Function}\n     */\n    onClose() {}\n\n    /**\n     * the current rows\n     *\n     * @type {Array}\n     */\n    get _currentRows() {\n      return this._chunkedRows[this._currentPage - 1] || [];\n    }\n\n    /**\n     * the fetched rows divided into chunks\n     *\n     * @type {Array}\n     */\n    get _chunkedRows() {\n      const chunkArray = (array, chunkSize) => {\n        const result = [];\n        for (let i = 0; i < array.length; i += chunkSize) {\n          result.push(array.slice(i, i + chunkSize));\n        }\n        return result;\n      };\n      return chunkArray(this._sortedRows, 15);\n    }\n\n    /**\n     * the current rows\n     *\n     * @type {Number}\n     */\n    get _totalPages() {\n      var _this$_chunkedRows;\n      return ((_this$_chunkedRows = this._chunkedRows) === null || _this$_chunkedRows === void 0 ? void 0 : _this$_chunkedRows.length) || 0;\n    }\n    get organizationSlug() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id;\n    }\n\n    /**\n     * Whether the table is empty\n     *\n     * @computed isTableEmpty\n     * @type {Boolean}\n     */\n    get isTableEmpty() {\n      var _this$_currentRows;\n      return !((_this$_currentRows = this._currentRows) !== null && _this$_currentRows !== void 0 && _this$_currentRows.length) && !this.fetchTableData.isRunning;\n    }\n    get title() {\n      if (this.type) {\n        return this.intl.t(`reports.campaignCards.${this.type}`);\n      }\n      return this.intl.t('routes.reports.title');\n    }\n    _customSort(_, column, direction) {\n      this._sortedRows = (0, _sortUtil.sortRows)(this._fetchedRows, column, direction);\n      this._currentPage = 1;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"dialogType\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 'reservations';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"columns\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"_sortedRows\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"description\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return '';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"_currentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 1;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"_fetchedRows\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"filters\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"type\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"hasDownloadAction\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onClose\"), _class.prototype), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"fetchTableData\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"exportReservations\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"_customSort\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_customSort\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcTableDialogComponent);\n});","define(\"additive-mc/components/amc-toggle-activation\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"@ember/debug\", \"ember-concurrency\"], function (_exports, _component, _service, _object, _debug, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _component.default.extend({\n    authenticatedFetch: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    uiAppSettings: (0, _service.inject)(),\n    uiDialog: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    tagName: '',\n    resourceId: null,\n    modelName: null,\n    modelOptions: null,\n    isActive: null,\n    defaultLanguage: _object.computed.alias('uiAppSettings.languages.defaultLanguage'),\n    baseUrl: (0, _object.computed)('modelName', 'resourceId', 'modelOptions', {\n      get() {\n        (true && !(this.modelName) && (0, _debug.assert)(`[amc-toggle-activation] modelName not provided`, this.modelName));\n        const adapter = this.store.adapterFor(this.modelName);\n        (true && !(adapter) && (0, _debug.assert)(`[amc-toggle-activation] Adapter for \"${this.modelName}\" not found`, adapter));\n        return adapter.urlForFindRecord(this.resourceId, this.modelName, this.modelOptions);\n      }\n    }),\n    /**\n     * Send toggling active\n     *\n     * @type {Task}\n     * @function _send\n     * @private\n     */\n    _send: (0, _emberConcurrency.task)(function* () {\n      try {\n        const url = this.baseUrl + (this.isActive ? '/deactivate' : '/activate');\n        const response = yield this.authenticatedFetch.fetch(url, {\n          method: 'PUT',\n          headers: {\n            'Accept-Language': this.defaultLanguage || 'de'\n          }\n        });\n        if (!response || !response.ok) {\n          const errorJson = yield response.json();\n          if (errorJson && Array.isArray(errorJson.errors) && errorJson.errors[0].custom) {\n            this.uiDialog.showAlert(this.intl.t('campaigns.configurations.errors.custom.title'), errorJson.errors[0].custom);\n            return null;\n          }\n          if (errorJson && errorJson.message) {\n            this.uiToast.showToast({\n              title: errorJson.message,\n              type: 'error'\n            });\n            return null;\n          }\n          throw new Error();\n        }\n        const payload = yield response.json();\n        this.store.pushPayload(this.modelName, payload);\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        const newModel = this.store.peekRecord(this.modelName, this.resourceId);\n        this.afterToggle(newModel.active);\n      } catch (error) {\n        this.uiDialog.showError();\n      }\n    }).drop(),\n    actions: {\n      confirm() {\n        let {\n          confirmation,\n          _send\n        } = this;\n        let perform = () => _send.perform();\n        if (!confirmation) {\n          return perform();\n        }\n        let {\n          label,\n          description,\n          action\n        } = confirmation;\n        this.uiDialog.showConfirm(label, description, () => perform(), action, true);\n      }\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      (0, _object.set)(this, 'modelOptions', this.modelOptions || {});\n    },\n    afterToggle() {}\n  });\n});","define(\"additive-mc/components/amc-url-preview\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _tracking, _object, _service, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.url}}\n    <div class=\"amc-url-preview mw-100 flex flex-column items-start flex-row-sm font-sm\">\n      <div\n        class=\"url-wrapper dif mw-100 font-sm secondary pv1 pr2 pl1 bg-secondary--10 br1\n  \n  \n          {{if this.hasClipboard \"cpointer\"}}\"\n        role=\"button\"\n        {{on \"click\" this.copyUrl}}\n      >\n        {{#if this.hasClipboard}}\n          {{svg-jar \"clipboard\" class=\"clipboard-icon mr1\"}}\n        {{/if}}\n  \n        <div class=\"ellipsis\">\n          {{#if this.showFullUrl}}\n            {{this.url}}\n          {{else if this.showPlaceholder}}\n            {{t \"global.actions.copyShareableURL\"}}\n          {{else}}\n            {{this._prettifiedUrl}}\n          {{/if}}\n        </div>\n      </div>\n      {{#unless this.hideLink}}\n        <a\n          class=\"link-wrapper dib secondary bg-secondary--10 br1 mt1 ml1-sm mt0-sm\"\n          href=\"{{this.url}}\"\n          target=\"_blank\"\n          rel=\"noopener noreferrer\"\n        >\n          <span class=\"flex items-center justify-center\">\n            {{svg-jar \"external-link\" width=\"20\" height=\"20\"}}\n          </span>\n        </a>\n      {{/unless}}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"T6twiv+h\",\n    \"block\": \"[[[41,[30,0,[\\\"url\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"amc-url-preview mw-100 flex flex-column items-start flex-row-sm font-sm\\\"],[12],[1,\\\"\\\\n    \\\"],[11,0],[16,0,[29,[\\\"url-wrapper dif mw-100 font-sm secondary pv1 pr2 pl1 bg-secondary--10 br1\\\\n\\\\n\\\\n        \\\",[52,[30,0,[\\\"hasClipboard\\\"]],\\\"cpointer\\\"]]]],[24,\\\"role\\\",\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"copyUrl\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasClipboard\\\"]],[[[1,\\\"        \\\"],[1,[28,[35,2],[\\\"clipboard\\\"],[[\\\"class\\\"],[\\\"clipboard-icon mr1\\\"]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showFullUrl\\\"]],[[[1,\\\"          \\\"],[1,[30,0,[\\\"url\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"showPlaceholder\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,3],[\\\"global.actions.copyShareableURL\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[30,0,[\\\"_prettifiedUrl\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"hideLink\\\"]]],[[[1,\\\"      \\\"],[10,3],[14,0,\\\"link-wrapper dib secondary bg-secondary--10 br1 mt1 ml1-sm mt0-sm\\\"],[15,6,[29,[[30,0,[\\\"url\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"flex items-center justify-center\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,2],[\\\"external-link\\\"],[[\\\"width\\\",\\\"height\\\"],[\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"on\\\",\\\"svg-jar\\\",\\\"t\\\",\\\"unless\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-url-preview.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcUrlPreviewComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.bool), _dec2 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec3 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec4 = (0, _emberArgTypes.arg)(_propTypes.bool), _dec5 = (0, _emberArgTypes.arg)(_propTypes.string), _class = class AmcUrlPreviewComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasClipboard\", _descriptor3, this);\n      _initializerDefineProperty(this, \"showFullUrl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"showPlaceholder\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hideLink\", _descriptor6, this);\n      _initializerDefineProperty(this, \"url\", _descriptor7, this);\n    }\n    get _prettifiedUrl() {\n      var _this$url;\n      let url = (_this$url = this.url) === null || _this$url === void 0 ? void 0 : _this$url.replace(/^https?:\\/\\//, '');\n      url = url.slice(0, url.indexOf('?'));\n      return url;\n    }\n    copyUrl() {\n      var _navigator;\n      if (!this.hasClipboard) {\n        return;\n      }\n      (_navigator = navigator) === null || _navigator === void 0 || (_navigator = _navigator.clipboard) === null || _navigator === void 0 || _navigator.writeText(this.url);\n      this.uiToast.showToast({\n        type: 'success',\n        title: this.intl.t('toast.copyUrlSuccess')\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasClipboard\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"showFullUrl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"showPlaceholder\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"hideLink\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"url\", [_dec5, _tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"copyUrl\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"copyUrl\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcUrlPreviewComponent);\n});","define(\"additive-mc/components/amc-widget-configuration/colors\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PanelGroup @title={{t \"widgets.configurator.colors.title\"}} as |group|>\n    {{#each (array \"main\" \"accent\" \"ambient\") as |colorVariant|}}\n      <group.item\n        @label={{t (concat \"widgets.configurator.colors.\" colorVariant)}}\n        @description={{t (concat \"widgets.configurator.helpTexts.colors.\" colorVariant)}}\n        @isDisabled={{true}}\n      >\n        {{#let (get this.styles.colors colorVariant) (concat \"colors.\" colorVariant) as |color path|}}\n          <AwColorsMenu\n            @active={{color}}\n            @options={{this.selectOptions}}\n            @path={{path}}\n            @isReadOnly={{@isReadOnly}}\n            @onChange={{this.update}}\n          />\n          <UiPopover as |pop|>\n            <pop.trigger>\n              {{#if @isReadOnly}}\n                {{svg-jar\n                  \"dna\"\n                  class=(concat \"ml1 \" (if color.sync \"blue\" \"secondary\"))\n                  width=\"20\"\n                  height=\"20\"\n                }}\n              {{else}}\n                <UiIconButton\n                  @classNames=\"ml1\"\n                  @icon=\"dna\"\n                  @isTertiary={{not color.sync}}\n                  @onClick={{fn this.toggleSync path color.sync}}\n                />\n              {{/if}}\n            </pop.trigger>\n            <pop.content>\n              {{t \"settings.inheritanceDescription\"}}\n            </pop.content>\n          </UiPopover>\n        {{/let}}\n      </group.item>\n    {{/each}}\n  </PanelGroup>\n  */\n  {\n    \"id\": \"GoxNpIaj\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"widgets.configurator.colors.title\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[28,[37,4],[\\\"main\\\",\\\"accent\\\",\\\"ambient\\\"],null]],null]],null],null,[[[1,\\\"    \\\"],[8,[30,1,[\\\"item\\\"]],null,[[\\\"@label\\\",\\\"@description\\\",\\\"@isDisabled\\\"],[[28,[37,1],[[28,[37,5],[\\\"widgets.configurator.colors.\\\",[30,2]],null]],null],[28,[37,1],[[28,[37,5],[\\\"widgets.configurator.helpTexts.colors.\\\",[30,2]],null]],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,7],[[30,0,[\\\"styles\\\",\\\"colors\\\"]],[30,2]],null],[28,[37,5],[\\\"colors.\\\",[30,2]],null]],[[[1,\\\"        \\\"],[8,[39,8],null,[[\\\"@active\\\",\\\"@options\\\",\\\"@path\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[30,3],[30,0,[\\\"selectOptions\\\"]],[30,4],[30,5],[30,0,[\\\"update\\\"]]]],null],[1,\\\"\\\\n        \\\"],[8,[39,9],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,6,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\"              \\\"],[1,[28,[35,11],[\\\"dna\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[[28,[37,5],[\\\"ml1 \\\",[52,[30,3,[\\\"sync\\\"]],\\\"blue\\\",\\\"secondary\\\"]],null],\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[8,[39,12],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@isTertiary\\\",\\\"@onClick\\\"],[\\\"ml1\\\",\\\"dna\\\",[28,[37,13],[[30,3,[\\\"sync\\\"]]],null],[28,[37,14],[[30,0,[\\\"toggleSync\\\"]],[30,4],[30,3,[\\\"sync\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,6,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"settings.inheritanceDescription\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[3,4]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null]],[1]]]]]],[\\\"group\\\",\\\"colorVariant\\\",\\\"color\\\",\\\"path\\\",\\\"@isReadOnly\\\",\\\"pop\\\"],false,[\\\"panel-group\\\",\\\"t\\\",\\\"each\\\",\\\"-track-array\\\",\\\"array\\\",\\\"concat\\\",\\\"let\\\",\\\"get\\\",\\\"aw-colors-menu\\\",\\\"ui-popover\\\",\\\"if\\\",\\\"svg-jar\\\",\\\"ui-icon-button\\\",\\\"not\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-widget-configuration/colors.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcWidgetConfigurationColorsComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.array), _dec2 = (0, _emberArgTypes.arg)(_propTypes.object), _dec3 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcWidgetConfigurationColorsComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"selectOptions\", _descriptor, this);\n      _initializerDefineProperty(this, \"styles\", _descriptor2, this);\n      _initializerDefineProperty(this, \"onUpdate\", _descriptor3, this);\n    }\n    toggleSync(key, sync) {\n      this.onUpdate(key, {\n        sync: !sync\n      });\n    }\n    update(key, val, sync, colorOption) {\n      // if custom color then colorOption is true\n      if (colorOption === true) {\n        val.sync = false;\n      } else {\n        val.syncedColor = val.color;\n        val.syncedContrastColor = val.contrastColor;\n        val.sync = true;\n      }\n      this.onUpdate(key, val);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"selectOptions\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"styles\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"onUpdate\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleSync\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSync\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"update\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"update\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcWidgetConfigurationColorsComponent);\n});","define(\"additive-mc/components/amc-widget-configuration/general\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"ember-arg-types\", \"prop-types\", \"ember-animated\"], function (_exports, _component, _templateFactory, _component2, _tracking, _object, _service, _emberArgTypes, _propTypes, _emberAnimated) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-insert this.didInsert}}>\n    <PanelGroup @title={{t \"widgets.configurator.general.layout\"}} as |group|>\n      {{#if this._selectableLayouts}}\n        <group.item\n          @label={{t \"widgets.configurator.general.layout\"}}\n          @description={{t \"widgets.configurator.helpTexts.general.layout\"}}\n          @isDisabled={{true}}\n        >\n          <UiSelect\n            @selected={{get\n              (array-find this.styles.globals.layout this._selectableLayouts \"value\")\n              \"name\"\n            }}\n            @onChange={{fn this.onUpdate \"globals.layout\"}}\n            @options={{this._selectableLayouts}}\n            @isReadOnly={{@isReadOnly}}\n            @isPlain={{true}}\n            as |option item|\n          >\n            <option.item @value={{item.value}}>\n              {{item.name}}\n            </option.item>\n          </UiSelect>\n        </group.item>\n      {{/if}}\n  \n      <group.item\n        @label={{t \"widgets.configurator.general.twoStepForm\"}}\n        @description={{t \"widgets.configurator.helpTexts.general.twoStepForm\"}}\n        @isDisabled={{true}}\n      >\n        <UiSwitch\n          @value={{this.styles.globals.isTwoStepForm}}\n          @onChange={{fn this.onUpdate \"globals.isTwoStepForm\"}}\n        />\n      </group.item>\n  \n      {{#if this._imageItem}}\n        <group.item\n          @label={{t \"widgets.configurator.general.backgroundImage\"}}\n          @description={{t \"widgets.configurator.helpTexts.general.backgroundImage\"}}\n          @isDisabled={{true}}\n        >\n          <AeConfigurations::Image\n            @item={{this._imageItem}}\n            @isReadOnly={{@isReadOnly}}\n            @hidePoi={{true}}\n            @onChange={{this.onImageUpdate}}\n          />\n        </group.item>\n      {{/if}}\n  \n      {{#if this._selectableCompactness}}\n        <group.item\n          @label={{t \"widgets.configurator.general.compactness\"}}\n          @description={{t \"widgets.configurator.helpTexts.general.compactness\"}}\n          @isDisabled={{true}}\n        >\n          <UiSelect\n            @selected={{get\n              (array-find this.styles.globals.compactness this._selectableCompactness \"value\")\n              \"name\"\n            }}\n            @onChange={{fn this.onUpdate \"globals.compactness\"}}\n            @options={{this._selectableCompactness}}\n            @isReadOnly={{@isReadOnly}}\n            @isPlain={{true}}\n            as |option item|\n          >\n            <option.item @value={{item.value}}>\n              {{item.name}}\n            </option.item>\n          </UiSelect>\n        </group.item>\n      {{/if}}\n  \n      <group.item\n        @label={{t \"widgets.configurator.general.borderRadius\"}}\n        @description={{t \"widgets.configurator.helpTexts.general.borderRadius\"}}\n        @isDisabled={{true}}\n      >\n        <UiInput\n          @isPlain={{true}}\n          @isReadOnly={{@isReadOnly}}\n          @value={{this.styles.globals.borderRadius}}\n          @onChange={{fn this.onUpdate \"globals.borderRadius\"}}\n        />\n      </group.item>\n  \n      <group.item\n        @label={{t \"widgets.configurator.general.border\"}}\n        @description={{t \"widgets.configurator.helpTexts.general.border\"}}\n        @isDisabled={{true}}\n      >\n        <UiInput\n          @isPlain={{true}}\n          @isReadOnly={{@isReadOnly}}\n          @value={{this.styles.globals.boxShadowSpreadRadius}}\n          @onChange={{fn this.onUpdate \"globals.boxShadowSpreadRadius\"}}\n        />\n      </group.item>\n  \n      <group.item\n        @label={{t \"widgets.configurator.general.boxShadow\"}}\n        @description={{t \"widgets.configurator.helpTexts.general.boxShadow\"}}\n        @isDisabled={{true}}\n      >\n        <UiInput\n          @isPlain={{true}}\n          @isReadOnly={{@isReadOnly}}\n          @value={{this.styles.globals.boxShadow}}\n          @onChange={{fn this.onUpdate \"globals.boxShadow\"}}\n        />\n      </group.item>\n    </PanelGroup>\n  \n    <AnimatedContainer class=\"ohidden\">\n      {{#animated-if this._showAdvanced use=this._animatedTransition}}\n        <PanelGroup @title={{t \"widgets.configurator.general.zIndex\"}} as |group|>\n          <group.item\n            @label={{t \"widgets.configurator.general.popup\"}}\n            @description={{t \"widgets.configurator.helpTexts.general.zIndex\"}}\n            @isDisabled={{true}}\n          >\n            <UiInput\n              @isPlain={{true}}\n              @isReadOnly={{@isReadOnly}}\n              @value={{this.styles.globals.zIndex}}\n              @onChange={{fn this.onUpdate \"globals.zIndex\"}}\n            />\n          </group.item>\n        </PanelGroup>\n      {{/animated-if}}\n    </AnimatedContainer>\n  \n    <div class=\"pt2\"></div>\n    <UiButton\n      @label={{t \"widgets.configurator.general.toggleAdvanced\" count=(if this._showAdvanced 1 0)}}\n      @isSecondary={{true}}\n      @onClick={{fn (mut this._showAdvanced) (not this._showAdvanced)}}\n    />\n  </div>\n  */\n  {\n    \"id\": \"+6K/FZN3\",\n    \"block\": \"[[[11,0],[4,[38,0],[[30,0,[\\\"didInsert\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@title\\\"],[[28,[37,2],[\\\"widgets.configurator.general.layout\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_selectableLayouts\\\"]],[[[1,\\\"      \\\"],[8,[30,1,[\\\"item\\\"]],null,[[\\\"@label\\\",\\\"@description\\\",\\\"@isDisabled\\\"],[[28,[37,2],[\\\"widgets.configurator.general.layout\\\"],null],[28,[37,2],[\\\"widgets.configurator.helpTexts.general.layout\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@selected\\\",\\\"@onChange\\\",\\\"@options\\\",\\\"@isReadOnly\\\",\\\"@isPlain\\\"],[[28,[37,5],[[28,[37,6],[[30,0,[\\\"styles\\\",\\\"globals\\\",\\\"layout\\\"]],[30,0,[\\\"_selectableLayouts\\\"]],\\\"value\\\"],null],\\\"name\\\"],null],[28,[37,7],[[30,0,[\\\"onUpdate\\\"]],\\\"globals.layout\\\"],null],[30,0,[\\\"_selectableLayouts\\\"]],[30,2],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,4,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[3,4]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"item\\\"]],null,[[\\\"@label\\\",\\\"@description\\\",\\\"@isDisabled\\\"],[[28,[37,2],[\\\"widgets.configurator.general.twoStepForm\\\"],null],[28,[37,2],[\\\"widgets.configurator.helpTexts.general.twoStepForm\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"styles\\\",\\\"globals\\\",\\\"isTwoStepForm\\\"]],[28,[37,7],[[30,0,[\\\"onUpdate\\\"]],\\\"globals.isTwoStepForm\\\"],null]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_imageItem\\\"]],[[[1,\\\"      \\\"],[8,[30,1,[\\\"item\\\"]],null,[[\\\"@label\\\",\\\"@description\\\",\\\"@isDisabled\\\"],[[28,[37,2],[\\\"widgets.configurator.general.backgroundImage\\\"],null],[28,[37,2],[\\\"widgets.configurator.helpTexts.general.backgroundImage\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,9],null,[[\\\"@item\\\",\\\"@isReadOnly\\\",\\\"@hidePoi\\\",\\\"@onChange\\\"],[[30,0,[\\\"_imageItem\\\"]],[30,2],true,[30,0,[\\\"onImageUpdate\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_selectableCompactness\\\"]],[[[1,\\\"      \\\"],[8,[30,1,[\\\"item\\\"]],null,[[\\\"@label\\\",\\\"@description\\\",\\\"@isDisabled\\\"],[[28,[37,2],[\\\"widgets.configurator.general.compactness\\\"],null],[28,[37,2],[\\\"widgets.configurator.helpTexts.general.compactness\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@selected\\\",\\\"@onChange\\\",\\\"@options\\\",\\\"@isReadOnly\\\",\\\"@isPlain\\\"],[[28,[37,5],[[28,[37,6],[[30,0,[\\\"styles\\\",\\\"globals\\\",\\\"compactness\\\"]],[30,0,[\\\"_selectableCompactness\\\"]],\\\"value\\\"],null],\\\"name\\\"],null],[28,[37,7],[[30,0,[\\\"onUpdate\\\"]],\\\"globals.compactness\\\"],null],[30,0,[\\\"_selectableCompactness\\\"]],[30,2],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,5,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,6,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,6,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[5,6]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"item\\\"]],null,[[\\\"@label\\\",\\\"@description\\\",\\\"@isDisabled\\\"],[[28,[37,2],[\\\"widgets.configurator.general.borderRadius\\\"],null],[28,[37,2],[\\\"widgets.configurator.helpTexts.general.borderRadius\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@isPlain\\\",\\\"@isReadOnly\\\",\\\"@value\\\",\\\"@onChange\\\"],[true,[30,2],[30,0,[\\\"styles\\\",\\\"globals\\\",\\\"borderRadius\\\"]],[28,[37,7],[[30,0,[\\\"onUpdate\\\"]],\\\"globals.borderRadius\\\"],null]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,1,[\\\"item\\\"]],null,[[\\\"@label\\\",\\\"@description\\\",\\\"@isDisabled\\\"],[[28,[37,2],[\\\"widgets.configurator.general.border\\\"],null],[28,[37,2],[\\\"widgets.configurator.helpTexts.general.border\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@isPlain\\\",\\\"@isReadOnly\\\",\\\"@value\\\",\\\"@onChange\\\"],[true,[30,2],[30,0,[\\\"styles\\\",\\\"globals\\\",\\\"boxShadowSpreadRadius\\\"]],[28,[37,7],[[30,0,[\\\"onUpdate\\\"]],\\\"globals.boxShadowSpreadRadius\\\"],null]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,1,[\\\"item\\\"]],null,[[\\\"@label\\\",\\\"@description\\\",\\\"@isDisabled\\\"],[[28,[37,2],[\\\"widgets.configurator.general.boxShadow\\\"],null],[28,[37,2],[\\\"widgets.configurator.helpTexts.general.boxShadow\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@isPlain\\\",\\\"@isReadOnly\\\",\\\"@value\\\",\\\"@onChange\\\"],[true,[30,2],[30,0,[\\\"styles\\\",\\\"globals\\\",\\\"boxShadow\\\"]],[28,[37,7],[[30,0,[\\\"onUpdate\\\"]],\\\"globals.boxShadow\\\"],null]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[1]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,11],[[24,0,\\\"ohidden\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[6,[39,12],[[30,0,[\\\"_showAdvanced\\\"]]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"      \\\"],[8,[39,1],null,[[\\\"@title\\\"],[[28,[37,2],[\\\"widgets.configurator.general.zIndex\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,7,[\\\"item\\\"]],null,[[\\\"@label\\\",\\\"@description\\\",\\\"@isDisabled\\\"],[[28,[37,2],[\\\"widgets.configurator.general.popup\\\"],null],[28,[37,2],[\\\"widgets.configurator.helpTexts.general.zIndex\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@isPlain\\\",\\\"@isReadOnly\\\",\\\"@value\\\",\\\"@onChange\\\"],[true,[30,2],[30,0,[\\\"styles\\\",\\\"globals\\\",\\\"zIndex\\\"]],[28,[37,7],[[30,0,[\\\"onUpdate\\\"]],\\\"globals.zIndex\\\"],null]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[7]]]]],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"pt2\\\"],[12],[13],[1,\\\"\\\\n  \\\"],[8,[39,13],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"widgets.configurator.general.toggleAdvanced\\\"],[[\\\"count\\\"],[[52,[30,0,[\\\"_showAdvanced\\\"]],1,0]]]],true,[28,[37,7],[[28,[37,14],[[30,0,[\\\"_showAdvanced\\\"]]],null],[28,[37,15],[[30,0,[\\\"_showAdvanced\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"group\\\",\\\"@isReadOnly\\\",\\\"option\\\",\\\"item\\\",\\\"option\\\",\\\"item\\\",\\\"group\\\"],false,[\\\"did-insert\\\",\\\"panel-group\\\",\\\"t\\\",\\\"if\\\",\\\"ui-select\\\",\\\"get\\\",\\\"array-find\\\",\\\"fn\\\",\\\"ui-switch\\\",\\\"ae-configurations/image\\\",\\\"ui-input\\\",\\\"animated-container\\\",\\\"animated-if\\\",\\\"ui-button\\\",\\\"mut\\\",\\\"not\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-widget-configuration/general.hbs\",\n    \"isStrictMode\": false\n  });\n  const LAYOUTS = ['layout1', 'layout2', 'layout3'];\n  const COMPACTNESS = ['normal', 'compact'];\n  let AmcWidgetConfigurationGeneralComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.object), _dec2 = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcWidgetConfigurationGeneralComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"styles\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_showAdvanced\", _descriptor3, this);\n      _initializerDefineProperty(this, \"_selectableLayouts\", _descriptor4, this);\n      _initializerDefineProperty(this, \"_selectableCompactness\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_imageItem\", _descriptor6, this);\n      _defineProperty(this, \"_animatedTransition\", _emberAnimated.fade);\n      _initializerDefineProperty(this, \"onUpdate\", _descriptor7, this);\n    }\n    didInsert() {\n      this._selectableLayouts = LAYOUTS.map(key => {\n        return {\n          value: key,\n          name: this.intl.t(`widgets.configurator.general.layouts.${key}`)\n        };\n      });\n      this._selectableCompactness = COMPACTNESS.map(key => {\n        return {\n          value: key,\n          name: this.intl.t(`widgets.configurator.general.compactnessTypes.${key}`)\n        };\n      });\n      this._imageItem = {\n        value: this.styles.globals.backgroundImage\n      };\n    }\n    onImageUpdate(image) {\n      (0, _object.set)(this, '_imageItem.value', image);\n      this.onUpdate('globals.backgroundImage', image);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"styles\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_showAdvanced\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_selectableLayouts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_selectableCompactness\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"_imageItem\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onImageUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onImageUpdate\"), _class.prototype), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"onUpdate\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcWidgetConfigurationGeneralComponent);\n});","define(\"additive-mc/components/amc-widget-dialog\", [\"exports\", \"@ember/component\", \"@ember/template-factory\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-changeset-validations/validators\", \"ember-arg-types\", \"prop-types\"], function (_exports, _component, _templateFactory, _component2, _object, _service, _tracking, _emberChangeset, _emberChangesetValidations, _validators, _emberArgTypes, _propTypes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <UiModal\n    @title={{t (if this.model.isNew \"widgets.create\" \"widgets.edit\")}}\n    @onClose={{this.close}} as |m|\n  >\n    <m.header />\n    <m.content as |c|>\n      <c.body {{did-insert this.didInsert}}>\n        <UiInput\n          @label={{t \"widgets.widget.properties.name\"}}\n          @value={{this.changeset.name}}\n          @errorMessage={{get this.changeset.error.name \"validation.firstObject\"}}\n          @isTouched={{this.isTouched}}\n        />\n      </c.body>\n    </m.content>\n    <m.footer>\n      <UiButton @label={{t \"global.actions.save\"}} @isSecondary={{true}} @onClick={{this.save}} />\n    </m.footer>\n  </UiModal>\n  \n  <UiDiscardChanges\n    @isOpen={{this.isDiscardChanges}}\n    @onDiscard={{this.discardChanges}}\n    @onClose={{fn (mut this.isDiscardChanges)}}\n  />\n  */\n  {\n    \"id\": \"FUDuJu8B\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@onClose\\\"],[[28,[37,1],[[52,[30,0,[\\\"model\\\",\\\"isNew\\\"]],\\\"widgets.create\\\",\\\"widgets.edit\\\"]],null],[30,0,[\\\"close\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],[[4,[38,3],[[30,0,[\\\"didInsert\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,1],[\\\"widgets.widget.properties.name\\\"],null],[30,0,[\\\"changeset\\\",\\\"name\\\"]],[28,[37,5],[[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"name\\\"]],\\\"validation.firstObject\\\"],null],[30,0,[\\\"isTouched\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,6],null,[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.save\\\"],null],true,[30,0,[\\\"save\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,7],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\",\\\"@onClose\\\"],[[30,0,[\\\"isDiscardChanges\\\"]],[30,0,[\\\"discardChanges\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"isDiscardChanges\\\"]]],null]],null]]],null]],[\\\"m\\\",\\\"c\\\"],false,[\\\"ui-modal\\\",\\\"t\\\",\\\"if\\\",\\\"did-insert\\\",\\\"ui-input\\\",\\\"get\\\",\\\"ui-button\\\",\\\"ui-discard-changes\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/components/amc-widget-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n  let AmcWidgetDialogComponent = _exports.default = (_dec = (0, _emberArgTypes.arg)(_propTypes.func), _class = class AmcWidgetDialogComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor4, this);\n      /**\n       * the created model\n       *\n       * @property model\n       * @type {DS.Model}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor5, this);\n      /**\n       * the changeset for the model\n       *\n       * @property changeset\n       * @type {Changeset}\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor6, this);\n      /**\n       * whether the discard changes dialog is open\n       *\n       * @property isDiscardChanges\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isDiscardChanges\", _descriptor7, this);\n      /**\n       * whether the form has been touched\n       *\n       * @property isTouched\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isTouched\", _descriptor8, this);\n      /**\n       * callback function to close the dialog\n       *\n       * @argument onClose\n       * @type {Function}\n       */\n      _initializerDefineProperty(this, \"onClose\", _descriptor9, this);\n    }\n    didInsert() {\n      const validation = {\n        name: (0, _validators.validatePresence)({\n          presence: true,\n          message: this.intl.t('errors.required')\n        })\n      };\n      if (this.args.model) {\n        this.model = this.args.model;\n      } else {\n        this.model = this.store.createRecord('widget');\n      }\n      this.changeset = new _emberChangeset.default(this.model, (0, _emberChangesetValidations.default)(validation), validation);\n    }\n    close() {\n      if (this.changeset.get('isDirty')) {\n        this.isDiscardChanges = true;\n      } else {\n        if (this.model.isNew) {\n          this.model.destroyRecord();\n        }\n        this.onClose();\n      }\n    }\n    discardChanges() {\n      if (this.model.isNew) {\n        this.model.destroyRecord();\n      }\n      this.isDiscardChanges = false;\n      this.onClose();\n    }\n    async save() {\n      try {\n        var _widgetsFilter$filter;\n        this.isTouched = true;\n        const {\n          isNew\n        } = this.model;\n        const widgetsFilter = this.uiFilter.getQPFilter('widgets');\n        if ((widgetsFilter === null || widgetsFilter === void 0 || (_widgetsFilter$filter = widgetsFilter.filter) === null || _widgetsFilter$filter === void 0 || (_widgetsFilter$filter = _widgetsFilter$filter.meta) === null || _widgetsFilter$filter === void 0 ? void 0 : _widgetsFilter$filter.total) === 0) {\n          this.model.set('default', true);\n        }\n        await this.changeset.validate();\n        if (this.changeset.get('isInvalid')) {\n          return;\n        }\n        await this.changeset.save();\n        if (isNew) {\n          this.uiFilter.reset('widgets');\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        this.onClose();\n      } catch (e) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return () => {};\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AmcWidgetDialogComponent);\n});","define(\"additive-mc/components/animated-beacon\", [\"exports\", \"ember-animated/components/animated-beacon\"], function (_exports, _animatedBeacon) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _animatedBeacon.default;\n    }\n  });\n});","define(\"additive-mc/components/animated-container\", [\"exports\", \"ember-animated/components/animated-container\"], function (_exports, _animatedContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _animatedContainer.default;\n    }\n  });\n});","define(\"additive-mc/components/animated-each\", [\"exports\", \"ember-animated/components/animated-each\"], function (_exports, _animatedEach) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _animatedEach.default;\n    }\n  });\n});","define(\"additive-mc/components/animated-if\", [\"exports\", \"ember-animated/components/animated-if\"], function (_exports, _animatedIf) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _animatedIf.default;\n    }\n  });\n});","define(\"additive-mc/components/animated-orphans\", [\"exports\", \"ember-animated/components/animated-orphans\"], function (_exports, _animatedOrphans) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _animatedOrphans.default;\n    }\n  });\n});","define(\"additive-mc/components/animated-value\", [\"exports\", \"ember-animated/components/animated-value\"], function (_exports, _animatedValue) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _animatedValue.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-colors-menu\", [\"exports\", \"@additive-apps/configurator/components/aw-colors-menu\"], function (_exports, _awColorsMenu) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _awColorsMenu.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-configurator\", [\"exports\", \"@additive-apps/configurator/components/aw-configurator\"], function (_exports, _awConfigurator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _awConfigurator.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-configurator/content-editor\", [\"exports\", \"@additive-apps/configurator/components/aw-configurator/content-editor\"], function (_exports, _contentEditor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _contentEditor.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-configurator/content-editor/sidebar-button\", [\"exports\", \"@additive-apps/configurator/components/aw-configurator/content-editor/sidebar-button\"], function (_exports, _sidebarButton) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _sidebarButton.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-configurator/content-editor/sidebar\", [\"exports\", \"@additive-apps/configurator/components/aw-configurator/content-editor/sidebar\"], function (_exports, _sidebar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _sidebar.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-configurator/editor\", [\"exports\", \"@additive-apps/configurator/components/aw-configurator/editor\"], function (_exports, _editor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _editor.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-configurator/preview\", [\"exports\", \"@additive-apps/configurator/components/aw-configurator/preview\"], function (_exports, _preview) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _preview.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-configurator/style-editor\", [\"exports\", \"@additive-apps/configurator/components/aw-configurator/style-editor\"], function (_exports, _styleEditor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _styleEditor.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-configurator/style-editor/sidebar-button\", [\"exports\", \"@additive-apps/configurator/components/aw-configurator/style-editor/sidebar-button\"], function (_exports, _sidebarButton) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _sidebarButton.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-configurator/style-editor/sidebar\", [\"exports\", \"@additive-apps/configurator/components/aw-configurator/style-editor/sidebar\"], function (_exports, _sidebar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _sidebar.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-custom-colors-menu\", [\"exports\", \"@additive-apps/configurator/components/aw-custom-colors-menu\"], function (_exports, _awCustomColorsMenu) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _awCustomColorsMenu.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-font-name-dialog\", [\"exports\", \"@additive-apps/configurator/components/aw-font-name-dialog\"], function (_exports, _awFontNameDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _awFontNameDialog.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-typography-dialog\", [\"exports\", \"@additive-apps/configurator/components/aw-typography-dialog\"], function (_exports, _awTypographyDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _awTypographyDialog.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-typography-list\", [\"exports\", \"@additive-apps/configurator/components/aw-typography-list\"], function (_exports, _awTypographyList) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _awTypographyList.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-typography-list/item\", [\"exports\", \"@additive-apps/configurator/components/aw-typography-list/item\"], function (_exports, _item) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _item.default;\n    }\n  });\n});","define(\"additive-mc/components/aw-typography-settings\", [\"exports\", \"@additive-apps/configurator/components/aw-typography-settings\"], function (_exports, _awTypographySettings) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _awTypographySettings.default;\n    }\n  });\n});","define(\"additive-mc/components/basic-dropdown-content\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown-content\"], function (_exports, _basicDropdownContent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _basicDropdownContent.default;\n    }\n  });\n});","define(\"additive-mc/components/basic-dropdown-trigger\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown-trigger\"], function (_exports, _basicDropdownTrigger) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _basicDropdownTrigger.default;\n    }\n  });\n});","define(\"additive-mc/components/basic-dropdown\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown\"], function (_exports, _basicDropdown) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _basicDropdown.default;\n    }\n  });\n});","define(\"additive-mc/components/ea-list-element\", [\"exports\", \"ember-animated/components/ea-list-element\"], function (_exports, _eaListElement) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _eaListElement.default;\n    }\n  });\n});","define(\"additive-mc/components/file-dropzone\", [\"exports\", \"ember-file-upload/components/file-dropzone/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _component.default;\n    }\n  });\n});","define(\"additive-mc/components/file-upload\", [\"exports\", \"ember-file-upload/components/file-upload/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _component.default;\n    }\n  });\n});","define(\"additive-mc/components/grid\", [\"exports\", \"@additive-apps/ui/components/grid\"], function (_exports, _grid) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _grid.default;\n    }\n  });\n});","define(\"additive-mc/components/link-to-external\", [\"exports\", \"ember-engines/components/link-to-external\"], function (_exports, _linkToExternal) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _linkToExternal.default;\n    }\n  });\n});","define(\"additive-mc/components/maybe-in-element\", [\"exports\", \"ember-maybe-in-element/components/maybe-in-element\"], function (_exports, _maybeInElement) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _maybeInElement.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-cropper-view\", [\"exports\", \"@additive-apps/media/components/mm-cropper-view\"], function (_exports, _mmCropperView) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmCropperView.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-cropper\", [\"exports\", \"@additive-apps/media/components/mm-cropper\"], function (_exports, _mmCropper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmCropper.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-external-search\", [\"exports\", \"@additive-apps/media/components/mm-external-search\"], function (_exports, _mmExternalSearch) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmExternalSearch.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-external-search/image-list\", [\"exports\", \"@additive-apps/media/components/mm-external-search/image-list\"], function (_exports, _imageList) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _imageList.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-external-search/video-list\", [\"exports\", \"@additive-apps/media/components/mm-external-search/video-list\"], function (_exports, _videoList) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _videoList.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-folder-tree\", [\"exports\", \"@additive-apps/media/components/mm-folder-tree\"], function (_exports, _mmFolderTree) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmFolderTree.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-fullscreen-view\", [\"exports\", \"@additive-apps/media/components/mm-fullscreen-view\"], function (_exports, _mmFullscreenView) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmFullscreenView.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-image-transforms\", [\"exports\", \"@additive-apps/media/components/mm-image-transforms\"], function (_exports, _mmImageTransforms) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmImageTransforms.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-media-gallery\", [\"exports\", \"@additive-apps/media/components/mm-media-gallery\"], function (_exports, _mmMediaGallery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmMediaGallery.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-media-gallery/header-left\", [\"exports\", \"@additive-apps/media/components/mm-media-gallery/header-left\"], function (_exports, _headerLeft) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _headerLeft.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-media-gallery/header-right\", [\"exports\", \"@additive-apps/media/components/mm-media-gallery/header-right\"], function (_exports, _headerRight) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _headerRight.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-medium-item\", [\"exports\", \"@additive-apps/media/components/mm-medium-item\"], function (_exports, _mmMediumItem) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmMediumItem.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-medium-item/file-name\", [\"exports\", \"@additive-apps/media/components/mm-medium-item/file-name\"], function (_exports, _fileName) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _fileName.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-medium-item/medium-container\", [\"exports\", \"@additive-apps/media/components/mm-medium-item/medium-container\"], function (_exports, _mediumContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mediumContainer.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-multimedia-overlay\", [\"exports\", \"@additive-apps/media/components/mm-multimedia-overlay\"], function (_exports, _mmMultimediaOverlay) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmMultimediaOverlay.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-picture-tag\", [\"exports\", \"@additive-apps/media/components/mm-picture-tag\"], function (_exports, _mmPictureTag) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmPictureTag.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-poi\", [\"exports\", \"@additive-apps/media/components/mm-poi\"], function (_exports, _mmPoi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmPoi.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-poi/movable-container\", [\"exports\", \"@additive-apps/media/components/mm-poi/movable-container\"], function (_exports, _movableContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _movableContainer.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-resource-gallery\", [\"exports\", \"@additive-apps/media/components/mm-resource-gallery\"], function (_exports, _mmResourceGallery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmResourceGallery.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-resource-gallery/attributes-dialog\", [\"exports\", \"@additive-apps/media/components/mm-resource-gallery/attributes-dialog\"], function (_exports, _attributesDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _attributesDialog.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-video\", [\"exports\", \"@additive-apps/media/components/mm-video\"], function (_exports, _mmVideo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmVideo.default;\n    }\n  });\n});","define(\"additive-mc/components/mm-youtube-video\", [\"exports\", \"@additive-apps/media/components/mm-youtube-video\"], function (_exports, _mmYoutubeVideo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmYoutubeVideo.default;\n    }\n  });\n});","define(\"additive-mc/components/panel-group\", [\"exports\", \"@additive-apps/configurator/components/panel-group\"], function (_exports, _panelGroup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _panelGroup.default;\n    }\n  });\n});","define(\"additive-mc/components/panel\", [\"exports\", \"@additive-apps/configurator/components/panel\"], function (_exports, _panel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _panel.default;\n    }\n  });\n});","define(\"additive-mc/components/power-calendar-multiple\", [\"exports\", \"ember-power-calendar/components/power-calendar-multiple\"], function (_exports, _powerCalendarMultiple) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _powerCalendarMultiple.default;\n    }\n  });\n});","define(\"additive-mc/components/power-calendar-multiple/days\", [\"exports\", \"ember-power-calendar/components/power-calendar-multiple/days\"], function (_exports, _days) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _days.default;\n    }\n  });\n});","define(\"additive-mc/components/power-calendar-range\", [\"exports\", \"ember-power-calendar/components/power-calendar-range\"], function (_exports, _powerCalendarRange) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _powerCalendarRange.default;\n    }\n  });\n});","define(\"additive-mc/components/power-calendar-range/days\", [\"exports\", \"ember-power-calendar/components/power-calendar-range/days\"], function (_exports, _days) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _days.default;\n    }\n  });\n});","define(\"additive-mc/components/power-calendar\", [\"exports\", \"ember-power-calendar/components/power-calendar\"], function (_exports, _powerCalendar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _powerCalendar.default;\n    }\n  });\n});","define(\"additive-mc/components/power-calendar/days\", [\"exports\", \"ember-power-calendar/components/power-calendar/days\"], function (_exports, _days) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _days.default;\n    }\n  });\n});","define(\"additive-mc/components/power-calendar/nav\", [\"exports\", \"ember-power-calendar/components/power-calendar/nav\"], function (_exports, _nav) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _nav.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-accordion\", [\"exports\", \"@additive-apps/ui/components/ui-accordion\"], function (_exports, _uiAccordion) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiAccordion.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-action-button\", [\"exports\", \"@additive-apps/ui/components/ui-action-button\"], function (_exports, _uiActionButton) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiActionButton.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-additive-basic-dropdown\", [\"exports\", \"@additive-apps/ui/components/ui-additive-basic-dropdown\"], function (_exports, _uiAdditiveBasicDropdown) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiAdditiveBasicDropdown.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-ai-button\", [\"exports\", \"@additive-apps/ui/components/ui-ai-button\"], function (_exports, _uiAiButton) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiAiButton.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-application-navigation-drawer\", [\"exports\", \"@additive-apps/ui/components/ui-application-navigation-drawer\"], function (_exports, _uiApplicationNavigationDrawer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiApplicationNavigationDrawer.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-application-navigation-drawer/account-switch\", [\"exports\", \"@additive-apps/ui/components/ui-application-navigation-drawer/account-switch\"], function (_exports, _accountSwitch) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _accountSwitch.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-application-navigation-drawer/account-switch/wrapper\", [\"exports\", \"@additive-apps/ui/components/ui-application-navigation-drawer/account-switch/wrapper\"], function (_exports, _wrapper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _wrapper.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-application-navigation-drawer/apps-list\", [\"exports\", \"@additive-apps/ui/components/ui-application-navigation-drawer/apps-list\"], function (_exports, _appsList) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _appsList.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-application-navigation-drawer/menu-item\", [\"exports\", \"@additive-apps/ui/components/ui-application-navigation-drawer/menu-item\"], function (_exports, _menuItem) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _menuItem.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-application-navigation-drawer/user-button\", [\"exports\", \"@additive-apps/ui/components/ui-application-navigation-drawer/user-button\"], function (_exports, _userButton) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _userButton.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-audit-log\", [\"exports\", \"@additive-apps/ui/components/ui-audit-log\"], function (_exports, _uiAuditLog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiAuditLog.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-badge\", [\"exports\", \"@additive-apps/ui/components/ui-badge\"], function (_exports, _uiBadge) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiBadge.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-blank-template\", [\"exports\", \"@additive-apps/ui/components/ui-blank-template\"], function (_exports, _uiBlankTemplate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiBlankTemplate.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-breadcrumbs\", [\"exports\", \"@additive-apps/ui/components/ui-breadcrumbs\"], function (_exports, _uiBreadcrumbs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiBreadcrumbs.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-button\", [\"exports\", \"@additive-apps/ui/components/ui-button\"], function (_exports, _uiButton) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiButton.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card\", [\"exports\", \"@additive-apps/ui/components/ui-card/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _index.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/footer/content/default\", [\"exports\", \"@additive-apps/ui/components/ui-card/footer/content/default\"], function (_exports, _default) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _default.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/footer/content/index\", [\"exports\", \"@additive-apps/ui/components/ui-card/footer/content/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _index.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/footer/content/title\", [\"exports\", \"@additive-apps/ui/components/ui-card/footer/content/title\"], function (_exports, _title) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _title.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/footer/index\", [\"exports\", \"@additive-apps/ui/components/ui-card/footer/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _index.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/footer/menu/index\", [\"exports\", \"@additive-apps/ui/components/ui-card/footer/menu/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _index.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/footer/menu/item\", [\"exports\", \"@additive-apps/ui/components/ui-card/footer/menu/item\"], function (_exports, _item) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _item.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/footer/popover\", [\"exports\", \"@additive-apps/ui/components/ui-card/footer/popover\"], function (_exports, _popover) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _popover.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/footer/status\", [\"exports\", \"@additive-apps/ui/components/ui-card/footer/status\"], function (_exports, _status) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _status.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/header/accessories\", [\"exports\", \"@additive-apps/ui/components/ui-card/header/accessories\"], function (_exports, _accessories) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _accessories.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/header/accessories/drag-handle\", [\"exports\", \"@additive-apps/ui/components/ui-card/header/accessories/drag-handle\"], function (_exports, _dragHandle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _dragHandle.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/header/accessories/index\", [\"exports\", \"@additive-apps/ui/components/ui-card/header/accessories/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _index.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/header/content/iframe\", [\"exports\", \"@additive-apps/ui/components/ui-card/header/content/iframe\"], function (_exports, _iframe) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _iframe.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/header/content/image\", [\"exports\", \"@additive-apps/ui/components/ui-card/header/content/image\"], function (_exports, _image) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _image.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/header/content/index\", [\"exports\", \"@additive-apps/ui/components/ui-card/header/content/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _index.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/header/index\", [\"exports\", \"@additive-apps/ui/components/ui-card/header/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _index.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-card/index\", [\"exports\", \"@additive-apps/ui/components/ui-card/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _index.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-carousel\", [\"exports\", \"@additive-apps/media/components/ui-carousel\"], function (_exports, _uiCarousel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiCarousel.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-carousel/container\", [\"exports\", \"@additive-apps/media/components/ui-carousel/container\"], function (_exports, _container) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _container.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-carousel/grow-container\", [\"exports\", \"@additive-apps/media/components/ui-carousel/grow-container\"], function (_exports, _growContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _growContainer.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-carousel/trigger\", [\"exports\", \"@additive-apps/media/components/ui-carousel/trigger\"], function (_exports, _trigger) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _trigger.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-category-card\", [\"exports\", \"@additive-apps/ui/components/ui-category-card\"], function (_exports, _uiCategoryCard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiCategoryCard.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-category-grid\", [\"exports\", \"@additive-apps/ui/components/ui-category-grid\"], function (_exports, _uiCategoryGrid) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiCategoryGrid.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-category-item\", [\"exports\", \"@additive-apps/media/components/ui-category-item\"], function (_exports, _uiCategoryItem) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiCategoryItem.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-chart-legend\", [\"exports\", \"@additive-apps/ui/components/ui-chart-legend\"], function (_exports, _uiChartLegend) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiChartLegend.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-chart\", [\"exports\", \"@additive-apps/ui/components/ui-chart\"], function (_exports, _uiChart) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiChart.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-checkbox\", [\"exports\", \"@additive-apps/ui/components/ui-checkbox\"], function (_exports, _uiCheckbox) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiCheckbox.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-chip\", [\"exports\", \"@additive-apps/ui/components/ui-chip\"], function (_exports, _uiChip) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiChip.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-collapsible-table\", [\"exports\", \"@additive-apps/ui/components/ui-collapsible-table\"], function (_exports, _uiCollapsibleTable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiCollapsibleTable.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-collapsible-table/head\", [\"exports\", \"@additive-apps/ui/components/ui-collapsible-table/head\"], function (_exports, _head) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _head.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-collapsible-table/head/row\", [\"exports\", \"@additive-apps/ui/components/ui-collapsible-table/head/row\"], function (_exports, _row) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _row.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-collapsible-table/head/row/column\", [\"exports\", \"@additive-apps/ui/components/ui-collapsible-table/head/row/column\"], function (_exports, _column) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _column.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-collapsible-table/row\", [\"exports\", \"@additive-apps/ui/components/ui-collapsible-table/row\"], function (_exports, _row) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _row.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-collapsible-table/row/first-column\", [\"exports\", \"@additive-apps/ui/components/ui-collapsible-table/row/first-column\"], function (_exports, _firstColumn) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _firstColumn.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-collapsible-table/row/tooltip\", [\"exports\", \"@additive-apps/ui/components/ui-collapsible-table/row/tooltip\"], function (_exports, _tooltip) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _tooltip.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-collapsible-table/row/value-column\", [\"exports\", \"@additive-apps/ui/components/ui-collapsible-table/row/value-column\"], function (_exports, _valueColumn) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _valueColumn.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-collapsible-table/rows\", [\"exports\", \"@additive-apps/ui/components/ui-collapsible-table/rows\"], function (_exports, _rows) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _rows.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-color-composition\", [\"exports\", \"@additive-apps/ui/components/ui-color-composition\"], function (_exports, _uiColorComposition) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiColorComposition.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-colored-tile\", [\"exports\", \"@additive-apps/ui/components/ui-colored-tile\"], function (_exports, _uiColoredTile) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiColoredTile.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-comparison\", [\"exports\", \"@additive-apps/ui/components/ui-comparison\"], function (_exports, _uiComparison) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiComparison.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-content-count\", [\"exports\", \"@additive-apps/ui/components/ui-content-count\"], function (_exports, _uiContentCount) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiContentCount.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-content-hero\", [\"exports\", \"@additive-apps/ui/components/ui-content-hero\"], function (_exports, _uiContentHero) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiContentHero.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-content-info\", [\"exports\", \"@additive-apps/ui/components/ui-content-info\"], function (_exports, _uiContentInfo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiContentInfo.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-content-rating\", [\"exports\", \"@additive-apps/ui/components/ui-content-rating\"], function (_exports, _uiContentRating) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiContentRating.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-content-views\", [\"exports\", \"@additive-apps/ui/components/ui-content-views\"], function (_exports, _uiContentViews) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiContentViews.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-content-views/center\", [\"exports\", \"@additive-apps/ui/components/ui-content-views/center\"], function (_exports, _center) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _center.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-content-views/content\", [\"exports\", \"@additive-apps/ui/components/ui-content-views/content\"], function (_exports, _content) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _content.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-content-wizard\", [\"exports\", \"@additive-apps/ui/components/ui-content-wizard\"], function (_exports, _uiContentWizard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiContentWizard.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-content-wizard/step-content\", [\"exports\", \"@additive-apps/ui/components/ui-content-wizard/step-content\"], function (_exports, _stepContent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _stepContent.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-content-wizard/step\", [\"exports\", \"@additive-apps/ui/components/ui-content-wizard/step\"], function (_exports, _step) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _step.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-content\", [\"exports\", \"@additive-apps/ui/components/ui-content\"], function (_exports, _uiContent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiContent.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-control-panel-group\", [\"exports\", \"@additive-apps/ui/components/ui-control-panel-group\"], function (_exports, _uiControlPanelGroup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiControlPanelGroup.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-control-panel\", [\"exports\", \"@additive-apps/ui/components/ui-control-panel\"], function (_exports, _uiControlPanel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiControlPanel.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-create-content-dialog\", [\"exports\", \"@ember/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _component.default.extend({\n    tagName: ''\n  });\n});","define(\"additive-mc/components/ui-data-table\", [\"exports\", \"@additive-apps/ui/components/ui-data-table\"], function (_exports, _uiDataTable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiDataTable.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-date-filter\", [\"exports\", \"@additive-apps/ui/components/ui-date-filter\"], function (_exports, _uiDateFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiDateFilter.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-datepicker\", [\"exports\", \"@additive-apps/ui/components/ui-datepicker\"], function (_exports, _uiDatepicker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiDatepicker.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-datepicker/nav\", [\"exports\", \"@additive-apps/ui/components/ui-datepicker/nav\"], function (_exports, _nav) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _nav.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-datetime-picker\", [\"exports\", \"@additive-apps/ui/components/ui-datetime-picker\"], function (_exports, _uiDatetimePicker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiDatetimePicker.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-datetime-range-picker\", [\"exports\", \"@additive-apps/ui/components/ui-datetime-range-picker\"], function (_exports, _uiDatetimeRangePicker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiDatetimeRangePicker.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-dd-sort\", [\"exports\", \"@additive-apps/ui/components/ui-dd-sort\"], function (_exports, _uiDdSort) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiDdSort.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-dd-sort/item\", [\"exports\", \"@additive-apps/ui/components/ui-dd-sort/item\"], function (_exports, _item) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _item.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-dialog-service\", [\"exports\", \"@additive-apps/ui/components/ui-dialog-service\"], function (_exports, _uiDialogService) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiDialogService.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-discard-changes\", [\"exports\", \"@additive-apps/ui/components/ui-discard-changes\"], function (_exports, _uiDiscardChanges) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiDiscardChanges.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-dom-hide\", [\"exports\", \"@additive-apps/ui/components/ui-dom-hide\"], function (_exports, _uiDomHide) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiDomHide.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-dropzone\", [\"exports\", \"@additive-apps/ui/components/ui-dropzone\"], function (_exports, _uiDropzone) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiDropzone.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-editor-legacy\", [\"exports\", \"@additive-apps/ui/components/ui-editor-legacy\"], function (_exports, _uiEditorLegacy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiEditorLegacy.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-editor\", [\"exports\", \"@additive-apps/ui/components/ui-editor\"], function (_exports, _uiEditor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiEditor.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-editor/action-bar\", [\"exports\", \"@additive-apps/ui/components/ui-editor/action-bar\"], function (_exports, _actionBar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _actionBar.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-editor/action\", [\"exports\", \"@additive-apps/ui/components/ui-editor/action\"], function (_exports, _action) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _action.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-editor/custom-color-dialog\", [\"exports\", \"@additive-apps/ui/components/ui-editor/custom-color-dialog\"], function (_exports, _customColorDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _customColorDialog.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-editor/heading-actions\", [\"exports\", \"@additive-apps/ui/components/ui-editor/heading-actions\"], function (_exports, _headingActions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _headingActions.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-editor/mobile-actions\", [\"exports\", \"@additive-apps/ui/components/ui-editor/mobile-actions\"], function (_exports, _mobileActions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mobileActions.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-faq-dialog\", [\"exports\", \"@additive-apps/ui/components/ui-faq-dialog\"], function (_exports, _uiFaqDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiFaqDialog.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-filter-inputs\", [\"exports\", \"@additive-apps/ui/components/ui-filter-inputs\"], function (_exports, _uiFilterInputs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiFilterInputs.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-filter-inputs/date\", [\"exports\", \"@additive-apps/ui/components/ui-filter-inputs/date\"], function (_exports, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _date.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-filter-inputs/daterange\", [\"exports\", \"@additive-apps/ui/components/ui-filter-inputs/daterange\"], function (_exports, _daterange) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _daterange.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-filter-inputs/group-label\", [\"exports\", \"@additive-apps/ui/components/ui-filter-inputs/group-label\"], function (_exports, _groupLabel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _groupLabel.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-filter-inputs/inputs\", [\"exports\", \"@additive-apps/ui/components/ui-filter-inputs/inputs\"], function (_exports, _inputs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _inputs.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-filter-inputs/multi\", [\"exports\", \"@additive-apps/ui/components/ui-filter-inputs/multi\"], function (_exports, _multi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _multi.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-filter-inputs/query\", [\"exports\", \"@additive-apps/ui/components/ui-filter-inputs/query\"], function (_exports, _query) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _query.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-filter-inputs/query/single\", [\"exports\", \"@additive-apps/ui/components/ui-filter-inputs/query/single\"], function (_exports, _single) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _single.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-filter-inputs/range\", [\"exports\", \"@additive-apps/ui/components/ui-filter-inputs/range\"], function (_exports, _range) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _range.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-filter-inputs/single\", [\"exports\", \"@additive-apps/ui/components/ui-filter-inputs/single\"], function (_exports, _single) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _single.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-filter-inputs/text\", [\"exports\", \"@additive-apps/ui/components/ui-filter-inputs/text\"], function (_exports, _text) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _text.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-filterable\", [\"exports\", \"@additive-apps/ui/components/ui-filterable\"], function (_exports, _uiFilterable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiFilterable.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-form-control\", [\"exports\", \"@additive-apps/ui/components/ui-form-control\"], function (_exports, _uiFormControl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiFormControl.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-form-dialog\", [\"exports\", \"@additive-apps/ui/components/ui-form-dialog\"], function (_exports, _uiFormDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiFormDialog.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-form-message\", [\"exports\", \"@additive-apps/ui/components/ui-form-message\"], function (_exports, _uiFormMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiFormMessage.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-form-view\", [\"exports\", \"@additive-apps/ui/components/ui-form-view\"], function (_exports, _uiFormView) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiFormView.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-fullscreen-illustration\", [\"exports\", \"@additive-apps/ui/components/ui-fullscreen-illustration\"], function (_exports, _uiFullscreenIllustration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiFullscreenIllustration.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-icon-button\", [\"exports\", \"@additive-apps/ui/components/ui-icon-button\"], function (_exports, _uiIconButton) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiIconButton.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-info-item\", [\"exports\", \"@additive-apps/ui/components/ui-info-item\"], function (_exports, _uiInfoItem) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiInfoItem.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-inline-edit\", [\"exports\", \"@additive-apps/ui/components/ui-inline-edit\"], function (_exports, _uiInlineEdit) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiInlineEdit.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-inline-notification\", [\"exports\", \"@additive-apps/ui/components/ui-inline-notification\"], function (_exports, _uiInlineNotification) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiInlineNotification.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-input-item\", [\"exports\", \"@additive-apps/ui/components/ui-input-item\"], function (_exports, _uiInputItem) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiInputItem.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-input\", [\"exports\", \"@additive-apps/ui/components/ui-input\"], function (_exports, _uiInput) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiInput.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-intro\", [\"exports\", \"@additive-apps/ui/components/ui-intro\"], function (_exports, _uiIntro) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiIntro.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-item-group\", [\"exports\", \"@additive-apps/ui/components/ui-item-group\"], function (_exports, _uiItemGroup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiItemGroup.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-item-menu\", [\"exports\", \"@additive-apps/ui/components/ui-item-menu\"], function (_exports, _uiItemMenu) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiItemMenu.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-item\", [\"exports\", \"@additive-apps/ui/components/ui-item\"], function (_exports, _uiItem) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiItem.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-label\", [\"exports\", \"@additive-apps/ui/components/ui-label\"], function (_exports, _uiLabel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiLabel.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-lang-select\", [\"exports\", \"@additive-apps/ui/components/ui-lang-select\"], function (_exports, _uiLangSelect) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiLangSelect.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-language-tag\", [\"exports\", \"@additive-apps/ui/components/ui-language-tag\"], function (_exports, _uiLanguageTag) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiLanguageTag.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-list-item\", [\"exports\", \"@additive-apps/ui/components/ui-list-item\"], function (_exports, _uiListItem) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiListItem.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-list-item/thumbnail\", [\"exports\", \"@additive-apps/ui/components/ui-list-item/thumbnail\"], function (_exports, _thumbnail) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _thumbnail.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-list-view\", [\"exports\", \"@additive-apps/ui/components/ui-list-view\"], function (_exports, _uiListView) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiListView.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-list\", [\"exports\", \"@additive-apps/ui/components/ui-list\"], function (_exports, _uiList) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiList.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-loading-page\", [\"exports\", \"@additive-apps/ui/components/ui-loading-page\"], function (_exports, _uiLoadingPage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiLoadingPage.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-loading\", [\"exports\", \"@additive-apps/ui/components/ui-loading\"], function (_exports, _uiLoading) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiLoading.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-menu-content-inner\", [\"exports\", \"@additive-apps/ui/components/ui-menu-content-inner\"], function (_exports, _uiMenuContentInner) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiMenuContentInner.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-menu-content\", [\"exports\", \"@additive-apps/ui/components/ui-menu-content\"], function (_exports, _uiMenuContent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiMenuContent.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-menu-item\", [\"exports\", \"@additive-apps/ui/components/ui-menu-item\"], function (_exports, _uiMenuItem) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiMenuItem.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-menu\", [\"exports\", \"@additive-apps/ui/components/ui-menu\"], function (_exports, _uiMenu) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiMenu.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-metric-item\", [\"exports\", \"@additive-apps/ui/components/ui-metric-item\"], function (_exports, _uiMetricItem) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiMetricItem.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-modal\", [\"exports\", \"@additive-apps/ui/components/ui-modal\"], function (_exports, _uiModal) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiModal.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-modal/content\", [\"exports\", \"@additive-apps/ui/components/ui-modal/content\"], function (_exports, _content) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _content.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-modal/footer\", [\"exports\", \"@additive-apps/ui/components/ui-modal/footer\"], function (_exports, _footer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _footer.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-modal/header\", [\"exports\", \"@additive-apps/ui/components/ui-modal/header\"], function (_exports, _header) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _header.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-modal/inner\", [\"exports\", \"@additive-apps/ui/components/ui-modal/inner\"], function (_exports, _inner) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _inner.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-month-day-picker\", [\"exports\", \"@additive-apps/ui/components/ui-month-day-picker\"], function (_exports, _uiMonthDayPicker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiMonthDayPicker.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-multi-form-control\", [\"exports\", \"@additive-apps/ui/components/ui-multi-form-control\"], function (_exports, _uiMultiFormControl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiMultiFormControl.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-multi-form-control/input\", [\"exports\", \"@additive-apps/ui/components/ui-multi-form-control/input\"], function (_exports, _input) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _input.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-multilingual-modal\", [\"exports\", \"@additive-apps/ui/components/ui-multilingual-modal\"], function (_exports, _uiMultilingualModal) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiMultilingualModal.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-multimedia\", [\"exports\", \"@additive-apps/media/components/ui-multimedia\"], function (_exports, _uiMultimedia) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiMultimedia.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-navigation-bar-filterable\", [\"exports\", \"@additive-apps/ui/components/ui-navigation-bar-filterable\"], function (_exports, _uiNavigationBarFilterable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiNavigationBarFilterable.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-navigation-bar\", [\"exports\", \"@additive-apps/ui/components/ui-navigation-bar\"], function (_exports, _uiNavigationBar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiNavigationBar.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-navigation-drawer\", [\"exports\", \"@additive-apps/ui/components/ui-navigation-drawer\"], function (_exports, _uiNavigationDrawer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiNavigationDrawer.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-notification\", [\"exports\", \"@additive-apps/ui/components/ui-notification\"], function (_exports, _uiNotification) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiNotification.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-onboarding\", [\"exports\", \"@additive-apps/ui/components/ui-onboarding\"], function (_exports, _uiOnboarding) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiOnboarding.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-page-not-found\", [\"exports\", \"@additive-apps/ui/components/ui-page-not-found\"], function (_exports, _uiPageNotFound) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiPageNotFound.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-pagination-arrow\", [\"exports\", \"@additive-apps/ui/components/ui-pagination-arrow\"], function (_exports, _uiPaginationArrow) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiPaginationArrow.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-pagination-page-item\", [\"exports\", \"@additive-apps/ui/components/ui-pagination-page-item\"], function (_exports, _uiPaginationPageItem) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiPaginationPageItem.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-pagination\", [\"exports\", \"@additive-apps/ui/components/ui-pagination\"], function (_exports, _uiPagination) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiPagination.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-popover-trigger\", [\"exports\", \"@additive-apps/ui/components/ui-popover-trigger\"], function (_exports, _uiPopoverTrigger) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiPopoverTrigger.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-popover\", [\"exports\", \"@additive-apps/ui/components/ui-popover\"], function (_exports, _uiPopover) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiPopover.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-preview-dialog\", [\"exports\", \"@additive-apps/ui/components/ui-preview-dialog\"], function (_exports, _uiPreviewDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiPreviewDialog.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-progress-bar\", [\"exports\", \"@additive-apps/ui/components/ui-progress-bar\"], function (_exports, _uiProgressBar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiProgressBar.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-property-watcher\", [\"exports\", \"@additive-apps/ui/components/ui-property-watcher\"], function (_exports, _uiPropertyWatcher) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiPropertyWatcher.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-publish-resource\", [\"exports\", \"@additive-apps/ui/components/ui-publish-resource\"], function (_exports, _uiPublishResource) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiPublishResource.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-pusher\", [\"exports\", \"@additive-apps/ui/components/ui-pusher\"], function (_exports, _uiPusher) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiPusher.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-radio-button-group\", [\"exports\", \"@additive-apps/ui/components/ui-radio-button-group\"], function (_exports, _uiRadioButtonGroup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiRadioButtonGroup.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-radio-button\", [\"exports\", \"@additive-apps/ui/components/ui-radio-button\"], function (_exports, _uiRadioButton) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiRadioButton.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-range-slider\", [\"exports\", \"@additive-apps/ui/components/ui-range-slider\"], function (_exports, _uiRangeSlider) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiRangeSlider.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-rating\", [\"exports\", \"@additive-apps/ui/components/ui-rating\"], function (_exports, _uiRating) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiRating.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-reports/card\", [\"exports\", \"@additive-apps/ui/components/ui-reports/card\"], function (_exports, _card) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _card.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-routable-tabs\", [\"exports\", \"@additive-apps/ui/components/ui-routable-tabs\"], function (_exports, _uiRoutableTabs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiRoutableTabs.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-searchbar\", [\"exports\", \"@additive-apps/ui/components/ui-searchbar\"], function (_exports, _uiSearchbar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiSearchbar.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-select-option\", [\"exports\", \"@additive-apps/ui/components/ui-select-option\"], function (_exports, _uiSelectOption) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiSelectOption.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-select\", [\"exports\", \"@additive-apps/ui/components/ui-select\"], function (_exports, _uiSelect) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiSelect.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-selectable-chip\", [\"exports\", \"@additive-apps/ui/components/ui-selectable-chip\"], function (_exports, _uiSelectableChip) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiSelectableChip.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-selectable\", [\"exports\", \"@additive-apps/ui/components/ui-selectable\"], function (_exports, _uiSelectable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiSelectable.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-selectable/content\", [\"exports\", \"@additive-apps/ui/components/ui-selectable/content\"], function (_exports, _content) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _content.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-selectable/trigger\", [\"exports\", \"@additive-apps/ui/components/ui-selectable/trigger\"], function (_exports, _trigger) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _trigger.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-selection-container\", [\"exports\", \"@additive-apps/ui/components/ui-selection-container\"], function (_exports, _uiSelectionContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiSelectionContainer.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-selection-container/action-bar\", [\"exports\", \"@additive-apps/ui/components/ui-selection-container/action-bar\"], function (_exports, _actionBar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _actionBar.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-selection-container/actions\", [\"exports\", \"@additive-apps/ui/components/ui-selection-container/actions\"], function (_exports, _actions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _actions.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-skeleton-card\", [\"exports\", \"@additive-apps/ui/components/ui-skeleton-card\"], function (_exports, _uiSkeletonCard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiSkeletonCard.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-skeleton\", [\"exports\", \"@additive-apps/ui/components/ui-skeleton\"], function (_exports, _uiSkeleton) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiSkeleton.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-slider\", [\"exports\", \"@additive-apps/ui/components/ui-slider\"], function (_exports, _uiSlider) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiSlider.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-status-badge\", [\"exports\", \"@additive-apps/ui/components/ui-status-badge\"], function (_exports, _uiStatusBadge) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiStatusBadge.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-status\", [\"exports\", \"@additive-apps/ui/components/ui-status\"], function (_exports, _uiStatus) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiStatus.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-switch\", [\"exports\", \"@additive-apps/ui/components/ui-switch\"], function (_exports, _uiSwitch) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiSwitch.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-tab-item\", [\"exports\", \"@additive-apps/ui/components/ui-tab-item\"], function (_exports, _uiTabItem) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiTabItem.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-table\", [\"exports\", \"@additive-apps/ui/components/ui-table\"], function (_exports, _uiTable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiTable.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-table/body\", [\"exports\", \"@additive-apps/ui/components/ui-table/body\"], function (_exports, _body) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _body.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-table/head-cell\", [\"exports\", \"@additive-apps/ui/components/ui-table/head-cell\"], function (_exports, _headCell) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _headCell.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-table/head\", [\"exports\", \"@additive-apps/ui/components/ui-table/head\"], function (_exports, _head) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _head.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-table/row\", [\"exports\", \"@additive-apps/ui/components/ui-table/row\"], function (_exports, _row) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _row.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-tabs-content\", [\"exports\", \"@additive-apps/ui/components/ui-tabs-content\"], function (_exports, _uiTabsContent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiTabsContent.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-tabs-header\", [\"exports\", \"@additive-apps/ui/components/ui-tabs-header\"], function (_exports, _uiTabsHeader) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiTabsHeader.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-tabs-pane\", [\"exports\", \"@additive-apps/ui/components/ui-tabs-pane\"], function (_exports, _uiTabsPane) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiTabsPane.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-tags-input-modal\", [\"exports\", \"@additive-apps/ui/components/ui-tags-input-modal\"], function (_exports, _uiTagsInputModal) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiTagsInputModal.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-tags-input\", [\"exports\", \"@additive-apps/ui/components/ui-tags-input\"], function (_exports, _uiTagsInput) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiTagsInput.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-tags\", [\"exports\", \"@additive-apps/ui/components/ui-tags\"], function (_exports, _uiTags) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiTags.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-timepicker\", [\"exports\", \"@additive-apps/ui/components/ui-timepicker\"], function (_exports, _uiTimepicker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiTimepicker.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-toast-container\", [\"exports\", \"@additive-apps/ui/components/ui-toast-container\"], function (_exports, _uiToastContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiToastContainer.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-toast\", [\"exports\", \"@additive-apps/ui/components/ui-toast\"], function (_exports, _uiToast) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiToast.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-toggle-group\", [\"exports\", \"@additive-apps/ui/components/ui-toggle-group\"], function (_exports, _uiToggleGroup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiToggleGroup.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-toggle-group/item\", [\"exports\", \"@additive-apps/ui/components/ui-toggle-group/item\"], function (_exports, _item) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _item.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-toolbar\", [\"exports\", \"@additive-apps/ui/components/ui-toolbar\"], function (_exports, _uiToolbar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiToolbar.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-view-modes\", [\"exports\", \"@additive-apps/ui/components/ui-view-modes\"], function (_exports, _uiViewModes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiViewModes.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-view-modes/content\", [\"exports\", \"@additive-apps/ui/components/ui-view-modes/content\"], function (_exports, _content) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _content.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-view-modes/toggle\", [\"exports\", \"@additive-apps/ui/components/ui-view-modes/toggle\"], function (_exports, _toggle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _toggle.default;\n    }\n  });\n});","define(\"additive-mc/components/ui-when\", [\"exports\", \"@additive-apps/ui/components/ui-when\"], function (_exports, _uiWhen) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiWhen.default;\n    }\n  });\n});","define(\"additive-mc/components/widget-config-group\", [\"exports\", \"@additive-apps/configurator/components/widget-config-group\"], function (_exports, _widgetConfigGroup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _widgetConfigGroup.default;\n    }\n  });\n});","define(\"additive-mc/config/asset-manifest\", [\"exports\", \"require\", \"additive-mc/config/environment\"], function (_exports, _require, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const modulePrefix = _environment.default.modulePrefix;\n  const metaName = `${modulePrefix}/config/asset-manifest`;\n  const nodeName = `${modulePrefix}/config/node-asset-manifest`;\n  let config = {};\n  try {\n    // If we have a Node version of the asset manifest, use that for FastBoot and\n    // similar environments.\n    if (_require.default.has(nodeName)) {\n      config = (0, _require.default)(nodeName).default; // eslint-disable-line\n    } else {\n      const rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n      config = JSON.parse(unescape(rawConfig));\n    }\n  } catch (err) {\n    throw new Error('Failed to load asset manifest. For browser environments, verify the meta tag with name \"' + metaName + '\" is present. For non-browser environments, verify that you included the node-asset-manifest module.');\n  }\n  var _default = _exports.default = config;\n});","define(\"additive-mc/controllers/application\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@additive-apps/auth/utils/roles-map\", \"additive-mc/utils/constants\"], function (_exports, _controller, _object, _service, _rolesMap, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // add instance Routes here\n  const instanceRoutes = [{\n    path: 'instance.dashboard',\n    intlKey: 'routes.dashboard.title',\n    svg: 'home'\n  }, {\n    path: 'instance.campaigns',\n    intlKey: 'routes.campaigns.title',\n    svg: 'advertising'\n  }, {\n    path: 'instance.reports',\n    intlKey: 'routes.reports.title',\n    svg: 'arrow-chart'\n  }, {\n    path: 'instance.preview',\n    intlKey: 'routes.preview.title',\n    svg: 'pending'\n  }, {\n    path: 'instance.auditlog',\n    intlKey: 'routes.auditlog.title',\n    svg: 'audit-log'\n  }, {\n    path: 'instance.widgets',\n    intlKey: 'routes.widgets.title',\n    svg: 'style'\n  }, {\n    path: 'instance.settings',\n    intlKey: 'routes.settings.title',\n    svg: 'settings'\n  }];\n  let ApplicationController = _exports.default = (_class = class ApplicationController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiLocale\", _descriptor8, this);\n      _initializerDefineProperty(this, \"uiState\", _descriptor9, this);\n      _defineProperty(this, \"queryParams\", ['onboarding']);\n      _defineProperty(this, \"onboarding\", null);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    get instanceRoutes() {\n      var _this$currentUser;\n      const userRole = (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.user) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.role;\n      return instanceRoutes.filter(route => {\n        if (route.requiredRole && !(0, _rolesMap.hasAccess)(route.requiredRole, userRole)) {\n          return false;\n        }\n        if (this.isReadOnly && route.path === 'instance.auditlog') {\n          return false;\n        }\n        return true;\n      });\n    }\n    get helpUrl() {\n      var _this$uiLocale;\n      const locale = ((_this$uiLocale = this.uiLocale) === null || _this$uiLocale === void 0 ? void 0 : _this$uiLocale.locale) || 'de';\n      return `https://knowledge.additive.eu/${locale}/knowledge/additive-marketing-automation`;\n    }\n    get _onboardingOptions() {\n      // Don't show onboarding on mobile devices\n      if (window.innerWidth <= 768) {\n        return null;\n      }\n      return (0, _constants.onboardingData)(this.intl);\n    }\n    transitionToOrganizationRoute(organization) {\n      var _this$currentUser2;\n      const currentOrganization = (_this$currentUser2 = this.currentUser) === null || _this$currentUser2 === void 0 ? void 0 : _this$currentUser2.currentOrganization;\n      if (currentOrganization === organization) {\n        return;\n      }\n      this.currentUser.currentOrganization = organization;\n      this.currentUser.user = null;\n      this.store.unloadAll('ad-campaign');\n      this.store.unloadAll('email-campaign');\n      this.store.unloadAll('email-preview');\n      this.store.unloadAll('email');\n      this.store.unloadAll('subscriber');\n      this.store.unloadAll('searchAdTemplate');\n      this.store.unloadAll('targetGroup');\n      this.store.unloadAll('extension');\n\n      // mm related models\n      this.store.unloadAll('folder');\n      this.store.unloadAll('medium');\n      this.store.unloadAll('collection');\n      this.uiAppSettings.reset();\n      /* pass id instead of object to ensure model-hook gets triggered */\n      this.router.transitionTo('instance', organization.id);\n    }\n    finishOnboarding() {\n      this.onboarding = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiLocale\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"uiState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"transitionToOrganizationRoute\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"transitionToOrganizationRoute\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"finishOnboarding\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"finishOnboarding\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/auth/callback\", [\"exports\", \"@additive-apps/auth/controllers/auth/callback\"], function (_exports, _callback) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _callback.default;\n    }\n  });\n});","define(\"additive-mc/controllers/instance\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class InstanceController extends _controller.default {}\n  _exports.default = InstanceController;\n});","define(\"additive-mc/controllers/instance/auditlog\", [\"exports\", \"additive-mc/config/environment\", \"@ember/controller\"], function (_exports, _environment, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class AuditLogController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"_apiBaseHost\", _environment.default.APP.apiBaseHostV2);\n    }\n  }\n  _exports.default = AuditLogController;\n});","define(\"additive-mc/controllers/instance/campaigns/ad/content-ads/depictions\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object/computed\", \"ember-concurrency\", \"@ember/object\"], function (_exports, _controller, _service, _tracking, _computed, _emberConcurrency, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdFacebookAdsDepictionsController = _exports.default = (_dec = (0, _computed.equal)(`data.length`, 0), _dec2 = (0, _computed.alias)('fetchDepictions.isRunning'), _dec3 = (0, _emberConcurrency.task)(function* () {\n    try {\n      let peekedDepictions = this.store.peekAll('depiction', {\n        adapterOptions: {\n          campaignId: this.modelId,\n          type: 'content-ads'\n        }\n      });\n      let fetchDepictionsTask = null;\n      if (!peekedDepictions.length) {\n        fetchDepictionsTask = this.store.findAll('depiction', {\n          adapterOptions: {\n            campaignId: this.modelId,\n            type: 'content-ads'\n          }\n        });\n      }\n      const fetchDepictionsMetaTask = this.getDepictionMeta.perform();\n      let tasks = [];\n      tasks.push(fetchDepictionsTask);\n      tasks.push(fetchDepictionsMetaTask);\n      tasks.push((0, _emberConcurrency.timeout)(400));\n      const [depictions, depictionsMeta] = yield (0, _emberConcurrency.all)(tasks);\n      this.depictions = depictions || peekedDepictions;\n      this.meta = depictionsMeta;\n    } catch (e) {\n      this.uiDialog.showError();\n    }\n  }), _dec4 = (0, _emberConcurrency.task)(function* () {}), _class = class InstanceCampaignsAdFacebookAdsDepictionsController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor6, this);\n      /**\n       * whether an error has occured\n       *\n       * @property isError\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isError\", _descriptor7, this);\n      /**\n       * the depictions meta\n       *\n       * @property meta\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"meta\", _descriptor8, this);\n      /**\n       * the id of the catalog ads\n       *\n       * @property modelId\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"modelId\", _descriptor9, this);\n      /**\n       * fetched depictions\n       *\n       * @property depictions\n       * @type Array\n       */\n      _initializerDefineProperty(this, \"depictions\", _descriptor10, this);\n      /**\n       * whether the rename dialog is opened\n       *\n       * @property isRenameDialog\n       * @type Boolean\n       */\n      _initializerDefineProperty(this, \"isRenameDialog\", _descriptor11, this);\n      /**\n       * model of selected depiction\n       *\n       * @property selectedDepictionModel\n       * @type {Model}\n       */\n      _initializerDefineProperty(this, \"selectedDepictionModel\", _descriptor12, this);\n      /**\n       * whether the table is empty\n       *\n       * @computed isEmpty\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isEmpty\", _descriptor13, this);\n      /**\n       * Property to know if we are still\n       * downloading data for the tables\n       *\n       * @computed isLoading\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isLoading\", _descriptor14, this);\n      /**\n       * Fetches the depictions from the api\n       *\n       * @function fetchDepictions\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchDepictions\", _descriptor15, this);\n      /**\n       * Fetches and returns the depictions meta\n       * Is replaced in setupController by task of parent controller\n       *\n       * @function getDepictionMeta\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"getDepictionMeta\", _descriptor16, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n\n    /**\n     * Formats the arrays to strings to display them\n     *\n     * @computed formattedDepictions\n     * @type {Object[]}\n     */\n    get formattedDepictions() {\n      var _this$depictions;\n      return (_this$depictions = this.depictions) === null || _this$depictions === void 0 ? void 0 : _this$depictions.filter(depiction => !depiction.isNew).map(depiction => {\n        var _depiction$images;\n        const formattedDepiction = {\n          id: depiction.id,\n          name: depiction.name\n        };\n        if ((depiction === null || depiction === void 0 || (_depiction$images = depiction.images) === null || _depiction$images === void 0 ? void 0 : _depiction$images.length) > 0) {\n          let imageUrl;\n          if (depiction.images[0].thumbnailUrl) {\n            imageUrl = depiction.images[0].thumbnailUrl;\n          } else {\n            imageUrl = depiction.images[0].url;\n          }\n          formattedDepiction.hasImage = true;\n          formattedDepiction.image = imageUrl;\n        }\n        return formattedDepiction;\n      });\n    }\n    async onDelete(id) {\n      try {\n        const depictionModel = this.store.peekRecord('depiction', id, {\n          adapterOptions: {\n            campaignId: this.modelId,\n            type: 'content-ads'\n          }\n        });\n        await depictionModel.destroyRecord({\n          adapterOptions: {\n            campaignId: this.modelId,\n            type: 'content-ads'\n          }\n        });\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      } catch (e) {\n        if (e && e.code === 'in_use') {\n          this.uiDialog.showError(this.intl.t('adCampaigns.facebookContentAds.depiction.errorMessages.depictionInUse.title'), this.intl.t('adCampaigns.facebookContentAds.depiction.errorMessages.depictionInUse.description'));\n        } else {\n          this.uiToast.showToast({\n            title: this.intl.t('toast.unexpectedError'),\n            type: 'error'\n          });\n        }\n      }\n    }\n    delete(id) {\n      this.uiDialog.showConfirm(this.intl.t('components.amc-delete-model.confirm.title'), this.intl.t('components.amc-delete-model.confirm.description', {\n        htmlSafe: true\n      }), () => this.onDelete(id), this.intl.t('global.actions.delete'), false, true);\n    }\n    renameDepiction(id) {\n      this.selectedDepictionModel = this.store.peekRecord('depiction', id, {\n        adapterOptions: {\n          campaignId: this.modelId,\n          type: 'content-ads'\n        }\n      });\n      this.isRenameDialog = true;\n    }\n    openDetail(id) {\n      this.router.transitionTo('instance.campaigns.ad.content-ads.depictions.index.depiction', id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"modelId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"depictions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isRenameDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"selectedDepictionModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isEmpty\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"fetchDepictions\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"getDepictionMeta\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"delete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"delete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"renameDepiction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"renameDepiction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openDetail\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openDetail\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/ad/index\", [\"exports\", \"additive-mc/config/environment\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@ember/object/computed\", \"@glimmer/tracking\", \"ember-concurrency\"], function (_exports, _environment, _controller, _service, _object, _computed, _tracking, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdIndexController = _exports.default = (_dec = (0, _computed.alias)('currentUser.currentOrganization.id'), _dec2 = (0, _object.computed)('router.currentRouteName'), _dec3 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const url = `${_environment.default.APP.apiBaseHost}/${this.organizationSlug}/organisation-campaigns/ad/alerts/check`;\n      const response = yield this.authenticatedFetch.fetch(url, {\n        method: 'POST'\n      });\n      if (!response.ok) throw new Error();\n      this.uiToast.showToast({\n        title: this.intl.t('toast.success'),\n        type: 'success'\n      });\n    } catch (e) {\n      this.uiDialog.showError();\n    }\n  }), _class = class InstanceCampaignsAdIndexController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor3, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiState\", _descriptor8, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor9, this);\n      _defineProperty(this, \"navdrawerStateKey\", 'settings-drawer');\n      /**\n       * the campaign that is currently active\n       *\n       * @argument activeCampaign\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"activeCampaign\", _descriptor10, this);\n      /**\n       * whether the create campaign dialog is active\n       *\n       * @argument activeCampaign\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isCreateCampaignDialog\", _descriptor11, this);\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor12, this);\n      /**\n       * performs the integrity check anew\n       *\n       * @function performCheck\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"performCheck\", _descriptor13, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    get detailRoute() {\n      if (this.router.currentRouteName.startsWith('instance.campaigns.ad.index.detail')) {\n        return this.router.currentRouteName;\n      }\n      return null;\n    }\n    get isAdditive() {\n      // TODO: Remove when Tik-Tok Lead Ads is finished\n      // Additive user check deactivated on testing branch for outsourcing team\n      // return this.currentUser?.user?.isAdditive;\n      return true;\n    }\n    toggleDrawer() {\n      this.uiState.getState(this.navdrawerStateKey).toggle();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"activeCampaign\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isCreateCampaignDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"detailRoute\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"detailRoute\"), _class.prototype), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"performCheck\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleDrawer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDrawer\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/ad/lead-ads\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _controller, _object, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const STATE_KEY = 'configurations-drawer';\n  let InstanceCampaignsAdLeadAdsController = _exports.default = (_class = class InstanceCampaignsAdLeadAdsController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiState\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor8, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor9, this);\n      _initializerDefineProperty(this, \"router\", _descriptor10, this);\n      _defineProperty(this, \"stateKey\", STATE_KEY);\n      _initializerDefineProperty(this, \"activeModel\", _descriptor11, this);\n      _initializerDefineProperty(this, \"model\", _descriptor12, this);\n      _initializerDefineProperty(this, \"campaignId\", _descriptor13, this);\n      _initializerDefineProperty(this, \"isEditDialog\", _descriptor14, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    onDelete(item) {\n      this.uiDialog.showConfirm(this.intl.t('adCampaigns.leadAds.delete.title'), this.intl.t('adCampaigns.leadAds.delete.description'), () => this.delete(item), this.intl.t('global.actions.delete'), true, true);\n    }\n    onArchive(item) {\n      this.uiDialog.showConfirm(this.intl.t('adCampaigns.leadAds.archive.title'), this.intl.t('adCampaigns.leadAds.archive.description'), () => this.archive(item), this.intl.t('global.actions.archive'), false, true);\n    }\n    async delete(item) {\n      try {\n        await item.destroyRecord({\n          adapterOptions: {\n            campaignId: this.campaignId,\n            type: 'lead-ads'\n          }\n        });\n        this.router.transitionTo('instance.campaigns.ad.lead-ads', this.campaignId);\n        await this.uiFilter.reset('lead-ads');\n        this.uiToast.showToast({\n          type: 'success',\n          title: this.intl.t('global.toast.success.savedChanges')\n        });\n      } catch (e) {\n        this.uiDialog.showError(null, e.message);\n      }\n    }\n    async archive(item) {\n      try {\n        const advertisement = await item.archive({\n          campaignId: this.campaignId,\n          type: 'lead-ads'\n        });\n        this.store.pushPayload('advertisement', advertisement);\n      } catch (e) {\n        this.uiDialog.showError(null, e.message);\n      }\n    }\n    toggleDrawer() {\n      this.uiState.getState(this.stateKey).toggle();\n    }\n    openCreateDialog() {\n      this.activeModel = this.store.createRecord('advertisement', {});\n      this.isEditDialog = true;\n    }\n    openRenameDialog(model) {\n      this.activeModel = model;\n      this.isEditDialog = true;\n    }\n    openAdDetail() {\n      if (!this.activeModel.isDeleted) {\n        this.router.transitionTo('instance.campaigns.ad.lead-ads.lead-ad', this.activeModel.id);\n      }\n      this.isEditDialog = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"activeModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"isEditDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDelete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onArchive\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onArchive\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"delete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"delete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"archive\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"archive\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleDrawer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDrawer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openCreateDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openCreateDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openRenameDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openRenameDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openAdDetail\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openAdDetail\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/ad/lead-ads/lead-ad\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-concurrency\", \"ember-animated\"], function (_exports, _controller, _object, _service, _tracking, _emberConcurrency, _emberAnimated) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdLeadAdsLeadAdController = _exports.default = (_dec = (0, _object.computed)('model.targetAudience', 'meta.targetAudiences.[]'), _dec2 = (0, _object.computed)('model.adCreative.cta', 'meta.ctaTypes.[]'), _dec3 = (0, _object.computed)('model.{language,totalBudget,endDate,startDate,budgetSpend.value}', 'targetAudience'), _dec4 = (0, _emberConcurrency.task)(function* () {\n    if (!this.model.isDraft) {\n      return;\n    }\n    const response = yield this.model.validate(this.adapterOptions);\n    if (response.ok) {\n      this.isValid = true;\n      return;\n    }\n    const {\n      validations\n    } = yield response.json();\n    this.isValid = (validations === null || validations === void 0 ? void 0 : validations.length) > 0 ? false : true;\n    this.validations = validations;\n  }), _dec5 = (0, _emberConcurrency.task)(function* () {\n    try {\n      yield this.model.destroyRecord({\n        adapterOptions: this.adapterOptions\n      });\n      this.router.transitionTo('instance.campaigns.ad.lead-ads', this.campaignId);\n      yield this.uiFilter.reset('lead-ads');\n      this.uiToast.showToast({\n        type: 'success',\n        title: this.intl.t('global.toast.success.savedChanges')\n      });\n    } catch (e) {\n      this.uiToast.showToast({\n        type: 'error',\n        title: this.intl.t('global.toast.error.savedChanges')\n      });\n    }\n  }), _class = class InstanceCampaignsAdLeadAdsLeadAdController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor8, this);\n      _initializerDefineProperty(this, \"router\", _descriptor9, this);\n      _initializerDefineProperty(this, \"meta\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isError\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isLoading\", _descriptor12, this);\n      _initializerDefineProperty(this, \"campaignId\", _descriptor13, this);\n      _initializerDefineProperty(this, \"validations\", _descriptor14, this);\n      _initializerDefineProperty(this, \"isValid\", _descriptor15, this);\n      _defineProperty(this, \"_animatedTransition\", _emberAnimated.fade);\n      _initializerDefineProperty(this, \"validate\", _descriptor16, this);\n      _initializerDefineProperty(this, \"deleteAd\", _descriptor17, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    get showFormHeadline() {\n      if (!this.model.adCreative) {\n        return false;\n      }\n      return this.model.adCreative.form.headline || this.model.adCreative.form.text || this.model.adCreative.form.textThanksTitle || this.model.adCreative.form.textThanks;\n    }\n    get targetAudience() {\n      var _this$meta;\n      if (!this.model.targetAudience) return null;\n      const audience = (_this$meta = this.meta) === null || _this$meta === void 0 || (_this$meta = _this$meta.targetAudiences) === null || _this$meta === void 0 ? void 0 : _this$meta.find(audience => audience.value === this.model.targetAudience);\n      return audience === null || audience === void 0 ? void 0 : audience.label;\n    }\n    get cta() {\n      var _this$model$adCreativ, _this$meta2;\n      if (!((_this$model$adCreativ = this.model.adCreative) !== null && _this$model$adCreativ !== void 0 && _this$model$adCreativ.cta)) return null;\n      const cta = (_this$meta2 = this.meta) === null || _this$meta2 === void 0 || (_this$meta2 = _this$meta2.ctaTypes) === null || _this$meta2 === void 0 ? void 0 : _this$meta2.find(cta => {\n        var _this$model$adCreativ2;\n        return cta.value === ((_this$model$adCreativ2 = this.model.adCreative) === null || _this$model$adCreativ2 === void 0 ? void 0 : _this$model$adCreativ2.cta);\n      });\n      return cta === null || cta === void 0 ? void 0 : cta.label;\n    }\n    get showNotification() {\n      return this.model.isDraft && !this.isValid && !this.validate.isRunning;\n    }\n    get adapterOptions() {\n      return {\n        campaignId: this.campaignId,\n        type: 'lead-ads'\n      };\n    }\n    get showContentInfo() {\n      const {\n        language,\n        totalBudget,\n        endDate,\n        startDate,\n        budgetSpend\n      } = this.model;\n      return language || totalBudget || endDate || startDate || (budgetSpend === null || budgetSpend === void 0 ? void 0 : budgetSpend.value) || this.targetAudience;\n    }\n    back() {\n      this.transitionToRoute('instance.campaigns.ad.lead-ads');\n    }\n    openEdit() {\n      this.transitionToRoute('instance.campaigns.ad.lead-ads.lead-ad.edit');\n    }\n    onPublish() {\n      const publishAction = this.model.isDraft ? 'publish' : 'unpublish';\n      this.uiDialog.showConfirm(this.intl.t(`adCampaigns.leadAds.${publishAction}.dialog.title`), this.intl.t(`adCampaigns.leadAds.${publishAction}.dialog.description`), () => this.modelAction(publishAction), this.intl.t(`global.actions.${publishAction}`), false);\n    }\n    async modelAction(publishAction) {\n      let toast;\n      try {\n        this.isLoading = true;\n        toast = this.uiToast.showToast({\n          title: this.intl.t(`adCampaigns.leadAds.publish.loading.${publishAction}`),\n          description: this.intl.t('adCampaigns.leadAds.publish.loading.text'),\n          type: 'loading',\n          duration: -1\n        });\n        const response = await this.model[publishAction](this.adapterOptions);\n        if (!(response !== null && response !== void 0 && response.ok)) {\n          // show error dialog\n          const {\n            message\n          } = await response.json();\n          throw new Error(message);\n        }\n        this.uiToast.destroyToast(toast);\n        const advertisement = await response.json();\n        const serializer = this.store.serializerFor('advertisement');\n        serializer.normalizeResponse(null, null, advertisement);\n        this.store.pushPayload(advertisement);\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      } catch (e) {\n        this.uiToast.destroyToast(toast);\n        this.uiDialog.showError(null, e.message);\n      } finally {\n        this.isLoading = false;\n      }\n    }\n    onDelete() {\n      if (this.isReadOnly) {\n        return;\n      }\n      this.uiDialog.showConfirm(this.intl.t('adCampaigns.leadAds.delete.title'), this.intl.t('adCampaigns.leadAds.delete.description'), async () => {\n        await this.delete();\n      }, this.intl.t('global.actions.delete'), true, true);\n    }\n    async delete() {\n      await this.deleteAd.perform();\n    }\n    onArchive() {\n      this.uiDialog.showConfirm(this.intl.t('adCampaigns.leadAds.archive.title'), this.intl.t('adCampaigns.leadAds.archive.description'), () => this.archive(), this.intl.t('global.actions.archive'), false, true);\n    }\n    async archive() {\n      try {\n        const advertisement = await this.model.archive(this.adapterOptions);\n        const serializer = this.store.serializerFor('advertisement');\n        serializer.normalizeResponse(null, null, advertisement);\n        this.store.pushPayload(advertisement);\n      } catch (e) {\n        this.uiDialog.showError(null, e.message);\n      }\n    }\n    onExpiredEdit() {\n      this.uiDialog.showConfirm(this.intl.t('adCampaigns.leadAds.editExpired.title'), this.intl.t('adCampaigns.leadAds.editExpired.description'), () => this.modelAction('unpublish'), this.intl.t('adCampaigns.leadAds.editExpired.action'));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"validations\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isValid\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"targetAudience\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"targetAudience\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cta\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"cta\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showContentInfo\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"showContentInfo\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"back\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"back\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openEdit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openEdit\"), _class.prototype), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"validate\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onPublish\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onPublish\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"modelAction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"modelAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDelete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"delete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"delete\"), _class.prototype), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"deleteAd\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onArchive\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onArchive\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"archive\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"archive\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onExpiredEdit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onExpiredEdit\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/ad/lead-ads/lead-ad/edit\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash.clonedeep\", \"date-fns\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-changeset-validations/validators\", \"@additive-apps/utils/validators/numeral\", \"additive-mc/validations/advertisement\"], function (_exports, _controller, _object, _tracking, _service, _lodash, _dateFns, _emberChangeset, _emberChangesetValidations, _validators, _numeral, _advertisement) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdLeadAdsLeadAdEditController = _exports.default = (_dec = (0, _object.computed)('changeset.startDate', 'minDate'), _class = class InstanceCampaignsAdLeadAdsLeadAdEditController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor5, this);\n      _initializerDefineProperty(this, \"multimedia\", _descriptor6, this);\n      _initializerDefineProperty(this, \"meta\", _descriptor7, this);\n      _initializerDefineProperty(this, \"changeset\", _descriptor8, this);\n      _initializerDefineProperty(this, \"adCreativeChangeset\", _descriptor9, this);\n      _initializerDefineProperty(this, \"budgetChangeset\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isDateTouched\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isTouched\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isDiscardChangesDialog\", _descriptor13, this);\n      _defineProperty(this, \"campaignId\", null);\n      _initializerDefineProperty(this, \"leadAdResource\", _descriptor14, this);\n      _initializerDefineProperty(this, \"_maxImageCount\", _descriptor15, this);\n      /**\n       * the earliest date that can be selected\n       *\n       * @property minDate\n       * @type {Date}\n       */\n      _defineProperty(this, \"minDate\", new Date());\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    get dailySpendingAmount() {\n      if (new Date(this.changeset.get('endDate')) < new Date() || parseFloat(this.budgetChangeset.get('amount')) <= parseFloat(this.changeset.get('budgetSpend.value'))) {\n        return '';\n      }\n      const startDate = new Date() < new Date(this.changeset.get('startDate')) ? new Date(this.changeset.get('startDate')) : new Date();\n      const datesDayDiff = (0, _dateFns.differenceInDays)(new Date(this.changeset.get('endDate')), startDate);\n      const remainingBudget = this.budgetChangeset.get('amount') - (this.changeset.get('budgetSpend.value') || 0);\n      return remainingBudget / datesDayDiff;\n    }\n    get _selectableImageLabels() {\n      var _this$leadAdResource;\n      if ((_this$leadAdResource = this.leadAdResource) !== null && _this$leadAdResource !== void 0 && _this$leadAdResource.isDynamicCreative) {\n        return null;\n      }\n      return [{\n        label: this.intl.t('adCampaigns.leadAds.edit.imageLabels.square'),\n        value: 'square'\n      }, {\n        label: this.intl.t('adCampaigns.leadAds.edit.imageLabels.portrait'),\n        value: 'portrait'\n      }];\n    }\n    setup() {\n      var _leadAdResource$adCre, _leadAdResource$budge, _this$budgetChangeset, _leadAdResource$budge2;\n      const {\n        intl\n      } = this;\n      let changesetChanges = null;\n      if (this.changeset) {\n        changesetChanges = this.changeset.get('changes');\n      }\n      const leadAdResource = Object.assign({}, this.model.toJSON());\n      leadAdResource.startDate = new Date(leadAdResource.startDate);\n      leadAdResource.endDate = new Date(leadAdResource.endDate);\n      this._maxImageCount = leadAdResource !== null && leadAdResource !== void 0 && leadAdResource.isDynamicCreative ? 10 : 2;\n      const validation = (0, _advertisement.leadAdValidation)(intl);\n      this.changeset = new _emberChangeset.default(leadAdResource, (0, _emberChangesetValidations.default)(validation), validation);\n      if (changesetChanges) {\n        changesetChanges.forEach(change => {\n          this.changeset.set(change.key, change.value);\n        });\n      }\n      let adCreativeChangesetChanges = null;\n      if (this.adCreativeChangeset) {\n        adCreativeChangesetChanges = this.adCreativeChangeset.get('changes');\n      }\n\n      /*\n        Create a separate changeset for the ad creative to avoid problems with\n        nested elements in the changeset.\n       */\n      if (!leadAdResource.adCreative) {\n        leadAdResource.adCreative = {\n          form: {}\n        };\n      } else if (!((_leadAdResource$adCre = leadAdResource.adCreative) !== null && _leadAdResource$adCre !== void 0 && _leadAdResource$adCre.form)) {\n        // we have to initialize the nested object to avoid errors\n        leadAdResource.adCreative.form = {};\n      }\n      if (leadAdResource.isDynamicCreative) {\n        this.adCreativeChangeset = new _emberChangeset.default(leadAdResource.adCreative);\n      } else {\n        const adCreativeValidation = (0, _advertisement.leadAdsAdCreativeValidation)(intl);\n        this.adCreativeChangeset = new _emberChangeset.default(leadAdResource.adCreative, (0, _emberChangesetValidations.default)(adCreativeValidation), adCreativeValidation);\n      }\n      if (adCreativeChangesetChanges) {\n        adCreativeChangesetChanges.forEach(change => {\n          this.adCreativeChangeset.set(change.key, change.value);\n        });\n      }\n      let budgetChangesetChanges = null;\n      if (this.budgetChangeset) {\n        budgetChangesetChanges = this.budgetChangeset.get('changes');\n      }\n\n      /*\n        Create a separate changeset for the budget to avoid problems with\n        nested elements in the changeset.\n       */\n      if (!leadAdResource.budget) {\n        leadAdResource.budget = {\n          amount: null,\n          type: null\n        };\n      }\n      let currentBudgetType = leadAdResource === null || leadAdResource === void 0 || (_leadAdResource$budge = leadAdResource.budget) === null || _leadAdResource$budge === void 0 ? void 0 : _leadAdResource$budge.type;\n      if ((_this$budgetChangeset = this.budgetChangeset) !== null && _this$budgetChangeset !== void 0 && _this$budgetChangeset.get('type')) {\n        currentBudgetType = this.budgetChangeset.get('type');\n      }\n      const budgetValidation = (0, _advertisement.adBudgetValidation)(intl);\n      if ((_leadAdResource$budge2 = leadAdResource.budgetSpend) !== null && _leadAdResource$budge2 !== void 0 && _leadAdResource$budge2.value && currentBudgetType === 'lifetime') {\n        budgetValidation['type'] = (0, _validators.validatePresence)({\n          presence: true,\n          message: intl.t('errors.required')\n        });\n        budgetValidation['amount'] = (0, _numeral.validateNumeral)({\n          gte: leadAdResource.budgetSpend.value,\n          allowBlank: false,\n          message: intl.t('adCampaigns.leadAds.edit.errors.minSpend')\n        });\n      }\n      this.budgetChangeset = new _emberChangeset.default(leadAdResource.budget, (0, _emberChangesetValidations.default)(budgetValidation), budgetValidation);\n      if (budgetChangesetChanges) {\n        budgetChangesetChanges.forEach(change => {\n          this.budgetChangeset.set(change.key, change.value);\n        });\n      }\n      this.leadAdResource = leadAdResource;\n    }\n\n    /**\n     * the earliest date that can be selected for the end date\n     *\n     * @computed minEndDate\n     * @type {Date}\n     */\n    get minEndDate() {\n      var _this$changeset;\n      return ((_this$changeset = this.changeset) === null || _this$changeset === void 0 ? void 0 : _this$changeset.get('startDate')) > this.minDate ? this.changeset.get('startDate') : this.minDate;\n    }\n    onChangeBudgetType(_ref) {\n      let {\n        value\n      } = _ref;\n      this.budgetChangeset.set('type', value);\n      if (value === 'lifetime') {\n        this.changeset.set('unlimitedDuration', false);\n      }\n\n      // create new changeset to update the validation\n      this.setup();\n      this.budgetChangeset.validate('amount');\n      this.changeset.validate('startDate');\n    }\n    onChangeBudget(value) {\n      this.budgetChangeset.set('amount', value);\n      this.budgetChangeset.validate('amount');\n    }\n    onChangeFormData(property, value) {\n      const newFormData = Object.assign({}, {\n        headline: this.adCreativeChangeset.get('form.headline'),\n        text: this.adCreativeChangeset.get('form.text'),\n        textThanks: this.adCreativeChangeset.get('form.textThanks'),\n        textThanksTitle: this.adCreativeChangeset.get('form.textThanksTitle')\n      }, {\n        [property]: value\n      });\n      this.adCreativeChangeset.set('form', newFormData);\n    }\n    selectProperty(property, _ref2) {\n      let {\n        value\n      } = _ref2;\n      this.changeset.set(property, value);\n    }\n    selectCta(_ref3) {\n      let {\n        value\n      } = _ref3;\n      this.adCreativeChangeset.set('cta', value);\n    }\n    onDateChange(start, end) {\n      start && this.changeset.set('startDate', (0, _dateFns.parseISO)(start));\n      end && this.changeset.set('endDate', (0, _dateFns.parseISO)(end));\n    }\n    openMultimedia() {\n      var _this$adCreativeChang;\n      this.multimedia.setSelectionOptions({\n        maxCount: this._maxImageCount - (((_this$adCreativeChang = this.adCreativeChangeset.get('multimediaVariants')) === null || _this$adCreativeChang === void 0 ? void 0 : _this$adCreativeChang.length) || 0),\n        mimeTypes: ['image/jpeg', 'image/png', 'video/mp4', 'video/quicktime'],\n        warningMessage: this.intl.t('global.warnings.multimedia.imageVideo')\n      });\n      this.router.transitionTo('instance.campaigns.ad.lead-ads.lead-ad.edit.additive-multimedia-engine');\n    }\n    closeMultimedia() {\n      this.multimedia.setSelectionOptions({\n        maxCount: this._maxImageCount,\n        mimeTypes: ['image/jpeg', 'image/png', 'video/mp4', 'video/quicktime'],\n        warningMessage: this.intl.t('global.warnings.multimedia.imageVideo')\n      });\n      this.router.transitionTo('instance.campaigns.ad.lead-ads.lead-ad.edit');\n    }\n    onAddMedium(_, resources) {\n      const currentImages = this.adCreativeChangeset.get('multimediaVariants') || [];\n      const media = currentImages.concat(resources);\n      const sortedMedia = media.map((resource, index) => {\n        return Object.assign({\n          position: index + 1\n        }, _objectSpread({}, resource));\n      });\n      this.adCreativeChangeset.set('multimediaVariants', sortedMedia);\n    }\n    onImageLabelChange(resource, resourceArrayIndex, imageLabel) {\n      const media = this.adCreativeChangeset.get('multimediaVariants');\n      let changedResource = (0, _lodash.default)(resource);\n      if (!Array.isArray(resource === null || resource === void 0 ? void 0 : resource.labels)) {\n        changedResource.labels = [];\n      }\n      if (changedResource.labels.includes(imageLabel)) {\n        // Remove image-label\n        changedResource.labels = changedResource.labels.filter(label => label !== imageLabel);\n      } else {\n        // Add image-label\n        changedResource.labels = [imageLabel];\n      }\n      media.replace(resourceArrayIndex, 1, [changedResource]);\n      this.adCreativeChangeset.set('multimediaVariants', media);\n    }\n    onChangeUnlimitedDuration(value) {\n      this.changeset.set('unlimitedDuration', value);\n      this.changeset.validate('startDate');\n      if (!value) {\n        this.changeset.validate('endDate');\n      }\n    }\n    onChangeDate(property, value) {\n      this.changeset.set(property, value);\n      this.changeset.validate('startDate');\n      this.changeset.validate('endDate');\n    }\n    onResourceRemove(_ref4) {\n      let {\n        mediumId\n      } = _ref4;\n      const media = this.adCreativeChangeset.get('multimediaVariants').filter(resource => resource.mediumId !== mediumId);\n      this.adCreativeChangeset.set('multimediaVariants', [...media]);\n    }\n    onResourceEdit(changedResource, resourceArrayIndex) {\n      const media = this.adCreativeChangeset.get('multimediaVariants');\n      media.replace(resourceArrayIndex, 1, [changedResource]);\n      this.adCreativeChangeset.set('multimediaVariants', media);\n    }\n    onBack() {\n      if (this.changeset.get('isDirty') || this.adCreativeChangeset.get('isDirty')) {\n        this.isDiscardChangesDialog = true;\n        return;\n      }\n      this.back();\n    }\n    discardChanges() {\n      this.isDiscardChangesDialog = false;\n      this.changeset.rollback();\n      this.adCreativeChangeset.rollback();\n      this.back();\n    }\n    back() {\n      this.multimedia.resetSelectionOptions();\n      this.router.transitionTo('instance.campaigns.ad.lead-ads.lead-ad');\n    }\n    async save() {\n      this.isTouched = true;\n      this.isDateTouched = true;\n      try {\n        await this.changeset.validate();\n        await this.adCreativeChangeset.validate();\n        await this.budgetChangeset.validate();\n        if (this.changeset.get('isInvalid') || this.adCreativeChangeset.get('isInvalid') || this.budgetChangeset.get('isInvalid')) {\n          return;\n        }\n\n        // apply both changesets to the model\n        await this.changeset.execute();\n        await this.adCreativeChangeset.execute();\n        await this.budgetChangeset.execute();\n        Object.keys(this.leadAdResource).forEach(key => {\n          this.model[key] = this.leadAdResource[key];\n        });\n        await this.model.save({\n          adapterOptions: {\n            campaignId: this.campaignId,\n            type: 'lead-ads'\n          }\n        });\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        this.back();\n      } catch (e) {\n        const error = JSON.parse(e === null || e === void 0 ? void 0 : e.message);\n        // TODO handle errors when api is done\n        this.uiToast.showToast({\n          title: (error === null || error === void 0 ? void 0 : error.message) || this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n        this.model.rollbackAttributes();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"multimedia\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"adCreativeChangeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"budgetChangeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isDateTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChangesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"leadAdResource\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"_maxImageCount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"minEndDate\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"minEndDate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeBudgetType\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeBudgetType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeBudget\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeFormData\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeFormData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectProperty\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectProperty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectCta\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectCta\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDateChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDateChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAddMedium\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAddMedium\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onImageLabelChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onImageLabelChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeUnlimitedDuration\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeUnlimitedDuration\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeDate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeDate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onResourceRemove\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onResourceRemove\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onResourceEdit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onResourceEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onBack\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onBack\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"back\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"back\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/ad/tiktok-lead-ads\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/object/computed\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _controller, _object, _computed, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const STATE_KEY = 'configurations-drawer';\n  let InstanceCampaignsAdTikTokLeadAdsController = _exports.default = (_dec = (0, _computed.alias)(`currentUser.currentOrganization.id`), _class = class InstanceCampaignsAdTikTokLeadAdsController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiState\", _descriptor5, this);\n      _defineProperty(this, \"stateKey\", STATE_KEY);\n      _initializerDefineProperty(this, \"activeModel\", _descriptor6, this);\n      /**\n       * whether the create ad dialog is open\n       *\n       * @property isCreateAdDialog\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isCreateAdDialog\", _descriptor7, this);\n      /**\n       * whether the create depiction dialog is open\n       *\n       * @property isCreateDepictionDialog\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isCreateDepictionDialog\", _descriptor8, this);\n      /**\n       * fetched meta data of the depictions\n       *\n       * @property depictionsMeta\n       * @type {Array}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"depictionsMeta\", _descriptor9, this);\n      /**\n       * The name of the organization\n       *\n       * @computed organizationsSlug\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor10, this);\n    }\n    /**\n     * whether the ads tab is active\n     *\n     * @computed isAdsRoute\n     * @type {Boolean}\n     */\n    get isAdsRoute() {\n      return this.router.currentRouteName.startsWith('instance.campaigns.ad.tiktok-lead-ads.index');\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    toggleDrawer() {\n      this.uiState.getState(this.stateKey).toggle();\n    }\n    openCreateAdDialog() {\n      this.activeModel = this.store.createRecord('advertisement', {});\n      this.isCreateAdDialog = true;\n    }\n    openAdDetail() {\n      if (!this.activeModel.isDeleted) {\n        this.router.transitionTo('instance.campaigns.ad.tiktok-lead-ads.index.lead-ad', this.activeModel.id);\n      }\n      this.isCreateAdDialog = false;\n    }\n    openDepictionEdit() {\n      if (!this.activeModel.isDeleted) {\n        this.router.transitionTo('instance.campaigns.ad.tiktok-lead-ads.depictions.index.depiction.edit', this.activeModel.id);\n      }\n      this.isCreateDepictionDialog = false;\n    }\n    openCreateDepictionDialog() {\n      this.activeModel = this.store.createRecord('depiction', {\n        adapterOptions: {\n          type: 'tiktok-lead-ads'\n        }\n      });\n      this.isCreateDepictionDialog = true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"activeModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isCreateAdDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isCreateDepictionDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"depictionsMeta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleDrawer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDrawer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openCreateAdDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openCreateAdDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openAdDetail\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openAdDetail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openDepictionEdit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openDepictionEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openCreateDepictionDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openCreateDepictionDialog\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/ad/tiktok-lead-ads/depictions\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object/computed\", \"ember-concurrency\", \"@ember/object\"], function (_exports, _controller, _service, _tracking, _computed, _emberConcurrency, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdTikTokLeadAdsDepictionsController = _exports.default = (_dec = (0, _computed.equal)(`data.length`, 0), _dec2 = (0, _computed.alias)('fetchDepictions.isRunning'), _dec3 = (0, _emberConcurrency.task)(function* () {\n    try {\n      let peekedDepictions = this.store.peekAll('depiction', {\n        adapterOptions: {\n          campaignId: this.modelId,\n          type: 'tiktok-lead-ads'\n        }\n      });\n      let fetchDepictionsTask = null;\n      if (!peekedDepictions.length) {\n        fetchDepictionsTask = this.store.findAll('depiction', {\n          adapterOptions: {\n            campaignId: this.modelId,\n            type: 'tiktok-lead-ads'\n          }\n        });\n      }\n      let tasks = [];\n      tasks.push(fetchDepictionsTask);\n      tasks.push((0, _emberConcurrency.timeout)(400));\n      const [depictions] = yield (0, _emberConcurrency.all)(tasks);\n      this.depictions = depictions || peekedDepictions;\n    } catch (e) {\n      this.uiDialog.showError();\n    }\n  }), _class = class InstanceCampaignsAdTikTokLeadAdsDepictionsController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      /**\n       * whether an error has occured\n       *\n       * @property isError\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isError\", _descriptor7, this);\n      /**\n       * the id of the catalog ads\n       *\n       * @property modelId\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"modelId\", _descriptor8, this);\n      /**\n       * fetched depictions\n       *\n       * @property depictions\n       * @type Array\n       */\n      _initializerDefineProperty(this, \"depictions\", _descriptor9, this);\n      /**\n       * whether the rename dialog is opened\n       *\n       * @property isRenameDialog\n       * @type Boolean\n       */\n      _initializerDefineProperty(this, \"isRenameDialog\", _descriptor10, this);\n      /**\n       * model of selected depiction\n       *\n       * @property selectedDepictionModel\n       * @type {Model}\n       */\n      _initializerDefineProperty(this, \"selectedDepictionModel\", _descriptor11, this);\n      /**\n       * whether the table is empty\n       *\n       * @computed isEmpty\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isEmpty\", _descriptor12, this);\n      /**\n       * Property to know if we are still\n       * downloading data for the tables\n       *\n       * @computed isLoading\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isLoading\", _descriptor13, this);\n      /**\n       * Fetches the depictions from the api\n       *\n       * @function fetchDepictions\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchDepictions\", _descriptor14, this);\n    }\n    /**\n     * Formats the arrays to strings to display them\n     *\n     * @computed formattedDepictions\n     * @type {Object[]}\n     */\n    get formattedDepictions() {\n      var _this$depictions;\n      return (_this$depictions = this.depictions) === null || _this$depictions === void 0 ? void 0 : _this$depictions.filter(depiction => !depiction.isNew).map(depiction => {\n        var _depiction$images;\n        const formattedDepiction = {\n          id: depiction.id,\n          name: depiction.name\n        };\n        if ((depiction === null || depiction === void 0 || (_depiction$images = depiction.images) === null || _depiction$images === void 0 ? void 0 : _depiction$images.length) > 0) {\n          let imageUrl;\n          if (depiction.images[0].thumbnailUrl) {\n            imageUrl = depiction.images[0].thumbnailUrl;\n          } else {\n            imageUrl = depiction.images[0].url;\n          }\n          formattedDepiction.hasImage = true;\n          formattedDepiction.image = imageUrl;\n        }\n        return formattedDepiction;\n      });\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    async onDelete(id) {\n      try {\n        const depictionModel = this.store.peekRecord('depiction', id, {\n          adapterOptions: {\n            campaignId: this.modelId,\n            type: 'tiktok-lead-ads'\n          }\n        });\n        await depictionModel.destroyRecord({\n          adapterOptions: {\n            campaignId: this.modelId,\n            type: 'tiktok-lead-ads'\n          }\n        });\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      } catch (e) {\n        if (e && e.code === 'in_use') {\n          this.uiDialog.showError(this.intl.t('adCampaigns.tiktokLeadAds.depiction.errorMessages.depictionInUse.title'), this.intl.t('adCampaigns.tiktokLeadAds.depiction.errorMessages.depictionInUse.description'));\n        } else {\n          this.uiToast.showToast({\n            title: this.intl.t('toast.unexpectedError'),\n            type: 'error'\n          });\n        }\n      }\n    }\n    delete(id) {\n      this.uiDialog.showConfirm(this.intl.t('components.amc-delete-model.confirm.title'), this.intl.t('components.amc-delete-model.confirm.description', {\n        htmlSafe: true\n      }), () => this.onDelete(id), this.intl.t('global.actions.delete'), false, true);\n    }\n    renameDepiction(id) {\n      this.selectedDepictionModel = this.store.peekRecord('depiction', id, {\n        adapterOptions: {\n          campaignId: this.modelId,\n          type: 'tiktok-lead-ads'\n        }\n      });\n      this.isRenameDialog = true;\n    }\n    openDetail(id) {\n      this.router.transitionTo('instance.campaigns.ad.tiktok-lead-ads.depictions.index.depiction', id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"modelId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"depictions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isRenameDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"selectedDepictionModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isEmpty\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"fetchDepictions\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"delete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"delete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"renameDepiction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"renameDepiction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openDetail\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openDetail\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/object/computed\", \"@glimmer/tracking\", \"@ember/service\", \"ember-concurrency\"], function (_exports, _controller, _object, _computed, _tracking, _service, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdTikTokLeadAdsDepictionsDepictionController = _exports.default = (_dec = (0, _computed.alias)('uiAppSettings.languages.defaultLanguage'), _dec2 = (0, _computed.alias)('uiAppSettings.currentLocale'), _dec3 = (0, _emberConcurrency.task)(function* (locale) {\n    if (locale === this.selectedLanguage) {\n      return;\n    }\n    this.uiAppSettings.setLocale(locale);\n    yield this.model.reload({\n      adapterOptions: this.adapterOptions\n    });\n  }), _class = class InstanceCampaignsAdTikTokLeadAdsDepictionsDepictionController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor6, this);\n      _initializerDefineProperty(this, \"defaultLanguage\", _descriptor7, this);\n      _initializerDefineProperty(this, \"currentLocale\", _descriptor8, this);\n      _initializerDefineProperty(this, \"campaignId\", _descriptor9, this);\n      _initializerDefineProperty(this, \"model\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isRenameDialog\", _descriptor11, this);\n      _initializerDefineProperty(this, \"changeLanguage\", _descriptor12, this);\n    }\n    get adapterOptions() {\n      return {\n        campaignId: this.campaignId,\n        type: 'tiktok-lead-ads'\n      };\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    get textVariantsInfo() {\n      const variants = this.model.variants.length;\n      return this.intl.t('adCampaigns.tiktokLeadAds.depiction.textVariants.value', {\n        variants\n      });\n    }\n    get videoVariantsInfo() {\n      const variants = this.model.videos.length;\n      return this.intl.t('adCampaigns.tiktokLeadAds.depiction.videoVariants.value', {\n        variants\n      });\n    }\n    get selectedLanguage() {\n      if (!this.model.language) {\n        return this.defaultLanguage;\n      }\n      return this.model.language;\n    }\n    async onDelete() {\n      try {\n        await this.model.destroyRecord({\n          adapterOptions: {\n            campaignId: this.campaignId,\n            type: 'tiktok-lead-ads'\n          }\n        });\n        this.back();\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      } catch (e) {\n        if (e && e.code === 'in_use') {\n          this.uiDialog.showError(this.intl.t('adCampaigns.tiktokLeadAds.depiction.errorMessages.depictionInUse.title'), this.intl.t('adCampaigns.tiktokLeadAds.depiction.errorMessages.depictionInUse.description'));\n        } else {\n          this.uiToast.showToast({\n            title: this.intl.t('toast.unexpectedError'),\n            type: 'error'\n          });\n        }\n      }\n    }\n    delete() {\n      this.uiDialog.showConfirm(this.intl.t('components.amc-delete-model.confirm.title'), this.intl.t('components.amc-delete-model.confirm.description', {\n        htmlSafe: true\n      }), () => this.onDelete(), this.intl.t('global.actions.delete'), false, true);\n    }\n    back() {\n      this.router.transitionTo('instance.campaigns.ad.tiktok-lead-ads.depictions');\n    }\n    openEdit() {\n      this.router.transitionTo('instance.campaigns.ad.tiktok-lead-ads.depictions.index.depiction.edit');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"defaultLanguage\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"currentLocale\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isRenameDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"changeLanguage\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"delete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"delete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"back\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"back\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openEdit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openEdit\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction/edit\", [\"exports\", \"@ember/controller\", \"@ember/object/computed\", \"@ember/object\", \"@glimmer/tracking\", \"lodash.clonedeep\", \"@ember/service\", \"additive-mc/validations/advertisement\", \"ember-changeset-validations\", \"ember-changeset\", \"ember-concurrency\"], function (_exports, _controller, _computed, _object, _tracking, _lodash, _service, _advertisement, _emberChangesetValidations, _emberChangeset, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const VARIANT_SETTINGS = {\n    text: ''\n  };\n  const GENERAL_SETTINGS = ['videos', 'postfix', 'language', 'page'];\n  let InstanceCampaignsAdTikTokLeadAdsDepictionsDepictionEditController = _exports.default = (_dec = (0, _computed.alias)('uiAppSettings.languages.contentLanguages'), _dec2 = (0, _computed.alias)('uiAppSettings.languages.defaultLanguage'), _dec3 = (0, _computed.alias)('uiAppSettings.currentLocale'), _dec4 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const adapter = this.store.adapterFor('depiction');\n      const baseUrl = adapter.urlForSingle(this.model.id, 'depiction', {\n        adapterOptions: this.adapterOptions\n      });\n      const url = `${baseUrl}/tiktok-pages`;\n      const response = yield this.authenticatedFetch.fetch(url);\n      if (!response || !response.ok) {\n        throw new Error();\n      }\n      const {\n        pages\n      } = yield response.json();\n      this.tikTokForms = pages;\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec5 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const adapter = this.store.adapterFor('depiction');\n      const baseUrl = adapter.urlForSingle(this.model.id, 'depiction', {\n        adapterOptions: this.adapterOptions\n      });\n      const url = `${baseUrl}/tiktok-form-editor`;\n      const response = yield this.authenticatedFetch.fetch(url);\n      if (!response || !response.ok) {\n        throw new Error();\n      }\n      const tikTokData = yield response.json();\n      this.tikTokSdkData = tikTokData;\n\n      // Initialize TikTok SDK\n      const script = document.createElement('script');\n      const firstScript = document.getElementsByTagName('script')[0];\n      script.async = 1;\n      script.defer = 1;\n      script.crossorigin = 'anonymous';\n      script.src = 'https://sf16-unpkg-va.ibytedtos.com/latest/byted/instant_page_sdk/dist/index.js';\n      firstScript.parentNode.insertBefore(script, firstScript);\n      script.onload = () => {\n        window.InstantPage.init({\n          appId: tikTokData.appId,\n          version: tikTokData.version\n        });\n      };\n      this.fetchTikTokForms.perform();\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec6 = (0, _emberConcurrency.task)(function* (language) {\n    var _depiction$variants, _depiction$variants2;\n    let changesetChanges = null;\n    if (this.changeset) {\n      changesetChanges = this.changeset.get('changes');\n    }\n    const depiction = Object.assign({}, this.model.toJSON());\n    if (language && !depiction.availableLanguages.includes(language)) {\n      depiction.availableLanguages.push(language);\n    }\n    const numberOfVariants = (depiction === null || depiction === void 0 || (_depiction$variants = depiction.variants) === null || _depiction$variants === void 0 ? void 0 : _depiction$variants.length) || 0;\n    if (this.activeVariant > numberOfVariants - 1) {\n      this.activeVariant = 0;\n    }\n    this.numberOfVariants = numberOfVariants;\n    if (!depiction.variants) {\n      this.activeVariant = 0;\n    }\n\n    // Variant specific settings\n    let variantData;\n    if (depiction !== null && depiction !== void 0 && depiction.variants && Array.isArray(depiction.variants)) {\n      variantData = depiction === null || depiction === void 0 ? void 0 : depiction.variants[this.activeVariant];\n    } else {\n      variantData = (0, _lodash.default)(VARIANT_SETTINGS);\n\n      // Initialize variants array in model\n      this.model.variants = [];\n      this.model.variants.push(variantData);\n    }\n\n    // Depiction general settings\n    const generalSettings = {\n      postfix: depiction.postfix || '',\n      videos: depiction.videos || [],\n      page: depiction.page || {},\n      language: language || depiction.language || 'de',\n      availableLanguages: depiction.availableLanguages || []\n    };\n    const data = Object.assign({}, variantData, generalSettings);\n    let validation = (0, _advertisement.tiktokLeadAdsDepictionValidation)(this.intl);\n    this.changeset = yield new _emberChangeset.default(data, (0, _emberChangesetValidations.default)(validation), validation);\n    if (changesetChanges) {\n      changesetChanges.forEach(change => {\n        this.changeset.set(change.key, change.value);\n      });\n    }\n    this.depiction = data;\n    this.numberOfVariants = (depiction === null || depiction === void 0 || (_depiction$variants2 = depiction.variants) === null || _depiction$variants2 === void 0 ? void 0 : _depiction$variants2.length) || 1;\n  }), _class = class InstanceCampaignsAdTikTokLeadAdsDepictionsDepictionEditController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"multimedia\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor8, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor9, this);\n      _initializerDefineProperty(this, \"availableLanguages\", _descriptor10, this);\n      _initializerDefineProperty(this, \"defaultLanguage\", _descriptor11, this);\n      _initializerDefineProperty(this, \"currentLocale\", _descriptor12, this);\n      _initializerDefineProperty(this, \"campaignId\", _descriptor13, this);\n      _initializerDefineProperty(this, \"changeset\", _descriptor14, this);\n      _initializerDefineProperty(this, \"model\", _descriptor15, this);\n      _initializerDefineProperty(this, \"isDiscardChangesDialog\", _descriptor16, this);\n      _initializerDefineProperty(this, \"isTouched\", _descriptor17, this);\n      _initializerDefineProperty(this, \"depiction\", _descriptor18, this);\n      _initializerDefineProperty(this, \"numberOfVariants\", _descriptor19, this);\n      _initializerDefineProperty(this, \"activeVariant\", _descriptor20, this);\n      _initializerDefineProperty(this, \"tikTokSdkData\", _descriptor21, this);\n      _initializerDefineProperty(this, \"tikTokForms\", _descriptor22, this);\n      _initializerDefineProperty(this, \"isLoading\", _descriptor23, this);\n      _initializerDefineProperty(this, \"fetchTikTokForms\", _descriptor24, this);\n      _initializerDefineProperty(this, \"setupTikTokSdk\", _descriptor25, this);\n      _initializerDefineProperty(this, \"setupChangeset\", _descriptor26, this);\n    }\n    get adapterOptions() {\n      return {\n        campaignId: this.campaignId,\n        type: 'tiktok-lead-ads'\n      };\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    async changeLanguage(locale) {\n      if (locale === this.currentLocale) {\n        return;\n      }\n      this.isLoading = true;\n      if (this.changeset.get('isDirty')) {\n        await this.changeset.validate();\n        await this.save(true);\n        this.changeset.rollback();\n      }\n      this.uiAppSettings.setLocale(locale);\n\n      // reset variants because they are not reloaded when changing the language\n      this.model.set('variants', null);\n      await this.model.reload({\n        adapterOptions: this.adapterOptions\n      });\n      await this.setupChangeset.perform();\n      this.isLoading = false;\n    }\n    async addLanguage(locale) {\n      this.isLoading = true;\n      const previousPage = this.changeset.get('page');\n      const previousPostfix = this.changeset.get('postfix');\n      if (this.changeset.get('isDirty')) {\n        await this.changeset.validate();\n        await this.save(true);\n      }\n      this.changeset.rollback();\n      this.uiAppSettings.setLocale(locale);\n      await this.model.reload({\n        adapterOptions: this.adapterOptions\n      });\n      await this.setupChangeset.perform(locale);\n      this.changeset.set('page', previousPage);\n      this.changeset.set('postfix', previousPostfix);\n      this.isLoading = false;\n    }\n    async removeLanguage(locale) {\n      try {\n        const adapter = this.store.adapterFor('depiction');\n        const baseUrl = adapter.urlForDeleteRecord(this.model.id, 'depiction', {\n          adapterOptions: this.adapterOptions\n        });\n        const url = `${baseUrl}/${locale}`;\n        const response = await this.authenticatedFetch.fetch(url, {\n          method: 'DELETE'\n        });\n        if (!response || !response.ok) {\n          // include the error message when throwing the error\n          const error = (await response) && response.json();\n          throw new Error(error && error.message);\n        }\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      } catch (e) {\n        if (e && e.message) {\n          this.uiDialog.showError(this.intl.t(`global.errors.${e.message}.title`), this.intl.t(`global.errors.${e.message}.message`));\n        } else {\n          this.uiToast.showToast({\n            title: this.intl.t('toast.unexpectedError'),\n            type: 'error'\n          });\n        }\n      }\n    }\n    async save(hideToast) {\n      try {\n        this.isTouched = true;\n        await this.changeset.validate();\n        if (this.changeset.get('isInvalid')) {\n          return;\n        }\n        this.changeset.save();\n        Object.keys(VARIANT_SETTINGS).forEach(key => {\n          this.model.variants[this.activeVariant][key] = this.depiction[key];\n        });\n        GENERAL_SETTINGS.forEach(key => {\n          this.model[key] = this.depiction[key];\n        });\n        await this.model.save({\n          adapterOptions: this.adapterOptions\n        });\n        this.setupChangeset.perform();\n        if (!hideToast) {\n          this.uiToast.showToast({\n            title: this.intl.t('toast.success'),\n            type: 'success'\n          });\n        }\n      } catch (error) {\n        this.model.rollbackAttributes();\n        this.setupChangeset.perform();\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }\n    onBack() {\n      this.changeset.validate();\n      let isInvalid = this.changeset.get('isInvalid');\n      let dirty = this.changeset.get('isDirty');\n      if (dirty || isInvalid) {\n        this.isDiscardChangesDialog = true;\n        return;\n      }\n      this.back();\n    }\n    back() {\n      this.router.transitionTo('instance.campaigns.ad.tiktok-lead-ads.depictions.index.depiction');\n    }\n    confirmDiscard() {\n      this.changeset.rollback();\n\n      // Destroy record if no video is defined\n      if (!this.model.videos || this.model.videos.length === 0) {\n        this.model.destroyRecord({\n          adapterOptions: this.adapterOptions\n        });\n        this.isDiscardChangesDialog = false;\n        this.router.transitionTo('instance.campaigns.ad.tiktok-lead-ads.depictions.index');\n        return;\n      }\n\n      // Remove current variant if it is empty\n      if (this.model.variants && this.model.variants.length > 1) {\n        let isEmpty = true;\n        const variant = this.model.variants[this.model.variants.length - 1];\n        Object.keys(variant).forEach(topicKey => {\n          Object.keys(variant[topicKey]).forEach(settingKey => {\n            var _variant$topicKey$set;\n            if (((_variant$topicKey$set = variant[topicKey][settingKey]) === null || _variant$topicKey$set === void 0 ? void 0 : _variant$topicKey$set.length) > 0) {\n              isEmpty = false;\n            }\n          });\n        });\n        if (isEmpty) {\n          this.model.variants.splice(this.model.variants.length - 1, 1);\n        }\n      }\n      this.isDiscardChangesDialog = false;\n      this.back();\n    }\n    openMultimedia() {\n      this.multimedia.setSelectionOptions({\n        type: 'video',\n        warningMessage: this.intl.t('global.warnings.multimedia.video')\n      });\n      this.router.transitionTo(`instance.campaigns.ad.tiktok-lead-ads.depictions.index.depiction.edit.additive-multimedia-engine`);\n    }\n    closeMultimedia() {\n      this.router.transitionTo(`instance.campaigns.ad.tiktok-lead-ads.depictions.index.depiction.edit`);\n    }\n    onAddMedium(_, resources) {\n      const currentMedia = this.changeset.get('videos') || [];\n      const media = currentMedia.concat(resources);\n      const sortedMedia = media.map((resource, index) => {\n        return Object.assign({\n          position: index + 1\n        }, _objectSpread({}, resource));\n      });\n      this.changeset.set('videos', sortedMedia);\n    }\n    onResourceRemove(key, _ref) {\n      let {\n        mediumId\n      } = _ref;\n      const media = this.changeset.get(key).filter(resource => resource.mediumId !== mediumId);\n      this.changeset.set(key, [...media]);\n    }\n    onResourceEdit(key, changedResource, resourceArrayIndex) {\n      const media = this.changeset.get(key);\n      media.replace(resourceArrayIndex, 1, [changedResource]);\n      this.changeset.set(key, media);\n    }\n    async onAddVariant() {\n      await this.changeset.validate();\n      if (this.changeset.get('isInvalid')) {\n        this.isTouched = true;\n        return;\n      }\n      if (this.changeset.get('isDirty')) {\n        await this.changeset.validate();\n        await this.save(true);\n      }\n      this.model.variants.push((0, _lodash.default)(VARIANT_SETTINGS));\n      this.numberOfVariants++;\n      this.activeVariant = this.numberOfVariants - 1;\n      await this.setupChangeset.perform();\n    }\n    onRemoveVariant(variant) {\n      this.uiDialog.showConfirm(this.intl.t('adCampaigns.facebookContentAds.depiction.deleteDialog.title'), this.intl.t('adCampaigns.facebookContentAds.depiction.deleteDialog.description', {\n        variant: variant + 1\n      }), () => this.removeVariant(variant), this.intl.t('global.actions.delete'), false, true);\n    }\n    async removeVariant(variant) {\n      this.model.variants.splice(variant, 1);\n      await this.model.save({\n        adapterOptions: this.adapterOptions\n      });\n      if (variant !== 0) {\n        this.activeVariant = variant - 1;\n      }\n      this.numberOfVariants = this.numberOfVariants - 1;\n      await this.setupChangeset.perform();\n    }\n    async onSelectVariant(variant) {\n      this.isLoading = true;\n      await this.changeset.validate();\n      this.isTouched = true;\n      if (this.changeset.get('isInvalid')) {\n        this.isLoading = false;\n        return;\n      }\n      await this.save(true);\n      this.activeVariant = variant;\n      await this.setupChangeset.perform();\n      this.isLoading = false;\n    }\n    createNewForm() {\n      window.InstantPage.start({\n        accountId: this.tikTokSdkData.accountId,\n        accessToken: this.tikTokSdkData.accessToken,\n        display: this.tikTokSdkData.display,\n        actionType: this.tikTokSdkData.actionType,\n        language: this.currentLocale,\n        businessType: this.tikTokSdkData.businessType,\n        appId: this.tikTokSdkData.appId,\n        siteType: this.tikTokSdkData.siteType,\n        externalAction: this.tikTokSdkData.externalAction\n      }, () => {\n        // Re-Fetch pages after creating new page\n        this.fetchTikTokForms.perform();\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"multimedia\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"availableLanguages\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"defaultLanguage\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"currentLocale\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChangesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"depiction\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"numberOfVariants\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 0;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"activeVariant\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 0;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"tikTokSdkData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"tikTokForms\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"fetchTikTokForms\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"setupTikTokSdk\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"setupChangeset\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"changeLanguage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeLanguage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addLanguage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addLanguage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeLanguage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeLanguage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onBack\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onBack\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"back\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"back\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"confirmDiscard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"confirmDiscard\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAddMedium\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAddMedium\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onResourceRemove\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onResourceRemove\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onResourceEdit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onResourceEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAddVariant\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAddVariant\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onRemoveVariant\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onRemoveVariant\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeVariant\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeVariant\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectVariant\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectVariant\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createNewForm\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createNewForm\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/ad/tiktok-lead-ads/index\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _controller, _object, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdTikTokLeadAdsIndexController = _exports.default = (_class = class InstanceCampaignsAdTikTokLeadAdsIndexController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor4, this);\n      /**\n       * the model that is currently renamed\n       *\n       * @property activeModel\n       * @type {Model}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"activeModel\", _descriptor5, this);\n      /**\n       * whether the rename dialog is open\n       *\n       * @property isRenameAdDialog\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isRenameAdDialog\", _descriptor6, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    onArchive(item) {\n      if (!item.isPaused && item.isPublic) {\n        return;\n      }\n      this.uiDialog.showConfirm(this.intl.t('adCampaigns.tiktokLeadAds.archive.title'), this.intl.t('adCampaigns.tiktokLeadAds.archive.description'), () => this.archive(item), this.intl.t('global.actions.archive'), false, true);\n    }\n    async archive(item) {\n      try {\n        const advertisement = await item.archive({\n          campaignId: this.model.campaign.id,\n          type: 'tiktok-lead-ads'\n        });\n        this.store.pushPayload('advertisement', advertisement);\n      } catch (e) {\n        this.uiDialog.showError(null, e.message);\n      }\n    }\n    openRenameDialog(model) {\n      if (!model.isPaused && model.isPublic) {\n        return;\n      }\n      this.activeModel = model;\n      this.isRenameAdDialog = true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"activeModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isRenameAdDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onArchive\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onArchive\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"archive\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"archive\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openRenameDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openRenameDialog\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/ad/tiktok-lead-ads/index/lead-ad\", [\"exports\", \"@ember/controller\", \"@ember/object/computed\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-concurrency\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-animated\", \"additive-mc/validations/advertisement\"], function (_exports, _controller, _computed, _object, _service, _tracking, _emberConcurrency, _emberChangeset, _emberChangesetValidations, _emberAnimated, _advertisement) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdTikTokLeadAdsLeadAdController = _exports.default = (_dec = (0, _computed.not)('model.tiktokLeadAd.isPaused'), _dec2 = (0, _object.computed)('model.tiktokLeadAd.optimizationEvent', 'meta.optimizationEvents.[]'), _dec3 = (0, _object.computed)('model.tiktokLeadAd.targetAudience', 'meta.targetAudiences.[]'), _dec4 = (0, _object.computed)('model.tiktokLeadAd.{budget.amount,endDate,startDate,budgetSpend.value}', 'targetAudience'), _dec5 = (0, _emberConcurrency.task)(function* () {\n    if (this.model.tiktokLeadAd.isExpired || this.model.tiktokLeadAd.isArchived) {\n      this.pendingDepictionUpdates = null;\n      this.pendingDepictionValidations = null;\n      this.showPendingDepictionValidations = false;\n      this.showUpdateNotification = false;\n      return;\n    }\n    const adapter = this.store.adapterFor('advertisement');\n    const url = adapter.urlForFindAll('advertisement', {\n      adapterOptions: this.adapterOptions\n    });\n    const endpoint = `${url}/${this.model.tiktokLeadAd.id}/pendingDepictionUpdates`;\n    const response = yield this.authenticatedFetch.fetch(endpoint);\n    const {\n      pendingDepictionUpdates,\n      validations\n    } = yield response.json();\n    this.pendingDepictionUpdates = pendingDepictionUpdates;\n    this.pendingDepictionValidations = validations;\n    this.showPendingDepictionValidations = (validations === null || validations === void 0 ? void 0 : validations.length) > 0;\n    this.showUpdateNotification = (pendingDepictionUpdates === null || pendingDepictionUpdates === void 0 ? void 0 : pendingDepictionUpdates.length) > 0 && (validations === null || validations === void 0 ? void 0 : validations.length) === 0;\n  }), _dec6 = (0, _emberConcurrency.task)(function* () {\n    try {\n      let peekedDepictions = [];\n      let depictions = null;\n      if (!peekedDepictions.length) {\n        depictions = yield this.store.findAll('depiction', {\n          adapterOptions: this.adapterOptions\n        });\n      }\n      this.depictions = depictions || peekedDepictions;\n    } catch (e) {\n      this.uiDialog.showError();\n    }\n  }), _dec7 = (0, _emberConcurrency.task)(function* () {\n    if (this.model.tiktokLeadAd.isExpired || this.model.tiktokLeadAd.isArchived) {\n      this.pendingTargetGroupUpdates = null;\n      this.showTargetGroupUpdateNotification = false;\n      return;\n    }\n    const adapter = this.store.adapterFor('advertisement');\n    const url = adapter.urlForFindAll('advertisement', {\n      adapterOptions: this.adapterOptions\n    });\n    const endpoint = `${url}/${this.model.tiktokLeadAd.id}/pendingTargetGroupUpdates`;\n    const response = yield this.authenticatedFetch.fetch(endpoint);\n    const {\n      pendingTargetGroupUpdates\n    } = yield response.json();\n    this.pendingTargetGroupUpdates = pendingTargetGroupUpdates;\n    this.showTargetGroupUpdateNotification = (pendingTargetGroupUpdates === null || pendingTargetGroupUpdates === void 0 ? void 0 : pendingTargetGroupUpdates.length) > 0 ? true : false;\n  }), _dec8 = (0, _emberConcurrency.task)(function* () {\n    if (!this.model.tiktokLeadAd.isDraft) {\n      return;\n    }\n    const response = yield this.model.tiktokLeadAd.validate(this.adapterOptions);\n    if (response.ok) {\n      this.isValid = true;\n      return;\n    }\n    const {\n      validations\n    } = yield response.json();\n    this.isValid = (validations === null || validations === void 0 ? void 0 : validations.length) > 0 ? false : true;\n    this.validations = validations;\n  }), _class = class InstanceCampaignsAdTikTokLeadAdsLeadAdController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isNotPaused\", _descriptor9, this);\n      _initializerDefineProperty(this, \"campaignId\", _descriptor10, this);\n      _initializerDefineProperty(this, \"model\", _descriptor11, this);\n      _initializerDefineProperty(this, \"campaignGoal\", _descriptor12, this);\n      _initializerDefineProperty(this, \"validations\", _descriptor13, this);\n      _initializerDefineProperty(this, \"isValid\", _descriptor14, this);\n      _initializerDefineProperty(this, \"isLoading\", _descriptor15, this);\n      _initializerDefineProperty(this, \"isRenameDialog\", _descriptor16, this);\n      _initializerDefineProperty(this, \"pendingDepictionUpdates\", _descriptor17, this);\n      _initializerDefineProperty(this, \"pendingTargetGroupUpdates\", _descriptor18, this);\n      _initializerDefineProperty(this, \"showUpdateNotification\", _descriptor19, this);\n      _initializerDefineProperty(this, \"showTargetGroupUpdateNotification\", _descriptor20, this);\n      _initializerDefineProperty(this, \"showPendingDepictionValidations\", _descriptor21, this);\n      _initializerDefineProperty(this, \"isUpdateDialog\", _descriptor22, this);\n      _initializerDefineProperty(this, \"isUpdateTargetGroupDialog\", _descriptor23, this);\n      _initializerDefineProperty(this, \"isPublishDialog\", _descriptor24, this);\n      _defineProperty(this, \"_animatedTransition\", _emberAnimated.fade);\n      _initializerDefineProperty(this, \"getDepictionUpdates\", _descriptor25, this);\n      _initializerDefineProperty(this, \"fetchDepictions\", _descriptor26, this);\n      _initializerDefineProperty(this, \"getTargetGroupUpdates\", _descriptor27, this);\n      _initializerDefineProperty(this, \"validate\", _descriptor28, this);\n    }\n    get isActionsDisabled() {\n      var _this$model;\n      return this.isNotPaused && ((_this$model = this.model) === null || _this$model === void 0 || (_this$model = _this$model.tiktokLeadAd) === null || _this$model === void 0 ? void 0 : _this$model.isPublic);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    get showNotification() {\n      return this.model.tiktokLeadAd.isDraft && !this.isValid && !this.validate.isRunning;\n    }\n    get validationProperties() {\n      return ['identity', 'targetGroup', 'endDate', 'budget.type', 'budget.amount', 'depictions'];\n    }\n    get adapterOptions() {\n      return {\n        campaignId: this.campaignId,\n        type: 'tiktok-lead-ads'\n      };\n    }\n    get selectedDepictions() {\n      var _this$model$tiktokLea;\n      if (!((_this$model$tiktokLea = this.model.tiktokLeadAd) !== null && _this$model$tiktokLea !== void 0 && _this$model$tiktokLea.depictions)) {\n        return [];\n      }\n      const selectedDepictionIds = this.model.tiktokLeadAd.depictions;\n\n      // Get selected depictions by their IDs\n      return selectedDepictionIds.map(depictionId => {\n        return this.model.depictions.find(depiction => depiction.id == depictionId).toJSON({\n          includeId: true\n        });\n      });\n    }\n    get identity() {\n      var _this$model$tiktokLea2, _this$meta;\n      if (!((_this$model$tiktokLea2 = this.model.tiktokLeadAd) !== null && _this$model$tiktokLea2 !== void 0 && _this$model$tiktokLea2.identity) || !((_this$meta = this.meta) !== null && _this$meta !== void 0 && _this$meta.identities)) {\n        return null;\n      }\n      const identityId = this.model.tiktokLeadAd.identity;\n      const {\n        identities\n      } = this.meta;\n      const identity = identities.find(item => item.id === identityId);\n      return identity.name || null;\n    }\n    get targetGroup() {\n      var _this$model$tiktokLea3, _this$meta2;\n      if (!((_this$model$tiktokLea3 = this.model.tiktokLeadAd) !== null && _this$model$tiktokLea3 !== void 0 && _this$model$tiktokLea3.targetGroup) || !((_this$meta2 = this.meta) !== null && _this$meta2 !== void 0 && _this$meta2.targetGroups)) {\n        return null;\n      }\n      const targetGroupId = this.model.tiktokLeadAd.targetGroup;\n      const {\n        targetGroups\n      } = this.meta;\n      const targetGroup = targetGroups.find(item => item.id === targetGroupId);\n      return targetGroup.name || null;\n    }\n    get targetLanguages() {\n      var _this$model$tiktokLea4, _this$meta3;\n      if (!((_this$model$tiktokLea4 = this.model.tiktokLeadAd) !== null && _this$model$tiktokLea4 !== void 0 && _this$model$tiktokLea4.targetLanguages) || !((_this$meta3 = this.meta) !== null && _this$meta3 !== void 0 && _this$meta3.availableLanguages)) {\n        return null;\n      }\n      let languages = [];\n      this.model.tiktokLeadAd.targetLanguages.map(language => {\n        const foundLanguage = this.meta.availableLanguages.find(availableLangauge => availableLangauge.value === language);\n        if (foundLanguage) {\n          languages.push(foundLanguage.label);\n        }\n      });\n      return languages.join(', ');\n    }\n    get publishChangeset() {\n      const validation = (0, _advertisement.tikTokLeadAdPublishValidation)(this.intl);\n      return new _emberChangeset.default(this.model.tiktokLeadAd, (0, _emberChangesetValidations.default)(validation), validation);\n    }\n    get campaignOptimizationEvent() {\n      var _this$meta4;\n      if (!this.model.tiktokLeadAd.optimizationEvent) return null;\n      const campaignOptimizationEvent = (_this$meta4 = this.meta) === null || _this$meta4 === void 0 || (_this$meta4 = _this$meta4.optimizationEvents) === null || _this$meta4 === void 0 ? void 0 : _this$meta4.find(campaignOptimizationEvent => campaignOptimizationEvent.value === this.model.tiktokLeadAd.optimizationEvent);\n      return campaignOptimizationEvent === null || campaignOptimizationEvent === void 0 ? void 0 : campaignOptimizationEvent.label;\n    }\n    get targetAudience() {\n      var _this$meta5;\n      if (!this.model.tiktokLeadAd.targetAudience) return null;\n      const targetAudience = (_this$meta5 = this.meta) === null || _this$meta5 === void 0 || (_this$meta5 = _this$meta5.targetAudiences) === null || _this$meta5 === void 0 ? void 0 : _this$meta5.find(targetAudience => targetAudience.value === this.model.tiktokLeadAd.targetAudience);\n      return targetAudience === null || targetAudience === void 0 ? void 0 : targetAudience.label;\n    }\n    get showContentInfo() {\n      const {\n        budget,\n        endDate,\n        startDate,\n        budgetSpend\n      } = this.model.tiktokLeadAd;\n      return (budget === null || budget === void 0 ? void 0 : budget.amount) || endDate || startDate || (budgetSpend === null || budgetSpend === void 0 ? void 0 : budgetSpend.value) || this.targetAudience;\n    }\n    onDidInsert() {\n      this.validate.perform();\n      this.getDepictionUpdates.perform();\n      this.getTargetGroupUpdates.perform();\n    }\n    async modelAction(publishAction) {\n      let toast;\n      try {\n        this.isLoading = true;\n        toast = this.uiToast.showToast({\n          title: this.intl.t(`adCampaigns.tiktokLeadAds.publish.loading.${publishAction}`),\n          description: this.intl.t('adCampaigns.tiktokLeadAds.publish.loading.text'),\n          type: 'loading',\n          duration: -1\n        });\n        const response = await this.model.tiktokLeadAd[publishAction](this.adapterOptions);\n        if (!(response !== null && response !== void 0 && response.ok)) {\n          const {\n            message\n          } = await response.json();\n          throw new Error(message);\n        }\n        this.uiToast.destroyToast(toast);\n        const advertisement = await response.json();\n        const serializer = this.store.serializerFor('advertisement');\n        serializer.normalizeResponse(null, null, advertisement);\n        this.store.pushPayload(advertisement);\n        this.isPublishDialog = false;\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        this.getDepictionUpdates.perform();\n        this.getTargetGroupUpdates.perform();\n      } catch (e) {\n        this.uiToast.destroyToast(toast);\n        this.uiDialog.showError(null, e.message);\n      } finally {\n        this.isLoading = false;\n      }\n    }\n    onPublish() {\n      const publishAction = this.model.tiktokLeadAd.isDraft ? 'publish' : 'unpublish';\n      this.uiDialog.showConfirm(this.intl.t(`adCampaigns.tiktokLeadAds.${publishAction}.dialog.title`), this.intl.t(`adCampaigns.tiktokLeadAds.${publishAction}.dialog.description`), () => this.modelAction(publishAction), this.intl.t(`global.actions.${publishAction}`), false);\n    }\n    onArchive() {\n      if (this.isReadOnly) {\n        return;\n      }\n      this.uiDialog.showConfirm(this.intl.t('adCampaigns.tiktokLeadAds.archive.title'), this.intl.t('adCampaigns.tiktokLeadAds.archive.description'), () => this.archive(), this.intl.t('global.actions.archive'), false, true);\n    }\n    async archive() {\n      try {\n        const advertisement = await this.model.tiktokLeadAd.archive(this.adapterOptions);\n        const serializer = this.store.serializerFor('advertisement');\n        serializer.normalizeResponse(null, null, advertisement);\n        this.store.pushPayload(advertisement);\n        this.getDepictionUpdates.perform();\n        this.getTargetGroupUpdates.perform();\n      } catch (e) {\n        this.uiDialog.showError(null, e.message);\n      }\n    }\n    openRenameDialog() {\n      if (this.isReadOnly) {\n        return;\n      }\n      this.isRenameDialog = true;\n    }\n    onUpdate() {\n      // Check if there are any depiction updates left\n      this.getDepictionUpdates.perform();\n      this.getTargetGroupUpdates.perform();\n      this.isUpdateDialog = false;\n      this.isUpdateTargetGroupDialog = false;\n    }\n    back() {\n      this.router.transitionTo('instance.campaigns.ad.tiktok-lead-ads');\n    }\n    openEdit() {\n      this.router.transitionTo('instance.campaigns.ad.tiktok-lead-ads.index.lead-ad.edit');\n    }\n    copyToClipboard(text) {\n      var _navigator;\n      (_navigator = navigator) === null || _navigator === void 0 || (_navigator = _navigator.clipboard) === null || _navigator === void 0 || _navigator.writeText(text);\n      this.uiToast.showToast({\n        type: 'success',\n        title: this.intl.t('toast.copyUtmParameterSuccess')\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isNotPaused\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"campaignGoal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"validations\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"isValid\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return true;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"isRenameDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"pendingDepictionUpdates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"pendingTargetGroupUpdates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"showUpdateNotification\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"showTargetGroupUpdateNotification\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"showPendingDepictionValidations\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"isUpdateDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"isUpdateTargetGroupDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"isPublishDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"campaignOptimizationEvent\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"campaignOptimizationEvent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"targetAudience\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"targetAudience\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showContentInfo\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"showContentInfo\"), _class.prototype), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"getDepictionUpdates\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"fetchDepictions\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"getTargetGroupUpdates\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"validate\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onDidInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDidInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"modelAction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"modelAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPublish\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onPublish\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onArchive\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onArchive\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"archive\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"archive\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openRenameDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openRenameDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onUpdate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"back\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"back\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openEdit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"copyToClipboard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"copyToClipboard\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/ad/tiktok-lead-ads/index/lead-ad/edit\", [\"exports\", \"@ember/controller\", \"@ember/object/computed\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"date-fns\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-animated\", \"@additive-apps/utils/validators/numeral\", \"additive-mc/validations/advertisement\"], function (_exports, _controller, _computed, _object, _tracking, _service, _dateFns, _emberChangeset, _emberChangesetValidations, _emberAnimated, _numeral, _advertisement) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdTikTokLeadAdsIndexLeadAdEditController = _exports.default = (_dec = (0, _computed.not)('model.tiktokLeadAd.isPaused'), _dec2 = (0, _computed.alias)('uiAppSettings.languages.contentLanguages'), _dec3 = (0, _computed.alias)('uiAppSettings.languages.defaultLanguage'), _dec4 = (0, _computed.alias)('uiAppSettings.currentLocale'), _dec5 = (0, _object.computed)('changeset.budget.amount', 'changeset.timeLimitation.days'), _dec6 = (0, _object.computed)('changeset.budget.type', 'changeset.{startDate,endDate}'), _class = class InstanceCampaignsAdTikTokLeadAdsIndexLeadAdEditController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isNotPaused\", _descriptor7, this);\n      _initializerDefineProperty(this, \"availableLanguages\", _descriptor8, this);\n      _initializerDefineProperty(this, \"defaultLanguage\", _descriptor9, this);\n      _initializerDefineProperty(this, \"currentLocale\", _descriptor10, this);\n      _initializerDefineProperty(this, \"meta\", _descriptor11, this);\n      _initializerDefineProperty(this, \"changeset\", _descriptor12, this);\n      _initializerDefineProperty(this, \"model\", _descriptor13, this);\n      _initializerDefineProperty(this, \"isTouched\", _descriptor14, this);\n      _initializerDefineProperty(this, \"isDiscardChangesDialog\", _descriptor15, this);\n      _initializerDefineProperty(this, \"isAddDepictionDialog\", _descriptor16, this);\n      _initializerDefineProperty(this, \"campaignId\", _descriptor17, this);\n      _initializerDefineProperty(this, \"depictions\", _descriptor18, this);\n      _initializerDefineProperty(this, \"hasDepictionError\", _descriptor19, this);\n      _initializerDefineProperty(this, \"tiktokAdResource\", _descriptor20, this);\n      _defineProperty(this, \"_animatedTransition\", _emberAnimated.fade);\n      /**\n       * the earliest date that can be selected\n       *\n       * @property minDate\n       * @type {Date}\n       */\n      _defineProperty(this, \"minDate\", new Date());\n    }\n    get adapterOptions() {\n      return {\n        campaignId: this.campaignId,\n        type: 'tiktok-lead-ads'\n      };\n    }\n    get isReadOnly() {\n      var _this$model;\n      return this.currentUser.isReadOnly || this.isNotPaused && ((_this$model = this.model) === null || _this$model === void 0 || (_this$model = _this$model.tiktokLeadAd) === null || _this$model === void 0 ? void 0 : _this$model.isPublic);\n    }\n    get formattedDepictions() {\n      const depictionIds = this.changeset.get('depictions');\n      const language = this.changeset.get('language');\n      if (!this.depictions || !depictionIds || (depictionIds === null || depictionIds === void 0 ? void 0 : depictionIds.length) === 0) {\n        return [];\n      }\n\n      // Get selected depictions by their IDs\n      const depictions = depictionIds.map(depictionId => {\n        return this.depictions.find(depiction => depiction.id == depictionId).toJSON({\n          includeId: true\n        });\n      });\n      return depictions === null || depictions === void 0 ? void 0 : depictions.filter(depiction => !depiction.isNew).map(depiction => {\n        var _depiction$images;\n        const formattedDepiction = {\n          id: depiction.id,\n          name: depiction.name\n        };\n        if (!(depiction !== null && depiction !== void 0 && depiction.availableLanguages.includes(language))) {\n          formattedDepiction.hasError = true;\n        }\n        if ((depiction === null || depiction === void 0 || (_depiction$images = depiction.images) === null || _depiction$images === void 0 ? void 0 : _depiction$images.length) > 0) {\n          let imageUrl;\n          if (depiction.images[0].thumbnailUrl) {\n            imageUrl = depiction.images[0].thumbnailUrl;\n          } else {\n            imageUrl = depiction.images[0].url;\n          }\n          formattedDepiction.hasImage = true;\n          formattedDepiction.image = imageUrl;\n        }\n        return formattedDepiction;\n      });\n    }\n\n    /**\n     * the earliest date that can be selected for the end date\n     *\n     * @computed minEndDate\n     * @type {Date}\n     */\n    get minEndDate() {\n      var _this$changeset;\n      return ((_this$changeset = this.changeset) === null || _this$changeset === void 0 ? void 0 : _this$changeset.get('startDate')) > this.minDate ? this.changeset.get('startDate') : this.minDate;\n    }\n\n    /**\n     * the selectable days\n     *\n     * @computed selectableDays\n     * @type {Date}\n     */\n    get selectableDays() {\n      return [{\n        value: 'monday',\n        name: this.intl.t('adCampaigns.tiktokLeadAds.edit.days.monday')\n      }, {\n        value: 'tuesday',\n        name: this.intl.t('adCampaigns.tiktokLeadAds.edit.days.tuesday')\n      }, {\n        value: 'wednesday',\n        name: this.intl.t('adCampaigns.tiktokLeadAds.edit.days.wednesday')\n      }, {\n        value: 'thursday',\n        name: this.intl.t('adCampaigns.tiktokLeadAds.edit.days.thursday')\n      }, {\n        value: 'friday',\n        name: this.intl.t('adCampaigns.tiktokLeadAds.edit.days.friday')\n      }, {\n        value: 'saturday',\n        name: this.intl.t('adCampaigns.tiktokLeadAds.edit.days.saturday')\n      }, {\n        value: 'sunday',\n        name: this.intl.t('adCampaigns.tiktokLeadAds.edit.days.sunday')\n      }];\n    }\n\n    /**\n     * Computed the selected days\n     *\n     * @computed selectedDays\n     * @type {Array}\n     */\n    get selectedDays() {\n      if (!this.changeset) {\n        return null;\n      }\n      const days = this.changeset.get('timeLimitation.days');\n      if (days) {\n        return this.selectableDays.filter(day => days.indexOf(day.value) >= 0);\n      }\n      return null;\n    }\n\n    /**\n     * Computed budget per week\n     *\n     * @computed budgetPerWeek\n     * @type {Number}\n     */\n    // eslint-disable-next-line\n    get budgetPerWeek() {\n      if (!this.changeset) {\n        return 0;\n      }\n      const budgetAmount = this.changeset.get('budget.amount');\n      const daysLimit = this.changeset.get('timeLimitation.days');\n      if (!daysLimit || daysLimit.length === 0) {\n        return budgetAmount * 7;\n      }\n      return budgetAmount * daysLimit.length;\n    }\n\n    /**\n     * Compute the min budget amount\n     *\n     * @computed minBudget\n     * @type {Number}\n     */\n    // eslint-disable-next-line\n    get minBudget() {\n      if (!this.changeset || !this.changeset.get('budget.type')) {\n        return null;\n      }\n      const budgetType = this.changeset.get('budget.type');\n      const MIN_DAILY_BUDGET = 20;\n      if (budgetType === 'daily') {\n        return MIN_DAILY_BUDGET;\n      }\n      const startDate = new Date(this.changeset.get('startDate'));\n      const endDate = new Date(this.changeset.get('endDate'));\n      const days = (0, _dateFns.differenceInDays)(endDate, startDate) + 1;\n      const minLifeTimeBudget = days * MIN_DAILY_BUDGET;\n      return minLifeTimeBudget;\n    }\n    validateDepictions() {\n      const depictionIds = this.changeset.get('depictions');\n      const language = this.changeset.get('language');\n      let hasError = false;\n      if (!this.depictions || !depictionIds || (depictionIds === null || depictionIds === void 0 ? void 0 : depictionIds.length) === 0) {\n        this.hasDepictionError = false;\n        return;\n      }\n      depictionIds.map(depictionId => {\n        const selectedDepiction = this.depictions.find(depiction => depiction.id == depictionId).toJSON({\n          includeId: true\n        });\n\n        // Check if depiction exists in selected language\n        if (!(selectedDepiction !== null && selectedDepiction !== void 0 && selectedDepiction.availableLanguages.includes(language))) {\n          hasError = true;\n          return;\n        }\n      });\n      this.hasDepictionError = hasError;\n    }\n    setupChangeset() {\n      var _tiktokAdResource$bud, _this$changeset2;\n      let changesetChanges = null;\n      if (this.changeset) {\n        changesetChanges = this.changeset.get('changes');\n      }\n      const tiktokAdResource = Object.assign({}, this.model.tiktokLeadAd.toJSON());\n      tiktokAdResource.startDate = new Date(tiktokAdResource.startDate);\n      tiktokAdResource.endDate = new Date(tiktokAdResource.endDate);\n      const validation = (0, _advertisement.tikTokAdValidation)(this.intl);\n      let currentBudgetType = tiktokAdResource === null || tiktokAdResource === void 0 || (_tiktokAdResource$bud = tiktokAdResource.budget) === null || _tiktokAdResource$bud === void 0 ? void 0 : _tiktokAdResource$bud.type;\n      if ((_this$changeset2 = this.changeset) !== null && _this$changeset2 !== void 0 && _this$changeset2.get('budget.type')) {\n        currentBudgetType = this.changeset.get('budget.type');\n      }\n      if (currentBudgetType === 'lifetime') {\n        var _this$changeset3, _this$changeset4;\n        let startDate = tiktokAdResource === null || tiktokAdResource === void 0 ? void 0 : tiktokAdResource.startDate;\n        let endDate = tiktokAdResource === null || tiktokAdResource === void 0 ? void 0 : tiktokAdResource.endDate;\n        if ((_this$changeset3 = this.changeset) !== null && _this$changeset3 !== void 0 && _this$changeset3.get('startDate')) {\n          startDate = this.changeset.get('startDate');\n        }\n        if ((_this$changeset4 = this.changeset) !== null && _this$changeset4 !== void 0 && _this$changeset4.get('endDate')) {\n          endDate = this.changeset.get('endDate');\n        }\n        const days = (0, _dateFns.differenceInDays)(endDate, startDate) + 1;\n        const minBudget = days * 20;\n        validation['budget.amount'] = (0, _numeral.validateNumeral)({\n          gte: minBudget,\n          allowBlank: false,\n          message: this.intl.t('errors.greaterOrEqualThen', {\n            value: minBudget\n          })\n        });\n      } else if (currentBudgetType === 'daily') {\n        validation['budget.amount'] = (0, _numeral.validateNumeral)({\n          gte: 20,\n          allowBlank: false,\n          message: this.intl.t('errors.greaterOrEqualThen', {\n            value: 20\n          })\n        });\n      }\n      this.changeset = new _emberChangeset.default(tiktokAdResource, (0, _emberChangesetValidations.default)(validation), validation);\n      if (changesetChanges) {\n        changesetChanges.forEach(change => {\n          this.changeset.set(change.key, change.value);\n        });\n      }\n      if (!this.changeset.get('language')) {\n        this.changeset.set('language', this.defaultLanguage || 'de');\n      }\n      this.tiktokAdResource = tiktokAdResource;\n      this.uiAppSettings.setLocale(this.changeset.get('language'));\n    }\n    async fetchDepictions() {\n      try {\n        let peekedDepictions = [];\n        let depictions = null;\n        if (!peekedDepictions.length) {\n          depictions = await this.store.findAll('depiction', {\n            adapterOptions: this.adapterOptions\n          });\n        }\n        this.depictions = depictions || peekedDepictions;\n      } catch (e) {\n        this.uiDialog.showError();\n      }\n    }\n    selectProperty(property, _ref) {\n      let {\n        value,\n        id\n      } = _ref;\n      if (!value) {\n        this.changeset.set(property, id);\n      } else {\n        this.changeset.set(property, value);\n      }\n    }\n    onChangeBudgetType(_ref2) {\n      let {\n        value\n      } = _ref2;\n      const newBudget = {\n        amount: this.changeset.get('budget.amount') || 0,\n        type: value\n      };\n      this.changeset.set('budget', newBudget);\n\n      // create new changeset to update the validation\n      this.setupChangeset();\n      this.changeset.validate('budget.amount');\n      this.changeset.validate('startDate');\n      this.changeset.validate('endDate');\n    }\n    onChangeBudget(_ref3) {\n      let {\n        value\n      } = _ref3;\n      const newBudget = {\n        amount: value,\n        type: this.changeset.get('budget.type') || null\n      };\n      this.changeset.set('budget', newBudget);\n\n      // create new changeset to update the validation\n      this.setupChangeset();\n      this.changeset.validate('budget.type');\n      this.changeset.validate('startDate');\n      this.changeset.validate('endDate');\n    }\n    onChangeDateTime(propertyName, date) {\n      this.changeset.set(propertyName, date);\n      this.changeset.execute();\n\n      // create new changeset to update the validation\n      this.setupChangeset();\n      this.changeset.validate('startDate');\n      this.changeset.validate('endDate');\n      this.changeset.validate('budget.amount');\n    }\n    onChangeTime(key, date) {\n      if (!(date instanceof Date)) {\n        /* Update changeset */\n        this.changeset.set(key, date);\n        return;\n      }\n      let [hours, minutes] = [date.getHours(), date.getMinutes()];\n      /* ensure it uses 2 digits (1 -> 01) */\n      hours = ('0' + hours).slice(-2);\n      minutes = ('0' + minutes).slice(-2);\n\n      /* Update changeset */\n      this.changeset.set(key, `${hours}:${minutes}`);\n    }\n    toggleTimeLimited() {\n      const currentValue = this.changeset.get('timeLimited');\n      this.changeset.set('timeLimited', !currentValue);\n\n      // Reset values\n      this.changeset.set('timeLimitation.days', []);\n      this.changeset.set('timeLimitation.startTime', null);\n      this.changeset.execute();\n      this.changeset.set('timeLimitation.endTime', null);\n      this.changeset.execute();\n    }\n    onDaysChange(option, checked) {\n      let options = (this.changeset.get('timeLimitation.days') || []).slice(0);\n      const checkedValue = option.value;\n      if (checked) {\n        // Only push if not already selected\n        if (!options.find(value => value === checkedValue)) {\n          options.push(option.value);\n        }\n      } else {\n        // Remove unchecked option\n        options = options.filter(value => value !== checkedValue);\n      }\n      this.changeset.set('timeLimitation.days', options);\n      this.changeset.execute();\n    }\n    back() {\n      this.router.transitionTo('instance.campaigns.ad.tiktok-lead-ads.index.lead-ad');\n    }\n    onBack() {\n      let dirty = this.changeset.get('isDirty');\n      if (dirty) {\n        this.isDiscardChangesDialog = true;\n        return;\n      }\n      this.back();\n    }\n    discardChanges() {\n      this.isDiscardChangesDialog = false;\n      this.changeset.rollback();\n      this.back();\n    }\n    addDepictions(selectedDepictionIds) {\n      this.changeset.set('depictions', selectedDepictionIds);\n    }\n    removeDepiction(id) {\n      const depictions = this.changeset.get('depictions').filter(depictionId => depictionId != id);\n      this.changeset.set('depictions', depictions);\n      this.validateDepictions();\n    }\n    async changeLanguage(locale) {\n      if (locale === this.currentLocale) {\n        return;\n      }\n      this.uiAppSettings.setLocale(locale);\n      this.changeset.set('language', locale);\n      await this.fetchDepictions();\n      this.validateDepictions();\n    }\n    async save() {\n      try {\n        this.isTouched = true;\n        await this.changeset.validate();\n        this.validateDepictions();\n        if (this.changeset.get('isInvalid') || this.hasDepictionError) {\n          return;\n        }\n        this.changeset.execute();\n        Object.keys(this.tiktokAdResource).forEach(key => {\n          this.model.tiktokLeadAd[key] = this.tiktokAdResource[key];\n        });\n        await this.model.tiktokLeadAd.save({\n          adapterOptions: this.adapterOptions\n        });\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        this.back();\n      } catch (error) {\n        this.model.tiktokLeadAd.rollbackAttributes();\n        this.setupChangeset();\n        try {\n          const errorDetail = JSON.parse(error.message);\n          this.uiToast.showToast({\n            title: errorDetail.message,\n            type: 'error'\n          });\n        } catch (e) {\n          this.uiToast.showToast({\n            title: this.intl.t('toast.unexpectedError'),\n            type: 'error'\n          });\n        }\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isNotPaused\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"availableLanguages\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"defaultLanguage\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"currentLocale\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChangesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"isAddDepictionDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"depictions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"hasDepictionError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"tiktokAdResource\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"budgetPerWeek\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"budgetPerWeek\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"minBudget\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"minBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"fetchDepictions\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchDepictions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectProperty\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectProperty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeBudgetType\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeBudgetType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeBudget\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeDateTime\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeDateTime\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeTime\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeTime\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleTimeLimited\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleTimeLimited\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDaysChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDaysChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"back\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"back\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onBack\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onBack\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addDepictions\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addDepictions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeDepiction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeDepiction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeLanguage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeLanguage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/email\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/object/computed\"], function (_exports, _controller, _service, _tracking, _object, _computed) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let IntstanceCampaignsEmailController = _exports.default = (_dec = (0, _computed.not)('currentUser.isAdditiveUser'), _dec2 = (0, _computed.not)('currentUser.isPartnerUser'), _dec3 = (0, _object.computed)('router.currentRouteName'), _class = class IntstanceCampaignsEmailController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isCreateDialog\", _descriptor4, this);\n      _initializerDefineProperty(this, \"_isNotAdditiveUser\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_isNotPartnerUser\", _descriptor6, this);\n    }\n    get _isReadOnly() {\n      if (!this.uiAppSettings.managed) {\n        return false;\n      }\n      if (this.uiAppSettings.managedByPartner) {\n        return this._isNotPartnerUser && this._isNotAdditiveUser;\n      }\n      return this._isNotAdditiveUser;\n    }\n    get _currentItem() {\n      return this.router.currentRoute.attributes;\n    }\n    get activeDetail() {\n      const currentRouteName = this.router.currentRouteName || '';\n      return currentRouteName.indexOf('email.detail') > -1 ? currentRouteName : '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isCreateDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_isNotAdditiveUser\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"_isNotPartnerUser\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"activeDetail\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"activeDetail\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/email/detail\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@ember/object/computed\", \"@glimmer/tracking\", \"ember-concurrency\", \"@additive-apps/utils/utils/errors\"], function (_exports, _controller, _object, _service, _computed, _tracking, _emberConcurrency, _errors) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsEmailDetailController = _exports.default = (_dec = (0, _computed.alias)('uiAppSettings.languages.contentLanguages'), _dec2 = (0, _computed.alias)('fetchEmailMeta.isRunning'), _dec3 = (0, _computed.not)('currentUser.isManager'), _dec4 = (0, _computed.not)('currentUser.isAdditiveUser'), _dec5 = (0, _computed.not)('currentUser.isPartnerUser'), _dec6 = (0, _computed.or)('isLoading', 'isError', '_isLoading'), _dec7 = (0, _computed.alias)('uiAppSettings.currentLocale'), _dec8 = (0, _object.computed)('router.currentRouteName'), _dec9 = (0, _object.computed)('model.orderedConfigurations'), _dec10 = (0, _emberConcurrency.task)(function* () {\n    this.isError = false;\n    try {\n      yield this.model.fetchMeta.perform(this.currentLocale);\n    } catch (error) {\n      this.isError = true;\n    }\n  }), _class = class InstanceCampaignsEmailDetailController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor8, this);\n      /**\n       * the email campaign\n       *\n       * @argument model\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor9, this);\n      /**\n       * the changeset\n       *\n       * @argument _changeset\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"changeset\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isPublishDialog\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isEditorOpened\", _descriptor12, this);\n      /**\n       * whether an error occured\n       *\n       * @property isError\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isError\", _descriptor13, this);\n      /**\n       * whether the modal to send a test email is open\n       *\n       * @property _isTestEmailDialogOpen\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isTestEmailDialogOpen\", _descriptor14, this);\n      _initializerDefineProperty(this, \"_isLoading\", _descriptor15, this);\n      /**\n       * Current selected language\n       *\n       * @property _currentLanguage\n       * @type {String}\n       * @private\n       */\n      _defineProperty(this, \"_currentLanguage\", 'de');\n      _initializerDefineProperty(this, \"_contentLanguages\", _descriptor16, this);\n      _initializerDefineProperty(this, \"isLoading\", _descriptor17, this);\n      _initializerDefineProperty(this, \"_isMember\", _descriptor18, this);\n      _initializerDefineProperty(this, \"_isNotAdditiveUser\", _descriptor19, this);\n      _initializerDefineProperty(this, \"_isNotPartnerUser\", _descriptor20, this);\n      _initializerDefineProperty(this, \"hideContent\", _descriptor21, this);\n      _initializerDefineProperty(this, \"currentLocale\", _descriptor22, this);\n      /**\n       * Fetches the meta\n       * @function fetchEmailMeta\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchEmailMeta\", _descriptor23, this);\n    }\n    /**\n     * returns true if the active route is the vouchers list route\n     *\n     * @computed isEmailsRoute\n     * @return {Boolean} whether the vouchers route is active or not\n     */\n    get isEmailsRoute() {\n      return this.router.isActive('instance.campaigns.email.detail.index');\n    }\n    get _isReadOnly() {\n      const isMember = !this.currentUser.isManager;\n      return isMember || this._isManaged;\n    }\n    get isActive() {\n      if (this.model.active) {\n        return this.model.active;\n      }\n      return false;\n    }\n    get _configurationKeys() {\n      const configurations = this.model && this.model.orderedConfigurations;\n      return configurations && Object.keys(configurations) || [];\n    }\n    get _isManaged() {\n      if (!this.uiAppSettings.managed) {\n        return false;\n      }\n      if (this.uiAppSettings.managedByPartner) {\n        return this._isNotPartnerUser && this._isNotAdditiveUser;\n      }\n      return this._isNotAdditiveUser;\n    }\n\n    /**\n     * temporary check to use new view and content wizard only for dedicated campaigns\n     */\n    get _isNewView() {\n      var _this$model;\n      return (_this$model = this.model) === null || _this$model === void 0 ? void 0 : _this$model.isNewStructure;\n    }\n    back() {\n      this.transitionToRoute('instance.campaigns.email');\n    }\n    transitionToCreate() {\n      if (this.router.isActive('instance.campaigns.email.detail.index')) {\n        this.transitionToRoute('instance.campaigns.email.detail.index.create');\n      } else if (this.router.isActive('instance.campaigns.email.detail.email-series')) {\n        this.transitionToRoute('instance.campaigns.email.detail.email-series.create');\n      }\n    }\n    async onConfigurationSave() {\n      try {\n        await this.model.save({\n          adapterOptions: {\n            useNewApi: false\n          }\n        });\n      } catch (e) {\n        this.model.rollbackAttributes();\n        if (e) {\n          const errorDetail = (0, _errors.getAdapterError)(e);\n          if (errorDetail.custom) {\n            this.uiDialog.showAlert(this.intl.t('campaigns.configurations.errors.custom.title'), errorDetail && errorDetail.custom);\n            return;\n          }\n        }\n        this.uiDialog.showError();\n      }\n    }\n    async openPublishDialog(isEditorOpened) {\n      this.isEditorOpened = false;\n      if (!this.uiTransactionManager.hasTransactionId) {\n        try {\n          await this.uiTransactionManager.beginTransaction({\n            type: this.model.type,\n            id: this.model.id\n          });\n        } catch (error) {\n          this.uiDialog.showError();\n          return;\n        }\n      }\n      if (typeof isEditorOpened == 'boolean' && isEditorOpened) {\n        this.isEditorOpened = true;\n      }\n      this.isPublishDialog = true;\n    }\n    async rollbackModel() {\n      var _this$model2;\n      // Rollback email-series and associated emails\n      const emailsSeriesCopy = ((_this$model2 = this.model) === null || _this$model2 === void 0 || (_this$model2 = _this$model2.emailSeries) === null || _this$model2 === void 0 ? void 0 : _this$model2.toArray()) || [];\n      emailsSeriesCopy.forEach(emailSeriesModel => {\n        var _emailSeriesModel$ema;\n        // Create a shallow copy of the emails array to avoid mutation issues\n        const emailsCopy = (emailSeriesModel === null || emailSeriesModel === void 0 || (_emailSeriesModel$ema = emailSeriesModel.emails) === null || _emailSeriesModel$ema === void 0 ? void 0 : _emailSeriesModel$ema.toArray()) || [];\n        emailsCopy.forEach(emailModel => {\n          emailModel === null || emailModel === void 0 || emailModel.rollbackAttributes();\n        });\n        emailSeriesModel === null || emailSeriesModel === void 0 || emailSeriesModel.rollbackAttributes();\n      });\n\n      // Rollback voucher\n      if (this.model.contribution) {\n        this.model.contribution.rollbackAttributes();\n      }\n\n      // Rollback landing-page\n      if (this.model.landingPage) {\n        this.model.landingPage.rollbackAttributes();\n      }\n      if (this.model.language !== this.uiAppSettings.currentLocale) {\n        this.uiAppSettings.setLocale(this.model.language);\n      }\n      this.model.rollbackAttributes();\n      await this.model.reload({\n        adapterOptions: {\n          useNewApi: true\n        }\n      });\n    }\n    async closePublishDialog(isSaved, isNew) {\n      if (isSaved) {\n        if (!isNew) {\n          await this.rollbackModel();\n        }\n        this.isPublishDialog = false;\n        return;\n      }\n      if (this.isEditorOpened) {\n        this.router.transitionTo('instance.campaigns.email.detail.index.edit', this.model.id);\n      } else {\n        await this.rollbackModel();\n        await this.uiTransactionManager.discardTransaction();\n      }\n      this.isPublishDialog = false;\n    }\n    goToVoucherDetail(id) {\n      this.router.transitionTo('instance.campaigns.email.detail.index.voucher', id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isPublishDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isEditorOpened\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"_isTestEmailDialogOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"_isLoading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"_contentLanguages\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"_isMember\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"_isNotAdditiveUser\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"_isNotPartnerUser\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"hideContent\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"currentLocale\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"isEmailsRoute\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"isEmailsRoute\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_configurationKeys\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"_configurationKeys\"), _class.prototype), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"fetchEmailMeta\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"back\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"back\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transitionToCreate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"transitionToCreate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onConfigurationSave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onConfigurationSave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openPublishDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openPublishDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"rollbackModel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"rollbackModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closePublishDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closePublishDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goToVoucherDetail\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goToVoucherDetail\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/email/detail/email-series\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object/computed\"], function (_exports, _controller, _service, _computed) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsEmailDetailEmailSeriesController = _exports.default = (_dec = (0, _computed.not)('currentUser.isManager'), _dec2 = (0, _computed.not)('currentUser.isAdditiveUser'), _dec3 = (0, _computed.not)('currentUser.isPartnerUser'), _dec4 = (0, _computed.or)('_isMember', '_isManaged'), _class = class InstanceCampaignsEmailDetailEmailSeriesController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_isMember\", _descriptor3, this);\n      _initializerDefineProperty(this, \"_isNotAdditiveUser\", _descriptor4, this);\n      _initializerDefineProperty(this, \"_isNotPartnerUser\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_isReadOnly\", _descriptor6, this);\n    }\n    get _isManaged() {\n      if (!this.uiAppSettings.managed) {\n        return false;\n      }\n      if (this.uiAppSettings.managedByPartner) {\n        return this._isNotPartnerUser && this._isNotAdditiveUser;\n      }\n      return this._isNotAdditiveUser;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_isMember\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_isNotAdditiveUser\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_isNotPartnerUser\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"_isReadOnly\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/email/detail/email-series/email-series\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsEmailDetailEmailSeriesEmailSeriesController = _exports.default = (_class = class InstanceCampaignsEmailDetailEmailSeriesEmailSeriesController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/email/detail/index\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@additive-apps/auth/utils/roles-map\"], function (_exports, _controller, _service, _rolesMap) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsEmailDetailIndexController = _exports.default = (_class = class InstanceCampaignsEmailDetailIndexController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n    }\n    get _isReadOnly() {\n      var _this$currentUser$use;\n      if ((0, _rolesMap.hasAccess)(_rolesMap.ROLE_MANAGER, (_this$currentUser$use = this.currentUser.user) === null || _this$currentUser$use === void 0 ? void 0 : _this$currentUser$use.role)) {\n        return false;\n      }\n      return true;\n    }\n    get hasNewDetailView() {\n      var _this$model;\n      return (_this$model = this.model) === null || _this$model === void 0 ? void 0 : _this$model.isNewStructure;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/email/detail/index/edit\", [\"exports\", \"additive-mc/config/environment\", \"@ember/controller\", \"@ember/runloop\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/object/internals\", \"@ember/string\", \"ember-concurrency\", \"additive-mc/utils/constants\"], function (_exports, _environment, _controller, _runloop, _tracking, _object, _service, _internals, _string, _emberConcurrency, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsEmailDetailEditController = _exports.default = (_dec = (0, _emberConcurrency.task)(function* (language) {\n    var _this$_surveys;\n    if ((_this$_surveys = this._surveys) !== null && _this$_surveys !== void 0 && _this$_surveys[language]) {\n      return;\n    }\n    try {\n      const response = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.organizationId}/surveys`, {\n        headers: {\n          'Accept-Language': language\n        }\n      });\n      if (!response.ok) throw new Error();\n      const {\n        surveys\n      } = yield response.json();\n      const surveysByLanguage = this._surveys || {};\n      if (!surveysByLanguage[language]) {\n        surveysByLanguage[language] = [];\n      }\n      surveysByLanguage[language] = surveys.map(survey => {\n        return {\n          value: `{#LANDING-PAGE:SURVEY:${language}:${survey.id}#}`,\n          label: survey.name\n        };\n      });\n      this._surveys = surveysByLanguage;\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec2 = (0, _emberConcurrency.task)(function* (language) {\n    var _this$_referralCampai;\n    if ((_this$_referralCampai = this._referralCampaigns) !== null && _this$_referralCampai !== void 0 && _this$_referralCampai[language]) {\n      return;\n    }\n    try {\n      const response = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHost}/${this.organizationId}/organisation-campaigns/referral?active=1&per_page=5000`, {\n        headers: {\n          'Accept-Language': language\n        }\n      });\n      if (!response.ok) throw new Error();\n      const {\n        referralCampaigns\n      } = yield response.json();\n      const referralCampaignsByLanguage = this._referralCampaigns || {};\n      if (!referralCampaignsByLanguage[language]) {\n        referralCampaignsByLanguage[language] = [];\n      }\n      referralCampaignsByLanguage[language] = referralCampaigns.map(campaign => {\n        return {\n          value: `{#MA-CAMPAIGN:REFERRAL:${language}:${campaign.id}#}`,\n          label: campaign.title\n        };\n      });\n      this._referralCampaigns = referralCampaignsByLanguage;\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec3 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const response = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.organizationId}/corporate-design`);\n      if (!response.ok) throw new Error();\n      const {\n        corporateDesign\n      } = yield response.json();\n      this._corporateDesignColors = corporateDesign.colors;\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec4 = (0, _emberConcurrency.task)(function* (email, option) {\n    const {\n      ctaLink,\n      ctaText,\n      ctaType\n    } = email;\n    const previousCtaType = this.ctaTypes.find(cta => cta.value === email.ctaType);\n    yield email.transactionChange('ctaType', option, previousCtaType);\n    if (option.value === 'survey') {\n      yield this.fetchSurveys.perform(email.language);\n    }\n    if (option.value === 'referral') {\n      yield this.fetchReferralCampaigns.perform(email.language);\n    }\n    if (ctaText) {\n      yield email.transactionChange('ctaText', null);\n    }\n    if (ctaLink) {\n      if (ctaType === 'referral' || ctaType === 'survey') {\n        yield this.onChangeCtaLink(email, null, ctaType);\n      } else {\n        yield email.transactionChange('ctaLink', null);\n      }\n    }\n  }).drop(), _dec5 = (0, _emberConcurrency.task)(function* (model, type, selectedLanguage) {\n    const language = selectedLanguage && typeof selectedLanguage === 'string' ? selectedLanguage : model.language;\n    if (type === 'voucher') {\n      this.isVoucherPreviewDialog = true;\n      this.selectedVoucherModel = model;\n      this.selectedVoucherPreviewLanguage = language;\n    } else if (type === 'email') {\n      this.isEmailPreviewDialog = true;\n      this.selectedEmailModel = model;\n      this.selectedEmailPreviewLanguage = language;\n    }\n    try {\n      // Fetch and display content for preview dialog\n      const baseUrl = `${_environment.default.APP.apiBaseHost}/${this.organizationId}/content-wizard/transactions`;\n      const url = `${baseUrl}/${model.uiTransactionManager.transactionId}/${model.transactionUrl}/preview`;\n      const response = yield this.authenticatedFetch.fetch(url, {\n        headers: {\n          'Accept-Language': language\n        }\n      });\n      if (!response || !response.ok) {\n        throw new Error();\n      }\n      const html = yield response.text();\n      const iframe = document.getElementById(`${type}-preview-iframe`);\n      const iframeDocument = iframe.contentDocument;\n      iframeDocument.open();\n      iframeDocument.write((0, _string.htmlSafe)(html));\n      iframeDocument.close();\n    } catch (error) {\n      if (type === 'voucher') {\n        this.isVoucherPreviewDialog = false;\n      } else if (type === 'email') {\n        this.isEmailPreviewDialog = false;\n      }\n    }\n  }), _class = class InstanceCampaignsEmailDetailEditController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor8, this);\n      _initializerDefineProperty(this, \"store\", _descriptor9, this);\n      _initializerDefineProperty(this, \"multimedia\", _descriptor10, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor11, this);\n      _defineProperty(this, \"model\", null);\n      _initializerDefineProperty(this, \"wizard\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isTestEmailDialogOpen\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectedModel\", _descriptor14, this);\n      _initializerDefineProperty(this, \"selectedVoucherModel\", _descriptor15, this);\n      _initializerDefineProperty(this, \"selectedEmailModel\", _descriptor16, this);\n      _initializerDefineProperty(this, \"isDiscardChangesDialog\", _descriptor17, this);\n      _initializerDefineProperty(this, \"isEmailSeriesCreateDialog\", _descriptor18, this);\n      _initializerDefineProperty(this, \"isVoucherPreviewDialog\", _descriptor19, this);\n      _initializerDefineProperty(this, \"isEmailPreviewDialog\", _descriptor20, this);\n      _initializerDefineProperty(this, \"selectedEmailPreviewLanguage\", _descriptor21, this);\n      _initializerDefineProperty(this, \"selectedVoucherPreviewLanguage\", _descriptor22, this);\n      _initializerDefineProperty(this, \"isEmailSeriesOffsetError\", _descriptor23, this);\n      _initializerDefineProperty(this, \"isBulkAction\", _descriptor24, this);\n      _initializerDefineProperty(this, \"initialStep\", _descriptor25, this);\n      _initializerDefineProperty(this, \"_surveys\", _descriptor26, this);\n      _initializerDefineProperty(this, \"_referralCampaigns\", _descriptor27, this);\n      _initializerDefineProperty(this, \"_isLoading\", _descriptor28, this);\n      _initializerDefineProperty(this, \"_corporateDesignColors\", _descriptor29, this);\n      _initializerDefineProperty(this, \"_contributionValue\", _descriptor30, this);\n      _initializerDefineProperty(this, \"_contributionCustomType\", _descriptor31, this);\n      _initializerDefineProperty(this, \"fetchSurveys\", _descriptor32, this);\n      _initializerDefineProperty(this, \"fetchReferralCampaigns\", _descriptor33, this);\n      _initializerDefineProperty(this, \"fetchCorporateDesign\", _descriptor34, this);\n      _initializerDefineProperty(this, \"onChangeEmailCtaType\", _descriptor35, this);\n      _initializerDefineProperty(this, \"openPreviewDialog\", _descriptor36, this);\n    }\n    get availableLanguages() {\n      return this.uiAppSettings.languages.contentLanguages;\n    }\n    get defaultLanguage() {\n      return this.uiAppSettings.languages.defaultLanguage;\n    }\n    get currentLanguage() {\n      return this.uiAppSettings.currentLocale;\n    }\n    get organizationId() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id;\n    }\n    get campaignId() {\n      return this.model.id;\n    }\n    get ctaTypes() {\n      var _meta$this$currentLan;\n      const {\n        meta\n      } = this.model;\n      return (meta === null || meta === void 0 || (_meta$this$currentLan = meta[this.currentLanguage]) === null || _meta$this$currentLan === void 0 ? void 0 : _meta$this$currentLan.ctaTypes) || [];\n    }\n    get hasVoucherStep() {\n      if (!_constants.EMAIL_CAMPAIGN_TYPES[this.model.code]) {\n        return false;\n      }\n      const {\n        steps\n      } = _constants.EMAIL_CAMPAIGN_TYPES[this.model.code];\n      return steps.includes('voucher');\n    }\n    get hasLandingPageStep() {\n      if (!_constants.EMAIL_CAMPAIGN_TYPES[this.model.code]) {\n        return false;\n      }\n      const {\n        steps\n      } = _constants.EMAIL_CAMPAIGN_TYPES[this.model.code];\n      return steps.includes('landingpage');\n    }\n    get hasConfigurationStep() {\n      if (this.model.fetchMeta.isRunning || !_constants.EMAIL_CAMPAIGN_TYPES[this.model.code]) {\n        return false;\n      }\n      const {\n        steps\n      } = _constants.EMAIL_CAMPAIGN_TYPES[this.model.code];\n      return steps.includes('configuration') && this.configurationItems.length > 0;\n    }\n    get hasTriggerStep() {\n      if (this.model.fetchMeta.isRunning || !_constants.EMAIL_CAMPAIGN_TYPES[this.model.code]) {\n        return false;\n      }\n      const {\n        steps\n      } = _constants.EMAIL_CAMPAIGN_TYPES[this.model.code];\n      return steps.includes('trigger') && this.triggerSettings.length > 0;\n    }\n    get hasEmails() {\n      var _this$model;\n      const emailSeries = (_this$model = this.model) === null || _this$model === void 0 ? void 0 : _this$model.emailSeries;\n      if (!emailSeries || emailSeries.length === 0) {\n        return false;\n      }\n      const emailSeriesWithEmails = emailSeries.filter(serie => serie.emails.length > 0);\n      return emailSeriesWithEmails.length > 0;\n    }\n    get emailsStepState() {\n      var _this$model2;\n      const emailSeries = (_this$model2 = this.model) === null || _this$model2 === void 0 ? void 0 : _this$model2.emailSeries;\n      if (!emailSeries) {\n        return 'disabled';\n      }\n\n      // No email-series is created\n      if (emailSeries.length === 0) {\n        return 'disabled';\n      }\n      const inactiveEmailSeries = emailSeries.filter(serie => serie.state === 'inactive');\n      if (inactiveEmailSeries.length === emailSeries.length) {\n        // All email-series are inactive\n        return 'error';\n      }\n      if (inactiveEmailSeries.length > 0) {\n        // Some email-series are inactive\n        return 'warning';\n      }\n      return 'success';\n    }\n    get contributionStepState() {\n      if (!this.model.contribution) {\n        return 'disabled';\n      }\n      if (!this.model.contribution.active) {\n        return 'error';\n      }\n      return 'success';\n    }\n    get allowedPlaceholders() {\n      return [{\n        label: 'Call-To-Action',\n        value: 'CTA'\n      }];\n    }\n    get triggerSettings() {\n      var _this$model3, _this$model$meta;\n      if (!((_this$model3 = this.model) !== null && _this$model3 !== void 0 && _this$model3.meta)) {\n        return [];\n      }\n      const key = Object.keys(this.model.meta).sort()[0];\n      if (((_this$model$meta = this.model.meta) === null || _this$model$meta === void 0 || (_this$model$meta = _this$model$meta[key]) === null || _this$model$meta === void 0 || (_this$model$meta = _this$model$meta.configurations) === null || _this$model$meta === void 0 ? void 0 : _this$model$meta.length) <= 0) {\n        return [];\n      }\n      const triggerSettingKeys = ['time_before_arrival', 'time_since_departure', 'time_since_inquiry', 'first_mailing_interval', 'delivery_interval_to_birthday', 'time_since_voucher'];\n      const configurationMeta = this.model.meta[key].configurations.filter(config => triggerSettingKeys.includes(config.key));\n      if (configurationMeta.length <= 0) {\n        return [];\n      }\n      configurationMeta.forEach(configuration => {\n        var _this$model4, _this$model5;\n        if (!((_this$model4 = this.model) !== null && _this$model4 !== void 0 && _this$model4.configurations) || ((_this$model5 = this.model) === null || _this$model5 === void 0 || (_this$model5 = _this$model5.configurations) === null || _this$model5 === void 0 ? void 0 : _this$model5.length) <= 0) {\n          return;\n        }\n        const item = this.model.configurations.find(config => config.key === configuration.key);\n        configuration.value = (item === null || item === void 0 ? void 0 : item.value) || null;\n      });\n      return configurationMeta;\n    }\n    get configurationItems() {\n      var _this$model6, _this$model7;\n      if (!((_this$model6 = this.model) !== null && _this$model6 !== void 0 && _this$model6.meta)) {\n        return [];\n      }\n      const key = Object.keys(this.model.meta).sort()[0];\n      if (((_this$model7 = this.model) === null || _this$model7 === void 0 || (_this$model7 = _this$model7.meta) === null || _this$model7 === void 0 || (_this$model7 = _this$model7[key]) === null || _this$model7 === void 0 || (_this$model7 = _this$model7.configurations) === null || _this$model7 === void 0 ? void 0 : _this$model7.length) <= 0) {\n        return [];\n      }\n      const triggerSettingKeys = ['time_before_arrival', 'time_since_departure', 'time_since_inquiry', 'first_mailing_interval', 'delivery_interval_to_birthday', 'time_since_voucher'];\n      const requiredConfigurationItems = ['consecutive_years_present', 'consideration_interval', 'max_avg_prebooking_interval', 'mailing_interval', 'booking_channels', 'contact_until', 'min_stays_consideration_interval', 'min_stays_count', 'voucher_validity_interval_after_birthday'];\n      const configurationMeta = this.model.meta[key].configurations.filter(config => !triggerSettingKeys.includes(config.key));\n      if (configurationMeta.length <= 0) {\n        return [];\n      }\n      configurationMeta.forEach(configuration => {\n        var _this$model8, _this$model9;\n        if (!((_this$model8 = this.model) !== null && _this$model8 !== void 0 && _this$model8.configurations) || ((_this$model9 = this.model) === null || _this$model9 === void 0 || (_this$model9 = _this$model9.configurations) === null || _this$model9 === void 0 ? void 0 : _this$model9.length) <= 0) {\n          return;\n        }\n        const item = this.model.configurations.find(config => config.key === configuration.key);\n        configuration.value = (item === null || item === void 0 ? void 0 : item.value) || null;\n        configuration.required = false;\n        if (requiredConfigurationItems.includes(configuration.key)) {\n          configuration.required = true;\n        }\n      });\n      return configurationMeta;\n    }\n    get emailSeries() {\n      if (this.model.emailSeries.length <= 1) {\n        return this.model.emailSeries;\n      }\n      const sorted = this.model.emailSeries.toArray().sort((a, b) => a.offsetInDays - b.offsetInDays);\n      return sorted;\n    }\n    get hideSaveButton() {\n      var _this$model10;\n      const publishedLanguages = (_this$model10 = this.model) === null || _this$model10 === void 0 ? void 0 : _this$model10.publishedLanguages;\n      if (!publishedLanguages) {\n        return false;\n      }\n      return publishedLanguages.length > 0;\n    }\n    get hideSaveAndPublishButton() {\n      var _this$model11, _this$model12, _this$model13, _this$model14;\n      if (((_this$model11 = this.model) === null || _this$model11 === void 0 || (_this$model11 = _this$model11.availableLanguages) === null || _this$model11 === void 0 ? void 0 : _this$model11.length) > 0 || ((_this$model12 = this.model) === null || _this$model12 === void 0 || (_this$model12 = _this$model12.publishedLanguages) === null || _this$model12 === void 0 ? void 0 : _this$model12.length) > 0) {\n        return false;\n      }\n      if ((_this$model13 = this.model) !== null && _this$model13 !== void 0 && _this$model13.contribution) {\n        return false;\n      }\n      const emails = (_this$model14 = this.model) === null || _this$model14 === void 0 ? void 0 : _this$model14.emailSeries.filter(serie => {\n        var _serie$emails;\n        return ((_serie$emails = serie.emails) === null || _serie$emails === void 0 ? void 0 : _serie$emails.length) > 0;\n      });\n      if (emails.length > 0) {\n        return false;\n      }\n      return true;\n    }\n    openMultimedia(model) {\n      this.selectedModel = model;\n      this.multimedia.setSelectionOptions({\n        maxCount: 1,\n        type: 'image',\n        warningMessage: this.intl.t('global.warnings.multimedia.image')\n      });\n      this.router.transitionTo(`instance.campaigns.email.detail.index.edit.additive-multimedia-engine`);\n    }\n    closeMultimedia() {\n      this.multimedia.resetSelectionOptions();\n      this.router.transitionTo(`instance.campaigns.email.detail.index.edit`);\n    }\n    addMedium(_, _ref) {\n      var _this$selectedModel;\n      let [resource] = _ref;\n      (_this$selectedModel = this.selectedModel) === null || _this$selectedModel === void 0 || _this$selectedModel.transactionChange('image', resource);\n    }\n    async onChangeCtaLink(email, option, type) {\n      const ctaType = type || email.ctaType;\n      let previousOption;\n      if (ctaType === 'referral') {\n        var _this$_referralCampai2;\n        previousOption = (_this$_referralCampai2 = this._referralCampaigns) === null || _this$_referralCampai2 === void 0 ? void 0 : _this$_referralCampai2[email.language].find(referral => referral.value === email.ctaLink);\n      } else {\n        var _this$_surveys2;\n        previousOption = (_this$_surveys2 = this._surveys) === null || _this$_surveys2 === void 0 ? void 0 : _this$_surveys2[email.language].find(survey => survey.value === email.ctaLink);\n      }\n      await email.transactionChange('ctaLink', option, previousOption);\n    }\n    async rollbackModel() {\n      var _this$model15;\n      // Rollback email-series and associated emails\n      const emailsSeriesCopy = ((_this$model15 = this.model) === null || _this$model15 === void 0 || (_this$model15 = _this$model15.emailSeries) === null || _this$model15 === void 0 ? void 0 : _this$model15.toArray()) || [];\n      emailsSeriesCopy.forEach(emailSeriesModel => {\n        var _emailSeriesModel$ema;\n        // Create a shallow copy of the emails array to avoid mutation issues\n        const emailsCopy = (emailSeriesModel === null || emailSeriesModel === void 0 || (_emailSeriesModel$ema = emailSeriesModel.emails) === null || _emailSeriesModel$ema === void 0 ? void 0 : _emailSeriesModel$ema.toArray()) || [];\n        emailsCopy.forEach(emailModel => {\n          emailModel === null || emailModel === void 0 || emailModel.rollbackAttributes();\n        });\n        emailSeriesModel === null || emailSeriesModel === void 0 || emailSeriesModel.rollbackAttributes();\n      });\n\n      // Rollback voucher\n      if (this.model.contribution) {\n        this.model.contribution.rollbackAttributes();\n      }\n\n      // Rollback landing-page\n      if (this.model.landingPage) {\n        this.model.landingPage.rollbackAttributes();\n      }\n      if (this.model.language !== this.uiAppSettings.currentLocale) {\n        this.uiAppSettings.setLocale(this.model.language);\n      }\n      this.model.rollbackAttributes();\n      await this.model.reload({\n        adapterOptions: {\n          useNewApi: true\n        }\n      });\n    }\n    async changeEmailSeriesOffset(model, value) {\n      this.isEmailSeriesOffsetError = false;\n      const isDuplicateOffset = this.emailSeries.find(emailSeries => emailSeries.offsetInDays == value && emailSeries.id !== model.id);\n      if (isDuplicateOffset) {\n        this.isEmailSeriesOffsetError = true;\n      }\n      await model.transactionChange('offsetInDays', value);\n    }\n    async onDiscardChanges() {\n      await this.uiTransactionManager.discardTransaction();\n      this.isDiscardChangesDialog = false;\n      if (this.model.isNew) {\n        this.router.transitionTo('instance.campaigns.email');\n      } else {\n        this.rollbackModel();\n        this.router.transitionTo('instance.campaigns.email.detail', this.model);\n      }\n    }\n    async onClose() {\n      if (this.uiTransactionManager.hasChanges) {\n        this.isDiscardChangesDialog = true;\n        return;\n      }\n      await this.uiTransactionManager.discardTransaction();\n      if (this.model.isNew) {\n        this.router.transitionTo('instance.campaigns.email');\n      } else {\n        this.router.transitionTo('instance.campaigns.email.detail', this.model);\n      }\n    }\n    onPublish() {\n      this.router.transitionTo('instance.campaigns.email.detail', this.model);\n      this.openPublishDialog(true);\n    }\n    async onEnterStep(model, key) {\n      var _this$_surveys3, _this$_referralCampai3;\n      this._isLoading = true;\n      if (key === 'email' && (model === null || model === void 0 ? void 0 : model.ctaType) === 'survey' && !((_this$_surveys3 = this._surveys) !== null && _this$_surveys3 !== void 0 && _this$_surveys3[model.language])) {\n        // Fetch selectable surveys\n        await this.fetchSurveys.perform(model.language);\n      }\n      if (key === 'email' && (model === null || model === void 0 ? void 0 : model.ctaType) === 'referral' && !((_this$_referralCampai3 = this._referralCampaigns) !== null && _this$_referralCampai3 !== void 0 && _this$_referralCampai3[model.language])) {\n        // Fetch selectable referral campaigns\n        await this.fetchReferralCampaigns.perform(model.language);\n      }\n      if (key === 'voucher') {\n        this._contributionValue = model.amount;\n        this._contributionCustomType = model.customType;\n      }\n      if (model.availableLanguages.length === 0) {\n        model.availableLanguages.push(model.language);\n        model.transactionAddLanguage(model.language);\n      }\n      await this.model.fetchMeta.perform(model.language);\n\n      // Check whether model includes the requested language\n      if (model.availableLanguages.includes(model.language)) {\n        this._isLoading = false;\n        return;\n      }\n\n      // Model not available in requested language\n      // We need to reload the model, to retrieve the model in some other (fallback) language\n\n      // Rollback is needed, otherwise properties are not updated correctly\n      model.rollbackAttributes();\n      let adapterOptions = {\n        campaignId: this.campaignId,\n        type: model._internalModel.modelName,\n        useNewApi: true\n      };\n      if (key === 'email') {\n        adapterOptions.emailSeriesId = model.emailSeriesId;\n      }\n      await model.reload({\n        adapterOptions: adapterOptions\n      });\n      await this.model.fetchMeta.perform(model.language);\n      this._isLoading = false;\n    }\n    async onSave() {\n      // Open publish dialog if campaign is active\n      if (this.model.active) {\n        this.onPublish();\n        return;\n      }\n      this._isLoading = true;\n      let toast = this.uiToast.showToast({\n        title: this.intl.t('emailCampaigns.toast.save.title'),\n        description: this.intl.t('emailCampaigns.toast.save.text'),\n        type: 'loading',\n        duration: -1\n      });\n      if (this.model.language !== this.uiAppSettings.currentLocale) {\n        this.uiAppSettings.setLocale(this.model.language);\n      }\n      const response = await this.uiTransactionManager.commitTransaction();\n      if (response !== null && response !== void 0 && response.message) {\n        this.uiToast.destroyToast(toast);\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n        if ((response === null || response === void 0 ? void 0 : response.status) === 409 && response.message) {\n          this.uiDialog.showError(null, response.message);\n        }\n        this._isLoading = false;\n        return;\n      }\n      if (this.model.isNew) {\n        const metadata = this.model.meta;\n\n        // Remove record with temporary id\n        this.model.rollbackAttributes();\n        await this.store.unloadRecord(this.model);\n\n        // Add campaign with permanent id to store\n        await this.store.pushPayload('email-campaign', {\n          emailCampaigns: response.campaign\n        });\n        this.model = await this.store.peekRecord('email-campaign', response.campaign.id);\n\n        // Set metadata\n        this.model.meta = metadata;\n\n        // Add new campaign to filter\n        this.uiFilter.addItem('email', this.model);\n      } else {\n        // Rollback & reload model\n        await this.rollbackModel();\n      }\n      this.uiToast.destroyToast(toast);\n      this.uiToast.showToast({\n        title: this.intl.t('toast.success'),\n        type: 'success'\n      });\n      this._isLoading = false;\n      this.router.transitionTo('instance.campaigns.email.detail', this.model);\n    }\n    async createVoucher() {\n      this._isLoading = true;\n      const contribution = this.store.createRecord('email-campaign-contribution', {\n        active: false,\n        value: 0\n      });\n\n      // assign temporary id\n      contribution.id = `tmp-${(0, _internals.guidFor)(contribution)}`;\n      contribution.language = this.defaultLanguage;\n      contribution.availableLanguages = [this.defaultLanguage];\n      this.model.contribution = contribution;\n      await this.model.contribution.transactionCreateRecord();\n      this._isLoading = false;\n    }\n    didInsertConfigurationStep() {\n      if (!this.model.meta) {\n        return;\n      }\n      const metadataKey = Object.keys(this.model.meta).sort()[0];\n      const configurationMetadata = this.model.meta[metadataKey].configurations;\n      const configurations = this.model.configurations || [];\n\n      // Initialize configurations in model\n      // API does not send configurations which are not configured yet (null)\n      configurationMetadata.forEach(configuration => {\n        const configExist = configurations.find(modelConfig => modelConfig.key === configuration.key);\n        if (!configExist) {\n          configurations.push({\n            key: configuration.key,\n            value: null\n          });\n        }\n      });\n      this.model.configurations = configurations;\n    }\n    async createEmailSeries(newEmailSeries, isFirstEmailSeries) {\n      this._isLoading = true;\n      const emailSeries = await this.store.createRecord('email-series');\n\n      // assign temporary id\n      emailSeries.id = `tmp-${(0, _internals.guidFor)(emailSeries)}`;\n      emailSeries.offsetInDays = newEmailSeries.offsetInDays;\n      if (isFirstEmailSeries) {\n        // First email series should be activated by default\n        emailSeries.state = 'active';\n      }\n      this.model.emailSeries.pushObject(emailSeries);\n      await emailSeries.transactionCreateRecord();\n      if (!isFirstEmailSeries) {\n        // First email series should not have a label by default\n        await emailSeries.transactionChange('label', newEmailSeries.label);\n      }\n      this._isLoading = false;\n      this.isEmailSeriesCreateDialog = false;\n    }\n    async createEmail(emailSeries, stepSlug) {\n      // This function can be called from detail-view.\n      // We need to make sure that the transaction ID is already available.\n      await new Promise(resolve => {\n        const checkTransactionId = () => {\n          var _this$model16;\n          if ((_this$model16 = this.model) !== null && _this$model16 !== void 0 && (_this$model16 = _this$model16.uiTransactionManager) !== null && _this$model16 !== void 0 && _this$model16.transactionId) {\n            resolve();\n          } else {\n            _runloop.run.later(this, checkTransactionId, 100);\n          }\n        };\n        checkTransactionId();\n      });\n      this._isLoading = true;\n      const email = this.store.createRecord('email', {\n        active: false\n      });\n\n      // assign temporary id\n      email.id = `tmp-${(0, _internals.guidFor)(email)}`;\n      email.language = this.defaultLanguage;\n      email.availableLanguages = [this.defaultLanguage];\n      emailSeries.emails.pushObject(email);\n\n      // Open newly created email\n      this.wizard.onChangeStep(`${stepSlug}.${email.id}`);\n      await email.transactionCreateRecord();\n      this._isLoading = false;\n    }\n    openSendTestEmailDialog(model, isBulk) {\n      this.selectedModel = model;\n      this.isBulkAction = isBulk;\n      this.isTestEmailDialogOpen = true;\n    }\n    onDelete(model) {\n      this.uiDialog.showConfirm(this.intl.t('emailCampaigns.deleteDialog.title'), (0, _string.htmlSafe)(this.intl.t('emailCampaigns.deleteDialog.description')), () => model.transactionDeleteRecord(), this.intl.t('global.actions.delete'), true, true);\n    }\n    setInitialStep(step) {\n      this.initialStep = step;\n    }\n    onStepChange(stepSlug) {\n      let slugParts = stepSlug.split('.');\n      if (slugParts.length === 2 && slugParts[0] === 'emails') {\n        this.isEmailSeriesOffsetError = false;\n        const emailSeriesId = slugParts[1];\n        const emailSeries = this.emailSeries.find(emailSeries => emailSeries.id === emailSeriesId);\n        const isDuplicateOffset = this.emailSeries.find(item => item.offsetInDays == emailSeries.offsetInDays && item.id !== emailSeriesId);\n        if (isDuplicateOffset) {\n          this.isEmailSeriesOffsetError = true;\n        }\n      }\n    }\n    openLandingPageSettings() {\n      window.open(`${_environment.default.APP.baseHost}/${this.organizationId}/settings`, '_blank');\n    }\n    didInsertContentWizard(wizard) {\n      if (wizard !== null && wizard !== void 0 && wizard.onChangeStep) {\n        this.wizard = wizard;\n      }\n    }\n    async didUpdateEmailLanguage(email) {\n      await this.model.fetchMeta.perform(email.language);\n      if (email.ctaType === 'survey') {\n        await this.fetchSurveys.perform(email.language);\n      }\n      if (email.ctaType === 'referral') {\n        await this.fetchReferralCampaigns.perform(email.language);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"multimedia\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"wizard\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isTestEmailDialogOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"selectedModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"selectedVoucherModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"selectedEmailModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChangesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"isEmailSeriesCreateDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"isVoucherPreviewDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"isEmailPreviewDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"selectedEmailPreviewLanguage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"selectedVoucherPreviewLanguage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"isEmailSeriesOffsetError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"isBulkAction\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"initialStep\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"_surveys\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"_referralCampaigns\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"_isLoading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor29 = _applyDecoratedDescriptor(_class.prototype, \"_corporateDesignColors\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor30 = _applyDecoratedDescriptor(_class.prototype, \"_contributionValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 0;\n    }\n  }), _descriptor31 = _applyDecoratedDescriptor(_class.prototype, \"_contributionCustomType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor32 = _applyDecoratedDescriptor(_class.prototype, \"fetchSurveys\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor33 = _applyDecoratedDescriptor(_class.prototype, \"fetchReferralCampaigns\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor34 = _applyDecoratedDescriptor(_class.prototype, \"fetchCorporateDesign\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addMedium\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addMedium\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeCtaLink\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeCtaLink\"), _class.prototype), _descriptor35 = _applyDecoratedDescriptor(_class.prototype, \"onChangeEmailCtaType\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"rollbackModel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"rollbackModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeEmailSeriesOffset\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeEmailSeriesOffset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDiscardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDiscardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPublish\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onPublish\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onEnterStep\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onEnterStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createVoucher\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createVoucher\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didInsertConfigurationStep\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertConfigurationStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createEmailSeries\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createEmailSeries\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createEmail\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createEmail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openSendTestEmailDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openSendTestEmailDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDelete\"), _class.prototype), _descriptor36 = _applyDecoratedDescriptor(_class.prototype, \"openPreviewDialog\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setInitialStep\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setInitialStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onStepChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onStepChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openLandingPageSettings\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openLandingPageSettings\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didInsertContentWizard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertContentWizard\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didUpdateEmailLanguage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didUpdateEmailLanguage\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/email/detail/index/email\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsEmailDetailIndexEmailController = _exports.default = (_class = class InstanceCampaignsEmailDetailIndexEmailController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/email/detail/index/voucher\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@additive-apps/auth/utils/roles-map\"], function (_exports, _controller, _service, _object, _rolesMap) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsEmailDetailIndexVoucherController = _exports.default = (_class = class InstanceCampaignsEmailDetailIndexVoucherController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    get _isReadOnly() {\n      var _this$currentUser$use;\n      if ((0, _rolesMap.hasAccess)(_rolesMap.ROLE_MANAGER, (_this$currentUser$use = this.currentUser.user) === null || _this$currentUser$use === void 0 ? void 0 : _this$currentUser$use.role)) {\n        return false;\n      }\n      return true;\n    }\n    openMultimedia() {\n      this.router.transitionTo('instance.campaigns.email.detail.index.voucher.additive-multimedia-engine');\n    }\n    closeMultimedia() {\n      this.router.transitionTo('instance.campaigns.email.detail.index.voucher');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMultimedia\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/index\", [\"exports\", \"@ember/controller\", \"@ember/object/computed\", \"@additive-apps/utils/utils/plans\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _computed, _plans, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsIndexController = _exports.default = (_dec = (0, _computed.alias)('currentUser.currentOrganization.id'), _dec2 = (0, _object.computed)('organizationSlug', 'uiAppSettings.planName'), _dec3 = (0, _object.computed)('organizationSlug', 'uiAppSettings.planName'), _dec4 = (0, _object.computed)('organizationSlug', 'uiAppSettings.planName'), _dec5 = (0, _object.computed)('organizationSlug', 'uiAppSettings.planName'), _class = class InstanceCampaignsIndexController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      /**\n       * The current organization slug\n       *\n       * @computed organizationsSlug\n       * @type {string}\n       */\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor3, this);\n    }\n    get isStarter() {\n      var _this$uiAppSettings;\n      const currentPlan = (_this$uiAppSettings = this.uiAppSettings) === null || _this$uiAppSettings === void 0 ? void 0 : _this$uiAppSettings.planName;\n      return (0, _plans.is)(currentPlan, _plans.PLAN_STARTER);\n    }\n    get isProfessional() {\n      var _this$uiAppSettings2;\n      const currentPlan = (_this$uiAppSettings2 = this.uiAppSettings) === null || _this$uiAppSettings2 === void 0 ? void 0 : _this$uiAppSettings2.planName;\n      return (0, _plans.is)(currentPlan, _plans.PLAN_PROFESSIONAL);\n    }\n    get gteEnterprise() {\n      var _this$uiAppSettings3;\n      const currentPlan = (_this$uiAppSettings3 = this.uiAppSettings) === null || _this$uiAppSettings3 === void 0 ? void 0 : _this$uiAppSettings3.planName;\n      return (0, _plans.gte)(currentPlan, _plans.PLAN_ENTERPRISE);\n    }\n    get gteStarter() {\n      var _this$uiAppSettings4;\n      const currentPlan = (_this$uiAppSettings4 = this.uiAppSettings) === null || _this$uiAppSettings4 === void 0 ? void 0 : _this$uiAppSettings4.planName;\n      return (0, _plans.gte)(currentPlan, _plans.PLAN_STARTER);\n    }\n    get isAdditive() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.user) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.isAdditive;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"isStarter\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"isStarter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isProfessional\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"isProfessional\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"gteEnterprise\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"gteEnterprise\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"gteStarter\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"gteStarter\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/on-page\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\"], function (_exports, _controller, _tracking, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsOnPageController = _exports.default = (_class = class InstanceCampaignsOnPageController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      /**\n       * whether the create campaign dialog is open\n       *\n       * @property showCreateDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"showCreateDialog\", _descriptor3, this);\n      /**\n       * whether the rename dialog is open\n       *\n       * @property isRenameDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isRenameDialog\", _descriptor4, this);\n      /**\n       * the campaign to rename\n       *\n       * @property selectedCampaign\n       * @type {Model}\n       */\n      _initializerDefineProperty(this, \"selectedCampaign\", _descriptor5, this);\n      _defineProperty(this, \"_detailRoutePath\", 'instance.campaigns.on-page.detail');\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    get detailRoute() {\n      return this.router.currentRouteName.indexOf(this._detailRoutePath) >= 0 ? this.router.currentRouteName : null;\n    }\n    get _currentItem() {\n      var _this$router;\n      if (((_this$router = this.router) === null || _this$router === void 0 || (_this$router = _this$router.currentRouteName) === null || _this$router === void 0 ? void 0 : _this$router.indexOf(this._detailRoutePath)) === -1) {\n        return false;\n      }\n      let route = this.router.currentRoute;\n      while (route.parent && route.name !== this._detailRoutePath) {\n        route = route.parent;\n      }\n      return route.attributes.id;\n    }\n    openRenameDialog(campaign) {\n      this.selectedCampaign = campaign;\n      this.isRenameDialog = true;\n    }\n    closeRenameDialog() {\n      this.isRenameDialog = false;\n      this.selectedCampaign = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showCreateDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isRenameDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"selectedCampaign\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"openRenameDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openRenameDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeRenameDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeRenameDialog\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/on-page/detail\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@additive-apps/utils/utils/errors\", \"ember-concurrency\", \"@glimmer/tracking\"], function (_exports, _controller, _service, _object, _errors, _emberConcurrency, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsOnPageDetailController = _exports.default = (_dec = (0, _object.computed)('model.orderedConfigurations'), _dec2 = (0, _object.computed)('model.orderedWidgetConfigurations'), _dec3 = (0, _emberConcurrency.task)(function* () {\n    try {\n      yield this.model.save();\n    } catch (error) {\n      this.model.rollbackAttributes();\n      if (error) {\n        const errorDetail = (0, _errors.getAdapterError)(error);\n        if (errorDetail.custom) {\n          this.uiDialog.showAlert(this.intl.t('campaigns.configurations.errors.custom.title'), errorDetail === null || errorDetail === void 0 ? void 0 : errorDetail.custom);\n          return null;\n        }\n      }\n      this.uiDialog.showError();\n    }\n  }), _class = class InstanceCampaignsOnPageDetailController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"campaignId\", _descriptor5, this);\n      /**\n       * whether the rename dialog is open\n       *\n       * @property isRenameDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isRenameDialog\", _descriptor6, this);\n      _initializerDefineProperty(this, \"onConfigurationSave\", _descriptor7, this);\n    }\n    get _configurationKeys() {\n      var _this$model;\n      const configurations = (_this$model = this.model) === null || _this$model === void 0 ? void 0 : _this$model.orderedConfigurations;\n      return configurations && Object.keys(configurations) || [];\n    }\n    get _widgetConfigurationKeys() {\n      var _this$model2;\n      const configurations = (_this$model2 = this.model) === null || _this$model2 === void 0 ? void 0 : _this$model2.orderedWidgetConfigurations;\n      return configurations && Object.keys(configurations) || [];\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    back() {\n      this.router.transitionTo('instance.campaigns.on-page');\n    }\n    showDeleteDialog() {\n      this.uiDialog.showAlert(this.intl.t('onPageCampaigns.onPageCampaign.deleteDialog.title'), this.intl.t('onPageCampaigns.onPageCampaign.deleteDialog.description'));\n    }\n    transitionToCreate() {\n      this.router.transitionTo('instance.campaigns.on-page.detail.content.create');\n    }\n    goToVoucherDetail(id) {\n      this.router.transitionTo('instance.campaigns.on-page.detail.voucher', id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isRenameDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_configurationKeys\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"_configurationKeys\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_widgetConfigurationKeys\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"_widgetConfigurationKeys\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"back\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"back\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showDeleteDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showDeleteDialog\"), _class.prototype), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"onConfigurationSave\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"transitionToCreate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"transitionToCreate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goToVoucherDetail\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goToVoucherDetail\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/on-page/detail/content/content\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsOnPageDetailContentController = _exports.default = (_class = class InstanceCampaignsOnPageDetailContentController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/on-page/detail/voucher\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\"], function (_exports, _controller, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsOnPageDetailVoucherController = _exports.default = (_class = class InstanceCampaignsOnPageDetailVoucherController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    openMultimedia() {\n      this.router.transitionTo('instance.campaigns.on-page.detail.voucher.additive-multimedia-engine');\n    }\n    closeMultimedia() {\n      this.router.transitionTo('instance.campaigns.on-page.detail.voucher');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMultimedia\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/search-ad\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"ember-concurrency\"], function (_exports, _controller, _tracking, _object, _service, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsSearchAdController = _exports.default = (_dec = (0, _object.computed)('router.currentRouteName'), _dec2 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const adapter = this.store.adapterFor('extension');\n      const url = adapter.urlForMultiple('extension');\n      const endpoint = `${url}/metadata`;\n      const response = yield this.authenticatedFetch.fetch(endpoint);\n      this.extensionMetaData = yield response.json();\n      return this.extensionMetaData;\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec3 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const adapter = this.store.adapterFor('target-group');\n      const url = adapter.urlForMultiple('target-group');\n      const endpoint = `${url}/metadata`;\n      const response = yield this.authenticatedFetch.fetch(endpoint, {}, null, [500]);\n      if (!response.ok) {\n        if (response.status === 500) {\n          const errorJson = yield response.json();\n          if (errorJson.code === 'GOOGLE_CONNECTION_ERROR') {\n            // ignore error because it also occurs and is handled while fetching the target groups, which is done in parallel\n            return;\n          }\n        }\n        throw new Error(response);\n      }\n      this.targetGroupMetaData = yield response.json();\n      return this.targetGroupMetaData;\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec4 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const adapter = this.store.adapterFor('search-ad-template');\n      const url = adapter.urlForMultiple('search-ad-template');\n      const endpoint = `${url}/metadata`;\n      const response = yield this.authenticatedFetch.fetch(endpoint);\n      this.searchAdMetaData = yield response.json();\n      return this.searchAdMetaData;\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class InstanceCampaignsSearchAdController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"googleConnectionState\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor8, this);\n      /**\n       * whether the create dialog is open\n       *\n       * @property showCreateDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"showCreateDialog\", _descriptor9, this);\n      /**\n       * The current model\n       *\n       * @property model\n       * @type {Model}\n       */\n      _initializerDefineProperty(this, \"activeModel\", _descriptor10, this);\n      /**\n       * The extension metadata\n       *\n       * @property extensionMetadata\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"extensionMetadata\", _descriptor11, this);\n      /**\n       * The search-ad metadata\n       *\n       * @property searchAdMetaData\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"searchAdMetaData\", _descriptor12, this);\n      /**\n       * The target-group metadata\n       *\n       * @property targetGroupMetaData\n       * @type {Object}\n       */\n      _initializerDefineProperty(this, \"targetGroupMetaData\", _descriptor13, this);\n      /**\n       * whether the create campaign dialog is open\n       *\n       * @property showCreateDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isCreateCampaignDialog\", _descriptor14, this);\n      /**\n       * whether the create ad dialog is open\n       *\n       * @property isCreateAdDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isCreateAdDialog\", _descriptor15, this);\n      /**\n       * whether the create extension dialog is open\n       *\n       * @property isCreateExtensionDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isCreateExtensionDialog\", _descriptor16, this);\n      /**\n       * whether the create target-group dialog is open\n       *\n       * @property isCreateTargetGroupDialog\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"isCreateTargetGroupDialog\", _descriptor17, this);\n      _initializerDefineProperty(this, \"fetchExtensionMeta\", _descriptor18, this);\n      _initializerDefineProperty(this, \"fetchTargetGroupMeta\", _descriptor19, this);\n      _initializerDefineProperty(this, \"fetchSearchAdMeta\", _descriptor20, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    get detailRoute() {\n      return this.router.currentRouteName.indexOf('instance.campaigns.search-ad.index.search-ad') >= 0 ? this.router.currentRouteName : null;\n    }\n    get isAddButtonHidden() {\n      if (this.isReadOnly) {\n        return true;\n      }\n      if (this.googleConnectionState.isError && (this.router.currentRouteName.startsWith('instance.campaigns.search-ad.index') || this.router.currentRouteName.startsWith('instance.campaigns.search-ad.target-groups'))) {\n        return true;\n      }\n      return false;\n    }\n    openCreateDialog() {\n      if (this.router.currentRouteName.indexOf('instance.campaigns.search-ad.index') >= 0) {\n        this.activeModel = this.store.createRecord('search-ad-campaign');\n        this.isCreateCampaignDialog = true;\n      } else if (this.router.currentRouteName.indexOf('instance.campaigns.search-ad.ad-templates') >= 0) {\n        this.activeModel = this.store.createRecord('searchAdTemplate');\n        this.isCreateAdDialog = true;\n      } else if (this.router.currentRouteName.indexOf('instance.campaigns.search-ad.extensions') >= 0) {\n        this.activeModel = this.store.createRecord('extension');\n        this.isCreateExtensionDialog = true;\n      } else if (this.router.currentRouteName.indexOf('instance.campaigns.search-ad.target-groups') >= 0) {\n        this.activeModel = this.store.createRecord('target-group');\n        this.isCreateTargetGroupDialog = true;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"googleConnectionState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"showCreateDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"activeModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"extensionMetadata\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"searchAdMetaData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"targetGroupMetaData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"isCreateCampaignDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isCreateAdDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"isCreateExtensionDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"isCreateTargetGroupDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"detailRoute\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"detailRoute\"), _class.prototype), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"fetchExtensionMeta\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"fetchTargetGroupMeta\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"fetchSearchAdMeta\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openCreateDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openCreateDialog\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/search-ad/ad-templates\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"ember-concurrency\", \"@ember/service\", \"lodash.clonedeep\"], function (_exports, _controller, _tracking, _object, _emberConcurrency, _service, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsSearchAdAdTemplatesController = _exports.default = (_dec = (0, _emberConcurrency.task)(function* () {}), _class = class InstanceCampaignsSearchAdAdTemplatesController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor7, this);\n      /**\n       * the model that is currently active\n       *\n       * @property activeModel\n       * @type {Model}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"activeModel\", _descriptor8, this);\n      /**\n       * the extensions meta data\n       *\n       * @property meta\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"meta\", _descriptor9, this);\n      /**\n       * whether the edit dialog is opened\n       *\n       * @property isEditDialog\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isEditDialog\", _descriptor10, this);\n      /**\n       * Fetches and returns the extensions meta\n       * Is replaced in setupController by task of parent controller\n       *\n       * @function fetchMeta\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchMeta\", _descriptor11, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    openEditDialog(model) {\n      this.activeModel = model;\n      this.isEditDialog = true;\n    }\n    duplicate(model) {\n      this.activeModel = this.store.createRecord('searchAdTemplate');\n      this.activeModel.headlines = (0, _lodash.default)(model.get('headlines'));\n      this.activeModel.descriptions = (0, _lodash.default)(model.get('descriptions'));\n      this.activeModel.url = (0, _lodash.default)(model.get('url'));\n      this.activeModel.language = (0, _lodash.default)(model.get('language'));\n      this.activeModel.type = (0, _lodash.default)(model.get('type'));\n      this.isEditDialog = true;\n    }\n    async onDelete(model) {\n      try {\n        await model.destroyRecord();\n        await this.uiFilter.reset('searchAdTemplate');\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      } catch (e) {\n        if (e && e.code === 'in_use') {\n          this.uiDialog.showError(this.intl.t('searchAdCampaigns.ads.errorMessages.inUse.title'), this.intl.t('searchAdCampaigns.ads.errorMessages.inUse.description'));\n        } else {\n          this.uiToast.showToast({\n            title: this.intl.t('toast.unexpectedError'),\n            type: 'error'\n          });\n        }\n      }\n    }\n    delete(model) {\n      this.uiDialog.showConfirm(this.intl.t('searchAdCampaigns.ads.deleteDialog.title'), this.intl.t('searchAdCampaigns.ads.deleteDialog.description', {\n        htmlSafe: true\n      }), async () => await this.onDelete(model), this.intl.t('global.actions.delete'), true, true);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"activeModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isEditDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"fetchMeta\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openEditDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openEditDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"duplicate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"duplicate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"delete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"delete\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/search-ad/extensions\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"ember-concurrency\", \"@ember/service\", \"additive-mc/utils/constants\"], function (_exports, _controller, _tracking, _object, _emberConcurrency, _service, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsSearchAdExtensionsController = _exports.default = (_dec = (0, _emberConcurrency.task)(function* () {}), _class = class InstanceCampaignsSearchAdExtensionsController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor7, this);\n      /**\n       * the model that is currently active\n       *\n       * @property activeModel\n       * @type {Model}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"activeModel\", _descriptor8, this);\n      /**\n       * the extensions meta data\n       *\n       * @property meta\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"meta\", _descriptor9, this);\n      /**\n       * key for extension type \"site link\"\n       *\n       * @property siteLinkExtension\n       * @type {String}\n       * @default GOOGLE_SEARCH_ADS_SITE_LINK\n       */\n      _initializerDefineProperty(this, \"siteLinkExtension\", _descriptor10, this);\n      /**\n       * whether the edit dialog is opened\n       *\n       * @property isEditDialog\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isEditDialog\", _descriptor11, this);\n      /**\n       * Fetches and returns the extensions meta\n       * Is replaced in setupController by task of parent controller\n       *\n       * @function fetchMeta\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchMeta\", _descriptor12, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    async onDelete(model) {\n      try {\n        await model.destroyRecord();\n        this.uiFilter.reset('extension');\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      } catch (e) {\n        if (e && e.code === 'in_use') {\n          this.uiDialog.showError(this.intl.t('searchAdCampaigns.extensions.errorMessages.inUse.title'), this.intl.t('searchAdCampaigns.extensions.errorMessages.inUse.description'));\n        } else {\n          this.uiToast.showToast({\n            title: this.intl.t('toast.unexpectedError'),\n            type: 'error'\n          });\n        }\n      }\n    }\n    openEditDialog(model) {\n      this.activeModel = model;\n      this.isEditDialog = true;\n    }\n    delete(model) {\n      this.uiDialog.showConfirm(this.intl.t('searchAdCampaigns.extensions.deleteDialog.title'), this.intl.t('searchAdCampaigns.extensions.deleteDialog.description', {\n        htmlSafe: true\n      }), () => this.onDelete(model), this.intl.t('global.actions.delete'), false, true);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"activeModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"siteLinkExtension\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return _constants.GOOGLE_SEARCH_ADS_SITE_LINK;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isEditDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"fetchMeta\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openEditDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openEditDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"delete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"delete\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/search-ad/index\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsSearchAdIndexController = _exports.default = (_class = class InstanceCampaignsSearchAdIndexController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"googleConnectionState\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    transitionToSettings() {\n      this.router.transitionTo('instance.settings');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"googleConnectionState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"transitionToSettings\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"transitionToSettings\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/search-ad/index/search-ad\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"ember-concurrency\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-animated\", \"additive-mc/validations/search-ad-campaign\"], function (_exports, _controller, _object, _tracking, _service, _emberConcurrency, _emberChangeset, _emberChangesetValidations, _emberAnimated, _searchAdCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsSearchAdIndexSearchAdController = _exports.default = (_dec = (0, _emberConcurrency.task)(function* () {\n    try {\n      const adapter = this.store.adapterFor('search-ad-campaign');\n      const url = adapter.urlForFindAll('search-ad-campaign');\n      const response = yield this.authenticatedFetch.fetch(`${url}/metadata`);\n      this.meta = yield response.json();\n    } catch (e) {\n      this.uiToast.showToast({\n        type: 'error',\n        title: this.intl.t('global.toast.error.savedChanges')\n      });\n    }\n  }), _dec2 = (0, _emberConcurrency.task)(function* () {\n    try {\n      this.showUpdateNotification = false;\n      const adapter = this.store.adapterFor('search-ad-campaign');\n      const url = adapter.urlForSingle(this.model.searchAdCampaign.id, 'search-ad-campaign');\n      const response = yield this.authenticatedFetch.fetch(`${url}/pending-updates`);\n      const pendingUpdates = yield response.json();\n      this.pendingUpdates = pendingUpdates;\n\n      // Check if there are any pending updates\n      const keys = Object.keys(pendingUpdates);\n      keys.forEach(key => {\n        if (pendingUpdates[key].length > 0) {\n          this.showUpdateNotification = true;\n          return;\n        }\n      });\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec3 = (0, _emberConcurrency.task)(function* () {\n    try {\n      let peekedExtensions = this.store.peekAll('extension');\n      let fetchedExtensions = null;\n      let tasks = [];\n      if (!peekedExtensions.length) {\n        tasks.push(this.store.findAll('extension'));\n        tasks.push((0, _emberConcurrency.timeout)(400));\n        const [extensions] = yield (0, _emberConcurrency.all)(tasks);\n        fetchedExtensions = extensions;\n      }\n      const extensions = peekedExtensions || fetchedExtensions;\n      if (!extensions || extensions.length === 0) {\n        return;\n      }\n      this.allExtensions = extensions;\n    } catch (e) {\n      this.uiDialog.showError();\n    }\n  }), _dec4 = (0, _emberConcurrency.task)(function* () {\n    try {\n      let allTargetGroups = this.store.peekAll('target-group');\n      if (!allTargetGroups.length) {\n        let fetchTargetGroupsTask = this.store.findAll('target-group');\n        let tasks = [];\n        tasks.push(fetchTargetGroupsTask);\n        tasks.push((0, _emberConcurrency.timeout)(400));\n        const [targetGroups] = yield (0, _emberConcurrency.all)(tasks);\n        allTargetGroups = targetGroups;\n      }\n      if (!allTargetGroups || allTargetGroups.length === 0) {\n        return;\n      }\n      const selectableTargetGroups = allTargetGroups.map(targetGroup => {\n        return {\n          value: targetGroup.id,\n          label: targetGroup.name\n        };\n      });\n      this.selectableTargetGroups = selectableTargetGroups;\n    } catch (e) {\n      this.uiDialog.showError();\n    }\n  }), _dec5 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const adapter = this.store.adapterFor('search-ad-campaign');\n      const url = adapter.urlForSingle(this.model.searchAdCampaign.id, 'search-ad-campaign');\n      const endpoint = `${url}/ad-sets`;\n      const response = yield this.authenticatedFetch.fetch(endpoint);\n      const {\n        adSets\n      } = yield response.json();\n      this.adSets = adSets;\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _dec6 = (0, _emberConcurrency.task)(function* (editedAdSet) {\n    try {\n      const adapter = this.store.adapterFor('search-ad-campaign');\n      const url = adapter.urlForSingle(this.model.searchAdCampaign.id, 'search-ad-campaign');\n      const endpoint = `${url}/ad-sets/${editedAdSet.id}`;\n      const response = yield this.authenticatedFetch.fetch(endpoint, {\n        method: 'PUT',\n        body: JSON.stringify(editedAdSet)\n      });\n      const adSet = yield response.json();\n      if (adSet) {\n        const index = this.adSets.findIndex(item => {\n          return item.id === adSet.id;\n        });\n        this.adSets[index] = adSet;\n      }\n      this.uiToast.showToast({\n        title: this.intl.t('toast.success'),\n        type: 'success'\n      });\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class InstanceCampaignsSearchAdIndexSearchAdController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor8, this);\n      _initializerDefineProperty(this, \"campaignId\", _descriptor9, this);\n      _initializerDefineProperty(this, \"meta\", _descriptor10, this);\n      _initializerDefineProperty(this, \"selectableTargetGroups\", _descriptor11, this);\n      _initializerDefineProperty(this, \"pendingUpdates\", _descriptor12, this);\n      _initializerDefineProperty(this, \"showUpdateNotification\", _descriptor13, this);\n      _initializerDefineProperty(this, \"isPendingUpdatesDialog\", _descriptor14, this);\n      _initializerDefineProperty(this, \"isPublishDialog\", _descriptor15, this);\n      _initializerDefineProperty(this, \"isAdEditDialog\", _descriptor16, this);\n      _initializerDefineProperty(this, \"selectedAd\", _descriptor17, this);\n      _initializerDefineProperty(this, \"adSets\", _descriptor18, this);\n      _initializerDefineProperty(this, \"ads\", _descriptor19, this);\n      _initializerDefineProperty(this, \"allExtensions\", _descriptor20, this);\n      _defineProperty(this, \"_animatedTransition\", _emberAnimated.fade);\n      _initializerDefineProperty(this, \"fetchMeta\", _descriptor21, this);\n      _initializerDefineProperty(this, \"fetchPendingUpdates\", _descriptor22, this);\n      /**\n       * Fetches the selectable extensions\n       *\n       * @function fetchExtensions\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchExtensions\", _descriptor23, this);\n      /**\n       * Fetches the selectable target-groups\n       *\n       * @function fetchTargetGroups\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchTargetGroups\", _descriptor24, this);\n      _initializerDefineProperty(this, \"fetchAdSets\", _descriptor25, this);\n      _initializerDefineProperty(this, \"updateAdSet\", _descriptor26, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    get selectedTargetGoals() {\n      const targetGoals = this.model.searchAdCampaign.get('targetGoals');\n      if (targetGoals.length === 0) {\n        return '';\n      }\n      const targetGoalTexts = targetGoals.map(targetGoal => {\n        return targetGoal.label;\n      });\n      return targetGoalTexts.join(', ');\n    }\n    get finalUrl() {\n      var _this$meta, _this$meta$landingPag;\n      const landingPage = this.model.searchAdCampaign.get('landingPage');\n      const landingPageLanguage = this.model.searchAdCampaign.get('landingPageLanguage');\n      if (!landingPage || !((_this$meta = this.meta) !== null && _this$meta !== void 0 && _this$meta.landingPages)) {\n        return '';\n      }\n      let url = (_this$meta$landingPag = this.meta.landingPages.find(page => page.value === landingPage)) === null || _this$meta$landingPag === void 0 ? void 0 : _this$meta$landingPag.url;\n\n      // Replace language placeholder with actual language\n      url = url.replace('{language}', landingPageLanguage);\n      return url;\n    }\n    get validationProperties() {\n      return ['dailyBudget', 'ads', 'targetGroup', 'bid', 'targetGoals'];\n    }\n    get publishChangeset() {\n      const validation = (0, _searchAdCampaign.searchAdCampaignPublishValidation)(this.intl);\n      return new _emberChangeset.default(this.model.searchAdCampaign, (0, _emberChangesetValidations.default)(validation), validation);\n    }\n    get campaignState() {\n      if (this.model.searchAdCampaign.isPublic) {\n        return this.intl.t('searchAdCampaigns.states.published');\n      }\n      if (this.model.searchAdCampaign.isPaused) {\n        return this.intl.t('searchAdCampaigns.states.paused');\n      }\n      return this.intl.t('searchAdCampaigns.states.unpublished');\n    }\n    get siteLinkExtensions() {\n      var _this$allExtensions;\n      const extensions = this.model.searchAdCampaign.extensions;\n      if (((_this$allExtensions = this.allExtensions) === null || _this$allExtensions === void 0 ? void 0 : _this$allExtensions.length) === 0 || !extensions || (extensions === null || extensions === void 0 ? void 0 : extensions.length) === 0) {\n        return [];\n      }\n      const selectedSiteLinks = [];\n      const allSiteLinksExtensions = this.allExtensions.filter(extension => extension.type === 'Google::SearchAds::Extension::SiteLink');\n      if ((allSiteLinksExtensions === null || allSiteLinksExtensions === void 0 ? void 0 : allSiteLinksExtensions.length) === 0) {\n        return [];\n      }\n      extensions.forEach(extension => {\n        const siteLink = allSiteLinksExtensions.find(siteLinkExtension => siteLinkExtension.id === extension.value);\n        if (siteLink) {\n          selectedSiteLinks.push(siteLink);\n        }\n      });\n      return selectedSiteLinks;\n    }\n    get additionalInformationExtensions() {\n      var _this$allExtensions2;\n      const extensions = this.model.searchAdCampaign.extensions;\n      if (((_this$allExtensions2 = this.allExtensions) === null || _this$allExtensions2 === void 0 ? void 0 : _this$allExtensions2.length) === 0 || !extensions || (extensions === null || extensions === void 0 ? void 0 : extensions.length) === 0) {\n        return [];\n      }\n      const selectedAdditionalInformation = [];\n      const allAdditionalInformationExtensions = this.allExtensions.filter(extension => extension.type === 'Google::SearchAds::Extension::AdditionalInformation');\n      if ((allAdditionalInformationExtensions === null || allAdditionalInformationExtensions === void 0 ? void 0 : allAdditionalInformationExtensions.length) === 0) {\n        return [];\n      }\n      extensions.forEach(extension => {\n        const additionalInformation = allAdditionalInformationExtensions.find(additionalInformationExtension => additionalInformationExtension.id === extension.value);\n        if (additionalInformation) {\n          selectedAdditionalInformation.push(additionalInformation);\n        }\n      });\n      return selectedAdditionalInformation;\n    }\n    back() {\n      this.router.transitionTo('instance.campaigns.search-ad.index');\n    }\n    openEdit() {\n      this.router.transitionTo('instance.campaigns.search-ad.index.search-ad.edit');\n    }\n    onPublish() {\n      const publishAction = this.model.searchAdCampaign.isDraft || this.model.searchAdCampaign.isPaused ? 'publish' : 'unpublish';\n      this.uiDialog.showConfirm(this.intl.t(`searchAdCampaigns.${publishAction}.dialog.title`), this.intl.t(`searchAdCampaigns.${publishAction}.dialog.description`), () => this.modelAction(publishAction), this.intl.t(`global.actions.${publishAction}`));\n    }\n    async modelAction(publishAction) {\n      let toast;\n      try {\n        toast = this.uiToast.showToast({\n          title: this.intl.t(`adCampaigns.facebookContentAds.publish.loading.${publishAction}`),\n          description: this.intl.t('adCampaigns.facebookContentAds.publish.loading.text'),\n          type: 'loading',\n          duration: -1\n        });\n        const adapter = this.store.adapterFor('search-ad-campaign');\n        const url = adapter.urlForSingle(this.model.searchAdCampaign.id, 'search-ad-campaign');\n        const method = publishAction === 'publish' ? 'POST' : 'DELETE';\n        const response = await this.authenticatedFetch.fetch(`${url}/publish`, {\n          method\n        });\n        if (!(response !== null && response !== void 0 && response.ok)) {\n          const {\n            message\n          } = await response.json();\n          throw new Error(message);\n        }\n        this.uiToast.destroyToast(toast);\n        this.model.searchAdCampaign.set('state', publishAction === 'publish' ? 'ENABLED' : 'PAUSED');\n        this.isPublishDialog = false;\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      } catch (e) {\n        this.uiToast.destroyToast(toast);\n        this.uiDialog.showError(null, e.message);\n      }\n    }\n    onUpdate() {\n      // Check if there are any pending updates left\n      this.fetchPendingUpdates.perform();\n      this.isPendingUpdatesDialog = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"selectableTargetGroups\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"pendingUpdates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"showUpdateNotification\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"isPendingUpdatesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isPublishDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"isAdEditDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"selectedAd\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"adSets\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"ads\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"allExtensions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"fetchMeta\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"fetchPendingUpdates\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"fetchExtensions\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"fetchTargetGroups\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"fetchAdSets\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"updateAdSet\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"back\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"back\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openEdit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPublish\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onPublish\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"modelAction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"modelAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onUpdate\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/search-ad/index/search-ad/edit\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"ember-changeset-validations\", \"ember-concurrency\", \"ember-animated\", \"date-fns\", \"additive-mc/validations/search-ad-campaign\"], function (_exports, _controller, _object, _service, _tracking, _emberChangeset, _emberChangesetValidations, _emberConcurrency, _emberAnimated, _dateFns, _searchAdCampaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsSearchAdIndexSearchAdEditController = _exports.default = (_dec = (0, _emberConcurrency.task)(function* () {\n    try {\n      let peekedExtensions = this.store.peekAll('extension');\n      let fetchedExtensions = null;\n      let tasks = [];\n      if (!peekedExtensions.length) {\n        tasks.push(this.store.findAll('extension'));\n        tasks.push((0, _emberConcurrency.timeout)(400));\n        const [extensions] = yield (0, _emberConcurrency.all)(tasks);\n        fetchedExtensions = extensions;\n      }\n      const extensions = peekedExtensions || fetchedExtensions;\n      if (!extensions || extensions.length === 0) {\n        return;\n      }\n      const selectableExtensions = extensions.map(extension => {\n        return {\n          value: extension.id,\n          label: extension.name,\n          type: extension.type\n        };\n      });\n      const siteLinks = selectableExtensions.filter(extension => extension.type === 'Google::SearchAds::Extension::SiteLink');\n      const additionalInformation = selectableExtensions.filter(extension => extension.type === 'Google::SearchAds::Extension::AdditionalInformation');\n      this.selectableSiteLinks = siteLinks;\n      this.selectableAdditionalInformation = additionalInformation;\n    } catch (e) {\n      this.uiDialog.showError();\n    }\n  }), _dec2 = (0, _emberConcurrency.task)(function* () {\n    try {\n      const adapter = this.store.adapterFor('search-ad-campaign');\n      const url = adapter.urlForFindAll('search-ad-campaign');\n      const response = yield this.authenticatedFetch.fetch(`${url}/metadata`);\n      this.meta = yield response.json();\n    } catch (e) {\n      this.uiToast.showToast({\n        type: 'error',\n        title: this.intl.t('global.toast.error.savedChanges')\n      });\n    }\n  }), _dec3 = (0, _emberConcurrency.task)(function* () {\n    try {\n      let allTargetGroups = this.store.peekAll('target-group');\n      if (!allTargetGroups.length) {\n        let fetchTargetGroupsTask = this.store.findAll('target-group');\n        let tasks = [];\n        tasks.push(fetchTargetGroupsTask);\n        tasks.push((0, _emberConcurrency.timeout)(400));\n        const [targetGroups] = yield (0, _emberConcurrency.all)(tasks);\n        allTargetGroups = targetGroups;\n      }\n      if (!allTargetGroups || allTargetGroups.length === 0) {\n        return;\n      }\n      const selectableTargetGroups = allTargetGroups.map(targetGroup => {\n        return {\n          value: targetGroup.id,\n          label: targetGroup.name\n        };\n      });\n      this.selectableTargetGroups = selectableTargetGroups;\n    } catch (e) {\n      this.uiDialog.showError();\n    }\n  }), _class = class InstanceCampaignsSearchAdIndexSearchAdEditController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor8, this);\n      _initializerDefineProperty(this, \"changeset\", _descriptor9, this);\n      _initializerDefineProperty(this, \"model\", _descriptor10, this);\n      _initializerDefineProperty(this, \"meta\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isTouched\", _descriptor12, this);\n      _initializerDefineProperty(this, \"campaignId\", _descriptor13, this);\n      _initializerDefineProperty(this, \"campaignResource\", _descriptor14, this);\n      _initializerDefineProperty(this, \"isDirty\", _descriptor15, this);\n      _initializerDefineProperty(this, \"selectableSiteLinks\", _descriptor16, this);\n      _initializerDefineProperty(this, \"selectableAdditionalInformation\", _descriptor17, this);\n      _initializerDefineProperty(this, \"selectableTargetGroups\", _descriptor18, this);\n      _initializerDefineProperty(this, \"isDiscardChangesDialog\", _descriptor19, this);\n      _initializerDefineProperty(this, \"isAdSetCreateDialog\", _descriptor20, this);\n      _initializerDefineProperty(this, \"selectedAdSet\", _descriptor21, this);\n      _initializerDefineProperty(this, \"selectedAdSetIndex\", _descriptor22, this);\n      _initializerDefineProperty(this, \"isDateTouched\", _descriptor23, this);\n      /**\n       * the earliest date that can be selected\n       *\n       * @property minDate\n       * @type {Date}\n       */\n      _defineProperty(this, \"minDate\", new Date());\n      _defineProperty(this, \"_animatedTransition\", _emberAnimated.fade);\n      /**\n       * Fetches the selectable extensions\n       *\n       * @function fetchExtensions\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchExtensions\", _descriptor24, this);\n      /**\n       * Fetches the selectable landing pages and bids\n       *\n       * @function fetchExtensions\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchMetadata\", _descriptor25, this);\n      /**\n       * Fetches the selectable target-groups\n       *\n       * @function fetchTargetGroups\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchTargetGroups\", _descriptor26, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n\n    /**\n     * the earliest date that can be selected for the end date\n     *\n     * @computed minEndDate\n     * @type {Date}\n     */\n    get minEndDate() {\n      var _this$changeset;\n      return ((_this$changeset = this.changeset) === null || _this$changeset === void 0 ? void 0 : _this$changeset.get('startDate')) > this.minDate ? this.changeset.get('startDate') : this.minDate;\n    }\n    get selectableLandingPages() {\n      var _this$meta;\n      if (!((_this$meta = this.meta) !== null && _this$meta !== void 0 && _this$meta.landingPages)) {\n        return [];\n      }\n      return this.meta.landingPages;\n    }\n    get selectableTargetGoals() {\n      var _this$meta2;\n      if (!((_this$meta2 = this.meta) !== null && _this$meta2 !== void 0 && _this$meta2.targetGoals)) {\n        return [];\n      }\n      return this.meta.targetGoals;\n    }\n    get selectableBids() {\n      var _this$meta3;\n      if (!((_this$meta3 = this.meta) !== null && _this$meta3 !== void 0 && _this$meta3.bids)) {\n        return [];\n      }\n      return this.meta.bids;\n    }\n    get finalUrl() {\n      var _this$meta4;\n      const landingPage = this.changeset.get('landingPage');\n      if (!landingPage || !((_this$meta4 = this.meta) !== null && _this$meta4 !== void 0 && _this$meta4.landingPages)) {\n        return '';\n      }\n      let {\n        url,\n        value\n      } = this.meta.landingPages.find(page => page.value === landingPage);\n\n      // Remove uneeded parts from the url (we only want to show the display url)\n      url = url.replace('/{language}/', '');\n      url = url.replace(value, '');\n      const displayedPath = this.changeset.get('displayedPath');\n      if (displayedPath !== null && displayedPath !== void 0 && displayedPath.first) {\n        url += `/${displayedPath.first}`;\n      }\n      if (displayedPath !== null && displayedPath !== void 0 && displayedPath.second) {\n        url += `/${displayedPath.second}`;\n      }\n      return url;\n    }\n    get availableLandingPageLanguages() {\n      var _this$meta5, _this$meta$landingPag;\n      const landingPage = this.changeset.get('landingPage');\n      if (landingPage.length === 0 || ((_this$meta5 = this.meta) === null || _this$meta5 === void 0 || (_this$meta5 = _this$meta5.landingPages) === null || _this$meta5 === void 0 ? void 0 : _this$meta5.length) === 0) {\n        return [];\n      }\n      const availableLanguages = (_this$meta$landingPag = this.meta.landingPages.find(page => page.value === landingPage)) === null || _this$meta$landingPag === void 0 ? void 0 : _this$meta$landingPag.availableLanguages;\n      const selectableLanguages = [];\n      availableLanguages.forEach(language => {\n        selectableLanguages.push({\n          label: this.intl.t(`global.languages.${language}`),\n          value: language\n        });\n      });\n      return selectableLanguages;\n    }\n    get displayedPathError() {\n      var _this$changeset$error, _this$changeset$error2;\n      if (!this.isTouched) {\n        return null;\n      }\n      if ((_this$changeset$error = this.changeset.error) !== null && _this$changeset$error !== void 0 && (_this$changeset$error = _this$changeset$error.displayedPath) !== null && _this$changeset$error !== void 0 && (_this$changeset$error = _this$changeset$error.first) !== null && _this$changeset$error !== void 0 && _this$changeset$error.validation) {\n        return this.changeset.error.displayedPath.first.validation[0];\n      } else if ((_this$changeset$error2 = this.changeset.error) !== null && _this$changeset$error2 !== void 0 && (_this$changeset$error2 = _this$changeset$error2.displayedPath) !== null && _this$changeset$error2 !== void 0 && (_this$changeset$error2 = _this$changeset$error2.second) !== null && _this$changeset$error2 !== void 0 && _this$changeset$error2.validation) {\n        return this.changeset.error.displayedPath.second.validation[0];\n      }\n      return null;\n    }\n    get selectedSiteLinks() {\n      var _this$selectableSiteL;\n      const extensions = this.changeset.get('extensions');\n      if (((_this$selectableSiteL = this.selectableSiteLinks) === null || _this$selectableSiteL === void 0 ? void 0 : _this$selectableSiteL.length) === 0 || extensions.length === 0) {\n        return [];\n      }\n      const selectedSiteLinks = [];\n      extensions.forEach(extension => {\n        const siteLink = this.selectableSiteLinks.find(selectableExtension => selectableExtension.value === extension.value);\n        if (siteLink) {\n          selectedSiteLinks.push(siteLink);\n        }\n      });\n      return selectedSiteLinks;\n    }\n    get selectedAdditionalInformation() {\n      var _this$selectableAddit;\n      const extensions = this.changeset.get('extensions');\n      if (((_this$selectableAddit = this.selectableAdditionalInformation) === null || _this$selectableAddit === void 0 ? void 0 : _this$selectableAddit.length) === 0 || extensions.length === 0) {\n        return [];\n      }\n      const selectedAdditionalInformation = [];\n      extensions.forEach(extension => {\n        const additionalInformation = this.selectableAdditionalInformation.find(selectableExtension => selectableExtension.value === extension.value);\n        if (additionalInformation) {\n          selectedAdditionalInformation.push(additionalInformation);\n        }\n      });\n      return selectedAdditionalInformation;\n    }\n    setupChangeset() {\n      let changesetChanges = null;\n      if (this.changeset) {\n        changesetChanges = this.changeset.get('changes');\n      }\n      const campaignResource = Object.assign({}, this.model.searchAdCampaign.toJSON());\n      campaignResource.startDate = campaignResource.startDate ? new Date(campaignResource.startDate) : (0, _dateFns.format)(new Date(), 'yyyy-MM-dd');\n      campaignResource.endDate = campaignResource.endDate ? new Date(campaignResource.endDate) : (0, _dateFns.format)(new Date(), 'yyyy-MM-dd');\n      if (!campaignResource.displayedPath) {\n        campaignResource.displayedPath = {\n          first: null,\n          second: null\n        };\n      }\n      if (!campaignResource.adSets) {\n        campaignResource.adSets = [];\n      }\n      const validation = (0, _searchAdCampaign.searchAdCampaignValidation)(this.intl);\n      this.changeset = new _emberChangeset.default(campaignResource, (0, _emberChangesetValidations.default)(validation), validation);\n      if (changesetChanges) {\n        changesetChanges.forEach(change => {\n          this.changeset.set(change.key, change.value);\n        });\n      }\n      this.campaignResource = campaignResource;\n    }\n    onBack() {\n      let dirty = this.changeset.get('isDirty');\n      if (dirty || this.isDirty) {\n        this.isDiscardChangesDialog = true;\n        return;\n      }\n      this.back();\n    }\n    back() {\n      this.router.transitionTo('instance.campaigns.search-ad.index.search-ad');\n    }\n    discardChanges() {\n      this.isDiscardChangesDialog = false;\n      this.changeset.rollback();\n      this.back();\n    }\n    selectProperty(property, _ref) {\n      let {\n        value\n      } = _ref;\n      if (property === 'landingPage') {\n        this.changeset.set('landingPageLanguage', null);\n      }\n      this.changeset.set(property, value);\n    }\n    onChangeDate(propertyName, date) {\n      this.changeset.set(propertyName, date);\n      this.changeset.validate('startDate');\n      this.changeset.validate('endDate');\n      this.isDateTouched = true;\n    }\n    onUnlimitedDurationChange() {\n      this.changeset.set('unlimitedDuration', !this.changeset.get('unlimitedDuration'));\n      let startDate = new Date(this.changeset.get('startDate'));\n      startDate.setDate(startDate.getDate() + 1);\n      this.changeset.set('endDate', startDate.toISOString());\n    }\n    async save() {\n      try {\n        this.isTouched = true;\n        this.isDateTouched = true;\n        await this.changeset.validate();\n        if (this.changeset.get('isInvalid')) {\n          return;\n        }\n        this.changeset.execute();\n        Object.keys(this.campaignResource).forEach(key => {\n          this.model.searchAdCampaign[key] = this.campaignResource[key];\n        });\n        await this.model.searchAdCampaign.save();\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n        this.back();\n      } catch (error) {\n        this.model.searchAdCampaign.rollbackAttributes();\n        this.setupChangeset();\n        try {\n          const errorDetail = JSON.parse(error.message);\n          this.uiToast.showToast({\n            title: errorDetail.message,\n            type: 'error'\n          });\n        } catch (e) {\n          this.uiToast.showToast({\n            title: this.intl.t('toast.unexpectedError'),\n            type: 'error'\n          });\n        }\n      }\n    }\n    onMultiSelectChange(key, option, checked) {\n      let options = (this.changeset.get(key) || []).slice(0);\n      const checkedValue = option.value;\n      if (checked) {\n        // Only push if not allready in\n        if (!options.findBy('value', checkedValue)) {\n          options.pushObject(option);\n        }\n      } else {\n        // Remove unchecked option\n        options = options.filter(_option => _option.value === checkedValue ? false : true);\n      }\n      this.changeset.set(key, options);\n      this.changeset.execute();\n    }\n    changeDisplayedPath(key, value) {\n      this.changeset.set(`displayedPath.${key}`, value);\n    }\n    onBidChange(value) {\n      this.changeset.set('useDefaultTargetGoals', value);\n      if (value) {\n        this.changeset.set('targetGoals', []);\n      }\n    }\n    onCloseAdSetDialog() {\n      this.isAdSetCreateDialog = false;\n      this.selectedAdSet = null;\n      this.selectedAdSetIndex = null;\n    }\n    onAdSetSave(adSet, isEdit) {\n      this.isDirty = true;\n      const adSets = this.changeset.get('adSets');\n      if (isEdit) {\n        adSets.splice(this.selectedAdSetIndex, 1, adSet);\n      } else {\n        adSets.push(adSet);\n      }\n      this.changeset.set('adSets', adSets);\n    }\n    onAdSetDelete(index) {\n      this.isDirty = true;\n      const adSets = this.changeset.get('adSets');\n      adSets.splice(index, 1);\n      this.changeset.set('adSets', adSets);\n    }\n    onAdSetEdit(adSet, index) {\n      this.selectedAdSet = adSet;\n      this.selectedAdSetIndex = index;\n      this.isAdSetCreateDialog = true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"campaignResource\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isDirty\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"selectableSiteLinks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"selectableAdditionalInformation\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"selectableTargetGroups\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChangesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"isAdSetCreateDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"selectedAdSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"selectedAdSetIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"isDateTouched\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"fetchExtensions\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"fetchMetadata\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"fetchTargetGroups\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onBack\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onBack\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"back\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"back\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"discardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectProperty\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectProperty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeDate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeDate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onUnlimitedDurationChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onUnlimitedDurationChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onMultiSelectChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onMultiSelectChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeDisplayedPath\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeDisplayedPath\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onBidChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onBidChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCloseAdSetDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onCloseAdSetDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAdSetSave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAdSetSave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAdSetDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAdSetDelete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAdSetEdit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAdSetEdit\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/search-ad/target-groups\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"ember-concurrency\", \"@ember/service\"], function (_exports, _controller, _tracking, _object, _emberConcurrency, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsSearchAdTargetGroupsController = _exports.default = (_dec = (0, _emberConcurrency.task)(function* () {}), _class = class InstanceCampaignsSearchAdTargetGroupsController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"googleConnectionState\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor6, this);\n      /**\n       * the model that is currently active\n       *\n       * @property activeModel\n       * @type {Model}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"activeModel\", _descriptor7, this);\n      /**\n       * the extensions meta data\n       *\n       * @property meta\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"meta\", _descriptor8, this);\n      /**\n       * whether the edit dialog is opened\n       *\n       * @property isEditDialog\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isEditDialog\", _descriptor9, this);\n      /**\n       * Fetches and returns the target-group meta-data\n       * Is replaced in setupController by task of parent controller\n       *\n       * @function fetchMeta\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchMeta\", _descriptor10, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    async onDelete(model) {\n      try {\n        await model.destroyRecord();\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      } catch (e) {\n        if (e && e.code === 'in_use') {\n          this.uiDialog.showError(this.intl.t('searchAdCampaigns.targetGroups.errorMessages.inUse.title'), this.intl.t('searchAdCampaigns.targetGroups.errorMessages.inUse.description'));\n        } else {\n          this.uiToast.showToast({\n            title: this.intl.t('toast.unexpectedError'),\n            type: 'error'\n          });\n        }\n      }\n    }\n    transitionToSettings() {\n      this.router.transitionTo('instance.settings');\n    }\n    openEditDialog(model) {\n      this.activeModel = model;\n      this.isEditDialog = true;\n    }\n    delete(model) {\n      this.uiDialog.showConfirm(this.intl.t('searchAdCampaigns.targetGroups.deleteDialog.title'), this.intl.t('searchAdCampaigns.targetGroups.deleteDialog.description', {\n        htmlSafe: true\n      }), () => this.onDelete(model), this.intl.t('global.actions.delete'), false, true);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"googleConnectionState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"activeModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isEditDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"fetchMeta\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"transitionToSettings\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"transitionToSettings\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openEditDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openEditDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"delete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"delete\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/trigger-email\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsTriggerEmailController = _exports.default = (_class = class InstanceCampaignsTriggerEmailController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _defineProperty(this, \"_detailRoutePath\", 'instance.campaigns.trigger-email.detail');\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    get _currentItem() {\n      return this.router.currentRoute.attributes;\n    }\n    get activeDetail() {\n      const currentRouteName = this.router.currentRouteName || '';\n      return currentRouteName.indexOf(this._detailRoutePath) > -1 ? currentRouteName : '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/trigger-email/detail\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@ember/object/computed\", \"@glimmer/tracking\", \"ember-concurrency\", \"@additive-apps/utils/utils/errors\", \"@additive-apps/ui/constants\"], function (_exports, _controller, _object, _service, _computed, _tracking, _emberConcurrency, _errors, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsTriggerEmailDetailController = _exports.default = (_dec = (0, _computed.alias)('fetchEmailMeta.isRunning'), _dec2 = (0, _computed.or)('isLoading', 'isError', '_isLoading'), _dec3 = (0, _object.computed)('router.currentRouteName'), _dec4 = (0, _object.computed)('model.orderedConfigurations'), _dec5 = (0, _object.computed)('currentUser.currentOrganization.accessibleApps'), _dec6 = (0, _emberConcurrency.task)(function* () {\n    this.isError = false;\n    try {\n      yield this.model.fetchMeta.perform();\n    } catch (error) {\n      this.isError = true;\n    }\n  }), _class = class InstanceCampaignsTriggerEmailDetailController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      /**\n       * the email campaign\n       *\n       * @argument model\n       * @type {Object}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor7, this);\n      /**\n       * whether an error occured\n       *\n       * @property isError\n       * @type {Boolean}\n       * @default false\n       */\n      _initializerDefineProperty(this, \"isError\", _descriptor8, this);\n      /**\n       * whether the modal to send a test email is open\n       *\n       * @property _isTestEmailDialogOpen\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _initializerDefineProperty(this, \"_isTestEmailDialogOpen\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_isLoading\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isPublishDialog\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isEditorOpened\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isLoading\", _descriptor13, this);\n      _initializerDefineProperty(this, \"hideContent\", _descriptor14, this);\n      /**\n       * Fetches the meta\n       * @function fetchEmailMeta\n       * @type {Task}\n       */\n      _initializerDefineProperty(this, \"fetchEmailMeta\", _descriptor15, this);\n    }\n    /**\n     * returns true if the active route is the vouchers list route\n     *\n     * @computed isEmailsRoute\n     * @return {Boolean} whether the vouchers route is active or not\n     */\n    get isEmailsRoute() {\n      return this.router.isActive('instance.campaigns.trigger-email.detail.index');\n    }\n    get _configurationKeys() {\n      const configurations = this.model && this.model.orderedConfigurations;\n      return configurations && Object.keys(configurations) || [];\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n\n    /**\n     * temporary check to use new view and content wizard only for dedicated campaigns\n     */\n    get _isNewView() {\n      var _this$model;\n      return (_this$model = this.model) === null || _this$model === void 0 ? void 0 : _this$model.isNewStructure;\n    }\n    get hasVoucherSettings() {\n      var _this$currentUser;\n      if (!((_this$currentUser = this.currentUser) !== null && _this$currentUser !== void 0 && (_this$currentUser = _this$currentUser.currentOrganization) !== null && _this$currentUser !== void 0 && _this$currentUser.accessibleApps)) {\n        return false;\n      }\n      const voucherApp = this.currentUser.currentOrganization.accessibleApps.filter(app => app.id === _constants.APP_ID_VOUCHER);\n      return !!voucherApp.length;\n    }\n    back() {\n      this.transitionToRoute('instance.campaigns.trigger-email');\n    }\n    transitionToCreate() {\n      if (this.router.isActive('instance.campaigns.trigger-email.detail.index')) {\n        this.transitionToRoute('instance.campaigns.trigger-email.detail.index.create');\n      } else if (this.router.isActive('instance.campaigns.trigger-email.detail.email-series')) {\n        this.transitionToRoute('instance.campaigns.trigger-email.detail.email-series.create');\n      }\n    }\n    async onConfigurationSave() {\n      try {\n        await this.model.save();\n      } catch (e) {\n        this.model.rollbackAttributes();\n        if (e) {\n          const errorDetail = (0, _errors.getAdapterError)(e);\n          if (errorDetail.custom) {\n            this.uiDialog.showAlert(this.intl.t('campaigns.configurations.errors.custom.title'), errorDetail && errorDetail.custom);\n            return;\n          }\n        }\n        this.uiDialog.showError();\n      }\n    }\n    async openPublishDialog(isEditorOpened) {\n      this.isEditorOpened = false;\n      if (!this.uiTransactionManager.hasTransactionId) {\n        try {\n          await this.uiTransactionManager.beginTransaction({\n            trigger: this.model.trigger,\n            type: this.model.type,\n            id: this.model.id\n          });\n        } catch (error) {\n          this.uiDialog.showError();\n          return;\n        }\n      }\n      if (typeof isEditorOpened == 'boolean' && isEditorOpened) {\n        this.isEditorOpened = true;\n      }\n      this.isPublishDialog = true;\n    }\n    async rollbackModel() {\n      var _this$model2;\n      // Rollback email-series and associated emails\n      const emailsSeriesCopy = ((_this$model2 = this.model) === null || _this$model2 === void 0 || (_this$model2 = _this$model2.emailSeries) === null || _this$model2 === void 0 ? void 0 : _this$model2.toArray()) || [];\n      emailsSeriesCopy.forEach(emailSeriesModel => {\n        var _emailSeriesModel$ema;\n        // Create a shallow copy of the emails array to avoid mutation issues\n        const emailsCopy = (emailSeriesModel === null || emailSeriesModel === void 0 || (_emailSeriesModel$ema = emailSeriesModel.emails) === null || _emailSeriesModel$ema === void 0 ? void 0 : _emailSeriesModel$ema.toArray()) || [];\n        emailsCopy.forEach(emailModel => {\n          emailModel === null || emailModel === void 0 || emailModel.rollbackAttributes();\n        });\n        emailSeriesModel === null || emailSeriesModel === void 0 || emailSeriesModel.rollbackAttributes();\n      });\n\n      // Rollback voucher\n      if (this.model.contribution) {\n        this.model.contribution.rollbackAttributes();\n      }\n      if (this.model.language !== this.uiAppSettings.currentLocale) {\n        this.uiAppSettings.setLocale(this.model.language);\n      }\n      this.model.rollbackAttributes();\n      await this.model.reload({\n        adapterOptions: {\n          useNewApi: true\n        }\n      });\n    }\n    async closePublishDialog(isSaved, isNew) {\n      let openEditor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n      if (isSaved) {\n        if (!isNew) {\n          await this.rollbackModel();\n        }\n        this.isPublishDialog = false;\n        return;\n      }\n      if (this.isEditorOpened || openEditor) {\n        this.router.transitionTo('instance.campaigns.trigger-email.detail.index.edit', this.model.id);\n      } else {\n        await this.rollbackModel();\n        await this.uiTransactionManager.discardTransaction();\n      }\n      this.isPublishDialog = false;\n    }\n    goToVoucherDetail(id) {\n      this.router.transitionTo('instance.campaigns.trigger-email.detail.index.voucher', id);\n    }\n    onUpgrade() {\n      window.open('https://www.additive.eu/en/marketing-software/additive-vouchers-hotel?utm_source=additive_mc&utm_medium=banner&utm_campaign=upgrade');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"_isTestEmailDialogOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"_isLoading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isPublishDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isEditorOpened\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"hideContent\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"isEmailsRoute\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"isEmailsRoute\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_configurationKeys\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"_configurationKeys\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasVoucherSettings\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"hasVoucherSettings\"), _class.prototype), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"fetchEmailMeta\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"back\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"back\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"transitionToCreate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"transitionToCreate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onConfigurationSave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onConfigurationSave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openPublishDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openPublishDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"rollbackModel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"rollbackModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closePublishDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closePublishDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goToVoucherDetail\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goToVoucherDetail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onUpgrade\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onUpgrade\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/trigger-email/detail/email-series\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsTriggerEmailDetailEmailSeriesController = _exports.default = (_class = class InstanceCampaignsTriggerEmailDetailEmailSeriesController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/trigger-email/detail/email-series/email-series\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsTriggerEmailDetailEmailSeriesEmailSeriesController = _exports.default = (_class = class InstanceCampaignsTriggerEmailDetailEmailSeriesEmailSeriesController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/trigger-email/detail/index\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsTriggerEmailDetailIndexController = _exports.default = (_class = class InstanceCampaignsTriggerEmailDetailIndexController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    get hasNewDetailView() {\n      var _this$model;\n      return (_this$model = this.model) === null || _this$model === void 0 ? void 0 : _this$model.isNewStructure;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/trigger-email/detail/index/edit\", [\"exports\", \"additive-mc/config/environment\", \"@ember/controller\", \"@ember/runloop\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/string\", \"ember-concurrency\", \"@ember/object/internals\"], function (_exports, _environment, _controller, _runloop, _tracking, _object, _service, _string, _emberConcurrency, _internals) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsTriggerEmailDetailEditController = _exports.default = (_dec = (0, _emberConcurrency.task)(function* () {\n    try {\n      const response = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.organizationId}/corporate-design`);\n      if (!response.ok) throw new Error();\n      const {\n        corporateDesign\n      } = yield response.json();\n      this._corporateDesignColors = corporateDesign.colors;\n    } catch (error) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class InstanceCampaignsTriggerEmailDetailEditController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor8, this);\n      _initializerDefineProperty(this, \"store\", _descriptor9, this);\n      _initializerDefineProperty(this, \"multimedia\", _descriptor10, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor11, this);\n      _defineProperty(this, \"model\", null);\n      _initializerDefineProperty(this, \"wizard\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isDiscardChangesDialog\", _descriptor13, this);\n      _initializerDefineProperty(this, \"isEmailSeriesCreateDialog\", _descriptor14, this);\n      _initializerDefineProperty(this, \"initialStep\", _descriptor15, this);\n      _initializerDefineProperty(this, \"_isLoading\", _descriptor16, this);\n      _initializerDefineProperty(this, \"selectedModel\", _descriptor17, this);\n      _initializerDefineProperty(this, \"isBulkAction\", _descriptor18, this);\n      _initializerDefineProperty(this, \"isTestEmailDialogOpen\", _descriptor19, this);\n      _initializerDefineProperty(this, \"isEmailSeriesOffsetError\", _descriptor20, this);\n      _initializerDefineProperty(this, \"selectedVoucherModel\", _descriptor21, this);\n      _initializerDefineProperty(this, \"selectedEmailModel\", _descriptor22, this);\n      _initializerDefineProperty(this, \"isVoucherPreviewDialog\", _descriptor23, this);\n      _initializerDefineProperty(this, \"isEmailPreviewDialog\", _descriptor24, this);\n      _initializerDefineProperty(this, \"_corporateDesignColors\", _descriptor25, this);\n      _initializerDefineProperty(this, \"_contributionValue\", _descriptor26, this);\n      _initializerDefineProperty(this, \"_contributionCustomType\", _descriptor27, this);\n      _initializerDefineProperty(this, \"fetchCorporateDesign\", _descriptor28, this);\n    }\n    get currentLanguage() {\n      return this.uiAppSettings.currentLocale;\n    }\n    get defaultLanguage() {\n      return this.uiAppSettings.languages.defaultLanguage;\n    }\n    get organizationId() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id;\n    }\n    get campaignId() {\n      return this.model.id;\n    }\n    get emailSeries() {\n      if (this.model.emailSeries.length <= 1) {\n        return this.model.emailSeries;\n      }\n      const sorted = this.model.emailSeries.toArray().sort((a, b) => a.offsetInDays - b.offsetInDays);\n      return sorted;\n    }\n    get hideSaveButton() {\n      var _this$model;\n      const publishedLanguages = (_this$model = this.model) === null || _this$model === void 0 ? void 0 : _this$model.publishedLanguages;\n      if (!publishedLanguages) {\n        return false;\n      }\n      return publishedLanguages.length > 0;\n    }\n    get hideSaveAndPublishButton() {\n      var _this$model2, _this$model3, _this$model4, _this$model5;\n      if (((_this$model2 = this.model) === null || _this$model2 === void 0 || (_this$model2 = _this$model2.availableLanguages) === null || _this$model2 === void 0 ? void 0 : _this$model2.length) > 0 || ((_this$model3 = this.model) === null || _this$model3 === void 0 || (_this$model3 = _this$model3.publishedLanguages) === null || _this$model3 === void 0 ? void 0 : _this$model3.length) > 0) {\n        return false;\n      }\n      if ((_this$model4 = this.model) !== null && _this$model4 !== void 0 && _this$model4.contribution) {\n        return false;\n      }\n      const emails = (_this$model5 = this.model) === null || _this$model5 === void 0 ? void 0 : _this$model5.emailSeries.filter(serie => {\n        var _serie$emails;\n        return ((_serie$emails = serie.emails) === null || _serie$emails === void 0 ? void 0 : _serie$emails.length) > 0;\n      });\n      if (emails.length > 0) {\n        return false;\n      }\n      return true;\n    }\n    openMultimedia(model) {\n      this.selectedModel = model;\n      this.multimedia.setSelectionOptions({\n        maxCount: 1,\n        type: 'image',\n        warningMessage: this.intl.t('global.warnings.multimedia.image')\n      });\n      this.router.transitionTo(`instance.campaigns.trigger-email.detail.index.edit.additive-multimedia-engine`);\n    }\n    closeMultimedia() {\n      this.multimedia.resetSelectionOptions();\n      this.router.transitionTo(`instance.campaigns.trigger-email.detail.index.edit`);\n    }\n    addMedium(_, _ref) {\n      var _this$selectedModel;\n      let [resource] = _ref;\n      (_this$selectedModel = this.selectedModel) === null || _this$selectedModel === void 0 || _this$selectedModel.transactionChange('image', resource);\n    }\n    async rollbackModel() {\n      var _this$model6;\n      // Rollback email-series and associated emails\n      const emailsSeriesCopy = ((_this$model6 = this.model) === null || _this$model6 === void 0 || (_this$model6 = _this$model6.emailSeries) === null || _this$model6 === void 0 ? void 0 : _this$model6.toArray()) || [];\n      emailsSeriesCopy.forEach(emailSeriesModel => {\n        var _emailSeriesModel$ema;\n        // Create a shallow copy of the emails array to avoid mutation issues\n        const emailsCopy = (emailSeriesModel === null || emailSeriesModel === void 0 || (_emailSeriesModel$ema = emailSeriesModel.emails) === null || _emailSeriesModel$ema === void 0 ? void 0 : _emailSeriesModel$ema.toArray()) || [];\n        emailsCopy.forEach(emailModel => {\n          emailModel === null || emailModel === void 0 || emailModel.rollbackAttributes();\n        });\n        emailSeriesModel === null || emailSeriesModel === void 0 || emailSeriesModel.rollbackAttributes();\n      });\n\n      // Rollback voucher\n      if (this.model.contribution) {\n        this.model.contribution.rollbackAttributes();\n      }\n      if (this.model.language !== this.uiAppSettings.currentLocale) {\n        this.uiAppSettings.setLocale(this.model.language);\n      }\n      this.model.rollbackAttributes();\n      await this.model.reload({\n        adapterOptions: {\n          useNewApi: true\n        }\n      });\n    }\n    async onDiscardChanges() {\n      await this.uiTransactionManager.discardTransaction();\n      this.isDiscardChangesDialog = false;\n      if (this.model.isNew) {\n        this.router.transitionTo('instance.campaigns.trigger-email');\n      } else {\n        this.rollbackModel();\n        this.router.transitionTo('instance.campaigns.trigger-email.detail', this.model);\n      }\n    }\n    async onClose() {\n      if (this.uiTransactionManager.hasChanges) {\n        this.isDiscardChangesDialog = true;\n        return;\n      }\n      await this.uiTransactionManager.discardTransaction();\n      if (this.model.isNew) {\n        this.router.transitionTo('instance.campaigns.trigger-email');\n      } else {\n        this.router.transitionTo('instance.campaigns.trigger-email.detail', this.model);\n      }\n    }\n    onPublish() {\n      this.router.transitionTo('instance.campaigns.trigger-email.detail', this.model);\n      this.openPublishDialog(true);\n    }\n    async onEnterStep(model, key) {\n      this._isLoading = true;\n      if (key === 'voucher') {\n        this._contributionValue = model.amount;\n        this._contributionCustomType = model.customType;\n      }\n      if (model.availableLanguages.length === 0) {\n        model.availableLanguages.push(model.language);\n        model.transactionAddLanguage(model.language);\n      }\n      await this.model.fetchMeta.perform(model.language);\n\n      // Check whether model includes the requested language\n      if (model.availableLanguages.includes(model.language)) {\n        this._isLoading = false;\n        return;\n      }\n\n      // Model not available in requested language\n      // We need to reload the model, to retrieve the model in some other (fallback) language\n\n      // Rollback is needed, otherwise properties are not updated correctly\n      model.rollbackAttributes();\n      let adapterOptions = {\n        campaignId: this.campaignId,\n        type: model._internalModel.modelName,\n        useNewApi: true\n      };\n      if (key === 'email') {\n        adapterOptions.emailSeriesId = model.emailSeriesId;\n      }\n      await model.reload({\n        adapterOptions: adapterOptions\n      });\n      await this.model.fetchMeta.perform(model.language);\n      this._isLoading = false;\n    }\n    async onSave() {\n      // Open publish dialog if campaign is active\n      if (this.model.active) {\n        this.onPublish();\n        return;\n      }\n      this._isLoading = true;\n      let toast = this.uiToast.showToast({\n        title: this.intl.t('triggerEmailCampaigns.toast.save.title'),\n        description: this.intl.t('triggerEmailCampaigns.toast.save.text'),\n        type: 'loading',\n        duration: -1\n      });\n      if (this.model.language !== this.uiAppSettings.currentLocale) {\n        this.uiAppSettings.setLocale(this.model.language);\n      }\n      const response = await this.uiTransactionManager.commitTransaction();\n      if (response !== null && response !== void 0 && response.message) {\n        this.uiToast.destroyToast(toast);\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n        if ((response === null || response === void 0 ? void 0 : response.status) === 409 && response.message) {\n          this.uiDialog.showError(null, response.message);\n        }\n        this._isLoading = false;\n        return;\n      }\n      if (this.model.isNew) {\n        const metadata = this.model.meta;\n\n        // Remove record with temporary id\n        this.model.rollbackAttributes();\n        await this.store.unloadRecord(this.model);\n\n        // Add campaign with permanent id to store\n        await this.store.pushPayload('trigger-email-campaign', {\n          triggerEmailCampaigns: response.campaign\n        });\n        this.model = await this.store.peekRecord('trigger-email-campaign', response.campaign.id);\n\n        // Set metadata\n        this.model.meta = metadata;\n\n        // Add new campaign to filter\n        this.uiFilter.addItem('trigger-email', this.model);\n      } else {\n        // Rollback & reload model\n        await this.rollbackModel();\n      }\n      this.uiFilter.loadModel('trigger-email');\n      this.uiToast.destroyToast(toast);\n      this.uiToast.showToast({\n        title: this.intl.t('toast.success'),\n        type: 'success'\n      });\n      this._isLoading = false;\n      this.router.transitionTo('instance.campaigns.trigger-email.detail', this.model);\n    }\n    async ensureActivityStartDate() {\n      const configurations = this.model.configurations || [];\n      let activityStartDateConfig = configurations.find(configuration => configuration.key === 'activity_start_date');\n      if (!activityStartDateConfig) {\n        activityStartDateConfig = {\n          key: 'activity_start_date',\n          value: null\n        };\n        configurations.push(activityStartDateConfig);\n        this.model.configurations = configurations;\n      }\n      if (!activityStartDateConfig.value) {\n        const today = new Date();\n        today.setHours(0, 0, 0, 0);\n        await this.model.transactionConfigurationChange('activity_start_date', today);\n      }\n    }\n    async createEmailSeries(newEmailSeries, isFirstEmailSeries) {\n      this._isLoading = true;\n      const emailSeries = await this.store.createRecord('trigger-email-campaign-email-series');\n\n      // assign temporary id\n      emailSeries.id = `tmp-${(0, _internals.guidFor)(emailSeries)}`;\n      emailSeries.offsetInDays = newEmailSeries.offsetInDays;\n      if (isFirstEmailSeries) {\n        // First email series should be activated by default\n        emailSeries.state = 'active';\n      }\n      this.model.emailSeries.pushObject(emailSeries);\n      await emailSeries.transactionCreateRecord();\n      if (!isFirstEmailSeries) {\n        // First email series should not have a label by default\n        await emailSeries.transactionChange('label', newEmailSeries.label);\n      }\n      this._isLoading = false;\n      this.isEmailSeriesCreateDialog = false;\n    }\n    openSendTestEmailDialog(model, isBulk) {\n      this.selectedModel = model;\n      this.isBulkAction = isBulk;\n      this.isTestEmailDialogOpen = true;\n    }\n    onDelete(model) {\n      this.uiDialog.showConfirm(this.intl.t('triggerEmailCampaigns.deleteDialog.title'), (0, _string.htmlSafe)(this.intl.t('triggerEmailCampaigns.deleteDialog.description')), () => model.transactionDeleteRecord(), this.intl.t('global.actions.delete'), true, true);\n    }\n    async openPreviewDialog(model, type, selectedLanguage) {\n      if (type === 'voucher') {\n        this.isVoucherPreviewDialog = true;\n        this.selectedVoucherModel = model;\n      } else if (type === 'email') {\n        this.isEmailPreviewDialog = true;\n        this.selectedEmailModel = model;\n      }\n      const language = selectedLanguage && typeof selectedLanguage === 'string' ? selectedLanguage : model.language;\n      try {\n        // Fetch and display content for preview dialog\n        const baseUrl = `${_environment.default.APP.apiBaseHost}/${this.organizationId}/content-wizard/transactions`;\n        const url = `${baseUrl}/${model.uiTransactionManager.transactionId}/${model.transactionUrl}/preview`;\n        const response = await this.authenticatedFetch.fetch(url, {\n          headers: {\n            'Accept-Language': language\n          }\n        });\n        if (!response || !response.ok) {\n          throw new Error();\n        }\n        const html = await response.text();\n        const iframe = document.getElementById(`${type}-preview-iframe`);\n        const iframeDocument = iframe.contentDocument;\n        iframeDocument.open();\n        iframeDocument.write((0, _string.htmlSafe)(html));\n        iframeDocument.close();\n      } catch (error) {\n        if (type === 'voucher') {\n          this.isVoucherPreviewDialog = false;\n        } else if (type === 'email') {\n          this.isEmailPreviewDialog = false;\n        }\n      }\n    }\n    setInitialStep(step) {\n      this.initialStep = step;\n    }\n    onStepChange(stepSlug) {\n      let slugParts = stepSlug.split('.');\n      if (slugParts.length === 2 && slugParts[0] === 'emails') {\n        this.isEmailSeriesOffsetError = false;\n        const emailSeriesId = slugParts[1];\n        const emailSeries = this.emailSeries.find(emailSeries => emailSeries.id === emailSeriesId);\n        const isDuplicateOffset = this.emailSeries.find(item => item.offsetInDays == emailSeries.offsetInDays && item.id !== emailSeriesId);\n        if (isDuplicateOffset) {\n          this.isEmailSeriesOffsetError = true;\n        }\n      }\n    }\n    async createEmail(emailSeries, stepSlug) {\n      // This function can be called from detail-view.\n      // We need to make sure that the transaction ID is already available.\n      await new Promise(resolve => {\n        const checkTransactionId = () => {\n          var _this$model7;\n          if ((_this$model7 = this.model) !== null && _this$model7 !== void 0 && (_this$model7 = _this$model7.uiTransactionManager) !== null && _this$model7 !== void 0 && _this$model7.transactionId) {\n            resolve();\n          } else {\n            _runloop.run.later(this, checkTransactionId, 100);\n          }\n        };\n        checkTransactionId();\n      });\n      this._isLoading = true;\n      const email = this.store.createRecord('trigger-email-campaign-email', {\n        active: false\n      });\n\n      // assign temporary id\n      email.id = `tmp-${(0, _internals.guidFor)(email)}`;\n      email.language = this.defaultLanguage;\n      email.availableLanguages = [this.defaultLanguage];\n      emailSeries.emails.pushObject(email);\n\n      // Open newly created email\n      this.wizard.onChangeStep(`${stepSlug}.${email.id}`);\n      await email.transactionCreateRecord();\n      this._isLoading = false;\n    }\n    didInsertContentWizard(wizard) {\n      if (wizard !== null && wizard !== void 0 && wizard.onChangeStep) {\n        this.wizard = wizard;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"multimedia\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"wizard\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChangesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"isEmailSeriesCreateDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"initialStep\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"_isLoading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"selectedModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"isBulkAction\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"isTestEmailDialogOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"isEmailSeriesOffsetError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"selectedVoucherModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"selectedEmailModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"isVoucherPreviewDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"isEmailPreviewDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"_corporateDesignColors\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"_contributionValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 0;\n    }\n  }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"_contributionCustomType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 0;\n    }\n  }), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"fetchCorporateDesign\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addMedium\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addMedium\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"rollbackModel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"rollbackModel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDiscardChanges\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDiscardChanges\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPublish\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onPublish\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onEnterStep\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onEnterStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"ensureActivityStartDate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"ensureActivityStartDate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createEmailSeries\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createEmailSeries\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openSendTestEmailDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openSendTestEmailDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDelete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openPreviewDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openPreviewDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setInitialStep\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setInitialStep\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onStepChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onStepChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createEmail\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createEmail\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didInsertContentWizard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertContentWizard\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/trigger-email/detail/index/email\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsTriggerEmailDetailIndexEmailController = _exports.default = (_class = class InstanceCampaignsTriggerEmailDetailIndexEmailController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/controllers/instance/campaigns/trigger-email/detail/index/voucher\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@additive-apps/auth/utils/roles-map\"], function (_exports, _controller, _service, _object, _rolesMap) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsTriggerEmailDetailIndexVoucherController = _exports.default = (_class = class InstanceCampaignsTriggerEmailDetailIndexVoucherController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    get _isReadOnly() {\n      var _this$currentUser$use;\n      if ((0, _rolesMap.hasAccess)(_rolesMap.ROLE_MANAGER, (_this$currentUser$use = this.currentUser.user) === null || _this$currentUser$use === void 0 ? void 0 : _this$currentUser$use.role)) {\n        return false;\n      }\n      return true;\n    }\n    openMultimedia() {\n      this.router.transitionTo('instance.campaigns.trigger-email.detail.index.voucher.additive-multimedia-engine');\n    }\n    closeMultimedia() {\n      this.router.transitionTo('instance.campaigns.trigger-email.detail.index.voucher');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openMultimedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeMultimedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMultimedia\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/dashboard\", [\"exports\", \"additive-mc/config/environment\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"ember-concurrency\", \"date-fns\"], function (_exports, _environment, _controller, _service, _object, _emberConcurrency, _dateFns) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _controller.default.extend({\n    authenticatedFetch: (0, _service.inject)(),\n    currentUser: (0, _service.inject)(),\n    uiToast: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    organizationSlug: _object.computed.alias('currentUser.currentOrganization.id'),\n    getSelectedDateRange: (0, _object.computed)('dateRange.{end,start}', 'dateRanges', {\n      get() {\n        if (!this.dateRanges || !this.dateRange) {\n          return;\n        }\n        const selected = this.dateRanges.filter(dateRange => dateRange.start === this.dateRange.start && dateRange.end === this.dateRange.end)[0];\n        return selected;\n      }\n    }),\n    salutation: (0, _object.computed)('currentUser.user.fullName', {\n      get() {\n        var _this$currentUser;\n        const time = (0, _dateFns.format)(new Date(), 'HH:mm');\n        let salutation;\n        let name = (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.user) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.fullName) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.split(' ')[0];\n        name == undefined ? name = '' : name = `, ${name}`;\n        time > '00:00' && time <= '12:00' ? salutation = this.intl.t(`dashboard.salutations.morning`) : time > '12:00' && time < '17:00' ? salutation = this.intl.t(`dashboard.salutations.afternoon`) : salutation = this.intl.t(`dashboard.salutations.evening`);\n        return `${salutation}${name}!`;\n      }\n    }),\n    getDateRange: (0, _emberConcurrency.task)(function* () {\n      const tasks = [];\n      const baseUrl = _environment.default.APP.apiBaseHost;\n      const url = `${baseUrl}/${this.organizationSlug}/dashboard/filters`;\n      try {\n        tasks.push(this.authenticatedFetch.fetch(url));\n        tasks.push((0, _emberConcurrency.timeout)(250));\n        const [response] = yield (0, _emberConcurrency.all)(tasks);\n        if (response && response.ok) {\n          const {\n            dateranges\n          } = yield response.json();\n          (0, _object.set)(this, 'dateRanges', dateranges);\n          (0, _object.set)(this, 'dateRange', {\n            start: dateranges[0].start,\n            end: dateranges[0].end\n          });\n        } else {\n          const {\n            errors\n          } = yield response.json();\n          throw new Error(`${errors}`);\n        }\n      } catch (error) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error'\n        });\n      }\n    }),\n    actions: {\n      onDateRangeChange(value) {\n        const dateRange = this.dateRanges.filter(dateRange => dateRange.value === value)[0];\n        (0, _object.set)(this, 'dateRange', {\n          start: dateRange.start,\n          end: dateRange.end\n        });\n      }\n    }\n  });\n});","define(\"additive-mc/controllers/instance/preview/email\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _controller, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstancePreviewEmailController = _exports.default = (_class = class InstancePreviewEmailController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor2, this);\n      /**\n       * the email model\n       *\n       * @property model\n       * @type {DS.Model}\n       */\n      _initializerDefineProperty(this, \"model\", _descriptor3, this);\n    }\n    get _isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"model\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _class);\n});","define(\"additive-mc/controllers/instance/reports/ad/index\", [\"exports\", \"additive-mc/config/environment\", \"@ember/controller\", \"@ember/service\", \"@ember/object/computed\", \"@ember/object\", \"@glimmer/tracking\", \"ember-concurrency\", \"additive-mc/utils/constants\", \"@additive-apps/utils/utils/plans\", \"@additive-apps/ui/utils/query-param-util\"], function (_exports, _environment, _controller, _service, _computed, _object, _tracking, _emberConcurrency, _constants, _plans, _queryParamUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceReportsAdController = _exports.default = (_dec = (0, _computed.alias)('currentUser.currentOrganization.id'), _dec2 = (0, _object.computed)('uiAppSettings.planName'), _dec3 = (0, _emberConcurrency.task)(function* () {\n    const tasks = [];\n    const baseUrl = _environment.default.APP.apiBaseHost;\n    const {\n      start,\n      end\n    } = this;\n    let qps = '';\n    if (start && end) {\n      qps = (0, _queryParamUtil.getQueryParams)({\n        start,\n        end\n      });\n    }\n    const url = `${baseUrl}/${this.organizationSlug}/reports/ad${qps}`;\n    try {\n      tasks.push(this.authenticatedFetch.fetch(url, {\n        signal: this.abortController && this.abortController.signal\n      }));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      const {\n        metrics\n      } = yield response.json();\n      this._adOverviewMetrics = metrics;\n    } catch (error) {\n      if (error && error.name === 'AbortError') {\n        return;\n      }\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class InstanceReportsAdController extends _controller.default {\n    constructor() {\n      var _this$_activeFilters, _this$_activeFilters2, _this$_activeFilters7, _this$_activeFilters8, _this$_activeFilters9, _this$_activeFilters10, _this$_activeFilters11;\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", [{\n        queryStart: 'start',\n        queryEnd: 'end'\n      }, 'dateFilter']);\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor4, this);\n      _defineProperty(this, \"upgradeEnquiryUrl\", _constants.UPGRADE_ENQUIRY_URL);\n      /**\n       * AbortController for the current fetch\n       *\n       * @property abortController\n       * @type {AbortController}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"abortController\", _descriptor5, this);\n      _initializerDefineProperty(this, \"start\", _descriptor6, this);\n      _initializerDefineProperty(this, \"end\", _descriptor7, this);\n      _initializerDefineProperty(this, \"queryStart\", _descriptor8, this);\n      _initializerDefineProperty(this, \"queryEnd\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateFilter\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_defaultFilter\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_activeFilters\", _descriptor12, this);\n      /**\n       * the fetched ad overview metrics\n       *\n       * @property _adOverviewMetrics\n       * @type Object\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_adOverviewMetrics\", _descriptor13, this);\n      _initializerDefineProperty(this, \"initialRange\", _descriptor14, this);\n      /**\n       * fetches the campaigns\n       *\n       * @type {Task}\n       * @function fetchCampaigns\n       */\n      _initializerDefineProperty(this, \"fetchAdOverview\", _descriptor15, this);\n      this.abortController = new AbortController();\n      if (!localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY)) localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({}));\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n\n      // get date filter from query params\n      const urlParams = new URLSearchParams(window.location.search);\n      const dateFilter = urlParams.get('dateFilter');\n      const start = urlParams.get('start');\n      const end = urlParams.get('end');\n      if ((_this$_activeFilters = this._activeFilters) !== null && _this$_activeFilters !== void 0 && _this$_activeFilters.start || (_this$_activeFilters2 = this._activeFilters) !== null && _this$_activeFilters2 !== void 0 && _this$_activeFilters2.end || start && end) {\n        var _this$_activeFilters3, _this$_activeFilters4, _this$_activeFilters5, _this$_activeFilters6;\n        const _dateRange = {\n          start: start || this._activeFilters.start,\n          end: end || this._activeFilters.end\n        };\n        if (start && end) this._activeFilters.dateFilter = 'custom_date';\n        if ((_this$_activeFilters3 = this._activeFilters) !== null && _this$_activeFilters3 !== void 0 && _this$_activeFilters3.dateFilter && typeof ((_this$_activeFilters4 = this._activeFilters) === null || _this$_activeFilters4 === void 0 ? void 0 : _this$_activeFilters4.dateFilter) === 'object') this._activeFilters.dateFilter = (_this$_activeFilters5 = this._activeFilters) === null || _this$_activeFilters5 === void 0 ? void 0 : _this$_activeFilters5.dateFilter.value;\n        localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({\n          start: _dateRange.start,\n          end: _dateRange.end,\n          dateFilter: (_this$_activeFilters6 = this._activeFilters) === null || _this$_activeFilters6 === void 0 ? void 0 : _this$_activeFilters6.dateFilter\n        }));\n        this.initialRange = _objectSpread({}, _dateRange);\n        this.start = _dateRange.start;\n        this.end = _dateRange.end;\n      }\n      if ((_this$_activeFilters7 = this._activeFilters) !== null && _this$_activeFilters7 !== void 0 && _this$_activeFilters7.dateFilter && typeof ((_this$_activeFilters8 = this._activeFilters) === null || _this$_activeFilters8 === void 0 ? void 0 : _this$_activeFilters8.dateFilter) === 'object') this._activeFilters.dateFilter = (_this$_activeFilters9 = this._activeFilters) === null || _this$_activeFilters9 === void 0 ? void 0 : _this$_activeFilters9.dateFilter.value;\n      dateFilter && !start && !end ? this._defaultFilter = dateFilter : (_this$_activeFilters10 = this._activeFilters) !== null && _this$_activeFilters10 !== void 0 && _this$_activeFilters10.dateFilter ? this._defaultFilter = (_this$_activeFilters11 = this._activeFilters) === null || _this$_activeFilters11 === void 0 ? void 0 : _this$_activeFilters11.dateFilter : this._defaultFilter = 'last_month';\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n    }\n    get isStarter() {\n      var _this$uiAppSettings;\n      const currentPlan = (_this$uiAppSettings = this.uiAppSettings) === null || _this$uiAppSettings === void 0 ? void 0 : _this$uiAppSettings.planName;\n      return (0, _plans.is)(currentPlan, _plans.PLAN_STARTER);\n    }\n    onFilterChange(newRange) {\n      this.abortController && this.abortController.abort();\n      this.abortController = new AbortController();\n\n      // Update query params\n      this.start = newRange.start;\n      this.end = newRange.end;\n      this._defaultFilter = newRange.dateFilter;\n      if (typeof this._defaultFilter === 'object') this._defaultFilter = this._defaultFilter.value;\n      localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({\n        start: this.start,\n        end: this.end,\n        dateFilter: this._defaultFilter\n      }));\n      if (this._defaultFilter === 'custom_date') {\n        this.queryStart = this.start;\n        this.queryEnd = this.end;\n        this.dateFilter = null;\n      } else {\n        this.queryStart = null;\n        this.queryEnd = null;\n        this.dateFilter = this._defaultFilter;\n      }\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"abortController\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"start\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"end\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"queryStart\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"queryEnd\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"dateFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"_defaultFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"_activeFilters\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"_adOverviewMetrics\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"initialRange\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isStarter\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"isStarter\"), _class.prototype), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"fetchAdOverview\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onFilterChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onFilterChange\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/reports/email/index\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object/computed\", \"@ember/object\", \"@glimmer/tracking\", \"additive-mc/utils/constants\"], function (_exports, _controller, _service, _computed, _object, _tracking, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceReportsSocialController = _exports.default = (_dec = (0, _computed.alias)('currentUser.currentOrganization.id'), _class = class InstanceReportsSocialController extends _controller.default {\n    constructor() {\n      var _this$_activeFilters, _this$_activeFilters2, _this$_activeFilters7, _this$_activeFilters8, _this$_activeFilters9, _this$_activeFilters10, _this$_activeFilters11;\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"queryParams\", _descriptor3, this);\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor4, this);\n      /**\n       * AbortController for the current fetch\n       *\n       * @property abortController\n       * @type {AbortController}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"abortController\", _descriptor5, this);\n      _initializerDefineProperty(this, \"start\", _descriptor6, this);\n      _initializerDefineProperty(this, \"end\", _descriptor7, this);\n      _initializerDefineProperty(this, \"queryStart\", _descriptor8, this);\n      _initializerDefineProperty(this, \"queryEnd\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateFilter\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_defaultFilter\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_activeFilters\", _descriptor12, this);\n      _initializerDefineProperty(this, \"initialRange\", _descriptor13, this);\n      this.abortController = new AbortController();\n      if (!localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY)) localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({}));\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n\n      // get date filter from query params\n      const urlParams = new URLSearchParams(window.location.search);\n      const dateFilter = urlParams.get('dateFilter');\n      const start = urlParams.get('start');\n      const end = urlParams.get('end');\n      if ((_this$_activeFilters = this._activeFilters) !== null && _this$_activeFilters !== void 0 && _this$_activeFilters.start && (_this$_activeFilters2 = this._activeFilters) !== null && _this$_activeFilters2 !== void 0 && _this$_activeFilters2.end || start && end) {\n        var _this$_activeFilters3, _this$_activeFilters4, _this$_activeFilters5, _this$_activeFilters6;\n        const _dateRange = {\n          start: start || this._activeFilters.start,\n          end: end || this._activeFilters.end\n        };\n        if (start && end) this._activeFilters.dateFilter = 'custom_date';\n        if ((_this$_activeFilters3 = this._activeFilters) !== null && _this$_activeFilters3 !== void 0 && _this$_activeFilters3.dateFilter && typeof ((_this$_activeFilters4 = this._activeFilters) === null || _this$_activeFilters4 === void 0 ? void 0 : _this$_activeFilters4.dateFilter) === 'object') this._activeFilters.dateFilter = (_this$_activeFilters5 = this._activeFilters) === null || _this$_activeFilters5 === void 0 ? void 0 : _this$_activeFilters5.dateFilter.value;\n        localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({\n          start: _dateRange.start,\n          end: _dateRange.end,\n          dateFilter: (_this$_activeFilters6 = this._activeFilters) === null || _this$_activeFilters6 === void 0 ? void 0 : _this$_activeFilters6.dateFilter\n        }));\n        this.initialRange = _objectSpread({}, _dateRange);\n        this.start = _dateRange.start;\n        this.end = _dateRange.end;\n      }\n      if ((_this$_activeFilters7 = this._activeFilters) !== null && _this$_activeFilters7 !== void 0 && _this$_activeFilters7.dateFilter && typeof ((_this$_activeFilters8 = this._activeFilters) === null || _this$_activeFilters8 === void 0 ? void 0 : _this$_activeFilters8.dateFilter) === 'object') this._activeFilters.dateFilter = (_this$_activeFilters9 = this._activeFilters) === null || _this$_activeFilters9 === void 0 ? void 0 : _this$_activeFilters9.dateFilter.value;\n      dateFilter && !start && !end ? this._defaultFilter = dateFilter : (_this$_activeFilters10 = this._activeFilters) !== null && _this$_activeFilters10 !== void 0 && _this$_activeFilters10.dateFilter ? this._defaultFilter = (_this$_activeFilters11 = this._activeFilters) === null || _this$_activeFilters11 === void 0 ? void 0 : _this$_activeFilters11.dateFilter : this._defaultFilter = 'last_month';\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n    }\n    onFilterChange(newRange) {\n      this.abortController && this.abortController.abort();\n      this.abortController = new AbortController();\n\n      // Update query params\n      this.start = newRange.start;\n      this.end = newRange.end;\n      this._defaultFilter = newRange.dateFilter;\n      if (typeof this._defaultFilter === 'object') this._defaultFilter = this._defaultFilter.value;\n      localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({\n        start: this.start,\n        end: this.end,\n        dateFilter: this._defaultFilter\n      }));\n      if (this._defaultFilter === 'custom_date') {\n        this.queryStart = this.start;\n        this.queryEnd = this.end;\n        this.dateFilter = null;\n      } else {\n        this.queryStart = null;\n        this.queryEnd = null;\n        this.dateFilter = this._defaultFilter;\n      }\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"queryParams\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [{\n        queryStart: 'start',\n        queryEnd: 'end'\n      }, 'dateFilter'];\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"abortController\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"start\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"end\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"queryStart\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"queryEnd\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"dateFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"_defaultFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"_activeFilters\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"initialRange\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onFilterChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onFilterChange\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/reports/index\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"additive-mc/utils/constants\"], function (_exports, _controller, _service, _object, _tracking, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceReportsController = _exports.default = (_class = class InstanceReportsController extends _controller.default {\n    get organizationSlug() {\n      return this.currentUser.currentOrganization.id;\n    }\n    get isEnterprisePlan() {\n      return this.uiAppSettings.isEnterprisePlan;\n    }\n    get isProfessionalPlan() {\n      return this.uiAppSettings.isProfessionalPlan;\n    }\n    get isAdditive() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.user) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.isAdditive;\n    }\n\n    /**\n     * the available modules\n     *\n     * @computed modules\n     * @returns {Array}\n     */\n    get modules() {\n      return [...(this.isProfessionalPlan || this.isEnterprisePlan ? [{\n        label: this.intl.t('reports.campaignCards.email'),\n        value: 'email'\n      }] : []), {\n        label: this.intl.t('reports.campaignCards.triggerEmail'),\n        value: 'trigger-email'\n      }, ...(this.isEnterprisePlan || !this.isProfessionalPlan ? [{\n        label: this.intl.t('reports.campaignCards.ad'),\n        value: 'ad'\n      }] : []), ...(this.hasReferralModule ? [{\n        label: this.intl.t('reports.campaignCards.referral'),\n        value: 'referral'\n      }] : []), {\n        label: this.intl.t('reports.campaignCards.popUp'),\n        value: 'on-page'\n      }];\n    }\n    get filters() {\n      let filters = Object.assign({}, {\n        start: this.start,\n        end: this.end\n      });\n      if (this.filteredModules && this.filteredModules.length > 0) {\n        let modules = [];\n        this.filteredModules.forEach(module => {\n          modules.push(module.value);\n        });\n        filters = Object.assign(filters, {\n          modules: modules.join(',')\n        });\n      } else {\n        delete filters.modules;\n      }\n      return filters;\n    }\n    constructor() {\n      var _this$_activeFilters, _this$_activeFilters2, _this$_activeFilters7, _this$_activeFilters8, _this$_activeFilters9, _this$_activeFilters10, _this$_activeFilters11;\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor3, this);\n      _initializerDefineProperty(this, \"queryParams\", _descriptor4, this);\n      /**\n       * the abort controller to cancel filter requests\n       *\n       * @property abortController\n       * @default null\n       */\n      _initializerDefineProperty(this, \"abortController\", _descriptor5, this);\n      _initializerDefineProperty(this, \"selectedModules\", _descriptor6, this);\n      _initializerDefineProperty(this, \"filteredModules\", _descriptor7, this);\n      /**\n       * this is the value of the query parameter start\n       *\n       * @property start\n       * @default null\n       */\n      _initializerDefineProperty(this, \"start\", _descriptor8, this);\n      /**\n       * this is the value of the query parameter end\n       *\n       * @property start\n       * @default null\n       */\n      _initializerDefineProperty(this, \"end\", _descriptor9, this);\n      /**\n       * this is the value of the query parameter dateFilter\n       *\n       * @property dateFilter\n       * @default null\n       */\n      _initializerDefineProperty(this, \"dateFilter\", _descriptor10, this);\n      /**\n       * value of the query param start\n       *\n       * @property start\n       * @default null\n       */\n      _initializerDefineProperty(this, \"queryStart\", _descriptor11, this);\n      /**\n       * value of the query param end\n       *\n       * @property start\n       * @default null\n       */\n      _initializerDefineProperty(this, \"queryEnd\", _descriptor12, this);\n      _initializerDefineProperty(this, \"_defaultFilter\", _descriptor13, this);\n      _initializerDefineProperty(this, \"_activeFilters\", _descriptor14, this);\n      _initializerDefineProperty(this, \"initialRange\", _descriptor15, this);\n      this.abortController = new AbortController();\n      if (!localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY)) localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({}));\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n\n      // get date filter from query params\n      const urlParams = new URLSearchParams(window.location.search);\n      const dateFilter = urlParams.get('dateFilter');\n      const start = urlParams.get('start');\n      const end = urlParams.get('end');\n      if ((_this$_activeFilters = this._activeFilters) !== null && _this$_activeFilters !== void 0 && _this$_activeFilters.start || (_this$_activeFilters2 = this._activeFilters) !== null && _this$_activeFilters2 !== void 0 && _this$_activeFilters2.end || start && end) {\n        var _this$_activeFilters3, _this$_activeFilters4, _this$_activeFilters5, _this$_activeFilters6;\n        const _dateRange = {\n          start: start || this._activeFilters.start,\n          end: end || this._activeFilters.end\n        };\n        if (start && end) this._activeFilters.dateFilter = 'custom_date';\n        if ((_this$_activeFilters3 = this._activeFilters) !== null && _this$_activeFilters3 !== void 0 && _this$_activeFilters3.dateFilter && typeof ((_this$_activeFilters4 = this._activeFilters) === null || _this$_activeFilters4 === void 0 ? void 0 : _this$_activeFilters4.dateFilter) === 'object') this._activeFilters.dateFilter = (_this$_activeFilters5 = this._activeFilters) === null || _this$_activeFilters5 === void 0 ? void 0 : _this$_activeFilters5.dateFilter.value;\n        localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({\n          start: _dateRange.start,\n          end: _dateRange.end,\n          dateFilter: (_this$_activeFilters6 = this._activeFilters) === null || _this$_activeFilters6 === void 0 ? void 0 : _this$_activeFilters6.dateFilter\n        }));\n        this.initialRange = _objectSpread({}, _dateRange);\n        this.start = _dateRange.start;\n        this.end = _dateRange.end;\n      }\n      if ((_this$_activeFilters7 = this._activeFilters) !== null && _this$_activeFilters7 !== void 0 && _this$_activeFilters7.dateFilter && typeof ((_this$_activeFilters8 = this._activeFilters) === null || _this$_activeFilters8 === void 0 ? void 0 : _this$_activeFilters8.dateFilter) === 'object') this._activeFilters.dateFilter = (_this$_activeFilters9 = this._activeFilters) === null || _this$_activeFilters9 === void 0 ? void 0 : _this$_activeFilters9.dateFilter.value;\n      dateFilter && !start && !end ? this._defaultFilter = dateFilter : (_this$_activeFilters10 = this._activeFilters) !== null && _this$_activeFilters10 !== void 0 && _this$_activeFilters10.dateFilter ? this._defaultFilter = (_this$_activeFilters11 = this._activeFilters) === null || _this$_activeFilters11 === void 0 ? void 0 : _this$_activeFilters11.dateFilter : this._defaultFilter = 'last_month';\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n    }\n    onFilterChange(newRange) {\n      this.abortController && this.abortController.abort();\n      this.abortController = new AbortController();\n\n      // Update query params\n      this.start = newRange.start;\n      this.end = newRange.end;\n      this._defaultFilter = newRange.dateFilter;\n      if (typeof this._defaultFilter === 'object') this._defaultFilter = this._defaultFilter.value;\n      localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({\n        start: this.start,\n        end: this.end,\n        dateFilter: this._defaultFilter\n      }));\n      if (this._defaultFilter === 'custom_date') {\n        this.queryStart = this.start;\n        this.queryEnd = this.end;\n        this.dateFilter = null;\n      } else {\n        this.queryStart = null;\n        this.queryEnd = null;\n        this.dateFilter = this._defaultFilter;\n      }\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n    }\n    onModuleSelectClose() {\n      var _this$filteredModules, _this$selectedModules, _this$selectedModules2;\n      if (((_this$filteredModules = this.filteredModules) === null || _this$filteredModules === void 0 ? void 0 : _this$filteredModules.length) !== ((_this$selectedModules = this.selectedModules) === null || _this$selectedModules === void 0 ? void 0 : _this$selectedModules.length)) {\n        return this.filteredModules = [...this.selectedModules];\n      }\n      if ((_this$selectedModules2 = this.selectedModules) !== null && _this$selectedModules2 !== void 0 && _this$selectedModules2.length) {\n        var _this$filteredModules2, _this$filteredModules3;\n        if (!((_this$filteredModules2 = this.filteredModules) !== null && _this$filteredModules2 !== void 0 && _this$filteredModules2.length)) {\n          return this.filteredModules = [...this.selectedModules];\n        }\n        if ((_this$filteredModules3 = this.filteredModules) !== null && _this$filteredModules3 !== void 0 && _this$filteredModules3.length) {\n          this.filteredModules.forEach((item, index) => {\n            var _this$selectedModules3;\n            if ((item === null || item === void 0 ? void 0 : item.value) !== ((_this$selectedModules3 = this.selectedModules[index]) === null || _this$selectedModules3 === void 0 ? void 0 : _this$selectedModules3.value)) {\n              return this.filteredModules = [...this.selectedModules];\n            }\n          });\n        }\n      }\n    }\n    onModuleChange(item, checked) {\n      let modules = this.selectedModules || [];\n      this.selectedModules = [];\n      const index = modules.indexOf(item);\n      if (checked) {\n        /* Only push if not already inside */\n        index === -1 && modules.push(item);\n      } else {\n        if (index >= 0) {\n          const preElements = modules.slice(0, index);\n          const postElements = modules.slice(index + 1);\n          modules = [...preElements, ...postElements];\n        }\n      }\n      this.selectedModules = modules;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"queryParams\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [{\n        queryStart: 'start',\n        queryEnd: 'end'\n      }, 'dateFilter'];\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"abortController\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedModules\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"filteredModules\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"start\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"end\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"dateFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"queryStart\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"queryEnd\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"_defaultFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"_activeFilters\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"initialRange\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onFilterChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onFilterChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onModuleSelectClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onModuleSelectClose\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onModuleChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onModuleChange\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/reports/leads/index\", [\"exports\", \"additive-mc/config/environment\", \"@ember/controller\", \"@ember/service\", \"ember-concurrency\", \"@ember/object/computed\", \"@ember/object\", \"@glimmer/tracking\", \"additive-mc/utils/constants\", \"@additive-apps/ui/utils/query-param-util\"], function (_exports, _environment, _controller, _service, _emberConcurrency, _computed, _object, _tracking, _constants, _queryParamUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceReportsLeadsController = _exports.default = (_dec = (0, _computed.alias)('currentUser.currentOrganization.id'), _dec2 = (0, _emberConcurrency.task)(function* (chartFilters) {\n    const tasks = [];\n    const baseUrl = _environment.default.APP.apiBaseHost;\n    let {\n      filters\n    } = this;\n    if (chartFilters && chartFilters !== null && chartFilters !== void 0 && chartFilters.from && chartFilters !== null && chartFilters !== void 0 && chartFilters.to) {\n      filters = Object.assign({}, filters, chartFilters);\n    }\n    const qps = filters ? (0, _queryParamUtil.getQueryParams)(filters) : '';\n    const url = `${baseUrl}/${this.organizationSlug}/reports/leads/chart${qps}`;\n    try {\n      var _this$abortController;\n      tasks.push(this.authenticatedFetch.fetch(url, {\n        signal: (_this$abortController = this.abortController) === null || _this$abortController === void 0 ? void 0 : _this$abortController.signal\n      }));\n      tasks.push((0, _emberConcurrency.timeout)(250));\n      const [response] = yield (0, _emberConcurrency.all)(tasks);\n      if (!(response !== null && response !== void 0 && response.ok)) throw response || new Error();\n      const data = yield response.json();\n      this.chartData = data;\n    } catch (error) {\n      if ((error === null || error === void 0 ? void 0 : error.name) === 'AbortError') {\n        return;\n      }\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class InstanceReportsLeadsController extends _controller.default {\n    /**\n     * the available attributions\n     *\n     * @computed attributions\n     * @returns {Array}\n     */\n    get attributions() {\n      return [{\n        label: this.intl.t('reports.leadPerformance.attributions.all-attributed-values'),\n        value: 'all-attributed-values'\n      }, {\n        label: this.intl.t('reports.leadPerformance.attributions.generally-attributed-values'),\n        value: 'generally-attributed-values'\n      }, {\n        label: this.intl.t('reports.leadPerformance.attributions.extended-attributed-values'),\n        value: 'extended-attributed-values'\n      }];\n    }\n    get filters() {\n      let filters = Object.assign({}, {\n        start: this.start,\n        end: this.end\n      });\n      if (this.selectedAttribution && this.selectedAttribution !== 'all-attributed-values') {\n        filters = Object.assign(filters, {\n          attributions: this.selectedAttribution\n        });\n      } else {\n        delete filters.attributions;\n      }\n      return filters;\n    }\n    get detailDialogFilters() {\n      let filters = Object.assign({}, {\n        start: this.start,\n        end: this.end\n      });\n      if (this.selectedCampaignFilter && (this.isReservationDialog || this.isLeadsDialog)) {\n        const params = new URLSearchParams(this.selectedCampaignFilter);\n        params.forEach((value, key) => {\n          filters[key] = value;\n        });\n      }\n      if (this.selectedAttribution && this.selectedAttribution !== 'all-attributed-values') {\n        filters = Object.assign(filters, {\n          attributions: this.selectedAttribution\n        });\n      } else {\n        delete filters.attributions;\n      }\n      return filters;\n    }\n    constructor() {\n      var _this$_activeFilters, _this$_activeFilters2, _this$_activeFilters7, _this$_activeFilters8, _this$_activeFilters9, _this$_activeFilters10, _this$_activeFilters11;\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor4, this);\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", [{\n        queryStart: 'start',\n        queryEnd: 'end'\n      }, 'dateFilter']);\n      /**\n       * AbortController for the current fetch\n       *\n       * @property abortController\n       * @type {AbortController}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"abortController\", _descriptor6, this);\n      _initializerDefineProperty(this, \"start\", _descriptor7, this);\n      _initializerDefineProperty(this, \"end\", _descriptor8, this);\n      _initializerDefineProperty(this, \"queryStart\", _descriptor9, this);\n      _initializerDefineProperty(this, \"queryEnd\", _descriptor10, this);\n      _initializerDefineProperty(this, \"dateFilter\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_defaultFilter\", _descriptor12, this);\n      _initializerDefineProperty(this, \"_activeFilters\", _descriptor13, this);\n      _initializerDefineProperty(this, \"initialRange\", _descriptor14, this);\n      _initializerDefineProperty(this, \"selectedAttribution\", _descriptor15, this);\n      _initializerDefineProperty(this, \"isReservationDialog\", _descriptor16, this);\n      _initializerDefineProperty(this, \"selectedCampaignFilter\", _descriptor17, this);\n      _initializerDefineProperty(this, \"isLeadsDialog\", _descriptor18, this);\n      _initializerDefineProperty(this, \"chartData\", _descriptor19, this);\n      /**\n       * fetches the key-indicators for the leads performance report\n       *\n       * @type {Task}\n       * @function fetchKeyIndicators\n       */\n      _initializerDefineProperty(this, \"fetchChartData\", _descriptor20, this);\n      this.abortController = new AbortController();\n      if (!localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY)) localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({}));\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n\n      // get date filter from query params\n      const urlParams = new URLSearchParams(window.location.search);\n      const dateFilter = urlParams.get('dateFilter');\n      const start = urlParams.get('start');\n      const end = urlParams.get('end');\n      if ((_this$_activeFilters = this._activeFilters) !== null && _this$_activeFilters !== void 0 && _this$_activeFilters.start || (_this$_activeFilters2 = this._activeFilters) !== null && _this$_activeFilters2 !== void 0 && _this$_activeFilters2.end || start && end) {\n        var _this$_activeFilters3, _this$_activeFilters4, _this$_activeFilters5, _this$_activeFilters6;\n        const _dateRange = {\n          start: start || this._activeFilters.start,\n          end: end || this._activeFilters.end\n        };\n        if (start && end) this._activeFilters.dateFilter = 'custom_date';\n        if ((_this$_activeFilters3 = this._activeFilters) !== null && _this$_activeFilters3 !== void 0 && _this$_activeFilters3.dateFilter && typeof ((_this$_activeFilters4 = this._activeFilters) === null || _this$_activeFilters4 === void 0 ? void 0 : _this$_activeFilters4.dateFilter) === 'object') this._activeFilters.dateFilter = (_this$_activeFilters5 = this._activeFilters) === null || _this$_activeFilters5 === void 0 ? void 0 : _this$_activeFilters5.dateFilter.value;\n        localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({\n          start: _dateRange.start,\n          end: _dateRange.end,\n          dateFilter: (_this$_activeFilters6 = this._activeFilters) === null || _this$_activeFilters6 === void 0 ? void 0 : _this$_activeFilters6.dateFilter\n        }));\n        this.initialRange = _objectSpread({}, _dateRange);\n        this.start = _dateRange.start;\n        this.end = _dateRange.end;\n      }\n      if ((_this$_activeFilters7 = this._activeFilters) !== null && _this$_activeFilters7 !== void 0 && _this$_activeFilters7.dateFilter && typeof ((_this$_activeFilters8 = this._activeFilters) === null || _this$_activeFilters8 === void 0 ? void 0 : _this$_activeFilters8.dateFilter) === 'object') this._activeFilters.dateFilter = (_this$_activeFilters9 = this._activeFilters) === null || _this$_activeFilters9 === void 0 ? void 0 : _this$_activeFilters9.dateFilter.value;\n      dateFilter && !start && !end ? this._defaultFilter = dateFilter : (_this$_activeFilters10 = this._activeFilters) !== null && _this$_activeFilters10 !== void 0 && _this$_activeFilters10.dateFilter ? this._defaultFilter = (_this$_activeFilters11 = this._activeFilters) === null || _this$_activeFilters11 === void 0 ? void 0 : _this$_activeFilters11.dateFilter : this._defaultFilter = 'last_month';\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n    }\n    onFilterChange(newRange) {\n      this.abortController && this.abortController.abort();\n      this.abortController = new AbortController();\n\n      // Update query params\n      this.start = newRange.start;\n      this.end = newRange.end;\n      this._defaultFilter = newRange.dateFilter;\n      if (typeof this._defaultFilter === 'object') this._defaultFilter = this._defaultFilter.value;\n      localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({\n        start: this.start,\n        end: this.end,\n        dateFilter: this._defaultFilter\n      }));\n      if (this._defaultFilter === 'custom_date') {\n        this.queryStart = this.start;\n        this.queryEnd = this.end;\n        this.dateFilter = null;\n      } else {\n        this.queryStart = null;\n        this.queryEnd = null;\n        this.dateFilter = this._defaultFilter;\n      }\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n    }\n    openDetailDialog(type, campaignFilter) {\n      if (type === 'reservations') {\n        this.isReservationDialog = true;\n      } else if (type === 'leads') {\n        this.isLeadsDialog = true;\n      }\n      if (typeof campaignFilter === 'string') {\n        this.selectedCampaignFilter = campaignFilter;\n      }\n    }\n    closeDetailDialog(type) {\n      if (type === 'reservations') {\n        this.isReservationDialog = false;\n      } else if (type === 'leads') {\n        this.isLeadsDialog = false;\n      }\n      this.selectedCampaignFilter = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"abortController\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"start\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"end\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"queryStart\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"queryEnd\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"dateFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"_defaultFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"_activeFilters\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"initialRange\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"selectedAttribution\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return 'all-attributed-values';\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"isReservationDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"selectedCampaignFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"isLeadsDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"chartData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"fetchChartData\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onFilterChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onFilterChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openDetailDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openDetailDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeDetailDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeDetailDialog\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/reports/on-page/index\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object/computed\", \"@ember/object\", \"@glimmer/tracking\", \"additive-mc/utils/constants\"], function (_exports, _controller, _service, _computed, _object, _tracking, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceReportsOnPageController = _exports.default = (_dec = (0, _computed.alias)('currentUser.currentOrganization.id'), _class = class InstanceReportsOnPageController extends _controller.default {\n    constructor() {\n      var _this$_activeFilters, _this$_activeFilters2, _this$_activeFilters7, _this$_activeFilters8, _this$_activeFilters9, _this$_activeFilters10, _this$_activeFilters11;\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", [{\n        queryStart: 'start',\n        queryEnd: 'end'\n      }, 'dateFilter']);\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor3, this);\n      /**\n       * AbortController for the current fetch\n       *\n       * @property abortController\n       * @type {AbortController}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"abortController\", _descriptor4, this);\n      _initializerDefineProperty(this, \"start\", _descriptor5, this);\n      _initializerDefineProperty(this, \"end\", _descriptor6, this);\n      _initializerDefineProperty(this, \"queryStart\", _descriptor7, this);\n      _initializerDefineProperty(this, \"queryEnd\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateFilter\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_defaultFilter\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_activeFilters\", _descriptor11, this);\n      _initializerDefineProperty(this, \"initialRange\", _descriptor12, this);\n      this.abortController = new AbortController();\n      if (!localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY)) localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({}));\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n\n      // get date filter from query params\n      const urlParams = new URLSearchParams(window.location.search);\n      const dateFilter = urlParams.get('dateFilter');\n      const start = urlParams.get('start');\n      const end = urlParams.get('end');\n      if ((_this$_activeFilters = this._activeFilters) !== null && _this$_activeFilters !== void 0 && _this$_activeFilters.start || (_this$_activeFilters2 = this._activeFilters) !== null && _this$_activeFilters2 !== void 0 && _this$_activeFilters2.end || start && end) {\n        var _this$_activeFilters3, _this$_activeFilters4, _this$_activeFilters5, _this$_activeFilters6;\n        const _dateRange = {\n          start: start || this._activeFilters.start,\n          end: end || this._activeFilters.end\n        };\n        if (start && end) this._activeFilters.dateFilter = 'custom_date';\n        if ((_this$_activeFilters3 = this._activeFilters) !== null && _this$_activeFilters3 !== void 0 && _this$_activeFilters3.dateFilter && typeof ((_this$_activeFilters4 = this._activeFilters) === null || _this$_activeFilters4 === void 0 ? void 0 : _this$_activeFilters4.dateFilter) === 'object') this._activeFilters.dateFilter = (_this$_activeFilters5 = this._activeFilters) === null || _this$_activeFilters5 === void 0 ? void 0 : _this$_activeFilters5.dateFilter.value;\n        localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({\n          start: _dateRange.start,\n          end: _dateRange.end,\n          dateFilter: (_this$_activeFilters6 = this._activeFilters) === null || _this$_activeFilters6 === void 0 ? void 0 : _this$_activeFilters6.dateFilter\n        }));\n        this.initialRange = _objectSpread({}, _dateRange);\n        this.start = _dateRange.start;\n        this.end = _dateRange.end;\n      }\n      if ((_this$_activeFilters7 = this._activeFilters) !== null && _this$_activeFilters7 !== void 0 && _this$_activeFilters7.dateFilter && typeof ((_this$_activeFilters8 = this._activeFilters) === null || _this$_activeFilters8 === void 0 ? void 0 : _this$_activeFilters8.dateFilter) === 'object') this._activeFilters.dateFilter = (_this$_activeFilters9 = this._activeFilters) === null || _this$_activeFilters9 === void 0 ? void 0 : _this$_activeFilters9.dateFilter.value;\n      dateFilter && !start && !end ? this._defaultFilter = dateFilter : (_this$_activeFilters10 = this._activeFilters) !== null && _this$_activeFilters10 !== void 0 && _this$_activeFilters10.dateFilter ? this._defaultFilter = (_this$_activeFilters11 = this._activeFilters) === null || _this$_activeFilters11 === void 0 ? void 0 : _this$_activeFilters11.dateFilter : this._defaultFilter = 'last_month';\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n    }\n    onFilterChange(newRange) {\n      this.abortController && this.abortController.abort();\n      this.abortController = new AbortController();\n\n      // Update query params\n      this.start = newRange.start;\n      this.end = newRange.end;\n      this._defaultFilter = newRange.dateFilter;\n      if (typeof this._defaultFilter === 'object') this._defaultFilter = this._defaultFilter.value;\n      localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({\n        start: this.start,\n        end: this.end,\n        dateFilter: this._defaultFilter\n      }));\n      if (this._defaultFilter === 'custom_date') {\n        this.queryStart = this.start;\n        this.queryEnd = this.end;\n        this.dateFilter = null;\n      } else {\n        this.queryStart = null;\n        this.queryEnd = null;\n        this.dateFilter = this._defaultFilter;\n      }\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"abortController\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"start\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"end\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"queryStart\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"queryEnd\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"dateFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"_defaultFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"_activeFilters\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"initialRange\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onFilterChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onFilterChange\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/reports/trigger-email/index\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object/computed\", \"@ember/object\", \"@glimmer/tracking\", \"additive-mc/utils/constants\"], function (_exports, _controller, _service, _computed, _object, _tracking, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceReportsTriggerEmailController = _exports.default = (_dec = (0, _computed.alias)('currentUser.currentOrganization.id'), _class = class InstanceReportsTriggerEmailController extends _controller.default {\n    constructor() {\n      var _this$_activeFilters, _this$_activeFilters2, _this$_activeFilters7, _this$_activeFilters8, _this$_activeFilters9, _this$_activeFilters10, _this$_activeFilters11;\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", [{\n        queryStart: 'start',\n        queryEnd: 'end'\n      }, 'dateFilter']);\n      _initializerDefineProperty(this, \"organizationSlug\", _descriptor3, this);\n      /**\n       * AbortController for the current fetch\n       *\n       * @property abortController\n       * @type {AbortController}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"abortController\", _descriptor4, this);\n      _initializerDefineProperty(this, \"start\", _descriptor5, this);\n      _initializerDefineProperty(this, \"end\", _descriptor6, this);\n      _initializerDefineProperty(this, \"queryStart\", _descriptor7, this);\n      _initializerDefineProperty(this, \"queryEnd\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateFilter\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_defaultFilter\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_activeFilters\", _descriptor11, this);\n      _initializerDefineProperty(this, \"initialRange\", _descriptor12, this);\n      this.abortController = new AbortController();\n      if (!localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY)) localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({}));\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n\n      // get date filter from query params\n      const urlParams = new URLSearchParams(window.location.search);\n      const dateFilter = urlParams.get('dateFilter');\n      const start = urlParams.get('start');\n      const end = urlParams.get('end');\n      if ((_this$_activeFilters = this._activeFilters) !== null && _this$_activeFilters !== void 0 && _this$_activeFilters.start || (_this$_activeFilters2 = this._activeFilters) !== null && _this$_activeFilters2 !== void 0 && _this$_activeFilters2.end || start && end) {\n        var _this$_activeFilters3, _this$_activeFilters4, _this$_activeFilters5, _this$_activeFilters6;\n        const _dateRange = {\n          start: start || this._activeFilters.start,\n          end: end || this._activeFilters.end\n        };\n        if (start && end) this._activeFilters.dateFilter = 'custom_date';\n        if ((_this$_activeFilters3 = this._activeFilters) !== null && _this$_activeFilters3 !== void 0 && _this$_activeFilters3.dateFilter && typeof ((_this$_activeFilters4 = this._activeFilters) === null || _this$_activeFilters4 === void 0 ? void 0 : _this$_activeFilters4.dateFilter) === 'object') this._activeFilters.dateFilter = (_this$_activeFilters5 = this._activeFilters) === null || _this$_activeFilters5 === void 0 ? void 0 : _this$_activeFilters5.dateFilter.value;\n        localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({\n          start: _dateRange.start,\n          end: _dateRange.end,\n          dateFilter: (_this$_activeFilters6 = this._activeFilters) === null || _this$_activeFilters6 === void 0 ? void 0 : _this$_activeFilters6.dateFilter\n        }));\n        this.initialRange = _objectSpread({}, _dateRange);\n        this.start = _dateRange.start;\n        this.end = _dateRange.end;\n      }\n      if ((_this$_activeFilters7 = this._activeFilters) !== null && _this$_activeFilters7 !== void 0 && _this$_activeFilters7.dateFilter && typeof ((_this$_activeFilters8 = this._activeFilters) === null || _this$_activeFilters8 === void 0 ? void 0 : _this$_activeFilters8.dateFilter) === 'object') this._activeFilters.dateFilter = (_this$_activeFilters9 = this._activeFilters) === null || _this$_activeFilters9 === void 0 ? void 0 : _this$_activeFilters9.dateFilter.value;\n      dateFilter && !start && !end ? this._defaultFilter = dateFilter : (_this$_activeFilters10 = this._activeFilters) !== null && _this$_activeFilters10 !== void 0 && _this$_activeFilters10.dateFilter ? this._defaultFilter = (_this$_activeFilters11 = this._activeFilters) === null || _this$_activeFilters11 === void 0 ? void 0 : _this$_activeFilters11.dateFilter : this._defaultFilter = 'last_month';\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n    }\n    onFilterChange(newRange) {\n      this.abortController && this.abortController.abort();\n      this.abortController = new AbortController();\n\n      // Update query params\n      this.start = newRange.start;\n      this.end = newRange.end;\n      this._defaultFilter = newRange.dateFilter;\n      if (typeof this._defaultFilter === 'object') this._defaultFilter = this._defaultFilter.value;\n      localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({\n        start: this.start,\n        end: this.end,\n        dateFilter: this._defaultFilter\n      }));\n      if (this._defaultFilter === 'custom_date') {\n        this.queryStart = this.start;\n        this.queryEnd = this.end;\n        this.dateFilter = null;\n      } else {\n        this.queryStart = null;\n        this.queryEnd = null;\n        this.dateFilter = this._defaultFilter;\n      }\n      this._activeFilters = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"abortController\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"start\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"end\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"queryStart\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"queryEnd\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"dateFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"_defaultFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"_activeFilters\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"initialRange\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onFilterChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onFilterChange\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/settings\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _controller, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let SettingsController = _exports.default = (_class = class SettingsController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      /**\n       * Whether the FAQ dialog is shown or not\n       *\n       * @property isFaqDialog\n       * @type {Boolean}\n       * @default false\n       * @private\n       */\n      _defineProperty(this, \"_isFaqDialog\", false);\n      /**\n       * Array of keys for FAQs\n       *\n       * @property _faqKeys\n       * @type {Array}\n       * @default null\n       * @private\n       */\n      _initializerDefineProperty(this, \"_faqKeys\", _descriptor2, this);\n      this._faqKeys = ['inheritedSettings'];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"_faqKeys\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _class);\n});","define(\"additive-mc/controllers/instance/settings/index\", [\"exports\", \"@ember/controller\", \"@ember/object/computed\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _controller, _computed, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceSettingsIndexController = _exports.default = (_dec = (0, _computed.alias)('currentUser.currentOrganization.id'), _dec2 = (0, _computed.not)('currentUser.isManager'), _class = class InstanceSettingsIndexController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", ['redirect', 'auth_code']);\n      _initializerDefineProperty(this, \"_organizationSlug\", _descriptor3, this);\n      _initializerDefineProperty(this, \"_isMember\", _descriptor4, this);\n      /**\n       * the query param \"auth_code\"\n       *\n       * @property isDiscardChanges\n       * @type {Boolean}\n       */\n      _initializerDefineProperty(this, \"auth_code\", _descriptor5, this);\n      /**\n       * the query param \"redirect\"\n       *\n       * @property redirect\n       * @type {String}\n       * @default null\n       */\n      _initializerDefineProperty(this, \"redirect\", _descriptor6, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly || this._isMember;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_organizationSlug\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_isMember\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"auth_code\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"redirect\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _class);\n});","define(\"additive-mc/controllers/instance/settings/legals\", [\"exports\", \"@ember/controller\", \"@ember/object/computed\", \"@ember/service\"], function (_exports, _controller, _computed, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceSettingsLegalsController = _exports.default = (_dec = (0, _computed.alias)('uiAppSettings.languages.contentLanguages'), _dec2 = (0, _computed.alias)('currentUser.currentOrganization.id'), _class = class InstanceSettingsLegalsController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_contentLanguages\", _descriptor3, this);\n      _initializerDefineProperty(this, \"_organizationSlug\", _descriptor4, this);\n    }\n    get isReadOnly() {\n      const isMember = !this.currentUser.isManager;\n      return this.currentUser.isReadOnly || isMember;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_contentLanguages\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"_organizationSlug\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/controllers/instance/widgets\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"@additive-apps/auth/utils/roles-map\"], function (_exports, _controller, _object, _tracking, _service, _rolesMap) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceWidgetsController = _exports.default = (_class = class InstanceWidgetsController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor4, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isWidgetDialog\", _descriptor7, this);\n      _initializerDefineProperty(this, \"activeModel\", _descriptor8, this);\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    get hasManagerAccess() {\n      var _this$currentUser$use;\n      return (0, _rolesMap.hasAccess)(_rolesMap.ROLE_MANAGER, (_this$currentUser$use = this.currentUser.user) === null || _this$currentUser$use === void 0 ? void 0 : _this$currentUser$use.role);\n    }\n    onEdit(model) {\n      this.activeModel = model;\n      this.isWidgetDialog = true;\n    }\n    onCloseWidgetDialog() {\n      this.activeModel = null;\n      this.isWidgetDialog = false;\n    }\n    onDelete(model) {\n      if (model.default) {\n        this.uiDialog.showError(this.intl.t('widgets.isDefaultError.title'), this.intl.t('widgets.isDefaultError.description'));\n        return;\n      }\n      this.uiDialog.showConfirm(this.intl.t('widgets.deleteDialog.title'), this.intl.t('widgets.deleteDialog.description', {\n        htmlSafe: true\n      }), () => this.deleteWidget(model), this.intl.t('global.actions.delete'), true, true);\n    }\n    async onDefault(model) {\n      try {\n        model.set('default', true);\n        await model.save();\n        this.uiFilter.reset('widgets');\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      } catch (e) {\n        model.rollbackAttributes();\n        this.uiToast.showToast({\n          title: this.intl.t('toast.widgetInUse'),\n          type: 'error'\n        });\n      }\n    }\n    async deleteWidget(model) {\n      try {\n        await model.destroyRecord();\n        this.uiFilter.reset('widgets');\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success'\n        });\n      } catch (e) {\n        model.rollbackAttributes();\n        this.uiToast.showToast({\n          title: this.intl.t('toast.widgetInUse'),\n          type: 'error'\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isWidgetDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"activeModel\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onEdit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCloseWidgetDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onCloseWidgetDialog\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDelete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDefault\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDefault\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteWidget\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteWidget\"), _class.prototype), _class);\n});","define(\"additive-mc/controllers/instance/widgets/widget\", [\"exports\", \"additive-mc/config/environment\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object/computed\", \"@ember/utils\", \"ember-changeset\", \"ember-concurrency\", \"lodash.merge\", \"@additive-apps/popup-widget\", \"additive-mc/utils/widget-constants\", \"additive-mc/utils/widget-default\", \"additive-mc/utils/fonts\", \"additive-mc/utils/widget-utils\"], function (_exports, _environment, _controller, _object, _tracking, _service, _computed, _utils, _emberChangeset, _emberConcurrency, _lodash, _popupWidget, _widgetConstants, _widgetDefault, _fonts, _widgetUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const WIDGET_SELECTOR = '#widget-container';\n\n  // Define here the properties which can be set to null\n  const NULLABLE_PROPERTIES = ['backgroundImage'];\n  let InstanceWidgetsWidgetController = _exports.default = (_dec = (0, _computed.alias)('currentUser.currentOrganization.id'), _dec2 = (0, _computed.bool)('options.config.content.image'), _dec3 = (0, _computed.bool)('options.config.content.button'), _dec4 = (0, _object.computed)('options.config.size'), _dec5 = (0, _object.computed)('options.config.content.type'), _dec6 = (0, _emberConcurrency.task)(function* () {\n    this._setupChangeset();\n    const response = yield this.authenticatedFetch.fetch(`${_environment.default.APP.apiBaseHostV2}/${this.orgId}/corporate-design`);\n    const {\n      corporateDesign\n    } = yield response.json();\n    this.corporateDesignTypography = corporateDesign.typography;\n    let {\n      fonts\n    } = corporateDesign;\n    this.fonts = fonts;\n    if (corporateDesign.fonts) {\n      yield this.loadFonts(corporateDesign.fonts);\n    }\n    this.fontOptions = (0, _fonts.getFontOptions)(fonts);\n    this.colorOptions = (0, _widgetDefault.getColorOptions)(corporateDesign.colors);\n\n    // setup the instance to have the same API as the other additive widgets\n    this.instance = {\n      init: (options, styles) => _popupWidget.default.init(WIDGET_SELECTOR, {\n        options,\n        styles\n      }),\n      update: (options, styles) => {\n        _popupWidget.default.update(WIDGET_SELECTOR, {\n          options,\n          styles\n        });\n      }\n    };\n  }), _class = class InstanceWidgetsWidgetController extends _controller.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changeset\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isDiscardChangesDialog\", _descriptor7, this);\n      _initializerDefineProperty(this, \"options\", _descriptor8, this);\n      _initializerDefineProperty(this, \"sizeOptions\", _descriptor9, this);\n      _initializerDefineProperty(this, \"fontOptions\", _descriptor10, this);\n      _initializerDefineProperty(this, \"colorOptions\", _descriptor11, this);\n      _initializerDefineProperty(this, \"corporateDesignTypography\", _descriptor12, this);\n      _initializerDefineProperty(this, \"fonts\", _descriptor13, this);\n      _initializerDefineProperty(this, \"instance\", _descriptor14, this);\n      _initializerDefineProperty(this, \"modelData\", _descriptor15, this);\n      _initializerDefineProperty(this, \"orgId\", _descriptor16, this);\n      _initializerDefineProperty(this, \"hasImage\", _descriptor17, this);\n      _initializerDefineProperty(this, \"hasButton\", _descriptor18, this);\n      _initializerDefineProperty(this, \"setup\", _descriptor19, this);\n      this.sizeOptions = _widgetConstants.SIZE_OPTIONS.map(value => ({\n        label: this.intl.t(`widgets.configurator.sizes.${value}`),\n        value\n      }));\n      this.typeOptions = _widgetConstants.CONTENT_OPTIONS.map(value => ({\n        label: this.intl.t(`widgets.configurator.types.${value.type}`),\n        value\n      }));\n      this.options = {\n        config: _objectSpread(_objectSpread({}, _widgetConstants.DEFAULT_TYPOGRAPHY_CONFIG), _widgetConstants.DEFAULT_PREVIEW_CONFIG)\n      };\n      this.tabs = [{\n        title: this.intl.t('widgets.configurator.general.title'),\n        name: 'general'\n      }, {\n        title: this.intl.t('widgets.configurator.colors.title'),\n        name: 'colors'\n      }, {\n        title: this.intl.t('widgets.configurator.typography.title'),\n        name: 'typography'\n      }];\n      this.activeTab = this.tabs[0];\n    }\n    get isReadOnly() {\n      return this.currentUser.isReadOnly;\n    }\n    get positionOptions() {\n      const {\n        size\n      } = this.options.config;\n      return _widgetConstants.POSITION_OPTIONS[size].map(value => ({\n        label: this.intl.t(`widgets.configurator.positions${size === 'lg' ? 'Lg' : ''}.${value}`),\n        value\n      }));\n    }\n    get isInfoPopup() {\n      return this.options.config.content.type === 'info';\n    }\n    get selectedContentType() {\n      var _this$typeOptions$fin;\n      return (_this$typeOptions$fin = this.typeOptions.find(c => c.value.type === this.options.config.content.type)) === null || _this$typeOptions$fin === void 0 ? void 0 : _this$typeOptions$fin.label;\n    }\n    loadFonts(fonts) {\n      const fontPromises = [];\n      Object.keys(fonts).forEach(key => {\n        Object.keys(fonts[key]).forEach(type => {\n          fonts[key][type] && fontPromises.push((0, _fonts.loadFont)(`${key}${type}`, fonts[key][type].url));\n        });\n      });\n      return Promise.all(fontPromises);\n    }\n    updateOptions(update, key, value) {\n      if (key === 'config.size') {\n        (0, _object.set)(this.options.config, 'position', _widgetConstants.POSITION_OPTIONS[value][0]);\n      }\n      const data = update(key, value, 'options');\n      this.options = data.options;\n    }\n    onBack() {\n      if (this.changeset.get('isDirty')) {\n        this.isDiscardChangesDialog = true;\n        return;\n      }\n      this.router.transitionTo('instance.widgets');\n    }\n    confirmDiscard() {\n      this.changeset.rollback();\n      this.isDiscardChangesDialog = false;\n      this.router.transitionTo('instance.widgets');\n    }\n    onImageCheck(update, checked) {\n      const data = update('config.content.image', checked ? _objectSpread({}, _widgetConstants.DEFAULT_IMAGE) : null, 'options');\n      this.options = data.options;\n    }\n    onButtonCheck(update, checked) {\n      update('config.content.button', checked, 'options');\n    }\n    onUpdate(onUpdate, key, val) {\n      const data = onUpdate(key, val);\n      this.changeset.set('options', data.options);\n      this.changeset.set('styles', data.styles);\n    }\n    async save() {\n      try {\n        const changesetChanges = this.changeset.get('changes');\n        const changesObject = (0, _widgetUtils.nestChangesetChanges)(changesetChanges);\n        let changedKeys = [];\n        Object.keys(changesObject).forEach(propertyKey => {\n          if (typeof changesObject[propertyKey] === 'object' && (0, _utils.isPresent)(changesObject[propertyKey])) {\n            this._getChangedPropertyKeys(changesObject[propertyKey], this.modelData[propertyKey], changedKeys, propertyKey);\n            return;\n          }\n          changedKeys.push(propertyKey);\n        });\n\n        // apply changes to model\n        changedKeys.forEach(changedKey => {\n          const splittedKey = changedKey.split('.');\n\n          // get new value of the changed key\n          const newValue = splittedKey.reduce((object, key) => object[key], changesObject);\n\n          // initialize key at model if it not exists\n          let alreadyIntialized = '';\n          splittedKey.forEach(keyPart => {\n            let key = alreadyIntialized ? `${alreadyIntialized}${keyPart}` : keyPart;\n            if (!this.model.get(key)) {\n              this.model.set(key, {});\n            }\n            alreadyIntialized = `${alreadyIntialized}${keyPart}.`;\n          });\n          this.model.set(changedKey, newValue);\n        });\n        const tasks = [];\n        tasks.push(this.model.save());\n        tasks.push((0, _emberConcurrency.timeout)(400));\n        await Promise.all(tasks);\n        this._setupChangeset();\n        this.uiToast.showToast({\n          title: this.intl.t('toast.success'),\n          type: 'success',\n          parent: '.aw-configurator__preview'\n        });\n      } catch (error) {\n        this.uiToast.showToast({\n          title: this.intl.t('toast.unexpectedError'),\n          type: 'error',\n          parent: '.aw-configurator__preview'\n        });\n      }\n    }\n\n    /**\n     * compares two objects and returns the keys of the properties that changed\n     *\n     * @param {*} data the object which may have changed properties\n     * @param {*} compare the object without changes\n     * @param {*} changedKeys an array where the keys of the changed properties are pushed\n     * @param {*} keyPrefix the concatenated keys to keep track on recursive calls\n     *\n     * @function _getChangedPropertyKeys\n     */\n    _getChangedPropertyKeys(data, compare, changedKeys, keyPrefix) {\n      Object.keys(data).forEach(propertyKey => {\n        const dataProperty = data[propertyKey];\n        const compareProperty = compare && compare[propertyKey];\n        if (!(0, _utils.isPresent)(dataProperty) && NULLABLE_PROPERTIES.includes(propertyKey)) {\n          changedKeys.push(`${keyPrefix}.${propertyKey}`);\n        }\n        if (typeof dataProperty === 'object' && (0, _utils.isPresent)(dataProperty)) {\n          this._getChangedPropertyKeys(dataProperty, compareProperty, changedKeys, `${keyPrefix}.${propertyKey}`);\n          return;\n        }\n        if (data[propertyKey] !== null && dataProperty !== compareProperty) {\n          changedKeys.push(`${keyPrefix}.${propertyKey}`);\n        }\n      });\n    }\n    _setupChangeset() {\n      var _this$model;\n      const modelStyles = (0, _lodash.default)({}, (_this$model = this.model) === null || _this$model === void 0 ? void 0 : _this$model.styles);\n\n      // setup styles with default values\n      let styles = (0, _lodash.default)({}, {\n        colors: _widgetDefault.StyleValues.colors,\n        typography: _widgetDefault.StyleValues.typography,\n        globals: _widgetDefault.StyleValues.globals,\n        fonts: _widgetDefault.DEFAULT_FONTS_CONFIG\n      }, {\n        colors: modelStyles === null || modelStyles === void 0 ? void 0 : modelStyles.colors,\n        typography: modelStyles === null || modelStyles === void 0 ? void 0 : modelStyles.typography,\n        globals: modelStyles === null || modelStyles === void 0 ? void 0 : modelStyles.globals,\n        fonts: modelStyles === null || modelStyles === void 0 ? void 0 : modelStyles.fonts\n      });\n      this.modelData = (0, _lodash.default)({}, this.model, {\n        styles\n      });\n      this.changeset = new _emberChangeset.default((0, _lodash.default)({}, this.modelData));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"changeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isDiscardChangesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"options\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"sizeOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"fontOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"colorOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"corporateDesignTypography\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"fonts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"instance\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"modelData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"orgId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"hasImage\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"hasButton\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"positionOptions\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"positionOptions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isInfoPopup\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"isInfoPopup\"), _class.prototype), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"setup\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateOptions\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateOptions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onBack\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onBack\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"confirmDiscard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"confirmDiscard\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onImageCheck\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onImageCheck\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onButtonCheck\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onButtonCheck\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onUpdate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _class);\n});","define(\"additive-mc/data-adapter\", [\"exports\", \"@ember-data/debug\"], function (_exports, _debug) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _debug.default;\n    }\n  });\n});","define(\"additive-mc/formats\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    time: {\n      hhmm: {\n        hour: 'numeric',\n        minute: 'numeric',\n        hour12: false\n      },\n      hhmmss: {\n        hour: 'numeric',\n        minute: 'numeric',\n        second: 'numeric',\n        hour12: false\n      }\n    },\n    date: {\n      ddmmyyyy: {\n        day: '2-digit',\n        month: '2-digit',\n        year: 'numeric'\n      },\n      long: {\n        day: '2-digit',\n        month: 'long',\n        year: 'numeric'\n      },\n      short: {\n        day: '2-digit',\n        month: 'short'\n      }\n    },\n    number: {\n      EUR: {\n        style: 'currency',\n        currency: 'EUR',\n        minimumFractionDigits: 2,\n        maximumFractionDigits: 2\n      },\n      CHF: {\n        style: 'currency',\n        currency: 'CHF',\n        minimumFractionDigits: 2,\n        maximumFractionDigits: 2\n      },\n      USD: {\n        style: 'currency',\n        currency: 'USD',\n        minimumFractionDigits: 2,\n        maximumFractionDigits: 2\n      }\n    }\n  };\n});","define(\"additive-mc/helpers/-element\", [\"exports\", \"ember-element-helper/helpers/-element\"], function (_exports, _element) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _element.default;\n    }\n  });\n});","define(\"additive-mc/helpers/access-guard\", [\"exports\", \"@additive-apps/auth/helpers/access-guard\"], function (_exports, _accessGuard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"accessGuard\", {\n    enumerable: true,\n    get: function get() {\n      return _accessGuard.accessGuard;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _accessGuard.default;\n    }\n  });\n});","define(\"additive-mc/helpers/amc-campaign-configuration-value\", [\"exports\", \"@ember/component/helper\", \"@ember/service\", \"@ember/string\", \"@ember/utils\", \"date-fns\", \"@additive-apps/utils/utils/currency-util\", \"additive-mc/utils/iso-duration\", \"additive-mc/utils/currency-serialization\"], function (_exports, _helper, _service, _string, _utils, _dateFns, _currencyUtil, _isoDuration, _currencySerialization) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Helper to control the output of the existing campaign configuration types\n   */\n  var _default = _exports.default = _helper.default.extend({\n    uiAppSettings: (0, _service.inject)(),\n    currentUser: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    uiLocale: (0, _service.inject)(),\n    compute(_ref) {\n      let [item, options = {}] = _ref;\n      if (!item || (0, _utils.isEmpty)(item.value) || Array.isArray(item.value) && item.value.length === 0) {\n        return this.intl.t('components.amc-campaign-configuration-value.empty');\n      }\n\n      /* Boolean uses switch to indicate value, so no need for additional value displaying */\n      if (item.type === 'boolean') {\n        return '';\n      }\n      try {\n        switch (item.type) {\n          case 'array':\n            return item.value.join(', ');\n          case 'money':\n            return `${(0, _currencyUtil.getCurrencySymbol)((options === null || options === void 0 ? void 0 : options.currency) || 'EUR')} ${(0, _currencySerialization.centsToAmount)(item.value)}`;\n          case 'datetime':\n            {\n              let parsedDate;\n              if (typeof item.value === 'string') {\n                try {\n                  parsedDate = (0, _dateFns.parseISO)(item.value);\n                } catch (_unused) {\n                  parsedDate = new Date(item.value);\n                }\n              } else if (item.value instanceof Date) {\n                parsedDate = item.value;\n              }\n              return (0, _dateFns.format)(parsedDate, 'dd.MM.yyyy HH:mm', {\n                locale: this.uiLocale.dateFnsLocale\n              });\n            }\n          case 'yeardate':\n            return (0, _dateFns.format)((0, _dateFns.parse)(item.value, 'MM-dd', new Date()), 'dd. MMM', {\n              locale: this.uiLocale.dateFnsLocale\n            });\n          case 'select':\n            return item.value && item.value.label;\n          case 'multiselect':\n            if (Array.isArray(item.value)) {\n              if (item.value.length === 1) {\n                return item.value[0].label;\n              }\n              return [item.value[0].label, `, +${item.value.length - 1}`].join(' ');\n            }\n            break;\n          case 'timespan':\n            {\n              // P1Y5M --> 1 Jahr 5 Monate\n              const duration = (0, _isoDuration.parse)(item.value);\n              let output = Object.keys(duration).reduce((accumulator, key) => {\n                const value = duration[key];\n                if (!value || value < 1) {\n                  return accumulator;\n                }\n                const newPart = this.intl.t(`global.dates.${key}`, {\n                  value\n                });\n                return `${accumulator} ${value} ${newPart}`;\n              }, '');\n              return output;\n            }\n          case 'multimedia':\n            return this.intl.t('components.amc-campaign-configuration-value.multimedia.selected');\n          case 'percentage-distribution':\n            {\n              const result = item.value.reduce((accumulator, _, index, source) => {\n                const arrayElement = source[index];\n                if (!arrayElement || !arrayElement.value || arrayElement.value < 1) {\n                  return accumulator;\n                }\n                const newPart = `${arrayElement.label}: ${arrayElement.value}`;\n                return `${accumulator} ${newPart},`;\n              }, '');\n\n              /* Remove trailing `,` */\n              return result.slice(0, result.length - 1);\n            }\n          case 'multilingual-text':\n          case 'multilingual-link':\n            {\n              const languages = this.uiAppSettings && this.uiAppSettings.languages && this.uiAppSettings.languages.contentLanguages || [];\n              return (0, _string.htmlSafe)(languages.map(language => {\n                const color = item.value && item.value[language] ? 'green' : 'red';\n                return `<span class=\"font-sm pr1 ${color}\">${language.toUpperCase()}</span>`;\n              }).join(''));\n            }\n          case 'multilingual-texts':\n            {\n              return this.intl.t('components.amc-campaign-configuration-value.multilingual-texts.selected', {\n                count: item.value && item.value.length\n              });\n            }\n          case 'widget-display-variant':\n            {\n              return `${this.intl.t(`components.amc-campaign-configuration.widget-display-variant.positionOptions.${item.value.position}`)}, ${this.intl.t(`components.amc-campaign-configuration.widget-display-variant.sizeOptions.${item.value.size}`)}`;\n            }\n          case 'widget-trigger-event':\n            {\n              if (!(item.value.trigger === 'on-exit')) {\n                return `${this.intl.t(`components.amc-campaign-configuration.widget-trigger-event.options.${item.value.trigger}`)}: ${item.value.value}${this.intl.t(`components.amc-campaign-configuration.widget-trigger-event.unit.${item.value.trigger}`)}`;\n              } else {\n                return this.intl.t(`components.amc-campaign-configuration.widget-trigger-event.options.${item.value.trigger}`);\n              }\n            }\n          case 'utm-parameter':\n            {\n              if (Array.isArray(item.value)) {\n                return item.value.filter(entry => entry.type && entry.value).map(entry => `${this.intl.t(`components.amc-campaign-configuration.utm-parameter.options.${entry.type}`)}: ${entry.value}`).join(', ');\n              }\n              return '';\n            }\n          case 'delivery-time':\n            {\n              if (item.value) {\n                var _item$value, _item$value2, _item$value3;\n                const time = (_item$value = item.value) === null || _item$value === void 0 ? void 0 : _item$value.daytime;\n                const day = (_item$value2 = item.value) === null || _item$value2 === void 0 ? void 0 : _item$value2.offsetInDays;\n                const type = (_item$value3 = item.value) === null || _item$value3 === void 0 ? void 0 : _item$value3.deliveryType;\n                if (type === 'immediately') {\n                  return this.intl.t('components.amc-campaign-configuration.deliveryTime.options.immediately');\n                }\n                if (time && day === 0 || time && day === 1) {\n                  return this.intl.t(`components.amc-campaign-configuration.deliveryTime.${day === 0 ? 'deliveryToday' : 'deliveryTomorrow'}`, {\n                    time: time\n                  });\n                } else if (time && day >= 2 && day <= 7) {\n                  return this.intl.t('components.amc-campaign-configuration.deliveryTime.deliveryDays', {\n                    time: time,\n                    count: day\n                  });\n                }\n                return '-';\n              }\n              break;\n            }\n          case 'master-details-multiselect':\n            {\n              if (Object.keys(item.value).length > 0) {\n                const selectedTriggerKey = Object.keys(item.value)[0];\n\n                // Get selected trigger\n                const selectedTrigger = item.value[selectedTriggerKey].label;\n\n                // Get selected interests, channel, addressbook etc.\n                let selectedChannels = item.value[selectedTriggerKey].values;\n                let channels = '';\n                if (typeof selectedChannels === 'object' && !Array.isArray(selectedChannels)) {\n                  const index = Object.keys(selectedChannels).sort()[0];\n                  selectedChannels = selectedChannels[index];\n                }\n                selectedChannels.forEach((channel, index) => {\n                  if (selectedChannels.length - 1 === index) {\n                    channels += channel.label;\n                  } else {\n                    channels += `${channel.label}, `;\n                  }\n                });\n                if (options !== null && options !== void 0 && options.hideLabels) {\n                  return channels;\n                }\n                return `${selectedTrigger}: ${channels}`;\n              } else {\n                return '-';\n              }\n            }\n        }\n        return item.value;\n      } catch (error) {\n        /* Return whatever the value is, when we get a parse/format error */\n        return item.value;\n      }\n    }\n  });\n});","define(\"additive-mc/helpers/amc-ember-array-to-array\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Calls toArray on input, to ensure array is iterable.\n   *\n   * Withou this, ui-table throws an `not iterable` error.\n   * TODO: fix table to work with ember-array (exaple ember-data-arrays) as well\n   */\n  var _default = _exports.default = (0, _helper.helper)(function amcEmberArrayToArray(_ref) {\n    let [input] = _ref;\n    return Array.isArray(input) && typeof input.toArray === 'function' ? input.toArray() : input;\n  });\n});","define(\"additive-mc/helpers/amc-html-safe\", [\"exports\", \"@ember/component/helper\", \"@ember/template\", \"dompurify\"], function (_exports, _helper, _template, _dompurify) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.amcHtmlSafe = amcHtmlSafe;\n  _exports.default = void 0;\n  /**\n   * Returns html-safe version of the passed value\n   */\n  function amcHtmlSafe(_ref) {\n    let [value] = _ref;\n    return (0, _template.htmlSafe)(_dompurify.default.sanitize(value));\n  }\n  var _default = _exports.default = (0, _helper.helper)(amcHtmlSafe);\n});","define(\"additive-mc/helpers/amc-inner-text\", [\"exports\", \"@ember/component/helper\", \"@ember/template\"], function (_exports, _helper, _template) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.amcInnerText = amcInnerText;\n  _exports.default = void 0;\n  /**\n   * Converts given html into text\n   */\n  function amcInnerText(_ref) {\n    let [html] = _ref;\n    const divElement = document.createElement('div');\n    divElement.innerHTML = (0, _template.htmlSafe)(html);\n    return (0, _template.htmlSafe)(divElement.innerText.trim());\n  }\n  var _default = _exports.default = (0, _helper.helper)(amcInnerText);\n});","define(\"additive-mc/helpers/amc-not\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Returns true when first argument does not match second\n   */\n  var _default = _exports.default = (0, _helper.helper)(function not(params /*, hash*/) {\n    return params[0] !== params[1];\n  });\n});","define(\"additive-mc/helpers/amc-or\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Returns true when at leats one value of params array is a truthy value\n   */\n  var _default = _exports.default = (0, _helper.helper)(function or(params /*, hash*/) {\n    return (params || []).some(value => {\n      return !!value;\n    });\n  });\n});","define(\"additive-mc/helpers/amc-state-to-color-class\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.amcStateToColorClass = void 0;\n  const STATE_COLOR_CLASS_MAPPING = {\n    error: 'red',\n    warning: 'yellow'\n  };\n\n  /**\n   * Helper what translates states ('error', 'warning', 'info' etc.) into ui-css-color-classes ('red', 'yellow', etc)\n   *\n   * @param {String} param0 The state\n   * @param {Object} hash\n   * @param {String} hash.fallback The fallback css class if state not found\n   */\n  const amcStateToColorClass = (_ref, hash) => {\n    let [state] = _ref;\n    if (!state || !STATE_COLOR_CLASS_MAPPING[state]) {\n      if (hash.fallback) {\n        return hash.fallback;\n      }\n      return '';\n    }\n    return STATE_COLOR_CLASS_MAPPING[state];\n  };\n  _exports.amcStateToColorClass = amcStateToColorClass;\n  var _default = _exports.default = (0, _helper.helper)(amcStateToColorClass);\n});","define(\"additive-mc/helpers/and\", [\"exports\", \"ember-truth-helpers/helpers/and\"], function (_exports, _and) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"and\", {\n    enumerable: true,\n    get: function get() {\n      return _and.and;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _and.default;\n    }\n  });\n});","define(\"additive-mc/helpers/app-version\", [\"exports\", \"@ember/component/helper\", \"additive-mc/config/environment\", \"ember-cli-app-version/utils/regexp\"], function (_exports, _helper, _environment, _regexp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.appVersion = appVersion;\n  _exports.default = void 0;\n  function appVersion(_) {\n    let hash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    const version = _environment.default.APP.version;\n    // e.g. 1.0.0-alpha.1+4jds75hf\n\n    // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n    let versionOnly = hash.versionOnly || hash.hideSha;\n    let shaOnly = hash.shaOnly || hash.hideVersion;\n    let match = null;\n    if (versionOnly) {\n      if (hash.showExtended) {\n        match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1\n      }\n      // Fallback to just version\n      if (!match) {\n        match = version.match(_regexp.versionRegExp); // 1.0.0\n      }\n    }\n    if (shaOnly) {\n      match = version.match(_regexp.shaRegExp); // 4jds75hf\n    }\n    return match ? match[0] : version;\n  }\n  var _default = _exports.default = (0, _helper.helper)(appVersion);\n});","define(\"additive-mc/helpers/append\", [\"exports\", \"ember-composable-helpers/helpers/append\"], function (_exports, _append) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"append\", {\n    enumerable: true,\n    get: function get() {\n      return _append.append;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _append.default;\n    }\n  });\n});","define(\"additive-mc/helpers/array-find\", [\"exports\", \"@additive-apps/utils/helpers/array-find\"], function (_exports, _arrayFind) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"arrayFind\", {\n    enumerable: true,\n    get: function get() {\n      return _arrayFind.arrayFind;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _arrayFind.default;\n    }\n  });\n});","define(\"additive-mc/helpers/assign\", [\"exports\", \"ember-assign-helper/helpers/assign\"], function (_exports, _assign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"assign\", {\n    enumerable: true,\n    get: function get() {\n      return _assign.assign;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _assign.default;\n    }\n  });\n});","define(\"additive-mc/helpers/call\", [\"exports\", \"ember-composable-helpers/helpers/call\"], function (_exports, _call) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"call\", {\n    enumerable: true,\n    get: function get() {\n      return _call.call;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _call.default;\n    }\n  });\n});","define(\"additive-mc/helpers/cancel-all\", [\"exports\", \"ember-concurrency/helpers/cancel-all\"], function (_exports, _cancelAll) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _cancelAll.default;\n    }\n  });\n});","define(\"additive-mc/helpers/cents-to-amount\", [\"exports\", \"@ember/component/helper\", \"additive-mc/utils/currency-serialization\"], function (_exports, _helper, _currencySerialization) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.centsToAmount = void 0;\n  const centsToAmount = params => {\n    if (!params || !Array.isArray(params) || params.length === 0 || isNaN(parseFloat(params[0]))) {\n      return params;\n    }\n    const amount = Math.floor(100 * params[0]) / 100;\n    return (0, _currencySerialization.centsToAmount)(amount);\n  };\n  _exports.centsToAmount = centsToAmount;\n  var _default = _exports.default = (0, _helper.helper)(centsToAmount);\n});","define(\"additive-mc/helpers/changeset-get\", [\"exports\", \"ember-changeset/helpers/changeset-get\"], function (_exports, _changesetGet) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _changesetGet.default;\n    }\n  });\n});","define(\"additive-mc/helpers/changeset-set\", [\"exports\", \"ember-changeset/helpers/changeset-set\"], function (_exports, _changesetSet) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"changesetSet\", {\n    enumerable: true,\n    get: function get() {\n      return _changesetSet.changesetSet;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _changesetSet.default;\n    }\n  });\n});","define(\"additive-mc/helpers/changeset\", [\"exports\", \"ember-changeset-validations/helpers/changeset\"], function (_exports, _changeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"changeset\", {\n    enumerable: true,\n    get: function get() {\n      return _changeset.changeset;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _changeset.default;\n    }\n  });\n});","define(\"additive-mc/helpers/chunk\", [\"exports\", \"ember-composable-helpers/helpers/chunk\"], function (_exports, _chunk) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"chunk\", {\n    enumerable: true,\n    get: function get() {\n      return _chunk.chunk;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _chunk.default;\n    }\n  });\n});","define(\"additive-mc/helpers/compact\", [\"exports\", \"ember-composable-helpers/helpers/compact\"], function (_exports, _compact) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _compact.default;\n    }\n  });\n});","define(\"additive-mc/helpers/compute\", [\"exports\", \"ember-composable-helpers/helpers/compute\"], function (_exports, _compute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"compute\", {\n    enumerable: true,\n    get: function get() {\n      return _compute.compute;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _compute.default;\n    }\n  });\n});","define(\"additive-mc/helpers/contains\", [\"exports\", \"ember-composable-helpers/helpers/contains\"], function (_exports, _contains) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"contains\", {\n    enumerable: true,\n    get: function get() {\n      return _contains.contains;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _contains.default;\n    }\n  });\n});","define(\"additive-mc/helpers/currency-symbol\", [\"exports\", \"@additive-apps/utils/helpers/currency-symbol\"], function (_exports, _currencySymbol) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"currencySymbol\", {\n    enumerable: true,\n    get: function get() {\n      return _currencySymbol.currencySymbol;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _currencySymbol.default;\n    }\n  });\n});","define(\"additive-mc/helpers/currency\", [\"exports\", \"@additive-apps/utils/helpers/currency\"], function (_exports, _currency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"currency\", {\n    enumerable: true,\n    get: function get() {\n      return _currency.currency;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _currency.default;\n    }\n  });\n});","define(\"additive-mc/helpers/date-format\", [\"exports\", \"@additive-apps/utils/helpers/date-format\"], function (_exports, _dateFormat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"dateFormat\", {\n    enumerable: true,\n    get: function get() {\n      return _dateFormat.dateFormat;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _dateFormat.default;\n    }\n  });\n});","define(\"additive-mc/helpers/dec\", [\"exports\", \"ember-composable-helpers/helpers/dec\"], function (_exports, _dec) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"dec\", {\n    enumerable: true,\n    get: function get() {\n      return _dec.dec;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _dec.default;\n    }\n  });\n});","define(\"additive-mc/helpers/drop\", [\"exports\", \"ember-composable-helpers/helpers/drop\"], function (_exports, _drop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _drop.default;\n    }\n  });\n});","define(\"additive-mc/helpers/element\", [\"exports\", \"ember-element-helper/helpers/element\"], function (_exports, _element) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _element.default;\n    }\n  });\n});","define(\"additive-mc/helpers/ember-power-calendar-day-classes\", [\"exports\", \"ember-power-calendar/helpers/ember-power-calendar-day-classes\"], function (_exports, _emberPowerCalendarDayClasses) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _emberPowerCalendarDayClasses.default;\n    }\n  });\n  Object.defineProperty(_exports, \"emberPowerCalendarDayClasses\", {\n    enumerable: true,\n    get: function get() {\n      return _emberPowerCalendarDayClasses.emberPowerCalendarDayClasses;\n    }\n  });\n});","define(\"additive-mc/helpers/ensure-safe-component\", [\"exports\", \"@embroider/util\"], function (_exports, _util) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _util.EnsureSafeComponentHelper;\n    }\n  });\n});","define(\"additive-mc/helpers/entries\", [\"exports\", \"ember-composable-helpers/helpers/entries\"], function (_exports, _entries) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _entries.default;\n    }\n  });\n  Object.defineProperty(_exports, \"entries\", {\n    enumerable: true,\n    get: function get() {\n      return _entries.entries;\n    }\n  });\n});","define(\"additive-mc/helpers/eq\", [\"exports\", \"ember-truth-helpers/helpers/eq\"], function (_exports, _eq) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _eq.default;\n    }\n  });\n  Object.defineProperty(_exports, \"equal\", {\n    enumerable: true,\n    get: function get() {\n      return _eq.equal;\n    }\n  });\n});","define(\"additive-mc/helpers/equal\", [\"exports\", \"@additive-apps/utils/helpers/equal\"], function (_exports, _equal) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _equal.default;\n    }\n  });\n  Object.defineProperty(_exports, \"equal\", {\n    enumerable: true,\n    get: function get() {\n      return _equal.equal;\n    }\n  });\n});","define(\"additive-mc/helpers/file-queue\", [\"exports\", \"ember-file-upload/helpers/file-queue\"], function (_exports, _fileQueue) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _fileQueue.default;\n    }\n  });\n});","define(\"additive-mc/helpers/filter-by\", [\"exports\", \"ember-composable-helpers/helpers/filter-by\"], function (_exports, _filterBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _filterBy.default;\n    }\n  });\n});","define(\"additive-mc/helpers/filter\", [\"exports\", \"ember-composable-helpers/helpers/filter\"], function (_exports, _filter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _filter.default;\n    }\n  });\n});","define(\"additive-mc/helpers/find-by\", [\"exports\", \"ember-composable-helpers/helpers/find-by\"], function (_exports, _findBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _findBy.default;\n    }\n  });\n});","define(\"additive-mc/helpers/flatten\", [\"exports\", \"ember-composable-helpers/helpers/flatten\"], function (_exports, _flatten) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _flatten.default;\n    }\n  });\n  Object.defineProperty(_exports, \"flatten\", {\n    enumerable: true,\n    get: function get() {\n      return _flatten.flatten;\n    }\n  });\n});","define(\"additive-mc/helpers/format-date-time\", [\"exports\", \"@additive-apps/utils/helpers/format-date-time\"], function (_exports, _formatDateTime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _formatDateTime.default;\n    }\n  });\n  Object.defineProperty(_exports, \"formatDateTime\", {\n    enumerable: true,\n    get: function get() {\n      return _formatDateTime.formatDateTime;\n    }\n  });\n});","define(\"additive-mc/helpers/format-date\", [\"exports\", \"ember-intl/helpers/format-date\"], function (_exports, _formatDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _formatDate.default;\n    }\n  });\n});","define(\"additive-mc/helpers/format-message\", [\"exports\", \"ember-intl/helpers/format-message\"], function (_exports, _formatMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _formatMessage.default;\n    }\n  });\n});","define(\"additive-mc/helpers/format-number\", [\"exports\", \"ember-intl/helpers/format-number\"], function (_exports, _formatNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _formatNumber.default;\n    }\n  });\n});","define(\"additive-mc/helpers/format-relative\", [\"exports\", \"ember-intl/helpers/format-relative\"], function (_exports, _formatRelative) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _formatRelative.default;\n    }\n  });\n});","define(\"additive-mc/helpers/format-time\", [\"exports\", \"ember-intl/helpers/format-time\"], function (_exports, _formatTime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _formatTime.default;\n    }\n  });\n});","define(\"additive-mc/helpers/from-entries\", [\"exports\", \"ember-composable-helpers/helpers/from-entries\"], function (_exports, _fromEntries) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _fromEntries.default;\n    }\n  });\n  Object.defineProperty(_exports, \"fromEntries\", {\n    enumerable: true,\n    get: function get() {\n      return _fromEntries.fromEntries;\n    }\n  });\n});","define(\"additive-mc/helpers/group-by\", [\"exports\", \"ember-composable-helpers/helpers/group-by\"], function (_exports, _groupBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _groupBy.default;\n    }\n  });\n});","define(\"additive-mc/helpers/gt\", [\"exports\", \"ember-truth-helpers/helpers/gt\"], function (_exports, _gt) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _gt.default;\n    }\n  });\n  Object.defineProperty(_exports, \"gt\", {\n    enumerable: true,\n    get: function get() {\n      return _gt.gt;\n    }\n  });\n});","define(\"additive-mc/helpers/gte\", [\"exports\", \"ember-truth-helpers/helpers/gte\"], function (_exports, _gte) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _gte.default;\n    }\n  });\n  Object.defineProperty(_exports, \"gte\", {\n    enumerable: true,\n    get: function get() {\n      return _gte.gte;\n    }\n  });\n});","define(\"additive-mc/helpers/has-next\", [\"exports\", \"ember-composable-helpers/helpers/has-next\"], function (_exports, _hasNext) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _hasNext.default;\n    }\n  });\n  Object.defineProperty(_exports, \"hasNext\", {\n    enumerable: true,\n    get: function get() {\n      return _hasNext.hasNext;\n    }\n  });\n});","define(\"additive-mc/helpers/has-previous\", [\"exports\", \"ember-composable-helpers/helpers/has-previous\"], function (_exports, _hasPrevious) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _hasPrevious.default;\n    }\n  });\n  Object.defineProperty(_exports, \"hasPrevious\", {\n    enumerable: true,\n    get: function get() {\n      return _hasPrevious.hasPrevious;\n    }\n  });\n});","define(\"additive-mc/helpers/html-safe\", [\"exports\", \"@ember/component/helper\", \"@ember/string\", \"dompurify\"], function (_exports, _helper, _string, _dompurify) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * TODO move to ui or use template helper addon\n   */\n  var _default = _exports.default = (0, _helper.helper)(function htmlSafe(params) {\n    return (0, _string.htmlSafe)(typeof params === 'string' ? _dompurify.default.sanitize(params) : params);\n  });\n});","define(\"additive-mc/helpers/inc\", [\"exports\", \"ember-composable-helpers/helpers/inc\"], function (_exports, _inc) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _inc.default;\n    }\n  });\n  Object.defineProperty(_exports, \"inc\", {\n    enumerable: true,\n    get: function get() {\n      return _inc.inc;\n    }\n  });\n});","define(\"additive-mc/helpers/includes\", [\"exports\", \"ember-composable-helpers/helpers/includes\"], function (_exports, _includes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _includes.default;\n    }\n  });\n  Object.defineProperty(_exports, \"includes\", {\n    enumerable: true,\n    get: function get() {\n      return _includes.includes;\n    }\n  });\n});","define(\"additive-mc/helpers/intersect\", [\"exports\", \"ember-composable-helpers/helpers/intersect\"], function (_exports, _intersect) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _intersect.default;\n    }\n  });\n});","define(\"additive-mc/helpers/invoke\", [\"exports\", \"ember-composable-helpers/helpers/invoke\"], function (_exports, _invoke) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _invoke.default;\n    }\n  });\n  Object.defineProperty(_exports, \"invoke\", {\n    enumerable: true,\n    get: function get() {\n      return _invoke.invoke;\n    }\n  });\n});","define(\"additive-mc/helpers/is-array\", [\"exports\", \"ember-truth-helpers/helpers/is-array\"], function (_exports, _isArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _isArray.default;\n    }\n  });\n  Object.defineProperty(_exports, \"isArray\", {\n    enumerable: true,\n    get: function get() {\n      return _isArray.isArray;\n    }\n  });\n});","define(\"additive-mc/helpers/is-empty\", [\"exports\", \"ember-truth-helpers/helpers/is-empty\"], function (_exports, _isEmpty) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _isEmpty.default;\n    }\n  });\n});","define(\"additive-mc/helpers/is-equal\", [\"exports\", \"ember-truth-helpers/helpers/is-equal\"], function (_exports, _isEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _isEqual.default;\n    }\n  });\n  Object.defineProperty(_exports, \"isEqual\", {\n    enumerable: true,\n    get: function get() {\n      return _isEqual.isEqual;\n    }\n  });\n});","define(\"additive-mc/helpers/is-none\", [\"exports\", \"@additive-apps/utils/helpers/is-none\"], function (_exports, _isNone) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _isNone.default;\n    }\n  });\n  Object.defineProperty(_exports, \"isNone\", {\n    enumerable: true,\n    get: function get() {\n      return _isNone.isNone;\n    }\n  });\n});","define(\"additive-mc/helpers/join\", [\"exports\", \"ember-composable-helpers/helpers/join\"], function (_exports, _join) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _join.default;\n    }\n  });\n});","define(\"additive-mc/helpers/keys\", [\"exports\", \"ember-composable-helpers/helpers/keys\"], function (_exports, _keys) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _keys.default;\n    }\n  });\n  Object.defineProperty(_exports, \"keys\", {\n    enumerable: true,\n    get: function get() {\n      return _keys.keys;\n    }\n  });\n});","define(\"additive-mc/helpers/loc\", [\"exports\", \"@ember/string/helpers/loc\"], function (_exports, _loc) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _loc.default;\n    }\n  });\n  Object.defineProperty(_exports, \"loc\", {\n    enumerable: true,\n    get: function get() {\n      return _loc.loc;\n    }\n  });\n});","define(\"additive-mc/helpers/loop\", [\"exports\", \"@additive-apps/utils/helpers/loop\"], function (_exports, _loop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _loop.default;\n    }\n  });\n  Object.defineProperty(_exports, \"loop\", {\n    enumerable: true,\n    get: function get() {\n      return _loop.loop;\n    }\n  });\n});","define(\"additive-mc/helpers/lt\", [\"exports\", \"ember-truth-helpers/helpers/lt\"], function (_exports, _lt) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _lt.default;\n    }\n  });\n  Object.defineProperty(_exports, \"lt\", {\n    enumerable: true,\n    get: function get() {\n      return _lt.lt;\n    }\n  });\n});","define(\"additive-mc/helpers/lte\", [\"exports\", \"ember-truth-helpers/helpers/lte\"], function (_exports, _lte) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _lte.default;\n    }\n  });\n  Object.defineProperty(_exports, \"lte\", {\n    enumerable: true,\n    get: function get() {\n      return _lte.lte;\n    }\n  });\n});","define(\"additive-mc/helpers/map-by\", [\"exports\", \"ember-composable-helpers/helpers/map-by\"], function (_exports, _mapBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mapBy.default;\n    }\n  });\n});","define(\"additive-mc/helpers/map\", [\"exports\", \"ember-composable-helpers/helpers/map\"], function (_exports, _map) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _map.default;\n    }\n  });\n});","define(\"additive-mc/helpers/mm-medium-url-options\", [\"exports\", \"@additive-apps/media/helpers/mm-medium-url-options\"], function (_exports, _mmMediumUrlOptions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _mmMediumUrlOptions.default;\n    }\n  });\n  Object.defineProperty(_exports, \"mmMediumUrlOptions\", {\n    enumerable: true,\n    get: function get() {\n      return _mmMediumUrlOptions.mmMediumUrlOptions;\n    }\n  });\n});","define(\"additive-mc/helpers/next\", [\"exports\", \"ember-composable-helpers/helpers/next\"], function (_exports, _next) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _next.default;\n    }\n  });\n  Object.defineProperty(_exports, \"next\", {\n    enumerable: true,\n    get: function get() {\n      return _next.next;\n    }\n  });\n});","define(\"additive-mc/helpers/noop\", [\"exports\", \"ember-composable-helpers/helpers/noop\"], function (_exports, _noop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _noop.default;\n    }\n  });\n  Object.defineProperty(_exports, \"noop\", {\n    enumerable: true,\n    get: function get() {\n      return _noop.noop;\n    }\n  });\n});","define(\"additive-mc/helpers/not-eq\", [\"exports\", \"ember-truth-helpers/helpers/not-eq\"], function (_exports, _notEq) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _notEq.default;\n    }\n  });\n  Object.defineProperty(_exports, \"notEqualHelper\", {\n    enumerable: true,\n    get: function get() {\n      return _notEq.notEqualHelper;\n    }\n  });\n});","define(\"additive-mc/helpers/not\", [\"exports\", \"ember-truth-helpers/helpers/not\"], function (_exports, _not) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _not.default;\n    }\n  });\n  Object.defineProperty(_exports, \"not\", {\n    enumerable: true,\n    get: function get() {\n      return _not.not;\n    }\n  });\n});","define(\"additive-mc/helpers/object-at\", [\"exports\", \"ember-composable-helpers/helpers/object-at\"], function (_exports, _objectAt) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _objectAt.default;\n    }\n  });\n  Object.defineProperty(_exports, \"objectAt\", {\n    enumerable: true,\n    get: function get() {\n      return _objectAt.objectAt;\n    }\n  });\n});","define(\"additive-mc/helpers/optional\", [\"exports\", \"ember-composable-helpers/helpers/optional\"], function (_exports, _optional) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _optional.default;\n    }\n  });\n  Object.defineProperty(_exports, \"optional\", {\n    enumerable: true,\n    get: function get() {\n      return _optional.optional;\n    }\n  });\n});","define(\"additive-mc/helpers/or\", [\"exports\", \"ember-truth-helpers/helpers/or\"], function (_exports, _or) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _or.default;\n    }\n  });\n  Object.defineProperty(_exports, \"or\", {\n    enumerable: true,\n    get: function get() {\n      return _or.or;\n    }\n  });\n});","define(\"additive-mc/helpers/perform\", [\"exports\", \"ember-concurrency/helpers/perform\"], function (_exports, _perform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _perform.default;\n    }\n  });\n});","define(\"additive-mc/helpers/pick\", [\"exports\", \"ember-composable-helpers/helpers/pick\"], function (_exports, _pick) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _pick.default;\n    }\n  });\n  Object.defineProperty(_exports, \"pick\", {\n    enumerable: true,\n    get: function get() {\n      return _pick.pick;\n    }\n  });\n});","define(\"additive-mc/helpers/pipe-action\", [\"exports\", \"ember-composable-helpers/helpers/pipe-action\"], function (_exports, _pipeAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _pipeAction.default;\n    }\n  });\n});","define(\"additive-mc/helpers/pipe\", [\"exports\", \"ember-composable-helpers/helpers/pipe\"], function (_exports, _pipe) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _pipe.default;\n    }\n  });\n  Object.defineProperty(_exports, \"pipe\", {\n    enumerable: true,\n    get: function get() {\n      return _pipe.pipe;\n    }\n  });\n});","define(\"additive-mc/helpers/pluralize\", [\"exports\", \"ember-inflector/lib/helpers/pluralize\"], function (_exports, _pluralize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _pluralize.default;\n});","define(\"additive-mc/helpers/power-calendar-format-date\", [\"exports\", \"ember-power-calendar/helpers/power-calendar-format-date\"], function (_exports, _powerCalendarFormatDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _powerCalendarFormatDate.default;\n    }\n  });\n  Object.defineProperty(_exports, \"powerCalendarFormatDate\", {\n    enumerable: true,\n    get: function get() {\n      return _powerCalendarFormatDate.powerCalendarFormatDate;\n    }\n  });\n});","define(\"additive-mc/helpers/previous\", [\"exports\", \"ember-composable-helpers/helpers/previous\"], function (_exports, _previous) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _previous.default;\n    }\n  });\n  Object.defineProperty(_exports, \"previous\", {\n    enumerable: true,\n    get: function get() {\n      return _previous.previous;\n    }\n  });\n});","define(\"additive-mc/helpers/queue\", [\"exports\", \"ember-composable-helpers/helpers/queue\"], function (_exports, _queue) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _queue.default;\n    }\n  });\n  Object.defineProperty(_exports, \"queue\", {\n    enumerable: true,\n    get: function get() {\n      return _queue.queue;\n    }\n  });\n});","define(\"additive-mc/helpers/range\", [\"exports\", \"ember-composable-helpers/helpers/range\"], function (_exports, _range) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _range.default;\n    }\n  });\n  Object.defineProperty(_exports, \"range\", {\n    enumerable: true,\n    get: function get() {\n      return _range.range;\n    }\n  });\n});","define(\"additive-mc/helpers/reduce\", [\"exports\", \"ember-composable-helpers/helpers/reduce\"], function (_exports, _reduce) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _reduce.default;\n    }\n  });\n});","define(\"additive-mc/helpers/reject-by\", [\"exports\", \"ember-composable-helpers/helpers/reject-by\"], function (_exports, _rejectBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _rejectBy.default;\n    }\n  });\n});","define(\"additive-mc/helpers/repeat\", [\"exports\", \"ember-composable-helpers/helpers/repeat\"], function (_exports, _repeat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _repeat.default;\n    }\n  });\n  Object.defineProperty(_exports, \"repeat\", {\n    enumerable: true,\n    get: function get() {\n      return _repeat.repeat;\n    }\n  });\n});","define(\"additive-mc/helpers/reverse\", [\"exports\", \"ember-composable-helpers/helpers/reverse\"], function (_exports, _reverse) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _reverse.default;\n    }\n  });\n});","define(\"additive-mc/helpers/shuffle\", [\"exports\", \"ember-composable-helpers/helpers/shuffle\"], function (_exports, _shuffle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _shuffle.default;\n    }\n  });\n  Object.defineProperty(_exports, \"shuffle\", {\n    enumerable: true,\n    get: function get() {\n      return _shuffle.shuffle;\n    }\n  });\n});","define(\"additive-mc/helpers/singularize\", [\"exports\", \"ember-inflector/lib/helpers/singularize\"], function (_exports, _singularize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _singularize.default;\n});","define(\"additive-mc/helpers/slice\", [\"exports\", \"ember-composable-helpers/helpers/slice\"], function (_exports, _slice) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _slice.default;\n    }\n  });\n});","define(\"additive-mc/helpers/sort-by\", [\"exports\", \"ember-composable-helpers/helpers/sort-by\"], function (_exports, _sortBy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _sortBy.default;\n    }\n  });\n});","define(\"additive-mc/helpers/svg-jar\", [\"exports\", \"ember-svg-jar/utils/make-helper\", \"ember-svg-jar/utils/make-svg\"], function (_exports, _makeHelper, _makeSvg) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.svgJar = svgJar;\n  function getInlineAsset(assetId) {\n    try {\n      /* eslint-disable global-require */\n      return require(`ember-svg-jar/inlined/${assetId}`).default;\n    } catch (err) {\n      return null;\n    }\n  }\n  function svgJar(assetId, svgAttrs) {\n    return (0, _makeSvg.default)(assetId, svgAttrs, getInlineAsset);\n  }\n  var _default = _exports.default = (0, _makeHelper.default)(svgJar);\n});","define(\"additive-mc/helpers/t\", [\"exports\", \"ember-intl/helpers/t\"], function (_exports, _t) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _t.default;\n    }\n  });\n});","define(\"additive-mc/helpers/take\", [\"exports\", \"ember-composable-helpers/helpers/take\"], function (_exports, _take) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _take.default;\n    }\n  });\n});","define(\"additive-mc/helpers/task\", [\"exports\", \"ember-concurrency/helpers/task\"], function (_exports, _task) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _task.default;\n    }\n  });\n});","define(\"additive-mc/helpers/toggle-action\", [\"exports\", \"ember-composable-helpers/helpers/toggle-action\"], function (_exports, _toggleAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _toggleAction.default;\n    }\n  });\n});","define(\"additive-mc/helpers/toggle\", [\"exports\", \"ember-composable-helpers/helpers/toggle\"], function (_exports, _toggle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _toggle.default;\n    }\n  });\n  Object.defineProperty(_exports, \"toggle\", {\n    enumerable: true,\n    get: function get() {\n      return _toggle.toggle;\n    }\n  });\n});","define(\"additive-mc/helpers/ui-array-includes\", [\"exports\", \"@additive-apps/ui/helpers/ui-array-includes\"], function (_exports, _uiArrayIncludes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiArrayIncludes.default;\n    }\n  });\n  Object.defineProperty(_exports, \"uiArrayIncludes\", {\n    enumerable: true,\n    get: function get() {\n      return _uiArrayIncludes.uiArrayIncludes;\n    }\n  });\n});","define(\"additive-mc/helpers/ui-country-name\", [\"exports\", \"@additive-apps/ui/helpers/ui-country-name\"], function (_exports, _uiCountryName) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiCountryName.default;\n    }\n  });\n  Object.defineProperty(_exports, \"uiCountryName\", {\n    enumerable: true,\n    get: function get() {\n      return _uiCountryName.uiCountryName;\n    }\n  });\n});","define(\"additive-mc/helpers/ui-days-left\", [\"exports\", \"@additive-apps/ui/helpers/ui-days-left\"], function (_exports, _uiDaysLeft) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiDaysLeft.default;\n    }\n  });\n  Object.defineProperty(_exports, \"uiDaysLeft\", {\n    enumerable: true,\n    get: function get() {\n      return _uiDaysLeft.uiDaysLeft;\n    }\n  });\n});","define(\"additive-mc/helpers/ui-format-currency\", [\"exports\", \"@additive-apps/ui/helpers/ui-format-currency\"], function (_exports, _uiFormatCurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiFormatCurrency.default;\n    }\n  });\n  Object.defineProperty(_exports, \"uiFormatCurrency\", {\n    enumerable: true,\n    get: function get() {\n      return _uiFormatCurrency.uiFormatCurrency;\n    }\n  });\n});","define(\"additive-mc/helpers/ui-optional-action\", [\"exports\", \"@additive-apps/ui/helpers/ui-optional-action\"], function (_exports, _uiOptionalAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiOptionalAction.default;\n    }\n  });\n});","define(\"additive-mc/helpers/ui-parse-int\", [\"exports\", \"@additive-apps/ui/helpers/ui-parse-int\"], function (_exports, _uiParseInt) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiParseInt.default;\n    }\n  });\n  Object.defineProperty(_exports, \"uiParseInt\", {\n    enumerable: true,\n    get: function get() {\n      return _uiParseInt.uiParseInt;\n    }\n  });\n});","define(\"additive-mc/helpers/ui-synced-value\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.uiSyncedValue = uiSyncedValue;\n  function uiSyncedValue(params, _ref) {\n    let {\n      value = '',\n      sync = false\n    } = _ref;\n    const {\n      syncedValue\n    } = params && params[0] || {};\n    return sync ? syncedValue : value;\n  }\n  var _default = _exports.default = (0, _helper.helper)(uiSyncedValue);\n});","define(\"additive-mc/helpers/ui-to-string\", [\"exports\", \"@additive-apps/ui/helpers/ui-to-string\"], function (_exports, _uiToString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiToString.default;\n    }\n  });\n  Object.defineProperty(_exports, \"uiToString\", {\n    enumerable: true,\n    get: function get() {\n      return _uiToString.uiToString;\n    }\n  });\n});","define(\"additive-mc/helpers/union\", [\"exports\", \"ember-composable-helpers/helpers/union\"], function (_exports, _union) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _union.default;\n    }\n  });\n});","define(\"additive-mc/helpers/values\", [\"exports\", \"ember-composable-helpers/helpers/values\"], function (_exports, _values) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _values.default;\n    }\n  });\n  Object.defineProperty(_exports, \"values\", {\n    enumerable: true,\n    get: function get() {\n      return _values.values;\n    }\n  });\n});","define(\"additive-mc/helpers/without\", [\"exports\", \"ember-composable-helpers/helpers/without\"], function (_exports, _without) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _without.default;\n    }\n  });\n  Object.defineProperty(_exports, \"without\", {\n    enumerable: true,\n    get: function get() {\n      return _without.without;\n    }\n  });\n});","define(\"additive-mc/helpers/xor\", [\"exports\", \"ember-truth-helpers/helpers/xor\"], function (_exports, _xor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _xor.default;\n    }\n  });\n  Object.defineProperty(_exports, \"xor\", {\n    enumerable: true,\n    get: function get() {\n      return _xor.xor;\n    }\n  });\n});","define(\"additive-mc/initializers/app-version\", [\"exports\", \"ember-cli-app-version/initializer-factory\", \"additive-mc/config/environment\"], function (_exports, _initializerFactory, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let name, version;\n  if (_environment.default.APP) {\n    name = _environment.default.APP.name;\n    version = _environment.default.APP.version;\n  }\n  var _default = _exports.default = {\n    name: 'App Version',\n    initialize: (0, _initializerFactory.default)(name, version)\n  };\n});","define(\"additive-mc/initializers/container-debug-adapter\", [\"exports\", \"ember-resolver/resolvers/classic/container-debug-adapter\"], function (_exports, _containerDebugAdapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    name: 'container-debug-adapter',\n    initialize() {\n      let app = arguments[1] || arguments[0];\n      app.register('container-debug-adapter:main', _containerDebugAdapter.default);\n    }\n  };\n});","define(\"additive-mc/initializers/ember-cli-mirage\", [\"exports\", \"additive-mc/config/environment\", \"ember-cli-mirage/get-rfc232-test-context\", \"ember-cli-mirage/start-mirage\", \"additive-mc/mirage/config\"], function (_exports, _environment, _getRfc232TestContext, _startMirage, config) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.startMirage = startMirage;\n  const {\n    default: baseConfig,\n    testConfig,\n    makeServer\n  } = config;\n\n  //\n  // This initializer does two things:\n  //\n  // 1. Pulls the mirage config objects from the application's config and\n  //    registers them in the container so `ember-cli-mirage/start-mirage` can\n  //    find them (since it doesn't have access to the app's namespace).\n  // 2. Provides legacy support for auto-starting mirage in pre-rfc268 acceptance\n  //    tests.\n  //\n  var _default = _exports.default = {\n    name: 'ember-cli-mirage',\n    initialize(application) {\n      if (baseConfig) {\n        application.register('mirage:base-config', baseConfig, {\n          instantiate: false\n        });\n      }\n      if (testConfig) {\n        application.register('mirage:test-config', testConfig, {\n          instantiate: false\n        });\n      }\n      if (makeServer) {\n        application.register('mirage:make-server', makeServer, {\n          instantiate: false\n        });\n      }\n      _environment.default['ember-cli-mirage'] = _environment.default['ember-cli-mirage'] || {};\n      if (_shouldUseMirage(_environment.default.environment, _environment.default['ember-cli-mirage'])) {\n        startMirage(_environment.default);\n      }\n    }\n  };\n  function startMirage() {\n    let env = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _environment.default;\n    return (0, _startMirage.default)(null, {\n      env,\n      baseConfig,\n      testConfig,\n      makeServer\n    });\n  }\n  function _shouldUseMirage(env, addonConfig) {\n    if (typeof FastBoot !== 'undefined') {\n      return false;\n    }\n    if ((0, _getRfc232TestContext.default)()) {\n      return false;\n    }\n    let userDeclaredEnabled = typeof addonConfig.enabled !== 'undefined';\n    let defaultEnabled = _defaultEnabled(env, addonConfig);\n    return userDeclaredEnabled ? addonConfig.enabled : defaultEnabled;\n  }\n\n  /*\n    Returns a boolean specifying the default behavior for whether\n    to initialize Mirage.\n  */\n  function _defaultEnabled(env, addonConfig) {\n    let usingInDev = env === 'development' && !addonConfig.usingProxy;\n    let usingInTest = env === 'test';\n    return usingInDev || usingInTest;\n  }\n});","define(\"additive-mc/initializers/ember-data-data-adapter\", [\"exports\", \"@ember-data/debug/setup\"], function (_exports, _setup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _setup.default;\n    }\n  });\n});","define(\"additive-mc/initializers/ember-data\", [\"exports\", \"ember-data\", \"ember-data/setup-container\"], function (_exports, _emberData, _setupContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /*\n    This code initializes EmberData in an Ember application.\n  \n    It ensures that the `store` service is automatically injected\n    as the `store` property on all routes and controllers.\n  */\n  var _default = _exports.default = {\n    name: 'ember-data',\n    initialize: _setupContainer.default\n  };\n});","define(\"additive-mc/initializers/ember-simple-auth\", [\"exports\", \"additive-mc/config/environment\", \"ember-simple-auth/configuration\", \"ember-simple-auth/initializers/setup-session\", \"ember-simple-auth/initializers/setup-session-service\", \"ember-simple-auth/initializers/setup-session-restoration\"], function (_exports, _environment, _configuration, _setupSession, _setupSessionService, _setupSessionRestoration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    name: 'ember-simple-auth',\n    initialize(registry) {\n      const config = _environment.default['ember-simple-auth'] || {};\n      config.rootURL = _environment.default.rootURL || _environment.default.baseURL;\n      _configuration.default.load(config);\n      (0, _setupSession.default)(registry);\n      (0, _setupSessionService.default)(registry);\n      (0, _setupSessionRestoration.default)(registry);\n    }\n  };\n});","define(\"additive-mc/initializers/engines\", [\"exports\", \"ember-engines/initializers/engines\"], function (_exports, _engines) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _engines.default;\n    }\n  });\n  Object.defineProperty(_exports, \"initialize\", {\n    enumerable: true,\n    get: function get() {\n      return _engines.initialize;\n    }\n  });\n});","define(\"additive-mc/initializers/export-application-global\", [\"exports\", \"ember\", \"additive-mc/config/environment\"], function (_exports, _ember, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  function initialize() {\n    var application = arguments[1] || arguments[0];\n    if (_environment.default.exportApplicationGlobal !== false) {\n      var theGlobal;\n      if (typeof window !== 'undefined') {\n        theGlobal = window;\n      } else if (typeof global !== 'undefined') {\n        theGlobal = global;\n      } else if (typeof self !== 'undefined') {\n        theGlobal = self;\n      } else {\n        // no reasonable global, just bail\n        return;\n      }\n      var value = _environment.default.exportApplicationGlobal;\n      var globalName;\n      if (typeof value === 'string') {\n        globalName = value;\n      } else {\n        globalName = _ember.default.String.classify(_environment.default.modulePrefix);\n      }\n      if (!theGlobal[globalName]) {\n        theGlobal[globalName] = application;\n        application.reopen({\n          willDestroy: function willDestroy() {\n            this._super.apply(this, arguments);\n            delete theGlobal[globalName];\n          }\n        });\n      }\n    }\n  }\n  var _default = _exports.default = {\n    name: 'export-application-global',\n    initialize: initialize\n  };\n});","define(\"additive-mc/instance-initializers/ember-cli-mirage-autostart\", [\"exports\", \"ember-cli-mirage/instance-initializers/ember-cli-mirage-autostart\"], function (_exports, _emberCliMirageAutostart) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _emberCliMirageAutostart.default;\n    }\n  });\n});","define(\"additive-mc/instance-initializers/ember-data\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* exists only for things that historically used \"after\" or \"before\" */\n  var _default = _exports.default = {\n    name: 'ember-data',\n    initialize() {}\n  };\n});","define(\"additive-mc/instance-initializers/ember-simple-auth\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  // This is only needed for backwards compatibility and will be removed in the\n  // next major release of ember-simple-auth. Unfortunately, there is no way to\n  // deprecate this without hooking into Ember's internals…\n  var _default = _exports.default = {\n    name: 'ember-simple-auth',\n    initialize() {}\n  };\n});","define(\"additive-mc/instance-initializers/full-story\", [\"exports\", \"@additive-apps/jam-ember/instance-initializers/full-story\"], function (_exports, _fullStory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _fullStory.default;\n    }\n  });\n  Object.defineProperty(_exports, \"initialize\", {\n    enumerable: true,\n    get: function get() {\n      return _fullStory.initialize;\n    }\n  });\n});","define(\"additive-mc/instance-initializers/google-analytics\", [\"exports\", \"@additive-apps/jam-ember/instance-initializers/google-analytics\"], function (_exports, _googleAnalytics) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _googleAnalytics.default;\n    }\n  });\n  Object.defineProperty(_exports, \"initialize\", {\n    enumerable: true,\n    get: function get() {\n      return _googleAnalytics.initialize;\n    }\n  });\n});","define(\"additive-mc/instance-initializers/load-asset-manifest\", [\"exports\", \"additive-mc/config/asset-manifest\"], function (_exports, _assetManifest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  /**\n   * Initializes the AssetLoader service with a generated asset-manifest.\n   */\n  function initialize(instance) {\n    const service = instance.lookup('service:asset-loader');\n    service.pushManifest(_assetManifest.default);\n  }\n  var _default = _exports.default = {\n    name: 'load-asset-manifest',\n    initialize\n  };\n});","define(\"additive-mc/instance-initializers/sentry-performance\", [\"exports\", \"@sentry/ember/instance-initializers/sentry-performance\"], function (_exports, _sentryPerformance) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _sentryPerformance.default;\n    }\n  });\n  Object.defineProperty(_exports, \"initialize\", {\n    enumerable: true,\n    get: function get() {\n      return _sentryPerformance.initialize;\n    }\n  });\n});","define(\"additive-mc/instance-initializers/sentry\", [\"exports\", \"@additive-apps/jam-ember/instance-initializers/sentry\"], function (_exports, _sentry) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _sentry.default;\n    }\n  });\n  Object.defineProperty(_exports, \"initialize\", {\n    enumerable: true,\n    get: function get() {\n      return _sentry.initialize;\n    }\n  });\n});","define(\"additive-mc/instance-initializers/ui-body\", [\"exports\", \"@additive-apps/ui/instance-initializers/ui-body\"], function (_exports, _uiBody) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiBody.default;\n    }\n  });\n});","define(\"additive-mc/mirage-factories/list\", [\"exports\", \"@additive-apps/ui/mirage-factories/list\"], function (_exports, _list) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _list.default;\n    }\n  });\n});","define(\"additive-mc/mirage-models/folder\", [\"exports\", \"@additive-apps/media/mirage-models/folder\"], function (_exports, _folder) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _folder.default;\n    }\n  });\n});","define(\"additive-mc/mirage-models/list\", [\"exports\", \"@additive-apps/ui/mirage-models/list\"], function (_exports, _list) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _list.default;\n    }\n  });\n});","define(\"additive-mc/mirage-models/voucher\", [\"exports\", \"@additive-apps/ui/mirage-models/voucher\"], function (_exports, _voucher) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _voucher.default;\n    }\n  });\n});","define(\"additive-mc/mirage/config\", [\"exports\", \"additive-mc/config/environment\", \"additive-mc/mirage/routes/campaigns\", \"additive-mc/mirage/routes/dashboard\", \"additive-mc/mirage/routes/reports\", \"additive-mc/mirage/routes/reports/onPage\", \"additive-mc/mirage/routes/preview\", \"additive-mc/mirage/routes/settings\", \"additive-mc/mirage/routes/transactions\", \"additive-mc/mirage/routes/widgets/widgets\", \"additive-mc/mirage/routes/widgets/corporate-design\", \"additive-mc/mirage/routes/campaigns/on-page\"], function (_exports, _environment, _campaigns, _dashboard, _reports, _onPage, _preview, _settings, _transactions, _widgets, _corporateDesign, _onPage2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default() {\n    this.urlPrefix = _environment.default.APP.apiBaseHost;\n    this.namespace = '**';\n\n    // dashboard specific requests\n    (0, _dashboard.DashboardCharts)(this);\n    (0, _dashboard.DashboardKeyIndicators)(this);\n    (0, _dashboard.DashboardOverview)(this);\n    (0, _dashboard.DashboardEmailCampaigns)(this);\n    (0, _dashboard.DashboardAdCampaigns)(this);\n\n    // campaign specific routes\n    (0, _campaigns.AdRoutes)(this);\n    (0, _campaigns.TikTokLeadAdsRoutes)(this);\n    (0, _campaigns.LeadAdRoutes)(this);\n    (0, _campaigns.TriggerEmailRoutes)(this);\n    (0, _campaigns.EmailRoutes)(this);\n    (0, _campaigns.SocialRoutes)(this);\n    (0, _onPage2.OnPageRoutes)(this);\n    (0, _campaigns.SearchAdRoutes)(this);\n\n    // report specific routes\n    (0, _reports.ReportsOverview)(this);\n    (0, _reports.ReportsKeyIndicators)(this);\n    (0, _reports.ReportsReservations)(this);\n    (0, _reports.ReportsConversions)(this);\n    (0, _reports.ReportsValueAdded)(this);\n    (0, _reports.ReportsReservationTable)(this);\n    (0, _reports.ReportsLeadsTable)(this);\n\n    // reports/email\n    (0, _reports.EmailReportsKeyIndicators)(this);\n    (0, _reports.EmailReportsReservations)(this);\n    (0, _reports.EmailReportsConversions)(this);\n    (0, _reports.EmailReportsMetrics)(this);\n    (0, _reports.EmailReportsPastMarketingActions)(this);\n    (0, _reports.EmailReportsReservationTable)(this);\n\n    // reports/ad\n    (0, _reports.AdReportsLeadAdMetrics)(this);\n    (0, _reports.AdReportsKeyIndicators)(this);\n    (0, _reports.AdReportsTiktokLeadAdMetrics)(this);\n    (0, _reports.AdReportsReservations)(this);\n    (0, _reports.AdReportsConversions)(this);\n    (0, _reports.AdReportsMetrics)(this);\n    (0, _reports.AdReportsPastMarketingActions)(this);\n    (0, _reports.AdReportsReservationTable)(this);\n    (0, _reports.AdReportsOverall)(this);\n\n    //reports/onPage\n    (0, _onPage.OnPageReportKeyIndicators)(this);\n\n    // reports/social\n    (0, _reports.SocialReportsKeyIndicators)(this);\n    (0, _reports.SocialReportsReservations)(this);\n    (0, _reports.SocialReportsConversions)(this);\n    (0, _reports.SocialReportsMetrics)(this);\n    (0, _reports.SocialReportsPastMarketingActions)(this);\n    (0, _reports.SocialReportsReservationTable)(this);\n\n    //reports/leads\n    (0, _reports.LeadPerformanceMetrics)(this);\n    (0, _reports.LeadPerformanceCampaignsInsights)(this);\n    (0, _reports.LeadPerformanceChart)(this);\n\n    // preview specific routes\n    (0, _preview.OverviewRequests)(this);\n    (0, _preview.EmailPreviewRequests)(this);\n\n    // widgets\n    (0, _widgets.WidgetRoutes)(this);\n    (0, _corporateDesign.CorporateDesignRoutes)(this);\n\n    // settings\n    (0, _settings.SettingRoutes)(this);\n    (0, _settings.LegalsRoutes)(this);\n    (0, _settings.FacebookRoutes)(this);\n\n    // transactions\n    (0, _transactions.TransactionsRoutes)(this);\n  }\n});","define(\"additive-mc/mirage/factories/ad-campaign\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    title(i) {\n      return `Ad Campaign ${i}`;\n    },\n    description() {\n      return this.title;\n    },\n    type: () => _faker.default.random.arrayElement(['FacebookAdsCampaign', 'FacebookLeadAdCampaign', 'FacebookContentAdCampaign', 'TikTokLeadAdCampaign']),\n    code: () => _faker.default.random.arrayElement(['usecase1', 'usecase2a', 'usecase2b', 'usecase3a', 'usecase3b', 'usecase4']),\n    campaignGoal: () => {\n      return _faker.default.random.arrayElement(['conversions', 'brandAwareness', 'reach']);\n    },\n    active() {\n      return _faker.default.random.boolean();\n    },\n    activeFrom() {\n      if (this.active) {\n        return _faker.default.date.past();\n      }\n      return null;\n    },\n    activeUntil() {\n      if (this.active) {\n        return _faker.default.date.future();\n      }\n    },\n    configurations() {\n      if (this.type === 'FacebookContentAdCampaign') {\n        return [{\n          id: 1,\n          label: 'Facebook Kampagne ID',\n          type: 'text',\n          key: 'facebook-campaign-id',\n          value: '123456789'\n        }, {\n          id: 2,\n          label: 'Kampagnen Ziel',\n          type: 'text',\n          key: 'facebook-campaign-goal',\n          value: this.campaignGoal\n        }];\n      } else {\n        return [{\n          id: 1,\n          label: 'Zum welchem Zeitpunkt?',\n          description: \"You dont always have to f**k her hard, in fact sometimes that's not right to do\",\n          type: 'time',\n          key: 'my-unique-time',\n          order: _faker.default.random.number(),\n          value: _faker.default.random.arrayElement([null, '15:30', '01:16', '08:09'])\n        }, {\n          id: 2,\n          label: 'Bild',\n          type: 'multimedia',\n          key: 'my-unique-multimedia',\n          order: _faker.default.random.number(),\n          value: _faker.default.random.arrayElement([null, 'image'])\n        }, {\n          id: 3,\n          label: 'multilingual-texts',\n          type: 'multilingual-texts',\n          key: 'my-multilingual-texts',\n          order: _faker.default.random.number(),\n          value: [{\n            de: 'de text1',\n            en: 'en text1'\n          }, {\n            de: 'de text2',\n            en: 'en text2'\n          }, {\n            de: 'de text3'\n          }]\n        }];\n      }\n    },\n    afterCreate(campaign, server) {\n      var _campaign$configurati;\n      let configurations = ((_campaign$configurati = campaign.configurations) === null || _campaign$configurati === void 0 ? void 0 : _campaign$configurati.slice(0)) || null;\n      if (!configurations) {\n        if (campaign.type === 'FacebookContentAdCampaign') {\n          configurations = [{\n            id: 1,\n            label: 'Facebook Kampagne ID',\n            type: 'text',\n            key: 'facebook-campaign-id',\n            value: '123456789'\n          }, {\n            id: 2,\n            label: 'Kampagnen Ziel',\n            type: 'text',\n            key: 'facebook-campaign-goal',\n            value: _faker.default.random.arrayElement(['conversions'])\n          }];\n        } else {\n          configurations = [{\n            id: 1,\n            label: 'Zum welchem Zeitpunkt?',\n            description: \"You dont always have to f**k her hard, in fact sometimes that's not right to do\",\n            type: 'time',\n            key: 'my-unique-time',\n            order: _faker.default.random.number(),\n            value: _faker.default.random.arrayElement([null, '15:30', '01:16', '08:09'])\n          }, {\n            id: 2,\n            label: 'Bild',\n            type: 'multimedia',\n            key: 'my-unique-multimedia',\n            order: _faker.default.random.number(),\n            value: _faker.default.random.arrayElement([null, 'image'])\n          }, {\n            id: 3,\n            label: 'multilingual-texts',\n            type: 'multilingual-texts',\n            key: 'my-multilingual-texts',\n            order: _faker.default.random.number(),\n            value: [{\n              de: 'de text1',\n              en: 'en text1'\n            }, {\n              de: 'de text2',\n              en: 'en text2'\n            }, {\n              de: 'de text3'\n            }]\n          }];\n        }\n      }\n      configurations.forEach(config => {\n        if (config.type !== 'multimedia' || config.value !== 'image') {\n          return config;\n        }\n        config.value = server.create('image');\n      });\n      campaign.update({\n        configurations\n      });\n    }\n  });\n});","define(\"additive-mc/mirage/factories/ad-facebook\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    label() {\n      return `Facebook Ads ${_faker.default.random.word()}`;\n    }\n  });\n});","define(\"additive-mc/mirage/factories/ad-past-marketing-action\", [\"exports\", \"additive-mc/mirage/factories/past-marketing-action\"], function (_exports, _pastMarketingAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _pastMarketingAction.default;\n});","define(\"additive-mc/mirage/factories/ad-preview\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    type() {\n      return _faker.default.random.arrayElement(['Beitragsimpressionen', 'Virale Impressionen', 'Verursachte Stories', 'Likes', 'Beitrags-Klicks', 'Link-Klicks', 'Shares', 'Kommentare', 'Postings', 'Reservierungen', 'Andere']);\n    },\n    channel() {\n      return _faker.default.random.arrayElement(['Beitragsimpressionen', 'Virale Impressionen', 'Verursachte Stories', 'Likes', 'Beitrags-Klicks', 'Link-Klicks', 'Shares', 'Kommentare', 'Postings', 'Reservierungen', 'Andere']);\n    },\n    impressions() {\n      return _faker.default.random.number();\n    },\n    clicks() {\n      return _faker.default.random.number();\n    },\n    pricePerEnquiry() {\n      return _faker.default.random.number();\n    },\n    expiryDate() {\n      return _faker.default.date.future(3);\n    }\n  });\n});","define(\"additive-mc/mirage/factories/advertisement\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    label: () => _faker.default.lorem.word(),\n    fbPixel: () => 'pixel',\n    budget: {\n      type: () => _faker.default.random.arrayElement(['daily', 'lifetime']),\n      amount: () => _faker.default.random.number(5000)\n    },\n    budgetSpend: {\n      value: () => _faker.default.random.number(5000),\n      percentage: () => Math.floor(Math.random() * 100) + 1\n    },\n    targetAudience: () => _faker.default.random.number(500000000),\n    endDate: () => _faker.default.date.between('2020-01-05', '2020-12-05'),\n    startDate: () => _faker.default.date.between('2020-01-01', '2020-01-05'),\n    state: () => _faker.default.random.arrayElement(['published', 'expired', 'unpublished', 'archived', 'paused']),\n    campaignPostfix: () => _faker.default.lorem.word(),\n    type: 'ad',\n    leadAd: (0, _emberCliMirage.trait)({\n      type: 'lead-ad',\n      language: () => _faker.default.random.arrayElement(['de', 'it', 'en']),\n      adCreative: {\n        cta: 'SUBSCRIBE',\n        title: 'My Awesome Title',\n        headline: 'My Awesome Headline',\n        text: 'M SuperNice Text 👨‍🚒',\n        form: {\n          headline: 'lorem',\n          text: 'ipsum'\n        },\n        multimediaVariants: [{\n          mediumId: '2af74266-43f0-4357-9955-5a11964d5cd7',\n          name: 'ausblick.jpeg',\n          provider: 'imbo',\n          remoteId: '9ab4116e450a286882fda4f7e7779202',\n          type: 'image',\n          url: 'https://staging.multimedia.additive-apps.tech/media/9ab4116e450a286882fda4f7e7779202'\n        }, {\n          mediumId: '2af74266-43f0-4357-9955-5a11964d5cd7',\n          name: 'ausblick.jpeg',\n          provider: 'imbo',\n          remoteId: '9ab4116e450a286882fda4f7e7779202',\n          type: 'image',\n          url: 'https://staging.multimedia.additive-apps.tech/media/9ab4116e450a286882fda4f7e7779202'\n        }, {\n          mediumId: '2af74266-43f0-4357-9955-5a11964d5cd7',\n          name: 'ausblick.jpeg',\n          provider: 'imbo',\n          remoteId: '9ab4116e450a286882fda4f7e7779202',\n          type: 'image',\n          url: 'https://staging.multimedia.additive-apps.tech/media/9ab4116e450a286882fda4f7e7779202'\n        }]\n      }\n    }),\n    tiktokLeadAd: (0, _emberCliMirage.trait)({\n      type: 'tiktok-lead-ad',\n      targetGroup: '1',\n      identity: '1',\n      hasBeenPublished() {\n        if (this.state === 'published' || this.state === 'paused') {\n          return true;\n        }\n        return false;\n      },\n      timeLimited: _faker.default.random.boolean(),\n      timeLimitation: {\n        days: () => [_faker.default.random.arrayElement(['monday', 'tuesday', 'wednesday'])],\n        startTime: () => '00:00:00',\n        endTime: () => '12:00:00'\n      },\n      budget: {\n        type: () => _faker.default.random.arrayElement(['daily', 'lifetime']),\n        amount: () => _faker.default.random.number(5000)\n      },\n      optimizationEvent: () => _faker.default.random.arrayElement([1, 2, 3, 4].map(i => `optimizationEvent-${i}`)),\n      depictions: () => [_faker.default.random.arrayElement(['1', '2', '3', '4', '5', '6'])],\n      targetLanguages: () => {\n        const randomNumber = _faker.default.random.number(10);\n        if (randomNumber > 5) {\n          return ['de', 'it', 'en'];\n        }\n        return ['de', 'it'];\n      },\n      language: 'de'\n    }),\n    tiktokLeadAd: (0, _emberCliMirage.trait)({\n      type: 'tiktok-lead-ad',\n      targetGroup: '1',\n      identity: '1',\n      hasBeenPublished() {\n        if (this.state === 'published' || this.state === 'paused') {\n          return true;\n        }\n        return false;\n      },\n      timeLimited: _faker.default.random.boolean(),\n      timeLimitation: {\n        days: () => [_faker.default.random.arrayElement(['monday', 'tuesday', 'wednesday'])],\n        startTime: () => '00:00:00',\n        endTime: () => '12:00:00'\n      },\n      budget: {\n        type: () => _faker.default.random.arrayElement(['daily', 'lifetime']),\n        amount: () => _faker.default.random.number(5000)\n      },\n      optimizationEvent: () => _faker.default.random.arrayElement([1, 2, 3, 4].map(i => `optimizationEvent-${i}`)),\n      depictions: () => [_faker.default.random.arrayElement(['1', '2', '3', '4', '5', '6'])],\n      targetLanguages: () => {\n        const randomNumber = _faker.default.random.number(10);\n        if (randomNumber > 5) {\n          return ['de', 'it', 'en'];\n        }\n        return ['de', 'it'];\n      },\n      language: 'de'\n    }),\n    tiktokLeadAd: (0, _emberCliMirage.trait)({\n      type: 'tiktok-lead-ad',\n      targetGroup: '1',\n      identity: '1',\n      hasBeenPublished() {\n        if (this.state === 'published' || this.state === 'paused') {\n          return true;\n        }\n        return false;\n      },\n      timeLimited: _faker.default.random.boolean(),\n      timeLimitation: {\n        days: () => [_faker.default.random.arrayElement(['monday', 'tuesday', 'wednesday'])],\n        startTime: () => '00:00:00',\n        endTime: () => '12:00:00'\n      },\n      budget: {\n        type: () => _faker.default.random.arrayElement(['daily', 'lifetime']),\n        amount: () => _faker.default.random.number(5000)\n      },\n      optimizationEvent: () => _faker.default.random.arrayElement([1, 2, 3, 4].map(i => `optimizationEvent-${i}`)),\n      depictions: () => [_faker.default.random.arrayElement(['1', '2', '3', '4', '5', '6'])],\n      targetLanguages: () => {\n        const randomNumber = _faker.default.random.number(10);\n        if (randomNumber > 5) {\n          return ['de', 'it', 'en'];\n        }\n        return ['de', 'it'];\n      },\n      language: 'de'\n    })\n  });\n});","define(\"additive-mc/mirage/factories/app\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    active: true,\n    name: _faker.default.commerce.productName(),\n    new: false,\n    planName: 'starter_yearly',\n    token: null\n  });\n});","define(\"additive-mc/mirage/factories/depiction\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    headline() {\n      return _faker.default.lorem.sentence();\n    },\n    description() {\n      return _faker.default.lorem.sentence();\n    },\n    text() {\n      return _faker.default.lorem.sentence();\n    },\n    productTypes() {\n      const productTypes = [{\n        value: 'offers'\n      }, {\n        value: 'rooms',\n        subTypes: ['room1', 'room2', 'room3', 'room4', 'room5']\n      }, {\n        value: 'deals',\n        subTypes: ['deal1', 'deal2', 'deal3', 'deal4', 'deal5']\n      }].map(value => ({\n        value,\n        sort: Math.random()\n      })).sort((a, b) => a.sort - b.sort).map(_ref => {\n        let {\n          value\n        } = _ref;\n        return value;\n      });\n      const popCount = Math.floor(Math.random() * (productTypes.length + 1));\n      for (let i = 0; i < popCount; i++) {\n        productTypes.pop();\n      }\n      productTypes.forEach(product => {\n        var _product$subTypes, _product$subTypes2;\n        if (product.subTypes) {\n          return;\n        }\n        const popSubtypesCount = Math.floor(Math.random() * ((_product$subTypes = product.subTypes) === null || _product$subTypes === void 0 ? void 0 : _product$subTypes.length)) + 1;\n        for (let i = 1; i < popSubtypesCount; i++) {\n          product.subTypes.pop();\n        }\n        if (((_product$subTypes2 = product.subTypes) === null || _product$subTypes2 === void 0 ? void 0 : _product$subTypes2.length) === 0) {\n          delete product.subTypes;\n        }\n      });\n      return productTypes;\n    },\n    availableLanguages() {\n      const randomNumber = _faker.default.random.number(10);\n      if (randomNumber > 5) {\n        return ['de', 'it', 'en'];\n      }\n      return ['de'];\n    },\n    ctaType() {\n      return _faker.default.random.arrayElement(['cta1', 'cta2', 'cta3']);\n    },\n    formats() {\n      const formats = ['single', 'carousel'].map(value => ({\n        value,\n        sort: Math.random()\n      })).sort((a, b) => a.sort - b.sort).map(_ref2 => {\n        let {\n          value\n        } = _ref2;\n        return value;\n      });\n      const number = Math.floor(Math.random() * (formats.length + 1));\n      for (let i = 0; i < number; i++) {\n        formats.pop();\n      }\n      return formats;\n    },\n    language: 'de',\n    facebookContentAd: (0, _emberCliMirage.trait)({\n      name(i) {\n        return `Depiction ${i}`;\n      },\n      ctaType: 'cta2',\n      postfix: 'rerum',\n      url: () => _faker.default.internet.url(),\n      headline: () => _faker.default.lorem.sentence(),\n      images: [{\n        position: 1,\n        mediumId: '2af74266-43f0-4357-9955-5a11964d5cd7',\n        url: 'https://staging.multimedia.additive-apps.tech/media/9ab4116e450a286882fda4f7e7779202',\n        name: 'ausblick.jpeg',\n        labels: ['portrait', 'landscape', 'square'],\n        type: 'image',\n        provider: 'imbo',\n        remoteId: '9ab4116e450a286882fda4f7e7779202'\n      }],\n      variants: [{\n        title: () => _faker.default.lorem.sentence(),\n        text: () => _faker.default.lorem.sentence()\n      }]\n    }),\n    tiktokLeadAd: (0, _emberCliMirage.trait)({\n      name(i) {\n        return `TikTok Depiction ${i}`;\n      },\n      postfix: _faker.default.lorem.word(),\n      page: {\n        id: '2',\n        name: 'Formular B'\n      },\n      videos: [{\n        position: 1,\n        mediumId: 'ede3d4d1-2bb0-40ef-abb8-1db93b919c44',\n        url: 'https://staging.multimedia.additive-apps.tech/media/97215e7b-1954-4b06-9537-6544391f8ea5',\n        name: 'Ehrenburgerhof_Snippet_Ausflüge_Final.mp4',\n        type: 'video',\n        provider: 's3_video',\n        remoteId: '97215e7b-1954-4b06-9537-6544391f8ea5',\n        thumbnailUrl: 'https://staging.multimedia.additive-apps.tech/media/97215e7b-1954-4b06-9537-6544391f8ea5?video_thumbnail=1'\n      }, {\n        position: 2,\n        mediumId: 'f227b8ed-2581-40ad-89e1-22c685ef7b43',\n        url: 'https://staging.multimedia.additive-apps.tech/media/7a29a60a-6f0c-44b0-a65c-28bd4800c4e2',\n        name: 'hippo.mp4',\n        type: 'video',\n        provider: 's3_video',\n        remoteId: '7a29a60a-6f0c-44b0-a65c-28bd4800c4e2',\n        thumbnailUrl: 'https://staging.multimedia.additive-apps.tech/media/7a29a60a-6f0c-44b0-a65c-28bd4800c4e2?video_thumbnail=1'\n      }],\n      variants: [{\n        text: 'Ich bin der Anzeigetext.'\n      }]\n    })\n  });\n});","define(\"additive-mc/mirage/factories/email-campaign-landingpage\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    availableLanguages() {\n      return ['de', 'it'];\n    },\n    columnLeft: () => _faker.default.lorem.sentence(),\n    columnRight: () => _faker.default.lorem.sentence(),\n    metaTitle: () => _faker.default.lorem.sentence(),\n    ctaText: () => _faker.default.lorem.sentence(),\n    bookingConditions: () => _faker.default.lorem.sentence(),\n    enquiryConditions: () => _faker.default.lorem.sentence(),\n    afterCreate(landingPage, server) {\n      landingPage.update({\n        language: _faker.default.random.arrayElement(landingPage.availableLanguages)\n      });\n    }\n  });\n});","define(\"additive-mc/mirage/factories/email-campaign-voucher\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    availableLanguages() {\n      return ['de', 'it'];\n    },\n    active: () => true,\n    buttonText: () => _faker.default.lorem.sentence(),\n    value: () => _faker.default.finance.amount(1000, 9999, 0),\n    greetingText() {\n      const hasValue = _faker.default.random.boolean();\n      return {\n        value: hasValue ? _faker.default.lorem.sentence() : null,\n        sync: !hasValue,\n        syncedValue: _faker.default.lorem.sentence()\n      };\n    },\n    greeting() {\n      const hasValue = _faker.default.random.boolean();\n      return hasValue ? _faker.default.lorem.sentence() : null;\n    },\n    policies: () => `<p>${_faker.default.lorem.lines(1)}</p>`,\n    afterCreate(voucher, server) {\n      const image = server.create('image');\n      voucher.update({\n        image: image.toJSON(),\n        language: _faker.default.random.arrayElement(voucher.availableLanguages)\n      });\n    }\n  });\n});","define(\"additive-mc/mirage/factories/email-campaign\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const allowedValues = [{\n    label: 'option1',\n    value: 'option1-value'\n  }, {\n    label: 'option2',\n    value: 'option2-value'\n  }, {\n    label: 'option3',\n    value: 'option3-value'\n  }];\n  const codeTypeMapping = {\n    usecase1: 'convert-ota-to-direct-booker-campaign',\n    usecase2a: 'reactivate-enquirer-without-booking-campaign',\n    usecase2b: 'reactivate-lost-guest-campaign',\n    usecase3a: 'come-back-campaign',\n    usecase3b: 'come-back-multiple-campaign',\n    usecase4: 'upselling-for-second-stay-campaign',\n    usecase5: 'early-booker-benefits-campaign',\n    usecase6: 'follow-up-on-voucher-campaign',\n    usecase7a: 'birthday-voucher-from-friends-campaign',\n    usecase7b: 'birthday-wishes-campaign',\n    usecase7c: 'birthday-gift-campaign',\n    usecase9a: 'last-minute-deal-campaign',\n    usecase9b: 'deals-campaign',\n    usecase11: 'pre-stay-campaign',\n    usecase12: 'post-stay-campaign'\n  };\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    title: () => _faker.default.name.findName(),\n    name() {\n      return this.title;\n    },\n    active: () => _faker.default.random.boolean(),\n    isStartsAtEnabled() {\n      if (this.active) {\n        return true;\n      }\n      return false;\n    },\n    startsAt() {\n      return _faker.default.date.past();\n      emailCampaigns;\n    },\n    configuration() {\n      return [{\n        label: 'Booking Channels',\n        description: 'Booking Channels description',\n        type: 'array',\n        key: 'bookingChannels',\n        order: 2,\n        value: _faker.default.random.arrayElement([null, ['Helles', 'Märzen'], ['Kellerbier'], ['Weizenbier', 'Bockbier']])\n      }, {\n        type: 'boolean',\n        key: 'include-guests-with-future-booking',\n        label: 'Include guests with future reservations',\n        description: 'Description..',\n        order: 0,\n        value: true,\n        allowedValues: null\n      }, {\n        type: 'number',\n        key: 'min-stays',\n        label: 'Minimum stays',\n        description: 'Description..',\n        order: 0,\n        value: 2,\n        allowedValues: null\n      }];\n    },\n    availableLanguages: ['de', 'en', 'it'],\n    publishedLanguages: ['de', 'en'],\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'Campaign Summary Text (from API) ...',\n      details: 'Campaign Details'\n    },\n    isNewStructure: false,\n    afterCreate(campaign, server) {\n      if (!campaign.code) {\n        let unusedCodes = Object.keys(codeTypeMapping);\n        server.schema.emailCampaigns.all().models.forEach(campaign => {\n          unusedCodes = unusedCodes.filter(code => code !== campaign.code);\n        });\n        campaign.update({\n          code: _faker.default.random.arrayElement(unusedCodes)\n        });\n      }\n      let voucher = null;\n      const hasVoucher = _faker.default.random.boolean();\n      campaign.update({\n        type: codeTypeMapping[campaign.code]\n      });\n      if (campaign.type === 'pre-stay-campaign') {\n        campaign.update({\n          isNewStructure: true\n        });\n      }\n      if (hasVoucher) {\n        voucher = server.create('email-campaign-voucher');\n        campaign.isNewStructure ? campaign.update({\n          contribution: voucher.toJSON()\n        }) : campaign.update({\n          voucher: voucher.toJSON()\n        });\n      }\n      const emailSeries = server.createList('email-series', 3, {\n        campaign\n      });\n      if (campaign.isNewStructure) {\n        const landingPage = server.create('email-campaign-landingpage');\n        campaign.update({\n          landingPage: landingPage.toJSON(),\n          emailSeries\n        });\n        return;\n      }\n      const emails = server.createList('email', 3, Object.assign({\n        campaign\n      }, hasVoucher && voucher.active ? {\n        ctaType: 'voucher',\n        ctaText: null\n      } : {}));\n      campaign.update({\n        emails,\n        emailSeries\n      });\n    }\n  });\n});","define(\"additive-mc/mirage/factories/email-past-marketing-action\", [\"exports\", \"additive-mc/mirage/factories/past-marketing-action\"], function (_exports, _pastMarketingAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _pastMarketingAction.default;\n});","define(\"additive-mc/mirage/factories/email-preview\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    name() {\n      return _faker.default.random.arrayElement(['Beitragsimpressionen', 'Virale Impressionen', 'Verursachte Stories', 'Likes', 'Beitrags-Klicks', 'Link-Klicks', 'Shares', 'Kommentare', 'Postings', 'Reservierungen', 'Andere']);\n    },\n    count() {\n      return _faker.default.random.number();\n    },\n    publishedDate() {\n      return _faker.default.date.past(3);\n    }\n  });\n});","define(\"additive-mc/mirage/factories/email-series\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    label() {\n      return _faker.default.lorem.words();\n    },\n    mails_count() {\n      return 0;\n    },\n    emails() {\n      return [];\n    },\n    offsetInDays() {\n      return _faker.default.random.number(14);\n    },\n    state() {\n      return _faker.default.random.arrayElement(['active', 'inactive']);\n    },\n    afterCreate(emailSeries, server) {\n      var _emailSeries$campaign;\n      if ((_emailSeries$campaign = emailSeries.campaign) !== null && _emailSeries$campaign !== void 0 && _emailSeries$campaign.isNewStructure) {\n        const emails = server.createList('email', 3, {\n          emailSeries\n        });\n      }\n    }\n  });\n});","define(\"additive-mc/mirage/factories/email\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    availableLanguages() {\n      return ['de', 'it'];\n    },\n    active() {\n      return _faker.default.random.boolean();\n    },\n    subject() {\n      return _faker.default.lorem.words();\n    },\n    body() {\n      return _faker.default.lorem.text() + '<br><br>{{CTA}}<br><br>' + _faker.default.lorem.text();\n    },\n    ctaText() {\n      return 'Gutschein jetzt freischalten';\n    },\n    ctaLink() {\n      return _faker.default.internet.url();\n    },\n    ctaType() {\n      return _faker.default.random.arrayElement([null, 'landingpage', 'cta']);\n    },\n    afterCreate(email, server) {\n      const image = server.create('image');\n      email.update({\n        image: image.toJSON(),\n        language: _faker.default.random.arrayElement(email.availableLanguages)\n      });\n    }\n  });\n});","define(\"additive-mc/mirage/factories/extension\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    name(i) {\n      return `Extension ${i}`;\n    },\n    type: () => _faker.default.random.arrayElement(['Google::SearchAds::Extension::SiteLink', 'Google::SearchAds::Extension::AdditionalInformation']),\n    language: () => _faker.default.random.arrayElement(['de', 'en', 'it']),\n    link: _faker.default.internet.url()\n  });\n});","define(\"additive-mc/mirage/factories/image\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    width() {\n      return _faker.default.random.number();\n    },\n    height() {\n      return _faker.default.random.number();\n    },\n    id() {\n      return _faker.default.random.uuid();\n    },\n    url() {\n      return 'https://source.unsplash.com/random';\n    },\n    name() {\n      return _faker.default.system.fileName();\n    },\n    type() {\n      return 'image';\n    }\n  });\n});","define(\"additive-mc/mirage/factories/legal\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    disclaimerUrl() {\n      return {\n        sync: _faker.default.random.boolean(),\n        syncedValue: _faker.default.internet.url(),\n        value: _faker.default.internet.url()\n      };\n    },\n    privacyUrl() {\n      return {\n        sync: _faker.default.random.boolean(),\n        syncedValue: _faker.default.internet.url(),\n        value: _faker.default.internet.url()\n      };\n    },\n    bookingConditions: () => _faker.default.lorem.text(),\n    requestConditions: () => _faker.default.lorem.text()\n  });\n});","define(\"additive-mc/mirage/factories/on-page-campaign\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const allowedValues = [{\n    label: 'option1',\n    value: 'option1-value'\n  }, {\n    label: 'option2',\n    value: 'option2-value'\n  }, {\n    label: 'option3',\n    value: 'option3-value'\n  }];\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    title() {\n      return 'On page Campaign';\n    },\n    group() {\n      return 'onPage';\n    },\n    type() {\n      return 'OnPageLeadCampaign';\n    },\n    description(i) {\n      return `${this.title} ${i}`;\n    },\n    code: () => _faker.default.random.arrayElement(['usecase1', 'usecase2a', 'usecase2b', 'usecase3a', 'usecase3b', 'usecase4']),\n    active() {\n      return _faker.default.random.boolean();\n    },\n    widgetConfigurations() {\n      return [{\n        id: 704,\n        type: 'select',\n        key: 'selected-widget',\n        label: 'Widget',\n        description: '',\n        order: 0,\n        value: {\n          value: 123,\n          label: 'website'\n        },\n        allowedValues: [{\n          value: 123,\n          label: 'website'\n        }, {\n          label: 124,\n          value: 'landingpage'\n        }]\n      }, {\n        id: 70,\n        type: 'widget-display-variant',\n        key: 'display-variant',\n        label: 'Anzeigeart',\n        description: '',\n        order: 0,\n        value: {\n          position: 'center',\n          size: 'md'\n        }\n      }];\n    },\n    configurations() {\n      return [{\n        id: 70,\n        type: 'widget-trigger-event',\n        key: 'trigger-event',\n        label: 'Trigger Event',\n        description: 'Bla Bla Bla 123',\n        order: 0,\n        value: {\n          trigger: 'on-scroll',\n          value: 20\n        }\n      }, {\n        id: 70,\n        type: 'widget-trigger-event',\n        key: 'trigger-event',\n        label: 'Trigger Event',\n        description: '',\n        order: 0,\n        value: {\n          trigger: 'on-exit'\n        }\n      }, {\n        id: 70,\n        type: 'utm-parameter',\n        key: 'request-parameters',\n        label: 'Show if following Parameters are provided',\n        description: '',\n        order: 0,\n        value: [{\n          type: 'source',\n          value: 'abc'\n        }]\n      }];\n    },\n    afterCreate(campaign, server) {\n      const contents = server.createList('on-page-content', 3, Object.assign({\n        campaign\n      }));\n      campaign.update({\n        contents\n      });\n    }\n  });\n});","define(\"additive-mc/mirage/factories/on-page-content\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    availableLanguages() {\n      const randomNumber = _faker.default.random.number(10);\n      if (randomNumber > 5) {\n        return ['de', 'it', 'en'];\n      }\n      return ['de'];\n    },\n    active() {\n      return _faker.default.random.boolean();\n    },\n    headline() {\n      return _faker.default.lorem.words();\n    },\n    text() {\n      return _faker.default.lorem.text();\n    },\n    ctaText() {\n      return 'Gutschein jetzt freischalten';\n    },\n    form() {\n      return {\n        \"includeSalutation\": true\n      };\n    },\n    afterCreate(onPageContent, server) {\n      const image = server.create('image');\n      onPageContent.update({\n        image: image.toJSON(),\n        language: _faker.default.random.arrayElement(onPageContent.availableLanguages)\n      });\n    }\n  });\n});","define(\"additive-mc/mirage/factories/organization\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Defaultly a sub-organization of additive\n   */\n  /* TODO: Add me to an addon */\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    name: () => _faker.default.company.companyName(),\n    legalName: () => _faker.default.company.companyName(),\n    website: () => _faker.default.internet.domainName(),\n    email: () => _faker.default.internet.email(),\n    phone: () => _faker.default.phone.phoneNumber(),\n    vatId: 'IT02476330218',\n    addressStreet: () => _faker.default.address.streetAddress(),\n    addressLocality: () => _faker.default.address.city(),\n    addressPostalCode: () => _faker.default.address.zipCode(),\n    addressCountry: () => _faker.default.address.country(),\n    addressRegion: () => _faker.default.address.county(),\n    slug: () => _faker.default.lorem.slug(),\n    partnerSlug: 'additive-eu',\n    partnerName: 'ADDITIVE +',\n    isPartner: false\n  });\n});","define(\"additive-mc/mirage/factories/past-marketing-action\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    title() {\n      return _faker.default.random.arrayElement(['Beitragsimpressionen', 'Virale Impressionen', 'Verursachte Stories', 'Likes', 'Beitrags-Klicks', 'Link-Klicks', 'Shares', 'Kommentare', 'Postings', 'Reservierungen', 'Andere']);\n    },\n    type() {\n      return _faker.default.random.arrayElement(['Zimmer', 'Angebot', 'Restplatz']);\n    },\n    publishedDate() {\n      return _faker.default.date.past(3);\n    },\n    impressions() {\n      return _faker.default.random.number();\n    },\n    clicks() {\n      return _faker.default.random.number();\n    },\n    conversions() {\n      return _faker.default.random.number();\n    },\n    reservations() {\n      return _faker.default.random.number();\n    }\n  });\n});","define(\"additive-mc/mirage/factories/reports-ad\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    campaign(i) {\n      return `Ad ${i}`;\n    },\n    ads() {\n      return _faker.default.random.number();\n    },\n    impressions() {\n      return _faker.default.random.number();\n    },\n    clicks() {\n      return _faker.default.random.number();\n    },\n    reservations() {\n      return _faker.default.random.number();\n    },\n    conversions() {\n      return _faker.default.random.number();\n    }\n  });\n});","define(\"additive-mc/mirage/factories/reports-email\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    campaign(i) {\n      return `E-Mail ${i}`;\n    },\n    emails() {\n      return _faker.default.random.number();\n    },\n    impressions() {\n      return _faker.default.random.number();\n    },\n    uniqueOpenings() {\n      return _faker.default.random.number();\n    },\n    clicks() {\n      return _faker.default.random.number();\n    },\n    uniqueClicks() {\n      return _faker.default.random.number();\n    },\n    reservations() {\n      return _faker.default.random.number();\n    },\n    conversions() {\n      return _faker.default.random.number();\n    }\n  });\n});","define(\"additive-mc/mirage/factories/reports-social-posting\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    campaign() {\n      return _faker.default.random.arrayElement(['Beitragsimpressionen', 'Virale Impressionen', 'Verursachte Stories', 'Likes', 'Beitrags-Klicks', 'Link-Klicks', 'Shares', 'Kommentare', 'Postings', 'Reservierungen', 'Andere']);\n    },\n    postings() {\n      return _faker.default.random.number();\n    },\n    impressions() {\n      return _faker.default.random.number();\n    },\n    clicks() {\n      return _faker.default.random.number();\n    },\n    reservations() {\n      return _faker.default.random.number();\n    },\n    conversions() {\n      return _faker.default.random.number();\n    }\n  });\n});","define(\"additive-mc/mirage/factories/search-ad-campaign\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    title(i) {\n      return `Search Ad Campaign ${i}`;\n    },\n    type: () => 'Google::SearchAdsCampaign',\n    description(i) {\n      return `${this.title} ${i}`;\n    },\n    code: () => _faker.default.random.arrayElement(['usecase1', 'usecase2a', 'usecase2b', 'usecase3a', 'usecase3b', 'usecase4']),\n    startDate: () => '2023-02-05',\n    endDate: () => '2023-06-05',\n    searchPartner: _faker.default.random.boolean(),\n    displayNetwork: _faker.default.random.boolean(),\n    dailyBudget: () => _faker.default.random.number(5000),\n    postfix: () => _faker.default.lorem.word(),\n    hasBeenPublished: true,\n    adSets: [{\n      name: 'Anzeigengruppe 1',\n      adTemplates: [{\n        id: '2',\n        label: 'Anzeige1'\n      }, {\n        id: '3',\n        label: 'Anzeige2'\n      }],\n      keywords: [{\n        id: 1,\n        name: 'keyword 1',\n        count: 15\n      }, {\n        id: 2,\n        name: 'keyword 2',\n        count: 6\n      }, {\n        id: 3,\n        name: 'keyword 3',\n        count: 15\n      }, {\n        id: 4,\n        name: 'keyword 4',\n        count: 6\n      }, {\n        id: 5,\n        name: 'keyword 5',\n        count: 15\n      }]\n    }, {\n      name: 'Anzeigengruppe 2',\n      adTemplates: [{\n        id: '5',\n        label: 'Anzeige4'\n      }, {\n        id: '3',\n        label: 'Anzeige2'\n      }],\n      keywords: [{\n        id: 1,\n        name: 'keyword 1',\n        count: 15\n      }]\n    }, {\n      name: 'Anzeigengruppe 3',\n      adTemplates: [{\n        id: '3',\n        label: 'Anzeige2'\n      }, {\n        id: '2',\n        label: 'Anzeige1'\n      }],\n      keywords: [{\n        id: 1,\n        name: 'keyword 1',\n        count: 15\n      }, {\n        id: 4,\n        name: 'keyword 4',\n        count: 6\n      }, {\n        id: 5,\n        name: 'keyword 5',\n        count: 15\n      }]\n    }],\n    state: () => _faker.default.random.arrayElement(['published', 'expired', 'unpublished', 'archived', 'paused'])\n  });\n});","define(\"additive-mc/mirage/factories/search-ad-template\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    type: 'GoogleSearchAd',\n    name: i => `Anzeige Vorlage ${i}`,\n    headlines() {\n      return [{\n        id: 1,\n        text: _faker.default.lorem.sentence(3),\n        position: 1\n      }, {\n        id: 2,\n        text: _faker.default.lorem.sentence(3),\n        position: 2\n      }, {\n        id: 3,\n        text: _faker.default.lorem.sentence(3),\n        position: 3\n      }];\n    },\n    descriptions() {\n      return [{\n        id: 1,\n        text: _faker.default.lorem.sentence(10),\n        position: 1\n      }, {\n        id: 2,\n        text: _faker.default.lorem.sentence(10),\n        position: 2\n      }, {\n        id: 3,\n        text: _faker.default.lorem.sentence(10),\n        position: null\n      }];\n    },\n    language: () => _faker.default.random.arrayElement(['de', 'en', 'it'])\n  });\n});","define(\"additive-mc/mirage/factories/search-ad\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    type: 'GoogleSearchAd',\n    name: i => `Anzeige ${i}`,\n    headlines() {\n      return [{\n        id: 1,\n        text: _faker.default.lorem.sentence(3),\n        position: 1\n      }, {\n        id: 2,\n        text: _faker.default.lorem.sentence(3),\n        position: 2\n      }, {\n        id: 3,\n        text: _faker.default.lorem.sentence(3),\n        position: 3\n      }];\n    },\n    descriptions() {\n      return [{\n        id: 1,\n        text: _faker.default.lorem.sentence(10),\n        position: 1\n      }, {\n        id: 2,\n        text: _faker.default.lorem.sentence(10),\n        position: 2\n      }, {\n        id: 3,\n        text: _faker.default.lorem.sentence(10),\n        position: null\n      }];\n    },\n    language: () => _faker.default.random.arrayElement(['de', 'en', 'it']),\n    state: _faker.default.random.arrayElement(['enabled', 'paused']),\n    url: _faker.default.internet.url()\n  });\n});","define(\"additive-mc/mirage/factories/setting\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    promoteFreeRooms: _faker.default.random.boolean(),\n    useCustomEmailTemplate: _faker.default.random.boolean(),\n    sendAt: _faker.default.random.arrayElement(['04:00', '12:30', '12:00']),\n    excludedIpAddresses: '8.8.8.8,8.8.4.4',\n    statisticsRecipients: [_faker.default.internet.email(), _faker.default.internet.email()].join(','),\n    landingPage() {\n      return {\n        allowedValues: [{\n          label: 'Landingpage 1',\n          value: '1'\n        }, {\n          label: 'Landingpage 2',\n          value: '2'\n        }],\n        value: '1'\n      };\n    },\n    landingPageUrl: _faker.default.internet.url(),\n    demoMode: _faker.default.random.boolean(),\n    voucherValidityPeriod() {\n      return {\n        value: 'end_of_next_year',\n        allowedValues: [{\n          label: 'Ende nächstes Jahr',\n          value: 'end_of_next_year'\n        }, {\n          label: '1 Jahr',\n          value: 'one_year'\n        }, {\n          label: '6 Monate',\n          value: 'six_months'\n        }, {\n          label: '3 Monate',\n          value: 'three_months'\n        }, {\n          label: '1 Monat',\n          value: 'one_month'\n        }]\n      };\n    },\n    email() {\n      return {\n        sync: _faker.default.random.boolean(),\n        syncedValue: _faker.default.internet.email(),\n        value: _faker.default.internet.email()\n      };\n    },\n    languages() {\n      return {\n        de: _faker.default.random.boolean(),\n        it: _faker.default.random.boolean(),\n        en: _faker.default.random.boolean(),\n        nl: _faker.default.random.boolean(),\n        fr: _faker.default.random.boolean()\n      };\n    },\n    standardEmailHeader() {\n      return {\n        url: 'https://multimedia.additive-apps.tech/media/439f7eb2521f8cad8ce87f90afd9cbbe',\n        name: 'Bild Gutschein - Feuerstein 2500px.jpg',\n        type: 'image',\n        mediumId: 'c26551c9-cdb1-45c7-9103-a5b1d15a89a8',\n        provider: 'imbo',\n        remoteId: '439f7eb2521f8cad8ce87f90afd9cbbe'\n      };\n    },\n    trackingCode() {\n      return `<script>\n        (function (i, s, o, g, r, a, m) {\n            i['AdditiveTRObject'] = r;\n            i[r] = i[r] || function () {\n                (i[r].q = i[r].q || []).push(arguments)\n            }, i[r].l = 1 * new Date();\n            a = s.createElement(o),\n                m = s.getElementsByTagName(o)[0];\n            a.async = 1;\n            a.src = g;\n            m.parentNode.insertBefore(a, m)\n        })(window, document, 'script', 'https://tr.additive-apps.cloud/main.js', 'ddtv');\n        ddtv('init', 'xxxxx', 'xxxxxx');\n        ddtv('send', 'pageview');\n      </script>`;\n    },\n    socialNetworks() {\n      const allowedValues = [{\n        label: 'option1',\n        value: 'option1-value'\n      }, {\n        label: 'option2',\n        value: 'option2-value'\n      }, {\n        label: 'option3',\n        value: 'option3-value'\n      }];\n      return {\n        adAccount: {\n          value: _faker.default.random.arrayElement(allowedValues)\n        },\n        businessManager: {\n          value: _faker.default.random.arrayElement(allowedValues)\n        },\n        facebookPage: {\n          value: _faker.default.random.arrayElement(allowedValues)\n        },\n        facebookPixel: {\n          value: _faker.default.random.boolean() ? _faker.default.random.arrayElement(allowedValues) : null\n        },\n        instagram: {\n          value: _faker.default.random.boolean() ? _faker.default.random.arrayElement(allowedValues) : null\n        },\n        tiktok: {\n          value: _faker.default.random.arrayElement(allowedValues)\n        }\n      };\n    },\n    facebookOAuth() {\n      const isConnectedUser = _faker.default.random.boolean();\n      return {\n        scope: ['ads_read', 'business_management', 'catalog_management', 'ads_management'],\n        appId: '2802084849896799',\n        hasUserToken: isConnectedUser,\n        userId: isConnectedUser ? '1122112211221122' : null,\n        userName: isConnectedUser ? 'Facebook User' : null\n      };\n    },\n    tiktokOAuth() {\n      return {\n        appId: '6953978208546979842',\n        hasUserToken: _faker.default.random.boolean()\n      };\n    },\n    afterCreate(setting, server) {\n      let nameValues = {};\n      let voucherGreetingText = {};\n      Object.keys(setting.languages).forEach(langcode => {\n        nameValues[langcode] = _faker.default.company.companyName();\n        voucherGreetingText[langcode] = _faker.default.lorem.sentence();\n      });\n      setting.update({\n        name: {\n          sync: _faker.default.random.boolean(),\n          syncedValue: _faker.default.company.companyName(),\n          value: nameValues\n        },\n        voucherGreetingText\n      });\n    }\n  });\n});","define(\"additive-mc/mirage/factories/social-past-marketing-action\", [\"exports\", \"additive-mc/mirage/factories/past-marketing-action\"], function (_exports, _pastMarketingAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _pastMarketingAction.default;\n});","define(\"additive-mc/mirage/factories/social-preview\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    name() {\n      return _faker.default.random.arrayElement(['Beitragsimpressionen', 'Virale Impressionen', 'Verursachte Stories', 'Likes', 'Beitrags-Klicks', 'Link-Klicks', 'Shares', 'Kommentare', 'Postings', 'Reservierungen', 'Andere']);\n    },\n    type() {\n      return _faker.default.random.arrayElement(['Zimmer', 'Angebot', 'Restplatz']);\n    },\n    publishedDate() {\n      return _faker.default.date.past(3);\n    },\n    publishedTime() {\n      return _faker.default.date.past(3);\n    }\n  });\n});","define(\"additive-mc/mirage/factories/subscriber\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const date = new Date();\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    id() {\n      return _faker.default.random.uuid();\n    },\n    name() {\n      return _faker.default.name.findName();\n    },\n    email() {\n      return _faker.default.internet.email();\n    },\n    deliveryDate() {\n      return _faker.default.date.between(new Date(new Date().setDate(new Date().getDate() - 2)), new Date(new Date().setDate(new Date().getDate() + 3)));\n    },\n    state() {\n      return _faker.default.random.arrayElement(['blocked', 'canceled', 'incomplete', 'ready', 'sent']);\n    }\n  });\n});","define(\"additive-mc/mirage/factories/target-group\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    name(i) {\n      return `Target Group ${i}`;\n    },\n    languages: [{\n      label: 'Deutsch',\n      value: 'de'\n    }, {\n      label: 'Italienisch',\n      value: 'it'\n    }],\n    locations: [{\n      label: 'Qatar',\n      subData: [],\n      value: '289688'\n    }]\n  });\n});","define(\"additive-mc/mirage/factories/trigger-email-campaign\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const allowedValues = [{\n    label: 'option1',\n    value: 'option1-value'\n  }, {\n    label: 'option2',\n    value: 'option2-value'\n  }, {\n    label: 'option3',\n    value: 'option3-value'\n  }];\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    title: () => _faker.default.name.findName(),\n    name() {\n      return this.title;\n    },\n    active: () => _faker.default.random.boolean(),\n    code: () => _faker.default.random.arrayElement(['trigger-email', 'lead-email']),\n    type: () => _faker.default.random.arrayElement(['trigger-campaign', 'lead-campaign']),\n    isStartsAtEnabled() {\n      if (this.active) {\n        return true;\n      }\n      return false;\n    },\n    startsAt() {\n      return _faker.default.date.past();\n    },\n    isEndsAtEnabled() {\n      if (this.active) {\n        return true;\n      }\n      return false;\n    },\n    endsAt() {\n      return _faker.default.date.future();\n    },\n    configurations() {\n      return [{\n        key: 'campaign_postfix',\n        value: 'postfix'\n      }, {\n        key: 'disable_after_booking',\n        value: true\n      }];\n    },\n    availableLanguages: ['de', 'en', 'it'],\n    publishedLanguages: ['de', 'en'],\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'Campaign Summary Text (from API) ...',\n      details: [{\n        title: 'Campaign Objective',\n        description: 'Campaign objective description...',\n        icon: 'info'\n      }, {\n        title: 'Primary Goal',\n        description: 'Goal description...',\n        icon: 'compass'\n      }, {\n        title: 'Technical Requirements',\n        description: 'Technical requirements description...',\n        icon: 'settings'\n      }]\n    },\n    isNewStructure: false,\n    afterCreate(campaign, server) {\n      let voucher = null;\n      if (campaign.type === 'trigger-campaign') {\n        campaign.update({\n          isNewStructure: true\n        });\n      }\n      voucher = server.create('email-campaign-voucher');\n      campaign.isNewStructure ? campaign.update({\n        contribution: voucher.toJSON()\n      }) : campaign.update({\n        voucher: voucher.toJSON()\n      });\n      if (campaign.isNewStructure) {\n        const trigger = server.create('trigger');\n        campaign.update({\n          trigger: trigger.toJSON()\n        });\n      }\n      const emails = server.createList('trigger-email', 3, Object.assign({\n        campaign\n      }, voucher.active ? {\n        ctaType: 'voucher',\n        ctaText: null\n      } : {}));\n      const emailSeries = server.createList('trigger-email-series', 3, {\n        campaign\n      });\n      campaign.update({\n        emails,\n        emailSeries\n      });\n    }\n  });\n});","define(\"additive-mc/mirage/factories/trigger-email-series\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    label() {\n      return _faker.default.lorem.words();\n    },\n    mails_count() {\n      return 0;\n    },\n    emails() {\n      return [];\n    },\n    offsetInDays() {\n      return _faker.default.random.number(14);\n    },\n    state() {\n      return _faker.default.random.arrayElement(['active', 'inactive']);\n    },\n    afterCreate(emailSeries, server) {\n      var _emailSeries$campaign;\n      if ((_emailSeries$campaign = emailSeries.campaign) !== null && _emailSeries$campaign !== void 0 && _emailSeries$campaign.isNewStructure) {\n        const emails = server.createList('trigger-email', 3, {\n          emailSeries\n        });\n      }\n    }\n  });\n});","define(\"additive-mc/mirage/factories/trigger-email\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    availableLanguages() {\n      return ['de', 'it'];\n    },\n    active() {\n      return _faker.default.random.boolean();\n    },\n    subject() {\n      return _faker.default.lorem.words();\n    },\n    body() {\n      return _faker.default.lorem.text() + '<br><br>{{CTA}}<br><br>' + _faker.default.lorem.text();\n    },\n    ctaText() {\n      return 'Gutschein jetzt freischalten';\n    },\n    ctaLink() {\n      return _faker.default.internet.url();\n    },\n    ctaType() {\n      return _faker.default.random.arrayElement([null, 'landingpage', 'cta']);\n    },\n    afterCreate(email, server) {\n      const image = server.create('image');\n      email.update({\n        image: image.toJSON(),\n        language: _faker.default.random.arrayElement(email.availableLanguages)\n      });\n    }\n  });\n});","define(\"additive-mc/mirage/factories/trigger\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    campaigns() {\n      return ['123', '456'];\n    },\n    deliveryTime() {\n      return {\n        type: 'delayed',\n        offsetInDays: 2,\n        dayTime: '05:00'\n      };\n    },\n    startsAt() {\n      return _faker.default.date.past();\n    },\n    endsAt() {\n      return _faker.default.date.future();\n    }\n  });\n});","define(\"additive-mc/mirage/factories/user\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /* TODO: Add me to an addon */\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    email: _faker.default.internet.email(),\n    givenName: () => `${_faker.default.name.firstName()} ${_faker.default.name.lastName()}`,\n    isAdditive: true,\n    isPartner: true,\n    isSuperAdmin: false,\n    isSupport: false,\n    role: 'member'\n  });\n});","define(\"additive-mc/mirage/factories/value-added\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    name() {\n      return _faker.default.random.arrayElement(['Beitragsimpressionen', 'Virale Impressionen', 'Verursachte Stories', 'Likes', 'Beitrags-Klicks', 'Link-Klicks', 'Shares', 'Kommentare', 'Postings', 'Reservierungen', 'Andere']);\n    },\n    count() {\n      return _faker.default.random.number();\n    },\n    valuePerAction() {\n      return _faker.default.random.number();\n    },\n    turnover() {\n      return _faker.default.random.number();\n    }\n  });\n});","define(\"additive-mc/mirage/factories/widget\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Factory.extend({\n    name: () => _faker.default.random.word(),\n    styles: {\n      globals: {\n        borderRadius: '2px',\n        boxShadowSpreadRadius: '1px',\n        boxShadow: '0 1px 2px 0 rgba(0,0,0,0.2)',\n        zIndex: 9999\n      },\n      colors: {\n        main: {\n          sync: true,\n          syncedColor: '#3d3d3d',\n          syncedContrastColor: '#ffffff'\n        },\n        accent: {\n          sync: true,\n          syncedColor: '#707070',\n          syncedContrastColor: '#ffffff'\n        },\n        ambient: {\n          sync: true,\n          syncedColor: '#ffffff',\n          syncedContrastColor: '#707070'\n        }\n      },\n      typography: {\n        h2: {\n          fontFamily: '-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif',\n          fontSize: '32px',\n          lineHeight: '40px',\n          color: 'main',\n          serif: false,\n          sync: true,\n          syncedTypography: 'h2'\n        },\n        h3: {\n          fontFamily: '-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif',\n          fontSize: '24px',\n          lineHeight: '28px',\n          color: 'main',\n          serif: false,\n          sync: true,\n          syncedTypography: 'h3'\n        },\n        p: {\n          fontFamily: '\"Book Antiqua\",Palatino,\"Palatino Linotype\",\"Palatino LT STD\",Georgia,serif',\n          fontSize: '18px',\n          lineHeight: '24px',\n          color: 'main',\n          serif: true,\n          sync: true,\n          syncedTypography: 'p'\n        },\n        small: {\n          fontFamily: '\"Book Antiqua\",Palatino,\"Palatino Linotype\",\"Palatino LT STD\",Georgia,serif',\n          fontSize: '14px',\n          lineHeight: '20px',\n          color: 'main',\n          serif: true,\n          sync: true,\n          syncedTypography: 'small'\n        },\n        label: {\n          fontFamily: '\"Book Antiqua\",Palatino,\"Palatino Linotype\",\"Palatino LT STD\",Georgia,serif',\n          fontSize: '11px',\n          lineHeight: '16px',\n          color: 'main',\n          serif: true,\n          sync: true,\n          syncedTypography: 'label'\n        },\n        button: {\n          fontFamily: '\"Book Antiqua\",Palatino,\"Palatino Linotype\",\"Palatino LT STD\",Georgia,serif',\n          fontSize: '14px',\n          lineHeight: '20px',\n          color: 'accent',\n          serif: true,\n          sync: true,\n          syncedTypography: 'button'\n        }\n      }\n    }\n  });\n});","define(\"additive-mc/mirage/models/ad-campaign\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/ad-facebook\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/ad-past-marketing-action\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/ad-preview\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/advertisement\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/depiction\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/email-campaign-voucher\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/email-campaign\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({\n    emails: (0, _emberCliMirage.hasMany)('email'),\n    emailSeries: (0, _emberCliMirage.hasMany)('email-series')\n  });\n});","define(\"additive-mc/mirage/models/email-past-marketing-action\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/email-preview\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({\n    subscribers: (0, _emberCliMirage.hasMany)('subscriber')\n  });\n});","define(\"additive-mc/mirage/models/email-series\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({\n    campaign: (0, _emberCliMirage.belongsTo)('email-campaign'),\n    emails: (0, _emberCliMirage.hasMany)('email')\n  });\n});","define(\"additive-mc/mirage/models/email\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({\n    campaign: (0, _emberCliMirage.belongsTo)('email-campaign'),\n    emailSeries: (0, _emberCliMirage.belongsTo)('email-series')\n  });\n});","define(\"additive-mc/mirage/models/extension\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/image\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/legal\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/on-page-campaign\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({\n    contents: (0, _emberCliMirage.hasMany)('on-page-content')\n  });\n});","define(\"additive-mc/mirage/models/on-page-content\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({\n    campaign: (0, _emberCliMirage.belongsTo)('on-page-campaign')\n  });\n});","define(\"additive-mc/mirage/models/reports-ad\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/reports-email\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/reports-social-posting\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/search-ad-campaign\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/search-ad-template\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/search-ad\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/setting\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/social-past-marketing-action\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/social-preview\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/subscriber\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({\n    preview: (0, _emberCliMirage.belongsTo)('email-preview')\n  });\n});","define(\"additive-mc/mirage/models/target-group\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/transaction\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class Transaction extends _emberCliMirage.Model {}\n  _exports.default = Transaction;\n});","define(\"additive-mc/mirage/models/trigger-email-campaign\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({\n    emails: (0, _emberCliMirage.hasMany)('trigger-email'),\n    emailSeries: (0, _emberCliMirage.hasMany)('trigger-email-series')\n  });\n});","define(\"additive-mc/mirage/models/trigger-email-series\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({\n    campaign: (0, _emberCliMirage.belongsTo)('trigger-email-campaign'),\n    emails: (0, _emberCliMirage.hasMany)('trigger-email')\n  });\n});","define(\"additive-mc/mirage/models/trigger-email\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({\n    campaign: (0, _emberCliMirage.belongsTo)('trigger-email-campaign'),\n    emailSeries: (0, _emberCliMirage.belongsTo)('trigger-email-series')\n  });\n});","define(\"additive-mc/mirage/models/trigger\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({\n    campaign: (0, _emberCliMirage.belongsTo)('trigger-email-campaign')\n  });\n});","define(\"additive-mc/mirage/models/value-added\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/models/widget\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.Model.extend({});\n});","define(\"additive-mc/mirage/routes/campaigns/ad\", [\"exports\", \"additive-mc/mirage/routes/helpers/response\", \"ember-cli-mirage\", \"faker\"], function (_exports, _response, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.AdRoutes = void 0;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const AD_CAMPAIGNS = ['facebookContentAds', 'boostContents', 'facebookRemarketing'];\n  const AdRoutes = self => {\n    self.get('/organisation-campaigns/ad', _ref => {\n      let {\n        adCampaigns\n      } = _ref;\n      const campaigns = adCampaigns.all();\n      return {\n        adCampaigns: campaigns.models,\n        meta: {\n          total: campaigns.models.length\n        }\n      };\n    });\n    self.get('/organisation-campaigns/ad/:id', (_ref2, request) => {\n      let {\n        adCampaigns\n      } = _ref2;\n      const {\n        id\n      } = request.params;\n      return adCampaigns.find(id);\n    });\n    self.get('/organisation-campaigns/ad/available', () => {\n      return AD_CAMPAIGNS;\n    });\n    self.del('/organisation-campaigns/ad/:id', (_ref3, request) => {\n      let {\n        adCampaigns\n      } = _ref3;\n      const {\n        id\n      } = request.params;\n      adCampaigns.find(id).destroy();\n    });\n    self.post('/organisation-campaigns/ad', (schema, request) => {\n      let body = JSON.parse(request.requestBody);\n      const {\n        title,\n        campaignCode\n      } = body;\n      return schema.adCampaigns.create({\n        title,\n        campaignCode\n      });\n    });\n    self.put('/organisation-campaigns/ad/:id', (_ref4, request) => {\n      let {\n        adCampaigns\n      } = _ref4;\n      const {\n        id\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n\n      // Change order randomly. Can be removed if this is fixed in the API.\n      body.configurations.forEach(function (c) {\n        c.order = _faker.default.random.number();\n      });\n      return adCampaigns.find(id).update(body);\n    });\n    self.put('/organisation-campaigns/ad/:id/activate', (schema, request) => {\n      try {\n        const model = adCampaignOrFail(schema, request);\n        return model.update('active', true);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/ad/:id/deactivate', (schema, request) => {\n      try {\n        const model = adCampaignOrFail(schema, request);\n        return model.update('active', false);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.get('/organisation-campaigns/ad/catalogs', schema => {\n      return schema.adCatalogs.all();\n    });\n    self.get('/organisation-campaigns/ad/settings', () => {\n      return {\n        settings: [{\n          id: 1,\n          key: 'monthly-ad-spend-threshold',\n          description: 'Monatlicher AdSpend Threshold',\n          type: 'money',\n          value: null\n        }]\n      };\n    });\n    self.get('/organisation-campaigns/ad/settings/tik-tok-target-groups', () => {\n      return {\n        targetGroups: [{\n          label: 'ca_de',\n          location: [],\n          language: [],\n          gender: '',\n          age: []\n        }]\n      };\n    });\n    self.get('/organisation-campaigns/ad/settings/tik-tok-target-groups/metadata', () => {\n      return {\n        locations: [{\n          label: 'Deutschland',\n          value: 'de'\n        }, {\n          label: 'Italien',\n          value: 'it'\n        }, {\n          label: 'Österreich',\n          value: 'at',\n          subData: [{\n            label: 'Tirol',\n            value: 'tirol'\n          }]\n        }],\n        availableLanguages: [{\n          label: 'Deutsch',\n          value: 'de'\n        }, {\n          label: 'Italienisch',\n          value: 'it'\n        }, {\n          label: 'Französisch',\n          value: 'fr'\n        }, {\n          label: 'Niederländisch',\n          value: 'nl'\n        }, {\n          label: 'Spanisch',\n          value: 'es'\n        }, {\n          label: 'Portugisisch',\n          value: 'pt'\n        }],\n        age: [{\n          label: '13-17',\n          value: '13-17'\n        }, {\n          label: '18-24',\n          value: '18-24'\n        }, {\n          label: '25-40',\n          value: '25-40'\n        }, {\n          label: '40-60',\n          value: '40-60'\n        }, {\n          label: '60-100',\n          value: '60-100'\n        }],\n        interests: [{\n          label: 'Sports & Outdoors',\n          value: 'sports',\n          subData: [{\n            label: 'Outdoor Equipment',\n            value: 'outdoor_equipment'\n          }, {\n            label: 'Sports Equipment',\n            value: 'sports_equipment',\n            subData: [{\n              label: 'Fitness Training Supplies',\n              value: 'fitness'\n            }, {\n              label: 'Golf',\n              value: 'golf'\n            }]\n          }]\n        }, {\n          label: 'Life Services',\n          value: 'life_services',\n          subData: [{\n            label: 'Photography',\n            value: 'photography'\n          }, {\n            label: 'Gardening',\n            value: 'gardening'\n          }]\n        }],\n        videoInteractionTypes: [{\n          label: 'Watched till end',\n          value: 'watched_till_end'\n        }, {\n          label: 'Liked',\n          value: 'liked'\n        }, {\n          label: 'Commented',\n          value: 'commented'\n        }, {\n          label: 'Shared',\n          value: 'shared'\n        }],\n        videoInteractions: [{\n          label: 'Nature',\n          value: 'nature',\n          subData: [{\n            label: 'Animals',\n            value: 'animals',\n            subData: [{\n              label: 'Pets',\n              value: 'pets'\n            }, {\n              label: 'Farm Animals',\n              value: 'farm_anmials'\n            }]\n          }]\n        }],\n        creatorInteractionTypes: [{\n          label: 'Followed',\n          value: 'followed'\n        }, {\n          label: 'Viewed Profile',\n          value: 'viewed_profile'\n        }],\n        creatorInteractions: [{\n          label: 'Talent',\n          value: 'talent',\n          subData: [{\n            label: 'Music',\n            value: 'music'\n          }, {\n            label: 'Other Talent',\n            value: 'other_talent'\n          }]\n        }],\n        hashtagInteractions: [{\n          label: 'Talent',\n          value: 'talent',\n          subData: [{\n            label: 'Music',\n            value: 'music'\n          }, {\n            label: 'Other Talent',\n            value: 'other_talent'\n          }]\n        }]\n      };\n    });\n    self.post('/organisation-campaigns/ad/settings/tik-tok-target-groups', (schema, request) => {\n      const targetGroups = JSON.parse(request.requestBody);\n      if (targetGroups === null) {\n        return {\n          targetGroups: []\n        };\n      }\n      return {\n        targetGroups\n      };\n    });\n    self.get('/organisation-campaigns/ad-campaigns/:id/advertisements', schema => {\n      return schema.advertisements.where({\n        type: 'ad'\n      });\n    });\n    self.get('/organisation-campaigns/ad-campaigns/:id/advertisements/:advertisement_id', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      return schema.advertisements.find(advertisement_id);\n    });\n    self.put('/organisation-campaigns/ad-campaigns/:id/advertisements/:advertisement_id', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      const body = JSON.parse(request.requestBody);\n      const newModel = model.update(body);\n      return newModel;\n    });\n    self.post('/organisation-campaigns/ad-campaigns/:id/advertisements', (schema, request) => {\n      let body = JSON.parse(request.requestBody);\n      return schema.advertisements.create(_objectSpread(_objectSpread({}, body), {}, {\n        state: 'active',\n        budgetSpend: {\n          value: 0,\n          percent: 0\n        }\n      }));\n    });\n    self.delete('/organisation-campaigns/ad-campaigns/:id/advertisements/:advertisement_id', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      model.destroy();\n      return;\n    });\n    self.put('/organisation-campaigns/ad-campaigns/:id/advertisements/:advertisement_id/:action_type', (schema, request) => {\n      const {\n        advertisement_id,\n        action_type\n      } = request.params;\n      const actionTypes = {\n        continue: 'active',\n        pause: 'paused',\n        abort: 'aborted'\n      };\n      const model = schema.advertisements.find(advertisement_id);\n      const newModel = model.update({\n        state: actionTypes[action_type]\n      });\n      return newModel;\n    });\n    self.get('/organisation-campaigns/ad-campaigns/:id/advertisements/meta', schema => {\n      return {\n        targetAudiences: [1, 2, 3, 4].map(i => ({\n          value: `audience-${i}`,\n          label: `Audience ${i}`\n        })),\n        contents: [{\n          label: 'Content',\n          value: 'advertisement-test'\n        }, {\n          label: 'Content2',\n          value: 'advertisement-test2'\n        }],\n        pixels: [{\n          label: 'Pixel',\n          value: 'pixel'\n        }]\n      };\n    });\n  };\n  _exports.AdRoutes = AdRoutes;\n  const adCampaignOrFail = (schema, request) => {\n    const {\n      id\n    } = request.params;\n    const model = schema.adCampaigns.find(id);\n    if (!model) {\n      throw new Error('not_found');\n    }\n    return model;\n  };\n});","define(\"additive-mc/mirage/routes/campaigns/email\", [\"exports\", \"additive-mc/config/environment\", \"additive-mc/mirage/routes/helpers/response\", \"ember-cli-mirage\", \"faker\", \"additive-mc/mirage/routes/transactions\", \"additive-mc/mirage/utils/constants\"], function (_exports, _environment, _response, _emberCliMirage, _faker, _transactions, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.EmailRoutes = void 0;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const EMAIL_CAMPAIGNS = ['usecase1', 'usecase2a', 'usecase2b', 'usecase3a', 'usecase3b', 'usecase4'];\n  const EmailRoutes = self => {\n    /* Email campaigns */\n    self.get('/email', schema => {\n      const campaigns = schema.emailCampaigns.all();\n      return {\n        emailCampaigns: campaigns.models,\n        meta: {\n          total: campaigns.models.length\n        }\n      };\n    });\n    self.get(`${_environment.default.APP.apiBaseHostV2}/**/guest-lifecycle-mail-campaigns`, schema => {\n      const campaigns = schema.emailCampaigns.all();\n      return {\n        campaigns: campaigns.models,\n        meta: {\n          total: campaigns.models.length\n        }\n      };\n    });\n    self.get('/organisation-campaigns/email/available', () => {\n      return EMAIL_CAMPAIGNS;\n    });\n    self.get(`${_environment.default.APP.apiBaseHostV2}/**/guest-lifecycle-mail-campaigns/campaign-types`, schema => {\n      const existingCampaigns = schema.emailCampaigns.all().models;\n      const allCampaignTypes = _constants.EMAIL_CAMPAIGN_TYPES.map(campaignType => {\n        const existingCampaign = existingCampaigns.find(ct => ct.type === campaignType.type);\n        return _objectSpread(_objectSpread({}, campaignType), {}, {\n          creatableChecks: existingCampaign ? [{\n            key: 'campaign_type_already_created'\n          }] : []\n        });\n      });\n      return {\n        campaignTypes: allCampaignTypes\n      };\n    });\n    self.post('/organisation-campaigns/email', (schema, request) => {\n      let body = JSON.parse(request.requestBody);\n      const {\n        title,\n        campaignCode\n      } = body;\n      return schema.emailCampaigns.create({\n        title,\n        campaignCode\n      });\n    });\n    /* Email campaign */\n    self.get('/organisation-campaigns/email/:id', (schema, request) => {\n      try {\n        return emailCampaignOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.get(`${_environment.default.APP.apiBaseHostV2}/**/guest-lifecycle-mail-campaigns/:id`, (schema, request) => {\n      try {\n        return emailCampaignOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.del('/organisation-campaigns/email/:id');\n    self.put('/organisation-campaigns/email/:id', (schema, request) => {\n      /* Randomly fail with 422 to be able to test task. Can be removed after done (https://app.clubhouse.io/additivapps/story/11050/beim-speichern-und-aktivieren-einer-kampagnen-konfiguration-sollte-die-fehlermeldung-der-api-angezeigt-werden) */\n      if (_faker.default.random.boolean()) {\n        return new _emberCliMirage.Response(422, {}, {\n          errors: [{\n            custom: 'bla bla'\n          }],\n          message: 'The given data was invalid'\n        });\n      }\n      try {\n        const model = emailCampaignOrFail(schema, request);\n        const attrs = JSON.parse(request.requestBody);\n        return model.update(attrs);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.get('/organisation-campaigns/email/:id/meta', (schema, request) => {\n      return {\n        meta: {\n          surveys: [{\n            label: 'Deutsche Umfrage 🇩🇪',\n            value: '42e5b312-1060-4d18-b873-d4b408b2f37d'\n          }],\n          ctaTypes: [{\n            label: 'Kein Button',\n            value: null\n          }, {\n            label: 'Click-to-action(CTA)',\n            value: 'cta'\n          }, {\n            label: 'Landing Page',\n            value: 'landingpage'\n          }, {\n            label: 'Umfrage',\n            value: 'survey'\n          }]\n        }\n      };\n    });\n    self.get('/guest-lifecycle-mail-campaigns/meta', (schema, request) => {\n      return {\n        meta: {\n          ctaTypes: [{\n            value: null,\n            label: 'No button'\n          }, {\n            value: 'voucher',\n            label: 'voucher'\n          }, {\n            value: 'cta',\n            label: 'Call-to-action (CTA)'\n          }, {\n            value: 'landingpage',\n            label: 'Landing page'\n          }, {\n            value: 'referral',\n            label: 'Referral campaign'\n          }, {\n            value: 'survey',\n            label: 'Survey'\n          }],\n          contribution: {\n            greeting: {\n              syncedValue: 'Synced Voucher greeting text'\n            }\n          },\n          landingPage: {\n            availableLanguages: []\n          }\n        }\n      };\n    });\n    self.put('/organisation-campaigns/email/:id/activate', (schema, request) => {\n      try {\n        const model = emailCampaignOrFail(schema, request);\n        return model.update('active', true);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/email/:id/deactivate', (schema, request) => {\n      try {\n        const model = emailCampaignOrFail(schema, request);\n        return model.update('active', false);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    /* Email campaign emails */\n    self.get('/organisation-campaigns/email/:id/emails', (schema, request) => {\n      try {\n        const campaign = emailCampaignOrFail(schema, request);\n        return campaign.emails;\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.post('/organisation-campaigns/email/:id/emails', (schema, request) => {\n      try {\n        const campaign = emailCampaignOrFail(schema, request);\n        const attrs = JSON.parse(request.requestBody);\n        return schema.emails.create(Object.assign(attrs, {\n          campaign\n        }));\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    /* Email campaign email */\n    self.get('/organisation-campaigns/email/:id/emails/:email_id', (schema, request) => {\n      try {\n        return emailOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.get(`${_environment.default.APP.apiBaseHostV2}/**/guest-lifecycle-mail-campaigns/:id/emails/:email_id`, (schema, request) => {\n      try {\n        return emailOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.del('/organisation-campaigns/email/:id/emails/:email_id', (schema, request) => {\n      try {\n        const model = emailOrFail(schema, request);\n        return model.destroy();\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/email/:id/emails/:email_id', (schema, request) => {\n      try {\n        const model = emailOrFail(schema, request);\n        const attrs = JSON.parse(request.requestBody);\n        return model.update(attrs);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.del('/organisation-campaigns/email/:id/emails/:email_id/:language', (schema, request) => {\n      try {\n        const {\n          language\n        } = request.params;\n        if (['de', 'en', 'it'].indexOf(language) === -1) {\n          throw (0, _response.notFoundResponse)(`'${language}' not supported`);\n        }\n        const model = emailOrFail(schema, request);\n        if (model.availableLanguages.indexOf(language) === -1) {\n          return (0, _emberCliMirage.Response)(400, {}, {\n            message: `'${language}' does not exist`\n          });\n        }\n        model.availableLanguages.splice(model.availableLanguages.indexOf(language), 1);\n        return model;\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/email/:id/emails/:email_id/activate', (schema, request) => {\n      try {\n        const model = emailOrFail(schema, request);\n        return model.update('active', true);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/email/:id/emails/:email_id/deactivate', (schema, request) => {\n      try {\n        const model = emailOrFail(schema, request);\n        return model.update('active', false);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    /* Voucher */\n    self.get('/organisation-campaigns/email/:id/vouchers/:voucher_id', (schema, request) => {\n      try {\n        return voucherOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.get(`${_environment.default.APP.apiBaseHostV2}/**/guest-lifecycle-mail-campaigns/:id/contributions/:voucher_id`, (schema, request) => {\n      try {\n        return voucherOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/email/:id/vouchers/:voucher_id', (schema, request) => {\n      try {\n        const model = voucherOrFail(schema, request);\n        const attrs = JSON.parse(request.requestBody);\n        return model.update(Object.assign({\n          image: null\n        }, attrs));\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.del('/organisation-campaigns/email/:id/vouchers/:voucher_id/:language', (schema, request) => {\n      try {\n        const {\n          language\n        } = request.params;\n        if (['de', 'en', 'it'].indexOf(language) === -1) {\n          throw (0, _response.notFoundResponse)(`'${language}' not supported`);\n        }\n        const model = voucherOrFail(schema, request);\n        if (model.availableLanguages.indexOf(language) === -1) {\n          return (0, _emberCliMirage.Response)(400, {}, {\n            message: `'${language}' does not exist`\n          });\n        }\n        model.availableLanguages.splice(model.availableLanguages.indexOf(language), 1);\n        return model;\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/email/:id/vouchers/:voucher_id/activate', (schema, request) => {\n      try {\n        const model = voucherOrFail(schema, request);\n        return model.update('active', true);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/email/:id/vouchers/:voucher_id/deactivate', (schema, request) => {\n      try {\n        const model = voucherOrFail(schema, request);\n        return model.update('active', false);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    /* Email-series */\n    self.get('/organisation-campaigns/email/:id/email-series', (schema, request) => {\n      try {\n        return emailSeriesOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.get('/organisation-campaigns/email/:id/landing-page/:landing_page_id', (schema, request) => {\n      try {\n        return landingPageOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.get(`${_environment.default.APP.apiBaseHostV2}/**/emails/:id/preview`, schema => {\n      return _transactions.HTML_PREVIEW;\n    });\n    self.get(`${_environment.default.APP.apiBaseHostV2}/**/contributions/:id/preview`, schema => {\n      return _transactions.HTML_PREVIEW;\n    });\n    self.get(`${_environment.default.APP.apiBaseHostV2}/**/pre-stay-campaign/:id/landing-page-preview`, schema => {\n      return _transactions.HTML_PREVIEW;\n    });\n  };\n  _exports.EmailRoutes = EmailRoutes;\n  const emailCampaignOrFail = (schema, request) => {\n    const {\n      id\n    } = request.params;\n    const model = schema.emailCampaigns.find(id);\n    if (!model) {\n      throw new Error('not_found');\n    }\n    return model;\n  };\n  const emailOrFail = (schema, request) => {\n    const campaign = emailCampaignOrFail(schema, request);\n    const {\n      email_id\n    } = request.params;\n    const model = schema.emails.find(email_id);\n    // if (!model || model.campaignId !== campaign.id) {\n    //   throw new Error('not_found');\n    // }\n\n    return model;\n  };\n  const voucherOrFail = (schema, request) => {\n    const {\n      voucher_id\n    } = request.params;\n    const model = schema.emailCampaignVouchers.find(voucher_id);\n    model.policies = `<p>${_faker.default.lorem.lines(5)}</p>`;\n    if (!model) {\n      throw new Error('not_found');\n    }\n    return model;\n  };\n  const landingPageOrFail = (schema, request) => {\n    const {\n      landing_page_id\n    } = request.params;\n    const model = schema.emailCampaignLandingpages.find(landing_page_id);\n    if (!model) {\n      throw new Error('not_found');\n    }\n    return model;\n  };\n  const emailSeriesOrFail = (schema, request) => {\n    const campaign = emailCampaignOrFail(schema, request);\n    const {\n      id\n    } = request.params;\n    const model = schema.emailSeries.findBy({\n      campaignId: id\n    });\n    if (!model || model.campaignId !== campaign.id) {\n      throw new Error('not_found');\n    }\n    return model;\n  };\n});","define(\"additive-mc/mirage/routes/campaigns/index\", [\"exports\", \"additive-mc/mirage/routes/campaigns/ad\", \"additive-mc/mirage/routes/campaigns/trigger-email\", \"additive-mc/mirage/routes/campaigns/email\", \"additive-mc/mirage/routes/campaigns/social\", \"additive-mc/mirage/routes/campaigns/lead-ad\", \"additive-mc/mirage/routes/campaigns/on-page\", \"additive-mc/mirage/routes/campaigns/search-ad\", \"additive-mc/mirage/routes/campaigns/tiktok-lead-ad\"], function (_exports, _ad, _triggerEmail, _email, _social, _leadAd, _onPage, _searchAd, _tiktokLeadAd) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"AdRoutes\", {\n    enumerable: true,\n    get: function get() {\n      return _ad.AdRoutes;\n    }\n  });\n  Object.defineProperty(_exports, \"EmailRoutes\", {\n    enumerable: true,\n    get: function get() {\n      return _email.EmailRoutes;\n    }\n  });\n  Object.defineProperty(_exports, \"LeadAdRoutes\", {\n    enumerable: true,\n    get: function get() {\n      return _leadAd.LeadAdRoutes;\n    }\n  });\n  Object.defineProperty(_exports, \"OnPageRoutes\", {\n    enumerable: true,\n    get: function get() {\n      return _onPage.OnPageRoutes;\n    }\n  });\n  Object.defineProperty(_exports, \"SearchAdRoutes\", {\n    enumerable: true,\n    get: function get() {\n      return _searchAd.SearchAdRoutes;\n    }\n  });\n  Object.defineProperty(_exports, \"SocialRoutes\", {\n    enumerable: true,\n    get: function get() {\n      return _social.SocialRoutes;\n    }\n  });\n  Object.defineProperty(_exports, \"TikTokLeadAdsRoutes\", {\n    enumerable: true,\n    get: function get() {\n      return _tiktokLeadAd.TikTokLeadAdsRoutes;\n    }\n  });\n  Object.defineProperty(_exports, \"TriggerEmailRoutes\", {\n    enumerable: true,\n    get: function get() {\n      return _triggerEmail.TriggerEmailRoutes;\n    }\n  });\n});","define(\"additive-mc/mirage/routes/campaigns/lead-ad\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.LeadAdRoutes = void 0;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const LeadAdRoutes = self => {\n    self.get('/organisation-campaigns/ad-campaigns/lead-ads/:id/advertisements', schema => {\n      return schema.advertisements.where({\n        type: 'lead-ad'\n      });\n    });\n    self.get('/organisation-campaigns/ad-campaigns/lead-ads/:id/advertisements/:advertisement_id', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      return schema.advertisements.find(advertisement_id);\n    });\n    self.post('/organisation-campaigns/ad-campaigns/lead-ads/:id/advertisements', (schema, request) => {\n      let body = JSON.parse(request.requestBody);\n      return schema.advertisements.create(_objectSpread(_objectSpread({}, body), {}, {\n        state: 'unpublished',\n        budgetSpend: {\n          value: 0,\n          percentage: 0\n        }\n      }));\n    });\n    self.put('/organisation-campaigns/ad-campaigns/lead-ads/:id/advertisements/:advertisement_id', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      const body = JSON.parse(request.requestBody);\n      const newModel = model.update(body);\n      return newModel;\n    });\n    self.put('/organisation-campaigns/ad-campaigns/lead-ads/:id/advertisements/:advertisement_id/archive', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      const newModel = model.update({\n        state: 'archived'\n      });\n      return newModel;\n    });\n    self.get('/organisation-campaigns/ad-campaigns/lead-ads/:id/advertisements/:advertisement_id/validate', (schema, request) => {\n      var _model$adCreative;\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      const validations = [];\n      if (!(model !== null && model !== void 0 && (_model$adCreative = model.adCreative) !== null && _model$adCreative !== void 0 && (_model$adCreative = _model$adCreative.multimediaVariants) !== null && _model$adCreative !== void 0 && _model$adCreative.length)) {\n        validations.push({\n          message: 'Es braucht mindestens ein Bild',\n          property: 'adCreative.multimediaVariants',\n          action: 'edit'\n        });\n      }\n      ['cta', 'title', 'headline', 'text'].forEach(prop => {\n        if (model !== null && model !== void 0 && model.adCreative && !(model !== null && model !== void 0 && model.adCreative[prop])) {\n          validations.push({\n            message: `${prop} darf nicht leer sein!`,\n            prop: `adCreative.${prop}`,\n            action: 'edit'\n          });\n        }\n      });\n      if (!validations.length) {\n        return new _emberCliMirage.Response(200, {}, {});\n      }\n      return new _emberCliMirage.Response(422, {}, {\n        validations\n      });\n    });\n    self.get('/organisation-campaigns/ad-campaigns/lead-ads/:id/advertisements/metadata', schema => {\n      return {\n        budgetTypes: [{\n          value: 'daily',\n          label: 'Tagesbudget'\n        }, {\n          value: 'lifetime',\n          label: 'Lebenslanges Budget'\n        }],\n        targetAudiences: [1, 2, 3, 4].map(i => ({\n          value: `audience-${i}`,\n          label: `Audience ${i}`\n        })),\n        pixels: [{\n          label: 'Pixel',\n          value: 'pixel'\n        }],\n        languages: [{\n          label: 'Deutsch',\n          value: 'de'\n        }, {\n          label: 'Italienisch',\n          value: 'it'\n        }, {\n          label: 'Englisch',\n          value: 'en'\n        }],\n        ctaTypes: [{\n          label: 'Anmelden',\n          value: 'SUBSCRIBE'\n        }, {\n          label: 'Herunterladen',\n          value: 'DOWNLOAD'\n        }]\n      };\n    });\n    self.put('/organisation-campaigns/ad-campaigns/lead-ads/:id/advertisements/:advertisement_id/publish', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n\n      // Randomly fail\n      const random = Math.random();\n      if (random > 0.5) {\n        return new _emberCliMirage.Response(422, {}, {\n          status: 422,\n          code: 'boh',\n          message: 'Random error, Facebook does not like this ad'\n        });\n      }\n      const model = schema.advertisements.find(advertisement_id);\n      const newModel = model.update({\n        state: 'published'\n      });\n      return newModel;\n    });\n    self.put('/organisation-campaigns/ad-campaigns/lead-ads/:id/advertisements/:advertisement_id/unpublish', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      const newModel = model.update({\n        state: 'unpublished'\n      });\n      return newModel;\n    });\n    self.put('/organisation-campaigns/ad-campaigns/lead-ads/:id/advertisements/:advertisement_id/pause', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      const newModel = model.update({\n        state: 'paused'\n      });\n      return newModel;\n    });\n    self.put('/organisation-campaigns/ad-campaigns/lead-ads/:id/advertisements/:advertisement_id/continue', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      const newModel = model.update({\n        state: 'published'\n      });\n      return newModel;\n    });\n  };\n  _exports.LeadAdRoutes = LeadAdRoutes;\n});","define(\"additive-mc/mirage/routes/campaigns/on-page\", [\"exports\", \"additive-mc/mirage/routes/helpers/response\", \"faker\", \"ember-cli-mirage\"], function (_exports, _response, _faker, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.OnPageRoutes = void 0;\n  const OnPageRoutes = self => {\n    self.get('/organisation-campaigns/on-page', _ref => {\n      let {\n        onPageCampaigns\n      } = _ref;\n      const campaigns = onPageCampaigns.all();\n      return {\n        onPageCampaigns: campaigns.models,\n        meta: {\n          total: campaigns.models.length\n        }\n      };\n    });\n    self.get('/organisation-campaigns/on-page/:id', (_ref2, request) => {\n      let {\n        onPageCampaigns\n      } = _ref2;\n      const {\n        id\n      } = request.params;\n      return onPageCampaigns.find(id);\n    });\n    self.del('/organisation-campaigns/on-page/:id', (_ref3, request) => {\n      let {\n        onPageCampaigns\n      } = _ref3;\n      const {\n        id\n      } = request.params;\n      onPageCampaigns.find(id).destroy();\n    });\n    self.post('/organisation-campaigns/on-page', (schema, request) => {\n      let body = JSON.parse(request.requestBody);\n      const {\n        title,\n        campaignCode\n      } = body;\n      return schema.onPageCampaigns.create({\n        title,\n        campaignCode\n      });\n    });\n    self.put('/organisation-campaigns/on-page/:id', (_ref4, request) => {\n      let {\n        onPageCampaigns\n      } = _ref4;\n      const {\n        id\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      return onPageCampaigns.find(id).update(body);\n    });\n    self.put('/organisation-campaigns/on-page/:id/activate', (schema, request) => {\n      try {\n        const model = onPageCampaignOrFail(schema, request);\n        return model.update('active', true);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/on-page/:id/deactivate', (schema, request) => {\n      try {\n        const model = onPageCampaignOrFail(schema, request);\n        return model.update('active', false);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.get('/organisation-campaigns/on-page/:id/contents', (schema, request) => {\n      try {\n        const campaign = onPageCampaignOrFail(schema, request);\n        return campaign.contents;\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.post('/organisation-campaigns/on-page/:id/contents', (schema, request) => {\n      try {\n        const campaign = onPageCampaignOrFail(schema, request);\n        const attrs = JSON.parse(request.requestBody);\n        return schema.onPageContents.create(Object.assign(attrs, {\n          campaign\n        }));\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.get('/organisation-campaigns/on-page/:id/contents/:content_id', (schema, request) => {\n      try {\n        return contentOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.del('/organisation-campaigns/on-page/:id/contents/:content_id', (schema, request) => {\n      try {\n        const model = contentOrFail(schema, request);\n        return model.destroy();\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/on-page/:id/contents/:content_id', (schema, request) => {\n      try {\n        const model = contentOrFail(schema, request);\n        const attrs = JSON.parse(request.requestBody);\n        return model.update(attrs);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.del('/organisation-campaigns/on-page/:id/contents/:content_id/:language', (schema, request) => {\n      try {\n        const {\n          language\n        } = request.params;\n        if (['de', 'en', 'it'].indexOf(language) === -1) {\n          throw (0, _response.notFoundResponse)(`'${language}' not supported`);\n        }\n        const model = contentOrFail(schema, request);\n        if (model.availableLanguages.indexOf(language) === -1) {\n          return (0, _emberCliMirage.Response)(400, {}, {\n            message: `'${language}' does not exist`\n          });\n        }\n        model.availableLanguages.splice(model.availableLanguages.indexOf(language), 1);\n        return model;\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/on-page/:id/contents/:content_id/activate', (schema, request) => {\n      try {\n        const model = contentOrFail(schema, request);\n        return model.update('active', true);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/on-page/:id/contents/:content_id/deactivate', (schema, request) => {\n      try {\n        const model = contentOrFail(schema, request);\n        return model.update('active', false);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n\n    /* Voucher */\n\n    self.get('/organisation-campaigns/on-page/:id/vouchers/:voucher_id', (schema, request) => {\n      try {\n        return voucherOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/on-page/:id/vouchers/:voucher_id', (schema, request) => {\n      try {\n        const model = voucherOrFail(schema, request);\n        const attrs = JSON.parse(request.requestBody);\n        return model.update(Object.assign({\n          image: null\n        }, attrs));\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.del('/organisation-campaigns/on-page/:id/vouchers/:voucher_id/:language', (schema, request) => {\n      try {\n        const {\n          language\n        } = request.params;\n        if (['de', 'en', 'it'].indexOf(language) === -1) {\n          throw (0, _response.notFoundResponse)(`'${language}' not supported`);\n        }\n        const model = voucherOrFail(schema, request);\n        if (model.availableLanguages.indexOf(language) === -1) {\n          return (0, _emberCliMirage.Response)(400, {}, {\n            message: `'${language}' does not exist`\n          });\n        }\n        model.availableLanguages.splice(model.availableLanguages.indexOf(language), 1);\n        return model;\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/on-page/:id/vouchers/:voucher_id/activate', (schema, request) => {\n      try {\n        const model = voucherOrFail(schema, request);\n        return model.update('active', true);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/on-page/:id/vouchers/:voucher_id/deactivate', (schema, request) => {\n      try {\n        const model = voucherOrFail(schema, request);\n        return model.update('active', false);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n  };\n  _exports.OnPageRoutes = OnPageRoutes;\n  const onPageCampaignOrFail = (schema, request) => {\n    const {\n      id\n    } = request.params;\n    const model = schema.onPageCampaigns.find(id);\n    if (!model) {\n      throw new Error('not_found');\n    }\n    return model;\n  };\n  const contentOrFail = (schema, request) => {\n    const campaign = onPageCampaignOrFail(schema, request);\n    const {\n      content_id\n    } = request.params;\n    const model = schema.onPageContents.find(content_id);\n    if (!model || model.campaignId !== campaign.id) {\n      throw new Error('not_found');\n    }\n    return model;\n  };\n  const voucherOrFail = (schema, request) => {\n    const {\n      voucher_id\n    } = request.params;\n    const model = schema.onPageCampaignVouchers.find(voucher_id);\n    if (!model) {\n      throw new Error('not_found');\n    }\n    return model;\n  };\n});","define(\"additive-mc/mirage/routes/campaigns/search-ad\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.SearchAdRoutes = void 0;\n  const SearchAdRoutes = self => {\n    self.get('/organisation-campaigns/google/search-ads', _ref => {\n      let {\n        searchAdCampaigns\n      } = _ref;\n      const campaigns = searchAdCampaigns.all();\n      return {\n        searchAdCampaigns: campaigns.models,\n        meta: {\n          total: campaigns.models.length\n        }\n      };\n    });\n    self.get('/organisation-campaigns/google/search-ads/:id', (_ref2, request) => {\n      let {\n        searchAdCampaigns\n      } = _ref2;\n      const {\n        id\n      } = request.params;\n      return searchAdCampaigns.find(id);\n    });\n    self.get('/organisation-campaigns/google/search-ads/metadata', schema => {\n      return {\n        bids: [1, 2, 3, 4].map(i => ({\n          value: `bid-${i}`,\n          label: `Bid ${i}`\n        })),\n        targetGoals: [1, 2].map(i => ({\n          value: `target-goal-${i}`,\n          label: `Target Goal${i}`\n        })),\n        landingPages: [1, 2].map(i => ({\n          value: `landing-page-${i}`,\n          label: `Landing Page ${i}`,\n          url: _faker.default.internet.url(),\n          availableLanguages: ['de', 'en', 'it']\n        }))\n      };\n    });\n    self.get('/organisation-campaigns/google/search-ads/keywords', schema => {\n      return {\n        keywords: [{\n          id: 1,\n          name: 'keyword 1',\n          count: 15\n        }, {\n          id: 2,\n          name: 'keyword 2',\n          count: 6\n        }, {\n          id: 3,\n          name: 'keyword 3',\n          count: 15\n        }, {\n          id: 4,\n          name: 'keyword 4',\n          count: 6\n        }, {\n          id: 5,\n          name: 'keyword 5',\n          count: 15\n        }, {\n          id: 6,\n          name: 'keyword 6',\n          count: 6\n        }],\n        meta: {\n          currentPage: 1,\n          from: 1,\n          lastPage: 1,\n          perPage: 40,\n          to: 11,\n          total: 11\n        }\n      };\n    });\n    self.post('/organisation-campaigns/search-ad', (schema, request) => {\n      let body = JSON.parse(request.requestBody);\n      const {\n        title,\n        campaignCode\n      } = body;\n      return schema.searchAdCampaigns.create({\n        title,\n        campaignCode\n      });\n    });\n    self.put('/organisation-campaigns/google/search-ads/:id', (_ref3, request) => {\n      let {\n        searchAdCampaigns\n      } = _ref3;\n      const {\n        id\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      return searchAdCampaigns.find(id).update(body);\n    });\n    self.put('/organisation-campaigns/google/search-ads/:id/publish', (schema, request) => {\n      const {\n        id\n      } = request.params;\n      const model = schema.searchAdCampaigns.find(id);\n      const newModel = model.update({\n        state: 'published'\n      });\n      return newModel;\n    });\n    self.get('/organisation-campaigns/google/search-ads/:id/ad-sets', (_ref4, request) => {\n      let {\n        searchAdCampaigns,\n        searchAds\n      } = _ref4;\n      return {\n        adSets: [{\n          id: 1,\n          name: 'Anzeigegruppe 1',\n          state: 'paused',\n          keywords: [{\n            id: 1,\n            name: 'keyword 1',\n            count: 15\n          }, {\n            id: 4,\n            name: 'keyword 4',\n            count: 6\n          }, {\n            id: 5,\n            name: 'keyword 5',\n            count: 15\n          }]\n        }, {\n          id: 2,\n          name: 'Anzeigegruppe 2',\n          state: 'enabled',\n          keywords: [{\n            id: 1,\n            name: 'keyword 1',\n            count: 15\n          }, {\n            id: 2,\n            name: 'keyword 2',\n            count: 6\n          }, {\n            id: 3,\n            name: 'keyword 3',\n            count: 15\n          }, {\n            id: 4,\n            name: 'keyword 4',\n            count: 6\n          }, {\n            id: 5,\n            name: 'keyword 5',\n            count: 15\n          }]\n        }]\n      };\n    });\n    self.put('/organisation-campaigns/google/search-ads/:id/ad-sets/:id', (schema, request) => {\n      let body = JSON.parse(request.requestBody);\n      return body;\n    });\n    self.get('/organisation-campaigns/google/search-ads/:id/ad-sets/:id/ads', (_ref5, request) => {\n      let {\n        searchAdCampaigns,\n        searchAds\n      } = _ref5;\n      const {\n        id\n      } = request.params;\n      const ads = searchAds.all();\n      return {\n        ads: ads.models\n      };\n    });\n    self.put('/organisation-campaigns/google/search-ads/:id/ad-sets/:id/ads/:id', (schema, request) => {\n      let body = JSON.parse(request.requestBody);\n      return body;\n    });\n    self.get('/organisation-campaigns/google/search-ads/:id/pending-updates', (_ref6, request) => {\n      let {\n        searchAdCampaigns,\n        searchAds\n      } = _ref6;\n      return {\n        pendingAdUpdates: [{\n          id: 4,\n          name: 'Ad',\n          type: 'added',\n          user: {\n            id: '557fe8f9-3b49-49dd-8268-9512d9f2bada',\n            name: 'Jonas Niedermair'\n          }\n        }],\n        pendingTargetGroupUpdates: [{\n          id: 3,\n          name: 'TargetGroup',\n          type: 'updated',\n          user: {\n            id: '557fe8f9-3b49-49dd-8268-9512d9f2bada',\n            name: 'Jonas Niedermair'\n          },\n          changes: [{\n            oldValue: 'old name',\n            newValue: 'new name'\n          }]\n        }],\n        pendingExtensionUpdates: [{\n          id: 1,\n          name: 'Erweiterung1',\n          type: 'removed',\n          user: {\n            id: '557fe8f9-3b49-49dd-8268-9512d9f2bada',\n            name: 'Jonas Niedermair'\n          }\n        }]\n      };\n    });\n    self.put('/organisation-campaigns/google/search-ads/:id/pending-updates', (schema, request) => {\n      const {\n        id\n      } = request.params;\n      const model = schema.searchAdCampaigns.find(id);\n      const newModel = model.update({\n        state: 'published'\n      });\n      return newModel;\n    });\n    self.put('/organisation-campaigns/google/search-ads/:id/unpublish', (schema, request) => {\n      const {\n        id\n      } = request.params;\n      const model = schema.searchAdCampaigns.find(id);\n      const newModel = model.update({\n        state: 'unpublished'\n      });\n      return newModel;\n    });\n    self.put('/organisation-campaigns/google/search-ads/:id/pause', (schema, request) => {\n      const {\n        id\n      } = request.params;\n      const model = schema.searchAdCampaigns.find(id);\n      const newModel = model.update({\n        state: 'paused'\n      });\n      return newModel;\n    });\n    self.put('/organisation-campaigns/google/search-ads/:id/continue', (schema, request) => {\n      const {\n        id\n      } = request.params;\n      const model = schema.searchAdCampaigns.find(id);\n      const newModel = model.update({\n        state: 'published'\n      });\n      return newModel;\n    });\n    self.get('/organisation-campaigns/search-ads/extensions', _ref7 => {\n      let {\n        extensions\n      } = _ref7;\n      const allExtensions = extensions.all();\n      return {\n        extensions: allExtensions.models,\n        meta: {\n          total: allExtensions.models.length\n        }\n      };\n    });\n    self.get('/organisation-campaigns/search-ads/extensions/metadata', schema => {\n      return {\n        availableLanguages: [{\n          label: 'Deutsch',\n          value: 'de'\n        }, {\n          label: 'Italienisch',\n          value: 'it'\n        }, {\n          label: 'Englisch',\n          value: 'en'\n        }]\n      };\n    });\n    self.post('/organisation-campaigns/search-ads/extensions', (schema, request) => {\n      let body = JSON.parse(request.requestBody);\n      const {\n        name\n      } = body;\n      return schema.extensions.create({\n        name\n      });\n    });\n    self.put('/organisation-campaigns/search-ads/extensions/:id', (_ref8, request) => {\n      let {\n        extensions\n      } = _ref8;\n      const {\n        id\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      return extensions.find(id).update(body);\n    });\n    self.delete('/organisation-campaigns/search-ads/extensions/:id', (schema, request) => {\n      const {\n        id\n      } = request.params;\n      const model = schema.extensions.find(id);\n      model.destroy();\n      return;\n    });\n    self.get('/organisation-campaigns/search-ads/ad-templates', _ref9 => {\n      let {\n        searchAdTemplates\n      } = _ref9;\n      const allAds = searchAdTemplates.all();\n      return {\n        searchAdTemplates: allAds.models,\n        meta: {\n          total: allAds.models.length\n        }\n      };\n    });\n    self.get('/organisation-campaigns/search-ads/ad-templates/metadata', schema => {\n      return {\n        availableLanguages: [{\n          label: 'Deutsch',\n          value: 'de'\n        }, {\n          label: 'Italienisch',\n          value: 'it'\n        }, {\n          label: 'Englisch',\n          value: 'en'\n        }]\n      };\n    });\n    self.post('/organisation-campaigns/search-ads/ad-templates', (schema, request) => {\n      return schema.searchAdTemplates.create();\n    });\n    self.put('/organisation-campaigns/search-ads/ad-templates/:id', (_ref10, request) => {\n      let {\n        searchAdTemplates\n      } = _ref10;\n      const {\n        id\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      return searchAdTemplates.find(id).update(body);\n    });\n    self.delete('/organisation-campaigns/search-ads/ad-templates/:id', (schema, request) => {\n      const {\n        id\n      } = request.params;\n      const model = schema.searchAdTemplates.find(id);\n      model.destroy();\n      return;\n    });\n    self.get('/organisation-campaigns/search-ads/target-groups', _ref11 => {\n      let {\n        targetGroups\n      } = _ref11;\n      const allTargetGroups = targetGroups.all();\n      return {\n        targetGroups: allTargetGroups.models,\n        meta: {\n          total: allTargetGroups.models.length\n        }\n      };\n    });\n    self.post('/organisation-campaigns/search-ads/target-groups', (schema, request) => {\n      let body = JSON.parse(request.requestBody);\n      const {\n        name\n      } = body;\n      return schema.targetGroups.create({\n        name\n      });\n    });\n    self.put('/organisation-campaigns/search-ads/target-groups/:id', (_ref12, request) => {\n      let {\n        targetGroups\n      } = _ref12;\n      const {\n        id\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      return targetGroups.find(id).update(body);\n    });\n    self.delete('/organisation-campaigns/search-ads/target-groups/:id', (schema, request) => {\n      const {\n        id\n      } = request.params;\n      const model = schema.targetGroups.find(id);\n      model.destroy();\n      return;\n    });\n    self.get('/organisation-campaigns/search-ads/target-groups/metadata', schema => {\n      return {\n        availableLanguages: [{\n          label: 'Deutsch',\n          value: 'de'\n        }, {\n          label: 'Italienisch',\n          value: 'it'\n        }, {\n          label: 'Englisch',\n          value: 'en'\n        }],\n        locations: [{\n          label: 'Qatar',\n          value: '289688',\n          subData: []\n        }, {\n          label: 'Ukraine',\n          value: '690791',\n          subData: []\n        }, {\n          label: 'Sweden',\n          value: '2661886',\n          subData: [{\n            label: 'Vastmanland',\n            value: '2664179',\n            subData: [{\n              label: 'Vasteras',\n              value: '2664454',\n              subData: []\n            }]\n          }, {\n            label: 'Uppsala',\n            value: '2666218',\n            subData: [{\n              label: 'Uppsala',\n              value: '2666199',\n              subData: []\n            }]\n          }, {\n            label: 'Jonkoping',\n            value: '2702976',\n            subData: [{\n              label: 'Jonkoping',\n              value: '2702979',\n              subData: []\n            }]\n          }]\n        }, {\n          label: 'South Africa',\n          value: '953987',\n          subData: [{\n            label: 'Orange Free State',\n            value: '967573',\n            subData: []\n          }, {\n            label: 'KwaZulu-Natal',\n            value: '972062',\n            subData: []\n          }]\n        }]\n      };\n    });\n  };\n  _exports.SearchAdRoutes = SearchAdRoutes;\n});","define(\"additive-mc/mirage/routes/campaigns/social\", [\"exports\", \"additive-mc/mirage/routes/helpers/response\", \"faker\"], function (_exports, _response, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.SocialRoutes = void 0;\n  const SOCIAL_CAMPAIGNS = ['facebookPosts'];\n  const SocialRoutes = self => {\n    self.get('/organisation-campaigns/social', _ref => {\n      let {\n        socialCampaigns\n      } = _ref;\n      const campaigns = socialCampaigns.all();\n      return {\n        socialCampaigns: campaigns.models,\n        meta: {\n          total: campaigns.models.length\n        }\n      };\n    });\n    self.get('/organisation-campaigns/social/:id', (_ref2, request) => {\n      let {\n        socialCampaigns\n      } = _ref2;\n      const {\n        id\n      } = request.params;\n      return socialCampaigns.find(id);\n    });\n    self.get('/organisation-campaigns/social/available', () => {\n      return SOCIAL_CAMPAIGNS;\n    });\n    self.del('/organisation-campaigns/social/:id', (_ref3, request) => {\n      let {\n        socialCampaigns\n      } = _ref3;\n      const {\n        id\n      } = request.params;\n      socialCampaigns.find(id).destroy();\n    });\n    self.post('/organisation-campaigns/social', (schema, request) => {\n      let body = JSON.parse(request.requestBody);\n      const {\n        title,\n        campaignCode\n      } = body;\n      return schema.socialCampaigns.create({\n        title,\n        campaignCode\n      });\n    });\n    self.put('/organisation-campaigns/social/:id', (_ref4, request) => {\n      let {\n        socialCampaigns\n      } = _ref4;\n      /* Randomly fail with 422 to be able to test task. Can be removed after done (https://app.clubhouse.io/additivapps/story/11050/beim-speichern-und-aktivieren-einer-kampagnen-konfiguration-sollte-die-fehlermeldung-der-api-angezeigt-werden) */\n      if (_faker.default.random.boolean()) {\n        return new Response(422, {}, {\n          errors: [{\n            custom: 'bla bla'\n          }],\n          message: 'The given data was invalid'\n        });\n      }\n      const {\n        id\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      return socialCampaigns.find(id).update(body);\n    });\n    self.put('/organisation-campaigns/social/:id/activate', (schema, request) => {\n      try {\n        const model = socialCampaignOrFail(schema, request);\n        return model.update('active', true);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/social/:id/deactivate', (schema, request) => {\n      try {\n        const model = socialCampaignOrFail(schema, request);\n        return model.update('active', false);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n  };\n  _exports.SocialRoutes = SocialRoutes;\n  const socialCampaignOrFail = (schema, request) => {\n    const {\n      id\n    } = request.params;\n    const model = schema.socialCampaigns.find(id);\n    if (!model) {\n      throw new Error('not_found');\n    }\n    return model;\n  };\n});","define(\"additive-mc/mirage/routes/campaigns/tiktok-lead-ad\", [\"exports\", \"ember-cli-mirage\", \"faker\"], function (_exports, _emberCliMirage, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TikTokLeadAdsRoutes = void 0;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const TikTokLeadAdsRoutes = self => {\n    self.get('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements', schema => {\n      return schema.advertisements.where({\n        type: 'tiktok-lead-ad'\n      });\n    });\n    self.get('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements/:advertisement_id', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      return schema.advertisements.find(advertisement_id);\n    });\n    self.post('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements', (schema, request) => {\n      let body = JSON.parse(request.requestBody);\n      return schema.advertisements.create(_objectSpread(_objectSpread({}, body), {}, {\n        state: 'unpublished',\n        budgetSpend: {\n          value: 0,\n          percentage: 0\n        },\n        totalBudget: 0\n      }));\n    });\n    self.put('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements/:advertisement_id', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      const body = JSON.parse(request.requestBody);\n      const newModel = model.update(body);\n      return newModel;\n    });\n    self.put('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements/:advertisement_id/archive', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      const newModel = model.update({\n        state: 'archived'\n      });\n      return newModel;\n    });\n    self.get('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements/:advertisement_id/validate', (schema, request) => {\n      // TODO: 422-Validations\n      return new _emberCliMirage.Response(200, {}, {});\n    });\n    self.put('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements/:advertisement_id/pendingDepictionUpdates', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      const newModel = model.update({\n        state: 'published'\n      });\n      return newModel;\n    });\n    self.get('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements/:advertisement_id/pendingDepictionUpdates', schema => {\n      return {\n        pendingDepictionUpdates: [{\n          name: 'Depiction 1',\n          id: 2,\n          user: {\n            id: 12332,\n            name: 'Stefan Gasser'\n          },\n          type: 'added'\n        }, {\n          name: 'Depiction 2',\n          id: 3,\n          user: {\n            id: 123321,\n            name: 'Hannah Geier'\n          },\n          type: 'removed'\n        }, {\n          name: 'Depiction 4',\n          id: 5,\n          user: {\n            id: 12311,\n            name: 'Simon Knoll'\n          },\n          type: 'updated'\n        }]\n      };\n    });\n    self.put('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements/:advertisement_id/pendingTargetGroupUpdates', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      const newModel = model.update({\n        state: 'published'\n      });\n      return newModel;\n    });\n    self.get('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements/:advertisement_id/pendingTargetGroupUpdates', schema => {\n      return {\n        pendingTargetGroupUpdates: [{\n          id: 'UUID',\n          name: 'Test',\n          type: 'updated',\n          user: {\n            id: '557fe8f9-3b49-49dd-8268-9512d9f2bada',\n            name: 'Christoph Blank'\n          }\n        }]\n      };\n    });\n    self.get('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements/metadata', schema => {\n      return {\n        identities: [{\n          id: '1',\n          name: 'Additive'\n        }],\n        targetGroups: [{\n          id: '1',\n          name: 'ca_interessen_dach_de'\n        }],\n        budgetTypes: [{\n          value: 'daily',\n          label: 'Tagesbudget'\n        }, {\n          value: 'lifetime',\n          label: 'Lebenslanges Budget'\n        }],\n        optimizationEvents: [1, 2, 3, 4].map(i => ({\n          value: `optimizationEvent-${i}`,\n          label: `Optimization event ${i}`\n        })),\n        availableLanguages: [{\n          label: 'Deutsch',\n          value: 'de'\n        }, {\n          label: 'Italienisch',\n          value: 'it'\n        }, {\n          label: 'Englisch',\n          value: 'en'\n        }]\n      };\n    });\n    self.put('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements/:advertisement_id/publish', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n\n      // Randomly fail\n      const random = Math.random();\n      if (random > 0.5) {\n        return new _emberCliMirage.Response(422, {}, {\n          status: 422,\n          code: 'boh',\n          message: 'Random error, Facebook does not like this ad'\n        });\n      }\n      const model = schema.advertisements.find(advertisement_id);\n      const newModel = model.update({\n        state: 'published'\n      });\n      return newModel;\n    });\n    self.put('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements/:advertisement_id/unpublish', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      const newModel = model.update({\n        state: 'unpublished'\n      });\n      return newModel;\n    });\n    self.put('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements/:advertisement_id/pause', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      const newModel = model.update({\n        state: 'paused'\n      });\n      return newModel;\n    });\n    self.put('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/advertisements/:advertisement_id/continue', (schema, request) => {\n      const {\n        advertisement_id\n      } = request.params;\n      const model = schema.advertisements.find(advertisement_id);\n      const newModel = model.update({\n        state: 'published'\n      });\n      return newModel;\n    });\n    self.get('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/depictions', schema => {\n      return schema.depictions.all();\n    });\n    self.get('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/depictions/:depiction_id', (schema, request) => {\n      const {\n        depiction_id\n      } = request.params;\n      const depiction = schema.depictions.find(depiction_id);\n      depiction.language = request.requestHeaders['Accept-Language'];\n      return depiction;\n    });\n    self.put('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/depictions/:depiction_id', (schema, request) => {\n      const {\n        depiction_id\n      } = request.params;\n      const model = schema.depictions.find(depiction_id);\n      const body = JSON.parse(request.requestBody);\n      body.variants.forEach(variant => {\n        variant.id = _faker.default.random.uuid();\n      });\n      if (body.postfix === '') {\n        body.postfix = body.name;\n      }\n      const newModel = model.update(body);\n      return newModel;\n    });\n    self.post('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/depictions', (schema, request) => {\n      let body = JSON.parse(request.requestBody);\n      return schema.depictions.create(_objectSpread(_objectSpread({}, body), {}, {\n        availableLanguages: [request.requestHeaders['Accept-Language']]\n      }));\n    });\n    self.delete('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/depictions/:depiction_id', (schema, request) => {\n      // Randomly fail\n      // const random = Math.random();\n      // if (random > 0.6) {\n      //   return new Response(\n      //     422,\n      //     {},\n      //     {\n      //       status: 422,\n      //       message: 'API Error'\n      //     }\n      //   );\n      // }\n\n      const {\n        depiction_id\n      } = request.params;\n      const model = schema.depictions.find(depiction_id);\n      model.destroy();\n      return;\n    });\n    self.get('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/depictions/:depiction_id/tiktok-pages', schema => {\n      return {\n        pages: [{\n          id: '1',\n          name: 'Formular A'\n        }, {\n          id: '2',\n          name: 'Formular B'\n        }, {\n          id: '3',\n          name: 'Formular C'\n        }]\n      };\n    });\n    self.get('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/depictions/:depiction_id/tiktok-form-editor', schema => {\n      return {\n        appId: 'your_appid',\n        version: 'v1.0',\n        accountId: 'your_adv_id',\n        accessToken: 'your_access_token',\n        display: 'popup',\n        actionType: 'create',\n        pageId: 'pageid',\n        businessType: 1,\n        countryCode: ['US'],\n        siteType: 0,\n        externalAction: 0\n      };\n    });\n    self.delete('/organisation-campaigns/ad-campaigns/tiktok-lead-ads/:id/depictions/:depiction_id/:language', (schema, request) => {\n      try {\n        const {\n          language\n        } = request.params;\n        if (['de', 'en', 'it'].indexOf(language) === -1) {\n          throw notFoundResponse(`'${language}' not supported`);\n        }\n        const {\n          depiction_id\n        } = request.params;\n        const model = schema.depictions.find(depiction_id);\n        if (model.availableLanguages.indexOf(language) === -1) {\n          return (0, _emberCliMirage.Response)(400, {}, {\n            message: `'${language}' does not exist`\n          });\n        }\n        model.availableLanguages.splice(model.availableLanguages.indexOf(language), 1);\n        return model;\n      } catch (error) {\n        return notFoundResponse(error);\n      }\n    });\n  };\n  _exports.TikTokLeadAdsRoutes = TikTokLeadAdsRoutes;\n});","define(\"additive-mc/mirage/routes/campaigns/trigger-email\", [\"exports\", \"additive-mc/config/environment\", \"additive-mc/mirage/routes/helpers/response\", \"additive-mc/mirage/utils/constants\"], function (_exports, _environment, _response, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TriggerEmailRoutes = void 0;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const TriggerEmailRoutes = self => {\n    /* Email campaigns */\n    self.get('/organisation-campaigns/trigger-email', schema => {\n      const campaigns = schema.triggerEmailCampaigns.all();\n      return {\n        triggerEmailCampaigns: campaigns.models,\n        meta: {\n          total: campaigns.models.length\n        }\n      };\n    });\n    self.get(`${_environment.default.APP.apiBaseHostV2}/**/trigger-email-campaigns`, schema => {\n      const campaigns = schema.triggerEmailCampaigns.all();\n      return {\n        campaigns: campaigns.models,\n        meta: {\n          total: campaigns.models.length\n        }\n      };\n    });\n    self.get(`${_environment.default.APP.apiBaseHostV2}/**/trigger-email-campaigns/campaign-types`, schema => {\n      const existingCampaigns = schema.emailCampaigns.all().models;\n      const allCampaignTypes = _constants.TRIGGER_EMAIL_CAMPAIGN_TYPES.map(campaignType => {\n        const existingCampaign = existingCampaigns.find(ct => ct.type === campaignType.type);\n        return _objectSpread(_objectSpread({}, campaignType), {}, {\n          creatableChecks: existingCampaign ? [{\n            key: 'campaign_type_already_created'\n          }] : []\n        });\n      });\n      return {\n        campaignTypes: allCampaignTypes\n      };\n    });\n    self.post('/organisation-campaigns/trigger-email', (schema, request) => {\n      let body = JSON.parse(request.requestBody);\n      const {\n        title,\n        name,\n        code\n      } = body;\n      return schema.triggerEmailCampaigns.create({\n        title,\n        name,\n        code,\n        active: false\n      });\n    });\n\n    /* Email campaign */\n    self.get('/organisation-campaigns/trigger-email/:id', (schema, request) => {\n      try {\n        return emailCampaignOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.get(`${_environment.default.APP.apiBaseHostV2}/**/trigger-email-campaigns/:id`, (schema, request) => {\n      try {\n        return emailCampaignOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.del('/organisation-campaigns/trigger-email/:id');\n    self.put('/organisation-campaigns/trigger-email/:id', (schema, request) => {\n      try {\n        const model = emailCampaignOrFail(schema, request);\n        const attrs = JSON.parse(request.requestBody);\n        return model.update(attrs);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.get('/organisation-campaigns/trigger-email/:id/meta', (schema, request) => {\n      return {\n        meta: {\n          surveys: [{\n            label: 'Deutsche Umfrage 🇩🇪',\n            value: '42e5b312-1060-4d18-b873-d4b408b2f37d'\n          }],\n          ctaTypes: [{\n            label: 'Kein Button',\n            value: null\n          }, {\n            label: 'Click-to-action(CTA)',\n            value: 'cta'\n          }, {\n            label: 'Landing Page',\n            value: 'landingpage'\n          }, {\n            label: 'Umfrage',\n            value: 'survey'\n          }]\n        }\n      };\n    });\n    self.get(`${_environment.default.APP.apiBaseHostV2}/**/trigger-campaign/meta`, (schema, request) => {\n      return {\n        meta: {\n          ctaTypes: [{\n            label: 'No Button',\n            value: null\n          }, {\n            label: 'Link',\n            value: 'cta'\n          }, {\n            label: 'Referral Campaign',\n            value: 'referral'\n          }, {\n            label: 'Landing Page',\n            value: 'landingpage'\n          }, {\n            label: 'Voucher',\n            value: 'voucher'\n          }, {\n            label: 'Survey',\n            value: 'survey'\n          }],\n          contribution: {\n            greeting: 'Viel Spaß!'\n          },\n          configurations: [{\n            key: 'campaign_postfix',\n            type: 'text',\n            label: 'Campaign postfix',\n            description: 'Campaign postfix description..'\n          }, {\n            key: 'disable_after_booking',\n            type: 'boolean',\n            label: 'Stop campaign sending if contact makes an inquiry or booking',\n            description: 'Description..'\n          }]\n        }\n      };\n    });\n    self.get(`${_environment.default.APP.apiBaseHostV2}/**/lead-campaigns`, (schema, request) => {\n      return {\n        campaigns: [{\n          label: 'MA::facebook::video_upload_test_27_02::123',\n          value: '123'\n        }, {\n          label: 'MA::facebook::Testing21.5.v19::testing.v19',\n          value: '456'\n        }, {\n          label: 'On-Page Incentive Campaign::lol',\n          value: 10921\n        }, {\n          label: 'On-Page Incentive Campaign::Test',\n          value: 10920\n        }]\n      };\n    });\n    self.put('/organisation-campaigns/trigger-email/:id/activate', (schema, request) => {\n      try {\n        const model = emailCampaignOrFail(schema, request);\n        return model.update('active', true);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/trigger-email/:id/deactivate', (schema, request) => {\n      try {\n        const model = emailCampaignOrFail(schema, request);\n        return model.update('active', false);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.post(`${_environment.default.APP.apiBaseHostV2}/**/trigger-campaign/:id/test-emails`, (schema, request) => {\n      return new Response(204);\n    });\n\n    /* Email campaign emails */\n    self.get('/organisation-campaigns/trigger-email/:id/emails', (schema, request) => {\n      try {\n        const campaign = emailCampaignOrFail(schema, request);\n        return campaign.emails;\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.post('/organisation-campaigns/trigger-email/:id/emails', (schema, request) => {\n      try {\n        const campaign = emailCampaignOrFail(schema, request);\n        const attrs = JSON.parse(request.requestBody);\n        return schema.triggerEmails.create(Object.assign(attrs, {\n          campaign\n        }));\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n\n    /* Email campaign email */\n    self.get('/organisation-campaigns/trigger-email/:id/emails/:email_id', (schema, request) => {\n      try {\n        return emailOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.del('/organisation-campaigns/trigger-email/:id/emails/:email_id', (schema, request) => {\n      try {\n        const model = emailOrFail(schema, request);\n        return model.destroy();\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/trigger-email/:id/emails/:email_id', (schema, request) => {\n      try {\n        const model = emailOrFail(schema, request);\n        const attrs = JSON.parse(request.requestBody);\n        return model.update(attrs);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.del('/organisation-campaigns/trigger-email/:id/emails/:email_id/:language', (schema, request) => {\n      try {\n        const {\n          language\n        } = request.params;\n        if (['de', 'en', 'it'].indexOf(language) === -1) {\n          throw (0, _response.notFoundResponse)(`'${language}' not supported`);\n        }\n        const model = emailOrFail(schema, request);\n        if (model.availableLanguages.indexOf(language) === -1) {\n          return Response(400, {}, {\n            message: `'${language}' does not exist`\n          });\n        }\n        model.availableLanguages.splice(model.availableLanguages.indexOf(language), 1);\n        return model;\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/trigger-email/:id/emails/:email_id/activate', (schema, request) => {\n      try {\n        const model = emailOrFail(schema, request);\n        return model.update('active', true);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/trigger-email/:id/emails/:email_id/deactivate', (schema, request) => {\n      try {\n        const model = emailOrFail(schema, request);\n        return model.update('active', false);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n\n    /* Voucher */\n    self.get('/organisation-campaigns/trigger-email/:id/vouchers/:voucher_id', (schema, request) => {\n      try {\n        return voucherOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/trigger-email/:id/vouchers/:voucher_id', (schema, request) => {\n      try {\n        const model = voucherOrFail(schema, request);\n        const attrs = JSON.parse(request.requestBody);\n        return model.update(Object.assign({\n          image: null\n        }, attrs));\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.del('/organisation-campaigns/trigger-email/:id/vouchers/:voucher_id/:language', (schema, request) => {\n      try {\n        const {\n          language\n        } = request.params;\n        if (['de', 'en', 'it'].indexOf(language) === -1) {\n          throw (0, _response.notFoundResponse)(`'${language}' not supported`);\n        }\n        const model = voucherOrFail(schema, request);\n        if (model.availableLanguages.indexOf(language) === -1) {\n          return Response(400, {}, {\n            message: `'${language}' does not exist`\n          });\n        }\n        model.availableLanguages.splice(model.availableLanguages.indexOf(language), 1);\n        return model;\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/trigger-email/:id/vouchers/:voucher_id/activate', (schema, request) => {\n      try {\n        const model = voucherOrFail(schema, request);\n        return model.update('active', true);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/trigger-email/:id/vouchers/:voucher_id/deactivate', (schema, request) => {\n      try {\n        const model = voucherOrFail(schema, request);\n        return model.update('active', false);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n\n    /* Email-series */\n    self.get('/organisation-campaigns/trigger-email/:id/email-series', (schema, request) => {\n      try {\n        return emailSeriesOrFail(schema, request);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/trigger-email/:id/email-series/:email_series_id', (schema, request) => {\n      try {\n        const model = emailSeriesOrFail(schema, request);\n        const attrs = JSON.parse(request.requestBody);\n        return model.update(attrs);\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.post('/organisation-campaigns/trigger-email/:id/email-series', (schema, request) => {\n      try {\n        const model = emailSeriesOrFail(schema, request);\n        const attrs = JSON.parse(request.requestBody);\n        const {\n          label,\n          mailsCount,\n          offsetInDays,\n          state\n        } = attrs;\n        return schema.triggerEmailSeries.create({\n          label,\n          mailsCount,\n          offsetInDays,\n          state\n        });\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/trigger-email/:id/email-series/:email_series_id/activate', (schema, request) => {\n      try {\n        const model = emailSeriesOrFail(schema, request);\n        return model.update('state', 'active');\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/organisation-campaigns/trigger-email/:id/email-series/:email_series_id/deactivate', (schema, request) => {\n      try {\n        const model = emailSeriesOrFail(schema, request);\n        return model.update('state', 'inactive');\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.del('/organisation-campaigns/trigger-email/:id/email-series/:email_series_id');\n  };\n  _exports.TriggerEmailRoutes = TriggerEmailRoutes;\n  const emailCampaignOrFail = (schema, request) => {\n    const {\n      id\n    } = request.params;\n    const model = schema.triggerEmailCampaigns.find(id);\n    if (!model) {\n      throw new Error('not_found');\n    }\n    return model;\n  };\n  const emailOrFail = (schema, request) => {\n    const campaign = emailCampaignOrFail(schema, request);\n    const {\n      email_id\n    } = request.params;\n    const model = schema.triggerEmails.find(email_id);\n    if (!model || model.campaignId !== campaign.id) {\n      throw new Error('not_found');\n    }\n    return model;\n  };\n  const voucherOrFail = (schema, request) => {\n    const {\n      voucher_id\n    } = request.params;\n    const model = schema.emailCampaignVouchers.find(voucher_id);\n    if (!model) {\n      throw new Error('not_found');\n    }\n    return model;\n  };\n  const emailSeriesOrFail = (schema, request) => {\n    const campaign = emailCampaignOrFail(schema, request);\n    const {\n      id\n    } = request.params;\n    const model = schema.triggerEmailSeries.findBy({\n      campaignId: id\n    });\n    if (!model || model.campaignId !== campaign.id) {\n      throw new Error('not_found');\n    }\n    return model;\n  };\n});","define(\"additive-mc/mirage/routes/dashboard/ad-campaigns\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.DashboardAdCampaigns = void 0;\n  const DashboardAdCampaigns = self => {\n    /*\n     * Zugestellte Email mit % vergl. zum Vorjahr\n     *\n     * eindeutige Öffnungen mit % vergl. zum Vorjahr\n     *\n     * eindeutig Klicks mit % vergl. zum Vorjahr\n     *\n     * Online Konversionen mit % vergl. zum Vorjahr\n     */\n    self.get('/dashboard/ad-campaigns', () => {\n      return {\n        count: 0,\n        maxCount: 5,\n        ads: {\n          type: 'compare',\n          change: 0,\n          current: {\n            value: 0,\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: 0,\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        impressions: {\n          type: 'compare',\n          change: 0,\n          current: {\n            value: 0,\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: 0,\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        clicks: {\n          type: 'compare',\n          change: 0,\n          current: {\n            value: 0,\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: 0,\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        conversions: {\n          type: 'compare',\n          change: 0,\n          current: {\n            value: 0,\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: 0,\n            type: 'yearly',\n            date: 2018\n          }\n        }\n      };\n    });\n  };\n  _exports.DashboardAdCampaigns = DashboardAdCampaigns;\n});","define(\"additive-mc/mirage/routes/dashboard/charts\", [\"exports\", \"date-fns\"], function (_exports, _dateFns) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.DashboardCharts = void 0;\n  const DashboardCharts = self => {\n    self.get('/dashboard/added-value-graph', (_, req) => {\n      const {\n        start,\n        end\n      } = req.queryParams;\n      const startDate = new Date(start);\n      const endDate = new Date(end);\n      const numOfMonths = Math.abs((0, _dateFns.differenceInMonths)(startDate, endDate));\n      if (isNaN(numOfMonths)) {\n        return null;\n      }\n      return {\n        addedValueGraph: {\n          type: 'compare',\n          labels: [...Array(numOfMonths).keys()].map(i => (0, _dateFns.format)((0, _dateFns.addMonths)(new Date(start.toString()), i), 'yyyy-MM')),\n          datasets: [{\n            label: 'Wertschöpfung',\n            format: 'currency',\n            currency: 'EUR',\n            data: [...Array(numOfMonths).keys()].map(() => Math.floor(Math.random() * 1000)),\n            compare: [...Array(numOfMonths).keys()].map(() => Math.floor(Math.random() * 1000)),\n            tooltipData: null\n          }, {\n            label: 'Reservierungsumsätze',\n            format: 'currency',\n            currency: 'EUR',\n            data: [...Array(numOfMonths).keys()].map(() => Math.floor(Math.random() * 1000)),\n            compare: [...Array(numOfMonths).keys()].map(() => Math.floor(Math.random() * 1000)),\n            tooltipData: null\n          }, {\n            label: 'Gesamtumsätze',\n            format: 'currency',\n            currency: 'EUR',\n            data: [...Array(numOfMonths).keys()].map(() => Math.floor(Math.random() * 1000)),\n            compare: [...Array(numOfMonths).keys()].map(() => Math.floor(Math.random() * 1000)),\n            tooltipData: null\n          }],\n          comparison: {\n            label: 'last_year'\n          }\n        }\n      };\n    });\n    self.get('/dashboard/conversions-reservations-graph', (_, req) => {\n      const {\n        start,\n        end\n      } = req.queryParams;\n      const startDate = new Date(start);\n      const endDate = new Date(end);\n      const numOfMonths = Math.abs((0, _dateFns.differenceInMonths)(startDate, endDate));\n      return {\n        conversionsRerservationsGraph: {\n          type: 'compare',\n          labels: [...Array(numOfMonths).keys()].map(i => (0, _dateFns.format)((0, _dateFns.addMonths)(new Date(start.toString()), i), 'yyyy-MM')),\n          datasets: [{\n            label: 'Conversions',\n            format: 'number',\n            data: [...Array(numOfMonths).keys()].map(() => Math.floor(Math.random() * 1000)),\n            compare: [...Array(numOfMonths).keys()].map(() => Math.floor(Math.random() * 1000)),\n            tooltipData: null\n          }, {\n            label: 'Reservations',\n            format: 'number',\n            data: [...Array(numOfMonths).keys()].map(() => Math.floor(Math.random() * 1000)),\n            compare: [...Array(numOfMonths).keys()].map(() => Math.floor(Math.random() * 1000)),\n            tooltipData: null\n          }],\n          comparison: {\n            label: 'last_year'\n          }\n        }\n      };\n    });\n  };\n  _exports.DashboardCharts = DashboardCharts;\n});","define(\"additive-mc/mirage/routes/dashboard/email-campaigns\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.DashboardEmailCampaigns = void 0;\n  const DashboardEmailCampaigns = self => {\n    /*\n     * Zugestellte Email mit % vergl. zum Vorjahr\n     *\n     * eindeutige Öffnungen mit % vergl. zum Vorjahr\n     *\n     * eindeutig Klicks mit % vergl. zum Vorjahr\n     *\n     * Online Konversionen mit % vergl. zum Vorjahr\n     */\n    self.get('/dashboard/email-campaigns', () => {\n      return {\n        count: 12,\n        maxCount: 17,\n        emails: {\n          type: 'compare',\n          change: 33.33,\n          current: {\n            value: 2400,\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: 1800,\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        openings: {\n          type: 'compare',\n          change: -11.6,\n          current: {\n            value: 1326,\n            type: 'yearly',\n            date: 2019,\n            rate: 56.45\n          },\n          compare: {\n            value: 1500,\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        clicks: {\n          type: 'compare',\n          change: -16.32,\n          current: {\n            value: 1066,\n            type: 'yearly',\n            date: 2019,\n            rate: 42\n          },\n          compare: {\n            value: 1274,\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        conversions: {\n          type: 'compare',\n          change: 100,\n          current: {\n            value: 320,\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: 160,\n            type: 'yearly',\n            date: 2018\n          }\n        }\n      };\n    });\n  };\n  _exports.DashboardEmailCampaigns = DashboardEmailCampaigns;\n});","define(\"additive-mc/mirage/routes/dashboard/index\", [\"exports\", \"additive-mc/mirage/routes/dashboard/charts\", \"additive-mc/mirage/routes/dashboard/key-indicators\", \"additive-mc/mirage/routes/dashboard/overview\", \"additive-mc/mirage/routes/dashboard/email-campaigns\", \"additive-mc/mirage/routes/dashboard/ad-campaigns\"], function (_exports, _charts, _keyIndicators, _overview, _emailCampaigns, _adCampaigns) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"DashboardAdCampaigns\", {\n    enumerable: true,\n    get: function get() {\n      return _adCampaigns.DashboardAdCampaigns;\n    }\n  });\n  Object.defineProperty(_exports, \"DashboardCharts\", {\n    enumerable: true,\n    get: function get() {\n      return _charts.DashboardCharts;\n    }\n  });\n  Object.defineProperty(_exports, \"DashboardEmailCampaigns\", {\n    enumerable: true,\n    get: function get() {\n      return _emailCampaigns.DashboardEmailCampaigns;\n    }\n  });\n  Object.defineProperty(_exports, \"DashboardKeyIndicators\", {\n    enumerable: true,\n    get: function get() {\n      return _keyIndicators.DashboardKeyIndicators;\n    }\n  });\n  Object.defineProperty(_exports, \"DashboardOverview\", {\n    enumerable: true,\n    get: function get() {\n      return _overview.DashboardOverview;\n    }\n  });\n});","define(\"additive-mc/mirage/routes/dashboard/key-indicators\", [\"exports\", \"date-fns\"], function (_exports, _dateFns) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.DashboardKeyIndicators = void 0;\n  /*\n   * Gesamtwertschöpfung mit % vergl. zum Vorjahr\n   *\n   * Reservierungen mit % vergl. zum Vorjahr\n   *\n   * Online Konversionen mit % vergl. zum Vorjahr\n   *\n   * Sitzungen mit % vergl. zum Vorjahr\n   *\n   * |||||||||||||||||||||||||\n   * ||                     ||\n   * ||   110               ||\n   * ||                     ||\n   * ||   Reservierungen    ||\n   * ||                     ||\n   * ||   ^36% zum Vorjahr  ||\n   * ||                     ||\n   * |||||||||||||||||||||||||\n   */\n  const DashboardKeyIndicators = self => {\n    self.get('/dashboard/key-indicators', (_, req) => {\n      const {\n        start,\n        end\n      } = req.queryParams;\n      return {\n        valueAdded: {\n          type: 'compare',\n          change: 59.35,\n          current: {\n            value: start ? Math.random() * 30000 : 335074.68,\n            type: 'yearly',\n            date: end ? (0, _dateFns.getYear)(end) : 2019\n          },\n          compare: {\n            value: 210271.76,\n            type: 'yearly',\n            date: end ? (0, _dateFns.getYear)(end) - 1 : 2019\n          }\n        },\n        reservations: {\n          type: 'compare',\n          change: 25,\n          current: {\n            value: start ? Math.floor(Math.random() * 200) : 25,\n            type: 'yearly',\n            date: end ? (0, _dateFns.getYear)(end) : 2019\n          },\n          compare: {\n            value: 100,\n            type: 'yearly',\n            date: end ? (0, _dateFns.getYear)(end) - 1 : 2019\n          }\n        },\n        conversions: {\n          type: 'compare',\n          change: 4.19,\n          current: {\n            value: start ? Math.floor(Math.random() * 2000) : 25,\n            type: 'yearly',\n            date: end ? (0, _dateFns.getYear)(end) : 2019\n          },\n          compare: {\n            value: 1274,\n            type: 'yearly',\n            date: end ? (0, _dateFns.getYear)(end) - 1 : 2019\n          }\n        },\n        sessions: {\n          type: 'compare',\n          change: 32.63,\n          current: {\n            value: start ? Math.floor(Math.random() * 6000) : 25,\n            type: 'yearly',\n            date: end ? (0, _dateFns.getYear)(end) : 2019\n          },\n          compare: {\n            value: 6985,\n            type: 'yearly',\n            date: end ? (0, _dateFns.getYear)(end) - 1 : 2019\n          }\n        }\n      };\n    });\n  };\n  _exports.DashboardKeyIndicators = DashboardKeyIndicators;\n});","define(\"additive-mc/mirage/routes/dashboard/overview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.DashboardOverview = void 0;\n  const DashboardOverview = self => {\n    self.get('/dashboard/filters', () => {\n      return [{\n        name: 'Letzte 12 Monate',\n        value: 'last_12_months',\n        start: '2023-09-01',\n        end: '2024-08-27'\n      }, {\n        name: 'Letzte 30 Tage',\n        value: 'last_30_days',\n        start: '2024-07-29',\n        end: '2024-08-27'\n      }, {\n        name: '2024',\n        value: '2024',\n        start: '2024-01-01',\n        end: '2024-08-27'\n      }, {\n        name: '2023',\n        value: '2023',\n        start: '2023-01-01',\n        end: '2023-12-31'\n      }, {\n        name: '2022',\n        value: '2022',\n        start: '2022-01-01',\n        end: '2022-12-31'\n      }, {\n        name: 'Laufzeit',\n        value: 'runtime',\n        start: null,\n        end: '2024-08-27'\n      }];\n    });\n    self.get('/dashboard/overview', () => {\n      return [{\n        header: 'Gäste-Lifecycle E-Mails',\n        link: 'https://additive-mc-mocked.firebaseapp.com/testhotel-post-com/campaigns/email',\n        totalCount: 4,\n        activeCount: 1,\n        text: '1 von 4 Kampagnen aktiv',\n        campaigns: [{\n          type: 'usecase1',\n          name: 'OTA zu Direktbucher umwandeln',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/email/1198',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'usecase2a',\n          name: 'Reaktivierung Anfrager ohne Buchung',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/email/1199',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'usecase2b',\n          name: 'Reaktivierung verlorene Gäste',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/email/1200',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'usecase4',\n          name: 'Upselling Gäste/Stammgäste für Zweitaufenthalt',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/email/1202',\n          state: {\n            code: 'incomplete',\n            message: 'Nicht alle aktiven Serien Schritte haben aktivierte E-Mails'\n          }\n        }]\n      }, {\n        header: 'Anzeigen',\n        link: 'https://www.additive-apps.eu/apps/marketing-cloud.html#form-overlay',\n        totalCount: 0,\n        activeCount: 0,\n        text: 'Upgrade notwendig um Anzeigen verwenden zu können.',\n        campaigns: []\n      }, {\n        header: 'Soziale Netzwerke',\n        link: 'https://additive-mc-mocked.firebaseapp.com/testhotel-post-com/campaigns/social',\n        totalCount: 3,\n        activeCount: 0,\n        text: 'Noch keine Kampagne eingerichtet',\n        campaigns: []\n      }, {\n        header: 'E-Mail Automation',\n        link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email',\n        totalCount: 2,\n        activeCount: 2,\n        text: '2 von 2 Kampagnen aktiv.',\n        campaigns: [{\n          type: 'trigger-campaign',\n          name: 'test2',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email/1350',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'trigger-campaign',\n          name: 'Trigger Kampagne',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email/1323',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'lead-email',\n          name: 'Neue Lead Kampagne',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email/1347',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'trigger-campaign',\n          name: 'test',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email/1344',\n          state: {\n            code: 'active',\n            message: null\n          }\n        }, {\n          type: 'lead-email',\n          name: 'Lead E-Mail Kampagne',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email/1230',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'lead-email',\n          name: 'test',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email/1326',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'lead-email',\n          name: 'Lead Campaign',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email/1349',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'trigger-campaign',\n          name: 'Hello World',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email/1328',\n          state: {\n            code: 'active',\n            message: null\n          }\n        }, {\n          type: 'trigger-campaign',\n          name: 'test',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email/1346',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'trigger-campaign',\n          name: 'Qifsha ropt',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email/1327',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'trigger-campaign',\n          name: 'Hello',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email/1324',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'trigger-campaign',\n          name: 'Neue Trigger Kampagne',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email/1348',\n          state: {\n            code: 'incomplete',\n            message: 'Nicht alle Serien Schritte aktiver E-Mails sind aktiviert'\n          }\n        }, {\n          type: 'trigger-campaign',\n          name: 'Test',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email/1325',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'lead-email',\n          name: 'Simons State Test',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/trigger-email/1352',\n          state: {\n            code: 'active',\n            message: null\n          }\n        }]\n      }, {\n        header: 'On-Page',\n        link: 'https://additive-mc-mocked.firebaseapp.com/testhotel-post-com/campaigns/on-page',\n        totalCount: 2,\n        activeCount: 2,\n        text: '2 von 2 Kampagnen-Typen aktiv',\n        campaigns: [{\n          type: 'on-page-lead',\n          name: 'asdasd',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/on-page/1245',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'on-page-incentive',\n          name: 'gutscheini',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/on-page/1247',\n          state: {\n            code: 'active',\n            message: null\n          }\n        }, {\n          type: 'on-page-lead',\n          name: 'On-Page Lead Campaign',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/on-page/1242',\n          state: {\n            code: 'active',\n            message: null\n          }\n        }, {\n          type: 'on-page-lead',\n          name: 'test',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/belvedere-hotel-it/campaigns/on-page/1319',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }]\n      }, {\n        header: 'Weiterempfehlung',\n        link: 'https://additive-mc-mocked.firebaseapp.com/testhotel-post-com/campaigns/referral',\n        totalCount: 3,\n        activeCount: 1,\n        text: '1 von 3 Kampagnen-Typen aktiv',\n        campaigns: [{\n          type: 'referral-lead',\n          name: 'testtest',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/testhotel-post-com/campaigns/referral/1247',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }, {\n          type: 'referral-lead',\n          name: 'test1',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/testhotel-post-com/campaigns/referral/1247',\n          state: {\n            code: 'active',\n            message: null\n          }\n        }, {\n          type: 'referral-lead',\n          name: 'test2',\n          link: 'https://staging.marketing-cloud.additive-apps.eu/testhotel-post-com/campaigns/referral/1247',\n          state: {\n            code: 'deactivated',\n            message: null\n          }\n        }]\n      }];\n    });\n  };\n  _exports.DashboardOverview = DashboardOverview;\n});","define(\"additive-mc/mirage/routes/helpers/response\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.notFoundResponse = void 0;\n  const notFoundResponse = _exports.notFoundResponse = function notFoundResponse() {\n    let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    let headers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    return (0, _emberCliMirage.Response)(404, headers, body);\n  };\n});","define(\"additive-mc/mirage/routes/preview/email-preview-html\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.EmailPreview = void 0;\n  const EmailPreview = _exports.EmailPreview = `<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:v=\"urn:schemas-microsoft-com:vml\"\n  xmlns:o=\"urn:schemas-microsoft-com:office:office\"\n  style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; margin: 0 auto !important; padding: 0 !important; height: 100% !important; width: 100% !important; font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;\">\n\n  <head style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n    <meta charset=\"utf-8\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n    <!-- utf-8 works for most cases -->\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\"\n      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"\n      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n    <!-- Use the latest (edge) version of IE rendering engine -->\n    <meta name=\"x-apple-disable-message-reformatting\"\n      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n    <!-- Disable auto-scale in iOS 10 Mail entirely -->\n    <meta name=\"format-detection\" content=\"telephone=no\"\n      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n    <meta name=\"format-detection\" content=\"date=no\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n    <meta name=\"format-detection\" content=\"address=no\"\n      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n    <meta name=\"format-detection\" content=\"email=no\"\n      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n    <title style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\"></title>\n    <style style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n      /* What it does: Remove spaces around the email design added by some email clients. */\n      /* Beware: It can remove the padding / margin and add a background color to the compose a reply window. */\n      html,\n      body {\n        margin: 0 auto !important;\n        padding: 0 !important;\n        height: 100% !important;\n        width: 100% !important;\n        font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;\n      }\n\n      h1 {\n        font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;\n        font-size: 32px;\n        line-height: 40px;\n        color: #575757;\n        font-weight: 600;\n      }\n\n      h2,\n      p,\n      .table .table-entry {\n        font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;\n        font-size: 18px;\n        line-height: 24px;\n      }\n\n      h2,\n      p {\n        color: #575757;\n      }\n\n      h2 {\n        font-weight: 600;\n      }\n\n      .label {\n        font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;\n        font-size: 11px;\n        line-height: 16px;\n        color: #575757;\n      }\n\n      .light {\n        color: #ababab;\n      }\n\n      .semi-light {\n        color: #8a8a8a;\n      }\n\n\n      .button a {\n        font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;\n      }\n\n      /* What it does: Stops email clients resizing small text. */\n      * {\n        -ms-text-size-adjust: 100%;\n        -webkit-text-size-adjust: 100%;\n      }\n\n      /* What it does: Centers email on Android 4.4 */\n      div[style*=\"margin: 16px 0\"] {\n        margin: 0 !important;\n      }\n\n      /* What it does: Stops Outlook from adding extra spacing to tables. */\n      table,\n      td {\n        mso-table-lspace: 0pt !important;\n        mso-table-rspace: 0pt !important;\n        border-collapse: collapse !important;\n      }\n\n      /* What it does: Fixes webkit padding issue. Fix for Yahoo mail table alignment bug. Applies table-layout to the first 2 tables then removes for anything nested deeper. */\n      table {\n        border-spacing: 0 !important;\n        border-collapse: collapse !important;\n        table-layout: fixed !important;\n        margin: 0 auto !important;\n      }\n\n      table table table {\n        table-layout: auto;\n      }\n\n      /* What it does: Uses a better rendering method when resizing images in IE. */\n      img {\n        -ms-interpolation-mode: bicubic;\n      }\n\n      /* What it does: A work-around for iOS meddling in triggered links. */\n      *[x-apple-data-detectors] {\n        color: inherit !important;\n        text-decoration: none !important;\n      }\n\n      /* What it does: A work-around for Gmail meddling in triggered links. */\n      .x-gmail-data-detectors,\n      .x-gmail-data-detectors *,\n      .aBn {\n        border-bottom: 0 !important;\n        cursor: default !important;\n      }\n\n      /* What it does: Prevents Gmail from displaying an download button on large, non-linked images. */\n      .a6S {\n        display: none !important;\n        opacity: 0.01 !important;\n      }\n\n      /* If the above doesn't work, add a .g-img class to any image in question. */\n      img.g-img+div {\n        display: none !important;\n      }\n\n      ol,\n      ul {\n        margin-top: 0;\n        margin-bottom: 10px;\n      }\n\n      p[style] a {\n        color: #9E8D7E;\n        text-decoration: underline;\n      }\n\n      .button:hover,\n      p a:hover {\n        opacity: 0.8;\n      }\n\n      /* What it does: Removes right gutter in Gmail iOS app: https://github.com/TedGoas/Cerberus/issues/89  */\n      /* Create one of these media queries for each additional viewport size you'd like to fix */\n      /* Thanks to Eric Lepetit @ericlepetitsf) for help troubleshooting */\n      @media only screen and (min-device-width: 375px) and (max-device-width: 413px) {\n\n        /* iPhone 6 and 6+ */\n        .wrapper {\n          min-width: 375px !important;\n        }\n      }\n\n      @media only screen and (max-width: 600px) {\n        .content {\n          width: 100%;\n          max-width: 600px;\n        }\n\n        .content-cell {\n          padding: 0 24px !important;\n        }\n\n        .space-md td {\n          height: 32px !important;\n        }\n\n        .space-xl td {\n          height: 48px !important;\n        }\n\n        h1 {\n          font-size: 24px !important;\n          line-height: 28px !important;\n        }\n\n        h2 {\n          font-size: 16px !important;\n          line-height: 22px !important;\n        }\n\n        .body p {\n          font-size: 16px !important;\n          line-height: 22px !important;\n        }\n\n        .body img {\n          width: 100% !important;\n          height: auto !important;\n        }\n\n        .action+p {\n          padding-top: 32px !important;\n        }\n\n        .button {\n          padding: 14px 18px !important;\n        }\n      }\n    </style>\n    <!--[if gte mso 9]>\n    <style>\n        @-ms-viewport{\n            width: 600px;\n            width: 600px !important;\n        }\n    </style>\n    <![endif]-->\n    <!--[if gte mso 9]>\n    <xml>\n        <o:OfficeDocumentSettings>\n            <o:AllowPNG/>\n            <o:PixelsPerInch>96</o:PixelsPerInch>\n        </o:OfficeDocumentSettings>\n    </xml>\n    <![endif]-->\n  </head>\n\n  <body width=\"100%\"\n    style=\"-ms-text-size-adjust: 100%; margin: 0 auto !important; padding: 0 !important; height: 100% !important; font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; hyphens: auto; font-size: 18px; line-height: 24px; -moz-hyphens: auto; -ms-word-break: break-all; width: 100% !important; -webkit-hyphens: auto; -webkit-text-size-adjust: none; word-break: break-word; mso-line-height-rule: exactly; background-color: #FFFFFF; color: #575757;\">\n    <!-- work around for Windows Mail -->\n    <!--[if gte mso 9]>\n    <table width=\"100%\" align=\"center\" bgcolor=\"#FFFFFF\" role=\"presentation\" aria-hidden=\"true\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background-color:#FFFFFF;\">\n        <tr>\n            <td align=\"center\" valign=\"top\">\n    <![endif]-->\n    <table class=\"wrapper\" width=\"100%\" bgcolor=\"#FFFFFF\" cellpadding=\"0\" cellspacing=\"0\"\n      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; padding: 0; width: 100%;\">\n      <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n        <td width=\"100%\" align=\"center\"\n          style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important;\">\n          <table class=\"content\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"\n            style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; padding: 0;\">\n            <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n              <td class=\"full-width\" width=\"100%\" align=\"center\"\n                style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; width: 100%; max-width: 600px;\">\n                <table class=\"space space-md full-width\" align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"\n                  style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; padding: 0; width: 100%; max-width: 600px;\">\n                  <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                    <td height=\"40\" bgcolor=\"\"\n                      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; height: 40px; font-size: 1px; line-height: 1px;\">\n                       </td>\n                  </tr>\n                </table>\n                <table class=\"header full-width\" width=\"600\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\"\n                  style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; width: 100%; max-width: 600px;\">\n                  <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                    <td height=\"8\"\n                      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; height: 8px;\">\n                    </td>\n                  </tr>\n                  <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                    <td class=\"content-cell\" align=\"left\"\n                      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; width: 100%; padding: 0 32px; max-width: 600px; box-sizing: border-box;\">\n                      <img\n                        src=\"https://additive-account.herokuapp.com/api/redirect?destination=aHR0cHM6Ly9hZGRpdGl2ZS1hY2NvdW50LnMzLmV1LWNlbnRyYWwtMS5hbWF6b25hd3MuY29tL29yZ2FuaXphdGlvbnMvNjgyMi9sYXlvdXQtbG9nby0yMjB4MTEwP3RzPTE1NzQ3ODU5NDY=&amp;ts=1574785946\"\n                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; -ms-interpolation-mode: bicubic; max-width: 220px; max-height: 88px;\">\n                    </td>\n                  </tr>\n                  <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                    <td height=\"8\"\n                      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; height: 8px;\">\n                    </td>\n                  </tr>\n                </table>\n                <table class=\"space space-xl full-width\" align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"\n                  style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; padding: 0; width: 100%; max-width: 600px;\">\n                  <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                    <td height=\"56\" bgcolor=\"\"\n                      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; height: 56px; font-size: 1px; line-height: 1px;\">\n                       </td>\n                  </tr>\n                </table>\n                <!-- Email Body -->\n                <table class=\"full-width\" width=\"100%\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"\n                  style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; width: 100%; max-width: 600px;\">\n                  <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                    <td class=\"body full-width\" width=\"600\" align=\"center\"\n                      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; width: 100%; max-width: 600px; margin: 0; padding: 0;\">\n                      <table class=\"inner-body full-width\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"\n                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; width: 100%; max-width: 600px;\">\n                        <!-- Body content -->\n                        <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                          <td align=\"center\"\n                            style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important;\">\n                            <table width=\"100%\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"\n                              style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important;\">\n                              <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                                <td class=\"content-cell\"\n                                  style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; width: 100%; padding: 0 32px; max-width: 600px; box-sizing: border-box;\">\n                                  <h1\n                                    style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; font-size: 32px; line-height: 40px; color: #575757; font-weight: 600; margin: 0;\">\n                                    Beispieltext</h1>\n                                  <table class=\"space space-md full-width\" align=\"left\" border=\"0\" cellpadding=\"0\"\n                                    cellspacing=\"0\"\n                                    style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; padding: 0; width: 100%; max-width: 600px;\">\n                                    <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                                      <td height=\"40\" bgcolor=\"\"\n                                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; height: 40px; font-size: 1px; line-height: 1px;\">\n                                         </td>\n                                    </tr>\n                                  </table>\n                                  <p\n                                    style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; font-size: 18px; line-height: 24px; color: #575757; margin: 0 !important; padding: 0 !important;\">\n                                    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh\n                                    euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.<br\n                                      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\"> Duis autem\n                                    vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel\n                                    illum dolore eu feugiat nulla facilisis at vero et accumsan et iusto.</p>\n                                  <table class=\"space space-md full-width\" align=\"left\" border=\"0\" cellpadding=\"0\"\n                                    cellspacing=\"0\"\n                                    style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; padding: 0; width: 100%; max-width: 600px;\">\n                                    <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                                      <td height=\"40\" bgcolor=\"\"\n                                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; height: 40px; font-size: 1px; line-height: 1px;\">\n                                         </td>\n                                    </tr>\n                                  </table>\n                                  <table class=\"action\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"\n                                    style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; padding: 0; width: 100%;\">\n                                    <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                                      <td align=\"left\"\n                                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important;\">\n                                        <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"\n                                          style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important;\">\n                                          <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                                            <td\n                                              style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important;\">\n                                              <a class=\"button\" href=\"http://www.testhotel-post.com\" target=\"_blank\"\n                                                style=\"-ms-text-size-adjust: 100%; display: inline-block; padding: 18px 22px; text-decoration: none; -webkit-text-size-adjust: none; border-radius: 2px; box-shadow: 0 1px 3px 0 rgba(0,0,0,0.2); box-sizing: border-box; white-space: nowrap; transition: 0.3s; -webkit-transition: 0.3s; font-size: 14px; line-height: 20px; color: #ffffff; background: #967E6E;\">\n                                                <!--[if mso]>&nbsp;&nbsp;<![endif]-->Zur Internetseite\n                                                <!--[if mso]>&nbsp;&nbsp;<![endif]-->\n                                              </a>\n                                            </td>\n                                          </tr>\n                                        </table>\n                                      </td>\n                                    </tr>\n                                  </table>\n                                </td>\n                              </tr>\n                            </table>\n                          </td>\n                        </tr>\n                      </table>\n                      <table class=\"space space-xl full-width\" align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"\n                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; padding: 0; width: 100%; max-width: 600px;\">\n                        <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                          <td height=\"56\" bgcolor=\"\"\n                            style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; height: 56px; font-size: 1px; line-height: 1px;\">\n                             </td>\n                        </tr>\n                      </table>\n                    </td>\n                  </tr>\n                </table>\n                <table class=\"footer full-width\" width=\"600\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\"\n                  style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; width: 100%; max-width: 600px;\">\n                  <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                    <td class=\"content-cell\" align=\"left\"\n                      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; width: 100%; padding: 0 32px; max-width: 600px; box-sizing: border-box;\">\n                      <table class=\"space space-line full-width\" align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"\n                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; padding: 0; width: 100%; max-width: 600px;\">\n                        <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                          <td height=\"1\" bgcolor=\"#efefef\"\n                            style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; height: 1px; font-size: 1px; line-height: 1px;\">\n                             </td>\n                        </tr>\n                      </table>\n                      <table class=\"space space-md full-width\" align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"\n                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; padding: 0; width: 100%; max-width: 600px;\">\n                        <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                          <td height=\"40\" bgcolor=\"\"\n                            style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; height: 40px; font-size: 1px; line-height: 1px;\">\n                             </td>\n                        </tr>\n                      </table>\n                      <table class=\"organization-data\" width=\"100%\" align=\"left\" border=\"0\" cellpadding=\"0\"\n                        cellspacing=\"0\"\n                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important;\">\n                        <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                          <td\n                            style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important;\">\n                            <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"\n                              style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important;\">\n                              <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                                <td\n                                  style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important;\">\n                                  <table class=\"label\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"\n                                    style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; font-size: 11px; line-height: 16px; color: #575757;\">\n                                    <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                                      <td\n                                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important;\">\n                                        Testhotel Post</td>\n                                    </tr>\n                                    <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                                      <td\n                                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important;\">\n                                        0473 538800</td>\n                                    </tr>\n                                    <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                                      <td\n                                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important;\">\n                                        dev@additive-apps.eu</td>\n                                    </tr>\n                                  </table>\n                                </td>\n                                <td width=\"56\"\n                                  style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; width: 56px;\">\n                                </td>\n                                <td\n                                  style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important;\">\n                                  <table class=\"label light\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"\n                                    style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; font-size: 11px; line-height: 16px; color: #ababab;\">\n                                    <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                                      <td\n                                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important;\">\n                                        Industriezone 1/5</td>\n                                    </tr>\n                                    <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                                      <td\n                                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important;\">\n                                        39011 Lana</td>\n                                    </tr>\n                                    <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                                      <td\n                                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important;\">\n                                        Südtirol / IT</td>\n                                    </tr>\n                                  </table>\n                                </td>\n                              </tr>\n                            </table>\n                          </td>\n                        </tr>\n                      </table>\n                      <table class=\"space space-sm full-width\" align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"\n                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; padding: 0; width: 100%; max-width: 600px;\">\n                        <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                          <td height=\"24\" bgcolor=\"\"\n                            style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; height: 24px; font-size: 1px; line-height: 1px;\">\n                             </td>\n                        </tr>\n                      </table>\n                      <table class=\"conclusion full-width\" width=\"600\" align=\"left\" border=\"0\" cellpadding=\"0\"\n                        cellspacing=\"0\"\n                        style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; width: 100%; max-width: 600px;\">\n                        <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                          <td\n                            style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important;\">\n                            <div class=\"label light\"\n                              style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; font-size: 11px; line-height: 16px; color: #ababab;\">\n                              powered by</div>\n                            <img src=\"https://additive-account.herokuapp.com/assets/images/additive-apps-logo.png\"\n                              height=\"15\"\n                              style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; max-width: 100%; -ms-interpolation-mode: bicubic; width: auto; height: 15px;\">\n                          </td>\n                        </tr>\n                      </table>\n                    </td>\n                  </tr>\n                </table>\n                <table class=\"space space-md full-width\" align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"\n                  style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; padding: 0; width: 100%; max-width: 600px;\">\n                  <tr style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n                    <td height=\"40\" bgcolor=\"\"\n                      style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; border-collapse: collapse !important; height: 40px; font-size: 1px; line-height: 1px;\">\n                       </td>\n                  </tr>\n                </table>\n              </td>\n            </tr>\n          </table>\n        </td>\n      </tr>\n    </table>\n    <!--[if gte mso 9]>\n            </td>\n        </tr>\n    </table>\n    <![endif]-->\n  </body>\n</html>`;\n});","define(\"additive-mc/mirage/routes/preview/email-preview\", [\"exports\", \"additive-mc/mirage/routes/helpers/response\", \"additive-mc/mirage/routes/preview/email-preview-html\", \"faker\"], function (_exports, _response, _emailPreviewHtml, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.EmailPreviewRequests = void 0;\n  const _splitArrayIntoChunks = (array, len) => {\n    let res = [];\n    for (let i = 0; i < array.length; i += len) {\n      let chunk = array.slice(i, i + len);\n      res.push(chunk);\n    }\n    return res;\n  };\n  const paginate = (all, request) => {\n    let {\n      queryParams: {\n        page: currentPage,\n        per_page: perPage\n      }\n    } = request;\n    currentPage = parseInt(currentPage);\n    perPage = parseInt(perPage);\n    let pages = _splitArrayIntoChunks(all, perPage);\n    let models = pages[currentPage - 1] || [];\n    let lastPage = pages.length;\n    let total = all.length;\n    let meta = {\n      currentPage,\n      lastPage,\n      perPage,\n      // from,\n      // to,\n      total\n    };\n    return {\n      meta,\n      models\n    };\n  };\n  const EmailPreviewRequests = self => {\n    self.get('/preview/email-campaigns/:id', (schema, request) => {\n      const {\n        id\n      } = request.params;\n      const model = schema.emailPreviews.find(id);\n      if (!model) {\n        throw new Error('not_found');\n      }\n      return model;\n    });\n    self.get('/preview/email-campaigns/:id/subscribers', (schema, request) => {\n      let data = schema.subscribers.all();\n      let {\n        models: subscribers,\n        meta\n      } = paginate(data.models, request);\n      return {\n        subscribers,\n        meta\n      };\n    });\n    self.put('/preview/email-campaigns/:id/subscribers/:subscriber_id/block', (schema, request) => {\n      try {\n        const model = subscriberOrFail(schema, request);\n        return model.update('state', 'blocked');\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/preview/email-campaigns/:id/subscribers/:subscriber_id/unblock', (schema, request) => {\n      try {\n        const model = subscriberOrFail(schema, request);\n\n        // set random state as we can't know the previous state\n        return model.update('state', _faker.default.random.arrayElement(['canceled', 'incomplete', 'ready', 'sent']));\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.put('/preview/email-campaigns/:id/subscribers/:subscriber_id/cancel', (schema, request) => {\n      try {\n        const model = subscriberOrFail(schema, request);\n        return model.update('state', 'canceled');\n      } catch (error) {\n        return (0, _response.notFoundResponse)(error);\n      }\n    });\n    self.get('/preview/email-campaigns/:id/subscribers/:subscriber_id/html', (schema, request) => {\n      subscriberOrFail(schema, request);\n      return _emailPreviewHtml.EmailPreview;\n    });\n  };\n  _exports.EmailPreviewRequests = EmailPreviewRequests;\n  const subscriberOrFail = (schema, request) => {\n    const {\n      subscriber_id\n    } = request.params;\n    const model = schema.subscribers.find(subscriber_id);\n    if (!model) {\n      throw new Error('not_found');\n    }\n    return model;\n  };\n});","define(\"additive-mc/mirage/routes/preview/index\", [\"exports\", \"additive-mc/mirage/routes/preview/overview\", \"additive-mc/mirage/routes/preview/email-preview\"], function (_exports, _overview, _emailPreview) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"EmailPreviewRequests\", {\n    enumerable: true,\n    get: function get() {\n      return _emailPreview.EmailPreviewRequests;\n    }\n  });\n  Object.defineProperty(_exports, \"OverviewRequests\", {\n    enumerable: true,\n    get: function get() {\n      return _overview.OverviewRequests;\n    }\n  });\n});","define(\"additive-mc/mirage/routes/preview/overview\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.OverviewRequests = void 0;\n  const OverviewRequests = self => {\n    self.get('/preview/email-campaigns', schema => {\n      let data = schema.emailPreviews.all();\n      return data;\n    });\n    self.get('/preview/ad-campaigns', schema => {\n      let data = schema.adPreviews.all();\n      return data;\n    });\n  };\n  _exports.OverviewRequests = OverviewRequests;\n});","define(\"additive-mc/mirage/routes/reports/ad\", [\"exports\", \"faker\"], function (_exports, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.AdReportsTiktokLeadAdMetrics = _exports.AdReportsReservations = _exports.AdReportsReservationTable = _exports.AdReportsPastMarketingActions = _exports.AdReportsOverall = _exports.AdReportsMetrics = _exports.AdReportsLeadAdMetrics = _exports.AdReportsKeyIndicators = _exports.AdReportsConversions = void 0;\n  const AdReportsOverall = self => {\n    self.get('/reports/ad', schema => {\n      return {\n        metrics: {\n          impressions: {\n            type: 'compare',\n            change: -1,\n            current: {\n              value: 354249.0,\n              type: 'yearly',\n              date: 2024\n            },\n            compare: {\n              value: 360519.0,\n              type: 'yearly',\n              date: 2023\n            },\n            format: null,\n            currency: null\n          },\n          clicks: {\n            type: 'compare',\n            change: 93,\n            current: {\n              value: 13652.0,\n              type: 'yearly',\n              date: 2024\n            },\n            compare: {\n              value: 7053.0,\n              type: 'yearly',\n              date: 2023\n            },\n            format: null,\n            currency: null\n          },\n          adSpend: {\n            type: 'compare',\n            change: 41,\n            current: {\n              value: 409770.0,\n              type: 'yearly',\n              date: 2024\n            },\n            compare: {\n              value: 289948.0,\n              type: 'yearly',\n              date: 2023\n            },\n            format: 'currency_cent',\n            currency: 'EUR'\n          }\n        }\n      };\n    });\n  };\n  _exports.AdReportsOverall = AdReportsOverall;\n  const AdReportsKeyIndicators = self => {\n    self.get('/reports/ad/key-indicators', () => {\n      return {\n        valueAddedSum: {\n          type: 'compare',\n          change: 32,\n          current: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        valueAdded: {\n          type: 'compare',\n          change: 59.35,\n          current: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        turnover: {\n          type: 'compare',\n          change: 25,\n          current: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2018\n          }\n        }\n      };\n    });\n  };\n  _exports.AdReportsKeyIndicators = AdReportsKeyIndicators;\n  const AdReportsReservations = self => {\n    self.get('/reports/ad/reservations', () => {\n      return {\n        reservations: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        newGuests: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        reactivatedGuests: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        returningGuests: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        }\n      };\n    });\n  };\n  _exports.AdReportsReservations = AdReportsReservations;\n  const AdReportsConversions = self => {\n    self.get('/reports/ad/conversions', () => {\n      return {\n        conversions: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        enquiries: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        newsletterSubscriptions: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        vouchers: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        bookings: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        other: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        }\n      };\n    });\n  };\n  _exports.AdReportsConversions = AdReportsConversions;\n  const AdReportsMetrics = self => {\n    self.get('/reports/ad/metrics', schema => {\n      return {\n        metrics: {\n          ads: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          impressions: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          clicks: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          conversionPrice: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          }\n        },\n        campaigns: schema.reportsAds.all()\n      };\n    });\n  };\n  _exports.AdReportsMetrics = AdReportsMetrics;\n  const AdReportsPastMarketingActions = self => {\n    self.get('/reports/ad/past-marketing-actions', schema => {\n      return schema.adPastMarketingActions.all();\n    });\n  };\n  _exports.AdReportsPastMarketingActions = AdReportsPastMarketingActions;\n  const AdReportsLeadAdMetrics = self => {\n    self.get('/reports/ad/lead-ad-metrics', schema => {\n      return {\n        metrics: {\n          ads: {\n            type: 'compare',\n            change: 0,\n            current: {\n              value: 1,\n              type: 'yearly',\n              date: 2024\n            },\n            compare: {\n              value: 1,\n              type: 'yearly',\n              date: 2023\n            },\n            format: null,\n            currency: null\n          },\n          clicks: {\n            type: 'compare',\n            change: 387,\n            current: {\n              value: 2738,\n              type: 'yearly',\n              date: 2024\n            },\n            compare: {\n              value: 562,\n              type: 'yearly',\n              date: 2023\n            },\n            format: null,\n            currency: null\n          },\n          impressions: {\n            type: 'compare',\n            change: 190,\n            current: {\n              value: 77641,\n              type: 'yearly',\n              date: 2024\n            },\n            compare: {\n              value: 26739,\n              type: 'yearly',\n              date: 2023\n            },\n            format: null,\n            currency: null\n          },\n          leadPrice: {\n            type: 'compare',\n            change: 46,\n            current: {\n              value: 448.68932038834953,\n              type: 'yearly',\n              date: 2024\n            },\n            compare: {\n              value: 307.03960396039605,\n              type: 'yearly',\n              date: 2023\n            },\n            format: null,\n            currency: null\n          }\n        },\n        campaigns: {\n          modelName: 'reports-ad',\n          models: [{\n            id: '23850730614680720',\n            clicks: 2738,\n            spend: {\n              value: 92430.0,\n              format: 'currency_cent',\n              currency: 'EUR'\n            },\n            impressions: 77641,\n            conversions: 0,\n            publishDate: '2022-07-01T04:00:00.000Z',\n            stopDate: '2023-12-31T21:00:00.000Z',\n            reservations: 0,\n            type: 'FacebookLeadAd',\n            conversionPrice: 0,\n            campaign: 'MA_FEUERSTEIN-INFO_LEAD_LEAD-ADS',\n            ads: 6,\n            leads: 206\n          }]\n        }\n      };\n    });\n  };\n  _exports.AdReportsLeadAdMetrics = AdReportsLeadAdMetrics;\n  const AdReportsTiktokLeadAdMetrics = self => {\n    self.get('/reports/ad/tik-tok-lead-ad-metrics', schema => {\n      return {\n        metrics: {\n          ads: {\n            type: 'compare',\n            change: 20,\n            current: {\n              value: 1,\n              type: 'yearly',\n              date: 2024\n            },\n            compare: {\n              value: 1,\n              type: 'yearly',\n              date: 2023\n            },\n            format: null,\n            currency: null\n          },\n          clicks: {\n            type: 'compare',\n            change: -100,\n            current: {\n              value: 0.0,\n              type: 'yearly',\n              date: 2024\n            },\n            compare: {\n              value: 670.0,\n              type: 'yearly',\n              date: 2023\n            },\n            format: null,\n            currency: null\n          },\n          impressions: {\n            type: 'compare',\n            change: -100,\n            current: {\n              value: 0.0,\n              type: 'yearly',\n              date: 2024\n            },\n            compare: {\n              value: 122391.0,\n              type: 'yearly',\n              date: 2023\n            },\n            format: null,\n            currency: null\n          },\n          leadPrice: {\n            type: 'compare',\n            change: -100,\n            current: {\n              value: 0,\n              type: 'yearly',\n              date: 2024\n            },\n            compare: {\n              value: 911.9696969696969,\n              type: 'yearly',\n              date: 2023\n            },\n            format: null,\n            currency: null\n          }\n        },\n        campaigns: {\n          modelName: 'reports-ad',\n          models: [{\n            id: '1764862080802865',\n            clicks: 32.47,\n            spend: {\n              value: 67.89,\n              format: 'currency_cent',\n              currency: 'EUR'\n            },\n            impressions: 58.24,\n            conversions: 12.34,\n            publishDate: '2023-05-03T15:00:00.000Z',\n            stopDate: '2024-12-31T21:00:00.000Z',\n            reservations: 84,\n            type: 'TikTokLeadAd',\n            conversionPrice: 73,\n            campaign: 'MA_FEUERSTEIN-INFO_LEAD_TIK-TOK-LEAD-ADS',\n            ads: 5,\n            leads: 61\n          }]\n        }\n      };\n    });\n  };\n  _exports.AdReportsTiktokLeadAdMetrics = AdReportsTiktokLeadAdMetrics;\n  const AdReportsReservationTable = self => {\n    self.get('/reports/ad/reservations-table', (_, req) => {\n      const {\n        start,\n        end\n      } = req.queryParams;\n      const data = [];\n      for (let i = 0; i < 20; i++) {\n        data.push([{\n          value: _faker.default.name.findName(),\n          link: 'https://google.com',\n          format: 'custom',\n          customKey: 'name'\n        }, 'Neue Reservierung', {\n          value: _faker.default.date.past(),\n          format: 'date'\n        }, {\n          value: _faker.default.random.number(),\n          format: 'currency_cent'\n        }, {\n          value: {\n            start: _faker.default.date.between(start, end),\n            end: _faker.default.date.between(start, end)\n          },\n          format: 'custom',\n          customKey: 'range'\n        }, '3 Erw. 2 Kinder', _faker.default.name.findName()]);\n      }\n      return {\n        labels: ['Reservierende Person', 'Typ', 'Reservierungsdatum', 'Res.-Umsatz', 'Aufenthalt', 'Reisegruppe', 'Kampagne'],\n        data\n      };\n    });\n  };\n  _exports.AdReportsReservationTable = AdReportsReservationTable;\n});","define(\"additive-mc/mirage/routes/reports/email\", [\"exports\", \"faker\"], function (_exports, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.EmailReportsReservations = _exports.EmailReportsReservationTable = _exports.EmailReportsPastMarketingActions = _exports.EmailReportsMetrics = _exports.EmailReportsKeyIndicators = _exports.EmailReportsConversions = void 0;\n  const EmailReportsKeyIndicators = self => {\n    self.get('/reports/email/key-indicators', () => {\n      return {\n        valueAddedSum: {\n          type: 'compare',\n          change: 32,\n          current: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        valueAdded: {\n          type: 'compare',\n          change: 59.35,\n          current: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        turnover: {\n          type: 'compare',\n          change: 25,\n          current: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2018\n          }\n        }\n      };\n    });\n  };\n  _exports.EmailReportsKeyIndicators = EmailReportsKeyIndicators;\n  const EmailReportsReservations = self => {\n    self.get('/reports/email/reservations', () => {\n      return {\n        reservations: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        newGuests: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        reactivatedGuests: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        returningGuests: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        }\n      };\n    });\n  };\n  _exports.EmailReportsReservations = EmailReportsReservations;\n  const EmailReportsConversions = self => {\n    self.get('/reports/email/conversions', () => {\n      return {\n        conversions: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        enquiries: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        newsletterSubscriptions: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        vouchers: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        bookings: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        other: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        }\n      };\n    });\n  };\n  _exports.EmailReportsConversions = EmailReportsConversions;\n  const EmailReportsMetrics = self => {\n    self.get('/reports/email/metrics', schema => {\n      return {\n        metrics: {\n          emails: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          impressions: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019,\n              rate: _faker.default.random.number({\n                min: 10,\n                max: 100\n              })\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          uniqueOpenings: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019,\n              rate: _faker.default.random.number({\n                min: 10,\n                max: 100\n              })\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          clicks: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019,\n              rate: _faker.default.random.number({\n                min: 10,\n                max: 100\n              })\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          uniqueClicks: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019,\n              rate: _faker.default.random.number({\n                min: 10,\n                max: 100\n              })\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          turnoverPerContact: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          valueAddedPerContact: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          contactedPercentage: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number({\n                min: 0,\n                max: 100\n              }),\n              type: 'yearly',\n              date: 2019\n            },\n            compare: {\n              value: _faker.default.random.number({\n                min: 0,\n                max: 100\n              }),\n              type: 'yearly',\n              date: 2018\n            }\n          }\n        },\n        campaigns: schema.reportsEmails.all()\n      };\n    });\n  };\n  _exports.EmailReportsMetrics = EmailReportsMetrics;\n  const EmailReportsPastMarketingActions = self => {\n    self.get('/reports/email/past-marketing-actions', schema => {\n      return schema.emailPastMarketingActions.all();\n    });\n  };\n  _exports.EmailReportsPastMarketingActions = EmailReportsPastMarketingActions;\n  const EmailReportsReservationTable = self => {\n    self.get('/reports/email/reservations-table', (_, req) => {\n      const {\n        start,\n        end\n      } = req.queryParams;\n      const data = [];\n      for (let i = 0; i < 20; i++) {\n        data.push([{\n          value: _faker.default.name.findName(),\n          link: 'https://google.com',\n          format: 'custom',\n          customKey: 'name'\n        }, 'Neue Reservierung', {\n          value: _faker.default.date.past(),\n          format: 'date'\n        }, {\n          value: _faker.default.random.number(),\n          format: 'currency_cent'\n        }, {\n          value: {\n            start: _faker.default.date.between(start, end),\n            end: _faker.default.date.between(start, end)\n          },\n          format: 'custom',\n          customKey: 'range'\n        }, '3 Erw. 2 Kinder', _faker.default.name.findName()]);\n      }\n      return {\n        labels: ['Reservierende Person', 'Typ', 'Reservierungsdatum', 'Res.-Umsatz', 'Aufenthalt', 'Reisegruppe', 'Kampagne'],\n        data\n      };\n    });\n  };\n  _exports.EmailReportsReservationTable = EmailReportsReservationTable;\n});","define(\"additive-mc/mirage/routes/reports/index\", [\"exports\", \"additive-mc/mirage/routes/reports/ad\", \"additive-mc/mirage/routes/reports/onPage\", \"additive-mc/mirage/routes/reports/overview\", \"additive-mc/mirage/routes/reports/social\", \"additive-mc/mirage/routes/reports/email\", \"additive-mc/mirage/routes/reports/leads\"], function (_exports, _ad, _onPage, _overview, _social, _email, _leads) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"AdReportsConversions\", {\n    enumerable: true,\n    get: function get() {\n      return _ad.AdReportsConversions;\n    }\n  });\n  Object.defineProperty(_exports, \"AdReportsFacebookAdMetrics\", {\n    enumerable: true,\n    get: function get() {\n      return _ad.AdReportsFacebookAdMetrics;\n    }\n  });\n  Object.defineProperty(_exports, \"AdReportsKeyIndicators\", {\n    enumerable: true,\n    get: function get() {\n      return _ad.AdReportsKeyIndicators;\n    }\n  });\n  Object.defineProperty(_exports, \"AdReportsLeadAdMetrics\", {\n    enumerable: true,\n    get: function get() {\n      return _ad.AdReportsLeadAdMetrics;\n    }\n  });\n  Object.defineProperty(_exports, \"AdReportsMetrics\", {\n    enumerable: true,\n    get: function get() {\n      return _ad.AdReportsMetrics;\n    }\n  });\n  Object.defineProperty(_exports, \"AdReportsOverall\", {\n    enumerable: true,\n    get: function get() {\n      return _ad.AdReportsOverall;\n    }\n  });\n  Object.defineProperty(_exports, \"AdReportsPastMarketingActions\", {\n    enumerable: true,\n    get: function get() {\n      return _ad.AdReportsPastMarketingActions;\n    }\n  });\n  Object.defineProperty(_exports, \"AdReportsReservationTable\", {\n    enumerable: true,\n    get: function get() {\n      return _ad.AdReportsReservationTable;\n    }\n  });\n  Object.defineProperty(_exports, \"AdReportsReservations\", {\n    enumerable: true,\n    get: function get() {\n      return _ad.AdReportsReservations;\n    }\n  });\n  Object.defineProperty(_exports, \"AdReportsTiktokLeadAdMetrics\", {\n    enumerable: true,\n    get: function get() {\n      return _ad.AdReportsTiktokLeadAdMetrics;\n    }\n  });\n  Object.defineProperty(_exports, \"EmailReportsConversions\", {\n    enumerable: true,\n    get: function get() {\n      return _email.EmailReportsConversions;\n    }\n  });\n  Object.defineProperty(_exports, \"EmailReportsKeyIndicators\", {\n    enumerable: true,\n    get: function get() {\n      return _email.EmailReportsKeyIndicators;\n    }\n  });\n  Object.defineProperty(_exports, \"EmailReportsMetrics\", {\n    enumerable: true,\n    get: function get() {\n      return _email.EmailReportsMetrics;\n    }\n  });\n  Object.defineProperty(_exports, \"EmailReportsPastMarketingActions\", {\n    enumerable: true,\n    get: function get() {\n      return _email.EmailReportsPastMarketingActions;\n    }\n  });\n  Object.defineProperty(_exports, \"EmailReportsReservationTable\", {\n    enumerable: true,\n    get: function get() {\n      return _email.EmailReportsReservationTable;\n    }\n  });\n  Object.defineProperty(_exports, \"EmailReportsReservations\", {\n    enumerable: true,\n    get: function get() {\n      return _email.EmailReportsReservations;\n    }\n  });\n  Object.defineProperty(_exports, \"LeadPerformanceCampaignsInsights\", {\n    enumerable: true,\n    get: function get() {\n      return _leads.LeadPerformanceCampaignsInsights;\n    }\n  });\n  Object.defineProperty(_exports, \"LeadPerformanceChart\", {\n    enumerable: true,\n    get: function get() {\n      return _leads.LeadPerformanceChart;\n    }\n  });\n  Object.defineProperty(_exports, \"LeadPerformanceMetrics\", {\n    enumerable: true,\n    get: function get() {\n      return _leads.LeadPerformanceMetrics;\n    }\n  });\n  Object.defineProperty(_exports, \"OnPageReportKeyIndicators\", {\n    enumerable: true,\n    get: function get() {\n      return _onPage.OnPageReportKeyIndicators;\n    }\n  });\n  Object.defineProperty(_exports, \"ReportsConversions\", {\n    enumerable: true,\n    get: function get() {\n      return _overview.ReportsConversions;\n    }\n  });\n  Object.defineProperty(_exports, \"ReportsKeyIndicators\", {\n    enumerable: true,\n    get: function get() {\n      return _overview.ReportsKeyIndicators;\n    }\n  });\n  Object.defineProperty(_exports, \"ReportsLeadsTable\", {\n    enumerable: true,\n    get: function get() {\n      return _overview.ReportsLeadsTable;\n    }\n  });\n  Object.defineProperty(_exports, \"ReportsOverview\", {\n    enumerable: true,\n    get: function get() {\n      return _overview.ReportsOverview;\n    }\n  });\n  Object.defineProperty(_exports, \"ReportsReservationTable\", {\n    enumerable: true,\n    get: function get() {\n      return _overview.ReportsReservationTable;\n    }\n  });\n  Object.defineProperty(_exports, \"ReportsReservations\", {\n    enumerable: true,\n    get: function get() {\n      return _overview.ReportsReservations;\n    }\n  });\n  Object.defineProperty(_exports, \"ReportsValueAdded\", {\n    enumerable: true,\n    get: function get() {\n      return _overview.ReportsValueAdded;\n    }\n  });\n  Object.defineProperty(_exports, \"SocialReportsConversions\", {\n    enumerable: true,\n    get: function get() {\n      return _social.SocialReportsConversions;\n    }\n  });\n  Object.defineProperty(_exports, \"SocialReportsKeyIndicators\", {\n    enumerable: true,\n    get: function get() {\n      return _social.SocialReportsKeyIndicators;\n    }\n  });\n  Object.defineProperty(_exports, \"SocialReportsMetrics\", {\n    enumerable: true,\n    get: function get() {\n      return _social.SocialReportsMetrics;\n    }\n  });\n  Object.defineProperty(_exports, \"SocialReportsPastMarketingActions\", {\n    enumerable: true,\n    get: function get() {\n      return _social.SocialReportsPastMarketingActions;\n    }\n  });\n  Object.defineProperty(_exports, \"SocialReportsReservationTable\", {\n    enumerable: true,\n    get: function get() {\n      return _social.SocialReportsReservationTable;\n    }\n  });\n  Object.defineProperty(_exports, \"SocialReportsReservations\", {\n    enumerable: true,\n    get: function get() {\n      return _social.SocialReportsReservations;\n    }\n  });\n});","define(\"additive-mc/mirage/routes/reports/leads\", [\"exports\", \"faker\"], function (_exports, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.LeadPerformanceMetrics = _exports.LeadPerformanceChart = _exports.LeadPerformanceCampaignsInsights = void 0;\n  const LeadPerformanceMetrics = self => {\n    self.get('/reports/leads/key-indicators', schema => {\n      return {\n        metrics: {\n          totalLeads: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          reservations: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(1000),\n              type: 'yearly',\n              date: 2019,\n              rate: _faker.default.random.number({\n                min: 10,\n                max: 100\n              })\n            },\n            compare: {\n              value: _faker.default.random.number(1000),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          revenue: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019,\n              rate: _faker.default.random.number({\n                min: 10,\n                max: 100\n              })\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          valueAdded: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019,\n              rate: _faker.default.random.number({\n                min: 10,\n                max: 100\n              })\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          totalValueAdded: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019,\n              rate: _faker.default.random.number({\n                min: 10,\n                max: 100\n              })\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          leadsReservationsRatio: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(50),\n              type: 'yearly',\n              date: 2019\n            },\n            compare: {\n              value: _faker.default.random.number(50),\n              type: 'yearly',\n              date: 2018\n            }\n          }\n        }\n      };\n    });\n  };\n  _exports.LeadPerformanceMetrics = LeadPerformanceMetrics;\n  const LeadPerformanceChart = self => {\n    self.get('/reports/leads/chart', (schema, req) => {\n      const {\n        from,\n        to\n      } = req.queryParams;\n      if (from && to) {\n        return {\n          datasets: [{\n            from: 'ads',\n            to: 'mails',\n            flow: 1073,\n            clickable: false\n          }, {\n            from: 'onPage',\n            to: 'mails',\n            flow: 456,\n            clickable: false\n          }, {\n            from: 'referral',\n            to: 'mails',\n            flow: 105,\n            clickable: false\n          }, {\n            from: 'mails',\n            to: 'opens',\n            flow: 880,\n            clickable: false\n          }, {\n            from: 'opens',\n            to: 'conversions',\n            flow: 700,\n            clickable: false\n          }, {\n            from: 'conversions',\n            to: 'reservations',\n            flow: 100,\n            clickable: true\n          }, {\n            from: 'reservations',\n            to: 'direct',\n            flow: 33,\n            clickable: false\n          }, {\n            from: 'reservations',\n            to: 'additiveNewsletter',\n            flow: 33,\n            clickable: false\n          }, {\n            from: 'reservations',\n            to: 'additiveMa',\n            flow: 33,\n            clickable: false\n          }],\n          clickable: ['ads', 'reservations'],\n          labels: {\n            ads: 'Ads (1073)',\n            onPage: 'On-Page (456)',\n            referral: 'Referral (105)',\n            mails: 'Mails (1634)',\n            opens: 'Opens (880)',\n            conversions: 'Conversions (700)',\n            reservations: 'Reservations (100)',\n            direct: 'Direct (100)',\n            additiveNewsletter: 'additive-newsletter (100)',\n            additiveMa: 'additive-ma (100)'\n          },\n          colors: {\n            ads: 'red',\n            mails: 'yellow',\n            onPage: 'black',\n            referral: 'blue',\n            opens: 'slategray',\n            conversions: '#33FF8A',\n            reservations: 'green',\n            direct: 'red',\n            additiveNewsletter: 'yellow',\n            additiveMa: 'purple'\n          }\n        };\n      }\n      return {\n        datasets: [{\n          from: 'ads',\n          to: 'mails',\n          flow: 1073,\n          clickable: true\n        }, {\n          from: 'onPage',\n          to: 'mails',\n          flow: 456,\n          clickable: false\n        }, {\n          from: 'referral',\n          to: 'mails',\n          flow: 105,\n          clickable: false\n        }, {\n          from: 'mails',\n          to: 'opens',\n          flow: 880,\n          clickable: false\n        }, {\n          from: 'opens',\n          to: 'conversions',\n          flow: 700,\n          clickable: false\n        }, {\n          from: 'conversions',\n          to: 'reservations',\n          flow: 100,\n          clickable: true\n        }],\n        labels: {\n          ads: 'Ads (1073)',\n          onPage: 'On-Page (456)',\n          referral: 'Referral (105)',\n          mails: 'Mails (1634)',\n          opens: 'Opens (880)',\n          conversions: 'Conversions (700)',\n          reservations: 'Reservations (100)'\n        },\n        colors: {\n          ads: 'red',\n          mails: 'yellow',\n          onPage: 'black',\n          referral: 'blue',\n          opens: 'slategray',\n          conversions: '#33FF8A',\n          reservations: 'green'\n        }\n      };\n    });\n  };\n  _exports.LeadPerformanceChart = LeadPerformanceChart;\n  const LeadPerformanceCampaignsInsights = self => {\n    self.get('/reports/leads/campaigns-insights', schema => {\n      return {\n        campaignInsights: {\n          labels: [{\n            key: 'campaign-type',\n            name: 'Campaign Type',\n            description: 'Description'\n          }, {\n            key: 'leads',\n            name: 'Leads',\n            description: 'Description'\n          }, {\n            key: 'uniqueMails',\n            name: 'Unique Mails',\n            description: 'Description'\n          }, {\n            key: 'uniqueOpens',\n            name: 'Unique Opens',\n            description: 'Description'\n          }, {\n            key: 'generatedVouchers',\n            name: 'Generated Vouchers',\n            description: 'Description'\n          }, {\n            key: 'conversions',\n            name: 'Conversions (R/B)*',\n            description: 'Description'\n          }, {\n            key: 'reservations',\n            name: 'Reservations',\n            description: 'Description'\n          }, {\n            key: 'leadsReservationsRatio',\n            name: 'Lead : Reservation',\n            description: 'Description'\n          }, {\n            key: 'avgTime',\n            name: 'Avg. time from Lead to Reservation',\n            description: 'Description'\n          }, {\n            key: 'revenue',\n            name: 'Revenue',\n            description: 'Description'\n          }, {\n            key: 'filter',\n            name: 'Filter'\n          }],\n          data: [{\n            rowData: ['PopUps', {\n              value: 600,\n              format: 'number'\n            }, {\n              value: 400,\n              format: 'number'\n            }, {\n              value: 240,\n              format: 'number'\n            }, {\n              value: 120,\n              format: 'number'\n            }, {\n              value: '80/7'\n            }, {\n              value: 300,\n              format: 'number'\n            }, {\n              value: '16:1'\n            }, {\n              value: 'xyz'\n            }, {\n              value: 1234,\n              format: 'number'\n            }, 'campaignGroup=PopUps']\n          }, {\n            rowData: ['test', {\n              value: 600,\n              format: 'number'\n            }, {\n              value: 400,\n              format: 'number'\n            }, {\n              value: 240,\n              format: 'number'\n            }, {\n              value: 120,\n              format: 'number'\n            }, {\n              value: '80/7'\n            }, {\n              value: 300,\n              format: 'number'\n            }, {\n              value: '16:1'\n            }, {\n              value: 'xyz'\n            }, {\n              value: 1234,\n              format: 'number'\n            }, 'campaignGroup=test'],\n            subData: [{\n              rowData: ['subdata', {\n                value: 600,\n                format: 'number'\n              }, {\n                value: 400,\n                format: 'number'\n              }, {\n                value: 240,\n                format: 'number'\n              }, {\n                value: 120,\n                format: 'number'\n              }, {\n                value: '80/7'\n              }, {\n                value: 300,\n                format: 'number'\n              }, {\n                value: '16:1'\n              }, {\n                value: 'xyz'\n              }, {\n                value: 1234,\n                format: 'number'\n              }, 'campaignGroup=test&campaignId=1'],\n              subData: [{\n                rowData: ['sub-sub-data', {\n                  value: 600,\n                  format: 'number'\n                }, {\n                  value: 400,\n                  format: 'number'\n                }, {\n                  value: 240,\n                  format: 'number'\n                }, {\n                  value: 120,\n                  format: 'number'\n                }, {\n                  value: '80/7'\n                }, {\n                  value: 300,\n                  format: 'number'\n                }, {\n                  value: '16:1'\n                }, {\n                  value: 'xyz'\n                }, {\n                  value: 1234,\n                  format: 'number'\n                }, 'campaignGroup=test&campaignId=2']\n              }]\n            }]\n          }]\n        }\n      };\n    });\n  };\n  _exports.LeadPerformanceCampaignsInsights = LeadPerformanceCampaignsInsights;\n});","define(\"additive-mc/mirage/routes/reports/onPage\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.OnPageReportKeyIndicators = void 0;\n  const OnPageReportKeyIndicators = self => {\n    self.get('/reports/on-page/key-indicators', schema => {\n      return {\n        impressions: {\n          type: 'compare',\n          change: 38,\n          current: {\n            value: 95,\n            type: 'yearly',\n            date: 2024\n          },\n          compare: {\n            value: 76,\n            type: 'yearly',\n            date: 2023\n          },\n          format: null,\n          currency: null\n        },\n        conversions: {\n          type: 'compare',\n          change: 29,\n          current: {\n            value: 87,\n            type: 'yearly',\n            date: 2024\n          },\n          compare: {\n            value: 43,\n            type: 'yearly',\n            date: 2023\n          },\n          format: null,\n          currency: null\n        },\n        leads: {\n          type: 'compare',\n          change: 67,\n          current: {\n            value: 91,\n            type: 'yearly',\n            date: 2024\n          },\n          compare: {\n            value: 36,\n            type: 'yearly',\n            date: 2023\n          },\n          format: null,\n          currency: null\n        },\n        impressionsConversionsRatio: {\n          type: 'compare',\n          change: 58,\n          current: {\n            value: {\n              value: 82.35,\n              percentage: 74.56\n            },\n            type: 'yearly-relative',\n            date: 2024\n          },\n          compare: {\n            value: 54,\n            type: 'yearly-relative',\n            date: 2023\n          },\n          format: null,\n          currency: null\n        }\n      };\n    });\n  };\n  _exports.OnPageReportKeyIndicators = OnPageReportKeyIndicators;\n});","define(\"additive-mc/mirage/routes/reports/overview\", [\"exports\", \"faker\"], function (_exports, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.ReportsValueAdded = _exports.ReportsReservations = _exports.ReportsReservationTable = _exports.ReportsOverview = _exports.ReportsLeadsTable = _exports.ReportsKeyIndicators = _exports.ReportsConversions = void 0;\n  /**\n   * Routes for the general reports overview\n   * @module routes: instance/reports\n   */\n\n  /**\n   *\n   * @param {*} self\n   */\n  const ReportsOverview = self => {\n    self.get('/reports', () => {\n      return {\n        meta: {\n          emailCampaignsCount: _faker.default.random.number(4),\n          adCampaignsCount: _faker.default.random.number(2),\n          socialCampaignsCount: _faker.default.random.number(3)\n        }\n      };\n    });\n  };\n  _exports.ReportsOverview = ReportsOverview;\n  const ReportsKeyIndicators = self => {\n    self.get('/reports/key-indicators', () => {\n      return {\n        valueAddedSum: {\n          type: 'compare',\n          change: 32,\n          current: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        valueAdded: {\n          type: 'compare',\n          change: 59.35,\n          current: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        turnover: {\n          type: 'compare',\n          change: 25,\n          current: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2018\n          }\n        }\n      };\n    });\n  };\n  _exports.ReportsKeyIndicators = ReportsKeyIndicators;\n  const ReportsReservations = self => {\n    self.get('/reports/reservations', () => {\n      return {\n        reservations: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        newGuests: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        reactivatedGuests: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        returningGuests: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        }\n      };\n    });\n  };\n  _exports.ReportsReservations = ReportsReservations;\n  const ReportsReservationTable = self => {\n    self.get('/reports/reservations-table', (_, req) => {\n      const {\n        start,\n        end\n      } = req.queryParams;\n      const data = [];\n      for (let i = 0; i < 36; i++) {\n        data.push([{\n          value: _faker.default.name.findName(),\n          link: 'https://google.com',\n          format: 'custom',\n          customKey: 'name'\n        }, 'returning', 'Reservation', {\n          value: _faker.default.date.past(),\n          format: 'date'\n        }, {\n          value: _faker.default.random.number(),\n          format: 'currency_cent'\n        }, {\n          value: {\n            start: _faker.default.date.between(start, end),\n            end: _faker.default.date.between(start, end)\n          },\n          format: 'custom',\n          customKey: 'range'\n        }, '3 Erw. 2 Kinder', {\n          value: 'Guest Lifecycle Email Campaign',\n          link: 'https://google.com',\n          format: 'custom',\n          customKey: 'campaign_name'\n        }, 'Geburtstagsgutschein von Freunden']);\n      }\n      return {\n        labels: ['Confirmed Guest', 'Type', 'Res. Status', 'Res. Date', 'Res. Revenue', 'Stay', 'Group', 'Campaign Type', 'Campaign Name'],\n        data\n      };\n    });\n    self.get('/reports/leads/reservations-table', (_, req) => {\n      const {\n        start,\n        end\n      } = req.queryParams;\n      const data = [];\n      for (let i = 0; i < 36; i++) {\n        data.push([{\n          value: _faker.default.name.findName(),\n          link: 'https://google.com',\n          format: 'custom',\n          customKey: 'name'\n        }, 'returning', 'Reservation', {\n          value: _faker.default.date.past(),\n          format: 'date'\n        }, {\n          value: _faker.default.random.number(),\n          format: 'currency_cent'\n        }, {\n          value: {\n            start: _faker.default.date.between(start, end),\n            end: _faker.default.date.between(start, end)\n          },\n          format: 'custom',\n          customKey: 'range'\n        }, '3 Erw. 2 Kinder', {\n          value: 'Guest Lifecycle Email Campaign',\n          link: 'https://google.com',\n          format: 'custom',\n          customKey: 'campaign_name'\n        }, 'Geburtstagsgutschein von Freunden']);\n      }\n      return {\n        labels: ['Confirmed Guest', 'Type', 'Res. Status', 'Res. Date', 'Res. Revenue', 'Stay', 'Group', 'Campaign Type', 'Campaign Name'],\n        data\n      };\n    });\n  };\n  _exports.ReportsReservationTable = ReportsReservationTable;\n  const ReportsLeadsTable = self => {\n    self.get('/reports/leads-list', (_, req) => {\n      const {\n        start,\n        end\n      } = req.queryParams;\n      const data = [];\n      for (let i = 0; i < 20; i++) {\n        data.push([{\n          value: _faker.default.name.findName(),\n          link: 'https://google.com',\n          format: 'custom',\n          customKey: 'name'\n        }, {\n          value: _faker.default.date.past(),\n          format: 'date'\n        }, 'Facebook Lead Campaign', 'ca-d-de-lead-tb']);\n      }\n      return {\n        labels: ['Person', 'Sign In Date', 'Campaign Type', 'Campaign Name'],\n        data\n      };\n    });\n    self.get('/reports/leads/leads-list', (_, req) => {\n      const {\n        start,\n        end\n      } = req.queryParams;\n      const data = [];\n      for (let i = 0; i < 20; i++) {\n        data.push([{\n          value: _faker.default.name.findName(),\n          link: 'https://google.com',\n          format: 'custom',\n          customKey: 'name'\n        }, {\n          value: _faker.default.date.past(),\n          format: 'date'\n        }, 'Facebook Lead Campaign', 'ca-d-de-lead-tb']);\n      }\n      return {\n        labels: ['Person', 'Sign In Date', 'Campaign Type', 'Campaign Name'],\n        data\n      };\n    });\n  };\n  _exports.ReportsLeadsTable = ReportsLeadsTable;\n  const ReportsConversions = self => {\n    self.get('/reports/conversions', () => {\n      return {\n        conversions: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        enquiries: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        newsletterSubscriptions: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        vouchers: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        bookings: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        leadsIncentives: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        other: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        }\n      };\n    });\n  };\n  _exports.ReportsConversions = ReportsConversions;\n  const ReportsValueAdded = self => {\n    self.get('/reports/value-added', schema => {\n      let data = schema.valueAddeds.all();\n      return data;\n    });\n  };\n  _exports.ReportsValueAdded = ReportsValueAdded;\n});","define(\"additive-mc/mirage/routes/reports/social\", [\"exports\", \"faker\"], function (_exports, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.SocialReportsReservations = _exports.SocialReportsReservationTable = _exports.SocialReportsPastMarketingActions = _exports.SocialReportsMetrics = _exports.SocialReportsKeyIndicators = _exports.SocialReportsConversions = void 0;\n  const SocialReportsKeyIndicators = self => {\n    self.get('/reports/social/key-indicators', () => {\n      return {\n        valueAddedSum: {\n          type: 'compare',\n          change: 32,\n          current: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        valueAdded: {\n          type: 'compare',\n          change: 59.35,\n          current: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        turnover: {\n          type: 'compare',\n          change: 25,\n          current: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.finance.amount(),\n            type: 'yearly',\n            date: 2018\n          }\n        }\n      };\n    });\n  };\n  _exports.SocialReportsKeyIndicators = SocialReportsKeyIndicators;\n  const SocialReportsReservations = self => {\n    self.get('/reports/social/reservations', () => {\n      return {\n        reservations: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        newGuests: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        reactivatedGuests: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        returningGuests: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        }\n      };\n    });\n  };\n  _exports.SocialReportsReservations = SocialReportsReservations;\n  const SocialReportsConversions = self => {\n    self.get('/reports/social/conversions', () => {\n      return {\n        conversions: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        enquiries: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        newsletterSubscriptions: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        vouchers: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        bookings: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        },\n        other: {\n          type: 'compare',\n          change: _faker.default.random.number({\n            min: -100,\n            max: 100\n          }),\n          current: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2019\n          },\n          compare: {\n            value: _faker.default.random.number(),\n            type: 'yearly',\n            date: 2018\n          }\n        }\n      };\n    });\n  };\n  _exports.SocialReportsConversions = SocialReportsConversions;\n  const SocialReportsMetrics = self => {\n    self.get('/reports/social/metrics', schema => {\n      return {\n        metrics: {\n          postings: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          impressions: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          },\n          clicks: {\n            type: 'compare',\n            change: _faker.default.random.number({\n              min: -100,\n              max: 100\n            }),\n            current: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2019\n            },\n            compare: {\n              value: _faker.default.random.number(),\n              type: 'yearly',\n              date: 2018\n            }\n          }\n        },\n        campaigns: schema.reportsSocialPostings.all()\n      };\n    });\n  };\n  _exports.SocialReportsMetrics = SocialReportsMetrics;\n  const SocialReportsPastMarketingActions = self => {\n    self.get('/reports/social/past-marketing-actions', schema => {\n      return schema.socialPastMarketingActions.all();\n    });\n  };\n  _exports.SocialReportsPastMarketingActions = SocialReportsPastMarketingActions;\n  const SocialReportsReservationTable = self => {\n    self.get('/reports/social/reservations-table', (_, req) => {\n      const {\n        start,\n        end\n      } = req.queryParams;\n      const data = [];\n      for (let i = 0; i < 20; i++) {\n        data.push([{\n          value: _faker.default.name.findName(),\n          link: 'https://google.com',\n          format: 'custom',\n          customKey: 'name'\n        }, 'Neue Reservierung', {\n          value: _faker.default.date.past(),\n          format: 'date'\n        }, {\n          value: _faker.default.random.number(),\n          format: 'currency_cent'\n        }, {\n          value: {\n            start: _faker.default.date.between(start, end),\n            end: _faker.default.date.between(start, end)\n          },\n          format: 'custom',\n          customKey: 'range'\n        }, '3 Erw. 2 Kinder', _faker.default.name.findName()]);\n      }\n      return {\n        labels: ['Reservierende Person', 'Typ', 'Reservierungsdatum', 'Res.-Umsatz', 'Aufenthalt', 'Reisegruppe', 'Kampagne'],\n        data\n      };\n    });\n  };\n  _exports.SocialReportsReservationTable = SocialReportsReservationTable;\n});","define(\"additive-mc/mirage/routes/settings/index\", [\"exports\", \"miragejs\", \"additive-mc/mirage/routes/settings/settings\", \"additive-mc/mirage/routes/settings/legals\"], function (_exports, _miragejs, _settings, _legals) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.FacebookRoutes = void 0;\n  Object.defineProperty(_exports, \"LegalsRoutes\", {\n    enumerable: true,\n    get: function get() {\n      return _legals.LegalsRoutes;\n    }\n  });\n  Object.defineProperty(_exports, \"SettingRoutes\", {\n    enumerable: true,\n    get: function get() {\n      return _settings.SettingRoutes;\n    }\n  });\n  const FacebookRoutes = self => {\n    self.get('https://graph.facebook.com/v14.0/me/businesses', (schema, request) => {\n      var _request$queryParams2;\n      const data = [];\n      for (let i = 0; i < ((_request$queryParams = request.queryParams) !== null && _request$queryParams !== void 0 && _request$queryParams.after ? 5 : 50); i++) {\n        var _request$queryParams;\n        data.push({\n          id: `${i}`,\n          name: `Business ${i}`\n        });\n      }\n      return {\n        data,\n        paging: {\n          cursors: {\n            before: (_request$queryParams2 = request.queryParams) !== null && _request$queryParams2 !== void 0 && _request$queryParams2.after ? '2' : '1',\n            after: '2'\n          }\n        }\n      };\n    });\n    self.get('https://graph.facebook.com/v14.0/:id/owned_ad_accounts', (schema, request) => {\n      var _request$queryParams4;\n      const data = [];\n      for (let i = 0; i < ((_request$queryParams3 = request.queryParams) !== null && _request$queryParams3 !== void 0 && _request$queryParams3.after ? 5 : 50); i++) {\n        var _request$queryParams3;\n        data.push({\n          id: `${i}`,\n          name: `Ad Account ${i}`\n        });\n      }\n      return {\n        data,\n        paging: {\n          cursors: {\n            before: (_request$queryParams4 = request.queryParams) !== null && _request$queryParams4 !== void 0 && _request$queryParams4.after ? '2' : '1',\n            after: '2'\n          }\n        }\n      };\n    });\n    self.get('https://graph.facebook.com/v14.0/:id/owned_pages', (schema, request) => {\n      var _request$queryParams6, _request$queryParams7, _request$queryParams8, _request$queryParams9;\n      const data = [];\n      for (let i = 0; i < (((_request$queryParams5 = request.queryParams) === null || _request$queryParams5 === void 0 ? void 0 : _request$queryParams5.after) === '7' ? 5 : 50); i++) {\n        var _request$queryParams5;\n        data.push({\n          id: `${i}`,\n          name: `Owned Pages ${i}`\n        });\n      }\n      return {\n        data,\n        paging: {\n          cursors: {\n            before: ((_request$queryParams6 = request.queryParams) === null || _request$queryParams6 === void 0 ? void 0 : _request$queryParams6.after) || '1',\n            after: ((_request$queryParams7 = request.queryParams) === null || _request$queryParams7 === void 0 ? void 0 : _request$queryParams7.after) === '7' ? '7' : (_request$queryParams8 = request.queryParams) !== null && _request$queryParams8 !== void 0 && _request$queryParams8.after ? `${parseInt((_request$queryParams9 = request.queryParams) === null || _request$queryParams9 === void 0 ? void 0 : _request$queryParams9.after) + 1}` : '2'\n          }\n        }\n      };\n    });\n    self.get('https://graph.facebook.com/v14.0/:id/client_pages', (schema, request) => {\n      var _request$queryParams11;\n      const data = [];\n      for (let i = 0; i < ((_request$queryParams10 = request.queryParams) !== null && _request$queryParams10 !== void 0 && _request$queryParams10.after ? 5 : 50); i++) {\n        var _request$queryParams10;\n        data.push({\n          id: `${i}`,\n          name: `Client Pages ${i}`\n        });\n      }\n      return {\n        data,\n        paging: {\n          cursors: {\n            before: (_request$queryParams11 = request.queryParams) !== null && _request$queryParams11 !== void 0 && _request$queryParams11.after ? '2' : '1',\n            after: '2'\n          }\n        }\n      };\n    });\n    self.get('https://graph.facebook.com/v14.0/:id/instagram_accounts', (schema, request) => {\n      var _request$queryParams13;\n      const data = [];\n      for (let i = 0; i < ((_request$queryParams12 = request.queryParams) !== null && _request$queryParams12 !== void 0 && _request$queryParams12.after ? 5 : 50); i++) {\n        var _request$queryParams12;\n        data.push({\n          id: `${i}`,\n          username: `Instagram Account ${i}`\n        });\n      }\n      return {\n        data,\n        paging: {\n          cursors: {\n            before: (_request$queryParams13 = request.queryParams) !== null && _request$queryParams13 !== void 0 && _request$queryParams13.after ? '2' : '1',\n            after: '2'\n          }\n        }\n      };\n    });\n    self.get('https://graph.facebook.com/v14.0/:id/adspixels', (schema, request) => {\n      var _request$queryParams15;\n      const data = [];\n      for (let i = 0; i < ((_request$queryParams14 = request.queryParams) !== null && _request$queryParams14 !== void 0 && _request$queryParams14.after ? 5 : 50); i++) {\n        var _request$queryParams14;\n        data.push({\n          id: `${i}`,\n          name: `Ads Pixel ${i}`\n        });\n      }\n      return {\n        data,\n        paging: {\n          cursors: {\n            before: (_request$queryParams15 = request.queryParams) !== null && _request$queryParams15 !== void 0 && _request$queryParams15.after ? '2' : '1',\n            after: '2'\n          }\n        }\n      };\n    });\n  };\n  _exports.FacebookRoutes = FacebookRoutes;\n});","define(\"additive-mc/mirage/routes/settings/legals\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.LegalsRoutes = void 0;\n  const LegalsRoutes = self => {\n    self.get('/legals', schema => {\n      return schema.legals.first();\n    });\n    self.put('/legals', (schema, request) => {\n      const attrs = JSON.parse(request.requestBody);\n      const model = schema.legals.first();\n      return model.update(attrs);\n    });\n  };\n  _exports.LegalsRoutes = LegalsRoutes;\n});","define(\"additive-mc/mirage/routes/settings/settings\", [\"exports\", \"faker\"], function (_exports, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.SettingRoutes = void 0;\n  const SettingRoutes = self => {\n    self.get('/settings', schema => {\n      return schema.settings.first();\n    });\n    self.put('/settings', (schema, request) => {\n      const attrs = JSON.parse(request.requestBody);\n      if (attrs.facebookOAuth.userId && !attrs.facebookOAuth.userName) {\n        attrs.facebookOAuth.userName = _faker.default.name.findName();\n      }\n      if (attrs.voucherValidityPeriod) {\n        attrs.voucherValidityPeriod = {\n          value: attrs.voucherValidityPeriod,\n          allowedValues: [{\n            label: 'Ende nächstes Jahr',\n            value: 'end_of_next_year'\n          }, {\n            label: '1 Jahr',\n            value: 'one_year'\n          }, {\n            label: '6 Monate',\n            value: 'six_months'\n          }, {\n            label: '3 Monate',\n            value: 'three_months'\n          }, {\n            label: '1 Monat',\n            value: 'one_month'\n          }]\n        };\n      }\n      const model = schema.settings.first();\n      return model.update(attrs);\n    });\n    self.get('/settings/tiktok/advertisers', () => {\n      return {\n        advertisers: [{\n          id: 1,\n          name: 'Advertiser 1'\n        }, {\n          id: 2,\n          name: 'Advertiser 2'\n        }, {\n          id: 3,\n          name: 'Advertiser 3'\n        }]\n      };\n    });\n  };\n  _exports.SettingRoutes = SettingRoutes;\n});","define(\"additive-mc/mirage/routes/transactions/index\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TransactionsRoutes = _exports.HTML_PREVIEW = void 0;\n  const TransactionsRoutes = self => {\n    self.post('/content-wizard/transactions', (schema, request) => {\n      return schema.transactions.create({\n        changes: {}\n      });\n    });\n    self.post('/content-wizard/transactions/:id/:campaignType', (schema, request) => {\n      return new _emberCliMirage.Response(204);\n    });\n    self.delete('/content-wizard/transactions/:id', (schema, request) => {\n      schema.transactions.find(request.params.id).destroy();\n      return;\n    });\n    self.post('/content-wizard/transactions/:id/commit', (schema, request) => {\n      return;\n    });\n    self.post('/content-wizard/transactions/:id/:campaignType/:campaignId/test-emails', (schema, request) => {\n      return new _emberCliMirage.Response(204);\n    });\n    self.get('/content-wizard/transactions/:id/validate', (schema, request) => {\n      return {\n        validations: [{\n          entityType: 'Campaign',\n          entityId: 2893,\n          message: 'At least one active email is required.',\n          language: 'de',\n          type: 'required',\n          severity: 'error',\n          category: 'configuration'\n        }, {\n          entityType: 'Campaign',\n          entityId: 2893,\n          message: 'At least one active email with CTA of type \"voucher\" is required, if a voucher is present.',\n          language: null,\n          type: 'required',\n          severity: 'error',\n          category: 'configuration'\n        }]\n      };\n    });\n    self.get('/content-wizard/transactions/:id/:campaignType/:campaignId/languages/available', (schema, request) => {\n      return {\n        languages: ['de']\n      };\n    });\n    self.post('/content-wizard/transactions/:id/:campaignType/:campaignId/publish', (schema, request) => {\n      return new _emberCliMirage.Response(204);\n    });\n    self.delete('/content-wizard/transactions/:id/:campaignType/:campaignId/publish', (schema, request) => {\n      return new _emberCliMirage.Response(204);\n    });\n    self.patch('/content-wizard/transactions/:id/:campaignType/:campaignId', (schema, request) => {\n      return new _emberCliMirage.Response(204);\n    });\n    self.patch('/content-wizard/transactions/:id/:campaignType/:campaignId/contributions/:contributionsId', (schema, request) => {\n      const {\n        id,\n        contributionsId\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      const changesKey = `voucher.${contributionsId}`;\n      const transaction = schema.transactions.find(id);\n      transaction.changes[changesKey] = Object.assign(transaction.changes[changesKey] || {}, body);\n      return new _emberCliMirage.Response(204);\n    });\n    self.patch('/content-wizard/transactions/:id/:campaignType/:campaignId/contributions/:contributionsId/configuration', (schema, request) => {\n      const {\n        id,\n        contributionsId\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      const changesKey = `voucher.${contributionsId}`;\n      const transaction = schema.transactions.find(id);\n      transaction.changes[changesKey] = Object.assign(transaction.changes[changesKey] || {}, body);\n      return new _emberCliMirage.Response(204);\n    });\n    self.patch('/content-wizard/transactions/:id/:campaignType/:campaignId/configuration', (schema, request) => {\n      return new _emberCliMirage.Response(204);\n    });\n    self.post('/content-wizard/transactions/:id/:campaignType/:campaignId/contributions', (schema, request) => {\n      const {\n        id,\n        contributionsId\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      const changesKey = `voucher.${contributionsId}`;\n      const transaction = schema.transactions.create({\n        changes: {}\n      });\n      transaction.changes[changesKey] = Object.assign(transaction.changes[changesKey] || {}, body);\n      return new _emberCliMirage.Response(204);\n    });\n    self.delete('/content-wizard/transactions/:id/:campaignType/:campaignId/contributions/:contributionsId', (schema, request) => {\n      const {\n        id,\n        contributionsId,\n        locale\n      } = request.params;\n      return new _emberCliMirage.Response(204);\n    });\n    self.delete('/content-wizard/transactions/:id/:campaignType/:campaignId/contributions/:contributionsId/:locale', (schema, request) => {\n      return new _emberCliMirage.Response(204);\n    });\n    self.get('/content-wizard/transactions/:id/:campaignType/:campaignId/contributions/:contributionsId/preview', (schema, request) => {\n      const {\n        id,\n        contributionsId,\n        locale\n      } = request.params;\n      return HTML_PREVIEW;\n    });\n    self.patch('/content-wizard/transactions/:id/:campaignType/:campaignId/trigger', (schema, request) => {\n      const {\n        id\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      const changesKey = 'trigger';\n      const transaction = schema.transactions.find(id);\n      transaction.changes[changesKey] = Object.assign(transaction.changes[changesKey] || {}, body);\n      return new _emberCliMirage.Response(204);\n    });\n    self.post('/content-wizard/transactions/:id/:campaignType/:campaignId/email-series', (schema, request) => {\n      const {\n        id,\n        emailSeriesId\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      const changesKey = `email-series.${emailSeriesId}`;\n      const transaction = schema.transactions.find(id);\n      transaction.changes[changesKey] = Object.assign(transaction.changes[changesKey] || {}, body);\n      return new _emberCliMirage.Response(204);\n    });\n    self.patch('/content-wizard/transactions/:id/:campaignType/:campaignId/email-series/:emailSeriesId', (schema, request) => {\n      const {\n        id,\n        emailSeriesId\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      const changesKey = `email-series.${emailSeriesId}`;\n      const transaction = schema.transactions.find(id);\n      transaction.changes[changesKey] = Object.assign(transaction.changes[changesKey] || {}, body);\n      return new _emberCliMirage.Response(204);\n    });\n    self.delete('/content-wizard/transactions/:id/:campaignType/:campaignId/email-series/:emailSeriesId', (schema, request) => {\n      const {\n        id,\n        contributionsId,\n        locale\n      } = request.params;\n      return new _emberCliMirage.Response(204);\n    });\n    self.post('/content-wizard/transactions/:id/:campaignType/:campaignId/email-series/:emailSeriesId/test-emails', (schema, request) => {\n      return new _emberCliMirage.Response(204);\n    });\n    self.post('/content-wizard/transactions/:id/:campaignType/:campaignId/email-series/:emailSeriesId/activate', (schema, request) => {\n      const {\n        id,\n        emailSeriesId\n      } = request.params;\n      const changesKey = `email-series.${emailSeriesId}`;\n      const transaction = schema.transactions.find(id);\n      transaction.changes[changesKey] = Object.assign(transaction.changes[changesKey] || {\n        state: 'active'\n      });\n      return new _emberCliMirage.Response(204);\n    });\n    self.delete('/content-wizard/transactions/:id/:campaignType/:campaignId/email-series/:emailSeriesId/activate', (schema, request) => {\n      const {\n        id,\n        emailSeriesId\n      } = request.params;\n      const changesKey = `email-series.${emailSeriesId}`;\n      const transaction = schema.transactions.find(id);\n      transaction.changes[changesKey] = Object.assign(transaction.changes[changesKey] || {}, {\n        state: 'deactivated'\n      });\n      return new _emberCliMirage.Response(204);\n    });\n    self.post('/content-wizard/transactions/:id/:campaignType/:campaignId/email-series/:emailSeriesId/emails', (schema, request) => {\n      const {\n        id,\n        emailId\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      const changesKey = `email.${emailId}`;\n      const transaction = schema.transactions.find(id);\n      transaction.changes[changesKey] = Object.assign(transaction.changes[changesKey] || {}, body);\n      return new _emberCliMirage.Response(204);\n    });\n    self.patch('/content-wizard/transactions/:id/:campaignType/:campaignId/email-series/:emailSeriesId/emails/:emailId', (schema, request) => {\n      const {\n        id,\n        emailId\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      const changesKey = `email.${emailId}`;\n      const transaction = schema.transactions.find(id);\n      transaction.changes[changesKey] = Object.assign(transaction.changes[changesKey] || {}, body);\n      return new _emberCliMirage.Response(204);\n    });\n    self.delete('/content-wizard/transactions/:id/:campaignType/:campaignId/email-series/:emailSeriesId/emails/:emailId/:locale', (schema, request) => {\n      const {\n        id,\n        contributionsId,\n        locale\n      } = request.params;\n      return new _emberCliMirage.Response(204);\n    });\n    self.delete('/content-wizard/transactions/:id/:campaignType/:campaignId/email-series/:emailSeriesId/emails/:emailId', (schema, request) => {\n      const {\n        id,\n        contributionsId,\n        locale\n      } = request.params;\n      return new _emberCliMirage.Response(204);\n    });\n    self.post('/content-wizard/transactions/:id/:campaignType/:campaignId/email-series/:emailSeriesId/emails/:emailId/test-email', (schema, request) => {\n      return new _emberCliMirage.Response(204);\n    });\n    self.post('/content-wizard/transactions/:id/:campaignType/:campaignId/email-series/:emailSeriesId/emails/:emailId/activate', (schema, request) => {\n      const {\n        id,\n        emailId\n      } = request.params;\n      const changesKey = `email.${emailId}`;\n      const transaction = schema.transactions.find(id);\n      transaction.changes[changesKey] = Object.assign(transaction.changes[changesKey] || {}, {\n        active: true\n      });\n      return new _emberCliMirage.Response(204);\n    });\n    self.delete('/content-wizard/transactions/:id/:campaignType/:campaignId/email-series/:emailSeriesId/emails/:emailId/activate', (schema, request) => {\n      const {\n        id,\n        emailId\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      const changesKey = `email.${emailId}`;\n      const transaction = schema.transactions.find(id);\n      transaction.changes[changesKey] = Object.assign(transaction.changes[changesKey] || {}, {\n        active: false\n      });\n      return new _emberCliMirage.Response(204);\n    });\n    self.get('/content-wizard/transactions/:id/:campaignType/:campaignId/email-series/:emailSeriesId/emails/:emailId/preview', (schema, request) => {\n      return HTML_PREVIEW;\n    });\n    self.patch('/content-wizard/transactions/:id/:campaignType/:campaignId/landing-page/:landingPageId', (schema, request) => {\n      const {\n        id,\n        landingPageId\n      } = request.params;\n      const body = JSON.parse(request.requestBody);\n      const changesKey = `landingPage.${landingPageId}`;\n      const transaction = schema.transactions.find(id);\n      transaction.changes[changesKey] = Object.assign(transaction.changes[changesKey] || {}, body);\n      return new _emberCliMirage.Response(204);\n    });\n    self.delete('/content-wizard/transactions/:id/:campaignType/:campaignId/landing-page/:landingPageId/:locale', (schema, request) => {\n      return new _emberCliMirage.Response(204);\n    });\n    self.get('/content-wizard/transactions/:id/:campaignType/:campaignId/landing-page/:landingPageId/preview', (schema, request) => {\n      const {\n        id,\n        landingPageId,\n        locale\n      } = request.params;\n      return HTML_PREVIEW;\n    });\n  };\n  _exports.TransactionsRoutes = TransactionsRoutes;\n  const HTML_PREVIEW = _exports.HTML_PREVIEW = `\n  <!DOCTYPE html>\n<html lang=\"de\" xmlns:og=\"http://ogp.me/ns#\">\n<head>\n    <title>Gutschein</title>\n    <style>\n        html,\nbody {\nwidth: 100%;\nheight: 100%;\nmargin: 0;\n}\n#check-color {\ncolor: #3D3D3D;\n}\n#content-wrapper {\n/* use !important to avoid overwriting by custom styles */\nfont-size: 1.20968vw !important;\nline-height: 1.6666666666666667em;\nfont-family: Arial, Verdana, sans-serif;\nmargin: 0 auto;\nwidth: 82.66666666666667em;\ncolor: #3D3D3D;\nbackground-color: #3D3D3D;\noverflow: hidden;\n}\n#content-wrapper .content-header .logo img {\nmax-height: 6.156em;\nwidth: auto;\n}\n#content-wrapper h1,\n#content-wrapper h3 {\ncolor: #3D3D3D;\n}\n#content-wrapper h1 {\nfont-size: 5em;\nline-height: 1.333em;\ntext-transform: uppercase;\nmargin: 0;\n}\n#content-wrapper h2 {\nfont-size: 4.166666666666667em;\nline-height: 1.25em;\nmargin: 0;\ncolor: #3D3D3D;\nfont-weight: normal;\n}\n#content-wrapper h3 {\nfont-size: 2em;\nmargin: 0;\n}\n#content-wrapper h4 {\nfont-size: 1.3333333333333333em;\nmargin: 0;\ncolor: #3D3D3D;\n}\n#content-wrapper strong {\ncolor: #3D3D3D;\n}\n#header {\nheight: 45.25em;\nbackground-size: cover;\nbackground-position: center center;\nbackground-repeat: no-repeat;\nposition: relative;\n}\n#header:after {\ncontent: '';\nposition: absolute;\nright: -5%;\nbottom: -2.25em;\nleft: -5%;\nwidth: 110%;\nheight: 4.166666666666667em;\nbackground-color: #3D3D3D;\n-webkit-transform: rotate(2.5deg);\ntransform: rotate(2.5deg);\n}\n.content-table {\ndisplay: table;\nwidth: 100%;\nheight: 100%;\n}\n.content-table .vertical-center {\ndisplay: table-cell;\nvertical-align: middle;\n}\n#content {\npadding-top: 3em;\nheight: 73.75em;\nposition: relative;\nbox-sizing: border-box;\n}\n#content .content-header {\ntext-align: center;\nmax-width: 46.666666666666664em;\nmargin: 0 auto;\n}\n#content .content-header .logo {\nmargin-bottom: 2.5em;\n}\n#content .content-header .logo img {\ndisplay: inline-block;\n}\n#content .content-header h1 {\nmargin-bottom: 0.167em;\n}\n#content .greeting-box {\nposition: relative;\nheight: 23.916666666666668em;\nmargin-top: 6.25em;\ncolor: #ffffff;\n}\n#content .greeting-box .background-svg {\nposition: absolute;\n}\n#content .greeting-box .background-svg svg polygon {\nfill: #3D3D3D;\n}\n#content .greeting-box .content-wrapper {\nwidth: 43.416666666666664em;\nmargin: 0 auto;\nposition: relative;\nz-index: 2;\ntext-align: center;\n}\n#content .greeting-box .content-wrapper .vertical-center {\nfont-family: Arial, Verdana, sans-serif-italic;\npadding-top: 2.0833333333333335em;\n}\n#content .greeting-box .content-wrapper .vertical-center .quote {\ndisplay: block;\nmargin-top: -0.786em;\npadding-bottom: 0.786em;\nheight: 0;\nfont-size: 6.666666666666667em;\nline-height: 0;\nz-index: 10;\ncolor: #ffffff;\nletter-spacing: -0.01em;\n}\n#content .greeting-box .content-wrapper .vertical-center h3 {\nfont-family: Arial, Verdana, sans-serif-italic;\nfont-size: 1.6666666666666667em;\nline-height: 1.4em;\nmargin-bottom: 0.8em;\ncolor: #ffffff;\n}\n#content .greeting-box .content-wrapper .vertical-center p {\nfont-size: 1.6666666666666667em;\nline-height: 1.4em;\nmargin: 0;\nword-break: break-word;\n}\n#content .content-footer {\nposition: absolute;\nright: 0;\nbottom: 1em;\nleft: 0;\n}\n#content .content-footer .left,\n#content .content-footer .right {\ndisplay: inline-block;\nvertical-align: bottom;\nwidth: 50%;\npadding: 0 4.166666666666667em 0 2.5em;\nbox-sizing: border-box;\nfont-size: 1.0833333333333333em;\nline-height: 1.692em;\n}\n#content .content-footer .left p,\n#content .content-footer .right p {\nmargin: 0;\n}\n#content .content-footer .left p .info,\n#content .content-footer .right p .info {\nfont-family: Arial, Verdana, sans-serif;\nopacity: 0.6;\n}\n#content .content-footer .right {\ntext-align: right;\npadding-right: 2.5em;\n}\n#content-wrapper.is-dynamic-purchase .greeting-box .content-wrapper {\ntext-align: left;\n}\n#content-wrapper.value .greeting-box .content-wrapper h3 {\nfont-size: 2em;\nline-height: 1.333em;\n}\n#content-wrapper.value .greeting-box .content-wrapper p {\nfont-size: 2em;\nline-height: 1.333em;\n}\n#content-wrapper.product .left-container,\n#content-wrapper.treatment .left-container,\n#content-wrapper.stay .left-container {\npadding: 0 4.583333333333333em 0 4.583333333333333em;\n}\n#content-wrapper.product .left-container ol,\n#content-wrapper.treatment .left-container ol,\n#content-wrapper.stay .left-container ol,\n#content-wrapper.product .left-container ul,\n#content-wrapper.treatment .left-container ul,\n#content-wrapper.stay .left-container ul {\nlist-style: none;\nmargin: 0;\npadding: 0;\n}\n#content-wrapper.product .left-container .treatments ul li,\n#content-wrapper.treatment .left-container .treatments ul li,\n#content-wrapper.stay .left-container .treatments ul li {\nfont-size: 1.1666666666666667em;\nline-height: 1.429em;\n}\n#content-wrapper.product .left-container .treatments ul li .count,\n#content-wrapper.treatment .left-container .treatments ul li .count,\n#content-wrapper.stay .left-container .treatments ul li .count {\ncolor: #3D3D3D;\nfont-size: .8em;\nline-height: 1.786em;\nfont-weight: bold;\npadding-right: 0.625em;\n}\n#content-wrapper.product .left-container .treatments ul li .duration,\n#content-wrapper.treatment .left-container .treatments ul li .duration,\n#content-wrapper.stay .left-container .treatments ul li .duration {\nopacity: 0.5;\npadding-left: 0.571em;\n}\n#content-wrapper.product .left-container .treatments ul li + li,\n#content-wrapper.treatment .left-container .treatments ul li + li,\n#content-wrapper.stay .left-container .treatments ul li + li {\nmargin-top: 1.0833333333333333em;\n}\n#content-wrapper.product .left-container .inclusive h4,\n#content-wrapper.treatment .left-container .inclusive h4,\n#content-wrapper.stay .left-container .inclusive h4 {\npadding-left: 2.188em;\nmargin-bottom: 1em;\ntext-transform: uppercase;\n}\n#content-wrapper.product .left-container .inclusive p,\n#content-wrapper.treatment .left-container .inclusive p,\n#content-wrapper.stay .left-container .inclusive p {\nfont-size: 1.3333333333333333em;\nline-height: 1.563em;\npadding-left: 2.5em;\n}\n#content-wrapper.product .left-container .inclusive ol li,\n#content-wrapper.treatment .left-container .inclusive ol li,\n#content-wrapper.stay .left-container .inclusive ol li,\n#content-wrapper.product .left-container .inclusive ul li,\n#content-wrapper.treatment .left-container .inclusive ul li,\n#content-wrapper.stay .left-container .inclusive ul li {\nfont-size: 1.1666666666666667em;\nline-height: 1.429em;\npadding-left: 2.5em;\nposition: relative;\n}\n#content-wrapper.product .left-container .inclusive ol li + li,\n#content-wrapper.treatment .left-container .inclusive ol li + li,\n#content-wrapper.stay .left-container .inclusive ol li + li,\n#content-wrapper.product .left-container .inclusive ul li + li,\n#content-wrapper.treatment .left-container .inclusive ul li + li,\n#content-wrapper.stay .left-container .inclusive ul li + li {\nmargin-top: 1.063em;\n}\n#content-wrapper.product .left-container .inclusive ol li img,\n#content-wrapper.treatment .left-container .inclusive ol li img,\n#content-wrapper.stay .left-container .inclusive ol li img,\n#content-wrapper.product .left-container .inclusive ul li img,\n#content-wrapper.treatment .left-container .inclusive ul li img,\n#content-wrapper.stay .left-container .inclusive ul li img {\nposition: absolute;\ntop: 0.4166666666666667em;\nleft: 0.16666666666666666em;\nwidth: 0.857em;\nheight: 0.643em;\n}\n#content-wrapper.product .left-container .treatments + .inclusive,\n#content-wrapper.treatment .left-container .treatments + .inclusive,\n#content-wrapper.stay .left-container .treatments + .inclusive {\nborder-top: 0.08333333333333333em solid #cccccc;\nmargin-top: 1.9166666666666667em;\npadding-top: 1.8333333333333333em;\n}\n#content-wrapper.product .left-container .treatments + .inclusive p,\n#content-wrapper.treatment .left-container .treatments + .inclusive p,\n#content-wrapper.stay .left-container .treatments + .inclusive p {\nmargin-top: 0;\nfont-size: 0.9166666666666666em;\nline-height: 1.429em;\npadding-left: 2em;\npadding-right: .83333333333333em;\n}\n#content-wrapper.product .left-container .treatments + .inclusive li,\n#content-wrapper.treatment .left-container .treatments + .inclusive li,\n#content-wrapper.stay .left-container .treatments + .inclusive li {\nfont-size: 0.9166666666666666em;\nline-height: 1.818em;\npadding-left: 2.045em;\n}\n#content-wrapper.product .left-container .treatments + .inclusive li + li,\n#content-wrapper.treatment .left-container .treatments + .inclusive li + li,\n#content-wrapper.stay .left-container .treatments + .inclusive li + li {\nmargin-top: 0.545em;\n}\n#content-wrapper.treatment .left-container .treatments,\n#content-wrapper.treatment .left-container .inclusive {\npadding-left: 0.8333333333333334em;\n}\n#content-wrapper.stay .left-container .inclusive {\npadding-left: 2.833333em;\n}\n#content-wrapper.stay .left-container .inclusive h4 {\npadding-left: 1.45em;\n}\n#content-wrapper.stay .left-container .inclusive ul li {\npadding-left: 1.6em;\n}\n#content-wrapper.stay .left-container .inclusive ul li img {\ntop: 0.5em;\nfont-size: .9em;\nline-height: 1.9em;\n}\n#content-wrapper.stay .left-container .inclusive .stay-information li span {\nfont-size: 1em;\n}\n#content-wrapper.stay .left-container .inclusive ul + .line {\nmargin-top: 2em;\nmargin-right: 0.5em;\nmargin-bottom: 1.5em;\nmargin-left: -0.5em;\nheight: 0.1em;\nbackground: #4d4d4d;\n}\n#content-wrapper.stay .left-container .inclusive .inclusive-text li {\nfont-size: .9em;\nline-height: 1.9em;\npadding-left: 2.35em;\n}\n#content-wrapper.stay .left-container .inclusive .inclusive-text li img {\nfont-size: 1.15em;\ntop: 0.45em;\nleft: .23em;\n}\n#content-wrapper.stay .left-container .inclusive .inclusive-text li + li {\nmargin-top: 0.5em;\n}\n#content-wrapper.portrait .greeting-box .background-svg {\ntop: -5.25em;\nright: 0;\nbottom: 0;\nleft: 0;\nheight: 32.8em;\n}\n#content-wrapper.portrait.product #content,\n#content-wrapper.portrait.treatment #content,\n#content-wrapper.portrait.stay #content {\npadding-top: 0;\n}\n#content-wrapper.portrait.product #content .landscape-friends,\n#content-wrapper.portrait.treatment #content .landscape-friends,\n#content-wrapper.portrait.stay #content .landscape-friends {\nposition: absolute;\nright: 0;\nbottom: 15.416666666666666em;\nleft: 0;\n}\n#content-wrapper.portrait.product #content .landscape-friends .content-header,\n#content-wrapper.portrait.treatment #content .landscape-friends .content-header,\n#content-wrapper.portrait.stay #content .landscape-friends .content-header {\nposition: absolute;\nright: 0;\nbottom: 35em;\nleft: 0;\nmax-width: 56.666666666666664em;\nwidth: 100%;\n}\n#content-wrapper.portrait.product #content .landscape-friends .content-header h2,\n#content-wrapper.portrait.treatment #content .landscape-friends .content-header h2,\n#content-wrapper.portrait.stay #content .landscape-friends .content-header h2 {\nfont-size: 2.3333333333333335em;\n}\n#content-wrapper.portrait.product #content .left-container,\n#content-wrapper.portrait.treatment #content .left-container,\n#content-wrapper.portrait.stay #content .left-container,\n#content-wrapper.portrait.product #content .greeting-box,\n#content-wrapper.portrait.treatment #content .greeting-box,\n#content-wrapper.portrait.stay #content .greeting-box {\ndisplay: inline-block;\nvertical-align: middle;\nwidth: 50%;\nbox-sizing: border-box;\nmargin-top: 0;\n}\n#content-wrapper.portrait.product #content .left-container,\n#content-wrapper.portrait.treatment #content .left-container,\n#content-wrapper.portrait.stay #content .left-container {\npadding-right: 7.5em;\n}\n#content-wrapper.portrait.product #content .greeting-box .background-svg,\n#content-wrapper.portrait.treatment #content .greeting-box .background-svg,\n#content-wrapper.portrait.stay #content .greeting-box .background-svg {\nwidth: 38.75em;\nheight: 33.4em;\nleft: auto;\n}\n#content-wrapper.portrait.product #content .greeting-box .content-wrapper,\n#content-wrapper.portrait.treatment #content .greeting-box .content-wrapper,\n#content-wrapper.portrait.stay #content .greeting-box .content-wrapper {\nwidth: 100%;\nbox-sizing: border-box;\npadding: 0 7.916666666666667em 0 10em;\ntext-align: right;\n}\n#content-wrapper.portrait.product #content .greeting-box .content-wrapper .quote,\n#content-wrapper.portrait.treatment #content .greeting-box .content-wrapper .quote,\n#content-wrapper.portrait.stay #content .greeting-box .content-wrapper .quote {\nposition: absolute;\nright: 0.5em;\nmargin-top: -0.615em;\n}\n#content-wrapper.portrait.stay #content .left-container {\npadding-right: 3.5em;\n}\n#content-wrapper.landscape {\n/* use !important to avoid overwriting by custom styles */\nfont-size: 0.855315vw !important;\nwidth: 116.91666666666667em;\n}\n#content-wrapper.landscape #header {\nheight: 40.083333333333336em;\n}\n#content-wrapper.landscape #header:after {\nbottom: -3.1666666666666665em;\nheight: 5.833333333333333em;\n}\n#content-wrapper.landscape #content {\nheight: 41em;\npadding-top: 0;\n}\n#content-wrapper.landscape #content .landscape-friends {\nheight: 30.833333333333332em;\n}\n#content-wrapper.landscape #content .landscape-friends .content-header {\nposition: relative;\nz-index: 1;\n}\n#content-wrapper.landscape #content .landscape-friends .left-container,\n#content-wrapper.landscape #content .landscape-friends .content-header,\n#content-wrapper.landscape #content .landscape-friends .greeting-box {\ndisplay: inline-block;\nvertical-align: middle;\nwidth: 50%;\nheight: 100%;\nmax-width: none;\nbox-sizing: border-box;\n}\n#content-wrapper.landscape #content .landscape-friends .greeting-box {\nmargin-top: 0;\npadding: 0 7.916666666666667em 0 10em;\n}\n#content-wrapper.landscape #content .landscape-friends .greeting-box .background-svg {\ntop: -2.8333333333333335em;\nright: -0.16666666666666666em;\nwidth: 57.666666666666664em;\nheight: 33em;\n}\n#content-wrapper.landscape #content .landscape-friends .greeting-box .content-wrapper {\nwidth: 100%;\ntext-align: left;\n}\n#content-wrapper.landscape #content .landscape-friends .greeting-box .content-wrapper .vertical-center {\npadding-top: 0;\n}\n#content-wrapper.landscape #content .landscape-friends .greeting-box .content-wrapper .vertical-center .quote {\nposition: absolute;\nleft: -0.611em;\nmargin-top: -0.615em;\n}\n#content-wrapper.landscape #content .right p {\nmax-width: 28.333333333333332em;\nmargin-left: auto;\n}\n#content-wrapper.landscape.product #content .landscape-friends .left-container,\n#content-wrapper.landscape.treatment #content .landscape-friends .left-container,\n#content-wrapper.landscape.stay #content .landscape-friends .left-container,\n#content-wrapper.landscape.product #content .landscape-friends .content-header,\n#content-wrapper.landscape.treatment #content .landscape-friends .content-header,\n#content-wrapper.landscape.stay #content .landscape-friends .content-header,\n#content-wrapper.landscape.product #content .landscape-friends .greeting-box,\n#content-wrapper.landscape.treatment #content .landscape-friends .greeting-box,\n#content-wrapper.landscape.stay #content .landscape-friends .greeting-box {\nwidth: 33.33%;\n}\n#content-wrapper.landscape.product #content .landscape-friends .content-header,\n#content-wrapper.landscape.treatment #content .landscape-friends .content-header,\n#content-wrapper.landscape.stay #content .landscape-friends .content-header {\npadding: 0 1.6666666666666667em;\n}\n#content-wrapper.landscape.product #content .landscape-friends .content-header h2,\n#content-wrapper.landscape.treatment #content .landscape-friends .content-header h2,\n#content-wrapper.landscape.stay #content .landscape-friends .content-header h2 {\nfont-size: 2.3333333333333335em;\nline-height: 1.429em;\n}\n#content-wrapper.landscape.product #content .landscape-friends .greeting-box,\n#content-wrapper.landscape.treatment #content .landscape-friends .greeting-box,\n#content-wrapper.landscape.stay #content .landscape-friends .greeting-box {\npadding: 0 6.416666666666667em 0 5em;\n}\n#content-wrapper.landscape.product #content .landscape-friends .greeting-box .background-svg,\n#content-wrapper.landscape.treatment #content .landscape-friends .greeting-box .background-svg,\n#content-wrapper.landscape.stay #content .landscape-friends .greeting-box .background-svg {\nwidth: 100%;\nheight: 33.6em;\n}\n#content-wrapper.landscape.product #content .landscape-friends .greeting-box .content-wrapper,\n#content-wrapper.landscape.treatment #content .landscape-friends .greeting-box .content-wrapper,\n#content-wrapper.landscape.stay #content .landscape-friends .greeting-box .content-wrapper {\ntext-align: right;\n}\n#content-wrapper.landscape.product #content .landscape-friends .greeting-box .content-wrapper .quote,\n#content-wrapper.landscape.treatment #content .landscape-friends .greeting-box .content-wrapper .quote,\n#content-wrapper.landscape.stay #content .landscape-friends .greeting-box .content-wrapper .quote {\nright: -0.513em;\nleft: auto;\n}\n    </style>\n                <style>\n            html,body{width:100%;height:100%;margin:0}#check-color{color:#998674}#content-wrapper{font-size:12px;line-height:1.6666666666667em;font-family:Arial,Verdana,sans-serif;margin:0 auto;width:82.666666666667em;color:#bbb;background-color:#fff;overflow:hidden}#content-wrapper.pdf-view{font-size:27px}#content-wrapper.pdf-view .content-header .logo img{max-height:6.156em;width:auto}#content-wrapper.html-view{font-size:6.5px}#content-wrapper.html-view #header{background-size:auto}#content-wrapper.html-view .content-header .logo img{max-height:40px;width:auto}#content-wrapper.preview-view{font-size:2.8px}#content-wrapper.preview-view #header{background-position:top center}#content-wrapper.preview-view .content-header .logo img{height:auto;width:auto;max-height:10px}#content-wrapper h1,#content-wrapper h3{color:#998674}#content-wrapper h1{font-size:5em;line-height:1.333em;text-transform:uppercase;margin:0}#content-wrapper h2{font-size:4.1666666666667em;line-height:1.25em;margin:0;color:#bbb;font-weight:400}#content-wrapper h3{font-size:2em;margin:0}#content-wrapper h4{font-size:1.3333333333333em;margin:0;color:#998674}#content-wrapper strong{color:#998674}#header{height:45.25em;background-size:cover;background-position:center center;background-repeat:no-repeat;position:relative}#header:after{content:'';position:absolute;right:-5%;bottom:-2.25em;left:-5%;width:110%;height:4.1666666666667em;background:#fff;-webkit-transform:rotate(2.5deg);transform:rotate(2.5deg)}.content-table{display:table;width:100%;height:100%}.content-table .vertical-center{display:table-cell;vertical-align:middle}#content{padding-top:3em;height:73.75em;position:relative;box-sizing:border-box}#content .content-header{text-align:center;max-width:46.666666666667em;margin:0 auto}#content .content-header .logo{margin-bottom:2.5em}#content .content-header .logo img{display:inline-block}#content .content-header h1{margin-bottom:.167em}#content .greeting-box{position:relative;height:23.916666666667em;margin-top:6.25em;color:#bbb}#content .greeting-box .background-svg{position:absolute}#content .greeting-box .background-svg .svg-fill{color:#f4f2f0}#content .greeting-box .background-svg svg polygon{fill:#f4f2f0}#content .greeting-box .content-wrapper{width:43.416666666667em;margin:0 auto;position:relative;z-index:2;text-align:center}#content .greeting-box .content-wrapper .vertical-center{font-family:Arial,Verdana,sans-serif;padding-top:2.0833333333333em}#content .greeting-box .content-wrapper .vertical-center .quote{display:block;margin-top:-.786em;padding-bottom:.786em;height:0;font-size:6.6666666666667em;line-height:0;z-index:10;color:#998674;letter-spacing:-.01em}#content .greeting-box .content-wrapper .vertical-center h3{font-family:Arial,Verdana,sans-serif;font-size:1.6666666666667em;line-height:1.4em;margin-bottom:.8em;color:#bbb}#content .greeting-box .content-wrapper .vertical-center p{font-size:1.6666666666667em;line-height:1.4em;margin:0;word-break:break-word}#content .content-footer{position:absolute;right:0;bottom:1em;left:0}#content .content-footer .left,#content .content-footer .right{display:inline-block;vertical-align:bottom;width:50%;padding:0 4.1666666666667em 0 2.5em;box-sizing:border-box;font-size:1.0833333333333em;line-height:1.692em}#content .content-footer .left p,#content .content-footer .right p{margin:0}#content .content-footer .left p .info,#content .content-footer .right p .info{font-family:Arial,Verdana,sans-serif;color:#fff}#content .content-footer .right{text-align:right;padding-right:2.5em}#content-wrapper.is-dynamic-purchase .greeting-box .content-wrapper{text-align:left}#content-wrapper.value .greeting-box .content-wrapper h3{font-size:2em;line-height:1.333em}#content-wrapper.value .greeting-box .content-wrapper p{font-size:2em;line-height:1.333em}#content-wrapper.product .left-container,#content-wrapper.treatment .left-container,#content-wrapper.stay .left-container{padding:0 4.5833333333333em 0 4.5833333333333em}#content-wrapper.product .left-container ol,#content-wrapper.product .left-container ul,#content-wrapper.treatment .left-container ol,#content-wrapper.treatment .left-container ul,#content-wrapper.stay .left-container ol,#content-wrapper.stay .left-container ul{list-style:none;margin:0;padding:0}#content-wrapper.product .left-container .treatments ul li,#content-wrapper.treatment .left-container .treatments ul li,#content-wrapper.stay .left-container .treatments ul li{font-size:1.1666666666667em;line-height:1.429em}#content-wrapper.product .left-container .treatments ul li .count,#content-wrapper.treatment .left-container .treatments ul li .count,#content-wrapper.stay .left-container .treatments ul li .count{color:#998674;font-size:.8em;line-height:1.786em;font-weight:700;padding-right:.625em}#content-wrapper.product .left-container .treatments ul li .duration,#content-wrapper.treatment .left-container .treatments ul li .duration,#content-wrapper.stay .left-container .treatments ul li .duration{color:rgba(187,187,187,.5);padding-left:.571em}#content-wrapper.product .left-container .treatments ul li+li,#content-wrapper.treatment .left-container .treatments ul li+li,#content-wrapper.stay .left-container .treatments ul li+li{margin-top:1.0833333333333em}#content-wrapper.product .left-container .inclusive h4,#content-wrapper.treatment .left-container .inclusive h4,#content-wrapper.stay .left-container .inclusive h4{padding-left:2.188em;margin-bottom:1em;text-transform:uppercase}#content-wrapper.product .left-container .inclusive p,#content-wrapper.treatment .left-container .inclusive p,#content-wrapper.stay .left-container .inclusive p{font-size:1.3333333333333em;line-height:1.563em;padding-left:2.5em}#content-wrapper.product .left-container .inclusive ol li,#content-wrapper.product .left-container .inclusive ul li,#content-wrapper.treatment .left-container .inclusive ol li,#content-wrapper.treatment .left-container .inclusive ul li,#content-wrapper.stay .left-container .inclusive ol li,#content-wrapper.stay .left-container .inclusive ul li{font-size:1.1666666666667em;line-height:1.429em;padding-left:2.5em;position:relative}#content-wrapper.product .left-container .inclusive ol li+li,#content-wrapper.product .left-container .inclusive ul li+li,#content-wrapper.treatment .left-container .inclusive ol li+li,#content-wrapper.treatment .left-container .inclusive ul li+li,#content-wrapper.stay .left-container .inclusive ol li+li,#content-wrapper.stay .left-container .inclusive ul li+li{margin-top:1.063em}#content-wrapper.product .left-container .inclusive ol li img,#content-wrapper.product .left-container .inclusive ul li img,#content-wrapper.treatment .left-container .inclusive ol li img,#content-wrapper.treatment .left-container .inclusive ul li img,#content-wrapper.stay .left-container .inclusive ol li img,#content-wrapper.stay .left-container .inclusive ul li img{position:absolute;top:.41666666666667em;left:.16666666666667em;width:.857em;height:.643em}#content-wrapper.product .left-container .treatments+.inclusive,#content-wrapper.treatment .left-container .treatments+.inclusive,#content-wrapper.stay .left-container .treatments+.inclusive{border-top:.083333333333333em solid #ccc;margin-top:1.9166666666667em;padding-top:1.8333333333333em}#content-wrapper.product .left-container .treatments+.inclusive p,#content-wrapper.treatment .left-container .treatments+.inclusive p,#content-wrapper.stay .left-container .treatments+.inclusive p{margin-top:0;font-size:.91666666666667em;line-height:1.429em;padding-left:2em;padding-right:.83333333333333em}#content-wrapper.product .left-container .treatments+.inclusive li,#content-wrapper.treatment .left-container .treatments+.inclusive li,#content-wrapper.stay .left-container .treatments+.inclusive li{font-size:.91666666666667em;line-height:1.818em;padding-left:2.045em}#content-wrapper.product .left-container .treatments+.inclusive li+li,#content-wrapper.treatment .left-container .treatments+.inclusive li+li,#content-wrapper.stay .left-container .treatments+.inclusive li+li{margin-top:.545em}#content-wrapper.treatment .left-container .treatments,#content-wrapper.treatment .left-container .inclusive{padding-left:.83333333333333em}#content-wrapper.stay .left-container .inclusive{padding-left:2.833333em}#content-wrapper.stay .left-container .inclusive h4{padding-left:1.45em}#content-wrapper.stay .left-container .inclusive ul li{padding-left:1.6em}#content-wrapper.stay .left-container .inclusive .stay-information li span{font-size:1em}#content-wrapper.stay .left-container .inclusive ul+.line{margin-top:2em;margin-right:.5em;margin-bottom:1.5em;margin-left:-.5em;height:.1em;background:#dad3cc}#content-wrapper.stay .left-container .inclusive .inclusive-text li{font-size:.9em;line-height:1.9em;padding-left:2.35em}#content-wrapper.stay .left-container .inclusive .inclusive-text li img{font-size:1.15em;top:.45em;left:.23em}#content-wrapper.stay .left-container .inclusive .inclusive-text li+li{margin-top:.5em}#content-wrapper.portrait .greeting-box .background-svg{top:-5.25em;right:0;bottom:0;left:0}#content-wrapper.portrait.product #content,#content-wrapper.portrait.treatment #content,#content-wrapper.portrait.stay #content{padding-top:0}#content-wrapper.portrait.product #content .landscape-friends,#content-wrapper.portrait.treatment #content .landscape-friends,#content-wrapper.portrait.stay #content .landscape-friends{position:absolute;right:0;bottom:15.416666666667em;left:0}#content-wrapper.portrait.product #content .landscape-friends .content-header,#content-wrapper.portrait.treatment #content .landscape-friends .content-header,#content-wrapper.portrait.stay #content .landscape-friends .content-header{position:absolute;right:0;bottom:35em;left:0;max-width:56.666666666667em;width:100%}#content-wrapper.portrait.product #content .landscape-friends .content-header h2,#content-wrapper.portrait.treatment #content .landscape-friends .content-header h2,#content-wrapper.portrait.stay #content .landscape-friends .content-header h2{font-size:2.3333333333333em}#content-wrapper.portrait.product #content .left-container,#content-wrapper.portrait.product #content .greeting-box,#content-wrapper.portrait.treatment #content .left-container,#content-wrapper.portrait.treatment #content .greeting-box,#content-wrapper.portrait.stay #content .left-container,#content-wrapper.portrait.stay #content .greeting-box{display:inline-block;vertical-align:middle;width:50%;box-sizing:border-box;margin-top:0}#content-wrapper.portrait.product #content .left-container,#content-wrapper.portrait.treatment #content .left-container,#content-wrapper.portrait.stay #content .left-container{padding-right:7.5em}#content-wrapper.portrait.product #content .greeting-box .background-svg,#content-wrapper.portrait.treatment #content .greeting-box .background-svg,#content-wrapper.portrait.stay #content .greeting-box .background-svg{width:38.75em;left:auto}#content-wrapper.portrait.product #content .greeting-box .content-wrapper,#content-wrapper.portrait.treatment #content .greeting-box .content-wrapper,#content-wrapper.portrait.stay #content .greeting-box .content-wrapper{width:100%;box-sizing:border-box;padding:0 7.9166666666667em 0 10em;text-align:right}#content-wrapper.portrait.product #content .greeting-box .content-wrapper .quote,#content-wrapper.portrait.treatment #content .greeting-box .content-wrapper .quote,#content-wrapper.portrait.stay #content .greeting-box .content-wrapper .quote{position:absolute;right:.5em;margin-top:-.615em}#content-wrapper.portrait.stay #content .left-container{padding-right:3.5em}#content-wrapper.landscape{width:116.91666666667em}#content-wrapper.landscape.preview-view{font-size:1.98px}#content-wrapper.landscape #header{height:40.083333333333em}#content-wrapper.landscape #header:after{bottom:-3.1666666666667em;height:5.8333333333333em}#content-wrapper.landscape #content{height:41em;padding-top:0}#content-wrapper.landscape #content .landscape-friends{height:30.833333333333em}#content-wrapper.landscape #content .landscape-friends .content-header{position:relative;z-index:1}#content-wrapper.landscape #content .landscape-friends .left-container,#content-wrapper.landscape #content .landscape-friends .content-header,#content-wrapper.landscape #content .landscape-friends .greeting-box{display:inline-block;vertical-align:middle;width:50%;height:100%;max-width:none;box-sizing:border-box}#content-wrapper.landscape #content .landscape-friends .greeting-box{margin-top:0;padding:0 7.9166666666667em 0 10em}#content-wrapper.landscape #content .landscape-friends .greeting-box .background-svg{top:-2.8333333333333em;right:-.16666666666667em;width:57.666666666667em;height:32.666666666667em}#content-wrapper.landscape #content .landscape-friends .greeting-box .content-wrapper{width:100%;text-align:left}#content-wrapper.landscape #content .landscape-friends .greeting-box .content-wrapper .vertical-center{padding-top:0}#content-wrapper.landscape #content .landscape-friends .greeting-box .content-wrapper .vertical-center .quote{position:absolute;left:-.611em;margin-top:-.615em}#content-wrapper.landscape #content .right p{max-width:28.333333333333em;margin-left:auto}#content-wrapper.landscape.product #content .landscape-friends .left-container,#content-wrapper.landscape.product #content .landscape-friends .content-header,#content-wrapper.landscape.product #content .landscape-friends .greeting-box,#content-wrapper.landscape.treatment #content .landscape-friends .left-container,#content-wrapper.landscape.treatment #content .landscape-friends .content-header,#content-wrapper.landscape.treatment #content .landscape-friends .greeting-box,#content-wrapper.landscape.stay #content .landscape-friends .left-container,#content-wrapper.landscape.stay #content .landscape-friends .content-header,#content-wrapper.landscape.stay #content .landscape-friends .greeting-box{width:33.33%}#content-wrapper.landscape.product #content .landscape-friends .content-header,#content-wrapper.landscape.treatment #content .landscape-friends .content-header,#content-wrapper.landscape.stay #content .landscape-friends .content-header{padding:0 1.6666666666667em}#content-wrapper.landscape.product #content .landscape-friends .content-header h2,#content-wrapper.landscape.treatment #content .landscape-friends .content-header h2,#content-wrapper.landscape.stay #content .landscape-friends .content-header h2{font-size:2.3333333333333em;line-height:1.429em}#content-wrapper.landscape.product #content .landscape-friends .greeting-box,#content-wrapper.landscape.treatment #content .landscape-friends .greeting-box,#content-wrapper.landscape.stay #content .landscape-friends .greeting-box{padding:0 6.4166666666667em 0 5em}#content-wrapper.landscape.product #content .landscape-friends .greeting-box .background-svg,#content-wrapper.landscape.treatment #content .landscape-friends .greeting-box .background-svg,#content-wrapper.landscape.stay #content .landscape-friends .greeting-box .background-svg{width:100%}#content-wrapper.landscape.product #content .landscape-friends .greeting-box .content-wrapper,#content-wrapper.landscape.treatment #content .landscape-friends .greeting-box .content-wrapper,#content-wrapper.landscape.stay #content .landscape-friends .greeting-box .content-wrapper{text-align:right}#content-wrapper.landscape.product #content .landscape-friends .greeting-box .content-wrapper .quote,#content-wrapper.landscape.treatment #content .landscape-friends .greeting-box .content-wrapper .quote,#content-wrapper.landscape.stay #content .landscape-friends .greeting-box .content-wrapper .quote{right:-.513em;left:auto}#content-wrapper.product.pdf-view.landscape .greeting-box .background-svg .svg,#content-wrapper.treatment.pdf-view.landscape .greeting-box .background-svg .svg,#content-wrapper.stay.pdf-view.landscape .greeting-box .background-svg .svg{width:1150px;height:900px;position:absolute;top:0;right:-74px;bottom:0}#content-wrapper.product.pdf-view.portrait .greeting-box .background-svg .svg,#content-wrapper.treatment.pdf-view.portrait .greeting-box .background-svg .svg,#content-wrapper.stay.pdf-view.portrait .greeting-box .background-svg .svg{width:1200px;height:850px;position:absolute;top:0;right:-74px;bottom:0}#content-wrapper.value.pdf-view.landscape .greeting-box .background-svg .svg{width:1560px;height:900px}#content-wrapper.value.pdf-view.portrait .greeting-box .background-svg{left:-310px}#content-wrapper.value.pdf-view.portrait .greeting-box .background-svg .svg{width:2850px;height:870px}#content .content-header .logo img{max-height:6.8em!important}\n        </style>\n            <meta charset=\"utf-8\"/>\n    <meta name=\"format-detection\" content=\"telephone=no\">\n</head>\n<body>\n    <div id=\"content-wrapper\" class=\"value portrait\" style=\"\">\n        <div id=\"header\" style=\"background-image: url(https://staging.voucher.additive-apps.tech/testhotel-post-com/media/4437e967-d4e5-4a98-8584-34ff0844482a?t=1920x1051&amp;ts=1712049145);\"></div>\n        <div id=\"content\">\n            <div class=\"landscape-friends\">\n                <div class=\"content-header\">\n                    <div class=\"content-table\">\n                        <div class=\"vertical-center\">\n                            <div class=\"logo\">\n                                                                        <img src=\"https://staging.account.additive-apps.tech/api/redirect?destination=aHR0cHM6Ly9hZGRpdGl2ZS1hY2NvdW50LXN0YWdpbmcuczMuZXUtY2VudHJhbC0xLmFtYXpvbmF3cy5jb20vb3JnYW5pemF0aW9ucy90ZXN0aG90ZWwtcG9zdC1jb20vY29ycG9yYXRlLWRlc2lnbi9sb2dvLWRlZmF1bHQtMHg0ODA/dHM9MTcxMDg1ODc2NQ==&amp;ts=1710858765\" />\n                                                                </div>\n                            <h1>Gutschein</h1>\n                            <h2>50,00 CHF</h2>\n                        </div>\n                    </div>\n                </div><!--\n             --><div class=\"greeting-box\">\n                    <div class=\"background-svg\">\n                                                        <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 992 392\" style=\"enable-background:new 0 0 992 392;\" xml:space=\"preserve\">\n                                <polygon points=\"992,0 0,63 0,353 992,392 \"></polygon>\n                            </svg>\n                                                </div>\n                    <div class=\"content-wrapper content-table\">\n                        <div class=\"vertical-center\">\n                            <span class=\"quote\">&bdquo;</span>\n                                                                <h3>Max,</h3>\n                                                            <p>Viel Freude beim Einlösen Deines Gutscheins. Lass es Dir gut gehen und genieße die erholsamen Stunden.</p>\n                        </div>\n                    </div>\n                    <div class=\"bottom-slant\"></div>\n                </div>\n            </div>\n            <div class=\"content-footer\">\n                <div class=\"left\">\n                    <p>\n                        Testhotel Post<br/>\n                        Unterbergstraße 50, 5611 Großarl, Salzburg, Österreich<br/>\n                                                        +39 0473538811<br/>\n                                                    test@world.wtfr<br/>\n                        www.testhotel-post.com\n                    </p>\n                </div><div class=\"right\">\n                    <p>\n                        Ausgestellt am: 02.04.24<br/>\n                        Einzulösen bis:\n                                                        06.10.28<br/>\n                                                    Bestellnummer 2024-04<br/>\n                                                        Gutscheincode ABCD-EFGH-JKLM<br>\n                                                                                    <span class=\"info\">Gutschein ist nicht in Bargeld einlösbar. Gültigkeit 1 Jahr 1ab Ausstellungsdatum (wenn nicht randers angegeben) 💸3</span>\n                                                </p>\n                </div>\n            </div>\n        </div>\n    </div>\n</body>\n</html>`;\n});","define(\"additive-mc/mirage/routes/widgets/corporate-design\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.CorporateDesignRoutes = void 0;\n  const CorporateDesignRoutes = self => {\n    self.get('/corporate-design', _ref => {\n      let {\n        widgets\n      } = _ref;\n      return {\n        corporateDesign: {\n          typography: {\n            p: {\n              color: 'main',\n              serif: true,\n              fontSize: '20px',\n              fontFamily: 'primary.light',\n              lineHeight: '24px'\n            },\n            h1: {\n              color: 'main',\n              serif: true,\n              fontSize: '48px',\n              fontFamily: 'primary.light',\n              lineHeight: '56px'\n            },\n            h2: {\n              color: 'main',\n              serif: true,\n              fontSize: '40px',\n              fontFamily: 'primary.bold',\n              lineHeight: '48px'\n            },\n            h3: {\n              color: 'main',\n              serif: true,\n              fontSize: '28px',\n              fontFamily: 'primary.light',\n              lineHeight: '28px'\n            },\n            label: {\n              color: 'main',\n              serif: true,\n              fontSize: '11px',\n              fontFamily: 'primary.light',\n              lineHeight: '16px'\n            },\n            small: {\n              color: 'main',\n              serif: true,\n              fontSize: '14px',\n              fontFamily: 'primary.normal',\n              lineHeight: '20px'\n            },\n            button: {\n              color: 'accent',\n              serif: true,\n              fontSize: '14px',\n              fontFamily: 'primary.normal',\n              lineHeight: '20px'\n            }\n          },\n          colors: {\n            main: {\n              color: '#3d3d3d',\n              contrastColor: '#ffffff'\n            },\n            accent: {\n              color: '#efefef',\n              contrastColor: '#000'\n            },\n            ambient: {\n              color: '#ffffff',\n              contrastColor: '#111221'\n            }\n          },\n          logoUrl: 'organizations/testhotel-post-com/corporate-design/logo-default',\n          alternativeLogoUrl: 'organizations/testhotel-post-com/corporate-design/logo-alternative',\n          fonts: {\n            secondary: {\n              id: '39038e15-9fe5-41bc-b3f2-8cd7cc6da909',\n              fontFamily: 'Test',\n              serif: true,\n              normal: {\n                id: 'a339cfcd-ab87-4431-913b-1305c8cfe67d',\n                fontFamily: 'Test',\n                weight: 400,\n                url: 'https://staging.account.additive-apps.tech/api/redirect?destination=aHR0cHM6Ly9hZGRpdGl2ZS1hY2NvdW50LXN0YWdpbmcuczMuZXUtY2VudHJhbC0xLmFtYXpvbmF3cy5jb20vb3JnYW5pemF0aW9ucy82OTA3L2ZvbnRzLzM5MDM4ZTE1LTlmZTUtNDFiYy1iM2YyLThjZDdjYzZkYTkwOS9ub3JtYWwub3RmP3RzPTE2MTc5NzQ0NzU=&ts=1617974475',\n                mimeType: 'font/otf'\n              },\n              bold: {\n                id: '2bf44987-e90e-4183-a84a-102b85131deb',\n                fontFamily: 'Test',\n                weight: 700,\n                url: 'https://staging.account.additive-apps.tech/api/redirect?destination=aHR0cHM6Ly9hZGRpdGl2ZS1hY2NvdW50LXN0YWdpbmcuczMuZXUtY2VudHJhbC0xLmFtYXpvbmF3cy5jb20vb3JnYW5pemF0aW9ucy82OTA3L2ZvbnRzLzM5MDM4ZTE1LTlmZTUtNDFiYy1iM2YyLThjZDdjYzZkYTkwOS9ib2xkLm90Zj90cz0xNjE3OTc0NDc1&ts=1617974475',\n                mimeType: 'font/otf'\n              }\n            },\n            primary: {\n              id: '0de530c8-7fc2-4046-816d-5e60654671b8',\n              fontFamily: 'museo-sans',\n              serif: true,\n              light: {\n                id: 'b3aae535-81cc-482e-9fd7-18ededd6bc8a',\n                fontFamily: 'museo-sans',\n                weight: 200,\n                url: 'https://staging.account.additive-apps.tech/api/redirect?destination=aHR0cHM6Ly9hZGRpdGl2ZS1hY2NvdW50LXN0YWdpbmcuczMuZXUtY2VudHJhbC0xLmFtYXpvbmF3cy5jb20vb3JnYW5pemF0aW9ucy82OTA3L2ZvbnRzLzBkZTUzMGM4LTdmYzItNDA0Ni04MTZkLTVlNjA2NTQ2NzFiOC9saWdodC53b2ZmMj90cz0xNjE3OTc0NDc1&ts=1617974475',\n                mimeType: 'font/woff2'\n              },\n              normal: {\n                id: '73f540be-06d6-46ba-a4ec-34a27ceaa803',\n                fontFamily: 'museo-sans',\n                weight: 400,\n                url: 'https://staging.account.additive-apps.tech/api/redirect?destination=aHR0cHM6Ly9hZGRpdGl2ZS1hY2NvdW50LXN0YWdpbmcuczMuZXUtY2VudHJhbC0xLmFtYXpvbmF3cy5jb20vb3JnYW5pemF0aW9ucy82OTA3L2ZvbnRzLzBkZTUzMGM4LTdmYzItNDA0Ni04MTZkLTVlNjA2NTQ2NzFiOC9ub3JtYWwub3RmP3RzPTE2MTc5NzQ0NzU=&ts=1617974475',\n                mimeType: 'font/otf'\n              },\n              bold: {\n                id: '7fc5e51b-40df-4051-8079-48971164747e',\n                fontFamily: 'museo-sans',\n                weight: 700,\n                url: 'https://staging.account.additive-apps.tech/api/redirect?destination=aHR0cHM6Ly9hZGRpdGl2ZS1hY2NvdW50LXN0YWdpbmcuczMuZXUtY2VudHJhbC0xLmFtYXpvbmF3cy5jb20vb3JnYW5pemF0aW9ucy82OTA3L2ZvbnRzLzBkZTUzMGM4LTdmYzItNDA0Ni04MTZkLTVlNjA2NTQ2NzFiOC9ib2xkLm90Zj90cz0xNjE3OTc0NDc1&ts=1617974475',\n                mimeType: 'font/otf'\n              }\n            }\n          }\n        }\n      };\n    });\n  };\n  _exports.CorporateDesignRoutes = CorporateDesignRoutes;\n});","define(\"additive-mc/mirage/routes/widgets/widgets\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.WidgetRoutes = void 0;\n  const WidgetRoutes = self => {\n    self.get('/widgets', _ref => {\n      let {\n        widgets\n      } = _ref;\n      const widgetModels = widgets.all();\n      return {\n        widgets: widgetModels.models,\n        meta: {\n          total: widgetModels.models.length\n        }\n      };\n    });\n    self.get('/widgets/:id', (_ref2, request) => {\n      let {\n        widgets\n      } = _ref2;\n      const {\n        id\n      } = request.params;\n      return widgets.find(id);\n    });\n    self.del('/widgets/:id', (_ref3, request) => {\n      let {\n        widgets\n      } = _ref3;\n      const {\n        id\n      } = request.params;\n      widgets.find(id).destroy();\n    });\n    self.post('/widgets', (_ref4, request) => {\n      let {\n        widgets\n      } = _ref4;\n      let body = JSON.parse(request.requestBody);\n      return widgets.create(body);\n    });\n    self.put('/widgets/:id', (_ref5, request) => {\n      let {\n        widgets\n      } = _ref5;\n      const {\n        id\n      } = request.params;\n      let body = JSON.parse(request.requestBody);\n      return widgets.find(id).update(body);\n    });\n  };\n  _exports.WidgetRoutes = WidgetRoutes;\n});","define(\"additive-mc/mirage/scenarios/app/default\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  /**\n   * This is the default scenario for normal app-use (development, staging)\n   */\n  function _default(server) {\n    // campaign lists\n    server.createList('on-page-campaign', 3);\n    server.createList('search-ad-campaign', 3);\n    server.createList('trigger-email-campaign', 3);\n\n    // email-campaigns\n    // server.create('email-campaign', { code: 'usecase11' });\n    server.createList('email-campaign', Math.floor(Math.random() * 4) + 4);\n    server.createList('ad-campaign', Math.floor(Math.random() * 5) + 4);\n    server.createList('ad-facebook', Math.floor(Math.random() * 5) + 4);\n\n    // reports data\n    server.createList('value-added', 10);\n    server.createList('advertisement', 10);\n    server.createList('advertisement', 10, 'leadAd');\n    server.createList('advertisement', 10, 'tiktokLeadAd');\n\n    // Catalog-ad depictions\n    // server.createList('depiction', 10);\n    server.createList('extension', 5);\n    server.createList('target-group', 5);\n    server.createList('search-ad-template', 5);\n    server.createList('search-ad', 5);\n\n    // campaign lists\n    server.createList('social-preview', 3);\n    server.createList('email-preview', 10);\n    server.createList('ad-preview', 5);\n    server.createList('subscriber', 100);\n    server.createList('reports-social-posting', 4);\n    server.createList('reports-email', 4);\n    server.createList('reports-ad', 4);\n\n    // past marketing action lists\n    server.createList('social-past-marketing-action', 20);\n    server.createList('email-past-marketing-action', 20);\n    server.createList('ad-past-marketing-action', 20);\n    server.createList('widget', 10);\n    server.create('setting');\n    server.create('legal');\n    server.passthrough('https://staging.account.additive-apps.tech/**');\n    server.passthrough('https://api.staging.multimedia.additive-apps.tech/**');\n    server.passthrough('https://api.staging.marketing-automation.additive-apps.tech/**');\n\n    /**\n     * Some role/plan mocked organizations:\n     *\n     * marsinator-big:\n     *  - plan: starter_yearly\n     *  - user-role: member\n     * stefaner-com:\n     *  - plan: starter_yearly\n     *  - user-role: admin\n     * marsinator2-big:\n     *  - plan: professional_yearly\n     *  - user-role: manager\n     * testhotel-post-com:\n     *  - plan: enterprise_yearly\n     *  - user-role: admin\n     * profi-marsinator-big-2:\n     *  - plan: professional_yearly\n     *  - user-role: admin\n     *  - but not partner\n     */\n    server.get(`${server.urlPrefix}/marsinator-big`, () => {\n      let json = {\n        organization: {\n          contentLanguages: ['de', 'en', 'it'],\n          defaultLanguage: 'de',\n          planName: 'starter_yearly',\n          currency: 'CHF'\n        }\n      };\n      return json;\n    });\n    server.get(`${server.urlPrefix}/marsinator-big/me`, () => {\n      let json = {\n        id: 'ec156759-fcdd-41a3-9b7b-201fe6bd2e3e',\n        email: 'member@additive.eu',\n        fullName: 'Member',\n        role: 'member',\n        language: 'de',\n        isPartner: true,\n        isAdditive: true\n      };\n      return json;\n    });\n    server.get(`${server.urlPrefix}/stefaner-com`, () => {\n      let json = {\n        organization: {\n          contentLanguages: ['de', 'en', 'it'],\n          defaultLanguage: 'de',\n          planName: 'starter_yearly',\n          currency: 'EUR'\n        }\n      };\n      return json;\n    });\n    server.get(`${server.urlPrefix}/stefaner-com/me`, () => {\n      let json = {\n        id: 'ec156759-fcdd-41a3-9b7b-201fe6bd2e3e',\n        email: 'admin@additive.eu',\n        fullName: 'Admin',\n        role: 'admin',\n        language: 'en',\n        isPartner: true,\n        isAdditive: true\n      };\n      return json;\n    });\n    server.get(`${server.urlPrefix}/marsinator2-big`, () => {\n      let json = {\n        organization: {\n          contentLanguages: ['de', 'en', 'it'],\n          defaultLanguage: 'de',\n          planName: 'professional_yearly',\n          currency: 'CHF'\n        }\n      };\n      return json;\n    });\n    server.get(`${server.urlPrefix}/marsinator2-big/me`, () => {\n      let json = {\n        id: 'ec156759-fcdd-41a3-9b7b-201fe6bd2e3e',\n        email: 'manager@additive.eu',\n        fullName: 'Manager',\n        role: 'manager',\n        language: 'de',\n        isPartner: true,\n        isAdditive: true\n      };\n      return json;\n    });\n    server.get(`${server.urlPrefix}/testhotel-post-com`, () => {\n      let json = {\n        organization: {\n          contentLanguages: ['de', 'en', 'it'],\n          defaultLanguage: 'en',\n          planName: 'enterprise_yearly',\n          currency: 'EUR'\n        }\n      };\n      return json;\n    });\n    server.get(`${server.urlPrefix}/belvedere-hotel-it`, () => {\n      let json = {\n        organization: {\n          contentLanguages: ['de', 'en', 'it'],\n          defaultLanguage: 'de',\n          planName: 'enterprise_yearly',\n          currency: 'EUR'\n        }\n      };\n      return json;\n    });\n    server.get(`${server.urlPrefix}/testhotel-post-com/me`, () => {\n      let json = {\n        id: 'ec156759-fcdd-41a3-9b7b-201fe6bd2e3e',\n        email: 'admin@additive.eu',\n        fullName: 'Admin',\n        role: 'admin',\n        language: 'en',\n        isPartner: true,\n        isAdditive: true\n      };\n      return json;\n    });\n    server.get(`${server.urlPrefix}/profi-marsinator-big-2`, () => {\n      let json = {\n        organization: {\n          contentLanguages: ['de', 'en', 'it'],\n          defaultLanguage: 'de',\n          planName: 'professional_yearly',\n          currency: 'CHF'\n        }\n      };\n      return json;\n    });\n    server.get(`${server.urlPrefix}/profi-marsinator-big-2/me`, () => {\n      let json = {\n        id: 'ec156759-fcdd-41a3-9b7b-201fe6bd2e3e',\n        email: 'admin@additive.eu',\n        fullName: 'non-partner-Admin',\n        role: 'admin',\n        language: 'de',\n        isPartner: false,\n        isAdditive: false\n      };\n      return json;\n    });\n    server.passthrough(`${server.urlPrefix}/${server.namespace}`);\n  }\n});","define(\"additive-mc/mirage/scenarios/default\", [\"exports\", \"additive-mc/mirage/scenarios/app/default\"], function (_exports, _default2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default(server) {\n    (0, _default2.default)(server);\n  }\n});","define(\"additive-mc/mirage/scenarios/organization\", [\"exports\", \"additive-mc/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.starter = _exports.professional = _exports.enterprise = void 0;\n  const DEFAULTS = {\n    contentLanguages: ['de', 'en', 'it'],\n    defaultLanguage: 'de',\n    currency: 'EUR'\n  };\n  const accountApiRequests = (server, orgSlug) => {\n    server.get(`${_environment.default.APP.accountApiHost}/api/organizations`, schema => {\n      return schema.organizations.all();\n    });\n    server.get(`${_environment.default.APP.accountApiHost}/api/organizations/${orgSlug}`, schema => {\n      return schema.organizations.findBy({\n        id: orgSlug\n      });\n    });\n    server.get(`${_environment.default.APP.accountApiHost}/api/organizations/${orgSlug}/apps`, schema => {\n      return schema.organizations.findBy({\n        id: orgSlug\n      });\n    });\n  };\n  const starter = _exports.starter = function starter(server) {\n    let orgSlug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'test-org';\n    server.get(`${server.urlPrefix}/${orgSlug}`, () => {\n      return {\n        organization: Object.assign({}, DEFAULTS, {\n          planName: 'starter_yearly'\n        })\n      };\n    });\n    accountApiRequests(server, orgSlug);\n  };\n  const professional = _exports.professional = function professional(server) {\n    let orgSlug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'test-org';\n    server.get(`${server.urlPrefix}/${orgSlug}`, () => {\n      return {\n        organization: Object.assign({}, DEFAULTS, {\n          planName: 'professional_yearly'\n        })\n      };\n    });\n    accountApiRequests(server, orgSlug);\n  };\n  const enterprise = _exports.enterprise = function enterprise(server) {\n    let orgSlug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'test-org';\n    server.get(`${server.urlPrefix}/${orgSlug}`, () => {\n      return {\n        organization: Object.assign({}, DEFAULTS, {\n          planName: 'enterprise_yearly'\n        })\n      };\n    });\n    accountApiRequests(server, orgSlug);\n  };\n});","define(\"additive-mc/mirage/scenarios/test/default\", [\"exports\", \"additive-mc/mirage/scenarios/organization\", \"additive-mc/mirage/scenarios/user\"], function (_exports, _organization, _user) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.DEFAULT_ORG_ID = void 0;\n  const DEFAULT_ORG_ID = _exports.DEFAULT_ORG_ID = 'test-org';\n  var _default = _exports.default = function _default(server) {\n    let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n      loadOrganization: true,\n      loadUser: true\n    };\n    server.create('organization', {\n      id: DEFAULT_ORG_ID\n    });\n    server.create('user');\n    server.create('user', {\n      role: 'manager'\n    });\n    server.create('user', {\n      role: 'admin'\n    });\n    options.loadOrganization && (0, _organization.starter)(server);\n    options.loadUser && (0, _user.partnerMember)(server);\n  };\n});","define(\"additive-mc/mirage/scenarios/user\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.partnerMember = _exports.partnerManager = _exports.partnerAdmin = void 0;\n  const partnerMember = _exports.partnerMember = function partnerMember(server) {\n    let orgSlug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'test-org';\n    server.get(`/me`, schema => {\n      return schema.users.findBy({\n        isPartner: true,\n        role: 'member'\n      });\n    });\n  };\n  const partnerManager = _exports.partnerManager = function partnerManager(server) {\n    let orgSlug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'test-org';\n    server.get(`/me`, schema => {\n      return schema.users.findBy({\n        isPartner: true,\n        role: 'manager'\n      });\n    });\n  };\n  const partnerAdmin = _exports.partnerAdmin = function partnerAdmin(server) {\n    let orgSlug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'test-org';\n    server.get(`/me`, schema => {\n      return schema.users.findBy({\n        isPartner: true,\n        role: 'admin'\n      });\n    });\n  };\n});","define(\"additive-mc/mirage/serializers/application\", [\"exports\", \"ember-cli-mirage\"], function (_exports, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _emberCliMirage.RestSerializer.extend({});\n});","define(\"additive-mc/mirage/serializers/email-campaign-voucher\", [\"exports\", \"additive-mc/mirage/serializers/application\", \"@ember/array\"], function (_exports, _application, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    serialize(object, request) {\n      // super call\n      let json = _application.default.prototype.serialize.apply(this, arguments);\n\n      // Some multilingual-fake behavior\n      const languageBehavior = (entity, newLanguage) => {\n        if (!newLanguage) {\n          return entity;\n        }\n\n        // Update language property depending on `Accept-Langauge` header\n        if (entity.language !== newLanguage) {\n          entity.language = newLanguage;\n        }\n\n        // Add language in front of multilingual-property. to make language change visible.\n        entity.policies = `${entity.policies}<p>${newLanguage}</p>`;\n        entity.buttonText = `${entity.buttonText}-${newLanguage}`;\n        return entity;\n      };\n      if ((0, _array.isArray)(object)) {\n        json.emailCampaignVouchers && json.emailCampaignVouchers.forEach((entity, key) => {\n          json.emailCampaignVouchers[key] = languageBehavior(entity, request.requestHeaders['Accept-Language']);\n        });\n      } else {\n        json.contribution = languageBehavior(json.emailCampaignVoucher, request.requestHeaders['Accept-Language']);\n        delete json.emailCampaignVoucher;\n      }\n      return json;\n    }\n  });\n});","define(\"additive-mc/mirage/serializers/email-campaign\", [\"exports\", \"additive-mc/mirage/serializers/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    serialize(object, request) {\n      // super call\n      let json = _application.default.prototype.serialize.apply(this, arguments);\n\n      // embed emails and emailSeries for new detail view, TODO: remove restriction for pre-stay-campaign\n      if (request.params.id && object.type === 'pre-stay-campaign') {\n        json.emailCampaign.emailSeries = object.emailSeries.models.map(emailSeries => {\n          const emails = emailSeries.emails.models;\n          emailSeries = Object.assign({}, emailSeries.attrs, {\n            emails\n          });\n          return emailSeries;\n        });\n      }\n      return json;\n    }\n  });\n});","define(\"additive-mc/mirage/serializers/email-series\", [\"exports\", \"additive-mc/mirage/serializers/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    serialize(object, request) {\n      // super call\n      let json = _application.default.prototype.serialize.apply(this, arguments);\n\n      // embed emails\n      json.emailSeries.emails = object.emails.models;\n      return json;\n    }\n  });\n});","define(\"additive-mc/mirage/serializers/email\", [\"exports\", \"additive-mc/mirage/serializers/application\", \"@ember/array\"], function (_exports, _application, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    keyForForeignKey(relationshipName) {\n      if (relationshipName === 'campaign') {\n        return 'organisationCampaignId';\n      }\n\n      // super call\n      return _application.default.prototype.keyForForeignKey.apply(this, arguments);\n    },\n    serialize(object, request) {\n      // super call\n      let json = _application.default.prototype.serialize.apply(this, arguments);\n\n      // Some multilingual-fake behavior\n      const languageBehavior = (entity, newLanguage) => {\n        if (!newLanguage) {\n          return entity;\n        }\n\n        // Update language property depending on `Accept-Langauge` header\n        if (entity.language !== newLanguage) {\n          entity.language = newLanguage;\n        }\n\n        // Add language in front of multilingual-property. to make language change visible.\n        entity.subject = `${newLanguage}-${entity.subject}`;\n        entity.body = `${newLanguage}-${entity.body}`;\n        return entity;\n      };\n      if ((0, _array.isArray)(object)) {\n        json.emails && json.emails.forEach((entity, key) => {\n          json.emails[key] = languageBehavior(entity, request.requestHeaders['Accept-Language']);\n          json.emails[key].organisationCampaignId = parseInt(json.emails[key].organisationCampaignId);\n        });\n      } else {\n        json.email = languageBehavior(json.email, request.requestHeaders['Accept-Language']);\n        json.organisationCampaignId = parseInt(json.organisationCampaignId);\n      }\n      return json;\n    }\n  });\n});","define(\"additive-mc/mirage/serializers/landingpage\", [\"exports\", \"additive-mc/mirage/serializers/application\", \"@ember/array\"], function (_exports, _application, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    serialize(object, request) {\n      // super call\n      let json = _application.default.prototype.serialize.apply(this, arguments);\n\n      // Some multilingual-fake behavior\n      const languageBehavior = (entity, newLanguage) => {\n        if (!newLanguage) {\n          return entity;\n        }\n\n        // Update language property depending on `Accept-Langauge` header\n        if (entity.language !== newLanguage) {\n          entity.language = newLanguage;\n        }\n\n        // Add language in front of multilingual-property. to make language change visible.\n        entity.policies = `${entity.policies}<p>${newLanguage}</p>`;\n        entity.buttonText = `${entity.buttonText}-${newLanguage}`;\n        return entity;\n      };\n      if ((0, _array.isArray)(object)) {\n        json.landingpages && json.landingpages.forEach((entity, key) => {\n          json.landingpages[key] = languageBehavior(entity, request.requestHeaders['Accept-Language']);\n        });\n      } else {\n        json.landingpage = languageBehavior(json.landingpage, request.requestHeaders['Accept-Language']);\n      }\n      return json;\n    }\n  });\n});","define(\"additive-mc/mirage/serializers/legal\", [\"exports\", \"additive-mc/mirage/serializers/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    keyForModel(modelName) {\n      return 'legals';\n    },\n    serialize(object, request) {\n      // super call\n      let json = _application.default.prototype.serialize.apply(this, arguments);\n\n      // Some multilingual-fake behavior\n      const languageBehavior = (entity, newLanguage) => {\n        if (!newLanguage) {\n          return entity;\n        }\n\n        // Update language property depending on `Accept-Langauge` header\n        if (entity.language !== newLanguage) {\n          entity.language = newLanguage;\n        }\n\n        // Add language in front of multilingual-property. to make language change visible.\n        entity.privacyUrl.value = `${entity.privacyUrl.value}-${newLanguage}.com`;\n        entity.privacyUrl.syncedValue = `${entity.privacyUrl.syncedValue}-${newLanguage}.com`;\n        entity.disclaimerUrl.value = `${entity.disclaimerUrl.value}-${newLanguage}.com`;\n        entity.disclaimerUrl.syncedValue = `${entity.disclaimerUrl.syncedValue}-${newLanguage}.com`;\n        entity.requestConditions = `${newLanguage}-${entity.requestConditions}`;\n        entity.bookingConditions = `${newLanguage}-${entity.bookingConditions}`;\n        return entity;\n      };\n      json.legals = languageBehavior(json.legals, request.requestHeaders['accept-language']);\n      return json;\n    }\n  });\n});","define(\"additive-mc/mirage/serializers/on-page-content\", [\"exports\", \"additive-mc/mirage/serializers/application\", \"@ember/array\"], function (_exports, _application, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    keyForForeignKey(relationshipName) {\n      if (relationshipName === 'campaign') {\n        return 'organisationCampaignId';\n      }\n\n      // super call\n      return _application.default.prototype.keyForForeignKey.apply(this, arguments);\n    },\n    serialize(object, request) {\n      // super call\n      let json = _application.default.prototype.serialize.apply(this, arguments);\n\n      // Some multilingual-fake behavior\n      const languageBehavior = (entity, newLanguage) => {\n        if (!newLanguage) {\n          return entity;\n        }\n\n        // Update language property depending on `Accept-Langauge` header\n        if (entity.language !== newLanguage) {\n          entity.language = newLanguage;\n        }\n\n        // Add language in front of multilingual-property. to make language change visible.\n        entity.headline = `${newLanguage}-${entity.headline}`;\n        entity.text = `${newLanguage}-${entity.text}`;\n        return entity;\n      };\n      if ((0, _array.isArray)(object)) {\n        json.contents && json.contents.forEach((entity, key) => {\n          json.contents[key] = languageBehavior(entity, request.requestHeaders['Accept-Language']);\n          json.contents[key].organisationCampaignId = parseInt(json.contents[key].organisationCampaignId);\n        });\n      } else {\n        json.contents = languageBehavior(json.contents, request.requestHeaders['Accept-Language']);\n        json.organisationCampaignId = parseInt(json.organisationCampaignId);\n      }\n      return json;\n    }\n  });\n});","define(\"additive-mc/mirage/serializers/promotions\", [\"exports\", \"additive-mc/mirage/serializers/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    root: false,\n    embed: true\n  });\n});","define(\"additive-mc/mirage/serializers/setting\", [\"exports\", \"additive-mc/mirage/serializers/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    keyForModel(modelName) {\n      return 'settings';\n    }\n  });\n});","define(\"additive-mc/mirage/serializers/trigger-email-campaign\", [\"exports\", \"additive-mc/mirage/serializers/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    serialize(object, request) {\n      // super call\n      let json = _application.default.prototype.serialize.apply(this, arguments);\n\n      // embed emails and emailSeries for new detail view,\n      // TODO: remove restriction for trigger-campaign\n      if (request.params.id && object.type === 'trigger-campaign') {\n        json.triggerEmailCampaign.emailSeries = object.emailSeries.models.map(emailSeries => {\n          const emails = emailSeries.emails.models;\n          emailSeries = Object.assign({}, emailSeries.attrs, {\n            emails\n          });\n          return emailSeries;\n        });\n      }\n      return json;\n    }\n  });\n});","define(\"additive-mc/mirage/serializers/trigger-email-series\", [\"exports\", \"additive-mc/mirage/serializers/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    serialize(object, request) {\n      // super call\n      let json = _application.default.prototype.serialize.apply(this, arguments);\n\n      // embed emails\n      json.emailSeries.emails = object.emails.models;\n      return json;\n    }\n  });\n});","define(\"additive-mc/mirage/serializers/trigger-email\", [\"exports\", \"additive-mc/mirage/serializers/application\", \"@ember/array\"], function (_exports, _application, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    keyForForeignKey(relationshipName) {\n      if (relationshipName === 'campaign') {\n        return 'organisationCampaignId';\n      }\n\n      // super call\n      return _application.default.prototype.keyForForeignKey.apply(this, arguments);\n    },\n    serialize(object, request) {\n      // super call\n      let json = _application.default.prototype.serialize.apply(this, arguments);\n      // Some multilingual-fake behavior\n      const languageBehavior = (entity, newLanguage) => {\n        if (!newLanguage) {\n          return entity;\n        }\n\n        // Update language property depending on `Accept-Langauge` header\n        if (entity.language !== newLanguage) {\n          entity.language = newLanguage;\n        }\n\n        // Add language in front of multilingual-property. to make language change visible.\n        entity.subject = `${newLanguage}-${entity.subject}`;\n        entity.body = `${newLanguage}-${entity.body}`;\n        return entity;\n      };\n      if ((0, _array.isArray)(object)) {\n        json.triggerEmails && json.triggerEmails.forEach((entity, key) => {\n          json.triggerEmails[key] = languageBehavior(entity, request.requestHeaders['Accept-Language']);\n          json.triggerEmails[key].organisationCampaignId = parseInt(json.triggerEmails[key].organisationCampaignId);\n        });\n      } else {\n        json.triggerEmail = languageBehavior(json.triggerEmail, request.requestHeaders['Accept-Language']);\n        json.organisationCampaignId = parseInt(json.organisationCampaignId);\n      }\n      return json;\n    }\n  });\n});","define(\"additive-mc/mirage/serializers/voucher\", [\"exports\", \"additive-mc/mirage/serializers/application\", \"@ember/array\"], function (_exports, _application, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    serialize(object, request) {\n      // super call\n      let json = _application.default.prototype.serialize.apply(this, arguments);\n\n      // Some multilingual-fake behavior\n      const languageBehavior = (entity, newLanguage) => {\n        if (!newLanguage) {\n          return entity;\n        }\n\n        // Update language property depending on `Accept-Langauge` header\n        if (entity.language !== newLanguage) {\n          entity.language = newLanguage;\n        }\n\n        // Add language in front of multilingual-property. to make language change visible.\n        entity.policies = `${entity.policies}<p>${newLanguage}</p>`;\n        entity.buttonText = `${entity.buttonText}-${newLanguage}`;\n        return entity;\n      };\n      if ((0, _array.isArray)(object)) {\n        json.vouchers && json.vouchers.forEach((entity, key) => {\n          json.vouchers[key] = languageBehavior(entity, request.requestHeaders['Accept-Language']);\n        });\n      } else {\n        json.voucher = languageBehavior(json.voucher, request.requestHeaders['Accept-Language']);\n      }\n      return json;\n    }\n  });\n});","define(\"additive-mc/mirage/utils/constants\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.TRIGGER_EMAIL_CAMPAIGN_TYPES = _exports.EMAIL_CAMPAIGN_TYPES = void 0;\n  const EMAIL_CAMPAIGN_TYPES = _exports.EMAIL_CAMPAIGN_TYPES = [{\n    name: 'TODO: usecase1',\n    type: 'convert-ota-to-direct-booker-campaign',\n    code: 'usecase1',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Descriptiony',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'TODO: usecase2a',\n    type: 'reactivate-enquirer-without-booking-campaign',\n    code: 'usecase2a',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Description',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'TODO: usecase2b',\n    type: 'reactivate-lost-guest-campaign',\n    code: 'usecase2b',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Description',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'TODO: usecase3a',\n    type: 'come-back-campaign',\n    code: 'usecase3a',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Description',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'TODO: usecase3b',\n    type: 'come-back-multiple-campaign',\n    code: 'usecase3b',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Description',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'TODO: usecase4',\n    type: 'upselling-for-second-stay-campaign',\n    code: 'usecase4',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Descriptiony',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'TODO: usecase5',\n    type: 'early-booker-benefits-campaign',\n    code: 'usecase5',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Descriptiony',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'TODO: usecase6',\n    type: 'follow-up-on-voucher-campaign',\n    code: 'usecase6',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Descriptiony',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'TODO: usecase7a',\n    type: 'birthday-voucher-from-friends-campaign',\n    code: 'usecase7a',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Description',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'TODO: usecase7b',\n    type: 'birthday-wishes-campaign',\n    code: 'usecase7b',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Description',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'TODO: usecase7c',\n    type: 'birthday-gift-campaign',\n    code: 'usecase7c',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Description',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'TODO: usecase9a',\n    type: 'last-minute-deal-campaign',\n    code: 'usecase9a',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Description',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'TODO: usecase9b',\n    type: 'deals-campaign',\n    code: 'usecase9b',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Description',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'TODO: usecase11',\n    type: 'pre-stay-campaign',\n    code: 'usecase11',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Description',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'TODO: usecase12',\n    type: 'post-stay-campaign',\n    code: 'usecase12',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Description',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }];\n  const TRIGGER_EMAIL_CAMPAIGN_TYPES = _exports.TRIGGER_EMAIL_CAMPAIGN_TYPES = [{\n    name: 'Trigger Email Campaign',\n    type: 'trigger-campaign',\n    code: 'trigger-email',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Description',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }, {\n    name: 'Lead Email Campaign',\n    type: 'lead-campaign',\n    code: 'lead-email',\n    descriptions: {\n      trigger: {\n        event: 'Trigger Text (from API) ...',\n        details: 'Trigger description (from API) ...'\n      },\n      summary: 'TODO: Description',\n      details: [{\n        title: 'Campaign objective',\n        description: 'Encouraging direct bookings from previous online travel agency (OTA) guests.',\n        icon: 'target'\n      }, {\n        title: 'Second detail',\n        description: 'Second description',\n        icon: 'compass'\n      }]\n    },\n    availablityChecks: []\n  }];\n});","define(\"additive-mc/mirage/utils/generate-chart-data\", [\"exports\", \"date-fns\"], function (_exports, _dateFns) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.generateChartData = void 0;\n  const generateChartData = (start, end) => {\n    const startDate = new Date(start);\n    const endDate = new Date(end);\n    const numOfMonths = Math.abs((0, _dateFns.differenceInMonths)(startDate, endDate));\n    const data = {\n      datasets: [{\n        compare: [...Array(numOfMonths).keys()].map(() => Math.floor(Math.random() * 20)),\n        data: [...Array(numOfMonths).keys()].map(() => Math.floor(Math.random() * 40)),\n        format: 'number',\n        label: (0, _dateFns.getYear)(endDate)\n      }, {\n        data: [...Array(numOfMonths).keys()].map(() => Math.floor(Math.random() * 40)),\n        format: 'number',\n        label: (0, _dateFns.getYear)(endDate) - 1\n      }],\n      labels: [...Array(numOfMonths).keys()].map(i => (0, _dateFns.format)((0, _dateFns.addMonths)(new Date(start.toString()), i), 'yyyy-MM')),\n      type: 'compare'\n    };\n    return data;\n  };\n  _exports.generateChartData = generateChartData;\n});","define(\"additive-mc/models/ad-campaign\", [\"exports\", \"additive-mc/models/campaign\", \"@ember-data/model\", \"@ember/object/computed\"], function (_exports, _campaign, _model, _computed) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let CampaignModel = _exports.default = (_dec = (0, _computed.equal)('type', 'FacebookLeadAdCampaign'), _dec2 = (0, _computed.equal)('type', 'TikTokLeadAdCampaign'), _dec3 = (0, _model.attr)('string'), _class = class CampaignModel extends _campaign.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"isLeadAdCampaign\", _descriptor, this);\n      _initializerDefineProperty(this, \"isTikTokLeadAdCampaign\", _descriptor2, this);\n      // content-ad specific\n      _initializerDefineProperty(this, \"campaignGoal\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isLeadAdCampaign\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isTikTokLeadAdCampaign\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"campaignGoal\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/advertisement\", [\"exports\", \"@ember-data/model\", \"@ember/object\", \"@ember/object/computed\", \"@ember/service\", \"@additive-apps/ui/utils/model-action\"], function (_exports, _model, _object, _computed, _service, _modelAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let AdvertisementModel = _exports.default = (_dec = (0, _model.attr)('date'), _dec2 = (0, _model.attr)('date'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)(), _dec7 = (0, _model.attr)('number'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('boolean'), _dec12 = (0, _model.attr)(), _dec13 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec14 = (0, _model.attr)('string'), _dec15 = (0, _model.attr)('string'), _dec16 = (0, _model.attr)('string'), _dec17 = (0, _model.attr)('string'), _dec18 = (0, _model.attr)('boolean'), _dec19 = (0, _model.attr)(), _dec20 = (0, _model.attr)(), _dec21 = (0, _model.attr)(), _dec22 = (0, _model.attr)(), _dec23 = (0, _model.attr)(), _dec24 = (0, _model.attr)(), _dec25 = (0, _model.attr)('boolean'), _dec26 = (0, _model.attr)('string'), _dec27 = (0, _computed.equal)('state', 'published'), _dec28 = (0, _computed.equal)('state', 'paused'), _dec29 = (0, _computed.equal)('state', 'unpublished'), _dec30 = (0, _computed.equal)('state', 'expired'), _dec31 = (0, _computed.equal)('state', 'archived'), _dec32 = (0, _computed.or)('isPublic', 'isDraft', 'isPaused'), _dec33 = (0, _object.computed)('state'), _dec34 = (0, _modelAction.default)(), _dec35 = (0, _modelAction.default)(), _dec36 = (0, _modelAction.default)(), _dec37 = (0, _modelAction.default)(), _dec38 = (0, _modelAction.default)('GET'), _dec39 = (0, _modelAction.default)('PUT', async response => {\n    if (!(response !== null && response !== void 0 && response.ok)) {\n      const {\n        message\n      } = await response.json();\n      throw new Error(message);\n    }\n    const advertisement = await response.json();\n    return advertisement;\n  }), _class = class AdvertisementModel extends _model.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor3, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor4, this);\n      _initializerDefineProperty(this, \"state\", _descriptor5, this);\n      _initializerDefineProperty(this, \"fbPixel\", _descriptor6, this);\n      _initializerDefineProperty(this, \"targetAudience\", _descriptor7, this);\n      _initializerDefineProperty(this, \"budgetSpend\", _descriptor8, this);\n      _initializerDefineProperty(this, \"totalBudget\", _descriptor9, this);\n      _initializerDefineProperty(this, \"label\", _descriptor10, this);\n      _initializerDefineProperty(this, \"campaignPostfix\", _descriptor11, this);\n      _initializerDefineProperty(this, \"type\", _descriptor12, this);\n      _initializerDefineProperty(this, \"unlimitedDuration\", _descriptor13, this);\n      // lead-ad specific\n      _initializerDefineProperty(this, \"adCreative\", _descriptor14, this);\n      _initializerDefineProperty(this, \"isDynamicCreative\", _descriptor15, this);\n      _initializerDefineProperty(this, \"language\", _descriptor16, this);\n      // tiktok-lead-ad specific\n      _initializerDefineProperty(this, \"targetGroup\", _descriptor17, this);\n      _initializerDefineProperty(this, \"identity\", _descriptor18, this);\n      _initializerDefineProperty(this, \"utmParameters\", _descriptor19, this);\n      _initializerDefineProperty(this, \"timeLimited\", _descriptor20, this);\n      _initializerDefineProperty(this, \"timeLimitation\", _descriptor21, this);\n      // content-ad specific\n      _initializerDefineProperty(this, \"targetLanguages\", _descriptor22, this);\n      _initializerDefineProperty(this, \"availableLanguages\", _descriptor23, this);\n      _initializerDefineProperty(this, \"language\", _descriptor24, this);\n      _initializerDefineProperty(this, \"depictions\", _descriptor25, this);\n      _initializerDefineProperty(this, \"budget\", _descriptor26, this);\n      _initializerDefineProperty(this, \"hasBeenPublished\", _descriptor27, this);\n      _initializerDefineProperty(this, \"optimizationEvent\", _descriptor28, this);\n      _initializerDefineProperty(this, \"isPublic\", _descriptor29, this);\n      _initializerDefineProperty(this, \"isPaused\", _descriptor30, this);\n      _initializerDefineProperty(this, \"isDraft\", _descriptor31, this);\n      _initializerDefineProperty(this, \"isExpired\", _descriptor32, this);\n      _initializerDefineProperty(this, \"isArchived\", _descriptor33, this);\n      _initializerDefineProperty(this, \"isActive\", _descriptor34, this);\n      _initializerDefineProperty(this, \"pause\", _descriptor35, this);\n      _initializerDefineProperty(this, \"continue\", _descriptor36, this);\n      _initializerDefineProperty(this, \"publish\", _descriptor37, this);\n      _initializerDefineProperty(this, \"unpublish\", _descriptor38, this);\n      _initializerDefineProperty(this, \"validate\", _descriptor39, this);\n      _initializerDefineProperty(this, \"archive\", _descriptor40, this);\n    }\n    get isLeadAd() {\n      return this.type === 'lead-ad';\n    }\n    get isTiktokLeadAd() {\n      return this.type === 'tiktok-lead-ad';\n    }\n    get image() {\n      var _this$adCreative;\n      return (_this$adCreative = this.adCreative) === null || _this$adCreative === void 0 || (_this$adCreative = _this$adCreative.multimediaVariants) === null || _this$adCreative === void 0 ? void 0 : _this$adCreative.firstObject;\n    }\n    get publishedState() {\n      if (this.state === 'published') {\n        return 'success';\n      } else if (this.state === 'unpublished') {\n        return 'error';\n      } else if (this.state === 'paused') {\n        return 'warning';\n      }\n      return null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"startDate\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"endDate\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"state\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"fbPixel\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"targetAudience\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"budgetSpend\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"totalBudget\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"label\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"campaignPostfix\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"type\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"unlimitedDuration\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"adCreative\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isDynamicCreative\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"language\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"targetGroup\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"identity\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"utmParameters\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"timeLimited\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"timeLimitation\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"targetLanguages\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"availableLanguages\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"language\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"depictions\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"budget\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"hasBeenPublished\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"optimizationEvent\", [_dec26], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor29 = _applyDecoratedDescriptor(_class.prototype, \"isPublic\", [_dec27], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor30 = _applyDecoratedDescriptor(_class.prototype, \"isPaused\", [_dec28], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor31 = _applyDecoratedDescriptor(_class.prototype, \"isDraft\", [_dec29], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor32 = _applyDecoratedDescriptor(_class.prototype, \"isExpired\", [_dec30], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor33 = _applyDecoratedDescriptor(_class.prototype, \"isArchived\", [_dec31], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor34 = _applyDecoratedDescriptor(_class.prototype, \"isActive\", [_dec32], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"publishedState\", [_dec33], Object.getOwnPropertyDescriptor(_class.prototype, \"publishedState\"), _class.prototype), _descriptor35 = _applyDecoratedDescriptor(_class.prototype, \"pause\", [_dec34], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor36 = _applyDecoratedDescriptor(_class.prototype, \"continue\", [_dec35], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor37 = _applyDecoratedDescriptor(_class.prototype, \"publish\", [_dec36], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor38 = _applyDecoratedDescriptor(_class.prototype, \"unpublish\", [_dec37], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor39 = _applyDecoratedDescriptor(_class.prototype, \"validate\", [_dec38], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor40 = _applyDecoratedDescriptor(_class.prototype, \"archive\", [_dec39], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/app\", [\"exports\", \"@additive-apps/ui/models/app\"], function (_exports, _app) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _app.default;\n    }\n  });\n});","define(\"additive-mc/models/campaign\", [\"exports\", \"@ember-data/model\", \"@ember/object/computed\", \"additive-mc/models/ui-transactionable-model\"], function (_exports, _model, _computed, _uiTransactionableModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let Campaign = _exports.default = (_dec = (0, _model.attr)('boolean'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('amc-configurations'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)(), _dec10 = (0, _computed.sort)('configurations', 'configurationSorting'), _dec11 = (0, _computed.and)('activeFrom', 'activeUntil'), _class = class Campaign extends _uiTransactionableModel.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"active\", _descriptor, this);\n      _initializerDefineProperty(this, \"activeFrom\", _descriptor2, this);\n      _initializerDefineProperty(this, \"activeUntil\", _descriptor3, this);\n      _initializerDefineProperty(this, \"code\", _descriptor4, this);\n      _initializerDefineProperty(this, \"configurations\", _descriptor5, this);\n      _initializerDefineProperty(this, \"description\", _descriptor6, this);\n      _initializerDefineProperty(this, \"title\", _descriptor7, this);\n      _initializerDefineProperty(this, \"type\", _descriptor8, this);\n      _initializerDefineProperty(this, \"state\", _descriptor9, this);\n      _defineProperty(this, \"configurationSorting\", Object.freeze(['order']));\n      _initializerDefineProperty(this, \"orderedConfigurations\", _descriptor10, this);\n      _initializerDefineProperty(this, \"timeLimited\", _descriptor11, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"active\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"activeFrom\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"activeUntil\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"code\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"configurations\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"description\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"type\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"state\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"orderedConfigurations\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"timeLimited\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/collection\", [\"exports\", \"@additive-apps/media/models/collection\"], function (_exports, _collection) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _collection.default;\n    }\n  });\n});","define(\"additive-mc/models/depiction\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _model.default.extend({\n    productTypes: (0, _model.attr)(),\n    text: (0, _model.attr)('string'),\n    headline: (0, _model.attr)('string'),\n    description: (0, _model.attr)('string'),\n    url: (0, _model.attr)('string'),\n    ctaType: (0, _model.attr)('string'),\n    images: (0, _model.attr)(),\n    postfix: (0, _model.attr)('string'),\n    formats: (0, _model.attr)(),\n    availableLanguages: (0, _model.attr)(),\n    language: (0, _model.attr)(),\n    // content-ad specific\n    name: (0, _model.attr)('string'),\n    variants: (0, _model.attr)(),\n    // tiktok-lead-ads specific\n    page: (0, _model.attr)(),\n    videos: (0, _model.attr)()\n  });\n});","define(\"additive-mc/models/email-campaign-contribution\", [\"exports\", \"@ember-data/model\", \"@ember/template\", \"@ember/object\", \"additive-mc/utils/currency-serialization\", \"@ember/service\", \"dompurify\", \"additive-mc/models/ui-transactionable-model\"], function (_exports, _model, _template, _object, _currencySerialization, _service, _dompurify, _uiTransactionableModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let Contribution = _exports.default = (_dec = (0, _model.attr)('boolean'), _dec2 = (0, _model.attr)(), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('number'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)(), _dec9 = (0, _model.belongsTo)('email-campaign', {\n    async: false\n  }), _class = class Contribution extends _uiTransactionableModel.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"active\", _descriptor2, this);\n      _initializerDefineProperty(this, \"availableLanguages\", _descriptor3, this);\n      _initializerDefineProperty(this, \"language\", _descriptor4, this);\n      _initializerDefineProperty(this, \"policies\", _descriptor5, this);\n      _initializerDefineProperty(this, \"greeting\", _descriptor6, this);\n      _initializerDefineProperty(this, \"value\", _descriptor7, this);\n      _initializerDefineProperty(this, \"customType\", _descriptor8, this);\n      _initializerDefineProperty(this, \"image\", _descriptor9, this);\n      _initializerDefineProperty(this, \"campaign\", _descriptor10, this);\n      _defineProperty(this, \"transactionCreateRecord\", async () => {\n        this.value = null;\n        await this.uiTransactionManager.createModelRecord(this);\n      });\n      _defineProperty(this, \"transactionChange\", async (property, value) => {\n        if (property === 'value') {\n          return await this.uiTransactionManager.changeModelProperty(this, property, (0, _currencySerialization.amountToCents)(value));\n        }\n        await this.uiTransactionManager.changeModelProperty(this, property, value);\n      });\n      _defineProperty(this, \"transactionConfigurationChange\", (property, urlSuffix, value) => {\n        this.uiTransactionManager.changeModelProperty(this, property, value, null, urlSuffix);\n      });\n      _defineProperty(this, \"transactionAddLanguage\", async (locale, adapterOptions) => {\n        // Reset values\n        this.policies = null;\n        this.greeting = null;\n        await this.uiTransactionManager.addLanguage(this, locale, adapterOptions);\n      });\n    }\n    get policiesHtmlSafe() {\n      return (0, _template.htmlSafe)(_dompurify.default.sanitize(this.policies));\n    }\n    get amount() {\n      return (0, _currencySerialization.centsToAmount)(this.value);\n    }\n\n    // Define properties which are not translatable into different languages\n    get nonTranslatablePropertyKeys() {\n      return ['value', 'image'];\n    }\n\n    // override default transactionUrl from UiTransactionableModel\n    get transactionUrl() {\n      let url = this.campaign.transactionUrl;\n      return `${url}/contributions/${this.id}`;\n    }\n    get transactionCreateUrl() {\n      let url = this.campaign.transactionUrl;\n      return `${url}/contributions`;\n    }\n    set(key, value) {\n      (0, _object.set)(this, 'value', (0, _currencySerialization.amountToCents)(value));\n      return value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"active\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"availableLanguages\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"language\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"policies\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"greeting\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"value\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"customType\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"image\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"campaign\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/email-campaign-landingpage\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"additive-mc/models/ui-transactionable-model\"], function (_exports, _model, _service, _uiTransactionableModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let LandingPage = _exports.default = (_dec = (0, _model.attr)(), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)(), _dec4 = (0, _model.attr)(), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.belongsTo)('email-campaign', {\n    async: false\n  }), _class = class LandingPage extends _uiTransactionableModel.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"availableLanguages\", _descriptor2, this);\n      _initializerDefineProperty(this, \"language\", _descriptor3, this);\n      _initializerDefineProperty(this, \"columnLeft\", _descriptor4, this);\n      _initializerDefineProperty(this, \"columnRight\", _descriptor5, this);\n      _initializerDefineProperty(this, \"metaTitle\", _descriptor6, this);\n      _initializerDefineProperty(this, \"ctaText\", _descriptor7, this);\n      _initializerDefineProperty(this, \"campaign\", _descriptor8, this);\n      _defineProperty(this, \"transactionAddLanguage\", (locale, adapterOptions) => {\n        // Reset values\n        this.columnLeft = null;\n        this.columnRight = null;\n        this.metaTitle = null;\n        this.ctaText = null;\n        this.uiTransactionManager.addLanguage(this, locale, adapterOptions);\n      });\n    }\n    // override default transactionUrl from UiTransactionableModel\n    get transactionUrl() {\n      let url = this.campaign.transactionUrl;\n      return `${url}/landing-page/${this.id}`;\n    }\n    get transactionCreateUrl() {\n      let url = this.campaign.transactionUrl;\n      return `${url}/landing-page`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"availableLanguages\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"language\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"columnLeft\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"columnRight\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"metaTitle\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"ctaText\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"campaign\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/email-campaign-voucher\", [\"exports\", \"@ember-data/model\", \"@ember/template\", \"@ember/object\", \"dompurify\", \"additive-mc/utils/currency-serialization\"], function (_exports, _model, _template, _object, _dompurify, _currencySerialization) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let Voucher = _exports.default = (_dec = (0, _model.attr)('boolean'), _dec2 = (0, _model.attr)(), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)(), _dec6 = (0, _model.attr)('number'), _dec7 = (0, _model.attr)(), _dec8 = (0, _model.belongsTo)('email-campaign', {\n    async: false\n  }), _class = class Voucher extends _model.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"active\", _descriptor, this);\n      _initializerDefineProperty(this, \"availableLanguages\", _descriptor2, this);\n      _initializerDefineProperty(this, \"language\", _descriptor3, this);\n      _initializerDefineProperty(this, \"policies\", _descriptor4, this);\n      _initializerDefineProperty(this, \"greetingText\", _descriptor5, this);\n      _initializerDefineProperty(this, \"value\", _descriptor6, this);\n      _initializerDefineProperty(this, \"image\", _descriptor7, this);\n      _initializerDefineProperty(this, \"campaign\", _descriptor8, this);\n    }\n    get policiesHtmlSafe() {\n      return (0, _template.htmlSafe)(_dompurify.default.sanitize(this.policies));\n    }\n    get amount() {\n      return (0, _currencySerialization.centsToAmount)(this.value);\n    }\n    set amount(value) {\n      (0, _object.set)(this, 'value', (0, _currencySerialization.amountToCents)(value));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"active\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"availableLanguages\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"language\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"policies\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"greetingText\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"value\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"image\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"campaign\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/email-campaign\", [\"exports\", \"additive-mc/config/environment\", \"@ember-data/model\", \"@ember/service\", \"ember-concurrency\", \"rsvp\", \"additive-mc/models/campaign\"], function (_exports, _environment, _model, _service, _emberConcurrency, _rsvp, _campaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EmailCampaign = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('amc-configurations'), _dec3 = (0, _model.attr)('boolean'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)('boolean'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)(), _dec10 = (0, _model.hasMany)('email-series', {\n    async: false\n  }), _dec11 = (0, _model.belongsTo)('email-campaign-contribution', {\n    async: false\n  }), _dec12 = (0, _model.belongsTo)('email-campaign-voucher', {\n    async: false\n  }), _dec13 = (0, _model.belongsTo)('email-campaign-landingpage', {\n    async: false\n  }), _dec14 = (0, _emberConcurrency.task)(function () {\n    var _this = this;\n    let locale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'de';\n    return function* () {\n      try {\n        var _this$meta;\n        if ((_this$meta = _this.meta) !== null && _this$meta !== void 0 && _this$meta[locale]) {\n          return _this.meta[locale];\n        }\n        let endpoint = `${_environment.default.APP.apiBaseHost}/${_this.organizationSlug}/organisation-campaigns/email/${_this.id}/meta`;\n        if (_this.isNewStructure) {\n          endpoint = `${_environment.default.APP.apiBaseHostV2}/${_this.organizationSlug}/${_this.type}/meta`;\n        }\n        const response = yield _this.authenticatedFetch.fetch(endpoint, {\n          headers: {\n            'Accept-Language': locale\n          }\n        });\n        if (!response || !response.ok) {\n          throw new Error('[EMAIL] meta', response);\n        }\n        const {\n          meta\n        } = yield response.json();\n        if (!meta) {\n          throw new Error('[EMAIL] meta', response);\n        }\n        _this.meta = Object.assign(_this.meta || {}, {\n          [locale]: meta\n        });\n        return (0, _rsvp.resolve)(meta);\n      } catch (error) {\n        return (0, _rsvp.reject)(error);\n      }\n    }();\n  }), _class = class EmailCampaign extends _campaign.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"availableLanguages\", _descriptor3, this);\n      _initializerDefineProperty(this, \"publishedLanguages\", _descriptor4, this);\n      _initializerDefineProperty(this, \"language\", _descriptor5, this);\n      _initializerDefineProperty(this, \"configurations\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isStartsAtEnabled\", _descriptor7, this);\n      _initializerDefineProperty(this, \"startsAt\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isEndsAtEnabled\", _descriptor9, this);\n      _initializerDefineProperty(this, \"endsAt\", _descriptor10, this);\n      _initializerDefineProperty(this, \"name\", _descriptor11, this);\n      _initializerDefineProperty(this, \"label\", _descriptor12, this);\n      _initializerDefineProperty(this, \"descriptions\", _descriptor13, this);\n      _initializerDefineProperty(this, \"emailSeries\", _descriptor14, this);\n      _initializerDefineProperty(this, \"contribution\", _descriptor15, this);\n      _initializerDefineProperty(this, \"voucher\", _descriptor16, this);\n      _initializerDefineProperty(this, \"landingPage\", _descriptor17, this);\n      _defineProperty(this, \"transactionConfigurationChange\", async (property, value) => {\n        await this.uiTransactionManager.changeModelProperty(this, property, value, 'configurations', 'configuration');\n      });\n      /**\n       * Fetches the meta data for a given locale\n       * @type {Task}\n       * @param {String} locale the locale of the meta data\n       * @function fetchMeta\n       */\n      _initializerDefineProperty(this, \"fetchMeta\", _descriptor18, this);\n    }\n    get organizationSlug() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id;\n    }\n\n    // override default transactionUrl from UiTransactionableModel\n    get transactionUrl() {\n      return `${this.type}/${this.id}`;\n    }\n    get transactionCreateUrl() {\n      return this.type;\n    }\n\n    // TODO: remove this getter and all it's usages when the new structure is the default\n    get isNewStructure() {\n      const newStructureTypes = ['pre-stay-campaign', 'convert-ota-to-direct-booker-campaign', 'reactivate-enquirer-without-booking-campaign', 'reactivate-lost-guest-campaign', 'come-back-campaign', 'come-back-multiple-campaign', 'upselling-for-second-stay-campaign', 'early-booker-benefits-campaign', 'follow-up-on-voucher-campaign', 'birthday-gift-campaign', 'birthday-voucher-from-friends-campaign', 'last-minute-deal-campaign', 'post-stay-campaign', 'birthday-wishes-campaign'];\n      return newStructureTypes.includes(this.type);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"availableLanguages\", [_model.attr], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"publishedLanguages\", [_model.attr], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"language\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"configurations\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isStartsAtEnabled\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"startsAt\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isEndsAtEnabled\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"endsAt\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"name\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"label\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"descriptions\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"emailSeries\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"contribution\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"voucher\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"landingPage\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"fetchMeta\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/email-preview\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _model.default.extend({\n    name: (0, _model.attr)('string'),\n    count: (0, _model.attr)('number'),\n    publishedDate: (0, _model.attr)(),\n    subscriber: (0, _model.attr)()\n  });\n});","define(\"additive-mc/models/email-series\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"additive-mc/models/ui-transactionable-model\"], function (_exports, _model, _service, _uiTransactionableModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EmailSeries = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string', {\n    defaultValue: 'inactive'\n  }), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.belongsTo)('email-campaign', {\n    async: false\n  }), _dec6 = (0, _model.hasMany)('email', {\n    async: false\n  }), _class = class EmailSeries extends _uiTransactionableModel.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"label\", _descriptor2, this);\n      _initializerDefineProperty(this, \"state\", _descriptor3, this);\n      _initializerDefineProperty(this, \"offsetInDays\", _descriptor4, this);\n      _initializerDefineProperty(this, \"mails_count\", _descriptor5, this);\n      _initializerDefineProperty(this, \"campaign\", _descriptor6, this);\n      _initializerDefineProperty(this, \"emails\", _descriptor7, this);\n    }\n    // override default transactionUrl from UiTransactionableModel\n    get transactionUrl() {\n      let url = this.campaign.transactionUrl;\n      return `${url}/email-series/${this.id}`;\n    }\n    get transactionCreateUrl() {\n      let url = this.campaign.transactionUrl;\n      return `${url}/email-series`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"label\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"state\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"offsetInDays\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"mails_count\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"campaign\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"emails\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/email\", [\"exports\", \"@ember-data/model\", \"additive-mc/models/ui-transactionable-model\"], function (_exports, _model, _uiTransactionableModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let Email = _exports.default = (_dec = (0, _model.attr)(), _dec2 = (0, _model.attr)(), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('boolean'), _dec6 = (0, _model.attr)(), _dec7 = (0, _model.attr)(), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.belongsTo)('email-series', {\n    async: false\n  }), _dec12 = (0, _model.belongsTo)('email-campaign', {\n    async: false\n  }), _dec13 = (0, _model.attr)(), _dec14 = (0, _model.attr)(), _class = class Email extends _uiTransactionableModel.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"availableLanguages\", _descriptor, this);\n      _initializerDefineProperty(this, \"language\", _descriptor2, this);\n      _initializerDefineProperty(this, \"subject\", _descriptor3, this);\n      _initializerDefineProperty(this, \"body\", _descriptor4, this);\n      _initializerDefineProperty(this, \"active\", _descriptor5, this);\n      _initializerDefineProperty(this, \"image\", _descriptor6, this);\n      _initializerDefineProperty(this, \"cta\", _descriptor7, this);\n      _initializerDefineProperty(this, \"ctaText\", _descriptor8, this);\n      _initializerDefineProperty(this, \"ctaLink\", _descriptor9, this);\n      _initializerDefineProperty(this, \"ctaType\", _descriptor10, this);\n      _initializerDefineProperty(this, \"emailSeries\", _descriptor11, this);\n      _initializerDefineProperty(this, \"campaign\", _descriptor12, this);\n      _initializerDefineProperty(this, \"campaignId\", _descriptor13, this);\n      _initializerDefineProperty(this, \"emailSeriesId\", _descriptor14, this);\n      _defineProperty(this, \"transactionChange\", async (property, item, oldItem) => {\n        const ctaSettings = ['ctaText', 'ctaType', 'ctaLink'];\n        if (!ctaSettings.includes(property)) {\n          return await this.uiTransactionManager.changeModelProperty(this, property, item);\n        }\n        const splittedProperty = property.split('cta');\n        const propertKey = splittedProperty[1].toLowerCase();\n        let value = item;\n        let oldReadableValue;\n        let newReadableValue;\n        if (property === 'ctaType' || property === 'ctaLink' && this.ctaType === 'referral' || property === 'ctaLink' && this.ctaType === 'survey') {\n          value = item !== null && item !== void 0 && item.value ? item.value : null;\n\n          // Readable values (=labels) needed for internal change tracking\n          oldReadableValue = (oldItem === null || oldItem === void 0 ? void 0 : oldItem.label) || null;\n          newReadableValue = (item === null || item === void 0 ? void 0 : item.label) || null;\n        }\n        const body = {\n          cta: {\n            [propertKey]: value\n          }\n        };\n        await this.uiTransactionManager.changeModelProperty(this, property, value, null, null, body, oldReadableValue, newReadableValue);\n      });\n      _defineProperty(this, \"transactionChangeLanguage\", async locale => {\n        const adapterOptions = {\n          emailSeriesId: this.emailSeriesId\n        };\n        await this.uiTransactionManager.changeLanguage(this, locale, adapterOptions);\n      });\n      _defineProperty(this, \"transactionDeleteLanguage\", async locale => {\n        const adapterOptions = {\n          emailSeriesId: this.emailSeriesId\n        };\n        await this.uiTransactionManager.deleteLanguage(this, locale, adapterOptions);\n      });\n      _defineProperty(this, \"transactionAddLanguage\", async locale => {\n        const adapterOptions = {\n          emailSeriesId: this.emailSeriesId\n        };\n\n        // Reset values\n        this.subject = null;\n        this.body = null;\n        this.ctaType = null;\n        this.ctaText = null;\n        this.ctaLink = null;\n        await this.uiTransactionManager.addLanguage(this, locale, adapterOptions);\n      });\n    }\n    // Define properties which are not translatable into different languages\n    get nonTranslatablePropertyKeys() {\n      return ['image'];\n    }\n\n    // override default transactionUrl from UiTransactionableModel\n    get transactionUrl() {\n      let url = this.emailSeries.transactionUrl;\n      return `${url}/emails/${this.id}`;\n    }\n    get transactionCreateUrl() {\n      let url = this.emailSeries.transactionUrl;\n      return `${url}/emails`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"availableLanguages\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"language\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"subject\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"body\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"active\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"image\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"cta\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"ctaText\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"ctaLink\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"ctaType\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"emailSeries\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"campaign\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"emailSeriesId\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/extension\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let ExtensionModel = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _class = class ExtensionModel extends _model.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"type\", _descriptor, this);\n      _initializerDefineProperty(this, \"name\", _descriptor2, this);\n      _initializerDefineProperty(this, \"link\", _descriptor3, this);\n      _initializerDefineProperty(this, \"language\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"type\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"name\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"link\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"language\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/folder\", [\"exports\", \"@additive-apps/media/models/folder\"], function (_exports, _folder) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _folder.default;\n    }\n  });\n});","define(\"additive-mc/models/keyword\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let KeywordModel = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number'), _class = class KeywordModel extends _model.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"count\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"count\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/medium\", [\"exports\", \"@additive-apps/media/models/medium\"], function (_exports, _medium) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _medium.default;\n    }\n  });\n});","define(\"additive-mc/models/on-page-campaign\", [\"exports\", \"additive-mc/models/campaign\", \"@ember-data/model\", \"@ember/object/computed\"], function (_exports, _campaign, _model, _computed) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _campaign.default.extend({\n    widgetConfigurations: (0, _model.attr)('amc-configurations'),\n    orderedWidgetConfigurations: (0, _computed.sort)('widgetConfigurations', 'configurationSorting')\n  });\n});","define(\"additive-mc/models/on-page-content\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _model.default.extend({\n    availableLanguages: (0, _model.attr)(),\n    language: (0, _model.attr)(),\n    headline: (0, _model.attr)('string'),\n    text: (0, _model.attr)('string'),\n    showTermsAndConditions: (0, _model.attr)('boolean'),\n    expandTermsAndConditions: (0, _model.attr)('boolean'),\n    termsAndConditions: (0, _model.attr)('string'),\n    active: (0, _model.attr)('boolean'),\n    image: (0, _model.attr)(),\n    ctaText: (0, _model.attr)('string'),\n    campaignId: (0, _model.attr)(),\n    emailSeriesId: (0, _model.attr)(),\n    form: (0, _model.attr)()\n  });\n});","define(\"additive-mc/models/organization\", [\"exports\", \"@additive-apps/auth/models/organization\"], function (_exports, _organization) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _organization.default;\n    }\n  });\n});","define(\"additive-mc/models/search-ad-campaign\", [\"exports\", \"additive-mc/models/campaign\", \"@ember/object\", \"@ember/object/computed\", \"@ember-data/model\", \"@ember/service\", \"@additive-apps/ui/utils/model-action\"], function (_exports, _campaign, _object, _computed, _model, _service, _modelAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let CampaignModel = _exports.default = (_dec = (0, _computed.equal)('state', 'ENABLED'), _dec2 = (0, _computed.equal)('state', 'PAUSED'), _dec3 = (0, _computed.equal)('state', null), _dec4 = (0, _model.attr)('boolean'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)(), _dec7 = (0, _model.attr)(), _dec8 = (0, _model.attr)('boolean'), _dec9 = (0, _model.attr)('boolean'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('number'), _dec13 = (0, _model.attr)('string'), _dec14 = (0, _model.attr)('string'), _dec15 = (0, _model.attr)('string'), _dec16 = (0, _model.attr)(), _dec17 = (0, _model.attr)('boolean'), _dec18 = (0, _model.attr)('string'), _dec19 = (0, _model.attr)('string'), _dec20 = (0, _model.attr)(), _dec21 = (0, _model.attr)('boolean'), _dec22 = (0, _object.computed)('state'), _dec23 = (0, _modelAction.default)(), _dec24 = (0, _modelAction.default)(), _dec25 = (0, _modelAction.default)(), _dec26 = (0, _modelAction.default)(), _dec27 = (0, _modelAction.default)('GET'), _class = class CampaignModel extends _campaign.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isPublic\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isPaused\", _descriptor4, this);\n      _initializerDefineProperty(this, \"isDraft\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hasBeenPublished\", _descriptor6, this);\n      _initializerDefineProperty(this, \"campaignGoal\", _descriptor7, this);\n      _initializerDefineProperty(this, \"adSets\", _descriptor8, this);\n      _initializerDefineProperty(this, \"extensions\", _descriptor9, this);\n      _initializerDefineProperty(this, \"searchPartner\", _descriptor10, this);\n      _initializerDefineProperty(this, \"displayNetwork\", _descriptor11, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor12, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor13, this);\n      _initializerDefineProperty(this, \"dailyBudget\", _descriptor14, this);\n      _initializerDefineProperty(this, \"postfix\", _descriptor15, this);\n      _initializerDefineProperty(this, \"targetGroup\", _descriptor16, this);\n      _initializerDefineProperty(this, \"bid\", _descriptor17, this);\n      _initializerDefineProperty(this, \"targetGoals\", _descriptor18, this);\n      _initializerDefineProperty(this, \"useDefaultTargetGoals\", _descriptor19, this);\n      _initializerDefineProperty(this, \"landingPage\", _descriptor20, this);\n      _initializerDefineProperty(this, \"landingPageLanguage\", _descriptor21, this);\n      _initializerDefineProperty(this, \"displayedPath\", _descriptor22, this);\n      _initializerDefineProperty(this, \"unlimitedDuration\", _descriptor23, this);\n      _initializerDefineProperty(this, \"pause\", _descriptor24, this);\n      _initializerDefineProperty(this, \"continue\", _descriptor25, this);\n      _initializerDefineProperty(this, \"publish\", _descriptor26, this);\n      _initializerDefineProperty(this, \"unpublish\", _descriptor27, this);\n      _initializerDefineProperty(this, \"validate\", _descriptor28, this);\n    }\n    get publishedState() {\n      if (this.state === 'ENABLED') {\n        return 'success';\n      } else if (this.state === 'PAUSED') {\n        return 'warning';\n      }\n      return 'error';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isPublic\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isPaused\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isDraft\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"hasBeenPublished\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"campaignGoal\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"adSets\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"extensions\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"searchPartner\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"displayNetwork\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"startDate\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"endDate\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"dailyBudget\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"postfix\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"targetGroup\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"bid\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"targetGoals\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"useDefaultTargetGoals\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"landingPage\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"landingPageLanguage\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"displayedPath\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"unlimitedDuration\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"publishedState\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"publishedState\"), _class.prototype), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"pause\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"continue\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"publish\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"unpublish\", [_dec26], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"validate\", [_dec27], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/search-ad-template\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let SearchAdTemplatesModel = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)(), _dec4 = (0, _model.attr)(), _dec5 = (0, _model.attr)('string'), _class = class SearchAdTemplatesModel extends _model.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"type\", _descriptor, this);\n      _initializerDefineProperty(this, \"name\", _descriptor2, this);\n      _initializerDefineProperty(this, \"headlines\", _descriptor3, this);\n      _initializerDefineProperty(this, \"descriptions\", _descriptor4, this);\n      _initializerDefineProperty(this, \"language\", _descriptor5, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"type\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"name\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"headlines\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"descriptions\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"language\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/subscriber\", [\"exports\", \"@ember-data/model\", \"@ember/object\"], function (_exports, _model, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _model.default.extend({\n    name: (0, _model.attr)('string'),\n    email: (0, _model.attr)('string'),\n    deliveryDate: (0, _model.attr)(),\n    state: (0, _model.attr)('string'),\n    previewId: (0, _model.attr)(),\n    stateColor: (0, _object.computed)('state', {\n      get() {\n        const {\n          state\n        } = this;\n        if (['ready', 'sent'].includes(state)) {\n          return 'green';\n        }\n        if (state === 'incomplete') {\n          return 'yellow';\n        }\n        return 'red';\n      }\n    }),\n    stateBadge: (0, _object.computed)('state', {\n      get() {\n        const {\n          state\n        } = this;\n        if (['ready', 'sent'].includes(state)) {\n          return 'success';\n        }\n        if (state === 'incomplete') {\n          return 'warning';\n        }\n        return 'error';\n      }\n    }),\n    // TODO: Define when which action is executable\n    notCancelable: (0, _object.computed)('state', {\n      get() {\n        return !['ready', 'incomplete'].includes(this.state);\n      }\n    }),\n    // TODO: Define when which action is executable\n    notBlockable: (0, _object.computed)('state', {\n      get() {\n        return !['ready', 'incomplete', 'canceled'].includes(this.state);\n      }\n    })\n  });\n});","define(\"additive-mc/models/tag\", [\"exports\", \"@additive-apps/ui/models/tag\"], function (_exports, _tag) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _tag.default;\n    }\n  });\n});","define(\"additive-mc/models/target-group\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let TargetGroupModel = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)(), _dec3 = (0, _model.attr)(), _class = class TargetGroupModel extends _model.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"languages\", _descriptor2, this);\n      _initializerDefineProperty(this, \"locations\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"languages\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"locations\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/trigger-email-campaign-contribution\", [\"exports\", \"@ember-data/model\", \"@ember/template\", \"@ember/object\", \"additive-mc/utils/currency-serialization\", \"@ember/service\", \"dompurify\", \"additive-mc/models/ui-transactionable-model\"], function (_exports, _model, _template, _object, _currencySerialization, _service, _dompurify, _uiTransactionableModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let Contribution = _exports.default = (_dec = (0, _model.attr)('boolean'), _dec2 = (0, _model.attr)(), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('number'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)(), _dec9 = (0, _model.belongsTo)('trigger-email-campaign', {\n    async: false\n  }), _class = class Contribution extends _uiTransactionableModel.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"active\", _descriptor2, this);\n      _initializerDefineProperty(this, \"availableLanguages\", _descriptor3, this);\n      _initializerDefineProperty(this, \"language\", _descriptor4, this);\n      _initializerDefineProperty(this, \"policies\", _descriptor5, this);\n      _initializerDefineProperty(this, \"greeting\", _descriptor6, this);\n      _initializerDefineProperty(this, \"value\", _descriptor7, this);\n      _initializerDefineProperty(this, \"customType\", _descriptor8, this);\n      _initializerDefineProperty(this, \"image\", _descriptor9, this);\n      _initializerDefineProperty(this, \"campaign\", _descriptor10, this);\n      _defineProperty(this, \"transactionCreateRecord\", async () => {\n        this.value = null;\n        await this.uiTransactionManager.createModelRecord(this);\n      });\n      _defineProperty(this, \"transactionChange\", async (property, value) => {\n        if (property === 'value') {\n          return await this.uiTransactionManager.changeModelProperty(this, property, (0, _currencySerialization.amountToCents)(value));\n        }\n        await this.uiTransactionManager.changeModelProperty(this, property, value);\n      });\n      _defineProperty(this, \"transactionConfigurationChange\", (property, urlSuffix, value) => {\n        this.uiTransactionManager.changeModelProperty(this, property, value, null, urlSuffix);\n      });\n      _defineProperty(this, \"transactionAddLanguage\", async (locale, adapterOptions) => {\n        // Reset values\n        this.policies = null;\n        this.greeting = null;\n        await this.uiTransactionManager.addLanguage(this, locale, adapterOptions);\n      });\n    }\n    get policiesHtmlSafe() {\n      return (0, _template.htmlSafe)(_dompurify.default.sanitize(this.policies));\n    }\n    get amount() {\n      return (0, _currencySerialization.centsToAmount)(this.value);\n    }\n\n    // Define properties which are not translatable into different languages\n    get nonTranslatablePropertyKeys() {\n      return ['value', 'image'];\n    }\n\n    // override default transactionUrl from UiTransactionableModel\n    get transactionUrl() {\n      let url = this.campaign.transactionUrl;\n      return `${url}/contributions/${this.id}`;\n    }\n    get transactionCreateUrl() {\n      let url = this.campaign.transactionUrl;\n      return `${url}/contributions`;\n    }\n    set(key, value) {\n      (0, _object.set)(this, 'value', (0, _currencySerialization.amountToCents)(value));\n      return value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"active\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"availableLanguages\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"language\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"policies\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"greeting\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"value\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"customType\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"image\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"campaign\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/trigger-email-campaign-email-series\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"additive-mc/models/ui-transactionable-model\"], function (_exports, _model, _service, _uiTransactionableModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EmailSeries = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string', {\n    defaultValue: 'inactive'\n  }), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.belongsTo)('trigger-email-campaign', {\n    async: false\n  }), _dec6 = (0, _model.hasMany)('trigger-email-campaign-email', {\n    async: false\n  }), _class = class EmailSeries extends _uiTransactionableModel.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"label\", _descriptor2, this);\n      _initializerDefineProperty(this, \"state\", _descriptor3, this);\n      _initializerDefineProperty(this, \"offsetInDays\", _descriptor4, this);\n      _initializerDefineProperty(this, \"mails_count\", _descriptor5, this);\n      _initializerDefineProperty(this, \"campaign\", _descriptor6, this);\n      _initializerDefineProperty(this, \"emails\", _descriptor7, this);\n    }\n    // override default transactionUrl from UiTransactionableModel\n    get transactionUrl() {\n      let url = this.campaign.transactionUrl;\n      return `${url}/email-series/${this.id}`;\n    }\n    get transactionCreateUrl() {\n      let url = this.campaign.transactionUrl;\n      return `${url}/email-series`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"label\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"state\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"offsetInDays\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"mails_count\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"campaign\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"emails\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/trigger-email-campaign-email\", [\"exports\", \"@ember-data/model\", \"additive-mc/models/ui-transactionable-model\"], function (_exports, _model, _uiTransactionableModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let Email = _exports.default = (_dec = (0, _model.attr)(), _dec2 = (0, _model.attr)(), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('boolean'), _dec6 = (0, _model.attr)(), _dec7 = (0, _model.attr)(), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.belongsTo)('trigger-email-campaign-email-series', {\n    async: false\n  }), _dec12 = (0, _model.belongsTo)('trigger-email-campaign', {\n    async: false\n  }), _dec13 = (0, _model.attr)(), _dec14 = (0, _model.attr)(), _class = class Email extends _uiTransactionableModel.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"availableLanguages\", _descriptor, this);\n      _initializerDefineProperty(this, \"language\", _descriptor2, this);\n      _initializerDefineProperty(this, \"subject\", _descriptor3, this);\n      _initializerDefineProperty(this, \"body\", _descriptor4, this);\n      _initializerDefineProperty(this, \"active\", _descriptor5, this);\n      _initializerDefineProperty(this, \"image\", _descriptor6, this);\n      _initializerDefineProperty(this, \"cta\", _descriptor7, this);\n      _initializerDefineProperty(this, \"ctaText\", _descriptor8, this);\n      _initializerDefineProperty(this, \"ctaLink\", _descriptor9, this);\n      _initializerDefineProperty(this, \"ctaType\", _descriptor10, this);\n      _initializerDefineProperty(this, \"emailSeries\", _descriptor11, this);\n      _initializerDefineProperty(this, \"campaign\", _descriptor12, this);\n      _initializerDefineProperty(this, \"campaignId\", _descriptor13, this);\n      _initializerDefineProperty(this, \"emailSeriesId\", _descriptor14, this);\n      _defineProperty(this, \"transactionChange\", async (property, item, oldItem) => {\n        const ctaSettings = ['ctaText', 'ctaType', 'ctaLink'];\n        if (!ctaSettings.includes(property)) {\n          return await this.uiTransactionManager.changeModelProperty(this, property, item);\n        }\n        const splittedProperty = property.split('cta');\n        const propertKey = splittedProperty[1].toLowerCase();\n        let value = item;\n        let oldReadableValue;\n        let newReadableValue;\n        if (property === 'ctaType' || property === 'ctaLink' && this.ctaType === 'referral' || property === 'ctaLink' && this.ctaType === 'survey') {\n          value = item !== null && item !== void 0 && item.value ? item.value : null;\n\n          // Readable values (=labels) needed for internal change tracking\n          oldReadableValue = (oldItem === null || oldItem === void 0 ? void 0 : oldItem.label) || null;\n          newReadableValue = (item === null || item === void 0 ? void 0 : item.label) || null;\n        }\n        const body = {\n          cta: {\n            [propertKey]: value\n          }\n        };\n        await this.uiTransactionManager.changeModelProperty(this, property, value, null, null, body, oldReadableValue, newReadableValue);\n      });\n      _defineProperty(this, \"transactionChangeLanguage\", async locale => {\n        const adapterOptions = {\n          emailSeriesId: this.emailSeriesId\n        };\n        await this.uiTransactionManager.changeLanguage(this, locale, adapterOptions);\n      });\n      _defineProperty(this, \"transactionDeleteLanguage\", async locale => {\n        const adapterOptions = {\n          emailSeriesId: this.emailSeriesId\n        };\n        await this.uiTransactionManager.deleteLanguage(this, locale, adapterOptions);\n      });\n      _defineProperty(this, \"transactionAddLanguage\", async locale => {\n        const adapterOptions = {\n          emailSeriesId: this.emailSeriesId\n        };\n\n        // Reset values\n        this.subject = null;\n        this.body = null;\n        this.ctaType = null;\n        this.ctaText = null;\n        this.ctaLink = null;\n        await this.uiTransactionManager.addLanguage(this, locale, adapterOptions);\n      });\n    }\n    // Define properties which are not translatable into different languages\n    get nonTranslatablePropertyKeys() {\n      return ['image'];\n    }\n\n    // override default transactionUrl from UiTransactionableModel\n    get transactionUrl() {\n      let url = this.emailSeries.transactionUrl;\n      return `${url}/emails/${this.id}`;\n    }\n    get transactionCreateUrl() {\n      let url = this.emailSeries.transactionUrl;\n      return `${url}/emails`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"availableLanguages\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"language\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"subject\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"body\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"active\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"image\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"cta\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"ctaText\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"ctaLink\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"ctaType\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"emailSeries\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"campaign\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"campaignId\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"emailSeriesId\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/trigger-email-campaign\", [\"exports\", \"additive-mc/config/environment\", \"@ember-data/model\", \"@ember/service\", \"ember-concurrency\", \"rsvp\", \"additive-mc/models/campaign\"], function (_exports, _environment, _model, _service, _emberConcurrency, _rsvp, _campaign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let TriggerEmailCampaign = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('amc-configurations'), _dec4 = (0, _model.attr)('boolean'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('boolean'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)(), _dec11 = (0, _model.hasMany)('trigger-email-campaign-email-series', {\n    async: false\n  }), _dec12 = (0, _model.belongsTo)('trigger-email-campaign-contribution', {\n    async: false\n  }), _dec13 = (0, _model.belongsTo)('email-campaign-voucher', {\n    async: false\n  }), _dec14 = (0, _emberConcurrency.task)(function () {\n    var _this = this;\n    let locale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'de';\n    return function* () {\n      try {\n        var _this$meta;\n        if ((_this$meta = _this.meta) !== null && _this$meta !== void 0 && _this$meta[locale]) {\n          return _this.meta[locale];\n        }\n        let endpoint = `${_environment.default.APP.apiBaseHost}/${_this.organizationSlug}/organisation-campaigns/trigger-email/${_this.id}/meta`;\n        if (_this.isNewStructure) {\n          endpoint = `${_environment.default.APP.apiBaseHostV2}/${_this.organizationSlug}/${_this.trigger}/meta`;\n        }\n        const response = yield _this.authenticatedFetch.fetch(endpoint, {\n          headers: {\n            'Accept-Language': locale\n          }\n        });\n        if (!response || !response.ok) {\n          throw new Error('[EMAIL] meta', response);\n        }\n        const {\n          meta\n        } = yield response.json();\n        if (!meta) {\n          throw new Error('[EMAIL] meta', response);\n        }\n        _this.meta = Object.assign(_this.meta || {}, {\n          [locale]: meta\n        });\n        return (0, _rsvp.resolve)(meta);\n      } catch (error) {\n        return (0, _rsvp.reject)(error);\n      }\n    }();\n  }), _class = class TriggerEmailCampaign extends _campaign.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"availableLanguages\", _descriptor3, this);\n      _initializerDefineProperty(this, \"publishedLanguages\", _descriptor4, this);\n      _initializerDefineProperty(this, \"language\", _descriptor5, this);\n      _initializerDefineProperty(this, \"trigger\", _descriptor6, this);\n      _initializerDefineProperty(this, \"configurations\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isStartsAtEnabled\", _descriptor8, this);\n      _initializerDefineProperty(this, \"startsAt\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isEndsAtEnabled\", _descriptor10, this);\n      _initializerDefineProperty(this, \"endsAt\", _descriptor11, this);\n      _initializerDefineProperty(this, \"name\", _descriptor12, this);\n      _initializerDefineProperty(this, \"label\", _descriptor13, this);\n      _initializerDefineProperty(this, \"descriptions\", _descriptor14, this);\n      _initializerDefineProperty(this, \"emailSeries\", _descriptor15, this);\n      _initializerDefineProperty(this, \"contribution\", _descriptor16, this);\n      _initializerDefineProperty(this, \"voucher\", _descriptor17, this);\n      _defineProperty(this, \"transactionChange\", async (property, value) => {\n        if (property === 'name' && !value) {\n          await this.uiTransactionManager.changeModelProperty(this, property, '-');\n          return;\n        }\n        await this.uiTransactionManager.changeModelProperty(this, property, value);\n      });\n      _defineProperty(this, \"transactionConfigurationChange\", async (property, value) => {\n        await this.uiTransactionManager.changeModelProperty(this, property, value, 'configurations', 'configuration');\n      });\n      /**\n       * Fetches the meta data for a given locale\n       * @type {Task}\n       * @param {String} locale the locale of the meta data\n       * @function fetchMeta\n       */\n      _initializerDefineProperty(this, \"fetchMeta\", _descriptor18, this);\n    }\n    get organizationSlug() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id;\n    }\n\n    // override default transactionUrl from UiTransactionableModel\n    get transactionUrl() {\n      return `${this.type}/${this.id}`;\n    }\n    get transactionCreateUrl() {\n      return this.type;\n    }\n\n    // TODO: remove this getter and all it's usages when the new structure is the default\n    get isNewStructure() {\n      return this.type === 'user-based-trigger-campaign' || this.type === 'user-based-lead-campaign';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"availableLanguages\", [_model.attr], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"publishedLanguages\", [_model.attr], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"language\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"trigger\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"configurations\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isStartsAtEnabled\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"startsAt\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isEndsAtEnabled\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"endsAt\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"name\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"label\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"descriptions\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"emailSeries\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"contribution\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"voucher\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"fetchMeta\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/trigger\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"additive-mc/models/ui-transactionable-model\"], function (_exports, _model, _service, _uiTransactionableModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let Trigger = _exports.default = (_dec = (0, _model.attr)(), _dec2 = (0, _model.attr)(), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.belongsTo)('trigger-email-campaign', {\n    async: false\n  }), _class = class Trigger extends _uiTransactionableModel.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor, this);\n      _initializerDefineProperty(this, \"campaigns\", _descriptor2, this);\n      _initializerDefineProperty(this, \"deliveryTime\", _descriptor3, this);\n      _initializerDefineProperty(this, \"startsAt\", _descriptor4, this);\n      _initializerDefineProperty(this, \"endsAt\", _descriptor5, this);\n      _initializerDefineProperty(this, \"campaign\", _descriptor6, this);\n      _defineProperty(this, \"transactionDeliveryTimeChange\", async (property, value) => {\n        const body = {\n          deliveryTime: {\n            [property]: value\n          }\n        };\n        await this.uiTransactionManager.changeModelProperty(this, property, value, 'deliveryTime', null, body);\n        this.deliveryTime[property] = value;\n      });\n    }\n    // override default transactionUrl from UiTransactionableModel\n    get transactionUrl() {\n      let url = this.campaign.transactionUrl;\n      return `${url}/trigger`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"campaigns\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"deliveryTime\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"startsAt\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"endsAt\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"campaign\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/ui-transactionable-model\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"@ember/string\"], function (_exports, _model, _service, _string) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // TODO: move to ui addon when it's ready\n  let UiTransactionableModel = _exports.default = (_class = class UiTransactionableModel extends _model.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor, this);\n      _defineProperty(this, \"transactionCreateRecord\", async () => {\n        await this.uiTransactionManager.createModelRecord(this);\n      });\n      _defineProperty(this, \"transactionDeleteRecord\", async () => {\n        await this.uiTransactionManager.deleteModelRecord(this);\n      });\n      _defineProperty(this, \"transactionChange\", async (property, value) => {\n        await this.uiTransactionManager.changeModelProperty(this, property, value);\n      });\n      _defineProperty(this, \"transactionChangeModelState\", async () => {\n        await this.uiTransactionManager.changeModelState(this);\n      });\n      _defineProperty(this, \"transactionDeleteLanguage\", async locale => {\n        await this.uiTransactionManager.deleteLanguage(this, locale);\n      });\n      _defineProperty(this, \"transactionChangeLanguage\", async locale => {\n        await this.uiTransactionManager.changeLanguage(this, locale);\n      });\n      _defineProperty(this, \"transactionAddLanguage\", async locale => {\n        await this.uiTransactionManager.addLanguage(this, locale);\n      });\n      _defineProperty(this, \"transactionPublish\", async language => {\n        await this.uiTransactionManager.publish(this, language);\n      });\n      _defineProperty(this, \"transactionUnpublish\", async language => {\n        await this.uiTransactionManager.unpublish(this, language);\n      });\n      _defineProperty(this, \"transactionSchedulePublication\", async (property, value) => {\n        await this.uiTransactionManager.schedulePublication(this, property, value);\n      });\n      _defineProperty(this, \"onTransactionDiscard\", () => {\n        this.rollbackAttributes();\n      });\n    }\n    get transactionUrl() {\n      return `${(0, _string.pluralize)((0, _string.dasherize)(this.constructor.modelName))}/${this.id}`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/models/user\", [\"exports\", \"@additive-apps/auth/models/user\"], function (_exports, _user) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _user.default;\n    }\n  });\n});","define(\"additive-mc/models/widget\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let WidgetModel = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec3 = (0, _model.attr)(), _dec4 = (0, _model.attr)(), _class = class WidgetModel extends _model.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"default\", _descriptor2, this);\n      _initializerDefineProperty(this, \"styles\", _descriptor3, this);\n      _initializerDefineProperty(this, \"config\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"default\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"styles\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"config\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/modifiers/did-insert\", [\"exports\", \"@ember/render-modifiers/modifiers/did-insert\"], function (_exports, _didInsert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _didInsert.default;\n    }\n  });\n});","define(\"additive-mc/modifiers/did-update\", [\"exports\", \"@ember/render-modifiers/modifiers/did-update\"], function (_exports, _didUpdate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _didUpdate.default;\n    }\n  });\n});","define(\"additive-mc/modifiers/style\", [\"exports\", \"ember-style-modifier/modifiers/style\"], function (_exports, _style) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _style.default;\n    }\n  });\n});","define(\"additive-mc/modifiers/will-destroy\", [\"exports\", \"@ember/render-modifiers/modifiers/will-destroy\"], function (_exports, _willDestroy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _willDestroy.default;\n    }\n  });\n});","define(\"additive-mc/objects/sidenav-state\", [\"exports\", \"@additive-apps/ui/objects/sidenav-state\"], function (_exports, _sidenavState) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _sidenavState.default;\n    }\n  });\n});","define(\"additive-mc/router\", [\"exports\", \"@ember/routing/router\", \"additive-mc/config/environment\", \"@additive-apps/auth/router\"], function (_exports, _router, _environment, _router2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class Router extends _router.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"location\", _environment.default.locationType);\n      _defineProperty(this, \"rootURL\", _environment.default.rootURL);\n    }\n  }\n  _exports.default = Router;\n  Router.map(function () {\n    this.route('auth', function () {\n      (0, _router2.default)(this);\n    });\n    this.route('instance', {\n      path: ':instance_id'\n    }, function () {\n      this.route('dashboard', {\n        path: '/'\n      });\n      this.route('campaigns', function () {\n        this.route('ad', function () {\n          this.route('index', {\n            path: '/'\n          }, function () {\n            this.mount('@additive-apps/multimedia-engine', {\n              as: 'additive-multimedia-engine',\n              path: 'mm'\n            });\n          });\n          this.route('lead-ads', {\n            path: 'lead-ads/:campaign_id'\n          }, function () {\n            this.route('lead-ad', {\n              path: ':ad_id'\n            }, function () {\n              this.route('edit', function () {\n                this.mount('@additive-apps/multimedia-engine', {\n                  as: 'additive-multimedia-engine',\n                  path: 'mm'\n                });\n              });\n            });\n          });\n          this.route('tiktok-lead-ads', {\n            path: 'tiktok-lead-ads/:campaign_id'\n          }, function () {\n            this.route('index', {\n              path: '/'\n            }, function () {\n              this.route('lead-ad', {\n                path: ':ad_id'\n              }, function () {\n                this.route('edit');\n              });\n            });\n            this.route('depictions', function () {\n              this.route('index', {\n                path: '/'\n              }, function () {\n                this.route('depiction', {\n                  path: ':depiction_id'\n                }, function () {\n                  this.route('edit', function () {\n                    this.mount('@additive-apps/multimedia-engine', {\n                      as: 'additive-multimedia-engine',\n                      path: 'mm'\n                    });\n                  });\n                });\n              });\n            });\n          });\n        });\n        this.route('email', function () {\n          this.route('detail', {\n            path: ':campaign_id'\n          }, function () {\n            this.route('index', {\n              path: ''\n            }, function () {\n              this.route('voucher', {\n                path: 'vouchers/:voucher_id'\n              }, function () {\n                this.mount('@additive-apps/multimedia-engine', {\n                  as: 'additive-multimedia-engine',\n                  path: 'mm'\n                });\n              });\n              this.route('email', {\n                path: 'emails/:email_id'\n              }, function () {\n                this.mount('@additive-apps/multimedia-engine', {\n                  as: 'additive-multimedia-engine',\n                  path: 'mm'\n                });\n              });\n              this.route('create', function () {\n                this.mount('@additive-apps/multimedia-engine', {\n                  as: 'additive-multimedia-engine',\n                  path: 'mm'\n                });\n              });\n              this.route('edit', function () {\n                this.mount('@additive-apps/multimedia-engine', {\n                  as: 'additive-multimedia-engine',\n                  path: 'mm'\n                });\n              });\n            });\n            this.route('email-series', function () {\n              this.route('create');\n              this.route('email-series', {\n                path: ':email_series_id'\n              });\n            });\n          });\n        });\n        this.route('trigger-email', function () {\n          this.route('detail', {\n            path: ':campaign_id'\n          }, function () {\n            this.route('index', {\n              path: ''\n            }, function () {\n              this.route('voucher', {\n                path: 'vouchers/:voucher_id'\n              }, function () {\n                this.mount('@additive-apps/multimedia-engine', {\n                  as: 'additive-multimedia-engine',\n                  path: 'mm'\n                });\n              });\n              this.route('email', {\n                path: 'emails/:email_id'\n              }, function () {\n                this.mount('@additive-apps/multimedia-engine', {\n                  as: 'additive-multimedia-engine',\n                  path: 'mm'\n                });\n              });\n              this.route('create', function () {\n                this.mount('@additive-apps/multimedia-engine', {\n                  as: 'additive-multimedia-engine',\n                  path: 'mm'\n                });\n              });\n              this.route('edit', function () {\n                this.mount('@additive-apps/multimedia-engine', {\n                  as: 'additive-multimedia-engine',\n                  path: 'mm'\n                });\n              });\n            });\n            this.route('email-series', function () {\n              this.route('create');\n              this.route('email-series', {\n                path: ':email_series_id'\n              });\n            });\n          });\n        });\n        this.route('on-page', function () {\n          this.route('detail', {\n            path: ':campaign_id'\n          }, function () {\n            this.route('content', function () {\n              this.route('create', function () {\n                this.mount('@additive-apps/multimedia-engine', {\n                  as: 'additive-multimedia-engine',\n                  path: 'mm'\n                });\n              });\n              this.route('content', {\n                path: ':content_id'\n              }, function () {\n                this.mount('@additive-apps/multimedia-engine', {\n                  as: 'additive-multimedia-engine',\n                  path: 'mm'\n                });\n              });\n            });\n          });\n        });\n        this.route('search-ad', function () {\n          this.route('index', {\n            path: '/'\n          }, function () {\n            this.route('search-ad', {\n              path: ':search_ad_campaign_id'\n            }, function () {\n              this.route('edit');\n            });\n          });\n          this.route('ad-templates', function () {});\n          this.route('extensions', function () {});\n          this.route('target-groups', function () {});\n        });\n      });\n      this.route('reports', function () {\n        this.route('ad', function () {\n          this.route('past-marketing-actions');\n        });\n        this.route('email', function () {\n          this.route('past-marketing-actions');\n        });\n        this.route('trigger-email', function () {\n          this.route('past-marketing-actions');\n        });\n        this.route('on-page', function () {\n          this.route('past-marketing-actions');\n        });\n        this.route('leads', function () {\n          this.route('past-marketing-actions');\n        });\n      });\n      this.route('preview', function () {\n        this.route('email', {\n          path: 'email/:email_id'\n        });\n      });\n      this.route('settings', function () {\n        this.route('index', {\n          path: '/'\n        }, function () {\n          this.mount('@additive-apps/multimedia-engine', {\n            as: 'additive-multimedia-engine',\n            path: 'mm'\n          });\n        });\n        this.route('legals');\n      });\n      this.route('widgets', function () {\n        this.route('widget', {\n          path: ':widget_id'\n        }, function () {\n          this.mount('@additive-apps/multimedia-engine', {\n            as: 'additive-multimedia-engine',\n            path: 'mm'\n          });\n        });\n      });\n      this.route('auditlog');\n    });\n    this.route('page-not-found', {\n      path: '/*wildcard'\n    });\n  });\n});","define(\"additive-mc/routes/application-loading\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class ApplicationLoadingRoute extends _route.default {}\n  _exports.default = ApplicationLoadingRoute;\n});","define(\"additive-mc/routes/application\", [\"exports\", \"@ember/routing/route\", \"@additive-apps/auth/mixins/application-auth-route-mixin\", \"@ember/service\", \"ember-concurrency\"], function (_exports, _route, _applicationAuthRouteMixin, _service, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let ApplicationRoute = _exports.default = (_dec = (0, _emberConcurrency.task)(function* () {\n    try {\n      // check if the browser supports serviceWorker at all\n      if ('serviceWorker' in navigator) {\n        const registration = yield navigator.serviceWorker.getRegistration();\n\n        // detect serviceWorker update available and wait for it to become installed\n        registration.addEventListener('updatefound', () => {\n          if (registration.installing) {\n            // wait until the new serviceWorker is actually installed (ready to take over)\n            registration.installing.addEventListener('statechange', () => {\n              // if there's an existing controller (previous serviceWorker), show the update toast and clear the interval\n              if (registration.waiting && navigator.serviceWorker.controller) {\n                this.showUpdateToast();\n              }\n            });\n          }\n        });\n      }\n    } catch (e) {\n      // don't display anything if this task fails, because it runs in the background\n    }\n  }).drop(), _class = class ApplicationRoute extends _route.default.extend(_applicationAuthRouteMixin.default) {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiPaths\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiLocale\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor4, this);\n      _defineProperty(this, \"routeAfterAuthentication\", 'instance');\n      _defineProperty(this, \"intervalId\", null);\n      _defineProperty(this, \"isToastActive\", false);\n      _initializerDefineProperty(this, \"updateServiceWorker\", _descriptor5, this);\n    }\n    setupUpdateCheck() {\n      const task = this.updateServiceWorker;\n      // sets interval that checks for new SW registrations and updates those registrations\n      // updating the registration will then trigger the installing and waiting events\n      if (!this.intervalId) {\n        this.intervalId = setInterval(function () {\n          if ('serviceWorker' in navigator) {\n            navigator.serviceWorker.ready.then(registration => {\n              // eslint-disable-next-line\n              registration.update();\n              task.perform();\n            });\n          }\n        }, 120000);\n      }\n    }\n    showUpdateToast() {\n      if (!this.isToastActive) {\n        clearInterval(this.intervalId);\n        const toast = this.uiToast.showToast({\n          type: 'warning',\n          title: this.intl.t('global.toast.update.title'),\n          description: this.intl.t('global.toast.update.description'),\n          actionLabel: this.intl.t('global.toast.update.actionLabel'),\n          duration: -1,\n          icon: 'announcement',\n          onClick: () => {\n            this.uiToast.destroyToast(toast);\n            this.isToastActive = false;\n            this.applyUpdate();\n          },\n          onAbort: () => {\n            this.uiToast.destroyToast(toast);\n            this.isToastActive = false;\n          }\n        });\n        this.isToastActive = true;\n      }\n    }\n    applyUpdate() {\n      // refresh the page; this causes the new serviceWorker to be applied.\n      window.location.reload();\n    }\n    async beforeModel() {\n      await this.uiLocale.setup();\n      // update to api.<baseHost>.tech host format\n      this.uiPaths.setApiRootKey('');\n    }\n    setupController() {\n      super.setupController(...arguments);\n\n      // checks if serviceWorker update is available once\n      this.updateServiceWorker.perform();\n\n      // sets up an interval of 120sec, where it checks again\n      this.setupUpdateCheck();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiPaths\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiLocale\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"updateServiceWorker\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/auth/callback\", [\"exports\", \"@additive-apps/auth/routes/auth/callback\"], function (_exports, _callback) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _callback.default;\n    }\n  });\n});","define(\"additive-mc/routes/index\", [\"exports\", \"additive-mc/config/environment\", \"@ember/routing/route\", \"@ember/service\", \"@additive-apps/auth/mixins/auth-route-mixin\"], function (_exports, _environment, _route, _service, _authRouteMixin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let IndexRoute = _exports.default = (_class = class IndexRoute extends _route.default.extend(_authRouteMixin.default) {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor2, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n    }\n    async model() {\n      var _this$currentUser;\n      super.model(...arguments);\n      const currentOrganizationId = (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id;\n      if (currentOrganizationId) {\n        return this.transitionTo('instance', currentOrganizationId);\n      }\n      const has_app = _environment.default.APP.appId;\n      const organizations = await this.store.query('organization', {\n        has_app\n      });\n      const firstOrganization = organizations.get('firstObject');\n      this.currentUser.currentOrganization = firstOrganization;\n\n      // pass the first organization id to run the model hook of the instance route\n      this.transitionTo('instance', firstOrganization.id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance\", [\"exports\", \"additive-mc/config/environment\", \"@ember/routing/route\", \"@ember/service\", \"ember-concurrency\", \"additive-mc/utils/constants\", \"@ember/object\", \"additive-mc/utils/posthog\", \"@additive-apps/auth/mixins/auth-route-mixin\", \"@userback/widget\"], function (_exports, _environment, _route, _service, _emberConcurrency, _constants, _object, _posthog, _authRouteMixin, _widget) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceRoute = _exports.default = (_dec = (0, _emberConcurrency.task)(function* () {\n    try {\n      var _this$currentUser, _this$currentUser2, _this$currentUser3;\n      const organization = this.currentUser.currentOrganization;\n      let tasks = [];\n      tasks.push(this.currentUser.loadUser());\n      tasks.push(this.uiAppSettings.loadLanguages());\n      yield (0, _emberConcurrency.all)(tasks);\n      yield this.uiLocale.setLocale(((_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.user) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.language) || ((_this$currentUser2 = this.currentUser) === null || _this$currentUser2 === void 0 || (_this$currentUser2 = _this$currentUser2.currentOrganization) === null || _this$currentUser2 === void 0 ? void 0 : _this$currentUser2.language) || 'de');\n      const widgetKey = _environment.default.APP.productlaneWidgetKey;\n      if (this.currentUser.isAdditiveUser && widgetKey) {\n        // Ensure the script is loaded if not already\n        if (!document.getElementById('productlane-script')) {\n          const script = document.createElement('script');\n          script.id = 'productlane-script';\n          script.async = true;\n          script.defer = true;\n          script.crossOrigin = 'anonymous';\n          script.src = 'https://widget.productlane.com/latest.productlane-widget.min.js';\n          document.body.appendChild(script);\n        }\n        (w => {\n          const P = w.Productlane = {\n            queue: {}\n          };\n          ['set', 'open', 'close', 'toggle', 'on', 'off', 'init'].forEach(m => {\n            P[m] = (n => function () {\n              P.queue[n] = {\n                args: arguments\n              };\n            })(m);\n          });\n        })(window);\n        window.Productlane.init({\n          widgetKey,\n          theme: {\n            '--text-color-primary-dark': '#00172F',\n            '--text-color-secondary-dark': '#8F9EA4',\n            '--text-color-highlight-dark': '#4d76f1',\n            '--background-color-primary-dark': '#ffffff',\n            '--background-color-secondary-dark': '#8f9ea41a',\n            '--border-color-primary-dark': '#061C2D1A',\n            '--text-color-primary': '#00172F',\n            '--text-color-secondary': '#8F9EA4',\n            '--text-color-highlight': '#4d76f1',\n            '--background-color-primary': '#ffffff',\n            '--background-color-secondary': '#8f9ea41a',\n            '--border-color-primary': '#061C2D1A'\n          },\n          user: {\n            email: this.currentUser.organizationUser.email\n          }\n        });\n        window.Productlane.on('loaded', () => {\n          var _document$getElementB;\n          const widget = (_document$getElementB = document.getElementById('ProductlaneWidget-MainWidget')) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.parentElement;\n          widget.style.zIndex = '9999999999';\n          const hasPermanentNavdrawer = document.querySelector('.ui-navigation-drawer--permanent');\n          if (hasPermanentNavdrawer) {\n            widget.style.left = '284px';\n          } else {\n            widget.style.left = '0px';\n          }\n        });\n      }\n      if (this.currentUser.isAdditiveUser && _environment.default.APP.userbackAccessToken || this.currentUser.isPartnerUser && _environment.default.APP.userbackAccessTokenPartner) {\n        (0, _widget.default)(this.currentUser.isAdditiveUser ? _environment.default.APP.userbackAccessToken : _environment.default.APP.userbackAccessTokenPartner, {\n          email: this.currentUser.user.email,\n          name: this.currentUser.user.fullName,\n          categories: 'MA'\n        });\n      }\n      if (typeof Sprig === 'function' && (_this$currentUser3 = this.currentUser) !== null && _this$currentUser3 !== void 0 && _this$currentUser3.user) {\n        /* eslint-disable */\n        Sprig('setUserId', this.currentUser.user.id);\n        Sprig('setEmail', this.currentUser.user.email);\n        /* eslint-enable */\n      }\n      const isManaged = this.uiAppSettings.managed;\n      let isManagedReadOnly = false;\n      if (isManaged) {\n        if (this.uiAppSettings.managedByPartner) {\n          isManagedReadOnly = !this.currentUser.isPartnerUser && !this.currentUser.isAdditiveUser;\n        } else {\n          isManagedReadOnly = !this.currentUser.isAdditiveUser;\n        }\n      }\n      this.currentUser.isReadOnly = this.currentUser.isViewer || isManagedReadOnly;\n      (0, _posthog.setupPosthog)(this.currentUser.user, this.currentUser.currentOrganization);\n      return organization;\n    } catch (e) {\n      this.uiToast.showToast({\n        title: this.intl.t('toast.unexpectedError'),\n        type: 'error'\n      });\n    }\n  }), _class = class InstanceRoute extends _route.default.extend(_authRouteMixin.default) {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"session\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"uiToast\", _descriptor7, this);\n      _initializerDefineProperty(this, \"uiLocale\", _descriptor8, this);\n      _initializerDefineProperty(this, \"fetchOrganizationData\", _descriptor9, this);\n    }\n    async model(params) {\n      const organization = await this.store.findRecord('organization', params.instance_id);\n      this.currentUser.currentOrganization = organization;\n      return organization;\n    }\n    async setupController() {\n      super.setupController(...arguments);\n      await this.fetchOrganizationData.perform();\n      if (!localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY)) localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify({}));\n      const localStorageDefault = JSON.parse(localStorage.getItem(_constants.LOCAL_STORAGE_FILTER_KEY));\n\n      // get date filter from query params\n      const urlParams = new URLSearchParams(window.location.search);\n      const dateFilter = urlParams.get('dateFilter');\n      const start = urlParams.get('start');\n      const end = urlParams.get('end');\n\n      // set local storage entry to query param\n      if (dateFilter && !start && !end) localStorageDefault.dateFilter = dateFilter;else if (end && start) {\n        localStorageDefault.start = start;\n        localStorageDefault.end = end;\n      }\n      if ((!localStorageDefault.start || !localStorageDefault.end) && !localStorageDefault.dateFilter) {\n        localStorageDefault.dateFilter = 'last_month';\n      }\n      localStorage.setItem(_constants.LOCAL_STORAGE_FILTER_KEY, JSON.stringify(localStorageDefault));\n    }\n    loading() {\n      return !this.currentUser.currentOrganization;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"uiToast\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"uiLocale\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"fetchOrganizationData\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"loading\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"loading\"), _class.prototype), _class);\n});","define(\"additive-mc/routes/instance/auditlog\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class InstanceAuditLogRoute extends _route.default {}\n  _exports.default = InstanceAuditLogRoute;\n});","define(\"additive-mc/routes/instance/campaigns\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({});\n});","define(\"additive-mc/routes/instance/campaigns/ad\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"ember-concurrency\", \"@additive-apps/utils/utils/plans\"], function (_exports, _route, _service, _emberConcurrency, _plans) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    uiAppSettings: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    async redirect() {\n      await (0, _emberConcurrency.waitForProperty)(this.uiAppSettings, 'planName');\n      const currentPlan = this.uiAppSettings && this.uiAppSettings.planName;\n      if (currentPlan && ((0, _plans.is)(currentPlan, _plans.PLAN_STARTER) || (0, _plans.is)(currentPlan, _plans.PLAN_ENTERPRISE))) {\n        return;\n      }\n      return this.router.transitionTo('instance.campaigns');\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/ad/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    uiFilter: (0, _service.inject)(),\n    setupController() {\n      this._super(...arguments);\n      this.uiFilter.register('ad', 'ad-campaign', {\n        searchable: false\n      });\n    },\n    resetController() {\n      this._super(...arguments);\n      this.uiFilter.unregister('ad');\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/ad/lead-ads\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _route, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdLeadAdsRoute = _exports.default = (_class = class InstanceCampaignsAdLeadAdsRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor2, this);\n      _initializerDefineProperty(this, \"meta\", _descriptor3, this);\n    }\n    async model(params) {\n      const model = await this.store.findRecord('ad-campaign', params.campaign_id);\n      const adapter = this.store.adapterFor('advertisement');\n      const url = adapter.urlForFindAll('advertisement', {\n        adapterOptions: {\n          campaignId: model.id,\n          type: 'lead-ads'\n        }\n      });\n      try {\n        const response = await this.authenticatedFetch.fetch(`${url}/metadata`);\n        this.meta = await response.json();\n      } catch (e) {\n        this.isError = true;\n      }\n      return {\n        campaign: model,\n        meta: this.meta\n      };\n    }\n    setupController(controller, model) {\n      super.setupController(...arguments);\n      const {\n        campaign\n      } = this.modelFor('instance.campaigns.ad.lead-ads');\n      controller.campaignId = campaign.id;\n      this.uiFilter.register('lead-ads', 'advertisement', {\n        searchable: false,\n        request: () => {\n          return this.store.findAll('advertisement', {\n            adapterOptions: {\n              campaignId: model.campaign.id,\n              type: 'lead-ads'\n            },\n            reload: true\n          });\n        }\n      });\n    }\n    resetController(controller) {\n      controller.activeModel = null;\n      controller.isEditDialog = false;\n      this.uiFilter.unregister('lead-ads');\n      this.store.unloadAll('advertisement');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/ad/lead-ads/lead-ad\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdLeadAdsDetailRoute = _exports.default = (_class = class InstanceCampaignsAdLeadAdsDetailRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n    }\n    async model(params) {\n      const {\n        campaign\n      } = this.modelFor('instance.campaigns.ad.lead-ads');\n      return this.store.findRecord('advertisement', params.ad_id, {\n        adapterOptions: {\n          campaignId: campaign.id,\n          type: 'lead-ads'\n        }\n      });\n    }\n    async setupController(controller) {\n      super.setupController(...arguments);\n      const {\n        campaign,\n        meta\n      } = this.modelFor('instance.campaigns.ad.lead-ads');\n      controller.campaignId = campaign.id;\n      controller.meta = meta;\n    }\n    renderTemplate() {\n      this.render('instance/campaigns/ad/lead-ads/lead-ad', {\n        into: 'instance/campaigns/ad/lead-ads',\n        outlet: 'detail'\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/ad/lead-ads/lead-ad/edit\", [\"exports\", \"@ember/routing/route\", \"@additive-apps/ui/mixins/ui-full-width-view\"], function (_exports, _route, _uiFullWidthView) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class InstanceCampaignsAdLeadAdsLeadAdEditRoute extends _route.default.extend(_uiFullWidthView.default) {\n    model() {\n      return super.model(...arguments);\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      const {\n        campaign,\n        meta\n      } = this.modelFor('instance.campaigns.ad.lead-ads');\n      controller.campaignId = campaign.id;\n      controller.meta = meta;\n      controller.setup();\n    }\n    resetController(controller) {\n      controller.changeset = null;\n      controller.adCreativeChangeset = null;\n      controller.budgetChangeset = null;\n    }\n    renderTemplate() {\n      this.render('instance/campaigns/ad/lead-ads/lead-ad/edit', {\n        into: 'application'\n      });\n    }\n  }\n  _exports.default = InstanceCampaignsAdLeadAdsLeadAdEditRoute;\n});","define(\"additive-mc/routes/instance/campaigns/ad/tiktok-lead-ads\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@glimmer/tracking\", \"ember-concurrency\"], function (_exports, _route, _service, _tracking, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdTikTokLeadAdsRoute = _exports.default = (_class = class InstanceCampaignsAdTikTokLeadAdsRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor2, this);\n      _initializerDefineProperty(this, \"meta\", _descriptor3, this);\n    }\n    async model(params) {\n      let tasks = [];\n      const adapter = this.store.adapterFor('advertisement');\n      const url = adapter.urlForFindAll('advertisement', {\n        adapterOptions: {\n          campaignId: params.campaign_id,\n          type: 'tiktok-lead-ads'\n        }\n      });\n      tasks.push(this.authenticatedFetch.fetch(`${url}/metadata`));\n      let adCampaign = this.store.peekRecord('ad-campaign', params.campaign_id);\n      if (!adCampaign) {\n        tasks.push(this.store.findRecord('ad-campaign', params.campaign_id));\n      }\n      let depictions = this.store.peekAll('depiction', {\n        adapterOptions: {\n          campaignId: params.campaign_id,\n          type: 'tiktok-lead-ads'\n        }\n      });\n      if (!depictions.length) {\n        tasks.push(this.store.findAll('depiction', {\n          adapterOptions: {\n            campaignId: params.campaign_id,\n            type: 'tiktok-lead-ads'\n          }\n        }));\n      }\n      try {\n        const response = await (0, _emberConcurrency.all)(tasks);\n        this.meta = await response[0].json();\n        if (response.length === 3) {\n          adCampaign = response[1];\n          depictions = response[2];\n        } else if (response.length === 2) {\n          if (adCampaign) {\n            depictions = response[1];\n          } else {\n            adCampaign = response[1];\n          }\n        }\n        return {\n          campaign: adCampaign,\n          meta: this.meta,\n          depictions\n        };\n      } catch (e) {\n        this.isError = true;\n      }\n    }\n    setupController(controller, model) {\n      super.setupController(...arguments);\n      this.uiFilter.register('tiktok-lead-ads', 'advertisement', {\n        searchable: false,\n        request: () => {\n          return this.store.findAll('advertisement', {\n            reload: true,\n            adapterOptions: {\n              campaignId: model.campaign.id,\n              type: 'tiktok-lead-ads'\n            }\n          });\n        }\n      });\n      return controller;\n    }\n    resetController(controller) {\n      controller.activeModel = null;\n      controller.isCreateAdDialog = false;\n      controller.isCreateDepictionDialog = false;\n      this.uiFilter.unregister('tiktok-lead-ads');\n      this.store.unloadAll('advertisement');\n      this.store.unloadAll('depiction');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/ad/tiktok-lead-ads/depictions\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdTikTokLeadAdsDepictionsRoute = _exports.default = (_class = class InstanceCampaignsAdTikTokLeadAdsDepictionsRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor2, this);\n    }\n    model() {\n      return super.model(...arguments);\n    }\n    setupController(controller, model) {\n      super.setupController(...arguments);\n      this.uiFilter.register('depiction', 'depiction', {\n        searchable: false,\n        request: () => {\n          return this.store.findAll('depiction', {\n            adapterOptions: {\n              campaignId: model.campaign.id,\n              type: 'tiktok-lead-ads'\n            }\n          });\n        }\n      });\n      controller.modelId = model.campaign.id;\n      controller.fetchDepictions.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdTikTokLeadAdsDepictionsIndexDepictionRoute = _exports.default = (_class = class InstanceCampaignsAdTikTokLeadAdsDepictionsIndexDepictionRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor2, this);\n    }\n    model(params) {\n      const {\n        campaign\n      } = this.modelFor('instance.campaigns.ad.tiktok-lead-ads');\n      const storeModel = this.store.peekRecord('depiction', params.depiction_id, {\n        adapterOptions: {\n          campaignId: campaign.id,\n          type: 'tiktok-lead-ads'\n        }\n      });\n      if (storeModel) {\n        this.uiAppSettings.setLocale(storeModel.language);\n        return storeModel;\n      }\n      return this.store.findRecord('depiction', params.depiction_id, {\n        adapterOptions: {\n          campaignId: campaign.id,\n          type: 'tiktok-lead-ads'\n        }\n      });\n    }\n    async setupController(controller) {\n      super.setupController(...arguments);\n      const {\n        campaign\n      } = this.modelFor('instance.campaigns.ad.tiktok-lead-ads');\n      controller.campaignId = campaign.id;\n    }\n    resetController(controller, isExiting) {\n      if (isExiting && this.uiAppSettings.languages.defaultLanguage !== controller.model.get('language')) {\n        this.uiAppSettings.setLocale(this.uiAppSettings.languages.defaultLanguage);\n      }\n    }\n    renderTemplate() {\n      this.render('instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction', {\n        into: 'instance/campaigns/ad/tiktok-lead-ads',\n        outlet: 'detail'\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction/edit\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@additive-apps/ui/mixins/ui-full-width-view\"], function (_exports, _route, _service, _uiFullWidthView) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdTikTokLeadAdsDepictionsIndexDepictionEditRoute = _exports.default = (_class = class InstanceCampaignsAdTikTokLeadAdsDepictionsIndexDepictionEditRoute extends _route.default.extend(_uiFullWidthView.default) {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor, this);\n    }\n    model() {\n      return super.model(...arguments);\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      const {\n        campaign\n      } = this.modelFor('instance.campaigns.ad.tiktok-lead-ads');\n      controller.campaignId = campaign.id;\n      controller.setupChangeset.perform(this.uiAppSettings.currentLocale);\n    }\n    resetController(controller) {\n      this.uiAppSettings.setLocale(this.uiAppSettings.languages.defaultLanguage);\n      controller.changeset = null;\n      controller.activeVariant = 0;\n    }\n    renderTemplate() {\n      this.render('instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction/edit', {\n        into: 'application'\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/ad/tiktok-lead-ads/index\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class InstanceCampaignsAdTikTokLeadAdsIndexRoute extends _route.default {}\n  _exports.default = InstanceCampaignsAdTikTokLeadAdsIndexRoute;\n});","define(\"additive-mc/routes/instance/campaigns/ad/tiktok-lead-ads/index/lead-ad\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdTikTokLeadAdsIndexLeadAdRoute = _exports.default = (_class = class InstanceCampaignsAdTikTokLeadAdsIndexLeadAdRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor, this);\n    }\n    async model(params) {\n      const {\n        campaign,\n        depictions\n      } = this.modelFor('instance.campaigns.ad.tiktok-lead-ads');\n      const tiktokLeadAd = await this.store.findRecord('advertisement', params.ad_id, {\n        adapterOptions: {\n          campaignId: campaign.id,\n          type: 'tiktok-lead-ads'\n        }\n      });\n      return {\n        tiktokLeadAd,\n        depictions\n      };\n    }\n    async setupController(controller, model) {\n      var _model$tiktokLeadAd;\n      super.setupController(...arguments);\n      const {\n        campaign,\n        meta\n      } = this.modelFor('instance.campaigns.ad.tiktok-lead-ads');\n      (0, _object.set)(controller, 'campaignId', campaign.id);\n      (0, _object.set)(controller, 'meta', meta);\n\n      // Refetch depictions if language of ad does not match with current language\n      if (((_model$tiktokLeadAd = model.tiktokLeadAd) === null || _model$tiktokLeadAd === void 0 ? void 0 : _model$tiktokLeadAd.language) !== this.uiAppSettings.currentLocale) {\n        this.uiAppSettings.setLocale(model.tiktokLeadAd.language);\n        await controller.fetchDepictions.perform();\n      }\n    }\n    renderTemplate() {\n      this.render('instance/campaigns/ad/tiktok-lead-ads/index/lead-ad', {\n        into: 'instance/campaigns/ad/tiktok-lead-ads',\n        outlet: 'detail'\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/ad/tiktok-lead-ads/index/lead-ad/edit\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"@additive-apps/ui/mixins/ui-full-width-view\"], function (_exports, _route, _service, _object, _uiFullWidthView) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsAdTikTokLeadAdsIndexLeadAdEditRoute = _exports.default = (_class = class InstanceCampaignsAdTikTokLeadAdsIndexLeadAdEditRoute extends _route.default.extend(_uiFullWidthView.default) {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor, this);\n    }\n    model() {\n      return super.model(...arguments);\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      const {\n        campaign,\n        meta\n      } = this.modelFor('instance.campaigns.ad.tiktok-lead-ads');\n      (0, _object.set)(controller, 'campaignId', campaign.id);\n      (0, _object.set)(controller, 'meta', meta);\n      if (!controller.model.tiktokLeadAd.budget) {\n        controller.model.tiktokLeadAd.budget = {};\n      }\n      if (!controller.model.tiktokLeadAd.timeLimitation) {\n        controller.model.tiktokLeadAd.timeLimitation = {};\n      }\n      controller.setupChangeset();\n      controller.fetchDepictions();\n      controller.validateDepictions();\n    }\n    resetController(controller) {\n      this.uiAppSettings.setLocale(this.uiAppSettings.languages.defaultLanguage);\n      controller.changeset = null;\n    }\n    renderTemplate() {\n      this.render('instance/campaigns/ad/tiktok-lead-ads/index/lead-ad/edit', {\n        into: 'application'\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/email\", [\"exports\", \"@ember/routing/route\", \"ember-concurrency\", \"@ember/service\", \"@additive-apps/utils/utils/plans\"], function (_exports, _route, _emberConcurrency, _service, _plans) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    uiFilter: (0, _service.inject)(),\n    uiAppSettings: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    async redirect() {\n      await (0, _emberConcurrency.waitForProperty)(this.uiAppSettings, 'planName');\n      const currentPlan = this.uiAppSettings && this.uiAppSettings.planName;\n      if (currentPlan && (0, _plans.gte)(currentPlan, _plans.PLAN_PROFESSIONAL)) {\n        return;\n      }\n      return this.router.transitionTo('instance.campaigns');\n    },\n    setupController() {\n      this._super(...arguments);\n      this.uiFilter.register('email', 'email-campaign', {\n        searchable: false\n      });\n    },\n    resetController() {\n      this._super(...arguments);\n      this.uiFilter.unregister('email');\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/email/detail\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@additive-apps/ui/utils/dom-util\"], function (_exports, _route, _service, _domUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsEmailDetailRoute = _exports.default = (_class = class InstanceCampaignsEmailDetailRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor4, this);\n    }\n    renderTemplate() {\n      this.render('instance/campaigns/email/detail', {\n        into: 'instance/campaigns/email',\n        outlet: 'detail'\n      });\n    }\n    async model(params) {\n      var _fetchedCampaign;\n      let fetchedCampaign = this.store.peekRecord('email-campaign', params.campaign_id);\n      if ((_fetchedCampaign = fetchedCampaign) !== null && _fetchedCampaign !== void 0 && _fetchedCampaign.isNew) {\n        return fetchedCampaign;\n      }\n\n      // TODO: remove this after all GLM campaign types are migrated to the new API\n      if (!fetchedCampaign) {\n        // fetch all campaigns with the new API\n        await this.store.findAll('email-campaign', {\n          adapterOptions: {\n            useNewApi: true\n          }\n        });\n        fetchedCampaign = this.store.peekRecord('email-campaign', params.campaign_id);\n\n        // tranisition to the list view if the campaign is not found\n        if (!fetchedCampaign) {\n          return this.router.transitionTo('instance.campaigns.email');\n        }\n      }\n\n      // use new API for pre-stay campaigns, add other types when available\n      const useNewApi = fetchedCampaign.isNewStructure;\n      return this.store.findRecord('email-campaign', params.campaign_id, {\n        adapterOptions: {\n          useNewApi\n        }\n      });\n\n      // TODO: use this when all GLM campaign types are migrated to the new API\n      // return this.store.findRecord('email-campaign', params.campaign_id);\n    }\n    async setupController(controller) {\n      super.setupController(...arguments);\n      controller._isLoading = true;\n      await (0, _domUtil.nextTick)();\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      const editViewController = this.controllerFor('instance.campaigns.email.detail.index.edit');\n      controller.setInitialEditorStep = editViewController.setInitialStep;\n      controller.createEmail = editViewController.createEmail;\n      controller.fetchEmailMeta.perform();\n      controller._isLoading = false;\n      await (0, _domUtil.nextTick)();\n    }\n    resetController(controller, isExiting) {\n      const {\n        type,\n        isNewStructure\n      } = controller.model;\n      if (isExiting || type && !isNewStructure) {\n        this.store.unloadAll('email');\n        this.store.unloadAll('email-series');\n      }\n      super.resetController(...arguments);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/email/detail/email-series\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    setupController(controller, model) {\n      this._super(controller, model);\n      const {\n        campaign_id\n      } = this.paramsFor('instance.campaigns.email.detail');\n      (0, _object.set)(controller, 'campaignId', campaign_id);\n    },\n    resetController() {\n      this.store.unloadAll('email-series');\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/email/detail/email-series/create\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    setupController(controller, model) {\n      this._super(controller, model);\n      const {\n        campaign_id\n      } = this.paramsFor('instance.campaigns.email.detail');\n      (0, _object.set)(controller, 'campaignId', campaign_id);\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/email/detail/email-series/email-series\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    setupController(controller, model) {\n      this._super(controller, model);\n      const {\n        campaign_id\n      } = this.paramsFor('instance.campaigns.email.detail');\n      (0, _object.set)(controller, 'campaignId', campaign_id);\n    },\n    model(params) {\n      const model = this.store.peekRecord('email-series', params.email_series_id);\n      if (model) {\n        return model;\n      }\n      const {\n        campaign_id: campaignId\n      } = this.paramsFor('instance.campaigns.email.detail');\n      return this.store.findRecord('email-series', params.email_series_id, {\n        adapterOptions: {\n          campaignId\n        }\n      });\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/email/detail/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsEmailsEmailDetail = _exports.default = (_class = class InstanceCampaignsEmailsEmailDetail extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      const {\n        campaign_id\n      } = this.paramsFor('instance.campaigns.email.detail');\n      controller.campaignId = campaign_id;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/email/detail/index/create\", [\"exports\", \"@ember/routing/route\", \"@ember/object\"], function (_exports, _route, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    model() {},\n    setupController(controller, model) {\n      this._super(controller, model);\n      const {\n        campaign_id\n      } = this.paramsFor('instance.campaigns.email.detail');\n      (0, _object.set)(controller, 'campaignId', campaign_id);\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/email/detail/index/edit\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsEmailDetailEdit = _exports.default = (_class = class InstanceCampaignsEmailDetailEdit extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor5, this);\n    }\n    async setupController(controller) {\n      super.setupController(...arguments);\n      controller._isLoading = true;\n\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      const detailViewController = this.controllerFor('instance.campaigns.email.detail');\n      controller.openPublishDialog = detailViewController.openPublishDialog;\n      const {\n        model\n      } = controller;\n      if (!this.uiTransactionManager.hasTransactionId) {\n        try {\n          await this.uiTransactionManager.beginTransaction({\n            type: model.type,\n            id: model.id\n          });\n        } catch (error) {\n          this.uiDialog.showError();\n          this.router.transitionTo('instance.campaigns.email.detail', model);\n        }\n        if (model.isNew) {\n          await model.transactionCreateRecord();\n        }\n      }\n      await controller.fetchCorporateDesign.perform();\n      if (model.isNew && model.emailSeries.length === 0) {\n        // Automatically create first email-series\n        const firstEmailSeries = {\n          label: null,\n          offsetInDays: 0\n        };\n        await controller.createEmailSeries(firstEmailSeries, true);\n      }\n      controller._isLoading = false;\n    }\n    resetController(controller) {\n      const {\n        model\n      } = controller;\n      controller._surveys = null;\n      controller._referralCampaigns = null;\n      if (model.language && model.language !== this.uiAppSettings.currentLocale) {\n        this.uiAppSettings.setLocale(model.language);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/email/detail/index/email\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    model(params) {\n      const model = this.store.peekRecord('email', params.email_id);\n      if (model) {\n        return model;\n      }\n      const {\n        campaign_id: campaignId\n      } = this.paramsFor('instance.campaigns.email.detail');\n      return this.store.findRecord('email', params.email_id, {\n        adapterOptions: {\n          campaignId\n        }\n      });\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/email/detail/index/voucher\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    model(params) {\n      const model = this.store.peekRecord('email-campaign-voucher', params.voucher_id);\n      if (model) {\n        return model;\n      }\n      const {\n        campaign_id: campaignId\n      } = this.paramsFor('instance.campaigns.email.detail');\n      return this.store.findRecord('email-campaign-voucher', params.voucher_id, {\n        adapterOptions: {\n          campaignId\n        }\n      });\n    },\n    setupController(controller, model) {\n      this._super(controller, model);\n      const {\n        campaign_id: campaignId\n      } = this.paramsFor('instance.campaigns.email.detail');\n      (0, _object.set)(controller, '_campaignId', campaignId);\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/index\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({});\n});","define(\"additive-mc/routes/instance/campaigns/on-page\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    uiFilter: (0, _service.inject)(),\n    setupController() {\n      this._super(...arguments);\n      this.uiFilter.register('onPage', 'on-page-campaign', {\n        searchable: false\n      });\n    },\n    resetController() {\n      this._super(...arguments);\n      this.uiFilter.unregister('onPage');\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/on-page/detail\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsOnPageDetailRoute = _exports.default = (_class = class InstanceCampaignsOnPageDetailRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor4, this);\n    }\n    renderTemplate() {\n      this.render('instance/campaigns/on-page/detail', {\n        into: 'instance/campaigns/on-page',\n        outlet: 'detail'\n      });\n    }\n    model(params) {\n      return this.store.findRecord('on-page-campaign', params.campaign_id);\n    }\n    setupController(controller, model) {\n      super.setupController(controller, model);\n      const {\n        campaign_id\n      } = this.paramsFor('instance.campaigns.on-page.detail');\n      controller.campaignId = campaign_id;\n    }\n    resetController() {\n      this.store.unloadAll('on-page-content');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/on-page/detail/content/content\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    model(params) {\n      const model = this.store.peekRecord('on-page-content', params.content_id);\n      if (model) {\n        return model;\n      }\n      const {\n        campaign_id: campaignId\n      } = this.paramsFor('instance.campaigns.on-page.detail');\n      return this.store.findRecord('on-page-content', params.content_id, {\n        adapterOptions: {\n          campaignId\n        }\n      });\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/on-page/detail/content/create\", [\"exports\", \"@ember/routing/route\", \"@ember/object\"], function (_exports, _route, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    model() {},\n    setupController(controller, model) {\n      this._super(controller, model);\n      const {\n        campaign_id\n      } = this.paramsFor('instance.campaigns.on-page.detail');\n      (0, _object.set)(controller, 'campaignId', campaign_id);\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/search-ad\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsSearchAdRoute = _exports.default = (_class = class InstanceCampaignsSearchAdRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"googleConnectionState\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor5, this);\n    }\n    redirect() {\n      var _this$currentUser;\n      const isAdditive = (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.user) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.isAdditive;\n      if (isAdditive) {\n        return;\n      }\n      return this.router.transitionTo('instance.campaigns');\n    }\n    setupController() {\n      super.setupController(...arguments);\n      this.uiFilter.register('searchAdCampaign', 'search-ad-campaign', {\n        searchable: false\n      });\n    }\n    resetController(controller) {\n      super.resetController(...arguments);\n      this.googleConnectionState.isError = false;\n      this.uiFilter.unregister('searchAdCampaign');\n\n      // close create dialogs\n      controller.isCreateCampaignDialog = false;\n      controller.isCreateAdDialog = false;\n      controller.isCreateExtensionDialog = false;\n      controller.isCreateTargetGroupDialog = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"googleConnectionState\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/search-ad/ad-templates\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsSearchAdAdTemplatesRoute = _exports.default = (_class = class InstanceCampaignsSearchAdAdTemplatesRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor, this);\n    }\n    async setupController(controller) {\n      super.setupController(...arguments);\n      this.uiFilter.register('searchAdTemplate', 'search-ad-template', {\n        searchable: false,\n        request: () => {\n          return this.store.findAll('search-ad-template');\n        }\n      });\n\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      const searchAdController = this.controllerFor('instance.campaigns.search-ad');\n      controller.fetchMeta = searchAdController.fetchSearchAdMeta;\n      controller.meta = await controller.fetchMeta.perform();\n    }\n    resetController(controller) {\n      super.resetController(...arguments);\n      controller.activeModel = null;\n      this.uiFilter.unregister('searchAdTemplate');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/search-ad/extensions\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsSearchAdExtensionsRoute = _exports.default = (_class = class InstanceCampaignsSearchAdExtensionsRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor, this);\n    }\n    async setupController(controller) {\n      super.setupController(...arguments);\n      this.uiFilter.register('extension', 'extension', {\n        searchable: false,\n        request: () => {\n          return this.store.findAll('extension');\n        }\n      });\n\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      const searchAdController = this.controllerFor('instance.campaigns.search-ad');\n      controller.fetchMeta = searchAdController.fetchExtensionMeta;\n      controller.meta = await controller.fetchMeta.perform();\n    }\n    resetController(controller) {\n      super.resetController(...arguments);\n      controller.activeModel = null;\n      this.uiFilter.unregister('extension');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/search-ad/index\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class InstanceCampaignsSearchAdIndexRoute extends _route.default {}\n  _exports.default = InstanceCampaignsSearchAdIndexRoute;\n});","define(\"additive-mc/routes/instance/campaigns/search-ad/index/search-ad\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class InstanceCampaignsSearchAdIndexSearchAdRoute extends _route.default {\n    async model(params) {\n      try {\n        this.searchAdCampaign = await this.store.findRecord('search-ad-campaign', params.search_ad_campaign_id);\n        return {\n          searchAdCampaign: this.searchAdCampaign\n        };\n      } catch (e) {\n        this.isError = true;\n      }\n    }\n    async setupController(controller, model) {\n      super.setupController(...arguments);\n      controller.fetchMeta.perform();\n      controller.campaignId = model.searchAdCampaign.id;\n      controller.fetchTargetGroups.perform();\n      controller.fetchExtensions.perform();\n      controller.fetchAdSets.perform();\n      controller.fetchPendingUpdates.perform();\n    }\n    renderTemplate() {\n      this.render('instance/campaigns/search-ad/index/search-ad', {\n        into: 'instance/campaigns/search-ad',\n        outlet: 'detail'\n      });\n    }\n  }\n  _exports.default = InstanceCampaignsSearchAdIndexSearchAdRoute;\n});","define(\"additive-mc/routes/instance/campaigns/search-ad/index/search-ad/edit\", [\"exports\", \"@ember/routing/route\", \"@additive-apps/ui/mixins/ui-full-width-view\", \"@ember/object\"], function (_exports, _route, _uiFullWidthView, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class InstanceCampaignsSearchAdIndexSearchAdEditRoute extends _route.default.extend(_uiFullWidthView.default) {\n    model() {\n      return super.model(...arguments);\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      const {\n        searchAdCampaign,\n        meta\n      } = this.modelFor('instance.campaigns.search-ad.index.search-ad');\n      (0, _object.set)(controller, 'meta', meta);\n      (0, _object.set)(controller, 'campaignId', searchAdCampaign.id);\n      if (!controller.model.searchAdCampaign.budget) {\n        controller.model.searchAdCampaign.budget = {};\n      }\n      controller.setupChangeset();\n      controller.fetchExtensions.perform();\n      controller.fetchMetadata.perform();\n      controller.fetchTargetGroups.perform();\n    }\n    resetController(controller) {\n      controller.changeset = null;\n    }\n    renderTemplate() {\n      this.render('instance/campaigns/search-ad/index/search-ad/edit', {\n        into: 'application'\n      });\n    }\n  }\n  _exports.default = InstanceCampaignsSearchAdIndexSearchAdEditRoute;\n});","define(\"additive-mc/routes/instance/campaigns/search-ad/target-groups\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsSearchAdTargetGroupsRoute = _exports.default = (_class = class InstanceCampaignsSearchAdTargetGroupsRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor, this);\n    }\n    async setupController(controller) {\n      super.setupController(...arguments);\n      this.uiFilter.register('targetGroup', 'target-group', {\n        searchable: false,\n        request: () => {\n          return this.store.findAll('target-group');\n        }\n      });\n\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      const searchAdController = this.controllerFor('instance.campaigns.search-ad');\n      controller.fetchMeta = searchAdController.fetchTargetGroupMeta;\n      controller.meta = await controller.fetchMeta.perform();\n    }\n    resetController(controller) {\n      super.resetController(...arguments);\n      controller.activeModel = null;\n      this.uiFilter.unregister('targetGroup');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/trigger-email\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    uiFilter: (0, _service.inject)(),\n    setupController() {\n      this._super(...arguments);\n      this.uiFilter.register('trigger-email', 'trigger-email-campaign', {\n        searchable: false\n      });\n    },\n    resetController() {\n      this._super(...arguments);\n      this.uiFilter.unregister('trigger-email');\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/trigger-email/detail\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@additive-apps/ui/utils/dom-util\"], function (_exports, _route, _service, _domUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsTriggerEmailDetailRoute = _exports.default = (_class = class InstanceCampaignsTriggerEmailDetailRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor4, this);\n    }\n    get isTriggerCampaignAvailable() {\n      var _this$currentUser$cur;\n      const app = (_this$currentUser$cur = this.currentUser.currentOrganization) === null || _this$currentUser$cur === void 0 || (_this$currentUser$cur = _this$currentUser$cur.accessibleApps) === null || _this$currentUser$cur === void 0 ? void 0 : _this$currentUser$cur.find(app => app.id === 50);\n      return (app === null || app === void 0 ? void 0 : app.planName) === 'enterprise_yearly' || (app === null || app === void 0 ? void 0 : app.planName) === 'enterprise_monthly';\n    }\n    renderTemplate() {\n      this.render('instance/campaigns/trigger-email/detail', {\n        into: 'instance/campaigns/trigger-email',\n        outlet: 'detail'\n      });\n    }\n    async model(params) {\n      var _fetchedCampaign;\n      let fetchedCampaign = this.store.peekRecord('trigger-email-campaign', params.campaign_id);\n      if ((_fetchedCampaign = fetchedCampaign) !== null && _fetchedCampaign !== void 0 && _fetchedCampaign.isNew) {\n        return fetchedCampaign;\n      }\n\n      // TODO: remove this after all Trigger Email campaign types are migrated to the new API\n      if (!fetchedCampaign) {\n        // fetch all campaigns with the new API\n        await this.store.findAll('trigger-email-campaign', {\n          adapterOptions: {\n            useNewApi: true\n          }\n        });\n        fetchedCampaign = this.store.peekRecord('trigger-email-campaign', params.campaign_id);\n\n        // tranisition to the list view if the campaign is not found\n        if (!fetchedCampaign) {\n          return this.router.transitionTo('instance.campaigns.trigger-email');\n        }\n      }\n      if (!this.isTriggerCampaignAvailable && fetchedCampaign.trigger !== 'lead-trigger-campaign') {\n        return this.router.transitionTo('instance.campaigns.trigger-email');\n      }\n\n      // use new API for pre-stay campaigns, add other types when available\n      const useNewApi = fetchedCampaign.isNewStructure;\n      return this.store.findRecord('trigger-email-campaign', params.campaign_id, {\n        adapterOptions: {\n          useNewApi\n        }\n      });\n\n      // TODO: use this when all Trigger Email campaign types are migrated to the new API\n      //return await this.store.findRecord('trigger-email-campaign', params.campaign_id);\n    }\n    async setupController(controller) {\n      super.setupController(...arguments);\n      controller._isLoading = true;\n      await (0, _domUtil.nextTick)();\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      const editViewController = this.controllerFor('instance.campaigns.trigger-email.detail.index.edit');\n      controller.setInitialEditorStep = editViewController.setInitialStep;\n      controller.createEmail = editViewController.createEmail;\n      controller.fetchEmailMeta.perform();\n      controller._isLoading = false;\n      await (0, _domUtil.nextTick)();\n    }\n    resetController(controller, isExiting) {\n      const {\n        type,\n        isNewStructure\n      } = controller.model;\n      if (isExiting || type && !isNewStructure) {\n        this.store.unloadAll('trigger-email-campaign-email');\n        this.store.unloadAll('trigger-email-campaign-email-series');\n\n        // TODO: Remove once all campaign-types use the new structure\n        this.store.unloadAll('email');\n        this.store.unloadAll('email-series');\n      }\n      super.resetController(...arguments);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/trigger-email/detail/email-series\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    setupController(controller, model) {\n      this._super(controller, model);\n      const {\n        campaign_id\n      } = this.paramsFor('instance.campaigns.trigger-email.detail');\n      (0, _object.set)(controller, 'campaignId', campaign_id);\n    },\n    resetController() {\n      this.store.unloadAll('email-series');\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/trigger-email/detail/email-series/create\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    setupController(controller, model) {\n      this._super(controller, model);\n      const {\n        campaign_id\n      } = this.paramsFor('instance.campaigns.trigger-email.detail');\n      (0, _object.set)(controller, 'campaignId', campaign_id);\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/trigger-email/detail/email-series/email-series\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    setupController(controller, model) {\n      this._super(controller, model);\n      const {\n        campaign_id\n      } = this.paramsFor('instance.campaigns.trigger-email.detail');\n      (0, _object.set)(controller, 'campaignId', campaign_id);\n    },\n    model(params) {\n      const model = this.store.peekRecord('email-series', params.email_series_id);\n      if (model) {\n        return model;\n      }\n      const {\n        campaign_id: campaignId\n      } = this.paramsFor('instance.campaigns.trigger-email.detail');\n      return this.store.findRecord('email-series', params.email_id, {\n        adapterOptions: {\n          campaignId\n        }\n      });\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/trigger-email/detail/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    setupController(controller, model) {\n      this._super(controller, model);\n      const {\n        campaign_id\n      } = this.paramsFor('instance.campaigns.trigger-email.detail');\n      (0, _object.set)(controller, 'campaignId', campaign_id);\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/trigger-email/detail/index/create\", [\"exports\", \"@ember/routing/route\", \"@ember/object\"], function (_exports, _route, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    model() {},\n    setupController(controller, model) {\n      this._super(controller, model);\n      const {\n        campaign_id\n      } = this.paramsFor('instance.campaigns.trigger-email.detail');\n      (0, _object.set)(controller, 'campaignId', campaign_id);\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/trigger-email/detail/index/edit\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceCampaignsTriggerEmailDetailEdit = _exports.default = (_class = class InstanceCampaignsTriggerEmailDetailEdit extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uiDialog\", _descriptor3, this);\n      _initializerDefineProperty(this, \"uiTransactionManager\", _descriptor4, this);\n    }\n    async setupController(controller) {\n      super.setupController(...arguments);\n      controller._isLoading = true;\n\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      const detailViewController = this.controllerFor('instance.campaigns.trigger-email.detail');\n      controller.openPublishDialog = detailViewController.openPublishDialog;\n      const {\n        model\n      } = controller;\n      if (!this.uiTransactionManager.hasTransactionId) {\n        try {\n          await this.uiTransactionManager.beginTransaction({\n            trigger: model.trigger,\n            type: model.type,\n            id: model.id\n          });\n        } catch (error) {\n          this.uiDialog.showError();\n          this.router.transitionTo('instance.campaigns.trigger-email.detail', model);\n        }\n        if (model.isNew) {\n          await model.transactionCreateRecord();\n        }\n      }\n      await controller.fetchCorporateDesign.perform();\n      if (model.isNew && model.emailSeries.length === 0) {\n        // Automatically create first email-series\n        const firstEmailSeries = {\n          label: null,\n          offsetInDays: 0\n        };\n        await controller.createEmailSeries(firstEmailSeries, true);\n      }\n      if (model.isNew) {\n        await controller.ensureActivityStartDate();\n      }\n      controller._isLoading = false;\n    }\n    resetController(controller) {\n      const {\n        model\n      } = controller;\n      if (model.language !== this.uiAppSettings.currentLocale) {\n        this.uiAppSettings.setLocale(model.language);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"uiDialog\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"uiTransactionManager\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/campaigns/trigger-email/detail/index/email\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    model(params) {\n      const model = this.store.peekRecord('email', params.email_id);\n      if (model) {\n        return model;\n      }\n      const {\n        campaign_id: campaignId\n      } = this.paramsFor('instance.campaigns.trigger-email.detail');\n      return this.store.findRecord('email', params.email_id, {\n        adapterOptions: {\n          campaignId\n        }\n      });\n    }\n  });\n});","define(\"additive-mc/routes/instance/campaigns/trigger-email/detail/index/voucher\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    model(params) {\n      const model = this.store.peekRecord('email-campaign-voucher', params.voucher_id);\n      if (model) {\n        return model;\n      }\n      const {\n        campaign_id: campaignId\n      } = this.paramsFor('instance.campaigns.trigger-email.detail');\n      return this.store.findRecord('email-campaign-voucher', params.voucher_id, {\n        adapterOptions: {\n          campaignId\n        }\n      });\n    },\n    setupController(controller, model) {\n      this._super(controller, model);\n      const {\n        campaign_id: campaignId\n      } = this.paramsFor('instance.campaigns.trigger-email.detail');\n      (0, _object.set)(controller, '_campaignId', campaignId);\n    }\n  });\n});","define(\"additive-mc/routes/instance/dashboard\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class InstanceDashboardRoute extends _route.default {\n    setupController(controller) {\n      super.setupController(...arguments);\n      return controller.getDateRange.perform();\n    }\n  }\n  _exports.default = InstanceDashboardRoute;\n});","define(\"additive-mc/routes/instance/preview\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({});\n});","define(\"additive-mc/routes/instance/preview/email\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    uiFilter: (0, _service.inject)(),\n    model(params) {\n      const model = this.store.peekRecord('email-preview', params.email_id);\n      if (model) {\n        return model;\n      }\n      return this.store.findRecord('email-preview', params.email_id);\n    },\n    setupController() {\n      this._super(...arguments);\n      this.uiFilter.register('subscribers', 'subscriber');\n    },\n    resetController() {\n      this._super(...arguments);\n      this.uiFilter.unregister('subscribers');\n    }\n  });\n});","define(\"additive-mc/routes/instance/reports\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({});\n});","define(\"additive-mc/routes/instance/reports/ad\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@additive-apps/utils/utils/plans\"], function (_exports, _route, _service, _plans) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    uiAppSettings: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    redirect() {\n      const currentPlan = this.uiAppSettings && this.uiAppSettings.planName;\n      if (currentPlan !== _plans.PLAN_PROFESSIONAL) {\n        return;\n      }\n      return this.router.transitionTo('instance.reports');\n    }\n  });\n});","define(\"additive-mc/routes/instance/reports/ad/past-marketing-actions\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({});\n});","define(\"additive-mc/routes/instance/reports/email\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@additive-apps/utils/utils/plans\"], function (_exports, _route, _service, _plans) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    uiAppSettings: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    redirect() {\n      const currentPlan = this.uiAppSettings && this.uiAppSettings.planName;\n      if (currentPlan === _plans.PLAN_STARTER) {\n        return this.router.transitionTo('instance.reports');\n      }\n      return;\n    }\n  });\n});","define(\"additive-mc/routes/instance/reports/email/past-marketing-actions\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({});\n});","define(\"additive-mc/routes/instance/reports/index\", [\"exports\", \"@ember/routing/route\", \"additive-mc/utils/helpers\"], function (_exports, _route, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class InstanceReportsRoute extends _route.default {\n    setupController(controller) {\n      super.setupController();\n      controller.abortController = new AbortController();\n      if (!controller.start && !controller.end) {\n        const defaultFilterDate = (0, _helpers.getDefaultFilterDates)();\n        controller.start = defaultFilterDate.start;\n        controller.end = defaultFilterDate.end;\n      }\n    }\n  }\n  _exports.default = InstanceReportsRoute;\n});","define(\"additive-mc/routes/instance/reports/leads\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceReportsLeadsRoute = _exports.default = (_class = class InstanceReportsLeadsRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    redirect() {\n      var _this$currentUser;\n      const isAdditive = (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.user) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.isAdditive;\n      if (isAdditive) {\n        return;\n      }\n      return this.router.transitionTo('instance.reports');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/reports/on-page\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class InstanceReportsOnPageRoute extends _route.default {}\n  _exports.default = InstanceReportsOnPageRoute;\n});","define(\"additive-mc/routes/instance/reports/social\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@additive-apps/utils/utils/plans\"], function (_exports, _route, _service, _plans) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({\n    uiAppSettings: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    redirect() {\n      const currentPlan = this.uiAppSettings && this.uiAppSettings.planName;\n      if (currentPlan === _plans.PLAN_ENTERPRISE) {\n        return;\n      }\n      return this.router.transitionTo('instance.reports');\n    }\n  });\n});","define(\"additive-mc/routes/instance/reports/social/index\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({});\n});","define(\"additive-mc/routes/instance/reports/social/past-marketing-actions\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({});\n});","define(\"additive-mc/routes/instance/reports/trigger-email\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class InstanceReportsTriggerEmailRoute extends _route.default {}\n  _exports.default = InstanceReportsTriggerEmailRoute;\n});","define(\"additive-mc/routes/instance/settings\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class InstanceSettingsRoute extends _route.default {}\n  _exports.default = InstanceSettingsRoute;\n});","define(\"additive-mc/routes/instance/settings/index\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class InstanceSettingsIndexRoute extends _route.default {\n    resetController(controller) {\n      controller.set('auth_code', null);\n      controller.set('redirect', null);\n    }\n  }\n  _exports.default = InstanceSettingsIndexRoute;\n});","define(\"additive-mc/routes/instance/settings/legals\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend({});\n});","define(\"additive-mc/routes/instance/widgets\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let InstanceWidgetsRoute = _exports.default = (_class = class InstanceWidgetsRoute extends _route.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiFilter\", _descriptor, this);\n    }\n    setupController() {\n      this.uiFilter.register('widgets', 'widget');\n    }\n    resetController() {\n      this.uiFilter.unregister('widgets');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiFilter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"additive-mc/routes/instance/widgets/widget\", [\"exports\", \"@ember/routing/route\", \"@additive-apps/ui/mixins/ui-full-width-view\"], function (_exports, _route, _uiFullWidthView) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class InstanceWidgetsWidgetRoute extends _route.default.extend(_uiFullWidthView.default) {\n    renderTemplate() {\n      this.render('instance/widgets/widget', {\n        into: 'application'\n      });\n    }\n    model(params) {\n      return this.store.findRecord('widget', params.widget_id, {\n        reload: true\n      });\n    }\n  }\n  _exports.default = InstanceWidgetsWidgetRoute;\n});","define(\"additive-mc/routes/page-not-found\", [\"exports\", \"@ember/routing/route\", \"@additive-apps/ui/mixins/ui-full-width-view\"], function (_exports, _route, _uiFullWidthView) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _route.default.extend(_uiFullWidthView.default);\n});","define(\"additive-mc/serializers/-default\", [\"exports\", \"@ember-data/serializer/json\"], function (_exports, _json) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _json.default;\n    }\n  });\n});","define(\"additive-mc/serializers/-json-api\", [\"exports\", \"@ember-data/serializer/json-api\"], function (_exports, _jsonApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _jsonApi.default;\n    }\n  });\n});","define(\"additive-mc/serializers/-rest\", [\"exports\", \"@ember-data/serializer/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _rest.default;\n    }\n  });\n});","define(\"additive-mc/serializers/advertisement\", [\"exports\", \"additive-mc/serializers/application\", \"additive-mc/utils/currency-serialization\", \"@ember/object\", \"lodash.clonedeep\"], function (_exports, _application, _currencySerialization, _object, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class AdvertisementSerializer extends _application.default {\n    normalize(model, hash) {\n      var _hash$budgetSpend, _hash$budget, _hash$adCreative;\n      if (hash.totalBudget) {\n        (0, _object.set)(hash, 'totalBudget', (0, _currencySerialization.centsToAmount)(hash.totalBudget).toString());\n      }\n      if ((_hash$budgetSpend = hash.budgetSpend) !== null && _hash$budgetSpend !== void 0 && _hash$budgetSpend.value) {\n        (0, _object.set)(hash, 'budgetSpend.value', (0, _currencySerialization.centsToAmount)(hash.budgetSpend.value).toString());\n      }\n      if ((_hash$budget = hash.budget) !== null && _hash$budget !== void 0 && _hash$budget.amount) {\n        (0, _object.set)(hash, 'budget.amount', (0, _currencySerialization.centsToAmount)(hash.budget.amount).toString());\n      }\n      if (!hash.startDate && !hash.endDate) {\n        const tomorrow = new Date();\n        tomorrow.setDate(tomorrow.getDate() + 1);\n        (0, _object.set)(hash, 'startDate', tomorrow.toISOString());\n        const nextWeek = new Date();\n        nextWeek.setDate(tomorrow.getDate() + 7);\n        (0, _object.set)(hash, 'endDate', nextWeek.toISOString());\n      }\n\n      // sort images\n      if ((_hash$adCreative = hash.adCreative) !== null && _hash$adCreative !== void 0 && _hash$adCreative.multimediaVariants) {\n        var _hash$adCreative$mult;\n        const sortedMedia = (_hash$adCreative$mult = hash.adCreative.multimediaVariants) === null || _hash$adCreative$mult === void 0 ? void 0 : _hash$adCreative$mult.sort((a, b) => a.position - b.position);\n        (0, _object.set)(hash, 'adCreative.multimediaVariants', sortedMedia);\n      }\n      return super.normalize(...arguments);\n    }\n    serialize(snapshot, options) {\n      var _json$budgetSpend, _json$budget;\n      let json = (0, _lodash.default)(super.serialize(snapshot, options));\n\n      // set position of images\n      if (json.adCreative) {\n        var _json$adCreative$mult;\n        const media = ((_json$adCreative$mult = json.adCreative.multimediaVariants) === null || _json$adCreative$mult === void 0 ? void 0 : _json$adCreative$mult.map((item, index) => {\n          item.position = index;\n          return item;\n        })) || null;\n        (0, _object.set)(json, 'adCreative.multimediaVariants', media);\n      }\n\n      // transform currency properties to cents\n      if (json !== null && json !== void 0 && json.totalBudget) {\n        (0, _object.set)(json, 'totalBudget', (0, _currencySerialization.amountToCents)(json.totalBudget));\n      }\n      if (json !== null && json !== void 0 && (_json$budgetSpend = json.budgetSpend) !== null && _json$budgetSpend !== void 0 && _json$budgetSpend.value) {\n        (0, _object.set)(json, 'budgetSpend.value', (0, _currencySerialization.amountToCents)(json.budgetSpend.value));\n      }\n      if (json !== null && json !== void 0 && (_json$budget = json.budget) !== null && _json$budget !== void 0 && _json$budget.amount) {\n        (0, _object.set)(json, 'budget.amount', (0, _currencySerialization.amountToCents)(json.budget.amount));\n      }\n      return json;\n    }\n  }\n  _exports.default = AdvertisementSerializer;\n});","define(\"additive-mc/serializers/application\", [\"exports\", \"@ember-data/serializer/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _rest.default.extend({\n    serializeIntoHash(data, type, record, options) {\n      Object.assign(data, this.serialize(record, options));\n    }\n  });\n});","define(\"additive-mc/serializers/email-campaign-contribution\", [\"exports\", \"additive-mc/serializers/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    modelNameFromPayloadKey(payloadKey) {\n      return payloadKey === 'contribution' ? 'email-campaign-contribution' : this._super(...arguments);\n    }\n  });\n});","define(\"additive-mc/serializers/email-campaign-voucher\", [\"exports\", \"additive-mc/serializers/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    modelNameFromPayloadKey(payloadKey) {\n      return payloadKey === 'voucher' ? 'email-campaign-voucher' : this._super(...arguments);\n    }\n  });\n});","define(\"additive-mc/serializers/email-campaign\", [\"exports\", \"additive-mc/serializers/application\", \"@ember-data/serializer/rest\"], function (_exports, _application, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class EmailCampaign extends _application.default.extend(_rest.EmbeddedRecordsMixin) {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"attrs\", {\n        emailSeries: {\n          embedded: 'always'\n        },\n        contribution: {\n          embedded: 'always'\n        },\n        voucher: {\n          embedded: 'always'\n        },\n        landingPage: {\n          embedded: 'always'\n        }\n      });\n    }\n    normalizeResponse(store, primaryModelClass, payload) {\n      // handle new root key\n      if (payload.campaigns) {\n        payload.emailCampaigns = payload.campaigns;\n        delete payload.campaigns;\n      }\n      if (payload.campaign) {\n        payload.emailCampaign = payload.campaign;\n        delete payload.campaign;\n      }\n      const json = super.normalizeResponse(...arguments);\n      const isArray = Array.isArray(json.included);\n      const includedData = isArray ? json.included : [json.included];\n      let data = [];\n      includedData.forEach(included => {\n        var _included$attributes;\n        if (included.type !== 'email') {\n          data.push(included);\n          return;\n        }\n        if ((_included$attributes = included.attributes) !== null && _included$attributes !== void 0 && _included$attributes.cta) {\n          var _included$attributes2, _included$attributes4, _included$attributes6;\n          if ((_included$attributes2 = included.attributes) !== null && _included$attributes2 !== void 0 && (_included$attributes2 = _included$attributes2.cta) !== null && _included$attributes2 !== void 0 && _included$attributes2.type) {\n            var _included$attributes3;\n            included.attributes.ctaType = (_included$attributes3 = included.attributes) === null || _included$attributes3 === void 0 || (_included$attributes3 = _included$attributes3.cta) === null || _included$attributes3 === void 0 ? void 0 : _included$attributes3.type;\n          } else {\n            included.attributes.ctaType = null;\n          }\n          if ((_included$attributes4 = included.attributes) !== null && _included$attributes4 !== void 0 && (_included$attributes4 = _included$attributes4.cta) !== null && _included$attributes4 !== void 0 && _included$attributes4.text) {\n            var _included$attributes5;\n            included.attributes.ctaText = (_included$attributes5 = included.attributes) === null || _included$attributes5 === void 0 || (_included$attributes5 = _included$attributes5.cta) === null || _included$attributes5 === void 0 ? void 0 : _included$attributes5.text;\n          } else {\n            included.attributes.ctaText = null;\n          }\n          if ((_included$attributes6 = included.attributes) !== null && _included$attributes6 !== void 0 && (_included$attributes6 = _included$attributes6.cta) !== null && _included$attributes6 !== void 0 && _included$attributes6.link) {\n            var _included$attributes7;\n            included.attributes.ctaLink = (_included$attributes7 = included.attributes) === null || _included$attributes7 === void 0 || (_included$attributes7 = _included$attributes7.cta) === null || _included$attributes7 === void 0 ? void 0 : _included$attributes7.link;\n          } else {\n            included.attributes.ctaLink = null;\n          }\n          delete included.attributes.cta;\n        } else {\n          included.attributes.ctaType = null;\n          included.attributes.ctaText = null;\n          included.attributes.ctaLink = null;\n          delete included.attributes.cta;\n        }\n        data.push(included);\n      });\n      json.included = isArray ? data : data[0];\n      return json;\n    }\n  }\n  _exports.default = EmailCampaign;\n});","define(\"additive-mc/serializers/email-series\", [\"exports\", \"additive-mc/serializers/application\", \"@ember-data/serializer/rest\"], function (_exports, _application, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend(_rest.EmbeddedRecordsMixin, {\n    attrs: {\n      emails: {\n        embedded: 'always'\n      }\n    }\n  });\n});","define(\"additive-mc/serializers/email\", [\"exports\", \"additive-mc/serializers/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Api treats empty ctaType with `null`.\n   * But in ui we use it as `none` to simplify displaying\n   *\n   * API: `{ ctaType: null }`\n   * UI: `{ ctaType: 'none' }`\n   */\n  var _default = _exports.default = _application.default.extend({\n    serializeAttribute(snapshot, json, key) {\n      this._super(...arguments);\n      if (key === 'emailSeriesId' && json.emailSeriesId === '') {\n        json.emailSeriesId = null;\n      }\n    },\n    normalizeResponse() {\n      const json = this._super(...arguments);\n      const isArray = Array.isArray(json.data);\n      const emails = isArray ? json.data : [json.data];\n      let data = [];\n      emails.forEach(email => {\n        if (email.attributes.cta) {\n          var _email$attributes, _email$attributes3, _email$attributes5;\n          if ((_email$attributes = email.attributes) !== null && _email$attributes !== void 0 && (_email$attributes = _email$attributes.cta) !== null && _email$attributes !== void 0 && _email$attributes.type) {\n            var _email$attributes2;\n            email.attributes.ctaType = (_email$attributes2 = email.attributes) === null || _email$attributes2 === void 0 || (_email$attributes2 = _email$attributes2.cta) === null || _email$attributes2 === void 0 ? void 0 : _email$attributes2.type;\n          } else {\n            email.attributes.ctaType = null;\n          }\n          if ((_email$attributes3 = email.attributes) !== null && _email$attributes3 !== void 0 && (_email$attributes3 = _email$attributes3.cta) !== null && _email$attributes3 !== void 0 && _email$attributes3.text) {\n            var _email$attributes4;\n            email.attributes.ctaText = (_email$attributes4 = email.attributes) === null || _email$attributes4 === void 0 || (_email$attributes4 = _email$attributes4.cta) === null || _email$attributes4 === void 0 ? void 0 : _email$attributes4.text;\n          } else {\n            email.attributes.ctaText = null;\n          }\n          if ((_email$attributes5 = email.attributes) !== null && _email$attributes5 !== void 0 && (_email$attributes5 = _email$attributes5.cta) !== null && _email$attributes5 !== void 0 && _email$attributes5.link) {\n            var _email$attributes6;\n            email.attributes.ctaLink = (_email$attributes6 = email.attributes) === null || _email$attributes6 === void 0 || (_email$attributes6 = _email$attributes6.cta) === null || _email$attributes6 === void 0 ? void 0 : _email$attributes6.link;\n          } else {\n            email.attributes.ctaLink = null;\n          }\n          delete email.attributes.cta;\n        }\n        if (!email.attributes.ctaType) {\n          email.attributes.ctaType = null;\n        }\n        data.push(email);\n      });\n      json.data = isArray ? data : data[0];\n      return json;\n    },\n    keyForAttribute(key) {\n      if (key === 'campaignId') {\n        return 'organisationCampaignId';\n      }\n      return this._super(...arguments);\n    }\n  });\n});","define(\"additive-mc/serializers/folder\", [\"exports\", \"@additive-apps/media/serializers/folder\"], function (_exports, _folder) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _folder.default;\n    }\n  });\n});","define(\"additive-mc/serializers/medium\", [\"exports\", \"@additive-apps/media/serializers/medium\"], function (_exports, _medium) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _medium.default;\n    }\n  });\n});","define(\"additive-mc/serializers/on-page-campaign\", [\"exports\", \"additive-mc/serializers/application\", \"@ember-data/serializer/rest\"], function (_exports, _application, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend(_rest.EmbeddedRecordsMixin, {\n    attrs: {\n      voucher: {\n        embedded: 'always'\n      }\n    }\n  });\n});","define(\"additive-mc/serializers/on-page-content\", [\"exports\", \"additive-mc/serializers/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    keyForAttribute(key) {\n      if (key === 'campaignId') {\n        return 'organisationCampaignId';\n      }\n      return this._super(...arguments);\n    }\n  });\n});","define(\"additive-mc/serializers/organization\", [\"exports\", \"@additive-apps/auth/serializers/organization\"], function (_exports, _organization) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _organization.default;\n    }\n  });\n});","define(\"additive-mc/serializers/trigger-email-campaign-contribution\", [\"exports\", \"additive-mc/serializers/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend({\n    modelNameFromPayloadKey(payloadKey) {\n      return payloadKey === 'contribution' ? 'trigger-email-campaign-contribution' : this._super(...arguments);\n    }\n  });\n});","define(\"additive-mc/serializers/trigger-email-campaign-email-series\", [\"exports\", \"additive-mc/serializers/application\", \"@ember-data/serializer/rest\"], function (_exports, _application, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _application.default.extend(_rest.EmbeddedRecordsMixin, {\n    attrs: {\n      emails: {\n        embedded: 'always'\n      }\n    }\n  });\n});","define(\"additive-mc/serializers/trigger-email-campaign-email\", [\"exports\", \"additive-mc/serializers/application\"], function (_exports, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * Api treats empty ctaType with `null`.\n   * But in ui we use it as `none` to simplify displaying\n   *\n   * API: `{ ctaType: null }`\n   * UI: `{ ctaType: 'none' }`\n   */\n  var _default = _exports.default = _application.default.extend({\n    modelNameFromPayloadKey(payloadKey) {\n      return payloadKey === 'email' ? 'trigger-email-campaign-email' : this._super(...arguments);\n    },\n    serializeAttribute(snapshot, json, key) {\n      this._super(...arguments);\n      if (key === 'emailSeriesId' && json.emailSeriesId === '') {\n        json.emailSeriesId = null;\n      }\n    },\n    normalizeResponse() {\n      const json = this._super(...arguments);\n      const isArray = Array.isArray(json.data);\n      const emails = isArray ? json.data : [json.data];\n      let data = [];\n      emails.forEach(email => {\n        if (email.attributes.cta) {\n          var _email$attributes, _email$attributes3, _email$attributes5;\n          if ((_email$attributes = email.attributes) !== null && _email$attributes !== void 0 && (_email$attributes = _email$attributes.cta) !== null && _email$attributes !== void 0 && _email$attributes.type) {\n            var _email$attributes2;\n            email.attributes.ctaType = (_email$attributes2 = email.attributes) === null || _email$attributes2 === void 0 || (_email$attributes2 = _email$attributes2.cta) === null || _email$attributes2 === void 0 ? void 0 : _email$attributes2.type;\n          } else {\n            email.attributes.ctaType = null;\n          }\n          if ((_email$attributes3 = email.attributes) !== null && _email$attributes3 !== void 0 && (_email$attributes3 = _email$attributes3.cta) !== null && _email$attributes3 !== void 0 && _email$attributes3.text) {\n            var _email$attributes4;\n            email.attributes.ctaText = (_email$attributes4 = email.attributes) === null || _email$attributes4 === void 0 || (_email$attributes4 = _email$attributes4.cta) === null || _email$attributes4 === void 0 ? void 0 : _email$attributes4.text;\n          } else {\n            email.attributes.ctaText = null;\n          }\n          if ((_email$attributes5 = email.attributes) !== null && _email$attributes5 !== void 0 && (_email$attributes5 = _email$attributes5.cta) !== null && _email$attributes5 !== void 0 && _email$attributes5.link) {\n            var _email$attributes6;\n            email.attributes.ctaLink = (_email$attributes6 = email.attributes) === null || _email$attributes6 === void 0 || (_email$attributes6 = _email$attributes6.cta) === null || _email$attributes6 === void 0 ? void 0 : _email$attributes6.link;\n          } else {\n            email.attributes.ctaLink = null;\n          }\n          delete email.attributes.cta;\n        }\n        if (!email.attributes.ctaType) {\n          email.attributes.ctaType = null;\n        }\n        data.push(email);\n      });\n      json.data = isArray ? data : data[0];\n      return json;\n    },\n    keyForAttribute(key) {\n      if (key === 'campaignId') {\n        return 'organisationCampaignId';\n      }\n      return this._super(...arguments);\n    }\n  });\n});","define(\"additive-mc/serializers/trigger-email-campaign\", [\"exports\", \"additive-mc/serializers/application\", \"@ember-data/serializer/rest\"], function (_exports, _application, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class EmailCampaign extends _application.default.extend(_rest.EmbeddedRecordsMixin) {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"attrs\", {\n        emailSeries: {\n          embedded: 'always'\n        },\n        contribution: {\n          embedded: 'always'\n        },\n        voucher: {\n          embedded: 'always'\n        },\n        trigger: {\n          embedded: 'always'\n        }\n      });\n    }\n    normalizeResponse(store, primaryModelClass, payload) {\n      // handle new root key\n      if (payload.campaigns) {\n        payload.triggerEmailCampaigns = payload.campaigns;\n        delete payload.campaigns;\n      }\n      if (payload.campaign) {\n        payload.triggerEmailCampaign = payload.campaign;\n        delete payload.campaign;\n      }\n      const json = super.normalizeResponse(...arguments);\n      const isArray = Array.isArray(json.included);\n      const includedData = isArray ? json.included : [json.included];\n      let data = [];\n      includedData.forEach(included => {\n        var _included$attributes;\n        if (included.type !== 'trigger-email-campaign-email') {\n          data.push(included);\n          return;\n        }\n        if ((_included$attributes = included.attributes) !== null && _included$attributes !== void 0 && _included$attributes.cta) {\n          var _included$attributes2, _included$attributes4, _included$attributes6;\n          if ((_included$attributes2 = included.attributes) !== null && _included$attributes2 !== void 0 && (_included$attributes2 = _included$attributes2.cta) !== null && _included$attributes2 !== void 0 && _included$attributes2.type) {\n            var _included$attributes3;\n            included.attributes.ctaType = (_included$attributes3 = included.attributes) === null || _included$attributes3 === void 0 || (_included$attributes3 = _included$attributes3.cta) === null || _included$attributes3 === void 0 ? void 0 : _included$attributes3.type;\n          } else {\n            included.attributes.ctaType = null;\n          }\n          if ((_included$attributes4 = included.attributes) !== null && _included$attributes4 !== void 0 && (_included$attributes4 = _included$attributes4.cta) !== null && _included$attributes4 !== void 0 && _included$attributes4.text) {\n            var _included$attributes5;\n            included.attributes.ctaText = (_included$attributes5 = included.attributes) === null || _included$attributes5 === void 0 || (_included$attributes5 = _included$attributes5.cta) === null || _included$attributes5 === void 0 ? void 0 : _included$attributes5.text;\n          } else {\n            included.attributes.ctaText = null;\n          }\n          if ((_included$attributes6 = included.attributes) !== null && _included$attributes6 !== void 0 && (_included$attributes6 = _included$attributes6.cta) !== null && _included$attributes6 !== void 0 && _included$attributes6.link) {\n            var _included$attributes7;\n            included.attributes.ctaLink = (_included$attributes7 = included.attributes) === null || _included$attributes7 === void 0 || (_included$attributes7 = _included$attributes7.cta) === null || _included$attributes7 === void 0 ? void 0 : _included$attributes7.link;\n          } else {\n            included.attributes.ctaLink = null;\n          }\n          delete included.attributes.cta;\n        } else {\n          included.attributes.ctaType = null;\n          included.attributes.ctaText = null;\n          included.attributes.ctaLink = null;\n          delete included.attributes.cta;\n        }\n        data.push(included);\n      });\n      json.included = isArray ? data : data[0];\n      return json;\n    }\n  }\n  _exports.default = EmailCampaign;\n});","define(\"additive-mc/serializers/user\", [\"exports\", \"@additive-apps/auth/serializers/user\"], function (_exports, _user) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _user.default;\n    }\n  });\n});","define(\"additive-mc/services/-ea-motion\", [\"exports\", \"ember-animated/services/motion\"], function (_exports, _motion) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _motion.default;\n    }\n  });\n});","define(\"additive-mc/services/-ensure-registered\", [\"exports\", \"@embroider/util/services/ensure-registered\"], function (_exports, _ensureRegistered) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _ensureRegistered.default;\n    }\n  });\n});","define(\"additive-mc/services/ae-save-stack\", [\"exports\", \"@additive-apps/configurator/services/ae-save-stack\"], function (_exports, _aeSaveStack) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _aeSaveStack.default;\n    }\n  });\n});","define(\"additive-mc/services/asset-loader\", [\"exports\", \"ember-asset-loader/services/asset-loader\"], function (_exports, _assetLoader) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _assetLoader.default;\n    }\n  });\n});","define(\"additive-mc/services/auth-utils\", [\"exports\", \"@additive-apps/auth/services/auth-utils\"], function (_exports, _authUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _authUtils.default;\n    }\n  });\n});","define(\"additive-mc/services/authenticated-fetch\", [\"exports\", \"@additive-apps/auth/services/authenticated-fetch\"], function (_exports, _authenticatedFetch) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _authenticatedFetch.default;\n    }\n  });\n});","define(\"additive-mc/services/cookies\", [\"exports\", \"ember-cookies/services/cookies\"], function (_exports, _cookies) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _cookies.default;\n});","define(\"additive-mc/services/current-user\", [\"exports\", \"additive-mc/config/environment\", \"@additive-apps/auth/services/current-user\"], function (_exports, _environment, _currentUser) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * ENV variables from the application are passed\n   * to the service and can be used in the addon.\n   */\n  var _default = _exports.default = _currentUser.default.extend({\n    ENV: _environment.default\n  });\n});","define(\"additive-mc/services/file-queue\", [\"exports\", \"ember-file-upload/services/file-queue\"], function (_exports, _fileQueue) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _fileQueue.default;\n    }\n  });\n});","define(\"additive-mc/services/google-connection-state\", [\"exports\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let GoogleConnectionStateService = _exports.default = (_class = class GoogleConnectionStateService extends _service.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"isError\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _class);\n});","define(\"additive-mc/services/intl\", [\"exports\", \"ember-intl/services/intl\"], function (_exports, _intl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _intl.default;\n    }\n  });\n});","define(\"additive-mc/services/localization\", [\"exports\", \"@additive-apps/utils/services/localization\"], function (_exports, _localization) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _localization.default;\n    }\n  });\n});","define(\"additive-mc/services/multimedia\", [\"exports\", \"@additive-apps/media/services/multimedia\"], function (_exports, _multimedia) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _multimedia.default;\n    }\n  });\n});","define(\"additive-mc/services/power-calendar\", [\"exports\", \"ember-power-calendar/services/power-calendar\"], function (_exports, _powerCalendar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _powerCalendar.default;\n    }\n  });\n});","define(\"additive-mc/services/s3-upload-file\", [\"exports\", \"@additive-apps/ui/services/s3-upload-file\"], function (_exports, _s3UploadFile) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _s3UploadFile.default;\n    }\n  });\n});","define(\"additive-mc/services/session\", [\"exports\", \"ember-simple-auth/services/session\"], function (_exports, _session) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _session.default;\n});","define(\"additive-mc/services/store\", [\"exports\", \"ember-data/store\"], function (_exports, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _store.default;\n    }\n  });\n});","define(\"additive-mc/services/ui-app-settings\", [\"exports\", \"@additive-apps/ui/services/ui-app-settings\"], function (_exports, _uiAppSettings) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiAppSettings.default;\n    }\n  });\n});","define(\"additive-mc/services/ui-backdrop\", [\"exports\", \"@additive-apps/ui/services/ui-backdrop\"], function (_exports, _uiBackdrop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiBackdrop.default;\n    }\n  });\n});","define(\"additive-mc/services/ui-dialog\", [\"exports\", \"@additive-apps/ui/services/ui-dialog\"], function (_exports, _uiDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiDialog.default;\n    }\n  });\n});","define(\"additive-mc/services/ui-filter\", [\"exports\", \"@additive-apps/ui/services/ui-filter\"], function (_exports, _uiFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiFilter.default;\n    }\n  });\n});","define(\"additive-mc/services/ui-locale\", [\"exports\", \"@additive-apps/utils/services/ui-locale\"], function (_exports, _uiLocale) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiLocale.default;\n    }\n  });\n});","define(\"additive-mc/services/ui-paths\", [\"exports\", \"@additive-apps/ui/services/ui-paths\"], function (_exports, _uiPaths) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiPaths.default;\n    }\n  });\n});","define(\"additive-mc/services/ui-pusher\", [\"exports\", \"@additive-apps/ui/services/ui-pusher\"], function (_exports, _uiPusher) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiPusher.default;\n    }\n  });\n});","define(\"additive-mc/services/ui-query-params\", [\"exports\", \"@additive-apps/ui/services/ui-query-params\"], function (_exports, _uiQueryParams) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiQueryParams.default;\n    }\n  });\n});","define(\"additive-mc/services/ui-state\", [\"exports\", \"@additive-apps/ui/services/ui-state\"], function (_exports, _uiState) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiState.default;\n    }\n  });\n});","define(\"additive-mc/services/ui-toast\", [\"exports\", \"@additive-apps/ui/services/ui-toast\"], function (_exports, _uiToast) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _uiToast.default;\n    }\n  });\n});","define(\"additive-mc/services/ui-transaction-manager\", [\"exports\", \"additive-mc/config/environment\", \"@glimmer/tracking\", \"lodash.clonedeep\", \"@additive-apps/ui/utils/dom-util\", \"@ember/service\"], function (_exports, _environment, _tracking, _lodash, _domUtil, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  /**\n   * Service that creates and manages transactions for the UI.\n   *\n   * TODO: Move to UI Addon when it's ready.\n   *\n   * @class UiFilterService\n   */\n  let UiTransactionManager = _exports.default = (_class = class UiTransactionManager extends _service.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"uiAppSettings\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"authenticatedFetch\", _descriptor3, this);\n      _initializerDefineProperty(this, \"currentUser\", _descriptor4, this);\n      /**\n       * The current transaction id\n       *\n       * @property transactionId\n       * @type {String}\n       */\n      _initializerDefineProperty(this, \"transactionId\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changedModels\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isLoading\", _descriptor7, this);\n      _initializerDefineProperty(this, \"modelId\", _descriptor8, this);\n    }\n    get baseUrl() {\n      return `${_environment.default.APP.apiBaseHost}/${this.organizationId}/content-wizard/transactions`;\n    }\n    get organizationId() {\n      var _this$currentUser;\n      return (_this$currentUser = this.currentUser) === null || _this$currentUser === void 0 || (_this$currentUser = _this$currentUser.currentOrganization) === null || _this$currentUser === void 0 ? void 0 : _this$currentUser.id;\n    }\n    get hasChanges() {\n      return this.changedModels.length > 0;\n    }\n    get hasTransactionId() {\n      return this.transactionId ? true : false;\n    }\n    get currentLocale() {\n      return this.uiAppSettings.currentLocale;\n    }\n    get defaultLanguage() {\n      return this.currentUser.currentOrganization.language;\n    }\n    async beginTransaction(body) {\n      var _json$transaction;\n      const response = await this.authenticatedFetch.fetch(this.baseUrl, {\n        method: 'POST',\n        body: JSON.stringify(body)\n      });\n      const json = await response.json();\n      this.modelId = body === null || body === void 0 ? void 0 : body.id;\n      this.transactionId = json === null || json === void 0 || (_json$transaction = json.transaction) === null || _json$transaction === void 0 ? void 0 : _json$transaction.id;\n      await (0, _domUtil.nextTick)();\n    }\n    async commitTransaction() {\n      if (!this.transactionId) {\n        return;\n      }\n      const language = this.currentLocale || this.defaultLanguage;\n      const url = `${this.baseUrl}/${this.transactionId}/commit`;\n      const response = await this.authenticatedFetch.fetch(url, {\n        method: 'POST',\n        headers: {\n          'Accept-Language': language\n        }\n      });\n      if ((response === null || response === void 0 ? void 0 : response.status) === 204) {\n        this._cleanUp();\n        return;\n      }\n      const status = response === null || response === void 0 ? void 0 : response.status;\n      const json = await (response === null || response === void 0 ? void 0 : response.json());\n      if (!response.ok) {\n        json.status = status;\n        return json;\n      }\n      this._cleanUp();\n      return json;\n    }\n    async discardTransaction() {\n      if (!this.transactionId) {\n        return;\n      }\n      const url = `${this.baseUrl}/${this.transactionId}`;\n      await this.authenticatedFetch.fetch(url, {\n        method: 'DELETE'\n      });\n      this.changedModels.forEach(model => {\n        typeof model.onTransactionDiscard === 'function' && model.onTransactionDiscard();\n      });\n      this._cleanUp();\n    }\n    async createModelRecord(model) {\n      const url = `${this.baseUrl}/${this.transactionId}/${model.transactionCreateUrl}`;\n      const body = {\n        id: model.id\n      };\n      if (model._internalModel.modelName === 'trigger-email-campaign-email-series') {\n        body['state'] = model.state === 'active' ? 1 : 0;\n        body['offsetInDays'] = model.offsetInDays;\n      }\n      if (model._internalModel.modelName === 'trigger-email-campaign') {\n        body['trigger'] = model.trigger;\n        body['name'] = model.name;\n      }\n      if (model._internalModel.modelName === 'email-series') {\n        body['state'] = model.state === 'active' ? 1 : 0;\n        body['offsetInDays'] = model.offsetInDays;\n      }\n      await this.authenticatedFetch.fetch(url, {\n        method: 'POST',\n        body: JSON.stringify(body)\n      });\n      this._updateChangedModels({\n        model\n      });\n    }\n    async deleteModelRecord(model) {\n      const url = `${this.baseUrl}/${this.transactionId}/${model.transactionUrl}`;\n      await this.authenticatedFetch.fetch(url, {\n        method: 'DELETE'\n      });\n      model.active = false;\n      // Sets isDeleted to true\n      model.deleteRecord();\n      this._updateChangedModels({\n        model\n      });\n      model.unloadRecord();\n    }\n    async publish(model, language) {\n      if (!this.transactionId) {\n        return;\n      }\n      const url = `${this.baseUrl}/${this.transactionId}/${model.transactionUrl}/publish`;\n      await this.authenticatedFetch.fetch(url, {\n        method: 'POST',\n        body: JSON.stringify({\n          language: language\n        })\n      });\n      let publishedLanguages = (0, _lodash.default)(model.get('publishedLanguages')) || [];\n      publishedLanguages.push(language);\n      model.publishedLanguages = publishedLanguages;\n    }\n    async unpublish(model, language) {\n      if (!this.transactionId) {\n        return;\n      }\n      const url = `${this.baseUrl}/${this.transactionId}/${model.transactionUrl}/publish`;\n      await this.authenticatedFetch.fetch(url, {\n        method: 'DELETE',\n        body: JSON.stringify({\n          language: language\n        })\n      });\n      model.publishedLanguages = model.publishedLanguages.filter(publishedLanguage => publishedLanguage !== language);\n    }\n    async schedulePublication(model, property, value) {\n      if (!this.transactionId) {\n        return;\n      }\n      const data = {\n        isStartsAtEnabled: model.isStartsAtEnabled,\n        startsAt: model.startsAt,\n        isEndsAtEnabled: model.isEndsAtEnabled,\n        endsAt: model.endsAt\n      };\n      data[property] = value;\n      model.isStartsAtEnabled = data.isStartsAtEnabled;\n      model.startsAt = data.startsAt;\n      model.endsAt = data.endsAt;\n      model.isEndsAtEnabled = data.isEndsAtEnabled;\n      const url = `${this.baseUrl}/${this.transactionId}/${model.transactionUrl}`;\n      await this.authenticatedFetch.fetch(url, {\n        method: 'PATCH',\n        body: JSON.stringify(data)\n      });\n    }\n    async changeModelProperty(model, property, value, modelKey, urlSuffix, customBody, oldReadableValue, newReadableValue) {\n      const url = `${this.baseUrl}/${this.transactionId}/${model.transactionUrl}${urlSuffix ? `/${urlSuffix}` : ''}`;\n      if (typeof value === 'string' && value.length === 0) {\n        value = null;\n      }\n      const oldModelCopy = this._findInternalModelCopy(model);\n      // Skip request, if no changes were made\n      if ((oldModelCopy === null || oldModelCopy === void 0 ? void 0 : oldModelCopy[property]) === value) {\n        return;\n      }\n      const data = {\n        method: 'PATCH',\n        headers: {\n          'Accept-Language': model === null || model === void 0 ? void 0 : model.language\n        },\n        body: JSON.stringify({\n          [property]: value\n        })\n      };\n      if (customBody) {\n        data.body = JSON.stringify(customBody);\n      }\n      if (!(model !== null && model !== void 0 && model.language)) {\n        delete data.headers;\n      }\n      if (modelKey) {\n        let item = null;\n        let oldValue = null;\n        let newValue = null;\n        if (Array.isArray(model[modelKey])) {\n          item = model[modelKey].find(item => item.key === property);\n          oldValue = item.value;\n          item.value = value;\n          newValue = item.value;\n        } else {\n          item = model[modelKey][property];\n          oldValue = item;\n          item = value;\n          newValue = item;\n        }\n        this._updateChangedModels({\n          model,\n          modelKey,\n          property,\n          oldValue,\n          newValue\n        });\n      } else if (newReadableValue || oldReadableValue) {\n        const newValue = newReadableValue;\n        const oldValue = oldReadableValue;\n        model[property] = value;\n        this._updateChangedModels({\n          model,\n          property,\n          newValue,\n          oldValue\n        });\n      } else {\n        model[property] = value;\n        this._updateChangedModels({\n          model,\n          property\n        });\n      }\n      await this.authenticatedFetch.fetch(url, data);\n    }\n    async changeModelState(model) {\n      const url = `${this.baseUrl}/${this.transactionId}/${model.transactionUrl}/activate`;\n      const isActive = (model === null || model === void 0 ? void 0 : model.active) || model.state === 'active';\n      if ('state' in model) {\n        model.state = isActive ? 'inactive' : 'active';\n        this._updateChangedModels({\n          model,\n          property: 'state'\n        });\n      }\n      if ('active' in model) {\n        model.active = isActive ? false : true;\n        this._updateChangedModels({\n          model,\n          property: 'active'\n        });\n      }\n      await this.authenticatedFetch.fetch(url, {\n        method: isActive ? 'DELETE' : 'POST'\n      });\n    }\n    async deleteLanguage(model, language, adapterOptions) {\n      this.isLoading = true;\n      const availableLanguages = model.availableLanguages;\n      const languageIndex = availableLanguages.indexOf(language);\n      if (languageIndex) {\n        availableLanguages.splice(languageIndex, 1);\n      }\n\n      //  Find/Load all languages of the model and update availableLanguages\n      await this._updateAvailableLanguages(model, availableLanguages, adapterOptions);\n\n      // Check if current model is language which should be deleted\n      if (language !== model.language) {\n        // Find model in changed models and update values\n        const changedModel = this._findInternalModelCopy(model, language);\n        if (changedModel) {\n          Object.keys(changedModel).forEach(key => {\n            if (key !== 'id' && key !== 'modelName' && key !== 'isDeleted' && key !== 'isDeletedLanguage' && key !== 'isNew') {\n              model[key] = changedModel[key];\n            }\n          });\n        } else {\n          // Model not found rollback and reload the model\n          model.rollbackAttributes();\n          this.uiAppSettings.setLocale(language);\n          model.language = language;\n          let _adapterOptions = {\n            campaignId: this.modelId,\n            type: model._internalModel.modelName,\n            useNewApi: true\n          };\n          _adapterOptions = _objectSpread(_objectSpread({}, _adapterOptions), adapterOptions);\n          await model.reload({\n            adapterOptions: _adapterOptions\n          });\n        }\n      }\n      this._updateChangedModels({\n        model,\n        language,\n        property: 'language',\n        isRemoveLanguage: true\n      });\n      const url = `${this.baseUrl}/${this.transactionId}/${model.transactionUrl}/${language}`;\n      await this.authenticatedFetch.fetch(url, {\n        method: 'DELETE'\n      });\n      this.isLoading = false;\n    }\n    async addLanguage(model, locale, adapterOptions) {\n      this.isLoading = true;\n      this.uiAppSettings.setLocale(locale);\n      model.language = locale;\n      this._updateChangedModels({\n        model,\n        isAddLanguage: true\n      });\n      const availableLanguages = model.availableLanguages;\n\n      //  Find/Load all languages of the model and update availableLanguages\n      await this._updateAvailableLanguages(model, availableLanguages, adapterOptions);\n\n      // Switch to new language\n      const index = this.changedModels.findIndex(existingModel => existingModel.modelName === model._internalModel.modelName && existingModel.id === model.id && existingModel.language === locale && existingModel.isDeletedLanguage === false);\n\n      // Find model in changed models and apply changes\n      if (index !== -1) {\n        Object.keys(this.changedModels[index]).forEach(key => {\n          if (key !== 'id' && key !== 'modelName' && key !== 'isDeleted' && key !== 'isDeletedLanguage' && key !== 'isNew') {\n            model[key] = this.changedModels[index][key];\n          }\n        });\n      }\n      await (0, _domUtil.nextTick)();\n      this.isLoading = false;\n    }\n    async changeLanguage(model, locale, adapterOptions) {\n      var _model$nonTranslatabl;\n      this.isLoading = true;\n\n      // Save previous model internaly if it does not exist yet\n      if (model.availableLanguages.includes(model.language)) {\n        this._updateChangedModels({\n          model\n        });\n      }\n      const nonTranslatableProperties = [];\n      if ((model === null || model === void 0 || (_model$nonTranslatabl = model.nonTranslatablePropertyKeys) === null || _model$nonTranslatabl === void 0 ? void 0 : _model$nonTranslatabl.length) > 0) {\n        model.nonTranslatablePropertyKeys.forEach(key => {\n          nonTranslatableProperties.push({\n            key: key,\n            value: model[key]\n          });\n        });\n      }\n      const availableLanguages = model.availableLanguages;\n      // Reload model\n      this.uiAppSettings.setLocale(locale);\n\n      // Set language\n      model.language = locale;\n\n      // Set available languages again to make sure it gets re-rendered for nested models\n      model.availableLanguages = null;\n      model.availableLanguages = availableLanguages;\n      const index = this.changedModels.findIndex(existingModel => existingModel.modelName === model._internalModel.modelName && existingModel.id === model.id && existingModel.language === model.language && existingModel.isDeletedLanguage === false);\n\n      // Find model in changed models and apply changes\n      if (index !== -1) {\n        Object.keys(this.changedModels[index]).forEach(key => {\n          if (key !== 'id' && key !== 'modelName' && key !== 'isDeleted' && key !== 'isDeletedLanguage' && key !== 'isNew') {\n            model[key] = this.changedModels[index][key];\n          }\n        });\n      } else {\n        // Rollback is needed, otherwise properties are not updated correctly\n        model.rollbackAttributes();\n        let _adapterOptions = {\n          campaignId: this.modelId,\n          type: model._internalModel.modelName,\n          useNewApi: true\n        };\n        _adapterOptions = _objectSpread(_objectSpread({}, _adapterOptions), adapterOptions);\n        await model.reload({\n          adapterOptions: _adapterOptions\n        });\n      }\n      nonTranslatableProperties.forEach(_ref => {\n        let {\n          key,\n          value\n        } = _ref;\n        model[key] = value;\n      });\n      await (0, _domUtil.nextTick)();\n      this.isLoading = false;\n    }\n    _findInternalModelCopy(model, language) {\n      const modelName = model !== null && model !== void 0 && model.modelName ? model.modelName : model._internalModel.modelName;\n      const modelLanguage = language ? language : model.language;\n      return this.changedModels.find(oldModel => oldModel.modelName === modelName && oldModel.id === model.id && oldModel.language === modelLanguage);\n    }\n    async _updateAvailableLanguages(model, availableLanguages, adapterOptions) {\n      for (const lang of availableLanguages) {\n        // Check if model is already fetched\n        const changedModel = this._findInternalModelCopy(model, lang);\n        if (changedModel) {\n          Object.keys(changedModel).forEach(key => {\n            if (key !== 'id' && key !== 'modelName' && key !== 'isDeleted' && key !== 'isDeletedLanguage' && key !== 'isNew') {\n              model[key] = changedModel[key];\n            }\n          });\n        } else {\n          // Model not found rollback and reload the model\n          model.rollbackAttributes();\n          this.uiAppSettings.setLocale(lang);\n          model.language = lang;\n          let _adapterOptions = {\n            campaignId: this.modelId,\n            type: model._internalModel.modelName,\n            useNewApi: true\n          };\n          _adapterOptions = _objectSpread(_objectSpread({}, _adapterOptions), adapterOptions);\n          await model.reload({\n            adapterOptions: _adapterOptions\n          });\n        }\n\n        // Update availableLanguages and save model\n        model.availableLanguages = availableLanguages;\n        this._updateChangedModels({\n          model\n        });\n      }\n    }\n\n    /**\n     * Keeps track of the changes which are applied to a model by saving\n     * them inside the property \"changedModels\"\n     *\n     * @function _updateChangedModels\n     * @param {Object} model The updated model\n     * @param {String} property The updated property\n     * @param {Boolean} isAddLanguage Whether a language was added\n     * @param {Boolean} isRemoveLanguage Whether a language was removed\n     * @param {String} language The language of the model (needed when model language is deleted)\n     */\n    _updateChangedModels(_ref2) {\n      let {\n        model,\n        modelKey,\n        property,\n        language,\n        isAddLanguage = false,\n        isRemoveLanguage = false,\n        oldValue,\n        newValue\n      } = _ref2;\n      // Create copy of model\n      const modelCopy = model.getProperties(...Object.keys(model.constructor.proto()));\n      modelCopy.id = model.id;\n      modelCopy.modelName = model._internalModel.modelName;\n      modelCopy.changes = [];\n      modelCopy.language = language || model.language;\n      modelCopy.isDeletedLanguage = isRemoveLanguage;\n      modelCopy.isDeleted = model.isDeleted;\n      modelCopy.isNew = model.isNew || isAddLanguage;\n\n      // Find internal model copy\n      const oldModelCopy = this._findInternalModelCopy(modelCopy);\n\n      // If there is an old version of this model saved and\n      // isNew is set then the model should use this value\n      if (oldModelCopy) {\n        modelCopy.isNew = oldModelCopy.isNew || modelCopy.isNew;\n      }\n\n      // Extract change (old and new value)\n      const change = model.changedAttributes()[property];\n\n      // Push change into changes array if there was a change\n      if (change && change.length || oldValue || newValue || typeof oldValue === 'boolean' && typeof newValue === 'boolean') {\n        const oldChange = oldModelCopy === null || oldModelCopy === void 0 ? void 0 : oldModelCopy.changes.find(change => change.key === `${oldModelCopy.modelName}.${property}`);\n        let _oldValue = null;\n        if (oldChange) {\n          _oldValue = oldChange.old;\n        } else {\n          if (oldValue || typeof oldValue === 'boolean') {\n            _oldValue = oldValue;\n          } else if ((change === null || change === void 0 ? void 0 : change.length) > 0) {\n            _oldValue = change[0];\n          }\n        }\n        let _newValue = null;\n        if (newValue || typeof newValue === 'boolean') {\n          _newValue = newValue;\n        } else if ((change === null || change === void 0 ? void 0 : change.length) > 0) {\n          _newValue = change[1];\n        }\n        let type = modelCopy.isNew ? 'added' : 'changed';\n        if (property === 'state' || property === 'active') {\n          type = _newValue === 'active' || _newValue === true ? 'activated' : 'deactivated';\n        }\n        modelCopy.changes.push({\n          key: `${modelCopy.modelName}.${property}`,\n          modelKey: modelKey,\n          type: type,\n          old: _oldValue,\n          new: _newValue\n        });\n      }\n\n      // Find internal model copies\n      const changedModels = this.changedModels.filter(existingModel => existingModel.modelName === modelCopy.modelName && existingModel.id === modelCopy.id && (model.isDeleted || existingModel.language === modelCopy.language));\n\n      // Iterate over internal model copies and merge changes\n      changedModels.forEach(changedModel => {\n        // Filter out old changes of the same property\n        changedModel.changes = changedModel.changes.filter(change => {\n          var _modelCopy$changes$;\n          return (change === null || change === void 0 ? void 0 : change.key) !== ((_modelCopy$changes$ = modelCopy.changes[0]) === null || _modelCopy$changes$ === void 0 ? void 0 : _modelCopy$changes$.key);\n        });\n\n        // Merge new and old changes\n        modelCopy.changes = modelCopy.changes.concat(changedModel.changes);\n\n        // Remove change if old and new value is the same\n        modelCopy.changes = modelCopy.changes.filter(change => change.old != change.new);\n\n        // Delete old model copy\n        const index = this.changedModels.indexOf(changedModel);\n        if (!this.changedModels[index].isDeletedLanguage && !this.changedModels[index].isDeleted) {\n          this.changedModels.splice(index, 1);\n        }\n      });\n\n      // Remove all previous changes if model is deleted\n      if (modelCopy.isDeleted || isRemoveLanguage) {\n        modelCopy.changes = [];\n      }\n\n      // Whether a model is deleted which was just created. We dont keep track\n      // of such a model, since the state is the same as in the beginning\n      const isDeleteNewModel = (oldModelCopy === null || oldModelCopy === void 0 ? void 0 : oldModelCopy.isNew) && (modelCopy.isDeleted || modelCopy.isDeletedLanguage);\n      if (!isDeleteNewModel) {\n        this.changedModels.push(modelCopy);\n      }\n    }\n    _cleanUp() {\n      this.transactionId = null;\n      this.changedModels = [];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uiAppSettings\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"authenticatedFetch\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"currentUser\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"transactionId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"changedModels\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return [];\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"modelId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function initializer() {\n      return null;\n    }\n  }), _class);\n});","define(\"additive-mc/session-stores/application\", [\"exports\", \"ember-simple-auth/session-stores/adaptive\"], function (_exports, _adaptive) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _adaptive.default.extend();\n});","define(\"additive-mc/templates/application-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"gpJyaWwT\",\n    \"block\": \"[[[8,[39,0],null,null,null]],[],false,[\\\"ui-loading-page\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/application-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/application\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"4I5sk3DJ\",\n    \"block\": \"[[[10,0],[14,0,\\\"application-view flex w-100\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"isAuthenticated\\\"]],[[[1,\\\"    \\\"],[8,[39,1],null,[[\\\"@class\\\"],[\\\"flex flex-column\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"accountSwitch\\\"]],null,[[\\\"@onOrganizationClick\\\"],[[30,0,[\\\"transitionToOrganizationRoute\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"instanceRoutes\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[30,1,[\\\"menuItem\\\"]],null,[[\\\"@title\\\",\\\"@icon\\\",\\\"@routePath\\\"],[[28,[37,4],[[30,2,[\\\"intlKey\\\"]]],null],[30,2,[\\\"svg\\\"]],[30,2,[\\\"path\\\"]]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"menuItem\\\"]],null,[[\\\"@title\\\",\\\"@icon\\\",\\\"@href\\\"],[[28,[37,4],[\\\"routes.help.title\\\"],null],\\\"help\\\",[30,0,[\\\"helpUrl\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[30,1,[\\\"appsList\\\"]],null,null,null],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"userButton\\\"]],null,null,null],[1,\\\"\\\\n    \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[46,[28,[37,6],null,null],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,1,\\\"mm-fullscreen-view-container\\\"],[12],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,1,\\\"ember-basic-dropdown-wormhole\\\"],[12],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,7],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,8],null,[[\\\"@parent\\\"],[\\\"body\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"onboarding\\\"]],[[[1,\\\"    \\\"],[8,[39,9],null,[[\\\"@activeOnboarding\\\",\\\"@onboarding\\\",\\\"@onFinish\\\",\\\"@appNameSvg\\\"],[[30,0,[\\\"onboarding\\\"]],[30,0,[\\\"_onboardingOptions\\\"]],[28,[37,10],[[30,0],\\\"finishOnboarding\\\"],null],\\\"app-name-mc\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"applicationNavDrawer\\\",\\\"route\\\"],false,[\\\"if\\\",\\\"ui-application-navigation-drawer\\\",\\\"each\\\",\\\"-track-array\\\",\\\"t\\\",\\\"component\\\",\\\"-outlet\\\",\\\"ui-dialog-service\\\",\\\"ui-toast-container\\\",\\\"ui-onboarding\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/application.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/auth/callback\", [\"exports\", \"@additive-apps/auth/templates/auth/callback\"], function (_exports, _callback) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _callback.default;\n    }\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/category-card\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"avcOTAYP\",\n    \"block\": \"[[[18,3,null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"svg\\\"]],[[[1,\\\"  \\\"],[1,[28,[35,2],[[30,0,[\\\"svg\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"font-lg primary\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[30,1]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"font-sm secondary pt2\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[30,2]],[1,\\\"\\\\n\\\"],[13]],[\\\"@title\\\",\\\"@description\\\",\\\"&default\\\"],false,[\\\"yield\\\",\\\"if\\\",\\\"svg-jar\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/category-card.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"DfjUlvZ3\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex flex-wrap items-center font-sm primary ellipsis\\\"],[12],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"item\\\",\\\"label\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"item\\\",\\\"info\\\"]],[[[1,\\\"    \\\"],[8,[39,1],[[16,\\\"data-test-config-item-info\\\",true]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,2],[[28,[37,3],[[30,0,[\\\"item\\\",\\\"state\\\"]],\\\"info\\\"],null]],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[[28,[37,4],[\\\"ml1 \\\",[28,[37,5],[[30,0,[\\\"item\\\",\\\"state\\\"]]],[[\\\"fallback\\\"],[\\\"secondary\\\"]]]],null],\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"item\\\",\\\"info\\\"]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"item\\\",\\\"state\\\"]],[[[1,\\\"      \\\"],[1,[28,[35,2],[[30,0,[\\\"item\\\",\\\"state\\\"]]],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[[28,[37,4],[\\\"ml1 \\\",[28,[37,5],[[30,0,[\\\"item\\\",\\\"state\\\"]]],[[\\\"fallback\\\"],[\\\"secondary\\\"]]]],null],\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"flex-wrap flex-grow-1 font-sm secondary ph1 break-word\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,6],[[30,0,[\\\"item\\\"]],[30,0,[\\\"configurationValueOptions\\\"]]],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"componentType\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"flex justify-end\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isToggable\\\"]],[[[1,\\\"      \\\"],[46,[28,[37,4],[\\\"amc-campaign/configuration-item/\\\",[30,0,[\\\"componentType\\\"]]],null],null,[[\\\"item\\\",\\\"onSave\\\",\\\"isReadOnly\\\"],[[30,0,[\\\"item\\\"]],[28,[37,8],[[30,0],[30,0,[\\\"onSave\\\"]]],null],[30,0,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isEdit\\\"]],[[[1,\\\"      \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"edit\\\",true,[28,[37,8],[[30,0],[28,[37,10],[[30,0,[\\\"isOpen\\\"]]],null],true],null]]],null],[1,\\\"\\\\n    \\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isOpen\\\"]],[[[46,[28,[37,4],[\\\"amc-campaign/configuration-item/\\\",[30,0,[\\\"componentType\\\"]]],null],null,[[\\\"item\\\",\\\"model\\\",\\\"onClose\\\",\\\"onSave\\\",\\\"isReadOnly\\\"],[[30,0,[\\\"item\\\"]],[30,0,[\\\"model\\\"]],[28,[37,8],[[30,0],[28,[37,10],[[30,0,[\\\"isOpen\\\"]]],null],false],null],[28,[37,8],[[30,0],[30,0,[\\\"onSave\\\"]]],null],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"      \\\"],[18,3,[[28,[37,12],null,[[\\\"multimediaOverlayContent\\\"],[[30,2,[\\\"multimediaOverlayContent\\\"]]]]]]],[1,\\\"\\\\n\\\"]],[2]]]]]],[]],null]],[]],null]],[\\\"pop\\\",\\\"configurationItem\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"ui-popover\\\",\\\"svg-jar\\\",\\\"or\\\",\\\"concat\\\",\\\"amc-state-to-color-class\\\",\\\"amc-campaign-configuration-value\\\",\\\"component\\\",\\\"action\\\",\\\"ui-icon-button\\\",\\\"mut\\\",\\\"yield\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/array\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"qO53Y3+M\",\n    \"block\": \"[[[8,[39,0],[[24,\\\"data-test-config-item-array-content\\\",\\\"\\\"]],[[\\\"@title\\\",\\\"@description\\\",\\\"@inputLabel\\\",\\\"@onClose\\\",\\\"@changeset\\\",\\\"@changesetProperty\\\",\\\"@isReadOnly\\\",\\\"@onSave\\\"],[[30,0,[\\\"item\\\",\\\"label\\\"]],[30,0,[\\\"item\\\",\\\"description\\\"]],[30,0,[\\\"item\\\",\\\"label\\\"]],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"_changeset\\\"]],\\\"value\\\",[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"onSave\\\"]]]],null]],[],false,[\\\"ui-tags-input-modal\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/array.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/boolean\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"m+TzMsJ7\",\n    \"block\": \"[[[8,[39,0],[[16,\\\"data-test-config-item-boolean\\\",true]],[[\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[30,0,[\\\"item\\\",\\\"value\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,1],[[30,0],\\\"save\\\"],null]]],null]],[],false,[\\\"ui-switch\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/boolean.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/datetime\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"MgjnV+pT\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@beforeSave\\\",\\\"@onSave\\\",\\\"@onClose\\\",\\\"@item\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0],\\\"beforeSave\\\"],null],[28,[37,2],[[30,0,[\\\"_save\\\"]]],null],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isReadOnly\\\"]],[[[1,\\\"      \\\"],[1,[28,[35,4],[[30,1,[\\\"changeset\\\",\\\"value\\\"]]],null]],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[[30,1,[\\\"changeset\\\",\\\"value\\\"]]],[[\\\"format\\\"],[\\\"hhmmss\\\"]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@initialDate\\\",\\\"@onChange\\\",\\\"@onValidStateChange\\\",\\\"@isClearable\\\",\\\"@minDate\\\",\\\"@maxDate\\\"],[[30,1,[\\\"changeset\\\",\\\"value\\\"]],[28,[37,1],[[30,0],[28,[37,7],[[30,1,[\\\"changeset\\\",\\\"value\\\"]]],null]],null],[28,[37,1],[[30,0],[28,[37,7],[[30,0,[\\\"_contentIsValid\\\"]]],null]],null],true,[30,0,[\\\"minDate\\\"]],[30,0,[\\\"maxDate\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"action\\\",\\\"perform\\\",\\\"if\\\",\\\"format-date\\\",\\\"format-time\\\",\\\"ui-datetime-picker\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/datetime.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/money\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"Sq1O2mjA\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onSave\\\",\\\"@onClose\\\",\\\"@item\\\",\\\"@childChangeset\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0,[\\\"_save\\\"]]],null],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"_moneyChangeset\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isDisabled\\\",\\\"@type\\\",\\\"@errorMessage\\\"],[[30,0,[\\\"item\\\",\\\"label\\\"]],[30,0,[\\\"_moneyChangeset\\\",\\\"value\\\"]],[30,0,[\\\"_isDisabled\\\"]],\\\"number\\\",[28,[37,3],[[30,0,[\\\"_moneyChangeset\\\",\\\"error\\\",\\\"value\\\"]],\\\"validation\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"left\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"pr1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\",\\\"input\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"perform\\\",\\\"ui-input\\\",\\\"get\\\",\\\"currency-symbol\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/money.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/multilingual-link\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"MiyW78ns\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onClose\\\",\\\"@save\\\",\\\"@item\\\",\\\"@childChangeset\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"onClose\\\"]],[30,0,[\\\"_save\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"_changeset\\\"]],[28,[37,1],[[30,0,[\\\"isReadOnly\\\"]],[28,[37,2],[[30,0,[\\\"_changeset\\\",\\\"isValid\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\"],[[28,[37,4],[\\\"components.amc-campaign-configuration.multilingual-link.labelLanguage\\\"],null],[30,0,[\\\"_organizationLanguages\\\"]],[28,[37,4],[[28,[37,5],[\\\"global.languages.\\\",[30,0,[\\\"_selectedLanguage\\\"]]],null]],null],[30,0,[\\\"selectLanguage\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,3,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2,3]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,6],[[16,\\\"data-test-config-item-multilingual-link-content\\\",true]],[[\\\"@label\\\",\\\"@value\\\",\\\"@isDisabled\\\",\\\"@errorMessage\\\"],[[28,[37,4],[\\\"components.amc-campaign-configuration.multilingual-link.labelText\\\"],null],[28,[37,7],[[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"_selectedLanguage\\\"]]],null],[30,0,[\\\"_isDisabled\\\"]],[28,[37,7],[[28,[37,7],[[30,0,[\\\"_changeset\\\",\\\"error\\\"]],[30,0,[\\\"_selectedLanguage\\\"]]],null],\\\"validation\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\",\\\"optionComponent\\\",\\\"language\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"or\\\",\\\"not\\\",\\\"ui-select\\\",\\\"t\\\",\\\"concat\\\",\\\"ui-input\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/multilingual-link.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/multilingual-text\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"mPe+FkBA\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onClose\\\",\\\"@save\\\",\\\"@item\\\",\\\"@childChangeset\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"onClose\\\"]],[30,0,[\\\"_save\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,1],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\"],[[28,[37,2],[\\\"components.amc-campaign-configuration.multilingual-text.labelLanguage\\\"],null],[30,0,[\\\"_organizationLanguages\\\"]],[28,[37,2],[[28,[37,3],[\\\"global.languages.\\\",[30,0,[\\\"_selectedLanguage\\\"]]],null]],null],[28,[37,4],[[30,0],[28,[37,5],[[30,0,[\\\"_selectedLanguage\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,3,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2,3]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,6],[[16,\\\"data-test-config-item-multilingual-text-content\\\",true]],[[\\\"@label\\\",\\\"@value\\\",\\\"@isDisabled\\\",\\\"@textarea\\\"],[[28,[37,2],[\\\"components.amc-campaign-configuration.multilingual-text.labelText\\\"],null],[28,[37,7],[[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"_selectedLanguage\\\"]]],null],[30,0,[\\\"_isDisabled\\\"]],true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\",\\\"optionComponent\\\",\\\"language\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"ui-select\\\",\\\"t\\\",\\\"concat\\\",\\\"action\\\",\\\"mut\\\",\\\"ui-input\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/multilingual-text.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/multilingual-texts\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"t2MiMRn+\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@isSimpleDialog\\\",\\\"@onClose\\\",\\\"@theme\\\"],[[30,0,[\\\"item\\\",\\\"label\\\"]],true,[30,0,[\\\"onClose\\\"]],\\\"grey\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,1],null,[[\\\"@classNames\\\",\\\"@items\\\"],[\\\"pb4\\\",[30,0,[\\\"_textVariants\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"empty\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,2],[\\\"components.amc-campaign-configuration.multilingual-texts.noTextVariants\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@onClick\\\"],[[30,4,[\\\"label\\\"]],[30,4,[\\\"description\\\"]],[28,[37,3],[[30,0],\\\"editTextVariant\\\",[30,4]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"            \\\"],[8,[30,5,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,5],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,6,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"global.actions.delete\\\"],null],[28,[37,3],[[30,0],\\\"showConfirmDeleteDialog\\\",[30,4]],null]]],null],[1,\\\"\\\\n              \\\"]],[6]]]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[5]]]]],[1,\\\"\\\\n      \\\"]],[3,4]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"plus\\\",true,[28,[37,3],[[30,0],\\\"addTextVariant\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_isEditMode\\\"]],[[[1,\\\"  \\\"],[8,[39,8],null,[[\\\"@item\\\",\\\"@closeOnSave\\\",\\\"@isReadOnly\\\",\\\"@onClose\\\",\\\"@onSave\\\"],[[30,0,[\\\"_selectedTextVariant\\\"]],false,[30,0,[\\\"isReadOnly\\\"]],[28,[37,3],[[30,0],[28,[37,9],[[30,0,[\\\"_isEditMode\\\"]]],null],false],null],[28,[37,3],[[30,0],\\\"saveTextVariant\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"m\\\",\\\"c\\\",\\\"list\\\",\\\"textVariant\\\",\\\"controls\\\",\\\"content\\\"],false,[\\\"ui-modal\\\",\\\"ui-list\\\",\\\"t\\\",\\\"action\\\",\\\"unless\\\",\\\"ui-item-menu\\\",\\\"ui-button\\\",\\\"if\\\",\\\"amc-campaign/configuration-item/multilingual-text\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/multilingual-texts.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/multimedia\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"aoXCHuu1\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onSave\\\",\\\"@onClose\\\",\\\"@childChangeset\\\",\\\"@item\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0,[\\\"_save\\\"]]],null],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"_multimediaChangeset\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"amc-campaign__configuration-item-multimedia-dialog\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@isReadOnly\\\",\\\"@resources\\\",\\\"@onDropzoneClick\\\",\\\"@onResourceRemove\\\",\\\"@onResourceEdit\\\"],[[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"_multimediaChangeset\\\",\\\"medium\\\"]],[28,[37,3],[[30,0],\\\"_openMultimedia\\\"],null],[28,[37,3],[[30,0],\\\"_onResourceRemove\\\"],null],[28,[37,3],[[30,0],[28,[37,4],[[30,0,[\\\"_multimediaChangeset\\\"]],\\\"medium\\\"],null]],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,5],null,[[\\\"@onClose\\\",\\\"@onAddMedium\\\"],[[28,[37,3],[[30,0],\\\"_closeMultimedia\\\"],null],[28,[37,3],[[30,0],\\\"_onResourceAdd\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[18,2,[[28,[37,7],null,[[\\\"multimediaOverlayContent\\\"],[[50,\\\"ui-blank-template\\\",0,null,null]]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\",\\\"&default\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"perform\\\",\\\"mm-resource-gallery\\\",\\\"action\\\",\\\"changeset-set\\\",\\\"mm-multimedia-overlay\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/multimedia.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/multiselect\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"GsWO6zzE\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onSave\\\",\\\"@onClose\\\",\\\"@childChangeset\\\",\\\"@item\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0,[\\\"_save\\\"]]],null],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"_multiselectChangeset\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@isReadOnly\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@onChange\\\"],[\\\"w-100\\\",[30,0,[\\\"item\\\",\\\"label\\\"]],[30,0,[\\\"_multiselectChangeset\\\",\\\"options\\\"]],[30,0,[\\\"_multiselectChangeset\\\",\\\"options\\\"]],[30,1,[\\\"changeset\\\",\\\"allowedValues\\\"]],[30,0,[\\\"isReadOnly\\\"]],true,\\\"label\\\",[28,[37,3],[[30,0],\\\"onSelectChange\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,3]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,3,[\\\"label\\\"]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2,3]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"perform\\\",\\\"ui-select\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/multiselect.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/percentage-distribution\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"NO91txP6\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@beforeSave\\\",\\\"@onSave\\\",\\\"@onClose\\\",\\\"@childChangeset\\\",\\\"@item\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0,[\\\"_setSum\\\"]]],null],[28,[37,1],[[30,0,[\\\"_save\\\"]]],null],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column w-100\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"_changeset\\\",\\\"value\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,4],[[16,\\\"data-test-config-item-percentage-distribution\\\",[30,3]]],[[\\\"@label\\\",\\\"@placeholder\\\",\\\"@type\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isDisabled\\\"],[[30,2,[\\\"label\\\"]],[30,2,[\\\"label\\\"]],\\\"number\\\",[30,2,[\\\"value\\\"]],[28,[37,5],[[28,[37,5],[[30,0,[\\\"_changeset\\\",\\\"error\\\",\\\"value\\\",\\\"validation\\\"]],\\\"firstObject.value\\\"],null],[30,3]],null],[28,[37,6],[[30,1,[\\\"isLoading\\\"]],[30,0,[\\\"isReadOnly\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_changeset\\\",\\\"error\\\",\\\"sum\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"font-xs red\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[[30,0,[\\\"_changeset\\\",\\\"error\\\",\\\"sum\\\",\\\"validation\\\"]],\\\"firstObject\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\",\\\"element\\\",\\\"index\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"perform\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ui-input\\\",\\\"get\\\",\\\"amc-or\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/percentage-distribution.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/select\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"dSMN87hS\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onSave\\\",\\\"@onClose\\\",\\\"@item\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0,[\\\"_save\\\"]]],null],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\",\\\"@isReadOnly\\\"],[\\\"w-100\\\",[30,0,[\\\"item\\\",\\\"label\\\"]],[30,1,[\\\"changeset\\\",\\\"value\\\"]],[30,1,[\\\"changeset\\\",\\\"value\\\",\\\"label\\\"]],[30,1,[\\\"changeset\\\",\\\"allowedValues\\\"]],[28,[37,3],[[30,0],[28,[37,4],[[30,1,[\\\"changeset\\\",\\\"value\\\"]]],null]],null],[28,[37,5],[[30,1,[\\\"isLoading\\\"]],[30,0,[\\\"isReadOnly\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,3]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,3,[\\\"label\\\"]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2,3]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"perform\\\",\\\"ui-select\\\",\\\"action\\\",\\\"mut\\\",\\\"amc-or\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/select.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/text\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"7JcRUary\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onSave\\\",\\\"@onClose\\\",\\\"@item\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0,[\\\"_save\\\"]]],null],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isDisabled\\\"],[[30,0,[\\\"item\\\",\\\"label\\\"]],[30,1,[\\\"changeset\\\",\\\"value\\\"]],[28,[37,3],[[30,1,[\\\"isLoading\\\"]],[30,0,[\\\"isReadOnly\\\"]]],null]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"perform\\\",\\\"ui-input\\\",\\\"amc-or\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/text.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/time\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"ab2GzQQL\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@beforeSave\\\",\\\"@onSave\\\",\\\"@onClose\\\",\\\"@item\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0],\\\"beforeSave\\\"],null],[28,[37,2],[[30,0,[\\\"_save\\\"]]],null],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isReadOnly\\\"]],[[[1,\\\"      \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isDisabled\\\"],[[28,[37,5],[\\\"components.amc-campaign-configuration.time.label\\\"],null],[30,0,[\\\"item\\\",\\\"value\\\"]],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@allowEmptyValue\\\",\\\"@label\\\",\\\"@minTime\\\",\\\"@maxTime\\\",\\\"@initialValue\\\",\\\"@onChange\\\",\\\"@onValidStateChange\\\"],[true,[28,[37,5],[\\\"components.amc-campaign-configuration.time.label\\\"],null],\\\"00:00\\\",\\\"23:59\\\",[30,0,[\\\"item\\\",\\\"value\\\"]],[28,[37,1],[[30,0],\\\"onTimePickerChange\\\",[30,1,[\\\"changeset\\\"]]],null],[28,[37,1],[[30,0],[28,[37,7],[[30,0,[\\\"_contentIsValid\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"action\\\",\\\"perform\\\",\\\"if\\\",\\\"ui-input\\\",\\\"t\\\",\\\"ui-timepicker\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/time.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/timespan\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"cPs0eaQ2\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onSave\\\",\\\"@onClose\\\",\\\"@childChangeset\\\",\\\"@item\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0,[\\\"_save\\\"]]],null],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"_durationChangeset\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"item\\\",\\\"description\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"pb3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"item\\\",\\\"description\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[44,[[28,[37,4],[[30,1,[\\\"isLoading\\\"]],[30,0,[\\\"isReadOnly\\\"]]],null]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-row\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@type\\\",\\\"@value\\\",\\\"@isDisabled\\\",\\\"@errorMessage\\\"],[\\\"mr1\\\",[28,[37,6],[\\\"global.dates.years\\\"],[[\\\"value\\\"],[2]]],[28,[37,6],[\\\"global.dates.years\\\"],[[\\\"value\\\"],[2]]],\\\"number\\\",[30,0,[\\\"_durationChangeset\\\",\\\"years\\\"]],[30,2],[28,[37,7],[[30,0,[\\\"_durationChangeset\\\",\\\"error\\\",\\\"years\\\"]],\\\"validation\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@type\\\",\\\"@value\\\",\\\"@isDisabled\\\",\\\"@errorMessage\\\"],[\\\"mr1\\\",[28,[37,6],[\\\"global.dates.months\\\"],[[\\\"value\\\"],[2]]],[28,[37,6],[\\\"global.dates.months\\\"],[[\\\"value\\\"],[2]]],\\\"number\\\",[30,0,[\\\"_durationChangeset\\\",\\\"months\\\"]],[30,2],[28,[37,7],[[30,0,[\\\"_durationChangeset\\\",\\\"error\\\",\\\"months\\\"]],\\\"validation\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@type\\\",\\\"@value\\\",\\\"@isDisabled\\\",\\\"@errorMessage\\\"],[\\\"mr1\\\",[28,[37,6],[\\\"global.dates.days\\\"],[[\\\"value\\\"],[2]]],[28,[37,6],[\\\"global.dates.days\\\"],[[\\\"value\\\"],[2]]],\\\"number\\\",[30,0,[\\\"_durationChangeset\\\",\\\"days\\\"]],[30,2],[28,[37,7],[[30,0,[\\\"_durationChangeset\\\",\\\"error\\\",\\\"days\\\"]],\\\"validation\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex flex-row\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@type\\\",\\\"@value\\\",\\\"@isDisabled\\\",\\\"@errorMessage\\\"],[\\\"mr1\\\",[28,[37,6],[\\\"global.dates.hours\\\"],[[\\\"value\\\"],[2]]],[28,[37,6],[\\\"global.dates.hours\\\"],[[\\\"value\\\"],[2]]],\\\"number\\\",[30,0,[\\\"_durationChangeset\\\",\\\"hours\\\"]],[30,2],[28,[37,7],[[30,0,[\\\"_durationChangeset\\\",\\\"error\\\",\\\"hours\\\"]],\\\"validation\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@type\\\",\\\"@value\\\",\\\"@isDisabled\\\",\\\"@errorMessage\\\"],[\\\"mr1\\\",[28,[37,6],[\\\"global.dates.minutes\\\"],[[\\\"value\\\"],[2]]],[28,[37,6],[\\\"global.dates.minutes\\\"],[[\\\"value\\\"],[2]]],\\\"number\\\",[30,0,[\\\"_durationChangeset\\\",\\\"minutes\\\"]],[30,2],[28,[37,7],[[30,0,[\\\"_durationChangeset\\\",\\\"error\\\",\\\"minutes\\\"]],\\\"validation\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@placeholder\\\",\\\"@type\\\",\\\"@value\\\",\\\"@isDisabled\\\",\\\"@errorMessage\\\"],[\\\"mr1\\\",[28,[37,6],[\\\"global.dates.seconds\\\"],[[\\\"value\\\"],[2]]],[28,[37,6],[\\\"global.dates.seconds\\\"],[[\\\"value\\\"],[2]]],\\\"number\\\",[30,0,[\\\"_durationChangeset\\\",\\\"seconds\\\"]],[30,2],[28,[37,7],[[30,0,[\\\"_durationChangeset\\\",\\\"error\\\",\\\"seconds\\\"]],\\\"validation\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\",\\\"isDisabled\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"perform\\\",\\\"if\\\",\\\"let\\\",\\\"amc-or\\\",\\\"ui-input\\\",\\\"t\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/timespan.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/with-modal\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"7bD7EquU\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@isSimpleDialog\\\",\\\"@onClose\\\",\\\"@modalClassNames\\\"],[[30,0,[\\\"item\\\",\\\"label\\\"]],true,[28,[37,1],[[30,0],\\\"onClose\\\"],null],\\\"with-modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],[[16,\\\"data-test-with-modal-content\\\",true]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pt1\\\"],[12],[1,\\\"\\\\n        \\\"],[18,3,[[28,[37,3],null,[[\\\"changeset\\\",\\\"isLoading\\\",\\\"content\\\"],[[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[50,\\\"ui-blank-template\\\",0,null,null]]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,5],[[16,\\\"data-test-with-modal-save\\\",true]],[[\\\"@label\\\",\\\"@isSecondary\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,6],[\\\"global.actions.save\\\"],null],true,[30,0,[\\\"isReadOnly\\\"]],[28,[37,7],[[30,0,[\\\"save\\\"]]],null]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,8],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"_isDiscardChangesDialog\\\"]],[28,[37,1],[[30,0],\\\"confirmDiscard\\\"],null]]],null]],[\\\"m\\\",\\\"c\\\",\\\"&default\\\"],false,[\\\"ui-modal\\\",\\\"action\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"ui-button\\\",\\\"t\\\",\\\"perform\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/with-modal.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/configuration-item/yeardate\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"LcrggFPR\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onSave\\\",\\\"@onClose\\\",\\\"@childChangeset\\\",\\\"@item\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[[30,0,[\\\"_save\\\"]]],null],[30,0,[\\\"onClose\\\"]],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"item\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@class\\\",\\\"@label\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\",\\\"@isReadOnly\\\"],[\\\"pr1\\\",[28,[37,3],[\\\"global.dates.days\\\"],[[\\\"value\\\"],[1]]],[30,0,[\\\"_changeset\\\",\\\"day\\\"]],[30,0,[\\\"_dayOptions\\\"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,[\\\"_changeset\\\",\\\"day\\\"]]],null]],null],[28,[37,6],[[30,1,[\\\"isLoading\\\"]],[30,0,[\\\"isReadOnly\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,3,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,3,[\\\"value\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2,3]]]]],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\",\\\"@isReadOnly\\\"],[[28,[37,3],[\\\"global.dates.months\\\"],[[\\\"value\\\"],[1]]],[30,0,[\\\"_changeset\\\",\\\"month\\\"]],[30,0,[\\\"_monthOptions\\\"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,[\\\"_changeset\\\",\\\"month\\\"]]],null]],null],[28,[37,6],[[30,1,[\\\"isLoading\\\"]],[30,0,[\\\"isReadOnly\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,5,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,5,[\\\"value\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[4,5]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"modal\\\",\\\"option\\\",\\\"item\\\",\\\"option\\\",\\\"item\\\"],false,[\\\"amc-campaign/configuration-item/with-modal\\\",\\\"perform\\\",\\\"ui-select\\\",\\\"t\\\",\\\"action\\\",\\\"mut\\\",\\\"amc-or\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/configuration-item/yeardate.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/email-campaign/email-list\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"ljkAe0fF\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@items\\\",\\\"@isLoading\\\",\\\"@placeholderCount\\\",\\\"@hasMobileSpacing\\\"],[[30,0,[\\\"_emails\\\"]],[30,0,[\\\"fetchEmails\\\",\\\"isRunning\\\"]],5,true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"item\\\"]],null,[[\\\"@description\\\",\\\"@state\\\",\\\"@linkTo\\\",\\\"@linkToParam\\\"],[[30,2,[\\\"emailSeriesName\\\"]],[52,[30,2,[\\\"active\\\"]],\\\"success\\\",\\\"error\\\"],[28,[37,2],[\\\"instance.campaigns.\\\",[30,0,[\\\"campaignType\\\"]],\\\".detail.index.email\\\"],null],[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,2,[\\\"subject\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@modelOptions\\\",\\\"@resourceId\\\",\\\"@modelName\\\",\\\"@afterDelete\\\"],[[28,[37,4],null,[[\\\"adapterOptions\\\"],[[28,[37,4],null,[[\\\"campaignId\\\"],[[30,2,[\\\"campaignId\\\"]]]]]]]],[30,2,[\\\"id\\\"]],\\\"email\\\",[28,[37,5],[[30,0],\\\"afterDelete\\\",[30,2]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[30,2,[\\\"active\\\"]],\\\"emailCampaigns.emails.toggle.confirmation.\\\"],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@modelOptions\\\",\\\"@modelName\\\",\\\"@resourceId\\\",\\\"@isActive\\\",\\\"@confirmation\\\"],[[28,[37,4],null,[[\\\"adapterOptions\\\"],[[28,[37,4],null,[[\\\"campaignId\\\"],[[30,2,[\\\"campaignId\\\"]]]]]]]],\\\"email\\\",[30,2,[\\\"id\\\"]],[30,5],[28,[37,4],null,[[\\\"label\\\",\\\"description\\\",\\\"action\\\"],[[28,[37,8],[[28,[37,2],[[30,6],\\\"label\\\"],null]],[[\\\"active\\\"],[[30,5]]]],[28,[37,8],[[28,[37,2],[[30,6],\\\"description\\\"],null]],[[\\\"active\\\"],[[30,5]]]],[28,[37,8],[[28,[37,2],[[30,6],\\\"action\\\"],null]],[[\\\"active\\\"],[[30,5]]]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"thumbnail\\\"]],null,[[\\\"@src\\\",\\\"@alt\\\"],[[52,[30,2,[\\\"image\\\"]],[28,[37,9],[[30,2,[\\\"image\\\",\\\"url\\\"]],[28,[37,4],null,[[\\\"size\\\"],[\\\"72x72\\\"]]]],null]],[30,2,[\\\"name\\\"]]]],null],[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex justify-center items-center\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"                  \\\"],[8,[30,8,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,8],[\\\"testEmail.title\\\"],null],[28,[37,5],[[30,0],\\\"openTestEmailDialog\\\",[30,2]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[8,[30,8,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,8],[\\\"emailCampaigns.emailSeries.onlinePreview\\\"],null],[28,[37,5],[[30,0],\\\"openEmailPreview\\\",[30,2]],null]]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"                  \\\"],[8,[30,8,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,8],[[28,[37,2],[\\\"global.actions.\\\",[52,[30,5],\\\"deactivate\\\",\\\"activate\\\"]],null]],null],[28,[37,12],[[30,7,[\\\"toggleAction\\\"]],[28,[37,5],[[30,0],\\\"reloadCampaign\\\"],null]],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[30,8,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,8],[\\\"global.actions.delete\\\"],null],true,[30,4,[\\\"deleteAction\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"]],[8]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[7]]]]],[1,\\\"\\\\n\\\"]],[5,6]]],[1,\\\"    \\\"]],[4]]]]],[1,\\\"\\\\n  \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[1,2]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isTestEmailDialogOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,13],null,[[\\\"@model\\\",\\\"@onClose\\\",\\\"@campaignType\\\"],[[28,[37,14],[[30,0,[\\\"activeItem\\\",\\\"id\\\"]],[30,0,[\\\"_emails\\\"]],\\\"id\\\"],null],[28,[37,15],[[28,[37,16],[[30,0,[\\\"_isTestEmailDialogOpen\\\"]]],null],false],null],[30,0,[\\\"campaignType\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"_showEmailPreview\\\"]],[[[1,\\\"  \\\"],[8,[39,17],null,[[\\\"@model\\\",\\\"@onClose\\\"],[[30,0,[\\\"activeItem\\\"]],[28,[37,15],[[28,[37,16],[[30,0,[\\\"_showEmailPreview\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"dm\\\",\\\"active\\\",\\\"prefix\\\",\\\"ta\\\",\\\"content\\\"],false,[\\\"ui-list\\\",\\\"if\\\",\\\"concat\\\",\\\"amc-delete-model\\\",\\\"hash\\\",\\\"action\\\",\\\"let\\\",\\\"amc-toggle-activation\\\",\\\"t\\\",\\\"mm-medium-url-options\\\",\\\"ui-item-menu\\\",\\\"unless\\\",\\\"pipe\\\",\\\"amc-campaign/test-email-dialog\\\",\\\"array-find\\\",\\\"fn\\\",\\\"mut\\\",\\\"amc-campaign/email-campaign/email-series-preview\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/email-campaign/email-list.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/email-campaign/email-series-table\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"wF1eO/v9\",\n    \"block\": \"[[[41,[30,0,[\\\"_emailSeries\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@isLoading\\\",\\\"@columns\\\",\\\"@rows\\\"],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"tableHeaderOptions\\\"]],[30,0,[\\\"_emailSeries\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"head\\\"]],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,1,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"row\\\"]],null,[[\\\"@hasActions\\\",\\\"@onClick\\\"],[false,[28,[37,2],[[30,0],\\\"onRowClick\\\",[30,3]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,3],null,[[\\\"@modelOptions\\\",\\\"@resourceId\\\",\\\"@modelName\\\",\\\"@afterDelete\\\"],[[28,[37,4],null,[[\\\"adapterOptions\\\"],[[28,[37,4],null,[[\\\"campaignId\\\"],[[30,0,[\\\"campaignId\\\"]]]]]]]],[30,3,[\\\"id\\\"]],\\\"email-series\\\",[28,[37,2],[[30,0],\\\"afterDelete\\\",[30,3]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,6],[[30,3,[\\\"state\\\"]],\\\"active\\\"],null],\\\"emailCampaigns.emailSeries.toggle.confirmation.\\\"],[[[1,\\\"            \\\"],[8,[39,7],null,[[\\\"@modelOptions\\\",\\\"@modelName\\\",\\\"@resourceId\\\",\\\"@isActive\\\",\\\"@confirmation\\\"],[[28,[37,4],null,[[\\\"adapterOptions\\\"],[[28,[37,4],null,[[\\\"campaignId\\\"],[[30,0,[\\\"campaignId\\\"]]]]]]]],\\\"email-series\\\",[30,3,[\\\"id\\\"]],[30,5],[28,[37,4],null,[[\\\"label\\\",\\\"description\\\",\\\"action\\\"],[[28,[37,8],[[28,[37,9],[[30,6],\\\"label\\\"],null]],[[\\\"active\\\"],[[30,5]]]],[28,[37,8],[[28,[37,9],[[30,6],\\\"description\\\"],null]],[[\\\"active\\\"],[[30,5]]]],[28,[37,8],[[28,[37,9],[[30,6],\\\"action\\\"],null]],[[\\\"active\\\"],[[30,5]]]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"ph1 no-shadow\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,10],[[30,3],\\\"label\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"ph1 text-right no-shadow\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,3],\\\"offsetInDays\\\"],null],[[[1,\\\"                  \\\"],[1,[28,[35,10],[[30,3],\\\"offsetInDays\\\"],null]],[1,\\\" \\\"],[1,[28,[35,8],[\\\"global.dates.days\\\"],[[\\\"value\\\"],[[28,[37,10],[[30,3],\\\"offsetInDays\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  -\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"ph1 text-right no-shadow\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[52,[28,[37,10],[[30,3],\\\"mails_count\\\"],null],[28,[37,10],[[30,3],\\\"mails_count\\\"],null],\\\"-\\\"]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"ph1 \\\",[52,[30,5],\\\"green\\\",\\\"red\\\"],\\\" no-shadow\\\"]]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,8],[[28,[37,9],[\\\"emailCampaigns.emailSeries.columns.states.\\\",[30,3,[\\\"state\\\"]]],null]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[14,0,\\\"ph1 no-shadow\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,12],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[8,[30,8,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,8],[[28,[37,9],[\\\"global.actions.\\\",[52,[30,5],\\\"deactivate\\\",\\\"activate\\\"]],null]],null],[28,[37,13],[[30,7,[\\\"toggleAction\\\"]],[28,[37,2],[[30,0],\\\"reloadCampaign\\\"],null]],null]]],null],[1,\\\"\\\\n                    \\\"],[8,[30,8,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,8],[\\\"global.actions.delete\\\"],null],true,[30,4,[\\\"deleteAction\\\"]]]],null],[1,\\\"\\\\n                  \\\"]],[8]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"]],[7]]]]],[1,\\\"\\\\n\\\"]],[5,6]]],[1,\\\"        \\\"]],[4]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2,3]]]]],[1,\\\"\\\\n  \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,14],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[\\\"emailCampaigns.emailSeries.noEntries\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"ta\\\",\\\"body\\\",\\\"row\\\",\\\"dm\\\",\\\"active\\\",\\\"prefix\\\",\\\"ta\\\",\\\"menu\\\"],false,[\\\"if\\\",\\\"ui-table\\\",\\\"action\\\",\\\"amc-delete-model\\\",\\\"hash\\\",\\\"let\\\",\\\"equal\\\",\\\"amc-toggle-activation\\\",\\\"t\\\",\\\"concat\\\",\\\"get\\\",\\\"unless\\\",\\\"ui-item-menu\\\",\\\"pipe\\\",\\\"svg-jar\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/email-campaign/email-series-table.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/info-item\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"IVo2KG/b\",\n    \"block\": \"[[[10,1],[14,0,\\\"primary\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[30,0,[\\\"label\\\"]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,1],[14,0,\\\"secondary\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[30,0,[\\\"value\\\"]]],[1,\\\"\\\\n\\\"],[13]],[],false,[]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/info-item.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/voucher-dialog\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"cHWoU/c1\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@backRoute\\\",\\\"@resource\\\",\\\"@validation\\\",\\\"@modelName\\\",\\\"@modelOptions\\\",\\\"@multilingualProperties\\\",\\\"@isReadOnly\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"campaigns.voucher.content.dialog.title\\\"],null],[30,0,[\\\"_backRoute\\\"]],[30,0,[\\\"_resource\\\"]],[30,0,[\\\"_validation\\\"]],[30,0,[\\\"voucherModelType\\\"]],[30,0,[\\\"_adapterOptions\\\"]],\\\"policies\\\",[30,0,[\\\"isReadOnly\\\"]],[28,[37,2],[[30,0],[28,[37,3],[[30,0,[\\\"_isDialogOpen\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isReadOnly\\\"]],[[[1,\\\"      \\\"],[8,[39,5],null,[[\\\"@label\\\"],[[28,[37,1],[\\\"campaigns.voucher.value.label\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ph1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"changeset\\\",\\\"amount\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[[30,1,[\\\"changeset\\\",\\\"amount\\\"]],[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]],[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],2,2,1],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@label\\\"],[[28,[37,1],[\\\"campaigns.voucher.policies.label\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ph1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[[30,1,[\\\"changeset\\\",\\\"policies\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,5],null,[[\\\"@label\\\"],[[28,[37,1],[\\\"campaigns.voucher.greetingText.label\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex ph1 item-center\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[52,[30,1,[\\\"changeset\\\",\\\"greetingText\\\",\\\"value\\\"]],[30,1,[\\\"changeset\\\",\\\"greetingText\\\",\\\"value\\\"]],[30,1,[\\\"changeset\\\",\\\"greetingText\\\",\\\"syncedValue\\\"]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,1,[\\\"changeset\\\",\\\"greetingText\\\",\\\"syncedValue\\\"]],[28,[37,9],[[30,1,[\\\"changeset\\\",\\\"greetingText\\\",\\\"value\\\"]]],null]],null],[[[1,\\\"              \\\"],[8,[39,10],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,5,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[28,[35,11],[\\\"info\\\"],[[\\\"class\\\"],[\\\"secondary ml1\\\"]]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[8,[30,5,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[28,[35,1],[\\\"campaigns.voucher.greetingText.sync\\\"],null]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[4]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,12],[[30,1,[\\\"changeset\\\"]],\\\"image.url\\\"],null],[[[1,\\\"        \\\"],[8,[39,13],[[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"openPreviewCarousel\\\"]]],null]],null]],[[\\\"@class\\\",\\\"@defaultSize\\\",\\\"@url\\\",\\\"@alt\\\"],[\\\"cpointer\\\",[30,0,[\\\"defaultSize\\\"]],[28,[37,12],[[30,1,[\\\"changeset\\\"]],\\\"image.url\\\"],null],\\\"image\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"      \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@value\\\",\\\"@isDisabled\\\",\\\"@errorMessage\\\"],[\\\"number\\\",[28,[37,1],[\\\"campaigns.voucher.value.label\\\"],null],[30,1,[\\\"changeset\\\",\\\"amount\\\"]],[30,0,[\\\"_saveValueDialog\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,1,[\\\"changeset\\\",\\\"error\\\",\\\"amount\\\"]],\\\"validation\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@onChange\\\",\\\"@isLight\\\",\\\"@maxlength\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\"],[[28,[37,1],[\\\"campaigns.voucher.policies.label\\\"],null],[30,1,[\\\"changeset\\\",\\\"policies\\\"]],[28,[37,18],[[30,1,[\\\"changeset\\\"]],\\\"policies\\\"],null],true,200,[28,[37,12],[[30,1,[\\\"changeset\\\",\\\"error\\\",\\\"policies\\\"]],\\\"validation\\\"],null],[30,1,[\\\"isValidated\\\"]]]],null],[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@placeholder\\\",\\\"@errorMessage\\\",\\\"@onChange\\\",\\\"@maxlength\\\",\\\"@isTouched\\\",\\\"@textarea\\\"],[[28,[37,1],[\\\"campaigns.voucher.greetingText.label\\\"],null],[30,1,[\\\"changeset\\\",\\\"greetingText\\\",\\\"value\\\"]],[30,1,[\\\"changeset\\\",\\\"greetingText\\\",\\\"syncedValue\\\"]],[28,[37,12],[[30,1,[\\\"changeset\\\",\\\"error\\\",\\\"greetingText\\\"]],\\\"validation\\\"],null],[28,[37,2],[[30,0],\\\"onChangeVoucherGreetingText\\\",[30,1,[\\\"changeset\\\"]]],null],200,[30,1,[\\\"isValidated\\\"]],true]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mt1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@resources\\\",\\\"@onDropzoneClick\\\",\\\"@onResourceRemove\\\",\\\"@onResourceEdit\\\",\\\"@isReadOnly\\\",\\\"@mediumType\\\"],[[28,[37,12],[[30,1,[\\\"changeset\\\"]],\\\"image\\\"],null],[28,[37,2],[[30,0],[30,0,[\\\"openMultimedia\\\"]]],null],[28,[37,2],[[30,0],\\\"onResourceRemove\\\",[30,1,[\\\"changeset\\\"]]],null],[28,[37,2],[[30,0],[28,[37,18],[[30,1,[\\\"changeset\\\"]],\\\"image\\\"],null]],null],[30,1,[\\\"isReadOnly\\\"]],\\\"image\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,20],null,[[\\\"@onClose\\\",\\\"@onAddMedium\\\"],[[28,[37,2],[[30,0],[30,0,[\\\"closeMultimedia\\\"]]],null],[28,[37,2],[[30,0],\\\"addMedium\\\",[30,1,[\\\"changeset\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[18,6,[[28,[37,22],null,[[\\\"multimediaOverlayContent\\\"],[[50,\\\"ui-blank-template\\\",0,null,null]]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_showVoucherPreview\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@fitContent\\\",\\\"@preview\\\",\\\"@onClose\\\"],[true,[30,0,[\\\"preview\\\"]],[28,[37,2],[[30,0],[28,[37,3],[[30,0,[\\\"_showVoucherPreview\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"modal\\\",\\\"container\\\",\\\"container\\\",\\\"container\\\",\\\"pop\\\",\\\"&default\\\"],false,[\\\"ui-multilingual-modal\\\",\\\"t\\\",\\\"action\\\",\\\"mut\\\",\\\"if\\\",\\\"ui-form-control\\\",\\\"ui-format-currency\\\",\\\"amc-html-safe\\\",\\\"and\\\",\\\"not\\\",\\\"ui-popover\\\",\\\"svg-jar\\\",\\\"get\\\",\\\"mm-picture-tag\\\",\\\"on\\\",\\\"perform\\\",\\\"ui-input\\\",\\\"ui-editor\\\",\\\"changeset-set\\\",\\\"mm-resource-gallery\\\",\\\"mm-multimedia-overlay\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"amc-campaign/voucher-preview-dialog\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/voucher-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-campaign/voucher\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"Ke1jVSsz\",\n    \"block\": \"[[[10,0],[14,0,\\\"amc-campaign-email-voucher__item items-center h2 bt b--black-10\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex items-center font-sm primary ellipsis\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,0],[\\\"campaigns.voucher.active.label\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"font-sm flex-grow-1 font-sm secondary ellipsis ph1\\\"],[12],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"flex justify-end\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[30,0,[\\\"_voucherModel\\\",\\\"active\\\"]],\\\"campaigns.voucher.content.confirmation.\\\"],[[[1,\\\"      \\\"],[8,[39,2],null,[[\\\"@modelName\\\",\\\"@modelOptions\\\",\\\"@resourceId\\\",\\\"@isActive\\\",\\\"@confirmation\\\"],[[30,0,[\\\"voucherModelType\\\"]],[30,0,[\\\"_adapterOptions\\\"]],[30,0,[\\\"_voucherModel\\\",\\\"id\\\"]],[30,1],[28,[37,3],null,[[\\\"label\\\",\\\"description\\\",\\\"action\\\"],[[28,[37,0],[[28,[37,4],[[30,2],\\\"label\\\"],null]],[[\\\"active\\\"],[[30,1]]]],[28,[37,0],[[28,[37,4],[[30,2],\\\"description\\\"],null]],[[\\\"active\\\"],[[30,1]]]],[28,[37,0],[[28,[37,4],[[30,2],\\\"action\\\"],null]],[[\\\"active\\\"],[[30,1]]]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[8,[39,6],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,7],null,[[\\\"@value\\\",\\\"@onChange\\\",\\\"@isReadOnly\\\"],[[30,1],[30,3,[\\\"toggleAction\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[1,2]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"amc-campaign-email-voucher__item items-center h2 bb bt b--black-10\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex items-center justify-between font-sm primary ellipsis\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,0],[\\\"campaigns.voucher.content.label\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"font-sm flex-grow-1 font-sm secondary ellipsis flex flex-row items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,8],null,[[\\\"@state\\\"],[[30,0,[\\\"_languageState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[30,4,[\\\"trigger\\\"]]],[1,\\\"\\\\n      \\\"],[8,[30,4,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"_contentLanguages\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex items-center justify-between pv05\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"pr2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,0],[[28,[37,4],[\\\"languageSelect.\\\",[30,5]],null]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,5],[30,0,[\\\"_voucherModel\\\",\\\"availableLanguages\\\"]]],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"green\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,0],[\\\"campaigns.voucher.popover.exists\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"red\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,0],[\\\"campaigns.voucher.popover.missing\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[4]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,0,[\\\"_voucherModel\\\",\\\"amount\\\"]],[30,0,[\\\"_voucherModel\\\",\\\"policies\\\"]]],null],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_voucherModel\\\",\\\"amount\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"mr1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,13],[[30,0,[\\\"_voucherModel\\\",\\\"amount\\\"]],[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]],[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],2,2,1],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[1,[28,[35,14],[[30,0,[\\\"_voucherModel\\\",\\\"policies\\\"]]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"flex justify-end\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,15],null,[[\\\"@icon\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"edit\\\",true,[28,[37,16],[[30,0],[30,0,[\\\"onVoucherDetailOpen\\\"]],[30,0,[\\\"_voucherModel\\\",\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[18,6,null]],[\\\"active\\\",\\\"prefix\\\",\\\"ta\\\",\\\"pop\\\",\\\"language\\\",\\\"&default\\\"],false,[\\\"t\\\",\\\"let\\\",\\\"amc-toggle-activation\\\",\\\"hash\\\",\\\"concat\\\",\\\"if\\\",\\\"ui-loading\\\",\\\"ui-switch\\\",\\\"ui-popover\\\",\\\"each\\\",\\\"-track-array\\\",\\\"includes\\\",\\\"or\\\",\\\"ui-format-currency\\\",\\\"amc-inner-text\\\",\\\"ui-icon-button\\\",\\\"action\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-campaign/voucher.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-dashboard/campaign-metrics\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"za2Ti4n1\",\n    \"block\": \"[[[41,[30,0,[\\\"fetchMetrics\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\",\\\"@itemsPerRowSmartphone\\\"],[1,1,62,64,1]],null],[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\",\\\"@itemsPerRowSmartphone\\\"],[4,4,168,4,1]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isActive\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"flex flex-column\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex items-center font-xl primary\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,2],[[28,[37,3],[\\\"dashboard.campaigns.\\\",[30,0,[\\\"type\\\"]],\\\".placeholder.title\\\"],null]],null]],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@state\\\",\\\"@class\\\"],[\\\"success\\\",\\\"ml2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,2],[\\\"dashboard.campaigns.badge\\\"],[[\\\"count\\\",\\\"maxCount\\\"],[[30,0,[\\\"data\\\",\\\"count\\\"]],[30,0,[\\\"data\\\",\\\"maxCount\\\"]]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"pv05\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-md primary\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,2],[[28,[37,3],[\\\"dashboard.campaigns.\\\",[30,0,[\\\"type\\\"]],\\\".description\\\"],null]],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"bb b--black-10 pv4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-wrap flex-nowrap-md w-100 bg-white pv3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"config\\\",\\\"keys\\\"]]],null]],null],null,[[[44,[[28,[37,8],[[30,0,[\\\"data\\\"]],[30,1]],null]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"pb3 pb0-md w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@size\\\",\\\"@appendix\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,10],[[30,2,[\\\"current\\\",\\\"value\\\"]]],null],[28,[37,2],[[28,[37,3],[\\\"dashboard.campaigns.\\\",[30,0,[\\\"type\\\"]],\\\".\\\",[30,1]],null]],null],[30,2,[\\\"change\\\"]],\\\"lg\\\",[52,[30,2,[\\\"current\\\",\\\"rate\\\"]],[28,[37,3],[[28,[37,10],[[30,2,[\\\"current\\\",\\\"rate\\\"]]],[[\\\"format\\\"],[\\\"0,0\\\"]]],\\\"%\\\"],null]],[28,[37,2],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,2],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isSecondary\\\",\\\"@class\\\",\\\"@onClick\\\"],[\\\"arrow-chart\\\",[28,[37,2],[\\\"dashboard.campaigns.toCampaignDetail\\\"],null],true,\\\"items-center\\\",[28,[37,12],[[30,0],\\\"transitionToReport\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,13],null,[[\\\"@type\\\",\\\"@title\\\",\\\"@description\\\",\\\"@icon\\\"],[[30,0,[\\\"type\\\"]],[28,[37,2],[[28,[37,3],[\\\"dashboard.campaigns.\\\",[30,0,[\\\"type\\\"]],\\\".placeholder.title\\\"],null]],null],[28,[37,2],[[28,[37,3],[\\\"dashboard.campaigns.\\\",[30,0,[\\\"type\\\"]],\\\".placeholder.description\\\"],null]],null],[30,0,[\\\"config\\\",\\\"placeholderIcon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"key\\\",\\\"metric\\\"],false,[\\\"if\\\",\\\"ui-skeleton\\\",\\\"t\\\",\\\"concat\\\",\\\"ui-badge\\\",\\\"each\\\",\\\"-track-array\\\",\\\"let\\\",\\\"get\\\",\\\"ui-metric-item\\\",\\\"format-number\\\",\\\"ui-button\\\",\\\"action\\\",\\\"amc-dashboard/campaign-placeholder\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-dashboard/campaign-metrics.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-dashboard/campaign-placeholder\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"qfFf1k65\",\n    \"block\": \"[[[41,[30,0,[\\\"icon\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"pv4 dn db-md\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,1],[[30,0,[\\\"icon\\\"]]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"pv4 white\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex font-xl pb2 items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"title\\\"]]],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@state\\\",\\\"@size\\\",\\\"@class\\\"],[\\\"passive\\\",\\\"xs\\\",\\\"ml2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isUpgradable\\\"]],[[[1,\\\"        \\\"],[1,[28,[35,3],[\\\"global.warnings.upgradeNeeded\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,3],[\\\"dashboard.campaigns.notSetUp\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"font-md pb2\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"description\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"pt2 flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isUpgradable\\\"]],[[[1,\\\"      \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@class\\\",\\\"@href\\\",\\\"@target\\\"],[[28,[37,3],[\\\"dashboard.campaigns.upgrade\\\"],null],\\\"bg-white blue flex\\\",\\\"https://www.additive-apps.eu/apps/marketing-cloud.html#form-overlay\\\",\\\"_blank\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@class\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[[28,[37,3],[\\\"dashboard.campaigns.setUp\\\"],null],\\\"bg-white blue\\\",true,[28,[37,5],[[30,0],\\\"transitionToCampaignList\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"if\\\",\\\"svg-jar\\\",\\\"ui-badge\\\",\\\"t\\\",\\\"ui-button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-dashboard/campaign-placeholder.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-dashboard/charts\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"G1vtk8vh\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,[[\\\"@setActiveTab\\\",\\\"@activeTab\\\",\\\"@isRoutable\\\"],[[28,[37,1],[[30,0],[28,[37,2],[[30,0,[\\\"activeTab\\\"]]],null]],null],[30,0,[\\\"activeTab\\\"]],false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"chartTabs\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[30,2,[\\\"tab\\\"]],null,[[\\\"@tabName\\\",\\\"@value\\\",\\\"@onClick\\\"],[[30,3,[\\\"title\\\"]],[30,3],[28,[37,1],[[30,0],\\\"selected\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"pane\\\"]],null,[[\\\"@activeTab\\\",\\\"@name\\\"],[[30,0,[\\\"activeTab\\\"]],\\\"valueAdded\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"valueAddedChartData\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@cardHeightSmartphone\\\"],[1,1,512,256]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"_isValueAddedError\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"w-100 flex flex-column justify-center items-center pv2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"pb2 font-sm secondary\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"dashboard.charts.valueAdded.error\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,7],[\\\"global.actions.retry\\\"],null],[28,[37,9],[[30,0,[\\\"valueAddedChartData\\\"]]],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"_valueAddedData\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@data\\\",\\\"@hideMobileTooltip\\\",\\\"@classNames\\\"],[[30,0,[\\\"_valueAddedData\\\"]],true,\\\"pt1\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,4,[\\\"legend\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex flex-column flex-row-sm pl2\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"_valueAddedData\\\",\\\"datasets\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[8,[39,11],null,[[\\\"@item\\\"],[[30,5]]],null],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"pane\\\"]],null,[[\\\"@activeTab\\\",\\\"@name\\\"],[[30,0,[\\\"activeTab\\\"]],\\\"conversions-reservations\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"conversionsReservationsChartData\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@cardHeightSmartphone\\\"],[1,1,512,256]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"_isReservationsConversionsError\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"w-100 flex flex-column justify-center items-center pv2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"pb2 font-sm secondary\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"dashboard.charts.conversionsReservations.error\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,7],[\\\"global.actions.retry\\\"],null],[28,[37,9],[[30,0,[\\\"conversionsReservationsChartData\\\"]]],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"_reservationsConversionsData\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@data\\\",\\\"@hideMobileTooltip\\\",\\\"@classNames\\\"],[[30,0,[\\\"_reservationsConversionsData\\\"]],true,\\\"pt1\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,6,[\\\"legend\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex flex-column flex-row-sm pl2\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"_reservationsConversionsData\\\",\\\"datasets\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[8,[39,11],null,[[\\\"@item\\\"],[[30,7]]],null],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"tabs\\\",\\\"header\\\",\\\"tab\\\",\\\"chart\\\",\\\"item\\\",\\\"chart\\\",\\\"item\\\"],false,[\\\"ui-routable-tabs\\\",\\\"action\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"t\\\",\\\"ui-button\\\",\\\"perform\\\",\\\"ui-chart\\\",\\\"ui-chart-legend\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-dashboard/charts.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-dashboard/key-indicators\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"1a17+Kl4\",\n    \"block\": \"[[[41,[30,0,[\\\"keyIndicators\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\",\\\"@itemsPerRowSmartphone\\\"],[4,4,168,4,1]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"_isError\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"w-100 flex flex-column justify-center items-center pv2\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"pb2 font-sm secondary\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,2],[\\\"dashboard.keyIndicators.error\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"global.actions.retry\\\"],null],[28,[37,4],[[30,0,[\\\"keyIndicators\\\"]]],null]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"flex flex-wrap flex-nowrap-md w-100 bg-white pv4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"w-100 pb3 pb0-md w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@appendix\\\",\\\"@size\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,6],[[28,[37,7],[[30,0,[\\\"valueAdded\\\",\\\"current\\\",\\\"value\\\"]]],null]],[[\\\"minimumFractionDigits\\\",\\\"maximumFractionDigits\\\"],[\\\"2\\\",\\\"2\\\"]]],[28,[37,2],[\\\"dashboard.keyIndicators.valueAdded\\\"],null],[30,0,[\\\"valueAdded\\\",\\\"change\\\"]],[28,[37,8],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],\\\"lg\\\",[28,[37,2],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,2],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"w-100 pb3 pb0-md w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@size\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,6],[[30,0,[\\\"reservations\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,2],[\\\"dashboard.keyIndicators.reservations\\\"],null],[30,0,[\\\"reservations\\\",\\\"change\\\"]],\\\"lg\\\",[28,[37,2],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,2],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"w-100 pb3 pb0-md w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@size\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,6],[[30,0,[\\\"conversions\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,2],[\\\"dashboard.keyIndicators.conversions\\\"],null],[30,0,[\\\"conversions\\\",\\\"change\\\"]],\\\"lg\\\",[28,[37,2],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,2],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@size\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,6],[[30,0,[\\\"sessions\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,2],[\\\"dashboard.keyIndicators.sessions\\\"],null],[30,0,[\\\"sessions\\\",\\\"change\\\"]],\\\"lg\\\",[28,[37,2],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,2],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[],false,[\\\"if\\\",\\\"ui-skeleton\\\",\\\"t\\\",\\\"ui-button\\\",\\\"perform\\\",\\\"ui-metric-item\\\",\\\"format-number\\\",\\\"cents-to-amount\\\",\\\"currency-symbol\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-dashboard/key-indicators.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-delete-model\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"XUxUd7+1\",\n    \"block\": \"[[[18,1,[[28,[37,1],null,[[\\\"deleteAction\\\"],[[28,[37,2],[[30,0],[30,0,[\\\"_delete\\\"]]],null]]]]]]],[\\\"&default\\\"],false,[\\\"yield\\\",\\\"hash\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-delete-model.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-legals\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"V/0zjm7B\",\n    \"block\": \"[[[10,0],[14,0,\\\"pb2\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,0],null,[[\\\"@languages\\\",\\\"@publishedLanguages\\\",\\\"@selected\\\",\\\"@hideLanguageActions\\\",\\\"@onSelect\\\"],[[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"_currentLanguage\\\"]],true,[28,[37,1],[[30,0],\\\"changeLanguage\\\"],null]]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@placeholderCount\\\",\\\"@isLoading\\\"],[[28,[37,3],[\\\"settings.legals\\\"],null],2,[30,0,[\\\"_loadLegals\\\",\\\"isRunning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@changeset\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\"],[[28,[37,3],[\\\"settings.privacyUrl.label\\\"],null],[28,[37,4],[[30,0,[\\\"_resource\\\",\\\"privacyUrl\\\"]]],[[\\\"sync\\\",\\\"value\\\"],[[30,0,[\\\"_resource\\\",\\\"privacyUrl\\\",\\\"sync\\\"]],[30,0,[\\\"_resource\\\",\\\"privacyUrl\\\",\\\"value\\\"]]]]],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,5],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,3],[\\\"settings.privacyUrl.modalTitle\\\"],null],[28,[37,3],[\\\"global.actions.save\\\"],null]]]],[28,[37,6],[[30,0,[\\\"_updateLegalsWithChangeset\\\"]],[30,0,[\\\"_changeset\\\"]],\\\"privacyUrl\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,7],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@isTertiary\\\",\\\"@isDisabled\\\",\\\"@bubbles\\\",\\\"@onClick\\\"],[\\\"dna\\\",[28,[37,9],[[30,0,[\\\"_resource\\\",\\\"privacyUrl\\\",\\\"sync\\\"]]],null],[30,0,[\\\"isReadOnly\\\"]],false,[28,[37,6],[[30,0,[\\\"_toggleSync\\\"]],[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"privacyUrl\\\"]],null]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"settings.inheritanceDescription\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[3]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,11],null,[[\\\"@label\\\",\\\"@infoMessage\\\",\\\"@value\\\",\\\"@errorMessage\\\"],[[28,[37,3],[\\\"settings.privacyUrl.input.label\\\"],null],[28,[37,3],[\\\"settings.privacyUrl.input.message\\\"],null],[30,0,[\\\"_changeset\\\",\\\"privacyUrl\\\"]],[28,[37,12],[[30,0,[\\\"_changeset\\\",\\\"error\\\",\\\"privacyUrl\\\"]],\\\"validation\\\"],null]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"panel\\\"]],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@changeset\\\",\\\"@isReadOnly\\\",\\\"@modal\\\",\\\"@onClick\\\"],[[28,[37,3],[\\\"settings.disclaimerUrl.label\\\"],null],[28,[37,4],[[30,0,[\\\"_resource\\\",\\\"disclaimerUrl\\\"]]],[[\\\"sync\\\",\\\"value\\\"],[[30,0,[\\\"_resource\\\",\\\"disclaimerUrl\\\",\\\"sync\\\"]],[30,0,[\\\"_resource\\\",\\\"disclaimerUrl\\\",\\\"value\\\"]]]]],[30,0,[\\\"_changeset\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,5],null,[[\\\"title\\\",\\\"actionLabel\\\"],[[28,[37,3],[\\\"settings.disclaimerUrl.modalTitle\\\"],null],[28,[37,3],[\\\"global.actions.save\\\"],null]]]],[28,[37,6],[[30,0,[\\\"_updateLegalsWithChangeset\\\"]],[30,0,[\\\"_changeset\\\"]],\\\"disclaimerUrl\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,4,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,7],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,5,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@isTertiary\\\",\\\"@isDisabled\\\",\\\"@bubbles\\\",\\\"@onClick\\\"],[\\\"dna\\\",[28,[37,9],[[30,0,[\\\"_resource\\\",\\\"disclaimerUrl\\\",\\\"sync\\\"]]],null],[30,0,[\\\"isReadOnly\\\"]],false,[28,[37,6],[[30,0,[\\\"_toggleSync\\\"]],[52,[51,[30,0,[\\\"isReadOnly\\\"]]],\\\"disclaimerUrl\\\"]],null]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,5,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"settings.inheritanceDescription\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[5]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,4,[\\\"modal\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,11],null,[[\\\"@label\\\",\\\"@infoMessage\\\",\\\"@value\\\",\\\"@errorMessage\\\"],[[28,[37,3],[\\\"settings.disclaimerUrl.input.label\\\"],null],[28,[37,3],[\\\"settings.disclaimerUrl.input.message\\\"],null],[30,0,[\\\"_changeset\\\",\\\"disclaimerUrl\\\"]],[28,[37,12],[[30,0,[\\\"_changeset\\\",\\\"error\\\",\\\"disclaimerUrl\\\"]],\\\"validation\\\"],null]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"Group\\\",\\\"panel\\\",\\\"pop\\\",\\\"panel\\\",\\\"pop\\\"],false,[\\\"ui-lang-select\\\",\\\"action\\\",\\\"ui-control-panel-group\\\",\\\"t\\\",\\\"ui-synced-value\\\",\\\"hash\\\",\\\"perform\\\",\\\"ui-popover\\\",\\\"ui-icon-button\\\",\\\"not\\\",\\\"unless\\\",\\\"ui-input\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-legals.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-preview/upcoming-emails-subscriber\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"xtGhFwUQ\",\n    \"block\": \"[[[41,[30,0,[\\\"filter\\\",\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,10,5,52,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"filter\\\",\\\"hasNoMatches\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pv4 mv4\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,2],[\\\"empty-search-grey\\\"],null]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"preview.upcomingEmails.subscribers.noResults\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"filter\\\",\\\"isEmpty\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pv4 mv4\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,2],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"preview.upcomingEmails.subscribers.noEntries\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,4],null,[[\\\"@totalCount\\\"],[[30,0,[\\\"filter\\\",\\\"data\\\",\\\"meta\\\",\\\"total\\\"]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,5],null,[[\\\"@classNames\\\",\\\"@columns\\\",\\\"@rows\\\"],[\\\"no-shadow\\\",[30,0,[\\\"tableHeaderOptions\\\"]],[28,[37,6],[[30,0,[\\\"filter\\\",\\\"data\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[14,0,\\\"ui-table__head-row bb b--black-10\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,2]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"th\\\"],[14,0,\\\"font-sm secondary text-left pl2 pv1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[[30,3,[\\\"i18n\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"      \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,4,[\\\"row\\\"]],null,[[\\\"@hasActions\\\"],[false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"pl2 pv1 font-sm\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[[30,5],\\\"name\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"ph2 pv1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[[30,5],\\\"email\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"ph2 pv1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[[28,[37,11],[[30,5,[\\\"deliveryDate\\\"]]],[[\\\"format\\\"],[\\\"ddmmyyyy\\\"]]],\\\", \\\",[28,[37,11],[[30,5,[\\\"deliveryDate\\\"]]],[[\\\"format\\\"],[\\\"hhmmss\\\"]]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[15,0,[28,[37,10],[\\\"ph2 pv1 \\\",[30,5,[\\\"stateColor\\\"]]],null]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[[28,[37,10],[\\\"preview.upcomingEmails.subscribers.states.\\\",[30,5,[\\\"state\\\"]]],null]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"pl2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex justify-end\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,12],null,[[\\\"@icon\\\",\\\"@onClick\\\"],[\\\"view\\\",[28,[37,13],[[30,0],\\\"openPreview\\\",[30,5]],null]]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,6]],[[[1,\\\"              \\\"],[8,[39,15],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,7,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,3],[\\\"preview.upcomingEmails.subscribers.actions.cancel\\\"],null],[30,5,[\\\"notCancelable\\\"]],[28,[37,13],[[30,0],\\\"cancelSubscriber\\\",[30,5]],null]]],null],[1,\\\"\\\\n              \\\"]],[7]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[4,5]]]]],[1,\\\"\\\\n  \\\"]],[1,2]]]]],[1,\\\"\\\\n  \\\"],[8,[39,16],null,[[\\\"@classNames\\\",\\\"@total\\\",\\\"@setCurrentPage\\\",\\\"@currentPage\\\",\\\"@onPageChange\\\"],[\\\"pv2 mv2\\\",[30,0,[\\\"filter\\\",\\\"meta\\\",\\\"lastPage\\\"]],[28,[37,17],[[28,[37,18],[[30,0,[\\\"filter\\\",\\\"meta\\\",\\\"currentPage\\\"]]],null]],null],[30,0,[\\\"filter\\\",\\\"meta\\\",\\\"currentPage\\\"]],[30,0,[\\\"filter\\\",\\\"actions\\\",\\\"changePage\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]],[41,[30,0,[\\\"_showEmailPreview\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@emailPreviewId\\\",\\\"@subscriber\\\",\\\"@onClose\\\"],[[30,0,[\\\"model\\\",\\\"id\\\"]],[30,0,[\\\"_previewSubscriber\\\"]],[28,[37,13],[[30,0],[28,[37,18],[[30,0,[\\\"_showEmailPreview\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"ta\\\",\\\"columns\\\",\\\"column\\\",\\\"body\\\",\\\"row\\\",\\\"@isReadOnly\\\",\\\"content\\\"],false,[\\\"if\\\",\\\"ui-skeleton\\\",\\\"svg-jar\\\",\\\"t\\\",\\\"ui-content-count\\\",\\\"ui-table\\\",\\\"amc-ember-array-to-array\\\",\\\"each\\\",\\\"-track-array\\\",\\\"get\\\",\\\"concat\\\",\\\"format-time\\\",\\\"ui-icon-button\\\",\\\"action\\\",\\\"unless\\\",\\\"ui-item-menu\\\",\\\"ui-pagination\\\",\\\"fn\\\",\\\"mut\\\",\\\"amc-preview/email-preview\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-preview/upcoming-emails-subscriber.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-preview/upcoming-emails\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"mTWRRi92\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[\\\"mw6\\\",[28,[37,1],[\\\"preview.upcomingEmails.title\\\"],null],[28,[37,1],[\\\"preview.upcomingEmails.description\\\"],null],\\\"xl\\\",true]],null],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"pv4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"previewData\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,10,5,52,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isEmpty\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pv4 mv4\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"preview.upcomingEmails.empty\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@classNames\\\",\\\"@columns\\\",\\\"@rows\\\"],[\\\"no-shadow\\\",[30,0,[\\\"tableHeaderOptions\\\"]],[28,[37,6],[[30,0,[\\\"previews\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[14,0,\\\"bb b--black-10\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,2]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"th\\\"],[15,0,[29,[[52,[30,4],\\\"ph2 text-right\\\",\\\"pl2 text-left\\\"],\\\" font-xs secondary\\\"]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[[30,3,[\\\"i18n\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"        \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[30,1,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,5,[\\\"row\\\"]],null,[[\\\"@hasActions\\\",\\\"@onClick\\\"],[false,[28,[37,9],[[30,0],\\\"transitionToDetail\\\",[30,6,[\\\"id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pl2 pv2 font-sm\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[[30,6],\\\"name\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[[30,6],\\\"campaignType\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,11],[[30,6,[\\\"count\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pl2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,12],null,[[\\\"@icon\\\",\\\"@onClick\\\"],[\\\"arrow-right\\\",[28,[37,9],[[30,0],\\\"transitionToDetail\\\",[30,6,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[5,6]]]]],[1,\\\"\\\\n    \\\"]],[1,2]]]]],[1,\\\"\\\\n  \\\"]],[]]]],[]]],[13]],[\\\"ta\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\",\\\"body\\\",\\\"row\\\"],false,[\\\"ui-intro\\\",\\\"t\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"svg-jar\\\",\\\"ui-table\\\",\\\"amc-ember-array-to-array\\\",\\\"each\\\",\\\"-track-array\\\",\\\"action\\\",\\\"get\\\",\\\"format-number\\\",\\\"ui-icon-button\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-preview/upcoming-emails.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-reports/conversions\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"4gkQROhR\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[\\\"mw6\\\",[28,[37,1],[\\\"reports.conversions.title\\\"],null],[30,0,[\\\"_introDescription\\\"]],\\\"xl\\\",true]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"conversionsData\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"pv2 pv3-sm pv4-md\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[7,4,1,138,4]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"pv2 pv3-sm pv4-md bb b--black-10\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex items-end flex-wrap w-100 bg-white pb2 pb3-sm pb4-md\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@size\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,5],[[28,[37,6],[[30,0,[\\\"conversions\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,1],[\\\"reports.conversions.conversions\\\"],null],[28,[37,6],[[30,0,[\\\"conversions\\\",\\\"change\\\"]],0],null],\\\"lg\\\",[28,[37,1],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,1],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,5],[[28,[37,6],[[30,0,[\\\"enquiries\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,1],[\\\"reports.conversions.enquiries\\\"],null],[28,[37,6],[[30,0,[\\\"enquiries\\\",\\\"change\\\"]],0],null],[28,[37,1],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,1],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,5],[[28,[37,6],[[30,0,[\\\"newsletterSubscriptions\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,1],[\\\"reports.conversions.newsletterSubscriptions\\\"],null],[28,[37,6],[[30,0,[\\\"newsletterSubscriptions\\\",\\\"change\\\"]],0],null],[28,[37,1],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,1],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,5],[[28,[37,6],[[30,0,[\\\"vouchers\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,1],[\\\"reports.conversions.vouchers\\\"],null],[28,[37,6],[[30,0,[\\\"vouchers\\\",\\\"change\\\"]],0],null],[28,[37,1],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,1],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,5],[[28,[37,6],[[30,0,[\\\"bookings\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,1],[\\\"reports.conversions.bookings\\\"],null],[28,[37,6],[[30,0,[\\\"bookings\\\",\\\"change\\\"]],0],null],[28,[37,1],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,1],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,5],[[28,[37,6],[[30,0,[\\\"leadsIncentives\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,1],[[28,[37,7],[\\\"reports.conversions.\\\",[30,0,[\\\"_leads\\\"]]],null]],null],[28,[37,6],[[30,0,[\\\"leadsIncentives\\\",\\\"change\\\"]],0],null],[28,[37,1],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,1],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,5],[[28,[37,6],[[30,0,[\\\"other\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,1],[\\\"reports.conversions.other\\\"],null],[28,[37,6],[[30,0,[\\\"other\\\",\\\"change\\\"]],0],null],[28,[37,1],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,1],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"ui-intro\\\",\\\"t\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-metric-item\\\",\\\"format-number\\\",\\\"or\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-reports/conversions.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-reports/email-metrics\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"G6ljHNJU\",\n    \"block\": \"[[[41,[30,0,[\\\"emailMetrics\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[6,4,1,130,4]],null],[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[\\\"mt4\\\",1,5,5,52,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"flex items-end flex-wrap w-100 bg-white\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"pr2 pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@size\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,3],[[30,0,[\\\"metrics\\\",\\\"emails\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,4],[\\\"reports.emailMetrics.emails\\\"],null],[30,0,[\\\"metrics\\\",\\\"emails\\\",\\\"change\\\"]],\\\"lg\\\",[28,[37,4],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,4],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"pr2 pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@appendix\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,3],[[30,0,[\\\"metrics\\\",\\\"uniqueOpenings\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,4],[\\\"reports.emailMetrics.openings\\\"],null],[52,[30,0,[\\\"metrics\\\",\\\"uniqueOpenings\\\",\\\"current\\\",\\\"rate\\\"]],[28,[37,5],[[28,[37,3],[[30,0,[\\\"metrics\\\",\\\"uniqueOpenings\\\",\\\"current\\\",\\\"rate\\\"]]],[[\\\"style\\\"],[\\\"decimal\\\"]]],\\\"%\\\"],null]],[30,0,[\\\"metrics\\\",\\\"uniqueOpenings\\\",\\\"change\\\"]],[28,[37,4],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,4],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"pr2 pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@appendix\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,3],[[30,0,[\\\"metrics\\\",\\\"uniqueClicks\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,4],[\\\"reports.emailMetrics.clicks\\\"],null],[52,[30,0,[\\\"metrics\\\",\\\"uniqueClicks\\\",\\\"current\\\",\\\"rate\\\"]],[28,[37,5],[[28,[37,3],[[30,0,[\\\"metrics\\\",\\\"uniqueClicks\\\",\\\"current\\\",\\\"rate\\\"]]],[[\\\"style\\\"],[\\\"decimal\\\"]]],\\\"%\\\"],null]],[30,0,[\\\"metrics\\\",\\\"uniqueClicks\\\",\\\"change\\\"]],[28,[37,4],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,4],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"pr2 pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@appendix\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,3],[[28,[37,6],[[30,0,[\\\"metrics\\\",\\\"turnoverPerContact\\\",\\\"current\\\",\\\"value\\\"]]],null]],[[\\\"minimumFractionDigits\\\",\\\"maximumFractionDigits\\\"],[\\\"2\\\",\\\"2\\\"]]],[28,[37,4],[\\\"reports.emailMetrics.turnoverPerContact\\\"],null],[28,[37,7],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],[30,0,[\\\"metrics\\\",\\\"turnoverPerContact\\\",\\\"change\\\"]],[28,[37,4],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,4],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"pr2 pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@appendix\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,3],[[28,[37,6],[[30,0,[\\\"metrics\\\",\\\"valueAddedPerContact\\\",\\\"current\\\",\\\"value\\\"]]],null]],[[\\\"minimumFractionDigits\\\",\\\"maximumFractionDigits\\\"],[\\\"2\\\",\\\"2\\\"]]],[28,[37,4],[\\\"reports.emailMetrics.valueAddedPerContact\\\"],null],[28,[37,7],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],[30,0,[\\\"metrics\\\",\\\"valueAddedPerContact\\\",\\\"change\\\"]],[28,[37,4],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,4],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"pr2 pb3 w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[30,0,[\\\"metrics\\\",\\\"vouchers\\\",\\\"current\\\",\\\"value\\\"]],[28,[37,4],[\\\"reports.emailMetrics.vouchers\\\"],null],[30,0,[\\\"metrics\\\",\\\"vouchers\\\",\\\"change\\\"]],[28,[37,4],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,4],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isTableEmpty\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"reports.emailMetrics.empty\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,9],null,[[\\\"@classNames\\\",\\\"@columns\\\",\\\"@rows\\\"],[\\\"no-shadow pt4\\\",[30,0,[\\\"_tableHeaderOptions\\\"]],[30,0,[\\\"campaigns\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[14,0,\\\"bb b--black-10\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,2]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"th\\\"],[15,0,[29,[[52,[30,4],\\\"ph2 text-right\\\",\\\"pr2 text-left\\\"],\\\" font-xs secondary\\\"]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[[30,3,[\\\"i18n\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[30,1,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,5,[\\\"row\\\"]],null,[[\\\"@hasActions\\\"],[false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pr2 pv2 font-sm\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,12],[[30,6],\\\"campaign\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,6,[\\\"emails\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,6,[\\\"uniqueOpenings\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,6,[\\\"uniqueClicks\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,6,[\\\"reservations\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,6,[\\\"conversions\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,6,[\\\"vouchers\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[5,6]]]]],[1,\\\"\\\\n    \\\"]],[1,2]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"ta\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\",\\\"body\\\",\\\"row\\\"],false,[\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-metric-item\\\",\\\"format-number\\\",\\\"t\\\",\\\"concat\\\",\\\"cents-to-amount\\\",\\\"currency-symbol\\\",\\\"svg-jar\\\",\\\"ui-table\\\",\\\"each\\\",\\\"-track-array\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-reports/email-metrics.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-reports/key-indicators\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"9lfiYOVN\",\n    \"block\": \"[[[41,[30,0,[\\\"keyIndicators\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"pv2 pv3-sm pv4-md\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[4,4,1,138,4]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"pv2 pv3-sm pv4-md bb b--black-10\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex items-end flex-wrap flex-nowrap-md w-100 bg-white pb2 pb3-sm pb4-md\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pb3 pb0-md w-100 w-50-sm w-33-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@appendix\\\",\\\"@size\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,3],[[28,[37,4],[[30,0,[\\\"data\\\",\\\"valueAddedSum\\\",\\\"current\\\",\\\"value\\\"]]],null]],[[\\\"minimumFractionDigits\\\",\\\"maximumFractionDigits\\\"],[\\\"2\\\",\\\"2\\\"]]],[28,[37,5],[\\\"reports.keyIndicators.valueAddedSum\\\"],null],[30,0,[\\\"data\\\",\\\"valueAddedSum\\\",\\\"change\\\"]],[28,[37,6],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],\\\"lg\\\",[28,[37,5],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,5],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pb3 pb0-md w-100 w-50-sm w-33-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@appendix\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,3],[[28,[37,4],[[30,0,[\\\"data\\\",\\\"turnover\\\",\\\"current\\\",\\\"value\\\"]]],null]],[[\\\"minimumFractionDigits\\\",\\\"maximumFractionDigits\\\"],[\\\"2\\\",\\\"2\\\"]]],[28,[37,5],[\\\"reports.keyIndicators.turnover\\\"],null],[30,0,[\\\"data\\\",\\\"turnover\\\",\\\"change\\\"]],[28,[37,6],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],[28,[37,5],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,5],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"w-100 w-50-sm w-33-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@appendix\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,3],[[28,[37,4],[[30,0,[\\\"data\\\",\\\"valueAdded\\\",\\\"current\\\",\\\"value\\\"]]],null]],[[\\\"minimumFractionDigits\\\",\\\"maximumFractionDigits\\\"],[\\\"2\\\",\\\"2\\\"]]],[28,[37,5],[\\\"reports.keyIndicators.valueAdded\\\"],null],[30,0,[\\\"data\\\",\\\"valueAdded\\\",\\\"change\\\"]],[28,[37,6],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null],[28,[37,5],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,5],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-metric-item\\\",\\\"format-number\\\",\\\"cents-to-amount\\\",\\\"t\\\",\\\"currency-symbol\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-reports/key-indicators.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-reports/past-marketing-actions\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"p3lY/rjR\",\n    \"block\": \"[[[41,[30,0,[\\\"pastMarketingActions\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,10,5,39,1]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@classNames\\\",\\\"@columns\\\",\\\"@rows\\\"],[\\\"no-shadow\\\",[30,0,[\\\"tableHeaderOptions\\\"]],[30,0,[\\\"pastMarketingActions\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[14,0,\\\"ui-table__head-row bb b--black-10\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,2]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"th\\\"],[14,0,\\\"font-sm secondary text-left pl2 pv1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[[30,3,[\\\"i18n\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,1,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,4,[\\\"row\\\"]],null,[[\\\"@hasActions\\\"],[false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"font-sm text-left pl2 pv1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[[30,5],\\\"title\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"font-sm text-left pl2 pv1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[[30,5],\\\"type\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"font-sm text-left pl2 pv1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[[30,5,[\\\"publishedDate\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"font-sm text-left pl2 pv1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[[30,5,[\\\"impressions\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"font-sm text-left pl2 pv1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[[30,5,[\\\"clicks\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"font-sm text-left pl2 pv1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[[30,5,[\\\"conversions\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"font-sm text-left pl2 pv1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[[30,5,[\\\"reservations\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[4,5]]]]],[1,\\\"\\\\n  \\\"]],[1,2]]]]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"ta\\\",\\\"columns\\\",\\\"column\\\",\\\"body\\\",\\\"row\\\"],false,[\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-table\\\",\\\"each\\\",\\\"-track-array\\\",\\\"t\\\",\\\"get\\\",\\\"format-date\\\",\\\"format-number\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-reports/past-marketing-actions.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-reports/reservations\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"dEUZdnXL\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[\\\"mw6\\\",[28,[37,1],[\\\"reports.reservations.title\\\"],null],[28,[37,1],[\\\"reports.reservations.description\\\"],null],\\\"xl\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"hideReservationData\\\"]]],[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@role\\\"],[\\\"admin\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"no-default-styles blue db dib-sm m0 mt1 mb1 ml2-sm mb0-sm mt0-sm font-md font-medium cpointer h1\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[28,[37,6],[[30,0,[\\\"isReservationDialog\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"flex items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"reception-bell\\\"],null]],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"ml05\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"reports.reservations.showReservations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reservationData\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"pv2 pv3-sm pv4-md\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,9],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[4,4,1,138,4]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"pv2 pv3-sm pv4-md bb b--black-10\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex items-end flex-wrap flex-nowrap-md w-100 bg-white pb2 pb3-sm pb4-md\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pb3 pb0-md w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@size\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,11],[[28,[37,12],[[30,0,[\\\"reservations\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,1],[\\\"reports.reservations.reservations\\\"],null],[28,[37,12],[[30,0,[\\\"reservations\\\",\\\"change\\\"]],0],null],\\\"lg\\\",[28,[37,1],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,1],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pb3 pb0-md w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,11],[[28,[37,12],[[30,0,[\\\"newGuests\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,1],[\\\"reports.reservations.newGuests\\\"],null],[28,[37,12],[[30,0,[\\\"newGuests\\\",\\\"change\\\"]],0],null],[28,[37,1],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,1],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pb3 pb0-md w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,11],[[28,[37,12],[[30,0,[\\\"reactivatedGuests\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,1],[\\\"reports.reservations.reactivatedGuests\\\"],null],[28,[37,12],[[30,0,[\\\"reactivatedGuests\\\",\\\"change\\\"]],0],null],[28,[37,1],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,1],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"w-100 w-50-sm w-25-md bg-white\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,11],[[28,[37,12],[[30,0,[\\\"returningGuests\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,1],[\\\"reports.reservations.returningGuests\\\"],null],[28,[37,12],[[30,0,[\\\"returningGuests\\\",\\\"change\\\"]],0],null],[28,[37,1],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,1],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[30,0,[\\\"isReservationDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,13],null,[[\\\"@filters\\\",\\\"@onClose\\\",\\\"@type\\\",\\\"@dialogType\\\"],[[30,0,[\\\"filters\\\"]],[28,[37,5],[[28,[37,6],[[30,0,[\\\"isReservationDialog\\\"]]],null],false],null],[30,0,[\\\"type\\\"]],\\\"reservations\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"intro\\\"],false,[\\\"ui-intro\\\",\\\"t\\\",\\\"unless\\\",\\\"ui-when\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"svg-jar\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-metric-item\\\",\\\"format-number\\\",\\\"or\\\",\\\"amc-table-dialog\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-reports/reservations.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-reports/social-metrics\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"CjeTLXp/\",\n    \"block\": \"[[[41,[30,0,[\\\"socialMetrics\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[3,3,1,168,4]],null],[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[\\\"mt4\\\",1,5,5,52,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"flex items-end flex-wrap flex-nowrap-md w-100 bg-white pb4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"pb3 pb0-md w-100 w-50-sm w-33-md bg-white\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@size\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,3],[[30,0,[\\\"metrics\\\",\\\"postings\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,4],[\\\"reports.socialMetrics.postings\\\"],null],[30,0,[\\\"metrics\\\",\\\"postings\\\",\\\"change\\\"]],\\\"lg\\\",[28,[37,4],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,4],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"pb3 pb0-md w-100 w-50-sm w-33-md bg-white\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,3],[[30,0,[\\\"metrics\\\",\\\"impressions\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,4],[\\\"reports.socialMetrics.impressions\\\"],null],[30,0,[\\\"metrics\\\",\\\"impressions\\\",\\\"change\\\"]],[28,[37,4],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,4],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"w-100 w-50-sm w-33-md bg-white\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\"],[[28,[37,3],[[30,0,[\\\"metrics\\\",\\\"clicks\\\",\\\"current\\\",\\\"value\\\"]]],null],[28,[37,4],[\\\"reports.socialMetrics.clicks\\\"],null],[30,0,[\\\"metrics\\\",\\\"clicks\\\",\\\"change\\\"]],[28,[37,4],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,4],[\\\"components.ui-metric-item.placeholder\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isTableEmpty\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"reports.socialMetrics.empty\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@classNames\\\",\\\"@columns\\\",\\\"@rows\\\"],[\\\"no-shadow pt4\\\",[30,0,[\\\"tableHeaderOptions\\\"]],[30,0,[\\\"campaigns\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[14,0,\\\"bb b--black-10\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,2]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"th\\\"],[15,0,[29,[[52,[30,4],\\\"ph2 text-right\\\",\\\"pr2 text-left\\\"],\\\" font-xs secondary\\\"]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[[30,3,[\\\"i18n\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[30,1,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,5,[\\\"row\\\"]],null,[[\\\"@hasActions\\\"],[false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pr2 pv2 font-sm\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[[30,6],\\\"campaign\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,6,[\\\"postings\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,6,[\\\"impressions\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,6,[\\\"clicks\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,6,[\\\"reservations\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,6,[\\\"conversions\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[5,6]]]]],[1,\\\"\\\\n    \\\"]],[1,2]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"ta\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\",\\\"body\\\",\\\"row\\\"],false,[\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-metric-item\\\",\\\"format-number\\\",\\\"t\\\",\\\"svg-jar\\\",\\\"ui-table\\\",\\\"each\\\",\\\"-track-array\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-reports/social-metrics.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-reports/value-added\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"RPUnkByb\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[\\\"mw6\\\",[28,[37,1],[\\\"reports.valueAdded.title\\\"],null],[28,[37,1],[\\\"reports.valueAdded.description\\\"],null],\\\"xl\\\",true]],null],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"pv4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"valueAddedData\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,10,5,52,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isEmpty\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pv4 mv4\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"reports.valueAdded.empty\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@classNames\\\",\\\"@columns\\\",\\\"@rows\\\"],[\\\"no-shadow\\\",[30,0,[\\\"tableHeaderOptions\\\"]],[30,0,[\\\"marketingActions\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[14,0,\\\"bb b--black-10\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,2]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"th\\\"],[15,0,[29,[[52,[30,4],\\\"ph2 text-right\\\",\\\"pr2 text-left\\\"],\\\" font-xs secondary\\\"]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[[30,3,[\\\"i18n\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[30,1,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,5,[\\\"row\\\"]],null,[[\\\"@hasActions\\\"],[false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pr2 pv2 font-sm\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[[30,6],\\\"name\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[[30,6,[\\\"count\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[[30,6,[\\\"valuePerAction\\\"]],[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]],[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"pa2 text-right\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[[30,6,[\\\"turnover\\\"]],[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]],[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[5,6]]]]],[1,\\\"\\\\n    \\\"]],[1,2]]]]],[1,\\\"\\\\n  \\\"]],[]]]],[]]],[13]],[\\\"ta\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\",\\\"body\\\",\\\"row\\\"],false,[\\\"ui-intro\\\",\\\"t\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"svg-jar\\\",\\\"ui-table\\\",\\\"each\\\",\\\"-track-array\\\",\\\"get\\\",\\\"format-number\\\",\\\"ui-format-currency\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-reports/value-added.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-route-card\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"Ihfe0lp1\",\n    \"block\": \"[[[41,[30,0,[\\\"isEmpty\\\"]],[[[1,\\\"  \\\"],[1,[28,[35,1],[\\\"thumb-up\\\"],[[\\\"class\\\"],[\\\"white\\\"]]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"font-sm white ph2\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"title\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[1,[28,[35,1],[[30,0,[\\\"svg\\\"]]],[[\\\"class\\\"],[\\\"blue\\\"]]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex flex-column flex-grow-1 ph2\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-sm blue\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"title\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[1,[28,[35,1],[\\\"arrow-right\\\"],[[\\\"class\\\"],[\\\"blue\\\"]]]],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"svg-jar\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-route-card.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/amc-toggle-activation\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"V8iyHKG9\",\n    \"block\": \"[[[18,1,[[28,[37,1],null,[[\\\"toggleAction\\\",\\\"isRunning\\\"],[[28,[37,2],[[30,0],\\\"confirm\\\"],null],[30,0,[\\\"_send\\\",\\\"isRunning\\\"]]]]]]]],[\\\"&default\\\"],false,[\\\"yield\\\",\\\"hash\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/amc-toggle-activation.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/components/basic-dropdown-content\", [\"exports\", \"ember-basic-dropdown/templates/components/basic-dropdown-content\"], function (_exports, _basicDropdownContent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _basicDropdownContent.default;\n    }\n  });\n});","define(\"additive-mc/templates/components/basic-dropdown-trigger\", [\"exports\", \"ember-basic-dropdown/templates/components/basic-dropdown-trigger\"], function (_exports, _basicDropdownTrigger) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _basicDropdownTrigger.default;\n    }\n  });\n});","define(\"additive-mc/templates/components/basic-dropdown\", [\"exports\", \"ember-basic-dropdown/templates/components/basic-dropdown\"], function (_exports, _basicDropdown) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _basicDropdown.default;\n    }\n  });\n});","define(\"additive-mc/templates/components/ui-create-content-dialog\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"nSWoYY5D\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@modalClassNames\\\",\\\"@isSimpleDialog\\\",\\\"@onClose\\\"],[[30,0,[\\\"title\\\"]],\\\"create-dialog\\\",true,[28,[37,1],[[30,0],[30,0,[\\\"onClose\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"header\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@classNames\\\"],[\\\"pb1 ph0\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"w-100 ph1 pt1\\\"],[12],[1,\\\"\\\\n        \\\"],[18,3,[[28,[37,3],null,[[\\\"body\\\"],[[50,\\\"ui-blank-template\\\",0,null,null]]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"m\\\",\\\"c\\\",\\\"&default\\\"],false,[\\\"ui-modal\\\",\\\"action\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/components/ui-create-content-dialog.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/filter\", [\"exports\", \"@additive-apps/multimedia-engine/templates/filter\"], function (_exports, _filter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _filter.default;\n    }\n  });\n});","define(\"additive-mc/templates/filter/medium\", [\"exports\", \"@additive-apps/multimedia-engine/templates/filter/medium\"], function (_exports, _medium) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _medium.default;\n    }\n  });\n});","define(\"additive-mc/templates/instance\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"vRpGPrsh\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/auditlog\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"Ssb0Chxc\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@apiBaseHost\\\"],[[30,0,[\\\"_apiBaseHost\\\"]]]],null]],[],false,[\\\"ui-audit-log\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/auditlog.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"fFQVbQUn\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"HQZFZcbS\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null],[1,\\\"\\\\n\\\\n\\\"]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad/content-ads/index/content-ad\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"b2GvpV+j\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\"],[[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"title\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],[[4,[38,1],[[30,0,[\\\"onDidInsert\\\"]]],null]],[[\\\"@onClose\\\"],[[30,0,[\\\"back\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[41,[28,[37,4],[[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"isPublic\\\"]],[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"isPaused\\\"]]],null],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"reload\\\",[28,[37,5],[\\\"global.actions.update\\\"],null],[28,[37,6],[[28,[37,7],[[30,0,[\\\"isUpdateDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"isPublic\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"pause\\\",[28,[37,5],[\\\"global.actions.pause\\\"],null],[30,0,[\\\"isLoading\\\"]],[28,[37,6],[[30,0,[\\\"modelAction\\\"]],\\\"pause\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"isPaused\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"video\\\",[28,[37,5],[\\\"global.actions.continue\\\"],null],[30,0,[\\\"isLoading\\\"]],[28,[37,6],[[30,0,[\\\"modelAction\\\"]],\\\"continue\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"publish\\\",[28,[37,5],[\\\"global.actions.unpublish\\\"],null],[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"onPublish\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"isDraft\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"publish\\\",[28,[37,5],[\\\"global.actions.publish\\\"],null],[28,[37,4],[[28,[37,8],[[30,0,[\\\"isValid\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null],[28,[37,6],[[28,[37,7],[[30,0,[\\\"isPublishDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"isExpired\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"publish\\\",[28,[37,5],[\\\"global.actions.unpublish\\\"],null],[28,[37,4],[[28,[37,8],[[30,0,[\\\"isValid\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null],[30,0,[\\\"onPublish\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"isActive\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,5],[\\\"global.actions.rename\\\"],null],[28,[37,4],[[30,0,[\\\"isActionsDisabled\\\"]],[30,0,[\\\"isLoading\\\"]]],null],[30,0,[\\\"openRenameDialog\\\"]]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,5],[\\\"global.actions.archive\\\"],null],[28,[37,4],[[30,0,[\\\"isActionsDisabled\\\"]],[30,0,[\\\"isLoading\\\"]]],null],[30,0,[\\\"onArchive\\\"]]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"delete\\\",[28,[37,5],[\\\"global.actions.delete\\\"],null],[28,[37,4],[[30,0,[\\\"isActionsDisabled\\\"]],[30,0,[\\\"isLoading\\\"]]],null],[30,0,[\\\"onDelete\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,9],[[24,0,\\\"ohidden\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[6,[39,10],[[30,0,[\\\"showPendingDepictionValidations\\\"]]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@title\\\"],[\\\"warning\\\",[28,[37,5],[\\\"adCampaigns.facebookContentAds.validationNotification\\\"],[[\\\"htmlSafe\\\"],[true]]]]],null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[6,[39,10],[[28,[37,12],[[30,0,[\\\"showUpdateNotification\\\"]],[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"hasBeenPublished\\\"]]],null]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@title\\\",\\\"@buttonText\\\",\\\"@onButtonClick\\\"],[\\\"reload\\\",[28,[37,5],[\\\"adCampaigns.facebookContentAds.updateNotification\\\"],[[\\\"htmlSafe\\\"],[true]]],[28,[37,5],[\\\"global.actions.update\\\"],null],[28,[37,6],[[28,[37,7],[[30,0,[\\\"isUpdateDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[6,[39,10],[[30,0,[\\\"showNotification\\\"]]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@title\\\",\\\"@buttonText\\\",\\\"@onButtonClick\\\"],[\\\"edit\\\",[30,0,[\\\"validations\\\",\\\"firstObject\\\",\\\"message\\\"]],[52,[30,0,[\\\"validations\\\",\\\"firstObject\\\",\\\"action\\\"]],[28,[37,5],[[28,[37,13],[\\\"global.actions.\\\",[30,0,[\\\"validations\\\",\\\"firstObject\\\",\\\"action\\\"]]],null]],null]],[30,0,[\\\"openEdit\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"pv3 dib\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,14],null,[[\\\"@state\\\"],[[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"publishedState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@state\\\"],[[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"publishedState\\\"]]]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"font-sm mr1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[[28,[37,13],[\\\"adCampaigns.states.\\\",[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"state\\\"]]],null]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-sm secondary pt1\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"adCampaigns.facebookContentAds.type\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex items-center font-xl primary pb3\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"label\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showContentInfo\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@classNames\\\"],[\\\"mb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"targetAudience\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"socialCampaigns.socialCampaign.campaigns.columns.targetAudience\\\"],null],[30,0,[\\\"targetAudience\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"targetLanguages\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"socialCampaigns.socialCampaign.campaigns.columns.languages\\\"],null],[30,0,[\\\"targetLanguages\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"startDate\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"socialCampaigns.socialCampaign.campaigns.detail.startDate\\\"],null],[28,[37,13],[[28,[37,18],[[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"startDate\\\"]]],null],\\\", \\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"startDate\\\"]]],[[\\\"format\\\"],[\\\"hhmm\\\"]]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"endDate\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"socialCampaigns.socialCampaign.campaigns.detail.endDate\\\"],null],[52,[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"unlimitedDuration\\\"]],[28,[37,5],[\\\"socialCampaigns.socialCampaign.campaigns.detail.unlimitedDuration\\\"],null],[28,[37,13],[[28,[37,18],[[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"endDate\\\"]]],null],\\\", \\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"endDate\\\"]]],[[\\\"format\\\"],[\\\"hhmm\\\"]]]],null]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"budgetSpend\\\",\\\"value\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"socialCampaigns.socialCampaign.campaigns.columns.budgetSpend\\\"],null],[28,[37,20],[[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"budgetSpend\\\",\\\"value\\\"]],\\\"EUR\\\",[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],2,2,1],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"budget\\\",\\\"amount\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[[28,[37,13],[\\\"socialCampaigns.socialCampaign.campaigns.columns.totalBudget.\\\",[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"budget\\\",\\\"type\\\"]]],null]],null],[28,[37,20],[[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"budget\\\",\\\"amount\\\"]],\\\"EUR\\\",[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],2,2,1],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,12],[[30,0,[\\\"campaignOptimizationEvent\\\"]],[28,[37,21],[[30,0,[\\\"campaignGoal\\\"]],\\\"conversions\\\"],null]],null],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"adCampaigns.properties.optimizationEvent\\\"],null],[30,0,[\\\"campaignOptimizationEvent\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"campaignPostfix\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"adCampaigns.leadAds.campaignPostfix\\\"],null],[30,0,[\\\"model\\\",\\\"facebookContentAd\\\",\\\"campaignPostfix\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex items-center font-lg primary pb2 pt3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"adCampaigns.facebookContentAds.preview.title\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"getDepictionMeta\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,22],null,[[\\\"@class\\\",\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[\\\"mt3\\\",3,3,1,40,16]],null],[1,\\\"\\\\n        \\\"],[8,[39,22],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[2,2,1,450,16]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[30,0,[\\\"selectedDepictions\\\",\\\"length\\\"]],[30,0,[\\\"depictionMeta\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,23],null,[[\\\"@depictions\\\",\\\"@depictionMeta\\\"],[[30,0,[\\\"selectedDepictions\\\"]],[30,0,[\\\"depictionMeta\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pv4 mv4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,24],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"adCampaigns.facebookContentAds.preview.empty\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,25],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"edit\\\",true,[30,0,[\\\"openEdit\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isPublishDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@changeset\\\",\\\"@validationProperties\\\",\\\"@onClose\\\",\\\"@onPublish\\\"],[[30,0,[\\\"publishChangeset\\\"]],[30,0,[\\\"validationProperties\\\"]],[28,[37,6],[[28,[37,7],[[30,0,[\\\"isPublishDialog\\\"]]],null],false],null],[30,0,[\\\"onPublish\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRenameDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@onClose\\\",\\\"@title\\\",\\\"@filterName\\\",\\\"@nameProperty\\\",\\\"@adapterOptions\\\",\\\"@model\\\"],[[28,[37,6],[[28,[37,7],[[30,0,[\\\"isRenameDialog\\\"]]],null],false],null],[28,[37,5],[\\\"adCampaigns.advertisements.edit.title.facebookContentAd\\\"],null],\\\"content-ads\\\",\\\"label\\\",[28,[37,28],null,[[\\\"campaignId\\\",\\\"type\\\"],[[30,0,[\\\"campaignId\\\"]],\\\"content-ads\\\"]]],[30,0,[\\\"model\\\",\\\"facebookContentAd\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isUpdateDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@depictionUpdates\\\",\\\"@adapterOptions\\\",\\\"@model\\\",\\\"@depictionRoute\\\",\\\"@onClose\\\",\\\"@onUpdate\\\"],[[30,0,[\\\"pendingDepictionUpdates\\\"]],[30,0,[\\\"adapterOptions\\\"]],[30,0,[\\\"model\\\",\\\"facebookContentAd\\\"]],\\\"instance.campaigns.ad.content-ads.depictions.index.depiction.index\\\",[28,[37,6],[[28,[37,7],[[30,0,[\\\"isUpdateDialog\\\"]]],null],false],null],[30,0,[\\\"onUpdate\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"view\\\",\\\"nav\\\"],false,[\\\"ui-content-views\\\",\\\"did-insert\\\",\\\"unless\\\",\\\"if\\\",\\\"or\\\",\\\"t\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"animated-container\\\",\\\"animated-if\\\",\\\"ui-inline-notification\\\",\\\"and\\\",\\\"concat\\\",\\\"ui-status-badge\\\",\\\"ui-status\\\",\\\"ui-content-info\\\",\\\"ui-info-item\\\",\\\"date-format\\\",\\\"format-time\\\",\\\"ui-format-currency\\\",\\\"equal\\\",\\\"ui-skeleton\\\",\\\"amc-campaign/ads/advertisements/depiction-preview\\\",\\\"svg-jar\\\",\\\"ui-button\\\",\\\"amc-campaign/ads/advertisements/publish-dialog\\\",\\\"amc-campaign/ads/advertisements/create-dialog\\\",\\\"hash\\\",\\\"amc-campaign/ads/advertisements/depiction-update-dialog\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad/content-ads/index/content-ad.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"1HD6Enuf\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@key\\\",\\\"@modelName\\\"],[\\\"ad\\\",\\\"ad-campaign\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@detailRoute\\\",\\\"@filter\\\",\\\"@theme\\\",\\\"@isWide\\\"],[\\\"campaigns__list\\\",[30,0,[\\\"detailRoute\\\"]],\\\"ad\\\",\\\"grey\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"navbar\\\"]],null,[[\\\"@breadcrumbs\\\",\\\"@hasBreadcrumbs\\\"],[[28,[37,2],null,[[\\\"currentRouteName\\\",\\\"rootName\\\"],[\\\"ad\\\",\\\"campaigns\\\"]]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"        \\\"],[8,[30,3,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"security\\\",[28,[37,4],[\\\"adCampaigns.integrityCheck.title\\\"],null],[28,[37,5],[[30,0,[\\\"performCheck\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[30,3,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"settings\\\",[28,[37,4],[\\\"global.actions.configure\\\"],null],[30,0,[\\\"toggleDrawer\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,2,[\\\"intro\\\"]],null,[[\\\"@description\\\",\\\"@hasBreadcrumbs\\\",\\\"@breadcrumbs\\\",\\\"@isMultiline\\\",\\\"@size\\\"],[[28,[37,4],[\\\"adCampaigns.description\\\"],null],true,[28,[37,2],null,[[\\\"currentRouteName\\\",\\\"rootName\\\"],[\\\"ad\\\",\\\"campaigns\\\"]]],true,\\\"xl\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mv3\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[10,1,64,4]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"hasNoMatches\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"empty-search-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"adCampaigns.filter.noMatch\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"isEmpty\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"adCampaigns.filter.empty\\\"],[[\\\"htmlSafe\\\"],[true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,9],null,[[\\\"@items\\\",\\\"@hasMobileSpacing\\\"],[[30,1,[\\\"data\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,4,[\\\"count\\\"]],null,[[\\\"@totalCount\\\"],[[30,1,[\\\"data\\\",\\\"meta\\\",\\\"total\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[28,[37,11],[[28,[37,12],[[30,5,[\\\"type\\\"]],\\\"FacebookContentAdCampaign\\\"],null],[28,[37,10],[[30,0,[\\\"isAdditive\\\"]]],null]],null]],null],[[[1,\\\"            \\\"],[8,[30,4,[\\\"item\\\"]],null,[[\\\"@linkTo\\\",\\\"@linkToParam\\\",\\\"@description\\\",\\\"@isReadOnly\\\",\\\"@state\\\"],[[52,[30,5,[\\\"isLeadAdCampaign\\\"]],\\\"instance.campaigns.ad.lead-ads\\\",[52,[30,5,[\\\"isTikTokLeadAdCampaign\\\"]],\\\"instance.campaigns.ad.tiktok-lead-ads\\\",\\\"\\\"]],[30,5,[\\\"id\\\"]],[30,5,[\\\"type\\\"]],[52,[30,5,[\\\"isTikTokLeadAdCampaign\\\"]],[28,[37,10],[[30,0,[\\\"isAdditive\\\"]]],null],false],[52,[30,5,[\\\"active\\\"]],\\\"success\\\",\\\"error\\\"]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,6,[\\\"thumbnail\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"isTikTokLeadAdCampaign\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,8],[\\\"tiktokCampaign\\\"],[[\\\"class\\\"],[\\\"secondary\\\"]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,8],[\\\"facebookCampaign\\\"],[[\\\"class\\\"],[\\\"secondary\\\"]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,6,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n              \\\"],[8,[30,6,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,5,[\\\"title\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,6,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"isTikTokLeadAdCampaign\\\"]],[[[1,\\\"                  \\\"],[8,[39,13],null,[[\\\"@class\\\"],[\\\"blue bg-blue--10 font-sm\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    Beta\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"flex justify-center items-center\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[30,5,[\\\"active\\\"]],\\\"adCampaigns.adCampaign.toggle.confirmation.\\\"],[[[1,\\\"                      \\\"],[8,[39,15],null,[[\\\"@modelName\\\",\\\"@resourceId\\\",\\\"@isActive\\\",\\\"@confirmation\\\"],[\\\"ad-campaign\\\",[30,5,[\\\"id\\\"]],[30,7],[28,[37,2],null,[[\\\"label\\\",\\\"description\\\",\\\"action\\\"],[[28,[37,4],[[28,[37,16],[[30,8],\\\"label\\\"],null]],[[\\\"active\\\"],[[30,7]]]],[28,[37,4],[[28,[37,16],[[30,8],\\\"description\\\"],null]],[[\\\"active\\\"],[[30,7]]]],[28,[37,4],[[28,[37,16],[[30,8],\\\"action\\\"],null]],[[\\\"active\\\"],[[30,7]]]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[8,[39,17],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                          \\\"],[8,[30,10,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,4],[[28,[37,16],[\\\"global.actions.\\\",[52,[30,5,[\\\"active\\\"]],\\\"deactivate\\\",\\\"activate\\\"]],null]],null],[30,5,[\\\"active\\\"]],[30,9,[\\\"toggleAction\\\"]]]],null],[1,\\\"\\\\n                        \\\"]],[10]]]]],[1,\\\"\\\\n                      \\\"]],[9]]]]],[1,\\\"\\\\n\\\"]],[7,8]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[4,5]]]]],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@total\\\",\\\"@setCurrentPage\\\",\\\"@currentPage\\\",\\\"@onPageChange\\\"],[[30,1,[\\\"meta\\\",\\\"lastPage\\\"]],[28,[37,19],[[28,[37,20],[[30,1,[\\\"meta\\\",\\\"currentPage\\\"]]],null]],null],[30,1,[\\\"meta\\\",\\\"currentPage\\\"]],[30,1,[\\\"actions\\\",\\\"changePage\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]],[]]]],[]]],[41,[30,0,[\\\"isCreateCampaignDialog\\\"]],[[[1,\\\"        \\\"],[8,[39,21],null,[[\\\"@onClose\\\",\\\"@filterName\\\"],[[28,[37,19],[[28,[37,20],[[30,0,[\\\"isCreateCampaignDialog\\\"]]],null],false],null],\\\"ad\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"        \\\"],[8,[39,22],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[28,[37,19],[[28,[37,20],[[30,0,[\\\"isCreateCampaignDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[8,[39,23],null,[[\\\"@isReadOnly\\\",\\\"@stateKey\\\"],[[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"navdrawerStateKey\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,11,[\\\"multimediaOverlayContent\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[46,[28,[37,25],null,null],null,null,null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[11]]]]],[1,\\\"\\\\n\\\"],[46,[28,[37,25],[\\\"detail\\\"],null],null,null,null]],[\\\"f\\\",\\\"view\\\",\\\"nav\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"active\\\",\\\"prefix\\\",\\\"ta\\\",\\\"content\\\",\\\"generalSettings\\\"],false,[\\\"ui-filterable\\\",\\\"ui-content-views\\\",\\\"hash\\\",\\\"unless\\\",\\\"t\\\",\\\"perform\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"svg-jar\\\",\\\"ui-list\\\",\\\"not\\\",\\\"and\\\",\\\"eq\\\",\\\"ui-status-badge\\\",\\\"let\\\",\\\"amc-toggle-activation\\\",\\\"concat\\\",\\\"ui-item-menu\\\",\\\"ui-pagination\\\",\\\"fn\\\",\\\"mut\\\",\\\"amc-campaign/ads/create-dialog\\\",\\\"ui-button\\\",\\\"amc-campaign/ads/general-settings-navdrawer\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad/index/detail/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"1V9BF4Tm\",\n    \"block\": \"[[[10,0],[14,0,\\\"font-md font-medium primary pb3 center\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,0],[\\\"socialCampaigns.socialCampaign.campaigns.activeCampaigns\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"activeTableDataIsEmpty\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,2],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-md font-medium secondary\\\"],[14,\\\"data-test-campaigns-ad-detail-active-ui-table-empty\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,0],[\\\"reports.valueAdded.empty\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"view__inner-content horizontal-scroll\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],[[16,\\\"data-test-campaigns-ad-detail-active-ui-table\\\",true]],[[\\\"@columns\\\",\\\"@rows\\\",\\\"@isLoading\\\",\\\"@formats\\\",\\\"@classNames\\\"],[[30,0,[\\\"tableDefaultHeaderOptions\\\"]],[30,0,[\\\"formattedActiveRows\\\"]],[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"formats\\\"]],\\\"ma-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"head\\\"]],null,null,null],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"row\\\"]],null,[[\\\"@hasActions\\\",\\\"@menuActions\\\",\\\"@onClick\\\"],[true,[52,[28,[37,4],[[30,0,[\\\"activeRowStates\\\"]],[30,4]],null],[30,0,[\\\"activeTableActions\\\"]],[30,0,[\\\"pausedTableActions\\\"]]],[30,0,[\\\"openDetail\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[2,3,4]]]]],[1,\\\"\\\\n    \\\"]],[1]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"font-md font-medium primary pb3 pt4 center\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,0],[\\\"socialCampaigns.socialCampaign.campaigns.inActiveCampaigns\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"inactiveTableDataIsEmpty\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,2],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-md font-medium secondary\\\"],[14,\\\"data-test-campaigns-ad-detail-inactive-ui-table-empty\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,0],[\\\"reports.valueAdded.empty\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"view__inner-content horizontal-scroll\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],[[16,\\\"data-test-campaigns-ad-detail-inactive-ui-table\\\",true]],[[\\\"@columns\\\",\\\"@rows\\\",\\\"@formats\\\",\\\"@isLoading\\\",\\\"@classNames\\\"],[[30,0,[\\\"tableDefaultHeaderOptions\\\"]],[30,0,[\\\"formattedInActiveRows\\\"]],[30,0,[\\\"formats\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"ma-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,5,[\\\"head\\\"]],null,null,null],[1,\\\"\\\\n      \\\"],[8,[30,5,[\\\"body\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,6,[\\\"row\\\"]],null,null,null],[1,\\\"\\\\n      \\\"]],[6]]]]],[1,\\\"\\\\n    \\\"]],[5]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDetailDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@advertisementId\\\",\\\"@campaign\\\",\\\"@meta\\\",\\\"@onClose\\\"],[[30,0,[\\\"activeAdvertisementId\\\"]],[30,0,[\\\"model\\\"]],[30,0,[\\\"meta\\\"]],[30,0,[\\\"closeDetail\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"ta\\\",\\\"body\\\",\\\"rowData\\\",\\\"index\\\",\\\"ta\\\",\\\"body\\\"],false,[\\\"t\\\",\\\"if\\\",\\\"svg-jar\\\",\\\"ui-table\\\",\\\"get\\\",\\\"amc-campaign/ads/advertisement-detail\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad/index/detail/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad/lead-ads\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"X3Rs2ili\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@key\\\",\\\"@modelName\\\"],[\\\"lead-ads\\\",\\\"advertisement\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@detailRoute\\\",\\\"@theme\\\",\\\"@isWide\\\"],[\\\"campaigns__list\\\",\\\"instance.campaigns.ad.lead-ads.lead-ad.index\\\",\\\"grey\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"navbar\\\"]],null,[[\\\"@breadcrumbs\\\",\\\"@hasBreadcrumbs\\\"],[[28,[37,2],null,[[\\\"currentRouteNameText\\\",\\\"currentRouteName\\\",\\\"rootName\\\"],[[30,0,[\\\"model\\\",\\\"campaign\\\",\\\"title\\\"]],\\\"lead-ads\\\",\\\"campaigns\\\"]]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"campaign\\\",\\\"configurations\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[8,[30,3,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[28,[37,4],[\\\"global.actions.configure\\\"],null],\\\"settings\\\",[30,0,[\\\"toggleDrawer\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[3]]]]],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"intro\\\"]],null,[[\\\"@hasBreadcrumbs\\\",\\\"@breadcrumbs\\\",\\\"@size\\\"],[true,[28,[37,2],null,[[\\\"currentRouteNameText\\\",\\\"currentRouteName\\\",\\\"rootName\\\",\\\"maxCount\\\"],[[30,0,[\\\"model\\\",\\\"campaign\\\",\\\"title\\\"]],\\\"lead-ads\\\",\\\"campaigns\\\",3]]],\\\"xl\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mv3\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[10,1,64,4]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"isEmpty\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"adCampaigns.leadAds.empty\\\"],[[\\\"htmlSafe\\\"],[true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@archiveAction\\\",\\\"@deleteAction\\\",\\\"@renameAction\\\",\\\"@isReadOnly\\\",\\\"@meta\\\",\\\"@type\\\"],[[30,1,[\\\"data\\\"]],[30,0,[\\\"onArchive\\\"]],[30,0,[\\\"onDelete\\\"]],[30,0,[\\\"openRenameDialog\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"model\\\",\\\"meta\\\"]],\\\"leadAds\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]],[]]],[41,[30,0,[\\\"isEditDialog\\\"]],[[[1,\\\"        \\\"],[8,[39,8],null,[[\\\"@title\\\",\\\"@filterName\\\",\\\"@nameProperty\\\",\\\"@adapterOptions\\\",\\\"@model\\\",\\\"@onClose\\\"],[[28,[37,4],[\\\"adCampaigns.advertisements.edit.title.leadAd\\\"],null],\\\"lead-ads\\\",\\\"label\\\",[28,[37,2],null,[[\\\"campaignId\\\",\\\"type\\\"],[[30,0,[\\\"campaignId\\\"]],\\\"lead-ads\\\"]]],[30,0,[\\\"activeModel\\\"]],[30,0,[\\\"openAdDetail\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"      \\\"],[8,[30,2,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[30,0,[\\\"openCreateDialog\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[8,[39,11],null,[[\\\"@stateKey\\\",\\\"@onClose\\\",\\\"@model\\\"],[[30,0,[\\\"stateKey\\\"]],[30,0,[\\\"toggleDrawer\\\"]],[30,0,[\\\"model\\\",\\\"campaign\\\"]]]],null],[1,\\\"\\\\n\\\"],[46,[28,[37,13],[\\\"detail\\\"],null],null,null,null]],[\\\"filter\\\",\\\"view\\\",\\\"nav\\\"],false,[\\\"ui-filterable\\\",\\\"ui-content-views\\\",\\\"hash\\\",\\\"if\\\",\\\"t\\\",\\\"ui-skeleton\\\",\\\"svg-jar\\\",\\\"amc-campaign/ads/list-view\\\",\\\"amc-campaign/ads/advertisements/create-dialog\\\",\\\"unless\\\",\\\"ui-button\\\",\\\"amc-campaign/ads/configurations-navdrawer\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad/lead-ads.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad/lead-ads/advertisements/advertisement\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"Ngjqalvi\",\n    \"block\": \"[[],[],false,[]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad/lead-ads/advertisements/advertisement.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad/lead-ads/lead-ad\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"UJx3sUZK\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\"],[[30,0,[\\\"model\\\",\\\"title\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],[[4,[38,1],[[28,[37,2],[[30,0,[\\\"validate\\\"]]],null]],null]],[[\\\"@onClose\\\"],[[30,0,[\\\"back\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[41,[30,0,[\\\"model\\\",\\\"isPublic\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"pause\\\",[28,[37,5],[\\\"global.actions.pause\\\"],null],[30,0,[\\\"isLoading\\\"]],[28,[37,6],[[30,0,[\\\"modelAction\\\"]],\\\"pause\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"isPaused\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"video\\\",[28,[37,5],[\\\"global.actions.continue\\\"],null],[30,0,[\\\"isLoading\\\"]],[28,[37,6],[[30,0,[\\\"modelAction\\\"]],\\\"continue\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"publish\\\",[28,[37,5],[\\\"global.actions.unpublish\\\"],null],[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"onPublish\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"isDraft\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"publish\\\",[28,[37,5],[\\\"global.actions.publish\\\"],null],[28,[37,7],[[28,[37,8],[[30,0,[\\\"isValid\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null],[30,0,[\\\"onPublish\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"isExpired\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"publish\\\",[28,[37,5],[\\\"global.actions.unpublish\\\"],null],[28,[37,7],[[28,[37,8],[[30,0,[\\\"isValid\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null],[30,0,[\\\"onPublish\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"isActive\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,5],[\\\"global.actions.rename\\\"],null],[28,[37,7],[[30,0,[\\\"model\\\",\\\"isPublic\\\"]],[30,0,[\\\"isLoading\\\"]]],null],[28,[37,6],[[28,[37,9],[[30,0,[\\\"isRenameDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,5],[\\\"global.actions.archive\\\"],null],[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"onArchive\\\"]]]],null],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"delete\\\",[28,[37,5],[\\\"global.actions.delete\\\"],null],[28,[37,7],[[30,0,[\\\"model\\\",\\\"isPublic\\\"]],[30,0,[\\\"isLoading\\\"]]],null],[30,0,[\\\"onDelete\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,10],[[24,0,\\\"ohidden\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[6,[39,11],[[30,0,[\\\"showNotification\\\"]]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"        \\\"],[8,[39,12],null,[[\\\"@icon\\\",\\\"@title\\\",\\\"@buttonText\\\",\\\"@onButtonClick\\\"],[\\\"edit\\\",[30,0,[\\\"validations\\\",\\\"firstObject\\\",\\\"message\\\"]],[52,[30,0,[\\\"validations\\\",\\\"firstObject\\\",\\\"action\\\"]],[28,[37,5],[[28,[37,13],[\\\"global.actions.\\\",[30,0,[\\\"validations\\\",\\\"firstObject\\\",\\\"action\\\"]]],null]],null]],[30,0,[\\\"openEdit\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"pv3 dib\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,14],null,[[\\\"@state\\\"],[[30,0,[\\\"model\\\",\\\"publishedState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@state\\\"],[[30,0,[\\\"model\\\",\\\"publishedState\\\"]]]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"font-sm mr1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[[28,[37,13],[\\\"adCampaigns.states.\\\",[30,0,[\\\"model\\\",\\\"state\\\"]]],null]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex items-center font-xl primary pb3\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"model\\\",\\\"label\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showContentInfo\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@classNames\\\"],[\\\"mb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"adCampaigns.leadAds.isDynamicCreative.label\\\"],null],[28,[37,5],[\\\"adCampaigns.leadAds.isDynamicCreative.value\\\"],[[\\\"boolean\\\"],[[30,0,[\\\"model\\\",\\\"isDynamicCreative\\\"]]]]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"targetAudience\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"socialCampaigns.socialCampaign.campaigns.columns.targetAudience\\\"],null],[30,0,[\\\"targetAudience\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"startDate\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"socialCampaigns.socialCampaign.campaigns.detail.startDate\\\"],null],[28,[37,13],[[28,[37,18],[[30,0,[\\\"model\\\",\\\"startDate\\\"]]],null],\\\", \\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"startDate\\\"]]],[[\\\"format\\\"],[\\\"hhmm\\\"]]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"endDate\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"socialCampaigns.socialCampaign.campaigns.detail.endDate\\\"],null],[52,[30,0,[\\\"model\\\",\\\"unlimitedDuration\\\"]],[28,[37,5],[\\\"socialCampaigns.socialCampaign.campaigns.detail.unlimitedDuration\\\"],null],[28,[37,13],[[28,[37,18],[[30,0,[\\\"model\\\",\\\"endDate\\\"]]],null],\\\", \\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"endDate\\\"]]],[[\\\"format\\\"],[\\\"hhmm\\\"]]]],null]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"budgetSpend\\\",\\\"value\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"socialCampaigns.socialCampaign.campaigns.columns.budgetSpend\\\"],null],[28,[37,20],[[30,0,[\\\"model\\\",\\\"budgetSpend\\\",\\\"value\\\"]],\\\"EUR\\\",[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],2,2,1],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"totalBudget\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"socialCampaigns.socialCampaign.campaigns.columns.totalBudget.lifetime\\\"],null],[28,[37,20],[[30,0,[\\\"model\\\",\\\"totalBudget\\\"]],\\\"EUR\\\",[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],2,2,1],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"language\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"adCampaigns.leadAds.language\\\"],null],[28,[37,5],[[28,[37,13],[\\\"global.languages.\\\",[30,0,[\\\"model\\\",\\\"language\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"campaignPostfix\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"adCampaigns.leadAds.campaignPostfix\\\"],null],[30,0,[\\\"model\\\",\\\"campaignPostfix\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@classNames\\\"],[\\\"mt2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"title\\\"]],[[[1,\\\"      \\\"],[8,[39,21],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"adCampaigns.properties.adTitle\\\"],null],[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"title\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"headline\\\"]],[[[1,\\\"      \\\"],[8,[39,21],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"adCampaigns.properties.headline\\\"],null],[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"headline\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"text\\\"]],[[[1,\\\"      \\\"],[8,[39,21],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"adCampaigns.properties.text\\\"],null],[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"text\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"multimediaVariants\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,5],[\\\"adCampaigns.properties.multimediaVariants\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,22],null,[[\\\"@content\\\",\\\"@cta\\\"],[[30,0,[\\\"model\\\",\\\"adCreative\\\"]],[30,0,[\\\"cta\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"cta\\\"]],[[[1,\\\"      \\\"],[8,[39,21],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"adCampaigns.properties.cta\\\"],null],[30,0,[\\\"cta\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showFormHeadline\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"font-lg primary pv2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"adCampaigns.leadAds.form\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"form\\\",\\\"headline\\\"]],[[[1,\\\"      \\\"],[8,[39,21],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"adCampaigns.properties.headline\\\"],null],[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"form\\\",\\\"headline\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"form\\\",\\\"text\\\"]],[[[1,\\\"      \\\"],[8,[39,21],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"adCampaigns.properties.text\\\"],null],[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"form\\\",\\\"text\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"form\\\",\\\"textThanksTitle\\\"]],[[[1,\\\"      \\\"],[8,[39,21],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"adCampaigns.properties.textThanksTitle\\\"],null],[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"form\\\",\\\"textThanksTitle\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"form\\\",\\\"textThanks\\\"]],[[[1,\\\"      \\\"],[8,[39,21],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"adCampaigns.properties.textThanks\\\"],null],[30,0,[\\\"model\\\",\\\"adCreative\\\",\\\"form\\\",\\\"textThanks\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"isDraft\\\"]],[[[1,\\\"        \\\"],[8,[39,23],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"edit\\\",true,[30,0,[\\\"openEdit\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"isExpired\\\"]],[[[1,\\\"        \\\"],[8,[39,23],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"edit\\\",true,[30,0,[\\\"onExpiredEdit\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isRenameDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@onClose\\\",\\\"@title\\\",\\\"@filterName\\\",\\\"@nameProperty\\\",\\\"@adapterOptions\\\",\\\"@model\\\"],[[28,[37,6],[[28,[37,9],[[30,0,[\\\"isRenameDialog\\\"]]],null],false],null],[28,[37,5],[\\\"adCampaigns.advertisements.edit.title.leadAd\\\"],null],\\\"lead-ads\\\",\\\"label\\\",[28,[37,25],null,[[\\\"campaignId\\\",\\\"type\\\"],[[30,0,[\\\"campaignId\\\"]],\\\"lead-ads\\\"]]],[30,0,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"view\\\",\\\"nav\\\"],false,[\\\"ui-content-views\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"unless\\\",\\\"if\\\",\\\"t\\\",\\\"fn\\\",\\\"or\\\",\\\"not\\\",\\\"mut\\\",\\\"animated-container\\\",\\\"animated-if\\\",\\\"ui-inline-notification\\\",\\\"concat\\\",\\\"ui-status-badge\\\",\\\"ui-status\\\",\\\"ui-content-info\\\",\\\"ui-info-item\\\",\\\"date-format\\\",\\\"format-time\\\",\\\"ui-format-currency\\\",\\\"amc-campaign/ads/detail-wrapper\\\",\\\"amc-campaign/ads/lead-preview\\\",\\\"ui-button\\\",\\\"amc-campaign/ads/advertisements/create-dialog\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad/lead-ads/lead-ad.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad/lead-ads/lead-ad/edit\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"vl4KfafM\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,[[\\\"@onClose\\\",\\\"@isMenuHidden\\\"],[[30,0,[\\\"onBack\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"button\\\"]],[[16,\\\"data-test-edit-save\\\",true]],[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.save\\\"],null],\\\"save\\\",[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"save\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"main\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column pt4\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-lg primary pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"adCampaigns.leadAds.adCreative\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@maxlength\\\"],[[28,[37,1],[\\\"adCampaigns.properties.adTitle\\\"],null],[30,0,[\\\"adCreativeChangeset\\\",\\\"title\\\"]],[30,0,[\\\"adCreativeChangeset\\\",\\\"error\\\",\\\"title\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],200]],null],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@maxlength\\\"],[[28,[37,1],[\\\"adCampaigns.properties.headline\\\"],null],[30,0,[\\\"adCreativeChangeset\\\",\\\"headline\\\"]],[30,0,[\\\"adCreativeChangeset\\\",\\\"error\\\",\\\"headline\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],200]],null],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@textarea\\\"],[[28,[37,1],[\\\"adCampaigns.properties.text\\\"],null],[30,0,[\\\"adCreativeChangeset\\\",\\\"text\\\"]],[30,0,[\\\"adCreativeChangeset\\\",\\\"error\\\",\\\"text\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],true]],null],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"adCampaigns.properties.cta\\\"],null],[30,0,[\\\"meta\\\",\\\"ctaTypes\\\"]],[28,[37,4],[[28,[37,5],[[30,0,[\\\"adCreativeChangeset\\\",\\\"cta\\\"]],[30,0,[\\\"meta\\\",\\\"ctaTypes\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"adCreativeChangeset\\\",\\\"error\\\",\\\"cta\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"selectCta\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,4,[\\\"label\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[3,4]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"pb2 pt2 pt0-md\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex-column\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-sm secondary mb05\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"adCampaigns.properties.multimediaVariants\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@resources\\\",\\\"@onDropzoneClick\\\",\\\"@isImageAddable\\\",\\\"@isVideoAddable\\\",\\\"@isReadOnly\\\",\\\"@onResourceRemove\\\",\\\"@onResourceEdit\\\",\\\"@selectableImageLabels\\\",\\\"@onImageLabelChange\\\"],[[30,0,[\\\"adCreativeChangeset\\\",\\\"multimediaVariants\\\"]],[30,0,[\\\"openMultimedia\\\"]],true,true,[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"onResourceRemove\\\"]],[30,0,[\\\"onResourceEdit\\\"]],[30,0,[\\\"_selectableImageLabels\\\"]],[30,0,[\\\"onImageLabelChange\\\"]]]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-xs red mt1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"adCreativeChangeset\\\",\\\"error\\\",\\\"multimediaVariants\\\",\\\"validation\\\",\\\"firstObject\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-lg primary pt4 mt2 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"adCampaigns.leadAds.form\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@maxlength\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"adCampaigns.properties.headline\\\"],null],[30,0,[\\\"adCreativeChangeset\\\",\\\"form\\\",\\\"headline\\\"]],[30,0,[\\\"adCreativeChangeset\\\",\\\"error\\\",\\\"form\\\",\\\"headline\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],200,[28,[37,7],[[30,0,[\\\"onChangeFormData\\\"]],\\\"headline\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@textarea\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"adCampaigns.properties.text\\\"],null],[30,0,[\\\"adCreativeChangeset\\\",\\\"form\\\",\\\"text\\\"]],[30,0,[\\\"adCreativeChangeset\\\",\\\"error\\\",\\\"form\\\",\\\"text\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],true,[28,[37,7],[[30,0,[\\\"onChangeFormData\\\"]],\\\"text\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@infoMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"adCampaigns.properties.textThanksTitle\\\"],null],[30,0,[\\\"adCreativeChangeset\\\",\\\"form\\\",\\\"textThanksTitle\\\"]],[30,0,[\\\"adCreativeChangeset\\\",\\\"error\\\",\\\"form\\\",\\\"textThanksTitle\\\",\\\"validation\\\"]],[28,[37,1],[\\\"adCampaigns.properties.textThanksInfo\\\"],null],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,7],[[30,0,[\\\"onChangeFormData\\\"]],\\\"textThanksTitle\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@infoMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@textarea\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"adCampaigns.properties.textThanks\\\"],null],[30,0,[\\\"adCreativeChangeset\\\",\\\"form\\\",\\\"textThanks\\\"]],[30,0,[\\\"adCreativeChangeset\\\",\\\"error\\\",\\\"form\\\",\\\"textThanks\\\",\\\"validation\\\"]],[28,[37,1],[\\\"adCampaigns.properties.textThanksInfo\\\"],null],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],true,[28,[37,7],[[30,0,[\\\"onChangeFormData\\\"]],\\\"textThanks\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"detail\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column pt4\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-lg pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"socialCampaigns.socialCampaign.campaigns.columns.targetAudience\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"socialCampaigns.socialCampaign.campaigns.columns.targetAudience\\\"],null],[30,0,[\\\"meta\\\",\\\"targetAudiences\\\"]],[28,[37,4],[[28,[37,5],[[30,0,[\\\"changeset\\\",\\\"targetAudience\\\"]],[30,0,[\\\"meta\\\",\\\"targetAudiences\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"targetAudience\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,7],[[30,0,[\\\"selectProperty\\\"]],\\\"targetAudience\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,5,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,6]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,6,[\\\"label\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[5,6]]]]],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"adCampaigns.leadAds.language\\\"],null],[30,0,[\\\"meta\\\",\\\"languages\\\"]],[28,[37,4],[[28,[37,5],[[30,0,[\\\"changeset\\\",\\\"language\\\"]],[30,0,[\\\"meta\\\",\\\"languages\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"language\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,7],[[30,0,[\\\"selectProperty\\\"]],\\\"language\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,7,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,8]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,8,[\\\"label\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[7,8]]]]],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,0],[14,0,\\\"font-lg pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"adCampaigns.properties.timespan\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@classNames\\\",\\\"@dateLabel\\\",\\\"@minDate\\\",\\\"@initialDate\\\",\\\"@dateErrorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[\\\"flex-row\\\",[28,[37,1],[\\\"socialCampaigns.socialCampaign.campaigns.detail.startDate\\\"],null],[30,0,[\\\"minDate\\\"]],[30,0,[\\\"changeset\\\",\\\"startDate\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"startDate\\\",\\\"validation\\\"]],[30,0,[\\\"isDateTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,7],[[30,0,[\\\"onChangeDate\\\"]],\\\"startDate\\\"],null]]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"changeset\\\",\\\"unlimitedDuration\\\"]]],[[[1,\\\"        \\\"],[8,[39,8],null,[[\\\"@classNames\\\",\\\"@initialDate\\\",\\\"@dateLabel\\\",\\\"@minDate\\\",\\\"@dateErrorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[\\\"flex-row\\\",[30,0,[\\\"changeset\\\",\\\"endDate\\\"]],[28,[37,1],[\\\"socialCampaigns.socialCampaign.campaigns.detail.endDate\\\"],null],[30,0,[\\\"minEndDate\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"endDate\\\",\\\"validation\\\"]],[30,0,[\\\"isDateTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,7],[[30,0,[\\\"onChangeDate\\\"]],\\\"endDate\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"flex items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\",\\\"@isReadOnly\\\",\\\"@class\\\"],[[28,[37,1],[\\\"adCampaigns.properties.unlimitedDuration.title\\\"],null],[30,0,[\\\"changeset\\\",\\\"unlimitedDuration\\\"]],[30,0,[\\\"onChangeUnlimitedDuration\\\"]],[28,[37,11],[[30,0,[\\\"isReadOnly\\\"]],[28,[37,12],[[30,0,[\\\"budgetChangeset\\\",\\\"type\\\"]],\\\"lifetime\\\"],null]],null],\\\"ml0 mr1 mv05\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,13],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,9,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,14],[\\\"info\\\"],[[\\\"class\\\"],[\\\"secondary\\\"]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,9,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"adCampaigns.properties.unlimitedDuration.description\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[9]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-lg pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"adCampaigns.properties.budget\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"changeset\\\",\\\"hasBeenPublished\\\"]],[[[1,\\\"        \\\"],[8,[39,13],null,[[\\\"@classNames\\\"],[\\\"w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,10,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"adCampaigns.properties.budgetType\\\"],null],[28,[37,4],[[28,[37,5],[[30,0,[\\\"budgetChangeset\\\",\\\"type\\\"]],[30,0,[\\\"meta\\\",\\\"budgetTypes\\\"]]],null],\\\"label\\\"],null],true]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,10,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"adCampaigns.leadAds.helperText.budgetType\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[10]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,3],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"adCampaigns.properties.budgetType\\\"],null],[30,0,[\\\"meta\\\",\\\"budgetTypes\\\"]],[28,[37,4],[[28,[37,5],[[30,0,[\\\"budgetChangeset\\\",\\\"type\\\"]],[30,0,[\\\"meta\\\",\\\"budgetTypes\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"budgetChangeset\\\",\\\"error\\\",\\\"type\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"onChangeBudgetType\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,11,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,12]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,12,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[11,12]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@type\\\"],[[28,[37,1],[\\\"adCampaigns.properties.budget\\\"],null],[30,0,[\\\"budgetChangeset\\\",\\\"amount\\\"]],[30,0,[\\\"onChangeBudget\\\"]],[30,0,[\\\"budgetChangeset\\\",\\\"error\\\",\\\"amount\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],\\\"number\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,13,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,16],[\\\"EUR\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[13]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[28,[37,12],[[30,0,[\\\"budgetChangeset\\\",\\\"type\\\"]],\\\"lifetime\\\"],null],[30,0,[\\\"dailySpendingAmount\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex items-center justify-between mb1\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"secondary font-sm\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"adCampaigns.leadAds.edit.dailySpend\\\"],[[\\\"dailySpend\\\"],[[28,[37,18],[[30,0,[\\\"dailySpendingAmount\\\"]],\\\"EUR\\\",[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],2,2,1],null]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,13],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,14,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,14],[\\\"info\\\"],[[\\\"class\\\"],[\\\"secondary\\\"]]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,14,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"adCampaigns.leadAds.edit.dailySpendDescription\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[14]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"font-lg pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"adCampaigns.properties.postfix\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"socialCampaigns.socialCampaign.campaigns.detail.campaignPostfix\\\"],null],[30,0,[\\\"changeset\\\",\\\"campaignPostfix\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"campaignPostfix\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[8,[39,19],null,[[\\\"@onClose\\\",\\\"@onAddMedium\\\"],[[30,0,[\\\"closeMultimedia\\\"]],[30,0,[\\\"onAddMedium\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[46,[28,[37,21],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[8,[39,22],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChangesDialog\\\"]],[30,0,[\\\"discardChanges\\\"]]]],null]],[\\\"view\\\",\\\"nav\\\",\\\"option\\\",\\\"item\\\",\\\"option\\\",\\\"item\\\",\\\"option\\\",\\\"item\\\",\\\"pop\\\",\\\"pop\\\",\\\"option\\\",\\\"item\\\",\\\"input\\\",\\\"pop\\\"],false,[\\\"ui-form-view\\\",\\\"t\\\",\\\"ui-input\\\",\\\"ui-select\\\",\\\"get\\\",\\\"array-find\\\",\\\"mm-resource-gallery\\\",\\\"fn\\\",\\\"ui-datetime-picker\\\",\\\"unless\\\",\\\"ui-switch\\\",\\\"or\\\",\\\"eq\\\",\\\"ui-popover\\\",\\\"svg-jar\\\",\\\"if\\\",\\\"currency-symbol\\\",\\\"and\\\",\\\"ui-format-currency\\\",\\\"mm-multimedia-overlay\\\",\\\"component\\\",\\\"-outlet\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad/lead-ads/lead-ad/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"u/09o+uD\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@class\\\",\\\"@detailRoute\\\",\\\"@theme\\\",\\\"@isWide\\\"],[\\\"campaigns__list\\\",[52,[30,0,[\\\"isAdsRoute\\\"]],\\\"instance.campaigns.ad.tiktok-lead-ads.index.lead-ad.index\\\",\\\"instance.campaigns.ad.tiktok-lead-ads.depictions.index.depiction.index\\\"],\\\"grey\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,[[\\\"@breadcrumbs\\\",\\\"@hasBreadcrumbs\\\"],[[28,[37,2],null,[[\\\"currentRouteNameText\\\",\\\"currentRouteName\\\",\\\"rootName\\\"],[[30,0,[\\\"model\\\",\\\"campaign\\\",\\\"title\\\"]],\\\"tiktok-lead-ads\\\",\\\"campaigns\\\"]]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"campaign\\\",\\\"configurations\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[28,[37,3],[\\\"global.actions.configure\\\"],null],\\\"settings\\\",[30,0,[\\\"toggleDrawer\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"intro\\\"]],null,[[\\\"@hasBreadcrumbs\\\",\\\"@breadcrumbs\\\",\\\"@size\\\"],[true,[28,[37,2],null,[[\\\"currentRouteNameText\\\",\\\"currentRouteName\\\",\\\"rootName\\\",\\\"maxCount\\\"],[[30,0,[\\\"model\\\",\\\"campaign\\\",\\\"title\\\"]],\\\"tiktok-lead-ads\\\",\\\"campaigns\\\",3]]],\\\"xl\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,4],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,3,[\\\"header\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"tab\\\"]],null,[[\\\"@routePath\\\",\\\"@tabName\\\"],[\\\"instance.campaigns.ad.tiktok-lead-ads.index\\\",[28,[37,3],[\\\"adCampaigns.tiktokLeadAds.tabs.ads\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"tab\\\"]],null,[[\\\"@routePath\\\",\\\"@tabName\\\"],[\\\"instance.campaigns.ad.tiktok-lead-ads.depictions\\\",[28,[37,3],[\\\"adCampaigns.tiktokLeadAds.tabs.depictions\\\"],null]]],null],[1,\\\"\\\\n      \\\"]],[4]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@stretch\\\"],[true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,3,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"flex flex-column\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[46,[28,[37,6],null,null],null,null,null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isCreateAdDialog\\\"]],[[[1,\\\"          \\\"],[8,[39,7],null,[[\\\"@title\\\",\\\"@filterName\\\",\\\"@nameProperty\\\",\\\"@adapterOptions\\\",\\\"@model\\\",\\\"@onClose\\\"],[[28,[37,3],[\\\"adCampaigns.advertisements.edit.title.tiktokLeadAd\\\"],null],\\\"tiktok-lead-ads\\\",\\\"label\\\",[28,[37,2],null,[[\\\"campaignId\\\",\\\"type\\\"],[[30,0,[\\\"model\\\",\\\"campaign\\\",\\\"id\\\"]],\\\"tiktok-lead-ads\\\"]]],[30,0,[\\\"activeModel\\\"]],[30,0,[\\\"openAdDetail\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isCreateDepictionDialog\\\"]],[[[1,\\\"          \\\"],[8,[39,7],null,[[\\\"@title\\\",\\\"@filterName\\\",\\\"@nameProperty\\\",\\\"@onClose\\\",\\\"@adapterOptions\\\",\\\"@model\\\"],[[28,[37,3],[\\\"adCampaigns.tiktokLeadAds.depiction.title\\\"],null],\\\"depiction\\\",\\\"name\\\",[30,0,[\\\"openDepictionEdit\\\"]],[28,[37,2],null,[[\\\"campaignId\\\",\\\"type\\\"],[[30,0,[\\\"model\\\",\\\"campaign\\\",\\\"id\\\"]],\\\"tiktok-lead-ads\\\"]]],[30,0,[\\\"activeModel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[52,[30,0,[\\\"isAdsRoute\\\"]],[30,0,[\\\"openCreateAdDialog\\\"]],[30,0,[\\\"openCreateDepictionDialog\\\"]]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,10],null,[[\\\"@stateKey\\\",\\\"@onClose\\\",\\\"@model\\\"],[[30,0,[\\\"stateKey\\\"]],[30,0,[\\\"toggleDrawer\\\"]],[30,0,[\\\"model\\\",\\\"campaign\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[46,[28,[37,6],[\\\"detail\\\"],null],null,null,null]],[\\\"view\\\",\\\"nav\\\",\\\"tabs\\\",\\\"header\\\"],false,[\\\"ui-content-views\\\",\\\"if\\\",\\\"hash\\\",\\\"t\\\",\\\"ui-routable-tabs\\\",\\\"component\\\",\\\"-outlet\\\",\\\"amc-campaign/ads/advertisements/create-dialog\\\",\\\"unless\\\",\\\"ui-button\\\",\\\"amc-campaign/ads/configurations-navdrawer\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/depictions\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"K9K4NLzX\",\n    \"block\": \"[[[10,0],[14,0,\\\"center\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,0],null,[[\\\"@items\\\",\\\"@hasMobileSpacing\\\",\\\"@isLoading\\\",\\\"@classNames\\\"],[[30,0,[\\\"formattedDepictions\\\"]],true,[30,0,[\\\"isLoading\\\"]],\\\"pt2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"item\\\"]],null,[[\\\"@title\\\",\\\"@onClick\\\"],[[30,2,[\\\"name\\\"]],[28,[37,1],[[30,0,[\\\"openDetail\\\"]],[30,2,[\\\"id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,3,[\\\"thumbnail\\\"]],null,[[\\\"@src\\\",\\\"@alt\\\"],[[52,[30,2,[\\\"hasImage\\\"]],[28,[37,3],[[30,2,[\\\"image\\\"]],[28,[37,4],null,[[\\\"size\\\"],[\\\"72x72\\\"]]]],null]],[30,2,[\\\"title\\\"]]]],null],[1,\\\"\\\\n      \\\"],[8,[30,3,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"        \\\"],[8,[30,3,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,6],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,4,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,7],[\\\"global.actions.rename\\\"],null],[28,[37,1],[[30,0,[\\\"renameDepiction\\\"]],[30,2,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[30,4,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,7],[\\\"global.actions.delete\\\"],null],true,[28,[37,1],[[30,0,[\\\"delete\\\"]],[30,2,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n          \\\"]],[4]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,1,[\\\"empty\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex justify-center items-center font-sm secondary pt3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex flex-column justify-center items-center mw5\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"reports.valueAdded.empty\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[1,2]]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isRenameDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@onClose\\\",\\\"@title\\\",\\\"@filterName\\\",\\\"@nameProperty\\\",\\\"@adapterOptions\\\",\\\"@model\\\"],[[28,[37,1],[[28,[37,10],[[30,0,[\\\"isRenameDialog\\\"]]],null],false],null],[28,[37,7],[\\\"adCampaigns.tiktokLeadAds.depiction.title\\\"],null],\\\"depiction\\\",\\\"name\\\",[28,[37,4],null,[[\\\"campaignId\\\",\\\"type\\\"],[[30,0,[\\\"modelId\\\"]],\\\"tiktok-lead-ads\\\"]]],[30,0,[\\\"selectedDepictionModel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"menu\\\"],false,[\\\"ui-list\\\",\\\"fn\\\",\\\"if\\\",\\\"mm-medium-url-options\\\",\\\"hash\\\",\\\"unless\\\",\\\"ui-item-menu\\\",\\\"t\\\",\\\"svg-jar\\\",\\\"amc-campaign/ads/advertisements/create-dialog\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/depictions.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"v+AgKNhP\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,[[\\\"@onClose\\\"],[[30,0,[\\\"back\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"      \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"global.actions.rename\\\"],null],[28,[37,3],[[28,[37,4],[[30,0,[\\\"isRenameDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"global.actions.delete\\\"],null],true,[30,0,[\\\"delete\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@selected\\\",\\\"@languages\\\",\\\"@publishedLanguages\\\",\\\"@availableLanguages\\\",\\\"@defaultLanguage\\\",\\\"@hideState\\\",\\\"@hideLanguageActions\\\",\\\"@onSelect\\\"],[[30,0,[\\\"selectedLanguage\\\"]],[30,0,[\\\"model\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"model\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"model\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"defaultLanguage\\\"]],true,true,[28,[37,6],[[30,0,[\\\"changeLanguage\\\"]]],null]]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-sm secondary pb1 pt3\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,2],[\\\"adCampaigns.tiktokLeadAds.type\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex items-center font-xl primary pb3\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"model\\\",\\\"name\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"variants\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@classNames\\\"],[\\\"mb3 mt1\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,9],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,2],[\\\"adCampaigns.tiktokLeadAds.depiction.textVariants.label\\\"],null],[30,0,[\\\"textVariantsInfo\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"videos\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,2],[\\\"adCampaigns.tiktokLeadAds.depiction.videoVariants.label\\\"],null],[30,0,[\\\"videoVariantsInfo\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"changeLanguage\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[\\\"mt3\\\",2,2,1,40,16]],null],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[2,2,1,450,16]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"variants\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[8,[39,11],null,[[\\\"@depiction\\\",\\\"@hideDepictionSelect\\\",\\\"@mediaKey\\\",\\\"@onlyVideos\\\",\\\"@onlyPortrait\\\"],[[30,0,[\\\"model\\\"]],true,\\\"videos\\\",true,true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pv4 mv4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,12],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,2],[\\\"adCampaigns.tiktokLeadAds.depiction.empty\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"edit\\\",true,[30,0,[\\\"openEdit\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isRenameDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@onClose\\\",\\\"@title\\\",\\\"@filterName\\\",\\\"@nameProperty\\\",\\\"@adapterOptions\\\",\\\"@model\\\"],[[28,[37,3],[[28,[37,4],[[30,0,[\\\"isRenameDialog\\\"]]],null],false],null],[28,[37,2],[\\\"adCampaigns.tiktokLeadAds.depiction.title\\\"],null],\\\"depiction\\\",\\\"name\\\",[28,[37,15],null,[[\\\"campaignId\\\",\\\"type\\\"],[[30,0,[\\\"campaignId\\\"]],\\\"content-ads\\\"]]],[30,0,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"view\\\",\\\"nav\\\"],false,[\\\"ui-content-views\\\",\\\"unless\\\",\\\"t\\\",\\\"fn\\\",\\\"mut\\\",\\\"ui-lang-select\\\",\\\"perform\\\",\\\"if\\\",\\\"ui-content-info\\\",\\\"ui-info-item\\\",\\\"ui-skeleton\\\",\\\"amc-campaign/ads/advertisements/depiction-preview\\\",\\\"svg-jar\\\",\\\"ui-button\\\",\\\"amc-campaign/ads/advertisements/create-dialog\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction/edit\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"I5Cq+Hvc\",\n    \"block\": \"[[[8,[39,0],[[4,[38,1],[[28,[37,2],[[30,0,[\\\"setupTikTokSdk\\\"]]],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,[[\\\"@onClose\\\",\\\"@isMenuHidden\\\"],[[30,0,[\\\"onBack\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"button\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,3],[\\\"global.actions.save\\\"],null],\\\"save\\\",[30,0,[\\\"isReadOnly\\\"]],[28,[37,4],[[30,0,[\\\"save\\\"]],false],null]]],null],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"main\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column pt4\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@selected\\\",\\\"@languages\\\",\\\"@publishedLanguages\\\",\\\"@availableLanguages\\\",\\\"@defaultLanguage\\\",\\\"@hideState\\\",\\\"@hideLanguageActions\\\",\\\"@onSelect\\\",\\\"@addLanguage\\\",\\\"@removeLanguage\\\"],[[30,0,[\\\"changeset\\\",\\\"language\\\"]],[52,[30,0,[\\\"changeset\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"changeset\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]]],[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"defaultLanguage\\\"]],true,[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"changeLanguage\\\"]],[30,0,[\\\"addLanguage\\\"]],[30,0,[\\\"removeLanguage\\\"]]]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm secondary pb1 pt2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"adCampaigns.tiktokLeadAds.type\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-xl primary mb4 pb1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"name\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"setupChangeset\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,8],null,[[\\\"@classNames\\\",\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[\\\"mb2\\\",4,4,2,34,12]],null],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@classNames\\\",\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[\\\"mv1\\\",1,1,1,80,96]],null],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@classNames\\\",\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[\\\"mt2\\\",1,1,1,40,80]],null],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,1,1,180,8]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"pb2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@numberOfVariants\\\",\\\"@activeVariant\\\",\\\"@isReadOnly\\\",\\\"@onAddVariant\\\",\\\"@onRemoveVariant\\\",\\\"@onSelectVariant\\\"],[[30,0,[\\\"numberOfVariants\\\"]],[30,0,[\\\"activeVariant\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"onAddVariant\\\"]],[30,0,[\\\"onRemoveVariant\\\"]],[30,0,[\\\"onSelectVariant\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,10],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\",\\\"@maxlength\\\",\\\"@textarea\\\"],[\\\"bb b--black-10 pb4\\\",[28,[37,3],[\\\"adCampaigns.tiktokLeadAds.depiction.text\\\"],null],[30,0,[\\\"changeset\\\",\\\"text\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"text\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,4],[[28,[37,11],[[30,0,[\\\"changeset\\\",\\\"text\\\"]]],null]],null],100,true]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,12],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@options\\\",\\\"@valueKey\\\",\\\"@selected\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[\\\"pt4\\\",[28,[37,3],[\\\"adCampaigns.tiktokLeadAds.depiction.forms\\\"],null],[30,0,[\\\"tikTokForms\\\"]],\\\"id\\\",[28,[37,13],[[30,0,[\\\"changeset\\\",\\\"page\\\"]],\\\"name\\\"],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"page\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,4],[[28,[37,11],[[30,0,[\\\"changeset\\\",\\\"page\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"top\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,14],null,[[\\\"@classNames\\\",\\\"@isActive\\\",\\\"@onClick\\\"],[\\\"pv2 ph1 font-sm secondary\\\",false,[30,0,[\\\"createNewForm\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,15],[\\\"plus\\\"],[[\\\"class\\\"],[\\\"mr1\\\"]]]],[1,\\\" \\\"],[1,[28,[35,3],[\\\"adCampaigns.tiktokLeadAds.depiction.addForm\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"bb b--secondary-10 mv05\\\"],[12],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[3,4]]]]],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"flex-column pt3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary mb05\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"adCampaigns.tiktokLeadAds.depiction.properties.videos\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"videos\\\"]],[[[1,\\\"            \\\"],[8,[39,16],null,[[\\\"@class\\\",\\\"@value\\\",\\\"@state\\\"],[\\\"mb1\\\",[28,[37,13],[[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"videos\\\"]],\\\"validation\\\"],null],\\\"error\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@isImageAddable\\\",\\\"@isVideoAddable\\\",\\\"@resources\\\",\\\"@onDropzoneClick\\\",\\\"@onResourceRemove\\\",\\\"@onResourceEdit\\\",\\\"@isReadOnly\\\",\\\"@mediumType\\\"],[false,true,[30,0,[\\\"changeset\\\",\\\"videos\\\"]],[28,[37,4],[[30,0,[\\\"openMultimedia\\\"]],\\\"videos\\\"],null],[28,[37,4],[[30,0,[\\\"onResourceRemove\\\"]],\\\"videos\\\"],null],[28,[37,4],[[30,0,[\\\"onResourceEdit\\\"]],\\\"videos\\\"],null],[30,0,[\\\"isReadOnly\\\"]],\\\"video\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"detail\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column pt4\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[[28,[37,3],[\\\"adCampaigns.tiktokLeadAds.depiction.properties.postfix\\\"],null],[30,0,[\\\"changeset\\\",\\\"postfix\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"postfix\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,18],null,[[\\\"@onClose\\\",\\\"@onAddMedium\\\"],[[30,0,[\\\"closeMultimedia\\\"]],[30,0,[\\\"onAddMedium\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[46,[28,[37,20],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,21],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChangesDialog\\\"]],[30,0,[\\\"confirmDiscard\\\"]]]],null]],[\\\"view\\\",\\\"nav\\\",\\\"option\\\",\\\"item\\\"],false,[\\\"ui-form-view\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"t\\\",\\\"fn\\\",\\\"ui-lang-select\\\",\\\"if\\\",\\\"or\\\",\\\"ui-skeleton\\\",\\\"amc-campaign/ads/advertisements/depiction-variants\\\",\\\"ui-input\\\",\\\"mut\\\",\\\"ui-select\\\",\\\"get\\\",\\\"ui-select-option\\\",\\\"svg-jar\\\",\\\"ui-form-message\\\",\\\"mm-resource-gallery\\\",\\\"mm-multimedia-overlay\\\",\\\"component\\\",\\\"-outlet\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/depictions/index/depiction/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"7DOmmhAg\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@key\\\",\\\"@modelName\\\"],[\\\"tiktok-lead-ads\\\",\\\"advertisement\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mv3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[10,1,64,4]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"isEmpty\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"adCampaigns.tiktokLeadAds.empty\\\"],[[\\\"htmlSafe\\\"],[true]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@isReadOnly\\\",\\\"@archiveAction\\\",\\\"@renameAction\\\",\\\"@meta\\\",\\\"@type\\\"],[[30,1,[\\\"data\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"onArchive\\\"]],[30,0,[\\\"openRenameDialog\\\"]],[30,0,[\\\"model\\\",\\\"meta\\\"]],\\\"tiktokLeadAds\\\"]],null],[1,\\\"\\\\n  \\\"]],[]]]],[]]]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isRenameAdDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@onClose\\\",\\\"@title\\\",\\\"@filterName\\\",\\\"@nameProperty\\\",\\\"@adapterOptions\\\",\\\"@model\\\"],[[28,[37,7],[[28,[37,8],[[30,0,[\\\"isRenameAdDialog\\\"]]],null],false],null],[28,[37,4],[\\\"adCampaigns.advertisements.edit.title.tiktokLeadAd\\\"],null],\\\"tiktok-lead-ads\\\",\\\"label\\\",[28,[37,9],null,[[\\\"campaignId\\\",\\\"type\\\"],[[30,0,[\\\"model\\\",\\\"campaign\\\",\\\"id\\\"]],\\\"tiktok-lead-ads\\\"]]],[30,0,[\\\"activeModel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"filter\\\"],false,[\\\"ui-filterable\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"svg-jar\\\",\\\"t\\\",\\\"amc-campaign/ads/list-view\\\",\\\"amc-campaign/ads/advertisements/create-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/index/lead-ad\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"U9AFlW+x\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\"],[[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"title\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],[[4,[38,1],[[30,0,[\\\"onDidInsert\\\"]]],null]],[[\\\"@onClose\\\"],[[30,0,[\\\"back\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"isPublic\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"pause\\\",[28,[37,4],[\\\"global.actions.pause\\\"],null],[30,0,[\\\"isLoading\\\"]],[28,[37,5],[[30,0,[\\\"modelAction\\\"]],\\\"pause\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"isPaused\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"video\\\",[28,[37,4],[\\\"global.actions.continue\\\"],null],[30,0,[\\\"isLoading\\\"]],[28,[37,5],[[30,0,[\\\"modelAction\\\"]],\\\"continue\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"publish\\\",[28,[37,4],[\\\"global.actions.unpublish\\\"],null],[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"onPublish\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"isDraft\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"publish\\\",[28,[37,4],[\\\"global.actions.publish\\\"],null],[28,[37,6],[[28,[37,7],[[30,0,[\\\"isValid\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null],[28,[37,5],[[28,[37,8],[[30,0,[\\\"isPublishDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"isExpired\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[\\\"publish\\\",[28,[37,4],[\\\"global.actions.unpublish\\\"],null],[28,[37,6],[[28,[37,7],[[30,0,[\\\"isValid\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null],[30,0,[\\\"onPublish\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"isActive\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,4],[\\\"global.actions.rename\\\"],null],[28,[37,6],[[30,0,[\\\"isActionsDisabled\\\"]],[30,0,[\\\"isLoading\\\"]]],null],[30,0,[\\\"openRenameDialog\\\"]]]],null],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,4],[\\\"global.actions.archive\\\"],null],[28,[37,6],[[30,0,[\\\"isActionsDisabled\\\"]],[30,0,[\\\"isLoading\\\"]]],null],[30,0,[\\\"onArchive\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,9],[[24,0,\\\"ohidden\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[6,[39,10],[[30,0,[\\\"showPendingDepictionValidations\\\"]]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"        \\\"],[8,[39,11],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"mt1\\\",\\\"warning-state\\\",[28,[37,4],[\\\"adCampaigns.tiktokLeadAds.validationNotification\\\"],[[\\\"htmlSafe\\\"],[true]]]]],null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[6,[39,10],[[28,[37,12],[[30,0,[\\\"showUpdateNotification\\\"]],[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"hasBeenPublished\\\"]]],null]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"        \\\"],[8,[39,11],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@buttonText\\\",\\\"@onButtonClick\\\"],[\\\"mt1\\\",\\\"reload\\\",[28,[37,4],[\\\"adCampaigns.tiktokLeadAds.updateNotification\\\"],[[\\\"htmlSafe\\\"],[true]]],[28,[37,4],[\\\"global.actions.update\\\"],null],[28,[37,5],[[28,[37,8],[[30,0,[\\\"isUpdateDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[6,[39,10],[[28,[37,12],[[30,0,[\\\"showTargetGroupUpdateNotification\\\"]],[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"hasBeenPublished\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"        \\\"],[8,[39,11],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@buttonText\\\",\\\"@onButtonClick\\\"],[\\\"mt1\\\",\\\"reload\\\",[28,[37,4],[\\\"adCampaigns.tiktokLeadAds.updateTargetGroupNotification\\\"],[[\\\"htmlSafe\\\"],[true]]],[28,[37,4],[\\\"global.actions.update\\\"],null],[28,[37,5],[[28,[37,8],[[30,0,[\\\"isUpdateTargetGroupDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[6,[39,10],[[30,0,[\\\"showNotification\\\"]]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@title\\\",\\\"@buttonText\\\",\\\"@onButtonClick\\\"],[\\\"edit\\\",[30,0,[\\\"validations\\\",\\\"firstObject\\\",\\\"message\\\"]],[52,[30,0,[\\\"validations\\\",\\\"firstObject\\\",\\\"action\\\"]],[28,[37,4],[[28,[37,13],[\\\"global.actions.\\\",[30,0,[\\\"validations\\\",\\\"firstObject\\\",\\\"action\\\"]]],null]],null]],[30,0,[\\\"openEdit\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"pv3 dib\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,14],null,[[\\\"@state\\\"],[[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"publishedState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@state\\\"],[[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"publishedState\\\"]]]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"font-sm mr1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[[28,[37,13],[\\\"adCampaigns.states.\\\",[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"state\\\"]]],null]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-sm secondary pt1\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"adCampaigns.tiktokLeadAds.type\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex items-center font-xl primary pb3\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"label\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showContentInfo\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@classNames\\\"],[\\\"mb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"identity\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,4],[\\\"adCampaigns.tiktokLeadAds.properties.identity\\\"],null],[30,0,[\\\"identity\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"targetGroup\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,4],[\\\"adCampaigns.tiktokLeadAds.properties.targetGroup\\\"],null],[30,0,[\\\"targetGroup\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"language\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,4],[\\\"adCampaigns.leadAds.language\\\"],null],[28,[37,4],[[28,[37,13],[\\\"global.languages.\\\",[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"language\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"targetLanguages\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,4],[\\\"socialCampaigns.socialCampaign.campaigns.columns.languages\\\"],null],[30,0,[\\\"targetLanguages\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"startDate\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,4],[\\\"socialCampaigns.socialCampaign.campaigns.detail.startDate\\\"],null],[28,[37,13],[[28,[37,18],[[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"startDate\\\"]]],null],\\\", \\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"startDate\\\"]]],[[\\\"format\\\"],[\\\"hhmm\\\"]]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"endDate\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,4],[\\\"socialCampaigns.socialCampaign.campaigns.detail.endDate\\\"],null],[28,[37,13],[[28,[37,18],[[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"endDate\\\"]]],null],\\\", \\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"endDate\\\"]]],[[\\\"format\\\"],[\\\"hhmm\\\"]]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"budgetSpend\\\",\\\"value\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,4],[\\\"socialCampaigns.socialCampaign.campaigns.columns.budgetSpend\\\"],null],[28,[37,20],[[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"budgetSpend\\\",\\\"value\\\"]],\\\"EUR\\\",[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],2,2,1],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"budget\\\",\\\"amount\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,4],[[28,[37,13],[\\\"socialCampaigns.socialCampaign.campaigns.columns.totalBudget.\\\",[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"budget\\\",\\\"type\\\"]]],null]],null],[28,[37,20],[[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"budget\\\",\\\"amount\\\"]],\\\"EUR\\\",[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],2,2,1],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,12],[[30,0,[\\\"campaignOptimizationEvent\\\"]],[28,[37,21],[[30,0,[\\\"campaignGoal\\\"]],\\\"conversions\\\"],null]],null],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,4],[\\\"adCampaigns.properties.optimizationEvent\\\"],null],[30,0,[\\\"campaignOptimizationEvent\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"campaignPostfix\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,4],[\\\"adCampaigns.leadAds.campaignPostfix\\\"],null],[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"campaignPostfix\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"utmParameters\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@label\\\"],[[28,[37,4],[\\\"adCampaigns.leadAds.utmParameters\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"clipboard\\\",[28,[37,4],[\\\"global.actions.copy\\\"],null],[28,[37,5],[[30,0,[\\\"copyToClipboard\\\"]],[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"utmParameters\\\"]]],null]]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex items-center font-lg primary pb2 pt3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"adCampaigns.tiktokLeadAds.preview.title\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedDepictions\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[8,[39,23],null,[[\\\"@depictions\\\",\\\"@mediaKey\\\",\\\"@onlyVideos\\\",\\\"@onlyPortrait\\\"],[[30,0,[\\\"selectedDepictions\\\"]],\\\"videos\\\",true,true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pv4 mv4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,24],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"adCampaigns.tiktokLeadAds.preview.empty\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,25],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"edit\\\",true,[30,0,[\\\"openEdit\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isPublishDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@changeset\\\",\\\"@intlBaseKey\\\",\\\"@validationProperties\\\",\\\"@onClose\\\",\\\"@onPublish\\\"],[[30,0,[\\\"publishChangeset\\\"]],\\\"adCampaigns.tiktokLeadAds.publishDialog\\\",[30,0,[\\\"validationProperties\\\"]],[28,[37,5],[[28,[37,8],[[30,0,[\\\"isPublishDialog\\\"]]],null],false],null],[30,0,[\\\"onPublish\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRenameDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@onClose\\\",\\\"@title\\\",\\\"@filterName\\\",\\\"@nameProperty\\\",\\\"@adapterOptions\\\",\\\"@model\\\"],[[28,[37,5],[[28,[37,8],[[30,0,[\\\"isRenameDialog\\\"]]],null],false],null],[28,[37,4],[\\\"adCampaigns.advertisements.edit.title.tiktokLeadAd\\\"],null],\\\"tiktok-lead-ads\\\",\\\"label\\\",[28,[37,28],null,[[\\\"campaignId\\\",\\\"type\\\"],[[30,0,[\\\"campaignId\\\"]],\\\"tiktok-lead-ads\\\"]]],[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isUpdateDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@depictionUpdates\\\",\\\"@adapterOptions\\\",\\\"@model\\\",\\\"@depictionRoute\\\",\\\"@onClose\\\",\\\"@onUpdate\\\"],[[30,0,[\\\"pendingDepictionUpdates\\\"]],[30,0,[\\\"adapterOptions\\\"]],[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\"]],\\\"instance.campaigns.ad.tiktok-lead-ads.depictions.index.depiction.index\\\",[28,[37,5],[[28,[37,8],[[30,0,[\\\"isUpdateDialog\\\"]]],null],false],null],[30,0,[\\\"onUpdate\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isUpdateTargetGroupDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@updates\\\",\\\"@adapterOptions\\\",\\\"@model\\\",\\\"@onClose\\\",\\\"@onUpdate\\\"],[[30,0,[\\\"pendingTargetGroupUpdates\\\"]],[30,0,[\\\"adapterOptions\\\"]],[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\"]],[28,[37,5],[[28,[37,8],[[30,0,[\\\"isUpdateTargetGroupDialog\\\"]]],null],false],null],[30,0,[\\\"onUpdate\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"view\\\",\\\"nav\\\"],false,[\\\"ui-content-views\\\",\\\"did-insert\\\",\\\"unless\\\",\\\"if\\\",\\\"t\\\",\\\"fn\\\",\\\"or\\\",\\\"not\\\",\\\"mut\\\",\\\"animated-container\\\",\\\"animated-if\\\",\\\"ui-inline-notification\\\",\\\"and\\\",\\\"concat\\\",\\\"ui-status-badge\\\",\\\"ui-status\\\",\\\"ui-content-info\\\",\\\"ui-info-item\\\",\\\"date-format\\\",\\\"format-time\\\",\\\"ui-format-currency\\\",\\\"equal\\\",\\\"ui-icon-button\\\",\\\"amc-campaign/ads/advertisements/depiction-preview\\\",\\\"svg-jar\\\",\\\"ui-button\\\",\\\"amc-campaign/ads/advertisements/publish-dialog\\\",\\\"amc-campaign/ads/advertisements/create-dialog\\\",\\\"hash\\\",\\\"amc-campaign/ads/advertisements/depiction-update-dialog\\\",\\\"amc-campaign/ads/advertisements/target-group-update-dialog\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/index/lead-ad.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/index/lead-ad/edit\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"DaOn98Iy\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,[[\\\"@onClose\\\",\\\"@isMenuHidden\\\"],[[30,0,[\\\"onBack\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"button\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.save\\\"],null],\\\"save\\\",[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"save\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"main\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"pt4\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm secondary pb1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"adCampaigns.tiktokLeadAds.type\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-xl primary mb4 pb1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"tiktokLeadAd\\\",\\\"label\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,2],null,[[\\\"@selected\\\",\\\"@languages\\\",\\\"@publishedLanguages\\\",\\\"@availableLanguages\\\",\\\"@defaultLanguage\\\",\\\"@hideState\\\",\\\"@hideLanguageActions\\\",\\\"@onSelect\\\"],[[30,0,[\\\"changeset\\\",\\\"language\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"defaultLanguage\\\"]],true,true,[30,0,[\\\"changeLanguage\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"depictions\\\"]],[[[1,\\\"        \\\"],[8,[39,4],null,[[\\\"@value\\\",\\\"@state\\\"],[[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"depictions\\\",\\\"validation\\\",\\\"firstObject\\\"]],\\\"error\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"hasDepictionError\\\"]],[[[1,\\\"        \\\"],[8,[39,4],null,[[\\\"@value\\\",\\\"@state\\\"],[[28,[37,1],[\\\"adCampaigns.tiktokLeadAds.edit.errors.depictionLanguageError\\\"],null],\\\"error\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@classNames\\\",\\\"@items\\\",\\\"@hasMobileSpacing\\\",\\\"@isLoading\\\"],[\\\"mt2\\\",[30,0,[\\\"formattedDepictions\\\"]],true,[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@title\\\",\\\"@classNames\\\"],[[30,4,[\\\"name\\\"]],[52,[30,4,[\\\"hasError\\\"]],\\\"ba b--red br1\\\",\\\"\\\"]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,5,[\\\"thumbnail\\\"]],null,[[\\\"@src\\\",\\\"@alt\\\"],[[28,[37,6],[[30,4,[\\\"image\\\"]],[28,[37,7],null,[[\\\"size\\\"],[\\\"72x72\\\"]]]],null],[30,4,[\\\"title\\\"]]]],null],[1,\\\"\\\\n          \\\"],[8,[30,5,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"            \\\"],[8,[30,5,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"flex items-center\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"removeDepiction\\\"]],[30,4,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,11],[\\\"delete\\\"],[[\\\"class\\\"],[\\\"red\\\"]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[5]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[30,3,[\\\"empty\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex justify-center items-center font-sm secondary pt3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex flex-column justify-center items-center mw5\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,11],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"adCampaigns.tiktokLeadAds.edit.depictionsEmpty\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[3,4]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"        \\\"],[8,[39,12],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"mt4\\\",\\\"plus\\\",[28,[37,1],[\\\"adCampaigns.tiktokLeadAds.edit.addDepiction\\\"],null],[28,[37,10],[[28,[37,13],[[30,0,[\\\"isAddDepictionDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"detail\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column pt4\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,14],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@valueKey\\\",\\\"@onChange\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"adCampaigns.tiktokLeadAds.properties.identity\\\"],null],[30,0,[\\\"meta\\\",\\\"identities\\\"]],[28,[37,15],[[28,[37,16],[[30,0,[\\\"changeset\\\",\\\"identity\\\"]],[30,0,[\\\"meta\\\",\\\"identities\\\"]],\\\"id\\\"],null],\\\"name\\\"],null],\\\"id\\\",[28,[37,10],[[30,0,[\\\"selectProperty\\\"]],\\\"identity\\\"],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"identity\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,6,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,7]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[6,7]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,14],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@valueKey\\\",\\\"@onChange\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"adCampaigns.tiktokLeadAds.properties.targetGroup\\\"],null],[30,0,[\\\"meta\\\",\\\"targetGroups\\\"]],[28,[37,15],[[28,[37,16],[[30,0,[\\\"changeset\\\",\\\"targetGroup\\\"]],[30,0,[\\\"meta\\\",\\\"targetGroups\\\"]],\\\"id\\\"],null],\\\"name\\\"],null],\\\"id\\\",[28,[37,10],[[30,0,[\\\"selectProperty\\\"]],\\\"targetGroup\\\"],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"targetGroup\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,8,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,9]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,9,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[8,9]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"changeset\\\",\\\"hasBeenPublished\\\"]],[[[1,\\\"        \\\"],[8,[39,17],null,[[\\\"@classNames\\\"],[\\\"w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,10,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"adCampaigns.tiktokLeadAds.properties.optimizationEvent\\\"],null],[28,[37,15],[[28,[37,16],[[30,0,[\\\"changeset\\\",\\\"optimizationEvent\\\"]],[30,0,[\\\"meta\\\",\\\"optimizationEvents\\\"]]],null],\\\"label\\\"],null],true]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,10,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"adCampaigns.tiktokLeadAds.helperText.optimizationEvent\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[10]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"adCampaigns.tiktokLeadAds.properties.optimizationEvent\\\"],null],[30,0,[\\\"meta\\\",\\\"optimizationEvents\\\"]],[28,[37,15],[[28,[37,16],[[30,0,[\\\"changeset\\\",\\\"optimizationEvent\\\"]],[30,0,[\\\"meta\\\",\\\"optimizationEvents\\\"]]],null],\\\"label\\\"],null],[28,[37,10],[[30,0,[\\\"selectProperty\\\"]],\\\"optimizationEvent\\\"],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"optimizationEvent\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,11,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,12]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,12,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[11,12]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-lg pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"adCampaigns.tiktokLeadAds.edit.timeFrame\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,19],null,[[\\\"@classNames\\\",\\\"@dateErrorMessage\\\",\\\"@dateLabel\\\",\\\"@minDate\\\",\\\"@initialDate\\\",\\\"@isTouched\\\",\\\"@onChange\\\",\\\"@isReadOnly\\\"],[\\\"flex-row\\\",[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"startDate\\\",\\\"validation\\\"]],[28,[37,1],[\\\"socialCampaigns.socialCampaign.campaigns.detail.startDate\\\"],null],[30,0,[\\\"minDate\\\"]],[30,0,[\\\"changeset\\\",\\\"startDate\\\"]],[30,0,[\\\"isDateTouched\\\"]],[28,[37,10],[[30,0,[\\\"onChangeDateTime\\\"]],\\\"startDate\\\"],null],[30,0,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,19],null,[[\\\"@classNames\\\",\\\"@dateErrorMessage\\\",\\\"@dateLabel\\\",\\\"@initialDate\\\",\\\"@minDate\\\",\\\"@isTouched\\\",\\\"@onChange\\\",\\\"@isReadOnly\\\"],[\\\"flex-row\\\",[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"endDate\\\",\\\"validation\\\"]],[28,[37,1],[\\\"socialCampaigns.socialCampaign.campaigns.detail.endDate\\\"],null],[30,0,[\\\"changeset\\\",\\\"endDate\\\"]],[30,0,[\\\"minEndDate\\\"]],[30,0,[\\\"isDateTouched\\\"]],[28,[37,10],[[30,0,[\\\"onChangeDateTime\\\"]],\\\"endDate\\\"],null],[30,0,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"font-lg pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"adCampaigns.properties.budget\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"changeset\\\",\\\"hasBeenPublished\\\"]],[[[1,\\\"        \\\"],[8,[39,17],null,[[\\\"@classNames\\\"],[\\\"w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,13,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"adCampaigns.tiktokLeadAds.properties.budgetType\\\"],null],[28,[37,15],[[28,[37,16],[[30,0,[\\\"changeset\\\",\\\"budget\\\",\\\"type\\\"]],[30,0,[\\\"meta\\\",\\\"budgetTypes\\\"]]],null],\\\"label\\\"],null],true]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,13,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"adCampaigns.tiktokLeadAds.helperText.budgetType\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[13]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"adCampaigns.tiktokLeadAds.properties.budgetType\\\"],null],[30,0,[\\\"meta\\\",\\\"budgetTypes\\\"]],[28,[37,15],[[28,[37,16],[[30,0,[\\\"changeset\\\",\\\"budget\\\",\\\"type\\\"]],[30,0,[\\\"meta\\\",\\\"budgetTypes\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"onChangeBudgetType\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"budget\\\",\\\"type\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,14,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,15]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,15,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[14,15]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\",\\\"@infoMessage\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@type\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"adCampaigns.properties.budget\\\"],null],[30,0,[\\\"changeset\\\",\\\"budget\\\",\\\"amount\\\"]],[30,0,[\\\"onChangeBudget\\\"]],[28,[37,1],[\\\"adCampaigns.tiktokLeadAds.helperText.minBudgetAmount\\\"],[[\\\"value\\\"],[[28,[37,20],[[30,0,[\\\"minBudget\\\"]]],[[\\\"currency\\\"],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]]]]]]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"budget\\\",\\\"amount\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],\\\"number\\\",[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,16,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,21],[\\\"EUR\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[16]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex items-center mt1 mb4\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,22],null,[[\\\"@class\\\",\\\"@value\\\",\\\"@label\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[\\\"ml0 mr1 mv05\\\",[30,0,[\\\"changeset\\\",\\\"timeLimited\\\"]],[28,[37,1],[\\\"adCampaigns.tiktokLeadAds.properties.timeLimited\\\"],null],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"toggleTimeLimited\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,23],[[24,0,\\\"ohidden\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[6,[39,24],[[30,0,[\\\"changeset\\\",\\\"timeLimited\\\"]]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"          \\\"],[8,[39,14],null,[[\\\"@label\\\",\\\"@isMultiSelect\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"adCampaigns.tiktokLeadAds.properties.days\\\"],null],true,[30,0,[\\\"selectableDays\\\"]],[30,0,[\\\"selectedDays\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"timeLimitation\\\",\\\"days\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"onDaysChange\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,17,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,18]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,18,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[17,18]]]]],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@minTime\\\",\\\"@maxTime\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@useChangeset\\\",\\\"@initialValue\\\",\\\"@errorMessage\\\",\\\"@onChange\\\"],[\\\"mr05\\\",[28,[37,1],[\\\"adCampaigns.tiktokLeadAds.properties.startTime\\\"],null],\\\"00:00\\\",\\\"23:59\\\",[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],false,[28,[37,26],[[30,0,[\\\"changeset\\\"]],\\\"timeLimitation.startTime\\\"],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"timeLimitation\\\",\\\"startTime\\\",\\\"validation\\\"]],[28,[37,10],[[30,0,[\\\"onChangeTime\\\"]],\\\"timeLimitation.startTime\\\"],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,25],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@minTime\\\",\\\"@maxTime\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@useChangeset\\\",\\\"@initialValue\\\",\\\"@errorMessage\\\",\\\"@onChange\\\"],[\\\"ml05\\\",[28,[37,1],[\\\"adCampaigns.tiktokLeadAds.properties.endTime\\\"],null],\\\"00:00\\\",\\\"23:59\\\",[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],false,[28,[37,26],[[30,0,[\\\"changeset\\\"]],\\\"timeLimitation.endTime\\\"],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"timeLimitation\\\",\\\"endTime\\\",\\\"validation\\\"]],[28,[37,10],[[30,0,[\\\"onChangeTime\\\"]],\\\"timeLimitation.endTime\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,27],[[30,0,[\\\"changeset\\\",\\\"budget\\\",\\\"type\\\"]],\\\"daily\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"font-md secondary\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"adCampaigns.tiktokLeadAds.helperText.budgetPerWeek\\\"],[[\\\"htmlSafe\\\",\\\"value\\\"],[true,[28,[37,28],[[30,0,[\\\"budgetPerWeek\\\"]],\\\"EUR\\\",[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],2,2,1],null]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-lg pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"adCampaigns.properties.postfix\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"socialCampaigns.socialCampaign.campaigns.detail.campaignPostfix\\\"],null],[30,0,[\\\"changeset\\\",\\\"campaignPostfix\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"campaignPostfix\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddDepictionDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@adapterOptions\\\",\\\"@depictions\\\",\\\"@initialSelected\\\",\\\"@onClose\\\",\\\"@onAdd\\\"],[[30,0,[\\\"adapterOptions\\\"]],[30,0,[\\\"depictions\\\"]],[30,0,[\\\"changeset\\\",\\\"depictions\\\"]],[28,[37,10],[[28,[37,13],[[30,0,[\\\"isAddDepictionDialog\\\"]]],null],false],null],[30,0,[\\\"addDepictions\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,30],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChangesDialog\\\"]],[30,0,[\\\"discardChanges\\\"]]]],null]],[\\\"view\\\",\\\"nav\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"option\\\",\\\"item\\\",\\\"option\\\",\\\"item\\\",\\\"pop\\\",\\\"option\\\",\\\"item\\\",\\\"pop\\\",\\\"option\\\",\\\"item\\\",\\\"input\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"ui-form-view\\\",\\\"t\\\",\\\"ui-lang-select\\\",\\\"if\\\",\\\"ui-form-message\\\",\\\"ui-list\\\",\\\"mm-medium-url-options\\\",\\\"hash\\\",\\\"unless\\\",\\\"on\\\",\\\"fn\\\",\\\"svg-jar\\\",\\\"ui-action-button\\\",\\\"mut\\\",\\\"ui-select\\\",\\\"get\\\",\\\"array-find\\\",\\\"ui-popover\\\",\\\"ui-input\\\",\\\"ui-datetime-picker\\\",\\\"currency\\\",\\\"currency-symbol\\\",\\\"ui-switch\\\",\\\"animated-container\\\",\\\"animated-if\\\",\\\"ui-timepicker\\\",\\\"changeset-get\\\",\\\"equal\\\",\\\"ui-format-currency\\\",\\\"amc-campaign/ads/advertisements/depiction-select-dialog\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/ad/tiktok-lead-ads/index/lead-ad/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/email\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"q4fBW8Nu\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@key\\\",\\\"@modelName\\\"],[\\\"email\\\",\\\"email-campaign\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@detailRoute\\\",\\\"@filter\\\",\\\"@theme\\\",\\\"@isWide\\\"],[\\\"campaigns__list\\\",[30,0,[\\\"activeDetail\\\"]],\\\"email\\\",\\\"grey\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"navbar\\\"]],null,[[\\\"@breadcrumbs\\\",\\\"@hasBreadcrumbs\\\"],[[28,[37,2],null,[[\\\"currentRouteName\\\",\\\"rootName\\\"],[\\\"email\\\",\\\"campaigns\\\"]]],true]],null],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"intro\\\"]],null,[[\\\"@description\\\",\\\"@hasBreadcrumbs\\\",\\\"@isMultiline\\\",\\\"@breadcrumbs\\\",\\\"@size\\\"],[[28,[37,3],[\\\"emailCampaigns.description\\\"],null],true,true,[28,[37,2],null,[[\\\"currentRouteName\\\",\\\"rootName\\\"],[\\\"email\\\",\\\"campaigns\\\"]]],\\\"xl\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mv3\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[10,1,64,4]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"hasNoMatches\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"empty-search-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"emailCampaigns.filter.noMatch\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"isEmpty\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"emailCampaigns.filter.empty\\\"],[[\\\"htmlSafe\\\"],[true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@hasMobileSpacing\\\"],[[30,1,[\\\"data\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"count\\\"]],null,[[\\\"@totalCount\\\"],[[30,1,[\\\"data\\\",\\\"meta\\\",\\\"total\\\"]]]],null],[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"item\\\"]],[[16,\\\"data-test-email-list\\\",[30,5]]],[[\\\"@linkTo\\\",\\\"@linkToParam\\\",\\\"@class\\\",\\\"@description\\\",\\\"@hasFixedHeight\\\",\\\"@isActive\\\",\\\"@state\\\"],[\\\"instance.campaigns.email.detail.index\\\",[30,4,[\\\"id\\\"]],\\\"h-auto\\\",[30,4,[\\\"label\\\"]],false,[28,[37,8],[[30,4,[\\\"id\\\"]],[30,0,[\\\"_currentItem\\\",\\\"id\\\"]]],null],[52,[28,[37,9],[[30,4,[\\\"state\\\",\\\"code\\\"]],\\\"active\\\"],null],\\\"success\\\",[52,[28,[37,9],[[30,4,[\\\"state\\\",\\\"code\\\"]],\\\"deactivated\\\"],null],\\\"error\\\",\\\"warning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,6,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n            \\\"],[8,[30,6,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"isLocked\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"lock-closed\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"16\\\",\\\"16\\\",\\\"secondary ml1\\\"]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,4,[\\\"timeLimited\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"watch\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"16\\\",\\\"16\\\",\\\"secondary ml1\\\"]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[6]]]]],[1,\\\"\\\\n        \\\"]],[3,4,5]]]]],[1,\\\"\\\\n        \\\"],[8,[39,10],null,[[\\\"@total\\\",\\\"@setCurrentPage\\\",\\\"@currentPage\\\",\\\"@onpageChange\\\"],[[30,1,[\\\"meta\\\",\\\"lastPage\\\"]],[28,[37,11],[[28,[37,12],[[30,1,[\\\"meta\\\",\\\"currentPage\\\"]]],null]],null],[30,1,[\\\"meta\\\",\\\"currentPage\\\"]],[30,1,[\\\"actions\\\",\\\"changePage\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]],[]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"_isReadOnly\\\"]]],[[[1,\\\"      \\\"],[8,[30,2,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,14],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[28,[37,11],[[28,[37,12],[[30,0,[\\\"isCreateDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,15],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@isOpen\\\",\\\"@onClose\\\"],[[28,[37,3],[\\\"emailCampaigns.createDialog.title\\\"],null],[28,[37,3],[\\\"emailCampaigns.createDialog.description\\\"],null],[30,0,[\\\"isCreateDialog\\\"]],[28,[37,11],[[28,[37,12],[[30,0,[\\\"isCreateDialog\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[46,[28,[37,17],[\\\"detail\\\"],null],null,null,null]],[\\\"f\\\",\\\"view\\\",\\\"list\\\",\\\"item\\\",\\\"index\\\",\\\"controls\\\"],false,[\\\"ui-filterable\\\",\\\"ui-content-views\\\",\\\"hash\\\",\\\"t\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"svg-jar\\\",\\\"ui-list\\\",\\\"eq\\\",\\\"equal\\\",\\\"ui-pagination\\\",\\\"fn\\\",\\\"mut\\\",\\\"unless\\\",\\\"ui-button\\\",\\\"amc-campaign/email-campaign/create-dialog\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/email.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/email/detail\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"d1BNJ3vm\",\n    \"block\": \"[[[41,[30,0,[\\\"_isNewView\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@model\\\",\\\"@onClose\\\",\\\"@isReadOnly\\\",\\\"@setInitialEditorStep\\\",\\\"@createEmail\\\",\\\"@onPublish\\\"],[[30,0,[\\\"model\\\"]],[30,0,[\\\"back\\\"]],[30,0,[\\\"_isReadOnly\\\"]],[30,0,[\\\"setInitialEditorStep\\\"]],[30,0,[\\\"createEmail\\\"]],[30,0,[\\\"openPublishDialog\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isPublishDialog\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@model\\\",\\\"@hasBackButton\\\",\\\"@onClose\\\"],[[30,0,[\\\"model\\\"]],[30,0,[\\\"isEditorOpened\\\"]],[30,0,[\\\"closePublishDialog\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@title\\\"],[[30,0,[\\\"model\\\",\\\"title\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"navbar\\\"]],[[16,\\\"data-test-detail-navbar\\\",true]],[[\\\"@onClose\\\"],[[28,[37,6],[[30,0],\\\"back\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,7],null,[[\\\"@role\\\"],[\\\"manager\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[30,0,[\\\"isActive\\\"]],\\\"emailCampaigns.toggle.confirmation.\\\"],[[[1,\\\"          \\\"],[8,[39,9],null,[[\\\"@modelName\\\",\\\"@resourceId\\\",\\\"@isActive\\\",\\\"@confirmation\\\"],[\\\"email-campaign\\\",[30,0,[\\\"model\\\",\\\"id\\\"]],[30,3],[28,[37,10],null,[[\\\"label\\\",\\\"description\\\",\\\"action\\\"],[[28,[37,11],[[28,[37,12],[[30,4],\\\"label\\\"],null]],[[\\\"active\\\"],[[30,3]]]],[28,[37,11],[[28,[37,12],[[30,4],\\\"description\\\"],null]],[[\\\"active\\\"],[[30,3]]]],[28,[37,11],[[28,[37,12],[[30,4],\\\"action\\\"],null]],[[\\\"active\\\"],[[30,3]]]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"action\\\"]],[[16,\\\"data-test-toggle-activate\\\",true]],[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,11],[[28,[37,12],[\\\"global.actions.\\\",[52,[30,3],\\\"deactivate\\\",\\\"activate\\\"]],null]],null],[30,5,[\\\"toggleAction\\\"]]]],null],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,11],[\\\"testEmail.title\\\"],null],[28,[37,13],[[28,[37,14],[[30,0,[\\\"_isTestEmailDialogOpen\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[3,4]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[8,[39,15],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@title\\\",\\\"@state\\\"],[[30,0,[\\\"model\\\",\\\"title\\\"]],[30,0,[\\\"model\\\",\\\"state\\\",\\\"code\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[2,1,48,4]],null],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[3,1,48,4]],null],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[3,1,48,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isError\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex flex-column w-100 justify-center items-center pt3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"pb2 font-sm secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,11],[\\\"emailCampaigns.emails.error\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,11],[\\\"global.actions.retry\\\"],null],[28,[37,19],[[30,0,[\\\"fetchEmailMeta\\\"]]],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"font-lg primary pv3\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,11],[\\\"emailCampaigns.configure.campaignInfo\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"bt bb b--secondary-10 h2 flex items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"w-50 font-sm primary\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,11],[\\\"emailCampaigns.configure.trackingCode\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"w-50 font-sm secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"model\\\",\\\"code\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"voucher\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"font-lg primary pv3\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,11],[\\\"campaigns.voucher.title\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@resource\\\",\\\"@isReadOnly\\\",\\\"@voucherModelType\\\",\\\"@onVoucherDetailOpen\\\"],[[30,0,[\\\"model\\\"]],[30,0,[\\\"_isReadOnly\\\"]],\\\"email-campaign-voucher\\\",[28,[37,6],[[30,0],\\\"goToVoucherDetail\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"font-lg primary pv3\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,11],[\\\"emailCampaigns.configure.configurations\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"_configurationKeys\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,23],null,[[\\\"@item\\\",\\\"@isReadOnly\\\",\\\"@onSave\\\"],[[28,[37,24],[[30,0,[\\\"model\\\",\\\"orderedConfigurations\\\"]],[30,7]],null],[30,0,[\\\"_isReadOnly\\\"]],[28,[37,6],[[30,0],\\\"onConfigurationSave\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"bt b--secondary-10 mb4\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[8,[30,6,[\\\"header\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,8,[\\\"tab\\\"]],null,[[\\\"@routePath\\\",\\\"@tabName\\\"],[\\\"instance.campaigns.email.detail.index\\\",[28,[37,11],[\\\"emailCampaigns.configure.emails\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[8,[30,8,[\\\"tab\\\"]],null,[[\\\"@routePath\\\",\\\"@tabName\\\"],[\\\"instance.campaigns.email.detail.email-series\\\",[28,[37,11],[\\\"emailCampaigns.emailSeries.title\\\"],null]]],null],[1,\\\"\\\\n          \\\"]],[8]]]]],[1,\\\"\\\\n        \\\"]],[]]]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"hideContent\\\"]]],[[[1,\\\"        \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@stretch\\\"],[true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,6,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"flex flex-column\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[6]]]]],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"hideContent\\\"]]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@role\\\"],[\\\"manager\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[28,[37,6],[[30,0],\\\"transitionToCreate\\\"],null]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isTestEmailDialogOpen\\\"]],[[[1,\\\"    \\\"],[8,[39,26],null,[[\\\"@model\\\",\\\"@campaignType\\\",\\\"@onClose\\\"],[[30,0,[\\\"model\\\"]],\\\"email-campaign\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"_isTestEmailDialogOpen\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[\\\"view\\\",\\\"nav\\\",\\\"active\\\",\\\"prefix\\\",\\\"ta\\\",\\\"tabs\\\",\\\"configurationKey\\\",\\\"header\\\"],false,[\\\"if\\\",\\\"amc-campaign/email-campaign/detail-view\\\",\\\"amc-campaign/email-campaign/publish-dialog\\\",\\\"component\\\",\\\"-outlet\\\",\\\"ui-content-views\\\",\\\"action\\\",\\\"ui-when\\\",\\\"let\\\",\\\"amc-toggle-activation\\\",\\\"hash\\\",\\\"t\\\",\\\"concat\\\",\\\"fn\\\",\\\"mut\\\",\\\"ui-routable-tabs\\\",\\\"amc-campaign/detail-header\\\",\\\"ui-skeleton\\\",\\\"ui-button\\\",\\\"perform\\\",\\\"amc-campaign/voucher\\\",\\\"each\\\",\\\"-track-array\\\",\\\"amc-campaign/configuration-item\\\",\\\"get\\\",\\\"unless\\\",\\\"amc-campaign/test-email-dialog\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/email/detail.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/email/detail/email-series\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"SOKfiMZb\",\n    \"block\": \"[[[10,0],[14,0,\\\"font-lg primary pb4\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,0],[\\\"emailCampaigns.emailSeries.title\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"w-100\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@isReadOnly\\\",\\\"@campaignId\\\",\\\"@campaignType\\\"],[[30,0,[\\\"_isReadOnly\\\"]],[30,0,[\\\"campaignId\\\"]],\\\"email\\\"]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[46,[28,[37,3],null,null],null,null,null]],[],false,[\\\"t\\\",\\\"amc-campaign/email-campaign/email-series-table\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/email/detail/email-series.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/email/detail/email-series/create\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"01Qyx4vX\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@campaignId\\\",\\\"@campaignType\\\",\\\"@isNew\\\"],[[30,0,[\\\"campaignId\\\"]],\\\"email\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[46,[28,[37,2],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]]]],[],false,[\\\"amc-campaign/email-campaign/email-series-dialog\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/email/detail/email-series/create.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/email/detail/email-series/email-series\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"7akNfSV0\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@model\\\",\\\"@isReadOnly\\\",\\\"@campaignId\\\",\\\"@campaignType\\\"],[[30,0,[\\\"model\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"campaignId\\\"]],\\\"email\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[46,[28,[37,2],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]]]],[],false,[\\\"amc-campaign/email-campaign/email-series-dialog\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/email/detail/email-series/email-series.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/email/detail/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"7WbSyRSN\",\n    \"block\": \"[[[41,[51,[30,0,[\\\"hasNewDetailView\\\"]]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"w-100 pv2\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@campaignId\\\",\\\"@campaignType\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"campaignId\\\"]],\\\"email\\\",[30,0,[\\\"_isReadOnly\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[46,[28,[37,3],null,null],null,null,null]],[],false,[\\\"unless\\\",\\\"amc-campaign/email-campaign/email-list\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/email/detail/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/email/detail/index/create\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"Twqw6fC9\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@campaignType\\\",\\\"@campaignId\\\"],[\\\"email\\\",[30,0,[\\\"campaignId\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"multimediaOverlayContent\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[46,[28,[37,2],null,null],null,null,null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"ed\\\"],false,[\\\"amc-campaign/email-campaign/email-dialog\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/email/detail/index/create.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/email/detail/index/edit\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"wbUHSTD5\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@subtitle\\\",\\\"@onSave\\\",\\\"@onPublish\\\",\\\"@initialStep\\\",\\\"@publishOnSave\\\",\\\"@hideSaveAndPublish\\\",\\\"@onStepChange\\\",\\\"@onClose\\\"],[[30,0,[\\\"model\\\",\\\"name\\\"]],[28,[37,1],[\\\"emailCampaigns.title\\\"],null],[30,0,[\\\"onSave\\\"]],[30,0,[\\\"onPublish\\\"]],[30,0,[\\\"initialStep\\\"]],[30,0,[\\\"hideSaveButton\\\"]],[30,0,[\\\"hideSaveAndPublishButton\\\"]],[30,0,[\\\"onStepChange\\\"]],[30,0,[\\\"onClose\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[4,[38,2],[[28,[37,3],[[30,0,[\\\"didInsertContentWizard\\\"]],[30,1]],null]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasTriggerStep\\\"]],[[[1,\\\"    \\\"],[11,0],[4,[38,2],[[30,0,[\\\"didInsertConfigurationStep\\\"]]],null],[12],[13],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"step\\\"]],null,[[\\\"@id\\\",\\\"@title\\\",\\\"@state\\\"],[\\\"trigger\\\",[28,[37,1],[\\\"emailCampaigns.steps.trigger.title\\\"],null],\\\"success\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isLoading\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,1,20,16]],null],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,54]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@model\\\"],[[30,3]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"pt1\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"triggerSettings\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"font-md font-medium primary\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,9],[[30,4,[\\\"label\\\"]],\\\"*\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,4,[\\\"description\\\"]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"primary font-md pt1 pb2\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,4,[\\\"description\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                  \\\"],[46,[28,[37,9],[\\\"amc-campaign/email-campaign/configuration-item/\\\",[30,4,[\\\"type\\\"]]],null],null,[[\\\"item\\\",\\\"onChange\\\"],[[28,[37,11],null,[[\\\"type\\\",\\\"key\\\",\\\"value\\\"],[[30,4,[\\\"type\\\"]],[30,4,[\\\"key\\\"]],[28,[37,12],[[28,[37,13],[[30,4,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null]]]],[28,[37,3],[[30,0,[\\\"model\\\",\\\"transactionConfigurationChange\\\"]],[30,4,[\\\"key\\\"]]],null]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"step\\\"]],null,[[\\\"@id\\\",\\\"@title\\\",\\\"@description\\\",\\\"@state\\\"],[\\\"emails\\\",[28,[37,1],[\\\"emailCampaigns.steps.emails.title\\\"],null],[28,[37,1],[[28,[37,9],[\\\"emailCampaigns.\\\",[30,0,[\\\"model\\\",\\\"code\\\"]],\\\".steps.emails.description\\\"],null]],null],[30,0,[\\\"emailsStepState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"_isLoading\\\"]]],[[[1,\\\"      \\\"],[8,[30,5,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.emails.actions.sendTestEmails\\\"],null],\\\"send\\\",[28,[37,15],[[30,0,[\\\"hasEmails\\\"]]],null],[28,[37,3],[[30,0,[\\\"openSendTestEmailDialog\\\"]],[30,0,[\\\"model\\\"]],true],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[30,5,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mt4\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,1,20,16]],null],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,54]],null],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[3,1,108,4]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mt4\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,6],null,[[\\\"@model\\\"],[[30,3]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"emailSeries\\\",\\\"length\\\"]],[28,[37,15],[[30,0,[\\\"_isLoading\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex h1 ml2 pl05 mr3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mh-100 h-100 br b--secondary-20 mh05\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"emailSeries\\\",\\\"length\\\"]]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@isLarge\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"w-100 flex justify-center mt3\\\",[28,[37,1],[\\\"emailCampaigns.steps.emails.actions.createFirstEmailStep\\\"],null],\\\"plus\\\",true,true,[28,[37,3],[[28,[37,18],[[30,0,[\\\"isEmailSeriesCreateDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"mb1\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"emailSeries\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"flex flex-column mh-100 ml2 pl05 mr3\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"br-100 bg-secondary pa05 mv1\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[28,[37,19],[[28,[37,20],[[30,7]],null],[30,0,[\\\"emailSeries\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"mh-100 h-100 br b--secondary-20 mh05\\\"],[12],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[8,[39,21],null,[[\\\"@class\\\",\\\"@state\\\",\\\"@hasFixedHeight\\\",\\\"@onClick\\\"],[\\\"w-100\\\",[52,[28,[37,19],[[30,6,[\\\"state\\\"]],\\\"active\\\"],null],\\\"success\\\",\\\"error\\\"],false,[28,[37,3],[[30,1,[\\\"onChangeStep\\\"]],[28,[37,12],[[28,[37,12],[[28,[37,12],[[28,[37,13],[\\\"emails\\\",[30,1,[\\\"steps\\\"]],\\\"slug\\\"],null],\\\"substeps\\\"],null],[30,7]],null],\\\"slug\\\"],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,8,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n                \\\"],[8,[30,8,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"flex flex-column mw-100 flex-grow-1\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"flex primary items-center mw-100 w-100\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,1],[\\\"emailCampaigns.steps.emails.emailSeriesCount\\\"],[[\\\"count\\\"],[[28,[37,20],[[30,7]],null]]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[12],[1,\\\"\\\\n                         - \\\\n                      \\\"],[13],[1,\\\"\\\\n\\\\n                      \\\"],[8,[39,22],null,[[\\\"@classNames\\\",\\\"@value\\\",\\\"@isCentered\\\",\\\"@placeholder\\\",\\\"@onBlur\\\"],[\\\"font-sm font-medium ellipsis\\\",[30,6,[\\\"label\\\"]],false,\\\"\\\",[28,[37,3],[[30,6,[\\\"transactionChange\\\"]],\\\"label\\\"],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"flex items-center font-sm font-medium mt1\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"flex items-center justify-center bg-blue--10 blue br1 ph05\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,23],[\\\"watch\\\"],[[\\\"width\\\",\\\"height\\\"],[\\\"16\\\",\\\"16\\\"]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[28,[37,19],[[30,6,[\\\"offsetInDays\\\"]],0],null],[28,[37,19],[[30,6,[\\\"offsetInDays\\\"]],\\\"0\\\"],null]],null],[[[1,\\\"                          \\\"],[1,[28,[35,1],[\\\"emailCampaigns.immediately\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          \\\"],[1,[28,[35,1],[\\\"emailCampaigns.daysCount\\\"],[[\\\"count\\\"],[[30,6,[\\\"offsetInDays\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"secondary ml05\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,1],[\\\"emailCampaigns.afterTrigger\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"flex secondary mt05\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,1],[\\\"emailCampaigns.steps.emails.variantCount\\\"],[[\\\"count\\\"],[[30,6,[\\\"emails\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,19],[[30,6,[\\\"emails\\\",\\\"length\\\"]],0],null],[[[1,\\\"                         \\\\n                        \\\"],[8,[39,25],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,9],[\\\"- \\\",[28,[37,1],[\\\"emailCampaigns.steps.emails.email.actions.createFirstEmailVariant\\\"],null]],null],[28,[37,3],[[30,0,[\\\"createEmail\\\"]],[30,6],[28,[37,12],[[28,[37,12],[[28,[37,12],[[28,[37,13],[\\\"emails\\\",[30,1,[\\\"steps\\\"]],\\\"slug\\\"],null],\\\"substeps\\\"],null],[30,7]],null],\\\"slug\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[8,[30,8,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[8,[39,26],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[8,[30,9,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[52,[28,[37,19],[[30,6,[\\\"state\\\"]],\\\"active\\\"],null],[28,[37,1],[\\\"global.actions.deactivate\\\"],null],[28,[37,1],[\\\"global.actions.activate\\\"],null]],[30,6,[\\\"transactionChangeModelState\\\"]]]],null],[1,\\\"\\\\n                    \\\"],[8,[30,9,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.delete\\\"],null],true,[28,[37,3],[[30,0,[\\\"onDelete\\\"]],[30,6]],null]]],null],[1,\\\"\\\\n                  \\\"]],[9]]]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[8]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[6,7]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"emailSeries\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[28,[37,3],[[28,[37,18],[[30,0,[\\\"isEmailSeriesCreateDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"emailSeries\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[30,5,[\\\"substep\\\"]],null,[[\\\"@id\\\",\\\"@title\\\",\\\"@titlePrefix\\\",\\\"@position\\\",\\\"@description\\\",\\\"@onTitleChange\\\",\\\"@isTitleEditable\\\",\\\"@state\\\"],[[30,10,[\\\"id\\\"]],[30,10,[\\\"label\\\"]],[28,[37,9],[[28,[37,1],[\\\"emailCampaigns.steps.emails.emailSeriesCount\\\"],[[\\\"count\\\"],[[28,[37,20],[[30,11]],null]]]],\\\" -\\\"],null],[30,11],[28,[37,1],[\\\"emailCampaigns.steps.emails.email.description\\\"],null],[28,[37,3],[[30,10,[\\\"transactionChange\\\"]],\\\"label\\\"],null],true,[52,[28,[37,19],[[30,10,[\\\"state\\\"]],\\\"active\\\"],null],\\\"success\\\",\\\"error\\\"]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"_isLoading\\\"]]],[[[1,\\\"          \\\"],[8,[30,12,[\\\"navbarAction\\\"]],null,[[\\\"@onClick\\\"],[[30,10,[\\\"transactionChangeModelState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,10,[\\\"state\\\"]],\\\"active\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,23],[\\\"activate\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"blue\\\"]]]],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"ui-action-button__label\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"global.actions.deactivate\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,23],[\\\"deactivate\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"blue\\\"]]]],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"ui-action-button__label\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"global.actions.activate\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[30,12,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.delete\\\"],null],\\\"delete\\\",true,[28,[37,3],[[30,0,[\\\"onDelete\\\"]],[30,10]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[30,12,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isLoading\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"mt4\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,64]],null],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,20]],null],[1,\\\"\\\\n                \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[3,1,72,4]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"pt05\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,27],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@value\\\",\\\"@minValue\\\",\\\"@type\\\",\\\"@isTouched\\\",\\\"@errorMessage\\\",\\\"@onBlur\\\"],[\\\"pt3\\\",[28,[37,1],[\\\"emailCampaigns.steps.emails.daysSinceTrigger\\\"],null],[30,10,[\\\"offsetInDays\\\"]],0,\\\"number\\\",true,[52,[30,0,[\\\"isEmailSeriesOffsetError\\\"]],[28,[37,1],[\\\"emailCampaigns.emailSeries.dialog.notUniqueDays\\\"],null]],[28,[37,3],[[30,0,[\\\"changeEmailSeriesOffset\\\"]],[30,10]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,13,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[28,[35,1],[\\\"global.properties.days\\\"],null]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[13]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mt2 pb1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[28,[37,13],[\\\"emails\\\",[30,1,[\\\"steps\\\"]],\\\"slug\\\"],null],\\\"substeps\\\"],null],[[[44,[[28,[37,12],[[28,[37,12],[[28,[37,12],[[28,[37,13],[\\\"emails\\\",[30,1,[\\\"steps\\\"]],\\\"slug\\\"],null],\\\"substeps\\\"],null],[30,11]],null],\\\"substeps\\\"],null]],[[[41,[30,10,[\\\"emails\\\",\\\"length\\\"]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"secondary font-sm font-medium pb2\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,1],[\\\"emailCampaigns.steps.emails.variants\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[8,[39,29],null,[[\\\"@items\\\"],[[30,10,[\\\"emails\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[8,[30,15,[\\\"item\\\"]],null,[[\\\"@title\\\",\\\"@state\\\",\\\"@onClick\\\"],[[52,[28,[37,30],[[30,16,[\\\"language\\\"]],[30,16,[\\\"availableLanguages\\\"]]],null],[52,[30,16,[\\\"subject\\\"]],[30,16,[\\\"subject\\\"]],\\\"-\\\"],[28,[37,1],[\\\"emailCampaigns.steps.emails.email.placeholderText\\\"],null]],[52,[30,16,[\\\"active\\\"]],\\\"success\\\",\\\"error\\\"],[28,[37,3],[[30,1,[\\\"onChangeStep\\\"]],[28,[37,12],[[28,[37,12],[[30,14],[30,17]],null],\\\"slug\\\"],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[8,[30,18,[\\\"popover\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                          \\\"],[8,[30,19,[\\\"trigger\\\"]],null,null,null],[1,\\\"\\\\n                          \\\"],[8,[30,19,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,16,[\\\"availableLanguages\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[10,0],[14,0,\\\"flex items-center justify-between pv05\\\"],[12],[1,\\\"\\\\n                                \\\"],[10,0],[14,0,\\\"pr2\\\"],[12],[1,\\\"\\\\n                                  \\\"],[1,[28,[35,1],[[28,[37,9],[\\\"global.languages.\\\",[30,20]],null]],null]],[1,\\\"\\\\n                                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,16,[\\\"active\\\"]],[[[1,\\\"                                  \\\"],[10,0],[14,0,\\\"green\\\"],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,1],[\\\"emailCampaigns.steps.emails.email.states.active\\\"],null]],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                                  \\\"],[10,0],[14,0,\\\"red\\\"],[12],[1,\\\"\\\\n                                    \\\"],[1,[28,[35,1],[\\\"emailCampaigns.steps.emails.email.states.inactive\\\"],null]],[1,\\\"\\\\n                                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                              \\\"],[13],[1,\\\"\\\\n\\\"]],[20]],null],[1,\\\"                          \\\"]],[]]]]],[1,\\\"\\\\n                        \\\"]],[19]]]]],[1,\\\"\\\\n                        \\\"],[8,[30,18,[\\\"thumbnail\\\"]],null,[[\\\"@src\\\",\\\"@alt\\\"],[[52,[30,16,[\\\"image\\\"]],[28,[37,31],[[30,16,[\\\"image\\\",\\\"url\\\"]],[28,[37,11],null,[[\\\"size\\\"],[\\\"72x72\\\"]]]],null]],[52,[30,16,[\\\"image\\\"]],[30,16,[\\\"name\\\"]]]]],null],[1,\\\"\\\\n                        \\\"],[8,[30,18,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                          \\\"],[8,[39,26],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                            \\\"],[8,[30,21,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[52,[30,16,[\\\"active\\\"]],[28,[37,1],[\\\"global.actions.deactivate\\\"],null],[28,[37,1],[\\\"global.actions.activate\\\"],null]],[30,16,[\\\"transactionChangeModelState\\\"]]]],null],[1,\\\"\\\\n                            \\\"],[8,[30,21,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.emails.email.actions.sendTestEmail\\\"],null],[28,[37,3],[[30,0,[\\\"openSendTestEmailDialog\\\"]],[30,16],false],null]]],null],[1,\\\"\\\\n                            \\\"],[8,[30,21,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.emails.email.actions.preview\\\"],null],[28,[37,32],[[30,0,[\\\"openPreviewDialog\\\"]],[30,16],\\\"email\\\"],null]]],null],[1,\\\"\\\\n                            \\\"],[8,[30,21,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.delete\\\"],null],true,[28,[37,3],[[30,0,[\\\"onDelete\\\"]],[30,16]],null]]],null],[1,\\\"\\\\n                          \\\"]],[21]]]]],[1,\\\"\\\\n                        \\\"]],[]]]]],[1,\\\"\\\\n                      \\\"]],[18]]]]],[1,\\\"\\\\n                    \\\"]],[15,16,17]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[8,[39,17],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@isLarge\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"w-100 flex justify-center\\\",[28,[37,1],[\\\"emailCampaigns.steps.emails.email.actions.createFirstEmailVariant\\\"],null],\\\"plus\\\",true,true,[28,[37,3],[[30,0,[\\\"createEmail\\\"]],[30,10],[28,[37,12],[[28,[37,12],[[28,[37,12],[[28,[37,13],[\\\"emails\\\",[30,1,[\\\"steps\\\"]],\\\"slug\\\"],null],\\\"substeps\\\"],null],[30,11]],null],\\\"slug\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[14]]]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,10,[\\\"emails\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[8,[39,17],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[28,[37,3],[[30,0,[\\\"createEmail\\\"]],[30,10],[28,[37,12],[[28,[37,12],[[28,[37,12],[[28,[37,13],[\\\"emails\\\",[30,1,[\\\"steps\\\"]],\\\"slug\\\"],null],\\\"substeps\\\"],null],[30,11]],null],\\\"slug\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,10,[\\\"emails\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[30,12,[\\\"substep\\\"]],null,[[\\\"@id\\\",\\\"@title\\\",\\\"@state\\\"],[[30,22,[\\\"id\\\"]],[52,[28,[37,30],[[30,22,[\\\"language\\\"]],[30,22,[\\\"availableLanguages\\\"]]],null],[52,[30,22,[\\\"subject\\\"]],[30,22,[\\\"subject\\\"]],\\\"-\\\"],[28,[37,1],[\\\"emailCampaigns.steps.emails.email.placeholderText\\\"],null]],[52,[30,22,[\\\"active\\\"]],\\\"success\\\",\\\"error\\\"]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"_isLoading\\\"]]],[[[1,\\\"              \\\"],[8,[30,23,[\\\"navbarAction\\\"]],null,[[\\\"@onClick\\\"],[[30,22,[\\\"transactionChangeModelState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,22,[\\\"active\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,23],[\\\"activate\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"blue\\\"]]]],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"ui-action-button__label\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,1],[\\\"global.actions.deactivate\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,23],[\\\"deactivate\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"blue\\\"]]]],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"ui-action-button__label\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,1],[\\\"global.actions.activate\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"]],[]]]]],[1,\\\"\\\\n\\\\n              \\\"],[8,[30,23,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.emails.email.actions.preview\\\"],null],\\\"popup\\\",[28,[37,32],[[30,0,[\\\"openPreviewDialog\\\"]],[30,22],\\\"email\\\"],null]]],null],[1,\\\"\\\\n\\\\n              \\\"],[8,[30,23,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.emails.email.actions.sendTestEmail\\\"],null],\\\"send\\\",[28,[37,3],[[30,0,[\\\"openSendTestEmailDialog\\\"]],[30,22],false],null]]],null],[1,\\\"\\\\n\\\\n              \\\"],[8,[30,23,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.delete\\\"],null],\\\"delete\\\",true,[28,[37,3],[[30,0,[\\\"onDelete\\\"]],[30,22]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[8,[30,23,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"pt4\\\"],[4,[38,33],[[28,[37,3],[[30,0,[\\\"didUpdateEmailLanguage\\\"]],[30,22]],null],[30,22,[\\\"language\\\"]]],null],[4,[38,2],[[28,[37,3],[[30,0,[\\\"onEnterStep\\\"]],[30,22],\\\"email\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,34],null,[[\\\"@selected\\\",\\\"@languages\\\",\\\"@publishedLanguages\\\",\\\"@availableLanguages\\\",\\\"@onSelect\\\",\\\"@addLanguage\\\",\\\"@removeLanguage\\\",\\\"@hideState\\\"],[[30,22,[\\\"language\\\"]],[30,22,[\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,22,[\\\"transactionChangeLanguage\\\"]],[30,22,[\\\"transactionAddLanguage\\\"]],[30,22,[\\\"transactionDeleteLanguage\\\"]],true]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"uiTransactionManager\\\",\\\"isLoading\\\"]],[30,0,[\\\"_isLoading\\\"]]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"pt4\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,84]],null],[1,\\\"\\\\n                  \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,190]],null],[1,\\\"\\\\n                  \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,92]],null],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,184]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"pt05\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,27],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@value\\\",\\\"@onBlur\\\"],[\\\"pt3\\\",[28,[37,9],[[28,[37,1],[\\\"emailCampaigns.steps.emails.email.subject\\\"],null],\\\"*\\\"],null],[30,22,[\\\"subject\\\"]],[28,[37,3],[[30,22,[\\\"transactionChange\\\"]],\\\"subject\\\"],null]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[8,[39,35],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@allowedPlaceholders\\\",\\\"@corporateDesignColors\\\",\\\"@onLinkInsert\\\",\\\"@onBlur\\\"],[[28,[37,9],[[28,[37,1],[\\\"emailCampaigns.steps.emails.email.body\\\"],null],\\\"*\\\"],null],[30,22,[\\\"body\\\"]],[30,0,[\\\"allowedPlaceholders\\\"]],[30,0,[\\\"_corporateDesignColors\\\"]],[28,[37,3],[[30,22,[\\\"transactionChange\\\"]],\\\"body\\\"],null],[28,[37,3],[[30,22,[\\\"transactionChange\\\"]],\\\"body\\\"],null]]],null],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"flex gap2\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,36],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@objectKey\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\"],[\\\"w-100\\\",[28,[37,1],[\\\"emailCampaigns.steps.emails.email.ctaType\\\"],null],\\\"label\\\",[28,[37,12],[[28,[37,13],[[30,22,[\\\"ctaType\\\"]],[30,0,[\\\"ctaTypes\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"ctaTypes\\\"]],[28,[37,32],[[30,0,[\\\"onChangeEmailCtaType\\\"]],[30,22]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[8,[30,24,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,25]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[1,[30,25,[\\\"label\\\"]]],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n                  \\\"]],[24,25]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,22,[\\\"ctaType\\\"]],[[[1,\\\"                    \\\"],[8,[39,27],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onBlur\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.emails.email.ctaText\\\"],null],[30,22,[\\\"ctaText\\\"]],[28,[37,3],[[30,22,[\\\"transactionChange\\\"]],\\\"ctaText\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"w-100\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,37],[[30,22,[\\\"ctaType\\\"]],\\\"survey\\\"],null],[[[41,[30,0,[\\\"fetchSurveys\\\",\\\"isRunning\\\"]],[[[1,\\\"                    \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,92]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[8,[39,36],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@objectKey\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\"],[\\\"w-100\\\",[28,[37,1],[\\\"emailCampaigns.steps.emails.email.survey\\\"],null],\\\"label\\\",[28,[37,12],[[28,[37,13],[[30,22,[\\\"ctaLink\\\"]],[28,[37,12],[[30,0,[\\\"_surveys\\\"]],[30,22,[\\\"language\\\"]]],null]],null],\\\"label\\\"],null],[28,[37,12],[[30,0,[\\\"_surveys\\\"]],[30,22,[\\\"language\\\"]]],null],[28,[37,3],[[30,0,[\\\"onChangeCtaLink\\\"]],[30,22]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[8,[30,26,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,27]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[1,[30,27,[\\\"label\\\"]]],[1,\\\"\\\\n                      \\\"]],[]]]]],[1,\\\"\\\\n                    \\\"]],[26,27]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,37],[[30,22,[\\\"ctaType\\\"]],\\\"referral\\\"],null],[[[41,[30,0,[\\\"fetchReferralCampaigns\\\",\\\"isRunning\\\"]],[[[1,\\\"                    \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,92]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[8,[39,36],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@objectKey\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\"],[\\\"w-100\\\",[28,[37,1],[\\\"emailCampaigns.steps.emails.email.campaign\\\"],null],\\\"label\\\",[28,[37,12],[[28,[37,13],[[30,22,[\\\"ctaLink\\\"]],[28,[37,12],[[30,0,[\\\"_referralCampaigns\\\"]],[30,22,[\\\"language\\\"]]],null]],null],\\\"label\\\"],null],[28,[37,12],[[30,0,[\\\"_referralCampaigns\\\"]],[30,22,[\\\"language\\\"]]],null],[28,[37,3],[[30,0,[\\\"onChangeCtaLink\\\"]],[30,22]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[8,[30,28,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,29]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[1,[30,29,[\\\"label\\\"]]],[1,\\\"\\\\n                      \\\"]],[]]]]],[1,\\\"\\\\n                    \\\"]],[28,29]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,37],[[30,22,[\\\"ctaType\\\"]],\\\"cta\\\"],null],[[[1,\\\"                  \\\"],[8,[39,27],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onBlur\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.emails.email.ctaLink\\\"],null],[30,22,[\\\"ctaLink\\\"]],[28,[37,3],[[30,22,[\\\"transactionChange\\\"]],\\\"ctaLink\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"font-sm secondary mb05\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,9],[[28,[37,1],[\\\"emailCampaigns.steps.emails.email.image\\\"],null],\\\"*\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,38],null,[[\\\"@resources\\\",\\\"@isImageAddable\\\",\\\"@onDropzoneClick\\\",\\\"@onResourceRemove\\\",\\\"@onResourceEdit\\\",\\\"@mediumType\\\"],[[30,22,[\\\"image\\\"]],true,[28,[37,3],[[30,0,[\\\"openMultimedia\\\"]],[30,22]],null],[28,[37,3],[[30,22,[\\\"transactionChange\\\"]],\\\"image\\\",null],null],[28,[37,3],[[30,22,[\\\"transactionChange\\\"]],\\\"image\\\"],null],\\\"image\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[23]]]]],[1,\\\"\\\\n\\\"]],[22]],null],[1,\\\"      \\\"]],[12]]]]],[1,\\\"\\\\n\\\"]],[10,11]],null],[1,\\\"  \\\"]],[5]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasVoucherStep\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"step\\\"]],null,[[\\\"@id\\\",\\\"@title\\\",\\\"@description\\\",\\\"@state\\\"],[\\\"contribution\\\",[28,[37,1],[\\\"emailCampaigns.steps.contribution.title\\\"],null],[52,[30,0,[\\\"model\\\",\\\"contribution\\\"]],[28,[37,1],[\\\"emailCampaigns.steps.contribution.description\\\"],null],[28,[37,1],[\\\"emailCampaigns.steps.contribution.createVoucherDescription\\\"],null]],[30,0,[\\\"contributionStepState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"contribution\\\"]],[[[41,[51,[30,0,[\\\"_isLoading\\\"]]],[[[1,\\\"          \\\"],[8,[30,30,[\\\"navbarAction\\\"]],null,[[\\\"@onClick\\\"],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChangeModelState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"active\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,23],[\\\"activate\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"blue\\\"]]]],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"ui-action-button__label\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"global.actions.deactivate\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,23],[\\\"deactivate\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"20\\\",\\\"20\\\",\\\"blue\\\"]]]],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"ui-action-button__label\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"global.actions.activate\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[30,30,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.contribution.actions.preview\\\"],null],\\\"popup\\\",[28,[37,32],[[30,0,[\\\"openPreviewDialog\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\"]],\\\"voucher\\\"],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[30,30,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDanger\\\",\\\"@isPromise\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.delete\\\"],null],\\\"delete\\\",true,true,[28,[37,3],[[30,0,[\\\"onDelete\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[30,30,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"pt4\\\"],[4,[38,33],[[28,[37,32],[[30,0,[\\\"model\\\",\\\"fetchMeta\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"language\\\"]]],null],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"language\\\"]]],null],[4,[38,2],[[28,[37,3],[[30,0,[\\\"onEnterStep\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\"]],\\\"voucher\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,34],null,[[\\\"@selected\\\",\\\"@languages\\\",\\\"@publishedLanguages\\\",\\\"@availableLanguages\\\",\\\"@onSelect\\\",\\\"@addLanguage\\\",\\\"@removeLanguage\\\",\\\"@hideState\\\"],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"language\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChangeLanguage\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionAddLanguage\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionDeleteLanguage\\\"]],true]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"uiTransactionManager\\\",\\\"isLoading\\\"]],[30,0,[\\\"_isLoading\\\"]],[30,0,[\\\"model\\\",\\\"fetchMeta\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"pt4\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[1,1,84]],null],[1,\\\"\\\\n              \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[3,1,190]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"pt05\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,27],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@value\\\",\\\"@minValue\\\",\\\"@onBlur\\\",\\\"@type\\\"],[\\\"pt3\\\",[28,[37,9],[[28,[37,1],[\\\"emailCampaigns.steps.contribution.value\\\"],null],\\\"*\\\"],null],[30,0,[\\\"_contributionValue\\\"]],0,[28,[37,3],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChange\\\"]],\\\"value\\\"],null],\\\"number\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,31,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[28,[35,39],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[31]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,35],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@corporateDesignColors\\\",\\\"@onLinkInsert\\\",\\\"@onBlur\\\"],[[28,[37,9],[[28,[37,1],[\\\"emailCampaigns.steps.contribution.policies\\\"],null],\\\"*\\\"],null],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"policies\\\"]],[30,0,[\\\"_corporateDesignColors\\\"]],[28,[37,3],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChange\\\"]],\\\"policies\\\"],null],[28,[37,3],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChange\\\"]],\\\"policies\\\"],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,35],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@placeholderText\\\",\\\"@corporateDesignColors\\\",\\\"@onLinkInsert\\\",\\\"@onBlur\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.contribution.greeting\\\"],null],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"greeting\\\"]],[28,[37,12],[[28,[37,12],[[30,0,[\\\"model\\\",\\\"meta\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"language\\\"]]],null],\\\"contribution.greeting\\\"],null],[30,0,[\\\"_corporateDesignColors\\\"]],[28,[37,3],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionConfigurationChange\\\"]],\\\"greeting\\\",\\\"configuration\\\"],null],[28,[37,3],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionConfigurationChange\\\"]],\\\"greeting\\\",\\\"configuration\\\"],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"font-sm secondary mb05\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,9],[[28,[37,1],[\\\"emailCampaigns.steps.contribution.image\\\"],null],\\\"*\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,38],null,[[\\\"@isImageAddable\\\",\\\"@isVideoAddable\\\",\\\"@resources\\\",\\\"@onDropzoneClick\\\",\\\"@onResourceRemove\\\",\\\"@onResourceEdit\\\",\\\"@mediumType\\\"],[true,false,[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"image\\\"]],[28,[37,3],[[30,0,[\\\"openMultimedia\\\"]],[30,0,[\\\"model\\\",\\\"contribution\\\"]]],null],[28,[37,3],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChange\\\"]],\\\"image\\\",null],null],[28,[37,3],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChange\\\"]],\\\"image\\\"],null],\\\"image\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,27],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@infoMessage\\\",\\\"@isMultilineMessage\\\",\\\"@value\\\",\\\"@onBlur\\\"],[\\\"pt2\\\",[28,[37,1],[\\\"emailCampaigns.steps.contribution.customType\\\"],null],[28,[37,1],[\\\"emailCampaigns.steps.contribution.customTypeDescription\\\"],null],true,[30,0,[\\\"_contributionCustomType\\\"]],[28,[37,3],[[30,0,[\\\"model\\\",\\\"contribution\\\",\\\"transactionChange\\\"]],\\\"customType\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[30,30,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@icon\\\",\\\"@isLarge\\\",\\\"@isSecondary\\\",\\\"@isPromise\\\",\\\"@onClick\\\"],[\\\"w-100 flex justify-center mt4\\\",[28,[37,1],[\\\"emailCampaigns.steps.contribution.createVoucher\\\"],null],\\\"plus\\\",true,true,true,[30,0,[\\\"createVoucher\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[30]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasLandingPageStep\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"step\\\"]],null,[[\\\"@id\\\",\\\"@title\\\",\\\"@description\\\",\\\"@state\\\"],[\\\"landing-pages\\\",[28,[37,1],[\\\"emailCampaigns.steps.landingPage.title\\\"],null],[28,[37,1],[\\\"emailCampaigns.steps.landingPage.description\\\"],null],\\\"success\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"_isLoading\\\"]]],[[[1,\\\"        \\\"],[8,[30,32,[\\\"navbarAction\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.landingPage.actions.preview\\\"],null],\\\"popup\\\",[28,[37,32],[[30,0,[\\\"openPreviewDialog\\\"]],[30,0,[\\\"model\\\",\\\"landingPage\\\"]],\\\"landing-page\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[30,32,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"pt3 mb2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,34],null,[[\\\"@selected\\\",\\\"@languages\\\",\\\"@publishedLanguages\\\",\\\"@availableLanguages\\\",\\\"@onSelect\\\",\\\"@hideLanguageActions\\\",\\\"@hideState\\\"],[[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"language\\\"]],[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"availableLanguages\\\"]],[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"transactionChangeLanguage\\\"]],true,true]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,35],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@corporateDesignColors\\\",\\\"@onLinkInsert\\\",\\\"@onBlur\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.landingPage.columnLeft\\\"],null],[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"columnLeft\\\"]],[30,0,[\\\"_corporateDesignColors\\\"]],[28,[37,3],[[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"transactionChange\\\"]],\\\"columnLeft\\\"],null],[28,[37,3],[[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"transactionChange\\\"]],\\\"columnLeft\\\"],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,35],null,[[\\\"@label\\\",\\\"@initialValue\\\",\\\"@corporateDesignColors\\\",\\\"@onLinkInsert\\\",\\\"@onBlur\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.landingPage.columnRight\\\"],null],[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"columnRight\\\"]],[30,0,[\\\"_corporateDesignColors\\\"]],[28,[37,3],[[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"transactionChange\\\"]],\\\"columnRight\\\"],null],[28,[37,3],[[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"transactionChange\\\"]],\\\"columnRight\\\"],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,27],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onBlur\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.landingPage.ctaText\\\"],null],[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"ctaText\\\"]],[28,[37,3],[[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"transactionChange\\\"]],\\\"ctaText\\\"],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,27],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onBlur\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.landingPage.metaTitle\\\"],null],[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"metaTitle\\\"]],[28,[37,3],[[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"transactionChange\\\"]],\\\"metaTitle\\\"],null]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[32]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasConfigurationStep\\\"]],[[[1,\\\"    \\\"],[11,0],[4,[38,2],[[30,0,[\\\"didInsertConfigurationStep\\\"]]],null],[12],[13],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"step\\\"]],null,[[\\\"@id\\\",\\\"@title\\\",\\\"@state\\\"],[\\\"configuration\\\",[28,[37,1],[\\\"emailCampaigns.steps.configurations.title\\\"],null],\\\"success\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,33,[\\\"contentBody\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isLoading\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\"],[3,1,108]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"configurationItems\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,0],[14,0,\\\"mt2\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"font-md font-medium primary\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,34,[\\\"required\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,9],[[30,34,[\\\"label\\\"]],\\\"*\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[30,34,[\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,34,[\\\"description\\\"]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"primary font-md pt1 pb2\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,34,[\\\"description\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[46,[28,[37,9],[\\\"amc-campaign/email-campaign/configuration-item/\\\",[30,34,[\\\"type\\\"]]],null],null,[[\\\"item\\\",\\\"onChange\\\",\\\"isPlain\\\"],[[28,[37,11],null,[[\\\"type\\\",\\\"key\\\",\\\"label\\\",\\\"value\\\"],[[30,34,[\\\"type\\\"]],[30,34,[\\\"key\\\"]],[30,34,[\\\"label\\\"]],[28,[37,12],[[28,[37,13],[[30,34,[\\\"key\\\"]],[30,0,[\\\"model\\\",\\\"configurations\\\"]],\\\"key\\\"],null],\\\"value\\\"],null]]]],[28,[37,3],[[30,0,[\\\"model\\\",\\\"transactionConfigurationChange\\\"]],[30,34,[\\\"key\\\"]]],null],[28,[37,24],[[28,[37,19],[[30,34,[\\\"type\\\"]],\\\"array\\\"],null],[28,[37,19],[[30,34,[\\\"type\\\"]],\\\"number\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[34]],null]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[33]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isTestEmailDialogOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,40],null,[[\\\"@model\\\",\\\"@onClose\\\",\\\"@isBulk\\\",\\\"@isTransaction\\\",\\\"@campaignType\\\"],[[30,0,[\\\"selectedModel\\\"]],[28,[37,41],[[28,[37,3],[[28,[37,18],[[30,0,[\\\"isTestEmailDialogOpen\\\"]]],null],false],null],[28,[37,3],[[28,[37,18],[[30,0,[\\\"isBulkAction\\\"]]],null],false],null]],null],[30,0,[\\\"isBulkAction\\\"]],true,[30,0,[\\\"model\\\",\\\"type\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEmailSeriesCreateDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,42],null,[[\\\"@model\\\",\\\"@isNew\\\",\\\"@onClose\\\",\\\"@onSave\\\",\\\"@isLabelRequired\\\",\\\"@showNamePrefix\\\",\\\"@hasCustomSave\\\",\\\"@campaignId\\\",\\\"@offsetInDaysLabel\\\",\\\"@campaignType\\\"],[[30,0,[\\\"model\\\"]],true,[28,[37,3],[[28,[37,18],[[30,0,[\\\"isEmailSeriesCreateDialog\\\"]]],null],false],null],[30,0,[\\\"createEmailSeries\\\"]],false,true,true,[30,0,[\\\"campaignId\\\"]],[28,[37,1],[\\\"emailCampaigns.steps.emails.offsetInDays\\\"],null],\\\"email\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isVoucherPreviewDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,43],null,[[\\\"@title\\\",\\\"@availableLanguages\\\",\\\"@language\\\",\\\"@isLoading\\\",\\\"@onLanguageChange\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.contribution.previewDialog.title\\\"],null],[30,0,[\\\"selectedVoucherModel\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"selectedVoucherPreviewLanguage\\\"]],[30,0,[\\\"openPreviewDialog\\\",\\\"isRunning\\\"]],[28,[37,32],[[30,0,[\\\"openPreviewDialog\\\"]],[30,0,[\\\"selectedVoucherModel\\\"]],\\\"voucher\\\"],null],[28,[37,3],[[28,[37,18],[[30,0,[\\\"isVoucherPreviewDialog\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,35,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"iframe\\\"],[15,\\\"title\\\",[28,[37,1],[\\\"emailCampaigns.steps.contribution.previewDialog.title\\\"],null]],[14,1,\\\"voucher-preview-iframe\\\"],[14,0,\\\"w-100 h-100 dn flex flex-column flex-grow-1\\\"],[14,\\\"frameBorder\\\",\\\"0\\\"],[12],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[35]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEmailPreviewDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,43],null,[[\\\"@title\\\",\\\"@availableLanguages\\\",\\\"@language\\\",\\\"@isLoading\\\",\\\"@onLanguageChange\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.emails.email.previewDialog.title\\\"],null],[30,0,[\\\"selectedEmailModel\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"selectedEmailPreviewLanguage\\\"]],[30,0,[\\\"openPreviewDialog\\\",\\\"isRunning\\\"]],[28,[37,32],[[30,0,[\\\"openPreviewDialog\\\"]],[30,0,[\\\"selectedEmailModel\\\"]],\\\"email\\\"],null],[28,[37,3],[[28,[37,18],[[30,0,[\\\"isEmailPreviewDialog\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,36,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"iframe\\\"],[15,\\\"title\\\",[28,[37,1],[\\\"emailCampaigns.steps.emails.email.previewDialog.title\\\"],null]],[14,1,\\\"email-preview-iframe\\\"],[14,0,\\\"w-100 h-100 dn flex flex-column flex-grow-1\\\"],[14,\\\"frameBorder\\\",\\\"0\\\"],[12],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[36]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLandingPagePreviewDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,43],null,[[\\\"@title\\\",\\\"@availableLanguages\\\",\\\"@language\\\",\\\"@isLoading\\\",\\\"@onLanguageChange\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"emailCampaigns.steps.landingPage.previewDialog.title\\\"],null],[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"model\\\",\\\"landingPage\\\",\\\"language\\\"]],[30,0,[\\\"openPreviewDialog\\\",\\\"isRunning\\\"]],[28,[37,32],[[30,0,[\\\"openPreviewDialog\\\"]],[30,0,[\\\"model\\\",\\\"landingPage\\\"]],\\\"landing-page\\\"],null],[28,[37,3],[[28,[37,18],[[30,0,[\\\"isLandingPagePreviewDialog\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,37,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"iframe\\\"],[15,\\\"title\\\",[28,[37,1],[\\\"emailCampaigns.steps.landingPage.previewDialog.title\\\"],null]],[14,1,\\\"landing-page-preview-iframe\\\"],[14,0,\\\"w-100 h-100 dn flex flex-column flex-grow-1\\\"],[14,\\\"frameBorder\\\",\\\"0\\\"],[12],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[37]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,44],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChangesDialog\\\"]],[30,0,[\\\"onDiscardChanges\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[8,[39,45],null,[[\\\"@onClose\\\",\\\"@onAddMedium\\\"],[[30,0,[\\\"closeMultimedia\\\"]],[30,0,[\\\"addMedium\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[46,[28,[37,46],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"wizard\\\",\\\"step\\\",\\\"@model\\\",\\\"triggerSetting\\\",\\\"step\\\",\\\"item\\\",\\\"index\\\",\\\"controls\\\",\\\"menu\\\",\\\"emailSeries\\\",\\\"emailSeriesIndex\\\",\\\"substep\\\",\\\"input\\\",\\\"emailSteps\\\",\\\"list\\\",\\\"item\\\",\\\"index\\\",\\\"controls\\\",\\\"pop\\\",\\\"language\\\",\\\"menu\\\",\\\"email\\\",\\\"subsubstep\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"step\\\",\\\"input\\\",\\\"step\\\",\\\"step\\\",\\\"configuration\\\",\\\"preview\\\",\\\"preview\\\",\\\"preview\\\"],false,[\\\"ui-content-wizard\\\",\\\"t\\\",\\\"did-insert\\\",\\\"fn\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"amc-campaign/email-campaign/trigger\\\",\\\"each\\\",\\\"-track-array\\\",\\\"concat\\\",\\\"component\\\",\\\"hash\\\",\\\"get\\\",\\\"array-find\\\",\\\"unless\\\",\\\"not\\\",\\\"and\\\",\\\"ui-button\\\",\\\"mut\\\",\\\"equal\\\",\\\"inc\\\",\\\"ui-list-item\\\",\\\"ui-inline-edit\\\",\\\"svg-jar\\\",\\\"or\\\",\\\"ui-icon-button\\\",\\\"ui-item-menu\\\",\\\"ui-input\\\",\\\"let\\\",\\\"ui-list\\\",\\\"includes\\\",\\\"mm-medium-url-options\\\",\\\"perform\\\",\\\"did-update\\\",\\\"ui-lang-select\\\",\\\"ui-editor\\\",\\\"ui-select\\\",\\\"eq\\\",\\\"mm-resource-gallery\\\",\\\"currency-symbol\\\",\\\"amc-campaign/test-email-dialog\\\",\\\"pipe\\\",\\\"amc-campaign/email-campaign/email-series-dialog\\\",\\\"ui-preview-dialog\\\",\\\"ui-discard-changes\\\",\\\"mm-multimedia-overlay\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/email/detail/index/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/email/detail/index/email\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"mXW17ZWd\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@campaignType\\\",\\\"@modelId\\\",\\\"@isReadOnly\\\"],[\\\"email\\\",[30,0,[\\\"model\\\",\\\"id\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"multimediaOverlayContent\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[46,[28,[37,2],null,null],null,null,null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"ed\\\"],false,[\\\"amc-campaign/email-campaign/email-dialog\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/email/detail/index/email.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/email/detail/index/voucher\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"ApRTzvxy\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@campaignId\\\",\\\"@campaignType\\\",\\\"@resource\\\",\\\"@voucherModelType\\\",\\\"@openMultimedia\\\",\\\"@closeMultimedia\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"_campaignId\\\"]],\\\"email\\\",[30,0,[\\\"model\\\"]],\\\"email-campaign-voucher\\\",[28,[37,1],[[30,0],\\\"openMultimedia\\\"],null],[28,[37,1],[[30,0],\\\"closeMultimedia\\\"],null],[30,0,[\\\"_isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"multimediaOverlayContent\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"vd\\\"],false,[\\\"amc-campaign/voucher-dialog\\\",\\\"action\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/email/detail/index/voucher.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"UeyvguD8\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@theme\\\",\\\"@isWide\\\"],[[28,[37,1],[\\\"routes.campaigns.title\\\"],null],\\\"grey\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"intro\\\"]],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[\\\"mw6\\\",[28,[37,1],[\\\"campaigns.title\\\"],null],[28,[37,1],[\\\"campaigns.description\\\"],null],\\\"xl\\\",true]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pt4\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@columns\\\"],[\\\"1,2,3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@svg\\\",\\\"@title\\\",\\\"@description\\\",\\\"@isDisabled\\\",\\\"@type\\\"],[\\\"email-illustration\\\",[28,[37,1],[\\\"campaigns.categories.email.title\\\"],null],[28,[37,1],[\\\"campaigns.categories.email.description\\\"],null],[30,0,[\\\"isStarter\\\"]],\\\"email\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isStarter\\\"]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@state\\\",\\\"@classNames\\\"],[\\\"warning\\\",\\\"absolute right-3 top-3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"global.warnings.upgradeNeeded\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,3],null,[[\\\"@svg\\\",\\\"@title\\\",\\\"@description\\\",\\\"@type\\\"],[\\\"trigger-emails-illustration\\\",[28,[37,1],[\\\"campaigns.categories.triggerEmail.title\\\"],null],[28,[37,1],[\\\"campaigns.categories.triggerEmail.description\\\"],null],\\\"trigger-email\\\"]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,3],null,[[\\\"@svg\\\",\\\"@title\\\",\\\"@description\\\",\\\"@isDisabled\\\",\\\"@type\\\"],[\\\"social-networks-illustration\\\",[28,[37,1],[\\\"campaigns.categories.ad.title\\\"],null],[28,[37,1],[\\\"campaigns.categories.ad.description\\\"],null],[30,0,[\\\"isProfessional\\\"]],\\\"ad\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isProfessional\\\"]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@state\\\",\\\"@classNames\\\"],[\\\"warning\\\",\\\"absolute right-3 top-3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"global.warnings.upgradeNeeded\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,3],null,[[\\\"@svg\\\",\\\"@title\\\",\\\"@description\\\",\\\"@isDisabled\\\",\\\"@type\\\"],[\\\"on-page-illustration\\\",[28,[37,1],[\\\"campaigns.categories.onPage.title\\\"],null],[28,[37,1],[\\\"campaigns.categories.onPage.description\\\"],null],[28,[37,6],[[30,0,[\\\"gteStarter\\\"]]],null],\\\"on-page\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"gteStarter\\\"]]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@state\\\",\\\"@classNames\\\"],[\\\"warning\\\",\\\"absolute right-3 top-3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"global.warnings.upgradeNeeded\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isAdditive\\\"]],[[[1,\\\"        \\\"],[8,[39,3],null,[[\\\"@svg\\\",\\\"@title\\\",\\\"@description\\\",\\\"@type\\\"],[\\\"search-ad\\\",[28,[37,1],[\\\"campaigns.categories.searchAd.title\\\"],null],[28,[37,1],[\\\"campaigns.categories.searchAd.description\\\"],null],\\\"search-ad\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex w-100\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],null,[[\\\"@classNames\\\",\\\"@state\\\"],[\\\"absolute left-3 top-3\\\",\\\"warning\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              Beta\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"view\\\"],false,[\\\"ui-content-views\\\",\\\"t\\\",\\\"grid\\\",\\\"amc-campaign/category-card\\\",\\\"if\\\",\\\"ui-status-badge\\\",\\\"not\\\",\\\"unless\\\",\\\"ui-badge\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/on-page\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"EtDV/xJ1\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@key\\\",\\\"@modelName\\\"],[\\\"onPage\\\",\\\"on-page-campaign\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@detailRoute\\\",\\\"@filter\\\",\\\"@theme\\\",\\\"@isWide\\\"],[\\\"campaigns__list\\\",[30,0,[\\\"detailRoute\\\"]],\\\"onPage\\\",\\\"grey\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"navbar\\\"]],null,[[\\\"@breadcrumbs\\\",\\\"@hasBreadcrumbs\\\"],[[28,[37,2],null,[[\\\"currentRouteName\\\",\\\"rootName\\\"],[\\\"on-page\\\",\\\"campaigns\\\"]]],true]],null],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"intro\\\"]],null,[[\\\"@isMultiline\\\",\\\"@description\\\",\\\"@hasBreadcrumbs\\\",\\\"@breadcrumbs\\\",\\\"@size\\\"],[\\\"true\\\",[28,[37,3],[\\\"onPageCampaigns.description\\\"],null],true,[28,[37,2],null,[[\\\"currentRouteName\\\",\\\"rootName\\\"],[\\\"on-page\\\",\\\"campaigns\\\"]]],\\\"xl\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mv3\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[10,1,64,4]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"hasNoMatches\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"empty-search-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"onPageCampaigns.filter.noMatch\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"isEmpty\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"onPageCampaigns.filter.empty\\\"],[[\\\"htmlSafe\\\"],[true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@hasMobileSpacing\\\"],[[30,1,[\\\"data\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"count\\\"]],null,[[\\\"@totalCount\\\"],[[30,1,[\\\"data\\\",\\\"meta\\\",\\\"total\\\"]]]],null],[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@linkTo\\\",\\\"@linkToParam\\\",\\\"@description\\\",\\\"@isActive\\\",\\\"@state\\\"],[\\\"instance.campaigns.on-page.detail\\\",[30,4,[\\\"id\\\"]],[28,[37,3],[[28,[37,8],[\\\"onPageCampaigns.onPageCampaign.type.\\\",[30,4,[\\\"type\\\"]]],null]],null],[28,[37,9],[[30,4,[\\\"id\\\"]],[30,0,[\\\"_currentItem\\\"]]],null],[52,[30,4,[\\\"active\\\"]],\\\"success\\\",\\\"error\\\"]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,4,[\\\"title\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"timeLimited\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"watch\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"16\\\",\\\"16\\\",\\\"secondary ml1\\\"]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[44,[[30,4,[\\\"active\\\"]],\\\"onPageCampaigns.onPageCampaign.toggle.confirmation.\\\"],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@modelName\\\",\\\"@resourceId\\\",\\\"@isActive\\\",\\\"@confirmation\\\"],[\\\"on-page-campaign\\\",[30,4,[\\\"id\\\"]],[30,4,[\\\"active\\\"]],[28,[37,2],null,[[\\\"label\\\",\\\"description\\\",\\\"action\\\"],[[28,[37,3],[[28,[37,8],[[30,7],\\\"label\\\"],null]],[[\\\"active\\\"],[[30,6]]]],[28,[37,3],[[28,[37,8],[[30,7],\\\"description\\\"],null]],[[\\\"active\\\"],[[30,6]]]],[28,[37,3],[[28,[37,8],[[30,7],\\\"action\\\"],null]],[[\\\"active\\\"],[[30,6]]]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"flex justify-center items-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,13],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                        \\\"],[8,[30,9,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,3],[\\\"global.actions.rename\\\"],null],[28,[37,14],[[30,0,[\\\"openRenameDialog\\\"]],[30,4]],null]]],null],[1,\\\"\\\\n                        \\\"],[8,[30,9,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,3],[[28,[37,8],[\\\"global.actions.\\\",[52,[30,4,[\\\"active\\\"]],\\\"deactivate\\\",\\\"activate\\\"]],null]],null],[30,4,[\\\"active\\\"]],[30,8,[\\\"toggleAction\\\"]]]],null],[1,\\\"\\\\n                      \\\"]],[9]]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"]],[8]]]]],[1,\\\"\\\\n\\\"]],[6,7]]]],[]],null],[1,\\\"            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[5]]]]],[1,\\\"\\\\n        \\\"]],[3,4]]]]],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@total\\\",\\\"@setCurrentPage\\\",\\\"@currentPage\\\",\\\"@onpageChange\\\"],[[30,1,[\\\"meta\\\",\\\"lastPage\\\"]],[28,[37,14],[[28,[37,16],[[30,1,[\\\"meta\\\",\\\"currentPage\\\"]]],null]],null],[30,1,[\\\"meta\\\",\\\"currentPage\\\"]],[30,1,[\\\"actions\\\",\\\"changePage\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]],[]]]],[]]],[41,[30,0,[\\\"isCreateCampaignDialog\\\"]],[[[1,\\\"        \\\"],[8,[39,17],null,[[\\\"@onClose\\\",\\\"@filterName\\\",\\\"@title\\\"],[[28,[37,14],[[28,[37,16],[[30,0,[\\\"isCreateCampaignDialog\\\"]]],null],false],null],\\\"onPage\\\",[28,[37,3],[\\\"onPageCampaigns.create.title\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isRenameDialog\\\"]],[[[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@onClose\\\",\\\"@filterName\\\",\\\"@title\\\",\\\"@model\\\"],[[30,0,[\\\"closeRenameDialog\\\"]],\\\"onPage\\\",[28,[37,3],[\\\"global.actions.rename\\\"],null],[30,0,[\\\"selectedCampaign\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"        \\\"],[8,[39,19],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[28,[37,14],[[28,[37,16],[[30,0,[\\\"isCreateCampaignDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[46,[28,[37,21],[\\\"detail\\\"],null],null,null,null]],[\\\"f\\\",\\\"view\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"active\\\",\\\"prefix\\\",\\\"ta\\\",\\\"content\\\"],false,[\\\"ui-filterable\\\",\\\"ui-content-views\\\",\\\"hash\\\",\\\"t\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"svg-jar\\\",\\\"ui-list\\\",\\\"concat\\\",\\\"eq\\\",\\\"unless\\\",\\\"let\\\",\\\"amc-toggle-activation\\\",\\\"ui-item-menu\\\",\\\"fn\\\",\\\"ui-pagination\\\",\\\"mut\\\",\\\"amc-campaign/on-page/create-dialog\\\",\\\"amc-campaign/on-page/set-campaign-name-dialog\\\",\\\"ui-button\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/on-page.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/on-page/detail\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"hpfJ9Ojh\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\"],[[30,0,[\\\"model\\\",\\\"title\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,[[\\\"@onClose\\\"],[[28,[37,1],[[30,0],\\\"back\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"      \\\"],[8,[39,3],null,[[\\\"@modelName\\\",\\\"@resourceId\\\",\\\"@afterDelete\\\"],[\\\"on-page-campaign\\\",[30,0,[\\\"model\\\",\\\"id\\\"]],[28,[37,1],[[30,0],\\\"back\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[30,0,[\\\"model\\\",\\\"active\\\"]],\\\"onPageCampaigns.onPageCampaign.toggle.confirmation.\\\"],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@modelName\\\",\\\"@resourceId\\\",\\\"@isActive\\\",\\\"@confirmation\\\"],[\\\"on-page-campaign\\\",[30,0,[\\\"model\\\",\\\"id\\\"]],[30,4],[28,[37,6],null,[[\\\"label\\\",\\\"description\\\",\\\"action\\\"],[[28,[37,7],[[28,[37,8],[[30,5],\\\"label\\\"],null]],[[\\\"active\\\"],[[30,4]]]],[28,[37,7],[[28,[37,8],[[30,5],\\\"description\\\"],null]],[[\\\"active\\\"],[[30,4]]]],[28,[37,7],[[28,[37,8],[[30,5],\\\"action\\\"],null]],[[\\\"active\\\"],[[30,4]]]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"publish\\\",[28,[37,7],[[28,[37,8],[\\\"global.actions.\\\",[52,[30,4],\\\"deactivate\\\",\\\"activate\\\"]],null]],null],[30,6,[\\\"toggleAction\\\"]]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,7],[\\\"global.actions.rename\\\"],null],[28,[37,10],[[28,[37,11],[[30,0,[\\\"isRenameDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,4],[[[1,\\\"              \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,7],[\\\"global.actions.delete\\\"],null],true,[28,[37,1],[[30,0],\\\"showDeleteDialog\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,7],[\\\"global.actions.delete\\\"],null],true,[30,3,[\\\"deleteAction\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[4,5]]],[1,\\\"      \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"contentTop\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column flex-row-sm pb2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,12],null,[[\\\"@state\\\",\\\"@size\\\"],[[52,[30,0,[\\\"model\\\",\\\"active\\\"]],\\\"success\\\",\\\"error\\\"],\\\"sm\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@state\\\"],[[52,[30,0,[\\\"model\\\",\\\"active\\\"]],\\\"success\\\",\\\"error\\\"]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[[28,[37,8],[\\\"onPageCampaigns.onPageCampaign.active.\\\",[30,0,[\\\"model\\\",\\\"active\\\"]]],null]],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"activeFrom\\\"]],[[[1,\\\"        \\\"],[8,[39,12],null,[[\\\"@size\\\",\\\"@classNames\\\"],[\\\"sm\\\",\\\"mt1 ml1-sm mt0-sm\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,14],[\\\"watch\\\"],[[\\\"class\\\"],[\\\"pr1\\\"]]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"onPageCampaigns.onPageCampaign.activePeriod\\\"],[[\\\"from\\\",\\\"until\\\"],[[28,[37,15],[[30,0,[\\\"model\\\",\\\"activeFrom\\\"]]],null],[28,[37,15],[[30,0,[\\\"model\\\",\\\"activeUntil\\\"]]],null]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"intro\\\"]],null,[[\\\"@title\\\",\\\"@size\\\"],[[30,0,[\\\"model\\\",\\\"title\\\"]],\\\"xl\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@classNames\\\"],[\\\"mt4\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,16],null,[[\\\"@title\\\",\\\"@size\\\",\\\"@classNames\\\"],[[28,[37,7],[\\\"onPageCampaigns.onPageCampaign.configuration\\\"],null],\\\"lg\\\",\\\"pb2\\\"]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"ph05 bb b--black-10\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,0,[\\\"_configurationKeys\\\",\\\"length\\\"]],0],null],[[[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[8,1,46,2]],null],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[42,[28,[37,20],[[28,[37,20],[[30,0,[\\\"_configurationKeys\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[39,21],null,[[\\\"@item\\\",\\\"@isReadOnly\\\",\\\"@onSave\\\"],[[28,[37,22],[[30,0,[\\\"model\\\",\\\"orderedConfigurations\\\"]],[30,7]],null],[30,0,[\\\"isReadOnly\\\"]],[28,[37,23],[[30,0,[\\\"onConfigurationSave\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[7]],null]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@classNames\\\"],[\\\"mv4\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,16],null,[[\\\"@title\\\",\\\"@size\\\",\\\"@classNames\\\"],[[28,[37,7],[\\\"onPageCampaigns.onPageCampaign.visibility\\\"],null],\\\"lg\\\",\\\"pb2\\\"]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"ph05 bb b--black-10\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,0,[\\\"_widgetConfigurationKeys\\\",\\\"length\\\"]],0],null],[[[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[2,1,46,2]],null],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,20],[[28,[37,20],[[30,0,[\\\"_widgetConfigurationKeys\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[39,21],null,[[\\\"@item\\\",\\\"@isReadOnly\\\",\\\"@onSave\\\"],[[28,[37,22],[[30,0,[\\\"model\\\",\\\"orderedWidgetConfigurations\\\"]],[30,8]],null],[30,0,[\\\"isReadOnly\\\"]],[28,[37,23],[[30,0,[\\\"onConfigurationSave\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[8]],null]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@stretch\\\"],[true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"w-100 pv2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,24],null,[[\\\"@isReadOnly\\\",\\\"@campaignId\\\"],[[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"campaignId\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[8,[39,25],null,[[\\\"@role\\\"],[\\\"manager\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,26],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[28,[37,1],[[30,0],\\\"transitionToCreate\\\"],null]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRenameDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@onClose\\\",\\\"@filterName\\\",\\\"@title\\\",\\\"@model\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"isRenameDialog\\\"]]],null],false],null],\\\"onPage\\\",[28,[37,7],[\\\"global.actions.rename\\\"],null],[30,0,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[46,[28,[37,29],null,null],null,null,null]],[\\\"view\\\",\\\"nav\\\",\\\"dm\\\",\\\"active\\\",\\\"prefix\\\",\\\"ta\\\",\\\"configurationKey\\\",\\\"configurationKey\\\"],false,[\\\"ui-content-views\\\",\\\"action\\\",\\\"unless\\\",\\\"amc-delete-model\\\",\\\"let\\\",\\\"amc-toggle-activation\\\",\\\"hash\\\",\\\"t\\\",\\\"concat\\\",\\\"if\\\",\\\"fn\\\",\\\"mut\\\",\\\"ui-status-badge\\\",\\\"ui-status\\\",\\\"svg-jar\\\",\\\"format-date\\\",\\\"ui-intro\\\",\\\"equal\\\",\\\"ui-skeleton\\\",\\\"each\\\",\\\"-track-array\\\",\\\"amc-campaign/configuration-item\\\",\\\"get\\\",\\\"perform\\\",\\\"amc-campaign/on-page/on-page-content-list\\\",\\\"ui-when\\\",\\\"ui-button\\\",\\\"amc-campaign/on-page/set-campaign-name-dialog\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/on-page/detail.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/on-page/detail/content/content\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"iAVnf1CQ\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@modelId\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"model\\\",\\\"id\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"multimediaOverlayContent\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[46,[28,[37,2],null,null],null,null,null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"ed\\\"],false,[\\\"amc-campaign/on-page/content-dialog\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/on-page/detail/content/content.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/on-page/detail/content/create\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"KKKqiATP\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@campaignId\\\"],[[30,0,[\\\"campaignId\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"multimediaOverlayContent\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[46,[28,[37,2],null,null],null,null,null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"ed\\\"],false,[\\\"amc-campaign/on-page/content-dialog\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/on-page/detail/content/create.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/search-ad\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"YcYq601k\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@class\\\",\\\"@detailRoute\\\",\\\"@filter\\\",\\\"@theme\\\",\\\"@isWide\\\"],[\\\"campaigns__list\\\",[30,0,[\\\"detailRoute\\\"]],\\\"searchAdCampaign\\\",\\\"grey\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,[[\\\"@breadcrumbs\\\",\\\"@hasBreadcrumbs\\\"],[[28,[37,1],null,[[\\\"currentRouteName\\\",\\\"rootName\\\"],[\\\"search-ad\\\",\\\"campaigns\\\"]]],true]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"intro\\\"]],null,[[\\\"@isMultiline\\\",\\\"@description\\\",\\\"@hasBreadcrumbs\\\",\\\"@breadcrumbs\\\",\\\"@size\\\"],[\\\"true\\\",[28,[37,2],[\\\"searchAdCampaigns.description\\\"],null],true,[28,[37,1],null,[[\\\"currentRouteName\\\",\\\"rootName\\\"],[\\\"search-ad\\\",\\\"campaigns\\\"]]],\\\"xl\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,3],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"header\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"tab\\\"]],null,[[\\\"@routePath\\\",\\\"@tabName\\\"],[\\\"instance.campaigns.search-ad.index\\\",[28,[37,2],[\\\"searchAdCampaigns.tabs.campaigns\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"tab\\\"]],null,[[\\\"@routePath\\\",\\\"@tabName\\\"],[\\\"instance.campaigns.search-ad.ad-templates\\\",[28,[37,2],[\\\"searchAdCampaigns.tabs.ads\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"tab\\\"]],null,[[\\\"@routePath\\\",\\\"@tabName\\\"],[\\\"instance.campaigns.search-ad.extensions\\\",[28,[37,2],[\\\"searchAdCampaigns.tabs.extensions\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"tab\\\"]],null,[[\\\"@routePath\\\",\\\"@tabName\\\"],[\\\"instance.campaigns.search-ad.target-groups\\\",[28,[37,2],[\\\"searchAdCampaigns.tabs.targetGroups\\\"],null]]],null],[1,\\\"\\\\n      \\\"]],[3]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"content\\\"]],[[4,[38,4],[[28,[37,5],[[30,0,[\\\"fetchExtensionMeta\\\"]]],null]],null]],[[\\\"@stretch\\\"],[true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"flex flex-column\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[46,[28,[37,7],null,null],null,null,null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isCreateCampaignDialog\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,[[\\\"@onClose\\\",\\\"@filterName\\\",\\\"@adapterOptions\\\",\\\"@model\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"isCreateCampaignDialog\\\"]]],null],false],null],\\\"searchAdCampaign\\\",[28,[37,1],null,[[\\\"type\\\"],[\\\"Google::SearchAdsCampaign\\\"]]],[30,0,[\\\"activeModel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isCreateAdDialog\\\"]],[[[1,\\\"          \\\"],[8,[39,12],null,[[\\\"@onClose\\\",\\\"@filterName\\\",\\\"@model\\\",\\\"@meta\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"isCreateAdDialog\\\"]]],null],false],null],\\\"searchAdTemplate\\\",[30,0,[\\\"activeModel\\\"]],[30,0,[\\\"searchAdMetaData\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isCreateExtensionDialog\\\"]],[[[1,\\\"          \\\"],[8,[39,13],null,[[\\\"@onClose\\\",\\\"@filterName\\\",\\\"@meta\\\",\\\"@model\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"isCreateExtensionDialog\\\"]]],null],false],null],\\\"extension\\\",[30,0,[\\\"extensionMetaData\\\"]],[30,0,[\\\"activeModel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isCreateTargetGroupDialog\\\"]],[[[1,\\\"          \\\"],[8,[39,14],null,[[\\\"@onClose\\\",\\\"@filterName\\\",\\\"@meta\\\",\\\"@model\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"isCreateTargetGroupDialog\\\"]]],null],false],null],\\\"targetGroup\\\",[30,0,[\\\"targetGroupMetaData\\\"]],[30,0,[\\\"activeModel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isAddButtonHidden\\\"]]],[[[1,\\\"      \\\"],[8,[39,16],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[30,0,[\\\"openCreateDialog\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[46,[28,[37,7],[\\\"detail\\\"],null],null,null,null]],[\\\"view\\\",\\\"tabs\\\",\\\"header\\\"],false,[\\\"ui-content-views\\\",\\\"hash\\\",\\\"t\\\",\\\"ui-routable-tabs\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"component\\\",\\\"-outlet\\\",\\\"if\\\",\\\"amc-campaign/search-ad/create-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"amc-campaign/search-ad/ads/create-dialog\\\",\\\"amc-campaign/search-ad/extensions/create-dialog\\\",\\\"amc-campaign/search-ad/target-groups/create-dialog\\\",\\\"unless\\\",\\\"ui-button\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/search-ad.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/search-ad/ad-templates\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"+0vfzUJ/\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@key\\\",\\\"@modelName\\\"],[\\\"searchAdTemplate\\\",\\\"search-ad-template\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mv3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[10,1,64,4]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"hasNoMatches\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"empty-search-grey\\\"],null]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-md font-medium secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"searchAdCampaigns.ads.filter.noMatch\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"isEmpty\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-md font-medium secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"searchAdCampaigns.ads.filter.empty\\\"],[[\\\"htmlSafe\\\"],[true]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@hasMobileSpacing\\\"],[[30,1,[\\\"data\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"count\\\"]],null,[[\\\"@totalCount\\\"],[[30,1,[\\\"data\\\",\\\"length\\\"]]]],null],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@state\\\",\\\"@onClick\\\",\\\"@description\\\"],[\\\"success\\\",[28,[37,6],[[30,0,[\\\"openEditDialog\\\"]],[30,3]],null],[52,[30,3,[\\\"type\\\"]],[28,[37,4],[[28,[37,7],[\\\"searchAdCampaigns.ads.type.\\\",[30,3,[\\\"type\\\"]]],null]],null],\\\"\\\"]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"left\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex items-center mh1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"google\\\"],[[\\\"class\\\",\\\"height\\\",\\\"width\\\"],[\\\"secondary\\\",\\\"32\\\",\\\"32\\\"]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[30,4,[\\\"popover\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,5,[\\\"trigger\\\"]],null,null,null],[1,\\\"\\\\n          \\\"],[8,[30,5,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,3,[\\\"language\\\"]],[30,0,[\\\"meta\\\",\\\"availableLanguages\\\"]]],null],\\\"label\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[5]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[30,4,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[30,4,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@state\\\"],[\\\"warning\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            Beta\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"            \\\"],[8,[39,12],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,6,[\\\"menuItem\\\"]],null,[[\\\"@onClick\\\"],[[28,[37,6],[[30,0,[\\\"duplicate\\\"]],[30,3]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"primary font-sm font-medium\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"global.actions.duplicate\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,6,[\\\"menuItem\\\"]],null,[[\\\"@onClick\\\"],[[28,[37,6],[[30,0,[\\\"delete\\\"]],[30,3]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"red font-sm font-medium\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"global.actions.delete\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[4]]]]],[1,\\\"\\\\n    \\\"]],[2,3]]]]],[1,\\\"\\\\n    \\\"],[8,[39,13],null,[[\\\"@total\\\",\\\"@setCurrentPage\\\",\\\"@currentPage\\\",\\\"@onpageChange\\\"],[[30,1,[\\\"meta\\\",\\\"lastPage\\\"]],[28,[37,6],[[28,[37,14],[[30,1,[\\\"meta\\\",\\\"currentPage\\\"]]],null]],null],[30,1,[\\\"meta\\\",\\\"currentPage\\\"]],[30,1,[\\\"actions\\\",\\\"changePage\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]],[]]]],[]]]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,15],null,[[\\\"@onClose\\\",\\\"@filterName\\\",\\\"@isEdit\\\",\\\"@isReadOnly\\\",\\\"@model\\\",\\\"@meta\\\"],[[28,[37,6],[[28,[37,14],[[30,0,[\\\"isEditDialog\\\"]]],null],false],null],\\\"searchAdTemplate\\\",true,[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"activeModel\\\"]],[30,0,[\\\"meta\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"f\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"pop\\\",\\\"content\\\"],false,[\\\"ui-filterable\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"svg-jar\\\",\\\"t\\\",\\\"ui-list\\\",\\\"fn\\\",\\\"concat\\\",\\\"get\\\",\\\"array-find\\\",\\\"ui-badge\\\",\\\"unless\\\",\\\"ui-item-menu\\\",\\\"ui-pagination\\\",\\\"mut\\\",\\\"amc-campaign/search-ad/ads/create-dialog\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/search-ad/ad-templates.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/search-ad/extensions\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"fgJQELdy\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@key\\\",\\\"@modelName\\\"],[\\\"extension\\\",\\\"extension\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mv3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[10,1,64,4]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"hasNoMatches\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"empty-search-grey\\\"],null]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-md font-medium secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"searchAdCampaigns.extensions.filter.noMatch\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"isEmpty\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-md font-medium secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"searchAdCampaigns.extensions.filter.empty\\\"],[[\\\"htmlSafe\\\"],[true]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@totalCount\\\"],[\\\"pv2\\\",[30,1,[\\\"data\\\",\\\"length\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@meta\\\",\\\"@isReadOnly\\\",\\\"@onClick\\\",\\\"@onDelete\\\"],[[30,1,[\\\"data\\\"]],[30,0,[\\\"meta\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"openEditDialog\\\"]],[30,0,[\\\"delete\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]],[]]]],[]]]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@onClose\\\",\\\"@filterName\\\",\\\"@isReadOnly\\\",\\\"@meta\\\",\\\"@model\\\"],[[28,[37,8],[[28,[37,9],[[30,0,[\\\"isEditDialog\\\"]]],null],false],null],\\\"extension\\\",[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"meta\\\"]],[30,0,[\\\"activeModel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"f\\\"],false,[\\\"ui-filterable\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"svg-jar\\\",\\\"t\\\",\\\"ui-content-count\\\",\\\"amc-campaign/search-ad/extensions/list\\\",\\\"amc-campaign/search-ad/extensions/create-dialog\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/search-ad/extensions.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/search-ad/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"Ax/a58wZ\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@key\\\",\\\"@modelName\\\"],[\\\"searchAdCampaign\\\",\\\"search-ad-campaign\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mv3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[10,1,64,4]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"googleConnectionState\\\",\\\"isError\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"w-100 flex flex-column justify-center items-center pv2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"pb2 font-sm secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"searchAdCampaigns.errors.missingGoogleConnection.description\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,3],[\\\"searchAdCampaigns.errors.missingGoogleConnection.action\\\"],null],[30,0,[\\\"transitionToSettings\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"hasNoMatches\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"empty-search-grey\\\"],null]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-md font-medium secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"searchAdCampaigns.filter.noMatch\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"isEmpty\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-md font-medium secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"searchAdCampaigns.filter.empty\\\"],[[\\\"htmlSafe\\\"],[true]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@hasMobileSpacing\\\"],[[30,1,[\\\"data\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"count\\\"]],null,[[\\\"@totalCount\\\"],[[30,1,[\\\"data\\\",\\\"length\\\"]]]],null],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@linkTo\\\",\\\"@linkToParam\\\",\\\"@description\\\",\\\"@state\\\"],[\\\"instance.campaigns.search-ad.index.search-ad\\\",[30,3,[\\\"id\\\"]],[28,[37,3],[[28,[37,7],[\\\"searchAdCampaigns.type.\\\",[30,3,[\\\"type\\\"]]],null]],null],[30,3,[\\\"publishedState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"left\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex items-center mh1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"google\\\"],[[\\\"class\\\",\\\"height\\\",\\\"width\\\"],[\\\"secondary\\\",\\\"32\\\",\\\"32\\\"]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,3,[\\\"title\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"timeLimited\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,5],[\\\"watch\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"16\\\",\\\"16\\\",\\\"secondary ml1\\\"]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[30,4,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@state\\\"],[\\\"warning\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            Beta\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[4]]]]],[1,\\\"\\\\n    \\\"]],[2,3]]]]],[1,\\\"\\\\n    \\\"],[8,[39,9],null,[[\\\"@total\\\",\\\"@setCurrentPage\\\",\\\"@currentPage\\\",\\\"@onpageChange\\\"],[[30,1,[\\\"meta\\\",\\\"lastPage\\\"]],[28,[37,10],[[28,[37,11],[[30,1,[\\\"meta\\\",\\\"currentPage\\\"]]],null]],null],[30,1,[\\\"meta\\\",\\\"currentPage\\\"]],[30,1,[\\\"actions\\\",\\\"changePage\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]],[]]]],[]]]],[]]]],[1]]]]]],[\\\"f\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\"],false,[\\\"ui-filterable\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"t\\\",\\\"ui-button\\\",\\\"svg-jar\\\",\\\"ui-list\\\",\\\"concat\\\",\\\"ui-badge\\\",\\\"ui-pagination\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/search-ad/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/search-ad/index/search-ad\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"jaRNyEh8\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],[[4,[38,1],[[28,[37,2],[[30,0,[\\\"fetchPendingUpdates\\\"]]],null]],null],[4,[38,1],[[28,[37,2],[[30,0,[\\\"fetchAdSets\\\"]]],null]],null]],[[\\\"@onClose\\\"],[[30,0,[\\\"back\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[41,[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"isPublic\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@classNames\\\",\\\"@onClick\\\",\\\"@hideText\\\",\\\"@variant\\\"],[\\\"pause\\\",[28,[37,5],[\\\"global.actions.pause\\\"],null],\\\"mr1\\\",[28,[37,6],[[30,0,[\\\"modelAction\\\"]],\\\"pause\\\"],null],[28,[37,7],[[30,2,[\\\"actionSizes\\\"]],0],null],[30,2,[\\\"actionVariant\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"isPaused\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@classNames\\\",\\\"@onClick\\\",\\\"@hideText\\\",\\\"@variant\\\"],[\\\"video\\\",[28,[37,5],[\\\"global.actions.continue\\\"],null],\\\"mr1\\\",[28,[37,6],[[30,0,[\\\"modelAction\\\"]],\\\"publish\\\"],null],[28,[37,7],[[30,2,[\\\"actionSizes\\\"]],0],null],[30,2,[\\\"actionVariant\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"isDraft\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@classNames\\\",\\\"@onClick\\\",\\\"@hideText\\\",\\\"@variant\\\"],[\\\"publish\\\",[28,[37,5],[\\\"global.actions.publish\\\"],null],\\\"mr1\\\",[28,[37,6],[[28,[37,8],[[30,0,[\\\"isPublishDialog\\\"]]],null],true],null],[28,[37,7],[[30,2,[\\\"actionSizes\\\"]],0],null],[30,2,[\\\"actionVariant\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"isExpired\\\"]],[[[1,\\\"        \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@classNames\\\",\\\"@onClick\\\",\\\"@isDisabled\\\",\\\"@hideText\\\",\\\"@variant\\\"],[\\\"publish\\\",[28,[37,5],[\\\"global.actions.unpublish\\\"],null],\\\"mr1\\\",[30,0,[\\\"onPublish\\\"]],[28,[37,9],[[30,0,[\\\"isValid\\\"]]],null],[28,[37,7],[[30,2,[\\\"actionSizes\\\"]],0],null],[30,2,[\\\"actionVariant\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,10],[[24,0,\\\"ohidden\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[6,[39,11],[[30,0,[\\\"showUpdateNotification\\\"]]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"        \\\"],[8,[39,12],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@buttonText\\\",\\\"@onButtonClick\\\"],[\\\"mt1\\\",\\\"reload\\\",[28,[37,5],[\\\"searchAdCampaigns.updateNotification\\\"],[[\\\"htmlSafe\\\"],[true]]],[28,[37,5],[\\\"global.actions.update\\\"],null],[28,[37,6],[[28,[37,8],[[30,0,[\\\"isPendingUpdatesDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"pv3 dib\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@state\\\"],[[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"publishedState\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,14],null,[[\\\"@state\\\"],[[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"publishedState\\\"]]]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"font-medium font-sm mr1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"campaignState\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary pt1\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"searchAdCampaigns.type.Google::SearchAdsCampaign\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex items-center font-xl font-medium primary pb3\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"title\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"landingPage\\\"]],[30,0,[\\\"meta\\\",\\\"landingPages\\\"]]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@url\\\",\\\"@hasClipboard\\\"],[[30,0,[\\\"finalUrl\\\"]],true]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,17],null,[[\\\"@classNames\\\"],[\\\"mb2 mt3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"targetGroup\\\"]],[[[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"searchAdCampaigns.properties.targetGroup\\\"],null],[28,[37,7],[[28,[37,19],[[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"targetGroup\\\"]],[30,0,[\\\"selectableTargetGroups\\\"]]],null],\\\"label\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"targetGoals\\\"]],[[[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"searchAdCampaigns.properties.targetGoals\\\"],null],[30,0,[\\\"selectedTargetGoals\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"useDefaultTargetGoals\\\"]],[[[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"searchAdCampaigns.properties.targetGoals\\\"],null],[28,[37,5],[\\\"searchAdCampaigns.properties.defaultTargetGoals.label\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"bid\\\"]],[30,0,[\\\"meta\\\",\\\"bids\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"searchAdCampaigns.properties.bids\\\"],null],[28,[37,7],[[28,[37,19],[[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"bid\\\"]],[30,0,[\\\"meta\\\",\\\"bids\\\"]]],null],\\\"label\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"startDate\\\"]],[[[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"searchAdCampaigns.properties.startDate\\\"],null],[28,[37,20],[[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"startDate\\\"]]],[[\\\"format\\\"],[\\\"ddmmyyyy\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"endDate\\\"]],[[[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"searchAdCampaigns.properties.endDate\\\"],null],[52,[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"unlimitedDuration\\\"]],[28,[37,5],[\\\"searchAdCampaigns.properties.unlimitedDuration.title\\\"],null],[28,[37,20],[[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"endDate\\\"]]],[[\\\"format\\\"],[\\\"ddmmyyyy\\\"]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"postfix\\\"]],[[[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"searchAdCampaigns.properties.postfix\\\"],null],[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"postfix\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"dailyBudget\\\"]],[[[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@content\\\"],[[28,[37,5],[\\\"searchAdCampaigns.properties.dailyBudget\\\"],null],[28,[37,21],[[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"dailyBudget\\\"]],\\\"EUR\\\",[30,0,[\\\"currentUser\\\",\\\"user\\\",\\\"language\\\"]],2,2,1],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"fetchExtensions\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,22],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,2,2,76,16]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"additionalInformationExtensions\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary pt1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"searchAdCampaigns.properties.additionalInformation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"flex flex-wrap mt1\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,24],[[28,[37,24],[[30,0,[\\\"additionalInformationExtensions\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,25],null,[[\\\"@classNames\\\",\\\"@theme\\\",\\\"@isReadOnly\\\"],[\\\"mr1 mb1\\\",\\\"grey\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"siteLinkExtensions\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary pt1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"searchAdCampaigns.properties.siteLinks\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"flex flex-wrap mt1\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,24],[[28,[37,24],[[30,0,[\\\"siteLinkExtensions\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,25],null,[[\\\"@classNames\\\",\\\"@theme\\\",\\\"@isReadOnly\\\"],[\\\"mr1 mb1\\\",\\\"grey\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex items-center font-lg font-medium primary pb2 pt3\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"searchAdCampaigns.preview.title\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,26],[[30,0,[\\\"fetchAdSets\\\",\\\"isRunning\\\"]],[30,0,[\\\"updateAdSet\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"      \\\"],[8,[39,22],null,[[\\\"@itemsPerRow\\\",\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[1,3,3,134,8]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"adSets\\\",\\\"length\\\"]],[[[42,[28,[37,24],[[28,[37,24],[[30,0,[\\\"adSets\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex mb2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,27],null,[[\\\"@model\\\",\\\"@isReadOnly\\\",\\\"@adSet\\\",\\\"@onAdSetChange\\\"],[[30,0,[\\\"model\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,5],[28,[37,2],[[30,0,[\\\"updateAdSet\\\"]]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,28],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"font-md font-medium secondary\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"searchAdCampaigns.noAds\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,29],null,[[\\\"@class\\\",\\\"@isFabButton\\\",\\\"@icon\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",true,\\\"edit\\\",[30,0,[\\\"openEdit\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isPublishDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@changeset\\\",\\\"@intlBaseKey\\\",\\\"@validationProperties\\\",\\\"@onClose\\\",\\\"@onPublish\\\"],[[30,0,[\\\"publishChangeset\\\"]],\\\"searchAdCampaigns.publishDialog\\\",[30,0,[\\\"validationProperties\\\"]],[28,[37,6],[[28,[37,8],[[30,0,[\\\"isPublishDialog\\\"]]],null],false],null],[30,0,[\\\"onPublish\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isPendingUpdatesDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,31],null,[[\\\"@pendingUpdates\\\",\\\"@onClose\\\",\\\"@onUpdate\\\",\\\"@model\\\"],[[30,0,[\\\"pendingUpdates\\\"]],[28,[37,6],[[28,[37,8],[[30,0,[\\\"isPendingUpdatesDialog\\\"]]],null],false],null],[30,0,[\\\"onUpdate\\\"]],[30,0,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"view\\\",\\\"nav\\\",\\\"extension\\\",\\\"extension\\\",\\\"adSet\\\"],false,[\\\"ui-content-views\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"unless\\\",\\\"if\\\",\\\"t\\\",\\\"fn\\\",\\\"get\\\",\\\"mut\\\",\\\"not\\\",\\\"animated-container\\\",\\\"animated-if\\\",\\\"ui-inline-notification\\\",\\\"ui-status-badge\\\",\\\"ui-status\\\",\\\"and\\\",\\\"amc-url-preview\\\",\\\"ui-content-info\\\",\\\"ui-info-item\\\",\\\"array-find\\\",\\\"format-date\\\",\\\"ui-format-currency\\\",\\\"ui-skeleton\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ui-chip\\\",\\\"or\\\",\\\"amc-campaign/search-ad/ad-set-preview\\\",\\\"svg-jar\\\",\\\"ui-button\\\",\\\"amc-campaign/ads/advertisements/publish-dialog\\\",\\\"amc-campaign/search-ad/pending-updates-dialog\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/search-ad/index/search-ad.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/search-ad/index/search-ad/edit\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"EcCIrrpL\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,[[\\\"@onClose\\\",\\\"@isMenuHidden\\\"],[[30,0,[\\\"onBack\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"button\\\"]],null,[[\\\"@label\\\",\\\"@icon\\\",\\\"@isDisabled\\\",\\\"@onClick\\\"],[[28,[37,1],[\\\"global.actions.save\\\"],null],\\\"save\\\",[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"save\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"main\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"pv2 pv3-sm pv4-md\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-medium font-sm secondary pv2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.type.Google::SearchAdsCampaign\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-medium font-xl primary mb4 pb1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"searchAdCampaign\\\",\\\"title\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"changeset\\\",\\\"adSets\\\",\\\"length\\\"]],[[[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"changeset\\\",\\\"adSets\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[39,5],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"ellipsis mr1\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,5,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"w-50 justify-end flex-wrap ohidden font-sm primary\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"keywords\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[8,[39,6],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[8,[30,6,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"flex flex-column ph2\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"mb05\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,7],[[30,3,[\\\"keywords\\\",\\\"length\\\"]]],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"secondary\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.adSet.properties.keywords\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                  \\\"],[8,[30,6,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,3,[\\\"keywords\\\"]]],null]],null],null,[[[1,\\\"                      \\\"],[10,0],[14,0,\\\"flex items-center justify-between pv05\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"                  \\\"]],[]]]]],[1,\\\"\\\\n                \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"adTemplates\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[8,[39,6],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[8,[30,8,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"flex flex-column ph2\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"mb05\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,7],[[30,3,[\\\"adTemplates\\\",\\\"length\\\"]]],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"secondary\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.adSet.properties.ads\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                  \\\"],[8,[30,8,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,3,[\\\"adTemplates\\\"]]],null]],null],null,[[[1,\\\"                      \\\"],[10,0],[14,0,\\\"flex items-center justify-between pv05\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[30,9,[\\\"label\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"                  \\\"]],[]]]]],[1,\\\"\\\\n                \\\"]],[8]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"              \\\"],[8,[30,5,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[39,9],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@isSecondary\\\",\\\"@onClick\\\"],[\\\"mv1\\\",\\\"edit\\\",true,[28,[37,10],[[30,0,[\\\"onAdSetEdit\\\"]],[30,3],[30,4]],null]]],null],[1,\\\"\\\\n                \\\"],[8,[39,9],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[\\\"mv1\\\",\\\"delete\\\",true,[28,[37,10],[[30,0,[\\\"onAdSetDelete\\\"]],[30,4]],null]]],null],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[3,4]],null]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pv4 mv4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.noAdSet\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"        \\\"],[8,[39,12],null,[[\\\"@classNames\\\",\\\"@icon\\\",\\\"@isSecondary\\\",\\\"@label\\\",\\\"@onClick\\\"],[[52,[30,0,[\\\"changeset\\\",\\\"adSets\\\",\\\"length\\\"]],\\\"mt3\\\"],\\\"plus\\\",true,[28,[37,1],[\\\"searchAdCampaigns.createAdSet\\\"],null],[28,[37,10],[[28,[37,13],[[30,0,[\\\"isAdSetCreateDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"red font-xs\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"adSets\\\",\\\"validation\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"font-medium font-lg primary pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.properties.extensions\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"fetchExtensions\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@class\\\",\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\"],[\\\"mt1\\\",1,1,1,64]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,15],null,[[\\\"@label\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"searchAdCampaigns.properties.additionalInformation\\\"],null],true,\\\"label\\\",true,true,[30,0,[\\\"selectedAdditionalInformation\\\"]],[30,0,[\\\"selectedAdditionalInformation\\\"]],[30,0,[\\\"selectableAdditionalInformation\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,10],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"extensions\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,10,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,11]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,11,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[10,11]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,15],null,[[\\\"@label\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"searchAdCampaigns.properties.siteLinks\\\"],null],true,\\\"label\\\",true,true,[30,0,[\\\"selectedSiteLinks\\\"]],[30,0,[\\\"selectedSiteLinks\\\"]],[30,0,[\\\"selectableSiteLinks\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,10],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"extensions\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,12,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,13]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,13,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[12,13]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"detail\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-column pt4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fetchTargetGroups\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@class\\\",\\\"@gap\\\",\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\"],[\\\"mv05\\\",20,1,1,1,64]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,15],null,[[\\\"@label\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"searchAdCampaigns.properties.targetGroup\\\"],null],\\\"label\\\",true,true,[28,[37,16],[[28,[37,17],[[30,0,[\\\"changeset\\\",\\\"targetGroup\\\"]],[30,0,[\\\"selectableTargetGroups\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"selectableTargetGroups\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"targetGroup\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,10],[[30,0,[\\\"selectProperty\\\"]],\\\"targetGroup\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,14,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,15]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,15,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[14,15]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fetchMetadata\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@class\\\",\\\"@gap\\\",\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\"],[\\\"mv05\\\",20,1,1,1,64]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,15],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@errorMessage\\\"],[[28,[37,1],[\\\"searchAdCampaigns.properties.bids\\\"],null],[30,0,[\\\"selectableBids\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"changeset\\\",\\\"bid\\\"]],[30,0,[\\\"selectableBids\\\"]]],null],\\\"label\\\"],null],[28,[37,10],[[30,0,[\\\"selectProperty\\\"]],\\\"bid\\\"],null],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"bid\\\",\\\"validation\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,16,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,17]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,17,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[16,17]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex items-center font-medium mt1 mb3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@isReadOnly\\\",\\\"@value\\\",\\\"@onChange\\\"],[\\\"ml0 mr1 mv05\\\",[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"changeset\\\",\\\"displayNetwork\\\"]],[28,[37,10],[[28,[37,13],[[30,0,[\\\"changeset\\\",\\\"displayNetwork\\\"]]],null]],null]]],null],[1,\\\"\\\\n        \\\"],[10,1],[15,0,[29,[\\\"pl05 \\\",[52,[30,0,[\\\"changeset\\\",\\\"displayNetwork\\\"]],\\\"blue\\\",\\\"secondary\\\"]]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.properties.displayNetwork\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex items-center font-medium mt1 mb3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@isReadOnly\\\",\\\"@value\\\",\\\"@onChange\\\"],[\\\"ml0 mr1 mv05\\\",[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"changeset\\\",\\\"searchPartner\\\"]],[28,[37,10],[[28,[37,13],[[30,0,[\\\"changeset\\\",\\\"searchPartner\\\"]]],null]],null]]],null],[1,\\\"\\\\n        \\\"],[10,1],[15,0,[29,[\\\"pl05 \\\",[52,[30,0,[\\\"changeset\\\",\\\"searchPartner\\\"]],\\\"blue\\\",\\\"secondary\\\"]]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.properties.searchPartner\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,19],null,[[\\\"@label\\\",\\\"@minDate\\\",\\\"@initialDate\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onConfirm\\\"],[[28,[37,1],[\\\"searchAdCampaigns.properties.startDate\\\"],null],[30,0,[\\\"minDate\\\"]],[30,0,[\\\"changeset\\\",\\\"startDate\\\"]],[30,0,[\\\"isDateTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,10],[[30,0,[\\\"onChangeDate\\\"]],\\\"startDate\\\"],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"changeset\\\",\\\"unlimitedDuration\\\"]]],[[[1,\\\"        \\\"],[8,[39,19],null,[[\\\"@label\\\",\\\"@errorMessage\\\",\\\"@initialDate\\\",\\\"@minDate\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onConfirm\\\"],[[28,[37,1],[\\\"searchAdCampaigns.properties.endDate\\\"],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"endDate\\\",\\\"validation\\\",\\\"firstObject\\\"]],[30,0,[\\\"changeset\\\",\\\"endDate\\\"]],[30,0,[\\\"minEndDate\\\"]],[30,0,[\\\"isDateTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,10],[[30,0,[\\\"onChangeDate\\\"]],\\\"endDate\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex items-center mb2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\",\\\"@class\\\"],[[28,[37,1],[\\\"searchAdCampaigns.properties.unlimitedDuration.title\\\"],null],[30,0,[\\\"changeset\\\",\\\"unlimitedDuration\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"onUnlimitedDurationChange\\\"]],\\\"ml0 mr1 mv05\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,6],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,18,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,11],[\\\"info\\\"],[[\\\"class\\\"],[\\\"secondary\\\"]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,18,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.properties.unlimitedDuration.description\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[18]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"fetchMetadata\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@class\\\",\\\"@gap\\\",\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\"],[\\\"mv05\\\",20,1,1,1,64]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,15],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"searchAdCampaigns.properties.landingPage\\\"],null],[30,0,[\\\"selectableLandingPages\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"changeset\\\",\\\"landingPage\\\"]],[30,0,[\\\"selectableLandingPages\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"landingPage\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,10],[[30,0,[\\\"selectProperty\\\"]],\\\"landingPage\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,19,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,20]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,20,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[19,20]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[8,[39,20],[[24,0,\\\"ohidden\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[6,[39,21],[[28,[37,22],[[30,0,[\\\"changeset\\\",\\\"landingPage\\\"]],[30,0,[\\\"selectableLandingPages\\\"]]],null]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"          \\\"],[8,[39,15],null,[[\\\"@label\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@errorMessage\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"searchAdCampaigns.properties.landingPageLanguage\\\"],null],[30,0,[\\\"availableLandingPageLanguages\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"changeset\\\",\\\"landingPageLanguage\\\"]],[30,0,[\\\"availableLandingPageLanguages\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"landingPageLanguage\\\",\\\"validation\\\"]],[28,[37,10],[[30,0,[\\\"selectProperty\\\"]],\\\"landingPageLanguage\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,21,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,22]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,22,[\\\"label\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[21,22]]]]],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"font-medium font-lg primary pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.properties.targetGoals\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex items-center font-medium mt1 mb3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@value\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[\\\"ml0 mr1 mv05\\\",[30,0,[\\\"changeset\\\",\\\"useDefaultTargetGoals\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"onBidChange\\\"]]]],null],[1,\\\"\\\\n        \\\"],[10,1],[15,0,[29,[\\\"pl05 mr1 \\\",[52,[30,0,[\\\"changeset\\\",\\\"useDefaultTargetGoals\\\"]],\\\"blue\\\",\\\"secondary\\\"]]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.properties.defaultTargetGoals.label\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,6],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,23,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,11],[\\\"info\\\"],[[\\\"class\\\"],[\\\"secondary\\\"]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,23,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.properties.defaultTargetGoals.description\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[23]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[6,[39,21],[[28,[37,23],[[30,0,[\\\"changeset\\\",\\\"useDefaultTargetGoals\\\"]]],null]],[[\\\"use\\\"],[[30,0,[\\\"_animatedTransition\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"        \\\"],[8,[39,15],null,[[\\\"@label\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@isSearchable\\\",\\\"@useFullTextSearch\\\",\\\"@initialValue\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"searchAdCampaigns.properties.targetGoals\\\"],null],true,\\\"label\\\",true,true,[30,0,[\\\"changeset\\\",\\\"targetGoals\\\"]],[30,0,[\\\"changeset\\\",\\\"targetGoals\\\"]],[30,0,[\\\"selectableTargetGoals\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"targetGoals\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],[28,[37,10],[[30,0,[\\\"onMultiSelectChange\\\"]],\\\"targetGoals\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,24,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,25]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,25,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[24,25]]]]],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-medium font-lg primary pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.properties.budget\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,24],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@type\\\"],[[28,[37,1],[\\\"searchAdCampaigns.properties.dailyBudget\\\"],null],[30,0,[\\\"changeset\\\",\\\"dailyBudget\\\"]],[28,[37,10],[[28,[37,13],[[30,0,[\\\"changeset\\\",\\\"dailyBudget\\\"]]],null]],null],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"dailyBudget\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],\\\"number\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,26,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"uiAppSettings\\\",\\\"currency\\\"]]],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[26]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"font-medium font-lg primary pt3 pb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"searchAdCampaigns.properties.tracking\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,24],null,[[\\\"@label\\\",\\\"@value\\\",\\\"@errorMessage\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\"],[[28,[37,1],[\\\"searchAdCampaigns.properties.postfix\\\"],null],[30,0,[\\\"changeset\\\",\\\"postfix\\\"]],[30,0,[\\\"changeset\\\",\\\"error\\\",\\\"postfix\\\",\\\"validation\\\"]],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,24],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@value\\\",\\\"@onChange\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@maxlength\\\"],[\\\"mr1\\\",[28,[37,1],[\\\"searchAdCampaigns.properties.displayedPath\\\"],null],[30,0,[\\\"changeset\\\",\\\"displayedPath\\\",\\\"first\\\"]],[28,[37,10],[[30,0,[\\\"changeDisplayedPath\\\"]],\\\"first\\\"],null],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],\\\"15\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,27,[\\\"left\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            /\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[27]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,24],null,[[\\\"@value\\\",\\\"@onChange\\\",\\\"@isTouched\\\",\\\"@isReadOnly\\\",\\\"@maxlength\\\"],[[30,0,[\\\"changeset\\\",\\\"displayedPath\\\",\\\"second\\\"]],[28,[37,10],[[30,0,[\\\"changeDisplayedPath\\\"]],\\\"second\\\"],null],[30,0,[\\\"isTouched\\\"]],[30,0,[\\\"isReadOnly\\\"]],\\\"15\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,28,[\\\"left\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            /\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[28]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"displayedPathError\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"font-medium font-xs red\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"displayedPathError\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-sm font-medium secondary mb2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"finalUrl\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isAdSetCreateDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@onClose\\\",\\\"@onSave\\\",\\\"@selectedAdSet\\\"],[[30,0,[\\\"onCloseAdSetDialog\\\"]],[30,0,[\\\"onAdSetSave\\\"]],[30,0,[\\\"selectedAdSet\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,27],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChangesDialog\\\"]],[30,0,[\\\"discardChanges\\\"]]]],null]],[\\\"view\\\",\\\"nav\\\",\\\"item\\\",\\\"index\\\",\\\"controls\\\",\\\"pop\\\",\\\"keyword\\\",\\\"pop\\\",\\\"adTemplate\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"option\\\",\\\"item\\\",\\\"pop\\\",\\\"option\\\",\\\"item\\\",\\\"option\\\",\\\"item\\\",\\\"pop\\\",\\\"optionComponent\\\",\\\"option\\\",\\\"input\\\",\\\"input\\\",\\\"input\\\"],false,[\\\"ui-form-view\\\",\\\"t\\\",\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ui-list-item\\\",\\\"ui-popover\\\",\\\"format-number\\\",\\\"unless\\\",\\\"ui-icon-button\\\",\\\"fn\\\",\\\"svg-jar\\\",\\\"ui-button\\\",\\\"mut\\\",\\\"ui-skeleton\\\",\\\"ui-select\\\",\\\"get\\\",\\\"array-find\\\",\\\"ui-switch\\\",\\\"ui-datepicker\\\",\\\"animated-container\\\",\\\"animated-if\\\",\\\"and\\\",\\\"not\\\",\\\"ui-input\\\",\\\"currency-symbol\\\",\\\"amc-campaign/search-ad/ad-set-create-dialog\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/search-ad/index/search-ad/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/search-ad/target-groups\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"7X3o8LWk\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@key\\\",\\\"@modelName\\\"],[\\\"targetGroup\\\",\\\"target-group\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mv3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[10,1,64,4]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"googleConnectionState\\\",\\\"isError\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"w-100 flex flex-column justify-center items-center pv2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"pb2 font-sm secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"searchAdCampaigns.errors.missingGoogleConnection.description\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,3],[\\\"searchAdCampaigns.errors.missingGoogleConnection.action\\\"],null],[30,0,[\\\"transitionToSettings\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"hasNoMatches\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"empty-search-grey\\\"],null]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-md font-medium secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"searchAdCampaigns.targetGroups.filter.noMatch\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"isEmpty\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-md font-medium secondary\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"searchAdCampaigns.targetGroups.filter.empty\\\"],[[\\\"htmlSafe\\\"],[true]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@items\\\",\\\"@hasMobileSpacing\\\"],[[30,1,[\\\"data\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"count\\\"]],null,[[\\\"@totalCount\\\"],[[30,1,[\\\"data\\\",\\\"length\\\"]]]],null],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@onClick\\\",\\\"@isReadOnly\\\"],[[28,[37,7],[[30,0,[\\\"openEditDialog\\\"]],[30,3]],null],[30,0,[\\\"_isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,4,[\\\"state\\\"]]],[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[30,4,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@state\\\"],[\\\"warning\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            Beta\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"            \\\"],[8,[39,10],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"menuItem\\\"]],null,[[\\\"@onClick\\\"],[[28,[37,7],[[30,0,[\\\"delete\\\"]],[30,3]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"red font-sm font-medium\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,3],[\\\"global.actions.delete\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[4]]]]],[1,\\\"\\\\n    \\\"]],[2,3]]]]],[1,\\\"\\\\n    \\\"],[8,[39,11],null,[[\\\"@total\\\",\\\"@setCurrentPage\\\",\\\"@currentPage\\\",\\\"@onpageChange\\\"],[[30,1,[\\\"meta\\\",\\\"lastPage\\\"]],[28,[37,7],[[28,[37,12],[[30,1,[\\\"meta\\\",\\\"currentPage\\\"]]],null]],null],[30,1,[\\\"meta\\\",\\\"currentPage\\\"]],[30,1,[\\\"actions\\\",\\\"changePage\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]],[]]]],[]]]],[]]]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,13],null,[[\\\"@onClose\\\",\\\"@filterName\\\",\\\"@isReadOnly\\\",\\\"@isLoading\\\",\\\"@meta\\\",\\\"@model\\\"],[[28,[37,7],[[28,[37,12],[[30,0,[\\\"isEditDialog\\\"]]],null],false],null],\\\"targetGroup\\\",[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"fetchMeta\\\",\\\"isRunning\\\"]],[30,0,[\\\"meta\\\"]],[30,0,[\\\"activeModel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"f\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"content\\\"],false,[\\\"ui-filterable\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"t\\\",\\\"ui-button\\\",\\\"svg-jar\\\",\\\"ui-list\\\",\\\"fn\\\",\\\"ui-badge\\\",\\\"unless\\\",\\\"ui-item-menu\\\",\\\"ui-pagination\\\",\\\"mut\\\",\\\"amc-campaign/search-ad/target-groups/create-dialog\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/search-ad/target-groups.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/trigger-email\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"CvB6N+qJ\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@key\\\",\\\"@modelName\\\"],[\\\"trigger-email\\\",\\\"trigger-email-campaign\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@class\\\",\\\"@detailRoute\\\",\\\"@filter\\\",\\\"@theme\\\",\\\"@isWide\\\"],[\\\"campaigns__list\\\",[30,0,[\\\"activeDetail\\\"]],\\\"trigger-email\\\",\\\"grey\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"navbar\\\"]],null,[[\\\"@breadcrumbs\\\",\\\"@hasBreadcrumbs\\\"],[[28,[37,2],null,[[\\\"currentRouteName\\\",\\\"rootName\\\"],[\\\"trigger-email\\\",\\\"campaigns\\\"]]],true]],null],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"intro\\\"]],null,[[\\\"@description\\\",\\\"@hasBreadcrumbs\\\",\\\"@isMultiline\\\",\\\"@breadcrumbs\\\",\\\"@size\\\"],[[28,[37,3],[\\\"triggerEmailCampaigns.description\\\"],null],true,true,[28,[37,2],null,[[\\\"currentRouteName\\\",\\\"rootName\\\"],[\\\"trigger-email\\\",\\\"campaigns\\\"]]],\\\"xl\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mv3\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[10,1,64,4]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"hasNoMatches\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"empty-search-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"triggerEmailCampaigns.filter.noMatch\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"isEmpty\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center pt4 mt4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"triggerEmailCampaigns.filter.empty\\\"],[[\\\"htmlSafe\\\"],[true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@hasMobileSpacing\\\"],[[30,1,[\\\"data\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"count\\\"]],null,[[\\\"@totalCount\\\"],[[30,1,[\\\"data\\\",\\\"meta\\\",\\\"total\\\"]]]],null],[1,\\\"\\\\n          \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@class\\\",\\\"@linkTo\\\",\\\"@linkToParam\\\",\\\"@description\\\",\\\"@hasFixedHeight\\\",\\\"@isActive\\\",\\\"@state\\\"],[\\\"h-auto\\\",\\\"instance.campaigns.trigger-email.detail.index\\\",[30,4,[\\\"id\\\"]],[30,4,[\\\"label\\\"]],false,[28,[37,8],[[30,4,[\\\"id\\\"]],[30,0,[\\\"_currentItem\\\",\\\"id\\\"]]],null],[52,[28,[37,8],[[30,4,[\\\"state\\\",\\\"code\\\"]],\\\"active\\\"],null],\\\"success\\\",[52,[28,[37,8],[[30,4,[\\\"state\\\",\\\"code\\\"]],\\\"deactivated\\\"],null],\\\"error\\\",\\\"warning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"state\\\"]],null,null,null],[1,\\\"\\\\n            \\\"],[8,[30,5,[\\\"title\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"ellipsis\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"title\\\"]],[[[1,\\\"                  \\\"],[1,[30,4,[\\\"title\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,4,[\\\"name\\\"]],[[[1,\\\"                  \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"]],[]],null]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"isLocked\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"lock-closed\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"16\\\",\\\"16\\\",\\\"secondary ml1\\\"]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,4,[\\\"timeLimited\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"watch\\\"],[[\\\"width\\\",\\\"height\\\",\\\"class\\\"],[\\\"16\\\",\\\"16\\\",\\\"secondary ml1\\\"]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[5]]]]],[1,\\\"\\\\n        \\\"]],[3,4]]]]],[1,\\\"\\\\n        \\\"],[8,[39,9],null,[[\\\"@total\\\",\\\"@setCurrentPage\\\",\\\"@currentPage\\\",\\\"@onPageChange\\\"],[[30,1,[\\\"meta\\\",\\\"lastPage\\\"]],[28,[37,10],[[28,[37,11],[[30,1,[\\\"meta\\\",\\\"currentPage\\\"]]],null]],null],[30,1,[\\\"meta\\\",\\\"currentPage\\\"]],[30,1,[\\\"actions\\\",\\\"changePage\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]],[]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"      \\\"],[8,[30,2,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[28,[37,10],[[28,[37,11],[[30,0,[\\\"isCreateCampaignDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,14],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@isOpen\\\",\\\"@onClose\\\"],[[28,[37,3],[\\\"triggerEmailCampaigns.createDialog.title\\\"],null],[28,[37,3],[\\\"triggerEmailCampaigns.createDialog.description\\\"],null],[30,0,[\\\"isCreateCampaignDialog\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"isCreateCampaignDialog\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[46,[28,[37,16],[\\\"detail\\\"],null],null,null,null]],[\\\"f\\\",\\\"view\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\"],false,[\\\"ui-filterable\\\",\\\"ui-content-views\\\",\\\"hash\\\",\\\"t\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"svg-jar\\\",\\\"ui-list\\\",\\\"eq\\\",\\\"ui-pagination\\\",\\\"fn\\\",\\\"mut\\\",\\\"unless\\\",\\\"ui-button\\\",\\\"amc-campaign/trigger-email-campaign/create-dialog\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/trigger-email.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/trigger-email/detail\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"IOh9d0/A\",\n    \"block\": \"[[[41,[30,0,[\\\"_isNewView\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@model\\\",\\\"@onClose\\\",\\\"@isReadOnly\\\",\\\"@setInitialEditorStep\\\",\\\"@createEmail\\\",\\\"@onPublish\\\"],[[30,0,[\\\"model\\\"]],[30,0,[\\\"back\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"setInitialEditorStep\\\"]],[30,0,[\\\"createEmail\\\"]],[30,0,[\\\"openPublishDialog\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isPublishDialog\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@model\\\",\\\"@hasBackButton\\\",\\\"@onClose\\\"],[[30,0,[\\\"model\\\"]],[30,0,[\\\"isEditorOpened\\\"]],[30,0,[\\\"closePublishDialog\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@title\\\"],[[30,0,[\\\"model\\\",\\\"title\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"navbar\\\"]],[[16,\\\"data-test-detail-navbar\\\",true]],[[\\\"@onClose\\\"],[[28,[37,6],[[30,0],\\\"back\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,7],null,[[\\\"@role\\\"],[\\\"manager\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[30,0,[\\\"model\\\",\\\"active\\\"]],\\\"triggerEmailCampaigns.triggerEmailCampaign.toggle.confirmation.\\\"],[[[1,\\\"          \\\"],[8,[39,9],null,[[\\\"@modelName\\\",\\\"@resourceId\\\",\\\"@isActive\\\",\\\"@confirmation\\\"],[\\\"trigger-email-campaign\\\",[30,0,[\\\"model\\\",\\\"id\\\"]],[30,3],[28,[37,10],null,[[\\\"label\\\",\\\"description\\\",\\\"action\\\"],[[28,[37,11],[[28,[37,12],[[30,4],\\\"label\\\"],null]],[[\\\"active\\\"],[[30,3]]]],[28,[37,11],[[28,[37,12],[[30,4],\\\"description\\\"],null]],[[\\\"active\\\"],[[30,3]]]],[28,[37,11],[[28,[37,12],[[30,4],\\\"action\\\"],null]],[[\\\"active\\\"],[[30,3]]]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,11],[\\\"testEmail.title\\\"],null],[28,[37,13],[[28,[37,14],[[30,0,[\\\"_isTestEmailDialogOpen\\\"]]],null],true],null]]],null],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"action\\\"]],[[16,\\\"data-test-toggle-activate\\\",true]],[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,11],[[28,[37,12],[\\\"global.actions.\\\",[52,[30,3],\\\"deactivate\\\",\\\"activate\\\"]],null]],null],[30,5,[\\\"toggleAction\\\"]]]],null],[1,\\\"\\\\n          \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[3,4]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[8,[39,15],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@title\\\",\\\"@state\\\",\\\"@message\\\"],[[30,0,[\\\"model\\\",\\\"title\\\"]],[30,0,[\\\"model\\\",\\\"state\\\",\\\"code\\\"]],[30,0,[\\\"model\\\",\\\"state\\\",\\\"message\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[2,1,48,4]],null],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[3,1,48,4]],null],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[3,1,48,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isError\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"flex flex-column w-100 justify-center items-center pt3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"pb2 font-sm secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,11],[\\\"triggerEmailCampaigns.emails.error\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,11],[\\\"global.actions.retry\\\"],null],[28,[37,19],[[30,0,[\\\"fetchEmailMeta\\\"]]],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"font-lg primary pv3\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,11],[\\\"triggerEmailCampaigns.configure.campaignInfo\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"bt bb b--secondary-10 h2 flex items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"w-50 font-sm primary\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,11],[\\\"triggerEmailCampaigns.configure.trackingCode\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"w-50 font-sm secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"model\\\",\\\"code\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"voucher\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"font-lg primary pv3\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,11],[\\\"campaigns.voucher.title\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@resource\\\",\\\"@isReadOnly\\\",\\\"@voucherModelType\\\",\\\"@onVoucherDetailOpen\\\"],[[30,0,[\\\"model\\\"]],[30,0,[\\\"isReadOnly\\\"]],\\\"email-campaign-voucher\\\",[28,[37,6],[[30,0],\\\"goToVoucherDetail\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,21],[[30,0,[\\\"hasVoucherSettings\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@title\\\",\\\"@buttonText\\\",\\\"@icon\\\",\\\"@onButtonClick\\\"],[[28,[37,11],[\\\"triggerEmailCampaigns.upgrade\\\"],null],[28,[37,11],[\\\"campaigns.upgradeMessage\\\"],null],\\\"arrow-up-circle\\\",[28,[37,6],[[30,0],\\\"onUpgrade\\\"],null]]],null],[1,\\\"\\\\n          \\\"]],[]],null]],[]]],[1,\\\"          \\\"],[10,0],[14,0,\\\"font-lg primary pv3\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,11],[\\\"triggerEmailCampaigns.configure.configurations\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,24],[[28,[37,24],[[30,0,[\\\"_configurationKeys\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,25],null,[[\\\"@item\\\",\\\"@isReadOnly\\\",\\\"@onSave\\\"],[[28,[37,26],[[30,0,[\\\"model\\\",\\\"orderedConfigurations\\\"]],[30,7]],null],[30,0,[\\\"isReadOnly\\\"]],[28,[37,6],[[30,0],\\\"onConfigurationSave\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"bt b--secondary-10 mb4\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[8,[30,6,[\\\"header\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,8,[\\\"tab\\\"]],null,[[\\\"@routePath\\\",\\\"@tabName\\\"],[\\\"instance.campaigns.trigger-email.detail.index\\\",[28,[37,11],[\\\"triggerEmailCampaigns.configure.emails\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[8,[30,8,[\\\"tab\\\"]],null,[[\\\"@routePath\\\",\\\"@tabName\\\"],[\\\"instance.campaigns.trigger-email.detail.email-series\\\",[28,[37,11],[\\\"triggerEmailCampaigns.emailSeries.title\\\"],null]]],null],[1,\\\"\\\\n          \\\"]],[8]]]]],[1,\\\"\\\\n        \\\"]],[]]]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"hideContent\\\"]]],[[[1,\\\"        \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@stretch\\\"],[true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,6,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"flex flex-column\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[6]]]]],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"hideContent\\\"]]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@role\\\"],[\\\"manager\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[28,[37,6],[[30,0],\\\"transitionToCreate\\\"],null]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_isTestEmailDialogOpen\\\"]],[[[1,\\\"    \\\"],[8,[39,28],null,[[\\\"@model\\\",\\\"@onClose\\\"],[[30,0,[\\\"model\\\"]],[28,[37,13],[[28,[37,14],[[30,0,[\\\"_isTestEmailDialogOpen\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[\\\"view\\\",\\\"nav\\\",\\\"active\\\",\\\"prefix\\\",\\\"ta\\\",\\\"tabs\\\",\\\"configurationKey\\\",\\\"header\\\"],false,[\\\"if\\\",\\\"amc-campaign/trigger-email-campaign/detail-view\\\",\\\"amc-campaign/trigger-email-campaign/publish-dialog\\\",\\\"component\\\",\\\"-outlet\\\",\\\"ui-content-views\\\",\\\"action\\\",\\\"ui-when\\\",\\\"let\\\",\\\"amc-toggle-activation\\\",\\\"hash\\\",\\\"t\\\",\\\"concat\\\",\\\"fn\\\",\\\"mut\\\",\\\"ui-routable-tabs\\\",\\\"amc-campaign/detail-header\\\",\\\"ui-skeleton\\\",\\\"ui-button\\\",\\\"perform\\\",\\\"amc-campaign/voucher\\\",\\\"not\\\",\\\"ui-inline-notification\\\",\\\"each\\\",\\\"-track-array\\\",\\\"amc-campaign/configuration-item\\\",\\\"get\\\",\\\"unless\\\",\\\"amc-campaign/test-email-dialog\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/trigger-email/detail.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/trigger-email/detail/email-series\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"Q0YkKsVe\",\n    \"block\": \"[[[10,0],[14,0,\\\"font-lg primary pb4\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,0],[\\\"triggerEmailCampaigns.emailSeries.title\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"w-100\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@isReadOnly\\\",\\\"@campaignId\\\",\\\"@campaignType\\\"],[[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"campaignId\\\"]],\\\"trigger-email\\\"]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[46,[28,[37,3],null,null],null,null,null]],[],false,[\\\"t\\\",\\\"amc-campaign/email-campaign/email-series-table\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/trigger-email/detail/email-series.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/trigger-email/detail/email-series/create\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"tBcfvmvO\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@campaignId\\\",\\\"@campaignType\\\",\\\"@isNew\\\"],[[30,0,[\\\"campaignId\\\"]],\\\"trigger-email\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[46,[28,[37,2],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]]]],[],false,[\\\"amc-campaign/email-campaign/email-series-dialog\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/trigger-email/detail/email-series/create.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/trigger-email/detail/email-series/email-series\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"Xsce1g40\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@model\\\",\\\"@isReadOnly\\\",\\\"@campaignId\\\",\\\"@campaignType\\\"],[[30,0,[\\\"model\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"campaignId\\\"]],\\\"trigger-email\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[46,[28,[37,2],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]]]],[],false,[\\\"amc-campaign/email-campaign/email-series-dialog\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/trigger-email/detail/email-series/email-series.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/trigger-email/detail/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"G8ctZaUg\",\n    \"block\": \"[[[41,[51,[30,0,[\\\"hasNewDetailView\\\"]]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"w-100\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@isReadOnly\\\",\\\"@campaignId\\\",\\\"@campaignType\\\"],[[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"campaignId\\\"]],\\\"trigger-email\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[46,[28,[37,3],null,null],null,null,null]],[],false,[\\\"unless\\\",\\\"amc-campaign/email-campaign/email-list\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/trigger-email/detail/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/trigger-email/detail/index/create\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"hf7uz0Ot\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@campaignType\\\",\\\"@campaignId\\\"],[\\\"trigger-email\\\",[30,0,[\\\"campaignId\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"multimediaOverlayContent\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[46,[28,[37,2],null,null],null,null,null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"ed\\\"],false,[\\\"amc-campaign/email-campaign/email-dialog\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/trigger-email/detail/index/create.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/trigger-email/detail/index/edit\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"0bXkvev6\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@subtitle\\\",\\\"@onSave\\\",\\\"@onPublish\\\",\\\"@initialStep\\\",\\\"@publishOnSave\\\",\\\"@hideSaveAndPublish\\\",\\\"@isTitleEditable\\\",\\\"@onTitleChange\\\",\\\"@onStepChange\\\",\\\"@onClose\\\"],[[30,0,[\\\"model\\\",\\\"name\\\"]],[28,[37,1],[\\\"triggerEmailCampaigns.title\\\"],null],[30,0,[\\\"onSave\\\"]],[30,0,[\\\"onPublish\\\"]],[30,0,[\\\"initialStep\\\"]],[30,0,[\\\"hideSaveButton\\\"]],[30,0,[\\\"hideSaveAndPublishButton\\\"]],true,[28,[37,2],[[30,0,[\\\"model\\\",\\\"transactionChange\\\"]],\\\"name\\\"],null],[30,0,[\\\"onStepChange\\\"]],[30,0,[\\\"onClose\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[4,[38,3],[[28,[37,2],[[30,0,[\\\"didInsertContentWizard\\\"]],[30,1]],null]],null],[12],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],null,[[\\\"@wizard\\\",\\\"@model\\\",\\\"@isLoading\\\"],[[30,1],[30,0,[\\\"model\\\"]],[30,0,[\\\"_isLoading\\\"]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,5],null,[[\\\"@wizard\\\",\\\"@model\\\",\\\"@isLoading\\\",\\\"@contributionValue\\\",\\\"@contributionCustomType\\\",\\\"@corporateDesignColors\\\",\\\"@openPreviewDialog\\\",\\\"@openMultimedia\\\",\\\"@onDelete\\\",\\\"@onEnterStep\\\"],[[30,1],[30,0,[\\\"model\\\"]],[30,0,[\\\"_isLoading\\\"]],[30,0,[\\\"_contributionValue\\\"]],[30,0,[\\\"_contributionCustomType\\\"]],[30,0,[\\\"_corporateDesignColors\\\"]],[30,0,[\\\"openPreviewDialog\\\"]],[30,0,[\\\"openMultimedia\\\"]],[30,0,[\\\"onDelete\\\"]],[30,0,[\\\"onEnterStep\\\"]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@wizard\\\",\\\"@model\\\",\\\"@isLoading\\\",\\\"@corporateDesignColors\\\",\\\"@openPreviewDialog\\\",\\\"@openMultimedia\\\",\\\"@onDelete\\\",\\\"@onEnterStep\\\",\\\"@createEmail\\\",\\\"@openSendTestEmailDialog\\\",\\\"@openEmailSeriesCreateDialog\\\"],[[30,1],[30,0,[\\\"model\\\"]],[30,0,[\\\"_isLoading\\\"]],[30,0,[\\\"_corporateDesignColors\\\"]],[30,0,[\\\"openPreviewDialog\\\"]],[30,0,[\\\"openMultimedia\\\"]],[30,0,[\\\"onDelete\\\"]],[30,0,[\\\"onEnterStep\\\"]],[30,0,[\\\"createEmail\\\"]],[30,0,[\\\"openSendTestEmailDialog\\\"]],[28,[37,2],[[28,[37,7],[[30,0,[\\\"isEmailSeriesCreateDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,8],null,[[\\\"@wizard\\\",\\\"@model\\\",\\\"@isLoading\\\"],[[30,1],[30,0,[\\\"model\\\"]],[30,0,[\\\"_isLoading\\\"]]]],null],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isTestEmailDialogOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,10],null,[[\\\"@model\\\",\\\"@onClose\\\",\\\"@isBulk\\\",\\\"@isTransaction\\\",\\\"@campaignType\\\"],[[30,0,[\\\"selectedModel\\\"]],[28,[37,11],[[28,[37,2],[[28,[37,7],[[30,0,[\\\"isTestEmailDialogOpen\\\"]]],null],false],null],[28,[37,2],[[28,[37,7],[[30,0,[\\\"isBulkAction\\\"]]],null],false],null]],null],[30,0,[\\\"isBulkAction\\\"]],true,[30,0,[\\\"model\\\",\\\"type\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEmailSeriesCreateDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@model\\\",\\\"@isNew\\\",\\\"@onClose\\\",\\\"@onSave\\\",\\\"@isLabelRequired\\\",\\\"@showNamePrefix\\\",\\\"@hasCustomSave\\\",\\\"@campaignId\\\",\\\"@offsetInDaysLabel\\\",\\\"@campaignType\\\"],[[30,0,[\\\"model\\\"]],true,[28,[37,2],[[28,[37,7],[[30,0,[\\\"isEmailSeriesCreateDialog\\\"]]],null],false],null],[30,0,[\\\"createEmailSeries\\\"]],false,true,true,[30,0,[\\\"campaignId\\\"]],[28,[37,1],[\\\"triggerEmailCampaigns.steps.emails.offsetInDays\\\"],null],\\\"email\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isVoucherPreviewDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,13],null,[[\\\"@title\\\",\\\"@availableLanguages\\\",\\\"@language\\\",\\\"@onLanguageChange\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"triggerEmailCampaigns.steps.contribution.previewDialog.title\\\"],null],[30,0,[\\\"selectedVoucherModel\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"selectedVoucherModel\\\",\\\"language\\\"]],[28,[37,2],[[30,0,[\\\"openPreviewDialog\\\"]],[30,0,[\\\"selectedVoucherModel\\\"]],\\\"voucher\\\"],null],[28,[37,2],[[28,[37,7],[[30,0,[\\\"isVoucherPreviewDialog\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"iframe\\\"],[15,\\\"title\\\",[28,[37,1],[\\\"triggerEmailCampaigns.steps.contribution.previewDialog.title\\\"],null]],[14,1,\\\"voucher-preview-iframe\\\"],[14,0,\\\"w-100 h-100 dn flex flex-column flex-grow-1\\\"],[14,\\\"frameBorder\\\",\\\"0\\\"],[12],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEmailPreviewDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,13],null,[[\\\"@title\\\",\\\"@availableLanguages\\\",\\\"@language\\\",\\\"@onLanguageChange\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"triggerEmailCampaigns.steps.emails.email.previewDialog.title\\\"],null],[30,0,[\\\"selectedEmailModel\\\",\\\"availableLanguages\\\"]],[30,0,[\\\"selectedEmailModel\\\",\\\"language\\\"]],[28,[37,2],[[30,0,[\\\"openPreviewDialog\\\"]],\\\"email\\\",[30,0,[\\\"selectedEmailModel\\\"]]],null],[28,[37,2],[[28,[37,7],[[30,0,[\\\"isEmailPreviewDialog\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"iframe\\\"],[15,\\\"title\\\",[28,[37,1],[\\\"triggerEmailCampaigns.steps.emails.email.previewDialog.title\\\"],null]],[14,1,\\\"email-preview-iframe\\\"],[14,0,\\\"w-100 h-100 dn flex flex-column flex-grow-1\\\"],[14,\\\"frameBorder\\\",\\\"0\\\"],[12],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,14],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\"],[[30,0,[\\\"isDiscardChangesDialog\\\"]],[30,0,[\\\"onDiscardChanges\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[8,[39,15],null,[[\\\"@onClose\\\",\\\"@onAddMedium\\\"],[[30,0,[\\\"closeMultimedia\\\"]],[30,0,[\\\"addMedium\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[46,[28,[37,17],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"wizard\\\",\\\"preview\\\",\\\"preview\\\"],false,[\\\"ui-content-wizard\\\",\\\"t\\\",\\\"fn\\\",\\\"did-insert\\\",\\\"amc-campaign/trigger-email-campaign/steps/trigger\\\",\\\"amc-campaign/trigger-email-campaign/steps/contribution\\\",\\\"amc-campaign/trigger-email-campaign/steps/emails\\\",\\\"mut\\\",\\\"amc-campaign/trigger-email-campaign/steps/configuration\\\",\\\"if\\\",\\\"amc-campaign/test-email-dialog\\\",\\\"pipe\\\",\\\"amc-campaign/email-campaign/email-series-dialog\\\",\\\"ui-preview-dialog\\\",\\\"ui-discard-changes\\\",\\\"mm-multimedia-overlay\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/trigger-email/detail/index/edit.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/trigger-email/detail/index/email\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"fKxX92ha\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@campaignType\\\",\\\"@modelId\\\",\\\"@isReadOnly\\\"],[\\\"trigger-email\\\",[30,0,[\\\"model\\\",\\\"id\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"multimediaOverlayContent\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[46,[28,[37,2],null,null],null,null,null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"ed\\\"],false,[\\\"amc-campaign/email-campaign/email-dialog\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/trigger-email/detail/index/email.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/campaigns/trigger-email/detail/index/voucher\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"M3KHtHwz\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@campaignId\\\",\\\"@campaignType\\\",\\\"@resource\\\",\\\"@voucherModelType\\\",\\\"@openMultimedia\\\",\\\"@closeMultimedia\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"_campaignId\\\"]],\\\"trigger-email\\\",[30,0,[\\\"model\\\"]],\\\"email-campaign-voucher\\\",[28,[37,1],[[30,0],\\\"openMultimedia\\\"],null],[28,[37,1],[[30,0],\\\"closeMultimedia\\\"],null],[30,0,[\\\"_isReadOnly\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"multimediaOverlayContent\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"vd\\\"],false,[\\\"amc-campaign/voucher-dialog\\\",\\\"action\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/campaigns/trigger-email/detail/index/voucher.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/dashboard\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"EDamDCkG\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@isWide\\\"],[[28,[37,1],[\\\"routes.dashboard.title\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"intro\\\"]],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[\\\"mw6\\\",[30,0,[\\\"salutation\\\"]],[28,[37,1],[\\\"dashboard.description\\\"],null],\\\"xl\\\",true]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pt2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@label\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onChange\\\"],[[28,[37,1],[\\\"dashboard.dateRange\\\"],null],[28,[37,3],[[30,0,[\\\"getSelectedDateRange\\\"]],\\\"name\\\"],null],[30,0,[\\\"dateRanges\\\"]],[28,[37,4],[[30,0],\\\"onDateRangeChange\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,3,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2,3]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pt3 mb3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"dateRange\\\"]],[[[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@organizationSlug\\\",\\\"@dateRange\\\"],[[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"dateRange\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\",\\\"@itemsPerRowSmartphone\\\"],[4,4,168,4,1]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pt3 mb3 pb3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"dateRange\\\"]],[[[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@organizationSlug\\\",\\\"@dateRange\\\"],[[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"dateRange\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@itemsSmartphone\\\",\\\"@cardHeight\\\",\\\"@cardHeightSmartphone\\\"],[1,1,512,256]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"]],[1]]]]]],[\\\"view\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"ui-content-views\\\",\\\"t\\\",\\\"ui-select\\\",\\\"get\\\",\\\"action\\\",\\\"if\\\",\\\"amc-dashboard/key-indicators\\\",\\\"ui-skeleton\\\",\\\"amc-dashboard/charts\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/preview\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"U4qwDjIY\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/preview.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/preview/email\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"qiQ6wNpE\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@key\\\",\\\"@modelName\\\"],[\\\"subscribers\\\",\\\"subscriber\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@title\\\",\\\"@filter\\\",\\\"@isPlainView\\\"],[[30,0,[\\\"model\\\",\\\"name\\\"]],\\\"subscribers\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"navbar\\\"]],null,[[\\\"@breadcrumbs\\\",\\\"@hasBreadcrumbs\\\"],[[28,[37,2],null,[[\\\"currentRouteName\\\",\\\"rootName\\\",\\\"currentRouteNameText\\\"],[\\\"email\\\",\\\"preview\\\",[30,0,[\\\"model\\\",\\\"name\\\"]]]]],true]],null],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"contentHeader\\\"]],null,[[\\\"@classNames\\\"],[\\\"w-100 ma-auto ph2 ph3-sm ph4-md mw8\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@classNames\\\",\\\"@currentRouteName\\\",\\\"@currentRouteNameText\\\",\\\"@rootName\\\"],[\\\"font-xl\\\",\\\"email\\\",[30,0,[\\\"model\\\",\\\"name\\\"]],\\\"preview\\\"]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-md pv1 mb4\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"preview.upcomingEmails.description\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pv4 ph1\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@model\\\",\\\"@filter\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"model\\\"]],[30,1],[30,0,[\\\"isReadOnly\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"filter\\\",\\\"view\\\"],false,[\\\"ui-filterable\\\",\\\"ui-content-views\\\",\\\"hash\\\",\\\"ui-breadcrumbs\\\",\\\"t\\\",\\\"amc-preview/upcoming-emails-subscriber\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/preview/email.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/preview/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"Zrl0a65a\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@isWide\\\"],[[28,[37,1],[\\\"routes.preview.title\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,null,null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"intro\\\"]],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[\\\"mw6\\\",[28,[37,1],[\\\"preview.title\\\"],null],[28,[37,1],[\\\"preview.description\\\"],null],\\\"xl\\\",true]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pv4 ph1\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"view\\\"],false,[\\\"ui-content-views\\\",\\\"t\\\",\\\"amc-preview/upcoming-emails\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/preview/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/reports\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"rQ7MFp1b\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/reports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/reports/ad/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"KkwG/Wrs\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@isWide\\\"],[[28,[37,1],[\\\"routes.reports.title\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mw6\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@classNames\\\",\\\"@currentRouteName\\\",\\\"@rootName\\\"],[\\\"font-xl\\\",\\\"ad\\\",\\\"reports\\\"]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-md pv2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"reports.adMetrics.description\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pt2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@onChange\\\",\\\"@initialRange\\\",\\\"@hasFilters\\\",\\\"@defaultFilter\\\"],[[28,[37,4],[[30,0],\\\"onFilterChange\\\"],null],[28,[37,5],null,[[\\\"start\\\",\\\"end\\\"],[[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]]]]],true,[30,0,[\\\"_defaultFilter\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,0,\\\"pb2 pb3-sm pb4-md bb b--black-10\\\"],[4,[38,6],[[28,[37,7],[[30,0,[\\\"fetchAdOverview\\\"]]],null]],null],[4,[38,8],[[28,[37,7],[[30,0,[\\\"fetchAdOverview\\\"]]],null],[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fetchAdOverview\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[\\\"mt2\\\",2,3,1,130,4]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"_adOverviewMetrics\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex items-end flex-wrap flex-nowrap-md w-100 bg-white pv2 pv3-sm pv4-md\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_adOverviewMetrics\\\",\\\"impressions\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"pb0-md w-100 w-50-sm w-33-md bg-white\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,11],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\",\\\"@size\\\"],[[28,[37,12],[[28,[37,13],[[30,0,[\\\"_adOverviewMetrics\\\",\\\"impressions\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,1],[\\\"reports.adMetrics.impressions\\\"],null],[30,0,[\\\"_adOverviewMetrics\\\",\\\"impressions\\\",\\\"change\\\"]],[28,[37,1],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,1],[\\\"components.ui-metric-item.placeholder\\\"],null],\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_adOverviewMetrics\\\",\\\"adSpend\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"pb0-md w-100 w-50-sm w-33-md bg-white\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,11],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\",\\\"@appendix\\\",\\\"@size\\\"],[[28,[37,12],[[28,[37,14],[[28,[37,13],[[30,0,[\\\"_adOverviewMetrics\\\",\\\"adSpend\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null]],null],[28,[37,1],[\\\"reports.adMetrics.adSpend\\\"],null],[30,0,[\\\"_adOverviewMetrics\\\",\\\"adSpend\\\",\\\"change\\\"]],[28,[37,1],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,1],[\\\"components.ui-metric-item.placeholder\\\"],null],[28,[37,15],[[30,0,[\\\"_adOverviewMetrics\\\",\\\"adSpend\\\",\\\"currency\\\"]]],null],\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_adOverviewMetrics\\\",\\\"clicks\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"pb0-md w-100 w-50-sm w-33-md bg-white\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,11],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@compare\\\",\\\"@comparePeriod\\\",\\\"@comparePlaceholder\\\",\\\"@size\\\"],[[28,[37,12],[[28,[37,13],[[30,0,[\\\"_adOverviewMetrics\\\",\\\"clicks\\\",\\\"current\\\",\\\"value\\\"]],0],null]],null],[28,[37,1],[\\\"reports.adMetrics.clicks\\\"],null],[30,0,[\\\"_adOverviewMetrics\\\",\\\"clicks\\\",\\\"change\\\"]],[28,[37,1],[\\\"components.ui-metric-item.comparePeriod\\\"],null],[28,[37,1],[\\\"components.ui-metric-item.placeholder\\\"],null],\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex flex-column items-center justify-center text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,16],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-md font-medium secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"reports.adMetrics.empty\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,17],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@organizationSlug\\\",\\\"@type\\\",\\\"@dateRange\\\",\\\"@abortController\\\"],[\\\"bb b--black-10\\\",[28,[37,1],[\\\"reports.adMetrics.leadAds\\\"],null],[30,0,[\\\"organizationSlug\\\"]],\\\"lead-ad-metrics\\\",[28,[37,5],null,[[\\\"start\\\",\\\"end\\\"],[[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]]]]],[30,0,[\\\"abortController\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,17],null,[[\\\"@organizationSlug\\\",\\\"@type\\\",\\\"@title\\\",\\\"@dateRange\\\",\\\"@abortController\\\"],[[30,0,[\\\"organizationSlug\\\"]],\\\"tik-tok-lead-ad-metrics\\\",[28,[37,1],[\\\"reports.adMetrics.tiktokLeadAds\\\"],null],[28,[37,5],null,[[\\\"start\\\",\\\"end\\\"],[[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]]]]],[30,0,[\\\"abortController\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"view\\\"],false,[\\\"ui-content-views\\\",\\\"t\\\",\\\"ui-breadcrumbs\\\",\\\"amc-date-filter\\\",\\\"action\\\",\\\"hash\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"did-update\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-metric-item\\\",\\\"format-number\\\",\\\"or\\\",\\\"cents-to-amount\\\",\\\"currency-symbol\\\",\\\"svg-jar\\\",\\\"amc-reports/ad-metrics\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/reports/ad/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/reports/ad/past-marketing-actions\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"/V2SZ6L6\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@isPlainView\\\"],[[28,[37,1],[\\\"reports.pastMarketingActions.title\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,[[\\\"@breadcrumbs\\\",\\\"@hasBreadcrumbs\\\"],[[28,[37,2],null,[[\\\"currentRouteName\\\",\\\"rootName\\\"],[\\\"past-marketing-actions\\\",\\\"reports\\\"]]],true]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"contentHeader\\\"]],null,[[\\\"@classNames\\\"],[\\\"w-100 ma-auto ph2 ph3-sm ph4-md mw8\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@classNames\\\",\\\"@currentRouteName\\\",\\\"@rootName\\\"],[\\\"font-xl\\\",\\\"past-marketing-actions\\\",\\\"reports\\\"]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-md pv1 mb4\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,1],[\\\"reports.pastMarketingActions.description\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@classNames\\\"],[\\\"table-view\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,4],null,[[\\\"@type\\\"],[\\\"ad\\\"]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pb4 mb4\\\"]],null],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"view\\\"],false,[\\\"ui-content-views\\\",\\\"t\\\",\\\"hash\\\",\\\"ui-breadcrumbs\\\",\\\"amc-reports/past-marketing-actions\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/reports/ad/past-marketing-actions.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/reports/email/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"gHOCXdbp\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@isWide\\\"],[[28,[37,1],[\\\"routes.reports.title\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[10,0],[14,0,\\\"mw6\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@classNames\\\",\\\"@currentRouteName\\\",\\\"@rootName\\\"],[\\\"font-xl\\\",\\\"email\\\",\\\"reports\\\"]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-md pt1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"reports.emailMetrics.description\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pt2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@onChange\\\",\\\"@initialRange\\\",\\\"@hasFilters\\\",\\\"@defaultFilter\\\"],[[30,0,[\\\"onFilterChange\\\"]],[28,[37,4],null,[[\\\"start\\\",\\\"end\\\"],[[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]]]]],true,[30,0,[\\\"_defaultFilter\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pv2 pv3-sm pv3-md\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@organizationSlug\\\",\\\"@dateRange\\\",\\\"@abortController\\\"],[[30,0,[\\\"organizationSlug\\\"]],[28,[37,4],null,[[\\\"start\\\",\\\"end\\\"],[[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]]]]],[30,0,[\\\"abortController\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"view\\\"],false,[\\\"ui-content-views\\\",\\\"t\\\",\\\"ui-breadcrumbs\\\",\\\"amc-date-filter\\\",\\\"hash\\\",\\\"amc-reports/email-metrics\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/reports/email/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/reports/email/past-marketing-actions\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"/Th4ChxW\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@isPlainView\\\"],[[28,[37,1],[\\\"reports.pastMarketingActions.title\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,[[\\\"@breadcrumbs\\\",\\\"@hasBreadcrumbs\\\"],[[28,[37,2],null,[[\\\"currentRouteName\\\",\\\"rootName\\\"],[\\\"past-marketing-actions\\\",\\\"reports\\\"]]],true]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"contentHeader\\\"]],null,[[\\\"@classNames\\\"],[\\\"w-100 ma-auto ph2 ph3-sm ph4-md mw8\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@classNames\\\",\\\"@currentRouteName\\\",\\\"@rootName\\\"],[\\\"font-xl\\\",\\\"past-marketing-actions\\\",\\\"reports\\\"]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"font-md pv1 mb4\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,1],[\\\"reports.pastMarketingActions.description\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@classNames\\\"],[\\\"table-view\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,4],null,[[\\\"@type\\\"],[\\\"email\\\"]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pb4 mb4\\\"]],null],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"view\\\"],false,[\\\"ui-content-views\\\",\\\"t\\\",\\\"hash\\\",\\\"ui-breadcrumbs\\\",\\\"amc-reports/past-marketing-actions\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/reports/email/past-marketing-actions.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/reports/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"A6fdxnDY\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@isWide\\\"],[[28,[37,1],[\\\"routes.reports.title\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"intro\\\"]],null,[[\\\"@class\\\",\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[\\\"mw6\\\",[28,[37,1],[\\\"reports.title\\\"],null],[28,[37,1],[\\\"reports.description\\\"],null],\\\"xl\\\",true]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pv2 pv3-sm pv4-md\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsMeta\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@itemsPerRowSmartphone\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[5,3,1,56,24]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,4],null,[[\\\"@columns\\\"],[\\\"1,1,3\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"isProfessionalPlan\\\"]],[30,0,[\\\"isEnterprisePlan\\\"]]],null],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@title\\\",\\\"@route\\\",\\\"@start\\\",\\\"@end\\\",\\\"@svg\\\"],[[28,[37,1],[\\\"reports.campaignCards.email\\\"],null],\\\"instance.reports.email\\\",[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]],\\\"mail\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@title\\\",\\\"@route\\\",\\\"@start\\\",\\\"@end\\\",\\\"@svg\\\"],[[28,[37,1],[\\\"reports.campaignCards.triggerEmail\\\"],null],\\\"instance.reports.trigger-email\\\",[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]],\\\"settings\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"isEnterprisePlan\\\"]],[28,[37,7],[[30,0,[\\\"isProfessionalPlan\\\"]]],null]],null],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@title\\\",\\\"@route\\\",\\\"@start\\\",\\\"@end\\\",\\\"@svg\\\"],[[28,[37,1],[\\\"reports.campaignCards.ad\\\"],null],\\\"instance.reports.ad\\\",[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]],\\\"ad\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@title\\\",\\\"@route\\\",\\\"@start\\\",\\\"@end\\\",\\\"@svg\\\"],[[28,[37,1],[\\\"reports.campaignCards.popUp\\\"],null],\\\"instance.reports.on-page\\\",[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]],\\\"popup\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isAdditive\\\"]],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@title\\\",\\\"@route\\\",\\\"@start\\\",\\\"@end\\\",\\\"@svg\\\"],[[28,[37,1],[\\\"reports.campaignCards.leads\\\"],null],\\\"instance.reports.leads\\\",[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]],\\\"lead\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex flex-wrap\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@class\\\",\\\"@onChange\\\",\\\"@initialRange\\\",\\\"@hasFilters\\\",\\\"@defaultFilter\\\"],[\\\"pr3\\\",[30,0,[\\\"onFilterChange\\\"]],[28,[37,9],null,[[\\\"start\\\",\\\"end\\\"],[[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]]]]],true,[30,0,[\\\"_defaultFilter\\\"]]]],null],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@label\\\",\\\"@placeholder\\\",\\\"@isMultiSelect\\\",\\\"@objectKey\\\",\\\"@selected\\\",\\\"@options\\\",\\\"@onClose\\\",\\\"@onChange\\\",\\\"@onSelectAll\\\",\\\"@onDeselectAll\\\"],[[28,[37,1],[\\\"reports.modules\\\"],null],[28,[37,1],[\\\"reports.allModules\\\"],null],true,\\\"label\\\",[30,0,[\\\"selectedModules\\\"]],[30,0,[\\\"modules\\\"]],[30,0,[\\\"onModuleSelectClose\\\"]],[30,0,[\\\"onModuleChange\\\"]],[30,0,[\\\"onModuleSelectClose\\\"]],[30,0,[\\\"onModuleSelectClose\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,3]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,3,[\\\"label\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2,3]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,11],null,[[\\\"@organizationSlug\\\",\\\"@filters\\\",\\\"@abortController\\\"],[[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"filters\\\"]],[30,0,[\\\"abortController\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pv2 pv3-sm pv4-md\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,12],null,[[\\\"@organizationSlug\\\",\\\"@filters\\\",\\\"@abortController\\\"],[[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"filters\\\"]],[30,0,[\\\"abortController\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pv2 pv3-sm pv4-md\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,13],null,[[\\\"@organizationSlug\\\",\\\"@filters\\\",\\\"@abortController\\\"],[[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"filters\\\"]],[30,0,[\\\"abortController\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pv2 pv3-sm pv4-md\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,14],null,[[\\\"@organizationSlug\\\",\\\"@filters\\\",\\\"@abortController\\\"],[[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"filters\\\"]],[30,0,[\\\"abortController\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pv2 pv3-sm pv4-md mb2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,15],null,[[\\\"@organizationSlug\\\",\\\"@filters\\\",\\\"@abortController\\\"],[[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"filters\\\"]],[30,0,[\\\"abortController\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"view\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"ui-content-views\\\",\\\"t\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"grid\\\",\\\"or\\\",\\\"amc-route-card\\\",\\\"not\\\",\\\"amc-date-filter\\\",\\\"hash\\\",\\\"ui-select\\\",\\\"amc-reports/key-indicators\\\",\\\"amc-reports/reservations\\\",\\\"amc-reports/leads\\\",\\\"amc-reports/conversions\\\",\\\"amc-reports/value-added\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/reports/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/reports/leads/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"Bdd8xrIE\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@isWide\\\",\\\"@isPlainView\\\"],[[28,[37,1],[\\\"routes.reports.title\\\"],null],true,true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[10,0],[14,0,\\\"mw8 mh-auto\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@classNames\\\",\\\"@currentRouteName\\\",\\\"@rootName\\\"],[\\\"font-xl mw6\\\",\\\"leads\\\",\\\"reports\\\"]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"font-md pt1 mw6\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"reports.leadPerformance.description\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"pt2 pb4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,3],null,[[\\\"@value\\\"],[[28,[37,1],[\\\"reports.leadPerformance.dateRange.label\\\"],null]]],null],[1,\\\"\\\\n              \\\"],[8,[39,4],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,2,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[28,[35,5],[\\\"info\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"secondary\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[28,[35,1],[\\\"reports.leadPerformance.dateRange.description\\\"],null]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[2]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@class\\\",\\\"@isPlain\\\",\\\"@onChange\\\",\\\"@initialRange\\\",\\\"@hasFilters\\\",\\\"@defaultFilter\\\"],[\\\"pr3\\\",true,[30,0,[\\\"onFilterChange\\\"]],[28,[37,7],null,[[\\\"start\\\",\\\"end\\\"],[[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]]]]],true,[30,0,[\\\"_defaultFilter\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,3],null,[[\\\"@value\\\"],[[28,[37,1],[\\\"reports.leadPerformance.attributions.label\\\"],null]]],null],[1,\\\"\\\\n              \\\"],[8,[39,4],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[30,3,[\\\"trigger\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[28,[35,5],[\\\"info\\\"],[[\\\"class\\\",\\\"width\\\",\\\"height\\\"],[\\\"secondary\\\",\\\"20\\\",\\\"20\\\"]]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[8,[30,3,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[28,[35,1],[\\\"reports.leadPerformance.attributions.description\\\"],[[\\\"htmlSafe\\\"],[true]]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,8],null,[[\\\"@objectKey\\\",\\\"@isPlain\\\",\\\"@selected\\\",\\\"@initialValue\\\",\\\"@options\\\",\\\"@onChange\\\"],[\\\"label\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"selectedAttribution\\\"]],[30,0,[\\\"attributions\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"selectedAttribution\\\"]],[30,0,[\\\"attributions\\\"]],[28,[37,11],[[28,[37,12],[[30,0,[\\\"selectedAttribution\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,5,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[30,5,[\\\"label\\\"]]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[4,5]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@organizationSlug\\\",\\\"@filters\\\",\\\"@onOpenDetailDialog\\\",\\\"@abortController\\\"],[[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"filters\\\"]],[30,0,[\\\"openDetailDialog\\\"]],[30,0,[\\\"abortController\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[11,0],[4,[38,14],[[28,[37,15],[[30,0,[\\\"fetchChartData\\\"]]],null]],null],[4,[38,16],[[28,[37,15],[[30,0,[\\\"fetchChartData\\\"]]],null],[30,0,[\\\"filters\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"pv2 pv3-sm pv4-md\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"font-xl primary pt2 pt3-sm pt4-md mw8 mh-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[\\\"reports.leadPerformance.leadCampaignsInsights.title\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"font-md pt1 mw6\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"reports.leadPerformance.leadCampaignsInsights.description\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,17],null,[[\\\"@organizationSlug\\\",\\\"@filters\\\",\\\"@scrollContainerSelector\\\",\\\"@onOpenDetailDialog\\\"],[[30,0,[\\\"organizationSlug\\\"]],[30,0,[\\\"filters\\\"]],\\\".ui-content\\\",[30,0,[\\\"openDetailDialog\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLeadsDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@filters\\\",\\\"@onClose\\\",\\\"@type\\\",\\\"@dialogType\\\"],[[30,0,[\\\"detailDialogFilters\\\"]],[28,[37,11],[[30,0,[\\\"closeDetailDialog\\\"]],\\\"leads\\\"],null],\\\"leads\\\",\\\"leads\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isReservationDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@filters\\\",\\\"@onClose\\\",\\\"@type\\\",\\\"@hasDownloadAction\\\",\\\"@dialogType\\\"],[[30,0,[\\\"detailDialogFilters\\\"]],[28,[37,11],[[30,0,[\\\"closeDetailDialog\\\"]],\\\"reservations\\\"],null],\\\"leads\\\",false,\\\"reservations\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"view\\\",\\\"pop\\\",\\\"pop\\\",\\\"optionComponent\\\",\\\"option\\\"],false,[\\\"ui-content-views\\\",\\\"t\\\",\\\"ui-breadcrumbs\\\",\\\"ui-label\\\",\\\"ui-popover\\\",\\\"svg-jar\\\",\\\"amc-date-filter\\\",\\\"hash\\\",\\\"ui-select\\\",\\\"get\\\",\\\"array-find\\\",\\\"fn\\\",\\\"mut\\\",\\\"amc-reports/lead-performance-metrics\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"did-update\\\",\\\"amc-reports/lead-performance-campaigns-insights\\\",\\\"if\\\",\\\"amc-table-dialog\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/reports/leads/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/reports/on-page/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"71BRZD8/\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@isWide\\\"],[[28,[37,1],[\\\"routes.reports.title\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mw6\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@classNames\\\",\\\"@currentRouteName\\\",\\\"@rootName\\\"],[\\\"font-xl\\\",\\\"on-page\\\",\\\"reports\\\"]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-md pv2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"reports.onPageMetrics.description\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pt2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@onChange\\\",\\\"@initialRange\\\",\\\"@hasFilters\\\",\\\"@defaultFilter\\\"],[[30,0,[\\\"onFilterChange\\\"]],[28,[37,4],null,[[\\\"start\\\",\\\"end\\\"],[[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]]]]],true,[30,0,[\\\"_defaultFilter\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@organizationSlug\\\",\\\"@dateRange\\\",\\\"@abortController\\\"],[[30,0,[\\\"organizationSlug\\\"]],[28,[37,4],null,[[\\\"start\\\",\\\"end\\\"],[[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]]]]],[30,0,[\\\"abortController\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"view\\\"],false,[\\\"ui-content-views\\\",\\\"t\\\",\\\"ui-breadcrumbs\\\",\\\"amc-date-filter\\\",\\\"hash\\\",\\\"amc-reports/on-page-metrics\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/reports/on-page/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/reports/trigger-email/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"zbaGBkP5\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@isWide\\\"],[[28,[37,1],[\\\"routes.reports.title\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mw6\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@classNames\\\",\\\"@currentRouteName\\\",\\\"@rootName\\\"],[\\\"font-xl\\\",\\\"trigger-email\\\",\\\"reports\\\"]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"font-md pt1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"reports.triggerEmailMetrics.description\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pt2\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@onChange\\\",\\\"@initialRange\\\",\\\"@hasFilters\\\",\\\"@defaultFilter\\\"],[[30,0,[\\\"onFilterChange\\\"]],[28,[37,4],null,[[\\\"start\\\",\\\"end\\\"],[[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]]]]],true,[30,0,[\\\"_defaultFilter\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"pv2 pv3-sm pv3-md\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@organizationSlug\\\",\\\"@dateRange\\\",\\\"@abortController\\\",\\\"@type\\\"],[[30,0,[\\\"organizationSlug\\\"]],[28,[37,4],null,[[\\\"start\\\",\\\"end\\\"],[[30,0,[\\\"start\\\"]],[30,0,[\\\"end\\\"]]]]],[30,0,[\\\"abortController\\\"]],\\\"trigger-email\\\"]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"view\\\"],false,[\\\"ui-content-views\\\",\\\"t\\\",\\\"ui-breadcrumbs\\\",\\\"amc-date-filter\\\",\\\"hash\\\",\\\"amc-reports/email-metrics\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/reports/trigger-email/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/settings\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"tdlHke1I\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\",\\\"@theme\\\"],[[28,[37,1],[\\\"routes.settings.title\\\"],null],\\\"grey\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"navbar\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"action\\\"]],null,[[\\\"@icon\\\",\\\"@label\\\",\\\"@onClick\\\"],[\\\"help\\\",[28,[37,1],[\\\"global.actions.help\\\"],null],[28,[37,2],[[28,[37,3],[[30,0,[\\\"_isFaqDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"intro\\\"]],null,[[\\\"@title\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[[28,[37,1],[\\\"settings.title\\\"],null],\\\"xl\\\",true]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"tabs\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"header\\\"]],null,[[\\\"@isUnderlined\\\"],[true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@plan\\\"],[[30,0,[\\\"PLAN_PROFESSIONAL\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,4,[\\\"tab\\\"]],null,[[\\\"@routePath\\\",\\\"@tabName\\\"],[\\\"instance.settings.index\\\",[28,[37,1],[\\\"routes.settings.general\\\"],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[30,4,[\\\"tab\\\"]],null,[[\\\"@routePath\\\",\\\"@tabName\\\"],[\\\"instance.settings.legals\\\",[28,[37,1],[\\\"routes.settings.legals\\\"],null]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[4]]]]],[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"content\\\"]],null,[[\\\"@class\\\"],[\\\"flex flex-column\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[46,[28,[37,6],null,null],null,null,null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"_isFaqDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,8],null,[[\\\"@title\\\",\\\"@subtitle\\\",\\\"@translationPrefix\\\",\\\"@questionKeys\\\",\\\"@onClose\\\"],[[28,[37,1],[\\\"faq.title\\\"],null],[28,[37,1],[\\\"routes.settings.title\\\"],null],\\\"faq.settings\\\",[30,0,[\\\"_faqKeys\\\"]],[28,[37,9],[[30,0],[28,[37,3],[[30,0,[\\\"_isFaqDialog\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"view\\\",\\\"nav\\\",\\\"tabs\\\",\\\"header\\\"],false,[\\\"ui-content-views\\\",\\\"t\\\",\\\"fn\\\",\\\"mut\\\",\\\"ui-when\\\",\\\"component\\\",\\\"-outlet\\\",\\\"if\\\",\\\"ui-faq-dialog\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/settings.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/settings/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"l3y8qnlL\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@organizationSlug\\\",\\\"@isReadOnly\\\",\\\"@authCode\\\",\\\"@redirect\\\"],[[30,0,[\\\"_organizationSlug\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"auth_code\\\"]],[30,0,[\\\"redirect\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[46,[28,[37,2],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]]]],[],false,[\\\"amc-settings\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/settings/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/settings/legals\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"yVZ7pNay\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@organizationSlug\\\",\\\"@availableLanguages\\\",\\\"@isReadOnly\\\"],[[30,0,[\\\"_organizationSlug\\\"]],[30,0,[\\\"_contentLanguages\\\"]],[30,0,[\\\"isReadOnly\\\"]]]],null]],[],false,[\\\"amc-legals\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/settings/legals.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/widgets\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"1zitaxsn\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@key\\\",\\\"@modelName\\\"],[\\\"widgets\\\",\\\"widget\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@title\\\",\\\"@theme\\\"],[[28,[37,2],[\\\"routes.widgets.title\\\"],null],\\\"grey\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"navbar\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"intro\\\"]],null,[[\\\"@title\\\",\\\"@description\\\",\\\"@size\\\",\\\"@isMultiline\\\"],[[28,[37,2],[\\\"routes.widgets.title\\\"],null],[28,[37,2],[\\\"widgets.description\\\"],null],\\\"xl\\\",true]],null],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@items\\\",\\\"@isLoading\\\"],[[30,1,[\\\"data\\\"]],[30,1,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"count\\\"]],null,[[\\\"@totalCount\\\",\\\"@page\\\",\\\"@totalPages\\\",\\\"@isFiltering\\\"],[[30,1,[\\\"meta\\\",\\\"total\\\"]],[30,1,[\\\"meta\\\",\\\"currentPage\\\"]],[30,1,[\\\"meta\\\",\\\"lastPage\\\"]],[30,1,[\\\"hasActiveFilter\\\"]]]],null],[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"empty\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex flex-column justify-center items-center font-sm secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"empty-content-grey\\\"],null]],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"font-sm secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,2],[\\\"widgets.empty\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"item\\\"]],null,[[\\\"@title\\\",\\\"@linkTo\\\",\\\"@linkToParam\\\"],[[30,4,[\\\"name\\\"]],\\\"instance.widgets.widget\\\",[30,4,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,5,[\\\"right\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"default\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"flex items-center justify-center pr2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,6],null,[[\\\"@state\\\"],[\\\"info\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[28,[35,2],[\\\"widgets.default\\\"],null]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"flex justify-center items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,8],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[8,[30,6,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"global.actions.edit\\\"],null],[28,[37,9],[[30,0,[\\\"onEdit\\\"]],[30,4]],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[30,6,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"widgets.setAsDefault\\\"],null],[28,[37,9],[[30,0,[\\\"onDefault\\\"]],[30,4]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasManagerAccess\\\"]],[[[1,\\\"                    \\\"],[8,[30,6,[\\\"menuItem\\\"]],null,[[\\\"@label\\\",\\\"@isDanger\\\",\\\"@onClick\\\"],[[28,[37,2],[\\\"global.actions.delete\\\"],null],true,[28,[37,9],[[30,0,[\\\"onDelete\\\"]],[30,4]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"]],[6]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[5]]]]],[1,\\\"\\\\n        \\\"],[8,[30,3,[\\\"pagination\\\"]],null,[[\\\"@total\\\",\\\"@currentPage\\\",\\\"@onpageChange\\\"],[[30,1,[\\\"meta\\\",\\\"lastPage\\\"]],[30,1,[\\\"meta\\\",\\\"currentPage\\\"]],[30,1,[\\\"actions\\\",\\\"changePage\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[3,4]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isReadOnly\\\"]]],[[[1,\\\"      \\\"],[8,[30,2,[\\\"footer\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@icon\\\",\\\"@isFabButton\\\",\\\"@onClick\\\"],[\\\"absolute bottom-3 right-3\\\",\\\"plus\\\",true,[28,[37,11],[[30,0],[28,[37,12],[[30,0,[\\\"isWidgetDialog\\\"]]],null],true],null]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isWidgetDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,13],null,[[\\\"@model\\\",\\\"@onClose\\\"],[[30,0,[\\\"activeModel\\\"]],[30,0,[\\\"onCloseWidgetDialog\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"f\\\",\\\"view\\\",\\\"list\\\",\\\"item\\\",\\\"controls\\\",\\\"content\\\"],false,[\\\"ui-filterable\\\",\\\"ui-content-views\\\",\\\"t\\\",\\\"ui-list\\\",\\\"svg-jar\\\",\\\"if\\\",\\\"ui-status-badge\\\",\\\"unless\\\",\\\"ui-item-menu\\\",\\\"fn\\\",\\\"ui-button\\\",\\\"action\\\",\\\"mut\\\",\\\"amc-widget-dialog\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/widgets.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/instance/widgets/widget\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"HJE8+5Kb\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@setupTask\\\",\\\"@instance\\\",\\\"@corporateDesignTypography\\\",\\\"@options\\\",\\\"@styles\\\",\\\"@isReadOnly\\\",\\\"@onClose\\\",\\\"@onSave\\\"],[[28,[37,2],[[30,0,[\\\"setup\\\"]]],null],[30,0,[\\\"instance\\\"]],[30,0,[\\\"corporateDesignTypography\\\"]],[30,0,[\\\"options\\\"]],[30,0,[\\\"changeset\\\",\\\"styles\\\"]],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"onBack\\\"]],[30,0,[\\\"save\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"editor\\\"]],null,[[\\\"@title\\\",\\\"@subtitle\\\"],[[30,0,[\\\"model\\\",\\\"name\\\"]],[28,[37,3],[\\\"widgets.configurator.title\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"setup\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mw-100\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[\\\"mb2\\\",3,8,32,8]],null],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[\\\"mb3\\\",2,1,48,4]],null],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@itemsPerRow\\\",\\\"@cardHeight\\\",\\\"@gap\\\"],[2,1,48,4]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,6],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,4,[\\\"header\\\"]],null,[[\\\"@setActiveTab\\\",\\\"@activeTab\\\",\\\"@isRoutable\\\"],[[28,[37,7],[[30,0],[28,[37,8],[[30,0,[\\\"activeTab\\\"]]],null]],null],[30,0,[\\\"activeTab\\\"]],false]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"tabs\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[8,[30,5,[\\\"tab\\\"]],null,[[\\\"@tabName\\\",\\\"@value\\\"],[[30,6,[\\\"title\\\"]],[30,6]]],null],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"          \\\"]],[5]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[30,4,[\\\"pane\\\"]],null,[[\\\"@activeTab\\\",\\\"@name\\\"],[[30,0,[\\\"activeTab\\\"]],\\\"general\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@editor\\\",\\\"@isReadOnly\\\",\\\"@styles\\\",\\\"@onUpdate\\\"],[[30,3],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"changeset\\\",\\\"styles\\\"]],[28,[37,12],[[30,0,[\\\"onUpdate\\\"]],[30,2,[\\\"onUpdate\\\"]]],null]]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[30,4,[\\\"pane\\\"]],null,[[\\\"@activeTab\\\",\\\"@name\\\"],[[30,0,[\\\"activeTab\\\"]],\\\"colors\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,13],null,[[\\\"@editor\\\",\\\"@isReadOnly\\\",\\\"@selectOptions\\\",\\\"@styles\\\",\\\"@onUpdate\\\"],[[30,3],[30,0,[\\\"isReadOnly\\\"]],[30,0,[\\\"colorOptions\\\"]],[30,0,[\\\"changeset\\\",\\\"styles\\\"]],[28,[37,12],[[30,0,[\\\"onUpdate\\\"]],[30,2,[\\\"onUpdate\\\"]]],null]]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[30,4,[\\\"pane\\\"]],null,[[\\\"@activeTab\\\",\\\"@name\\\"],[[30,0,[\\\"activeTab\\\"]],\\\"typography\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,14],null,[[\\\"@title\\\"],[[28,[37,3],[\\\"widgets.configurator.typography.settings.title\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@fonts\\\",\\\"@changeset\\\",\\\"@path\\\",\\\"@isReadOnly\\\",\\\"@onUpdate\\\"],[[30,0,[\\\"fonts\\\"]],[30,0,[\\\"changeset\\\"]],\\\"styles.fonts\\\",[30,0,[\\\"isReadOnly\\\"]],[28,[37,12],[[30,0,[\\\"onUpdate\\\"]],[30,2,[\\\"onUpdate\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[39,14],null,[[\\\"@title\\\"],[[28,[37,3],[\\\"widgets.configurator.typography.fonts\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@typographyKeys\\\",\\\"@corporateDesignTypography\\\",\\\"@styles\\\",\\\"@fonts\\\",\\\"@fontOptions\\\",\\\"@showCustomFontWarning\\\",\\\"@isReadOnly\\\",\\\"@intlBaseKey\\\",\\\"@onUpdate\\\"],[[28,[37,17],[\\\"h2\\\",\\\"h3\\\",\\\"p\\\",\\\"label\\\",\\\"button\\\",\\\"small\\\"],null],[30,0,[\\\"corporateDesignTypography\\\"]],[30,0,[\\\"changeset\\\",\\\"styles\\\"]],[30,0,[\\\"fonts\\\"]],[30,0,[\\\"fontOptions\\\"]],false,[30,0,[\\\"isReadOnly\\\"]],\\\"widgets.configurator.typography\\\",[28,[37,12],[[30,0,[\\\"onUpdate\\\"]],[30,2,[\\\"onUpdate\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[30,4,[\\\"pane\\\"]],null,[[\\\"@activeTab\\\",\\\"@name\\\"],[[30,0,[\\\"activeTab\\\"]],\\\"tracking\\\"]],null],[1,\\\"\\\\n        \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[30,2,[\\\"preview\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,7,[\\\"navLeft\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@selected\\\",\\\"@options\\\",\\\"@isPlain\\\",\\\"@classNames\\\",\\\"@onChange\\\"],[[30,0,[\\\"selectedContentType\\\"]],[30,0,[\\\"typeOptions\\\"]],true,\\\"configurator-select mr1\\\",[28,[37,12],[[30,0,[\\\"updateOptions\\\"]],[30,2,[\\\"onUpdate\\\"]],\\\"config.content\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,8,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,9,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,9,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[8,9]]]]],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@selected\\\",\\\"@options\\\",\\\"@isPlain\\\",\\\"@classNames\\\",\\\"@onChange\\\"],[[28,[37,19],[[28,[37,20],[[30,0,[\\\"options\\\",\\\"config\\\",\\\"size\\\"]],[30,0,[\\\"sizeOptions\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"sizeOptions\\\"]],true,\\\"configurator-select mr1\\\",[28,[37,12],[[30,0,[\\\"updateOptions\\\"]],[30,2,[\\\"onUpdate\\\"]],\\\"config.size\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,10,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,11,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,11,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[10,11]]]]],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@selected\\\",\\\"@options\\\",\\\"@isPlain\\\",\\\"@classNames\\\",\\\"@onChange\\\"],[[28,[37,19],[[28,[37,20],[[30,0,[\\\"options\\\",\\\"config\\\",\\\"position\\\"]],[30,0,[\\\"positionOptions\\\"]]],null],\\\"label\\\"],null],[30,0,[\\\"positionOptions\\\"]],true,\\\"configurator-select mr3\\\",[28,[37,12],[[30,0,[\\\"updateOptions\\\"]],[30,2,[\\\"onUpdate\\\"]],\\\"config.position\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,12,[\\\"item\\\"]],null,[[\\\"@value\\\"],[[30,13,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,13,[\\\"label\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[12,13]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@onChange\\\",\\\"@value\\\"],[\\\"font-sm\\\",[28,[37,3],[\\\"widgets.configurator.showImage\\\"],null],[28,[37,12],[[30,0,[\\\"onImageCheck\\\"]],[30,2,[\\\"onUpdate\\\"]]],null],[30,0,[\\\"hasImage\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isInfoPopup\\\"]],[[[1,\\\"          \\\"],[8,[39,21],null,[[\\\"@classNames\\\",\\\"@label\\\",\\\"@onChange\\\",\\\"@value\\\"],[\\\"font-sm ml3\\\",[28,[37,3],[\\\"widgets.configurator.showButton\\\"],null],[28,[37,12],[[30,0,[\\\"onButtonCheck\\\"]],[30,2,[\\\"onUpdate\\\"]]],null],[30,0,[\\\"hasButton\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,7,[\\\"navRight\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"toggle\\\"]],[[24,0,\\\"mr1\\\"]],null,null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,7,[\\\"content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex flex-grow-1 flex-column justify-center items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"content\\\"]],[[16,0,[28,[37,22],[\\\"oauto bg-white br2 flex\\\",[52,[28,[37,23],[[30,1,[\\\"activeModeKey\\\"]],\\\"fluid\\\"],null],\\\"\\\",\\\" shadow-2 ma3\\\"]],null]]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,1,\\\"widget-container\\\"],[14,0,\\\"relative flex-grow-1\\\"],[12],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[7]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,24],null,[[\\\"@isOpen\\\",\\\"@onDiscard\\\",\\\"@onClose\\\"],[[30,0,[\\\"isDiscardChangesDialog\\\"]],[30,0,[\\\"confirmDiscard\\\"]],[28,[37,12],[[28,[37,8],[[30,0,[\\\"isDiscardChangesDialog\\\"]]],null]],null]]],null]],[\\\"viewMode\\\",\\\"container\\\",\\\"editor\\\",\\\"tabs\\\",\\\"header\\\",\\\"tab\\\",\\\"preview\\\",\\\"select\\\",\\\"option\\\",\\\"select\\\",\\\"option\\\",\\\"select\\\",\\\"option\\\"],false,[\\\"ui-view-modes\\\",\\\"aw-configurator\\\",\\\"perform\\\",\\\"t\\\",\\\"if\\\",\\\"ui-skeleton\\\",\\\"ui-routable-tabs\\\",\\\"action\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"amc-widget-configuration/general\\\",\\\"fn\\\",\\\"amc-widget-configuration/colors\\\",\\\"panel-group\\\",\\\"aw-typography-settings\\\",\\\"aw-typography-list\\\",\\\"array\\\",\\\"ui-select\\\",\\\"get\\\",\\\"array-find\\\",\\\"ui-checkbox\\\",\\\"concat\\\",\\\"equal\\\",\\\"ui-discard-changes\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/instance/widgets/widget.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/templates/page-not-found\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)({\n    \"id\": \"FsVSzYKk\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@buttonRoute\\\"],[\\\"application\\\"]],null]],[],false,[\\\"ui-page-not-found\\\"]]\",\n    \"moduleName\": \"additive-mc/templates/page-not-found.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"additive-mc/transforms/amc-configurations\", [\"exports\", \"@ember-data/serializer/transform\", \"@ember/object\"], function (_exports, _transform, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const ALLOWED_STATES = ['error', 'warning'];\n\n  /**\n   * Transformer for campaign configuration-items\n   */\n  class AmcConfigurationsTransform extends _transform.default {\n    deserialize(serialized) {\n      return serialized === null || serialized === void 0 ? void 0 : serialized.map(configuration => {\n        if (configuration.state && ALLOWED_STATES.indexOf(configuration.state) === -1) {\n          const copy = Object.assign({}, configuration);\n          delete copy.state;\n          return copy;\n        }\n        return configuration;\n      });\n    }\n    serialize(deserialized) {\n      const content = Array.isArray(deserialized) ? deserialized : [];\n      if (content.length === 0) {\n        return deserialized;\n      }\n      content.forEach(item => {\n        /* cast value of 'number' items to integers */\n        if (item.type === 'number') {\n          (0, _object.set)(item, 'value', parseInt(item.value));\n        }\n      });\n      return content;\n    }\n  }\n  _exports.default = AmcConfigurationsTransform;\n});","define(\"additive-mc/transforms/boolean\", [\"exports\", \"@ember-data/serializer/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _private.BooleanTransform;\n    }\n  });\n});","define(\"additive-mc/transforms/date\", [\"exports\", \"@ember-data/serializer/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _private.DateTransform;\n    }\n  });\n});","define(\"additive-mc/transforms/number\", [\"exports\", \"@ember-data/serializer/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _private.NumberTransform;\n    }\n  });\n});","define(\"additive-mc/transforms/string\", [\"exports\", \"@ember-data/serializer/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _private.StringTransform;\n    }\n  });\n});","define(\"additive-mc/transitions\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default() {\n    // Add your transitions here, like:\n    //   this.transition(\n    //     this.fromRoute('people.index'),\n    //     this.toRoute('people.detail'),\n    //     this.use('toLeft'),\n    //     this.reverse('toRight')\n    //   );\n  }\n});","define(\"additive-mc/transitions/tab-transition\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default(/* arg1, arg2 */\n  ) {\n    // Stop any currently running animation on oldElement\n    (0, _liquidFire.stop)(this.oldElement);\n\n    // Fade out the old element\n    return (0, _liquidFire.animate)(this.oldElement, {\n      opacity: 0,\n      translateY: '40px'\n    }, {\n      duration: 200\n    })\n    // And then fade in the new element, from opacity 0 to 1\n    .then(() => {\n      (0, _liquidFire.animate)(this.newElement, {\n        opacity: [1, 0],\n        translateY: ['0px', '40px']\n      }, {\n        duration: 200\n      });\n    });\n  }\n});","define(\"additive-mc/utils/app-utils\", [\"exports\", \"@additive-apps/ui/utils/app-utils\"], function (_exports, _appUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _appUtils.default;\n    }\n  });\n});","define(\"additive-mc/utils/calculate-position\", [\"exports\", \"ember-basic-dropdown/utils/calculate-position\"], function (_exports, _calculatePosition) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _calculatePosition.default;\n    }\n  });\n});","define(\"additive-mc/utils/chart-defaults\", [\"exports\", \"@additive-apps/ui/utils/chart-defaults\"], function (_exports, _chartDefaults) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _chartDefaults.default;\n    }\n  });\n});","define(\"additive-mc/utils/chart-draw-value-plugin\", [\"exports\", \"@additive-apps/ui/utils/chart-draw-value-plugin\"], function (_exports, _chartDrawValuePlugin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _chartDrawValuePlugin.default;\n    }\n  });\n});","define(\"additive-mc/utils/chart-tooltip-plugin\", [\"exports\", \"@additive-apps/ui/utils/chart-tooltip-plugin\"], function (_exports, _chartTooltipPlugin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _chartTooltipPlugin.default;\n    }\n  });\n});","define(\"additive-mc/utils/close-tab-utils\", [\"exports\", \"@additive-apps/ui/utils/close-tab-utils\"], function (_exports, _closeTabUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _closeTabUtils.default;\n    }\n  });\n});","define(\"additive-mc/utils/colors\", [\"exports\", \"additive-utils/utils/colors\"], function (_exports, _colors) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _colors.default;\n    }\n  });\n});","define(\"additive-mc/utils/constants-fonts\", [\"exports\", \"@additive-apps/utils/utils/constants-fonts\"], function (_exports, _constantsFonts) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _constantsFonts.default;\n    }\n  });\n});","define(\"additive-mc/utils/constants\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.onboardingData = _exports.UPGRADE_ENQUIRY_URL = _exports.TRIGGER_EMAIL_CAMPAIGN_TYPES = _exports.MINIMUM_CALENDAR_DATE = _exports.LOCAL_STORAGE_FILTER_KEY = _exports.LAYOUT_PORTRAIT = _exports.LAYOUT_LANDSCAPE = _exports.GOOGLE_SEARCH_ADS_SITE_LINK = _exports.GOOGLE_SEARCH_ADS_ADDITIONAL_INFORMATION = _exports.EMAIL_CAMPAIGN_TYPES = _exports.EMAIL_CAMPAIGN_CTA_TYPE_VOUCHER = _exports.EMAIL_CAMPAIGN_CTA_TYPE_SURVEY = _exports.EMAIL_CAMPAIGN_CTA_TYPE_LANDINGPAGE = _exports.EMAIL_CAMPAIGN_CTA_TYPE_CTA = _exports.CHART_COLORS = void 0;\n  const LOCAL_STORAGE_FILTER_KEY = _exports.LOCAL_STORAGE_FILTER_KEY = 'filter-storage';\n  const TRIGGER_EMAIL_CAMPAIGN_TYPES = _exports.TRIGGER_EMAIL_CAMPAIGN_TYPES = {\n    starter: [{\n      type: 'UserBasedLeadCampaign',\n      icon: 'lead'\n    }, {\n      type: 'UserBasedTriggerCampaign',\n      icon: 'bolt',\n      upgradeRequired: true\n    }],\n    enterprise: [{\n      type: 'UserBasedTriggerCampaign',\n      icon: 'bolt'\n    }, {\n      type: 'UserBasedLeadCampaign',\n      icon: 'lead'\n    }]\n  };\n  const EMAIL_CAMPAIGN_TYPES = _exports.EMAIL_CAMPAIGN_TYPES = {\n    usecase1: {\n      steps: ['trigger', 'emails', 'voucher', 'configuration']\n    },\n    usecase2a: {\n      steps: ['trigger', 'emails', 'voucher', 'configuration']\n    },\n    usecase2b: {\n      steps: ['trigger', 'emails', 'voucher', 'configuration']\n    },\n    usecase3a: {\n      steps: ['trigger', 'emails', 'voucher', 'configuration']\n    },\n    usecase3b: {\n      steps: ['trigger', 'emails', 'voucher', 'configuration']\n    },\n    usecase4: {\n      steps: ['trigger', 'emails', 'voucher', 'configuration']\n    },\n    usecase5: {\n      steps: ['trigger', 'emails', 'voucher', 'configuration']\n    },\n    usecase6: {\n      steps: ['trigger', 'emails', 'voucher', 'configuration']\n    },\n    usecase7a: {\n      steps: ['trigger', 'emails', 'configuration']\n    },\n    usecase7b: {\n      steps: ['trigger', 'emails', 'voucher', 'configuration']\n    },\n    usecase7c: {\n      steps: ['trigger', 'emails', 'voucher', 'configuration']\n    },\n    usecase9a: {\n      steps: ['trigger', 'emails', 'voucher', 'configuration']\n    },\n    usecase11: {\n      steps: ['trigger', 'emails', 'voucher', 'configuration']\n    },\n    usecase12: {\n      steps: ['trigger', 'emails', 'voucher', 'configuration']\n    }\n  };\n  const EMAIL_CAMPAIGN_CTA_TYPE_VOUCHER = _exports.EMAIL_CAMPAIGN_CTA_TYPE_VOUCHER = 'voucher';\n  const EMAIL_CAMPAIGN_CTA_TYPE_CTA = _exports.EMAIL_CAMPAIGN_CTA_TYPE_CTA = 'cta';\n  const EMAIL_CAMPAIGN_CTA_TYPE_LANDINGPAGE = _exports.EMAIL_CAMPAIGN_CTA_TYPE_LANDINGPAGE = 'landingpage';\n  const EMAIL_CAMPAIGN_CTA_TYPE_SURVEY = _exports.EMAIL_CAMPAIGN_CTA_TYPE_SURVEY = 'survey';\n\n  /* Google Search Ads */\n  const GOOGLE_SEARCH_ADS_SITE_LINK = _exports.GOOGLE_SEARCH_ADS_SITE_LINK = 'Google::SearchAds::Extension::SiteLink';\n  const GOOGLE_SEARCH_ADS_ADDITIONAL_INFORMATION = _exports.GOOGLE_SEARCH_ADS_ADDITIONAL_INFORMATION = 'Google::SearchAds::Extension::AdditionalInformation';\n\n  /* template layouts */\n  const LAYOUT_LANDSCAPE = _exports.LAYOUT_LANDSCAPE = 'landscape';\n  const LAYOUT_PORTRAIT = _exports.LAYOUT_PORTRAIT = 'portrait';\n  const CHART_COLORS = _exports.CHART_COLORS = [{\n    borderColor: '#4D76F1',\n    backgroundColor: '#4D76F1',\n    pointBorderColor: 'white'\n  }, {\n    borderColor: '#00172f',\n    backgroundColor: '#00172f',\n    pointBorderColor: 'white'\n  }, {\n    borderColor: '#8f9ea4',\n    backgroundColor: '#8f9ea4',\n    pointBorderColor: 'white'\n  }];\n  const MINIMUM_CALENDAR_DATE = _exports.MINIMUM_CALENDAR_DATE = new Date(2017, 0, 1);\n  const UPGRADE_ENQUIRY_URL = _exports.UPGRADE_ENQUIRY_URL = 'https://www.additive.eu/en/marketing-software/additive-marketing-automation-hotel?utm_source=additive-ma&utm_campaign=upgrade-button&utm-medium=app';\n  const onboardingData = intl => {\n    return {\n      1: [{\n        title: intl.t('onboarding.1.title'),\n        description: intl.t('onboarding.1.description'),\n        illustration: 'marketing-cloud',\n        isFirstStep: true\n      }, {\n        title: intl.t('onboarding.2.title'),\n        description: intl.t('onboarding.2.description'),\n        illustration: 'step-2',\n        theme: 'dark'\n      }, {\n        title: intl.t('onboarding.3.title'),\n        description: intl.t('onboarding.3.description'),\n        illustration: 'step-3',\n        theme: 'blue'\n      }, {\n        title: intl.t('onboarding.4.title'),\n        description: intl.t('onboarding.4.description'),\n        illustration: 'step-4',\n        isLastStep: true\n      }]\n    };\n  };\n  _exports.onboardingData = onboardingData;\n});","define(\"additive-mc/utils/country-utils\", [\"exports\", \"@additive-apps/ui/utils/country-utils\"], function (_exports, _countryUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _countryUtils.default;\n    }\n  });\n});","define(\"additive-mc/utils/currency-serialization\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.centsToAmount = _exports.amountToCents = void 0;\n  /**\n   * format an amount to cents\n   *\n   * @param {Number} amount\n   */\n  const amountToCents = amount => {\n    if (!amount || isNaN(parseFloat(amount))) {\n      return amount;\n    }\n    const floatAmount = typeof amount === 'string' ? parseFloat(amount.replace(',', '.')) : amount;\n    return Math.floor(floatAmount * 100);\n  };\n  /**\n   * transform an amount in cents into an float\n   *\n   * @param {Number} cents\n   */\n  _exports.amountToCents = amountToCents;\n  const centsToAmount = cents => {\n    if (!cents || isNaN(parseFloat(cents))) {\n      return cents;\n    }\n    return cents / 100;\n  };\n  _exports.centsToAmount = centsToAmount;\n});","define(\"additive-mc/utils/currency-util\", [\"exports\", \"@additive-apps/utils/utils/currency-util\"], function (_exports, _currencyUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _currencyUtil.default;\n    }\n  });\n});","define(\"additive-mc/utils/date-util\", [\"exports\", \"@additive-apps/ui/utils/date-util\"], function (_exports, _dateUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _dateUtil.default;\n    }\n  });\n});","define(\"additive-mc/utils/dom-util\", [\"exports\", \"@additive-apps/ui/utils/dom-util\"], function (_exports, _domUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _domUtil.default;\n    }\n  });\n});","define(\"additive-mc/utils/editor-util\", [\"exports\", \"@additive-apps/ui/utils/editor-util\"], function (_exports, _editorUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _editorUtil.default;\n    }\n  });\n});","define(\"additive-mc/utils/errors\", [\"exports\", \"@additive-apps/utils/utils/errors\"], function (_exports, _errors) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _errors.default;\n    }\n  });\n});","define(\"additive-mc/utils/facebook\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.fbApiRequest = void 0;\n  /**\n   *  Wrapper function for calling a facebook api endpoint\n   *\n   * @function fbApiRequest\n   * @param {String} path\n   * @param {String} [method='GET']\n   * @returns {Promise<Array>}\n   */\n  const fbApiRequest = _exports.fbApiRequest = function fbApiRequest(path, userToken) {\n    let stack = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n    let method = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'GET';\n    const params = {\n      access_token: userToken,\n      limit: 5000\n    };\n    return new Promise((resolve, reject) => {\n      window.FB.api(path, method, params, response => {\n        if (response !== null && response !== void 0 && response.error) {\n          reject(response.error);\n        }\n        if (response !== null && response !== void 0 && response.data.length) {\n          stack = stack.concat(response === null || response === void 0 ? void 0 : response.data);\n        }\n        return resolve(stack);\n      });\n    });\n  };\n});","define(\"additive-mc/utils/filter-util\", [\"exports\", \"@additive-apps/ui/utils/filter-util\"], function (_exports, _filterUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _filterUtil.default;\n    }\n  });\n});","define(\"additive-mc/utils/fonts\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.serifFontsFallbacks = _exports.serifFonts = _exports.sansSerifFontsFallbacks = _exports.sansSerifFonts = _exports.loadFont = _exports.getFontOptions = _exports.default = _exports.FONT_TYPES = void 0;\n  const sansSerifFonts = _exports.sansSerifFonts = [{\n    name: 'Helvetica',\n    value: 'Helvetica',\n    group: 'sansserif',\n    key: ''\n  }, {\n    name: 'Lucida Grande',\n    value: 'Lucida Grande',\n    group: 'sansserif',\n    key: ''\n  }, {\n    name: 'Geneva',\n    value: 'Geneva',\n    group: 'sansserif',\n    key: ''\n  }, {\n    name: 'Arial',\n    value: 'Arial',\n    group: 'sansserif',\n    key: ''\n  }, {\n    name: 'Verdana',\n    value: 'Verdana',\n    group: 'sansserif',\n    key: ''\n  }, {\n    name: 'Lucida Sans',\n    value: 'Lucida Sans',\n    group: 'sansserif',\n    key: ''\n  }, {\n    name: 'Lucida',\n    value: 'Lucida',\n    group: 'sansserif',\n    key: ''\n  }, {\n    name: 'Trebuchet MS',\n    value: 'Trebuchet MS',\n    group: 'sansserif',\n    key: ''\n  }, {\n    name: 'Tahoma',\n    value: 'Tahoma',\n    group: 'sansserif',\n    key: ''\n  }, {\n    name: 'Century Gothic',\n    value: 'Century Gothic',\n    group: 'sansserif',\n    key: ''\n  }, {\n    name: 'Arial Black',\n    value: 'Arial Black',\n    group: 'sansserif',\n    key: ''\n  }];\n  const serifFonts = _exports.serifFonts = [{\n    name: 'Palatino',\n    value: 'Palatino',\n    group: 'serif',\n    key: ''\n  }, {\n    name: 'Palatino Linotype',\n    value: 'Palatino Linotype',\n    group: 'serif',\n    key: ''\n  }, {\n    name: 'Georgia',\n    value: 'Georgia',\n    group: 'serif',\n    key: ''\n  }, {\n    name: 'Times New Roman',\n    value: 'Times New Roman',\n    group: 'serif',\n    key: ''\n  }, {\n    name: 'Times',\n    value: 'Times',\n    group: 'serif',\n    key: ''\n  }, {\n    name: 'Courier',\n    value: 'Courier',\n    group: 'serif',\n    key: ''\n  }];\n  const sansSerifFontsFallbacks = _exports.sansSerifFontsFallbacks = '-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif';\n  const serifFontsFallbacks = _exports.serifFontsFallbacks = '\"Book Antiqua\",Palatino,\"Palatino Linotype\",\"Palatino LT STD\",Georgia,serif';\n\n  // supported font variants\n  const FONT_TYPES = _exports.FONT_TYPES = ['normal', 'light', 'bold'];\n\n  /**\n   * Util that extracts all custom font variants from a given font-object,\n   * merges them with all available serif and sans-serif fonts, with their fallbacks\n   * and transforms them into an array which are supported by our select-component\n   *\n   *\n   * The input param should always have the correct format as defined by the api.\n   *\n   * ```js\n   * fonts: {\n   *  key: {\n   *    light: {\n   *      fontFamily: 'dummy font light',\n   *      ...\n   *    }\n   *    ...\n   *  }\n   * }\n   * ```\n   * Available font variants are currently `light`, `normal` and `bold`\n   * @function getFontOptions\n   * @param {Object} fonts\n   * @return {Array} fontOptions\n   */\n  const getFontOptions = fonts => {\n    const customFonts = [];\n    Object.keys(fonts || {}).forEach(key => {\n      FONT_TYPES.forEach(type => {\n        if (fonts[key] && fonts[key][type]) {\n          const isFirstOfCustom = customFonts.length === 0;\n          customFonts.push({\n            // the value displayed in the select is the name of the font family\n            name: fonts[key][type].fontFamily,\n            // the internal value is the key.type. e.g.: `primary.normal`\n            value: `${key}.${type}`,\n            url: fonts[key][type].url,\n            serif: fonts[key].serif,\n            isCustom: true,\n            isFirstOfCustom\n          });\n        }\n      });\n    });\n    const fontOptions = [...customFonts, {\n      name: 'Standard',\n      value: sansSerifFontsFallbacks,\n      serif: false,\n      isFirstOfGroup: true\n    }, ...sansSerifFonts, {\n      name: 'Standard',\n      value: serifFontsFallbacks,\n      serif: true,\n      isFirstOfGroup: true\n    }, ...serifFonts];\n    return fontOptions;\n  };\n\n  /**\n   * loads a font into the dom\n   *\n   * @function loadFont\n   * @param {String} fontFamily, the name of the fontface\n   * @param {String} url, the url to load from\n   */\n  _exports.getFontOptions = getFontOptions;\n  const loadFont = (fontFamily, url) => {\n    // check for properties and dom features, if a font is called Barlow it is not loaded to avoid\n    // interfering with the font of the application\n    if (!fontFamily || !url || !document.fonts || fontFamily === 'Barlow') return;\n    try {\n      const newFont = new FontFace(fontFamily, `url(${url})`);\n      return newFont.load().then(loadedFont => document.fonts.add(loadedFont)).catch(() => {});\n    } catch (e) {\n      // ignore errors\n      return;\n    }\n  };\n  _exports.loadFont = loadFont;\n  var _default = _exports.default = {\n    sansSerifFonts\n  };\n});","define(\"additive-mc/utils/format-currency\", [\"exports\", \"@additive-apps/ui/utils/format-currency\"], function (_exports, _formatCurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _formatCurrency.default;\n    }\n  });\n});","define(\"additive-mc/utils/function-util\", [\"exports\", \"@additive-apps/ui/utils/function-util\"], function (_exports, _functionUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _functionUtil.default;\n    }\n  });\n});","define(\"additive-mc/utils/helpers\", [\"exports\", \"date-fns\"], function (_exports, _dateFns) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getDefaultFilterDates = void 0;\n  /**\n   * returns the default date range for the filter\n   *  { start: first day of this year, end: today }\n   *\n   * @function getDefaultFilterDates\n   */\n  const getDefaultFilterDates = () => {\n    const start = (0, _dateFns.format)(new Date(new Date().getFullYear(), 0, 1), 'yyyy-MM-dd');\n    const end = (0, _dateFns.format)(new Date(), 'yyyy-MM-dd');\n    return {\n      start,\n      end\n    };\n  };\n  _exports.getDefaultFilterDates = getDefaultFilterDates;\n});","define(\"additive-mc/utils/intl/missing-message\", [\"exports\", \"ember-intl/-private/utils/missing-message\"], function (_exports, _missingMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _missingMessage.default;\n    }\n  });\n});","define(\"additive-mc/utils/iso-duration\", [\"exports\", \"additive-mc/utils/iso-duration/parse\", \"additive-mc/utils/iso-duration/to-string\"], function (_exports, _parse, _toString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.objectMap = void 0;\n  Object.defineProperty(_exports, \"parse\", {\n    enumerable: true,\n    get: function get() {\n      return _parse.default;\n    }\n  });\n  Object.defineProperty(_exports, \"toString\", {\n    enumerable: true,\n    get: function get() {\n      return _toString.default;\n    }\n  });\n  /* TODO: implement 'weeks' if needed, currently not implemented as it has special syntax*/\n  const objectMap = _exports.objectMap = ['years', 'months', 'days', 'hours', 'minutes', 'seconds'];\n});","define(\"additive-mc/utils/iso-duration/parse\", [\"exports\", \"additive-mc/utils/iso-duration\"], function (_exports, _isoDuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.pattern = _exports.default = void 0;\n  // https://github.com/tolu/ISO8601-duration/blob/c39ca366611a4b8db61b6292c4955499b16a4d2b/src/index.js\n\n  // PnYnMnDTnHnMnS\n  const numbers = '\\\\d+(?:[\\\\.,]\\\\d+)?';\n  const datePattern = `(${numbers}Y)?(${numbers}M)?(${numbers}D)?`;\n  const timePattern = `T(${numbers}H)?(${numbers}M)?(${numbers}S)?`;\n  const iso8601 = `P(?:${datePattern}(?:${timePattern})?)`;\n\n  /**\n   * The ISO8601 regex for matching / testing durations\n   */\n  const pattern = _exports.pattern = new RegExp(iso8601);\n\n  /**\n   * Parse 'PnYnMnDTnHnMnS' format to object\n   * @param {string} input - PnYnMnDTnHnMnS formatted string\n   * @return {Object} - With a property for each part of the pattern\n   */\n  const parse = input => {\n    if (!input || typeof input !== 'string') {\n      throw new Error('[iso-duration] parse error');\n    }\n\n    // Slice away first entry in match-array\n    return input.match(pattern).slice(1).reduce((prev, next, idx) => {\n      prev[_isoDuration.objectMap[idx]] = parseFloat(next) || 0;\n      return prev;\n    }, {});\n  };\n  var _default = _exports.default = parse;\n});","define(\"additive-mc/utils/iso-duration/to-string\", [\"exports\", \"additive-mc/utils/iso-duration\"], function (_exports, _isoDuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const stringMapDate = {\n    years: 'Y',\n    months: 'M',\n    weeks: 'W',\n    days: 'D'\n  };\n  const stringMapTime = {\n    hours: 'H',\n    minutes: 'M',\n    seconds: 'S'\n  };\n\n  /**\n   * Builds an ios8601-duration string out of the given input.\n   *\n   *``js\n    input: { years: 10, months: 20, days: 30, hours: 9, minutes: 50 }\n    result: 'stringMapTime[durationPart]'\n   ``\n   * @param {Object} input - With a property for each part of the pattern\n   * @return {string} - iso8601-duration\n   */\n  const toString = input => {\n    if (!input || typeof input !== 'object' || Object.keys(input).length === 0) {\n      throw new Error('[iso-duration] toString error: wrong input type');\n    }\n    let resultDate = '';\n    let resultTime = '';\n    _isoDuration.objectMap.forEach(durationPart => {\n      const value = input[durationPart];\n      if (!value) {\n        /* We treat 0 as valid value but do not add it to ISO duration string*/\n        if (value !== 0 && (!stringMapDate[durationPart] || !stringMapTime[durationPart])) {\n          throw new Error('[iso-duration] toString error: invalid key found');\n        }\n        return;\n      }\n      if (stringMapDate[durationPart]) {\n        resultDate += `${value}${stringMapDate[durationPart]}`;\n      } else if (stringMapTime[durationPart]) {\n        resultTime += `${value}${stringMapTime[durationPart]}`;\n      }\n    });\n    if (resultDate !== '' && resultTime !== '') {\n      return `P${resultDate}T${resultTime}`;\n    } else if (resultDate) {\n      return `P${resultDate}`;\n    } else if (resultTime) {\n      return `PT${resultTime}`;\n    }\n    return '';\n  };\n  var _default = _exports.default = toString;\n});","define(\"additive-mc/utils/local-storage\", [\"exports\", \"@additive-apps/ui/utils/local-storage\"], function (_exports, _localStorage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _localStorage.default;\n    }\n  });\n});","define(\"additive-mc/utils/locale-util\", [\"exports\", \"@additive-apps/utils/utils/locale-util\"], function (_exports, _localeUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _localeUtil.default;\n    }\n  });\n});","define(\"additive-mc/utils/model-action\", [\"exports\", \"@additive-apps/ui/utils/model-action\"], function (_exports, _modelAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _modelAction.default;\n    }\n  });\n});","define(\"additive-mc/utils/object-assign\", [\"exports\", \"@additive-apps/ui/utils/object-assign\"], function (_exports, _objectAssign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _objectAssign.default;\n    }\n  });\n});","define(\"additive-mc/utils/pages-util\", [\"exports\", \"@additive-apps/ui/utils/pages-util\"], function (_exports, _pagesUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _pagesUtil.default;\n    }\n  });\n});","define(\"additive-mc/utils/parse-url\", [\"exports\", \"@additive-apps/ui/utils/parse-url\"], function (_exports, _parseUrl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _parseUrl.default;\n    }\n  });\n});","define(\"additive-mc/utils/plans\", [\"exports\", \"@additive-apps/utils/utils/plans\"], function (_exports, _plans) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _plans.default;\n    }\n  });\n});","define(\"additive-mc/utils/posthog\", [\"exports\", \"additive-mc/config/environment\", \"posthog-js\"], function (_exports, _environment, _posthogJs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.setupPosthog = void 0;\n  const setupPosthog = (user, organization) => {\n    if (!_environment.default.APP.posthogPublicToken) return;\n    const sensitiveUrlPatterns = [/[?&]token=/, /[?&]callback=/, /[?&]code=/, /[?&]email_verification_code=/, /[?&]challenge_id=/, /[?&]profiles=/, /[?&]auth_code=/];\n    _posthogJs.default.init(_environment.default.APP.posthogPublicToken, {\n      api_host: _environment.default.APP.posthogPublicHost,\n      cross_subdomain_cookie: true,\n      persistence: 'localStorage+cookie',\n      defaults: '2026-01-30',\n      loaded: posthog => {\n        posthog === null || posthog === void 0 || posthog.register({\n          app: 'MA'\n        });\n      },\n      before_send: event => {\n        var _event$properties, _event$properties2;\n        const url = (event === null || event === void 0 || (_event$properties = event.properties) === null || _event$properties === void 0 ? void 0 : _event$properties['$current_url']) || (event === null || event === void 0 || (_event$properties2 = event.properties) === null || _event$properties2 === void 0 ? void 0 : _event$properties2['$url']) || '';\n        if (sensitiveUrlPatterns.some(pattern => pattern.test(url))) {\n          return null;\n        }\n        return event;\n      },\n      autocapture: {\n        url_ignorelist: sensitiveUrlPatterns\n      }\n    });\n    _posthogJs.default.identify(user.id, {\n      name: user.fullName,\n      email: user.email,\n      language: user.language,\n      isPartner: user.isPartner || false,\n      isAdditive: user.isAdditive || false\n    });\n    if (_posthogJs.default.get_property('group_set')) return;\n    _posthogJs.default.register({\n      group_set: true\n    });\n    if (user.isAdditive) {\n      _posthogJs.default.group('organization', 'additive-eu', {\n        name: 'ADDITIVE'\n      });\n      return;\n    }\n    if (user.isPartner && organization.partnerSlug) {\n      _posthogJs.default.group('organization', organization.partnerSlug, {\n        name: organization.partnerName\n      });\n      return;\n    }\n    _posthogJs.default.group('organization', organization.id, {\n      name: organization.name\n    });\n  };\n  _exports.setupPosthog = setupPosthog;\n});","define(\"additive-mc/utils/query-param-util\", [\"exports\", \"@additive-apps/ui/utils/query-param-util\"], function (_exports, _queryParamUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _queryParamUtil.default;\n    }\n  });\n});","define(\"additive-mc/utils/roles-map\", [\"exports\", \"@additive-apps/auth/utils/roles-map\"], function (_exports, _rolesMap) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _rolesMap.default;\n    }\n  });\n});","define(\"additive-mc/utils/sort-util\", [\"exports\", \"@additive-apps/ui/utils/sort-util\"], function (_exports, _sortUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _sortUtil.default;\n    }\n  });\n});","define(\"additive-mc/utils/table-util\", [\"exports\", \"@additive-apps/ui/utils/table-util\"], function (_exports, _tableUtil) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _tableUtil.default;\n    }\n  });\n});","define(\"additive-mc/utils/url\", [\"exports\", \"@additive-apps/auth/utils/url\"], function (_exports, _url) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _url.default;\n    }\n  });\n});","define(\"additive-mc/utils/viewport\", [\"exports\", \"@additive-apps/utils/utils/viewport\"], function (_exports, _viewport) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _viewport.default;\n    }\n  });\n});","define(\"additive-mc/utils/widget-constants\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.UTM_OPTIONS = _exports.SM_POSTITION_OPTIONS = _exports.SIZE_OPTIONS = _exports.POSITION_OPTIONS = _exports.MD_POSTITION_OPTIONS = _exports.LG_POSTITION_OPTIONS = _exports.EVENT_OPTIONS = _exports.DEFAULT_PREVIEW_CONFIG = _exports.DEFAULT_IMAGE = _exports.CONTENT_OPTIONS = void 0;\n  const DEFAULT_IMAGE = _exports.DEFAULT_IMAGE = {\n    url: 'https://multimedia.additive-apps.tech/media/440c51b6342d89b28511688ad40f8416'\n  };\n  const DEFAULT_LEAD = {\n    type: 'lead',\n    headline: 'Anmelden und profitieren! ',\n    text: 'Melden Sie sich jetzt zu unserem Newsletter an und profitieren Sie von spannenden Neuigkeiten, wertvollen Tipps und exklusiven Angeboten – Urlaubsfeeling für Ihr Postfach!',\n    image: DEFAULT_IMAGE,\n    showSalutation: true,\n    cta: 'Anmelden'\n  };\n  const DEFAULT_VOUCHER = {\n    type: 'voucher',\n    headline: 'Anmelden und Gutschein erhalten!',\n    text: 'Melden Sie sich jetzt zu unserem Newsletter an und profitieren Sie von wertvollen Tipps und exklusiven Angeboten. Obendrauf erhalten Sie einen Gutschein im Wert von 50€!',\n    image: DEFAULT_IMAGE,\n    requestSalutation: true,\n    cta: 'Gutschein erhalten'\n  };\n  const DEFAULT_INFO = {\n    type: 'info',\n    headline: 'Information',\n    text: 'Das ist eine Information',\n    image: DEFAULT_IMAGE,\n    requestSalutation: true,\n    cta: 'OK'\n  };\n  const DEFAULT_PREVIEW_CONFIG = _exports.DEFAULT_PREVIEW_CONFIG = {\n    content: DEFAULT_LEAD,\n    size: 'md',\n    position: 'bottom-right',\n    isFixed: false,\n    rules: {\n      rule: 'on-view',\n      scrollPosition: 0,\n      delay: 0,\n      utmParam: null\n    },\n    visibility: {\n      device: 'all',\n      visitors: 'all',\n      excludeKnownContacts: false,\n      excludedHosts: []\n    }\n  };\n  const SIZE_OPTIONS = _exports.SIZE_OPTIONS = ['sm', 'md', 'lg'];\n  const SM_POSTITION_OPTIONS = _exports.SM_POSTITION_OPTIONS = ['bottom-right', 'bottom-left', 'top-right', 'top-left'];\n  const MD_POSTITION_OPTIONS = _exports.MD_POSTITION_OPTIONS = ['bottom-right', 'bottom-left', 'top-right', 'top-left', 'center'];\n  const LG_POSTITION_OPTIONS = _exports.LG_POSTITION_OPTIONS = ['top-right', 'top-left'];\n  const POSITION_OPTIONS = _exports.POSITION_OPTIONS = {\n    sm: SM_POSTITION_OPTIONS,\n    md: MD_POSTITION_OPTIONS,\n    lg: LG_POSTITION_OPTIONS\n  };\n  const EVENT_OPTIONS = _exports.EVENT_OPTIONS = ['on-exit', 'on-scroll', 'on-view'];\n  const UTM_OPTIONS = _exports.UTM_OPTIONS = ['none', 'campaign', 'medium', 'source'];\n  const CONTENT_OPTIONS = _exports.CONTENT_OPTIONS = [DEFAULT_LEAD, DEFAULT_VOUCHER, DEFAULT_INFO];\n});","define(\"additive-mc/utils/widget-default\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getColorOptions = _exports.StyleValues = _exports.FONT_FALLBACKS = _exports.DEFAULT_STYLES_TYPOGRAPHY = _exports.DEFAULT_STYLES_COLORS = _exports.DEFAULT_STYLES = _exports.DEFAULT_FONTS_CONFIG = void 0;\n  const FONT_FALLBACKS = _exports.FONT_FALLBACKS = {\n    sansSerif: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol',\n    serif: '\"Book Antiqua\",Palatino,\"Palatino Linotype\",\"Palatino LT STD\",Georgia,serif'\n  };\n  const DEFAULT_STYLES_COLORS = _exports.DEFAULT_STYLES_COLORS = {\n    /* Main Colors */\n    main: {\n      color: '#3D3D3D',\n      contrastColor: '#FFFFFF'\n    },\n    accent: {\n      color: '#967E6E',\n      contrastColor: '#FFFFFF'\n    },\n    ambient: {\n      color: '#FFFFFF',\n      contrastColor: '#3D3D3D'\n    }\n  };\n  const DEFAULT_STYLES_TYPOGRAPHY = _exports.DEFAULT_STYLES_TYPOGRAPHY = {\n    h2: {\n      fontFamily: 'primary',\n      fontWeight: 'bold',\n      fontSize: '32px',\n      uppercase: false,\n      letterSpacing: 0,\n      lineHeight: '40px'\n    },\n    h3: {\n      fontFamily: 'primary',\n      fontWeight: 'bold',\n      fontSize: '24px',\n      uppercase: false,\n      letterSpacing: 0,\n      lineHeight: '28px'\n    },\n    p: {\n      fontFamily: 'secondary',\n      fontWeight: 'normal',\n      fontSize: '18px',\n      uppercase: false,\n      letterSpacing: 0,\n      lineHeight: '24px'\n    },\n    label: {\n      fontFamily: 'secondary',\n      fontWeight: 'normal',\n      fontSize: '11px',\n      uppercase: false,\n      letterSpacing: 0,\n      lineHeight: '16px'\n    },\n    button: {\n      fontFamily: 'secondary',\n      fontWeight: 'normal',\n      fontSize: '14px',\n      uppercase: false,\n      letterSpacing: 0,\n      lineHeight: '20px'\n    },\n    small: {\n      fontFamily: 'secondary',\n      fontWeight: 'normal',\n      fontSize: '14px',\n      uppercase: false,\n      letterSpacing: 0,\n      lineHeight: '20px'\n    }\n  };\n  const DEFAULT_STYLES = _exports.DEFAULT_STYLES = {\n    layout: 'layout1',\n    isTwoStepForm: false,\n    compactness: 'normal',\n    backgroundImage: null,\n    borderRadius: '2px',\n    boxShadowSpreadRadius: '1px',\n    boxShadow: '0 1px 2px 0 rgba(0,0,0,0.2)'\n  };\n  const DEFAULT_FONTS_CONFIG = _exports.DEFAULT_FONTS_CONFIG = {\n    embedFonts: false,\n    names: {\n      primary: {\n        normal: '',\n        light: '',\n        bold: ''\n      },\n      secondary: {\n        normal: '',\n        light: '',\n        bold: ''\n      }\n    }\n  };\n  const StyleValues = _exports.StyleValues = {\n    globals: DEFAULT_STYLES,\n    colors: DEFAULT_STYLES_COLORS,\n    typography: DEFAULT_STYLES_TYPOGRAPHY,\n    fonts: {\n      primary: FONT_FALLBACKS.sansSerif,\n      secondary: FONT_FALLBACKS.serif,\n      fontWeightBold: 'bold'\n    }\n  };\n\n  /**\n   * Util that transforms given colors into an array which are supported by our select-component\n   *\n   *\n   * The input param should always have the correct format as defined by the api.\n   *\n   * ```js\n   * colors: {\n   *  key: {\n   *    main: {\n   *      color: #000,\n   *      contrastColor: #ff\n   *    }\n   *  }\n   * }\n   * ```\n   * Available colors keys are `main`, `accent` and `ambient`.\n   * Each one is again an object which consists of a color and a contrast color.\n   *\n   * @function getColorOptions\n   * @param {Object} colors\n   * @return {Array} colorOptions\n   */\n  const getColorOptions = colors => {\n    const colorOptions = Object.keys(colors).map(key => {\n      return {\n        key,\n        value: colors[key]\n      };\n    });\n    return colorOptions;\n  };\n  _exports.getColorOptions = getColorOptions;\n});","define(\"additive-mc/utils/widget-utils\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.nestChangesetChanges = void 0;\n  /**\n   * The keys of the changeset changes may be concatenated strings delimited by `.`.\n   * Build a nested object with the splitted keys\n   *\n   * @param {Object} changes\n   */\n  const nestChangesetChanges = changes => {\n    const changesObject = {};\n    changes.forEach(changedProperty => {\n      const splittedPropertyKey = changedProperty.key.split('.');\n      const lastKey = splittedPropertyKey.pop();\n      let lastObjectLeaf = splittedPropertyKey.reduce((obj, key) => obj[key] = obj[key] || {}, changesObject);\n      lastObjectLeaf[lastKey] = changedProperty.value;\n    });\n    return changesObject;\n  };\n  _exports.nestChangesetChanges = nestChangesetChanges;\n});","define(\"additive-mc/validations/advertisement\", [\"exports\", \"ember-changeset-validations/validators\", \"@additive-apps/utils/validators/date\", \"@additive-apps/utils/validators/numeral\", \"@additive-apps/utils/validators/validate-if\", \"additive-mc/validators/depiction-placeholders\"], function (_exports, _validators, _date, _numeral, _validateIf, _depictionPlaceholders) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.tiktokLeadAdsDepictionValidation = _exports.tikTokLeadAdPublishValidation = _exports.tikTokAdValidation = _exports.leadAdsAdCreativeValidation = _exports.leadAdValidation = _exports.facebookAdValidation = _exports.facebookAdPublishValidation = _exports.facebookAdDepictionValidation = _exports.depictionValidation = _exports.adTikTokTargetGroupValidation = _exports.adBudgetValidation = void 0;\n  const leadAdValidation = intl => {\n    const afterDateMessage = intl.t('errors.afterStartDate');\n    const beforeEndDate = intl.t('errors.beforeEndDate');\n    return {\n      startDate: (0, _validateIf.default)({\n        validate: (0, _date.validateDateDependency)({\n          type: 'before',\n          on: 'endDate',\n          allowBlank: false,\n          allowEmptyDependency: true,\n          message: beforeEndDate\n        }),\n        if: {\n          unlimitedDuration: false\n        },\n        firstErrorMessage: true\n      }),\n      endDate: (0, _validateIf.default)({\n        validate: (0, _date.validateDateDependency)({\n          type: 'after',\n          on: 'startDate',\n          allowBlank: true,\n          allowEmptyDependency: true,\n          message: afterDateMessage\n        }),\n        if: {\n          unlimitedDuration: false\n        },\n        firstErrorMessage: true\n      })\n    };\n  };\n  _exports.leadAdValidation = leadAdValidation;\n  const leadAdsAdCreativeValidation = intl => {\n    return {\n      multimediaVariants: [(0, _validators.validateLength)({\n        allowBlank: true,\n        is: 2,\n        message: intl.t('adCampaigns.leadAds.edit.errors.wrongLabels')\n      }),\n      /*\n       * special validation for multimediaVariants of lead ads that will probably be removed in the future\n       *\n       * TODO: move to validator if we decide to keep this validation\n       */\n      (key, value) => {\n        // validate labels only if there are two images\n        if ((value === null || value === void 0 ? void 0 : value.length) !== 2) {\n          return true;\n        }\n        let usedLabels = [];\n        value.forEach(item => {\n          if (Array.isArray(item.labels)) {\n            usedLabels = [...usedLabels, ...item.labels];\n          }\n        });\n        if (usedLabels.length !== 2 || usedLabels.length !== usedLabels.uniq().length) {\n          return intl.t('adCampaigns.leadAds.edit.errors.wrongLabels');\n        }\n        return true;\n      }]\n    };\n  };\n  _exports.leadAdsAdCreativeValidation = leadAdsAdCreativeValidation;\n  const adBudgetValidation = intl => {\n    const greaterZeroMessage = intl.t('errors.greaterZero');\n    const presenceMessage = intl.t('errors.required');\n    return {\n      type: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      amount: (0, _numeral.validateNumeral)({\n        gt: 0,\n        allowBlank: false,\n        message: greaterZeroMessage\n      })\n    };\n  };\n  _exports.adBudgetValidation = adBudgetValidation;\n  const adTikTokTargetGroupValidation = intl => {\n    const presenceMessage = intl.t('errors.required');\n    return {\n      label: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      location: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      language: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      age: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      })\n    };\n  };\n  _exports.adTikTokTargetGroupValidation = adTikTokTargetGroupValidation;\n  const facebookAdValidation = intl => {\n    const afterDateMessage = intl.t('errors.afterStartDate');\n    const beforeEndDate = intl.t('errors.beforeEndDate');\n    const greaterZeroMessage = intl.t('errors.greaterZero');\n    const presenceMessage = intl.t('errors.required');\n    const depictionRequired = intl.t('adCampaigns.facebookContentAds.edit.errors.depictionRequired');\n    return {\n      startDate: (0, _validateIf.default)({\n        validate: (0, _date.validateDateDependency)({\n          type: 'before',\n          on: 'endDate',\n          allowBlank: false,\n          allowEmptyDependency: true,\n          message: beforeEndDate\n        }),\n        if: {\n          unlimitedDuration: false\n        },\n        firstErrorMessage: true\n      }),\n      endDate: (0, _validateIf.default)({\n        validate: (0, _date.validateDateDependency)({\n          type: 'after',\n          on: 'startDate',\n          allowBlank: true,\n          allowEmptyDependency: true,\n          message: afterDateMessage\n        }),\n        if: {\n          unlimitedDuration: false\n        },\n        firstErrorMessage: true\n      }),\n      'budget.type': (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      'budget.amount': (0, _numeral.validateNumeral)({\n        gt: 0,\n        allowBlank: false,\n        message: greaterZeroMessage\n      }),\n      targetAudience: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      depictions: [(0, _validators.validatePresence)({\n        presence: true,\n        message: depictionRequired\n      }), (0, _validators.validateLength)({\n        min: 1,\n        message: depictionRequired\n      })]\n    };\n  };\n  _exports.facebookAdValidation = facebookAdValidation;\n  const TIME_REGEX = /^(([0-1][0-9])|(2[0-3])):([0-5][0-9])$/;\n  const tikTokAdValidation = intl => {\n    const afterDateMessage = intl.t('errors.afterStartDate');\n    const beforeEndDate = intl.t('errors.beforeEndDate');\n    const presenceMessage = intl.t('errors.required');\n    const depictionRequired = intl.t('adCampaigns.facebookContentAds.edit.errors.depictionRequired');\n    const invalidFormatMessage = intl.t('errors.invalidFormat');\n    return {\n      startDate: (0, _validateIf.default)({\n        validate: (0, _date.validateDateDependency)({\n          type: 'before',\n          on: 'endDate',\n          allowBlank: false,\n          allowEmptyDependency: true,\n          message: beforeEndDate\n        }),\n        if: {\n          unlimitedDuration: false\n        },\n        firstErrorMessage: true\n      }),\n      endDate: (0, _validateIf.default)({\n        validate: (0, _date.validateDateDependency)({\n          type: 'after',\n          on: 'startDate',\n          allowBlank: true,\n          allowEmptyDependency: true,\n          message: afterDateMessage\n        }),\n        if: {\n          unlimitedDuration: false\n        },\n        firstErrorMessage: true\n      }),\n      'budget.type': (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      'budget.amount': (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      identity: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      targetGroup: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      depictions: [(0, _validators.validatePresence)({\n        presence: true,\n        message: depictionRequired\n      }), (0, _validators.validateLength)({\n        min: 1,\n        message: depictionRequired\n      })],\n      'timeLimitation.days': (0, _validateIf.default)({\n        validate: (0, _validators.validateLength)({\n          min: 1,\n          message: presenceMessage\n        }),\n        if: {\n          timeLimited: true\n        },\n        firstErrorMessage: true\n      }),\n      'timeLimitation.startTime': (0, _validateIf.default)({\n        validate: [(0, _validators.validatePresence)({\n          presence: true,\n          message: presenceMessage\n        }), (0, _validators.validateFormat)({\n          allowBlank: true,\n          regex: TIME_REGEX,\n          message: invalidFormatMessage\n        })],\n        if: {\n          timeLimited: true\n        },\n        firstErrorMessage: true\n      }),\n      'timeLimitation.endTime': (0, _validateIf.default)({\n        validate: [(0, _validators.validatePresence)({\n          presence: true,\n          message: presenceMessage\n        }), (0, _validators.validateFormat)({\n          allowBlank: true,\n          regex: TIME_REGEX,\n          message: invalidFormatMessage\n        })],\n        if: {\n          timeLimited: true\n        },\n        firstErrorMessage: true\n      })\n    };\n  };\n  _exports.tikTokAdValidation = tikTokAdValidation;\n  const facebookAdPublishValidation = intl => {\n    const baseIntlKey = 'adCampaigns.facebookContentAds.publishDialog.errorMessages';\n    const invalidDate = intl.t(`${baseIntlKey}.endDate`);\n    const budgetRequired = intl.t(`${baseIntlKey}.budget.amount`);\n    const budgetTypeRequired = intl.t(`${baseIntlKey}.budget.type`);\n    const targetAudience = intl.t(`${baseIntlKey}.targetAudience`);\n    const depictionRequired = intl.t(`${baseIntlKey}.depictions`);\n    const languageRequired = intl.t(`${baseIntlKey}.language`);\n    return {\n      endDate: (0, _date.validateDateDependency)({\n        type: 'after',\n        on: 'today',\n        message: invalidDate\n      }),\n      targetAudience: (0, _validators.validatePresence)({\n        presence: true,\n        message: targetAudience\n      }),\n      'budget.type': (0, _validators.validatePresence)({\n        presence: true,\n        message: budgetTypeRequired\n      }),\n      'budget.amount': (0, _numeral.validateNumeral)({\n        gt: 0,\n        allowBlank: false,\n        message: budgetRequired\n      }),\n      depictions: [(0, _validators.validatePresence)({\n        presence: true,\n        message: depictionRequired\n      }), (0, _validators.validateLength)({\n        min: 1,\n        message: depictionRequired\n      })],\n      language: (0, _validators.validatePresence)({\n        presence: true,\n        message: languageRequired\n      })\n    };\n  };\n  _exports.facebookAdPublishValidation = facebookAdPublishValidation;\n  const tikTokLeadAdPublishValidation = intl => {\n    const baseIntlKey = 'adCampaigns.tiktokLeadAds.publishDialog.errorMessages';\n    const invalidDate = intl.t(`${baseIntlKey}.endDate`);\n    const budgetRequired = intl.t(`${baseIntlKey}.budget.amount`);\n    const budgetTypeRequired = intl.t(`${baseIntlKey}.budget.type`);\n    const targetGroup = intl.t(`${baseIntlKey}.targetGroup`);\n    const identity = intl.t(`${baseIntlKey}.identity`);\n    const depictionRequired = intl.t(`${baseIntlKey}.depictions`);\n    return {\n      endDate: (0, _date.validateDateDependency)({\n        type: 'after',\n        on: 'today',\n        message: invalidDate\n      }),\n      identity: (0, _validators.validatePresence)({\n        presence: true,\n        message: identity\n      }),\n      targetGroup: (0, _validators.validatePresence)({\n        presence: true,\n        message: targetGroup\n      }),\n      'budget.type': (0, _validators.validatePresence)({\n        presence: true,\n        message: budgetTypeRequired\n      }),\n      'budget.amount': (0, _numeral.validateNumeral)({\n        gt: 0,\n        allowBlank: false,\n        message: budgetRequired\n      }),\n      depictions: [(0, _validators.validatePresence)({\n        presence: true,\n        message: depictionRequired\n      }), (0, _validators.validateLength)({\n        min: 1,\n        message: depictionRequired\n      })]\n    };\n  };\n  _exports.tikTokLeadAdPublishValidation = tikTokLeadAdPublishValidation;\n  const depictionValidation = (intl, allowedPlaceholders) => {\n    const presenceMessage = intl.t('errors.required');\n    return {\n      text: [(0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }), (0, _depictionPlaceholders.validateDepictionPlaceholders)({\n        message: intl.t('components.amcCampaign.ads.advertisements.depictionDetail.placeholderValidationMessage'),\n        allowedPlaceholders\n      })],\n      productTypes: [(0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }), (0, _validators.validateLength)({\n        min: 1,\n        message: presenceMessage\n      })],\n      headline: [(0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }), (0, _depictionPlaceholders.validateDepictionPlaceholders)({\n        message: intl.t('components.amcCampaign.ads.advertisements.depictionDetail.placeholderValidationMessage'),\n        allowedPlaceholders\n      })],\n      description: [(0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }), (0, _depictionPlaceholders.validateDepictionPlaceholders)({\n        message: intl.t('components.amcCampaign.ads.advertisements.depictionDetail.placeholderValidationMessage'),\n        allowedPlaceholders\n      })],\n      ctaType: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      formats: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      })\n    };\n  };\n  _exports.depictionValidation = depictionValidation;\n  const facebookAdDepictionValidation = intl => {\n    const presenceMessage = intl.t('errors.required');\n    const invalidFormatMessage = intl.t('errors.invalidFormat');\n    return {\n      title: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      headline: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      text: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      url: (0, _validators.validateFormat)({\n        // eslint-disable-next-line\n        regex: /^(http:\\/\\/www\\.|https:\\/\\/www\\.|http:\\/\\/|https:\\/\\/)?[A-Za-z0-9]+([\\-\\.]{1}[A-Za-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(\\/.*)?$/,\n        allowBlank: true,\n        message: invalidFormatMessage\n      }),\n      ctaType: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      images: (0, _validators.validateLength)({\n        min: 1,\n        message: intl.t('errors.imagesRequired')\n      })\n    };\n  };\n  _exports.facebookAdDepictionValidation = facebookAdDepictionValidation;\n  const tiktokLeadAdsDepictionValidation = intl => {\n    const presenceMessage = intl.t('errors.required');\n    const maxLengthMessage = intl.t('errors.maxLength', {\n      maxLength: 100\n    });\n    return {\n      text: [(0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }), (0, _validators.validateLength)({\n        max: 100,\n        message: maxLengthMessage\n      })],\n      videos: (0, _validators.validateLength)({\n        min: 1,\n        message: intl.t('errors.videosRequired')\n      }),\n      page: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      })\n    };\n  };\n  _exports.tiktokLeadAdsDepictionValidation = tiktokLeadAdsDepictionValidation;\n});","define(\"additive-mc/validations/campaign-configurations\", [\"exports\", \"@additive-apps/utils/validators/validate-each\", \"ember-changeset-validations/validators\"], function (_exports, _validateEach, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.utmParameterValidation = _exports.triggerEventValidation = _exports.percentageDistributionValidation = _exports.numberValidation = _exports.moneyValidation = _exports.interval = _exports.deliveryTimeValidation = void 0;\n  const interval = () => {\n    return {\n      value: (0, _validators.validateNumber)({\n        positive: true,\n        integer: true,\n        allowBlank: false\n      }),\n      period: (0, _validators.validateInclusion)({\n        list: ['Y', 'M', 'D']\n      })\n    };\n  };\n  _exports.interval = interval;\n  const moneyValidation = intl => {\n    return {\n      value: (0, _validators.validateNumber)({\n        positive: true,\n        allowBlank: true,\n        message: intl.t('errors.positiveNumber')\n      })\n    };\n  };\n  _exports.moneyValidation = moneyValidation;\n  const numberValidation = intl => {\n    return {\n      value: (0, _validators.validateFormat)({\n        regex: /^(0|[1-9]+[0-9]*)$/,\n        allowBlank: true,\n        message: intl.t('errors.positiveInteger')\n      })\n    };\n  };\n  _exports.numberValidation = numberValidation;\n  const triggerEventValidation = intl => {\n    return {\n      'value.value': (0, _validators.validateFormat)({\n        regex: /^(0|[1-9]+[0-9]*)$/,\n        allowBlank: false,\n        message: intl.t('errors.positiveInteger')\n      })\n    };\n  };\n  _exports.triggerEventValidation = triggerEventValidation;\n  const utmParameterValidation = intl => {\n    return {\n      'value.value': function valueValue(key, newValue, oldValue, changes, content) {\n        if (content.value.type && content.value.type !== 'none') {\n          return (0, _validators.validatePresence)({\n            presence: true,\n            message: intl.t('errors.required')\n          })(...arguments);\n        } else {\n          return true;\n        }\n      }\n    };\n  };\n  _exports.utmParameterValidation = utmParameterValidation;\n  const deliveryTimeValidation = intl => {\n    return {\n      'value.deliveryType': (0, _validators.validatePresence)({\n        presence: true,\n        message: intl.t('errors.required')\n      })\n    };\n  };\n\n  /**\n   * input: { value : [{ label: 'ma label', value: 10}, { label: 'ma', value: 50}]}\n   *\n   * @param {*} intl\n   */\n  _exports.deliveryTimeValidation = deliveryTimeValidation;\n  const percentageDistributionValidation = intl => {\n    return {\n      value: (0, _validateEach.default)({\n        value: (0, _validators.validateNumber)({\n          positive: true,\n          integer: true,\n          allowBlank: true,\n          message: intl.t('errors.positiveInteger')\n        })\n      }),\n      /* Dummy property */\n      sum: (0, _validators.validateNumber)({\n        is: 100,\n        message: intl.t('components.amc-campaign-configuration.percentage-distribution.sumError')\n      })\n    };\n  };\n  _exports.percentageDistributionValidation = percentageDistributionValidation;\n});","define(\"additive-mc/validations/email-campaign\", [\"exports\", \"ember-changeset-validations/validators\", \"@additive-apps/utils/validators/validate-if\", \"@additive-apps/utils/validators/numeral\", \"additive-mc/validators/test-email-validator\", \"additive-mc/utils/constants\"], function (_exports, _validators, _validateIf, _numeral, _testEmailValidator, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.voucherValidation = _exports.testEmailValidation = _exports.emailValidation = _exports.emailSeriesValidation = void 0;\n  const emailValidation = _exports.emailValidation = function emailValidation(intl) {\n    let isCtaTextRequired = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n    const presenceMessage = intl.t('errors.required');\n    const urlMessage = intl.t('errors.url');\n    const surveyMessage = intl.t('emailCampaigns.emails.dialog.surveys.error');\n    let defaultValidations = {\n      subject: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      ctaLink: [(0, _validateIf.default)({\n        validate: (0, _validators.validateFormat)({\n          type: 'url',\n          message: urlMessage\n        }),\n        if: {\n          ctaType: _constants.EMAIL_CAMPAIGN_CTA_TYPE_CTA\n        },\n        firstErrorMessage: true\n      }), (0, _validateIf.default)({\n        validate: (0, _validators.validatePresence)({\n          presence: true,\n          message: surveyMessage\n        }),\n        if: {\n          ctaType: _constants.EMAIL_CAMPAIGN_CTA_TYPE_SURVEY\n        },\n        firstErrorMessage: true\n      })]\n    };\n    let optionalValidations = {};\n    if (isCtaTextRequired) {\n      optionalValidations = {\n        ctaText: (0, _validateIf.default)({\n          validate: (0, _validators.validatePresence)({\n            presence: true,\n            message: presenceMessage\n          }),\n          if: (key, newValue, oldValue, changes, content) => {\n            const value = changes.ctaType || content.ctaType;\n            return value;\n          },\n          firstErrorMessage: true\n        })\n      };\n    }\n    return Object.assign(defaultValidations, optionalValidations);\n  };\n  const voucherValidation = intl => {\n    const numberMessage = intl.t('errors.positiveNumber');\n    const maxLengthMessage = intl.t('errors.maxLength', {\n      maxlength: 200\n    });\n    return {\n      amount: (0, _validators.validateNumber)({\n        positive: true,\n        gt: 0,\n        message: numberMessage\n      }),\n      greetingText: (_key, newValue) => {\n        const text = newValue && newValue.value;\n        if (!text) return true;\n        return text.length <= 200 || maxLengthMessage;\n      },\n      policies: (_key, newValue) => {\n        if (!newValue) return true;\n        return newValue.length <= 200 || maxLengthMessage;\n      }\n    };\n  };\n  _exports.voucherValidation = voucherValidation;\n  const emailSeriesValidation = (intl, isLabelRequired) => {\n    const positiveInteger = intl.t('errors.positiveInteger');\n    const presenceMessage = intl.t('errors.required');\n    if (!isLabelRequired) {\n      return {\n        offsetInDays: [(0, _numeral.validateNumeral)({\n          integer: true,\n          positive: true,\n          allowBlank: true,\n          message: positiveInteger\n        })]\n      };\n    }\n    return {\n      label: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      offsetInDays: [(0, _numeral.validateNumeral)({\n        integer: true,\n        positive: true,\n        allowBlank: true,\n        message: positiveInteger\n      })]\n    };\n  };\n  _exports.emailSeriesValidation = emailSeriesValidation;\n  const testEmailValidation = intl => {\n    const presenceMessage = intl.t('errors.required');\n    const emailMessage = intl.t('errors.email');\n    return {\n      email: (0, _testEmailValidator.multipleEmailsValidator)({\n        presence: true,\n        presenceMessage: presenceMessage,\n        emailMessage: emailMessage\n      })\n    };\n  };\n  _exports.testEmailValidation = testEmailValidation;\n});","define(\"additive-mc/validations/iso-duration\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.isoDurationValidation = void 0;\n  const isoDurationValidation = intl => {\n    const positiveMessage = intl.t('errors.positive');\n    return {\n      years: (0, _validators.validateNumber)({\n        positive: true,\n        allowBlank: true,\n        message: positiveMessage\n      }),\n      months: (0, _validators.validateNumber)({\n        positive: true,\n        allowBlank: true,\n        message: positiveMessage\n      }),\n      days: (0, _validators.validateNumber)({\n        positive: true,\n        allowBlank: true,\n        message: positiveMessage\n      }),\n      hours: (0, _validators.validateNumber)({\n        positive: true,\n        allowBlank: true,\n        message: positiveMessage\n      }),\n      minutes: (0, _validators.validateNumber)({\n        positive: true,\n        allowBlank: true,\n        message: positiveMessage\n      }),\n      seconds: (0, _validators.validateNumber)({\n        positive: true,\n        allowBlank: true,\n        message: positiveMessage\n      })\n    };\n  };\n  _exports.isoDurationValidation = isoDurationValidation;\n});","define(\"additive-mc/validations/on-page-campaign\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.onPageContentValidation = void 0;\n  const onPageContentValidation = intl => {\n    const presenceMessage = intl.t('errors.required');\n    const maxLengthMesssasge = intl.t('errors.maxLength', {\n      maxLength: 200\n    });\n    return {\n      headline: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      termsAndConditions(_key, newValue) {\n        if (!newValue) return true;\n        // strip html tags\n        const text = newValue.replace(/<[^>]*>/g, '');\n        return text.length <= 200 || maxLengthMesssasge;\n      }\n    };\n  };\n  _exports.onPageContentValidation = onPageContentValidation;\n});","define(\"additive-mc/validations/search-ad-campaign\", [\"exports\", \"ember-changeset-validations/validators\", \"@additive-apps/utils/validators/date\", \"@additive-apps/utils/validators/validate-if\", \"@additive-apps/utils/validators/numeral\"], function (_exports, _validators, _date, _validateIf, _numeral) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.searchAdCampaignValidation = _exports.searchAdCampaignPublishValidation = _exports.searchAdCampaignAdSetValidation = void 0;\n  const searchAdCampaignValidation = intl => {\n    const presenceMessage = intl.t('errors.required');\n    const afterDateMessage = intl.t('errors.afterStartDate');\n    const beforeEndDate = intl.t('errors.beforeEndDate');\n    const minAdSetsLength = intl.t('searchAdCampaigns.errors.minAdSets');\n    return {\n      adSets: [(0, _validators.validatePresence)({\n        presence: true,\n        message: minAdSetsLength\n      })],\n      targetGroup: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      bid: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      landingPage: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      landingPageLanguage: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      targetGoals: (0, _validateIf.default)({\n        validate: (0, _validators.validatePresence)({\n          presence: true,\n          message: presenceMessage\n        }),\n        if: {\n          useDefaultTargetGoals: false\n        },\n        firstErrorMessage: true\n      }),\n      displayNetwork: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      searchPartner: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      dailyBudget: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      postfix: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      'displayedPath.first': (0, _validators.validateLength)({\n        max: 15,\n        message: intl.t('errors.maxLength', {\n          maxLength: 15\n        })\n      }),\n      'displayedPath.second': (0, _validators.validateLength)({\n        max: 15,\n        message: intl.t('errors.maxLength', {\n          maxLength: 15\n        })\n      }),\n      startDate: (0, _date.validateDateDependency)({\n        type: 'before',\n        on: 'endDate',\n        allowBlank: false,\n        allowEmptyDependency: true,\n        message: beforeEndDate\n      }),\n      endDate: (0, _date.validateDateDependency)({\n        type: 'after',\n        on: 'startDate',\n        allowBlank: true,\n        allowEmptyDependency: true,\n        message: afterDateMessage\n      })\n    };\n  };\n  _exports.searchAdCampaignValidation = searchAdCampaignValidation;\n  const searchAdCampaignAdSetValidation = intl => {\n    const presenceMessage = intl.t('errors.required');\n    const maxAdsLength = intl.t('searchAdCampaigns.errors.maxAds');\n    const minKeywordsLength = intl.t('searchAdCampaigns.errors.minKeywords');\n    return {\n      name: (0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }),\n      adTemplates: [(0, _validators.validatePresence)({\n        presence: true,\n        message: presenceMessage\n      }), (0, _validators.validateLength)({\n        max: 3,\n        message: maxAdsLength\n      })],\n      keywords: (0, _validators.validatePresence)({\n        presence: true,\n        message: minKeywordsLength\n      })\n    };\n  };\n  _exports.searchAdCampaignAdSetValidation = searchAdCampaignAdSetValidation;\n  const searchAdCampaignPublishValidation = intl => {\n    const baseIntlKey = 'searchAdCampaigns.publishDialog.errorMessages';\n    const budgetRequired = intl.t(`${baseIntlKey}.budget`);\n    const targetGroupRequired = intl.t(`${baseIntlKey}.targetGroup`);\n    const bidRequired = intl.t(`${baseIntlKey}.bid`);\n    const targetGoalsRequired = intl.t(`${baseIntlKey}.targetGoals`);\n    return {\n      dailyBudget: (0, _numeral.validateNumeral)({\n        gt: 0,\n        allowBlank: false,\n        message: budgetRequired\n      }),\n      targetGroup: [(0, _validators.validatePresence)({\n        presence: true,\n        message: targetGroupRequired\n      }), (0, _validators.validateLength)({\n        min: 1,\n        message: targetGroupRequired\n      })],\n      targetGoals: (0, _validateIf.default)({\n        validate: (0, _validators.validatePresence)({\n          presence: true,\n          message: targetGoalsRequired\n        }),\n        if: {\n          useDefaultTargetGoals: false\n        },\n        firstErrorMessage: true\n      }),\n      bid: [(0, _validators.validatePresence)({\n        presence: true,\n        message: bidRequired\n      }), (0, _validators.validateLength)({\n        min: 1,\n        message: bidRequired\n      })]\n    };\n  };\n  _exports.searchAdCampaignPublishValidation = searchAdCampaignPublishValidation;\n});","define(\"additive-mc/validations/settings\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.settingsValidations = _exports.legalsValidations = void 0;\n  const TIME_REGEX = /^(([0-1][0-9])|(2[0-3])):([0-5][0-9])$/;\n  const URL_REGEX = /https:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)$/;\n  const RATE_REGEX = /^\\d+:\\d+$/;\n  const settingsValidations = _exports.settingsValidations = function settingsValidations(intl) {\n    let allowAttributionsBlank = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n    return {\n      email: (0, _validators.validateFormat)({\n        type: 'email',\n        message: intl.t('errors.email'),\n        allowBlank: true\n      }),\n      landingPageUrl: [(0, _validators.validateFormat)({\n        regex: /https:\\/\\/.*$/,\n        message: intl.t('errors.urlStartWithHTTPS'),\n        allowBlank: true\n      }), (0, _validators.validateFormat)({\n        regex: URL_REGEX,\n        message: intl.t('errors.url'),\n        allowBlank: true\n      })],\n      sendAt: (0, _validators.validateFormat)({\n        regex: TIME_REGEX,\n        allowBlank: true\n      }),\n      conversionRateRequestsToReservations: (0, _validators.validateFormat)({\n        regex: RATE_REGEX,\n        allowBlank: allowAttributionsBlank,\n        message: intl.t(allowAttributionsBlank ? 'errors.rate' : 'errors.requiredRate')\n      }),\n      averageReservationRevenue: (0, _validators.validateNumber)({\n        gt: 0,\n        allowBlank: allowAttributionsBlank,\n        integer: true,\n        message: intl.t(allowAttributionsBlank ? 'errors.positiveInteger' : 'errors.requiredPositiveInteger')\n      })\n    };\n  };\n  const legalsValidations = intl => {\n    return {\n      privacyUrl: (0, _validators.validateFormat)({\n        type: 'url',\n        message: intl.t('errors.url'),\n        allowBlank: true\n      }),\n      disclaimerUrl: (0, _validators.validateFormat)({\n        type: 'url',\n        message: intl.t('errors.url'),\n        allowBlank: true\n      })\n    };\n  };\n  _exports.legalsValidations = legalsValidations;\n});","define(\"additive-mc/validators/currency\", [\"exports\", \"@additive-apps/utils/validators/currency\"], function (_exports, _currency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _currency.default;\n    }\n  });\n});","define(\"additive-mc/validators/date\", [\"exports\", \"@additive-apps/utils/validators/date\"], function (_exports, _date) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _date.default;\n    }\n  });\n});","define(\"additive-mc/validators/depiction-placeholders\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.validateDepictionPlaceholders = validateDepictionPlaceholders;\n  /**\n   *  @module Validators\n   */\n\n  /**\n   * @function validateDepictionPlaceholders\n   *\n   * @param {Any} value\n   * @param {Object} options\n   * @param {String} options.message Error message\n   *\n   * @return {Boolean|ValidationErr}\n   */\n  function validateDepictionPlaceholders() {\n    let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    const message = (options === null || options === void 0 ? void 0 : options.message) || false;\n    const allowedPlaceholders = (options === null || options === void 0 ? void 0 : options.allowedPlaceholders) || [];\n    return (key, value) => {\n      let isValid = true;\n      const placeholders = value.match(/{{[a-zA-Z._| ]*}}/g) || [];\n      placeholders.forEach(placeholder => {\n        if (allowedPlaceholders.indexOf(placeholder) === -1) {\n          isValid = false;\n        }\n      });\n      const openingBracketsCount = (value.match(/{{/g) || []).length;\n      const closingBracketsCount = (value.match(/}}/g) || []).length;\n\n      /**\n       * check if there are incomplete placeholders\n       * or other variations ignore by the regex above\n       */\n      if (openingBracketsCount !== closingBracketsCount || openingBracketsCount !== placeholders.length) {\n        isValid = false;\n      }\n      return isValid || message;\n    };\n  }\n});","define(\"additive-mc/validators/editor-links\", [\"exports\", \"@additive-apps/ui/validators/editor-links\"], function (_exports, _editorLinks) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _editorLinks.default;\n    }\n  });\n});","define(\"additive-mc/validators/html-length\", [\"exports\", \"@additive-apps/utils/validators/html-length\"], function (_exports, _htmlLength) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _htmlLength.default;\n    }\n  });\n});","define(\"additive-mc/validators/numeral\", [\"exports\", \"@additive-apps/utils/validators/numeral\"], function (_exports, _numeral) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _numeral.default;\n    }\n  });\n});","define(\"additive-mc/validators/test-email-validator\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.multipleEmailsValidator = multipleEmailsValidator;\n  /**\n   *  @module Validators\n   */\n\n  /**\n   * Validates multiple emails in an array\n   *\n   * @function multipleEmailsValidator\n   *\n   * @param {Any} value\n   * @param {Object} options\n   * @param {String} options.message Error message\n   *\n   * @return {Boolean|ValidationErr}\n   */\n  function multipleEmailsValidator() {\n    let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    const presenceMessage = (options === null || options === void 0 ? void 0 : options.presenceMessage) || false;\n    const emailMessage = (options === null || options === void 0 ? void 0 : options.emailMessage) || false;\n    return (key, value) => {\n      let isPresent = true;\n      let isValid = true;\n      const placeholders = value;\n      if (!value.length) {\n        isPresent = false;\n      }\n      const validation = (0, _validators.validateFormat)({\n        type: 'email',\n        message: emailMessage\n      });\n      placeholders === null || placeholders === void 0 || placeholders.forEach(placeholder => {\n        if (validation(key, placeholder) !== true) {\n          isValid = false;\n        }\n      });\n      return !isPresent ? presenceMessage : isValid || emailMessage;\n    };\n  }\n});","define(\"additive-mc/validators/valid-color\", [\"exports\", \"@additive-apps/ui/validators/valid-color\"], function (_exports, _validColor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function get() {\n      return _validColor.default;\n    }\n  });\n});","\n","define('additive-mc/config/environment', [], function() {\n  var prefix = 'additive-mc';\ntry {\n  var metaName = prefix + '/config/environment';\n  var rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n  var config = JSON.parse(decodeURIComponent(rawConfig));\n\n  var exports = { 'default': config };\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n  return exports;\n}\ncatch(err) {\n  throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n});\n","\n          if (!runningTests) {\n            require(\"additive-mc/app\")[\"default\"].create({\"appId\":50,\"clientId\":50,\"clientSecret\":\"6FD8czoo78d8Rzq3BYtk85YWyfx3XUfmGIYNb5su\",\"accountHost\":\"https://staging.account.additive-apps.eu\",\"accountApiHost\":\"https://staging.account.additive-apps.tech\",\"baseHost\":\"https://staging.marketing-cloud.additive-apps.eu\",\"apiBaseHost\":\"https://api.staging.marketing-cloud.additive-apps.tech\",\"apiBaseHostV2\":\"https://api.staging.marketing-automation.additive-apps.tech\",\"publicHost\":\"https://staging.marketing-automation.additive-apps.tech\",\"redirectRoute\":\"/auth/callback\",\"defaultLocale\":\"de\",\"userbackAccessToken\":\"40566|81365|5Z3c6FPjVr2tSBPUT9V16gGLp\",\"userbackAccessTokenPartner\":\"P-sXDoolmjChbc50kBv59sXM8zg\",\"sprigEnvironmentId\":\"8ZpGiUEkAWHg\",\"posthogPublicToken\":\"phc_ESoxVNdMH0k3MjOKt9yPxwIx13J0CcNbti6i10NTIf7\",\"posthogPublicHost\":\"https://eu.i.posthog.com\",\"productlaneWidgetKey\":\"be718178-ae45-49fc-a1a6-3588219b06ab\",\"mediaApi\":\"https://api.staging.multimedia.additive-apps.tech\",\"name\":\"additive-mc\",\"version\":\"1.58.10+0330689f\"});\n          }\n        \n"],"names":[],"mappings":"AAAA;AACA;AACA;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3RA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9UA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3cA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC16BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9WA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvgCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9mBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACziBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChmBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/iBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACltBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/YA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7UA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7UA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5cA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9nBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1XA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC94BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzwCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9XA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3RA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC30BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1lFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5ZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/hBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3aA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1iBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACn6BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3cA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/iBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjkBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9WA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3VA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9YA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/RA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7lBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5aA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACt2BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7WA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/mBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3bA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;","file":"additive-mc.js"}